Rev 426 | Rev 451 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 426 | Rev 448 | ||
---|---|---|---|
Line 72... | Line 72... | ||
72 | $class = 'lng_flag'; |
72 | $class = 'lng_flag'; |
73 | } else { |
73 | } else { |
74 | $class = 'lng_flag picture_ghost'; |
74 | $class = 'lng_flag picture_ghost'; |
75 | } |
75 | } |
76 | $add = (!is_null($goto)) ? '&goto='.urlencode($goto) : ''; |
76 | $add = (!is_null($goto)) ? '&goto='.urlencode($goto) : ''; |
77 | $langbox_entries[$code] = '<a '.($useJs ? 'onclick="setLanguage(\''.$code.'\'); return false" ' : '').'href="?lang='.$code.$add.'"><img src="'.OIDplus::getSystemUrl(true).'plugins/language/'.$code.'/'.$flag.'" alt="'.$pluginManifest->getName().'" title="'.$pluginManifest->getName().'" class="'.$class.'" id="lng_flag_'.$code.'"></a> '; |
77 | $langbox_entries[$code] = '<span class="lang_flag_bg"><a '.($useJs ? 'onclick="setLanguage(\''.$code.'\'); return false" ' : '').'href="?lang='.$code.$add.'"><img src="'.OIDplus::getSystemUrl(true).'plugins/language/'.$code.'/'.$flag.'" alt="'.$pluginManifest->getName().'" title="'.$pluginManifest->getName().'" class="'.$class.'" id="lng_flag_'.$code.'"></a></span> '; |
78 | } |
78 | } |
79 | if ($non_default_languages > 0) { |
79 | if ($non_default_languages > 0) { |
80 | foreach ($langbox_entries as $ent) { |
80 | foreach ($langbox_entries as $ent) { |
81 | echo "$ent\n\t\t"; |
81 | echo "$ent\n\t\t"; |
82 | } |
82 | } |