PageRenderTime 38ms CodeModel.GetById 12ms RepoModel.GetById 0ms app.codeStats 0ms

/blog/wp-content/themes/whiteasmilk/single.php

https://bitbucket.org/sergiohzlz/reportaprod
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
  1. <?php get_header(); ?>
  2. <?php get_sidebar(); ?>
  3. <div id="content" class="narrowcolumn" style="margin:0px; ">
  4. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  5. <div class="navigation">
  6. <div class="alignleft"><?php previous_post_link( '%link', _x( '&laquo; ', 'Previous post link', 'whiteasmilk' ) . '%title' ); ?></div>
  7. <div class="alignright"><?php next_post_link( '%link', '%title' . _x( ' &raquo;', 'Next post link', 'whiteasmilk' ) ); ?></div>
  8. </div>
  9. <div <?php post_class(); ?>>
  10. <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>
  11. <small><?php the_time(get_option('date_format')) ?> <!-- by <?php the_author() ?> --></small>
  12. <div class="entry">
  13. <?php the_content('<p class="serif">'.__('Read the rest of this entry &raquo;','whiteasmilk').'</p>'); ?>
  14. <?php link_pages(__('<p><strong>Pages:</strong> ','whiteasmilk'), '</p>', 'number'); ?>
  15. <p class="postmetadata alt">
  16. <small>
  17. <?php _e('This entry was posted on','whiteasmilk'); ?>
  18. <?php /* This is commented, because it requires a little adjusting sometimes.
  19. You'll need to download this plugin, and follow the instructions:
  20. http://binarybonsai.com/archives/2004/08/17/time-since-plugin/ */
  21. /* $entry_datetime = abs(strtotime($post->post_date) - (60*120)); echo time_since($entry_datetime); echo ' ago'; */ ?>
  22. <?php the_time(get_option('date_format')) ?> <?php _e('at','whiteasmilk'); ?> <?php the_time() ?>
  23. <?php _e('and is filed under','whiteasmilk'); ?> <?php the_category(', ') ?>.
  24. <?php edit_post_link(__('Edit this entry.','whiteasmilk'),'',''); ?>
  25. <br />
  26. <?php the_tags( '<br />Tags: ', ', ', ''); ?>
  27. </small>
  28. </p>
  29. </div>
  30. </div>
  31. <?php comments_template(); ?>
  32. <?php endwhile; else: ?>
  33. <p><?php _e('Sorry, no posts matched your criteria.','whiteasmilk'); ?></p>
  34. <?php endif; ?>
  35. </div>
  36. <?php get_footer(); ?>