"img-responsive" ) ); ?>
%s', esc_html__( 'Featured', 'manual' ) ); } if ( in_array( get_post_type(), array( 'post', 'attachment' ) ) ) { $time_string = ' '; $time_string = sprintf( $time_string, esc_attr( get_the_date( 'c' ) ), get_the_date(), esc_attr( get_the_modified_date( 'c' ) ), get_the_modified_date() ); printf( '%1$s %3$s', '', esc_url( get_permalink() ), $time_string ); } if ( 'post' == get_post_type() ) { if ( is_singular() || is_multi_author() ) { printf( '%1$s %3$s', '', esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), get_the_author() ); } } if ( is_attachment() && wp_attachment_is_image() ) { // Retrieve attachment metadata. $metadata = wp_get_attachment_metadata(); printf( '%1$s %3$s × %4$s', '', esc_url( wp_get_attachment_url() ), esc_html($metadata['width']), esc_html($metadata['height']) ); } if ( ! is_single() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) { echo ' '; comments_popup_link( esc_html__( 'Leave a comment', 'manual' ), esc_html__( '1 Comment', 'manual' ), esc_html__( '% Comments', 'manual' ) ); echo ''; } echo ' '; the_category(', '); echo ''; } endif; /** * Determine whether blog/site has more than one category. */ function manual_categorized_blog() { if ( false === ( $all_the_cool_cats = get_transient( 'wsamanual_categories' ) ) ) { // Create an array of all the categories that are attached to posts. $all_the_cool_cats = get_categories( array( 'fields' => 'ids', 'hide_empty' => 1, // We only need to know if there is more than one category. 'number' => 2, ) ); // Count the number of categories that are attached to the posts. $all_the_cool_cats = count( $all_the_cool_cats ); set_transient( 'wsamanual_categories', $all_the_cool_cats ); } if ( $all_the_cool_cats > 1 ) { // This blog has more than 1 category so manual_categorized_blog should return true. return true; } else { // This blog has only 1 category so manual_categorized_blog should return false. return false; } } /** * Display navigation to next/previous comments when applicable. */ if ( ! function_exists( 'manual_comment_nav' ) ) : function manual_comment_nav() { // Are there comments to navigate through? if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?> < id="comment- " >
%s says:', get_comment_author_link() ); ?>
$add_below, 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
comment_approved == '0' ) : ?>