diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2008-05-24 23:01:37 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2008-05-24 23:01:37 +0000 |
commit | af9da5bf95d4cc93fdde6402271a957d9c0a74b3 (patch) | |
tree | 3aa6a2b118f380984184290c855e7cd9a0172523 /templates/show_artist.inc.php | |
parent | 1d07e9c0b623c6dfacb002225d4dd89079f6fda0 (diff) | |
download | ampache-af9da5bf95d4cc93fdde6402271a957d9c0a74b3.tar.gz ampache-af9da5bf95d4cc93fdde6402271a957d9c0a74b3.tar.bz2 ampache-af9da5bf95d4cc93fdde6402271a957d9c0a74b3.zip |
consolidate the artist page into a single template
Diffstat (limited to 'templates/show_artist.inc.php')
-rw-r--r-- | templates/show_artist.inc.php | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/templates/show_artist.inc.php b/templates/show_artist.inc.php index 0cc28b58..02a60547 100644 --- a/templates/show_artist.inc.php +++ b/templates/show_artist.inc.php @@ -18,9 +18,32 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -require Config::get('prefix') . '/templates/show_artist_box.inc.php'; +$web_path = Config::get('web_path'); +$title = _('Albums by') . " " . $artist->full_name; ?> <?php +show_box_top(_('Albums by') . ' ' . $artist->f_name,'info-box'); +if (Config::get('ratings')) { + echo "<div id=\"rating_" . $artist->id . "_artist\" style=\"display:inline;\">"; + show_rating($artist->id, 'artist'); + echo "</div>"; +} // end if ratings ?> + +<div id="information_actions"> +<ul> +<li><a href="<?php echo $web_path; ?>/artists.php?action=show_all_songs&artist=<?php echo $artist->id; ?>"><?php echo get_user_icon('view'); ?></a> <?php echo _("Show All Songs By") . " " . $artist->f_name; ?></li> +<li><?php echo Ajax::button('?action=basket&type=artist&id=' . $artist->id,'add',_('Add'),'add_' . $artist->id); ?><?php echo _('Add All songs By') . ' ' . $artist->f_name; ?></li> +<li><?php echo Ajax::button('?action=basket&type=artist_random&id=' . $artist->id,'random',_('Random'),'random_' . $artist->id); ?><?php echo _('Add Random Songs By') . ' ' . $artist->f_name; ?></li> +<?php if (Access::check('interface','50')) { ?> + <li><a href="<?php echo $web_path; ?>/artists.php?action=update_from_tags&artist=<?php echo $artist->id; ?>"><?php echo get_user_icon('cog'); ?></a> <?php echo _('Update from tags'); ?></li> +<?php } ?> +<li> + <input type="checkbox" id="show_artist_artCB" <?php echo $string = Browse::get_filter('show_art') ? 'checked="checked"' : ''; ?>/> <?php echo _('Show Art'); ?> + <?php echo Ajax::observe('show_artist_artCB','click',Ajax::action('?page=browse&action=browse&key=show_art&value=1','')); ?> +</ul> +</div> +<?php show_box_bottom(); ?> +<?php Browse::reset_filters(); Browse::set_type('album'); Browse::set_static_content(1); |