|
@@ 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( 'frm_wordpress_icon frm-inverse frm_show_upgrade' ); |
| 6 |
|
$action_ops['color'] = 'rgb(0,160,210)'; |
| 7 |
|
|
| 8 |
|
parent::__construct( 'wppost', __( 'Create Post', 'formidable' ), $action_ops ); |
| 9 |
|
} |
| 10 |
|
} |
| 11 |
|
|
| 12 |
|
// add register action |
| 13 |
|
class FrmDefRegAction extends FrmFormAction { |
|
@@ 13-20 (lines=8) @@
|
| 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 |
|
$action_ops['color'] = 'var(--pink)'; |
| 18 |
|
parent::__construct( 'register', __( 'Register User', 'formidable' ), $action_ops ); |
| 19 |
|
} |
| 20 |
|
} |
| 21 |
|
|
| 22 |
|
// add paypal action |
| 23 |
|
class FrmDefPayPalAction extends FrmFormAction { |
|
@@ 52-57 (lines=6) @@
|
| 49 |
|
} |
| 50 |
|
|
| 51 |
|
// add twilio action |
| 52 |
|
class FrmDefTwilioAction extends FrmFormAction { |
| 53 |
|
public function __construct() { |
| 54 |
|
$action_ops = FrmFormAction::default_action_opts( 'frm_sms_icon frm_show_upgrade' ); |
| 55 |
|
parent::__construct( 'twilio', __( 'Twilio SMS', 'formidable' ), $action_ops ); |
| 56 |
|
} |
| 57 |
|
} |
| 58 |
|
|
| 59 |
|
// add payment action |
| 60 |
|
class FrmDefHrsAction extends FrmFormAction { |
|
@@ 60-67 (lines=8) @@
|
| 57 |
|
} |
| 58 |
|
|
| 59 |
|
// add payment action |
| 60 |
|
class FrmDefHrsAction extends FrmFormAction { |
| 61 |
|
public function __construct() { |
| 62 |
|
$action_ops = FrmFormAction::default_action_opts( 'frm_stripe_icon frm_credit_card_alt_icon frm_show_upgrade' ); |
| 63 |
|
$action_ops['color'] = 'var(--green)'; |
| 64 |
|
$action_ops['plugin'] = 'stripe'; |
| 65 |
|
parent::__construct( 'payment', __( 'eCommerce', 'formidable' ), $action_ops ); |
| 66 |
|
} |
| 67 |
|
} |
| 68 |
|
|
| 69 |
|
class FrmDefActiveCampaignAction extends FrmFormAction { |
| 70 |
|
public function __construct() { |
|
@@ 125-131 (lines=7) @@
|
| 122 |
|
} |
| 123 |
|
} |
| 124 |
|
|
| 125 |
|
class FrmDefApiAction extends FrmFormAction { |
| 126 |
|
public function __construct() { |
| 127 |
|
$action_ops = FrmFormAction::default_action_opts( 'frm_feed_icon frm_show_upgrade' ); |
| 128 |
|
$action_ops['color'] = 'var(--purple)'; |
| 129 |
|
parent::__construct( 'api', __( 'Send API data', 'formidable' ), $action_ops ); |
| 130 |
|
} |
| 131 |
|
} |
| 132 |
|
|