system/sai/modules/saimod_sys_langswitcher/saimod_sys_langswitcher.php
2016-06-13 11:07:58 +02:00

32 lines
1.1 KiB
PHP

<?php
/**
* System - PHP Framework
*
* PHP Version 5.6
*
* @copyright 2016 Ulf Gebhardt (http://www.webcraft-media.de)
* @license http://www.opensource.org/licenses/mit-license.php MIT
* @link https://github.com/webcraftmedia/system
* @package SYSTEM\SAI
*/
namespace SYSTEM\SAI;
class saimod_sys_langswitcher extends \SYSTEM\SAI\SaiModule {
public static function html_li_menu(){
//return self::lang_menu('./sai.php');
}
public static function right_public(){return true;}
public static function right_right(){return true;}
public static function lang_menu($endpoint = './api.php'){
$result = '';
$langs = \SYSTEM\CONFIG\config::get(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_LANGS);
foreach($langs as $lang){
$result .= \SYSTEM\PAGE\replace::replaceFile((new \SYSTEM\PSAI('modules/saimod_sys_langswitcher/tpl/language.tpl'))->SERVERPATH(),array('lang' => $lang,'endpoint' => $endpoint));}
return $result;
}
//public static function css(){}
//public static function js(){}
}