File: D:/HostingSpaces/SBogers10/wingssprayer.komma.pro/app/Components/ComponentType/Types/DoubleCta.php
<?php
namespace App\Components\ComponentType\Types;
use App\Components\ComponentType\ComponentTypes;
use Komma\KMS\Core\Attributes\Attribute;
use Komma\KMS\Core\Attributes\Documents;
use Komma\KMS\Core\Attributes\Models\ImageProperty;
use Komma\KMS\Core\Attributes\OnOff;
use Komma\KMS\Core\Attributes\Seperator;
use Komma\KMS\Core\Attributes\TextArea;
use Komma\KMS\Core\Attributes\TextField;
use Komma\KMS\Core\Attributes\Title;
class DoubleCta extends AbstractComponentType
{
public function __construct()
{
//Set an id that corresponds to the ComponentTypes enum
$this->id = ComponentTypes::DOUBLEUSP;
//Set icon and name
$this->name = 'double-cta';
parent::__construct();
$this->attributes->push((new TextArea())
->enableTinymceEditor()
->setLabelText(__('kms/attributes/components.left'))
->mapValueFrom(Attribute::ValueFromComponent, 'left')
);
$this->attributes->push((new TextArea())
->enableTinymceEditor()
->setLabelText(__('kms/attributes/components.right'))
->mapValueFrom(Attribute::ValueFromComponent, 'right')
);
}
}