templates/_parts/index/_mortgage.html.twig line 1

Open in your IDE?
  1. {% set class = class|default('') %}
  2. {% set mortgageSettings = get_mortgage_settings() %}
  3. {% if mortgageSettings.title and mortgageSettings.subtitle %}
  4.     <div class="mortgage {{ class }}">
  5.         <div class="container container_spacer">
  6.             <div class="mortgage__inner">
  7.                 <div class="mortgage__content">
  8.                     <div class="mortgage__main">
  9.                         <h2 class="mortgage__title h2_laptop">
  10.                             {{ mortgageSettings.title }}
  11.                         </h2>
  12.                         <div class="mortgage__subtitle text__grey03">
  13.                             {{ mortgageSettings.subtitle }}
  14.                         </div>
  15.                         <a href="{{ path('request:mortgage_modal') }}"
  16.                            title="Ипотека"
  17.                            class="mortgage__button button"
  18.                            data-modal
  19.                            data-goal-yandex-submit="{{ settings().successGoal }}"
  20.                            data-goal-yandex-click="{{ settings().clickFormGoal }}"
  21.                            data-goal-vk-submit="{{ settings().successGoal }}"
  22.                            data-goal-vk-click="{{ settings().clickFormGoal }}"
  23.                         >
  24.                             Подать заявку на расчет
  25.                         </a>
  26.                     </div>
  27.                     {% include '_parts/pattern.html.twig' with {'class': 'pattern_wide mortgage__pattern'} %}
  28.                 </div>
  29.                 {% if mortgageSettings is has_image('imageName') %}
  30.                     <div class="mortgage__picture-wrap">
  31.                         {% include '_parts/image/adaptive-image.html.twig' with {
  32.                             object: mortgageSettings,
  33.                             field: 'imageFile',
  34.                             size: 'mortgage_index_image',
  35.                             alt: 'Ипотека',
  36.                             class: 'mortgage__image',
  37.                             classPicture: 'mortgage__picture',
  38.                         } %}
  39.                     </div>
  40.                 {% endif %}
  41.             </div>
  42.         </div>
  43.     </div>
  44. {% endif %}