Server IP : 104.21.14.48 / Your IP : 3.15.235.239 [ Web Server : Apache System : Linux b70eb322-3aee-0c53-7c82-0db91281f2c6.secureserver.net 6.1.90-1.el9.elrepo.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 2 12:09:22 EDT 2024 x86_64 User : root ( 0) PHP Version : 8.0.30.2 Disable Function : NONE Domains : 0 Domains MySQL : ON | cURL : ON | WGET : ON | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/chroot/var/www/wp-content/themes/izo/inc/customizer/ |
Upload File : |
<?php /** * General Customizer options * * @package Izo */ $wp_customize->add_panel( 'izo_general_panel', array( 'title' => esc_html__( 'General settings', 'izo' ), 'priority' => 1, ) ); /** * Colors */ $wp_customize->add_setting( 'accent_color', array( 'default' => '#ea285e', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'accent_color', array( 'label' => esc_html__( 'Accent color', 'izo' ), 'section' => 'colors', 'settings' => 'accent_color', ) ) ); $wp_customize->add_setting( 'body_color', array( 'default' => '#1d1d1f', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'body_color', array( 'label' => esc_html__( 'Body text color', 'izo' ), 'section' => 'colors', ) ) ); $wp_customize->add_setting( 'content_link_color', array( 'default' => '#4169e1', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'content_link_color', array( 'label' => esc_html__( 'Content link color', 'izo' ), 'section' => 'colors', ) ) ); $wp_customize->add_setting( 'content_link_color_hover', array( 'default' => '#191970', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'content_link_color_hover', array( 'label' => esc_html__( 'Content link color (hover)', 'izo' ), 'section' => 'colors', ) ) ); $wp_customize->add_setting( 'headings_color', array( 'default' => '#1d1d1f', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'headings_color', array( 'label' => esc_html__( 'H1-H6 headings', 'izo' ), 'section' => 'colors', ) ) ); $wp_customize->add_setting( 'general_color_options_info', array( 'sanitize_callback' => 'esc_html', 'priority' => 19 ) ); $wp_customize->add_control( new Izo_Info( $wp_customize, 'general_color_options_info', array( 'label' => '<h3>' . esc_html__( 'More color options', 'izo' ) . '</h3><a style="display:block;margin-bottom:5px;" href="javascript:wp.customize.section( \'izo_buttons\' ).focus();">' . esc_html__( 'Button colors', 'izo' ) . '</a><a style="display:block;margin-bottom:5px;" href="javascript:wp.customize.section( \'izo_header_styles\' ).focus();">' . esc_html__( 'Header area colors', 'izo' ) . '</a><a style="display:block;margin-bottom:5px;" href="javascript:wp.customize.section( \'izo_header_sticky\' ).focus();">' . esc_html__( 'Sticky menu colors', 'izo' ) . '</a><a style="display:block;margin-bottom:5px;" href="javascript:wp.customize.section( \'izo_footer_widgets\' ).focus();">' . esc_html__( 'Footer widgets colors', 'izo' ) . '</a><a style="display:block;margin-bottom:5px;" href="javascript:wp.customize.section( \'izo_footer_bar\' ).focus();">' . esc_html__( 'Footer credits colors', 'izo' ) . '</a>', 'attr' => false, 'section' => 'colors', ) ) ); /** * Buttons */ $wp_customize->add_section( 'izo_buttons', array( 'title' => esc_html__( 'Buttons', 'izo' ), 'panel' => 'izo_general_panel' ) ); $wp_customize->add_setting( 'global_button_background', array( 'default' => '#ea285e', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'global_button_background', array( 'label' => esc_html__( 'Button background color', 'izo' ), 'section' => 'izo_buttons', 'settings' => 'global_button_background', ) ) ); $wp_customize->add_setting( 'global_button_color', array( 'default' => '#ffffff', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'global_button_color', array( 'label' => esc_html__( 'Button color', 'izo' ), 'section' => 'izo_buttons', 'settings' => 'global_button_color', ) ) ); $wp_customize->add_setting( 'global_button_background_hover', array( 'default' => '#b6113f', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'global_button_background_hover', array( 'label' => esc_html__( 'Button background color (hover)', 'izo' ), 'section' => 'izo_buttons', 'settings' => 'global_button_background_hover', ) ) ); $wp_customize->add_setting( 'global_button_color_hover', array( 'default' => '#ffffff', 'sanitize_callback' => 'sanitize_hex_color', 'transport' => 'postMessage' ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'global_button_color_hover', array( 'label' => esc_html__( 'Button color (hover)', 'izo' ), 'section' => 'izo_buttons', 'settings' => 'global_button_color_hover', ) ) ); $wp_customize->add_setting( 'global_button_padding_tb', array( 'default' => 14, 'sanitize_callback' => 'absint', ) ); $wp_customize->add_control( 'global_button_padding_tb', array( 'label' => esc_html__( 'Top/bottom padding [px]', 'izo' ), 'section' => 'izo_buttons', 'type' => 'number', ) ); $wp_customize->add_setting( 'global_button_padding_lr', array( 'default' => 26, 'sanitize_callback' => 'absint', ) ); $wp_customize->add_control( 'global_button_padding_lr', array( 'label' => esc_html__( 'Left/right padding [px]', 'izo' ), 'section' => 'izo_buttons', 'type' => 'number', ) ); $wp_customize->add_setting( 'global_button_border_radius', array( 'default' => 0, 'sanitize_callback' => 'absint', ) ); $wp_customize->add_control( 'global_button_border_radius', array( 'label' => esc_html__( 'Border radius [px]', 'izo' ), 'section' => 'izo_buttons', 'type' => 'number', ) ); $wp_customize->add_setting( 'global_button_font_size', array( 'default' => 16, 'sanitize_callback' => 'absint', ) ); $wp_customize->add_control( 'global_button_font_size', array( 'label' => esc_html__( 'Font size [px]', 'izo' ), 'section' => 'izo_buttons', 'type' => 'number', ) );