-
Notifications
You must be signed in to change notification settings - Fork 2
/
sidebar.php
42 lines (40 loc) · 1.24 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
34
35
36
37
38
39
40
41
42
<?php
global $lblg_options;
lblg_sidebar_header();
?>
<div id="primarysb">
<ul>
<?php if ( !dynamic_sidebar('Primary') ) : ?>
<?php if( current_user_can('edit_theme_options') ){ ?>
<li><h4>Primary Sidebar</h4>
This is the primary sidebar. You may add widgets to it via the Appearance -> Widgets administration screen.
</li>
<?php } ?>
<li><h4>Search</h4>
<?php get_search_form(); ?>
</li>
<?php endif; ?>
</ul>
</div> <!-- #primarysb -->
<div id="secondarysb">
<ul>
<?php if ( !dynamic_sidebar('Secondary') ) : ?>
<?php if( current_user_can('edit_theme_options') ){ ?>
<li><h4>Secondary Sidebar</h4>
This is the secondary sidebar. You may add widgets to it via the Appearance -> Widgets administration screen.
</li>
<?php } ?>
<li><h4>Meta</h4>
<ul>
<li><img src="<?php echo get_template_directory_uri(); ?>/images/feed.png" /><a href="<?php bloginfo('rss2_url'); ?>">RSS Entries</a></li>
<li><img src="<?php echo get_template_directory_uri(); ?>/images/feed.png" /><a href="<?php bloginfo('comments_rss2_url'); ?>">RSS Comments</a></li>
<?php wp_register(); ?>
<li><?php wp_loginout(); ?></li>
</ul>
</li>
<?php endif; ?>
</ul>
</div> <!-- #secondarysb -->
<?php
lblg_sidebar_footer();
?>