Version Description
- Fixed: Admin Notice Fixed.
Download this release
Release Info
Developer | wpvibes |
Plugin | Elementor Addon Elements |
Version | 1.11.5 |
Comparing to | |
See all releases |
Code changes from version 1.11.4 to 1.11.5
- elementor-addon-elements.php +4 -4
- inc/admin/admin-notice.php +4 -4
- inc/bootstrap.php +48 -28
- readme.txt +3 -0
elementor-addon-elements.php
CHANGED
@@ -5,10 +5,10 @@
|
|
5 |
* Description: Elementor Addon Elements comes with 25+ widgets and extensions to extend the power of Elementor Page Builder.
|
6 |
* Plugin URI: https://www.elementoraddons.com/elements-addon-elements/
|
7 |
* Author: WPVibes
|
8 |
-
* Version: 1.11.
|
9 |
* Author URI: https://wpvibes.com/
|
10 |
-
* Elementor tested up to: 3.1.
|
11 |
-
* Elementor Pro tested up to: 3.2.
|
12 |
* Text Domain: wts-eae
|
13 |
* @package WTS_EAE
|
14 |
*/
|
@@ -16,7 +16,7 @@ define( 'EAE_FILE', __FILE__ );
|
|
16 |
define( 'EAE_URL', plugins_url( '/', __FILE__ ) );
|
17 |
define( 'EAE_PATH', plugin_dir_path( __FILE__ ) );
|
18 |
define( 'EAE_SCRIPT_SUFFIX', defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min' );
|
19 |
-
define( 'EAE_VERSION', '1.11.
|
20 |
|
21 |
|
22 |
if ( ! function_exists( '_is_elementor_installed' ) ) {
|
5 |
* Description: Elementor Addon Elements comes with 25+ widgets and extensions to extend the power of Elementor Page Builder.
|
6 |
* Plugin URI: https://www.elementoraddons.com/elements-addon-elements/
|
7 |
* Author: WPVibes
|
8 |
+
* Version: 1.11.5
|
9 |
* Author URI: https://wpvibes.com/
|
10 |
+
* Elementor tested up to: 3.1.4
|
11 |
+
* Elementor Pro tested up to: 3.2.1
|
12 |
* Text Domain: wts-eae
|
13 |
* @package WTS_EAE
|
14 |
*/
|
16 |
define( 'EAE_URL', plugins_url( '/', __FILE__ ) );
|
17 |
define( 'EAE_PATH', plugin_dir_path( __FILE__ ) );
|
18 |
define( 'EAE_SCRIPT_SUFFIX', defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min' );
|
19 |
+
define( 'EAE_VERSION', '1.11.5' );
|
20 |
|
21 |
|
22 |
if ( ! function_exists( '_is_elementor_installed' ) ) {
|
inc/admin/admin-notice.php
CHANGED
@@ -26,7 +26,7 @@ class Admin_Notice {
|
|
26 |
|
27 |
if ( ! $check_review ) {
|
28 |
$review = [
|
29 |
-
'installed' => current_time( '
|
30 |
'status' => '',
|
31 |
];
|
32 |
|
@@ -36,7 +36,7 @@ class Admin_Notice {
|
|
36 |
$check_review = get_option( 'eae_review' );
|
37 |
|
38 |
$start = $check_review['installed'];
|
39 |
-
$end = current_time( '
|
40 |
|
41 |
$days = $this->dateDiff( $start, $end );
|
42 |
|
@@ -66,8 +66,8 @@ class Admin_Notice {
|
|
66 |
}
|
67 |
|
68 |
$remind_later = get_transient( 'eae_remind_later' );
|
69 |
-
|
70 |
-
if ( $check_review['status']
|
71 |
$notice[] = 'eae_review';
|
72 |
return $notice;
|
73 |
}
|
26 |
|
27 |
if ( ! $check_review ) {
|
28 |
$review = [
|
29 |
+
'installed' => current_time( 'Y/m/d' ),
|
30 |
'status' => '',
|
31 |
];
|
32 |
|
36 |
$check_review = get_option( 'eae_review' );
|
37 |
|
38 |
$start = $check_review['installed'];
|
39 |
+
$end = current_time( 'Y/m/d' );
|
40 |
|
41 |
$days = $this->dateDiff( $start, $end );
|
42 |
|
66 |
}
|
67 |
|
68 |
$remind_later = get_transient( 'eae_remind_later' );
|
69 |
+
// phpcs:ignore WordPress.PHP.StrictComparisons.LooseComparison
|
70 |
+
if ( $check_review['status'] == '' && $remind_later == '' ) {
|
71 |
$notice[] = 'eae_review';
|
72 |
return $notice;
|
73 |
}
|
inc/bootstrap.php
CHANGED
@@ -306,9 +306,13 @@ class Plugin {
|
|
306 |
return round( $datediff / 86400 );
|
307 |
}
|
308 |
public function eae_review() {
|
309 |
-
if (
|
|
|
|
|
|
|
|
|
310 |
$this->eae_remind_later();
|
311 |
-
} elseif (
|
312 |
$this->eae_review_done();
|
313 |
} else {
|
314 |
add_action( 'admin_notices', [ $this, 'eae_review_box' ] );
|
@@ -318,7 +322,7 @@ class Plugin {
|
|
318 |
public function eae_review_box( $review ) {
|
319 |
?>
|
320 |
<div class="notice notice-success is-dismissible">
|
321 |
-
<p><?php
|
322 |
<p>
|
323 |
<?php
|
324 |
printf(
|
@@ -328,13 +332,19 @@ class Plugin {
|
|
328 |
|
329 |
printf(
|
330 |
'<a class="eae-notice-link" style="padding-right: 5px;" href="%1$s"><span class="dashicons dashicons-schedule" style="text-decoration : none; margin : 0px 3px;"></span>%2$s</a>',
|
331 |
-
esc_url(
|
|
|
|
|
|
|
332 |
esc_html__( 'May Be Later', 'wts-eae' )
|
333 |
);
|
334 |
|
335 |
printf(
|
336 |
'<a class="eae-notice-link" style="padding-right: 5px;" href="%1$s"><span class="dashicons dashicons-smiley" style="text-decoration : none; margin : 0px 3px;"></span>%2$s</a>',
|
337 |
-
esc_url(
|
|
|
|
|
|
|
338 |
esc_html__( 'Already Done', 'wts-eae' )
|
339 |
);
|
340 |
?>
|
@@ -351,14 +361,18 @@ class Plugin {
|
|
351 |
public function eae_review_done() {
|
352 |
$review = get_option( 'eae_review' );
|
353 |
$review['status'] = 'done';
|
354 |
-
$review['reviwed'] = current_time( '
|
355 |
update_option( 'eae_review', $review, false );
|
356 |
}
|
357 |
|
358 |
public function fv_download_box() {
|
359 |
-
if (
|
|
|
|
|
|
|
|
|
360 |
$this->fv_download_later();
|
361 |
-
} elseif (
|
362 |
$this->fv_not_interested();
|
363 |
} else {
|
364 |
$this->check_form_used();
|
@@ -404,27 +418,33 @@ class Plugin {
|
|
404 |
</div>
|
405 |
<div class="fv-add-content">
|
406 |
<div>
|
407 |
-
|
408 |
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
-
|
413 |
-
|
414 |
-
|
415 |
-
|
416 |
-
|
417 |
-
|
418 |
-
|
419 |
-
|
420 |
-
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
|
425 |
-
|
426 |
-
|
427 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
428 |
</div>
|
429 |
</div>
|
430 |
</div>
|
306 |
return round( $datediff / 86400 );
|
307 |
}
|
308 |
public function eae_review() {
|
309 |
+
if ( isset( $_GET['eae_nonce'] ) && ! wp_verify_nonce( $_GET['eae_nonce'], 'wp_rest' ) ) {
|
310 |
+
die( 'Sorry, your nonce did not verify!' );
|
311 |
+
}
|
312 |
+
|
313 |
+
if ( isset( $_GET['remind_later'] ) ) {
|
314 |
$this->eae_remind_later();
|
315 |
+
} elseif ( isset( $_GET['review_done'] ) ) {
|
316 |
$this->eae_review_done();
|
317 |
} else {
|
318 |
add_action( 'admin_notices', [ $this, 'eae_review_box' ] );
|
322 |
public function eae_review_box( $review ) {
|
323 |
?>
|
324 |
<div class="notice notice-success is-dismissible">
|
325 |
+
<p><?php echo 'I hope you are enjoying using <b>Elementor Addon Elements</b>. Could you please do a BIG favor and give it a 5-star rating on WordPress.org ? <br/> Just to help us spread the word and boost our motivation. <br/><b>~ Anand Upadhyay</b>'; ?></p>
|
326 |
<p>
|
327 |
<?php
|
328 |
printf(
|
332 |
|
333 |
printf(
|
334 |
'<a class="eae-notice-link" style="padding-right: 5px;" href="%1$s"><span class="dashicons dashicons-schedule" style="text-decoration : none; margin : 0px 3px;"></span>%2$s</a>',
|
335 |
+
esc_url(
|
336 |
+
add_query_arg( 'remind_later', 'later' ) .
|
337 |
+
add_query_arg( 'eae_nonce', wp_create_nonce( 'wp_rest' ) )
|
338 |
+
),
|
339 |
esc_html__( 'May Be Later', 'wts-eae' )
|
340 |
);
|
341 |
|
342 |
printf(
|
343 |
'<a class="eae-notice-link" style="padding-right: 5px;" href="%1$s"><span class="dashicons dashicons-smiley" style="text-decoration : none; margin : 0px 3px;"></span>%2$s</a>',
|
344 |
+
esc_url(
|
345 |
+
add_query_arg( 'review_done', 'done' ) .
|
346 |
+
add_query_arg( 'eae_nonce', wp_create_nonce( 'wp_rest' ) )
|
347 |
+
),
|
348 |
esc_html__( 'Already Done', 'wts-eae' )
|
349 |
);
|
350 |
?>
|
361 |
public function eae_review_done() {
|
362 |
$review = get_option( 'eae_review' );
|
363 |
$review['status'] = 'done';
|
364 |
+
$review['reviwed'] = current_time( 'Y/m/d' );
|
365 |
update_option( 'eae_review', $review, false );
|
366 |
}
|
367 |
|
368 |
public function fv_download_box() {
|
369 |
+
if ( isset( $_GET['eae_nonce'] ) && ! wp_verify_nonce( $_GET['eae_nonce'], 'wp_rest' ) ) {
|
370 |
+
die( 'Sorry, your nonce did not verify!' );
|
371 |
+
}
|
372 |
+
|
373 |
+
if ( isset( $_GET['fv_download_later'] ) ) {
|
374 |
$this->fv_download_later();
|
375 |
+
} elseif ( isset( $_GET['fv_not_interested'] ) ) {
|
376 |
$this->fv_not_interested();
|
377 |
} else {
|
378 |
$this->check_form_used();
|
418 |
</div>
|
419 |
<div class="fv-add-content">
|
420 |
<div>
|
421 |
+
<p><?php printf( 'I hope you are enjoying using <b>%1$s</b>. Here is another useful plugin by us - <b>%2$s</b>. <br/>If you are using Elementor Pro Form, then you can capture form submissions within WordPress Admin.', 'Elementor Addon Elements', 'Form Vibes' ); ?></p>
|
422 |
|
423 |
+
<p>
|
424 |
+
<?php
|
425 |
+
|
426 |
+
printf(
|
427 |
+
'<a class="eae-notice-link" style="padding: 5px;" href=" %splugin-install.php?s=form+vibes&tab=search&type=term">Download Now</a>',
|
428 |
+
esc_url( admin_url() )
|
429 |
+
);
|
430 |
+
printf(
|
431 |
+
'<a class="eae-notice-link" style="padding-right: 5px;" href="%1$s"><span class="dashicons dashicons-schedule" style="text-decoration : none; margin : 0px 3px;"></span>%2$s</a>',
|
432 |
+
esc_url(
|
433 |
+
add_query_arg( 'fv_download_later', 'later' ) .
|
434 |
+
add_query_arg( 'eae_nonce', wp_create_nonce( 'wp_rest' ) )
|
435 |
+
),
|
436 |
+
esc_html__( 'May Be Later', 'wts-eae' )
|
437 |
+
);
|
438 |
+
printf(
|
439 |
+
'<a class="eae-notice-link" style="padding-right: 5px;" href="%1$s"><span class="dashicons dashicons-smiley" style="text-decoration : none; margin : 0px 3px;"></span>%2$s</a>',
|
440 |
+
esc_url(
|
441 |
+
add_query_arg( 'fv_not_interested', 'done' ) .
|
442 |
+
add_query_arg( 'eae_nonce', wp_create_nonce( 'wp_rest' ) )
|
443 |
+
),
|
444 |
+
esc_html__( 'Not Interested', 'wts-eae' )
|
445 |
+
);
|
446 |
+
?>
|
447 |
+
</p>
|
448 |
</div>
|
449 |
</div>
|
450 |
</div>
|
readme.txt
CHANGED
@@ -100,6 +100,9 @@ Column gap => No gap
|
|
100 |
|
101 |
== Changelog ==
|
102 |
|
|
|
|
|
|
|
103 |
= 1.11.4 =
|
104 |
* Fixed: Features image not visible in Post List widget.
|
105 |
|
100 |
|
101 |
== Changelog ==
|
102 |
|
103 |
+
= 1.11.5 =
|
104 |
+
* Fixed: Admin Notice Fixed.
|
105 |
+
|
106 |
= 1.11.4 =
|
107 |
* Fixed: Features image not visible in Post List widget.
|
108 |
|