inc-table.php
43 lines
| 1 | <?php |
| 2 | /** |
| 3 | * List of bundles |
| 4 | */ |
| 5 | ?> |
| 6 | |
| 7 | <table class="wp-list-table widefat fixed striped"> |
| 8 | <thead> |
| 9 | <tr> |
| 10 | <th data-sort-type="s"> |
| 11 | <?php esc_html_e('Bundle name', 'loco-translate')?> |
| 12 | </th> |
| 13 | <th data-sort-type="s"> |
| 14 | <?php esc_html_e('Text domain','loco-translate')?> |
| 15 | </th> |
| 16 | <th data-sort-type="n"> |
| 17 | <?php esc_html_e('Last modified','loco-translate')?> |
| 18 | </th> |
| 19 | <th data-sort-type="n"> |
| 20 | <?php esc_html_e('Sets','loco-translate')?> |
| 21 | </th> |
| 22 | </tr> |
| 23 | </thead> |
| 24 | <tbody><?php |
| 25 | /* @var Loco_mvc_ViewParams[] $bundles */ |
| 26 | foreach( $bundles as $bundle ):?> |
| 27 | <tr id="loco-<?php $bundle->e('id')?>"> |
| 28 | <td data-sort-value="<?php $bundle->e('name')?>"> |
| 29 | <a href="<?php $bundle->e('view')?>"><?php $bundle->e('name')?></a> |
| 30 | </td> |
| 31 | <td> |
| 32 | <?php $bundle->e('dflt')?> |
| 33 | </td> |
| 34 | <td data-sort-value="<?php $bundle->f('time','%u')?>"> |
| 35 | <time datetime="<?php $bundle->date('time','c')?>"><?php $bundle->time ? $bundle->date('time') : print '--'?></time> |
| 36 | </td> |
| 37 | <td data-sort-value="<?php $bundle->f('size','%u')?>"> |
| 38 | <?php $bundle->n('size')?> |
| 39 | </td> |
| 40 | </tr><?php |
| 41 | endforeach;?> |
| 42 | </tbody> |
| 43 | </table> |