PluginProbe
Image Source Control Lite – Show Image Credits and Captions / 1.2
Image Source Control Lite – Show Image Credits and Captions v1.2
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 / templates / missing_sources.php

missing_sources.php in Image Source Control Lite – Show Image Credits and Captions 1.2, at templates/missing_sources.php

36 lines 1.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 * To change this template, choose Tools | Templates
4 * and open the template in the editor.
5 */
6 ?>
7 <h1><?php _e('Missing Images', 'isc'); ?></h1>
8
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>
15
16
17 <?php
18 $attachments = ISC_CLASS::get_attachments_without_sources();
19 if (!empty($attachments)) {
20 ?><table>
21 <thead>
22 <tr>
23 <th><?php _e('ID', ISCTEXTDOMAIN); ?></th>
24 <th><?php _e('image title', 'isc'); ?></th>
25 <th><?php _e('post / page', ISCTEXTDOMAIN); ?></th>
26 </tr>
27 </thead><tbody><?php
28 foreach ($attachments as $_attachment) {
29 ?><tr>
30 <td><?php echo $_attachment->ID; ?></td>
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>
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
33
34 }
35 ?></tbody></table><?php
36 }