← All changes
|
app/modules/import-export-customization/module.php
+5
-20
4.1.0-beta1
→
3.35.7
View file →
| @@ -6,12 +6,9 @@ | ||
| 6 | 6 | use Elementor\App\Modules\ImportExportCustomization\Processes\Revert; |
| 7 | 7 | use Elementor\Core\Base\Module as BaseModule; |
| 8 | 8 | use Elementor\Core\Files\Uploads_Manager; |
| 9 | 9 | use Elementor\Modules\CloudKitLibrary\Module as CloudKitLibrary; |
| 10 | -use Elementor\Modules\GlobalClasses\Global_Classes_REST_API; | |
| 11 | 10 | use Elementor\Modules\System_Info\Reporters\Server; |
| 12 | -use Elementor\Modules\Variables\Storage\Constants; | |
| 13 | -use Elementor\Modules\Variables\Storage\Variables_Collection; | |
| 14 | 11 | use Elementor\Plugin; |
| 15 | 12 | use Elementor\Tools; |
| 16 | 13 | use Elementor\Utils as ElementorUtils; |
| 17 | 14 | use Elementor\App\Modules\ImportExportCustomization\Utils as ImportExportUtils; |
| @@ -248,9 +245,13 @@ | ||
| 248 | 245 | <?php |
| 249 | 246 | } |
| 250 | 247 | |
| 251 | 248 | private function print_item_content( $data ) { |
| 252 | - $container_classes = 'tab-import-export-kit__container e-editor-one'; | |
| 249 | + $is_editor_one_enabled = Plugin::$instance->experiments->is_feature_active( 'e_editor_one' ); | |
| 250 | + $container_classes = 'tab-import-export-kit__container'; | |
| 251 | + if ( $is_editor_one_enabled ) { | |
| 252 | + $container_classes .= ' e-editor-one'; | |
| 253 | + } | |
| 253 | 254 | ?> |
| 254 | 255 | <div class="<?php echo esc_attr( $container_classes ); ?>"> |
| 255 | 256 | <div class="tab-import-export-kit__box"> |
| 256 | 257 | <h2><?php ElementorUtils::print_unescaped_internal_string( $data['title'] ); ?></h2> |
| @@ -633,9 +634,8 @@ | ||
| 633 | 634 | 'exportGroups' => $this->get_export_groups(), |
| 634 | 635 | 'manifestVersion' => self::FORMAT_VERSION, |
| 635 | 636 | 'elementorVersion' => ELEMENTOR_VERSION, |
| 636 | 637 | 'upgradeVersionUrl' => admin_url( 'plugins.php' ), |
| 637 | - 'limits' => $this->get_limits(), | |
| 638 | 638 | ]; |
| 639 | 639 | } |
| 640 | 640 | |
| 641 | 641 | private function get_elementor_ui_theme_preference() { |
| @@ -652,23 +652,8 @@ | ||
| 652 | 652 | $export_groups[ $name ] = defined( $document_type . '::EXPORT_GROUP' ) ? $document_type::EXPORT_GROUP : ''; |
| 653 | 653 | } |
| 654 | 654 | |
| 655 | 655 | return $export_groups; |
| 656 | - } | |
| 657 | - | |
| 658 | - private function get_limits() { | |
| 659 | - $classes_limit = class_exists( Global_Classes_REST_API::class ) | |
| 660 | - ? Global_Classes_REST_API::MAX_ITEMS | |
| 661 | - : 100; | |
| 662 | - | |
| 663 | - $variables_limit = class_exists( Constants::class ) | |
| 664 | - ? Constants::TOTAL_VARIABLES_COUNT | |
| 665 | - : 100; | |
| 666 | - | |
| 667 | - return [ | |
| 668 | - 'classes' => $classes_limit, | |
| 669 | - 'variables' => $variables_limit, | |
| 670 | - ]; | |
| 671 | 656 | } |
| 672 | 657 | |
| 673 | 658 | /** |
| 674 | 659 | * Get labels of Elementor document types, Elementor Post types, WordPress Post types and Custom Post types. |