From ed42cf8371e6a17667b521aa92826a0077fb6589 Mon Sep 17 00:00:00 2001 From: chrisaga Date: Mon, 19 Dec 2005 18:58:38 +0000 Subject: - feature 232 : icon tool to download big image in pwg_high if exists - cosmetic : adjust big image popup to avoid unwanted scrolbars no toolbar or status-bar in this popup git-svn-id: http://piwigo.org/svn/trunk@985 68402e56-0260-453c-a942-63ccdbb3a9ee --- action.php | 73 +++++++++++++++++++++++++++++++++++++++++++++++ picture.php | 10 +++++-- template/yoga/picture.tpl | 4 +-- 3 files changed, 83 insertions(+), 4 deletions(-) create mode 100644 action.php diff --git a/action.php b/action.php new file mode 100644 index 000000000..7dc351d58 --- /dev/null +++ b/action.php @@ -0,0 +1,73 @@ + diff --git a/picture.php b/picture.php index 4cdafcf69..81e781ff0 100644 --- a/picture.php +++ b/picture.php @@ -560,9 +560,15 @@ if (isset($picture['current']['high'])) $template->assign_block_vars('high', array( 'U_HIGH' => $picture['current']['high'], 'UUID'=>$uuid, - 'WIDTH_IMG'=>($full_width + 16), - 'HEIGHT_IMG'=>($full_height + 16) + 'WIDTH_IMG'=>($full_width + 40), + 'HEIGHT_IMG'=>($full_height + 40) )); + $template->assign_block_vars( + 'download', + array('U_DOWNLOAD' => PHPWG_ROOT_PATH.'action.php?dwn=' + .$picture['current']['high'] + ) + ); } // button to set the current picture as representative if ('admin' == $user['status'] and is_numeric($page['cat'])) diff --git a/template/yoga/picture.tpl b/template/yoga/picture.tpl index 6932eb1f6..d28632ca0 100644 --- a/template/yoga/picture.tpl +++ b/template/yoga/picture.tpl @@ -20,7 +20,7 @@ {lang:representative} - {favorite.FAVORITE_ALT} + {favorite.FAVORITE_ALT} {L_DOWNLOAD} @@ -47,7 +47,7 @@
- + {ALT_IMG} -- cgit v1.2.3