| @@ -3,9 +3,9 @@ | ||
| 3 | 3 | namespace Elementor\App\Modules\ImportExport; |
| 4 | 4 | |
| 5 | 5 | use Elementor\Core\Utils\Str; |
| 6 | 6 | use Elementor\Modules\LandingPages\Module as Landing_Pages_Module; |
| 7 | -use Elementor\Modules\FloatingButtons\Module as Floating_Buttons_Module; | |
| 7 | +use Elementor\Modules\System_Info\Reporters\Server; | |
| 8 | 8 | use Elementor\TemplateLibrary\Source_Local; |
| 9 | 9 | use Elementor\Utils as ElementorUtils; |
| 10 | 10 | |
| 11 | 11 | class Utils { |
| @@ -58,14 +58,9 @@ | ||
| 58 | 58 | return $result; |
| 59 | 59 | } |
| 60 | 60 | |
| 61 | 61 | public static function get_elementor_post_types() { |
| 62 | - $elementor_post_types = get_post_types_by_support( 'elementor' ); | |
| 63 | - | |
| 64 | - return array_filter( $elementor_post_types, function ( $value ) { | |
| 65 | - // Templates are handled in a separate process. | |
| 66 | - return 'elementor_library' !== $value; | |
| 67 | - } ); | |
| 62 | + return [ 'post', 'page', 'e-landing-page' ]; | |
| 68 | 63 | } |
| 69 | 64 | |
| 70 | 65 | public static function get_builtin_wp_post_types() { |
| 71 | 66 | return [ 'post', 'page', 'nav_menu_item' ]; |
| @@ -79,10 +74,9 @@ | ||
| 79 | 74 | ] ); |
| 80 | 75 | |
| 81 | 76 | unset( |
| 82 | 77 | $post_types[ Landing_Pages_Module::CPT ], |
| 83 | - $post_types[ Source_Local::CPT ], | |
| 84 | - $post_types[ Floating_Buttons_Module::CPT_FLOATING_BUTTONS ] | |
| 78 | + $post_types[ Source_Local::CPT ] | |
| 85 | 79 | ); |
| 86 | 80 | |
| 87 | 81 | return array_keys( $post_types ); |
| 88 | 82 | } |
| @@ -119,22 +113,6 @@ | ||
| 119 | 113 | update_option( Module::OPTION_KEY_ELEMENTOR_IMPORT_SESSIONS, $import_sessions ); |
| 120 | 114 | } |
| 121 | 115 | |
| 122 | 116 | return $import_sessions; |
| 123 | - } | |
| 124 | - | |
| 125 | - public static function update_space_between_widgets_values( $space_between_widgets ) { | |
| 126 | - $setting_exist = isset( $space_between_widgets['size'] ); | |
| 127 | - $already_processed = isset( $space_between_widgets['column'] ); | |
| 128 | - | |
| 129 | - if ( ! $setting_exist || $already_processed ) { | |
| 130 | - return $space_between_widgets; | |
| 131 | - } | |
| 132 | - | |
| 133 | - $size = strval( $space_between_widgets['size'] ); | |
| 134 | - $space_between_widgets['column'] = $size; | |
| 135 | - $space_between_widgets['row'] = $size; | |
| 136 | - $space_between_widgets['isLinked'] = true; | |
| 137 | - | |
| 138 | - return $space_between_widgets; | |
| 139 | 117 | } |
| 140 | 118 | } |