Skip to content

Commit

Permalink
The buttons were not deactivated
Browse files Browse the repository at this point in the history
  • Loading branch information
Diego Orellano authored and Diego Orellano committed Nov 21, 2024
1 parent 3196867 commit 935078c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions admin/views/compress.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@
<label>Restore Original Images</label>
<p>All backup images can be restored. This action will recover the original images as they were before being stamped with Compress or Watermark. <span style="color: red;">Warning: Any changes made AFTER Watermark/Compress would be also restored.</span></p>
<p>You can also clear all your backup images to free memory space. <span style="color: red;">Warning: Clear backups will prevent you to restore original images.</span></p>
<button type="button" class="button button-style-iloveimg" id="iloveimg_restore_all" <?php echo ( isset( $options_value['iloveimg_field_backup'] ) && Ilove_Img_Compress_Resources::is_there_backup() ) ? '' : 'disabled'; ?>>Restore All</button>
<button type="button" class="button button-style-iloveimg" id="iloveimg_restore_all" <?php echo ( isset( $options_value['iloveimg_field_backup'] ) && Ilove_Img_Compress_Resources::get_size_backup() ) ? '' : 'disabled'; ?>>Restore All</button>

<button type="button" class="button button-remove button-style-iloveimg" id="iloveimg_clear_backup" <?php echo ( isset( $options_value['iloveimg_field_backup'] ) && Ilove_Img_Compress_Resources::is_there_backup() ) ? '' : 'disabled'; ?>>Clear backup</button>
<button type="button" class="button button-remove button-style-iloveimg" id="iloveimg_clear_backup" <?php echo ( isset( $options_value['iloveimg_field_backup'] ) && Ilove_Img_Compress_Resources::get_size_backup() ) ? '' : 'disabled'; ?>>Clear backup</button>
<span><?php echo (float) round( Ilove_Img_Compress_Resources::get_size_backup(), 2 ); ?> MB</span>
</div>
</div>
Expand Down

0 comments on commit 935078c

Please sign in to comment.