Mercurial > hg > drupalISMI
view mpiwgISMI/page.tpl.php @ 8:5148098e96a4
add theme drupalISMI.
author | casties |
---|---|
date | Fri, 19 Jun 2015 18:58:25 +0200 |
parents | |
children |
line wrap: on
line source
<?php print render($page['header']); ?> <div id="wrapper"> <div id="container" class="clearfix"> <!-- <div id="mpiwg_link"> <a href="http://www.mpiwg-berlin.mpg.de/en"><b>«</b> Max Planck Institute for the History of Science</a> </div>--> <div id="header"> <div class="title"> <?php if ($logo!=''):?> <div class="logo_left"> <a href="<?php print theme_get_setting('mpiwg_logo_link') ?>"> <img class="logo_left" height="100pt" src="<?php print $logo ?>" alt="<?php print $site_name_and_slogan ?>" title="<?php print $site_name_and_slogan ?>" id="logo" /> </a> </div> <?php endif;?> <?php if (isset($node) && ( ($node->type == "enterprise_event") || ($node->type == "project_description") ) ):?> <?php print render($title_prefix); ?> <?php if(substr($title,0,1) != "_"): ?> <h1 <?php print $tabs ? ' class="with-tabs"' : '' ?>> <?php print $title ?> </h1> <?php if (isset($node->field_subtitle['und'][0]['value'])): ?> <?php print $node->field_subtitle['und'][0]['value'] ?> <?php endif;?> <?php endif; ?> <?php else: ?> <h1> <a href="<?php print $front_page ?>"> <?php print $site_name ?> </a> </h1> <h2> <?php print $site_slogan ?> </h2> <?php endif;?> </div> <div class="logo"> <a href="<?php print theme_get_setting('mpiwg_logo_link') ?>"> <img src="<?php print $MCGilllogo ?>" alt="<?php print $site_name_and_slogan ?>" title="<?php print $site_name_and_slogan ?>" id="logo" /> </a> <a href="<?php print theme_get_setting('mpiwg_logo_link') ?>"> <img src="<?php print $MPIWGlogo ?>" alt="<?php print $site_name_and_slogan ?>" title="<?php print $site_name_and_slogan ?>" id="logo" /> </a> </div> </div> </div> <!-- /#header --> <div id="mainnav"> <?php if ($primary_nav): print $primary_nav; endif; ?> <!--<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"><a class="internal" tal:attributes="href string:$root/../de">Deutsch</a></li>--> </div> <!-- /#mainnav--> <div id="mainrow"> <?php if ($page['sidebar_first']): ?> <div id="leftbox" class="leftbox"> <?php print render($page['sidebar_first']); ?> </div> <?php endif; ?> <div class="main"> <div id="center"> <!--<?php print $breadcrumb; ?>--> <?php if ($page['highlighted']): ?> <div id="highlighted"> <?php print render($page['highlighted']); ?> </div> <?php endif; ?> <a id="main-content"></a> <?php if ($tabs): ?> <div id="tabs-wrapper" class="clearfix"> <?php endif; ?> <?php if (isset($node) && ($node->type != "enterprise_event") && ($node->type!="project_description")):?> <?php print render($title_prefix); ?> <?php if (isset($node->field_oc)):?> <?php if ($node->field_oc['und'][0]['tid']==3):?> <h1>Witness</h1> <?php elseif ($node->field_oc['und'][0]['tid']==4):?> <h1>Codex</h1> <?php elseif ($node->field_oc['und'][0]['tid']==1):?> <h1 <?php print $tabs ? ' class="with-tabs"' : '' ?>> Person: <?php print _openmindattribute_field_remap($node->field_attribute['und'])['name_translit']['romanization'] ?> </h1> <?php elseif ($node->field_oc['und'][0]['tid']==2):?> <h1 <?php print $tabs ? ' class="with-tabs"' : '' ?>> Text: <?php print $title ?> </h1> <?php else :?> <?php if(substr($title,0,1) != "_"): ?> <h1 <?php print $tabs ? ' class="with-tabs"' : '' ?>> <?php print $title ?> </h1> <?php endif; ?> <?php endif;?> <?php endif; ?> <?php print render($title_suffix); ?> <?php if ($tabs): ?> <?php print render($tabs); ?> </div> <?php endif; ?> <?php endif;?> <?php print render($tabs2); ?> <?php print $messages; ?> <?php print render($page['help']); ?> <?php if ($action_links): ?> <ul class="action-links"> <?php print render($action_links); ?> </ul> <?php endif; ?> <div class="clearfix"> <?php print render($page['content']); ?> </div> </div> <!--/#center --> </div> <!-- .main.content--> <?php if ($page['sidebar_second']): ?> <div id="sidebar" class="sidebar"> <!-- <div id="sideblock" class="sideblock">--> <?php print render($page['sidebar_second']); ?> <!-- </div>--> </div> <?php endif; ?> </div> <!-- #mainrow--> <!-- footer--> <div id="footer"> <?php print $feed_icons ?> <?php print render($page['footer']); ?> </div> <!-- #footer--> </div> <!-- /#container --> </div> <!-- /#wrapper -->