56 lines
2.4 KiB
Smarty
56 lines
2.4 KiB
Smarty
{**
|
|
* 2012 - 2020 HiPresta
|
|
*
|
|
* MODULE Gallery
|
|
*
|
|
* @author HiPresta <support@hipresta.com>
|
|
* @copyright HiPresta 2020
|
|
* @license Addons PrestaShop license limitation
|
|
* @link https://hipresta.com
|
|
*
|
|
* NOTICE OF LICENSE
|
|
*
|
|
* Don't use this module on several shops. The license provided by PrestaShop Addons
|
|
* for all its modules is valid only once for a single shop.
|
|
*}
|
|
|
|
<div class="gallery-image-container" data-id-gallery="{$id_gallery|intval}">
|
|
{if !empty($gallery_all_image)}
|
|
<div class="gallery-image-content">
|
|
<div class="panel">
|
|
<h3><i class="icon-image"></i> {l s='Images' mod='higallery'}</h3>
|
|
<ul class="sortable clearfix" data-id-parent="{$id_gallery|intval}">
|
|
{foreach from=$gallery_all_image item=image}
|
|
<li class="item-block" data-id-image="{$image['id_image']|escape:'htmlall':'UTF-8'}">
|
|
{if $image['image']}
|
|
<div class="action-block">
|
|
<a href="#" class="btn delete-gallery-image"><i class="icon-trash"></i></a>
|
|
<a href="#" class="btn edit-gallery-image"><i class="icon-edit"></i></a>
|
|
</div>
|
|
{if $image.image|strstr:'https://' || $image.image|strstr:'http://'}
|
|
<img src="{$image.image}">
|
|
{else}
|
|
<img src="{$upload_img_path}thumbnail/{$image['image']|escape:'htmlall':'UTF-8'}">
|
|
{/if}
|
|
{/if}
|
|
{if $image['image_caption']}
|
|
<div class="caption">{$image['image_caption']|escape:'htmlall':'UTF-8'|truncate:13:"...":true}</div>
|
|
{/if}
|
|
</li>
|
|
{/foreach}
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
{else}
|
|
<div class="panel">
|
|
<h3><i class="icon-image"></i> {l s='Images' mod='higallery'}</h3>
|
|
<div class="list-empty">
|
|
<div class="list-empty-msg">
|
|
<i class="icon-warning-sign list-empty-icon"></i>
|
|
{l s='No records found' mod='higallery'}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{/if}
|
|
</div>
|