__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ 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\Plugin;
use Elementor\Core\Files\CSS\Post as Post_CSS;
use Elementor\Modules\Variables\PropTypes\Font_Variable_Prop_Type;
use Elementor\Modules\Variables\Storage\Repository as Variables_Repository;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
class Fonts {
private Variables_Repository $repository;
public function __construct( Variables_Repository $repository ) {
$this->repository = $repository;
}
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->repository->variables();
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.64 KB | 0640 |
|
| fonts.php | File | 1.01 KB | 0640 |
|
| rest-api.php | File | 16.05 KB | 0640 |
|
| style-schema.php | File | 2.72 KB | 0640 |
|
| style-transformers.php | File | 772 B | 0640 |
|
| variable-types-registry.php | File | 698 B | 0640 |
|
| variables.php | File | 458 B | 0640 |
|