PATH:
home
/
letacommog
/
lavenue
/
wp-content
/
themes
/
deep
<?php /** * Deep Theme. * * The template for displaying 404 pages (not found) * * @since 1.0.0 * @author Webnus */ // Don't load directly. if ( ! defined( 'ABSPATH' ) ) { exit; } if ( ! class_exists( 'WN_Footer' ) ) { class WN_Footer extends WN_Core_Templates { /** * Instance of this class. * * @since 1.0.0 * @access public * @var WN_Footer */ 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 footer.php * * @since 1.0.0 */ public function __construct() { parent::__construct(); $this->footer(); } /** * Render footer. * * @since 1.0.0 */ private function footer() { $enable_footer_builder = deep_get_option( $this->theme_options, 'deep_footer_builder_switch', '0' ); $footer_builder_page_id = deep_get_option( $this->theme_options, 'deep_footer_builder_select', '0' ); $footer_show = 'ture'; global $post; if ( isset( $post ) ) { if ( 'product' == get_post_type( $post->ID ) ) { echo '</section>'; } } // footer visibility $footer_show = rwmb_meta( 'deep_footer_show' ); if ( $footer_show === '1') { $footer_show = true; } elseif ( $footer_show === '0' ) { $footer_show = false; } elseif ( $footer_show === false || empty( $footer_show ) ) { $footer_show = true; } // footer if ( $footer_show || is_archive() || is_single() || is_home() || is_search() || is_404() ) : $this->pre_footer(); do_action( 'deep_before_footer' ); if ( $enable_footer_builder == '1' && $footer_builder_page_id ) : $this->webnus_footer_builder(); else : $this->webnus_footer_without_builder(); endif; endif; // show footer condition $this->elementor_footer_builder(); $this->back_to_top_icon(); deep_fast_contact(); ?> </div> <!-- end #wrap --> <?php // Theme space before body echo deep_get_option( $this->theme_options, 'deep_space_before_body' ); wp_footer(); ?> <div id="whb-enqueue-dynamic-style"> <style>.borderbox { box-sizing: border-box; }</style> </div> </body> </html> <?php } /** * Before footer rendering * * @since 1.0.0 */ private function pre_footer() { $footer_social_bar = deep_get_option( $this->theme_options, 'deep_footer_social_bar', '0' ); $footer_instagram_bar = deep_get_option( $this->theme_options, 'deep_footer_instagram_bar', '0' ); $footer_subscribe_bar = deep_get_option( $this->theme_options, 'deep_footer_subscribe_bar', '0' ); ?> <!-- start footer bars --> <section id="pre-footer"> <?php if ( $footer_instagram_bar ) { deep_call_template( 'instagram-bar.php' ); } if ( $footer_social_bar ) { deep_call_template( 'social-bar.php' ); } if ( $footer_subscribe_bar ) { deep_call_template( 'subscribe-bar.php' ); } ?> </section> <?php } /** * Webnus Footer Builder * * @since 1.0.0 */ private function webnus_footer_builder() { $footer_builder_page_id = rwmb_meta( 'deep_custom_footer_for_this_page' ) ? rwmb_meta( 'deep_custom_footer_for_this_page' ) : deep_get_option( $this->theme_options, 'deep_footer_builder_select', '0' ); ?> <footer class="wn-footer"> <?php if ( ! empty ( $footer_builder_page_id ) ) { // Get footer Post $getFooterPost = get_post( $footer_builder_page_id ); if ( ! empty ( $getFooterPost ) ) : // King Composer Builder if ( is_plugin_active( 'kingcomposer/kingcomposer.php' ) ) { // Export Style from post_content $content = $getFooterPost->post_content; $footerStyle = find_string($content, '<style type="text/css">', '</style>'); deep_save_dyn_styles( $footerStyle ); // Check if content created with KC $kc_enabled = ( $getFooterPost->post_content_filtered && substr( $getFooterPost->post_content_filtered, 0, 4 ) === '[kc_' ) ? true : false; // Display Footer if ( ! $kc_enabled ) { echo $getFooterPost->post_content_filtered; } else { echo do_shortcode( $getFooterPost->post_content_filtered ); } // Visual Composer Builder } elseif ( is_plugin_active( 'js_composer/js_composer.php' ) ) { // Check if content created with VC $vc_enabled = ( $getFooterPost->post_content && ( substr( $getFooterPost->post_content, 0, 7 ) === '<p>[vc_' || substr( $getFooterPost->post_content, 0, 4 ) === '[vc_' ) ) ? true : false; // Display Footer if ( ! $vc_enabled ) { echo $getFooterPost->post_content; } else { echo do_shortcode( $getFooterPost->post_content ); } // Elementor Builder } elseif ( did_action( 'elementor/loaded' ) ) { echo \Elementor\Plugin::instance()->frontend->get_builder_content_for_display($footer_builder_page_id); } else { echo $getFooterPost->post_content; } endif; } ?> </footer> <!-- .wn-footer --> <?php } /** * Webnus footer * * @since 1.0.0 */ private function webnus_footer_without_builder() { $footer_color = deep_get_option( $this->theme_options, 'deep_footer_color', '1' ); $enable_footer_bottom = deep_get_option( $this->theme_options, 'deep_footer_bottom_enable', '0' ); ?> <footer id="footer" class="<?php echo $footer_color == 2 ? esc_attr( 'litex' ) : ''; ?>"> <?php if ( is_active_sidebar( 'footer-section-1' ) || is_active_sidebar( 'footer-section-2' ) || is_active_sidebar( 'footer-section-3' ) || is_active_sidebar( 'footer-section-4' ) ) { ?> <section class="container footer-in"> <div class="row"> <?php $footer_type = deep_get_option( $this->theme_options, 'deep_footer_columns', '1' ); switch( $footer_type ) { case 1: ?> <div class="col-md-4"><?php if ( is_active_sidebar( 'footer-section-1' ) ) dynamic_sidebar( 'footer-section-1' ); ?></div> <div class="col-md-4"><?php if ( is_active_sidebar( 'footer-section-2' ) ) dynamic_sidebar( 'footer-section-2' ); ?></div> <div class="col-md-4"><?php if ( is_active_sidebar( 'footer-section-3' ) ) dynamic_sidebar( 'footer-section-3' ); ?></div> <?php break; case 2: ?> <div class="col-md-3"><?php if ( is_active_sidebar( 'footer-section-1' ) ) dynamic_sidebar( 'footer-section-1' ); ?></div> <div class="col-md-3"><?php if ( is_active_sidebar( 'footer-section-2' ) ) dynamic_sidebar( 'footer-section-2' ); ?></div> <div class="col-md-3"><?php if ( is_active_sidebar( 'footer-section-3' ) ) dynamic_sidebar( 'footer-section-3' ); ?></div> <div class="col-md-3"><?php if ( is_active_sidebar( 'footer-section-4' ) ) dynamic_sidebar( 'footer-section-4' ); ?></div> <?php break; case 3: ?> <div class="col-md-6"><?php if ( is_active_sidebar( 'footer-section-1' ) ) dynamic_sidebar( 'footer-section-1' ); ?></div> <div class="col-md-3"><?php if ( is_active_sidebar( 'footer-section-2' ) ) dynamic_sidebar( 'footer-section-2' ); ?></div> <div class="col-md-3"><?php if ( is_active_sidebar( 'footer-section-3' ) ) dynamic_sidebar( 'footer-section-3' ); ?></div> <?php break; case 4: ?> <div class="col-md-3"><?php if ( is_active_sidebar( 'footer-section-1' ) ) dynamic_sidebar( 'footer-section-1' ); ?></div> <div class="col-md-3"><?php if ( is_active_sidebar( 'footer-section-2' ) ) dynamic_sidebar( 'footer-section-2' ); ?></div> <div class="col-md-6"><?php if ( is_active_sidebar( 'footer-section-3' ) ) dynamic_sidebar( 'footer-section-3' ); ?></div> <?php break; case 5: ?> <div class="col-md-6"><?php if ( is_active_sidebar( 'footer-section-1' ) ) dynamic_sidebar( 'footer-section-1' ); ?></div> <div class="col-md-6"><?php if ( is_active_sidebar( 'footer-section-2' ) ) dynamic_sidebar( 'footer-section-2' ); ?></div> <?php break; case 6: ?> <div class="col-md-12"><?php if ( is_active_sidebar( 'footer-section-1' ) ) dynamic_sidebar( 'footer-section-1' ); ?></div> <?php break; } ?> </div> </section> <!-- end footer-in --> <?php } if ( $enable_footer_bottom ) { deep_call_template( 'footer-bottom.php' ); } ?> </footer> <!-- end #footer --> <?php } /** * Back to top icon * * @since 1.0.0 */ private function back_to_top_icon() { $custom_back_to_top_icon = deep_get_option( $this->theme_options, 'deep_custom_backto_top_icon' ); $enable_back_to_top = deep_get_option( $this->theme_options, 'deep_backto_top' ); $enable_back_to_top_mobile = deep_get_option( $this->theme_options, 'deep_backto_top_on_mobile' ) == '0' ? 'disable-in-mobile' : 'enable-in-mobile'; $back_to_top_icon = deep_get_option( $this->theme_options, 'deep_backto_top_icon' ); $back_to_top_icon = $back_to_top_icon && $custom_back_to_top_icon == '1' ? '<i class="' . $back_to_top_icon . '"></i>' : '<i class="icon-arrows-slim-up"></i>'; if ( $enable_back_to_top == '1' ) { ?> <span id="scroll-top" class="<?php echo esc_attr( $enable_back_to_top_mobile ); ?>"><a class="scrollup"><?php echo '' . $back_to_top_icon; ?></a></span> <?php } } /** * Elementor Footer Builder * * @since 1.0.0 */ private function elementor_footer_builder() { // Elementor Pro Footer Builder if ( class_exists('Webnus_Elementor_Extentions') ) { $webnus_elementor = new Webnus_Elementor_Extentions; if ( $webnus_elementor->elementor_pro_is_active() ) { // Elementor Pro `footer` location if ( elementor_theme_do_location( 'deep-elementor-footer' ) ) { elementor_theme_do_location( 'deep-elementor-footer' ); } } } } } // Run WN_Footer::get_instance(); }
[+]
..
[-] 404.php
[edit]
[+]
kingcomposer
[-] attachment.php
[edit]
[-] single-gallery.php
[edit]
[-] wpml-config.xml
[edit]
[-] single-portfolio.php
[edit]
[+]
woocommerce
[-] taxonomy-cause_category.php
[edit]
[-] readme.txt
[edit]
[-] sidebar.php
[edit]
[-] footer.php
[edit]
[-] archive.php
[edit]
[-] single-faq.php
[edit]
[-] single-elementor_library.php
[edit]
[-] taxonomy-sermon_speaker.php
[edit]
[-] rtl.css
[edit]
[-] single-llms_membership.php
[edit]
[-] speakers-images.php
[edit]
[-] buddypress.php
[edit]
[-] single-recipe.php
[edit]
[-] archive-room.php
[edit]
[-] single-llms_quiz.php
[edit]
[-] functions.php
[edit]
[-] archive-gallery.php
[edit]
[-] taxonomy-sermon_series.php
[edit]
[-] author.php
[edit]
[-] taxonomy-portfolio_category.php
[edit]
[-] single-mega_menu.php
[edit]
[-] page.php
[edit]
[-] comments.php
[edit]
[-] single-goal.php
[edit]
[-] single-course.php
[edit]
[-] single-sermon.php
[edit]
[-] search.php
[edit]
[-] Change_log.php
[edit]
[-] taxonomy-sermon_category.php
[edit]
[-] searchform.php
[edit]
[-] single-llms_question.php
[edit]
[-] core-templates.php
[edit]
[-] style.css
[edit]
[-] index.php
[edit]
[+]
lifterlms
[-] single-wbf_footer.php
[edit]
[+]
assets
[+]
inc
[-] single-cause.php
[edit]
[-] archive-course.php
[edit]
[-] header.php
[edit]
[-] screenshot.png
[edit]
[+]
languages
[-] single-lesson.php
[edit]
[+]
vc_templates
[-] README.md
[edit]
[+]
buddypress
[-] single.php
[edit]