templates/front/_common/_footer.html.twig line 1

Open in your IDE?
  1. <footer class="footer">
  2.     <div class="wancho">
  3.         <div class="f-up">
  4.             {% if info.footerLogo %}
  5.                 <div class="f-wrap-logo">
  6.                     <a href="{{ path('home') }}" class="f-logo">
  7.                         <img data-src="{{ asset(info.footerLogo)|sd_azure }}" width="160" alt="{{ info.footerLogo|img_alt }}" class="lazy">
  8.                     </a>
  9.                 </div>
  10.             {% endif %}
  11.             <div class="f-nav">
  12.                 <ul class="f-nav-list">
  13.                     {% for row in info.footerLinks|arr_item_active('show') %}
  14.                         {% set url = '' %}  {% set show = row.show %} {% set blank = '_self' %}
  15.                         {% if row.page in sd_external_paths %}
  16.                             {% set url = attribute(info, row.page~'Url') %}
  17.                             {% set show = attribute(info, row.page~'Show') and show %}
  18.                             {% set blank = '_blank' %}
  19.                         {% else %}
  20.                             {% set url = path(row.page) %}
  21.                         {% endif %}
  22.                         {% if show %}
  23.                             <li class="{{ row.page == 'account' ? 'f-item-btn' : 'f-item-link-up' }}">
  24.                                 <a href="{{ url }}" target="{{ blank }}" class="{{ row.page == 'account' ? 'f-btn' : 'f-link-up' }} ">
  25.                                     {% if row.page == 'account' %}
  26.                                         <i class="icon-user"></i>
  27.                                         <span>{{ row.text }}</span>
  28.                                     {% else %}
  29.                                         {{ row.text }}
  30.                                     {% endif %}
  31.                                 </a>
  32.                             </li>
  33.                         {% endif %}
  34.                     {% endfor %}
  35.                 </ul>
  36.             </div>
  37.         </div>
  38.         <div class="f-center">
  39.             {% if info.footerContactShow or info.footerClaimShow %}
  40.                 <div class="f-info-wrap">
  41.                     <div class="f-info-inner">
  42.                         {% if info.footerContactShow %}
  43.                         <h3 class="f-title">{{ info.footerContactText|default('Contacto') }}</h3>
  44.                         <div class="f-info">
  45.                             {% if info.footerContactPhoneShow and info.footerContactPhoneNumber %}
  46.                                 <p><a href="tel:{{ info.footerContactPhoneNumber|solonumeros }}">{{ info.footerContactPhoneNumber }}</a></p>
  47.                             {% endif %}
  48.                             {% if info.footerContactAddressShow and info.footerContactAddressText %}
  49.                                 <p><a >{{ info.footerContactAddressText }}</a></p>
  50.                             {% endif %}
  51.                             {% if info.footerRuc %}
  52.                                 <p>RUC: {{ info.footerRuc }}</p>
  53.                             {% endif %}
  54.                             {% if info.footerCompanyName %}
  55.                                 <p>Razón Social: {{ info.footerCompanyName }}</p>
  56.                             {% endif %}
  57.                         </div>
  58.                         {% endif %}
  59.                         {% if info.footerClaimShow %}
  60.                         <div class="f-wrap-libro">
  61.                             <a {% if info.footerClaimUrl %}href="{{ info.footerClaimUrl }}"{% endif %} class="f-libro" target="_blank">
  62.                                 {% if info.footerClaimIcon %}
  63.                                 <img data-src="{{ asset(info.footerClaimIcon)|sd_azure }}" alt="libro de reclamaciones" width="39" class="lazy">
  64.                                 {% endif %}
  65.                                 {{ info.footerClaimText|default('Libro de Reclamaciones') }}
  66.                             </a>
  67.                         </div>
  68.                         {% endif %}
  69.                     </div>
  70.                 </div>
  71.             {% endif %}
  72.             <div class="f-wrap-link-acordeon">
  73.                 {% if info.footerLegalShow %}
  74.                     <div class="f-item-acordeon n-itemacordeon">
  75.                         <h3 class="f-title n-title-acordeon">
  76.                             {{ info.footerLegalText|default('Legales') }}
  77.                         </h3>
  78.                         <div class="n-contenido-acordeon">
  79.                             <ul class="f-links-center">
  80.                                 {% for row in info.footerLegalLinks %}
  81.                                     {% set url = '' %}  {% set show = row.show %} {% set blank = '_self' %}
  82.                                     {% if row.page in sd_external_paths %}
  83.                                         {% set url = attribute(info, row.page~'Url') %}
  84.                                         {% set show = attribute(info, row.page~'Show') and show %}
  85.                                         {% set blank = '_blank' %}
  86.                                     {% else %}
  87.                                         {% set url = path(row.page) %}
  88.                                     {% endif %}
  89.                                     {% if show %}
  90.                                         <li>
  91.                                             <a href="{{ url }}" target="{{ blank }}" class="f-item-link-center">{{ row.text }}</a>
  92.                                         </li>
  93.                                     {% endif %}
  94.                                 {% endfor %}
  95.                             </ul>
  96.                         </div>
  97.                     </div>
  98.                 {% endif %}
  99.                 {% set info_links = info.activeFooterInfoLinks|chunk(4) %}
  100.                 {% if info.footerInfoShow %}
  101.                     <div class="f-item-acordeon n-itemacordeon">
  102.                         <h3 class="f-title n-title-acordeon">
  103.                             {{ info.footerInfoText|default('Los Portales') }}
  104.                         </h3>
  105.                         {% if info_links %}
  106.                             <div class="n-contenido-acordeon">
  107.                                 <ul class="f-links-center">
  108.                                     {% for row in info_links[0] %}
  109.                                         {% if row.isfile is defined and row.isfile and row.file %}
  110.                                         <li>
  111.                                             <a href="{{ asset(row.file)|sd_azure }}" {% if row.blank %}target="_blank"{% endif %} class="f-item-link-center">{{ row.text }}</a>
  112.                                         </li>
  113.                                         {% else %}
  114.                                         <li><a href="{{ row.url }}" {% if row.blank %}target="_blank"{% endif %} class="f-item-link-center">{{ row.text }}</a></li>
  115.                                         {% endif %}
  116.                                     {% endfor %}
  117.                                 </ul>
  118.                             </div>
  119.                         {% endif %}
  120.                     </div>
  121.                 {% endif %}
  122.             </div>
  123.             <div class="f-wrap-acordeon-mobil">
  124.             </div>
  125.             {% if info_links|length > 1 %}
  126.                 {% set info_links = info_links|slice(1) %}
  127.                 <div class="f-others-links">
  128.                     <ul class="f-links-center">
  129.                         {% for links in info_links %}
  130.                             {% for row in links %}
  131.                                 {% if row.isfile is defined and row.isfile and row.file %}
  132.                                 <li>
  133.                                     <a href="{{ asset(row.file)|sd_azure }}" {% if row.blank %}target="_blank"{% endif %} class="f-item-link-center">{{ row.text }}</a>
  134.                                 </li>
  135.                                 {% else %}
  136.                                 <li>
  137.                                     <a href="{{ row.url }}" {% if row.blank %}target="_blank"{% endif %} class="f-item-link-center">{{ row.text }}</a>
  138.                                 </li>
  139.                                 {% endif %}
  140.                             {% endfor %}
  141.                         {% endfor %}
  142.                     </ul>
  143.                     {% if info.linkSupplierCodeShow and info.linkSupplierCodeText %}
  144.                     <div class="footer_download">
  145.                         <a href="{{ path('suppliers_code') }}" class="footer_download_btn" {% if info.linkSupplierCodeTarget %}target="_blank"{% endif %}>
  146.                             <span class="footer_downloads_text">{{ info.linkSupplierCodeText }}</span><span class="footer_downloads_icon icon-arrow-up-right"></span>
  147.                         </a>
  148.                     </div>
  149.                     {% endif %}
  150.                 </div>
  151.             {% endif %}
  152.         </div>
  153.         <div class="f-down">
  154.             <div class="f-copy">
  155.                 <div class="f-derechos">
  156.                     <p>{{ info.copyrightText}} {{ 'now'|date('Y') }} </p>
  157.                 </div>
  158.                 {% if info.termsShow %}
  159.                     <div class="f-terminos">
  160.                         <a href="{{ path('terms_conditions') }}" class="f-terminos-condicion">{{ info.termsText|default('Términos y condiciones')}}</a>
  161.                     </div>
  162.                 {% endif %}
  163.             </div>
  164.             {% if info.socialShow %}
  165.                 <div class="f-redes">
  166.                     <p class="f-siguenos">{{ info.socialText }}</p>
  167.                     <div class="f-red-social">
  168.                         {% if info.socialYoutubeShow and info.socialYoutubeUrl %}
  169.                             <a href="{{ info.socialYoutubeUrl }}" target="_blank" class="icon-youtube"></a>
  170.                         {% endif %}
  171.                         {% if info.socialFacebookShow and info.socialFacebookUrl %}
  172.                             <a href="{{ info.socialFacebookUrl }}" target="_blank" class="icon-facebook"></a>
  173.                         {% endif %}
  174.                         {% if info.socialInstagramShow and info.socialInstagramUrl %}
  175.                             <a href="{{ info.socialInstagramUrl }}" target="_blank" class="icon-instagram"></a>
  176.                         {% endif %}
  177.                     </div>
  178.                 </div>
  179.             {% endif %}
  180.         </div>
  181.     </div>
  182.     {% set whatsappEntity = info %}
  183.     {% if IS_PROPERTY_DETAIL %}
  184.         {% set whatsappEntity = detail.whatsappReplace ? detail : info %}
  185.     {% endif %}
  186.     {% if whatsappEntity.whatsappShow %}
  187.         {% if not whatsappEntity.whatsappConsultantsShow or whatsappEntity.whatsappConsultantsItems|length < 1 %}
  188.             {% if whatsappEntity.whatsappNumber|solonumeros %}
  189.                 <div class="ftwsp_btn">
  190.                     {% if whatsappEntity.whatsappButton %}
  191.                         <div class="ftwsp_btn_text">
  192.                             <p>{{ whatsappEntity.whatsappButton|markdown_only_strong }}</p>
  193.                         </div>
  194.                     {% endif %}
  195.                     <a target="_blank" href="{{ whatsappEntity.whatsappNumber|solonumeros|whatsapp_url(whatsappEntity.whatsappMessage) }}" class="ftwsp_btn_icon"></a>
  196.                 </div>
  197.             {% endif %}
  198.         {% else %}
  199.             <div class="ftwsp_btn ftwspChatOpen">
  200.                 {% if whatsappEntity.whatsappButton %}
  201.                     <div class="ftwsp_btn_text">
  202.                         <p>{{ whatsappEntity.whatsappButton|markdown_only_strong }}</p>
  203.                     </div>
  204.                 {% endif %}
  205.                 <div class="ftwsp_btn_icon"></div>
  206.             </div>
  207.             <div class="ftwsp_chat">
  208.                 <div class="ftwsp_info">
  209.                     {% if whatsappEntity.whatsappTitle %}
  210.                         <div class="ftwsp_info_title">{{ whatsappEntity.whatsappTitle }}</div>
  211.                     {% endif %}
  212.                     {% if whatsappEntity.whatsappText %}
  213.                         <div class="ftwsp_info_description">
  214.                             {{ whatsappEntity.whatsappText|raw }}
  215.                         </div>
  216.                     {% endif %}
  217.                 </div>
  218.                 <div class="ftwsp_contact">
  219.                     {% if whatsappEntity.whatsappHelp %}
  220.                         <div class="ftwsp_contact_title">{{ whatsappEntity.whatsappHelp }}</div>
  221.                     {% endif %}
  222.                     <div class="ftwsp_contact_list">
  223.                         {% for item in whatsappEntity.whatsappConsultantsItems %}
  224.                             <div class="ftwsp_contact_item">
  225.                                 <a target="_blank" href="{{ item.number|solonumeros|whatsapp_url(item.message) }}" class="ftwsp_contact_link">
  226.                                     {% if asset(item.image) %}
  227.                                         <figure class="ftwsp_contact_avatar" style="background-image: url('{{ asset(item.image|default(''))|sd_azure }}');"></figure>
  228.                                     {% endif %}
  229.                                     <div class="ftwsp_contact_text">
  230.                                         {% if item.title %}
  231.                                             <div class="ftwsp_contact_name">{{ item.title }}</div>
  232.                                         {% endif %}
  233.                                         {% if item.area %}
  234.                                             <div class="ftwsp_contact_occupation">{{ item.area }}</div>
  235.                                         {% endif %}
  236.                                     </div>
  237.                                 </a>
  238.                             </div>
  239.                         {% endfor %}
  240.                     </div>
  241.                 </div>
  242.             </div>
  243.         {% endif %}
  244.     {% endif %}
  245. </footer>