Changeset 29928
- Timestamp:
- Oct 8, 2014, 4:21:48 PM (10 years ago)
- Location:
- extensions/Fotorama
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Fotorama/admin.php
r29918 r29928 20 20 'resize' => isset($_POST['resize']), 21 21 'info_button' => isset($_POST['info_button']), 22 'square_thumb' => isset($_POST['square_thumb']), 22 23 ); 23 24 if (isset($_POST['allowfullscreen'])) -
extensions/Fotorama/language/en_UK/plugin.lang.php
r29918 r29928 22 22 $lang['milliseconds'] = 'milliseconds'; 23 23 $lang['Add image info button'] = 'Add image info button'; 24 $lang['Thumbnail is a square (when present)'] = 'Thumbnail is a square (when present)'; 24 25 25 26 ?> -
extensions/Fotorama/language/ru_RU/plugin.lang.php
r29918 r29928 22 22 $lang['milliseconds'] = 'миллисекунд'; 23 23 $lang['Add image info button'] = 'Добавить кнопку информации об изображении'; 24 $lang['Thumbnail is a square (when present)'] = 'Квадратные миниатюры (когда присутствуют)'; 24 25 25 26 ?> -
extensions/Fotorama/main.inc.php
r29918 r29928 56 56 $conf['Fotorama']['period'] = 4000; 57 57 $conf['Fotorama']['info_button'] = false; 58 $conf['Fotorama']['square_thumb'] = true; 58 59 } 59 60 } … … 142 143 $row['derivative_big'] = $row['src_image']; 143 144 } 144 // $row['derivative_thumb'] = DerivativeImage::get_one(IMG_SQUARE, $row['src_image']); 145 $thumb_params = ImageStdParams::get_custom($conf['Fotorama']['thumbheight'], $conf['Fotorama']['thumbheight'], 1, $conf['Fotorama']['thumbheight'], $conf['Fotorama']['thumbheight']); 145 146 if ($conf['Fotorama']['square_thumb']) 147 { 148 $thumb_params = ImageStdParams::get_custom($conf['Fotorama']['thumbheight'], $conf['Fotorama']['thumbheight'], 1, $conf['Fotorama']['thumbheight'], $conf['Fotorama']['thumbheight']); 149 } 150 else 151 { 152 $thumb_params = ImageStdParams::get_custom(9999, $conf['Fotorama']['thumbheight']); 153 } 146 154 $row['derivative_thumb'] = new DerivativeImage($thumb_params, $row['src_image']);; 147 155 if ($row['derivative_thumb'] == null) -
extensions/Fotorama/maintain.inc.php
r29918 r29928 27 27 'period' => 4000, 28 28 'info_button' => false, 29 'square_thumb' => true, 29 30 ); 30 31 -
extensions/Fotorama/template/admin.tpl
r29918 r29928 94 94 </label> 95 95 <input type="number" size="2" maxlength="3" name="thumbheight" id="thumbheight" value="{$Fotorama.thumbheight}" min="5" max="300" style="width: 50px;"> 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> 96 102 </li> 97 103 <li> -
extensions/Fotorama/template/fotorama-content.tpl
r29918 r29928 21 21 data-full="{$thumbnail.derivative_big->get_url()}" data-url="{$thumbnail.url}" data-caption="{$thumbnail.TITLE}" 22 22 {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} 23 25 </a> 24 26 {/foreach}
Note: See TracChangeset
for help on using the changeset viewer.