<?php

namespace Hecate\Components\Hero;


use Hecate\Components\ComponentContainerBase;
use Hecate\Components\Traits\BuilderOverlayTrait;

class HeroComponent extends ComponentContainerBase {
	//  use BuilderOverlayTrait;

	public static $type         = 'hero';
	protected static $rootClass = 'hecate-hero';
	protected static $template  = 'components/hero';


	public function getSections() {
		return array(
			array(
				'id'       => $this->getSectionId(),
				'title'    => __( 'Hero', 'hecate' ),
				'panel'    => $this->getCurrentPanel(),
				'type'     => 'hecate-tab-section',
				'priority' => 2,
			),
		);
	}

	public function getWidthClasses() {
		$classes   = array();
		$widthType = $this->getAttribute( 'width' );
		if ( $widthType === 'container' ) {
			$classes[] = 'container';
		} else {
			$classes[] = 'w-100';
		}

		return implode( ' ', $classes );
	}

    public function getExtraWrapperClasses() {

        $classes = [$this->getComponentIdClass()];

        return $classes;
    }

}

