| @@ -3,9 +3,9 @@ | ||
| 3 | 3 | |
| 4 | 4 | use Elementor\Core\Experiments\Manager as Experiments_Manager; |
| 5 | 5 | |
| 6 | 6 | if ( ! defined( 'ABSPATH' ) ) { |
| 7 | - exit; // Exit if accessed directly. | |
| 7 | + exit; // Exit if accessed directly | |
| 8 | 8 | } |
| 9 | 9 | |
| 10 | 10 | class Module extends \Elementor\Core\Base\Module { |
| 11 | 11 | |
| @@ -13,19 +13,24 @@ | ||
| 13 | 13 | |
| 14 | 14 | public static function get_experimental_data() { |
| 15 | 15 | return [ |
| 16 | 16 | 'name' => self::EXPERIMENT_NAME, |
| 17 | + 'tag' => esc_html__( 'Feature', 'elementor' ), | |
| 17 | 18 | 'title' => esc_html__( 'Nested Elements', 'elementor' ), |
| 18 | 19 | 'description' => sprintf( |
| 19 | - '%1$s <a href="https://go.elementor.com/wp-dash-nested-elements/" target="_blank">%2$s</a>', | |
| 20 | - 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' ), | |
| 21 | - esc_html__( 'Learn more', 'elementor' ) | |
| 20 | + 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. %1$sLearn More%2$s', 'elementor' ), | |
| 21 | + '<a href="https://go.elementor.com/wp-dash-nested-elements/" target="_blank">', | |
| 22 | + '</a>' | |
| 22 | 23 | ), |
| 23 | - 'release_status' => Experiments_Manager::RELEASE_STATUS_STABLE, | |
| 24 | - 'default' => Experiments_Manager::STATE_ACTIVE, | |
| 24 | + 'release_status' => Experiments_Manager::RELEASE_STATUS_BETA, | |
| 25 | + 'default' => Experiments_Manager::STATE_INACTIVE, | |
| 25 | 26 | 'dependencies' => [ |
| 26 | 27 | 'container', |
| 27 | 28 | ], |
| 29 | + 'new_site' => [ | |
| 30 | + 'default_active' => false, | |
| 31 | + 'minimum_installation_version' => '3.10.0', | |
| 32 | + ], | |
| 28 | 33 | ]; |
| 29 | 34 | } |
| 30 | 35 | |
| 31 | 36 | public function get_name() { |
| @@ -34,9 +39,9 @@ | ||
| 34 | 39 | |
| 35 | 40 | public function __construct() { |
| 36 | 41 | parent::__construct(); |
| 37 | 42 | |
| 38 | - add_action( 'elementor/controls/register', function ( $controls_manager ) { | |
| 43 | + add_action( 'elementor/controls/controls_registered', function ( $controls_manager ) { | |
| 39 | 44 | $controls_manager->register( new Controls\Control_Nested_Repeater() ); |
| 40 | 45 | } ); |
| 41 | 46 | |
| 42 | 47 | add_action( 'elementor/editor/before_enqueue_scripts', function () { |