%2$s'; $time_string = sprintf( $time_string, esc_attr( get_the_date( DATE_W3C ) ), esc_html( get_the_date() ) ); echo ''; printf( /* translators: %s: publish date. */ esc_html__( 'Published %s', 'canvi' ), $time_string // phpcs:ignore WordPress.Security.EscapeOutput ); echo ''; } } if ( ! function_exists( 'canvi_posted_by' ) ) { /** * Prints HTML with meta information about theme author. * * @return void * @since 1.0.0 * */ function canvi_posted_by() { if ( ! get_the_author_meta( 'description' ) && post_type_supports( get_post_type(), 'author' ) ) { echo ''; printf( /* translators: %s author name. */ esc_html__( 'By %s', 'canvi' ), '' ); echo ''; } } } if ( ! function_exists( 'rocksite_single_meta_footer' ) ) { function rocksite_single_meta_footer() { if ( has_tag() ) { echo '
'; /* translators: used between list items, there is a space after the comma. */ $tags_list = get_the_tag_list( '', ' ' ); if ( $tags_list ) { printf( /* translators: %s: list of tags. */ '', $tags_list // phpcs:ignore WordPress.Security.EscapeOutput ); } echo '
'; } echo '
'; do_action( 'rocksite_action_share_buttons_after' ); echo '
'; } } if ( ! function_exists( 'rocksite_single_meta_categories' ) ) { function rocksite_single_meta_categories() { if ( has_category() || has_tag() ) { echo '
'; /* translators: used between list items, there is a space after the comma. */ $categories_list = get_the_category_list( ' ' ); if ( $categories_list ) { echo $categories_list; // phpcs:ignore WordPress.Security.EscapeOutput } echo '
'; } } } if ( ! function_exists( 'canvi_entry_meta_footer' ) ) { /** * Prints HTML with meta information for the categories, tags and comments. * Footer entry meta is displayed differently in archives and single posts. * * @return void * @since 1.0.0 * */ function canvi_entry_meta_footer() { // Early exit if not a post. if ( 'post' !== get_post_type() ) { return; } // Hide meta information on pages. if ( ! is_single() ) { if ( is_sticky() ) { echo '

' . esc_html_x( 'Featured post', 'Label for sticky posts', 'canvi' ) . '

'; } $post_format = get_post_format(); if ( 'aside' === $post_format || 'status' === $post_format ) { echo '

' . canvi_continue_reading_text() . '

'; // phpcs:ignore WordPress.Security.EscapeOutput } // Posted on. canvi_posted_on(); // Edit post link. edit_post_link( sprintf( /* translators: %s: Name of current post. Only visible to screen readers. */ esc_html__( 'Edit %s', 'canvi' ), '' . get_the_title() . '' ), '', '
' ); if ( has_category() || has_tag() ) { echo '
'; /* translators: used between list items, there is a space after the comma. */ $categories_list = get_the_category_list( __( ', ', 'canvi' ) ); if ( $categories_list ) { printf( /* translators: %s: list of categories. */ '' . esc_html__( 'Categorized as %s', 'canvi' ) . ' ', $categories_list // phpcs:ignore WordPress.Security.EscapeOutput ); } /* translators: used between list items, there is a space after the comma. */ $tags_list = get_the_tag_list( '', ' ' ); if ( $tags_list ) { printf( /* translators: %s: list of tags. */ '' . esc_html__( 'Tagged %s', 'canvi' ) . '', $tags_list // phpcs:ignore WordPress.Security.EscapeOutput ); } echo '
'; } } else { echo '
'; // Posted on. canvi_posted_on(); // Posted by. canvi_posted_by(); // Edit post link. edit_post_link( sprintf( /* translators: %s: Name of current post. Only visible to screen readers. */ esc_html__( 'Edit %s', 'canvi' ), '' . get_the_title() . '' ), '', '' ); echo '
'; if ( has_category() || has_tag() ) { echo '
'; /* translators: used between list items, there is a space after the comma. */ $categories_list = get_the_category_list( __( ', ', 'canvi' ) ); if ( $categories_list ) { printf( /* translators: %s: list of categories. */ '' . esc_html__( 'Categorized as %s', 'canvi' ) . ' ', $categories_list // phpcs:ignore WordPress.Security.EscapeOutput ); } /* translators: used between list items, there is a space after the comma. */ $tags_list = get_the_tag_list( '', __( ', ', 'canvi' ) ); if ( $tags_list ) { printf( /* translators: %s: list of tags. */ '' . esc_html__( 'Tagged %s', 'canvi' ) . '', $tags_list // phpcs:ignore WordPress.Security.EscapeOutput ); } echo '
'; } } } } if ( ! function_exists( 'canvi_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. * * @return void * @since 1.0.0 * */ function canvi_post_thumbnail() { if ( ! canvi_can_show_post_thumbnail() ) { return; } ?>
'eager' ) ); ?>
labels ) && property_exists( $post_type->labels, 'name' ) ) { $post_type_name = $post_type->labels->name; } the_posts_pagination( array( /* translators: There is a space after page. */ 'mid_size' => 0, 'prev_text' => is_rtl() ? canvi_get_icon_svg( 'ui', 'arrow_right', 18 ) : canvi_get_icon_svg( 'ui', 'arrow_left', 18 ), 'next_text' => is_rtl() ? canvi_get_icon_svg( 'ui', 'arrow_left', 18 ) : canvi_get_icon_svg( 'ui', 'arrow_right', 18 ), ) ); } } if ( ! function_exists( 'rocksite_breadcrumbs' ) ) { function rocksite_breadcrumbs() { $type = Rocksite_Helper::get_content_type(); $home = esc_attr( Rocksite_Settings::get( 'breadcrumbs_homepage_name', __( 'Home', 'canvi' ) ) ); $separator = esc_attr( Rocksite_Settings::get( 'breadcrumbs_separator', ' / ' ) ); $display = esc_attr( Rocksite_Settings::get( $type . 'breadcrumbs_show', TRUE ) ); global $post; //Get bredcrumb separator option $sep = '' . $separator . ''; $display = (bool) $display; if ( ! is_front_page() && $display === TRUE ) { echo '
'; echo '
'; } } } if ( ! function_exists( 'rocksite_copyright' ) ) { function rocksite_copyright( $class = '' ) { $copyright = esc_attr( Rocksite_Settings::get( 'footer_copyright_text', __( 'Rocksite Copyright', 'canvi' ) ) ); if ( strlen( $copyright ) > 0 ) { ?>
0 ) { ?>