<?php 


/**


 * Concept: blog 4 style


 * Copyright 2011 www.gradientpixels.ca


 * Theme: Incantation


 */


 ?>


 


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


	<header class="entry-header">


		<?php if ( is_sticky() ) : ?>


				<hgroup>


				<span class="entry-format sticky"><?php _e( 'Featured', 'gp' ); ?></span>


					<h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'gp' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>


				</hgroup>


			<?php else : ?>


			<h1 class="b4-entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'gp' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>


			<?php endif; ?>


	</header><!-- .entry-header -->


	


<?php if (has_post_thumbnail()) : ?>


	<?php


    $thumb = get_post_thumbnail_id(); 


    $postimage = vt_resize($thumb, '', 640, 195, true );


?>    


	<div class="b4-image-wrapper" style="width:640px;">


	<div class="b4-postdate" style=" color:<?php echo of_get_option('post_date_text'); ?>;">








		<span class="b4-monthyear"><?php echo get_the_date('M'); ?><br /><?php echo get_the_date('Y'); ?></span><span class="b4-day"><?php echo get_the_date('d'); ?></span>





	


	</div>


	<span class="b4-dark-overlay"></span>


	<span class="b4-overlay"></span>


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


		<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">


			<img class="border" src="<?php echo $postimage[url]; ?>" alt="<?php the_title(); ?>" /></a>


	<?php else : ?>		


		<a rel="prettyPhoto" href="<?php $thumbnail_id=get_the_post_thumbnail($post->ID); preg_match ('/src="(.*)" class/',$thumbnail_id,$link); echo $link[1]; ?>" title="<?php the_title(); ?>">


			<img class="border" src="<?php echo $postimage[url]; ?>" alt="<?php the_title(); ?>" />


		</a>	


	<?php endif; ?>


			


			


	


			


				


	</div>


<?php endif; ?>


<div class="b4-post-wrapper">


<div class="b4-entry-meta">


<?php //echo get_the_date(); ?> <!--<br  />-->


<?php //comments_number( 'No Comments', '1 Comment', '% Comments' ); ?>


<?php comments_number( __( 'No Comments', 'gp'), __( '1 Comment', 'gp' ), __( '% Comments', 'gp' ) ); ?><br  />


	<?php printf( __( 'Author: ', 'gp' ) );


	echo get_the_author(); ?><br  />


	<?php the_category(', '); ?><br  />


<?php edit_post_link( __( 'Edit', 'gp' ), '<span class="b4-edit-link">', '</span>' ); ?>


</div>


	<div class="b4-entry-summary b4">


			<?php if ( is_home() || is_category() || is_archive() ) : ?>				


			<?php the_excerpt(); ?>


				<a href="<?php the_permalink(); ?>" class="more-link"><?php _e( 'Continue Reading...', 'gp' ); ?></a>			


		<?php elseif (is_single()) : // if this is the full single article ?>


			<?php the_content(); ?>


								


		<?php endif; ?>


	</div><!-- .entry-summary -->


		


	<footer>


		


		


	</footer>


</div><!-- .post-wrapper -->


</article><!-- #post-<?php the_ID(); ?> -->





<div class="articlespacer"></div>