Guest User

index.php

a guest
Oct 24th, 2012
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.28 KB | None | 0 0
  1. <?php
  2.  
  3. /* Main Template File
  4.  *
  5.  * lambda framework v 2.1
  6.  * by www.unitedthemes.com
  7.  * since lambda framework v 2.0
  8.  */
  9. global $lambda_meta_data;
  10.  
  11. if(is_home()) {
  12.            
  13.     $homeid = get_option('page_for_posts');  
  14.     $meta_sidebar = get_post_meta($homeid, $lambda_meta_data->get_the_id(), TRUE);
  15.                    
  16. } else {
  17.        
  18.     $meta_sidebar = $lambda_meta_data->the_meta();
  19.        
  20. }
  21. $meta_sidebar = (isset($meta_sidebar['sidebar'])) ? $meta_sidebar['sidebar'] : get_option_tree('select_sidebar');
  22.  
  23. //includes the header.php
  24. get_header();
  25.  
  26. //includes the template-part-slider.php
  27. get_template_part( 'template-part', 'slider' );
  28.  
  29. //includes the template-part-teaser.php
  30. get_template_part( 'template-part', 'teaser' );
  31.  
  32. //set column layout depending if user wants to display a sidebar
  33. if($meta_sidebar != UT_THEME_INITIAL.'sidebar_none') {
  34.  
  35.     lambda_before_content($columns='');
  36.    
  37. } elseif($meta_sidebar == UT_THEME_INITIAL.'sidebar_none') {
  38.    
  39.     lambda_before_content($columns='sixteen');
  40.    
  41. }
  42.  
  43. //the content loop
  44. get_template_part( 'loop', 'index' );
  45.  
  46. //content closer - this function can be found in functions/theme-layout-functions.php line 56-61
  47. lambda_after_content();
  48.  
  49. //include the sidebar.php
  50. if(empty($columns))
  51. get_sidebar();
  52.  
  53. //includes the footer.php
  54. get_footer();
  55.  
  56. ?>
Advertisement
Add Comment
Please, Sign In to add comment