Files
medicalalert-web-reloaded/wp/wp-content/plugins/imagify/views/part-settings-footer.php
Rachit Bhargava 5d0f0734d8 first commit
2023-07-21 17:12:10 -04:00

29 lines
671 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
defined( 'ABSPATH' ) || die( 'Cheatin uh?' );
?>
<div class="submit imagify-clearfix">
<?php
// Classical submit.
submit_button();
if ( Imagify_Requirements::is_api_key_valid() ) {
$user_can = imagify_get_context( 'wp' )->current_user_can( 'bulk-optimize' ) || imagify_get_context( 'custom-folders' )->current_user_can( 'bulk-optimize' );
if ( $user_can ) {
// Submit and go to bulk page.
submit_button(
esc_html__( 'Save & Go to Bulk Optimizer', 'imagify' ),
'secondary imagify-button-secondary', // Type/classes.
'submit-goto-bulk', // Name (id).
true, // Wrap.
array() // Other attributes.
);
}
}
?>
</div>
<?php