/blog/wp-content/themes/modularity-lite/single.php
PHP | 48 lines | 38 code | 6 blank | 4 comment | 3 complexity | 913a617cc10c51bcc5b61b83337a0b12 MD5 | raw file
Possible License(s): GPL-2.0, GPL-3.0, AGPL-1.0, LGPL-2.1
- <?php
- /**
- * @package WordPress
- * @subpackage Modularity
- */
- ?>
- <?php get_header(); ?>
- <div class="span-<?php modularity_sidebar_class(); ?>">
- <div class="content">
- <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
- <h2><?php the_title(); ?></h2>
- <?php the_content( __( 'Read the rest of this page »', 'modularity' ) ); ?>
- <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'modularity' ), 'after' => '</div>' ) ); ?>
- </div>
- <div class="clear"></div>
- <p class="postmetadata alt">
- <small>
- <?php
- $tag_list = get_the_tag_list( ' and was tagged with ', ', ' );
- printf( __( 'This entry was posted on %1$s. It was filed under %2$s%3$s.', 'modularity' ),
- get_the_time( get_option( 'date_format' ) ),
- get_the_category_list( ', ' ),
- $tag_list
- );
- ?>
- <?php edit_post_link( __( 'Edit this entry', 'modularity' ), '', '.' ); ?>
- </small>
- </p>
- <div class="nav next right"><?php next_post_link('%link', _x( '→', 'Next post link', 'modularity' ) ); ?></div>
- <div class="nav prev left"><?php previous_post_link('%link', _x( '←', 'Previous post link', 'modularity' ) ); ?></div>
- <div class="clear"></div>
- <?php endwhile; else : ?>
- <h2 class="center"><?php _e( 'Not Found', 'modularity' ); ?></h2>
- <p class="center"><?php _e( 'Sorry, but you are looking for something that isn’t here.', 'modularity' ); ?></p>
- <?php get_search_form(); ?>
- <?php endif; ?>
- <?php comments_template(); ?>
- </div>
- </div>
- <?php get_sidebar(); ?>
- <!-- Begin Footer -->
- <?php get_footer(); ?>