summaryrefslogtreecommitdiffstats
path: root/templates/show_now_playing_row.inc.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2010-02-14 00:56:07 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2010-02-14 00:56:07 +0000
commit8bc17dd3f0ed4dc520bb64b20dac8a31e72e447f (patch)
tree49fc67aaf19bfbc749c54d22522f31cfea8fabb5 /templates/show_now_playing_row.inc.php
parent704e66d0b489a7d3b0d4dcedc79515e5300732ff (diff)
downloadampache-8bc17dd3f0ed4dc520bb64b20dac8a31e72e447f.tar.gz
ampache-8bc17dd3f0ed4dc520bb64b20dac8a31e72e447f.tar.bz2
ampache-8bc17dd3f0ed4dc520bb64b20dac8a31e72e447f.zip
Tweaked how features / bandwidth level is checked, not happy with it.
Diffstat (limited to 'templates/show_now_playing_row.inc.php')
-rw-r--r--templates/show_now_playing_row.inc.php11
1 files changed, 3 insertions, 8 deletions
diff --git a/templates/show_now_playing_row.inc.php b/templates/show_now_playing_row.inc.php
index 66b3639d..bbc67541 100644
--- a/templates/show_now_playing_row.inc.php
+++ b/templates/show_now_playing_row.inc.php
@@ -23,11 +23,6 @@ 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">
@@ -77,11 +72,11 @@ $image_size = 75;
</div>
</div>
-<?php if (Config::get('bandwidth') > BANDWIDTH_LOW) { ?>
+<?php if (Browse::is_enabled('show_art')) { ?>
<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; ?>&amp;type=popup&amp;sid=<?php echo session_id(); ?>" onclick="popup_art('<?php echo $web_path; ?>/image.php?id=<?php echo $media->album; ?>&amp;type=popup&amp;sid=<?php echo session_id(); ?>'); return false;">
- <img align="middle" src="<?php echo $web_path; ?>/image.php?id=<?php echo $media->album; ?>&amp;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'); */ ?>&amp;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 target="_blank" href="<?php echo $web_path; ?>/image.php?id=<?php echo $media->album; ?>&amp;type=popup" onclick="popup_art('<?php echo $web_path; ?>/image.php?id=<?php echo $media->album; ?>&amp;type=popup'); return false;">
+ <img align="middle" src="<?php echo $web_path; ?>/image.php?id=<?php echo $media->album; ?>&amp;thumb=1&amp;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" />
</a>
</div>
</div>