<div id="main_container">
<?php if (isset($_SERVER['HTTP_REFERER'])):
$backlink = $_SERVER['HTTP_REFERER'];
else:
$backlink = $this->config->item('base_url');
endif; ?>
<p id="breadcrumb"><a href="<?php echo $backlink?>">&laquo; Back To Lifestream</a></p>

<div id="single_container" style="padding-left: 50px;">
	<div id="single_header">
	<h2><?php echo $item->get_title()?></h2>
	<p><?php echo $item->get_human_date()?></p>
	</div>
	
	<?php if ($item->has_content()): ?>
	<?php endif; ?>
	<?php if ($item->has_image() && !$item->has_video()): ?>
	<?php if (isset($item->item_data[$item->get_feed_class()]['image']['m']) && !empty($item->item_data[$item->get_feed_class()]['image']['m'])): ?>
	<p><img src="<?php echo $item->item_data[$item->get_feed_class()]['image']['m']?>" alt="" /></p>
	<?php else: ?>
	<p><img src="<?php echo $item->get_image()?>" alt="" /></p>
	<?php endif; ?>
	<?php endif; ?>
	<?php if ($item->has_video()): ?>
	<p>
	        <?php //inline php hackery FTW!
	        $video = str_replace('width="212"', 'width="500"', $item->get_video());
            $video = str_replace('height="159"', 'height="375"', $video);
            $video = str_replace('height="178"', 'height="415"', $video);
            echo $video?>
	</p>
	<?php endif; ?>
	<?php if ($item->has_tags()): ?>
	
	<?php endif; ?>
	<?php if ($item->get_original_permalink()): ?>
	<p id="original_permalink">Via: <span><a href="<?php echo $item->get_original_permalink()?>"><?php echo $item->get_original_permalink()?></a></span></p>
	<?php endif; ?>
</div>

            <div id="comments_container" style="padding-left: 50px;">
	        <div class="js-kit-comments" permalink=""></div>
<script src="http://js-kit.com/comments.js"></script>
            </div>

</div>
<?php $this->load->view('themes/'.$this->config->item('theme').'/_sidebar')?>