ThemeGrill Demo Importer - Version 1.7.0

Version Description

  • 11-01-2021 =
  • Tweak - Set FontAwesome 4 Shim feature to be enabled automatically on successful theme demo import.
Download this release

Release Info

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

Code changes from version 1.6.9 to 1.7.0

includes/admin/views/html-admin-page-importer.php CHANGED
@@ -81,7 +81,11 @@ defined( 'ABSPATH' ) || exit;
81
  <span class="premium-demo-banner"><?php esc_html_e( 'Premium', 'themegrill-demo-importer' ); ?></span>
82
  <# } #>
83
 
84
- <# if ( data.isPro ) { #>
 
 
 
 
85
  <span class="premium-demo-banner"><?php esc_html_e( 'Pro', 'themegrill-demo-importer' ); ?></span>
86
  <# } #>
87
 
@@ -165,7 +169,11 @@ defined( 'ABSPATH' ) || exit;
165
  <span class="premium-demo-tag"><?php esc_html_e( 'Premium', 'themegrill-demo-importer' ); ?></span>
166
  <# } #>
167
 
168
- <# if ( data.isPro ) { #>
 
 
 
 
169
  <span class="premium-demo-tag"><?php esc_html_e( 'Pro', 'themegrill-demo-importer' ); ?></span>
170
  <# } #>
171
  </h3>
81
  <span class="premium-demo-banner"><?php esc_html_e( 'Premium', 'themegrill-demo-importer' ); ?></span>
82
  <# } #>
83
 
84
+ <# if ( data.isPro && data.isAllThemePlan ) { #>
85
+ <span class="premium-demo-banner"><?php esc_html_e( 'Pro Plus', 'themegrill-demo-importer' ); ?></span>
86
+ <# } #>
87
+
88
+ <# if ( data.isPro && ! data.isAllThemePlan ) { #>
89
  <span class="premium-demo-banner"><?php esc_html_e( 'Pro', 'themegrill-demo-importer' ); ?></span>
90
  <# } #>
91
 
169
  <span class="premium-demo-tag"><?php esc_html_e( 'Premium', 'themegrill-demo-importer' ); ?></span>
170
  <# } #>
171
 
172
+ <# if ( data.isPro && data.isAllThemePlan ) { #>
173
+ <span class="premium-demo-tag"><?php esc_html_e( 'Pro Plus', 'themegrill-demo-importer' ); ?></span>
174
+ <# } #>
175
+
176
+ <# if ( data.isPro && ! data.isAllThemePlan ) { #>
177
  <span class="premium-demo-tag"><?php esc_html_e( 'Pro', 'themegrill-demo-importer' ); ?></span>
178
  <# } #>
179
  </h3>
