*/ /** * Generates a link for language selection. * * @access public * @param string $img_folder Folder of the images for the language selection * @param boolean $index_page Should index_page be added to the JavaScript path * @return string */ if (!function_exists('lang_select')) { 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 */