Changeset 31361
- Timestamp:
- Feb 22, 2016, 1:17:53 PM (8 years ago)
- Location:
- extensions/manage_properties_photos
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/manage_properties_photos/initadmin.php
r31360 r31361 1 1 <?php 2 // +-----------------------------------------------------------------------+ 3 // | Manage Properties Photos plugin for Piwigo | 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2014-2016 ddtddt http://temmii.com | 6 // +-----------------------------------------------------------------------+ 7 // | This program is free software; you can redistribute it and/or modify | 8 // | it under the terms of the GNU General Public License as published by | 9 // | the Free Software Foundation | 10 // | | 11 // | This program is distributed in the hope that it will be useful, but | 12 // | WITHOUT ANY WARRANTY; without even the implied warranty of | 13 // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 // | General Public License for more details. | 15 // | | 16 // | You should have received a copy of the GNU General Public License | 17 // | along with this program; if not, write to the Free Software | 18 // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | 19 // | USA. | 20 // +-----------------------------------------------------------------------+ 2 21 3 22 //add admin menu … … 29 48 } 30 49 31 //add gestby batch Manager50 //add manage by batch Manager 32 51 add_event_handler('loc_end_element_set_global', 'MPP_loc_end_element_set_global'); 33 52 add_event_handler('element_set_global_action', 'MPP_element_set_global_action', EVENT_HANDLER_PRIORITY_NEUTRAL, 2); … … 38 57 global $template; 39 58 $propertieslist = array(); 40 $propertieslist2 = tab_add_info_by_photo(); 59 $propertieslist2 = tab_add_info_by_photo(); 60 61 $PAED = pwg_db_fetch_assoc(pwg_query("SELECT state FROM " . PLUGINS_TABLE . " WHERE id = 'ExtendedDescription';")); 62 if ($PAED['state'] == 'active') 63 add_event_handler('AP_render_content', 'get_user_language_desc'); 41 64 42 65 while ($row = pwg_db_fetch_assoc($propertieslist2)) 43 66 { 44 $propertieslist[$row['id_prop_pho']] = $row['wording']; 45 67 $propertieslist[$row['id_prop_pho']] = trigger_change('AP_render_content', $row['wording']); 46 68 } 47 69 $template->set_filename('MMPP', realpath(ADD_PROP_PHOTO_PATH.'mmp.tpl')); -
extensions/manage_properties_photos/language/en_UK/plugin.lang.php
r30702 r31361 1 1 <?php 2 // +-----------------------------------------------------------------------+ 3 // | Manage Properties Photos plugin for Piwigo | 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2014-2016 ddtddt http://temmii.com | 6 // +-----------------------------------------------------------------------+ 7 // | This program is free software; you can redistribute it and/or modify | 8 // | it under the terms of the GNU General Public License as published by | 9 // | the Free Software Foundation | 10 // | | 11 // | This program is distributed in the hope that it will be useful, but | 12 // | WITHOUT ANY WARRANTY; without even the implied warranty of | 13 // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 // | General Public License for more details. | 15 // | | 16 // | You should have received a copy of the GNU General Public License | 17 // | along with this program; if not, write to the Free Software | 18 // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | 19 // | USA. | 20 // +-----------------------------------------------------------------------+ 2 21 //admin 3 22 $lang['Manage properties photos'] = 'Manage properties photos'; … … 14 33 $lang['Properties List'] = 'Properties List'; 15 34 $lang['Properties additionals'] = 'Properties additionals'; 35 $lang['You need to confirm'] = 'Vous devez confirmer'; -
extensions/manage_properties_photos/language/fr_FR/plugin.lang.php
r30720 r31361 1 1 <?php 2 2 // +-----------------------------------------------------------------------+ 3 // | Piwigo - a PHP based photo gallery|3 // | Manage Properties Photos plugin for Piwigo | 4 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2008-2014 Piwigo Team http://piwigo.org | 6 // | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net | 7 // | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | 5 // | Copyright(C) 2014-2016 ddtddt http://temmii.com | 8 6 // +-----------------------------------------------------------------------+ 9 7 // | This program is free software; you can redistribute it and/or modify | … … 33 31 $lang['Property delete'] = 'Supprimer la propriété'; 34 32 $lang['Property photo add'] = 'Ajouter propriété à la photo'; 33 $lang['You need to confirm'] = 'Vous devez confirmer'; -
extensions/manage_properties_photos/main.inc.php
r30702 r31361 1 1 <?php 2 // +-----------------------------------------------------------------------+ 3 // | Manage Properties Photos plugin for Piwigo | 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2014-2016 ddtddt http://temmii.com | 6 // +-----------------------------------------------------------------------+ 7 // | This program is free software; you can redistribute it and/or modify | 8 // | it under the terms of the GNU General Public License as published by | 9 // | the Free Software Foundation | 10 // | | 11 // | This program is distributed in the hope that it will be useful, but | 12 // | WITHOUT ANY WARRANTY; without even the implied warranty of | 13 // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 // | General Public License for more details. | 15 // | | 16 // | You should have received a copy of the GNU General Public License | 17 // | along with this program; if not, write to the Free Software | 18 // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | 19 // | USA. | 20 // +-----------------------------------------------------------------------+ 2 21 /* 3 22 Plugin Name: Manage Properties Photos … … 6 25 Plugin URI: http://piwigo.org/ext/extension_view.php?eid=783 7 26 Author: ddtddt 8 Author URI: 27 Author URI: http://temmii.com/ 9 28 */ 10 29 11 30 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); 12 31 13 global $prefix eTable;32 global $prefixTable; 14 33 15 34 define('ADD_PROP_PHOTO_DIR' , basename(dirname(__FILE__)));
Note: See TracChangeset
for help on using the changeset viewer.