-
Notifications
You must be signed in to change notification settings - Fork 0
/
sidebar-front.php
34 lines (29 loc) · 953 Bytes
/
sidebar-front.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
/**
* The sidebar area for the template front-page.php
*
* @package Daniela
*/
/* Get the number of front page widget areas in use and return early if 0. */
$daniela_widget_count = daniela_count_widgets();
if ( 0 === $daniela_widget_count ) {
return;
}
?>
<div id="front-page-widgets" class="front-page-widgets <?php echo 'widgets-' . esc_attr( $daniela_widget_count ) ?>" role="complementary">
<?php if ( is_active_sidebar( 'front-page-1' ) ) : ?>
<div class="widget-area front-page-1">
<?php dynamic_sidebar( 'front-page-1' ); ?>
</div>
<?php endif; ?>
<?php if ( is_active_sidebar( 'front-page-2' ) ) : ?>
<div class="widget-area front-page-2">
<?php dynamic_sidebar( 'front-page-2' ); ?>
</div>
<?php endif; ?>
<?php if ( is_active_sidebar( 'front-page-3' ) ) : ?>
<div class="widget-area front-page-3">
<?php dynamic_sidebar( 'front-page-3' ); ?>
</div>
<?php endif; ?>
</div><!-- #front-page-widgets -->