| 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 |
|