{% set class = class|default('') %}
{% set priceFrom = priceFrom|default(false) %}
{% set price = price|default('') %}
{% set squarePrice = squarePrice|default('') %}
{% set layout = layout|default(null) %}
{% set modalLink = modalLink|default('') %}
{% set modalId = modalId|default(0) %}
<div class="layout-price-block {{ class }}">
<div class="layout-price-block__title-wrap">
<h3 class="layout-price-block__title text__black-text">
{% if priceFrom %}от{% endif%} {{ price|price }}
</h3>
{% if squarePrice %}
<div class="layout-price-block__subtitle text__small">
или от {{ squarePrice|price }} за м²
</div>
{% endif %}
<a href="{{ path(modalLink, {'id': modalId}) }}"
title="Купить в Трейд-ин"
class="layout-price-block__trade-in link-icon link-icon_color"
data-goal-yandex-click="{{ settings().tradeInClickGoal }}"
data-goal-yandex-submit="{{ settings().tradeInSubmitGoal }}"
data-goal-vk-click="{{ settings().tradeInClickGoal }}"
data-goal-vk-submit="{{ settings().tradeInSubmitGoal }}"
data-modal
>
<span class="link-icon__icon">
{% include '_parts/icons/trade-in.svg' %}
</span>
<span class="link-icon__icon-two">
{% include '_parts/icons/trade-in.svg' %}
</span>
<span class="link-icon__text text__main01">
Купить в Трейд-ин
</span>
</a>
</div>
<div class="layout-price-block__share-wrap no-print">
{% if layout %}
<a href="{{ path('global-fav:toggle', {id: layout.id}) }}"
title="Избранное"
class="layout-price-block__link layout-price-block__fav"
data-global-fav-link
data-fav-goal="{{ settings().favGoal }}"
data-in-fav="{{ in_global_fav(layout) }}"
data-loading="false"
>
{% include '_parts/icons/heart.svg' %}
</a>
{% endif %}
<a href="javascript:void(0);"
title="print"
class="layout-price-block__link layout-price-block__print"
data-print-link
data-print-id="{{ idType }}{{ id }}"
>
{{ source('_parts/icons/print.svg') }}
</a>
<div class="layout-price-block__link layout-price-block__share"
data-share
></div>
</div>
</div>