Changeset 440340
- Timestamp:
- 09/19/2011 05:49:19 PM (15 years ago)
- Location:
- random-image-block/trunk
- Files:
-
- 2 edited
-
random-image-block.php (modified) (5 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
random-image-block/trunk/random-image-block.php
r327673 r440340 4 4 Plugin URI: http://mattrude.com/projects/random-image-block/ 5 5 Description: Display a random image from your native WordPress photo galley or in-beaded images. 6 Version: 0. 9.26 Version: 0.10 7 7 Author: Matt Rude 8 8 Author URI: http://mattrude.com/ … … 98 98 99 99 function update($new_instance, $old_instance) { 100 if ( !current_user_can('edit_theme_options') ) die(__('You cannot edit this screen.', 'random-image-block')); 100 101 $instance = $old_instance; 101 102 $instance['widget_title'] = strip_tags($new_instance['widget_title']); … … 113 114 function form($instance) { 114 115 115 echo $instance['display_album'];116 116 $riw_widget_title = strip_tags($instance['widget_title']); 117 117 $riw_center = $instance['center']; … … 123 123 $riw_display_caption = empty($instance['display_caption']) ? 'on' : apply_filters('display_caption', $instance['display_caption']); 124 124 $riw_display_description = $instance['display_description']; 125 ?><p><label for="<?php echo $this->get_field_id('widget_title'); ?>"><?php _e('Widget Title', 'random-image-block')?>:<input class="widefat" id="<?php echo $this->get_field_id('widget_title'); ?>" name="<?php echo $this->get_field_name('widget_title'); ?>" type="text" value="<?php echo attribute_escape($riw_widget_title); ?>" /></label></p>125 ?><p><label for="<?php echo $this->get_field_id('widget_title'); ?>"><?php _e('Widget Title', 'random-image-block')?>:<input class="widefat" id="<?php echo $this->get_field_id('widget_title'); ?>" name="<?php echo $this->get_field_name('widget_title'); ?>" type="text" value="<?php echo esc_attr($riw_widget_title); ?>" /></label></p> 126 126 127 127 <p><input class="checkbox" type="checkbox" <?php if ("$riw_center" == "on" ){echo 'checked="checked"';} ?> id="<?php echo $this->get_field_id('center'); ?>" name="<?php echo $this->get_field_name('center'); ?>" /> … … 153 153 <p><strong><?php _e('Album Options:', 'random-image-block') ?></strong></p> 154 154 <p style="line-height: 6px;"><input class="checkbox" type="checkbox" <?php if ("$riw_link_album" == "on" ){echo 'checked="checked"';} ?> id="<?php echo $this->get_field_id('link_album'); ?>" name="<?php echo $this->get_field_name('link_album'); ?>" /> 155 <label for="<?php echo $this->get_field_id('link_album'); ?>"><?php _e('Link to the Album vsImage?', 'random-image-block')?></label></p>155 <label for="<?php echo $this->get_field_id('link_album'); ?>"><?php _e('Link to the Album not Image?', 'random-image-block')?></label></p> 156 156 157 157 <p><input class="checkbox" type="checkbox" <?php if ("$riw_display_album" == "on" ){echo 'checked="checked"';} ?> id="<?php echo $this->get_field_id('display_album'); ?>" name="<?php echo $this->get_field_name('display_album'); ?>" /> -
random-image-block/trunk/readme.txt
r327666 r440340 5 5 Tags: gallery, images, image block, plugin, widget 6 6 Requires at least: 2.9 7 Tested up to: 3. 18 Stable tag: 0. 9.27 Tested up to: 3.2 8 Stable tag: 0.10 9 9 10 10 A small plugin that will display a random image from your native WordPress photo galley or in-beaded images. … … 72 72 == Changelog == 73 73 74 = Version 0.10 = 75 * removed depressed calls to attribute_escape 74 76 = Version 0.9.2 = 75 77 * Fully tested for WordPress version 3.1
Note: See TracChangeset
for help on using the changeset viewer.