Last change
on this file since 3730 was
3298,
checked in by patdenice, 15 years ago
|
New extension added:
Lightbox (2.0.c)
|
File size:
589 bytes
|
Rev | Line | |
---|
[3298] | 1 | <?php |
---|
| 2 | /* |
---|
| 3 | Plugin Name: Lightbox |
---|
| 4 | Version: 2.0.c |
---|
| 5 | Description: Display pictures in a lightbox. |
---|
| 6 | Plugin URI: http://fr.piwigo.org/ext/extension_view.php?eid=280 |
---|
| 7 | Author: P@t |
---|
| 8 | Author URI: http://www.gauchon.com |
---|
| 9 | */ |
---|
| 10 | |
---|
| 11 | define('LIGHTBOX_PATH' , PHPWG_PLUGINS_PATH.basename(dirname(__FILE__)).'/'); |
---|
| 12 | |
---|
| 13 | add_event_handler('loc_end_index_thumbnails', 'lightbox_plugin', 40, 2); |
---|
| 14 | |
---|
| 15 | function lightbox_plugin($tpl_thumbnails_var, $pictures) |
---|
| 16 | { |
---|
| 17 | include(LIGHTBOX_PATH . 'lightbox.php'); |
---|
| 18 | return $tpl_thumbnails_var; |
---|
| 19 | } |
---|
| 20 | |
---|
| 21 | if (script_basename() == 'admin') |
---|
| 22 | include(dirname(__FILE__).'/admin/functions.inc.php'); |
---|
| 23 | |
---|
| 24 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.