Guest User

Untitled

a guest
Aug 16th, 2018
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1. <?php /**
  2. Template Name: Home Page
  3. */
  4. $elitepress_lite_options=theme_data_setup();
  5. $current_options = wp_parse_args( get_option( 'elitepress_lite_options', array() ), $elitepress_lite_options );
  6. get_header();
  7. //get_template_part('index', 'slider');
  8. $data =is_array($current_options['front_page_data']) ? $current_options['front_page_data'] : explode(",",$current_options['front_page_data']);
  9. if($data)
  10. {
  11. foreach($data as $key=>$value)
  12. {
  13. switch($value)
  14. {
  15. case 'top-call-out-section':
  16. //****** get index top call out section ********
  17. get_template_part('index', 'top-call-out-section');
  18. break;
  19.  
  20. case 'service':
  21. //****** get index service ********
  22. get_template_part('index', 'service');
  23. get_template_part('index', 'slider');
  24. break;
  25.  
  26. case 'portfolio':
  27. //****** get index portfolio ********
  28. get_template_part('index', 'portfolio');
  29. break;
  30.  
  31. case 'testimonial':
  32. //****** get index testimonial ********
  33. get_template_part('index', 'testimonial');
  34. break;
  35.  
  36. case 'blog':
  37. //****** get index blog ********
  38. get_template_part('index', 'blog');
  39. break;
  40.  
  41. case 'client':
  42. //****** get index client ********
  43. get_template_part('index', 'client');
  44. break;
  45.  
  46. case 'contact':
  47. //****** get index contact ********
  48. get_template_part('index', 'contact');
  49. break;
  50. }
  51. }
  52. get_footer();
  53. }
  54. ?>
Add Comment
Please, Sign In to add comment