diff options
author | Bharat Mediratta <bharat@menalto.com> | 2011-03-20 10:25:59 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2011-03-20 10:25:59 -0700 |
commit | dc21cf36b606048dc24532407d39bc8f5b4211fa (patch) | |
tree | 1a9cd75bff7342f216484882fa3564184a478368 /themes | |
parent | e4d4a89a1bd54164fb62d95ac62a44957d124e68 (diff) |
Change the $thumb_proportions variable to be a theme callback which
takes an item as an argument. This will let us figure out proportions
in the case where a module has defined custom thumbnail sizes.
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 2b86556d..7462f864 100644 --- a/themes/wind/views/page.html.php +++ b/themes/wind/views/page.html.php @@ -23,7 +23,7 @@ type="image/x-icon" /> <? if ($theme->page_type == "collection"): ?> - <? if ($thumb_proportion != 1): ?> + <? if (($thumb_proportion = $theme->thumb_proportion($theme->item())) != 1): ?> <? $new_width = round($thumb_proportion * 213) ?> <? $new_height = round($thumb_proportion * 240) ?> <style type="text/css"> |