<footer class="footer"> <div class="wancho"> <div class="f-up"> {% if info.footerLogo %} <div class="f-wrap-logo"> <a href="{{ path('home') }}" class="f-logo"> <img data-src="{{ asset(info.footerLogo)|sd_azure }}" width="160" alt="{{ info.footerLogo|img_alt }}" class="lazy"> </a> </div> {% endif %} <div class="f-nav"> <ul class="f-nav-list"> {% for row in info.footerLinks|arr_item_active('show') %} {% set url = '' %} {% set show = row.show %} {% set blank = '_self' %} {% if row.page in sd_external_paths %} {% set url = attribute(info, row.page~'Url') %} {% set show = attribute(info, row.page~'Show') and show %} {% set blank = '_blank' %} {% else %} {% set url = path(row.page) %} {% endif %} {% if show %} <li class="{{ row.page == 'account' ? 'f-item-btn' : 'f-item-link-up' }}"> <a href="{{ url }}" target="{{ blank }}" class="{{ row.page == 'account' ? 'f-btn' : 'f-link-up' }} "> {% if row.page == 'account' %} <i class="icon-user"></i> <span>{{ row.text }}</span> {% else %} {{ row.text }} {% endif %} </a> </li> {% endif %} {% endfor %} </ul> </div> </div> <div class="f-center"> {% if info.footerContactShow or info.footerClaimShow %} <div class="f-info-wrap"> <div class="f-info-inner"> {% if info.footerContactShow %} <h3 class="f-title">{{ info.footerContactText|default('Contacto') }}</h3> <div class="f-info"> {% if info.footerContactPhoneShow and info.footerContactPhoneNumber %} <p><a href="tel:{{ info.footerContactPhoneNumber|solonumeros }}">{{ info.footerContactPhoneNumber }}</a></p> {% endif %} {% if info.footerContactAddressShow and info.footerContactAddressText %} <p><a >{{ info.footerContactAddressText }}</a></p> {% endif %} {% if info.footerRuc %} <p>RUC: {{ info.footerRuc }}</p> {% endif %} {% if info.footerCompanyName %} <p>Razón Social: {{ info.footerCompanyName }}</p> {% endif %} </div> {% endif %} {% if info.footerClaimShow %} <div class="f-wrap-libro"> <a {% if info.footerClaimUrl %}href="{{ info.footerClaimUrl }}"{% endif %} class="f-libro" target="_blank"> {% if info.footerClaimIcon %} <img data-src="{{ asset(info.footerClaimIcon)|sd_azure }}" alt="libro de reclamaciones" width="39" class="lazy"> {% endif %} {{ info.footerClaimText|default('Libro de Reclamaciones') }} </a> </div> {% endif %} </div> </div> {% endif %} <div class="f-wrap-link-acordeon"> {% if info.footerLegalShow %} <div class="f-item-acordeon n-itemacordeon"> <h3 class="f-title n-title-acordeon"> {{ info.footerLegalText|default('Legales') }} </h3> <div class="n-contenido-acordeon"> <ul class="f-links-center"> {% for row in info.footerLegalLinks %} {% set url = '' %} {% set show = row.show %} {% set blank = '_self' %} {% if row.page in sd_external_paths %} {% set url = attribute(info, row.page~'Url') %} {% set show = attribute(info, row.page~'Show') and show %} {% set blank = '_blank' %} {% else %} {% set url = path(row.page) %} {% endif %} {% if show %} <li> <a href="{{ url }}" target="{{ blank }}" class="f-item-link-center">{{ row.text }}</a> </li> {% endif %} {% endfor %} </ul> </div> </div> {% endif %} {% set info_links = info.activeFooterInfoLinks|chunk(4) %} {% if info.footerInfoShow %} <div class="f-item-acordeon n-itemacordeon"> <h3 class="f-title n-title-acordeon"> {{ info.footerInfoText|default('Los Portales') }} </h3> {% if info_links %} <div class="n-contenido-acordeon"> <ul class="f-links-center"> {% for row in info_links[0] %} {% if row.isfile is defined and row.isfile and row.file %} <li> <a href="{{ asset(row.file)|sd_azure }}" {% if row.blank %}target="_blank"{% endif %} class="f-item-link-center">{{ row.text }}</a> </li> {% else %} <li><a href="{{ row.url }}" {% if row.blank %}target="_blank"{% endif %} class="f-item-link-center">{{ row.text }}</a></li> {% endif %} {% endfor %} </ul> </div> {% endif %} </div> {% endif %} </div> <div class="f-wrap-acordeon-mobil"> </div> {% if info_links|length > 1 %} {% set info_links = info_links|slice(1) %} <div class="f-others-links"> <ul class="f-links-center"> {% for links in info_links %} {% for row in links %} {% if row.isfile is defined and row.isfile and row.file %} <li> <a href="{{ asset(row.file)|sd_azure }}" {% if row.blank %}target="_blank"{% endif %} class="f-item-link-center">{{ row.text }}</a> </li> {% else %} <li> <a href="{{ row.url }}" {% if row.blank %}target="_blank"{% endif %} class="f-item-link-center">{{ row.text }}</a> </li> {% endif %} {% endfor %} {% endfor %} </ul> {% if info.linkSupplierCodeShow and info.linkSupplierCodeText %} <div class="footer_download"> <a href="{{ path('suppliers_code') }}" class="footer_download_btn" {% if info.linkSupplierCodeTarget %}target="_blank"{% endif %}> <span class="footer_downloads_text">{{ info.linkSupplierCodeText }}</span><span class="footer_downloads_icon icon-arrow-up-right"></span> </a> </div> {% endif %} </div> {% endif %} </div> <div class="f-down"> <div class="f-copy"> <div class="f-derechos"> <p>{{ info.copyrightText}} {{ 'now'|date('Y') }} </p> </div> {% if info.termsShow %} <div class="f-terminos"> <a href="{{ path('terms_conditions') }}" class="f-terminos-condicion">{{ info.termsText|default('Términos y condiciones')}}</a> </div> {% endif %} </div> {% if info.socialShow %} <div class="f-redes"> <p class="f-siguenos">{{ info.socialText }}</p> <div class="f-red-social"> {% if info.socialYoutubeShow and info.socialYoutubeUrl %} <a href="{{ info.socialYoutubeUrl }}" target="_blank" class="icon-youtube"></a> {% endif %} {% if info.socialFacebookShow and info.socialFacebookUrl %} <a href="{{ info.socialFacebookUrl }}" target="_blank" class="icon-facebook"></a> {% endif %} {% if info.socialInstagramShow and info.socialInstagramUrl %} <a href="{{ info.socialInstagramUrl }}" target="_blank" class="icon-instagram"></a> {% endif %} </div> </div> {% endif %} </div> </div> {% set whatsappEntity = info %} {% if IS_PROPERTY_DETAIL %} {% set whatsappEntity = detail.whatsappReplace ? detail : info %} {% endif %} {% if whatsappEntity.whatsappShow %} {% if not whatsappEntity.whatsappConsultantsShow or whatsappEntity.whatsappConsultantsItems|length < 1 %} {% if whatsappEntity.whatsappNumber|solonumeros %} <div class="ftwsp_btn"> {% if whatsappEntity.whatsappButton %} <div class="ftwsp_btn_text"> <p>{{ whatsappEntity.whatsappButton|markdown_only_strong }}</p> </div> {% endif %} <a target="_blank" href="{{ whatsappEntity.whatsappNumber|solonumeros|whatsapp_url(whatsappEntity.whatsappMessage) }}" class="ftwsp_btn_icon"></a> </div> {% endif %} {% else %} <div class="ftwsp_btn ftwspChatOpen"> {% if whatsappEntity.whatsappButton %} <div class="ftwsp_btn_text"> <p>{{ whatsappEntity.whatsappButton|markdown_only_strong }}</p> </div> {% endif %} <div class="ftwsp_btn_icon"></div> </div> <div class="ftwsp_chat"> <div class="ftwsp_info"> {% if whatsappEntity.whatsappTitle %} <div class="ftwsp_info_title">{{ whatsappEntity.whatsappTitle }}</div> {% endif %} {% if whatsappEntity.whatsappText %} <div class="ftwsp_info_description"> {{ whatsappEntity.whatsappText|raw }} </div> {% endif %} </div> <div class="ftwsp_contact"> {% if whatsappEntity.whatsappHelp %} <div class="ftwsp_contact_title">{{ whatsappEntity.whatsappHelp }}</div> {% endif %} <div class="ftwsp_contact_list"> {% for item in whatsappEntity.whatsappConsultantsItems %} <div class="ftwsp_contact_item"> <a target="_blank" href="{{ item.number|solonumeros|whatsapp_url(item.message) }}" class="ftwsp_contact_link"> {% if asset(item.image) %} <figure class="ftwsp_contact_avatar" style="background-image: url('{{ asset(item.image|default(''))|sd_azure }}');"></figure> {% endif %} <div class="ftwsp_contact_text"> {% if item.title %} <div class="ftwsp_contact_name">{{ item.title }}</div> {% endif %} {% if item.area %} <div class="ftwsp_contact_occupation">{{ item.area }}</div> {% endif %} </div> </a> </div> {% endfor %} </div> </div> </div> {% endif %} {% endif %}</footer>