Swat/SwatToolLink.php
public function display()
    {
        if (!$this->visible) {
            return;
        }

        parent::display();

        $tag = $this->isSensitive()
            ? $this->getSensitiveTag()
            : $this->getInsensitiveTag();

        $tag->open();

        $icon_span = new SwatHtmlTag('span');

        if ($this->isSensitive()) {
            $icon_span->class = 'swat-tool-link-icon';
        } else {
            $icon_span->class =
                'swat-tool-link-icon swat-tool-link-icon-insensitive';
        }

        $icon_span->setContent('');

        $icon_span->display();

        $title_span = new SwatHtmlTag('span');
        $title_span->class = 'swat-tool-link-title';
        $title_span->setContent($this->title, $this->content_type);
        $title_span->display();

        $tag->close();
    }
public function display()
    {
        if (!$this->visible) {
            return;
        }

        parent::display();

        $tag = $this->isSensitive()
            ? $this->getSensitiveTag()
            : $this->getInsensitiveTag();

        $tag->open();

        $icon_span = new SwatHtmlTag('span');

        if ($this->isSensitive()) {
            $icon_span->class = 'swat-tool-link-icon';
        } else {
            $icon_span->class =
                'swat-tool-link-icon swat-tool-link-icon-insensitive';
        }

        $icon_span->setContent('');

        $icon_span->display();

        $title_span = new SwatHtmlTag('span');
        $title_span->class = 'swat-tool-link-title';
        $title_span->setContent($this->title, $this->content_type);
        $title_span->display();

        $tag->close();
    }
public function display ( ) { if ( ! $ this -> visible ) { return ; } parent :: display ( ) ; $ tag = $ this -> isSensitive ( ) ? $ this -> getSensitiveTag ( ) : $ this -> getInsensitiveTag ( ) ; $ tag -> open ( ) ; $ icon_span = new SwatHtmlTag ( 'span' ) ; if ( $ this -> isSensitive ( ) ) { $ icon_span -> class = 'swat-tool-link-icon' ; } else { $ icon_span -> class = 'swat-tool-link-icon swat-tool-link-icon-insensitive' ; } $ icon_span -> setContent ( '' ) ; $ icon_span -> display ( ) ; $ title_span = new SwatHtmlTag ( 'span' ) ; $ title_span -> class = 'swat-tool-link-title' ; $ title_span -> setContent ( $ this -> title , $ this -> content_type ) ; $ title_span -> display ( ) ; $ tag -> close ( ) ; }
Displays this tool link
Displays this tool link