Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- The code from my page.php file is:
- <?php
- /**
- * The template for displaying all pages.
- *
- * lambda framework v 2.1
- * by www.unitedthemes.com
- * since lambda framework v 1.0
- */
- global $lambda_meta_data;
- $meta_sidebar = $lambda_meta_data->get_the_value('sidebar');
- $meta_sidebar = (!empty( $meta_sidebar )) ? $meta_sidebar : get_option_tree( 'select_sidebar' );
- //includes the header.php
- get_header();
- //includes the template-part-slider.php
- get_template_part( 'template-part', 'slider' );
- //includes the template-part-teaser.php
- get_template_part( 'template-part', 'teaser' );
- //set column layout depending if user wants to display a sidebar
- if($meta_sidebar != UT_THEME_INITIAL.'sidebar_none') {
- lambda_before_content($columns='');
- } elseif($meta_sidebar == UT_THEME_INITIAL.'sidebar_none') {
- lambda_before_content($columns='sixteen');
- }
- //the content loop
- get_template_part( 'loop', 'page' );
- //content closer - this function can be found in functions/theme-layout-functions.php line 56-61
- lambda_after_content();
- //include the sidebar-page.php
- if(empty($columns))
- get_sidebar();
- //includes the footer.php
- get_footer();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement