ThemeGrill Demo Importer - Version 1.4.2

Version Description

  • 25-12-2017 =
  • Fix - Disable WooCommerce setup wizard for demo import.
  • Fix - Styling issue caused by missing theme-id-container container.

See changelog for all versions.

=

Download this release

Release Info

Developer ThemeGrill
Plugin Icon 128x128 ThemeGrill Demo Importer
Version 1.4.2
Comparing to
See all releases

Code changes from version 1.4.1 to 1.4.2

includes/admin/views/html-admin-page-installer.php CHANGED
@@ -305,23 +305,26 @@ $demo_filter_links = apply_filters( 'themegrill_demo_importer_filter_links_array
305
/* translators: %s: Demo author name */
306
printf( __( 'By %s', 'themegrill-demo-importer' ), '{{{ data.author }}}' );
307
?></div>
308
- <h3 class="theme-name">{{ data.name }}</h3>
309
310
- <div class="theme-actions">
311
- <# if ( ! data.installed && ! data.actions.pro_link ) { #>
312
- <?php
313
- /* translators: %s: Demo name */
314
- $aria_label = sprintf( _x( 'Download %s', 'demo', 'themegrill-demo-importer' ), '{{ data.name }}' );
315
- ?>
316
- <a class="button button-primary demo-download" data-name="{{ data.name }}" href="{{ data.actions.download_url }}" aria-label="<?php echo esc_attr( $aria_label ); ?>"><?php _e( 'Download', 'themegrill-demo-importer' ); ?></a>
317
- <# } else if ( data.actions.pro_link ) { #>
318
- <?php
319
- /* translators: %s: Demo name */
320
- $aria_label = sprintf( _x( 'View %s Pro', 'demo', 'themegrill-demo-importer' ), '{{ data.name }}' );
321
- ?>
322
- <a class="button button-primary demo-premium" target="_blank" data-name="{{ data.name }}" href="{{ data.actions.pro_link }}" aria-label="<?php echo esc_attr( $aria_label ); ?>"><?php _e( 'View Pro', 'themegrill-demo-importer' ); ?></a>
323
- <# } #>
324
- <a class="button button-secondary demo-preview" target="_blank" href="{{{ data.actions.preview_url }}}"><?php _e( 'Preview', 'themegrill-demo-importer' ); ?></a>
325
</div>
326
327
<# if ( data.installed ) { #>
305
/* translators: %s: Demo author name */
306
printf( __( 'By %s', 'themegrill-demo-importer' ), '{{{ data.author }}}' );
307
?></div>
308
309
+ <div class="theme-id-container">
310
+ <h3 class="theme-name">{{ data.name }}</h3>
311
+
312
+ <div class="theme-actions">
313
+ <# if ( ! data.installed && ! data.actions.pro_link ) { #>
314
+ <?php
315
+ /* translators: %s: Demo name */
316
+ $aria_label = sprintf( _x( 'Download %s', 'demo', 'themegrill-demo-importer' ), '{{ data.name }}' );
317
+ ?>
318
+ <a class="button button-primary demo-download" data-name="{{ data.name }}" href="{{ data.actions.download_url }}" aria-label="<?php echo esc_attr( $aria_label ); ?>"><?php _e( 'Download', 'themegrill-demo-importer' ); ?></a>
319
+ <# } else if ( data.actions.pro_link ) { #>
320
+ <?php
321
+ /* translators: %s: Demo name */
322
+ $aria_label = sprintf( _x( 'View %s Pro', 'demo', 'themegrill-demo-importer' ), '{{ data.name }}' );
323
+ ?>
324
+ <a class="button button-primary demo-premium" target="_blank" data-name="{{ data.name }}" href="{{ data.actions.pro_link }}" aria-label="<?php echo esc_attr( $aria_label ); ?>"><?php _e( 'View Pro', 'themegrill-demo-importer' ); ?></a>
325
+ <# } #>
326
+ <a class="button button-secondary demo-preview" target="_blank" href="{{{ data.actions.preview_url }}}"><?php _e( 'Preview', 'themegrill-demo-importer' ); ?></a>
327
+ </div>
328
</div>
329
330
<# if ( data.installed ) { #>
includes/class-demo-importer.php CHANGED
@@ -57,6 +57,9 @@ class TG_Demo_Importer {
57
// Footer rating text.
58
add_filter( 'admin_footer_text', array( $this, 'admin_footer_text' ), 1 );
59
60
// AJAX Events to import demo and update rating footer.
61
add_action( 'wp_ajax_import-demo', array( $this, 'ajax_import_demo' ) );
62
add_action( 'wp_ajax_footer-text-rated', array( $this, 'ajax_footer_text_rated' ) );
57
// Footer rating text.
58
add_filter( 'admin_footer_text', array( $this, 'admin_footer_text' ), 1 );
59
60
+ // Disable WooCommerce setup wizard.
61
+ add_filter( 'woocommerce_enable_setup_wizard', '__return_false', 1 );
62
+
63
// AJAX Events to import demo and update rating footer.
64
add_action( 'wp_ajax_import-demo', array( $this, 'ajax_import_demo' ) );
65
add_action( 'wp_ajax_footer-text-rated', array( $this, 'ajax_footer_text_rated' ) );
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: ThemeGrill, shivapoudel
3
Tags: themegrill, themes, demo, importer, download
4
Requires at least: 4.7
5
Tested up to: 4.9
6
- Stable tag: 1.4.1
7
License: GPLv3 or later
8
License URI: https://www.gnu.org/licenses/gpl-3.0.html
9
@@ -67,8 +67,8 @@ Yes you can! Join in on our [GitHub repository](https://github.com/themegrill/th
67
68
== Changelog ==
69
70
- = 1.4.1 - 08-12-2017 =
71
- * Feature - Compatiable with Elementor page builder.
72
* Fix - Styling issue caused by missing `theme-id-container` container.
73
74
[See changelog for all versions](https://raw.githubusercontent.com/themegrill/themegrill-demo-importer/master/CHANGELOG.txt).
3
Tags: themegrill, themes, demo, importer, download
4
Requires at least: 4.7
5
Tested up to: 4.9
6
+ Stable tag: 1.4.2
7
License: GPLv3 or later
8
License URI: https://www.gnu.org/licenses/gpl-3.0.html
9
67
68
== Changelog ==
69
70
+ = 1.4.2 - 25-12-2017 =
71
+ * Fix - Disable WooCommerce setup wizard for demo import.
72
* Fix - Styling issue caused by missing `theme-id-container` container.
73
74
[See changelog for all versions](https://raw.githubusercontent.com/themegrill/themegrill-demo-importer/master/CHANGELOG.txt).
themegrill-demo-importer.php CHANGED
@@ -3,7 +3,7 @@
3
* Plugin Name: ThemeGrill Demo Importer
4
* Plugin URI: https://themegrill.com/demo-importer/
5
* Description: Import your demo content, widgets and theme settings with one click for ThemeGrill official themes.
6
- * Version: 1.4.1
7
* Author: ThemeGrill
8
* Author URI: https://themegrill.com
9
* License: GPLv3 or later
3
* Plugin Name: ThemeGrill Demo Importer
4
* Plugin URI: https://themegrill.com/demo-importer/
5
* Description: Import your demo content, widgets and theme settings with one click for ThemeGrill official themes.
6
+ * Version: 1.4.2
7
* Author: ThemeGrill
8
* Author URI: https://themegrill.com
9
* License: GPLv3 or later