Server IP : 104.21.93.192 / Your IP : 216.73.216.73 Web Server : LiteSpeed System : Linux premium900.web-hosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 User : redwjova ( 1790) PHP Version : 8.1.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/redwjova/clevorio.com/wp-content/plugins/elementor/modules/variables/classes/ |
Upload File : |
<?php namespace Elementor\Modules\Variables\Classes; 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 { public function append_to( Post_CSS $post_css ) { if ( ! Plugin::$instance->kits_manager->is_kit( $post_css->get_post_id() ) ) { return; } $list_of_variables = ( new Variables() )->get_all(); 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; } }