Files
newwalls.pl/modules/higallery/views/templates/front/galleryimage.tpl
2024-12-17 13:43:22 +01:00

65 lines
2.9 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 $psv < 1.7}
{capture name=path}
<a href="{$gallery_front_controller nofilter}">{l s='Gallery' mod='higallery'}</a>
<span class="navigation-pipe">{$navigationPipe}</span>
{if !empty($galleryimage)}
<span class="navigation_page">{$galleryimage['name']|escape:'htmlall':'UTF-8'}</span>
{/if}
{/capture}
{/if}
{if $galleryimage.title}
<h1 class="gallery-title">{$galleryimage.title|escape:'htmlall':'UTF-8'}</h1>
{/if}
{if $galleryimage.description}
<div class="gallery-description">
{$galleryimage.description nofilter}
</div>
{/if}
{if !empty($galleryimage)}
<div class="gallerys-container clearfix">
<div class="higallery-loader"></div>
<div class="block {if $psv >= 1.7}featured-products{/if} gallery-main clearfix gallery-main-{$galleryimage['id_gallery']|escape:'htmlall':'UTF-8'}" data-id-gallery ="{$galleryimage['id_gallery']|escape:'htmlall':'UTF-8'}">
<div class="gallery-image-block higallery-masonry column-3">
{if !empty($galleryimage['images'])}
{foreach from=$galleryimage['images'] item=images name=galleryLoop}
<div class="higallery-masonry-item image-content">
<a href="{$upload_img_path}original/{$images['image']|escape:'htmlall':'UTF-8'}">
<img class="hi-lazy" src="{$upload_img_path}{if $smarty.foreach.galleryLoop.iteration > 6}placeholder.jpg{else}small/{$images['image']|escape:'htmlall':'UTF-8'}{/if}" data-src="{$upload_img_path}small/{$images['image']|escape:'htmlall':'UTF-8'}" data-srcset="{$upload_img_path}small/{$images['image']|escape:'htmlall':'UTF-8'} 1x" {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}
{else}
<p class="alert alert-danger">{l s='Image Not Found' mod='higallery'}</p>
{/if}
</div>
</div>
</div>
{else}
<p class="alert alert-danger">{l s='Gallery Not Found' mod='higallery'}</p>
{/if}