Ticket #23933: 23933.2.patch
File 23933.2.patch, 20.5 KB (added by , 12 years ago) |
---|
-
wp-admin/js/revisions.js
116 116 117 117 startLeftModelLoading: function() { 118 118 this.leftModelLoading = true; 119 $(' .revisiondiffcontainer').addClass('leftmodelloading');119 $('#revision-diff-container').addClass('left-model-loading'); 120 120 }, 121 121 122 122 stopLeftModelLoading: function() { … … 125 125 126 126 startRightModelLoading: function() { 127 127 this.rightModelLoading = true; 128 $(' .revisiondiffcontainer').addClass('rightmodelloading');128 $('#revision-diff-container').addClass('right-model-loading'); 129 129 }, 130 130 131 131 stopRightModelLoading: function() { … … 133 133 }, 134 134 135 135 stopModelLoadingSpinner: function() { 136 $(' .revisiondiffcontainer').removeClass('rightmodelloading');137 $(' .revisiondiffcontainer').removeClass('leftmodelloading');136 $('#revision-diff-container').removeClass('right-model-loading'); 137 $('#revision-diff-container').removeClass('left-model-loading'); 138 138 }, 139 139 140 140 reloadModel: function() { … … 279 279 * The slider 280 280 */ 281 281 revisions.view.Slider = Backbone.View.extend({ 282 el: $( '# slider' ),282 el: $( '#diff-slider' ), 283 283 singleRevision: true, 284 284 285 285 initialize: function( options ) { … … 314 314 } 315 315 316 316 if ( 0 === Diff.leftDiff ) { 317 $( ' .revisiondiffcontainer' ).addClass( 'currentversion' );317 $( '#revision-diff-container' ).addClass( 'currentversion' ); 318 318 } else { 319 $( ' .revisiondiffcontainer' ).removeClass( 'currentversion' );319 $( '#revision-diff-container' ).removeClass( 'currentversion' ); 320 320 } 321 321 322 322 Diff.revisionView.render(); … … 380 380 }, 381 381 382 382 addTooltip: function( handle, message ) { 383 384 383 handle.attr( 'title', '' ).tooltip({ 385 384 track: false, 386 385 … … 406 405 }, 407 406 408 407 width: function() { 409 return $( '# slider' ).width();408 return $( '#diff-slider' ).width(); 410 409 }, 411 410 412 411 setWidth: function( width ) { 413 return $( '# slider' ).width( width );412 return $( '#diff-slider' ).width( width ); 414 413 }, 415 414 416 415 refresh: function( options, slide ) { 417 $( '# slider' ).slider( 'option', options );416 $( '#diff-slider' ).slider( 'option', options ); 418 417 419 418 // Triggers the slide event 420 419 if ( slide ) 421 $( '# slider' ).trigger( 'slide' );420 $( '#diff-slider' ).trigger( 'slide' ); 422 421 }, 423 422 424 423 option: function( key ) { 425 return $( '# slider' ).slider( 'option', key );424 return $( '#diff-slider' ).slider( 'option', key ); 426 425 }, 427 426 428 427 render: function() { 429 428 var self = this; 430 429 // this.$el doesn't work, why? 431 $( '# slider' ).slider( {430 $( '#diff-slider' ).slider( { 432 431 slide: $.proxy( self.slide, self ), 433 432 start: $.proxy( self.start, self ), 434 433 stop: $.proxy( self.stop, self ) … … 465 464 466 465 Diff.slider.setWidth( sliderWidth ); 467 466 $( '.diff-slider-ticks-wrapper' ).width( sliderWidth ); 468 $( '#diffslider' ).width( sliderWidth );469 467 $( '#diff-slider-ticks' ).width( sliderWidth ); 470 468 471 469 var aTickWidth = $( '.revision-tick' ).width(); … … 507 505 */ 508 506 // TODO: Change Interact to something else. 509 507 revisions.view.Interact = Backbone.View.extend({ 510 el: $( '#backbonerevisionsinteract'),511 template: wp.template( 'revision-interact'),508 el: $( '#revision-interact' ), 509 template: wp.template( 'revision-interact' ), 512 510 513 511 // next and previous buttons, only available in compare one mode 514 512 events: { … … 517 515 }, 518 516 519 517 render: function() { 520 var self = this;518 this.$el.html( this.template ); 521 519 522 var addHtml = this.template;523 this.$el.html( addHtml );524 525 520 var modelcount = Diff.revisions.length; 526 521 527 522 Diff.slider.singleRevision = Diff.singleRevision; … … 534 529 max: modelcount - 1 535 530 }); 536 531 537 $( ' .revisiondiffcontainer' ).removeClass( 'comparetwo' );532 $( '#revision-diff-container' ).removeClass( 'compare-two-revisions' ); 538 533 539 534 } else { 540 535 Diff.slider.refresh({ … … 544 539 range: true 545 540 }); 546 541 547 $( ' .revisiondiffcontainer' ).addClass( 'comparetwo' );548 $( '#diff slider a.ui-slider-handle' ).first().addClass( 'left-handle' );549 $( '#diff slider a.ui-slider-handle' ).last().addClass( 'right-handle' );542 $( '#revision-diff-container' ).addClass( 'compare-two-revisions' ); 543 $( '#diff-slider a.ui-slider-handle' ).first().addClass( 'left-handle' ); 544 $( '#diff-slider a.ui-slider-handle' ).last().addClass( 'right-handle' ); 550 545 551 546 } 552 547 … … 584 579 * Next/Prev buttons and the slider 585 580 */ 586 581 revisions.view.Diff = Backbone.View.extend({ 587 el: $( '#backbonerevisionsdiff'),588 template: wp.template( 'revision'),582 el: $( '#revisions-diff' ), 583 template: wp.template( 'revisions-diff' ), 589 584 draggingLeft: false, 590 585 591 586 // the compare two button is in this view, add the interaction here 592 587 events: { 593 'click #comparetwo': 'compareTwo',594 'click #restore ':'restore'588 'click #comparetwo': 'compareTwo', 589 'click #restore-revision': 'restore' 595 590 }, 596 591 597 592 // render the revisions … … 613 608 } 614 609 } 615 610 } else { // end compare two revisions mode, eg only one slider handle 616 this.comparetwochecked = '';617 611 if ( this.model.at( Diff.rightDiff - 1 ) ) { 618 612 addHtml = this.template( this.model.at( Diff.rightDiff - 1 ).toJSON() ); 619 613 } … … 621 615 this.$el.html( addHtml ); 622 616 623 617 if ( this.model.length < 2 ) { 624 $( '#diff slider' ).hide(); // don't allow compare two if fewer than three revisions618 $( '#diff-slider' ).hide(); // don't allow compare two if fewer than three revisions 625 619 $( '.diff-slider-ticks-wrapper' ).hide(); 626 620 } 627 621 … … 640 634 641 635 // hide the restore button when on the last sport/current post data 642 636 if ( Diff.rightDiff === Diff.revisions.length ){ 643 $( '#restore ' ).hide();637 $( '#restore-revision' ).hide(); 644 638 } else { 645 $( '#restore ' ).show();639 $( '#restore-revision' ).show(); 646 640 } 647 641 648 642 return this; … … 651 645 toogleCompareTwoCheckbox: function() { 652 646 // don't allow compare two if fewer than three revisions 653 647 if ( this.model.length < 3 ) 654 $( '# comparetworevisions' ).hide();648 $( '#toogle-revision-compare-mode' ).hide(); 655 649 656 650 $( '#comparetwo' ).prop( 'checked', ! Diff.singleRevision ); 657 651 }, 658 652 659 653 // turn on/off the compare two mode 660 654 compareTwo: function() { 661 if ( $( ' input#comparetwo' ).is( ':checked' ) ) { // compare 2 mode655 if ( $( '#comparetwo' ).is( ':checked' ) ) { // compare 2 mode 662 656 Diff.singleRevision = false ; 663 657 664 658 if ( 1 === Diff.rightDiff ) -
wp-admin/css/colors-fresh.css
1379 1379 background-color: #e9f6ea; 1380 1380 } 1381 1381 1382 .diff-to-title{1383 color: #0080 AA;1382 #diff-title-to strong { 1383 color: #0080aa; 1384 1384 } 1385 1385 1386 #diffsubheader{1386 .diff-header { 1387 1387 background-color: #f7f7f7; 1388 1388 } 1389 1389 1390 .comparetwo#diffsubheader.diff-left-hand-meta-row { 1391 background-color: #fcfcfc; 1392 } 1393 1394 .revision-tick.revision-toloadtrue { 1390 .revision-tick.loading-true { 1395 1391 background-color: #9999cc; 1396 1392 background: url(../images/wpspin_light.gif) no-repeat; 1397 1393 background-position: middle; 1398 1394 background-size: 1px 10px; 1399 1395 } 1400 1396 1401 .revision-tick. revision-toloadfalse {1397 .revision-tick.loading-false { 1402 1398 background-color: #aaa; 1403 1399 } 1404 1400 1405 #att-info {1406 background-color: #e4f2Fd;1407 }1408 1409 1401 body .ui-tooltip { 1410 1402 border-color: #d7d7d7; 1411 1403 background-color: #fff; -
wp-admin/css/wp-admin.css
3617 3617 11.2 - Post Revisions 3618 3618 ------------------------------------------------------------------------------*/ 3619 3619 3620 /* Revision meta box */ 3621 .post-revisions li img { 3622 vertical-align: middle; 3623 } 3624 3620 3625 table.diff { 3621 3626 width: 100%; 3622 3627 } … … 3653 3658 text-decoration: none; 3654 3659 } 3655 3660 3656 #revisions-meta-mostrecent, 3657 #revisions-meta-stored, 3658 #revisions-meta-oldest, 3659 #revisions-meta-link { 3660 line-height: 30px; 3661 height: 30px; 3662 vertical-align: middle; 3663 padding-right: 10px; 3661 #revision-diff-container { 3662 position: relative; 3664 3663 } 3665 3664 3666 #revisions-meta-mostrecent img, 3667 #revisions-meta-oldest img { 3668 vertical-align: middle; 3665 #toogle-revision-compare-mode { 3666 position: absolute; 3667 top: 0; 3668 right: 0; 3669 padding-top: 15px; 3669 3670 } 3670 3671 3671 .diff-from-title, 3672 .diff-to-title { 3673 font-size: 14px; 3674 font-weight: bold; 3675 width:60px; 3676 text-align: right; 3677 float: left; 3678 margin-right: 5px; 3672 #loading-status { 3673 position: absolute; 3674 top: 0; 3675 right: 170px; 3676 line-height: 30px; 3677 display: none; 3678 margin: 9px 0 0; 3679 3679 } 3680 3680 3681 .revisiondiffcontainer {3682 width: 96%;3681 #loading-status .spinner { 3682 float: left; 3683 3683 } 3684 3684 3685 .revisiondiffcontainer input.button { 3686 margin: 2px; 3685 #revision-interact { 3686 border-bottom: 1px solid #dfdfdf; 3687 padding: 20px 0; 3687 3688 } 3688 3689 3689 #diff next {3690 float: right; 3691 margin- right: 5px;3690 #diff-next-revision, 3691 #diff-previous-revision { 3692 margin-top: -.4em; /* Same line as the slider (height: .8em) */ 3692 3693 } 3693 3694 3694 #diff restore input{3695 margin-left: 10px;3695 #diff-next-revision { 3696 float: right; 3696 3697 } 3697 3698 3698 #diffprevious, 3699 #difftitle, 3700 #difftitlefrom, 3701 #diff_from_current_revision { 3699 #diff-previous-revision { 3702 3700 float: left; 3703 margin-left: 5px;3704 height: 35px;3705 3701 } 3706 3702 3707 #diff previous,3708 #diffnext { 3709 height: 30px;3703 #diff-slider{ 3704 width: 70%; 3705 margin: 0 auto; 3710 3706 } 3711 3707 3712 #diffheader, #diffsubheader { 3713 clear: both; 3714 width: 100%; 3708 .comparetwo #diff-slider { 3709 width: 95%; 3715 3710 } 3716 3711 3717 #diffheader {3718 border-bottom: 1px solid #dfdfdf;3719 width: 100%;3720 height: 40px;3721 line-height: 40px;3722 padding-top: 30px;3723 }3724 3725 #diffsubheader,.diff-left-hand-meta-row {3726 width: 100%;3727 height:35px;3728 line-height: 35px;3729 display: block;3730 }3731 3732 #diffslider{3733 width: 70%;3734 margin-left: auto;3735 margin-right: auto;3736 text-align: center;3737 height: 0.8em;3738 margin-top: 20px;3739 }3740 3741 3712 .diff-slider-ticks-wrapper { 3742 margin-left: auto; 3743 margin-right: auto; 3713 margin: 0 auto; 3744 3714 text-align: center; 3745 3715 } 3746 3716 3747 3717 #diff-slider-ticks { 3748 3718 position: absolute; 3749 margin-top: 50px;3750 3719 z-index: 1; 3720 margin-top: 20px; 3751 3721 } 3752 3722 3753 #revisioncount { 3754 width: 50%; 3755 margin-left: auto; 3756 margin-right: auto; 3757 margin-top: 0; 3758 line-height: 1em; 3759 height: 1em; 3760 text-align: center; 3761 clear: none; 3762 padding: 5px; 3723 .diff-header { 3724 height: 35px; 3725 line-height: 35px; 3763 3726 } 3764 3727 3765 . revisiondiffcontainer{3766 margin-top: 10px;3728 .diff-title { 3729 float: left; 3767 3730 } 3768 3731 3769 #diffsliderwrap { 3770 width: 80%; 3771 margin-left: auto; 3772 margin-right: auto; 3732 .diff-title strong { 3733 font-size: 14px; 3734 width: 60px; 3735 text-align: right; 3736 float: left; 3737 margin-right: 5px; 3773 3738 } 3774 3739 3775 #diffsliderwrap #sliderinner { 3776 position: relative; 3777 top: 47px; 3740 .diff-title img { 3741 vertical-align: middle; 3778 3742 } 3779 3743 3780 #removedandadded { 3744 #restore-revision { 3745 margin-left: 10px; 3746 } 3747 3748 .diff-col-titles { 3749 font-size: 16px; 3781 3750 width: 100%; 3782 padding-bottom: 30px; 3783 padding-top: 3px; 3784 font-size: 16px; 3751 margin: 20px 0 10px; 3785 3752 } 3786 3753 3787 #removed,3788 #added {3754 .diff-col-title-added, 3755 .diff-col-title-removed { 3789 3756 width: auto; 3790 3757 text-align: left; 3791 padding-left: 5px;3792 padding-right: 5px;3793 padding-top: 5px;3794 padding-bottom: 5px;3795 3758 float: left; 3759 width: 48%; 3796 3760 } 3797 3761 3798 .diffsplit #added { 3799 float: right; 3800 width: 47%; 3801 text-align: left; 3762 .diff-col-title-added span, 3763 .diff-col-title-removed span { 3764 padding: .5em; 3802 3765 } 3803 3766 3804 .diffsplit #removedandadded { 3805 width: 100%; 3806 } 3807 3808 #added { 3809 padding-left: 10px; 3767 .diff-col-title-added { 3768 float: right; 3810 3769 color: #00a100; 3811 3770 } 3812 3771 3813 #removed { 3814 padding-left: 0px; 3772 .diff-col-title-removed { 3815 3773 color: #d2281f; 3816 3774 } 3817 3775 3818 #comparetworevisions { 3819 float: right; 3820 position: absolute; 3821 top: 10px; 3822 right: 10px; 3823 line-height: 35px; 3824 padding-right: 5px; 3825 } 3826 3827 #comparetworevisions input { 3828 margin-right: 2px; 3829 } 3830 3831 #difftitle img, 3832 #difftitlefrom img, 3833 .post-revisions li img { 3834 vertical-align: middle; 3835 margin-left: 5px; 3836 } 3837 .post-revisions li { 3838 vertical-align: middle; 3839 height: 28px; 3840 } 3841 3842 #showsplitviewoption, 3843 #toggleshowautosavesoption { 3844 float: right; 3845 padding-left: 10px; 3846 padding-right: 10px; 3847 } 3848 3849 #revisionoptions { 3850 margin-top: 0px; 3851 line-height: 40px; 3852 clear: both; 3853 width: 100%; 3854 } 3855 3856 .comparetwo #diffslider { 3857 width: 95%; 3858 } 3859 3860 .comparetwo #diffprevious, 3861 .comparetwo #diffnext, 3862 span#diff_left_current_revision, 3863 #diff_from_current_revision, 3864 .currentversion span#diff_left_count, 3865 .currentversion span#diff_left_count_inner, 3866 .comparetwo.currentversion #diff_from_current_revision, 3867 #diffsubheader.diff-left-hand-meta-row { 3776 .compare-two-revisions #diff-previous-revision, 3777 .compare-two-revisions #diff-next-revision, 3778 #diff-title-from-current-version, 3779 .compare-two-revisions.current-version #diff-title-from-current-version, 3780 #diff-header-from { 3868 3781 display: none; 3869 3782 } 3870 3783 3871 .currentversion span#diff_left_current_revision, 3872 span#diff_left_count, 3873 span#diff_left_count_inner, 3874 .comparetwo #difftitlefrom, 3875 .leftmodelloading #modelsloading, 3876 .rightmodelloading #modelsloading, 3877 .leftmodelloading #modelsloading .spinner, 3878 .rightmodelloading #modelsloading .spinner, 3879 .comparetwo #diffsubheader.diff-left-hand-meta-row { 3784 .compare-two-revisions #diff-title-from, 3785 .left-model-loading #loading-status, 3786 .right-model-loading #loading-status, 3787 .left-model-loading #loading-status .spinner, 3788 .right-model-loading #loading-status .spinner, 3789 .compare-two-revisions #diff-header-from { 3880 3790 display: block; 3881 3791 } 3882 3792 3883 3793 .revision-tick { 3884 3794 width: 1px; 3885 3795 float: left; 3886 margin -right: 15px;3887 height: 11px;3796 margin: 1px 15px 0 0; 3797 height: .8em; 3888 3798 padding: 0; 3889 3799 margin-left: 0px; 3890 3800 } 3891 3801 3892 .revision-tick. revision-scopeofchanges-vsmall {3893 3894 3802 .revision-tick.scope-of-changes-vsmall { 3803 width: 1px; 3804 background-color: #aaa; 3895 3805 } 3896 3806 3897 .revision-tick. revision-scopeofchanges-small {3898 3899 3900 3807 .revision-tick.scope-of-changes-small { 3808 width: 2px; 3809 background-color: #aaa; 3810 margin-left: -1px; 3901 3811 } 3902 3812 3903 .revision-tick. revision-scopeofchanges-med {3904 3905 3906 3813 .revision-tick.scope-of-changes-med { 3814 width: 3px; 3815 margin-left: -2px; 3816 background-color: #666; 3907 3817 } 3908 3818 3909 .revision-tick. revision-scopeofchanges-large {3910 3911 3912 3819 .revision-tick.scope-of-changes-large { 3820 width: 4px; 3821 margin-left: -3px; 3822 background-color: #333; 3913 3823 } 3914 3824 3915 .revision-tick. revision-scopeofchanges-vlarge {3916 3917 3918 3919 3825 .revision-tick.scope-of-changes-vlarge { 3826 margin-left: -3px; 3827 width: 4px; 3828 background-color: #111; 3829 left: 1; 3920 3830 } 3921 3831 3922 3832 .diff-loading { … … 3924 3834 width: 100%; 3925 3835 height: 200px; 3926 3836 } 3927 .diff-loading .spinner 3928 {3837 3838 .diff-loading .spinner { 3929 3839 clear: both; 3930 3840 margin-left: auto; 3931 3841 margin-right: auto; … … 3933 3843 float: none; 3934 3844 } 3935 3845 3936 #modelsloading {3937 float: right;3938 position: absolute;3939 line-height: 30px;3940 display: none;3941 clear: none;3942 right: 170px;3943 margin-top: -40px;3944 }3945 3946 #modelsloading .spinner {3947 float: left;3948 }3949 3950 3846 .ui-tooltip-content img { 3951 3847 float: left; 3952 3848 margin-right: 5px; 3953 3849 } 3954 3850 3955 3851 3956 3957 3852 /* jQuery UI Tooltip 1.10.1 */ 3958 3853 3959 3854 .ui-tooltip { … … 3985 3880 margin-left: -35px; 3986 3881 bottom: -16px; 3987 3882 z-index: 99999; 3988 3989 3883 } 3990 3884 3991 3885 .arrow.top { -
wp-admin/css/colors-classic.css
1476 1476 background-color: #e9f6ea; 1477 1477 } 1478 1478 1479 #diffsubheader{1479 .diff-header { 1480 1480 background-color: #f7f7f7; 1481 1481 } 1482 1482 1483 # att-info{1484 background-color: #e4f2fd;1483 #diff-title-to strong { 1484 color: #0080aa; 1485 1485 } 1486 1486 1487 .revision-tick.loading-true { 1488 background-color: #9999cc; 1489 background: url(../images/wpspin_light.gif) no-repeat; 1490 background-position: middle; 1491 background-size: 1px 10px; 1492 } 1493 1494 .revision-tick.loading-false { 1495 background-color: #aaa; 1496 } 1497 1487 1498 /* jQuery UI Slider */ 1488 1499 .wp-slider.ui-slider { 1489 1500 border-color: #d1e5ee; -
wp-admin/revision.php
75 75 $parent_file = $submenu_file = 'edit.php?post_type=' . $post->post_type; 76 76 else 77 77 $parent_file = $submenu_file = 'edit.php'; 78 78 79 wp_enqueue_script( 'revisions' ); 79 80 80 require_once( './admin-header.php' );81 82 81 $strings = array( 83 82 'diffFromTitle' => _x( 'From: %s', 'revision from title' ), 84 83 'diffToTitle' => _x( 'To: %s', 'revision to title' ) … … 91 90 ); 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="currentversion rightmodelloading"> 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 121 <input type="checkbox" id="comparetwo" /> 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 173 169 require_once( './admin-footer.php' );