-
Notifications
You must be signed in to change notification settings - Fork 4
/
readme_ru.txt
23 lines (22 loc) · 871 Bytes
/
readme_ru.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Обёртка для плагина jQuery Fancybox
====================================
Используем:
----
в представлении `views/photos.php`:
~~~
[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();});}',
),
));
~~~