PluginProbe
wpForo Forum / 1.4.10
wpForo Forum v1.4.10
3.1.6 3.1.5 3.1.4 3.1.2 3.1.1 3.1.0 3.0.9 3.0.8 3.0.7 trunk 1.0.0 1.0.1 1.0.2 1.1.0 1.1.1 1.1.2 1.2.0 1.3.0 1.3.1 1.4.0 1.4.1 1.4.10 1.4.11 1.4.12 1.4.13 All 138 releases
wpforo / wpf-admin / options-tabs / emails.php

emails.php in wpForo Forum 1.4.10, at wpf-admin/options-tabs/emails.php

135 lines 10.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 // Exit if accessed directly
3 if( !defined( 'ABSPATH' ) ) exit;
4 if( !current_user_can('administrator') ) exit;
5 ?>
6
7 <form action="" method="POST" class="validate">
8 <?php wp_nonce_field( 'wpforo-settings-emails' ); ?>
9 <table class="wpforo_settings_table">
10 <tbody>
11 <tr>
12 <th style="width:40%"><label for="from_name"><?php _e('FROM Name', 'wpforo'); ?>:</label></th>
13 <td><input id="from_name" name="wpforo_subscribe_options[from_name]" type="text" value="<?php wpfo(WPF()->sbscrb->options['from_name']); ?>" required></td>
14 </tr>
15 <tr>
16 <th><label for="from_email"><?php _e('FROM Email Address', 'wpforo'); ?>:</label></th>
17 <td><input id="from_email" name="wpforo_subscribe_options[from_email]" type="text" value="<?php wpfo(WPF()->sbscrb->options['from_email']); ?>" required /></td>
18 </tr>
19 <tr>
20 <th>
21 <label for="admin_emails"><?php _e('Forum Admins email addresses', 'wpforo'); ?>:</label>
22 <p class="wpf-info"><?php _e('Comma separated email addresses of forum administrators to get forum notifications. For example post report messages.', 'wpforo') ?></p>
23 </th>
24 <td><input id="admin_emails" name="wpforo_subscribe_options[admin_emails]" type="text" value="<?php wpfo(WPF()->sbscrb->options['admin_emails']); ?>" required /></td>
25 </tr>
26 <tr>
27 <th>
28 <label><?php _e('Notify Admins via email on new Topic', 'wpforo'); ?>:</label>
29 <p class="wpf-info"><?php _e('Send Notification emails to all email addresses (comma separated ) of forum administrators when a new Topic is created.', 'wpforo') ?></p>
30 </th>
31 <td>
32 <div class="wpf-switch-field">
33 <input type="radio" value="1" name="wpforo_subscribe_options[new_topic_notify]" id="wpf_new_topic_notify_1" <?php wpfo_check(WPF()->sbscrb->options['new_topic_notify'], 1); ?>><label for="wpf_new_topic_notify_1"><?php _e('Yes', 'wpforo'); ?></label> &nbsp;
34 <input type="radio" value="0" name="wpforo_subscribe_options[new_topic_notify]" id="wpf_new_topic_notify_0" <?php wpfo_check(WPF()->sbscrb->options['new_topic_notify'], 0); ?>><label for="wpf_new_topic_notify_0"><?php _e('No', 'wpforo'); ?></label>
35 </div>
36 </td>
37 </tr>
38 <tr>
39 <th>
40 <label><?php _e('Notify Admins via email on new Post', 'wpforo'); ?>:</label>
41 <p class="wpf-info"><?php _e('Send Notification emails to all email addresses (comma separated ) of forum administrators when a new Reply is created.', 'wpforo') ?></p>
42 </th>
43 <td>
44 <div class="wpf-switch-field">
45 <input type="radio" value="1" name="wpforo_subscribe_options[new_reply_notify]" id="wpf_new_reply_notify_1" <?php wpfo_check(WPF()->sbscrb->options['new_reply_notify'], 1); ?>><label for="wpf_new_reply_notify_1"><?php _e('Yes', 'wpforo'); ?></label> &nbsp;
46 <input type="radio" value="0" name="wpforo_subscribe_options[new_reply_notify]" id="wpf_new_reply_notify_0" <?php wpfo_check(WPF()->sbscrb->options['new_reply_notify'], 0); ?>><label for="wpf_new_reply_notify_0"><?php _e('No', 'wpforo'); ?></label>
47 </div>
48 </td>
49 </tr>
50 <tr>
51 <td colspan="2" style="border-bottom:2px solid #ddd;">
52 <h3 style="font-weight:400; padding:10px 0 0 0; margin:0;"><?php _e('Subscription Emails', 'wpforo'); ?></h3>
53 </td>
54 </tr>
55 <tr>
56 <th><label for="confirmation_email_subject"><?php _e('Subscribe confirmation email subject', 'wpforo'); ?>:</label></th>
57 <td><input id="confirmation_email_subject" name="wpforo_subscribe_options[confirmation_email_subject]" type="text" value="<?php wpfo(WPF()->sbscrb->options['confirmation_email_subject']); ?>" required></td>
58 </tr>
59 <tr>
60 <th><label for="confirmation_email_message"><?php _e('Subscribe confirmation email message', 'wpforo'); ?>:</label></th>
61 <td><textarea id="confirmation_email_message" style="height:190px;" name="wpforo_subscribe_options[confirmation_email_message]" required><?php wpfo(WPF()->sbscrb->options['confirmation_email_message'], true, 'esc_textarea'); ?></textarea></td>
62 </tr>
63 <tr>
64 <th><label for="new_topic_notification_email_subject"><?php _e('New topic notification email subject', 'wpforo'); ?>:</label></th>
65 <td><input id="new_topic_notification_email_subject" name="wpforo_subscribe_options[new_topic_notification_email_subject]" type="text" value="<?php wpfo(WPF()->sbscrb->options['new_topic_notification_email_subject']); ?>" required></td>
66 </tr>
67 <tr>
68 <th><label for="new_topic_notification_email_message"><?php _e('New topic notification email message', 'wpforo'); ?>:</label></th>
69 <td><textarea id="new_topic_notification_email_message" style="height:190px;" name="wpforo_subscribe_options[new_topic_notification_email_message]" required><?php wpfo(WPF()->sbscrb->options['new_topic_notification_email_message'], true, 'esc_textarea'); ?></textarea></td>
70 </tr>
71 <tr>
72 <th><label for="new_post_notification_email_subject"><?php _e('New reply notification email subject', 'wpforo'); ?>:</label></th>
73 <td><input id="new_post_notification_email_subject" name="wpforo_subscribe_options[new_post_notification_email_subject]" type="text" value="<?php wpfo(WPF()->sbscrb->options['new_post_notification_email_subject']); ?>" required></td>
74 </tr>
75 <tr>
76 <th><label for="new_post_notification_email_message"><?php _e('New reply notification email message', 'wpforo'); ?>:</label></th>
77 <td><textarea id="new_post_notification_email_message" style="height:190px;" name="wpforo_subscribe_options[new_post_notification_email_message]" required><?php wpfo(WPF()->sbscrb->options['new_post_notification_email_message'], true, 'esc_textarea'); ?></textarea></td>
78 </tr>
79 <tr>
80 <td colspan="2" style="border-bottom:2px solid #ddd;">
81 <h3 style="font-weight:400; padding:10px 0 0 0; margin:0;"><?php _e('Post Reporting Emails', 'wpforo'); ?></h3>
82 <p class="wpf-info"><?php _e('This message comes from post reporting pop-up form.', 'wpforo') ?></p>
83 </td>
84 </tr>
85 <tr>
86 <th>
87 <label for="report_email_subject"><?php _e('Report message subject', 'wpforo'); ?>:</label>
88 </th>
89 <td><input id="report_email_subject" name="wpforo_subscribe_options[report_email_subject]" type="text" value="<?php wpfo(WPF()->sbscrb->options['report_email_subject']); ?>" required></td>
90 </tr>
91 <tr>
92 <th><label for="report_email_message"><?php _e('Report message body', 'wpforo'); ?>:</label></th>
93 <td><textarea id="report_email_message" style="height:190px;" name="wpforo_subscribe_options[report_email_message]" required><?php wpfo(WPF()->sbscrb->options['report_email_message'], true, 'esc_textarea'); ?></textarea></td>
94 </tr>
95 <tr>
96 <td colspan="2" style="border-bottom:2px solid #ddd;">
97 <h3 style="font-weight:400; padding:10px 0 0 0; margin:0;"><?php _e('Reset Password Emails', 'wpforo'); ?></h3>
98 <p class="wpf-info"><?php _e('This message comes from Reset Password form.', 'wpforo') ?></p>
99 </td>
100 </tr>
101 <tr>
102 <th><label for="reset_password_email_message"><?php _e('Reset Password message body', 'wpforo'); ?>:</label></th>
103 <td><textarea id="reset_password_email_message" style="height:190px;" name="wpforo_subscribe_options[reset_password_email_message]" required><?php wpfo(WPF()->sbscrb->options['reset_password_email_message'], true, 'esc_textarea'); ?></textarea></td>
104 </tr>
105 <tr>
106 <td colspan="2" style="border-bottom:2px solid #ddd;">
107 <h3 style="font-weight:400; padding:10px 0 0 0; margin:0;"><?php _e('User Mentioning Email', 'wpforo'); ?></h3>
108 </td>
109 </tr>
110 <tr>
111 <th>
112 <label><?php _e('Enable Email Notification', 'wpforo'); ?>:</label>
113 </th>
114 <td>
115 <div class="wpf-switch-field">
116 <input type="radio" value="1" name="wpforo_subscribe_options[user_mention_notify]" id="user_mention_notify_1" <?php wpfo_check(WPF()->sbscrb->options['user_mention_notify'], 1); ?>><label for="user_mention_notify_1"><?php _e('Yes', 'wpforo'); ?></label> &nbsp;
117 <input type="radio" value="0" name="wpforo_subscribe_options[user_mention_notify]" id="user_mention_notify_0" <?php wpfo_check(WPF()->sbscrb->options['user_mention_notify'], 0); ?>><label for="user_mention_notify_0"><?php _e('No', 'wpforo'); ?></label>
118 </div>
119 </td>
120 </tr>
121 <tr>
122 <th><label for="user_mention_email_subject"><?php _e('User Mention message subject', 'wpforo'); ?>:</label></th>
123 <td><input id="user_mention_email_subject" name="wpforo_subscribe_options[user_mention_email_subject]" type="text" value="<?php wpfo(WPF()->sbscrb->options['user_mention_email_subject']); ?>" required></td>
124 </tr>
125 <tr>
126 <th><label for="user_mention_email_message"><?php _e('User Mention message body', 'wpforo'); ?>:</label></th>
127 <td><textarea id="user_mention_email_message" style="height:190px;" name="wpforo_subscribe_options[user_mention_email_message]" required><?php wpfo(WPF()->sbscrb->options['user_mention_email_message'], true, 'esc_textarea'); ?></textarea></td>
128 </tr>
129 </tbody>
130 </table>
131 <div class="wpforo_settings_foot">
132 <input type="submit" class="button button-primary" value="<?php _e('Update Options', 'wpforo'); ?>" />
133 </div>
134 </form>
135