includes/class-themegrill-demo-importer.php CHANGED
@@ -20,7 +20,7 @@ final class ThemeGrill_Demo_Importer {
20
  *
21
  * @var string
22
  */
23
- public $version = '1.6.9';
24
 
25
  /**
26
  * Theme single instance of this class.
20
  *
21
  * @var string
22
  */
23
+ public $version = '1.7.0';
24
 
25
  /**
26
  * Theme single instance of this class.
includes/functions-demo-importer.php CHANGED
@@ -226,6 +226,24 @@ function tg_remove_theme_mods() {
226
  remove_theme_mods();
227
  }
228
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
229
  /**
230
  * After demo imported AJAX action.
231
  *
226
  remove_theme_mods();
227
  }
228
 
229
+ /**
230
+ * After demo imported AJAX action.
231
+ *
232
+ * @see tg_set_elementor_load_fa4_shim()
233
+ */
234
+ add_action( 'themegrill_ajax_demo_imported', 'tg_set_elementor_load_fa4_shim' );
235
+
236
+ /**
237
+ * Set Elementor Load FontAwesome 4 support.
238
+ */
239
+ function tg_set_elementor_load_fa4_shim() {
240
+ $elementor_load_fa4_shim = get_option( 'elementor_load_fa4_shim' );
241
+
242
+ if ( ! $elementor_load_fa4_shim || '' === $elementor_load_fa4_shim ) {
243
+ update_option( 'elementor_load_fa4_shim', 'yes' );
244
+ }
245
+ }
246
+
247
  /**
248
  * After demo imported AJAX action.
249
  *
languages/themegrill-demo-importer.pot CHANGED
@@ -2,14 +2,14 @@
2
  # This file is distributed under the GPLv3 or later.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: ThemeGrill Demo Importer 1.6.9\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/themegrill-demo-importer\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "POT-Creation-Date: 2021-01-07T05:38:16+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.4.0\n"
15
  "X-Domain: themegrill-demo-importer\n"
@@ -186,139 +186,144 @@ msgid "No demos found. Try a different search."
186
  msgstr ""
187
 
188
  #: includes/admin/views/html-admin-page-importer.php:81
189
- #: includes/admin/views/html-admin-page-importer.php:165
190
  msgid "Premium"
191
  msgstr ""
192
 
193
  #: includes/admin/views/html-admin-page-importer.php:85
194
- #: includes/admin/views/html-admin-page-importer.php:169
 
 
 
 
 
195
  msgid "Pro"
196
  msgstr ""
197
 
198
  #. translators: %s: Demo author name
199
  #. translators: 1. Plugin author name.
200
- #: includes/admin/views/html-admin-page-importer.php:91
201
- #: includes/admin/views/html-admin-page-importer.php:176
202
  #: includes/admin/views/html-admin-page-system-status-report.php:287
203
  #: includes/admin/views/html-admin-page-system-status-report.php:334
204
  msgid "By %s"
205
  msgstr ""
206
 
207
  #. translators: %s: Demo name
208
- #: includes/admin/views/html-admin-page-importer.php:100
209
  msgid "<span>Imported:</span> %s"
210
  msgstr ""
211
 
212
- #: includes/admin/views/html-admin-page-importer.php:109
213
- #: includes/admin/views/html-admin-page-importer.php:154
214
- #: includes/admin/views/html-admin-page-importer.php:260
215
  #: assets/js/admin/demo-updates.js:114
216
  msgid "Live Preview"
217
  msgstr ""
218
 
219
- #: includes/admin/views/html-admin-page-importer.php:112
220
- #: includes/admin/views/html-admin-page-importer.php:114
221
- #: includes/admin/views/html-admin-page-importer.php:143
222
- #: includes/admin/views/html-admin-page-importer.php:145
223
- #: includes/admin/views/html-admin-page-importer.php:249
224
- #: includes/admin/views/html-admin-page-importer.php:251
225
  msgid "Buy Now"
226
  msgstr ""
227
 
228
- #: includes/admin/views/html-admin-page-importer.php:116
229
- #: includes/admin/views/html-admin-page-importer.php:147
230
- #: includes/admin/views/html-admin-page-importer.php:253
231
  msgid "Upgrade Theme Plan"
232
  msgstr ""
233
 
234
- #: includes/admin/views/html-admin-page-importer.php:118
235
- #: includes/admin/views/html-admin-page-importer.php:151
236
- #: includes/admin/views/html-admin-page-importer.php:257
237
  msgid "Update"
238
  msgstr ""
239
 
240
  #. translators: %s: Demo name
241
- #: includes/admin/views/html-admin-page-importer.php:122
242
  msgctxt "demo"
243
  msgid "Import %s"
244
  msgstr ""
245
 
246
- #: includes/admin/views/html-admin-page-importer.php:124
247
  msgid "Import"
248
  msgstr ""
249
 
250
- #: includes/admin/views/html-admin-page-importer.php:126
251
- #: includes/admin/views/html-admin-page-importer.php:286
252
  msgid "Preview"
253
  msgstr ""
254
 
255
- #: includes/admin/views/html-admin-page-importer.php:132
256
  msgctxt "demo"
257
  msgid "Imported"
258
  msgstr ""
259
 
260
- #: includes/admin/views/html-admin-page-importer.php:139
261
  msgid "Close"
262
  msgstr ""
263
 
264
- #: includes/admin/views/html-admin-page-importer.php:140
265
  msgctxt "Button label for a demo"
266
  msgid "Previous"
267
  msgstr ""
268
 
269
- #: includes/admin/views/html-admin-page-importer.php:141
270
  msgctxt "Button label for a demo"
271
  msgid "Next"
272
  msgstr ""
273
 
274
- #: includes/admin/views/html-admin-page-importer.php:149
275
- #: includes/admin/views/html-admin-page-importer.php:156
276
- #: includes/admin/views/html-admin-page-importer.php:255
277
- #: includes/admin/views/html-admin-page-importer.php:262
278
  msgid "Import Demo"
279
  msgstr ""
280
 
281
  #. translators: %s: Theme Name
282
- #: includes/admin/views/html-admin-page-importer.php:187
283
- #: includes/admin/views/html-admin-page-importer.php:196
284
  msgid "%s theme is not active."
285
  msgstr ""
286
 
287
  #. translators: %s: Demo version
288
- #: includes/admin/views/html-admin-page-importer.php:203
289
  msgid "Version: %s"
290
  msgstr ""
291
 
292
- #: includes/admin/views/html-admin-page-importer.php:210
293
  msgid "Plugins Information"
294
  msgstr ""
295
 
296
- #: includes/admin/views/html-admin-page-importer.php:215
297
  msgid "Required Plugins"
298
  msgstr ""
299
 
300
- #: includes/admin/views/html-admin-page-importer.php:238
301
  msgid "No plugins are required for this demo."
302
  msgstr ""
303
 
304
- #: includes/admin/views/html-admin-page-importer.php:266
305
  #: includes/class-demo-importer.php:215
306
  msgid "Collapse Sidebar"
307
  msgstr ""
308
 
309
- #: includes/admin/views/html-admin-page-importer.php:268
310
  msgid "Collapse"
311
  msgstr ""
312
 
313
- #: includes/admin/views/html-admin-page-importer.php:273
314
  msgid "Enter desktop preview mode"
315
  msgstr ""
316
 
317
- #: includes/admin/views/html-admin-page-importer.php:276
318
  msgid "Enter tablet preview mode"
319
  msgstr ""
320
 
321
- #: includes/admin/views/html-admin-page-importer.php:279
322
  msgid "Enter mobile preview mode"
323
  msgstr ""
324
 
@@ -790,26 +795,26 @@ msgid "Sorry, you are not allowed to install plugins on this site."
790
  msgstr ""
791
 
792
  #. translators: %s: Number of plugins
793
- #: includes/functions-demo-importer.php:406
794
  msgid "%s plugin successfully installed."
795
  msgstr ""
796
 
797
  #. translators: %s: Number of plugins
798
- #: includes/functions-demo-importer.php:413
799
  msgid "%s plugins successfully installed."
800
  msgstr ""
801
 
802
  #. translators: %s: Number of failed installs
803
- #: includes/functions-demo-importer.php:423
804
  msgid "%s install failed."
805
  msgstr ""
806
 
807
  #. translators: %s: Number of failed installs
808
- #: includes/functions-demo-importer.php:428
809
  msgid "%s installs failed."
810
  msgstr ""
811
 
812
- #: includes/functions-demo-importer.php:431
813
  msgid "Show more details"
814
  msgstr ""
815
 
2
  # This file is distributed under the GPLv3 or later.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: ThemeGrill Demo Importer 1.7.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/themegrill-demo-importer\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "POT-Creation-Date: 2021-01-11T07:41:56+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.4.0\n"
15
  "X-Domain: themegrill-demo-importer\n"
186
  msgstr ""
187
 
188
  #: includes/admin/views/html-admin-page-importer.php:81
189
+ #: includes/admin/views/html-admin-page-importer.php:169
190
  msgid "Premium"
191
  msgstr ""
192
 
193
  #: includes/admin/views/html-admin-page-importer.php:85
194
+ #: includes/admin/views/html-admin-page-importer.php:173
195
+ msgid "Pro Plus"
196
+ msgstr ""
197
+
198
+ #: includes/admin/views/html-admin-page-importer.php:89
199
+ #: includes/admin/views/html-admin-page-importer.php:177
200
  msgid "Pro"
201
  msgstr ""
202
 
203
  #. translators: %s: Demo author name
204
  #. translators: 1. Plugin author name.
205
+ #: includes/admin/views/html-admin-page-importer.php:95
206
+ #: includes/admin/views/html-admin-page-importer.php:184
207
  #: includes/admin/views/html-admin-page-system-status-report.php:287
208
  #: includes/admin/views/html-admin-page-system-status-report.php:334
209
  msgid "By %s"
210
  msgstr ""
211
 
212
  #. translators: %s: Demo name
213
+ #: includes/admin/views/html-admin-page-importer.php:104
214
  msgid "<span>Imported:</span> %s"
215
  msgstr ""
216
 
217
+ #: includes/admin/views/html-admin-page-importer.php:113
218
+ #: includes/admin/views/html-admin-page-importer.php:158
219
+ #: includes/admin/views/html-admin-page-importer.php:268
220
  #: assets/js/admin/demo-updates.js:114
221
  msgid "Live Preview"
222
  msgstr ""
223
 
224
+ #: includes/admin/views/html-admin-page-importer.php:116
225
+ #: includes/admin/views/html-admin-page-importer.php:118
226
+ #: includes/admin/views/html-admin-page-importer.php:147
227
+ #: includes/admin/views/html-admin-page-importer.php:149
228
+ #: includes/admin/views/html-admin-page-importer.php:257
229
+ #: includes/admin/views/html-admin-page-importer.php:259
230
  msgid "Buy Now"
231
  msgstr ""
232
 
233
+ #: includes/admin/views/html-admin-page-importer.php:120
234
+ #: includes/admin/views/html-admin-page-importer.php:151
235
+ #: includes/admin/views/html-admin-page-importer.php:261
236
  msgid "Upgrade Theme Plan"
237
  msgstr ""
238
 
239
+ #: includes/admin/views/html-admin-page-importer.php:122
240
+ #: includes/admin/views/html-admin-page-importer.php:155
241
+ #: includes/admin/views/html-admin-page-importer.php:265
242
  msgid "Update"
243
  msgstr ""
244
 
245
  #. translators: %s: Demo name
246
+ #: includes/admin/views/html-admin-page-importer.php:126
247
  msgctxt "demo"
248
  msgid "Import %s"
249
  msgstr ""
250
 
251
+ #: includes/admin/views/html-admin-page-importer.php:128
252
  msgid "Import"
253
  msgstr ""
254
 
255
+ #: includes/admin/views/html-admin-page-importer.php:130
256
+ #: includes/admin/views/html-admin-page-importer.php:294
257
  msgid "Preview"
258
  msgstr ""
259
 
260
+ #: includes/admin/views/html-admin-page-importer.php:136
261
  msgctxt "demo"
262
  msgid "Imported"
263
  msgstr ""
264
 
265
+ #: includes/admin/views/html-admin-page-importer.php:143
266
  msgid "Close"
267
  msgstr ""
268
 
269
+ #: includes/admin/views/html-admin-page-importer.php:144
270
  msgctxt "Button label for a demo"
271
  msgid "Previous"
272
  msgstr ""
273
 
274
+ #: includes/admin/views/html-admin-page-importer.php:145
275
  msgctxt "Button label for a demo"
276
  msgid "Next"
277
  msgstr ""
278
 
279
+ #: includes/admin/views/html-admin-page-importer.php:153
280
+ #: includes/admin/views/html-admin-page-importer.php:160
281
+ #: includes/admin/views/html-admin-page-importer.php:263
282
+ #: includes/admin/views/html-admin-page-importer.php:270
283
  msgid "Import Demo"
284
  msgstr ""
285
 
286
  #. translators: %s: Theme Name
287
+ #: includes/admin/views/html-admin-page-importer.php:195
288
+ #: includes/admin/views/html-admin-page-importer.php:204
289
  msgid "%s theme is not active."
290
  msgstr ""
291
 
292
  #. translators: %s: Demo version
293
+ #: includes/admin/views/html-admin-page-importer.php:211
294
  msgid "Version: %s"
295
  msgstr ""
296
 
297
+ #: includes/admin/views/html-admin-page-importer.php:218
298
  msgid "Plugins Information"
299
  msgstr ""
300
 
301
+ #: includes/admin/views/html-admin-page-importer.php:223
302
  msgid "Required Plugins"
303
  msgstr ""
304
 
305
+ #: includes/admin/views/html-admin-page-importer.php:246
306
  msgid "No plugins are required for this demo."
307
  msgstr ""
308
 
309
+ #: includes/admin/views/html-admin-page-importer.php:274
310
  #: includes/class-demo-importer.php:215
311
  msgid "Collapse Sidebar"
312
  msgstr ""
313
 
314
+ #: includes/admin/views/html-admin-page-importer.php:276
315
  msgid "Collapse"
316
  msgstr ""
317
 
318
+ #: includes/admin/views/html-admin-page-importer.php:281
319
  msgid "Enter desktop preview mode"
320
  msgstr ""
321
 
322
+ #: includes/admin/views/html-admin-page-importer.php:284
323
  msgid "Enter tablet preview mode"
324
  msgstr ""
325
 
326
+ #: includes/admin/views/html-admin-page-importer.php:287
327
  msgid "Enter mobile preview mode"
328
  msgstr ""
329
 
795
  msgstr ""
796
 
797
  #. translators: %s: Number of plugins
798
+ #: includes/functions-demo-importer.php:424
799
  msgid "%s plugin successfully installed."
800
  msgstr ""
801
 
802
  #. translators: %s: Number of plugins
803
+ #: includes/functions-demo-importer.php:431
804
  msgid "%s plugins successfully installed."
805
  msgstr ""
806
 
807
  #. translators: %s: Number of failed installs
808
+ #: includes/functions-demo-importer.php:441
809
  msgid "%s install failed."
810
  msgstr ""
811
 
812
  #. translators: %s: Number of failed installs
813
+ #: includes/functions-demo-importer.php:446
814
  msgid "%s installs failed."
815
  msgstr ""
816
 
817
+ #: includes/functions-demo-importer.php:449
818
  msgid "Show more details"
819
  msgstr ""
820
 
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: ThemeGrill, shivapoudel
3
  Tags: themegrill, theme demos, demo, importer, one click import
4
  Requires at least: 4.7
5
- Tested up to: 5.5
6
- Stable tag: 1.6.9
7
  License: GPLv3 or later
8
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
9
 
@@ -72,6 +72,9 @@ Yes you can! Join in on our [GitHub repository](https://github.com/themegrill/th
72
  3. Finally, Import the Demo with just one click.
73
 
74
  == Changelog ==
 
 
 
75
  = 1.6.9 - 7-01-2021 =
76
  * Tweak - Require `Companion Addons for Elementor` plugin to import certain demos according to the demo config set
77
 
2
  Contributors: ThemeGrill, shivapoudel
3
  Tags: themegrill, theme demos, demo, importer, one click import
4
  Requires at least: 4.7
5
+ Tested up to: 5.6
6
+ Stable tag: 1.7.0
7
  License: GPLv3 or later
8
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
9
 
72
  3. Finally, Import the Demo with just one click.
73
 
74
  == Changelog ==
75
+ = 1.7.0 - 11-01-2021 =
76
+ * Tweak - Set FontAwesome 4 Shim feature to be enabled automatically on successful theme demo import.
77
+
78
  = 1.6.9 - 7-01-2021 =
79
  * Tweak - Require `Companion Addons for Elementor` plugin to import certain demos according to the demo config set
80
 
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 ThemeGrill official themes demo content, widgets and theme settings with just one click.
6
- * Version: 1.6.9
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 ThemeGrill official themes demo content, widgets and theme settings with just one click.
6
+ * Version: 1.7.0
7
  * Author: ThemeGrill
8
  * Author URI: https://themegrill.com
9
  * License: GPLv3 or later