Gutenberg Blocks – Ultimate Addons for Gutenberg - Version 1.25.5

Version Description

  • FRIDAY, 27TH MAY 2022 =
  • Improvement: Updated the notice library.
Download this release

Release Info

Developer brainstormworg
Plugin Icon Gutenberg Blocks – Ultimate Addons for Gutenberg
Version 1.25.5
Comparing to
See all releases

Code changes from version 1.25.4 to 1.25.5

admin/assets/admin-notice.css DELETED
@@ -1,39 +0,0 @@
1
- .astra-notice .notice-container{
2
- padding-top: 10px;
3
- padding-bottom: 10px;
4
- display: block;
5
- justify-content: left;
6
- align-items: center;
7
- }
8
-
9
- #uagb-admin-rating .notice-container{
10
- display:flex;
11
- }
12
-
13
- .astra-notice .notice-content {
14
- margin-left: 15px;
15
- }
16
-
17
- .astra-notice .notice-image img{
18
- max-width: 70px;
19
- }
20
-
21
- .uagb-review-notice-container {
22
- display: flex;
23
- align-items: center;
24
- padding-top: 10px;
25
- }
26
-
27
- .uagb-review-notice-container .dashicons {
28
- font-size: 1.4em;
29
- padding-left: 10px;
30
- }
31
-
32
- .uagb-review-notice-container a {
33
- padding-left: 5px;
34
- text-decoration: none;
35
- }
36
-
37
- .uagb-review-notice-container .dashicons:first-child {
38
- padding-left: 0;
39
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
classes/class-uagb-admin.php CHANGED
@@ -40,8 +40,6 @@ if ( ! class_exists( 'UAGB_Admin' ) ) {
40
 
41
  add_filter( 'wp_kses_allowed_html', __CLASS__ . '::add_data_attributes', 10, 2 );
42
 
43
- add_action( 'admin_enqueue_scripts', __CLASS__ . '::notice_styles_scripts' );
44
-
45
  add_action( 'wp_ajax_uag-theme-activate', __CLASS__ . '::theme_activate' );
46
 
47
  add_action( 'wp_ajax_uagb_file_generation', __CLASS__ . '::file_generation' );
@@ -123,7 +121,7 @@ if ( ! class_exists( 'UAGB_Admin' ) ) {
123
  %2$s
124
  </div>
125
  %3$s<br />
126
- <div class="uagb-review-notice-container">
127
  <a href="%4$s" class="astra-notice-close uagb-review-notice button-primary" target="_blank">
128
  %5$s
129
  </a>
@@ -259,16 +257,6 @@ if ( ! class_exists( 'UAGB_Admin' ) ) {
259
  }
260
  }
261
 
262
- /**
263
- * Enqueues the needed CSS/JS for the builder's admin settings page.
264
- *
265
- * @since 1.8.0
266
- */
267
- public static function notice_styles_scripts() {
268
- // Styles.
269
- wp_enqueue_style( 'uagb-notice-settings', UAGB_URL . 'admin/assets/admin-notice.css', array(), UAGB_VER );
270
- }
271
-
272
  /**
273
  * Enqueues the needed CSS/JS for the builder's admin settings page.
274
  *
40
 
41
  add_filter( 'wp_kses_allowed_html', __CLASS__ . '::add_data_attributes', 10, 2 );
42
 
 
 
43
  add_action( 'wp_ajax_uag-theme-activate', __CLASS__ . '::theme_activate' );
44
 
45
  add_action( 'wp_ajax_uagb_file_generation', __CLASS__ . '::file_generation' );
121
  %2$s
122
  </div>
123
  %3$s<br />
124
+ <div class="astra-review-notice-container">
125
  <a href="%4$s" class="astra-notice-close uagb-review-notice button-primary" target="_blank">
126
  %5$s
127
  </a>
257
  }
258
  }
259
 
 
 
 
 
 
 
 
 
 
 
260
  /**
261
  * Enqueues the needed CSS/JS for the builder's admin settings page.
262
  *
classes/class-uagb-loader.php CHANGED
@@ -66,7 +66,7 @@ if ( ! class_exists( 'UAGB_Loader' ) ) {
66
  define( 'UAGB_BASE', plugin_basename( UAGB_FILE ) );
67
  define( 'UAGB_DIR', plugin_dir_path( UAGB_FILE ) );
68
  define( 'UAGB_URL', plugins_url( '/', UAGB_FILE ) );
69
- define( 'UAGB_VER', '1.25.4' );
70
  define( 'UAGB_MODULES_DIR', UAGB_DIR . 'modules/' );
71
  define( 'UAGB_MODULES_URL', UAGB_URL . 'modules/' );
72
  define( 'UAGB_SLUG', 'uag' );
66
  define( 'UAGB_BASE', plugin_basename( UAGB_FILE ) );
67
  define( 'UAGB_DIR', plugin_dir_path( UAGB_FILE ) );
68
  define( 'UAGB_URL', plugins_url( '/', UAGB_FILE ) );
69
+ define( 'UAGB_VER', '1.25.5' );
70
  define( 'UAGB_MODULES_DIR', UAGB_DIR . 'modules/' );
71
  define( 'UAGB_MODULES_URL', UAGB_URL . 'modules/' );
72
  define( 'UAGB_SLUG', 'uag' );
lib/astra-notices/class-astra-notices.php CHANGED
@@ -28,7 +28,7 @@ if ( ! class_exists( 'Astra_Notices' ) ) :
28
  * @var array Notices.
29
  * @since 1.0.0
30
  */
31
- private static $version = '1.1.8';
32
 
33
  /**
34
  * Notices
@@ -116,7 +116,7 @@ if ( ! class_exists( 'Astra_Notices' ) ) :
116
  }
117
 
118
  if ( false === wp_verify_nonce( $nonce, 'astra-notices' ) ) {
119
- wp_send_json_error( esc_html_e( 'WordPress Nonce not validated.', 'ultimate-addons-for-gutenberg' ) );
120
  }
121
 
122
  // Valid inputs?
@@ -141,6 +141,7 @@ if ( ! class_exists( 'Astra_Notices' ) ) :
141
  * @return void
142
  */
143
  public function enqueue_scripts() {
 
144
  wp_register_script( 'astra-notices', self::get_url() . 'notices.js', array( 'jquery' ), self::$version, true );
145
  wp_localize_script(
146
  'astra-notices',
@@ -269,14 +270,15 @@ if ( ! class_exists( 'Astra_Notices' ) ) :
269
  */
270
  public static function markup( $notice = array() ) {
271
  wp_enqueue_script( 'astra-notices' );
 
272
 
273
  do_action( 'astra_notice_before_markup' );
274
 
275
  do_action( "astra_notice_before_markup_{$notice['id']}" );
276
 
277
  ?>
278
- <div id="<?php echo esc_attr( $notice['id'] ); ?>" class="<?php echo esc_attr( $notice['classes'] ); ?>" data-repeat-notice-after="<?php echo esc_attr( $notice['repeat-notice-after'] ); ?>">
279
- <div class="notice-container">
280
  <?php do_action( "astra_notice_inside_markup_{$notice['id']}" ); ?>
281
  <?php echo wp_kses_post( $notice['message'] ); ?>
282
  </div>
28
  * @var array Notices.
29
  * @since 1.0.0
30
  */
31
+ private static $version = '1.1.11';
32
 
33
  /**
34
  * Notices
116
  }
117
 
118
  if ( false === wp_verify_nonce( $nonce, 'astra-notices' ) ) {
119
+ wp_send_json_error( esc_html_e( 'WordPress Nonce not validated.' ) );
120
  }
121
 
122
  // Valid inputs?
141
  * @return void
142
  */
143
  public function enqueue_scripts() {
144
+ wp_register_style( 'astra-notices', self::get_url() . 'notices.css', array(), self::$version );
145
  wp_register_script( 'astra-notices', self::get_url() . 'notices.js', array( 'jquery' ), self::$version, true );
146
  wp_localize_script(
147
  'astra-notices',
270
  */
271
  public static function markup( $notice = array() ) {
272
  wp_enqueue_script( 'astra-notices' );
273
+ wp_enqueue_style( 'astra-notices' );
274
 
275
  do_action( 'astra_notice_before_markup' );
276
 
277
  do_action( "astra_notice_before_markup_{$notice['id']}" );
278
 
279
  ?>
280
+ <div id="<?php echo esc_attr( $notice['id'] ); ?>" class="<?php echo 'astra-notice-wrapper ' . esc_attr( $notice['classes'] ); ?>" data-repeat-notice-after="<?php echo esc_attr( $notice['repeat-notice-after'] ); ?>">
281
+ <div class="astra-notice-container">
282
  <?php do_action( "astra_notice_inside_markup_{$notice['id']}" ); ?>
283
  <?php echo wp_kses_post( $notice['message'] ); ?>
284
  </div>
lib/astra-notices/notices.css ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .astra-review-notice-container {
2
+ display: flex;
3
+ align-items: center;
4
+ padding-top: 10px;
5
+ }
6
+
7
+ .astra-review-notice-container .dashicons {
8
+ font-size: 1.4em;
9
+ padding-left: 10px;
10
+ }
11
+
12
+ .astra-review-notice-container a {
13
+ padding-left: 5px;
14
+ text-decoration: none;
15
+ }
16
+
17
+ .astra-review-notice-container .dashicons:first-child {
18
+ padding-left: 0;
19
+ }
20
+
21
+ .astra-notice-container .notice-image img {
22
+ max-width: 90px;
23
+ }
24
+
25
+ .astra-notice-container .notice-content .notice-heading {
26
+ padding-bottom: 5px;
27
+ }
28
+
29
+ .astra-notice-container .notice-content {
30
+ margin-left: 15px;
31
+ }
32
+
33
+ .astra-notice-container {
34
+ padding-top: 10px;
35
+ padding-bottom: 10px;
36
+ display: flex;
37
+ justify-content: left;
38
+ align-items: center;
39
+ }
readme.txt CHANGED
@@ -4,8 +4,8 @@ Donate link: https://www.paypal.me/BrainstormForce
4
  Tags: gutenberg, blocks, gutenberg blocks, editor, block
5
  Requires at least: 4.7
6
  Requires PHP: 5.6
7
- Tested up to: 5.9
8
- Stable tag: 1.25.4
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -169,6 +169,9 @@ When you use the Spectra along with the free Astra theme, you get a huge library
169
 
170
  == Changelog ==
171
 
 
 
 
172
  = 1.25.4 - MONDAY, 7TH FEBRUARY 2022 =
173
  * Fix: CSS was not applying on responsive devices.
174
  * Fix: Multi Buttons - Child settings were not visible in the editor.
4
  Tags: gutenberg, blocks, gutenberg blocks, editor, block
5
  Requires at least: 4.7
6
  Requires PHP: 5.6
7
+ Tested up to: 6.0
8
+ Stable tag: 1.25.5
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
169
 
170
  == Changelog ==
171
 
172
+ = 1.25.5 - FRIDAY, 27TH MAY 2022 =
173
+ * Improvement: Updated the notice library.
174
+
175
  = 1.25.4 - MONDAY, 7TH FEBRUARY 2022 =
176
  * Fix: CSS was not applying on responsive devices.
177
  * Fix: Multi Buttons - Child settings were not visible in the editor.
ultimate-addons-for-gutenberg.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin URI: https://www.brainstormforce.com
5
  * Author: Brainstorm Force
6
  * Author URI: https://www.brainstormforce.com
7
- * Version: 1.25.4
8
  * Description: The Ultimate Addons for Gutenberg extends the Gutenberg functionality with several unique and feature-rich blocks that help build websites faster.
9
  * Text Domain: ultimate-addons-for-gutenberg
10
  *
4
  * Plugin URI: https://www.brainstormforce.com
5
  * Author: Brainstorm Force
6
  * Author URI: https://www.brainstormforce.com
7
+ * Version: 1.25.5
8
  * Description: The Ultimate Addons for Gutenberg extends the Gutenberg functionality with several unique and feature-rich blocks that help build websites faster.
9
  * Text Domain: ultimate-addons-for-gutenberg
10
  *