Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Advertising

Tiga 1.0.2 sidebar.php for WordPress 2.2
Thursday, May 31st, 2007 at 9:39:57am MDT 

  1. <?php
  2. /*
  3. Tiga WordPress Theme
  4.  
  5. Copyright (C) 2006  Shamsul Azhar
  6. Modified for WordPress v2.2 by Otto
  7.  
  8. This program is free software; you can redistribute it and/or
  9. modify it under the terms of the GNU General Public License
  10. as published by the Free Software Foundation; either version 2
  11. of the License, or (at your option) any later version.
  12.  
  13. This program is distributed in the hope that it will be useful,
  14. but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16. GNU General Public License for more details.
  17.  
  18. You should have received a copy of the GNU General Public License
  19. along with this program; if not, write to the Free Software
  20. Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  21. */
  22.  
  23. ?>
  24.  
  25. <!-- ##################################### Begin - Left Sidebar ##################### -->
  26.  
  27. <ul class="left-sidebar">
  28.  
  29. <?php if ( !function_exists('dynamic_sidebar')
  30.         || !dynamic_sidebar('Tiga Left Sidebar') ) { ?>
  31.  
  32.                 <!-- Begin - Pages -->
  33.                 <?php if (tiga_processValue('menuBar') != 'TRUE' && get_pages('')) { ?>
  34.                         <li class="left-widget">
  35.                         <h2 class="left-widget-title"><?php _te('Pages'); ?></h2>
  36.                                 <ul>
  37.                                         <?php wp_list_pages('sort_column=menu_order&title_li='); ?>
  38.                                 </ul>
  39.                         </li>
  40.                 <?php } ?>
  41.                 <!-- End - Pages -->
  42.  
  43.                 <!-- Begin - Misc. Widgets -->
  44.                 <!-- This is just for my personal use, can be safely deleted -->
  45.                 <?php if (function_exists('saasmp_wp_left_sidebar')) saasmp_wp_left_sidebar(); ?>
  46.                 <!-- End - Misc. Widgets -->
  47.  
  48.                 <!-- Begin - Categories -->
  49.                 <li class="left-widget">
  50.                 <h2 class="left-widget-title"><?php _te('Categories'); ?></h2>
  51.                         <ul><?php wp_list_cats('sort_column=name&optioncount=1'); ?></ul>
  52.                 </li>
  53.                 <!-- End - Categories -->
  54.  
  55.                 <!-- Begin - Archives -->
  56.                 <li class="left-widget">
  57.                 <h2 class="left-widget-title"><?php _te('Archives'); ?></h2>
  58.                         <ul><?php get_archives('monthly', '', 'html', '', '', TRUE); ?></ul>
  59.                 </li>
  60.                 <!-- End - Archives -->
  61.  
  62.                 <!-- Begin - Calendar -->
  63.                 <li class="left-widget">
  64.                 <h2 class="left-widget-title"><?php _te('Calendar'); ?></h2>
  65.                 <?php get_calendar(); ?>
  66.                 </li>
  67.                 <!-- End - Calendar -->
  68.  
  69.                 <!-- Begin - Links from the 'Links Manager'-->
  70.                 <?php
  71.                         $link_cats = $wpdb->get_results('SELECT cat_id, cat_name FROM ' . $wpdb->categories . ' WHERE link_count > 0');
  72.                         foreach ($link_cats as $link_cat) {
  73.                 ?>
  74.                         <li class="left-widget">
  75.                         <h2 class="left-widget-title"
  76.                                          id="linkcat-<?php echo $link_cat->cat_id; ?>">
  77.                                          <?php echo $link_cat->cat_name; ?>
  78.                         </h2>
  79.                                 <ul>
  80.                                         <?php   wp_get_links($link_cat->cat_id); ?>
  81.                                 </ul>
  82.                         </li>
  83.                 <?php
  84.                         }
  85.                 ?>
  86.                 <!-- End - Links from the 'Links Manager'-->
  87.  
  88.                 <!-- Begin - Misc. Widgets -->
  89.                 <!-- This is just for my personal use, can be safely deleted -->
  90.                 <?php
  91.                 if (function_exists('saasmp_wp_left_sidebar_misc'))
  92.                         saasmp_wp_left_sidebar_misc();
  93.                 ?>
  94.                 <!-- End - Misc. Widgets -->
  95.  
  96. <?php } ?> <!-- End checking of 'dynamic_sidebar' -->
  97. </ul>
  98.  
  99. <!-- ##################################### End - Left Sidebar ####################### -->
  100.  
  101. <!-- ##################################### Begin - Right Sidebar #################### -->
  102.  
  103. <ul class="right-sidebar">
  104. <?php if ( !function_exists('dynamic_sidebar')
  105.         || !dynamic_sidebar('Tiga Right Sidebar') ) { ?>
  106.                 <!-- Begin - Search -->
  107.                 <li class="right-widget">
  108.                 <h2 class="right-widget-title"><?php _te('Search'); ?></h2>
  109.                 <?php include (TEMPLATEPATH . '/searchform.php'); ?>
  110.                 </li>
  111.                 <!-- End - Search -->
  112.  
  113.                 <!-- Begin - Recent Posts -->
  114.                 <li class="right-widget">
  115.                 <h2 class="right-widget-title"><?php _te('Recent Posts'); ?></h2>
  116.                         <ul><?php get_archives('postbypost',tiga_recentPostsCnt(),'custom','<li>','</li>'); ?></ul>
  117.                 </li>
  118.                 <!-- End - Recent Posts -->
  119.  
  120.                 <!-- Begin - Paypal -->
  121.                 <!-- This is just for my personal use, can be safely deleted -->
  122.                 <?php if (function_exists('saasmp_wp_paypal') && is_single('31')) saasmp_wp_paypal(); ?>
  123.                 <!-- End - Paypal -->
  124.  
  125.                 <!-- Begin - Misc. Widgets -->
  126.                 <!-- This is just for my personal use, can be safely deleted -->
  127.                 <?php if (function_exists('saasmp_wp_right_sidebar')) saasmp_wp_right_sidebar(); ?>
  128.                 <!-- End - Misc. Widgets -->
  129.  
  130.                 <!-- Begin - Meta -->
  131.                 <?php //if ( is_home() || is_page() ) { ?>
  132.                         <li class="right-widget">
  133.                         <h2 class="right-widget-title"><?php _te('Meta'); ?></h2>
  134.                                 <ul>
  135.                                         <?php wp_register(); ?>
  136.                                         <li><?php wp_loginout(); ?></li>
  137.                                         <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>
  138.                                         <li><a href="http://gmpg.org/xfn/"><abbr title="XHTML Friends Network">XFN</abbr></a></li>
  139.                                         <li><a href="http://wordpress.org/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform.">WordPress</a></li>
  140.                                         <?php wp_meta(); ?>
  141.                                 </ul>
  142.                         </li> <!-- right-widget -->
  143.                 <?php //} ?>
  144.                 <!-- End - Meta -->
  145. <?php } ?> <!-- End checking of 'dynamic_sidebar' -->
  146. </ul>
  147.  
  148. <!-- ##################################### End - Right Sidebar ###################### -->

advertising

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

worth-right
fantasy-obligation