	
		<div id="secondarycontent">
			
			
			
			<div class="box">
				
		
			<div>
<?php if ( !function_exists('dynamic_sidebar')
        || !dynamic_sidebar() ) : ?>
		
			<?php
			$today = current_time('mysql', 1);
			if ( $recentposts = $wpdb->get_results("SELECT ID, post_title FROM $wpdb->posts WHERE post_status = 'publish' AND post_date_gmt < '$today' ORDER BY post_date DESC LIMIT 10")):
			?>
<div class="contentarea">
			<ul>
<form id="searchform" method="get" action="<?php bloginfo('siteurl')?>/index.php">
	
				
			<input type="text" name="s" id="s" class="text" value="<?php echo wp_specialchars($s, 1); ?>" size="15" />
			<input type="submit" class="submit" value="OK" />			
	
	</form>
<div class="contentarea">
<ul>
<h4>Páginas</h4>
			<li <?php if(is_home()){echo 'class="first current_page_item"';}?>><a href="<?php bloginfo('siteurl'); ?>/" title="Home">Home</a></li>
				<?php wp_list_pages('title_li=&depth=1');?>
		
</ul>
</div>
			
<div class="contentarea">
<ul>
<h4>Categorias</h4>
<?php wp_list_cats('sort_column=name&hierarchical=0'); ?>
</ul>
</div>

<div class="contentarea">
<ul>
<h4>Arquivos</h4>
<?php wp_get_archives('type=monthly'); ?>
</ul>		
</div>
<div class="contentarea">
<ul>
<h4><?php _e('Links'); ?></h4>
<?php get_links(-1, '<li>', '</li>', '', FALSE, 'name', FALSE, FALSE, -1, FALSE); ?>
</ul> 	
</div>
<div class="contentarea">
<ul>
<h4><?php _e('Meta:'); ?></h4>
<?php wp_register(); ?>
			<li><?php wp_loginout(); ?></li>
<li><a href="<?php bloginfo('rss2_url'); ?>" title="<?php _e('Syndicate this site using RSS'); ?>"><?php _e('<abbr title="Really Simple Syndication">RSS</abbr>'); ?></a></li>
<li><a href="<?php bloginfo('comments_rss2_url'); ?>" title="<?php _e('The latest comments to all posts in RSS'); ?>"><?php _e('Comments <abbr title="Really Simple Syndication">RSS</abbr>'); ?></a></li>
<?php wp_meta(); ?>
</ul>
</div>
<?php endif; ?>	
			</div>
</div>
			
		</div>
