summaryrefslogtreecommitdiffstats
path: root/templates/show_now_playing_row.inc.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-10-06 05:20:20 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-10-06 05:20:20 +0000
commit5700fc0c023d1bbf2fc8eb8db2cb4078d64e7e53 (patch)
treeb5db199932626249c38d81503fabf5f4afb38caf /templates/show_now_playing_row.inc.php
parentb517599736c381ab9d59d6b5a73aec67a6eaffb6 (diff)
downloadampache-5700fc0c023d1bbf2fc8eb8db2cb4078d64e7e53.tar.gz
ampache-5700fc0c023d1bbf2fc8eb8db2cb4078d64e7e53.tar.bz2
ampache-5700fc0c023d1bbf2fc8eb8db2cb4078d64e7e53.zip
fixed css issue, now playing issue and improved mpd controller a tiny bit
Diffstat (limited to 'templates/show_now_playing_row.inc.php')
-rw-r--r--templates/show_now_playing_row.inc.php18
1 files changed, 12 insertions, 6 deletions
diff --git a/templates/show_now_playing_row.inc.php b/templates/show_now_playing_row.inc.php
index 9046b719..50f32859 100644
--- a/templates/show_now_playing_row.inc.php
+++ b/templates/show_now_playing_row.inc.php
@@ -19,20 +19,26 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+
+/* Prepare the variables */
+$title = scrub_out(truncate_with_ellipse($song->title,'25'));
+$album = scrub_out(truncate_with_ellipse($song->f_album_full,'25'));
+$artist = scrub_out(truncate_with_ellipse($song->f_artist_full,'25'));
+
?>
<table class="np_row">
<tr>
<td class="np_cell"><?php echo scrub_out($np_user->fullname); ?></td>
<td class="np_cell">
- <a title="<?php echo scrub_out($song->f_title); ?>" href="<?php echo $web_path; ?>/song.php?action=single_song&amp;song_id=<?php echo $song->id; ?>">
- <?php echo scrub_out($song->f_title); ?>
+ <a title="<?php echo scrub_out($song->title); ?>" href="<?php echo $web_path; ?>/song.php?action=single_song&amp;song_id=<?php echo $song->id; ?>">
+ <?php echo $title; ?>
</a>
</td>
<td class="np_cell">
- <a title="<?php echo scrub_out($song->f_album); ?>" href="<?php echo $web_path; ?>/albums.php?action=show&amp;album=<?php echo $song->album; ?>">
- <?php echo scrub_out($song->f_album); ?></a> /
- <a title="<?php echo scrub_out($song->f_artist); ?>" href="<?php echo $web_path; ?>/artists.php?action=show&amp;artist=<?php echo $song->artist; ?>">
- <?php echo scrub_out($song->f_artist); ?>
+ <a title="<?php echo scrub_out($song->album_full); ?>" href="<?php echo $web_path; ?>/albums.php?action=show&amp;album=<?php echo $song->album; ?>">
+ <?php echo $album; ?></a> /
+ <a title="<?php echo scrub_out($song->artist_full); ?>" href="<?php echo $web_path; ?>/artists.php?action=show&amp;artist=<?php echo $song->artist; ?>">
+ <?php echo $artist; ?>
</a>
</td>
<?php if (conf('play_album_art')) { ?>