[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@3.145.105.199: ~ $
<?php

namespace Elementor\Core\Isolation;

use Elementor\Plugin;
use Elementor\Modules\ElementorCounter\Module as Elementor_Counter_Module;
use Elementor\TemplateLibrary\Source_Local;

class Elementor_Adapter implements Elementor_Adapter_Interface {

	public function get_kit_settings() {
		return Plugin::$instance->kits_manager->get_kit_for_frontend()->get_settings();
	}

	public function get_main_post() {
		return Plugin::$instance->kits_manager->get_kit_for_frontend()->get_main_post();
	}

	public function is_active_kit_default() : bool {
		$kit_id = Plugin::$instance->kits_manager->get_active_id();

		if ( false === $kit_id || null === $kit_id ) {
			return false;
		}

		return esc_html__( 'Default Kit', 'elementor' ) === get_post( $kit_id )->post_title;
	}

	public function get_count( $key ): ?int {
		return Elementor_Counter_Module::instance()->get_count( $key );
	}

	public function set_count( $key, $count = 0 ): void {
		Elementor_Counter_Module::instance()->set_count( $key, $count );
	}

	public function increment( $key ): void {
		Elementor_Counter_Module::instance()->increment( $key );
	}

	public function is_key_allowed( $key ): bool {
		return Elementor_Counter_Module::instance()->is_key_allowed( $key );
	}

	public function get_template_type( $template_id ): string {
		return Source_Local::get_template_type( $template_id );
	}
}

Filemanager

Name Type Size Permission Actions
elementor-adapter-interface.php File 464 B 0644
elementor-adapter.php File 1.33 KB 0644
elementor-counter-adapter-interface.php File 328 B 0644
plugin-status-adapter-interface.php File 283 B 0644
plugin-status-adapter.php File 1.27 KB 0644
wordpress-adapter-interface.php File 864 B 0644
wordpress-adapter.php File 2.27 KB 0644