1 | {% import "js_helpers.html.twig" as js %} |
---|
2 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
---|
3 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{{current_user.lang}}" lang="{{current_user.lang}}"> |
---|
4 | <head> |
---|
5 | {% block header %} |
---|
6 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
---|
7 | <title>{% block title %}{{ (page_title|last).title|striptags }} - {% if current_blog.name is not empty %}{{current_blog.name}} - {% endif %}{{vendor_name}} - {{version}}{% endblock %}</title> |
---|
8 | <meta name="ROBOTS" content="NOARCHIVE,NOINDEX,NOFOLLOW" /> |
---|
9 | <meta name="GOOGLEBOT" content="NOSNIPPET" /> |
---|
10 | <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
---|
11 | <link rel="stylesheet" href="{{theme_url}}style/default.css" type="text/css" media="screen" /> |
---|
12 | <link rel="icon" type="image/png" href="images/favicon.png" /> |
---|
13 | {% if rtl is not empty %} |
---|
14 | <link rel="stylesheet" href="{{theme_url}}style/default-rtl.css" type="text/css" media="screen" /> |
---|
15 | {% endif %} |
---|
16 | {{ js.load_IE7 }} |
---|
17 | {{ js.common }} |
---|
18 | {% endblock %} |
---|
19 | </head> |
---|
20 | |
---|
21 | <body id="dotclear-admin{% if safe_mode %} safe-mode{% endif %}"> |
---|
22 | <div id="header"> |
---|
23 | {% block prelude %} |
---|
24 | <ul id="prelude"> |
---|
25 | <li><a href="#content">{{__('To content')}}</a></li> |
---|
26 | <li><a href="#main-menu">{{__('To menu')}}</a></li> |
---|
27 | </ul> |
---|
28 | {% endblock %} |
---|
29 | <div id="top"><h1><a href="index.php">{{vendor_name}}</a></h1></div> |
---|
30 | <div id="info-boxes"> |
---|
31 | <div id="info-box1"> |
---|
32 | {% form 'switchblog_menu' %} |
---|
33 | |
---|
34 | {% if blog_count > 1 and blog_count < 20 %} |
---|
35 | {{ form_field('switchblog',{},{'labelclass':'classic nomobile'}) }} |
---|
36 | <noscript>{{ form_field('switchblog_submit') }}</noscript> |
---|
37 | {% else %} |
---|
38 | {{__('Blog:')}} <strong title="{{current_blog.url}}">{{current_blog.name}}</strong> |
---|
39 | {% if blogs is not empty %} - <a href="blogs.php">{{__('Change blog')}}</a>{% endif %} |
---|
40 | {% endif %} |
---|
41 | <p class="nomobile"><a href="{{current_blog.url}}" onclick="window.open(this.href);return false;" title="{{__('Go to site')}} ({{__('new window')}})">{{__('Go to site')}} <img src="{{theme_url}}images/outgoing.png" alt="" /></a></p> |
---|
42 | {% endform %} |
---|
43 | </div> |
---|
44 | <div id="info-box2"> |
---|
45 | <a class="smallscreen{%if current_page == 'index' %} active" {% endif %}" href="index.php">{{__('My dashboard')}}</a><span class="smallscreen"> | </span> |
---|
46 | <a class="smallscreen{%if current_page == 'preferences' %} active" {% endif %}" href="preferences.php">{{__('My preferences')}}</a><span class="smallscreen"> | </span> |
---|
47 | <a href="index.php?logout=1" class="logout">{{__('Logout %s')|format(current_user.id)}} <img src="{{theme_url}}images/logout.png" alt="" /></a> |
---|
48 | </div> |
---|
49 | </div> |
---|
50 | </div> |
---|
51 | <div id="wrapper"> |
---|
52 | <div id="main"> |
---|
53 | <div id="content"> |
---|
54 | {% block content %} |
---|
55 | {% if safe_mode %} |
---|
56 | <div class="error"><h3>{{__('Safe mode')}}</h3> |
---|
57 | <p>{{__('You are in safe mode. All plugins have been temporarily disabled. Remind to log out then log in again normally to get back all functionalities')}}</p> |
---|
58 | </div> |
---|
59 | {% endif %} |
---|
60 | <h2> |
---|
61 | {#{%- if not page_global %}{{current_blog.name}} › {% endif %}#} |
---|
62 | {%- for part in page_title %} |
---|
63 | {%- if loop.last %}<span class="page-title">{% endif %} |
---|
64 | {%- if part.link is not empty %}<a href="{{ part.link }}"{% if part.class is not empty %} class="{{part.class}}"{% endif %}>{{ part.title }}</a>{% else %}{{ part.title }}{% endif %} |
---|
65 | {%- if loop.last %}</span>{% else %} {% if loop.index0 == 1 %} : {% else %} › {% endif %}{% endif %} |
---|
66 | {%- endfor -%} |
---|
67 | </h2> |
---|
68 | {% if messages.static is not empty %} |
---|
69 | {% for message in messages.static %} |
---|
70 | <p class="static-msg">{{ message }}</p> |
---|
71 | {% endfor %} |
---|
72 | {% endif %} |
---|
73 | {% if messages.lists is not empty %} |
---|
74 | {% for title,messages in messages.lists %} |
---|
75 | <div class="static-msg">{{ title }}<ul> |
---|
76 | {% for message in messages %} |
---|
77 | <li>{{ message }}</li> |
---|
78 | {% endfor %} |
---|
79 | </ul></div> |
---|
80 | {% endfor %} |
---|
81 | {% endif %} |
---|
82 | {% if messages.alert is not empty %} |
---|
83 | <p class="message">{{ messages.alert }}</p> |
---|
84 | {% endif %} |
---|
85 | {% if messages.errors is not empty %} |
---|
86 | <div class="error"> |
---|
87 | <p><strong>Errors :</strong></p> |
---|
88 | <ul> |
---|
89 | {% for error in messages.errors %} |
---|
90 | <li>{{ error }}</li> |
---|
91 | {% endfor %} |
---|
92 | </ul> |
---|
93 | </div> |
---|
94 | {% endif %} |
---|
95 | {% endblock %} |
---|
96 | |
---|
97 | </div> |
---|
98 | </div> |
---|
99 | <div id="main-menu"> |
---|
100 | {% block menus %} |
---|
101 | {% form 'search-menu' with {'id':'search-menu'} %} |
---|
102 | <p> {{ form_field('q',{'size':30},{'labelclass':'hidden'}) }} |
---|
103 | {{ form_field('ok') }} |
---|
104 | </p> |
---|
105 | {% endform %} |
---|
106 | {% for menu in menus %} |
---|
107 | {% if menu.items is not empty %} |
---|
108 | <div id="{{menu.id}}"> |
---|
109 | {% if menu.title is not empty %}<h3>{{menu.title}}</h3>{% endif %} |
---|
110 | <ul> |
---|
111 | {% for item in menu.items %} |
---|
112 | {% spaceless %} |
---|
113 | <li {% if item.active or item.class is not empty %} class="{% if item.active %}active {% endif %}{{item.class}}"{% endif %} |
---|
114 | {% if item.id is not empty %}id="{{item.id}}" {% endif %} |
---|
115 | {% if item.img is not empty %} style="background-image: url({{item.img}});"{% endif %} |
---|
116 | ><a href="{{item.link}}"{{item.ahtml}}>{{item.title}}</a> |
---|
117 | {% if loop.last %}{{menu.separator}}{% endif %}</li> |
---|
118 | {% endspaceless %} |
---|
119 | {% endfor %} |
---|
120 | </ul> |
---|
121 | </div> |
---|
122 | {% endif %} |
---|
123 | {% endfor %} |
---|
124 | {% endblock %} |
---|
125 | </div> |
---|
126 | <div id="footer"> |
---|
127 | {% block footer %} |
---|
128 | <p>{{ __('Thank you for using %s.')|format(vendor_name) }}</p> |
---|
129 | {% endblock %} |
---|
130 | </div> |
---|
131 | </div> |
---|
132 | {#{% block debug %} |
---|
133 | {% set debug_info = debug_info() %} |
---|
134 | {% if debug_info is not empty %} |
---|
135 | <div id="debug"><div> |
---|
136 | <p>memory usage: {{ debug_info.memory.usage }} ({{ debug_info.memory.size }})</p> |
---|
137 | {% if debug_info.xdebug is not empty %} |
---|
138 | <p>Elapsed time: {{ debug_info.xdebug.elapse_time }} seconds</p> |
---|
139 | {% if debug_info.xdebug.profiler_file is not empty %} |
---|
140 | <p>Profiler file : {{ debug_info.xdebug.profiler_file }}</p> |
---|
141 | {% else %} |
---|
142 | <p><a href="{{ debug_info.xdebug.profiler_url }}">Trigger profiler</a></p> |
---|
143 | {% endif %} |
---|
144 | {% endif %} |
---|
145 | <p>Global vars: {{ debug_info.global_vars }}</p> |
---|
146 | </div></div> |
---|
147 | {% endif %} |
---|
148 | {% endblock %}#} |
---|
149 | </body> |
---|
150 | </html> |
---|