Guest User

Untitled

a guest
Oct 3rd, 2017
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. <?php
  2. if('page' == get_option('show_on_front')){ get_template_part('index');}
  3. else
  4. {
  5. $current_option = wp_parse_args( get_option('appointment_options',array()),theme_setup_data());
  6. get_header();
  7. //****** Orange Sidebar Area ********
  8. get_sidebar('orange');
  9. get_template_part('index','slider');
  10. $data =is_array($current_option['front_page_data']) ? $current_option['front_page_data'] : explode(",",$current_option['front_page_data']);
  11. if($data)
  12. {
  13. foreach($data as $key=>$value)
  14. {
  15. get_sidebar('orange');
  16. switch($value)
  17. {
  18. case 'service':
  19. //****** get index service ********
  20. get_template_part('index', 'service');
  21. break;
  22.  
  23. case 'home-callout':
  24. //****** get Home call out
  25. get_template_part('index','home-callout');
  26. break;
  27.  
  28.  
  29. case 'portfolio':
  30. //****** get index portfolio ********
  31. get_template_part('index', 'portfolio');
  32. break;
  33.  
  34. case 'testimonial':
  35. //****** get index testimonial ********
  36. get_template_part('index', 'testimonial');
  37. break;
  38.  
  39. case 'latest-news':
  40. //****** get index News ********
  41. get_template_part('index', 'news');
  42. break;
  43.  
  44. case 'client':
  45. //****** get index client ********
  46. get_template_part('index', 'client');
  47. break;
  48.  
  49. case 'footer-callout':
  50. //****** get index footer-callout ********
  51. get_template_part('index', 'footer-callout');
  52. break;
  53.  
  54. }
  55. }
  56. //}
  57. get_footer();
  58. } }
  59. ?>
Add Comment
Please, Sign In to add comment