Published on %2$s'; } $published_time = sprintf( $published_time, esc_attr( get_the_date( DATE_W3C ) ), esc_html( get_the_date() ) ); $published_time = sprintf( /* translators: %s: post date. */ esc_html_x( '%s', 'Publish Date', 'aryx' ), $published_time ); $published = '' . $published_time . ''; // WPCS: XSS OK. if (get_the_modified_time( 'U' )) { $modified_time = ''; } $modified_time = sprintf( $modified_time, esc_attr( get_the_modified_date( DATE_W3C ) ), esc_html( get_the_modified_date() ) ); $modified_time = sprintf( /* translators: %s: post date. */ esc_html_x( '%s', 'Modified Date', 'aryx' ), $modified_time ); $modified = '' . $modified_time . ''; // WPCS: XSS OK. // Hide category and tag text for pages. if ( 'post' === get_post_type() ) { /* translators: used between list items, there is a space after the comma */ $categories_list = get_the_category_list( esc_html__( ', ', 'aryx' ) ); if ( $categories_list ) { /* translators: 1: list of categories. */ $post_category = sprintf( esc_html__( 'Posted in %1$s', 'aryx' ) , $categories_list ); // WPCS: XSS OK. } /* translators: used between list items, there is a space after the comma */ $tags_list = get_the_tag_list( '', esc_html_x( ', ', 'list item separator', 'aryx' ) ); if ( $tags_list ) { /* translators: 1: list of tags. */ $post_tags = sprintf( esc_html__( 'Tagged %1$s', 'aryx' ) , $tags_list ); // WPCS: XSS OK. } } $categories = empty($post_category) ? '' : '' . $post_category . ''; $tags = empty($post_tags) ? '' : '' . $post_tags . ''; $author = '' . sprintf( /* translators: %s: post author. */ esc_html_x( 'By %s', 'post author', 'aryx' ), '' . esc_html( get_the_author() ) . '' ) . ''; // WPCS: XSS OK. if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ) { $comments = get_comments_number() . ' Comment on ' . get_the_title() . ''; } $comment_count = empty( $comments ) ? '' : '' . $comments . ''; if ( is_single() ) { $meta_parts = get_theme_mod( 'aryx_f_archive_entry_meta_s_single_post_p_blog', array( 'published', 'categories', 'author' ) ); foreach ( $meta_parts as $meta_part ) { echo ${$meta_part}; } } else { $meta_parts = get_theme_mod( 'aryx_f_archive_entry_meta_s_blog_archive_p_blog', array( 'published', 'categories', 'author' ) ); foreach ( $meta_parts as $meta_part ) { echo ${$meta_part}; } } edit_post_link( sprintf( wp_kses( /* translators: %s: Name of current post. Only visible to screen readers */ __( 'Edit %s', 'aryx' ), array( 'span' => array( 'class' => array(), ), ) ), get_the_title() ), '', '' ); } endif; if ( ! function_exists( 'aryx_post_thumbnail' ) ) : /** * Displays an optional post thumbnail. * * Wraps the post thumbnail in an anchor element on index views, or a div * element when on single views. */ function aryx_post_thumbnail() { if ( post_password_required() || is_attachment() || ! has_post_thumbnail() ) { return; } if ( is_singular() ) : ?>