Changeset 29593 for extensions
- Timestamp:
- Sep 17, 2014, 4:19:47 PM (10 years ago)
- Location:
- extensions/Fotorama
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Fotorama/admin.php
r29384 r29593 25 25 if (isset($_POST['fullscreen_nav'])) 26 26 $conf['Fotorama']['fullscreen_nav'] = $_POST['fullscreen_nav']; 27 if (isset($_POST['thumbheight'])) 28 $conf['Fotorama']['thumbheight'] = $_POST['thumbheight']; 27 29 28 30 conf_update_param('Fotorama', serialize($conf['Fotorama'])); -
extensions/Fotorama/language/ru_RU/plugin.lang.php
r29384 r29593 13 13 $lang['Only fullscreen mode'] = 'Только полноэкранный режим'; 14 14 $lang['Show caption with image title'] = 'Показывать заголовок с названием изображения'; 15 $lang['Tumbnail height (when present)'] = 'Высота миниатюр (когда присутствуют)'; 15 16 16 17 ?> -
extensions/Fotorama/main.inc.php
r29399 r29593 31 31 32 32 $conf['Fotorama'] = unserialize($conf['Fotorama']); 33 34 // Upgrade params from 2.7.j 35 if (!isset($conf['Fotorama']['thumbheight'])) { 36 $conf['Fotorama']['thumbheight'] = 64; 37 } 33 38 34 39 add_event_handler('loc_end_picture', 'Fotorama_end_picture'); … … 87 92 $row['derivative_big'] = $row['src_image']; 88 93 } 89 $row['derivative_thumb'] = DerivativeImage::get_one(IMG_SQUARE, $row['src_image']); 94 // $row['derivative_thumb'] = DerivativeImage::get_one(IMG_SQUARE, $row['src_image']); 95 $thumb_params = ImageStdParams::get_custom($conf['Fotorama']['thumbheight'], $conf['Fotorama']['thumbheight'], 1, $conf['Fotorama']['thumbheight'], $conf['Fotorama']['thumbheight']); 96 $row['derivative_thumb'] = new DerivativeImage($thumb_params, $row['src_image']);; 90 97 if ($row['derivative_thumb'] == null) 91 98 { -
extensions/Fotorama/maintain.inc.php
r29384 r29593 19 19 'only_fullscreen' => false, 20 20 'enable_caption' => false, 21 'thumbheight' => 64, 21 22 ); 22 23 -
extensions/Fotorama/template/admin.tpl
r29387 r29593 46 46 </li> 47 47 <li> 48 <label for=" nav">49 <b>{' Navigation style'|@translate}</b>48 <label for="fullscreen_nav"> 49 <b>{'Fullscreen navigation style'|@translate}</b> 50 50 </label> 51 <select class="categoryDropDown" id=" nav" name="nav">52 <option value="false"{if $Fotorama. nav == 'false'} selected{/if}>{'false'|@translate}</option>53 <option value="dots"{if $Fotorama. nav == 'dots'} selected{/if}>{'dots'|@translate}</option>54 <option value="thumbs"{if $Fotorama. nav == 'thumbs'} selected{/if}>{'thumbs'|@translate}</option>51 <select class="categoryDropDown" id="fullscreen_nav" name="fullscreen_nav"> 52 <option value="false"{if $Fotorama.fullscreen_nav == 'false'} selected{/if}>{'false'|@translate}</option> 53 <option value="dots"{if $Fotorama.fullscreen_nav == 'dots'} selected{/if}>{'dots'|@translate}</option> 54 <option value="thumbs"{if $Fotorama.fullscreen_nav == 'thumbs'} selected{/if}>{'thumbs'|@translate}</option> 55 55 </select> 56 56 </li> … … 64 64 <option value="thumbs"{if $Fotorama.fullscreen_nav == 'thumbs'} selected{/if}>{'thumbs'|@translate}</option> 65 65 </select> 66 </li> 67 <li> 68 <label for="thumbheight"> 69 <b>{'Tumbnail height (when present)'|@translate}</b> 70 </label> 71 <input type="number" size="2" maxlength="3" name="thumbheight" value="{$Fotorama.thumbheight}" min="5" max="300" style="width: 50px;"> px 66 72 </li> 67 73 <li> -
extensions/Fotorama/template/slideshow.tpl
r29592 r29593 30 30 data-allowfullscreen="{$Fotorama['allowfullscreen']}" data-autoplay="{if $Fotorama['autoplay']}true{else}false{/if}" 31 31 data-transition="{$Fotorama['transition']}" data-stopautoplayontouch="{if $Fotorama['stopautoplayontouch']}true{else}false{/if}" 32 data-loop="{if $Fotorama['loop']}true{else}false{/if}" data-captions="false" >32 data-loop="{if $Fotorama['loop']}true{else}false{/if}" data-captions="false" data-thumbheight="{$Fotorama['thumbheight']}" data-thumbwidth="{$Fotorama['thumbheight']}"> 33 33 {foreach from=$items item=thumbnail} 34 34 <a href="{$thumbnail['derivative']->get_url()}"
Note: See TracChangeset
for help on using the changeset viewer.