-
Notifications
You must be signed in to change notification settings - Fork 0
/
sidebar.php
33 lines (32 loc) · 1.13 KB
/
sidebar.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
<div id="sidebar" class="sidebar col-md-3 col-md-offset-1">
<?php
if (is_singular( 'portfolio' )):
$meta = monica_meta_data( '_monica_portfolio_meta_group' );
if ( $meta ) {
?>
<div class="portfolio-sidebar">
<div class="portfolio-meta">
<ul>
<?php
$meta = monica_meta_data( '_monica_portfolio_meta_group' );
foreach ($meta as $meta_item) {
?>
<li>
<span class="title"><?php echo esc_attr( $meta_item['title'] );?></span>
<span class="desc"><?php echo esc_attr( $meta_item['content'] );?></span>
</li>
<?php
}
?>
</ul>
</div><!-- // .portfolio-meta -->
</div>
<?php } ?>
<?php endif; ?>
<?php
$sidebar = monica_meta_data('_monica_radio_widget_sidebar') ? esc_attr(monica_meta_data('_monica_radio_widget_sidebar')) : 'default-sidebar';
if ( is_active_sidebar ( $sidebar ) ) {
dynamic_sidebar ( $sidebar );
}
?>
</div>