[Language Switch] new version using 2.4 drop-down menus

git-svn-id: http://piwigo.org/svn/trunk@15923 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
mistic100
2012-06-21 10:23:12 +00:00
parent 7fd3211427
commit b2149f3c10
9 changed files with 156 additions and 186 deletions
+10 -5
View File
@@ -23,15 +23,20 @@
/*
Plugin Name: Language Switch
Version: 2.3.0
Version: 2.4.0
Description: Switch to another language from flags on your gallery home page.
Plugin URI: http://piwigo.org/ext/extension_view.php?eid=123
Author: Piwigo team
Author URI: http://piwigo.org
*/
include_once(PHPWG_PLUGINS_PATH.'language_switch/language_switch.inc.php');
$language_controler = new language_controler();
add_event_handler('loading_lang', array(&$language_controler, '_switch'), 5 );
add_event_handler('loc_end_index', array(&$language_controler, '_flags'), 95 );
if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
define('LANGUAGE_SWITCH_PATH' , PHPWG_PLUGINS_PATH.basename(dirname(__FILE__)).'/');
include_once(LANGUAGE_SWITCH_PATH.'language_switch.inc.php');
add_event_handler('loading_lang', 'language_controler_switch', 5 );
add_event_handler('loc_end_index', 'language_controler_flags', 95 );
?>