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}} - {% 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 | {% block more_header %}{% endblock %} |
---|
18 | </head> |
---|
19 | |
---|
20 | <body id="dotclear-admin{% if safe_mode %} safe-mode{% endif %}"> |
---|
21 | <div id="header"> |
---|
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 | <div id="top"><h1><a href="index.php">{{vendor_name}}</a></h1></div> |
---|
27 | <div id="info-boxes"> |
---|
28 | <div id="info-box1"> |
---|
29 | {% form switchblog_menu %} |
---|
30 | {% if blog_count > 1 and blog_count < 20 %} |
---|
31 | {{ form_field('switchblog') }} |
---|
32 | <noscript><div>{{ form_field('switchblog_submit') }}</div></noscript> |
---|
33 | {% else %} |
---|
34 | {{__('Blog:')}} <strong title="{{current_blog.url}}">{{current_blog.name}}</strong> |
---|
35 | {% if blogs is not empty %} - <a href="blogs.php">{{__('Change blog')}}</a>{% endif %} |
---|
36 | {% endif %} |
---|
37 | <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> |
---|
38 | {% endform %} |
---|
39 | </div> |
---|
40 | <div id="info-box2"> |
---|
41 | <a {%if current_page == 'index' %}class="active" {% endif %}href="index.php">{{__('My dashboard')}}</a><span> | </span> |
---|
42 | <a {%if current_page == 'preferences' %}class="active" {% endif %}href="preferences.php">{{__('My preferences')}}</a><span> | </span> |
---|
43 | <a href="index.php?logout=1" class="logout">{{__('Logout %s')|format(current_user.id)}} <img src="images/logout.png" alt="" /></a> |
---|
44 | </div> |
---|
45 | </div> |
---|
46 | </div> |
---|
47 | <div id="wrapper"> |
---|
48 | <div id="main"> |
---|
49 | <div id="content"> |
---|
50 | {% block content %} |
---|
51 | {% if safe_mode %} |
---|
52 | <div class="error"><h3>{{__('Safe mode')}}</h3> |
---|
53 | <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> |
---|
54 | </div> |
---|
55 | {% endif %} |
---|
56 | <h2>{{current_blog.name}} › <span class="page-title">{{page_title}}</span></h2> |
---|
57 | {% if page_message is not empty %} |
---|
58 | <p class="message">{{page_message}}</p> |
---|
59 | {% endif %} |
---|
60 | {% if page_errors is not empty %} |
---|
61 | <div class="error"> |
---|
62 | <p><strong>Errors :</strong></p> |
---|
63 | <ul> |
---|
64 | {% for error in page_errors %} |
---|
65 | <li>{{error}}</li> |
---|
66 | {% endfor %} |
---|
67 | </ul> |
---|
68 | </div> |
---|
69 | {% endif %} |
---|
70 | {% endblock %} |
---|
71 | |
---|
72 | </div> |
---|
73 | </div> |
---|
74 | <div id="main-menu"> |
---|
75 | {% block menus %} |
---|
76 | {% for menu in menus %} |
---|
77 | {% if menu.items is not empty %} |
---|
78 | <div id="{{menu.id}}"> |
---|
79 | {% if menu.title is not empty %}<h3>{{menu.title}}</h3>{% endif %} |
---|
80 | <ul> |
---|
81 | {% for item in menu.items %} |
---|
82 | {% spaceless %} |
---|
83 | <li {% if item.active or item.class is not empty %} class="{% if item.active %}active {% endif %}{{item.class}}"{% endif %} |
---|
84 | {% if item.id is not empty %}id="{{item.id}}" {% endif %} |
---|
85 | {% if item.img is not empty %} style="background-image: url({{item.img}});"{% endif %} |
---|
86 | ><a href="{{item.link}}"{{item.ahtml}}>{{item.title}}</a> |
---|
87 | {% if loop.last %}{{menu.separator}}{% endif %}</li> |
---|
88 | {% endspaceless %} |
---|
89 | {% endfor %} |
---|
90 | </ul> |
---|
91 | </div> |
---|
92 | {% endif %} |
---|
93 | {% endfor %} |
---|
94 | {% endblock %} |
---|
95 | </div> |
---|
96 | <div id="footer"> |
---|
97 | {% block footer %} |
---|
98 | <p>{{ __('Thank you for using %s.')|format(vendor_name) }}</p> |
---|
99 | {% endblock %} |
---|
100 | </div> |
---|
101 | </div> |
---|
102 | {% block debug %} |
---|
103 | {% set debug_info = debug_info() %} |
---|
104 | {% if debug_info is not empty %} |
---|
105 | <div id="debug"><div> |
---|
106 | <p>memory usage: {{ debug_info.memory.usage }} ({{ debug_info.memory.size }})</p> |
---|
107 | {% if debug_info.xdebug is not empty %} |
---|
108 | <p>Elapsed time: {{ debug_info.xdebug.elapse_time }} seconds</p> |
---|
109 | {% if debug_info.xdebug.profiler_file is not empty %} |
---|
110 | <p>Profiler file : {{ debug_info.xdebug.profiler_file }}</p> |
---|
111 | {% else %} |
---|
112 | <p><a href="{{ debug_info.xdebug.profiler_url }}">Trigger profiler</a></p> |
---|
113 | {% endif %} |
---|
114 | {% endif %} |
---|
115 | <p>Global vars: {{ debug_info.global_vars }}</p> |
---|
116 | </div></div> |
---|
117 | {% endif %} |
---|
118 | {% endblock %} |
---|
119 | </body> |
---|
120 | </html> |
---|