/microsoft/JqPress/Jqpress_blog/????/Minism/minism/sidebar.php
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
- <div id="rightsidebar">
-
- <div class="preload">
- <img src="<?php bloginfo('template_directory'); ?>/images/readmore2.jpg" alt="" />
- </div>
-
- <?php
- $zenverse_global_aboutus = get_option('zenverse_global_aboutus');
- if ($zenverse_global_aboutus && $zenverse_global_aboutus!='') {
- ?>
- <div class="aboutus">
- <div class="aboutustitle">About Us</div>
- <?php echo stripslashes($zenverse_global_aboutus); ?>
- </div>
- <?php
- }
- ?>
-
- <?php
- $zenverse_global_feedburner_url = get_option('zenverse_global_feedburner_url');
- $minism_wpfeed_dump = get_option('minism_wpfeed_dump');
- if ( $zenverse_global_feedburner_url != '' && $minism_wpfeed_dump == 'true') {
- $minism_rss_link = $zenverse_global_feedburner_url;
- } else {
- $minism_rss_link = get_bloginfo('rss2_url');
- }
- $zenverse_global_twitter = get_option('zenverse_global_twitter');
- $zenverse_global_feedburner_id = get_option('zenverse_global_feedburner_id');
- $zenverse_global_facebook = get_option('zenverse_global_facebook');
- $minism_feedcount = get_option('minism_feedcount');
- ?>
-
- <?php
- $minism_subs_disable = get_option('minism_subs_disable');
- $zenverse_global_feedburner_id = get_option('zenverse_global_feedburner_id');
- if ($minism_subs_disable != 'true') {
- ?>
-
- <div id="side_subscribe">
- <center>
-
- <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>
-
- <?php if ($zenverse_global_twitter != '') { ?>
- <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>
- <?php } ?>
-
- <?php if ($zenverse_global_feedburner_id!='') { ?>
- <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>
- <?php } ?>
-
- <?php if ($zenverse_global_facebook != '') { ?>
- <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>
- <?php } ?>
-
- </center>
- </div>
-
- <?php if ($minism_feedcount!='' && $zenverse_global_feedburner_id!= '') { ?>
- <div id="side_subscribe_extra">
- <center><?php echo stripslashes($minism_feedcount); ?></center>
- </div>
- <?php } ?>
-
- <div id="side_subscribe_btm"></div>
- <?php } ?>
-
-
-
-
- <div class="side_sep"></div>
-
- <?php
- $minism_sponsor_disable = get_option('minism_sponsor_disable');
- $minism_sponsor_info = get_option('minism_sponsor_info');
- if ($minism_sponsor_disable != 'true') {
- if ($minism_sponsor_info == '') { $minism_sponsor_info = '#'; }
- $minism_sponsor_items = 4;
- ?>
-
- <div id="side_sponsors">
-
- <?php
- for ($zvi=1;$zvi<=$minism_sponsor_items;$zvi++) {
- /*
- $minism_sponsor{x}_1 => website url
- $minism_sponsor{x}_2 => image url
- $minism_sponsor{x}_3 => image alt tag
- */
- $zv_varname1 = 'minism_sponsor'.$zvi.'_1';
- $$zv_varname1 = get_option($zv_varname1);
- if ($$zv_varname1 == '') {
- $minism_sponsor_link = $minism_sponsor_info;
- } else {
- $minism_sponsor_link = $$zv_varname1;
- }
-
- $zv_varname2 = 'minism_sponsor'.$zvi.'_2';
- $$zv_varname2 = get_option($zv_varname2);
- if ($$zv_varname2 == '') {
- $minism_sponsor_image = get_bloginfo('template_directory').'/images/adshere.jpg';
- } else {
- $minism_sponsor_image = $$zv_varname2;
- }
-
- $zv_varname3 = 'minism_sponsor'.$zvi.'_3';
- $$zv_varname3 = get_option($zv_varname3);
- $minism_sponsor_alttag = '';
- if ($$zv_varname3 != '') { $minism_sponsor_alttag = htmlspecialchars($$zv_varname3); }
-
-
- ?>
- <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>
- <?php } ?>
- <div class="clear"></div>
- </div>
-
- <div class="side_sep"></div>
- <?php } /* end sponsor enabled */ else { // disabled
- $minism_custom_sponsor = get_option('minism_custom_sponsor');
- if ($minism_custom_sponsor != '') {
- echo '<div>'.stripslashes($minism_custom_sponsor).'</div>
- <div class="side_sep"></div>';
- }
- }?>
-
-
-
-
- <?php
- $minism_tab_disable = get_option('minism_tab_disable');
- if ($minism_tab_disable != 'true') {
- ?>
- <div class="widgetblock">
-
- <div class="tabber">
- <div class="tabbertab">
- <h2>Categories </h2>
- <ul>
- <?php
- $zv_tab_cat = wp_list_categories('echo=0&show_count=1&title_li=&use_desc_for_title=1');
- $zv_tab_cat = preg_replace("/\(([0-9]{1,})\)/", ' <span class="postnum">($1 posts)</span>', $zv_tab_cat);
- echo $zv_tab_cat;
- ?>
- </ul>
- <div class="clear"></div>
- </div>
-
- <div class="tabbertab">
- <h2>Comments</h2>
- <?php
- if (is_file(TEMPLATEPATH . '/simple_recent_comments.php')) {
- include (TEMPLATEPATH . '/simple_recent_comments.php');
- }/* recent comments plugin by: www.g-loaded.eu */
-
- if (function_exists('src_simple_recent_comments')) {
- $qcomments = src_simple_recent_comments(10, 60, '', '');
- if ($qcomments == '') { echo '<ul><li>No comments yet. <br />Be the first to comment!</li></ul>'; } else { echo $qcomments; }
- }
- ?>
- </div>
-
- <div class="tabbertab">
- <h2>Recent Posts</h2>
- <?php query_posts('showposts=10'); ?>
- <ul>
- <?php while (have_posts()) : the_post(); ?>
- <li><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></li>
- <?php endwhile; ?>
- </ul></div>
-
- </div>
- </div>
- <?php
- }
- ?>
-
-
- <?php
- $minism_youtube = get_option('minism_youtube');
- if ($minism_youtube != '') {
- ?>
- <div class="widgetblock">
- <div class="widgettitle">Featured Video</div>
- <div class="youtube">
- <object type="application/x-shockwave-flash" width="283" height="233" data="http://www.youtube.com/v/<?php echo stripslashes($minism_youtube); ?>&fs=1&showsearch=0&rel=0">
- <param name="movie" value="http://www.youtube.com/v/<?php echo stripslashes($minism_youtube); ?>&fs=1&showsearch=0&rel=0" />
- <param name="allowscriptaccess" value="always" />
- <param name="allowFullScreen" value="true" />
- </object>
- </div>
- </div>
- <?php
- }
- ?>
-
-
-
- <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Big Sidebar') ) : ?>
-
- <div class="widgetblock">
- <div class="widgettitle">Recent Posts</div>
- <div class="widgetcontent">
- <?php query_posts('showposts=5'); ?>
- <ul>
- <?php while (have_posts()) : the_post(); ?>
- <li><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></li>
- <?php endwhile; ?>
- </ul>
- </div>
- </div>
-
- <?php endif; ?>
-
-
- <?php
- $zenverse_global_adsense_id = get_option('zenverse_global_adsense_id');
- $minism_adsense_sidebar_enable = get_option('minism_adsense_sidebar_enable');
- if ($zenverse_global_adsense_id && $minism_adsense_sidebar_enable == 'true'){
- ?>
- <div class="widgetblock">
- <div class="widgettitle">Sponsors</div>
- <div class="adsense-sidebar">
- <script type="text/javascript">
- //<![CDATA[
- google_ad_client = "pub-<?php echo $zenverse_global_adsense_id; ?>";
- google_ad_width = 300;
- google_ad_height = 250;
- google_ad_format = "300x250_as";
- google_ad_type = "text";
- google_ad_channel = "";
- google_color_border = "f1f1f1";
- google_color_bg = "f1f1f1";
- google_color_link = "bbbbbb";
- google_color_text = "bbbbbb";
- google_color_url = "bbbbbb";
- google_ui_features = "rc:0";
- //]]>
- </script>
- <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
- </div></div>
- <?php } ?>
-
-
- <div class="smaller_widget_wrap">
-
- <div class="smaller_widget_left">
- <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Small Sidebar 1') ) : ?>
-
- <?php endif; ?>
- </div><!--/smaller_widget_left-->
-
- <div class="smaller_widget_right">
- <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Small Sidebar 2') ) : ?>
-
- <?php endif; ?>
- </div><!--/smaller_widget_right-->
-
- <div class="clear"></div>
- </div><!--/smaller_widget_wrap-->
-
-
-
-
-
-
-
- </div><!--/rightsidebar-->