Dotclear

source: inc/admin/default-templates/layout.html.twig @ 1086:f0b43f3ddb56

Revision 1086:f0b43f3ddb56, 5.3 KB checked in by JcDenis, 13 years ago (diff)

Oops, forget some changes on XHTML validation

RevLine 
[1056]1{% import "js_helpers.html.twig" as js %}
[993]2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
[1060]3<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{{current_user.lang}}" lang="{{current_user.lang}}">
[993]4<head>
5     {% block header %}
6     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
[1060]7     <title>{% block title %}{{page_title}} - {% if current_blog.name is not empty %}{{current_blog.name}} - {% endif %}{{vendor_name}} - {{version}}{% endblock %}</title>
[993]8     <meta name="ROBOTS" content="NOARCHIVE,NOINDEX,NOFOLLOW" />
9     <meta name="GOOGLEBOT" content="NOSNIPPET" />
[1056]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 }}
[993]16     {% endblock %}
17</head>
18
[1072]19<body id="dotclear-admin{% if safe_mode %} safe-mode{% endif %}">
[993]20     <div id="header">
21          <ul id="prelude">
22               <li><a href="#content">{{__('To content')}}</a></li>
23               <li><a href="#main-menu">{{__('To menu')}}</a></li>
24          </ul>
[1056]25          <div id="top"><h1><a href="index.php">{{vendor_name}}</a></h1></div>
[993]26          <div id="info-boxes">
27               <div id="info-box1">
[1060]28                 {% form switchblog_menu %}
29                    {% if blog_count > 1 and blog_count < 20 %}
[1086]30                         <p>{{ form_field('switchblog') }}</p>
31                         <noscript><p>{{ form_field('switchblog_submit') }}</p></noscript>
[1060]32                    {% else %}
[1086]33                         <p>{{__('Blog:')}} <strong title="{{current_blog.url}}">{{current_blog.name}}</strong>
34                         {% if blogs is not empty %} - <a href="blogs.php">{{__('Change blog')}}</a>{% endif %}</p>
[1060]35                    {% endif %}
[1086]36                    <p><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>
[1060]37                 {% endform %}
[993]38               </div>
39               <div id="info-box2">
[1060]40                    <a {%if current_page == 'index' %}class="active" {% endif %}href="index.php">{{__('My dashboard')}}</a><span> | </span>
41                    <a {%if current_page == 'preferences' %}class="active" {% endif %}href="preferences.php">{{__('My preferences')}}</a><span> | </span>
42                    <a href="index.php?logout=1" class="logout">{{__('Logout %s')|format(current_user.id)}} <img src="images/logout.png" alt="" /></a>
[993]43               </div>
44          </div>
45     </div>
46     <div id="wrapper">
47          <div id="main">
48               <div id="content">
49                    {% block content %}
[1072]50                    {% if safe_mode %}
51                         <div class="error"><h3>{{__('Safe mode')}}</h3>
52                         <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>
53                         </div>
54                    {% endif %}
[1060]55                    <h2>{{current_blog.name}} &rsaquo; <span class="page-title">{{page_title}}</span></h2>
[1078]56                    {% if page_messages_static is not empty %}
57                         {% for message in page_messages_static %}
58                              <p class="static-msg">{{ message }}</p>
59                         {% endfor %}
60                    {% endif %}
61                    {% if page_messages_lists is not empty %}
62                         {% for title,messages in page_messages_lists %}
63                              <div class="static-msg">{{ title }}<ul>
64                              {% for message in messages %}
65                                   <li>{{ message }}</li>
66                              {% endfor %}
67                              </ul></div>
68                         {% endfor %}
69                    {% endif %}
[1053]70                    {% if page_message is not empty %}
71                         <p class="message">{{page_message}}</p>
72                    {% endif %}
73                    {% if page_errors is not empty %}
74                         <div class="error">
75                              <p><strong>Errors :</strong></p>
76                              <ul>
77                              {% for error in page_errors %}
78                                   <li>{{error}}</li>
79                              {% endfor %}
80                              </ul>
81                         </div>
82                    {% endif %}
83                    {% endblock %}
84
[993]85               </div>
86          </div>
87          <div id="main-menu">
[1064]88               {% block menus %}
89               {% for menu in menus %}
90               {% if menu.items is not empty %}
91               <div id="{{menu.id}}">
92                    {% if menu.title is not empty %}<h3>{{menu.title}}</h3>{% endif %}
93                    <ul>
94                    {% for item in menu.items %}
95                    {% spaceless %}
96                    <li {% if item.active or item.class is not empty %} class="{% if item.active %}active {% endif %}{{item.class}}"{% endif %}
97                    {% if item.id is not empty %}id="{{item.id}}" {% endif %}
98                    {% if item.img is not empty %} style="background-image: url({{item.img}});"{% endif %}
99                    ><a href="{{item.link}}"{{item.ahtml}}>{{item.title}}</a>
100                    {% if loop.last %}{{menu.separator}}{% endif %}</li>
101                    {% endspaceless %}
102                    {% endfor %}
103                    </ul>
104               </div>
105               {% endif %}
106               {% endfor %}
107               {% endblock %}
[993]108          </div>
109          <div id="footer">
110               {% block footer %}
[1056]111               <p>{{ __('Thank you for using %s.')|format(vendor_name) }}</p>
[993]112               {% endblock %}
113          </div>
114     </div>
[1071]115     {% block debug %}
116       {% set debug_info = debug_info() %}
117       {% if debug_info is not empty %}
118          <div id="debug"><div>
119          <p>memory usage: {{ debug_info.memory.usage }} ({{ debug_info.memory.size }})</p>
120          {% if debug_info.xdebug is not empty %}
121            <p>Elapsed time: {{ debug_info.xdebug.elapse_time }} seconds</p>
122            {% if debug_info.xdebug.profiler_file is not empty %}
123               <p>Profiler file : {{ debug_info.xdebug.profiler_file }}</p>
124            {% else %}
125               <p><a href="{{ debug_info.xdebug.profiler_url }}">Trigger profiler</a></p>
126            {% endif %}
127          {% endif %}
128          <p>Global vars: {{ debug_info.global_vars }}</p>
129          </div></div>
130       {% endif %}
131     {% endblock %}
[993]132     </body>
133</html>
Note: See TracBrowser for help on using the repository browser.

Sites map