source: WAeUP_CMS/trunk/skins/WAEUP/main_template.pt @ 6976

Last change on this file since 6976 was 35, checked in by Henrik Bettermann, 19 years ago
File size: 7.6 KB
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      <metal:cssslot define-slot="css_slot" />
34    </metal:cssslot>
35
36    <metal:javascriptslot fill-slot="javascript_head_slot">
37      <tal:comment replace="nothing"> A slot where you can insert javascript in the header from a template </tal:comment>
38      <metal:javascriptslot define-slot="javascript_head_slot" />
39    </metal:javascriptslot>
40  </head>
41
42  <body tal:attributes="class here/getSectionFromURL;
43                        dir python:test(isRTL, 'rtl', 'ltr')">
44    <div id="visual-portal-wrapper">
45
46      <div id="portal-top" i18n:domain="plone">
47
48        <div id="portal-header">
49          <a class="hiddenStructure"
50             accesskey="2"
51             tal:attributes="href string:${request/ACTUAL_URL}#documentContent"
52             i18n:translate="label_skiptocontent">Skip to content</a>
53
54          <a class="hiddenStructure"
55             accesskey="6"
56             tal:attributes="href string:${request/ACTUAL_URL}#portlet-navigation-tree"
57             i18n:translate="label_skiptonavigation">Skip to navigation</a>
58
59          </div>
60
61
62      </div>
63
64      <div class="visualClear"><!-- --></div>
65
66      <tal:comment replace="nothing">
67      The wrapper table. It contains the three columns. There's a table-less
68      alternative in the plone_tableless skin layer that you can use if you
69      prefer layouts that don't use tables.
70      </tal:comment>
71
72      <table id="portal-columns">
73        <tbody>
74          <tr>
75            <tal:comment replace="nothing"> Start of the left column </tal:comment>
76            <td id="portal-column-one"
77                metal:define-slot="column_one_slot"
78                tal:condition="sl">
79
80             <div class="LogoLeft">
81             <a metal:use-macro="here/global_logo/macros/portal_logo_left">
82               The portal logo, linked to the portal root
83             </a>
84             </div>
85
86             <div class="visualClear" id="portal-breadcrumbs">
87               &nbsp;
88             </div>
89
90              <div class="visualPadding">
91                <metal:portlets define-slot="portlets_one_slot">
92                  <metal:leftportlets use-macro="here/portlets_fetcher/macros/left_column">
93                    This instruction gets the portlets (boxes) for the left column.
94                  </metal:leftportlets>
95                </metal:portlets>
96                &nbsp;
97              </div>
98            </td>
99            <tal:comment replace="nothing"> End of the left column </tal:comment>
100
101            <tal:comment replace="nothing"> Start of main content block </tal:comment>
102            <td id="portal-column-content"
103                tal:define="tabindex python:Iterator(pos=0)">
104
105             <div class="LogoRight">
106             <a metal:use-macro="here/global_logo/macros/portal_logo_right">
107               The portal logo, linked to the portal root
108             </a>
109             </div>
110
111             <div class="visualClear">
112               <div metal:use-macro="here/global_pathbar/macros/path_bar">
113                 The breadcrumb navigation ("you are here")
114               </div>
115             </div>
116
117             <div metal:use-macro="here/global_siteactions/macros/site_actions">
118               Site-wide actions (Contact, Sitemap, Help, Style Switcher etc)
119             </div>
120
121             <div metal:use-macro="here/global_searchbox/macros/quick_search">
122               The quicksearch box, normally placed at the top right
123             </div>
124
125
126              <metal:block define-slot="content">
127                <div id="content"
128                     metal:define-macro="content"
129                     tal:define="show_border python:here.showEditableBorder(template_id=template_id, actions=actions );"
130                     tal:attributes="class python:test(show_border,'documentEditable','')">
131
132                  <metal:ifborder tal:condition="show_border" >
133                    <div metal:use-macro="here/global_contentviews/macros/content_views">
134                      The content views (View, Edit, Properties, Workflow)
135                    </div>
136
137                    <div metal:use-macro="here/global_contentviews/macros/content_actions">
138                      The content bar
139                    </div>
140                  </metal:ifborder>
141
142                  <div class="documentContent" id="region-content">
143
144                    <a name="documentContent"></a>
145
146                    <div metal:use-macro="here/global_statusmessage/macros/portal_message">
147                      Portal status message
148                    </div>
149
150                    <metal:header metal:define-slot="header" tal:content="nothing">
151                      Visual Header
152                    </metal:header>
153
154                    <metal:bodytext metal:define-slot="main" tal:content="nothing">
155                      Page body text
156                    </metal:bodytext>
157
158                    <metal:sub metal:define-slot="sub">
159                      <metal:discussion use-macro="here/viewThreadsAtBottom/macros/discussionView" />
160                    </metal:sub>
161
162                  </div>
163
164                </div>
165
166              </metal:block>
167            </td>
168            <tal:comment replace="nothing"> End of main content block </tal:comment>
169
170            <tal:comment replace="nothing"> Start of right column </tal:comment>
171            <td id="portal-column-two"
172                metal:define-slot="column_two_slot"
173                tal:condition="sr">
174
175              <div class="visualPadding">
176                <metal:portlets define-slot="portlets_two_slot">
177                  <metal:rightportlets use-macro="here/portlets_fetcher/macros/right_column">
178                    This instruction gets the portlets (boxes) for the right column.
179                  </metal:rightportlets>
180                </metal:portlets>
181                &nbsp;
182              </div>
183            </td>
184            <tal:comment replace="nothing"> End of the right column </tal:comment>
185          </tr>
186        </tbody>
187      </table>
188      <tal:comment replace="nothing"> end column wrapper </tal:comment>
189
190      <div class="visualClear"><!-- --></div>
191
192
193      <hr class="netscape4" />
194
195      <metal:block i18n:domain="plone">
196
197        <metal:footer use-macro="here/footer/macros/portal_footer">
198          Footer
199        </metal:footer>
200
201      </metal:block>
202
203    </div>
204
205</body>
206</html>
207</metal:page>
Note: See TracBrowser for help on using the repository browser.