• 1.
    <?php get_header(); ?>
  • 2.
     
  • 3.
    			<?php 
  • 4.
    				setup_postdata($post); 
  • 5.
    				if( has_post_thumbnail($post->ID) ) { ?>
  • 6.
    		
  • 7.
    					<div id="featured-wrap">
  • 8.
    						<?php the_post_thumbnail('creer-full'); ?>
  • 9.
    						
  • 10.
    							<?php 
  • 11.
    								if( has_post_thumbnail($post->ID) ) {
  • 12.
    									$thumbid = get_post_thumbnail_id( $post->ID );
  • 13.
    							    
  • 14.
    									$feature_image = get_post($thumbid);
  • 15.
     
  • 16.
    								if( $feature_image ) {
  • 17.
    									if( !empty($feature_image->post_excerpt) ) {
  • 18.
    										echo '<div class="feature-credit">';
  • 19.
    										echo $feature_image->post_excerpt;
  • 20.
    										echo '</div>';	
  • 21.
    									}
  • 22.
    								}
  • 23.
    							}
  • 24.
    						?>
  • 25.
    						
  • 26.
    					</div>
  • 27.
    			<?php } ?>
  • 28.
    			
  • 29.
    			<div id="content">
  • 30.
     
  • 31.
    				<div id="inner-content" class="wrap clearfix">
  • 32.
    					
  • 33.
    					<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  • 34.
    			
  • 35.
    					<div id="main" class="twelvecol clearfix" role="main">
  • 36.
    					
  • 37.
    							<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article" itemscope itemtype="http://schema.org/BlogPosting">
  • 38.
    						
  • 39.
    								<header class="article-header">
  • 40.
    								
  • 41.
    									<span class="published"><time class="updated" datetime="<?php echo the_time('F jS, Y'); ?>"><?php the_time(get_option('date_format')); ?></time></span>
  • 42.
    									<h1 class="entry-title single-title" itemprop="headline"><?php the_title(); ?></h1>
  • 43.
    													
  • 44.
    								</header> <!-- end article header -->
  • 45.
    					
  • 46.
    								<section class="entry-content clearfix" itemprop="articleBody">
  • 47.
    								
  • 48.
    									<div id="post-content" class="clearfix"
  • 49.
    										<?php the_content(); ?>
  • 50.
    										<?php wp_link_pages('before=<p class="page-navigation">Pages:&after=</p>&next_or_number=number&pagelink=%'); ?>
  • 51.
    									</div>
  • 52.
    									
  • 53.
    									<div id="postmeta" class="clearfix">
  • 54.
    									
  • 55.
    										<p class="byline vcard">
  • 56.
    											<span class="author"><?php _e('By:', 'creerthemes'); ?> &nbsp;<?php the_author_posts_link(); ?></span>
  • 57.
    											<span class="shortlink"><?php _e('Short URL: ', 'creerthemes'); ?> &nbsp;<a href="<?php echo wp_get_shortlink(); ?>"><?php echo wp_get_shortlink(); ?></a></span>
  • 58.
    											<span class="category"><?php _e('Category:', 'creerthemes'); ?> &nbsp;<?php the_category(', '); ?></span>
  • 59.
    											<?php the_tags('<span class="tags">Tags: &nbsp;', ', ', '</span>'); ?>
  • 60.
    											<span class="count"><?php _e('Words:', 'creerthemes'); ?> &nbsp;<strong><?php echo wcount(); ?></strong></span>
  • 61.
    										</p>
  • 62.
    					
  • 63.
    										<p class="share">
  • 64.
    											<span class="facebook"><a href="http://www.facebook.com/sharer.php?u=<?php the_permalink();?>&t=<?php the_title(); ?>" target="blank"><i class="icon-facebook"></i> &nbsp;<?php _e('Share on Facebook', 'creerthemes'); ?></a>
  • 65.
    </span>
  • 66.
    											<span class="twitter"><a href="http://twitter.com/home?status=Currently reading <?php the_permalink(); ?>" title="Click to send this page to Twitter!" target="_blank"><i class="icon-twitter"></i> &nbsp;<?php _e('Tweet this post', 'creerthemes'); ?></a>
  • 67.
    </span>
  • 68.
    										</p>	
  • 69.
    				
  • 70.
    									</div>
  • 71.
    									
  • 72.
    								</section> <!-- end article section -->
  • 73.
    						
  • 74.
    								<footer class="article-footer clearfix">
  • 75.
    								
  • 76.
    								    	<nav id="post-entries" class="clearfix">
  • 77.
        								
  • 78.
        										<div class="nav-prev fl">
  • 79.
        										
  • 80.
        											<?php previous_post_link( '%link', '<span class="meta">Previous</span><span class="link">%title</span>' ); ?>
  • 81.
        											
  • 82.
        										</div>
  • 83.
        									
  • 84.
        										<div class="nav-next fr">
  • 85.
        										
  • 86.
        											<?php next_post_link( '%link', '<span class="meta">Next</span><span class="link">%title</span>' ); ?>
  • 87.
        											
  • 88.
        										</div>
  • 89.
        									
  • 90.
        									</nav>
  • 91.
    									
  • 92.
    								</footer> <!-- end article footer -->
  • 93.
    								
  • 94.
    								<?php if ( creer_get_option('related_posts') ) { ?>
  • 95.
    									<div class="related clearfix">
  • 96.
    										<?php creer_related_posts(); ?>
  • 97.
    									</div>
  • 98.
    								<?php } ?>
  • 99.
    									
  • 100.
    								<?php if ( creer_get_option('author_box') ) { ?>
  • 101.
    									<div id="authorbox" class="clearfix">
  • 102.
        										<div class="authortext">
  • 103.
    	    										<h4 class="meta"><?php _e("About", "creerthemes"); ?> <?php the_author(); ?></h4>
  • 104.
    	    										<div class="authorimg fl"><?php echo get_avatar( get_the_author_meta( 'ID' ), '120' ); ?></div>
  • 105.
    	    										<p><?php the_author_meta('description'); ?></p>
  • 106.
    	    										<span class="authorlink"><a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>"><?php printf( __( 'View all posts by %s', 'creerthemes' ), get_the_author() ); ?></a></span>   
  • 107.
    	    									</div>
  • 108.
        								</div>
  • 109.
        								
  • 110.
        								<div class="clearfix"></div>
  • 111.
        							<?php } ?>
  • 112.
    												
  • 113.
    								<div class="clearfix">
  • 114.
    									<?php comments_template(); ?>
  • 115.
    								</div>
  • 116.
    					
  • 117.
    							</article> <!-- end article -->
  • 118.
    					
  • 119.
    						<?php endwhile; ?>			
  • 120.
    					
  • 121.
    						<?php else : ?>
  • 122.
    					
  • 123.
    							<article id="post-not-found" class="hentry clearfix">
  • 124.
    					    		<header class="article-header">
  • 125.
    					    			<h1><?php _e("Oops, Post Not Found!", "creerthemes"); ?></h1>
  • 126.
    					    		</header>
  • 127.
    					    		<section class="entry-content">
  • 128.
    					    			<p><?php _e("Uh Oh. Something is missing. Try double checking things.", "creerthemes"); ?></p>
  • 129.
    					    		</section>
  • 130.
    					    		<footer class="article-footer">
  • 131.
    					    		    <p><?php _e("This is the error message in the single.php template.", "creerthemes"); ?></p>
  • 132.
    					    		</footer>
  • 133.
    							</article>
  • 134.
    					
  • 135.
    						<?php endif; ?>
  • 136.
    			    
  • 137.
    				</div> <!-- end #inner-content -->
  • 138.
        
  • 139.
    			</div> <!-- end #content -->
  • 140.
     
  • 141.
    <?php get_footer(); ?>
