/blog/wp-content/themes/clean-home/single.php
PHP | 47 lines | 34 code | 9 blank | 4 comment | 4 complexity | ae77c97ed97419fc3aa37fa690d5372b MD5 | raw file
Possible License(s): GPL-2.0, GPL-3.0, AGPL-1.0, LGPL-2.1
- <?php
- /**
- * @package WordPress
- * @subpackage Clean Home
- */
- ?>
- <?php get_header(); ?>
- <div class="content">
- <?php if ( have_posts() ) : ?>
- <?php while ( have_posts() ) : the_post(); ?>
-
- <div class="navigation nav-above">
- <div class="alignleft"><?php next_post_link( '← %link' ); ?></div>
- <div class="alignright"><?php previous_post_link( '%link →' ); ?></div>
- </div>
- <div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
- <h1><?php the_title(); ?></h1>
- <small class="post-meta"><b><?php _e( 'Posted:', 'cleanhome' ); ?></b> <?php the_time( 'F jS, Y' ); ?> | <b><?php _e( 'Author:', 'cleanhome' ); ?></b> <?php the_author_posts_link(); ?> | <b><?php _e( 'Filed under:', 'cleanhome' ); ?></b> <?php the_category( ', ' ); ?> <?php the_tags( ' | <b>Tags:</b> ', ', ', '' ); ?><?php edit_post_link( __( 'Edit this', 'cleanhome' ), ' | <b>Modify:</b> ' ); ?> | <?php comments_popup_link( __( 'Leave a comment »', 'cleanhome' ), __( '<strong>1</strong> Comment »', 'cleanhome' ), __( '<strong>%</strong> Comments »', 'cleanhome' ) ); ?></small>
- <?php the_content( 'Read the rest of this entry »' ); ?>
- <?php wp_link_pages( array( 'before' => '<p>Page: ', 'after' => '</p>', 'next_or_number' => 'number' ) ); ?>
- <hr/>
- </div>
- <?php comments_template(); ?>
- <?php endwhile; ?>
- <div class="navigation">
- <div class="alignleft"><?php next_post_link( '← %link' ); ?></div>
- <div class="alignright"><?php previous_post_link( '%link →' ); ?></div>
- </div>
- <?php else : ?>
- <h2 class="center"><?php _e( 'Not found', 'cleanhome' ); ?></h2>
- <p class="center"><?php _e( "Sorry, but you are looking for something that isn't here.", 'cleanhome' ); ?></p>
- <?php endif; ?>
- </div>
- <?php get_footer(); ?>