Guest User

Untitled

a guest
Jun 24th, 2015
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.12 KB | None | 0 0
  1. <?php
  2.  
  3. td_global::$current_template = 'woo-single';
  4.  
  5.  
  6. get_header();
  7.  
  8. //set the template id, used to get the template specific settings
  9. $template_id = 'woo-single';
  10.  
  11.  
  12. $loop_sidebar_position = td_util::get_option('tds_' . $template_id . '_single_sidebar_pos'); //sidebar right is default (empty)
  13.  
  14.  
  15.  
  16. // sidebar position used to align the breadcrumb on sidebar left + sidebar first on mobile issue
  17. $td_sidebar_position = '';
  18. if($loop_sidebar_position == 'sidebar_left') {
  19. $td_sidebar_position = 'td-sidebar-left';
  20. }
  21.  
  22. ?>
  23. <div class="td-main-content-wrap td-main-page-wrap">
  24. <div class="td-container">
  25. <div class="td-pb-row">
  26. <?php
  27. switch ($loop_sidebar_position) {
  28. case 'sidebar_left':
  29. ?>
  30. <div class="td-pb-span8 td-main-content <?php echo $td_sidebar_position; ?>-content" role="main" itemscope="itemscope" itemprop="mainContentOfPage" itemtype="<?php echo td_global::$http_or_https?>://schema.org/CreativeWork">
  31. <div class="td-ss-main-content">
  32. <?php
  33. woocommerce_breadcrumb();
  34. woocommerce_content();
  35. ?>
  36. </div>
  37. </div>
  38. <div class="td-pb-span4 td-main-sidebar" role="complementary">
  39. <div class="td-ss-main-sidebar">
  40. <?php get_sidebar(); ?>
  41. </div>
  42. </div>
  43. <?php
  44. break;
  45.  
  46. case 'no_sidebar':
  47. ?>
  48. <div class="td-pb-span12 td-main-content" role="main" itemscope="itemscope" itemprop="mainContentOfPage" itemtype="<?php echo td_global::$http_or_https?>://schema.org/CreativeWork">
  49. <div class="td-ss-main-content">
  50. <?php
  51. woocommerce_breadcrumb();
  52. woocommerce_content();
  53. ?>
  54. </div>
  55. </div>
  56. <?php
  57. break;
  58.  
  59.  
  60. default:
  61. ?>
  62. <div class="td-pb-span12 td-main-content" role="main" itemscope="itemscope" itemprop="mainContentOfPage" itemtype="<?php echo td_global::$http_or_https?>://schema.org/CreativeWork">
  63. <div class="td-ss-main-content">
  64. <?php
  65. woocommerce_breadcrumb();
  66. woocommerce_content();
  67. ?>
  68. </div>
  69. </div>
  70.  
  71. <?php
  72. break;
  73. }?>
  74. </div>
  75. </div>
  76. </div> <!-- /.td-main-content-wrap -->
  77.  
  78. <?php
  79. get_footer();
  80. ?>
Advertisement
Add Comment
Please, Sign In to add comment