Snippi
A super awesome snippet tool.
- 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'); ?> <?php the_author_posts_link(); ?></span>
- 57.
<span class="shortlink"><?php _e('Short URL: ', 'creerthemes'); ?> <a href="<?php echo wp_get_shortlink(); ?>"><?php echo wp_get_shortlink(); ?></a></span>
- 58.
<span class="category"><?php _e('Category:', 'creerthemes'); ?> <?php the_category(', '); ?></span>
- 59.
<?php the_tags('<span class="tags">Tags: ', ', ', '</span>'); ?>
- 60.
<span class="count"><?php _e('Words:', 'creerthemes'); ?> <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> <?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> <?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(); ?>