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

Native proportions for thumbnails can be enabled

Location:
extensions/Fotorama/template
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/Fotorama/template/admin.tpl

    r29918 r29928  
    9494    </label>
    9595    <input type="number" size="2" maxlength="3" name="thumbheight" id="thumbheight" value="{$Fotorama.thumbheight}" min="5" max="300" style="width: 50px;">&nbsp;px
     96  </li>
     97  <li>
     98    <input type="checkbox" id="square_thumb" name="square_thumb"{if $Fotorama.square_thumb} checked="checked"{/if}>
     99    <label for="square_thumb">
     100      <b>{'Thumbnail is a square (when present)'|translate}</b>
     101    </label>
    96102  </li>
    97103  <li>
  • 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.