Skip to content

Commit

Permalink
Full width sections
Browse files Browse the repository at this point in the history
Gave the site title, navigation, main content, and footer their own
wrappers and containers, to allow for full-bleed backgrounds and
designs.
  • Loading branch information
andrewmbacon committed Jun 26, 2014
1 parent b846c81 commit 9c91d41
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
2 changes: 1 addition & 1 deletion footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @package cornerstone
*/
?>

</div><!-- .container-->
</div><!-- #content -->

<footer id="footer" class="site-footer" role="contentinfo">
Expand Down
18 changes: 8 additions & 10 deletions header.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@
<?php
$headerImg = get_header_image();
?>
<header id="masthead" class="site-header container <?php if ($headerImg != ''){echo 'header-image';} ?>" role="banner">
<header id="masthead" class="site-header <?php if ($headerImg != ''){echo 'header-image';} ?>" role="banner">
<div id="site-title" class="container">
<?php if ($headerImg != ''){ echo '<div id="header-image-wrap"><img src="' . get_header_image() . '" height="' . get_custom_header()->height . '" width="' . get_custom_header()->width . '" id="header-image" alt="Decorative header image of '. get_bloginfo('name') .'" /></div> ';}?>
<div class="site-branding hidden-xs" id="uc-site-header">
<?php
Expand All @@ -50,16 +51,11 @@
}
echo '<p id="uc-site-parent" class="'.$parentColor.'"><a href="'.$secondarylink.'">'.$secondary.'</a></p>';
}


?>

<h1 id="uc-site-title" class="<?php echo $headingColor; ?>"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></a></h1>

<h1 id="uc-site-title" class="<?php echo $headingColor; ?>"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
</div>
<!--
<h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
-->
</div>
<div id="nav-wrapper" class="container">
<nav id="site-navigation" class="navbar navbar-default" role="navigation">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#primary-nav">
Expand Down Expand Up @@ -93,7 +89,9 @@
</div>
</nav>
<!-- #site-navigation -->
</div>
</header>
<!-- #masthead -->

<div id="content" class="container site-content">
<div id="content" class="site-content">
<div class="container">

0 comments on commit 9c91d41

Please sign in to comment.