PageRenderTime 24ms CodeModel.GetById 18ms RepoModel.GetById 1ms app.codeStats 0ms

/microsoft/JqPress/Jqpress_blog/????/Minism/minism/sidebar.php

http://jqbird.googlecode.com/
PHP | 268 lines | 205 code | 56 blank | 7 comment | 52 complexity | d9a9be75084cfab6c684934c3d1d2464 MD5 | raw file
Possible License(s): GPL-3.0, LGPL-3.0, LGPL-2.1, GPL-2.0
  1. <div id="rightsidebar">
  2. <div class="preload">
  3. <img src="<?php bloginfo('template_directory'); ?>/images/readmore2.jpg" alt="" />
  4. </div>
  5. <?php
  6. $zenverse_global_aboutus = get_option('zenverse_global_aboutus');
  7. if ($zenverse_global_aboutus && $zenverse_global_aboutus!='') {
  8. ?>
  9. <div class="aboutus">
  10. <div class="aboutustitle">About Us</div>
  11. <?php echo stripslashes($zenverse_global_aboutus); ?>
  12. </div>
  13. <?php
  14. }
  15. ?>
  16. <?php
  17. $zenverse_global_feedburner_url = get_option('zenverse_global_feedburner_url');
  18. $minism_wpfeed_dump = get_option('minism_wpfeed_dump');
  19. if ( $zenverse_global_feedburner_url != '' && $minism_wpfeed_dump == 'true') {
  20. $minism_rss_link = $zenverse_global_feedburner_url;
  21. } else {
  22. $minism_rss_link = get_bloginfo('rss2_url');
  23. }
  24. $zenverse_global_twitter = get_option('zenverse_global_twitter');
  25. $zenverse_global_feedburner_id = get_option('zenverse_global_feedburner_id');
  26. $zenverse_global_facebook = get_option('zenverse_global_facebook');
  27. $minism_feedcount = get_option('minism_feedcount');
  28. ?>
  29. <?php
  30. $minism_subs_disable = get_option('minism_subs_disable');
  31. $zenverse_global_feedburner_id = get_option('zenverse_global_feedburner_id');
  32. if ($minism_subs_disable != 'true') {
  33. ?>
  34. <div id="side_subscribe">
  35. <center>
  36. <a title="RSS feed of blog post" href="<?php echo $usix_rss_link; ?>"><img style="position:relative;" src="<?php bloginfo('template_directory') ?>/images/sidesubs_rss2.gif" onmouseover="this.style.top='-2px';" onmouseout="this.style.top='0px';" alt="" /></a>
  37. <?php if ($zenverse_global_twitter != '') { ?>
  38. <a title="Follow me on Twitter" href="http://twitter.com/<?php echo $zenverse_global_twitter; ?>"><img style="position:relative;" src="<?php bloginfo('template_directory') ?>/images/sidesubs_twitter2.gif" onmouseover="this.style.top='-2px';" onmouseout="this.style.top='0px';" alt="" /></a>
  39. <?php } ?>
  40. <?php if ($zenverse_global_feedburner_id!='') { ?>
  41. <a title="Subscribe to updates via Email" href="http://feedburner.google.com/fb/a/mailverify?uri=<?php echo $zenverse_global_feedburner_id; ?>"><img style="position:relative;" src="<?php bloginfo('template_directory') ?>/images/sidesubs_feedburner2.gif" onmouseover="this.style.top='-2px';" onmouseout="this.style.top='0px';" alt="" /></a>
  42. <?php } ?>
  43. <?php if ($zenverse_global_facebook != '') { ?>
  44. <a title="Follow me on Twitter" href="<?php echo $zenverse_global_facebook; ?>"><img style="position:relative;" src="<?php bloginfo('template_directory') ?>/images/sidesubs_facebook2.gif" onmouseover="this.style.top='-2px';" onmouseout="this.style.top='0px';" alt="" /></a>
  45. <?php } ?>
  46. </center>
  47. </div>
  48. <?php if ($minism_feedcount!='' && $zenverse_global_feedburner_id!= '') { ?>
  49. <div id="side_subscribe_extra">
  50. <center><?php echo stripslashes($minism_feedcount); ?></center>
  51. </div>
  52. <?php } ?>
  53. <div id="side_subscribe_btm"></div>
  54. <?php } ?>
  55. <div class="side_sep"></div>
  56. <?php
  57. $minism_sponsor_disable = get_option('minism_sponsor_disable');
  58. $minism_sponsor_info = get_option('minism_sponsor_info');
  59. if ($minism_sponsor_disable != 'true') {
  60. if ($minism_sponsor_info == '') { $minism_sponsor_info = '#'; }
  61. $minism_sponsor_items = 4;
  62. ?>
  63. <div id="side_sponsors">
  64. <?php
  65. for ($zvi=1;$zvi<=$minism_sponsor_items;$zvi++) {
  66. /*
  67. $minism_sponsor{x}_1 => website url
  68. $minism_sponsor{x}_2 => image url
  69. $minism_sponsor{x}_3 => image alt tag
  70. */
  71. $zv_varname1 = 'minism_sponsor'.$zvi.'_1';
  72. $$zv_varname1 = get_option($zv_varname1);
  73. if ($$zv_varname1 == '') {
  74. $minism_sponsor_link = $minism_sponsor_info;
  75. } else {
  76. $minism_sponsor_link = $$zv_varname1;
  77. }
  78. $zv_varname2 = 'minism_sponsor'.$zvi.'_2';
  79. $$zv_varname2 = get_option($zv_varname2);
  80. if ($$zv_varname2 == '') {
  81. $minism_sponsor_image = get_bloginfo('template_directory').'/images/adshere.jpg';
  82. } else {
  83. $minism_sponsor_image = $$zv_varname2;
  84. }
  85. $zv_varname3 = 'minism_sponsor'.$zvi.'_3';
  86. $$zv_varname3 = get_option($zv_varname3);
  87. $minism_sponsor_alttag = '';
  88. if ($$zv_varname3 != '') { $minism_sponsor_alttag = htmlspecialchars($$zv_varname3); }
  89. ?>
  90. <a href="<?php echo $minism_sponsor_link; ?>" title="<?php echo $minism_sponsor_alttag; ?>"><img alt="<?php echo $minism_sponsor_alttag; ?>" src="<?php echo $minism_sponsor_image; ?>" /></a>
  91. <?php } ?>
  92. <div class="clear"></div>
  93. </div>
  94. <div class="side_sep"></div>
  95. <?php } /* end sponsor enabled */ else { // disabled
  96. $minism_custom_sponsor = get_option('minism_custom_sponsor');
  97. if ($minism_custom_sponsor != '') {
  98. echo '<div>'.stripslashes($minism_custom_sponsor).'</div>
  99. <div class="side_sep"></div>';
  100. }
  101. }?>
  102. <?php
  103. $minism_tab_disable = get_option('minism_tab_disable');
  104. if ($minism_tab_disable != 'true') {
  105. ?>
  106. <div class="widgetblock">
  107. <div class="tabber">
  108. <div class="tabbertab">
  109. <h2>Categories </h2>
  110. <ul>
  111. <?php
  112. $zv_tab_cat = wp_list_categories('echo=0&show_count=1&title_li=&use_desc_for_title=1');
  113. $zv_tab_cat = preg_replace("/\(([0-9]{1,})\)/", ' &nbsp;<span class="postnum">($1 posts)</span>', $zv_tab_cat);
  114. echo $zv_tab_cat;
  115. ?>
  116. </ul>
  117. <div class="clear"></div>
  118. </div>
  119. <div class="tabbertab">
  120. <h2>Comments</h2>
  121. <?php
  122. if (is_file(TEMPLATEPATH . '/simple_recent_comments.php')) {
  123. include (TEMPLATEPATH . '/simple_recent_comments.php');
  124. }/* recent comments plugin by: www.g-loaded.eu */
  125. if (function_exists('src_simple_recent_comments')) {
  126. $qcomments = src_simple_recent_comments(10, 60, '', '');
  127. if ($qcomments == '') { echo '<ul><li>No comments yet. <br />Be the first to comment!</li></ul>'; } else { echo $qcomments; }
  128. }
  129. ?>
  130. </div>
  131. <div class="tabbertab">
  132. <h2>Recent Posts</h2>
  133. <?php query_posts('showposts=10'); ?>
  134. <ul>
  135. <?php while (have_posts()) : the_post(); ?>
  136. <li><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></li>
  137. <?php endwhile; ?>
  138. </ul></div>
  139. </div>
  140. </div>
  141. <?php
  142. }
  143. ?>
  144. <?php
  145. $minism_youtube = get_option('minism_youtube');
  146. if ($minism_youtube != '') {
  147. ?>
  148. <div class="widgetblock">
  149. <div class="widgettitle">Featured Video</div>
  150. <div class="youtube">
  151. <object type="application/x-shockwave-flash" width="283" height="233" data="http://www.youtube.com/v/<?php echo stripslashes($minism_youtube); ?>&amp;fs=1&amp;showsearch=0&amp;rel=0">
  152. <param name="movie" value="http://www.youtube.com/v/<?php echo stripslashes($minism_youtube); ?>&amp;fs=1&amp;showsearch=0&amp;rel=0" />
  153. <param name="allowscriptaccess" value="always" />
  154. <param name="allowFullScreen" value="true" />
  155. </object>
  156. </div>
  157. </div>
  158. <?php
  159. }
  160. ?>
  161. <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Big Sidebar') ) : ?>
  162. <div class="widgetblock">
  163. <div class="widgettitle">Recent Posts</div>
  164. <div class="widgetcontent">
  165. <?php query_posts('showposts=5'); ?>
  166. <ul>
  167. <?php while (have_posts()) : the_post(); ?>
  168. <li><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></li>
  169. <?php endwhile; ?>
  170. </ul>
  171. </div>
  172. </div>
  173. <?php endif; ?>
  174. <?php
  175. $zenverse_global_adsense_id = get_option('zenverse_global_adsense_id');
  176. $minism_adsense_sidebar_enable = get_option('minism_adsense_sidebar_enable');
  177. if ($zenverse_global_adsense_id && $minism_adsense_sidebar_enable == 'true'){
  178. ?>
  179. <div class="widgetblock">
  180. <div class="widgettitle">Sponsors</div>
  181. <div class="adsense-sidebar">
  182. <script type="text/javascript">
  183. //<![CDATA[
  184. google_ad_client = "pub-<?php echo $zenverse_global_adsense_id; ?>";
  185. google_ad_width = 300;
  186. google_ad_height = 250;
  187. google_ad_format = "300x250_as";
  188. google_ad_type = "text";
  189. google_ad_channel = "";
  190. google_color_border = "f1f1f1";
  191. google_color_bg = "f1f1f1";
  192. google_color_link = "bbbbbb";
  193. google_color_text = "bbbbbb";
  194. google_color_url = "bbbbbb";
  195. google_ui_features = "rc:0";
  196. //]]>
  197. </script>
  198. <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
  199. </div></div>
  200. <?php } ?>
  201. <div class="smaller_widget_wrap">
  202. <div class="smaller_widget_left">
  203. <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Small Sidebar 1') ) : ?>
  204. <?php endif; ?>
  205. </div><!--/smaller_widget_left-->
  206. <div class="smaller_widget_right">
  207. <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Small Sidebar 2') ) : ?>
  208. <?php endif; ?>
  209. </div><!--/smaller_widget_right-->
  210. <div class="clear"></div>
  211. </div><!--/smaller_widget_wrap-->
  212. </div><!--/rightsidebar-->