aboutsummaryrefslogtreecommitdiffstats
path: root/picture.php
diff options
context:
space:
mode:
authorgweltas <gweltas@piwigo.org>2004-10-01 22:50:50 +0000
committergweltas <gweltas@piwigo.org>2004-10-01 22:50:50 +0000
commit28dcfea993edd4e4ff9eb06e49ec6b2ef326396d (patch)
tree220cef989b059166d1d89faf93b904978d3e0458 /picture.php
parente7b24ebdd081c86555b0c07ca18cbf205ab0bacd (diff)
- Change of the picture page behavior to be able to open the full size image in a new window
- Minor modification for template migration - Rename of script.js in scripts.js git-svn-id: http://piwigo.org/svn/trunk@539 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--picture.php17
1 files changed, 11 insertions, 6 deletions
diff --git a/picture.php b/picture.php
index ec476eefb..e55fde22f 100644
--- a/picture.php
+++ b/picture.php
@@ -450,12 +450,11 @@ $template->assign_vars(array(
'WIDTH_IMG' => $picture_size[0],
'HEIGHT_IMG' => $picture_size[1],
+ 'L_HOME' => $lang['gallery_index'],
'L_SLIDESHOW' => $lang['slideshow'],
- 'L_TIME' => $lang['period_seconds'],
'L_STOP_SLIDESHOW' => $lang['slideshow_stop'],
'L_PREV_IMG' =>$lang['previous_image'].' : ',
'L_ADMIN' =>$lang['link_info_image'],
- 'L_BACK' =>$lang['back'],
'L_COMMENT_TITLE' =>$lang['comments_title'],
'L_ADD_COMMENT' =>$lang['comments_add'],
'L_DELETE_COMMENT' =>$lang['comments_del'],
@@ -467,7 +466,6 @@ $template->assign_vars(array(
'L_DOWNLOAD_HINT' => $lang['download_hint'],
'L_PICTURE_METADATA' => $lang['picture_show_metadata'],
'L_PICTURE_HIGH' => $lang['picture_high'],
- 'L_PICTURE_HIGH_ALT' => $lang['picture_high_alt'],
'U_HOME' => add_session_id($url_home),
'U_METADATA' => add_session_id($url_metadata),
@@ -493,9 +491,16 @@ else
// display a high quality link if present
if (isset($picture['current']['high']))
{
- $template->assign_block_vars(
- 'high',
- array('U_HIGH' => $picture['current']['high']));
+ $full_size = @getimagesize($picture['current']['high']);
+ $full_width = $full_size[0];
+ $full_height = $full_size[1];
+ $uuid = uniqid(rand());
+ $template->assign_block_vars('high', array(
+ 'U_HIGH' => $picture['current']['high'],
+ 'UUID'=>$uuid,
+ 'WIDTH_IMG'=>($full_width + 16),
+ 'HEIGHT_IMG'=>($full_height + 16)
+ ));
}
//------------------------------------------------------- favorite manipulation
if ( !$user['is_the_guest'] )