Edit File by line
/home/barbar84/www/wp-conte.../plugins/wp-smush.../app/modals
File: updated.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Show Updated Features modal.
[2] Fix | Delete
*
[3] Fix | Delete
* @package WP_Smush
[4] Fix | Delete
*
[5] Fix | Delete
* @since 3.7.0
[6] Fix | Delete
*
[7] Fix | Delete
* @var string $cta_url URL for the modal's CTA button.
[8] Fix | Delete
*/
[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="sui-modal sui-modal-md">
[17] Fix | Delete
<div
[18] Fix | Delete
role="dialog"
[19] Fix | Delete
id="smush-updated-dialog"
[20] Fix | Delete
class="sui-modal-content smush-updated-dialog"
[21] Fix | Delete
aria-modal="true"
[22] Fix | Delete
aria-labelledby="smush-title-updated-dialog"
[23] Fix | Delete
>
[24] Fix | Delete
<div class="sui-box">
[25] Fix | Delete
<div class="sui-box-header sui-flatten sui-content-center sui-spacing-sides--20">
[26] Fix | Delete
<figure class="sui-box-banner" aria-hidden="true">
[27] Fix | Delete
<img src="<?php echo esc_url( WP_SMUSH_URL . 'app/assets/images/updated/updated.png' ); ?>"
[28] Fix | Delete
srcset="<?php echo esc_url( WP_SMUSH_URL . 'app/assets/images/updated/updated.png' ); ?> 1x, <?php echo esc_url( WP_SMUSH_URL . 'app/assets/images/updated/updated' ); ?>@2x.png 2x"
[29] Fix | Delete
alt="<?php esc_attr_e( 'Smush Updated Modal', 'wp-smushit' ); ?>" class="sui-image sui-image-center">
[30] Fix | Delete
</figure>
[31] Fix | Delete
[32] Fix | Delete
<button class="sui-button-icon sui-button-float--right" data-modal-close="" onclick="WP_Smush.onboarding.hideUpgradeModal()">
[33] Fix | Delete
<i class="sui-icon-close sui-md" aria-hidden="true"></i>
[34] Fix | Delete
</button>
[35] Fix | Delete
</div>
[36] Fix | Delete
[37] Fix | Delete
<div class="sui-box-body sui-content-center sui-spacing-sides--50 sui-spacing-top--0">
[38] Fix | Delete
<h3 class="sui-box-title sui-lg" id="smush-title-updated-dialog" style="white-space: normal">
[39] Fix | Delete
<?php
[40] Fix | Delete
esc_html_e( 'NEW: Serve WebP Images Without Smush CDN', 'wp-smushit' );
[41] Fix | Delete
if ( ! WP_Smush::is_pro() ) {
[42] Fix | Delete
echo '<span class="sui-tag sui-tag-pro" style="margin-left: 5px">' . esc_html__( 'Pro', 'wp-smushit' ) . '</span>';
[43] Fix | Delete
}
[44] Fix | Delete
?>
[45] Fix | Delete
</h3>
[46] Fix | Delete
[47] Fix | Delete
<p class="sui-description">
[48] Fix | Delete
<?php esc_html_e( 'The ability to serve WebP images without utilizing Smush Pro’s CDN was highly requested, and we’re excited to announce it’s now possible!', 'wp-smushit' ); ?>
[49] Fix | Delete
</p>
[50] Fix | Delete
[51] Fix | Delete
<p class="sui-description">
[52] Fix | Delete
<?php esc_html_e( 'Speed up your site, consume less bandwidth, and serve streamlined images that are around 26% smaller than JPG and PNG formats. All without sacrificing image quality.', 'wp-smushit' ); ?>
[53] Fix | Delete
</p>
[54] Fix | Delete
[55] Fix | Delete
<p class="sui-description">
[56] Fix | Delete
<?php
[57] Fix | Delete
printf(
[58] Fix | Delete
/* translators: 1. opening link, 2. closing link. */
[59] Fix | Delete
esc_html__( 'With Smush Pro’s new integrated %1$sWebP feature%2$s, you can now easily serve compressed next-gen images to supported browsers. You can also gracefully fallback to JPGs and PNGs for browsers that aren’t compatible.', 'wp-smushit' ),
[60] Fix | Delete
'<a href="' . esc_url( $cta_url ) . '" onclick="WP_Smush.onboarding.hideUpgradeModal()">',
[61] Fix | Delete
'</a>'
[62] Fix | Delete
);
[63] Fix | Delete
?>
[64] Fix | Delete
</p>
[65] Fix | Delete
[66] Fix | Delete
<a href="<?php echo esc_url( $cta_url ); ?>" class="sui-button" onclick="WP_Smush.onboarding.hideUpgradeModal()">
[67] Fix | Delete
<?php esc_html_e( 'Got it', 'wp-smushit' ); ?>
[68] Fix | Delete
</a>
[69] Fix | Delete
</div>
[70] Fix | Delete
</div>
[71] Fix | Delete
</div>
[72] Fix | Delete
</div>
[73] Fix | Delete
[74] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function