templates/_parts/realty/_layout-price-block.html.twig line 1

Open in your IDE?
  1. {% set class = class|default('') %}
  2. {% set priceFrom = priceFrom|default(false) %}
  3. {% set price = price|default('') %}
  4. {% set squarePrice = squarePrice|default('') %}
  5. {% set layout = layout|default(null) %}
  6. {% set modalLink = modalLink|default('') %}
  7. {% set modalId = modalId|default(0) %}
  8. <div class="layout-price-block {{ class }}">
  9.     <div class="layout-price-block__title-wrap">
  10.         <h3 class="layout-price-block__title text__black-text">
  11.             {% if priceFrom %}от{% endif%} {{ price|price }}
  12.         </h3>
  13.         {% if squarePrice %}
  14.             <div class="layout-price-block__subtitle text__small">
  15.                 или от {{ squarePrice|price }} за м²
  16.             </div>
  17.         {% endif %}
  18.         <a href="{{ path(modalLink, {'id': modalId}) }}"
  19.            title="Купить в Трейд-ин"
  20.            class="layout-price-block__trade-in link-icon link-icon_color"
  21.            data-goal-yandex-click="{{ settings().tradeInClickGoal }}"
  22.            data-goal-yandex-submit="{{ settings().tradeInSubmitGoal }}"
  23.            data-goal-vk-click="{{ settings().tradeInClickGoal }}"
  24.            data-goal-vk-submit="{{ settings().tradeInSubmitGoal }}"
  25.            data-modal
  26.         >
  27.             <span class="link-icon__icon">
  28.                 {% include '_parts/icons/trade-in.svg' %}
  29.             </span>
  30.             <span class="link-icon__icon-two">
  31.                 {% include '_parts/icons/trade-in.svg' %}
  32.             </span>
  33.             <span class="link-icon__text text__main01">
  34.                 Купить в Трейд-ин
  35.             </span>
  36.         </a>
  37.     </div>
  38.     <div class="layout-price-block__share-wrap no-print">
  39.         {% if layout %}
  40.             <a href="{{ path('global-fav:toggle', {id: layout.id}) }}"
  41.                title="Избранное"
  42.                class="layout-price-block__link layout-price-block__fav"
  43.                data-global-fav-link
  44.                data-fav-goal="{{ settings().favGoal }}"
  45.                data-in-fav="{{ in_global_fav(layout) }}"
  46.                data-loading="false"
  47.             >
  48.                 {% include '_parts/icons/heart.svg' %}
  49.             </a>
  50.         {% endif %}
  51.         <a href="javascript:void(0);"
  52.            title="print"
  53.            class="layout-price-block__link layout-price-block__print"
  54.            data-print-link
  55.            data-print-id="{{ idType }}{{ id }}"
  56.         >
  57.             {{ source('_parts/icons/print.svg') }}
  58.         </a>
  59.         <div class="layout-price-block__link layout-price-block__share"
  60.              data-share
  61.         ></div>
  62.     </div>
  63. </div>