Changeset 897606
- Timestamp:
- 04/18/2014 06:34:15 PM (12 years ago)
- File:
-
- 1 edited
-
badges/trunk/DisplayBadges.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
badges/trunk/DisplayBadges.php
r349312 r897606 2 2 /* 3 3 Plugin Name: Display Badges 4 Plugin URI: http:// www.damn.org.za/blog/displaybadges4 Plugin URI: http://blog.damn.org.za/widgets/ 5 5 Description: Display a set of Badges (named XXFoo.inc) within the widget 6 6 Author: Eugéne Roux 7 Version: 2. 37 Version: 2.4 8 8 Author URI: http://damn.org.za/ 9 9 */ … … 31 31 // @see WP_Widget::widget 32 32 // 33 function widget($args, $instance) { 33 function widget($args, $instance) { 34 34 extract( $args ); 35 35 $title = apply_filters('widget_title', $instance['title']); … … 71 71 print( ">\n" ); 72 72 73 $badgearray = file($filename); 73 $badgearray = file($filename); 74 74 foreach ($badgearray as $badge) { 75 75 $badge = str_replace("[BLOGURL]", get_settings('home'), $badge); … … 88 88 // @see WP_Widget::update 89 89 // 90 function update($new_instance, $old_instance) { 90 function update($new_instance, $old_instance) { 91 91 $instance = $old_instance; 92 92 $instance['title'] = strip_tags( $new_instance['title'] ); … … 107 107 $title = esc_attr( $instance['title'] ); 108 108 $path = $instance['path']; 109 $displayframe = $instance['displayframe'] ? "checked='checked'" : ""; 110 $internalcss = $instance['internalcss'] ? "checked='checked'" : ""; 111 $dropshadow = $instance['dropshadow'] ? "checked='checked'" : ""; 109 $displayframe = $instance['displayframe'] ? "checked='checked'" : ""; 110 $internalcss = $instance['internalcss'] ? "checked='checked'" : ""; 111 $dropshadow = $instance['dropshadow'] ? "checked='checked'" : ""; 112 112 113 113 print( "\t<p>\n\t\t<label for='" . $this->get_field_id("title") . "'>" ); _e( "Title:" );
Note: See TracChangeset
for help on using the changeset viewer.