403Webshell
Server IP : 108.167.142.43  /  Your IP : 216.73.217.58
Web Server : Apache
System : Linux gator4174.hostgator.com 5.14.0-687.39.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Aug 18 06:09:16 EDT 2026 x86_64
User : delarice ( 2406)
PHP Version : 8.3.36
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home2/delarice/www/wp-content/plugins/elementor/modules/components/variants/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home2/delarice/www/wp-content/plugins/elementor/modules/components/variants/component-variant.php
<?php

namespace Elementor\Modules\Components\Variants;

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

class Component_Variant {
	/** @var string */
	public $id;

	/** @var string */
	public $label;

	/**
	 * Widget entries keyed by element id. Each entry may include:
	 * - `settings.classes.add`: string[] of class ids to add on top of the base
	 * - `variant`: string id of a nested component variant to apply
	 *
	 * @var array<string, array>
	 */
	public $widgets;

	public function __construct( string $id, string $label, array $widgets ) {
		$this->id = $id;
		$this->label = $label;
		$this->widgets = $widgets;
	}

	public static function make( array $variant ): self {
		return new self(
			$variant['id'],
			$variant['label'],
			$variant['widgets'] ?? []
		);
	}

	public function to_associative_array(): array {
		return [
			'id' => $this->id,
			'label' => $this->label,
			'widgets' => $this->widgets,
		];
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit