Created
March 19, 2018 06:37
-
-
Save anonymous/4db9aa8f0dc29eca79947ede5e2cb6d2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Template Name: Front Page | |
* | |
* This is the static homepage of this theme. Will be rendered when user select such a page whose | |
* page template is home in static front page setting. | |
* @since Bizplan Pro 1.0 | |
*/ | |
get_header(); | |
$biz_templates = Bizplan_Front_Page_Section_Order::get_instance()->get_sections(); | |
foreach( $biz_templates as $template ){ | |
if ( $template == 'slider' && true == bizplan_get_option( 'disable_'.$template ) ) { | |
bizplan_inner_banner(); | |
} | |
if( !bizplan_get_option( 'disable_'.$template ) ){ | |
get_template_part( 'template-parts/front-page/front-page',$template ); | |
} | |
} | |
get_footer(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment