source: extensions/AlwaysShowMetadata/main.inc.php @ 32882

Last change on this file since 32882 was 32383, checked in by ddtddt, 4 years ago

[AlwaysShowMetadata] piwigo 11

File size: 1.8 KB
Line 
1<?php
2/*
3Plugin Name: AlwaysShowMetadata
4Version: auto
5Description: Always Show Metadata
6Plugin URI: http://piwigo.org/ext/extension_view.php?eid=856
7Author: ddtddt
8Author 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
30add_event_handler('loc_begin_picture','showmeta');
31
32function showmeta(){
33  pwg_set_session_var('show_metadata', 1 );
34}
35
36
37?>
Note: See TracBrowser for help on using the repository browser.