- web: fix up country flags a little

svn path=/trunk/boinc/; revision=18397
This commit is contained in:
David Anderson 2009-06-12 16:35:08 +00:00
parent 1dd1812787
commit 7fbe9edc15
4 changed files with 21 additions and 7 deletions

View File

@ -5526,3 +5526,13 @@ Rom 12 June 2009
win_build/installerv2/redist/Windows/x64/
boinccas.dll
boinccas95.dll
David 11 June 2009
- web: fix up country flags a little
html/
inc/
forum.inc
countries.inc
user/
main.css

View File

@ -287,7 +287,7 @@ $country_to_iso3166_2 = array (
"Colombia" => "co",
"Comoros" => "km",
"Congo, Democratic Republic of the" => "cd",
"Congo, Republic of the" => "cd",
"Congo, Republic of the" => "cg",
"Cook Islands" => "ck",
"Costa Rica" => "cr",
"Cote d'Ivoire" => "ci",
@ -316,7 +316,7 @@ $country_to_iso3166_2 = array (
"French Polynesia" => "pf",
"Gabon" => "ga",
"Gambia, The" => "gm",
"Gaza Strip" => "il",
"Gaza Strip" => "ps",
"Georgia" => "ge",
"Germany" => "de",
"Ghana" => "gh",
@ -440,13 +440,13 @@ $country_to_iso3166_2 = array (
"Sweden" => "se",
"Switzerland" => "ch",
"Syria" => "sy",
"Taiwan" => "ty",
"Taiwan" => "tw",
"Tajikistan" => "tj",
"Tanzania" => "tz",
"Thailand" => "th",
"Togo" => "tg",
"Tokelau" => "tk",
"Tonga" => "tg",
"Tonga" => "to",
"Trinidad and Tobago" => "tt",
"Tunisia" => "tn",
"Turkey" => "tr",

View File

@ -538,7 +538,7 @@ function show_post(
echo "<span class=\"authorinfo\">";
if (!$filter || !$rated_below_threshold){
if ($user->prefs && $user->prefs->avatar!="" && (!$logged_in_user || ($logged_in_user->prefs->hide_avatars==false))) {
echo "<img width=\"".AVATAR_WIDTH."\" height=\"".AVATAR_HEIGHT."\" src=\"".$user->prefs->avatar."\" alt=\"Avatar\"><br>";
echo "<img class=authorinfo width=\"".AVATAR_WIDTH."\" height=\"".AVATAR_HEIGHT."\" src=\"".$user->prefs->avatar."\" alt=\"Avatar\"><br>";
}
}
@ -571,7 +571,7 @@ function show_post(
if (defined("COUNTRY_FLAGS")) {
if (array_key_exists($user->country, $country_to_iso3166_2)) {
$code = $country_to_iso3166_2[$user->country];
echo "<img src=flags/$code.png><br>\n";
echo "<img class=flag alt=\"$user->country\" title=\"$user->country\" src=flags/$code.png><br>\n";
}
}
}

View File

@ -321,12 +321,16 @@ div.authorcol {
font-size: 11px;
}
.authorinfo img {
img.authorinfo {
border-width: 1px;
border-style: solid;
margin: 3px 9px;
}
img.flag {
margin: 2px 1px;
}
.authorcol .button {
margin: 0 6px;
line-height: 2.6em;