diff options
Diffstat (limited to 'templates/show_album.inc')
-rw-r--r-- | templates/show_album.inc | 32 |
1 files changed, 12 insertions, 20 deletions
diff --git a/templates/show_album.inc b/templates/show_album.inc index 903eedf1..72c39ca5 100644 --- a/templates/show_album.inc +++ b/templates/show_album.inc @@ -1,7 +1,7 @@ <?php /* - Copyright (c) 2001 - 2006 Ampache.org + Copyright (c) 2001 - 2007 Ampache.org All rights reserved. This program is free software; you can redistribute it and/or @@ -18,21 +18,13 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/*! - @header Show Album - @discussion shows a single album -*/ -$web_path = conf('web_path'); -// Build array of the table classes we are using -$row_classes = array('even','odd'); -//FIXME: -$album_id = $album->id; -$artist_id = $album->artist_id; -$username = $GLOBALS['user']->username; +$web_path = Config::get('web_path'); + +// Title for this album $title = scrub_out($album->name) . ' -- ' . $album->f_artist; ?> -<?php require (conf('prefix') . '/templates/show_box_top.inc.php'); ?> +<?php show_box_top($title); ?> <div style="float:left;display:table-cell;width:140px;"> <?php if ($album_name != "Unknown (Orphaned)") { @@ -45,24 +37,24 @@ $title = scrub_out($album->name) . ' -- ' . $album->f_artist; </div> <div style="display:table-cell;vertical-align:top;"> <?php - if (conf('ratings')) { + if (Config::get('ratings')) { echo "<div style=\"float:left; display:inline;\" id=\"rating_" . $album->id . "_album\">"; show_rating($album->id, 'album');} // end if ratings echo "</div>"; echo "<br />\n"; ?> <strong><?php echo _('Actions'); ?>:</strong><br /> - <a href="<?php echo $web_path; ?>/song.php?action=album&album_id=<?php echo $album->id; ?>"><?php echo _("Play Album"); ; ?></a><br /> - <a href="<?php echo $web_path; ?>/song.php?action=album_random&album_id=<?php echo $album->id; ?>"><?php echo _("Play Random from Album"); ; ?></a><br /> - <?php if ( ($GLOBALS['user']->has_access('75')) || (!conf('use_auth'))) { ?> + <a href="<?php echo $web_path; ?>/stream.php?action=album&album_id=<?php echo $album->id; ?>"><?php echo _("Play Album"); ; ?></a><br /> + <a href="<?php echo $web_path; ?>/stream.php?action=album_random&album_id=<?php echo $album->id; ?>"><?php echo _("Play Random from Album"); ; ?></a><br /> + <?php if ( ($GLOBALS['user']->has_access('75')) || (!Config::get('use_auth'))) { ?> <a href="<?php echo $web_path; ?>/albums.php?action=clear_art&album_id=<?php echo $album->id; ?>"><?php echo _("Reset Album Art"); ; ?></a><br /> <?php } ?> <a href="<?php echo $web_path; ?>/albums.php?action=find_art&album_id=<?php echo $album->id; ?>"><?php echo _("Find Album Art"); ; ?></a><br /> - <?php if (($GLOBALS['user']->has_access('100')) || (!conf('use_auth'))) { ?> + <?php if (($GLOBALS['user']->has_access('100')) || (!Config::get('use_auth'))) { ?> <a href="<?php echo $web_path; ?>/albums.php?action=update_from_tags&album_id=<?php echo $album->id; ?>"><?php echo _("Update from tags"); ?></a><br /> <?php } ?> - <?php if (batch_ok()) { ?> + <?php if (Access::check_function('batch_download')) { ?> <a href="<?php echo $web_path; ?>/batch.php?action=alb&id=<?php echo $album->id; ?>"><?php echo _('Download'); ?></a><br /> <?php } ?> </div> -<?php require (conf('prefix') . '/templates/show_box_bottom.inc.php'); ?> +<?php show_box_bottom(); ?> |