mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Move media settings to options-media.php. see #7552
git-svn-id: https://develop.svn.wordpress.org/trunk@8905 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -48,94 +48,6 @@ include('admin-header.php');
|
||||
<?php do_settings_fields('misc', 'default'); ?>
|
||||
</table>
|
||||
|
||||
<h3><?php _e('Image sizes') ?></h3>
|
||||
<p><?php _e('The sizes listed below determine the maximum dimensions to use when inserting an image into the body of a post.'); ?></p>
|
||||
|
||||
<table class="form-table">
|
||||
<tr valign="top">
|
||||
<th scope="row"><?php _e('Thumbnail size') ?></th>
|
||||
<td><fieldset><legend class="hidden"><?php _e('Thumbnail size') ?></legend>
|
||||
<label for="thumbnail_size_w"><?php _e('Width'); ?></label>
|
||||
<input name="thumbnail_size_w" type="text" id="thumbnail_size_w" value="<?php form_option('thumbnail_size_w'); ?>" size="6" />
|
||||
<label for="thumbnail_size_h"><?php _e('Height'); ?></label>
|
||||
<input name="thumbnail_size_h" type="text" id="thumbnail_size_h" value="<?php form_option('thumbnail_size_h'); ?>" size="6" /><br />
|
||||
<input name="thumbnail_crop" type="checkbox" id="thumbnail_crop" value="1" <?php checked('1', get_option('thumbnail_crop')); ?>/>
|
||||
<label for="thumbnail_crop"><?php _e('Crop thumbnail to exact dimensions (normally thumbnails are proportional)'); ?></label>
|
||||
</fieldset></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<th scope="row"><?php _e('Medium size') ?></th>
|
||||
<td><fieldset><legend class="hidden"><?php _e('Medium size') ?></legend>
|
||||
<label for="medium_size_w"><?php _e('Max Width'); ?></label>
|
||||
<input name="medium_size_w" type="text" id="medium_size_w" value="<?php form_option('medium_size_w'); ?>" size="6" />
|
||||
<label for="medium_size_h"><?php _e('Max Height'); ?></label>
|
||||
<input name="medium_size_h" type="text" id="medium_size_h" value="<?php form_option('medium_size_h'); ?>" size="6" />
|
||||
</fieldset></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<th scope="row"><?php _e('Large size') ?></th>
|
||||
<td><fieldset><legend class="hidden"><?php _e('Large size') ?></legend>
|
||||
<label for="large_size_w"><?php _e('Max Width'); ?></label>
|
||||
<input name="large_size_w" type="text" id="large_size_w" value="<?php form_option('large_size_w'); ?>" size="6" />
|
||||
<label for="large_size_h"><?php _e('Max Height'); ?></label>
|
||||
<input name="large_size_h" type="text" id="large_size_h" value="<?php form_option('large_size_h'); ?>" size="6" />
|
||||
</fieldset></td>
|
||||
</tr>
|
||||
|
||||
<tr valign="top">
|
||||
<th scope="row"><?php _e('Default image size') ?></th>
|
||||
<td><fieldset><legend class="hidden"><?php _e('Default image size') ?></legend>
|
||||
<?php
|
||||
$size_names = array('' => 'Auto', 'thumbnail' => 'Thumbnail', 'medium' => 'Medium', 'large' => 'Large', 'full' => 'Full size');
|
||||
foreach ($size_names as $size => $name) { ?>
|
||||
<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); ?> />
|
||||
<label for="image_default_size_<?php echo $size; ?>"><?php _e($name); ?></label>
|
||||
<?php
|
||||
}
|
||||
|
||||
?>
|
||||
</fieldset></td>
|
||||
</tr>
|
||||
|
||||
<tr valign="top">
|
||||
<th scope="row"><?php _e('Default image alignment') ?></th>
|
||||
<td><fieldset><legend class="hidden"><?php _e('Default image alignment') ?></legend>
|
||||
<?php
|
||||
$alignments = array('none' => 'None', 'left' => 'Left', 'center' => 'Center', 'right' => 'Right');
|
||||
|
||||
$default_align = get_option('image_default_align');
|
||||
if ( empty($default_align) )
|
||||
$default_align = 'none';
|
||||
|
||||
foreach ($alignments as $align => $name) { ?>
|
||||
<input type="radio" name="image_default_align" id="image_default_align_<?php echo $align; ?>" value="<?php echo $align; ?>"<?php checked($default_align, $align); ?> />
|
||||
<label for="image_default_align_<?php echo $align; ?>"><?php _e($name); ?></label>
|
||||
<?php
|
||||
}
|
||||
|
||||
?>
|
||||
</fieldset></td>
|
||||
</tr>
|
||||
|
||||
<tr valign="top">
|
||||
<th scope="row"><?php _e('Default image links') ?></th>
|
||||
<td><fieldset><legend class="hidden"><?php _e('Default image links') ?></legend>
|
||||
<?php
|
||||
$link_types = array('' => 'None', 'post' => 'Post URL', 'file' => 'File');
|
||||
foreach ($link_types as $type => $name) { ?>
|
||||
<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); ?> />
|
||||
<label for="image_default_link_type_<?php echo $type; ?>"><?php _e($name); ?></label>
|
||||
<?php
|
||||
}
|
||||
|
||||
?>
|
||||
</fieldset></td>
|
||||
</tr>
|
||||
<?php do_settings_fields('misc', 'images'); ?>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
<table class="form-table">
|
||||
|
||||
<tr>
|
||||
|
||||
Reference in New Issue
Block a user