Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Template Name: Custom Home Page
- */
- $rambo_pro_theme_options=theme_data_setup();
- $current_options = wp_parse_args( get_option( 'rambo_pro_theme_options', array() ), $rambo_pro_theme_options );
- $data =is_array($current_options['front_page_data']) ? $current_options['front_page_data'] : explode(",",$current_options['front_page_data']);
- get_header();
- get_template_part('index','slider');
- if($data)
- {
- foreach($data as $key=>$value)
- {
- switch($value)
- {
- case 'Theme-Introduction-Top':
- get_template_part('index', 'theme-introduction-top');
- break;
- case 'Service Section':
- /****** get index service ********/
- get_template_part('index', 'service') ;
- break;
- case 'Project Portfolio':
- /****** get index project ********/
- get_template_part('index', 'project');
- break;
- /****** get index recent blog ********/
- case 'Call Out Area':
- get_template_part('index', 'theme-introduction');
- break;
- case 'Latest News':
- /****** get index recent blog ********/
- echo '<div class="for_mobile">';
- get_template_part('index', 'recentblog');
- echo '</div>';
- break;
- }
- }
- }
- get_footer();
- ?>
Add Comment
Please, Sign In to add comment