Guest User

Untitled

a guest
Nov 13th, 2015
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. <?php
  2. /*
  3. Template Name: Home
  4. */
  5. ?>
  6. <?php
  7.  
  8. get_header('home');
  9.  
  10. //set the template id, used to get the template specific settings - this was the old home.php template
  11. $template_id = 'home';
  12.  
  13. //prepare the loop variables
  14. global $loop_module_id, $loop_sidebar_position;
  15. $loop_module_id = td_util::get_option('tds_' . $template_id . '_page_layout', 15); //module 1 is default
  16. $loop_sidebar_position = td_util::get_option('tds_' . $template_id . '_sidebar_pos'); //sidebar right is default (empty)
  17.  
  18. // sidebar position used to align the breadcrumb on sidebar left + sidebar first on mobile issue
  19. $td_sidebar_position = '';
  20. if($loop_sidebar_position == 'sidebar_left') {
  21. $td_sidebar_position = 'td-sidebar-left';
  22. }
  23. ?>
  24.  
  25.  
  26. <?php if ( have_posts() ) ?>
  27. <?php while ( have_posts() ) : the_post(); ?>
  28. <div class="td-container">
  29. <div class="td-container-border">
  30. <?php the_content(); ?>
  31. </div>
  32. </div>
  33. <?php endwhile; ?>
  34.  
  35. <?php
  36.  
  37. get_footer();
Advertisement
Add Comment
Please, Sign In to add comment