Files
medicalalert-web-reloaded/wp/wp-content/plugins/imagify/views/part-settings-footer.php
Tony Volpe 4eb982d7a8 Merged in feature/from-pantheon (pull request #16)
code from pantheon

* code from pantheon
2024-01-10 17:03:02 +00: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