-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathsidebar-left.php
47 lines (46 loc) · 2.51 KB
/
sidebar-left.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
<div id="l_sidebar" class="sidebar">
<ul>
<?php
global $post_type;
if ( is_page() && is_active_sidebar( "page_sidebar_l_$post->ID" ) ) {
dynamic_sidebar( "page_sidebar_l_$post->ID" );
} elseif ( ($post_type == 'forum' || $post_type == 'topic' || $post_type == 'reply') && is_active_sidebar( "page_sidebar_l_forum" ) ) {
dynamic_sidebar( "page_sidebar_l_forum" );
} elseif ( !dynamic_sidebar( __( 'Left Sidebar', 'techozoic' ) ) ) {
global $user_ID;
if ( $user_ID ) {
if ( current_user_can( 'edit_themes' ) || current_user_can( 'edit_theme_options' ) ) {
?>
<li><h2 class="widgettitle"><?php _e( 'Default Widgets', 'techozoic' ) ?></h2>
<?php printf( __( 'Widgets below are default. These will be replaced when customizing using %s Widget Admin</a>', 'techozoic' ), '<a href="' . site_url() . '/wp-admin/widgets.php" title="' . __( 'Widgets', 'techozoic' ) . '">' ); ?>
</li>
<?php
}
}
?>
<li><h2 class="widgettitle"><?php _e( 'Meta', 'techozoic' ) ?></h2>
<ul><?php wp_register(); ?>
<li><?php wp_loginout(); ?></li>
<li><a href="http://validator.w3.org/check/referer" title="<?php _e( 'This page validates as XHTML 1.0 Transitional', 'techozoic' ) ?>"><?php _e( 'Valid XHTML', 'techozoic' ) ?></a></li>
<li><a href="http://jigsaw.w3.org/css-validator/check/referer"><?php _e( 'Valid CSS', 'techozoic' ) ?></a></li>
<li><a href="http://wordpress.org/" title="<?php _e( 'Powered by WordPress, state-of-the-art semantic personal publishing platform.', 'techozoic' ) ?>">WordPress</a></li>
<?php wp_meta(); ?>
</ul>
</li>
<?php
if ( function_exists( 'wp_tag_cloud' ) ) {
if ( function_exists( 'wp_count_terms' ) ) {
$numtags = wp_count_terms( 'post_tag', 'ignore_empty=false' );
if ( $numtags > 0 ) {
?>
<li><h2 class="widgettitle"><?php _e( 'Tags', 'techozoic' ) ?></h2>
<?php wp_tag_cloud( 'format=list&largest=8&order=DESC&orderby=count&number=5' ); ?>
</li>
<?php
}
}
}
}
?>
</ul>
</div>