Mercurial > hg > MPIWGWeb
comparison zpt/www/main_template.zpt @ 2:ddf6c1a27a4b
new version with main_template and css in product.
author | casties |
---|---|
date | Thu, 07 Feb 2013 19:50:39 +0100 |
parents | |
children | 1a895905f7ca |
comparison
equal
deleted
inserted
replaced
1:1f2760ed3efe | 2:ddf6c1a27a4b |
---|---|
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | |
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
3 <html xmlns="http://www.w3.org/1999/xhtml" metal:define-macro="page" | |
4 tal:define="root here/MPIWGrootURL|here/en/MPIWGrootURL; | |
5 crumbs template/getBreadcrumbs | nothing; | |
6 section here/getSection | nothing; | |
7 sections here/getSections | nothing; | |
8 secmap python:{ | |
9 'institute':'institute', | |
10 'staff':'staff', | |
11 'research':'research', | |
12 'resources':'resources', | |
13 'news':'news', | |
14 'lang':'en'}; | |
15 subsection python:template.getSubSection(crumbs=crumbs); | |
16 frontfeature python:int(request.get('ff',4)); | |
17 "> | |
18 <head> | |
19 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
20 <title metal:define-slot="title">Max Planck Institute for the History of Science</title> | |
21 <link rel="stylesheet" type="text/css" tal:attributes="href string:$root/mpiwg_css"/> | |
22 <link rel="shortcut icon" href="http://www.mpiwg-berlin.mpg.de/favicon.ico"/> | |
23 <tal:block metal:define-slot="head"/> | |
24 | |
25 </head> | |
26 <body> | |
27 <div tal:condition="exists:here/mpiwg_test" tal:replace="structure here/mpiwg_test" /> | |
28 <div id="wrapper"> | |
29 <div id="header"> | |
30 <div class="title"> | |
31 <a tal:attributes="href string:$root/index.html"><img tal:attributes="src string:$root/images/title.png" | |
32 alt="Max Planck Institute for the History of Science" /></a> | |
33 </div> | |
34 <div class="logo"> | |
35 <a tal:attributes="href string:$root/index.html"><img tal:attributes="src string:$root/images/logo.png" alt="MPIWG Logo" /></a> | |
36 </div> | |
37 </div> | |
38 | |
39 <div id="mainnav"> | |
40 <tal:block tal:repeat="sec sections"> | |
41 <div tal:attributes="class python:test(sec.getId()==section,'sec on','sec')"> | |
42 <a tal:attributes="href sec/absolute_url" tal:content="sec/title">Institute</a> | |
43 </div> | |
44 </tal:block> | |
45 <div class="sec lang"> | |
46 <a class="internal" tal:attributes="href string:$root/../de">Deutsch</a> | |
47 </div> | |
48 </div> | |
49 | |
50 <metal:block metal:define-slot="featureslot" /> | |
51 | |
52 <div class="content" metal:define-slot="content"> | |
53 <div class="leftbox"> | |
54 <div class="subnav" metal:define-slot="subnav"> | |
55 <tal:block tal:condition="crumbs" tal:repeat="subnav python:here.subNav(here)"> | |
56 <div tal:attributes="class python:test(subnav[0]==subsection,'sn_on','sn_off')"> | |
57 <a tal:attributes="href python:subnav[1].absolute_url()" tal:content="python:subnav[1].title">Subnav</a> | |
58 </div> | |
59 </tal:block> | |
60 </div> | |
61 <div class="subnavbox" metal:define-slot="subnavbox"></div> | |
62 </div> | |
63 <!-- leftbox --> | |
64 <div class="main" metal:define-slot="main"> | |
65 | |
66 <div class="center" metal:define-slot="center"></div> | |
67 <!-- center --> | |
68 | |
69 <div class="sidebar" metal:define-slot="sidebar"></div> | |
70 <!-- sidebar --> | |
71 | |
72 <div class="footer"> | |
73 <div class="services"> | |
74 <div class="serviceprint"> | |
75 <a href="javascript:window.print()">Print</a> | |
76 </div> | |
77 <div class="serviceforward"> | |
78 <a tal:attributes="href python:'mailto:?subject=MPIWG%%20%s&body=%s'%(here.title,here.absolute_url())">Forward</a> | |
79 </div> | |
80 <!-- <div class="servicepdf"><a href="">Download PDF</a></div> --> | |
81 </div> | |
82 </div> | |
83 </div> | |
84 <!-- main --> | |
85 | |
86 <div class="boilerplate"> | |
87 <div class="legal"> | |
88 <a tal:attributes="href string:$root/resources/intranet.html">Intranet</a> | <a href="https://webmail.mpiwg-berlin.mpg.de" | |
89 target="_blank">Webmail</a> | <a tal:attributes="href string:$root/institute/address.html">Contact</a> | <a | |
90 tal:attributes="href string:$root/impressum.html">Imprint</a> | <a | |
91 tal:attributes="href python:'http://www2.mpiwg-berlin.mpg.de/Library/libindex.html'" target="_blank">Library | |
92 (internal)</a> | <a tal:attributes="href string:$root/institute/sitemap.html">Sitemap</a> | |
93 </div> | |
94 <div class="mpg_signet"> | |
95 <a href="http://www.mpg.de/"> <img tal:attributes="src string:$root/images/signet.png" alt="MPG" width="204" | |
96 height="41" /> | |
97 </a> | |
98 </div> | |
99 </div> | |
100 <!-- boilerplate --> | |
101 </div> | |
102 <!-- content --> | |
103 </div> | |
104 <!-- wrapper --> | |
105 </body> | |
106 </html> |