| 1 |
<?php |
| 2 |
if ( ! defined( 'ABSPATH' ) ) { |
| 3 |
die( 'You are not allowed to call this page directly.' ); |
| 4 |
} |
| 5 |
|
| 6 |
$images_folder_url = FrmAppHelper::plugin_url() . '/images/coupons/'; |
| 7 |
|
| 8 |
// Track the view of the upsell coupons tab in the usage data. |
| 9 |
FrmUsageController::update_flows_data( 'coupons', 'view_tab' ); |
| 10 |
?> |
| 11 |
<div class="frm-coupons-upsell-wrapper"> |
| 12 |
<h2><?php esc_html_e( 'Coupons', 'formidable' ); ?></h2> |
| 13 |
|
| 14 |
<p> |
| 15 |
<?php esc_html_e( 'Offer discounts with custom coupon codes. Add a Coupon field to your payment form and set percentage or fixed discounts, usage limits, and availability. Requires a Pro license or higher.', 'formidable' ); ?> |
| 16 |
</p> |
| 17 |
|
| 18 |
<?php |
| 19 |
FrmAddonsController::conditional_action_button( |
| 20 |
'coupons', |
| 21 |
array( |
| 22 |
'campaign' => 'coupons-upsell', |
| 23 |
'content' => 'coupons-upsell-button', |
| 24 |
) |
| 25 |
); |
| 26 |
?> |
| 27 |
|
| 28 |
<div class="frm-coupons-upsell frm-main-coupons-upsell"> |
| 29 |
<img src="<?php echo esc_url( $images_folder_url . 'main-upsell.png' ); ?>" alt="<?php esc_attr_e( 'New Coupon Settings', 'formidable' ); ?>" /> |
| 30 |
</div> |
| 31 |
|
| 32 |
<div class="frm_grid_container frm-secondary-coupons-upsells"> |
| 33 |
<div class="frm6 frm-coupons-upsell frm-left-coupons-upsell"> |
| 34 |
<img src="<?php echo esc_url( $images_folder_url . 'left-upsell.png' ); ?>" alt="<?php esc_attr_e( 'Coupon List', 'formidable' ); ?>" /> |
| 35 |
</div> |
| 36 |
<div class="frm6 frm-coupons-upsell frm-right-coupons-upsell"> |
| 37 |
<img src="<?php echo esc_url( $images_folder_url . 'right-upsell.png' ); ?>" alt="<?php esc_attr_e( 'Coupon Field Settings', 'formidable' ); ?>" /> |
| 38 |
</div> |
| 39 |
</div> |
| 40 |
|
| 41 |
</div> |
| 42 |
|