Make WordPress Core


Ignore:
Timestamp:
12/15/2010 02:36:24 AM (13 years ago)
Author:
ryan
Message:

Expand/collapse in internal linking. Props koopersmith, nacin. see #15739

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/internal-linking.php

    r16900 r16931  
    8585        </div>
    8686    </div>
    87     <div id="search-panel">
     87    <?php $show_internal = '1' == get_user_setting( 'wplink', '0' ); ?>
     88    <p class="howto" id="internal-toggle"><a href="#" class="toggle-arrow <?php if ( $show_internal ) echo 'toggle-arrow-active'; ?>"><?php _e( 'Link to Content on this Site' ); ?></a></p>
     89    <div id="search-panel"<?php if ( ! $show_internal ) echo ' style="display:none"'; ?>>
    8890        <div class="link-search-wrapper">
    89             <p class="howto"><?php _e( 'Or, link to existing site content:' ); ?></p>
    9091            <label for="search-field">
    9192                <span><?php _e( 'Search' ); ?></span>
Note: See TracChangeset for help on using the changeset viewer.