diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2005-12-31 09:04:30 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2005-12-31 09:04:30 +0000 |
commit | 621f007155dc1e3a8a5b916e246018df4a25d4f3 (patch) | |
tree | c3f987cc3d43d8fdfac0680fd23cd3695fbac30a /templates | |
parent | fe4774127f292ce94ab79771bc72cbb7ca4db371 (diff) | |
download | ampache-621f007155dc1e3a8a5b916e246018df4a25d4f3.tar.gz ampache-621f007155dc1e3a8a5b916e246018df4a25d4f3.tar.bz2 ampache-621f007155dc1e3a8a5b916e246018df4a25d4f3.zip |
add album art pop-up mojo from Di-Fosfor
Diffstat (limited to 'templates')
-rw-r--r-- | templates/show_album.inc | 2 | ||||
-rw-r--r-- | templates/show_big_art.inc | 41 | ||||
-rw-r--r-- | templates/show_now_playing.inc | 2 |
3 files changed, 43 insertions, 2 deletions
diff --git a/templates/show_album.inc b/templates/show_album.inc index 6a466aab..bd6cbcf8 100644 --- a/templates/show_album.inc +++ b/templates/show_album.inc @@ -49,7 +49,7 @@ $username=$user->username; <td width="140" align="center"> <?php if ($album_name != "Unknown (Orphaned)") { - echo "<a target=\"_blank\" href=\"" . conf('web_path') . "/albumart.php?id=" . $album->id . "\">"; + echo "<a target=\"_blank\" href=\"" . conf('web_path') . "/albumart.php?id=" . $album->id . "&type=popup\">"; echo "<img border=\"0\" src=\"" . conf('web_path') . "/albumart.php?id=" . $album->id . "&thumb=2\" alt=\"Album Art\" height=\"128\" />"; echo "</a>\n"; } diff --git a/templates/show_big_art.inc b/templates/show_big_art.inc new file mode 100644 index 00000000..7c52f4e3 --- /dev/null +++ b/templates/show_big_art.inc @@ -0,0 +1,41 @@ +<?php +/* + + Copyright (c) 2001 - 2005 Ampache.org + All rights reserved. + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License + as published by the Free Software Foundation; either version 2 + of the License, or (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +*/ + +$htmllang = str_replace("_","-",conf('lang')); +?> + +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $htmllang; ?>" lang="<?php echo $htmllang; ?>"> +<head> +<link rel="shortcut icon" href="<?php echo conf('web_path'); ?>/favicon.ico" /> +<meta http-equiv="Content-Type" content="text/html; charset=<?php echo conf('site_charset'); ?>" /> +<title><?php echo conf('site_title'); ?> - <?php echo _("Album Art"); ?></title> +</head> +<body onLoad="self.resizeTo(document.images[0].width+30, document.images[0].height+70)"> +<?php +echo "<a href=\"javascript:window.close()\" title=\"" . _("Click to close window") . "\">"; +echo "<img src=\"" . conf('web_path') . "/albumart.php?id=" . $_GET['id'] . "\" border=\"0\" />"; +echo "</a>"; +?> +</body> +</html> + diff --git a/templates/show_now_playing.inc b/templates/show_now_playing.inc index d4df9dc2..22422388 100644 --- a/templates/show_now_playing.inc +++ b/templates/show_now_playing.inc @@ -61,7 +61,7 @@ echo "\t<a title=\"" . htmlspecialchars($album) . "\" href=\"$web_path/albums.php?action=show&album=$song->album\">$song->f_album</a></td>"; if (conf('play_album_art')) { echo "\t<td align=\"center\">"; - echo "<a target=\"_blank\" href=\"" . conf('web_path') . "/albumart.php?id=" . $song->album . "\">"; + echo "<a target=\"_blank\" href=\"" . conf('web_path') . "/albumart.php?id=" . $song->album . "&type=popup\">"; echo "<img align=\"middle\" border=\"0\" src=\"" . conf('web_path') . "/albumart.php?id=" . $song->album . "&fast=1&thumb=1\" alt=\"Album Art\" height=\"75\" />"; echo "</a>\n"; echo "\t</td>\n"; |