diff options
author | xgizzmo <xgizzmo@ampache> | 2006-01-10 05:03:18 +0000 |
---|---|---|
committer | xgizzmo <xgizzmo@ampache> | 2006-01-10 05:03:18 +0000 |
commit | 67d76f09c28d0c6abae6d966f4cc00a5428bdc74 (patch) | |
tree | c52e3c1c1d9bf75de21b2bc812fa34aa78aa10af /templates/show_artists.inc | |
parent | 883cd9e478cf740f7b6bdd5fa089c4eefda97b7a (diff) | |
download | ampache-67d76f09c28d0c6abae6d966f4cc00a5428bdc74.tar.gz ampache-67d76f09c28d0c6abae6d966f4cc00a5428bdc74.tar.bz2 ampache-67d76f09c28d0c6abae6d966f4cc00a5428bdc74.zip |
Code clean up
Diffstat (limited to 'templates/show_artists.inc')
-rw-r--r-- | templates/show_artists.inc | 42 |
1 files changed, 20 insertions, 22 deletions
diff --git a/templates/show_artists.inc b/templates/show_artists.inc index c3c6149f..19c174d1 100644 --- a/templates/show_artists.inc +++ b/templates/show_artists.inc @@ -24,7 +24,7 @@ Shows multiple artists.... takes an array of artist objects */ - +$web_path = conf('web_path'); // Build array of the table classes we are using $total_items = $view->total_items; ?> @@ -36,35 +36,33 @@ $total_items = $view->total_items; </tr> <tr class="table-header"> <td> - <a href="<?php print conf('web_path'); ?>/<?php print $_SESSION['view_script']; ?>?action=<?php print $_REQUEST['action']; ?>&keep_view=true&sort_type=artist.name&sort_order=0"> <?php print _("Artist"); ?> </a> + <a href="<?php echo $web_path; ?>/<?php echo $_SESSION['view_script']; ?>?action=<?php echo $_REQUEST['action']; ?>&keep_view=true&sort_type=artist.name&sort_order=0"> <?php echo _("Artist"); ?> </a> </td> - <td> <?php print _("Songs"); ?> </td> - <td> <?php print _("Albums"); ?> </td> - <td> <?php print _("Action"); ?> </td> + <td> <?php echo _("Songs"); ?> </td> + <td> <?php echo _("Albums"); ?> </td> + <td> <?php echo _("Action"); ?> </td> </tr> <?php /* Foreach through every artist that has been passed to us */ //FIXME: These should come in as objects... -foreach ($artists as $artist) { -?> -<tr class="<?php echo flip_class(); ?>"> - <td><?php print $artist['name']; ?></td> - <td><?php print $artist['songs']; ?></td> - <td><?php print $artist['albums']; ?></td> - <td nowrap="nowrap"> <?php print _("Play"); ?> : - <a href="<?php print conf('web_path'); ?>/song.php?action=m3u&artist=<?php print $artist['id']; ?>"><?php print _("All"); ?></a> | - <a href="<?php print conf('web_path'); ?>/song.php?action=m3u&artist_random=<?php print $artist['id']; ?>"><?php print _("Random"); ?></a> - </td> -</tr> -<?php } ?> +foreach ($artists as $artist) { ?> + <tr class="<?php echo flip_class(); ?>"> + <td><?php echo $artist['name']; ?></td> + <td><?php echo $artist['songs']; ?></td> + <td><?php echo $artist['albums']; ?></td> + <td nowrap="nowrap"> <?php echo _("Play"); ?> : + <a href="<?php echo $web_path; ?>/song.php?action=m3u&artist=<?php echo $artist['id']; ?>"><?php echo _("All"); ?></a> | + <a href="<?php echo $web_path; ?>/song.php?action=m3u&artist_random=<?php echo $artist['id']; ?>"><?php echo _("Random"); ?></a> + </td> + </tr> +<?php } //end foreach ($artists as $artist) ?> <tr class="table-header"> <td> - <a href="<?php print conf('web_path'); ?>/<?php print $_SESSION['view_script']; ?>?action=<?php print $_REQUEST['action']; ?>&keep_view=true&sort_type=artist.name&sort_order=0"> <?php print _("Artist"); ?> </a> + <a href="<?php echo $web_path; ?>/<?php echo $_SESSION['view_script']; ?>?action=<?php echo $_REQUEST['action']; ?>&keep_view=true&sort_type=artist.name&sort_order=0"> <?php echo _("Artist"); ?> </a> </td> - <td> <?php print _("Songs"); ?> </td> - <td> <?php print _("Albums"); ?> </td> - - <td> <?php print _("Action"); ?> </td> + <td><?php echo _("Songs"); ?></td> + <td><?php echo _("Albums"); ?></td> + <td><?php echo _("Action"); ?></td> </tr> <tr class="even" align="center"> |