| 1 |
<?php |
| 2 |
|
| 3 |
namespace Elementor\Modules\Variables; |
| 4 |
|
| 5 |
use Elementor\Modules\Variables\Classes\Style_Schema; |
| 6 |
use Elementor\Modules\Variables\Classes\Style_Transformers; |
| 7 |
|
| 8 |
if ( ! defined( 'ABSPATH' ) ) { |
| 9 |
exit; // Exit if accessed directly. |
| 10 |
} |
| 11 |
|
| 12 |
class Hooks { |
| 13 |
public function register_styles_transformers() { |
| 14 |
add_action( 'elementor/atomic-widgets/styles/transformers/register', function ( $registry ) { |
| 15 |
( new Style_Transformers() )->append_to( $registry ); |
| 16 |
} ); |
| 17 |
|
| 18 |
return $this; |
| 19 |
} |
| 20 |
|
| 21 |
public function filter_for_style_schema() { |
| 22 |
add_filter( 'elementor/atomic-widgets/styles/schema', function ( array $schema ) { |
| 23 |
return ( new Style_Schema() )->augment( $schema ); |
| 24 |
} ); |
| 25 |
|
| 26 |
return $this; |
| 27 |
} |
| 28 |
} |
| 29 |
|