src/Netzmacht/Bootstrap/Buttons/ContentElement/ButtonElement.php
protected function compile()
    {
        $attributes = new Attributes();

        $this->setLinkTitle($attributes);
        $this->setHref($attributes);
        $this->setCssClass($attributes);
        $this->enableLightbox($attributes);
        $this->setDataAttributes($attributes);

        // Override the link target
        if ($this->target) {
            $attributes->setAttribute('target', '_blank');
        }

        if ($this->bootstrap_icon) {
            $this->Template->icon = Bootstrap::generateIcon($this->bootstrap_icon);
        }

        $this->Template->attributes = $attributes;
        $this->Template->link       = $this->linkTitle;
    }
protected function compile()
    {
        $attributes = new Attributes();

        $this->setLinkTitle($attributes);
        $this->setHref($attributes);
        $this->setCssClass($attributes);
        $this->enableLightbox($attributes);
        $this->setDataAttributes($attributes);

        // Override the link target
        if ($this->target) {
            $attributes->setAttribute('target', '_blank');
        }

        if ($this->bootstrap_icon) {
            $this->Template->icon = Bootstrap::generateIcon($this->bootstrap_icon);
        }

        $this->Template->attributes = $attributes;
        $this->Template->link       = $this->linkTitle;
    }
protected function compile ( ) { $ attributes = new Attributes ( ) ; $ this -> setLinkTitle ( $ attributes ) ; $ this -> setHref ( $ attributes ) ; $ this -> setCssClass ( $ attributes ) ; $ this -> enableLightbox ( $ attributes ) ; $ this -> setDataAttributes ( $ attributes ) ; // Override the link target if ( $ this -> target ) { $ attributes -> setAttribute ( 'target' , '_blank' ) ; } if ( $ this -> bootstrap_icon ) { $ this -> Template -> icon = Bootstrap :: generateIcon ( $ this -> bootstrap_icon ) ; } $ this -> Template -> attributes = $ attributes ; $ this -> Template -> link = $ this -> linkTitle ; }
Compile button element, inspired by ContentHyperlink.

@return void
Compile button element inspired by ContentHyperlink .