diff --git a/sai/page/carousel.tpl b/sai/page/carousel.tpl deleted file mode 100644 index da2ce41..0000000 --- a/sai/page/carousel.tpl +++ /dev/null @@ -1,49 +0,0 @@ -
-

Design.Simple.Fast.Reliable.Innovative.

-

We write awesome code.

-
-
- \ No newline at end of file diff --git a/sai/page/default_page.php b/sai/page/default_page.php index 5e24669..037bd57 100644 --- a/sai/page/default_page.php +++ b/sai/page/default_page.php @@ -44,6 +44,7 @@ class default_page extends \SYSTEM\PAGE\Page { $result = ''. ''. ''. + ''. ''. ''. ''. @@ -64,6 +65,7 @@ class default_page extends \SYSTEM\PAGE\Page { $vars['navimg'] = \SYSTEM\CONFIG\config::get(\SYSTEM\CONFIG\config_ids::SYS_SAI_CONFIG_NAVIMG); $vars['title'] = \SYSTEM\CONFIG\config::get(\SYSTEM\CONFIG\config_ids::SYS_SAI_CONFIG_TITLE); //da_sense | Developer Center $vars['copyright'] = \SYSTEM\CONFIG\config::get(\SYSTEM\CONFIG\config_ids::SYS_SAI_CONFIG_COPYRIGHT); //© da_sense, TU Darmstadt 2013 + $vars['PATH_LOCAL_IMG'] = \SYSTEM\WEBPATH(new \SYSTEM\PSAI(),'page/img/'); $vars = array_merge($vars,\SYSTEM\locale::getStrings(\SYSTEM\DBD\system_locale_string::VALUE_CATEGORY_SYSTEM_SAI)); return \SYSTEM\PAGE\replace::replaceFile(\SYSTEM\SERVERPATH(new \SYSTEM\PSAI(),'page/sai.tpl'), $vars); diff --git a/sai/page/img/carousel/webseite.jpg b/sai/page/img/carousel/webseite.jpg deleted file mode 100644 index 729ff09..0000000 Binary files a/sai/page/img/carousel/webseite.jpg and /dev/null differ diff --git a/sai/page/img/flag_de.png b/sai/page/img/flag_de.png deleted file mode 100644 index bf7b246..0000000 Binary files a/sai/page/img/flag_de.png and /dev/null differ diff --git a/sai/page/img/flag_en.png b/sai/page/img/flag_en.png deleted file mode 100644 index 010a4eb..0000000 Binary files a/sai/page/img/flag_en.png and /dev/null differ diff --git a/sai/page/img/flag_germany.png b/sai/page/img/flag_germany.png new file mode 100644 index 0000000..ac4a977 Binary files /dev/null and b/sai/page/img/flag_germany.png differ diff --git a/sai/page/img/flag_usa.png b/sai/page/img/flag_usa.png new file mode 100644 index 0000000..10f451f Binary files /dev/null and b/sai/page/img/flag_usa.png differ diff --git a/sai/page/js/lang_switcher.js b/sai/page/js/lang_switcher.js new file mode 100644 index 0000000..5cff48f --- /dev/null +++ b/sai/page/js/lang_switcher.js @@ -0,0 +1,30 @@ +function switchLocale(locale){ + reloadWithQueryStringVars({"_lang": locale}); +} + +function reloadWithQueryStringVars (queryStringVars) { + var existingQueryVars = location.search ? location.search.substring(1).split("&") : [], + currentUrl = location.search ? location.href.replace(location.search,"") : location.href, + newQueryVars = {}, + newUrl = currentUrl.replace(/#/g, "") + "?"; + if(existingQueryVars.length > 0) { + for (var i = 0; i < existingQueryVars.length; i++) { + var pair = existingQueryVars[i].split("="); + newQueryVars[pair[0]] = pair[1]; + } + } + if(queryStringVars) { + for (var queryStringVar in queryStringVars) { + newQueryVars[queryStringVar] = queryStringVars[queryStringVar]; + } + } + if(newQueryVars) { + for (var newQueryVar in newQueryVars) { + newUrl += newQueryVar + "=" + newQueryVars[newQueryVar] + "&"; + } + newUrl = newUrl.substring(0, newUrl.length-1); + window.location.href = newUrl; + } else { + window.location.href = location.href; + } +} diff --git a/sai/page/sai.tpl b/sai/page/sai.tpl index 819a049..cbd57e8 100644 --- a/sai/page/sai.tpl +++ b/sai/page/sai.tpl @@ -15,10 +15,12 @@ SAI + Deutsch + English +