| 1 |
<?php |
| 2 |
defined( 'ABSPATH' ) || die( 'Cheatin\' uh?' ); |
| 3 |
?> |
| 4 |
|
| 5 |
<div class="imagify-bulk-table"> |
| 6 |
<div class="imagify-table-header imagify-flex imagify-vcenter imagify-resting"> |
| 7 |
<div class="imagify-th-titles imagify-flex imagify-vcenter"> |
| 8 |
<span class="dashicons dashicons-<?php echo $data['icon']; ?>"></span> |
| 9 |
<div class="imagify-th-titles"> |
| 10 |
<p class="imagify-th-title"><?php echo $data['title']; ?></p> |
| 11 |
</div> |
| 12 |
</div> |
| 13 |
|
| 14 |
<div class="imagify-th-action"> |
| 15 |
<button class="button imagify-button-clean imagify-show-table-details" type="button" data-label-show="<?php esc_attr_e( 'View Details', 'imagify' ); ?>" data-label-hide="<?php esc_attr_e( 'Hide Details', 'imagify' ); ?>"> |
| 16 |
<?php esc_html_e( 'View Details', 'imagify' ); ?> |
| 17 |
<span class="dashicons dashicons-menu"></span> |
| 18 |
</button> |
| 19 |
</div> |
| 20 |
</div> |
| 21 |
|
| 22 |
<div class="imagify-bulk-table-content"> |
| 23 |
<div class="imagify-bulk-table-container"> |
| 24 |
<table class="imagify-bulk-table-details hidden" aria-hidden="true"> |
| 25 |
<thead> |
| 26 |
</thead> |
| 27 |
<tbody> |
| 28 |
</tbody> |
| 29 |
</table> |
| 30 |
|
| 31 |
<div aria-hidden="true" class="imagify-row-progress hidden"> |
| 32 |
<div class="media-item"> |
| 33 |
<div class="progress"> |
| 34 |
<div class="bar"><div class="percent">0%</div></div> |
| 35 |
</div> |
| 36 |
</div> |
| 37 |
</div> |
| 38 |
|
| 39 |
<table> |
| 40 |
<thead> |
| 41 |
<tr class="screen-reader-text"> |
| 42 |
<th class="imagify-cell-checkbox"><?php esc_html_e( 'Group selection', 'imagify' ); ?></th> |
| 43 |
<th class="imagify-cell-title"><?php esc_html_e( 'Group name', 'imagify' ); ?></th> |
| 44 |
<th class="imagify-cell-images-optimized"><?php esc_html_e( 'Number of images optimized', 'imagify' ); ?></th> |
| 45 |
<th class="imagify-cell-errors"><?php esc_html_e( 'Errors', 'imagify' ); ?></th> |
| 46 |
<th class="imagify-cell-optimized"><?php esc_html_e( 'Optimized Size', 'imagify' ); ?></th> |
| 47 |
<th class="imagify-cell-original"><?php esc_html_e( 'Original Size', 'imagify' ); ?></th> |
| 48 |
<th class="imagify-cell-level"><?php esc_html_e( 'Level Selection', 'imagify' ); ?></th> |
| 49 |
</tr> |
| 50 |
</thead> |
| 51 |
<tbody> |
| 52 |
<?php |
| 53 |
foreach ( $data['groups'] as $group ) { |
| 54 |
$group = array_merge( $group, imagify_get_folder_type_data( $group['group_id'] ) ); |
| 55 |
|
| 56 |
$this->print_template( 'part-bulk-optimization-table-row-folder-type', $group ); |
| 57 |
} |
| 58 |
?> |
| 59 |
</tbody> |
| 60 |
</table> |
| 61 |
</div><!-- .imagify-bulk-table-container --> |
| 62 |
</div><!-- .imagify-bulk-table-content --> |
| 63 |
|
| 64 |
<?php |
| 65 |
foreach ( $data['groups'] as $group ) { |
| 66 |
?> |
| 67 |
<script type="text/html" id="tmpl-imagify-file-header-<?php echo $group['group_id']; ?>"> |
| 68 |
<?php $this->print_template( 'part-bulk-optimization-header-row-' . $group['group_id'] ); ?> |
| 69 |
</script> |
| 70 |
<script type="text/html" id="tmpl-imagify-file-row-<?php echo $group['group_id']; ?>"> |
| 71 |
<?php $this->print_template( 'part-bulk-optimization-underscore-file-row-' . $group['group_id'] ); ?> |
| 72 |
</script> |
| 73 |
<?php |
| 74 |
} |
| 75 |
?> |
| 76 |
</div> |
| 77 |
|