Ignore:
Timestamp:
Oct 8, 2014, 4:21:48 PM (10 years ago)
Author:
JanisV
Message:

Native proportions for thumbnails can be enabled

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Fotorama/template/fotorama-content.tpl

    r29918 r29928  
    2121    data-full="{$thumbnail.derivative_big->get_url()}" data-url="{$thumbnail.url}" data-caption="{$thumbnail.TITLE}"
    2222    {if $Fotorama.nav == 'thumbs' || $Fotorama.fullscreen_nav == 'thumbs'}data-thumb="{$thumbnail.derivative_thumb->get_url()}"{/if}>
     23    {assign var=thumb_size value=$thumbnail.derivative_thumb->get_size()}
     24    {if !$Fotorama.square_thumb}<img width="{$thumb_size[0]}" height="{$thumb_size[1]}">{/if}
    2325  </a>
    2426{/foreach}
Note: See TracChangeset for help on using the changeset viewer.