All pastes #137593 Raw Edit

Untitled

public text v1 · immutable
#137593 ·published 2006-08-18 14:30 UTC
rendered paste body
<div id="col1" class="sidebar">
	<ul>
<?php /* FUNCTION FOR WIDGETS */ if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(1) ) : ?>
<?php /* BEGIN SPECIFIC SIDEBAR CONTENT / IF FRONT PAGE */ if ( is_home() || is_page() || is_category()) { ?>
		<li id="recent-posts">
			<h2>Previous Posts</h2>
			<ul>
<?php 
$posts = get_posts('numberposts=5&offset=0');
	foreach($posts as $post) :
	setup_postdata($post);
?>
				<li>
					<a href="<?php the_permalink() ?>" title="Continue reading <?php the_title(); ?>" rel="bookmark"><strong><?php the_title(); ?></strong><br/><em><?php the_content_rss('', TRUE, '', 10); ?></em><br/><small><?php the_time('F jS, Y'); ?> <?php comments_number('| No comments yet','| Comments (1)','| Comments (%)', 'number'); ?></small></a>
				</li>
<?php endforeach; ?>
			</ul>
		</li>		
<?php } /* IF THIS MONTH, DAY, OR YEAR ARCHIVE */ elseif ( is_month() || is_day() || is_year() ) { ?>
		<li id="archive-archives">
			<h2><a href="<?php echo get_settings('home'); ?>/" title="<?php bloginfo('name'); ?>">Home</a> > <?php the_time('F Y'); ?></h2>
			<p>You are currently browsing the archives for <?php the_time('F Y'); ?>.</p>
		</li>

<?php } /* IF THIS IS A  CATEGORY PAGE */ elseif ( is_category() ) { ?>
		<li id="category-archives">
			<h2><a href="<?php echo get_settings('home'); ?>/" title="<?php bloginfo('name'); ?>">Home</a> > <?php single_cat_title(''); ?></h2>
			<p><?php echo category_description(); ?></p>
		</li>

<?php } /* IF THIS IS A  CATEGORY PAGE */ elseif ( is_search() ) { ?>
		<li id="searched">
			<h2><a href="<?php echo get_settings('home'); ?>/" title="<?php bloginfo('name'); ?>">Home</a> > Search Results</h2>
			<p>Query completed for &#8220;<strong><?php echo wp_specialchars($s); ?></strong>&#8221;</p>
		</li>

<?php } /* END OF IF FOR SPECIFIC SIDEBAR CONTENT */ ?>
<?php endif; /* END FOR WIDGETS CALL */ ?>
	</ul>
</div><!-- END COL1 / SIDEBAR -->

<div id="col2" class="sidebar">
	<ul>
<?php /* FUNCTION FOR WIDGETS */ if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(2) ) : ?>
<?php if ( is_home() ) { // SHOWS THE ABOUT TEXT, IF SELECTED IN THE THEME OPTIONS MENU
	simplr_aboutheader();
	simplr_abouttext();
} ?>
		<li id="search">
			<h2><label for="s">Search</label></h2>
			<ul>
				<li><?php include (TEMPLATEPATH . '/searchform.php'); ?></li>
			</ul>
		</li>
<?php /* BEGIN SPECIFIC SIDEBAR CONTENT / IF THIS IS THE FRONT PAGE, 404, OR SEARCH PAGE */ if ( is_home() || is_page() ) { ?>
		<li id="category-links">
			<h2>Categories</h2>
			<ul>
				<?php wp_list_cats('sort_column=name&hierarchical=0'); ?>
			</ul>
		</li>



<?php } /* END OF IF FOR SPECIFIC SIDEBAR CONTENT */ ?>
<?php endif; /* END FOR WIDGETS CALL */ ?>
	</ul>
</div><!-- END COL1 / SIDEBAR -->