Skip to content

Instantly share code, notes, and snippets.

Created March 19, 2018 06:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/4db9aa8f0dc29eca79947ede5e2cb6d2 to your computer and use it in GitHub Desktop.
Save anonymous/4db9aa8f0dc29eca79947ede5e2cb6d2 to your computer and use it in GitHub Desktop.
<?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