This repository has been archived by the owner on May 16, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sidebar.php
57 lines (45 loc) · 1.94 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
<aside id="sidebar">
<section class="widget">
<h3 class="widgettitle"><i class="widgeticon"></i>关注本站</h3>
<?php include(TEMPLATEPATH . '/library/searchform.php') ?>
<div class="clear"></div>
</section>
<?php if (get_option('swt_ada') == 'Display') { ?>
<section class="widget adsense">
<?php echo stripslashes(get_option('swt_adacode')); ?>
<?php { echo ''; } ?>
</section>
<?php } else { } ?>
<section class="widget">
<h3 class="widgettitle"><i class="navicon"></i>更多</h3>
<div class="footnav">
<?php if(function_exists('wp_nav_menu')) { wp_nav_menu(array('theme_location'=>'footnav','menu_id'=>'sidenav','container'=>'ul'));}?>
</div>
<div class="clear"></div>
</section>
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('小工具1') ) : ?><?php endif; ?>
<section class="widget top_views">
<?php require_once(TEMPLATEPATH . '/library/topviews.php');//最热阅读 ?>
</section>
<section class="widget r_comment">
<?php require_once(TEMPLATEPATH . '/library/r_comment.php');//最新评论 ?>
</section>
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('小工具2') ) : ?><?php endif; ?>
<section class="widget">
<h3 class="widgettitle"><i class="widgeticon"></i>网站概况</h3>
<?php include_once(TEMPLATEPATH . '/library/pendect.php') ?>
<div class="clear"></div>
</section>
<?php wp_reset_query();if(is_home() ){?>
<section class="widget">
<h3 class="widgettitle"><i class="vlinks"></i>友情链接</h3>
<div class="mylinks">
<ul>
<?php
$linkscat = get_option('swt_linkscat');
wp_list_bookmarks('orderby=link_id&category='.$linkscat.'&categorize=0&title_li');?>
</ul>
</div>
</section>
<?php } ?>
</aside>