Plugin Directory

Changeset 440340


Ignore:
Timestamp:
09/19/2011 05:49:19 PM (15 years ago)
Author:
mattrude
Message:

updating to version 0.10

Location:
random-image-block/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • random-image-block/trunk/random-image-block.php

    r327673 r440340  
    44Plugin URI: http://mattrude.com/projects/random-image-block/
    55Description: Display a random image from your native WordPress photo galley or in-beaded images.
    6 Version: 0.9.2
     6Version: 0.10
    77Author: Matt Rude
    88Author URI: http://mattrude.com/
     
    9898 
    9999  function update($new_instance, $old_instance) {
     100    if ( !current_user_can('edit_theme_options') ) die(__('You cannot edit this screen.', 'random-image-block'));
    100101    $instance = $old_instance;
    101102    $instance['widget_title'] = strip_tags($new_instance['widget_title']);
     
    113114  function form($instance) {
    114115
    115     echo $instance['display_album'];
    116116    $riw_widget_title = strip_tags($instance['widget_title']);
    117117    $riw_center = $instance['center'];
     
    123123    $riw_display_caption = empty($instance['display_caption']) ? 'on' : apply_filters('display_caption', $instance['display_caption']);
    124124    $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>
    126126
    127127    <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'); ?>" />
     
    153153    <p><strong><?php _e('Album Options:', 'random-image-block') ?></strong></p>
    154154    <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 vs Image?', '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>
    156156
    157157    <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  
    55Tags: gallery, images, image block, plugin, widget
    66Requires at least: 2.9
    7 Tested up to: 3.1
    8 Stable tag: 0.9.2
     7Tested up to: 3.2
     8Stable tag: 0.10
    99
    1010A small plugin that will display a random image from your native WordPress photo galley or in-beaded images.
     
    7272== Changelog ==
    7373
     74= Version 0.10 =
     75* removed depressed calls to attribute_escape
    7476= Version 0.9.2 =
    7577* Fully tested for WordPress version 3.1
Note: See TracChangeset for help on using the changeset viewer.