Current Path: > home > transcarter > > www > > wp-content > plugins > elementor > modules > > variables > > > classes
Operation : Linux host59.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64 Software : Apache Server IP : 198.54.126.42 | Your IP: 216.73.216.135 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
css-renderer.php | File | 1442 bytes | July 17 2025 21:06:23. | |
fonts.php | File | 807 bytes | July 17 2025 21:06:23. | |
rest-api.php | File | 9794 bytes | July 17 2025 21:06:23. | |
style-schema.php | File | 2677 bytes | July 17 2025 21:06:23. | |
style-transformers.php | File | 761 bytes | July 17 2025 21:06:23. | |
variables.php | File | 3901 bytes | July 17 2025 21:06:23. |
<?php namespace Elementor\Modules\Variables\Classes; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } class CSS_Renderer { private Variables $variables; public function __construct( Variables $variables ) { $this->variables = $variables; } private function global_variables(): array { return $this->variables->get_all(); } 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 ); $value = sanitize_text_field( $variable['value'] ?? '' ); if ( empty( $value ) || empty( $variable_name ) ) { return null; } return "--{$variable_name}:{$value};"; } private function wrap_with_root( array $css_entries ): string { return ':root { ' . implode( ' ', $css_entries ) . ' }'; } }
SILENT KILLER Tool