/blog/wp-content/themes/coraline/single.php
PHP | 52 lines | 34 code | 13 blank | 5 comment | 2 complexity | 1361352d5b56d57c614c58233e4f9f21 MD5 | raw file
Possible License(s): GPL-2.0, GPL-3.0, AGPL-1.0, LGPL-2.1
- <?php
- /**
- * @package WordPress
- * @subpackage Coraline
- * @since Coraline 1.0
- */
- get_header(); ?>
- <div id="content-container">
- <div id="content" role="main">
- <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
- <div id="nav-above" class="navigation">
- <div class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">' . _x( '←', 'Previous post link', 'coraline' ) . '</span> %title' ); ?></div>
- <div class="nav-next"><?php next_post_link( '%link', '%title <span class="meta-nav">' . _x( '→', 'Next post link', 'coraline' ) . '</span>' ); ?></div>
- </div><!-- #nav-above -->
- <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
- <h1 class="entry-title"><?php the_title(); ?></h1>
- <div class="entry-meta">
- <?php coraline_posted_on(); ?><span class="comments-link"><span class="meta-sep">|</span> <?php comments_popup_link( __( 'Leave a comment', 'coraline' ), __( '1 Comment', 'coraline' ), __( '% Comments', 'coraline' ) ); ?></span>
- <?php edit_post_link( __( 'Edit', 'coraline' ), '<span class="meta-sep">|</span> <span class="edit-link">', '</span>' ); ?>
- </div><!-- .entry-meta -->
- <div class="entry-content">
- <?php the_content(); ?>
- <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'coraline' ), 'after' => '</div>' ) ); ?>
- </div><!-- .entry-content -->
- <div class="entry-info">
- <?php coraline_posted_in(); ?>
- <?php edit_post_link( __( 'Edit', 'coraline' ), '<span class="edit-link">', '</span>' ); ?>
- </div><!-- .entry-info -->
- </div><!-- #post-## -->
- <div id="nav-below" class="navigation">
- <div class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">' . _x( '←', 'Previous post link', 'coraline' ) . '</span> %title' ); ?></div>
- <div class="nav-next"><?php next_post_link( '%link', '%title <span class="meta-nav">' . _x( '→', 'Next post link', 'coraline' ) . '</span>' ); ?></div>
- </div><!-- #nav-below -->
- <?php comments_template( '', true ); ?>
- <?php endwhile; // end of the loop. ?>
- </div><!-- #content -->
- </div><!-- #content-container -->
- <?php get_sidebar(); ?>
- <?php get_footer(); ?>