updated plugin GP Premium version 1.11.2

This commit is contained in:
2020-08-13 14:53:39 +00:00
committed by Gitium
parent 3f0f8d3ac9
commit 885bbdd113
151 changed files with 11329 additions and 6954 deletions

View File

@ -365,6 +365,25 @@ if ( ! function_exists( 'generate_slideout_navigation_classes' ) ) {
}
}
if ( ! function_exists( 'generate_menu_plus_init' ) ) {
function generate_menu_plus_init() {
load_plugin_textdomain( 'menu-plus', false, 'gp-premium/langs/menu-plus/' );
}
}
if ( ! function_exists( 'generate_slideout_menu_fallback' ) ) {
/**
* Menu fallback.
*
* @param array $args
* @return string
* @since 1.1.4
*/
function generate_slideout_menu_fallback( $args ) {
}
}
/**
* Page header module.
*/
@ -436,6 +455,12 @@ if ( ! function_exists( 'generate_page_header_single' ) ) {
}
}
if ( ! function_exists( 'generate_page_header_init' ) ) {
function generate_page_header_init() {
load_plugin_textdomain( 'page-header', false, 'gp-premium/langs/page-header/' );
}
}
/**
* Secondary Navigation module.
*/
@ -661,3 +686,19 @@ function generate_menu_plus_make_css() {
function generate_menu_plus_enqueue_dynamic_css() {
// No longer needed.
}
if ( ! function_exists( 'generate_hidden_secondary_navigation' ) && function_exists( 'is_customize_preview' ) ) {
/**
* Adds a hidden navigation if no navigation is set
* This allows us to use postMessage to position the navigation when it doesn't exist
*/
function generate_hidden_secondary_navigation() {
if ( is_customize_preview() && function_exists( 'generate_secondary_navigation_position' ) ) {
?>
<div style="display:none;">
<?php generate_secondary_navigation_position(); ?>
</div>
<?php
}
}
}