PluginProbe ʕ •ᴥ•ʔ
GiveWP – Donation Plugin and Fundraising Platform / 2.13.3
GiveWP – Donation Plugin and Fundraising Platform v2.13.3
4.16.2 4.16.1 4.16.0 4.15.5 4.15.4 4.15.3 4.15.2 4.15.1 4.15.0 2.3.0 2.3.1 2.3.2 2.30.0 2.31.0 2.31.1 2.32.0 2.33.0 2.33.1 2.33.2 2.33.3 2.33.4 2.33.5 2.4.0 2.4.1 2.4.2 2.4.3 2.4.4 2.4.5 2.4.6 2.4.7 2.5.0 2.5.1 2.5.10 2.5.11 2.5.12 2.5.13 2.5.2 2.5.3 2.5.4 2.5.5 2.5.6 2.5.7 2.5.8 2.5.9 2.6.0 2.6.1 2.6.2 2.6.3 2.7.0 2.7.1 2.7.2 2.7.3 2.7.4 2.7.5 2.8.0 2.8.1 2.9.0 2.9.1 2.9.2 2.9.3 2.9.4 2.9.5 2.9.6 2.9.7 3.0.0 3.0.1 3.0.2 3.0.3 3.0.4 3.1.0 3.1.1 3.1.2 3.10.0 3.11.0 3.12.0 3.12.1 3.12.2 3.12.3 3.13.0 3.14.0 3.14.1 3.14.2 3.15.0 3.15.1 3.16.0 3.16.1 3.16.2 3.16.3 3.16.4 3.16.5 3.17.0 3.17.1 3.17.2 3.18.0 3.19.0 3.19.1 3.19.2 3.19.3 3.19.4 3.2.0 3.2.1 3.2.2 3.20.0 3.21.0 3.21.1 3.22.0 3.22.1 3.22.2 3.3.0 3.3.1 3.4.0 3.4.1 3.4.2 3.5.0 3.5.1 3.6.0 3.6.1 3.6.2 3.7.0 3.8.0 3.9.0 4.0.0 4.1.0 4.1.1 4.10.0 4.10.1 4.11.0 4.12.0 4.13.0 4.13.1 4.13.2 4.14.0 4.14.1 4.14.2 4.14.3 4.14.4 4.14.5 4.14.6 4.2.0 4.2.1 4.3.0 4.3.1 4.3.2 4.4.0 4.5.0 4.6.1 4.7.0 4.7.1 4.8.0 4.8.1 4.9.0 trunk 1.9.0 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.1.0 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.10.0 2.10.1 2.10.2 2.10.3 2.10.4 2.11.0 2.11.1 2.11.2 2.11.3 2.12.0 2.12.1 2.12.2 2.12.3 2.13.0 2.13.1 2.13.2 2.13.3 2.13.4 2.14.0 2.15.0 2.16.0 2.16.1 2.17.0 2.17.1 2.17.3 2.18.0 2.18.1 2.19.1 2.19.2 2.19.3 2.19.4 2.19.5 2.19.6 2.19.7 2.19.8 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 2.20.0 2.20.1 2.20.2 2.21.0 2.21.1 2.21.2 2.21.3 2.21.4 2.22.0 2.22.1 2.22.2 2.22.3 2.23.0 2.23.1 2.23.2 2.24.0 2.24.1 2.24.2 2.25.0 2.25.1 2.25.2 2.25.3 2.26.0 2.27.0 2.27.1 2.27.2 2.27.3 2.28.0 2.29.0 2.29.1 2.29.2
give / src / Views / Form / Templates / Sequoia / optionConfig.php
give / src / Views / Form / Templates / Sequoia Last commit date
assets 4 years ago sections 5 years ago views 5 years ago Actions.php 5 years ago Sequoia.php 5 years ago optionConfig.php 4 years ago
optionConfig.php
221 lines
1 <?php
2
3 use Give\Form\Template\Options;
4 use Give\Helpers\Form\Template\Utils\Frontend as FrontendFormTemplateUtils;
5
6 global $pagenow;
7 $formInfo = get_post( FrontendFormTemplateUtils::getFormId() );
8
9 // Setup dynamic defaults
10 $introHeadline = ( ! $formInfo->post_title || 'post-new.php' === $pagenow ) ? __( 'Support Our Cause', 'give' ) : $formInfo->post_title;
11 $introDescription = $formInfo->post_excerpt ? $formInfo->post_excerpt : __( 'Help our organization by donating today! All donations go directly to making a difference for our cause.', 'give' );
12
13 return [
14 'introduction' => [
15 'name' => sprintf( __( '%1$s Step 1: %2$s Introduction', 'give' ), '<strong>', '</strong>' ),
16 'desc' => __( 'Step description goes here.', 'give' ),
17 'fields' => [
18 [
19 'name' => __( 'Include Step One', 'give' ),
20 'desc' => __( 'If enabled, a headline and description show for the first step of the donation process.', 'give' ),
21 'id' => 'enabled',
22 'type' => 'radio_inline',
23 'options' => [
24 'enabled' => __( 'Enabled', 'give' ),
25 'disabled' => __( 'Disabled', 'give' ),
26 ],
27 'default' => 'enabled',
28 ],
29 [
30 'id' => 'headline',
31 'name' => __( 'Headline', 'give' ),
32 'desc' => __( 'The headline displays at the top of step one, and defaults to the Form Title. Best practice: limit the headline to fewer than 8 words.', 'give' ),
33 'type' => 'text',
34 'attributes' => [
35 'placeholder' => $introHeadline,
36 ],
37 'default' => $introHeadline,
38 ],
39 [
40 'id' => 'description',
41 'name' => __( 'Description', 'give' ),
42 'desc' => __( 'The description displays below the headline, and defaults to the Donation Form\'s excerpt, if present. Best practice: limit the description to short sentences that drive the donor toward the next step.', 'give' ),
43 'type' => 'textarea',
44 'attributes' => [
45 'placeholder' => $introDescription,
46 ],
47 'default' => $introDescription,
48 ],
49 [
50 'id' => 'image',
51 'name' => __( 'Image', 'give' ),
52 'desc' => __( 'Upload an eye-catching image that reflects your cause. For best results use an image in 16x9 aspect ratio at least 680x400px.', 'give' ),
53 'type' => 'file',
54 ],
55 [
56 'id' => 'primary_color',
57 'name' => __( 'Primary Color', 'give' ),
58 'desc' => __( 'The primary color is used throughout the Form Template for various elements including buttons, line breaks, and focus/hover elements. Set a color that reflects your brand or main featured image for best results.', 'give' ),
59 'type' => 'colorpicker',
60 'default' => '#28C77B',
61 ],
62 [
63 'id' => 'donate_label',
64 'name' => __( 'Donate Button', 'give' ),
65 'desc' => __( 'Customize the text that appears prompting the user to go to the next step.', 'give' ),
66 'type' => 'text_medium',
67 'attributes' => [
68 'placeholder' => __( 'Donate Now', 'give' ),
69 ],
70 'default' => __( 'Donate Now', 'give' ),
71 ],
72 ],
73 ],
74 'payment_amount' => [
75 'name' => sprintf( __( '%1$s Step 2: %2$s Payment Amount', 'give' ), '<strong>', '</strong>' ),
76 'desc' => __( 'Step description goes here.', 'give' ),
77 'fields' => [
78 [
79 'id' => 'header_label',
80 'name' => __( 'Header Label', 'give' ),
81 'desc' => __( 'The Header Label displays at the top of this step, and is designed to focus the donor\'s attention on what this step is about. Best Practice: limit this to fewer than 4 words.', 'give' ),
82 'type' => 'text',
83 'attributes' => [
84 'placeholder' => __( 'Choose Amount', 'give' ),
85 ],
86 'default' => __( 'Choose Amount', 'give' ),
87 ],
88 [
89 'id' => 'content',
90 'name' => __( 'Content', 'give' ),
91 'desc' => __( 'Content displays before the level amounts, and is designed to provide context for those levels. Best practice: limit this to 1-2 short sentences crafted to drive the donor to decide and to remove friction.', 'give' ),
92 'type' => 'textarea',
93 'attributes' => [
94 'placeholder' => sprintf( __( 'How much would you like to donate? As a contributor to %s we make sure your donation goes directly to supporting our cause.', 'give' ), get_bloginfo( 'sitename' ) ),
95 ],
96 ],
97 [
98 'id' => 'next_label',
99 'name' => __( 'Continue Button', 'give' ),
100 'desc' => __( 'Customize the text that appears prompting the user to go to the next step.', 'give' ),
101 'type' => 'text_medium',
102 'attributes' => [
103 'placeholder' => __( 'Continue', 'give' ),
104 ],
105 'default' => __( 'Continue', 'give' ),
106 ],
107 [
108 'id' => 'decimals_enabled',
109 'name' => __( 'Decimal amounts', 'give' ),
110 'desc' => __( 'Do you want to enable decimal amounts? When the setting is disabled, decimal values are rounded.', 'give' ),
111 'type' => 'radio_inline',
112 'default' => 'disabled',
113 'options' => [
114 'disabled' => __( 'Disabled', 'give' ),
115 'enabled' => __( 'Enabled', 'give' ),
116 ],
117 ],
118 ],
119 ],
120 'payment_information' => [
121 'name' => sprintf( __( '%1$s Step 3: %2$s Payment Information', 'give' ), '<strong>', '</strong>' ),
122 'desc' => __( 'Step description goes here.', 'give' ),
123 'fields' => [
124 [
125 'id' => 'header_label',
126 'name' => __( 'Header Label', 'give' ),
127 'desc' => __( 'The Header Label displays at the top of this step, and is designed to focus the donor\'s attention on what this step is about. Best Practice: limit this to fewer than 4 words.', 'give' ),
128 'type' => 'text',
129 'attributes' => [
130 'placeholder' => __( 'Add Your Information', 'give' ),
131 ],
132 'default' => __( 'Add Your Information', 'give' ),
133 ],
134 [
135 'id' => 'headline',
136 'name' => __( 'Headline', 'give' ),
137 'desc' => __( 'The Headline introduces the section where donors provide information about themselves. Best practice: limit the headline to fewer than 5 words.', 'give' ),
138 'type' => 'text',
139 'attributes' => [
140 'placeholder' => __( "Who's giving today?", 'give' ),
141 ],
142 'default' => __( "Who's giving today?", 'give' ),
143 ],
144 [
145 'id' => 'description',
146 'name' => __( 'Description', 'give' ),
147 'desc' => __( 'The description displays below the checkout step, and is designed to remove obstacles from donating. Best practice: use this section to reassure donors that they are making a wise decision.', 'give' ),
148 'type' => 'textarea',
149 'attributes' => [
150 'placeholder' => __( 'We’ll never share this information with anyone.', 'give' ),
151 ],
152 'default' => __( 'We’ll never share this information with anyone.', 'give' ),
153 ],
154 Options::getCheckoutLabelField(),
155 ],
156 ],
157 'thank-you' => [
158 'name' => sprintf( __( '%1$s Step 4: %2$s Thank You', 'give' ), '<strong>', '</strong>' ),
159 'desc' => __( 'Step description goes here.', 'give' ),
160 'fields' => [
161 [
162 'id' => 'image',
163 'name' => __( 'Image', 'give' ),
164 'desc' => __( 'This image appears above the main thank you content. If no image is provided, a check mark icon will appear. For best results use an image in 16x9 aspect ratio at least 680x400px.', 'give' ),
165 'type' => 'file',
166 ],
167 [
168 'id' => 'headline',
169 'name' => __( 'Headline', 'give' ),
170 'desc' => __( 'This message displays in large font on the thank you screen. Best practice: short, sweet, and sincere works best.', 'give' ),
171 'type' => 'text',
172 'attributes' => [
173 'placeholder' => __( 'A great big thank you!', 'give' ),
174 ],
175 'default' => __( 'A great big thank you!', 'give' ),
176 ],
177 [
178 'id' => 'description',
179 'name' => __( 'Description', 'give' ),
180 'desc' => __( 'The description is displayed directly below the main headline and should be 1-2 sentences. You may use <a href="http://docs.givewp.com/email-tags" target="_blank">any of the available template tags</a> within this message.', 'give' ),
181 'type' => 'textarea',
182 'attributes' => [
183 'placeholder' => __( '{name}, your contribution means a lot and will be put to good use making a difference. We’ve sent your donation receipt to {donor_email}. ', 'give' ),
184 ],
185 'default' => __( '{name}, your contribution means a lot and will be put to good use making a difference. We’ve sent your donation receipt to {donor_email}. ', 'give' ),
186 ],
187 [
188 'name' => __( 'Social Sharing', 'give' ),
189 'desc' => __( 'Enable to display links for donors to share on social media that they donated.', 'give' ),
190 'id' => 'sharing',
191 'type' => 'radio_inline',
192 'options' => [
193 'enabled' => __( 'Enabled', 'give' ),
194 'disabled' => __( 'Disabled', 'give' ),
195 ],
196 'default' => 'enabled',
197 ],
198 [
199 'id' => 'sharing_instruction',
200 'name' => __( 'Sharing Instruction', 'give' ),
201 'desc' => __( 'Sharing instructions display above the social sharing buttons. Best practice: be direct, bold, and confident here. Donors share when they are asked to.', 'give' ),
202 'type' => 'text',
203 'attributes' => [
204 'placeholder' => __( 'Help spread the word by sharing your support with your friends and followers!', 'give' ),
205 ],
206 'default' => __( 'Help spread the word by sharing your support with your friends and followers!', 'give' ),
207 ],
208 [
209 'id' => 'twitter_message',
210 'name' => __( 'Twitter Message', 'give' ),
211 'desc' => __( 'This puts "words in the mouth" of your donor to share with their Twitter followers.', 'give' ),
212 'type' => 'text',
213 'attributes' => [
214 'placeholder' => __( 'I just gave to this cause. Who\'s next?', 'give' ),
215 ],
216 'default' => __( 'I just gave to this cause. Who\'s next?', 'give' ),
217 ],
218 ],
219 ],
220 ];
221