Advertisement
Guest User

Sandbox Sidebar.php

a guest
Jul 8th, 2012
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.34 KB | None | 0 0
  1.     <div id="primary" class="sidebar">
  2.         <ul class="xoxo">
  3. <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(1) ) : // begin primary sidebar widgets ?>
  4.  
  5.             <li id="pages">
  6.                 <h3><?php _e( 'Pages', 'sandbox' ) ?></h3>
  7.                 <ul>
  8. <?php wp_list_pages('title_li=&sort_column=menu_order' ) ?>
  9.                 </ul>
  10.             </li>
  11.  
  12.             <li id="categories">
  13.                 <h3><?php _e( 'Categories', 'sandbox' ) ?></h3>
  14.                 <ul>
  15. <?php wp_list_categories('title_li=&show_count=0&hierarchical=1') ?>
  16.  
  17.                 </ul>
  18.             </li>
  19.  
  20.             <li id="archives">
  21.                 <h3><?php _e( 'Archives', 'sandbox' ) ?></h3>
  22.                 <ul>
  23. <?php wp_get_archives('type=monthly') ?>
  24.  
  25.                 </ul>
  26.             </li>
  27.            
  28. <?php endif; // end primary sidebar widgets  ?>
  29.         </ul>
  30.     </div>
  31.    
  32.     <!-- #primary .sidebar -->
  33.    
  34.    
  35.     <div id="secondary" class="sidebar">
  36.         <ul class="xoxo">
  37. <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(2) ) : // begin secondary sidebar widgets ?>
  38.             <li id="search">
  39.                 <h3><label for="s"><?php _e( 'Search', 'sandbox' ) ?></label></h3>
  40.                 <form id="searchform" class="blog-search" method="get" action="<?php bloginfo('home') ?>">
  41.                     <div>
  42.                         <input id="s" name="s" type="text" class="text" value="<?php the_search_query() ?>" size="10" tabindex="1" />
  43.                         <input type="submit" class="button" value="<?php _e( 'Find', 'sandbox' ) ?>" tabindex="2" />
  44.                     </div>
  45.                 </form>
  46.             </li>
  47.  
  48. <?php wp_list_bookmarks('title_before=<h3>&title_after=</h3>&show_images=1') ?>
  49.  
  50.             <li id="rss-links">
  51.                 <h3><?php _e( 'RSS Feeds', 'sandbox' ) ?></h3>
  52.                 <ul>
  53.                     <li><a href="<?php bloginfo('rss2_url') ?>" title="<?php printf( __( '%s latest posts', 'sandbox' ), wp_specialchars( get_bloginfo('name'), 1 ) ) ?>" rel="alternate" type="application/rss+xml"><?php _e( 'All posts', 'sandbox' ) ?></a></li>
  54.                     <li><a href="<?php bloginfo('comments_rss2_url') ?>" title="<?php printf( __( '%s latest comments', 'sandbox' ), wp_specialchars( get_bloginfo('name'), 1 ) ) ?>" rel="alternate" type="application/rss+xml"><?php _e( 'All comments', 'sandbox' ) ?></a></li>
  55.                 </ul>
  56.             </li>
  57.  
  58.             <li id="meta">
  59.                 <h3><?php _e( 'Meta', 'sandbox' ) ?></h3>
  60.                 <ul>
  61.                     <?php wp_register() ?>
  62.  
  63.                     <li><?php wp_loginout() ?></li>
  64.                     <?php wp_meta() ?>
  65.  
  66.                 </ul>
  67.             </li>
  68. <?php endif; // end secondary sidebar widgets  ?>
  69.         </ul>
  70.     </div><!-- #secondary .sidebar -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement