-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathsidebar.php
More file actions
29 lines (24 loc) · 925 Bytes
/
Copy pathsidebar.php
File metadata and controls
29 lines (24 loc) · 925 Bytes
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
<aside class="sidebar" role="complementary">
<!-- To see additional archive styles, visit the /snippets folder -->
<?php get_template_part( 'snippets/content', 'searchform' ); ?>
<div class="sidebar-widget">
<?php if ( is_active_sidebar( 'sidebar1' ) ) : ?>
<?php dynamic_sidebar( 'sidebar1' ); ?>
<?php else : ?>
<!-- This content shows up if there are no widgets defined in the backend. -->
<div class="alert alert-warning">
<p><?php _e( 'Please activate some Widgets.', 'skelet' ); ?></p>
</div>
<?php endif; ?>
</div>
<div class="sidebar-widget">
<?php if ( is_active_sidebar( 'sidebar2' ) ) : ?>
<?php dynamic_sidebar( 'sidebar2' ); ?>
<?php else : ?>
<!-- This content shows up if there are no widgets defined in the backend. -->
<div class="alert alert-warning">
<p><?php _e( 'Please activate some Widgets.', 'skelet' ); ?></p>
</div>
<?php endif; ?>
</div>
</aside>