<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">jQuery(document).ready(function( $ ) {

	var $body = $( 'body' );

	$body.addClass( 'pathemaadmin-admin-theme' );

	// Move elements inside #post-body-content
	// WordPress Version 4.0 - 4.2
	if ( $body.is( '.branch-4' ) || $body.is( '.branch-4-0' ) || $body.is( '.branch-4-1' ) || $body.is( '.branch-4-2' ) ) {
		$( '.wrap &gt; h2, #screen-meta-links, #screen-meta' ).prependTo( '#post-body-content' );

		// Move messages
		if ( $( '.wrap &gt; .updated, .wrap &gt; .error' ).length != 0 &amp;&amp; $( '#post-body-content' ).length != 0 ) {
			$( '.wrap &gt; .updated, .wrap &gt; .error' ).insertBefore( '#post-body-content h2' );
		}

		// Move elements on Tags/Category pages
		if ( $( '.edit-tags-php #col-right' ).length != 0 ) {
			$( '.wrap &gt; h2, .wrap &gt; #ajax-response, .wrap &gt; .search-form, .wrap &gt; br' ).prependTo( '#col-right' );
		}
	}

	// WordPress Version 4.3
	if ( $body.is( '.branch-4-3' ) ) {
		$( '.wrap &gt; h1, #screen-meta-links, #screen-meta' ).prependTo( '#post-body-content' );

		// Move messages
		var $messages = $( '.wrap &gt; .updated, .wrap &gt; .error, .wrap &gt; .notice, #wpbody-content &gt; .updated, #wpbody-content &gt; .error, #wpbody-content &gt; .notice, #wpbody-content &gt; .update-nag' );
		if ( $messages.length != 0 &amp;&amp; $( '#post-body-content' ).length != 0 ) {
			$messages.insertBefore( '#post-body-content h1' );
		}
	}
	if ( $body.is( '.edit-tags-php.branch-4-3' ) ) {
		// Move elements on Tags/Category pages
		$( '.wrap &gt; h1, .wrap &gt; #ajax-response, .wrap &gt; .search-form, .wrap &gt; br, .wrap &gt; .updated, .wrap &gt; .error, .wrap &gt; .notice, #wpbody-content &gt; .updated, #wpbody-content &gt; .error, #wpbody-content &gt; .notice' ).prependTo( '#col-right .col-wrap' );
	}

	// WordPress Version 4.4 or 4.5
	if ( $body.is( '.branch-4-4' ) || $body.is( '.branch-4-5' ) ) {
		// Move Elements
		$( '.wrap &gt; h1, #screen-meta-links, #screen-meta' ).prependTo( '#post-body-content' );
	}
	if ( $body.is( '.edit-tags-php.branch-4-4' ) || $body.is( '.edit-tags-php.branch-4-5' ) ) {
		// Move elements on Tags/Category pages
		$( '.wrap &gt; h1, .wrap &gt; #ajax-response, .wrap &gt; .search-form, .wrap &gt; br, .wrap &gt; .updated, .wrap &gt; .error' ).prependTo( '#col-right .col-wrap' );
	}

	// WordPress Version 4.6
	if ( $body.is( '.branch-4-6' ) ) {
		// Move Elements
		$( '.wrap &gt; h1, #screen-meta-links, #screen-meta' ).prependTo( '#post-body-content' );
	}
	if ( $body.is( '.edit-tags-php.branch-4-6' ) ) {
		// Move elements on Tags/Category pages
		$( '.wrap &gt; h1, .wrap &gt; #ajax-response, .wrap &gt; .search-form, .wrap &gt; br, .wrap &gt; .updated, .wrap &gt; .error' ).prependTo( '#col-right .col-wrap' );
	}

	// WordPress Version 4.7, 4.8, 4.9
	if ( $body.is( '.branch-4-7' ) || $body.is( '.branch-4-8' ) || $body.is( '.branch-4-9' ) ) {
		// Move Elements
		$( '.wrap &gt; h1, #screen-meta-links, #screen-meta' ).prependTo( '#post-body-content' );
		// Move elements on Posts page
		$( '.page-title-action' ).appendTo( '.wp-heading-inline' );
	}
	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' ) ) {
		// Move elements on Tags/Category pages
		$( '.wrap &gt; h1, .wrap &gt; #ajax-response, .wrap &gt; .search-form, .wrap &gt; br, .wrap &gt; .updated, .wrap &gt; .error' ).prependTo( '#col-right .col-wrap' );
	}
	
	// Add background divs
	if ($('#poststuff #side-sortables').length != 0 &amp;&amp; !$('body').is('.index-php')) {
		$('#side-sortables').before('&lt;div id="side-sortablesback"&gt;&lt;/div&gt;');
	}
	if ($('.edit-tags-php #col-left').length != 0) {
		$('.edit-tags-php #col-left').before('&lt;div id="col-leftback"&gt;&lt;/div&gt;');
	}
	if ($('.comment-php #submitdiv').length != 0) {
		$('.comment-php #submitdiv').before('&lt;div id="submitdiv-back"&gt;&lt;/div&gt;');
	}

	// Move Post State span
	if (($('span.post-state').length != 0) &amp;&amp; ($('span.post-state').parent().is('td') == false)) {
		$('span.post-state').each(function() {
			$(this).insertBefore($(this).parent());
		});
	}

});
</pre></body></html>