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
}
[3500] Fix | Delete
add_action( 'wp_enqueue_scripts', 'et_divi_customize_preview_js_context' );
[3501] Fix | Delete
[3502] Fix | Delete
function et_divi_customize_preview_css() {
[3503] Fix | Delete
$theme_version = et_get_theme_version();
[3504] Fix | Delete
[3505] Fix | Delete
wp_enqueue_style( 'divi-customizer-controls-styles', get_template_directory_uri() . '/css/theme-customizer-controls-styles.css', array(), $theme_version );
[3506] Fix | Delete
wp_enqueue_script( 'divi-customizer-controls-js', get_template_directory_uri() . '/js/theme-customizer-controls.js', array( 'jquery' ), $theme_version, true );
[3507] Fix | Delete
wp_localize_script( 'divi-customizer-controls-js', 'et_divi_customizer_data', array(
[3508] Fix | Delete
'is_old_wp' => et_pb_is_wp_old_version() ? 'old' : 'new',
[3509] Fix | Delete
'color_palette' => implode( '|', et_pb_get_default_color_palette() ),
[3510] Fix | Delete
) );
[3511] Fix | Delete
}
[3512] Fix | Delete
add_action( 'customize_controls_enqueue_scripts', 'et_divi_customize_preview_css' );
[3513] Fix | Delete
[3514] Fix | Delete
/**
[3515] Fix | Delete
* Modifying builder options based on saved Divi values
[3516] Fix | Delete
* @param array current builder options values
[3517] Fix | Delete
* @return array modified builder options values
[3518] Fix | Delete
*/
[3519] Fix | Delete
function et_divi_builder_options( $options ) {
[3520] Fix | Delete
$options['all_buttons_icon'] = et_get_option( 'all_buttons_icon', 'yes' );
[3521] Fix | Delete
[3522] Fix | Delete
return $options;
[3523] Fix | Delete
}
[3524] Fix | Delete
add_filter( 'et_builder_options', 'et_divi_builder_options' );
[3525] Fix | Delete
[3526] Fix | Delete
/**
[3527] Fix | Delete
* Add custom customizer control
[3528] Fix | Delete
* Check for WP_Customizer_Control existence before adding custom control because WP_Customize_Control is loaded on customizer page only
[3529] Fix | Delete
*
[3530] Fix | Delete
* @see _wp_customize_include()
[3531] Fix | Delete
*/
[3532] Fix | Delete
if ( class_exists( 'WP_Customize_Control' ) ) {
[3533] Fix | Delete
[3534] Fix | Delete
/**
[3535] Fix | Delete
* Font style control for Customizer
[3536] Fix | Delete
*/
[3537] Fix | Delete
class ET_Divi_Font_Style_Option extends WP_Customize_Control {
[3538] Fix | Delete
public $type = 'font_style';
[3539] Fix | Delete
public function render_content() {
[3540] Fix | Delete
?>
[3541] Fix | Delete
<label>
[3542] Fix | Delete
<?php if ( ! empty( $this->label ) ) : ?>
[3543] Fix | Delete
<span class="customize-control-title"><?php echo esc_html( $this->label ); ?></span>
[3544] Fix | Delete
<?php endif;
[3545] Fix | Delete
if ( ! empty( $this->description ) ) : ?>
[3546] Fix | Delete
<span class="description customize-control-description"><?php echo esc_html( $this->description ); ?></span>
[3547] Fix | Delete
<?php endif; ?>
[3548] Fix | Delete
</label>
[3549] Fix | Delete
<?php $current_values = explode('|', $this->value() );
[3550] Fix | Delete
if ( empty( $this->choices ) )
[3551] Fix | Delete
return;
[3552] Fix | Delete
foreach ( $this->choices as $value => $label ) :
[3553] Fix | Delete
$checked_class = in_array( $value, $current_values ) ? ' et_font_style_checked' : '';
[3554] Fix | Delete
?>
[3555] Fix | Delete
<span class="et_font_style et_font_value_<?php echo esc_attr( $value ); echo $checked_class; ?>">
[3556] Fix | Delete
<input type="checkbox" class="et_font_style_checkbox" value="<?php echo esc_attr( $value ); ?>" <?php checked( in_array( $value, $current_values ) ); ?> />
[3557] Fix | Delete
</span>
[3558] Fix | Delete
<?php
[3559] Fix | Delete
endforeach;
[3560] Fix | Delete
?>
[3561] Fix | Delete
<input type="hidden" class="et_font_styles" <?php $this->input_attrs(); ?> value="<?php echo esc_attr( $this->value() ); ?>" <?php $this->link(); ?> />
[3562] Fix | Delete
<?php
[3563] Fix | Delete
}
[3564] Fix | Delete
}
[3565] Fix | Delete
[3566] Fix | Delete
/**
[3567] Fix | Delete
* Icon picker control for Customizer
[3568] Fix | Delete
*/
[3569] Fix | Delete
class ET_Divi_Icon_Picker_Option extends WP_Customize_Control {
[3570] Fix | Delete
public $type = 'icon_picker';
[3571] Fix | Delete
[3572] Fix | Delete
public function render_content() {
[3573] Fix | Delete
[3574] Fix | Delete
?>
[3575] Fix | Delete
<label>
[3576] Fix | Delete
<?php if ( ! empty( $this->label ) ) : ?>
[3577] Fix | Delete
<span class="customize-control-title"><?php echo esc_html( $this->label ); ?></span>
[3578] Fix | Delete
<?php endif;
[3579] Fix | Delete
et_pb_font_icon_list(); ?>
[3580] Fix | Delete
<input type="hidden" class="et_selected_icon" <?php $this->input_attrs(); ?> value="<?php echo esc_attr( $this->value() ); ?>" <?php $this->link(); ?> />
[3581] Fix | Delete
</label>
[3582] Fix | Delete
<?php
[3583] Fix | Delete
}
[3584] Fix | Delete
}
[3585] Fix | Delete
[3586] Fix | Delete
/**
[3587] Fix | Delete
* Range-based sliding value picker for Customizer
[3588] Fix | Delete
*/
[3589] Fix | Delete
class ET_Divi_Range_Option extends WP_Customize_Control {
[3590] Fix | Delete
public $type = 'range';
[3591] Fix | Delete
[3592] Fix | Delete
public function render_content() {
[3593] Fix | Delete
?>
[3594] Fix | Delete
<label>
[3595] Fix | Delete
<?php if ( ! empty( $this->label ) ) : ?>
[3596] Fix | Delete
<span class="customize-control-title"><?php echo esc_html( $this->label ); ?></span>
[3597] Fix | Delete
<?php endif;
[3598] Fix | Delete
if ( ! empty( $this->description ) ) : ?>
[3599] Fix | Delete
<span class="description customize-control-description"><?php echo esc_html( $this->description ); ?></span>
[3600] Fix | Delete
<?php endif; ?>
[3601] Fix | Delete
<input type="<?php echo esc_attr( $this->type ); ?>" <?php $this->input_attrs(); ?> value="<?php echo esc_attr( $this->value() ); ?>" <?php $this->link(); ?> data-reset_value="<?php echo esc_attr( $this->setting->default ); ?>" />
[3602] Fix | Delete
<input type="number" <?php $this->input_attrs(); ?> class="et-pb-range-input" value="<?php echo esc_attr( $this->value() ); ?>" />
[3603] Fix | Delete
<span class="et_divi_reset_slider"></span>
[3604] Fix | Delete
</label>
[3605] Fix | Delete
<?php
[3606] Fix | Delete
}
[3607] Fix | Delete
}
[3608] Fix | Delete
[3609] Fix | Delete
/**
[3610] Fix | Delete
* Custom Select option which supports data attributes for the <option> tags
[3611] Fix | Delete
*/
[3612] Fix | Delete
class ET_Divi_Select_Option extends WP_Customize_Control {
[3613] Fix | Delete
public $type = 'select';
[3614] Fix | Delete
[3615] Fix | Delete
public function render_content() {
[3616] Fix | Delete
?>
[3617] Fix | Delete
<label>
[3618] Fix | Delete
<?php if ( ! empty( $this->label ) ) : ?>
[3619] Fix | Delete
<span class="customize-control-title"><?php echo esc_html( $this->label ); ?></span>
[3620] Fix | Delete
<?php endif;
[3621] Fix | Delete
if ( ! empty( $this->description ) ) : ?>
[3622] Fix | Delete
<span class="description customize-control-description"><?php echo esc_html( $this->description ); ?></span>
[3623] Fix | Delete
<?php endif; ?>
[3624] Fix | Delete
[3625] Fix | Delete
<select <?php $this->link(); ?>>
[3626] Fix | Delete
<?php
[3627] Fix | Delete
foreach ( $this->choices as $value => $attributes ) {
[3628] Fix | Delete
$data_output = '';
[3629] Fix | Delete
[3630] Fix | Delete
if ( ! empty( $attributes['data'] ) ) {
[3631] Fix | Delete
foreach( $attributes['data'] as $data_name => $data_value ) {
[3632] Fix | Delete
if ( '' !== $data_value ) {
[3633] Fix | Delete
$data_output .= sprintf( ' data-%1$s="%2$s"',
[3634] Fix | Delete
esc_attr( $data_name ),
[3635] Fix | Delete
esc_attr( $data_value )
[3636] Fix | Delete
);
[3637] Fix | Delete
}
[3638] Fix | Delete
}
[3639] Fix | Delete
}
[3640] Fix | Delete
[3641] Fix | Delete
echo '<option value="' . esc_attr( $value ) . '"' . selected( $this->value(), $value, false ) . $data_output . '>' . esc_html( $attributes['label'] ) . '</option>';
[3642] Fix | Delete
}
[3643] Fix | Delete
?>
[3644] Fix | Delete
</select>
[3645] Fix | Delete
</label>
[3646] Fix | Delete
<?php
[3647] Fix | Delete
}
[3648] Fix | Delete
}
[3649] Fix | Delete
[3650] Fix | Delete
/**
[3651] Fix | Delete
* Color picker with alpha color support for Customizer
[3652] Fix | Delete
*/
[3653] Fix | Delete
class ET_Divi_Customize_Color_Alpha_Control extends WP_Customize_Control {
[3654] Fix | Delete
public $type = 'et_coloralpha';
[3655] Fix | Delete
[3656] Fix | Delete
public $statuses;
[3657] Fix | Delete
[3658] Fix | Delete
public function __construct( $manager, $id, $args = array() ) {
[3659] Fix | Delete
$this->statuses = array( '' => esc_html__( 'Default', 'Divi' ) );
[3660] Fix | Delete
parent::__construct( $manager, $id, $args );
[3661] Fix | Delete
[3662] Fix | Delete
// Printed saved value should always be in lowercase
[3663] Fix | Delete
add_filter( "customize_sanitize_js_{$id}", array( $this, 'sanitize_saved_value' ) );
[3664] Fix | Delete
}
[3665] Fix | Delete
[3666] Fix | Delete
public function enqueue() {
[3667] Fix | Delete
wp_enqueue_script( 'wp-color-picker-alpha' );
[3668] Fix | Delete
wp_enqueue_style( 'wp-color-picker' );
[3669] Fix | Delete
}
[3670] Fix | Delete
[3671] Fix | Delete
public function to_json() {
[3672] Fix | Delete
parent::to_json();
[3673] Fix | Delete
$this->json['statuses'] = $this->statuses;
[3674] Fix | Delete
$this->json['defaultValue'] = $this->setting->default;
[3675] Fix | Delete
}
[3676] Fix | Delete
[3677] Fix | Delete
public function render_content() {}
[3678] Fix | Delete
[3679] Fix | Delete
public function content_template() {
[3680] Fix | Delete
?>
[3681] Fix | Delete
<# var defaultValue = '';
[3682] Fix | Delete
if ( data.defaultValue ) {
[3683] Fix | Delete
if ( '#' !== data.defaultValue.substring( 0, 1 ) && 'rgba' !== data.defaultValue.substring( 0, 4 ) ) {
[3684] Fix | Delete
defaultValue = '#' + data.defaultValue;
[3685] Fix | Delete
} else {
[3686] Fix | Delete
defaultValue = data.defaultValue;
[3687] Fix | Delete
}
[3688] Fix | Delete
defaultValue = ' data-default-color=' + defaultValue; // Quotes added automatically.
[3689] Fix | Delete
} #>
[3690] Fix | Delete
<label>
[3691] Fix | Delete
<# if ( data.label ) { #>
[3692] Fix | Delete
<span class="customize-control-title">{{{ data.label }}}</span>
[3693] Fix | Delete
<# } #>
[3694] Fix | Delete
<# if ( data.description ) { #>
[3695] Fix | Delete
<span class="description customize-control-description">{{{ data.description }}}</span>
[3696] Fix | Delete
<# } #>
[3697] Fix | Delete
<div class="customize-control-content">
[3698] Fix | Delete
<input class="color-picker-hex" data-alpha="true" type="text" maxlength="30" placeholder="<?php esc_attr_e( 'Hex Value', 'Divi' ); ?>" {{ defaultValue }} />
[3699] Fix | Delete
</div>
[3700] Fix | Delete
</label>
[3701] Fix | Delete
<?php
[3702] Fix | Delete
}
[3703] Fix | Delete
[3704] Fix | Delete
/**
[3705] Fix | Delete
* Ensure saved value to be printed in lowercase.
[3706] Fix | Delete
* Mismatched case causes broken 4.7 in Customizer. Color Alpha control only saves string.
[3707] Fix | Delete
* @param string saved value
[3708] Fix | Delete
* @return string formatted value
[3709] Fix | Delete
*/
[3710] Fix | Delete
public function sanitize_saved_value( $value ) {
[3711] Fix | Delete
return strtolower( $value );
[3712] Fix | Delete
}
[3713] Fix | Delete
}
[3714] Fix | Delete
[3715] Fix | Delete
}
[3716] Fix | Delete
[3717] Fix | Delete
function et_divi_add_customizer_css() {
[3718] Fix | Delete
if ( wp_doing_ajax() || wp_doing_cron() || ( is_admin() && ! is_customize_preview() ) ) {
[3719] Fix | Delete
return;
[3720] Fix | Delete
}
[3721] Fix | Delete
[3722] Fix | Delete
/** @see ET_Core_SupportCenter::toggle_safe_mode */
[3723] Fix | Delete
if ( et_core_is_safe_mode_active() ) {
[3724] Fix | Delete
return;
[3725] Fix | Delete
}
[3726] Fix | Delete
[3727] Fix | Delete
$post_id = et_core_page_resource_get_the_ID();
[3728] Fix | Delete
$is_preview = is_preview() || isset( $_GET['et_pb_preview_nonce'] ) || is_customize_preview();
[3729] Fix | Delete
$is_singular = et_core_page_resource_is_singular();
[3730] Fix | Delete
$is_cpt = et_builder_is_custom_post_type_archive() || ( et_builder_post_is_of_custom_post_type( $post_id ) && et_pb_is_pagebuilder_used( $post_id ) );
[3731] Fix | Delete
[3732] Fix | Delete
$disabled_global = 'off' === et_get_option( 'et_pb_static_css_file', 'on' );
[3733] Fix | Delete
$disabled_post = $disabled_global || ( $is_singular && 'off' === get_post_meta( $post_id, '_et_pb_static_css_file', true ) );
[3734] Fix | Delete
[3735] Fix | Delete
$forced_inline = $is_preview || $disabled_global || $disabled_post || post_password_required();
[3736] Fix | Delete
$builder_in_footer = 'on' === et_get_option( 'et_pb_css_in_footer', 'off' );
[3737] Fix | Delete
[3738] Fix | Delete
$unified_styles = $is_singular && ! $forced_inline && ! $builder_in_footer && et_core_is_builder_used_on_current_request();
[3739] Fix | Delete
$resource_owner = $unified_styles ? 'core' : 'divi';
[3740] Fix | Delete
$resource_slug = $unified_styles ? 'unified' : 'customizer';
[3741] Fix | Delete
$resource_slug .= $is_cpt ? '-cpt' : '';
[3742] Fix | Delete
$css = 'et_builder_maybe_wrap_css_selector';
[3743] Fix | Delete
[3744] Fix | Delete
if ( $is_preview ) {
[3745] Fix | Delete
// Don't let previews cause existing saved static css files to be modified.
[3746] Fix | Delete
$resource_slug .= '-preview';
[3747] Fix | Delete
}
[3748] Fix | Delete
[3749] Fix | Delete
if ( function_exists( 'et_fb_is_enabled' ) && et_fb_is_enabled() ) {
[3750] Fix | Delete
$resource_slug .= '-vb';
[3751] Fix | Delete
}
[3752] Fix | Delete
[3753] Fix | Delete
if ( ! $unified_styles ) {
[3754] Fix | Delete
$post_id = 'global';
[3755] Fix | Delete
}
[3756] Fix | Delete
[3757] Fix | Delete
$resource_slug = et_theme_builder_decorate_page_resource_slug( $post_id, $resource_slug );
[3758] Fix | Delete
$styles_manager = et_core_page_resource_get( $resource_owner, $resource_slug, $post_id );
[3759] Fix | Delete
[3760] Fix | Delete
$styles_manager->forced_inline = $forced_inline;
[3761] Fix | Delete
[3762] Fix | Delete
if ( ! $styles_manager->forced_inline && $styles_manager->has_file() ) {
[3763] Fix | Delete
// Static resource has already been created. No need to continue here.
[3764] Fix | Delete
return;
[3765] Fix | Delete
}
[3766] Fix | Delete
[3767] Fix | Delete
$css_output = array();
[3768] Fix | Delete
[3769] Fix | Delete
// Detect legacy settings
[3770] Fix | Delete
$detect_legacy_secondary_nav_color = et_get_option( 'secondary_nav_text_color', 'Light' );
[3771] Fix | Delete
$detect_legacy_primary_nav_color = et_get_option( 'primary_nav_text_color', 'Dark' );
[3772] Fix | Delete
[3773] Fix | Delete
if ( $detect_legacy_primary_nav_color == 'Light' ) {
[3774] Fix | Delete
$legacy_primary_nav_color = '#ffffff';
[3775] Fix | Delete
} else {
[3776] Fix | Delete
$legacy_primary_nav_color = 'rgba(0,0,0,0.6)';
[3777] Fix | Delete
}
[3778] Fix | Delete
[3779] Fix | Delete
if ( $detect_legacy_secondary_nav_color == 'Light' ) {
[3780] Fix | Delete
$legacy_secondary_nav_color = '#ffffff';
[3781] Fix | Delete
} else {
[3782] Fix | Delete
$legacy_secondary_nav_color = 'rgba(0,0,0,0.7)';
[3783] Fix | Delete
}
[3784] Fix | Delete
[3785] Fix | Delete
$body_font_size = absint( et_get_option( 'body_font_size', '14' ) );
[3786] Fix | Delete
$body_font_height = floatval( et_get_option( 'body_font_height', '1.7' ) );
[3787] Fix | Delete
$body_header_size = absint( et_get_option( 'body_header_size', '30' ) );
[3788] Fix | Delete
$body_header_style = et_get_option( 'body_header_style', '', '', true );
[3789] Fix | Delete
$body_header_spacing = intval( et_get_option( 'body_header_spacing', '0' ) );
[3790] Fix | Delete
$body_header_height = floatval( et_get_option( 'body_header_height', '1' ) );
[3791] Fix | Delete
$body_font_color = et_get_option( 'font_color', '#666666' );
[3792] Fix | Delete
$body_header_color = et_get_option( 'header_color', '#666666' );
[3793] Fix | Delete
[3794] Fix | Delete
$accent_color = et_get_option( 'accent_color', '#2ea3f2' );
[3795] Fix | Delete
$link_color = et_get_option( 'link_color', $accent_color );
[3796] Fix | Delete
[3797] Fix | Delete
$content_width = absint( et_get_option( 'content_width', '1080' ) );
[3798] Fix | Delete
$large_content_width = intval ( $content_width * 1.25 );
[3799] Fix | Delete
$use_sidebar_width = et_get_option( 'use_sidebar_width', false );
[3800] Fix | Delete
$sidebar_width = intval( et_get_option( 'sidebar_width', 21 ) );
[3801] Fix | Delete
$section_padding = absint( et_get_option( 'section_padding', '4' ) );
[3802] Fix | Delete
$row_padding = absint( et_get_option( 'row_padding', '2' ) );
[3803] Fix | Delete
[3804] Fix | Delete
$tablet_header_font_size = absint( et_get_option( 'tablet_header_font_size', '30' ) );
[3805] Fix | Delete
$tablet_body_font_size = absint( et_get_option( 'tablet_body_font_size', '14' ) );
[3806] Fix | Delete
$tablet_section_height = absint( et_get_option( 'tablet_section_height', '50' ) );
[3807] Fix | Delete
$tablet_row_height = absint( et_get_option( 'tablet_row_height', '30' ) );
[3808] Fix | Delete
[3809] Fix | Delete
$phone_header_font_size = absint( et_get_option( 'phone_header_font_size', $tablet_header_font_size ) );
[3810] Fix | Delete
$phone_body_font_size = absint( et_get_option( 'phone_body_font_size', $tablet_body_font_size ) );
[3811] Fix | Delete
$phone_section_height = absint( et_get_option( 'phone_section_height', $tablet_section_height ) );
[3812] Fix | Delete
$phone_row_height = absint( et_get_option( 'phone_row_height', $tablet_row_height ) );
[3813] Fix | Delete
[3814] Fix | Delete
$header_style = et_get_option( 'header_style', 'left' );
[3815] Fix | Delete
$menu_height = absint( et_get_option( 'menu_height', '66' ) );
[3816] Fix | Delete
$logo_height = absint( et_get_option( 'logo_height', '54' ) );
[3817] Fix | Delete
$menu_margin_top = absint( et_get_option( 'menu_margin_top', '0' ) );
[3818] Fix | Delete
$menu_link = et_get_option( 'menu_link', $legacy_primary_nav_color );
[3819] Fix | Delete
$menu_link_active = et_get_option( 'menu_link_active', '#2ea3f2' );
[3820] Fix | Delete
$vertical_nav = et_get_option( 'vertical_nav', false );
[3821] Fix | Delete
[3822] Fix | Delete
$hide_primary_logo = et_get_option( 'hide_primary_logo', 'false' );
[3823] Fix | Delete
$hide_fixed_logo = et_get_option( 'hide_fixed_logo', 'false' );
[3824] Fix | Delete
[3825] Fix | Delete
$default_primary_nav_font_size = 14;
[3826] Fix | Delete
$primary_nav_font_size = absint( et_get_option( 'primary_nav_font_size', $default_primary_nav_font_size ) );
[3827] Fix | Delete
$primary_nav_font_spacing = intval( et_get_option( 'primary_nav_font_spacing', '0' ) );
[3828] Fix | Delete
$primary_nav_bg = et_get_option( 'primary_nav_bg', '#ffffff' );
[3829] Fix | Delete
$primary_nav_font_style = et_get_option( 'primary_nav_font_style', '', '', true );
[3830] Fix | Delete
$primary_nav_dropdown_bg = et_get_option( 'primary_nav_dropdown_bg', $primary_nav_bg );
[3831] Fix | Delete
$primary_nav_dropdown_link_color = et_get_option( 'primary_nav_dropdown_link_color', $menu_link );
[3832] Fix | Delete
$primary_nav_dropdown_line_color = et_get_option( 'primary_nav_dropdown_line_color', $accent_color );
[3833] Fix | Delete
[3834] Fix | Delete
$mobile_menu_link = et_get_option( 'mobile_menu_link', $menu_link );
[3835] Fix | Delete
$mobile_primary_nav_bg = et_get_option( 'mobile_primary_nav_bg', $primary_nav_bg );
[3836] Fix | Delete
[3837] Fix | Delete
$secondary_nav_font_size = absint( et_get_option( 'secondary_nav_font_size', '12' ) );
[3838] Fix | Delete
$secondary_nav_font_spacing = intval( et_get_option( 'secondary_nav_font_spacing', '0' ) );
[3839] Fix | Delete
$secondary_nav_font_style = et_get_option( 'secondary_nav_font_style', '', '', true );
[3840] Fix | Delete
$secondary_nav_text_color_new = et_get_option( 'secondary_nav_text_color_new', $legacy_secondary_nav_color );
[3841] Fix | Delete
$secondary_nav_bg = et_get_option( 'secondary_nav_bg', et_get_option( 'accent_color', '#2ea3f2' ) );
[3842] Fix | Delete
$secondary_nav_dropdown_bg = et_get_option( 'secondary_nav_dropdown_bg', $secondary_nav_bg );
[3843] Fix | Delete
$secondary_nav_dropdown_link_color = et_get_option( 'secondary_nav_dropdown_link_color', $secondary_nav_text_color_new );
[3844] Fix | Delete
[3845] Fix | Delete
$fixed_primary_nav_font_size = absint( et_get_option( 'fixed_primary_nav_font_size', $primary_nav_font_size ) );
[3846] Fix | Delete
$fixed_primary_nav_bg = et_get_option( 'fixed_primary_nav_bg', $primary_nav_bg );
[3847] Fix | Delete
$fixed_secondary_nav_bg = et_get_option( 'fixed_secondary_nav_bg', $secondary_nav_bg );
[3848] Fix | Delete
$fixed_menu_height = absint( et_get_option( 'minimized_menu_height', '40' ) );
[3849] Fix | Delete
$fixed_menu_link = et_get_option( 'fixed_menu_link', $menu_link );
[3850] Fix | Delete
$fixed_menu_link_active = et_get_option( 'fixed_menu_link_active', $menu_link_active );
[3851] Fix | Delete
$fixed_secondary_menu_link = et_get_option( 'fixed_secondary_menu_link', $secondary_nav_text_color_new );
[3852] Fix | Delete
[3853] Fix | Delete
$footer_bg = et_get_option( 'footer_bg', '#222222' );
[3854] Fix | Delete
$footer_widget_link_color = et_get_option( 'footer_widget_link_color', '#fff' );
[3855] Fix | Delete
$footer_widget_text_color = et_get_option( 'footer_widget_text_color', '#fff' );
[3856] Fix | Delete
$footer_widget_header_color = et_get_option( 'footer_widget_header_color', $accent_color );
[3857] Fix | Delete
$footer_widget_bullet_color = et_get_option( 'footer_widget_bullet_color', $accent_color );
[3858] Fix | Delete
[3859] Fix | Delete
$widget_header_font_size = intval( et_get_option( 'widget_header_font_size', $body_header_size * .6 ) );
[3860] Fix | Delete
$widget_body_font_size = absint( et_get_option( 'widget_body_font_size', $body_font_size ) );
[3861] Fix | Delete
$widget_body_line_height = floatval( et_get_option( 'widget_body_line_height', '1.7' ) );
[3862] Fix | Delete
[3863] Fix | Delete
$button_text_size = absint( et_get_option( 'all_buttons_font_size', '20' ) );
[3864] Fix | Delete
$button_text_color = et_get_option( 'all_buttons_text_color', '' );
[3865] Fix | Delete
$button_bg_color = et_get_option( 'all_buttons_bg_color', 'rgba(0,0,0,0)' );
[3866] Fix | Delete
$button_border_width = absint( et_get_option( 'all_buttons_border_width', '2' ) );
[3867] Fix | Delete
$button_border_color = et_get_option( 'all_buttons_border_color', '#ffffff' );
[3868] Fix | Delete
$button_border_radius = absint( et_get_option( 'all_buttons_border_radius', '3' ) );
[3869] Fix | Delete
$button_text_style = et_get_option( 'all_buttons_font_style', '', '', true );
[3870] Fix | Delete
$button_icon = et_get_option( 'all_buttons_selected_icon', '5' );
[3871] Fix | Delete
$button_spacing = intval( et_get_option( 'all_buttons_spacing', '0' ) );
[3872] Fix | Delete
$button_icon_color = et_get_option( 'all_buttons_icon_color', '#ffffff' );
[3873] Fix | Delete
$button_text_color_hover = et_get_option( 'all_buttons_text_color_hover', '' );
[3874] Fix | Delete
$button_bg_color_hover = et_get_option( 'all_buttons_bg_color_hover', 'rgba(255,255,255,0.2)' );
[3875] Fix | Delete
$button_border_color_hover = et_get_option( 'all_buttons_border_color_hover', 'rgba(0,0,0,0)' );
[3876] Fix | Delete
$button_border_radius_hover = absint( et_get_option( 'all_buttons_border_radius_hover', '3' ) );
[3877] Fix | Delete
$button_spacing_hover = intval( et_get_option( 'all_buttons_spacing_hover', '0' ) );
[3878] Fix | Delete
$button_icon_size = 1.6 * intval( $button_text_size );
[3879] Fix | Delete
[3880] Fix | Delete
$slide_nav_show_top_bar = et_get_option( 'slide_nav_show_top_bar', true );
[3881] Fix | Delete
$slide_nav_bg = et_get_option( 'slide_nav_bg', $accent_color );
[3882] Fix | Delete
$slide_nav_links_color = et_get_option( 'slide_nav_links_color', '#ffffff' );
[3883] Fix | Delete
$slide_nav_links_color_active = et_get_option( 'slide_nav_links_color_active', '#ffffff' );
[3884] Fix | Delete
$slide_nav_top_color = et_get_option( 'slide_nav_top_color', 'rgba(255,255,255,0.6)' );
[3885] Fix | Delete
$slide_nav_search = et_get_option( 'slide_nav_search', 'rgba(255,255,255,0.6)' );
[3886] Fix | Delete
$slide_nav_search_bg = et_get_option( 'slide_nav_search_bg', 'rgba(0,0,0,0.2)' );
[3887] Fix | Delete
$slide_nav_width = intval( et_get_option( 'slide_nav_width', '320' ) );
[3888] Fix | Delete
$slide_nav_font_style = et_get_option( 'slide_nav_font_style', '', '', true );
[3889] Fix | Delete
$slide_nav_font_size = intval( et_get_option( 'slide_nav_font_size', '14' ) );
[3890] Fix | Delete
$slide_nav_top_font_size = intval( et_get_option( 'slide_nav_top_font_size', '14' ) );
[3891] Fix | Delete
$slide_nav_font_spacing = et_get_option( 'slide_nav_font_spacing', '0' );
[3892] Fix | Delete
$fullscreen_nav_font_size = intval( et_get_option( 'fullscreen_nav_font_size', '30' ) );
[3893] Fix | Delete
$fullscreen_nav_top_font_size = intval( et_get_option( 'fullscreen_nav_top_font_size', '18' ) );
[3894] Fix | Delete
[3895] Fix | Delete
// use different selector for the styles applied directly to body tag while in Visual Builder. Otherwise unwanted styles applied to the Builder interface.
[3896] Fix | Delete
$body_selector = empty( $_GET['et_fb'] ) ? 'body' : 'body .et-fb-post-content';
[3897] Fix | Delete
$body_selector_sibling = empty( $_GET['et_fb'] ) ? '' : 'body .et-fb-root-ancestor-sibling, ';
[3898] Fix | Delete
[3899] Fix | Delete
/* ====================================================
[3900] Fix | Delete
* --------->>> BEGIN THEME CUSTOMIZER CSS <<<---------
[3901] Fix | Delete
* ==================================================== */
[3902] Fix | Delete
ob_start();
[3903] Fix | Delete
[3904] Fix | Delete
if ( 14 !== $body_font_size ) { ?>
[3905] Fix | Delete
<?php echo esc_html( $body_selector_sibling ); ?>
[3906] Fix | Delete
<?php echo esc_html( $body_selector ); ?>,
[3907] Fix | Delete
<?php echo $css( '.et_pb_column_1_2 .et_quote_content blockquote cite', false ); ?>,
[3908] Fix | Delete
<?php echo $css( '.et_pb_column_1_2 .et_link_content a.et_link_main_url', false ); ?>,
[3909] Fix | Delete
<?php echo $css( '.et_pb_column_1_3 .et_quote_content blockquote cite', false ); ?>,
[3910] Fix | Delete
<?php echo $css( '.et_pb_column_3_8 .et_quote_content blockquote cite', false ); ?>,
[3911] Fix | Delete
<?php echo $css( '.et_pb_column_1_4 .et_quote_content blockquote cite', false ); ?>,
[3912] Fix | Delete
<?php echo $css( '.et_pb_blog_grid .et_quote_content blockquote cite', false ); ?>,
[3913] Fix | Delete
<?php echo $css( '.et_pb_column_1_3 .et_link_content a.et_link_main_url', false ); ?>,
[3914] Fix | Delete
<?php echo $css( '.et_pb_column_3_8 .et_link_content a.et_link_main_url', false ); ?>,
[3915] Fix | Delete
<?php echo $css( '.et_pb_column_1_4 .et_link_content a.et_link_main_url', false ); ?>,
[3916] Fix | Delete
<?php echo $css( '.et_pb_blog_grid .et_link_content a.et_link_main_url', false ); ?>,
[3917] Fix | Delete
<?php echo $css( 'body', '.et_pb_bg_layout_light .et_pb_post p', false ); ?>,
[3918] Fix | Delete
<?php echo $css( 'body', '.et_pb_bg_layout_dark .et_pb_post p', false ); ?> {
[3919] Fix | Delete
font-size: <?php echo esc_html( $body_font_size ); ?>px;
[3920] Fix | Delete
}
[3921] Fix | Delete
<?php echo $css( '.et_pb_slide_content', false ); ?>,
[3922] Fix | Delete
<?php echo $css( '.et_pb_best_value', false ); ?> {
[3923] Fix | Delete
font-size: <?php echo esc_html( intval( $body_font_size * 1.14 ) ); ?>px;
[3924] Fix | Delete
}
[3925] Fix | Delete
<?php } ?>
[3926] Fix | Delete
<?php if ( '#666666' !== $body_font_color) { ?>
[3927] Fix | Delete
<?php echo esc_html( $body_selector_sibling ); ?>
[3928] Fix | Delete
<?php echo esc_html( $body_selector ); ?> {
[3929] Fix | Delete
color: <?php echo esc_html( $body_font_color ); ?>;
[3930] Fix | Delete
}
[3931] Fix | Delete
<?php } ?>
[3932] Fix | Delete
<?php if ( '#666666' !== $body_header_color ) { ?>
[3933] Fix | Delete
<?php echo $css( 'h1' ); ?>,
[3934] Fix | Delete
<?php echo $css( 'h2' ); ?>,
[3935] Fix | Delete
<?php echo $css( 'h3' ); ?>,
[3936] Fix | Delete
<?php echo $css( 'h4' ); ?>,
[3937] Fix | Delete
<?php echo $css( 'h5' ); ?>,
[3938] Fix | Delete
<?php echo $css( 'h6' ); ?> {
[3939] Fix | Delete
color: <?php echo esc_html( $body_header_color ); ?>;
[3940] Fix | Delete
}
[3941] Fix | Delete
<?php } ?>
[3942] Fix | Delete
<?php if ( 1.7 !== $body_font_height ) { ?>
[3943] Fix | Delete
<?php echo esc_html( $body_selector_sibling ); ?>
[3944] Fix | Delete
<?php echo esc_html( $body_selector ); ?> {
[3945] Fix | Delete
line-height: <?php echo esc_html( $body_font_height ); ?>em;
[3946] Fix | Delete
}
[3947] Fix | Delete
<?php } ?>
[3948] Fix | Delete
<?php if ( $accent_color !== '#2ea3f2' ) { ?>
[3949] Fix | Delete
.woocommerce #respond input#submit,
[3950] Fix | Delete
.woocommerce-page #respond input#submit,
[3951] Fix | Delete
.woocommerce #content input.button,
[3952] Fix | Delete
.woocommerce-page #content input.button,
[3953] Fix | Delete
.woocommerce-message,
[3954] Fix | Delete
.woocommerce-error,
[3955] Fix | Delete
.woocommerce-info {
[3956] Fix | Delete
background: <?php echo esc_html( $accent_color ); ?> !important;
[3957] Fix | Delete
}
[3958] Fix | Delete
#et_search_icon:hover,
[3959] Fix | Delete
.mobile_menu_bar:before,
[3960] Fix | Delete
.mobile_menu_bar:after,
[3961] Fix | Delete
.et_toggle_slide_menu:after,
[3962] Fix | Delete
.et-social-icon a:hover,
[3963] Fix | Delete
<?php echo $css( '.et_pb_sum' ); ?>,
[3964] Fix | Delete
<?php echo $css( '.et_pb_pricing li a', false ); ?>,
[3965] Fix | Delete
<?php echo $css( '.et_pb_pricing_table_button', false ); ?>,
[3966] Fix | Delete
<?php echo $css( '.et_overlay:before' ); ?>,
[3967] Fix | Delete
<?php echo $css( '.entry-summary p.price ins' ); ?>,
[3968] Fix | Delete
.woocommerce div.product span.price,
[3969] Fix | Delete
.woocommerce-page div.product span.price,
[3970] Fix | Delete
.woocommerce #content div.product span.price,
[3971] Fix | Delete
.woocommerce-page #content div.product span.price,
[3972] Fix | Delete
.woocommerce div.product p.price,
[3973] Fix | Delete
.woocommerce-page div.product p.price,
[3974] Fix | Delete
.woocommerce #content div.product p.price,
[3975] Fix | Delete
.woocommerce-page #content div.product p.price,
[3976] Fix | Delete
<?php echo $css( '.et_pb_member_social_links a:hover', false ); ?>,
[3977] Fix | Delete
.woocommerce .star-rating span:before,
[3978] Fix | Delete
.woocommerce-page .star-rating span:before,
[3979] Fix | Delete
<?php echo $css( '.et_pb_widget li a:hover' ); ?>,
[3980] Fix | Delete
<?php echo $css( '.et_pb_filterable_portfolio .et_pb_portfolio_filters li a.active', false ); ?>,
[3981] Fix | Delete
<?php echo $css( '.et_pb_filterable_portfolio .et_pb_portofolio_pagination ul li a.active', false ); ?>,
[3982] Fix | Delete
<?php echo $css( '.et_pb_gallery .et_pb_gallery_pagination ul li a.active', false ); ?>,
[3983] Fix | Delete
.wp-pagenavi span.current,
[3984] Fix | Delete
.wp-pagenavi a:hover,
[3985] Fix | Delete
<?php echo $css( '.nav-single a' ); ?>,
[3986] Fix | Delete
<?php echo $css( '.tagged_as a' ); ?>,
[3987] Fix | Delete
<?php echo $css( '.posted_in a' ); ?> {
[3988] Fix | Delete
color: <?php echo esc_html( $accent_color ); ?>;
[3989] Fix | Delete
}
[3990] Fix | Delete
<?php echo $css( '.et_pb_contact_submit', false ); ?>,
[3991] Fix | Delete
<?php echo $css( '.et_password_protected_form .et_submit_button', false ); ?>,
[3992] Fix | Delete
<?php echo $css( '.et_pb_bg_layout_light .et_pb_newsletter_button', false ); ?>,
[3993] Fix | Delete
<?php echo $css( '.comment-reply-link', false ); ?>,
[3994] Fix | Delete
<?php echo $css( '.form-submit .et_pb_button', false ); ?>,
[3995] Fix | Delete
<?php echo $css( '.et_pb_bg_layout_light .et_pb_promo_button', false ); ?>,
[3996] Fix | Delete
<?php echo $css( '.et_pb_bg_layout_light .et_pb_more_button', false ); ?>,
[3997] Fix | Delete
<?php echo $css( '.woocommerce', 'a.button.alt' ); ?>,
[3998] Fix | Delete
<?php echo $css( '.woocommerce-page', 'a.button.alt' ); ?>,
[3999] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function