PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.5.1
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.5.1
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 / classes / views / frm-form-actions / default_actions.php

default_actions.php in Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More 6.5.1, at classes/views/frm-form-actions/default_actions.php

180 lines 6.7 KB
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 // 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 {
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 {
28 public function __construct() {
29 $action_ops = FrmFormAction::default_action_opts( 'frm_paypal_icon frm-inverse frm_show_upgrade' );
30 $action_ops['color'] = 'var(--primary-700)';
31
32 parent::__construct( 'paypal', 'PayPal', $action_ops );
33 }
34 }
35
36 // add quiz action
37 class FrmDefQuizAction extends FrmFormAction {
38 public function __construct() {
39 $action_ops = FrmFormAction::default_action_opts( 'frm_percent_icon frm_quiz_icon frm_show_upgrade' );
40 $action_ops['plugin'] = 'quizzes';
41 parent::__construct( 'quiz', __( 'Scored Quiz', 'formidable' ), $action_ops );
42 }
43 }
44
45 // add quiz outcome action
46 class FrmDefQuizOutcomeAction extends FrmFormAction {
47 public function __construct() {
48 $action_ops = FrmFormAction::default_action_opts( 'frm_check1_icon frm_quiz_icon frm_show_upgrade' );
49 $action_ops['plugin'] = 'quizzes';
50 parent::__construct( 'quiz_outcome', __( 'Quiz Outcome', 'formidable' ), $action_ops );
51 }
52 }
53
54 // add aweber action
55 class FrmDefAweberAction extends FrmFormAction {
56 public function __construct() {
57 $action_ops = FrmFormAction::default_action_opts( 'frm_aweber_icon frm_show_upgrade' );
58 $action_ops['color'] = 'var(--green)';
59 parent::__construct( 'aweber', 'AWeber', $action_ops );
60 }
61 }
62
63 // add mailchimp action
64 class FrmDefMlcmpAction extends FrmFormAction {
65 public function __construct() {
66 $action_ops = FrmFormAction::default_action_opts( 'frm_mailchimp_icon frm_show_upgrade frm-inverse' );
67 $action_ops['color'] = 'var(--grey-700)';
68
69 parent::__construct( 'mailchimp', 'Mailchimp', $action_ops );
70 }
71 }
72
73 // add zapier action
74 class FrmDefZapierAction extends FrmFormAction {
75 public function __construct() {
76 $action_ops = FrmFormAction::default_action_opts( 'frm_zapier_icon frm_show_upgrade' );
77 $action_ops['color'] = 'var(--orange)';
78 parent::__construct( 'zapier', 'Zapier', $action_ops );
79 }
80 }
81
82 // add twilio action
83 class FrmDefTwilioAction extends FrmFormAction {
84 public function __construct() {
85 $action_ops = FrmFormAction::default_action_opts( 'frm_sms_icon frm_show_upgrade' );
86 parent::__construct( 'twilio', __( 'Twilio SMS', 'formidable' ), $action_ops );
87 }
88 }
89
90 class FrmDefActiveCampaignAction extends FrmFormAction {
91 public function __construct() {
92 $action_ops = FrmFormAction::default_action_opts( 'frm_activecampaign_icon frm_show_upgrade' );
93 $action_ops['color'] = 'var(--primary-700)';
94 parent::__construct( 'activecampaign', 'ActiveCampaign', $action_ops );
95 }
96 }
97
98 class FrmDefSalesforceAction extends FrmFormAction {
99 public function __construct() {
100 $action_ops = FrmFormAction::default_action_opts( 'frm_salesforce_icon frm-inverse frm_show_upgrade' );
101 $action_ops['color'] = 'var(--primary-500)';
102 parent::__construct( 'salesforce', 'Salesforce', $action_ops );
103 }
104 }
105
106 class FrmDefConstContactAction extends FrmFormAction {
107 public function __construct() {
108 $action_ops = FrmFormAction::default_action_opts( 'frm_constant_contact_icon frm_show_upgrade' );
109 $action_ops['color'] = 'rgb(0,160,210)';
110 parent::__construct( 'constantcontact', 'Constant Contact', $action_ops );
111 }
112 }
113
114 class FrmDefGetResponseAction extends FrmFormAction {
115 public function __construct() {
116 $action_ops = FrmFormAction::default_action_opts( 'frm_getresponse_icon frm_show_upgrade' );
117 $action_ops['color'] = '#00baff';
118 parent::__construct( 'getresponse', 'GetResponse', $action_ops );
119 }
120 }
121
122 class FrmDefHubspotAction extends FrmFormAction {
123 public function __construct() {
124 $action_ops = FrmFormAction::default_action_opts( 'frm_hubspot_icon frm_show_upgrade' );
125 $action_ops['color'] = 'var(--orange)';
126
127 $action_ops['message'] = '';
128 if ( ! FrmAppHelper::pro_is_installed() ) {
129 $action_ops['message'] .= __( 'The HubSpot integration is not available on your plan. Did you know you can upgrade to unlock more awesome features?', 'formidable' ) . '<br/><br/>';
130 }
131 $link = FrmAppHelper::admin_upgrade_link( 'add-action', 'knowledgebase/hubspot-forms/' );
132 $action_ops['message'] .= '<a href="' . esc_url( $link ) . '" target="_blank" rel="noopener" class="button button-secondary frm-button-secondary">Get Free HubSpot Account</a>';
133 parent::__construct( 'hubspot', 'Hubspot', $action_ops );
134 }
135 }
136
137 class FrmDefHighriseAction extends FrmFormAction {
138 public function __construct() {
139 $action_ops = FrmFormAction::default_action_opts( 'frm_building_icon frm_show_upgrade' );
140 $action_ops['color'] = 'var(--purple)';
141 parent::__construct( 'highrise', 'Highrise', $action_ops );
142 }
143 }
144
145 class FrmDefMailpoetAction extends FrmFormAction {
146 public function __construct() {
147 $action_ops = FrmFormAction::default_action_opts( 'frm_mailpoet_icon frm_show_upgrade' );
148 $action_ops['color'] = 'var(--orange)';
149 parent::__construct( 'mailpoet', 'MailPoet', $action_ops );
150 }
151 }
152
153 class FrmDefApiAction extends FrmFormAction {
154 public function __construct() {
155 $action_ops = FrmFormAction::default_action_opts( 'frm_feed_icon frm_show_upgrade' );
156 $action_ops['color'] = 'var(--purple)';
157 parent::__construct( 'api', __( 'Send API data', 'formidable' ), $action_ops );
158 }
159 }
160
161 // add google sheets
162 class FrmDefGoogleSpreadsheetAction extends FrmFormAction {
163 public function __construct() {
164 $action_ops = FrmFormAction::default_action_opts( 'frm_googlesheets_icon frm_show_upgrade' );
165 $action_ops['color'] = 'var(--green)';
166 parent::__construct( 'googlespreadsheet', __( 'Google Sheets', 'formidable' ), $action_ops );
167 }
168 }
169
170 class FrmDefHrsAction extends FrmFormAction {
171 public function __construct() {
172 _deprecated_function( __METHOD__, 'x.x' );
173
174 $action_ops = FrmFormAction::default_action_opts( 'frm_stripe_icon frm_credit_card_alt_icon frm_show_upgrade' );
175 $action_ops['color'] = 'var(--green)';
176 $action_ops['plugin'] = 'stripe';
177 parent::__construct( 'payment', __( 'eCommerce', 'formidable' ), $action_ops );
178 }
179 }
180