Dotclear

source: inc/admin/default-templates/layout.html.twig @ 1056:b67f949a98f8

Revision 1056:b67f949a98f8, 2.7 KB checked in by JcDenis, 13 years ago (diff)
  • Twig know loaded in dcCore
  • Admin context now loaded in admin prepend and avavailable under $_ctx
  • Copy admin theme features in default-templates
  • New URL argument to serve theme file as ?tf=my_theme_file
Line 
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="en" lang="en">
4<head>
5     {% block header %}
6     <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>
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
21<body id="dotclear-admin">
22     <div id="header">
23          <ul id="prelude">
24               <li><a href="#content">{{__('To content')}}</a></li>
25               <li><a href="#main-menu">{{__('To menu')}}</a></li>
26          </ul>
27          <div id="top"><h1><a href="index.php">{{vendor_name}}</a></h1></div>
28          <div id="info-boxes">
29               <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>
35               </div>
36               <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>
40               </div>
41          </div>
42     </div>
43     <div id="wrapper">
44          <div id="main">
45               <div id="content">
46                    {% block content %}
47                    <h2>{{blog.name}} &rsaquo; <span class="page-title">{{page_title}}</span></h2>
48                    {% if page_message is not empty %}
49                         <p class="message">{{page_message}}</p>
50                    {% endif %}
51                    {% if page_errors is not empty %}
52                         <div class="error">
53                              <p><strong>Errors :</strong></p>
54                              <ul>
55                              {% for error in page_errors %}
56                                   <li>{{error}}</li>
57                              {% endfor %}
58                              </ul>
59                         </div>
60                    {% endif %}
61                    {% endblock %}
62
63               </div>
64          </div>
65          <div id="main-menu">
66               {{ page_menu() }}
67          </div>
68          <div id="footer">
69               {% block footer %}
70               <p>{{ __('Thank you for using %s.')|format(vendor_name) }}</p>
71               {% endblock %}
72          </div>
73     </div>
74     </body>
75</html>
Note: See TracBrowser for help on using the repository browser.

Sites map