/blog/wp-content/themes/whiteasmilk/single.php
PHP | 55 lines | 34 code | 19 blank | 2 comment | 2 complexity | 4d644107c97cc4d96876faac33e3c9a8 MD5 | raw file
Possible License(s): GPL-2.0, GPL-3.0, AGPL-1.0, LGPL-2.1
- <?php get_header(); ?>
- <?php get_sidebar(); ?>
- <div id="content" class="narrowcolumn" style="margin:0px; ">
- <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
-
- <div class="navigation">
- <div class="alignleft"><?php previous_post_link( '%link', _x( '« ', 'Previous post link', 'whiteasmilk' ) . '%title' ); ?></div>
- <div class="alignright"><?php next_post_link( '%link', '%title' . _x( ' »', 'Next post link', 'whiteasmilk' ) ); ?></div>
- </div>
- <div <?php post_class(); ?>>
- <h2 id="post-<?php the_ID(); ?>"><a href="<?php echo get_permalink() ?>" rel="bookmark" title="<?php echo esc_attr( sprintf( __( 'Permanent Link: %s', 'whiteasmilk' ), the_title_attribute( 'echo=0' ) ) ); ?>"><?php the_title(); ?></a></h2>
- <small><?php the_time(get_option('date_format')) ?> <!-- by <?php the_author() ?> --></small>
-
- <div class="entry">
- <?php the_content('<p class="serif">'.__('Read the rest of this entry »','whiteasmilk').'</p>'); ?>
-
- <?php link_pages(__('<p><strong>Pages:</strong> ','whiteasmilk'), '</p>', 'number'); ?>
-
- <p class="postmetadata alt">
- <small>
- <?php _e('This entry was posted on','whiteasmilk'); ?>
- <?php /* This is commented, because it requires a little adjusting sometimes.
- You'll need to download this plugin, and follow the instructions:
- http://binarybonsai.com/archives/2004/08/17/time-since-plugin/ */
- /* $entry_datetime = abs(strtotime($post->post_date) - (60*120)); echo time_since($entry_datetime); echo ' ago'; */ ?>
- <?php the_time(get_option('date_format')) ?> <?php _e('at','whiteasmilk'); ?> <?php the_time() ?>
- <?php _e('and is filed under','whiteasmilk'); ?> <?php the_category(', ') ?>.
-
- <?php edit_post_link(__('Edit this entry.','whiteasmilk'),'',''); ?>
- <br />
- <?php the_tags( '<br />Tags: ', ', ', ''); ?>
-
- </small>
- </p>
-
- </div>
- </div>
-
- <?php comments_template(); ?>
-
- <?php endwhile; else: ?>
-
- <p><?php _e('Sorry, no posts matched your criteria.','whiteasmilk'); ?></p>
-
- <?php endif; ?>
- </div>
- <?php get_footer(); ?>