Fork me on GitHub

Widget for jQuery Fancybox

Usage

in a view views/photos.php:

$this->widget('ext.yiiext.widgets.fancybox.EFancyboxWidget',array(
    // Selector for generate fancybox.
    //'selector'=>'a[href$=\'.jpg\'],a[href$=\'.png\'],a[href$=\'.gif\']',
    // Enable "mouse-wheel" to navigate throught gallery items.
    // Defaults to false.
    // 'enableMouseWheel'=>false,
    // [fancybox options](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.

Wrapper around fancybox.

Documentation

Downloads (Tags)

Resources