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

/blog/wp-content/themes/extinct/guruq/single.php

https://bitbucket.org/sergiohzlz/reportaprod
PHP | 75 lines | 63 code | 12 blank | 0 comment | 16 complexity | 25703e4ad9ca9b4be7af5cf6a08a63a2 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. <a href="#" name="post"></a>
  11. <h2 class="entry-title"><?php the_title() ?></h2>
  12. <div class="entry-content">
  13. <?php
  14. $author_name = get_post_meta( $post->ID, 'author_name', true );
  15. $author_website = get_post_meta( $post->ID, 'author_website', true );
  16. $sub_by = sprintf( '<a href="%s">%s</a>', $author_website, $author_name );
  17. if ( empty( $author_website ) ) {
  18. $sub_by = sprintf( '%s', $author_name );
  19. }
  20. ?>
  21. <p>asked by <?php echo $sub_by; ?></p>
  22. <?php the_content() ?>
  23. <?php wp_link_pages('before=<div class="page-link">' . __( 'Pages:', 'sandbox' ) . '&after=</div>') ?>
  24. </div>
  25. <div class="entry-meta">
  26. <?php printf( __( 'This question was answered by %1$s 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>.', 'sandbox' ),
  27. '<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>',
  28. get_the_time('Y-m-d'),
  29. get_the_time('H:i:sO'),
  30. the_date( '', '', '', false ),
  31. get_the_time(),
  32. get_the_category_list(', '),
  33. get_the_tag_list( __( ' and tagged ', 'sandbox' ), ', ', '' ),
  34. get_permalink(),
  35. the_title_attribute('echo=0'),
  36. comments_rss() ) ?>
  37. <?php if ( !is_post_guruq() ) : ?>
  38. <?php if ( ('open' == $post->comment_status) && ('open' == $post->ping_status) ) : // Comments and trackbacks open ?>
  39. <?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() ) ?>
  40. <?php elseif ( !('open' == $post->comment_status) && ('open' == $post->ping_status) ) : // Only trackbacks open ?>
  41. <?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() ) ?>
  42. <?php elseif ( ('open' == $post->comment_status) && !('open' == $post->ping_status) ) : // Only comments open ?>
  43. <?php _e( 'Trackbacks are closed, but you can <a class="comment-link" href="#respond" title="Post a comment">post a comment</a>.', 'sandbox' ) ?>
  44. <?php elseif ( !('open' == $post->comment_status) && !('open' == $post->ping_status) ) : // Comments and trackbacks closed ?>
  45. <?php _e( 'Both comments and trackbacks are currently closed.', 'sandbox' ) ?>
  46. <?php endif; // is_post_guruq ?>
  47. <?php endif; ?>
  48. <?php edit_post_link( __( 'Edit', 'sandbox' ), "\n\t\t\t\t\t<span class=\"edit-link\">", "</span>" ) ?>
  49. </div>
  50. </div><!-- .post -->
  51. <div id="nav-below" class="navigation">
  52. <div class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">&laquo;</span> %title' ) ?></div>
  53. <div class="nav-next"><?php next_post_link( '%link', '%title <span class="meta-nav">&raquo;</span>' ) ?></div>
  54. </div>
  55. <?php
  56. if ( !is_post_guruq() ) {
  57. comments_template();
  58. }
  59. ?>
  60. </div><!-- #content -->
  61. </div><!-- #container -->
  62. <?php //get_sidebar() ?>
  63. <?php get_footer() ?>