templates/cms/node_investments.html.twig line 1

Open in your IDE?
  1. {% set _localized_node = node %}
  2. {% set _nomenu = node.vars.nomenu|default(false) %}
  3. {% extends 'base.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. <section class="hero-section">
  15. <div id="hero-slider">
  16. <div class="simple-slider subpage">
  17. {% for slide in slider %}
  18. {% if slide.vars.photo %}
  19. <div class="slide slide-content">
  20. <img src="{{ asset(slide.vars.photo.path) }}" alt="Slajd {{ loop.index }}" class="slide-img">
  21. </div>
  22. {% endif %}
  23. {% endfor %}
  24. {% if slider|length > 1 %}
  25. <div class="slider-nav">
  26. <button class="slider-prev" aria-label="Poprzedni slajd"></button>
  27. <button class="slider-next" aria-label="Następny slajd"></button>
  28. </div>
  29. {% endif %}
  30. </div>
  31. </div>
  32. </section>
  33. <div id="content-start">
  34. <div class="container">
  35. {% set item = knp_menu_get_current_item(knp_menu_get('app.menu')) %}
  36. {% set breadcrumbs = knp_menu_get_breadcrumbs_array(item) %}
  37. <div class="wrap">
  38. <nav class="breadcrumbs">
  39. <a href="/">{{ 'homepage.homepage'|trans }}</a>
  40. {% for crumb in breadcrumbs %}
  41. {% if crumb.label != 'root' %}
  42. <span class="breadcrumbs-sep"><i class="icon-arrow-right4"></i></span>
  43. {% if loop.last %}
  44. <span class="breadcrumbs-current">{{ crumb.label }}</span>
  45. {% else %}
  46. <a href="{{ crumb.uri }}">{{ crumb.label }}</a>
  47. {% endif %}
  48. {% endif %}
  49. {% endfor %}
  50. </nav>
  51. </div>
  52. <section class="news-section ">
  53. <div class="section-header">
  54. <h1>
  55. <span>{{ node.vars.title }}</span>
  56. </h1>
  57. </div>
  58. <!-- Dodatkowe moduły z CMS -->
  59. {% for m in modules.content %}
  60. <section class="node-module">{{ m|raw }}</section>
  61. {% endfor %}
  62. </section>
  63. {% endblock %}
  64. {% block meta_keywords %}{{ node.vars.meta_keywords|default('') }}{% endblock %}
  65. {% block meta_description %}{{ node.vars.meta_description|default('') }}{% endblock %}
  66. {% block privacy_policy %}
  67. {% if node.vars.has('privacy_policy') and node.vars.privacy_policy %}
  68. {{ node.vars.privacy_policy|raw }}
  69. {% else %}
  70. {{ sett('contact_privacy_policy_full')|raw }}
  71. {% endif %}
  72. {% endblock %}
  73. {% block endhead %}
  74. {% if node.vars.norobots %}
  75. <meta name="robots" content="noindex, nofollow" />
  76. {% endif %}
  77. {% endblock %}