3 * Media settings administration panel.
6 * @subpackage Administration
9 /** WordPress Administration Bootstrap */
10 require_once('admin.php');
12 $title = __('Media Settings');
13 $parent_file = 'options-general.php';
15 include('admin-header.php');
20 <?php screen_icon(); ?>
21 <h2><?php echo esc_html( $title ); ?></h2>
23 <form action="options.php" method="post">
24 <?php settings_fields('media'); ?>
26 <h3><?php _e('Image sizes') ?></h3>
27 <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>
29 <table class="form-table">
31 <th scope="row"><?php _e('Thumbnail size') ?></th>
33 <label for="thumbnail_size_w"><?php _e('Width'); ?></label>
34 <input name="thumbnail_size_w" type="text" id="thumbnail_size_w" value="<?php form_option('thumbnail_size_w'); ?>" class="small-text" />
35 <label for="thumbnail_size_h"><?php _e('Height'); ?></label>
36 <input name="thumbnail_size_h" type="text" id="thumbnail_size_h" value="<?php form_option('thumbnail_size_h'); ?>" class="small-text" /><br />
37 <input name="thumbnail_crop" type="checkbox" id="thumbnail_crop" value="1" <?php checked('1', get_option('thumbnail_crop')); ?>/>
38 <label for="thumbnail_crop"><?php _e('Crop thumbnail to exact dimensions (normally thumbnails are proportional)'); ?></label>
43 <th scope="row"><?php _e('Medium size') ?></th>
44 <td><fieldset><legend class="screen-reader-text"><span><?php _e('Medium size') ?></span></legend>
45 <label for="medium_size_w"><?php _e('Max Width'); ?></label>
46 <input name="medium_size_w" type="text" id="medium_size_w" value="<?php form_option('medium_size_w'); ?>" class="small-text" />
47 <label for="medium_size_h"><?php _e('Max Height'); ?></label>
48 <input name="medium_size_h" type="text" id="medium_size_h" value="<?php form_option('medium_size_h'); ?>" class="small-text" />
53 <th scope="row"><?php _e('Large size') ?></th>
54 <td><fieldset><legend class="screen-reader-text"><span><?php _e('Large size') ?></span></legend>
55 <label for="large_size_w"><?php _e('Max Width'); ?></label>
56 <input name="large_size_w" type="text" id="large_size_w" value="<?php form_option('large_size_w'); ?>" class="small-text" />
57 <label for="large_size_h"><?php _e('Max Height'); ?></label>
58 <input name="large_size_h" type="text" id="large_size_h" value="<?php form_option('large_size_h'); ?>" class="small-text" />
62 <?php do_settings_fields('media', 'default'); ?>
65 <?php do_settings_sections('media'); ?>
68 <input type="submit" name="Submit" class="button-primary" value="<?php esc_attr_e('Save Changes') ?>" />
75 <?php include('./admin-footer.php'); ?>