'; $content_wrapper .= '
'; } else { $content_wrapper = '
'; } // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped $output = apply_filters('blogbaster_content_wrapper_start',$content_wrapper); echo $output; } endif; if ( ! function_exists('blogbaster_content_wrapper_end') ) : /** * Print end part of wrapper markup for site content */ function blogbaster_content_wrapper_end(){ $content_wrapper = ''; if( !is_search() && !is_404() ) { $content_wrapper = '
'; $content_wrapper .= '
'; } else { $content_wrapper .= ''; } // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped $output = apply_filters('blogbaster_content_wrapper_end',$content_wrapper); echo $output; } endif; if ( ! function_exists( 'blogbaster_posted_on' ) ) : /** * Prints HTML with meta information for the current post-date/time. */ function blogbaster_posted_on() { echo ''; the_time( get_option( 'date_format' ) ); echo ''; echo ''; echo esc_html( get_the_modified_date() ); echo ''; } endif; if ( ! function_exists( 'blogbaster_posted_by' ) ) : /** * Prints HTML with meta information for the current author. */ function blogbaster_posted_by() { echo ''; printf( /* translators: %s: Author name */ __( 'by %s', 'blogbaster' ), '' . esc_html( get_the_author_meta( 'display_name' ) ) . '' ); echo ''; } endif; if ( ! function_exists( 'blogbaster_post_meta' ) ) : /** * Prints HTML with post meta information. */ function blogbaster_post_meta() { if ( is_single() ) { if ( get_theme_mod( 'hide_single_posted_by' ) != 1 ) { blogbaster_posted_by(); } if ( get_theme_mod( 'hide_single_posted_on' ) != 1 ) { blogbaster_posted_on(); } } else { if ( get_theme_mod( 'hide_posted_by' ) != 1 ) { blogbaster_posted_by(); } if ( get_theme_mod( 'hide_posted_on' ) != 1 ) { blogbaster_posted_on(); } } } endif; if ( ! function_exists( 'blogbaster_post_cats' ) ) : /** * Prints HTML with categories list of the post. */ function blogbaster_post_cats() { if ( 'post' === get_post_type() ) { $categories = get_the_category(); $out = ''; if( $categories ){ foreach( $categories as $category ) { $out .= '' . esc_html( $category->name ) . ', '; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } $categories_list = trim( $out, ', ' ); /* translators: 1: list of categories with comma, there is a space after the comma */ printf( '' . esc_html__( 'Posted in %1$s', 'blogbaster' ) . '', $categories_list ); // WPCS: XSS OK. } } } endif; if ( ! function_exists( 'blogbaster_post_category' ) ) : /** * Prints first category of the post. */ function blogbaster_post_category() { if ( 'post' === get_post_type() ) { $categories = get_the_category(); if( ! is_single() ) { $badge_class = ' badge badge-pill badge-info'; } if( $categories[0] ){ echo ''. esc_html( $categories[0]->name ) . ''; } } } endif; if ( ! function_exists( 'blogbaster_entry_footer' ) ) : /** * Prints HTML with meta information for the categories, tags and comments. */ function blogbaster_entry_footer() { // Hide category and tag text for pages. if ( 'post' === get_post_type() ) { /* translators: used between list items, there is a space after the comma */ $categories_list = get_the_category_list( esc_html__( ', ', 'blogbaster' ) ); if ( $categories_list && get_theme_mod( 'hide_single_posted_in' ) != 1 ) { /* translators: 1: list of categories. */ printf( '' . esc_html__( 'Posted in %1$s', 'blogbaster' ) . '', $categories_list ); } $tags_list = get_the_tag_list('','',''); if ( $tags_list && get_theme_mod( 'hide_single_tagged' ) != 1 ) { /* translators: 1: list of tags. */ printf( '' . esc_html__( 'tags%1$s', 'blogbaster' ) . '', $tags_list ); } } if ( ! is_single() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) { echo ''; comments_popup_link( sprintf( wp_kses( /* translators: %s: post title */ __( 'Leave a Comment on %s', 'blogbaster' ), array( 'span' => array( 'class' => array(), ), ) ), get_the_title() ) ); echo ''; } edit_post_link( sprintf( wp_kses( /* translators: %s: Name of current post. Only visible to screen readers */ __( 'Edit %s', 'blogbaster' ), array( 'span' => array( 'class' => array(), ), ) ), get_the_title() ), '', '' ); } endif; if ( ! function_exists( 'blogbaster_comment' ) ) : /** * Used as a callback by wp_list_comments() for displaying the comments. */ function blogbaster_comment( $comment, $args, $depth ) { if ( 'pingback' == $comment->comment_type || 'trackback' == $comment->comment_type ) : ?>
  • >
    ', '' ); ?>
  • >
    'rounded-circle' ) ); ?>
    says:', 'blogbaster' ), sprintf( '%s', get_comment_author_link() ) ); ?>
    Edit', 'blogbaster' ), '', '' ); ?>
    comment_approved ) : ?>

    'div-comment', 'depth' => $depth, 'max_depth' => $args['max_depth'], 'before' => '
    ', 'after' => '
    ' ) ) ); ?>
  • '; } if ( class_exists( 'WooCommerce' ) && get_theme_mod('show_cart_menu_item') == 1 ) { $cartcount = WC()->cart->get_cart_contents_count(); if ($cartcount > 0) { $cartcount_print = ''.absint($cartcount).''; } else { $cartcount_print = ''; } $items .= '
    '.$cartcount_print.'
    '; } $output = apply_filters( 'blogbaster_add_navbar_items', $items ); echo $output; } endif;