| 1 |
<?php |
| 2 |
/** |
| 3 |
* Template for the images only option |
| 4 |
* |
| 5 |
* @var bool $checked Whether the option is checked |
| 6 |
*/ |
| 7 |
|
| 8 |
?> |
| 9 |
<label> |
| 10 |
<input id="isc-settings-plugin-images-only" type="checkbox" name="isc_options[images_only]" value="1" <?php checked( $checked ); ?> /> |
| 11 |
<?php esc_html_e( 'When enabled, all plugin functions will only work with image files and ignore other media types.', 'image-source-control-isc' ); ?> |
| 12 |
</label> |
| 13 |
<p class="hidden" id="isc-settings-plugin-images-only-indexer"> |
| 14 |
<i class="dashicons dashicons-info"></i> |
| 15 |
<?php |
| 16 |
if ( \ISC\Plugin::is_pro() ) : |
| 17 |
$open_a = '<a href="' . admin_url( 'upload.php?page=isc-unused-images' ) . '">'; |
| 18 |
$close_a = '</a>'; |
| 19 |
else : |
| 20 |
// don’t link to the indexer page since it is not |
| 21 |
$open_a = ''; |
| 22 |
$close_a = ''; |
| 23 |
endif; |
| 24 |
printf( |
| 25 |
// translators: %%1$s is an opening link tag, %2$s is the closing one |
| 26 |
esc_html__( 'Run the %1$sScanner%2$s to update all data at once.', 'image-source-control-isc' ), |
| 27 |
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped |
| 28 |
$open_a, |
| 29 |
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped |
| 30 |
$close_a |
| 31 |
); |
| 32 |
?> |
| 33 |
<?php |
| 34 |
if ( ! \ISC\Plugin::is_pro() ) : |
| 35 |
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped |
| 36 |
echo \ISC\Admin_Utils::get_pro_link( 'settings-images-only-indexer' ); |
| 37 |
endif; |
| 38 |
?> |
| 39 |
</p> |
| 40 |
<p class="hidden" id="isc-settings-plugin-images-only-cleanup-wrapper"> |
| 41 |
<label> |
| 42 |
<input type="checkbox" name="isc_options[images_only_cleanup]" value="1" /> |
| 43 |
<?php esc_html_e( 'Remove all data from non-image files.', 'image-source-control-isc' ); ?> |
| 44 |
</label> |
| 45 |
</p> |
| 46 |
|