title = "Travel" url = "/travel/:catslug/:slug/:contentslug?" layout = "default" is_hidden = 0 lazy_load = 1 meta_title = "{{ productDetails.record.title }} | {{ sectionTitle }}" meta_description = "{{ sectionDescription|striptags|slice(0,300) }}" enabled_in_sitemap = 1 model_class = "Webmors\Catalog\Models\Section" model_all_posts = 0 model_include_default = 0 use_updated_at = 1 changefreq = "always" priority = 0.1 og_title = "{{ productDetails.record.title }} island" og_description = "{{ productDetails.record.preview_text }}" og_ref_image = "{{ productDetails.record.cover }}" [builderDetails productDetails] modelClass = "Webmors\Catalog\Models\Product" identifierValue = "{{ :slug }}" modelKeyColumn = "slug" displayColumn = "title" notFoundMessage = "Record not found" [builderDetails categoryDetails] modelClass = "Webmors\Catalog\Models\Category" identifierValue = "{{ :catslug }}" modelKeyColumn = "catslug" displayColumn = "id" notFoundMessage = "Record not found" [builderList productList] modelClass = "Webmors\Catalog\Models\Product" scope = "scopeProducts" scopeValue = 1 displayColumn = "id" noRecordsMessage = "No records found" detailsPage = "-" detailsUrlParameter = "id" pageNumber = "{{ :page }}" [builderDetails commonDetails] modelClass = "Webmors\Webconfig\Models\Common" identifierValue = 1 modelKeyColumn = "id" displayColumn = "id" notFoundMessage = "Record not found" == where('slug',$this->param('slug'))->first(); if (!$product) { return \Redirect::to('404'); } $mainSection = null; $tabs = array(); $isActive = 0; foreach ($product->sections as $section) { $sectionName = $section->tabsection->name; $tabName = $section->tabsection->tab->name; $tabSlug = $section->tabsection->tab->tabslug; $sectionId = $section->tabsection->sort_order; $tabId = $section->tabsection->tab->sort_order; $sectionSlug = $section->contentslug; $sectionUrl = '/travel/'.$this->param('catslug').'/'.$this->param('slug').'/'.$sectionSlug; if (!array_key_exists($tabId,$tabs)) { $tabs[$tabId] = new stdClass(); $tabs[$tabId]->name = $tabName; $tabs[$tabId]->slug = $tabSlug; $tabs[$tabId]->url = $sectionUrl; $tabs[$tabId]->active = 0; } $currentActive = 0; if (!$isActive) { if (!$this->param('contentslug') || $section->contentslug == $this->param('contentslug')) { $isActive = 1; $currentActive = 1; $tabs[$tabId]->active = 1; $mainSection = $section; } } if (!property_exists($tabs[$tabId], 'sections')) { $tabs[$tabId]->sections = array(); } $tabs[$tabId]->sections[$sectionId]['content'] = $section; $tabs[$tabId]->sections[$sectionId]['name'] = $sectionName; $tabs[$tabId]->sections[$sectionId]['url'] = $sectionUrl; $tabs[$tabId]->sections[$sectionId]['slug'] = $sectionSlug; $tabs[$tabId]->sections[$sectionId]['active'] = $currentActive; } ksort($tabs); foreach ($tabs as $key=>$tab) { ksort($tab->sections); $tabs[$key]->url = array_values($tab->sections)[0]['url']; } $this['tabs'] = $tabs; $sectionDescription = ""; if ($mainSection) { $this['sectionTitle'] = $mainSection->title; if ($mainSection->description) { $sectionDescription = $mainSection->description; } else if ($mainSection->listitems && is_array($mainSection->listitems)) { $sectionDescription = $mainSection->listitems[0]->description; } else if ($mainSection->accorditems && is_array($mainSection->accorditems)) { $sectionDescription = $mainSection->accorditems[0]['text']; } $this['sectionDescription'] = $sectionDescription; } else { $this['sectionTitle'] = $product->title; $this['sectionDescription'] = $product->preview_text; } } ?> == {% set productDetail = productDetails.record %} {% set categoryDetail = categoryDetails.record %} {% set commonDetail = commonDetails.record %} {% put styles %} {% endput %} {% put styles %} {% endput %} {#
#} {% set mainurl = "" %}
{% set whatsapp = "" %} {% for social in commonDetail.social_repeater if "wa.me" in social.link %} {% set whatsapp=social.link %} {% endfor %} whatsapp email
{% put scripts %} {% endput %}
{{ productDetail.title }}
Home {% if this.param['slug'] %} {{productDetail.category.name}} Information {% else %} {{ categoryDetail.name }} {% endif %}
{% if this.param['slug'] %} {% partial 'common/searchbar.htm' countryGuess=productDetail.title %} {#
{#
#} {#

{{ productDetail.title }}

#} {#
#}
{% if backendLoggedIn and editMode %} Edit item {% endif %}

{{ productDetail.title }} Information

{#

20+ Beaches

#}
{% for tabname in tabs %}
{% for section in tabname.sections if not section.active %}
{% if tabname.sections|length > 1 %}

{% endif %} {#
{% if section.active %}

{{ section.content.title }}

{% if section.content.gallery %} {% partial 'island/gallery' gallery=section.content.gallery %}

{% endif %} {% if section.content.description %} {{ section.content.description|raw }} {% endif %} {% if section.content.listitems %} {% partial 'island/list' list=section.content.listitems %} {% endif %} {% if section.content.accorditems %} {% partial 'island/accordion' accorditems=section.content.accorditems title=section.slug~"mob" %} {% endif %}
{% endif %}
#}
{% endfor %} {% for section in tabname.sections if section.active %}
{% if tabname.sections|length > 1 %}

{% endif %}
{% if section.active %}

{{ section.content.title }}

{% if section.content.gallery %} {% partial 'island/gallery' gallery=section.content.gallery %}

{% endif %} {% if section.content.description %} {{ section.content.description|raw }} {% endif %} {% if section.content.listitems %} {% partial 'island/list' list=section.content.listitems %} {% endif %} {% if section.content.accorditems %} {% partial 'island/accordion' accorditems=section.content.accorditems title=section.slug~"mob" %} {% endif %}
{% endif %}
{% endfor %}
{% endfor %}
{% for tabname in tabs %}
{% if tabname.sections|length > 1 %} {% endif %}
{% for section in tabname.sections %}
{% if section.active %}

{{ section.content.title }}

{% if section.content.gallery %} {% partial 'island/gallery' gallery=section.content.gallery %}

{% endif %} {% if section.content.description %} {{ section.content.description|raw }} {% endif %} {% if section.content.listitems %} {% partial 'island/list' list=section.content.listitems %} {% endif %} {% if section.content.accorditems %} {% partial 'island/accordion' accorditems=section.content.accorditems title=section.slug%} {% endif %}
{% endif %}
{% endfor %}
{% endfor %}
{% if this.param['contentslug'] == "booknow" %}

Book Now

{% endif %}


{% else %}


Discovery our {{categoryDetail.name}}

{% for productrow in categoryDetail.products|batch(1) %} {% endfor %}

{% endif %} {% put scripts %} {% endput %}