diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/header.inc.php | 1 | ||||
-rw-r--r-- | templates/show_album.inc.php | 4 | ||||
-rw-r--r-- | templates/show_lyrics_song.inc.php | 2 | ||||
-rw-r--r-- | templates/show_now_playing_row.inc.php | 2 | ||||
-rw-r--r-- | templates/stylesheets.inc.php | 1 |
5 files changed, 6 insertions, 4 deletions
diff --git a/templates/header.inc.php b/templates/header.inc.php index ee19ae6b..6036bfbe 100644 --- a/templates/header.inc.php +++ b/templates/header.inc.php @@ -43,6 +43,7 @@ if (Config::get('use_rss')) { ?> </head> <body> <script src="<?php echo $web_path; ?>/modules/prototype/prototype.js" language="javascript" type="text/javascript"></script> +<script src="<?php echo $web_path; ?>/modules/tinybox/tinybox.js" language="javascript" type="text/javascript"></script> <script src="<?php echo $web_path; ?>/lib/javascript/base.js" language="javascript" type="text/javascript"></script> <script src="<?php echo $web_path; ?>/lib/javascript/ajax.js" language="javascript" type="text/javascript"></script> <!-- rfc3514 implementation --> diff --git a/templates/show_album.inc.php b/templates/show_album.inc.php index b987bf5b..eed35720 100644 --- a/templates/show_album.inc.php +++ b/templates/show_album.inc.php @@ -35,8 +35,8 @@ $title .= ' - ' . $album->f_artist_link; if ($album->name != T_('Unknown (Orphaned)')) { $name = '[' . $album->f_artist . '] ' . scrub_out($album->full_name); - $aa_url = $web_path . "/image.php?id=" . $album->id . "&type=popup&sid=" . session_id(); - echo "<a target=\"_blank\" href=\"$aa_url\" onclick=\"popupWindow('$aa_url'); return false;\">"; + $aa_url = $web_path . "/image.php?id=" . $album->id . "&sid=" . session_id(); + echo "<a href=\"$aa_url\" onClick=\"TINY.box.show({image:'$aa_url',boxid:'frameless',animate:true}); return false;\">"; echo "<img src=\"" . $web_path . "/image.php?id=" . $album->id . "&thumb=2\" alt=\"".$name."\" title=\"".$name."\" height=\"128\" width=\"128\" />"; echo "</a>\n"; } diff --git a/templates/show_lyrics_song.inc.php b/templates/show_lyrics_song.inc.php index ee038e0c..11390c9a 100644 --- a/templates/show_lyrics_song.inc.php +++ b/templates/show_lyrics_song.inc.php @@ -30,7 +30,7 @@ $artist = scrub_out(UI::truncate($song->f_artist_full)); <div class="np_group"> <?php if (Config::get('show_album_art')) { ?> <div class="np_cell cel_albumart"> - <a target="_blank" href="<?php echo $web_path; ?>/image.php?id=<?php echo $song->album; ?>&type=popup&sid=<?php echo session_id(); ?>" onclick="popupWindow('<?php echo $web_path; ?>/image.php?id=<?php echo $song->album; ?>&type=popup&sid=<?php echo session_id(); ?>'); return false;"> + <a href="<?php echo $web_path; ?>/image.php?id=<?php echo $song->album; ?>&sid=<?php echo session_id(); ?>" onclick="TINY.box.show({image:'<?php echo $web_path; ?>/image.php?id=<?php echo $song->album; ?>&sid=<?php echo session_id(); ?>',boxid:'frameless',animate:true}); return false;"> <img align="middle" src="<?php echo $web_path; ?>/image.php?id=<?php echo $song->album; ?>&thumb=1&sid=<?php echo session_id(); ?>" alt="<?php echo scrub_out($song->f_album_full); ?>" title="<?php echo scrub_out($song->f_album_full); ?>" height="75" width="75" /> </a> </div> diff --git a/templates/show_now_playing_row.inc.php b/templates/show_now_playing_row.inc.php index adbe0f24..b9ac30ba 100644 --- a/templates/show_now_playing_row.inc.php +++ b/templates/show_now_playing_row.inc.php @@ -65,7 +65,7 @@ <?php if (Art::is_enabled()) { ?> <div class="np_group" id="np_group_3"> <div class="np_cell cel_albumart"> - <a target="_blank" href="<?php echo $web_path; ?>/image.php?id=<?php echo $media->album; ?>&type=popup" onclick="popupWindow('<?php echo $web_path; ?>/image.php?id=<?php echo $media->album; ?>&type=popup'); return false;"> + <a href="<?php echo $web_path; ?>/image.php?id=<?php echo $media->album; ?>" onclick="TINY.box.show({image:'<?php echo $web_path; ?>/image.php?id=<?php echo $media->album; ?>',boxid:'frameless',animate:true}); 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="80" width="80" /> </a> </div> diff --git a/templates/stylesheets.inc.php b/templates/stylesheets.inc.php index 27c8aad5..7fc3331d 100644 --- a/templates/stylesheets.inc.php +++ b/templates/stylesheets.inc.php @@ -33,4 +33,5 @@ if (is_rtl(Config::get('lang')) <?php } ?> +<link rel="stylesheet" href="<?php echo $web_path; ?>/modules/tinybox/tinybox.css" type="text/css" media="screen" /> <link rel="stylesheet" href="<?php echo $web_path; ?>/templates/print.css" type="text/css" media="print" /> |