annotate zpt/www/main_template.zpt @ 232:76ea03db3426

added Piwik stats counter.
author casties
date Thu, 14 Nov 2013 15:17:05 +0100
parents 90d44df497a6
children a14e462fca1c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
9e720c6c5b6c working on start page.
casties
parents: 4
diff changeset
3 <html xmlns="http://www.w3.org/1999/xhtml" metal:define-macro="page"
108
782477730916 CLOSED - # 57: Research/ Research Units: Karussell f?r die Projekte in einem Department
casties
parents: 66
diff changeset
4 tal:define="root here/MPIWGrootURL|here/en/MPIWGrootURL;
191
90d44df497a6 updated breadcrumb handling, works for members now.
casties
parents: 176
diff changeset
5 global crumbs template/getBreadcrumbs | nothing;
2
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
6 section here/getSection | nothing;
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
7 sections here/getSections | nothing;
5
9e720c6c5b6c working on start page.
casties
parents: 4
diff changeset
8 lang here/getLang | nothing;
9e720c6c5b6c working on start page.
casties
parents: 4
diff changeset
9 allsecs python:{'en':{
9e720c6c5b6c working on start page.
casties
parents: 4
diff changeset
10 'institute':'institute',
9e720c6c5b6c working on start page.
casties
parents: 4
diff changeset
11 'staff':'staff',
9e720c6c5b6c working on start page.
casties
parents: 4
diff changeset
12 'research':'research',
9e720c6c5b6c working on start page.
casties
parents: 4
diff changeset
13 'resources':'resources',
9e720c6c5b6c working on start page.
casties
parents: 4
diff changeset
14 'news':'news'},
9e720c6c5b6c working on start page.
casties
parents: 4
diff changeset
15 'de':{
9e720c6c5b6c working on start page.
casties
parents: 4
diff changeset
16 'institute':'institut',
9e720c6c5b6c working on start page.
casties
parents: 4
diff changeset
17 'staff':'mitarbeiter',
9e720c6c5b6c working on start page.
casties
parents: 4
diff changeset
18 'research':'forschung',
9e720c6c5b6c working on start page.
casties
parents: 4
diff changeset
19 'resources':'ressourcen',
9e720c6c5b6c working on start page.
casties
parents: 4
diff changeset
20 'news':'aktuelles'}};
9e720c6c5b6c working on start page.
casties
parents: 4
diff changeset
21 secmap python:allsecs[lang];
2
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
22 ">
5
9e720c6c5b6c working on start page.
casties
parents: 4
diff changeset
23 <head>
9e720c6c5b6c working on start page.
casties
parents: 4
diff changeset
24 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
9e720c6c5b6c working on start page.
casties
parents: 4
diff changeset
25 <title metal:define-slot="title">Max Planck Institute for the History of Science</title>
9e720c6c5b6c working on start page.
casties
parents: 4
diff changeset
26 <link rel="stylesheet" type="text/css" tal:attributes="href string:$root/mpiwg_css" />
9e720c6c5b6c working on start page.
casties
parents: 4
diff changeset
27 <link rel="shortcut icon" href="http://www.mpiwg-berlin.mpg.de/favicon.ico" />
66
68b3d71eed27 formatting for preprint list. javascript for foldable divs.
casties
parents: 10
diff changeset
28 <script type="text/javascript" tal:attributes="src string:$root/jquery_js"></script>
68b3d71eed27 formatting for preprint list. javascript for foldable divs.
casties
parents: 10
diff changeset
29 <script type="text/javascript" tal:attributes="src string:$root/mpiwg_js"></script>
232
76ea03db3426 added Piwik stats counter.
casties
parents: 191
diff changeset
30 <!-- Piwik -->
76ea03db3426 added Piwik stats counter.
casties
parents: 191
diff changeset
31 <script type="text/javascript">
76ea03db3426 added Piwik stats counter.
casties
parents: 191
diff changeset
32 var _paq = _paq || [];
76ea03db3426 added Piwik stats counter.
casties
parents: 191
diff changeset
33 _paq.push(["trackPageView"]);
76ea03db3426 added Piwik stats counter.
casties
parents: 191
diff changeset
34 _paq.push(["enableLinkTracking"]);
76ea03db3426 added Piwik stats counter.
casties
parents: 191
diff changeset
35 (function() {
76ea03db3426 added Piwik stats counter.
casties
parents: 191
diff changeset
36 var u=(("https:" == document.location.protocol) ? "https" : "http") + "://piwik.mpiwg-berlin.mpg.de/";
76ea03db3426 added Piwik stats counter.
casties
parents: 191
diff changeset
37 _paq.push(["setTrackerUrl", u+"piwik.php"]);
76ea03db3426 added Piwik stats counter.
casties
parents: 191
diff changeset
38 _paq.push(["setSiteId", "1"]);
76ea03db3426 added Piwik stats counter.
casties
parents: 191
diff changeset
39 var d=document, g=d.createElement("script"), s=d.getElementsByTagName("script")[0]; g.type="text/javascript";
76ea03db3426 added Piwik stats counter.
casties
parents: 191
diff changeset
40 g.defer=true; g.async=true; g.src=u+"piwik.js"; s.parentNode.insertBefore(g,s);
76ea03db3426 added Piwik stats counter.
casties
parents: 191
diff changeset
41 })();
76ea03db3426 added Piwik stats counter.
casties
parents: 191
diff changeset
42 </script>
76ea03db3426 added Piwik stats counter.
casties
parents: 191
diff changeset
43 <!-- End Piwik Code -->
5
9e720c6c5b6c working on start page.
casties
parents: 4
diff changeset
44 <tal:block metal:define-slot="head" />
9e720c6c5b6c working on start page.
casties
parents: 4
diff changeset
45 </head>
2
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
46 <body>
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
47 <div tal:condition="exists:here/mpiwg_test" tal:replace="structure here/mpiwg_test" />
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
48 <div id="wrapper">
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
49 <div id="header">
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
50 <div class="title">
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
51 <a tal:attributes="href string:$root/index.html"><img tal:attributes="src string:$root/images/title.png"
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
52 alt="Max Planck Institute for the History of Science" /></a>
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
53 </div>
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
54 <div class="logo">
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
55 <a tal:attributes="href string:$root/index.html"><img tal:attributes="src string:$root/images/logo.png" alt="MPIWG Logo" /></a>
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
56 </div>
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
57 </div>
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
58
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
59 <div id="mainnav">
6
9e4dba0a81e2 front page layout works now.
casties
parents: 5
diff changeset
60 <ul>
9e4dba0a81e2 front page layout works now.
casties
parents: 5
diff changeset
61 <li tal:repeat="sec sections" tal:attributes="class python:test(sec.getId()==section,'sec on','sec')"><a
9e4dba0a81e2 front page layout works now.
casties
parents: 5
diff changeset
62 tal:attributes="href sec/absolute_url" tal:content="sec/title">Institute</a></li>
155
9e7bc0958fd8 fixed language switcher link.
casties
parents: 150
diff changeset
63 <li class="sec lang" tal:condition="python:lang=='en'"><a class="internal" tal:attributes="href string:$root/../de">Deutsch</a></li>
9e7bc0958fd8 fixed language switcher link.
casties
parents: 150
diff changeset
64 <li class="sec lang" tal:condition="python:lang=='de'"><a class="internal" tal:attributes="href string:$root/../en">English</a></li>
6
9e4dba0a81e2 front page layout works now.
casties
parents: 5
diff changeset
65 </ul>
2
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
66 </div>
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
67
8
0a7691055ea3 layout now with table-cell.
casties
parents: 6
diff changeset
68 <div id="breadcrumbs" metal:define-slot="breadcrumbs">
0a7691055ea3 layout now with table-cell.
casties
parents: 6
diff changeset
69 <a tal:attributes="href root">Home</a> &gt;
0a7691055ea3 layout now with table-cell.
casties
parents: 6
diff changeset
70 <tal:block tal:repeat="crumb crumbs | nothing">
0a7691055ea3 layout now with table-cell.
casties
parents: 6
diff changeset
71 <tal:block tal:condition="not:repeat/crumb/end">
191
90d44df497a6 updated breadcrumb handling, works for members now.
casties
parents: 176
diff changeset
72 <a tal:attributes="href crumb/url; title crumb/title|nothing;" tal:content="crumb/text">News</a> &gt;
8
0a7691055ea3 layout now with table-cell.
casties
parents: 6
diff changeset
73 </tal:block>
0a7691055ea3 layout now with table-cell.
casties
parents: 6
diff changeset
74 <tal:block tal:condition="repeat/crumb/end">
191
90d44df497a6 updated breadcrumb handling, works for members now.
casties
parents: 176
diff changeset
75 <span class="selected"> <a tal:attributes="href crumb/url; title crumb/title|nothing;" tal:content="crumb/text">News</a>
8
0a7691055ea3 layout now with table-cell.
casties
parents: 6
diff changeset
76 </span>
0a7691055ea3 layout now with table-cell.
casties
parents: 6
diff changeset
77 </tal:block>
0a7691055ea3 layout now with table-cell.
casties
parents: 6
diff changeset
78 </tal:block>
0a7691055ea3 layout now with table-cell.
casties
parents: 6
diff changeset
79 </div>
0a7691055ea3 layout now with table-cell.
casties
parents: 6
diff changeset
80
0a7691055ea3 layout now with table-cell.
casties
parents: 6
diff changeset
81 <div id="mainrow" metal:define-slot="mainrow">
5
9e720c6c5b6c working on start page.
casties
parents: 4
diff changeset
82 <div class="leftbox" metal:define-slot="leftbox">
108
782477730916 CLOSED - # 57: Research/ Research Units: Karussell f?r die Projekte in einem Department
casties
parents: 66
diff changeset
83 <div class="subnav" metal:define-slot="subnav"
782477730916 CLOSED - # 57: Research/ Research Units: Karussell f?r die Projekte in einem Department
casties
parents: 66
diff changeset
84 tal:define="subsection python:template.getSubSection(crumbs=crumbs);">
8
0a7691055ea3 layout now with table-cell.
casties
parents: 6
diff changeset
85 <ul tal:condition="crumbs">
10
c711fe75d0ac order by weight form for MPIWGFolder. more cleanup.
casties
parents: 8
diff changeset
86 <li tal:repeat="subnav python:here.getSubsections(here)"
8
0a7691055ea3 layout now with table-cell.
casties
parents: 6
diff changeset
87 tal:attributes="class python:test(subnav[0]==subsection,'sn_on','sn_off')"><a
0a7691055ea3 layout now with table-cell.
casties
parents: 6
diff changeset
88 tal:attributes="href python:subnav[1].absolute_url()" tal:content="python:subnav[1].title">Subnav</a></li>
0a7691055ea3 layout now with table-cell.
casties
parents: 6
diff changeset
89 </ul>
2
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
90 </div>
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
91 <div class="subnavbox" metal:define-slot="subnavbox"></div>
150
7771cdd95398 bookmark tabs.
casties
parents: 148
diff changeset
92 </div><!-- /leftbox -->
7771cdd95398 bookmark tabs.
casties
parents: 148
diff changeset
93
6
9e4dba0a81e2 front page layout works now.
casties
parents: 5
diff changeset
94 <div class="main content" metal:define-slot="main">
2
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
95
150
7771cdd95398 bookmark tabs.
casties
parents: 148
diff changeset
96 <div class="center" metal:define-slot="center"></div><!-- /center -->
2
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
97
150
7771cdd95398 bookmark tabs.
casties
parents: 148
diff changeset
98 </div><!-- /main -->
8
0a7691055ea3 layout now with table-cell.
casties
parents: 6
diff changeset
99
150
7771cdd95398 bookmark tabs.
casties
parents: 148
diff changeset
100 <metal:block metal:define-slot="sidebar" /><!-- /sidebar -->
8
0a7691055ea3 layout now with table-cell.
casties
parents: 6
diff changeset
101
150
7771cdd95398 bookmark tabs.
casties
parents: 148
diff changeset
102 </div><!-- /maincontent -->
2
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
103
157
2e0953694aef page footer
casties
parents: 155
diff changeset
104 <div id="footservices">
2e0953694aef page footer
casties
parents: 155
diff changeset
105 <div class="text">
2e0953694aef page footer
casties
parents: 155
diff changeset
106 <a href="#top" class="jumptop">Top</a>
2e0953694aef page footer
casties
parents: 155
diff changeset
107 </div>
2e0953694aef page footer
casties
parents: 155
diff changeset
108 <div class="icons">
2e0953694aef page footer
casties
parents: 155
diff changeset
109 <a class="javascriptonly" href="javascript:window.print()" title="Print this page">
2e0953694aef page footer
casties
parents: 155
diff changeset
110 <img alt="" tal:attributes="src string:$root/images/print.png"/>
2e0953694aef page footer
casties
parents: 155
diff changeset
111 Print
2e0953694aef page footer
casties
parents: 155
diff changeset
112 </a>
2e0953694aef page footer
casties
parents: 155
diff changeset
113 <a tal:attributes="href python:'mailto:?subject=MPIWG%%20%s&body=%s'%(here.title,here.absolute_url())" title="Forward as email">
2e0953694aef page footer
casties
parents: 155
diff changeset
114 <img alt="" tal:attributes="src string:$root/images/forward.png"/>
2e0953694aef page footer
casties
parents: 155
diff changeset
115 Forward
2e0953694aef page footer
casties
parents: 155
diff changeset
116 </a>
2e0953694aef page footer
casties
parents: 155
diff changeset
117 </div>
2e0953694aef page footer
casties
parents: 155
diff changeset
118 </div>
8
0a7691055ea3 layout now with table-cell.
casties
parents: 6
diff changeset
119 <div id="footer">
161
2b5adc7f5445 english and german footer
casties
parents: 157
diff changeset
120 <div class="text" tal:condition="python:lang=='de'">
173
37bfced67084 updated footer.
casties
parents: 161
diff changeset
121 <a href="http://intranet.mpiwg-berlin.mpg.de" target="_blank">Intranet</a>
161
2b5adc7f5445 english and german footer
casties
parents: 157
diff changeset
122 | <a href="https://webmail.mpiwg-berlin.mpg.de" target="_blank">Webmail</a>
2b5adc7f5445 english and german footer
casties
parents: 157
diff changeset
123 | <a href="http://www2.mpiwg-berlin.mpg.de/Library/libindex.html" target="_blank">Bibliothek (intern)</a>
176
ca6e3873107c fixed footer
casties
parents: 174
diff changeset
124 | <a tal:attributes="href string:$root/institut/overview.html">&Uuml;berblick</a>
161
2b5adc7f5445 english and german footer
casties
parents: 157
diff changeset
125 | <a tal:attributes="href string:$root/institut/adresse.html">Kontakt</a>
2b5adc7f5445 english and german footer
casties
parents: 157
diff changeset
126 | <a tal:attributes="href string:$root/impressum.html">Impressum/Lizenz</a>
2b5adc7f5445 english and german footer
casties
parents: 157
diff changeset
127 </div>
2b5adc7f5445 english and german footer
casties
parents: 157
diff changeset
128 <div class="text" tal:condition="python:lang!='de'">
173
37bfced67084 updated footer.
casties
parents: 161
diff changeset
129 <a href="http://intranet.mpiwg-berlin.mpg.de" target="_blank">Intranet</a>
157
2e0953694aef page footer
casties
parents: 155
diff changeset
130 | <a href="https://webmail.mpiwg-berlin.mpg.de" target="_blank">Webmail</a>
2e0953694aef page footer
casties
parents: 155
diff changeset
131 | <a href="http://www2.mpiwg-berlin.mpg.de/Library/libindex.html" target="_blank">Library (internal)</a>
173
37bfced67084 updated footer.
casties
parents: 161
diff changeset
132 | <a tal:attributes="href string:$root/institute/overview.html">Overview</a>
157
2e0953694aef page footer
casties
parents: 155
diff changeset
133 | <a tal:attributes="href string:$root/institute/address.html">Contact</a>
2e0953694aef page footer
casties
parents: 155
diff changeset
134 | <a tal:attributes="href string:$root/impressum.html">Imprint/Licenses</a>
2
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
135 </div>
6
9e4dba0a81e2 front page layout works now.
casties
parents: 5
diff changeset
136 <div class="logo">
9e4dba0a81e2 front page layout works now.
casties
parents: 5
diff changeset
137 <a href="http://www.mpg.de/"> <img tal:attributes="src string:$root/images/signet.png" alt="MPG" width="204" height="41" />
9e4dba0a81e2 front page layout works now.
casties
parents: 5
diff changeset
138 </a>
9e4dba0a81e2 front page layout works now.
casties
parents: 5
diff changeset
139 </div>
232
76ea03db3426 added Piwik stats counter.
casties
parents: 191
diff changeset
140 <noscript>
76ea03db3426 added Piwik stats counter.
casties
parents: 191
diff changeset
141 <!-- Piwik Image Tracker -->
76ea03db3426 added Piwik stats counter.
casties
parents: 191
diff changeset
142 <img src="http://piwik.mpiwg-berlin.mpg.de/piwik.php?idsite=1&rec=1" style="border:0" alt="" />
76ea03db3426 added Piwik stats counter.
casties
parents: 191
diff changeset
143 </noscript>
148
e34232fbe622 first version of bookmark tabs.
casties
parents: 108
diff changeset
144 </div><!-- /footer -->
150
7771cdd95398 bookmark tabs.
casties
parents: 148
diff changeset
145
148
e34232fbe622 first version of bookmark tabs.
casties
parents: 108
diff changeset
146 <div id="bookmarks" metal:define-slot="bookmarks">
161
2b5adc7f5445 english and german footer
casties
parents: 157
diff changeset
147 <div class="bookmark" tal:condition="python:lang=='de'">
2b5adc7f5445 english and german footer
casties
parents: 157
diff changeset
148 <a tal:attributes="href string:$root/${secmap/resources}/">Quellen <img tal:attributes="src string:$root/images/sources_small.png"/></a>
2b5adc7f5445 english and german footer
casties
parents: 157
diff changeset
149 </div>
2b5adc7f5445 english and german footer
casties
parents: 157
diff changeset
150 <div class="bookmark" tal:condition="python:lang!='de'">
148
e34232fbe622 first version of bookmark tabs.
casties
parents: 108
diff changeset
151 <a tal:attributes="href string:$root/${secmap/resources}/">Sources <img tal:attributes="src string:$root/images/sources_small.png"/></a>
e34232fbe622 first version of bookmark tabs.
casties
parents: 108
diff changeset
152 </div>
161
2b5adc7f5445 english and german footer
casties
parents: 157
diff changeset
153 <div class="bookmark" tal:condition="python:lang=='de'">
2b5adc7f5445 english and german footer
casties
parents: 157
diff changeset
154 <a tal:attributes="href string:$root/${secmap/research}/thesaurus/show_de.html">Schlagworte <img tal:attributes="src string:$root/images/thesaurus_small.png"/></a>
2b5adc7f5445 english and german footer
casties
parents: 157
diff changeset
155 </div>
2b5adc7f5445 english and german footer
casties
parents: 157
diff changeset
156 <div class="bookmark" tal:condition="python:lang!='de'">
150
7771cdd95398 bookmark tabs.
casties
parents: 148
diff changeset
157 <a tal:attributes="href string:$root/${secmap/research}/thesaurus/show_en.html">Keywords <img tal:attributes="src string:$root/images/thesaurus_small.png"/></a>
7771cdd95398 bookmark tabs.
casties
parents: 148
diff changeset
158 </div>
161
2b5adc7f5445 english and german footer
casties
parents: 157
diff changeset
159 <div class="bookmark" tal:condition="python:lang=='de'">
2b5adc7f5445 english and german footer
casties
parents: 157
diff changeset
160 <a tal:attributes="href string:$root/${secmap/institute}/search/search_de.html">Suche <img tal:attributes="src string:$root/images/search_small.png"/></a>
2b5adc7f5445 english and german footer
casties
parents: 157
diff changeset
161 </div>
2b5adc7f5445 english and german footer
casties
parents: 157
diff changeset
162 <div class="bookmark" tal:condition="python:lang!='de'">
150
7771cdd95398 bookmark tabs.
casties
parents: 148
diff changeset
163 <a tal:attributes="href string:$root/${secmap/institute}/search/search_en.html">Search <img tal:attributes="src string:$root/images/search_small.png"/></a>
7771cdd95398 bookmark tabs.
casties
parents: 148
diff changeset
164 </div>
7771cdd95398 bookmark tabs.
casties
parents: 148
diff changeset
165 </div><!-- /bookmarks -->
148
e34232fbe622 first version of bookmark tabs.
casties
parents: 108
diff changeset
166 </div><!-- /wrapper -->
2
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
167 </body>
ddf6c1a27a4b new version with main_template and css in product.
casties
parents:
diff changeset
168 </html>