extensions/mPrint/mPrint.php
/**
     * @desc renders the link for printing the page
     */
@desc renders the link for printing the page
@desc renders the link for printing the page
private function showPrintLink() {
        $text = (strlen(trim($this->text)) > 0) ? $text = "&nbsp;" . $this->text : '';
                $img = $this->showIcon ? CHtml::image($this->printerIcon, $this->alt, array('title' => $this->tooltip)) : '';
        echo CHtml::link($img . $text, "", array_merge($this->htmlOptions, array('id' => $this->id)));
    }
private function showPrintLink ( ) { $ text = ( strlen ( trim ( $ this -> text ) ) > 0 ) ? $ text = " &nbsp; " . $ this -> text : '' ; $ img = $ this -> showIcon ? CHtml :: image ( $ this -> printerIcon , $ this -> alt , array ( 'title' => $ this -> tooltip ) ) : '' ; echo CHtml :: link ( $ img . $ text , " " , array_merge ( $ this -> htmlOptions , array ( 'id' => $ this -> id ) ) ) ; }
@desc renders the link for printing the page
@desc renders the link for printing the page
// Evaluate if the text should be displayed. If spaces are given, it is as // good as nothing // Should the icon be displayed?
