Advertisement
aafable

Untitled

Aug 20th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.99 KB | None | 0 0
  1. <?php
  2.  
  3. locate_template('includes/wp_booster/td_single_template_vars.php', true);
  4.  
  5. get_header();
  6.  
  7. global $loop_module_id, $loop_sidebar_position, $post, $td_sidebar_position;
  8.  
  9. $td_mod_single = new td_module_single($post);
  10.  
  11. ?>
  12. <div class="td-main-content-wrap td-container-wrap">
  13.  
  14. <div class="td-container td-post-template-default <?php echo $td_sidebar_position; ?>">
  15. <div class="td-crumb-container"><?php echo td_page_generator::get_single_breadcrumbs($td_mod_single->title); ?></div>
  16.  
  17. <div class="td-pb-row">
  18. <?php
  19.  
  20. //the default template
  21. switch ($loop_sidebar_position) {
  22. default: //sidebar right
  23. ?>
  24. <div class="td-pb-span8 td-main-content" role="main">
  25. <div class="td-ss-main-content">
  26. <?php
  27. locate_template('loop-single.php', true);
  28. comments_template('', true);
  29. ?>
  30. </div>
  31. </div>
  32. <div class="td-pb-span4 td-main-sidebar" role="complementary">
  33. <div class="td-ss-main-sidebar">
  34. <?php get_sidebar(); ?>
  35. </div>
  36. </div>
  37. <?php
  38. break;
  39.  
  40. case 'sidebar_left':
  41. ?>
  42. <div class="td-pb-span8 td-main-content <?php echo $td_sidebar_position; ?>-content" role="main">
  43. <div class="td-ss-main-content">
  44. <?php
  45. locate_template('loop-single.php', true);
  46. comments_template('', true);
  47. ?>
  48. </div>
  49. </div>
  50. <div class="td-pb-span4 td-main-sidebar" role="complementary">
  51. <div class="td-ss-main-sidebar">
  52. <?php get_sidebar(); ?>
  53. </div>
  54. </div>
  55. <?php
  56. break;
  57.  
  58. case 'no_sidebar':
  59. td_global::$load_featured_img_from_template = 'td_980x0';
  60. ?>
  61. <div class="td-pb-span12 td-main-content" role="main">
  62. <div class="td-ss-main-content">
  63. <?php
  64. locate_template('loop-single.php', true);
  65. comments_template('', true);
  66. ?>
  67. </div>
  68. </div>
  69. <?php
  70. break;
  71.  
  72. }
  73. ?>
  74. </div> <!-- /.td-pb-row -->
  75. </div> <!-- /.td-container -->
  76. </div> <!-- /.td-main-content-wrap -->
  77.  
  78. <?php
  79.  
  80. get_footer();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement