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(); ?>
- <div class="page-mycarousel" style='background: url("<?php echo( get_header_image() ); ?>") repeat scroll center 0 #143745;'>
- <div class="page-title-col">
- <div class="container">
- <div class="row">
- <div class="page-header-title">
- <h1><?php the_title(); ?></h1>
- </div>
- </div>
- </div>
- <?php get_template_part('index', 'banner'); ?>
- </div>
- </div>
- <?php
- 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;
- }
- }
- get_footer();
- } }
- ?>
Add Comment
Please, Sign In to add comment