| @@ -3,27 +3,19 @@ | ||
| 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 Images', 'isc'); ?></h1> | |
| 7 | +<h1><?php _e('Missing Sources', 'isc'); ?></h1> | |
| 8 | 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 | 9 | <?php |
| 18 | 10 | $attachments = ISC_CLASS::get_attachments_without_sources(); |
| 19 | 11 | if (!empty($attachments)) { |
| 20 | - ?><table> | |
| 12 | + ?><table class="widefat" style="width: 80%;" > | |
| 21 | 13 | <thead> |
| 22 | 14 | <tr> |
| 23 | 15 | <th><?php _e('ID', ISCTEXTDOMAIN); ?></th> |
| 24 | - <th><?php _e('image title', 'isc'); ?></th> | |
| 25 | - <th><?php _e('post / page', ISCTEXTDOMAIN); ?></th> | |
| 16 | + <th><?php _e('Image title', 'isc'); ?></th> | |
| 17 | + <th><?php _e('Post / Page', ISCTEXTDOMAIN); ?></th> | |
| 26 | 18 | </tr> |
| 27 | 19 | </thead><tbody><?php |
| 28 | 20 | foreach ($attachments as $_attachment) { |
| 29 | 21 | ?><tr> |
| @@ -32,5 +24,9 @@ | ||
| 32 | 24 | <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 | 25 | |
| 34 | 26 | } |
| 35 | 27 | ?></tbody></table><?php |
| 36 | -} | |
| 28 | +} else { | |
| 29 | + ?> | |
| 30 | + <h2><?php _e('All sources have been specified!', ISCTEXTDOMAIN); ?></h2> | |
| 31 | + <?php | |
| 32 | +} | |