templates/_menu/left_compact_view.html.twig line 1

Open in your IDE?
  1. {% macro list_menu(children) %}
  2.     {% for child in children %}
  3.         <li><a href="{{ child.uri }}">{{ child.label|trans({}, 'left_menu') }}</a></li>
  4.     {% endfor %}
  5. {% endmacro %}
  6. {% from _self import list_menu %}
  7. {% if item.Districts is defined %}
  8.     {% set currentCity = app.request.get('city') %}
  9.     <div>
  10.         <a href="{{ item.Districts.uri }}" class="btn btn-primary">
  11.             {% trans with {'%ofCity%': currentCity.name|trans({}, 'left_menu')|geo_name('genitive')} from 'left_menu' %}Районы %ofCity%{% endtrans %}
  12.         </a>
  13.     </div>
  14. {% endif %}
  15. <ul class="list-unstyled">
  16.     {{ list_menu(item.Base) }}
  17. </ul>
  18. {% if item.Additionally is defined %}
  19.     <p><strong>{% trans with {} from 'left_menu' %}Дополнительно{% endtrans %}</strong></p>
  20.     <ul class="list-unstyled">
  21.         {{ list_menu(item.Additionally) }}
  22.     </ul>
  23. {% endif %}
  24. {% if item.Elite is defined %}
  25.     <p><strong>{% trans with {} from 'left_menu' %}Элитные{% endtrans %}</strong></p>
  26.     <ul class="list-unstyled">
  27.         {{ list_menu(item.Elite) }}
  28.     </ul>
  29. {% endif %}
  30. <p><strong>{% trans with {} from 'left_menu' %}Цена{% endtrans %}</strong></p>
  31. <ul class="list-unstyled">
  32.     {{ list_menu(item.Price) }}
  33. </ul>
  34. {% if item.Gender is defined %}
  35.     <p><strong>{% trans with {} from 'left_menu' %}Пол{% endtrans %}</strong></p>
  36.     <ul class="list-unstyled">
  37.         {{ list_menu(item.Gender) }}
  38.     </ul>
  39. {% endif %}
  40. <p><strong>{% trans with {} from 'left_menu' %}Возраст{% endtrans %}</strong></p>
  41. <ul class="list-unstyled">
  42.     {{ list_menu(item.Age) }}
  43. </ul>
  44. {% if item.Height is defined %}
  45.     <p><strong>{% trans with {} from 'left_menu' %}Рост{% endtrans %}</strong></p>
  46.     <ul class="list-unstyled">
  47.         {{ list_menu(item.Height) }}
  48.     </ul>
  49. {% endif %}
  50. <p><strong>{% trans with {} from 'left_menu' %}Цвет волос{% endtrans %}</strong></p>
  51. <ul class="list-unstyled">
  52.     {{ list_menu(item.HairColor) }}
  53. </ul>
  54. <p><strong>{% trans with {} from 'left_menu' %}Телосложение{% endtrans %}</strong></p>
  55. <ul class="list-unstyled">
  56.     {{ list_menu(item.BodyType) }}
  57. </ul>
  58. {% if item.BreastType is defined %}
  59.     <p><strong>{% trans with {} from 'left_menu' %}Тип груди{% endtrans %}</strong></p>
  60.     <ul class="list-unstyled">
  61.         {{ list_menu(item.BreastType) }}
  62.     </ul>
  63. {% endif %}
  64. {% if item.Place is defined %}
  65.     <p><strong>{% trans with {} from 'left_menu' %}Место{% endtrans %}</strong></p>
  66.     <ul class="list-unstyled">
  67.         {{ list_menu(item.Place) }}
  68.     </ul>
  69. {% endif %}
  70. {% if item.PrivateHaircut is defined %}
  71.     <p><strong>{% trans with {} from 'left_menu' %}Интимная стрижка{% endtrans %}</strong></p>
  72.     <ul class="list-unstyled">
  73.         {{ list_menu(item.PrivateHaircut) }}
  74.     </ul>
  75. {% endif %}
  76. <p><strong>{% trans with {} from 'left_menu' %}Национальность{% endtrans %}</strong></p>
  77. <ul class="list-unstyled">
  78.     {{ list_menu(item.Nationality) }}
  79. </ul>