Skip to content

Commit

Permalink
add back the new to imagify block
Browse files Browse the repository at this point in the history
  • Loading branch information
remyperona committed Nov 14, 2023
1 parent b48af6a commit 913fe2a
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions views/part-upsell.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,29 @@
$notices = get_user_meta( $user_id, '_imagify_ignore_notices', true );
$notices = $notices && is_array( $notices ) ? array_flip( $notices ) : [];

if (
$imagify_user->is_free()
&&
Imagify_Requirements::is_api_key_valid()
&&
$unconsumed_quota > 20
) {
?>
<div class="imagify-col-content imagify-block-secondary imagify-mt2">
<div class="best-plan<?php echo $hidden_class; ?>">
<h3 class="imagify-user-best-plan-title">
<?php esc_html_e( 'You\'re new to Imagify?', 'imagify' ); ?>
</h3>
<p><?php esc_html_e( 'Let us help you by analyzing your existing images and determine the best plan for you.', 'imagify' ); ?></p>
<button id="imagify-get-pricing-modal" data-nonce="<?php echo wp_create_nonce( 'imagify_get_pricing_' . get_current_user_id() ); ?>" data-target="#imagify-pricing-modal" type="button" class="imagify-modal-trigger imagify-button imagify-button-light imagify-full-width">
<i class="dashicons dashicons-dashboard" aria-hidden="true"></i>
<span class="button-text"><?php esc_html_e( 'What plan do I need?', 'imagify' ); ?></span>
</button>
</div>
</div><!-- .imagify-col-content -->
<?php
}

if (
Imagify_Requirements::is_api_key_valid()
&&
Expand Down

0 comments on commit 913fe2a

Please sign in to comment.