Changeset 828084
- Timestamp:
- 12/24/2013 04:03:34 PM (12 years ago)
- Location:
- simple-upload-widget/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (1 diff)
-
simpleUploadWidget.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
simple-upload-widget/trunk/readme.txt
r827684 r828084 10 10 == Description == 11 11 12 Available on Github for review. 12 [Available on GitHub](https://github.com/fuhton/simple-upload-widget) 13 13 14 14 = Usage = -
simple-upload-widget/trunk/simpleUploadWidget.php
r827684 r828084 5 5 Author: Nick Smith 6 6 Author URI: http://iliketheideaof.us 7 Version: 0.1 7 Version: 0.1.1 8 8 */ 9 9 … … 33 33 public function form( $instance ) 34 34 { 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 44 42 } 45 43 }
Note: See TracChangeset
for help on using the changeset viewer.