__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?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;
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| css-renderer.php | File | 1.61 KB | 0775 |
|
| fonts.php | File | 1005 B | 0775 |
|
| rest-api.php | File | 16.76 KB | 0775 |
|
| size-style-schema.php | File | 2.4 KB | 0775 |
|
| style-schema.php | File | 2.96 KB | 0775 |
|
| style-transformers.php | File | 772 B | 0775 |
|
| variable-types-registry.php | File | 560 B | 0775 |
|
| variables.php | File | 518 B | 0775 |
|