Files
medicalalert-web-reloaded/wp/wp-content/plugins/imagify/views/notice-almost-over-quota.php
Rachit Bhargava 5d0f0734d8 first commit
2023-07-21 17:12:10 -04:00

40 lines
1.4 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
defined( 'ABSPATH' ) || die( 'Cheatin uh?' );
$this->print_template( 'notice-header', array(
'classes' => array( 'imagify-flex-notice-content', 'error' ),
) );
$views = Imagify_Views::get_instance();
?>
<div class="imagify-notice-quota">
<div class="imagify-flex imagify-vcenter">
<span class="imagify-meteo-icon imagify-noshrink"><?php echo $views->get_quota_icon(); ?></span>
<div class="imagify-space-left">
<p>
<?php
printf(
/* translators: %s is a data quota. */
esc_html__( 'You have %s space credit left', 'imagify' ),
'<span class="imagify-unconsumed-percent">' . $views->get_quota_percent() . '%</span>'
);
?>
</p>
<div class="<?php echo $views->get_quota_class(); ?>">
<div class="imagify-unconsumed-bar imagify-progress" style="width: <?php echo $views->get_quota_percent() . '%'; ?>;"></div>
</div>
</div>
</div>
</div>
<p>
<?php esc_html_e( 'You are running out of credit! Dont forget to upgrade your Imagifys account.', 'imagify' ); ?>
</p>
<div class="imagify-notice-quota-btn-container">
<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>
</div>
<?php
$this->print_template( 'notice-footer', array(
'dismissible' => 'almost-over-quota',
) );