<?php get_header(); 
$t_show_sidebar = nattywp_get_option("t_show_sidebar");
?>
<div id="main">		
	<div class="columns">	
    <div class="narrowcolumn singlepage <?php echo $t_show_sidebar; ?>">
     <?php if (have_posts()) : ?>
     <?php while (have_posts()) : the_post(); ?>							
			<div <?php post_class('post');?>>            	
         <div class="title">
          <h2><?php the_title(); ?></h2>
                <small><?php the_time('F jS, Y') ?> | <?php _e('Posted by','delicate'); ?> <span class="author"><?php delicate_get_profile() ?></span> <?php _e('in','delicate'); ?> <?php the_category(' | ');?> <?php edit_post_link(__('Edit','delicate'), ' | ', ''); ?></small> 
         </div>                
				<div class="entry">
             <?php t_show_video($post->ID); ?>
             <?php the_content(); ?>    
             <div class="clear"></div>
        </div>              
                
				<p class="postmetadata">	               
                <?php wp_link_pages(array('before' => '<p><strong>' . __('Pages:', 'delicate' ) . '</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>        			
                <span class="category"><?php the_tags('', ', ', ''); ?></span>	
				</p>
        
        <p><small><?php _e('You can follow any responses to this entry through the','delicate'); ?> <?php post_comments_feed_link('RSS 2.0'); ?>
						<?php if ( comments_open() && pings_open() ) {
							// Both Comments and Pings are open ?>
							<?php _e('You can <a href="#respond">leave a response</a>, or','delicate'); ?> <a href="<?php trackback_url(); ?>" rel="trackback"><?php _e('trackback','delicate'); ?></a>.
						<?php } elseif ( !comments_open() && pings_open() ) {
							// Only Pings are Open ?>
							<?php _e('Responses are currently closed, but you can','delicate'); ?> <a href="<?php trackback_url(); ?> " rel="trackback"><?php _e('trackback','delicate'); ?></a>.
						<?php } elseif ( comments_open() && !pings_open() ) {
							// Comments are open, Pings are not ?>							
							<?php _e('You can skip to the end and leave a response. Pinging is currently not allowed.','delicate'); ?>
						<?php } elseif ( !comments_open() && !pings_open() ) {
							// Neither Comments, nor Pings are open ?>
							<?php _e('Both comments and pings are currently closed.','delicate'); ?>							
						<?php }  ?>
					</small>
         </p>	
                
			</div>	
            <div class="post">
        		<?php comments_template(); ?>      	
       		</div>				
	<?php endwhile; ?>	
	<?php else : ?>
		<div class="post">
		<h2><?php _e('Not Found','delicate'); ?></h2>
            <div class="entry"><p><?php _e('Sorry, but you are looking for something that isn\'t here.','delicate'); ?></p>
            <?php get_search_form(); ?>
            </div>
        </div>
    <?php endif; ?>
</div> <!-- END Narrowcolumn -->

<?php if ($t_show_sidebar == 'disable') {} else { ?>
  <div id="sidebar" class="profile <?php echo $t_show_sidebar; ?>">
      <?php if (!is_active_sidebar(2)) {
           get_sidebar(); 
         } else {
           echo '<ul>';
           dynamic_sidebar('sidebar-2');
           echo '</ul>';
         } ?>
  </div>
<?php } ?>
<div class="clear"></div>
<?php get_footer(); ?> 