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

Open in your IDE?
  1. <header class="header_fixed">
  2.     {% if info.counterShow and info.counterDate is not null and IS_HOME_PAGE %}
  3.         {# para cambiar de posicion la barra a abajo, agregar clase: 'bottom' a b27 #}
  4.         <div class="b27 {{ info.counterFooter ? 'bottom' }}" id="b27-counter-main">
  5.             {# para ocultar  el dia agregar clase: 'ocultar-dias' a b27-wrap #}
  6.             {# para ocultar  el texto agregar clase: 'hide-text-on-mobile' a b27-wrap #}
  7.             <div  class="b27-wrap {{ info.counterShowDays ? '' : 'ocultar-dias' }} {{ info.counterShowTextInResponsive ? '' : 'hide-text-on-mobile' }} {{ info.counterBannerOpacity ? '' : 'no-shadow' }}">
  8.                 <a {% if info.counterLink %}href="{{ info.counterLink }}"{% endif %} {% if info.counterLinkBlank %}target="_blank"{% endif %} class="b27-left" style="background-color: {{ info.counterBackgroundcolor ?: '#0D5EA5' }}">
  9.                     <div class="b27-bg" style="background-image: url({{ asset(info.counterBannerImageResponsive)|sd_azure }});" ></div>
  10.                     {% if info.counterText %}
  11.                         <div class="b27-campana" style="color: {{ info.counterColorText ?: '#FFFFFF' }}">{{ info.counterText }}</div>
  12.                     {% endif %}
  13.                     <div class="b27-listado countDown">
  14.                         <div class="b27-item dias star">
  15.                             <div class="b27-numer days" style="color: {{ info.counterBackgroundcolor ?: '#0D5EA5' }}">00</div>
  16.                             <span class="timeRefDays" style="color: {{ info.counterColorText ?: '#FFFFFF' }}">dias</span>
  17.                         </div>
  18.                         <div class="b27-item-separador dias">
  19.                             <em>:</em>
  20.                         </div>
  21.                         <div class="b27-item ">
  22.                             <div class="b27-numer hours" style="color: {{ info.counterBackgroundcolor ?: '#0D5EA5' }}">00</div>
  23.                             <span class="timeRefHours" style="color: {{ info.counterColorText ?: '#FFFFFF' }}">horas</span>
  24.                         </div>
  25.                         <div class="b27-item-separador">
  26.                             <em>:</em>
  27.                         </div>
  28.                         <div class="b27-item">
  29.                             <div class="b27-numer minutes" style="color: {{ info.counterBackgroundcolor ?: '#0D5EA5' }}">00</div>
  30.                             <span class="timeRefMinutes" style="color: {{ info.counterColorText ?: '#FFFFFF' }}">minutos</span>
  31.                         </div>
  32.                         <div class="b27-item-separador">
  33.                             <em>:</em>
  34.                         </div>
  35.                         <div class="b27-item end">
  36.                             <div class="b27-numer seconds" style="color: {{ info.counterBackgroundcolor ?: '#0D5EA5' }}">00</div>
  37.                             <span class="timeRefSeconds" style="color: {{ info.counterColorText ?: '#FFFFFF' }}">segundos</span>
  38.                         </div>
  39.                     </div>
  40.                 </a>
  41.                 <a {% if info.counterLink %}href="{{ info.counterLink }}"{% endif %} {% if info.counterLinkBlank %}target="_blank"{% endif %} class="b27-right" style="background-image: url({{ asset(info.counterBannerImage)|sd_azure }});">
  42.                     {% if info.counterBannerTexto %}
  43.                         <h3 class="b27-title" style="color: {{ info.counterBannerColor ?: '#FFFFFF' }}">
  44.                             {{ info.counterBannerTexto }}
  45.                         </h3>
  46.                     {% endif %}
  47.                 </a>
  48.                 <div class="b27-close">
  49.                     <i class="icon-close1"></i>
  50.                 </div>
  51.             </div>
  52.         </div>
  53.     {% endif %}
  54.     <div class="header_container">
  55.         <div class="header_open openMenu" >
  56.             <div class="header_menu_open">
  57.                 <div class="menu-toggle">
  58.                     <div class="one"></div>
  59.                     <div class="two"></div>
  60.                     <div class="three"></div>
  61.                     <em class="h-text-menu">Menú</em>
  62.                 </div>
  63.             </div>
  64.         </div>
  65.         <div class="header_content">
  66.             {% if info.activeMenuLinks %}
  67.             {# NUEVOS ELEMENTOS - TEXTO ADMINISTRABLE - PROGRAMAR #}
  68.             <div class="headernew_links">
  69.                 <ul>
  70.                 {% for row in info.activeMenuLinks|arr_item_active('show') %}
  71.                     {% set url = '' %}  {% set show = row.show %} {% set blank = '_self' %}
  72.                     {% if row.page in sd_external_paths %}
  73.                         {% set url = attribute(info, row.page~'Url') %}
  74.                         {% set show = attribute(info, row.page~'Show') %}
  75.                         {% set blank = '_blank' %}
  76.                     {% else %}
  77.                         {% set url = path(row.page) %}
  78.                     {% endif %}
  79.                     {% if show and row.page != 'map' %}
  80.                         <li>
  81.                             <a href="{{ url }}" target="{{ blank }}">{{ row.text }}</a>
  82.                         </li>
  83.                         
  84.                     {% endif %}
  85.                    
  86.                 {% endfor %}
  87.                 </ul>
  88.             </div>
  89.             {# NUEVOS ELEMENTOS - TEXTO ADMINISTRABLE - PROGRAMAR #}
  90.             {% endif %}
  91.             <div class="header_box">
  92.                 {% if info.headerLogo %}
  93.                     <a class="header_logo" href="{{ path('home') }}">
  94.                         <img src="{{ asset(info.headerLogo)|sd_azure }}" width="188" height="56" alt="{{ info.headerLogo|img_alt }}" />
  95.                     </a>
  96.                 {% endif %}
  97.                 <div class="header_group">
  98.                     <div class="header_search">
  99.                         <form class="header_form" id="formFilter">
  100.                             <ul>
  101.                                 {% set value_location = app.request.query.get("sd_location")|default('') %}
  102.                                 {% set option_pages = ['asia', 'chilca', 'chiclayo', 'ica', 'lambayeque', 'piura'] %}
  103.                                 <li class="header_select h-select-inmueble">
  104.                                     <input type="text" id="headerInputJS" name="sd_type" value="{{ app.request.query.get("sd_type")|default('') }}"/>
  105.                                     <label class="header_select_box headerSelectOpen" for="headerInputJS">
  106.                                         {{ info.headerFilterTypeText|default('Nuestros productos') }}
  107.                                     </label>
  108.                                     <div class="header_select_list headerSelectContent">
  109.                                         {% for item in filter_types %}
  110.                                             <div class="header_option headerOption headerOptionType" data-url="{{ path('map', {'sd_type': item.id}) }}" data-value="{{ item.id }}">
  111.                                                 <div class="header_option_text headerText">
  112.                                                     <p>{{ item.texto }}</p>
  113.                                                 </div>
  114.                                             </div>
  115.                                         {% endfor %}
  116.                                     </div>
  117.                                 </li>
  118.                             </ul>
  119. {#                            {% if info.headerFilterBtnShow %}#}
  120. {#                                <div class="header_search_btn {% if value_location in option_pages %}{{ 'hide' }}{% endif %}">#}
  121. {#                                    <button class="g1-btn" type="submit" id="searchBtn">{{ info.headerFilterBtnText|default('IR') }}</button>#}
  122. {#                                </div>#}
  123. {#                            {% endif %}#}
  124.                         </form>
  125.                         {% if info.headerMapBtnShow and info.headerMapBtnText %}
  126.                         {# NUEVO ELEMENTO - TEXTO ADMINISTRABLE - PROGRAMAR #}
  127.                         {#<div class="headernew_map">#}
  128.                         {#    <a href="{{ path('map') }}">{{ info.headerMapBtnText }} <span class="icon-point"></span></a>#}
  129.                         {#</div>#}
  130.                         {# NUEVO ELEMENTO - TEXTO ADMINISTRABLE - PROGRAMAR #}
  131.                         {% endif %}
  132.                     </div>
  133.                     <div class="header_list">
  134.                         <div class="h-wrap-phones">
  135.                             {% if info.headerPhone1Show and info.headerPhone1Number %}
  136.                                 <!-- para ocultar est bloque, poner un if que envuelva solos los numeros -->
  137.                                 <a href="tel:{{ info.headerPhone1Number|solonumeros }}" class="h-phone"><i class="icon-phone1"></i>
  138.                                     <span>{{ info.headerPhone1Number }}</span>
  139.                                 </a>
  140.                             {% endif %}
  141.                             {% if info.headerPhone2Show and info.headerPhone2Number %}
  142.                                 <a href="tel:{{ info.headerPhone2Number|solonumeros }}" class="h-phone"><i class="icon-phone1"></i>
  143.                                     <span>{{ info.headerPhone2Number }}</span>
  144.                                 </a>
  145.                             {% endif %}
  146.                         </div>
  147.                         <ul class="h-botonera">
  148. {#                            {% if info.regionInfoShow and info.regionButtonShow %}#}
  149. {#                                <li>#}
  150. {#                                    <a class="g1-btn yellow-2 w130" href="{{ path('map_clear') }}">{{ info.regionButtonText|default('Otros Proyectos') }}</a>#}
  151. {#                                </li>#}
  152. {#                            {% endif %}#}
  153.                             {% if info.headerPayBtnShow %}
  154.                                 <li>
  155.                                     <a class="g1-btn blue w130" {% if info.headerPayBtnUrl %}href="{{ info.headerPayBtnUrl }}" target="_blank"{% else %}href="{{ path('pay_here') }}"{% endif %}>
  156.                                         {{ info.headerPayBtnText|default('Paga Aquí') }}
  157.                                     </a>
  158.                                 </li>
  159.                             {% endif %}
  160.                             {% if info.headerContactBtnShow %}
  161.                                 <li class="header_list_cotizar">
  162.                                     <a class="g1-btn yellow w130" href="{{ path('contact') }}">{{ info.headerContactBtnText|default('Contáctanos') }}</a>
  163.                                 </li>
  164.                             {% endif %}
  165.                             <li class="h-new-search-wrap">
  166.                                 <a href="#" class="h-new-search">
  167.                                     <img src="{{ STATIC_URL }}img/icon-search-change.svg" width="24" alt="buscar">
  168.                                 </a>
  169.                             </li>
  170.                         </ul>
  171.                         <div class="header_icon_search">
  172.                             <div class="header_search_open_res openSearch"><span class="icon-filter"></span></div>
  173.                             <div class="header_search_close_res closeSearch"><span class="icon-close"></span></div>
  174.                         </div>
  175.                         <a href="#" class="h-new-search mobil">
  176.                             <img src="{{ STATIC_URL }}img/icon-search.svg" width="21" alt="buscar">
  177.                         </a>
  178.                     </div>
  179.                 </div>
  180.             </div>
  181.         </div>
  182.     </div>
  183. </header>
  184. {% if IS_PROPERTY_DETAIL %}
  185.     {% include 'front/property/_header.html.twig' %}
  186. {% endif %}
  187. <div class="b50-overlay"></div>
  188. <section class="b50" style="opacity: 0;">
  189.     <div class="b50head">
  190.         <span class="b50close icon-close1"></span>
  191.         <div class="b50head_content wancho">
  192.             {% if info.menuLogo %}
  193.                 <figure class="b50logo">
  194.                     <img data-src="{{ asset(info.menuLogo)|sd_azure }}" width="227" height="67" alt="{{ info.menuLogo|img_alt }}" class="lazy">
  195.                 </figure>
  196.             {% endif %}
  197.             <div class="b50buttons">
  198.                 {% if info.headerPayBtnShow %}
  199.                     <a {% if info.headerPayBtnUrl %}href="{{ info.headerPayBtnUrl }}" target="_blank"{% else %}href="{{ path('pay_here') }}"{% endif %} class="b50btn_morado">
  200.                         {{ info.headerPayBtnText|default('Paga Aquí') }}
  201.                     </a>
  202.                 {% endif %}
  203.                 {% if info.headerContactBtnShow %}
  204.                     <a href="{{ path('contact') }}" class="b50btn_yellow">{{ info.headerContactBtnText|default('Contáctanos') }}</a>
  205.                 {% endif %}
  206.             </div>
  207.         </div>
  208.     </div>
  209.     
  210.     {% if info.activeMenuLinks %}
  211.         <div class="b50body">
  212.             <div class="b50body_content wancho">
  213.                 <nav class="b50nav">
  214.                     <ul class="b50list">
  215.                         {% for row in info.activeMenuLinks|arr_item_active('show') %}
  216.                             {% set url = '' %}  {% set show = row.show %} {% set blank = '_self' %}
  217.                             {% if row.page in sd_external_paths %}
  218.                                 {% set url = attribute(info, row.page~'Url') %}
  219.                                 {% set show = attribute(info, row.page~'Show') %}
  220.                                 {% set blank = '_blank' %}
  221.                             {% else %}
  222.                                 {% set url = path(row.page) %}
  223.                             {% endif %}
  224.                             {% if show %}
  225.                                 <li class="b50menu_item {{ row.page == 'map' ? ' hide_in_mobile' : '' }}">
  226.                                     <a href="{{ url }}" target="{{ blank }}" class="b50menu_link">
  227.                                         {% if row.icon %}
  228.                                         <figure class="b50menu_icon">
  229.                                             <img data-src="{{ asset(row.icon)|sd_azure }}" width="42" height="40" alt="{{ row.icon|img_alt }}" class="lazy">
  230.                                         </figure>
  231.                                         {% endif %}
  232.                                         <span class="b50menu_text">{{ row.text }}</span>
  233.                                     </a>
  234.                                 </li>
  235.                             {% endif %}
  236.                         {% endfor %}
  237.                     </ul>
  238.                 </nav>
  239.             </div>
  240.         </div>
  241.     {% endif %}
  242.     
  243.     <div class="b50foot">
  244.         <div class="b50foot_content wancho">
  245.             {% if info.headerPhone1Show and info.headerPhone1Number %}
  246.                 <div class="b50phone b50phone1">
  247.                     <a href="tel:{{ info.headerPhone1Number|solonumeros }}" class="b50phone_link">
  248.                         <span class="b50phone_icon icon-phone1"></span>
  249.                         <span class="b50phone_text">{{ info.headerPhone1Number }}</span>
  250.                     </a>
  251.                 </div>
  252.             {% endif %}
  253.             {% if info.headerPhone2Show and info.headerPhone2Number %}
  254.                 <div class="b50phone b50phone2">
  255.                     <a href="tel:{{ info.headerPhone2Number|solonumeros }}" class="b50phone_link">
  256.                         <span class="b50phone_icon icon-phone1"></span>
  257.                         <span class="b50phone_text">{{ info.headerPhone2Number }}</span>
  258.                     </a>
  259.                 </div>
  260.             {% endif %}
  261.             {% if info.footerContactAddressShow and info.footerContactAddressText %}
  262.                 <div class="b50address">
  263.                     <p>{{ info.footerContactAddressText }}</p>
  264.                 </div>
  265.             {% endif %}
  266.         </div>
  267.     </div>
  268. </section>
  269. <!-- BLOQUE 50 -->
  270. <section class="b30">
  271.     <span class="b30-close icon-close1"></span>
  272.     <div class="wancho">
  273.         <div class="b30-inner">
  274.             <div class="b30-box-search">
  275.                 <div class="b30-search">
  276.                     <span class="icon-search1"></span>
  277.                     <input  class="b30-input-search" type="text" placeholder="Buscar">
  278.                 </div>
  279.             </div>
  280.             <div class="b30-list">
  281.                 <div class="b30-list-initial">
  282.                     {% for item in list_autocomplete %}
  283.                         <a href="{{ path('property',{'slug':item.url}) }}" class="b30-item">
  284.                             <div class="b30-categoria">{{ item.categoria }}</div>
  285.                             <div class="b30-nombre"> {{ item.label }}</div>
  286.                             <div class="b30-direccion">
  287.                                 <img data-src="{{ STATIC_URL }}img/ubicacion2.svg" width="18" alt="ubicación" class="lazy">
  288.                                 <p>
  289.                                     {{ item.ubicacion|replace({'-':'<br/>'})|raw }}
  290.                                 </p>
  291.                             </div>
  292.                         </a>
  293.                     {% endfor %}
  294.                 </div>
  295.                 <div class="b30-new-list" ></div>
  296.                 <div class="b30-not-list">
  297.                         <h3 class="b30-title">
  298.                             No se encontraron resultados
  299.                         </h3>
  300.                         <div class="b30-figure-result">
  301.                             <img data-src="{{ STATIC_URL }}img/no-result.svg" width="58" alt="sin resultados" class="lazy">
  302.                         </div>
  303.                 </div>
  304.             </div>
  305.         </div>
  306.     </div>
  307. </section>