Edit File by line
/home/barbar84/www/wp-conte.../plugins/wp-smush.../app/common
File: progress-bar.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Progress bar block.
[2] Fix | Delete
*
[3] Fix | Delete
* @package WP_Smush
[4] Fix | Delete
*
[5] Fix | Delete
* @var integer $count Total number of images to smush.
[6] Fix | Delete
*/
[7] Fix | Delete
[8] Fix | Delete
use Smush\Core\Core;
[9] Fix | Delete
[10] Fix | Delete
if ( ! defined( 'WPINC' ) ) {
[11] Fix | Delete
die;
[12] Fix | Delete
}
[13] Fix | Delete
[14] Fix | Delete
?>
[15] Fix | Delete
[16] Fix | Delete
<div class="wp-smush-bulk-progress-bar-wrapper sui-hidden">
[17] Fix | Delete
<div class="sui-notice sui-notice-warning sui-hidden"></div>
[18] Fix | Delete
[19] Fix | Delete
<div class="sui-notice sui-notice-warning sui-hidden" id="bulk_smush_warning">
[20] Fix | Delete
<div class="sui-notice-content">
[21] Fix | Delete
<div class="sui-notice-message">
[22] Fix | Delete
<i class="sui-notice-icon sui-icon-info sui-md" aria-hidden="true"></i>
[23] Fix | Delete
<p>
[24] Fix | Delete
<?php
[25] Fix | Delete
$upgrade_url = add_query_arg(
[26] Fix | Delete
array(
[27] Fix | Delete
'coupon' => 'SMUSH30OFF',
[28] Fix | Delete
'checkout' => 0,
[29] Fix | Delete
'utm_source' => 'smush',
[30] Fix | Delete
'utm_medium' => 'plugin',
[31] Fix | Delete
'utm_campaign' => 'smush_bulksmush_limit_reached_upgradetopro',
[32] Fix | Delete
),
[33] Fix | Delete
$this->upgrade_url
[34] Fix | Delete
);
[35] Fix | Delete
[36] Fix | Delete
printf(
[37] Fix | Delete
/* translators: %s1$d - bulk smush limit, %2$s - upgrade link, %3$s - </a>, %4$s - <strong>, $5$s - </strong> */
[38] Fix | Delete
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' ),
[39] Fix | Delete
absint( Core::$max_free_bulk ),
[40] Fix | Delete
'<a href="' . esc_url( $upgrade_url ) . '" target="_blank" style="color: #8D00B1;">',
[41] Fix | Delete
'</a>'
[42] Fix | Delete
)
[43] Fix | Delete
?>
[44] Fix | Delete
</p>
[45] Fix | Delete
</div>
[46] Fix | Delete
</div>
[47] Fix | Delete
</div>
[48] Fix | Delete
[49] Fix | Delete
<div class="sui-progress-block sui-progress-can-close">
[50] Fix | Delete
<div class="sui-progress">
[51] Fix | Delete
<span class="sui-progress-icon" aria-hidden="true">
[52] Fix | Delete
<i class="sui-icon-loader sui-loading"></i>
[53] Fix | Delete
</span>
[54] Fix | Delete
<div class="sui-progress-text">
[55] Fix | Delete
<span class="wp-smush-images-percent">0%</span>
[56] Fix | Delete
</div>
[57] Fix | Delete
<div class="sui-progress-bar">
[58] Fix | Delete
<span class="wp-smush-progress-inner" style="width: 0%"></span>
[59] Fix | Delete
</div>
[60] Fix | Delete
</div>
[61] Fix | Delete
<button class="sui-progress-close wp-smush-cancel-bulk" type="button">
[62] Fix | Delete
<?php esc_html_e( 'Cancel', 'wp-smushit' ); ?>
[63] Fix | Delete
</button>
[64] Fix | Delete
<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' ); ?>">
[65] Fix | Delete
<i class="sui-icon-play"></i>
[66] Fix | Delete
</button>
[67] Fix | Delete
</div>
[68] Fix | Delete
[69] Fix | Delete
<div class="sui-progress-state">
[70] Fix | Delete
<span class="sui-progress-state-text">
[71] Fix | Delete
<span>0</span>/<span class="wp-smush-total-count"><?php echo absint( $count ); ?></span> <?php esc_html_e( 'images smushed', 'wp-smushit' ); ?>
[72] Fix | Delete
</span>
[73] Fix | Delete
</div>
[74] Fix | Delete
[75] Fix | Delete
<div id="bulk-smush-resume-button" class="sui-hidden">
[76] Fix | Delete
<div style="display: flex; flex-flow: row-reverse;">
[77] Fix | Delete
<a class="wp-smush-all sui-button wp-smush-started">
[78] Fix | Delete
<i class="sui-icon-play" aria-hidden="true"></i>
[79] Fix | Delete
<?php esc_html_e( 'Resume', 'wp-smushit' ); ?>
[80] Fix | Delete
</a>
[81] Fix | Delete
</div>
[82] Fix | Delete
</div>
[83] Fix | Delete
[84] Fix | Delete
<div id="wp-smush-running-notice" class="sui-notice" style="margin-top: 30px">
[85] Fix | Delete
<div class="sui-notice-content">
[86] Fix | Delete
<div class="sui-notice-message">
[87] Fix | Delete
<i class="sui-notice-icon sui-icon-info sui-md" aria-hidden="true"></i>
[88] Fix | Delete
<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>
[89] Fix | Delete
</div>
[90] Fix | Delete
</div>
[91] Fix | Delete
</div>
[92] Fix | Delete
</div>
[93] Fix | Delete
[94] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function