%2$s'; if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) { $time_string = ''; } $time_string = sprintf( $time_string, esc_attr( get_the_date( DATE_W3C ) ), esc_html( get_the_date() ), esc_attr( get_the_modified_date( DATE_W3C ) ), esc_html( get_the_modified_date() ) ); $posted_on = sprintf( /* translators: %s: post date. */ esc_html_x( 'Posted on %s', 'post date', 'analog' ), '' . $time_string . '' ); echo '' . $posted_on . ''; // WPCS: XSS OK. } endif; /** * Prints HTML with meta information for the current author * * @return void */ if ( ! function_exists( 'analog_posted_by' ) ) : function analog_posted_by() { $byline = sprintf( /* translators: %s: post author. */ esc_html_x( 'by %s', 'post author', 'analog' ), '' . esc_html( get_the_author() ) . '' . '' ); echo ' ' . $byline . ''; // WPCS: XSS OK. } endif; /** * Prints HTML with meta information for the categories, tags and comments * * @return void */ if ( ! function_exists( 'analog_entry_footer' ) ) : function analog_entry_footer() { // 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_label = '' . esc_html__('Archived:', 'analog' ) . ''; $categories_list = get_the_category_list( esc_html_x( ', ', 'tags item separator', 'analog' ) ); if ( $categories_list ) { /* translators: 2: label, list of categories. */ printf( '' . esc_html__( '%1$s %2$s', 'analog' ) . '', $categories_label, $categories_list ); // WPCS: XSS OK. } /* translators: used between list items, there is a space after the comma */ $tags_label = '' . esc_html__('Tagged:', 'analog' ) . ''; $tags_list = get_the_tag_list( '', esc_html_x( ', ', 'list item separator', 'analog' ) ); if ( $tags_list ) { /* translators: 2: label, list of tags. */ printf( '' . esc_html__( '%1$s %2$s', 'analog' ) . '', $tags_label, $tags_list ); // WPCS: XSS OK. } } echo ''; if ( ! is_single() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) { echo ''; comments_popup_link( sprintf( wp_kses( /* translators: %s: post title */ __( 'Leave a Comment on %s', 'analog' ), array( 'span' => array( 'class' => array(), ), ) ), get_the_title() ) ); echo ''; } edit_post_link( sprintf( wp_kses( /* translators: %s: Name of current post. Only visible to screen readers */ __( 'Edit %s', 'analog' ), array( 'span' => array( 'class' => array(), ), ) ), get_the_title() ), '', '' ); echo ''; } endif; /** * Displays an optional post thumbnail * * Wraps the post thumbnail in an anchor element on index views, or a div * element when on single views * * @return void */ if ( ! function_exists( 'analog_post_thumbnail' ) ) : function analog_post_thumbnail() { if ( post_password_required() || is_attachment() || ! has_post_thumbnail() ) { return; } if ( is_singular() ) : ?>

%s

', $output ); } endif; /** * Display search in footer * * @return void */ if( ! function_exists('analog_search_field_footer') ) : function analog_search_field_footer() { $search_field = get_theme_mod( 'analog_footer_search', 0 ); if( (bool) $search_field === false ) : ?> ID ) ? $authordata->ID : 0; } if( (bool) $echo === true ) { echo analog_get_author_box( $author_id ); } else { return analog_get_author_box( $author_id ); } } endif; /** * Display author info in post * * @return void */ if( ! function_exists( 'analog_author_post_box' ) ) : function analog_author_post_box( $post = false, $echo = true ) { if( false === (bool) get_theme_mod( 'analog_author_post_box' ) ) { return; } if( ! $post ) { global $post; } $author_id = isset( $post->post_author ) ? $post->post_author : 0; if ( ! is_single() ) { return; } else { if( $echo === true ) { echo analog_get_author_box( $author_id ); } else{ return analog_get_author_box( $author_id ); } } } endif; /** * Display Theme Credits * * @return void */ function analog_theme_footer_info() { $powered = sprintf( esc_html__('Powered by %s', 'analog' ), 'Wordpress' ); $theme = sprintf( esc_html__('Theme %s by %s', 'analog' ), 'AnaLog', 'Il Jester' ); $top = sprintf( esc_html__('%sTop%s', 'analog' ), '', ' ' ); $footer_info = "{$powered}"; $footer_info .= '//'; $footer_info .= "{$theme}"; $footer_info .= '//'; $footer_info .= "{$top}"; echo $footer_info; }