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: Position.php
'priority' => $this->module->get_style_priority(),
[500] Fix | Delete
) + $this->get_media_query( $type ) );
[501] Fix | Delete
}
[502] Fix | Delete
continue;
[503] Fix | Delete
}
[504] Fix | Delete
[505] Fix | Delete
$offsets = array( 'vertical', 'horizontal' );
[506] Fix | Delete
foreach ( $offsets as $offsetSlug ) {
[507] Fix | Delete
$field_slug = "${offsetSlug}_offset";
[508] Fix | Delete
$is_hover = 'hover' === $type && $hover_status[ $offsetSlug ];
[509] Fix | Delete
$is_responsive = in_array( $type, array( 'tablet', 'phone' ) ) && $resp_status[ $offsetSlug ];
[510] Fix | Delete
$offset_view = $is_hover ? 'hover' : ( $is_responsive ? $type : 'desktop' );
[511] Fix | Delete
$value = esc_attr( $this->get_value( $props, $field_slug, '0px', $offset_view, true ) );
[512] Fix | Delete
[513] Fix | Delete
if ( 'desktop' === $offset_view && $is_default_position && 'top_left' === $active_origin && '0px' === $value ) {
[514] Fix | Delete
continue;
[515] Fix | Delete
}
[516] Fix | Delete
[517] Fix | Delete
$origin_array = explode( '_', $active_origin );
[518] Fix | Delete
$property = 'left';
[519] Fix | Delete
$inverse_property = 'right';
[520] Fix | Delete
if ( 'horizontal' === $offsetSlug ) {
[521] Fix | Delete
if ( 'center' === $origin_array[1] ) {
[522] Fix | Delete
$value = '50%';
[523] Fix | Delete
} elseif ( 'right' === $origin_array[1] ) {
[524] Fix | Delete
$property = 'right';
[525] Fix | Delete
$inverse_property = 'left';
[526] Fix | Delete
}
[527] Fix | Delete
} else {
[528] Fix | Delete
$property = 'top';
[529] Fix | Delete
$inverse_property = 'bottom';
[530] Fix | Delete
if ( 'center' === $origin_array[0] ) {
[531] Fix | Delete
$value = '50%';
[532] Fix | Delete
} elseif ( 'bottom' === $origin_array[0] ) {
[533] Fix | Delete
$property = 'bottom';
[534] Fix | Delete
$inverse_property = 'top';
[535] Fix | Delete
}
[536] Fix | Delete
}
[537] Fix | Delete
[538] Fix | Delete
// add the adminbar height offset to avoid overflow of fixed elements.
[539] Fix | Delete
$active_position = $this->get_value( $props, 'positioning', $position_default, $type, true );
[540] Fix | Delete
if ( 'top' === $property ) {
[541] Fix | Delete
$admin_bar_declaration = "$property: $value";
[542] Fix | Delete
if ( 'fixed' === $active_position ) {
[543] Fix | Delete
$admin_bar_height = 'phone' === $type ? '46px' : '32px';
[544] Fix | Delete
$admin_bar_declaration = "$property: calc($value + $admin_bar_height);";
[545] Fix | Delete
}
[546] Fix | Delete
if ( 'desktop' !== $type || 'fixed' === $active_position ) {
[547] Fix | Delete
ET_Builder_Element::set_style( $function_name,
[548] Fix | Delete
array(
[549] Fix | Delete
'selector' => "body.logged-in.admin-bar $type_selector",
[550] Fix | Delete
'declaration' => $admin_bar_declaration,
[551] Fix | Delete
'priority' => $this->module->get_style_priority(),
[552] Fix | Delete
) + $this->get_media_query( $type ) );
[553] Fix | Delete
}
[554] Fix | Delete
}
[555] Fix | Delete
if ( 'top' === $inverse_property && ( 'desktop' !== $type || 'fixed' === $active_position ) ) {
[556] Fix | Delete
ET_Builder_Element::set_style( $function_name,
[557] Fix | Delete
array(
[558] Fix | Delete
'selector' => "body.logged-in.admin-bar $type_selector",
[559] Fix | Delete
'declaration' => "$inverse_property: auto",
[560] Fix | Delete
'priority' => $this->module->get_style_priority(),
[561] Fix | Delete
) + $this->get_media_query( $type ) );
[562] Fix | Delete
}
[563] Fix | Delete
[564] Fix | Delete
ET_Builder_Element::set_style( $function_name,
[565] Fix | Delete
array(
[566] Fix | Delete
'selector' => $type_selector,
[567] Fix | Delete
'declaration' => "$property: $value;",
[568] Fix | Delete
'priority' => $this->module->get_style_priority(),
[569] Fix | Delete
) + $this->get_media_query( $type ) );
[570] Fix | Delete
[571] Fix | Delete
ET_Builder_Element::set_style( $function_name,
[572] Fix | Delete
array(
[573] Fix | Delete
'selector' => $type_selector,
[574] Fix | Delete
'declaration' => "$inverse_property: auto;",
[575] Fix | Delete
'priority' => $this->module->get_style_priority(),
[576] Fix | Delete
) + $this->get_media_query( $type ) );
[577] Fix | Delete
}
[578] Fix | Delete
}
[579] Fix | Delete
}
[580] Fix | Delete
[581] Fix | Delete
if ( $has_z_index && ( ! is_array( $position_config ) || ! $has_position ) ) {
[582] Fix | Delete
// Backwards compatibility. Before this feature if z-index was set, position got defaulted as relative
[583] Fix | Delete
ET_Builder_Element::set_style( $function_name,
[584] Fix | Delete
array(
[585] Fix | Delete
'selector' => '%%order_class%%',
[586] Fix | Delete
'declaration' => "position: relative;",
[587] Fix | Delete
'priority' => $this->module->get_style_priority(),
[588] Fix | Delete
) );
[589] Fix | Delete
}
[590] Fix | Delete
}
[591] Fix | Delete
}
[592] Fix | Delete
[593] Fix | Delete
return new ET_Builder_Module_Field_Position();
[594] Fix | Delete
[595] Fix | Delete
12
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function