Changeset 566842
- Timestamp:
- 07/03/2012 10:41:09 AM (14 years ago)
- Location:
- tailored-tools/tags/1.3.3
- Files:
-
- 4 edited
- 1 copied
-
. (copied) (copied from tailored-tools/trunk)
-
lib/class.forms.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
-
resource/tinymce.js.php (modified) (1 diff)
-
tools.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
tailored-tools/tags/1.3.3/lib/class.forms.php
r566366 r566842 410 410 411 411 function draw_select($key, $q) { 412 // Is this an associative array? 413 $is_assoc = array_keys($q['options']) !== range(0, count($q['options']) - 1); 414 // Draw Element 412 415 echo '<p'.$q['class'].'><label><span>'.$q['label'].'</span>'."\n"; 413 416 echo "\t".'<select name="'.$key.'" id="'.$key.'" class="txt">'."\n"; 414 417 foreach ($q['options'] as $val => $opt) { 418 if (!$is_assoc) $val = $opt; 415 419 $sel = ($_POST[$key] == $val) ? ' selected="selected"' : ''; 416 420 echo "\t\t".'<option value="'.$val.'"'.$sel.'>'.$opt.'</option>'."\n"; … … 424 428 $name = ($q['type'] == 'checkbox') ? $key.'[]' : $key; 425 429 if ($q['label']) $q['label'] = '<span class="label">'.$q['label'].'</span>'; 430 // Is this an associative array? 431 $is_assoc = array_keys($q['options']) !== range(0, count($q['options']) - 1); 426 432 // Draw Element 427 433 echo '<p'.$q['class'].'>'.$q['label']."\n"; 428 434 foreach ($q['options'] as $val => $opt) { 435 if (!$is_assoc) $val = $opt; 429 436 $sel = ($_POST[$key] == $val || @in_array($val, $_POST[$key])) ? ' checked="checked"' : ''; 430 437 echo "\t".'<label><input type="'.$q['type'].'" name="'.$name.'" value="'.$val.'"'.$sel.' /> '.$opt.'</label>'."\n"; -
tailored-tools/tags/1.3.3/readme.txt
r566366 r566842 4 4 Requires at least: 3.0 5 5 Tested up to: 3.4.1 6 Stable tag: 1.3. 26 Stable tag: 1.3.3 7 7 8 8 Contains some helper classes to help you build custom forms. -
tailored-tools/tags/1.3.3/resource/tinymce.js.php
r566366 r566842 26 26 var c = cm.createSplitButton('TailoredTools', { 27 27 title : 'Tailored Tools', 28 image : '<?php echo $TailoredTinyMCE->plugin_url; ?> mce-icon.gif',28 image : '<?php echo $TailoredTinyMCE->plugin_url; ?>resource/mce-icon.gif', 29 29 onclick : function() { 30 30 c.showMenu(); -
tailored-tools/tags/1.3.3/tools.php
r566366 r566842 3 3 Plugin Name: Tailored Tools 4 4 Description: Adds some functionality to WordPress that you'll need. 5 Version: 1.3. 25 Version: 1.3.3 6 6 Author: Tailored Web Services 7 7 Author URI: http://www.tailored.com.au
Note: See TracChangeset
for help on using the changeset viewer.