– ';
/* translators: %s: Name of current post. Only visible to screen readers. */
comments_popup_link( sprintf( __( 'Make a comment on %s', 'alurra' ), get_the_title() ) );
echo '
';
}
}
endif;
/* META POST FORMAT
==================================================== */
if ( ! function_exists( 'alurra_post_format' ) ) :
// Returns the post date
function alurra_post_format() {
$format = get_post_format();
if ( current_theme_supports( 'post-formats', $format ) ) {
printf( '
', get_category_link( $first_category ), $first_category->name ); // phpcs:ignore WordPress.Security.EscapeOutput
}
endif;
/* DISPLAY ALL POST CATEGORIES
==================================================== */
if ( ! function_exists( 'alurra_post_categories' ) ) :
function alurra_post_categories() {
$categories_list = get_the_category_list( esc_attr_x( ', ', 'Used between list items, there is a space after the comma.', 'alurra' ) );
if ( $categories_list ) {
echo sprintf( '
' . esc_html__( 'Categories: ', 'alurra' ) . ' %s
', $categories_list ); // phpcs:ignore WordPress.Security.EscapeOutput
}
}
endif;
/* DISPLAY POST TAGS
==================================================== */
if ( ! function_exists( 'alurra_post_tags' ) ) :
function alurra_post_tags() {
$tags_list = get_the_tag_list( '', esc_html_x( ', ', 'list item separator', 'alurra' ) );
if ( $tags_list ) {
/* translators: 1: list of tags. */
printf( '
' . esc_html__( 'Tags %1$s', 'alurra' ) . '
', $tags_list ); // phpcs:ignore WordPress.Security.EscapeOutput
}
}
endif;
/* DISPLAY FEATURED or CATEGORY LABEL
==================================================== */
if ( ! function_exists( 'alurra_featured_cat_labels' ) ) {
function alurra_featured_cat_labels() {
$alurra_featured_label_text = get_theme_mod( 'alurra_featured_label_text', esc_html__('Featured', 'alurra' ) );
if( is_sticky() && is_home() && ! is_paged() && !esc_attr(get_theme_mod( 'alurra_hide_featured_labels', 1 )) ) {
echo '' . wp_kses_post( $alurra_featured_label_text ) . '';
} else {
alurra_first_category();
}
}
}
/* DISPLAY THE SUMMARY POST META INFO
==================================================== */
if ( ! function_exists( 'alurra_entry_meta' ) ) :
function alurra_entry_meta() {
echo '
';
}
endif;
/* DISPLAY MINI SUMMARY POST META INFO
==================================================== */
if ( ! function_exists( 'alurra_entry_mini_meta' ) ) :
function alurra_entry_mini_meta() {
echo '
' ;
alurra_posted_on();
echo '
';
}
endif;
/* POST FOOTER
==================================================== */
if ( ! function_exists( 'alurra_entry_footer' ) ) :
function alurra_entry_footer() {
echo '';
}
endif;
/* DISPLAY OPTIONAL POST THUMBNAIL
Wraps the post thumbnail in an anchor element on index views,
or a div element when on single views.
==================================================== */
if ( ! function_exists( 'alurra_post_thumbnail' ) ) {
function alurra_post_thumbnail() {
if ( ! alurra_can_show_post_thumbnail() ) {
return;
}
?>
the_title_attribute( array(
'echo' => false )),
) ); ?>
the_title_attribute( array(
'echo' => false )),
) ); ?>
esc_html__( 'Page', 'alurra' ) . ' ',
'mid_size' => 0,
'prev_text' => sprintf(
'%s %s',
is_rtl() ? alurra_get_icon_svg( 'ui', 'arrow_right' ) : alurra_get_icon_svg( 'ui', 'arrow_left' ),
wp_kses( __( 'Newer posts', 'alurra' ),
array(
'span' => array(
'class' => array(),
),
)
)
),
'next_text' => sprintf(
'%s %s',
wp_kses( __( 'Older posts', 'alurra' ),
array(
'span' => array(
'class' => array(),
),
)
),
is_rtl() ? alurra_get_icon_svg( 'ui', 'arrow_left' ) : alurra_get_icon_svg( 'ui', 'arrow_right' )
),
)
);
}
}
/* BLOG NAVIGATION
Navigation for full posts.
==================================================== */
if ( ! function_exists( 'alurra_paging_nav' ) ) :
function alurra_paging_nav() {
global $wp_query;
// Don't print empty markup if there's only one page.
if ( $wp_query->max_num_pages < 2 )
return;
?>
'' . esc_html__( 'Next post', 'alurra' ) . ' ' .
'%title',
'prev_text' => '' . esc_html__( 'Previous post', 'alurra' ) . ' ' .
'%title',
) );
endif;
}
endif;
/* MULTIPAGE NAVIGATION
Navigation for splitting posts or pages into more than one page.
==================================================== */
if ( ! function_exists( 'alurra_multipage_pagination' ) ) :
function alurra_multipage_pagination() {
wp_link_pages( array(
'before' => '