<?php get_header(); ?>
<div id="content_box">
<div id="left_box">
<div id="content">
<div id="content_inner">
<?php
if (have_posts()) :
while (have_posts()) : the_post(); ?>
<h1><?php the_title(); ?></h1>
<p class="post_author"><em>by</em> <?php the_author(); edit_post_link(' [ Edit ]','','');?></p>
<div class="format_text">
<?php the_content('<p>Read the rest of this entry »</p>'); ?>
<?php link_pages('<p><strong>Pages:</strong> ', '</p>', 'number'); ?>
<?php
$id = $post->ID;
echo '<a target="_blank" href="http://www.facebook.com/sharer.php?u=http://io9.in/' .
$id.
'&t=' .the_title
('',
'',
false).
'" title="Share this post on Facebook">Share on Facebook</a>';
echo '<a target="_blank" href="http://twitter.com/?status=' .the_title
('',
'',
false).
' http://io9.in/' .
$id.
'" title="Tweet this post">Share on Tweeter</a>';
?>
</div>
</div>
<?php comments_template(); ?>
<p><?php the_tags('<strong>Tags: </strong>', ', ',''); ?></p>
<?php
endwhile;
else: ?>
<h1>Uh oh.</h1>
<div class="format_text">
<p>Sorry, no posts matched your criteria. Wanna search instead?</p>
<?php include (TEMPLATEPATH . '/searchform.php'); ?>
</div>
</div>
<?php
endif; ?>
</div>
<?php include (TEMPLATEPATH . '/left_bar.php')?>
</div>
<?php get_sidebar(); ?>
</div>
<?php get_footer(); ?>