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
File: class-et-builder-element.php
[18000] Fix | Delete
if ( false === $post_type ) {
[18001] Fix | Delete
if ( is_a( $post, 'WP_POST' ) ) {
[18002] Fix | Delete
$post_type = $post->post_type;
[18003] Fix | Delete
} else if ( $ajax_use_cache ) {
[18004] Fix | Delete
$post_type = et_()->array_get( $_POST, 'et_post_type', 'page' );
[18005] Fix | Delete
} else if ( is_admin() && ! wp_doing_ajax() ) {
[18006] Fix | Delete
$et_builder_post_type = $post_type = 'page';
[18007] Fix | Delete
}
[18008] Fix | Delete
[18009] Fix | Delete
if ( false === $post_type ) {
[18010] Fix | Delete
return false;
[18011] Fix | Delete
}
[18012] Fix | Delete
}
[18013] Fix | Delete
[18014] Fix | Delete
$post_type = apply_filters( 'et_builder_cache_post_type', $post_type, 'modules' );
[18015] Fix | Delete
$post_type = trim( sanitize_file_name( $post_type ), '.' );
[18016] Fix | Delete
[18017] Fix | Delete
// Per language Cache due to fields data being localized.
[18018] Fix | Delete
// Use user custom locale only if admin or VB/BFB
[18019] Fix | Delete
$lang = is_admin() || et_fb_is_enabled() ? get_user_locale() : get_locale();
[18020] Fix | Delete
$lang = trim( sanitize_file_name( $lang ), '.' );
[18021] Fix | Delete
$prefix = 'modules';
[18022] Fix | Delete
$cache = sprintf( '%s/%s', ET_Core_PageResource::get_cache_directory(), $lang );
[18023] Fix | Delete
$files = glob( sprintf( '%s/%s-%s-*.data', $cache, $prefix, $post_type ) );
[18024] Fix | Delete
$exists = is_array( $files ) && $files;
[18025] Fix | Delete
[18026] Fix | Delete
if ( $exists ) {
[18027] Fix | Delete
return $files[0];
[18028] Fix | Delete
} elseif ( $ajax_use_cache ) {
[18029] Fix | Delete
// Allowlisted AJAX requests aren't allowed to generate cache, only to use it.
[18030] Fix | Delete
return false;
[18031] Fix | Delete
}
[18032] Fix | Delete
[18033] Fix | Delete
wp_mkdir_p( $cache );
[18034] Fix | Delete
[18035] Fix | Delete
// Create uniq filename
[18036] Fix | Delete
$uniq = str_replace( '.', '', (string) microtime( true ) );
[18037] Fix | Delete
$file = sprintf( '%s/%s-%s-%s.data', $cache, $prefix, $post_type, $uniq );
[18038] Fix | Delete
[18039] Fix | Delete
return wp_is_writable( dirname( $file ) ) ? $file : false;
[18040] Fix | Delete
}
[18041] Fix | Delete
[18042] Fix | Delete
/**
[18043] Fix | Delete
* Get Module cache file name's id.
[18044] Fix | Delete
*
[18045] Fix | Delete
* @since 3.28
[18046] Fix | Delete
*
[18047] Fix | Delete
* @param mixed $post_type When set to `false`, autodetect.
[18048] Fix | Delete
*
[18049] Fix | Delete
* @return bool|string
[18050] Fix | Delete
*/
[18051] Fix | Delete
public static function get_cache_filename_id( $post_type = false ) {
[18052] Fix | Delete
$filename = self::get_cache_filename( $post_type );
[18053] Fix | Delete
[18054] Fix | Delete
if ( ! is_string( $filename ) ) {
[18055] Fix | Delete
return false;
[18056] Fix | Delete
}
[18057] Fix | Delete
[18058] Fix | Delete
preg_match( '/(?<=-)[0-9]*(?=.data)/', $filename, $matches );
[18059] Fix | Delete
[18060] Fix | Delete
return isset( $matches[0] ) ? $matches[0] : false;
[18061] Fix | Delete
}
[18062] Fix | Delete
[18063] Fix | Delete
public static function save_cache() {
[18064] Fix | Delete
remove_filter( 'et_builder_modules_is_saving_cache', '__return_true' );
[18065] Fix | Delete
$cache = self::get_cache_filename();
[18066] Fix | Delete
if ( $cache ) {
[18067] Fix | Delete
et_()->WPFS()->put_contents( $cache, serialize( array(
[18068] Fix | Delete
self::$_cache,
[18069] Fix | Delete
self::$_fields_unprocessed,
[18070] Fix | Delete
self::$option_template->all(),
[18071] Fix | Delete
self::$option_template->templates(),
[18072] Fix | Delete
self::$option_template->get_tab_slug_map(),
[18073] Fix | Delete
'3.0'
[18074] Fix | Delete
) ) );
[18075] Fix | Delete
}
[18076] Fix | Delete
}
[18077] Fix | Delete
[18078] Fix | Delete
/**
[18079] Fix | Delete
* Render image element HTML
[18080] Fix | Delete
*
[18081] Fix | Delete
* @since 3.27.1
[18082] Fix | Delete
*
[18083] Fix | Delete
* @param string $image_props Image data props key or actual image URL.
[18084] Fix | Delete
* @param array $image_attrs_raw List of extra image attributes.
[18085] Fix | Delete
* @param array $echo Wheter to print the image output or return it.
[18086] Fix | Delete
* @param array $disable_responsive Wheter to enable the responsive image or not.
[18087] Fix | Delete
*
[18088] Fix | Delete
* @return string The images's HTML output. Empty string on failure.
[18089] Fix | Delete
*/
[18090] Fix | Delete
protected function render_image( $image_props, $image_attrs_raw = array(), $echo = true, $disable_responsive = false ) {
[18091] Fix | Delete
// Bail early when the $image_props arg passed is empty.
[18092] Fix | Delete
if ( ! $image_props ) {
[18093] Fix | Delete
return '';
[18094] Fix | Delete
}
[18095] Fix | Delete
[18096] Fix | Delete
$img_src = $image_props && is_string( $image_props ) ? self::$_->array_get( $this->props, $image_props, $image_props ) : $image_props;
[18097] Fix | Delete
[18098] Fix | Delete
if ( ! $img_src ) {
[18099] Fix | Delete
return '';
[18100] Fix | Delete
}
[18101] Fix | Delete
[18102] Fix | Delete
if ( ! count( $image_attrs_raw ) ) {
[18103] Fix | Delete
$html = sprintf(
[18104] Fix | Delete
'<img src="%1$s" />',
[18105] Fix | Delete
esc_url( $img_src )
[18106] Fix | Delete
);
[18107] Fix | Delete
[18108] Fix | Delete
return et_image_add_srcset_and_sizes( $html, $echo );
[18109] Fix | Delete
}
[18110] Fix | Delete
[18111] Fix | Delete
$image_attrs = array();
[18112] Fix | Delete
[18113] Fix | Delete
$is_disable_responsive = $disable_responsive || ! et_is_responsive_images_enabled();
[18114] Fix | Delete
[18115] Fix | Delete
foreach ( $image_attrs_raw as $name => $value ) {
[18116] Fix | Delete
// Skip src attributes key.
[18117] Fix | Delete
if ( 'src' === $name ) {
[18118] Fix | Delete
continue;
[18119] Fix | Delete
}
[18120] Fix | Delete
[18121] Fix | Delete
// Skip srcset & sizes attributes when setting is off.
[18122] Fix | Delete
if ( $is_disable_responsive && in_array( $name, array( 'srcset', 'sizes' ), true ) ) {
[18123] Fix | Delete
continue;
[18124] Fix | Delete
}
[18125] Fix | Delete
[18126] Fix | Delete
// Skip if attributes value is empty.
[18127] Fix | Delete
if ( ! strlen( $value ) ) {
[18128] Fix | Delete
continue;
[18129] Fix | Delete
}
[18130] Fix | Delete
[18131] Fix | Delete
// Format as JSON if the value is array or object.
[18132] Fix | Delete
if ( is_array( $value ) || is_object( $value ) ) {
[18133] Fix | Delete
$value = wp_json_encode( $value );
[18134] Fix | Delete
}
[18135] Fix | Delete
[18136] Fix | Delete
// Trim extra space from attributes value.
[18137] Fix | Delete
$value = trim( $value );
[18138] Fix | Delete
[18139] Fix | Delete
// Standalone attributes that act as Booleans (Numerical indexed array keys such as required, disabled, multiple).
[18140] Fix | Delete
if ( is_numeric( $name ) ) {
[18141] Fix | Delete
$value = et_core_esc_attr( $value, $value );
[18142] Fix | Delete
[18143] Fix | Delete
if ( ! is_wp_error( $value ) ) {
[18144] Fix | Delete
$image_attrs[ $value ] = et_core_esc_previously( $value );
[18145] Fix | Delete
}
[18146] Fix | Delete
} else {
[18147] Fix | Delete
$value = et_core_esc_attr( $name, $value );
[18148] Fix | Delete
[18149] Fix | Delete
if ( ! is_wp_error( $value ) ) {
[18150] Fix | Delete
$image_attrs[ $name ] = esc_attr( $name ) . '="' . et_core_esc_previously( $value ) . '"';
[18151] Fix | Delete
}
[18152] Fix | Delete
}
[18153] Fix | Delete
}
[18154] Fix | Delete
[18155] Fix | Delete
$html = sprintf(
[18156] Fix | Delete
'<img src="%1$s" %2$s />',
[18157] Fix | Delete
esc_url( $img_src ),
[18158] Fix | Delete
et_core_esc_previously( implode( ' ', $image_attrs ) )
[18159] Fix | Delete
);
[18160] Fix | Delete
[18161] Fix | Delete
if ( ! $is_disable_responsive && ! isset( $image_attrs['srcset'] ) && ! isset( $image_attrs['sizes'] ) ) {
[18162] Fix | Delete
$html = et_image_add_srcset_and_sizes( $html, false );
[18163] Fix | Delete
}
[18164] Fix | Delete
[18165] Fix | Delete
if ( ! $echo ) {
[18166] Fix | Delete
return $html;
[18167] Fix | Delete
}
[18168] Fix | Delete
[18169] Fix | Delete
echo et_core_intentionally_unescaped( $html, 'html' );
[18170] Fix | Delete
}
[18171] Fix | Delete
[18172] Fix | Delete
/**
[18173] Fix | Delete
* Get advanced field settings exposed for layout block preview
[18174] Fix | Delete
*
[18175] Fix | Delete
* @since 4.3.2
[18176] Fix | Delete
*
[18177] Fix | Delete
* @return array
[18178] Fix | Delete
*/
[18179] Fix | Delete
public static function get_layout_block_assistive_settings() {
[18180] Fix | Delete
return self::$layout_block_assistive_settings;
[18181] Fix | Delete
}
[18182] Fix | Delete
[18183] Fix | Delete
public static function enqueue_scroll_effects_fields() {
[18184] Fix | Delete
wp_localize_script(
[18185] Fix | Delete
apply_filters( 'et_builder_modules_script_handle', 'et-builder-modules-script' ),
[18186] Fix | Delete
'et_pb_motion_elements',
[18187] Fix | Delete
ET_Builder_Element::$_scroll_effects_fields
[18188] Fix | Delete
);
[18189] Fix | Delete
}
[18190] Fix | Delete
[18191] Fix | Delete
/**
[18192] Fix | Delete
* Get whether the provided element content contains at least one of the
[18193] Fix | Delete
* specified modules based on their slugs.
[18194] Fix | Delete
*
[18195] Fix | Delete
* @since 4.3.3
[18196] Fix | Delete
*
[18197] Fix | Delete
* @param string $content
[18198] Fix | Delete
* @param string[] $module_slugs
[18199] Fix | Delete
*
[18200] Fix | Delete
* @return bool
[18201] Fix | Delete
*/
[18202] Fix | Delete
protected static function contains( $content, $module_slugs ) {
[18203] Fix | Delete
foreach ( $module_slugs as $slug ) {
[18204] Fix | Delete
if ( false !== strpos( $content, '[' . $slug ) ) {
[18205] Fix | Delete
return true;
[18206] Fix | Delete
}
[18207] Fix | Delete
}
[18208] Fix | Delete
[18209] Fix | Delete
return false;
[18210] Fix | Delete
}
[18211] Fix | Delete
[18212] Fix | Delete
/* ================================================================================================================
[18213] Fix | Delete
* -------------------------->>> Class-level (static) deprecations begin here! <<<---------------------------------
[18214] Fix | Delete
* ================================================================================================================ */
[18215] Fix | Delete
[18216] Fix | Delete
/**
[18217] Fix | Delete
* @deprecated See {@see self::get_parent_slugs_regex()}
[18218] Fix | Delete
*/
[18219] Fix | Delete
public static function get_parent_shortcodes( $post_type ) {
[18220] Fix | Delete
$method = __METHOD__;
[18221] Fix | Delete
$replacement = __CLASS__ . '::get_parent_slugs_regex()';
[18222] Fix | Delete
[18223] Fix | Delete
et_error( "You're Doing It Wrong! {$method} is deprecated. Use {$replacement} instead." );
[18224] Fix | Delete
[18225] Fix | Delete
return self::get_parent_slugs_regex( $post_type );
[18226] Fix | Delete
}
[18227] Fix | Delete
[18228] Fix | Delete
/**
[18229] Fix | Delete
* @deprecated See {@see self::get_child_slugs_regex()}
[18230] Fix | Delete
*/
[18231] Fix | Delete
public static function get_child_shortcodes( $post_type ) {
[18232] Fix | Delete
$method = __METHOD__;
[18233] Fix | Delete
$replacement = __CLASS__ . '::get_child_slugs_regex()';
[18234] Fix | Delete
[18235] Fix | Delete
et_error( "You're Doing It Wrong! {$method} is deprecated. Use {$replacement} instead." );
[18236] Fix | Delete
[18237] Fix | Delete
return self::get_child_slugs_regex( $post_type );
[18238] Fix | Delete
}
[18239] Fix | Delete
[18240] Fix | Delete
/**
[18241] Fix | Delete
* Deprecated.
[18242] Fix | Delete
*
[18243] Fix | Delete
* @deprecated
[18244] Fix | Delete
*
[18245] Fix | Delete
* @param string $post_type
[18246] Fix | Delete
* @param string $mode
[18247] Fix | Delete
*
[18248] Fix | Delete
* @return array
[18249] Fix | Delete
*/
[18250] Fix | Delete
public static function get_defaults( $post_type = '', $mode = 'all' ) {
[18251] Fix | Delete
et_error( "You're Doing It Wrong! " . __METHOD__ . ' is deprecated and should not be used.' );
[18252] Fix | Delete
[18253] Fix | Delete
return array();
[18254] Fix | Delete
}
[18255] Fix | Delete
[18256] Fix | Delete
/**
[18257] Fix | Delete
* Deprecated.
[18258] Fix | Delete
*
[18259] Fix | Delete
* @deprecated
[18260] Fix | Delete
*
[18261] Fix | Delete
* @param string $post_type
[18262] Fix | Delete
* @param string $mode
[18263] Fix | Delete
*
[18264] Fix | Delete
* @return array
[18265] Fix | Delete
*/
[18266] Fix | Delete
public static function get_fields_defaults( $post_type = '', $mode = 'all' ) {
[18267] Fix | Delete
et_error( "You're Doing It Wrong! " . __METHOD__ . ' is deprecated and should not be used.' );
[18268] Fix | Delete
[18269] Fix | Delete
return array();
[18270] Fix | Delete
}
[18271] Fix | Delete
[18272] Fix | Delete
/**
[18273] Fix | Delete
* @deprecated
[18274] Fix | Delete
*/
[18275] Fix | Delete
public static function get_slugs_with_children( $post_type ) {
[18276] Fix | Delete
$parent_modules = self::get_parent_modules( $post_type );
[18277] Fix | Delete
$slugs = array();
[18278] Fix | Delete
[18279] Fix | Delete
foreach ( $parent_modules as $module ) {
[18280] Fix | Delete
if ( ! empty( $module->child_slug ) ) {
[18281] Fix | Delete
$slugs[] = sprintf( '"%1$s":"%2$s"', esc_js( $module->slug ), esc_js( $module->child_slug ) );
[18282] Fix | Delete
}
[18283] Fix | Delete
}
[18284] Fix | Delete
[18285] Fix | Delete
return '{' . implode( ',', $slugs ) . '}';
[18286] Fix | Delete
}
[18287] Fix | Delete
[18288] Fix | Delete
/* ================================================================================================================
[18289] Fix | Delete
* ------------------------------->>> Non-static deprecations begin here! <<<--------------------------------------
[18290] Fix | Delete
* ================================================================================================================ */
[18291] Fix | Delete
[18292] Fix | Delete
/**
[18293] Fix | Delete
* Determine if current request is VB Data Request by checking $_POST['action'] value
[18294] Fix | Delete
*
[18295] Fix | Delete
* @deprecated {@see et_builder_is_loading_vb_data()}
[18296] Fix | Delete
*
[18297] Fix | Delete
* @since 4.0.7 Deprecated.
[18298] Fix | Delete
*
[18299] Fix | Delete
* @return bool
[18300] Fix | Delete
*/
[18301] Fix | Delete
protected function is_loading_vb_data() {
[18302] Fix | Delete
return et_builder_is_loading_data();
[18303] Fix | Delete
}
[18304] Fix | Delete
[18305] Fix | Delete
/**
[18306] Fix | Delete
* Determine if current request is BB Data Request by checking $_POST['action'] value
[18307] Fix | Delete
*
[18308] Fix | Delete
* @deprecated {@see et_builder_is_loading_bb_data()}
[18309] Fix | Delete
*
[18310] Fix | Delete
* @since 4.0.7 Deprecated.
[18311] Fix | Delete
*
[18312] Fix | Delete
* @return bool
[18313] Fix | Delete
*/
[18314] Fix | Delete
protected function is_loading_bb_data() {
[18315] Fix | Delete
return et_builder_is_loading_data( 'bb' );
[18316] Fix | Delete
}
[18317] Fix | Delete
[18318] Fix | Delete
/* NOTE: Adding a new method? New methods should be placed BEFORE deprecated methods. */
[18319] Fix | Delete
}
[18320] Fix | Delete
do_action( 'et_pagebuilder_module_init' );
[18321] Fix | Delete
[18322] Fix | Delete
class ET_Builder_Module extends ET_Builder_Element {}
[18323] Fix | Delete
[18324] Fix | Delete
class ET_Builder_Structure_Element extends ET_Builder_Element {
[18325] Fix | Delete
public $is_structure_element = true;
[18326] Fix | Delete
[18327] Fix | Delete
function wrap_settings_option( $option_output, $field, $name = '' ) {
[18328] Fix | Delete
// Option template convert array field into string id; return early to prevent error
[18329] Fix | Delete
if ( is_string( $field ) ) {
[18330] Fix | Delete
return '';
[18331] Fix | Delete
}
[18332] Fix | Delete
[18333] Fix | Delete
$field_type = ! empty( $field['type'] ) ? $field['type'] : '';
[18334] Fix | Delete
[18335] Fix | Delete
switch( $field_type ) {
[18336] Fix | Delete
case 'column_settings_background' :
[18337] Fix | Delete
$output = $this->generate_columns_settings_background();
[18338] Fix | Delete
$field['hover'] = 'tabs';
[18339] Fix | Delete
break;
[18340] Fix | Delete
case 'column_settings_padding' :
[18341] Fix | Delete
$output = $this->generate_columns_settings_padding();
[18342] Fix | Delete
break;
[18343] Fix | Delete
case 'column_settings_css_fields' :
[18344] Fix | Delete
$output = $this->generate_columns_settings_css_fields();
[18345] Fix | Delete
break;
[18346] Fix | Delete
case 'column_settings_css' :
[18347] Fix | Delete
$output = $this->generate_columns_settings_css();
[18348] Fix | Delete
break;
[18349] Fix | Delete
case 'column-structure' :
[18350] Fix | Delete
// column structure option is not supported in BB
[18351] Fix | Delete
return '';
[18352] Fix | Delete
break;
[18353] Fix | Delete
default:
[18354] Fix | Delete
$depends = false;
[18355] Fix | Delete
$new_depends = isset( $field['show_if'] ) || isset( $field['show_if_not'] );
[18356] Fix | Delete
if ( ! $new_depends && ( isset( $field['depends_show_if'] ) || isset( $field['depends_show_if_not'] ) ) ) {
[18357] Fix | Delete
$depends = true;
[18358] Fix | Delete
if ( isset( $field['depends_show_if_not'] ) ) {
[18359] Fix | Delete
$depends_show_if_not = is_array( $field['depends_show_if_not'] ) ? implode( ',', $field['depends_show_if_not'] ) : $field['depends_show_if_not'];
[18360] Fix | Delete
[18361] Fix | Delete
$depends_attr = sprintf( ' data-depends_show_if_not="%s"', esc_attr( $depends_show_if_not ) );
[18362] Fix | Delete
} else {
[18363] Fix | Delete
$depends_attr = sprintf( ' data-depends_show_if="%s"', esc_attr( $field['depends_show_if'] ) );
[18364] Fix | Delete
}
[18365] Fix | Delete
}
[18366] Fix | Delete
[18367] Fix | Delete
// Overriding background color's attribute, turning it into appropriate background attributes
[18368] Fix | Delete
if ( isset( $field['type'] ) && isset( $field['name' ] ) && in_array( $field['name'], array( 'background_color' ) ) ) {
[18369] Fix | Delete
[18370] Fix | Delete
$field['type'] = 'background';
[18371] Fix | Delete
[18372] Fix | Delete
// Appending background class
[18373] Fix | Delete
if ( isset( $field['option_class'] ) ) {
[18374] Fix | Delete
$field['option_class'] .= ' et-pb-option--background';
[18375] Fix | Delete
} else {
[18376] Fix | Delete
$field['option_class'] = 'et-pb-option--background';
[18377] Fix | Delete
}
[18378] Fix | Delete
[18379] Fix | Delete
// Removing depends default variable which hides background color for unified background field UI
[18380] Fix | Delete
$depends = false;
[18381] Fix | Delete
[18382] Fix | Delete
if ( isset( $field['depends_show_if'] ) ) {
[18383] Fix | Delete
unset( $field['depends_show_if'] );
[18384] Fix | Delete
}
[18385] Fix | Delete
}
[18386] Fix | Delete
[18387] Fix | Delete
$output = sprintf(
[18388] Fix | Delete
'%6$s<div class="et-pb-option et-pb-option--%11$s%1$s%2$s%3$s%8$s%9$s%10$s%13$s"%4$s data-option_name="%12$s">%5$s</div>%7$s',
[18389] Fix | Delete
( ! empty( $field['type'] ) && 'tiny_mce' === $field['type'] ? ' et-pb-option-main-content' : '' ),
[18390] Fix | Delete
$depends || $new_depends ? ' et-pb-depends' : '',
[18391] Fix | Delete
( ! empty( $field['type'] ) && 'hidden' === $field['type'] ? ' et_pb_hidden' : '' ),
[18392] Fix | Delete
( $depends ? $depends_attr : '' ),
[18393] Fix | Delete
"\n\t\t\t\t" . $option_output . "\n\t\t\t",
[18394] Fix | Delete
"\t",
[18395] Fix | Delete
"\n\n\t\t",
[18396] Fix | Delete
( ! empty( $field['type'] ) && 'hidden' === $field['type'] ? esc_attr( sprintf( ' et-pb-option-%1$s', $field['name'] ) ) : '' ),
[18397] Fix | Delete
( ! empty( $field['option_class'] ) ? ' ' . $field['option_class'] : '' ),
[18398] Fix | Delete
isset( $field['specialty_only'] ) && 'yes' === $field['specialty_only'] ? ' et-pb-specialty-only-option' : '',
[18399] Fix | Delete
isset( $field['type'] ) ? esc_attr( $field['type'] ) : '',
[18400] Fix | Delete
esc_attr( $field['name'] ),
[18401] Fix | Delete
$new_depends ? ' et-pb-new-depends' : ''
[18402] Fix | Delete
);
[18403] Fix | Delete
break;
[18404] Fix | Delete
}
[18405] Fix | Delete
[18406] Fix | Delete
if ( ! empty( $field['hover'] ) ) {
[18407] Fix | Delete
if ( 'tabs' === $field['hover'] ) {
[18408] Fix | Delete
$name = ( 'columns_background' === $name ) ? 'background_color_<%= counter %>' : $name;
[18409] Fix | Delete
$this->last_hover_tab_field = $name;
[18410] Fix | Delete
}
[18411] Fix | Delete
$hover = $this->last_hover_tab_field;
[18412] Fix | Delete
if ( $hover ) {
[18413] Fix | Delete
$begin = '<div class="et-pb-option ';
[18414] Fix | Delete
$pos = strpos( $output, $begin );
[18415] Fix | Delete
if ( $pos >= 0 ) {
[18416] Fix | Delete
$output = substr_replace(
[18417] Fix | Delete
$output,
[18418] Fix | Delete
"<div data-depends_hover=\"$hover\" class=\"et-pb-option-standard et-pb-option ",
[18419] Fix | Delete
$pos,
[18420] Fix | Delete
strlen( $begin )
[18421] Fix | Delete
);
[18422] Fix | Delete
}
[18423] Fix | Delete
}
[18424] Fix | Delete
}
[18425] Fix | Delete
[18426] Fix | Delete
return self::get_unique_bb_key( $output );
[18427] Fix | Delete
}
[18428] Fix | Delete
[18429] Fix | Delete
function generate_column_vars_css() {
[18430] Fix | Delete
$output = '';
[18431] Fix | Delete
for ( $i = 1; $i < 4; $i++ ) {
[18432] Fix | Delete
$output .= sprintf(
[18433] Fix | Delete
'case %1$s :
[18434] Fix | Delete
current_module_id_value = typeof et_pb_module_id_%1$s !== \'undefined\' ? et_pb_module_id_%1$s : \'\',
[18435] Fix | Delete
current_module_class_value = typeof et_pb_module_class_%1$s !== \'undefined\' ? et_pb_module_class_%1$s : \'\',
[18436] Fix | Delete
current_custom_css_before_value = typeof et_pb_custom_css_before_%1$s !== \'undefined\' ? et_pb_custom_css_before_%1$s : \'\',
[18437] Fix | Delete
current_custom_css_main_value = typeof et_pb_custom_css_main_%1$s !== \'undefined\' ? et_pb_custom_css_main_%1$s : \'\',
[18438] Fix | Delete
current_custom_css_after_value = typeof et_pb_custom_css_after_%1$s !== \'undefined\' ? et_pb_custom_css_after_%1$s : \'\';
[18439] Fix | Delete
break; ',
[18440] Fix | Delete
esc_attr( $i )
[18441] Fix | Delete
);
[18442] Fix | Delete
}
[18443] Fix | Delete
[18444] Fix | Delete
return $output;
[18445] Fix | Delete
}
[18446] Fix | Delete
[18447] Fix | Delete
function generate_column_vars_bg() {
[18448] Fix | Delete
$output = '';
[18449] Fix | Delete
for ( $i = 1; $i < 4; $i++ ) {
[18450] Fix | Delete
$output .= sprintf(
[18451] Fix | Delete
'case %1$s :
[18452] Fix | Delete
current_value_bg = typeof et_pb_background_color_%1$s !== \'undefined\' ? et_pb_background_color_%1$s : \'\',
[18453] Fix | Delete
current_value_bg_img = typeof et_pb_bg_img_%1$s !== \'undefined\' ? et_pb_bg_img_%1$s : \'\';
[18454] Fix | Delete
current_background_size_cover = typeof et_pb_background_size_%1$s !== \'undefined\' && et_pb_background_size_%1$s === \'cover\' ? \' selected="selected"\' : \'\';
[18455] Fix | Delete
current_background_size_contain = typeof et_pb_background_size_%1$s !== \'undefined\' && et_pb_background_size_%1$s === \'contain\' ? \' selected="selected"\' : \'\';
[18456] Fix | Delete
current_background_size_initial = typeof et_pb_background_size_%1$s !== \'undefined\' && et_pb_background_size_%1$s === \'initial\' ? \' selected="selected"\' : \'\';
[18457] Fix | Delete
current_background_position_topleft = typeof et_pb_background_position_%1$s !== \'undefined\' && et_pb_background_position_%1$s === \'top_left\' ? \' selected="selected"\' : \'\';
[18458] Fix | Delete
current_background_position_topcenter = typeof et_pb_background_position_%1$s !== \'undefined\' && et_pb_background_position_%1$s === \'top_center\' ? \' selected="selected"\' : \'\';
[18459] Fix | Delete
current_background_position_topright = typeof et_pb_background_position_%1$s !== \'undefined\' && et_pb_background_position_%1$s === \'top_right\' ? \' selected="selected"\' : \'\';
[18460] Fix | Delete
current_background_position_centerleft = typeof et_pb_background_position_%1$s !== \'undefined\' && et_pb_background_position_%1$s === \'center_left\' ? \' selected="selected"\' : \'\';
[18461] Fix | Delete
current_background_position_center = typeof et_pb_background_position_%1$s === \'undefined\' || et_pb_background_position_%1$s === \'center\' ? \' selected="selected"\' : \'\';
[18462] Fix | Delete
current_background_position_centerright = typeof et_pb_background_position_%1$s !== \'undefined\' && et_pb_background_position_%1$s === \'center_right\' ? \' selected="selected"\' : \'\';
[18463] Fix | Delete
current_background_position_bottomleft = typeof et_pb_background_position_%1$s !== \'undefined\' && et_pb_background_position_%1$s === \'bottom_left\' ? \' selected="selected"\' : \'\';
[18464] Fix | Delete
current_background_position_bottomcenter = typeof et_pb_background_position_%1$s !== \'undefined\' && et_pb_background_position_%1$s === \'bottom_center\' ? \' selected="selected"\' : \'\';
[18465] Fix | Delete
current_background_position_bottomright = typeof et_pb_background_position_%1$s !== \'undefined\' && et_pb_background_position_%1$s === \'bottom_right\' ? \' selected="selected"\' : \'\';
[18466] Fix | Delete
current_background_repeat_repeat = typeof et_pb_background_repeat_%1$s === \'undefined\' || et_pb_background_repeat_%1$s === \'repeat\' ? \' selected="selected"\' : \'\';
[18467] Fix | Delete
current_background_repeat_repeatx = typeof et_pb_background_repeat_%1$s !== \'undefined\' && et_pb_background_repeat_%1$s === \'repeat-x\' ? \' selected="selected"\' : \'\';
[18468] Fix | Delete
current_background_repeat_repeaty = typeof et_pb_background_repeat_%1$s !== \'undefined\' && et_pb_background_repeat_%1$s === \'repeat-y\' ? \' selected="selected"\' : \'\';
[18469] Fix | Delete
current_background_repeat_space = typeof et_pb_background_repeat_%1$s !== \'undefined\' && et_pb_background_repeat_%1$s === \'space\' ? \' selected="selected"\' : \'\';
[18470] Fix | Delete
current_background_repeat_round = typeof et_pb_background_repeat_%1$s !== \'undefined\' && et_pb_background_repeat_%1$s === \'round\' ? \' selected="selected"\' : \'\';
[18471] Fix | Delete
current_background_repeat_norepeat = typeof et_pb_background_repeat_%1$s !== \'undefined\' && et_pb_background_repeat_%1$s === \'no-repeat\' ? \' selected="selected"\' : \'\';
[18472] Fix | Delete
current_background_blend_normal = typeof et_pb_background_blend_%1$s !== \'undefined\' && et_pb_background_blend_%1$s === \'normal\' ? \' selected="selected"\' : \'\';
[18473] Fix | Delete
current_background_blend_multiply = typeof et_pb_background_blend_%1$s !== \'undefined\' && et_pb_background_blend_%1$s === \'multiply\' ? \' selected="selected"\' : \'\';
[18474] Fix | Delete
current_background_blend_screen = typeof et_pb_background_blend_%1$s !== \'undefined\' && et_pb_background_blend_%1$s === \'screen\' ? \' selected="selected"\' : \'\';
[18475] Fix | Delete
current_background_blend_overlay = typeof et_pb_background_blend_%1$s !== \'undefined\' && et_pb_background_blend_%1$s === \'overlay\' ? \' selected="selected"\' : \'\';
[18476] Fix | Delete
current_background_blend_darken = typeof et_pb_background_blend_%1$s !== \'undefined\' && et_pb_background_blend_%1$s === \'darken\' ? \' selected="selected"\' : \'\';
[18477] Fix | Delete
current_background_blend_lighten = typeof et_pb_background_blend_%1$s !== \'undefined\' && et_pb_background_blend_%1$s === \'lighten\' ? \' selected="selected"\' : \'\';
[18478] Fix | Delete
current_background_blend_colordodge = typeof et_pb_background_blend_%1$s !== \'undefined\' && et_pb_background_blend_%1$s === \'color-dodge\' ? \' selected="selected"\' : \'\';
[18479] Fix | Delete
current_background_blend_colorburn = typeof et_pb_background_blend_%1$s !== \'undefined\' && et_pb_background_blend_%1$s === \'color-burn\' ? \' selected="selected"\' : \'\';
[18480] Fix | Delete
current_background_blend_hardlight = typeof et_pb_background_blend_%1$s !== \'undefined\' && et_pb_background_blend_%1$s === \'hard-light\' ? \' selected="selected"\' : \'\';
[18481] Fix | Delete
current_background_blend_softlight = typeof et_pb_background_blend_%1$s !== \'undefined\' && et_pb_background_blend_%1$s === \'soft-light\' ? \' selected="selected"\' : \'\';
[18482] Fix | Delete
current_background_blend_difference = typeof et_pb_background_blend_%1$s !== \'undefined\' && et_pb_background_blend_%1$s === \'difference\' ? \' selected="selected"\' : \'\';
[18483] Fix | Delete
current_background_blend_exclusion = typeof et_pb_background_blend_%1$s !== \'undefined\' && et_pb_background_blend_%1$s === \'hue\' ? \' selected="selected"\' : \'\';
[18484] Fix | Delete
current_background_blend_hue = typeof et_pb_background_blend_%1$s !== \'undefined\' && et_pb_background_blend_%1$s === \'saturation\' ? \' selected="selected"\' : \'\';
[18485] Fix | Delete
current_background_blend_saturation = typeof et_pb_background_blend_%1$s !== \'undefined\' && et_pb_background_blend_%1$s === \'color\' ? \' selected="selected"\' : \'\';
[18486] Fix | Delete
current_background_blend_color = typeof et_pb_background_blend_%1$s !== \'undefined\' && et_pb_background_blend_%1$s === \'normal\' ? \' selected="selected"\' : \'\';
[18487] Fix | Delete
current_background_blend_luminosity = typeof et_pb_background_blend_%1$s !== \'undefined\' && et_pb_background_blend_%1$s === \'luminosity\' ? \' selected="selected"\' : \'\';
[18488] Fix | Delete
current_use_background_color_gradient = typeof et_pb_use_background_color_gradient_%1$s !== \'undefined\' && \'on\' === et_pb_use_background_color_gradient_%1$s ? \' selected="selected"\' : \'\';
[18489] Fix | Delete
current_background_color_gradient_start = typeof et_pb_background_color_gradient_start_%1$s !== \'undefined\' ? et_pb_background_color_gradient_start_%1$s : \'%2$s\';
[18490] Fix | Delete
current_background_color_gradient_end = typeof et_pb_background_color_gradient_end_%1$s !== \'undefined\' ? et_pb_background_color_gradient_end_%1$s : \'%3$s\';
[18491] Fix | Delete
current_background_color_gradient_type = typeof et_pb_background_color_gradient_type_%1$s !== \'undefined\' && \'radial\' === et_pb_background_color_gradient_type_%1$s ? \' selected="selected"\' : \'\';
[18492] Fix | Delete
current_background_color_gradient_direction = typeof et_pb_background_color_gradient_direction_%1$s !== \'undefined\' ? et_pb_background_color_gradient_direction_%1$s : \'%4$s\';
[18493] Fix | Delete
current_background_color_gradient_direction_radial_center = typeof et_pb_background_color_gradient_direction_radial_%1$s !== \'undefined\' && \'center\' === et_pb_background_color_gradient_direction_radial_%1$s ? \' selected="selected"\' : \'\';
[18494] Fix | Delete
current_background_color_gradient_direction_radial_top_left = typeof et_pb_background_color_gradient_direction_radial_%1$s !== \'undefined\' && \'top left\' === et_pb_background_color_gradient_direction_radial_%1$s ? \' selected="selected"\' : \'\';
[18495] Fix | Delete
current_background_color_gradient_direction_radial_top = typeof et_pb_background_color_gradient_direction_radial_%1$s !== \'undefined\' && \'top\' === et_pb_background_color_gradient_direction_radial_%1$s ? \' selected="selected"\' : \'\';
[18496] Fix | Delete
current_background_color_gradient_direction_radial_top_right = typeof et_pb_background_color_gradient_direction_radial_%1$s !== \'undefined\' && \'top right\' === et_pb_background_color_gradient_direction_radial_%1$s ? \' selected="selected"\' : \'\';
[18497] Fix | Delete
current_background_color_gradient_direction_radial_right = typeof et_pb_background_color_gradient_direction_radial_%1$s !== \'undefined\' && \'right\' === et_pb_background_color_gradient_direction_radial_%1$s ? \' selected="selected"\' : \'\';
[18498] Fix | Delete
current_background_color_gradient_direction_radial_bottom_right = typeof et_pb_background_color_gradient_direction_radial_%1$s !== \'undefined\' && \'bottom right\' === et_pb_background_color_gradient_direction_radial_%1$s ? \' selected="selected"\' : \'\';
[18499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function