← All changes
|
app/modules/import-export-customization/module.php
+2
-27
4.2.1
→
3.34.1
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; |
| @@ -160,15 +157,10 @@ | ||
| 160 | 157 | ], |
| 161 | 158 | ]; |
| 162 | 159 | |
| 163 | 160 | if ( $is_cloud_kits_available ) { |
| 164 | - $return_to_url = Tools::get_url() . '#tab-import-export-kit'; | |
| 165 | - $kit_library_url = add_query_arg( | |
| 166 | - [ 'return_to' => rawurlencode( $return_to_url ) ], | |
| 167 | - Plugin::$instance->app->get_base_url() . '#/kit-library/cloud' | |
| 168 | - ); | |
| 169 | 161 | $content_data['import']['button_secondary'] = [ |
| 170 | - 'url' => $kit_library_url, | |
| 162 | + 'url' => Plugin::$instance->app->get_base_url() . '#/kit-library/cloud', | |
| 171 | 163 | 'text' => esc_html__( 'Import from library', 'elementor' ), |
| 172 | 164 | 'id' => 'elementor-import-export__import_from_library', |
| 173 | 165 | ]; |
| 174 | 166 | } |
| @@ -248,11 +240,10 @@ | ||
| 248 | 240 | <?php |
| 249 | 241 | } |
| 250 | 242 | |
| 251 | 243 | private function print_item_content( $data ) { |
| 252 | - $container_classes = 'tab-import-export-kit__container e-editor-one'; | |
| 253 | 244 | ?> |
| 254 | - <div class="<?php echo esc_attr( $container_classes ); ?>"> | |
| 245 | + <div class="tab-import-export-kit__container"> | |
| 255 | 246 | <div class="tab-import-export-kit__box"> |
| 256 | 247 | <h2><?php ElementorUtils::print_unescaped_internal_string( $data['title'] ); ?></h2> |
| 257 | 248 | </div> |
| 258 | 249 | <p class="description"><?php ElementorUtils::print_unescaped_internal_string( $data['description'] ); ?></p> |
| @@ -633,9 +624,8 @@ | ||
| 633 | 624 | 'exportGroups' => $this->get_export_groups(), |
| 634 | 625 | 'manifestVersion' => self::FORMAT_VERSION, |
| 635 | 626 | 'elementorVersion' => ELEMENTOR_VERSION, |
| 636 | 627 | 'upgradeVersionUrl' => admin_url( 'plugins.php' ), |
| 637 | - 'limits' => $this->get_limits(), | |
| 638 | 628 | ]; |
| 639 | 629 | } |
| 640 | 630 | |
| 641 | 631 | private function get_elementor_ui_theme_preference() { |
| @@ -652,23 +642,8 @@ | ||
| 652 | 642 | $export_groups[ $name ] = defined( $document_type . '::EXPORT_GROUP' ) ? $document_type::EXPORT_GROUP : ''; |
| 653 | 643 | } |
| 654 | 644 | |
| 655 | 645 | 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 | 646 | } |
| 672 | 647 | |
| 673 | 648 | /** |
| 674 | 649 | * Get labels of Elementor document types, Elementor Post types, WordPress Post types and Custom Post types. |