Make WordPress Core


Ignore:
Timestamp:
02/20/2008 08:06:03 AM (19 years ago)
Author:
ryan
Message:

Add privacy and preview to edit link submitbox

File:
1 edited

Legend:

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

    r6926 r6935  
    6161
    6262<div class="submitbox" id="submitlink">
     63
     64<div id="previewview">
     65<?php if ( !empty($link_id) ) { ?>
     66<a href="<?php echo $link->link_url; ?>" target="_blank"><?php _e('Visit Link'); ?></a>
     67<?php } ?>
     68</div>
     69
     70<div class="inside">
     71<p><label for="link_private" class="selectit"><input id="link_private" name="link_visible" type="checkbox" value="N" <?php checked($link->link_visible, 'N'); ?> /> <?php _e('Keep this link private') ?></label></p>
     72</div>
     73
    6374<p class="submit">
    6475<input type="submit" name="save" value="<?php _e('Save'); ?>" style="font-weight: bold;" tabindex="4" />
    … …  
    117128<input id="link_target_none" type="radio" name="link_target" value="" <?php echo(($link->link_target == '') ? 'checked="checked"' : ''); ?> />
    118129<?php _e('none') ?></label>
    119 </div>
    120 </div>
    121 
    122 <div id="linkvisiblediv" class="postbox <?php echo postbox_classes('linkvisiblediv', 'link'); ?>">
    123 <h3><?php _e('Visible') ?></h3>
    124 <div class="inside">
    125 <label for="link_visible_yes" class="selectit">
    126 <input id="link_visible_yes" type="radio" name="link_visible" <?php if ($link->link_visible == 'Y') echo "checked='checked'"; ?> value="Y" />
    127 <?php _e('Yes') ?></label>
    128 <label for="link_visible_no" class="selectit">
    129 <input id="link_visible_no" type="radio" name="link_visible" <?php if ($link->link_visible == 'N') echo "checked='checked'"; ?> value="N" />
    130 <?php _e('No') ?></label>
    131130</div>
    132131</div>
Note: See TracChangeset for help on using the changeset viewer.