Plugin Directory

Changeset 828084


Ignore:
Timestamp:
12/24/2013 04:03:34 PM (12 years ago)
Author:
fuhton
Message:

updated the returned module and version number

Location:
simple-upload-widget/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • simple-upload-widget/trunk/readme.txt

    r827684 r828084  
    1010== Description ==
    1111
    12 Available on Github for review.
     12[Available on GitHub](https://github.com/fuhton/simple-upload-widget)
    1313
    1414= Usage =
  • simple-upload-widget/trunk/simpleUploadWidget.php

    r827684 r828084  
    55Author: Nick Smith
    66Author URI: http://iliketheideaof.us
    7 Version: 0.1
     7Version: 0.1.1
    88*/
    99
     
    3333    public function form( $instance )
    3434    {
    35         $text  = '<p>';
    36         $text .= '<label for="%1$s">Media</label><br />';
    37         $text .= '<input type="text" class="img" name="%1$s" id="%1$s" value="%2$s" />';
    38         $text .= '<input type="button" class="select-img" value="Select Media" />';
    39         $text .= '</p>';
    40 
    41         $image_uri = $this->get_field_id('image_uri');
    42         $image_instance = $instance['image_uri'];
    43         printf(__($text), $image_uri, $image_instance);
     35      ?>
     36     <p>
     37       <label for="<?php echo $this->get_field_id('image_uri'); ?>">Image</label><br />
     38       <input type="text" class="img" name="<?php echo $this->get_field_name('image_uri'); ?>" id="<?php echo $this->get_field_id('image_uri'); ?>" value="<?php echo $instance['image_uri']; ?>" />
     39       <input type="button" class="select-img" value="Select Image" />
     40     </p>
     41     <?php
    4442    }
    4543}
Note: See TracChangeset for help on using the changeset viewer.