src/WebBundle/Resources/views/Page/index.html.twig line 1

Open in your IDE?
  1. {% extends '@Web/layout.html.twig' %}
  2. {% block title %}
  3.     {{ meta.title | raw }}
  4. {% endblock %}
  5. {% block meta %}
  6.     <meta name="keywords" content="{{ meta.keywords | raw }}" />
  7.     <meta name="description" content="{{ meta.description | raw }}" />
  8. {% endblock %}
  9. {% block stylesheets %}
  10.     {{ parent() }}
  11.     <link rel="stylesheet" href="{{ asset('_css/pages.min.css') }}" />
  12. {% endblock %}
  13. {% block javascripts %}
  14.     {{ parent() }}
  15.     <script type="text/javascript" src="{{ asset('_js/page.min.js') }}" charset="utf-8"></script>
  16. {% endblock %}
  17. {# для новых стилей docs страниц #}
  18. {% set isDoc = page.isAbout or page.isPayment or page.url == "conditions" %}
  19. {% block content %}
  20.     <div class="pages clearfix{% if isDoc %} docs{% endif %}">
  21.         <h1>{{ page.title }}</h1>
  22.         {% if page.commentShow %}
  23.             <span
  24.                 class="top-header-button heading-button first-of-type js-call-popup-button qa"
  25.                 data-target-id="comments-block"
  26.             >
  27.                 {{ 'comment_add_question' | trans }}
  28.             </span>
  29.             <span
  30.                 class="top-header-button heading-button js-call-popup-button"
  31.                 data-target-id="subscribe-block"
  32.             >
  33.                 {{ 'subscribe' | trans }}
  34.             </span>
  35.             {% include '@Web/Comment/comment-tab.html.twig' with {'unid': page.unid, 'entity': page.id, 'type': 4, 'place': 'top'} %}
  36.         {% endif %}
  37.         {% if linkEdit is defined and linkEdit != '' %}
  38.             [ <a href="{{ linkEdit }}" class="link-edit" target="_blank" rel="noopener">edit</a> ]
  39.         {% endif %}
  40.         {% if page.isPayment %}
  41.             <div class="price-warning price-warning-{{ userLocale() }}">
  42.                 {% if userCountry() == 'ru' %}
  43.                     <p>{{ 'page_price_warning' | trans({'%cur%': curLimit() }) | raw }}</p>
  44.                     <p>{{ 'page_price_warning_2' | trans({'%cur%': curLimit() }) | raw }}</p>
  45.                 {% else %}
  46.                     <p>{{ 'page_price_warning_new' | trans | raw }}</p>
  47.                 {% endif %}
  48.             </div>
  49.         {% endif %}
  50.     </div>
  51.     <div
  52.         class="body-content-page
  53.         {% if isDoc %} docs{% endif %}
  54.         {% if page.isPayment %} payment-and-delivery-page{% endif %}
  55.         {% if page.url == "conditions" %} conditions{% endif %}"
  56.     >
  57.         {{ page.body | raw }}
  58.     </div>
  59.     {% if page.commentShow %}
  60.         {% include '@Web/Comment/comment-tab.html.twig' with {'unid': page.unid, 'entity': page.id, 'type': 4, 'place': 'bottom'} %}
  61.     {% endif %}
  62. {% endblock %}