Comments – wpDiscuz - Version 2.0.5

Version Description

  • Added : Manage Subscriptions section on comment forms
  • Added : New subscribe option: Notify of new replies to all my comments
  • Added : Show logged-in user name and logout link on top of the main form
  • Added : Ability to insert image in comment content using image source URL
  • Added : Language translation support with .mo and .po files
  • Added : Hebrew (he_IL) language, thanks to Ahrale Shrem
  • Added : Options to show/hide new subscription checkbox
  • Fixed Bug: Duplication of "New Comment" email notifications for post authors
  • Fixed Bug: Problem with large space between the paragraphs

IMPORTANT: If you have a Cache Plugin, please delete all caches after wpDiscuz update.

Download this release

Release Info

Developer AdvancedCoding
Plugin Icon 128x128 Comments – wpDiscuz
Version 2.0.5
Comparing to
See all releases

Code changes from version 2.0.4 to 2.0.5

comment-form/form.php CHANGED
@@ -1,5 +1,7 @@
1
- <?php global $post, $wc_core; ?>
2
  <?php
 
 
 
3
  if ($wc_core->wc_db_helper->is_phrase_exists('wc_leave_a_reply_text')) {
4
  $wc_core->wc_options->wc_options_serialized->wc_phrases = $wc_core->wc_db_helper->get_phrases();
5
  }
@@ -52,6 +54,8 @@ $header_text .= ' "' . get_the_title($post) . '"';
52
  ?>
53
  <div style="clear:both"></div>
54
  <div class="comments-area">
 
 
55
  <?php
56
  if (isset($_GET['wpdiscuzSubscribeID']) && isset($_GET['key'])) {
57
  $wc_core->wc_unsubscribe($_GET['wpdiscuzSubscribeID'], $_GET['key']);
@@ -63,94 +67,135 @@ $header_text .= ' "' . get_the_title($post) . '"';
63
  }
64
  ?>
65
 
66
- <h3 id="wc-comment-header"><?php echo $wc_core->wc_options->wc_options_serialized->wc_phrases['wc_leave_a_reply_text']; ?></h3>
 
 
67
  <?php do_action('comment_form_before'); ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
68
  <div id="wpcomm">
69
  <p class="wc-comment-title">
70
  <?php echo ($post->comment_count) ? $header_text : $wc_core->wc_options->wc_options_serialized->wc_phrases['wc_be_the_first_text']; ?>
71
  </p>
72
  <?php do_action('comment_form_top'); ?>
73
- <div class="wc-form-wrapper">
74
- <?php
75
- if ($wc_core->is_guest_can_comment()) {
76
- ?>
 
77
 
78
- <form action="" method="post" id="wc_comm_form-<?php echo $unique_id; ?>" class="wc_comm_form wc_main_comm_form">
79
- <div class="wc-field-comment">
80
- <div style="width:60px; float:left; position:absolute;">
81
- <?php echo $wc_core->wc_helper->get_comment_author_avatar(); ?>
 
 
 
82
  </div>
83
- <div style="margin-left:65px;" class="item"><textarea id="wc_comment-<?php echo $unique_id; ?>" class="wc_comment wc_field_input" name="wc_comment" required="required" placeholder="<?php echo $textarea_placeholder; ?>"></textarea></div>
84
- <div style="clear:both"></div>
85
- </div>
86
- <div id="wc-form-footer-<?php echo $unique_id; ?>" class="wc-form-footer">
87
- <?php if (!is_user_logged_in()) { ?>
88
- <div class="wc-author-data">
89
- <div class="wc-field-name item"><input id="wc_name-<?php echo $unique_id; ?>" class="wc_name wc_field_input" name="wc_name" required="required" value="" type="text" placeholder="<?php echo $wc_core->wc_options->wc_options_serialized->wc_phrases['wc_name_text'] ?>"/></div>
90
- <div class="wc-field-email item"><input id="wc_email-<?php echo $unique_id; ?>" class="wc_email wc_field_input email" name="wc_email" required="required" value="" type="email" placeholder="<?php echo $wc_core->wc_options->wc_options_serialized->wc_phrases['wc_email_text']; ?>"/></div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
91
  <div style="clear:both"></div>
92
  </div>
93
- <?php } ?>
94
- <div class="wc-form-submit">
95
- <?php if (!$wc_core->wc_options->wc_options_serialized->wc_captcha_show_hide) { ?>
96
- <?php if (!is_user_logged_in()) { ?>
97
- <div class="wc-field-captcha item">
98
- <input id="wc_captcha-<?php echo $unique_id; ?>" class="wc_field_input wc_field_captcha" name="wc_captcha" required="required" value="" type="text" />
99
- <span class="wc-label wc-captcha-label">
100
- <img src="<?php echo plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/captcha/captcha.php?comm_id=' . $post->ID . '-' . 0); ?>" id="wc_captcha_img-<?php echo $unique_id; ?>" rel="nofollow"/>
101
- <img src="<?php echo plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/files/img/refresh-16x16.png'); ?>" id="wc_captcha_refresh_img-<?php echo $unique_id; ?>" class="wc_captcha_refresh_img" rel="nofollow"/>
102
- </span>
103
- <span class="captcha_msg"><?php echo $wc_core->wc_options->wc_options_serialized->wc_phrases['wc_captcha_text']; ?></span>
104
- </div>
105
- <?php } ?>
106
  <?php } ?>
107
- <div class="wc-field-submit"><input type="button" name="submit" value="<?php echo $wc_core->wc_options->wc_options_serialized->wc_phrases['wc_submit_text']; ?>" id="wc_comm-<?php echo $unique_id; ?>" class="wc_comm_submit button alt"/></div>
108
- <div style="clear:both"></div>
109
- </div>
110
- <div class="wc_notification_checkboxes">
111
- <?php
112
- global $current_user;
113
- get_currentuserinfo();
114
- if ($current_user->ID && $wc_core->wc_db_helper->wc_has_post_notification($post->ID, $current_user->user_email)) {
115
- ?>
116
- <label class="wc-label-comment-notify" style="cursor: default;"><?php echo $wc_core->wc_options->wc_options_serialized->wc_phrases['wc_subscribed_on_post']; ?> | <a href="<?php echo $wc_core->wc_db_helper->wc_unsubscribe_link($post->ID, $current_user->user_email, 'post'); ?>" rel="nofollow" class="unsubscribe"><?php echo $wc_core->wc_options->wc_options_serialized->wc_phrases['wc_unsubscribe']; ?></a></label>
117
  <?php
118
- } else {
119
- $wc_notification_state = ($wc_core->wc_options->wc_options_serialized->wc_comment_reply_checkboxes_default_checked == 1) ? 'checked="checked" value="1"' : 'value="0"';
120
- if ($wc_core->wc_options->wc_options_serialized->wc_show_hide_reply_checkbox) {
121
  ?>
122
- <input id="wc_notification_new_reply-<?php echo $unique_id; ?>" class="wc_notification_new_reply" <?php echo $wc_notification_state; ?> type="checkbox" name="wp_comment_reply_notification"/> <label class="wc-label-reply-notify" for="wc_notification_new_reply-<?php echo $unique_id; ?>"><?php echo $wc_core->wc_options->wc_options_serialized->wc_phrases['wc_notify_on_new_reply']; ?></label><br />
123
- <?php
124
- }
125
- if ($wc_core->wc_options->wc_options_serialized->wc_show_hide_comment_checkbox) {
126
- ?>
127
- <input id="wc_notification_new_comment-<?php echo $unique_id; ?>" class="wc_notification_new_comment" <?php echo $wc_notification_state; ?> type="checkbox" name="wp_post_comment_notification"/> <label class="wc-label-comment-notify" for="wc_notification_new_comment-<?php echo $unique_id; ?>"><?php echo $wc_core->wc_options->wc_options_serialized->wc_phrases['wc_notify_on_new_comment']; ?></label><br />
128
  <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
129
  }
130
- }
131
- ?>
132
 
133
- </div>
134
 
135
- </div>
136
- <input type="hidden" name="wc_comment_post_ID" value="<?php echo $post->ID; ?>" id="wc_comment_post_ID-<?php echo $unique_id; ?>" />
137
- <input type="hidden" name="wc_comment_parent" value="0" id="wc_comment_parent-<?php echo $unique_id; ?>" />
138
- </form>
139
- <?php } else { ?>
140
- <p class="wc-must-login"><?php echo $wc_core->wc_options->wc_options_serialized->wc_phrases['wc_you_must_be_text']; ?> <a href="<?php echo wp_login_url(); ?>"><?php echo $wc_core->wc_options->wc_options_serialized->wc_phrases['wc_logged_in_text']; ?></a> <?php echo $wc_core->wc_options->wc_options_serialized->wc_phrases['wc_to_post_comment_text']; ?></p>
141
- <?php } ?>
142
- </div>
143
- <hr/>
144
- <?php if ($wc_comment_list_update_type == 2) { ?>
145
- <div class="wc_new_comment_and_replies">
146
- <div class="wc_new_comment"><span class="wc_new_comment_button_text"></span></div>
147
- <div class="wc_new_reply"><span class="wc_new_reply_button_text"></span></div>
148
- <div style="clear:both"></div>
149
  </div>
150
- <div style="clear:both"></div>
 
 
 
 
 
 
 
 
151
  <?php } ?>
152
 
153
-
154
  <div class="wc-thread-wrapper">
155
  <?php
156
  $wc_wp_comments = $wc_core->get_wp_comments(1);
@@ -183,7 +228,7 @@ $header_text .= ' "' . get_the_title($post) . '"';
183
 
184
  <div style="clear:both"></div>
185
  <div class="by-wpdiscuz"><span id="awpdiscuz" onclick='javascript:document.getElementById("bywpdiscuz").style.display = "inline";
186
- document.getElementById("awpdiscuz").style.display = "none";'><img src="<?php echo plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/files/img/plugin-icon/icon_info.png'); ?>" align="absmiddle" class="wpdimg"/></span>&nbsp;<a href="http://gvectors.com/wpdiscuz/" id="bywpdiscuz" title="wpDiscuz - Interactive Comment System">wpDiscuz</a></div>
187
 
188
  <div id="wc_openModalFormAction" class="modalDialog">
189
  <div id="wc_response_info" class="wc_modal">
 
1
  <?php
2
+ global $post, $wc_core, $current_user;
3
+ get_currentuserinfo();
4
+
5
  if ($wc_core->wc_db_helper->is_phrase_exists('wc_leave_a_reply_text')) {
6
  $wc_core->wc_options->wc_options_serialized->wc_phrases = $wc_core->wc_db_helper->get_phrases();
7
  }
54
  ?>
55
  <div style="clear:both"></div>
56
  <div class="comments-area">
57
+
58
+
59
  <?php
60
  if (isset($_GET['wpdiscuzSubscribeID']) && isset($_GET['key'])) {
61
  $wc_core->wc_unsubscribe($_GET['wpdiscuzSubscribeID'], $_GET['key']);
67
  }
68
  ?>
69
 
70
+ <?php if (comments_open($post->ID)) { ?>
71
+ <h3 id="wc-comment-header"><?php echo $wc_core->wc_options->wc_options_serialized->wc_phrases['wc_leave_a_reply_text']; ?></h3>
72
+ <?php } ?>
73
  <?php do_action('comment_form_before'); ?>
74
+
75
+
76
+ <?php
77
+ if ($wc_core->wc_options->wc_options_serialized->wc_show_hide_loggedin_username) {
78
+ if (is_user_logged_in()) {
79
+ global $current_user;
80
+ get_currentuserinfo();
81
+ $user_url = get_author_posts_url($current_user->ID);
82
+ ?>
83
+ <div id="wc_show_hide_loggedin_username">
84
+ <span class="wc_show_hide_loggedin_username">
85
+ <?php echo $wc_core->wc_options->wc_options_serialized->wc_phrases['wc_logged_in_as'] . ' <a href="'.$user_url.'">' . $current_user->display_name . '</a> | <a href="' . wp_logout_url() . '">' . $wc_core->wc_options->wc_options_serialized->wc_phrases['wc_log_out'] . '</a>'; ?>
86
+ </span>
87
+ </div>
88
+ <?php
89
+ }
90
+ }
91
+ ?>
92
+
93
+
94
  <div id="wpcomm">
95
  <p class="wc-comment-title">
96
  <?php echo ($post->comment_count) ? $header_text : $wc_core->wc_options->wc_options_serialized->wc_phrases['wc_be_the_first_text']; ?>
97
  </p>
98
  <?php do_action('comment_form_top'); ?>
99
+ <?php if (comments_open($post->ID)) { ?>
100
+ <div class="wc-form-wrapper">
101
+ <?php
102
+ if ($wc_core->is_guest_can_comment()) {
103
+ ?>
104
 
105
+ <form action="" method="post" id="wc_comm_form-<?php echo $unique_id; ?>" class="wc_comm_form wc_main_comm_form">
106
+ <div class="wc-field-comment">
107
+ <div style="width:60px; float:left; position:absolute;">
108
+ <?php echo $wc_core->wc_helper->get_comment_author_avatar(); ?>
109
+ </div>
110
+ <div style="margin-left:65px;" class="item"><textarea id="wc_comment-<?php echo $unique_id; ?>" class="wc_comment wc_field_input" name="wc_comment" required="required" placeholder="<?php echo $textarea_placeholder; ?>"></textarea></div>
111
+ <div style="clear:both"></div>
112
  </div>
113
+ <div id="wc-form-footer-<?php echo $unique_id; ?>" class="wc-form-footer">
114
+ <?php if (!is_user_logged_in()) { ?>
115
+ <div class="wc-author-data">
116
+ <div class="wc-field-name item"><input id="wc_name-<?php echo $unique_id; ?>" class="wc_name wc_field_input" name="wc_name" required="required" value="" type="text" placeholder="<?php echo $wc_core->wc_options->wc_options_serialized->wc_phrases['wc_name_text'] ?>"/></div>
117
+ <div class="wc-field-email item"><input id="wc_email-<?php echo $unique_id; ?>" class="wc_email wc_field_input email" name="wc_email" required="required" value="" type="email" placeholder="<?php echo $wc_core->wc_options->wc_options_serialized->wc_phrases['wc_email_text']; ?>"/></div>
118
+ <div style="clear:both"></div>
119
+ </div>
120
+ <?php } ?>
121
+ <div class="wc-form-submit">
122
+ <?php if (!$wc_core->wc_options->wc_options_serialized->wc_captcha_show_hide) { ?>
123
+ <?php if (!is_user_logged_in()) { ?>
124
+ <div class="wc-field-captcha item">
125
+ <input id="wc_captcha-<?php echo $unique_id; ?>" class="wc_field_input wc_field_captcha" name="wc_captcha" required="required" value="" type="text" />
126
+ <span class="wc-label wc-captcha-label">
127
+ <img src="<?php echo plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/captcha/captcha.php?comm_id=' . $post->ID . '-' . 0); ?>" id="wc_captcha_img-<?php echo $unique_id; ?>" rel="nofollow"/>
128
+ <img src="<?php echo plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/files/img/refresh-16x16.png'); ?>" id="wc_captcha_refresh_img-<?php echo $unique_id; ?>" class="wc_captcha_refresh_img" rel="nofollow"/>
129
+ </span>
130
+ <span class="captcha_msg"><?php echo $wc_core->wc_options->wc_options_serialized->wc_phrases['wc_captcha_text']; ?></span>
131
+ </div>
132
+ <?php } ?>
133
+ <?php } ?>
134
+ <div class="wc-field-submit"><input type="button" name="submit" value="<?php echo $wc_core->wc_options->wc_options_serialized->wc_phrases['wc_submit_text']; ?>" id="wc_comm-<?php echo $unique_id; ?>" class="wc_comm_submit button alt"/></div>
135
  <div style="clear:both"></div>
136
  </div>
137
+ <?php if ($wc_core->wc_options->wc_options_serialized->wc_show_hide_comment_checkbox || $wc_core->wc_options->wc_options_serialized->wc_show_hide_reply_checkbox || $wc_core->wc_options->wc_options_serialized->wc_show_hide_all_reply_checkbox) { ?>
138
+ <span class="wc_manage_subscribtions"><?php echo $wc_core->wc_options->wc_options_serialized->wc_phrases['wc_manage_subscribtions']; ?></span>
 
 
 
 
 
 
 
 
 
 
 
139
  <?php } ?>
140
+ <div class="wc_notification_checkboxes">
 
 
 
 
 
 
 
 
 
141
  <?php
142
+ if ($current_user->ID && $wc_core->wc_db_helper->wc_has_post_notification($post->ID, $current_user->user_email)) {
 
 
143
  ?>
144
+ <label class="wc-label-comment-notify" style="cursor: default;"><?php echo $wc_core->wc_options->wc_options_serialized->wc_phrases['wc_subscribed_on_post']; ?> | <a href="<?php echo $wc_core->wc_db_helper->wc_unsubscribe_link($post->ID, $current_user->user_email, 'post'); ?>" rel="nofollow" class="unsubscribe"><?php echo $wc_core->wc_options->wc_options_serialized->wc_phrases['wc_unsubscribe']; ?></a></label>
 
 
 
 
 
145
  <?php
146
+ } else {
147
+ $wc_notification_state = ($wc_core->wc_options->wc_options_serialized->wc_comment_reply_checkboxes_default_checked == 1) ? 'checked="checked" value="1"' : 'value="0"';
148
+
149
+ if ($current_user->ID && $wc_core->wc_db_helper->wc_has_all_comments_notification($post->ID, $current_user->user_email)) {
150
+ ?>
151
+ <label class="wc-label-all-reply-notify" style="cursor: default;"><?php echo $wc_core->wc_options->wc_options_serialized->wc_phrases['wc_subscribed_on_all_comment']; ?> | <a href="<?php echo $wc_core->wc_db_helper->wc_unsubscribe_link($post->ID, $current_user->user_email, 'all_comment'); ?>" rel="nofollow" class="unsubscribe"><?php echo $wc_core->wc_options->wc_options_serialized->wc_phrases['wc_unsubscribe']; ?></a></label><br/>
152
+ <?php
153
+ } else {
154
+
155
+ if ($wc_core->wc_options->wc_options_serialized->wc_show_hide_reply_checkbox) {
156
+ ?>
157
+ <input id="wc_notification_new_reply-<?php echo $unique_id; ?>" class="wc_notification_new_reply" <?php echo $wc_notification_state; ?> type="checkbox" name="wp_comment_reply_notification"/> <label class="wc-label-reply-notify" for="wc_notification_new_reply-<?php echo $unique_id; ?>"><?php echo $wc_core->wc_options->wc_options_serialized->wc_phrases['wc_notify_on_new_reply']; ?></label><br />
158
+ <?php
159
+ }
160
+
161
+ if ($wc_core->wc_options->wc_options_serialized->wc_show_hide_all_reply_checkbox) {
162
+ ?>
163
+ <input id="wc_notification_all_new_reply-<?php echo $unique_id; ?>" class="wc_notification_all_new_reply" <?php echo $wc_notification_state; ?> type="checkbox" name="wc_notification_all_new_reply"/> <label class="wc-label-all-reply-notify" for="wc_notification_all_new_reply-<?php echo $unique_id; ?>"><?php echo $wc_core->wc_options->wc_options_serialized->wc_phrases['wc_notify_on_all_new_reply']; ?></label><br />
164
+ <?php
165
+ }
166
+ }
167
+
168
+ if ($wc_core->wc_options->wc_options_serialized->wc_show_hide_comment_checkbox) {
169
+ ?>
170
+ <input id="wc_notification_new_comment-<?php echo $unique_id; ?>" class="wc_notification_new_comment" <?php echo $wc_notification_state; ?> type="checkbox" name="wp_post_comment_notification"/> <label class="wc-label-comment-notify" for="wc_notification_new_comment-<?php echo $unique_id; ?>"><?php echo $wc_core->wc_options->wc_options_serialized->wc_phrases['wc_notify_on_new_comment']; ?></label><br />
171
+ <?php
172
+ }
173
  }
174
+ ?>
 
175
 
176
+ </div>
177
 
178
+ </div>
179
+ <input type="hidden" name="wc_comment_post_ID" value="<?php echo $post->ID; ?>" id="wc_comment_post_ID-<?php echo $unique_id; ?>" />
180
+ <input type="hidden" name="wc_comment_parent" value="0" id="wc_comment_parent-<?php echo $unique_id; ?>" />
181
+ </form>
182
+ <?php } else { ?>
183
+ <p class="wc-must-login"><?php echo $wc_core->wc_options->wc_options_serialized->wc_phrases['wc_you_must_be_text']; ?> <a href="<?php echo wp_login_url(); ?>"><?php echo $wc_core->wc_options->wc_options_serialized->wc_phrases['wc_logged_in_text']; ?></a> <?php echo $wc_core->wc_options->wc_options_serialized->wc_phrases['wc_to_post_comment_text']; ?></p>
184
+ <?php
185
+ }
186
+ ?>
 
 
 
 
 
187
  </div>
188
+ <hr/>
189
+ <?php if ($wc_comment_list_update_type == 2) { ?>
190
+ <div class="wc_new_comment_and_replies">
191
+ <div class="wc_new_comment"><span class="wc_new_comment_button_text"></span></div>
192
+ <div class="wc_new_reply"><span class="wc_new_reply_button_text"></span></div>
193
+ <div style="clear:both"></div>
194
+ </div>
195
+ <div style="clear:both"></div>
196
+ <?php } ?>
197
  <?php } ?>
198
 
 
199
  <div class="wc-thread-wrapper">
200
  <?php
201
  $wc_wp_comments = $wc_core->get_wp_comments(1);
228
 
229
  <div style="clear:both"></div>
230
  <div class="by-wpdiscuz"><span id="awpdiscuz" onclick='javascript:document.getElementById("bywpdiscuz").style.display = "inline";
231
+ document.getElementById("awpdiscuz").style.display = "none";'><img src="<?php echo plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/files/img/plugin-icon/icon_info.png'); ?>" align="absmiddle" class="wpdimg"/></span>&nbsp;<a href="http://gvectors.com/wpdiscuz/" id="bywpdiscuz" title="wpDiscuz (<?php echo get_option($wc_core->wc_version_slug); ?>) - Interactive Comment System">wpDiscuz</a></div>
232
 
233
  <div id="wc_openModalFormAction" class="modalDialog">
234
  <div id="wc_response_info" class="wc_modal">
comment-form/tpl-comment.php CHANGED
@@ -26,12 +26,12 @@ class WC_Comment_Template_Builder {
26
  'b' => array(),
27
  'u' => array(),
28
  'strong' => array(),
29
- 'p' => array()
 
30
  ));
31
 
32
  $comment_content = $this->wc_helper->make_clickable($comment_content);
33
  $comment_content = apply_filters('comment_text', $comment_content);
34
- $comment_content = nl2br($comment_content);
35
 
36
  $vote_cls = '';
37
  $vote_title_text = '';
@@ -115,22 +115,23 @@ class WC_Comment_Template_Builder {
115
  $output .= '<span id="wc-up-' . $unique_id . '" class="wc-vote-link wc-up ' . $vote_cls . '" title="' . $vote_up . '">&and;</span> | <span id="wc-down-' . $unique_id . '" class="wc-vote-link wc-down ' . $vote_cls . '" title="' . $vote_down . '">&or;</span> &nbsp;&nbsp;';
116
  }
117
 
118
-
119
- if ($this->wc_options->wc_options_serialized->wc_user_must_be_registered) {
120
- if (!$this->wc_options->wc_options_serialized->wc_reply_button_members_show_hide && is_user_logged_in()) {
121
- $output .= '&nbsp;&nbsp;<span id="wc-comm-reply-' . $unique_id . '" class="wc-reply-link" title="' . $reply_text . '">' . $reply_text . '</span> &nbsp;&nbsp;';
122
- } else if ($this->is_user_can_reply_by_role('administrator')) {
123
- $output .= '&nbsp;&nbsp;<span id="wc-comm-reply-' . $unique_id . '" class="wc-reply-link" title="' . $reply_text . '">' . $reply_text . '</span> &nbsp;&nbsp;';
124
- }
125
- } else {
126
- if (!$this->wc_options->wc_options_serialized->wc_reply_button_members_show_hide && !$this->wc_options->wc_options_serialized->wc_reply_button_guests_show_hide) {
127
- $output .= '&nbsp;&nbsp;<span id="wc-comm-reply-' . $unique_id . '" class="wc-reply-link" title="' . $reply_text . '">' . $reply_text . '</span> &nbsp;&nbsp;';
128
- } else if (!$this->wc_options->wc_options_serialized->wc_reply_button_members_show_hide && is_user_logged_in()) {
129
- $output .= '&nbsp;&nbsp;<span id="wc-comm-reply-' . $unique_id . '" class="wc-reply-link" title="' . $reply_text . '">' . $reply_text . '</span> &nbsp;&nbsp;';
130
- } else if (!$this->wc_options->wc_options_serialized->wc_reply_button_guests_show_hide && !is_user_logged_in()) {
131
- $output .= '&nbsp;&nbsp;<span id="wc-comm-reply-' . $unique_id . '" class="wc-reply-link" title="' . $reply_text . '">' . $reply_text . '</span> &nbsp;&nbsp;';
132
- } else if ($this->is_user_can_reply_by_role('administrator')) {
133
- $output .= '&nbsp;&nbsp;<span id="wc-comm-reply-' . $unique_id . '" class="wc-reply-link" title="' . $reply_text . '">' . $reply_text . '</span> &nbsp;&nbsp;';
 
134
  }
135
  }
136
 
@@ -148,7 +149,7 @@ class WC_Comment_Template_Builder {
148
  }
149
 
150
  if (current_user_can('edit_comment', $comment->comment_ID)) {
151
- $output .= '-&nbsp;&nbsp; <a href="' . get_edit_comment_link($comment->comment_ID) . '">' . __('Edit', 'wpdiscuz') . '</a>';
152
  }
153
 
154
 
@@ -163,62 +164,75 @@ class WC_Comment_Template_Builder {
163
  $output .= '</div>';
164
  $output .= '<div style="clear:both"></div>';
165
 
166
- $output_form = '<div class="wc-form-wrapper wc-secondary-forms-wrapper" id="wc-secondary-forms-wrapper-' . $unique_id . '">';
167
- $output_form .= '<form action="" method="post" id="wc_comm_form-' . $unique_id . '" class="wc_comm_form wc_secondary_form">';
168
- $output_form .= '<div class="wc-field-comment"><div style="width:60px; float:left; position:absolute;">' . $this->wc_helper->get_comment_author_avatar() . '</div><div style="margin-left:65px;" class="item"><textarea id="wc_comment-' . $unique_id . '" class="wc_comment wc_field_input" name="wc_comment" required="required" placeholder="' . $textarea_placeholder . '"></textarea></div><div style="clear:both"></div></div>';
169
 
170
- $output_form .= '<div id="wc-form-footer-' . $unique_id . '" class="wc-form-footer">';
 
 
 
171
 
172
- if (!is_user_logged_in()) {
173
- $output_form .= '<div class="wc-author-data"><div class="wc-field-name item"><input id="wc_name-' . $unique_id . '" name="wc_name" class="wc_name wc_field_input" required="required" value="" type="text" placeholder="' . $this->wc_options->wc_options_serialized->wc_phrases['wc_name_text'] . '"/></div><div class="wc-field-email item"><input id="wc_email-' . $unique_id . '" class="wc_email wc_field_input email" name="wc_email" required="required" value="" type="email" placeholder="' . $this->wc_options->wc_options_serialized->wc_phrases['wc_email_text'] . '"/></div><div style="clear:both"></div></div>';
174
- }
175
 
176
- $output_form .= '<div class="wc-form-submit">';
177
-
178
- if (!$this->wc_options->wc_options_serialized->wc_captcha_show_hide) {
179
  if (!is_user_logged_in()) {
180
- $output_form .= '<div class="wc-field-captcha item">';
181
- $output_form .= '<input id="wc_captcha-' . $unique_id . '" class="wc_field_input wc_field_captcha" name="wc_captcha" required="required" value="" type="text" /><span class="wc-label wc-captcha-label">';
182
- $output_form .= '<img rel="nofollow" src="' . plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/captcha/captcha.php?comm_id=' . $comment->comment_post_ID . '-' . $comment->comment_ID) . '" id="wc_captcha_img-' . $unique_id . '" />';
183
- $output_form .= '<img rel="nofollow" src="' . plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/files/img/refresh-16x16.png') . '" id="wc_captcha_refresh_img-' . $unique_id . '" class="wc_captcha_refresh_img" />';
184
- $output_form .= '</span><span class="captcha_msg">' . $this->wc_options->wc_options_serialized->wc_phrases['wc_captcha_text'] . '</span></div>';
185
  }
186
- }
187
 
188
- $output_form .= '<div class="wc-field-submit"><input type="button" name="submit" value="' . $this->wc_options->wc_options_serialized->wc_phrases['wc_submit_text'] . '" id="wc_comm-' . $unique_id . '" class="wc_comm_submit button alt"/></div>';
189
- $output_form .= '<div style="clear:both"></div>';
190
- $output_form .= '<div class="wc_notification_checkboxes">';
191
 
192
- global $current_user;
193
- get_currentuserinfo();
194
- // $output_form .= $current_user->ID . ' - ' . $current_user->user_email . ' stugum : ' . $current_user->ID && $this->wc_db_helper->wc_has_post_notification($comment->comment_post_ID, $current_user->user_email);
 
 
 
 
 
 
195
 
196
- if ($current_user->ID && $this->wc_db_helper->wc_has_post_notification($comment->comment_post_ID, $current_user->user_email)) {
197
- $output_form .= '<label class="wc-label-comment-notify" style="cursor: default;">' . $this->wc_options->wc_options_serialized->wc_phrases['wc_subscribed_on_post'] . ' | <a href="' . $this->wc_db_helper->wc_unsubscribe_link($comment->comment_post_ID, $current_user->user_email, 'post') . '" rel="nofollow" class="unsubscribe">' . $this->wc_options->wc_options_serialized->wc_phrases['wc_unsubscribe'] . '</a></label>';
198
- } else {
199
- $wc_notification_state = ($this->wc_options->wc_options_serialized->wc_comment_reply_checkboxes_default_checked == 1) ? 'checked="checked" value="1"' : 'value="0"';
200
- if ($current_user->ID && $this->wc_db_helper->wc_has_comment_notification($comment->comment_post_ID, $comment->comment_ID, $current_user->user_email)) {
201
- $output_form .= '<label class="wc-label-reply-notify" style="cursor: default;">' . $this->wc_options->wc_options_serialized->wc_phrases['wc_subscribed_on_comment'] . ' | <a href="' . $this->wc_db_helper->wc_unsubscribe_link($comment->comment_ID, $current_user->user_email, 'comment') . '" rel="nofollow" class="unsubscribe">' . $this->wc_options->wc_options_serialized->wc_phrases['wc_unsubscribe'] . '</a></label><br/>';
202
- // echo 'subscribed reply';
203
- } else if ($this->wc_options->wc_options_serialized->wc_show_hide_reply_checkbox) {
204
- $output_form .= '<input class="wc-label-reply-notify wc_notification_new_reply" id="wc_notification_new_reply-' . $unique_id . '" ' . $wc_notification_state . ' type="checkbox" name="wc_notification_new_reply"/> <label class="wc-label-comment-notify" for="wc_notification_new_reply-' . $unique_id . '">' . $this->wc_options->wc_options_serialized->wc_phrases['wc_notify_on_new_reply'] . '</label><br />';
205
- // echo 'not subscribed reply';
206
  }
207
- if ($this->wc_options->wc_options_serialized->wc_show_hide_comment_checkbox) {
208
- $output_form .= '<input class="wc-label-comment-notify wc_notification_new_comment" id="wc_notification_new_comment-' . $unique_id . '" ' . $wc_notification_state . ' type="checkbox" name="wc_notification_new_comment"/> <label class="wc-label-comment-notify" for="wc_notification_new_comment-' . $unique_id . '">' . $this->wc_options->wc_options_serialized->wc_phrases['wc_notify_on_new_comment'] . '</label>';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
209
  }
210
- }
211
 
212
- $output_form .= '</div>';
213
- $output_form .= '</div>';
214
- $output_form .= '</div>';
215
 
216
- $output_form .= '<input type="hidden" name="wc_home_url" value="' . plugins_url() . '" id="wc_home_url-' . $unique_id . '" />';
217
- $output_form .= '<input type="hidden" name="wc_comment_post_ID" value="' . $comment->comment_post_ID . '" id="wc_comment_post_ID-' . $unique_id . '" />';
218
- $output_form .= '<input type="hidden" name="wc_comment_parent" value="' . $comment->comment_ID . '" id="wc_comment_parent-' . $unique_id . '" />';
219
 
220
- $output_form .= '</form>';
221
- $output_form .= '</div>';
 
222
 
223
  if ($this->wc_options->wc_options_serialized->wc_user_must_be_registered) {
224
  if (!$this->wc_options->wc_options_serialized->wc_reply_button_members_show_hide && is_user_logged_in()) {
26
  'b' => array(),
27
  'u' => array(),
28
  'strong' => array(),
29
+ 'p' => array(),
30
+ 'img' => array('src' => array(), 'width' => array(), 'height' => array(), 'alt' => array())
31
  ));
32
 
33
  $comment_content = $this->wc_helper->make_clickable($comment_content);
34
  $comment_content = apply_filters('comment_text', $comment_content);
 
35
 
36
  $vote_cls = '';
37
  $vote_title_text = '';
115
  $output .= '<span id="wc-up-' . $unique_id . '" class="wc-vote-link wc-up ' . $vote_cls . '" title="' . $vote_up . '">&and;</span> | <span id="wc-down-' . $unique_id . '" class="wc-vote-link wc-down ' . $vote_cls . '" title="' . $vote_down . '">&or;</span> &nbsp;&nbsp;';
116
  }
