', the_custom_logo(), ''; } if( esc_attr(get_theme_mod( 'alurra_show_site_title', 1 ) ) ) { printf( '<%1$s id="site-title">%3$s', is_front_page() && is_home() ? 'h1' : 'p', esc_url( home_url( '/' ) ), esc_html( get_bloginfo( 'name' ) ) ); } } endif; /* POST DATES ==================================================== */ if ( ! function_exists( 'alurra_posted_on' ) ) : // Returns the post date function alurra_posted_on() { $time_string = ''; if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) { $time_string = ''; } $time_string = sprintf( $time_string, esc_attr( get_the_date( DATE_W3C ) ), esc_html( get_the_date() ), esc_attr( get_the_modified_date( DATE_W3C ) ), esc_html( get_the_modified_date() ) ); echo '
  • ' . esc_html__( 'Posted on ', 'alurra' ) . '' . $time_string . '
  • '; } endif; /* UPDATED POST DATE ==================================================== */ if ( ! function_exists( 'alurra_updated' ) ) : function alurra_updated() { printf( '
  • ' . esc_html__( 'Updated %s', 'alurra' ) .'
  • ', get_the_modified_date() ); } endif; /* META AUTHOR INFO ==================================================== */ if ( ! function_exists( 'alurra_posted_by' ) ) : function alurra_posted_by() { printf( '
  • %1$s %3$s
  • ', esc_html__( 'by', 'alurra' ), esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), esc_html( get_the_author() ) ); } endif; /* META COMMENT COUNT & LINK ==================================================== */ if ( ! function_exists( 'alurra_comment_link' ) ) : function alurra_comment_link() { if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ) { 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( '
  • %2$s
  • ', esc_url( get_post_format_link( $format ) ), esc_html(get_post_format_string( $format )) ); } } endif; /* META EDIT LINK ==================================================== */ if ( ! function_exists( 'alurra_edit_link' ) ) : function alurra_edit_link() { edit_post_link( sprintf( /* translators: %s: Name of current post */ __( 'Edit Post%s', 'alurra' ), get_the_title() ), '' ); } endif; /* DISPLAY A SINGLE POST CATEGORY ==================================================== */ if ( ! function_exists( 'alurra_first_category' ) ) : function alurra_first_category() { $category = get_the_category(); $first_category = $category[0]; echo sprintf( '', 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 ''; } 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 '
    '; printf( '
    %s
    ', get_avatar( get_the_author_meta( 'user_email' ), 150 ) ); echo '
    '; printf( '

    %s

    ', sprintf( esc_html__( 'Published by %s', 'alurra' ), get_the_author() ) ); echo '

    '; the_author_meta( 'description' ); 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 )), ) ); ?>
    max_num_pages < 2 ) return; ?> '' . ( is_singular( 'post' ) ? esc_html__( 'Next post', 'alurra' ) : esc_html__( 'Next', 'alurra' ) ) . ' %title', 'prev_text' => '' . ( is_singular( 'post' ) ? esc_html__( 'Previous post', 'alurra' ) : esc_html__( 'Previous', 'alurra' ) ) . ' %title', ) ); } 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' => '', 'link_before' => '', 'link_after' => '', 'pagelink' => ' %', 'separator' => ', ', ) ); } endif;