Flash Toolkit - Version 1.2.2

Version Description

  • 22-07-2020 ==
  • Fix - Slider widget not loading on certain conditions.
  • FIx - PHP Warning: count(): Parameter must be an array or an object that implements Countable

=

Download this release

Release Info

Developer themegrilldev
Plugin Icon 128x128 Flash Toolkit
Version 1.2.2
Comparing to
See all releases

Code changes from version 1.2.1 to 1.2.2

flash-toolkit.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Flash Toolkit
4
  * Plugin URI: http://themegrill.com/theme/flash
5
  * Description: Flash Toolkit is a companion for Flash WordPress theme by ThemeGrill
6
- * Version: 1.2.1
7
  * Author: ThemeGrill
8
  * Author URI: http://themegrill.com
9
  * License: GPLv3 or later
@@ -30,7 +30,7 @@ if ( ! class_exists( 'FlashToolkit' ) ) :
30
  *
31
  * @var string
32
  */
33
- public $version = '1.2.1';
34
 
35
  /**
36
  * Instance of this class.
3
  * Plugin Name: Flash Toolkit
4
  * Plugin URI: http://themegrill.com/theme/flash
5
  * Description: Flash Toolkit is a companion for Flash WordPress theme by ThemeGrill
6
+ * Version: 1.2.2
7
  * Author: ThemeGrill
8
  * Author URI: http://themegrill.com
9
  * License: GPLv3 or later
30
  *
31
  * @var string
32
  */
33
+ public $version = '1.2.2';
34
 
35
  /**
36
  * Instance of this class.
i18n/languages/flash-toolkit.pot CHANGED
@@ -1,20 +1,20 @@
1
- # Copyright (C) 2019 ThemeGrill
2
  # This file is distributed under the GPLv3 or later.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Flash Toolkit 1.1.8\n"
6
  "Report-Msgid-Bugs-To: themegrill@gmail.com\n"
7
- "POT-Creation-Date: 2019-06-17 10:01:09+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
- "PO-Revision-Date: 2019-MO-DA HO:MI+ZONE\n"
12
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
  "Language-Team: LANGUAGE <EMAIL@ADDRESS>\n"
14
- "X-Generator: grunt-wp-i18n1.0.2\n"
15
 
16
- #: flash-toolkit.php:57 flash-toolkit.php:65
17
- #: includes/admin/class-flash-admin-notices.php:107
18
  #: includes/class-flash-sidebars.php:98
19
  msgid "Cheatin&#8217; huh?"
20
  msgstr ""
@@ -23,16 +23,16 @@ msgstr ""
23
  msgid "Flash Toolkit"
24
  msgstr ""
25
 
26
- #: flash-toolkit.php:176
27
  msgid "This plugin requires %s by ThemeGrill to work."
28
  msgstr ""
29
 
30
- #: flash-toolkit.php:176
31
  msgid "Flash Theme"
32
  msgstr ""
33
 
34
- #: includes/abstracts/abstract-flash-widget.php:236
35
- #: includes/abstracts/abstract-flash-widget.php:258
36
  #: includes/admin/meta-boxes/class-flash-meta-box-portfolio-data.php:34
37
  #: includes/widgets/class-flash-widget-about.php:37
38
  #: includes/widgets/class-flash-widget-about.php:43
@@ -53,7 +53,6 @@ msgstr ""
53
  #: includes/widgets/class-flash-widget-cta.php:63
54
  #: includes/widgets/class-flash-widget-cta.php:70
55
  #: includes/widgets/class-flash-widget-portfolio.php:44
56
- #: includes/widgets/class-flash-widget-portfolio.php:52
57
  #: includes/widgets/class-flash-widget-portfolio.php:53
58
  #: includes/widgets/class-flash-widget-portfolio.php:61
59
  #: includes/widgets/class-flash-widget-service.php:37
@@ -76,45 +75,45 @@ msgstr ""
76
  msgid "General"
77
  msgstr ""
78
 
79
- #: includes/abstracts/abstract-flash-widget.php:362
80
- #: includes/abstracts/abstract-flash-widget.php:555
81
  msgid "Remove media"
82
  msgstr ""
83
 
84
- #: includes/abstracts/abstract-flash-widget.php:370
85
- #: includes/abstracts/abstract-flash-widget.php:563
86
  msgid "Choose an image"
87
  msgstr ""
88
 
89
- #: includes/abstracts/abstract-flash-widget.php:370
90
- #: includes/abstracts/abstract-flash-widget.php:563
91
  msgid "Use image"
92
  msgstr ""
93
 
94
- #: includes/abstracts/abstract-flash-widget.php:370
95
- #: includes/abstracts/abstract-flash-widget.php:563
96
  msgid "Select an Image"
97
  msgstr ""
98
 
99
- #: includes/abstracts/abstract-flash-widget.php:397
100
- #: includes/abstracts/abstract-flash-widget.php:573
101
  msgid "Choose icons&hellip;"
102
  msgstr ""
103
 
104
- #: includes/abstracts/abstract-flash-widget.php:397
105
- #: includes/abstracts/abstract-flash-widget.php:573
106
  msgid "Icon"
107
  msgstr ""
108
 
109
- #: includes/abstracts/abstract-flash-widget.php:411
110
  msgid "Choose fonts&hellip;"
111
  msgstr ""
112
 
113
- #: includes/abstracts/abstract-flash-widget.php:411
114
  msgid "Font"
115
  msgstr ""
116
 
117
- #: includes/abstracts/abstract-flash-widget.php:425
118
  msgid "Choose"
119
  msgstr ""
120
 
@@ -158,7 +157,36 @@ msgstr ""
158
  msgid "%s Layout"
159
  msgstr ""
160
 
161
- #: includes/admin/class-flash-admin-notices.php:103
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
162
  #: includes/class-flash-sidebars.php:94
163
  msgid "Action failed. Please refresh the page and retry."
164
  msgstr ""
@@ -499,19 +527,19 @@ msgstr ""
499
  msgid "Taking a while? Click here to run it now."
500
  msgstr ""
501
 
502
- #: includes/class-flash-install.php:280
503
  msgid "View Flash Toolkit Documentation"
504
  msgstr ""
505
 
506
- #: includes/class-flash-install.php:280
507
  msgid "Docs"
508
  msgstr ""
509
 
510
- #: includes/class-flash-install.php:281
511
  msgid "Visit Free Customer Support Forum"
512
  msgstr ""
513
 
514
- #: includes/class-flash-install.php:281
515
  msgid "Free Support"
516
  msgstr ""
517
 
@@ -843,14 +871,27 @@ msgstr ""
843
  msgid "FT: CTA"
844
  msgstr ""
845
 
 
 
 
 
846
  #: includes/widgets/class-flash-widget-cta.php:36
847
  msgid "Call to action Title"
848
  msgstr ""
849
 
 
 
 
 
850
  #: includes/widgets/class-flash-widget-cta.php:42
851
  msgid "Call to Action Subtitle"
852
  msgstr ""
853
 
 
 
 
 
 
854
  #: includes/widgets/class-flash-widget-cta.php:48
855
  msgid "Call to Action Button 1 Text"
856
  msgstr ""
1
+ # Copyright (C) 2020 ThemeGrill
2
  # This file is distributed under the GPLv3 or later.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Flash Toolkit 1.2.2\n"
6
  "Report-Msgid-Bugs-To: themegrill@gmail.com\n"
7
+ "POT-Creation-Date: 2020-07-22 06:33:35+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: 2020-MO-DA HO:MI+ZONE\n"
12
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
  "Language-Team: LANGUAGE <EMAIL@ADDRESS>\n"
14
+ "X-Generator: grunt-wp-i18n1.0.1\n"
15
 
16
+ #: flash-toolkit.php:62 flash-toolkit.php:71
17
+ #: includes/admin/class-flash-admin-notices.php:243
18
  #: includes/class-flash-sidebars.php:98
19
  msgid "Cheatin&#8217; huh?"
20
  msgstr ""
23
  msgid "Flash Toolkit"
24
  msgstr ""
25
 
26
+ #: flash-toolkit.php:185
27
  msgid "This plugin requires %s by ThemeGrill to work."
28
  msgstr ""
29
 
30
+ #: flash-toolkit.php:185
31
  msgid "Flash Theme"
32
  msgstr ""
33
 
34
+ #: includes/abstracts/abstract-flash-widget.php:239
35
+ #: includes/abstracts/abstract-flash-widget.php:261
36
  #: includes/admin/meta-boxes/class-flash-meta-box-portfolio-data.php:34
37
  #: includes/widgets/class-flash-widget-about.php:37
38
  #: includes/widgets/class-flash-widget-about.php:43
53
  #: includes/widgets/class-flash-widget-cta.php:63
54
  #: includes/widgets/class-flash-widget-cta.php:70
55
  #: includes/widgets/class-flash-widget-portfolio.php:44
 
56
  #: includes/widgets/class-flash-widget-portfolio.php:53
57
  #: includes/widgets/class-flash-widget-portfolio.php:61
58
  #: includes/widgets/class-flash-widget-service.php:37
75
  msgid "General"
76
  msgstr ""
77
 
78
+ #: includes/abstracts/abstract-flash-widget.php:365
79
+ #: includes/abstracts/abstract-flash-widget.php:573
80
  msgid "Remove media"
81
  msgstr ""
82
 
83
+ #: includes/abstracts/abstract-flash-widget.php:373
84
+ #: includes/abstracts/abstract-flash-widget.php:581
85
  msgid "Choose an image"
86
  msgstr ""
87
 
88
+ #: includes/abstracts/abstract-flash-widget.php:373
89
+ #: includes/abstracts/abstract-flash-widget.php:581
90
  msgid "Use image"
91
  msgstr ""
92
 
93
+ #: includes/abstracts/abstract-flash-widget.php:373
94
+ #: includes/abstracts/abstract-flash-widget.php:581
95
  msgid "Select an Image"
96
  msgstr ""
97
 
98
+ #: includes/abstracts/abstract-flash-widget.php:400
99
+ #: includes/abstracts/abstract-flash-widget.php:591
100
  msgid "Choose icons&hellip;"
101
  msgstr ""
102
 
103
+ #: includes/abstracts/abstract-flash-widget.php:400
104
+ #: includes/abstracts/abstract-flash-widget.php:591
105
  msgid "Icon"
106
  msgstr ""
107
 
108
+ #: includes/abstracts/abstract-flash-widget.php:414
109
  msgid "Choose fonts&hellip;"
110
  msgstr ""
111
 
112
+ #: includes/abstracts/abstract-flash-widget.php:414
113
  msgid "Font"
114
  msgstr ""
115
 
116
+ #: includes/abstracts/abstract-flash-widget.php:428
117
  msgid "Choose"
118
  msgstr ""
119
 
157
  msgid "%s Layout"
158
  msgstr ""
159
 
160
+ #: includes/admin/class-flash-admin-notices.php:112
161
+ msgid "Unlock true potential of Flash!"
162
+ msgstr ""
163
+
164
+ #: includes/admin/class-flash-admin-notices.php:117
165
+ msgid ""
166
+ "Howdy, %1$s! You've been using %2$s for a while now, and we hope you're "
167
+ "happy with it. If you need more options and want to get access to the "
168
+ "premium features, check the pricing by clicking link below. Also, you can "
169
+ "use the coupon code %3$s to get 15 percent discount while making the "
170
+ "purchase. Enjoy!"
171
+ msgstr ""
172
+
173
+ #: includes/admin/class-flash-admin-notices.php:137
174
+ msgid "Go Pro"
175
+ msgstr ""
176
+
177
+ #: includes/admin/class-flash-admin-notices.php:142
178
+ msgid "Remind me later"
179
+ msgstr ""
180
+
181
+ #: includes/admin/class-flash-admin-notices.php:147
182
+ msgid "I already have Pro version"
183
+ msgstr ""
184
+
185
+ #: includes/admin/class-flash-admin-notices.php:152
186
+ msgid "Got any queries?"
187
+ msgstr ""
188
+
189
+ #: includes/admin/class-flash-admin-notices.php:239
190
  #: includes/class-flash-sidebars.php:94
191
  msgid "Action failed. Please refresh the page and retry."
192
  msgstr ""
527
  msgid "Taking a while? Click here to run it now."
528
  msgstr ""
529
 
530
+ #: includes/class-flash-install.php:312
531
  msgid "View Flash Toolkit Documentation"
532
  msgstr ""
533
 
534
+ #: includes/class-flash-install.php:312
535
  msgid "Docs"
536
  msgstr ""
537
 
538
+ #: includes/class-flash-install.php:313
539
  msgid "Visit Free Customer Support Forum"
540
  msgstr ""
541
 
542
+ #: includes/class-flash-install.php:313
543
  msgid "Free Support"
544
  msgstr ""
545
 
871
  msgid "FT: CTA"
872
  msgstr ""
873
 
874
+ #: includes/widgets/class-flash-widget-cta.php:35
875
+ msgid "This is the title"
876
+ msgstr ""
877
+
878
  #: includes/widgets/class-flash-widget-cta.php:36
879
  msgid "Call to action Title"
880
  msgstr ""
881
 
882
+ #: includes/widgets/class-flash-widget-cta.php:41
883
+ msgid "This is the subtitle"
884
+ msgstr ""
885
+
886
  #: includes/widgets/class-flash-widget-cta.php:42
887
  msgid "Call to Action Subtitle"
888
  msgstr ""
889
 
890
+ #: includes/widgets/class-flash-widget-cta.php:47
891
+ #: includes/widgets/class-flash-widget-cta.php:61
892
+ msgid "Button %s"
893
+ msgstr ""
894
+
895
  #: includes/widgets/class-flash-widget-cta.php:48
896
  msgid "Call to Action Button 1 Text"
897
  msgstr ""
includes/abstracts/views/html-admin-tmpl-repeater.php CHANGED
@@ -11,7 +11,7 @@ $screen = get_current_screen();
11
  $screen_id = $screen ? $screen->id : '';
12
  $field_widget_id = in_array( $screen_id, array( 'widgets', 'customize' ), true ) ? $this->id : $this->widget_id;
13
  $repeater_field_id = strtolower( str_replace( ' ', '-', $setting['title'] ) ) . '-{{ data.field_id }}';
14
- $max_field_entries = count( $value ) >= apply_filters( 'flash_toolkit_maximum_repeater_field_entries', 5 ) ? 'disabled' : 'enabled';
15
 
16
  ?>
17
  <div id="tg-widget-repeater-field" class="accordion-sortables">
11
  $screen_id = $screen ? $screen->id : '';
12
  $field_widget_id = in_array( $screen_id, array( 'widgets', 'customize' ), true ) ? $this->id : $this->widget_id;
13
  $repeater_field_id = strtolower( str_replace( ' ', '-', $setting['title'] ) ) . '-{{ data.field_id }}';
14
+ $max_field_entries = count( (array) $value ) >= apply_filters( 'flash_toolkit_maximum_repeater_field_entries', 5 ) ? 'disabled' : 'enabled';
15
 
16
  ?>
17
  <div id="tg-widget-repeater-field" class="accordion-sortables">
includes/functions-flash-core.php CHANGED
@@ -313,3 +313,67 @@ function flash_has_manual_excerpt( $post ) {
313
 
314
  return true;
315
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
313
 
314
  return true;
315
  }
316
+
317
+ /**
318
+ * Enqueue custom library files, which should be used for widgets.
319
+ */
320
+ function flashtoolkit_enqueue_script() {
321
+ global $post;
322
+ $panels_data = get_post_meta( $post->ID, 'panels_data', true );
323
+
324
+ if ( ! empty( $panels_data['widgets'] ) ) {
325
+
326
+ foreach ( $panels_data['widgets'] as $widget ) {
327
+ // For FT: Slider widget, For FT: Logo widget, For FT: Testimonial widget, For FT: Instagram Slider widget, For FT: Post Slider widget, For FT: WooCommerce Category Slider widget.
328
+ if ( 'FT_Widget_Slider' == $widget['panels_info']['class'] || 'FT_Widget_Logo' == $widget['panels_info']['class'] || 'FT_Widget_Testimonial' == $widget['panels_info']['class'] || 'FT_Widget_InstagramSlider' == $widget['panels_info']['class'] || 'FT_Widget_PostSlider' == $widget['panels_info']['class'] || 'FT_Widget_WcCatSlider' == $widget['panels_info']['class'] ) {
329
+ wp_enqueue_style( 'swiper' );
330
+ wp_enqueue_script( 'swiper' );
331
+ }
332
+
333
+ // For FT: Animated Number Counter widget.
334
+ if ( 'FT_Widget_Counter' == $widget['panels_info']['class'] ) {
335
+ wp_enqueue_script( 'waypoints' );
336
+ wp_enqueue_script( 'counterup' );
337
+ }
338
+
339
+ // For FT: Portfolio widget.
340
+ if ( 'FT_Widget_Portfolio' == $widget['panels_info']['class'] ) {
341
+ wp_enqueue_script( 'isotope' );
342
+ }
343
+
344
+ // For FT: Accordion widget.
345
+ if ( 'FT_Accordion' == $widget['panels_info']['class'] ) {
346
+ wp_enqueue_script( 'jquery-ui-accordion' );
347
+ }
348
+
349
+ // For FT: Countdown widget.
350
+ if ( 'FT_Widget_Countdown' == $widget['panels_info']['class'] ) {
351
+ wp_enqueue_script( 'jquery.plugin' );
352
+ wp_enqueue_script( 'jquery.countdown' );
353
+ }
354
+
355
+ // For FT: Google Map widget.
356
+ if ( 'FT_Widget_GoogleMap' == $widget['panels_info']['class'] ) {
357
+ wp_enqueue_script( 'googlemap' );
358
+ }
359
+
360
+ // For FT: Progress Bar widget.
361
+ if ( 'FT_Widget_ProgressBar' == $widget['panels_info']['class'] ) {
362
+ wp_enqueue_script( 'waypoints' );
363
+ }
364
+
365
+ // For FT: Tabs widget, For FT: WooCommerce Product Tab widget.
366
+ if ( 'FT_Tabs' == $widget['panels_info']['class'] || 'FT_Widget_WcProductTab' == $widget['panels_info']['class'] ) {
367
+ wp_enqueue_script( 'jquery-ui-tabs' );
368
+ }
369
+
370
+ // For FT: Video Player widget.
371
+ if ( 'FT_Video_Player' == $widget['panels_info']['class'] ) {
372
+ wp_enqueue_style( 'jquery-swipebox' );
373
+ wp_enqueue_script( 'jquery-swipebox' );
374
+ }
375
+ }
376
+ }
377
+ }
378
+
379
+ add_action( 'wp_enqueue_scripts', 'flashtoolkit_enqueue_script', 20 );
package.json CHANGED
@@ -1,7 +1,7 @@
1
  {
2
  "name": "flash-toolkit",
3
  "title": "Flash Toolkit",
4
- "version": "1.2.1",
5
  "homepage": "http://themegrill.com/plugins/flash-toolkit/",
6
  "repository": {
7
  "type": "git",
1
  {
2
  "name": "flash-toolkit",
3
  "title": "Flash Toolkit",
4
+ "version": "1.2.2",
5
  "homepage": "http://themegrill.com/plugins/flash-toolkit/",
6
  "repository": {
7
  "type": "git",
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: ThemeGrill, shivapoudel
3
  Tags: theme, flash, toolkit, themegrill
4
  Requires at least: 4.0
5
- Tested up to: 5.3.2
6
- Stable tag: 1.2.1
7
  License: GPLv3
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
@@ -31,6 +31,10 @@ Get free support at https://themegrill.com/support-forum/
31
  * The plugin currently only supports Flash theme.
32
 
33
  == Changelog ==
 
 
 
 
34
  == 1.2.1 - 11-02-2020 =
35
  * Tweak - Toolkit compatibility upto WordPress version 5.3.2.
36
  * Enhancement - Added filter for maximum portfolio number in Portfolio widget.
2
  Contributors: ThemeGrill, shivapoudel
3
  Tags: theme, flash, toolkit, themegrill
4
  Requires at least: 4.0
5
+ Tested up to: 5.4
6
+ Stable tag: 1.2.2
7
  License: GPLv3
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
31
  * The plugin currently only supports Flash theme.
32
 
33
  == Changelog ==
34
+ == 1.2.2 - 22-07-2020 ==
35
+ * Fix - Slider widget not loading on certain conditions.
36
+ * FIx - PHP Warning: count(): Parameter must be an array or an object that implements Countable
37
+
38
  == 1.2.1 - 11-02-2020 =
39
  * Tweak - Toolkit compatibility upto WordPress version 5.3.2.
40
  * Enhancement - Added filter for maximum portfolio number in Portfolio widget.