PluginProbe
Enter Addons – Ultimate Template Builder for Elementor / 2.2.5
Enter Addons – Ultimate Template Builder for Elementor v2.2.5
trunk 2.2.10 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 2.2.7 2.2.8 2.2.9 2.3.0 2.3.1 2.3.2 2.3.3 2.3.4
enteraddons / core / base / Elements_Map.php

Elements_Map.php in Enter Addons – Ultimate Template Builder for Elementor 2.2.5, at core/base/Elements_Map.php

56 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace Enteraddons\Core\Base;
3 /**
4 * Enteraddons admin class
5 *
6 * @package Enteraddons
7 * @author ThemeLooks
8 * @copyright 2022 ThemeLooks
9 * @license GPL-2.0-or-later
10 *
11 *
12 */
13
14
15
16 if( !defined( 'WPINC' ) ) {
17 die;
18 }
19
20 if( !class_exists('Elements_Map') ) {
21
22 class Elements_Map {
23
24 private static $listPro;
25 private static $listLite;
26
27 function __construct() {
28 $this->init();
29 }
30
31 public function init() {
32 $this->setElements();
33 }
34
35 public function elements_maping() {
36 $liteElements = self::$listLite;
37 $proElements = self::$listPro;
38 $elements = wp_parse_args( $proElements, $liteElements );
39 return $elements;
40 }
41
42 public function setElements() {
43 $elements = $this->getElements();
44 self::$listPro = $elements['pro_list'];
45 self::$listLite = $elements['Lite_list'];
46 }
47
48 public function getElements() {}
49
50 public function getAllElements() {
51 return $this->elements_maping();
52 }
53
54 }
55
56 }