![]() |
|
sfJQueryLightboxPlugin - 1.1.1JQuery image lightbox effect. |
|
![]() |
21
users
Sign-in
to change your status |
This helper transfomrs image link into fully featured lightbox effect using jQuery. Automatically creates gallery. Demo available. |
This helper transforms image link into fully featured lightbox effect. Automatically creates gallery.
| Name | Status | |
|---|---|---|
|
|
lead | lp.ten.traofni <<ta>> rutra |
Copyright (c) 2009 Artur Rozek - artur(at)infoart.net.pl
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
| Version | License | API | Released |
|---|---|---|---|
| 1.1.1stable | MIT | 1.1.1stable | 02/01/2010 |
| 1.0.0stable | MIT | 1.0.0stable | 17/07/2009 |
| Version | License | API | Released |
|---|---|---|---|
| 1.1.1stable | MIT | 1.1.1stable | 02/01/2010 |
| 1.0.0stable | MIT | 1.0.0stable | 17/07/2009 |
| Version | License | API | Released |
|---|---|---|---|
| 1.1.1stable | MIT | 1.1.1stable | 02/01/2010 |
| 1.0.1stable | MIT | 1.0.1stable | 20/07/2009 |
| 1.0.0stable | MIT | 1.0.0stable | 17/07/2009 |
Pear package and docs bugs fixed.
First release
This helper transfomrs image link into fully featured lightbox effect. Automatically creates gallery.
This plugin uses awesome jQuery library and jQueryLightBox plugin by Leandro Vieira Pinho.
$ symfony plugin:install sfJQueryLightBoxPlugin
$ symfony cache:clear
This plugin requires JqueryReloadedPlugin.
Place jQuery helper in your layout (or settings.yml):
<?php use_helper("jQuery") ?>
And place JQueryLightbox helper somewhere inside your body tag
<?php use_helper("sfJQueryLightbox") ?>
In template place light_image() function for every image you want to have lightbox effect:
<?php echo light_image($thumbnail_url, $full_image_url, array('title' => $image_title )); ?>
Function light_image() have following syntax:
light_image($thumb_url, $image_url, $image_link_options = array(), $thumb_options = array() )
Where:
In your app.yml file you can customize images used for displaying next, prev, close butons and text 'Image X of X':
all:
sf_jquery_lightbox:
css_dir: '/sfJQueryLightboxPlugin/css/'
js_dir: '/sfJQueryLightboxPlugin/js/'
imageLoading: '/sfJQueryLightboxPlugin/images/lightbox-ico-loading.gif'
imageBtnClose: '/sfJQueryLightboxPlugin/images/lightbox-btn-close.gif'
imageBtnPrev: '/sfJQueryLightboxPlugin/images/lightbox-btn-prev.gif'
imageBtnNext: '/sfJQueryLightboxPlugin/images/lightbox-btn-next.gif'
imageBlank: '/sfJQueryLightboxPlugin/images/lightbox-blank.gif'
txtImage: 'Image'
txtOf: 'of'