<?php get_header(); ?> <?php setup_postdata($post); if( has_post_thumbnail($post->ID) ) { ?> <div id="featured-wrap"> <?php the_post_thumbnail('creer-full'); ?> <?php if( has_post_thumbnail($post->ID) ) { $thumbid = get_post_thumbnail_id( $post->ID ); $feature_image = get_post($thumbid); if( $feature_image ) { if( !empty($feature_image->post_excerpt) ) { echo '<div class="feature-credit">'; echo $feature_image->post_excerpt; echo '</div>'; } } } ?> </div> <?php } ?> <div id="content"> <div id="inner-content" class="wrap clearfix"> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div id="main" class="twelvecol clearfix" role="main"> <article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article" itemscope itemtype="http://schema.org/BlogPosting"> <header class="article-header"> <span class="published"><time class="updated" datetime="<?php echo the_time('F jS, Y'); ?>"><?php the_time(get_option('date_format')); ?></time></span> <h1 class="entry-title single-title" itemprop="headline"><?php the_title(); ?></h1> </header> <!-- end article header --> <section class="entry-content clearfix" itemprop="articleBody"> <div id="post-content" class="clearfix" <?php the_content(); ?> <?php wp_link_pages('before=<p class="page-navigation">Pages:&after=</p>&next_or_number=number&pagelink=%'); ?> </div> <div id="postmeta" class="clearfix"> <p class="byline vcard"> <span class="author"><?php _e('By:', 'creerthemes'); ?> &nbsp;<?php the_author_posts_link(); ?></span> <span class="shortlink"><?php _e('Short URL: ', 'creerthemes'); ?> &nbsp;<a href="<?php echo wp_get_shortlink(); ?>"><?php echo wp_get_shortlink(); ?></a></span> <span class="category"><?php _e('Category:', 'creerthemes'); ?> &nbsp;<?php the_category(', '); ?></span> <?php the_tags('<span class="tags">Tags: &nbsp;', ', ', '</span>'); ?> <span class="count"><?php _e('Words:', 'creerthemes'); ?> &nbsp;<strong><?php echo wcount(); ?></strong></span> </p> <p class="share"> <span class="facebook"><a href="http://www.facebook.com/sharer.php?u=<?php the_permalink();?>&t=<?php the_title(); ?>" target="blank"><i class="icon-facebook"></i> &nbsp;<?php _e('Share on Facebook', 'creerthemes'); ?></a> </span> <span class="twitter"><a href="http://twitter.com/home?status=Currently reading <?php the_permalink(); ?>" title="Click to send this page to Twitter!" target="_blank"><i class="icon-twitter"></i> &nbsp;<?php _e('Tweet this post', 'creerthemes'); ?></a> </span> </p> </div> </section> <!-- end article section --> <footer class="article-footer clearfix"> <nav id="post-entries" class="clearfix"> <div class="nav-prev fl"> <?php previous_post_link( '%link', '<span class="meta">Previous</span><span class="link">%title</span>' ); ?> </div> <div class="nav-next fr"> <?php next_post_link( '%link', '<span class="meta">Next</span><span class="link">%title</span>' ); ?> </div> </nav> </footer> <!-- end article footer --> <?php if ( creer_get_option('related_posts') ) { ?> <div class="related clearfix"> <?php creer_related_posts(); ?> </div> <?php } ?> <?php if ( creer_get_option('author_box') ) { ?> <div id="authorbox" class="clearfix"> <div class="authortext"> <h4 class="meta"><?php _e("About", "creerthemes"); ?> <?php the_author(); ?></h4> <div class="authorimg fl"><?php echo get_avatar( get_the_author_meta( 'ID' ), '120' ); ?></div> <p><?php the_author_meta('description'); ?></p> <span class="authorlink"><a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>"><?php printf( __( 'View all posts by %s', 'creerthemes' ), get_the_author() ); ?></a></span> </div> </div> <div class="clearfix"></div> <?php } ?> <div class="clearfix"> <?php comments_template(); ?> </div> </article> <!-- end article --> <?php endwhile; ?> <?php else : ?> <article id="post-not-found" class="hentry clearfix"> <header class="article-header"> <h1><?php _e("Oops, Post Not Found!", "creerthemes"); ?></h1> </header> <section class="entry-content"> <p><?php _e("Uh Oh. Something is missing. Try double checking things.", "creerthemes"); ?></p> </section> <footer class="article-footer"> <p><?php _e("This is the error message in the single.php template.", "creerthemes"); ?></p> </footer> </article> <?php endif; ?> </div> <!-- end #inner-content --> </div> <!-- end #content --> <?php get_footer(); ?>

Copy Code to Clipboard Raw

Sign-in or Create a Free Account.

Snippi uses Twitter or Facebook to register and create accounts. Registration will enable you to keep track of your snippets. We never spam your timeline or wall. Ever.

Sign-in with Facebook Sign-in with Twitter