REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 1.74 KB
Close
/home/nshryvcy/radiantskinclinics.org/wp-content/plugins/elementor/modules/variables/classes/css-renderer.php
Text
Base64
<?php namespace Elementor\Modules\Variables\Classes; use Elementor\Modules\Variables\Services\Variables_Service; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } class CSS_Renderer { private Variables_Service $service; public function __construct( Variables_Service $service ) { $this->service = $service; } private function global_variables(): array { return $this->service->get_variables_list(); } public function raw_css(): string { $list_of_variables = $this->global_variables(); if ( empty( $list_of_variables ) ) { return ''; } $css_entries = $this->css_entries_for( $list_of_variables ); if ( empty( $css_entries ) ) { return ''; } return $this->wrap_with_root( $css_entries ); } private function css_entries_for( array $list_of_variables ): array { $entries = []; foreach ( $list_of_variables as $variable_id => $variable ) { $entry = $this->build_css_variable_entry( $variable_id, $variable ); if ( empty( $entry ) ) { continue; } $entries[] = $entry; } return $entries; } private function build_css_variable_entry( string $id, array $variable ): ?string { $variable_name = sanitize_text_field( $id ); if ( ! array_key_exists( 'deleted_at', $variable ) ) { $variable_name = sanitize_text_field( $variable['label'] ?? '' ); } $value = sanitize_text_field( $variable['value'] ?? '' ); if ( empty( $value ) || empty( $variable_name ) ) { return null; } $entry = "--{$variable_name}:{$value};"; $additional = apply_filters( 'elementor/variables/css_entry_additional', '', $variable, $id ); return $entry . $additional; } private function wrap_with_root( array $css_entries ): string { return ':root { ' . implode( ' ', $css_entries ) . ' }'; } }
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).