Make WordPress Core


Ignore:
Timestamp:
08/17/2004 01:53:06 PM (22 years ago)
Author:
emc3
Message:

Added support for XFN 1.1

File:
1 edited

Legend:

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

    r1511 r1538  
    1414    }
    1515    if ('' == $value) {
    16         if ('family' == $class && !strstr($link_rel, 'child') && !strstr($link_rel, 'parent') && !strstr($link_rel, 'sibling') && !strstr($link_rel, 'spouse') ) echo ' checked="checked"';
    17         if ('friendship' == $class && !strstr($link_rel, 'friend') && !strstr($link_rel, 'acquaintance') ) echo ' checked="checked"';
     16        if ('family' == $class && !strstr($link_rel, 'child') && !strstr($link_rel, 'parent') && !strstr($link_rel, 'sibling') && !strstr($link_rel, 'spouse') && !strstr($link_rel, 'kin')) echo ' checked="checked"';
     17        if ('friendship' == $class && !strstr($link_rel, 'friend') && !strstr($link_rel, 'acquaintance') && !strstr($link_rel, 'contact') ) echo ' checked="checked"';
    1818        if ('geographical' == $class && !strstr($link_rel, 'co-resident') && !strstr($link_rel, 'neighbor') ) echo ' checked="checked"';
     19        if ('identity' == $class && !strstr($link_rel, 'me') ) echo ' checked="checked"';
    1920    }
    2021}
     
    381382                <input class="valinp" type="radio" name="friendship" value="acquaintance" id="label" <?php xfn_check('friendship', 'acquaintance', 'radio'); ?> />  <?php _e('acquaintance') ?></label>
    382383                <label for="label2">
    383                 <input class="valinp" type="radio" name="friendship" value="friend" id="label2" <?php xfn_check('friendship', 'friend', 'radio'); ?> /> <?php _e('friend') ?></label>
     384                <input class="valinp" type="radio" name="friendship" value="contact" id="label2" <?php xfn_check('friendship', 'contact', 'radio'); ?> /> <?php _e('contact') ?></label>
    384385                <label for="label3">
    385                 <input name="friendship" type="radio" class="valinp" id="label3" value="" <?php xfn_check('friendship', '', 'radio'); ?> />
    386                 <?php _e('none') ?></label>
     386                <input class="valinp" type="radio" name="friendship" value="friend" id="label3" <?php xfn_check('friendship', 'friend', 'radio'); ?> /> <?php _e('friend') ?></label>
     387                <label for="label4">
     388                <input name="friendship" type="radio" class="valinp" id="label4" value="" <?php xfn_check('friendship', '', 'radio'); ?> /> <?php _e('none') ?></label>
    387389              </td>
    388390            </tr>
     
    390392              <th scope="row"> <?php _e('physical') ?> </th>
    391393              <td>
    392                 <label for="label4">
    393                 <input class="valinp" type="checkbox" name="physical" value="met" id="label4" <?php xfn_check('physical', 'met'); ?> />
     394                <label for="label10">
     395                <input class="valinp" type="checkbox" name="physical" value="met" id="label10" <?php xfn_check('physical', 'met'); ?> />
    394396          <?php _e('met') ?></label>
    395397              </td>
     
    398400              <th scope="row"> <?php _e('professional') ?> </th>
    399401              <td>
    400                 <label for="label5">
    401                 <input class="valinp" type="checkbox" name="professional" value="co-worker" id="label5" <?php xfn_check('professional', 'co-worker'); ?> />
     402                <label for="label20">
     403                <input class="valinp" type="checkbox" name="professional" value="co-worker" id="label20" <?php xfn_check('professional', 'co-worker'); ?> />
    402404          <?php _e('co-worker') ?></label>
    403                 <label for="label6">
    404                 <input class="valinp" type="checkbox" name="professional" value="colleague" id="label6" <?php xfn_check('professional', 'colleague'); ?> />
     405                <label for="label21">
     406                <input class="valinp" type="checkbox" name="professional" value="colleague" id="label21" <?php xfn_check('professional', 'colleague'); ?> />
    405407          <?php _e('colleague') ?></label>
    406408              </td>
     
    409411              <th scope="row"> <?php _e('geographical') ?> </th>
    410412              <td>
    411                 <label for="label7">
    412                 <input class="valinp" type="radio" name="geographical" value="co-resident" id="label7" <?php xfn_check('geographical', 'co-resident', 'radio'); ?> />
     413                <label for="label30">
     414                <input class="valinp" type="radio" name="geographical" value="co-resident" id="label30" <?php xfn_check('geographical', 'co-resident', 'radio'); ?> />
    413415          <?php _e('co-resident') ?></label>
    414                 <label for="label8">
    415                 <input class="valinp" type="radio" name="geographical" value="neighbor" id="label8" <?php xfn_check('geographical', 'neighbor', 'radio'); ?> />
     416                <label for="label31">
     417                <input class="valinp" type="radio" name="geographical" value="neighbor" id="label31" <?php xfn_check('geographical', 'neighbor', 'radio'); ?> />
    416418          <?php _e('neighbor') ?></label>
    417                 <label for="label9">
    418                 <input class="valinp" type="radio" name="geographical" value="" id="label9" <?php xfn_check('geographical', '', 'radio'); ?> />
     419                <label for="label32">
     420                <input class="valinp" type="radio" name="geographical" value="" id="label32" <?php xfn_check('geographical', '', 'radio'); ?> />
    419421          <?php _e('none') ?></label>
    420422              </td>
     
    423425              <th scope="row"> family </th>
    424426              <td>
    425                 <label for="label10">
    426                 <input class="valinp" type="radio" name="family" value="child" id="label10" <?php xfn_check('family', 'child', 'radio'); ?>  />
     427                <label for="label40">
     428                <input class="valinp" type="radio" name="family" value="child" id="label40" <?php xfn_check('family', 'child', 'radio'); ?>  />
    427429          <?php _e('child') ?></label>
    428                 <label for="label11">
    429                 <input class="valinp" type="radio" name="family" value="parent" id="label11" <?php xfn_check('family', 'parent', 'radio'); ?> />
     430                <label for="label41">
     431                <input class="valinp" type="radio" name="family" value="kin" id="label41" <?php xfn_check('family', 'kin', 'radio'); ?>  />
     432          <?php _e('kin') ?></label>
     433                <label for="label42">
     434                <input class="valinp" type="radio" name="family" value="parent" id="label42" <?php xfn_check('family', 'parent', 'radio'); ?> />
    430435          <?php _e('parent') ?></label>
    431                 <label for="label12">
    432                 <input class="valinp" type="radio" name="family" value="sibling" id="label12" <?php xfn_check('family', 'sibling', 'radio'); ?> />
     436                <label for="label43">
     437                <input class="valinp" type="radio" name="family" value="sibling" id="label43" <?php xfn_check('family', 'sibling', 'radio'); ?> />
    433438          <?php _e('sibling') ?></label>
    434                 <label for="label13">
    435                 <input class="valinp" type="radio" name="family" value="spouse" id="label13" <?php xfn_check('family', 'spouse', 'radio'); ?> />
     439                <label for="label44">
     440                <input class="valinp" type="radio" name="family" value="spouse" id="label44" <?php xfn_check('family', 'spouse', 'radio'); ?> />
    436441          <?php _e('spouse') ?></label>
    437                 <label for="label14">
    438                 <input class="valinp" type="radio" name="family" value="" id="label14" <?php xfn_check('family', '', 'radio'); ?> />
     442                <label for="label45">
     443                <input class="valinp" type="radio" name="family" value="" id="label45" <?php xfn_check('family', '', 'radio'); ?> />
    439444          <?php _e('none') ?></label>
    440445              </td>
     
    443448              <th scope="row"> <?php _e('romantic') ?> </th>
    444449              <td>
    445                 <label for="label15">
    446                 <input class="valinp" type="checkbox" name="romantic" value="muse" id="label15" <?php xfn_check('romantic', 'muse'); ?> />
     450                <label for="label50">
     451                <input class="valinp" type="checkbox" name="romantic" value="muse" id="label50" <?php xfn_check('romantic', 'muse'); ?> />
    447452         <?php _e('muse') ?></label>
    448                 <label for="label16">
    449                 <input class="valinp" type="checkbox" name="romantic" value="crush" id="label16" <?php xfn_check('romantic', 'crush'); ?> />
     453                <label for="label51">
     454                <input class="valinp" type="checkbox" name="romantic" value="crush" id="label51" <?php xfn_check('romantic', 'crush'); ?> />
    450455         <?php _e('crush') ?></label>
    451                 <label for="label17">
    452                 <input class="valinp" type="checkbox" name="romantic" value="date" id="label17" <?php xfn_check('romantic', 'date'); ?> />
     456                <label for="label52">
     457                <input class="valinp" type="checkbox" name="romantic" value="date" id="label52" <?php xfn_check('romantic', 'date'); ?> />
    453458         <?php _e('date') ?></label>
    454                 <label for="label18">
    455                 <input class="valinp" type="checkbox" name="romantic" value="sweetheart" id="label18" <?php xfn_check('romantic', 'sweetheart'); ?> />
     459                <label for="label53">
     460                <input class="valinp" type="checkbox" name="romantic" value="sweetheart" id="label53" <?php xfn_check('romantic', 'sweetheart'); ?> />
    456461         <?php _e('sweetheart') ?></label>
     462              </td>
     463            </tr>
     464            <tr>
     465              <th scope="row"> <?php _e('identity') ?> </th>
     466              <td>
     467                <label for="label60">
     468                <input class="valinp" type="checkbox" name="identity" value="me" id="label60" <?php xfn_check('identity', 'me'); ?> />
     469          <?php _e('me') ?></label>
    457470              </td>
    458471            </tr>
Note: See TracChangeset for help on using the changeset viewer.