Rev | Line | |
---|
[3298] | 1 | <?php |
---|
| 2 | /* |
---|
| 3 | Plugin Name: Lightbox |
---|
[4621] | 4 | Version: auto |
---|
[3298] | 5 | Description: Display pictures in a lightbox. |
---|
[6373] | 6 | Plugin URI: http://piwigo.org/ext/extension_view.php?eid=280 |
---|
[3298] | 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.