Skip to content

Commit

Permalink
Use PHP Alternative Syntax in header templates
Browse files Browse the repository at this point in the history
  • Loading branch information
retlehs committed Oct 2, 2012
1 parent c0f8559 commit 65c13c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions templates/header-top-navbar.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
</a>
<nav id="nav-main" class="nav-collapse" role="navigation">
<?php
if (has_nav_menu('primary_navigation')) {
if (has_nav_menu('primary_navigation')) :
wp_nav_menu(array('theme_location' => 'primary_navigation', 'menu_class' => 'nav'));
}
endif;
?>
</nav>
</div>
Expand Down
4 changes: 2 additions & 2 deletions templates/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
<a class="brand" href="<?php echo home_url(); ?>/"><?php bloginfo('name'); ?></a>
<nav id="nav-main" role="navigation">
<?php
if (has_nav_menu('primary_navigation')) {
if (has_nav_menu('primary_navigation')) :
wp_nav_menu(array('theme_location' => 'primary_navigation', 'menu_class' => 'nav nav-pills'));
}
endif;
?>
</nav>
</div>
Expand Down

0 comments on commit 65c13c6

Please sign in to comment.