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: Transform.php
$intensityAngle *= -1;
[500] Fix | Delete
$intensityAngle += $rotateX;
[501] Fix | Delete
$startElement['rotateX'] = "{$intensityAngle}deg";
[502] Fix | Delete
break;
[503] Fix | Delete
case 'left' :
[504] Fix | Delete
$intensityAngle *= -1;
[505] Fix | Delete
$intensityAngle += $rotateY;
[506] Fix | Delete
$startElement['rotateY'] = "{$intensityAngle}deg";
[507] Fix | Delete
break;
[508] Fix | Delete
case 'right' :
[509] Fix | Delete
$intensityAngle += $rotateY;
[510] Fix | Delete
$startElement['rotateY'] = "{$intensityAngle}deg";
[511] Fix | Delete
break;
[512] Fix | Delete
}
[513] Fix | Delete
$startDeclaration = $this->getTransformDeclaration( $startElement );
[514] Fix | Delete
$newKeyframeRules = "0%{ $startDeclaration }";
[515] Fix | Delete
$newKeyframeRules .= "100%{opacity:1;$transformDeclaration}";
[516] Fix | Delete
break;
[517] Fix | Delete
[518] Fix | Delete
case 'fold':
[519] Fix | Delete
$intensityAngle = ceil( ( 90 / 100 ) * $intensity );
[520] Fix | Delete
$startElements['perspective'] = '2000px';
[521] Fix | Delete
[522] Fix | Delete
$rotateX = (float) str_replace( 'deg', '', $utils->array_get( $elements['transform'], 'rotateX', '0' ) );
[523] Fix | Delete
$rotateY = (float) str_replace( 'deg', '', $utils->array_get( $elements['transform'], 'rotateY', '0' ) );
[524] Fix | Delete
switch ( $direction ) {
[525] Fix | Delete
case 'top' :
[526] Fix | Delete
$intensityAngle *= -1;
[527] Fix | Delete
$intensityAngle += $rotateX;
[528] Fix | Delete
$startElements['rotateX'] = "{$intensityAngle}deg";
[529] Fix | Delete
break;
[530] Fix | Delete
case 'bottom' :
[531] Fix | Delete
$intensityAngle += $rotateX;
[532] Fix | Delete
$startElements['rotateX'] = "{$intensityAngle}deg";
[533] Fix | Delete
break;
[534] Fix | Delete
case 'left' :
[535] Fix | Delete
$intensityAngle += $rotateY;
[536] Fix | Delete
$startElements['rotateY'] = "{$intensityAngle}deg";
[537] Fix | Delete
break;
[538] Fix | Delete
default :
[539] Fix | Delete
case 'right' :
[540] Fix | Delete
$intensityAngle *= -1;
[541] Fix | Delete
$intensityAngle += $rotateY;
[542] Fix | Delete
$startElements['rotateY'] = "{$intensityAngle}deg";
[543] Fix | Delete
break;
[544] Fix | Delete
}
[545] Fix | Delete
$startDeclaration = $this->getTransformDeclaration( $startElements );
[546] Fix | Delete
$newKeyframeRules = "0%{{$startDeclaration}}";
[547] Fix | Delete
$newKeyframeRules .= "100%{opacity:1;${transformDeclaration}}";
[548] Fix | Delete
// replace origin declaration to preserve animation direction setting only if transform origin is not set
[549] Fix | Delete
if ( empty( $elements['origin'] ) ) {
[550] Fix | Delete
$originDeclaration = "transform-origin: $direction;";
[551] Fix | Delete
} else {
[552] Fix | Delete
$originDeclaration = sprintf( 'transform-origin: %s;', implode( ' ', $elements['origin'] ) );
[553] Fix | Delete
}
[554] Fix | Delete
$newAnimationRules .= $originDeclaration;
[555] Fix | Delete
break;
[556] Fix | Delete
[557] Fix | Delete
case 'roll':
[558] Fix | Delete
$rotateZ = (float) str_replace( 'deg', '', $utils->array_get( $elements['transform'], 'rotateZ', '0' ) );
[559] Fix | Delete
$intensityAngle = ceil( ( 360 / 100 ) * $intensity );
[560] Fix | Delete
[561] Fix | Delete
if ( 'bottom' === $direction || 'right' === $direction ) {
[562] Fix | Delete
$startElements['rotateZ'] = sprintf( "%sdeg", ( $intensityAngle * -1 ) + $rotateZ );
[563] Fix | Delete
} else {
[564] Fix | Delete
$startElements['rotateZ'] = sprintf( "%sdeg", $intensityAngle + $rotateZ );
[565] Fix | Delete
}
[566] Fix | Delete
[567] Fix | Delete
$startDeclaration = $this->getTransformDeclaration( $startElements );
[568] Fix | Delete
$newKeyframeRules = "0%{ $startDeclaration }";
[569] Fix | Delete
$newKeyframeRules .= "100%{opacity:1;$transformDeclaration}";
[570] Fix | Delete
// replace origin declaration to preserve animation direction setting only if transform origin is not set
[571] Fix | Delete
if ( empty( $elements['origin'] ) ) {
[572] Fix | Delete
$originDeclaration = "transform-origin: $direction;";
[573] Fix | Delete
} else {
[574] Fix | Delete
$originDeclaration = sprintf( 'transform-origin: %s;', implode( ' ', $elements['origin'] ) );
[575] Fix | Delete
}
[576] Fix | Delete
$newAnimationRules .= $originDeclaration;
[577] Fix | Delete
break;
[578] Fix | Delete
}
[579] Fix | Delete
[580] Fix | Delete
if ( ! empty( $newKeyframeRules ) ) {
[581] Fix | Delete
return array(
[582] Fix | Delete
'keyframe' => array(
[583] Fix | Delete
'selector' => $newKeyframe,
[584] Fix | Delete
'declaration' => $newKeyframeRules,
[585] Fix | Delete
),
[586] Fix | Delete
'animationRules' => array(
[587] Fix | Delete
'selector' => $newAnimationSelector,
[588] Fix | Delete
'declaration' => $newAnimationRules,
[589] Fix | Delete
),
[590] Fix | Delete
'declaration' => $transformDeclaration . $originDeclaration,
[591] Fix | Delete
);
[592] Fix | Delete
}
[593] Fix | Delete
[594] Fix | Delete
return array();
[595] Fix | Delete
}
[596] Fix | Delete
}
[597] Fix | Delete
[598] Fix | Delete
return new ET_Builder_Module_Field_Transform();
[599] Fix | Delete
[600] Fix | Delete
12
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function