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/includes/builder/module/field
File: BoxShadow.php
[500] Fix | Delete
public static function get_elements() {
[501] Fix | Delete
return self::$classes;
[502] Fix | Delete
}
[503] Fix | Delete
[504] Fix | Delete
protected function fetch_preset( array $preset, $suffix ) {
[505] Fix | Delete
return array(
[506] Fix | Delete
"box_shadow_horizontal{$suffix}" => $preset['horizontal'],
[507] Fix | Delete
"box_shadow_vertical{$suffix}" => $preset['vertical'],
[508] Fix | Delete
"box_shadow_blur{$suffix}" => $preset['blur'],
[509] Fix | Delete
"box_shadow_spread{$suffix}" => $preset['spread'],
[510] Fix | Delete
"box_shadow_position{$suffix}" => $preset['position'],
[511] Fix | Delete
);
[512] Fix | Delete
}
[513] Fix | Delete
[514] Fix | Delete
protected function get_preset_field( $name, $field ) {
[515] Fix | Delete
$preset = $this->get_preset( $name );
[516] Fix | Delete
[517] Fix | Delete
return $preset[ $field ];
[518] Fix | Delete
}
[519] Fix | Delete
[520] Fix | Delete
/**
[521] Fix | Delete
* Get box shadow property value based on current active device.
[522] Fix | Delete
*
[523] Fix | Delete
* @since 3.23 Add responsive support. Check last edited value first for tablet/phone.
[524] Fix | Delete
*
[525] Fix | Delete
* @param string $key Box shadow property.
[526] Fix | Delete
* @param array $atts All module attributes.
[527] Fix | Delete
* @param boolean $hover Hover mode status.
[528] Fix | Delete
* @param string $device Current device.
[529] Fix | Delete
* @return string Box shadow property value.
[530] Fix | Delete
*/
[531] Fix | Delete
protected function get_key_value( $key, $atts = array(), $hover = false, $device = 'desktop' ) {
[532] Fix | Delete
$hover_options = et_pb_hover_options();
[533] Fix | Delete
[534] Fix | Delete
// Add device name as suffix.
[535] Fix | Delete
$is_desktop = 'desktop' === $device;
[536] Fix | Delete
$device_suffix = '';
[537] Fix | Delete
if ( ! $hover && ! $is_desktop ) {
[538] Fix | Delete
$device_suffix = "_{$device}";
[539] Fix | Delete
}
[540] Fix | Delete
[541] Fix | Delete
// Get current active device value.
[542] Fix | Delete
$attr_value = et_pb_responsive_options()->get_any_value( $atts, "box_shadow_{$key}{$device_suffix}", '', true );
[543] Fix | Delete
[544] Fix | Delete
// Bail early if current mode is hover or desktop mode.
[545] Fix | Delete
if ( $hover ) {
[546] Fix | Delete
return $hover_options->get_value( "box_shadow_{$key}", $atts, $attr_value );
[547] Fix | Delete
} elseif ( $is_desktop ) {
[548] Fix | Delete
return $attr_value;
[549] Fix | Delete
}
[550] Fix | Delete
[551] Fix | Delete
// Ensure responsive settings is enabled before return tablet/phone value.
[552] Fix | Delete
$is_responsive = et_pb_responsive_options()->is_responsive_enabled( $atts, "box_shadow_{$key}" );
[553] Fix | Delete
if ( ! $is_responsive ) {
[554] Fix | Delete
// To avoid any issue when no box shadow defined on tablet and phone, we should return
[555] Fix | Delete
// desktop value instead. By doing this, tablet and phone box shadow will be identical
[556] Fix | Delete
// with desktop box shadow value.
[557] Fix | Delete
return et_pb_responsive_options()->get_any_value( $atts, "box_shadow_{$key}" );
[558] Fix | Delete
}
[559] Fix | Delete
[560] Fix | Delete
return $attr_value;
[561] Fix | Delete
}
[562] Fix | Delete
}
[563] Fix | Delete
[564] Fix | Delete
function _action_et_pb_box_shadow_overlay() {
[565] Fix | Delete
wp_localize_script(
[566] Fix | Delete
apply_filters( 'et_builder_modules_script_handle', 'et-builder-modules-script' ),
[567] Fix | Delete
'et_pb_box_shadow_elements',
[568] Fix | Delete
ET_Builder_Module_Field_BoxShadow::get_elements()
[569] Fix | Delete
);
[570] Fix | Delete
}
[571] Fix | Delete
[572] Fix | Delete
add_action( 'wp_footer', '_action_et_pb_box_shadow_overlay' );
[573] Fix | Delete
[574] Fix | Delete
return new ET_Builder_Module_Field_BoxShadow();
[575] Fix | Delete
[576] Fix | Delete
12
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function