Rev 1056 | Rev 1065 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1056 | Rev 1060 | ||
---|---|---|---|
Line 83... | Line 83... | ||
83 | 83 | ||
84 | $dirs = glob(OIDplus::localpath().'plugins/'.'*'.'/language/'.$code.'/'); |
84 | $dirs = glob(OIDplus::localpath().'plugins/'.'*'.'/language/'.$code.'/'); |
85 | 85 | ||
86 | if (count($dirs) > 0) { |
86 | if (count($dirs) > 0) { |
87 | $dir = substr($dirs[0], strlen(OIDplus::localpath())); |
87 | $dir = substr($dirs[0], strlen(OIDplus::localpath())); |
88 | $langbox_entries[$code] = '<span class="lang_flag_bg"><a '.($useJs ? 'onclick="setLanguage(\''.$code.'\'); return false" ' : '').'href="?lang='.$code.$add.'"><img src="'.OIDplus::webpath(null,OIDplus::PATH_RELATIVE).$dir.$flag.'" alt="'.$pluginManifest->getName().'" title="'.$pluginManifest->getName().'" class="'.$class.'" id="lng_flag_'.$code.'" height="20"></a></span> '; |
88 | $langbox_entries[$code] = '<span class="lang_flag_bg"><a '.($useJs ? 'onclick="return !setLanguage(\''.$code.'\')" ' : '').'href="?lang='.$code.$add.'"><img src="'.OIDplus::webpath(null,OIDplus::PATH_RELATIVE).$dir.$flag.'" alt="'.$pluginManifest->getName().'" title="'.$pluginManifest->getName().'" class="'.$class.'" id="lng_flag_'.$code.'" height="20"></a></span> '; |
89 | } |
89 | } |
90 | } |
90 | } |
91 | if ($non_default_languages > 0) { |
91 | if ($non_default_languages > 0) { |
92 | foreach ($langbox_entries as $ent) { |
92 | foreach ($langbox_entries as $ent) { |
93 | $out .= "$ent\n\t\t"; |
93 | $out .= "$ent\n\t\t"; |
Line 167... | Line 167... | ||
167 | $out .= '<html lang="'.substr(OIDplus::getCurrentLang(),0,2).'">'; |
167 | $out .= '<html lang="'.substr(OIDplus::getCurrentLang(),0,2).'">'; |
168 | 168 | ||
169 | $out .= '<head>'; |
169 | $out .= '<head>'; |
170 | $out .= ' <title>'.htmlentities($page_title_1).'</title>'; |
170 | $out .= ' <title>'.htmlentities($page_title_1).'</title>'; |
171 | $out .= ' <meta name="viewport" content="width=device-width, initial-scale=1.0">'; |
171 | $out .= ' <meta name="viewport" content="width=device-width, initial-scale=1.0">'; |
172 | $out .= ' <link rel="stylesheet" href="'.OIDplus::webpath(null, true).'oidplus.min.css.php?noBaseConfig=1">'; |
172 | $out .= ' <link rel="stylesheet" href="'.OIDplus::webpath(null, OIDplus::PATH_RELATIVE).'oidplus.min.css.php?noBaseConfig=1">'; |
173 | $out .= ' <script src="'.OIDplus::webpath(null, true).'oidplus.min.js.php?noBaseConfig=1" type="text/javascript"></script>'; |
173 | $out .= ' <script src="'.OIDplus::webpath(null, OIDplus::PATH_RELATIVE).'oidplus.min.js.php?noBaseConfig=1" type="text/javascript"></script>'; |
174 | $out .= ' <link rel="shortcut icon" type="image/x-icon" href="'.OIDplus::webpath(null, true).'favicon.ico.php">'; |
174 | $out .= ' <link rel="shortcut icon" type="image/x-icon" href="'.OIDplus::webpath(null, OIDplus::PATH_RELATIVE).'favicon.ico.php">'; |
175 | $out .= ' '.implode("\n\t",$extra_head_tags)."\n"; |
175 | $out .= ' '.implode("\n\t",$extra_head_tags)."\n"; |
176 | $out .= '</head>'; |
176 | $out .= '</head>'; |
177 | 177 | ||
178 | $out .= '<body>'; |
178 | $out .= '<body>'; |
179 | 179 |