Make WordPress Core


Ignore:
Timestamp:
09/16/2008 10:37:49 PM (17 years ago)
Author:
ryan
Message:

Move media settings to options-media.php. see #7552

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/options-misc.php

    r8855 r8905  
    4949</table>
    5050
    51 <h3><?php _e('Image sizes') ?></h3>
    52 <p><?php _e('The sizes listed below determine the maximum dimensions to use when inserting an image into the body of a post.'); ?></p>
    53 
    54 <table class="form-table">
    55 <tr valign="top">
    56 <th scope="row"><?php _e('Thumbnail size') ?></th>
    57 <td><fieldset><legend class="hidden"><?php _e('Thumbnail size') ?></legend>
    58 <label for="thumbnail_size_w"><?php _e('Width'); ?></label>
    59 <input name="thumbnail_size_w" type="text" id="thumbnail_size_w" value="<?php form_option('thumbnail_size_w'); ?>" size="6" />
    60 <label for="thumbnail_size_h"><?php _e('Height'); ?></label>
    61 <input name="thumbnail_size_h" type="text" id="thumbnail_size_h" value="<?php form_option('thumbnail_size_h'); ?>" size="6" /><br />
    62 <input name="thumbnail_crop" type="checkbox" id="thumbnail_crop" value="1" <?php checked('1', get_option('thumbnail_crop')); ?>/>
    63 <label for="thumbnail_crop"><?php _e('Crop thumbnail to exact dimensions (normally thumbnails are proportional)'); ?></label>
    64 </fieldset></td>
    65 </tr>
    66 <tr valign="top">
    67 <th scope="row"><?php _e('Medium size') ?></th>
    68 <td><fieldset><legend class="hidden"><?php _e('Medium size') ?></legend>
    69 <label for="medium_size_w"><?php _e('Max Width'); ?></label>
    70 <input name="medium_size_w" type="text" id="medium_size_w" value="<?php form_option('medium_size_w'); ?>" size="6" />
    71 <label for="medium_size_h"><?php _e('Max Height'); ?></label>
    72 <input name="medium_size_h" type="text" id="medium_size_h" value="<?php form_option('medium_size_h'); ?>" size="6" />
    73 </fieldset></td>
    74 </tr>
    75 <tr valign="top">
    76 <th scope="row"><?php _e('Large size') ?></th>
    77 <td><fieldset><legend class="hidden"><?php _e('Large size') ?></legend>
    78 <label for="large_size_w"><?php _e('Max Width'); ?></label>
    79 <input name="large_size_w" type="text" id="large_size_w" value="<?php form_option('large_size_w'); ?>" size="6" />
    80 <label for="large_size_h"><?php _e('Max Height'); ?></label>
    81 <input name="large_size_h" type="text" id="large_size_h" value="<?php form_option('large_size_h'); ?>" size="6" />
    82 </fieldset></td>
    83 </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 <?php
    89     $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 checked(get_option('image_default_size'), $size); ?> />           
    92         <label for="image_default_size_<?php echo $size; ?>"><?php _e($name); ?></label>
    93     <?php
    94     }
    95 
    96 ?>
    97 </fieldset></td>
    98 </tr>
    99 
    100 <tr valign="top">
    101 <th scope="row"><?php _e('Default image alignment') ?></th>
    102 <td><fieldset><legend class="hidden"><?php _e('Default image alignment') ?></legend>
    103 <?php
    104     $alignments = array('none' => 'None', 'left' => 'Left', 'center' => 'Center', 'right' => 'Right');
    105 
    106     $default_align = get_option('image_default_align');
    107     if ( empty($default_align) )
    108         $default_align = 'none';
    109 
    110     foreach ($alignments as $align => $name) { ?>
    111         <input type="radio" name="image_default_align" id="image_default_align_<?php echo $align; ?>" value="<?php echo $align; ?>"<?php checked($default_align, $align); ?> />
    112         <label for="image_default_align_<?php echo $align; ?>"><?php _e($name); ?></label>
    113     <?php
    114     }
    115 
    116 ?>
    117 </fieldset></td>
    118 </tr>
    119 
    120 <tr valign="top">
    121 <th scope="row"><?php _e('Default image links') ?></th>
    122 <td><fieldset><legend class="hidden"><?php _e('Default image links') ?></legend>
    123 <?php
    124     $link_types = array('' => 'None', 'post' => 'Post URL', 'file' => 'File');
    125     foreach ($link_types as $type => $name) { ?>
    126         <input type="radio" name="image_default_link_type" id="image_default_link_type_<?php echo $type; ?>" value="<?php echo $type; ?>"<?php checked(get_option('image_default_link_type'), $type); ?> />         
    127         <label for="image_default_link_type_<?php echo $type; ?>"><?php _e($name); ?></label>
    128     <?php
    129     }
    130 
    131 ?>
    132 </fieldset></td>
    133 </tr>
    134 <?php do_settings_fields('misc', 'images'); ?>
    135 </table>
    136 
    137 
    138 
    13951<table class="form-table">
    14052
Note: See TracChangeset for help on using the changeset viewer.