Version Description
- Fixed settings page bugs, tested to Wordpress v5.0.2.
Download this release
Release Info
Developer | rpetersen29 |
Plugin | Simple Banner |
Version | 2.0.7 |
Comparing to | |
See all releases |
Code changes from version 2.0.6 to 2.0.7
- readme.txt +8 -2
- simple-banner.php +15 -11
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: rpetersen29
|
|
3 |
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:
|
7 |
-
Stable tag: 2.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -45,6 +45,9 @@ Yes.
|
|
45 |
|
46 |
== Changelog ==
|
47 |
|
|
|
|
|
|
|
48 |
= 2.0.6 =
|
49 |
* Fixed script bug.
|
50 |
|
@@ -104,6 +107,9 @@ Yes.
|
|
104 |
|
105 |
== Upgrade Notice ==
|
106 |
|
|
|
|
|
|
|
107 |
= 2.0.6 =
|
108 |
Bug fixes for script.
|
109 |
|
3 |
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.0.2
|
7 |
+
Stable tag: 2.0.7
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
45 |
|
46 |
== Changelog ==
|
47 |
|
48 |
+
= 2.0.7 =
|
49 |
+
* Fixed settings page bugs, tested to Wordpress v5.0.2.
|
50 |
+
|
51 |
= 2.0.6 =
|
52 |
* Fixed script bug.
|
53 |
|
107 |
|
108 |
== Upgrade Notice ==
|
109 |
|
110 |
+
= 2.0.7 =
|
111 |
+
Bug fixes for settings page.
|
112 |
+
|
113 |
= 2.0.6 =
|
114 |
Bug fixes for script.
|
115 |
|
simple-banner.php
CHANGED
@@ -3,13 +3,13 @@
|
|
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.0.
|
7 |
* Author: Ryan Petersen
|
8 |
* Author URI: http://rpetersen29.github.io/
|
9 |
* License: GPL2
|
10 |
*
|
11 |
* @package Simple Banner
|
12 |
-
* @version 2.0.
|
13 |
* @author Ryan Petersen <rpetersen.dev@gmail.com>
|
14 |
*/
|
15 |
|
@@ -102,15 +102,19 @@ function simple_banner_settings_page() {
|
|
102 |
?>
|
103 |
|
104 |
<div class="wrap">
|
105 |
-
<
|
106 |
-
|
|
|
|
|
|
|
|
|
107 |
<p>Use Hex color values for the color fields.</p>
|
108 |
<p>Links in the banner text must be typed in with HTML <code><a></code> tags.
|
109 |
<br />e.g. <code>This is a <a href="http://www.wordpress.com">Link to Wordpress</a></code>.</p>
|
110 |
|
111 |
<!-- Preview Banner -->
|
112 |
<div id="preview_banner" class="simple-banner" style="width: 100%;text-align: center;">
|
113 |
-
<div id="preview_banner_text" class="simple-banner-text" style="font-size: 1.1em;font-weight: 700;padding: 10px;
|
114 |
<span>This is what your banner will look like with a <a href="/">link</a>.</span>
|
115 |
</div>
|
116 |
</div>
|
@@ -290,7 +294,7 @@ function simple_banner_settings_page() {
|
|
290 |
// Background Color
|
291 |
style_background_color.type = 'text/css';
|
292 |
style_background_color.id = 'preview_banner_background_color'
|
293 |
-
style_background_color.appendChild(document.createTextNode('.simple-banner{background:'+document.getElementById('simple_banner_color').value || '#024985'+'}'));
|
294 |
document.getElementsByTagName('head')[0].appendChild(style_background_color);
|
295 |
|
296 |
document.getElementById('simple_banner_color').onchange=function(e){
|
@@ -303,7 +307,7 @@ function simple_banner_settings_page() {
|
|
303 |
style_dynamic.id = 'preview_banner_background_color';
|
304 |
style_dynamic.appendChild(
|
305 |
document.createTextNode(
|
306 |
-
'.simple-banner{background:'+document.getElementById('simple_banner_color').value || '#024985'+'}'
|
307 |
)
|
308 |
);
|
309 |
document.getElementsByTagName('head')[0].appendChild(style_dynamic);
|
@@ -316,7 +320,7 @@ function simple_banner_settings_page() {
|
|
316 |
// Text Color
|
317 |
style_text_color.type = 'text/css';
|
318 |
style_text_color.id = 'preview_banner_text_color'
|
319 |
-
style_text_color.appendChild(document.createTextNode('.simple-banner .simple-banner-text{color:'+document.getElementById('simple_banner_text_color').value || '#ffffff'+'}'));
|
320 |
document.getElementsByTagName('head')[0].appendChild(style_text_color);
|
321 |
|
322 |
document.getElementById('simple_banner_text_color').onchange=function(e){
|
@@ -329,7 +333,7 @@ function simple_banner_settings_page() {
|
|
329 |
style_dynamic.id = 'preview_banner_text_color';
|
330 |
style_dynamic.appendChild(
|
331 |
document.createTextNode(
|
332 |
-
'.simple-banner .simple-banner-text{color:'+document.getElementById('simple_banner_text_color').value || '#ffffff'+'}'
|
333 |
)
|
334 |
);
|
335 |
document.getElementsByTagName('head')[0].appendChild(style_dynamic);
|
@@ -342,7 +346,7 @@ function simple_banner_settings_page() {
|
|
342 |
// Link Color
|
343 |
style_link_color.type = 'text/css';
|
344 |
style_link_color.id = 'preview_banner_link_color'
|
345 |
-
style_link_color.appendChild(document.createTextNode('.simple-banner .simple-banner-text a{color:'+document.getElementById('simple_banner_link_color').value || '#f16521'+'}'));
|
346 |
document.getElementsByTagName('head')[0].appendChild(style_link_color);
|
347 |
|
348 |
document.getElementById('simple_banner_link_color').onchange=function(e){
|
@@ -355,7 +359,7 @@ function simple_banner_settings_page() {
|
|
355 |
style_dynamic.id = 'preview_banner_link_color';
|
356 |
style_dynamic.appendChild(
|
357 |
document.createTextNode(
|
358 |
-
'.simple-banner .simple-banner-text a{color:'+document.getElementById('simple_banner_link_color').value || '#f16521'+'}'
|
359 |
)
|
360 |
);
|
361 |
document.getElementsByTagName('head')[0].appendChild(style_dynamic);
|
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.0.7
|
7 |
* Author: Ryan Petersen
|
8 |
* Author URI: http://rpetersen29.github.io/
|
9 |
* License: GPL2
|
10 |
*
|
11 |
* @package Simple Banner
|
12 |
+
* @version 2.0.7
|
13 |
* @author Ryan Petersen <rpetersen.dev@gmail.com>
|
14 |
*/
|
15 |
|
102 |
?>
|
103 |
|
104 |
<div class="wrap">
|
105 |
+
<div style="display: flex;justify-content: space-between;">
|
106 |
+
<h2>Simple Banner Settings</h2>
|
107 |
+
<a class="button button-primary button-hero" style="font-weight: 700;" href="https://www.paypal.me/rpetersenDev" target="_blank">DONATE</a>
|
108 |
+
</div>
|
109 |
+
|
110 |
+
|
111 |
<p>Use Hex color values for the color fields.</p>
|
112 |
<p>Links in the banner text must be typed in with HTML <code><a></code> tags.
|
113 |
<br />e.g. <code>This is a <a href="http://www.wordpress.com">Link to Wordpress</a></code>.</p>
|
114 |
|
115 |
<!-- Preview Banner -->
|
116 |
<div id="preview_banner" class="simple-banner" style="width: 100%;text-align: center;">
|
117 |
+
<div id="preview_banner_text" class="simple-banner-text" style="font-size: 1.1em;font-weight: 700;padding: 10px;">
|
118 |
<span>This is what your banner will look like with a <a href="/">link</a>.</span>
|
119 |
</div>
|
120 |
</div>
|
294 |
// Background Color
|
295 |
style_background_color.type = 'text/css';
|
296 |
style_background_color.id = 'preview_banner_background_color'
|
297 |
+
style_background_color.appendChild(document.createTextNode('.simple-banner{background:' + (document.getElementById('simple_banner_color').value || '#024985') + '}'));
|
298 |
document.getElementsByTagName('head')[0].appendChild(style_background_color);
|
299 |
|
300 |
document.getElementById('simple_banner_color').onchange=function(e){
|
307 |
style_dynamic.id = 'preview_banner_background_color';
|
308 |
style_dynamic.appendChild(
|
309 |
document.createTextNode(
|
310 |
+
'.simple-banner{background:' + (document.getElementById('simple_banner_color').value || '#024985') + '}'
|
311 |
)
|
312 |
);
|
313 |
document.getElementsByTagName('head')[0].appendChild(style_dynamic);
|
320 |
// Text Color
|
321 |
style_text_color.type = 'text/css';
|
322 |
style_text_color.id = 'preview_banner_text_color'
|
323 |
+
style_text_color.appendChild(document.createTextNode('.simple-banner .simple-banner-text{color:' + (document.getElementById('simple_banner_text_color').value || '#ffffff') + '}'));
|
324 |
document.getElementsByTagName('head')[0].appendChild(style_text_color);
|
325 |
|
326 |
document.getElementById('simple_banner_text_color').onchange=function(e){
|
333 |
style_dynamic.id = 'preview_banner_text_color';
|
334 |
style_dynamic.appendChild(
|
335 |
document.createTextNode(
|
336 |
+
'.simple-banner .simple-banner-text{color:' + (document.getElementById('simple_banner_text_color').value || '#ffffff') + '}'
|
337 |
)
|
338 |
);
|
339 |
document.getElementsByTagName('head')[0].appendChild(style_dynamic);
|
346 |
// Link Color
|
347 |
style_link_color.type = 'text/css';
|
348 |
style_link_color.id = 'preview_banner_link_color'
|
349 |
+
style_link_color.appendChild(document.createTextNode('.simple-banner .simple-banner-text a{color:' + (document.getElementById('simple_banner_link_color').value || '#f16521') + '}'));
|
350 |
document.getElementsByTagName('head')[0].appendChild(style_link_color);
|
351 |
|
352 |
document.getElementById('simple_banner_link_color').onchange=function(e){
|
359 |
style_dynamic.id = 'preview_banner_link_color';
|
360 |
style_dynamic.appendChild(
|
361 |
document.createTextNode(
|
362 |
+
'.simple-banner .simple-banner-text a{color:' + (document.getElementById('simple_banner_link_color').value || '#f16521') + '}'
|
363 |
)
|
364 |
);
|
365 |
document.getElementsByTagName('head')[0].appendChild(style_dynamic);
|