summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/show_album.inc2
-rw-r--r--templates/show_big_art.inc41
-rw-r--r--templates/show_now_playing.inc2
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 . "&amp;type=popup\">";
echo "<img border=\"0\" src=\"" . conf('web_path') . "/albumart.php?id=" . $album->id . "&amp;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&amp;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 . "&amp;type=popup\">";
echo "<img align=\"middle\" border=\"0\" src=\"" . conf('web_path') . "/albumart.php?id=" . $song->album . "&amp;fast=1&amp;thumb=1\" alt=\"Album Art\" height=\"75\" />";
echo "</a>\n";
echo "\t</td>\n";