All pastes #345675 Raw Edit

Something

public php v1 · immutable
·published 2007-02-08 18:53 UTC
rendered paste body
<div id="sidebar">	<ul>		<li>			<?php /* If this is a 404 page */ if (is_404()) { ?>			<?php /* If this is a category archive */ } elseif (is_category()) { ?>			<p>You are currently browsing the archives for the <?php single_cat_title(''); ?> category.</p>			<?php /* If this is a yearly archive */ } elseif (is_day()) { ?>			<p>You are currently browsing the <a href="<?php bloginfo('home'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives			for the day <?php the_time('l, F jS, Y'); ?>.</p>			<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>			<p>You are currently browsing the <a href="<?php bloginfo('home'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives			for <?php the_time('F, Y'); ?>.</p>			<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>			<p>You are currently browsing the <a href="<?php bloginfo('home'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives			for the year <?php the_time('Y'); ?>.</p>			<?php /* If this is a monthly archive */ } elseif (is_search()) { ?>			<p>You have searched the <a href="<?php echo bloginfo('home'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives			for <strong>'<?php the_search_query(); ?>'</strong>. If you are unable to find anything in these search results, you can try one of these links.</p>			<?php /* If this is a monthly archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>			<p>You are currently browsing the <a href="<?php echo bloginfo('home'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives.</p>			<?php } ?>		</li>		<li><!-- HOME Side Bar. -->			<?php if (is_page('12')) { ?>				<!-- Side Bar Content Box 1. -->				<?php query_posts('pagename=whenandwhere'); ?>				<?php if (have_posts()) : while (have_posts()) : the_post(); ?>					<div class="sidebarcontent_whenandwhere">						<div class="sidebarblurb">							<?php the_excerpt(''); ?>						</div>					</div>				<?php endwhile; ?><?php endif; ?>				<?php edit_post_link('Edit this Box.', '<p>', '</p>'); ?>				<!-- Side Bar Content Box 2. -->				<?php query_posts('pagename=spreadtheword'); ?>				<?php if (have_posts()) : while (have_posts()) : the_post(); ?>					<div class="sidebarcontent_spreadtheword">						<div class="sidebarbanner">							<?php the_excerpt(''); ?>						</div>					</div>				<?php endwhile; ?><?php endif; ?>				<?php edit_post_link('Edit this Box.', '<p>', '</p>'); ?>			<?php } ?><!-- End of HOME Side Bar. -->		</li>				<li><!-- ABOUT Side Bar. -->			<?php if (is_page('13')) { ?>				<!-- Side Bar Content Box 1. -->				<?php query_posts('pagename=whenandwhere'); ?>				<?php if (have_posts()) : while (have_posts()) : the_post(); ?>					<div class="sidebarcontent_whenandwhere">						<div class="sidebarblurb">							<?php the_excerpt(''); ?>						</div>					</div>				<?php endwhile; ?><?php endif; ?>				<?php edit_post_link('Edit this Box.', '<p>', '</p>'); ?>				<!-- Side Bar Content Box 2. -->				<?php query_posts('pagename=parents'); ?>				<?php if (have_posts()) : while (have_posts()) : the_post(); ?>					<div class="sidebarcontent_parents">						<div class="sidebarblurb">							<?php the_excerpt(''); ?>						</div>					</div>				<?php endwhile; ?><?php endif; ?>				<?php edit_post_link('Edit this Box.', '<p>', '</p>'); ?>			<?php } ?><!-- End of ABOUT Side Bar. -->		</li>				<li><!-- WHEN AND WHERE Side Bar. -->			<?php if (is_page('6')) { ?>				<!-- Side Bar Content Box 1. -->				<?php query_posts('pagename=parents'); ?>				<?php if (have_posts()) : while (have_posts()) : the_post(); ?>					<div class="sidebarcontent_parents">						<div class="sidebarblurb">							<?php the_excerpt(''); ?>						</div>					</div>				<?php endwhile; ?><?php endif; ?>				<?php edit_post_link('Edit this Box.', '<p>', '</p>'); ?>				<!-- Side Bar Content Box 2. -->				<?php query_posts('pagename=listen'); ?>				<?php if (have_posts()) : while (have_posts()) : the_post(); ?>					<div class="sidebarcontent_listen">						<div class="sidebarblurb">							<?php the_excerpt(''); ?>						</div>					</div>				<?php endwhile; ?><?php endif; ?>				<?php edit_post_link('Edit this Box.', '<p>', '</p>'); ?>			<?php } ?><!-- End of WHEN AND WHERE Side Bar. -->		</li>				<li><!-- SPREAD THE WORD Side Bar. -->			<?php if (is_page('5')) { ?>				<!-- Side Bar Content Box 1. -->				<?php query_posts('pagename=whenandwhere'); ?>				<?php if (have_posts()) : while (have_posts()) : the_post(); ?>					<div class="sidebarcontent_whenandwhere">						<div class="sidebarblurb">							<?php the_excerpt(''); ?>						</div>					</div>				<?php endwhile; ?><?php endif; ?>				<?php edit_post_link('Edit this Box.', '<p>', '</p>'); ?>				<!-- Side Bar Content Box 2. -->				<?php query_posts('pagename=listen'); ?>				<?php if (have_posts()) : while (have_posts()) : the_post(); ?>					<div class="sidebarcontent_listen">						<div class="sidebarblurb">							<?php the_excerpt(''); ?>						</div>					</div>				<?php endwhile; ?><?php endif; ?>				<?php edit_post_link('Edit this Box.', '<p>', '</p>'); ?>			<?php } ?><!-- End of SPREAD THE WORD Side Bar. -->		</li>				<li><!-- PRESS Side Bar. -->			<?php if (is_page('7')) { ?>				<!-- Side Bar Content Box 1. -->				<?php query_posts('pagename=whenandwhere'); ?>				<?php if (have_posts()) : while (have_posts()) : the_post(); ?>					<div class="sidebarcontent_whenandwhere">						<div class="sidebarblurb">							<?php the_excerpt(''); ?>						</div>					</div>				<?php endwhile; ?><?php endif; ?>				<?php edit_post_link('Edit this Box.', '<p>', '</p>'); ?>				<!-- Side Bar Content Box 2. -->				<?php query_posts('pagename=parents'); ?>				<?php if (have_posts()) : while (have_posts()) : the_post(); ?>					<div class="sidebarcontent_parents">						<div class="sidebarblurb">							<?php the_excerpt(''); ?>						</div>					</div>				<?php endwhile; ?><?php endif; ?>				<?php edit_post_link('Edit this Box.', '<p>', '</p>'); ?>			<?php } ?><!-- End of PRESS Side Bar. -->		</li>				<li><!-- PARENTS Side Bar. -->			<?php if (is_page('15')) { ?>				<!-- Side Bar Content Box 1. -->				<?php query_posts('pagename=whenandwhere'); ?>				<?php if (have_posts()) : while (have_posts()) : the_post(); ?>					<div class="sidebarcontent_parents">						<div class="sidebarblurb">							<?php the_excerpt(''); ?>						</div>					</div>				<?php endwhile; ?><?php endif; ?>				<?php edit_post_link('Edit this Box.', '<p>', '</p>'); ?>				<!-- Side Bar Content Box 2. -->				<?php query_posts('pagename=listen'); ?>				<?php if (have_posts()) : while (have_posts()) : the_post(); ?>					<div class="sidebarcontent_listen">						<div class="sidebarblurb">							<?php the_excerpt(''); ?>						</div>					</div>				<?php endwhile; ?><?php endif; ?>				<?php edit_post_link('Edit this Box.', '<p>', '</p>'); ?>			<?php } ?><!-- End of PARENTS Side Bar. -->		</li>							</ul></div>