updated plugin GP Premium version 2.0.3

This commit is contained in:
2021-07-25 23:25:02 +00:00
committed by Gitium
parent d7964b08bd
commit 3ef36355e9
154 changed files with 6153 additions and 9541 deletions

View File

@ -1,10 +1,9 @@
( function( $, api ) {
/**
* Set some controls when we're using the navigation as a header.
*
* @since 1.8
*/
*/
api( 'generate_menu_plus_settings[navigation_as_header]', function( value ) {
value.bind( function( newval ) {
var navAlignmentSetting = api.instance( 'generate_settings[nav_alignment_setting]' ),
@ -67,13 +66,12 @@
} );
var showRegularHeader,
showRegularHeaderCallback,
showNavHeader;
showRegularHeaderCallback;
/**
* Determine whether we should display our header controls.
*
* @returns {boolean}
* @return {boolean} Whether we should show the regular header.
*/
showRegularHeader = function() {
if ( value.get() ) {
@ -83,23 +81,10 @@
return true;
};
/**
* Determine whether our navigation is our header.
*
* @returns {boolean}
*/
showNavHeader = function() {
if ( value.get() ) {
return true;
}
return false;
};
/**
* Update a control's active state according to the navigation as header option.
*
* @param {wp.customize.Control} control
* @param {wp.customize.Control} control The current control.
*/
showRegularHeaderCallback = function( control ) {
var setActiveState = function() {
@ -131,7 +116,7 @@
* Set the navigation branding font size label on mobile header branding change.
*
* @since 1.8
*/
*/
api( 'generate_menu_plus_settings[mobile_header_branding]', function( value ) {
value.bind( function( newval ) {
if ( api.instance( 'generate_settings[mobile_site_title_font_size]' ) && 'title' === newval ) {
@ -144,7 +129,7 @@
* Set the navigation branding font size label on mobile header change.
*
* @since 1.8
*/
*/
api( 'generate_menu_plus_settings[mobile_header]', function( value ) {
value.bind( function( newval ) {
var mobileSiteTitleFontSizeSetting = api.instance( 'generate_settings[mobile_site_title_font_size]' ),
@ -163,5 +148,4 @@
}
} );
} );
} )( jQuery, wp.customize );
}( jQuery, wp.customize ) );