PluginProbe
Image Source Control Lite – Show Image Credits and Captions / 1.10
Image Source Control Lite – Show Image Credits and Captions v1.10
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
← All changes | templates/missing_sources.php +40 -5 1.3.01.10 View file →
@@ -6,15 +6,43 @@
6 6 ?>
7 7 <h1><?php _e('Missing Sources', 'isc'); ?></h1>
8 8
9 9 <?php
10 +$attachments = ISC_CLASS::get_attachments_with_empty_sources();
11 +if (!empty($attachments)) {
12 + ?><h2><?php _e('Images with empty sources', ISCTEXTDOMAIN); ?></h2>
13 + <p><?php _e('Images with empty sources and not belonging to an author.', ISCTEXTDOMAIN); ?></p>
14 + <table class="widefat isc-table" style="width: 80%;" >
15 + <thead>
16 + <tr>
17 + <th><?php _e('ID', ISCTEXTDOMAIN); ?></th>
18 + <th><?php _e('Image title', ISCTEXTDOMAIN); ?></th>
19 + <th><?php _e('Post / Page', ISCTEXTDOMAIN); ?></th>
20 + </tr>
21 + </thead><tbody><?php
22 + foreach ($attachments as $_attachment) {
23 + ?><tr>
24 + <td><?php echo $_attachment->ID; ?></td>
25 + <td><a href="<?php echo admin_url('media.php?attachment_id=' . $_attachment->ID . '&action=edit'); ?>" title="<?php _e('edit this image', ISCTEXTDOMAIN); ?>"><?php echo $_attachment->post_title; ?></a></td>
26 + <td><?php if ( $_attachment->post_parent ) : ?><a href="<?php echo get_edit_post_link( $_attachment->post_parent ); ?>" title="<?php _e('show parent post\'s edit page', ISCTEXTDOMAIN ); ?>"><?php echo get_the_title( $_attachment->post_parent ); ?></a><?php else : _e('no connection', ISCTEXTDOMAIN); ?><?php endif; ?></td></tr><?php
27 +
28 + }
29 + ?></tbody></table><?php
30 +} else {
31 + ?>
32 + <h2><?php _e('No empty sources found!', ISCTEXTDOMAIN); ?></h2>
33 + <?php
34 +}
35 +
10 36 $attachments = ISC_CLASS::get_attachments_without_sources();
11 37 if (!empty($attachments)) {
12 - ?><table class="widefat" style="width: 80%;" >
38 + ?><h2><?php _e('Unindexed images', ISCTEXTDOMAIN); ?></h2>
39 + <p><?php _e('Images that haven’t been indexed yet, e.g. after plugin installation. (technically speaking: no meta field created yet)', ISCTEXTDOMAIN); ?></p>
40 + <table class="widefat isc-table" style="width: 80%;" >
13 41 <thead>
14 42 <tr>
15 43 <th><?php _e('ID', ISCTEXTDOMAIN); ?></th>
16 - <th><?php _e('Image title', 'isc'); ?></th>
44 + <th><?php _e('Image title', ISCTEXTDOMAIN); ?></th>
17 45 <th><?php _e('Post / Page', ISCTEXTDOMAIN); ?></th>
18 46 </tr>
19 47 </thead><tbody><?php
20 48 foreach ($attachments as $_attachment) {
@@ -21,12 +49,19 @@
21 49 ?><tr>
22 50 <td><?php echo $_attachment->ID; ?></td>
23 51 <td><a href="<?php echo admin_url('media.php?attachment_id=' . $_attachment->ID . '&action=edit'); ?>" title="<?php _e('edit this image', ISCTEXTDOMAIN); ?>"><?php echo $_attachment->post_title; ?></a></td>
24 52 <td><?php if ( $_attachment->post_parent ) : ?><a href="<?php echo get_edit_post_link( $_attachment->post_parent ); ?>" title="<?php _e('show parent post\'s edit page', ISCTEXTDOMAIN ); ?>"><?php echo get_the_title( $_attachment->post_parent ); ?></a><?php else : _e('no connection', ISCTEXTDOMAIN); ?><?php endif; ?></td></tr><?php
25 -
53 +
26 54 }
27 55 ?></tbody></table><?php
28 56 } else {
29 57 ?>
30 - <h2><?php _e('All sources have been specified!', ISCTEXTDOMAIN); ?></h2>
58 + <h2><?php _e('All images are indexed.', ISCTEXTDOMAIN); ?></h2>
31 59 <?php
32 -}
60 +} ?>
61 +<h2><?php _e('Debug', ISCTEXTDOMAIN); ?></h2>
62 +<button type="button" id="isc-list-post-image-relation"><?php _e('list post-image relations', ISCTEXTDOMAIN); ?></button>
63 +<p class="description"><?php _e('This will list the information ISC knows about the connection between posts and images.', ISCTEXTDOMAIN); ?></p>
64 +<div id="isc-post-image-relations"></div>
65 +<button type="button" id="isc-list-image-post-relation"><?php _e('list image-post relations', ISCTEXTDOMAIN); ?></button>
66 +<p class="description"><?php _e('This will list the information ISC knows about the connection between images and posts.', ISCTEXTDOMAIN); ?></p>
67 +<div id="isc-image-post-relations"></div>