Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

Commit

Permalink
step 19 - override menu
Browse files Browse the repository at this point in the history
  • Loading branch information
hans2103 committed Jan 31, 2015
1 parent 3236ab1 commit 3569378
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
1 change: 1 addition & 0 deletions helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

$input = $app->input;
$menu = $app->getMenu()->getActive();
$site_url = JURI::root();

// Detecting Active Variables
$option = $input->get('option', '');
Expand Down
19 changes: 17 additions & 2 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,23 @@
<jdoc:include type="head" />
</head>
<body>
<header>
<jdoc:include type="modules" name="nav" style="no" />
<header class="navbar navbar-default header-wrapper" id="header">
<div class="container">
<div class="navbar-header">
<button class="navbar-toggle" type="button" data-toggle="collapse" data-target=".mh-navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a href="<?php echo $site_url; ?>" class="navbar-brand logo"><img src="/images/logo.svg" alt="<?php echo $sitename; ?>" class="inject-me" /></a>
</div>
<nav class="collapse navbar-collapse mh-navbar-collapse navbar-inner" role="navigation">
<?php if ($this->countModules('nav')): ?>
<jdoc:include type="modules" name="nav" style="none" />
<?php endif; ?>
</nav>
</div>
</header>

<main>
Expand Down

0 comments on commit 3569378

Please sign in to comment.