Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- </div><!-- end #content -->
- <div id="sidebars">
- <div id="l-sidebar">
- <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Sidebar 1') ){ ?>
- <?php if(!is_home()){?>
- <h2>Recent Posts</h2>
- <ul class="recent">
- <?php
- $myposts = get_posts('numberposts=10');
- if(setup_postdata($post)){
- foreach($myposts as $post){
- ?>
- <li><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></li>
- <?php }}} else {?>
- <ul class="recent">
- <?php recently_viewed_posts(); ?>
- <?php }} ?>
- </ul>
- <h2>Tag Cloud</h2>
- <?php wp_tag_cloud(); ?>
- </div><!-- end #l-sidebar -->
- <div id="r-sidebar">
- <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Sidebar 2') ){ ?>
- <?php if (is_single()) {?>
- <h2>Links</h2>
- <div align="center">
- <ul>
- </ul>
- <?php if ( is_home() ) {
- ?> <h2>Categories</h2>
- <ul><?php wp_list_categories('show_count=1&title_li='); ?></ul>
- <?php } }?>
- <?php if ( is_category() || is_page() || is_archive() || is_search() ) {
- ?>
- <h2>Drug List A-Z</h2>
- <ul><?php wp_list_categories('show_count=1&title_li='); ?></ul>
- <h2>Archives</h2>
- <ul>
- <?php wp_get_archives('type=monthly'); ?>
- </ul>
- </ul>
- <?php }}?>
- </div><!-- end #r-sidebar -->
- </div><!-- end #sidebars -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement