PluginProbe
Imagify Image Optimization: Optimize Images | Compress & Convert to WebP/AVIF / 2.2.7
Imagify Image Optimization: Optimize Images | Compress & Convert to WebP/AVIF v2.2.7
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 / admin / admin-bar-status.php

admin-bar-status.php in Imagify Image Optimization: Optimize Images | Compress & Convert to WebP/AVIF 2.2.7, at views/admin/admin-bar-status.php

48 lines 2.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 defined( 'ABSPATH' ) || exit;
3
4 $pos = strpos( $data['plan_label'], '_' );
5 $plan_label = false !== $pos ? substr( $data['plan_label'], 0, $pos ) : $data['plan_label'];
6 ?>
7 <div class="imagify-admin-bar-quota">
8 <div class="imagify-abq-row">
9 <?php if ( $data['plan_with_quota'] ) : ?>
10 <div class="imagify-meteo-icon"><?php echo $data['quota_icon']; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></div>
11 <?php endif; ?>
12 <div class="imagify-account">
13 <p class="imagify-meteo-title"><?php esc_html_e( 'Account status', 'imagify' ); ?></p>
14 <p class="imagify-meteo-subs"><?php esc_html_e( 'Your subscription:', 'imagify' ); ?> &nbsp;<strong class="imagify-user-plan"><?php echo esc_html( $plan_label ); ?></strong></p>
15 </div>
16 </div>
17 <?php if ( $data['plan_with_quota'] ) : ?>
18 <div class="imagify-abq-row">
19 <div class="imagify-space-left">
20 <p>
21 <?php
22 printf(
23 // translators: %s = percentage.
24 esc_html__( 'You have %s space credit left', 'imagify' ),
25 '<span class="imagify-unconsumed-percent">' . esc_html( $data['unconsumed_quota'] ) . '%</span>'
26 );
27 ?>
28 </p>
29 <div class="<?php echo esc_attr( $data['quota_class'] ); ?>">
30 <div style="width: <?php echo esc_attr( $data['unconsumed_quota'] ); ?>%;" class="imagify-unconsumed-bar imagify-progress"></div>
31 </div>
32 </div>
33 </div>
34 <?php endif; ?>
35 <?php if ( $data['plan_with_quota'] && $data['unconsumed_quota'] <= 20 ) : ?>
36 <div class="imagify-upsell-admin-bar">
37 <?php if ( $data['unconsumed_quota'] <= 20 ) : ?>
38 <p><i class="dashicons dashicons-warning" aria-hidden="true"></i><strong><?php esc_html_e( 'Oops, It\'s almost over!', 'imagify' ); ?></strong></p>
39 <?php elseif ( 0 === $data['unconsumed_quota'] ) : ?>
40 <p><i class="dashicons dashicons-warning" aria-hidden="true"></i><strong><?php esc_html_e( 'Oops, It\'s Over!', 'imagify' ); ?></strong></p>
41 <?php endif; ?>
42 <p><?php echo esc_html( $data['text'] ); ?></p>
43 <p class="center txt-center text-center"><a class="imagify-upsell-admin-bar-button" href="<?php echo esc_url( $data['upgrade_link'] ); ?>" target="_blank"><?php echo esc_html( $data['button_text'] ); ?></a></p>
44 <a href="<?php echo esc_url( get_imagify_admin_url( 'dismiss-notice', 'upsell-admin-bar' ) ); ?>" class="imagify-notice-dismiss imagify-upsell-dismiss notice-dismiss" title="<?php esc_attr_e( 'Dismiss this notice', 'imagify' ); ?>"><span class="screen-reader-text"><?php esc_html_e( 'Dismiss this notice', 'imagify' ); ?></span></a>
45 </div>
46 <?php endif; ?>
47 </div>
48