Guest User

Untitled

a guest
Mar 5th, 2018
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.93 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')) {
  10. get_template_part('index');
  11. } else {
  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. get_template_part('index', 'slider');
  16. $data = is_array($current_options['front_page_data']) ? $current_options['front_page_data'] : explode(",", $current_options['front_page_data']);
  17. if ($data) {
  18. foreach ($data as $key => $value) {
  19. switch ($value) {
  20. case 'service':
  21. //****** get index service ********
  22. get_template_part('index', 'service');
  23. break;
  24.  
  25. case 'portfolio':
  26. //****** get index project ********
  27. get_template_part('index', 'portfolio');
  28. break;
  29.  
  30. case 'testimonials':
  31. //****** get index testimonials ********
  32. get_template_part('index', 'testimonials');
  33. break;
  34.  
  35. case 'blog':
  36. //****** get index recent blog ********
  37. get_template_part('index', 'blog');
  38. break;
  39.  
  40. case 'features':
  41. //****** get index Features Section ********
  42. get_template_part('index', 'features');
  43. break;
  44.  
  45. case 'client':
  46. //****** get index client ********
  47. get_template_part('index', 'client');
  48. break;
  49. }
  50. }
  51. ?>
  52.  
  53.  
  54. <?php
  55. if ($current_options['contact_google_map_enabled'] == "on") {
  56. $mapsrc = $current_options['contact_google_map_url'];
  57. $mapsrc = $mapsrc . '&amp;output=embed';
  58. ?>
  59.  
  60. <style>
  61. .custom-margin-top1{
  62. margin-top: 0px !important;
  63. }
  64. </style>
  65. <div class="qua_contact_area custom-margin-top1">
  66. <div class="google-map-title">
  67. <?php if ($current_options['contact_google_map_title']) { ?>
  68. <h1><?php echo $current_options['contact_google_map_title']; ?></h1>
  69. <?php } ?>
  70. </div>
  71. <div class="qua_google_map">
  72. <iframe width="100%" scrolling="no" height="500" frameborder="0" src="<?php echo esc_url($mapsrc); ?>" marginwidth="0" marginheight="0"></iframe>
  73. </div>
  74. </div> <!-- /Location Map Section -->
  75. <?php } ?>
  76.  
  77.  
  78. <?php
  79. get_footer();
  80. }
  81. }
  82. ?>
Add Comment
Please, Sign In to add comment