Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/clone/wp-conte.../themes/Divi
File: functions.php
'capability' => 'edit_theme_options',
[3000] Fix | Delete
'transport' => 'postMessage',
[3001] Fix | Delete
'sanitize_callback' => 'absint',
[3002] Fix | Delete
) );
[3003] Fix | Delete
[3004] Fix | Delete
$wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[footer_menu_font_size]', array(
[3005] Fix | Delete
'label' => esc_html__( 'Font Size', 'Divi' ),
[3006] Fix | Delete
'section' => 'et_divi_footer_menu',
[3007] Fix | Delete
'type' => 'range',
[3008] Fix | Delete
'input_attrs' => array(
[3009] Fix | Delete
'min' => 10,
[3010] Fix | Delete
'max' => 32,
[3011] Fix | Delete
'step' => 1,
[3012] Fix | Delete
),
[3013] Fix | Delete
) ) );
[3014] Fix | Delete
[3015] Fix | Delete
/* Bottom Bar */
[3016] Fix | Delete
$wp_customize->add_setting( 'et_divi[bottom_bar_background_color]', array(
[3017] Fix | Delete
'default' => 'rgba(0,0,0,0.32)',
[3018] Fix | Delete
'type' => 'option',
[3019] Fix | Delete
'capability' => 'edit_theme_options',
[3020] Fix | Delete
'transport' => 'postMessage',
[3021] Fix | Delete
'sanitize_callback' => 'et_sanitize_alpha_color',
[3022] Fix | Delete
) );
[3023] Fix | Delete
[3024] Fix | Delete
$wp_customize->add_control( new ET_Divi_Customize_Color_Alpha_Control( $wp_customize, 'et_divi[bottom_bar_background_color]', array(
[3025] Fix | Delete
'label' => esc_html__( 'Background Color', 'Divi' ),
[3026] Fix | Delete
'section' => 'et_divi_bottom_bar',
[3027] Fix | Delete
'settings' => 'et_divi[bottom_bar_background_color]',
[3028] Fix | Delete
) ) );
[3029] Fix | Delete
[3030] Fix | Delete
$wp_customize->add_setting( 'et_divi[bottom_bar_text_color]', array(
[3031] Fix | Delete
'default' => '#666666',
[3032] Fix | Delete
'type' => 'option',
[3033] Fix | Delete
'capability' => 'edit_theme_options',
[3034] Fix | Delete
'transport' => 'postMessage',
[3035] Fix | Delete
'sanitize_callback' => 'et_sanitize_alpha_color',
[3036] Fix | Delete
) );
[3037] Fix | Delete
[3038] Fix | Delete
$wp_customize->add_control( new ET_Divi_Customize_Color_Alpha_Control( $wp_customize, 'et_divi[bottom_bar_text_color]', array(
[3039] Fix | Delete
'label' => esc_html__( 'Text Color', 'Divi' ),
[3040] Fix | Delete
'section' => 'et_divi_bottom_bar',
[3041] Fix | Delete
'settings' => 'et_divi[bottom_bar_text_color]',
[3042] Fix | Delete
) ) );
[3043] Fix | Delete
[3044] Fix | Delete
$wp_customize->add_setting( 'et_divi[bottom_bar_font_style]', array(
[3045] Fix | Delete
'default' => et_get_option( 'footer_bottom_bar_font_style', '' ),
[3046] Fix | Delete
'type' => 'option',
[3047] Fix | Delete
'capability' => 'edit_theme_options',
[3048] Fix | Delete
'transport' => 'postMessage',
[3049] Fix | Delete
'sanitize_callback' => 'et_sanitize_font_style',
[3050] Fix | Delete
) );
[3051] Fix | Delete
[3052] Fix | Delete
$wp_customize->add_control( new ET_Divi_Font_Style_Option ( $wp_customize, 'et_divi[bottom_bar_font_style]', array(
[3053] Fix | Delete
'label' => esc_html__( 'Font Style', 'Divi' ),
[3054] Fix | Delete
'section' => 'et_divi_bottom_bar',
[3055] Fix | Delete
'type' => 'font_style',
[3056] Fix | Delete
'choices' => et_divi_font_style_choices(),
[3057] Fix | Delete
) ) );
[3058] Fix | Delete
[3059] Fix | Delete
$wp_customize->add_setting( 'et_divi[bottom_bar_font_size]', array(
[3060] Fix | Delete
'default' => '14',
[3061] Fix | Delete
'type' => 'option',
[3062] Fix | Delete
'capability' => 'edit_theme_options',
[3063] Fix | Delete
'transport' => 'postMessage',
[3064] Fix | Delete
'sanitize_callback' => 'absint',
[3065] Fix | Delete
) );
[3066] Fix | Delete
[3067] Fix | Delete
$wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[bottom_bar_font_size]', array(
[3068] Fix | Delete
'label' => esc_html__( 'Font Size', 'Divi' ),
[3069] Fix | Delete
'section' => 'et_divi_bottom_bar',
[3070] Fix | Delete
'type' => 'range',
[3071] Fix | Delete
'input_attrs' => array(
[3072] Fix | Delete
'min' => 10,
[3073] Fix | Delete
'max' => 32,
[3074] Fix | Delete
'step' => 1,
[3075] Fix | Delete
),
[3076] Fix | Delete
) ) );
[3077] Fix | Delete
[3078] Fix | Delete
$wp_customize->add_setting( 'et_divi[bottom_bar_social_icon_size]', array(
[3079] Fix | Delete
'default' => '24',
[3080] Fix | Delete
'type' => 'option',
[3081] Fix | Delete
'capability' => 'edit_theme_options',
[3082] Fix | Delete
'transport' => 'postMessage',
[3083] Fix | Delete
'sanitize_callback' => 'absint',
[3084] Fix | Delete
) );
[3085] Fix | Delete
[3086] Fix | Delete
$wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[bottom_bar_social_icon_size]', array(
[3087] Fix | Delete
'label' => esc_html__( 'Social Icon Size', 'Divi' ),
[3088] Fix | Delete
'section' => 'et_divi_bottom_bar',
[3089] Fix | Delete
'type' => 'range',
[3090] Fix | Delete
'input_attrs' => array(
[3091] Fix | Delete
'min' => 10,
[3092] Fix | Delete
'max' => 32,
[3093] Fix | Delete
'step' => 1,
[3094] Fix | Delete
),
[3095] Fix | Delete
) ) );
[3096] Fix | Delete
[3097] Fix | Delete
$wp_customize->add_setting( 'et_divi[bottom_bar_social_icon_color]', array(
[3098] Fix | Delete
'default' => '#666666',
[3099] Fix | Delete
'type' => 'option',
[3100] Fix | Delete
'capability' => 'edit_theme_options',
[3101] Fix | Delete
'transport' => 'postMessage',
[3102] Fix | Delete
'sanitize_callback' => 'et_sanitize_alpha_color',
[3103] Fix | Delete
) );
[3104] Fix | Delete
[3105] Fix | Delete
$wp_customize->add_control( new ET_Divi_Customize_Color_Alpha_Control( $wp_customize, 'et_divi[bottom_bar_social_icon_color]', array(
[3106] Fix | Delete
'label' => esc_html__( 'Social Icon Color', 'Divi' ),
[3107] Fix | Delete
'section' => 'et_divi_bottom_bar',
[3108] Fix | Delete
'settings' => 'et_divi[bottom_bar_social_icon_color]',
[3109] Fix | Delete
) ) );
[3110] Fix | Delete
[3111] Fix | Delete
$wp_customize->add_setting( 'et_divi[disable_custom_footer_credits]', array(
[3112] Fix | Delete
'type' => 'option',
[3113] Fix | Delete
'capability' => 'edit_theme_options',
[3114] Fix | Delete
'transport' => 'postMessage',
[3115] Fix | Delete
'sanitize_callback' => 'wp_validate_boolean',
[3116] Fix | Delete
) );
[3117] Fix | Delete
[3118] Fix | Delete
$wp_customize->add_control( 'et_divi[disable_custom_footer_credits]', array(
[3119] Fix | Delete
'label' => esc_html__( 'Disable Footer Credits', 'Divi' ),
[3120] Fix | Delete
'section' => 'et_divi_bottom_bar',
[3121] Fix | Delete
'type' => 'checkbox',
[3122] Fix | Delete
) );
[3123] Fix | Delete
[3124] Fix | Delete
$wp_customize->add_setting( 'et_divi[custom_footer_credits]', array(
[3125] Fix | Delete
'default' => '',
[3126] Fix | Delete
'type' => 'option',
[3127] Fix | Delete
'capability' => 'edit_theme_options',
[3128] Fix | Delete
'transport' => 'postMessage',
[3129] Fix | Delete
'sanitize_callback' => 'et_sanitize_html_input_text',
[3130] Fix | Delete
) );
[3131] Fix | Delete
[3132] Fix | Delete
$wp_customize->add_control( 'et_divi[custom_footer_credits]', array(
[3133] Fix | Delete
'label' => esc_html__( 'Edit Footer Credits', 'Divi' ),
[3134] Fix | Delete
'section' => 'et_divi_bottom_bar',
[3135] Fix | Delete
'settings' => 'et_divi[custom_footer_credits]',
[3136] Fix | Delete
'type' => 'textarea',
[3137] Fix | Delete
) );
[3138] Fix | Delete
[3139] Fix | Delete
$wp_customize->add_setting( 'et_divi[all_buttons_font_size]', array(
[3140] Fix | Delete
'default' => ET_Global_Settings::get_value( 'all_buttons_font_size', 'default' ),
[3141] Fix | Delete
'type' => 'option',
[3142] Fix | Delete
'capability' => 'edit_theme_options',
[3143] Fix | Delete
'transport' => 'postMessage',
[3144] Fix | Delete
'sanitize_callback' => 'absint',
[3145] Fix | Delete
) );
[3146] Fix | Delete
[3147] Fix | Delete
$wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[all_buttons_font_size]', array(
[3148] Fix | Delete
'label' => esc_html__( 'Text Size', 'Divi' ),
[3149] Fix | Delete
'section' => 'et_divi_buttons',
[3150] Fix | Delete
'type' => 'range',
[3151] Fix | Delete
'input_attrs' => array(
[3152] Fix | Delete
'min' => 12,
[3153] Fix | Delete
'max' => 30,
[3154] Fix | Delete
'step' => 1
[3155] Fix | Delete
),
[3156] Fix | Delete
) ) );
[3157] Fix | Delete
[3158] Fix | Delete
$wp_customize->add_setting( 'et_divi[all_buttons_text_color]', array(
[3159] Fix | Delete
'default' => '',
[3160] Fix | Delete
'type' => 'option',
[3161] Fix | Delete
'capability' => 'edit_theme_options',
[3162] Fix | Delete
'transport' => 'postMessage',
[3163] Fix | Delete
'sanitize_callback' => 'et_sanitize_alpha_color',
[3164] Fix | Delete
) );
[3165] Fix | Delete
[3166] Fix | Delete
$wp_customize->add_control( new ET_Divi_Customize_Color_Alpha_Control( $wp_customize, 'et_divi[all_buttons_text_color]', array(
[3167] Fix | Delete
'label' => esc_html__( 'Text Color', 'Divi' ),
[3168] Fix | Delete
'section' => 'et_divi_buttons',
[3169] Fix | Delete
'settings' => 'et_divi[all_buttons_text_color]',
[3170] Fix | Delete
) ) );
[3171] Fix | Delete
[3172] Fix | Delete
$wp_customize->add_setting( 'et_divi[all_buttons_bg_color]', array(
[3173] Fix | Delete
'default' => 'rgba(0,0,0,0)',
[3174] Fix | Delete
'type' => 'option',
[3175] Fix | Delete
'capability' => 'edit_theme_options',
[3176] Fix | Delete
'transport' => 'postMessage',
[3177] Fix | Delete
'sanitize_callback' => 'et_sanitize_alpha_color',
[3178] Fix | Delete
) );
[3179] Fix | Delete
[3180] Fix | Delete
$wp_customize->add_control( new ET_Divi_Customize_Color_Alpha_Control( $wp_customize, 'et_divi[all_buttons_bg_color]', array(
[3181] Fix | Delete
'label' => esc_html__( 'Background Color', 'Divi' ),
[3182] Fix | Delete
'section' => 'et_divi_buttons',
[3183] Fix | Delete
'settings' => 'et_divi[all_buttons_bg_color]',
[3184] Fix | Delete
) ) );
[3185] Fix | Delete
[3186] Fix | Delete
$wp_customize->add_setting( 'et_divi[all_buttons_border_width]', array(
[3187] Fix | Delete
'default' => ET_Global_Settings::get_value( 'all_buttons_border_width', 'default' ),
[3188] Fix | Delete
'type' => 'option',
[3189] Fix | Delete
'capability' => 'edit_theme_options',
[3190] Fix | Delete
'transport' => 'postMessage',
[3191] Fix | Delete
'sanitize_callback' => 'absint',
[3192] Fix | Delete
) );
[3193] Fix | Delete
[3194] Fix | Delete
$wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[all_buttons_border_width]', array(
[3195] Fix | Delete
'label' => esc_html__( 'Border Width', 'Divi' ),
[3196] Fix | Delete
'section' => 'et_divi_buttons',
[3197] Fix | Delete
'type' => 'range',
[3198] Fix | Delete
'input_attrs' => array(
[3199] Fix | Delete
'min' => 0,
[3200] Fix | Delete
'max' => 10,
[3201] Fix | Delete
'step' => 1
[3202] Fix | Delete
),
[3203] Fix | Delete
) ) );
[3204] Fix | Delete
[3205] Fix | Delete
$wp_customize->add_setting( 'et_divi[all_buttons_border_color]', array(
[3206] Fix | Delete
'default' => '#ffffff',
[3207] Fix | Delete
'type' => 'option',
[3208] Fix | Delete
'capability' => 'edit_theme_options',
[3209] Fix | Delete
'transport' => 'postMessage',
[3210] Fix | Delete
'sanitize_callback' => 'et_sanitize_alpha_color',
[3211] Fix | Delete
) );
[3212] Fix | Delete
[3213] Fix | Delete
$wp_customize->add_control( new ET_Divi_Customize_Color_Alpha_Control( $wp_customize, 'et_divi[all_buttons_border_color]', array(
[3214] Fix | Delete
'label' => esc_html__( 'Border Color', 'Divi' ),
[3215] Fix | Delete
'section' => 'et_divi_buttons',
[3216] Fix | Delete
'settings' => 'et_divi[all_buttons_border_color]',
[3217] Fix | Delete
) ) );
[3218] Fix | Delete
[3219] Fix | Delete
$wp_customize->add_setting( 'et_divi[all_buttons_border_radius]', array(
[3220] Fix | Delete
'default' => ET_Global_Settings::get_value( 'all_buttons_border_radius', 'default' ),
[3221] Fix | Delete
'type' => 'option',
[3222] Fix | Delete
'capability' => 'edit_theme_options',
[3223] Fix | Delete
'transport' => 'postMessage',
[3224] Fix | Delete
'sanitize_callback' => 'absint',
[3225] Fix | Delete
) );
[3226] Fix | Delete
[3227] Fix | Delete
$wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[all_buttons_border_radius]', array(
[3228] Fix | Delete
'label' => esc_html__( 'Border Radius', 'Divi' ),
[3229] Fix | Delete
'section' => 'et_divi_buttons',
[3230] Fix | Delete
'type' => 'range',
[3231] Fix | Delete
'input_attrs' => array(
[3232] Fix | Delete
'min' => 0,
[3233] Fix | Delete
'max' => 50,
[3234] Fix | Delete
'step' => 1
[3235] Fix | Delete
),
[3236] Fix | Delete
) ) );
[3237] Fix | Delete
[3238] Fix | Delete
$wp_customize->add_setting( 'et_divi[all_buttons_spacing]', array(
[3239] Fix | Delete
'default' => ET_Global_Settings::get_value( 'all_buttons_spacing', 'default' ),
[3240] Fix | Delete
'type' => 'option',
[3241] Fix | Delete
'capability' => 'edit_theme_options',
[3242] Fix | Delete
'transport' => 'postMessage',
[3243] Fix | Delete
'sanitize_callback' => 'et_sanitize_int_number',
[3244] Fix | Delete
) );
[3245] Fix | Delete
[3246] Fix | Delete
$wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[all_buttons_spacing]', array(
[3247] Fix | Delete
'label' => esc_html__( 'Letter Spacing', 'Divi' ),
[3248] Fix | Delete
'section' => 'et_divi_buttons',
[3249] Fix | Delete
'type' => 'range',
[3250] Fix | Delete
'input_attrs' => array(
[3251] Fix | Delete
'min' => -2,
[3252] Fix | Delete
'max' => 10,
[3253] Fix | Delete
'step' => 1
[3254] Fix | Delete
),
[3255] Fix | Delete
) ) );
[3256] Fix | Delete
[3257] Fix | Delete
$wp_customize->add_setting( 'et_divi[all_buttons_font_style]', array(
[3258] Fix | Delete
'default' => '',
[3259] Fix | Delete
'type' => 'option',
[3260] Fix | Delete
'capability' => 'edit_theme_options',
[3261] Fix | Delete
'transport' => 'postMessage',
[3262] Fix | Delete
'sanitize_callback' => 'et_sanitize_font_style',
[3263] Fix | Delete
) );
[3264] Fix | Delete
[3265] Fix | Delete
$wp_customize->add_control( new ET_Divi_Font_Style_Option ( $wp_customize, 'et_divi[all_buttons_font_style]', array(
[3266] Fix | Delete
'label' => esc_html__( 'Button Font Style', 'Divi' ),
[3267] Fix | Delete
'section' => 'et_divi_buttons',
[3268] Fix | Delete
'type' => 'font_style',
[3269] Fix | Delete
'choices' => et_divi_font_style_choices(),
[3270] Fix | Delete
) ) );
[3271] Fix | Delete
[3272] Fix | Delete
if ( ! isset( $et_one_font_languages[$site_domain] ) ) {
[3273] Fix | Delete
$wp_customize->add_setting( 'et_divi[all_buttons_font]', array(
[3274] Fix | Delete
'default' => 'none',
[3275] Fix | Delete
'type' => 'option',
[3276] Fix | Delete
'capability' => 'edit_theme_options',
[3277] Fix | Delete
'transport' => 'postMessage',
[3278] Fix | Delete
'sanitize_callback' => 'et_sanitize_font_choices',
[3279] Fix | Delete
) );
[3280] Fix | Delete
[3281] Fix | Delete
$wp_customize->add_control( new ET_Divi_Select_Option ( $wp_customize, 'et_divi[all_buttons_font]', array(
[3282] Fix | Delete
'label' => esc_html__( 'Buttons Font', 'Divi' ),
[3283] Fix | Delete
'section' => 'et_divi_buttons',
[3284] Fix | Delete
'settings' => 'et_divi[all_buttons_font]',
[3285] Fix | Delete
'type' => 'select',
[3286] Fix | Delete
'choices' => $font_choices
[3287] Fix | Delete
) ) );
[3288] Fix | Delete
}
[3289] Fix | Delete
[3290] Fix | Delete
$wp_customize->add_setting( 'et_divi[all_buttons_icon]', array(
[3291] Fix | Delete
'default' => 'yes',
[3292] Fix | Delete
'type' => 'option',
[3293] Fix | Delete
'capability' => 'edit_theme_options',
[3294] Fix | Delete
'sanitize_callback' => 'et_sanitize_yes_no',
[3295] Fix | Delete
) );
[3296] Fix | Delete
[3297] Fix | Delete
$wp_customize->add_control( 'et_divi[all_buttons_icon]', array(
[3298] Fix | Delete
'label' => esc_html__( 'Add Button Icon', 'Divi' ),
[3299] Fix | Delete
'section' => 'et_divi_buttons',
[3300] Fix | Delete
'type' => 'select',
[3301] Fix | Delete
'choices' => et_divi_yes_no_choices(),
[3302] Fix | Delete
) );
[3303] Fix | Delete
[3304] Fix | Delete
$wp_customize->add_setting( 'et_divi[all_buttons_selected_icon]', array(
[3305] Fix | Delete
'default' => '5',
[3306] Fix | Delete
'type' => 'option',
[3307] Fix | Delete
'capability' => 'edit_theme_options',
[3308] Fix | Delete
'transport' => 'postMessage',
[3309] Fix | Delete
'sanitize_callback' => 'et_sanitize_font_icon',
[3310] Fix | Delete
) );
[3311] Fix | Delete
[3312] Fix | Delete
$wp_customize->add_control( new ET_Divi_Icon_Picker_Option ( $wp_customize, 'et_divi[all_buttons_selected_icon]', array(
[3313] Fix | Delete
'label' => esc_html__( 'Select Icon', 'Divi' ),
[3314] Fix | Delete
'section' => 'et_divi_buttons',
[3315] Fix | Delete
'type' => 'icon_picker',
[3316] Fix | Delete
) ) );
[3317] Fix | Delete
[3318] Fix | Delete
$wp_customize->add_setting( 'et_divi[all_buttons_icon_color]', array(
[3319] Fix | Delete
'default' => '#ffffff',
[3320] Fix | Delete
'type' => 'option',
[3321] Fix | Delete
'capability' => 'edit_theme_options',
[3322] Fix | Delete
'transport' => 'postMessage',
[3323] Fix | Delete
'sanitize_callback' => 'et_sanitize_alpha_color',
[3324] Fix | Delete
) );
[3325] Fix | Delete
[3326] Fix | Delete
$wp_customize->add_control( new ET_Divi_Customize_Color_Alpha_Control( $wp_customize, 'et_divi[all_buttons_icon_color]', array(
[3327] Fix | Delete
'label' => esc_html__( 'Icon Color', 'Divi' ),
[3328] Fix | Delete
'section' => 'et_divi_buttons',
[3329] Fix | Delete
'settings' => 'et_divi[all_buttons_icon_color]',
[3330] Fix | Delete
) ) );
[3331] Fix | Delete
[3332] Fix | Delete
$wp_customize->add_setting( 'et_divi[all_buttons_icon_placement]', array(
[3333] Fix | Delete
'default' => 'right',
[3334] Fix | Delete
'type' => 'option',
[3335] Fix | Delete
'capability' => 'edit_theme_options',
[3336] Fix | Delete
'transport' => 'postMessage',
[3337] Fix | Delete
'sanitize_callback' => 'et_sanitize_left_right',
[3338] Fix | Delete
) );
[3339] Fix | Delete
[3340] Fix | Delete
$wp_customize->add_control( 'et_divi[all_buttons_icon_placement]', array(
[3341] Fix | Delete
'label' => esc_html__( 'Icon Placement', 'Divi' ),
[3342] Fix | Delete
'section' => 'et_divi_buttons',
[3343] Fix | Delete
'type' => 'select',
[3344] Fix | Delete
'choices' => et_divi_left_right_choices(),
[3345] Fix | Delete
) );
[3346] Fix | Delete
[3347] Fix | Delete
$wp_customize->add_setting( 'et_divi[all_buttons_icon_hover]', array(
[3348] Fix | Delete
'default' => 'yes',
[3349] Fix | Delete
'type' => 'option',
[3350] Fix | Delete
'capability' => 'edit_theme_options',
[3351] Fix | Delete
'transport' => 'postMessage',
[3352] Fix | Delete
'sanitize_callback' => 'et_sanitize_yes_no',
[3353] Fix | Delete
) );
[3354] Fix | Delete
[3355] Fix | Delete
$wp_customize->add_control( 'et_divi[all_buttons_icon_hover]', array(
[3356] Fix | Delete
'label' => esc_html__( 'Only Show Icon on Hover', 'Divi' ),
[3357] Fix | Delete
'section' => 'et_divi_buttons',
[3358] Fix | Delete
'type' => 'select',
[3359] Fix | Delete
'choices' => et_divi_yes_no_choices(),
[3360] Fix | Delete
) );
[3361] Fix | Delete
[3362] Fix | Delete
$wp_customize->add_setting( 'et_divi[all_buttons_text_color_hover]', array(
[3363] Fix | Delete
'default' => '',
[3364] Fix | Delete
'type' => 'option',
[3365] Fix | Delete
'capability' => 'edit_theme_options',
[3366] Fix | Delete
'transport' => 'postMessage',
[3367] Fix | Delete
'sanitize_callback' => 'et_sanitize_alpha_color',
[3368] Fix | Delete
) );
[3369] Fix | Delete
[3370] Fix | Delete
$wp_customize->add_control( new ET_Divi_Customize_Color_Alpha_Control( $wp_customize, 'et_divi[all_buttons_text_color_hover]', array(
[3371] Fix | Delete
'label' => esc_html__( 'Text Color', 'Divi' ),
[3372] Fix | Delete
'section' => 'et_divi_buttons_hover',
[3373] Fix | Delete
'settings' => 'et_divi[all_buttons_text_color_hover]',
[3374] Fix | Delete
) ) );
[3375] Fix | Delete
[3376] Fix | Delete
$wp_customize->add_setting( 'et_divi[all_buttons_bg_color_hover]', array(
[3377] Fix | Delete
'default' => 'rgba(255,255,255,0.2)',
[3378] Fix | Delete
'type' => 'option',
[3379] Fix | Delete
'capability' => 'edit_theme_options',
[3380] Fix | Delete
'transport' => 'postMessage',
[3381] Fix | Delete
'sanitize_callback' => 'et_sanitize_alpha_color',
[3382] Fix | Delete
) );
[3383] Fix | Delete
[3384] Fix | Delete
$wp_customize->add_control( new ET_Divi_Customize_Color_Alpha_Control( $wp_customize, 'et_divi[all_buttons_bg_color_hover]', array(
[3385] Fix | Delete
'label' => esc_html__( 'Background Color', 'Divi' ),
[3386] Fix | Delete
'section' => 'et_divi_buttons_hover',
[3387] Fix | Delete
'settings' => 'et_divi[all_buttons_bg_color_hover]',
[3388] Fix | Delete
) ) );
[3389] Fix | Delete
[3390] Fix | Delete
$wp_customize->add_setting( 'et_divi[all_buttons_border_color_hover]', array(
[3391] Fix | Delete
'default' => 'rgba(0,0,0,0)',
[3392] Fix | Delete
'type' => 'option',
[3393] Fix | Delete
'capability' => 'edit_theme_options',
[3394] Fix | Delete
'transport' => 'postMessage',
[3395] Fix | Delete
'sanitize_callback' => 'et_sanitize_alpha_color',
[3396] Fix | Delete
) );
[3397] Fix | Delete
[3398] Fix | Delete
$wp_customize->add_control( new ET_Divi_Customize_Color_Alpha_Control( $wp_customize, 'et_divi[all_buttons_border_color_hover]', array(
[3399] Fix | Delete
'label' => esc_html__( 'Border Color', 'Divi' ),
[3400] Fix | Delete
'section' => 'et_divi_buttons_hover',
[3401] Fix | Delete
'settings' => 'et_divi[all_buttons_border_color_hover]',
[3402] Fix | Delete
) ) );
[3403] Fix | Delete
[3404] Fix | Delete
$wp_customize->add_setting( 'et_divi[all_buttons_border_radius_hover]', array(
[3405] Fix | Delete
'default' => ET_Global_Settings::get_value( 'all_buttons_border_radius_hover', 'default' ),
[3406] Fix | Delete
'type' => 'option',
[3407] Fix | Delete
'capability' => 'edit_theme_options',
[3408] Fix | Delete
'transport' => 'postMessage',
[3409] Fix | Delete
'sanitize_callback' => 'absint'
[3410] Fix | Delete
) );
[3411] Fix | Delete
[3412] Fix | Delete
$wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[all_buttons_border_radius_hover]', array(
[3413] Fix | Delete
'label' => esc_html__( 'Border Radius', 'Divi' ),
[3414] Fix | Delete
'section' => 'et_divi_buttons_hover',
[3415] Fix | Delete
'type' => 'range',
[3416] Fix | Delete
'input_attrs' => array(
[3417] Fix | Delete
'min' => 0,
[3418] Fix | Delete
'max' => 50,
[3419] Fix | Delete
'step' => 1
[3420] Fix | Delete
),
[3421] Fix | Delete
) ) );
[3422] Fix | Delete
[3423] Fix | Delete
$wp_customize->add_setting( 'et_divi[all_buttons_spacing_hover]', array(
[3424] Fix | Delete
'default' => ET_Global_Settings::get_value( 'all_buttons_spacing_hover', 'default' ),
[3425] Fix | Delete
'type' => 'option',
[3426] Fix | Delete
'capability' => 'edit_theme_options',
[3427] Fix | Delete
'transport' => 'postMessage',
[3428] Fix | Delete
'sanitize_callback' => 'et_sanitize_int_number',
[3429] Fix | Delete
) );
[3430] Fix | Delete
[3431] Fix | Delete
$wp_customize->add_control( new ET_Divi_Range_Option ( $wp_customize, 'et_divi[all_buttons_spacing_hover]', array(
[3432] Fix | Delete
'label' => esc_html__( 'Letter Spacing', 'Divi' ),
[3433] Fix | Delete
'section' => 'et_divi_buttons_hover',
[3434] Fix | Delete
'type' => 'range',
[3435] Fix | Delete
'input_attrs' => array(
[3436] Fix | Delete
'min' => -2,
[3437] Fix | Delete
'max' => 10,
[3438] Fix | Delete
'step' => 1
[3439] Fix | Delete
),
[3440] Fix | Delete
) ) );
[3441] Fix | Delete
}
[3442] Fix | Delete
endif;
[3443] Fix | Delete
[3444] Fix | Delete
/**
[3445] Fix | Delete
* Add action hook to the footer in customizer preview.
[3446] Fix | Delete
*/
[3447] Fix | Delete
function et_customizer_preview_footer_action() {
[3448] Fix | Delete
if ( is_customize_preview() ) {
[3449] Fix | Delete
do_action( 'et_customizer_footer_preview' );
[3450] Fix | Delete
}
[3451] Fix | Delete
}
[3452] Fix | Delete
add_action( 'wp_footer', 'et_customizer_preview_footer_action' );
[3453] Fix | Delete
[3454] Fix | Delete
/**
[3455] Fix | Delete
* Add container with social icons to the footer in customizer preview.
[3456] Fix | Delete
* Used to get the icons and append them into the header when user enables the header social icons in customizer.
[3457] Fix | Delete
*/
[3458] Fix | Delete
function et_load_social_icons() {
[3459] Fix | Delete
$post_id = is_singular() ? get_the_ID() : 0;
[3460] Fix | Delete
$is_custom_post_type = et_builder_post_is_of_custom_post_type( $post_id );
[3461] Fix | Delete
[3462] Fix | Delete
echo '<div class="et_customizer_social_icons" style="display:none;">';
[3463] Fix | Delete
get_template_part( 'includes/social_icons', 'header' );
[3464] Fix | Delete
echo '</div>';
[3465] Fix | Delete
?>
[3466] Fix | Delete
<script type="text/javascript">
[3467] Fix | Delete
( function( $ ) {
[3468] Fix | Delete
var isCustomPostType = <?php echo json_encode( $is_custom_post_type ); ?>;
[3469] Fix | Delete
[3470] Fix | Delete
$(document).ready(function() {
[3471] Fix | Delete
$(document).trigger('et-customizer-preview-load', {
[3472] Fix | Delete
isCustomPostType: isCustomPostType,
[3473] Fix | Delete
selectorWrapper: <?php echo json_encode( ET_BUILDER_CSS_PREFIX ); ?>
[3474] Fix | Delete
});
[3475] Fix | Delete
});
[3476] Fix | Delete
}( jQuery ) );
[3477] Fix | Delete
</script>
[3478] Fix | Delete
<?php
[3479] Fix | Delete
}
[3480] Fix | Delete
add_action( 'et_customizer_footer_preview', 'et_load_social_icons' );
[3481] Fix | Delete
[3482] Fix | Delete
function et_divi_customize_preview_js() {
[3483] Fix | Delete
$theme_version = et_get_theme_version();
[3484] Fix | Delete
wp_enqueue_script( 'divi-customizer', get_template_directory_uri() . '/js/theme-customizer.js', array( 'customize-preview' ), $theme_version, true );
[3485] Fix | Delete
wp_localize_script( 'divi-customizer', 'et_main_customizer_data', array(
[3486] Fix | Delete
'original_footer_credits' => et_get_original_footer_credits(),
[3487] Fix | Delete
) );
[3488] Fix | Delete
}
[3489] Fix | Delete
add_action( 'customize_preview_init', 'et_divi_customize_preview_js' );
[3490] Fix | Delete
[3491] Fix | Delete
function et_divi_customize_preview_js_context() {
[3492] Fix | Delete
// Run in the wp_enqueue_scripts hook as it fires late enough that the main WP query has been resolved.
[3493] Fix | Delete
$layouts = et_theme_builder_get_template_layouts();
[3494] Fix | Delete
[3495] Fix | Delete
wp_localize_script( 'divi-customizer', 'et_theme_builder_customizer_data', array(
[3496] Fix | Delete
'hasHeaderLayout' => ! empty( $layouts ) && $layouts[ ET_THEME_BUILDER_HEADER_LAYOUT_POST_TYPE ]['override'],
[3497] Fix | Delete
'hasFooterLayout' => ! empty( $layouts ) && $layouts[ ET_THEME_BUILDER_FOOTER_LAYOUT_POST_TYPE ]['override'],
[3498] Fix | Delete
) );
[3499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function