Changeset 1100
- Timestamp:
- 04/19/2004 08:09:27 AM (21 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 19 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-functions.php
r1061 r1100 1 1 <?php 2 3 function wp_admin_head() { 4 do_action('wp_head', ''); 5 } 2 6 3 7 function url_shorten ($url) { -
trunk/wp-admin/admin-header.php
r1089 r1100 134 134 //]]> 135 135 </script> 136 137 <?php wp_admin_head(); ?> 136 138 </head> 137 139 <body> -
trunk/wp-admin/edit-comments.php
r888 r1100 114 114 <th scope="col">IP</th> 115 115 <th scope="col">Comment Excerpt</th> 116 <th scope="col">View</th> 117 <th scope="col">Edit</th> 118 <th scope="col">Delete</th> 116 <th scope="col" colspan="3">Actions</th> 119 117 </tr>'; 120 118 foreach ($comments as $comment) { … … 124 122 <tr style='background-color: <?php echo $bgcolor; ?>'> 125 123 <td><?php if (($user_level > $authordata->user_level) or ($user_login == $authordata->user_login)) { ?><input type="checkbox" name="delete_comments[]" value="<?php echo $comment->comment_ID; ?>" /><?php } ?></td> 126 <t h scope="row"><?php comment_author_link() ?></th>124 <td><?php comment_author_link() ?></td> 127 125 <td><?php comment_author_email_link() ?></td> 128 126 <td><a href="http://ws.arin.net/cgi-bin/whois.pl?queryinput=<?php comment_author_IP() ?>"><?php comment_author_IP() ?></a></td> -
trunk/wp-admin/edit-form-comment.php
r956 r1100 3 3 $allowed_users = explode(" ", trim(get_settings('fileupload_allowedusers'))); 4 4 5 $submitbutton_text = 'Edit this!';5 $submitbutton_text = 'Edit Comment »'; 6 6 $toprow_title = 'Editing Comment # '.$commentdata['comment_ID']; 7 7 $form_action = 'editedcomment'; … … 71 71 ?> 72 72 73 <p ><?php echo $saveasdraft; ?><input type="submit" name="submit" value="<?php echo $submitbutton_text ?>" style="font-weight: bold;" tabindex="6" />73 <p class="submit"><input type="submit" name="submit" value="<?php echo $submitbutton_text ?>" style="font-weight: bold;" tabindex="6" /> 74 74 <input name="referredby" type="hidden" id="referredby" value="<?php echo $HTTP_SERVER_VARS['HTTP_REFERER']; ?>" /> 75 75 </p> … … 87 87 88 88 </form> 89 <p><a href="post.php?action=deletecomment&noredir=true&comment=<?php echo $commentdata['comment_ID']; ?>&p=<?php echo $commentdata['comment_post_ID']; ?>">Delete this comment</a>.</p>89 <p><a class="delete" href="post.php?action=deletecomment&noredir=true&comment=<?php echo $commentdata['comment_ID']; ?>&p=<?php echo $commentdata['comment_post_ID']; ?>">Delete comment</a></p> 90 90 </div> -
trunk/wp-admin/install.php
r1076 r1100 441 441 "INSERT INTO $tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(32,'fileupload_realpath', 3, '/home/your/site/wordpress/images', 'enter the real path of the directory where you\'ll upload the pictures \nif you\'re unsure about what your real path is, please ask your host\'s support staff \nnote that the directory must be writable by the webserver (chmod 766) \nnote for windows-servers users: use forwardslashes instead of backslashes', 8, 40)", 442 442 "INSERT INTO $tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(33,'fileupload_url', 3, 'http://example.com/images', 'enter the URL of that directory (it\'s used to generate the links to the uploded files)', 8, 40)", 443 "INSERT INTO $tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(34,'fileupload_allowedtypes', 3, 'jpg gif png', 'accepted file types, separated by spaces. example: \'jpg gif png\'', 8, 20)",443 "INSERT INTO $tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(34,'fileupload_allowedtypes', 3, 'jpg jpeg gif png', 'accepted file types, separated by spaces. example: \'jpg gif png\'', 8, 20)", 444 444 "INSERT INTO $tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(35,'fileupload_maxk', 1, '96', 'by default, most servers limit the size of uploads to 2048 KB, if you want to set it to a lower value, here it is (you cannot set a higher value than your server limit)', 8, 20)", 445 445 "INSERT INTO $tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(36,'fileupload_minlevel', 1, '4', 'you may not want all users to upload pictures/files, so you can set a minimum level for this', 8, 20)", -
trunk/wp-admin/link-add.php
r1076 r1100 3 3 $title = 'Add Link'; 4 4 $this_file = 'link-manager.php'; 5 $parent_file = 'link-manager.php'; 5 6 6 7 function category_dropdown($fieldname, $selected = 0) { … … 84 85 </tr> 85 86 <tr> 86 <th scope="row"> Description:</th>87 <th scope="row">Short description:</th> 87 88 <td><input type="text" name="description" value="" style="width: 95%" /></td> 88 89 </tr> … … 94 95 </fieldset> 95 96 <p class="submit"> 96 <input type="submit" name="submit" value="Add Link »" >97 <input type="submit" name="submit" value="Add Link »" /> 97 98 </p> 98 99 <fieldset class="options"> … … 189 190 </fieldset> 190 191 <p class="submit"> 191 <input type="submit" name="submit" value="Add Link »" >192 <input type="submit" name="submit" value="Add Link »" /> 192 193 </p> 193 194 <fieldset class="options"> … … 195 196 <table class="editform" width="100%" cellspacing="2" cellpadding="5"> 196 197 <tr> 197 <th width="33%" scope="row">Image :</th>198 <td width="67%"><input type="text" name="image" size="50" value="" ></td>198 <th width="33%" scope="row">Image URI:</th> 199 <td width="67%"><input type="text" name="image" size="50" value="" style="width: 95%" /></td> 199 200 </tr> 200 201 <tr> 201 202 <th scope="row">RSS URI: </th> 202 <td><input name="rss_uri" type="text" id="rss_uri" value="" size="50"></td> 203 </tr> 204 <tr> 205 <th scope="row">Description</th> 206 <td> </td> 203 <td><input name="rss_uri" type="text" id="rss_uri" value="" size="50" style="width: 95%" /></td> 207 204 </tr> 208 205 <tr> 209 206 <th scope="row">Notes:</th> 210 <td><textarea name="notes" cols="50" rows="10" ></textarea></td>207 <td><textarea name="notes" cols="50" rows="10" style="width: 95%"></textarea></td> 211 208 </tr> 212 209 <tr> … … 224 221 <th scope="row">Target</th> 225 222 <td><label> 226 <input type="radio" name="target" value="_blank" >223 <input type="radio" name="target" value="_blank" /> 227 224 <code>_blank</code></label> 228 229 <label> 230 <br> 231 <input type="radio" name="target" value="_top"> 225 <br /> 226 <label><input type="radio" name="target" value="_top" /> 232 227 <code>_top</code></label> 233 234 <label> 235 <br> 236 <input type="radio" name="target" value="" checked="checked"> 228 <br /> 229 <label><input type="radio" name="target" value="" checked="checked" /> 237 230 none</label> 238 231 (Note that the <code>target</code> attribute is illegal in XHTML 1.1 and 1.0 Strict.)</td> … … 241 234 <th scope="row">Visible:</th> 242 235 <td><label> 243 <input type="radio" name="visible" checked="checked" value="Y" >244 Yes</label>< label><br>245 < input type="radio" name="visible" value="N"> <input type="hidden" name="action" value="Add" />236 <input type="radio" name="visible" checked="checked" value="Y" /> 237 Yes</label><br /> 238 <label><input type="radio" name="visible" value="N"> <input type="hidden" name="action" value="Add" /> 246 239 No</label></td> 247 240 </tr> … … 250 243 251 244 <p class="submit"> 252 <input type="submit" name="submit" value="Add Link »" >245 <input type="submit" name="submit" value="Add Link »" /> 253 246 </p> 254 247 </form> -
trunk/wp-admin/link-categories.php
r957 r1100 11 11 $wpvar = $wpvarstoreset[$i]; 12 12 if (!isset($$wpvar)) { 13 if (empty($ HTTP_POST_VARS["$wpvar"])) {14 if (empty($ HTTP_GET_VARS["$wpvar"])) {13 if (empty($_POST["$wpvar"])) { 14 if (empty($_GET["$wpvar"])) { 15 15 $$wpvar = ''; 16 16 } else { 17 $$wpvar = $ HTTP_GET_VARS["$wpvar"];17 $$wpvar = $_GET["$wpvar"]; 18 18 } 19 19 } else { 20 $$wpvar = $ HTTP_POST_VARS["$wpvar"];20 $$wpvar = $_POST["$wpvar"]; 21 21 } 22 22 } … … 32 32 die ("Cheatin' uh ?"); 33 33 34 $cat_name = addslashes($ HTTP_POST_VARS['cat_name']);35 $auto_toggle = $ HTTP_POST_VARS['auto_toggle'];34 $cat_name = addslashes($_POST['cat_name']); 35 $auto_toggle = $_POST['auto_toggle']; 36 36 if ($auto_toggle != 'Y') { 37 37 $auto_toggle = 'N'; 38 38 } 39 39 40 $show_images = $ HTTP_POST_VARS['show_images'];40 $show_images = $_POST['show_images']; 41 41 if ($show_images != 'Y') { 42 42 $show_images = 'N'; 43 43 } 44 44 45 $show_description = $ HTTP_POST_VARS['show_description'];45 $show_description = $_POST['show_description']; 46 46 if ($show_description != 'Y') { 47 47 $show_description = 'N'; 48 48 } 49 49 50 $show_rating = $ HTTP_POST_VARS['show_rating'];50 $show_rating = $_POST['show_rating']; 51 51 if ($show_rating != 'Y') { 52 52 $show_rating = 'N'; 53 53 } 54 54 55 $show_updated = $ HTTP_POST_VARS['show_updated'];55 $show_updated = $_POST['show_updated']; 56 56 if ($show_updated != 'Y') { 57 57 $show_updated = 'N'; 58 58 } 59 59 60 $sort_order = $ HTTP_POST_VARS['sort_order'];61 62 $sort_desc = $ HTTP_POST_VARS['sort_desc'];60 $sort_order = $_POST['sort_order']; 61 62 $sort_desc = $_POST['sort_desc']; 63 63 if ($sort_desc != 'Y') { 64 64 $sort_desc = 'N'; 65 65 } 66 $text_before_link = addslashes($ HTTP_POST_VARS['text_before_link']);67 $text_after_link = addslashes($ HTTP_POST_VARS['text_after_link']);68 $text_after_all = addslashes($ HTTP_POST_VARS['text_after_all']);69 70 $list_limit = $ HTTP_POST_VARS['list_limit'];66 $text_before_link = addslashes($_POST['text_before_link']); 67 $text_after_link = addslashes($_POST['text_after_link']); 68 $text_after_all = addslashes($_POST['text_after_all']); 69 70 $list_limit = $_POST['list_limit']; 71 71 if ($list_limit == '') 72 72 $list_limit = -1; … … 86 86 include_once('admin-header.php'); 87 87 88 $cat_id = $ HTTP_GET_VARS['cat_id'];88 $cat_id = $_GET['cat_id']; 89 89 $cat_name=get_linkcatname($cat_id); 90 90 $cat_name=addslashes($cat_name); … … 105 105 { 106 106 include_once ('admin-header.php'); 107 $cat_id = $ HTTP_GET_VARS['cat_id'];107 $cat_id = $_GET['cat_id']; 108 108 $row = $wpdb->get_row("SELECT cat_id, cat_name, auto_toggle, show_images, show_description, " 109 109 . " show_rating, show_updated, sort_order, sort_desc, text_before_link, text_after_link, " … … 123 123 124 124 <div class="wrap"> 125 <h 3>Edit Link Category “<?php echo $row->cat_name?>”</h3>126 <p> 125 <h2>Edit “<?php echo $row->cat_name?>” Category </h2> 126 127 127 <form name="editcat" method="post"> 128 128 <input type="hidden" name="action" value="editedcat" /> 129 129 <input type="hidden" name="cat_id" value="<?php echo $row->cat_id ?>" /> 130 <table border="0"> 131 <tr> 132 <td align="right">Name:</td> 133 <td><input type="text" name="cat_name" size="25" value="<?php echo stripslashes($row->cat_name)?>" /> 134 <label for="auto_toggle"> 135 <input type="checkbox" name="auto_toggle" id="auto_toggle" <?php echo ($row->auto_toggle == 'Y') ? 'checked' : '';?> value="Y" /> 136 auto-toggle?</label></td> 137 </tr> 138 <tr> 139 <td align="right">Show:</td> 130 <fieldset class="options"> 131 <legend>Category Options</legend> 132 <table class="editform" width="100%" cellspacing="2" cellpadding="5"> 133 <tr> 134 <th width="33%" scope="row">Name:</th> 135 <td width="67%"><input name="cat_name" type="text" value="<?php echo stripslashes($row->cat_name)?>" size="30" /></td> 136 </tr> 137 <tr> 138 <th scope="row">Show:</th> 140 139 <td> 141 <label for="show_images"> 142 <input type="checkbox" name="show_images" id="show_images" <?php echo ($row->show_images == 'Y') ? 'checked' : '';?> value="Y" /> 143 images</label> 144 <label for="show_description"> 145 <input type="checkbox" name="show_description" id="show_description" <?php echo ($row->show_description == 'Y') ? 'checked' : '';?> value="Y" /> 146 description</label> 147 <label for="show_rating"> 148 <input type="checkbox" name="show_rating" id="show_rating" <?php echo ($row->show_rating == 'Y') ? 'checked' : '';?> value="Y" /> 149 rating</label> 150 <label for="show_updated"> 151 <input type="checkbox" name="show_updated" id="show_updated" <?php echo ($row->show_updated == 'Y') ? 'checked' : '';?> value="Y" /> 152 updated</label> 153 </td> 154 </tr> 155 <tr> 156 <td align="right">Sort by:</td> 157 <td> 158 <select name="sort_order" size="1"> 140 <label> 141 <input type="checkbox" name="show_images" value="Y" <?php checked('Y', $row->show_images); ?> /> 142 Image</label> <br /> 143 <label> 144 <input type="checkbox" name="show_description" value="Y" <?php checked('Y', $row->show_description); ?> /> 145 Description</label> 146 (shown in <code>title</code> regardless)<br /> 147 <label> 148 <input type="checkbox" name="show_rating" value="Y" <?php checked('Y', $row->show_rating); ?> /> 149 Rating</label> <br /> 150 <label> 151 <input type="checkbox" name="show_updated" value="Y" <?php checked('Y', $row->show_updated); ?> /> 152 Updated</label> 153 (shown in <code>title</code> regardless)</td> 154 </tr> 155 <tr> 156 <th scope="row">Sort order:</th> 157 <td> 158 <select name="sort_order" size="1"> 159 159 <option value="name" <?php echo ($row->sort_order == 'name') ? 'selected' : ''?>>Name</option> 160 160 <option value="id" <?php echo ($row->sort_order == 'id') ? 'selected' : ''?>>Id</option> … … 164 164 <option value="rand" <?php echo ($row->sort_order == 'rand') ? 'selected' : ''?>>Random</option> 165 165 <option value="length" <?php echo ($row->sort_order == 'length') ? 'selected' : ''?>>Name Length</option> 166 </select> 167 <input type="checkbox" name="sort_desc" <?php echo ($row->sort_desc == 'Y') ? 'checked' : '';?> value="Y" /> Descending?<br /> 168 </td> 169 </tr> 170 <tr> 171 <td align="center">Text/HTML</td> 172 <td> </td> 173 </tr> 174 <tr> 175 <td align="right">Before:</td> 176 <td><input type="text" name="text_before_link" size="45" value="<?php echo stripslashes($row->text_before_link)?>" /></td> 177 </tr> 178 <tr> 179 <td align="right">Between:</td> 180 <td><input type="text" name="text_after_link" size="45" value="<?php echo stripslashes($row->text_after_link)?>" /></td> 181 </tr> 182 <tr> 183 <td align="right">After:</td> 184 <td><input type="text" name="text_after_all" size="45" value="<?php echo stripslashes($row->text_after_all)?>" /></td> 185 </tr> 186 <tr> 187 <td align="right">Limit:</td> 188 <td><input type="text" name="list_limit" size="5" value="<?php echo $row->list_limit?>"/> (How many links are shown. Empty for unlimited.)</td> 189 </tr> 190 <tr> 191 <td align="center" colspan="2"> 192 <input type="submit" name="submit" value="Save" class="search" /> 193 <input type="submit" name="submit" value="Cancel" class="search"> 194 </td> 195 </tr> 196 </table> 197 </form> 198 </p> 166 </select> 167 <label> 168 <input type="checkbox" name="sort_desc" value="Y" <?php checked('Y', $row->sort_desc); ?> /> 169 Descending</label> 170 </td> 171 </tr> 172 <tr> 173 <th scope="row">Limit:</th> 174 <td> 175 <input type="text" name="list_limit" size="5" value="<?php echo $row->list_limit ?>" /> 176 (Leave empty for no limit to number of links shown) 177 </td> 178 </tr> 179 <tr> 180 <th scope="row">Toggle:</th> 181 <td><label> 182 <input type="checkbox" name="auto_toggle" value="Y" <?php checked('Y', $row->auto_toggle); ?> /> 183 When new link is added toggle all others to be invisible</label></td> 184 </tr> 185 186 </table> 187 </fieldset> 188 <fieldset class="options"> 189 <legend>Formatting</legend> 190 <table class="editform" width="100%" cellspacing="2" cellpadding="5"> 191 <tr> 192 <th width="33%" scope="row">Before Link:</th> 193 <td width="67%"><input type="text" name="text_before_link" size="45" value="<?php echo stripslashes($row->text_before_link)?>" /></td> 194 </tr> 195 <tr> 196 <th scope="row">Between Link and Description:</th> 197 <td><input type="text" name="text_after_link" size="45" value="<?php echo stripslashes($row->text_after_link)?>" /></td> 198 </tr> 199 <tr> 200 <th scope="row">After Link:</th> 201 <td><input type="text" name="text_after_all" size="45" value="<?php echo stripslashes($row->text_after_all)?>"/></td> 202 </tr> 203 </table> 204 </fieldset> 205 <p class="submit"><input type="submit" name="submit" value="Save Category Settings »" /></p> 206 </form> 207 199 208 </div> 200 209 <?php … … 210 219 die ("Cheatin' uh ?"); 211 220 212 $submit=$ HTTP_POST_VARS["submit"];213 if (isset($submit) && ($submit == "Save")) {214 215 $cat_id=$ HTTP_POST_VARS["cat_id"];216 217 $cat_name=addslashes( $HTTP_POST_VARS["cat_name"]);218 $auto_toggle = $ HTTP_POST_VARS["auto_toggle"];221 $submit=$_POST["submit"]; 222 if (isset($submit)) { 223 224 $cat_id=$_POST["cat_id"]; 225 226 $cat_name=addslashes(stripslashes($_POST["cat_name"])); 227 $auto_toggle = $_POST["auto_toggle"]; 219 228 if ($auto_toggle != 'Y') { 220 229 $auto_toggle = 'N'; 221 230 } 222 231 223 $show_images = $ HTTP_POST_VARS["show_images"];232 $show_images = $_POST["show_images"]; 224 233 if ($show_images != 'Y') { 225 234 $show_images = 'N'; 226 235 } 227 236 228 $show_description = $ HTTP_POST_VARS["show_description"];237 $show_description = $_POST["show_description"]; 229 238 if ($show_description != 'Y') { 230 239 $show_description = 'N'; 231 240 } 232 241 233 $show_rating = $ HTTP_POST_VARS["show_rating"];242 $show_rating = $_POST["show_rating"]; 234 243 if ($show_rating != 'Y') { 235 244 $show_rating = 'N'; 236 245 } 237 246 238 $show_updated = $ HTTP_POST_VARS["show_updated"];247 $show_updated = $_POST["show_updated"]; 239 248 if ($show_updated != 'Y') { 240 249 $show_updated = 'N'; 241 250 } 242 251 243 $sort_order = $ HTTP_POST_VARS["sort_order"];244 245 $sort_desc = $ HTTP_POST_VARS["sort_desc"];252 $sort_order = $_POST["sort_order"]; 253 254 $sort_desc = $_POST["sort_desc"]; 246 255 if ($sort_desc != 'Y') { 247 256 $sort_desc = 'N'; 248 257 } 249 $text_before_link = addslashes($ HTTP_POST_VARS["text_before_link"]);250 $text_after_link = addslashes($ HTTP_POST_VARS["text_after_link"]);251 $text_after_all = addslashes($ HTTP_POST_VARS["text_after_all"]);252 253 $list_limit = $ HTTP_POST_VARS["list_limit"];258 $text_before_link = addslashes($_POST["text_before_link"]); 259 $text_after_link = addslashes($_POST["text_after_link"]); 260 $text_after_all = addslashes($_POST["text_after_all"]); 261 262 $list_limit = $_POST["list_limit"]; 254 263 if ($list_limit == '') 255 264 $list_limit = -1; … … 291 300 </ul> 292 301 <div class="wrap"> 293 294 <form name="cats" method="post" action="link-categories.php"> 295 <strong>Edit</strong> a link category:<?php echo gethelp_link($this_file,'edit_link_category');?><br /> 302 <h2>Link Categories:<?php echo gethelp_link($this_file,'edit_link_category');?></h2> 296 303 <table width="100%" cellpadding="5" cellspacing="0" border="0"> 297 304 <tr> 298 305 <th rowspan="2" valign="bottom">Name</th> 299 <th rowspan="2" valign="bottom">I d</th>300 <th rowspan="2" valign="bottom"> Auto<br />Toggle?</th>306 <th rowspan="2" valign="bottom">ID</th> 307 <th rowspan="2" valign="bottom">Toggle?</th> 301 308 <th colspan="4" valign="bottom">Show</th> 302 309 <th rowspan="2" valign="bottom">Sort Order</th> 303 310 <th rowspan="2" valign="bottom">Desc?</th> 304 <th colspan="3" valign="bottom"> Text/HTML</th>311 <th colspan="3" valign="bottom">Formatting</th> 305 312 <th rowspan="2" valign="bottom">Limit</th> 306 313 <th rowspan="2" colspan="2"> </th> 307 314 </tr> 308 315 <tr> 309 <th valign="top"> images?</th>310 <th valign="top"> desc?</th>311 <th valign="top"> rating?</th>312 <th valign="top"> updated?</th>313 <th valign="top"> before</th>314 <th valign="top"> between</th>315 <th valign="top"> after</th>316 <th valign="top">Images</th> 317 <th valign="top">Desc.</th> 318 <th valign="top">Rating</th> 319 <th valign="top">Updated</th> 320 <th valign="top">Before</th> 321 <th valign="top">Between</th> 322 <th valign="top">After</th> 316 323 </tr> 317 <input type="hidden" name="cat_id" value="" />318 <input type="hidden" name="action" value="" />319 324 <?php 320 325 $results = $wpdb->get_results("SELECT cat_id, cat_name, auto_toggle, show_images, show_description, " 321 326 . " show_rating, show_updated, sort_order, sort_desc, text_before_link, text_after_link, " 322 327 . " text_after_all, list_limit FROM $tablelinkcategories ORDER BY cat_id"); 328 $i = 1; 323 329 foreach ($results as $row) { 324 330 if ($row->list_limit == -1) { … … 349 355 ?> 350 356 </table> 351 </form>357 <p>These are the defaults for when you call a link category with no additional arguments. All of these settings may be overwritten.</p> 352 358 353 359 </div> … … 356 362 <form name="addcat" method="post"> 357 363 <input type="hidden" name="action" value="addcat" /> 358 <h3>Add a Link Category:<?php echo gethelp_link($this_file,'add_link_category');?></h3> 359 <table width="100%" cellpadding="5" cellspacing="0" border="0"> 360 <tr> 361 <td align="right">Name:</td> 362 <td><input type="text" name="cat_name" size="25" /> 363 <input type="checkbox" name="auto_toggle" value="Y" /> auto-toggle?</td> 364 </tr> 365 <tr> 366 <td align="right">Show:</td> 364 <h2>Add a Link Category:<?php echo gethelp_link($this_file,'add_link_category');?></h2> 365 <fieldset class="options"> 366 <legend>Category Options</legend> 367 <table class="editform" width="100%" cellspacing="2" cellpadding="5"> 368 <tr> 369 <th width="33%" scope="row">Name:</th> 370 <td width="67%"><input type="text" name="cat_name" size="30" /></td> 371 </tr> 372 <tr> 373 <th scope="row">Show:</th> 367 374 <td> 368 <input type="checkbox" name="show_images" value="Y" /> images 369 <input type="checkbox" name="show_description" value="Y" /> description 370 <input type="checkbox" name="show_rating" value="Y" /> rating 371 <input type="checkbox" name="show_updated" value="Y" /> updated</td> 372 </tr> 373 <tr> 374 <td align="right">Sort order:</td> 375 <td> 376 <select name="sort_order" size="1"> 377 <option value="name">Name</option> 378 <option value="id">Id</option> 379 <option value="url">URL</option> 380 <option value="rating">Rating</option> 381 <option value="updated">Updated</option> 382 <option value="rand">Random</option> 383 </select> 384 <input type="checkbox" name="sort_desc" value="N" /> Descending?<br /> 385 </td> 386 </tr> 387 <tr> 388 <td align="center">Text/HTML</td> 389 <td> </td> 390 </tr> 391 <tr> 392 <td align="right">before:</td> 393 <td><input type="text" name="text_before_link" size="45" value="<li>"/></td> 394 </tr> 395 <tr> 396 <td align="right">between:</td> 397 <td><input type="text" name="text_after_link" size="45" value="<br />" /></td> 398 </tr> 399 <tr> 400 <td align="right">after:</td> 401 <td><input type="text" name="text_after_all" size="45" value="</li>"/></td> 402 </tr> 403 <tr> 404 <td align="right">limit:</td> 405 <td><input type="text" name="list_limit" size="5" value=""/> (leave empty for no limit)</td> 406 </tr> 407 <tr> 408 <td align="center" colspan="2"><input type="submit" name="submit" value="Add Category!" class="search" /></td> 409 </tr> 410 </table> 375 <label> 376 <input type="checkbox" name="show_images" value="Y" /> 377 Image</label> <br /> 378 <label> 379 <input type="checkbox" name="show_description" value="Y" /> 380 Description</label> 381 (shown in <code>title</code> regardless)<br /> 382 <label> 383 <input type="checkbox" name="show_rating" value="Y" /> 384 Rating</label> <br /> 385 <label> 386 <input type="checkbox" name="show_updated" value="Y" /> 387 Updated</label> 388 (shown in <code>title</code> regardless)</td> 389 </tr> 390 <tr> 391 <th scope="row">Sort order:</th> 392 <td> 393 <select name="sort_order" size="1"> 394 <option value="name">Name</option> 395 <option value="id">Id</option> 396 <option value="url">URL</option> 397 <option value="rating">Rating</option> 398 <option value="updated">Updated</option> 399 <option value="rand">Random</option> 400 </select> 401 <label> 402 <input type="checkbox" name="sort_desc" value="Y" /> 403 Descending</label> 404 </td> 405 </tr> 406 <tr> 407 <th scope="row">Limit:</th> 408 <td> 409 <input type="text" name="list_limit" size="5" value="" /> (Leave empty for no limit to number of links shown) 410 </td> 411 </tr> 412 <tr> 413 <th scope="row">Toggle:</th> 414 <td><label> 415 <input type="checkbox" name="auto_toggle" value="Y" /> 416 When new link is added toggle all others to be invisible</label></td> 417 </tr> 418 419 </table> 420 </fieldset> 421 <fieldset class="options"> 422 <legend>Formatting</legend> 423 <table class="editform" width="100%" cellspacing="2" cellpadding="5"> 424 <tr> 425 <th width="33%" scope="row">Before Link:</th> 426 <td width="67%"><input type="text" name="text_before_link" size="45" value="<li>" /></td> 427 </tr> 428 <tr> 429 <th scope="row">Between Link and Description:</th> 430 <td><input type="text" name="text_after_link" size="45" value="<br />" /></td> 431 </tr> 432 <tr> 433 <th scope="row">After Link:</th> 434 <td><input type="text" name="text_after_all" size="45" value="</li>"/></td> 435 </tr> 436 </table> 437 </fieldset> 438 <p class="submit"><input type="submit" name="submit" value="Add Category »" /></p> 411 439 </form> 412 440 </div> -
trunk/wp-admin/link-manager.php
r1076 r1100 324 324 <div class="wrap"> 325 325 <form action="" method="post" name="editlink" id="editlink"> 326 <h3>Edit a link:</h3> 327 <table width="100%" border="0" cellspacing="5" cellpadding="3"> 328 <tr> 329 <th scope="row">URI:</th> 330 <td><input type="text" name="linkurl" size="80" value="<?php echo $link_url; ?>" /></td> 331 </tr> 332 <tr> 333 <th scope="row">Link Name: </th> 334 <td><input type="text" name="name" size="80" value="<?php echo $link_name; ?>" /></td> 335 </tr> 336 <tr> 337 <th scope="row">RSS URI: </th> 338 <td><input name="rss_uri" type="text" id="rss_uri" value="<?php echo $link_rss_uri; ?>" size="80"></td> 339 </tr> 340 <tr> 341 <th scope="row">Image:</th> 342 <td><input type="text" name="image" size="80" value="<?php echo $link_image; ?>" /></td> 343 </tr> 344 <tr> 345 <th scope="row">Description:</th> 346 <td><input type="text" name="description" size="80" value="<?php echo $link_description; ?>" /></td> 347 </tr> 348 <tr> 349 <th scope="row">rel:</th> 350 <td><input type="text" name="rel" id="rel" size="80" value="<?php echo $link_rel; ?>" /></td> 351 </tr> 352 <tr> 353 <th scope="row"><a href="http://gmpg.org/xfn/">XFN</a>:</th> 354 <td><table cellpadding="3" cellspacing="5"> 326 <h2>Edit a link:</h2> 327 <fieldset class="options"> 328 <legend>Basics</legend> 329 <table class="editform" width="100%" cellspacing="2" cellpadding="5"> 330 <tr> 331 <th width="33%" scope="row">URI:</th> 332 <td width="67%"><input type="text" name="linkurl" value="<?php echo $link_url; ?>" style="width: 95%; /"></td> 333 </tr> 334 <tr> 335 <th scope="row">Link Name:</th> 336 <td><input type="text" name="name" value="<?php echo $link_name; ?>" style="width: 95%" /></td> 337 </tr> 338 <tr> 339 <th scope="row">Short description:</th> 340 <td><input type="text" name="description" value="<?php echo $link_description; ?>" style="width: 95%" /></td> 341 </tr> 342 <tr> 343 <th scope="row">Category:</th> 344 <td><?php category_dropdown('category'); ?></td> 345 </tr> 346 </table> 347 </fieldset> 348 <p class="submit"> 349 <input type="submit" name="submit" value="Save Changes »" /> 350 </p> 351 <fieldset class="options"> 352 <legend>Link Relationship (XFN)</legend> 353 <table class="editform" width="100%" cellspacing="2" cellpadding="5"> 354 <tr> 355 <th width="33%" scope="row">rel:</th> 356 <td width="67%"><input type="text" name="rel" id="rel" size="50" value="<?php echo $link_rel; ?>"></td> 357 </tr> 358 <tr> 359 <th scope="row"><a href="http://gmpg.org/xfn/">XFN</a> Creator:</th> 360 <td><table cellpadding="3" cellspacing="5"> 355 361 <tr> 356 362 <th scope="row"> friendship </th> … … 436 442 </tr> 437 443 </table></td> 438 </tr> 439 <tr> 440 <th scope="row">Notes:</th> 441 <td><textarea name="notes" cols="80" rows="10"><?php echo $link_notes; ?></textarea></td> 442 </tr> 443 <tr> 444 <th scope="row">Rating:</th> 445 <td><select name="rating" size="1"> 446 <?php 444 </tr> 445 </table> 446 </fieldset> 447 <p class="submit"> 448 <input type="submit" name="submit" value="Save Changes »" /> 449 </p> 450 <fieldset class="options"> 451 <legend>Advanced</legend> 452 <table class="editform" width="100%" cellspacing="2" cellpadding="5"> 453 <tr> 454 <th width="33%" scope="row">Image URI:</th> 455 <td width="67%"><input type="text" name="image" size="50" value="<?php echo $link_image; ?>" style="width: 95%" /></td> 456 </tr> 457 <tr> 458 <th scope="row">RSS URI: </th> 459 <td><input name="rss_uri" type="text" id="rss_uri" value="<?php echo $link_rss_uri; ?>" size="50" style="width: 95%" /></td> 460 </tr> 461 <tr> 462 <th scope="row">Notes:</th> 463 <td><textarea name="notes" cols="50" rows="10" style="width: 95%"><?php echo $link_notes; ?></textarea></td> 464 </tr> 465 <tr> 466 <th scope="row">Rating:</th> 467 <td><select name="rating" size="1"> 468 <?php 447 469 for ($r = 0; $r < 10; $r++) { 448 470 echo(' <option value="'.$r.'" '); … … 452 474 } 453 475 ?> 454 </select> (Leave at 0 for no rating.) </td> 455 </tr> 456 <tr> 457 <th scope="row">Target:</th> 458 <td><label> 476 </select> 477 (Leave at 0 for no rating.) </td> 478 </tr> 479 <tr> 480 <th scope="row">Target</th> 481 <td><label> 459 482 <input type="radio" name="target" value="_blank" <?php echo(($link_target == '_blank') ? 'checked="checked"' : ''); ?> /> 460 <code>_blank</code></label> 461 <label>483 <code>_blank</code></label><br /> 484 <label> 462 485 <input type="radio" name="target" value="_top" <?php echo(($link_target == '_top') ? 'checked="checked"' : ''); ?> /> 463 <code>_top</code></label> 464 486 <code>_top</code></label><br /> 465 487 <label> 466 488 <input type="radio" name="target" value="" <?php echo(($link_target == '') ? 'checked="checked"' : ''); ?> /> 467 none (Note that the <code>target</code> attribute is illegal in XHTML 1.1 and 1.0 Strict.)</label></td> 468 </tr> 469 <tr> 470 <th scope="row">Visible:</th> 471 <td><label> 472 <input type="radio" name="visible" <?php if ($link_visible == 'Y') echo "checked"; ?> value="Y" /> 473 Yes</label> 474 475 <label> 476 <input type="radio" name="visible" <?php if ($link_visible == 'N') echo "checked"; ?> value="N" /> 489 none</label><br /> 490 (Note that the <code>target</code> attribute is illegal in XHTML 1.1 and 1.0 Strict.)</td> 491 </tr> 492 <tr> 493 <th scope="row">Visible:</th> 494 <td><label> 495 <input type="radio" name="visible" <?php if ($link_visible == 'Y') echo "checked='checked'"; ?> value="Y" /> 496 Yes</label><br /><label> 497 <input type="radio" name="visible" <?php if ($link_visible == 'N') echo "checked='checked'"; ?> value="N" /> 477 498 No</label></td> 478 </tr> 479 <tr> 480 <th scope="row">Category:</th> 481 <td><?php category_dropdown('category', $link_category); ?></td> 482 </tr> 483 <tr> 484 <td colspan="2" align="center"><input type="submit" name="submit" value="Save Changes" class="search" /> 485 486 <input type="submit" name="submit" value="Cancel" class="search" /> 499 </tr> 500 </table> 501 </fieldset> 502 <p class="submit"><input type="submit" name="submit" value="Save Changes »" /> 487 503 <input type="hidden" name="action" value="editlink" /> 488 504 <input type="hidden" name="link_id" value="<?php echo $link_id; ?>" /> 489 505 <input type="hidden" name="order_by" value="<?php echo $order_by ?>" /> 490 <input type="hidden" name="cat_id" value="<?php echo $cat_id ?>" /></td> 491 </tr> 492 </table> 506 <input type="hidden" name="cat_id" value="<?php echo $cat_id ?>" /></p> 493 507 </form> 494 508 </div> -
trunk/wp-admin/menu.php
r956 r1100 22 22 23 23 ?> 24 <li><a href="<?php echo get_settings('siteurl') . '/' . get_settings('blogfilename'); ?>" title="View your site">View site </a></li>24 <li><a href="<?php echo get_settings('siteurl') . '/' . get_settings('blogfilename'); ?>" title="View your site">View site »</a></li> 25 25 <li class="last"><a href="<?php echo get_settings('siteurl') 26 ?>/wp-login.php?action=logout" title="Log out of this account">Logout (<?php echo stripslashes($user_nickname) ?>)</a></li>26 ?>/wp-login.php?action=logout" title="Log out of this account">Logout (<?php echo stripslashes($user_nickname) ?>)</a></li> 27 27 </ul> -
trunk/wp-admin/options-discussion.php
r1076 r1100 1 1 <?php 2 2 $title = 'Discussion Options'; 3 $parent_file = 'options-general.php'; 3 4 4 5 function add_magic_quotes($array) { -
trunk/wp-admin/options-head.php
r1074 r1100 30 30 31 31 $sublines = split("\n", $submenu); 32 $_SERVER['REQUEST_URI'] = str_replace('?updated=true', '', $_SERVER['REQUEST_URI']); 32 33 foreach ($sublines as $subline) { 33 34 preg_match('/href="([^"]+)"/', $subline, $url); -
trunk/wp-admin/options-misc.php
r1076 r1100 1 1 <?php 2 2 $title = 'Miscellaneous Options'; 3 $parent_file = 'options-general.php'; 3 4 4 5 function add_magic_quotes($array) { -
trunk/wp-admin/options-permalink.php
r1074 r1100 1 1 <?php 2 2 $title = 'Permalink Options'; 3 $ this_file = 'options.php';3 $parent_file = 'options-general.php'; 4 4 5 5 function add_magic_quotes($array) { … … 78 78 <input name="permalink_structure" type="text" style="width: 100%;" value="<?php echo $permalink_structure; ?>" /> 79 79 </p> 80 <p >81 <input type="submit" name="Submit" value="Update ">80 <p class="submit"> 81 <input type="submit" name="Submit" value="Update Permalink Structure"> 82 82 </p> 83 83 </form> -
trunk/wp-admin/options-reading.php
r1072 r1100 1 1 <?php 2 2 $title = 'Reading Options'; 3 $parent_file = 'options-general.php'; 3 4 4 5 function add_magic_quotes($array) { -
trunk/wp-admin/options-writing.php
r1093 r1100 1 1 <?php 2 2 $title = 'Writing Options'; 3 $parent_file = 'options-general.php'; 3 4 4 5 function add_magic_quotes($array) { -
trunk/wp-admin/options.php
r1072 r1100 2 2 $title = 'Options'; 3 3 $this_file = 'options.php'; 4 $parent_file = 'options-general.php'; 4 5 5 6 function add_magic_quotes($array) { -
trunk/wp-admin/profile.php
r1076 r1100 223 223 ?> 224 224 <?php if ($updated) { ?> 225 <div class=" wrap">225 <div class="updated"> 226 226 <p><strong>Profile updated.</strong></p> 227 227 </div> -
trunk/wp-admin/templates.php
r1089 r1100 122 122 ?> 123 123 <form name="template" action="templates.php" method="post"> 124 <textarea cols="80" rows="2 0" style="width:100%; font-family: 'Courier New', Courier, monopace; font-size:small;" name="newcontent" tabindex="1"><?php echo $content ?></textarea>124 <textarea cols="80" rows="21" style="width:100%; font-family: 'Courier New', Courier, monopace; font-size:small;" name="newcontent" tabindex="1"><?php echo $content ?></textarea> 125 125 <input type="hidden" name="action" value="update" /> 126 126 <input type="hidden" name="file" value="<?php echo $file ?>" /> … … 142 142 </div> 143 143 <div class="wrap"> 144 <p>To edit a file, type its name here. You can edit any file writable by the server, e.g. CHMOD 766.</p>144 <p>To edit a file, type its name here. You can edit any file <a href="http://wiki.wordpress.org/index.php/MakeWritable" title="Read more about making files writable">writable by the server</a>, e.g. CHMOD 666.</p> 145 145 <form name="file" action="templates.php" method="get"> 146 146 <input type="text" name="file" /> 147 <input type="submit" name="submit" class="search" value="go" />147 <input type="submit" name="submit" value="Edit file »" /> 148 148 </form> 149 <p>Common files: </p>149 <p>Common files: (click to edit)</p> 150 150 <ul> 151 151 <li><a href="templates.php?file=index.php">Main Index </a></li> -
trunk/wp-admin/wp-admin.css
r1089 r1100 250 250 border-bottom: none; 251 251 background-color: #707070; 252 height: 20px; 252 253 } 253 254 #adminmenu2 li {
Note: See TracChangeset
for help on using the changeset viewer.