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

Last change on this file since 32893 was 32687, checked in by plg, 3 years ago

compatibility Piwigo 12

File size: 609 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
9Has Settings: webmaster
10*/
11
12define('LIGHTBOX_PATH' , PHPWG_PLUGINS_PATH.basename(dirname(__FILE__)).'/');
13
14add_event_handler('loc_end_index_thumbnails', 'lightbox_plugin', 40, 2);
15
16function lightbox_plugin($tpl_thumbnails_var, $pictures)
17{
18  include(LIGHTBOX_PATH . 'lightbox.php');
19  return $tpl_thumbnails_var;
20}
21
22if (script_basename()  == 'admin')
23  include(dirname(__FILE__).'/admin/functions.inc.php');
24
25?>
Note: See TracBrowser for help on using the repository browser.