PageRenderTime 46ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

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

https://bitbucket.org/sergiohzlz/reportaprod
PHP | 52 lines | 44 code | 8 blank | 0 comment | 13 complexity | c85a8356db760000aac2fe24901e9e21 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="post-<?php the_ID(); ?>" class="<?php notesil_post_class(); ?>">
  6. <h2 class="entry-title"><?php the_title(); ?></h2>
  7. <div class="entry-content">
  8. <?php the_content(); ?>
  9. <?php wp_link_pages( 'before=<div class="page-link">' . __( 'Pages:', 'notesil' ) . '&after=</div>' ); ?>
  10. </div>
  11. <div class="entry-meta">
  12. <?php printf( __( 'By %1$s, on <abbr class="published" title="%2$sT%3$s">%4$s at %5$s</abbr>, under %6$s. %7$s', 'notesil' ),
  13. '<span class="author vcard"><a class="url fn n" href="' . get_author_posts_url( $authordata->ID, $authordata->user_nicename ) . '" title="' . sprintf( __( 'View all posts by %s', 'notesil' ), $authordata->display_name ) . '">' . get_the_author() . '</a></span>',
  14. get_the_time( 'Y-m-d' ),
  15. get_the_time( 'H:i:sO' ),
  16. the_date( '', '', '', false ),
  17. get_the_time(),
  18. get_the_category_list( ', ' ),
  19. get_the_tag_list( __( 'Tags: ', 'notesil' ), ', ', '.' ),
  20. the_title_attribute( 'echo=0' ) ); ?>
  21. <?php comments_number(); ?>
  22. </div>
  23. <div class="entry-actions">
  24. <?php if ( ( 'open' == $post->comment_status) && ( 'open' == $post->ping_status) ) : // Comments and trackbacks open ?>
  25. <?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>.', 'notesil' ), get_trackback_url() ); ?>
  26. <?php elseif ( !( 'open' == $post->comment_status) && ( 'open' == $post->ping_status) ) : // Only trackbacks open ?>
  27. <?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>.', 'notesil' ), get_trackback_url() ); ?>
  28. <?php elseif ( ( 'open' == $post->comment_status) && !( 'open' == $post->ping_status) ) : // Only comments open ?>
  29. <?php _e( 'Trackbacks are closed, but you can <a class="comment-link" href="#respond" title="Post a comment">post a comment</a>.', 'notesil' ); ?>
  30. <?php elseif ( !( 'open' == $post->comment_status) && !( 'open' == $post->ping_status) ) : // Comments and trackbacks closed ?>
  31. <?php _e( 'Both comments and trackbacks are currently closed.', 'notesil' ); ?>
  32. <?php endif; ?>
  33. <?php edit_post_link( __( 'Edit', 'notesil' ), "\n\t\t\t\t\t<span class=\"edit-link\">", "</span>" ); ?>
  34. </div>
  35. </div><!-- .post -->
  36. <div id="nav-below" class="navigation">
  37. <div class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">&laquo;</span> %title' ); ?></div>
  38. <div class="nav-next"><?php next_post_link( '%link', '%title <span class="meta-nav">&raquo;</span>' ); ?></div>
  39. </div>
  40. <?php comments_template(); ?>
  41. </div><!-- #content -->
  42. <?php get_sidebar(); ?>
  43. </div><!-- #container -->
  44. <?php get_footer(); ?>