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/wp-conte.../plugins/custom-t.../inc
File: CTF_Parse.php
'background',
[500] Fix | Delete
'background-color'
[501] Fix | Delete
];
[502] Fix | Delete
[503] Fix | Delete
$size_elements = [
[504] Fix | Delete
'border-radius',
[505] Fix | Delete
'height',
[506] Fix | Delete
'width',
[507] Fix | Delete
'font-size',
[508] Fix | Delete
'margin',
[509] Fix | Delete
'margin-top',
[510] Fix | Delete
'margin-bottom',
[511] Fix | Delete
'margin-left',
[512] Fix | Delete
'margin-right',
[513] Fix | Delete
'padding',
[514] Fix | Delete
'padding-top',
[515] Fix | Delete
'padding-bottom',
[516] Fix | Delete
'padding-left',
[517] Fix | Delete
'padding-right'
[518] Fix | Delete
];
[519] Fix | Delete
[520] Fix | Delete
$border_elements = [
[521] Fix | Delete
'border',
[522] Fix | Delete
'border-top',
[523] Fix | Delete
'border-bottom',
[524] Fix | Delete
'border-left',
[525] Fix | Delete
'border-right'
[526] Fix | Delete
];
[527] Fix | Delete
[528] Fix | Delete
foreach ($css_array as $element) {
[529] Fix | Delete
$items_css = '';
[530] Fix | Delete
if( isset( $element['properties'] ) ){
[531] Fix | Delete
foreach ($element['properties'] as $property => $item) {
[532] Fix | Delete
if( in_array( $property, $color_elements) && !empty( $item['value'] ) && $item['value'] !== '#' ){
[533] Fix | Delete
$items_css .= $property . ':' . stripcslashes($item['value']) . ( isset( $item['important'] ) ? '!important;' : ';' );
[534] Fix | Delete
}
[535] Fix | Delete
if( in_array( $property, $size_elements) && !empty( $item['value'] ) && $item['value'] !== '0' && $item['value'] !== 'inherit' ){
[536] Fix | Delete
$items_css .= $property . ':' . stripcslashes($item['value']) . ( isset( $item['unit'] ) ? $item['unit'] : 'px' ) . ( isset( $item['important'] ) ? '!important;' : ';' );
[537] Fix | Delete
}
[538] Fix | Delete
if( in_array( $property, $border_elements) && !empty( $item['size'] ) && $item['size'] !== '0' && !empty( $item['color'] ) && $item['color'] !== '#' ){
[539] Fix | Delete
$items_css .= $property . ':' . stripcslashes($item['size']) . 'px ' . ( isset( $item['style'] ) ? $item['style'] : 'solid' ) . ' ' . stripcslashes($item['color']) . ( isset( $item['important'] ) ? '!important;' : ';' );
[540] Fix | Delete
}
[541] Fix | Delete
}
[542] Fix | Delete
$style .= !empty($items_css) ? $element['selector'] . '{'.$items_css .'}' : '';
[543] Fix | Delete
}
[544] Fix | Delete
}
[545] Fix | Delete
[546] Fix | Delete
return $style;
[547] Fix | Delete
}
[548] Fix | Delete
[549] Fix | Delete
}
[550] Fix | Delete
[551] Fix | Delete
12
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function