Linux hkvL61zh9Vexzf 3.10.0-957.1.3.el7.x86_64 #1 SMP Thu Nov 29 14:49:43 UTC 2018 x86_64 Path : /www/wwwroot/fashion-kingdom.com/wp-content/plugins/kitify/inc/modules/nested-elements/ |
Current File : /www/wwwroot/fashion-kingdom.com/wp-content/plugins/kitify/inc/modules/nested-elements/module.php |
<?php namespace KitifyThemeBuilder\Modules\NestedElements; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } class Module extends \Elementor\Core\Base\Module { public static function is_active() { return kitify()->elementor()->experiments->is_feature_active('container'); } public function get_name() { return 'nested-elements'; } public function before_enqueue_scripts(){ if(! kitify()->elementor()->experiments->is_feature_active( 'nested-elements', true )){ wp_register_script( $this->get_name(), kitify()->plugin_url('inc/modules/nested-elements/assets/js/bk/nested-elements.min.js'), [ 'elementor-common', ], ELEMENTOR_VERSION, true ); } wp_enqueue_script( 'kitify-nested-carousel-editor', kitify()->plugin_url('inc/modules/nested-elements/assets/js/nested-carousel-editor.min.js'), [ $this->get_name() ], ELEMENTOR_VERSION, true ); wp_enqueue_script( 'kitify-nested-tabs-editor', kitify()->plugin_url('inc/modules/nested-elements/assets/js/nested-tabs-editor.min.js'), [ $this->get_name() ], ELEMENTOR_VERSION, true ); } public function __construct() { parent::__construct(); add_action( 'elementor/controls/register', function ( $controls_manager ) { $controls_manager->register( new Controls\Control_Nested_Repeater() ); } ); add_action( 'elementor/widgets/register', function ($widgets_manager){ $widgets_manager->register( new Widgets\Nested_Tabs() ); $widgets_manager->register( new Widgets\Nested_Carousel() ); } ); add_action( 'elementor/editor/before_enqueue_scripts', [ $this, 'before_enqueue_scripts' ] ); } }