src/Netzmacht/Bootstrap/Buttons/ContentElement/ButtonElement.php
protected function enableLightbox(Attributes $attributes)
    {
        if (!$this->rel) {
            return;
        }

        if (strncmp($this->rel, 'lightbox', 8) !== 0) {
            $attributes->setAttribute('rel', $this->rel);
        } else {
            $attributes->setAttribute('data-lightbox', substr($this->rel, 9, -1));
        }
    }
protected function enableLightbox(Attributes $attributes)
    {
        if (!$this->rel) {
            return;
        }

        if (strncmp($this->rel, 'lightbox', 8) !== 0) {
            $attributes->setAttribute('rel', $this->rel);
        } else {
            $attributes->setAttribute('data-lightbox', substr($this->rel, 9, -1));
        }
    }
protected function enableLightbox ( Attributes $ attributes ) { if ( ! $ this -> rel ) { return ; } if ( strncmp ( $ this -> rel , 'lightbox' , 8 ) !== 0 ) { $ attributes -> setAttribute ( 'rel' , $ this -> rel ) ; } else { $ attributes -> setAttribute ( 'data-lightbox' , substr ( $ this -> rel , 9 , - 1 ) ) ; } }
Enable lightbox.

@param Attributes $attributes Link attributes.

@return void
Enable lightbox .