[1507] | 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 | <meta name="ROBOTS" content="NOARCHIVE,NOINDEX,NOFOLLOW" /> |
---|
| 8 | <meta name="GOOGLEBOT" content="NOSNIPPET" /> |
---|
| 9 | <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
---|
[2321] | 10 | <title>{% block title %}{{ (page_title|last).title|striptags }} - {% if current_blog.name is not empty %}{{current_blog.name}} - {% endif %}{{vendor_name}} - {{version}}{% endblock %}</title> |
---|
| 11 | {{ js.load_IE7 }} |
---|
[1507] | 12 | <link rel="stylesheet" href="{{theme_url}}style/default.css" type="text/css" media="screen" /> |
---|
| 13 | <link rel="icon" type="image/png" href="images/favicon.png" /> |
---|
| 14 | {% if rtl is not empty %} |
---|
| 15 | <link rel="stylesheet" href="{{theme_url}}style/default-rtl.css" type="text/css" media="screen" /> |
---|
| 16 | {% endif %} |
---|
| 17 | {{ js.common }} |
---|
[2321] | 18 | {{ js.toggles }} |
---|
[1507] | 19 | {% endblock %} |
---|
| 20 | </head> |
---|
| 21 | |
---|
[2321] | 22 | <body id="dotclear-admin{% if safe_mode %} safe-mode{% endif %}" class="no-js"> |
---|
| 23 | {% block prelude %} |
---|
| 24 | <ul id="prelude"> |
---|
| 25 | <li><a href="#content">{{__('Go to the content')}}</a></li> |
---|
| 26 | <li><a href="#main-menu">{{__('Go to the menu')}}</a></li> |
---|
| 27 | <li><a href="#qx">{{__('Go to the search')}}</a></li> |
---|
| 28 | <li><a href="#help">{{__('Go to help')}}</a></li> |
---|
| 29 | </ul> |
---|
| 30 | {% endblock %} |
---|
[1507] | 31 | <div id="header"> |
---|
[2321] | 32 | <h1><a href="index.php"><span class="hidden">{{vendor_name}}</span></a></h1> |
---|
| 33 | {% form 'switchblog_menu' with {"id":"top-info-blog"} %} |
---|
| 34 | {% if blog_count > 1 and blog_count < 20 %} |
---|
| 35 | <p>{{ form_field('switchblog',{},{'labelclass':'classic '}) }} {{ form_field('switchblog_submit', {"class":"hidden-if-js"}) }}</p> |
---|
| 36 | {% else %} |
---|
| 37 | {{__('Blog:')}} <strong title="{{current_blog.blog_url}}">{{current_blog.blog_name}}</strong> |
---|
| 38 | {% if blogs is not empty %} - <a href="blogs.php">{{__('Change blog')}}</a>{% endif %} |
---|
| 39 | {% endif %} |
---|
| 40 | <p><a class="outgoing" href="{{current_blog.url}}" title="{{__('Go to site')}}">{{__('Go to site')}} <img src="{{theme_url}}images/outgoing.png" alt="" /></a>{{form_hidden()}}</p> |
---|
| 41 | {% endform %} |
---|
| 42 | <ul id="top-info-user"> |
---|
| 43 | <li> <a class="smallscreen{%if current_page == 'index' %} active" {% endif %}" href="index.php">{{__('My dashboard')}}</a></li> |
---|
| 44 | <li> <a class="smallscreen{%if current_page == 'preferences' %} active" {% endif %}" href="preferences.php">{{__('My preferences')}}</a></li> |
---|
| 45 | <li><a href="index.php?logout=1" class="logout"><span class="nomobile">{{__('Logout %s')|format(current_user.id)}}</span> <img src="{{theme_url}}images/logout.png" alt="" /></a></li> |
---|
| 46 | </ul> |
---|
| 47 | </div> |
---|
| 48 | <div id="wrapper" class="clearfix"> |
---|
| 49 | <div class="hidden-if-no-js collapser-box"> |
---|
| 50 | <a href="#" id="collapser"><img class="collapse-mm" src="images/collapser-hide.png" alt="{{ __('Hide main menu') }}" /> |
---|
| 51 | <img class="expand-mm" src="images/collapser-show.png" alt="{{__('Show main menu') }}" /></a> |
---|
[1507] | 52 | </div> |
---|
| 53 | <div id="main"> |
---|
[2321] | 54 | <div id="content" class="clearfix"> |
---|
[1507] | 55 | {% block content %} |
---|
| 56 | {% if safe_mode %} |
---|
[2321] | 57 | <div class="warning"><h3>{{__('Safe mode')}}</h3> |
---|
[1507] | 58 | <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> |
---|
| 59 | </div> |
---|
| 60 | {% endif %} |
---|
| 61 | <h2> |
---|
| 62 | {#{%- if not page_global %}{{current_blog.name}} › {% endif %}#} |
---|
| 63 | {%- for part in page_title %} |
---|
| 64 | {%- if loop.last %}<span class="page-title">{% endif %} |
---|
| 65 | {%- 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 %} |
---|
| 66 | {%- if loop.last %}</span>{% else %} {% if loop.index0 == 1 %} : {% else %} › {% endif %}{% endif %} |
---|
| 67 | {%- endfor -%} |
---|
| 68 | </h2> |
---|
| 69 | {% if messages.static is not empty %} |
---|
| 70 | {% for message in messages.static %} |
---|
| 71 | <p class="static-msg">{{ message }}</p> |
---|
| 72 | {% endfor %} |
---|
| 73 | {% endif %} |
---|
| 74 | {% if messages.lists is not empty %} |
---|
| 75 | {% for title,messages in messages.lists %} |
---|
| 76 | <div class="static-msg">{{ title }}<ul> |
---|
| 77 | {% for message in messages %} |
---|
| 78 | <li>{{ message }}</li> |
---|
| 79 | {% endfor %} |
---|
| 80 | </ul></div> |
---|
| 81 | {% endfor %} |
---|
| 82 | {% endif %} |
---|
| 83 | {% if messages.alert is not empty %} |
---|
| 84 | <p class="message">{{ messages.alert }}</p> |
---|
| 85 | {% endif %} |
---|
| 86 | {% if messages.errors is not empty %} |
---|
| 87 | <div class="error"> |
---|
| 88 | <p><strong>Errors :</strong></p> |
---|
| 89 | <ul> |
---|
| 90 | {% for error in messages.errors %} |
---|
| 91 | <li>{{ error }}</li> |
---|
| 92 | {% endfor %} |
---|
| 93 | </ul> |
---|
| 94 | </div> |
---|
| 95 | {% endif %} |
---|
| 96 | {% endblock %} |
---|
| 97 | |
---|
| 98 | </div> |
---|
| 99 | </div> |
---|
| 100 | <div id="main-menu"> |
---|
| 101 | {% block menus %} |
---|
| 102 | {% form 'search-menu' with {'id':'search-menu'} %} |
---|
[2321] | 103 | <p> {{ form_field('qx',{'size':30},{'labelclass':'hidden'}) }} |
---|
[1517] | 104 | {{ form_field('ok') }}{{form_hidden()}} |
---|
[1507] | 105 | </p> |
---|
| 106 | {% endform %} |
---|
| 107 | {% for menu in menus %} |
---|
| 108 | {% if menu.items is not empty %} |
---|
| 109 | <div id="{{menu.id}}"> |
---|
| 110 | {% if menu.title is not empty %}<h3>{{menu.title}}</h3>{% endif %} |
---|
| 111 | <ul> |
---|
| 112 | {% for item in menu.items %} |
---|
| 113 | {% spaceless %} |
---|
| 114 | <li {% if item.active or item.class is not empty %} class="{% if item.active %}active {% endif %}{{item.class}}"{% endif %} |
---|
| 115 | {% if item.id is not empty %}id="{{item.id}}" {% endif %} |
---|
| 116 | {% if item.img is not empty %} style="background-image: url({{item.img}});"{% endif %} |
---|
| 117 | ><a href="{{item.link}}"{{item.ahtml}}>{{item.title}}</a> |
---|
| 118 | {% if loop.last %}{{menu.separator}}{% endif %}</li> |
---|
| 119 | {% endspaceless %} |
---|
| 120 | {% endfor %} |
---|
| 121 | </ul> |
---|
| 122 | </div> |
---|
| 123 | {% endif %} |
---|
| 124 | {% endfor %} |
---|
| 125 | {% endblock %} |
---|
| 126 | </div> |
---|
| 127 | <div id="footer"> |
---|
| 128 | {% block footer %} |
---|
[2321] | 129 | {% set text= __('Thank you for using %s.')|format(vendor_name~' '~version) %} |
---|
| 130 | <a href="http://dotclear.org/" title="{{ text }}"> |
---|
| 131 | <img src="style/dc_logos/w-dotclear90.png" alt="{{ text }}" /></a> |
---|
[1507] | 132 | {% endblock %} |
---|
| 133 | </div> |
---|
| 134 | </div> |
---|
[2321] | 135 | <!-- |
---|
| 136 | |
---|
| 137 | ,;:'`':: |
---|
| 138 | __|| |
---|
| 139 | _____/LLLL\_ |
---|
| 140 | \__________"| |
---|
| 141 | ~^~^~^~^~^~^~^~^~^~ |
---|
| 142 | --> |
---|
[1507] | 143 | {#{% block debug %} |
---|
| 144 | {% set debug_info = debug_info() %} |
---|
| 145 | {% if debug_info is not empty %} |
---|
| 146 | <div id="debug"><div> |
---|
| 147 | <p>memory usage: {{ debug_info.memory.usage }} ({{ debug_info.memory.size }})</p> |
---|
| 148 | {% if debug_info.xdebug is not empty %} |
---|
| 149 | <p>Elapsed time: {{ debug_info.xdebug.elapse_time }} seconds</p> |
---|
| 150 | {% if debug_info.xdebug.profiler_file is not empty %} |
---|
| 151 | <p>Profiler file : {{ debug_info.xdebug.profiler_file }}</p> |
---|
| 152 | {% else %} |
---|
| 153 | <p><a href="{{ debug_info.xdebug.profiler_url }}">Trigger profiler</a></p> |
---|
| 154 | {% endif %} |
---|
| 155 | {% endif %} |
---|
| 156 | <p>Global vars: {{ debug_info.global_vars }}</p> |
---|
| 157 | </div></div> |
---|
| 158 | {% endif %} |
---|
| 159 | {% endblock %}#} |
---|
| 160 | </body> |
---|
[993] | 161 | </html> |
---|