Changeset 10009 for trunk/wp-admin/options-media.php
- Timestamp:
- 12/02/2008 10:29:54 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/options-media.php
r9954 r10009 23 23 <form action="options.php" method="post"> 24 24 <?php settings_fields('media'); ?> 25 26 <p><?php _e('The setting below determines where images, documents, and other media files will be linked to when inserted into the body of a post.'); ?></p>27 28 <table class="form-table">29 <tr valign="top">30 <th scope="row"><?php _e('Default media links') ?></th>31 <td><fieldset><legend class="hidden"><?php _e('Default image links') ?></legend>32 <?php33 $link_types = array('none' => __('None'), 'post' => __('Post URL'), 'file' => __('File'));34 35 $default_link_type = get_option('image_default_link_type');36 if ( empty($default_link_type) )37 $default_link_type = 'file';38 39 foreach ($link_types as $type => $name) { ?>40 <input type="radio" name="image_default_link_type" id="image_default_link_type_<?php echo $type; ?>" value="<?php echo $type; ?>"<?php echo ($default_link_type == $type ? ' checked="checked"' : ''); ?> />41 <label for="image_default_link_type_<?php echo $type; ?>"><?php echo $name; ?></label>42 <?php43 }44 ?>45 </fieldset></td>46 </tr>47 </table>48 25 49 26 <h3><?php _e('Image sizes') ?></h3> … … 82 59 </fieldset></td> 83 60 </tr> 84 85 <tr valign="top">86 <th scope="row"><?php _e('Default image size') ?></th>87 <td><fieldset><legend class="hidden"><?php _e('Default image size') ?></legend>88 <?php89 $size_names = array('' => __('Auto'), 'thumbnail' => __('Thumbnail'), 'medium' => __('Medium'), 'large' => __('Large'), 'full' => __('Full size'));90 foreach ($size_names as $size => $name) { ?>91 <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"' : ''); ?> />92 <label for="image_default_size_<?php echo $size; ?>"><?php echo $name; ?></label>93 <?php94 }95 ?>96 </fieldset></td>97 </tr>98 61 99 <tr valign="top">100 <th scope="row"><?php _e('Default image alignment') ?></th>101 <td><fieldset><legend class="hidden"><?php _e('Default image alignment') ?></legend>102 <?php103 $alignments = array('none' => 'None', 'left' => 'Left', 'center' => 'Center', 'right' => 'Right');104 105 $default_align = get_option('image_default_align');106 if ( empty($default_align) )107 $default_align = 'none';108 109 foreach ($alignments as $align => $name) { ?>110 <input type="radio" name="image_default_align" id="image_default_align_<?php echo $align; ?>" value="<?php echo $align; ?>"<?php echo ($default_align == $align ? ' checked="checked"' : ''); ?> />111 <label for="image_default_align_<?php echo $align; ?>"><?php _e($name); ?></label>112 <?php113 }114 ?>115 </fieldset></td>116 </tr>117 62 <?php do_settings_fields('media', 'default'); ?> 118 63 </table>
Note: See TracChangeset
for help on using the changeset viewer.