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

/**
 * Content Template
 *
 * @file           content.php
 * @package        Preference Lite 
 * @author         Styled Themes 
 * @copyright      2013 StyledThemes.com
 * @license        license.txt
 * @version        Release: 1.0
 * @since          available since Release 1.0
 */
?>

	<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
		<?php if ( is_sticky() && is_home() && ! is_paged() ) : ?>
		<div class="featured-post">
			<?php _e( 'Featured', 'preference-lite' ); ?>
		</div>
		<?php endif; ?>
		<header class="entry-header">
			<?php //the_post_thumbnail(); ?>
			<?php if ( is_single() ) : ?>
			<h1 class="entry-title"><?php the_title(); ?></h1>
			<?php else : ?>
			<h1 class="intro-title">
				<a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'preference-lite' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a>
			</h1>
			
			<div class="gj-article-details clearfix">
				<dl class="article-info"><dd class="meta-date"><?php _e( 'Date: ', 'preference-lite' ); ?><?php the_time('F j, Y') ?></dd><dd class="meta-author"><?php _e( 'Author: ', 'preference-lite' ); ?><?php the_author(); ?></dd><dd class="meta-categories"><?php _e( 'Categories: ', 'preference-lite' ); ?><?php the_category(', ') ?></dd><?php if ( comments_open() ) : ?><dd class="meta-comments"><?php _e( 'Comments: ', 'preference-lite' ); ?><?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'preference-lite' ) . '</span>', __( '1 Reply', 'preference-lite' ), __( '% Replies', 'preference-lite' ) ); ?></dd><?php endif; // comments_open() ?><?php edit_post_link( __( 'Edit', 'preference-lite' ), '<dd class="edit-link">', '</dd>' ); ?></dl>
			</div>
			
			<?php endif; // is_single() ?>
		</header><!-- .entry-header -->

		
		
		
			<div class="entry-content">	
			
			
				<?php if ( has_post_thumbnail() ) : // check to see if our post has a thumbnail	?>
			
							<div class="row-fluid">
								<div class="img-intro span4"><?php the_post_thumbnail(); ?></div>									
								<div class="span8">								
									<?php the_content( __( ' Read More...', 'preference-lite' ) ); ?>
									<?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'preference-lite' ), 'after' => '</div>' ) ); ?>
								</div>
							</div>
											
				<?php else : // if the default large image is used then use this layout ?>
								
							<div class="row-fluid">
								<div class="span12">								
									<?php the_content( __( ' Read More...', 'preference-lite' ) ); ?>
									<?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'preference-lite' ), 'after' => '</div>' ) ); ?>
								</div>
							</div>
						
				<?php endif; ?>	
			</div><!-- .entry-content -->	
		

		<footer></footer>
	</article><!-- #post -->
<div class="gj-item-separator"></div>