Edit File by line
/home/barbar84/www/wp-conte.../plugins/wp-smush.../app/modals
File: progress-dialog.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Output the progress dialog for the Directory smush list dialog
[2] Fix | Delete
*
[3] Fix | Delete
* @package WP_Smush
[4] Fix | Delete
*/
[5] Fix | Delete
[6] Fix | Delete
use Smush\Core\Core;
[7] Fix | Delete
[8] Fix | Delete
if ( ! defined( 'WPINC' ) ) {
[9] Fix | Delete
die;
[10] Fix | Delete
}
[11] Fix | Delete
[12] Fix | Delete
?>
[13] Fix | Delete
[14] Fix | Delete
<div class="sui-modal sui-modal-lg">
[15] Fix | Delete
<div
[16] Fix | Delete
role="dialog"
[17] Fix | Delete
id="wp-smush-progress-dialog"
[18] Fix | Delete
class="sui-modal-content wp-smush-progress-dialog"
[19] Fix | Delete
aria-modal="true"
[20] Fix | Delete
aria-labelledby="progress-dialog-title"
[21] Fix | Delete
aria-describedby="progress-dialog-description"
[22] Fix | Delete
>
[23] Fix | Delete
<div class="sui-box">
[24] Fix | Delete
<div class="sui-box-header">
[25] Fix | Delete
<h3 class="sui-box-title" id="progress-dialog-title">
[26] Fix | Delete
<?php esc_html_e( 'Choose Directory', 'wp-smushit' ); ?>
[27] Fix | Delete
</h3>
[28] Fix | Delete
<button class="sui-button-icon sui-button-float--right" data-modal-close="" id="dialog-close-div">
[29] Fix | Delete
<i class="sui-icon-close sui-md" aria-hidden="true"></i>
[30] Fix | Delete
<span class="sui-screen-reader-text"><?php esc_html_e( 'Close', 'wp-smushit' ); ?></span>
[31] Fix | Delete
</button>
[32] Fix | Delete
</div>
[33] Fix | Delete
[34] Fix | Delete
<div class="sui-box-body">
[35] Fix | Delete
<p id="progress-dialog-description">
[36] Fix | Delete
<?php esc_html_e( 'Bulk smushing is in progress, you need to leave this tab open until the process completes.', 'wp-smushit' ); ?>
[37] Fix | Delete
</p>
[38] Fix | Delete
[39] Fix | Delete
<div class="sui-notice sui-notice-warning sui-hidden">
[40] Fix | Delete
<div class="sui-notice-content">
[41] Fix | Delete
<div class="sui-notice-message">
[42] Fix | Delete
<i class="sui-notice-icon sui-icon-info sui-md" aria-hidden="true"></i>
[43] Fix | Delete
<p>
[44] Fix | Delete
<?php
[45] Fix | Delete
$upgrade_url = add_query_arg(
[46] Fix | Delete
array(
[47] Fix | Delete
'utm_source' => 'smush',
[48] Fix | Delete
'utm_medium' => 'plugin',
[49] Fix | Delete
'utm_campaign' => 'smush_bulksmush_limit_reached_notice',
[50] Fix | Delete
),
[51] Fix | Delete
esc_url( 'https://premium.wpmudev.org/project/wp-smush-pro/' )
[52] Fix | Delete
);
[53] Fix | Delete
[54] Fix | Delete
printf(
[55] Fix | Delete
/* translators: %s1$d - bulk smush limit, %2$s - upgrade link, %3$s - </a>, %4$s - <strong>, $5$s - </strong> */
[56] Fix | Delete
esc_html__( 'The free version of Smush allows you to compress %1$d images at a time. You can easily click %4$sResume%5$s to optimize another %1$d images, or %2$sUpgrade to Pro%3$s to compress unlimited images at once.', 'wp-smushit' ),
[57] Fix | Delete
absint( Core::$max_free_bulk ),
[58] Fix | Delete
'<a href="' . esc_url( $upgrade_url ) . '" target="_blank">',
[59] Fix | Delete
'</a>',
[60] Fix | Delete
'<strong>',
[61] Fix | Delete
'</strong>'
[62] Fix | Delete
)
[63] Fix | Delete
?>
[64] Fix | Delete
</p>
[65] Fix | Delete
<p>
[66] Fix | Delete
<a class="sui-button wp-smush-resume-scan">
[67] Fix | Delete
<i class="sui-icon-play" aria-hidden="true"></i>
[68] Fix | Delete
<?php esc_html_e( 'Resume', 'wp-smushit' ); ?>
[69] Fix | Delete
</a>
[70] Fix | Delete
</p>
[71] Fix | Delete
</div>
[72] Fix | Delete
</div>
[73] Fix | Delete
</div>
[74] Fix | Delete
[75] Fix | Delete
<div class="sui-progress-block sui-progress-can-close">
[76] Fix | Delete
<div class="sui-progress">
[77] Fix | Delete
<span class="sui-progress-icon" aria-hidden="true">
[78] Fix | Delete
<i class="sui-icon-loader sui-loading"></i>
[79] Fix | Delete
</span>
[80] Fix | Delete
<div class="sui-progress-text">
[81] Fix | Delete
<span>0%</span>
[82] Fix | Delete
</div>
[83] Fix | Delete
<div class="sui-progress-bar" aria-hidden="true">
[84] Fix | Delete
<span style="width: 0"></span>
[85] Fix | Delete
</div>
[86] Fix | Delete
</div>
[87] Fix | Delete
<button class="sui-button-icon sui-tooltip" id="cancel-directory-smush" type="button" data-tooltip="<?php esc_attr_e( 'Cancel', 'wp-smushit' ); ?>">
[88] Fix | Delete
<i class="sui-icon-close"></i>
[89] Fix | Delete
</button>
[90] Fix | Delete
</div>
[91] Fix | Delete
[92] Fix | Delete
<div class="sui-progress-state">
[93] Fix | Delete
<span class="sui-progress-state-text">
[94] Fix | Delete
<?php esc_html_e( '-/- images optimized', 'wp-smushit' ); ?>
[95] Fix | Delete
</span>
[96] Fix | Delete
</div>
[97] Fix | Delete
</div>
[98] Fix | Delete
[99] Fix | Delete
<div class="sui-box-footer sui-content-right">
[100] Fix | Delete
<span class="add-dir-loader"></span>
[101] Fix | Delete
<button class="sui-modal-close sui-button wp-smush-cancel-dir" data-modal-close="">
[102] Fix | Delete
<?php esc_html_e( 'CANCEL', 'wp-smushit' ); ?>
[103] Fix | Delete
</button>
[104] Fix | Delete
[105] Fix | Delete
<button class="sui-button wp-smush-resume-scan sui-hidden">
[106] Fix | Delete
<?php esc_html_e( 'RESUME', 'wp-smushit' ); ?>
[107] Fix | Delete
</button>
[108] Fix | Delete
</div>
[109] Fix | Delete
</div>
[110] Fix | Delete
</div>
[111] Fix | Delete
</div>
[112] Fix | Delete
[113] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function