Version Description
- Fix php error.
Download this release
Release Info
Developer | rpetersen29 |
Plugin | Simple Banner |
Version | 2.4.4 |
Comparing to | |
See all releases |
Code changes from version 2.4.3 to 2.4.4
- readme.txt +7 -1
- simple-banner.php +10 -10
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.me/rpetersenDev
|
|
4 |
Tags: banner, banners, simple, announcement, announcements, cta, notification, bar, bars, free, hello bar, hellobar, pro
|
5 |
Requires at least: 3.0.1
|
6 |
Tested up to: 5.4.0
|
7 |
-
Stable tag: 2.4.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -96,6 +96,9 @@ This feature is being actively developed, in the meantime you can use this custo
|
|
96 |
|
97 |
== Changelog ==
|
98 |
|
|
|
|
|
|
|
99 |
= 2.4.3 =
|
100 |
* Fix bug for that hid banner on pages with no id, fix some permissions issues.
|
101 |
|
@@ -197,6 +200,9 @@ This feature is being actively developed, in the meantime you can use this custo
|
|
197 |
|
198 |
== Upgrade Notice ==
|
199 |
|
|
|
|
|
|
|
200 |
= 2.4.3 =
|
201 |
* Fix bug for that hid banner on pages with no id, fix some permissions issues.
|
202 |
*
|
4 |
Tags: banner, banners, simple, announcement, announcements, cta, notification, bar, bars, free, hello bar, hellobar, pro
|
5 |
Requires at least: 3.0.1
|
6 |
Tested up to: 5.4.0
|
7 |
+
Stable tag: 2.4.4
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
96 |
|
97 |
== Changelog ==
|
98 |
|
99 |
+
= 2.4.4 =
|
100 |
+
* Fix php error.
|
101 |
+
|
102 |
= 2.4.3 =
|
103 |
* Fix bug for that hid banner on pages with no id, fix some permissions issues.
|
104 |
|
200 |
|
201 |
== Upgrade Notice ==
|
202 |
|
203 |
+
= 2.4.4 =
|
204 |
+
* Fix php error.
|
205 |
+
|
206 |
= 2.4.3 =
|
207 |
* Fix bug for that hid banner on pages with no id, fix some permissions issues.
|
208 |
*
|
simple-banner.php
CHANGED
@@ -3,16 +3,16 @@
|
|
3 |
* Plugin Name: Simple Banner
|
4 |
* Plugin URI: https://github.com/rpetersen29/simple-banner
|
5 |
* Description: Display a simple banner at the top of your website.
|
6 |
-
* Version: 2.4.
|
7 |
* Author: Ryan Petersen
|
8 |
* Author URI: http://rpetersen29.github.io/
|
9 |
* License: GPL2
|
10 |
*
|
11 |
* @package Simple Banner
|
12 |
-
* @version 2.4.
|
13 |
* @author Ryan Petersen <rpetersen.dev@gmail.com>
|
14 |
*/
|
15 |
-
define ('VERSION', '2.4.
|
16 |
|
17 |
add_action( 'wp_enqueue_scripts', 'simple_banner' );
|
18 |
function simple_banner() {
|
@@ -216,29 +216,29 @@ function simple_banner_settings_page() {
|
|
216 |
</th>
|
217 |
<td style="vertical-align:top;">
|
218 |
<!-- -->
|
219 |
-
<input type="radio" id="static" name="simple_banner_position" value="static" <?php echo ((get_option('simple_banner_position') == 'static') ? checked : '' ); ?>>
|
220 |
<label for="static"><strong>static:</strong> <span>Default value. Elements render in order, as they appear in the document flow</span></label><br>
|
221 |
<!-- -->
|
222 |
-
<input type="radio" id="absolute" name="simple_banner_position" value="absolute" <?php echo ((get_option('simple_banner_position') == 'absolute') ? checked : '' ); ?>>
|
223 |
<label for="absolute"><strong>absolute:</strong> <span>The element is positioned relative to its first positioned (not static) ancestor element</span></label><br>
|
224 |
<!-- -->
|
225 |
-
<input type="radio" id="fixed" name="simple_banner_position" value="fixed" <?php echo ((get_option('simple_banner_position') == 'fixed') ? checked : '' ); ?>>
|
226 |
<label for="fixed"><strong>fixed:</strong> <span>The element is positioned relative to the browser window</span></label><br>
|
227 |
<!-- -->
|
228 |
-
<input type="radio" id="relative" name="simple_banner_position" value="relative" <?php echo ((get_option('simple_banner_position') == 'relative') ? checked : '' ); ?>>
|
229 |
<label for="relative"><strong>relative:</strong> <span>The element is positioned relative to its normal position, so "left:20px" adds 20 pixels to the element's LEFT position</span></label><br>
|
230 |
<!-- -->
|
231 |
-
<input type="radio" id="sticky" name="simple_banner_position" value="sticky" <?php echo ((get_option('simple_banner_position') == 'sticky') ? checked : '' ); ?>>
|
232 |
<label for="sticky"><strong>sticky:</strong> <span>The element is positioned based on the user's scroll position</span></label><br>
|
233 |
<div style="padding-left: 10px;">
|
234 |
A sticky element toggles between relative and fixed, depending on the scroll position.
|
235 |
It is positioned relative until a given offset position is met in the viewport - then it "sticks" in place (like position:fixed).<br>
|
236 |
<strong>Note:</strong> Not supported in IE/Edge 15 or earlier. Supported in Safari from version 6.1 with a -webkit- prefix.</div>
|
237 |
<!-- -->
|
238 |
-
<input type="radio" id="initial" name="simple_banner_position" value="initial" <?php echo ((get_option('simple_banner_position') == 'initial') ? checked : '' ); ?>>
|
239 |
<label for="initial"><strong>initial:</strong> <span>Sets this property to its default value.</span></label><br>
|
240 |
<!-- -->
|
241 |
-
<input type="radio" id="inherit" name="simple_banner_position" value="inherit" <?php echo ((get_option('simple_banner_position') == 'inherit') ? checked : '' ); ?>>
|
242 |
<label for="inherit"><strong>inherit:</strong> <span>Inherits this property from its parent element.</span></label><br>
|
243 |
</td>
|
244 |
</tr>
|
3 |
* Plugin Name: Simple Banner
|
4 |
* Plugin URI: https://github.com/rpetersen29/simple-banner
|
5 |
* Description: Display a simple banner at the top of your website.
|
6 |
+
* Version: 2.4.4
|
7 |
* Author: Ryan Petersen
|
8 |
* Author URI: http://rpetersen29.github.io/
|
9 |
* License: GPL2
|
10 |
*
|
11 |
* @package Simple Banner
|
12 |
+
* @version 2.4.4
|
13 |
* @author Ryan Petersen <rpetersen.dev@gmail.com>
|
14 |
*/
|
15 |
+
define ('VERSION', '2.4.4');
|
16 |
|
17 |
add_action( 'wp_enqueue_scripts', 'simple_banner' );
|
18 |
function simple_banner() {
|
216 |
</th>
|
217 |
<td style="vertical-align:top;">
|
218 |
<!-- -->
|
219 |
+
<input type="radio" id="static" name="simple_banner_position" value="static" <?php echo ((get_option('simple_banner_position') == 'static') ? 'checked' : '' ); ?>>
|
220 |
<label for="static"><strong>static:</strong> <span>Default value. Elements render in order, as they appear in the document flow</span></label><br>
|
221 |
<!-- -->
|
222 |
+
<input type="radio" id="absolute" name="simple_banner_position" value="absolute" <?php echo ((get_option('simple_banner_position') == 'absolute') ? 'checked' : '' ); ?>>
|
223 |
<label for="absolute"><strong>absolute:</strong> <span>The element is positioned relative to its first positioned (not static) ancestor element</span></label><br>
|
224 |
<!-- -->
|
225 |
+
<input type="radio" id="fixed" name="simple_banner_position" value="fixed" <?php echo ((get_option('simple_banner_position') == 'fixed') ? 'checked' : '' ); ?>>
|
226 |
<label for="fixed"><strong>fixed:</strong> <span>The element is positioned relative to the browser window</span></label><br>
|
227 |
<!-- -->
|
228 |
+
<input type="radio" id="relative" name="simple_banner_position" value="relative" <?php echo ((get_option('simple_banner_position') == 'relative') ? 'checked' : '' ); ?>>
|
229 |
<label for="relative"><strong>relative:</strong> <span>The element is positioned relative to its normal position, so "left:20px" adds 20 pixels to the element's LEFT position</span></label><br>
|
230 |
<!-- -->
|
231 |
+
<input type="radio" id="sticky" name="simple_banner_position" value="sticky" <?php echo ((get_option('simple_banner_position') == 'sticky') ? 'checked' : '' ); ?>>
|
232 |
<label for="sticky"><strong>sticky:</strong> <span>The element is positioned based on the user's scroll position</span></label><br>
|
233 |
<div style="padding-left: 10px;">
|
234 |
A sticky element toggles between relative and fixed, depending on the scroll position.
|
235 |
It is positioned relative until a given offset position is met in the viewport - then it "sticks" in place (like position:fixed).<br>
|
236 |
<strong>Note:</strong> Not supported in IE/Edge 15 or earlier. Supported in Safari from version 6.1 with a -webkit- prefix.</div>
|
237 |
<!-- -->
|
238 |
+
<input type="radio" id="initial" name="simple_banner_position" value="initial" <?php echo ((get_option('simple_banner_position') == 'initial') ? 'checked' : '' ); ?>>
|
239 |
<label for="initial"><strong>initial:</strong> <span>Sets this property to its default value.</span></label><br>
|
240 |
<!-- -->
|
241 |
+
<input type="radio" id="inherit" name="simple_banner_position" value="inherit" <?php echo ((get_option('simple_banner_position') == 'inherit') ? 'checked' : '' ); ?>>
|
242 |
<label for="inherit"><strong>inherit:</strong> <span>Inherits this property from its parent element.</span></label><br>
|
243 |
</td>
|
244 |
</tr>
|