REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 2.96 KB
Close
/home/nshryvcy/radiantskinclinics.org/wp-content/plugins/elementor/modules/variables/classes/style-schema.php
Text
Base64
<?php namespace Elementor\Modules\Variables\Classes; use Elementor\Modules\AtomicWidgets\PropTypes\Base\Array_Prop_Type; use Elementor\Modules\AtomicWidgets\PropTypes\Base\Object_Prop_Type; use Elementor\Modules\AtomicWidgets\PropTypes\Primitives\String_Prop_Type; use Elementor\Modules\AtomicWidgets\PropTypes\Color_Prop_Type; use Elementor\Modules\AtomicWidgets\PropTypes\Union_Prop_Type; use Elementor\Modules\Variables\PropTypes\Color_Variable_Prop_Type; use Elementor\Modules\Variables\PropTypes\Font_Variable_Prop_Type; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } class Style_Schema { public function augment( array $schema ): array { foreach ( $schema as $key => $prop_type ) { $schema[ $key ] = $this->update( $prop_type ); if ( method_exists( $prop_type, 'get_meta' ) && method_exists( $schema[ $key ], 'meta' ) ) { $meta = $schema[ $key ]->get_meta() ?? []; foreach ( $meta as $meta_key => $meta_value ) { $schema[ $key ]->meta( $meta_key, $meta_value ); } } } if ( isset( $schema['font-family'] ) ) { $schema['font-family'] = $this->update_font_family( $schema['font-family'] ); } return $schema; } private function update( $prop_type ) { if ( $prop_type instanceof Color_Prop_Type ) { return $this->update_color( $prop_type ); } if ( $prop_type instanceof Union_Prop_Type ) { return $this->update_union( $prop_type ); } if ( $prop_type instanceof Object_Prop_Type ) { return $this->update_object( $prop_type ); } if ( $prop_type instanceof Array_Prop_Type ) { return $this->update_array( $prop_type ); } return $prop_type; } private function update_font_family( $prop_type ): Union_Prop_Type { if ( $prop_type instanceof String_Prop_Type ) { return Union_Prop_Type::create_from( $prop_type ) ->add_prop_type( Font_Variable_Prop_Type::make() ); } if ( $prop_type instanceof Union_Prop_Type ) { $prop_type->add_prop_type( Font_Variable_Prop_Type::make() ); } return $prop_type; } private function update_color( Color_Prop_Type $color_prop_type ): Union_Prop_Type { return Union_Prop_Type::create_from( $color_prop_type ) ->add_prop_type( Color_Variable_Prop_Type::make() ); } private function update_array( Array_Prop_Type $array_prop_type ): Array_Prop_Type { return $array_prop_type->set_item_type( $this->update( $array_prop_type->get_item_type() ) ); } private function update_object( Object_Prop_Type $object_prop_type ): Object_Prop_Type { return $object_prop_type->set_shape( $this->augment( $object_prop_type->get_shape() ) ); } private function update_union( Union_Prop_Type $union_prop_type ): Union_Prop_Type { foreach ( $union_prop_type->get_prop_types() as $prop_type ) { $updated = $this->update( $prop_type ); if ( $updated instanceof Union_Prop_Type ) { foreach ( $updated->get_prop_types() as $updated_prop_type ) { $union_prop_type->add_prop_type( $updated_prop_type ); } } } return $union_prop_type; } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 8
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
css-renderer.php
1.74 KB
lrw-r--r--
2026-03-30 13:49:26
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
fonts.php
1005 B
lrw-r--r--
2025-12-22 17:25:58
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
rest-api.php
16.76 KB
lrw-r--r--
2026-02-02 14:52:12
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
size-style-schema.php
2.69 KB
lrw-r--r--
2026-05-20 16:19:28
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
style-schema.php
2.96 KB
lrw-r--r--
2026-02-02 14:52:12
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
style-transformers.php
772 B
lrw-r--r--
2025-08-05 18:00:00
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
variable-types-registry.php
560 B
lrw-r--r--
2026-02-02 14:52:12
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
variables.php
518 B
lrw-r--r--
2025-12-22 17:25:58
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).