Mercurial > hg > mpiwgzen_wide
diff templates/page.tpl.php @ 0:a3750d724105 default tip
initital
author | Dirk Wintergruen <dwinter@mpiwg-berlin.mpg.de> |
---|---|
date | Tue, 02 Jun 2015 09:16:36 +0200 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/templates/page.tpl.php Tue Jun 02 09:16:36 2015 +0200 @@ -0,0 +1,137 @@ +<?php +/** + * @file + * Returns the HTML for a single Drupal page. + * + * Complete documentation for this file is available online. + * @see https://drupal.org/node/1728148 + */ +?> + +<div id="page"> + + <header class="header" id="header" role="banner"> + <?php + /** + * Logo of MPIWG at right side. + */ + ?> + <?php if (user_is_logged_in()): ?> + <a href="http://www.mpiwg-berlin.mpg.de/en"><img src="http://echo-dev.rz-berlin.mpg.de/echo/sites/all/themes/mpiwgzen/mpiwg-logo-intern.png" alt"Logo MPIWG" class="header__logo-image-mpi" /><a> + <?php else: ?> + <a href="http://www.mpiwg-berlin.mpg.de/en"><img src="http://echo-dev.rz-berlin.mpg.de/echo/sites/all/themes/mpiwgzen/mpiwg-logo-extern.png" alt"Logo MPIWG" class="header__logo-image-mpi" /><a> + <?php endif; ?> + + <?php if (!user_is_logged_in()): ?> + <a href="http://www.mpiwg-berlin.mpg.de/en" id="mpiwg-backlink">« Max Planck Institute for the History of Science<a> + <?php endif; ?> + + <?php if ($logo): ?> + <a href="<?php print $front_page; ?>" title="<?php print t('Startseite'); ?>" rel="home" class="header__logo" id="logo"><img src="<?php print $logo; ?>" alt="<?php print t('Startseite'); ?>" class="header__logo-image" /></a> + <?php endif; ?> + + <?php if ($site_name || $site_slogan): ?> + <div class="header__name-and-slogan" id="name-and-slogan"> + <?php if ($site_name): ?> + <h1 class="header__site-name" id="site-name"> + <a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" class="header__site-link" rel="home"><span><?php print $site_name; ?></span></a> + </h1> + <?php endif; ?> + + <?php if ($site_slogan and (!user_is_logged_in())): ?> + <div class="header__site-slogan" id="site-slogan"><?php print $site_slogan; ?></div> + <?php endif; ?> + </div> + <?php endif; ?> + + <?php if ($secondary_menu): ?> + <nav class="header__secondary-menu" id="secondary-menu" role="navigation"> + <?php print theme('links__system_secondary_menu', array( + 'links' => $secondary_menu, + 'attributes' => array( + 'class' => array('links', 'inline', 'clearfix'), + ), + 'heading' => array( + 'text' => $secondary_menu_heading, + 'level' => 'h2', + 'class' => array('element-invisible'), + ), + )); ?> + </nav> + <?php endif; ?> + + <?php print render($page['header']); ?> + + </header> + + <div id="main"> + + <div id="content" class="column" role="main"> + <?php print render($page['highlighted']); ?> + <?php print $breadcrumb; ?> + <a id="main-content"></a> + <?php print render($title_prefix); ?> + <?php if ($title): ?> + <h1 class="page__title title" id="page-title"><?php print $title; ?></h1> + <?php endif; ?> + <?php print render($title_suffix); ?> + <?php print $messages; ?> + <?php print render($tabs); ?> + <?php print render($page['help']); ?> + <?php if ($action_links): ?> + <ul class="action-links"><?php print render($action_links); ?></ul> + <?php endif; ?> + <?php print render($page['content']); ?> + <?php print $feed_icons; ?> + </div> + + <div id="navigation"> + + <?php if ($main_menu): ?> + <nav id="main-menu" class="main-menu" role="navigation" tabindex="-1"> + <?php + // This code snippet is hard to modify. We recommend turning off the + // "Main menu" on your sub-theme's settings form, deleting this PHP + // code block, and, instead, using the "Menu block" module. + // @see https://drupal.org/project/menu_block + //print theme('links__system_main_menu', array( + // 'links' => $main_menu, + // 'attributes' => array( + // 'class' => array('links', 'inline', 'clearfix'), + // ), + // 'heading' => array( + // 'text' => t('Main menu'), + // 'level' => 'h2', + // 'class' => array('element-invisible'), + // ), + //)); ?> + </nav> + <?php endif; ?> + + <?php print render($page['navigation']); ?> + + </div> + + <?php + // Render the sidebars to see if there's anything in them. + $sidebar_first = render($page['sidebar_first']); + $sidebar_second = render($page['sidebar_second']); + $sidebar_left = render($page['sidebar_left']); + $sidebar_right = render($page['sidebar_right']); + ?> + + <?php if ($sidebar_first || $sidebar_second || $page['sidebar_left']): ?> + <aside class="sidebars"> + <?php print render($page['sidebar_left']); ?> + <?php print $sidebar_first; ?> + <?php print $sidebar_second; ?> + </aside> + <?php endif; ?> + + </div> + + <?php print render($page['footer']); ?> + +</div> + +<?php print render($page['bottom']); ?>