File "BlockButton.php"

Full Path: /home2/sdektunc/cepali.edu.mx/wp-content/plugins/smart-slider-3/Nextend/SmartSlider3/Application/Admin/Layout/Block/Forms/Button/BlockButton.php
File size: 738 bytes
MIME-type: text/x-php
Charset: utf-8

<?php


namespace Nextend\SmartSlider3\Application\Admin\Layout\Block\Forms\Button;

class BlockButton extends AbstractButtonLabel {

    protected $baseClass = 'n2_button';

    protected $color = 'blue';

    public function setBlue() {
        $this->color = 'blue';
    }

    public function setGreen() {
        $this->color = 'green';
    }

    public function setRed() {
        $this->color = 'red';
    }

    public function setGrey() {
        $this->color = 'grey';
    }

    public function setGreyDark() {
        $this->color = 'grey-dark';
    }

    public function getClasses() {

        $classes = parent::getClasses();

        $classes[] = $this->baseClass . '--' . $this->color;

        return $classes;
    }
}