Make WordPress Core


Ignore:
Timestamp:
09/13/2008 07:12:55 PM (17 years ago)
Author:
ryan
Message:

Move Show Settings into header and rename Advanced Options. Move preview links into submit box. see #7552

File:
1 edited

Legend:

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

    r8753 r8883  
    4747<p class="submit">
    4848<input type="submit" class="button button-highlighted" name="save" value="<?php _e('Save'); ?>" tabindex="4" />
     49
     50<?php if ( !empty($link->link_id) ) { ?>
     51<a class="preview button" href="<?php echo $link->link_url; ?>" target="_blank"><?php _e('Visit Link'); ?></a>
     52<?php } ?>
     53
    4954<?php
    5055if ( ( 'edit' == $action) && current_user_can('manage_links') )
     
    266271
    267272<div class="wrap">
     273
     274<div id="show-settings"><a href="#edit_settings" id="show-settings-link" class="hide-if-no-js"><?php _e('Advanced Options') ?></a>
     275<a href="#edit_settings" id="hide-settings-link" class="hide-if-js hide-if-no-js"><?php _e('Hide Options') ?></a></div>
     276
     277<div id="edit-settings" class="hide-if-js hide-if-no-js">
     278<div id="edit-settings-wrap">
     279<h5><?php _e('Show on screen') ?></h5>
     280<div class="metabox-prefs">
     281<?php meta_box_prefs('link') ?>
     282<br class="clear" />
     283</div></div>
     284</div>
     285
    268286<h2><?php echo $heading; ?></h2>
    269 
    270 <?php if ( !empty($link->link_id) ) { ?>
    271 <div id="previewview">
    272 <a class="button" href="<?php echo $link->link_url; ?>" target="_blank"><?php _e('Visit Link'); ?></a>
    273 </div>
    274 <?php } ?>
    275287
    276288<!--
     
    303315<div id="poststuff">
    304316
    305 <div id="show-settings"><a href="#edit_settings" id="show-settings-link" class="hide-if-no-js"><?php _e('Show Settings') ?></a>
    306 <a href="#edit_settings" id="hide-settings-link" class="hide-if-js hide-if-no-js"><?php _e('Hide Settings') ?></a></div>
    307 
    308 <div id="edit-settings" class="hide-if-js hide-if-no-js">
    309 <div id="edit-settings-wrap">
    310 <h5><?php _e('Show on screen') ?></h5>
    311 <div class="metabox-prefs">
    312 <?php meta_box_prefs('link') ?>
    313 <br class="clear" />
    314 </div></div>
    315 </div>
    316 
    317317<div id="side-info-column" class="inner-sidebar">
    318318<?php
Note: See TracChangeset for help on using the changeset viewer.