blogside/footer.php

108 lines
3.6 KiB
PHP
Raw Normal View History

2016-02-03 11:28:05 +01:00
</div><!--/.main-inner-->
</div><!--/.main-->
</div><!--/.container-inner-->
</div><!--/.container-->
<footer id="footer">
2017-12-16 20:58:17 +01:00
<?php if ( get_theme_mod( 'footer-ads', 'off' ) == 'on' ): ?>
2017-03-05 21:42:58 +01:00
<div class="container" id="footer-ads">
2016-02-03 11:28:05 +01:00
<div class="container-inner">
<?php dynamic_sidebar( 'footer-ads' ); ?>
</div><!--/.container-inner-->
2017-03-05 21:42:58 +01:00
</div><!--/.container-->
2016-02-03 11:28:05 +01:00
<?php endif; ?>
<?php // footer widgets
$total = 4;
2017-12-16 20:58:17 +01:00
if ( get_theme_mod( 'footer-widgets','0' ) != '' ) {
2016-02-03 11:28:05 +01:00
2017-12-16 20:58:17 +01:00
$total = get_theme_mod( 'footer-widgets' );
2016-02-03 11:28:05 +01:00
if( $total == 1) $class = 'one-full';
if( $total == 2) $class = 'one-half';
if( $total == 3) $class = 'one-third';
if( $total == 4) $class = 'one-fourth';
}
if ( ( is_active_sidebar( 'footer-1' ) ||
is_active_sidebar( 'footer-2' ) ||
is_active_sidebar( 'footer-3' ) ||
is_active_sidebar( 'footer-4' ) ) && $total > 0 )
{ ?>
2017-03-05 21:42:58 +01:00
<div class="container" id="footer-widgets">
2016-02-03 11:28:05 +01:00
<div class="container-inner">
<div class="pad group">
<?php $i = 0; while ( $i < $total ) { $i++; ?>
<?php if ( is_active_sidebar( 'footer-' . $i ) ) { ?>
2016-03-22 13:00:51 +01:00
<div class="footer-widget-<?php echo esc_attr( $i ); ?> grid <?php echo esc_attr( $class ); ?> <?php if ( $i == $total ) { echo 'last'; } ?>">
2016-02-03 11:28:05 +01:00
<?php dynamic_sidebar( 'footer-' . $i ); ?>
</div>
<?php } ?>
<?php } ?>
</div><!--/.pad-->
</div><!--/.container-inner-->
2017-03-05 21:42:58 +01:00
</div><!--/.container-->
2016-02-03 11:28:05 +01:00
<?php } ?>
2019-01-18 19:48:51 +01:00
2017-03-05 21:42:58 +01:00
<div class="container" id="footer-bottom">
2019-01-18 19:48:51 +01:00
<?php if ( has_nav_menu( 'footer' ) ): ?>
<div class="container-inner no-container-border">
<nav class="nav-container group" id="nav-footer">
2019-07-29 17:29:42 +02:00
<div class="nav-toggle"><i class="fas fa-bars"></i></div>
2019-01-18 19:48:51 +01:00
<div class="nav-text"><!-- put your mobile menu text here --></div>
<div class="nav-wrap"><?php wp_nav_menu( array('theme_location'=>'footer','menu_class'=>'nav container group','container'=>'','menu_id'=>'','fallback_cb'=>false) ); ?></div>
</nav><!--/#nav-footer-->
</div>
<?php endif; ?>
2016-02-03 11:28:05 +01:00
<div class="container-inner">
2019-07-29 17:29:42 +02:00
<a id="back-to-top" href="#"><i class="fas fa-angle-up"></i></a>
2016-02-03 11:28:05 +01:00
<div class="pad group">
<div class="grid one-half">
2017-12-16 20:58:17 +01:00
<?php if ( get_theme_mod('footer-logo') ): ?>
2018-09-08 17:21:23 +02:00
<img id="footer-logo" src="<?php echo esc_url( get_theme_mod('footer-logo') ); ?>" alt="<?php echo esc_attr( get_bloginfo('name')); ?>">
2016-02-03 11:28:05 +01:00
<?php endif; ?>
<div id="copyright">
2017-12-16 20:58:17 +01:00
<?php if ( get_theme_mod( 'copyright' ) ): ?>
2018-05-26 20:37:28 +02:00
<p><?php echo esc_html( get_theme_mod( 'copyright' ) ); ?></p>
2016-02-03 11:28:05 +01:00
<?php else: ?>
2018-10-31 13:03:44 +01:00
<p><?php bloginfo(); ?> &copy; <?php echo esc_html( date_i18n( esc_html__( 'Y', 'blogside' ) ) ); ?>. <?php esc_html_e( 'All Rights Reserved.', 'blogside' ); ?></p>
2016-02-03 11:28:05 +01:00
<?php endif; ?>
</div><!--/#copyright-->
2017-12-16 20:58:17 +01:00
<?php if ( get_theme_mod( 'credit', 'on' ) == 'on' ): ?>
2016-02-03 11:28:05 +01:00
<div id="credit">
2019-03-11 16:01:23 +01:00
<p><?php esc_html_e('Powered by','blogside'); ?> <a href="http://wordpress.org" rel="nofollow">WordPress</a>. <?php esc_html_e('Theme by','blogside'); ?> <a href="http://alx.media" rel="nofollow">Alx</a>.</p>
2016-02-03 11:28:05 +01:00
</div><!--/#credit-->
<?php endif; ?>
</div>
<div class="grid one-half last">
2018-07-15 20:36:53 +02:00
<?php if ( get_theme_mod( 'footer-social', 'on' ) == 'on' ): ?>
2018-10-31 13:03:44 +01:00
<?php blogside_social_links() ; ?>
2018-07-15 20:36:53 +02:00
<?php endif; ?>
2016-02-03 11:28:05 +01:00
</div>
</div><!--/.pad-->
</div><!--/.container-inner-->
2017-03-05 21:42:58 +01:00
</div><!--/.container-->
2016-02-03 11:28:05 +01:00
</footer><!--/#footer-->
</div><!--/#wrapper-->
<?php wp_footer(); ?>
</body>
</html>