first commit
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
<?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! Don’t forget to upgrade your Imagify’s 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',
|
||||
) );
|
||||
Reference in New Issue
Block a user