Make WordPress Core


Ignore:
Timestamp:
04/04/2013 03:49:28 PM (11 years ago)
Author:
markjaquith
Message:

Revisions CSS cleanup.

props ocean90. fixes #23933

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/revision.php

    r23898 r23901  
    7676else
    7777    $parent_file = $submenu_file = 'edit.php';
     78
    7879wp_enqueue_script( 'revisions' );
    79 
    80 require_once( './admin-header.php' );
    8180
    8281$strings = array(
     
    9291
    9392$strings['settings'] = $settings;
    94 
    9593wp_localize_script( 'revisions', 'wpRevisionsL10n', $strings );
    9694
    97 $comparetworevisionslink = get_edit_post_link( $revision->ID );
     95require_once( './admin-header.php' );
     96
    9897?>
    9998
    100 <div id="backbonerevisionsoptions">
    101 </div>
    10299<div class="wrap">
    103     <div class="icon32 icon32-posts-post" id="icon-edit">
    104         <br>
    105     </div>
    106     <div class="revisiondiffcontainer diffsplit currentversion rightmodelloading">
    107         <div id="modelsloading" class="updated message">
     100    <?php screen_icon(); ?>
     101    <div id="revision-diff-container" class="current-version right-model-loading">
     102        <div id="loading-status" class="updated message">
    108103            <span class="spinner" ></span> <?php _e( 'Calculating revision diffs' ); ?>
    109104        </div>
     105
    110106        <h2 class="long-header"><?php echo $h2; ?></h2>
     107
    111108        <div class="diff-slider-ticks-wrapper">
    112             <div id="diff-slider-ticks">
    113             </div>
     109            <div id="diff-slider-ticks"></div>
    114110        </div>
    115         <div id="backbonerevisionsinteract">
    116         </div>
    117         <div id="backbonerevisionsdiff">
    118         </div>
     111
     112        <div id="revision-interact"></div>
     113
     114        <div id="revisions-diff"></div>
    119115    </div>
    120116</div>
    121117
    122 <script id="tmpl-revision" type="text/html">
    123     <div id="comparetworevisions">
     118<script id="tmpl-revisions-diff" type="text/html">
     119    <div id="toogle-revision-compare-mode">
    124120        <label>
    125             <input type="checkbox" id="comparetwo" />
     121            <input type="checkbox" id="compare-two-revisions" />
    126122            <?php esc_attr_e( 'Compare two revisions' ); ?>
    127123        </label>
    128124    </div>
    129125
    130     <div id="diffsubheader" class="diff-left-hand-meta-row">
    131         <div id="diff_from_current_revision">
    132             <?php printf( '<b>%1$s</b> %2$s.' , __( 'From:' ), __( 'the current version' ) ); ?>
     126    <div id="diff-header-from" class="diff-header">
     127        <div id="diff-title-from-current-version" class="diff-title">
     128            <?php printf( '<strong>%1$s</strong> %2$s.' , __( 'From:' ), __( 'the current version' ) ); ?>
    133129        </div>
    134         <div id="difftitlefrom">
    135             <div class="diff-from-title"><?php _e( 'From:' ); ?></div>{{{ data.titleFrom }}}
     130
     131        <div id="diff-title-from" class="diff-title">
     132            <strong><?php _e( 'From:' ); ?></strong> {{{ data.titleFrom }}}
    136133        </div>
    137134    </div>
    138135
    139     <div id="diffsubheader">
    140         <div id="difftitle">
    141             <div class="diff-to-title"><?php _e( 'To:' ); ?></div>{{{ data.titleTo }}}
     136    <div id="diff-header-to" class="diff-header">
     137        <div id="diff-title-to" class="diff-title">
     138            <strong><?php _e( 'To:' ); ?></strong> {{{ data.titleTo }}}
    142139        </div>
    143         <div id="diffrestore">
    144             <input class="button button-primary" data-restore-link="{{{ data.restoreLink }}}" type="button" id="restore" value="<?php esc_attr_e( 'Restore This Revision' )?>" />
    145         </div>
     140
     141        <input type="button" id="restore-revision" class="button button-primary" data-restore-link="{{{ data.restoreLink }}}" value="<?php esc_attr_e( 'Restore This Revision' )?>" />
    146142    </div>
    147143
    148     <div id="removedandadded">
    149         <div id="removed"><?php _e( 'Removed -' ); ?></div>
    150         <div id="added"><?php _e( 'Added +' ); ?></div>
     144    <div class="diff-col-titles">
     145        <div class="diff-col-title-removed"><span><?php _e( 'Removed -' ); ?></span></div>
     146        <div class="diff-col-title-added"><span><?php _e( 'Added +' ); ?></span></div>
     147        <div class="clear"></div>
    151148    </div
     149
    152150    <div>{{{ data.diff }}}</div>
    153151</script>
    154152
    155153<script id="tmpl-revision-interact" type="text/html">
    156     <div id="diffheader">
    157         <div id="diffprevious"><input class="button" type="submit" id="previous" value="<?php esc_attr_e( 'Previous' ); ?>" />
    158         </div>
    159         <div id="diffnext"><input class="button" type="submit" id="next" value="<?php esc_attr_e( 'Next' ); ?>" />
    160         </div>
    161         <div id="diffslider">
    162             <div id="slider" class="wp-slider">
    163             </div>
    164         </div>
     154    <div id="diff-previous-revision">
     155        <input class="button" type="button" id="previous" value="<?php esc_attr_e( 'Previous' ); ?>" />
    165156    </div>
     157
     158    <div id="diff-next-revision">
     159        <input class="button" type="button" id="next" value="<?php esc_attr_e( 'Next' ); ?>" />
     160    </div>
     161
     162    <div id="diff-slider" class="wp-slider"></div>
    166163</script>
    167164
    168165<script id="tmpl-revision-ticks" type="text/html">
    169     <div class="revision-tick revision-toload{{{ data.revision_toload }}} revision-scopeofchanges-{{{ data.scope_of_changes }}}">
    170     </div>
     166    <div class="revision-tick loading-{{{ data.revision_toload }}} scope-of-changes-{{{ data.scope_of_changes }}}"></div>
    171167</script>
    172168<?php
Note: See TracChangeset for help on using the changeset viewer.