-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy pathbase.html.twig
61 lines (53 loc) · 1.74 KB
/
base.html.twig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<!DOCTYPE html>
<html lang="{{ app.request.locale|split('_')[0] }}">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
{% block meta %}
{% include "SuluWebsiteBundle:Extension:seo.html.twig" with {
"seo": extension.seo|default([]),
"content": content|default([]),
"urls": urls|default([]),
"shadowBaseLocale": shadowBaseLocale|default(),
"defaultLocale": app.request.locale
} %}
{% endblock %}
{% block style %}{% endblock %}
</head>
<body>
<header>
{% block header %}
<nav>
<ul>
<li>
<a href="{{ sulu_content_root_path() }}">Homepage</a>
</li>
{% for item in sulu_navigation_root_tree('main') %}
<li>
<a href="{{ sulu_content_path(item.url) }}"
title="{{ item.title }}">{{ item.title }}</a>
</li>
{% endfor %}
</ul>
</nav>
{% endblock %}
</header>
<form action="{{ path('sulu_search.website_search') }}" method="GET">
<input name="q" type="text" placeholder="Search"/>
<input type="submit" value="Go"/>
</form>
<section id="content">
{% block content %}{% endblock %}
</section>
<aside>
{% block aside %}{% endblock %}
</aside>
<footer>
{% block footer %}
<p>Copyright {{ 'now'|date('Y') }} SULU</p>
{% endblock %}
</footer>
{% block javascripts %}{% endblock %}
</body>
</html>