'primary', 'container' => '', 'fallback_cb' => 'nature_bliss_primary_navigation_fallback', ) ); ?>
'footer', 'container' => 'div', 'container_id' => 'footer-navigation', 'depth' => 1, 'fallback_cb' => false, 'echo' => false, ) ); // Copyright content. $copyright_text = nature_bliss_get_option( 'copyright_text' ); $copyright_text = apply_filters( 'nature_bliss_filter_copyright_text', $copyright_text ); if ( ! empty( $copyright_text ) ) { $copyright_text = wp_kses_data( $copyright_text ); } // Powered by content. $powered_by_text = sprintf( esc_html__( 'Nature Bliss by %s', 'nature-bliss' ), '' . esc_html__( 'WEN Themes', 'nature-bliss' ) . '' ); $show_social_in_footer = nature_bliss_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, 'nature_bliss_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( 'nature_bliss_action_sidebar', 'nature_bliss_add_sidebar' ); if ( ! function_exists( 'nature_bliss_custom_posts_navigation' ) ) : /** * Posts navigation. * * @since 1.0.0 */ function nature_bliss_custom_posts_navigation() { the_posts_pagination(); } endif; add_action( 'nature_bliss_action_posts_navigation', 'nature_bliss_custom_posts_navigation' ); if ( ! function_exists( 'nature_bliss_add_image_in_single_display' ) ) : /** * Add image in single post. * * @since 1.0.0 */ function nature_bliss_add_image_in_single_display() { global $post; if ( has_post_thumbnail() ) { $values = get_post_meta( $post->ID, 'nature_bliss_theme_settings', true ); $nature_bliss_theme_settings_single_image = isset( $values['single_image'] ) ? esc_attr( $values['single_image'] ) : ''; if ( ! $nature_bliss_theme_settings_single_image ) { $nature_bliss_theme_settings_single_image = nature_bliss_get_option( 'single_image' ); } if ( 'disable' !== $nature_bliss_theme_settings_single_image ) { $args = array( 'class' => 'aligncenter', ); the_post_thumbnail( esc_attr( $nature_bliss_theme_settings_single_image ), $args ); } } } endif; add_action( 'nature_bliss_single_image', 'nature_bliss_add_image_in_single_display' ); if ( ! function_exists( 'nature_bliss_add_breadcrumb' ) ) : /** * Add breadcrumb. * * @since 1.0.0 */ function nature_bliss_add_breadcrumb() { // Bail if Breadcrumb disabled. $breadcrumb_type = nature_bliss_get_option( 'breadcrumb_type' ); if ( 'disabled' === $breadcrumb_type ) { return; } // Bail if Home Page. if ( is_front_page() || is_home() ) { return; } echo ''; } endif; add_action( 'nature_bliss_action_breadcrumb', 'nature_bliss_add_breadcrumb' ); if ( ! function_exists( 'nature_bliss_footer_goto_top' ) ) : /** * Go to top. * * @since 1.0.0 */ function nature_bliss_footer_goto_top() { echo ''; } endif; add_action( 'nature_bliss_action_after', 'nature_bliss_footer_goto_top', 20 ); if ( ! function_exists( 'nature_bliss_add_front_page_widget_area' ) ) : /** * Add Front Page Widget area. * * @since 1.0.0 */ function nature_bliss_add_front_page_widget_area() { $current_id = nature_bliss_get_index_page_id(); if ( is_front_page() && get_queried_object_id() === $current_id && $current_id > 0 ) { echo ''; } } endif; add_action( 'nature_bliss_action_before_content', 'nature_bliss_add_front_page_widget_area', 7 ); if ( ! function_exists( 'nature_bliss_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 nature_bliss_check_home_page_content( $status ) { if ( is_front_page() && ! is_home() ) { $home_content_status = nature_bliss_get_option( 'home_content_status' ); if ( false === $home_content_status ) { $status = false; } } return $status; } endif; add_action( 'nature_bliss_filter_home_page_content', 'nature_bliss_check_home_page_content' ); if ( ! function_exists( 'nature_bliss_add_custom_header' ) ) : /** * Add Custom Header. * * @since 1.0.0 */ function nature_bliss_add_custom_header() { $flag_apply_custom_header = apply_filters( 'nature_bliss_filter_custom_header_status', true ); if ( true !== $flag_apply_custom_header ) { return; } $attribute = ''; $attribute = apply_filters( 'nature_bliss_filter_custom_header_style_attribute', $attribute ); ?>
>
'; ?> '; ?>
0 ) { $title = nature_bliss_get_option( 'blog_title' ); } 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', 'nature-bliss' ), get_search_query() ); } elseif ( is_404() ) { $title = __( '404!', 'nature-bliss' ); } return $title; } endif; add_filter( 'nature_bliss_filter_custom_page_title', 'nature_bliss_customize_page_title' ); if ( ! function_exists( 'nature_bliss_add_image_in_custom_header' ) ) : /** * Add image in Custom Header. * * @since 1.0.0 */ function nature_bliss_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( 'nature_bliss_filter_custom_header_style_attribute', 'nature_bliss_add_image_in_custom_header' ); if( ! function_exists( 'nature_bliss_check_custom_header_status' ) ) : /** * Check status of custom header. * * @since 1.0.0 */ function nature_bliss_check_custom_header_status( $input ) { if ( is_front_page() && ! is_home() ) { $input = false; } return $input; } endif; add_filter( 'nature_bliss_filter_custom_header_status', 'nature_bliss_check_custom_header_status' );