* @var integer $count Total number of images to smush.
if ( ! defined( 'WPINC' ) ) {
<div class="wp-smush-bulk-progress-bar-wrapper sui-hidden">
<div class="sui-notice sui-notice-warning sui-hidden"></div>
<div class="sui-notice sui-notice-warning sui-hidden" id="bulk_smush_warning">
<div class="sui-notice-content">
<div class="sui-notice-message">
<i class="sui-notice-icon sui-icon-info sui-md" aria-hidden="true"></i>
$upgrade_url = add_query_arg(
'coupon' => 'SMUSH30OFF',
'utm_medium' => 'plugin',
'utm_campaign' => 'smush_bulksmush_limit_reached_upgradetopro',
/* translators: %s1$d - bulk smush limit, %2$s - upgrade link, %3$s - </a>, %4$s - <strong>, $5$s - </strong> */
esc_html__( 'The free version of Smush allows you to compress %1$d images at a time. %2$sUpgrade to Pro for FREE%3$s to compress unlimited images at once or click Resume to compress another %1$d images.', 'wp-smushit' ),
absint( Core::$max_free_bulk ),
'<a href="' . esc_url( $upgrade_url ) . '" target="_blank" style="color: #8D00B1;">',
<div class="sui-progress-block sui-progress-can-close">
<div class="sui-progress">
<span class="sui-progress-icon" aria-hidden="true">
<i class="sui-icon-loader sui-loading"></i>
<div class="sui-progress-text">
<span class="wp-smush-images-percent">0%</span>
<div class="sui-progress-bar">
<span class="wp-smush-progress-inner" style="width: 0%"></span>
<button class="sui-progress-close wp-smush-cancel-bulk" type="button">
<?php esc_html_e( 'Cancel', 'wp-smushit' ); ?>
<button class="sui-progress-close sui-button-icon sui-tooltip wp-smush-all sui-hidden" type="button" data-tooltip="<?php esc_html_e( 'Resume scan.', 'wp-smushit' ); ?>">
<i class="sui-icon-play"></i>
<div class="sui-progress-state">
<span class="sui-progress-state-text">
<span>0</span>/<span class="wp-smush-total-count"><?php echo absint( $count ); ?></span> <?php esc_html_e( 'images smushed', 'wp-smushit' ); ?>
<div id="bulk-smush-resume-button" class="sui-hidden">
<div style="display: flex; flex-flow: row-reverse;">
<a class="wp-smush-all sui-button wp-smush-started">
<i class="sui-icon-play" aria-hidden="true"></i>
<?php esc_html_e( 'Resume', 'wp-smushit' ); ?>
<div id="wp-smush-running-notice" class="sui-notice" style="margin-top: 30px">
<div class="sui-notice-content">
<div class="sui-notice-message">
<i class="sui-notice-icon sui-icon-info sui-md" aria-hidden="true"></i>
<p><?php esc_html_e( 'Bulk smush is currently running. You need to keep this page open for the process to complete.', 'wp-smushit' ); ?></p>