'primary', 'container' => '', 'fallback_cb' => 'bizroot_primary_navigation_fallback', ) ); ?>
'footer', 'container' => 'div', 'container_id' => 'footer-navigation', 'depth' => 1, 'fallback_cb' => false, 'echo' => false, ) ); // Copyright content. $copyright_text = bizroot_get_option( 'copyright_text' ); $copyright_text = apply_filters( 'bizroot_filter_copyright_text', $copyright_text ); if ( ! empty( $copyright_text ) ) { $copyright_text = wp_kses_data( $copyright_text ); } // Powered by content. $powered_by_text = sprintf( __( 'Bizroot by %s', 'bizroot' ), '' . __( 'WEN Themes', 'bizroot' ) . '' ); $show_social_in_footer = bizroot_get_option( 'show_social_in_footer' ); $column_count = 0; if ( $footer_menu_content ) { $column_count++; } if ( $copyright_text ) { $column_count++; } if ( $powered_by_text ) { $column_count++; } if ( true === $show_social_in_footer && has_nav_menu( 'social' ) ) { $column_count++; } ?>
ID, 'bizroot_theme_settings', true ); if ( isset( $post_options['post_layout'] ) && ! empty( $post_options['post_layout'] ) ) { $global_layout = $post_options['post_layout']; } } // Include primary sidebar. if ( 'no-sidebar' !== $global_layout ) { get_sidebar(); } // Include Secondary sidebar. switch ( $global_layout ) { case 'three-columns': get_sidebar( 'secondary' ); break; default: break; } } endif; add_action( 'bizroot_action_sidebar', 'bizroot_add_sidebar' ); if ( ! function_exists( 'bizroot_custom_posts_navigation' ) ) : /** * Posts navigation. * * @since 1.0.0 */ function bizroot_custom_posts_navigation() { $pagination_type = bizroot_get_option( 'pagination_type' ); switch ( $pagination_type ) { case 'default': the_posts_navigation(); break; case 'numeric': if ( function_exists( 'wp_pagenavi' ) ) { wp_pagenavi(); } else { the_posts_pagination(); } break; default: break; } } endif; add_action( 'bizroot_action_posts_navigation', 'bizroot_custom_posts_navigation' ); if ( ! function_exists( 'bizroot_add_image_in_single_display' ) ) : /** * Add image in single post. * * @since 1.0.0 */ function bizroot_add_image_in_single_display() { global $post; if ( has_post_thumbnail() ) { $values = get_post_meta( $post->ID, 'bizroot_theme_settings', true ); $bizroot_theme_settings_single_image = isset( $values['single_image'] ) ? esc_attr( $values['single_image'] ) : ''; if ( ! $bizroot_theme_settings_single_image ) { $bizroot_theme_settings_single_image = bizroot_get_option( 'single_image' ); } if ( 'disable' !== $bizroot_theme_settings_single_image ) { $args = array( 'class' => 'aligncenter', ); the_post_thumbnail( esc_attr( $bizroot_theme_settings_single_image ), $args ); } } } endif; add_action( 'bizroot_single_image', 'bizroot_add_image_in_single_display' ); if ( ! function_exists( 'bizroot_add_breadcrumb' ) ) : /** * Add breadcrumb. * * @since 1.0.0 */ function bizroot_add_breadcrumb() { // Bail if Breadcrumb disabled. $breadcrumb_type = bizroot_get_option( 'breadcrumb_type' ); if ( 'disabled' === $breadcrumb_type ) { return; } // Bail if Home Page. if ( is_front_page() || is_home() ) { return; } echo ''; return; } endif; add_action( 'bizroot_action_before_content', 'bizroot_add_breadcrumb' , 7 ); if ( ! function_exists( 'bizroot_footer_goto_top' ) ) : /** * Go to top. * * @since 1.0.0 */ function bizroot_footer_goto_top() { echo ''; } endif; add_action( 'bizroot_action_after', 'bizroot_footer_goto_top', 20 ); if ( ! function_exists( 'bizroot_add_front_page_widget_area' ) ) : /** * Add Front Page Widget area. * * @since 1.0.0 */ function bizroot_add_front_page_widget_area() { $current_id = bizroot_get_index_page_id(); if ( is_front_page() && get_queried_object_id() === $current_id && $current_id > 0 ) { echo ''; } } endif; add_action( 'bizroot_action_before_content', 'bizroot_add_front_page_widget_area', 7 ); if ( ! function_exists( 'bizroot_check_home_page_content' ) ) : /** * Check home page content status. * * @since 1.0.0 * * @param bool $status Home page content status. * @return bool Modified home page content status. */ function bizroot_check_home_page_content( $status ) { if ( is_front_page() ) { $home_content_status = bizroot_get_option( 'home_content_status' ); if ( false === $home_content_status ) { $status = false; } } return $status; } endif; add_action( 'bizroot_filter_home_page_content', 'bizroot_check_home_page_content' ); if ( ! function_exists( 'bizroot_add_footer_contact_section' ) ) : /** * Display footer contact section. * * @since 1.0.0 */ function bizroot_add_footer_contact_section() { $show_footer_contact = bizroot_get_option( 'show_footer_contact' ); if ( true !== $show_footer_contact ) { return; } $footer_contact_email = bizroot_get_option( 'footer_contact_email' ); $footer_contact_address = bizroot_get_option( 'footer_contact_address' ); $footer_contact_map_url = bizroot_get_option( 'footer_contact_map_url' ); $footer_contact_phone = bizroot_get_option( 'footer_contact_phone' ); $enable_footer_contact_background_image = bizroot_get_option( 'enable_footer_contact_background_image' ); $footer_contact_background_image = bizroot_get_option( 'footer_contact_background_image' ); $enable_footer_contact_background_overlay = bizroot_get_option( 'enable_footer_contact_background_overlay' ); $style_text = ''; if ( true === $enable_footer_contact_background_image && ! empty( $footer_contact_background_image) ) { $style_text = 'background-image:url(' . esc_url( $footer_contact_background_image ) . ');'; } $overlay_class = ( true === $enable_footer_contact_background_overlay ) ? 'footer-contact-overlay-enabled' : 'footer-contact-overlay-disabled' ; ?>
>
'; ?> '; ?>
0 ) { $title = get_the_title( $blog_page_id ); } elseif ( is_singular() ) { $title = single_post_title( '', false ); } elseif ( is_archive() ) { $title = strip_tags( get_the_archive_title() ); } elseif ( is_search() ) { $title = sprintf( __( 'Search Results for: %s', 'bizroot' ), get_search_query() ); } elseif ( is_404() ) { $title = __( '404!', 'bizroot' ); } return $title; } endif; add_filter( 'bizroot_filter_custom_page_title', 'bizroot_customize_page_title' ); if ( ! function_exists( 'bizroot_add_image_in_custom_header' ) ) : /** * Add image in Custom Header. * * @since 1.0.0 */ function bizroot_add_image_in_custom_header( $input ) { $image_details = array(); if ( empty( $image_details ) ) { // Fetch from Custom Header Image. $image = get_header_image(); if ( ! empty( $image ) ) { $image_details['url'] = $image; $image_details['width'] = get_custom_header()->width; $image_details['height'] = get_custom_header()->height; } } if ( ! empty( $image_details ) ) { $input .= 'background-image:url(' . esc_url( $image_details['url'] ) . ');'; $input .= 'background-size:cover;'; } return $input; } endif; add_filter( 'bizroot_filter_custom_header_style_attribute', 'bizroot_add_image_in_custom_header' ); if( ! function_exists( 'bizroot_check_custom_header_status' ) ) : /** * Check status of custom header. * * @since 1.0.0 */ function bizroot_check_custom_header_status( $input ) { global $post; if ( is_front_page() ) { $input = true; } else if ( is_home() && ( $blog_page_id = bizroot_get_index_page_id( 'blog' ) ) > 0 ) { $values = get_post_meta( $blog_page_id, 'bizroot_theme_settings', true ); $disable_banner_area = isset( $values['disable_banner_area'] ) ? absint( $values['disable_banner_area'] ) : 0; if ( 1 === $disable_banner_area ) { $input = false; } } else if ( $post ) { if ( is_singular() ) { $values = get_post_meta( $post->ID, 'bizroot_theme_settings', true ); $disable_banner_area = isset( $values['disable_banner_area'] ) ? absint( $values['disable_banner_area'] ) : 0; if ( 1 === $disable_banner_area ) { $input = false; } } } return $input; } endif; add_filter( 'bizroot_filter_custom_header_status', 'bizroot_check_custom_header_status' );