source: WAeUP_CMS/branches/waeup_cms_sandbox/skins/WAEUP/main_template.pt @ 2298

Last change on this file since 2298 was 13, checked in by Henrik Bettermann, 19 years ago
File size: 7.1 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 metal:use-macro="here/global_siteactions/macros/site_actions">
60               Site-wide actions (Contact, Sitemap, Help, Style Switcher etc)
61             </div>
62
63             <div metal:use-macro="here/global_searchbox/macros/quick_search">
64               The quicksearch box, normally placed at the top right
65             </div>
66
67             <a metal:use-macro="here/global_logo/macros/portal_logo">
68               The portal logo, linked to the portal root
69             </a>
70
71          </div>
72
73           <div metal:use-macro="here/global_pathbar/macros/path_bar">
74             The breadcrumb navigation ("you are here")
75           </div>
76      </div>
77
78      <div class="visualClear"><!-- --></div>
79
80      <tal:comment replace="nothing">
81      The wrapper table. It contains the three columns. There's a table-less
82      alternative in the plone_tableless skin layer that you can use if you
83      prefer layouts that don't use tables.
84      </tal:comment>
85
86      <table id="portal-columns">
87        <tbody>
88          <tr>
89            <tal:comment replace="nothing"> Start of the left column </tal:comment>
90            <td id="portal-column-one"
91                metal:define-slot="column_one_slot"
92                tal:condition="sl">
93              <div class="visualPadding">
94                <metal:portlets define-slot="portlets_one_slot">
95                  <metal:leftportlets use-macro="here/portlets_fetcher/macros/left_column">
96                    This instruction gets the portlets (boxes) for the left column.
97                  </metal:leftportlets>
98                </metal:portlets>
99                &nbsp;
100              </div>
101            </td>
102            <tal:comment replace="nothing"> End of the left column </tal:comment>
103
104            <tal:comment replace="nothing"> Start of main content block </tal:comment>
105            <td id="portal-column-content"
106                tal:define="tabindex python:Iterator(pos=0)">
107
108              <metal:block define-slot="content">
109                <div id="content"
110                     metal:define-macro="content"
111                     tal:define="show_border python:here.showEditableBorder(template_id=template_id, actions=actions );"
112                     tal:attributes="class python:test(show_border,'documentEditable','')">
113
114                  <metal:ifborder tal:condition="show_border" >
115                    <div metal:use-macro="here/global_contentviews/macros/content_views">
116                      The content views (View, Edit, Properties, Workflow)
117                    </div>
118
119                    <div metal:use-macro="here/global_contentviews/macros/content_actions">
120                      The content bar
121                    </div>
122                  </metal:ifborder>
123
124                  <div class="documentContent" id="region-content">
125
126                    <a name="documentContent"></a>
127
128                    <div metal:use-macro="here/global_statusmessage/macros/portal_message">
129                      Portal status message
130                    </div>
131
132                    <metal:header metal:define-slot="header" tal:content="nothing">
133                      Visual Header
134                    </metal:header>
135
136                    <metal:bodytext metal:define-slot="main" tal:content="nothing">
137                      Page body text
138                    </metal:bodytext>
139
140                    <metal:sub metal:define-slot="sub">
141                      <metal:discussion use-macro="here/viewThreadsAtBottom/macros/discussionView" />
142                    </metal:sub>
143
144                  </div>
145
146                </div>
147
148              </metal:block>
149            </td>
150            <tal:comment replace="nothing"> End of main content block </tal:comment>
151
152            <tal:comment replace="nothing"> Start of right column </tal:comment>
153            <td id="portal-column-two"
154                metal:define-slot="column_two_slot"
155                tal:condition="sr">
156              <div class="visualPadding">
157                <metal:portlets define-slot="portlets_two_slot">
158                  <metal:rightportlets use-macro="here/portlets_fetcher/macros/right_column">
159                    This instruction gets the portlets (boxes) for the right column.
160                  </metal:rightportlets>
161                </metal:portlets>
162                &nbsp;
163              </div>
164            </td>
165            <tal:comment replace="nothing"> End of the right column </tal:comment>
166          </tr>
167        </tbody>
168      </table>
169      <tal:comment replace="nothing"> end column wrapper </tal:comment>
170
171      <div class="visualClear"><!-- --></div>
172
173
174      <hr class="netscape4" />
175
176      <metal:block i18n:domain="plone">
177
178        <metal:footer use-macro="here/footer/macros/portal_footer">
179          Footer
180        </metal:footer>
181
182      </metal:block>
183
184    </div>
185
186</body>
187</html>
188</metal:page>
Note: See TracBrowser for help on using the repository browser.