Version Description
= 1.2 = This adds option to display bare text (no before/after widget/title elements are shown).
= 1.1 = This adds a CSS class parameter to each widget.
= 1.0 = This is the initial release.
Download this release
Release Info
Developer | bostondv |
Plugin | Enhanced Text Widget |
Version | 1.2.2 |
Comparing to | |
See all releases |
Code changes from version 1.2 to 1.2.2
- enhanced-text-widget.php +19 -16
- readme.txt +29 -13
enhanced-text-widget.php
CHANGED
@@ -2,29 +2,31 @@
|
|
2 |
/*
|
3 |
Plugin Name: Enhanced Text Widget
|
4 |
Plugin URI: http://pomelodesign.com/enhanced-text-widget
|
5 |
-
Description:
|
6 |
-
Version: 1.2
|
7 |
-
Author: Pomelo Design
|
8 |
Author URI: http://pomelodesign.com/
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
|
|
14 |
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
*/
|
|
|
24 |
class EnhancedTextWidget extends WP_Widget {
|
25 |
|
26 |
function EnhancedTextWidget() {
|
27 |
-
$widget_ops = array('classname' => 'widget_text', 'description' => __('Linkable titles with text, HTML PHP, Flash
|
28 |
$control_ops = array('width' => 400, 'height' => 350);
|
29 |
$this->WP_Widget('EnhancedTextWidget', __('Enhanced Text'), $widget_ops, $control_ops);
|
30 |
}
|
@@ -91,6 +93,7 @@ class EnhancedTextWidget extends WP_Widget {
|
|
91 |
<p><input id="<?php echo $this->get_field_id('filter'); ?>" name="<?php echo $this->get_field_name('filter'); ?>" type="checkbox" <?php checked(isset($instance['filter']) ? $instance['filter'] : 0); ?> /> <label for="<?php echo $this->get_field_id('filter'); ?>"><?php _e('Automatically add paragraphs.'); ?></label></p>
|
92 |
<p><input class="checkbox" type="checkbox" <?php echo $bare; ?> id="<?php echo $this->get_field_id('bare'); ?>" name="<?php echo $this->get_field_name('bare'); ?>" />
|
93 |
<label for="<?php echo $this->get_field_id('bare'); ?>"><?php _e('Do not output before/after_widget/title'); ?></label></p>
|
|
|
94 |
<?php
|
95 |
}
|
96 |
}
|
2 |
/*
|
3 |
Plugin Name: Enhanced Text Widget
|
4 |
Plugin URI: http://pomelodesign.com/enhanced-text-widget
|
5 |
+
Description: An enhanced version of the default text widget where you may have Text, HTML, CSS, JavaScript, Flash, and/or PHP as content with linkable widget title.
|
6 |
+
Version: 1.2.2
|
7 |
+
Author: Pomelo Design
|
8 |
Author URI: http://pomelodesign.com/
|
9 |
+
License: GPL2
|
10 |
+
|
11 |
+
This program is free software; you can redistribute it and/or modify
|
12 |
+
it under the terms of the GNU General Public License as published by
|
13 |
+
the Free Software Foundation; either version 2 of the License, or
|
14 |
+
(at your option) any later version.
|
15 |
|
16 |
+
This program is distributed in the hope that it will be useful,
|
17 |
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
18 |
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
19 |
+
GNU General Public License for more details.
|
20 |
|
21 |
+
You should have received a copy of the GNU General Public License
|
22 |
+
along with this program; if not, write to the Free Software
|
23 |
+
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
24 |
*/
|
25 |
+
|
26 |
class EnhancedTextWidget extends WP_Widget {
|
27 |
|
28 |
function EnhancedTextWidget() {
|
29 |
+
$widget_ops = array('classname' => 'widget_text', 'description' => __('Linkable titles with text, HTML, CSS, PHP, Flash and/or Javascript.'));
|
30 |
$control_ops = array('width' => 400, 'height' => 350);
|
31 |
$this->WP_Widget('EnhancedTextWidget', __('Enhanced Text'), $widget_ops, $control_ops);
|
32 |
}
|
93 |
<p><input id="<?php echo $this->get_field_id('filter'); ?>" name="<?php echo $this->get_field_name('filter'); ?>" type="checkbox" <?php checked(isset($instance['filter']) ? $instance['filter'] : 0); ?> /> <label for="<?php echo $this->get_field_id('filter'); ?>"><?php _e('Automatically add paragraphs.'); ?></label></p>
|
94 |
<p><input class="checkbox" type="checkbox" <?php echo $bare; ?> id="<?php echo $this->get_field_id('bare'); ?>" name="<?php echo $this->get_field_name('bare'); ?>" />
|
95 |
<label for="<?php echo $this->get_field_id('bare'); ?>"><?php _e('Do not output before/after_widget/title'); ?></label></p>
|
96 |
+
<p class="credits"><small>Developed by <a href="http://pomelodesign.com">Pomelo Design</a></small></p>
|
97 |
<?php
|
98 |
}
|
99 |
}
|
readme.txt
CHANGED
@@ -1,24 +1,37 @@
|
|
1 |
=== Enhanced Text Widget ===
|
2 |
Contributors: bostondv
|
3 |
Donate link: http://pomelodesign.com/donate/
|
4 |
-
Tags: widget, clickable, linkable, linked title, text, php, javascript, flash, linked title text, linked, text widget, PHP Widget, link widget title
|
5 |
-
Requires at least: 2.8
|
6 |
-
Tested up to: 3.
|
7 |
-
Stable tag:
|
|
|
|
|
8 |
|
9 |
-
An enhanced version of the default text widget where you may have Text, HTML, JavaScript, Flash and/or PHP as content with linkable widget title.
|
10 |
|
11 |
== Description ==
|
12 |
|
13 |
-
An enhanced version of the default text widget where you may have Text, HTML
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
|
15 |
== Installation ==
|
16 |
|
17 |
-
1. Download
|
18 |
-
2.
|
19 |
-
3.
|
20 |
-
4.
|
21 |
-
5. Add the widget to the sidebar and configure the options as desired
|
22 |
|
23 |
== Frequently Asked Questions ==
|
24 |
|
@@ -26,12 +39,12 @@ Nothing right now.
|
|
26 |
|
27 |
== Screenshots ==
|
28 |
|
29 |
-
1. Widget
|
30 |
|
31 |
== Upgrade Notice ==
|
32 |
|
33 |
= 1.2 =
|
34 |
-
This adds option to display bare text (no before/after widget/title elements are shown)
|
35 |
|
36 |
= 1.1 =
|
37 |
This adds a CSS class parameter to each widget.
|
@@ -41,6 +54,9 @@ This is the initial release.
|
|
41 |
|
42 |
== Changelog ==
|
43 |
|
|
|
|
|
|
|
44 |
= 1.1 =
|
45 |
* Adds css class parameter that wraps widget.
|
46 |
|
1 |
=== Enhanced Text Widget ===
|
2 |
Contributors: bostondv
|
3 |
Donate link: http://pomelodesign.com/donate/
|
4 |
+
Tags: widget, clickable, linkable, linked title, text, php, javascript, flash, linked title text, linked, text widget, PHP Widget, link widget title, bare widget
|
5 |
+
Requires at least: 2.8
|
6 |
+
Tested up to: 3.4
|
7 |
+
Stable tag: 1.2.2
|
8 |
+
License: GPL2
|
9 |
+
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
11 |
+
An enhanced version of the default text widget where you may have Text, HTML, CSS, JavaScript, Flash, and/or PHP as content with linkable widget title.
|
12 |
|
13 |
== Description ==
|
14 |
|
15 |
+
An enhanced version of the default text widget where you may have Text, HTML,, CSS JavaScript, Flash and/or PHP as content with linkable widget title.
|
16 |
+
|
17 |
+
Options:
|
18 |
+
|
19 |
+
* Title
|
20 |
+
* Title URL
|
21 |
+
* Open URL in new window
|
22 |
+
* Widget CSS class
|
23 |
+
* Content which supports Text, HTML, CSS, JavaScript, Flash and/or PHP.
|
24 |
+
* Automatically add paragraphs
|
25 |
+
* Bare widget (do not output before/after_widget/title)
|
26 |
+
|
27 |
+
For support please use [github issues](https://github.com/bostondv/enhanced-text-widget/issues). Visit [our website](http://pomelodesign.com), follow [@pomelod](http://twitter.com/pomelod/) or like [on facebook](http://www.facebook.com/pomelodesign/) for updates.
|
28 |
|
29 |
== Installation ==
|
30 |
|
31 |
+
1. Download and extract the zip archive
|
32 |
+
2. Upload `enhanced-text-widget` folder to `/wp-content/plugins/`
|
33 |
+
3. Activate the plugin through the 'Plugins' menu in WordPress
|
34 |
+
4. Add the widget to a sidebar and configure the options as desired
|
|
|
35 |
|
36 |
== Frequently Asked Questions ==
|
37 |
|
39 |
|
40 |
== Screenshots ==
|
41 |
|
42 |
+
1. Widget options
|
43 |
|
44 |
== Upgrade Notice ==
|
45 |
|
46 |
= 1.2 =
|
47 |
+
This adds option to display bare text (no before/after widget/title elements are shown).
|
48 |
|
49 |
= 1.1 =
|
50 |
This adds a CSS class parameter to each widget.
|
54 |
|
55 |
== Changelog ==
|
56 |
|
57 |
+
= 1.2 =
|
58 |
+
* This adds option to display bare text (no before/after widget/title elements are shown).
|
59 |
+
|
60 |
= 1.1 =
|
61 |
* Adds css class parameter that wraps widget.
|
62 |
|