|
@@ 3-10 (lines=8) @@
|
| 1 |
|
<?php |
| 2 |
|
// add post action |
| 3 |
|
class FrmDefPostAction extends FrmFormAction { |
| 4 |
|
public function __construct() { |
| 5 |
|
$action_ops = FrmFormAction::default_action_opts(); |
| 6 |
|
$action_ops['classes'] = 'ab-icon frm_dashicon_font dashicons-before frm_show_upgrade'; |
| 7 |
|
|
| 8 |
|
parent::__construct( 'wppost', __( 'Create Post', 'formidable' ), $action_ops ); |
| 9 |
|
} |
| 10 |
|
} |
| 11 |
|
|
| 12 |
|
// add register action |
| 13 |
|
class FrmDefRegAction extends FrmFormAction { |
|
@@ 13-19 (lines=7) @@
|
| 10 |
|
} |
| 11 |
|
|
| 12 |
|
// add register action |
| 13 |
|
class FrmDefRegAction extends FrmFormAction { |
| 14 |
|
public function __construct() { |
| 15 |
|
$action_ops = FrmFormAction::default_action_opts( 'frm_register_icon frm_show_upgrade' ); |
| 16 |
|
$action_ops['plugin'] = 'registration'; |
| 17 |
|
parent::__construct( 'register', __( 'Register User', 'formidable' ), $action_ops ); |
| 18 |
|
} |
| 19 |
|
} |
| 20 |
|
|
| 21 |
|
// add paypal action |
| 22 |
|
class FrmDefPayPalAction extends FrmFormAction { |
|
@@ 22-27 (lines=6) @@
|
| 19 |
|
} |
| 20 |
|
|
| 21 |
|
// add paypal action |
| 22 |
|
class FrmDefPayPalAction extends FrmFormAction { |
| 23 |
|
public function __construct() { |
| 24 |
|
$action_ops = FrmFormAction::default_action_opts( 'frm_paypal_icon frm_show_upgrade' ); |
| 25 |
|
parent::__construct( 'paypal', __( 'PayPal Payment', 'formidable' ), $action_ops ); |
| 26 |
|
} |
| 27 |
|
} |
| 28 |
|
|
| 29 |
|
// add aweber action |
| 30 |
|
class FrmDefAweberAction extends FrmFormAction { |
|
@@ 30-35 (lines=6) @@
|
| 27 |
|
} |
| 28 |
|
|
| 29 |
|
// add aweber action |
| 30 |
|
class FrmDefAweberAction extends FrmFormAction { |
| 31 |
|
public function __construct() { |
| 32 |
|
$action_ops = FrmFormAction::default_action_opts( 'frm_aweber_icon frm_show_upgrade' ); |
| 33 |
|
parent::__construct( 'aweber', __( 'Aweber', 'formidable' ), $action_ops ); |
| 34 |
|
} |
| 35 |
|
} |
| 36 |
|
|
| 37 |
|
// add mailchimp action |
| 38 |
|
class FrmDefMlcmpAction extends FrmFormAction { |
|
@@ 38-43 (lines=6) @@
|
| 35 |
|
} |
| 36 |
|
|
| 37 |
|
// add mailchimp action |
| 38 |
|
class FrmDefMlcmpAction extends FrmFormAction { |
| 39 |
|
public function __construct() { |
| 40 |
|
$action_ops = FrmFormAction::default_action_opts( 'frm_mailchimp_icon frm_show_upgrade' ); |
| 41 |
|
parent::__construct( 'mailchimp', __( 'MailChimp', 'formidable' ), $action_ops ); |
| 42 |
|
} |
| 43 |
|
} |
| 44 |
|
|
| 45 |
|
// add twilio action |
| 46 |
|
class FrmDefTwilioAction extends FrmFormAction { |
|
@@ 46-51 (lines=6) @@
|
| 43 |
|
} |
| 44 |
|
|
| 45 |
|
// add twilio action |
| 46 |
|
class FrmDefTwilioAction extends FrmFormAction { |
| 47 |
|
public function __construct() { |
| 48 |
|
$action_ops = FrmFormAction::default_action_opts( 'frm_sms_icon frm_show_upgrade' ); |
| 49 |
|
parent::__construct( 'twilio', __( 'Twilio SMS', 'formidable' ), $action_ops ); |
| 50 |
|
} |
| 51 |
|
} |
| 52 |
|
|
| 53 |
|
// add payment action |
| 54 |
|
class FrmDefHrsAction extends FrmFormAction { |
|
@@ 54-60 (lines=7) @@
|
| 51 |
|
} |
| 52 |
|
|
| 53 |
|
// add payment action |
| 54 |
|
class FrmDefHrsAction extends FrmFormAction { |
| 55 |
|
public function __construct() { |
| 56 |
|
$action_ops = FrmFormAction::default_action_opts( 'frm_stripe_icon frm_credit-card-alt_icon frm_show_upgrade' ); |
| 57 |
|
$action_ops['plugin'] = 'stripe'; |
| 58 |
|
parent::__construct( 'payment', __( 'Credit Card Payment', 'formidable' ), $action_ops ); |
| 59 |
|
} |
| 60 |
|
} |
| 61 |
|
|
| 62 |
|
class FrmDefApiAction extends FrmFormAction { |
| 63 |
|
public function __construct() { |