- Implemented the main module class with essential properties and methods. - Added translation support for various user interface strings. - Created XML configuration file for module versioning. - Ensured compatibility with different PHP versions and PrestaShop versions.
92 lines
4.8 KiB
Smarty
92 lines
4.8 KiB
Smarty
<div class="panel" id="conversion-fieldset">
|
|
|
|
<div class="panel-heading">
|
|
<i class="icon-cogs"></i> {l s='Delete unnecessary photos' mod='x13webp'}
|
|
</div>
|
|
|
|
<div class="form-horizontal">
|
|
<div class="form-wrapper">
|
|
<div class="form-group">
|
|
<label class="control-label col-lg-4">{l s='Delete product images that are not correctly assigned to products' mod='x13webp'}</label>
|
|
<div class="col-lg-8">
|
|
<a
|
|
href="{$x13webp_clean_product_images_url}"
|
|
class="x13webp-button-confirm btn btn-danger"
|
|
id="x13webp-clean-product-images"
|
|
data-confirm="{l s='Are you sure you want to clean product images?' mod='x13webp'}"
|
|
>
|
|
<i class="icon-trash"></i>
|
|
{l s='Delete' mod='x13webp'}
|
|
</a>
|
|
<p class="help-block">{l s='Removes invalid photos from the img/p/ folder - those that are not assigned to products in the database' mod='x13webp'}</p>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="control-label col-lg-4">{l s='Delete images from the img/tmp/ folder' mod='x13webp'}</label>
|
|
<div class="col-lg-8">
|
|
<a
|
|
href="{$x13webp_clean_tmp_url}"
|
|
class="x13webp-button-confirm btn btn-danger"
|
|
id="x13webp-clean-tmp-folder"
|
|
data-confirm="{l s='Are you sure you want to clean tmp folder?' mod='x13webp'}"
|
|
>
|
|
<i class="icon-trash"></i>
|
|
{l s='Delete' mod='x13webp'}
|
|
</a>
|
|
<p class="help-block">{l s='Deletes photos from the temporary folder, which PrestaShop will regenerate if needed' mod='x13webp'}</p>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="control-label col-lg-4">{l s='Delete images that are not correctly assigned to image types' mod='x13webp'}</label>
|
|
<div class="col-lg-8">
|
|
<form action="{$x13webp_clean_image_types_url}" method="POST">
|
|
<select name="type" class="fixed-width-xl">
|
|
<option value="products">{l s='Products' mod='x13webp'}</option>
|
|
<option value="categories">{l s='Categories' mod='x13webp'}</option>
|
|
<option value="manufacturers">{l s='Manufacturers' mod='x13webp'}</option>
|
|
<option value="suppliers">{l s='Suppliers' mod='x13webp'}</option>
|
|
<option value="stores">{l s='Stores' mod='x13webp'}</option>
|
|
</select>
|
|
<br>
|
|
<button
|
|
type="submit"
|
|
class="x13webp-button-confirm btn btn-danger"
|
|
id="x13webp-submit-unnecessary-images"
|
|
data-confirm="{l s='Are you sure you want to delete unnecessary images?' mod='x13webp'}"
|
|
>
|
|
<i class="icon-trash"></i>
|
|
{l s='Delete' mod='x13webp'}
|
|
</button>
|
|
</form>
|
|
<p class="help-block">{l s='Delete images whose format has been removed from the database' mod='x13webp'}</p>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="control-label col-lg-4">{l s='Delete all WebP images' mod='x13webp'}</label>
|
|
<div class="col-lg-8">
|
|
<div id="x13webp-delete-all-wrapper">
|
|
<p class="help-block {if $x13webp_images_exists}hidden{/if}">{l s='There are no images to delete' mod='x13webp'}</p>
|
|
<button
|
|
type="button"
|
|
class="x13webp-button-confirm btn btn-danger {if !$x13webp_images_exists}hidden{/if}"
|
|
id="x13webp-delete-all-webp"
|
|
data-confirm="{l s='Are you sure you want to delete all WebP images?' mod='x13webp'}"
|
|
>
|
|
<i class="icon-trash"></i> {l s='Delete' mod='x13webp'}
|
|
</button>
|
|
<p class="help-block">{l s='Delete all images WebP that have been generated in this module' mod='x13webp'}</p>
|
|
</div>
|
|
</div>
|
|
<div class="col-lg-12">
|
|
<div id="x13webp-logs-delete-all" class="hidden"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
|
|
|
|
|
|
</script> |