groups/themes/openstack/templates/page.tpl.php
Marton Kiss d97e3ba1c1 Refactor front page layout
Introduce a new layout to front page, include a map, group finder,
and tabbed upcoming events / recent activity.

Change-Id: I1a865e29e3a1174a2f0ca1636f01ee3a2d0df0a0
2014-06-17 13:06:35 +02:00

97 lines
2.9 KiB
PHP

<?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 print render($page['toolbar']); ?>
<div id="branding">
<div id="branding-container">
<?php if ($logo): ?>
<a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" rel="home" class="header__logo" id="logo"><img src="<?php print $logo; ?>" alt="<?php print t('Home'); ?>" class="header__logo-image" /></a>
<?php endif; ?>
<div id="navigation">
<?php if ($main_menu): ?>
<nav id="main-menu" role="navigation" tabindex="-1" class="blueline">
<?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>
</div>
<?php print render($page['header']); ?>
</div>
</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>
<?php
// Render the sidebars to see if there's anything in them.
$sidebar_first = render($page['sidebar_first']);
$sidebar_second = render($page['sidebar_second']);
?>
<?php if ($sidebar_first || $sidebar_second): ?>
<aside class="sidebars">
<?php print $sidebar_first; ?>
<?php print $sidebar_second; ?>
</aside>
<?php endif; ?>
</div>
<?php print render($page['footer']); ?>
</div>
<?php print render($page['bottom']); ?>