51 lines
2.5 KiB
Smarty
51 lines
2.5 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.
|
|
*}
|
|
|
|
{if !empty($gallerys) && $gallerys['visible']}
|
|
<div class="gallerys-container clearfix">
|
|
<div class="higallery-loader"></div>
|
|
{foreach from=$gallerys item=gallery}
|
|
{if !empty($gallery['images'])}
|
|
<div class="block {if $psv >= 1.7}featured-products{/if} gallery-main clearfix gallery-main-{$gallery['id_gallery']|escape:'htmlall':'UTF-8'}" data-id-gallery ="{$gallery['id_gallery']|escape:'htmlall':'UTF-8'}">
|
|
<p class="{if $psv < 1.7}title_block {else} h1 products-section-title text-uppercase{/if}">{$gallery['name']|escape:'htmlall':'UTF-8'}</p>
|
|
{if $gallery.title}
|
|
<h3 class="gallery-title">{$gallery.title|escape:'htmlall':'UTF-8'}</h3>
|
|
{/if}
|
|
|
|
{if $gallery.description}
|
|
<div class="gallery-description">
|
|
{$gallery.description nofilter}
|
|
</div>
|
|
{/if}
|
|
<div class="gallery-image-block {if $gallery['position'] !== 'displayLeftColumn' || $gallery['position'] == 'displayRightColumn'}higallery-masonry column-3 {/if}">
|
|
{foreach from=$gallery['images'] item=images}
|
|
<div class="higallery-masonry-item image-content">
|
|
<a href="{$upload_img_path}original/{$images['image']|escape:'htmlall':'UTF-8'}">
|
|
<img src="{$upload_img_path}small/{$images['image']|escape:'htmlall':'UTF-8'}" {if $images['image_caption']}alt="{$images['image_caption']}"{/if}>
|
|
{if $images['image_caption'] != ''}
|
|
<div class="caption">
|
|
<span>{$images['image_caption']|escape:'htmlall':'UTF-8'}</span>
|
|
</div>
|
|
{/if}
|
|
</a>
|
|
</div>
|
|
{/foreach}
|
|
</div>
|
|
</div>
|
|
{/if}
|
|
{/foreach}
|
|
</div>
|
|
{/if} |