| Server IP : 172.67.133.75 / Your IP : 162.159.115.10 Web Server : nginx/1.26.1 System : Linux HE9229 3.10.0-1160.el7.x86_64 #1 SMP Mon Oct 19 16:18:59 UTC 2020 x86_64 User : www ( 1000) PHP Version : 8.0.26 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /www/wwwroot/jl3_ph_com/wp-content/plugins/elementor/core/isolation/ |
Upload File : |
<?php
namespace Elementor\Core\Isolation;
use Elementor\Core\Common\Modules\Connect\Module as ConnectModule;
use Elementor\Plugin;
use Elementor\Modules\ElementorCounter\Module as Elementor_Counter_Module;
use Elementor\TemplateLibrary\Source_Local;
use Elementor\Utils;
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 );
}
public function get_tier(): string {
return Utils::has_pro() ? ConnectModule::ACCESS_TIER_PRO_LEGACY : ConnectModule::ACCESS_TIER_FREE;
}
}