<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>
' . $postmeta . ''; } } endif; if ( ! function_exists( 'napoli_meta_date' ) ) : /** * Displays the post date */ function napoli_meta_date() { $time_string = sprintf( '', esc_url( get_permalink() ), esc_attr( get_the_time() ), esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date() ) ); return '' . $time_string . ''; } endif; if ( ! function_exists( 'napoli_meta_author' ) ) : /** * Displays the post author */ function napoli_meta_author() { $author_string = sprintf( '', esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), esc_attr( sprintf( esc_html__( 'View all posts by %s', 'napoli' ), get_the_author() ) ), esc_html( get_the_author() ) ); return ' ' . $author_string . ''; } endif; if ( ! function_exists( 'napoli_meta_category' ) ) : /** * Displays the category of posts */ function napoli_meta_category() { return ' ' . get_the_category_list( ', ' ) . ''; } endif; if ( ! function_exists( 'napoli_meta_comments' ) ) : /** * Displays the post comments */ function napoli_meta_comments() { // Start Output Buffering. ob_start(); // Display Comments. comments_popup_link( esc_html__( 'Leave a comment', 'napoli' ), esc_html__( 'One comment', 'napoli' ), esc_html__( '% comments', 'napoli' ) ); $comments = ob_get_contents(); // End Output Buffering. ob_end_clean(); return ' ' . $comments . ''; } endif; if ( ! function_exists( 'napoli_entry_tags' ) ) : /** * Displays the post tags on single post view */ function napoli_entry_tags() { // Get theme options from database. $theme_options = napoli_theme_options(); // Get tags. $tag_list = get_the_tag_list( '', '' ); // Display tags. if ( $tag_list && $theme_options['meta_tags'] ) : ?>
'' . esc_html_x( 'Previous Post', 'post navigation', 'napoli' ) . '

%title

', 'next_text' => '' . esc_html_x( 'Next Post', 'post navigation', 'napoli' ) . '

%title

', ) ); } } endif; if ( ! function_exists( 'napoli_breadcrumbs' ) ) : /** * Displays ThemeZee Breadcrumbs plugin */ function napoli_breadcrumbs() { if ( function_exists( 'themezee_breadcrumbs' ) ) { themezee_breadcrumbs( array( 'before' => '', ) ); } } endif; if ( ! function_exists( 'napoli_related_posts' ) ) : /** * Displays ThemeZee Related Posts plugin */ function napoli_related_posts() { if ( function_exists( 'themezee_related_posts' ) ) { themezee_related_posts( array( 'class' => 'related-posts type-page clearfix', 'before_title' => '', ) ); } } endif; if ( ! function_exists( 'napoli_pagination' ) ) : /** * Displays pagination on archive pages */ function napoli_pagination() { the_posts_pagination( array( 'mid_size' => 2, 'prev_text' => '«' . esc_html_x( 'Previous Posts', 'pagination', 'napoli' ) . '', 'next_text' => '' . esc_html_x( 'Next Posts', 'pagination', 'napoli' ) . '»', ) ); } endif; /** * Displays credit link on footer line */ function napoli_footer_text() { ?> WordPress', 'Napoli' ); ?>