' ; camer_entry_author(); camer_entry_date(); camer_entry_comments(); camer_edit_link(); echo ''; } endif; /** * Displays the meta info for the default blog styles */ if ( ! function_exists( 'camer_default_entry_meta' ) ) : function camer_default_entry_meta() { echo ''; } endif; if ( ! function_exists( 'camer_sticky_entry_post' ) ) : // Returns the sticky label function camer_sticky_entry_post() { if( is_sticky() && ! is_archive() && esc_attr(get_theme_mod( 'camer_show_featured_tag', true ) ) ) { echo '
', esc_html_e('Featured', 'camer'), '
'; } } endif; if ( ! function_exists( 'camer_entry_date' ) ) : // Returns the post date function camer_entry_date() { $time_string = ''; if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) { $time_string = ''; } $time_string = sprintf( $time_string, esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date() ), esc_attr( get_the_modified_date( 'c' ) ), esc_html( get_the_modified_date() ) ); $posted_on = sprintf( /* translators: %s: post date */ __( 'Posted on %s', 'camer' ), '' . $time_string . '' ); echo '
  • ' . $posted_on . '
  • '; // WPCS: XSS OK. } endif; if ( ! function_exists( 'camer_entry_author' ) ) : // Returns the post author function camer_entry_author() { $author_avatar_size = apply_filters( 'camer_author_avatar_size', 32 ); $author_string = sprintf( '
    %1$s %2$s %4$s
    ', get_avatar( get_the_author_meta( 'user_email' ), $author_avatar_size ), _x( 'By', 'Used before post author name.', 'camer' ), esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), get_the_author() ); echo '
  • ' . $author_string . '
  • '; // WPCS: XSS OK. } endif; if ( ! function_exists( 'camer_entry_comments' ) ) : // Displays the post comments function camer_entry_comments() { if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ) { echo ''; } } endif; // Get the full category list for a post if ( ! function_exists( 'camer_categories' ) ) : function camer_categories() { echo get_the_category_list(); // WPCS: XSS OK. } endif; // Edit link function if ( ! function_exists( 'camer_edit_link' ) ) : function camer_edit_link() { edit_post_link( sprintf( wp_kses( /* translators: %s: Name of current post. Only visible to screen readers */ __( 'Edit %s', 'camer' ), array( 'span' => array( 'class' => array(), ), ) ), get_the_title() ), '' ); } endif; if ( ! function_exists( 'camer_blog_title' ) ) : /** * Show a custom blog home title and introduction. * Displays the archive title and archive description for the blog index */ function camer_blog_title() { // Get blog title and descripton from database. $camer_blog_title = get_theme_mod( 'camer_blog_title' ); $camer_blog_description = get_theme_mod( 'camer_blog_description' ); // Display Blog Title. if ( '' !== $camer_blog_title || '' !== $camer_blog_description || is_customize_preview() && get_theme_mod( 'camer_show_blog_title', false ) ) : ?>

    post_excerpt; if(!empty($get_description) && is_single() || is_page()) { // If caption exists - show it echo ''; } } endif; if ( ! function_exists( 'camer_post_default_image' ) ) : // Displays the featured image on single posts in a standard default format function camer_post_image() { echo '
    '; the_post_thumbnail(); echo '
    '; } endif; if ( ! function_exists( 'camer_entry_tags' ) ) : /** * Displays the post tags on single post view */ function camer_entry_tags() { $tag_list = get_the_tag_list( '' ); if ( $tag_list && ! is_wp_error( $tag_list ) ) { echo $tag_list; // WPCS: XSS OK. } } endif; /** * Custom comment output */ function camer_comment( $comment, $args, $depth ) { ?>
  • id="li-comment- ">

    $depth, 'max_depth' => $args['max_depth'] ) ) ) ?>

    comment_approved == '0' ) : ?>
    ' . get_the_author() . '' ); } elseif ( is_year() ) { $title = sprintf( /* translators: %s: Name of year */ esc_html__( 'Articles from: %s', 'camer' ), get_the_date( esc_html_x( 'Y', 'yearly archives date format', 'camer' ) ) ); } elseif ( is_month() ) { $title = sprintf( /* translators: %s: Name of month */ esc_html__( 'Articles from %s', 'camer' ), get_the_date( esc_html_x( 'F Y', 'monthly archives date format', 'camer' ) ) ); } elseif ( is_day() ) { $title = sprintf( /* translators: %s: Name of day */ esc_html__( 'Articles from %s', 'camer' ), get_the_date( esc_html_x( 'F j, Y', 'daily archives date format', 'camer' ) ) ); } elseif ( is_post_type_archive() ) { $title = sprintf( /* translators: %s: Name of archive title */ esc_html__( 'Archives: %s', 'camer' ), post_type_archive_title( '', false ) ); } elseif ( is_tax() ) { $tax = get_taxonomy( get_queried_object()->taxonomy ); /* translators: 1: Taxonomy singular name, 2: Current taxonomy term */ $title = sprintf( /* translators: %s: Name of title */ esc_html__( '%1$s: %2$s', 'camer' ), $tax->labels->singular_name, single_term_title( '', false ) ); } else { $title = esc_html__( 'Archives', 'camer' ); } /** * Filter the archive title. * @param string $title Archive title to be displayed. */ $title = apply_filters( 'get_the_archive_title', $title ); if ( ! empty( $title ) ) { echo $before . $title . $after; // WPCS: XSS OK. } } endif; endif; /** * Displays pagination on the blog and archive pages */ if ( ! function_exists( 'camer_blog_navigation' ) ) : function camer_blog_navigation() { the_posts_pagination( array( 'mid_size' => 2, 'prev_text' => '«' . esc_html_x( 'Previous Posts', 'pagination', 'camer' ) . '', 'next_text' => '' . esc_html_x( 'Next Posts', 'pagination', 'camer' ) . '»', ) ); } endif; /** * Displays Single Post Navigation */ if ( ! function_exists( 'camer_post_navigation' ) ) : function camer_post_navigation() { if( esc_attr(get_theme_mod( 'camer_crop_list_featured', true ) || is_customize_preview()) ) { the_post_navigation( array( 'prev_text' => '' . esc_html_x( 'Previous Post', 'post navigation', 'camer' ) . '
    %title
    ', 'next_text' => '' . esc_html_x( 'Next Post', 'post navigation', 'camer' ) . '
    %title
    ', ) ); } } endif; /** * Displays Multi-page Navigation */ if ( ! function_exists( 'camer_multipage_navigation' ) ) : function camer_multipage_navigation() { wp_link_pages( array( 'before' => '', 'link_before' => '', 'link_after' => '', ) ); } endif;