Dotclear


Ignore:
Timestamp:
12/10/12 05:32:40 (13 years ago)
Author:
JcDenis
Branch:
twig
Message:
  • Still play with the main layout
File:
1 edited

Legend:

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

    r1056 r1060  
    11{% import "js_helpers.html.twig" as js %} 
    22<!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="en" lang="en"> 
     3<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{{current_user.lang}}" lang="{{current_user.lang}}"> 
    44<head> 
    55     {% block header %} 
    66     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 
    7      <title>{% block title %}{{page_title}} - {% if blog.name is not empty %}{{blog.name}} - {% endif %}{{vendor_name}} - {{version}}{% endblock %}</title> 
     7     <title>{% block title %}{{page_title}} - {% if current_blog.name is not empty %}{{current_blog.name}} - {% endif %}{{vendor_name}} - {{version}}{% endblock %}</title> 
    88     <meta name="ROBOTS" content="NOARCHIVE,NOINDEX,NOFOLLOW" /> 
    99     <meta name="GOOGLEBOT" content="NOSNIPPET" /> 
     
    1818</head> 
    1919 
    20  
    2120<body id="dotclear-admin"> 
    2221     <div id="header"> 
     
    2827          <div id="info-boxes"> 
    2928               <div id="info-box1"> 
    30                     <form action="index.php" method="post"> 
    31                          Blog : <strong title="http://localhost/dc23/index.php?">Mon premier blog</strong> 
    32                          <a href="http://localhost/dc23/index.php?" onclick="window.open(this.href);return false;"  
    33                          title="{{ __('Go to site') }} ({{__('new window')}})">{{__('Go to site')}}<img src="images/outgoing.png" alt="" /></a> 
    34                     </form> 
     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 %} 
    3539               </div> 
    3640               <div id="info-box2"> 
    37                     <a class="active" href="index.php">{{__('My dashboard')}}</a><span> | </span> 
    38                     <a href="preferences.php">{{__('My preferences')}}</a><span> | </span> 
    39                     <a href="index.php?logout=1" class="logout">Déconnecter dsls <img src="images/logout.png" alt="" /></a> 
     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> 
    4044               </div> 
    4145          </div> 
     
    4549               <div id="content"> 
    4650                    {% block content %} 
    47                     <h2>{{blog.name}} &rsaquo; <span class="page-title">{{page_title}}</span></h2> 
     51                    <h2>{{current_blog.name}} &rsaquo; <span class="page-title">{{page_title}}</span></h2> 
    4852                    {% if page_message is not empty %} 
    4953                         <p class="message">{{page_message}}</p> 
Note: See TracChangeset for help on using the changeset viewer.

Sites map