PK œqhYî¶J‚ßFßF)nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/ $#$#$#

Dir : /home/trave494/tiktechtok.org/wp-content/plugins/jetpack/modules/calypsoify/
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
IP: 209.182.202.254
Choose File :

Url:
Dir : /home/trave494/tiktechtok.org/wp-content/plugins/jetpack/modules/calypsoify/mods-gutenberg.js

/* eslint-disable no-var */
/* global jQuery, wp, calypsoifyGutenberg */

jQuery( function ( $ ) {
	// Force fullscreen mode for iframed post editor.
	if (
		wp &&
		wp.data &&
		wp.data.select( 'core/edit-post' ) &&
		! wp.data.select( 'core/edit-post' ).isFeatureActive( 'fullscreenMode' )
	) {
		wp.data.dispatch( 'core/edit-post' ).toggleFeature( 'fullscreenMode' );
	}

	// Force fullscreen mode for iframed site editor.
	if (
		wp &&
		wp.data &&
		wp.data.select( 'core/edit-site' ) &&
		! wp.data.select( 'core/edit-site' ).isFeatureActive( 'fullscreenMode' )
	) {
		wp.data.dispatch( 'core/edit-site' ).toggleFeature( 'fullscreenMode' );
	}

	var editPostHeaderInception = setInterval( function () {
		var $closeButton = $( '.edit-post-fullscreen-mode-close__toolbar a' );
		if ( $closeButton.length < 1 ) {
			return;
		}
		clearInterval( editPostHeaderInception );

		if ( calypsoifyGutenberg.closeUrl ) {
			$closeButton.attr( 'href', calypsoifyGutenberg.closeUrl );
			$closeButton.attr( 'target', '_parent' );
		}
	} );

	$( 'body.revision-php a' ).each( function () {
		var href = $( this ).attr( 'href' );
		if ( href ) {
			$( this ).attr( 'href', href.replace( '&classic-editor', '' ) );
		}
	} );
} );