All pastes #1903649 Raw Edit

Thematic Childtheme

public php v1 · immutable
#1903649 ·published 2010-07-19 14:07 UTC
rendered paste body
function childtheme_postfooter_posttags() {	 if (is_single()) {	     $tagtext = __(' and tagged', 'thematic');	     $posttags = get_the_tag_list("<span class=\"tag-links\"> $tagtext ",', ','</span>');	 } elseif ( is_tag() && $tag_ur_it = thematic_tag_ur_it(', ') ) { /* Returns tags other than the one queried */	     $posttags = '| <span class="tag-links">' . __(' Also tagged ', 'thematic') . $tag_ur_it . '</span> <span class="meta-sep meta-sep-comments-link"></span>';	 } else {	     $tagtext = __('Tagged', 'thematic');	     $posttags = get_the_tag_list("| <span class=\"tag-links\"> $tagtext ",', ','</span> <span class="meta-sep meta-sep-comments-link"></span>');	 }	    return apply_filters('childtheme_postfooter_posttags',$posttags);}add_filter('thematic_postfooter_posttags','childtheme_postfooter_posttags');function childtheme_postfooter_postcategory() {    $postcategory = '<span class="cat-links">';    if (is_single()) {        $postcategory .= __('Categories: ', 'thematic') . get_the_category_list(', ');        $postcategory .= '</span>';    } elseif ( is_category() && $cats_meow = thematic_cats_meow(', ') ) { /* Returns categories other than the one queried */        $postcategory .= __('&', 'thematic') . $cats_meow;        $postcategory .= '</span> <span class="meta-sep meta-sep-tag-links"></span>';    } else {        $postcategory .= __('Posted in ', 'thematic') . get_the_category_list(', ');        $postcategory .= '</span> <span class="meta-sep meta-sep-tag-links"></span>';    }    return apply_filters('childtheme_postfooter_postcategory',$postcategory);} add_filter('thematic_postfooter_postcategory','childtheme_postfooter_postcategory');function replacement_postfooter($postfooter) {    global $id, $post;    if ($post->post_type == 'page' && current_user_can('edit_posts')) { /* For logged-in "page" search results */        $postfooter = '<div class="entry-utility">' . thematic_postfooter_posteditlink();        $postfooter .= "</div><!-- .entry-utility -->\n";    } elseif ($post->post_type == 'page') { /* For logged-out "page" search results */        $postfooter = '';    } else {        if (is_single()) {            $postfooter = '<div class="entry-utility">' . thematic_postfooter_postcategory() . thematic_postfooter_posttags();        } else {            $postfooter = '<div class="entry-utility">' . thematic_postfooter_postcategory() . thematic_postfooter_posttags();        }        $postfooter .= "</div><!-- .entry-utility -->\n";        return $postfooter;    }}add_filter('thematic_postfooter','replacement_postfooter');