Files
IWD2-02/INFO-3163 (CMS Web Dev)/Project/project/wp-content/plugins/wp-smushit/app/modals/stop-bulk-smush.php
T
2026-04-15 15:59:53 -04:00

61 lines
2.3 KiB
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
/**
* Scan error notice for lower resource site on background dead.
*/
$docs_link = $this->get_utm_link(
array(
'utm_campaign' => 'smush_troubleshooting_docs',
'utm_content' => 'smush_cancel_modal',
),
'https://wpmudev.com/docs/wpmu-dev-plugins/smush/#troubleshooting-guide'
);
?>
<div class="sui-modal sui-modal-md">
<div
role="dialog"
id="smush-stop-bulk-smush-modal"
class="sui-modal-content smush-retry-modal smush-stop-bulk-smush-modal"
aria-modal="true"
aria-labelledby="smush-stop-bulk-smush-title"
>
<div class="sui-box">
<div class="sui-box-header sui-flatten sui-content-center sui-spacing-top--60 sui-spacing-bottom--10">
<button type="button" class="sui-button-icon sui-button-float--right" data-modal-close="">
<span class="sui-icon-close sui-md" aria-hidden="true"></span>
<span class="sui-screen-reader-text">
<?php esc_html_e( 'Close this dialog.', 'wp-smushit' ); ?>
</span>
</button>
<i class="sui-notice-icon sui-warning-icon sui-icon-info sui-lg" aria-hidden="true"></i>
<h3 class="sui-box-title sui-lg"><?php esc_html_e( 'Bulk Smush Hasnt Finished Yet!', 'wp-smushit' ); ?></h3>
</div>
<div class="sui-box-body sui-flatten sui-content-center sui-no-padding-top sui-spacing-bottom--30">
<p class="sui-description">
<?php
$notice = esc_html__( 'You have unsmushed images. Are you sure you want to cancel?', 'wp-smushit' );
if ( ! apply_filters( 'wpmudev_branding_hide_doc_link', false ) ) {
$notice .= sprintf(
/* translators: 1: Open link, 2: Close the link */
esc_html__( ' If youre facing issues with Bulk Smush, please refer to our %1$stroubleshooting guide%2$s.', 'wp-smushit' ),
'<a target="_blank" href="' . esc_url( $docs_link ) . '">',
'</a>'
);
}
echo wp_kses_post( $notice );
?>
</p>
</div>
<div class="sui-box-footer sui-flatten sui-content-center sui-spacing-bottom--60">
<a href="#" data-action="Continue" data-modal-close="" class="sui-button">
<?php esc_html_e( 'Continue Smushing', 'wp-smushit' ); ?>
</a>
<a href="#" data-action="Cancel" data-modal-close="" class="sui-button sui-button-ghost smush-stop-bulk-smush-button">
<?php esc_html_e( 'Cancel Anyway', 'wp-smushit' ); ?>
</a>
</div>
</div>
</div>
</div>