diff --git a/lib/system b/lib/system index 49e18f1..9b30021 160000 --- a/lib/system +++ b/lib/system @@ -1 +1 @@ -Subproject commit 49e18f1c3cf61c62952a3be957f1093a88cb1782 +Subproject commit 9b300210290eb0d7234b10ce84831a9b92800b2e diff --git a/slingit/page/default_page/css/default_page.css b/slingit/page/default_page/css/default_page.css index 3eae595..5154dc9 100644 --- a/slingit/page/default_page/css/default_page.css +++ b/slingit/page/default_page/css/default_page.css @@ -14,10 +14,12 @@ body{} #content {} -#footer { +#footer { position: absolute; height: 20px; - bottom: 0; + bottom: 0px; + left: 0; + right: 0; text-align: center; width: 100%; background: whitesmoke; diff --git a/slingit/page/default_page/default_page.php b/slingit/page/default_page/default_page.php index 2da6b9b..a123f67 100644 --- a/slingit/page/default_page/default_page.php +++ b/slingit/page/default_page/default_page.php @@ -1,19 +1,14 @@ '. ''. - ''. - //''. - //''. - //''. + ''. ''. - ''. - ''; - + ''; } - private function css(){ + private static function css(){ return ''. ''. ''. @@ -22,8 +17,8 @@ class default_page extends \SYSTEM\PAGE\Page { public function html(){ $vars = array(); - $vars['js'] = $this->js(); - $vars['css'] = $this->css(); + $vars['js'] = self::js(); + $vars['css'] = self::css(); $vars['PATH_LOCAL_IMG'] = \SYSTEM\WEBPATH(new \SYSTEM\PSAI(),'page/img/'); return SYSTEM\PAGE\replace::replaceFile(SYSTEM\SERVERPATH(new PPAGE(),'default_page/tpl/default_page.tpl'), $vars); diff --git a/slingit/page/default_page/js/lang_switcher.js b/slingit/page/default_page/js/lang_switcher.js deleted file mode 100644 index 07164fc..0000000 --- a/slingit/page/default_page/js/lang_switcher.js +++ /dev/null @@ -1,30 +0,0 @@ -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 = "http://www.slingit.org/?_lang="+queryStringVars._lang+"#"; - 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/slingit/page/default_page/tpl/default_page.tpl b/slingit/page/default_page/tpl/default_page.tpl index 00936d7..a1c70a8 100644 --- a/slingit/page/default_page/tpl/default_page.tpl +++ b/slingit/page/default_page/tpl/default_page.tpl @@ -24,8 +24,8 @@