<?php
/**
* This template displays the default page content.
*
* @package Natural
* @since Natural 3.0
*
*/
get_header(); ?>

<!-- BEGIN .post class -->
<div <?php post_class(); ?> id="page-<?php the_ID(); ?>">

	<?php if ( has_post_thumbnail()) { ?>
		<div class="feature-img banner shadow radius-full"><?php the_post_thumbnail( 'featured-large' ); ?></div>
	<?php } ?>
	
	<!-- BEGIN .row -->
	<div class="row">
		
		<?php if ( is_active_sidebar( 'page-sidebar' ) ) : ?>
		
			<!-- BEGIN .eleven columns -->
			<div class="eleven columns">
	
				<!-- BEGIN .postarea -->
				<div class="postarea">
				
					<?php get_template_part( 'loop', 'page' ); ?>
				
				<!-- END .postarea -->
				</div>
			
			<!-- END .eleven columns -->
			</div>
			
			<!-- BEGIN .five columns -->
			<div class="five columns">
			


  
<?php
if ( is_user_logged_in() ) {

echo "<div class='sidebar'><div class='widget'>  ";
global $current_user;
get_currentuserinfo();
$nickname = $current_user->user_login;
$name = $current_user->user_firstname . " " . $current_user->user_lastname;
echo "Olá <a href='http://www.expressextintores.com.br/novosite/seu-perfil/'><b> $name</b></a>, seja bem-vindo.<br><br>";
echo " - <a href='http://www.expressextintores.com.br/novosite/?cat=71'>Seus arquivos</a><br>";
echo " - <a href='http://www.expressextintores.com.br/novosite/?page_id=423'>Seu Perfil</a><br>";
echo " - <a href='http://www.expressextintores.com.br/novosite/?page_id=418&_wpnonce=168449d9f7'>Sair</a><br>";

echo "</div></div>";
}
?>



				<?php get_sidebar(); ?>
				
			<!-- END .five columns -->
			</div>
	
		<?php else : ?>
	
			<!-- BEGIN .sixteen columns -->
			<div class="sixteen columns">
	
				<!-- BEGIN .postarea full -->
				<div class="postarea full">
		
					<?php get_template_part( 'loop', 'page' ); ?>
				
				<!-- END .postarea full -->
				</div>
			
			<!-- END .sixteen columns -->
			</div>
	
		<?php endif; ?>
	
	<!-- END .row -->
	</div>
	
<!-- END .post class -->
</div>

<?php get_footer(); ?>