wordpress/php-fpm/wordpress_files/themes/responsive/footer.php
2020-05-22 01:40:23 +00:00

97 lines
2.9 KiB
PHP

<?php
/**
* Footer Template
*
* @file footer.php
* @package Responsive
* @author CyberChimps
* @copyright 2020 CyberChimps
* @license license.txt
* @version Release: 1.2
* @filesource wp-content/themes/responsive/footer.php
* @link http://codex.wordpress.org/Theme_Development#Footer_.28footer.php.29
* @since available since Release 1.0
*/
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/*
* Globalize Theme options
*/
global $responsive_options;
$responsive_options = Responsive\Core\responsive_get_options();
global $responsive_blog_layout_columns;
// Elementor `footer` location.
if ( ! function_exists( 'elementor_theme_do_location' ) || ! elementor_theme_do_location( 'footer' ) ) {
?>
<footer id="footer" class="clearfix site-footer" role="contentinfo" <?php responsive_schema_markup( 'site-footer' ); ?>>
<?php Responsive\responsive_footer_top(); ?>
<?php get_sidebar( 'footer' ); ?>
<div class="footer-bar grid col-940">
<div class="content-outer container">
<div class="row">
<?php
get_sidebar( 'colophon' );
if ( class_exists( 'Responsive_Addons_Pro' ) ) {
$sections = array( 'social_icons', 'footer_menu', 'copy_right_text' );
$sections = get_theme_mod( 'responsive_footer_elements_positioning', $sections );
foreach ( $sections as $section ) {
// Footer Menu.
if ( 'footer_menu' === $section ) {
if ( has_nav_menu( 'footer-menu' ) ) {
get_template_part( 'partials/footer/footer-menu' );
}
}
if ( 'social_icons' === $section ) {
echo responsive_get_social_icons() ;// phpcs:ignore
}
// Copy Rights.
if ( 'copy_right_text' === $section ) {
get_template_part( 'partials/footer/copy-right' );
}
}
} else {
if ( has_nav_menu( 'footer-menu' ) ) {
get_template_part( 'partials/footer/footer-menu' );
}
echo responsive_get_social_icons() ;// phpcs:ignore
get_template_part( 'partials/footer/copy-right' );
}
?>
</div>
</div>
</div>
<?php Responsive\responsive_footer_bottom(); ?>
</footer><!-- end #footer -->
<?php
}
Responsive\responsive_footer_after(); ?>
</div><!-- end of #container -->
<?php
Responsive\responsive_container_end(); // after container hook.
if ( get_theme_mod( 'responsive_scroll_to_top' ) ) {
$scroll_top_devices = get_theme_mod( 'responsive_scroll_to_top_on_devices', 'both' );
?>
<div id="scroll" class="responsive-scroll" aria-label="<?php esc_attr_e( 'Scroll to Top', 'responsive' ); ?>" title="<?php esc_attr_e( 'Scroll to Top', 'responsive' ); ?>" data-on-devices="<?php echo esc_attr( $scroll_top_devices ); ?>"><span><?php esc_html_e( 'Top', 'responsive' ); ?></span></div>
<?php
}
wp_footer();
?>
</body>
</html>