summaryrefslogtreecommitdiffstats
path: root/templates/show_artist_box.inc.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-06-07 07:20:01 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-06-07 07:20:01 +0000
commitaf2ff07a8174ac2796fa45337bcc5c70d870e0b1 (patch)
tree9ebaecb008ef72d3b07cc1984de6e8249a13719a /templates/show_artist_box.inc.php
parent96334a0e8c1c59077e6f9c067dbdee14f6b07be7 (diff)
downloadampache-af2ff07a8174ac2796fa45337bcc5c70d870e0b1.tar.gz
ampache-af2ff07a8174ac2796fa45337bcc5c70d870e0b1.tar.bz2
ampache-af2ff07a8174ac2796fa45337bcc5c70d870e0b1.zip
- Fixed Ratings
- Tweaked RSS, still needs work - Show Single artist mostly finished
Diffstat (limited to 'templates/show_artist_box.inc.php')
-rw-r--r--templates/show_artist_box.inc.php26
1 files changed, 12 insertions, 14 deletions
diff --git a/templates/show_artist_box.inc.php b/templates/show_artist_box.inc.php
index 20feacaa..cf3d71e6 100644
--- a/templates/show_artist_box.inc.php
+++ b/templates/show_artist_box.inc.php
@@ -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
@@ -19,24 +19,22 @@
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-$web_path = conf('web_path');
+$web_path = Config::get('web_path');
$title = _('Albums by') . " " . $artist->full_name;
-?>
-<?php require (conf('prefix') . '/templates/show_box_top.inc.php'); ?>
-<?php
-if (conf('ratings')) {
+
+show_box_top(_('Albums by') . ' ' . $artist->full_name);
+if (Config::get('ratings')) {
echo "<span id=\"rating_" . $artist->id . "_artist\" style=\"display:inline;\">";
show_rating($artist->id, 'artist');
echo "</span>";
} // end if ratings ?>
<strong><?php echo _('Actions'); ?>:</strong><br />
-&nbsp;&nbsp;<a href="<?php echo $web_path; ?>/artists.php?action=show_all_songs&amp;artist=<?php echo $artist_id; ?>"><?php echo _("Show All Songs By") . " " . $artist->full_name; ?></a><br />
-&nbsp;&nbsp;<a href="<?php echo $web_path; ?>/song.php?action=artist&amp;artist_id=<?php echo $artist_id; ?>"><?php echo _("Play All Songs By") . " " . $artist->full_name; ?></a><br />
-&nbsp;&nbsp;<a href="<?php echo $web_path; ?>/song.php?action=artist_random&amp;artist_id=<?php echo $artist_id; ?>"><?php echo _("Play Random Songs By") . " " . $artist->full_name; ?></a><br />
+<a href="<?php echo $web_path; ?>/artists.php?action=show_all_songs&amp;artist=<?php echo $artist_id; ?>"><?php echo _("Show All Songs By") . " " . $artist->full_name; ?></a><br />
+<a href="<?php echo $web_path; ?>/song.php?action=artist&amp;artist_id=<?php echo $artist_id; ?>"><?php echo _("Play All Songs By") . " " . $artist->full_name; ?></a><br />
+<a href="<?php echo $web_path; ?>/song.php?action=artist_random&amp;artist_id=<?php echo $artist_id; ?>"><?php echo _("Play Random Songs By") . " " . $artist->full_name; ?></a><br />
<?php if ($GLOBALS['user']->has_access('100')) { ?>
- &nbsp;&nbsp;<a href="<?php echo $web_path; ?>/artists.php?action=update_from_tags&amp;artist=<?php echo $artist_id; ?>"><?php echo _("Update from tags"); ?></a><br />
- &nbsp;&nbsp;<a href="<?php echo $web_path; ?>/artists.php?action=show_rename&amp;artist=<?php echo $artist_id; ?>"><?php echo _("Rename Artist"); ?></a><br />
- &nbsp;&nbsp;<a href="<?php echo $web_path; ?>/artists.php?action=show_similar&amp;artist=<?php echo $artist_id; ?>"><?php echo _("Find duplicate artists"); ?></a><br />
+ <a href="<?php echo $web_path; ?>/artists.php?action=update_from_tags&amp;artist=<?php echo $artist_id; ?>"><?php echo _("Update from tags"); ?></a><br />
+ <a href="<?php echo $web_path; ?>/artists.php?action=show_rename&amp;artist=<?php echo $artist_id; ?>"><?php echo _("Rename Artist"); ?></a><br />
+ <a href="<?php echo $web_path; ?>/artists.php?action=show_similar&amp;artist=<?php echo $artist_id; ?>"><?php echo _("Find duplicate artists"); ?></a><br />
<?php } ?>
-<?php require (conf('prefix') . '/templates/show_box_bottom.inc.php'); ?>
-<?php unset($title); ?>
+<?php show_box_bottom(); ?>