- Implemented the X13Webp class with core functionalities for converting images to WebP format. - Added support for different PHP versions and defined constants for versioning. - Included translation strings for various user interface elements and messages. - Created XML file for module versioning.
49 lines
2.5 KiB
Smarty
49 lines
2.5 KiB
Smarty
<tr data-image_type="{$image_type}" class="tr-format-{$x13webp_select.value}">
|
|
<td>
|
|
<strong>{$image_name}</strong>
|
|
</td>
|
|
<td class="progress-button" data-image_type="{$image_type}" data-type="{$progress_item.val}">
|
|
<div class="progress-button-wrapper" data-toggle="tooltip" data-original-title="{l s='Buttons were disabled during the conversion process' mod='x13webp'}">
|
|
{if $progress_item.allowed}
|
|
<div class="tooltip-wrapper" data-toggle="tooltip" data-original-title="{l s='Button has benn disabled bacause all images have already been generated' mod='x13webp'}">
|
|
<button type="button" class="btn btn-success btn-sm btn-item-start" disabled><i class="icon icon-play" aria-hidden="true"></i></button>
|
|
</div>
|
|
<button type="button" class="btn btn-warning btn-sm hidden btn-item-pause" disabled><i class="icon icon-pause" aria-hidden="true"></i></button>
|
|
<button type="button" class="btn btn-secondary btn-sm btn-item-refresh" disabled><i class="icon icon-refresh" aria-hidden="true"></i></button>
|
|
{/if}
|
|
</div>
|
|
</td>
|
|
<td class="text-right">
|
|
<div class="images-done-wrapper">
|
|
<div class="preloader active"></div>
|
|
<div class="images-done-total" data-format="webp">
|
|
<span class="done">0</span>
|
|
/
|
|
<span class="total">0</span>
|
|
</div>
|
|
{if $progress_item.has_types && $image_type != 'main'}
|
|
<div class="images-done-total" data-format="jpg">
|
|
<span class="done">0</span>
|
|
/
|
|
<span class="total">0</span>
|
|
</div>
|
|
{/if}
|
|
</div>
|
|
</td>
|
|
<td class="progress-td">
|
|
<div class="progress" data-image_type="{$image_type}" data-format="webp">
|
|
<div class="progress-bar" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="0">
|
|
<span class="progress-text">WebP</span>
|
|
<span class="progressbar-inner hidden-sm-down">0%</span>
|
|
</div>
|
|
</div>
|
|
{if $progress_item.has_types && $image_type != 'main'}
|
|
<div class="progress" data-image_type="{$image_type}" data-format="jpg">
|
|
<div class="progress-bar" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="0">
|
|
<span class="progress-text">JPG</span>
|
|
<span class="progressbar-inner hidden-sm-down">0%</span>
|
|
</div>
|
|
</div>
|
|
{/if}
|
|
</td>
|
|
</tr> |