HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux ip-10-0-8-47 6.8.0-1021-aws #23~22.04.1-Ubuntu SMP Tue Dec 10 16:31:58 UTC 2024 aarch64
User: ubuntu (1000)
PHP: 8.1.2-1ubuntu2.22
Disabled: NONE
Upload Files
File: /var/www/javaapp.co.uk/wp-content/plugins/popup-builder/public/js/ExtensionsNotification.js
function SGPBExtensionsNotification()
{this.init();}
SGPBExtensionsNotification.prototype.init=function()
{this.closeExtensionNotificationPanel();this.dontShowAgain();this.closeProblemAlert();this.dontShowAgainProblemAlert();this.addToPopupMenuLinkColor();};SGPBExtensionsNotification.prototype.addToPopupMenuLinkColor=function()
{jQuery('a[href="edit.php?post_type='+SGPB_JS_EXTENSIONS_PARAMS.popupPostType+'&page='+SGPB_JS_EXTENSIONS_PARAMS.extendPage+'"]').css({color:"#55efc4"});jQuery('a[href="edit.php?post_type='+SGPB_JS_EXTENSIONS_PARAMS.popupPostType+'&page='+SGPB_JS_EXTENSIONS_PARAMS.extendPage+'"]').attr('href',SGPB_JS_EXTENSIONS_PARAMS.allExtensionsUrl);jQuery('a[href="edit.php?post_type='+SGPB_JS_EXTENSIONS_PARAMS.popupPostType+'&page='+SGPB_JS_EXTENSIONS_PARAMS.supportPage+'"]').attr('href',SGPB_JS_EXTENSIONS_PARAMS.supportUrl);};SGPBExtensionsNotification.prototype.closeProblemAlert=function()
{var closeButton=jQuery('.sgpb-problem-notice-close');if(!closeButton.length){return false;}
closeButton.bind('click',function(){jQuery('.sgpb-alert-problem').remove();});};SGPBExtensionsNotification.prototype.dontShowAgainProblemAlert=function()
{var dontShow=jQuery('.sgpb-problem-notice-dont-show');if(!dontShow.length){return false;}
dontShow.bind('click',function(){var data={action:'sgpb_dont_show_problem_alert',nonce:SGPB_JS_EXTENSIONS_PARAMS.nonce};jQuery.post(ajaxurl,data,function(responce){jQuery('.sgpb-alert-problem').remove();});});};SGPBExtensionsNotification.prototype.closeExtensionNotificationPanel=function()
{var closeButton=jQuery('.sgpb-extension-notice-close');if(!closeButton.length){return false;}
closeButton.bind('click',function(){jQuery('.sgpb-extensions-notices').remove();});};SGPBExtensionsNotification.prototype.dontShowAgain=function()
{var dontShow=jQuery('.sgpb-extension-notice-dont-show');if(!dontShow.length){return false;}
dontShow.bind('click',function(){var data={action:'sgpb_dont_show_extension_panel',nonce:SGPB_JS_EXTENSIONS_PARAMS.nonce};jQuery.post(ajaxurl,data,function(responce){jQuery('.sgpb-extensions-notices').remove();});});};jQuery(document).ready(function(){new SGPBExtensionsNotification();});