✨ Magic File Manager

🚀 Hostinger Optimized
🖥️ Server: Apache
💻 System: Linux bom1plzcpnl503817.prod.bom1.secureserver.net 4.18.0-553.141.2.lve.el8.x86_64 #1 SMP Wed Jul 8 16:10:02 UTC 2026 x86_64
👤 User: pnj6a06usxf3 (9714991)
🐘 PHP: 8.1.34
🚫 Disabled: ✨ NONE

💻 Terminal

📁 /home/pnj6a06usxf3/public_html/shivshaktihospital.co.in
$

📄 archive-single-base.php

📁 Path: ./wp-content/plugins/pro-elements/modules/theme-builder/documents/archive-single-base.php
📊 Size: 1.47 KB
🔒 Perm: 0644
📝 MIME: text/x-php
<?php
namespace ElementorPro\Modules\ThemeBuilder\Documents;

use ElementorPro\Core\Utils;
use ElementorPro\Modules\ThemeBuilder\Module as ThemeBuilderModule;

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

abstract class Archive_Single_Base extends Theme_Page_Document {

	/**
	 * Document sub type meta key.
	 */
	const REMOTE_CATEGORY_META_KEY = '_elementor_template_sub_type';

	public static function get_sub_type() {
		return '';
	}

	public static function get_create_url() {
		$create_url = parent::get_create_url();

		$sub_type = static::get_sub_type();

		if ( $sub_type ) {
			$create_url = add_query_arg( static::REMOTE_CATEGORY_META_KEY, static::get_sub_type(), $create_url );
		}

		return $create_url;
	}

	/**
	 * @access public
	 */
	public function save_template_type() {
		parent::save_template_type();

		$this->save_sub_type_condition();
	}

	private function save_sub_type_condition() {
		$conditions_manager = ThemeBuilderModule::instance()->get_conditions_manager();

		$sub_type = Utils::_unstable_get_super_global_value( $_REQUEST, self::REMOTE_CATEGORY_META_KEY ); // phpcs:ignore WordPress.Security.NonceVerification.Recommended

		if ( ! empty( $sub_type ) && $conditions_manager->get_condition( $sub_type ) ) {
			$this->update_meta( self::REMOTE_CATEGORY_META_KEY, $sub_type );

			$conditions_manager->save_conditions( $this->post->ID, [
				[
					'include',
					$this->get_property( 'condition_type' ),
					$sub_type,
				],
			] );
		}
	}
}
← Back📥 Raw✏️ Edit🔒 Chmod
✨ File Manager Magic ✨