| 1 |
<?php |
| 2 |
/** |
| 3 |
* Render the global list of image sources |
| 4 |
* @var array $options plugin options. |
| 5 |
* @var array $atts attachment information. |
| 6 |
* |
| 7 |
* Added comment `isc_stop_overlay` as a class to the table to suppress overlays within it starting at that point |
| 8 |
* todo: allow overlays to start again after the table |
| 9 |
**/ |
| 10 |
?> |
| 11 |
<div class="isc_all_image_list_box isc_stop_overlay" style="overflow: scroll;"> |
| 12 |
<table> |
| 13 |
<thead> |
| 14 |
<?php if ( $options['thumbnail_in_list'] ) : ?> |
| 15 |
<th><?php esc_html_e( 'Thumbnail', 'image-source-control-isc' ); ?></th> |
| 16 |
<?php endif; ?> |
| 17 |
<th><?php esc_html_e( 'Attachment ID', 'image-source-control-isc' ); ?></th> |
| 18 |
<th><?php esc_html_e( 'Title', 'image-source-control-isc' ); ?></th> |
| 19 |
<th><?php esc_html_e( 'Attached to', 'image-source-control-isc' ); ?></th> |
| 20 |
<th><?php esc_html_e( 'Source', 'image-source-control-isc' ); ?></th> |
| 21 |
</thead> |
| 22 |
<tbody> |
| 23 |
<?php foreach ( $atts as $id => $data ) : ?> |
| 24 |
<?php |
| 25 |
$source = ISC\Image_Sources\Renderer\Image_Source_String::get( $id ); |
| 26 |
?> |
| 27 |
<tr> |
| 28 |
<?php |
| 29 |
$v_align = ''; |
| 30 |
if ( $options['thumbnail_in_list'] ) : |
| 31 |
$v_align = 'style="vertical-align: top;"'; |
| 32 |
?><td><?php \ISC\Image_Sources\Renderer\Global_List::render_global_list_thumbnail( $id ); ?></td><?php |
| 33 |
endif; ?> |
| 34 |
<td <?php echo $v_align; ?>><?php echo $id; ?></td> |
| 35 |
<td <?php echo $v_align; ?>><?php echo $data['title']; ?></td> |
| 36 |
<td <?php echo $v_align; ?>><?php echo $data['posts']; ?></td> |
| 37 |
<td <?php echo $v_align; ?>><?php echo $source; ?></td> |
| 38 |
</tr> |
| 39 |
<?php endforeach; ?> |
| 40 |
</tbody> |
| 41 |
</table></div> |