Changeset 897605
- Timestamp:
- 04/18/2014 06:33:59 PM (12 years ago)
- File:
-
- 1 edited
-
badge/trunk/DisplayBadge.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
badge/trunk/DisplayBadge.php
r349314 r897605 2 2 /* 3 3 Plugin Name: Display Badge 4 Plugin URI: http:// www.damn.org.za/blog/displaybadge4 Plugin URI: http://blog.damn.org.za/widgets/ 5 5 Description: Individual Badge Version of DisplayBadges 6 6 Author: Eugéne Roux 7 Version: 1. 18 Author URI: http://damn.org.za/ blog/7 Version: 1.2 8 Author URI: http://damn.org.za/ 9 9 */ 10 10 … … 33 33 // @see WP_Widget::widget 34 34 // 35 function widget($args, $instance) { 35 function widget($args, $instance) { 36 36 extract( $args ); 37 37 $id = $args['widget_id']; … … 87 87 88 88 print( "src=' " . $destIMG . " ' />\n" ); 89 89 90 90 if ( $badgeNote ) { 91 91 print( "\t\t\t<br />\n\t\t\t" . $badgeNote . "\n" ); … … 103 103 // @see WP_Widget::update 104 104 // 105 function update($new_instance, $old_instance) { 105 function update($new_instance, $old_instance) { 106 106 $instance = $old_instance; 107 107 $instance['title'] = strip_tags( $new_instance['title'] ); … … 126 126 $destIMG = $instance['destIMG']; 127 127 $badgeNote = $instance['badgeNote']; 128 $displayframe = $instance['displayframe'] ? "checked='checked'" : ""; 129 $padbadge = $instance['padbadge'] ? "checked='checked'" : ""; 130 $dropshadow = $instance['dropshadow'] ? "checked='checked'" : ""; 128 $displayframe = $instance['displayframe'] ? "checked='checked'" : ""; 129 $padbadge = $instance['padbadge'] ? "checked='checked'" : ""; 130 $dropshadow = $instance['dropshadow'] ? "checked='checked'" : ""; 131 131 132 132 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.