source: trunk/merengueproj/merengue/base/templates/base/layout.html @ 5293

Revision 5293, 6.5 KB checked in by esanchez, 6 months ago (diff)

Change the behaviour when checking for missing images. Fixes #2205

Line 
1{% load i18n inlinetrans breadcrumbs messagebox block_tags section_tags compress media_tags uitools_tags %}
2{% block doctype %}<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">{% endblock %}
3<html>
4<head>
5  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6  {% if LANGUAGE_CODE %}
7    <meta http-equiv="content-language" content="{{ LANGUAGE_CODE }}">
8  {% endif %}
9  {% block metatags %}
10    {% include "inc.metatags.html" %}
11  {% endblock %}
12  {% block shortcut %}
13  <link rel="shortcut icon" href="{{ THEME_MEDIA_URL }}img/favicon.ico" type="image/gif" />
14  {% endblock %}
15  <title>{% block sitetitlewrapper %}{% block pagetitle %}{% include "base/inc.pagetitle.html" %}{% endblock %} - {% block sitetitle %}Merengue powered site{% endblock %}{% endblock %}</title>
16
17  {% block metainfo %}
18    {% include "inc.meta.html" %}
19  {% endblock %}
20
21  {% compress css %}
22    {% block cssstyles %}
23      {% include "inc.cssstyles.html" %}
24      {% block extrastyles %}{% endblock %}
25    {% endblock %}
26  {% endcompress %}
27
28  {% block cssprint %}
29    <link href="{{ MEDIA_URL }}merengue/css/print.css" rel="stylesheet" type="text/css" media="print" /> 
30  {% endblock %}
31
32  {# placeholder to allow plugins and other templates to add css assets #}
33  {% render_bundled_media "css" %}
34
35  {% block jsscripts %}
36    {% include "inc.jsfiles.html" %}
37  {% endblock %}
38
39  {% render_blocks_media %}
40
41  {% block extrascripts %}{% endblock %}
42
43  {% block extrahead %}{% endblock %}
44
45  {% block customstyle %}{% endblock %}
46
47  {% if request.testing %}
48    <script type="text/javascript">
49      if (typeof TinyMCE_Engine != 'undefined') {
50        TinyMCE_Engine.prototype.init=function(settings) { this.settings=settings; return;};
51      }
52    </script>
53  {% endif %}
54
55{% block debug %}
56  {% if debug and PUBLIC_SERVER %}
57    <script type="text/javascript">
58    (function($) {
59        $(document).ready(function () {
60          var server = '{{ PUBLIC_SERVER }}';
61          var i = 0;
62          if (server.slice(-1) != '/') {
63              server = server + '/';
64          }
65          jQuery("img").filter(function (e, v) {
66            if (v.naturalHeight === 0 && v.naturalWidth === 0) {
67              var src = v.getAttribute("src");
68              if (src[0] == '/') {
69                  v.setAttribute("src", server + src.slice(1));
70                  v.addClass("serverImage");
71                  i += 1;
72              }
73            }
74          });
75          if (i) {
76              jQuery("body").append('<div class="serverImageInfo">' + i + ' {% trans "images are retrived from your defined PUBLIC_SERVER" %}: ' + server + '</div>');
77              jQuery(".serverImageInfo").mouseenter(function () {
78                  jQuery(".serverImage").addClass('serverImageHover');
79              });
80              jQuery(".serverImageInfo").mouseleave(function () {
81                  jQuery(".serverImage").removeClass('serverImageHover');
82              });
83          }
84        });
85      }(jQuery));
86    </script>
87  {% endif %}
88{% endblock %}
89</head>
90
91<body dir="ltr" {% block extrabodytag %}{% endblock %}>
92{% block toolbar %}
93  {% render_toolbar %}
94{% endblock %}
95{% block page %}
96<div id="page-wrapper">
97
98<div id="container" class="theme-{{ theme }} {% block bodyextraclasses %}{% endblock %}">
99{% block notifications %}
100<div id="notifications">
101    <div id="basic-template">
102        <a class="ui-notify-cross ui-notify-close" href="#">x</a>
103        <p class="#{classes}">#{text}</p>
104    </div>
105</div>
106{% endblock %}
107{% if not request.HIDE_DECORATIONS %}
108  {% block headerwrapper %}
109  <div id="header">
110    {% block headerlogowrapper %}
111    <div id="headerlogo">
112      {% block headerlogo %}
113        {% include "inc.headerlogo.html" %}
114      {% endblock %}
115    </div>
116    {% endblock %}
117
118    {% block headerblockswrapper %}
119    <div id="header-blocks">
120      {% block headerblocks %}
121        {% include "inc.headerblocks.html" %}
122      {% endblock %}
123    </div>
124    {% endblock %}
125
126    {% block languagetoolswrapper %}
127    <div id="language-tools">
128      {% block languagetools %}
129        {% include "inc.languagetools.html" %}
130      {% endblock %}
131    </div>
132    {% endblock %}
133
134    {% block useractionswrapper %}
135    <div id="user-actions">
136      {% block useractions %}
137        {% include "inc.useractions.html" %}
138      {% endblock %}
139    </div>
140    {% endblock %}
141
142    {% block portalactionswrapper %}
143    <div id="site-actions">
144      {% block portalactions %}
145        {% include "inc.siteactions.html" %}
146      {% endblock %}
147    </div>
148    {% endblock %}
149
150    {% block sitebrandingwrapper %}
151      <div id="site-branding">
152      {% block sitebranding %}
153        <h1>Merengue</h1>
154      {% endblock %}
155      </div>
156    {% endblock %}
157
158    {% block extraheader %}
159      {# things like page titles, or whatever thing you could think #}
160    {% endblock %}
161  </div>
162  {% endblock headerwrapper %}
163
164  {% block breadcrumbswrapper %}
165    <div id="breadcrumbs">
166      {% block breadcrumbs %}
167        {% include "inc.breadcrumbs.html" %}
168        {% block extrabreadcrumbs %}
169            {% block sectionbreadcrumbs %}
170                {% if section %}
171                    {% section_breadcrumbs_tag section %}
172                {% endif %}
173            {% endblock %}
174        {% endblock %}
175      {% endblock %}
176    </div>
177  {% endblock %}
178
179{% endif %}
180
181{% block contenttop %} {% endblock %}
182
183  <div id="contentwrapper">
184  {% block contentwrapper %}
185
186  {% block leftsidebarwrapper %}
187  <div id="left-sidebar">
188    {% block leftsidebar %}
189      {% include "inc.leftsidebar.html" %}
190    {% endblock %}
191  </div>
192  {% endblock %}
193
194  <div id="content" class="{% block contentclass %}withsidebar{% endblock %}">
195    {% block messagebox %}
196    <div id="messagebox">
197      {% messagebox %}
198    </div>
199    {% endblock %}
200    <div id="content-inner">
201    {% block content %}
202    {% endblock %}
203    </div>
204  </div>
205
206  {% block rightsidebarwrapper %}
207  <div id="right-sidebar">
208    {% block rightsidebar %}
209      {% include "inc.rightsidebar.html" %}
210    {% endblock %}
211  </div>
212  {% endblock %}
213
214  <div class="visualClear"></div>
215
216  {% if not request.HIDE_DECORATIONS %}
217    <div class="visualClear"></div>
218
219    {% block footerwrapper %}
220      <div id="footer">
221      {% block footer %}
222        {% include "inc.footer.html" %}
223      {% endblock %}
224      </div>
225    {% endblock %}
226  {% endif %}
227  {% endblock contentwrapper %}
228</div>
229
230{% block extrabody %}
231{% endblock %}
232</div>
233{% endblock %}
234
235{# placeholder to allow plugins and other templates to add javascript assets #}
236{% render_bundled_media "js" %}
237</body>
238</html>
Note: See TracBrowser for help on using the repository browser.