Dotclear


Ignore:
Timestamp:
10/09/13 15:21:14 (12 years ago)
Author:
Dsls
Branch:
twig
Message:

page layout readapted.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/admin/default-templates/layout.html.twig

    r1517 r2321  
    55     {% block header %} 
    66     <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> 
    87     <meta name="ROBOTS" content="NOARCHIVE,NOINDEX,NOFOLLOW" /> 
    98     <meta name="GOOGLEBOT" content="NOSNIPPET" /> 
    109     <meta name="viewport" content="width=device-width, initial-scale=1.0" /> 
     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 }} 
    1112     <link rel="stylesheet" href="{{theme_url}}style/default.css" type="text/css" media="screen" /> 
    1213     <link rel="icon" type="image/png" href="images/favicon.png" /> 
     
    1415     <link rel="stylesheet" href="{{theme_url}}style/default-rtl.css" type="text/css" media="screen" /> 
    1516     {% endif %} 
    16      {{ js.load_IE7 }} 
    1717     {{ js.common }} 
     18     {{ js.toggles }} 
    1819     {% endblock %} 
    1920</head> 
    2021 
    21 <body id="dotclear-admin{% if safe_mode %} safe-mode{% endif %}"> 
     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 %} 
    2231     <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>{{form_hidden()}}</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> 
     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> 
    4952          </div> 
    50      </div> 
    51      <div id="wrapper"> 
    5253          <div id="main"> 
    53                <div id="content"> 
     54               <div id="content" class="clearfix"> 
    5455                    {% block content %} 
    5556                    {% if safe_mode %} 
    56                          <div class="error"><h3>{{__('Safe mode')}}</h3> 
     57                         <div class="warning"><h3>{{__('Safe mode')}}</h3> 
    5758                         <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> 
    5859                         </div> 
     
    100101               {% block menus %} 
    101102               {% form 'search-menu' with {'id':'search-menu'} %} 
    102                     <p> {{ form_field('q',{'size':30},{'labelclass':'hidden'}) }}  
     103                    <p> {{ form_field('qx',{'size':30},{'labelclass':'hidden'}) }}  
    103104                         {{ form_field('ok') }}{{form_hidden()}} 
    104105                    </p> 
     
    126127          <div id="footer"> 
    127128               {% block footer %} 
    128                <p>{{ __('Thank you for using %s.')|format(vendor_name) }}</p> 
     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> 
    129132               {% endblock %} 
    130133          </div> 
    131134     </div> 
     135<!--  
     136                   
     137               ,;:'`':: 
     138            __|| 
     139      _____/LLLL\_ 
     140      \__________"| 
     141    ~^~^~^~^~^~^~^~^~^~ 
     142 --> 
    132143     {#{% block debug %} 
    133144       {% set debug_info = debug_info() %} 
Note: See TracChangeset for help on using the changeset viewer.

Sites map