All pastes #523651 Raw Edit

Tiga 1.0.2 sidebar.php for WordPress 2.2

public php v1 · immutable
#523651 ·published 2007-05-30 21:08 UTC
rendered paste body
<?php/*Tiga WordPress ThemeCopyright (C) 2006  Shamsul AzharModified for WordPress v2.2 by OttoThis program is free software; you can redistribute it and/ormodify it under the terms of the GNU General Public Licenseas published by the Free Software Foundation; either version 2of 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 ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See theGNU General Public License for more details.You should have received a copy of the GNU General Public Licensealong with this program; if not, write to the Free SoftwareFoundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.*/?><!-- ##################################### Begin - Left Sidebar ##################### --><ul class="left-sidebar"><?php if ( !function_exists('dynamic_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 -->		<?php if (function_exists('saasmp_wp_left_sidebar')) saasmp_wp_left_sidebar(); ?>		<!-- 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; ?>">					 <?php echo $link_cat->cat_name; ?>			</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		if (function_exists('saasmp_wp_left_sidebar_misc'))			saasmp_wp_left_sidebar_misc();		?>		<!-- End - Misc. Widgets --><?php } ?> <!-- End checking of 'dynamic_sidebar' --></ul><!-- ##################################### End - Left Sidebar ####################### --><!-- ##################################### Begin - Right Sidebar #################### --><ul class="right-sidebar"><?php if ( !function_exists('dynamic_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 -->		<?php if (function_exists('saasmp_wp_paypal') && is_single('31')) saasmp_wp_paypal(); ?>		<!-- End - Paypal -->		<!-- Begin - Misc. Widgets -->		<!-- This is just for my personal use, can be safely deleted -->		<?php if (function_exists('saasmp_wp_right_sidebar')) saasmp_wp_right_sidebar(); ?>		<!-- 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 --><?php } ?> <!-- End checking of 'dynamic_sidebar' --></ul><!-- ##################################### End - Right Sidebar ###################### -->