110 lines
2.4 KiB
PHP
110 lines
2.4 KiB
PHP
<?php
|
|
/**
|
|
* The template for displaying the footer.
|
|
*
|
|
* @package OceanWP WordPress theme
|
|
*/
|
|
|
|
?>
|
|
|
|
</main><!-- #main -->
|
|
|
|
<!-- Signup modal -->
|
|
<?php echo get_template_part('template-parts/components/signup-modal'); ?>
|
|
|
|
<!-- Success signup modal -->
|
|
<?php echo get_template_part('template-parts/components/success-signup-modal'); ?>
|
|
|
|
<!-- Get current location -->
|
|
<?php
|
|
// $current_geo = geoip_detect2_get_info_from_current_ip(NULL, []);
|
|
// $current_country = $current_geo->country->isoCode;
|
|
$location = get_user_location();
|
|
$current_country = $location['country_code'];
|
|
?>
|
|
|
|
<script type="text/javascript">
|
|
$(document).ready(function() {
|
|
const countryCode = '<?php echo $current_country ?>';
|
|
window.countryCode = countryCode;
|
|
});
|
|
</script>
|
|
|
|
<?php do_action( 'ocean_after_main' ); ?>
|
|
|
|
<?php do_action( 'ocean_before_footer' ); ?>
|
|
|
|
<?php
|
|
// Elementor `footer` location.
|
|
if ( ! function_exists( 'elementor_theme_do_location' ) || ! elementor_theme_do_location( 'footer' ) ) {
|
|
?>
|
|
|
|
<?php do_action( 'ocean_footer' ); ?>
|
|
|
|
<?php } ?>
|
|
|
|
<?php do_action( 'ocean_after_footer' ); ?>
|
|
|
|
</div><!-- #wrap -->
|
|
|
|
<?php do_action( 'ocean_after_wrap' ); ?>
|
|
|
|
</div><!-- #outer-wrap -->
|
|
|
|
<?php do_action( 'ocean_after_outer_wrap' ); ?>
|
|
|
|
<?php
|
|
// If is not sticky footer.
|
|
if ( ! class_exists( 'Ocean_Sticky_Footer' ) ) {
|
|
get_template_part( 'partials/scroll-top' );
|
|
}
|
|
?>
|
|
|
|
<?php
|
|
// Search overlay style.
|
|
if ( 'overlay' === oceanwp_menu_search_style() ) {
|
|
get_template_part( 'partials/header/search-overlay' );
|
|
}
|
|
?>
|
|
|
|
<?php
|
|
// If sidebar mobile menu style.
|
|
if ( 'sidebar' === oceanwp_mobile_menu_style() ) {
|
|
|
|
// Mobile panel close button.
|
|
if ( get_theme_mod( 'ocean_mobile_menu_close_btn', true ) ) {
|
|
get_template_part( 'partials/mobile/mobile-sidr-close' );
|
|
}
|
|
?>
|
|
|
|
<?php
|
|
// Mobile Menu (if defined).
|
|
get_template_part( 'partials/mobile/mobile-nav' );
|
|
?>
|
|
|
|
<?php
|
|
// Mobile search form.
|
|
if ( get_theme_mod( 'ocean_mobile_menu_search', true ) ) {
|
|
get_template_part( 'partials/mobile/mobile-search' );
|
|
}
|
|
}
|
|
?>
|
|
|
|
<?php
|
|
// If full screen mobile menu style.
|
|
if ( 'fullscreen' === oceanwp_mobile_menu_style() ) {
|
|
get_template_part( 'partials/mobile/mobile-fullscreen' );
|
|
}
|
|
?>
|
|
|
|
<?php wp_footer(); ?>
|
|
|
|
<!-- Custom Sassy social style -->
|
|
<style>
|
|
ul.heateor_sss_sharing_ul li {
|
|
margin: 5px 0!important;
|
|
}
|
|
</style>
|
|
</body>
|
|
</html>
|