templates/base.html.twig line 1

Open in your IDE?
  1. <!doctype html>
  2. <html lang="{{ app.request.locale|split('_')[0] }}">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. {% block meta %}
  7. {% include "@SuluWebsite/Extension/seo.html.twig" with {
  8. "seo": extension.seo|default([]),
  9. "content": content|default([]),
  10. "localizations": localizations|default([]),
  11. "shadowBaseLocale": shadowBaseLocale|default(),
  12. } %}
  13. {% endblock %}
  14. {% block style %}
  15. {{ encore_entry_link_tags('app') }}
  16. {% endblock %}
  17. <title>d3v0n - Web-Developer</title>
  18. </head>
  19. <body>
  20. <header>
  21. {% block header %}
  22. <nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top">
  23. <div class="container-fluid">
  24. <a class="navbar-brand" href="{{ sulu_content_root_path() }}"><code class="fw-bold">d3v0n</code></a>
  25. <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
  26. <span class="navbar-toggler-icon"></span>
  27. </button>
  28. <div class="collapse navbar-collapse" id="navbarNav">
  29. <ul class="navbar-nav">
  30. {% for item in sulu_navigation_root_tree('main') %}
  31. <li class="nav-item">
  32. <a class="nav-link" aria-current="page" href="{{ sulu_content_path(item.url, item.webspaceKey) }}">{{ item.title }}</a>
  33. </li>
  34. {% endfor %}
  35. </ul>
  36. <form class="d-flex " role="search" action="{{ path('sulu_search.website_search') }}" method="GET">
  37. <input class="form-control me-2" type="search" placeholder="Search" aria-label="Search">
  38. <button class="btn btn-outline-success" type="submit">Search</button>
  39. </form>
  40. </div>
  41. </div>
  42. </nav>
  43. {% endblock %}
  44. </header>
  45. <main>
  46. {% block content %}{% endblock %}
  47. </main>
  48. <footer class="py3 bg-dark fixed-bottom">
  49. {% block footer %}
  50. <ul class="nav justify-content-center border-bottom pb-3 md-3">
  51. {% for item in sulu_navigation_root_tree('footer') %}
  52. <li class="nav-item">
  53. <a href="{{ sulu_content_path(item.url, item.webspaceKey) }}" class="nav-link px-2 text-muted">{{ item.title }}</a>
  54. </li>
  55. {% endfor %}
  56. </ul>
  57. <p class="text-center text-muted">&copy; {{ 'now'|date('Y') }} Thomas Nehrenberg</p>
  58. {% endblock %}
  59. </footer>
  60. {% block javascripts %}
  61. {{ encore_entry_script_tags('app') }}
  62. {% endblock %}
  63. </body>
  64. </html>