first commit
This commit is contained in:
53
modules/higallery/views/templates/front/galleries.tpl
Normal file
53
modules/higallery/views/templates/front/galleries.tpl
Normal file
@@ -0,0 +1,53 @@
|
||||
{**
|
||||
* 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}
|
||||
{if isset($gallery_controller_name) && $gallery_controller_name == 'gallery'}
|
||||
{capture name=path}
|
||||
{l s='Gallery' mod='higallery'}
|
||||
{/capture}
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
{if $gallery_title}
|
||||
<h1 class="gallery-title">{$gallery_title|escape:'htmlall':'UTF-8'}</h1>
|
||||
{/if}
|
||||
|
||||
{if $gallery_description}
|
||||
<div class="gallery-description">
|
||||
{$gallery_description nofilter}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if !empty($galleries) && $galleries['visible']}
|
||||
<div id="galleries">
|
||||
<div class="higallery-loader"></div>
|
||||
<div class="higallery-masonry column-3 clearfix">
|
||||
{foreach from=$galleries item=gallery}
|
||||
{if !empty($gallery['images'])}
|
||||
<div class="galleries-block higallery-masonry-item column-3">
|
||||
<a href="{$gallery['url'] nofilter}">
|
||||
<img src="{$upload_img_path}small/{$gallery['images'][0]['image']|escape:'htmlall':'UTF-8'}">
|
||||
<h4>{$gallery['name']|escape:'htmlall':'UTF-8'}</h4>
|
||||
</a>
|
||||
</div>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
{else}
|
||||
<p class="alert alert-danger">{l s='Gallery Not Found' mod='higallery'}</p>
|
||||
{/if}
|
||||
23
modules/higallery/views/templates/front/galleries17.tpl
Normal file
23
modules/higallery/views/templates/front/galleries17.tpl
Normal file
@@ -0,0 +1,23 @@
|
||||
{**
|
||||
* 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.
|
||||
*}
|
||||
|
||||
{extends file='page.tpl'}
|
||||
{block name='head_seo_title'}{$meta_title}{/block}
|
||||
{block name='head_seo_description'}{$meta_description nofilter}{/block}
|
||||
{block name='head_seo_keywords'}{$meta_keywords}{/block}
|
||||
{block name='page_content'}
|
||||
{include file='module:higallery/views/templates/front/galleries.tpl'}
|
||||
{/block}
|
||||
64
modules/higallery/views/templates/front/galleryimage.tpl
Normal file
64
modules/higallery/views/templates/front/galleryimage.tpl
Normal file
@@ -0,0 +1,64 @@
|
||||
{**
|
||||
* 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}
|
||||
23
modules/higallery/views/templates/front/galleryimage17.tpl
Normal file
23
modules/higallery/views/templates/front/galleryimage17.tpl
Normal file
@@ -0,0 +1,23 @@
|
||||
{**
|
||||
* 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.
|
||||
*}
|
||||
|
||||
{extends file='page.tpl'}
|
||||
{block name='head_seo_title'}{$meta_title}{/block}
|
||||
{block name='head_seo_description'}{$meta_description nofilter}{/block}
|
||||
{block name='head_seo_keywords'}{$meta_keywords}{/block}
|
||||
{block name='page_content'}
|
||||
{include file='module:higallery/views/templates/front/galleryimage.tpl'}
|
||||
{/block}
|
||||
27
modules/higallery/views/templates/front/index.php
Normal file
27
modules/higallery/views/templates/front/index.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
|
||||
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
header("Location: ../");
|
||||
exit;
|
||||
Reference in New Issue
Block a user