OXID eShop CE 4.10.1 tpl/page/details/inc/morepics.tpl 
[{assign var="oConfig" value=$oViewConf->getConfig()}]
[{if $oView->morePics()}]
[{assign var="iMorePics" value=$oView->getIcons()|@count}]
[{if $iMorePics > 4}]
[{oxscript include="js/libs/jquery.flexslider.min.js" priority=2}]
[{oxstyle include="css/libs/jquery.flexslider.min.css"}]
[{/if}]
10  <div class="otherPictures[{if $iMorePics > 4}] flexslider[{/if}]" id="morePicsContainer">
11  <ul class="[{if $iMorePics > 4}]slides[{else}]list-inline[{/if}]">
12  [{oxscript add="var aMorePic=new Array();"}]
13  [{foreach from=$oView->getIcons() key="iPicNr" item="oArtIcon" name="sMorePics"}]
*** 
14  [{* ToDo: This logical part should be ported into a core function. *}]
15  [{if $oConfig->getConfigParam('sAltImageUrl') || $oConfig->getConfigParam('sSSLAltImageUrl')}]
16  [{assign var="aPictureInfo" value=$oPictureProduct->getMasterZoomPictureUrl($iPicNr)|@getimagesize}]
*** 
17  [{else}]
18  [{assign var="sPropName" value="oxarticles__oxpic`$iPicNr`"}]
19  [{assign var="sPictureName" value=$oPictureProduct->$sPropName->value}]
20  [{assign var="aPictureInfo" value=$oConfig->getMasterPicturePath("product/`$iPicNr`/`$sPictureName`")|@getimagesize}]
21  [{/if}]
22  <li>
*** 
23  <a id="morePics_[{$smarty.foreach.sMorePics.iteration}]" [{if $smarty.foreach.sMorePics.first}] class="selected"[{/if}] href="[{$oPictureProduct->getPictureUrl($iPicNr)}]" data-num="[{$smarty.foreach.sMorePics.iteration}]" data-width="[{$aPictureInfo.0}]" data-height="[{$aPictureInfo.1}]" data-zoom-url="[{$oPictureProduct->getMasterZoomPictureUrl($iPicNr)}]">
24  <img src="[{$oPictureProduct->getIconUrl($iPicNr)}]" alt="morepic-[{$smarty.foreach.sMorePics.iteration}]">
25  </a>
26  </li>
27  [{/foreach}]
28  </ul>
29  </div>
30 [{/if}]
 
8 lines changed or deleted