Make WordPress Core


Ignore:
Timestamp:
06/11/2011 07:37:23 PM (15 years ago)
Author:
nacin
Message:

UI refresh for Press This. props koopersmith, see #17757.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/press-this.php

    r18254 r18279  
    468468}
    469469?>
    470 <div id="wphead"></div>
    471470<form action="press-this.php?action=post" method="post">
    472471<div id="poststuff" class="metabox-holder">
    473472    <div id="side-info-column">
    474473        <div class="sleeve">
    475             <h1 id="viewsite"><a href="<?php echo get_option('home'); ?>/" target="_blank"><?php bloginfo('name'); ?> &rsaquo; <?php _e('Press This') ?></a></span></h1>
    476 
    477474            <?php wp_nonce_field('press-this') ?>
    478475            <input type="hidden" name="post_type" id="post_type" value="text"/>
     
    484481            <div class="photolist"></div>
    485482
    486             <div id="submitdiv" class="stuffbox">
     483            <div id="submitdiv" class="postbox">
     484                <div class="handlediv" title="<?php _e( 'Click to toggle' ); ?>"><br /></div>
     485                <h3 class="hndle"><?php _e('Press This') ?></h3>
    487486                <div class="inside">
    488                     <p>
     487                    <p id="publishing-actions">
    489488                    <?php
    490489                        submit_button( __( 'Save Draft' ), 'button', 'draft', false, array( 'id' => 'save' ) );
     
    566565            </div>
    567566
    568             <div id="tagsdiv-post_tag" class="stuffbox" >
     567            <div id="tagsdiv-post_tag" class="postbox">
    569568                <div class="handlediv" title="<?php _e( 'Click to toggle' ); ?>">
    570569                    <br/>
     
    583582                        <div class="tagchecklist"></div>
    584583                    </div>
    585                     <p class="tagcloud-link"><a href="#titlediv" class="tagcloud-link" id="link-post_tag"><?php _e('Choose from the most used tags in Post Tags'); ?></a></p>
     584                    <p class="tagcloud-link"><a href="#titlediv" class="tagcloud-link" id="link-post_tag"><?php _e('Choose from the most used tags'); ?></a></p>
    586585                </div>
    587586            </div>
     
    589588    </div>
    590589    <div class="posting">
     590
     591        <div id="wphead">
     592            <img id="header-logo" src="<?php echo esc_url( includes_url( 'images/blank.gif' ) ); ?>" alt="" width="16" height="16" />
     593            <h1 id="site-heading">
     594                <a href="<?php echo get_option('home'); ?>/" target="_blank">
     595                    <span id="site-title"><?php bloginfo('name'); ?></span>
     596                </a>
     597            </h1>
     598        </div>
     599
    591600        <?php if ( isset($posted) && intval($posted) ) { $post_ID = intval($posted); ?>
    592601        <div id="message" class="updated"><p><strong><?php _e('Your post has been saved.'); ?></strong> <a onclick="window.opener.location.replace(this.href); window.close();" href="<?php echo get_permalink( $post_ID); ?>"><?php _e('View post'); ?></a> | <a href="<?php echo get_edit_post_link( $post_ID ); ?>" onclick="window.opener.location.replace(this.href); window.close();"><?php _e('Edit Post'); ?></a> | <a href="#" onclick="window.close();"><?php _e('Close Window'); ?></a></p></div>
     
    602611
    603612        <div class="postdivrich">
    604             <ul id="actions" class="actions">
    605                 <li><?php _e( 'Add:' ); ?></li>
    606                 <li id="photo_button">
    607                     <?php if ( current_user_can('upload_files') ) { ?><a title="<?php _e('Insert an Image'); ?>" href="#">
    608 <img alt="<?php _e('Insert an Image'); ?>" src="<?php echo esc_url( admin_url( 'images/media-button-image.gif?ver=20100531' ) ); ?>"/></a>
    609                     <?php } ?>
    610                 </li>
    611                 <li id="video_button">
    612                     <a title="<?php _e('Embed a Video'); ?>" href="#"><img alt="<?php _e('Embed a Video'); ?>" src="<?php echo esc_url( admin_url( 'images/media-button-video.gif?ver=20100531' ) ); ?>"/></a>
    613                 </li>
    614                 <?php if ( user_can_richedit() ) { ?>
    615                 <li id="switcher">
    616                     <?php wp_print_scripts( 'quicktags' ); ?>
    617                     <?php add_filter('the_editor_content', 'wp_richedit_pre'); ?>
     613            <div id="editor-toolbar">
     614                <?php if ( user_can_richedit() ) :
     615                    wp_print_scripts( 'quicktags' );
     616                    add_filter('the_editor_content', 'wp_richedit_pre'); ?>
    618617                    <a id="edButtonHTML" onclick="switchEditors.go('content', 'html');"><?php _e('HTML'); ?></a>
    619618                    <a id="edButtonPreview" class="active" onclick="switchEditors.go('content', 'tinymce');"><?php _e('Visual'); ?></a>
    620619                    <div class="zerosize"><input accesskey="e" type="button" onclick="switchEditors.go('content')" /></div>
    621                 </li>
    622                 <?php } ?>
    623             </ul>
     620                <?php endif; ?>
     621
     622                <div id="media-buttons">
     623                    <?php
     624                    _e( 'Add:' );
     625
     626                    if ( current_user_can('upload_files') ) : ?>
     627                        <a id="photo_button" title="<?php _e('Insert an Image'); ?>" href="#">
     628<img alt="<?php _e('Insert an Image'); ?>" src="<?php echo esc_url( admin_url( 'images/media-button-image.gif?ver=20100531' ) ); ?>"/></a><?php
     629                    endif;
     630                    ?><a id="video_button" title="<?php _e('Embed a Video'); ?>" href="#"><img alt="<?php _e('Embed a Video'); ?>" src="<?php echo esc_url( admin_url( 'images/media-button-video.gif?ver=20100531' ) ); ?>"/></a>
     631                </div>
     632            </div>
    624633            <div id="quicktags"></div>
    625634            <div class="editor-container">
Note: See TracChangeset for help on using the changeset viewer.