phrases-email.php
14.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
<?php
if (!defined("ABSPATH")) {
exit();
}
?>
<style>
p.wpd-desc, .wc_available_variable {
font-size: 13px;
color: #666666;
width: 80%;
padding: 0px;
margin: 0px;
line-height: 18px;
}
</style>
<div>
<h2 style="padding:5px 10px 10px 10px; margin:0px;"><?php esc_html_e("Email Template Phrases", "wpdiscuz"); ?></h2>
<table class="wp-list-table widefat plugins" style="margin-top:10px; border:none;">
<tbody>
<tr valign="top">
<th scope="row">
<h4><?php esc_html_e("Subscription type: Post comments", "wpdiscuz"); ?></h4>
<label for="wc_email_subject"><?php esc_html_e("Post comment notification subject", "wpdiscuz"); ?></label>
<p class="wpd-desc"><?php esc_html_e("Available shortcodes", "wpdiscuz"); ?>:
<div class="wc_available_variables">
<div class="wc_available_variable">[BLOG_TITLE]</div>
<div class="wc_available_variable">[POST_TITLE]</div>
<div class="wc_available_variable">[COMMENT_AUTHOR]</div>
</div>
</th>
<td colspan="3"><input type="text" value="<?php echo esc_attr($this->phrases["wc_email_subject"]); ?>" name="wc_email_subject" id="wc_email_subject" /></td>
</tr>
<tr valign="top">
<th scope="row">
<label for="wc_email_message"><?php esc_html_e("Post comment notification content", "wpdiscuz"); ?></label>
<p class="wpd-desc"><?php esc_html_e("Available shortcodes", "wpdiscuz"); ?>:
<div class="wc_available_variables">
<div class="wc_available_variable">[SITE_URL]</div>
<div class="wc_available_variable">[POST_URL]</div>
<div class="wc_available_variable">[BLOG_TITLE]</div>
<div class="wc_available_variable">[POST_TITLE]</div>
<div class="wc_available_variable">[SUBSCRIBER_NAME]</div>
<p class="wpd-desc"><?php esc_html_e("Shortcode above will work for registered users only", "wpdiscuz"); ?>
<div class="wc_available_variable">[COMMENT_URL]</div>
<div class="wc_available_variable">[COMMENT_AUTHOR]</div>
<div class="wc_available_variable">[COMMENT_CONTENT]</div>
<div class="wc_available_variable">[UNSUBSCRIBE_URL]</div>
</div>
</p>
</th>
<td colspan="3"><?php wp_editor($this->phrases["wc_email_message"], "wc_email_message", ["textarea_rows" => 7, "teeny" => true]); ?></td>
</tr>
<tr valign="top">
<th scope="row">
<h4><?php esc_html_e("Subscription type: All my comments", "wpdiscuz"); ?></h4>
<label for="wc_all_comment_new_reply_subject"><?php esc_html_e("New reply notification subject", "wpdiscuz"); ?></label>
<p class="wpd-desc"><?php esc_html_e("Available shortcodes", "wpdiscuz"); ?>:
<div class="wc_available_variables">
<div class="wc_available_variable">[BLOG_TITLE]</div>
<div class="wc_available_variable">[POST_TITLE]</div>
<div class="wc_available_variable">[COMMENT_AUTHOR]</div>
</div>
</th>
<td colspan="3"><input type="text" value="<?php echo esc_attr($this->phrases["wc_all_comment_new_reply_subject"]); ?>" name="wc_all_comment_new_reply_subject" id="wc_all_comment_new_reply_subject" /></td>
</tr>
<tr valign="top">
<th scope="row">
<label for="wc_all_comment_new_reply_message"><?php esc_html_e("New Reply notification content", "wpdiscuz"); ?></label>
<p class="wpd-desc"><?php esc_html_e("Available shortcodes", "wpdiscuz"); ?>:
<div class="wc_available_variables">
<div class="wc_available_variable">[SITE_URL]</div>
<div class="wc_available_variable">[POST_URL]</div>
<div class="wc_available_variable">[BLOG_TITLE]</div>
<div class="wc_available_variable">[POST_TITLE]</div>
<div class="wc_available_variable">[SUBSCRIBER_NAME]</div>
<p class="wpd-desc"><?php esc_html_e("Shortcode above will work for registered users only", "wpdiscuz"); ?>
<div class="wc_available_variable">[COMMENT_URL]</div>
<div class="wc_available_variable">[COMMENT_AUTHOR]</div>
<div class="wc_available_variable">[COMMENT_CONTENT]</div>
<div class="wc_available_variable">[UNSUBSCRIBE_URL]</div>
</div>
</p>
</th>
<td colspan="3"><?php wp_editor($this->phrases["wc_all_comment_new_reply_message"], "wc_all_comment_new_reply_message", ["textarea_rows" => 7, "teeny" => true]); ?></td>
</tr>
<tr valign="top">
<th scope="row">
<h4><?php esc_html_e("Subscription type: Single comment", "wpdiscuz"); ?></h4>
<label for="wc_new_reply_email_subject"><?php esc_html_e("New reply notification subject", "wpdiscuz"); ?></label>
<p class="wpd-desc"><?php esc_html_e("Available shortcodes", "wpdiscuz"); ?>:
<div class="wc_available_variables">
<div class="wc_available_variable">[BLOG_TITLE]</div>
<div class="wc_available_variable">[POST_TITLE]</div>
<div class="wc_available_variable">[COMMENT_AUTHOR]</div>
</div>
</th>
<td colspan="3"><input type="text" value="<?php echo esc_attr($this->phrases["wc_new_reply_email_subject"]); ?>" name="wc_new_reply_email_subject" id="wc_new_reply_email_subject" /></td>
</tr>
<tr valign="top">
<th scope="row">
<label for="wc_new_reply_email_message"><?php esc_html_e("New Reply notification content", "wpdiscuz"); ?></label>
<p class="wpd-desc"><?php esc_html_e("Available shortcodes", "wpdiscuz"); ?>:
<div class="wc_available_variables">
<div class="wc_available_variable">[SITE_URL]</div>
<div class="wc_available_variable">[POST_URL]</div>
<div class="wc_available_variable">[BLOG_TITLE]</div>
<div class="wc_available_variable">[POST_TITLE]</div>
<div class="wc_available_variable">[SUBSCRIBER_NAME]</div>
<div class="wc_available_variable">[COMMENT_URL]</div>
<div class="wc_available_variable">[COMMENT_AUTHOR]</div>
<div class="wc_available_variable">[COMMENT_CONTENT]</div>
<div class="wc_available_variable">[UNSUBSCRIBE_URL]</div>
</div>
</p>
</th>
<td colspan="3"><?php wp_editor($this->phrases["wc_new_reply_email_message"], "wc_new_reply_email_message", ["textarea_rows" => 7, "teeny" => true]); ?></td>
</tr>
<tr valign="top">
<th scope="row">
<label for="wc_confirm_email_subject"><?php esc_html_e("Subscription confirmation email subject", "wpdiscuz"); ?></label>
<p class="wpd-desc"><?php esc_html_e("Available shortcodes", "wpdiscuz"); ?>:
<div class="wc_available_variables">
<div class="wc_available_variable">[BLOG_TITLE]</div>
<div class="wc_available_variable">[POST_TITLE]</div>
</div>
</th>
<td colspan="3"><input type="text" name="wc_confirm_email_subject" id="wc_confirm_email_subject" value="<?php echo esc_attr($this->phrases["wc_confirm_email_subject"]); ?>" /></td>
</tr>
<tr valign="top">
<th scope="row">
<label for="wc_confirm_email_message"><?php esc_html_e("Subscription confirmation email content", "wpdiscuz"); ?></label>
<p class="wpd-desc"><?php esc_html_e("Available shortcodes", "wpdiscuz"); ?>:
<div class="wc_available_variables">
<div class="wc_available_variable">[SITE_URL]</div>
<div class="wc_available_variable">[POST_URL]</div>
<div class="wc_available_variable">[BLOG_TITLE]</div>
<div class="wc_available_variable">[POST_TITLE]</div>
<div class="wc_available_variable">[CONFIRM_URL]</div>
<div class="wc_available_variable">[CANCEL_URL]</div>
</div>
</p>
</th>
<td colspan="3"><?php wp_editor($this->phrases["wc_confirm_email_message"], "wc_confirm_email_message", ["textarea_rows" => 7, "teeny" => true]); ?></td>
</tr>
<tr valign="top">
<th scope="row">
<label for="wc_comment_approved_email_subject"><?php esc_html_e("Comment approved subject", "wpdiscuz"); ?></label>
<p class="wpd-desc"><?php esc_html_e("Available shortcodes", "wpdiscuz"); ?>:
<div class="wc_available_variables">
<div class="wc_available_variable">[BLOG_TITLE]</div>
<div class="wc_available_variable">[POST_TITLE]</div>
<div class="wc_available_variable">[COMMENT_AUTHOR]</div>
</div>
</th>
<td colspan="3"><input type="text" name="wc_comment_approved_email_subject" id="wc_comment_approved_email_subject" value="<?php echo esc_attr($this->phrases["wc_comment_approved_email_subject"]); ?>" /></td>
</tr>
<tr valign="top">
<th scope="row">
<label for="wc_comment_approved_email_message"><?php esc_html_e("Comment approved message", "wpdiscuz"); ?></label>
<p class="wpd-desc">
<?php esc_html_e("Available shortcodes", "wpdiscuz"); ?>:
<div class="wc_available_variables">
<div class="wc_available_variable">[SITE_URL]</div>
<div class="wc_available_variable">[POST_URL]</div>
<div class="wc_available_variable">[BLOG_TITLE]</div>
<div class="wc_available_variable">[POST_TITLE]</div>
<div class="wc_available_variable">[COMMENT_URL]</div>
<div class="wc_available_variable">[COMMENT_AUTHOR]</div>
<div class="wc_available_variable">[COMMENT_CONTENT]</div>
</div>
</p>
</th>
<td colspan="3"><?php wp_editor($this->phrases["wc_comment_approved_email_message"], "wc_comment_approved_email_message", ["textarea_rows" => 7, "teeny" => true]); ?></td>
</tr>
<tr valign="top">
<th scope="row"><label for="wc_unsubscribe"><?php esc_html_e("Unsubscribe", "wpdiscuz"); ?></label></th>
<td colspan="3"><input type="text" name="wc_unsubscribe" id="wc_unsubscribe" value="<?php echo esc_attr($this->phrases["wc_unsubscribe"]); ?>" /></td>
</tr>
<tr valign="top">
<th scope="row"><label for="wc_ignore_subscription"><?php esc_html_e("Ignore subscription", "wpdiscuz"); ?></label></th>
<td colspan="3"><input type="text" name="wc_ignore_subscription" id="wc_ignore_subscription" value="<?php echo esc_attr($this->phrases["wc_ignore_subscription"]); ?>" /></td>
</tr>
<tr valign="top">
<th scope="row"><label for="wc_confirm_email"><?php esc_html_e("Confirm your subscription", "wpdiscuz"); ?></label></th>
<td colspan="3"><input type="text" name="wc_confirm_email" id="wc_confirm_email" value="<?php echo esc_attr($this->phrases["wc_confirm_email"]); ?>" /></td>
</tr>
<tr valign="top">
<th scope="row"><label for="wc_comfirm_success_message"><?php esc_html_e("You've successfully confirmed your subscription.", "wpdiscuz"); ?></label></th>
<td colspan="3"><textarea name="wc_comfirm_success_message" id="wc_comfirm_success_message"><?php echo esc_attr($this->phrases["wc_comfirm_success_message"]); ?></textarea></td>
</tr>
<tr valign="top">
<th scope="row">
<label for="wc_mentioned_email_subject"><?php esc_html_e("Mentioned email subject", "wpdiscuz"); ?></label>
</th>
<td colspan="3"><input type="text" name="wc_mentioned_email_subject" id="wc_mentioned_email_subject" value="<?php echo esc_attr($this->phrases["wc_mentioned_email_subject"]); ?>" /></td>
</tr>
<tr valign="top">
<th scope="row">
<label for="wc_mentioned_email_message"><?php esc_html_e("Mentioned email content", "wpdiscuz"); ?></label>
<p class="wpd-desc"><?php esc_html_e("Available shortcodes", "wpdiscuz"); ?>:
<div class="wc_available_variables">
<div class="wc_available_variable">[MENTIONED_USER_NAME]</div>
<div class="wc_available_variable">[POST_TITLE]</div>
<div class="wc_available_variable">[COMMENT_URL]</div>
<div class="wc_available_variable">[COMMENT_AUTHOR]</div>
</div>
</p>
</th>
<td colspan="3"><?php wp_editor($this->phrases["wc_mentioned_email_message"], "wc_mentioned_email_message", ["textarea_rows" => 10, "teeny" => true]); ?></td>
</tr>
</tbody>
</table>
</div>