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 navigation-post clearfix' : 'navigation navigation-paging clearfix'; ?> comment_type ) : case 'pingback' : case 'trackback' : ?>
  • id="li-comment-">
    ', esc_url( get_permalink() ), esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date() ) ); } endif; if ( ! function_exists( 'flounder_posted_by' ) ) : function flounder_posted_by() { printf( '
    ', esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), esc_attr( sprintf( __( 'View all posts by %s', 'flounder' ), get_the_author() ) ), get_the_author() ); } endif; if ( ! function_exists( 'flounder_comment_link' ) ) : /** * Generate the comment links */ function flounder_comment_link( $before = '', $after = '', $echo = true ) { if ( ! comments_open() ) return; ob_start(); if ( ! empty( $before ) ) echo $before; comments_popup_link( ''.__( '0 Comments', 'flounder' ), ''.__( '1 Comment', 'flounder' ), ''.__( '% Comments', 'flounder' ), 'read alignleft', '' ); printf( '%s', get_permalink() . '#respond', __( 'Leave a comment', 'flounder' ) ); if ( ! empty( $after ) ) echo $after; if ( $echo ) { ob_end_flush(); } else { return ob_end_clean(); } } endif; /** * Determine if the current post should display a title. * Logic can be overridden by a filter. */ function flounder_show_title() { $show_title = ( ! post_type_supports( get_post_type(), 'post-formats' ) ) || ! ( has_post_format( 'link' ) || has_post_format( 'quote' ) || has_post_format( 'aside' ) || has_post_format( 'status' ) ); if ( is_singular() ) $show_title = true; return apply_filters( 'flounder_show_title', $show_title ); }