PluginProbe
Image Source Control Lite – Show Image Credits and Captions / 1.1
Image Source Control Lite – Show Image Credits and Captions v1.1
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 +13 -44 1.101.1 View file →
@@ -3,47 +3,27 @@
3 3 * To change this template, choose Tools | Templates
4 4 * and open the template in the editor.
5 5 */
6 6 ?>
7 -<h1><?php _e('Missing Sources', 'isc'); ?></h1>
7 +<h1><?php _e('Missing Images', 'isc'); ?></h1>
8 8
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
9 +<h2><?php _e('add meta fields', ISCTEXTDOMAIN); ?></h2>
10 +<p><?php _e('ISC adds some fields to the attachments. If you install ISC, these fields are missing and attachments with missing fields are ignored in some of the queries. So use this button at least the first time you start using ISC.', ISCTEXTDOMAIN); ?></p>
11 +<p><a id="isc_add_metafields" href="javascript:void(0);"><?php _e('add metafields to images', ISCTEXTDOMAIN); ?></a>
12 + <?php ISC_CLASS::show_loading_image(); ?>
13 + <span id="add_metafields_result"></span>
14 +</p>
27 15
28 - }
29 - ?></tbody></table><?php
30 -} else {
31 - ?>
32 - <h2><?php _e('No empty sources found!', ISCTEXTDOMAIN); ?></h2>
33 - <?php
34 -}
35 16
17 +<?php
36 18 $attachments = ISC_CLASS::get_attachments_without_sources();
37 19 if (!empty($attachments)) {
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%;" >
20 + ?><table>
41 21 <thead>
42 22 <tr>
43 23 <th><?php _e('ID', ISCTEXTDOMAIN); ?></th>
44 - <th><?php _e('Image title', ISCTEXTDOMAIN); ?></th>
45 - <th><?php _e('Post / Page', ISCTEXTDOMAIN); ?></th>
24 + <th><?php _e('image title', 'isc'); ?></th>
25 + <th><?php _e('post / page', ISCTEXTDOMAIN); ?></th>
46 26 </tr>
47 27 </thead><tbody><?php
48 28 foreach ($attachments as $_attachment) {
49 29 ?><tr>
@@ -49,19 +29,8 @@
49 29 ?><tr>
50 30 <td><?php echo $_attachment->ID; ?></td>
51 31 <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>
52 32 <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
53 -
33 +
54 34 }
55 35 ?></tbody></table><?php
56 -} else {
57 - ?>
58 - <h2><?php _e('All images are indexed.', ISCTEXTDOMAIN); ?></h2>
59 - <?php
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>
36 +}