first commit
This commit is contained in:
45
modules/higallery/views/templates/hook/gallery-ajax.tpl
Normal file
45
modules/higallery/views/templates/hook/gallery-ajax.tpl
Normal file
@@ -0,0 +1,45 @@
|
||||
{**
|
||||
* 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 $gallery && $gallery['images']}
|
||||
<div class="gallerys-container clearfix" data-id-loaded-gallery="{$gallery.id_gallery|intval}">
|
||||
<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'}">
|
||||
{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>
|
||||
</div>
|
||||
{/if}
|
||||
51
modules/higallery/views/templates/hook/gallery.tpl
Normal file
51
modules/higallery/views/templates/hook/gallery.tpl
Normal file
@@ -0,0 +1,51 @@
|
||||
{**
|
||||
* 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}
|
||||
26
modules/higallery/views/templates/hook/header.tpl
Normal file
26
modules/higallery/views/templates/hook/header.tpl
Normal file
@@ -0,0 +1,26 @@
|
||||
{**
|
||||
* 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.
|
||||
*}
|
||||
|
||||
<script type="text/javascript">
|
||||
{literal}
|
||||
var psv = '{/literal}{$psv|escape:'htmlall':'UTF-8'}{literal}';
|
||||
var gl_secure_key = '{/literal}{$gl_secure_key|escape:'htmlall':'UTF-8'}{literal}';
|
||||
{/literal}
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
|
||||
27
modules/higallery/views/templates/hook/index.php
Normal file
27
modules/higallery/views/templates/hook/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