Guest User

Untitled

a guest
Apr 29th, 2016
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.57 KB | None | 0 0
  1. <?php
  2. /**
  3. * The single post loop Default template
  4. **/
  5.  
  6. if (have_posts()) {
  7. the_post();
  8.  
  9. $td_mod_single = new td_module_single($post);
  10.  
  11. ?>
  12.  
  13.  
  14. <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();?>>
  15. <div class="td-post-header td-pb-padding-side">
  16. <?php echo td_page_generator::get_single_breadcrumbs($td_mod_single->title); ?>
  17.  
  18. <?php echo $td_mod_single->get_category(); ?>
  19.  
  20. <header>
  21. <?php echo $td_mod_single->get_title();?>
  22.  
  23.  
  24. <?php if (!empty($td_mod_single->td_post_theme_settings['td_subtitle'])) { ?>
  25. <p class="td-post-sub-title"><?php echo $td_mod_single->td_post_theme_settings['td_subtitle'];?></p>
  26. <?php } ?>
  27.  
  28.  
  29. <div class="meta-info">
  30.  
  31. <?php echo $td_mod_single->get_author();?>
  32. <?php echo $td_mod_single->get_date(false);?>
  33. <?php echo $td_mod_single->get_views();?>
  34. <?php echo $td_mod_single->get_comments();?>
  35. </div>
  36. </header>
  37.  
  38.  
  39. </div>
  40.  
  41. <?php echo $td_mod_single->get_social_sharing_top();?>
  42.  
  43.  
  44.  
  45. <?php
  46. // override the default featured image by the templates (single.php and home.php/index.php - blog loop)
  47. if (!empty(td_global::$load_featured_img_from_template)) {
  48. echo $td_mod_single->get_image(td_global::$load_featured_img_from_template);
  49. } else {
  50. echo $td_mod_single->get_image('td_681x0');
  51. }
  52. ?>
  53.  
  54. <div class="td-post-content td-pb-padding-side">
  55. <?php echo $td_mod_single->get_content();?>
  56. </div>
  57.  
  58.  
  59. <footer>
  60. <?php echo $td_mod_single->get_post_pagination();?>
  61. <?php echo $td_mod_single->get_review();?>
  62.  
  63. <div class="td-post-source-tags td-pb-padding-side">
  64. <?php echo $td_mod_single->get_source_and_via();?>
  65. <?php echo $td_mod_single->get_the_tags();?>
  66. </div>
  67.  
  68. <?php echo $td_mod_single->get_social_sharing_bottom();?>
  69. <?php echo $td_mod_single->get_next_prev_posts();?>
  70. <?php echo $td_mod_single->get_author_box();?>
  71. <?php echo $td_mod_single->get_item_scope_meta();?>
  72. </footer>
  73.  
  74. </article> <!-- /.post -->
  75.  
  76. <?php echo $td_mod_single->related_posts();?>
  77.  
  78. <?php
  79. } else {
  80. //no posts
  81. echo td_page_generator::no_posts();
  82. }
Advertisement
Add Comment
Please, Sign In to add comment