Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.58 KB | None | 0 0
  1.     </div><!-- end #content -->
  2.    
  3.     <div id="sidebars">
  4.       <div id="l-sidebar">
  5.  
  6.  
  7.  
  8. <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Sidebar 1') ){ ?>
  9. <?php if(!is_home()){?>
  10. <h2>Recent Posts</h2>
  11. <ul class="recent">
  12. <?php
  13. $myposts = get_posts('numberposts=10');
  14. if(setup_postdata($post)){
  15. foreach($myposts as $post){
  16. ?>
  17. <li><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></li>
  18.  
  19. <?php }}} else {?>
  20. <ul class="recent">
  21. <?php recently_viewed_posts(); ?>
  22. <?php }} ?>
  23. </ul>
  24.  
  25. <h2>Tag Cloud</h2>
  26. <?php wp_tag_cloud(); ?>
  27.  
  28.                         </div><!-- end #l-sidebar -->
  29.  
  30.  
  31.                         <div id="r-sidebar">
  32.  
  33. <?php   if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Sidebar 2') ){ ?>
  34. <?php if (is_single()) {?>
  35. <h2>Links</h2>
  36. <div align="center">
  37. <ul>
  38. </ul>
  39.                         <?php if ( is_home() ) {
  40.                         ?>                      <h2>Categories</h2>
  41.               <ul><?php wp_list_categories('show_count=1&title_li='); ?></ul>
  42.                         <?php } }?>
  43. <?php if ( is_category() || is_page() || is_archive() || is_search() ) {
  44.                         ?>
  45. <h2>Drug List A-Z</h2>
  46.               <ul><?php wp_list_categories('show_count=1&title_li='); ?></ul>
  47. <h2>Archives</h2>
  48.                                 <ul>
  49.                                         <?php wp_get_archives('type=monthly'); ?>
  50.                                 </ul>
  51. </ul>
  52. <?php }}?>
  53.                        
  54. </div><!-- end #r-sidebar -->
  55.                 </div><!-- end #sidebars -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement