| 1 |
<?php |
| 2 |
/** |
| 3 |
* Render warning about number of missing sources. |
| 4 |
* |
| 5 |
* @var integer $missing_sources number of missing sources. |
| 6 |
* @var WP_Screen $screen current screen. |
| 7 |
*/ |
| 8 |
?> |
| 9 |
<div class="wrap"> |
| 10 |
<div class="error isc-notice"><p> |
| 11 |
<?php |
| 12 |
printf( |
| 13 |
// translators: %d is the number of images without a known position |
| 14 |
esc_html( _n( '%s image has no credits.', '%s images have no credits.', absint( $missing_sources ), 'image-source-control-isc' ) ), |
| 15 |
absint( $missing_sources ) |
| 16 |
); |
| 17 |
echo ' '; |
| 18 |
printf( |
| 19 |
wp_kses( |
| 20 |
// translators: %1$s is an opening link tag, %2$s is a closing tag. |
| 21 |
__( 'See the %1$smissing sources%2$s list.', 'image-source-control-isc' ), |
| 22 |
[ |
| 23 |
'a' => [ |
| 24 |
'href' => [], |
| 25 |
], |
| 26 |
] |
| 27 |
), |
| 28 |
'<a href="' . esc_url( admin_url( 'upload.php?page=isc-sources' ) ) . '">', |
| 29 |
'</a>' |
| 30 |
); |
| 31 |
// show a link to the settings page |
| 32 |
if ( $screen->id !== 'settings_page_isc-settings' ) { |
| 33 |
echo ' '; |
| 34 |
printf( |
| 35 |
wp_kses( |
| 36 |
// translators: %1$s is an opening link tag, %2$s is a closing tag. |
| 37 |
__( 'You can %1$sdisable%2$s this warning in the settings.', 'image-source-control-isc' ), |
| 38 |
[ |
| 39 |
'a' => [ |
| 40 |
'href' => [], |
| 41 |
], |
| 42 |
] |
| 43 |
), |
| 44 |
'<a href="' . esc_url( admin_url( 'options-general.php?page=isc-settings#isc_settings_section_misc' ) ) . '">', |
| 45 |
'</a>' |
| 46 |
); |
| 47 |
} |
| 48 |
?> |
| 49 |
</p></div> |
| 50 |
</div> |
| 51 |
|