AnonSec Shell
Server IP : 209.38.156.173  /  Your IP : 216.73.216.122   [ Reverse IP ]
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.1.2-1ubuntu2.22
Disable Function : NONE
Domains : 2 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/wp-content/plugins/optinmonster/assets/js/Utils/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /var/www/html/wp-content/plugins/optinmonster/assets/js/Utils/campaigns-block-settings.js
import ArchieIcon from '../Components/Icons/Archie';
import CampaignSelector from '../Components/Blocks/CampaignSelector';

const { __ } = wp.i18n;

/**
 * Get the settings to register the campaign selector block.
 *
 * Because we need to support older versions (<=5.7) this returns the
 * proper settings. Versions >=5.8 use the block.json approach.
 *
 * @since 2.6.10
 *
 * @returns {Object} The settings for the campaign selector block.
 */
export const getBlockSettings = () => {
	const wpVersion = parseFloat(OMAPI.wpVersion);
	const baseSettings = {
		icon: ArchieIcon,
		edit: CampaignSelector,
		save() {
			return null;
		},
	};
	const legacySettings = {
		title: OMAPI.i18n.title,
		description: OMAPI.i18n.description,
		category: 'embed',
		keywords: [
			__('Popup', 'optin-monster-api'),
			__('Form', 'optin-monster-api'),
			__('Campaign', 'optin-monster-api'),
			__('Email', 'optin-monster-api'),
			__('Conversion', 'optin-monster-api'),
		],
		attributes: {
			slug: {
				type: 'string',
			},
			followrules: {
				type: 'boolean',
				default: true,
			},
		},
	};

	return wpVersion >= 5.8 ? baseSettings : Object.assign(baseSettings, legacySettings);
};

Anon7 - 2022
AnonSec Team