*/ if (!function_exists('lang_select')) { /** * Generates a link for changing the language. * * @param string $img_folder The folder containing flags for the language selection * @return string The generated link */ function lang_select($img_folder = '') { $CI =& get_instance(); $link = 'config->item('language') == 'en_US') { $link .= ' href="?lang=de">'; $link .= ''; $link .= ' English'; } else if ($CI->config->item('language') == 'de_DE') { $link .= ' href="?lang=en">'; $link .= ''; $link .= ' Deutsch'; } $link .= "\n"; return $link; } } /* End of file MY_language_helper.php */ /* Location: ./application/helpers/MY_language_helper.php */