Changeset 1155 for trunk/wp-admin/link-manager.php
- Timestamp:
- 04/24/2004 11:07:51 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/link-manager.php
r1136 r1155 5 5 require_once('../wp-config.php'); 6 6 7 $title = 'Manage Links';7 $title = __('Manage Links'); 8 8 $this_file = 'link-manager.php'; 9 9 … … 88 88 // check the current user's level first. 89 89 if ($user_level < get_settings('links_minadminlevel')) 90 die ( "Cheatin' uh ?");90 die (__("Cheatin' uh ?")); 91 91 92 92 //for each link id (in $linkcheck[]): if the current user level >= the … … 119 119 // check the current user's level first. 120 120 if ($user_level < get_settings('links_minadminlevel')) 121 die ( "Cheatin' uh ?");121 die (__("Cheatin' uh ?")); 122 122 123 123 //for each link id (in $linkcheck[]): toggle the visibility … … 156 156 // check the current user's level first. 157 157 if ($user_level < get_settings('links_minadminlevel')) 158 die ( "Cheatin' uh ?");158 die (__("Cheatin' uh ?")); 159 159 160 160 //for each link id (in $linkcheck[]) change category to selected value … … 190 190 191 191 if ($user_level < get_settings('links_minadminlevel')) 192 die ( "Cheatin' uh ?");192 die (__("Cheatin' uh ?")); 193 193 194 194 // if we are in an auto toggle category and this one is visible then we … … 238 238 239 239 if ($user_level < get_settings('links_minadminlevel')) 240 die ( "Cheatin' uh ?");240 die (__("Cheatin' uh ?")); 241 241 242 242 // if we are in an auto toggle category and this one is visible then we … … 269 269 270 270 if ($user_level < get_settings('links_minadminlevel')) 271 die ( "Cheatin' uh ?");271 die (__("Cheatin' uh ?")); 272 272 273 273 $wpdb->query("DELETE FROM $tablelinks WHERE link_id = $link_id"); … … 291 291 include_once ('admin-header.php'); 292 292 if ($user_level < get_settings('links_minadminlevel')) { 293 die( 'You have do not have sufficent permissions to edit the links for this blog.');293 die(__('You have do not have sufficent permissions to edit the links for this blog.')); 294 294 } 295 295 … … 314 314 ?> 315 315 <ul id="adminmenu2"> 316 <li><a href="link-manager.php" class="current"> Manage Links</a></li>317 <li><a href="link-add.php"> Add Link</a></li>318 <li><a href="link-categories.php"> Link Categories</a></li>319 <li class="last"><a href="link-import.php"> Import Blogroll</a></li>316 <li><a href="link-manager.php" class="current"><?php _e('Manage Links') ?></a></li> 317 <li><a href="link-add.php"><?php _e('Add Link') ?></a></li> 318 <li><a href="link-categories.php"><?php _e('Link Categories') ?></a></li> 319 <li class="last"><a href="link-import.php"><?php _e('Import Blogroll') ?></a></li> 320 320 </ul> 321 321 <style media="screen" type="text/css"> … … 324 324 <div class="wrap"> 325 325 <form action="" method="post" name="editlink" id="editlink"> 326 <h2> Edit a link:</h2>326 <h2><?php _e('Edit a link:') ?></h2> 327 327 <fieldset class="options"> 328 <legend>Basics</legend>328 <legend><?php _e('Basics') ?></legend> 329 329 <table class="editform" width="100%" cellspacing="2" cellpadding="5"> 330 330 <tr> 331 <th width="33%" scope="row"> URI:</th>331 <th width="33%" scope="row"><?php _e('URI:') ?></th> 332 332 <td width="67%"><input type="text" name="linkurl" value="<?php echo $link_url; ?>" style="width: 95%; /"></td> 333 333 </tr> 334 334 <tr> 335 <th scope="row"> Link Name:</th>335 <th scope="row"><?php _e('Link Name:') ?></th> 336 336 <td><input type="text" name="name" value="<?php echo $link_name; ?>" style="width: 95%" /></td> 337 337 </tr> 338 338 <tr> 339 <th scope="row">Short description:</th>339 <th scope="row"><?php _e('Short description:') ?></th> 340 340 <td><input type="text" name="description" value="<?php echo $link_description; ?>" style="width: 95%" /></td> 341 341 </tr> 342 342 <tr> 343 <th scope="row"> Category:</th>343 <th scope="row"><?php _e('Category:') ?></th> 344 344 <td><?php category_dropdown('category', $link_category); ?></td> 345 345 </tr> … … 347 347 </fieldset> 348 348 <p class="submit"> 349 <input type="submit" name="submit" value="Save Changes »" />349 <input type="submit" name="submit" value="<?php _e('Save Changes »') ?>" /> 350 350 </p> 351 351 <fieldset class="options"> 352 <legend>Link Relationship (XFN)</legend>352 <legend><?php _e('Link Relationship (XFN)') ?></legend> 353 353 <table class="editform" width="100%" cellspacing="2" cellpadding="5"> 354 354 <tr> 355 <th width="33%" scope="row">rel:</th>355 <th width="33%" scope="row"><?php _e('rel:') ?></th> 356 356 <td width="67%"><input type="text" name="rel" id="rel" size="50" value="<?php echo $link_rel; ?>"></td> 357 357 </tr> 358 358 <tr> 359 <th scope="row"><a href="http://gmpg.org/xfn/">XFN</a> Creator:</th>359 <th scope="row"><?php _e('<a href="http://gmpg.org/xfn/">XFN</a> Creator:') ?></th> 360 360 <td><table cellpadding="3" cellspacing="5"> 361 361 <tr> 362 <th scope="row"> friendship</th>362 <th scope="row"> <?php _e('friendship') ?> </th> 363 363 <td> 364 364 <label for="label"> 365 <input class="valinp" type="radio" name="friendship" value="acquaintance" id="label" <?php xfn_check('friendship', 'acquaintance', 'radio'); ?> /> acquaintance</label>365 <input class="valinp" type="radio" name="friendship" value="acquaintance" id="label" <?php xfn_check('friendship', 'acquaintance', 'radio'); ?> /> <?php _e('acquaintance') ?></label> 366 366 <label for="label2"> 367 <input class="valinp" type="radio" name="friendship" value="friend" id="label2" <?php xfn_check('friendship', 'friend', 'radio'); ?> /> friend</label>367 <input class="valinp" type="radio" name="friendship" value="friend" id="label2" <?php xfn_check('friendship', 'friend', 'radio'); ?> /> <?php _e('friend') ?></label> 368 368 <label for="label3"> 369 369 <input name="friendship" type="radio" class="valinp" id="label3" value="" <?php xfn_check('friendship', '', 'radio'); ?> /> 370 none</label>370 <?php _e('none') ?></label> 371 371 </td> 372 372 </tr> 373 373 <tr> 374 <th scope="row"> physical</th>374 <th scope="row"> <?php _e('physical') ?> </th> 375 375 <td> 376 376 <label for="label4"> 377 377 <input class="valinp" type="checkbox" name="physical" value="met" id="label4" <?php xfn_check('physical', 'met'); ?> /> 378 met</label>378 <?php _e('met') ?></label> 379 379 </td> 380 380 </tr> 381 381 <tr> 382 <th scope="row"> professional</th>382 <th scope="row"> <?php _e('professional') ?> </th> 383 383 <td> 384 384 <label for="label5"> 385 385 <input class="valinp" type="checkbox" name="professional" value="co-worker" id="label5" <?php xfn_check('professional', 'co-worker'); ?> /> 386 co-worker</label>386 <?php _e('co-worker') ?></label> 387 387 <label for="label6"> 388 388 <input class="valinp" type="checkbox" name="professional" value="colleague" id="label6" <?php xfn_check('professional', 'colleague'); ?> /> 389 colleague</label>389 <?php _e('colleague') ?></label> 390 390 </td> 391 391 </tr> 392 392 <tr> 393 <th scope="row"> geographical</th>393 <th scope="row"> <?php _e('geographical') ?> </th> 394 394 <td> 395 395 <label for="label7"> 396 396 <input class="valinp" type="radio" name="geographical" value="co-resident" id="label7" <?php xfn_check('geographical', 'co-resident', 'radio'); ?> /> 397 co-resident</label>397 <?php _e('co-resident') ?></label> 398 398 <label for="label8"> 399 399 <input class="valinp" type="radio" name="geographical" value="neighbor" id="label8" <?php xfn_check('geographical', 'neighbor', 'radio'); ?> /> 400 neighbor</label>400 <?php _e('neighbor') ?></label> 401 401 <label for="label9"> 402 402 <input class="valinp" type="radio" name="geographical" value="" id="label9" <?php xfn_check('geographical', '', 'radio'); ?> /> 403 none</label>403 <?php _e('none') ?></label> 404 404 </td> 405 405 </tr> … … 409 409 <label for="label10"> 410 410 <input class="valinp" type="radio" name="family" value="child" id="label10" <?php xfn_check('family', 'child', 'radio'); ?> /> 411 child</label>411 <?php _e('child') ?></label> 412 412 <label for="label11"> 413 413 <input class="valinp" type="radio" name="family" value="parent" id="label11" <?php xfn_check('family', 'parent', 'radio'); ?> /> 414 parent</label>414 <?php _e('parent') ?></label> 415 415 <label for="label12"> 416 416 <input class="valinp" type="radio" name="family" value="sibling" id="label12" <?php xfn_check('family', 'sibling', 'radio'); ?> /> 417 sibling</label>417 <?php _e('sibling') ?></label> 418 418 <label for="label13"> 419 419 <input class="valinp" type="radio" name="family" value="spouse" id="label13" <?php xfn_check('family', 'spouse', 'radio'); ?> /> 420 spouse</label>420 <?php _e('spouse') ?></label> 421 421 <label for="label14"> 422 422 <input class="valinp" type="radio" name="family" value="" id="label14" <?php xfn_check('family', '', 'radio'); ?> /> 423 none</label>423 <?php _e('none') ?></label> 424 424 </td> 425 425 </tr> 426 426 <tr> 427 <th scope="row"> romantic</th>427 <th scope="row"> <?php _e('romantic') ?> </th> 428 428 <td> 429 429 <label for="label15"> 430 430 <input class="valinp" type="checkbox" name="romantic" value="muse" id="label15" <?php xfn_check('romantic', 'muse'); ?> /> 431 muse</label>431 <?php _e('muse') ?></label> 432 432 <label for="label16"> 433 433 <input class="valinp" type="checkbox" name="romantic" value="crush" id="label16" <?php xfn_check('romantic', 'crush'); ?> /> 434 crush</label>434 <?php _e('crush') ?></label> 435 435 <label for="label17"> 436 436 <input class="valinp" type="checkbox" name="romantic" value="date" id="label17" <?php xfn_check('romantic', 'date'); ?> /> 437 date</label>437 <?php _e('date') ?></label> 438 438 <label for="label18"> 439 439 <input class="valinp" type="checkbox" name="romantic" value="sweetheart" id="label18" <?php xfn_check('romantic', 'sweetheart'); ?> /> 440 sweetheart</label>440 <?php _e('sweetheart') ?></label> 441 441 </td> 442 442 </tr> … … 446 446 </fieldset> 447 447 <p class="submit"> 448 <input type="submit" name="submit" value="Save Changes »" />448 <input type="submit" name="submit" value="<?php _e('Save Changes »') ?>" /> 449 449 </p> 450 450 <fieldset class="options"> 451 <legend>Advanced</legend>451 <legend><?php _e('Advanced') ?></legend> 452 452 <table class="editform" width="100%" cellspacing="2" cellpadding="5"> 453 453 <tr> 454 <th width="33%" scope="row"> Image URI:</th>454 <th width="33%" scope="row"><?php _e('Image URI:') ?></th> 455 455 <td width="67%"><input type="text" name="image" size="50" value="<?php echo $link_image; ?>" style="width: 95%" /></td> 456 456 </tr> 457 457 <tr> 458 <th scope="row"> RSS URI:</th>458 <th scope="row"><?php _e('RSS URI:') ?> </th> 459 459 <td><input name="rss_uri" type="text" id="rss_uri" value="<?php echo $link_rss_uri; ?>" size="50" style="width: 95%" /></td> 460 460 </tr> 461 461 <tr> 462 <th scope="row"> Notes:</th>462 <th scope="row"><?php _e('Notes:') ?></th> 463 463 <td><textarea name="notes" cols="50" rows="10" style="width: 95%"><?php echo $link_notes; ?></textarea></td> 464 464 </tr> 465 465 <tr> 466 <th scope="row"> Rating:</th>466 <th scope="row"><?php _e('Rating:') ?></th> 467 467 <td><select name="rating" size="1"> 468 468 <?php … … 475 475 ?> 476 476 </select> 477 (Leave at 0 for no rating.)</td>477 <?php _e('(Leave at 0 for no rating.)') ?> </td> 478 478 </tr> 479 479 <tr> 480 <th scope="row"> Target</th>480 <th scope="row"><?php _e('Target') ?></th> 481 481 <td><label> 482 482 <input type="radio" name="target" value="_blank" <?php echo(($link_target == '_blank') ? 'checked="checked"' : ''); ?> /> … … 487 487 <label> 488 488 <input type="radio" name="target" value="" <?php echo(($link_target == '') ? 'checked="checked"' : ''); ?> /> 489 none</label><br />490 (Note that the <code>target</code> attribute is illegal in XHTML 1.1 and 1.0 Strict.)</td>489 <?php _e('none') ?></label><br /> 490 <?php _e('(Note that the <code>target</code> attribute is illegal in XHTML 1.1 and 1.0 Strict.)') ?></td> 491 491 </tr> 492 492 <tr> 493 <th scope="row"> Visible:</th>493 <th scope="row"><?php _e('Visible:') ?></th> 494 494 <td><label> 495 495 <input type="radio" name="visible" <?php if ($link_visible == 'Y') echo "checked='checked'"; ?> value="Y" /> 496 Yes</label><br /><label>496 <?php _e('Yes') ?></label><br /><label> 497 497 <input type="radio" name="visible" <?php if ($link_visible == 'N') echo "checked='checked'"; ?> value="N" /> 498 No</label></td>498 <?php _e('No') ?></label></td> 499 499 </tr> 500 500 </table> 501 501 </fieldset> 502 <p class="submit"><input type="submit" name="submit" value=" Save Changes »" />502 <p class="submit"><input type="submit" name="submit" value="<?php _e('Save Changes »') ?>" /> 503 503 <input type="hidden" name="action" value="editlink" /> 504 504 <input type="hidden" name="link_id" value="<?php echo $link_id; ?>" /> … … 510 510 break; 511 511 } // end linkedit 512 case "Show":512 case __("Show"): 513 513 { 514 514 if (!isset($cat_id) || ($cat_id == '')) { … … 552 552 include_once ("./admin-header.php"); 553 553 if ($user_level < get_settings('links_minadminlevel')) { 554 die( "You have do not have sufficient permissions to edit the links for this blog.");554 die(__("You have do not have sufficient permissions to edit the links for this blog.")); 555 555 } 556 556 … … 584 584 </script> 585 585 <ul id="adminmenu2"> 586 <li><a href="link-manager.php" class="current">Manage Links</a></li>587 <li><a href="link-add.php">Add Link</a></li>588 <li><a href="link-categories.php">Link Categories</a></li>589 <li class="last"><a href="link-import.php">Import Blogroll</a></li>586 <li><a href="link-manager.php" class="current"><?php _e('Manage Links') ?></a></li> 587 <li><a href="link-add.php"><?php _e('Add Link') ?></a></li> 588 <li><a href="link-categories.php"><?php _e('Link Categories') ?></a></li> 589 <li class="last"><a href="link-import.php"><?php _e('Import Blogroll') ?></a></li> 590 590 </ul> 591 591 <div class="wrap"> … … 624 624 <td> 625 625 <select name="order_by"> 626 <option value="order_id" <?php if ($order_by == 'order_id') echo " selected='selected'";?>> Link ID</option>627 <option value="order_name" <?php if ($order_by == 'order_name') echo " selected='selected'";?>> Name</option>628 <option value="order_url" <?php if ($order_by == 'order_url') echo " selected='selected'";?>> URI</option>629 <option value="order_desc" <?php if ($order_by == 'order_desc') echo " selected='selected'";?>> Description</option>630 <option value="order_owner" <?php if ($order_by == 'order_owner') echo " selected='selected'";?>> Owner</option>631 <option value="order_rating" <?php if ($order_by == 'order_rating') echo " selected='selected'";?>> Rating</option>626 <option value="order_id" <?php if ($order_by == 'order_id') echo " selected='selected'";?>><?php _e('Link ID') ?></option> 627 <option value="order_name" <?php if ($order_by == 'order_name') echo " selected='selected'";?>><?php _e('Name') ?></option> 628 <option value="order_url" <?php if ($order_by == 'order_url') echo " selected='selected'";?>><?php _e('URI') ?></option> 629 <option value="order_desc" <?php if ($order_by == 'order_desc') echo " selected='selected'";?>><?php _e('Description') ?></option> 630 <option value="order_owner" <?php if ($order_by == 'order_owner') echo " selected='selected'";?>><?php _e('Owner') ?></option> 631 <option value="order_rating" <?php if ($order_by == 'order_rating') echo " selected='selected'";?>><?php _e('Rating') ?></option> 632 632 </select> 633 633 </td> 634 634 <td> 635 <input type="submit" name="action" value=" Show" />635 <input type="submit" name="action" value="<?php _e('Show') ?>" /> 636 636 <?php echo gethelp_link($this_file,'show');?> 637 637 </td> … … 651 651 <table width="100%" cellpadding="3" cellspacing="3"> 652 652 <tr> 653 <th width="15%"><?php echo gethelp_link($this_file,'list_o_links');?> Name</th>653 <th width="15%"><?php echo gethelp_link($this_file,'list_o_links');?> <?php _e('Name') ?></th> 654 654 <th>URI</th> 655 655 <th>Category</th>
Note: See TracChangeset
for help on using the changeset viewer.