<?php /** * Template Name: Villa Blanca Template */ use Experiensa\Modules\QueryBuilder; $design_settings = get_option('experiensa_design_settings'); $page_object = get_queried_object(); $page_id = get_queried_object_id(); $section_obj = new Experiensa\Component\Section($page_id, $design_settings, 'landing_section_options'); if ($section_obj->checkExistSections()) { $sections = $section_obj->getSections(); foreach ($sections as $section) { $section_obj->showSection($section); } } get_template_part('templates/villa_blanca/pricing'); get_template_part('templates/villa_blanca/reservations'); //get_template_part('templates/villa_blanca/references');
<?php /** * Template Name: Section Template */ //echo"<br><br><br><br><br><br><br>"; //$slider = new Experiensa\Component\Slider("vegas",['voyage'],'category',['landing-slider']); //$slider->showSlider(); $page_object = get_queried_object(); $page_id = get_queried_object_id(); $settings = get_option('experiensa_design_settings'); //$taxs = \Experiensa\Modules\QueryBuilder::getTaxonomies(); // echo "<pre>"; // print_r($taxs); // echo "</pre>"; $sections = new Experiensa\Component\Section($page_id, $settings); if ($sections->checkExistSectionOptions()) { $segments = $sections->getSegmentList(); // echo "<pre>"; // print_r($segments); // echo "</pre>"; foreach ($segments as $segment) { $segment_options = $sections->getSegmentOptions($segment); // echo "<pre>"; // print_r($segment_options); // echo "</pre>"; $segment_obj = new Experiensa\Component\Segment(['segment_options' => $segment]); $segment_obj->setDataFromSegmentOptions($segment); $segment_container = $segment_obj->getContainer(); $segment_align = $segment_obj->getAlignment(); $segment_background = $segment_obj->getBackground();