Uname: Linux premium294.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
Software: LiteSpeed
PHP version: 8.1.32 [ PHP INFO ] PHP os: Linux
Server Ip: 104.21.16.1
Your Ip: 216.73.216.223
User: mjbynoyq (1574) | Group: mjbynoyq (1570)
Safe Mode: OFF
Disable Function:
NONE

name : expired.js
( function () {
	/** globals wp, frmDom */

	if ( 'undefined' === typeof frmDom || 'undefined' === typeof wp ) {
		return;
	}

	const __ = wp.i18n.__;
	const { tag, div, a, img } = window.frmDom;
	const { maybeCreateModal, footerButton } = window.frmDom.modal;

	wp.hooks.addAction( 'frm_show_expired_modal', 'formidable', function () {
		const modal = maybeCreateModal( 'frm_expired_modal', {
			title: __( "You don't have access to do that", 'formidable-pro' ),
			content: getExpiredModalContent(),
		} );
		modal.classList.add( 'frm_common_modal' );

		const footer = modal.querySelector( '.frm_modal_footer' );
		if ( footer ) {
			footer.remove();
		}
	} );

	function getExpiredModalContent() {
		return div( {
			className: 'frmcenter inside',
			children: [
				img( { src: getProPluginUrl() + '/images/expired.svg' } ),
				tag(
					'h3',
					__( 'Your account license has expired', 'formidable-pro' )
				),
				div(
					__(
						'In order to access Pro features, please renew your subscription.',
						'formidable-pro'
					)
				),
				tag( 'br' ),
				div( {
					child: footerButton( {
						text: __( 'Renew', 'formidable-pro' ),
						buttonType: 'primary',
						href: 'https://formidableforms.com/account/downloads/?utm_source=WordPress&utm_medium=expired_modal&utm_campaign=liteplugin&utm_content=renew',
						target: '_blank',
						noDismiss: true,
					} ),
				} ),
				tag( 'br' ),
				div( {
					child: a( {
						className: 'dismiss',
						text: __( 'Not Now', 'formidable-pro' ),
					} ),
				} ),
			],
		} );
	}

	function getProPluginUrl() {
		const freePluginUrlSplitBySlashes = window.frmGlobal.url.split( '/' );
		freePluginUrlSplitBySlashes.pop();
		freePluginUrlSplitBySlashes.push( 'formidable-pro' );
		return freePluginUrlSplitBySlashes.join( '/' );
	}
} )();
© 2025 XylotrechusZ