Changeset 23901 for trunk/wp-admin/revision.php
- Timestamp:
- 04/04/2013 03:49:28 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/revision.php
r23898 r23901 76 76 else 77 77 $parent_file = $submenu_file = 'edit.php'; 78 78 79 wp_enqueue_script( 'revisions' ); 79 80 require_once( './admin-header.php' );81 80 82 81 $strings = array( … … 92 91 93 92 $strings['settings'] = $settings; 94 95 93 wp_localize_script( 'revisions', 'wpRevisionsL10n', $strings ); 96 94 97 $comparetworevisionslink = get_edit_post_link( $revision->ID ); 95 require_once( './admin-header.php' ); 96 98 97 ?> 99 98 100 <div id="backbonerevisionsoptions">101 </div>102 99 <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"> 108 103 <span class="spinner" ></span> <?php _e( 'Calculating revision diffs' ); ?> 109 104 </div> 105 110 106 <h2 class="long-header"><?php echo $h2; ?></h2> 107 111 108 <div class="diff-slider-ticks-wrapper"> 112 <div id="diff-slider-ticks"> 113 </div> 109 <div id="diff-slider-ticks"></div> 114 110 </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> 119 115 </div> 120 116 </div> 121 117 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"> 124 120 <label> 125 <input type="checkbox" id="compare two" />121 <input type="checkbox" id="compare-two-revisions" /> 126 122 <?php esc_attr_e( 'Compare two revisions' ); ?> 127 123 </label> 128 124 </div> 129 125 130 <div id="diff subheader" 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' ) ); ?> 133 129 </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 }}} 136 133 </div> 137 134 </div> 138 135 139 <div id="diff subheader">140 <div id="diff title">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 }}} 142 139 </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' )?>" /> 146 142 </div> 147 143 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> 151 148 </div 149 152 150 <div>{{{ data.diff }}}</div> 153 151 </script> 154 152 155 153 <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' ); ?>" /> 165 156 </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> 166 163 </script> 167 164 168 165 <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> 171 167 </script> 172 168 <?php
Note: See TracChangeset
for help on using the changeset viewer.