[ SYSTEM ]: Linux wordpress 6.1.0-41-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.158-1 (2025-11-09) x86_64
[ SERVER ]: Apache/2.4.66 (Debian) | PHP: 8.2.30
[ USER ]: www-data | IP: 172.19.30.54
GEFORCE FILE MANAGER
/
var
/
www
/
html
/
wordpress
/
wp-content
/
plugins
/
elementor
/
modules
/
variables
/
classes
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📄 fonts.php
1,005 B
SET
[ EDIT ]
|
[ DEL ]
📄 size-style-schema.php
2,459 B
SET
[ EDIT ]
|
[ DEL ]
📄 style-schema.php
3,033 B
SET
[ EDIT ]
|
[ DEL ]
📄 style-transformers.php
772 B
SET
[ EDIT ]
|
[ DEL ]
📄 variable-types-registry.php
560 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: fonts.php
<?php namespace Elementor\Modules\Variables\Classes; use Elementor\Modules\Variables\Services\Variables_Service; use Elementor\Plugin; use Elementor\Core\Files\CSS\Post as Post_CSS; use Elementor\Modules\Variables\PropTypes\Font_Variable_Prop_Type; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } class Fonts { private Variables_Service $service; public function __construct( Variables_Service $service ) { $this->service = $service; } public function append_to( Post_CSS $post_css ) { if ( ! Plugin::$instance->kits_manager->is_kit( $post_css->get_post_id() ) ) { return; } $list_of_variables = $this->service->get_variables_list(); foreach ( $list_of_variables as $variable ) { if ( Font_Variable_Prop_Type::get_key() !== $variable['type'] ) { continue; } $font_family = sanitize_text_field( $variable['value'] ?? '' ); if ( empty( $font_family ) ) { continue; } $post_css->add_font( $font_family ); } return $this; } }