PATH:
home
/
letacommog
/
aperobusiness
/
wp-content
/
themes
/
deep
<?php /** * Deep Theme. * * The header for our theme * This is the template that displays all of the <head> section and everything up until <div id="wrap"> * * @since 1.0.0 * @author Webnus */ // Don't load directly. if ( ! defined( 'ABSPATH' ) ) { exit; } if ( ! class_exists( 'WN_Header' ) ) { class WN_Header extends WN_Core_Templates { /** * Instance of this class. * * @since 1.0.0 * @access public * @var WN_Header */ public static $instance; /** * Provides access to a single instance of a module using the singleton pattern. * * @since 1.0.0 * @return object */ public static function get_instance() { if ( self::$instance === null ) { self::$instance = new self(); } return self::$instance; } /** * Define the core functionality of the header. * * @since 1.0.0 */ public function __construct() { parent::__construct(); $this->get_head(); $this->get_body(); } /** * Render head. * * @since 1.0.0 */ private function get_head() { $enable_responsive = deep_get_option( $this->theme_options, 'deep_enable_responsive', '1' ); ?> <!DOCTYPE html> <html <?php language_attributes(); ?>> <head> <?php if ( !empty( deep_get_option( $this->theme_options, 'deep_facebook_app_id' ) ) ) { ?> <script src="https://connect.facebook.net/<?php echo get_locale(); ?>/sdk.js#xfbml=1&version=v3.1&appId=<?php echo esc_attr__(deep_get_option( $this->theme_options, 'deep_facebook_app_id' )); ?>&autoLogAppEvents=1"></script> <?php } ?> <meta charset="<?php bloginfo( 'charset' ); ?>"> <?php // Mobile Specific Metas if( $enable_responsive ) : ?> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <?php else : ?> <meta name="viewport" content="width=1200,user-scalable=yes"> <?php endif; if ( get_option( 'sync_favicon' ) != '0' && !has_site_icon() ) : echo '<link rel="shortcut icon" href="'.get_option( 'sync_favicon_url' ).'" sizes="32x32" />'; endif; ?> <link rel="profile" href="http://gmpg.org/xfn/11"> <?php if ( is_singular() && pings_open( get_queried_object() ) ) : ?> <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>"> <?php endif; ?> <?php wp_head(); ?> <?php if ( !empty( deep_get_option( $this->theme_options, 'deep_space_before_head' ) ) ) { echo deep_get_option( $this->theme_options, 'deep_space_before_head' ); } ?> </head> <?php } /** * Render body. * * @since 1.0.0 */ private function get_body() { // -> Start the #wrap div classes $wrap_class = 'wn-wrap '; // Colorskin $custom_color_skin = deep_get_option( $this->theme_options, 'deep_custom_color_skin' ); $color_skin_color = deep_get_option( $this->theme_options, 'deep_color_skin', 'e3e3e3' ); if ( $color_skin_color != 'e3e3e3' || $custom_color_skin ) { $wrap_class .= 'colorskin-custom '; } // Background Layout $background_layout = deep_get_option( $this->theme_options, 'deep_background_layout', 'wide' ); $wrap_class .= ( ( $background_layout == 'boxed-wrap' ) && ( $header_menu_type != 6 ) && ( $header_menu_type != 7 ) ) ? $background_layout . ' ' : ''; // -> End the #wrap div classes // Toggle Toparea $toggle_toparea_enable = deep_get_option( $this->theme_options, 'deep_toggle_toparea_enable', 0 ); // woocommerce $woo_product_title_enable = deep_get_option( $this->theme_options, 'deep_woo_product_title_enable' ); $woo_product_title = deep_get_option( $this->theme_options, 'deep_woo_product_title' ); $woo_shop_title_enable = deep_get_option( $this->theme_options, 'deep_woo_shop_title_enable' ); $woo_shop_title = deep_get_option( $this->theme_options, 'deep_woo_shop_title' ); $wn_facebook_app_id = deep_get_option( $this->theme_options, 'deep_facebook_app_id' ) != '' ? 'data-fb_app_id="'.deep_get_option( $this->theme_options, 'deep_facebook_app_id' ).'"' : ''; $deep_shop_head = (!empty(deep_get_option( $this->theme_options, 'deep_shop_style' )) && deep_get_option( $this->theme_options, 'deep_shop_style' ) == 1 ) ? '1' : '0' ; ?> <body <?php body_class(); ?> <?php echo $wn_facebook_app_id; ?>> <!-- Start the #wrap div --> <div id="wrap" class="<?php echo esc_attr( $wrap_class ); ?>"> <?php if ( $toggle_toparea_enable ) : ?> <section class="toggle-top-area footer-in"> <div class="w_toparea container"> <div class="col-md-3"> <?php if( is_active_sidebar( 'top-area-1' ) ) dynamic_sidebar('top-area-1'); ?> </div> <div class="col-md-3"> <?php if( is_active_sidebar( 'top-area-2' ) ) dynamic_sidebar('top-area-2'); ?> </div> <div class="col-md-3"> <?php if( is_active_sidebar( 'top-area-3' ) ) dynamic_sidebar('top-area-3'); ?> </div> <div class="col-md-3"> <?php if( is_active_sidebar( 'top-area-4' ) ) dynamic_sidebar('top-area-4'); ?> </div> </div> <a class="w_toggle" href="#"></a> </section> <?php endif; $this->get_header_builder(); // Woocommerce - if woocommerce available add page headline section global $post; if ( isset( $post ) && get_post_type( $post->ID ) == 'product' ) : if ( function_exists( 'is_product' ) && is_product() && $woo_product_title_enable ) { ?> <section id="headline"> <div class="container"> <h2><?php echo esc_html( $woo_product_title ); ?></h2> </div> </section> <?php } if ( function_exists( 'is_product' ) && ! is_product() && $woo_shop_title_enable ) { ?> <section id="headline"> <div class="container"> <h2><?php echo esc_html( $woo_shop_title ); ?></h2> </div> </section> <?php } if ( function_exists( 'is_product' ) && is_product() ) { if ( $deep_shop_head == '0' ) { ?> <section class="single-product-wrap"> <hr class="vertical-space"> <?php } else { ?> <section class="container"> <hr class="vertical-space"> <?php } } else { ?> <!-- Start Page Content --> <section class="container"> <hr class="vertical-space"> <?php } endif; // end woocommerce } /** * Get the WEBNUS Header Builder output * * @since 1.0.0 */ private function get_header_builder() { // Webnus Header Builder if ( class_exists( 'WHB' ) ) { echo WHB_Output::output(); } // Elementor Pro Header Builder if ( class_exists('Webnus_Elementor_Extentions') ) { $webnus_elementor = new Webnus_Elementor_Extentions; if ( $webnus_elementor->elementor_pro_is_active() ) { // Elementor Pro `header` location if ( elementor_theme_do_location( 'deep-elementor-header' ) ) { elementor_theme_do_location( 'deep-elementor-header' ); } } } } } // Run WN_Header::get_instance(); }
[+]
..
[-] single-recipe.php
[edit]
[-] archive-room.php
[edit]
[-] single-wbf_footer.php
[edit]
[-] Change_log.php
[edit]
[-] style.css
[edit]
[+]
kingcomposer
[-] single-mega_menu.php
[edit]
[+]
buddypress
[-] single.php
[edit]
[-] single-llms_quiz.php
[edit]
[-] single-gallery.php
[edit]
[-] searchform.php
[edit]
[-] header.php
[edit]
[-] single-llms_membership.php
[edit]
[-] screenshot.png
[edit]
[+]
inc
[-] README.md
[edit]
[-] taxonomy-sermon_category.php
[edit]
[-] taxonomy-sermon_series.php
[edit]
[+]
languages
[-] wpml-config.xml
[edit]
[-] search.php
[edit]
[-] index.php
[edit]
[-] single-portfolio.php
[edit]
[+]
lifterlms
[-] single-cause.php
[edit]
[-] single-lesson.php
[edit]
[-] attachment.php
[edit]
[+]
assets
[-] taxonomy-portfolio_category.php
[edit]
[-] single-llms_question.php
[edit]
[-] taxonomy-cause_category.php
[edit]
[-] speakers-images.php
[edit]
[-] core-templates.php
[edit]
[-] author.php
[edit]
[-] comments.php
[edit]
[-] taxonomy-sermon_speaker.php
[edit]
[-] single-faq.php
[edit]
[-] page.php
[edit]
[-] archive-gallery.php
[edit]
[-] readme.txt
[edit]
[-] footer.php
[edit]
[-] functions.php
[edit]
[-] archive.php
[edit]
[-] rtl.css
[edit]
[-] single-course.php
[edit]
[-] single-sermon.php
[edit]
[-] buddypress.php
[edit]
[-] sidebar.php
[edit]
[+]
woocommerce
[-] single-elementor_library.php
[edit]
[-] 404.php
[edit]
[-] single-goal.php
[edit]
[+]
vc_templates
[-] archive-course.php
[edit]