AnonSec Shell
Server IP : 52.91.253.208  /  Your IP : 3.17.174.204   [ Reverse IP ]
Web Server : Apache
System : Linux ip-172-26-9-9 4.19.0-25-cloud-amd64 #1 SMP Debian 4.19.289-1 (2023-07-24) x86_64
User : daemon ( 1)
PHP Version : 7.3.18
Disable Function : NONE
Domains : 3 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/modal-for-elementor/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


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

Current File : /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/modal-for-elementor/plugin.php
<?php
namespace ElementorModal;

use ElementorModal\Widgets\ElementorModal;
use ElementorModal\Widgets\ElementorModalLoad;

if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

class ElementorModalPlugin {

	/**
	 * Plugin constructor.
	 */
	public function __construct() {
		$this->add_actions();
	}

	private function add_actions() {
		add_action( 'elementor/widgets/widgets_registered', [ $this, 'on_widgets_registered' ] );
	}

	public function on_widgets_registered() {
		$this->includes();
		$this->register_widget();
	}

	private function includes() {
		require __DIR__ . '/widgets/popup.php';
		require __DIR__ . '/widgets/popup-load.php';
	}

	private function register_widget() {
		\Elementor\Plugin::instance()->widgets_manager->register_widget_type( new ElementorModal() );
		\Elementor\Plugin::instance()->widgets_manager->register_widget_type( new ElementorModalLoad() );
        \Elementor\Plugin::instance()->elements_manager->add_category(
			'norewp-elements',
			[
				'title' => __( 'NoreWP\'s Elementor Modules', 'modal-for-elementor' ),
				'icon' => 'fa fa-plug'
			],
			1
		);
	}
}

new ElementorModalPlugin();

Anon7 - 2022
AnonSec Team