Version Description
Download this release
Release Info
Developer | vrundakansara |
Plugin | Astra Starter Sites |
Version | 1.3.20 |
Comparing to | |
See all releases |
Code changes from version 1.3.19 to 1.3.20
- astra-sites.php +2 -2
- inc/lib/astra-notices/class-astra-notices.php +16 -2
- readme.txt +4 -1
astra-sites.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Astra Starter Sites
|
4 |
* Plugin URI: http://www.wpastra.com/pro/
|
5 |
* Description: Import free sites build with Astra theme.
|
6 |
-
* Version: 1.3.
|
7 |
* Author: Brainstorm Force
|
8 |
* Author URI: http://www.brainstormforce.com
|
9 |
* Text Domain: astra-sites
|
@@ -19,7 +19,7 @@ if ( ! defined( 'ASTRA_SITES_NAME' ) ) {
|
|
19 |
}
|
20 |
|
21 |
if ( ! defined( 'ASTRA_SITES_VER' ) ) {
|
22 |
-
define( 'ASTRA_SITES_VER', '1.3.
|
23 |
}
|
24 |
|
25 |
if ( ! defined( 'ASTRA_SITES_FILE' ) ) {
|
3 |
* Plugin Name: Astra Starter Sites
|
4 |
* Plugin URI: http://www.wpastra.com/pro/
|
5 |
* Description: Import free sites build with Astra theme.
|
6 |
+
* Version: 1.3.20
|
7 |
* Author: Brainstorm Force
|
8 |
* Author URI: http://www.brainstormforce.com
|
9 |
* Text Domain: astra-sites
|
19 |
}
|
20 |
|
21 |
if ( ! defined( 'ASTRA_SITES_VER' ) ) {
|
22 |
+
define( 'ASTRA_SITES_VER', '1.3.20' );
|
23 |
}
|
24 |
|
25 |
if ( ! defined( 'ASTRA_SITES_FILE' ) ) {
|
inc/lib/astra-notices/class-astra-notices.php
CHANGED
@@ -15,6 +15,10 @@
|
|
15 |
* @since 1.4.0
|
16 |
*/
|
17 |
|
|
|
|
|
|
|
|
|
18 |
if ( ! class_exists( 'Astra_Notices' ) ) :
|
19 |
|
20 |
/**
|
@@ -31,7 +35,7 @@ if ( ! class_exists( 'Astra_Notices' ) ) :
|
|
31 |
* @var array Notices.
|
32 |
* @since 1.4.0
|
33 |
*/
|
34 |
-
private static $version = '1.1.
|
35 |
|
36 |
/**
|
37 |
* Notices
|
@@ -173,6 +177,7 @@ if ( ! class_exists( 'Astra_Notices' ) ) :
|
|
173 |
'class' => '', // Optional, Additional notice wrapper class.
|
174 |
'priority' => 10, // Priority of the notice.
|
175 |
'display-with-other-notices' => true, // Should the notice be displayed if other notices are being displayed from Astra_Notices.
|
|
|
176 |
);
|
177 |
|
178 |
// Count for the notices that are rendered.
|
@@ -218,6 +223,8 @@ if ( ! class_exists( 'Astra_Notices' ) ) :
|
|
218 |
|
219 |
wp_enqueue_script( 'astra-notices' );
|
220 |
|
|
|
|
|
221 |
do_action( "astra_notice_before_markup_{$notice['id']}" );
|
222 |
|
223 |
?>
|
@@ -231,6 +238,8 @@ if ( ! class_exists( 'Astra_Notices' ) ) :
|
|
231 |
|
232 |
do_action( "astra_notice_after_markup_{$notice['id']}" );
|
233 |
|
|
|
|
|
234 |
}
|
235 |
|
236 |
/**
|
@@ -242,7 +251,12 @@ if ( ! class_exists( 'Astra_Notices' ) ) :
|
|
242 |
* @return array Notice wrapper classes.
|
243 |
*/
|
244 |
private static function get_wrap_classes( $notice ) {
|
245 |
-
$classes
|
|
|
|
|
|
|
|
|
|
|
246 |
$classes[] = $notice['class'];
|
247 |
if ( isset( $notice['type'] ) && '' !== $notice['type'] ) {
|
248 |
$classes[] = 'notice-' . $notice['type'];
|
15 |
* @since 1.4.0
|
16 |
*/
|
17 |
|
18 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
19 |
+
exit; // Exit if accessed directly.
|
20 |
+
}
|
21 |
+
|
22 |
if ( ! class_exists( 'Astra_Notices' ) ) :
|
23 |
|
24 |
/**
|
35 |
* @var array Notices.
|
36 |
* @since 1.4.0
|
37 |
*/
|
38 |
+
private static $version = '1.1.4';
|
39 |
|
40 |
/**
|
41 |
* Notices
|
177 |
'class' => '', // Optional, Additional notice wrapper class.
|
178 |
'priority' => 10, // Priority of the notice.
|
179 |
'display-with-other-notices' => true, // Should the notice be displayed if other notices are being displayed from Astra_Notices.
|
180 |
+
'is_dismissible' => true,
|
181 |
);
|
182 |
|
183 |
// Count for the notices that are rendered.
|
223 |
|
224 |
wp_enqueue_script( 'astra-notices' );
|
225 |
|
226 |
+
do_action( 'astra_notice_before_markup' );
|
227 |
+
|
228 |
do_action( "astra_notice_before_markup_{$notice['id']}" );
|
229 |
|
230 |
?>
|
238 |
|
239 |
do_action( "astra_notice_after_markup_{$notice['id']}" );
|
240 |
|
241 |
+
do_action( 'astra_notice_after_markup' );
|
242 |
+
|
243 |
}
|
244 |
|
245 |
/**
|
251 |
* @return array Notice wrapper classes.
|
252 |
*/
|
253 |
private static function get_wrap_classes( $notice ) {
|
254 |
+
$classes = array( 'astra-notice', 'notice' );
|
255 |
+
|
256 |
+
if ( $notice['is_dismissible'] ) {
|
257 |
+
$classes[] = 'is-dismissible';
|
258 |
+
}
|
259 |
+
|
260 |
$classes[] = $notice['class'];
|
261 |
if ( isset( $notice['type'] ) && '' !== $notice['type'] ) {
|
262 |
$classes[] = 'notice-' . $notice['type'];
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: Elementor,Beaver Builder,Templates,Gutenberg,Astra Starter Sites
|
|
5 |
Requires at least: 4.4
|
6 |
Requires PHP: 5.3
|
7 |
Tested up to: 5.2
|
8 |
-
Stable tag: 1.3.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -117,6 +117,9 @@ We are open to suggestions and would love to work on topics that our users are l
|
|
117 |
|
118 |
== Changelog ==
|
119 |
|
|
|
|
|
|
|
120 |
v1.3.19 - 12-September-2019
|
121 |
- Improvement: Allow extra query parameters to be added to the API calls for Astra Sites using filters.
|
122 |
|
5 |
Requires at least: 4.4
|
6 |
Requires PHP: 5.3
|
7 |
Tested up to: 5.2
|
8 |
+
Stable tag: 1.3.20
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
117 |
|
118 |
== Changelog ==
|
119 |
|
120 |
+
v1.3.20 - 15-October-2019
|
121 |
+
- Fix: Updated Astra Notice library to v1.1.4.
|
122 |
+
|
123 |
v1.3.19 - 12-September-2019
|
124 |
- Improvement: Allow extra query parameters to be added to the API calls for Astra Sites using filters.
|
125 |
|