HEX
Server: LiteSpeed
System: Linux emerald.serverdnsnetwork.com 5.14.0-611.5.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Nov 11 08:09:09 EST 2025 x86_64
User: mahdetej (1135)
PHP: 8.1.34
Disabled: show_source, system, shell_exec, passthru, exec, popen, proc_open
Upload Files
File: /home/mahdetej/public_html/wp-content/plugins/jet-engine/includes/dashboard/base-tab.php
<?php
namespace Jet_Engine\Dashboard;

abstract class Base_Tab {

	abstract public function slug();

	abstract public function label();

	abstract public function load_config();

	public function condition() {
		return true;
	}

	/**
	 * Render tab on this hook
	 * @return [type] [description]
	 */
	public function hook() {
		return 'jet-engine/dashboard/tabs';
	}

	/**
	 * Returns assets needto be enqueued with this tab
	 * @return string|array
	 */
	public function assets() {
		return 'jet-engine-tab-manager';
	}

	/**
	 * Render tab callback
	 * @return [type] [description]
	 */
	public function render_tab() {
		?>
		<cx-vui-tabs-panel
				name="<?= $this->slug() ?>"
				label="<?= $this->label() ?>"
				key="<?= $this->slug() ?>"
		>
			<keep-alive>
				<jet-engine-tab-<?= $this->slug() ?> />
			</keep-alive>
		</cx-vui-tabs-panel>
		<?php
	}

	public function render_assets() {
	}

}