first commit
This commit is contained in:
@@ -0,0 +1,158 @@
|
||||
{**
|
||||
* 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="helpers/form/form.tpl"}
|
||||
{block name="script"}
|
||||
var ps_force_friendly_product = false;
|
||||
{/block}
|
||||
{block name="input" prepend}
|
||||
<script type="text/javascript">
|
||||
var PS_ALLOW_ACCENTED_CHARS_URL;
|
||||
{if isset($PS_ALLOW_ACCENTED_CHARS_URL) && $PS_ALLOW_ACCENTED_CHARS_URL}
|
||||
PS_ALLOW_ACCENTED_CHARS_URL = 1;
|
||||
{else}
|
||||
PS_ALLOW_ACCENTED_CHARS_URL = 0;
|
||||
{/if}
|
||||
</script>
|
||||
{/block}
|
||||
|
||||
{block name="field"}
|
||||
{if $input.type == 'file_multiple'}
|
||||
<div class="col-lg-8 {$input.class|escape:'htmlall':'UTF-8'}">
|
||||
<div class="form-group">
|
||||
<div class="col-lg-12">
|
||||
<input id="{$input.name|escape:'htmlall':'UTF-8'}" type="file" data-url="{$gallery_controller_url|escape:'html':'UTF-8'}" multiple="multiple" style="width:0px;height:0px;" />
|
||||
<button class="btn btn-default" data-style="expand-right" data-size="s" type="button" id="{$input.name|escape:'htmlall':'UTF-8'}-add-button">
|
||||
<i class="icon-folder-open"></i> {if isset($multiple) && $multiple}{l s='Add files...' mod='higallery'}{else}{l s='Add file...' mod='higallery'}{/if}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="well" style="display:none">
|
||||
<div id="{$input.name|escape:'htmlall':'UTF-8'}-files-list"></div>
|
||||
<button class="ladda-button btn btn-primary" data-style="expand-right" type="button" id="{$input.name|escape:'htmlall':'UTF-8'}-upload-button" style="display:none;">
|
||||
<span class="ladda-label"><i class="icon-check"></i>{l s='Upload files' mod='higallery'}</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
function humanizeSize(bytes)
|
||||
{
|
||||
if (typeof bytes !== 'number') {
|
||||
return '';
|
||||
}
|
||||
|
||||
if (bytes >= 1000000000) {
|
||||
return (bytes / 1000000000).toFixed(2) + ' GB';
|
||||
}
|
||||
|
||||
if (bytes >= 1000000) {
|
||||
return (bytes / 1000000).toFixed(2) + ' MB';
|
||||
}
|
||||
|
||||
return (bytes / 1000).toFixed(2) + ' KB';
|
||||
}
|
||||
|
||||
$( document ).ready(function() {
|
||||
{if isset($multiple) && isset($max_files)}
|
||||
var {$input.name|escape:'htmlall':'UTF-8'}_max_files = {$max_files - $files|count};
|
||||
{/if}
|
||||
|
||||
var {$input.name|escape:'htmlall':'UTF-8'}_upload_button = Ladda.create(document.querySelector('#{$input.name|escape:'htmlall':'UTF-8'}-upload-button'));
|
||||
var {$input.name|escape:'htmlall':'UTF-8'}_total_files = 0;
|
||||
|
||||
$('#{$input.name|escape:'htmlall':'UTF-8'}').fileupload({
|
||||
dataType: 'json',
|
||||
async: false,
|
||||
autoUpload: false,
|
||||
singleFileUploads: true,
|
||||
{if isset($post_max_size)}maxFileSize: {$post_max_size},{/if}
|
||||
{if isset($drop_zone)}dropZone: {$drop_zone},{/if}
|
||||
start: function (e) {
|
||||
{$input.name|escape:'htmlall':'UTF-8'}_upload_button.start();
|
||||
$('#{$input.name|escape:'htmlall':'UTF-8'}-upload-button').unbind('click'); //Important as we bind it for every elements in add function
|
||||
},
|
||||
fail: function (e, data) {
|
||||
$('#{$input.name|escape:'htmlall':'UTF-8'}-errors').html(data.errorThrown.message).parent().show();
|
||||
},
|
||||
done: function (e, data) {
|
||||
if (data.result.error) {
|
||||
showErrorMessage(data.result.error);
|
||||
} else {
|
||||
showSuccessMessage('Successful upload');
|
||||
$('.gallery-image-container').remove();
|
||||
$('.gallery_image_form').replaceWith(data.result.content);
|
||||
initSortableItems();
|
||||
$('#{$input.name|escape:'htmlall':'UTF-8'}-files-list').html('').parent().hide();
|
||||
}
|
||||
},
|
||||
}).on('fileuploadalways', function (e, data) {
|
||||
{$input.name|escape:'htmlall':'UTF-8'}_total_files--;
|
||||
{$input.name|escape:'htmlall':'UTF-8'}_max_files--;
|
||||
|
||||
if ({$input.name|escape:'htmlall':'UTF-8'}_total_files == 0) {
|
||||
{$input.name|escape:'htmlall':'UTF-8'}_upload_button.stop();
|
||||
$('#{$input.name|escape:'htmlall':'UTF-8'}-upload-button').unbind('click');
|
||||
$('#{$input.name|escape:'htmlall':'UTF-8'}-files-list').parent().hide();
|
||||
}
|
||||
}).on('fileuploadadd', function(e, data) {
|
||||
data.context = $('<div/>').addClass('form-group').appendTo($('#{$input.name|escape:'htmlall':'UTF-8'}-files-list'));
|
||||
var file_name = $('<span/>').append('<strong>'+data.files[0].name+'</strong> ('+humanizeSize(data.files[0].size)+')').appendTo(data.context);
|
||||
|
||||
var button = $('<button/>').addClass('btn btn-default pull-right').prop('type', 'button').html('<i class="icon-trash"></i> Remove file').appendTo(data.context).on('click', function() {
|
||||
{$input.name|escape:'htmlall':'UTF-8'}_total_files--;
|
||||
data.files = null;
|
||||
|
||||
var total_elements = $(this).parent().siblings('div.form-group').length;
|
||||
$(this).parent().remove();
|
||||
|
||||
if (total_elements == 0) {
|
||||
$('#{$input.name|escape:'htmlall':'UTF-8'}-files-list').html('').parent().hide();
|
||||
}
|
||||
});
|
||||
|
||||
$('#{$input.name|escape:'htmlall':'UTF-8'}-files-list').parent().show();
|
||||
$('#{$input.name|escape:'htmlall':'UTF-8'}-upload-button').show().bind('click', function () {
|
||||
if (data.files != null)
|
||||
data.submit();
|
||||
});
|
||||
|
||||
{$input.name|escape:'htmlall':'UTF-8'}_total_files++;
|
||||
}).on('fileuploadprocessalways', function (e, data) {});
|
||||
|
||||
$('#{$input.name|escape:'htmlall':'UTF-8'}-files-list').parent().hide();
|
||||
{$input.name|escape:'htmlall':'UTF-8'}_total_files = 0;
|
||||
|
||||
$('#{$input.name|escape:'htmlall':'UTF-8'}-add-button').on('click', function() {
|
||||
$('#{$input.name|escape:'htmlall':'UTF-8'}').trigger('click');
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{elseif $input.type == 'button'}
|
||||
<div class="col-lg-8 {$input.class|escape:'htmlall':'UTF-8'}">
|
||||
<div class="form-group">
|
||||
<div class="col-lg-12">
|
||||
<button class="btn btn-default" type="button" id="{$input.name|escape:'htmlall':'UTF-8'}">
|
||||
<i class="icon-instagram"></i> {$input.title|escape:'htmlall':'UTF-8'}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{else}
|
||||
{$smarty.block.parent}
|
||||
{/if}
|
||||
{/block}
|
||||
@@ -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;
|
||||
@@ -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;
|
||||
@@ -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;
|
||||
@@ -0,0 +1,19 @@
|
||||
{**
|
||||
* 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.
|
||||
*}
|
||||
|
||||
<a href="{$href|escape:'html':'UTF-8'}" title="{$action|escape:'html':'UTF-8'}" class="delete">
|
||||
<i class="icon-trash"></i> {$action|escape:'html':'UTF-8'}
|
||||
</a>
|
||||
@@ -0,0 +1,55 @@
|
||||
{**
|
||||
* 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="helpers/list/list_content.tpl"}
|
||||
{block name="td_content"}
|
||||
{if $key == 'manage_image'}
|
||||
<a data-id-gallery="{$tr.id_gallery|escape:'htmlall':'UTF-8'}" class="btn btn-default gallery_manage_image"
|
||||
href="#" title="{l s='Image' mod='higallery'}">
|
||||
<i class="icon-image"></i>
|
||||
</a>
|
||||
{elseif $key == 'position'}
|
||||
{if $tr.position == 'gallery_page'}
|
||||
{l s='Gallery Page' mod='higallery'}
|
||||
{elseif $tr.position == 'single_gallery_page'}
|
||||
{l s='Single Gallery Page' mod='higallery'}
|
||||
{else}
|
||||
{$tr.position}
|
||||
{/if}
|
||||
{elseif $key == 'status'}
|
||||
{if $table == 'higallerysocialnetwork'}
|
||||
{assign var="id" value=$tr.id_higallerysocialnetwork}
|
||||
{else}
|
||||
{assign var="id" value=$tr.id_gallery}
|
||||
{/if}
|
||||
<a data-id="{$id|escape:'htmlall':'UTF-8'}" data-status="{$tr.active|escape:'htmlall':'UTF-8'}" class="status btn {if $tr.active == '0'}btn-danger{else}btn-success{/if}"
|
||||
href="#" title="{if $tr.active == '0'}{l s='Disabled' mod='higallery'}{else}{l s='Enabled' mod='higallery'}{/if}">
|
||||
<i class="{if $tr.active == '0'}icon-remove {else}icon-check{/if}"></i>
|
||||
</a>
|
||||
{elseif $key == 'custom_hook'}
|
||||
{literal}{{/literal}hook h="higallery" id="{$tr['id_gallery']|escape:'htmlall':'UTF-8'}"{literal}}{/literal}
|
||||
{elseif $key == 'custom_html'}
|
||||
<div data-toggle="tooltip" title="{l s='Add this in HTML editor or any tpl file to display the gallery'}"><div class="hi-gallery-ajax-loader" id="higallery-{$tr.id_gallery|intval}"></div></div>
|
||||
{elseif $key == 'shortcode'}
|
||||
[higallery id-gallery='{$tr.id_gallery|intval}']
|
||||
{elseif $key == 'sort'}
|
||||
<a href="#">
|
||||
<i class="icon-move"></i>
|
||||
</a>
|
||||
{else}
|
||||
{$smarty.block.parent}
|
||||
{/if}
|
||||
{/block}
|
||||
27
modules/higallery/views/templates/admin/_configure/index.php
Normal file
27
modules/higallery/views/templates/admin/_configure/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;
|
||||
30
modules/higallery/views/templates/admin/display_form.tpl
Normal file
30
modules/higallery/views/templates/admin/display_form.tpl
Normal file
@@ -0,0 +1,30 @@
|
||||
{**
|
||||
* 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="{if $psv >= 1.6}form-horizontal col-lg-10 {else}form_content{/if}">
|
||||
{foreach $errors as $error}
|
||||
<div class="{if $psv >= 1.6}alert alert-danger{else}error{/if}">
|
||||
{$error|escape:'htmlall':'UTF-8'}
|
||||
</div>
|
||||
{/foreach}
|
||||
{foreach $success as $succes}
|
||||
<div class="{if $psv >= 1.6}alert alert-success{else}conf{/if}">
|
||||
{$succes|escape:'htmlall':'UTF-8'}
|
||||
</div>
|
||||
{/foreach}
|
||||
{$content nofilter}
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
41
modules/higallery/views/templates/admin/documentation.tpl
Normal file
41
modules/higallery/views/templates/admin/documentation.tpl
Normal file
@@ -0,0 +1,41 @@
|
||||
{**
|
||||
* 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="panel">
|
||||
<h3>{l s='Documentation' mod='higallery'}</h3>
|
||||
<pre>
|
||||
<b>{l s='General Settings' mod='higallery'}</b>
|
||||
|
||||
{l s='Friendly URL - This is the URL where the main gallery page will be available' mod='higallery'}
|
||||
{l s='Meta title - Meta title for the main gallery page.' mod='higallery'}
|
||||
{l s='Meta description - Meta description for main gallery page' mod='higallery'}
|
||||
{l s='Meta keywords - Meta keyword for main gallery page' mod='higallery'}
|
||||
{l s='Clean Database when module uninstalled - if enabled all data will be removed from database when module uninstalled. Enable this only if you\'re not going to use the module.' mod='higallery'}
|
||||
|
||||
<b>{l s='Gallery List' mod='higallery'}</b>
|
||||
|
||||
{l s='Here you can create unlimited number of galleries.' mod='higallery'}
|
||||
{l s='Click on "Add" button ("plus" icon), then add a gallery to the position you want to display.' mod='higallery'}
|
||||
{l s='There are 6 positions available.' mod='higallery'}
|
||||
{l s='Gallery page - gallery will be added to main gallery page.' mod='higallery'}
|
||||
{l s='Home - gallery will be added to home hook.' mod='higallery'}
|
||||
{l s='Left Column - gallery will be added to left column hook.' mod='higallery'}
|
||||
{l s='Right Column - gallery will be added to right column hook.' mod='higallery'}
|
||||
{l s='Footer - gallery will be added to footer hook.' mod='higallery'}
|
||||
{l s='Custom - You\'ll need to add a custom hook to your tpl file where you want to display the gallery' mod='higallery'}
|
||||
{l s='After adding the gallery, click on “Manage images” button to upload images in your gallery.' mod='higallery'}
|
||||
</pre>
|
||||
</div>
|
||||
55
modules/higallery/views/templates/admin/gallery_image.tpl
Normal file
55
modules/higallery/views/templates/admin/gallery_image.tpl
Normal file
@@ -0,0 +1,55 @@
|
||||
{**
|
||||
* 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>
|
||||
27
modules/higallery/views/templates/admin/index.php
Normal file
27
modules/higallery/views/templates/admin/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;
|
||||
17
modules/higallery/views/templates/admin/link.tpl
Normal file
17
modules/higallery/views/templates/admin/link.tpl
Normal file
@@ -0,0 +1,17 @@
|
||||
{**
|
||||
* 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.
|
||||
*}
|
||||
|
||||
<a href="{$link}" target="{$target}">{$title}</a>
|
||||
@@ -0,0 +1,24 @@
|
||||
{**
|
||||
* 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 $social_account_images && $social_account_images|count > 0}
|
||||
{foreach $social_account_images as $image}
|
||||
<div class="social-account-image-item col-lg-2">
|
||||
<img src="{$image}">
|
||||
<input type="checkbox" name="social_account_image" value="{$image}">
|
||||
</div>
|
||||
{/foreach}
|
||||
{/if}
|
||||
@@ -0,0 +1,49 @@
|
||||
{**
|
||||
* 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="panel gallery-social-account-images-container">
|
||||
<div class="form-wrapper">
|
||||
<div class="row load-more-images-container">
|
||||
{if $social_account_images && $social_account_images|count > 0}
|
||||
{foreach $social_account_images as $image}
|
||||
<div class="social-account-image-item col-lg-2">
|
||||
<img src="{$image}">
|
||||
<input type="checkbox" name="social_account_image" value="{$image}">
|
||||
</div>
|
||||
{/foreach}
|
||||
{else}
|
||||
<div class="list-empty-msg">
|
||||
<i class="icon-warning-sign list-empty-icon"></i>
|
||||
{l s='No records found' mod='higallery'}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
{if $ig_next_page}
|
||||
<a href="{$ig_next_page}" class="btn btn-default load-more-ig-images">
|
||||
<i class="icon-refresh"></i>
|
||||
{l s='Load more images' mod='higallery'}
|
||||
</a>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
<div class="panel-footer">
|
||||
<button class="btn btn-default pull-left back-to-select-social-accounts"><i class="process-icon-back"></i> {l s='Back'}</button>
|
||||
{if $social_account_images && $social_account_images|count > 0}
|
||||
<button class="btn btn-default pull-right import-social-images"><i class="process-icon-import"></i> {l s='Import Selected Images'}</button>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
35
modules/higallery/views/templates/admin/menu_tabs.tpl
Normal file
35
modules/higallery/views/templates/admin/menu_tabs.tpl
Normal file
@@ -0,0 +1,35 @@
|
||||
{**
|
||||
* 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="col-lg-2">
|
||||
<div class="list-group">
|
||||
{foreach from=$tabs key=tab_key item=tab}
|
||||
<a
|
||||
{if $tab_key == 'version'} style="margin-top:30px;" {/if}
|
||||
class="list-group-item {if {$module_key|escape:'htmlall':'UTF-8'} == "{$tab_key}" || ($module_key == '' && $tab_key == 'generel_settings')} active{/if}"
|
||||
href="{$module_url|escape:'htmlall':'UTF-8'}&{$module_tab_key}={$tab_key|escape:'htmlall':'UTF-8'}">
|
||||
{if isset($tab.icon)}
|
||||
<i class="{$tab.icon}"></i>
|
||||
{/if}
|
||||
{if $tab_key != 'version'}
|
||||
{$tab.title|escape:'htmlall':'UTF-8'}
|
||||
{else}
|
||||
{$tab.title|escape:'htmlall':'UTF-8'} - {$module_version|escape:'html':'UTF-8'}
|
||||
{/if}
|
||||
</a>
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
23
modules/higallery/views/templates/admin/modal.tpl
Normal file
23
modules/higallery/views/templates/admin/modal.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.
|
||||
*}
|
||||
|
||||
<div id="gallery_modal_container">
|
||||
<div id="modal_form" class="modal fade" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<div class="content"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,71 @@
|
||||
{**
|
||||
* 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="col-lg-12 hipresta-modules-ad">
|
||||
<div class="clearfix">
|
||||
{*<div class="col-lg-12 module-sorting-menu">
|
||||
{if !$free_module}
|
||||
{l s='Check our modules' mod='higallery'}
|
||||
{else}
|
||||
{l s='Check our free modules' mod='higallery'}
|
||||
{/if}
|
||||
</div>*}
|
||||
|
||||
{if $show_module}
|
||||
{foreach from=$modules key=k item=module}
|
||||
{if $k|substr:0:1 == 'A'}
|
||||
<div class="module-item module-item-grid col-md-12 col-lg-4 col-xl-3">
|
||||
<div class="module-item-wrapper-grid">
|
||||
<div class="module-item-heading-grid">
|
||||
<div class="module-logo-thumb-grid">
|
||||
<img src="{$module->image_link}" alt="{$module->display_name}">
|
||||
</div>
|
||||
<h3 title="{$module->display_name}" class="text-ellipsis module-name-grid">
|
||||
<span>{$module->display_name}</span>
|
||||
</h3>
|
||||
</div>
|
||||
<div class="module-quick-description-grid no-padding mb-0">
|
||||
{if isset($module->desc_short) && $module->desc_short}
|
||||
<div class="module-quick-description-text">
|
||||
{$module->desc_short}
|
||||
<span>...</span>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="module-read-more-grid">
|
||||
<a href="https://hipresta.com/module/hiprestashopapi/prestashopapi?secure_key=6db77b878f95ee7cb56d970e4f52f095&redirect=1&module_key={$k}" target="_blank">{l s='Read more' mod='higallery'}</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="module-container module-quick-action-grid clearfix">
|
||||
<div class="badges-container">
|
||||
<div>
|
||||
<img src="https://hipresta.com/images/hipresta.jpg">
|
||||
<span>{l s='Made by HiPresta' mod='higallery'}</span></div>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="float-right module-price"><span>{$module->price}</span></div>
|
||||
<div class="form-action-button-container">
|
||||
<a href="https://hipresta.com/module/hiprestashopapi/prestashopapi?secure_key=6db77b878f95ee7cb56d970e4f52f095&redirect=1&module_key={$k}" target="_blank" class="btn btn-primary btn-primary-reverse btn-block btn-outline-primary light-button module_action_menu_go_to_addons">
|
||||
{l s='Discover' mod='higallery'}</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
@@ -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.
|
||||
*}
|
||||
|
||||
<div class="panel gallery-social-accounts-container">
|
||||
<h3>{l s='Select Social Account' mod='higallery'}</h3>
|
||||
<div class="select-social-account row">
|
||||
{if $social_accounts && $social_accounts|count > 0}
|
||||
{foreach $social_accounts as $social_account}
|
||||
<div class="social-account-itme col-lg-3">
|
||||
<div class="panel">
|
||||
<h3><i class="icon-{$social_account.social_network}"></i> {$social_account.title}</h3>
|
||||
<div class="content">
|
||||
<button class="btn btn-default load-social-images" data-social-id="{$social_account.id_higallerysocialnetwork|intval}">
|
||||
<i class="icon-{$social_account.social_network}"></i>
|
||||
{l s='Import from' mod='higallery'} {$social_account.title}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
{/if}
|
||||
<div class="social-account-itme col-lg-3">
|
||||
<div class="panel">
|
||||
<h3><i class="icon-plus"></i> {l s='Add new Social Account'}</h3>
|
||||
<a href="{$add_social_accounts_url}" class="btn btn-default"><i class="icon-plus"></i> {l s='Add new Social Account'}</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="panel-footer">
|
||||
<button class="btn btn-default pull-left back-to-upload-image"><i class="process-icon-back"></i> {l s='Back'}</button>
|
||||
</div>
|
||||
</div>
|
||||
19
modules/higallery/views/templates/admin/shop_group_error.tpl
Normal file
19
modules/higallery/views/templates/admin/shop_group_error.tpl
Normal file
@@ -0,0 +1,19 @@
|
||||
{**
|
||||
* 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.
|
||||
*}
|
||||
|
||||
<p class="{if $psv >= 1.6}alert alert-warning{else}warn{/if}">
|
||||
{l s='You cannot manage module from a "All Shops" or a "Group Shop" context, select directly the shop you want to edit' mod='higallery'}
|
||||
</p>
|
||||
29
modules/higallery/views/templates/admin/variables.tpl
Normal file
29
modules/higallery/views/templates/admin/variables.tpl
Normal file
@@ -0,0 +1,29 @@
|
||||
{**
|
||||
* 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|floatval}{literal};
|
||||
var id_lang = {/literal}{$id_lang|intval}{literal};
|
||||
var lang_iso = '{/literal}{$lang_iso|intval}{literal}';
|
||||
var id_shop = {/literal}{$id_shop|intval}{literal};
|
||||
var module_dir = '{/literal}{$module_dir|escape:'htmlall':'UTF-8'}{literal}';
|
||||
var module_image_path = '{/literal}{$module_image_path|escape:'htmlall':'UTF-8'}{literal}';
|
||||
var gallery_secure_key = '{/literal}{$gallery_secure_key|escape:'htmlall':'UTF-8'}{literal}';
|
||||
var gallery_admin_controller_dir = '{/literal}{$gallery_admin_controller_dir nofilter}{literal}';
|
||||
var address_token = '{/literal}{getAdminToken tab='AdminAddresses'}{literal}';
|
||||
{/literal}
|
||||
</script>
|
||||
20
modules/higallery/views/templates/admin/version.tpl
Normal file
20
modules/higallery/views/templates/admin/version.tpl
Normal file
@@ -0,0 +1,20 @@
|
||||
{**
|
||||
* 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="panel">
|
||||
<h3><i class="icon-cog"></i> {l s='Changelog' mod='higallery'}</h3>
|
||||
<pre>{$changelog}</pre>
|
||||
</div>
|
||||
Reference in New Issue
Block a user