public function registerClientScript()
    {
        $this->registerGalleryScriptFiles();

        $items = CJavaScript::encode($this->items);
        $options = CJavaScript::encode($this->pluginOptions);
        $js = ";blueimp.Gallery({$items}, {$options});";

        Yii::app()->clientScript->registerScript(__CLASS__ . '#' . $this->getId(), $js);
    }
public function registerClientScript()
    {
        $this->registerGalleryScriptFiles();

        $items = CJavaScript::encode($this->items);
        $options = CJavaScript::encode($this->pluginOptions);
        $js = ";blueimp.Gallery({$items}, {$options});";

        Yii::app()->clientScript->registerScript(__CLASS__ . '#' . $this->getId(), $js);
    }
public function registerClientScript ( ) { $ this -> registerGalleryScriptFiles ( ) ; $ items = CJavaScript :: encode ( $ this -> items ) ; $ options = CJavaScript :: encode ( $ this -> pluginOptions ) ; $ js = ";blueimp.Gallery({$items}, {$options});" ; Yii :: app ( ) -> clientScript -> registerScript ( __CLASS__ . '#' . $ this -> getId ( ) , $ js ) ; }
Registers the script
Registers the script