Changeset 11667 for extensions
- Timestamp:
- Jul 8, 2011, 5:58:37 PM (13 years ago)
- Location:
- extensions/pwgCumulus
- Files:
-
- 22 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/pwgCumulus/CHANGELOG
r11344 r11667 1 pwgCumulus 0.6.1 - 2011-07-08 2 ================================ 3 * Fix issue preventing config to be persistent. 4 Thanks to xtouf and Billr for reporting bug. 5 * Update Italian translations, thanks to rio. 6 1 7 pwgCumulus 0.6.0 - 2011-06-13 2 8 ================================ -
extensions/pwgCumulus/include/admin_menu.inc.php
r11344 r11667 20 20 // +-----------------------------------------------------------------------+ 21 21 22 if (!defined('PHPWG_ROOT_PATH')) { 23 die('Hacking attempt!'); 24 } 25 26 $save_config = false; 22 27 $Positions = array('before' => l10n('Before'), 23 28 'after' => l10n('After') 24 29 ); 25 26 $position_order = $me->position_order;27 $position_block_id = $me->position_block_id;28 30 29 31 include_once(PHPWG_ROOT_PATH.'include/block.class.php'); … … 37 39 } 38 40 39 if (!empty($_POST['pwg_cumulus_in_main_menu']) && !$me->pwg_cumulus_in_main_menu) { 40 $me->pwg_cumulus_in_main_menu = true; 41 $page['infos'][] = l10n('Tags cloud added in main menu'); 42 $save_config = true; 43 } elseif (empty($_POST['pwg_cumulus_in_main_menu']) && $me->pwg_cumulus_in_main_menu) { 44 $me->pwg_cumulus_in_main_menu = false; 45 $page['infos'][] = l10n('Tags cloud removed from main menu'); 46 $save_config = true; 47 } 41 if (!empty($_POST['submit'])) { 42 if (!empty($_POST['pwg_cumulus_in_main_menu']) && $_POST['pwg_cumulus_in_main_menu']!=$me->pwg_cumulus_in_main_menu) { 43 $me->pwg_cumulus_in_main_menu = true; 44 $page['infos'][] = l10n('Tags cloud added in main menu'); 45 $save_config = true; 46 } elseif (empty($_POST['pwg_cumulus_in_main_menu']) && $me->pwg_cumulus_in_main_menu) { 47 $me->pwg_cumulus_in_main_menu = false; 48 $page['infos'][] = l10n('Tags cloud removed from main menu'); 49 $save_config = true; 50 } 48 51 49 if (!empty($_POST['position_order']) && isset($Positions[$_POST['position_order']])) { 50 $position_order = $_POST['position_order']; 51 } 52 if (!empty($_POST['position_order']) && isset($Positions[$_POST['position_order']]) 53 && !empty($_POST['position_block_id']) && isset($Blocks[$_POST['position_block_id']]) 54 && ($_POST['position_order']!=$me->position_order || $_POST['position_block_id']!=$me->position_block_id)) { 55 56 $me->position_order = $_POST['position_order']; 57 $me->position_block_id = $_POST['position_block_id']; 58 $page['infos'][] = l10n('Block\'s position has been updated'); 59 $save_config = true; 60 } 52 61 53 if (!empty($_POST['position_block_id']) && isset($Blocks[$_POST['position_block_id']])) { 54 $position_block_id = $_POST['position_block_id']; 55 } 56 57 if ($position_order!=null && $position_block_id!=null) { 58 $me->position_order = $position_order; 59 $me->position_block_id = $position_block_id; 60 $page['infos'][] = l10n('Position in main menu has been updated'); 61 $me->save_config(); 62 if ($save_config) { 63 $me->save_config(); 64 } 62 65 } 63 66 64 67 $template->assign('MENUBAR_BLOCKS', $Blocks); 65 $template->assign('POSITION_ORDER', $ position_order);68 $template->assign('POSITION_ORDER', $me->position_order); 66 69 $template->assign('POSITIONS', $Positions); 67 $template->assign('POSITION_BLOCK_ID', $ position_block_id);70 $template->assign('POSITION_BLOCK_ID', $me->position_block_id); 68 71 $template->assign('PWG_CUMULUS_IN_MAIN_MENU', $me->pwg_cumulus_in_main_menu); 69 72 ?> -
extensions/pwgCumulus/include/pwgCumulusConfig.class.php
r11344 r11667 35 35 36 36 if (!file_exists($this->get_config_filename())) { 37 $this->setDefaults(); 37 38 $this->save_config(); 38 39 } … … 45 46 $this->config = $c; 46 47 } 47 $this->setDefaults();48 48 } 49 49 … … 79 79 80 80 private function setDefaults() { 81 include _once$this->plugin_dir.'/default_values.inc.php';81 include $this->plugin_dir.'/default_values.inc.php'; 82 82 83 83 foreach ($default_values as $key => $value) { -
extensions/pwgCumulus/language/ar_SA/index.php
r10186 r11667 3 3 // | pwgCumulus - a plugin for Piwigo | 4 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2009-201 0Nicolas Roudaire http://www.nikrou.net |5 // | Copyright(C) 2009-2011 Nicolas Roudaire http://www.nikrou.net | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | This program is free software; you can redistribute it and/or modify | -
extensions/pwgCumulus/language/cs_CZ/index.php
r8033 r11667 3 3 // | pwgCumulus - a plugin for Piwigo | 4 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2009-201 0Nicolas Roudaire http://www.nikrou.net |5 // | Copyright(C) 2009-2011 Nicolas Roudaire http://www.nikrou.net | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | This program is free software; you can redistribute it and/or modify | -
extensions/pwgCumulus/language/de_DE/index.php
r6851 r11667 3 3 // | pwgCumulus - a plugin for Piwigo | 4 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2009-201 0Nicolas Roudaire http://www.nikrou.net |5 // | Copyright(C) 2009-2011 Nicolas Roudaire http://www.nikrou.net | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | This program is free software; you can redistribute it and/or modify | -
extensions/pwgCumulus/language/en_UK/index.php
r6851 r11667 3 3 // | pwgCumulus - a plugin for Piwigo | 4 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2009-201 0Nicolas Roudaire http://www.nikrou.net |5 // | Copyright(C) 2009-2011 Nicolas Roudaire http://www.nikrou.net | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | This program is free software; you can redistribute it and/or modify | -
extensions/pwgCumulus/language/es_ES/index.php
r6851 r11667 3 3 // | pwgCumulus - a plugin for Piwigo | 4 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2009-201 0Nicolas Roudaire http://www.nikrou.net |5 // | Copyright(C) 2009-2011 Nicolas Roudaire http://www.nikrou.net | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | This program is free software; you can redistribute it and/or modify | -
extensions/pwgCumulus/language/fr_FR/index.php
r6851 r11667 3 3 // | pwgCumulus - a plugin for Piwigo | 4 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2009-201 0Nicolas Roudaire http://www.nikrou.net |5 // | Copyright(C) 2009-2011 Nicolas Roudaire http://www.nikrou.net | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | This program is free software; you can redistribute it and/or modify | -
extensions/pwgCumulus/language/hr_HR/index.php
r6851 r11667 3 3 // | pwgCumulus - a plugin for Piwigo | 4 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2009-201 0Nicolas Roudaire http://www.nikrou.net |5 // | Copyright(C) 2009-2011 Nicolas Roudaire http://www.nikrou.net | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | This program is free software; you can redistribute it and/or modify | -
extensions/pwgCumulus/language/hu_HU/index.php
r6851 r11667 3 3 // | pwgCumulus - a plugin for Piwigo | 4 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2009-201 0Nicolas Roudaire http://www.nikrou.net |5 // | Copyright(C) 2009-2011 Nicolas Roudaire http://www.nikrou.net | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | This program is free software; you can redistribute it and/or modify | -
extensions/pwgCumulus/language/it_IT/index.php
r11529 r11667 1 1 <?php 2 2 // +-----------------------------------------------------------------------+ 3 // | Piwigo - a PHP based photo gallery|3 // | pwgCumulus - a plugin for Piwigo | 4 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2008-2011 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) 2009-2011 Nicolas Roudaire http://www.nikrou.net | 8 6 // +-----------------------------------------------------------------------+ 9 7 // | This program is free software; you can redistribute it and/or modify | 10 // | it under the terms of the GNU General Public License as published by|11 // | the Free Software Foundation|8 // | it under the terms of the GNU General Public License version 2 as | 9 // | published by the Free Software Foundation | 12 10 // | | 13 11 // | This program is distributed in the hope that it will be useful, but | … … 18 16 // | You should have received a copy of the GNU General Public License | 19 17 // | along with this program; if not, write to the Free Software | 20 // | Foundation, Inc., 5 9 Temple Place - Suite 330, Boston, MA 02111-1307,|21 // | USA.|18 // | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, | 19 // | MA 02110-1301 USA | 22 20 // +-----------------------------------------------------------------------+ 23 21 -
extensions/pwgCumulus/language/lv_LV/index.php
r7497 r11667 3 3 // | pwgCumulus - a plugin for Piwigo | 4 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2009-201 0Nicolas Roudaire http://www.nikrou.net |5 // | Copyright(C) 2009-2011 Nicolas Roudaire http://www.nikrou.net | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | This program is free software; you can redistribute it and/or modify | -
extensions/pwgCumulus/language/nl_NL/index.php
r11085 r11667 3 3 // | pwgCumulus - a plugin for Piwigo | 4 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2009-201 0Nicolas Roudaire http://www.nikrou.net |5 // | Copyright(C) 2009-2011 Nicolas Roudaire http://www.nikrou.net | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | This program is free software; you can redistribute it and/or modify | -
extensions/pwgCumulus/language/no_NO/index.php
r8996 r11667 3 3 // | pwgCumulus - a plugin for Piwigo | 4 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2009-201 0Nicolas Roudaire http://www.nikrou.net |5 // | Copyright(C) 2009-2011 Nicolas Roudaire http://www.nikrou.net | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | This program is free software; you can redistribute it and/or modify | -
extensions/pwgCumulus/language/pl_PL/index.php
r7280 r11667 3 3 // | pwgCumulus - a plugin for Piwigo | 4 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2009-201 0Nicolas Roudaire http://www.nikrou.net |5 // | Copyright(C) 2009-2011 Nicolas Roudaire http://www.nikrou.net | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | This program is free software; you can redistribute it and/or modify | -
extensions/pwgCumulus/language/ru_RU/index.php
r7455 r11667 3 3 // | pwgCumulus - a plugin for Piwigo | 4 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2009-201 0Nicolas Roudaire http://www.nikrou.net |5 // | Copyright(C) 2009-2011 Nicolas Roudaire http://www.nikrou.net | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | This program is free software; you can redistribute it and/or modify | -
extensions/pwgCumulus/language/sk_SK/index.php
r7228 r11667 3 3 // | pwgCumulus - a plugin for Piwigo | 4 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2009-201 0Nicolas Roudaire http://www.nikrou.net |5 // | Copyright(C) 2009-2011 Nicolas Roudaire http://www.nikrou.net | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | This program is free software; you can redistribute it and/or modify | -
extensions/pwgCumulus/language/sv_SE/index.php
r10990 r11667 3 3 // | pwgCumulus - a plugin for Piwigo | 4 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2009-201 0Nicolas Roudaire http://www.nikrou.net |5 // | Copyright(C) 2009-2011 Nicolas Roudaire http://www.nikrou.net | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | This program is free software; you can redistribute it and/or modify | -
extensions/pwgCumulus/language/templates/index.php
r6851 r11667 3 3 // | pwgCumulus - a plugin for Piwigo | 4 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2009-201 0Nicolas Roudaire http://www.nikrou.net |5 // | Copyright(C) 2009-2011 Nicolas Roudaire http://www.nikrou.net | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | This program is free software; you can redistribute it and/or modify | -
extensions/pwgCumulus/language/tr_TR/index.php
r9139 r11667 3 3 // | pwgCumulus - a plugin for Piwigo | 4 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2009-201 0Nicolas Roudaire http://www.nikrou.net |5 // | Copyright(C) 2009-2011 Nicolas Roudaire http://www.nikrou.net | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | This program is free software; you can redistribute it and/or modify | -
extensions/pwgCumulus/main.inc.php
r11344 r11667 22 22 /* 23 23 Plugin Name: pwgCumulus 24 Version: 0.6. 024 Version: 0.6.1 25 25 Description: add an amazing tag cloud 26 26 Plugin URI: http://piwigo.org/ext/extension_view.php?eid=263
Note: See TracChangeset
for help on using the changeset viewer.