Rara One Click Demo Import - Version 1.2.1

Version Description

  • COMPATIBILITY TEST
Download this release

Release Info

Developer raratheme
Plugin Icon 128x128 Rara One Click Demo Import
Version 1.2.1
Comparing to
See all releases

Code changes from version 1.1.0 to 1.2.1

assets/css/style.css CHANGED
@@ -155,4 +155,18 @@ div#Demo_Import {
155
}
156
.home-page-url{
157
display: none;
158
}
155
}
156
.home-page-url{
157
display: none;
158
+ }
159
+
160
+ .rddi-import-intro p,
161
+ .rddi-import-intro{
162
+ font-size: 19px;
163
+ line-height: 25px;
164
+ }
165
+
166
+ .rddi-import-intro ul{
167
+ list-style: square;
168
+ padding-left: 26px;
169
+ }
170
+ .rddi-import-intro ul li span{
171
+ font-weight: 800;
172
}
includes/class-rrdi-main.php CHANGED
@@ -112,7 +112,7 @@ class RRDI_Theme_Demo_Import {
112
$get_theme = wp_get_theme();
113
if( $get_theme->get( 'AuthorURI' ) == 'http://raratheme.com/' || $get_theme->get( 'AuthorURI' ) == 'https://raratheme.com/' || $get_theme->get( 'AuthorURI' ) == 'http://raratheme.com' || $get_theme->get( 'AuthorURI' ) == 'https://raratheme.com' )
114
{
115
- $td = $get_theme->get( 'TextDomain' );
116
if ( strpos($td, 'pro') === false )
117
{
118
$upload_dir = wp_upload_dir();
@@ -166,6 +166,7 @@ class RRDI_Theme_Demo_Import {
166
function rrdi_settings_option_tabs() {
167
168
$options = array(
169
'Demo_Import' => 'welcome.php',
170
'Pro_Theme_Demo_Import' => 'installed-demos.php',
171
);
@@ -235,7 +236,7 @@ class RRDI_Theme_Demo_Import {
235
foreach ($settings_tab as $key => $value) { ?>
236
<div id="<?php echo $key;?>" class="tab-content" <?php if($counter==0){ ?> style="display: block;" <?php } ?>>
237
<?php
238
- include_once RRDI_PATH . '/includes/settings/'.$value;
239
?>
240
</div>
241
<?php $counter++; } ?>
112
$get_theme = wp_get_theme();
113
if( $get_theme->get( 'AuthorURI' ) == 'http://raratheme.com/' || $get_theme->get( 'AuthorURI' ) == 'https://raratheme.com/' || $get_theme->get( 'AuthorURI' ) == 'http://raratheme.com' || $get_theme->get( 'AuthorURI' ) == 'https://raratheme.com' )
114
{
115
+ $td = $get_theme->get( 'TextDomain' ).'-demo-content';
116
if ( strpos($td, 'pro') === false )
117
{
118
$upload_dir = wp_upload_dir();
166
function rrdi_settings_option_tabs() {
167
168
$options = array(
169
+ 'Before_You_Begin' => 'intro.php',
170
'Demo_Import' => 'welcome.php',
171
'Pro_Theme_Demo_Import' => 'installed-demos.php',
172
);
236
foreach ($settings_tab as $key => $value) { ?>
237
<div id="<?php echo $key;?>" class="tab-content" <?php if($counter==0){ ?> style="display: block;" <?php } ?>>
238
<?php
239
+ include_once RRDI_PATH . '/includes/settings/'.strtolower($value);
240
?>
241
</div>
242
<?php $counter++; } ?>
includes/settings/installed-demos.php CHANGED
@@ -188,7 +188,7 @@
188
189
<p class="RRDI__button-container">
190
<button class="RRDI__button button button-hero button-primary js-rrdi-import-data"><?php esc_html_e( 'Import Now', 'rara-one-click-demo-import' ); ?></button>
191
- <span><?php esc_html_e( 'Click the button to beign the importing process. Please be patient, the process might take a few minutes.', 'rara-one-click-demo-import' ); ?></span>
192
</p>
193
194
<p class="RRDI__ajax-loader js-rrdi-ajax-loader">
188
189
<p class="RRDI__button-container">
190
<button class="RRDI__button button button-hero button-primary js-rrdi-import-data"><?php esc_html_e( 'Import Now', 'rara-one-click-demo-import' ); ?></button>
191
+ <span><?php esc_html_e( 'Click the button to begin the importing process. Please be patient, the process might take a few minutes.', 'rara-one-click-demo-import' ); ?></span>
192
</p>
193
194
<p class="RRDI__ajax-loader js-rrdi-ajax-loader">
includes/settings/intro.php ADDED
@@ -0,0 +1,22 @@
1
+ <?php
2
+ echo '<div class="rddi-import-intro">';
3
+ echo '<p>Demo Import works very well under normal circumstances. However, sometimes issues are seen which can be due to different reasons, mostly due to hosting issues. If you are using shared hosting plan, then there is high chance that demo import might not work on your server because your server might have some limitation.</p>';
4
+
5
+ echo '<p>For the demo import to work properly, the <b>PHP configuration</b> on your server should be:</p>';
6
+ echo
7
+ '<ul>
8
+ <li>Maximum Execution Time <span>360</span></li>
9
+ <li>Memory Limit <span>256M</span></li>
10
+ <li>Post Max Size <span>32M</span></li>
11
+ <li>Upload Max Filesize <span>32M</span></li>
12
+ </ul>';
13
+ echo '<p>Please request your hosting to give you the above configuration and then try the demo import again. If you are constantly having an issue with the hosting, you may want to consider to move to better WordPress hosting. We have reviewed 10 best WordPress hosting.
14
+ If the issue is not fixed after the above configuration, please let us know for the further assistance.</p>';
15
+
16
+ $snapshot = '<a href="https://wordpress.org/plugins/wp-serverinfo/" target="_blank">WP Server Info</a>';
17
+ ?>
18
+ <p><h4><?php echo sprintf( __( 'You can check the PHP configuartion of your site by using any plugins like %1$s.','rara-one-click-demo-import'), $snapshot); ?></h4></p>
19
+ <?php
20
+ $wpreset = '<a href="https://wordpress.org/plugins/wp-reset" target="_blank">WP Reset</a>'; ?>
21
+ <p><h4><?php echo sprintf( __( 'Note: We highly recommend to import the demo content on a fresh WordPress installation. You can reset your website to a fresh WordPress installation using a reset plugin like %1$s.','rara-one-click-demo-import'), $wpreset); ?></h4></p>
22
+ </div>
rara-one-click-demo-import.php CHANGED
@@ -3,7 +3,7 @@
3
Plugin Name: RARA One Click Demo Import
4
Plugin URI: https://wordpress.org/plugins/rara-one-click-demo-import/
5
Description: Import demo content, widgets and settings of themes made by RaraTheme.com with just one click.
6
- Version: 1.1.0
7
Author: raratheme
8
Author URI: https://www.raratheme.com
9
License: GPL3
@@ -17,7 +17,7 @@ defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
17
define( 'RRDI_PATH', plugin_dir_path( __FILE__ ) );
18
19
// Current version of the plugin.
20
- define( 'RRDI_VERSION', '1.0.8' );
21
22
// Path/URL to root of this plugin, with trailing slash.
23
define( 'RRDI_URL', plugin_dir_url( __FILE__ ) );
3
Plugin Name: RARA One Click Demo Import
4
Plugin URI: https://wordpress.org/plugins/rara-one-click-demo-import/
5
Description: Import demo content, widgets and settings of themes made by RaraTheme.com with just one click.
6
+ Version: 1.2.1
7
Author: raratheme
8
Author URI: https://www.raratheme.com
9
License: GPL3
17
define( 'RRDI_PATH', plugin_dir_path( __FILE__ ) );
18
19
// Current version of the plugin.
20
+ define( 'RRDI_VERSION', '1.2.1' );
21
22
// Path/URL to root of this plugin, with trailing slash.
23
define( 'RRDI_URL', plugin_dir_url( __FILE__ ) );
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
Contributors: raratheme
3
Tags: import, content, demo, data, widgets, settings
4
Requires at least: 4.0.0
5
- Tested up to: 4.8.2
6
- Stable tag: 1.1.0
7
License: GPLv3 or later
8
9
Make your website look like the live demo of the theme with a click!
@@ -147,3 +147,10 @@ with this program; if not, write to the Free Software Foundation, Inc.,
147
148
= 1.1.0 =
149
* WARNING MESSAGE FIXED
2
Contributors: raratheme
3
Tags: import, content, demo, data, widgets, settings
4
Requires at least: 4.0.0
5
+ Tested up to: 4.9.6
6
+ Stable tag: 1.2.1
7
License: GPLv3 or later
8
9
Make your website look like the live demo of the theme with a click!
147
148
= 1.1.0 =
149
* WARNING MESSAGE FIXED
150
+
151
+ = 1.2.0 =
152
+ * MAJOR UPDATE
153
+ * DEMO FILE ZIP NAME STANDARDS
154
+
155
+ = 1.2.1 =
156
+ * COMPATIBILITY TEST