/blog/wp-content/themes/neutra/single.php
PHP | 63 lines | 49 code | 10 blank | 4 comment | 3 complexity | 91bffeb2fa391d48e32c7d41eecb01fe MD5 | raw file
Possible License(s): GPL-2.0, GPL-3.0, AGPL-1.0, LGPL-2.1
- <?php
- /**
- * @package WordPress
- * @subpackage Neutra
- */
- get_header(); ?>
- <div id="page">
- <div id="left">
- <?php if ( have_posts() ) : ?>
- <?php while ( have_posts() ) : the_post(); ?>
- <div <?php post_class('post'); ?> id="post-<?php the_ID(); ?>">
- <h2 class="title"><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
- <div class="postcontent">
- <?php the_content( 'Read more…' ); ?>
- <?php wp_link_pages( 'before=<p class="link-pages">Pages: &after=</p>' ); ?>
- <p class="edit-post"><?php edit_post_link( __( '(Edit this entry)' ) ); ?></p>
- <div class="postmetadata">
- <div class="floatleft">
- <p><span class="category"><?php the_category( ', ' ); ?></span></p>
- <p><?php the_tags( '<span class="tags">', ', ', '</span>' ); ?></p>
- </div><!-- /floatleft -->
- <div class="floatright">
- <p><span class="date"><?php the_time( get_option( 'date_format' ) ); ?></span></p>
- <p><span class="comments"><?php comments_popup_link( __( 'Leave a comment' ), __( '1 Comment' ), __( '% Comments' ) ) ?></span></p>
- </div><!-- /floatright -->
- </div><!-- /postmetadata -->
- </div><!-- /postcontent -->
- </div><!-- /post -->
- <div class="navigation">
- <div class="alignleft"><?php previous_post_link( '%link', '« %title' ); ?></div>
- <div class="alignright"><?php next_post_link( '%link', '%title »' ); ?></div>
- </div><!-- /navigation -->
- <?php comments_template( '', true ); ?>
- <?php endwhile; ?>
- <?php else : ?>
- <div class="post">
- <h2 class="title">I'm sorry, I couldn't find the article!</h2>
- <div class="postcontent">
- <p>Don't worry, you can always search the <strong>archives</strong> or browse the <strong>categories</strong>.</p>
- </div>
- </div><!-- /post -->
- <?php endif; ?>
- </div><!-- /left -->
- <div id="right">
- <?php get_sidebar(); ?>
- </div><!-- /right -->
- </div><!-- /page -->
- <?php get_footer(); ?>