Guest User

Untitled

a guest
Jun 26th, 2014
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 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. ?>
  14.  
  15.  
  16. <?php
  17. // override the default featured image by the templates (single.php and home.php/index.php - blog loop)
  18. if (!empty(td_global::$load_featured_img_from_template)) {
  19. echo $td_mod_single->get_image(td_global::$load_featured_img_from_template);
  20. } else {
  21. echo $td_mod_single->get_image('featured-image');
  22. }
  23. ?>
  24.  
  25. <div class="td-post-text-content">
  26. <?php echo $td_mod_single->get_content();?>
  27. </div>
  28.  
  29.  
  30. <div class="clearfix"></div>
  31.  
  32. <footer>
  33. <?php echo $td_mod_single->get_post_pagination();?>
  34. <?php echo $td_mod_single->get_review();?>
  35. <?php echo $td_mod_single->get_source_and_via();?>
  36. <?php echo $td_mod_single->get_social_sharing();?>
  37. <?php echo $td_mod_single->get_social_like_tweet();?>
  38. <?php echo $td_mod_single->get_next_prev_posts();?>
  39. <?php echo $td_mod_single->get_author_box();?>
  40.  
  41.  
  42. <?php echo $td_mod_single->get_item_scope_meta();?>
  43. </footer>
  44.  
  45. <?php echo $td_mod_single->related_posts();?>
  46.  
  47. <?php
  48. } else {
  49. //no posts
  50. echo td_page_generator::no_posts();
  51. }?>
Advertisement
Add Comment
Please, Sign In to add comment