2021-02-18 11:03:46 +00:00
|
|
|
<?php
|
|
|
|
/**
|
2021-03-17 19:31:49 +00:00
|
|
|
* The template for displaying the sidebar.
|
2021-02-18 11:03:46 +00:00
|
|
|
*
|
|
|
|
* Displays the sidebar at the bottom of the page,
|
|
|
|
* in the #content div and before the footer.
|
|
|
|
*
|
|
|
|
* @package Marianne
|
|
|
|
* @since Marianne 1.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
if ( is_active_sidebar( 'widgets' ) ) {
|
|
|
|
?>
|
2021-03-23 09:21:25 +00:00
|
|
|
<?php
|
|
|
|
$marianne_widgets_class = 'site-secondary';
|
|
|
|
|
|
|
|
if ( true === marianne_get_theme_mod( 'marianne_print_widgets_hide' ) ) {
|
|
|
|
$marianne_widgets_class .= ' print-widgets-hide';
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
<aside id="secondary"<?php marianne_add_class( $marianne_widgets_class ); ?> role="complementary">
|
2021-06-17 08:20:09 +00:00
|
|
|
<?php if ( 'two-column-left-sidebar' !== marianne_get_theme_mod( 'marianne_global_layout' ) ) : ?>
|
|
|
|
<hr class="separator">
|
|
|
|
<?php endif; ?>
|
2021-06-16 18:38:19 +00:00
|
|
|
|
2021-02-18 11:03:46 +00:00
|
|
|
<?php dynamic_sidebar( 'widgets' ); ?>
|
|
|
|
</aside>
|
|
|
|
<?php
|
|
|
|
}
|