/blog/wp-content/themes/depo-masthead/single.php
PHP | 35 lines | 28 code | 7 blank | 0 comment | 4 complexity | f9a894541f6f6ecce01092c365683056 MD5 | raw file
Possible License(s): GPL-2.0, GPL-3.0, AGPL-1.0, LGPL-2.1
- <?php get_header(); ?>
- <?php if (have_posts()) : while (have_posts()) : the_post();
- if( $post->ID == $do_not_duplicate ) continue; update_post_caches($posts); ?>
- <div <?php post_class() ?> id="post-<?php the_ID(); ?>">
- <p class="postmetadata"><?php the_tags('', ', ', '<br />'); ?></p>
- <h2><?php the_title(); ?></h2>
- <small><?php printf(__('In %1$s on %2$s at %3$s', 'depo-masthead'), get_the_category_list(__(', ', 'depo-masthead')), '<strong>'.get_the_time(get_option('date_format')).'</strong>', '<strong>'.get_the_time().'</strong>'); ?></small>
- <div class="entry">
- <?php the_content(__('Read the rest of this entry »', 'depo-masthead')); ?>
- <?php wp_link_pages(); ?>
- <?php edit_post_link(__('Edit this entry.', 'depo-masthead'), '<p>', '</p>'); ?>
- </div>
- </div>
- <?php comments_template(); ?>
-
- <div class="navigation">
- <div class="previous">
- <?php previous_post_link('%link', '<span class="arrow">«</span> <span class="link"> <span class="before">'.__('Before', 'depo-masthead').'</span> <span class="title">%title</span> <span class="date">%date</span> </span>') ?>
- </div>
-
- <div class="next">
- <?php next_post_link('%link', '<span class="link"> <span class="after">'.__('After', 'depo-masthead').'</span><span class="title">%title</span> <span class="date">%date</span></span> <span class="arrow">»</span>') ?>
- </div>
- <div class="clear"></div>
- </div>
- <?php endwhile; else: ?>
- <p><?php _e('Sorry, no posts matched your criteria.', 'depo-masthead'); ?></p>
- <?php endif; ?>
- <?php get_sidebar(); ?>
- <?php get_footer(); ?>