first commit

This commit is contained in:
Roman Pyrih
2026-03-03 13:20:21 +01:00
commit 755af5f0b0
7281 changed files with 2666421 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
<?php
namespace Elementor\Modules\Variables\Classes;
use Elementor\Modules\Variables\Services\Variables_Service;
use Elementor\Modules\Variables\Storage\Repository as Variables_Repository;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
class Variables {
private static $lookup = [];
public static function init( Variables_Service $service ) {
self::$lookup = $service->get_variables_list();
}
public static function by_id( string $id ) {
return self::$lookup[ $id ] ?? null;
}
}