Обёртка для плагина jQuery Fancybox
Используем:
в представлении views/photos.php:
$this->widget('ext.yiiext.widgets.fancybox.EFancyboxWidget',array( // Селектор фото //'selector'=>'a[href$=\'.jpg\'],a[href$=\'.png\'],a[href$=\'.gif\']', // Включаем колесико мыши для перематывания картинок в пределах группы. // По умолчанию выключено. // 'enableMouseWheel'=>false, // [Свойства fancybox](http://fancybox.net/api/). 'options'=>array( // 'padding'=>10, // 'margin'=>20, // 'enableEscapeButton'=>true, // 'onComplete'=>'js:function() {$("#fancybox-wrap").hover(function() {$("#fancybox-title").show();}, function() {$("#fancybox-title").hide();});}', ), ));
Changelog
0.3 [] Fixed css. [] JS updated to version 1.3.4.
0.2
Warning: this version is not backwards compatible to 0.1.
[-] Remove all static helper methods. [-] Remove EFancyboxWidget::$gallery. Galleries are created from elements who have the same "rel" tag. [] JS updated to version 1.3.3. [] Fix default selector. [*] Introduce EFancyboxWidget::$options for plugin options.
0.1 [+] Initial public release.