'page', 'page_id' => $bozu_cta_page, ); } $homepage_cta_button_text = get_theme_mod( 'homepage_cta_button_text',$bozu_default['homepage_cta_button_text'] ); $header_banner_button_link = get_theme_mod( 'header_banner_button_link',$bozu_default['header_banner_button_link'] ); $cta_link_tab = get_theme_mod( 'cta_link_tab',$bozu_default['cta_link_tab'] ); $ed_cta_image_overlay = get_theme_mod( 'ed_cta_image_overlay',$bozu_default['ed_cta_image_overlay'] ); if (!empty($bozu_cta_page_args)) { $bozu_cta_page_query = new WP_Query($bozu_cta_page_args); while ($bozu_cta_page_query->have_posts()): $bozu_cta_page_query->the_post(); $thumb = wp_get_attachment_image_src(get_post_thumbnail_id(get_the_ID()), 'full'); $url = $thumb['0']; ?>
esc_attr($number_of_testimonial), 'orderby' => 'post__in', 'post_type' => 'page', 'post__in' => $bozu_testimonial_page, ); $bozu_testimonial_query = new WP_Query($bozu_testimonial_args); ?>
data-background="">

have_posts()) : while ($bozu_testimonial_query->have_posts()) : $bozu_testimonial_query->the_post(); if (has_post_thumbnail()) { $thumb = wp_get_attachment_image_src(get_post_thumbnail_id(get_the_ID()), 'medium'); $url = $thumb['0']; } else { $url = ''; } ?>
<?php the_title_attribute(); ?>

esc_attr($number_of_slider), 'orderby' => 'post__in', 'post_type' => 'page', 'post__in' => $bozu_slider_page, ); $bozu_slider_query = new WP_Query($bozu_slider_args); ?>
have_posts()) : while ($bozu_slider_query->have_posts()) : $bozu_slider_query->the_post(); ?>
'page', 'page_id' => $bozu_about_page, ); } if (!empty($bozu_about_page_args)) { $bozu_about_page_query = new WP_Query($bozu_about_page_args); while ($bozu_about_page_query->have_posts()): $bozu_about_page_query->the_post(); if (has_post_thumbnail()) { $thumb = wp_get_attachment_image_src(get_post_thumbnail_id(get_the_ID()), 'full'); $url = $thumb['0']; } ?>
1, 'post_type' => 'page', 'page_id' => $bozu_services_page, ); $bozu_services_query = new WP_Query($bozu_services_args); ?>

have_posts()) : while ($bozu_services_query->have_posts()) : $bozu_services_query->the_post(); ?>
2, 'orderby' => 'post__in', 'post_type' => 'page', 'post__in' => $bozu_services_pages, ); $bozu_services_add_page_query = new WP_Query($bozu_services_add_page_args); ?>
have_posts()) : while ($bozu_services_add_page_query->have_posts()) : $bozu_services_add_page_query->the_post(); ?>

  • 'bozu-social-menu', 'link_before' => '', 'link_after' => '', 'container' => 'div', 'container_class' => 'social-menu', 'depth' => 1, )); ?>

