Guest User

Untitled

a guest
Feb 16th, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.96 KB | None | 0 0
  1. <?php
  2. /*
  3. * Template Name: Home
  4. */
  5.  
  6. $current_options = wp_parse_args( get_option( 'busiprof_pro_theme_options', array() ), theme_data_setup() );
  7.  
  8. if('page' == get_option('show_on_front')){ get_template_part('index');}
  9. else
  10. {
  11. get_header();
  12.  
  13. $data = array();
  14.  
  15. $data[] = $current_options['busi_layout_section1'];
  16.  
  17. $data[] = $current_options['busi_layout_section2'];
  18.  
  19. $data[] = $current_options['busi_layout_section3'];
  20.  
  21. $data[] = $current_options['busi_layout_section4'];
  22.  
  23. $data[] = $current_options['busi_layout_section5'];
  24.  
  25. $data[] = $current_options['busi_layout_section6'];
  26.  
  27. $data[] = $current_options['busi_layout_section7'];
  28.  
  29.  
  30. if($data)
  31. {
  32. foreach($data as $key=>$value)
  33. {
  34. switch($value)
  35. {
  36.  
  37. case 'slider':
  38.  
  39. /*====== get slider template ======*/
  40.  
  41. get_template_part('index', 'slider') ;
  42.  
  43. break;
  44.  
  45. case 'Service Section':
  46.  
  47. /*====== get service template ======*/
  48.  
  49. get_template_part('index', 'service');
  50.  
  51.  
  52. break;
  53.  
  54.  
  55. case 'Project Section':
  56.  
  57. /*====== get index project ======*/
  58.  
  59. get_template_part('index', 'project');
  60.  
  61. break;
  62.  
  63.  
  64. case 'Blog Section':
  65.  
  66. /*====== get index blog ======*/
  67.  
  68. get_template_part('index', 'blog');
  69.  
  70. break;
  71.  
  72. case 'Team Section':
  73.  
  74. /*====== get index team ======*/
  75.  
  76. get_template_part('index', 'team');
  77.  
  78. break;
  79.  
  80.  
  81. case 'Testimonials Section':
  82.  
  83. /*====== get testimonial template ======*/
  84.  
  85. get_template_part('index', 'testimonials');
  86.  
  87. break;
  88.  
  89. case 'Client Strip':
  90.  
  91. /*====== get client template ======*/
  92.  
  93. get_template_part('index', 'clientstrip');
  94.  
  95. break;
  96. }
  97. }
  98. }
  99.  
  100. get_footer();
  101. }
Add Comment
Please, Sign In to add comment