mirror of
https://github.com/WhatCD/Gazelle.git
synced 2024-12-13 10:56:26 +00:00
37 lines
1.3 KiB
PHP
37 lines
1.3 KiB
PHP
<?
|
|
$FeaturedAlbum = $Cache->get_value('featured_album');
|
|
if ($FeaturedAlbum === false) {
|
|
$DB->query('
|
|
SELECT
|
|
fa.GroupID,
|
|
tg.Name,
|
|
tg.WikiImage,
|
|
fa.ThreadID,
|
|
fa.Title
|
|
FROM featured_albums AS fa
|
|
JOIN torrents_group AS tg ON tg.ID = fa.GroupID
|
|
WHERE Ended = 0');
|
|
$FeaturedAlbum = $DB->next_record();
|
|
$Cache->cache_value('featured_album', $FeaturedAlbum, 0);
|
|
}
|
|
if (is_number($FeaturedAlbum['GroupID'])) {
|
|
$Artists = Artists::get_artist($FeaturedAlbum['GroupID']);
|
|
?>
|
|
<div class="box">
|
|
<div class="head colhead_dark"><strong>Featured Album</strong></div>
|
|
<div class="center pad">
|
|
<?=Artists::display_artists($Artists, true, true)?><a href="torrents.php?id=<?=$FeaturedAlbum['GroupID']?>"><?=$FeaturedAlbum['Name']?></a>
|
|
</div>
|
|
<div class="center pad">
|
|
<a href="torrents.php?id=<?=$FeaturedAlbum['GroupID']?>" class="tooltip" title="<?=Artists::display_artists($Artists, false, false)?> - <?=$FeaturedAlbum['Name']?>">
|
|
<img src="<?=ImageTools::process($FeaturedAlbum['WikiImage'], true)?>" alt="<?=Artists::display_artists($Artists, false, false)?> - <?=$FeaturedAlbum['Name']?>" width="100%" />
|
|
</a>
|
|
</div>
|
|
<div class="center pad">
|
|
<a href="forums.php?action=viewthread&threadid=<?=$FeaturedAlbum['ThreadID']?>"><em>Read the interview with the artist, discuss here</em></a>
|
|
</div>
|
|
</div>
|
|
<?
|
|
}
|
|
?>
|