Skip to content

Commit

Permalink
2.1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
stiofan committed Oct 8, 2020
1 parent bf1d9df commit 0acdad5
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 32 deletions.
10 changes: 5 additions & 5 deletions composer.lock

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

2 changes: 1 addition & 1 deletion vendor/ayecode/wp-ayecode-ui/ayecode-ui-loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
add_action('after_setup_theme', function () {
global $ayecode_ui_version,$ayecode_ui_file_key;
$this_version = "0.1.27";
$this_version = "0.1.28";
if(version_compare($this_version , $ayecode_ui_version, '>')){
$ayecode_ui_version = $this_version ;
$ayecode_ui_file_key = wp_hash( __FILE__ );
Expand Down
2 changes: 1 addition & 1 deletion vendor/ayecode/wp-ayecode-ui/change-log.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
= 0.1.27 =
= 0.1.28 =
* Allow menus to have multiple submenus with by adding class .navbar-multi-sub-menus - ADDED

= 0.1.26 =
Expand Down
47 changes: 29 additions & 18 deletions vendor/ayecode/wp-ayecode-ui/includes/ayecode-ui-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -678,29 +678,40 @@ function aui_init_carousel_multiple_items(){
* Allow navs to use multiple sub menus.
*/
function init_nav_sub_menus(){
jQuery( '.navbar-multi-sub-menus .dropdown-menu a.dropdown-toggle' ).on( 'click', function ( e ) {
var $el = jQuery( this );
$el.toggleClass('active-dropdown');
var $parent = jQuery( this ).offsetParent( ".dropdown-menu" );
if ( !jQuery( this ).next().hasClass( 'show' ) ) {
jQuery( this ).parents( '.dropdown-menu' ).first().find( '.show' ).removeClass( "show" );
}
var $subMenu = jQuery( this ).next( ".dropdown-menu" );
$subMenu.toggleClass( 'show' );

jQuery( this ).parent( "li" ).toggleClass( 'show' );
jQuery('.navbar-multi-sub-menus').each(function(i, obj) {
// Check if already initialized, if so continue.
if(jQuery(this).hasClass("has-sub-sub-menus")){return true;}

// Make sure its always expanded
jQuery(this).addClass('has-sub-sub-menus');

jQuery(this).find( '.dropdown-menu a.dropdown-toggle' ).on( 'click', function ( e ) {
var $el = jQuery( this );
$el.toggleClass('active-dropdown');
var $parent = jQuery( this ).offsetParent( ".dropdown-menu" );
if ( !jQuery( this ).next().hasClass( 'show' ) ) {
jQuery( this ).parents( '.dropdown-menu' ).first().find( '.show' ).removeClass( "show" );
}
var $subMenu = jQuery( this ).next( ".dropdown-menu" );
$subMenu.toggleClass( 'show' );

jQuery( this ).parent( "li" ).toggleClass( 'show' );

jQuery( this ).parents( 'li.nav-item.dropdown.show' ).on( 'hidden.bs.dropdown', function ( e ) {
jQuery( '.dropdown-menu .show' ).removeClass( "show" );
$el.removeClass('active-dropdown');
jQuery( this ).parents( 'li.nav-item.dropdown.show' ).on( 'hidden.bs.dropdown', function ( e ) {
jQuery( '.dropdown-menu .show' ).removeClass( "show" );
$el.removeClass('active-dropdown');
} );

if ( !$parent.parent().hasClass( 'navbar-nav' ) ) {
$el.next().addClass('position-relative border-top border-bottom');
}

return false;
} );

if ( !$parent.parent().hasClass( 'navbar-nav' ) ) {
$el.next().addClass('position-relative border-top border-bottom');
}
});

return false;
} );
}


Expand Down
2 changes: 1 addition & 1 deletion vendor/ayecode/wp-ayecode-ui/includes/class-aui.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class AUI {
*
* @var string $ver The current version number.
*/
public static $ver = '0.1.27';
public static $ver = '0.1.28';

public static $options = null;

Expand Down
12 changes: 6 additions & 6 deletions vendor/composer/installed.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
[
{
"name": "ayecode/wp-ayecode-ui",
"version": "0.1.27",
"version_normalized": "0.1.27.0",
"version": "0.1.28",
"version_normalized": "0.1.28.0",
"source": {
"type": "git",
"url": "https://github.com/AyeCode/wp-ayecode-ui.git",
"reference": "df90fcb9896946390723457513fc553432f378c7"
"reference": "1f7b4df5bd3f9dbfac7ae4378017e1a1c73102c5"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/AyeCode/wp-ayecode-ui/zipball/df90fcb9896946390723457513fc553432f378c7",
"reference": "df90fcb9896946390723457513fc553432f378c7",
"url": "https://api.github.com/repos/AyeCode/wp-ayecode-ui/zipball/1f7b4df5bd3f9dbfac7ae4378017e1a1c73102c5",
"reference": "1f7b4df5bd3f9dbfac7ae4378017e1a1c73102c5",
"shasum": ""
},
"require": {
"composer/installers": "~1.0",
"php": ">=5.3.0"
},
"time": "2020-10-08T11:18:26+00:00",
"time": "2020-10-08T12:55:35+00:00",
"type": "library",
"installation-source": "dist",
"autoload": {
Expand Down

0 comments on commit 0acdad5

Please sign in to comment.