Guest User

Untitled

a guest
Jul 13th, 2017
44
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. * @Theme Name : wallstreet-Pro
  4. * @file : front-page.php
  5. * @package : wallstreet-Pro
  6. @author : webriti
  7. * @filesource : wp-content/themes/wallstreet/front-page.php
  8. */
  9. if('page' == get_option('show_on_front')){ get_template_part('index');}
  10. else
  11. {
  12. $wallstreet_pro_options=theme_data_setup();
  13. $current_options = wp_parse_args( get_option( 'wallstreet_pro_options', array() ), $wallstreet_pro_options );
  14. get_header(); ?>
  15.  
  16. <div class="page-mycarousel" style='background: url("<?php echo( get_header_image() ); ?>") repeat scroll center 0 #143745;'>
  17. <div class="page-title-col">
  18. <div class="container">
  19. <div class="row">
  20. <div class="page-header-title">
  21. <h1><?php the_title(); ?></h1>
  22. </div>
  23. </div>
  24. </div>
  25. <?php get_template_part('index', 'banner'); ?>
  26. </div>
  27. </div>
  28.  
  29. <?php
  30. get_template_part('index','slider');
  31. $data = is_array($current_options['front_page_data']) ? $current_options['front_page_data'] : explode(",",$current_options['front_page_data']);
  32. if($data)
  33. {
  34. foreach($data as $key=>$value)
  35. {
  36. switch($value)
  37. {
  38. case 'service':
  39. //****** get index service ********
  40. get_template_part('index', 'service');
  41. break;
  42.  
  43. case 'portfolio':
  44. //****** get index project ********
  45. get_template_part('index', 'portfolio');
  46. break;
  47.  
  48. case 'testimonials':
  49. //****** get index testimonials ********
  50. get_template_part('index', 'testimonials');
  51. break;
  52.  
  53. case 'blog':
  54. //****** get index recent blog ********
  55. get_template_part('index', 'blog');
  56. break;
  57.  
  58. case 'features':
  59. //****** get index Features Section ********
  60. get_template_part('index', 'features');
  61. break;
  62.  
  63. case 'client':
  64. //****** get index client ********
  65. get_template_part('index', 'client');
  66. break;
  67. }
  68. }
  69.  
  70. get_footer();
  71. } }
  72. ?>
Add Comment
Please, Sign In to add comment