Guest User

Untitled

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