3 * Media settings administration panel.
6 * @subpackage Administration
9 /** WordPress Administration Bootstrap */
10 require_once('admin.php');
12 if ( ! current_user_can('manage_options') )
13 wp_die(__('You do not have sufficient permissions to manage options for this blog.'));
15 $title = __('Media Settings');
16 $parent_file = 'options-general.php';
18 include('admin-header.php');
23 <?php screen_icon(); ?>
24 <h2><?php echo esc_html( $title ); ?></h2>
26 <form action="options.php" method="post">
27 <?php settings_fields('media'); ?>
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>
32 <table class="form-table">
34 <th scope="row"><?php _e('Thumbnail size') ?></th>
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>
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" />
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" />
65 <?php do_settings_fields('media', 'default'); ?>
68 <?php do_settings_sections('media'); ?>
71 <input type="submit" name="Submit" class="button-primary" value="<?php esc_attr_e('Save Changes') ?>" />
78 <?php include('./admin-footer.php'); ?>