implode( '&family=', $font_families ), 'display' => 'swap', ), 'https://fonts.googleapis.com/css2' ); return esc_url_raw($fonts_url); } endif; if( !function_exists('bozu_read_more_render') ): function bozu_read_more_render(){ $bozu_default = bozu_get_default_theme_options(); $ed_post_excerpt = get_theme_mod( 'ed_post_excerpt',$bozu_default['ed_post_excerpt'] ); if( $ed_post_excerpt ){ ?>
theme_location ) { $svg = Bozu_SVG_Icons::get_theme_svg_name( $item->url ); if ( empty( $svg ) ) { $svg = bozu_the_theme_svg( 'link',$return = true ); } $item_output = str_replace( $args->link_after, '' . $svg, $item_output ); } return $item_output; } endif; add_filter( 'walker_nav_menu_start_el', 'bozu_social_menu_icon', 10, 4 ); if( !function_exists( 'bozu_add_sub_toggles_to_main_menu' ) ) : function bozu_add_sub_toggles_to_main_menu( $args, $item, $depth ) { // Add sub menu toggles to the Expanded Menu with toggles. if( isset( $args->show_toggles ) && $args->show_toggles ){ // Wrap the menu item link contents in a div, used for positioning. $args->before = ''; // Add sub menu icons to the primary menu without toggles. }elseif( 'bozu-primary-menu' === $args->theme_location ){ if( in_array( 'menu-item-has-children', $item->classes, true ) ){ $args->after = ''.bozu_the_theme_svg('chevron-down',true).''; }else{ $args->after = ''; } } return $args; } endif; add_filter( 'nav_menu_item_args', 'bozu_add_sub_toggles_to_main_menu', 10, 3 ); if( !function_exists( 'bozu_sanitize_sidebar_option_meta' ) ) : // Sidebar Option Sanitize. function bozu_sanitize_sidebar_option_meta( $input ){ $metabox_options = array( 'global-sidebar','left-sidebar','right-sidebar','no-sidebar' ); if( in_array( $input,$metabox_options ) ){ return $input; }else{ return ''; } } endif; if( !function_exists( 'bozu_page_lists' ) ) : // Page List. function bozu_page_lists(){ $page_lists = array(); $page_lists[''] = esc_html__( '-- Select Page --','bozu' ); $pages = get_pages(); foreach( $pages as $page ){ $page_lists[$page->ID] = $page->post_title; } return $page_lists; } endif; if( !function_exists( 'bozu_sanitize_post_layout_option_meta' ) ) : // Sidebar Option Sanitize. function bozu_sanitize_post_layout_option_meta( $input ){ $metabox_options = array( 'global-layout','layout-1','layout-2' ); if( in_array( $input,$metabox_options ) ){ return $input; }else{ return ''; } } endif; if( !function_exists( 'bozu_sanitize_header_overlay_option_meta' ) ) : // Sidebar Option Sanitize. function bozu_sanitize_header_overlay_option_meta( $input ){ $metabox_options = array( 'global-layout','enable-overlay' ); if( in_array( $input,$metabox_options ) ){ return $input; }else{ return ''; } } endif; /** * Bozu SVG Icon helper functions * * @package Bozu * @since 1.0.0 */ if ( ! function_exists( 'bozu_the_theme_svg' ) ): /** * Output and Get Theme SVG. * Output and get the SVG markup for an icon in the Bozu_SVG_Icons class. * * @param string $svg_name The name of the icon. * @param string $group The group the icon belongs to. * @param string $color Color code. */ function bozu_the_theme_svg( $svg_name, $return = false ) { if( $return ){ return bozu_get_theme_svg( $svg_name ); //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Escaped in bozu_get_theme_svg();. }else{ echo bozu_get_theme_svg( $svg_name ); //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Escaped in bozu_get_theme_svg();. } } endif; if ( ! function_exists( 'bozu_get_theme_svg' ) ): /** * Get information about the SVG icon. * * @param string $svg_name The name of the icon. * @param string $group The group the icon belongs to. * @param string $color Color code. */ function bozu_get_theme_svg( $svg_name ) { // Make sure that only our allowed tags and attributes are included. $svg = wp_kses( Bozu_SVG_Icons::get_svg( $svg_name ), array( 'svg' => array( 'class' => true, 'xmlns' => true, 'width' => true, 'height' => true, 'viewbox' => true, 'aria-hidden' => true, 'role' => true, 'focusable' => true, ), 'path' => array( 'fill' => true, 'fill-rule' => true, 'd' => true, 'transform' => true, ), 'polygon' => array( 'fill' => true, 'fill-rule' => true, 'points' => true, 'transform' => true, 'focusable' => true, ), ) ); if ( ! $svg ) { return false; } return $svg; } endif; if( !function_exists( 'bozu_post_category_list' ) ) : // Post Category List. function bozu_post_category_list( $select_cat = true ){ $post_cat_lists = get_categories( array( 'hide_empty' => '0', 'exclude' => '1', ) ); $post_cat_cat_array = array(); if( $select_cat ){ $post_cat_cat_array[''] = esc_html__( '-- Select Category --','bozu' ); } foreach ( $post_cat_lists as $post_cat_list ) { $post_cat_cat_array[$post_cat_list->slug] = $post_cat_list->name; } return $post_cat_cat_array; } endif; if( !function_exists('bozu_sanitize_meta_pagination') ): /** Sanitize Enable Disable Checkbox **/ function bozu_sanitize_meta_pagination( $input ) { $valid_keys = array('global-layout','no-navigation','norma-navigation','ajax-next-post-load'); if ( in_array( $input , $valid_keys ) ) { return $input; } return ''; } endif; if( !function_exists('bozu_disable_post_views') ): /** Disable Post Views **/ function bozu_disable_post_views() { add_filter('booster_extension_filter_views_ed', function ( ) { return false; }); } endif; if( !function_exists('bozu_disable_post_read_time') ): /** Disable Read Time **/ function bozu_disable_post_read_time() { add_filter('booster_extension_filter_readtime_ed', function ( ) { return false; }); } endif; if( !function_exists('bozu_disable_post_like_dislike') ): /** Disable Like Dislike **/ function bozu_disable_post_like_dislike() { add_filter('booster_extension_filter_like_ed', function ( ) { return false; }); } endif; if( !function_exists('bozu_disable_post_author_box') ): /** Disable Author Box **/ function bozu_disable_post_author_box() { add_filter('booster_extension_filter_ab_ed', function ( ) { return false; }); } endif; add_filter('booster_extension_filter_ss_ed', function ( ) { return false; }); if( !function_exists('bozu_disable_post_reaction') ): /** Disable Reaction **/ function bozu_disable_post_reaction() { add_filter('booster_extension_filter_reaction_ed', function ( ) { return false; }); } endif; if( !function_exists('bozu_post_floating_nav') ): function bozu_post_floating_nav(){ $bozu_default = bozu_get_default_theme_options(); $ed_floating_next_previous_nav = get_theme_mod( 'ed_floating_next_previous_nav',$bozu_default['ed_floating_next_previous_nav'] ); if( 'post' === get_post_type() && $ed_floating_next_previous_nav ){ $next_post = get_next_post(); $prev_post = get_previous_post(); if( isset( $prev_post->ID ) ){ $prev_link = get_permalink( $prev_post->ID );?>
ID,'medium' ) ){ ?> ID,'medium' ) ); ?> ID ) ); ?>
ID ) ){ $next_link = get_permalink( $next_post->ID );?>
ID,'medium' ) ){ ?> ID,'medium' ) ); ?> ID ) ); ?>
ID ) ){ $next_post_id = $next_post->ID; echo '
'; } } } } endif; add_action( 'bozu_navigation_action','bozu_single_post_navigation',30 ); if ( ! function_exists( 'bozu_header_toggle_search' ) ): /** * Header Search **/ function bozu_header_toggle_search() { $bozu_default = bozu_get_default_theme_options(); $ed_header_search = get_theme_mod( 'ed_header_search', $bozu_default['ed_header_search'] ); $ed_header_search_top_category = get_theme_mod( 'ed_header_search_top_category', $bozu_default['ed_header_search_top_category'] ); $ed_header_search_recent_posts = absint( get_theme_mod( 'ed_header_search_recent_posts',$bozu_default['ed_header_search_recent_posts'] ) ); if( $ed_header_search ){ ?> 'post', 'posts_per_page' => 5,'post__not_in' => get_option("sticky_posts") ) ); if( $related_posts_query->have_posts() ): ?> '0', 'exclude' => '1', ) ); $slug_counts = array(); foreach( $post_cat_lists as $post_cat_list ){ if( $post_cat_list->count >= 1 ){ $slug_counts[] = array( 'count' => $post_cat_list->count, 'slug' => $post_cat_list->slug, 'name' => $post_cat_list->name, 'cat_ID' => $post_cat_list->cat_ID, 'description' => $post_cat_list->category_description, ); } } if( $slug_counts ){?>
'bozu-social-menu', 'link_before' => '', 'link_after' => '', 'container' => 'div', 'container_class' => 'social-menu', 'depth' => 1, )); ?>
array( 'background_color' => '#ffffff', 'bozu_primary_color' => $bozu_default['bozu_primary_color'], 'bozu_secondary_color' => $bozu_default['bozu_secondary_color'], 'bozu_general_color' => $bozu_default['bozu_general_color'], ), 'dark' => array( 'background_color' => '#222222', 'bozu_primary_color' => $bozu_default['bozu_primary_color_dark'], 'bozu_secondary_color' => $bozu_default['bozu_secondary_color_dark'], 'bozu_general_color' => $bozu_default['bozu_general_color_dark'], ), 'fancy' => array( 'background_color' => '#faf7f2', 'bozu_primary_color' => $bozu_default['bozu_primary_color_fancy'], 'bozu_secondary_color' => $bozu_default['bozu_secondary_color_fancy'], 'bozu_general_color' => $bozu_default['bozu_general_color_fancy'], ), ); if( isset( $colors_schema[$current_color] ) ){ return $colors_schema[$current_color]; } return; } endif; if ( ! function_exists( 'bozu_color_schema_color_action' ) ) : function bozu_color_schema_color_action() { if( isset( $_POST['currentColor'] ) && sanitize_text_field( wp_unslash( $_POST['currentColor'] ) ) ){ $current_color = sanitize_text_field( wp_unslash( $_POST['currentColor'] ) ); $color_schemes = bozu_color_schema_color( $current_color ); if ( $color_schemes ) { echo json_encode( $color_schemes ); } } wp_die(); } endif; add_action( 'wp_ajax_nopriv_bozu_color_schema_color', 'bozu_color_schema_color_action' ); add_action( 'wp_ajax_bozu_color_schema_color', 'bozu_color_schema_color_action' ); if( ! function_exists( 'bozu_iframe_escape' ) ): /** Escape Iframe **/ function bozu_iframe_escape( $input ){ $all_tags = array( 'iframe'=>array( 'width'=>array(), 'height'=>array(), 'src'=>array(), 'frameborder'=>array(), 'allow'=>array(), 'allowfullscreen'=>array(), ), 'video'=>array( 'width'=>array(), 'height'=>array(), 'src'=>array(), 'style'=>array(), 'controls'=>array(), ) ); return wp_kses($input,$all_tags); } endif; if( class_exists( 'Booster_Extension_Class' ) ){ add_filter('booster_extemsion_content_after_filter','bozu_after_content_pagination'); } if( !function_exists('bozu_after_content_pagination') ): function bozu_after_content_pagination($after_content){ $pagination_single = wp_link_pages( array( 'before' => '', 'echo' => false ) ); $after_content = $pagination_single.$after_content; return $after_content; } endif; if( !function_exists('bozu_excerpt_content') ): function bozu_excerpt_content(){ $bozu_default = bozu_get_default_theme_options(); $ed_post_excerpt = get_theme_mod( 'ed_post_excerpt',$bozu_default['ed_post_excerpt'] ); if( $ed_post_excerpt ){ ?>
'post', 'posts_per_page' => absint( get_theme_mod( 'number_of_footer_related_post')), 'cat' => esc_attr(get_theme_mod( 'select_category_for_related_post')), ) ); if( $footer_related_posts_query->have_posts() ): ?> %2$s '.bozu_the_theme_svg('arrow-right',true).'', esc_url( get_permalink( get_the_ID() ) ), /* translators: %s: Post title. */ sprintf( __( 'Continue reading "%s"', 'bozu' ), get_the_title( get_the_ID() ) ) ); return $link; } add_filter( 'excerpt_more', 'bozu_excerpt_more' );