templates/base.html.twig line 21

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html lang="{{ app.request.locale|split('_')[0] }}">
  3. <head>
  4.     <meta charset="utf-8">
  5.     <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6.     <meta name="viewport" content="width=device-width, initial-scale=1">
  7.     {% block meta %}
  8.         {% include "@SuluWebsite/Extension/seo.html.twig" with {
  9.             "seo": extension.seo|default([]),
  10.             "content": content|default([]),
  11.             "localizations": localizations|default([]),
  12.             "shadowBaseLocale": shadowBaseLocale|default(),
  13.         } %}
  14.     {% endblock %}
  15.     {% block style %}{% endblock %}
  16. </head>
  17. <body>
  18.     <header>
  19.         {% block header %}
  20.             <nav>
  21.                 <ul>
  22.                     <li>
  23.                         <a href="{{ sulu_content_root_path() }}">Homepage</a>
  24.                     </li>
  25.                     {% for item in sulu_navigation_root_tree('main') %}
  26.                         <li>
  27.                             <a href="{{ sulu_content_path(item.url, item.webspaceKey) }}"
  28.                                title="{{ item.title }}">{{ item.title }}</a>
  29.                         </li>
  30.                     {% endfor %}
  31.                 </ul>
  32.             </nav>
  33.         {% endblock %}
  34.     </header>
  35.     <form action="{{ path('sulu_search.website_search') }}" method="GET">
  36.         <input name="q" type="text" placeholder="Search"/>
  37.         <input type="submit" value="Go"/>
  38.     </form>
  39.     <main>
  40.         {% block content %}{% endblock %}
  41.     </main>
  42.     <footer>
  43.         {% block footer %}
  44.             <p>Copyright {{ 'now'|date('Y') }} SULU</p>
  45.         {% endblock %}
  46.     </footer>
  47.     {% block javascripts %}{% endblock %}
  48. </body>
  49. </html>