41 'data-toggle' =>
'modal-gallery',
42 'data-target' =>
'#modal-gallery',
49 $booster->registerAssetCss(
'bootstrap-image-gallery' . (!YII_DEBUG ?
'.min' :
'') .
'.css');
50 $booster->registerAssetJs(
'fileupload/load-image.min.js');
51 $booster->registerAssetJs(
'bootstrap-image-gallery' . (!YII_DEBUG ?
'.min' :
'') .
'.js');
52 if ($this->fullScreen) {
53 Yii::app()->clientScript->registerScript(
55 'jQuery("#' . $this->
id .
'").addClass("modal-fullscreen");',
56 CClientScript::POS_READY
59 if (!$this->eventListener) {
60 Yii::app()->clientScript->registerScript($this->
id,
'$(document.body).off(".modal-gallery.data-api");');
62 if (!isset($this->htmlOptions[
'id'])) {
63 $this->htmlOptions[
'id'] = $this->id;
65 echo CHtml::openTag(
'div', CMap::mergeArray(self::$defaultHtmlOptions, $this->htmlOptions));
70 $this->render($this->previewImagesView);
71 echo CHtml::closeTag(
'div');