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 %}{% for part in page_title %}{{ part.title }} - {% endfor %}{% 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 | <link rel="stylesheet" href="{{theme_url}}style/default.css" type="text/css" media="screen" /> |
---|
11 | {% if rtl is not empty %} |
---|
12 | <link rel="stylesheet" href="{{theme_url}}style/default-rtl.css" type="text/css" media="screen" /> |
---|
13 | {% endif %} |
---|
14 | {{ js.load_IE7 }} |
---|
15 | {{ js.common }} |
---|
16 | {% endblock %} |
---|
17 | </head> |
---|
18 | |
---|
19 | <body id="dotclear-admin{% if safe_mode %} safe-mode{% endif %}"> |
---|
20 | <div id="header"> |
---|
21 | {% block prelude %} |
---|
22 | <ul id="prelude"> |
---|
23 | <li><a href="#content">{{__('To content')}}</a></li> |
---|
24 | <li><a href="#main-menu">{{__('To menu')}}</a></li> |
---|
25 | </ul> |
---|
26 | {% endblock %} |
---|
27 | <div id="top"><h1><a href="index.php">{{vendor_name}}</a></h1></div> |
---|
28 | <div id="info-boxes"> |
---|
29 | <div id="info-box1"> |
---|
30 | {% form 'switchblog_menu' %} |
---|
31 | {% if blog_count > 1 and blog_count < 20 %} |
---|
32 | {{ form_field('switchblog',{},{'nestedlabel' : true, labelclass:'classic'}) }} |
---|
33 | <noscript>{{ form_field('switchblog_submit') }}</noscript> |
---|
34 | {% else %} |
---|
35 | {{__('Blog:')}} <strong title="{{current_blog.url}}">{{current_blog.name}}</strong> |
---|
36 | {% if blogs is not empty %} - <a href="blogs.php">{{__('Change blog')}}</a>{% endif %} |
---|
37 | {% endif %} |
---|
38 | <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> |
---|
39 | {% endform %} |
---|
40 | </div> |
---|
41 | <div id="info-box2"> |
---|
42 | <a {%if current_page == 'index' %}class="active" {% endif %}href="index.php">{{__('My dashboard')}}</a><span> | </span> |
---|
43 | <a {%if current_page == 'preferences' %}class="active" {% endif %}href="preferences.php">{{__('My preferences')}}</a><span> | </span> |
---|
44 | <a href="index.php?logout=1" class="logout">{{__('Logout %s')|format(current_user.id)}} <img src="{{theme_url}}images/logout.png" alt="" /></a> |
---|
45 | </div> |
---|
46 | </div> |
---|
47 | </div> |
---|
48 | <div id="wrapper"> |
---|
49 | <div id="main"> |
---|
50 | <div id="content"> |
---|
51 | {% block content %} |
---|
52 | {% if safe_mode %} |
---|
53 | <div class="error"><h3>{{__('Safe mode')}}</h3> |
---|
54 | <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> |
---|
55 | </div> |
---|
56 | {% endif %} |
---|
57 | <h2> |
---|
58 | {%- if not page_global %}{{current_blog.name}} › {% endif %} |
---|
59 | {%- for part in page_title %} |
---|
60 | {%- if loop.last %}<span class="page-title">{% endif %} |
---|
61 | {%- if part.link is not empty %}<a href="{{ part.link }}">{{ part.title }}</a>{% else %}{{ part.title }}{% endif %} |
---|
62 | {%- if loop.last %}</span>{% else %} › {% endif %} |
---|
63 | {%- endfor -%} |
---|
64 | </h2> |
---|
65 | {% if messages.static is not empty %} |
---|
66 | {% for message in messages.static %} |
---|
67 | <p class="static-msg">{{ message }}</p> |
---|
68 | {% endfor %} |
---|
69 | {% endif %} |
---|
70 | {% if messages.lists is not empty %} |
---|
71 | {% for title,messages in messages.lists %} |
---|
72 | <div class="static-msg">{{ title }}<ul> |
---|
73 | {% for message in messages %} |
---|
74 | <li>{{ message }}</li> |
---|
75 | {% endfor %} |
---|
76 | </ul></div> |
---|
77 | {% endfor %} |
---|
78 | {% endif %} |
---|
79 | {% if messages.alert is not empty %} |
---|
80 | <p class="message">{{ messages.alert }}</p> |
---|
81 | {% endif %} |
---|
82 | {% if messages.errors is not empty %} |
---|
83 | <div class="error"> |
---|
84 | <p><strong>Errors :</strong></p> |
---|
85 | <ul> |
---|
86 | {% for error in messages.errors %} |
---|
87 | <li>{{ error }}</li> |
---|
88 | {% endfor %} |
---|
89 | </ul> |
---|
90 | </div> |
---|
91 | {% endif %} |
---|
92 | {% endblock %} |
---|
93 | |
---|
94 | </div> |
---|
95 | </div> |
---|
96 | <div id="main-menu"> |
---|
97 | {% block menus %} |
---|
98 | {% for menu in menus %} |
---|
99 | {% if menu.items is not empty %} |
---|
100 | <div id="{{menu.id}}"> |
---|
101 | {% if menu.title is not empty %}<h3>{{menu.title}}</h3>{% endif %} |
---|
102 | <ul> |
---|
103 | {% for item in menu.items %} |
---|
104 | {% spaceless %} |
---|
105 | <li {% if item.active or item.class is not empty %} class="{% if item.active %}active {% endif %}{{item.class}}"{% endif %} |
---|
106 | {% if item.id is not empty %}id="{{item.id}}" {% endif %} |
---|
107 | {% if item.img is not empty %} style="background-image: url({{item.img}});"{% endif %} |
---|
108 | ><a href="{{item.link}}"{{item.ahtml}}>{{item.title}}</a> |
---|
109 | {% if loop.last %}{{menu.separator}}{% endif %}</li> |
---|
110 | {% endspaceless %} |
---|
111 | {% endfor %} |
---|
112 | </ul> |
---|
113 | </div> |
---|
114 | {% endif %} |
---|
115 | {% endfor %} |
---|
116 | {% endblock %} |
---|
117 | </div> |
---|
118 | <div id="footer"> |
---|
119 | {% block footer %} |
---|
120 | <p>{{ __('Thank you for using %s.')|format(vendor_name) }}</p> |
---|
121 | {% endblock %} |
---|
122 | </div> |
---|
123 | </div> |
---|
124 | {% block debug %} |
---|
125 | {% set debug_info = debug_info() %} |
---|
126 | {% if debug_info is not empty %} |
---|
127 | <div id="debug"><div> |
---|
128 | <p>memory usage: {{ debug_info.memory.usage }} ({{ debug_info.memory.size }})</p> |
---|
129 | {% if debug_info.xdebug is not empty %} |
---|
130 | <p>Elapsed time: {{ debug_info.xdebug.elapse_time }} seconds</p> |
---|
131 | {% if debug_info.xdebug.profiler_file is not empty %} |
---|
132 | <p>Profiler file : {{ debug_info.xdebug.profiler_file }}</p> |
---|
133 | {% else %} |
---|
134 | <p><a href="{{ debug_info.xdebug.profiler_url }}">Trigger profiler</a></p> |
---|
135 | {% endif %} |
---|
136 | {% endif %} |
---|
137 | <p>Global vars: {{ debug_info.global_vars }}</p> |
---|
138 | </div></div> |
---|
139 | {% endif %} |
---|
140 | {% endblock %} |
---|
141 | </body> |
---|
142 | </html> |
---|