{% extends '@Web/layout.html.twig' %}
{% block title %}
{{ meta.title | raw }}
{% endblock %}
{% block meta %}
<meta name="keywords" content="{{ meta.keywords | raw }}" />
<meta name="description" content="{{ meta.description | raw }}" />
{% endblock %}
{% block stylesheets %}
{{ parent() }}
<link rel="stylesheet" href="{{ asset('_css/pages.min.css') }}" />
{% endblock %}
{% block javascripts %}
{{ parent() }}
<script type="text/javascript" src="{{ asset('_js/page.min.js') }}" charset="utf-8"></script>
{% endblock %}
{# для новых стилей docs страниц #}
{% set isDoc = page.isAbout or page.isPayment or page.url == "conditions" %}
{% block content %}
<div class="pages clearfix{% if isDoc %} docs{% endif %}">
<h1>{{ page.title }}</h1>
{% if page.commentShow %}
<span
class="top-header-button heading-button first-of-type js-call-popup-button qa"
data-target-id="comments-block"
>
{{ 'comment_add_question' | trans }}
</span>
<span
class="top-header-button heading-button js-call-popup-button"
data-target-id="subscribe-block"
>
{{ 'subscribe' | trans }}
</span>
{% include '@Web/Comment/comment-tab.html.twig' with {'unid': page.unid, 'entity': page.id, 'type': 4, 'place': 'top'} %}
{% endif %}
{% if linkEdit is defined and linkEdit != '' %}
[ <a href="{{ linkEdit }}" class="link-edit" target="_blank" rel="noopener">edit</a> ]
{% endif %}
{% if page.isPayment %}
<div class="price-warning price-warning-{{ userLocale() }}">
{% if userCountry() == 'ru' %}
<p>{{ 'page_price_warning' | trans({'%cur%': curLimit() }) | raw }}</p>
<p>{{ 'page_price_warning_2' | trans({'%cur%': curLimit() }) | raw }}</p>
{% else %}
<p>{{ 'page_price_warning_new' | trans | raw }}</p>
{% endif %}
</div>
{% endif %}
</div>
<div
class="body-content-page
{% if isDoc %} docs{% endif %}
{% if page.isPayment %} payment-and-delivery-page{% endif %}
{% if page.url == "conditions" %} conditions{% endif %}"
>
{{ page.body | raw }}
</div>
{% if page.commentShow %}
{% include '@Web/Comment/comment-tab.html.twig' with {'unid': page.unid, 'entity': page.id, 'type': 4, 'place': 'bottom'} %}
{% endif %}
{% endblock %}