PageRenderTime 37ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

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

https://bitbucket.org/sergiohzlz/reportaprod
PHP | 66 lines | 38 code | 24 blank | 4 comment | 18 complexity | 66d7611dc4467d617cfd283213d95b79 MD5 | raw file
Possible License(s): GPL-2.0, GPL-3.0, AGPL-1.0, LGPL-2.1
  1. <?php get_header(); ?>
  2. <div id="content">
  3. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  4. <div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
  5. <h2 class="single"><a href="<?php echo get_permalink() ?>" rel="bookmark" title="<?php echo esc_attr( sprintf( __( 'Permanent link to %s' ), the_title_attribute( 'echo=0' ) ) ); ?>"><?php the_title(); ?></a></h2>
  6. <div class="entry">
  7. <?php the_content('<p class="serif">' . __('Read the rest of this entry &raquo;', 'daydream') . '</p>'); ?>
  8. <?php link_pages('<p><strong>'.__('Pages','daydream').':</strong> ', '</p>', 'number'); ?>
  9. </div>
  10. </div>
  11. <p id="single" class="postmetadata">
  12. <small>
  13. <?php printf(__('This entry was posted %1$s on %2$s at %3$s and is filed under %4$s.', 'daydream'), $time_since, get_the_time(__('l, F jS, Y', 'daydream')), get_the_time(), get_the_nice_category(', ', ' ' . __('and', 'daydream') . ' ')); ?> <?php the_tags( __( 'Tagged' ) . ': ', ', ', '. '); ?>
  14. <?php if (get_option('dd_tags_cats') == "both" && function_exists('UTW_ShowTagsForCurrentPost')) { ?>
  15. <?php _e('Tagged with', 'daydream'); ?> <?php UTW_ShowTagsForCurrentPost("commalist") ?>.
  16. <?php } ?>
  17. <?php printf(__('You can <a href="%s">feed</a> this entry.', 'daydream'), get_post_comments_feed_link()); ?>
  18. <?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
  19. // Both Comments and Pings are open ?>
  20. <?php printf(__('You can <a href="#respond">leave a response</a>, or <a href="%s" rel="trackback">trackback</a> from your own site.', 'daydream'), get_trackback_url()); ?>
  21. <?php } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
  22. // Only Pings are Open ?>
  23. <?php printf(__('Responses are currently closed, but you can <a href="%s" rel="trackback">trackback</a> from your own site.', 'daydream'), get_trackback_url()); ?>
  24. <?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
  25. // Comments are open, Pings are not ?>
  26. <?php _e('You can skip to the end and leave a response. Pinging is currently not allowed.', 'daydream'); ?>
  27. <?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
  28. // Neither Comments, nor Pings are open ?>
  29. <?php _e('Both comments and pings are currently closed.', 'daydream'); ?>
  30. <?php } edit_post_link(__('Edit this entry.', 'daydream'),'',''); ?>
  31. </small>
  32. </p>
  33. <?php comments_template(); ?>
  34. <?php endwhile; else: ?>
  35. <p><?php _e('Sorry, no posts matched your criteria.','daydream'); ?></p>
  36. <?php endif; ?>
  37. <div class="navigation">
  38. <div class="alignleft"><?php previous_post_link('&laquo; %link') ?></div>
  39. <div class="alignright"><?php next_post_link('%link &raquo;') ?></div>
  40. </div>
  41. </div>
  42. <?php get_footer(); ?>