/blog/wp-content/themes/traction/single.php
PHP | 44 lines | 39 code | 1 blank | 4 comment | 3 complexity | 42da148f8a4752ce9916e2230849a610 MD5 | raw file
Possible License(s): GPL-2.0, GPL-3.0, AGPL-1.0, LGPL-2.1
- <?php
- /**
- * @package WordPress
- * @subpackage Traction
- */
- get_header(); ?>
- <?php if (have_posts()) : ?>
- <div id="main-top">
- <div class="main-top-left">
- <h4><?php the_time( get_option( 'date_format' ) ); ?></h4>
- <div class="single-comments">
- <a href="#comments"><?php comments_number( '', '1', '%' ); ?></a>
- </div>
- </div>
- <?php get_template_part( 'subscribe' ); ?>
- </div>
- <div id="main" class="clear">
- <div id="content">
- <?php while (have_posts()) : the_post(); ?>
- <div id="post-<?php the_ID(); ?>" <?php post_class( 'clear single' ); ?>>
- <h1 class="title"><?php the_title(); ?></h1>
- <div class="entry single">
- <?php the_post_thumbnail( 'index-thumb', array( 'class' => 'single-post-thm alignright border' ) ); ?>
- <?php the_content(); ?>
- <?php edit_post_link( __( 'Edit', 'traction' ) ); ?>
- <?php wp_link_pages(); ?>
- </div><!--end entry-->
- <div class="meta clear">
- <div class="cats"><?php _e( '<em>Read more from</em>', 'traction' ); ?> <?php the_category( ', ' ); ?></div>
- <div class="tags"><?php the_tags( '' ); ?></div>
- </div><!--end meta-->
- </div><!--end post-->
- <?php endwhile; /* rewind or continue if all posts have been fetched */ ?>
- <div class="navigation post single clear">
- <div class="alignleft"><?php previous_post_link( '%link', _x( '←', 'Previous post link', 'paperpunch' ) . ' %title' ); ?></div>
- <div class="alignright" ><?php next_post_link( '%link', _x( '%title ', 'Next post link', 'paperpunch' ) . '→' ); ?></div>
- </div><!--end navigation-->
- <?php comments_template( '', true); ?>
- <?php else : ?>
- <?php endif; ?>
- </div><!--end content-->
- <?php get_sidebar(); ?>
- <?php get_footer(); ?>