2 require_once('admin.php');
4 $title = __('Miscellaneous Settings');
5 $parent_file = 'options-general.php';
7 include('admin-header.php');
12 <h2><?php _e('Miscellaneous Settings') ?></h2>
13 <form method="post" action="options.php">
14 <?php wp_nonce_field('update-options') ?>
15 <h3><?php _e('Uploading'); ?></h3>
16 <table class="form-table">
18 <th scope="row"><?php _e('Store uploads in this folder'); ?></th>
19 <td><input name="upload_path" type="text" id="upload_path" class="code" value="<?php echo attribute_escape(str_replace(ABSPATH, '', get_option('upload_path'))); ?>" size="40" />
21 <?php _e('Default is <code>wp-content/uploads</code>'); ?>
26 <th scope="row"><?php _e('Full URL path to files (optional)'); ?></th>
27 <td><input name="upload_url_path" type="text" id="upload_url_path" class="code" value="<?php echo attribute_escape( get_option('upload_url_path')); ?>" size="40" />
32 <th scope="row" colspan="2" class="th-full">
33 <label for="uploads_use_yearmonth_folders">
34 <input name="uploads_use_yearmonth_folders" type="checkbox" id="uploads_use_yearmonth_folders" value="1" <?php checked('1', get_option('uploads_use_yearmonth_folders')); ?> />
35 <?php _e('Organize my uploads into month- and year-based folders'); ?>
41 <h3><?php _e('Image sizes') ?></h3>
42 <p><?php _e('The sizes listed below determine the maximum dimensions to use when inserting an image into the body of a post.'); ?></p>
44 <table class="form-table">
46 <th scope="row"><?php _e('Thumbnail size') ?></th>
48 <label for="thumbnail_size_w"><?php _e('Width'); ?></label>
49 <input name="thumbnail_size_w" type="text" id="thumbnail_size_w" value="<?php form_option('thumbnail_size_w'); ?>" size="6" />
50 <label for="thumbnail_size_h"><?php _e('Height'); ?></label>
51 <input name="thumbnail_size_h" type="text" id="thumbnail_size_h" value="<?php form_option('thumbnail_size_h'); ?>" size="6" /><br />
52 <input name="thumbnail_crop" type="checkbox" id="thumbnail_crop" value="1" <?php checked('1', get_option('thumbnail_crop')); ?>/>
53 <label for="thumbnail_crop"><?php _e('Crop thumbnail to exact dimensions (normally thumbnails are proportional)'); ?></label>
57 <th scope="row"><?php _e('Medium size') ?></th>
59 <label for="medium_size_w"><?php _e('Max Width'); ?></label>
60 <input name="medium_size_w" type="text" id="medium_size_w" value="<?php form_option('medium_size_w'); ?>" size="6" />
61 <label for="medium_size_h"><?php _e('Max Height'); ?></label>
62 <input name="medium_size_h" type="text" id="medium_size_h" value="<?php form_option('medium_size_h'); ?>" size="6" />
69 <table class="form-table">
72 <th scope="row" class="th-full">
73 <label for="use_linksupdate">
74 <input name="use_linksupdate" type="checkbox" id="use_linksupdate" value="1" <?php checked('1', get_option('use_linksupdate')); ?> />
75 <?php _e('Track Links’ Update Times') ?>
81 <th scope="row" class="th-full">
82 <label for="hack_file">
83 <input type="checkbox" id="hack_file" name="hack_file" value="1" <?php checked('1', get_option('hack_file')); ?> />
84 <?php _e('Use legacy <code>my-hacks.php</code> file support') ?>
92 <input type="hidden" name="action" value="update" />
93 <input type="hidden" name="page_options" value="hack_file,use_linksupdate,uploads_use_yearmonth_folders,upload_path,upload_url_path,thumbnail_size_w,thumbnail_size_h,thumbnail_crop,medium_size_w,medium_size_h" />
94 <input type="submit" name="Submit" value="<?php _e('Save Changes') ?>" class="button" />
99 <?php include('./admin-footer.php'); ?>