]> scripts.mit.edu Git - autoinstalls/wordpress.git/blob - wp-admin/options-misc.php
Wordpress 2.5.1
[autoinstalls/wordpress.git] / wp-admin / options-misc.php
1 <?php
2 require_once('admin.php');
3
4 $title = __('Miscellaneous Settings');
5 $parent_file = 'options-general.php';
6
7 include('admin-header.php');
8
9 ?>
10
11 <div class="wrap">
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">
17 <tr valign="top">
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" />
20 <br />
21 <?php _e('Default is <code>wp-content/uploads</code>'); ?>
22 </td>
23 </tr>
24
25 <tr valign="top">
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" />
28 </td>
29 </tr>
30
31 <tr>
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'); ?>
36 </label>
37 </th>
38 </tr>
39 </table>
40
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>
43
44 <table class="form-table">
45 <tr valign="top">
46 <th scope="row"><?php _e('Thumbnail size') ?></th>
47 <td>
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>
54 </td>
55 </tr>
56 <tr valign="top">
57 <th scope="row"><?php _e('Medium size') ?></th>
58 <td>
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" />
63 </td>
64 </tr>
65 </table>
66
67
68
69 <table class="form-table">
70
71 <tr>
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&#8217; Update Times') ?>
76 </label>
77 </th>
78 </tr>
79 <tr>
80
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') ?>
85 </label>
86 </th>
87 </tr>
88
89 </table>
90
91 <p class="submit">
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" />
95 </p>
96 </form>
97 </div>
98
99 <?php include('./admin-footer.php'); ?>