view zpt/www/main_template.zpt @ 260:4eddd388d490 new_pro_struct

more work on subproject thumbs.
author casties
date Thu, 07 Aug 2014 17:50:04 +0200
parents e5b444dab055
children bd41c278b88a
line wrap: on
line source

<!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; 
                  global crumbs template/getBreadcrumbs | nothing;
                  section here/getSection | nothing;
                  sections here/getSections | nothing;
                  lang here/getLang | nothing; langroot python:here.getMPIWGRoot().aq_parent.absolute_url();
                  allsecs python:{'en':{
                    'institute':'institute',
                    'staff':'staff',
                    'research':'research',
                    'resources':'resources',
                    'news':'news'},
                  'de':{
                    'institute':'institut',
                    'staff':'mitarbeiter',
                    'research':'forschung',
                    'resources':'ressourcen',
                    'news':'aktuelles'}};
                  secmap python:allsecs[lang];
                  ">
<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" />
<script type="text/javascript" tal:attributes="src string:$root/jquery_js"></script>
<script type="text/javascript" tal:attributes="src string:$root/mpiwg_js"></script>
<!-- Piwik -->
<script type="text/javascript">
  var _paq = _paq || [];
  _paq.push(["trackPageView"]);
  _paq.push(["enableLinkTracking"]);
  (function() {
    var u=(("https:" == document.location.protocol) ? "https" : "http") + "://piwik.mpiwg-berlin.mpg.de/";
    _paq.push(["setTrackerUrl", u+"piwik.php"]);
    _paq.push(["setSiteId", "1"]);
    var d=document, g=d.createElement("script"), s=d.getElementsByTagName("script")[0]; g.type="text/javascript";
    g.defer=true; g.async=true; g.src=u+"piwik.js"; s.parentNode.insertBefore(g,s);
  })();
