– ';
/* 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', 0 )) ) {
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;
/* BIO INFO
==================================================== */
if ( ! function_exists( 'alurra_bio_info' ) ) :
function alurra_bio_info() {
$alurra_view_posts_by_text = get_theme_mod( 'alurra_view_posts_by_text', esc_html__('View Posts By', 'alurra' ) );
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 )),
) ); ?>