117
 
118
+ if (comments_open($comment->comment_post_ID)) {
119
+ if ($this->wc_options->wc_options_serialized->wc_user_must_be_registered) {
120
+ if (!$this->wc_options->wc_options_serialized->wc_reply_button_members_show_hide && is_user_logged_in()) {
121
+ $output .= '&nbsp;&nbsp;<span id="wc-comm-reply-' . $unique_id . '" class="wc-reply-link" title="' . $reply_text . '">' . $reply_text . '</span> &nbsp;&nbsp;';
122
+ } else if ($this->is_user_can_reply_by_role('administrator')) {
123
+ $output .= '&nbsp;&nbsp;<span id="wc-comm-reply-' . $unique_id . '" class="wc-reply-link" title="' . $reply_text . '">' . $reply_text . '</span> &nbsp;&nbsp;';
124
+ }
125
+ } else {
126
+ if (!$this->wc_options->wc_options_serialized->wc_reply_button_members_show_hide && !$this->wc_options->wc_options_serialized->wc_reply_button_guests_show_hide) {
127
+ $output .= '&nbsp;&nbsp;<span id="wc-comm-reply-' . $unique_id . '" class="wc-reply-link" title="' . $reply_text . '">' . $reply_text . '</span> &nbsp;&nbsp;';
128
+ } else if (!$this->wc_options->wc_options_serialized->wc_reply_button_members_show_hide && is_user_logged_in()) {
129
+ $output .= '&nbsp;&nbsp;<span id="wc-comm-reply-' . $unique_id . '" class="wc-reply-link" title="' . $reply_text . '">' . $reply_text . '</span> &nbsp;&nbsp;';
130
+ } else if (!$this->wc_options->wc_options_serialized->wc_reply_button_guests_show_hide && !is_user_logged_in()) {
131
+ $output .= '&nbsp;&nbsp;<span id="wc-comm-reply-' . $unique_id . '" class="wc-reply-link" title="' . $reply_text . '">' . $reply_text . '</span> &nbsp;&nbsp;';
132
+ } else if ($this->is_user_can_reply_by_role('administrator')) {
133
+ $output .= '&nbsp;&nbsp;<span id="wc-comm-reply-' . $unique_id . '" class="wc-reply-link" title="' . $reply_text . '">' . $reply_text . '</span> &nbsp;&nbsp;';
134
+ }
135
  }
136
  }
137
 
149
  }
150
 
151
  if (current_user_can('edit_comment', $comment->comment_ID)) {
152
+ $output .= '-&nbsp;&nbsp; <a href="' . get_edit_comment_link($comment->comment_ID) . '">' . __('Edit', WC_Core::$TEXT_DOMAIN) . '</a>';
153
  }
154
 
155
 
164
  $output .= '</div>';
165
  $output .= '<div style="clear:both"></div>';
166
 
167
+ $output_form = '';
 
 
168
 
169
+ if (comments_open($comment->comment_post_ID)) {
170
+ $output_form = '<div class="wc-form-wrapper wc-secondary-forms-wrapper" id="wc-secondary-forms-wrapper-' . $unique_id . '">';
171
+ $output_form .= '<form action="" method="post" id="wc_comm_form-' . $unique_id . '" class="wc_comm_form wc_secondary_form">';
172
+ $output_form .= '<div class="wc-field-comment"><div style="width:60px; float:left; position:absolute;">' . $this->wc_helper->get_comment_author_avatar() . '</div><div style="margin-left:65px;" class="item"><textarea id="wc_comment-' . $unique_id . '" class="wc_comment wc_field_input" name="wc_comment" required="required" placeholder="' . $textarea_placeholder . '"></textarea></div><div style="clear:both"></div></div>';
173
 
174
+ $output_form .= '<div id="wc-form-footer-' . $unique_id . '" class="wc-form-footer">';
 
 
175
 
 
 
 
176
  if (!is_user_logged_in()) {
177
+ $output_form .= '<div class="wc-author-data"><div class="wc-field-name item"><input id="wc_name-' . $unique_id . '" name="wc_name" class="wc_name wc_field_input" required="required" value="" type="text" placeholder="' . $this->wc_options->wc_options_serialized->wc_phrases['wc_name_text'] . '"/></div><div class="wc-field-email item"><input id="wc_email-' . $unique_id . '" class="wc_email wc_field_input email" name="wc_email" required="required" value="" type="email" placeholder="' . $this->wc_options->wc_options_serialized->wc_phrases['wc_email_text'] . '"/></div><div style="clear:both"></div></div>';
 
 
 
 
178
  }
 
179
 
180
+ $output_form .= '<div class="wc-form-submit">';
 
 
181
 
182
+ if (!$this->wc_options->wc_options_serialized->wc_captcha_show_hide) {
183
+ if (!is_user_logged_in()) {
184
+ $output_form .= '<div class="wc-field-captcha item">';
185
+ $output_form .= '<input id="wc_captcha-' . $unique_id . '" class="wc_field_input wc_field_captcha" name="wc_captcha" required="required" value="" type="text" /><span class="wc-label wc-captcha-label">';
186
+ $output_form .= '<img rel="nofollow" src="' . plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/captcha/captcha.php?comm_id=' . $comment->comment_post_ID . '-' . $comment->comment_ID) . '" id="wc_captcha_img-' . $unique_id . '" />';
187
+ $output_form .= '<img rel="nofollow" src="' . plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/files/img/refresh-16x16.png') . '" id="wc_captcha_refresh_img-' . $unique_id . '" class="wc_captcha_refresh_img" />';
188
+ $output_form .= '</span><span class="captcha_msg">' . $this->wc_options->wc_options_serialized->wc_phrases['wc_captcha_text'] . '</span></div>';
189
+ }
190
+ }
191
 
192
+ $output_form .= '<div class="wc-field-submit"><input type="button" name="submit" value="' . $this->wc_options->wc_options_serialized->wc_phrases['wc_submit_text'] . '" id="wc_comm-' . $unique_id . '" class="wc_comm_submit button alt"/></div>';
193
+ $output_form .= '<div style="clear:both"></div>';
194
+
195
+ if ($this->wc_options->wc_options_serialized->wc_show_hide_comment_checkbox || $this->wc_options->wc_options_serialized->wc_show_hide_reply_checkbox || $this->wc_options->wc_options_serialized->wc_show_hide_all_reply_checkbox) {
196
+ $output_form .= '<span class="wc_manage_subscribtions">' . $this->wc_options->wc_options_serialized->wc_phrases['wc_manage_subscribtions'] . '</span>';
 
 
 
 
 
197
  }
198
+
199
+ $output_form .= '<div class="wc_notification_checkboxes">';
200
+
201
+ global $current_user;
202
+ get_currentuserinfo();
203
+
204
+ if ($current_user->ID && $this->wc_db_helper->wc_has_post_notification($comment->comment_post_ID, $current_user->user_email)) {
205
+ $output_form .= '<label class="wc-label-comment-notify" style="cursor: default;">' . $this->wc_options->wc_options_serialized->wc_phrases['wc_subscribed_on_post'] . ' | <a href="' . $this->wc_db_helper->wc_unsubscribe_link($comment->comment_post_ID, $current_user->user_email, 'post') . '" rel="nofollow" class="unsubscribe">' . $this->wc_options->wc_options_serialized->wc_phrases['wc_unsubscribe'] . '</a></label>';
206
+ } else {
207
+ $wc_notification_state = ($this->wc_options->wc_options_serialized->wc_comment_reply_checkboxes_default_checked == 1) ? 'checked="checked" value="1"' : 'value="0"';
208
+ if ($current_user->ID && $this->wc_db_helper->wc_has_all_comments_notification($comment->comment_post_ID, $current_user->user_email) && $current_user->user_email == $comment->comment_author_email) {
209
+ $output_form .= '<label class="wc-label-all-reply-notify" style="cursor: default;">' . $this->wc_options->wc_options_serialized->wc_phrases['wc_subscribed_on_all_comment'] . ' | <a href="' . $this->wc_db_helper->wc_unsubscribe_link($comment->comment_post_ID, $current_user->user_email, 'all_comment') . '" rel="nofollow" class="unsubscribe">' . $this->wc_options->wc_options_serialized->wc_phrases['wc_unsubscribe'] . '</a></label><br/>';
210
+ } else {
211
+ if ($current_user->ID && $this->wc_db_helper->wc_has_comment_notification($comment->comment_post_ID, $comment->comment_ID, $current_user->user_email) && $current_user->user_email == $comment->comment_author_email) {
212
+ $output_form .= '<label class="wc-label-reply-notify" style="cursor: default;">' . $this->wc_options->wc_options_serialized->wc_phrases['wc_subscribed_on_comment'] . ' | <a href="' . $this->wc_db_helper->wc_unsubscribe_link($comment->comment_ID, $current_user->user_email, 'comment') . '" rel="nofollow" class="unsubscribe">' . $this->wc_options->wc_options_serialized->wc_phrases['wc_unsubscribe'] . '</a></label><br/>';
213
+ } else if ($this->wc_options->wc_options_serialized->wc_show_hide_reply_checkbox) {
214
+ $output_form .= '<input class="wc-label-reply-notify wc_notification_new_reply" id="wc_notification_new_reply-' . $unique_id . '" ' . $wc_notification_state . ' type="checkbox" name="wc_notification_new_reply"/> <label class="wc-label-comment-notify" for="wc_notification_new_reply-' . $unique_id . '">' . $this->wc_options->wc_options_serialized->wc_phrases['wc_notify_on_new_reply'] . '</label><br />';
215
+ }
216
+ if ($this->wc_options->wc_options_serialized->wc_show_hide_all_reply_checkbox) {
217
+ $output_form .= '<input id="wc_notification_all_new_reply-' . $unique_id . '" class="wc_notification_all_new_reply" ' . $wc_notification_state . ' type="checkbox" name="wc_notification_all_new_reply"/> <label class="wc-label-all-reply-notify" for="wc_notification_all_new_reply-' . $unique_id . '">' . $this->wc_options->wc_options_serialized->wc_phrases['wc_notify_on_all_new_reply'] . '</label><br />';
218
+ }
219
+ }
220
+ if ($this->wc_options->wc_options_serialized->wc_show_hide_comment_checkbox) {
221
+ $output_form .= '<input class="wc-label-comment-notify wc_notification_new_comment" id="wc_notification_new_comment-' . $unique_id . '" ' . $wc_notification_state . ' type="checkbox" name="wc_notification_new_comment"/> <label class="wc-label-comment-notify" for="wc_notification_new_comment-' . $unique_id . '">' . $this->wc_options->wc_options_serialized->wc_phrases['wc_notify_on_new_comment'] . '</label>';
222
+ }
223
  }
 
224
 
225
+ $output_form .= '</div>';
226
+ $output_form .= '</div>';
227
+ $output_form .= '</div>';
228
 
229
+ $output_form .= '<input type="hidden" name="wc_home_url" value="' . plugins_url() . '" id="wc_home_url-' . $unique_id . '" />';
230
+ $output_form .= '<input type="hidden" name="wc_comment_post_ID" value="' . $comment->comment_post_ID . '" id="wc_comment_post_ID-' . $unique_id . '" />';
231
+ $output_form .= '<input type="hidden" name="wc_comment_parent" value="' . $comment->comment_ID . '" id="wc_comment_parent-' . $unique_id . '" />';
232
 
233
+ $output_form .= '</form>';
234
+ $output_form .= '</div>';
235
+ }
236
 
