HEX
Server: LiteSpeed
System: Linux server53.web-hosting.com 4.18.0-513.24.1.lve.1.el8.x86_64 #1 SMP Thu May 9 15:10:09 UTC 2024 x86_64
User: nahevttf (6494)
PHP: 8.0.30
Disabled: NONE
Upload Files
File: /home/nahevttf/public_html/wp-content/themes/woodmart/inc/modules/header-builder/elements/Root.php
<?php if ( ! defined('WOODMART_THEME_DIR')) exit('No direct script access allowed');

/**
 * ------------------------------------------------------------------------------------------------
 * Root element. Required for the structure only. Can hold one element only.
 * ------------------------------------------------------------------------------------------------
 */

if( ! class_exists( 'WOODMART_HB_Root' ) ) {
	class WOODMART_HB_Root extends WOODMART_HB_Element {

		public function __construct() {
			parent::__construct();
			$this->template_name = 'root';
		}

		public function map() {
			$this->args = array(
				'type' => 'root',
				'title' => esc_html__( 'Root', 'woodmart' ),
				'text' => esc_html__( 'Root', 'woodmart' ),
				'editable' => false,
				'container' => false,
				'edit_on_create' => false,
				'drag_target_for' => array(),
				'drag_source' => '',
				'removable' => false,
				'addable' => false,
				'class' => '',
				'it_works' => 'root',
				'content' => array()
			);
		}

	}

}