|
@@ 7-14 (lines=8) @@
|
| 4 |
|
} |
| 5 |
|
|
| 6 |
|
// add post action |
| 7 |
|
class FrmDefPostAction extends FrmFormAction { |
| 8 |
|
public function __construct() { |
| 9 |
|
$action_ops = FrmFormAction::default_action_opts( 'frm_wordpress_icon frm-inverse frm_show_upgrade' ); |
| 10 |
|
$action_ops['color'] = 'rgb(0,160,210)'; |
| 11 |
|
|
| 12 |
|
parent::__construct( 'wppost', __( 'Create Post', 'formidable' ), $action_ops ); |
| 13 |
|
} |
| 14 |
|
} |
| 15 |
|
|
| 16 |
|
// add register action |
| 17 |
|
class FrmDefRegAction extends FrmFormAction { |
|
@@ 17-24 (lines=8) @@
|
| 14 |
|
} |
| 15 |
|
|
| 16 |
|
// add register action |
| 17 |
|
class FrmDefRegAction extends FrmFormAction { |
| 18 |
|
public function __construct() { |
| 19 |
|
$action_ops = FrmFormAction::default_action_opts( 'frm_register_icon frm_show_upgrade' ); |
| 20 |
|
$action_ops['plugin'] = 'registration'; |
| 21 |
|
$action_ops['color'] = 'var(--pink)'; |
| 22 |
|
parent::__construct( 'register', __( 'Register User', 'formidable' ), $action_ops ); |
| 23 |
|
} |
| 24 |
|
} |
| 25 |
|
|
| 26 |
|
// add paypal action |
| 27 |
|
class FrmDefPayPalAction extends FrmFormAction { |
|
@@ 64-69 (lines=6) @@
|
| 61 |
|
} |
| 62 |
|
|
| 63 |
|
// add twilio action |
| 64 |
|
class FrmDefTwilioAction extends FrmFormAction { |
| 65 |
|
public function __construct() { |
| 66 |
|
$action_ops = FrmFormAction::default_action_opts( 'frm_sms_icon frm_show_upgrade' ); |
| 67 |
|
parent::__construct( 'twilio', __( 'Twilio SMS', 'formidable' ), $action_ops ); |
| 68 |
|
} |
| 69 |
|
} |
| 70 |
|
|
| 71 |
|
// add payment action |
| 72 |
|
class FrmDefHrsAction extends FrmFormAction { |
|
@@ 72-79 (lines=8) @@
|
| 69 |
|
} |
| 70 |
|
|
| 71 |
|
// add payment action |
| 72 |
|
class FrmDefHrsAction extends FrmFormAction { |
| 73 |
|
public function __construct() { |
| 74 |
|
$action_ops = FrmFormAction::default_action_opts( 'frm_stripe_icon frm_credit_card_alt_icon frm_show_upgrade' ); |
| 75 |
|
$action_ops['color'] = 'var(--green)'; |
| 76 |
|
$action_ops['plugin'] = 'stripe'; |
| 77 |
|
parent::__construct( 'payment', __( 'eCommerce', 'formidable' ), $action_ops ); |
| 78 |
|
} |
| 79 |
|
} |
| 80 |
|
|
| 81 |
|
class FrmDefActiveCampaignAction extends FrmFormAction { |
| 82 |
|
public function __construct() { |
|
@@ 137-143 (lines=7) @@
|
| 134 |
|
} |
| 135 |
|
} |
| 136 |
|
|
| 137 |
|
class FrmDefApiAction extends FrmFormAction { |
| 138 |
|
public function __construct() { |
| 139 |
|
$action_ops = FrmFormAction::default_action_opts( 'frm_feed_icon frm_show_upgrade' ); |
| 140 |
|
$action_ops['color'] = 'var(--purple)'; |
| 141 |
|
parent::__construct( 'api', __( 'Send API data', 'formidable' ), $action_ops ); |
| 142 |
|
} |
| 143 |
|
} |
| 144 |
|
|