PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / trunk
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More vtrunk
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
formidable / stripe / views / lists / coupons.php

coupons.php in Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More trunk, at stripe/views/lists/coupons.php

44 lines 955 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if ( ! defined( 'ABSPATH' ) ) {
3 die( 'You are not allowed to call this page directly.' );
4 }
5 ?>
6
7 <div class="frm_wrap">
8 <?php
9 /**
10 * @since 6.27
11 *
12 * @param bool $publish
13 */
14 $publish = apply_filters( 'frm_coupons_list_button', true );
15
16 FrmAppHelper::get_admin_header(
17 array(
18 'label' => __( 'Payments', 'formidable' ),
19 'form' => FrmAppHelper::simple_get( 'form', 'absint', 0 ),
20 'publish' => $publish,
21 )
22 );
23 ?>
24
25 <div class="wrap">
26 <?php
27 /**
28 * Allow the coupons add-on to hook in and display the coupons list.
29 * If the return value of the hook doesn't change, the coupons upsell
30 * will be displayed instead.
31 *
32 * @since 6.27
33 *
34 * @param bool $coupons_list_displayed
35 */
36 $coupons_list_displayed = apply_filters( 'frm_coupons_list_displayed', false );
37
38 if ( ! $coupons_list_displayed ) {
39 include FrmAppHelper::plugin_path() . '/stripe/views/lists/coupons-upsell.php';
40 }
41 ?>
42 </div>
43 </div>
44