Guest User

Untitled

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