Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

better identation on header.php #322

Merged
merged 1 commit into from
Jul 26, 2015
Merged
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
31 changes: 24 additions & 7 deletions header.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,31 @@
</head>

<body <?php body_class(); ?>>
<a id="skippy" class="sr-only sr-only-focusable" href="#content"><div class="container"><span class="skiplink-text"><?php _e( 'Skip to content', 'odin' ); ?></span></div></a>
<a id="skippy" class="sr-only sr-only-focusable" href="#content">
<div class="container">
<span class="skiplink-text"><?php _e( 'Skip to content', 'odin' ); ?></span>
</div>
</a>

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

<div class="page-header hidden-xs">
<?php if ( is_home() ) : ?>
<h1 class="site-title"><a href="<?php echo home_url(); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
<h1 class="site-title">
<a href="<?php echo home_url(); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
<?php bloginfo( 'name' ); ?>
</a>
</h1>
<h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
<?php else : ?>
<div class="site-title h1"><a href="<?php echo home_url(); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></div>
<div class="site-description h2"><?php bloginfo( 'description' ); ?></div>
<div class="site-title h1">
<a href="<?php echo home_url(); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
<?php bloginfo( 'name' ); ?>
</a>
</div>
<div class="site-description h2">
<?php bloginfo( 'description' ); ?>
</div>
<?php endif ?>

<?php
Expand All @@ -54,7 +67,9 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand visible-xs-block" href="<?php echo home_url(); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a>
<a class="navbar-brand visible-xs-block" href="<?php echo home_url(); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
<?php bloginfo( 'name' ); ?>
</a>
</div>
<nav class="collapse navbar-collapse navbar-main-navigation" role="navigation">
<?php
Expand All @@ -70,7 +85,9 @@
);
?>
<form method="get" class="navbar-form navbar-right" action="<?php echo esc_url( home_url( '/' ) ); ?>" role="search">
<label for="navbar-search" class="sr-only"><?php _e( 'Search:', 'odin' ); ?></label>
<label for="navbar-search" class="sr-only">
<?php _e( 'Search:', 'odin' ); ?>
</label>
<div class="form-group">
<input type="search" class="form-control" name="s" id="navbar-search" />
</div>
Expand Down