Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.45 KB | None | 0 0
  1.         <div id="primary" class="sidebar">
  2.             <ul>
  3. <?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : // Begin Widgets; displays widgets or default contents below ?>
  4.  
  5. <?php if ( !is_home() || is_paged() ) { // Displays a home link everywhere except the home page ?>
  6.                 <li id="home-link">
  7.                     <h3><a href="<?php bloginfo('home') ?>" title="<?php echo wp_specialchars(get_bloginfo('name'), 1) ?>"><?php _e('&lsaquo; Home', 'veryplaintxt') ?></a></h3>
  8.                 </li>
  9. <?php } ?>
  10.  
  11.                 <li id="search">
  12.                     <h3><label for="s"><?php _e('Search', 'veryplaintxt') ?></label></h3>
  13.                     <form id="searchform" method="get" action="<?php bloginfo('home') ?>">
  14.                         <div>
  15.                             <input id="s" name="s" type="text" value="<?php echo wp_specialchars(stripslashes($_GET['s']), true) ?>" size="10" />
  16.                             <input id="searchsubmit" name="searchsubmit" type="submit" value="<?php _e('Find', 'veryplaintxt') ?>" />
  17.                         </div>
  18.                     </form>
  19.                 </li>
  20. <?php wp_list_pages('title_li=<h3>'.__('Contents').'</h3>&sort_column=post_title' ) ?>
  21.  
  22.                 <li id="categories">
  23.                     <h3><?php _e('Categories', 'veryplaintxt'); ?></h3>
  24.                     <ul>
  25. <?php wp_list_categories('title_li=&orderby=name&use_desc_for_title=1&hierarchical=1') ?>
  26.  
  27.                     </ul>
  28.                 </li>
  29.  
  30.                 <li id="tag-cloud">
  31.                     <h3><?php _e('Tags', 'veryplaintxt'); ?></h3>
  32.                     <p><?php wp_tag_cloud() ?></p>
  33.                 </li>
  34.  
  35.                 <li id="archives">
  36.                     <h3><?php _e('Archives', 'veryplaintxt') ?></h3>
  37.                     <ul>
  38. <?php wp_get_archives('type=monthly') ?>
  39.  
  40.                     </ul>
  41.                 </li>
  42.  
  43. <?php wp_list_bookmarks('title_before=<h3>&title_after=</h3>') ?>
  44.  
  45.                 <li id="rss-links">
  46.                     <h3><?php _e('RSS Feeds', 'veryplaintxt') ?></h3>
  47.                     <ul>
  48.                         <li><a href="<?php bloginfo('rss2_url') ?>" title="<?php echo wp_specialchars(get_bloginfo('name'), 1) ?> RSS 2.0 Feed" rel="alternate" type="application/rss+xml"><?php _e('All posts', 'veryplaintxt') ?></a></li>
  49.                         <li><a href="<?php bloginfo('comments_rss2_url') ?>" title="<?php echo wp_specialchars(bloginfo('name'), 1) ?> Comments RSS 2.0 Feed" rel="alternate" type="application/rss+xml"><?php _e('All comments', 'veryplaintxt') ?></a></li>
  50.                     </ul>
  51.                 </li>
  52.  
  53.                 <li id="meta">
  54.                     <h3><?php _e('Meta', 'veryplaintxt') ?></h3>
  55.                     <ul>
  56.                         <?php wp_register() ?>
  57.                         <li><?php wp_loginout() ?></li>
  58.                         <?php wp_meta() // Do not remove; helps plugins work ?>
  59.                     </ul>
  60.                 </li>
  61. <?php endif; // End Widgets ?>
  62.  
  63.             </ul>
  64.         </div><!-- #primary .sidebar -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement