• 1.
    <?php get_header(); ?>
  • 2.
     
  • 3.
    <!-- Remember Post Views -->
  • 4.
    <?php setPostViews(get_the_ID()); ?>
  • 5.
     
  • 6.
    <?php get_sidebar(); ?>
  • 7.
     
  • 8.
    <div id="content">
  • 9.
    <div id="inner">
  • 10.
     
  • 11.
    <!-- The Loop -->
  • 12.
    <?php if (have_posts()) : ?>
  • 13.
    <?php while (have_posts()) : the_post(); ?>
  • 14.
     
  • 15.
    <!-- Breadcrumbs -->
  • 16.
    <?php if (get_option('to_breadcrumbs') != 'No' and function_exists('dimox_breadcrumbs')) dimox_breadcrumbs(); ?>
  • 17.
     
  • 18.
    <!-- Display Post Views-->
  • 19.
    <?php $options = get_option('to_post_views');
  • 20.
     
  • 21.
    // Echo if options is Yes
  • 22.
    if( $options == 'Yes' ) {
  • 23.
    echo '<div id="postviews">';
  • 24.
        echo getPostViews( get_the_ID() );
  • 25.
    echo '</div>';
  • 26.
    } ?>
  • 27.
     
  • 28.
    <!-- Title -->
  • 29.
    <h1 class="post">
  • 30.
    <?php the_title(); ?>
  • 31.
    </h1>
  • 32.
     
  • 33.
    <!-- Avatar -->
  • 34.
    	<a href="<?php echo get_author_posts_url(get_the_author_meta( 'ID' )); ?>">
  • 35.
    	<?php echo get_avatar( get_the_author_email(), '100' ); ?>
  • 36.
    	</a>
  • 37.
     
  • 38.
    <!-- Post time, author, category -->
  • 39.
    <span class="sub-title-post">
  • 40.
    By <?php the_author_posts_link( ); ?>
  • 41.
    <span class="sub-title-divider">|</span>
  • 42.
    <?php the_time('F j, Y'); ?>
  • 43.
    <span class="sub-title-divider">|</span>
  • 44.
    <?php the_category(', ') ?>
  • 45.
    <span class="sub-title-divider">|</span>
  • 46.
    <a href="<?php the_permalink(); ?>#comments">
  • 47.
    <?php comments_number( 'No comments', 'One comment', '% comments' ); ?>
  • 48.
    </a>
  • 49.
    <?php edit_post_link(); ?>
  • 50.
    </span>
  • 51.
     
  • 52.
    <!-- The post -->
  • 53.
    <?php the_content(); ?>
  • 54.
    <p><?php the_tags(); ?></p>
  • 55.
    <?php wp_link_pages(); ?>
  • 56.
     
  • 57.
    <div style="clear:both; display:block">
  • 58.
    	<div class="button left">
  • 59.
    	<?php previous_post_link(); ?> 
  • 60.
    	</div>
  • 61.
     
  • 62.
    	<div class="button right">
  • 63.
    	<?php next_post_link(); ?> 
  • 64.
    	</div>
  • 65.
    </div>
  • 66.
     
  • 67.
     
  • 68.
    <!-- End Inner -->
  • 69.
    </div>
  • 70.
     
  • 71.
    <!-- Comments -->
  • 72.
    <?php
  • 73.
    if (get_option('to_commentsd') != 'No' and function_exists('comments_template'))
  • 74.
        comments_template();
  • 75.
    ?>
  • 76.
     
  • 77.
    <?php endwhile; else: ?>
  • 78.
    <p>No matching entries found.</p>
  • 79.
    <?php endif; ?>
  • 80.
     
  • 81.
    </div>
  • 82.
    </div>
  • 83.
    <?php get_footer(); ?>
<?php get_header(); ?> <!-- Remember Post Views --> <?php setPostViews(get_the_ID()); ?> <?php get_sidebar(); ?> <div id="content"> <div id="inner"> <!-- The Loop --> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <!-- Breadcrumbs --> <?php if (get_option('to_breadcrumbs') != 'No' and function_exists('dimox_breadcrumbs')) dimox_breadcrumbs(); ?> <!-- Display Post Views--> <?php $options = get_option('to_post_views'); // Echo if options is Yes if( $options == 'Yes' ) { echo '<div id="postviews">'; echo getPostViews( get_the_ID() ); echo '</div>'; } ?> <!-- Title --> <h1 class="post"> <?php the_title(); ?> </h1> <!-- Avatar --> <a href="<?php echo get_author_posts_url(get_the_author_meta( 'ID' )); ?>"> <?php echo get_avatar( get_the_author_email(), '100' ); ?> </a> <!-- Post time, author, category --> <span class="sub-title-post"> By <?php the_author_posts_link( ); ?> <span class="sub-title-divider">|</span> <?php the_time('F j, Y'); ?> <span class="sub-title-divider">|</span> <?php the_category(', ') ?> <span class="sub-title-divider">|</span> <a href="<?php the_permalink(); ?>#comments"> <?php comments_number( 'No comments', 'One comment', '% comments' ); ?> </a> <?php edit_post_link(); ?> </span> <!-- The post --> <?php the_content(); ?> <p><?php the_tags(); ?></p> <?php wp_link_pages(); ?> <div style="clear:both; display:block"> <div class="button left"> <?php previous_post_link(); ?> </div> <div class="button right"> <?php next_post_link(); ?> </div> </div> <!-- End Inner --> </div> <!-- Comments --> <?php if (get_option('to_commentsd') != 'No' and function_exists('comments_template')) comments_template(); ?> <?php endwhile; else: ?> <p>No matching entries found.</p> <?php endif; ?> </div> </div> <?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