updated plugin GP Premium
version 1.11.2
This commit is contained in:
@ -1,12 +1,18 @@
|
||||
<?php
|
||||
/**
|
||||
* This file handles most of our Colors functionality.
|
||||
*
|
||||
* @package GP Premium
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // No direct access, please
|
||||
exit; // No direct access, please.
|
||||
}
|
||||
|
||||
// Add necessary files
|
||||
require_once trailingslashit( dirname(__FILE__) ) . 'secondary-nav-colors.php';
|
||||
require_once trailingslashit( dirname(__FILE__) ) . 'woocommerce-colors.php';
|
||||
require_once trailingslashit( dirname(__FILE__) ) . 'slideout-nav-colors.php';
|
||||
// Add necessary files.
|
||||
require_once trailingslashit( dirname( __FILE__ ) ) . 'secondary-nav-colors.php';
|
||||
require_once trailingslashit( dirname( __FILE__ ) ) . 'woocommerce-colors.php';
|
||||
require_once trailingslashit( dirname( __FILE__ ) ) . 'slideout-nav-colors.php';
|
||||
|
||||
if ( ! function_exists( 'generate_colors_customize_register' ) ) {
|
||||
add_action( 'customize_register', 'generate_colors_customize_register' );
|
||||
@ -14,38 +20,42 @@ if ( ! function_exists( 'generate_colors_customize_register' ) ) {
|
||||
* Add our Customizer options.
|
||||
*
|
||||
* @since 0.1
|
||||
* @param object $wp_customize The Customizer object.
|
||||
*/
|
||||
function generate_colors_customize_register( $wp_customize ) {
|
||||
|
||||
// Bail if we don't have our color defaults
|
||||
// Bail if we don't have our color defaults.
|
||||
if ( ! function_exists( 'generate_get_color_defaults' ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Add our controls
|
||||
// Add our controls.
|
||||
require_once GP_LIBRARY_DIRECTORY . 'customizer-helpers.php';
|
||||
|
||||
// Get our defaults
|
||||
// Get our defaults.
|
||||
$defaults = generate_get_color_defaults();
|
||||
|
||||
// Add control types so controls can be built using JS
|
||||
// Add control types so controls can be built using JS.
|
||||
if ( method_exists( $wp_customize, 'register_control_type' ) ) {
|
||||
$wp_customize->register_control_type( 'GeneratePress_Alpha_Color_Customize_Control' );
|
||||
$wp_customize->register_control_type( 'GeneratePress_Title_Customize_Control' );
|
||||
$wp_customize->register_control_type( 'GeneratePress_Section_Shortcut_Control' );
|
||||
}
|
||||
|
||||
// Get our palettes
|
||||
// Get our palettes.
|
||||
$palettes = generate_get_default_color_palettes();
|
||||
|
||||
// Add our Colors panel
|
||||
// Add our Colors panel.
|
||||
if ( class_exists( 'WP_Customize_Panel' ) ) {
|
||||
$wp_customize->add_panel( 'generate_colors_panel', array(
|
||||
'priority' => 30,
|
||||
'theme_supports' => '',
|
||||
'title' => __( 'Colors', 'gp-premium' ),
|
||||
'description' => '',
|
||||
) );
|
||||
$wp_customize->add_panel(
|
||||
'generate_colors_panel',
|
||||
array(
|
||||
'priority' => 30,
|
||||
'theme_supports' => '',
|
||||
'title' => __( 'Colors', 'gp-premium' ),
|
||||
'description' => '',
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
$wp_customize->add_control(
|
||||
@ -64,8 +74,8 @@ if ( ! function_exists( 'generate_colors_customize_register' ) ) {
|
||||
)
|
||||
);
|
||||
|
||||
// Add Top Bar Colors section
|
||||
if ( isset( $defaults[ 'top_bar_background_color' ] ) && function_exists( 'generate_is_top_bar_active' ) ) {
|
||||
// Add Top Bar Colors section.
|
||||
if ( isset( $defaults['top_bar_background_color'] ) && function_exists( 'generate_is_top_bar_active' ) ) {
|
||||
$wp_customize->add_section(
|
||||
'generate_top_bar_colors',
|
||||
array(
|
||||
@ -101,7 +111,7 @@ if ( ! function_exists( 'generate_colors_customize_register' ) ) {
|
||||
)
|
||||
);
|
||||
|
||||
// Add color settings
|
||||
// Add color settings.
|
||||
$top_bar_colors = array();
|
||||
$top_bar_colors[] = array(
|
||||
'slug' => 'top_bar_text_color',
|
||||
@ -122,13 +132,14 @@ if ( ! function_exists( 'generate_colors_customize_register' ) ) {
|
||||
'priority' => 4,
|
||||
);
|
||||
|
||||
foreach( $top_bar_colors as $color ) {
|
||||
foreach ( $top_bar_colors as $color ) {
|
||||
$wp_customize->add_setting(
|
||||
'generate_settings[' . $color['slug'] . ']', array(
|
||||
'generate_settings[' . $color['slug'] . ']',
|
||||
array(
|
||||
'default' => $color['default'],
|
||||
'type' => 'option',
|
||||
'sanitize_callback' => 'generate_premium_sanitize_hex_color',
|
||||
'transport' => 'postMessage'
|
||||
'transport' => 'postMessage',
|
||||
)
|
||||
);
|
||||
|
||||
@ -142,14 +153,14 @@ if ( ! function_exists( 'generate_colors_customize_register' ) ) {
|
||||
'settings' => 'generate_settings[' . $color['slug'] . ']',
|
||||
'priority' => $color['priority'],
|
||||
'palette' => $palettes,
|
||||
'active_callback' => 'generate_is_top_bar_active'
|
||||
'active_callback' => 'generate_is_top_bar_active',
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
// Add Header Colors section
|
||||
// Add Header Colors section.
|
||||
$wp_customize->add_section(
|
||||
'header_color_section',
|
||||
array(
|
||||
@ -202,7 +213,7 @@ if ( ! function_exists( 'generate_colors_customize_register' ) ) {
|
||||
)
|
||||
);
|
||||
|
||||
// Add color settings
|
||||
// Add color settings.
|
||||
$header_colors = array();
|
||||
$header_colors[] = array(
|
||||
'slug' => 'header_text_color',
|
||||
@ -235,13 +246,14 @@ if ( ! function_exists( 'generate_colors_customize_register' ) ) {
|
||||
'priority' => 6,
|
||||
);
|
||||
|
||||
foreach( $header_colors as $color ) {
|
||||
foreach ( $header_colors as $color ) {
|
||||
$wp_customize->add_setting(
|
||||
'generate_settings[' . $color['slug'] . ']', array(
|
||||
'generate_settings[' . $color['slug'] . ']',
|
||||
array(
|
||||
'default' => $color['default'],
|
||||
'type' => 'option',
|
||||
'sanitize_callback' => 'generate_premium_sanitize_hex_color',
|
||||
'transport' => 'postMessage'
|
||||
'transport' => 'postMessage',
|
||||
)
|
||||
);
|
||||
|
||||
@ -260,7 +272,7 @@ if ( ! function_exists( 'generate_colors_customize_register' ) ) {
|
||||
);
|
||||
}
|
||||
|
||||
// Add Navigation section
|
||||
// Add Navigation section.
|
||||
$wp_customize->add_section(
|
||||
'navigation_color_section',
|
||||
array(
|
||||
@ -293,11 +305,11 @@ if ( ! function_exists( 'generate_colors_customize_register' ) ) {
|
||||
$wp_customize,
|
||||
'generate_primary_navigation_parent_items',
|
||||
array(
|
||||
'section' => 'navigation_color_section',
|
||||
'type' => 'generatepress-customizer-title',
|
||||
'title' => __( 'Parent Items', 'gp-premium' ),
|
||||
'section' => 'navigation_color_section',
|
||||
'type' => 'generatepress-customizer-title',
|
||||
'title' => __( 'Parent Items', 'gp-premium' ),
|
||||
'settings' => ( isset( $wp_customize->selective_refresh ) ) ? array() : 'blogname',
|
||||
'priority' => 1,
|
||||
'priority' => 1,
|
||||
)
|
||||
)
|
||||
);
|
||||
@ -374,34 +386,35 @@ if ( ! function_exists( 'generate_colors_customize_register' ) ) {
|
||||
)
|
||||
);
|
||||
|
||||
// Add color settings
|
||||
// Add color settings.
|
||||
$navigation_colors = array();
|
||||
$navigation_colors[] = array(
|
||||
'slug'=>'navigation_text_color',
|
||||
'slug' => 'navigation_text_color',
|
||||
'default' => $defaults['navigation_text_color'],
|
||||
'label' => __( 'Text', 'gp-premium' ),
|
||||
'priority' => 2,
|
||||
);
|
||||
$navigation_colors[] = array(
|
||||
'slug'=>'navigation_text_hover_color',
|
||||
'slug' => 'navigation_text_hover_color',
|
||||
'default' => $defaults['navigation_text_hover_color'],
|
||||
'label' => __( 'Text Hover', 'gp-premium' ),
|
||||
'priority' => 4,
|
||||
);
|
||||
$navigation_colors[] = array(
|
||||
'slug'=>'navigation_text_current_color',
|
||||
'slug' => 'navigation_text_current_color',
|
||||
'default' => $defaults['navigation_text_current_color'],
|
||||
'label' => __( 'Text Current', 'gp-premium' ),
|
||||
'priority' => 6,
|
||||
);
|
||||
|
||||
foreach( $navigation_colors as $color ) {
|
||||
foreach ( $navigation_colors as $color ) {
|
||||
$wp_customize->add_setting(
|
||||
'generate_settings[' . $color['slug'] . ']', array(
|
||||
'generate_settings[' . $color['slug'] . ']',
|
||||
array(
|
||||
'default' => $color['default'],
|
||||
'type' => 'option',
|
||||
'sanitize_callback' => 'generate_premium_sanitize_hex_color',
|
||||
'transport' => 'postMessage'
|
||||
'transport' => 'postMessage',
|
||||
)
|
||||
);
|
||||
|
||||
@ -413,7 +426,7 @@ if ( ! function_exists( 'generate_colors_customize_register' ) ) {
|
||||
'label' => $color['label'],
|
||||
'section' => 'navigation_color_section',
|
||||
'settings' => 'generate_settings[' . $color['slug'] . ']',
|
||||
'priority' => $color['priority']
|
||||
'priority' => $color['priority'],
|
||||
)
|
||||
)
|
||||
);
|
||||
@ -424,9 +437,9 @@ if ( ! function_exists( 'generate_colors_customize_register' ) ) {
|
||||
$wp_customize,
|
||||
'generate_primary_navigation_sub_menu_items',
|
||||
array(
|
||||
'section' => 'navigation_color_section',
|
||||
'type' => 'generatepress-customizer-title',
|
||||
'title' => __( 'Sub-Menu Items', 'gp-premium' ),
|
||||
'section' => 'navigation_color_section',
|
||||
'type' => 'generatepress-customizer-title',
|
||||
'title' => __( 'Sub-Menu Items', 'gp-premium' ),
|
||||
'settings' => ( isset( $wp_customize->selective_refresh ) ) ? array() : 'blogname',
|
||||
'priority' => 7,
|
||||
)
|
||||
@ -505,29 +518,31 @@ if ( ! function_exists( 'generate_colors_customize_register' ) ) {
|
||||
)
|
||||
);
|
||||
|
||||
// Add color settings
|
||||
// Add color settings.
|
||||
$subnavigation_colors = array();
|
||||
$subnavigation_colors[] = array(
|
||||
'slug'=>'subnavigation_text_color',
|
||||
'slug' => 'subnavigation_text_color',
|
||||
'default' => $defaults['subnavigation_text_color'],
|
||||
'label' => __( 'Text', 'gp-premium' ),
|
||||
'priority' => 9,
|
||||
);
|
||||
$subnavigation_colors[] = array(
|
||||
'slug'=>'subnavigation_text_hover_color',
|
||||
'slug' => 'subnavigation_text_hover_color',
|
||||
'default' => $defaults['subnavigation_text_hover_color'],
|
||||
'label' => __( 'Text Hover', 'gp-premium' ),
|
||||
'priority' => 11,
|
||||
);
|
||||
$subnavigation_colors[] = array(
|
||||
'slug'=>'subnavigation_text_current_color',
|
||||
'slug' => 'subnavigation_text_current_color',
|
||||
'default' => $defaults['subnavigation_text_current_color'],
|
||||
'label' => __( 'Text Current', 'gp-premium' ),
|
||||
'priority' => 13,
|
||||
);
|
||||
foreach( $subnavigation_colors as $color ) {
|
||||
|
||||
foreach ( $subnavigation_colors as $color ) {
|
||||
$wp_customize->add_setting(
|
||||
'generate_settings[' . $color['slug'] . ']', array(
|
||||
'generate_settings[' . $color['slug'] . ']',
|
||||
array(
|
||||
'default' => $color['default'],
|
||||
'type' => 'option',
|
||||
'sanitize_callback' => 'generate_premium_sanitize_hex_color',
|
||||
@ -555,9 +570,9 @@ if ( ! function_exists( 'generate_colors_customize_register' ) ) {
|
||||
$wp_customize,
|
||||
'generate_primary_navigation_search',
|
||||
array(
|
||||
'section' => 'navigation_color_section',
|
||||
'type' => 'generatepress-customizer-title',
|
||||
'title' => __( 'Navigation Search', 'gp-premium' ),
|
||||
'section' => 'navigation_color_section',
|
||||
'type' => 'generatepress-customizer-title',
|
||||
'title' => __( 'Navigation Search', 'gp-premium' ),
|
||||
'settings' => ( isset( $wp_customize->selective_refresh ) ) ? array() : 'blogname',
|
||||
'priority' => 15,
|
||||
)
|
||||
@ -589,11 +604,12 @@ if ( ! function_exists( 'generate_colors_customize_register' ) ) {
|
||||
);
|
||||
|
||||
$wp_customize->add_setting(
|
||||
'generate_settings[navigation_search_text_color]', array(
|
||||
'generate_settings[navigation_search_text_color]',
|
||||
array(
|
||||
'default' => $defaults['navigation_search_text_color'],
|
||||
'type' => 'option',
|
||||
'sanitize_callback' => 'generate_premium_sanitize_hex_color',
|
||||
'transport' => 'postMessage'
|
||||
'transport' => 'postMessage',
|
||||
)
|
||||
);
|
||||
|
||||
@ -660,7 +676,8 @@ if ( ! function_exists( 'generate_colors_customize_register' ) ) {
|
||||
);
|
||||
|
||||
$wp_customize->add_setting(
|
||||
'generate_settings[form_button_text_color]', array(
|
||||
'generate_settings[form_button_text_color]',
|
||||
array(
|
||||
'default' => $defaults['form_button_text_color'],
|
||||
'type' => 'option',
|
||||
'sanitize_callback' => 'generate_premium_sanitize_hex_color',
|
||||
@ -704,7 +721,8 @@ if ( ! function_exists( 'generate_colors_customize_register' ) ) {
|
||||
);
|
||||
|
||||
$wp_customize->add_setting(
|
||||
'generate_settings[form_button_text_color_hover]', array(
|
||||
'generate_settings[form_button_text_color_hover]',
|
||||
array(
|
||||
'default' => $defaults['form_button_text_color_hover'],
|
||||
'type' => 'option',
|
||||
'sanitize_callback' => 'generate_premium_sanitize_hex_color',
|
||||
@ -724,7 +742,7 @@ if ( ! function_exists( 'generate_colors_customize_register' ) ) {
|
||||
)
|
||||
);
|
||||
|
||||
// Add Content Colors section
|
||||
// Add Content Colors section.
|
||||
$wp_customize->add_section(
|
||||
'content_color_section',
|
||||
array(
|
||||
@ -776,7 +794,7 @@ if ( ! function_exists( 'generate_colors_customize_register' ) ) {
|
||||
)
|
||||
);
|
||||
|
||||
// Add color settings
|
||||
// Add color settings.
|
||||
$content_colors = array();
|
||||
$content_colors[] = array(
|
||||
'slug' => 'content_text_color',
|
||||
@ -869,9 +887,10 @@ if ( ! function_exists( 'generate_colors_customize_register' ) ) {
|
||||
);
|
||||
}
|
||||
|
||||
foreach( $content_colors as $color ) {
|
||||
foreach ( $content_colors as $color ) {
|
||||
$wp_customize->add_setting(
|
||||
'generate_settings[' . $color['slug'] . ']', array(
|
||||
'generate_settings[' . $color['slug'] . ']',
|
||||
array(
|
||||
'default' => $color['default'],
|
||||
'type' => 'option',
|
||||
'sanitize_callback' => 'generate_premium_sanitize_hex_color',
|
||||
@ -893,7 +912,7 @@ if ( ! function_exists( 'generate_colors_customize_register' ) ) {
|
||||
);
|
||||
}
|
||||
|
||||
// Add Sidebar Widget colors
|
||||
// Add Sidebar Widget colors.
|
||||
$wp_customize->add_section(
|
||||
'sidebar_widget_color_section',
|
||||
array(
|
||||
@ -945,7 +964,7 @@ if ( ! function_exists( 'generate_colors_customize_register' ) ) {
|
||||
)
|
||||
);
|
||||
|
||||
// Add color settings
|
||||
// Add color settings.
|
||||
$sidebar_widget_colors = array();
|
||||
$sidebar_widget_colors[] = array(
|
||||
'slug' => 'sidebar_widget_text_color',
|
||||
@ -972,9 +991,10 @@ if ( ! function_exists( 'generate_colors_customize_register' ) ) {
|
||||
'priority' => 5,
|
||||
);
|
||||
|
||||
foreach( $sidebar_widget_colors as $color ) {
|
||||
foreach ( $sidebar_widget_colors as $color ) {
|
||||
$wp_customize->add_setting(
|
||||
'generate_settings[' . $color['slug'] . ']', array(
|
||||
'generate_settings[' . $color['slug'] . ']',
|
||||
array(
|
||||
'default' => $color['default'],
|
||||
'type' => 'option',
|
||||
'sanitize_callback' => 'generate_premium_sanitize_hex_color',
|
||||
@ -996,7 +1016,7 @@ if ( ! function_exists( 'generate_colors_customize_register' ) ) {
|
||||
);
|
||||
}
|
||||
|
||||
// Add Form colors
|
||||
// Add Form colors.
|
||||
$wp_customize->add_section(
|
||||
'form_color_section',
|
||||
array(
|
||||
@ -1102,7 +1122,7 @@ if ( ! function_exists( 'generate_colors_customize_register' ) ) {
|
||||
)
|
||||
);
|
||||
|
||||
// Add color settings
|
||||
// Add color settings.
|
||||
$form_colors = array();
|
||||
$form_colors[] = array(
|
||||
'slug' => 'form_text_color',
|
||||
@ -1117,9 +1137,10 @@ if ( ! function_exists( 'generate_colors_customize_register' ) ) {
|
||||
'priority' => 4,
|
||||
);
|
||||
|
||||
foreach( $form_colors as $color ) {
|
||||
foreach ( $form_colors as $color ) {
|
||||
$wp_customize->add_setting(
|
||||
'generate_settings[' . $color['slug'] . ']', array(
|
||||
'generate_settings[' . $color['slug'] . ']',
|
||||
array(
|
||||
'default' => $color['default'],
|
||||
'type' => 'option',
|
||||
'sanitize_callback' => 'generate_premium_sanitize_hex_color',
|
||||
@ -1141,7 +1162,7 @@ if ( ! function_exists( 'generate_colors_customize_register' ) ) {
|
||||
);
|
||||
}
|
||||
|
||||
// Add Footer colors
|
||||
// Add Footer colors.
|
||||
$wp_customize->add_section(
|
||||
'footer_color_section',
|
||||
array(
|
||||
@ -1205,7 +1226,7 @@ if ( ! function_exists( 'generate_colors_customize_register' ) ) {
|
||||
)
|
||||
);
|
||||
|
||||
// Add color settings
|
||||
// Add color settings.
|
||||
$footer_widget_colors = array();
|
||||
$footer_widget_colors[] = array(
|
||||
'slug' => 'footer_widget_text_color',
|
||||
@ -1228,9 +1249,10 @@ if ( ! function_exists( 'generate_colors_customize_register' ) ) {
|
||||
'label' => __( 'Widget Title', 'gp-premium' ),
|
||||
);
|
||||
|
||||
foreach( $footer_widget_colors as $color ) {
|
||||
foreach ( $footer_widget_colors as $color ) {
|
||||
$wp_customize->add_setting(
|
||||
'generate_settings[' . $color['slug'] . ']', array(
|
||||
'generate_settings[' . $color['slug'] . ']',
|
||||
array(
|
||||
'default' => $color['default'],
|
||||
'type' => 'option',
|
||||
'sanitize_callback' => 'generate_premium_sanitize_hex_color',
|
||||
@ -1287,7 +1309,7 @@ if ( ! function_exists( 'generate_colors_customize_register' ) ) {
|
||||
)
|
||||
);
|
||||
|
||||
// Add color settings
|
||||
// Add color settings.
|
||||
$footer_colors = array();
|
||||
$footer_colors[] = array(
|
||||
'slug' => 'footer_text_color',
|
||||
@ -1305,9 +1327,10 @@ if ( ! function_exists( 'generate_colors_customize_register' ) ) {
|
||||
'label' => __( 'Link Hover', 'gp-premium' ),
|
||||
);
|
||||
|
||||
foreach( $footer_colors as $color ) {
|
||||
foreach ( $footer_colors as $color ) {
|
||||
$wp_customize->add_setting(
|
||||
'generate_settings[' . $color['slug'] . ']', array(
|
||||
'generate_settings[' . $color['slug'] . ']',
|
||||
array(
|
||||
'default' => $color['default'],
|
||||
'type' => 'option',
|
||||
'sanitize_callback' => 'generate_premium_sanitize_hex_color',
|
||||
@ -1343,7 +1366,8 @@ if ( ! function_exists( 'generate_colors_customize_register' ) ) {
|
||||
);
|
||||
|
||||
$wp_customize->add_setting(
|
||||
'generate_settings[back_to_top_background_color]', array(
|
||||
'generate_settings[back_to_top_background_color]',
|
||||
array(
|
||||
'default' => $defaults['back_to_top_background_color'],
|
||||
'type' => 'option',
|
||||
'sanitize_callback' => 'generate_premium_sanitize_rgba',
|
||||
@ -1365,7 +1389,8 @@ if ( ! function_exists( 'generate_colors_customize_register' ) ) {
|
||||
);
|
||||
|
||||
$wp_customize->add_setting(
|
||||
'generate_settings[back_to_top_text_color]', array(
|
||||
'generate_settings[back_to_top_text_color]',
|
||||
array(
|
||||
'default' => $defaults['back_to_top_text_color'],
|
||||
'type' => 'option',
|
||||
'sanitize_callback' => 'generate_premium_sanitize_rgba',
|
||||
@ -1386,7 +1411,8 @@ if ( ! function_exists( 'generate_colors_customize_register' ) ) {
|
||||
);
|
||||
|
||||
$wp_customize->add_setting(
|
||||
'generate_settings[back_to_top_background_color_hover]', array(
|
||||
'generate_settings[back_to_top_background_color_hover]',
|
||||
array(
|
||||
'default' => $defaults['back_to_top_background_color_hover'],
|
||||
'type' => 'option',
|
||||
'sanitize_callback' => 'generate_premium_sanitize_rgba',
|
||||
@ -1408,7 +1434,8 @@ if ( ! function_exists( 'generate_colors_customize_register' ) ) {
|
||||
);
|
||||
|
||||
$wp_customize->add_setting(
|
||||
'generate_settings[back_to_top_text_color_hover]', array(
|
||||
'generate_settings[back_to_top_text_color_hover]',
|
||||
array(
|
||||
'default' => $defaults['back_to_top_text_color_hover'],
|
||||
'type' => 'option',
|
||||
'sanitize_callback' => 'generate_premium_sanitize_rgba',
|
||||
@ -1436,16 +1463,17 @@ if ( ! function_exists( 'generate_get_color_setting' ) ) {
|
||||
* Wrapper function to get our settings
|
||||
*
|
||||
* @since 1.3.42
|
||||
* @param string $setting The setting to check.
|
||||
*/
|
||||
function generate_get_color_setting( $setting ) {
|
||||
|
||||
// Bail if we don't have our color defaults
|
||||
// Bail if we don't have our color defaults.
|
||||
if ( ! function_exists( 'generate_get_color_defaults' ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
if ( function_exists( 'generate_get_defaults' ) ) {
|
||||
$defaults = array_merge( generate_get_defaults(), generate_get_color_defaults() );
|
||||
$defaults = array_merge( generate_get_defaults(), generate_get_color_defaults() );
|
||||
} else {
|
||||
$defaults = generate_get_color_defaults();
|
||||
}
|
||||
@ -1462,10 +1490,12 @@ if ( ! function_exists( 'generate_get_color_setting' ) ) {
|
||||
if ( ! function_exists( 'generate_colors_rgba_to_hex' ) ) {
|
||||
/**
|
||||
* Convert RGBA to hex if necessary
|
||||
*
|
||||
* @since 1.3.42
|
||||
* @param string $rgba The string to convert to hex.
|
||||
*/
|
||||
function generate_colors_rgba_to_hex( $rgba ) {
|
||||
// If it's not rgba, return it
|
||||
// If it's not rgba, return it.
|
||||
if ( false === strpos( $rgba, 'rgba' ) ) {
|
||||
return $rgba;
|
||||
}
|
||||
@ -1489,7 +1519,7 @@ if ( ! function_exists( 'generate_get_default_color_palettes' ) ) {
|
||||
'#F1C40F',
|
||||
'#1e72bd',
|
||||
'#1ABC9C',
|
||||
'#3498DB'
|
||||
'#3498DB',
|
||||
);
|
||||
|
||||
return apply_filters( 'generate_default_color_palettes', $palettes );
|
||||
@ -1505,16 +1535,16 @@ if ( ! function_exists( 'generate_enqueue_color_palettes' ) ) {
|
||||
* @since 1.3.42
|
||||
*/
|
||||
function generate_enqueue_color_palettes() {
|
||||
// Old versions of WP don't get nice things
|
||||
// Old versions of WP don't get nice things.
|
||||
if ( ! function_exists( 'wp_add_inline_script' ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Grab our palette array and turn it into JS
|
||||
$palettes = json_encode( generate_get_default_color_palettes() );
|
||||
// Grab our palette array and turn it into JS.
|
||||
$palettes = wp_json_encode( generate_get_default_color_palettes() );
|
||||
|
||||
// Add our custom palettes
|
||||
// json_encode takes care of escaping
|
||||
// Add our custom palettes.
|
||||
// json_encode takes care of escaping.
|
||||
wp_add_inline_script( 'wp-color-picker', 'jQuery.wp.wpColorPicker.prototype.options.palettes = ' . $palettes . ';' );
|
||||
}
|
||||
}
|
||||
@ -1528,27 +1558,27 @@ if ( ! function_exists( 'generate_colors_customizer_live_preview' ) ) {
|
||||
*/
|
||||
function generate_colors_customizer_live_preview() {
|
||||
wp_enqueue_script(
|
||||
'generate-colors-customizer',
|
||||
trailingslashit( plugin_dir_url( __FILE__ ) ) . 'js/customizer.js',
|
||||
array( 'jquery','customize-preview' ),
|
||||
GENERATE_COLORS_VERSION,
|
||||
true
|
||||
'generate-colors-customizer',
|
||||
trailingslashit( plugin_dir_url( __FILE__ ) ) . 'js/customizer.js',
|
||||
array( 'jquery', 'customize-preview' ),
|
||||
GENERATE_COLORS_VERSION,
|
||||
true
|
||||
);
|
||||
|
||||
wp_register_script(
|
||||
'generate-wc-colors-customizer',
|
||||
trailingslashit( plugin_dir_url( __FILE__ ) ) . 'js/wc-customizer.js',
|
||||
array( 'jquery','customize-preview', 'generate-colors-customizer' ),
|
||||
GENERATE_COLORS_VERSION,
|
||||
true
|
||||
'generate-wc-colors-customizer',
|
||||
trailingslashit( plugin_dir_url( __FILE__ ) ) . 'js/wc-customizer.js',
|
||||
array( 'jquery', 'customize-preview', 'generate-colors-customizer' ),
|
||||
GENERATE_COLORS_VERSION,
|
||||
true
|
||||
);
|
||||
|
||||
wp_register_script(
|
||||
'generate-menu-plus-colors-customizer',
|
||||
trailingslashit( plugin_dir_url( __FILE__ ) ) . 'js/menu-plus-customizer.js',
|
||||
array( 'jquery','customize-preview', 'generate-colors-customizer' ),
|
||||
GENERATE_COLORS_VERSION,
|
||||
true
|
||||
'generate-menu-plus-colors-customizer',
|
||||
trailingslashit( plugin_dir_url( __FILE__ ) ) . 'js/menu-plus-customizer.js',
|
||||
array( 'jquery', 'customize-preview', 'generate-colors-customizer' ),
|
||||
GENERATE_COLORS_VERSION,
|
||||
true
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -129,7 +129,8 @@ generate_colors_live_update( 'navigation_text_color',
|
||||
button.menu-toggle:focus,\
|
||||
.main-navigation .mobile-bar-items a,\
|
||||
.main-navigation .mobile-bar-items a:hover,\
|
||||
.main-navigation .mobile-bar-items a:focus',
|
||||
.main-navigation .mobile-bar-items a:focus,\
|
||||
.main-navigation .menu-bar-items',
|
||||
'color', '', 'link_color'
|
||||
);
|
||||
|
||||
@ -143,7 +144,8 @@ generate_colors_live_update( 'navigation_text_hover_color',
|
||||
.navigation-search input[type="search"]:focus,\
|
||||
.main-navigation .main-nav ul li:hover > a,\
|
||||
.main-navigation .main-nav ul li:focus > a,\
|
||||
.main-navigation .main-nav ul li.sfHover > a',
|
||||
.main-navigation .main-nav ul li.sfHover > a,\
|
||||
.main-navigation .menu-bar-item:hover a',
|
||||
'color', '', 'link_color_hover'
|
||||
);
|
||||
|
||||
@ -156,7 +158,8 @@ generate_colors_live_update( 'navigation_background_hover_color',
|
||||
.navigation-search input[type="search"]:focus,\
|
||||
.main-navigation .main-nav ul li:hover > a,\
|
||||
.main-navigation .main-nav ul li:focus > a,\
|
||||
.main-navigation .main-nav ul li.sfHover > a',
|
||||
.main-navigation .main-nav ul li.sfHover > a,\
|
||||
.main-navigation .menu-bar-item:hover a',
|
||||
'background-color', 'transparent'
|
||||
);
|
||||
|
||||
@ -245,7 +248,9 @@ generate_colors_live_update( 'navigation_text_color',
|
||||
button.secondary-menu-toggle:hover,\
|
||||
button.secondary-menu-toggle:focus, \
|
||||
.secondary-navigation .top-bar, \
|
||||
.secondary-navigation .top-bar a',
|
||||
.secondary-navigation .top-bar a,\
|
||||
.secondary-menu-bar-items,\
|
||||
.secondary-menu-bar-items .menu-bar-item > a',
|
||||
'color', '', 'link_color', 'generate_secondary_nav_settings'
|
||||
);
|
||||
|
||||
@ -290,7 +295,8 @@ generate_colors_live_update( 'navigation_search_text_color', '.navigation-search
|
||||
generate_colors_live_update( 'navigation_text_hover_color',
|
||||
'.secondary-navigation .main-nav ul li:hover > a, \
|
||||
.secondary-navigation .main-nav ul li:focus > a, \
|
||||
.secondary-navigation .main-nav ul li.sfHover > a',
|
||||
.secondary-navigation .main-nav ul li.sfHover > a,\
|
||||
.secondary-menu-bar-items .menu-bar-item:hover > a',
|
||||
'color', '', 'link_color_hover', 'generate_secondary_nav_settings'
|
||||
);
|
||||
|
||||
@ -301,7 +307,8 @@ generate_colors_live_update( 'navigation_text_hover_color',
|
||||
generate_colors_live_update( 'navigation_background_hover_color',
|
||||
'.secondary-navigation .main-nav ul li:hover > a, \
|
||||
.secondary-navigation .main-nav ul li:focus > a, \
|
||||
.secondary-navigation .main-nav ul li.sfHover > a',
|
||||
.secondary-navigation .main-nav ul li.sfHover > a, \
|
||||
.secondary-menu-bar-items .menu-bar-item:hover > a',
|
||||
'background-color', 'transparent', '', 'generate_secondary_nav_settings'
|
||||
);
|
||||
|
||||
|
@ -1,6 +1,12 @@
|
||||
<?php
|
||||
/**
|
||||
* This file handles the Customizer options for the Secondary Nav module.
|
||||
*
|
||||
* @package GP Premium
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // No direct access, please
|
||||
exit; // No direct access, please.
|
||||
}
|
||||
|
||||
if ( ! function_exists( 'generate_colors_secondary_nav_customizer' ) ) {
|
||||
@ -15,36 +21,38 @@ if ( ! function_exists( 'generate_colors_secondary_nav_customizer' ) ) {
|
||||
* as we check to see if the layout control exists.
|
||||
*
|
||||
* Secondary Nav now uses 100 as a priority.
|
||||
*
|
||||
* @param object $wp_customize The Customizer object.
|
||||
*/
|
||||
function generate_colors_secondary_nav_customizer( $wp_customize ) {
|
||||
|
||||
// Bail if Secondary Nav isn't activated
|
||||
// Bail if Secondary Nav isn't activated.
|
||||
if ( ! $wp_customize->get_section( 'secondary_nav_section' ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Bail if we don't have our color defaults
|
||||
// Bail if we don't have our color defaults.
|
||||
if ( ! function_exists( 'generate_secondary_nav_get_defaults' ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Add our controls
|
||||
// Add our controls.
|
||||
require_once GP_LIBRARY_DIRECTORY . 'customizer-helpers.php';
|
||||
|
||||
// Get our defaults
|
||||
// Get our defaults.
|
||||
$defaults = generate_secondary_nav_get_defaults();
|
||||
|
||||
// Add control types so controls can be built using JS
|
||||
// Add control types so controls can be built using JS.
|
||||
if ( method_exists( $wp_customize, 'register_control_type' ) ) {
|
||||
$wp_customize->register_control_type( 'GeneratePress_Alpha_Color_Customize_Control' );
|
||||
$wp_customize->register_control_type( 'GeneratePress_Title_Customize_Control' );
|
||||
$wp_customize->register_control_type( 'GeneratePress_Section_Shortcut_Control' );
|
||||
}
|
||||
|
||||
// Get our palettes
|
||||
// Get our palettes.
|
||||
$palettes = generate_get_default_color_palettes();
|
||||
|
||||
// Add Secondary Navigation section
|
||||
// Add Secondary Navigation section.
|
||||
$wp_customize->add_section(
|
||||
'secondary_navigation_color_section',
|
||||
array(
|
||||
@ -78,17 +86,18 @@ if ( ! function_exists( 'generate_colors_secondary_nav_customizer' ) ) {
|
||||
$wp_customize,
|
||||
'generate_secondary_navigation_items',
|
||||
array(
|
||||
'section' => 'secondary_navigation_color_section',
|
||||
'type' => 'generatepress-customizer-title',
|
||||
'title' => __( 'Parent Items', 'gp-premium' ),
|
||||
'section' => 'secondary_navigation_color_section',
|
||||
'type' => 'generatepress-customizer-title',
|
||||
'title' => __( 'Parent Items', 'gp-premium' ),
|
||||
'settings' => ( isset( $wp_customize->selective_refresh ) ) ? array() : 'blogname',
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
// Background
|
||||
// Background.
|
||||
$wp_customize->add_setting(
|
||||
'generate_secondary_nav_settings[navigation_background_color]', array(
|
||||
'generate_secondary_nav_settings[navigation_background_color]',
|
||||
array(
|
||||
'default' => $defaults['navigation_background_color'],
|
||||
'type' => 'option',
|
||||
'capability' => 'edit_theme_options',
|
||||
@ -110,9 +119,10 @@ if ( ! function_exists( 'generate_colors_secondary_nav_customizer' ) ) {
|
||||
)
|
||||
);
|
||||
|
||||
// Text
|
||||
// Text.
|
||||
$wp_customize->add_setting(
|
||||
'generate_secondary_nav_settings[navigation_text_color]', array(
|
||||
'generate_secondary_nav_settings[navigation_text_color]',
|
||||
array(
|
||||
'default' => $defaults['navigation_text_color'],
|
||||
'type' => 'option',
|
||||
'capability' => 'edit_theme_options',
|
||||
@ -133,9 +143,10 @@ if ( ! function_exists( 'generate_colors_secondary_nav_customizer' ) ) {
|
||||
)
|
||||
);
|
||||
|
||||
// Background hover
|
||||
// Background hover.
|
||||
$wp_customize->add_setting(
|
||||
'generate_secondary_nav_settings[navigation_background_hover_color]', array(
|
||||
'generate_secondary_nav_settings[navigation_background_hover_color]',
|
||||
array(
|
||||
'default' => $defaults['navigation_background_hover_color'],
|
||||
'type' => 'option',
|
||||
'capability' => 'edit_theme_options',
|
||||
@ -157,9 +168,10 @@ if ( ! function_exists( 'generate_colors_secondary_nav_customizer' ) ) {
|
||||
)
|
||||
);
|
||||
|
||||
// Text hover
|
||||
// Text hover.
|
||||
$wp_customize->add_setting(
|
||||
'generate_secondary_nav_settings[navigation_text_hover_color]', array(
|
||||
'generate_secondary_nav_settings[navigation_text_hover_color]',
|
||||
array(
|
||||
'default' => $defaults['navigation_text_hover_color'],
|
||||
'type' => 'option',
|
||||
'capability' => 'edit_theme_options',
|
||||
@ -180,9 +192,10 @@ if ( ! function_exists( 'generate_colors_secondary_nav_customizer' ) ) {
|
||||
)
|
||||
);
|
||||
|
||||
// Background current
|
||||
// Background current.
|
||||
$wp_customize->add_setting(
|
||||
'generate_secondary_nav_settings[navigation_background_current_color]', array(
|
||||
'generate_secondary_nav_settings[navigation_background_current_color]',
|
||||
array(
|
||||
'default' => $defaults['navigation_background_current_color'],
|
||||
'type' => 'option',
|
||||
'capability' => 'edit_theme_options',
|
||||
@ -204,9 +217,10 @@ if ( ! function_exists( 'generate_colors_secondary_nav_customizer' ) ) {
|
||||
)
|
||||
);
|
||||
|
||||
// Text current
|
||||
// Text current.
|
||||
$wp_customize->add_setting(
|
||||
'generate_secondary_nav_settings[navigation_text_current_color]', array(
|
||||
'generate_secondary_nav_settings[navigation_text_current_color]',
|
||||
array(
|
||||
'default' => $defaults['navigation_text_current_color'],
|
||||
'type' => 'option',
|
||||
'capability' => 'edit_theme_options',
|
||||
@ -232,17 +246,18 @@ if ( ! function_exists( 'generate_colors_secondary_nav_customizer' ) ) {
|
||||
$wp_customize,
|
||||
'generate_secondary_navigation_sub_menu_items',
|
||||
array(
|
||||
'section' => 'secondary_navigation_color_section',
|
||||
'type' => 'generatepress-customizer-title',
|
||||
'title' => __( 'Sub-Menu Items', 'gp-premium' ),
|
||||
'section' => 'secondary_navigation_color_section',
|
||||
'type' => 'generatepress-customizer-title',
|
||||
'title' => __( 'Sub-Menu Items', 'gp-premium' ),
|
||||
'settings' => ( isset( $wp_customize->selective_refresh ) ) ? array() : 'blogname',
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
// Background
|
||||
// Background.
|
||||
$wp_customize->add_setting(
|
||||
'generate_secondary_nav_settings[subnavigation_background_color]', array(
|
||||
'generate_secondary_nav_settings[subnavigation_background_color]',
|
||||
array(
|
||||
'default' => $defaults['subnavigation_background_color'],
|
||||
'type' => 'option',
|
||||
'capability' => 'edit_theme_options',
|
||||
@ -264,9 +279,10 @@ if ( ! function_exists( 'generate_colors_secondary_nav_customizer' ) ) {
|
||||
)
|
||||
);
|
||||
|
||||
// Text
|
||||
// Text.
|
||||
$wp_customize->add_setting(
|
||||
'generate_secondary_nav_settings[subnavigation_text_color]', array(
|
||||
'generate_secondary_nav_settings[subnavigation_text_color]',
|
||||
array(
|
||||
'default' => $defaults['subnavigation_text_color'],
|
||||
'type' => 'option',
|
||||
'capability' => 'edit_theme_options',
|
||||
@ -287,9 +303,10 @@ if ( ! function_exists( 'generate_colors_secondary_nav_customizer' ) ) {
|
||||
)
|
||||
);
|
||||
|
||||
// Background hover
|
||||
// Background hover.
|
||||
$wp_customize->add_setting(
|
||||
'generate_secondary_nav_settings[subnavigation_background_hover_color]', array(
|
||||
'generate_secondary_nav_settings[subnavigation_background_hover_color]',
|
||||
array(
|
||||
'default' => $defaults['subnavigation_background_hover_color'],
|
||||
'type' => 'option',
|
||||
'capability' => 'edit_theme_options',
|
||||
@ -311,9 +328,10 @@ if ( ! function_exists( 'generate_colors_secondary_nav_customizer' ) ) {
|
||||
)
|
||||
);
|
||||
|
||||
// Text hover
|
||||
// Text hover.
|
||||
$wp_customize->add_setting(
|
||||
'generate_secondary_nav_settings[subnavigation_text_hover_color]', array(
|
||||
'generate_secondary_nav_settings[subnavigation_text_hover_color]',
|
||||
array(
|
||||
'default' => $defaults['subnavigation_text_hover_color'],
|
||||
'type' => 'option',
|
||||
'capability' => 'edit_theme_options',
|
||||
@ -334,9 +352,10 @@ if ( ! function_exists( 'generate_colors_secondary_nav_customizer' ) ) {
|
||||
)
|
||||
);
|
||||
|
||||
// Background current
|
||||
// Background current.
|
||||
$wp_customize->add_setting(
|
||||
'generate_secondary_nav_settings[subnavigation_background_current_color]', array(
|
||||
'generate_secondary_nav_settings[subnavigation_background_current_color]',
|
||||
array(
|
||||
'default' => $defaults['subnavigation_background_current_color'],
|
||||
'type' => 'option',
|
||||
'capability' => 'edit_theme_options',
|
||||
@ -358,9 +377,10 @@ if ( ! function_exists( 'generate_colors_secondary_nav_customizer' ) ) {
|
||||
)
|
||||
);
|
||||
|
||||
// Text current
|
||||
// Text current.
|
||||
$wp_customize->add_setting(
|
||||
'generate_secondary_nav_settings[subnavigation_text_current_color]', array(
|
||||
'generate_secondary_nav_settings[subnavigation_text_current_color]',
|
||||
array(
|
||||
'default' => $defaults['subnavigation_text_current_color'],
|
||||
'type' => 'option',
|
||||
'capability' => 'edit_theme_options',
|
||||
|
@ -1,9 +1,18 @@
|
||||
<?php
|
||||
/**
|
||||
* This file handles the Customizer options for the Off-Canvas Panel.
|
||||
*
|
||||
* @package GP Premium
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // No direct access, please
|
||||
exit; // No direct access, please.
|
||||
}
|
||||
|
||||
add_action( 'customize_preview_init', 'generate_menu_plus_live_preview_scripts', 20 );
|
||||
/**
|
||||
* Add live preview JS to the Customizer.
|
||||
*/
|
||||
function generate_menu_plus_live_preview_scripts() {
|
||||
wp_enqueue_script( 'generate-menu-plus-colors-customizer' );
|
||||
}
|
||||
@ -13,34 +22,35 @@ add_action( 'customize_register', 'generate_slideout_navigation_color_controls',
|
||||
* Adds our Slideout Nav color options
|
||||
*
|
||||
* @since 1.6
|
||||
* @param object $wp_customize The Customizer object.
|
||||
*/
|
||||
function generate_slideout_navigation_color_controls( $wp_customize ) {
|
||||
// Bail if Secondary Nav isn't activated
|
||||
// Bail if Secondary Nav isn't activated.
|
||||
if ( ! $wp_customize->get_section( 'menu_plus_slideout_menu' ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Bail if we don't have our color defaults
|
||||
// Bail if we don't have our color defaults.
|
||||
if ( ! function_exists( 'generate_get_color_defaults' ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Add our controls
|
||||
// Add our controls.
|
||||
require_once GP_LIBRARY_DIRECTORY . 'customizer-helpers.php';
|
||||
|
||||
// Get our defaults
|
||||
// Get our defaults.
|
||||
$defaults = generate_get_color_defaults();
|
||||
|
||||
// Add control types so controls can be built using JS
|
||||
// Add control types so controls can be built using JS.
|
||||
if ( method_exists( $wp_customize, 'register_control_type' ) ) {
|
||||
$wp_customize->register_control_type( 'GeneratePress_Alpha_Color_Customize_Control' );
|
||||
$wp_customize->register_control_type( 'GeneratePress_Section_Shortcut_Control' );
|
||||
}
|
||||
|
||||
// Get our palettes
|
||||
// Get our palettes.
|
||||
$palettes = generate_get_default_color_palettes();
|
||||
|
||||
// Add Secondary Navigation section
|
||||
// Add Secondary Navigation section.
|
||||
$wp_customize->add_section(
|
||||
'slideout_color_section',
|
||||
array(
|
||||
@ -73,17 +83,18 @@ function generate_slideout_navigation_color_controls( $wp_customize ) {
|
||||
$wp_customize,
|
||||
'generate_slideout_navigation_items',
|
||||
array(
|
||||
'section' => 'slideout_color_section',
|
||||
'type' => 'generatepress-customizer-title',
|
||||
'title' => __( 'Parent Menu Items', 'gp-premium' ),
|
||||
'section' => 'slideout_color_section',
|
||||
'type' => 'generatepress-customizer-title',
|
||||
'title' => __( 'Parent Menu Items', 'gp-premium' ),
|
||||
'settings' => ( isset( $wp_customize->selective_refresh ) ) ? array() : 'blogname',
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
// Background
|
||||
// Background.
|
||||
$wp_customize->add_setting(
|
||||
'generate_settings[slideout_background_color]', array(
|
||||
'generate_settings[slideout_background_color]',
|
||||
array(
|
||||
'default' => $defaults['slideout_background_color'],
|
||||
'type' => 'option',
|
||||
'capability' => 'edit_theme_options',
|
||||
@ -105,9 +116,10 @@ function generate_slideout_navigation_color_controls( $wp_customize ) {
|
||||
)
|
||||
);
|
||||
|
||||
// Text
|
||||
// Text.
|
||||
$wp_customize->add_setting(
|
||||
'generate_settings[slideout_text_color]', array(
|
||||
'generate_settings[slideout_text_color]',
|
||||
array(
|
||||
'default' => $defaults['slideout_text_color'],
|
||||
'type' => 'option',
|
||||
'capability' => 'edit_theme_options',
|
||||
@ -128,9 +140,10 @@ function generate_slideout_navigation_color_controls( $wp_customize ) {
|
||||
)
|
||||
);
|
||||
|
||||
// Background hover
|
||||
// Background hover.
|
||||
$wp_customize->add_setting(
|
||||
'generate_settings[slideout_background_hover_color]', array(
|
||||
'generate_settings[slideout_background_hover_color]',
|
||||
array(
|
||||
'default' => $defaults['slideout_background_hover_color'],
|
||||
'type' => 'option',
|
||||
'capability' => 'edit_theme_options',
|
||||
@ -152,9 +165,10 @@ function generate_slideout_navigation_color_controls( $wp_customize ) {
|
||||
)
|
||||
);
|
||||
|
||||
// Text hover
|
||||
// Text hover.
|
||||
$wp_customize->add_setting(
|
||||
'generate_settings[slideout_text_hover_color]', array(
|
||||
'generate_settings[slideout_text_hover_color]',
|
||||
array(
|
||||
'default' => $defaults['slideout_text_hover_color'],
|
||||
'type' => 'option',
|
||||
'capability' => 'edit_theme_options',
|
||||
@ -175,9 +189,10 @@ function generate_slideout_navigation_color_controls( $wp_customize ) {
|
||||
)
|
||||
);
|
||||
|
||||
// Background current
|
||||
// Background current.
|
||||
$wp_customize->add_setting(
|
||||
'generate_settings[slideout_background_current_color]', array(
|
||||
'generate_settings[slideout_background_current_color]',
|
||||
array(
|
||||
'default' => $defaults['slideout_background_current_color'],
|
||||
'type' => 'option',
|
||||
'capability' => 'edit_theme_options',
|
||||
@ -199,9 +214,10 @@ function generate_slideout_navigation_color_controls( $wp_customize ) {
|
||||
)
|
||||
);
|
||||
|
||||
// Text current
|
||||
// Text current.
|
||||
$wp_customize->add_setting(
|
||||
'generate_settings[slideout_text_current_color]', array(
|
||||
'generate_settings[slideout_text_current_color]',
|
||||
array(
|
||||
'default' => $defaults['slideout_text_current_color'],
|
||||
'type' => 'option',
|
||||
'capability' => 'edit_theme_options',
|
||||
@ -227,17 +243,18 @@ function generate_slideout_navigation_color_controls( $wp_customize ) {
|
||||
$wp_customize,
|
||||
'generate_slideout_navigation_sub_menu_items',
|
||||
array(
|
||||
'section' => 'slideout_color_section',
|
||||
'type' => 'generatepress-customizer-title',
|
||||
'title' => __( 'Sub-Menu Items', 'gp-premium' ),
|
||||
'section' => 'slideout_color_section',
|
||||
'type' => 'generatepress-customizer-title',
|
||||
'title' => __( 'Sub-Menu Items', 'gp-premium' ),
|
||||
'settings' => ( isset( $wp_customize->selective_refresh ) ) ? array() : 'blogname',
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
// Background
|
||||
// Background.
|
||||
$wp_customize->add_setting(
|
||||
'generate_settings[slideout_submenu_background_color]', array(
|
||||
'generate_settings[slideout_submenu_background_color]',
|
||||
array(
|
||||
'default' => $defaults['slideout_submenu_background_color'],
|
||||
'type' => 'option',
|
||||
'capability' => 'edit_theme_options',
|
||||
@ -259,9 +276,10 @@ function generate_slideout_navigation_color_controls( $wp_customize ) {
|
||||
)
|
||||
);
|
||||
|
||||
// Text
|
||||
// Text.
|
||||
$wp_customize->add_setting(
|
||||
'generate_settings[slideout_submenu_text_color]', array(
|
||||
'generate_settings[slideout_submenu_text_color]',
|
||||
array(
|
||||
'default' => $defaults['slideout_submenu_text_color'],
|
||||
'type' => 'option',
|
||||
'capability' => 'edit_theme_options',
|
||||
@ -282,9 +300,10 @@ function generate_slideout_navigation_color_controls( $wp_customize ) {
|
||||
)
|
||||
);
|
||||
|
||||
// Background hover
|
||||
// Background hover.
|
||||
$wp_customize->add_setting(
|
||||
'generate_settings[slideout_submenu_background_hover_color]', array(
|
||||
'generate_settings[slideout_submenu_background_hover_color]',
|
||||
array(
|
||||
'default' => $defaults['slideout_submenu_background_hover_color'],
|
||||
'type' => 'option',
|
||||
'capability' => 'edit_theme_options',
|
||||
@ -306,9 +325,10 @@ function generate_slideout_navigation_color_controls( $wp_customize ) {
|
||||
)
|
||||
);
|
||||
|
||||
// Text hover
|
||||
// Text hover.
|
||||
$wp_customize->add_setting(
|
||||
'generate_settings[slideout_submenu_text_hover_color]', array(
|
||||
'generate_settings[slideout_submenu_text_hover_color]',
|
||||
array(
|
||||
'default' => $defaults['slideout_submenu_text_hover_color'],
|
||||
'type' => 'option',
|
||||
'capability' => 'edit_theme_options',
|
||||
@ -329,9 +349,10 @@ function generate_slideout_navigation_color_controls( $wp_customize ) {
|
||||
)
|
||||
);
|
||||
|
||||
// Background current
|
||||
// Background current.
|
||||
$wp_customize->add_setting(
|
||||
'generate_settings[slideout_submenu_background_current_color]', array(
|
||||
'generate_settings[slideout_submenu_background_current_color]',
|
||||
array(
|
||||
'default' => $defaults['slideout_submenu_background_current_color'],
|
||||
'type' => 'option',
|
||||
'capability' => 'edit_theme_options',
|
||||
@ -353,9 +374,10 @@ function generate_slideout_navigation_color_controls( $wp_customize ) {
|
||||
)
|
||||
);
|
||||
|
||||
// Text current
|
||||
// Text current.
|
||||
$wp_customize->add_setting(
|
||||
'generate_settings[slideout_submenu_text_current_color]', array(
|
||||
'generate_settings[slideout_submenu_text_current_color]',
|
||||
array(
|
||||
'default' => $defaults['slideout_submenu_text_current_color'],
|
||||
'type' => 'option',
|
||||
'capability' => 'edit_theme_options',
|
||||
|
@ -1,16 +1,23 @@
|
||||
<?php
|
||||
// No direct access, please
|
||||
/**
|
||||
* This file handles the Customizer options for the WooCommerce module.
|
||||
*
|
||||
* @package GP Premium
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
exit; // No direct access, please.
|
||||
}
|
||||
|
||||
if ( ! function_exists( 'generate_colors_wc_customizer' ) ) {
|
||||
add_action( 'customize_register', 'generate_colors_wc_customizer', 100 );
|
||||
/**
|
||||
* Adds our WooCommerce color options
|
||||
*
|
||||
* @param object $wp_customize The Customizer object.
|
||||
*/
|
||||
function generate_colors_wc_customizer( $wp_customize ) {
|
||||
// Bail if WooCommerce isn't activated
|
||||
// Bail if WooCommerce isn't activated.
|
||||
if ( ! $wp_customize->get_section( 'generate_woocommerce_colors' ) ) {
|
||||
return;
|
||||
}
|
||||
@ -19,13 +26,13 @@ if ( ! function_exists( 'generate_colors_wc_customizer' ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Add our controls
|
||||
// Add our controls.
|
||||
require_once GP_LIBRARY_DIRECTORY . 'customizer-helpers.php';
|
||||
|
||||
// Get our defaults
|
||||
// Get our defaults.
|
||||
$defaults = generate_get_color_defaults();
|
||||
|
||||
// Add control types so controls can be built using JS
|
||||
// Add control types so controls can be built using JS.
|
||||
if ( method_exists( $wp_customize, 'register_control_type' ) ) {
|
||||
$wp_customize->register_control_type( 'GeneratePress_Alpha_Color_Customize_Control' );
|
||||
$wp_customize->register_control_type( 'GeneratePress_Title_Customize_Control' );
|
||||
@ -33,7 +40,7 @@ if ( ! function_exists( 'generate_colors_wc_customizer' ) ) {
|
||||
$wp_customize->register_control_type( 'GeneratePress_Section_Shortcut_Control' );
|
||||
}
|
||||
|
||||
// Get our palettes
|
||||
// Get our palettes.
|
||||
$palettes = generate_get_default_color_palettes();
|
||||
|
||||
$wp_customize->add_control(
|
||||
@ -61,7 +68,7 @@ if ( ! function_exists( 'generate_colors_wc_customizer' ) ) {
|
||||
'section' => 'generate_woocommerce_colors',
|
||||
'type' => 'generatepress-customizer-title',
|
||||
'title' => __( 'Buttons', 'gp-premium' ),
|
||||
'settings' => ( isset( $wp_customize->selective_refresh ) ) ? array() : 'blogname'
|
||||
'settings' => ( isset( $wp_customize->selective_refresh ) ) ? array() : 'blogname',
|
||||
)
|
||||
)
|
||||
);
|
||||
@ -71,10 +78,10 @@ if ( ! function_exists( 'generate_colors_wc_customizer' ) ) {
|
||||
$wp_customize,
|
||||
'generate_woocommerce_primary_button_message',
|
||||
array(
|
||||
'section' => 'generate_woocommerce_colors',
|
||||
'label' => __( 'Primary Button Colors','generate-woocommerce' ),
|
||||
'description' => __( 'Primary button colors can be set <a href="#">here</a>.','generate-woocommerce' ),
|
||||
'settings' => ( isset( $wp_customize->selective_refresh ) ) ? array() : 'blogname'
|
||||
'section' => 'generate_woocommerce_colors',
|
||||
'label' => __( 'Primary Button Colors', 'gp-premium' ),
|
||||
'description' => __( 'Primary button colors can be set <a href="#">here</a>.', 'gp-premium' ),
|
||||
'settings' => ( isset( $wp_customize->selective_refresh ) ) ? array() : 'blogname',
|
||||
)
|
||||
)
|
||||
);
|
||||
@ -128,7 +135,8 @@ if ( ! function_exists( 'generate_colors_wc_customizer' ) ) {
|
||||
);
|
||||
|
||||
$wp_customize->add_setting(
|
||||
'generate_settings[wc_alt_button_text]', array(
|
||||
'generate_settings[wc_alt_button_text]',
|
||||
array(
|
||||
'default' => $defaults['wc_alt_button_text'],
|
||||
'type' => 'option',
|
||||
'capability' => 'edit_theme_options',
|
||||
@ -149,9 +157,9 @@ if ( ! function_exists( 'generate_colors_wc_customizer' ) ) {
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
$wp_customize->add_setting(
|
||||
'generate_settings[wc_alt_button_text_hover]', array(
|
||||
'generate_settings[wc_alt_button_text_hover]',
|
||||
array(
|
||||
'default' => $defaults['wc_alt_button_text_hover'],
|
||||
'type' => 'option',
|
||||
'capability' => 'edit_theme_options',
|
||||
@ -180,13 +188,14 @@ if ( ! function_exists( 'generate_colors_wc_customizer' ) ) {
|
||||
'section' => 'generate_woocommerce_colors',
|
||||
'type' => 'generatepress-customizer-title',
|
||||
'title' => __( 'Products', 'gp-premium' ),
|
||||
'settings' => ( isset( $wp_customize->selective_refresh ) ) ? array() : 'blogname'
|
||||
'settings' => ( isset( $wp_customize->selective_refresh ) ) ? array() : 'blogname',
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
$wp_customize->add_setting(
|
||||
'generate_settings[wc_product_title_color]', array(
|
||||
'generate_settings[wc_product_title_color]',
|
||||
array(
|
||||
'default' => $defaults['wc_product_title_color'],
|
||||
'type' => 'option',
|
||||
'capability' => 'edit_theme_options',
|
||||
@ -208,7 +217,8 @@ if ( ! function_exists( 'generate_colors_wc_customizer' ) ) {
|
||||
);
|
||||
|
||||
$wp_customize->add_setting(
|
||||
'generate_settings[wc_product_title_color_hover]', array(
|
||||
'generate_settings[wc_product_title_color_hover]',
|
||||
array(
|
||||
'default' => $defaults['wc_product_title_color_hover'],
|
||||
'type' => 'option',
|
||||
'capability' => 'edit_theme_options',
|
||||
@ -278,7 +288,8 @@ if ( ! function_exists( 'generate_colors_wc_customizer' ) ) {
|
||||
);
|
||||
|
||||
$wp_customize->add_setting(
|
||||
'generate_settings[wc_sale_sticker_text]', array(
|
||||
'generate_settings[wc_sale_sticker_text]',
|
||||
array(
|
||||
'default' => $defaults['wc_sale_sticker_text'],
|
||||
'type' => 'option',
|
||||
'capability' => 'edit_theme_options',
|
||||
@ -300,7 +311,8 @@ if ( ! function_exists( 'generate_colors_wc_customizer' ) ) {
|
||||
);
|
||||
|
||||
$wp_customize->add_setting(
|
||||
'generate_settings[wc_price_color]', array(
|
||||
'generate_settings[wc_price_color]',
|
||||
array(
|
||||
'default' => $defaults['wc_price_color'],
|
||||
'type' => 'option',
|
||||
'capability' => 'edit_theme_options',
|
||||
@ -329,7 +341,7 @@ if ( ! function_exists( 'generate_colors_wc_customizer' ) ) {
|
||||
'section' => 'generate_woocommerce_colors',
|
||||
'type' => 'generatepress-customizer-title',
|
||||
'title' => __( 'Sticky Panel Cart', 'gp-premium' ),
|
||||
'settings' => ( isset( $wp_customize->selective_refresh ) ) ? array() : 'blogname'
|
||||
'settings' => ( isset( $wp_customize->selective_refresh ) ) ? array() : 'blogname',
|
||||
)
|
||||
)
|
||||
);
|
||||
@ -359,7 +371,8 @@ if ( ! function_exists( 'generate_colors_wc_customizer' ) ) {
|
||||
);
|
||||
|
||||
$wp_customize->add_setting(
|
||||
'generate_settings[wc_panel_cart_text_color]', array(
|
||||
'generate_settings[wc_panel_cart_text_color]',
|
||||
array(
|
||||
'default' => $defaults['wc_panel_cart_text_color'],
|
||||
'type' => 'option',
|
||||
'capability' => 'edit_theme_options',
|
||||
@ -381,7 +394,8 @@ if ( ! function_exists( 'generate_colors_wc_customizer' ) ) {
|
||||
);
|
||||
|
||||
$wp_customize->add_setting(
|
||||
'generate_settings[wc_panel_cart_button_background]', array(
|
||||
'generate_settings[wc_panel_cart_button_background]',
|
||||
array(
|
||||
'default' => $defaults['wc_panel_cart_button_background'],
|
||||
'type' => 'option',
|
||||
'capability' => 'edit_theme_options',
|
||||
@ -403,7 +417,8 @@ if ( ! function_exists( 'generate_colors_wc_customizer' ) ) {
|
||||
);
|
||||
|
||||
$wp_customize->add_setting(
|
||||
'generate_settings[wc_panel_cart_button_background_hover]', array(
|
||||
'generate_settings[wc_panel_cart_button_background_hover]',
|
||||
array(
|
||||
'default' => $defaults['wc_panel_cart_button_background_hover'],
|
||||
'type' => 'option',
|
||||
'capability' => 'edit_theme_options',
|
||||
@ -425,7 +440,8 @@ if ( ! function_exists( 'generate_colors_wc_customizer' ) ) {
|
||||
);
|
||||
|
||||
$wp_customize->add_setting(
|
||||
'generate_settings[wc_panel_cart_button_text]', array(
|
||||
'generate_settings[wc_panel_cart_button_text]',
|
||||
array(
|
||||
'default' => $defaults['wc_panel_cart_button_text'],
|
||||
'type' => 'option',
|
||||
'capability' => 'edit_theme_options',
|
||||
@ -447,7 +463,8 @@ if ( ! function_exists( 'generate_colors_wc_customizer' ) ) {
|
||||
);
|
||||
|
||||
$wp_customize->add_setting(
|
||||
'generate_settings[wc_panel_cart_button_text_hover]', array(
|
||||
'generate_settings[wc_panel_cart_button_text_hover]',
|
||||
array(
|
||||
'default' => $defaults['wc_panel_cart_button_text_hover'],
|
||||
'type' => 'option',
|
||||
'capability' => 'edit_theme_options',
|
||||
@ -476,7 +493,7 @@ if ( ! function_exists( 'generate_colors_wc_customizer' ) ) {
|
||||
'section' => 'generate_woocommerce_colors',
|
||||
'type' => 'generatepress-customizer-title',
|
||||
'title' => __( 'Menu Mini Cart', 'gp-premium' ),
|
||||
'settings' => ( isset( $wp_customize->selective_refresh ) ) ? array() : 'blogname'
|
||||
'settings' => ( isset( $wp_customize->selective_refresh ) ) ? array() : 'blogname',
|
||||
)
|
||||
)
|
||||
);
|
||||
@ -506,7 +523,8 @@ if ( ! function_exists( 'generate_colors_wc_customizer' ) ) {
|
||||
);
|
||||
|
||||
$wp_customize->add_setting(
|
||||
'generate_settings[wc_mini_cart_text_color]', array(
|
||||
'generate_settings[wc_mini_cart_text_color]',
|
||||
array(
|
||||
'default' => $defaults['wc_mini_cart_text_color'],
|
||||
'type' => 'option',
|
||||
'capability' => 'edit_theme_options',
|
||||
@ -528,7 +546,8 @@ if ( ! function_exists( 'generate_colors_wc_customizer' ) ) {
|
||||
);
|
||||
|
||||
$wp_customize->add_setting(
|
||||
'generate_settings[wc_mini_cart_button_background]', array(
|
||||
'generate_settings[wc_mini_cart_button_background]',
|
||||
array(
|
||||
'default' => $defaults['wc_mini_cart_button_background'],
|
||||
'type' => 'option',
|
||||
'capability' => 'edit_theme_options',
|
||||
@ -550,7 +569,8 @@ if ( ! function_exists( 'generate_colors_wc_customizer' ) ) {
|
||||
);
|
||||
|
||||
$wp_customize->add_setting(
|
||||
'generate_settings[wc_mini_cart_button_background_hover]', array(
|
||||
'generate_settings[wc_mini_cart_button_background_hover]',
|
||||
array(
|
||||
'default' => $defaults['wc_mini_cart_button_background_hover'],
|
||||
'type' => 'option',
|
||||
'capability' => 'edit_theme_options',
|
||||
@ -572,7 +592,8 @@ if ( ! function_exists( 'generate_colors_wc_customizer' ) ) {
|
||||
);
|
||||
|
||||
$wp_customize->add_setting(
|
||||
'generate_settings[wc_mini_cart_button_text]', array(
|
||||
'generate_settings[wc_mini_cart_button_text]',
|
||||
array(
|
||||
'default' => $defaults['wc_mini_cart_button_text'],
|
||||
'type' => 'option',
|
||||
'capability' => 'edit_theme_options',
|
||||
@ -594,7 +615,8 @@ if ( ! function_exists( 'generate_colors_wc_customizer' ) ) {
|
||||
);
|
||||
|
||||
$wp_customize->add_setting(
|
||||
'generate_settings[wc_mini_cart_button_text_hover]', array(
|
||||
'generate_settings[wc_mini_cart_button_text_hover]',
|
||||
array(
|
||||
'default' => $defaults['wc_mini_cart_button_text_hover'],
|
||||
'type' => 'option',
|
||||
'capability' => 'edit_theme_options',
|
||||
@ -623,13 +645,14 @@ if ( ! function_exists( 'generate_colors_wc_customizer' ) ) {
|
||||
'section' => 'generate_woocommerce_colors',
|
||||
'type' => 'generatepress-customizer-title',
|
||||
'title' => __( 'Price Slider Widget', 'gp-premium' ),
|
||||
'settings' => ( isset( $wp_customize->selective_refresh ) ) ? array() : 'blogname'
|
||||
'settings' => ( isset( $wp_customize->selective_refresh ) ) ? array() : 'blogname',
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
$wp_customize->add_setting(
|
||||
'generate_settings[wc_price_slider_background_color]', array(
|
||||
'generate_settings[wc_price_slider_background_color]',
|
||||
array(
|
||||
'default' => $defaults['wc_price_slider_background_color'],
|
||||
'type' => 'option',
|
||||
'sanitize_callback' => 'generate_premium_sanitize_hex_color',
|
||||
@ -650,7 +673,8 @@ if ( ! function_exists( 'generate_colors_wc_customizer' ) ) {
|
||||
);
|
||||
|
||||
$wp_customize->add_setting(
|
||||
'generate_settings[wc_price_slider_bar_color]', array(
|
||||
'generate_settings[wc_price_slider_bar_color]',
|
||||
array(
|
||||
'default' => $defaults['wc_price_slider_bar_color'],
|
||||
'type' => 'option',
|
||||
'sanitize_callback' => 'generate_premium_sanitize_hex_color',
|
||||
@ -678,13 +702,14 @@ if ( ! function_exists( 'generate_colors_wc_customizer' ) ) {
|
||||
'section' => 'generate_woocommerce_colors',
|
||||
'type' => 'generatepress-customizer-title',
|
||||
'title' => __( 'Product Tabs', 'gp-premium' ),
|
||||
'settings' => ( isset( $wp_customize->selective_refresh ) ) ? array() : 'blogname'
|
||||
'settings' => ( isset( $wp_customize->selective_refresh ) ) ? array() : 'blogname',
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
$wp_customize->add_setting(
|
||||
'generate_settings[wc_product_tab]', array(
|
||||
'generate_settings[wc_product_tab]',
|
||||
array(
|
||||
'default' => $defaults['wc_product_tab'],
|
||||
'type' => 'option',
|
||||
'capability' => 'edit_theme_options',
|
||||
@ -706,7 +731,8 @@ if ( ! function_exists( 'generate_colors_wc_customizer' ) ) {
|
||||
);
|
||||
|
||||
$wp_customize->add_setting(
|
||||
'generate_settings[wc_product_tab_highlight]', array(
|
||||
'generate_settings[wc_product_tab_highlight]',
|
||||
array(
|
||||
'default' => $defaults['wc_product_tab_highlight'],
|
||||
'type' => 'option',
|
||||
'capability' => 'edit_theme_options',
|
||||
@ -735,7 +761,7 @@ if ( ! function_exists( 'generate_colors_wc_customizer' ) ) {
|
||||
'section' => 'generate_woocommerce_colors',
|
||||
'type' => 'generatepress-customizer-title',
|
||||
'title' => __( 'Messages', 'gp-premium' ),
|
||||
'settings' => ( isset( $wp_customize->selective_refresh ) ) ? array() : 'blogname'
|
||||
'settings' => ( isset( $wp_customize->selective_refresh ) ) ? array() : 'blogname',
|
||||
)
|
||||
)
|
||||
);
|
||||
@ -765,7 +791,8 @@ if ( ! function_exists( 'generate_colors_wc_customizer' ) ) {
|
||||
);
|
||||
|
||||
$wp_customize->add_setting(
|
||||
'generate_settings[wc_success_message_text]', array(
|
||||
'generate_settings[wc_success_message_text]',
|
||||
array(
|
||||
'default' => $defaults['wc_success_message_text'],
|
||||
'type' => 'option',
|
||||
'capability' => 'edit_theme_options',
|
||||
@ -811,7 +838,8 @@ if ( ! function_exists( 'generate_colors_wc_customizer' ) ) {
|
||||
);
|
||||
|
||||
$wp_customize->add_setting(
|
||||
'generate_settings[wc_info_message_text]', array(
|
||||
'generate_settings[wc_info_message_text]',
|
||||
array(
|
||||
'default' => $defaults['wc_info_message_text'],
|
||||
'type' => 'option',
|
||||
'capability' => 'edit_theme_options',
|
||||
@ -857,7 +885,8 @@ if ( ! function_exists( 'generate_colors_wc_customizer' ) ) {
|
||||
);
|
||||
|
||||
$wp_customize->add_setting(
|
||||
'generate_settings[wc_error_message_text]', array(
|
||||
'generate_settings[wc_error_message_text]',
|
||||
array(
|
||||
'default' => $defaults['wc_error_message_text'],
|
||||
'type' => 'option',
|
||||
'capability' => 'edit_theme_options',
|
||||
|
@ -1,19 +1,20 @@
|
||||
<?php
|
||||
/*
|
||||
Addon Name: Generate Colors
|
||||
Author: Thomas Usborne
|
||||
Author URI: http://edge22.com
|
||||
*/
|
||||
/**
|
||||
* The Colors module.
|
||||
*
|
||||
* @since 1.1.0
|
||||
*
|
||||
* @package GP Premium
|
||||
*/
|
||||
|
||||
// No direct access, please
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
exit; // No direct access, please.
|
||||
}
|
||||
|
||||
// Define the version
|
||||
// Define the version. This used to be a standalone plugin, so we need to keep this constant.
|
||||
if ( ! defined( 'GENERATE_COLORS_VERSION' ) ) {
|
||||
define( 'GENERATE_COLORS_VERSION', GP_PREMIUM_VERSION );
|
||||
}
|
||||
|
||||
// Include functions identical between standalone addon and GP Premium
|
||||
// Include functions identical between standalone addon and GP Premium.
|
||||
require plugin_dir_path( __FILE__ ) . 'functions/functions.php';
|
||||
|
Reference in New Issue
Block a user