post_parent ) : get_adjacent_post( false, '', true ); $next = get_adjacent_post( false, '', false ); if ( ! $next && ! $previous ) return; } // Don't print empty markup in archives if there's only one page. if ( $wp_query->max_num_pages < 2 && ( is_home() || is_archive() || is_search() ) ) return; $nav_class = ( is_single() ) ? 'navigation-post' : 'navigation-paging'; ?> comment_type ) : case 'pingback' : case 'trackback' : ?>
  • ', '' ); ?>

  • id="li-comment-">
    1, ) ); // Count the number of categories that are attached to the posts $all_the_cool_cats = is_countable( $all_the_cool_cats ) ? count( $all_the_cool_cats ) : 0; set_transient( 'all_the_cool_cats', $all_the_cool_cats ); } if ( '1' != $all_the_cool_cats ) { // This blog has more than 1 category so breathe_categorized_blog should return true return true; } else { // This blog has only 1 category so breathe_categorized_blog should return false return false; } } /** * Flush out the transients used in breathe_categorized_blog */ function breathe_category_transient_flusher() { // Like, beat it. Dig? delete_transient( 'all_the_cool_cats' ); } add_action( 'edit_category', 'breathe_category_transient_flusher' ); add_action( 'save_post', 'breathe_category_transient_flusher' ); /** * */ function breathe_tags_with_count( $format = 'list', $before = '', $sep = '', $after = '' ) { global $post; echo breathe_get_tags_with_count( $post, $format, $before, $sep, $after ); } /** * Get tags with count */ function breathe_get_tags_with_count( $post, $format = 'list', $before = '', $sep = '', $after = '' ) { $tag_links = []; $posttags = get_the_tags($post->ID, 'post_tag' ); if ( !$posttags ) return ''; foreach ( $posttags as $tag ) { if ( $tag->count > 1 && !is_tag($tag->slug) ) { $tag_link = ''; } else { $tag_link = $tag->name; } if ( $format == 'list' ) $tag_link = '
  • ' . $tag_link . '
  • '; $tag_links[] = $tag_link; } return apply_filters( 'breathe_tags_with_count', $before . implode( $sep, $tag_links ) . $after, $post ); } function breathe_date_time_with_microformat( $type = 'post' ) { echo breathe_get_date_time_with_microformat( $type ); } function breathe_get_date_time_with_microformat( $type = 'post' ) { $d = 'comment' == $type ? 'get_comment_time' : 'get_post_time'; return '' . sprintf( __( '%1$s on %2$s', 'p2-breathe' ), $d( get_option( 'time_format' ) ), $d( get_option( 'date_format' ) ) ) . ''; } function breathe_page_number() { echo breathe_get_page_number(); } function breathe_get_page_number() { global $paged; return apply_filters( 'breathe_get_page_number', $paged ); }