NCCOOS Trac Projects: Top | Web | Platforms | Processing | Viz | Sprints | Sandbox | (Wind)

root/NCCOOSSite/trunk/NCCOOSite/skins/nccoos/main_template.pt

Revision 13 (checked in by cbc, 18 years ago)

Initial import

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   <tal:cache tal:define="lang language;
12                          charset site_properties/default_charset|string:utf-8">
13     <metal:cache use-macro="here/global_cache_settings/macros/cacheheaders">
14       Get the global cache headers located in global_cache_settings.
15     </metal:cache>
16   </tal:cache>
17
18   <head metal:use-macro="here/header/macros/html_header">
19
20     <metal:fillbase fill-slot="base">
21       <metal:baseslot define-slot="base">
22         <base href="" tal:attributes="href here/renderBase" />
23       </metal:baseslot>
24     </metal:fillbase>
25
26     <metal:headslot fill-slot="head_slot">
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:styleslot fill-slot="style_slot">
32       <tal:comment replace="nothing"> A slot where you can insert CSS in the header from a template </tal:comment>
33       <metal:styleslot define-slot="style_slot" />
34     </metal:styleslot>
35
36     <metal:cssslot fill-slot="css_slot">
37       <tal:comment replace="nothing"> This is deprecated, please use style_slot instead. </tal:comment>
38       <metal:cssslot define-slot="css_slot" />
39     </metal:cssslot>
40
41     <metal:javascriptslot fill-slot="javascript_head_slot">
42       <tal:comment replace="nothing"> A slot where you can insert javascript in the header from a template </tal:comment>
43       <metal:javascriptslot define-slot="javascript_head_slot" />
44     </metal:javascriptslot>
45   </head>
46
47   <body tal:attributes="class here/getSectionFromURL;
48                         dir python:test(isRTL, 'rtl', 'ltr')">
49     <div id="visual-portal-wrapper">
50
51       <div id="portal-top" i18n:domain="plone">
52
53         <div id="portal-header">
54           <p class="hiddenStructure">
55             <a accesskey="2"
56                tal:attributes="href string:${current_page_url}#documentContent"
57                i18n:translate="label_skiptocontent">Skip to content.</a> |
58
59             <a accesskey="6"
60                tal:attributes="href string:${current_page_url}#portlet-navigation-tree"
61                i18n:translate="label_skiptonavigation">Skip to navigation</a>
62           </p>
63
64              <!-- <div metal:use-macro="here/global_siteactions/macros/site_actions">
65                Site-wide actions (Contact, Sitemap, Help, Style Switcher etc)
66              </div> -->
67
68              <tal:remove replace="nothing">
69                <a metal:use-macro="here/global_logo/macros/portal_logo">
70                  The portal logo, linked to the portal root
71                </a>
72              </tal:remove>
73              <div id="banner" metal:define-macro="portal_logo">
74                 <a href="/" tal:attributes="href portal_url">
75                   <metal:logoslot define-slot="logoimage">
76                    <img src="#" tal:attributes="src string:${portal_url}/img/header.gif"
77                         alt="NCCOOS.org"
78                        height="109" border="0"/>
79                   </metal:logoslot>
80                 </a>
81              </div>
82
83
84
85
86              <!-- <div metal:use-macro="here/global_skinswitcher/macros/skin_tabs">
87                The skin switcher tabs. Based on which role you have, you
88                get a selection of skins that you can switch between.
89              </div> -->
90
91              <div metal:use-macro="here/global_sections/macros/portal_tabs">
92                The global sections tabs. (Welcome, News etc)
93              </div>
94           </div>
95
96
97
98
99       </div>
100
101       <div class="visualClear" id="clear-space-before-wrapper-table"><!-- --></div>
102
103       <tal:comment replace="nothing">
104       The wrapper table. It contains the three columns. There's a table-less
105       alternative in the plone_tableless skin layer that you can use if you
106       prefer layouts that don't use tables.
107       </tal:comment>
108
109       <table id="portal-columns">
110         <tbody>
111           <tr>
112             <tal:comment replace="nothing"> Start of the left column </tal:comment>
113             <td id="portal-column-one"
114                 metal:define-slot="column_one_slot"
115                 tal:condition="sl">
116               <div class="visualPadding">
117                 <metal:portlets define-slot="portlets_one_slot">
118                                
119              <div metal:use-macro="here/global_searchbox/macros/quick_search">
120                The quicksearch box, normally placed at the top right
121              </div>
122                                                        
123                   <metal:leftportlets use-macro="here/portlets_fetcher/macros/left_column">
124                     This instruction gets the portlets (boxes) for the left column.
125                   </metal:leftportlets>
126                 </metal:portlets>
127                 &nbsp;
128               </div>
129             </td>
130             <tal:comment replace="nothing"> End of the left column </tal:comment>
131
132             <tal:comment replace="nothing"> Start of main content block </tal:comment>
133             <td id="portal-column-content"
134                 tal:define="tabindex python:Iterator(pos=0, mainSlot=True)">
135
136               <metal:block define-slot="content">
137                 <div id="content"
138                      metal:define-macro="content"
139                      tal:define="show_border python:here.showEditableBorder(template_id=template_id, actions=actions );"
140                      tal:attributes="class python:test(show_border,'documentEditable','')">
141
142                   <metal:ifborder tal:condition="show_border" >
143
144            <!-- <div metal:use-macro="here/global_pathbar/macros/path_bar">
145              The breadcrumb navigation ("you are here")
146            </div> -->
147
148                     <div metal:use-macro="here/global_contentviews/macros/content_views">
149                       The content views (View, Edit, Properties, Workflow)
150                     </div>
151
152                     <div metal:use-macro="here/global_contentviews/macros/content_actions">
153                       The content bar
154                     </div>
155                   </metal:ifborder>
156
157                   <div class="documentContent" id="region-content">
158
159                     <a name="documentContent"></a>
160
161                     <div metal:use-macro="here/global_statusmessage/macros/portal_message">
162                       Portal status message
163                     </div>
164
165                     <metal:header metal:define-slot="header" tal:content="nothing">
166                       Visual Header
167                     </metal:header>
168
169                     <metal:bodytext metal:define-slot="main" tal:content="nothing">
170                       Page body text
171                     </metal:bodytext>
172
173                     <metal:sub metal:define-slot="sub">
174                       <metal:discussion use-macro="here/viewThreadsAtBottom/macros/discussionView" />
175                     </metal:sub>
176
177                   </div>
178
179                 </div>
180
181               </metal:block>
182             </td>
183             <tal:comment replace="nothing"> End of main content block </tal:comment>
184
185             <tal:comment replace="nothing"> Start of right column </tal:comment>
186             <td id="portal-column-two"
187                 metal:define-slot="column_two_slot"
188                 tal:condition="sr">
189               <div class="visualPadding">
190                 <metal:portlets define-slot="portlets_two_slot">
191                   <metal:rightportlets use-macro="here/portlets_fetcher/macros/right_column">
192                     This instruction gets the portlets (boxes) for the right column.
193                   </metal:rightportlets>
194                 </metal:portlets>
195                 &nbsp;
196               </div>
197             </td>
198             <tal:comment replace="nothing"> End of the right column </tal:comment>
199           </tr>
200         </tbody>
201       </table>
202       <tal:comment replace="nothing"> end column wrapper </tal:comment>
203
204       <div class="visualClear" id="clear-space-before-footer"><!-- --></div>
205
206
207       <hr class="netscape4" />
208
209       <metal:block i18n:domain="plone">
210
211         <div metal:use-macro="here/comb_personalbar_siteactions/macros/personal_bar">
212             This shows the personal bar and the site actions combined.
213         </div>   
214
215         <!-- <metal:footer use-macro="here/footer/macros/portal_footer">
216           Footer
217         </metal:footer> -->
218
219         <metal:colophon use-macro="here/colophon/macros/colophon">
220           The colophon area - contains details about the production of
221           the site. Typically "powered by" buttons, standards, tools used.
222         </metal:colophon>
223       </metal:block>
224
225     </div>
226
227 </body>
228 </html>
229 </metal:page>
Note: See TracBrowser for help on using the browser.