class Top10View {
public static function render_linkbox($Selected) {
?>
}
public static function render_artist_links($Selected, $View) {
?>
}
public static function render_artist_controls($Selected, $View) {
?>
}
private static function get_selected_link($String, $Selected) {
if ($Selected) {
return "" . $String . "";
} else {
return $String;
}
}
public static function render_artist_tile($Artist, $Category) {
if (self::is_valid_artist($Artist)) {
switch ($Category) {
case 'weekly':
case 'hyped':
self::render_tile("artist.php?artistname=", $Artist['name'], $Artist['image'][3]['#text']);
break;
default:
break;
}
}
}
private static function render_tile($Url, $Name, $Image) {
if (!empty($Image)) {
$Name = display_str($Name);
?>
}
}
public static function render_artist_list($Artist, $Category) {
if (self::is_valid_artist($Artist)) {
switch ($Category) {
case 'weekly':
case 'hyped':
self::render_list("artist.php?artistname=", $Artist['name'], $Artist['image'][3]['#text']);
break;
default:
break;
}
}
}
private static function render_list($Url, $Name, $Image) {
if (!empty($Image)) {
$UseTooltipster = !isset(G::$LoggedUser['Tooltipster']) || G::$LoggedUser['Tooltipster'];
$Image = ImageTools::process($Image);
$Title = "title=\"<img class="large_tile" src="$Image" alt="" />\"";
$Name = display_str($Name);
?>
href="=$Url?>=$Name?>">=$Name?>
}
}
private static function is_valid_artist($Artist) {
return $Artist['name'] != '[unknown]';
}
}