]> scripts.mit.edu Git - autoinstalls/wordpress.git/blob - wp-admin/options-media.php
Wordpress 2.8.5
[autoinstalls/wordpress.git] / wp-admin / options-media.php
1 <?php
2 /**
3  * Media settings administration panel.
4  *
5  * @package WordPress
6  * @subpackage Administration
7  */
8
9 /** WordPress Administration Bootstrap */
10 require_once('admin.php');
11
12 if ( ! current_user_can('manage_options') )
13         wp_die(__('You do not have sufficient permissions to manage options for this blog.'));
14
15 $title = __('Media Settings');
16 $parent_file = 'options-general.php';
17
18 include('admin-header.php');
19
20 ?>
21
22 <div class="wrap">
23 <?php screen_icon(); ?>
24 <h2><?php echo esc_html( $title ); ?></h2>
25
26 <form action="options.php" method="post">
27 <?php settings_fields('media'); ?>
28
29 <h3><?php _e('Image sizes') ?></h3>
30 <p><?php _e('The sizes listed below determine the maximum dimensions in pixels to use when inserting an image into the body of a post.'); ?></p>
31
32 <table class="form-table">
33 <tr valign="top">
34 <th scope="row"><?php _e('Thumbnail size') ?></th>
35 <td>
36 <label for="thumbnail_size_w"><?php _e('Width'); ?></label>
37 <input name="thumbnail_size_w" type="text" id="thumbnail_size_w" value="<?php form_option('thumbnail_size_w'); ?>" class="small-text" />
38 <label for="thumbnail_size_h"><?php _e('Height'); ?></label>
39 <input name="thumbnail_size_h" type="text" id="thumbnail_size_h" value="<?php form_option('thumbnail_size_h'); ?>" class="small-text" /><br />
40 <input name="thumbnail_crop" type="checkbox" id="thumbnail_crop" value="1" <?php checked('1', get_option('thumbnail_crop')); ?>/>
41 <label for="thumbnail_crop"><?php _e('Crop thumbnail to exact dimensions (normally thumbnails are proportional)'); ?></label>
42 </td>
43 </tr>
44
45 <tr valign="top">
46 <th scope="row"><?php _e('Medium size') ?></th>
47 <td><fieldset><legend class="screen-reader-text"><span><?php _e('Medium size') ?></span></legend>
48 <label for="medium_size_w"><?php _e('Max Width'); ?></label>
49 <input name="medium_size_w" type="text" id="medium_size_w" value="<?php form_option('medium_size_w'); ?>" class="small-text" />
50 <label for="medium_size_h"><?php _e('Max Height'); ?></label>
51 <input name="medium_size_h" type="text" id="medium_size_h" value="<?php form_option('medium_size_h'); ?>" class="small-text" />
52 </fieldset></td>
53 </tr>
54
55 <tr valign="top">
56 <th scope="row"><?php _e('Large size') ?></th>
57 <td><fieldset><legend class="screen-reader-text"><span><?php _e('Large size') ?></span></legend>
58 <label for="large_size_w"><?php _e('Max Width'); ?></label>
59 <input name="large_size_w" type="text" id="large_size_w" value="<?php form_option('large_size_w'); ?>" class="small-text" />
60 <label for="large_size_h"><?php _e('Max Height'); ?></label>
61 <input name="large_size_h" type="text" id="large_size_h" value="<?php form_option('large_size_h'); ?>" class="small-text" />
62 </fieldset></td>
63 </tr>
64
65 <?php do_settings_fields('media', 'default'); ?>
66 </table>
67
68 <?php do_settings_sections('media'); ?>
69
70 <p class="submit">
71         <input type="submit" name="Submit" class="button-primary" value="<?php esc_attr_e('Save Changes') ?>" />
72 </p>
73
74 </form>
75
76 </div>
77
78 <?php include('./admin-footer.php'); ?>