]> rtime.felk.cvut.cz Git - edu/osp-wiki.git/commitdiff
One more translator fix
authorMichal Sojka <sojkam1@fel.cvut.cz>
Thu, 20 Feb 2014 16:46:24 +0000 (17:46 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Thu, 20 Feb 2014 16:46:24 +0000 (17:46 +0100)
local.css
templates/page.tmpl

index c15a8040aa276b302629c5c59fb1dd87fb160c92..dc7608ca7ecd0d2ff8404c66373f1769b468ad3d 100644 (file)
--- a/local.css
+++ b/local.css
@@ -262,9 +262,9 @@ legend {
   border: 0px;
 }
 
-.sidebar #google_translate_element {
+.pageheader #google_translate_element {
     position: absolute;
-    bottom: 5px;
+    top: 3ex;
     right: 10px;
 }
 
index f004c8fa0d377c4a0dba19542a7b841ea09586ea..39d7907ce6ced375aefb4d5c8cad39e3661ce0e2 100644 (file)
 <TMPL_IF HTML5></nav><TMPL_ELSE></div></TMPL_IF>
 </TMPL_IF>
 
+<div id="google_translate_element"></div><script type="text/javascript">
+function googleTranslateElementInit() {
+  new google.translate.TranslateElement({pageLanguage: 'cs', includedLanguages: 'en', layout: google.translate.TranslateElement.InlineLayout.SIMPLE}, 'google_translate_element');
+}
+</script><script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
+
 <TMPL_IF OTHERLANGUAGES>
 <TMPL_IF HTML5><nav id="otherlanguages"><TMPL_ELSE><div id="otherlanguages"></TMPL_IF>
 <ul>
 <TMPL_IF SIDEBAR>
 <TMPL_IF HTML5><aside class="sidebar"><TMPL_ELSE><div class="sidebar"></TMPL_IF>
 <TMPL_VAR SIDEBAR>
-<div id="google_translate_element"></div><script type="text/javascript">
-function googleTranslateElementInit() {
-  new google.translate.TranslateElement({pageLanguage: 'cs', includedLanguages: 'en', layout: google.translate.TranslateElement.InlineLayout.SIMPLE}, 'google_translate_element');
-}
-</script><script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
 <TMPL_IF HTML5></aside><TMPL_ELSE></div></TMPL_IF>
 </TMPL_IF>