mirror of
https://github.com/ascribe/wp-theme
synced 2024-12-22 09:13:38 +01:00
Merge pull request #52 from ascribe/feature/remove-menu
remove login link and main menus
This commit is contained in:
commit
758b4ce903
BIN
2018-09 www.ascribe.io.zip
Normal file
BIN
2018-09 www.ascribe.io.zip
Normal file
Binary file not shown.
@ -11,7 +11,6 @@ $(document).ready(function(){
|
||||
slider();
|
||||
marketplaces();
|
||||
tourNav();
|
||||
mobileNav();
|
||||
stickyNav();
|
||||
|
||||
function tourNav() {
|
||||
@ -74,35 +73,3 @@ function stickyNav() {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
function mobileNav() {
|
||||
|
||||
var hamburger = $('.hamburger'),
|
||||
popup = $('.mobile-nav');
|
||||
|
||||
hamburger.click(function(e) {
|
||||
e.preventDefault();
|
||||
|
||||
// toggle popup
|
||||
popup.toggleClass('active');
|
||||
hamburger.toggleClass('open');
|
||||
|
||||
// bind the hide controls
|
||||
$(document).bind('click.hidepopup', function() {
|
||||
// hide popup
|
||||
popup.removeClass('active');
|
||||
hamburger.removeClass('open');
|
||||
// unbind the hide controls
|
||||
$(document).unbind('click.hidepopup');
|
||||
});
|
||||
|
||||
// dont close thepop when you click on thepop
|
||||
popup.on('click', function(e) {
|
||||
e.stopPropagation();
|
||||
});
|
||||
|
||||
// and dont close thepop now
|
||||
e.stopPropagation();
|
||||
});
|
||||
}
|
||||
|
@ -24,18 +24,6 @@ require 'controller/init.php';
|
||||
alt="ascribe logo"
|
||||
class="logo phone-only">
|
||||
</a>
|
||||
<div class="app-links">
|
||||
<a href="<?php echo $signInLink; ?>">Log In</a>
|
||||
<img src="<?php echo WPTHEME_TEMPLATE_URL; ?>/images/svg/hamburger.svg" class="phone-only hamburger">
|
||||
</div>
|
||||
<nav class="tour-switcher"><?php wp_nav_menu( array(
|
||||
'theme_location' => 'landing-menu',
|
||||
'container' => false
|
||||
)); ?>
|
||||
</nav>
|
||||
<div class="mobile-nav">
|
||||
<?php wp_nav_menu( array( 'theme_location' => 'main-footer-menu', 'container' => false ) ); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="chevron-divider"></div>
|
||||
|
||||
|
@ -25,24 +25,6 @@ require 'controller/init.php';
|
||||
alt="ascribe logo"
|
||||
class="logo phone-only">
|
||||
</a>
|
||||
<div class="app-links">
|
||||
<a href="<?php echo $signInLink; ?>">Log In</a>
|
||||
|
||||
<button class="hamburger phone-only">
|
||||
<span></span>
|
||||
</button>
|
||||
|
||||
</div>
|
||||
<nav class="tour-switcher"><?php wp_nav_menu( array(
|
||||
'theme_location' => 'landing-menu',
|
||||
'container' => false
|
||||
)); ?>
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="mobile-nav">
|
||||
<?php wp_nav_menu( array( 'theme_location' => 'main-footer-menu', 'container' => false ) ); ?>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
@ -31,28 +31,12 @@ $controller = new Controller();
|
||||
class="logo phone-only">
|
||||
</a>
|
||||
|
||||
<div class="app-links">
|
||||
<a href="<?php echo $signInLink; ?>">Log In</a>
|
||||
|
||||
<button class="hamburger phone-only">
|
||||
<span></span>
|
||||
</button>
|
||||
|
||||
</div>
|
||||
<nav class="tour-switcher"><?php wp_nav_menu( array(
|
||||
'theme_location' => 'landing-menu',
|
||||
'container' => false
|
||||
)); ?>
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<section class="description">
|
||||
<h1><?php echo $headerTagline; ?></h1>
|
||||
</section>
|
||||
<div class="mobile-nav">
|
||||
<?php wp_nav_menu( array( 'theme_location' => 'main-footer-menu', 'container' => false ) ); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="chevron-divider"></div>
|
||||
</header>
|
||||
|
Loading…
Reference in New Issue
Block a user