Merged in feature/from-pantheon (pull request #16)

code from pantheon

* code from pantheon
This commit is contained in:
Tony Volpe
2024-01-10 17:03:02 +00:00
parent 054b4fffc9
commit 4eb982d7a8
16492 changed files with 3475854 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
<?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