HEX
Server: LiteSpeed
System: Linux linux31.centraldnserver.com 4.18.0-553.83.1.lve.el8.x86_64 #1 SMP Wed Nov 12 10:04:12 UTC 2025 x86_64
User: salamatk (1501)
PHP: 8.1.33
Disabled: show_source, system, shell_exec, passthru, exec, popen, proc_open
Upload Files
File: //proc/self/cwd/wp-content/themes/xts-luman/framework/includes/classes/class-theme-features.php
<?php
/**
 * Theme features class
 *
 * @since 1.0.0
 * @package xts
 */

namespace XTS;

/**
 * Theme features class
 *
 * @since 1.0.0
 */
class Theme_Features extends Singleton {
	/**
	 * Theme features
	 *
	 * @var array
	 */
	public static $features = array();

	/**
	 * Register hooks and load base data.
	 *
	 * @since 1.0.0
	 */
	public function init() {
	}

	/**
	 * Add this theme support.
	 *
	 * @since 1.0.0
	 *
	 * @param string $key Feature key.
	 */
	public static function add( $key ) {
		self::$features[ $key ] = $key;
	}

	/**
	 * Remove this theme support.
	 *
	 * @since 1.0.0
	 *
	 * @param string $key Feature key.
	 */
	public static function remove( $key ) {
		unset( self::$features[ $key ] );
	}

	/**
	 * Does this theme support.
	 *
	 * @since 1.0.0
	 *
	 * @param string $key Feature key.
	 * @return bool
	 */
	public static function supports( $key ) {
		return isset( self::$features[ $key ] );
	}
}

Theme_Features::get_instance();