extensions/mPrint/mPrint.php
/**
     * @desc adds the appropriate classes for included and ignored elements
     */
@desc adds the appropriate classes for included and ignored elements
@desc adds the appropriate classes for included and ignored elements
private function addApprClass() {
        if (count($this->exceptions)) {
            $hideElements = "";
            foreach ($this->exceptions as $index => $exemption)
                $hideElements .= '$("' . $exemption . '").addClass("hide-print");'."";
            Yii::app()->clientScript->registerScript('hidePrintClass', '
				$(function(){
					' . $hideElements . '
				});
            ');
        }
    }
private function addApprClass ( ) { if ( count ( $ this -> exceptions ) ) { $ hideElements = " " ; foreach ( $ this -> exceptions as $ index => $ exemption ) $ hideElements .= '$("' . $ exemption . '").addClass("hide-print");' . " " ; Yii :: app ( ) -> clientScript -> registerScript ( 'hidePrintClass' , '
				$(function(){
					' . $ hideElements . '
				});
            ' ) ; } }
@desc adds the appropriate classes for included and ignored elements
@desc adds the appropriate classes for included and ignored elements
//hide the elements which should not be printed (if any) //add the appropriate class which will be printed