Changeset 8653 for trunk/wp-admin/options-misc.php
- Timestamp:
- 08/15/2008 03:40:35 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/options-misc.php
r8612 r8653 72 72 </fieldset></td> 73 73 </tr> 74 75 <tr valign="top"> 76 <th scope="row"><?php _e('Default image size') ?></th> 77 <td><fieldset><legend class="hidden"><?php _e('Default image size') ?></legend> 78 <?php 79 $size_names = array('' => 'Auto', 'thumbnail' => 'Thumbnail', 'medium' => 'Medium', 'large' => 'Large', 'full' => 'Full size'); 80 foreach ($size_names as $size => $name) { ?> 81 <input type="radio" name="image_default_size" id="image_default_size_<?php echo $size; ?>" value="<?php echo $size; ?>"<?php echo (get_option('image_default_size') == $size ? ' checked="checked"' : ''); ?> /> 82 <label for="image_default_size_<?php echo $size; ?>"><?php _e($name); ?></label> 83 <?php 84 } 85 86 ?> 87 </fieldset></td> 88 </tr> 89 90 <tr valign="top"> 91 <th scope="row"><?php _e('Default image alignment') ?></th> 92 <td><fieldset><legend class="hidden"><?php _e('Default image alignment') ?></legend> 93 <?php 94 $alignments = array('none' => 'None', 'left' => 'Left', 'center' => 'Center', 'right' => 'Right'); 95 foreach ($alignments as $align => $name) { ?> 96 <input type="radio" name="image_default_align" id="image_default_align_<?php echo $align; ?>" value="<?php echo $align; ?>"<?php echo (get_option('image_default_align') == $align ? ' checked="checked"' : ''); ?> /> 97 <label for="image_default_align_<?php echo $align; ?>"><?php _e($name); ?></label> 98 <?php 99 } 100 101 ?> 102 </fieldset></td> 103 </tr> 104 105 <tr valign="top"> 106 <th scope="row"><?php _e('Default image links') ?></th> 107 <td><fieldset><legend class="hidden"><?php _e('Default image links') ?></legend> 108 <?php 109 $link_types = array('' => 'None', 'post' => 'Post URL', 'file' => 'File'); 110 foreach ($link_types as $type => $name) { ?> 111 <input type="radio" name="image_default_link_type" id="image_default_link_type_<?php echo $type; ?>" value="<?php echo $type; ?>"<?php echo (get_option('image_default_link_type') == $type ? ' checked="checked"' : ''); ?> /> 112 <label for="image_default_link_type_<?php echo $type; ?>"><?php _e($name); ?></label> 113 <?php 114 } 115 116 ?> 117 </fieldset></td> 118 </tr> 119 74 120 </table> 75 121 … … 100 146 <p class="submit"> 101 147 <input type="hidden" name="action" value="update" /> 102 <input type="hidden" name="page_options" value="hack_file,use_linksupdate,uploads_use_yearmonth_folders,upload_path,upload_url_path,thumbnail_size_w,thumbnail_size_h,thumbnail_crop,medium_size_w,medium_size_h " />148 <input type="hidden" name="page_options" value="hack_file,use_linksupdate,uploads_use_yearmonth_folders,upload_path,upload_url_path,thumbnail_size_w,thumbnail_size_h,thumbnail_crop,medium_size_w,medium_size_h,image_default_size,image_default_align,image_default_link_type" /> 103 149 <input type="submit" name="Submit" value="<?php _e('Save Changes') ?>" class="button" /> 104 150 </p>
Note: See TracChangeset
for help on using the changeset viewer.