Make WordPress Core


Ignore:
Timestamp:
09/18/2005 07:44:14 PM (20 years ago)
Author:
ryan
Message:

Link love. Add get_link(), get_link_to_edit(), add_link(), edit_link(), wp_insert_link(), wp_update_link(), wp_delete_link()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/link-add.php

    r2762 r2889  
    7676         <tr>
    7777           <th width="33%" scope="row"><?php _e('URI:') ?></th>
    78            <td width="67%"><input type="text" name="linkurl" value="<?php echo wp_specialchars($_GET['linkurl'], 1); ?>" style="width: 95%;" /></td>
     78           <td width="67%"><input type="text" name="link_url" value="<?php echo wp_specialchars($_GET['linkurl'], 1); ?>" style="width: 95%;" /></td>
    7979         </tr>
    8080         <tr>
    8181           <th scope="row"><?php _e('Link Name:') ?></th>
    82            <td><input type="text" name="name" value="<?php echo wp_specialchars( urldecode($_GET['name']), 1 ); ?>" style="width: 95%" /></td>
     82           <td><input type="text" name="link_name" value="<?php echo wp_specialchars( urldecode($_GET['name']), 1 ); ?>" style="width: 95%" /></td>
    8383         </tr>
    8484         <tr>
    8585            <th scope="row"><?php _e('Short description:') ?></th>
    86             <td><input type="text" name="description" value="" style="width: 95%" /></td>
     86            <td><input type="text" name="link_description" value="" style="width: 95%" /></td>
    8787            </tr>
    8888        <tr>
    8989           <th scope="row"><?php _e('Category:') ?></th>
    90            <td><?php category_dropdown('category'); ?></td>
     90           <td><?php category_dropdown('link_category'); ?></td>
    9191         </tr>
    9292</table>
     
    100100            <tr>
    101101                <th width="33%" scope="row"><?php _e('rel:') ?></th>
    102                 <td width="67%"><input type="text" name="rel" id="rel" size="50" value="<?php echo $link_rel; ?>" /></td>
     102                <td width="67%"><input type="text" name="link_rel" id="rel" size="50" value="<?php echo $link_rel; ?>" /></td>
    103103            </tr>
    104104            <tr>
     
    213213         <tr>
    214214           <th width="33%" scope="row"><?php _e('Image URI:') ?></th>
    215            <td width="67%"><input type="text" name="image" size="50" value="" style="width: 95%" /></td>
     215           <td width="67%"><input type="text" name="link_image" size="50" value="" style="width: 95%" /></td>
    216216         </tr>
    217217<tr>
    218218           <th scope="row"><?php _e('RSS URI:') ?> </th>
    219            <td><input name="rss_uri" type="text" id="rss_uri" value="" size="50" style="width: 95%" /></td>
     219           <td><input name="link_rss" type="text" id="rss_uri" value="" size="50" style="width: 95%" /></td>
    220220         </tr>
    221221         <tr>
    222222           <th scope="row"><?php _e('Notes:') ?></th>
    223            <td><textarea name="notes" cols="50" rows="10" style="width: 95%"></textarea></td>
     223           <td><textarea name="link_notes" cols="50" rows="10" style="width: 95%"></textarea></td>
    224224         </tr>
    225225         <tr>
    226226           <th scope="row"><?php _e('Rating:') ?></th>
    227            <td><select name="rating" size="1">
     227           <td><select name="link_rating" size="1">
    228228             <?php
    229229    for ($r = 0; $r < 10; $r++) {
     
    237237           <th scope="row"><?php _e('Target') ?></th>
    238238           <td><label>
    239              <input type="radio" name="target" value="_blank" />
     239             <input type="radio" name="link_target" value="_blank" />
    240240             <code>_blank</code></label>
    241241<br />
    242 <label><input type="radio" name="target" value="_top" />
     242<label><input type="radio" name="link_target" value="_top" />
    243243<code>_top</code></label>
    244244<br />
    245 <label><input type="radio" name="target" value="" checked="checked" />
     245<label><input type="radio" name="link_target" value="" checked="checked" />
    246246<?php _e('none') ?></label>
    247247<?php _e('(Note that the <code>target</code> attribute is illegal in XHTML 1.1 and 1.0 Strict.)') ?></td>
     
    250250           <th scope="row"><?php _e('Visible:') ?></th>
    251251           <td><label>
    252              <input type="radio" name="visible" checked="checked" value="Y" />
     252             <input type="radio" name="link_visible" checked="checked" value="Y" />
    253253<?php _e('Yes') ?></label><br />
    254 <label><input type="radio" name="visible" value="N" /> <input type="hidden" name="action" value="Add" />
     254<label><input type="radio" name="link_visible" value="N" /> <input type="hidden" name="action" value="Add" />
    255255<?php _e('No') ?></label></td>
    256256         </tr>
Note: See TracChangeset for help on using the changeset viewer.