PluginProbe
Imagify Image Optimization: Optimize Images | Compress & Convert to WebP/AVIF / 1.10
Imagify Image Optimization: Optimize Images | Compress & Convert to WebP/AVIF v1.10
2.3.4 2.3.3 2.3.2 2.3.1 2.3.0 2.2.9 2.2.8 trunk 1.10 1.3.3 1.3.4 1.3.5 1.3.5.1 1.3.5.2 1.3.6 1.3.6.1 1.4 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.5 All 103 releases
imagify / views / notice-almost-over-quota.php

notice-almost-over-quota.php in Imagify Image Optimization: Optimize Images | Compress & Convert to WebP/AVIF 1.10, at views/notice-almost-over-quota.php

40 lines 1.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 defined( 'ABSPATH' ) || die( 'Cheatin’ uh?' );
3
4 $this->print_template( 'notice-header', array(
5 'classes' => array( 'imagify-flex-notice-content', 'error' ),
6 ) );
7
8 $views = Imagify_Views::get_instance();
9 ?>
10 <div class="imagify-notice-quota">
11 <div class="imagify-flex imagify-vcenter">
12 <span class="imagify-meteo-icon imagify-noshrink"><?php echo $views->get_quota_icon(); ?></span>
13 <div class="imagify-space-left">
14 <p>
15 <?php
16 printf(
17 /* translators: %s is a data quota. */
18 esc_html__( 'You have %s space credit left', 'imagify' ),
19 '<span class="imagify-unconsumed-percent">' . $views->get_quota_percent() . '%</span>'
20 );
21 ?>
22 </p>
23
24 <div class="<?php echo $views->get_quota_class(); ?>">
25 <div class="imagify-unconsumed-bar imagify-progress" style="width: <?php echo $views->get_quota_percent() . '%'; ?>;"></div>
26 </div>
27 </div>
28 </div>
29 </div>
30 <p>
31 <?php esc_html_e( 'You are running out of credit! Don’t forget to upgrade your Imagify’s account.', 'imagify' ); ?>
32 </p>
33 <div class="imagify-notice-quota-btn-container">
34 <a target="_blank" class="button imagify-button imagify-button-secondary button-mini" href="<?php echo esc_url( imagify_get_external_url( 'subscription' ) ); ?>"><?php esc_html_e( 'See our plans', 'imagify' ); ?></a>
35 </div>
36 <?php
37 $this->print_template( 'notice-footer', array(
38 'dismissible' => 'almost-over-quota',
39 ) );
40