	<?php

// Exit if accessed directly
if ( !defined('ABSPATH')) exit;

/**
 * @package WordPress
 * @subpackage TDFramework
 * @since framework 1.0
 */
?>

<article id="post-<?php the_ID(); ?>" <?php post_class('item'); ?>>

	<?php if ( has_post_thumbnail() ) : ?>
	<div class="item-image grid col-three">
		<a href="<?php the_permalink(); ?>">

		<?php if ( is_home() || is_front_page() ) : ?>

			<?php the_post_thumbnail('full'); ?>

		<?php else : ?>

			<?php the_post_thumbnail('post-excerpt'); ?>

		<?php endif; ?>

		</a>
		<div class="item-date">
			<?php the_time('j'); ?>
			<?php echo strtoupper(get_the_time('F')); ?>
			<?php the_time('Y'); ?>
		</div>
	</div>

	<div class="item-content grid-right col-nine fit">

	<?php else : ?>

	<div class="item-content">

	<?php endif; ?>

		<header class="entry-header">
			<?php //if ( core_options_get('titles')  ) : ?>
			<h3 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', THEME_SLUG ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h3>
			<?php //endif; ?>

			<?php if ( is_single() ) core_theme_breadcrumb(); ?>
			<?php core_theme_hook_entry_header(); ?>
		</header><!-- .entry-header -->

		<?php do_action('core_theme_hook_before_entry_content'); ?>

		<?php if ( is_archive() ) : // Only display Excerpts for Search ?>
		<div class="entry-summary">
			<?php the_excerpt(); ?>
			<a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', THEME_SLUG ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark">Read more &rarr; </a>
		</div><!-- .entry-summary -->
		<?php else : ?>
		<div class="entry-content">
			<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', THEME_SLUG ) ); ?>
			<?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', THEME_SLUG ), 'after' => '</div>' ) ); ?>
		</div><!-- .entry-content -->
		<?php endif; ?>

		<footer class="entry-meta">
			<?php core_theme_posted_in(); ?>
			<?php edit_post_link( __( 'Edit', THEME_SLUG ), '<span class="sep"> | </span><span class="edit-link">', '</span>' ); ?>
		</footer><!-- .entry-meta -->

		<?php do_action('core_theme_hook_after_entry_content'); ?>

	</div>
	<div class="clear"></div>
</article><!-- #post-## -->
