← All changes
|
modules/atomic-widgets/css-converter/expander-registry-factory.php
+3
-1
4.2.0-beta1
→
trunk
View file →
| @@ -3,8 +3,9 @@ | ||
| 3 | 3 | namespace Elementor\Modules\AtomicWidgets\CssConverter; |
| 4 | 4 | |
| 5 | 5 | use Elementor\Modules\AtomicWidgets\CssConverter\Expanders\Background_Shorthand_Expander; |
| 6 | 6 | use Elementor\Modules\AtomicWidgets\CssConverter\Expanders\Border_Shorthand_Expander; |
| 7 | +use Elementor\Modules\AtomicWidgets\CssConverter\Expanders\Outline_Shorthand_Expander; | |
| 7 | 8 | use Elementor\Modules\AtomicWidgets\CssConverter\Expanders\Physical_To_Logical_Expander; |
| 8 | 9 | use Elementor\Modules\AtomicWidgets\Styles\Style_Schema; |
| 9 | 10 | use Elementor\Modules\Variables\Services\Variables_Service; |
| 10 | 11 | |
| @@ -21,8 +22,9 @@ | ||
| 21 | 22 | |
| 22 | 23 | $registry = ( new Expander_Registry() ) |
| 23 | 24 | ->register( new Physical_To_Logical_Expander() ) |
| 24 | 25 | ->register( new Background_Shorthand_Expander( $variables_service ) ) |
| 26 | + ->register( new Outline_Shorthand_Expander() ) | |
| 25 | 27 | ->register( new Border_Shorthand_Expander( 'border', self::border_longhands( '' ), $style_enum, $variables_service ) ); |
| 26 | 28 | |
| 27 | 29 | foreach ( self::BORDER_SIDES as $side ) { |
| 28 | 30 | $registry->register( |
| @@ -38,9 +40,9 @@ | ||
| 38 | 40 | * shorthand. Per-side style/color have no converter and route to custom_css. |
| 39 | 41 | * |
| 40 | 42 | * @return array<string, string> |
| 41 | 43 | */ |
| 42 | - private static function border_longhands( string $infix ): array { | |
| 44 | + public static function border_longhands( string $infix ): array { | |
| 43 | 45 | return [ |
| 44 | 46 | Border_Shorthand_Expander::ROLE_WIDTH => "border-{$infix}width", |
| 45 | 47 | Border_Shorthand_Expander::ROLE_STYLE => "border-{$infix}style", |
| 46 | 48 | Border_Shorthand_Expander::ROLE_COLOR => "border-{$infix}color", |