Responsive Add Ons - Version 2.4.1

Version Description

  • 28th August 2020 =
  • Fix: Compatibility with Elementor 3.0.0 and above
Download this release

Release Info

Developer cyberchimps
Plugin Icon 128x128 Responsive Add Ons
Version 2.4.1
Comparing to
See all releases

Code changes from version 2.4.0 to 2.4.1

admin/partials/responsive-ready-sites-admin-display.php CHANGED
@@ -329,7 +329,7 @@
329
  </div>
330
  <div class="single-site-footer">
331
  <div class="site-action-buttons-wrap">
332
- <a href="#" class="button button-hero site-preview-button" target="_blank">Preview "{{data.name}}" Site <i class="dashicons dashicons-external"></i></a>
333
  <div class="site-action-buttons-right">
334
  <div style="margin-left: 5px;" class="button button-hero button-primary single-page-import-button-{{{ data.demo_type }}} disabled"><?php esc_html_e( 'Select Template', 'responsive-addons' ); ?></div>
335
  </div>
329
  </div>
330
  <div class="single-site-footer">
331
  <div class="site-action-buttons-wrap">
332
+ <a href="{{{data.demo_api}}}" class="button button-hero site-preview-button" target="_blank">Preview "{{data.name}}" Site <i class="dashicons dashicons-external"></i></a>
333
  <div class="site-action-buttons-right">
334
  <div style="margin-left: 5px;" class="button button-hero button-primary single-page-import-button-{{{ data.demo_type }}} disabled"><?php esc_html_e( 'Select Template', 'responsive-addons' ); ?></div>
335
  </div>
analytics/includes/class-analytics.php CHANGED
@@ -423,7 +423,7 @@ class Analytics {
423
  $deactivation_reasons = array(
424
  array(
425
  'id' => 1,
426
- 'text' => "I couldn't understand how to make it workkkkkkkkkk",
427
  'input_type' => '',
428
  'input_placeholder' => '',
429
  ),
423
  $deactivation_reasons = array(
424
  array(
425
  'id' => 1,
426
+ 'text' => "I couldn't understand how to make it work",
427
  'input_type' => '',
428
  'input_placeholder' => '',
429
  ),
includes/importers/class-responsive-ready-sites-importer.php CHANGED
@@ -73,8 +73,16 @@ if ( ! class_exists( 'Responsive_Ready_Sites_Importer' ) ) :
73
  add_action( 'wp_ajax_responsive-ready-sites-delete-wp-forms', array( $this, 'delete_imported_wp_forms' ) );
74
  add_action( 'wp_ajax_responsive-ready-sites-delete-terms', array( $this, 'delete_imported_terms' ) );
75
 
76
- // Import single page
77
  add_action( 'wp_ajax_responsive-sites-create-page', array( $this, 'import_single_page' ) );
 
 
 
 
 
 
 
 
78
  }
79
 
80
  add_action( 'responsive_ready_sites_import_complete', array( $this, 'clear_cache' ) );
@@ -894,6 +902,53 @@ if ( ! class_exists( 'Responsive_Ready_Sites_Importer' ) ) :
894
  }
895
  }
896
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
897
  }
898
 
899
  /**
73
  add_action( 'wp_ajax_responsive-ready-sites-delete-wp-forms', array( $this, 'delete_imported_wp_forms' ) );
74
  add_action( 'wp_ajax_responsive-ready-sites-delete-terms', array( $this, 'delete_imported_terms' ) );
75
 
76
+ // Import single page.
77
  add_action( 'wp_ajax_responsive-sites-create-page', array( $this, 'import_single_page' ) );
78
+
79
+ if ( ( defined( 'ELEMENTOR_VERSION' ) && version_compare( ELEMENTOR_VERSION, '3.0.0', '>=' ) ) ) {
80
+ remove_filter( 'wp_import_post_meta', array( 'Elementor\Compatibility', 'on_wp_import_post_meta' ) );
81
+ remove_filter( 'wxr_importer.pre_process.post_meta', array( 'Elementor\Compatibility', 'on_wxr_importer_pre_process_post_meta' ) );
82
+
83
+ add_filter( 'wp_import_post_meta', array( $this, 'on_wp_import_post_meta' ) );
84
+ add_filter( 'wxr_importer.pre_process.post_meta', array( $this, 'on_wxr_importer_pre_process_post_meta' ) );
85
+ }
86
  }
87
 
88
  add_action( 'responsive_ready_sites_import_complete', array( $this, 'clear_cache' ) );
902
  }
903
  }
904
  }
905
+
906
+ /**
907
+ * Process post meta before WP importer.
908
+ *
909
+ * Normalize Elementor post meta on import, We need the `wp_slash` in order
910
+ * to avoid the unslashing during the `add_post_meta`.
911
+ *
912
+ * Fired by `wp_import_post_meta` filter.
913
+ *
914
+ * @since 2.4.1
915
+ *
916
+ * @param array $post_meta Post meta.
917
+ *
918
+ * @return array Updated post meta.
919
+ */
920
+ public function on_wp_import_post_meta( $post_meta ) {
921
+ foreach ( $post_meta as &$meta ) {
922
+ if ( '_elementor_data' === $meta['key'] ) {
923
+ $meta['value'] = wp_slash( $meta['value'] );
924
+ break;
925
+ }
926
+ }
927
+
928
+ return $post_meta;
929
+ }
930
+
931
+ /**
932
+ * Process post meta before WXR importer.
933
+ *
934
+ * Normalize Elementor post meta on import with the new WP_importer, We need
935
+ * the `wp_slash` in order to avoid the unslashing during the `add_post_meta`.
936
+ *
937
+ * Fired by `wxr_importer.pre_process.post_meta` filter.
938
+ *
939
+ * @since 2.4.1
940
+ *
941
+ * @param array $post_meta Post meta.
942
+ *
943
+ * @return array Updated post meta.
944
+ */
945
+ public function on_wxr_importer_pre_process_post_meta( $post_meta ) {
946
+ if ( '_elementor_data' === $post_meta['key'] ) {
947
+ $post_meta['value'] = wp_slash( $post_meta['value'] );
948
+ }
949
+
950
+ return $post_meta;
951
+ }
952
  }
