PageRenderTime 31ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/blog/wp-content/themes/sandbox-161/single.php

https://bitbucket.org/sergiohzlz/reportaprod
PHP | 58 lines | 47 code | 11 blank | 0 comment | 13 complexity | f54b208e5f2e710020ae73ef0cb7ca92 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="container">
  3. <div id="content">
  4. <?php the_post() ?>
  5. <div id="nav-above" class="navigation">
  6. <div class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">&laquo;</span> %title' ) ?></div>
  7. <div class="nav-next"><?php next_post_link( '%link', '%title <span class="meta-nav">&raquo;</span>' ) ?></div>
  8. </div>
  9. <div id="post-<?php the_ID() ?>" class="<?php sandbox_post_class() ?>">
  10. <h2 class="entry-title"><?php the_title() ?></h2>
  11. <div class="entry-content">
  12. <?php the_content() ?>
  13. <?php wp_link_pages('before=<div class="page-link">' . __( 'Pages:', 'sandbox' ) . '&after=</div>') ?>
  14. </div>
  15. <div class="entry-meta">
  16. <?php printf( __( 'This entry was written by %1$s, posted on <abbr class="published" title="%2$sT%3$s">%4$s at %5$s</abbr>, filed under %6$s%7$s. Bookmark the <a href="%8$s" title="Permalink to %9$s" rel="bookmark">permalink</a>. Follow any comments here with the <a href="%10$s" title="Comments RSS to %9$s" rel="alternate" type="application/rss+xml">RSS feed for this post</a>.', 'sandbox' ),
  17. '<span class="author vcard"><a class="url fn n" href="' . get_author_link( false, $authordata->ID, $authordata->user_nicename ) . '" title="' . sprintf( __( 'View all posts by %s', 'sandbox' ), $authordata->display_name ) . '">' . get_the_author() . '</a></span>',
  18. get_the_time('Y-m-d'),
  19. get_the_time('H:i:sO'),
  20. the_date( '', '', '', false ),
  21. get_the_time(),
  22. get_the_category_list(', '),
  23. get_the_tag_list( __( ' and tagged ', 'sandbox' ), ', ', '' ),
  24. get_permalink(),
  25. the_title_attribute('echo=0'),
  26. comments_rss() ) ?>
  27. <?php if ( ('open' == $post->comment_status) && ('open' == $post->ping_status) ) : // Comments and trackbacks open ?>
  28. <?php printf( __( '<a class="comment-link" href="#respond" title="Post a comment">Post a comment</a> or leave a trackback: <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">Trackback URL</a>.', 'sandbox' ), get_trackback_url() ) ?>
  29. <?php elseif ( !('open' == $post->comment_status) && ('open' == $post->ping_status) ) : // Only trackbacks open ?>
  30. <?php printf( __( 'Comments are closed, but you can leave a trackback: <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">Trackback URL</a>.', 'sandbox' ), get_trackback_url() ) ?>
  31. <?php elseif ( ('open' == $post->comment_status) && !('open' == $post->ping_status) ) : // Only comments open ?>
  32. <?php _e( 'Trackbacks are closed, but you can <a class="comment-link" href="#respond" title="Post a comment">post a comment</a>.', 'sandbox' ) ?>
  33. <?php elseif ( !('open' == $post->comment_status) && !('open' == $post->ping_status) ) : // Comments and trackbacks closed ?>
  34. <?php _e( 'Both comments and trackbacks are currently closed.', 'sandbox' ) ?>
  35. <?php endif; ?>
  36. <?php edit_post_link( __( 'Edit', 'sandbox' ), "\n\t\t\t\t\t<span class=\"edit-link\">", "</span>" ) ?>
  37. </div>
  38. </div><!-- .post -->
  39. <div id="nav-below" class="navigation">
  40. <div class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">&laquo;</span> %title' ) ?></div>
  41. <div class="nav-next"><?php next_post_link( '%link', '%title <span class="meta-nav">&raquo;</span>' ) ?></div>
  42. </div>
  43. <?php comments_template() ?>
  44. </div><!-- #content -->
  45. </div><!-- #container -->
  46. <?php get_sidebar() ?>
  47. <?php get_footer() ?>