first commit

This commit is contained in:
2024-11-10 21:08:49 +01:00
commit 0d932ce5ee
14455 changed files with 2567501 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
<?php
class ET_Builder_Module_Helper_Motion_Blur extends ET_Builder_Module_Helper_Motion_Sanitizer {
/**
* @param string $value
*
* @return string
*/
protected function sanitize( $value ) {
$unit = et_pb_get_value_unit( $value );
$unit = in_array( $unit, $this->get_units() ) ? $unit : $this->get_default_unit();
return (float) $value . $unit;
}
protected function get_units() {
return array( 'cm', 'em', 'mm', 'in', 'pc', 'pt', 'px', 'rem' );
}
protected function get_default_unit() {
return 'px';
}
}