Enhanced Text Widget - Version 1.4.1

Version Description

= 1.3.4 = This adds option to hide the title

= 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 Icon wp plugin Enhanced Text Widget
Version 1.4.1
Comparing to
See all releases

Code changes from version 1.4 to 1.4.1

Files changed (2) hide show
  1. enhanced-text-widget.php +7 -1
  2. readme.txt +1 -1
enhanced-text-widget.php CHANGED
@@ -3,7 +3,7 @@
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.4
7
  Author: Pomelo Design
8
  Author URI: http://pomelodesign.com/
9
  License: GPL2
@@ -85,10 +85,16 @@ class EnhancedTextWidget extends WP_Widget {
85
 
86
  echo $bare ? '' : '<div class="textwidget widget-text">';
87
 
 
88
  ob_start();
89
  eval('?>' . $text);
90
  $text = ob_get_contents();
91
  ob_end_clean();
 
 
 
 
 
92
  echo $filterText ? wpautop($text) : $text;
93
 
94
  echo $bare ? '' : '</div>' . $after_widget;
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.4.1
7
  Author: Pomelo Design
8
  Author URI: http://pomelodesign.com/
9
  License: GPL2
85
 
86
  echo $bare ? '' : '<div class="textwidget widget-text">';
87
 
88
+ // Parse the text through PHP
89
  ob_start();
90
  eval('?>' . $text);
91
  $text = ob_get_contents();
92
  ob_end_clean();
93
+
94
+ // Run text through do_shortcode
95
+ $text = do_shortcode($text);
96
+
97
+ // Echo the content
98
  echo $filterText ? wpautop($text) : $text;
99
 
100
  echo $bare ? '' : '</div>' . $after_widget;
readme.txt CHANGED
@@ -4,7 +4,7 @@ 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, widget shortcodes
5
  Requires at least: 3.0
6
  Tested up to: 3.5.1
7
- Stable tag: 1.4
8
  License: GPL2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
4
  Tags: widget, clickable, linkable, linked title, text, php, javascript, flash, linked title text, linked, text widget, php widget, link widget title, bare widget, widget shortcodes
5
  Requires at least: 3.0
6
  Tested up to: 3.5.1
7
+ Stable tag: 1.4.1
8
  License: GPL2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10