1jQuery(document).ready(function( $ ) { 2 3 var $body = $( 'body' ); 4 5 $body.addClass( 'slate-admin-theme' ); 6 7 // Move elements inside #post-body-content 8 // WordPress Version 4.0 - 4.2 9 if ( $body.is( '.branch-4' ) || $body.is( '.branch-4-0' ) || $body.is( '.branch-4-1' ) || $body.is( '.branch-4-2' ) ) { 10 $( '.wrap > h2, #screen-meta-links, #screen-meta' ).prependTo( '#post-body-content' ); 11 12 // Move messages 13 if ( $( '.wrap > .updated, .wrap > .error' ).length != 0 && $( '#post-body-content' ).length != 0 ) { 14 $( '.wrap > .updated, .wrap > .error' ).insertBefore( '#post-body-content h2' ); 15 } 16 17 // Move elements on Tags/Category pages 18 if ( $( '.edit-tags-php #col-right' ).length != 0 ) { 19 $( '.wrap > h2, .wrap > #ajax-response, .wrap > .search-form, .wrap > br' ).prependTo( '#col-right' ); 20 } 21 } 22 23 // WordPress Version 4.3 24 if ( $body.is( '.branch-4-3' ) ) { 25 $( '.wrap > h1, #screen-meta-links, #screen-meta' ).prependTo( '#post-body-content' ); 26 27 // Move messages 28 var $messages = $( '.wrap > .updated, .wrap > .error, .wrap > .notice, #wpbody-content > .updated, #wpbody-content > .error, #wpbody-content > .notice, #wpbody-content > .update-nag' ); 29 if ( $messages.length != 0 && $( '#post-body-content' ).length != 0 ) { 30 $messages.insertBefore( '#post-body-content h1' ); 31 } 32 } 33 if ( $body.is( '.edit-tags-php.branch-4-3' ) ) { 34 // Move elements on Tags/Category pages 35 $( '.wrap > h1, .wrap > #ajax-response, .wrap > .search-form, .wrap > br, .wrap > .updated, .wrap > .error, .wrap > .notice, #wpbody-content > .updated, #wpbody-content > .error, #wpbody-content > .notice' ).prependTo( '#col-right .col-wrap' ); 36 } 37 38 // WordPress Version 4.4 or 4.5 39 if ( $body.is( '.branch-4-4' ) || $body.is( '.branch-4-5' ) ) { 40 // Move Elements 41 $( '.wrap > h1, #screen-meta-links, #screen-meta' ).prependTo( '#post-body-content' ); 42 } 43 if ( $body.is( '.edit-tags-php.branch-4-4' ) || $body.is( '.edit-tags-php.branch-4-5' ) ) { 44 // Move elements on Tags/Category pages 45 $( '.wrap > h1, .wrap > #ajax-response, .wrap > .search-form, .wrap > br, .wrap > .updated, .wrap > .error' ).prependTo( '#col-right .col-wrap' ); 46 } 47 48 // WordPress Version 4.6 49 if ( $body.is( '.branch-4-6' ) ) { 50 // Move Elements 51 $( '.wrap > h1, #screen-meta-links, #screen-meta' ).prependTo( '#post-body-content' ); 52 } 53 if ( $body.is( '.edit-tags-php.branch-4-6' ) ) { 54 // Move elements on Tags/Category pages 55 $( '.wrap > h1, .wrap > #ajax-response, .wrap > .search-form, .wrap > br, .wrap > .updated, .wrap > .error' ).prependTo( '#col-right .col-wrap' ); 56 } 57 58 // WordPress Version 4.7, 4.8, 4.9 59 if ( $body.is( '.branch-4-7' ) || $body.is( '.branch-4-8' ) || $body.is( '.branch-4-9' ) ) { 60 // Move Elements 61 $( '.wrap > h1, #screen-meta-links, #screen-meta' ).prependTo( '#post-body-content' ); 62 // Move elements on Posts page 63 $( '.page-title-action' ).appendTo( '.wp-heading-inline' ); 64 } 65 if ( $body.is( '.edit-tags-php.branch-4-7' ) || $body.is( '.edit-tags-php.branch-4-8' ) || $body.is( '.edit-tags-php.branch-4-9' ) ) { 66 // Move elements on Tags/Category pages 67 $( '.wrap > h1, .wrap > #ajax-response, .wrap > .search-form, .wrap > br, .wrap > .updated, .wrap > .error' ).prependTo( '#col-right .col-wrap' ); 68 } 69 70 // Add background divs 71 if ($('#poststuff #side-sortables').length != 0 && !$('body').is('.index-php')) { 72 $('#side-sortables').before('<div id="side-sortablesback"></div>'); 73 } 74 if ($('.edit-tags-php #col-left').length != 0) { 75 $('.edit-tags-php #col-left').before('<div id="col-leftback"></div>'); 76 } 77 if ($('.comment-php #submitdiv').length != 0) { 78 $('.comment-php #submitdiv').before('<div id="submitdiv-back"></div>'); 79 } 80 81 // Move Post State span 82 if (($('span.post-state').length != 0) && ($('span.post-state').parent().is('td') == false)) { 83 $('span.post-state').each(function() { 84 $(this).insertBefore($(this).parent()); 85 }); 86 } 87 88});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.