REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 2.40 KB
Close
/home/nshryvcy/radiantskinclinics.org/wp-content/plugins/elementor/modules/atomic-widgets/styles/style-states.php
Text
Base64
<?php namespace Elementor\Modules\AtomicWidgets\Styles; class Style_States { const HOVER = 'hover'; const ACTIVE = 'active'; const FOCUS = 'focus'; const FOCUS_VISIBLE = 'focus-visible'; const CHECKED = 'checked'; const SELECTED = 'e--selected'; private static function get_pseudo_states(): array { return [ self::HOVER, self::ACTIVE, self::FOCUS, self::FOCUS_VISIBLE, self::CHECKED, ]; } private static function get_class_states(): array { return [ self::SELECTED, ]; } private static function get_additional_states_map(): array { return [ self::HOVER => [ self::FOCUS_VISIBLE ], ]; } public static function get_selector_with_state( string $base_selector, string $state ): string { $additional_states = self::get_additional_states( $state ); $all_states = [ $state, ...$additional_states ]; foreach ( $all_states as $current_state ) { $selector_strings[] = $base_selector . self::get_state_selector( $current_state ); } return implode( ',', $selector_strings ); } public static function get_additional_states( string $state ): array { return self::get_additional_states_map()[ $state ] ?? []; } public static function get_state_selector( string $state ): string { if ( self::is_class_state( $state ) ) { return '.' . $state; } if ( self::is_pseudo_state( $state ) ) { return ':' . $state; } return $state; } public static function get_valid_states(): array { return [ ...array_filter( self::get_pseudo_states(), function ( $state ) { return ! in_array( $state, self::get_additional_states_map()[ $state ] ?? [], true ); } ), ...self::get_class_states(), null, ]; } public static function is_pseudo_state( string $state ): bool { return in_array( $state, self::get_pseudo_states(), true ); } public static function is_class_state( string $state ): bool { return in_array( $state, self::get_class_states(), true ); } public static function is_valid_state( $state ): bool { if ( null === $state ) { return true; } return is_string( $state ) && in_array( $state, self::get_valid_states(), true ); } public static function get_class_states_map(): array { return [ 'selected' => [ 'name' => 'selected', 'value' => self::SELECTED, ], ]; } public static function get_pseudo_states_map(): array { return [ 'checked' => [ 'name' => 'checked', 'value' => self::CHECKED, ], ]; } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 1 × Files: 12
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
cache-validity
DIR
-
drwxr-xr-x
2026-06-10 02:40:26
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
atomic-styles-manager.php
7.27 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
atomic-widget-base-styles.php
1.21 KB
lrw-r--r--
2025-12-22 17:25:58
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
atomic-widget-styles.php
3.77 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
css-files-manager.php
2.41 KB
lrw-r--r--
2025-12-22 17:25:58
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
size-constants.php
5.80 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-definition.php
759 B
lrw-r--r--
2025-03-17 17:28:54
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
style-file.php
946 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
style-fonts.php
1.16 KB
lrw-r--r--
2025-12-22 17:25:58
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
style-schema.php
16.99 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-states.php
2.40 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
style-variant.php
898 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
styles-renderer.php
5.03 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
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).