Guest User

Untitled

a guest
May 3rd, 2016
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. <?php
  2. /*
  3. Template Name: Custom Home Page
  4. */
  5. $rambo_pro_theme_options=theme_data_setup();
  6. $current_options = wp_parse_args( get_option( 'rambo_pro_theme_options', array() ), $rambo_pro_theme_options );
  7. $data =is_array($current_options['front_page_data']) ? $current_options['front_page_data'] : explode(",",$current_options['front_page_data']);
  8. get_header();
  9. get_template_part('index','slider');
  10. if($data)
  11. {
  12. foreach($data as $key=>$value)
  13. {
  14. switch($value)
  15. {
  16. case 'Theme-Introduction-Top':
  17. get_template_part('index', 'theme-introduction-top');
  18. break;
  19.  
  20. case 'Service Section':
  21. /****** get index service ********/
  22. get_template_part('index', 'service') ;
  23. break;
  24.  
  25. case 'Project Portfolio':
  26. /****** get index project ********/
  27. get_template_part('index', 'project');
  28. break;
  29.  
  30.  
  31.  
  32. /****** get index recent blog ********/
  33. case 'Call Out Area':
  34. get_template_part('index', 'theme-introduction');
  35. break;
  36.  
  37. case 'Latest News':
  38. /****** get index recent blog ********/
  39. echo '<div class="for_mobile">';
  40. get_template_part('index', 'recentblog');
  41. echo '</div>';
  42. break;
  43.  
  44. }
  45. }
  46. }
  47. get_footer();
  48. ?>
Add Comment
Please, Sign In to add comment