blob: 28606db764524205201bbfd38dface0575cdde0a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
<?php
/*
Copyright (c) 2001 - 2007 Ampache.org
All rights reserved.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License v2
as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
$web_path = Config::get('web_path');
?>
<?php show_box_top(_('Albums of the Moment')); ?>
<table class="tabledata">
<tr>
<?php
foreach ($albums as $album_id) {
$album = new Album($album_id);
$album->format();
$name = scrub_out('[' . $album->artist . '] ' . $album->name);
?>
<td>
<a href="<?php echo $web_path; ?>/albums.php?action=show&album=<?php echo $album_id; ?>">
<?php if (Config::get('show_album_art')) { ?>
<img src="<?php echo $web_path; ?>/image.php?thumb=3&id=<?php echo $album_id; ?>" width="80" height="80" border="0" alt="<?php echo $name; ?>" title="<?php echo $name; ?>" />
<?php } else { ?>
<?php echo '[' . $album->f_artist . '] ' . $album->f_name; ?>
<?php } ?>
</a><br>
<?php
if(Config::get('ratings')){
echo "<div style=\"float:left; display:inline;\" id=\"rating_" . $album->id . "_album\">";
show_rating_static($album->id, 'album');}
echo "</div>";
?>
</td>
<?php } ?>
</tr>
</table>
<?php show_box_bottom(); ?>
|