source: extensions/lightbox/main.inc.php @ 27777

Last change on this file since 27777 was 6373, checked in by patdenice, 15 years ago

Compatible Piwigo 2.1

File size: 585 bytes
Line 
1<?php
2/*
3Plugin Name: Lightbox
4Version: auto
5Description: Display pictures in a lightbox.
6Plugin URI: http://piwigo.org/ext/extension_view.php?eid=280
7Author: P@t
8Author URI: http://www.gauchon.com
9*/
10
11define('LIGHTBOX_PATH' , PHPWG_PLUGINS_PATH.basename(dirname(__FILE__)).'/');
12
13add_event_handler('loc_end_index_thumbnails', 'lightbox_plugin', 40, 2);
14
15function lightbox_plugin($tpl_thumbnails_var, $pictures)
16{
17  include(LIGHTBOX_PATH . 'lightbox.php');
18  return $tpl_thumbnails_var;
19}
20
21if (script_basename()  == 'admin')
22  include(dirname(__FILE__).'/admin/functions.inc.php');
23
24?>
Note: See TracBrowser for help on using the repository browser.