PluginProbe
Image Source Control Lite – Show Image Credits and Captions / 3.11.0
Image Source Control Lite – Show Image Credits and Captions v3.11.0
3.12.0 3.11.0 trunk 1.1 1.1.1 1.1.2 1.1.2.1 1.1.3 1.10 1.10.1 1.10.2 1.10.3 1.10.4 1.10.5 1.2 1.2.0.1 1.2.0.2 1.2.0.3 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.4.1 1.3.5 All 110 releases
image-source-control-isc / public / views / global-list.php

global-list.php in Image Source Control Lite – Show Image Credits and Captions 3.11.0, at public/views/global-list.php

41 lines 1.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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>