From e693ef60cd8f79e11ae4de3ba2f7494a72fc35c2 Mon Sep 17 00:00:00 2001 From: rvelices Date: Tue, 17 Jan 2012 06:09:32 +0000 Subject: feature 2548 multisize - ability to choose displayed size on index page -added some logs on i.php (configurable) to measure the perf git-svn-id: http://piwigo.org/svn/trunk@12908 68402e56-0260-453c-a942-63ccdbb3a9ee --- themes/default/iconset.css | 1 + themes/default/s26/outline_005e89.png | Bin 1952 -> 2042 bytes themes/default/s26/outline_808060.png | Bin 1952 -> 2042 bytes themes/default/s26/outline_808080.png | Bin 2477 -> 2556 bytes themes/default/s26/outline_ff3363.png | Bin 1952 -> 2042 bytes themes/default/s26/outline_ff7700.png | Bin 1952 -> 2042 bytes themes/default/s26/outline_ffff80.png | Bin 1952 -> 2042 bytes themes/default/s26/outline_ffffff.png | Bin 2169 -> 2247 bytes themes/default/template/index.tpl | 33 +++++++++++++++++++++++++++++++++ themes/default/template/thumbnails.tpl | 21 ++++++++++++++++++--- themes/default/theme.css | 5 +---- 11 files changed, 53 insertions(+), 7 deletions(-) (limited to 'themes') diff --git a/themes/default/iconset.css b/themes/default/iconset.css index 976f2ce0f..9a7bd464a 100644 --- a/themes/default/iconset.css +++ b/themes/default/iconset.css @@ -37,6 +37,7 @@ .pwg-icon-close {background-position: 0 -52px} .pwg-icon-category-edit {background-position: -26px -52px} .pwg-icon-sort {background-position: -52px -52px} +.pwg-icon-sizes {background-position: -78px -52px} .pwg-icon-category-view-normal {background-position: -156px -52px} .pwg-icon-category-view-flat {background-position: -182px -52px} diff --git a/themes/default/s26/outline_005e89.png b/themes/default/s26/outline_005e89.png index 0e411a152..ee114abe9 100644 Binary files a/themes/default/s26/outline_005e89.png and b/themes/default/s26/outline_005e89.png differ diff --git a/themes/default/s26/outline_808060.png b/themes/default/s26/outline_808060.png index 01d1f18df..351cf4149 100644 Binary files a/themes/default/s26/outline_808060.png and b/themes/default/s26/outline_808060.png differ diff --git a/themes/default/s26/outline_808080.png b/themes/default/s26/outline_808080.png index d51b3b44c..c7a89c270 100644 Binary files a/themes/default/s26/outline_808080.png and b/themes/default/s26/outline_808080.png differ diff --git a/themes/default/s26/outline_ff3363.png b/themes/default/s26/outline_ff3363.png index 9a5aef891..bb2224f39 100644 Binary files a/themes/default/s26/outline_ff3363.png and b/themes/default/s26/outline_ff3363.png differ diff --git a/themes/default/s26/outline_ff7700.png b/themes/default/s26/outline_ff7700.png index 45caa0dc3..6cbec3fdf 100644 Binary files a/themes/default/s26/outline_ff7700.png and b/themes/default/s26/outline_ff7700.png differ diff --git a/themes/default/s26/outline_ffff80.png b/themes/default/s26/outline_ffff80.png index 0f54e2e46..66734159b 100644 Binary files a/themes/default/s26/outline_ffff80.png and b/themes/default/s26/outline_ffff80.png differ diff --git a/themes/default/s26/outline_ffffff.png b/themes/default/s26/outline_ffffff.png index 338aa82b5..d9ac061cd 100644 Binary files a/themes/default/s26/outline_ffffff.png and b/themes/default/s26/outline_ffffff.png differ diff --git a/themes/default/template/index.tpl b/themes/default/template/index.tpl index bac0125e5..5f0853071 100644 --- a/themes/default/template/index.tpl +++ b/themes/default/template/index.tpl @@ -35,6 +35,39 @@ function toggleSortOrderBox() {/literal}{/footer_script} {/strip} {/if} + +{if !empty($image_derivatives)} +
  • {strip} +  {'Photo Sizes'|@translate} + + + {footer_script}{literal} +function toggleImageDerivativesBox() +{ + var elt = document.getElementById("derivativeSwitchBox"), + ePos = document.getElementById("derivativeChooseLink"); + if (elt.style.display==="none") + { + elt.style.position = "absolute"; + elt.style.left = (ePos.offsetLeft) + "px"; + elt.style.top = (ePos.offsetTop + ePos.offsetHeight) + "px"; + elt.style.display=""; + } + else + elt.style.display="none"; +} + {/literal}{/footer_script} + {/strip}
  • +{/if} + {if isset($favorite)}
  •  {'delete all photos from your favorites'|@translate} diff --git a/themes/default/template/thumbnails.tpl b/themes/default/template/thumbnails.tpl index 75033a436..fec76214e 100644 --- a/themes/default/template/thumbnails.tpl +++ b/themes/default/template/thumbnails.tpl @@ -1,10 +1,25 @@ -{if !empty($thumbnails)} -{strip}{foreach from=$thumbnails item=thumbnail} +{if !empty($thumbnails)}{strip} +{html_head} + +{/html_head} +{foreach from=$thumbnails item=thumbnail}
  • - {$thumbnail.TN_ALT} + {$thumbnail.TN_ALT} {if $SHOW_THUMBNAIL_CAPTION } diff --git a/themes/default/theme.css b/themes/default/theme.css index 2b43be418..b8f919c43 100644 --- a/themes/default/theme.css +++ b/themes/default/theme.css @@ -685,13 +685,10 @@ IMG.ui-datepicker-trigger { } /* Set some sizes according to your maximum thumbnail width and height */ -.thumbnails SPAN, -.thumbnails .wrap2 A, -.thumbnails LABEL, .thumbnailCategory DIV.illustration { width: 140px; /* max thumbnail width + 2px */ } -.thumbnails .wrap2, + .content .thumbnailCategory .description { height: 140px; /* max thumbnail height + 2px */ } -- cgit v1.2.3