Guest User

Untitled

a guest
Oct 14th, 2014
286
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.66 KB | None | 0 0
  1. <?php
  2. /**
  3. * The single post loop - This shows only one post
  4. **/
  5.  
  6. if (have_posts()) {
  7. the_post();
  8.  
  9. $td_mod_single = new td_module_1($post);
  10.  
  11.  
  12.  
  13. //show the breadcrumb
  14. if (get_post_type($post) == 'post') {
  15. echo td_page_generator::get_single_breadcrumbs($td_mod_single->title);
  16. } else {
  17. echo td_page_generator::get_page_breadcrumbs($td_mod_single->title);
  18. }
  19. ?>
  20.  
  21. <article id="post-<?php echo $td_mod_single->post->ID;?>" class="<?php echo join(' ', get_post_class());?>" <?php echo $td_mod_single->get_item_scope();?>>
  22.  
  23. <header>
  24.  
  25. <?php echo $td_mod_single->get_title();?>
  26.  
  27. <div class="meta-info">
  28. <?php echo $td_mod_single->get_category();?>
  29. <?php
  30. //show the author under title
  31. if (td_util::get_option('tds_show_author_under_title') == 'show') {
  32. echo $td_mod_single->get_author();
  33. }
  34. ?>
  35. <?php echo $td_mod_single->get_date(false);?>
  36. <?php echo $td_mod_single->get_commentsAndViews();?>
  37. </div>
  38. </header>
  39.  
  40.  
  41. <?php if (!empty($td_mod_single->td_post_theme_settings['td_subtitle'])) { ?>
  42. <p class="td-sub-title"><?php echo $td_mod_single->td_post_theme_settings['td_subtitle'];?></p>
  43. <?php } ?>
  44.  
  45.  
  46. <?php
  47. // override the default featured image by the templates (single.php and home.php/index.php - blog loop)
  48. if (!empty(td_global::$load_featured_img_from_template)) {
  49. echo $td_mod_single->get_image(td_global::$load_featured_img_from_template);
  50. } else {
  51. echo $td_mod_single->get_image('featured-image');
  52. }
  53. ?>
  54.  
  55. <div class="td-post-text-content">
  56. <?php echo $td_mod_single->get_content();?>
  57. </div>
  58.  
  59.  
  60. <div class="clearfix"></div>
  61.  
  62. <footer>
  63. <?php echo $td_mod_single->get_post_pagination();?>
  64. <?php echo $td_mod_single->get_review();?>
  65. <?php echo $td_mod_single->get_source_and_via();?>
  66. <?php echo $td_mod_single->get_social_sharing();?>
  67. <?php echo $td_mod_single->get_social_like_tweet();?>
  68. <?php echo $td_mod_single->get_next_prev_posts();?>
  69. <?php echo $td_mod_single->get_author_box();?>
  70.  
  71.  
  72. <?php echo $td_mod_single->get_item_scope_meta();?>
  73. </footer>
  74. <?php comments_template('', true);?>
  75.  
  76. </article> <!-- /.post -->
  77.  
  78. <?php echo $td_mod_single->related_posts();?>
  79.  
  80. <?php
  81. } else {
  82. //no posts
  83. echo td_page_generator::no_posts();
  84. }?>
Advertisement
Add Comment
Please, Sign In to add comment