diff options
author | Jozef Selesi <jozef.selesi@saturized.com> | 2013-03-11 15:59:00 +0100 |
---|---|---|
committer | Jozef Selesi <jozef.selesi@saturized.com> | 2013-03-11 15:59:00 +0100 |
commit | 3c47deb9ef3fd35b1602c822af2b752c6733bed3 (patch) | |
tree | cb4447fcccdb187b2699fe18c74d358d58ce81cd /themes | |
parent | bae14a76e52524e2157948bf30cfe3340d1e9a94 (diff) |
Themes can choose child thumbnail when asking for proportion.
This helps themes better calculate an item's container size, for cases
when the first item significantly differs in size from the rest.
Trac-Ticket: #1838
Diffstat (limited to 'themes')
-rw-r--r-- | themes/wind/views/page.html.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/wind/views/page.html.php b/themes/wind/views/page.html.php index 1dbb31c0..0ae41ea7 100644 --- a/themes/wind/views/page.html.php +++ b/themes/wind/views/page.html.php @@ -24,7 +24,7 @@ <link rel="apple-touch-icon-precomposed" href="<?= url::file(module::get_var("gallery", "apple_touch_icon_url")) ?>" /> <? if ($theme->page_type == "collection"): ?> - <? if (($thumb_proportion = $theme->thumb_proportion($theme->item(), 100)) != 1): ?> + <? if (($thumb_proportion = $theme->thumb_proportion($theme->item(), 100, "width")) != 1): ?> <? $new_width = round($thumb_proportion * 213) ?> <? $new_height = round($thumb_proportion * 240) ?> <style type="text/css"> |