source: trunk/skins/lemill/front-page_template.pt @ 1367

Revision 1367, 5.4 KB checked in by hans, 13 years ago (diff)

Front page 30% done, I'm sick at home, not coming tomorrow (today)

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      i18n:domain="lemill"
9      tal:attributes="lang language|string:en;
10                      xml:lang language|string:en">
11
12  <head metal:use-macro="here/header/macros/html_header">
13
14    <metal:fillbase fill-slot="base">
15      <metal:baseslot define-slot="base">
16        <base href="" tal:attributes="href here/renderBase" />
17      </metal:baseslot>
18    </metal:fillbase>
19
20    <metal:headslot fill-slot="head_slot"
21                    tal:define="lang language;
22                                charset site_properties/default_charset|string:utf-8">
23
24      <metal:cache use-macro="here/global_cache_settings/macros/cacheheaders">
25        Get the global cache headers located in global_cache_settings.
26      </metal:cache>
27
28      <metal:headslot define-slot="head_slot" />
29      <tal:comment replace="nothing"> A slot where you can insert elements in the header from a template </tal:comment>
30    </metal:headslot>
31
32        <metal:cssslot fill-slot="css_slot">
33          <tal:comment replace="nothing"> A slot where you can insert CSS in the header from a template </tal:comment>
34            <tal:block tal:define="stuff here/getSectionFromURL;
35                            global section_name string:content">
36                <tal:block tal:condition="python: stuff !=None">
37                    <tal:block tal:condition="python: stuff.find('section-content') != -1 ">
38                        <tal:block tal:define="global section_name string:content" />
39                    </tal:block>
40                    <tal:block tal:condition="python: stuff.find('section-activities') != -1 ">
41                        <tal:block tal:define="global section_name string:activities" />
42                    </tal:block>
43                    <tal:block tal:condition="python: stuff.find('section-tools') != -1 ">
44                        <tal:block tal:define="global section_name string:tools" />                     
45                    </tal:block>
46                    <tal:block tal:condition="python: stuff.find('section-community') != -1 ">
47                        <tal:block tal:define="global section_name string:community" />
48                    </tal:block>
49                </tal:block>
50                    <tal:block condition="python:request.has_key('SESSION') and context.absolute_url().find('collections')!=-1">
51                        <tal:def define="global section_name python:request.SESSION.get('keep_in_section')"></tal:def>
52                    </tal:block>
53                <tal:block define="global base_url string:ploneColors_${section_name}.css"/>
54                <link rel="stylesheet" type="text/css" tal:attributes="href base_url" />
55            </tal:block>
56        <metal:cssslot define-slot="css_slot" />
57        </metal:cssslot>
58
59    <metal:javascriptslot fill-slot="javascript_head_slot">
60      <tal:comment replace="nothing"> A slot where you can insert javascript in the header from a template </tal:comment>
61      <metal:javascriptslot define-slot="javascript_head_slot" />
62    </metal:javascriptslot>
63  </head>
64
65  <body tal:attributes="class here/getSectionFromURL;
66                        dir python:test(isRTL, 'rtl', 'ltr')">
67
68<table summary="Personal toolbar" width="780" border="0" align="center" cellpadding="0" cellspacing="0">
69    <tr>
70        <td align="left"
71            tal:define="ltool python:context.lemill_tool;
72                        qstr  python:ltool.testLinkParameters(request)">
73        <span tal:repeat="lang here/lemill_tool/primary_languages">
74            <a href=""
75                tal:attributes="href string:${ltool/absolute_url}/giveLanguageLink?lang=$lang&amp;url=${request/URL}&amp;param=$qstr"
76                tal:content="lang">
77            </a>
78            <tal:block condition="not:repeat/lang/end">|</tal:block>
79        </span>
80        </td>
81        <td align="right">
82        <div metal:use-macro="here/global_personalbar/macros/personal_bar">
83             The personal bar. (log in, logout etc...)
84        </div>
85        </td>
86    </tr>
87</table>
88
89<table id="tb-portal-columns" summary="Main content" width="780"  border="0" align="center" cellpadding="0" cellspacing="0">
90    <tr>
91
92        <tal:comment replace="nothing"> Start of main content block </tal:comment>
93        <td id="tb-portal-column-content" tal:define="tabindex python:Iterator(pos=0)" width="550" valign="top">
94
95              <metal:block define-slot="content">
96                <tal:block
97                     metal:define-macro="content"
98                     tal:define="show_border python:0;">
99
100                    <a name="documentContent"></a>
101
102                    <div metal:use-macro="here/global_statusmessage/macros/portal_message">
103                      Portal status message
104                    </div>
105
106                    <metal:header metal:define-slot="header" tal:content="nothing">
107                      PLACEHOLDER
108                    </metal:header>
109
110                    <metal:bodytext metal:define-slot="main" tal:content="nothing">
111                      PLACEHOLDER
112                    </metal:bodytext>
113
114                </tal:block>
115              </metal:block>
116
117        </td>
118    </tr>
119</table>
120
121</body>
122</html>
123</metal:page>
Note: See TracBrowser for help on using the repository browser.