https://github.com/sensorario/lyiightbox
Yii widget of Lightbox 2 script
https://github.com/sensorario/lyiightbox
Last synced: about 1 year ago
JSON representation
Yii widget of Lightbox 2 script
- Host: GitHub
- URL: https://github.com/sensorario/lyiightbox
- Owner: sensorario
- Created: 2011-09-19T13:13:06.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2018-02-24T17:00:20.000Z (over 8 years ago)
- Last Synced: 2025-04-09T20:07:01.020Z (about 1 year ago)
- Language: JavaScript
- Homepage: http://www.yiiframework.com/extension/lyiightbox/
- Size: 461 KB
- Stars: 6
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Install
-------
To install **lyiightbox** you could copy his files in folder
/protected/extensions/lyiightbox
lyiightbox.LightBox2
--------------------
To use this widget you can call it setting some parametes. If you want, you can
also hide some images with "visible" option. By default visible is set on true.
And if you want, you can group images with 'group' value. By default this value
is 'default'
widget('ext.lyiightbox.LyiightBox2', array(
'thumbnail' => '/path/to/thumb/images.jpg',
'image' => '/path/to/image/image.jpg',
'title' => 'Sample Image 1.',
'visible' => true,
'group' => 'myOwnGallery'
));
?>
lyiightbox.Galleryii
--------------------
Since version 1.1 where added a new feature: gallery. By default, you have to
put your images in /images/galleryii/ folder. Thumbnail will be placed in
/images/galleryii/thumbnails folder. Big images where be placed in
/images/galleryii/images folder. Thumb, and image, must have the same filename.
widget('ext.lyiightbox.Galleryii');
?>
If you want, you can configure this new feature. Maybe you need to place your
gallery in a different place!
widget('ext.lyiightbox.Galleryii', array(
'rootFolder' => '/place/of/gallery', // by default '';
'baseFolder' => '/images/galleryii', // by default '/images/galleryii';
'thumbnails' => '/thumbnails', // by default '/thumbnails';
'images' => '/images' // by default '/images';
));
?>