Advertising
Paste Description for Tiga 1.0.2 sidebar.php for WordPress 2.2
Tiga 1.0.2 sidebar.php with fixes to properly handle WordPress 2.2 widgets.
- Tiga 1.0.2 sidebar.php for WordPress 2.2
- Wednesday, May 30th, 2007 at 3:08:13pm MDT
- <?php
- /*
- Tiga WordPress Theme
- Copyright (C) 2006 Shamsul Azhar
- Modified for WordPress v2.2 by Otto
- This program is free software; you can redistribute it and/or
- modify it under the terms of the GNU General Public License
- as published by the Free Software Foundation; either version 2
- of the License, or (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
- ?>
- <!-- ##################################### Begin - Left Sidebar ##################### -->
- <ul class="left-sidebar">
- || !dynamic_sidebar('Tiga Left Sidebar') ) { ?>
- <!-- Begin - Pages -->
- <?php if (tiga_processValue('menuBar') != 'TRUE' && get_pages('')) { ?>
- <h2 class="left-widget-title"><?php _te('Pages'); ?></h2>
- <li class="left-widget">
- <ul>
- <?php wp_list_pages('sort_column=menu_order&title_li='); ?>
- </ul>
- </li>
- <?php } ?>
- <!-- End - Pages -->
- <!-- Begin - Misc. Widgets -->
- <!-- This is just for my personal use, can be safely deleted -->
- <!-- End - Misc. Widgets -->
- <!-- Begin - Categories -->
- <h2 class="left-widget-title"><?php _te('Categories'); ?></h2>
- <li class="left-widget">
- <ul><?php wp_list_cats('sort_column=name&optioncount=1'); ?></ul>
- </li>
- <!-- End - Categories -->
- <!-- Begin - Archives -->
- <h2 class="left-widget-title"><?php _te('Archives'); ?></h2>
- <li class="left-widget">
- <ul><?php get_archives('monthly', '', 'html', '', '', TRUE); ?></ul>
- </li>
- <!-- End - Archives -->
- <!-- Begin - Calender -->
- <h2 class="left-widget-title"><?php _te('Calendar'); ?></h2>
- <li class="left-widget"><?php get_calendar(); ?></li>
- <!-- End - Calender -->
- <!-- Begin - Links from the 'Links Manager'-->
- <?php
- $link_cats = $wpdb->get_results('SELECT cat_id, cat_name FROM ' . $wpdb->categories . ' WHERE link_count > 0');
- foreach ($link_cats as $link_cat) {
- ?>
- <h2 class="left-widget-title"
- id="linkcat-<?php echo $link_cat->cat_id; ?>">
- </h2>
- <li class="left-widget">
- <ul>
- <?php wp_get_links($link_cat->cat_id); ?>
- </ul>
- </li>
- <?php
- }
- ?>
- <!-- End - Links from the 'Links Manager'-->
- <!-- Begin - Misc. Widgets -->
- <!-- This is just for my personal use, can be safely deleted -->
- <?php
- saasmp_wp_left_sidebar_misc();
- ?>
- <!-- End - Misc. Widgets -->
- </ul>
- <!-- ##################################### End - Left Sidebar ####################### -->
- <!-- ##################################### Begin - Right Sidebar #################### -->
- <ul class="right-sidebar">
- || !dynamic_sidebar('Tiga Right Sidebar') ) { ?>
- <!-- Begin - Search -->
- <h2 class="right-widget-title"><?php _te('Search'); ?></h2>
- <li class="right-widget"><?php include (TEMPLATEPATH . '/searchform.php'); ?></li>
- <!-- End - Search -->
- <!-- Begin - Recent Posts -->
- <h2 class="right-widget-title"><?php _te('Recent Posts'); ?></h2>
- <li class="right-widget">
- <ul><?php get_archives('postbypost',tiga_recentPostsCnt(),'custom','<li>','</li>'); ?></ul>
- </li>
- <!-- End - Recent Posts -->
- <!-- Begin - Paypal -->
- <!-- This is just for my personal use, can be safely deleted -->
- <!-- End - Paypal -->
- <!-- Begin - Misc. Widgets -->
- <!-- This is just for my personal use, can be safely deleted -->
- <!-- End - Misc. Widgets -->
- <!-- Begin - Meta -->
- <?php //if ( is_home() || is_page() ) { ?>
- <h2 class="right-widget-title"><?php _te('Meta'); ?></h2>
- <li class="right-widget">
- <ul>
- <?php wp_register(); ?>
- <li><?php wp_loginout(); ?></li>
- <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>
- <li><a href="http://gmpg.org/xfn/"><abbr title="XHTML Friends Network">XFN</abbr></a></li>
- <li><a href="http://wordpress.org/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform.">WordPress</a></li>
- <?php wp_meta(); ?>
- </ul>
- </li> <!-- right-widget -->
- <?php //} ?>
- <!-- End - Meta -->
- </ul>
- <!-- ##################################### 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.
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.