Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Template Name: Home
- */
- ?>
- <?php
- get_header('home');
- //set the template id, used to get the template specific settings - this was the old home.php template
- $template_id = 'home';
- //prepare the loop variables
- global $loop_module_id, $loop_sidebar_position;
- $loop_module_id = td_util::get_option('tds_' . $template_id . '_page_layout', 15); //module 1 is default
- $loop_sidebar_position = td_util::get_option('tds_' . $template_id . '_sidebar_pos'); //sidebar right is default (empty)
- // sidebar position used to align the breadcrumb on sidebar left + sidebar first on mobile issue
- $td_sidebar_position = '';
- if($loop_sidebar_position == 'sidebar_left') {
- $td_sidebar_position = 'td-sidebar-left';
- }
- ?>
- <?php if ( have_posts() ) ?>
- <?php while ( have_posts() ) : the_post(); ?>
- <div class="td-container">
- <div class="td-container-border">
- <?php the_content(); ?>
- </div>
- </div>
- <?php endwhile; ?>
- <?php
- get_footer();
Advertisement
Add Comment
Please, Sign In to add comment