';
if ( !(''== category_description()) ) : $content .= apply_filters('archive_meta', category_description()); endif;
$content .= '
';
} elseif (is_search()) {
$content .= '
' .__('Pages:', 'thematic') . '&after=
') ?>
' .__('Pages:', 'thematic') . '&after=
') ?>
' . '' . $posteditlink . '';
$postfooter .= "
\n";
} elseif ($post->post_type == 'page') { /* For logged-out "page" search results */
$postfooter = '';
} else {
if (is_single()) {
$postfooter = '' . $postcategory . $posttags . $postconnect;
} else {
$postfooter = '
' . $postcategory . $posttags . $postcomments;
}
$postfooter .= "
\n";
}
// Put it on the screen
echo apply_filters( 'thematic_postfooter', $postfooter ); // Filter to override default post footer
} // end thematic_postfooter
// Action to create the below navigation
function thematic_nav_below() {
if (is_single()) { ?>
« Older posts', 'thematic')) ?>
»', 'thematic')) ?>
'%link',
'link' => '
« %title',
'in_same_cat' => FALSE,
'excluded_categories' => '');
$args = apply_filters('thematic_previous_post_link_args', $args );
previous_post_link($args['format'], $args['link'], $args['in_same_cat'], $args['excluded_categories']);
} // end thematic_previous_post_link
// creates the next_post_link
function thematic_next_post_link() {
$args = array ('format' => '%link',
'link' => '%title
»',
'in_same_cat' => FALSE,
'excluded_categories' => '');
$args = apply_filters('thematic_next_post_link_args', $args );
next_post_link($args['format'], $args['link'], $args['in_same_cat'], $args['excluded_categories']);
} // end thematic_next_post_link
// Produces an avatar image with the hCard-compliant photo class for author info
function thematic_author_info_avatar() {
global $wp_query; $curauth = $wp_query->get_queried_object();
$email = $curauth->user_email;
$avatar = str_replace( "class='avatar", "class='photo avatar", get_avatar("$email") );
echo $avatar;
} // end thematic_author_info_avatar
// For category lists on category archives: Returns other categories except the current one (redundant)
function thematic_cats_meow($glue) {
$current_cat = single_cat_title( '', false );
$separator = "\n";
$cats = explode( $separator, get_the_category_list($separator) );
foreach ( $cats as $i => $str ) {
if ( strstr( $str, ">$current_cat<" ) ) {
unset($cats[$i]);
break;
}
}
if ( empty($cats) )
return false;
return trim(join( $glue, $cats ));
} // end thematic_cats_meow
// For tag lists on tag archives: Returns other tags except the current one (redundant)
function thematic_tag_ur_it($glue) {
$current_tag = single_tag_title( '', '', false );
$separator = "\n";
$tags = explode( $separator, get_the_tag_list( "", "$separator", "" ) );
foreach ( $tags as $i => $str ) {
if ( strstr( $str, ">$current_tag<" ) ) {
unset($tags[$i]);
break;
}
}
if ( empty($tags) )
return false;
return trim(join( $glue, $tags ));
} // end thematic_tag_ur_it
// Add BuddyPress extensions
require_once(THEMELIB . '/extensions/buddypress-extensions.php');
?>