//Show the "This album is number x overall, etc. box for music only if ($GroupCategoryID == 1) { $Rankings = Votes::get_ranking($GroupID, $GroupYear); $LIs = ''; // Display information for the return categories of get_ranking() $GroupDecade = $GroupYear-($GroupYear%10); $names = array('overall'=>'overall', 'decade'=>check_perms('site_advanced_top10') ? 'for the '.$GroupDecade.'s' : 'for the '.$GroupDecade.'s', 'year'=>check_perms('site_advanced_top10') ? 'for '.$GroupYear.'' : "for $GroupYear"); foreach ($names as $key => $text) { if ($Rank = $Rankings[$key]) { if ($Rank <= 10) { $Class = "vr_top_10"; } elseif ($Rank <= 25) { $Class = "vr_top_25"; } elseif ($Rank <= 50) { $Class = "vr_top_50"; } $LIs .= '