Make WordPress Core


Ignore:
Timestamp:
03/18/2015 01:57:18 AM (10 years ago)
Author:
azaozz
Message:

Press This: fix styling on the Tools screen.
Props Michael-Arestad, see #31462.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/tools.php

    r31768 r31806  
    3737
    3838<?php if ( current_user_can('edit_posts') ) : ?>
    39 <div class="tool-box">
    40     <h3 class="title"><?php _e('Press This') ?></h3>
    41     <div class="postbox press-this-install">
    42         <p><?php _e( 'Press This is a little app that lets you grab bits of the web and create new posts with ease.' );?></p>
    43         <p><?php _e( 'Use Press This to clip text, images and videos from any web page. Then edit and add more straight from Press This before you save or publish it in a post on your site.' ); ?></p>
    44     </div>
     39<div class="card pressthis">
     40    <h3><?php _e('Press This') ?></h3>
     41    <p><?php _e( 'Press This is a little app that lets you grab bits of the web and create new posts with ease.' );?></p>
     42    <p><?php _e( 'Use Press This to clip text, images and videos from any web page. Then edit and add more straight from Press This before you save or publish it in a post on your site.' ); ?></p>
     43
    4544
    4645    <form>
    47     <div class="postbox press-this-install">
    4846        <h3><?php _e( 'Install Press This' ); ?></h3>
    4947        <h4><?php _e( 'Bookmarklet' ); ?></h4>
    5048        <p><?php _e( 'Drag the bookmarklet below to your bookmarks bar. Then, when you&#8217;re on a page you want to share, simply &#8220;press&#8221; it.' ); ?></p>
    5149
    52         <p class="pressthis">
    53             <a class="" onclick="return false;" href="<?php echo htmlspecialchars( get_shortcut_link() ); ?>"><span><?php _e( 'Press This' ) ?></span></a>
    54             <button type="button" class="button button-secondary js-show-pressthis-code-wrap" aria-expanded="false" aria-controls="pressthis-code-wrap">
     50        <p class="pressthis-bookmarklet-wrapper">
     51            <a class="pressthis-bookmarklet" onclick="return false;" href="<?php echo htmlspecialchars( get_shortcut_link() ); ?>"><span><?php _e( 'Press This' ); ?></span></a>
     52            <button type="button" class="button button-secondary pressthis-js-toggle js-show-pressthis-code-wrap" aria-expanded="false" aria-controls="pressthis-code-wrap">
    5553                <span class="dashicons dashicons-clipboard"></span>
    5654                <span class="screen-reader-text"><?php _e( 'Copy &#8220;Press This&#8221; bookmarklet code' ) ?></span>
     
    5856        </p>
    5957
    60         <div class="hidden js-pressthis-code-wrap" id="pressthis-code-wrap">
     58        <div class="hidden js-pressthis-code-wrap clear" id="pressthis-code-wrap">
    6159            <p id="pressthis-code-desc">
    6260                <?php _e( 'If you can&#8217;t drag the bookmarklet to your bookmarks, copy the following code and create a new bookmark. Paste the code into the new bookmark&#8217;s URL field.' ) ?>
     
    9391            });
    9492        </script>
    95     </div>
    9693    </form>
    9794</div>
     
    103100$tags = get_taxonomy('post_tag');
    104101if ( current_user_can($cats->cap->manage_terms) || current_user_can($tags->cap->manage_terms) ) : ?>
    105 <div class="tool-box">
     102<div class="card">
    106103    <h3 class="title"><?php _e( 'Categories and Tags Converter' ) ?></h3>
    107104    <p><?php printf( __('If you want to convert your categories to tags (or vice versa), use the <a href="%s">Categories and Tags Converter</a> available from the Import screen.'), 'import.php' ); ?></p>
Note: See TracChangeset for help on using the changeset viewer.