Subida del módulo y tema de PrestaShop

This commit is contained in:
Kaloyan
2026-04-09 18:31:51 +02:00
parent 12c253296f
commit 16b3ff9424
39262 changed files with 7418797 additions and 0 deletions

View File

@@ -0,0 +1,136 @@
{**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*}
<div class="alert alert-danger">
{l s='By default, all images settings are already installed in your store. Do not delete them, you will need it!' d='Admin.Design.Help'}
</div>
{if isset($content)}
{$content}
{/if}
{if isset($display_move) && $display_move}
<form action="{$current|escape:'html':'UTF-8'}&amp;token={$token|escape:'html':'UTF-8'}" method="post" class="form-horizontal">
<div class="panel">
<h3>
<i class="icon-picture"></i>
{l s='Move images' d='Admin.Design.Feature'}
</h3>
<div class="alert alert-warning">
<p>{l s='You can choose to keep your images stored in the previous system. There\'s nothing wrong with that.' d='Admin.Design.Notification'}</p>
<p>{l s='You can also decide to move your images to the new storage system. In this case, click on the "%move_images_label%" button below. Please be patient. This can take several minutes.' d='Admin.Design.Notification' sprintf=['%move_images_label%' => {l s='Move images' d='Admin.Design.Feature'}]}</p>
</div>
<div class="alert alert-info">&nbsp;
{l s='After moving all of your product images, set the "Use the legacy image filesystem" option above to "No" for best performance.' d='Admin.Design.Notification'}
</div>
<div class="row">
<div class="col-lg-12 pull-right">
<button type="submit" name="submitMoveImages{$table}" class="btn btn-default pull-right" onclick="return confirm('{l s='Are you sure?' d='Admin.Notifications.Warning'}');"><i class="process-icon-cogs"></i> {l s='Move images' d='Admin.Design.Feature'}</button>
</div>
</div>
</div>
</form>
{/if}
{if isset($display_regenerate)}
<form id="display_regenerate_form" class="form-horizontal" action="{$current|escape:'html':'UTF-8'}&amp;token={$token|escape:'html':'UTF-8'}" method="post">
<div class="panel">
<h3>
<i class="icon-picture"></i>
{l s='Regenerate thumbnails' d='Admin.Design.Feature'}
</h3>
<div class="alert alert-warning">
{l s='Be careful! Depending on the options selected, former manually uploaded thumbnails might be erased and replaced by automatically generated thumbnails.' d='Admin.Design.Notification'}<br />
{l s='Also, regenerating thumbnails for all existing images can take several minutes, please be patient.' d='Admin.Design.Notification'}
</div>
<div class="form-group">
<label class="control-label col-lg-3">{l s='Select an image' d='Admin.Design.Feature'}</label>
<div class="col-lg-9">
<select name="type" onchange="changeFormat(this)">
<option value="all">{l s='All' d='Admin.Global'}</option>
{foreach $types AS $k => $type}
<option value="{$k|escape:'html':'UTF-8'}">{$type|escape:'html':'UTF-8'}</option>
{/foreach}
</select>
</div>
</div>
{foreach $types AS $k => $type}
<div class="form-group second-select format_{$k}" style="display:none;">
<label class="control-label col-lg-3">{l s='Select a format' d='Admin.Design.Feature'}</label>
<div class="col-lg-9 margin-form">
<select name="format_{$k}">
<option value="all">{l s='All' d='Admin.Global'}</option>
{foreach $formats[$k] AS $format}
<option value="{$format['id_image_type']|escape:'html':'UTF-8'}">{$format['name']|escape:'html':'UTF-8'}</option>
{/foreach}
</select>
</div>
</div>
{/foreach}
<script>
function changeFormat(elt)
{ldelim}
$('.second-select').hide();
$('.format_' + $(elt).val()).show();
{rdelim}
</script>
<div class="form-group">
<label class="control-label col-lg-3">
{l s='Erase previous images' d='Admin.Design.Feature'}
</label>
<div class="col-lg-9">
<span class="switch prestashop-switch fixed-width-lg">
<input type="radio" name="erase" id="erase_on" value="1">
<label for="erase_on" class="radioCheck">
{l s='Yes' d='Admin.Global'}
</label>
<input type="radio" name="erase" id="erase_off" value="0" checked="checked">
<label for="erase_off" class="radioCheck">
{l s='No' d='Admin.Global'}
</label>
<a class="slide-button btn"></a>
</span>
<p class="help-block">
{l s='Select "No" only if your server timed out and you need to resume the regeneration.' html=1 d='Admin.Design.Help'}
</p>
</div>
</div>
<div class="panel-footer">
<input type="hidden" name="submitRegenerate{$table}" value="" />
<button
type="submit"
value=""
class="btn btn-default pull-right"
>
<i class="process-icon-cogs"></i> {l s='Regenerate thumbnails' d='Admin.Design.Feature'}
</button>
</div>
</div>
</form>
<script type="text/javascript">
$(function() {
$('#display_regenerate_form button[type="submit"]').on('click', function() {
$('#modalRegenerateThumbnails').modal('show');
return false;
});
$('.btn-regenerate-thumbnails').on('click', function () {
$('#display_regenerate_form').trigger('submit');
});
$('.btn-confirm-delete-images-type').on('click', function () {
document.location = $(this).attr('data-confirm-url') + '&delete_linked_images=' + $('#delete_linked_images').is(":checked");
});
$('#modalConfirmDeleteType ').on('hidden.bs.modal', function () {
$('.modal-checkbox input', this).prop('checked', false)
});
});
</script>
{/if}

View File

@@ -0,0 +1,18 @@
{**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*}
<a href="#"
title="{$action|escape:'html':'UTF-8'}"
class="delete"
onclick="
{if $confirm}
var modalConfirmDeleteType = $('#modalConfirmDeleteType');
$('.btn-confirm-delete-images-type', modalConfirmDeleteType).attr('data-confirm-url', '{$href|escape:'html':'UTF-8'}');
modalConfirmDeleteType.modal('show');
{else}
event.stopPropagation();event.preventDefault()
{/if}
">
<i class="icon-trash"></i> {$action|escape:'html':'UTF-8'}
</a>

View File

@@ -0,0 +1,15 @@
<?php
/**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*/
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;

View File

@@ -0,0 +1,17 @@
{**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*}
<div class="modal-body">
<div class="form-group">
{l
s="If you delete this image format, the theme won't be able to use it anymore. This will result in a degraded experience on your front office."
d="Admin.Design.Notification"
}
</div>
<div class="modal-checkbox">
<input type="checkbox" id="delete_linked_images" name="delete">
<label for="delete_linked_images">{l s="Delete the images linked to this image setting" d="Admin.Design.Notification"}</label>
</div>
</div>

View File

@@ -0,0 +1,10 @@
{**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*}
<div class="modal-body">
{l
s="Regenerate thumbnails for the selected images? With the \"erase\" option enabled, the previously selected thumbnails will be deleted."
d="Admin.Design.Notification"
}
</div>