comparison 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
comparison
equal deleted inserted replaced
-1:000000000000 0:a3750d724105
1 <?php
2 /**
3 * @file
4 * Returns the HTML for a single Drupal page.
5 *
6 * Complete documentation for this file is available online.
7 * @see https://drupal.org/node/1728148
8 */
9 ?>
10
11 <div id="page">
12
13 <header class="header" id="header" role="banner">
14 <?php
15 /**
16 * Logo of MPIWG at right side.
17 */
18 ?>
19 <?php if (user_is_logged_in()): ?>
20 <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>
21 <?php else: ?>
22 <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>
23 <?php endif; ?>
24
25 <?php if (!user_is_logged_in()): ?>
26 <a href="http://www.mpiwg-berlin.mpg.de/en" id="mpiwg-backlink">&laquo; Max Planck Institute for the History of Science<a>
27 <?php endif; ?>
28
29 <?php if ($logo): ?>
30 <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>
31 <?php endif; ?>
32
33 <?php if ($site_name || $site_slogan): ?>
34 <div class="header__name-and-slogan" id="name-and-slogan">
35 <?php if ($site_name): ?>
36 <h1 class="header__site-name" id="site-name">
37 <a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" class="header__site-link" rel="home"><span><?php print $site_name; ?></span></a>
38 </h1>
39 <?php endif; ?>
40
41 <?php if ($site_slogan and (!user_is_logged_in())): ?>
42 <div class="header__site-slogan" id="site-slogan"><?php print $site_slogan; ?></div>
43 <?php endif; ?>
44 </div>
45 <?php endif; ?>
46
47 <?php if ($secondary_menu): ?>
48 <nav class="header__secondary-menu" id="secondary-menu" role="navigation">
49 <?php print theme('links__system_secondary_menu', array(
50 'links' => $secondary_menu,
51 'attributes' => array(
52 'class' => array('links', 'inline', 'clearfix'),
53 ),
54 'heading' => array(
55 'text' => $secondary_menu_heading,
56 'level' => 'h2',
57 'class' => array('element-invisible'),
58 ),
59 )); ?>
60 </nav>
61 <?php endif; ?>
62
63 <?php print render($page['header']); ?>
64
65 </header>
66
67 <div id="main">
68
69 <div id="content" class="column" role="main">
70 <?php print render($page['highlighted']); ?>
71 <?php print $breadcrumb; ?>
72 <a id="main-content"></a>
73 <?php print render($title_prefix); ?>
74 <?php if ($title): ?>
75 <h1 class="page__title title" id="page-title"><?php print $title; ?></h1>
76 <?php endif; ?>
77 <?php print render($title_suffix); ?>
78 <?php print $messages; ?>
79 <?php print render($tabs); ?>
80 <?php print render($page['help']); ?>
81 <?php if ($action_links): ?>
82 <ul class="action-links"><?php print render($action_links); ?></ul>
83 <?php endif; ?>
84 <?php print render($page['content']); ?>
85 <?php print $feed_icons; ?>
86 </div>
87
88 <div id="navigation">
89
90 <?php if ($main_menu): ?>
91 <nav id="main-menu" class="main-menu" role="navigation" tabindex="-1">
92 <?php
93 // This code snippet is hard to modify. We recommend turning off the
94 // "Main menu" on your sub-theme's settings form, deleting this PHP
95 // code block, and, instead, using the "Menu block" module.
96 // @see https://drupal.org/project/menu_block
97 //print theme('links__system_main_menu', array(
98 // 'links' => $main_menu,
99 // 'attributes' => array(
100 // 'class' => array('links', 'inline', 'clearfix'),
101 // ),
102 // 'heading' => array(
103 // 'text' => t('Main menu'),
104 // 'level' => 'h2',
105 // 'class' => array('element-invisible'),
106 // ),
107 //)); ?>
108 </nav>
109 <?php endif; ?>
110
111 <?php print render($page['navigation']); ?>
112
113 </div>
114
115 <?php
116 // Render the sidebars to see if there's anything in them.
117 $sidebar_first = render($page['sidebar_first']);
118 $sidebar_second = render($page['sidebar_second']);
119 $sidebar_left = render($page['sidebar_left']);
120 $sidebar_right = render($page['sidebar_right']);
121 ?>
122
123 <?php if ($sidebar_first || $sidebar_second || $page['sidebar_left']): ?>
124 <aside class="sidebars">
125 <?php print render($page['sidebar_left']); ?>
126 <?php print $sidebar_first; ?>
127 <?php print $sidebar_second; ?>
128 </aside>
129 <?php endif; ?>
130
131 </div>
132
133 <?php print render($page['footer']); ?>
134
135 </div>
136
137 <?php print render($page['bottom']); ?>