Advertisement
Guest User

Untitled

a guest
Apr 20th, 2011
432
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.43 KB | None | 0 0
  1. <?php /* Arclite/digitalnature */ ?>
  2.  
  3. <!-- 2nd column (sidebar) -->
  4. <div class="col2">
  5. <ul id="sidebar">
  6.  
  7. <?php if ( is_404() || is_category() || is_day() || is_month() || is_year() || is_search() || is_paged() ): ?>
  8. <li class="block">
  9. <div class="info-text">
  10. <?php /* If this is a 404 page */ if (is_404()) { ?>
  11. <?php /* If this is a category archive */ } elseif (is_category()) { ?>
  12. <p><?php printf(__('You are currently browsing the archives for the %s category.', 'arclite'), single_cat_title('',false)); ?></p>
  13.  
  14. <?php /* If this is a yearly archive */ } elseif (is_day()) { ?>
  15. <p><?php printf(__('You are currently browsing the archives for %s','arclite'), get_the_time(__('l, F jS, Y','arclite'))); ?></p>
  16.  
  17. <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
  18. <p><?php printf(__('You are currently browsing the archives for %s','arclite'), get_the_time(__('F, Y','arclite'))); ?></p>
  19.  
  20. <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
  21. <p><?php printf(__('You are currently browsing the archives for the year %s','arclite'), get_the_time(__('Y','arclite'))); ?></p>
  22.  
  23. <?php /* If this is a monthly archive */ } elseif (is_search()) { ?>
  24. <p class="error"><?php printf(__('You have searched the archives for %s.','arclite'), '<strong>'.wp_specialchars(get_search_query(),1).'</strong>'); ?></p>
  25.  
  26. <?php /* If this is a monthly archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
  27. <p><?php _e('You are currently browsing the archives.','arclite'); ?></p>
  28. <?php } ?>
  29. </div>
  30. </li>
  31. <?php endif;?>
  32.  
  33. <?php if(get_arclite_option('sidebar_categories')) { ?>
  34. <li class="block">
  35. <!-- sidebar menu (categories) -->
  36. <ul class="menu">
  37. <?php if(!get_arclite_option('jquery')):
  38. echo preg_replace('@\<li([^>]*)>\<a([^>]*)>(.*?)\<\/a>@i', '<li$1><a class="fadeThis"$2>$3</a>', wp_list_categories('show_count=0&echo=0&title_li='));
  39. else:
  40. echo preg_replace('@\<li([^>]*)>\<a([^>]*)>(.*?)\<\/a> \(\<a ([^>]*) ([^>]*)>(.*?)\<\/a>\)@i', '<li $1><a class="fadeThis"$2>$3</a><a class="rss tip" $4></a>', wp_list_categories('show_count=0&echo=0&title_li=&feed=XML'));
  41. endif;
  42. if (function_exists('xili_language_list')) xili_language_list(); ?>
  43. </ul>
  44. <!-- /sidebar menu -->
  45. </li>
  46. <?php } ?>
  47.  
  48. <?php /* Widgetized sidebar, if you have the plugin installed. */
  49. if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>
  50. <?php // wp_list_bookmarks('category_before=&category_after=&title_li=&title_before=&title_after='); ?>
  51.  
  52. <li class="block">
  53. <!-- box -->
  54. <div class="box">
  55. <div class="titlewrap"><h4><span><?php _e('Archives','arclite'); ?></span></h4></div>
  56. <div class="wrapleft">
  57. <div class="wrapright">
  58. <div class="tr">
  59. <div class="bl">
  60. <div class="tl">
  61. <div class="br the-content">
  62. <ul>
  63. <?php wp_get_archives('type=monthly&show_post_count=1'); ?>
  64. </ul>
  65. </div>
  66. </div>
  67. </div>
  68. </div>
  69. </div>
  70. </div>
  71. </div>
  72. <!-- /box -->
  73. </li>
  74.  
  75. <li class="block">
  76. <!-- box -->
  77. <div class="box">
  78. <div class="titlewrap"><h4><span><?php _e('Meta','arclite'); ?></span></h4></div>
  79. <div class="wrapleft">
  80. <div class="wrapright">
  81. <div class="tr">
  82. <div class="bl">
  83. <div class="tl">
  84. <div class="br the-content">
  85. <ul>
  86. <?php wp_register(); ?>
  87. <li><?php wp_loginout(); ?></li>
  88. <li><a href="http://validator.w3.org/check/referer" title="This page validates as XHTML 1.0 Transitional">Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr></a></li>
  89. <li><a href="http://gmpg.org/xfn/"><abbr title="XHTML Friends Network">XFN</abbr></a></li>
  90. <li><a href="http://wordpress.org/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform.">WordPress</a></li>
  91. <?php wp_meta(); ?>
  92. </ul>
  93. </div>
  94. </div>
  95. </div>
  96. </div>
  97. </div>
  98. </div>
  99. </div>
  100. <!-- /box -->
  101. </li>
  102. <?php endif; ?>
  103. </ul>
  104. </div>
  105. <!-- /2nd column -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement