diff options
author | martian <martian@ampache> | 2010-02-09 17:44:44 +0000 |
---|---|---|
committer | martian <martian@ampache> | 2010-02-09 17:44:44 +0000 |
commit | 1b35c20dd0a93b143d8b9542743a743e0db66386 (patch) | |
tree | 0500ae3eec1dfb70b66c3ca30e9a61da2c0daba8 /templates/show_now_playing_row.inc.php | |
parent | 5e52f0d7ccb6183d7e1b4e5033adad0d08a48eb6 (diff) | |
download | ampache-1b35c20dd0a93b143d8b9542743a743e0db66386.tar.gz ampache-1b35c20dd0a93b143d8b9542743a743e0db66386.tar.bz2 ampache-1b35c20dd0a93b143d8b9542743a743e0db66386.zip |
Adding the bandwidth option to the preferences. This changes the complexity of the UI and toggles album art.
Diffstat (limited to 'templates/show_now_playing_row.inc.php')
-rw-r--r-- | templates/show_now_playing_row.inc.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/templates/show_now_playing_row.inc.php b/templates/show_now_playing_row.inc.php index bd1f95cc..66b3639d 100644 --- a/templates/show_now_playing_row.inc.php +++ b/templates/show_now_playing_row.inc.php @@ -23,6 +23,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. $title = scrub_out(truncate_with_ellipsis($media->title)); $album = scrub_out(truncate_with_ellipsis($media->f_album_full)); $artist = scrub_out(truncate_with_ellipsis($media->f_artist_full)); + +// This should not be hard coded, but it will likely break all the themes. +//$image_size = Config::get('bandwidth') == BANDWIDTH_MEDIUM ? 75 : 128; +$image_size = 75; + ?> <div class="np_group"> <div class="np_cell cel_username"> @@ -72,11 +77,11 @@ $artist = scrub_out(truncate_with_ellipsis($media->f_artist_full)); </div> </div> -<?php if (Config::get('show_album_art')) { ?> +<?php if (Config::get('bandwidth') > BANDWIDTH_LOW) { ?> <div class="np_group"> <div class="np_cell cel_albumart"> <a target="_blank" href="<?php echo $web_path; ?>/image.php?id=<?php echo $media->album; ?>&type=popup&sid=<?php echo session_id(); ?>" onclick="popup_art('<?php echo $web_path; ?>/image.php?id=<?php echo $media->album; ?>&type=popup&sid=<?php echo session_id(); ?>'); return false;"> - <img align="middle" src="<?php echo $web_path; ?>/image.php?id=<?php echo $media->album; ?>&thumb=1&sid=<?php echo session_id(); ?>" alt="<?php echo scrub_out($media->f_album_full); ?>" title="<?php echo scrub_out($media->f_album_full); ?>" height="75" width="75" /> + <img align="middle" src="<?php echo $web_path; ?>/image.php?id=<?php echo $media->album; ?>&thumb=<?php echo 1; /* This should be dynamic, but until themes are fixed to be more fluid in regards to images, make it static. */ /* Config::get('bandwidth'); */ ?>&sid=<?php echo session_id(); ?>" alt="<?php echo scrub_out($media->f_album_full); ?>" title="<?php echo scrub_out($media->f_album_full); ?>" height="<?php echo $image_size; ?>" width="<?php echo $image_size; ?>" /> </a> </div> </div> |