Version Description
- Added Donate button, small settings page CSS tweaks.
Download this release
Release Info
Developer | rpetersen29 |
Plugin | Simple Banner |
Version | 1.4.0 |
Comparing to | |
See all releases |
Code changes from version 1.3.0 to 1.4.0
- readme.txt +7 -1
- simple-banner.php +17 -4
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link:
|
|
4 |
Tags: cta, banner, banners, announcement, announcements, notification, bar, bars, free, hello bar, hellobar
|
5 |
Requires at least: 3.0.1
|
6 |
Tested up to: 4.9.5
|
7 |
-
Stable tag: 1.
|
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 |
= 1.3.0 =
|
49 |
* You can now use single quotes or double quotes for Simple Banner Text.
|
50 |
|
@@ -77,6 +80,9 @@ Yes.
|
|
77 |
|
78 |
== Upgrade Notice ==
|
79 |
|
|
|
|
|
|
|
80 |
= 1.3.0 =
|
81 |
Replace double quotes with single quotes in Simple Banner Text.
|
82 |
|
4 |
Tags: cta, banner, banners, announcement, announcements, notification, bar, bars, free, hello bar, hellobar
|
5 |
Requires at least: 3.0.1
|
6 |
Tested up to: 4.9.5
|
7 |
+
Stable tag: 1.4.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
45 |
|
46 |
== Changelog ==
|
47 |
|
48 |
+
= 1.4.0 =
|
49 |
+
* Added Donate button, small settings page CSS tweaks.
|
50 |
+
|
51 |
= 1.3.0 =
|
52 |
* You can now use single quotes or double quotes for Simple Banner Text.
|
53 |
|
80 |
|
81 |
== Upgrade Notice ==
|
82 |
|
83 |
+
= 1.4.0 =
|
84 |
+
Add Donate button and change some form CSS.
|
85 |
+
|
86 |
= 1.3.0 =
|
87 |
Replace double quotes with single quotes in Simple Banner Text.
|
88 |
|
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: 1.
|
7 |
* Author: Ryan Petersen
|
8 |
* Author URI: http://rpetersen29.github.io/
|
9 |
* License: GPL2
|
10 |
*
|
11 |
* @package Simple Banner
|
12 |
-
* @version 1.
|
13 |
* @author Ryan Petersen <rpetersen.dev@gmail.com>
|
14 |
*/
|
15 |
|
@@ -76,6 +76,7 @@ function simple_banner_settings_page() {
|
|
76 |
?>
|
77 |
|
78 |
<div class="wrap">
|
|
|
79 |
<h2>Simple Banner Settings</h2>
|
80 |
<p>Use Hex color values for the color fields.</p>
|
81 |
<p>Links in the banner text must be typed in with HTML <code><a></code> tags.
|
@@ -141,7 +142,7 @@ function simple_banner_settings_page() {
|
|
141 |
<br><span style="font-weight:400;">(Leaving this blank removes the banner)</span>
|
142 |
</th>
|
143 |
<td>
|
144 |
-
<textarea id="simple_banner_text" style="height: 150px;width:
|
145 |
</td>
|
146 |
</tr>
|
147 |
<!-- Custom CSS -->
|
@@ -153,12 +154,24 @@ function simple_banner_settings_page() {
|
|
153 |
</th>
|
154 |
<td>
|
155 |
<div>.simple-banner {</div>
|
156 |
-
<textarea id="simple_banner_custom_css" style="height: 150px;width:
|
157 |
<div>}</div>
|
158 |
</td>
|
159 |
</tr>
|
160 |
</table>
|
161 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
162 |
|
163 |
<!-- Save Changes Button -->
|
164 |
<?php submit_button(); ?>
|
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: 1.4.0
|
7 |
* Author: Ryan Petersen
|
8 |
* Author URI: http://rpetersen29.github.io/
|
9 |
* License: GPL2
|
10 |
*
|
11 |
* @package Simple Banner
|
12 |
+
* @version 1.4.0
|
13 |
* @author Ryan Petersen <rpetersen.dev@gmail.com>
|
14 |
*/
|
15 |
|
76 |
?>
|
77 |
|
78 |
<div class="wrap">
|
79 |
+
<a class="button-primary" href="https://www.paypal.me/rpetersenDev" target="_blank">DONATE</a>
|
80 |
<h2>Simple Banner Settings</h2>
|
81 |
<p>Use Hex color values for the color fields.</p>
|
82 |
<p>Links in the banner text must be typed in with HTML <code><a></code> tags.
|
142 |
<br><span style="font-weight:400;">(Leaving this blank removes the banner)</span>
|
143 |
</th>
|
144 |
<td>
|
145 |
+
<textarea id="simple_banner_text" style="height: 150px;width: 75%;" name="simple_banner_text"><?php echo get_option('simple_banner_text'); ?></textarea>
|
146 |
</td>
|
147 |
</tr>
|
148 |
<!-- Custom CSS -->
|
154 |
</th>
|
155 |
<td>
|
156 |
<div>.simple-banner {</div>
|
157 |
+
<textarea id="simple_banner_custom_css" style="height: 150px;width: 75%;" name="simple_banner_custom_css"><?php echo get_option('simple_banner_custom_css'); ?></textarea>
|
158 |
<div>}</div>
|
159 |
</td>
|
160 |
</tr>
|
161 |
</table>
|
162 |
|
163 |
+
<!-- Pro Features -->
|
164 |
+
<!-- <h2>Pro Features</h2>
|
165 |
+
<?php
|
166 |
+
$pages = get_pages();
|
167 |
+
foreach ( $pages as $page ) {
|
168 |
+
$option = '<input type="checkbox" checked value="' . get_page_link( $page->ID ) . '">';
|
169 |
+
$option .= $page->post_title;
|
170 |
+
$option .= '</input>';
|
171 |
+
echo $option;
|
172 |
+
}
|
173 |
+
?> -->
|
174 |
+
|
175 |
|
176 |
<!-- Save Changes Button -->
|
177 |
<?php submit_button(); ?>
|