Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * @Theme Name : wallstreet-Pro
- * @file : front-page.php
- * @package : wallstreet-Pro
- @author : webriti
- * @filesource : wp-content/themes/wallstreet/front-page.php
- */
- if ('page' == get_option('show_on_front')) {
- get_template_part('index');
- } else {
- $wallstreet_pro_options = theme_data_setup();
- $current_options = wp_parse_args(get_option('wallstreet_pro_options', array()), $wallstreet_pro_options);
- get_header();
- get_template_part('index', 'slider');
- $data = is_array($current_options['front_page_data']) ? $current_options['front_page_data'] : explode(",", $current_options['front_page_data']);
- if ($data) {
- foreach ($data as $key => $value) {
- switch ($value) {
- case 'service':
- //****** get index service ********
- get_template_part('index', 'service');
- break;
- case 'portfolio':
- //****** get index project ********
- get_template_part('index', 'portfolio');
- break;
- case 'testimonials':
- //****** get index testimonials ********
- get_template_part('index', 'testimonials');
- break;
- case 'blog':
- //****** get index recent blog ********
- get_template_part('index', 'blog');
- break;
- case 'features':
- //****** get index Features Section ********
- get_template_part('index', 'features');
- break;
- case 'client':
- //****** get index client ********
- get_template_part('index', 'client');
- break;
- }
- }
- ?>
- <?php
- if ($current_options['contact_google_map_enabled'] == "on") {
- $mapsrc = $current_options['contact_google_map_url'];
- $mapsrc = $mapsrc . '&output=embed';
- ?>
- <style>
- .custom-margin-top1{
- margin-top: 0px !important;
- }
- </style>
- <div class="qua_contact_area custom-margin-top1">
- <div class="google-map-title">
- <?php if ($current_options['contact_google_map_title']) { ?>
- <h1><?php echo $current_options['contact_google_map_title']; ?></h1>
- <?php } ?>
- </div>
- <div class="qua_google_map">
- <iframe width="100%" scrolling="no" height="500" frameborder="0" src="<?php echo esc_url($mapsrc); ?>" marginwidth="0" marginheight="0"></iframe>
- </div>
- </div> <!-- /Location Map Section -->
- <?php } ?>
- <?php
- get_footer();
- }
- }
- ?>
Add Comment
Please, Sign In to add comment