PluginProbe
weForms – Easy Drag & Drop Contact Form Builder For WordPress / 1.2.8
weForms – Easy Drag & Drop Contact Form Builder For WordPress v1.2.8
1.6.7 1.6.8 1.6.9 1.6.12 1.6.13 1.6.14 1.6.15 1.6.16 1.6.17 1.6.18 1.6.19 1.6.2 1.6.20 1.6.21 1.6.22 1.6.23 1.6.24 1.6.25 1.6.26 1.6.27 1.6.28 1.6.3 1.6.4 1.6.5 1.6.6 All 74 releases
weforms / includes / admin / views / weforms-settings-general.php

weforms-settings-general.php in weForms – Easy Drag & Drop Contact Form Builder For WordPress 1.2.8, at includes/admin/views/weforms-settings-general.php

82 lines 4.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <h3 class="hndle"><?php _e( 'General Settings', 'weforms' ); ?></h3>
2
3 <div class="inside">
4 <p class="help">
5 <?php _e( 'For better email deliverability choose a email provider that will ensure the email reaches your inbox, as well as reducing your server load.', 'weforms' ); ?>
6 </p>
7
8 <table class="form-table">
9 <tr>
10 <th><?php _e( 'Send Email Via', 'weforms' ); ?></th>
11 <td>
12 <select v-model="settings.email_gateway">
13 <option value="wordpress"><?php _e( 'WordPress', 'weforms' ); ?></option>
14 <option value="sendgrid" :disabled="is_pro ? false : true"><?php _e( 'SendGrid', 'weforms' ); ?> <span v-if="!is_pro">(<?php _e( 'Premium', 'weforms' ); ?>)</span></option>
15 <option value="mailgun" :disabled="is_pro ? false : true"><?php _e( 'Mailgun', 'weforms' ); ?> <span v-if="!is_pro">(<?php _e( 'Premium', 'weforms' ); ?>)</span></option>
16 <option value="sparkpost" :disabled="is_pro ? false : true"><?php _e( 'SparkPost', 'weforms' ); ?> <span v-if="!is_pro">(<?php _e( 'Premium', 'weforms' ); ?>)</span></option>
17 </select>
18 </td>
19 </tr>
20 <template v-if="is_pro">
21 <tr v-if="settings.email_gateway == 'sendgrid'">
22 <th><?php _e( 'SendGrid API Key', 'weforms' ); ?></th>
23 <td>
24 <input type="text" v-model="settings.gateways.sendgrid" class="regular-text">
25
26 <p class="description"><?php printf( __( 'Fill your SendGrid <a href="%s" target="_blank">API Key</a>.', 'weforms' ), 'https://app.sendgrid.com/settings/api_keys' ); ?></p>
27 </td>
28 </tr>
29 <tr v-if="settings.email_gateway == 'mailgun'">
30 <th><?php _e( 'Domain Name', 'weforms' ); ?></th>
31 <td>
32 <input type="text" v-model="settings.gateways.mailgun_domain" class="regular-text">
33
34 <p class="description"><?php _e( 'Your Mailgun domain name', 'weforms' ); ?></p>
35 </td>
36 </tr>
37 <tr v-if="settings.email_gateway == 'mailgun'">
38 <th><?php _e( 'API Key', 'weforms' ); ?></th>
39 <td>
40 <input type="text" v-model="settings.gateways.mailgun" class="regular-text">
41
42 <p class="description"><?php printf( __( 'Fill your Mailgun <a href="%s" target="_blank">API Key</a>.', 'weforms' ), 'https://app.mailgun.com/app/account/security' ); ?></p>
43 </td>
44 </tr>
45 <tr v-if="settings.email_gateway == 'sparkpost'">
46 <th><?php _e( 'SparkPost API Key', 'weforms' ); ?></th>
47 <td>
48 <input type="text" v-model="settings.gateways.sparkpost" class="regular-text">
49
50 <p class="description"><?php printf( __( 'Fill your SparkPost <a href="%s" target="_blank">API Key</a>.', 'weforms' ), 'https://app.sparkpost.com/account/credentials' ); ?></p>
51 </td>
52 </tr>
53 </template>
54 <tr>
55 <th><?php _e( 'Show Credit', 'weforms' ); ?></th>
56 <td>
57 <label>
58 <input type="checkbox" v-model="settings.credit">
59 <?php _e( 'Show <em>powered by weForms</em> credit in form footer.', 'weforms' ); ?>
60 </label>
61 </td>
62 </tr>
63 <tr>
64 <th><?php _e( 'Form Permission', 'weforms' ); ?></th>
65 <td>
66 <select :disabled="!is_pro" v-model="settings.permission">
67 <option value="manage_options"><?php _e( 'Admins Only', 'weforms' ); ?></option>
68 <option value="edit_others_posts"><?php _e( 'Admins, Editors', 'weforms' ); ?></option>
69 <option value="publish_posts"><?php _e( 'Admins, Editors, Authors', 'weforms' ); ?></option>
70 <option value="edit_posts"><?php _e( 'Admins, Editors, Authors, Contributors', 'weforms' ); ?></option>
71 </select>
72
73 <p v-if="!is_pro" class="description"><?php _e( 'Available in PRO version.', 'weforms' ); ?></p>
74 <p v-else class="description"><?php _e( 'Which user roles can access and create forms, manage form submissions.', 'weforms' ); ?></p>
75 </td>
76 </tr>
77 </table>
78 </div>
79
80 <div class="submit-wrapper">
81 <button v-on:click.prevent="saveSettings($event.target)" class="button button-primary"><?php _e( 'Save Changes', 'weforms' ); ?></button>
82 </div>