init commit
This commit is contained in:
54
sidebar-footer.php
Normal file
54
sidebar-footer.php
Normal file
@ -0,0 +1,54 @@
|
||||
<?php
|
||||
/**
|
||||
* The Sidebar containing the footer widget areas.
|
||||
*
|
||||
* @package Sophia After Dark
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* The footer widget area is triggered if any of the areas
|
||||
* have widgets. So let's check that first.
|
||||
*
|
||||
* If none of the sidebars have widgets, then let's bail early.
|
||||
*/
|
||||
|
||||
if ( ! is_active_sidebar( 'footer-sidebar' ) &&
|
||||
! is_active_sidebar( 'footer-sidebar-2' ) &&
|
||||
! is_active_sidebar( 'footer-sidebar-3' ) &&
|
||||
! is_active_sidebar( 'footer-sidebar-4' ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
$sophia_after_dark_widget_area_layout = get_theme_mod( 'sophia_after_dark_widget_area_layout', 'column-three' );
|
||||
?>
|
||||
|
||||
<div id="top-footer" class="footer-widgets-wrapper footer-<?php echo esc_attr( $sophia_after_dark_widget_area_layout ); ?> mt-clearfix">
|
||||
<div class="mt-container">
|
||||
<div class="footer-widgets-area mt-clearfix">
|
||||
<div class="mt-footer-widget-wrapper mt-column-wrapper mt-clearfix">
|
||||
<div class="mt-footer-widget wow fadeInLeft" data-wow-duration="0.3s">
|
||||
<?php dynamic_sidebar( 'footer-sidebar' ); ?>
|
||||
</div>
|
||||
|
||||
<?php if ( $sophia_after_dark_widget_area_layout != 'column-one' ){ ?>
|
||||
<div class="mt-footer-widget wow fadeInLeft" data-woww-duration="0.6s">
|
||||
<?php dynamic_sidebar( 'footer-sidebar-2' ); ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ( $sophia_after_dark_widget_area_layout == 'column-three' || $sophia_after_dark_widget_area_layout == 'column-four' ){ ?>
|
||||
<div class="mt-footer-widget wow fadeInLeft" data-wow-duration="0.9s">
|
||||
<?php dynamic_sidebar( 'footer-sidebar-3' ); ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ( $sophia_after_dark_widget_area_layout == 'column-four' ){ ?>
|
||||
<div class="mt-footer-widget wow fadeInLeft" data-wow-duration="1.2s">
|
||||
<?php dynamic_sidebar( 'footer-sidebar-4' ); ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div><!-- .mt-footer-widget-wrapper -->
|
||||
</div><!-- .footer-widgets-area -->
|
||||
</div><!-- .mt-container -->
|
||||
</div><!-- .footer-widgets-wrapper -->
|
Reference in New Issue
Block a user