<div id="content">
<div class="wrap">
      
<?php 

$pagid = $tutspress_featured_page_1;
if ($pagid > 0)
{

	query_posts("page_id=$pagid&showposts=1");
					
	//The Loop
	if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
	
	<div class="teaser">
		<h1><?php the_title(); ?></h1>
	</div>
	
	<div class="column column-wide">
		<?php the_content(''); ?>
		<p class="postmetadata"><?php edit_post_link(__('Edit this page', 'tutspress'),'',''); ?></p>
	</div><!-- end .column .column-wide -->

	<?php endwhile; endif; 

} 
else 
{
	?>
	<div class="teaser">
		<h1>Thank you!</h1>
	</div>
	<div class="column column-wide">
		<p>Thank you for download Edu Blog Theme by <a href="http://tutspress.com">TutsPress</a></p>
		<p>Please go to <strong>TutsPress Theme Options > Homepage Options</strong> and select a <strong>static page</strong> or disable this block if it is unnecessarry.</p>
	</div>
	<?php 
}
?>
      
<div class="column column-narrow column-last">
        
	<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Sidebar: Homepage') ) : ?><?php endif; ?>
        
</div><!-- end .column .column-narrow .column-last -->
      
<div class="clear">&nbsp;</div>
<div class="sep">&nbsp;</div>

</div><!-- end .wrap -->
</div><!-- end #content -->