Skip to content

Commit

Permalink
Changin display option for site title with megamenu
Browse files Browse the repository at this point in the history
Bootstrap menu uses the "brand" area for the site title, With megamenu,
we'll recycle this section.
  • Loading branch information
andrewmbacon committed Apr 14, 2015
1 parent bde565e commit a20dbe4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions header.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*
*/
include 'inc/vars.php';
$top_nav_style = get_theme_mod('top_nav_style');
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
Expand Down Expand Up @@ -37,7 +38,7 @@
<?php if(function_exists('uconn_banner_hook')){uconn_banner_hook();}?>
<div id="page" class="hfeed site">
<header id="masthead" class="site-header <?php if ($headerImg != ''){echo 'header-image';} ?>" role="banner">
<div id="site-title" class="hidden-xs">
<div id="site-title" class="<?php if ($top_nav_style != 'maxmegamenu'){echo 'hidden-xs'}; ?>">
<div class="container">
<?php include 'inc/header-img.php'; ?>
<div class="row">
Expand All @@ -55,15 +56,14 @@
<div id="nav-wrapper">
<div class="container">
<?php
$top_nav_style = get_theme_mod('top_nav_style');
if ($top_nav_style == 'maxmegamenu'){
// load maxmegamenu top nav
wp_nav_menu(array(
'theme_location' => 'primary'
));
} else {
// load bootstrap top nav
include 'inc/nav.php';
include 'inc/nav.php';
}
?>
</div>
Expand Down

0 comments on commit a20dbe4

Please sign in to comment.