</script>
<!-- End Piwik Code -->
<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">
      <ul>
        <li tal:repeat="sec sections" tal:attributes="class python:test(sec.getId()==section,'sec on','sec')"><a
          tal:attributes="href sec/absolute_url" tal:content="sec/title">Institute</a></li>
        <li class="sec lang" tal:condition="python:lang=='en'"><a class="internal" tal:attributes="href string:$langroot/de/index.html">Deutsch</a></li>
        <li class="sec lang" tal:condition="python:lang=='de'"><a class="internal" tal:attributes="href string:$langroot/en/index.html">English</a></li>
      </ul>
    </div>

    <div id="breadcrumbs" metal:define-slot="breadcrumbs">
      <a tal:attributes="href root">Home</a> &gt;
      <tal:block tal:repeat="crumb crumbs | nothing">
        <tal:block tal:condition="not:repeat/crumb/end">
          <a tal:attributes="href crumb/url; title crumb/title|nothing;" tal:content="crumb/text">News</a> &gt;
            </tal:block>
        <tal:block tal:condition="repeat/crumb/end">
          <span class="selected"> <a tal:attributes="href crumb/url; title crumb/title|nothing;" tal:content="crumb/text">News</a>
          </span>
        </tal:block>
      </tal:block>
    </div>

    <div id="mainrow" metal:define-slot="mainrow">
      <div class="leftbox" metal:define-slot="leftbox">
        <div class="subnav" metal:define-slot="subnav"
          tal:define="subsection python:template.getSubSection(crumbs=crumbs);">
          <ul tal:condition="crumbs">
            <li tal:repeat="subnav python:here.getSubsections(here)"
              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></li>
          </ul>
        </div>
        <div class="subnavbox" metal:define-slot="subnavbox"></div>
      </div><!-- /leftbox -->
      
      <div class="main content" metal:define-slot="main">

        <div class="center" metal:define-slot="center"></div><!-- /center -->

      </div><!-- /main -->

      <metal:block metal:define-slot="sidebar" /><!-- /sidebar -->

    </div><!-- /maincontent -->
    
    <metal:block metal:define-slot="subrow"/>

    <div id="footservices">
      <div class="text">
        <a href="#top" class="jumptop">Top</a>
      </div>
      <div class="icons">
        <a class="javascriptonly" href="javascript:window.print()" title="Print this page">
          <img alt="" tal:attributes="src string:$root/images/print.png"/>
          Print
        </a>
        <a tal:attributes="href python:'mailto:?subject=MPIWG%%20%s&body=%s'%(here.title,here.absolute_url())" title="Forward as email">
          <img alt="" tal:attributes="src string:$root/images/forward.png"/>
          Forward
        </a>
      </div>
    </div>
    <div id="footer">
      <div class="text" tal:condition="python:lang=='de'">
        <a href="http://intranet.mpiwg-berlin.mpg.de" target="_blank">Intranet</a> 
        | <a href="https://webmail.mpiwg-berlin.mpg.de" target="_blank">Webmail</a> 
        | <a href="http://www2.mpiwg-berlin.mpg.de/Library/libindex.html" target="_blank">Bibliothek (intern)</a> 
        | <a tal:attributes="href string:$root/institut/overview.html">&Uuml;berblick</a> 
        | <a tal:attributes="href string:$root/institut/adresse.html">Kontakt</a>
        | <a tal:attributes="href string:$root/impressum.html">Impressum</a>
        | <a tal:attributes="href string:$root/institut/lizenzen.html">Lizenzen</a>
      </div>
      <div class="text" tal:condition="python:lang!='de'">
        <a href="http://intranet.mpiwg-berlin.mpg.de" target="_blank">Intranet</a> 
        | <a href="https://webmail.mpiwg-berlin.mpg.de" target="_blank">Webmail</a> 
        | <a href="http://www2.mpiwg-berlin.mpg.de/Library/libindex.html" target="_blank">Library (internal)</a> 
        | <a tal:attributes="href string:$root/institute/overview.html">Overview</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 string:$root/institute/licences.html">Licences</a> 
      </div>
      <div class="logo">
        <a href="http://www.mpg.de/"> <img tal:attributes="src string:$root/images/signet.png" alt="MPG" width="204" height="41" />
        </a>
      </div>
      <noscript>
      <!-- Piwik Image Tracker -->
        <img src="http://piwik.mpiwg-berlin.mpg.de/piwik.php?idsite=1&rec=1" style="border:0" alt="" />
      </noscript>
    </div><!-- /footer -->
    
    <div id="bookmarks" metal:define-slot="bookmarks">
        <div class="bookmark" tal:condition="python:lang=='de'">
            <a tal:attributes="href string:$root/${secmap/resources}/">Quellen <img tal:attributes="src string:$root/images/sources_small.png"/></a>
        </div>
        <div class="bookmark" tal:condition="python:lang!='de'">
            <a tal:attributes="href string:$root/${secmap/resources}/">Sources <img tal:attributes="src string:$root/images/sources_small.png"/></a>
        </div>
        <div class="bookmark" tal:condition="python:lang=='de'">
            <a tal:attributes="href string:$root/${secmap/research}/thesaurus/show_de.html">Schlagworte <img tal:attributes="src string:$root/images/thesaurus_small.png"/></a>
        </div>
        <div class="bookmark" tal:condition="python:lang!='de'">
            <a tal:attributes="href string:$root/${secmap/research}/thesaurus/show_en.html">Keywords <img tal:attributes="src string:$root/images/thesaurus_small.png"/></a>
        </div>
        <div class="bookmark" tal:condition="python:lang=='de'">
            <a tal:attributes="href string:$root/${secmap/institute}/search/search_de.html">Suche <img tal:attributes="src string:$root/images/search_small.png"/></a>
        </div>
        <div class="bookmark" tal:condition="python:lang!='de'">
            <a tal:attributes="href string:$root/${secmap/institute}/search/search_en.html">Search <img tal:attributes="src string:$root/images/search_small.png"/></a>
        </div>
    </div><!-- /bookmarks -->
  </div><!-- /wrapper -->
</body>
</html>