%2$s'; 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. */ esc_html( '%s'), '' . $time_string . '' ); $icon = arrival_get_icon_svg('watch',14); echo ''.$icon . $posted_on . ' '; // WPCS: XSS OK. } /** * Prints HTML with meta information for the current author. */ function arrival_posted_by() { global $post; $author_id = $post->post_author; $avator = get_avatar($author_id); $byline = sprintf( /* translators: %s: post author. */ esc_html_x( 'by %s', 'post author', 'arrival' ), '' . esc_html( get_the_author() ) . '' ); echo ' '.$avator .''. $byline . ' '; // WPCS: XSS OK. } /** * Prints a link list of the current categories for the post. * * If additional post types should display categories, add them to the conditional statement at the top. */ function arrival_post_categories() { // Only show categories on post types that have categories. 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__( ', ', 'arrival' ) ); if ( $categories_list ) { /* translators: 1: list of categories. */ printf( '' . esc_html( ' %1$s') . ' ', $categories_list ); // WPCS: XSS OK. } } } /** * Prints a link list of the current tags for the post. * * If additional post types should display tags, add them to the conditional statement at the top. */ function arrival_post_tags() { // Only show tags on post types that have categories. if ( 'post' === get_post_type() ) { /* translators: used between list items, there is a space after the comma */ $tags_list = get_the_tag_list( '', esc_html( ' ') ); if ( $tags_list ) { /* translators: 1: list of tags. */ printf( '' . esc_html__( 'Tagged With: %1$s', 'arrival' ) . ' ', $tags_list ); // WPCS: XSS OK. } } } /** * Prints comments link when comments are enabled. */ function arrival_comments_link() { $icon = arrival_get_icon_svg('comment',14); if ( ! is_single() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) { echo ''.$icon; comments_popup_link( sprintf( wp_kses( /* translators: %s: post title */ __( 'Leave a Comment on %s', 'arrival' ), array( 'span' => array( 'class' => array(), ), ) ), get_the_title() ) ); echo ' '; } } /** * Prints edit post/page link when a user with sufficient priveleges is logged in. */ function arrival_edit_post_link() { $icon = arrival_get_icon_svg('edit',14); edit_post_link( sprintf( wp_kses( /* translators: %s: Name of current post. Only visible to screen readers */ __( 'Edit %s', 'arrival' ), array( 'span' => array( 'class' => array(), ), ) ), get_the_title() ), ''.$icon, ' ' ); } /** * 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 arrival_post_thumbnail( $size='full' ) { if ( post_password_required() || is_attachment() || ! has_post_thumbnail() ) { return; } if ( is_singular() ) : ?>
'skip-lazy' ) ); ?>
post_parent ) ) : $postlink = sprintf( /* translators: %s: original post where attachment was added. */ esc_html_x( 'in %s', 'original post', 'arrival' ), '' . esc_html( get_the_title( $post->post_parent ) ) . '' ); echo ' ' . $postlink . ' '; // WPCS: XSS OK. endif; } /** * Prints HTML with for navigation to previous and next attachment if available. */ function arrival_the_attachment_navigation() { ?>