[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: buttons.php
<?php /** * This file handles the customizer fields for the Body. * * @package GeneratePress */ if ( ! defined( 'ABSPATH' ) ) { exit; // No direct access, please. } GeneratePress_Customize_Field::add_title( 'generate_buttons_colors_title', array( 'section' => 'generate_colors_section', 'title' => __( 'Buttons', 'generatepress' ), 'choices' => array( 'toggleId' => 'button-colors', ), ) ); GeneratePress_Customize_Field::add_wrapper( 'generate_buttons_background_wrapper', array( 'section' => 'generate_colors_section', 'choices' => array( 'type' => 'color', 'toggleId' => 'button-colors', 'items' => array( 'form_button_background_color', 'form_button_background_color_hover', ), ), ) ); $buttons_selector = 'button, html input[type="button"], input[type="reset"], input[type="submit"], a.button, a.button:visited, a.wp-block-button__link:not(.has-background)'; $buttons_hover_selector = 'button:hover, html input[type="button"]:hover, input[type="reset"]:hover, input[type="submit"]:hover, a.button:hover, button:focus, html input[type="button"]:focus, input[type="reset"]:focus, input[type="submit"]:focus, a.button:focus, a.wp-block-button__link:not(.has-background):active, a.wp-block-button__link:not(.has-background):focus, a.wp-block-button__link:not(.has-background):hover'; if ( defined( 'GP_PREMIUM_VERSION' ) && version_compare( GP_PREMIUM_VERSION, '2.4.1', '>' ) ) { $buttons_selector .= ', .wc-block-components-button'; $buttons_hover_selector .= ', .wc-block-components-button:hover'; } GeneratePress_Customize_Field::add_field( 'generate_settings[form_button_background_color]', 'GeneratePress_Customize_Color_Control', array( 'default' => $color_defaults['form_button_background_color'], 'sanitize_callback' => 'generate_sanitize_rgba_color', 'transport' => 'postMessage', ), array( 'label' => __( 'Background', 'generatepress' ), 'section' => 'generate_colors_section', 'choices' => array( 'alpha' => true, 'toggleId' => 'button-colors', 'wrapper' => 'form_button_background_color', 'tooltip' => __( 'Choose Initial Color', 'generatepress' ), ), 'output' => array( array( 'element' => $buttons_selector, 'property' => 'background-color', ), ), ) ); GeneratePress_Customize_Field::add_field( 'generate_settings[form_button_background_color_hover]', 'GeneratePress_Customize_Color_Control', array( 'default' => $color_defaults['form_button_background_color_hover'], 'sanitize_callback' => 'generate_sanitize_rgba_color', 'transport' => 'postMessage', ), array( 'label' => __( 'Background Hover', 'generatepress' ), 'section' => 'generate_colors_section', 'choices' => array( 'alpha' => true, 'toggleId' => 'button-colors', 'wrapper' => 'form_button_background_color_hover', 'tooltip' => __( 'Choose Hover Color', 'generatepress' ), 'hideLabel' => true, ), 'output' => array( array( 'element' => $buttons_hover_selector, 'property' => 'background-color', ), ), ) ); GeneratePress_Customize_Field::add_wrapper( 'generate_buttons_text_wrapper', array( 'section' => 'generate_colors_section', 'choices' => array( 'type' => 'color', 'toggleId' => 'button-colors', 'items' => array( 'form_button_text_color', 'form_button_text_color_hover', ), ), ) ); GeneratePress_Customize_Field::add_field( 'generate_settings[form_button_text_color]', 'GeneratePress_Customize_Color_Control', array( 'default' => $color_defaults['form_button_text_color'], 'sanitize_callback' => 'generate_sanitize_hex_color', 'transport' => 'postMessage', ), array( 'label' => __( 'Text', 'generatepress' ), 'section' => 'generate_colors_section', 'choices' => array( 'toggleId' => 'button-colors', 'wrapper' => 'form_button_text_color', 'tooltip' => __( 'Choose Initial Color', 'generatepress' ), ), 'output' => array( array( 'element' => $buttons_selector, 'property' => 'color', ), ), ) ); GeneratePress_Customize_Field::add_field( 'generate_settings[form_button_text_color_hover]', 'GeneratePress_Customize_Color_Control', array( 'default' => $color_defaults['form_button_text_color_hover'], 'sanitize_callback' => 'generate_sanitize_hex_color', 'transport' => 'postMessage', ), array( 'label' => __( 'Text Hover', 'generatepress' ), 'section' => 'generate_colors_section', 'choices' => array( 'toggleId' => 'button-colors', 'wrapper' => 'form_button_text_color_hover', 'tooltip' => __( 'Choose Hover Color', 'generatepress' ), 'hideLabel' => true, ), 'output' => array( array( 'element' => $buttons_hover_selector, 'property' => 'color', ), ), ) );
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: webm010.cluster103.gra.hosting.ovh.net
Server IP: 10.103.20.10
PHP Version: 7.4.33
Server Software: Apache
System: Linux webm010.cluster103.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
HDD Total: 14.32 GB
HDD Free: 8.45 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
Exists
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes
gcc:
No
pkexec:
No
git:
Yes
User Info
Username: cuisinesj
User ID (UID): 17129
Group ID (GID): 100
Script Owner UID: 17129
Current Dir Owner: 17129