|
Server IP : 168.119.101.163 / Your IP : 216.73.217.54 Web Server : Apache/2 System : Linux web02.webzuiver.nl 4.18.0-553.126.2.lve.el8.x86_64 #1 SMP Thu May 28 14:12:30 UTC 2026 x86_64 User : equine ( 1027) PHP Version : 8.1.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF Directory (0755) : /home/equine/public_html/wp-content/plugins/elementor-pro/modules/transitions/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
<?php
namespace ElementorPro\Modules\Transitions;
use ElementorPro\Base\Module_Base;
use ElementorPro\License\API;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
class Module extends Module_Base {
public function get_name() {
return 'transitions';
}
private function is_transitions_active() {
return API::is_licence_has_feature( 'transitions' );
}
public function __construct() {
parent::__construct();
if ( $this->is_transitions_active() ) {
add_filter(
'elementor/atomic-widgets/styles/transitions/allowed-properties',
[ $this, 'extend_allowed_properties' ]
);
}
}
public function extend_allowed_properties( array $core_properties ): array {
$pro_properties = [
'margin',
'margin-block-end',
'margin-inline-start',
'margin-inline-end',
'margin-block-start',
'padding',
'padding-block-end',
'padding-inline-start',
'padding-inline-end',
'padding-block-start',
'flex',
'flex-grow',
'flex-shrink',
'flex-basis',
'width',
'height',
'max-height',
'max-width',
'min-height',
'min-width',
'top',
'left',
'bottom',
'right',
'z-index',
'color',
'font-size',
'line-height',
'letter-spacing',
'word-spacing',
'font-variation-settings',
'-webkit-text-stroke-color',
'background-color',
'background-position',
'box-shadow',
'border',
'border-radius',
'border-color',
'border-width',
'opacity',
'transform',
'filter',
];
return array_merge( $core_properties, $pro_properties );
}
}