| @@ -1,9 +1,9 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | namespace Elementor\Modules\Library; |
| 3 | 3 | |
| 4 | 4 | use Elementor\Core\Base\Module as BaseModule; |
| 5 | -use Elementor\Modules\AtomicWidgets\Module as AtomicWidgets_Module; | |
| 5 | +use Elementor\Modules\Library\Documents; | |
| 6 | 6 | use Elementor\Plugin; |
| 7 | 7 | |
| 8 | 8 | if ( ! defined( 'ABSPATH' ) ) { |
| 9 | 9 | exit; // Exit if accessed directly. |
| @@ -41,21 +41,10 @@ | ||
| 41 | 41 | * @since 2.0.0 |
| 42 | 42 | * @access public |
| 43 | 43 | */ |
| 44 | 44 | public function __construct() { |
| 45 | - add_action( 'elementor/documents/register', [ $this, 'register_documents' ] ); | |
| 46 | - } | |
| 47 | - | |
| 48 | - public function register_documents() { | |
| 49 | 45 | Plugin::$instance->documents |
| 50 | 46 | ->register_document_type( 'not-supported', Documents\Not_Supported::get_class_full_name() ) |
| 51 | 47 | ->register_document_type( 'page', Documents\Page::get_class_full_name() ) |
| 52 | 48 | ->register_document_type( 'section', Documents\Section::get_class_full_name() ); |
| 53 | - | |
| 54 | - $experiments_manager = Plugin::$instance->experiments; | |
| 55 | - | |
| 56 | - if ( $experiments_manager->is_feature_active( 'container' ) ) { | |
| 57 | - Plugin::$instance->documents | |
| 58 | - ->register_document_type( 'container', Documents\Container::get_class_full_name() ); | |
| 59 | - } | |
| 60 | 49 | } |
| 61 | 50 | } |