/
pagelayout.html.twig
88 lines (82 loc) · 3 KB
/
pagelayout.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<!DOCTYPE html>
<!--[if lt IE 9 ]><html class="unsupported-ie ie" lang="{{ app.request.locale }}"><![endif]-->
<!--[if IE 9 ]><html class="ie ie9" lang="{{ app.request.locale }}"><![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--><html lang="{{ app.request.locale }}"><!--<![endif]-->
<head>
{# TODO: this probably won't be needed anymore as we will relay on the HTTP cache #}
{% include 'eZDemoBundle::page_head_displaystyles.html.twig' %}
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
{% block page_head %}
{% include 'eZDemoBundle::page_head.html.twig' %}
{% endblock %}
{% include 'eZDemoBundle::page_head_style.html.twig' %}
{% include 'eZDemoBundle::page_head_script.html.twig' %}
</head>
<body>
{% if location is defined and not location.isDraft %}
{% set currentLocation=location %}
{% endif %}
<!-- Complete page area: START -->
{{ render_esi(
controller(
"ezpublish_legacy.website_toolbar.controller:websiteToolbarAction",
{
'locationId': currentLocation.id|default( null ),
'originalSemanticPathInfo': ezpublish.requestedUriString
}
)
) }}
<div id="page" class="">
<!-- Header area: START -->
{% block header %}
{% include 'eZDemoBundle::page_header.html.twig' %}
{% endblock %}
<!-- Header area: END -->
<div class="navbar main-navi">
<!-- Top menu area: START -->
{% block topMenu %}
{{ render(
controller(
"eZDemoBundle:Menu:topMenu",
{'currentLocationId': currentLocation is defined ? currentLocation.id : null}
)
) }}
{% endblock %}
<!-- Top menu area: END -->
{# TODO: implement logic to control path visibility #}
<!-- Path area: START -->
{% if pageData is defined and pageData.showPath %}
{% block path %}
{% include 'eZDemoBundle::page_toppath.html.twig' %}
{% endblock %}
{% endif %}
<!-- Path area: END -->
</div>
<div class="container">
{% block breadcrumb %}
{% if currentLocation is defined %}
{{ render( controller( 'eZDemoBundle:Demo:viewBreadcrumb', { 'locationId': currentLocation.id } ) ) }}
{% endif %}
{% endblock %}
<div class="row">
<!-- Main area: START -->
<div class="span{{ innerColumnSize|default( 12 ) }} main-content">
{% block content %}{% endblock %}
</div>
<!-- Main area: END -->
</div>
</div>
<!-- Footer area: START -->
{% block footer %}
{{ render( controller( "eZDemoBundle:Footer:index" ) ) }}
{% endblock %}
<!-- Footer area: END -->
</div>
<!-- Complete page area: END -->
<!-- Footer script area: START -->
{% block footerScript %}
{% include 'eZDemoBundle::page_footer_script.html.twig' %}
{% endblock %}
<!-- Footer script area: END -->
</body>
</html>