mp-wp_genesis 1 <?php
mp-wp_genesis 2 /**
mp-wp_genesis 3 * Media settings administration panel.
mp-wp_genesis 4 *
mp-wp_genesis 5 * @package WordPress
mp-wp_genesis 6 * @subpackage Administration
mp-wp_genesis 7 */
mp-wp_genesis 8
mp-wp_genesis 9 /** WordPress Administration Bootstrap */
mp-wp_genesis 10 require_once('admin.php');
mp-wp_genesis 11
mp-wp_genesis 12 $title = __('Media Settings');
mp-wp_genesis 13 $parent_file = 'options-general.php';
mp-wp_genesis 14
mp-wp_genesis 15 include('admin-header.php');
mp-wp_genesis 16
mp-wp_genesis 17 ?>
mp-wp_genesis 18
mp-wp_genesis 19 <div class="wrap">
mp-wp_genesis 20 <?php screen_icon(); ?>
mp-wp_genesis 21 <h2><?php echo wp_specialchars( $title ); ?></h2>
mp-wp_genesis 22
mp-wp_genesis 23 <form action="options.php" method="post">
mp-wp_genesis 24 <?php settings_fields('media'); ?>
mp-wp_genesis 25
mp-wp_genesis 26 <h3><?php _e('Image sizes') ?></h3>
mp-wp_genesis 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>
mp-wp_genesis 28
mp-wp_genesis 29 <table class="form-table">
mp-wp_genesis 30 <tr valign="top">
mp-wp_genesis 31 <th scope="row"><?php _e('Thumbnail size') ?></th>
mp-wp_genesis 32 <td>
mp-wp_genesis 33 <label for="thumbnail_size_w"><?php _e('Width'); ?></label>
mp-wp_genesis 34 <input name="thumbnail_size_w" type="text" id="thumbnail_size_w" value="<?php form_option('thumbnail_size_w'); ?>" class="small-text" />
mp-wp_genesis 35 <label for="thumbnail_size_h"><?php _e('Height'); ?></label>
mp-wp_genesis 36 <input name="thumbnail_size_h" type="text" id="thumbnail_size_h" value="<?php form_option('thumbnail_size_h'); ?>" class="small-text" /><br />
mp-wp_genesis 37 <input name="thumbnail_crop" type="checkbox" id="thumbnail_crop" value="1" <?php checked('1', get_option('thumbnail_crop')); ?>/>
mp-wp_genesis 38 <label for="thumbnail_crop"><?php _e('Crop thumbnail to exact dimensions (normally thumbnails are proportional)'); ?></label>
mp-wp_genesis 39 </td>
mp-wp_genesis 40 </tr>
mp-wp_genesis 41
mp-wp_genesis 42 <tr valign="top">
mp-wp_genesis 43 <th scope="row"><?php _e('Medium size') ?></th>
mp-wp_genesis 44 <td><fieldset><legend class="hidden"><?php _e('Medium size') ?></legend>
mp-wp_genesis 45 <label for="medium_size_w"><?php _e('Max Width'); ?></label>
mp-wp_genesis 46 <input name="medium_size_w" type="text" id="medium_size_w" value="<?php form_option('medium_size_w'); ?>" class="small-text" />
mp-wp_genesis 47 <label for="medium_size_h"><?php _e('Max Height'); ?></label>
mp-wp_genesis 48 <input name="medium_size_h" type="text" id="medium_size_h" value="<?php form_option('medium_size_h'); ?>" class="small-text" />
mp-wp_genesis 49 </fieldset></td>
mp-wp_genesis 50 </tr>
mp-wp_genesis 51
mp-wp_genesis 52 <tr valign="top">
mp-wp_genesis 53 <th scope="row"><?php _e('Large size') ?></th>
mp-wp_genesis 54 <td><fieldset><legend class="hidden"><?php _e('Large size') ?></legend>
mp-wp_genesis 55 <label for="large_size_w"><?php _e('Max Width'); ?></label>
mp-wp_genesis 56 <input name="large_size_w" type="text" id="large_size_w" value="<?php form_option('large_size_w'); ?>" class="small-text" />
mp-wp_genesis 57 <label for="large_size_h"><?php _e('Max Height'); ?></label>
mp-wp_genesis 58 <input name="large_size_h" type="text" id="large_size_h" value="<?php form_option('large_size_h'); ?>" class="small-text" />
mp-wp_genesis 59 </fieldset></td>
mp-wp_genesis 60 </tr>
mp-wp_genesis 61
mp-wp_genesis 62 <?php do_settings_fields('media', 'default'); ?>
mp-wp_genesis 63 </table>
mp-wp_genesis 64
mp-wp_genesis 65 <?php do_settings_sections('media'); ?>
mp-wp_genesis 66
mp-wp_genesis 67 <p class="submit">
mp-wp_genesis 68 <input type="submit" name="Submit" class="button-primary" value="<?php _e('Save Changes') ?>" />
mp-wp_genesis 69 </p>
mp-wp_genesis 70
mp-wp_genesis 71 </form>
mp-wp_genesis 72
mp-wp_genesis 73 </div>
mp-wp_genesis 74
mp-wp_genesis 75 <?php include('./admin-footer.php'); ?>