953
 
954
  /**
includes/importers/class-responsive-ready-sites-options-importer.php CHANGED
@@ -71,6 +71,8 @@ class Responsive_Ready_Sites_Options_Importer {
71
  'elementor_scheme_typography',
72
  'elementor_space_between_widgets',
73
  'elementor_stretched_section_container',
 
 
74
 
75
  // Plugin: Elementor Pro.
76
  'elementor_pro_theme_builder_conditions',
71
  'elementor_scheme_typography',
72
  'elementor_space_between_widgets',
73
  'elementor_stretched_section_container',
74
+ 'elementor_load_fa4_shim',
75
+ 'elementor_active_kit',
76
 
77
  // Plugin: Elementor Pro.
78
  'elementor_pro_theme_builder_conditions',
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: one click demo import, gutenberg, elementor, templates
5
  Requires at least: 5.0
6
  Tested up to: 5.5
7
  Requires PHP: 5.6
8
- Stable tag: 2.4.0
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -106,6 +106,9 @@ Absolutely not! Once you install the plugin, it will take care of all other depe
106
  4. Your website is ready
107
 
108
  == Changelog ==
 
 
 
109
  = 2.4.0 - 6th July 2020 =
110
  * Feature - Single Page Importer
111
 
5
  Requires at least: 5.0
6
  Tested up to: 5.5
7
  Requires PHP: 5.6
8
+ Stable tag: trunk
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
106
  4. Your website is ready
107
 
108
  == Changelog ==
109
+ = 2.4.1 - 28th August 2020 =
110
+ - Fix: Compatibility with Elementor 3.0.0 and above
111
+
112
  = 2.4.0 - 6th July 2020 =
113
  * Feature - Single Page Importer
114
 
responsive-add-ons.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Responsive Ready Sites Importer
4
  * Plugin URI: http://wordpress.org/plugins/responsive-add-ons/
5
  * Description: Import Responsive Ready Sites that help you launch your website quickly. Just import, update & hit the launch button.
6
- * Version: 2.4.0
7
  * Author: CyberChimps
8
  * License: GPL2
9
  *
@@ -45,7 +45,7 @@ if ( ! defined( 'RESPONSIVE_ADDONS_URI' ) ) {
45
  }
46
 
47
  if ( ! defined( 'RESPONSIVE_ADDONS_VER' ) ) {
48
- define( 'RESPONSIVE_ADDONS_VER', '2.4.0' );
49
  }
50
 
51
  if ( ! function_exists( 'ra_fs' ) ) {
@@ -65,7 +65,7 @@ if ( ! function_exists( 'ra_fs' ) ) {
65
  'slug' => 'responsive-add-ons',
66
  'product_name' => 'Responsive Ready Sites Importer',
67
  'module_type' => 'plugin',
68
- 'version' => '2.4.0',
69
  'plugin_basename' => 'responsive-add-ons/responsive-add-ons.php',
70
  'plugin_url' => RESPONSIVE_ADDONS_DIR_URL,
71
  )
3
  * Plugin Name: Responsive Ready Sites Importer
4
  * Plugin URI: http://wordpress.org/plugins/responsive-add-ons/
5
  * Description: Import Responsive Ready Sites that help you launch your website quickly. Just import, update & hit the launch button.
6
+ * Version: 2.4.1
7
  * Author: CyberChimps
8
  * License: GPL2
9
  *
45
  }
46
 
47
  if ( ! defined( 'RESPONSIVE_ADDONS_VER' ) ) {
48
+ define( 'RESPONSIVE_ADDONS_VER', '2.4.1' );
49
  }
50
 
51
  if ( ! function_exists( 'ra_fs' ) ) {
65
  'slug' => 'responsive-add-ons',
66
  'product_name' => 'Responsive Ready Sites Importer',
67
  'module_type' => 'plugin',
68
+ 'version' => '2.4.1',
69
  'plugin_basename' => 'responsive-add-ons/responsive-add-ons.php',
70
  'plugin_url' => RESPONSIVE_ADDONS_DIR_URL,
71
  )