optionConfig.php
291 lines
| 1 | <?php |
| 2 | |
| 3 | return [ |
| 4 | /** |
| 5 | * Visual Appearance |
| 6 | */ |
| 7 | 'visual_appearance' => [ |
| 8 | 'name' => sprintf(__('%1$sVisual Appearance%2$s', 'give'), '<strong>', '</strong>'), |
| 9 | 'fields' => [ |
| 10 | [ |
| 11 | 'id' => 'primary_color', |
| 12 | 'name' => __('Primary Color', 'give'), |
| 13 | '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 website colors for best results.', 'give'), |
| 14 | 'type' => 'colorpicker', |
| 15 | 'default' => '#1E8CBE', |
| 16 | ], |
| 17 | [ |
| 18 | 'id' => 'container_style', |
| 19 | 'name' => __('Container Style', 'give'), |
| 20 | 'desc' => __('Do you want your donation form to be in a white container or without a container so that it blends into your website’s background?', 'give'), |
| 21 | 'type' => 'radio', |
| 22 | 'options' => [ |
| 23 | 'boxed' => __('Boxed', 'give'), |
| 24 | 'unboxed' => __('Unboxed', 'give'), |
| 25 | ], |
| 26 | 'default' => 'boxed', |
| 27 | ], |
| 28 | [ |
| 29 | 'id' => 'primary_font', |
| 30 | 'name' => __('Primary Font', 'give'), |
| 31 | 'desc' => __('A custom Google Font can make the donation form look great but can increase page load times as well as create a third party dependency. The Theme Font option will use your theme’s font. The System Font option uses the system font of a particular operating system and can boost performance.', 'give'), |
| 32 | 'type' => 'select', |
| 33 | 'options' => [ |
| 34 | 'system' => __('User\'s System Font', 'give'), |
| 35 | 'Montserrat' => 'Montserrat', |
| 36 | 'Roboto' => 'Roboto', |
| 37 | 'Open Sans' => 'Open Sans', |
| 38 | 'Lato' => 'Lato', |
| 39 | 'Oswald' => 'Oswald', |
| 40 | 'Source Sans Pro' => 'Source Sans Pro', |
| 41 | 'Slabo 27px' => 'Slabo 27px', |
| 42 | 'Raleway' => 'Raleway', |
| 43 | 'PT Sans' => 'PT Sans', |
| 44 | 'Noto Sans' => 'Noto Sans', |
| 45 | 'Nunito Sans' => 'Nunito Sans', |
| 46 | 'Prompt' => 'Prompt', |
| 47 | 'Work Sans' => 'Work Sans', |
| 48 | ], |
| 49 | 'default' => 'Montserrat', |
| 50 | ], |
| 51 | [ |
| 52 | 'id' => 'display_header', |
| 53 | 'name' => __('Display Header', 'give'), |
| 54 | 'desc' => __('If enabled, a headline and description show above the donation fields.', 'give'), |
| 55 | 'type' => 'radio', |
| 56 | 'options' => [ |
| 57 | 'enabled' => __('Enabled', 'give'), |
| 58 | 'disabled' => __('Disabled', 'give'), |
| 59 | ], |
| 60 | 'attributes' => [ |
| 61 | 'class' => 'give-visibility-handler', |
| 62 | ], |
| 63 | 'default' => 'enabled', |
| 64 | ], |
| 65 | [ |
| 66 | 'id' => 'main_heading', |
| 67 | 'name' => __('Main Heading', 'give'), |
| 68 | 'desc' => __('This is the text that displays as a headline in the form header.', 'give'), |
| 69 | 'type' => 'text', |
| 70 | 'default' => __('Support Our Cause', 'give'), |
| 71 | 'attributes' => [ |
| 72 | 'data-field-visibility' => htmlspecialchars(json_encode([ 'classic[visual_appearance][display_header]' => 'enabled' ])), |
| 73 | ], |
| 74 | ], |
| 75 | [ |
| 76 | 'id' => 'description', |
| 77 | 'name' => __('Description', 'give'), |
| 78 | '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'), |
| 79 | 'type' => 'textarea', |
| 80 | 'default' => __('Help our organization by donating today! All donations go directly to making a difference for our cause.', 'give'), |
| 81 | 'attributes' => [ |
| 82 | 'data-field-visibility' => htmlspecialchars(json_encode([ 'classic[visual_appearance][display_header]' => 'enabled' ])), |
| 83 | ], |
| 84 | ], |
| 85 | [ |
| 86 | 'id' => 'header_background_image', |
| 87 | 'name' => __('Header Background Image', 'give'), |
| 88 | 'desc' => __('Upload an eye-catching image that reflects your cause. For best results use an image in 16x9 aspect ratio at least 855x480px.', 'give'), |
| 89 | 'type' => 'file', |
| 90 | 'attributes' => [ |
| 91 | 'data-field-visibility' => htmlspecialchars(json_encode([ 'classic[visual_appearance][display_header]' => 'enabled' ])), |
| 92 | ], |
| 93 | ], |
| 94 | [ |
| 95 | 'id' => 'header_background_color', |
| 96 | 'name' => __('Header Background Color', 'give'), |
| 97 | 'desc' => __('This color is used to tint the header image (if set), or be the header color if no image is present, as well as the receipt page header color.', 'give'), |
| 98 | 'type' => 'colorpicker', |
| 99 | 'default' => '#1E8CBE', |
| 100 | 'attributes' => [ |
| 101 | 'data-field-visibility' => htmlspecialchars(json_encode([ 'classic[visual_appearance][display_header]' => 'enabled' ])), |
| 102 | ], |
| 103 | ], |
| 104 | [ |
| 105 | 'id' => 'secure_badge', |
| 106 | 'name' => __('Secure Donation Badge', 'give'), |
| 107 | 'desc' => __('If enabled, a badge will display show in the header providing a security reassurance for donors.', 'give'), |
| 108 | 'type' => 'radio', |
| 109 | 'attributes' => [ |
| 110 | 'class' => 'give-visibility-handler', |
| 111 | ], |
| 112 | 'options' => [ |
| 113 | 'enabled' => __('Enabled', 'give'), |
| 114 | 'disabled' => __('Disabled', 'give'), |
| 115 | ], |
| 116 | 'default' => 'enabled', |
| 117 | ], |
| 118 | [ |
| 119 | 'id' => 'secure_badge_text', |
| 120 | 'name' => __('Secure Donation Badge Text', 'give'), |
| 121 | 'desc' => __('This is the text that displays for the security badge.', 'give'), |
| 122 | 'type' => 'text', |
| 123 | 'default' => __('100% Secure Donation', 'give'), |
| 124 | 'attributes' => [ |
| 125 | 'data-field-visibility' => htmlspecialchars(json_encode([ 'classic[visual_appearance][secure_badge]' => 'enabled' ])), |
| 126 | ], |
| 127 | ], |
| 128 | ], |
| 129 | ], |
| 130 | |
| 131 | /** |
| 132 | * Section 1: Donation Amount |
| 133 | */ |
| 134 | 'donation_amount' => [ |
| 135 | 'name' => sprintf(__('%1$sSection 1:%2$s Donation Amount', 'give'), '<strong>', '</strong>'), |
| 136 | 'fields' => [ |
| 137 | [ |
| 138 | 'id' => 'headline', |
| 139 | 'name' => __('Headline', 'give'), |
| 140 | 'desc' => __('The Headline displays before the donation level amounts, and is designed to provide context for those levels. Best practice: limit this to 1 sentence crafted to drive the donor to decide and to remove friction. Leave blank to remove.', 'give'), |
| 141 | 'type' => 'text', |
| 142 | 'default' => __('How much would you like to donate today?', 'give'), |
| 143 | ], |
| 144 | [ |
| 145 | 'id' => 'description', |
| 146 | 'name' => __('Description', 'give'), |
| 147 | 'desc' => __('The description displays below the headline and is designed to remove obstacles from donating. Best practice: use this section to reassure donors that they are making a wise decision. Leave blank to remove.', 'give'), |
| 148 | 'type' => 'textarea', |
| 149 | 'default' => __('All donations directly impact our organization and help us further our mission.', 'give'), |
| 150 | ], |
| 151 | ], |
| 152 | ], |
| 153 | |
| 154 | /** |
| 155 | * Section 2: Donor Information |
| 156 | */ |
| 157 | 'donor_information' => [ |
| 158 | 'name' => sprintf(__('%1$sSection 2:%2$s Donor Information', 'give'), '<strong>', '</strong>'), |
| 159 | 'fields' => [ |
| 160 | [ |
| 161 | 'id' => 'headline', |
| 162 | 'name' => __('Headline', 'give'), |
| 163 | 'desc' => __('The Headline introduces the section where donors provide information about themselves. Best practice: limit the headline to one short sentence. Leave blank to remove.', 'give'), |
| 164 | 'type' => 'text', |
| 165 | 'default' => __('Who\'s giving today?', 'give'), |
| 166 | ], |
| 167 | [ |
| 168 | 'id' => 'description', |
| 169 | 'name' => __('Description', 'give'), |
| 170 | 'desc' => __('The description displays below the headline and is designed to remove obstacles from donating. Best practice: use this section to reassure donors that their information is secure. Leave blank to remove.', 'give'), |
| 171 | 'type' => 'textarea', |
| 172 | 'default' => __('We’ll never share this information with anyone.', 'give'), |
| 173 | ], |
| 174 | ], |
| 175 | ], |
| 176 | |
| 177 | |
| 178 | /** |
| 179 | * Section 3: Payment Method |
| 180 | */ |
| 181 | 'payment_information' => [ |
| 182 | 'name' => sprintf(__('%1$sSection 3:%2$s Payment Method', 'give'), '<strong>', '</strong>'), |
| 183 | 'fields' => [ |
| 184 | [ |
| 185 | 'id' => 'headline', |
| 186 | 'name' => __('Headline', 'give'), |
| 187 | 'desc' => __('The Headline introduces the section where donors provide payment information. Best practice: limit the headline to one short sentence. Leave blank to remove.', 'give'), |
| 188 | 'type' => 'text', |
| 189 | 'default' => __('How would you like to pay today?', 'give'), |
| 190 | ], |
| 191 | [ |
| 192 | 'id' => 'description', |
| 193 | 'name' => __('Description', 'give'), |
| 194 | 'desc' => __('The description displays below the headline and is designed to remove obstacles from donating. Best practice: use this section to reassure donors that their information is secure. Leave blank to remove.', 'give'), |
| 195 | 'type' => 'textarea', |
| 196 | 'default' => __('This donation is a secure and encrypted payment.', 'give'), |
| 197 | ], |
| 198 | [ |
| 199 | 'id' => 'donation_summary_enabled', |
| 200 | 'name' => __('Donation Summary', 'give'), |
| 201 | 'desc' => __('Display a summary of the donation on the Payment Information step', 'give'), |
| 202 | 'type' => 'radio_inline', |
| 203 | 'options' => [ |
| 204 | 'enabled' => __('Enabled', 'give'), |
| 205 | 'disabled' => __('Disabled', 'give'), |
| 206 | ], |
| 207 | 'default' => 'enabled', |
| 208 | ], |
| 209 | [ |
| 210 | 'id' => 'donation_summary_heading', |
| 211 | 'name' => __('Summary Heading', 'give'), |
| 212 | 'desc' => __( |
| 213 | 'This text displays above the donation summary table and is designed to help introduce the donation breakdown to the visitor. Leave blank to remove.', |
| 214 | 'give' |
| 215 | ), |
| 216 | 'type' => 'text', |
| 217 | 'default' => __('Here\'s what you\'re about to donate:', 'give'), |
| 218 | ], |
| 219 | [ |
| 220 | 'id' => 'donation_summary_location', |
| 221 | 'name' => __('Summary Location', 'give'), |
| 222 | 'desc' => __('Where should the donation summary be placed?', 'give'), |
| 223 | 'type' => 'radio_inline', |
| 224 | 'options' => [ |
| 225 | 'give_donation_form_user_info' => __('Before Payment Fields', 'give'), |
| 226 | 'give_donation_form_before_submit' => __('After Payment Fields', 'give'), |
| 227 | ], |
| 228 | 'default' => 'give_donation_form_before_submit', |
| 229 | ], |
| 230 | ], |
| 231 | ], |
| 232 | |
| 233 | |
| 234 | /** |
| 235 | * Donation Receipt and Thank You |
| 236 | */ |
| 237 | 'donation_receipt' => [ |
| 238 | 'name' => __('Donation Receipt and Thank You', 'give'), |
| 239 | 'fields' => [ |
| 240 | [ |
| 241 | 'id' => 'headline', |
| 242 | 'name' => __('Headline', 'give'), |
| 243 | 'desc' => __('This message displays in large font on the thank you screen. Best practice: short, sweet, and sincere works best.', 'give'), |
| 244 | 'type' => 'text', |
| 245 | 'default' => __('Hey {name}, thanks for your donation!', 'give'), |
| 246 | ], |
| 247 | [ |
| 248 | 'id' => 'description', |
| 249 | 'name' => __('Description', 'give'), |
| 250 | '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'), |
| 251 | 'type' => 'textarea', |
| 252 | 'default' => __('{name}, your contribution means a lot and will be put to good use in making a difference. We’ve sent your donation receipt to {donor_email}.', 'give'), |
| 253 | ], |
| 254 | [ |
| 255 | 'id' => 'social_sharing', |
| 256 | 'name' => __('Social Sharing', 'give'), |
| 257 | 'desc' => __('Enable to display links for donors to share on social media that they donated.', 'give'), |
| 258 | 'type' => 'radio', |
| 259 | 'attributes' => [ |
| 260 | 'class' => 'give-visibility-handler', |
| 261 | ], |
| 262 | 'options' => [ |
| 263 | 'enabled' => __('Enabled', 'give'), |
| 264 | 'disabled' => __('Disabled', 'give'), |
| 265 | ], |
| 266 | 'default' => 'enabled', |
| 267 | ], |
| 268 | [ |
| 269 | 'id' => 'sharing_instructions', |
| 270 | 'name' => __('Sharing Instruction', 'give'), |
| 271 | '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'), |
| 272 | 'type' => 'text', |
| 273 | 'default' => __('Help spread the word by sharing your support with your friends and followers!', 'give'), |
| 274 | 'attributes' => [ |
| 275 | 'data-field-visibility' => htmlspecialchars(json_encode([ 'classic[donation_receipt][social_sharing]' => 'enabled' ])), |
| 276 | ], |
| 277 | ], |
| 278 | [ |
| 279 | 'id' => 'twitter_message', |
| 280 | 'name' => __('Twitter Message', 'give'), |
| 281 | 'desc' => __('This puts "words in the mouth" of your donor to share with their Twitter followers.', 'give'), |
| 282 | 'type' => 'text', |
| 283 | 'default' => __('Help spread the word by sharing your support with your friends and followers!', 'give'), |
| 284 | 'attributes' => [ |
| 285 | 'data-field-visibility' => htmlspecialchars(json_encode([ 'classic[donation_receipt][social_sharing]' => 'enabled' ])), |
| 286 | ], |
| 287 | ], |
| 288 | ], |
| 289 | ], |
| 290 | ]; |
| 291 |