Skip to content

Commit 246723e

Browse files
committed
review limit and add placeholder
1 parent 6794a0c commit 246723e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

inc/admin.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -591,16 +591,14 @@ public function should_show_notice() {
591591
* Show upgrade notice.
592592
*/
593593
public function add_notice_upgrade() {
594-
if ( ! $this->should_show_upgrade() ) {
595-
return;
596-
}
594+
597595
?>
598596
<div class="notice optml-notice-optin" style="background-color: #577BF9; color:white; border: none !important; display: flex;">
599597
<div style="margin: 1% 2%;">
600598
<img src='<?php echo OPTML_URL . 'assets/img/upgrade_icon.png'; ?>'>
601599
</div>
602600
<div style="margin-top: 0.7%;">
603-
<p style="font-size: 16px !important;"> <?php printf( __( '%1$sIt seems you are close to the 1000 visits limit with %3$sOptiMole%4$s for this month.%2$s %5$s For a larger quota you may want to check the upgrade plans. If you exceed the quota we will need to deliver back your original, un-optimized images, which might decrease your site speed performance.', 'optimole-wp' ), '<strong>', '</strong>', '<strong>', '</strong>', '<br/><br/>', '<i>', '</i >', '<strong>', '</strong>' ); ?></p>
601+
<p style="font-size: 16px !important;"> <?php printf( __( '%1$sIt seems you are close to the %2$s visits limit with %3$sOptiMole%4$s for this month.%5$s %6$s For a larger quota you may want to check the upgrade plans. If you exceed the quota we will need to deliver back your original, un-optimized images, which might decrease your site speed performance.', 'optimole-wp' ), '<strong>', number_format_i18n( 1000 ), '</strong>', '<strong>', '</strong>', '<br/><br/>', '<i>', '</i >', '<strong>', '</strong>' ); ?></p>
604602
<p style="margin: 1.5% 0;">
605603
<a href="https://optimole.com/pricing" target="_blank" style="border-radius: 4px;padding: 9px 10px;border: 2px solid #FFF;color: white;text-decoration: none;"><?php _e( 'Check upgrade plans', 'optimole-wp' ); ?>
606604
</a>

0 commit comments

Comments
 (0)