All pastes #886801 Raw Edit

i feel dirty sidebar

public text v1 · immutable
#886801 ·published 2008-01-31 22:49 UTC
rendered paste body
	<div class="sidebar">
		<div class="bloque1">
			<h3>Search</h3>
					<?php include (TEMPLATEPATH . '/searchform.php'); ?>
			

			<?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 echo wp_specialchars($s); ?>'</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 } ?>
		</div>
		<div class="bloque2">
			<h3>Subscribe</h3>
			<div class="subscriberss">
				<form name="subsform">
					<a href="#"><img src="<? echo get_settings('home')."/wp-content/themes/i-feel-dirty/img/";?>feedicon.gif" alt="RSS" /></a> <a href="<? echo get_bloginfo('rss_url');?>" class="rsstext">RSS</a>

				<select name="aggs">
				<option value="http://www.bloglines.com/sub/<? echo get_bloginfo('rss_url');?>">Bloglines</option>
				<option value="http://www.feedness.com/alta/<? echo get_bloginfo('rss_url');?>">Feedness</option>
				<option value="http://add.my.yahoo.com/content?url=<? echo get_bloginfo('rss_url');?>">Mi Yahoo!</option>
				<option value="http://my.msn.com/addtomymsn.armx?id=rss&amp;ut=<? echo get_bloginfo('rss_url');?>">My MSN</option>
				<option value="http://www.netvibes.com/subscribe.php?url=<? echo get_bloginfo('rss_url');?>">NetVibes</option>
				<option value="http://www.newsgator.com/ngs/subscriber/subext.aspx?url=<? echo get_bloginfo('rss_url');?>">Newsgator</option>
				<option value="http://www.rezzibo.com/secure/subscribe.aspx?feed_url=<? echo get_bloginfo('rss_url');?>">Rezzibo</option>
				<option value="http://www.rojo.com/add-subscription?resource=<? echo get_bloginfo('rss_url');?>">Rojo</option>
				<option value="http://technorati.com/faves?add=<? echo get_bloginfo('rss_url');?>">Technorati</option>
				</select>	
					<a href="#" class="btnnofloat" onclick="window.location.href = document.subsform.aggs.options[document.subsform.aggs.selectedIndex].value;"><img src="<? echo get_settings('home')."/wp-content/themes/i-feel-dirty/img/";?>okbutton.gif" title="ok btn" alt="ok" /></a>
					
				</form>
			</div>
		</div>
		<div class="bloque1">
			<h3>Pages</h3>
			<ul>
			<?php wp_list_pages('title_li='); ?>
			</ul>
		</div>
		<div class="bloque2">
			<h3>Categories</h3>
				<ul>
				<?php wp_list_cats('sort_column=name&optioncount=1&hierarchical=0'); ?>
				</ul>
			<h3>Archives</h3>
			<ul>
			<?php wp_get_archives('type=monthly'); ?>
			</ul>
		</div>
		<div class="bloque1">
		
			<?php /* If this is the frontpage */ if ( is_home() ) { ?>				
				<?php  
					if(get_links(-1,'', '','', false, 'name',false,false,-1, false, false)){ 
				?>
						<h3>Blogroll</h3>
						<ul><? get_links(-1,'<li>', '</li>','', false, 'name',false,false,-1, false, true); ?></ul>
					<? } ?>
		</div>
		<div class="bloque2">		
			<h3>Meta</h3>
			<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>
			<?php } ?>
		</div>	
	</div>
	<div class="clearfix"></div>
</div>