Revision 1945
Added by darkviper over 11 years ago
include.php | ||
---|---|---|
35 | 35 |
|
36 | 36 |
if(!function_exists('language_menu')) |
37 | 37 |
{ |
38 |
function language_menu() |
|
38 |
function language_menu($sExtension = "auto")
|
|
39 | 39 |
{ |
40 | 40 |
global $wb; |
41 |
$sExtension = strtolower($sExtension); |
|
42 |
switch($sExtension) |
|
43 |
{ |
|
44 |
case 'png': |
|
45 |
case 'svg': |
|
46 |
break; |
|
47 |
default: |
|
48 |
$sExtension = 'auto'; |
|
49 |
} |
|
50 |
|
|
41 | 51 |
if ( $wb->page_id < 1){ return false; } |
42 | 52 |
$oPageLang = new m_MultiLingual_Lib(); |
53 |
$oPageLang->setExtension($sExtension); |
|
43 | 54 |
$sRetVal = $oPageLang->getLangMenu(); |
44 | 55 |
return $sRetVal; |
45 | 56 |
} |
Also available in: Unified diff
module/MultiLingual updated for make use of different graphics format
added Droplet to use Multilingual in index.php of template