-
Notifications
You must be signed in to change notification settings - Fork 11
/
sidebar.php
64 lines (53 loc) · 1.77 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?php
/**
* @package WordPress
* @subpackage Documentation
*/
tha_sidebars_before();
?>
<div id="sidebar">
<?php tha_sidebar_top(); ?>
<ul class="primary-widget-area">
<?php if ( class_exists('SitePress') ) { ?>
<li>
<?php do_action('icl_language_selector'); ?>
</li>
<?php } ?>
<?php
if ( ! dynamic_sidebar( 'primary-widget-area' ) ) : // begin primary widget area
?>
<li id="search">
<?php if ( defined('ASL_ACTIVE') && 'true' == ASL_ACTIVE) { echo as_form('asl'); } else { ?>
<form id="searchform" method="get" action="<?php home_url(); ?>">
<p>
<input type="text" value="" name="s" id="s" />
<input type="submit" class="submit" accesskey="s" value="<?php _e( 'Search', 'documentation' ); ?>" />
</p>
</form>
<?php } ?>
</li>
<li><h2><?php _e('Pages', 'documentation' ); ?></h2>
<ul>
<?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
</ul>
</li>
<?php //wp_list_pages('title_li=<h2>' . __('Pages', 'documentation') . '</h2>'); ?>
<?php wp_list_categories('sort_column=name&optioncount=1&hierarchical=1&hide_empty=0&title_li=<h2>' . __('Categories', 'documentation') . '</h2>&show_count=1'); ?>
<?php if ( !is_home() ) { ?>
<li><h2><?php _e('Last entries', 'documentation' ); ?></h2>
<ul>
<?php wp_get_archives('type=postbypost&limit=15'); ?>
</ul>
</li>
<?php }
endif; // end primary widget area ?>
</ul>
<?php if ( is_active_sidebar('secondary-widget-area') && is_singular() ) : // Nothing here by default and design ?>
<ul class="secondary-widget-area">
<?php dynamic_sidebar( 'secondary-widget-area' ); ?>
</ul>
<?php endif;
tha_sidebar_bottom();
?>
</div>
<?php tha_sidebars_after(); ?>