| 1 |
<?php |
| 2 |
defined( 'ABSPATH' ) || die( 'Cheatin’ uh?' ); |
| 3 |
?> |
| 4 |
|
| 5 |
<div class="imagify-admin-bar-quota"> |
| 6 |
<div class="imagify-abq-row"> |
| 7 |
<?php if ( $data['plan_with_quota'] ) : ?> |
| 8 |
<div class="imagify-meteo-icon"><?php echo $data['quota_icon']; ?></div> |
| 9 |
<?php endif; ?> |
| 10 |
<div class="imagify-account"> |
| 11 |
<p class="imagify-meteo-title"><?php esc_html_e( 'Account status', 'imagify' ); ?></p> |
| 12 |
<p class="imagify-meteo-subs"><?php esc_html_e( 'Your subscription:', 'imagify' ); ?> <strong class="imagify-user-plan"><?php echo $data['plan_label']; ?></strong></p> |
| 13 |
</div> |
| 14 |
</div> |
| 15 |
<?php if ( $data['plan_with_quota'] ) : ?> |
| 16 |
<div class="imagify-abq-row"> |
| 17 |
<div class="imagify-space-left"> |
| 18 |
<p><?php |
| 19 |
printf( |
| 20 |
// translators: %s = percentage. |
| 21 |
__( 'You have %s space credit left', 'imagify' ), '<span class="imagify-unconsumed-percent">' . $data['unconsumed_quota'] . '%</span>' ); |
| 22 |
?></p> |
| 23 |
<div class="<?php echo esc_attr( $data['quota_class'] ); ?>"> |
| 24 |
<div style="width: <?php echo esc_attr( $data['unconsumed_quota'] ); ?>%;" class="imagify-unconsumed-bar imagify-progress"></div> |
| 25 |
</div> |
| 26 |
</div> |
| 27 |
</div> |
| 28 |
<?php endif; ?> |
| 29 |
<?php if ( $data['plan_with_quota'] && $data['unconsumed_quota'] <= 20 ) : ?> |
| 30 |
<div class="imagify-upsell-admin-bar"> |
| 31 |
<?php if ( $data['unconsumed_quota'] <= 20 ) : ?> |
| 32 |
<p><i class="dashicons dashicons-warning" aria-hidden="true"></i><strong><?php esc_html_e( 'Oops, It\'s almost over!', 'imagify' ); ?></strong></p> |
| 33 |
<?php elseif ( 0 === $data['unconsumed_quota'] ) : ?> |
| 34 |
<p><i class="dashicons dashicons-warning" aria-hidden="true"></i><strong><?php esc_html_e( 'Oops, It\'s Over!', 'imagify' ); ?></strong></p> |
| 35 |
<?php endif; ?> |
| 36 |
<p><?php echo $data['text']; ?></p> |
| 37 |
<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 $data['button_text']; ?></a></p> |
| 38 |
<a href="<?php echo esc_url( get_imagify_admin_url( 'dismiss-notice', 'upsell-admin-bar' ) ); ?>" class="imagify-notice-dismiss imagify-upsell-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> |
| 39 |
</div> |
| 40 |
<?php endif; ?> |
| 41 |
</div> |
| 42 |
|