mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-08 09:24:25 +03:00
13 lines
499 B
Smarty
13 lines
499 B
Smarty
|
{if $aTargetItems}
|
||
|
|
||
|
{foreach $aTargetItems as $oTarget}
|
||
|
{$aPreview=$oTarget->getPreviewImageItemsWebPath()}
|
||
|
{foreach $aPreview as $sPreviewFile}
|
||
|
<img src="{$sPreviewFile}" alt="">
|
||
|
{/foreach}
|
||
|
<a href="#" onclick="ls.media.removePreviewFile({$oTarget->getMediaId()}); return false;">Удалить превью</a>
|
||
|
{/foreach}
|
||
|
|
||
|
{else}
|
||
|
Превью можно <a href="#" onclick="jQuery('.js-tab-show-gallery').first().click(); return false;">выбрать из галереи</a>.
|
||
|
{/if}
|