marianne_wordpress_theme/sidebar.php

30 lines
755 B
PHP
Raw Normal View History

2021-02-18 11:03:46 +00:00
<?php
/**
* 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' ) ) {
?>
<?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
}