-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsidebar.php
More file actions
executable file
·25 lines (23 loc) · 940 Bytes
/
sidebar.php
File metadata and controls
executable file
·25 lines (23 loc) · 940 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
<?php if(has_menu_items() AND PLAIN_NO_MENU == false): ?>
<aside id="sidebar-block" class="menu">
<ul>
<?php while(menu_items()): ?>
<li class="<?php echo (menu_active() ? 'active ' : ''); ?>menu-item-<?php echo menu_id(); ?>"><a href="<?php echo menu_url(); ?>" title="<?php echo menu_title(); ?>"><?php echo menu_name(); ?></a></li>
<?php endwhile; ?>
</ul>
</aside>
<?php endif; ?>
<?php if(PLAIN_NO_SEARCH == false): ?>
<aside id="sidebar-block" class="search">
<h3>Search</h3>
<form class="search" action="<?php echo search_url(); ?>" method="post">
<input type="text" name="term" placeholder="Type and hit enter" value="">
</form>
</aside>
<?php endif; ?>
<?php if(twitter_account()): ?>
<aside id="sidebar-block" class="twitter">
<h3><a href="http://twitter.com/<?php echo twitter_account(); ?>" title="@<?php echo twitter_account(); ?> on Twitter">Twitter</a></h3>
<?php plain_twitter(); ?>
</aside>
<?php endif; ?>