diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/zpt/www/main_template.zpt	Thu Feb 07 19:50:39 2013 +0100
@@ -0,0 +1,106 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
+    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" metal:define-macro="page" 
+      tal:define="root here/MPIWGrootURL|here/en/MPIWGrootURL; 
+                  crumbs template/getBreadcrumbs | nothing;
+                  section here/getSection | nothing;
+                  sections here/getSections | nothing;
+                  secmap python:{
+                  'institute':'institute',
+                  'staff':'staff',
+                  'research':'research',
+                  'resources':'resources',
+                  'news':'news',
+                  'lang':'en'};
+                  subsection python:template.getSubSection(crumbs=crumbs);
+                  frontfeature python:int(request.get('ff',4));
+                  ">
+  <head>
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+    <title metal:define-slot="title">Max Planck Institute for the History of Science</title>
+    <link rel="stylesheet" type="text/css" tal:attributes="href string:$root/mpiwg_css"/>
+    <link rel="shortcut icon" href="http://www.mpiwg-berlin.mpg.de/favicon.ico"/>
+    <tal:block metal:define-slot="head"/>
+
+  </head>
+<body>
+  <div tal:condition="exists:here/mpiwg_test" tal:replace="structure here/mpiwg_test" />
+  <div id="wrapper">
+    <div id="header">
+      <div class="title">
+        <a tal:attributes="href string:$root/index.html"><img tal:attributes="src string:$root/images/title.png"
+          alt="Max Planck Institute for the History of Science" /></a>
+      </div>
+      <div class="logo">
+        <a tal:attributes="href string:$root/index.html"><img tal:attributes="src string:$root/images/logo.png" alt="MPIWG Logo" /></a>
+      </div>
+    </div>
+
+    <div id="mainnav">
+      <tal:block tal:repeat="sec sections">
+        <div tal:attributes="class python:test(sec.getId()==section,'sec on','sec')">
+          <a tal:attributes="href sec/absolute_url" tal:content="sec/title">Institute</a>
+        </div>
+      </tal:block>
+      <div class="sec lang">
+        <a class="internal" tal:attributes="href string:$root/../de">Deutsch</a>
+      </div>
+    </div>
+
+    <metal:block metal:define-slot="featureslot" />
+
+    <div class="content" metal:define-slot="content">
+      <div class="leftbox">
+        <div class="subnav" metal:define-slot="subnav">
+          <tal:block tal:condition="crumbs" tal:repeat="subnav python:here.subNav(here)">
+            <div tal:attributes="class python:test(subnav[0]==subsection,'sn_on','sn_off')">
+              <a tal:attributes="href python:subnav[1].absolute_url()" tal:content="python:subnav[1].title">Subnav</a>
+            </div>
+          </tal:block>
+        </div>
+        <div class="subnavbox" metal:define-slot="subnavbox"></div>
+      </div>
+      <!-- leftbox -->
+      <div class="main" metal:define-slot="main">
+
+        <div class="center" metal:define-slot="center"></div>
+        <!-- center -->
+
+        <div class="sidebar" metal:define-slot="sidebar"></div>
+        <!-- sidebar -->
+
+        <div class="footer">
+          <div class="services">
+            <div class="serviceprint">
+              <a href="javascript:window.print()">Print</a>
+            </div>
+            <div class="serviceforward">
+              <a tal:attributes="href python:'mailto:?subject=MPIWG%%20%s&body=%s'%(here.title,here.absolute_url())">Forward</a>
+            </div>
+            <!-- <div class="servicepdf"><a href="">Download PDF</a></div> -->
+          </div>
+        </div>
+      </div>
+      <!-- main -->
+
+      <div class="boilerplate">
+        <div class="legal">
+          <a tal:attributes="href string:$root/resources/intranet.html">Intranet</a> | <a href="https://webmail.mpiwg-berlin.mpg.de"
+            target="_blank">Webmail</a> | <a tal:attributes="href string:$root/institute/address.html">Contact</a> | <a
+            tal:attributes="href string:$root/impressum.html">Imprint</a> | <a
+            tal:attributes="href python:'http://www2.mpiwg-berlin.mpg.de/Library/libindex.html'" target="_blank">Library
+            (internal)</a> | <a tal:attributes="href string:$root/institute/sitemap.html">Sitemap</a>
+        </div>
+        <div class="mpg_signet">
+          <a href="http://www.mpg.de/"> <img tal:attributes="src string:$root/images/signet.png" alt="MPG" width="204"
+            height="41" />
+          </a>
+        </div>
+      </div>
+      <!-- boilerplate -->
+    </div>
+    <!-- content -->
+  </div>
+  <!-- wrapper -->
+</body>
+</html>