ozonewebs

single_template_1.php:

May 19th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.85 KB | None | 0 0
  1. <?php
  2. // Template 1 - post-final-1.psd - featured image float left
  3. //get the global sidebar position from td_single_template_vars.php
  4.  
  5. locate_template('includes/wp_booster/td_single_template_vars.php', true);
  6.  
  7. get_header();
  8.  
  9. global $loop_sidebar_position, $td_sidebar_position, $post;
  10.  
  11. $td_mod_single = new td_module_single($post);
  12.  
  13. ?>
  14. <div class="td-main-content-wrap">
  15.  
  16. <div class="td-container td-post-template-1 <?php echo $td_sidebar_position; ?>">
  17. <div class="td-crumb-container"><?php echo td_page_generator::get_single_breadcrumbs($td_mod_single->title); ?></div>
  18. <div class="td-pb-row">
  19. <?php
  20.  
  21. //the default template
  22. switch ($loop_sidebar_position) {
  23. default:
  24. ?>
  25. <div class="td-pb-span8 td-main-content" role="main">
  26. <div class="td-ss-main-content">
  27. <?php
  28. locate_template('loop-single-1.php', true);
  29.  
  30. ?>
  31. </div>
  32. </div>
  33. <div class="td-pb-span4 td-main-sidebar" role="complementary">
  34. <div class="td-ss-main-sidebar">
  35. <?php get_sidebar(); ?>
  36. </div>
  37. </div>
  38. <?php
  39. break;
  40.  
  41. case 'sidebar_left':
  42. ?>
  43. <div class="td-pb-span8 td-main-content <?php echo $td_sidebar_position; ?>-content" role="main">
  44. <div class="td-ss-main-content">
  45. <?php
  46. locate_template('loop-single-1.php', true);
  47.  
  48. ?>
  49. </div>
  50. </div>
  51. <div class="td-pb-span4 td-main-sidebar" role="complementary">
  52. <div class="td-ss-main-sidebar">
  53. <?php get_sidebar(); ?>
  54. </div>
  55. </div>
  56. <?php
  57. break;
  58.  
  59. case 'no_sidebar':
  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-1.php', true);
  65.  
  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