'; } endif; /* ------------------------------ CONTENT ------------------------------ */ if ( ! function_exists( 'bizness_site_page_head' ) ) : /** * Primary Content Wrapper Start */ function bizness_site_page_head() { if ( is_home() || is_front_page() || is_404() ) return; if ( is_single() ) { if ( ! get_theme_mod('single_post_top_banner_enable') ) { return; } $elements = get_theme_mod('single_post_top_banner_elements',[ 'post-title', 'breadcrumb' ]); } elseif ( is_page() ) { if ( ! get_theme_mod('single_page_top_banner_enable') ) { return; } $elements = get_theme_mod('single_page_top_banner_elements',[ 'post-title', 'breadcrumb' ]); } else { if ( ! get_theme_mod('blog_post_top_banner_enable' ) ) { return; } $elements = get_theme_mod('blog_post_top_banner_elements',[ 'post-title', 'breadcrumb' ]); } if (!empty($elements)) { ?>
'; echo '
'; echo '
'; } endif; if ( ! function_exists( 'bizness_site_primary_content_end' ) ) : /** * Primary Content Wrapper End */ function bizness_site_primary_content_end() { echo '
'; echo '
'; echo ''; } endif; if ( ! function_exists( 'bizness_site_content_sidebar' ) ) : /** * Sidebar Content */ function bizness_site_content_sidebar() { if (bizness_get_sidebar_layout() === 'none') { return; } get_sidebar(); } endif; /* ------------------------------ BLOG PAGE CONTENT ------------------------------ */ if ( ! function_exists( 'bizness_posts_cols_per_row_start' ) ) : /** * Blog Posts Columns Per Row Start */ function bizness_posts_cols_per_row_start() { if ( is_singular() || is_404() ) { return; } $content_layout = get_theme_mod('blog_content_layout','posts-list-layout'); ?>
'; } endif; if ( ! function_exists( 'bizness_posts_navigation' ) ) : /** * Blog Posts navigation */ function bizness_posts_navigation() { $pagination_types = get_theme_mod('blog_pagination_type', 'standard'); if ('standard' === $pagination_types ) { the_posts_pagination( array( 'before_page_number' => '' . esc_html__('Page', 'bizness') . ' ', 'mid_size' => 2, 'prev_text' => sprintf( ' %s', wp_kses( __( 'Prev', 'bizness' ), array( 'span' => array( 'class' => array(), ), ) ) ), 'next_text' => sprintf( '%s ', wp_kses( __( 'Next', 'bizness' ), array( 'span' => array( 'class' => array(), ), ) ) ) ) ); } else { the_posts_navigation( array( 'before_page_number' => '' . esc_html__('Page', 'bizness') . ' ', 'mid_size' => 0, 'prev_text' => sprintf( ' %s', wp_kses( __( 'Older posts', 'bizness' ), array( 'span' => array( 'class' => array(), ), ) ) ), 'next_text' => sprintf( '%s ', wp_kses( __( 'Newer posts', 'bizness' ), array( 'span' => array( 'class' => array(), ), ) ) ) ) ); } } endif; if ( ! function_exists( 'bizness_posts_content_elements' ) ) : /** * Posts Content Elements */ function bizness_posts_content_elements() { $elements = get_theme_mod('blog_post_content_elements',[ 'post-image', 'post-title', 'post-meta', 'post-excerpt' ]); if ( ! empty( $elements ) ) { foreach ( $elements as $index => $element ) { echo '
'; // Is Post Categories if ( $element === 'post-image' ) { $image_size = get_theme_mod('blog_post_image_size','medium_large'); bizness_post_thumbnail($image_size); } // Is Post Title elseif ( $element === 'post-title' ) { bizness_post_title(); } // Is Post Meta elseif ( $element === 'post-meta' ) { $post_meta = get_theme_mod('post_meta_elements',['post-author', 'post-cats','post-date']); if ( !empty( $post_meta )) { bizness_the_post_meta( get_the_ID(),'blog-posts-meta', $post_meta ); } } // Is Post Categories elseif ( $element === 'post-cats' ) { bizness_the_post_meta( get_the_ID(),'single-cats', ['post-cats'] ); } // Is Post Tags elseif ( $element === 'post-tags' ) { bizness_the_post_meta( get_the_ID(),'single-tags', ['post-tags'] ); } // Is Post Content elseif ( $element === 'post-excerpt' ) { bizness_posts_excerpt(); } // Is Read More elseif ( $element === 'read-more' ){ bizness_read_more(); } echo '
'; } } } endif; if ( ! function_exists( 'bizness_posts_excerpt' ) ) : /** * Post Excerpt */ function bizness_posts_excerpt() { ?>
', esc_url( get_permalink() ) ), '' ); ?>
$element ) { echo '
'; // Is Post Categories if ( $element === 'post-image' ) { $image_size = get_theme_mod('single_post_image_size','medium_large'); bizness_post_thumbnail($image_size); } // Is Post Title elseif ( $element === 'post-title' ) { bizness_post_title(); } // Is Post Meta elseif ( $element === 'post-meta' ) { $post_meta = get_theme_mod('post_meta_elements',['post-author', 'post-cats','post-date']); if ( !empty( $post_meta )) { bizness_the_post_meta( get_the_ID(),'single-posts-meta', $post_meta ); } } // Is Post Categories elseif ( $element === 'post-cats' ) { bizness_the_post_meta( get_the_ID(),'single-cats', ['post-cats'] ); } // Is Post Tags elseif ( $element === 'post-tags' ) { bizness_the_post_meta( get_the_ID(),'single-tags', ['post-tags'] ); } // Is Post Content elseif ( $element === 'post-content' ) { bizness_post_content(); } echo '
'; } } } endif; if ( ! function_exists( 'bizness_post_content' ) ) : /** * Post Content */ function bizness_post_content() { ?>
"%s"', 'bizness' ), array( 'span' => array( 'class' => array(), ), ) ), wp_kses_post( get_the_title() ) ) ); ?> '', ) ); ?>
$element ) { echo '
'; // Is Navigation if ( $element === 'navigation' ) { bizness_post_navigation(); } // Is Comments elseif ( $element === 'comments' ) { bizness_post_comment_template(); } // Is Author Box elseif ( $element === 'author-box' ) { bizness_author_box(); } // Is Related Posts elseif ( $element === 'related-posts' ) { bizness_related_posts(); } echo '
'; } } bizness_entry_footer(); } endif; /* ------------------------------ PAGE CONTENT ------------------------------ */ if ( ! function_exists( 'bizness_page_content_elements' ) ) : /** * Page Content Elements */ function bizness_page_content_elements() { $elements = get_theme_mod('single_page_content_elements',[ 'post-image', 'post-title', 'post-content' ]); if ( ! empty( $elements ) ) { foreach ( $elements as $index => $element ) { echo '
'; // Is Post Categories if ( $element === 'post-image' ) { $image_size = get_theme_mod('single_page_image_size','medium_large'); bizness_post_thumbnail($image_size); } // Is Post Title elseif ( $element === 'post-title' ) { bizness_post_title(); } // Is Post Content elseif ( $element === 'post-content' ) { bizness_post_content(); } echo '
'; } } } endif; if ( ! function_exists( 'bizness_page_after_content_elements' ) ) : /** * Page After Content Elements */ function bizness_page_after_content_elements() { $elements = get_theme_mod('single_page_after_content_elements',[ 'comments' ]); if ( ! empty( $elements ) ) { foreach ( $elements as $index => $element ) { echo '
'; // Is Comments if ( $element === 'comments' ) { bizness_post_comment_template(); } echo '
'; } } bizness_entry_footer(); } endif; /* ------------------------------ COMMENTS ------------------------------ */ if ( ! function_exists( 'bizness_comments_element' ) ) : /** * Comments */ function bizness_comments_element() { $comments_element = get_theme_mod('comment_elements',['comment-list','comment-response']); if ( ! empty( $comments_element ) ) { foreach ( $comments_element as $index => $element ) { echo '
'; // Is Comments List if ( $element === 'comment-list' ) { // You can start editing here -- including this comment! if ( have_comments() ) : ?>

' . wp_kses_post( get_the_title() ) . '' ); } else { printf( /* translators: 1: comment count number, 2: title. */ esc_html( _nx( '%1$s thought on “%2$s”', '%1$s thoughts on “%2$s”', $bizness_comment_count, 'comments title', 'bizness' ) ), number_format_i18n( $bizness_comment_count ), // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped '' . wp_kses_post( get_the_title() ) . '' ); } ?>

    'ol', 'short_ping' => true, ) ); ?>

esc_html__( 'Post Comment', 'bizness' ), // Change the title of the reply section 'title_reply' => esc_html__( 'Leave a Reply', 'bizness' ) ); comment_form( $comments_args ); } echo '
'; } } } endif; /* ------------------------------ 404 PAGE ------------------------------ */ if ( ! function_exists( 'bizness_404_content_elements' ) ) : /** * 404 Page Content Elements */ function bizness_404_content_elements() { $elements = [ 'title', 'subtitle', 'description', 'button', 'search', 'categories' ]; if ( ! empty( $elements ) ) { echo '
'; foreach ( $elements as $index => $element ) { echo '
'; // Is Title if ( $element === 'title' ) { ?>

    'count', 'order' => 'DESC', 'show_count' => 1, 'title_li' => '', 'number' => 10, ) ); ?>
'; } echo '
'; } } endif; /* ------------------------------ FOOTER ------------------------------ */ if ( ! function_exists( 'bizness_site_content_end' ) ) : /** * Site Content Wrapper End */ function bizness_site_content_end() { echo '
'; } endif; if ( ! function_exists( 'bizness_footer_main' ) ) : /** * Footer main */ function bizness_footer_main() { bizness_footer_builder(); } endif; if ( ! function_exists( 'bizness_footer_back_to_top_button' ) ) : /** * Footer back to top button */ function bizness_footer_back_to_top_button() { ?>