templates/cms/node_page_bip.html.twig line 1

Open in your IDE?
  1. {% set _localized_node = node %}
  2. {% set _nomenu = node.vars.nomenu|default(false) %}
  3. {% extends 'base_bip.html.twig' %}
  4. {% block title %}{{ node.vars.meta_title|default(node.vars.title) }}{%endblock%}
  5. {% block content %}
  6. {% set has_module = false %}
  7. {% set has_product = false %}
  8. {% set page_slider_module = null %}
  9. {% if page_slider_module %}
  10. {% set slider = page_slider_module.children %}
  11. {% else %}
  12. {% set slider = load_nodes('slider').list %}
  13. {% endif %}
  14. <div id="content-start">
  15. <section class="news-section ">
  16. {% if not node.vars.notitle %}
  17. <div class="section-header">
  18. <h1>
  19. <span>{{ node.vars.title }}</span>
  20. </h1>
  21. </div>
  22. {% endif %}
  23. <!-- Dodatkowe moduły z CMS -->
  24. {% for m in modules.content %}
  25. <section class="node-module">{{ m|raw }}</section>
  26. {% endfor %}
  27. </section>
  28. </div>
  29. {% set bip_listing = node.vars.bip_listing|default(false) %}
  30. {% if not bip_listing %}
  31. <section class="info-section" @click="toggle">
  32. <span class="accordion-item-title">
  33. <span>Metryczka</span>
  34. <svg aria-label="Ikona menu">
  35. <use xlink:href="#chevron-down-icon"></use>
  36. </svg>
  37. </span>
  38. <div class="accordion-item-content">
  39. <div class="metadata">
  40. <span>Utworzono:</span> {{ node.vars.created_date|date('d.m.Y') }} przez {{node.vars.created_by}}<br/>
  41. {% if node.vars.updated_date %}
  42. <span>Edytowano:</span> {{ node.vars.updated_date|date('d.m.Y') }} przez {{ node.vars.updated_by }} <br/>
  43. {% endif %}
  44. {% if node.vars.publish_date %}
  45. <span>Opublikowano:</span> {{ node.vars.publish_date|date('d.m.Y') }} przez {{ node.vars.published_by }}<br/>
  46. {% endif %}
  47. </div>
  48. </div>
  49. </section>
  50. <section class="info-section" @click="toggle">
  51. <span class="accordion-item-title">
  52. <span>Załączniki</span>
  53. <svg aria-label="Ikona menu">
  54. <use xlink:href="#chevron-down-icon"></use>
  55. </svg>
  56. </span>
  57. <div class="accordion-item-content">
  58. <div class="move-files-section">
  59. </div>
  60. </div>
  61. </section>
  62. <section class="info-section" @click="toggle">
  63. <span class="accordion-item-title">
  64. <span>Historia zmian</span>
  65. <svg aria-label="Ikona menu">
  66. <use xlink:href="#chevron-down-icon"></use>
  67. </svg>
  68. </span>
  69. <div class="accordion-item-content">
  70. </div>
  71. </section>
  72. <script type="text/javascript">
  73. document.querySelectorAll('.files-section').forEach(function(section) {
  74. document.getElementsByClassName('move-files-section')[0].append(section);
  75. });
  76. </script>
  77. {% endif %}
  78. {% endblock %}
  79. {% block meta_keywords %}{{ node.vars.meta_keywords|default('') }}{% endblock %}
  80. {% block meta_description %}{{ node.vars.meta_description|default('') }}{% endblock %}
  81. {% block endhead %}
  82. {% if node.vars.norobots %}
  83. <meta name="robots" content="noindex, nofollow" />
  84. {% endif %}
  85. {% endblock %}