Advertisement
Guest User

Nevada - page.php

a guest
Oct 24th, 2012
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. The code from my page.php file is:
  2.  
  3. <?php
  4. /**
  5. * The template for displaying all pages.
  6. *
  7. * lambda framework v 2.1
  8. * by www.unitedthemes.com
  9. * since lambda framework v 1.0
  10. */
  11.  
  12. global $lambda_meta_data;
  13.  
  14. $meta_sidebar = $lambda_meta_data->get_the_value('sidebar');
  15. $meta_sidebar = (!empty( $meta_sidebar )) ? $meta_sidebar : get_option_tree( 'select_sidebar' );
  16.  
  17. //includes the header.php
  18. get_header();
  19.  
  20. //includes the template-part-slider.php
  21. get_template_part( 'template-part', 'slider' );
  22.  
  23. //includes the template-part-teaser.php
  24. get_template_part( 'template-part', 'teaser' );
  25.  
  26. //set column layout depending if user wants to display a sidebar
  27. if($meta_sidebar != UT_THEME_INITIAL.'sidebar_none') {
  28.  
  29. lambda_before_content($columns='');
  30.  
  31. } elseif($meta_sidebar == UT_THEME_INITIAL.'sidebar_none') {
  32.  
  33. lambda_before_content($columns='sixteen');
  34.  
  35. }
  36.  
  37. //the content loop
  38. get_template_part( 'loop', 'page' );
  39.  
  40. //content closer - this function can be found in functions/theme-layout-functions.php line 56-61
  41. lambda_after_content();
  42.  
  43. //include the sidebar-page.php
  44. if(empty($columns))
  45. get_sidebar();
  46.  
  47. //includes the footer.php
  48. get_footer();
  49. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement