PluginProbe
Sky Addons for Elementor / trunk
Sky Addons for Elementor vtrunk
4.0.0 3.8.5 3.8.4 3.8.3 3.8.2 3.8.0 3.8.1 3.3.3 3.3.2 trunk 1.0.0 1.0.10 1.0.2 1.0.6 1.0.7 1.0.8 1.0.9 1.5.0 2.0.0 2.0.8 2.5.10 2.5.11 2.5.12 2.5.13 2.5.15 All 53 releases
sky-elementor-addons / includes / features / class-init.php

class-init.php in Sky Addons for Elementor trunk, at includes/features/class-init.php

51 lines 1.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Sky_Addons\Features;
4
5 defined( 'ABSPATH' ) || exit;
6
7 class Init {
8 private static $instance = null;
9
10 private function __construct() {
11 /**
12 * Duplicator
13 */
14 if ( \Sky_Addons\Managers::is_advanced_feature_active( 'duplicator' ) ) {
15 require_once SKY_ADDONS_INC_PATH . 'features/class-duplicator.php';
16 \Sky_Addons\Features\Duplicator::get_instance();
17 }
18
19 /**
20 * SVG Support
21 */
22 if ( \Sky_Addons\Managers::is_advanced_feature_active( 'svg-support' ) ) {
23 require_once SKY_ADDONS_INC_PATH . 'features/class-svg-support.php';
24 \Sky_Addons\Features\Svg_Support::get_instance();
25 }
26
27 /**
28 * Video Link
29 */
30 if ( \Sky_Addons\Managers::is_advanced_feature_active( 'video-link' ) ) {
31 require_once SKY_ADDONS_INC_PATH . 'features/class-video-link.php';
32 \Sky_Addons\Features\Video_Link::get_instance();
33 }
34
35 /**
36 * Menu Duplicator — ships disabled by default.
37 */
38 if ( \Sky_Addons\Managers::is_advanced_feature_active( 'menu-duplicator' ) ) {
39 require_once SKY_ADDONS_INC_PATH . 'features/class-menu-duplicator.php';
40 \Sky_Addons\Features\Menu_Duplicator::get_instance();
41 }
42 }
43
44 public static function get_instance() {
45 if ( null === self::$instance ) {
46 self::$instance = new self();
47 }
48 return self::$instance;
49 }
50 }
51