| Server IP : 199.250.200.62 / Your IP : 216.73.217.89 Web Server : Apache System : Linux vps37394.inmotionhosting.com 3.10.0-1160.119.1.vz7.224.4 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64 User : jasonp18 ( 1000) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /home/jasonp18/www/wp-content/plugins/formidable-pro/js/admin/ |
Upload File : |
( function() {
/** globals wp, frmDom */
if ( 'undefined' === typeof frmDom || 'undefined' === typeof wp ) {
return;
}
const __ = wp.i18n.__;
const { tag, div, a, img } = frmDom;
const { maybeCreateModal, footerButton } = 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 more Pro features, please renew your subscription.', 'formidable-pro' ) ),
tag( 'br' ),
div({
child: footerButton({
text: __( 'Renew', 'formidable-pro' ),
buttonType: 'primary',
href: 'https://formidableforms.com/lite-upgrade/?utm_source=WordPress&utm_medium=expired_modal&utm_campaign=liteplugin&utm_content=renew',
noDismiss: true
})
}),
tag( 'br' ),
div({
child: a({
className: 'dismiss',
text: __( 'Not Now', 'formidable-pro' )
})
})
]
});
}
function getProPluginUrl() {
var freePluginUrlSplitBySlashes = frmGlobal.url.split( '/' );
freePluginUrlSplitBySlashes.pop();
freePluginUrlSplitBySlashes.push( 'formidable-pro' );
return freePluginUrlSplitBySlashes.join( '/' );
}
}() );