Skip to content

Commit

Permalink
Make sure the close button gets added to the handheld menu.
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagonoronha committed Mar 13, 2016
1 parent 4100fab commit 11b295c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion assets/js/frontend.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
( function( $ ) {
$( window ).load( function() {
$( '.main-navigation div.menu' ).prepend( '<span class="shm-close">' + shm_i18n.close + '</span>' );
$( '.main-navigation .handheld-navigation, .main-navigation div.menu' ).prepend( '<span class="shm-close">' + shm_i18n.close + '</span>' );
$( '.shm-close' ).on( 'click', function() {
$( '.menu-toggle' ).trigger( 'click' );
} );
Expand Down
2 changes: 1 addition & 1 deletion assets/js/frontend.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: tiagonoronha, woothemes
Tags: woocommerce, ecommerce, storefront, menu, hamburger
Requires at least: 4.0
Tested up to: 4.4.2
Stable tag: 1.1.0
Stable tag: 1.1.1
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand All @@ -27,6 +27,9 @@ This plugin requires the Storefront theme to be installed.

== Changelog ==

= 1.1.1 - 13.04.2016 =
* Fix - Make sure the close button gets added to the handheld menu.

= 1.1.0 - 03.04.2016 =
* New - Close button inside the off-screen menu.
* New - Overlay on top of the content making what is the menu more obvious.
Expand Down
4 changes: 2 additions & 2 deletions storefront-hamburger-menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: Storefront Hamburger Menu
* Plugin URI: https://wordpress.org/plugins/storefront-hamburger-menu/
* Description: Storefront Hamburger Menu turns the default handheld navigation into an off-screen sidebar menu with a "hamburger" toggle.
* Version: 1.1.0
* Version: 1.1.1
* Author: WooThemes
* Author URI: http://woothemes.com/
* Requires at least: 4.0.0
Expand Down Expand Up @@ -74,7 +74,7 @@ public function __construct() {
$this->token = 'storefront-hamburger-menu';
$this->plugin_url = plugin_dir_url( __FILE__ );
$this->plugin_path = plugin_dir_path( __FILE__ );
$this->version = '1.1.0';
$this->version = '1.1.1';

register_activation_hook( __FILE__, array( $this, 'install' ) );

Expand Down

0 comments on commit 11b295c

Please sign in to comment.