Advertisement
Guest User

continuum-bottom-part-register

a guest
Oct 23rd, 2012
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.70 KB | None | 0 0
  1. </div>
  2. <br class="clearer" />
  3.  
  4. </div>
  5. </div>
  6. <script type="text/javascript">
  7. jQuery(document).ready( function() {
  8. if ( jQuery('div#blog-details').length && !jQuery('div#blog-details').hasClass('show') )
  9. jQuery('div#blog-details').toggle();
  10. jQuery( 'input#signup_with_blog' ).click( function() {
  11. jQuery('div#blog-details').fadeOut().toggle();
  12. });
  13. });
  14. </script>
  15. <div class="right-panel sidebar">
  16. <div class="inner">
  17. <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar($sidebar) ) : else : ?>
  18.  
  19. <div id="tabbed-posts">
  20. <ul class="tabnav">
  21. <li><a href="#tabs-popular">Popular</a></li>
  22. <li><a href="#tabs-recent">Recent</a></li>
  23. <li><a href="#tabs-comments">Comments</a></li>
  24. <li><a href="#tabs-tags">Tags</a></li>
  25. </ul>
  26.  
  27. <div class="tabdiv-wrapper">
  28.  
  29. <div id="tabs-popular" class="tabdiv">
  30. <ul>
  31. <?php // create popular query
  32. $postcount=0;
  33. $args='order=DESC&orderby=comment_count&posts_per_page=10';
  34. $pop_loop = new WP_Query($args);
  35. if ($pop_loop->have_posts()) : while ($pop_loop->have_posts()) : $pop_loop->the_post(); $postcount++; ?>
  36. <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
  37. <?php endwhile;
  38. endif; ?>
  39. <li class="last gentesque tooltip" title="View all articles sorted by comment count"><a href="<?php echo home_url(); ?>/<?php con_get_feed_link('comment_count') ?>">More</a></li>
  40. </ul>
  41. </div>
  42.  
  43. <div id="tabs-recent" class="tabdiv">
  44. <ul>
  45. <?php // create recent query
  46. $postcount=0;
  47. $args='order=DESC&orderby=date&posts_per_page=10';
  48. $pop_loop = new WP_Query($args);
  49. if ($pop_loop->have_posts()) : while ($pop_loop->have_posts()) : $pop_loop->the_post(); $postcount++; ?>
  50. <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
  51. <?php endwhile;
  52. endif; ?>
  53. <li class="last gentesque tooltip" title="View all articles sorted by date"><a href="<?php echo home_url(); ?>/<?php con_get_feed_link('date') ?>">More</a></li>
  54. </ul>
  55. </div>
  56.  
  57. <div id="tabs-comments" class="tabdiv">
  58. <ul>
  59. <?php //get recent comments
  60. $args = array(
  61. 'status' => 'approve',
  62. 'number' => 10
  63. );
  64. $comments = get_comments($args);
  65. foreach($comments as $comment) :
  66. $commentcontent = strip_tags($comment->comment_content);
  67. if (strlen($commentcontent)>110) {
  68. $commentcontent = substr($commentcontent, 0, 107) . "...";
  69. }
  70. $commentauthor = $comment->comment_author;
  71. if (strlen($commentauthor)>50) {
  72. $commentauthor = substr($commentauthor, 0, 47) . "...";
  73. }
  74. $commentid = $comment->comment_ID;
  75. $commenturl = get_comment_link($commentid); ?>
  76. <li><a href="<?php echo $commenturl; ?>">"<?php echo $commentcontent; ?>"<span> -&nbsp;<?php echo $commentauthor; ?></span></a></li>
  77. <?php endforeach; ?>
  78. </ul>
  79. </div>
  80.  
  81. <div id="tabs-tags" class="tabdiv">
  82. <?php wp_tag_cloud('smallest=8&largest=22&number=20&orderby=name'); ?>
  83. </div>
  84.  
  85. </div>
  86.  
  87. </div>
  88.  
  89. <div class="widget">
  90.  
  91. <div class="header-left">&nbsp;</div>
  92.  
  93. <div class="header-middle">
  94.  
  95. <h2 class="gentesque"><?php _e(' About Continuum ', 'continuum' ); ?></h2>
  96.  
  97. </div>
  98.  
  99. <div class="header-right">&nbsp;</div>
  100.  
  101. <br class="clearer" />
  102.  
  103. <div class="content-wrapper">
  104. <div class="content">
  105. <p><?php _e( "This is a custom sidebar. Continuum gives you lots of custom sidebar possibilities. You can use the Continuum Theme Options page to specify which pages have a unique sidebar. Or, you can use the same sidebar for all of your pages using the Sidebar Default widget panel. If you do specify that you want a unique sidebar for an area of your site, such as the Search page, you can use the corresponding built-in Sidebar Search widget panel.", 'continuum' ); ?></p>
  106. <p><?php _e( "In fact, Continuum comes standard with 19 unique sidebars. Wow, we're starting to sound like a car commercial, so we'll add that you don't have to use all of them if you don't want. Continuum harnesses the power of absolute customization while at the same time having a quality of meekness: you can forget about all the settings and get yourself up and running in no time flat.", 'continuum' ); ?></p>
  107. </div>
  108. </div>
  109. </div>
  110. </div>
  111.  
  112. </div>
  113.  
  114. <br class="clearer" />
  115.  
  116. </div>
  117. </div>
  118. </div>
  119.  
  120. <?php if($con_page_ad_post_show) { ?>
  121. <div class="full-width-ad">
  122. <?php echo $con_page_ad_post; // ad ?>
  123. </div>
  124. <?php } ?>
  125.  
  126. <?php if($con_page_feed_show) { // show Feed ?>
  127. <?php con_get_feed(); ?>
  128. <?php } ?>
  129.  
  130. <?php if($con_page_ad_feed_show) { ?>
  131. <div class="full-width-ad">
  132. <?php echo $con_page_ad_feed; // ad ?>
  133. </div>
  134. <?php } ?>
  135.  
  136. <?php if($con_page_latest_show) { // show The Latest panel ?>
  137. <?php con_get_latest(); ?>
  138. <?php } ?>
  139.  
  140. <?php get_footer(); // show footer ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement