Happy Addons for Elementor (Mega Menu, Post Grid, Woocommerce Product Grid, Table, Event Calendar, Slider Elementor Widget) - Version 2.12.1

Version Description

  • 9 June 2020 =

  • Fix: GravityForms widget issue causing elementor editor continuous loding

Download this release

Release Info

Developer thehappymonster
Plugin Icon 128x128 Happy Addons for Elementor (Mega Menu, Post Grid, Woocommerce Product Grid, Table, Event Calendar, Slider Elementor Widget)
Version 2.12.1
Comparing to
See all releases

Code changes from version 2.12.0 to 2.12.1

Files changed (4) hide show
  1. changelog.txt +4 -0
  2. inc/functions-forms.php +86 -73
  3. plugin.php +2 -2
  4. readme.txt +5 -1
changelog.txt CHANGED
@@ -1,3 +1,7 @@
 
 
 
 
1
  = 2.12.0 - 8 June 2020 =
2
 
3
  - New: Happy Templates Library
1
+ = 2.12.1 - 9 June 2020 =
2
+
3
+ - Fix: GravityForms widget issue causing elementor editor continuous loding
4
+
5
  = 2.12.0 - 8 June 2020 =
6
 
7
  - New: Happy Templates Library
inc/functions-forms.php CHANGED
@@ -13,7 +13,7 @@ defined( 'ABSPATH' ) || die();
13
  * @return bool
14
  */
15
  function ha_is_cf7_activated() {
16
- return class_exists( '\WPCF7' );
17
  }
18
 
19
  /**
@@ -22,7 +22,7 @@ function ha_is_cf7_activated() {
22
  * @return bool
23
  */
24
  function ha_is_wpforms_activated() {
25
- return class_exists( '\WPForms\WPForms' ) ;
26
  }
27
 
28
  /**
@@ -31,7 +31,7 @@ function ha_is_wpforms_activated() {
31
  * @return bool
32
  */
33
  function ha_is_ninjaforms_activated() {
34
- return class_exists( '\Ninja_Forms' );
35
  }
36
 
37
  /**
@@ -40,7 +40,7 @@ function ha_is_ninjaforms_activated() {
40
  * @return bool
41
  */
42
  function ha_is_calderaforms_activated() {
43
- return class_exists( '\Caldera_Forms' );
44
  }
45
 
46
  /**
@@ -49,7 +49,7 @@ function ha_is_calderaforms_activated() {
49
  * @return bool
50
  */
51
  function ha_is_weforms_activated() {
52
- return class_exists( '\WeForms' );
53
  }
54
 
55
  /**
@@ -67,7 +67,7 @@ function ha_is_gravityforms_activated() {
67
  * @return bool
68
  */
69
  function ha_is_fluent_form_activated() {
70
- return defined( 'FLUENTFORM' );
71
  }
72
 
73
  /**
@@ -76,21 +76,23 @@ function ha_is_fluent_form_activated() {
76
  * @return array
77
  */
78
  function ha_get_cf7_forms() {
79
- $forms = [];
80
- if ( ha_is_cf7_activated() ) {
81
- $_forms = get_posts( [
82
- 'post_type' => 'wpcf7_contact_form',
83
- 'post_status' => 'publish',
84
- 'posts_per_page' => -1,
85
- 'orderby' => 'title',
86
- 'order' => 'ASC',
87
- ] );
88
-
89
- if ( ! empty( $_forms ) ) {
90
- $forms = wp_list_pluck( $_forms, 'post_title', 'ID' );
91
- }
92
- }
93
- return $forms;
 
 
94
  }
95
 
96
  /**
@@ -99,21 +101,23 @@ function ha_get_cf7_forms() {
99
  * @return array
100
  */
101
  function ha_get_wpforms() {
102
- $forms = [];
103
- if ( ha_is_wpforms_activated() ) {
104
- $_forms = get_posts( [
105
- 'post_type' => 'wpforms',
106
- 'post_status' => 'publish',
107
- 'posts_per_page' => -1,
108
- 'orderby' => 'title',
109
- 'order' => 'ASC',
110
- ] );
111
-
112
- if ( ! empty( $_forms ) ) {
113
- $forms = wp_list_pluck( $_forms, 'post_title', 'ID' );
114
- }
115
- }
116
- return $forms;
 
 
117
  }
118
 
119
  /**
@@ -122,17 +126,19 @@ function ha_get_wpforms() {
122
  * @return array
123
  */
124
  function ha_get_ninjaform() {
125
- $forms = [];
126
- if ( ha_is_ninjaforms_activated() ) {
127
- $_forms = \Ninja_Forms()->form()->get_forms();
128
-
129
- if ( ! empty( $_forms ) && ! is_wp_error( $_forms ) ) {
130
- foreach ( $_forms as $form ) {
131
- $forms[ $form->get_id( )] = $form->get_setting('title');
132
- }
133
- }
134
- }
135
- return $forms;
 
 
136
  }
137
 
138
  /**
@@ -141,17 +147,19 @@ function ha_get_ninjaform() {
141
  * @return array
142
  */
143
  function ha_get_caldera_form() {
144
- $forms = [];
145
- if ( ha_is_calderaforms_activated() ) {
146
- $_forms = \Caldera_Forms_Forms::get_forms(true, true);
147
-
148
- if ( ! empty( $_forms ) && ! is_wp_error( $_forms ) ) {
149
- foreach ( $_forms as $form ) {
150
- $forms[ $form['ID'] ] = $form['name'];
151
- }
152
- }
153
- }
154
- return $forms;
 
 
155
  }
156
 
157
  /**
@@ -160,21 +168,23 @@ function ha_get_caldera_form() {
160
  * @return array
161
  */
162
  function ha_get_we_forms() {
163
- $forms = [];
164
- if ( ha_is_weforms_activated() ) {
165
- $_forms = get_posts( [
166
- 'post_type' => 'wpuf_contact_form',
167
- 'post_status' => 'publish',
168
- 'posts_per_page' => -1,
169
- 'orderby' => 'title',
170
- 'order' => 'ASC',
171
- ] );
172
-
173
- if ( ! empty( $_forms ) ) {
174
- $forms = wp_list_pluck( $_forms, 'post_title', 'ID' );
175
- }
176
- }
177
- return $forms;
 
 
178
  }
179
 
180
  /**
@@ -184,6 +194,7 @@ function ha_get_we_forms() {
184
  */
185
  function ha_get_gravity_forms() {
186
  $forms = [];
 
187
  if ( ha_is_gravityforms_activated() ) {
188
  $gravity_forms = \RGFormsModel::get_forms( null, 'title' );
189
 
@@ -193,6 +204,8 @@ function ha_get_gravity_forms() {
193
  }
194
  }
195
  }
 
 
196
  }
197
 
198
  /*
13
  * @return bool
14
  */
15
  function ha_is_cf7_activated() {
16
+ return class_exists( '\WPCF7' );
17
  }
18
 
19
  /**
22
  * @return bool
23
  */
24
  function ha_is_wpforms_activated() {
25
+ return class_exists( '\WPForms\WPForms' ) ;
26
  }
27
 
28
  /**
31
  * @return bool
32
  */
33
  function ha_is_ninjaforms_activated() {
34
+ return class_exists( '\Ninja_Forms' );
35
  }
36
 
37
  /**
40
  * @return bool
41
  */
42
  function ha_is_calderaforms_activated() {
43
+ return class_exists( '\Caldera_Forms' );
44
  }
45
 
46
  /**
49
  * @return bool
50
  */
51
  function ha_is_weforms_activated() {
52
+ return class_exists( '\WeForms' );
53
  }
54
 
55
  /**
67
  * @return bool
68
  */
69
  function ha_is_fluent_form_activated() {
70
+ return defined( 'FLUENTFORM' );
71
  }
72
 
73
  /**
76
  * @return array
77
  */
78
  function ha_get_cf7_forms() {
79
+ $forms = [];
80
+
81
+ if ( ha_is_cf7_activated() ) {
82
+ $_forms = get_posts( [
83
+ 'post_type' => 'wpcf7_contact_form',
84
+ 'post_status' => 'publish',
85
+ 'posts_per_page' => -1,
86
+ 'orderby' => 'title',
87
+ 'order' => 'ASC',
88
+ ] );
89
+
90
+ if ( ! empty( $_forms ) ) {
91
+ $forms = wp_list_pluck( $_forms, 'post_title', 'ID' );
92
+ }
93
+ }
94
+
95
+ return $forms;
96
  }
97
 
98
  /**
101
  * @return array
102
  */
103
  function ha_get_wpforms() {
104
+ $forms = [];
105
+
106
+ if ( ha_is_wpforms_activated() ) {
107
+ $_forms = get_posts( [
108
+ 'post_type' => 'wpforms',
109
+ 'post_status' => 'publish',
110
+ 'posts_per_page' => -1,
111
+ 'orderby' => 'title',
112
+ 'order' => 'ASC',
113
+ ] );
114
+
115
+ if ( ! empty( $_forms ) ) {
116
+ $forms = wp_list_pluck( $_forms, 'post_title', 'ID' );
117
+ }
118
+ }
119
+
120
+ return $forms;
121
  }
122
 
123
  /**
126
  * @return array
127
  */
128
  function ha_get_ninjaform() {
129
+ $forms = [];
130
+
131
+ if ( ha_is_ninjaforms_activated() ) {
132
+ $_forms = \Ninja_Forms()->form()->get_forms();
133
+
134
+ if ( ! empty( $_forms ) && ! is_wp_error( $_forms ) ) {
135
+ foreach ( $_forms as $form ) {
136
+ $forms[ $form->get_id( )] = $form->get_setting('title');
137
+ }
138
+ }
139
+ }
140
+
141
+ return $forms;
142
  }
143
 
144
  /**
147
  * @return array
148
  */
149
  function ha_get_caldera_form() {
150
+ $forms = [];
151
+
152
+ if ( ha_is_calderaforms_activated() ) {
153
+ $_forms = \Caldera_Forms_Forms::get_forms(true, true);
154
+
155
+ if ( ! empty( $_forms ) && ! is_wp_error( $_forms ) ) {
156
+ foreach ( $_forms as $form ) {
157
+ $forms[ $form['ID'] ] = $form['name'];
158
+ }
159
+ }
160
+ }
161
+
162
+ return $forms;
163
  }
164
 
165
  /**
168
  * @return array
169
  */
170
  function ha_get_we_forms() {
171
+ $forms = [];
172
+
173
+ if ( ha_is_weforms_activated() ) {
174
+ $_forms = get_posts( [
175
+ 'post_type' => 'wpuf_contact_form',
176
+ 'post_status' => 'publish',
177
+ 'posts_per_page' => -1,
178
+ 'orderby' => 'title',
179
+ 'order' => 'ASC',
180
+ ] );
181
+
182
+ if ( ! empty( $_forms ) ) {
183
+ $forms = wp_list_pluck( $_forms, 'post_title', 'ID' );
184
+ }
185
+ }
186
+
187
+ return $forms;
188
  }
189
 
190
  /**
194
  */
195
  function ha_get_gravity_forms() {
196
  $forms = [];
197
+
198
  if ( ha_is_gravityforms_activated() ) {
199
  $gravity_forms = \RGFormsModel::get_forms( null, 'title' );
200
 
204
  }
205
  }
206
  }
207
+
208
+ return $forms;
209
  }
210
 
211
  /*
plugin.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Happy Elementor Addons
4
  * Plugin URI: https://happyaddons.com/
5
  * Description: <a href="https://happyaddons.com/">HappyAddons</a> is a collection of slick, powerful widgets that works seamlessly with Elementor page builder. It’s trendy look with detail customization features allows to create extraordinary designs instantly. <a href="https://happyaddons.com/">HappyAddons</a> is free, rapidly growing and comes with great support.
6
- * Version: 2.12.0
7
  * Author: weDevs
8
  * Author URI: https://happyaddons.com/
9
  * License: GPLv2
@@ -34,7 +34,7 @@ Copyright 2019 HappyMonster <http://happymonster.me>
34
 
35
  defined( 'ABSPATH' ) || die();
36
 
37
- define( 'HAPPY_ADDONS_VERSION', '2.12.0' );
38
  define( 'HAPPY_ADDONS__FILE__', __FILE__ );
39
  define( 'HAPPY_ADDONS_DIR_PATH', plugin_dir_path( HAPPY_ADDONS__FILE__ ) );
40
  define( 'HAPPY_ADDONS_DIR_URL', plugin_dir_url( HAPPY_ADDONS__FILE__ ) );
3
  * Plugin Name: Happy Elementor Addons
4
  * Plugin URI: https://happyaddons.com/
5
  * Description: <a href="https://happyaddons.com/">HappyAddons</a> is a collection of slick, powerful widgets that works seamlessly with Elementor page builder. It’s trendy look with detail customization features allows to create extraordinary designs instantly. <a href="https://happyaddons.com/">HappyAddons</a> is free, rapidly growing and comes with great support.
6
+ * Version: 2.12.1
7
  * Author: weDevs
8
  * Author URI: https://happyaddons.com/
9
  * License: GPLv2
34
 
35
  defined( 'ABSPATH' ) || die();
36
 
37
+ define( 'HAPPY_ADDONS_VERSION', '2.12.1' );
38
  define( 'HAPPY_ADDONS__FILE__', __FILE__ );
39
  define( 'HAPPY_ADDONS_DIR_PATH', plugin_dir_path( HAPPY_ADDONS__FILE__ ) );
40
  define( 'HAPPY_ADDONS_DIR_URL', plugin_dir_url( HAPPY_ADDONS__FILE__ ) );
readme.txt CHANGED
@@ -1,6 +1,6 @@
1
  === Happy Addons for Elementor ===
2
  Plugin Name: Happy Addons for Elementor
3
- Version: 2.12.0
4
  Author: weDevs
5
  Author URI: https://happyaddons.com/
6
  Contributors: thehappymonster, happyaddons, hasinhayder, mosaddek73, tareq1988, sourav926, wedevs, iqbalrony, mrokon, obiplabon
@@ -258,6 +258,10 @@ For a more detailed explanation check out the following documentation
258
 
259
  == Changelog ==
260
 
 
 
 
 
261
  = 2.12.0 - 8 June 2020 =
262
 
263
  - New: Happy Templates Library
1
  === Happy Addons for Elementor ===
2
  Plugin Name: Happy Addons for Elementor
3
+ Version: 2.12.1
4
  Author: weDevs
5
  Author URI: https://happyaddons.com/
6
  Contributors: thehappymonster, happyaddons, hasinhayder, mosaddek73, tareq1988, sourav926, wedevs, iqbalrony, mrokon, obiplabon
258
 
259
  == Changelog ==
260
 
261
+ = 2.12.1 - 9 June 2020 =
262
+
263
+ - Fix: GravityForms widget issue causing elementor editor continuous loding
264
+
265
  = 2.12.0 - 8 June 2020 =
266
 
267
  - New: Happy Templates Library