PluginProbe
Elementor Website Builder – more than just a page builder / 3.32.2
Elementor Website Builder – more than just a page builder v3.32.2
4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 4.0.7 All 451 releases
← All changes | modules/variables/classes/fonts.php +5 -5 4.0.83.32.2 View file →
@@ -1,12 +1,12 @@
1 1 <?php
2 2
3 3 namespace Elementor\Modules\Variables\Classes;
4 4
5 -use Elementor\Modules\Variables\Services\Variables_Service;
6 5 use Elementor\Plugin;
7 6 use Elementor\Core\Files\CSS\Post as Post_CSS;
8 7 use Elementor\Modules\Variables\PropTypes\Font_Variable_Prop_Type;
8 +use Elementor\Modules\Variables\Storage\Repository as Variables_Repository;
9 9
10 10 if ( ! defined( 'ABSPATH' ) ) {
11 11 exit; // Exit if accessed directly.
12 12 }
@@ -11,12 +11,12 @@
11 11 exit; // Exit if accessed directly.
12 12 }
13 13
14 14 class Fonts {
15 - private Variables_Service $service;
15 + private Variables_Repository $repository;
16 16
17 - public function __construct( Variables_Service $service ) {
18 - $this->service = $service;
17 + public function __construct( Variables_Repository $repository ) {
18 + $this->repository = $repository;
19 19 }
20 20
21 21 public function append_to( Post_CSS $post_css ) {
22 22 if ( ! Plugin::$instance->kits_manager->is_kit( $post_css->get_post_id() ) ) {
@@ -22,9 +22,9 @@
22 22 if ( ! Plugin::$instance->kits_manager->is_kit( $post_css->get_post_id() ) ) {
23 23 return;
24 24 }
25 25
26 - $list_of_variables = $this->service->get_variables_list();
26 + $list_of_variables = $this->repository->variables();
27 27
28 28 foreach ( $list_of_variables as $variable ) {
29 29 if ( Font_Variable_Prop_Type::get_key() !== $variable['type'] ) {
30 30 continue;