<?php 
global $options;
foreach ($options as $value) {
    if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); }
}
$dateformat = get_option('date_format');
$timeformat = get_option('time_format');
get_header(); ?>

<div id="content">
<div class="wrap">
    
	<?php wp_reset_query(); if (have_posts()) : while (have_posts()) : the_post(); ?>
	
	<div class="postInfo">
	      
		<h1 class="title"><?php the_title(); ?></h1>
		<p class="postmetadata"><?php _e('Posted by','wpzoom');?> <?php the_author_posts_link(); ?> <?php _e('in','wpzoom');?> <span class="category"><?php the_category(', '); ?></span> <?php _e('on','wpzoom');?> <?php the_time("$dateformat $timeformat"); ?> / <a href="<?php the_permalink() ?>#commentspost" title="Jump to the comments"><?php comments_number(__('no comments', 'wpzoom'),__('1 comment', 'wpzoom'),__('% comments', 'wpzoom')); ?></a><?php edit_post_link( __('EDIT', 'wpzoom'), ' / ', ''); ?></p>
	      
	</div>
    
	<div id="main">
        
	<div class="column column-double column-last widget single">
	        
	<?php if (strlen($wpzoom_ad_content_imgpath) > 1 && $wpzoom_ad_content_select == 'Yes' && $wpzoom_ad_content_pos == 'Before') { echo '<div class="banner">'.stripslashes($wpzoom_ad_content_imgpath)."</div>"; }?>
	
	<div class="post-content">
		<?php the_content(''); ?>
	</div>
	<?php wp_link_pages(array('before' => '<p class="pages"><strong>'.__('Pages', 'wpzoom').':</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
	<div class="clear">&nbsp;</div>
	<?php the_tags( '<p class="tags">'.__('Tags', 'wpzoom').': ', ', ', '</p>'); ?>
	<?php if (strlen($wpzoom_ad_content_imgpath) > 1 && $wpzoom_ad_content_select == 'Yes' && $wpzoom_ad_content_pos == 'After') { echo '<div class="banner">'.stripslashes($wpzoom_ad_content_imgpath)."</div>"; }?>
	
	<div class="social">
		<h3><?php _e('Share this article','wpzoom');?></h3>
		<ul>
			<li><a href="http://twitter.com/share?url=<?php echo urlencode(the_permalink()); ?>&amp;text=<?php echo urlencode(the_title()); ?>" rel="external,nofollow"><img src="<?php bloginfo('template_directory'); ?>/images/icons/twitter.png" alt="Tweet This!" /></a></li>
			<li><a href="http://digg.com/submit?phase=2&amp;url=<?php the_permalink();?>&amp;title=<?php the_title_attribute();?>" rel="external,nofollow"><img src="<?php bloginfo('template_directory'); ?>/images/icons/digg.png" alt="Digg it!" /></a></li>
			<li><a href="http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=<?php the_permalink();?>&amp;title=<?php the_title_attribute();?>" rel="external,nofollow"><img src="<?php bloginfo('template_directory'); ?>/images/icons/delicious.png" alt="Add to Delicious!" /></a></li>
			<li><a href="http://www.facebook.com/sharer.php?u=<?php the_permalink();?>&amp;t=<?php the_title(); ?>" rel="external,nofollow"><img src="<?php bloginfo('template_directory'); ?>/images/icons/facebook.png" alt="Share on Facebook!" /></a></li>
			<li><a href="http://reddit.com/submit?url=<?php the_permalink(); ?>&amp;title=<?php the_title_attribute();?>" rel="external,nofollow"><img src="<?php bloginfo('template_directory'); ?>/images/icons/reddit.png" alt="Share on Reddit!" /></a></li>
		</ul>
		<div class="clear">&nbsp;</div>
	</div><!-- end .social -->
	          
	<?php comments_template(); ?>
	          
	<div class="clear">&nbsp;</div>
	
	</div><!-- end .single -->
      
	</div><!-- end #main -->
	
	<?php endwhile; endif; ?>
      
	<div id="sidebar">
	      
		<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Sidebar') ) : endif; ?>
		  
		<?php if ($wpzoom_tabs_show_single == 'Yes') { include(TEMPLATEPATH . '/tabs.php');  } ?>
		        
		<div class="clear">&nbsp;</div>
	      
	</div><!-- end #sidebar -->
	    
	      
	<div class="clear">&nbsp;</div>

</div><!-- end .wrap -->
</div><!-- end #content -->
  
<?php get_footer(); ?>