|
1 <?php |
|
2 $options = get_option('inove_options'); |
|
3 |
|
4 if($options['feed'] && $options['feed_url']) { |
|
5 if (substr(strtoupper($options['feed_url']), 0, 7) == 'HTTP://') { |
|
6 $feed = $options['feed_url']; |
|
7 } else { |
|
8 $feed = 'http://' . $options['feed_url']; |
|
9 } |
|
10 } else { |
|
11 $feed = get_bloginfo('rss2_url'); |
|
12 } |
|
13 ?> |
|
14 |
|
15 <!-- sidebar START --> |
|
16 <div id="sidebar"> |
|
17 |
|
18 <!-- sidebar north START --> |
|
19 <div id="northsidebar" class="sidebar"> |
|
20 |
|
21 <!-- feeds --> |
|
22 <div class="widget widget_feeds"> |
|
23 <div class="content"> |
|
24 <div id="subscribe"> |
|
25 <a rel="external nofollow" id="feedrss" title="<?php _e('Subscribe to this blog...', 'inove'); ?>" href="<?php echo $feed; ?>"><?php _e('<abbr title="Really Simple Syndication">RSS</abbr>', 'inove'); ?></a> |
|
26 <?php if($options['feed_readers']) : ?> |
|
27 <ul id="feed_readers"> |
|
28 <li id="google_reader"><a rel="external nofollow" class="reader" title="<?php _e('Subscribe with ', 'inove'); _e('Google', 'inove'); ?>" href="http://fusion.google.com/add?feedurl=<?php echo $feed; ?>"><span><?php _e('Google', 'inove'); ?></span></a></li> |
|
29 <li id="youdao_reader"><a rel="external nofollow" class="reader" title="<?php _e('Subscribe with ', 'inove'); _e('Youdao', 'inove'); ?>" href="http://reader.youdao.com/#url=<?php echo $feed; ?>"><span><?php _e('Youdao', 'inove'); ?></span></a></li> |
|
30 <li id="xianguo_reader"><a rel="external nofollow" class="reader" title="<?php _e('Subscribe with ', 'inove'); _e('Xian Guo', 'inove'); ?>" href="http://www.xianguo.com/subscribe.php?url=<?php echo $feed; ?>"><span><?php _e('Xian Guo', 'inove'); ?></span></a></li> |
|
31 <li id="zhuaxia_reader"><a rel="external nofollow" class="reader" title="<?php _e('Subscribe with ', 'inove'); _e('Zhua Xia', 'inove'); ?>" href="http://www.zhuaxia.com/add_channel.php?url=<?php echo $feed; ?>"><span><?php _e('Zhua Xia', 'inove'); ?></span></a></li> |
|
32 <li id="yahoo_reader"><a rel="external nofollow" class="reader" title="<?php _e('Subscribe with ', 'inove'); _e('My Yahoo!', 'inove'); ?>" href="http://add.my.yahoo.com/rss?url=<?php echo $feed; ?>"><span><?php _e('My Yahoo!', 'inove'); ?></span></a></li> |
|
33 <li id="newsgator_reader"><a rel="external nofollow" class="reader" title="<?php _e('Subscribe with ', 'inove'); _e('newsgator', 'inove'); ?>" href="http://www.newsgator.com/ngs/subscriber/subfext.aspx?url=<?php echo $feed; ?>"><span><?php _e('newsgator', 'inove'); ?></span></a></li> |
|
34 <li id="bloglines_reader"><a rel="external nofollow" class="reader" title="<?php _e('Subscribe with ', 'inove'); _e('Bloglines', 'inove'); ?>" href="http://www.bloglines.com/sub/<?php echo $feed; ?>"><span><?php _e('Bloglines', 'inove'); ?></span></a></li> |
|
35 <li id="inezha_reader"><a rel="external nofollow" class="reader" title="<?php _e('Subscribe with ', 'inove'); _e('iNezha', 'inove'); ?>" href="http://inezha.com/add?url=<?php echo $feed; ?>"><span><?php _e('iNezha', 'inove'); ?></span></a></li> |
|
36 </ul> |
|
37 <?php endif; ?> |
|
38 </div> |
|
39 <?php if($options['feed_email'] && $options['feed_url_email']) : ?> |
|
40 <a rel="external nofollow" id="feedemail" title="<?php _e('Subscribe to this blog via email...', 'inove'); ?>" href="<?php echo $options['feed_url_email']; ?>"><?php _e('Email feed', 'inove'); ?></a> |
|
41 <?php endif; if($options['twitter'] && $options['twitter_username']) : ?> |
|
42 <a id="followme" title="<?php _e('Follow me!', 'inove'); ?>" href="http://twitter.com/<?php echo $options['twitter_username']; ?>/"><?php _e('Twitter', 'inove'); ?></a> |
|
43 <?php endif; ?> |
|
44 <div class="fixed"></div> |
|
45 </div> |
|
46 </div> |
|
47 |
|
48 <!-- showcase --> |
|
49 <?php if( $options['showcase_content'] && ( |
|
50 ($options['showcase_registered'] && $user_ID) || |
|
51 ($options['showcase_commentator'] && !$user_ID && isset($_COOKIE['comment_author_'.COOKIEHASH])) || |
|
52 ($options['showcase_visitor'] && !$user_ID && !isset($_COOKIE['comment_author_'.COOKIEHASH])) |
|
53 ) ) : ?> |
|
54 <div class="widget"> |
|
55 <?php if($options['showcase_caption']) : ?> |
|
56 <h3><?php if($options['showcase_title']){echo($options['showcase_title']);}else{_e('Showcase', 'inove');} ?></h3> |
|
57 <?php endif; ?> |
|
58 <div class="content"> |
|
59 <?php echo($options['showcase_content']); ?> |
|
60 </div> |
|
61 </div> |
|
62 <?php endif; ?> |
|
63 |
|
64 <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('north_sidebar') ) : ?> |
|
65 |
|
66 <!-- posts --> |
|
67 <?php |
|
68 if (is_single()) { |
|
69 $posts_widget_title = 'Recent Posts'; |
|
70 } else { |
|
71 $posts_widget_title = 'Random Posts'; |
|
72 } |
|
73 ?> |
|
74 |
|
75 <div class="widget"> |
|
76 <h3><?php echo $posts_widget_title; ?></h3> |
|
77 <ul> |
|
78 <?php |
|
79 if (is_single()) { |
|
80 $posts = get_posts('numberposts=10&orderby=post_date'); |
|
81 } else { |
|
82 $posts = get_posts('numberposts=5&orderby=rand'); |
|
83 } |
|
84 foreach($posts as $post) { |
|
85 setup_postdata($post); |
|
86 echo '<li><a href="' . get_permalink() . '">' . get_the_title() . '</a></li>'; |
|
87 } |
|
88 $post = $posts[0]; |
|
89 ?> |
|
90 </ul> |
|
91 </div> |
|
92 |
|
93 <!-- recent comments --> |
|
94 <?php if( function_exists('wp_recentcomments') ) : ?> |
|
95 <div class="widget"> |
|
96 <h3>Recent Comments</h3> |
|
97 <ul> |
|
98 <?php wp_recentcomments('limit=5&length=16&post=false&smilies=true'); ?> |
|
99 </ul> |
|
100 </div> |
|
101 <?php endif; ?> |
|
102 |
|
103 <!-- tag cloud --> |
|
104 <div id="tag_cloud" class="widget"> |
|
105 <h3>Tag Cloud</h3> |
|
106 <?php wp_tag_cloud('smallest=8&largest=16'); ?> |
|
107 </div> |
|
108 |
|
109 <?php endif; ?> |
|
110 </div> |
|
111 <!-- sidebar north END --> |
|
112 |
|
113 <div id="centersidebar"> |
|
114 |
|
115 <!-- sidebar east START --> |
|
116 <div id="eastsidebar" class="sidebar"> |
|
117 <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('east_sidebar') ) : ?> |
|
118 |
|
119 <!-- categories --> |
|
120 <div class="widget widget_categories"> |
|
121 <h3>Categories</h3> |
|
122 <ul> |
|
123 <?php wp_list_cats('sort_column=name&optioncount=0&depth=1'); ?> |
|
124 </ul> |
|
125 </div> |
|
126 |
|
127 <?php endif; ?> |
|
128 </div> |
|
129 <!-- sidebar east END --> |
|
130 |
|
131 <!-- sidebar west START --> |
|
132 <div id="westsidebar" class="sidebar"> |
|
133 <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('west_sidebar') ) : ?> |
|
134 |
|
135 <!-- blogroll --> |
|
136 <div class="widget widget_links"> |
|
137 <h3>Blogroll</h3> |
|
138 <ul> |
|
139 <?php wp_list_bookmarks('title_li=&categorize=0'); ?> |
|
140 </ul> |
|
141 </div> |
|
142 |
|
143 <?php endif; ?> |
|
144 </div> |
|
145 <!-- sidebar west END --> |
|
146 <div class="fixed"></div> |
|
147 </div> |
|
148 |
|
149 <!-- sidebar south START --> |
|
150 <div id="southsidebar" class="sidebar"> |
|
151 <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('south_sidebar') ) : ?> |
|
152 |
|
153 <!-- archives --> |
|
154 <div class="widget"> |
|
155 <h3>Archives</h3> |
|
156 <?php if(function_exists('wp_easyarchives_widget')) : ?> |
|
157 <?php wp_easyarchives_widget("mode=none&limit=6"); ?> |
|
158 <?php else : ?> |
|
159 <ul> |
|
160 <?php wp_get_archives('type=monthly'); ?> |
|
161 </ul> |
|
162 <?php endif; ?> |
|
163 </div> |
|
164 |
|
165 <!-- meta --> |
|
166 <div class="widget"> |
|
167 <h3>Meta</h3> |
|
168 <ul> |
|
169 <?php wp_register(); ?> |
|
170 <li><?php wp_loginout(); ?></li> |
|
171 </ul> |
|
172 </div> |
|
173 |
|
174 <?php endif; ?> |
|
175 </div> |
|
176 <!-- sidebar south END --> |
|
177 |
|
178 </div> |
|
179 <!-- sidebar END --> |