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