237
  if ($this->wc_options->wc_options_serialized->wc_user_must_be_registered) {
238
  if (!$this->wc_options->wc_options_serialized->wc_reply_button_members_show_hide && is_user_logged_in()) {
files/js/wc-ajax.js CHANGED
@@ -15,6 +15,7 @@ jQuery(document).ready(function ($) {
15
  var wc_comment_list_update_type = parseInt($('#wc_comment_list_update_type').val());
16
  var wc_comment_list_update_timer = parseInt($('#wc_comment_list_update_timer').val());
17
  var wc_notification_new_comment;
 
18
  var wc_notification_new_reply;
19
  var wc_all_comments_count_new;
20
 
@@ -63,6 +64,7 @@ jQuery(document).ready(function ($) {
63
  wc_comment_parent = $('#wc_comment_parent-' + uniqueID).val();
64
  wc_form = $('#wc_comm_form-' + uniqueID);
65
  wc_notification_new_comment = parseInt($('#wc_notification_new_comment-' + uniqueID).val());
 
66
  wc_notification_new_reply = parseInt($('#wc_notification_new_reply-' + uniqueID).val());
67
 
68
  var depth = '';
@@ -74,7 +76,7 @@ jQuery(document).ready(function ($) {
74
 
75
 
76
  var notification_type = '';
77
- if ($('.wc_notification_new_comment').length || $('.wc_notification_new_reply').length) {
78
  //var wc_comment_reply_checkboxes_default_checked = $('#wc_comment_reply_checkboxes_default_checked').val();
79
  if (wc_notification_new_reply !== 0) {
80
  notification_type = 'reply';
@@ -82,6 +84,12 @@ jQuery(document).ready(function ($) {
82
  $('#wc_notification_new_reply-' + uniqueID).val('0').prop("checked", false);
83
  // }
84
  }
 
 
 
 
 
 
85
  if (wc_notification_new_comment !== 0) {
86
  notification_type = 'post';
87
  //if (wc_comment_reply_checkboxes_default_checked == 0) {
15
  var wc_comment_list_update_type = parseInt($('#wc_comment_list_update_type').val());
16
  var wc_comment_list_update_timer = parseInt($('#wc_comment_list_update_timer').val());
17
  var wc_notification_new_comment;
18
+ var wc_notification_all_new_reply;
19
  var wc_notification_new_reply;
20
  var wc_all_comments_count_new;
21
 
64
  wc_comment_parent = $('#wc_comment_parent-' + uniqueID).val();
65
  wc_form = $('#wc_comm_form-' + uniqueID);
66
  wc_notification_new_comment = parseInt($('#wc_notification_new_comment-' + uniqueID).val());
67
+ wc_notification_all_new_reply = parseInt($('#wc_notification_all_new_reply-' + uniqueID).val());
68
  wc_notification_new_reply = parseInt($('#wc_notification_new_reply-' + uniqueID).val());
69
 
70
  var depth = '';
76
 
77
 
78
  var notification_type = '';
79
+ if ($('.wc_notification_new_comment').length || $('.wc_notification_all_new_reply').length || $('.wc_notification_new_reply').length) {
80
  //var wc_comment_reply_checkboxes_default_checked = $('#wc_comment_reply_checkboxes_default_checked').val();
81
  if (wc_notification_new_reply !== 0) {
82
  notification_type = 'reply';
84
  $('#wc_notification_new_reply-' + uniqueID).val('0').prop("checked", false);
85
  // }
86
  }
87
+
88
+ if (wc_notification_all_new_reply !== 0) {
89
+ notification_type = 'all_comment';
90
+ $('#wc_notification_all_new_reply-' + uniqueID).val('0').prop("checked", false);
91
+ }
92
+
93
  if (wc_notification_new_comment !== 0) {
94
  notification_type = 'post';
95
  //if (wc_comment_reply_checkboxes_default_checked == 0) {
files/js/wc-frontend.js CHANGED
@@ -7,6 +7,14 @@ jQuery(document).ready(function ($) {
7
  }
8
  });
9
 
 
 
 
 
 
 
 
 
10
  $(document).delegate('.wc_notification_new_reply', 'change', function () {
11
  if ($(this).is(':checked')) {
12
  $(this).val('1');
@@ -14,4 +22,8 @@ jQuery(document).ready(function ($) {
14
  $(this).val('0');
15
  }
16
  });
 
 
 
 
17
  });
7
  }
8
  });
9
 
10
+ $(document).delegate('.wc_notification_all_new_reply', 'change', function () {
11
+ if ($(this).is(':checked')) {
12
+ $(this).val('1');
13
+ } else {
14
+ $(this).val('0');
15
+ }
16
+ });
17
+
18
  $(document).delegate('.wc_notification_new_reply', 'change', function () {
19
  if ($(this).is(':checked')) {
20
  $(this).val('1');
22
  $(this).val('0');
23
  }
24
  });
25
+
26
+ $(document).delegate('.wc_manage_subscribtions', 'click', function () {
27
+ $(this).next('.wc_notification_checkboxes').slideToggle(700);
28
+ });
29
  });
helper/wc-helper.php CHANGED
@@ -226,16 +226,18 @@ class WC_Helper {
226
  $email = $matches[2] . '@' . $matches[3];
227
  return $matches[1] . "<a href=\"mailto:$email\">$email</a>";
228
  }
229
-
230
- public function make_clickable($ret) {
231
  $ret = ' ' . $ret;
 
232
  // in testing, using arrays here was found to be faster
233
  $ret = preg_replace_callback('#([\s>])([\w]+?://[\w\\x80-\\xff\#$%&~/.\-;:=,?@\[\]+]*)#is', array(&$this, 'make_url_clickable'), $ret);
234
  $ret = preg_replace_callback('#([\s>])((www|ftp)\.[\w\\x80-\\xff\#$%&~/.\-;:=,?@\[\]+]*)#is', array(&$this, 'make_web_ftp_clickable'), $ret);
235
  $ret = preg_replace_callback('#([\s>])([.0-9a-z_+-]+)@(([0-9a-z-]+\.)+[0-9a-z]{2,})#i', array(&$this, 'make_email_clickable'), $ret);
236
-
237
  // this one is not in an array because we need it to run last, for cleanup of accidental links within links
238
  $ret = preg_replace("#(<a( [^>]+?>|>))<a [^>]+?>([^>]+?)</a></a>#i", "$1$3</a>", $ret);
 
239
  $ret = trim($ret);
240
  return $ret;
241
  }
226
  $email = $matches[2] . '@' . $matches[3];
227
  return $matches[1] . "<a href=\"mailto:$email\">$email</a>";
228
  }
229
+
230
+ public function make_clickable($ret) {
231
  $ret = ' ' . $ret;
232
+ $ret = preg_replace('#[^\"|\'](https?:\/\/[^\s]+(\.jpe?g|\.png|\.gif|\.bmp))#i', '<a href="$1"><img src="$1" /></a>', $ret);
233
  // in testing, using arrays here was found to be faster
234
  $ret = preg_replace_callback('#([\s>])([\w]+?://[\w\\x80-\\xff\#$%&~/.\-;:=,?@\[\]+]*)#is', array(&$this, 'make_url_clickable'), $ret);
235
  $ret = preg_replace_callback('#([\s>])((www|ftp)\.[\w\\x80-\\xff\#$%&~/.\-;:=,?@\[\]+]*)#is', array(&$this, 'make_web_ftp_clickable'), $ret);
236
  $ret = preg_replace_callback('#([\s>])([.0-9a-z_+-]+)@(([0-9a-z-]+\.)+[0-9a-z]{2,})#i', array(&$this, 'make_email_clickable'), $ret);
237
+
238
  // this one is not in an array because we need it to run last, for cleanup of accidental links within links
239
  $ret = preg_replace("#(<a( [^>]+?>|>))<a [^>]+?>([^>]+?)</a></a>#i", "$1$3</a>", $ret);
240
+
241
  $ret = trim($ret);
242
  return $ret;
243
  }
includes/wc-db-helper.php CHANGED
@@ -218,10 +218,13 @@ class WC_DB_Helper {
218
  }
219
 
220
  public function wc_add_email_notification($id, $post_id, $email, $is_all) {
221
- if ($is_all) {
222
  $subscribtion_type = 'post';
223
  $this->wc_delete_comment_notifications($id, $email);
224
- } else {
 
 
 
225
  $subscribtion_type = 'comment';
226
  }
227
  $activation_key = md5($email . uniqid() . time());
@@ -234,19 +237,31 @@ class WC_DB_Helper {
234
  return $this->db->get_results($sql, ARRAY_A);
235
  }
236
 
 
 
 
 
 
237
  public function wc_get_post_new_reply_notification($comment_id, $email) {
238
  $sql = $this->db->prepare("SELECT `id`,`email`,`activation_key` FROM `" . $this->email_notification . "` WHERE `subscribtion_type` = 'comment' AND `subscribtion_id` = %d AND `email` != %s;", $comment_id, $email);
239
  return $this->db->get_results($sql, ARRAY_A);
240
  }
241
 
242
  public function wc_has_post_notification($post_id, $email) {
243
- $sql = $this->db->prepare("SELECT `id` FROM `" . $this->email_notification . "` WHERE `subscribtion_type` = 'post' AND `subscribtion_id` = %d AND `email` = %s", $post_id, $email);
 
 
 
 
 
 
 
244
  $result = $this->db->get_results($sql, ARRAY_N);
245
  return count($result);
246
  }
247
 
248
  public function wc_has_comment_notification($post_id, $comment_id, $email) {
249
- $sql_comments_notifications = $this->db->prepare("SELECT count(*) FROM `" . $this->email_notification . "` WHERE `email` LIKE %s AND `subscribtion_type` LIKE 'post' AND `subscribtion_id` = %d", $email, $post_id);
250
  if ($this->db->get_var($sql_comments_notifications)) {
251
  return 1;
252
  }
@@ -260,10 +275,11 @@ class WC_DB_Helper {
260
  * delete comment thread subscribtions if new subscribtion type is post
261
  */
262
  public function wc_delete_comment_notifications($post_id, $email) {
263
- $sql_delete_comment_notifications = $this->db->prepare("DELETE FROM `" . $this->email_notification . "` WHERE `subscribtion_type` = 'comment' AND `post_id` = %d AND `email` LIKE %s;", $post_id, $email);
 
264
  $this->db->query($sql_delete_comment_notifications);
265
  }
266
-
267
  /**
268
  * create unsubscribe link
269
  */
@@ -271,11 +287,11 @@ class WC_DB_Helper {
271
  $sql_subscriber_data = $this->db->prepare("SELECT `id`, `post_id`, `activation_key` FROM `" . $this->email_notification . "` WHERE `subscribtion_type` = %s AND `subscribtion_id` = %d AND `email` LIKE %s", $subscribtion_type, $id, $email);
272
  $wc_unsubscribe = $this->db->get_row($sql_subscriber_data, ARRAY_A);
273
  $post_id = $wc_unsubscribe['post_id'];
274
-
275
  $wc_unsubscribe_link = get_permalink($post_id) . "?wpdiscuzSubscribeID=" . $wc_unsubscribe['id'] . "&key=" . $wc_unsubscribe['activation_key'] . '&#wc_unsubscribe_message';
276
  return $wc_unsubscribe_link;
277
  }
278
-
279
  /**
280
  * delete subscribtion
281
  */
218
  }
219
 
220
  public function wc_add_email_notification($id, $post_id, $email, $is_all) {
221
+ if ($is_all == 1) {
222
  $subscribtion_type = 'post';
223
  $this->wc_delete_comment_notifications($id, $email);
224
+ } else if ($is_all == 2) {
225
+ $subscribtion_type = 'all_comment';
226
+ $this->wc_delete_comment_notifications($id, $email);
227
+ } else if ($is_all == 3) {
228
  $subscribtion_type = 'comment';
229
  }
230
  $activation_key = md5($email . uniqid() . time());
237
  return $this->db->get_results($sql, ARRAY_A);
238
  }
239
 
240
+ public function wc_get_post_all_new_comment_notification($post_id, $email) {
241
+ $sql = $this->db->prepare("SELECT `id`,`email`,`activation_key` FROM `" . $this->email_notification . "` WHERE `subscribtion_type` = 'all_comment' AND `subscribtion_id` = %d AND `email` = %s;", $post_id, $email);
242
+ return $this->db->get_results($sql, ARRAY_A);
243
+ }
244
+
245
  public function wc_get_post_new_reply_notification($comment_id, $email) {
246
  $sql = $this->db->prepare("SELECT `id`,`email`,`activation_key` FROM `" . $this->email_notification . "` WHERE `subscribtion_type` = 'comment' AND `subscribtion_id` = %d AND `email` != %s;", $comment_id, $email);
247
  return $this->db->get_results($sql, ARRAY_A);
248
  }
249
 
250
  public function wc_has_post_notification($post_id, $email) {
251
+ $sql = $this->db->prepare("SELECT `id` FROM `" . $this->email_notification . "` WHERE `subscribtion_type` = 'post' AND `subscribtion_id` = %d AND `email` = %s", $post_id, $email);
252
+ $result = $this->db->get_results($sql, ARRAY_N);
253
+ return count($result);
254
+ }
255
+
256
+ public function wc_has_all_comments_notification($post_id, $email) {
257
+ $sql = $this->db->prepare("SELECT `id` FROM `" . $this->email_notification . "` WHERE `subscribtion_type` IN('post', 'all_comment') AND `subscribtion_id` = %d AND `email` = %s", $post_id, $email);
258
+ // echo $sql;
259
  $result = $this->db->get_results($sql, ARRAY_N);
260
  return count($result);
261
  }
262
 
263
  public function wc_has_comment_notification($post_id, $comment_id, $email) {
264
+ $sql_comments_notifications = $this->db->prepare("SELECT count(*) FROM `" . $this->email_notification . "` WHERE `email` LIKE %s AND `subscribtion_type` IN('post', 'all_comment') AND `subscribtion_id` = %d", $email, $post_id);
265
  if ($this->db->get_var($sql_comments_notifications)) {
266
  return 1;
267
  }
275
  * delete comment thread subscribtions if new subscribtion type is post
276
  */
277
  public function wc_delete_comment_notifications($post_id, $email) {
278
+ $sql_delete_comment_notifications = $this->db->prepare("DELETE FROM `" . $this->email_notification . "` WHERE `subscribtion_type` != 'post' AND `post_id` = %d AND `email` LIKE %s;", $post_id, $email);
279
+ // exit($sql_delete_comment_notifications);
280
  $this->db->query($sql_delete_comment_notifications);
281
  }
282
+
283
  /**
284
  * create unsubscribe link
285
  */
287
  $sql_subscriber_data = $this->db->prepare("SELECT `id`, `post_id`, `activation_key` FROM `" . $this->email_notification . "` WHERE `subscribtion_type` = %s AND `subscribtion_id` = %d AND `email` LIKE %s", $subscribtion_type, $id, $email);
288
  $wc_unsubscribe = $this->db->get_row($sql_subscriber_data, ARRAY_A);
289
  $post_id = $wc_unsubscribe['post_id'];
290
+
291
  $wc_unsubscribe_link = get_permalink($post_id) . "?wpdiscuzSubscribeID=" . $wc_unsubscribe['id'] . "&key=" . $wc_unsubscribe['activation_key'] . '&#wc_unsubscribe_message';
292
  return $wc_unsubscribe_link;
293
  }
294
+
295
  /**
296
  * delete subscribtion
297
  */
languages/wpdiscuz-en.mo ADDED
Binary file
languages/wpdiscuz-en.po ADDED
@@ -0,0 +1,570 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: wpDiscuz - Wordpress Comments\n"
4
+ "POT-Creation-Date: 2015-02-08 00:36+0400\n"
5
+ "PO-Revision-Date: 2015-02-08 00:40+0400\n"
6
+ "Last-Translator: advancedcoding <advancedcoding@mail.ru>\n"
7
+ "Language-Team: advancedcoding <advancedcoding@mail.ru>\n"
8
+ "Language: en\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Generator: Poedit 1.7.4\n"
13
+ "X-Poedit-Basepath: ..\n"
14
+ "X-Poedit-SourceCharset: UTF-8\n"
15
+ "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;"
16
+ "esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;"
17
+ "_n_noop:1,2;_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
18
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+ "X-Poedit-SearchPathExcluded-0: *.js\n"
21
+
22
+ #: comment-form/tpl-comment.php:152
23
+ msgid "Edit"
24
+ msgstr ""
25
+
26
+ #: options-templates/options-template-main.php:1
27
+ msgid "General settings"
28
+ msgstr ""
29
+
30
+ #: options-templates/options-template-main.php:5
31
+ msgid "Display comment form for post types:"
32
+ msgstr ""
33
+
34
+ #: options-templates/options-template-main.php:26
35
+ msgid "Show the latest comments on"
36
+ msgstr ""
37
+
38
+ #: options-templates/options-template-main.php:30
39
+ msgid "the top of the list"
40
+ msgstr ""
41
+
42
+ #: options-templates/options-template-main.php:32
43
+ msgid "top of the threads"
44
+ msgstr ""
45
+
46
+ #: options-templates/options-template-main.php:34
47
+ msgid "bottom of the threads"
48
+ msgstr ""
49
+
50
+ #: options-templates/options-template-main.php:36
51
+ msgid "the bottom of the list"
52
+ msgstr ""
53
+
54
+ #: options-templates/options-template-main.php:44
55
+ msgid "Live update options"
56
+ msgstr ""
57
+
58
+ #: options-templates/options-template-main.php:50
59
+ msgid "Never update"
60
+ msgstr ""
61
+
62
+ #: options-templates/options-template-main.php:52
63
+ msgid "Turn off \"Live Update\" function"
64
+ msgstr ""
65
+
66
+ #: options-templates/options-template-main.php:54
67
+ msgid "Show new comment/reply buttons to update manualy"
68
+ msgstr ""
69
+
70
+ #: options-templates/options-template-main.php:56
71
+ msgid "Always check for new comments and show update buttons"
72
+ msgstr ""
73
+
74
+ #: options-templates/options-template-main.php:58
75
+ msgid "Always update"
76
+ msgstr ""
77
+
78
+ #: options-templates/options-template-main.php:60
79
+ msgid "Always check for new comments and update automatically"
80
+ msgstr ""
81
+
82
+ #: options-templates/options-template-main.php:68
83
+ msgid "Update comment list every"
84
+ msgstr ""
85
+
86
+ #: options-templates/options-template-main.php:73
87
+ #: options-templates/options-template-main.php:74
88
+ #: options-templates/options-template-main.php:75
89
+ msgid "Seconds"
90
+ msgstr ""
91
+
92
+ #: options-templates/options-template-main.php:76
93
+ #: options-templates/options-template-phrases.php:459
94
+ msgid "Minute"
95
+ msgstr ""
96
+
97
+ #: options-templates/options-template-main.php:77
98
+ #: options-templates/options-template-main.php:78
99
+ #: options-templates/options-template-main.php:79
100
+ msgid "Minutes"
101
+ msgstr ""
102
+
103
+ #: options-templates/options-template-main.php:86
104
+ msgid "Hide Voting buttons"
105
+ msgstr ""
106
+
107
+ #: options-templates/options-template-main.php:97
108
+ msgid "Hide Share Button"
109
+ msgstr ""
110
+
111
+ #: options-templates/options-template-main.php:108
112
+ msgid "Hide the CAPTCHA field"
113
+ msgstr ""
114
+
115
+ #: options-templates/options-template-main.php:119
116
+ msgid "User Must be registered to comment"
117
+ msgstr ""
118
+
119
+ #: options-templates/options-template-main.php:137
120
+ msgid "Show logged-in user username on top of main form"
121
+ msgstr ""
122
+
123
+ #: options-templates/options-template-main.php:148
124
+ msgid "Held new comments for moderation"
125
+ msgstr ""
126
+
127
+ #: options-templates/options-template-main.php:159
128
+ msgid "Hide Reply button for Guests"
129
+ msgstr ""
130
+
131
+ #: options-templates/options-template-main.php:170
132
+ msgid "Hide Reply button for Members"
133
+ msgstr ""
134
+
135
+ #: options-templates/options-template-main.php:181
136
+ msgid "Hide Author Titles"
137
+ msgstr ""
138
+
139
+ #: options-templates/options-template-main.php:192
140
+ msgid "Comment Threads Per Page"
141
+ msgstr ""
142
+
143
+ #: options-templates/options-template-main.php:203
144
+ msgid "Comments max depth"
145
+ msgstr ""
146
+
147
+ #: options-templates/options-template-main.php:208
148
+ msgid "Level"
149
+ msgstr ""
150
+
151
+ #: options-templates/options-template-main.php:209
152
+ #: options-templates/options-template-main.php:210
153
+ #: options-templates/options-template-main.php:211
154
+ #: options-templates/options-template-main.php:212
155
+ msgid "Levels"
156
+ msgstr ""
157
+
158
+ #: options-templates/options-template-main.php:219
159
+ msgid "Use WordPress Date/Time format"
160
+ msgstr ""
161
+
162
+ #: options-templates/options-template-main.php:220
163
+ msgid ""
164
+ "wpDiscuz shows Human Readable date format. If you check this option it'll "
165
+ "show the date/time format set in WordPress General Settings."
166
+ msgstr ""
167
+
168
+ #: options-templates/options-template-main.php:231
169
+ msgid ""
170
+ "Keep checked-on the email notification checkboxes on comment form by default"
171
+ msgstr ""
172
+
173
+ #: options-templates/options-template-main.php:242
174
+ msgid "Show \"Notify of all new follow-up comments\""
175
+ msgstr ""
176
+
177
+ #: options-templates/options-template-main.php:243
178
+ msgid "Show \"Notify of new replies to all my comments\""
179
+ msgstr ""
180
+
181
+ #: options-templates/options-template-main.php:244
182
+ msgid "Show \"Notify of new replies to this comment\""
183
+ msgstr ""
184
+
185
+ #: options-templates/options-template-main.php:246
186
+ msgid ""
187
+ "Please keep all three or at least one of those options ON, otherwise users "
188
+ "will not have any option for email notifications and they'll not get any "
189
+ "messages."
190
+ msgstr ""
191
+
192
+ #: options-templates/options-template-main.php:264
193
+ msgid "Comment text size in pixels"
194
+ msgstr ""
195
+
196
+ #: options-templates/options-template-main.php:280
197
+ msgid "Comment Form Background Color"
198
+ msgstr ""
199
+
200
+ #: options-templates/options-template-main.php:283
201
+ #: options-templates/options-template-main.php:307
202
+ #: options-templates/options-template-main.php:331
203
+ #: options-templates/options-template-main.php:355
204
+ #: options-templates/options-template-main.php:380
205
+ #: options-templates/options-template-main.php:405
206
+ #: options-templates/options-template-main.php:429
207
+ msgid "Example: #00ff00"
208
+ msgstr ""
209
+
210
+ #: options-templates/options-template-main.php:304
211
+ msgid "Comment Background Color"
212
+ msgstr ""
213
+
214
+ #: options-templates/options-template-main.php:328
215
+ msgid "Reply Background Color"
216
+ msgstr ""
217
+
218
+ #: options-templates/options-template-main.php:352
219
+ msgid "Comment Text Color"
220
+ msgstr ""
221
+
222
+ #: options-templates/options-template-main.php:377
223
+ msgid "Author title color"
224
+ msgstr ""
225
+
226
+ #: options-templates/options-template-main.php:402
227
+ msgid "Vote, Reply, Share, Edit links text colors"
228
+ msgstr ""
229
+
230
+ #: options-templates/options-template-main.php:426
231
+ msgid "New loaded comments' background color"
232
+ msgstr ""
233
+
234
+ #: options-templates/options-template-main.php:450
235
+ msgid "Custom CSS Code"
236
+ msgstr ""
237
+
238
+ #: options-templates/options-template-phrases.php:1
239
+ msgid "Front-end phrases"
240
+ msgstr ""
241
+
242
+ #: options-templates/options-template-phrases.php:5
243
+ msgid "Leave a Reply"
244
+ msgstr ""
245
+
246
+ #: options-templates/options-template-phrases.php:16
247
+ msgid "Be the first to comment"
248
+ msgstr ""
249
+
250
+ #: options-templates/options-template-phrases.php:27
251
+ msgid "Comment"
252
+ msgstr ""
253
+
254
+ #: options-templates/options-template-phrases.php:38
255
+ msgid "On"
256
+ msgstr ""
257
+
258
+ #: options-templates/options-template-phrases.php:49
259
+ msgid "Comment Field Start"
260
+ msgstr ""
261
+
262
+ #: options-templates/options-template-phrases.php:60
263
+ msgid "Comment Field Join"
264
+ msgstr ""
265
+
266
+ #: options-templates/options-template-phrases.php:71
267
+ msgid "Email Field"
268
+ msgstr ""
269
+
270
+ #: options-templates/options-template-phrases.php:82
271
+ msgid "Name Field"
272
+ msgstr ""
273
+
274
+ #: options-templates/options-template-phrases.php:93
275
+ msgid "CAPTCHA Field"
276
+ msgstr ""
277
+
278
+ #: options-templates/options-template-phrases.php:104
279
+ msgid "Submit Button"
280
+ msgstr ""
281
+
282
+ #: options-templates/options-template-phrases.php:115
283
+ msgid "Manage subscribtions"
284
+ msgstr ""
285
+
286
+ #: options-templates/options-template-phrases.php:119
287
+ msgid "Manage Subscribtions"
288
+ msgstr ""
289
+
290
+ #: options-templates/options-template-phrases.php:126
291
+ msgid "Notify on new comments (checkbox)"
292
+ msgstr ""
293
+
294
+ #: options-templates/options-template-phrases.php:130
295
+ msgid "Notify of all new follow-up comments"
296
+ msgstr ""
297
+
298
+ #: options-templates/options-template-phrases.php:137
299
+ msgid "Notify on all new replies (checkbox)"
300
+ msgstr ""
301
+
302
+ #: options-templates/options-template-phrases.php:141
303
+ msgid "Notify of new replies to all my comments"
304
+ msgstr ""
305
+
306
+ #: options-templates/options-template-phrases.php:148
307
+ msgid "Notify on new replies (checkbox)"
308
+ msgstr ""
309
+
310
+ #: options-templates/options-template-phrases.php:152
311
+ msgid "Notify of new replies to this comment"
312
+ msgstr ""
313
+
314
+ #: options-templates/options-template-phrases.php:159
315
+ msgid "Load More Button"
316
+ msgstr ""
317
+
318
+ #: options-templates/options-template-phrases.php:170
319
+ msgid "Reply"
320
+ msgstr ""
321
+
322
+ #: options-templates/options-template-phrases.php:181
323
+ msgid "Share"
324
+ msgstr ""
325
+
326
+ #: options-templates/options-template-phrases.php:192
327
+ msgid "Share On Facebook"
328
+ msgstr ""
329
+
330
+ #: options-templates/options-template-phrases.php:203
331
+ msgid "Share On Twitter"
332
+ msgstr ""
333
+
334
+ #: options-templates/options-template-phrases.php:214
335
+ msgid "Share On Google"
336
+ msgstr ""
337
+
338
+ #: options-templates/options-template-phrases.php:225
339
+ msgid "Hide Replies"
340
+ msgstr ""
341
+
342
+ #: options-templates/options-template-phrases.php:236
343
+ msgid "Show Replies"
344
+ msgstr ""
345
+
346
+ #: options-templates/options-template-phrases.php:247
347
+ msgid "Title For Guests"
348
+ msgstr ""
349
+
350
+ #: options-templates/options-template-phrases.php:258
351
+ msgid "Title For Members"
352
+ msgstr ""
353
+
354
+ #: options-templates/options-template-phrases.php:272
355
+ msgid "Title For Authors"
356
+ msgstr ""
357
+
358
+ #: options-templates/options-template-phrases.php:283
359
+ msgid "Title For Admins"
360
+ msgstr ""
361
+
362
+ #: options-templates/options-template-phrases.php:294
363
+ msgid "Email Subject"
364
+ msgstr ""
365
+
366
+ #: options-templates/options-template-phrases.php:305
367
+ msgid "Email Message"
368
+ msgstr ""
369
+
370
+ #: options-templates/options-template-phrases.php:316
371
+ msgid "New Reply Subject"
372
+ msgstr ""
373
+
374
+ #: options-templates/options-template-phrases.php:320
375
+ #: options-templates/options-template-phrases.php:719
376
+ msgid "New Reply"
377
+ msgstr ""
378
+
379
+ #: options-templates/options-template-phrases.php:327
380
+ #: options-templates/options-template-phrases.php:371
381
+ msgid "New Reply Message"
382
+ msgstr ""
383
+
384
+ #: options-templates/options-template-phrases.php:338
385
+ msgid "Subscribed on this comment replies"
386
+ msgstr ""
387
+
388
+ #: options-templates/options-template-phrases.php:349
389
+ msgid "Subscribed on all your comments replies"
390
+ msgstr ""
391
+
392
+ #: options-templates/options-template-phrases.php:360
393
+ msgid "Subscribed on this post"
394
+ msgstr ""
395
+
396
+ #: options-templates/options-template-phrases.php:375
397
+ msgid "Unsubscribe"
398
+ msgstr ""
399
+
400
+ #: options-templates/options-template-phrases.php:382
401
+ msgid "You've successfully unsubscribed."
402
+ msgstr ""
403
+
404
+ #: options-templates/options-template-phrases.php:393
405
+ msgid "Error message for empty field"
406
+ msgstr ""
407
+
408
+ #: options-templates/options-template-phrases.php:404
409
+ msgid "Error message for invalid email field"
410
+ msgstr ""
411
+
412
+ #: options-templates/options-template-phrases.php:415
413
+ msgid "Year"
414
+ msgstr ""
415
+
416
+ #: options-templates/options-template-phrases.php:426
417
+ msgid "Month"
418
+ msgstr ""
419
+
420
+ #: options-templates/options-template-phrases.php:437
421
+ msgid "Day"
422
+ msgstr ""
423
+
424
+ #: options-templates/options-template-phrases.php:448
425
+ msgid "Hour"
426
+ msgstr ""
427
+
428
+ #: options-templates/options-template-phrases.php:470
429
+ msgid "Second"
430
+ msgstr ""
431
+
432
+ #: options-templates/options-template-phrases.php:481
433
+ msgid "Plural (Ex. user -> user + s)"
434
+ msgstr ""
435
+
436
+ #: options-templates/options-template-phrases.php:492
437
+ msgid "Commented \"right now\" text"
438
+ msgstr ""
439
+
440
+ #: options-templates/options-template-phrases.php:503
441
+ msgid "Ago text"
442
+ msgstr ""
443
+
444
+ #: options-templates/options-template-phrases.php:514
445
+ msgid "\"Today\" text"
446
+ msgstr ""
447
+
448
+ #: options-templates/options-template-phrases.php:518
449
+ msgid "Today"
450
+ msgstr ""
451
+
452
+ #: options-templates/options-template-phrases.php:525
453
+ msgid "You must be"
454
+ msgstr ""
455
+
456
+ #: options-templates/options-template-phrases.php:537
457
+ msgid "Logged in as"
458
+ msgstr ""
459
+
460
+ #: options-templates/options-template-phrases.php:547
461
+ msgid "Log out"
462
+ msgstr ""
463
+
464
+ #: options-templates/options-template-phrases.php:561
465
+ msgid "Logged In"
466
+ msgstr ""
467
+
468
+ #: options-templates/options-template-phrases.php:572
469
+ msgid "To post a comment"
470
+ msgstr ""
471
+
472
+ #: options-templates/options-template-phrases.php:583
473
+ msgid "Vote Up"
474
+ msgstr ""
475
+
476
+ #: options-templates/options-template-phrases.php:594
477
+ msgid "Vote Down"
478
+ msgstr ""
479
+
480
+ #: options-templates/options-template-phrases.php:605
481
+ msgid "Vote Counted"
482
+ msgstr ""
483
+
484
+ #: options-templates/options-template-phrases.php:616
485
+ msgid "You can vote only 1 time"
486
+ msgstr ""
487
+
488
+ #: options-templates/options-template-phrases.php:627
489
+ msgid "Voting Error"
490
+ msgstr ""
491
+
492
+ #: options-templates/options-template-phrases.php:638
493
+ msgid "Login To Vote"
494
+ msgstr ""
495
+
496
+ #: options-templates/options-template-phrases.php:649
497
+ msgid "You Cannot Vote On Your Comment"
498
+ msgstr ""
499
+
500
+ #: options-templates/options-template-phrases.php:660
501
+ msgid "Invalid Captcha Code"
502
+ msgstr ""
503
+
504
+ #: options-templates/options-template-phrases.php:671
505
+ msgid "Some of field value is invalid"
506
+ msgstr ""
507
+
508
+ #: options-templates/options-template-phrases.php:682
509
+ msgid "Comment waiting moderation"
510
+ msgstr ""
511
+
512
+ #: options-templates/options-template-phrases.php:693
513
+ msgid "Button text if has new comment"
514
+ msgstr ""
515
+
516
+ #: options-templates/options-template-phrases.php:697
517
+ msgid "New Comment"
518
+ msgstr ""
519
+
520
+ #: options-templates/options-template-phrases.php:704
521
+ msgid "Button text if has new comments"
522
+ msgstr ""
523
+
524
+ #: options-templates/options-template-phrases.php:708
525
+ msgid "New Comments"
526
+ msgstr ""
527
+
528
+ #: options-templates/options-template-phrases.php:715
529
+ msgid "Button text if has new reply"
530
+ msgstr ""
531
+
532
+ #: options-templates/options-template-phrases.php:726
533
+ msgid "Button text if has new replies"
534
+ msgstr ""
535
+
536
+ #: options-templates/options-template-phrases.php:730
537
+ msgid "New Replies"
538
+ msgstr ""
539
+
540
+ #: options-templates/options-template-phrases.php:737
541
+ msgid "Text on load more button if has new comment(s)"
542
+ msgstr ""
543
+
544
+ #: options-templates/options-template-phrases.php:741
545
+ msgid "New"
546
+ msgstr ""
547
+
548
+ #: wc-options.php:31 wc-options.php:184
549
+ msgid "Hacker?"
550
+ msgstr ""
551
+
552
+ #: wc-options.php:77
553
+ msgid "wpDiscuz General Settings"
554
+ msgstr ""
555
+
556
+ #: wc-options.php:165 wc-options.php:296
557
+ msgid "Save Changes"
558
+ msgstr ""
559
+
560
+ #: wc-options.php:271
561
+ msgid "WpDiscuz Front-end Phrases"
562
+ msgstr ""
563
+
564
+ #: wc.php:899
565
+ msgid "Settings"
566
+ msgstr ""
567
+
568
+ #: wc.php:900
569
+ msgid "Phrases"
570
+ msgstr ""
languages/wpdiscuz-he_IL.mo ADDED
Binary file
languages/wpdiscuz-he_IL.po ADDED
@@ -0,0 +1,584 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # This file was generated by WPML
2
+ # WPML is a WordPress plugin that can turn any WordPress or WordPressMU site into a full featured multilingual content management system.
3
+ # http://wpml.org
4
+ msgid ""
5
+ msgstr ""
6
+ "Content-Type: text/plain; charset=UTF-8\n"
7
+ "Content-Transfer-Encoding: 8bit\n"
8
+ "Project-Id-Version: wpdiscuz\n"
9
+ "POT-Creation-Date: \n"
10
+ "PO-Revision-Date: \n"
11
+ "Last-Translator: Ahrale <contact@atar4u.com>\n"
12
+ "Language-Team: Ahrale, Atar4U.com <contact@atar4u.com>\n"
13
+ "MIME-Version: 1.0\n"
14
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
+ "Language: he\n"
16
+ "X-Generator: Poedit 1.7.4\n"
17
+ "X-Poedit-SourceCharset: UTF-8\n"
18
+
19
+ #
20
+ # <tr valign="top">
21
+ # <th scope="row">
22
+ # wpml-name: bf65a98aa49531330dc10cb65742dbd7
23
+ msgid "Custom CSS Code"
24
+ msgstr "קוד CSS"
25
+
26
+ #
27
+ # <tr valign="top">
28
+ # <th scope="row">
29
+ # wpml-name: 500caaed9f2c6106fa2310cc8f79df63
30
+ msgid "Vote, Reply, Share, Edit links text colors"
31
+ msgstr "צבע טקסט דרג, השב, שתף, עריכת קישור"
32
+
33
+ # </tr>
34
+ #
35
+ # <tr valign="top">
36
+ # wpml-name: 5766b2894e55ef086794eaaae17f3c30
37
+ msgid "Author title color"
38
+ msgstr "צבע כותרת מחבר"
39
+
40
+ # </td>
41
+ # </tr>
42
+ #
43
+ # wpml-name: f32ecebb1af924499b8b763876356ba0
44
+ msgid "Comment Text Color"
45
+ msgstr "צבע טקסט תגובה"
46
+
47
+ # </th>
48
+ # <td colspan="3">
49
+ # <label for="wc_show_hide_comment_checkbox">
50
+ # wpml-name: 8f5a878a62b69faa44e0b0e937c2c3fb
51
+ msgid "Reply Background Color"
52
+ msgstr "צבע רקע תשובה"
53
+
54
+ # <td colspan="3">
55
+ # <label for="wc_simple_comment_date">
56
+ # <input type="checkbox" <?php checked($this->wc_options_serialized->wc_simple_comment_date == 1) ?> value="1" name="wc_simple_comment_date" id="wc_simple_comment_date" />
57
+ # wpml-name: 09efb13f282fc9ddc255fe61fd83659f
58
+ msgid "Comment Background Color"
59
+ msgstr "צבע רקע תגובה"
60
+
61
+ # <th scope="row">
62
+ # <label for="wc_comment_bg_color"><?php _e('Comment Background Color', 'wpdiscuz'); ?></label>
63
+ # </th>
64
+ # wpml-name: 3db45192b0c6cdb57cd641e2ba2640b6
65
+ msgid "Example: #00ff00"
66
+ msgstr "לדוגמה: #00ff00"
67
+
68
+ # </td>
69
+ # </tr>
70
+ #
71
+ # wpml-name: a2d818a4092f2819ec006401df55dcca
72
+ msgid "Comment Form Background Color"
73
+ msgstr "צבע רקע מאת התגובה"
74
+
75
+ # </th>
76
+ # <td colspan="3">
77
+ # <label for="wc_author_titles_show_hide">
78
+ # wpml-name: e12cf8635b819c89028844d37e40c34c
79
+ msgid "Comment text size in pixels"
80
+ msgstr "גודל טקסט התגובה בפיקסלים"
81
+
82
+ # </th>
83
+ # <td colspan="3">
84
+ # <label for="wc_reply_button_members_show_hide">
85
+ # wpml-name: 6459cd7b83e2cb1e21d29cde7a9b68e7
86
+ msgid "Notify comment author on new reply"
87
+ msgstr "שלח התראה למחבר התגובה על תשובה חדשה"
88
+
89
+ # </th>
90
+ # <td colspan="3">
91
+ # <label for="wc_reply_button_guests_show_hide">
92
+ # wpml-name: 0331251c1e755aebd31e636aba091ea9
93
+ msgid "Notify moderator on new comment"
94
+ msgstr "שלח התראה למנהל על תגובה חדשה"
95
+
96
+ # </th>
97
+ # <td colspan="3">
98
+ # <label for="wc_held_comment_to_moderate">
99
+ # wpml-name: dba84992be213cc37ea6491e41889e28
100
+ msgid "Comment Threads Per Page"
101
+ msgstr "מספר אשכולות תגובה לעמוד"
102
+
103
+ # <label title="No">
104
+ # <input type="radio" value="0" <?php checked('0' == $this->wc_options_serialized->wc_user_must_be_registered); ?> name="wc_user_must_be_registered" id="wc_user_must_be_registered_no" />
105
+ # <span>No</span>
106
+ # wpml-name: 06cd79cb98467786404e73e99edc3112
107
+ msgid "Hide Author Titles"
108
+ msgstr "הסתר כותרות מחבר"
109
+
110
+ #
111
+ # <tr valign="top">
112
+ # <th scope="row">
113
+ # wpml-name: 4941aadbbcd1d93ecd5668d59387843e
114
+ msgid "Hide Reply button for Members"
115
+ msgstr "הסתר מחברים את כפתור הגב"
116
+
117
+ #
118
+ # <tr valign="top">
119
+ # <th scope="row">
120
+ # wpml-name: 8134e72fa84164c7212b3696a0fc1906
121
+ msgid "Hide Reply button for Guests"
122
+ msgstr "הסתר את כפתור הגב ממבקרים"
123
+
124
+ #
125
+ # <tr valign="top">
126
+ # <th scope="row">
127
+ # wpml-name: 93ed4436dde9d3ff7edc5b9080e56e71
128
+ msgid "Held new comments for moderation"
129
+ msgstr "תגובות חדשות מוחזקות לאישור מנהל"
130
+
131
+ # <option value="60" <?php selected($wc_comment_list_update_timer, '60'); ?>>1 <?php _e('Minute', 'wpdiscuz'); ?></option>
132
+ # <option value="180" <?php selected($wc_comment_list_update_timer, '180'); ?>>3 <?php _e('Minutes', 'wpdiscuz'); ?></option>
133
+ # <option value="300" <?php selected($wc_comment_list_update_timer, '300'); ?>>5 <?php _e('Minutes', 'wpdiscuz'); ?></option>
134
+ # wpml-name: 21a9fb3b34528e336066e6defc5eec8e
135
+ msgid "User Must be registered to comment"
136
+ msgstr "משתמש חייב להיות רשום כדי להגיב"
137
+
138
+ #
139
+ # <tr valign="top">
140
+ # <th scope="row">
141
+ # wpml-name: 593d301f02d8d6c6a4d542aa92b5a671
142
+ msgid "Hide the CAPTCHA field"
143
+ msgstr "הסתר את שדה קוד האימות"
144
+
145
+ # <label title="<?php _e('Show new comment/reply buttons to update manualy', 'wpdiscuz') ?>">
146
+ # <input type="radio" value="2" <?php checked('2' == $wc_comment_list_update_type); ?> name="wc_comment_list_update_type" id="wc_comment_list_update_new" />
147
+ # <span><?php _e('Always check for new comments and show update buttons', 'wpdiscuz') ?></span>
148
+ # wpml-name: 1f4cd7e3b3f1ed449ec07a81f2dcf045
149
+ msgid "Hide Share Button"
150
+ msgstr "הסתר את כפתור השיתוף"
151
+
152
+ # <th scope="row">
153
+ # <?php _e('Live update options', 'wpdiscuz'); ?>
154
+ # <p style="font-size:13px; color:#999999; width:80%; padding-left:0px; margin-left:0px;">If you use Shared Web Hosting you should make sure the "Live Update" function doesn't overload your server resources. This function is good for VPS and Dedicated Hosting Plans.</p>
155
+ # wpml-name: 47b87193fea7efe68664048e7754ae9d
156
+ msgid "Hide Voting buttons"
157
+ msgstr "הסתר את כפתורי ההצבעה"
158
+
159
+ # <input type="radio" value="asc" <?php checked('asc' == $this->wc_options_serialized->wc_comment_list_order); ?> name="wc_comment_list_order" id="wc_comment_list_order" />
160
+ # <span><?php _e('the bottom of the list', 'wpdiscuz') ?></span>
161
+ # </label><br>
162
+ # wpml-name: 242f9b37790cf6e9ed67018087b2ccfc
163
+ msgid "the bottom of the list"
164
+ msgstr "תחתית הרשימה"
165
+
166
+ # </label> &nbsp;<br/>
167
+ # <label title="<?php _e('bottom of the threads', 'wpdiscuz') ?>">
168
+ # <input type="radio" value="asc" <?php checked('asc' == $this->wc_options_serialized->wc_comment_list_order); ?> name="wc_comment_list_order" id="wc_comment_list_order" />
169
+ # wpml-name: 22aca4062c5df3908cc949cd075d1b9b
170
+ msgid "bottom of the threads"
171
+ msgstr "תחתית האשכולות"
172
+
173
+ # <input type="radio" value="desc" <?php checked('desc' == $this->wc_options_serialized->wc_comment_list_order); ?> name="wc_comment_list_order" id="wc_comment_list_order" />
174
+ # <span><?php _e('top of the threads', 'wpdiscuz') ?></span>
175
+ # </label> &nbsp;<br/>
176
+ # wpml-name: 4ad191c33c3c6b8fe981f1b9d49cc314
177
+ msgid "top of the threads"
178
+ msgstr "ראש האשכולות"
179
+
180
+ # <fieldset class="comment_list_order">
181
+ # <label title="<?php _e('the top of the list', 'wpdiscuz') ?>">
182
+ # <input type="radio" value="desc" <?php checked('desc' == $this->wc_options_serialized->wc_comment_list_order); ?> name="wc_comment_list_order" id="wc_comment_list_order" />
183
+ # wpml-name: cecb3d2c830a2b5b6ffaf7103ba63c72
184
+ msgid "the top of the list"
185
+ msgstr "ראש הרשימה"
186
+
187
+ # <th scope="row">
188
+ # <?php _e('Show the latest comments on', 'wpdiscuz'); ?>
189
+ # </th>
190
+ # wpml-name: de6b2b021c3c1868d8b2e58b336c41ee
191
+ msgid "Show the latest comments on"
192
+ msgstr "הצג את התגובות האחרונות ב"
193
+
194
+ # <th scope="row">
195
+ # <?php _e('Display comment form for post types:', 'wpdiscuz'); ?>
196
+ # </th>
197
+ # wpml-name: 942d7b8629fe56d23330e4bb70524db8
198
+ msgid "Display comment form for post types:"
199
+ msgstr "הצג טופס תגובה עבור סוגי הפוסט:"
200
+
201
+ #
202
+ # <th colspan="4" scope="col" style="margin-bottom: 5px;"><h2><?php _e('General settings', 'wpdiscuz'); ?></h2></th>
203
+ #
204
+ # wpml-name: de62775a71fc2bf7a13d7530ae24a7ed
205
+ msgid "General settings"
206
+ msgstr "הגדרות כלליות"
207
+
208
+ # <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_vote_up']; ?>" name="wc_vote_up" id="wc_vote_up" />
209
+ # </label>
210
+ # </td>
211
+ # wpml-name: b0ae40761d38d8d30d8f7b618f776332
212
+ msgid "Comment waiting moderation"
213
+ msgstr "התגובה ממתינה לאישור"
214
+
215
+ # <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_to_post_comment_text']; ?>" name="wc_to_post_comment_text" id="wc_to_post_comment_text" />
216
+ # </label>
217
+ # </td>
218
+ # wpml-name: aea558681d892f7f577cc043a726107e
219
+ msgid "Some of field value is invalid"
220
+ msgstr "ערך כלשהו בשדה שגוי"
221
+
222
+ # <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_logged_in_text']; ?>" name="wc_logged_in_text" id="wc_logged_in_text" />
223
+ # </label>
224
+ # </td>
225
+ # wpml-name: f8d855b26faffa0f8779fb44632d6bc1
226
+ msgid "Invalid Captcha Code"
227
+ msgstr "קוד אימות שגוי"
228
+
229
+ # <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_you_must_be_text']; ?>" name="wc_you_must_be_text" id="wc_you_must_be_text" />
230
+ # </label>
231
+ # </td>
232
+ # wpml-name: b9c4d0afce51fd59568c4ddc3e66ee45
233
+ msgid "You Cannot Vote On Your Comment"
234
+ msgstr "אין לך אפשרות לדרג את התגובה שלך"
235
+
236
+ # <input type="text" value="<?php echo isset($this->wc_options_serialized->wc_phrases['wc_posted_today_text']) ? $this->wc_options_serialized->wc_phrases['wc_posted_today_text'] : _e('Today', 'wpdiscuz'); ?>" name="wc_posted_today_text" id="wc_posted_today_text" placeholder="<?php _e('Today', 'wpdiscuz'); ?> 9:26 PM"/>
237
+ # </label>
238
+ # </td>
239
+ # wpml-name: 37cd28520b47df8a62847f2953d465d2
240
+ msgid "Login To Vote"
241
+ msgstr "התחבר כדי לדרג"
242
+
243
+ # <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_ago_text']; ?>" name="wc_ago_text" id="wc_ago_text" />
244
+ # </label>
245
+ # </td>
246
+ # wpml-name: 1b8749349b685b39f9e1baabe86645f8
247
+ msgid "Voting Error"
248
+ msgstr "שגיאת הצבעה"
249
+
250
+ # <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_right_now_text']; ?>" name="wc_right_now_text" id="wc_right_now_text" />
251
+ # </label>
252
+ # </td>
253
+ # wpml-name: d3bc389a6bdfa1fa1af1ad33360e7092
254
+ msgid "You can vote only 1 time"
255
+ msgstr "אפשר להצביע רק פעם אחת"
256
+
257
+ # <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_plural_text']; ?>" name="wc_plural_text" id="wc_plural_text" />
258
+ # </label>
259
+ # </td>
260
+ # wpml-name: b8307b14f29ecc7cd8ffa7c0a2a2700d
261
+ msgid "Vote Counted"
262
+ msgstr "הקול נספר"
263
+
264
+ # <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_second_text']['datetime'][0]; ?>" name="wc_second_text" id="wc_second_text" />
265
+ # </label>
266
+ # </td>
267
+ # wpml-name: 92afdda2717db50b9a9fccc2b08779d7
268
+ msgid "Vote Down"
269
+ msgstr "דרג למטה"
270
+
271
+ # <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_minute_text']['datetime'][0]; ?>" name="wc_minute_text" id="wc_minute_text" />
272
+ # </label>
273
+ # </td>
274
+ # wpml-name: 02c202294c6bb066a282a1703f0e0ab5
275
+ msgid "Vote Up"
276
+ msgstr "דרג למעלה"
277
+
278
+ # <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_hour_text']['datetime'][0]; ?>" name="wc_hour_text" id="wc_hour_text" />
279
+ # </label>
280
+ # </td>
281
+ # wpml-name: 4ba43f2375ce4f44c34f2d3e57911246
282
+ msgid "To post a comment"
283
+ msgstr "כדי לשלוח תגובה"
284
+
285
+ # <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_day_text']['datetime'][0]; ?>" name="wc_day_text" id="wc_day_text" />
286
+ # </label>
287
+ # </td>
288
+ # wpml-name: e63b69d4f9b50ff07e7c98a05254c2cc
289
+ msgid "Logged In"
290
+ msgstr "מחובר"
291
+
292
+ # <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_month_text']['datetime'][0]; ?>" name="wc_month_text" id="wc_month_text" />
293
+ # </label>
294
+ # </td>
295
+ # wpml-name: c5bea8ff54465b298102222778aae4ac
296
+ msgid "You must be"
297
+ msgstr "חובה להיות"
298
+
299
+ # <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_year_text']['datetime'][0]; ?>" name="wc_year_text" id="wc_year_text" />
300
+ # </label>
301
+ # </td>
302
+ # wpml-name: 33467c1f9651ed92b43861f2d5b0b35e
303
+ msgid "Ago text"
304
+ msgstr "טקסט לפני"
305
+
306
+ # <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_error_email_text']; ?>" name="wc_error_email_text" id="wc_error_email_text" />
307
+ # </label>
308
+ # </td>
309
+ # wpml-name: 60058078c9d06c53114be14f93cec482
310
+ msgid "Commented \"right now\" text"
311
+ msgstr "טקסט הגיב \"כעת\""
312
+
313
+ # <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_error_empty_text']; ?>" name="wc_error_empty_text" id="wc_error_empty_text" />
314
+ # </label>
315
+ # </td>
316
+ # wpml-name: e177a7501c5ba99f5db0894523181577
317
+ msgid "Plural (Ex. user -> user + s)"
318
+ msgstr "רבים(Ex. משתמש -> משתמש + ים)"
319
+
320
+ # <textarea name="wc_unsubscribe_message" id="wc_unsubscribe_message"><?php echo $this->wc_options_serialized->wc_phrases['wc_unsubscribe_message']; ?></textarea>
321
+ # </label>
322
+ # </td>
323
+ # wpml-name: c22cf8376b1893dcfcef0649fe1a7d87
324
+ msgid "Second"
325
+ msgstr "שניה"
326
+
327
+ # <input type="text" name="wc_unsubscribe" id="wc_unsubscribe" class="wc_unsubscribe" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_unsubscribe']; ?>" placeholder="<?php echo _e('Unsubscribe', 'wpdiscuz'); ?>"/>
328
+ # </label>
329
+ # </td>
330
+ # wpml-name: 62902641c38f3a4a8eb3212454360e24
331
+ msgid "Minute"
332
+ msgstr "דקה"
333
+
334
+ # <textarea name="wc_subscribed_on_post" id="wc_subscribed_on_post"><?php echo $this->wc_options_serialized->wc_phrases['wc_subscribed_on_post']; ?></textarea>
335
+ # </label>
336
+ # </td>
337
+ # wpml-name: b55e509c697e4cca0e1d160a7806698f
338
+ msgid "Hour"
339
+ msgstr "שעה"
340
+
341
+ # <textarea name="wc_subscribed_on_comment" id="wc_subscribed_on_comment"><?php echo $this->wc_options_serialized->wc_phrases['wc_subscribed_on_comment']; ?></textarea>
342
+ # </label>
343
+ # </td>
344
+ # wpml-name: 03727ac48595a24daed975559c944a44
345
+ msgid "Day"
346
+ msgstr "יום"
347
+
348
+ # <textarea name="wc_new_reply_email_message" id="wc_new_reply_email_message"><?php echo $this->wc_options_serialized->wc_phrases['wc_new_reply_email_message']; ?></textarea>
349
+ # </label>
350
+ # </td>
351
+ # wpml-name: 7cbb885aa1164b390a0bc050a64e1812
352
+ msgid "Month"
353
+ msgstr "חודש"
354
+
355
+ # <input type="text" value="<?php echo isset($this->wc_options_serialized->wc_phrases['wc_new_reply_email_subject']) ? $this->wc_options_serialized->wc_phrases['wc_new_reply_email_subject'] : _e('New Reply', 'wpdiscuz'); ?>" name="wc_new_reply_email_subject" id="wc_new_reply_email_subject" />
356
+ # </label>
357
+ # </td>
358
+ # wpml-name: 537c66b24ef5c83b7382cdc3f34885f2
359
+ msgid "Year"
360
+ msgstr "שנה"
361
+
362
+ # <textarea name="wc_email_message" id="wc_email_message"><?php echo $this->wc_options_serialized->wc_phrases['wc_email_message']; ?></textarea>
363
+ # </label>
364
+ # </td>
365
+ # wpml-name: d2bacbb423e54278e4528f3c48906fbd
366
+ msgid "Error message for invalid email field"
367
+ msgstr "הודעת שגיאה עבור שדה אימייל לא תקף"
368
+
369
+ # <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_email_subject']; ?>" name="wc_email_subject" id="wc_email_subject" />
370
+ # </label>
371
+ # </td>
372
+ # wpml-name: 2abc90325a74ed9f214c9e20d9ff1c31
373
+ msgid "Error message for empty field"
374
+ msgstr "הודעת שגיאה עבור שדה ריק"
375
+
376
+ # <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_user_title_admin_text']; ?>" name="wc_user_title_admin_text" id="wc_user_title_admin_text" />
377
+ # </label>
378
+ # </td>
379
+ # wpml-name: 87b74ebf71923a7992adcc3bb0cad08e
380
+ msgid "Email Message"
381
+ msgstr "הודעת אימייל"
382
+
383
+ # <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_user_title_author_text']; ?>" name="wc_user_title_author_text" id="wc_user_title_author_text" />
384
+ # </label>
385
+ # </td>
386
+ # wpml-name: e3868f7e6e90b6b55f60ac7d71dcb8ce
387
+ msgid "Email Subject"
388
+ msgstr "נושא האימייל"
389
+
390
+ # <td colspan="3">
391
+ # <label for="wc_user_title_member_text">
392
+ # <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_user_title_member_text']; ?>" name="wc_user_title_member_text" id="wc_user_title_member_text" />
393
+ # wpml-name: 612db216338558296cd846fda7907d46
394
+ msgid "Title For Admins"
395
+ msgstr "כותרת למנהלים"
396
+
397
+ # <td colspan="3">
398
+ # <label for="wc_user_title_guest_text">
399
+ # <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_user_title_guest_text']; ?>" name="wc_user_title_guest_text" id="wc_user_title_guest_text" />
400
+ # wpml-name: b38ef1bcd077862368b49a7e663abf1f
401
+ msgid "Title For Authors"
402
+ msgstr "כותרת למחברים"
403
+
404
+ # <th scope="row">
405
+ # <?php _e('Show Replies', 'wpdiscuz'); ?>
406
+ # </th>
407
+ # wpml-name: 42370e4182cd0f18966ca25a2c6a07a6
408
+ msgid "Title For Members"
409
+ msgstr "כותרת לחברים"
410
+
411
+ # <th scope="row">
412
+ # <?php _e('Hide Replies', 'wpdiscuz'); ?>
413
+ # </th>
414
+ # wpml-name: 14e490d67cf8d01ab4ecc1a9b35f6ed0
415
+ msgid "Title For Guests"
416
+ msgstr "זמן לאורחים"
417
+
418
+ # <th scope="row">
419
+ # <?php _e('Share On Google', 'wpdiscuz'); ?>
420
+ # </th>
421
+ # wpml-name: 65411e4df5934ff1e9b989d3f4a15b86
422
+ msgid "Show Replies"
423
+ msgstr "הצג תגובות"
424
+
425
+ # <th scope="row">
426
+ # <?php _e('Share On Twitter', 'wpdiscuz'); ?>
427
+ # </th>
428
+ # wpml-name: 25b951f6a316184572009da11cce8a26
429
+ msgid "Hide Replies"
430
+ msgstr "הסתר תגובות"
431
+
432
+ # <th scope="row">
433
+ # <?php _e('Share On Facebook', 'wpdiscuz'); ?>
434
+ # </th>
435
+ # wpml-name: f47af94b2aa833305cad9951db6b7daf
436
+ msgid "Share On Google"
437
+ msgstr "שתף ב Google"
438
+
439
+ # <th scope="row">
440
+ # <?php _e('Share', 'wpdiscuz'); ?>
441
+ # </th>
442
+ # wpml-name: cadd79454e3212a75ee39d8707900d0c
443
+ msgid "Share On Twitter"
444
+ msgstr "שתף ב Twitter"
445
+
446
+ # <th scope="row">
447
+ # <?php _e('Reply', 'wpdiscuz'); ?>
448
+ # </th>
449
+ # wpml-name: 6a4c1f0b4b8d405494b4b4401fdca578
450
+ msgid "Share On Facebook"
451
+ msgstr "שתף ב Facebook"
452
+
453
+ # <th scope="row">
454
+ # <?php _e('Load More Button', 'wpdiscuz'); ?>
455
+ # </th>
456
+ # wpml-name: 5a95a425f74314a96f13a2f136992178
457
+ msgid "Share"
458
+ msgstr "שתף"
459
+
460
+ # <th scope="row">
461
+ # <?php _e('Notify on new replies (checkbox)', 'wpdiscuz'); ?>
462
+ # </th>
463
+ # wpml-name: 25d8df6e580905091a0d5ef5b9e05bf0
464
+ msgid "Reply"
465
+ msgstr "הגב"
466
+
467
+ # <tr valign="top">
468
+ # <th scope="row">
469
+ # <?php _e('Notify on new comments (checkbox)', 'wpdiscuz'); ?>
470
+ # wpml-name: 584e5dc4aff62daf05ee9ae379721df5
471
+ msgid "Load More Button"
472
+ msgstr "טען כפתור עוד"
473
+
474
+ # <th scope="row">
475
+ # <?php _e('Submit Button', 'wpdiscuz'); ?>
476
+ # </th>
477
+ # wpml-name: 44948e240a62951de1140c9d2b2f57bb
478
+ msgid "Submit Button"
479
+ msgstr "כפתור שלח"
480
+
481
+ # <th scope="row">
482
+ # <?php _e('CAPTCHA Field', 'wpdiscuz'); ?>
483
+ # </th>
484
+ # wpml-name: adf83da7c30641c8a51d9c89f251af1d
485
+ msgid "CAPTCHA Field"
486
+ msgstr "שדה קוד אימות"
487
+
488
+ # <th scope="row">
489
+ # <?php _e('Name Field', 'wpdiscuz'); ?>
490
+ # </th>
491
+ # wpml-name: 34a603ba1712e6f69d17bd783a4d26f8
492
+ msgid "Name Field"
493
+ msgstr "שדה שם"
494
+
495
+ # <th scope="row">
496
+ # <?php _e('Email Field', 'wpdiscuz'); ?>
497
+ # </th>
498
+ # wpml-name: 2b9ad8707b3754ec30fbab20fa697a9f
499
+ msgid "Email Field"
500
+ msgstr "שדה אימייל"
501
+
502
+ # <th scope="row">
503
+ # <?php _e('Comment Field Join', 'wpdiscuz'); ?>
504
+ # </th>
505
+ # wpml-name: 7e784fc0de1c9ecbc87e1bef4354bc21
506
+ msgid "Comment Field Join"
507
+ msgstr "שדה תגובה הצטרף"
508
+
509
+ # <th scope="row">
510
+ # <?php _e('Comment Field Start', 'wpdiscuz'); ?>
511
+ # </th>
512
+ # wpml-name: 167da7620e59e72b0aa09b1a3c37755a
513
+ msgid "Comment Field Start"
514
+ msgstr "שדה תגובה התחל"
515
+
516
+ # <th scope="row">
517
+ # <?php _e('On', 'wpdiscuz'); ?>
518
+ # </th>
519
+ # wpml-name: 521c36a31c2762741cf0f8890cbe05e3
520
+ msgid "On"
521
+ msgstr "ב"
522
+
523
+ # <th scope="row">
524
+ # <?php _e('Comment', 'wpdiscuz'); ?>
525
+ # </th>
526
+ # wpml-name: 0be8406951cdfda82f00f79328cf4efc
527
+ msgid "Comment"
528
+ msgstr "תגובה"
529
+
530
+ # <th scope="row">
531
+ # <?php _e('Be the first to comment', 'wpdiscuz'); ?>
532
+ # </th>
533
+ # wpml-name: 4fd07b393e79abc10fc92ed4f0eebb63
534
+ msgid "Be the first to comment"
535
+ msgstr "היה הראשון להגיב"
536
+
537
+ # <th scope="row">
538
+ # <?php _e('Leave a Reply', 'wpdiscuz'); ?>
539
+ # </th>
540
+ # wpml-name: 7d584ae1dc7a65646c5f2073284f9be6
541
+ msgid "Leave a Reply"
542
+ msgstr "הגב"
543
+
544
+ #
545
+ # <th colspan="3" scope="col" style="margin-bottom: 5px;"><h2><?php _e('Front-end phrases', 'wpdiscuz'); ?></h2></th>
546
+ #
547
+ # wpml-name: 9dca084d5d7e57dba0612a971b1417da
548
+ msgid "Front-end phrases"
549
+ msgstr "ביטויי הצד הקדמי"
550
+
551
+ # $output .= '<div class="wc-comment-header"><div class="wc-comment-author">' . $wc_author_name . '</div><div class="wc-comment-date">' . $posted_date . '</div><div style="clear:both"></div></div>';
552
+ # $output .= '<div class="wc-comment-text">' . $comment_content . '</div>';
553
+ # $output .= '<div class="wc-comment-footer">';
554
+ # wpml-name: 7dce122004969d56ae2e0245cb754d35
555
+ msgid "Edit"
556
+ msgstr "עריכה"
557
+
558
+ # $this->wc_options_serialized->wc_phrases['wc_login_to_vote'] = $_POST['wc_login_to_vote'];
559
+ # $this->wc_options_serialized->wc_phrases['wc_invalid_captcha'] = $_POST['wc_invalid_captcha'];
560
+ # $this->wc_options_serialized->wc_phrases['wc_invalid_field'] = $_POST['wc_invalid_field'];
561
+ # wpml-name: 5ccd2a1ab7ca06c1f0e261a8d9907549
562
+ msgid "WpDiscuz Front-end Phrases"
563
+ msgstr "ביטויי הצד הקדמי של WpDiscuz"
564
+
565
+ # if (function_exists('wp_nonce_field')) {
566
+ # wp_nonce_field('wc_phrases_form');
567
+ # }
568
+ # wpml-name: f5d6040ed78ca86ddc73296a49b18510
569
+ msgid "Save Changes"
570
+ msgstr "שמירת השינויים"
571
+
572
+ # ?>
573
+ #
574
+ # <div class="wrap wpdiscuz_options_page">
575
+ # wpml-name: 2a85da3e3ae8170dd7f8a556bf783a54
576
+ msgid "wpDiscuz General Settings"
577
+ msgstr "הגדרות כלליות של wpDiscuz"
578
+
579
+ # <?php
580
+ # }
581
+ #
582
+ # wpml-name: d900c3ef9d26cc40e115cb16da8a90c5
583
+ msgid "Hacker?"
584
+ msgstr "האקר?"
options-templates/options-template-main.php CHANGED
@@ -1,8 +1,8 @@
1
- <th colspan="4" scope="col" style="margin-bottom: 5px;"><h2><?php _e('General settings', 'wpdiscuz'); ?></h2></th>
2
 
3
  <tr valign="top">
4
  <th scope="row">
5
- <?php _e('Display comment form for post types:', 'wpdiscuz'); ?>
6
  </th>
7
  <td colspan="3">
8
  <?php
@@ -23,17 +23,17 @@
23
 
24
  <tr valign="top">
25
  <th scope="row">
26
- <?php _e('Show the latest comments on', 'wpdiscuz'); ?>
27
  </th>
28
  <td colspan="3">
29
  <fieldset class="comment_list_order">
30
- <label title="<?php _e('the top of the list', 'wpdiscuz') ?>">
31
  <input type="radio" value="desc" <?php checked('desc' == $this->wc_options_serialized->wc_comment_list_order); ?> name="wc_comment_list_order" id="wc_comment_list_order" />
32
- <span><?php _e('top of the threads', 'wpdiscuz') ?></span>
33
  </label> &nbsp;<br/>
34
- <label title="<?php _e('bottom of the threads', 'wpdiscuz') ?>">
35
  <input type="radio" value="asc" <?php checked('asc' == $this->wc_options_serialized->wc_comment_list_order); ?> name="wc_comment_list_order" id="wc_comment_list_order" />
36
- <span><?php _e('the bottom of the list', 'wpdiscuz') ?></span>
37
  </label><br>
38
  </fieldset>
39
  </td>
@@ -41,23 +41,23 @@
41
 
42
  <tr valign="top">
43
  <th scope="row">
44
- <?php _e('Live update options', 'wpdiscuz'); ?>
45
  <p style="font-size:13px; color:#999999; width:80%; padding-left:0px; margin-left:0px;">If you use Shared Web Hosting you should make sure the "Live Update" function doesn't overload your server resources. This function is good for VPS and Dedicated Hosting Plans.</p>
46
  </th>
47
  <td colspan="3">
48
  <fieldset class="wc_comment_list_update_type">
49
  <?php $wc_comment_list_update_type = isset($this->wc_options_serialized->wc_comment_list_update_type) ? $this->wc_options_serialized->wc_comment_list_update_type : 1; ?>
50
- <label title="<?php _e('Never update', 'wpdiscuz') ?>">
51
  <input type="radio" value="0" <?php checked('0' == $wc_comment_list_update_type); ?> name="wc_comment_list_update_type" id="wc_comment_list_update_never" />
52
- <span><?php _e('Turn off "Live Update" function', 'wpdiscuz') ?></span>
53
  </label> &nbsp;<br/>
54
- <label title="<?php _e('Show new comment/reply buttons to update manualy', 'wpdiscuz') ?>">
55
  <input type="radio" value="2" <?php checked('2' == $wc_comment_list_update_type); ?> name="wc_comment_list_update_type" id="wc_comment_list_update_new" />
56
- <span><?php _e('Always check for new comments and show update buttons', 'wpdiscuz') ?></span>
57
  </label><br>
58
- <label title="<?php _e('Always update', 'wpdiscuz') ?>">
59
  <input type="radio" value="1" <?php checked('1' == $wc_comment_list_update_type); ?> name="wc_comment_list_update_type" id="wc_comment_list_update_always" />
60
- <span><?php _e('Always check for new comments and update automatically', 'wpdiscuz') ?></span>
61
  </label> &nbsp;<br/>
62
  </fieldset>
63
  </td>
@@ -65,25 +65,25 @@
65
 
66
  <tr valign="top">
67
  <th scope="row">
68
- <label for="wc_comment_list_update_timer"><?php _e('Update comment list every', 'wpdiscuz'); ?></label>
69
  </th>
70
  <td colspan="3">
71
  <select id="wc_comment_list_update_timer" name="wc_comment_list_update_timer">
72
  <?php $wc_comment_list_update_timer = isset($this->wc_options_serialized->wc_comment_list_update_timer) ? $this->wc_options_serialized->wc_comment_list_update_timer : 30; ?>
73
- <option value="10" <?php selected($wc_comment_list_update_timer, '10'); ?>>10 <?php _e('Seconds', 'wpdiscuz'); ?></option>
74
- <option value="20" <?php selected($wc_comment_list_update_timer, '20'); ?>>20 <?php _e('Seconds', 'wpdiscuz'); ?></option>
75
- <option value="30" <?php selected($wc_comment_list_update_timer, '30'); ?>>30 <?php _e('Seconds', 'wpdiscuz'); ?></option>
76
- <option value="60" <?php selected($wc_comment_list_update_timer, '60'); ?>>1 <?php _e('Minute', 'wpdiscuz'); ?></option>
77
- <option value="180" <?php selected($wc_comment_list_update_timer, '180'); ?>>3 <?php _e('Minutes', 'wpdiscuz'); ?></option>
78
- <option value="300" <?php selected($wc_comment_list_update_timer, '300'); ?>>5 <?php _e('Minutes', 'wpdiscuz'); ?></option>
79
- <option value="600" <?php selected($wc_comment_list_update_timer, '600'); ?>>10 <?php _e('Minutes', 'wpdiscuz'); ?></option>
80
  </select>
81
  </td>
82
  </tr>
83
 
84
  <tr valign="top">
85
  <th scope="row">
86
- <?php _e('Hide Voting buttons', 'wpdiscuz'); ?>
87
  </th>
88
  <td colspan="3">
89
  <label for="wc_voting_buttons_show_hide">
@@ -94,7 +94,7 @@
94
 
95
  <tr valign="top">
96
  <th scope="row">
97
- <?php _e('Hide Share Button', 'wpdiscuz'); ?>
98
  </th>
99
  <td colspan="3">
100
  <label for="wc_share_buttons_show_hide">
@@ -105,7 +105,7 @@
105
 
106
  <tr valign="top">
107
  <th scope="row">
108
- <?php _e('Hide the CAPTCHA field', 'wpdiscuz'); ?>
109
  </th>
110
  <td colspan="3">
111
  <label for="wc_captcha_show_hide">
@@ -116,7 +116,7 @@
116
 
117
  <tr valign="top">
118
  <th scope="row">
119
- <?php _e('User Must be registered to comment', 'wpdiscuz'); ?>
120
  </th>
121
  <td colspan="3">
122
  <fieldset>
@@ -134,7 +134,18 @@
134
 
135
  <tr valign="top">
136
  <th scope="row">
137
- <?php _e('Held new comments for moderation', 'wpdiscuz'); ?>
 
 
 
 
 
 
 
 
 
 
 
138
  </th>
139
  <td colspan="3">
140
  <label for="wc_held_comment_to_moderate">
@@ -145,7 +156,7 @@
145
 
146
  <tr valign="top">
147
  <th scope="row">
148
- <?php _e('Hide Reply button for Guests', 'wpdiscuz'); ?>
149
  </th>
150
  <td colspan="3">
151
  <label for="wc_reply_button_guests_show_hide">
@@ -156,7 +167,7 @@
156
 
157
  <tr valign="top">
158
  <th scope="row">
159
- <?php _e('Hide Reply button for Members', 'wpdiscuz'); ?>
160
  </th>
161
  <td colspan="3">
162
  <label for="wc_reply_button_members_show_hide">
@@ -167,7 +178,7 @@
167
 
168
  <tr valign="top">
169
  <th scope="row">
170
- <?php _e('Hide Author Titles', 'wpdiscuz'); ?>
171
  </th>
172
  <td colspan="3">
173
  <label for="wc_author_titles_show_hide">
@@ -178,7 +189,7 @@
178
 
179
  <tr valign="top">
180
  <th scope="row">
181
- <?php _e('Comment Threads Per Page', 'wpdiscuz'); ?>
182
  </th>
183
  <td colspan="3">
184
  <label for="wc_comment_count">
@@ -189,24 +200,24 @@
189
 
190
  <tr valign="top">
191
  <th scope="row">
192
- <label for="wc_comments_max_depth"><?php _e('Comments max depth', 'wpdiscuz'); ?></label>
193
  </th>
194
  <td colspan="3">
195
  <select id="wc_comments_max_depth" name="wc_comments_max_depth">
196
  <?php $wc_comments_max_depth = isset($this->wc_options_serialized->wc_comments_max_depth) ? $this->wc_options_serialized->wc_comments_max_depth : 3; ?>
197
- <option value="1" <?php selected($wc_comments_max_depth, '1'); ?>>1 <?php _e('Level', 'wpdiscuz'); ?></option>
198
- <option value="2" <?php selected($wc_comments_max_depth, '2'); ?>>2 <?php _e('Levels', 'wpdiscuz'); ?></option>
199
- <option value="3" <?php selected($wc_comments_max_depth, '3'); ?>>3 <?php _e('Levels', 'wpdiscuz'); ?></option>
200
- <option value="4" <?php selected($wc_comments_max_depth, '4'); ?>>4 <?php _e('Levels', 'wpdiscuz'); ?></option>
201
- <option value="5" <?php selected($wc_comments_max_depth, '5'); ?>>5 <?php _e('Levels', 'wpdiscuz'); ?></option>
202
  </select>
203
  </td>
204
  </tr>
205
 
206
  <tr valign="top">
207
  <th scope="row">
208
- <?php _e('Use WordPress Date/Time format', 'wpdiscuz'); ?>
209
- <p style="font-size:13px; color:#999999; width:80%; padding-left:0px; margin-left:0px;"><?php _e('wpDiscuz shows Human Readable date format. If you check this option it\'ll show the date/time format set in WordPress General Settings.', 'wpdiscuz'); ?></p>
210
  </th>
211
  <td colspan="3">
212
  <label for="wc_simple_comment_date">
@@ -217,27 +228,32 @@
217
 
218
  <tr valign="top">
219
  <th scope="row">
220
- <?php _e('Keep checked-on the email notification checkboxes on comment form by default', 'wpdiscuz'); ?>
221
- </th>
222
- <td colspan="3">
223
- <label for="wc_comment_reply_checkboxes_default_checked">
224
- <input type="checkbox" <?php checked($this->wc_options_serialized->wc_comment_reply_checkboxes_default_checked == 1) ?> value="1" name="wc_comment_reply_checkboxes_default_checked" id="wc_comment_reply_checkboxes_default_checked" />
225
- </label>
226
- </td>
227
  </tr>
228
 
229
  <tr valign="top">
230
  <th scope="row">
231
- <span><?php _e('Show "Notify of all new follow-up comments"', 'wpdiscuz'); ?></span><br />
232
- <span style="line-height:22px;"><?php _e('Show "Notify of new replies to this comment"', 'wpdiscuz'); ?></span><br />
233
- <p style="font-size:13px; color:#999999; width:80%; padding-left:0px; margin-left:0px;">
234
- <?php _e('Please keep the both or at least one of those options ON, otherwise users will not have any option for email notifications and they\'ll not get any messages.', 'wpdiscuz') ?></p>
 
 
235
  </th>
236
  <td colspan="3">
237
- <label for="wc_show_hide_comment_checkbox">
238
  <input type="checkbox" <?php checked($this->wc_options_serialized->wc_show_hide_comment_checkbox == 1) ?> value="1" name="wc_show_hide_comment_checkbox" id="wc_show_hide_comment_checkbox" />
239
  </label>
240
  <br />
 
 
 
241
  <label for="wc_show_hide_reply_checkbox" style="line-height:22px;">
242
  <input type="checkbox" <?php checked($this->wc_options_serialized->wc_show_hide_reply_checkbox == 1) ?> value="1" name="wc_show_hide_reply_checkbox" id="wc_show_hide_reply_checkbox" />
243
  </label>
@@ -245,7 +261,7 @@
245
  </tr>
246
  <tr valign="top">
247
  <th scope="row">
248
- <label for="wc_comment_text_size"><?php _e('Comment text size in pixels', 'wpdiscuz'); ?></label>
249
  </th>
250
  <td colspan="3">
251
  <select id="wc_comment_text_size" name="wc_comment_text_size">
@@ -261,10 +277,10 @@
261
 
262
  <tr valign="top">
263
  <th scope="row">
264
- <label for="wc_form_bg_color"><?php _e('Comment Form Background Color', 'wpdiscuz'); ?></label>
265
  </th>
266
  <td width="1">
267
- <input type="text" class="regular-text" value="<?php echo isset($this->wc_options_serialized->wc_form_bg_color) ? $this->wc_options_serialized->wc_form_bg_color : '#f9f9f9'; ?>" id="wc_form_bg_color" name="wc_form_bg_color" placeholder="<?php _e('Example: #00ff00', 'wpdiscuz'); ?>"/>
268
  </td>
269
 
270
  <td class="picker_img_cell">
@@ -285,10 +301,10 @@
285
 
286
  <tr valign="top">
287
  <th scope="row">
288
- <label for="wc_comment_bg_color"><?php _e('Comment Background Color', 'wpdiscuz'); ?></label>
289
  </th>
290
  <td width="1">
291
- <input type="text" class="regular-text" value="<?php echo $this->wc_options_serialized->wc_comment_bg_color; ?>" id="wc_comment_bg_color" name="wc_comment_bg_color" placeholder="<?php _e('Example: #00ff00', 'wpdiscuz'); ?>"/>
292
  </td>
293
 
294
  <td class="picker_img_cell">
@@ -309,10 +325,10 @@
309
 
310
  <tr valign="top">
311
  <th scope="row">
312
- <label for="wc_reply_bg_color"><?php _e('Reply Background Color', 'wpdiscuz'); ?></label>
313
  </th>
314
  <td>
315
- <input type="text" class="regular-text" value="<?php echo $this->wc_options_serialized->wc_reply_bg_color; ?>" id="wc_reply_bg_color" name="wc_reply_bg_color" placeholder="<?php _e('Example: #00ff00', 'wpdiscuz'); ?>"/>
316
  </td>
317
 
318
  <td class="picker_img_cell">
@@ -333,10 +349,10 @@
333
 
334
  <tr valign="top">
335
  <th scope="row">
336
- <label for="wc_comment_text_color"><?php _e('Comment Text Color', 'wpdiscuz'); ?></label>
337
  </th>
338
  <td>
339
- <input type="text" class="regular-text" value="<?php echo $this->wc_options_serialized->wc_comment_text_color; ?>" id="wc_comment_text_color" name="wc_comment_text_color" placeholder="<?php _e('Example: #00ff00', 'wpdiscuz'); ?>"/>
340
  </td>
341
 
342
  <td class="picker_img_cell">
@@ -358,10 +374,10 @@
358
 
359
  <tr valign="top">
360
  <th scope="row">
361
- <label for="wc_author_title_color"><?php _e('Author title color', 'wpdiscuz'); ?></label>
362
  </th>
363
  <td>
364
- <input type="text" class="regular-text" value="<?php echo $this->wc_options_serialized->wc_author_title_color; ?>" id="wc_author_title_color" name="wc_author_title_color" placeholder="<?php _e('Example: #00ff00', 'wpdiscuz'); ?>"/>
365
  </td>
366
 
367
  <td class="picker_img_cell">
@@ -383,10 +399,10 @@
383
 
384
  <tr valign="top">
385
  <th scope="row">
386
- <label for="wc_vote_reply_color"><?php _e('Vote, Reply, Share, Edit links text colors', 'wpdiscuz'); ?></label>
387
  </th>
388
  <td>
389
- <input type="text" class="regular-text" value="<?php echo $this->wc_options_serialized->wc_vote_reply_color; ?>" id="wc_vote_reply_color" name="wc_vote_reply_color" placeholder="<?php _e('Example: #00ff00', 'wpdiscuz'); ?>"/>
390
  </td>
391
 
392
  <td class="picker_img_cell">
@@ -407,10 +423,10 @@
407
 
408
  <tr valign="top">
409
  <th scope="row">
410
- <label for="wc_new_loaded_comment_bg_color"><?php _e('New loaded comments\' background color', 'wpdiscuz'); ?></label>
411
  </th>
412
  <td>
413
- <input type="text" class="regular-text" value="<?php echo isset($this->wc_options_serialized->wc_new_loaded_comment_bg_color) ? $this->wc_options_serialized->wc_new_loaded_comment_bg_color : 'rgb(254,254,254)'; ?>" id="wc_new_loaded_comment_bg_color" name="wc_new_loaded_comment_bg_color" placeholder="<?php _e('Example: #00ff00', 'wpdiscuz'); ?>"/>
414
  </td>
415
 
416
  <td class="picker_img_cell">
@@ -431,7 +447,7 @@
431
 
432
  <tr valign="top">
433
  <th scope="row">
434
- <label for="wc_custom_css"><?php _e('Custom CSS Code', 'wpdiscuz'); ?></label>
435
  </th>
436
  <td>
437
  <textarea cols="50" rows="10" class="regular-text" id="wc_custom_css" name="wc_custom_css" placeholder=""><?php echo stripslashes($this->wc_options_serialized->wc_custom_css); ?></textarea>
1
+ <th colspan="4" scope="col" style="margin-bottom: 5px;"><h2><?php _e('General settings', WC_Core::$TEXT_DOMAIN); ?></h2></th>
2
 
3
  <tr valign="top">
4
  <th scope="row">
5
+ <?php _e('Display comment form for post types:', WC_Core::$TEXT_DOMAIN); ?>
6
  </th>
7
  <td colspan="3">
8
  <?php
23
 
24
  <tr valign="top">
25
  <th scope="row">
26
+ <?php _e('Show the latest comments on', WC_Core::$TEXT_DOMAIN); ?>
27
  </th>
28
  <td colspan="3">
29
  <fieldset class="comment_list_order">
30
+ <label title="<?php _e('the top of the list', WC_Core::$TEXT_DOMAIN) ?>">
31
  <input type="radio" value="desc" <?php checked('desc' == $this->wc_options_serialized->wc_comment_list_order); ?> name="wc_comment_list_order" id="wc_comment_list_order" />
32
+ <span><?php _e('top of the threads', WC_Core::$TEXT_DOMAIN) ?></span>
33
  </label> &nbsp;<br/>
34
+ <label title="<?php _e('bottom of the threads', WC_Core::$TEXT_DOMAIN) ?>">
35
  <input type="radio" value="asc" <?php checked('asc' == $this->wc_options_serialized->wc_comment_list_order); ?> name="wc_comment_list_order" id="wc_comment_list_order" />
36
+ <span><?php _e('the bottom of the list', WC_Core::$TEXT_DOMAIN) ?></span>
37
  </label><br>
38
  </fieldset>
39
  </td>
41
 
42
  <tr valign="top">
43
  <th scope="row">
44
+ <?php _e('Live update options', WC_Core::$TEXT_DOMAIN); ?>
45
  <p style="font-size:13px; color:#999999; width:80%; padding-left:0px; margin-left:0px;">If you use Shared Web Hosting you should make sure the "Live Update" function doesn't overload your server resources. This function is good for VPS and Dedicated Hosting Plans.</p>
46
  </th>
47
  <td colspan="3">
48
  <fieldset class="wc_comment_list_update_type">
49
  <?php $wc_comment_list_update_type = isset($this->wc_options_serialized->wc_comment_list_update_type) ? $this->wc_options_serialized->wc_comment_list_update_type : 1; ?>
50
+ <label title="<?php _e('Never update', WC_Core::$TEXT_DOMAIN) ?>">
51
  <input type="radio" value="0" <?php checked('0' == $wc_comment_list_update_type); ?> name="wc_comment_list_update_type" id="wc_comment_list_update_never" />
52
+ <span><?php _e('Turn off "Live Update" function', WC_Core::$TEXT_DOMAIN) ?></span>
53
  </label> &nbsp;<br/>
54
+ <label title="<?php _e('Show new comment/reply buttons to update manualy', WC_Core::$TEXT_DOMAIN) ?>">
55
  <input type="radio" value="2" <?php checked('2' == $wc_comment_list_update_type); ?> name="wc_comment_list_update_type" id="wc_comment_list_update_new" />
56
+ <span><?php _e('Always check for new comments and show update buttons', WC_Core::$TEXT_DOMAIN) ?></span>
57
  </label><br>
58
+ <label title="<?php _e('Always update', WC_Core::$TEXT_DOMAIN) ?>">
59
  <input type="radio" value="1" <?php checked('1' == $wc_comment_list_update_type); ?> name="wc_comment_list_update_type" id="wc_comment_list_update_always" />
60
+ <span><?php _e('Always check for new comments and update automatically', WC_Core::$TEXT_DOMAIN) ?></span>
61
  </label> &nbsp;<br/>
62
  </fieldset>
63
  </td>
65
 
66
  <tr valign="top">
67
  <th scope="row">
68
+ <label for="wc_comment_list_update_timer"><?php _e('Update comment list every', WC_Core::$TEXT_DOMAIN); ?></label>
69
  </th>
70
  <td colspan="3">
71
  <select id="wc_comment_list_update_timer" name="wc_comment_list_update_timer">
72
  <?php $wc_comment_list_update_timer = isset($this->wc_options_serialized->wc_comment_list_update_timer) ? $this->wc_options_serialized->wc_comment_list_update_timer : 30; ?>
73
+ <option value="10" <?php selected($wc_comment_list_update_timer, '10'); ?>>10 <?php _e('Seconds', WC_Core::$TEXT_DOMAIN); ?></option>
74
+ <option value="20" <?php selected($wc_comment_list_update_timer, '20'); ?>>20 <?php _e('Seconds', WC_Core::$TEXT_DOMAIN); ?></option>
75
+ <option value="30" <?php selected($wc_comment_list_update_timer, '30'); ?>>30 <?php _e('Seconds', WC_Core::$TEXT_DOMAIN); ?></option>
76
+ <option value="60" <?php selected($wc_comment_list_update_timer, '60'); ?>>1 <?php _e('Minute', WC_Core::$TEXT_DOMAIN); ?></option>
77
+ <option value="180" <?php selected($wc_comment_list_update_timer, '180'); ?>>3 <?php _e('Minutes', WC_Core::$TEXT_DOMAIN); ?></option>
78
+ <option value="300" <?php selected($wc_comment_list_update_timer, '300'); ?>>5 <?php _e('Minutes', WC_Core::$TEXT_DOMAIN); ?></option>
79
+ <option value="600" <?php selected($wc_comment_list_update_timer, '600'); ?>>10 <?php _e('Minutes', WC_Core::$TEXT_DOMAIN); ?></option>
80
  </select>
81
  </td>
82
  </tr>
83
 
84
  <tr valign="top">
85
  <th scope="row">
86
+ <?php _e('Hide Voting buttons', WC_Core::$TEXT_DOMAIN); ?>
87
  </th>
88
  <td colspan="3">
89
  <label for="wc_voting_buttons_show_hide">
94
 
95
  <tr valign="top">
96
  <th scope="row">
97
+ <?php _e('Hide Share Button', WC_Core::$TEXT_DOMAIN); ?>
98
  </th>
99
  <td colspan="3">
100
  <label for="wc_share_buttons_show_hide">
105
 
106
  <tr valign="top">
107
  <th scope="row">
108
+ <?php _e('Hide the CAPTCHA field', WC_Core::$TEXT_DOMAIN); ?>
109
  </th>
110
  <td colspan="3">
111
  <label for="wc_captcha_show_hide">
116
 
117
  <tr valign="top">
118
  <th scope="row">
119
+ <?php _e('User Must be registered to comment', WC_Core::$TEXT_DOMAIN); ?>
120
  </th>
121
  <td colspan="3">
122
  <fieldset>
134
 
135
  <tr valign="top">
136
  <th scope="row">
137
+ <?php _e('Show logged-in user name and logout link on top of main form', WC_Core::$TEXT_DOMAIN); ?>
138
+ </th>
139
+ <td colspan="3">
140
+ <label for="wc_show_hide_loggedin_username">
141
+ <input type="checkbox" <?php checked($this->wc_options_serialized->wc_show_hide_loggedin_username == 1) ?> value="1" name="wc_show_hide_loggedin_username" id="wc_show_hide_loggedin_username" />
142
+ </label>
143
+ </td>
144
+ </tr>
145
+
146
+ <tr valign="top">
147
+ <th scope="row">
148
+ <?php _e('Held new comments for moderation', WC_Core::$TEXT_DOMAIN); ?>
149
  </th>
150
  <td colspan="3">
151
  <label for="wc_held_comment_to_moderate">
156
 
157
  <tr valign="top">
158
  <th scope="row">
159
+ <?php _e('Hide Reply button for Guests', WC_Core::$TEXT_DOMAIN); ?>
160
  </th>
161
  <td colspan="3">
162
  <label for="wc_reply_button_guests_show_hide">
167
 
168
  <tr valign="top">
169
  <th scope="row">
170
+ <?php _e('Hide Reply button for Members', WC_Core::$TEXT_DOMAIN); ?>
171
  </th>
172
  <td colspan="3">
173
  <label for="wc_reply_button_members_show_hide">
178
 
179
  <tr valign="top">
180
  <th scope="row">
181
+ <?php _e('Hide Author Titles', WC_Core::$TEXT_DOMAIN); ?>
182
  </th>
183
  <td colspan="3">
184
  <label for="wc_author_titles_show_hide">
189
 
190
  <tr valign="top">
191
  <th scope="row">
192
+ <?php _e('Comment Threads Per Page', WC_Core::$TEXT_DOMAIN); ?>
193
  </th>
194
  <td colspan="3">
195
  <label for="wc_comment_count">
200
 
201
  <tr valign="top">
202
  <th scope="row">
203
+ <label for="wc_comments_max_depth"><?php _e('Comments max depth', WC_Core::$TEXT_DOMAIN); ?></label>
204
  </th>
205
  <td colspan="3">
206
  <select id="wc_comments_max_depth" name="wc_comments_max_depth">
207
  <?php $wc_comments_max_depth = isset($this->wc_options_serialized->wc_comments_max_depth) ? $this->wc_options_serialized->wc_comments_max_depth : 3; ?>
208
+ <option value="1" <?php selected($wc_comments_max_depth, '1'); ?>>1 <?php _e('Level', WC_Core::$TEXT_DOMAIN); ?></option>
209
+ <option value="2" <?php selected($wc_comments_max_depth, '2'); ?>>2 <?php _e('Levels', WC_Core::$TEXT_DOMAIN); ?></option>
210
+ <option value="3" <?php selected($wc_comments_max_depth, '3'); ?>>3 <?php _e('Levels', WC_Core::$TEXT_DOMAIN); ?></option>
211
+ <option value="4" <?php selected($wc_comments_max_depth, '4'); ?>>4 <?php _e('Levels', WC_Core::$TEXT_DOMAIN); ?></option>
212
+ <option value="5" <?php selected($wc_comments_max_depth, '5'); ?>>5 <?php _e('Levels', WC_Core::$TEXT_DOMAIN); ?></option>
213
  </select>
214
  </td>
215
  </tr>
216
 
217
  <tr valign="top">
218
  <th scope="row">
219
+ <?php _e('Use WordPress Date/Time format', WC_Core::$TEXT_DOMAIN); ?>
220
+ <p style="font-size:13px; color:#999999; width:80%; padding-left:0px; margin-left:0px;"><?php _e('wpDiscuz shows Human Readable date format. If you check this option it\'ll show the date/time format set in WordPress General Settings.', WC_Core::$TEXT_DOMAIN); ?></p>
221
  </th>
222
  <td colspan="3">
223
  <label for="wc_simple_comment_date">
228
 
229
  <tr valign="top">
230
  <th scope="row">
231
+ <?php _e('Keep checked-on the email notification checkboxes on comment form by default', WC_Core::$TEXT_DOMAIN); ?>
232
+ </th>
233
+ <td colspan="3">
234
+ <label for="wc_comment_reply_checkboxes_default_checked">
235
+ <input type="checkbox" <?php checked($this->wc_options_serialized->wc_comment_reply_checkboxes_default_checked == 1) ?> value="1" name="wc_comment_reply_checkboxes_default_checked" id="wc_comment_reply_checkboxes_default_checked" />
236
+ </label>
237
+ </td>
238
  </tr>
239
 
240
  <tr valign="top">
241
  <th scope="row">
242
+ <span><?php _e('Show "Notify of all new follow-up comments"', WC_Core::$TEXT_DOMAIN); ?></span><br />
243
+ <span style="line-height:22px;"><?php _e('Show "Notify of new replies to all my comments"', WC_Core::$TEXT_DOMAIN); ?></span><br />
244
+ <span style="line-height:22px;"><?php _e('Show "Notify of new replies to this comment"', WC_Core::$TEXT_DOMAIN); ?></span><br />
245
+ <p style="font-size:13px; color:#999999; width:80%; padding-left:0px; margin-left:0px;">
246
+ <?php _e('Please keep all three or at least one of those options ON, otherwise users will not have any option for email notifications and they\'ll not get any messages.', WC_Core::$TEXT_DOMAIN) ?>
247
+ </p>
248
  </th>
249
  <td colspan="3">
250
+ <label for="wc_show_hide_comment_checkbox">
251
  <input type="checkbox" <?php checked($this->wc_options_serialized->wc_show_hide_comment_checkbox == 1) ?> value="1" name="wc_show_hide_comment_checkbox" id="wc_show_hide_comment_checkbox" />
252
  </label>
253
  <br />
254
+ <label for="wc_show_hide_all_reply_checkbox" style="line-height:22px;">
255
+ <input type="checkbox" <?php checked($this->wc_options_serialized->wc_show_hide_all_reply_checkbox == 1) ?> value="1" name="wc_show_hide_all_reply_checkbox" id="wc_show_hide_all_reply_checkbox" />
256
+ </label><br />
257
  <label for="wc_show_hide_reply_checkbox" style="line-height:22px;">
258
  <input type="checkbox" <?php checked($this->wc_options_serialized->wc_show_hide_reply_checkbox == 1) ?> value="1" name="wc_show_hide_reply_checkbox" id="wc_show_hide_reply_checkbox" />
259
  </label>
261
  </tr>
262
  <tr valign="top">
263
  <th scope="row">
264
+ <label for="wc_comment_text_size"><?php _e('Comment text size in pixels', WC_Core::$TEXT_DOMAIN); ?></label>
265
  </th>
266
  <td colspan="3">
267
  <select id="wc_comment_text_size" name="wc_comment_text_size">
277
 
278
  <tr valign="top">
279
  <th scope="row">
280
+ <label for="wc_form_bg_color"><?php _e('Comment Form Background Color', WC_Core::$TEXT_DOMAIN); ?></label>
281
  </th>
282
  <td width="1">
283
+ <input type="text" class="regular-text" value="<?php echo isset($this->wc_options_serialized->wc_form_bg_color) ? $this->wc_options_serialized->wc_form_bg_color : '#f9f9f9'; ?>" id="wc_form_bg_color" name="wc_form_bg_color" placeholder="<?php _e('Example: #00ff00', WC_Core::$TEXT_DOMAIN); ?>"/>
284
  </td>
285
 
286
  <td class="picker_img_cell">
301
 
302
  <tr valign="top">
303
  <th scope="row">
304
+ <label for="wc_comment_bg_color"><?php _e('Comment Background Color', WC_Core::$TEXT_DOMAIN); ?></label>
305
  </th>
306
  <td width="1">
307
+ <input type="text" class="regular-text" value="<?php echo $this->wc_options_serialized->wc_comment_bg_color; ?>" id="wc_comment_bg_color" name="wc_comment_bg_color" placeholder="<?php _e('Example: #00ff00', WC_Core::$TEXT_DOMAIN); ?>"/>
308
  </td>
309
 
310
  <td class="picker_img_cell">
325
 
326
  <tr valign="top">
327
  <th scope="row">
328
+ <label for="wc_reply_bg_color"><?php _e('Reply Background Color', WC_Core::$TEXT_DOMAIN); ?></label>
329
  </th>
330
  <td>
331
+ <input type="text" class="regular-text" value="<?php echo $this->wc_options_serialized->wc_reply_bg_color; ?>" id="wc_reply_bg_color" name="wc_reply_bg_color" placeholder="<?php _e('Example: #00ff00', WC_Core::$TEXT_DOMAIN); ?>"/>
332
  </td>
333
 
334
  <td class="picker_img_cell">
349
 
350
  <tr valign="top">
351
  <th scope="row">
352
+ <label for="wc_comment_text_color"><?php _e('Comment Text Color', WC_Core::$TEXT_DOMAIN); ?></label>
353
  </th>
354
  <td>
355
+ <input type="text" class="regular-text" value="<?php echo $this->wc_options_serialized->wc_comment_text_color; ?>" id="wc_comment_text_color" name="wc_comment_text_color" placeholder="<?php _e('Example: #00ff00', WC_Core::$TEXT_DOMAIN); ?>"/>
356
  </td>
357
 
358
  <td class="picker_img_cell">
374
 
375
  <tr valign="top">
376
  <th scope="row">
377
+ <label for="wc_author_title_color"><?php _e('Author title color', WC_Core::$TEXT_DOMAIN); ?></label>
378
  </th>
379
  <td>
380
+ <input type="text" class="regular-text" value="<?php echo $this->wc_options_serialized->wc_author_title_color; ?>" id="wc_author_title_color" name="wc_author_title_color" placeholder="<?php _e('Example: #00ff00', WC_Core::$TEXT_DOMAIN); ?>"/>
381
  </td>
382
 
383
  <td class="picker_img_cell">
399
 
400
  <tr valign="top">
401
  <th scope="row">
402
+ <label for="wc_vote_reply_color"><?php _e('Vote, Reply, Share, Edit links text colors', WC_Core::$TEXT_DOMAIN); ?></label>
403
  </th>
404
  <td>
405
+ <input type="text" class="regular-text" value="<?php echo $this->wc_options_serialized->wc_vote_reply_color; ?>" id="wc_vote_reply_color" name="wc_vote_reply_color" placeholder="<?php _e('Example: #00ff00', WC_Core::$TEXT_DOMAIN); ?>"/>
406
  </td>
407
 
408
  <td class="picker_img_cell">
423
 
424
  <tr valign="top">
425
  <th scope="row">
426
+ <label for="wc_new_loaded_comment_bg_color"><?php _e('New loaded comments\' background color', WC_Core::$TEXT_DOMAIN); ?></label>
427
  </th>
428
  <td>
429
+ <input type="text" class="regular-text" value="<?php echo isset($this->wc_options_serialized->wc_new_loaded_comment_bg_color) ? $this->wc_options_serialized->wc_new_loaded_comment_bg_color : 'rgb(254,254,254)'; ?>" id="wc_new_loaded_comment_bg_color" name="wc_new_loaded_comment_bg_color" placeholder="<?php _e('Example: #00ff00', WC_Core::$TEXT_DOMAIN); ?>"/>
430
  </td>
431
 
432
  <td class="picker_img_cell">
447
 
448
  <tr valign="top">
449
  <th scope="row">
450
+ <label for="wc_custom_css"><?php _e('Custom CSS Code', WC_Core::$TEXT_DOMAIN); ?></label>
451
  </th>
452
  <td>
453
  <textarea cols="50" rows="10" class="regular-text" id="wc_custom_css" name="wc_custom_css" placeholder=""><?php echo stripslashes($this->wc_options_serialized->wc_custom_css); ?></textarea>
options-templates/options-template-phrases.php CHANGED
@@ -1,8 +1,8 @@
1
- <th colspan="3" scope="col" style="margin-bottom: 5px;"><h2><?php _e('Front-end phrases', 'wpdiscuz'); ?></h2></th>
2
 
3
  <tr valign="top">
4
  <th scope="row">
5
- <?php _e('Leave a Reply', 'wpdiscuz'); ?>
6
  </th>
7
  <td colspan="3">
8
  <label for="wc_leave_a_reply_text">
@@ -13,7 +13,7 @@
13
 
14
  <tr valign="top">
15
  <th scope="row">
16
- <?php _e('Be the first to comment', 'wpdiscuz'); ?>
17
  </th>
18
  <td colspan="3">
19
  <label for="wc_be_the_first_text">
@@ -24,7 +24,7 @@
24
 
25
  <tr valign="top">
26
  <th scope="row">
27
- <?php _e('Comment', 'wpdiscuz'); ?>
28
  </th>
29
  <td colspan="3">
30
  <label for="wc_header_text">
@@ -35,7 +35,7 @@
35
 
36
  <tr valign="top">
37
  <th scope="row">
38
- <?php _e('On', 'wpdiscuz'); ?>
39
  </th>
40
  <td colspan="3">
41
  <label for="wc_header_on_text">
@@ -46,7 +46,7 @@
46
 
47
  <tr valign="top">
48
  <th scope="row">
49
- <?php _e('Comment Field Start', 'wpdiscuz'); ?>
50
  </th>
51
  <td colspan="3">
52
  <label for="wc_comment_start_text">
@@ -57,7 +57,7 @@
57
 
58
  <tr valign="top">
59
  <th scope="row">
60
- <?php _e('Comment Field Join', 'wpdiscuz'); ?>
61
  </th>
62
  <td colspan="3">
63
  <label for="wc_comment_join_text">
@@ -68,7 +68,7 @@
68
 
69
  <tr valign="top">
70
  <th scope="row">
71
- <?php _e('Email Field', 'wpdiscuz'); ?>
72
  </th>
73
  <td colspan="3">
74
  <label for="wc_email_text">
@@ -79,7 +79,7 @@
79
 
80
  <tr valign="top">
81
  <th scope="row">
82
- <?php _e('Name Field', 'wpdiscuz'); ?>
83
  </th>
84
  <td colspan="3">
85
  <label for="wc_name_text">
@@ -90,7 +90,7 @@
90
 
91
  <tr valign="top">
92
  <th scope="row">
93
- <?php _e('CAPTCHA Field', 'wpdiscuz'); ?>
94
  </th>
95
  <td colspan="3">
96
  <label for="wc_captcha_text">
@@ -101,7 +101,7 @@
101
 
102
  <tr valign="top">
103
  <th scope="row">
104
- <?php _e('Submit Button', 'wpdiscuz'); ?>
105
  </th>
106
  <td colspan="3">
107
  <label for="wc_submit_text">
@@ -110,31 +110,53 @@
110
  </td>
111
  </tr>
112
 
 
 
 
 
 
 
 
 
 
 
113
 
114
  <tr valign="top">
115
  <th scope="row">
116
- <?php _e('Notify on new comments (checkbox)', 'wpdiscuz'); ?>
117
  </th>
118
  <td colspan="3">
119
  <label for="wc_notify_on_new_comment">
120
- <input type="text" value="<?php echo isset($this->wc_options_serialized->wc_phrases['wc_notify_on_new_comment']) ? $this->wc_options_serialized->wc_phrases['wc_notify_on_new_comment'] : _e('Notify of all new follow-up comments', 'wpdiscuz'); ?>" name="wc_notify_on_new_comment" id="wc_notify_on_new_comment" />
 
 
 
 
 
 
 
 
 
 
 
121
  </label>
122
  </td>
123
  </tr>
 
124
  <tr valign="top">
125
  <th scope="row">
126
- <?php _e('Notify on new replies (checkbox)', 'wpdiscuz'); ?>
127
  </th>
128
  <td colspan="3">
129
  <label for="wc_notify_on_new_reply">
130
- <input type="text" value="<?php echo isset($this->wc_options_serialized->wc_phrases['wc_notify_on_new_reply']) ? $this->wc_options_serialized->wc_phrases['wc_notify_on_new_reply'] : _e('Notify of new replies to this comment', 'wpdiscuz'); ?>" name="wc_notify_on_new_reply" id="wc_notify_on_new_reply" />
131
  </label>
132
  </td>
133
  </tr>
134
 
135
  <tr valign="top">
136
  <th scope="row">
137
- <?php _e('Load More Button', 'wpdiscuz'); ?>
138
  </th>
139
  <td colspan="3">
140
  <label for="wc_load_more_submit_text">
@@ -145,7 +167,7 @@
145
 
146
  <tr valign="top">
147
  <th scope="row">
148
- <?php _e('Reply', 'wpdiscuz'); ?>
149
  </th>
150
  <td colspan="3">
151
  <label for="wc_reply_text">
@@ -156,7 +178,7 @@
156
 
157
  <tr valign="top">
158
  <th scope="row">
159
- <?php _e('Share', 'wpdiscuz'); ?>
160
  </th>
161
  <td colspan="3">
162
  <label for="wc_share_text">
@@ -167,7 +189,7 @@
167
 
168
  <tr valign="top">
169
  <th scope="row">
170
- <?php _e('Share On Facebook', 'wpdiscuz'); ?>
171
  </th>
172
  <td colspan="3">
173
  <label for="wc_share_facebook">
@@ -178,7 +200,7 @@
178
 
179
  <tr valign="top" >
180
  <th scope="row">
181
- <?php _e('Share On Twitter', 'wpdiscuz'); ?>
182
  </th>
183
  <td colspan="3">
184
  <label for="wc_share_twitter">
@@ -189,7 +211,7 @@
189
 
190
  <tr valign="top">
191
  <th scope="row">
192
- <?php _e('Share On Google', 'wpdiscuz'); ?>
193
  </th>
194
  <td colspan="3">
195
  <label for="wc_share_google">
@@ -200,7 +222,7 @@
200
 
201
  <tr valign="top" >
202
  <th scope="row">
203
- <?php _e('Hide Replies', 'wpdiscuz'); ?>
204
  </th>
205
  <td colspan="3">
206
  <label for="wc_hide_replies_text">
@@ -211,7 +233,7 @@
211
 
212
  <tr valign="top">
213
  <th scope="row">
214
- <?php _e('Show Replies', 'wpdiscuz'); ?>
215
  </th>
216
  <td colspan="3">
217
  <label for="wc_show_replies_text">
@@ -222,7 +244,7 @@
222
 
223
  <tr valign="top">
224
  <th scope="row">
225
- <?php _e('Title For Guests', 'wpdiscuz'); ?>
226
  </th>
227
  <td colspan="3">
228
  <label for="wc_user_title_guest_text">
@@ -233,7 +255,7 @@
233
 
234
  <tr valign="top">
235
  <th scope="row">
236
- <?php _e('Title For Members', 'wpdiscuz'); ?>
237
  </th>
238
  <td colspan="3">
239
  <label for="wc_user_title_member_text">
@@ -247,7 +269,7 @@
247
 
248
  <tr valign="top">
249
  <th scope="row">
250
- <?php _e('Title For Authors', 'wpdiscuz'); ?>
251
  </th>
252
  <td colspan="3">
253
  <label for="wc_user_title_author_text">
@@ -258,7 +280,7 @@
258
 
259
  <tr valign="top">
260
  <th scope="row">
261
- <?php _e('Title For Admins', 'wpdiscuz'); ?>
262
  </th>
263
  <td colspan="3">
264
  <label for="wc_user_title_admin_text">
@@ -269,7 +291,7 @@
269
 
270
  <tr valign="top">
271
  <th scope="row">
272
- <?php _e('Email Subject', 'wpdiscuz'); ?>
273
  </th>
274
  <td colspan="3">
275
  <label for="wc_email_subject">
@@ -280,7 +302,7 @@
280
 
281
  <tr valign="top">
282
  <th scope="row">
283
- <?php _e('Email Message', 'wpdiscuz'); ?>
284
  </th>
285
  <td colspan="3">
286
  <label for="wc_email_message">
@@ -291,18 +313,18 @@
291
 
292
  <tr valign="top">
293
  <th scope="row">
294
- <?php _e('New Reply Subject', 'wpdiscuz'); ?>
295
  </th>
296
  <td colspan="3">
297
  <label for="wc_new_reply_email_subject">
298
- <input type="text" value="<?php echo isset($this->wc_options_serialized->wc_phrases['wc_new_reply_email_subject']) ? $this->wc_options_serialized->wc_phrases['wc_new_reply_email_subject'] : _e('New Reply', 'wpdiscuz'); ?>" name="wc_new_reply_email_subject" id="wc_new_reply_email_subject" />
299
  </label>
300
  </td>
301
  </tr>
302
 
303
  <tr valign="top">
304
  <th scope="row">
305
- <?php _e('New Reply Message', 'wpdiscuz'); ?>
306
  </th>
307
  <td colspan="3">
308
  <label for="wc_new_reply_email_message">
@@ -313,7 +335,7 @@
313
 
314
  <tr valign="top">
315
  <th scope="row">
316
- <?php _e('Subscribed on this comment replies', 'wpdiscuz'); ?>
317
  </th>
318
  <td colspan="3">
319
  <label for="wc_subscribed_on_comment">
@@ -324,7 +346,18 @@
324
 
325
  <tr valign="top">
326
  <th scope="row">
327
- <?php _e('Subscribed on this post', 'wpdiscuz'); ?>
 
 
 
 
 
 
 
 
 
 
 
328
  </th>
329
  <td colspan="3">
330
  <label for="wc_subscribed_on_post">
@@ -335,18 +368,18 @@
335
 
336
  <tr valign="top">
337
  <th scope="row">
338
- <?php _e('New Reply Message', 'wpdiscuz'); ?>
339
  </th>
340
  <td colspan="3">
341
  <label for="wc_unsubscribe">
342
- <input type="text" name="wc_unsubscribe" id="wc_unsubscribe" class="wc_unsubscribe" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_unsubscribe']; ?>" placeholder="<?php echo _e('Unsubscribe', 'wpdiscuz'); ?>"/>
343
  </label>
344
  </td>
345
  </tr>
346
 
347
  <tr valign="top">
348
  <th scope="row">
349
- <?php _e('You\'ve successfully unsubscribed.', 'wpdiscuz'); ?>
350
  </th>
351
  <td colspan="3">
352
  <label for="wc_unsubscribe_message">
@@ -357,7 +390,7 @@
357
 
358
  <tr valign="top">
359
  <th scope="row">
360
- <?php _e('Error message for empty field', 'wpdiscuz'); ?>
361
  </th>
362
  <td colspan="3">
363
  <label for="wc_error_empty_text">
@@ -368,7 +401,7 @@
368
 
369
  <tr valign="top">
370
  <th scope="row">
371
- <?php _e('Error message for invalid email field', 'wpdiscuz'); ?>
372
  </th>
373
  <td colspan="3">
374
  <label for="wc_error_email_text">
@@ -379,7 +412,7 @@
379
 
380
  <tr valign="top">
381
  <th scope="row">
382
- <?php _e('Year', 'wpdiscuz'); ?>
383
  </th>
384
  <td colspan="3">
385
  <label for="wc_year_text">
@@ -390,7 +423,7 @@
390
 
391
  <tr valign="top">
392
  <th scope="row">
393
- <?php _e('Month', 'wpdiscuz'); ?>
394
  </th>
395
  <td colspan="3">
396
  <label for="wc_month_text">
@@ -401,7 +434,7 @@
401
 
402
  <tr valign="top">
403
  <th scope="row">
404
- <?php _e('Day', 'wpdiscuz'); ?>
405
  </th>
406
  <td colspan="3">
407
  <label for="wc_day_text">
@@ -412,7 +445,7 @@
412
 
413
  <tr valign="top">
414
  <th scope="row">
415
- <?php _e('Hour', 'wpdiscuz'); ?>
416
  </th>
417
  <td colspan="3">
418
  <label for="wc_hour_text">
@@ -423,7 +456,7 @@
423
 
424
  <tr valign="top">
425
  <th scope="row">
426
- <?php _e('Minute', 'wpdiscuz'); ?>
427
  </th>
428
  <td colspan="3">
429
  <label for="wc_minute_text">
@@ -434,7 +467,7 @@
434
 
435
  <tr valign="top">
436
  <th scope="row">
437
- <?php _e('Second', 'wpdiscuz'); ?>
438
  </th>
439
  <td colspan="3">
440
  <label for="wc_second_text">
@@ -445,7 +478,7 @@
445
 
446
  <tr valign="top">
447
  <th scope="row">
448
- <?php _e('Plural (Ex. user -> user + s)', 'wpdiscuz'); ?>
449
  </th>
450
  <td colspan="3">
451
  <label for="wc_plural_text">
@@ -456,7 +489,7 @@
456
 
457
  <tr valign="top">
458
  <th scope="row">
459
- <?php _e('Commented "right now" text', 'wpdiscuz'); ?>
460
  </th>
461
  <td colspan="3">
462
  <label for="wc_right_now_text">
@@ -467,7 +500,7 @@
467
 
468
  <tr valign="top">
469
  <th scope="row">
470
- <?php _e('Ago text', 'wpdiscuz'); ?>
471
  </th>
472
  <td colspan="3">
473
  <label for="wc_ago_text">
@@ -478,18 +511,18 @@
478
 
479
  <tr valign="top">
480
  <th scope="row">
481
- <?php _e('"Today" text', 'wpdiscuz'); ?>
482
  </th>
483
  <td colspan="3">
484
  <label for="wc_posted_today_text">
485
- <input type="text" value="<?php echo isset($this->wc_options_serialized->wc_phrases['wc_posted_today_text']) ? $this->wc_options_serialized->wc_phrases['wc_posted_today_text'] : _e('Today', 'wpdiscuz'); ?>" name="wc_posted_today_text" id="wc_posted_today_text" placeholder="<?php _e('Today', 'wpdiscuz'); ?> 9:26 PM"/>
486
  </label>
487
  </td>
488
  </tr>
489
 
490
  <tr valign="top">
491
  <th scope="row">
492
- <?php _e('You must be', 'wpdiscuz'); ?>
493
  </th>
494
  <td colspan="3">
495
  <label for="wc_you_must_be_text">
@@ -498,9 +531,34 @@
498
  </td>
499
  </tr>
500
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
501
  <tr valign="top">
502
  <th scope="row">
503
- <?php _e('Logged In', 'wpdiscuz'); ?>
504
  </th>
505
  <td colspan="3">
506
  <label for="wc_logged_in_text">
@@ -511,7 +569,7 @@
511
 
512
  <tr valign="top">
513
  <th scope="row">
514
- <?php _e('To post a comment', 'wpdiscuz'); ?>
515
  </th>
516
  <td colspan="3">
517
  <label for="wc_to_post_comment_text">
@@ -522,7 +580,7 @@
522
 
523
  <tr valign="top">
524
  <th scope="row">
525
- <?php _e('Vote Up', 'wpdiscuz'); ?>
526
  </th>
527
  <td colspan="3">
528
  <label for="wc_vote_up">
@@ -533,7 +591,7 @@
533
 
534
  <tr valign="top">
535
  <th scope="row">
536
- <?php _e('Vote Down', 'wpdiscuz'); ?>
537
  </th>
538
  <td colspan="3">
539
  <label for="wc_vote_down">
@@ -544,7 +602,7 @@
544
 
545
  <tr valign="top">
546
  <th scope="row">
547
- <?php _e('Vote Counted', 'wpdiscuz'); ?>
548
  </th>
549
  <td colspan="3">
550
  <label for="wc_vote_counted">
@@ -555,7 +613,7 @@
555
 
556
  <tr valign="top">
557
  <th scope="row">
558
- <?php _e('You can vote only 1 time', 'wpdiscuz'); ?>
559
  </th>
560
  <td colspan="3">
561
  <label for="wc_vote_only_one_time">
@@ -566,7 +624,7 @@
566
 
567
  <tr valign="top">
568
  <th scope="row">
569
- <?php _e('Voting Error', 'wpdiscuz'); ?>
570
  </th>
571
  <td colspan="3">
572
  <label for="wc_voting_error">
@@ -577,7 +635,7 @@
577
 
578
  <tr valign="top">
579
  <th scope="row">
580
- <?php _e('Login To Vote', 'wpdiscuz'); ?>
581
  </th>
582
  <td colspan="3">
583
  <label for="wc_login_to_vote">
@@ -588,7 +646,7 @@
588
 
589
  <tr valign="top">
590
  <th scope="row">
591
- <?php _e('You Cannot Vote On Your Comment', 'wpdiscuz'); ?>
592
  </th>
593
  <td colspan="3">
594
  <label for="wc_self_vote">
@@ -599,7 +657,7 @@
599
 
600
  <tr valign="top">
601
  <th scope="row">
602
- <?php _e('Invalid Captcha Code', 'wpdiscuz'); ?>
603
  </th>
604
  <td colspan="3">
605
  <label for="wc_invalid_captcha">
@@ -610,7 +668,7 @@
610
 
611
  <tr valign="top">
612
  <th scope="row">
613
- <?php _e('Some of field value is invalid', 'wpdiscuz'); ?>
614
  </th>
615
  <td colspan="3">
616
  <label for="wc_invalid_field">
@@ -621,7 +679,7 @@
621
 
622
  <tr valign="top">
623
  <th scope="row">
624
- <?php _e('Comment waiting moderation', 'wpdiscuz'); ?>
625
  </th>
626
  <td colspan="3">
627
  <label for="wc_held_for_moderate">
@@ -632,7 +690,7 @@
632
 
633
  <tr valign="top">
634
  <th scope="row">
635
- <?php _e('Button text if has new comment', 'wpdiscuz'); ?>
636
  </th>
637
  <td colspan="3">
638
  <label for="wc_new_comment_button_text">
@@ -643,7 +701,7 @@
643
 
644
  <tr valign="top">
645
  <th scope="row">
646
- <?php _e('Button text if has new comments', 'wpdiscuz'); ?>
647
  </th>
648
  <td colspan="3">
649
  <label for="wc_new_comments_button_text">
@@ -654,7 +712,7 @@
654
 
655
  <tr valign="top">
656
  <th scope="row">
657
- <?php _e('Button text if has new reply', 'wpdiscuz'); ?>
658
  </th>
659
  <td colspan="3">
660
  <label for="wc_new_reply_button_text">
@@ -665,7 +723,7 @@
665
 
666
  <tr valign="top">
667
  <th scope="row">
668
- <?php _e('Button text if has new replies', 'wpdiscuz'); ?>
669
  </th>
670
  <td colspan="3">
671
  <label for="wc_new_replies_button_text">
@@ -676,7 +734,7 @@
676
 
677
  <tr valign="top">
678
  <th scope="row">
679
- <?php _e('Text on load more button if has new comment(s)', 'wpdiscuz'); ?>
680
  </th>
681
  <td colspan="3">
682
  <label for="wc_new_comments_text">
1
+ <th colspan="3" scope="col" style="margin-bottom: 5px;"><h2><?php _e('Front-end phrases', WC_Core::$TEXT_DOMAIN); ?></h2></th>
2
 
3
  <tr valign="top">
4
  <th scope="row">
5
+ <?php _e('Leave a Reply', WC_Core::$TEXT_DOMAIN); ?>
6
  </th>
7
  <td colspan="3">
8
  <label for="wc_leave_a_reply_text">
13
 
14
  <tr valign="top">
15
  <th scope="row">
16
+ <?php _e('Be the first to comment', WC_Core::$TEXT_DOMAIN); ?>
17
  </th>
18
  <td colspan="3">
19
  <label for="wc_be_the_first_text">
24
 
25
  <tr valign="top">
26
  <th scope="row">
27
+ <?php _e('Comment', WC_Core::$TEXT_DOMAIN); ?>
28
  </th>
29
  <td colspan="3">
30
  <label for="wc_header_text">
35
 
36
  <tr valign="top">
37
  <th scope="row">
38
+ <?php _e('On', WC_Core::$TEXT_DOMAIN); ?>
39
  </th>
40
  <td colspan="3">
41
  <label for="wc_header_on_text">
46
 
47
  <tr valign="top">
48
  <th scope="row">
49
+ <?php _e('Comment Field Start', WC_Core::$TEXT_DOMAIN); ?>
50
  </th>
51
  <td colspan="3">
52
  <label for="wc_comment_start_text">
57
 
58
  <tr valign="top">
59
  <th scope="row">
60
+ <?php _e('Comment Field Join', WC_Core::$TEXT_DOMAIN); ?>
61
  </th>
62
  <td colspan="3">
63
  <label for="wc_comment_join_text">
68
 
69
  <tr valign="top">
70
  <th scope="row">
71
+ <?php _e('Email Field', WC_Core::$TEXT_DOMAIN); ?>
72
  </th>
73
  <td colspan="3">
74
  <label for="wc_email_text">
79
 
80
  <tr valign="top">
81
  <th scope="row">
82
+ <?php _e('Name Field', WC_Core::$TEXT_DOMAIN); ?>
83
  </th>
84
  <td colspan="3">
85
  <label for="wc_name_text">
90
 
91
  <tr valign="top">
92
  <th scope="row">
93
+ <?php _e('CAPTCHA Field', WC_Core::$TEXT_DOMAIN); ?>
94
  </th>
95
  <td colspan="3">
96
  <label for="wc_captcha_text">
101
 
102
  <tr valign="top">
103
  <th scope="row">
104
+ <?php _e('Submit Button', WC_Core::$TEXT_DOMAIN); ?>
105
  </th>
106
  <td colspan="3">
107
  <label for="wc_submit_text">
110
  </td>
111
  </tr>
112
 
113
+ <tr valign="top">
114
+ <th scope="row">
115
+ <?php _e('Manage Subscriptions', WC_Core::$TEXT_DOMAIN); ?>
116
+ </th>
117
+ <td colspan="3">
118
+ <label for="wc_manage_subscribtions">
119
+ <input type="text" value="<?php echo isset($this->wc_options_serialized->wc_phrases['wc_manage_subscribtions']) ? $this->wc_options_serialized->wc_phrases['wc_manage_subscribtions'] : _e('Manage Subscriptions', WC_Core::$TEXT_DOMAIN); ?>" name="wc_manage_subscribtions" id="wc_manage_subscribtions" />
120
+ </label>
121
+ </td>
122
+ </tr>
123
 
124
  <tr valign="top">
125
  <th scope="row">
126
+ <?php _e('Notify on new comments (checkbox)', WC_Core::$TEXT_DOMAIN); ?>
127
  </th>
128
  <td colspan="3">
129
  <label for="wc_notify_on_new_comment">
130
+ <input type="text" value="<?php echo isset($this->wc_options_serialized->wc_phrases['wc_notify_on_new_comment']) ? $this->wc_options_serialized->wc_phrases['wc_notify_on_new_comment'] : _e('Notify of all new follow-up comments', WC_Core::$TEXT_DOMAIN); ?>" name="wc_notify_on_new_comment" id="wc_notify_on_new_comment" />
131
+ </label>
132
+ </td>
133
+ </tr>
134
+
135
+ <tr valign="top">
136
+ <th scope="row">
137
+ <?php _e('Notify on all new replies (checkbox)', WC_Core::$TEXT_DOMAIN); ?>
138
+ </th>
139
+ <td colspan="3">
140
+ <label for="wc_notify_on_all_new_reply">
141
+ <input type="text" value="<?php echo isset($this->wc_options_serialized->wc_phrases['wc_notify_on_all_new_reply']) ? $this->wc_options_serialized->wc_phrases['wc_notify_on_all_new_reply'] : _e('Notify of new replies to all my comments', WC_Core::$TEXT_DOMAIN); ?>" name="wc_notify_on_all_new_reply" id="wc_notify_on_all_new_reply" />
142
  </label>
143
  </td>
144
  </tr>
145
+
146
  <tr valign="top">
147
  <th scope="row">
148
+ <?php _e('Notify on new replies (checkbox)', WC_Core::$TEXT_DOMAIN); ?>
149
  </th>
150
  <td colspan="3">
151
  <label for="wc_notify_on_new_reply">
152
+ <input type="text" value="<?php echo isset($this->wc_options_serialized->wc_phrases['wc_notify_on_new_reply']) ? $this->wc_options_serialized->wc_phrases['wc_notify_on_new_reply'] : _e('Notify of new replies to this comment', WC_Core::$TEXT_DOMAIN); ?>" name="wc_notify_on_new_reply" id="wc_notify_on_new_reply" />
153
  </label>
154
  </td>
155
  </tr>
156
 
157
  <tr valign="top">
158
  <th scope="row">
159
+ <?php _e('Load More Button', WC_Core::$TEXT_DOMAIN); ?>
160
  </th>
161
  <td colspan="3">
162
  <label for="wc_load_more_submit_text">
167
 
168
  <tr valign="top">
169
  <th scope="row">
170
+ <?php _e('Reply', WC_Core::$TEXT_DOMAIN); ?>
171
  </th>
172
  <td colspan="3">
173
  <label for="wc_reply_text">
178
 
179
  <tr valign="top">
180
  <th scope="row">
181
+ <?php _e('Share', WC_Core::$TEXT_DOMAIN); ?>
182
  </th>
183
  <td colspan="3">
184
  <label for="wc_share_text">
189
 
190
  <tr valign="top">
191
  <th scope="row">
192
+ <?php _e('Share On Facebook', WC_Core::$TEXT_DOMAIN); ?>
193
  </th>
194
  <td colspan="3">
195
  <label for="wc_share_facebook">
200
 
201
  <tr valign="top" >
202
  <th scope="row">
203
+ <?php _e('Share On Twitter', WC_Core::$TEXT_DOMAIN); ?>
204
  </th>
205
  <td colspan="3">
206
  <label for="wc_share_twitter">
211
 
212
  <tr valign="top">
213
  <th scope="row">
214
+ <?php _e('Share On Google', WC_Core::$TEXT_DOMAIN); ?>
215
  </th>
216
  <td colspan="3">
217
  <label for="wc_share_google">
222
 
223
  <tr valign="top" >
224
  <th scope="row">
225
+ <?php _e('Hide Replies', WC_Core::$TEXT_DOMAIN); ?>
226
  </th>
227
  <td colspan="3">
228
  <label for="wc_hide_replies_text">
233
 
234
  <tr valign="top">
235
  <th scope="row">
236
+ <?php _e('Show Replies', WC_Core::$TEXT_DOMAIN); ?>
237
  </th>
238
  <td colspan="3">
239
  <label for="wc_show_replies_text">
244
 
245
  <tr valign="top">
246
  <th scope="row">
247
+ <?php _e('Title For Guests', WC_Core::$TEXT_DOMAIN); ?>
248
  </th>
249
  <td colspan="3">
250
  <label for="wc_user_title_guest_text">
255
 
256
  <tr valign="top">
257
  <th scope="row">
258
+ <?php _e('Title For Members', WC_Core::$TEXT_DOMAIN); ?>
259
  </th>
260
  <td colspan="3">
261
  <label for="wc_user_title_member_text">
269
 
270
  <tr valign="top">
271
  <th scope="row">
272
+ <?php _e('Title For Authors', WC_Core::$TEXT_DOMAIN); ?>
273
  </th>
274
  <td colspan="3">
275
  <label for="wc_user_title_author_text">
280
 
281
  <tr valign="top">
282
  <th scope="row">
283
+ <?php _e('Title For Admins', WC_Core::$TEXT_DOMAIN); ?>
284
  </th>
285
  <td colspan="3">
286
  <label for="wc_user_title_admin_text">
291
 
292
  <tr valign="top">
293
  <th scope="row">
294
+ <?php _e('Email Subject', WC_Core::$TEXT_DOMAIN); ?>
295
  </th>
296
  <td colspan="3">
297
  <label for="wc_email_subject">
302
 
303
  <tr valign="top">
304
  <th scope="row">
305
+ <?php _e('Email Message', WC_Core::$TEXT_DOMAIN); ?>
306
  </th>
307
  <td colspan="3">
308
  <label for="wc_email_message">
313
 
314
  <tr valign="top">
315
  <th scope="row">
316
+ <?php _e('New Reply Subject', WC_Core::$TEXT_DOMAIN); ?>
317
  </th>
318
  <td colspan="3">
319
  <label for="wc_new_reply_email_subject">
320
+ <input type="text" value="<?php echo isset($this->wc_options_serialized->wc_phrases['wc_new_reply_email_subject']) ? $this->wc_options_serialized->wc_phrases['wc_new_reply_email_subject'] : _e('New Reply', WC_Core::$TEXT_DOMAIN); ?>" name="wc_new_reply_email_subject" id="wc_new_reply_email_subject" />
321
  </label>
322
  </td>
323
  </tr>
324
 
325
  <tr valign="top">
326
  <th scope="row">
327
+ <?php _e('New Reply Message', WC_Core::$TEXT_DOMAIN); ?>
328
  </th>
329
  <td colspan="3">
330
  <label for="wc_new_reply_email_message">
335
 
336
  <tr valign="top">
337
  <th scope="row">
338
+ <?php _e('Subscribed on this comment replies', WC_Core::$TEXT_DOMAIN); ?>
339
  </th>
340
  <td colspan="3">
341
  <label for="wc_subscribed_on_comment">
346
 
347
  <tr valign="top">
348
  <th scope="row">
349
+ <?php _e('Subscribed on all your comments replies', WC_Core::$TEXT_DOMAIN); ?>
350
+ </th>
351
+ <td colspan="3">
352
+ <label for="wc_subscribed_on_all_comment">
353
+ <textarea name="wc_subscribed_on_all_comment" id="wc_subscribed_on_all_comment"><?php echo $this->wc_options_serialized->wc_phrases['wc_subscribed_on_all_comment']; ?></textarea>
354
+ </label>
355
+ </td>
356
+ </tr>
357
+
358
+ <tr valign="top">
359
+ <th scope="row">
360
+ <?php _e('Subscribed on this post', WC_Core::$TEXT_DOMAIN); ?>
361
  </th>
362
  <td colspan="3">
363
  <label for="wc_subscribed_on_post">
368
 
369
  <tr valign="top">
370
  <th scope="row">
371
+ <?php _e('New Reply Message', WC_Core::$TEXT_DOMAIN); ?>
372
  </th>
373
  <td colspan="3">
374
  <label for="wc_unsubscribe">
375
+ <input type="text" name="wc_unsubscribe" id="wc_unsubscribe" class="wc_unsubscribe" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_unsubscribe']; ?>" placeholder="<?php echo _e('Unsubscribe', WC_Core::$TEXT_DOMAIN); ?>"/>
376
  </label>
377
  </td>
378
  </tr>
379
 
380
  <tr valign="top">
381
  <th scope="row">
382
+ <?php _e('You\'ve successfully unsubscribed.', WC_Core::$TEXT_DOMAIN); ?>
383
  </th>
384
  <td colspan="3">
385
  <label for="wc_unsubscribe_message">
390
 
391
  <tr valign="top">
392
  <th scope="row">
393
+ <?php _e('Error message for empty field', WC_Core::$TEXT_DOMAIN); ?>
394
  </th>
395
  <td colspan="3">
396
  <label for="wc_error_empty_text">
401
 
402
  <tr valign="top">
403
  <th scope="row">
404
+ <?php _e('Error message for invalid email field', WC_Core::$TEXT_DOMAIN); ?>
405
  </th>
406
  <td colspan="3">
407
  <label for="wc_error_email_text">
412
 
413
  <tr valign="top">
414
  <th scope="row">
415
+ <?php _e('Year', WC_Core::$TEXT_DOMAIN); ?>
416
  </th>
417
  <td colspan="3">
418
  <label for="wc_year_text">
423
 
424
  <tr valign="top">
425
  <th scope="row">
426
+ <?php _e('Month', WC_Core::$TEXT_DOMAIN); ?>
427
  </th>
428
  <td colspan="3">
429
  <label for="wc_month_text">
434
 
435
  <tr valign="top">
436
  <th scope="row">
437
+ <?php _e('Day', WC_Core::$TEXT_DOMAIN); ?>
438
  </th>
439
  <td colspan="3">
440
  <label for="wc_day_text">
445
 
446
  <tr valign="top">
447
  <th scope="row">
448
+ <?php _e('Hour', WC_Core::$TEXT_DOMAIN); ?>
449
  </th>
450
  <td colspan="3">
451
  <label for="wc_hour_text">
456
 
457
  <tr valign="top">
458
  <th scope="row">
459
+ <?php _e('Minute', WC_Core::$TEXT_DOMAIN); ?>
460
  </th>
461
  <td colspan="3">
462
  <label for="wc_minute_text">
467
 
468
  <tr valign="top">
469
  <th scope="row">
470
+ <?php _e('Second', WC_Core::$TEXT_DOMAIN); ?>
471
  </th>
472
  <td colspan="3">
473
  <label for="wc_second_text">
478
 
479
  <tr valign="top">
480
  <th scope="row">
481
+ <?php _e('Plural (Ex. user -> user + s)', WC_Core::$TEXT_DOMAIN); ?>
482
  </th>
483
  <td colspan="3">
484
  <label for="wc_plural_text">
489
 
490
  <tr valign="top">
491
  <th scope="row">
492
+ <?php _e('Commented "right now" text', WC_Core::$TEXT_DOMAIN); ?>
493
  </th>
494
  <td colspan="3">
495
  <label for="wc_right_now_text">
500
 
501
  <tr valign="top">
502
  <th scope="row">
503
+ <?php _e('Ago text', WC_Core::$TEXT_DOMAIN); ?>
504
  </th>
505
  <td colspan="3">
506
  <label for="wc_ago_text">
511
 
512
  <tr valign="top">
513
  <th scope="row">
514
+ <?php _e('"Today" text', WC_Core::$TEXT_DOMAIN); ?>
515
  </th>
516
  <td colspan="3">
517
  <label for="wc_posted_today_text">
518
+ <input type="text" value="<?php echo isset($this->wc_options_serialized->wc_phrases['wc_posted_today_text']) ? $this->wc_options_serialized->wc_phrases['wc_posted_today_text'] : _e('Today', WC_Core::$TEXT_DOMAIN); ?>" name="wc_posted_today_text" id="wc_posted_today_text" placeholder="<?php _e('Today', WC_Core::$TEXT_DOMAIN); ?> 9:26 PM"/>
519
  </label>
520
  </td>
521
  </tr>
522
 
523
  <tr valign="top">
524
  <th scope="row">
525
+ <?php _e('You must be', WC_Core::$TEXT_DOMAIN); ?>
526
  </th>
527
  <td colspan="3">
528
  <label for="wc_you_must_be_text">
531
  </td>
532
  </tr>
533
 
534
+
535
+ <tr valign="top">
536
+ <th scope="row">
537
+ <?php _e('Logged in as', WC_Core::$TEXT_DOMAIN); ?>
538
+ </th>
539
+ <td colspan="3">
540
+ <label for="wc_logged_in_as">
541
+ <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_logged_in_as']; ?>" name="wc_logged_in_as" id="wc_logged_in_as" />
542
+ </label>
543
+ </td>
544
+ </tr>
545
+ <tr valign="top">
546
+ <th scope="row">
547
+ <?php _e('Log out', WC_Core::$TEXT_DOMAIN); ?>
548
+ </th>
549
+ <td colspan="3">
550
+ <label for="wc_log_out">
551
+ <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_log_out']; ?>" name="wc_log_out" id="wc_log_out" />
552
+ </label>
553
+ </td>
554
+ </tr>
555
+
556
+
557
+
558
+
559
  <tr valign="top">
560
  <th scope="row">
561
+ <?php _e('Logged In', WC_Core::$TEXT_DOMAIN); ?>
562
  </th>
563
  <td colspan="3">
564
  <label for="wc_logged_in_text">
569
 
570
  <tr valign="top">
571
  <th scope="row">
572
+ <?php _e('To post a comment', WC_Core::$TEXT_DOMAIN); ?>
573
  </th>
574
  <td colspan="3">
575
  <label for="wc_to_post_comment_text">
580
 
581
  <tr valign="top">
582
  <th scope="row">
583
+ <?php _e('Vote Up', WC_Core::$TEXT_DOMAIN); ?>
584
  </th>
585
  <td colspan="3">
586
  <label for="wc_vote_up">
591
 
592
  <tr valign="top">
593
  <th scope="row">
594
+ <?php _e('Vote Down', WC_Core::$TEXT_DOMAIN); ?>
595
  </th>
596
  <td colspan="3">
597
  <label for="wc_vote_down">
602
 
603
  <tr valign="top">
604
  <th scope="row">
605
+ <?php _e('Vote Counted', WC_Core::$TEXT_DOMAIN); ?>
606
  </th>
607
  <td colspan="3">
608
  <label for="wc_vote_counted">
613
 
614
  <tr valign="top">
615
  <th scope="row">
616
+ <?php _e('You can vote only 1 time', WC_Core::$TEXT_DOMAIN); ?>
617
  </th>
618
  <td colspan="3">
619
  <label for="wc_vote_only_one_time">
624
 
625
  <tr valign="top">
626
  <th scope="row">
627
+ <?php _e('Voting Error', WC_Core::$TEXT_DOMAIN); ?>
628
  </th>
629
  <td colspan="3">
630
  <label for="wc_voting_error">
635
 
636
  <tr valign="top">
637
  <th scope="row">
638
+ <?php _e('Login To Vote', WC_Core::$TEXT_DOMAIN); ?>
639
  </th>
640
  <td colspan="3">
641
  <label for="wc_login_to_vote">
646
 
647
  <tr valign="top">
648
  <th scope="row">
649
+ <?php _e('You Cannot Vote On Your Comment', WC_Core::$TEXT_DOMAIN); ?>
650
  </th>
651
  <td colspan="3">
652
  <label for="wc_self_vote">
657
 
658
  <tr valign="top">
659
  <th scope="row">
660
+ <?php _e('Invalid Captcha Code', WC_Core::$TEXT_DOMAIN); ?>
661
  </th>
662
  <td colspan="3">
663
  <label for="wc_invalid_captcha">
668
 
669
  <tr valign="top">
670
  <th scope="row">
671
+ <?php _e('Some of field value is invalid', WC_Core::$TEXT_DOMAIN); ?>
672
  </th>
673
  <td colspan="3">
674
  <label for="wc_invalid_field">
679
 
680
  <tr valign="top">
681
  <th scope="row">
682
+ <?php _e('Comment waiting moderation', WC_Core::$TEXT_DOMAIN); ?>
683
  </th>
684
  <td colspan="3">
685
  <label for="wc_held_for_moderate">
690
 
691
  <tr valign="top">
692
  <th scope="row">
693
+ <?php _e('Button text if has new comment', WC_Core::$TEXT_DOMAIN); ?>
694
  </th>
695
  <td colspan="3">
696
  <label for="wc_new_comment_button_text">
701
 
702
  <tr valign="top">
703
  <th scope="row">
704
+ <?php _e('Button text if has new comments', WC_Core::$TEXT_DOMAIN); ?>
705
  </th>
706
  <td colspan="3">
707
  <label for="wc_new_comments_button_text">
712
 
713
  <tr valign="top">
714
  <th scope="row">
715
+ <?php _e('Button text if has new reply', WC_Core::$TEXT_DOMAIN); ?>
716
  </th>
717
  <td colspan="3">
718
  <label for="wc_new_reply_button_text">
723
 
724
  <tr valign="top">
725
  <th scope="row">
726
+ <?php _e('Button text if has new replies', WC_Core::$TEXT_DOMAIN); ?>
727
  </th>
728
  <td colspan="3">
729
  <label for="wc_new_replies_button_text">
734
 
735
  <tr valign="top">
736
  <th scope="row">
737
+ <?php _e('Text on load more button if has new comment(s)', WC_Core::$TEXT_DOMAIN); ?>
738
  </th>
739
  <td colspan="3">
740
  <label for="wc_new_comments_text">
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
4
  Tags: wordpress comments, ajax comments, ajax, live update, theme, post comments, comments box, community, discussion, discuss, comment form, reply, comments, discussions, comment template, activity, comment author, comment system
5
  Requires at least: 2.7
6
  Tested up to: 4.1
7
- Stable tag: 2.0.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -27,6 +27,7 @@ New interactive, AJAX comment system. Responsive comment plugin with Live Update
27
  * | Ajax button "Load More Comments" instead of simple comments pagination
28
  * | Different comment date formats, reflects Wordpress date format settings
29
  * | Automatic URLs to link conversion in comment texts
 
30
  * | Multiple line-breaks (limited by Wordpress comment filter)
31
  * | Comment author notification options with special checkboxes on comment form
32
  * | Ability to add comment system on attachment pages if it's allowed by Wordpress
@@ -97,24 +98,36 @@ IMPORTANT: If you have a Cache Plugin, please delete all caches after wpDiscuz u
97
 
98
  == Screenshots ==
99
 
100
- 1. Ajax Form to add a new discussion thread Screenshot #1
101
- 2. Discussion Threads with Reply Form Screenshot #2
102
- 3. Live Update: checks for new comments and shows update buttons #3
103
- 4. Front-End View with different colors Screenshot #4
104
- 5. Full Front-End View Screenshot #5
105
- 6. wpDiscuz General Settings #6
 
106
 
107
 
108
 
109
  == Changelog ==
110
 
 
 
 
 
 
 
 
 
 
 
 
 
 
111
  = 2.0.4 =
112
  * Added : Current subscribe status note on comment form (for logged-in users)
113
  * Added : Unsubscribe link on comment form and in "new comment" notification message.
114
  * Fixed Bug: Redirection to blank option.php on saving any option page.
115
 
116
- IMPORTANT: If you have a Cache Plugin, please reset after wpDiscuz update
117
-
118
 
119
  = 2.0.3 =
120
  * Fixed Bug: Problem with email notification options on comment form
4
  Tags: wordpress comments, ajax comments, ajax, live update, theme, post comments, comments box, community, discussion, discuss, comment form, reply, comments, discussions, comment template, activity, comment author, comment system
5
  Requires at least: 2.7
6
  Tested up to: 4.1
7
+ Stable tag: 2.0.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
27
  * | Ajax button "Load More Comments" instead of simple comments pagination
28
  * | Different comment date formats, reflects Wordpress date format settings
29
  * | Automatic URLs to link conversion in comment texts
30
+ * | Automatic image source URLs to image (HTML) conversion in comment texts
31
  * | Multiple line-breaks (limited by Wordpress comment filter)
32
  * | Comment author notification options with special checkboxes on comment form
33
  * | Ability to add comment system on attachment pages if it's allowed by Wordpress
98
 
99
  == Screenshots ==
100
 
101
+ 1. wpDiscuz ajax comment form for Guests Screenshot #1
102
+ 2. wpDiscuz ajax comment form for logged in user Screenshot #2
103
+ 3. Discussion Threads with Reply Form Screenshot #3
104
+ 4. Live Update: checks for new comments and shows update buttons #4
105
+ 5. Front-End View with different colors Screenshot #5
106
+ 6. Full Front-End View Screenshot #6
107
+ 7. wpDiscuz General Settings #7
108
 
109
 
110
 
111
  == Changelog ==
112
 
113
+ = 2.0.5 =
114
+ * Added : Manage Subscriptions section on comment forms
115
+ * Added : New subscribe option: Notify of new replies to all my comments
116
+ * Added : Show logged-in user name and logout link on top of the main form
117
+ * Added : Ability to insert image in comment content using image source URL
118
+ * Added : Language translation support with .mo and .po files
119
+ * Added : Hebrew (he_IL) language, thanks to Ahrale Shrem
120
+ * Added : Options to show/hide new subscription checkbox
121
+ * Fixed Bug: Duplication of "New Comment" email notifications for post authors
122
+ * Fixed Bug: Problem with large space between the paragraphs
123
+
124
+ IMPORTANT: If you have a Cache Plugin, please delete all caches after wpDiscuz update.
125
+
126
  = 2.0.4 =
127
  * Added : Current subscribe status note on comment form (for logged-in users)
128
  * Added : Unsubscribe link on comment form and in "new comment" notification message.
129
  * Fixed Bug: Redirection to blank option.php on saving any option page.
130
 
 
 
131
 
132
  = 2.0.3 =
133
  * Fixed Bug: Problem with email notification options on comment form
wc-css.php CHANGED
@@ -13,7 +13,7 @@ class WC_CSS {
13
  */
14
  public function init_styles() {
15
  ?>
16
- <style type="text/css"> #wc-comment-header{ padding:20px 5px 1px 5px; display:block; float:none; clear:both; font-size:18px;} #wpcomm form div{ box-sizing: inherit; } #wpcomm form .item {display: block;} .item input { border-radius:0px; } #wpcomm { margin:15px 5px; padding:1px 0px 10px 0px; border-top:#DDDDDD solid 1px; } #wpcomm form { margin:0px; padding:0px; background:none; border:none; } #wpcomm form div{ margin:0px; } #wpcomm .wc_new_comment_and_replies { margin:0px; padding:0px; width:100%; height:auto; background:transparent;} #wpcomm .wc_new_comment_and_replies .wc_new_comment{ float:right; display:none; background:<?php echo $this->wc_options->wc_options_serialized->wc_author_title_color; ?>; padding:3px 10px; font-size:12px; margin:1px 0px 1px 3px; cursor:pointer; color:#fff; line-height: 15px;} #wpcomm .wc_new_comment_and_replies .wc_new_reply{ float:right; display:none; background:<?php echo $this->wc_options->wc_options_serialized->wc_author_title_color; ?>; padding:3px 10px; font-size:12px; margin:1px 0px 1px 1px; cursor:pointer; color:#fff; line-height: 15px;} #wpcomm .wc-comment-title{ margin:0px; line-height:18px; font-weight:bold; padding:10px; margin-bottom:10px; font-size:13px; text-align:right; border-bottom:#CCCCCC dotted 1px; padding-bottom:10px; } #wpcomm .wc-form-wrapper{ padding:10px; background:<?php echo isset($this->wc_options->wc_options_serialized->wc_form_bg_color) ? $this->wc_options->wc_options_serialized->wc_form_bg_color : '#f9f9f9'; ?>; margin-top:20px; border:1px solid #F1F1F1; } #wpcomm .wc-author-data{ margin-bottom:6px; } #wpcomm .wc-field-submit{ padding:5px 0px 13px 0px; } #wpcomm .wc-field-name{ width:49%; float:left; } #wpcomm .wc-field-email{ width:49%; float:right; text-align:right; } #wpcomm .wc-field-comment{ margin:5px auto 10px auto; } #wpcomm .wc-field-captcha{ width:55%; float:left; margin:0px; height:auto!important; } #wpcomm .wc-field-submit{ width:45%; float:right; text-align:right; margin:0px; } #wpcomm .wc-field-name input[type="text"]{ width:99%; max-width:100%; padding:5px; font-size:14px; margin:0px; height:29px; } #wpcomm .wc-field-email input[type="email"]{ width:100%; max-width:100%; padding:5px; font-size:14px; margin:0px; height:29px; } #wpcomm .wc-field-captcha input[type="text"]{ width:40%; padding:5px; font-size:14px; margin:0px 5px 0px 0px; height:27px; } #wpcomm .wc-field-submit input[type="submit"]{ margin:1px; } #wpcomm .wc-field-submit input[type="button"]{ margin:1px; border:#DDDDDD 1px solid; font-size: 13px; line-height: 16px; padding: 6px 15px; } #wpcomm .captcha_msg{ color: #999999; font-family: Lato,sans-serif; font-size: 13px; line-height: 18px; display:block; clear:both; padding:5px 0px 0px 0px; } #wpcomm .wc-field-comment textarea{ width:100%; max-width:100%; height:46px; min-height: 46px !important; padding:5px; box-sizing: border-box; border-radius:0px; } #wpcomm .wc-label{ display:block; font-size:14px; padding:5px; } #wpcomm .wc_notification_checkboxes{ padding:1px 0px 7px 0px; text-align:left;} #wpcomm .wc_notification_checkboxes input[type="checkbox"]{ overflow:none; width:inherit; font-size:13px; margin:0px; padding:0px; display:inline; } #wpcomm .wc-label-comment-notify{ display:inline; font-size:13px; padding:0px; margin:0px; border:none; line-height:15px; text-decoration:none; color:#999999; font-family:Lato,sans-serif; cursor:pointer; } #wpcomm .wc-label-reply-notify{ display:inline; font-size:13px; padding:0px; margin:0px; border:none; line-height:15px; text-decoration:none; color:#999999; font-family:Lato,sans-serif; cursor:pointer; } #wpcomm .wc-field-captcha .wc-label{ font-size:14px; padding:5px; text-align:center; display:inline; } #wpcomm input[type="text"], #wpcomm input[type="email"], #wpcomm textarea{ font-size:14px; color:#666666; font-family:Lato,sans-serif; box-sizing: border-box; margin:0px; } #wpcomm .wc-copyright{ margin: 0px 0px 0px auto; text-align:right; display: block; padding-top: 2px; } #wpcomm .wc-copyright a{ font-size: 9px; color: #AAAAAA; cursor:help; text-decoration:none; margin:0px; padding:0px; border:none;} #wpcomm .wc-thread-wrapper{ padding:10px 0px; margin-bottom:10px;} #wpcomm .wc-comment { margin-bottom:13px; } #wpcomm .wc-comment .wc-field-submit{ padding:5px 0px 5px 0px; } #wpcomm .wc-comment .wc-form-wrapper{ padding:10px 10px 2px 10px; } #wpcomm .wc-comment .wc-comment-left{ width:62px; float:left; position:absolute; text-align:center; font-family:Lato,sans-serif; line-height:16px; } #wpcomm .wc-comment .wc-comment-right{ margin-left:70px; border:#F5F5F5 1px solid; padding:10px 10px 3px 10px; background:<?php echo $this->wc_options->wc_options_serialized->wc_comment_bg_color; ?>} #wpcomm .wc-reply .wc-comment-right{ margin-left:70px; border:#F5F5F5 1px solid; padding:10px 10px 3px 10px; } #wpcomm .wc-reply { margin-top: 10px; margin-bottom:0px; margin-left:40px; } #wpcomm .wc-reply .wc-comment-right{ background:<?php echo $this->wc_options->wc_options_serialized->wc_reply_bg_color; ?>; } #wpcomm .wc-must-login{ margin:0px; font-size:14px; line-height:16px; padding:10px; text-align:center; } #wpcomm hr{ background-color: rgba(0, 0, 0, 0.1); border: 0 none; height: 1px; margin:10px 0px; } #wpcomm .avatar{ border: 1px solid rgba(0, 0, 0, 0.1); padding: 2px; margin:0px auto; float:none; display:inline; width:48px; height:auto; } #wpcomm .wc-comment-text{ font-size:<?php echo isset($this->wc_options->wc_options_serialized->wc_comment_text_size) ? $this->wc_options->wc_options_serialized->wc_comment_text_size : '14px'; ?>; text-align:left; color:<?php echo $this->wc_options->wc_options_serialized->wc_comment_text_color; ?>; padding-bottom:5px; line-height: 20px; } #wpcomm .wc-comment-header{ margin-bottom:7px; font-family:Lato,sans-serif; } #wpcomm .wc-comment-author{ color:<?php echo $this->wc_options->wc_options_serialized->wc_author_title_color; ?>; font-size:16px; width:40%; float:left; white-space:nowrap; } #wpcomm .wc-comment-author a{ color:<?php echo $this->wc_options->wc_options_serialized->wc_author_title_color; ?>; font-size:16px; white-space:nowrap; text-decoration:none; } #wpcomm .wc-comment-label{ background:<?php echo $this->wc_options->wc_options_serialized->wc_author_title_color; ?>; color:#FFFFFF; padding:2px 5px; font-size:12px; margin:4px auto; text-align:center; display:table; line-height:16px; } #wpcomm .wc-comment-date{ font-size:12px; color:#999999; float:right; text-align:right; white-space:nowrap; line-height:27px; } #wpcomm .wc-comment-footer { font-size:12px; font-weight:normal; color:#999999; margin-top:12px; min-height: 28px; font-family:Lato,sans-serif; } #wpcomm .wc-comment-footer a{ text-decoration:none; font-size:13px; font-weight:bold; color:<?php echo $this->wc_options->wc_options_serialized->wc_vote_reply_color; ?>; } #wpcomm .wc-comment-footer .share_buttons_box img{ vertical-align:middle; } #wpcomm .wc-comment-footer .wc-voted{ color:#666666; cursor:default; } #wpcomm .wc-comment-footer .wc-vote-result{ padding:2px 6px 2px 5px; background:<?php echo $this->wc_options->wc_options_serialized->wc_vote_reply_color; ?>; color:#FFFFFF; font-size:12px; font-weight:bold; display:inline; margin-right:5px;} #wpcomm .wc-toggle{ float:right; text-align:right; padding-right:0px; margin-right:0px; color:#999999; cursor:pointer; font-size:12px; white-space:nowrap; } #wpcomm .item { background: none; border-radius: 0px; box-shadow: none; } #wc_response_info img{ margin: 0px auto 0px auto; } #wpcomm .share_buttons_box img { display:inline!important; width:16px; height:16px; } #wpcomm .wc-captcha-label img{ display: inline!important; border:none; padding:0px 0px 0px 2px; margin:0px; vertical-align:middle; } #wpcomm .wc-reply-link, #wpcomm .wc-vote-link, #wpcomm .wc-share-link { cursor: pointer; font-size:13px; font-weight:bold; color: <?php echo $this->wc_options->wc_options_serialized->wc_vote_reply_color; ?>; } #wpcomm .wc-form-footer, #wpcomm .wc-secondary-forms-wrapper {display: none;} #wpcomm .wc-field-captcha .wc-captcha-label { padding: 0; display: inline-block; } #wpcomm .wc_captcha_refresh_img {cursor: pointer; margin-left: 3px;} #wpcomm .share_buttons_box {display: none;} #wpcomm .wc-no-left-margin {margin-left: 0 !important;} div.wc_modal { background: none repeat scroll 0 0 #EDEDED; color:#444444; font-size: 18px; font-weight: normal; padding: 45px 10px 50px 10px!important; text-align: center; line-height:25px;} .wc-load-more-submit-wrap { width: 100%; text-align: center; margin-bottom:20px; } .wc-load-more-submit { width: 100%; text-align: center; } #wc_openModalFormAction > div#wc_response_info { width: 200px; background: none repeat scroll 0 0 #EDEDED; color:#444444; font-size: 18px; font-weight: normal; padding: 45px 10px 50px 10px!important; text-align: center; line-height:25px;} #wc_openModalFormAction > div#wc_response_info { } #wc_openModalFormAction > div#wc_response_info a.close { background: url("<?php echo plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/files/img/x.png'); ?>") no-repeat; background-position-x: right; background-position-y: top; } #wpcomm #bywpdiscuz{ display:none; } #wpcomm .by-wpdiscuz{ text-align:right; border-top:#DDDDDD solid 1px; padding:1px 1px 1px 1px; } #wpcomm .by-wpdiscuz a{ font-size:11px; font-weight:bold; text-align:right; color:#CCCCCC; padding:1px; margin:0px; line-height:12px; border:none; text-decoration:none; } #wpcomm .wpdimg{ border:none; padding:0px; margin:0px; height:12px; cursor:pointer; display:inline; clear:both; } #wpcomm .wc-comment .wc-comment-right.wc_new_loaded_comment {background: <?php echo $this->wc_options->wc_options_serialized->wc_new_loaded_comment_bg_color; ?>;} #wc_unsubscribe_message { margin:10px auto 1px auto; padding:10px; text-align:center; border:#00DD00 1px dotted; background:#CCFFCC; } .wc_unsubscribe_message { font-size:14px; color:#444; } #wpcomm .wc_comment_level-3 { margin-left: 40px!important; } #wpcomm .wc_comment_level-4 { margin-left: 40px!important; } #wpcomm .wc_comment_level-5 { margin-left: 40px!important; } <?php echo stripslashes($this->wc_options->wc_options_serialized->wc_custom_css); ?> </style>
17
  <?php
18
  }
19
 
13
  */
14
  public function init_styles() {
15
  ?>
16
+ <style type="text/css"> #wc-comment-header{ padding:20px 5px 1px 5px; display:block; float:none; clear:both; font-size:18px;} #wpcomm form div{ box-sizing: inherit; } #wpcomm form .item {display: block;} .item input { border-radius:0px; } #wpcomm { margin:15px 5px; padding:1px 0px 10px 0px; border-top:#DDDDDD solid 1px; } #wpcomm form { margin:0px; padding:0px; background:none; border:none; } #wpcomm form div{ margin:0px; } #wc_show_hide_loggedin_username{ padding:10px 5px 5px 5px; font-size:13px; } #wpcomm .wc_new_comment_and_replies { margin:0px; padding:0px; width:100%; height:auto; background:transparent;} #wpcomm .wc_new_comment_and_replies .wc_new_comment{ float:right; display:none; background:<?php echo $this->wc_options->wc_options_serialized->wc_author_title_color; ?>; padding:3px 10px; font-size:12px; margin:1px 0px 1px 3px; cursor:pointer; color:#fff; line-height: 15px;} #wpcomm .wc_new_comment_and_replies .wc_new_reply{ float:right; display:none; background:<?php echo $this->wc_options->wc_options_serialized->wc_author_title_color; ?>; padding:3px 10px; font-size:12px; margin:1px 0px 1px 1px; cursor:pointer; color:#fff; line-height: 15px;} #wpcomm .wc-comment-title{ margin:0px; line-height:18px; font-weight:bold; padding:10px; margin-bottom:10px; font-size:13px; text-align:right; border-bottom:#CCCCCC dotted 1px; padding-bottom:10px; } #wpcomm .wc-form-wrapper{ padding:10px; background:<?php echo isset($this->wc_options->wc_options_serialized->wc_form_bg_color) ? $this->wc_options->wc_options_serialized->wc_form_bg_color : '#f9f9f9'; ?>; margin-top:20px; border:1px solid #F1F1F1; } #wpcomm .wc-author-data{ margin-bottom:6px; } #wpcomm .wc-field-submit{ padding:5px 0px 13px 0px; } #wpcomm .wc-field-name{ width:49%; float:left; } #wpcomm .wc-field-email{ width:49%; float:right; text-align:right; } #wpcomm .wc-field-comment{ margin:5px auto 10px auto; } #wpcomm .wc-field-captcha{ width:55%; float:left; margin:0px; height:auto!important; } #wpcomm .wc-field-submit{ width:45%; float:right; text-align:right; margin:0px; } #wpcomm .wc-field-name input[type="text"]{ width:99%; max-width:100%; padding:5px; font-size:14px; margin:0px; height:29px; } #wpcomm .wc-field-email input[type="email"]{ width:100%; max-width:100%; padding:5px; font-size:14px; margin:0px; height:29px; } #wpcomm .wc-field-captcha input[type="text"]{ width:40%; padding:5px; font-size:14px; margin:0px 5px 0px 0px; height:27px; } #wpcomm .wc-field-submit input[type="submit"]{ margin:1px; } #wpcomm .wc-field-submit input[type="button"]{ margin:1px; border:#DDDDDD 1px solid; font-size: 13px; line-height: 16px; padding: 6px 15px; } #wpcomm .captcha_msg{ color: #999999; font-family: Lato,sans-serif; font-size: 13px; line-height: 18px; display:block; clear:both; padding:5px 0px 0px 0px; } #wpcomm .wc-field-comment textarea{ width:100%; max-width:100%; height:46px; min-height: 46px !important; padding:5px; box-sizing: border-box; border-radius:0px; } #wpcomm .wc-label{ display:block; font-size:14px; padding:5px; } #wpcomm .wc_manage_subscribtions {cursor: pointer; color: #999999; padding: 0px 0px 5px 0px; display: block; font-size:13px; line-height:16px;} #wpcomm .wc_notification_checkboxes{ padding:3px 0px 7px 0px; text-align:left; display: none; border-top: 1px dotted #DDDDDD;} #wpcomm .wc_notification_checkboxes input[type="checkbox"]{ overflow:none; width:inherit; font-size:13px; margin:0px; padding:0px; display:inline; } #wpcomm .wc-label-comment-notify{ display:inline; font-size:13px; padding:0px; margin:0px; border:none; line-height:15px; text-decoration:none; color:#999999; font-family:Lato,sans-serif; cursor:pointer; } #wpcomm .wc-label-reply-notify{ display:inline; font-size:13px; padding:0px; margin:0px; border:none; line-height:15px; text-decoration:none; color:#999999; font-family:Lato,sans-serif; cursor:pointer; } #wpcomm .wc-label-all-reply-notify{ display:inline; font-size:13px; padding:0px; margin:0px; border:none; line-height:15px; text-decoration:none; color:#999999; font-family:Lato,sans-serif; cursor:pointer; } #wpcomm .wc-field-captcha .wc-label{ font-size:14px; padding:5px; text-align:center; display:inline; } #wpcomm input[type="text"], #wpcomm input[type="email"], #wpcomm textarea{ font-size:14px; color:#666666; font-family:Lato,sans-serif; box-sizing: border-box; margin:0px; } #wpcomm .wc-copyright{ margin: 0px 0px 0px auto; text-align:right; display: block; padding-top: 2px; } #wpcomm .wc-copyright a{ font-size: 9px; color: #AAAAAA; cursor:help; text-decoration:none; margin:0px; padding:0px; border:none;} #wpcomm .wc-thread-wrapper{ padding:10px 0px; margin-bottom:10px;} #wpcomm .wc-comment { margin-bottom:13px; } #wpcomm .wc-comment .wc-field-submit{ padding:5px 0px 5px 0px; } #wpcomm .wc-comment .wc-form-wrapper{ padding:10px 10px 2px 10px; } #wpcomm .wc-comment .wc-comment-left{ width:62px; float:left; position:absolute; text-align:center; font-family:Lato,sans-serif; line-height:16px; } #wpcomm .wc-comment .wc-comment-right{ margin-left:70px; border:#F5F5F5 1px solid; padding:10px 10px 3px 10px; background:<?php echo $this->wc_options->wc_options_serialized->wc_comment_bg_color; ?>} #wpcomm .wc-reply .wc-comment-right{ margin-left:70px; border:#F5F5F5 1px solid; padding:10px 10px 3px 10px; } #wpcomm .wc-reply { margin-top: 10px; margin-bottom:0px; margin-left:40px; } #wpcomm .wc-reply .wc-comment-right{ background:<?php echo $this->wc_options->wc_options_serialized->wc_reply_bg_color; ?>; } #wpcomm .wc-must-login{ margin:0px; font-size:14px; line-height:16px; padding:10px; text-align:center; } #wpcomm hr{ background-color: rgba(0, 0, 0, 0.1); border: 0 none; height: 1px; margin:10px 0px; } #wpcomm .avatar{ border: 1px solid rgba(0, 0, 0, 0.1); padding: 2px; margin:0px auto; float:none; display:inline; width:48px; height:auto; } #wpcomm .wc-comment-text{ font-size:<?php echo isset($this->wc_options->wc_options_serialized->wc_comment_text_size) ? $this->wc_options->wc_options_serialized->wc_comment_text_size : '14px'; ?>; text-align:left; color:<?php echo $this->wc_options->wc_options_serialized->wc_comment_text_color; ?>; padding-bottom:5px; line-height: 20px; } #wpcomm .wc-comment-header{ margin-bottom:7px; font-family:Lato,sans-serif; } #wpcomm .wc-comment-author{ color:<?php echo $this->wc_options->wc_options_serialized->wc_author_title_color; ?>; font-size:16px; width:40%; float:left; white-space:nowrap; } #wpcomm .wc-comment-author a{ color:<?php echo $this->wc_options->wc_options_serialized->wc_author_title_color; ?>; font-size:16px; white-space:nowrap; text-decoration:none; } #wpcomm .wc-comment-label{ background:<?php echo $this->wc_options->wc_options_serialized->wc_author_title_color; ?>; color:#FFFFFF; padding:2px 5px; font-size:12px; margin:4px auto; text-align:center; display:table; line-height:16px; } #wpcomm .wc-comment-date{ font-size:12px; color:#999999; float:right; text-align:right; white-space:nowrap; line-height:27px; } #wpcomm .wc-comment-footer { font-size:12px; font-weight:normal; color:#999999; margin-top:12px; min-height: 28px; font-family:Lato,sans-serif; } #wpcomm .wc-comment-footer a{ text-decoration:none; font-size:13px; font-weight:bold; color:<?php echo $this->wc_options->wc_options_serialized->wc_vote_reply_color; ?>; } #wpcomm .wc-comment-footer .share_buttons_box img{ vertical-align:middle; } #wpcomm .wc-comment-footer .wc-voted{ color:#666666; cursor:default; } #wpcomm .wc-comment-footer .wc-vote-result{ padding:2px 6px 2px 5px; background:<?php echo $this->wc_options->wc_options_serialized->wc_vote_reply_color; ?>; color:#FFFFFF; font-size:12px; font-weight:bold; display:inline; margin-right:5px;} #wpcomm .wc-toggle{ float:right; text-align:right; padding-right:0px; margin-right:0px; color:#999999; cursor:pointer; font-size:12px; white-space:nowrap; } #wpcomm .item { background: none; border-radius: 0px; box-shadow: none; } #wc_response_info img{ margin: 0px auto 0px auto; } #wpcomm .share_buttons_box img { display:inline!important; width:16px; height:16px; } #wpcomm .wc-captcha-label img{ display: inline!important; border:none; padding:0px 0px 0px 2px; margin:0px; vertical-align:middle; } #wpcomm .wc-reply-link, #wpcomm .wc-vote-link, #wpcomm .wc-share-link { cursor: pointer; font-size:13px; font-weight:bold; color: <?php echo $this->wc_options->wc_options_serialized->wc_vote_reply_color; ?>; } #wpcomm .wc-form-footer, #wpcomm .wc-secondary-forms-wrapper {display: none;} #wpcomm .wc-field-captcha .wc-captcha-label { padding: 0; display: inline-block; } #wpcomm .wc_captcha_refresh_img {cursor: pointer; margin-left: 3px;} #wpcomm .share_buttons_box {display: none;} #wpcomm .wc-no-left-margin {margin-left: 0 !important;} div.wc_modal { background: none repeat scroll 0 0 #EDEDED; color:#444444; font-size: 18px; font-weight: normal; padding: 45px 10px 50px 10px!important; text-align: center; line-height:25px;} .wc-load-more-submit-wrap { width: 100%; text-align: center; margin-bottom:20px; } .wc-load-more-submit { width: 100%; text-align: center; } #wc_openModalFormAction > div#wc_response_info { width: 200px; background: none repeat scroll 0 0 #EDEDED; color:#444444; font-size: 18px; font-weight: normal; padding: 45px 10px 50px 10px!important; text-align: center; line-height:25px;} #wc_openModalFormAction > div#wc_response_info { } #wc_openModalFormAction > div#wc_response_info a.close { background: url("<?php echo plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/files/img/x.png'); ?>") no-repeat; background-position-x: right; background-position-y: top; } #wpcomm #bywpdiscuz{ display:none; } #wpcomm .by-wpdiscuz{ text-align:right; border-top:#DDDDDD solid 1px; padding:1px 1px 1px 1px; } #wpcomm .by-wpdiscuz a{ font-size:11px; font-weight:bold; text-align:right; color:#CCCCCC; padding:1px; margin:0px; line-height:12px; border:none; text-decoration:none; } #wpcomm .wpdimg{ border:none; padding:0px; margin:0px; height:12px; cursor:pointer; display:inline; clear:both; } #wpcomm .wc-comment .wc-comment-right.wc_new_loaded_comment {background: <?php echo $this->wc_options->wc_options_serialized->wc_new_loaded_comment_bg_color; ?>;} #wc_unsubscribe_message { margin:10px auto 1px auto; padding:10px; text-align:center; border:#00DD00 1px dotted; background:#CCFFCC; } .wc_unsubscribe_message { font-size:14px; color:#444; } #wpcomm .wc_comment_level-3 { margin-left: 40px!important; } #wpcomm .wc_comment_level-4 { margin-left: 40px!important; } #wpcomm .wc_comment_level-5 { margin-left: 40px!important; }<?php echo stripslashes($this->wc_options->wc_options_serialized->wc_custom_css); ?> </style>
17
  <?php
18
  }
19
 
wc-options-serialize.php CHANGED
@@ -72,6 +72,14 @@ class WC_Options_Serialize {
72
  */
73
  public $wc_user_must_be_registered;
74
 
 
 
 
 
 
 
 
 
75
  /**
76
  * Type - Checkbox
77
  * Available Values - Checked/Unchecked
@@ -111,7 +119,7 @@ class WC_Options_Serialize {
111
  * Default Value - 5
112
  */
113
  public $wc_comment_count;
114
-
115
  /**
116
  * Type - Dropdown menu
117
  * Available Values - 1, 2, 3, 4, 5
@@ -127,7 +135,7 @@ class WC_Options_Serialize {
127
  * Default Value - Checked
128
  */
129
  public $wc_simple_comment_date;
130
-
131
  /**
132
  * Type - Checkbox
133
  * Available Values - Checked/Unchecked
@@ -144,6 +152,14 @@ class WC_Options_Serialize {
144
  */
145
  public $wc_show_hide_comment_checkbox;
146
 
 
 
 
 
 
 
 
 
147
  /**
148
  * Type - Checkbox
149
  * Available Values - Checked/Unchecked
@@ -207,8 +223,8 @@ class WC_Options_Serialize {
207
  * Default Value - #666666
208
  */
209
  public $wc_vote_reply_color;
210
-
211
- /**
212
  * Type - Input
213
  * Available Values - color codes
214
  * Description - New Comments background color
@@ -236,7 +252,7 @@ class WC_Options_Serialize {
236
  * helper class for database operations
237
  */
238
  public $wc_db_helper;
239
-
240
  function __construct($wc_db_helper) {
241
  $this->wc_db_helper = $wc_db_helper;
242
  $this->init_phrases();
@@ -255,6 +271,7 @@ class WC_Options_Serialize {
255
  $this->wc_share_buttons_show_hide = $options['wc_share_buttons_show_hide'];
256
  $this->wc_captcha_show_hide = $options['wc_captcha_show_hide'];
257
  $this->wc_user_must_be_registered = $options['wc_user_must_be_registered'];
 
258
  $this->wc_held_comment_to_moderate = $options['wc_held_comment_to_moderate'];
259
  $this->wc_reply_button_guests_show_hide = $options['wc_reply_button_guests_show_hide'];
260
  $this->wc_reply_button_members_show_hide = $options['wc_reply_button_members_show_hide'];
@@ -264,6 +281,7 @@ class WC_Options_Serialize {
264
  $this->wc_simple_comment_date = isset($options['wc_simple_comment_date']) ? $options['wc_simple_comment_date'] : 0;
265
  $this->wc_comment_reply_checkboxes_default_checked = isset($options['wc_comment_reply_checkboxes_default_checked']) ? $options['wc_comment_reply_checkboxes_default_checked'] : 0;
266
  $this->wc_show_hide_comment_checkbox = isset($options['wc_show_hide_comment_checkbox']) ? $options['wc_show_hide_comment_checkbox'] : 0;
 
267
  $this->wc_show_hide_reply_checkbox = isset($options['wc_show_hide_reply_checkbox']) ? $options['wc_show_hide_reply_checkbox'] : 0;
268
  $this->wc_comment_text_size = isset($options['wc_comment_text_size']) ? $options['wc_comment_text_size'] : '14px';
269
  $this->wc_form_bg_color = isset($options['wc_form_bg_color']) ? $options['wc_form_bg_color'] : '#f9f9f9';
@@ -290,9 +308,11 @@ class WC_Options_Serialize {
290
  'wc_email_text' => 'Email',
291
  'wc_name_text' => 'Name',
292
  'wc_captcha_text' => 'Please insert the code above to comment',
293
- 'wc_submit_text' => 'Post Comment',
 
294
  'wc_notify_on_new_comment' => 'Notify of all new follow-up comments',
295
- 'wc_notify_on_new_reply' => 'Notify of new replies to this comment',
 
296
  'wc_load_more_submit_text' => 'Load More Comments',
297
  'wc_reply_text' => 'Reply',
298
  'wc_share_text' => 'Share',
@@ -306,12 +326,13 @@ class WC_Options_Serialize {
306
  'wc_user_title_author_text' => 'Author',
307
  'wc_user_title_admin_text' => 'Admin',
308
  'wc_email_subject' => 'New Comment',
309
- 'wc_email_message' => 'New comment on the discussion section you\'ve been interested in',
310
  'wc_new_reply_email_subject' => 'New Reply',
311
- 'wc_new_reply_email_message' => 'New reply on the discussion section you\'ve been interested in',
312
  'wc_subscribed_on_comment' => 'You\'re subscribed for new replies on this comment',
 
313
  'wc_subscribed_on_post' => 'You\'re subscribed for new follow-up comments on this post',
314
- 'wc_unsubscribe' => 'Unsubscribe',
315
  'wc_unsubscribe_message' => 'You\'ve successfully unsubscribed.',
316
  'wc_error_empty_text' => 'please fill out this field to comment',
317
  'wc_error_email_text' => 'email address is invalid',
@@ -326,6 +347,8 @@ class WC_Options_Serialize {
326
  'wc_ago_text' => 'ago',
327
  'wc_posted_today_text' => 'Today',
328
  'wc_you_must_be_text' => 'You must be',
 
 
329
  'wc_logged_in_text' => 'logged in',
330
  'wc_to_post_comment_text' => 'to post a comment.',
331
  'wc_vote_up' => 'Vote Up',
@@ -356,6 +379,7 @@ class WC_Options_Serialize {
356
  'wc_share_buttons_show_hide' => $this->wc_share_buttons_show_hide,
357
  'wc_captcha_show_hide' => $this->wc_captcha_show_hide,
358
  'wc_user_must_be_registered' => $this->wc_user_must_be_registered,
 
359
  'wc_held_comment_to_moderate' => $this->wc_held_comment_to_moderate,
360
  'wc_reply_button_guests_show_hide' => $this->wc_reply_button_guests_show_hide,
361
  'wc_reply_button_members_show_hide' => $this->wc_reply_button_members_show_hide,
@@ -365,6 +389,7 @@ class WC_Options_Serialize {
365
  'wc_simple_comment_date' => $this->wc_simple_comment_date,
366
  'wc_comment_reply_checkboxes_default_checked' => $this->wc_comment_reply_checkboxes_default_checked,
367
  'wc_show_hide_comment_checkbox' => $this->wc_show_hide_comment_checkbox,
 
368
  'wc_show_hide_reply_checkbox' => $this->wc_show_hide_reply_checkbox,
369
  'wc_comment_text_size' => $this->wc_comment_text_size,
370
  'wc_form_bg_color' => $this->wc_form_bg_color,
@@ -394,6 +419,7 @@ class WC_Options_Serialize {
394
  'wc_share_buttons_show_hide' => '0',
395
  'wc_captcha_show_hide' => '0',
396
  'wc_user_must_be_registered' => '0',
 
397
  'wc_held_comment_to_moderate' => '1',
398
  'wc_reply_button_guests_show_hide' => '0',
399
  'wc_reply_button_members_show_hide' => '0',
@@ -403,6 +429,7 @@ class WC_Options_Serialize {
403
  'wc_simple_comment_date' => '0',
404
  'wc_comment_reply_checkboxes_default_checked' => '0',
405
  'wc_show_hide_comment_checkbox' => '1',
 
406
  'wc_show_hide_reply_checkbox' => '1',
407
  'wc_comment_text_size' => '14px',
408
  'wc_form_bg_color' => '#f9f9f9',
72
  */
73
  public $wc_user_must_be_registered;
74
 
75
+ /**
76
+ * Type - Checkbox
77
+ * Available Values - Checked/Unchecked
78
+ * Description - If checked show logged-in user name top of the main form
79
+ * Default Value - Checked
80
+ */
81
+ public $wc_show_hide_loggedin_username;
82
+
83
  /**
84
  * Type - Checkbox
85
  * Available Values - Checked/Unchecked
119
  * Default Value - 5
120
  */
121
  public $wc_comment_count;
122
+
123
  /**
124
  * Type - Dropdown menu
125
  * Available Values - 1, 2, 3, 4, 5
135
  * Default Value - Checked
136
  */
137
  public $wc_simple_comment_date;
138
+
139
  /**
140
  * Type - Checkbox
141
  * Available Values - Checked/Unchecked
152
  */
153
  public $wc_show_hide_comment_checkbox;
154
 
155
+ /**
156
+ * Type - Checkbox
157
+ * Available Values - Checked/Unchecked
158
+ * Description - Show all new reply notification checkbox below the form
159
+ * Default Value - Checked
160
+ */
161
+ public $wc_show_hide_all_reply_checkbox;
162
+
163
  /**
164
  * Type - Checkbox
165
  * Available Values - Checked/Unchecked
223
  * Default Value - #666666
224
  */
225
  public $wc_vote_reply_color;
226
+
227
+ /**
228
  * Type - Input
229
  * Available Values - color codes
230
  * Description - New Comments background color
252
  * helper class for database operations
253
  */
254
  public $wc_db_helper;
255
+
256
  function __construct($wc_db_helper) {
257
  $this->wc_db_helper = $wc_db_helper;
258
  $this->init_phrases();
271
  $this->wc_share_buttons_show_hide = $options['wc_share_buttons_show_hide'];
272
  $this->wc_captcha_show_hide = $options['wc_captcha_show_hide'];
273
  $this->wc_user_must_be_registered = $options['wc_user_must_be_registered'];
274
+ $this->wc_show_hide_loggedin_username = isset($options['wc_show_hide_loggedin_username']) ? $options['wc_show_hide_loggedin_username'] : 0;
275
  $this->wc_held_comment_to_moderate = $options['wc_held_comment_to_moderate'];
276
  $this->wc_reply_button_guests_show_hide = $options['wc_reply_button_guests_show_hide'];
277
  $this->wc_reply_button_members_show_hide = $options['wc_reply_button_members_show_hide'];
281
  $this->wc_simple_comment_date = isset($options['wc_simple_comment_date']) ? $options['wc_simple_comment_date'] : 0;
282
  $this->wc_comment_reply_checkboxes_default_checked = isset($options['wc_comment_reply_checkboxes_default_checked']) ? $options['wc_comment_reply_checkboxes_default_checked'] : 0;
283
  $this->wc_show_hide_comment_checkbox = isset($options['wc_show_hide_comment_checkbox']) ? $options['wc_show_hide_comment_checkbox'] : 0;
284
+ $this->wc_show_hide_all_reply_checkbox = isset($options['wc_show_hide_all_reply_checkbox']) ? $options['wc_show_hide_all_reply_checkbox'] : 0;
285
  $this->wc_show_hide_reply_checkbox = isset($options['wc_show_hide_reply_checkbox']) ? $options['wc_show_hide_reply_checkbox'] : 0;
286
  $this->wc_comment_text_size = isset($options['wc_comment_text_size']) ? $options['wc_comment_text_size'] : '14px';
287
  $this->wc_form_bg_color = isset($options['wc_form_bg_color']) ? $options['wc_form_bg_color'] : '#f9f9f9';
308
  'wc_email_text' => 'Email',
309
  'wc_name_text' => 'Name',
310
  'wc_captcha_text' => 'Please insert the code above to comment',
311
+ 'wc_submit_text' => 'Post Comment',
312
+ 'wc_manage_subscribtions' => 'Manage Subscriptions',
313
  'wc_notify_on_new_comment' => 'Notify of all new follow-up comments',
314
+ 'wc_notify_on_all_new_reply' => 'Notify of new replies to all my comments',
315
+ 'wc_notify_on_new_reply' => 'Notify of new replies to this comment',
316
  'wc_load_more_submit_text' => 'Load More Comments',
317
  'wc_reply_text' => 'Reply',
318
  'wc_share_text' => 'Share',
326
  'wc_user_title_author_text' => 'Author',
327
  'wc_user_title_admin_text' => 'Admin',
328
  'wc_email_subject' => 'New Comment',
329
+ 'wc_email_message' => 'New comment on the discussion section you\'ve been interested in',
330
  'wc_new_reply_email_subject' => 'New Reply',
331
+ 'wc_new_reply_email_message' => 'New reply on the discussion section you\'ve been interested in',
332
  'wc_subscribed_on_comment' => 'You\'re subscribed for new replies on this comment',
333
+ 'wc_subscribed_on_all_comment' => 'You\'re subscribed for new replies on all your comments',
334
  'wc_subscribed_on_post' => 'You\'re subscribed for new follow-up comments on this post',
335
+ 'wc_unsubscribe' => 'Unsubscribe',
336
  'wc_unsubscribe_message' => 'You\'ve successfully unsubscribed.',
337
  'wc_error_empty_text' => 'please fill out this field to comment',
338
  'wc_error_email_text' => 'email address is invalid',
347
  'wc_ago_text' => 'ago',
348
  'wc_posted_today_text' => 'Today',
349
  'wc_you_must_be_text' => 'You must be',
350
+ 'wc_logged_in_as' => 'You are logged in as',
351
+ 'wc_log_out' => 'Log out',
352
  'wc_logged_in_text' => 'logged in',
353
  'wc_to_post_comment_text' => 'to post a comment.',
354
  'wc_vote_up' => 'Vote Up',
379
  'wc_share_buttons_show_hide' => $this->wc_share_buttons_show_hide,
380
  'wc_captcha_show_hide' => $this->wc_captcha_show_hide,
381
  'wc_user_must_be_registered' => $this->wc_user_must_be_registered,
382
+ 'wc_show_hide_loggedin_username' => $this->wc_show_hide_loggedin_username,
383
  'wc_held_comment_to_moderate' => $this->wc_held_comment_to_moderate,
384
  'wc_reply_button_guests_show_hide' => $this->wc_reply_button_guests_show_hide,
385
  'wc_reply_button_members_show_hide' => $this->wc_reply_button_members_show_hide,
389
  'wc_simple_comment_date' => $this->wc_simple_comment_date,
390
  'wc_comment_reply_checkboxes_default_checked' => $this->wc_comment_reply_checkboxes_default_checked,
391
  'wc_show_hide_comment_checkbox' => $this->wc_show_hide_comment_checkbox,
392
+ 'wc_show_hide_all_reply_checkbox' => $this->wc_show_hide_all_reply_checkbox,
393
  'wc_show_hide_reply_checkbox' => $this->wc_show_hide_reply_checkbox,
394
  'wc_comment_text_size' => $this->wc_comment_text_size,
395
  'wc_form_bg_color' => $this->wc_form_bg_color,
419
  'wc_share_buttons_show_hide' => '0',
420
  'wc_captcha_show_hide' => '0',
421
  'wc_user_must_be_registered' => '0',
422
+ 'wc_show_hide_loggedin_username' => '1',
423
  'wc_held_comment_to_moderate' => '1',
424
  'wc_reply_button_guests_show_hide' => '0',
425
  'wc_reply_button_members_show_hide' => '0',
429
  'wc_simple_comment_date' => '0',
430
  'wc_comment_reply_checkboxes_default_checked' => '0',
431
  'wc_show_hide_comment_checkbox' => '1',
432
+ 'wc_show_hide_all_reply_checkbox' => '1',
433
  'wc_show_hide_reply_checkbox' => '1',
434
  'wc_comment_text_size' => '14px',
435
  'wc_form_bg_color' => '#f9f9f9',
wc-options.php CHANGED
@@ -28,7 +28,7 @@ class WC_Options {
28
  if (isset($_POST['wc_submit_options'])) {
29
 
30
  if (function_exists('current_user_can') && !current_user_can('manage_options')) {
31
- die(_e('Hacker?', 'wpdiscuz'));
32
  }
33
 
34
  if (function_exists('check_admin_referer')) {
@@ -43,6 +43,7 @@ class WC_Options {
43
  $this->wc_options_serialized->wc_share_buttons_show_hide = isset($_POST['wc_share_buttons_show_hide']) ? $_POST['wc_share_buttons_show_hide'] : 0;
44
  $this->wc_options_serialized->wc_captcha_show_hide = isset($_POST['wc_captcha_show_hide']) ? $_POST['wc_captcha_show_hide'] : 0;
45
  $this->wc_options_serialized->wc_user_must_be_registered = isset($_POST['wc_user_must_be_registered']) ? $_POST['wc_user_must_be_registered'] : 0;
 
46
  $this->wc_options_serialized->wc_held_comment_to_moderate = isset($_POST['wc_held_comment_to_moderate']) ? $_POST['wc_held_comment_to_moderate'] : 0;
47
  $this->wc_options_serialized->wc_reply_button_guests_show_hide = isset($_POST['wc_reply_button_guests_show_hide']) ? $_POST['wc_reply_button_guests_show_hide'] : 0;
48
  $this->wc_options_serialized->wc_reply_button_members_show_hide = isset($_POST['wc_reply_button_members_show_hide']) ? $_POST['wc_reply_button_members_show_hide'] : 0;
@@ -52,6 +53,7 @@ class WC_Options {
52
  $this->wc_options_serialized->wc_simple_comment_date = isset($_POST['wc_simple_comment_date']) ? $_POST['wc_simple_comment_date'] : 0;
53
  $this->wc_options_serialized->wc_comment_reply_checkboxes_default_checked = isset($_POST['wc_comment_reply_checkboxes_default_checked']) ? $_POST['wc_comment_reply_checkboxes_default_checked'] : 0;
54
  $this->wc_options_serialized->wc_show_hide_comment_checkbox = isset($_POST['wc_show_hide_comment_checkbox']) ? $_POST['wc_show_hide_comment_checkbox'] : 0;
 
55
  $this->wc_options_serialized->wc_show_hide_reply_checkbox = isset($_POST['wc_show_hide_reply_checkbox']) ? $_POST['wc_show_hide_reply_checkbox'] : 0;
56
  $this->wc_options_serialized->wc_form_bg_color = isset($_POST['wc_form_bg_color']) ? $_POST['wc_form_bg_color'] : '#f9f9f9';
57
  $this->wc_options_serialized->wc_comment_text_size = isset($_POST['wc_comment_text_size']) ? $_POST['wc_comment_text_size'] : '14px';
@@ -72,7 +74,7 @@ class WC_Options {
72
  <div style="float:left; width:50px; height:55px; margin:10px 10px 20px 0px;">
73
  <img src="<?php echo plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/files/img/plugin-icon/plugin-icon-48.png'); ?>"/>
74
  </div>
75
- <h2 style="padding-bottom:20px; padding-top:15px;"><?php _e('wpDiscuz General Settings', 'wpdiscuz'); ?></h2>
76
  <br style="clear:both" />
77
 
78
 
@@ -160,7 +162,7 @@ class WC_Options {
160
  <tr valign="top">
161
  <td colspan="4">
162
  <p class="submit">
163
- <input type="submit" class="button button-primary" name="wc_submit_options" value="<?php _e('Save Changes', 'wpdiscuz'); ?>" />
164
  </p>
165
  </td>
166
  </tr>
@@ -179,7 +181,7 @@ class WC_Options {
179
  if (isset($_POST['wc_submit_phrases'])) {
180
 
181
  if (function_exists('current_user_can') && !current_user_can('manage_options')) {
182
- die(_e('Hacker?', 'wpdiscuz'));
183
  }
184
 
185
  if (function_exists('check_admin_referer')) {
@@ -196,7 +198,9 @@ class WC_Options {
196
  $this->wc_options_serialized->wc_phrases['wc_name_text'] = $_POST['wc_name_text'];
197
  $this->wc_options_serialized->wc_phrases['wc_captcha_text'] = $_POST['wc_captcha_text'];
198
  $this->wc_options_serialized->wc_phrases['wc_submit_text'] = $_POST['wc_submit_text'];
 
199
  $this->wc_options_serialized->wc_phrases['wc_notify_on_new_comment'] = $_POST['wc_notify_on_new_comment'];
 
200
  $this->wc_options_serialized->wc_phrases['wc_notify_on_new_reply'] = $_POST['wc_notify_on_new_reply'];
201
  $this->wc_options_serialized->wc_phrases['wc_load_more_submit_text'] = $_POST['wc_load_more_submit_text'];
202
  $this->wc_options_serialized->wc_phrases['wc_reply_text'] = $_POST['wc_reply_text'];
@@ -215,6 +219,7 @@ class WC_Options {
215
  $this->wc_options_serialized->wc_phrases['wc_new_reply_email_subject'] = $_POST['wc_new_reply_email_subject'];
216
  $this->wc_options_serialized->wc_phrases['wc_new_reply_email_message'] = $_POST['wc_new_reply_email_message'];
217
  $this->wc_options_serialized->wc_phrases['wc_subscribed_on_comment'] = $_POST['wc_subscribed_on_comment'];
 
218
  $this->wc_options_serialized->wc_phrases['wc_subscribed_on_post'] = $_POST['wc_subscribed_on_post'];
219
  $this->wc_options_serialized->wc_phrases['wc_unsubscribe'] = $_POST['wc_unsubscribe'];
220
  $this->wc_options_serialized->wc_phrases['wc_unsubscribe_message'] = $_POST['wc_unsubscribe_message'];
@@ -231,6 +236,8 @@ class WC_Options {
231
  $this->wc_options_serialized->wc_phrases['wc_ago_text'] = $_POST['wc_ago_text'];
232
  $this->wc_options_serialized->wc_phrases['wc_posted_today_text'] = $_POST['wc_posted_today_text'];
233
  $this->wc_options_serialized->wc_phrases['wc_you_must_be_text'] = $_POST['wc_you_must_be_text'];
 
 
234
  $this->wc_options_serialized->wc_phrases['wc_logged_in_text'] = $_POST['wc_logged_in_text'];
235
  $this->wc_options_serialized->wc_phrases['wc_to_post_comment_text'] = $_POST['wc_to_post_comment_text'];
236
  $this->wc_options_serialized->wc_phrases['wc_vote_counted'] = $_POST['wc_vote_counted'];
@@ -261,7 +268,7 @@ class WC_Options {
261
  <div style="float:left; width:50px; height:55px; margin:10px 10px 20px 0px;">
262
  <img src="<?php echo plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/files/img/plugin-icon/plugin-icon-48.png'); ?>" style="height:43px;"/>
263
  </div>
264
- <h2 style="padding-bottom:20px; padding-top:15px;"><?php _e('WpDiscuz Front-end Phrases', 'wpdiscuz'); ?></h2>
265
  <br style="clear:both" />
266
  <form action="<?php echo admin_url(); ?>admin.php?page=wpdiscuz_phrases_page&updated=true" method="post" name="wpdiscuz_phrases_page" class="wc-phrases-settings-form wc-form">
267
  <?php
@@ -286,7 +293,7 @@ class WC_Options {
286
  <tr valign="top">
287
  <td colspan="4">
288
  <p class="submit">
289
- <input type="submit" class="button button-primary" name="wc_submit_phrases" value="<?php _e('Save Changes', 'wpdiscuz'); ?>" />
290
  </p>
291
  </td>
292
  </tr>
28
  if (isset($_POST['wc_submit_options'])) {
29
 
30
  if (function_exists('current_user_can') && !current_user_can('manage_options')) {
31
+ die(_e('Hacker?', WC_Core::$TEXT_DOMAIN));
32
  }
33
 
34
  if (function_exists('check_admin_referer')) {
43
  $this->wc_options_serialized->wc_share_buttons_show_hide = isset($_POST['wc_share_buttons_show_hide']) ? $_POST['wc_share_buttons_show_hide'] : 0;
44
  $this->wc_options_serialized->wc_captcha_show_hide = isset($_POST['wc_captcha_show_hide']) ? $_POST['wc_captcha_show_hide'] : 0;
45
  $this->wc_options_serialized->wc_user_must_be_registered = isset($_POST['wc_user_must_be_registered']) ? $_POST['wc_user_must_be_registered'] : 0;
46
+ $this->wc_options_serialized->wc_show_hide_loggedin_username = isset($_POST['wc_show_hide_loggedin_username']) ? $_POST['wc_show_hide_loggedin_username'] : 0;
47
  $this->wc_options_serialized->wc_held_comment_to_moderate = isset($_POST['wc_held_comment_to_moderate']) ? $_POST['wc_held_comment_to_moderate'] : 0;
48
  $this->wc_options_serialized->wc_reply_button_guests_show_hide = isset($_POST['wc_reply_button_guests_show_hide']) ? $_POST['wc_reply_button_guests_show_hide'] : 0;
49
  $this->wc_options_serialized->wc_reply_button_members_show_hide = isset($_POST['wc_reply_button_members_show_hide']) ? $_POST['wc_reply_button_members_show_hide'] : 0;
53
  $this->wc_options_serialized->wc_simple_comment_date = isset($_POST['wc_simple_comment_date']) ? $_POST['wc_simple_comment_date'] : 0;
54
  $this->wc_options_serialized->wc_comment_reply_checkboxes_default_checked = isset($_POST['wc_comment_reply_checkboxes_default_checked']) ? $_POST['wc_comment_reply_checkboxes_default_checked'] : 0;
55
  $this->wc_options_serialized->wc_show_hide_comment_checkbox = isset($_POST['wc_show_hide_comment_checkbox']) ? $_POST['wc_show_hide_comment_checkbox'] : 0;
56
+ $this->wc_options_serialized->wc_show_hide_all_reply_checkbox = isset($_POST['wc_show_hide_all_reply_checkbox']) ? $_POST['wc_show_hide_all_reply_checkbox'] : 0;
57
  $this->wc_options_serialized->wc_show_hide_reply_checkbox = isset($_POST['wc_show_hide_reply_checkbox']) ? $_POST['wc_show_hide_reply_checkbox'] : 0;
58
  $this->wc_options_serialized->wc_form_bg_color = isset($_POST['wc_form_bg_color']) ? $_POST['wc_form_bg_color'] : '#f9f9f9';
59
  $this->wc_options_serialized->wc_comment_text_size = isset($_POST['wc_comment_text_size']) ? $_POST['wc_comment_text_size'] : '14px';
74
  <div style="float:left; width:50px; height:55px; margin:10px 10px 20px 0px;">
75
  <img src="<?php echo plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/files/img/plugin-icon/plugin-icon-48.png'); ?>"/>
76
  </div>
77
+ <h2 style="padding-bottom:20px; padding-top:15px;"><?php _e('wpDiscuz General Settings', WC_Core::$TEXT_DOMAIN); ?></h2>
78
  <br style="clear:both" />
79
 
80
 
162
  <tr valign="top">
163
  <td colspan="4">
164
  <p class="submit">
165
+ <input type="submit" class="button button-primary" name="wc_submit_options" value="<?php _e('Save Changes', WC_Core::$TEXT_DOMAIN); ?>" />
166
  </p>
167
  </td>
168
  </tr>
181
  if (isset($_POST['wc_submit_phrases'])) {
182
 
183
  if (function_exists('current_user_can') && !current_user_can('manage_options')) {
184
+ die(_e('Hacker?', WC_Core::$TEXT_DOMAIN));
185
  }
186
 
187
  if (function_exists('check_admin_referer')) {
198
  $this->wc_options_serialized->wc_phrases['wc_name_text'] = $_POST['wc_name_text'];
199
  $this->wc_options_serialized->wc_phrases['wc_captcha_text'] = $_POST['wc_captcha_text'];
200
  $this->wc_options_serialized->wc_phrases['wc_submit_text'] = $_POST['wc_submit_text'];
201
+ $this->wc_options_serialized->wc_phrases['wc_manage_subscribtions'] = $_POST['wc_manage_subscribtions'];
202
  $this->wc_options_serialized->wc_phrases['wc_notify_on_new_comment'] = $_POST['wc_notify_on_new_comment'];
203
+ $this->wc_options_serialized->wc_phrases['wc_notify_on_all_new_reply'] = $_POST['wc_notify_on_all_new_reply'];
204
  $this->wc_options_serialized->wc_phrases['wc_notify_on_new_reply'] = $_POST['wc_notify_on_new_reply'];
205
  $this->wc_options_serialized->wc_phrases['wc_load_more_submit_text'] = $_POST['wc_load_more_submit_text'];
206
  $this->wc_options_serialized->wc_phrases['wc_reply_text'] = $_POST['wc_reply_text'];
219
  $this->wc_options_serialized->wc_phrases['wc_new_reply_email_subject'] = $_POST['wc_new_reply_email_subject'];
220
  $this->wc_options_serialized->wc_phrases['wc_new_reply_email_message'] = $_POST['wc_new_reply_email_message'];
221
  $this->wc_options_serialized->wc_phrases['wc_subscribed_on_comment'] = $_POST['wc_subscribed_on_comment'];
222
+ $this->wc_options_serialized->wc_phrases['wc_subscribed_on_all_comment'] = $_POST['wc_subscribed_on_all_comment'];
223
  $this->wc_options_serialized->wc_phrases['wc_subscribed_on_post'] = $_POST['wc_subscribed_on_post'];
224
  $this->wc_options_serialized->wc_phrases['wc_unsubscribe'] = $_POST['wc_unsubscribe'];
225
  $this->wc_options_serialized->wc_phrases['wc_unsubscribe_message'] = $_POST['wc_unsubscribe_message'];
236
  $this->wc_options_serialized->wc_phrases['wc_ago_text'] = $_POST['wc_ago_text'];
237
  $this->wc_options_serialized->wc_phrases['wc_posted_today_text'] = $_POST['wc_posted_today_text'];
238
  $this->wc_options_serialized->wc_phrases['wc_you_must_be_text'] = $_POST['wc_you_must_be_text'];
239
+ $this->wc_options_serialized->wc_phrases['wc_logged_in_as'] = $_POST['wc_logged_in_as'];
240
+ $this->wc_options_serialized->wc_phrases['wc_log_out'] = $_POST['wc_log_out'];
241
  $this->wc_options_serialized->wc_phrases['wc_logged_in_text'] = $_POST['wc_logged_in_text'];
242
  $this->wc_options_serialized->wc_phrases['wc_to_post_comment_text'] = $_POST['wc_to_post_comment_text'];
243
  $this->wc_options_serialized->wc_phrases['wc_vote_counted'] = $_POST['wc_vote_counted'];
268
  <div style="float:left; width:50px; height:55px; margin:10px 10px 20px 0px;">
269
  <img src="<?php echo plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/files/img/plugin-icon/plugin-icon-48.png'); ?>" style="height:43px;"/>
270
  </div>
271
+ <h2 style="padding-bottom:20px; padding-top:15px;"><?php _e('WpDiscuz Front-end Phrases', WC_Core::$TEXT_DOMAIN); ?></h2>
272
  <br style="clear:both" />
273
  <form action="<?php echo admin_url(); ?>admin.php?page=wpdiscuz_phrases_page&updated=true" method="post" name="wpdiscuz_phrases_page" class="wc-phrases-settings-form wc-form">
274
  <?php
293
  <tr valign="top">
294
  <td colspan="4">
295
  <p class="submit">
296
+ <input type="submit" class="button button-primary" name="wc_submit_phrases" value="<?php _e('Save Changes', WC_Core::$TEXT_DOMAIN); ?>" />
297
  </p>
298
  </td>
299
  </tr>
wc.php CHANGED
@@ -3,7 +3,7 @@
3
  /*
4
  Plugin Name: wpDiscuz - Wordpress Comments
5
  Description: Better comment system. Wordpress post comments and discussion plugin. Allows your visitors discuss, vote for comments and share.
6
- Version: 2.0.4
7
  Author: gVectors Team (A. Chakhoyan, G. Zakaryan, H. Martirosyan)
8
  Author URI: http://www.gvectors.com/
9
  Plugin URI: http://www.gvectors.com/wpdiscuz/
@@ -29,10 +29,12 @@ class WC_Core {
29
  public $commetns_count = 0;
30
  public $comment_count_text;
31
  public static $PLUGIN_DIRECTORY;
 
32
  public $post_type;
33
- private $wc_version_slug = 'wc_plugin_version';
34
 
35
  function __construct() {
 
36
  add_action('init', array(&$this, 'init_plugin_dir_name'), 1);
37
 
38
  $this->wc_options = new WC_Options();
@@ -72,10 +74,18 @@ class WC_Core {
72
  add_action('wp_ajax_nopriv_wc_list_new_comments', array(&$this, 'wc_list_new_comments'));
73
 
74
  add_filter('preprocess_comment', array(&$this, 'wc_new_comment'));
 
 
 
 
75
 
76
  add_action('wp_head', array(&$this, 'init_current_post_type'));
77
  }
78
 
 
 
 
 
79
  /**
80
  * create table
81
  * updates the comments to set comment type review if comment id is exists in comment meta table
@@ -104,6 +114,7 @@ class WC_Core {
104
  $wc_new_options = $this->wc_options->wc_options_serialized->to_array();
105
  $wc_new_options['wc_show_hide_comment_checkbox'] = '1';
106
  $wc_new_options['wc_show_hide_reply_checkbox'] = '1';
 
107
  update_option($this->wc_options->wc_options_serialized->wc_options_slug, serialize($wc_new_options));
108
  }
109
 
@@ -130,7 +141,7 @@ class WC_Core {
130
  /**
131
  * change comment type
132
  */
133
- // MUST BE CHANGED IN NEXT VERSION OF PLUGIN
134
  public function wc_new_comment($commentdata) {
135
 
136
  $commentdata['comment_type'] = isset($commentdata['comment_type']) ? $commentdata['comment_type'] : '';
@@ -187,7 +198,7 @@ class WC_Core {
187
  wp_register_style('validator-style', plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/files/css/fv.css'));
188
  wp_enqueue_style('validator-style');
189
 
190
- wp_enqueue_script('wc-ajax-js', plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/files/js/wc-ajax.js'), array('jquery'), '2.0.1', false);
191
  wp_localize_script('wc-ajax-js', 'wc_ajax_obj', array('url' => admin_url('admin-ajax.php')));
192
 
193
  wp_enqueue_script('wc-cookie-js', plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/files/js/jquery.cookie.js'), array('jquery'), '1.4.1', false);
@@ -278,11 +289,11 @@ class WC_Core {
278
  'b' => array(),
279
  'u' => array(),
280
  'strong' => array(),
281
- 'p' => array()
 
282
  ));
283
 
284
  $comment = $this->wc_helper->make_clickable($comment);
285
- $comment = nl2br($comment);
286
 
287
  if ($name && filter_var($email, FILTER_VALIDATE_EMAIL) && $comment && filter_var($comment_post_ID)) {
288
 
@@ -313,8 +324,10 @@ class WC_Core {
313
 
314
  if ($notification_type == 'post' && !$this->wc_db_helper->wc_has_post_notification($comment_post_ID, $email)) {
315
  $this->wc_db_helper->wc_add_email_notification($comment_post_ID, $comment_post_ID, $email, 1);
 
 
316
  } else if ($notification_type == 'reply' && !$this->wc_db_helper->wc_has_comment_notification($comment_post_ID, $new_comment_id, $email)) {
317
- $this->wc_db_helper->wc_add_email_notification($new_comment_id, $comment_post_ID, $email, 0);
318
  }
319
 
320
  $new_comment = new WC_Comment(get_comment($new_comment_id, OBJECT));
@@ -341,7 +354,7 @@ class WC_Core {
341
  /**
342
  * vote on comment via ajax
343
  */
344
- // MUST BE CHANGED IN NEXT VERSION OF PLUGIN
345
  public function vote_on_comment() {
346
  if ($this->wc_db_helper->is_phrase_exists('wc_leave_a_reply_text')) {
347
  $this->wc_options->wc_options_serialized->wc_phrases = $this->wc_db_helper->get_phrases();
@@ -398,7 +411,7 @@ class WC_Core {
398
  exit();
399
  }
400
 
401
- // MUST BE CHANGED IN NEXT VERSION OF PLUGIN
402
  public function live_update() {
403
  global $current_user;
404
  get_currentuserinfo();
@@ -460,7 +473,7 @@ class WC_Core {
460
  /**
461
  * list new comments
462
  */
463
- // MUST BE CHANGED IN NEXT VERSION OF PLUGIN
464
  public function wc_list_new_comments() {
465
  global $current_user;
466
  get_currentuserinfo();
@@ -587,7 +600,7 @@ class WC_Core {
587
  return false;
588
  }
589
 
590
- // MUST BE CHANGED IN NEXT VERSION OF PLUGIN
591
  public function get_invisible_comment_count($wc_new_comments, $wc_author_email = null, $visible_parent_comment_ids = array(), $wc_last_new_comment_id = 0, $wc_last_new_reply_id = 0) {
592
  $wc_new_comments_data = array();
593
  $wc_new_comments_count = 0;
@@ -633,7 +646,7 @@ class WC_Core {
633
  /**
634
  * get comments by comment type
635
  */
636
- // MUST BE CHANGED IN NEXT VERSION OF PLUGIN
637
  public function get_wp_comments($comments_offset, $post_id = null, $wc_curr_user_comment_count = 0, $wc_hidden_new_comment_count = 0) {
638
  global $post;
639
  if ($this->wc_db_helper->is_phrase_exists('wc_leave_a_reply_text')) {
@@ -685,7 +698,7 @@ class WC_Core {
685
  /**
686
  * load more comments by offset
687
  */
688
- // MUST BE CHANGED IN NEXT VERSION OF PLUGIN
689
  public function load_more_comments() {
690
  $c_offset = intval($_POST['comments_offset']);
691
  $c_offset = ($c_offset) ? $c_offset : 1;
@@ -754,7 +767,7 @@ class WC_Core {
754
 
755
  public function init_current_post_type() {
756
  global $post;
757
- if (in_array($post->post_type, $this->wc_options->wc_options_serialized->wc_post_types) && comments_open($post->ID)) {
758
  add_filter('comments_template', array(&$this, 'remove_comments_template_on_pages'), 1);
759
  }
760
  }
@@ -780,15 +793,19 @@ class WC_Core {
780
  $email = isset($_POST['wc_email']) ? $_POST['wc_email'] : '';
781
  }
782
 
783
-
784
  if ($comment_id && $email && $post_id) {
785
  $comment = get_comment($comment_id);
786
- $parrent_comment_id = $comment->comment_parent;
787
  if ($comment->comment_approved) {
788
  $this->wc_notify_on_new_comments($post_id, $comment_id, $email);
789
  }
790
- if ($comment->comment_approved && $parrent_comment_id) {
791
- $this->wc_notify_on_new_reply($parrent_comment_id, $comment->comment_ID, $email);
 
 
 
 
 
792
  }
793
  }
794
  exit();
@@ -806,6 +823,18 @@ class WC_Core {
806
  }
807
  }
808
 
 
 
 
 
 
 
 
 
 
 
 
 
809
  /**
810
  * notify on comment new replies
811
  */
@@ -823,6 +852,13 @@ class WC_Core {
823
  */
824
  public function wc_email_sender($email_data, $wc_new_comment_id, $subject, $message) {
825
  $comment = get_comment($wc_new_comment_id);
 
 
 
 
 
 
 
826
  $wc_new_comment_content = $comment->comment_content;
827
  $permalink = get_comment_link($wc_new_comment_id);
828
  $unsubscribe_url = get_permalink($comment->comment_post_ID) . "?wpdiscuzSubscribeID=" . $email_data['id'] . "&key=" . $email_data['activation_key'] . '&#wc_unsubscribe_message';
@@ -835,10 +871,37 @@ class WC_Core {
835
  wp_mail($email_data['email'], $subject, $message, $headers);
836
  }
837
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
838
  public function wc_unsubscribe($id, $activation_key) {
839
  $this->wc_db_helper->wc_unsubscribe($id, $activation_key);
840
  }
841
 
 
 
 
 
 
 
 
 
842
  }
843
 
844
  $wc_core = new WC_Core();
3
  /*
4
  Plugin Name: wpDiscuz - Wordpress Comments
5
  Description: Better comment system. Wordpress post comments and discussion plugin. Allows your visitors discuss, vote for comments and share.
6
+ Version: 2.0.5
7
  Author: gVectors Team (A. Chakhoyan, G. Zakaryan, H. Martirosyan)
8
  Author URI: http://www.gvectors.com/
9
  Plugin URI: http://www.gvectors.com/wpdiscuz/
29
  public $commetns_count = 0;
30
  public $comment_count_text;
31
  public static $PLUGIN_DIRECTORY;
32
+ public static $TEXT_DOMAIN = 'wpdiscuz';
33
  public $post_type;
34
+ public $wc_version_slug = 'wc_plugin_version';
35
 
36
  function __construct() {
37
+ add_action('plugins_loaded', array(&$this, 'load_wpdiscuz_text_domain'));
38
  add_action('init', array(&$this, 'init_plugin_dir_name'), 1);
39
 
40
  $this->wc_options = new WC_Options();
74
  add_action('wp_ajax_nopriv_wc_list_new_comments', array(&$this, 'wc_list_new_comments'));
75
 
76
  add_filter('preprocess_comment', array(&$this, 'wc_new_comment'));
77
+ add_action('transition_comment_status', array(&$this, 'wc_notify_to_subscriber'), 265, 3);
78
+
79
+ $plugin = plugin_basename(__FILE__);
80
+ add_filter("plugin_action_links_$plugin", array(&$this, 'wc_add_plugin_settings_link'));
81
 
82
  add_action('wp_head', array(&$this, 'init_current_post_type'));
83
  }
84
 
85
+ public function load_wpdiscuz_text_domain() {
86
+ load_plugin_textdomain('wpdiscuz', false, dirname(plugin_basename(__FILE__)) . '/languages/');
87
+ }
88
+
89
  /**
90
  * create table
91
  * updates the comments to set comment type review if comment id is exists in comment meta table
114
  $wc_new_options = $this->wc_options->wc_options_serialized->to_array();
115
  $wc_new_options['wc_show_hide_comment_checkbox'] = '1';
116
  $wc_new_options['wc_show_hide_reply_checkbox'] = '1';
117
+ $wc_new_options['wc_show_hide_all_reply_checkbox'] = '1';
118
  update_option($this->wc_options->wc_options_serialized->wc_options_slug, serialize($wc_new_options));
119
  }
120
 
141
  /**
142
  * change comment type
143
  */
144
+ // MUST BE CHANGED IN NEXT VERSION OF PLUGIN
145
  public function wc_new_comment($commentdata) {
146
 
147
  $commentdata['comment_type'] = isset($commentdata['comment_type']) ? $commentdata['comment_type'] : '';
198
  wp_register_style('validator-style', plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/files/css/fv.css'));
199
  wp_enqueue_style('validator-style');
200
 
201
+ wp_enqueue_script('wc-ajax-js', plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/files/js/wc-ajax.js'), array('jquery'), '2.0.5', false);
202
  wp_localize_script('wc-ajax-js', 'wc_ajax_obj', array('url' => admin_url('admin-ajax.php')));
203
 
204
  wp_enqueue_script('wc-cookie-js', plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/files/js/jquery.cookie.js'), array('jquery'), '1.4.1', false);
289
  'b' => array(),
290
  'u' => array(),
291
  'strong' => array(),
292
+ 'p' => array(),
293
+ 'img' => array('src' => array(), 'width' => array(), 'height' => array(), 'alt' => array())
294
  ));
295
 
296
  $comment = $this->wc_helper->make_clickable($comment);
 
297
 
298
  if ($name && filter_var($email, FILTER_VALIDATE_EMAIL) && $comment && filter_var($comment_post_ID)) {
299
 
324
 
325
  if ($notification_type == 'post' && !$this->wc_db_helper->wc_has_post_notification($comment_post_ID, $email)) {
326
  $this->wc_db_helper->wc_add_email_notification($comment_post_ID, $comment_post_ID, $email, 1);
327
+ } else if ($notification_type == 'all_comment' && !$this->wc_db_helper->wc_has_all_comments_notification($comment_post_ID, $email)) {
328
+ $this->wc_db_helper->wc_add_email_notification($comment_post_ID, $comment_post_ID, $email, 2);
329
  } else if ($notification_type == 'reply' && !$this->wc_db_helper->wc_has_comment_notification($comment_post_ID, $new_comment_id, $email)) {
330
+ $this->wc_db_helper->wc_add_email_notification($new_comment_id, $comment_post_ID, $email, 3);
331
  }
332
 
333
  $new_comment = new WC_Comment(get_comment($new_comment_id, OBJECT));
354
  /**
355
  * vote on comment via ajax
356
  */
357
+ // MUST BE CHANGED IN NEXT VERSION OF PLUGIN
358
  public function vote_on_comment() {
359
  if ($this->wc_db_helper->is_phrase_exists('wc_leave_a_reply_text')) {
360
  $this->wc_options->wc_options_serialized->wc_phrases = $this->wc_db_helper->get_phrases();
411
  exit();
412
  }
413
 
414
+ // MUST BE CHANGED IN NEXT VERSION OF PLUGIN
415
  public function live_update() {
416
  global $current_user;
417
  get_currentuserinfo();
473
  /**
474
  * list new comments
475
  */
476
+ // MUST BE CHANGED IN NEXT VERSION OF PLUGIN
477
  public function wc_list_new_comments() {
478
  global $current_user;
479
  get_currentuserinfo();
600
  return false;
601
  }
602
 
603
+ // MUST BE CHANGED IN NEXT VERSION OF PLUGIN
604
  public function get_invisible_comment_count($wc_new_comments, $wc_author_email = null, $visible_parent_comment_ids = array(), $wc_last_new_comment_id = 0, $wc_last_new_reply_id = 0) {
605
  $wc_new_comments_data = array();
606
  $wc_new_comments_count = 0;
646
  /**
647
  * get comments by comment type
648
  */
649
+ // MUST BE CHANGED IN NEXT VERSION OF PLUGIN
650
  public function get_wp_comments($comments_offset, $post_id = null, $wc_curr_user_comment_count = 0, $wc_hidden_new_comment_count = 0) {
651
  global $post;
652
  if ($this->wc_db_helper->is_phrase_exists('wc_leave_a_reply_text')) {
698
  /**
699
  * load more comments by offset
700
  */
701
+ // MUST BE CHANGED IN NEXT VERSION OF PLUGIN
702
  public function load_more_comments() {
703
  $c_offset = intval($_POST['comments_offset']);
704
  $c_offset = ($c_offset) ? $c_offset : 1;
767
 
768
  public function init_current_post_type() {
769
  global $post;
770
+ if (in_array($post->post_type, $this->wc_options->wc_options_serialized->wc_post_types)) {
771
  add_filter('comments_template', array(&$this, 'remove_comments_template_on_pages'), 1);
772
  }
773
  }
793
  $email = isset($_POST['wc_email']) ? $_POST['wc_email'] : '';
794
  }
795
 
 
796
  if ($comment_id && $email && $post_id) {
797
  $comment = get_comment($comment_id);
798
+ $parent_comment_id = $comment->comment_parent;
799
  if ($comment->comment_approved) {
800
  $this->wc_notify_on_new_comments($post_id, $comment_id, $email);
801
  }
802
+ if ($comment->comment_approved && $parent_comment_id) {
803
+ $this->wc_notify_on_new_reply($parent_comment_id, $comment->comment_ID, $email);
804
+ $parent_comment = get_comment($parent_comment_id);
805
+ $parent_comment_email = $parent_comment->comment_author_email;
806
+ if ($parent_comment_email != $email) {
807
+ $this->wc_notify_on_all_new_reply($post_id, $comment_id, $parent_comment_email);
808
+ }
809
  }
810
  }
811
  exit();
823
  }
824
  }
825
 
826
+ /**
827
+ * notify on comment new replies
828
+ */
829
+ public function wc_notify_on_all_new_reply($post_id, $new_comment_id, $email) {
830
+ $emails_array = $this->wc_db_helper->wc_get_post_all_new_comment_notification($post_id, $email);
831
+ $subject = ($this->wc_options->wc_options_serialized->wc_phrases['wc_new_reply_email_subject']) ? $this->wc_options->wc_options_serialized->wc_phrases['wc_new_reply_email_subject'] : 'New Reply';
832
+ $message = ($this->wc_options->wc_options_serialized->wc_phrases['wc_new_reply_email_message']) ? $this->wc_options->wc_options_serialized->wc_phrases['wc_new_reply_email_message'] : 'New reply on the discussion section you\'ve been interested in';
833
+ foreach ($emails_array as $e_row) {
834
+ $this->wc_email_sender($e_row, $new_comment_id, $subject, $message);
835
+ }
836
+ }
837
+
838
  /**
839
  * notify on comment new replies
840
  */
852
  */
853
  public function wc_email_sender($email_data, $wc_new_comment_id, $subject, $message) {
854
  $comment = get_comment($wc_new_comment_id);
855
+ $curr_post = get_post($comment->comment_post_ID);
856
+ $curr_post_author = get_userdata($curr_post->post_author);
857
+
858
+ if ($email_data['email'] == $curr_post_author->user_email && (get_option('comments_notify') || get_option('moderation_notify'))) {
859
+ return;
860
+ }
861
+
862
  $wc_new_comment_content = $comment->comment_content;
863
  $permalink = get_comment_link($wc_new_comment_id);
864
  $unsubscribe_url = get_permalink($comment->comment_post_ID) . "?wpdiscuzSubscribeID=" . $email_data['id'] . "&key=" . $email_data['activation_key'] . '&#wc_unsubscribe_message';
871
  wp_mail($email_data['email'], $subject, $message, $headers);
872
  }
873
 
874
+ public function wc_notify_to_subscriber($new_status, $old_status, $comment) {
875
+ if ($old_status != $new_status) {
876
+ if ($new_status == 'approved') {
877
+ $post_id = $comment->comment_post_ID;
878
+ $comment_id = $comment->comment_ID;
879
+ $email = $comment->comment_author_email;
880
+ $parent_comment = get_comment($comment->comment_parent);
881
+ $this->wc_notify_on_new_comments($post_id, $comment_id, $email);
882
+ if ($parent_comment) {
883
+ $this->wc_notify_on_new_reply($parent_comment->comment_ID, $comment_id, $email);
884
+ $parent_comment_email = $parent_comment->comment_author_email;
885
+ if ($parent_comment_email != $email) {
886
+ $this->wc_notify_on_all_new_reply($post_id, $comment_id, $parent_comment_email);
887
+ }
888
+ }
889
+ }
890
+ }
891
+ }
892
+
893
  public function wc_unsubscribe($id, $activation_key) {
894
  $this->wc_db_helper->wc_unsubscribe($id, $activation_key);
895
  }
896
 
897
+ // Add settings link on plugin page
898
+ public function wc_add_plugin_settings_link($links) {
899
+ $settings_link = '<a href="' . admin_url() . 'admin.php?page=wpdiscuz_options_page">' . __('Settings', 'default') . '</a> |';
900
+ $settings_link .= '<a href="' . admin_url() . 'admin.php?page=wpdiscuz_phrases_page">' . __('Phrases', 'default') . '</a>';
901
+ array_unshift($links, $settings_link);
902
+ return $links;
903
+ }
904
+
905
  }
906
 
907
  $wc_core = new WC_Core();