Version Description
- 23rd January 2020 =
- Added - Compatibility to WP Forms for Gutenberg ready site
Download this release
Release Info
Developer | cyberchimps |
Plugin | Responsive Add Ons |
Version | 2.2.1 |
Comparing to | |
See all releases |
Code changes from version 2.2.0 to 2.2.1
admin/js/responsive-ready-sites-admin.js
CHANGED
@@ -664,7 +664,7 @@ var ResponsiveSitesAjaxQueue = (function() {
|
|
664 |
|
665 |
templateData = [{
|
666 |
id: demoId,
|
667 |
-
demo_url: demoURL,
|
668 |
demo_api: apiURL,
|
669 |
screenshot: screenshot,
|
670 |
name: demo_name,
|
664 |
|
665 |
templateData = [{
|
666 |
id: demoId,
|
667 |
+
demo_url: demoURL + '/?utm_source=free-to-pro&utm_medium=responsive-ready-site-importer&utm_campaign=responsive-pro&utm_content=preview',
|
668 |
demo_api: apiURL,
|
669 |
screenshot: screenshot,
|
670 |
name: demo_name,
|
includes/importers/batch-processing/class-responsive-ready-sites-batch-processing-gutenberg.php
ADDED
@@ -0,0 +1,135 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Batch Processing Gutenberg
|
4 |
+
*
|
5 |
+
* @package Responsive Addons
|
6 |
+
* @since 2.2.1
|
7 |
+
*/
|
8 |
+
|
9 |
+
if ( ! class_exists( 'Responsive_Ready_Sites_Batch_Processing_Gutenberg' ) ) :
|
10 |
+
|
11 |
+
/**
|
12 |
+
* Responsive Ready Sites Batch Processing Gutenberg
|
13 |
+
*
|
14 |
+
* @since 2.2.1
|
15 |
+
*/
|
16 |
+
class Responsive_Ready_Sites_Batch_Processing_Gutenberg {
|
17 |
+
|
18 |
+
/**
|
19 |
+
* Instance
|
20 |
+
*
|
21 |
+
* @since 2.2.1
|
22 |
+
* @access private
|
23 |
+
* @var object Class object.
|
24 |
+
*/
|
25 |
+
private static $instance;
|
26 |
+
|
27 |
+
/**
|
28 |
+
* Initiator
|
29 |
+
*
|
30 |
+
* @since 2.2.1
|
31 |
+
* @return object initialized object of class.
|
32 |
+
*/
|
33 |
+
public static function get_instance() {
|
34 |
+
|
35 |
+
if ( ! isset( self::$instance ) ) {
|
36 |
+
self::$instance = new self();
|
37 |
+
}
|
38 |
+
return self::$instance;
|
39 |
+
}
|
40 |
+
|
41 |
+
/**
|
42 |
+
* Constructor
|
43 |
+
*
|
44 |
+
* @since 2.2.1
|
45 |
+
*/
|
46 |
+
public function __construct() {}
|
47 |
+
|
48 |
+
/**
|
49 |
+
* Allowed tags.
|
50 |
+
*
|
51 |
+
* @param array $allowedposttags Array of default allowable HTML tags.
|
52 |
+
* @param string|array $context The context for which to retrieve tags.
|
53 |
+
* @return array Array of allowed HTML tags.
|
54 |
+
*/
|
55 |
+
public function allowed_tags_and_attributes( $allowedposttags, $context ) {
|
56 |
+
|
57 |
+
// Keep only for 'post' context.
|
58 |
+
if ( 'post' === $context ) {
|
59 |
+
|
60 |
+
// <svg> tag and attributes.
|
61 |
+
$allowedposttags['svg'] = array(
|
62 |
+
'xmlns' => true,
|
63 |
+
'viewbox' => true,
|
64 |
+
);
|
65 |
+
|
66 |
+
// <path> tag and attributes.
|
67 |
+
$allowedposttags['path'] = array(
|
68 |
+
'd' => true,
|
69 |
+
);
|
70 |
+
}
|
71 |
+
|
72 |
+
return $allowedposttags;
|
73 |
+
}
|
74 |
+
|
75 |
+
/**
|
76 |
+
* Import
|
77 |
+
*
|
78 |
+
* @since 2.2.1
|
79 |
+
* @return void
|
80 |
+
*/
|
81 |
+
public function import() {
|
82 |
+
|
83 |
+
add_filter( 'wp_kses_allowed_html', array( $this, 'allowed_tags_and_attributes' ), 10, 2 );
|
84 |
+
|
85 |
+
Responsive_Ready_Sites_Importer_Log::add( '---- Processing WordPress Posts / Pages - for "Gutenberg" ----' );
|
86 |
+
|
87 |
+
$post_types = array( 'page' );
|
88 |
+
|
89 |
+
$post_ids = Responsive_Ready_Sites_Batch_Processing::get_pages( $post_types );
|
90 |
+
if ( empty( $post_ids ) && ! is_array( $post_ids ) ) {
|
91 |
+
return;
|
92 |
+
}
|
93 |
+
|
94 |
+
foreach ( $post_ids as $post_id ) {
|
95 |
+
$this->import_single_post( $post_id );
|
96 |
+
}
|
97 |
+
}
|
98 |
+
|
99 |
+
/**
|
100 |
+
* Update post meta.
|
101 |
+
*
|
102 |
+
* @param integer $post_id Post ID.
|
103 |
+
* @return void
|
104 |
+
*/
|
105 |
+
public function import_single_post( $post_id = 0 ) {
|
106 |
+
|
107 |
+
$ids_mapping = get_option( 'responsive_sites_wpforms_ids_mapping', array() );
|
108 |
+
|
109 |
+
// Post content.
|
110 |
+
$content = get_post_field( 'post_content', $post_id );
|
111 |
+
|
112 |
+
if ( ! empty( $ids_mapping ) ) {
|
113 |
+
// Replace ID's.
|
114 |
+
foreach ( $ids_mapping as $old_id => $new_id ) {
|
115 |
+
$content = str_replace( '[wpforms id="' . $old_id, '[wpforms id="' . $new_id, $content );
|
116 |
+
}
|
117 |
+
}
|
118 |
+
|
119 |
+
// Update content.
|
120 |
+
wp_update_post(
|
121 |
+
array(
|
122 |
+
'ID' => $post_id,
|
123 |
+
'post_content' => $content,
|
124 |
+
)
|
125 |
+
);
|
126 |
+
}
|
127 |
+
|
128 |
+
}
|
129 |
+
|
130 |
+
/**
|
131 |
+
* Initiating by calling 'get_instance()' method
|
132 |
+
*/
|
133 |
+
Responsive_Ready_Sites_Batch_Processing_Gutenberg::get_instance();
|
134 |
+
|
135 |
+
endif;
|
includes/importers/batch-processing/class-responsive-ready-sites-batch-processing.php
CHANGED
@@ -41,7 +41,7 @@ if ( ! class_exists( 'Responsive_Ready_Sites_Batch_Processing' ) ) :
|
|
41 |
*/
|
42 |
public static function get_instance() {
|
43 |
if ( ! isset( self::$instance ) ) {
|
44 |
-
self::$instance = new self;
|
45 |
}
|
46 |
return self::$instance;
|
47 |
}
|
@@ -67,6 +67,7 @@ if ( ! class_exists( 'Responsive_Ready_Sites_Batch_Processing' ) ) :
|
|
67 |
|
68 |
// Prepare Page Builders.
|
69 |
require_once $responsive_ready_sites_batch_processing . 'class-responsive-ready-sites-batch-processing-elementor.php';
|
|
|
70 |
|
71 |
// Menu fix.
|
72 |
require_once $responsive_ready_sites_batch_processing . 'class-responsive-ready-sites-batch-processing-menu.php';
|
@@ -88,6 +89,9 @@ if ( ! class_exists( 'Responsive_Ready_Sites_Batch_Processing' ) ) :
|
|
88 |
|
89 |
Responsive_Ready_Sites_Importer_Log::add( 'Batch Process Started!' );
|
90 |
|
|
|
|
|
|
|
91 |
// Add "elementor" in import [queue].
|
92 |
// @todo Remove required `allow_url_fopen` support.
|
93 |
if ( ini_get( 'allow_url_fopen' ) ) {
|
41 |
*/
|
42 |
public static function get_instance() {
|
43 |
if ( ! isset( self::$instance ) ) {
|
44 |
+
self::$instance = new self();
|
45 |
}
|
46 |
return self::$instance;
|
47 |
}
|
67 |
|
68 |
// Prepare Page Builders.
|
69 |
require_once $responsive_ready_sites_batch_processing . 'class-responsive-ready-sites-batch-processing-elementor.php';
|
70 |
+
require_once $responsive_ready_sites_batch_processing . 'class-responsive-ready-sites-batch-processing-gutenberg.php';
|
71 |
|
72 |
// Menu fix.
|
73 |
require_once $responsive_ready_sites_batch_processing . 'class-responsive-ready-sites-batch-processing-menu.php';
|
89 |
|
90 |
Responsive_Ready_Sites_Importer_Log::add( 'Batch Process Started!' );
|
91 |
|
92 |
+
// Add "gutenberg" in import [queue].
|
93 |
+
self::$process_all->push_to_queue( Responsive_Ready_Sites_Batch_Processing_Gutenberg::get_instance() );
|
94 |
+
|
95 |
// Add "elementor" in import [queue].
|
96 |
// @todo Remove required `allow_url_fopen` support.
|
97 |
if ( ini_get( 'allow_url_fopen' ) ) {
|
readme.txt
CHANGED
@@ -1,21 +1,25 @@
|
|
1 |
-
===
|
2 |
Contributors: cyberchimps
|
3 |
-
Donate Link:
|
4 |
-
Tags:
|
5 |
Requires at least: 5.0
|
6 |
Tested up to: 5.3
|
7 |
Requires PHP: 5.3
|
8 |
-
Stable tag: 2.2.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
12 |
-
|
13 |
|
14 |
== Description ==
|
15 |
|
16 |
-
|
17 |
|
18 |
-
|
|
|
|
|
|
|
|
|
19 |
- Ability to rollback the Responsive theme to a previous version
|
20 |
|
21 |
= What are ready-to-use website templates? =
|
@@ -102,6 +106,9 @@ Absolutely not! Once you install the plugin, it will take care of all other depe
|
|
102 |
4. Your website is ready
|
103 |
|
104 |
== Changelog ==
|
|
|
|
|
|
|
105 |
= 2.2.0 - 18th December 2019 =
|
106 |
* Added - Responsive theme Rollback
|
107 |
* Added - Import Process status Log
|
1 |
+
=== Gutenberg & Elementor Templates Importer For Responsive ===
|
2 |
Contributors: cyberchimps
|
3 |
+
Donate Link: https://cyberchimps.com
|
4 |
+
Tags: one click demo import, gutenberg, elementor, templates
|
5 |
Requires at least: 5.0
|
6 |
Tested up to: 5.3
|
7 |
Requires PHP: 5.3
|
8 |
+
Stable tag: 2.2.1
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
12 |
+
Import Gutenberg & Elementor Templates for the Responsive WordPress theme.
|
13 |
|
14 |
== Description ==
|
15 |
|
16 |
+
Import Gutenberg & Elementor Templates for the Responsive WordPress theme.
|
17 |
|
18 |
+
Get fully working ready-to-use website templates built for the Elementor page builder and the new WordPress blocks editor (Gutenberg). All you have to do is import a website template, edit the content and launch your website.
|
19 |
+
|
20 |
+
This plugin extends the popular [Responsive theme](https://wordpress.org/themes/responsive/). It adds the following features:
|
21 |
+
|
22 |
+
- One click demo import of ready-to-use, Gutenberg & Elementor templates
|
23 |
- Ability to rollback the Responsive theme to a previous version
|
24 |
|
25 |
= What are ready-to-use website templates? =
|
106 |
4. Your website is ready
|
107 |
|
108 |
== Changelog ==
|
109 |
+
= 2.2.1 - 23rd January 2020 =
|
110 |
+
* Added - Compatibility to WP Forms for Gutenberg ready site
|
111 |
+
|
112 |
= 2.2.0 - 18th December 2019 =
|
113 |
* Added - Responsive theme Rollback
|
114 |
* Added - Import Process status Log
|
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.2.
|
7 |
Author: CyberChimps
|
8 |
Author URI: http://www.cyberchimps.com
|
9 |
License: GPL2
|
@@ -52,7 +52,7 @@ if ( ! function_exists( 'ra_fs' ) ) {
|
|
52 |
'slug' => 'responsive-add-ons',
|
53 |
'product_name' => 'Responsive Ready Sites Importer',
|
54 |
'module_type' => 'plugin',
|
55 |
-
'version' => '2.2.
|
56 |
'plugin_basename' => 'responsive-add-ons/responsive-add-ons.php',
|
57 |
) );
|
58 |
}
|
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.2.1
|
7 |
Author: CyberChimps
|
8 |
Author URI: http://www.cyberchimps.com
|
9 |
License: GPL2
|
52 |
'slug' => 'responsive-add-ons',
|
53 |
'product_name' => 'Responsive Ready Sites Importer',
|
54 |
'module_type' => 'plugin',
|
55 |
+
'version' => '2.2.1',
|
56 |
'plugin_basename' => 'responsive-add-ons/responsive-add-ons.php',
|
57 |
) );
|
58 |
}
|