ID); $current_page_id = $page->ID; $page_slider = get_post_meta($current_page_id, 'page_slider', true); global $redux_demo; $homeLayout = $redux_demo['opt-homepage-layout-v2']['enabled']; if ($homeLayout): foreach ($homeLayout as $key=>$value) { switch($key) { case 'layerslider': get_template_part('templates/slider/sliderv1'); break; case 'searchv2': get_template_part( 'templates/searchbar/searchstyle2' ); break; case 'googlemap': get_template_part( 'templates/slider/classiera-header-map' ); break; case 'premiumslider': get_template_part( 'templates/premium/premiumv2' ); break; case 'categories': get_template_part( 'templates/category/catstyle2' ); break; case 'advertisement': get_template_part( 'templates/adv/advstyle2' ); break; case 'customads': get_template_part( 'templates/customads' ); break; case 'customads2': get_template_part( 'templates/customads2' ); break; case 'customads3': get_template_part( 'templates/customads3' ); break; case 'callout': get_template_part( 'templates/callout/callout2' ); break; case 'location': get_template_part( 'templates/locations/locationsv2' ); break; case 'packages': get_template_part( 'templates/plans/plansv2' ); break; case 'partners': get_template_part( 'templates/members/memberv2' ); break; case 'contentsection': get_template_part( 'templates/contentsection' ); break; } } endif; ?>
Share on Facebook Share
Share on TwitterTweet
Share on Pinterest Share
Share on LinkedIn Share
Share on Digg Share