%2$s'; 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()) ); $posted_on = sprintf( '' ); echo '
  • ' . $posted_on . '
  • '; // WPCS: XSS OK. } endif; if (!function_exists('blogger_buzz_posted_by')) : /** * Prints HTML with meta information for the current author. */ function blogger_buzz_posted_by(){ echo '
  • ' . esc_html(get_the_author()) . '
  • '; // WPCS: XSS OK. } endif; if (!function_exists('blogger_buzz_comments')) : /** * Prints HTML with meta information for the current author. */ function blogger_buzz_comments(){ echo '
  • '; comments_popup_link( sprintf( wp_kses( /* translators: %s: post title */ __('Leave a Comment on %s', 'blogger-buzz'), array( 'span' => array( 'class' => array(), ), ) ), get_the_title() ) ); echo '
  • '; // WPCS: XSS OK. } endif; /** * Category Lists. */ if (!function_exists('blogger_buzz_category')) : function blogger_buzz_category(){ /* translators: used between list items, there is a space after the comma */ $categories_list = get_the_category(); foreach ($categories_list as $category) { echo ' '; } } endif; if (!function_exists('blogger_buzz_tags')) : function blogger_buzz_tags(){ /* translators: used between list items, there is a space after the comma */ $posttags = get_the_tags(); $count = 0; $sep = '
  • '; if ($posttags) { foreach ($posttags as $tag) { $count++; echo $sep . '' . '#' . esc_attr($tag->name) . ''; $sep = ', '; if ($count > 10) break; } echo '
  • '; } } endif; if (!function_exists('blogger_buzz_entry_footer')) : /** * Prints HTML with meta information for the categories, tags and comments. */ function blogger_buzz_entry_footer(){ edit_post_link( sprintf( wp_kses( /* translators: %s: Name of current post. Only visible to screen readers */ __('Edit %s', 'blogger-buzz'), array( 'span' => array( 'class' => array(), ), ) ), get_the_title() ), '', '' ); } endif; if (!function_exists('blogger_buzz_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. */ function blogger_buzz_post_thumbnail(){ if (post_password_required() || is_attachment() || !has_post_thumbnail()) { return; } if (is_singular()) : ?>
    '; if (!empty($social_icon)) : $social_icon = json_decode($social_icon); foreach ($social_icon as $icon): echo '
  • '; endforeach; endif; if ($header_layout == 'layout_two' && $search == 'enable'): echo '
  • '; endif; if ($header_layout == 'layout_two' && $sidenav == 'enable'): echo '
  • '; endif; echo ''; } endif; if (!function_exists('blogger_buzz_site_branding')): /** * Site Branding. */ function blogger_buzz_site_branding(){ $header_layout = get_theme_mod('blogger_buzz_header_layout','layout_one'); ?>

    theme_location == 'menu-1'): $header_layout = get_theme_mod('blogger_buzz_header_layout', 'layout_one'); $search_options = get_theme_mod('blogger_buzz_enable_search_icon', 'enable'); $sidenav = get_theme_mod('blogger_buzz_enable_sidenav', 'enable'); if( $header_layout != 'layout_one' && $header_layout != 'layout_two' ): if ($search_options == 'enable'): $items .='
  • '; endif; if ($sidenav == 'enable'): $items .= '
  • '; endif; endif; endif; return $items; } add_filter('wp_nav_menu_items','blogger_buzz_add_last_nav_item', 10, 2); } /** * Posts format declaration function. * * @since 1.0.0 */ if (!function_exists('blogger_buzz_post_format_media')) : function blogger_buzz_post_format_media(){ global $post; $postformat = get_post_format(); $post_layout = get_theme_mod('blogger_buzz_blog_layout', 'grid_right_sidebar'); $imagesize = 'post-thumbnail'; if ($postformat == "gallery") { if (function_exists('has_block') && has_block('gallery', $post->post_content)) { $post_blocks = parse_blocks($post->post_content); $key = array_search('core/gallery', array_column($post_blocks, 'blockName')); $gallery_attachment_ids = $post_blocks[$key]['attrs']['ids']; }else { // gets the gallery info $gallery = get_post_gallery( $post->ID, false ); $gallery_attachment_ids = array(); if( is_array($gallery) && count($gallery) and isset($gallery['ids'])) { // makes an array of image ids $gallery_attachment_ids = explode ( ",", $gallery['ids'] ); } } if ( ! empty( $gallery_attachment_ids ) ){ ?>
    esc_html($prev, 'blogger-buzz'), 'next_text' => esc_html($next, 'blogger-buzz'), ) ); else: the_posts_pagination( array( 'prev_text' => esc_html__('Previous', 'blogger-buzz'), 'next_text' => esc_html__('Next', 'blogger-buzz'), ) ); endif; else: if (!empty($prev) || !empty($next)): the_posts_navigation( array( 'prev_text' => esc_html($prev, 'blogger-buzz'), 'next_text' => esc_html($next, 'blogger-buzz'), ) ); else: the_posts_navigation( array( 'prev_text' => esc_html__('Older Posts', 'blogger-buzz'), 'next_text' => esc_html__('Newer Posts', 'blogger-buzz'), ) ); endif; endif; } endif; /** * * Home Page Blog Posts Meta. * */ function blogger_buzz_post_meta(){ $enable_meta = get_theme_mod('blogger_buzz_enable_blog_meta', 'enable'); $date = get_theme_mod('blogger_buzz_posts_date', true); $author = get_theme_mod('blogger_buzz_posts_author', true); $comments = get_theme_mod('blogger_buzz_posts_comments', true); if ($enable_meta == 'enable') : ?>
    '.esc_html__('Sparkle Themes','blogger-buzz').'' ); } } add_action( 'blogger_buzz_copyright', 'blogger_buzz_footer_copyright', 5 ); /** * * Blog Posts Meta. * */ function blogger_buzz_blog_post_meta(){ $enable_meta = get_theme_mod('blogger_buzz_enable_meta', 'enable'); $date = get_theme_mod('blogger_buzz_blog_date', true); $author = get_theme_mod('blogger_buzz_blog_author', true); $comments = get_theme_mod('blogger_buzz_blog_comments', true); $tags = get_theme_mod('blogger_buzz_blog_tags', true); if ($enable_meta == 'enable') : ?>
    '; } } endif; add_action('wp_head', 'blogger_buzz_preloader', 25); if (!function_exists('blogger_buzz_dynamic_preloader')) { /** * Preloader Frontend Section area */ function blogger_buzz_dynamic_preloader(){ ?>