-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadmin-layout.tpl
More file actions
242 lines (187 loc) · 9.85 KB
/
Copy pathadmin-layout.tpl
File metadata and controls
242 lines (187 loc) · 9.85 KB
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
{* -- By default, check admin login ----------------------------------------- *}
{block name="check-auth"}
{check_auth role="ADMIN" resource="{block name="check-resource"}{/block}" module="{block name="check-module"}{/block}" access="{block name="check-access"}{/block}" login_tpl="/admin/login"}
{/block}
{block name="no-return-functions"}{/block}
{* -- Define some stuff for Smarty ------------------------------------------ *}
{config_load file='variables.conf'}
{* -- Declare assets directory, relative to template base directory --------- *}
{declare_assets directory='assets'}
{* Set the default translation domain, that will be used by {intl} when the 'd' parameter is not set *}
{default_translation_domain domain='bo.default'}
<!DOCTYPE html>
<html lang="{$lang_code}">
<head>
<meta charset="utf-8">
<title>{block name="page-title"}Default Page Title{/block} - {intl l='Thelia Back Office'}</title>
<link rel="shortcut icon" href="{image file='assets/img/favicon.ico'}" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
{block name="meta"}{/block}
{* <link rel="stylesheet" href="//fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400italic,600,700%7COpen+Sans:300,400,400italic,600,700"> *}
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Lato|Quicksand:500">
{* -- Bootstrap CSS section --------------------------------------------- *}
{block name="before-bootstrap-css"}{/block}
{stylesheets file='assets/css/fontawesome/all.min.css'}
<link rel="stylesheet" href="{$asset_url}">
{/stylesheets}
<link rel="stylesheet" href="{stylesheet file='assets/css/styles.css'}">
{* {stylesheets file='assets/less/main.less' filters="less"}
<link rel="stylesheet" href="{$asset_url}">
{/stylesheets} *}
{block name="after-bootstrap-css"}{/block}
{* -- Admin CSS section ------------------------------------------------- *}
{block name="before-admin-css"}{/block}
{block name="after-admin-css"}{/block}
{* Modules css are included here *}
{hook name="main.head-css" location="head_css" }
{* HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries *}
<!--[if lt IE 9]>
<script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
{javascripts file='assets/js/libs/respond.min.js'}
<script src="{$asset_url}"></script>
{/javascripts}
<![endif]-->
</head>
<body>
<div id="wrapper">
{* display top bar only if admin is connected *}
{loop name="top-bar-auth" type="auth" role="ADMIN"}
{* -- Brand bar section ------------------------------------------------- *}
{hook name="main.before-topbar" location="before_topbar" }
<!-- Navigation -->
<nav class="navbar navbar-default navbar-static-top" role="navigation">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span></span>
</button>
<a class="navbar-brand" href="{url path='/admin/home'}">
{images file='assets/img/logo-white.png'}
<img src="{$asset_url}" alt="{intl l='Version %ver' ver="{$THELIA_VERSION}"}">
<span>{intl l='Version %ver' ver="{$THELIA_VERSION}"}</span>
{/images}
</a>
</div>
<!-- /.navbar-header -->
<ul class="nav navbar-top-links navbar-right">
{hook name="main.topbar-top" }
<li>
<a href="{navigate to="index"}" title="{intl l='View site'}" target="_blank"><span class="glyphicon glyphicon-eye-open"></span> {intl l="View shop"}</a>
</li>
<li class="dropdown">
<button class="dropdown-toggle" data-toggle="dropdown">
<span class="glyphicon glyphicon-user"></span> {admin attr="firstname"} {admin attr="lastname"}
<span class="caret"></span>
</button>
<ul class="dropdown-menu dropdown-menu-right">
<li><a class="profile" href="{url path='admin/configuration/administrators/view'}"><span class="glyphicon glyphicon-edit"></span> {intl l="Profil"}</a></li>
<li><a class="logout" href="{url path='admin/logout'}" title="{intl l='Close administation session'}"><span class="glyphicon glyphicon-off"></span> {intl l="Logout"}</a></li>
</ul>
</li>
<li class="dropdown">
{loop type="lang" name="ui-lang" id={lang attr='id'} backend_context="1"}
<button class="dropdown-toggle" data-toggle="dropdown">
<img src="{image file="assets/img/flags/{$CODE}.png"}" alt="{$TITLE}" /> {$CODE|ucfirst}
<span class="caret"></span>
</button>
{/loop}
<ul class="dropdown-menu">
{loop type="lang" name="ui-lang" backend_context="1"}
<li><a href="{url path="{navigate to="current"}" lang={$CODE}}"><img src="{image file="assets/img/flags/{$CODE}.png"}" alt="{$TITLE}" /> {$CODE|ucfirst}</a></li>
{/loop}
</ul>
</li>
</ul>
<!-- /.navbar-top-links -->
<div class="navbar-default sidebar" role="navigation">
<div class="sidebar-nav navbar-collapse">
{include file="includes/main-menu.html"}
{hook name="main.inside-topbar" location="inside_topbar" }
</div>
<!-- /.sidebar-collapse -->
</div>
<!-- /.navbar-static-side -->
{hook name="main.after-topbar" location="after_topbar" }
</nav>
<div id="page-wrapper">
<div class="row">
<div class="col-lg-12">
<h1 class="page-header">{block name="page-title"}{/block}</h1>
</div>
<!-- /.col-lg-12 -->
</div>
<!-- /.row -->
{* -- Main page content section ----------------------------------------- *}
{hook name="main.before-content" location="before_content"}
<div class="row">
{block name="main-content"}Put here the content of the template{/block}
</div>
{hook name="main.after-content" location="after_content"}
</div>
{/loop}
{hook name="main.before-footer" location="before_footer" }
<footer class="footer">
<div class="text-center">
<p class="text-center">© Thelia <time datetime="{'Y-m-d'|date}">{'Y'|date}</time>
- <a href="http://www.openstudio.fr/" target="_blank">{intl l='Published by OpenStudio'}</a>
- <a href="http://thelia.net/forum" target="_blank">{intl l='Thelia support forum'}</a>
- <a href="http://thelia.net/modules" target="_blank">{intl l='Thelia contributions'}</a>
</p>
{hook name="main.in-footer" location="in_footer" }
</div>
<ul id="follow-us" class="list-unstyled list-inline">
<li>
<a href="https://twitter.com/theliaecommerce" target="_blank">
<span class="icon-twitter"></span>
</a>
</li>
<li>
<a href="https://www.facebook.com/theliaecommerce" target="_blank">
<span class="icon-facebook"></span>
</a>
</li>
<li>
<a href="https://github.com/thelia/thelia" target="_blank">
<span class="icon-github"></span>
</a>
</li>
</ul>
</footer>
{hook name="main.after-footer" location="after_footer" }
</div> <!-- #wrapper -->
{* -- Javascript section ------------------------------------------------ *}
{block name="before-javascript-include"}{/block}
<script src="//code.jquery.com/jquery-2.0.3.min.js"></script>
<script>
if (typeof jQuery == 'undefined') {
{javascripts file='assets/js/libs/jquery.js'}
document.write(unescape("%3Cscript src='{$asset_url}' %3E%3C/script%3E"));
{/javascripts}
}
</script>
{block name="after-javascript-include"}{/block}
{javascripts file='assets/js/bootstrap/bootstrap.js'}
<script src="{$asset_url}"></script>
{/javascripts}
{javascripts file='assets/js/libs/jquery.toolbar.min.js'}
<script src="{$asset_url}"></script>
{/javascripts}
{javascripts file='assets/js/libs/metis-menu.min.js'}
<script src="{$asset_url}"></script>
{/javascripts}
{javascripts file='assets/js/sortable/sortable.min.js'}
<script src="{$asset_url}"></script>
{/javascripts}
{block name="javascript-initialization"}{/block}
{javascripts file='assets/js/sortable-lists.js'}
<script src="{$asset_url}"></script>
{/javascripts}
{javascripts file='assets/js/main.js'}
<script src="{$asset_url}"></script>
{/javascripts}
{* Modules scripts are included now *}
{hook name='main.footer-js' location="footer_js"}
{block name="javascript-last-call"}{/block}
</body>
</html>