Changeset 31361


Ignore:
Timestamp:
Feb 22, 2016, 1:17:53 PM (8 years ago)
Author:
ddtddt
Message:

[extensions] - manage_properties_photos - add manage by batch Manager check ED

Location:
extensions/manage_properties_photos
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • extensions/manage_properties_photos/initadmin.php

    r31360 r31361  
    11<?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// +-----------------------------------------------------------------------+
    221
    322//add admin menu
     
    2948}
    3049
    31 //add gest by batch Manager
     50//add manage by batch Manager
    3251add_event_handler('loc_end_element_set_global', 'MPP_loc_end_element_set_global');
    3352add_event_handler('element_set_global_action', 'MPP_element_set_global_action', EVENT_HANDLER_PRIORITY_NEUTRAL, 2);
     
    3857        global $template;
    3958  $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'); 
    4164
    4265  while ($row = pwg_db_fetch_assoc($propertieslist2))
    4366  {
    44     $propertieslist[$row['id_prop_pho']] = $row['wording'];
    45 
     67    $propertieslist[$row['id_prop_pho']] = trigger_change('AP_render_content', $row['wording']);
    4668  }
    4769$template->set_filename('MMPP', realpath(ADD_PROP_PHOTO_PATH.'mmp.tpl'));
  • extensions/manage_properties_photos/language/en_UK/plugin.lang.php

    r30702 r31361  
    11<?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// +-----------------------------------------------------------------------+
    221//admin
    322$lang['Manage properties photos'] = 'Manage properties photos';
     
    1433$lang['Properties List'] = 'Properties List';
    1534$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  
    11<?php
    22// +-----------------------------------------------------------------------+
    3 // | Piwigo - a PHP based photo gallery                                    |
     3// | Manage Properties Photos plugin for Piwigo                            |
    44// +-----------------------------------------------------------------------+
    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 |
    86// +-----------------------------------------------------------------------+
    97// | This program is free software; you can redistribute it and/or modify  |
     
    3331$lang['Property delete'] = 'Supprimer la propriété';
    3432$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  
    11<?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// +-----------------------------------------------------------------------+
    221/*
    322Plugin Name: Manage Properties Photos
     
    625Plugin URI: http://piwigo.org/ext/extension_view.php?eid=783
    726Author: ddtddt
    8 Author URI:
     27Author URI: http://temmii.com/
    928*/
    1029
    1130if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
    1231
    13 global $prefixeTable;
     32global $prefixTable;
    1433
    1534define('ADD_PROP_PHOTO_DIR' , basename(dirname(__FILE__)));
Note: See TracChangeset for help on using the changeset viewer.