Skip to content
This repository has been archived by the owner on Sep 9, 2019. It is now read-only.

Added page title and logo to page template. #61

Open
wants to merge 1 commit into
base: 7.x-1.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 15 additions & 6 deletions templates/page/page.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,17 @@
*/
?>

<div id="main" class="main-content" role="main">
<div id="page" class="page">

<header class="header" id="header" role="banner">
<header id="header" class="header" role="banner">

<section class="usa-banner">
<div class="usa-grid">
<div class="usa-banner-content" id="main-content">
<div id="header-content" class="usa-banner-content">

<?php if ($logo): ?>
<a href="<?php print $front_page; ?>" rel="home" class="site-logo"><img src="<?php print $logo; ?>" alt="<?php print t('Home'); ?>" /></a>
<?php endif; ?>

<?php if ($site_name): ?>
<h1><?php print $site_name; ?></h1>
Expand Down Expand Up @@ -111,10 +115,15 @@
</nav>
<?php endif; ?>

<section class="usa-section">
<main id="main" class="main-content usa-section" role="main">
<div class="usa-grid">
<?php print $breadcrumb; ?>
<a id="main-content"></a>
<?php print render($title_prefix); ?>
<?php if ($title): ?>
<h1><?php print $title; ?></h1>
<?php endif; ?>
<?php print render($title_suffix); ?>
<?php print $messages; ?>
<?php print render($tabs); ?>
<?php print render($page['help']); ?>
Expand All @@ -132,10 +141,10 @@
<?php endif; ?>

</div>
</section>
</main>

<?php if ($page['footer']): ?>
<footer class="usa-section">
<footer class="usa-section" role="contentinfo">
<?php print render($page['footer']); ?>
</footer>
<?php endif; ?>
Expand Down