Guest User

Untitled

a guest
May 19th, 2018
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.79 KB | None | 0 0
  1. <?php
  2. get_header();
  3. $wl_theme_options = get_option('enigma_options_pro');
  4. if ($wl_theme_options['front_page']=="on" && is_front_page())
  5. { // Front page content
  6. if($wl_theme_options['slider_shrtcode']!=''){
  7. echo do_shortcode( $wl_theme_options['slider_shrtcode'] );
  8. }
  9. else {
  10. get_template_part('home','slider');
  11. }
  12. if ( is_active_sidebar( 'google-widget-area' ) )
  13. { dynamic_sidebar( 'google-widget-area' ); }
  14. get_template_part('slide_customjs');
  15. $data = $wl_theme_options['home_page_layout'];
  16. if($data)
  17. { foreach($data as $key=>$value)
  18. { switch($value)
  19. { case 'service':
  20. //****** get home service ********
  21. get_template_part('home', 'services');
  22. break;
  23.  
  24. case 'extra':
  25. //****** get home service ********
  26. get_template_part('home', 'extra');
  27. break;
  28. case 'portfolio':
  29. //****** get home project ********
  30. get_template_part('home', 'portfolio');
  31. break;
  32.  
  33. case 'blog':
  34. //****** get home blog ********
  35. get_template_part('home', 'blog');
  36. break;
  37.  
  38. case 'testimonial':
  39. //****** get home testimonial********
  40. get_template_part('home', 'testimonial');
  41. break;
  42.  
  43. case 'client':
  44. //****** get home client ********
  45. get_template_part('home', 'client');
  46. break;
  47.  
  48. case 'calloutarea':
  49. //****** get home client ********
  50. get_template_part('home', 'calloutarea');
  51. break;
  52. }
  53. }
  54. }
  55. get_footer();
  56. } else {
  57. if(get_page_template_slug( get_the_ID() )) {
  58. $temp_name= get_page_template_slug( get_the_ID() );
  59. $temp_name =str_replace('.php', '', $temp_name);
  60. get_template_part( $temp_name );
  61. } else {
  62. get_template_part( 'page' );
  63. }
  64. }
  65. ?>
Add Comment
Please, Sign In to add comment