Uname:Linux server.rehabsharif.com 5.14.0-611.54.3.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 7 16:31:24 EDT 2026 x86_64

Base Dir : /home/nobi37te/public_html

User : nobi37te


403WebShell
403Webshell
Server IP : 172.67.134.116  /  Your IP : 216.73.216.38
Web Server : Apache
System : Linux server.rehabsharif.com 5.14.0-611.54.3.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 7 16:31:24 EDT 2026 x86_64
User : nobi37te ( 1003)
PHP Version : 8.2.33
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/nobi37te/www/wp-content/plugins/analogwp-templates/inc/elementor/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/nobi37te/www/wp-content/plugins/analogwp-templates/inc/elementor/trait-document.php
<?php
/**
 * Elementor document trait.
 *
 * @since 1.3.9
 * @package Analog
 */

namespace Analog\Elementor;

use Analog\Plugin;
use Elementor\Core\Settings\Manager;

trait Document {
	/**
	 * Holds the Post ID.
	 *
	 * @var false|int Post ID.
	 */
	private static $post_id;

	/**
	 * Document constructor.
	 */
	public function __construct() {
		if ( ! self::$post_id ) {
			self::$post_id = get_the_ID();
		}
	}

	/**
	 * Get Post ID.
	 *
	 * @since 1.3.11
	 * @return false|int
	 */
	public function get_post_id() {
		if ( Plugin::elementor()->editor->is_edit_mode() ) {
			$post_id = Plugin::elementor()->editor->get_post_id();
		} else {
			$post_id = get_the_ID();
		}

		return $post_id;
	}

	/**
	 * Get Elementor document type.
	 *
	 * @return mixed
	 */
	public function get_document_type() {
		$document = Plugin::elementor()->documents->get_doc_or_auto_save( $this->get_post_id() );
		if ( $document ) {
			$config = $document->get_config();

			return $config['type'];
		}

		return false;
	}

	/**
	 * Get a specific Elementor page setting.
	 *
	 * @param string $id Setting ID.
	 *
	 * @return mixed
	 */
	public function get_page_setting( $id ) {
		$page_settings_manager = Manager::get_settings_managers( 'page' );
		$page_settings_model   = $page_settings_manager->get_model( $this->get_post_id() );

		return $page_settings_model->get_settings( $id );
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit