';
}
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 '
'; // 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 '