1 | <?php |
---|
2 | /* |
---|
3 | Plugin Name: AlwaysShowMetadata |
---|
4 | Version: auto |
---|
5 | Description: Always Show Metadata |
---|
6 | Plugin URI: http://piwigo.org/ext/extension_view.php?eid=856 |
---|
7 | Author: ddtddt |
---|
8 | Author URI: http://temmii.com/piwigo/ |
---|
9 | */ |
---|
10 | // +-----------------------------------------------------------------------+ |
---|
11 | // | AlwaysShowMetadata plugin for piwigo by TEMMII | |
---|
12 | // +-----------------------------------------------------------------------+ |
---|
13 | // | Copyright(C) 2017 - 2021 ddtddt http://temmii.com/piwigo/ | |
---|
14 | // +-----------------------------------------------------------------------+ |
---|
15 | // | This program is free software; you can redistribute it and/or modify | |
---|
16 | // | it under the terms of the GNU General Public License as published by | |
---|
17 | // | the Free Software Foundation | |
---|
18 | // | | |
---|
19 | // | This program is distributed in the hope that it will be useful, but | |
---|
20 | // | WITHOUT ANY WARRANTY; without even the implied warranty of | |
---|
21 | // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
---|
22 | // | General Public License for more details. | |
---|
23 | // | | |
---|
24 | // | You should have received a copy of the GNU General Public License | |
---|
25 | // | along with this program; if not, write to the Free Software | |
---|
26 | // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | |
---|
27 | // | USA. | |
---|
28 | // +-----------------------------------------------------------------------+ |
---|
29 | |
---|
30 | add_event_handler('loc_begin_picture','showmeta'); |
---|
31 | |
---|
32 | function showmeta(){ |
---|
33 | pwg_set_session_var('show_metadata', 1 ); |
---|
34 | } |
---|
35 | |
---|
36 | |
---|
37 | ?> |
---|