source: trunk/skins/lemill_eun/main_template.pt @ 469

Revision 469, 6.4 KB checked in by tarmo, 13 years ago (diff)

All strings in ZPTs are now i18n'd. Refs #524, spent 90m,
30m remaining. Need to fix i18n:domains still.

Line 
1<metal:page define-macro="master"><metal:doctype define-slot="doctype"><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"></metal:doctype>
2<metal:block define-slot="top_slot" />
3<metal:block use-macro="here/global_defines/macros/defines" />
4
5<html xmlns="http://www.w3.org/1999/xhtml"
6      xml:lang="en"
7      lang="en"
8      tal:attributes="lang language;
9                      xml:lang language">
10
11  <head metal:use-macro="here/header/macros/html_header">
12
13    <metal:fillbase fill-slot="base">
14      <metal:baseslot define-slot="base">
15        <base href="" tal:attributes="href here/renderBase" />
16      </metal:baseslot>
17    </metal:fillbase>
18
19    <metal:headslot fill-slot="head_slot"
20                    tal:define="lang language;
21                                charset site_properties/default_charset|string:utf-8">
22
23      <metal:cache use-macro="here/global_cache_settings/macros/cacheheaders">
24        Get the global cache headers located in global_cache_settings.
25      </metal:cache>
26
27      <metal:headslot define-slot="head_slot" />
28      <tal:comment replace="nothing"> A slot where you can insert elements in the header from a template </tal:comment>
29    </metal:headslot>
30
31        <metal:cssslot fill-slot="css_slot">
32          <tal:comment replace="nothing"> A slot where you can insert CSS in the header from a template </tal:comment>
33            <tal:block tal:define="stuff here/getSectionFromURL;
34                            global section_name string:content">
35                <tal:block tal:condition="python: stuff !=None">
36                    <tal:block tal:condition="python: stuff.find('section-content') != -1 ">
37                        <tal:block tal:define="global section_name string:content" />
38                    </tal:block>
39                    <tal:block tal:condition="python: stuff.find('section-activities') != -1 ">
40                        <tal:block tal:define="global section_name string:activities" />
41                    </tal:block>
42                    <tal:block tal:condition="python: stuff.find('section-tools') != -1 ">
43                        <tal:block tal:define="global section_name string:tools" />                     
44                    </tal:block>
45                    <tal:block tal:condition="python: stuff.find('section-community') != -1 ">
46                        <tal:block tal:define="global section_name string:community" />
47                    </tal:block>
48                </tal:block>
49                <tal:block define="global base_url string:ploneColors_${section_name}.css"/>
50                <link rel="stylesheet" type="text/css" tal:attributes="href base_url" />
51            </tal:block>
52        <metal:cssslot define-slot="css_slot" />
53        </metal:cssslot>
54
55    <metal:javascriptslot fill-slot="javascript_head_slot">
56      <tal:comment replace="nothing"> A slot where you can insert javascript in the header from a template </tal:comment>
57      <metal:javascriptslot define-slot="javascript_head_slot" />
58    </metal:javascriptslot>
59  </head>
60
61  <body tal:attributes="class here/getSectionFromURL;
62                        dir python:test(isRTL, 'rtl', 'ltr')">
63
64<table id="tb-portal-header" summary="Header" width="760" border="0" align="center" cellpadding="0" cellspacing="0">
65    <tr>
66        <td width="200" class="logo"><a href="/" tal:attributes="href portal_url" tal:define="portal_title portal_properties/title;"><img tal:attributes="src string:calibrate_toolbox_logo.png" alt="" /></a></td>
67        <td width="420">
68            <div metal:use-macro="here/global_sections/macros/portal_tabs">
69               The global sections tabs. (Welcome, News etc)
70            </div>
71        </td>
72        <td width="140" align="right" valign="middle">
73       
74                     <div metal:use-macro="here/global_searchbox/macros/quick_search">
75               The quicksearch box, normally placed at the top right
76             </div>
77        </td>
78    </tr>
79</table>
80
81<table summary="Personal toolbar" width="760" border="0" align="center" cellpadding="0" cellspacing="0" id="personal-bar">
82    <tr>
83        <td>
84        <div metal:use-macro="here/global_personalbar/macros/personal_bar">
85             The personal bar. (log in, logout etc...)
86        </div>
87        </td>
88        <td align="right" style="padding-right: 10px"><a i18n:translate="link_go_to_portal" href="http://calibrate.eun.org/merlin/">Go to portal</a></td>
89    </tr>
90</table>
91
92<table id="tb-portal-columns" summary="Main content" width="760"  border="0" align="center" cellpadding="0" cellspacing="0">
93    <tr>
94        <tal:comment replace="nothing"> Start of the left column </tal:comment>
95        <td id="tb-portal-column-one" metal:define-slot="column_one_slot" tal:condition="sl" width="210" valign="top">
96                <metal:portlets define-slot="portlets_one_slot">
97                    <metal:leftportlets use-macro="here/portlets_fetcher/macros/left_column">
98                    This instruction gets the portlets (boxes) for the left column.
99                    </metal:leftportlets>
100                </metal:portlets>
101                &nbsp;
102        </td>
103        <tal:comment replace="nothing"> End of the left column </tal:comment>
104
105        <tal:comment replace="nothing"> Start of main content block </tal:comment>
106        <td id="tb-portal-column-content" tal:define="tabindex python:Iterator(pos=0)" width="550" valign="top">
107
108              <metal:block define-slot="content">
109                <div class="other_test_class"
110                     metal:define-macro="content"
111                     tal:define="show_border python:0;">
112
113                    <a name="documentContent"></a>
114
115                    <div metal:use-macro="here/global_statusmessage/macros/portal_message">
116                      Portal status message
117                    </div>
118
119                    <metal:header metal:define-slot="header" tal:content="nothing">
120                    </metal:header>
121
122                    <metal:bodytext metal:define-slot="main" tal:content="nothing">
123                    </metal:bodytext>
124
125                    <metal:sub metal:define-slot="sub">
126                      <metal:discussion use-macro="here/viewThreadsAtBottom/macros/discussionView" />
127                    </metal:sub>
128
129                </div>
130
131              </metal:block>
132
133        </td>
134    </tr>
135</table>
136
137<metal:block i18n:domain="plone">
138    <metal:footer use-macro="here/footer/macros/portal_footer">
139        Footer
140    </metal:footer>
141</metal:block>
142
143</body>
144</html>
145</metal:page>
Note: See TracBrowser for help on using the repository browser.