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

@ -1,67 +1,71 @@
<?php
// No direct access, please
/**
* This file handles the top bar spacing Customizer options.
*
* @package GP Premium
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
exit; // No direct access, please.
}
if ( isset( $defaults[ 'top_bar_top' ] ) ) {
// Widget padding top
$wp_customize->add_setting( 'generate_spacing_settings[top_bar_top]',
if ( isset( $defaults['top_bar_top'] ) ) {
$wp_customize->add_setting(
'generate_spacing_settings[top_bar_top]',
array(
'default' => $defaults['top_bar_top'],
'type' => 'option',
'sanitize_callback' => 'absint',
'transport' => 'postMessage'
'transport' => 'postMessage',
)
);
// Widget padding right
$wp_customize->add_setting( 'generate_spacing_settings[top_bar_right]',
$wp_customize->add_setting(
'generate_spacing_settings[top_bar_right]',
array(
'default' => $defaults['top_bar_right'],
'type' => 'option',
'sanitize_callback' => 'absint',
'transport' => 'postMessage'
'transport' => 'postMessage',
)
);
// Widget padding bottom
$wp_customize->add_setting( 'generate_spacing_settings[top_bar_bottom]',
$wp_customize->add_setting(
'generate_spacing_settings[top_bar_bottom]',
array(
'default' => $defaults['top_bar_bottom'],
'type' => 'option',
'sanitize_callback' => 'absint',
'transport' => 'postMessage'
'transport' => 'postMessage',
)
);
// Widget padding left
$wp_customize->add_setting( 'generate_spacing_settings[top_bar_left]',
$wp_customize->add_setting(
'generate_spacing_settings[top_bar_left]',
array(
'default' => $defaults['top_bar_left'],
'type' => 'option',
'sanitize_callback' => 'absint',
'transport' => 'postMessage'
'transport' => 'postMessage',
)
);
// Make use of the widget padding settings
$wp_customize->add_control(
new GeneratePress_Spacing_Control(
$wp_customize,
'top_bar_spacing',
array(
'type' => 'generatepress-spacing',
'label' => esc_html__( 'Top Bar Padding', 'gp-premium' ),
'section' => 'generate_top_bar',
'settings' => array(
'type' => 'generatepress-spacing',
'label' => esc_html__( 'Top Bar Padding', 'gp-premium' ),
'section' => 'generate_top_bar',
'settings' => array(
'desktop_top' => 'generate_spacing_settings[top_bar_top]',
'desktop_right' => 'generate_spacing_settings[top_bar_right]',
'desktop_bottom' => 'generate_spacing_settings[top_bar_bottom]',
'desktop_left' => 'generate_spacing_settings[top_bar_left]'
'desktop_left' => 'generate_spacing_settings[top_bar_left]',
),
'element' => 'top_bar',
'priority' => 99,
'element' => 'top_bar',
'priority' => 99,
'active_callback' => 'generate_premium_is_top_bar_active',
)
)