Comments – wpDiscuz - Version 1.0.2

Version Description

  • Fixed Bug : Translations does not work, they come by default when saving
Download this release

Release Info

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

Code changes from version 1.0.1 to 1.0.2

comment-form/form.php CHANGED
@@ -1,4 +1,5 @@
1
- <?php global $post, $wc_core;?>
 
2
  <script type="text/javascript">
3
  // initialize the validator function
4
  validator.message['invalid'] = '<?php echo $wc_core->wc_options->wc_options_serialized->wc_phrases['wc_invalid_field']; ?>';
@@ -6,7 +7,7 @@
6
  validator.message['email'] = '<?php echo $wc_core->wc_options->wc_options_serialized->wc_phrases['wc_error_email_text']; ?>';
7
 
8
  jQuery(document).ready(function ($) {
9
- $(document).delegate('.wc-toggle', 'click', function() {
10
  var toggleID = $(this).attr('id');
11
  var uniqueID = toggleID.substring(toggleID.lastIndexOf('-') + 1);
12
  $('#wc-comm-' + uniqueID + ' .wc-reply').slideToggle(500, function () {
@@ -25,7 +26,6 @@
25
  });
26
  </script>
27
  <?php
28
-
29
  $textarea_placeholder = '';
30
  if ($post->comment_count) {
31
  $textarea_placeholder = $wc_core->wc_options->wc_options_serialized->wc_phrases['wc_comment_join_text'];
@@ -33,86 +33,88 @@ if ($post->comment_count) {
33
  $textarea_placeholder = $wc_core->wc_options->wc_options_serialized->wc_phrases['wc_comment_start_text'];
34
  }
35
  $unique_id = $post->ID . '_' . 0;
36
- $header_text = $post->comment_count . ' ';
37
  $header_text .= $wc_core->wc_options->wc_options_serialized->wc_phrases['wc_header_text'];
38
  $header_text .= ($post->comment_count > 1) ? $wc_core->wc_options->wc_options_serialized->wc_phrases['wc_plural_text'] : '';
39
  $header_text .= ' ' . $wc_core->wc_options->wc_options_serialized->wc_phrases['wc_header_on_text'];
40
  $header_text .= ' "' . get_the_title($post) . '"';
41
  ?>
42
  <div style="clear:both"></div>
43
- <h3 class="wc-comment-header"><?php echo $wc_core->wc_options->wc_options_serialized->wc_phrases['wc_leave_a_reply_text']; ?></h3>
44
- <div id="wpcomm">
45
- <p class="wc-comment-title"><?php echo ($post->comment_count) ? $header_text : $wc_core->wc_options->wc_options_serialized->wc_phrases['wc_be_the_first_text']; ?></p>
46
- <div class="wc-form-wrapper">
47
- <?php
48
- if ($wc_core->is_guest_can_comment()) {
49
- ?>
 
50
 
51
- <form action="" method="post" id="wc_comm_form-<?php echo $unique_id; ?>" class="wc_comm_form">
52
- <div class="wc-field-comment">
53
- <div style="width:60px; float:left; position:absolute;">
54
- <?php echo $wc_core->wc_helper->get_comment_author_avatar(); ?>
55
- </div>
56
- <div style="margin-left:65px;" class="item"><textarea id="wc_comment-<?php echo $unique_id; ?>" class="wc_comment" name="wc_comment" required="required" placeholder="<?php echo $textarea_placeholder; ?>"></textarea></div>
57
- <div style="clear:both"></div>
58
- </div>
59
- <div id="wc-form-footer-<?php echo $unique_id; ?>" class="wc-form-footer">
60
- <?php if (!is_user_logged_in()) { ?>
61
- <div class="wc-author-data">
62
- <div class="wc-field-name item"><input id="wc_name-<?php echo $unique_id; ?>" class="wc_name" name="wc_name" required="required" value="" type="text" placeholder="<?php echo $wc_core->wc_options->wc_options_serialized->wc_phrases['wc_name_text'] ?>"/></div>
63
- <div class="wc-field-email item"><input id="wc_email-<?php echo $unique_id; ?>" class="wc_email 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>
64
- <div style="clear:both"></div>
65
  </div>
66
- <?php } ?>
67
- <div class="wc-form-submit">
68
- <?php if (!$wc_core->wc_options->wc_options_serialized->wc_captcha_show_hide) { ?>
69
- <?php if (!is_user_logged_in()) { ?>
70
- <div class="wc-field-captcha item">
71
- <input id="wc_captcha-<?php echo $unique_id; ?>" name="wc_captcha" required="required" value="" type="text" />
72
- <span class="wc-label wc-captcha-label">
73
- <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; ?>" />
74
- <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" />
75
- </span>
76
- <span class="captcha_msg"><?php echo $wc_core->wc_options->wc_options_serialized->wc_phrases['wc_captcha_text']; ?></span>
77
- </div>
78
- <?php } ?>
79
- <?php } ?>
80
- <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>
81
  <div style="clear:both"></div>
82
  </div>
83
- </div>
84
- <input type="hidden" name="wc_home_url" value="<?php echo plugins_url(); ?>" id="wc_home_url" />
85
- <input type="hidden" name="wc_plugin_dir_url" value="<?php echo WC_Core::$PLUGIN_DIRECTORY; ?>" id="wc_plugin_dir_url" />
86
- <input type="hidden" name="wc_comment_post_ID" value="<?php echo $post->ID; ?>" id="wc_comment_post_ID-<?php echo $unique_id; ?>" />
87
- <input type="hidden" name="wc_comment_parent" value="0" id="wc_comment_parent-<?php echo $unique_id; ?>" />
88
- </form>
89
- <?php } else { ?>
90
- <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>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
91
  <?php } ?>
92
- </div>
93
- <hr/>
94
 
95
- <div class="wc-thread-wrapper">
96
- <?php $wc_parent_comments_count = $wc_core->get_wp_comments(1); ?>
97
- </div>
98
 
99
- <?php if ($wc_parent_comments_count > $wc_core->wc_options->wc_options_serialized->wc_comment_count) { ?>
100
- <div class="wc-load-more-submit-wrap">
101
- <input type="button" name="submit" value="<?php echo $wc_core->wc_options->wc_options_serialized->wc_phrases['wc_load_more_submit_text']; ?>" id="wc-load-more-submit-<?php echo $unique_id; ?>" class="wc-load-more-submit button"/>
102
- <input type="hidden" name="wc_comments_offset" id="wc_comments_offset" value="1" />
103
- <input type="hidden" name="wc_parent_per_page" id="wc_parent_per_page" value="<?php echo $wc_core->wc_options->wc_options_serialized->wc_comment_count; ?>" />
104
- <input type="hidden" name="wc_parent_comments_count" id="wc_parent_comments_count" value="<?php echo $wc_parent_comments_count; ?>" />
105
- </div>
106
- <?php } ?>
107
-
108
- <div style="clear:both"></div>
109
- <div class="by-wpdiscuz"><a href="http://gvectors.com/wpdiscuz/">wpDiscuz</a></div>
110
-
111
- <div id="wc_openModalFormAction" class="modalDialog">
112
- <div id="wc_response_info" class="wc_modal">
113
- <div id="wc_response_info_box">
114
- <a href="#close" title="Close" class="close">&nbsp;</a>
115
- <img width="64" height="64" src="<?php echo plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/files/img/loader/ajax-loader-200x200.gif'); ?>" />
116
  </div>
117
  </div>
118
  </div>
1
+ <?php global $post, $wc_core; ?>
2
+ <?php $wc_core->wc_options->wc_options_serialized->wc_phrases = $wc_core->wc_db_helper->get_phrases(); ?>
3
  <script type="text/javascript">
4
  // initialize the validator function
5
  validator.message['invalid'] = '<?php echo $wc_core->wc_options->wc_options_serialized->wc_phrases['wc_invalid_field']; ?>';
7
  validator.message['email'] = '<?php echo $wc_core->wc_options->wc_options_serialized->wc_phrases['wc_error_email_text']; ?>';
8
 
9
  jQuery(document).ready(function ($) {
10
+ $(document).delegate('.wc-toggle', 'click', function () {
11
  var toggleID = $(this).attr('id');
12
  var uniqueID = toggleID.substring(toggleID.lastIndexOf('-') + 1);
13
  $('#wc-comm-' + uniqueID + ' .wc-reply').slideToggle(500, function () {
26
  });
27
  </script>
28
  <?php
 
29
  $textarea_placeholder = '';
30
  if ($post->comment_count) {
31
  $textarea_placeholder = $wc_core->wc_options->wc_options_serialized->wc_phrases['wc_comment_join_text'];
33
  $textarea_placeholder = $wc_core->wc_options->wc_options_serialized->wc_phrases['wc_comment_start_text'];
34
  }
35
  $unique_id = $post->ID . '_' . 0;
36
+ $header_text = $post->comment_count . ' ';
37
  $header_text .= $wc_core->wc_options->wc_options_serialized->wc_phrases['wc_header_text'];
38
  $header_text .= ($post->comment_count > 1) ? $wc_core->wc_options->wc_options_serialized->wc_phrases['wc_plural_text'] : '';
39
  $header_text .= ' ' . $wc_core->wc_options->wc_options_serialized->wc_phrases['wc_header_on_text'];
40
  $header_text .= ' "' . get_the_title($post) . '"';
41
  ?>
42
  <div style="clear:both"></div>
43
+ <div class="comments-area">
44
+ <h3 class="wc-comment-header"><?php echo $wc_core->wc_options->wc_options_serialized->wc_phrases['wc_leave_a_reply_text']; ?></h3>
45
+ <div id="wpcomm">
46
+ <p class="wc-comment-title"><?php echo ($post->comment_count) ? $header_text : $wc_core->wc_options->wc_options_serialized->wc_phrases['wc_be_the_first_text']; ?></p>
47
+ <div class="wc-form-wrapper">
48
+ <?php
49
+ if ($wc_core->is_guest_can_comment()) {
50
+ ?>
51
 
52
+ <form action="" method="post" id="wc_comm_form-<?php echo $unique_id; ?>" class="wc_comm_form">
53
+ <div class="wc-field-comment">
54
+ <div style="width:60px; float:left; position:absolute;">
55
+ <?php echo $wc_core->wc_helper->get_comment_author_avatar(); ?>
 
 
 
 
 
 
 
 
 
 
56
  </div>
57
+ <div style="margin-left:65px;" class="item"><textarea id="wc_comment-<?php echo $unique_id; ?>" class="wc_comment" name="wc_comment" required="required" placeholder="<?php echo $textarea_placeholder; ?>"></textarea></div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
58
  <div style="clear:both"></div>
59
  </div>
60
+ <div id="wc-form-footer-<?php echo $unique_id; ?>" class="wc-form-footer">
61
+ <?php if (!is_user_logged_in()) { ?>
62
+ <div class="wc-author-data">
63
+ <div class="wc-field-name item"><input id="wc_name-<?php echo $unique_id; ?>" class="wc_name" name="wc_name" required="required" value="" type="text" placeholder="<?php echo $wc_core->wc_options->wc_options_serialized->wc_phrases['wc_name_text'] ?>"/></div>
64
+ <div class="wc-field-email item"><input id="wc_email-<?php echo $unique_id; ?>" class="wc_email 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>
65
+ <div style="clear:both"></div>
66
+ </div>
67
+ <?php } ?>
68
+ <div class="wc-form-submit">
69
+ <?php if (!$wc_core->wc_options->wc_options_serialized->wc_captcha_show_hide) { ?>
70
+ <?php if (!is_user_logged_in()) { ?>
71
+ <div class="wc-field-captcha item">
72
+ <input id="wc_captcha-<?php echo $unique_id; ?>" name="wc_captcha" required="required" value="" type="text" />
73
+ <span class="wc-label wc-captcha-label">
74
+ <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"/>
75
+ <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"/>
76
+ </span>
77
+ <span class="captcha_msg"><?php echo $wc_core->wc_options->wc_options_serialized->wc_phrases['wc_captcha_text']; ?></span>
78
+ </div>
79
+ <?php } ?>
80
+ <?php } ?>
81
+ <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>
82
+ <div style="clear:both"></div>
83
+ </div>
84
+ </div>
85
+ <input type="hidden" name="wc_home_url" value="<?php echo plugins_url(); ?>" id="wc_home_url" />
86
+ <input type="hidden" name="wc_plugin_dir_url" value="<?php echo WC_Core::$PLUGIN_DIRECTORY; ?>" id="wc_plugin_dir_url" />
87
+ <input type="hidden" name="wc_comment_post_ID" value="<?php echo $post->ID; ?>" id="wc_comment_post_ID-<?php echo $unique_id; ?>" />
88
+ <input type="hidden" name="wc_comment_parent" value="0" id="wc_comment_parent-<?php echo $unique_id; ?>" />
89
+ </form>
90
+ <?php } else { ?>
91
+ <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>
92
+ <?php } ?>
93
+ </div>
94
+ <hr/>
95
+
96
+ <div class="wc-thread-wrapper">
97
+ <?php $wc_parent_comments_count = $wc_core->get_wp_comments(1); ?>
98
+ </div>
99
+
100
+ <?php if ($wc_parent_comments_count > $wc_core->wc_options->wc_options_serialized->wc_comment_count) { ?>
101
+ <div class="wc-load-more-submit-wrap">
102
+ <input type="button" name="submit" value="<?php echo $wc_core->wc_options->wc_options_serialized->wc_phrases['wc_load_more_submit_text']; ?>" id="wc-load-more-submit-<?php echo $unique_id; ?>" class="wc-load-more-submit button"/>
103
+ <input type="hidden" name="wc_comments_offset" id="wc_comments_offset" value="1" />
104
+ <input type="hidden" name="wc_parent_per_page" id="wc_parent_per_page" value="<?php echo $wc_core->wc_options->wc_options_serialized->wc_comment_count; ?>" />
105
+ <input type="hidden" name="wc_parent_comments_count" id="wc_parent_comments_count" value="<?php echo $wc_parent_comments_count; ?>" />
106
+ </div>
107
  <?php } ?>
 
 
108
 
109
+ <div style="clear:both"></div>
110
+ <div class="by-wpdiscuz"><a href="http://gvectors.com/wpdiscuz/">wpDiscuz</a></div>
 
111
 
112
+ <div id="wc_openModalFormAction" class="modalDialog">
113
+ <div id="wc_response_info" class="wc_modal">
114
+ <div id="wc_response_info_box">
115
+ <a href="#close" title="Close" class="close">&nbsp;</a>
116
+ <img width="64" height="64" src="<?php echo plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/files/img/loader/ajax-loader-200x200.gif'); ?>" />
117
+ </div>
 
 
 
 
 
 
 
 
 
 
 
118
  </div>
119
  </div>
120
  </div>
comment-form/tpl-comment.php CHANGED
@@ -1,233 +1,237 @@
1
- <?php
2
-
3
- class WC_Comment_Template_Builder {
4
-
5
- public $wc_helper;
6
- public $wc_db_helper;
7
- public $wc_options;
8
-
9
- function __construct($wc_helper, $wc_db_helper, $wc_options) {
10
- $this->wc_helper = $wc_helper;
11
- $this->wc_db_helper = $wc_db_helper;
12
- $this->wc_options = $wc_options;
13
- }
14
-
15
- /**
16
- * @param type $comment the current comment object
17
- * @param type $args
18
- * @return single comment template
19
- */
20
- public function get_comment_template($comment) {
21
- $comment_content = $comment->comment_content;
22
-
23
- $vote_cls = '';
24
- $vote_title_text = '';
25
- $user = get_user_by('id', $comment->user_id);
26
- if ($user) {
27
- $post = get_post($comment->comment_post_ID);
28
- if ($user->ID == $post->post_author) {
29
- $author_title = $this->wc_options->wc_options_serialized->wc_phrases['wc_user_title_author_text'];
30
- } else if (in_array('administrator', $user->roles)) {
31
- $author_title = $this->wc_options->wc_options_serialized->wc_phrases['wc_user_title_admin_text'];
32
- } else {
33
- $author_title = $this->wc_options->wc_options_serialized->wc_phrases['wc_user_title_member_text'];
34
- }
35
- } else {
36
- $author_title = $this->wc_options->wc_options_serialized->wc_phrases['wc_user_title_guest_text'];
37
- }
38
-
39
- $posted_date = $this->wc_helper->dateDiff(time(), strtotime($comment->comment_date_gmt), 2);
40
-
41
- $reply_text = $this->wc_options->wc_options_serialized->wc_phrases['wc_reply_text'];
42
- $share_text = $this->wc_options->wc_options_serialized->wc_phrases['wc_share_text'];
43
- $comment_wrapper_class = ($comment->comment_parent) ? 'wc-comment wc-reply' : 'wc-comment';
44
- $textarea_placeholder = $this->get_textarea_placeholder($comment);
45
- $comm_author_avatar = $this->wc_helper->get_comment_author_avatar($comment);
46
- $vote_count = ($comment->votes) ? $comment->votes : 0;
47
- $unique_id = $this->get_unique_id($comment);
48
-
49
- $child_comments = get_comments(array(
50
- 'parent' => $comment->comment_ID,
51
- 'status' => 'approve'
52
- ));
53
-
54
- if (!is_user_logged_in()) {
55
- $vote_cls = ' wc_tooltipster';
56
- $vote_title_text = $this->wc_options->wc_options_serialized->wc_phrases['wc_login_to_vote'];
57
- $vote_up = $vote_title_text;
58
- $vote_down = $vote_title_text;
59
- } else {
60
- $vote_cls = ' wc_vote';
61
- $vote_up = $this->wc_options->wc_options_serialized->wc_phrases['wc_vote_up'];
62
- $vote_down = $this->wc_options->wc_options_serialized->wc_phrases['wc_vote_down'];
63
- }
64
-
65
- $parent_comment = (!$comment->comment_parent && count($child_comments)) ? ' parnet_comment' : '';
66
-
67
- $output = '<div id="wc-comm-' . $unique_id . '" class="' . $comment_wrapper_class . ' ' . $parent_comment . '">';
68
- $output .= '<div class="wc-comment-left">' . $comm_author_avatar;
69
- if (!$this->wc_options->wc_options_serialized->wc_author_titles_show_hide) {
70
- $output .= '<div class="wc-comment-label">' . $author_title . '</div>';
71
- }
72
- $output .= '</div>';
73
- $output .= '<div class="wc-comment-right">';
74
- $output .= '<div class="wc-comment-header"><div class="wc-comment-author">' . $comment->comment_author . '</div><div class="wc-comment-date">' . $posted_date . '</div><div style="clear:both"></div></div>';
75
- $output .= '<div class="wc-comment-text">' . $comment_content . '</div>';
76
- $output .= '<div class="wc-comment-footer">';
77
- if (!$this->wc_options->wc_options_serialized->wc_voting_buttons_show_hide) {
78
- $output .= '<div id="vote-count-' . $unique_id . '" class="wc-vote-result">' . $vote_count . '</div>';
79
- $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;';
80
- }
81
-
82
- if ($this->is_guest_can_reply() && $this->is_customer_can_reply()) {
83
- $output .= '&nbsp;&nbsp;<span id="wc-comm-reply-' . $unique_id . '" class="wc-reply-link" title="' . $reply_text . '">' . $reply_text . '</span> &nbsp;&nbsp;';
84
- }
85
-
86
-
87
- if (!$this->wc_options->wc_options_serialized->wc_share_buttons_show_hide) {
88
- $output .= '-&nbsp;&nbsp; <span id="wc-comm-share-' . $unique_id . '" class="wc-share-link" title="' . $share_text . '">' . $share_text . '</span> &nbsp;&nbsp;';
89
-
90
- $twitt_content = $comment_content . ' ' . get_comment_link($comment);
91
-
92
- $output .= '<span id="share_buttons_box-' . $unique_id . '" class="share_buttons_box">';
93
- $output .= '<a target="_blank" href="http://www.facebook.com/sharer.php" title="' . $this->wc_options->wc_options_serialized->wc_phrases['wc_share_facebook'] . '"><img src="' . plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/files/img/social-icons/fb-18x18.png') . '"/></a>&nbsp;&nbsp;';
94
- $output .= '<a target="_blank" href="https://twitter.com/home?status=' . $twitt_content . '" title="' . $this->wc_options->wc_options_serialized->wc_phrases['wc_share_twitter'] . '"><img src="' . plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/files/img/social-icons/twitter-18x18.png') . '"/></a>&nbsp;&nbsp;';
95
- $output .= '<a target="_blank" href="https://plus.google.com/share?url=' . get_permalink($comment->comment_post_ID) . '" title="' . $this->wc_options->wc_options_serialized->wc_phrases['wc_share_google'] . '"><img src="' . plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/files/img/social-icons/google-18x18.png') . '"/></a>&nbsp;&nbsp;';
96
- $output .= '</span>';
97
- }
98
-
99
- if (current_user_can('edit_comment', $comment->comment_ID)) {
100
- $output .= '-&nbsp;&nbsp; <a href="' . get_edit_comment_link($comment->comment_ID) . '">' . __('Edit', 'wpdiscuz') . '</a>';
101
- }
102
-
103
-
104
-
105
- $visibility = 'none';
106
- if (!$comment->comment_parent && count($child_comments)) {
107
- $visibility = 'block';
108
- $output .= '<span id="wc-toggle-' . $unique_id . '" class="wc-toggle" style="display:' . $visibility . ';">' . $this->wc_options->wc_options_serialized->wc_phrases['wc_hide_replies_text'] . ' &and;</span>';
109
- }
110
-
111
- $output .= '</div>';
112
- $output .= '</div>';
113
- $output .= '<div style="clear:both"></div>';
114
-
115
- if ($this->is_guest_can_reply() && $this->is_customer_can_reply()) {
116
- $output .= '<div class="wc-form-wrapper wc-secondary-forms-wrapper" id="wc-secondary-forms-wrapper-' . $unique_id . '">';
117
- $output .= '<form action="" method="post" id="wc_comm_form-' . $unique_id . '" class="wc_comm_form">';
118
- $output .= '<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" name="wc_comment" required="required" placeholder="' . $textarea_placeholder . '"></textarea></div><div style="clear:both"></div></div>';
119
-
120
- $output .= '<div id="wc-form-footer-' . $unique_id . '" class="wc-form-footer">';
121
-
122
- if (!is_user_logged_in()) {
123
- $output .= '<div class="wc-author-data"><div class="wc-field-name item"><input id="wc_name-' . $unique_id . '" name="wc_name" class="wc_name" 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 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>';
124
- }
125
-
126
- $output .= '<div class="wc-form-submit">';
127
-
128
- if (!$this->wc_options->wc_options_serialized->wc_captcha_show_hide) {
129
- if (!is_user_logged_in()) {
130
- $output .= '<div class="wc-field-captcha item"><input id="wc_captcha-' . $unique_id . '" name="wc_captcha" required="required" value="" type="text" /><span class="wc-label wc-captcha-label"><img 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 . '" /><img src="' . plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/files/img/refresh-16x16.png') . '" id="wc_captcha_refresh_img-' . $unique_id . '" class="wc_captcha_refresh_img" /></span><span class="captcha_msg">' . $this->wc_options->wc_options_serialized->wc_phrases['wc_captcha_text'] . '</span></div>';
131
- }
132
- }
133
-
134
- $output .= '<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"/>
135
- </div>';
136
- $output .= '<div style="clear:both"></div>';
137
- $output .= '</div>';
138
- $output .= '</div>';
139
-
140
- $output .= '<input type="hidden" name="wc_home_url" value="' . plugins_url() . '" id="wc_home_url-' . $unique_id . '" />';
141
- $output .= '<input type="hidden" name="wc_comment_post_ID" value="' . $comment->comment_post_ID . '" id="wc_comment_post_ID-' . $unique_id . '" />';
142
- $output .= '<input type="hidden" name="wc_comment_parent" value="' . $comment->comment_ID . '" id="wc_comment_parent-' . $unique_id . '" />';
143
-
144
- $output .= '</form>';
145
- $output .= '</div>';
146
- }
147
- return $output;
148
- }
149
-
150
- public function is_guest_can_reply() {
151
- $user_can_comment = TRUE;
152
- if (!$this->wc_options->wc_options_serialized->wc_user_must_be_registered) {
153
- if ($this->wc_options->wc_options_serialized->wc_reply_button_guests_show_hide) {
154
- if (!is_user_logged_in()) {
155
- $user_can_comment = FALSE;
156
- }
157
- }
158
- } else {
159
- if (!is_user_logged_in()) {
160
- $user_can_comment = FALSE;
161
- }
162
- }
163
- return $user_can_comment;
164
- }
165
-
166
- public function is_customer_can_reply() {
167
- $user_can_comment = TRUE;
168
- if ($this->wc_options->wc_options_serialized->wc_reply_button_members_show_hide) {
169
- $user_can_comment = $this->is_user_can_reply_by_role('customer');
170
- }
171
- return $user_can_comment;
172
- }
173
-
174
- /**
175
- * User can comment in product by role
176
- */
177
- private function is_user_can_reply_by_role($role) {
178
- $user_can_comment = FALSE;
179
- if (is_user_logged_in()) {
180
- $current_user = wp_get_current_user();
181
- $roles = $current_user->roles;
182
- if (!in_array($role, $roles)) {
183
- $user_can_comment = TRUE;
184
- }
185
- }
186
- return $user_can_comment;
187
- }
188
-
189
- /**
190
- * returns placeholder for textarea from options page phrases
191
- */
192
- public function get_textarea_placeholder($comment) {
193
- $post = get_post($comment->comment_post_ID);
194
- if ($post->comment_count) {
195
- $textarea_placeholder = $this->wc_options->wc_options_serialized->wc_phrases['wc_comment_join_text'];
196
- } else {
197
- $textarea_placeholder = $this->wc_options->wc_options_serialized->wc_phrases['wc_comment_start_text'];
198
- }
199
- return $textarea_placeholder;
200
- }
201
-
202
- /**
203
- * returns unique id based on comment and post ids
204
- */
205
- public function get_unique_id($comment) {
206
- $unique_id = $comment->comment_post_ID . '_' . $comment->comment_ID;
207
- return $unique_id;
208
- }
209
-
210
- /**
211
- * set wpc helper
212
- */
213
- public function set_wc_helper($wc_helper) {
214
- $this->wc_helper = $wc_helper;
215
- }
216
-
217
- /**
218
- * set db helper
219
- */
220
- public function set_wc_db_helper($wc_db_helper) {
221
- $this->wc_db_helper = $wc_db_helper;
222
- }
223
-
224
- /**
225
- * set wpc options
226
- */
227
- public function set_wc_options($wc_options) {
228
- $this->wc_options = $wc_options;
229
- }
230
-
231
- }
232
-
 
 
 
 
233
  ?>
1
+ <?php
2
+
3
+ class WC_Comment_Template_Builder {
4
+
5
+ public $wc_helper;
6
+ public $wc_db_helper;
7
+ public $wc_options;
8
+
9
+ function __construct($wc_helper, $wc_db_helper, $wc_options) {
10
+ $this->wc_helper = $wc_helper;
11
+ $this->wc_db_helper = $wc_db_helper;
12
+ $this->wc_options = $wc_options;
13
+ }
14
+
15
+ /**
16
+ * @param type $comment the current comment object
17
+ * @param type $args
18
+ * @return single comment template
19
+ */
20
+ public function get_comment_template($comment) {
21
+ $comment_content = $comment->comment_content;
22
+
23
+ $vote_cls = '';
24
+ $vote_title_text = '';
25
+ $user = get_user_by('id', $comment->user_id);
26
+ if ($user) {
27
+ $post = get_post($comment->comment_post_ID);
28
+ if ($user->ID == $post->post_author) {
29
+ $author_title = $this->wc_options->wc_options_serialized->wc_phrases['wc_user_title_author_text'];
30
+ } else if (in_array('administrator', $user->roles)) {
31
+ $author_title = $this->wc_options->wc_options_serialized->wc_phrases['wc_user_title_admin_text'];
32
+ } else {
33
+ $author_title = $this->wc_options->wc_options_serialized->wc_phrases['wc_user_title_member_text'];
34
+ }
35
+ } else {
36
+ $author_title = $this->wc_options->wc_options_serialized->wc_phrases['wc_user_title_guest_text'];
37
+ }
38
+
39
+ $posted_date = $this->wc_helper->dateDiff(time(), strtotime($comment->comment_date_gmt), 2);
40
+
41
+ $reply_text = $this->wc_options->wc_options_serialized->wc_phrases['wc_reply_text'];
42
+ $share_text = $this->wc_options->wc_options_serialized->wc_phrases['wc_share_text'];
43
+ $comment_wrapper_class = ($comment->comment_parent) ? 'wc-comment wc-reply' : 'wc-comment';
44
+ $textarea_placeholder = $this->get_textarea_placeholder($comment);
45
+ $comm_author_avatar = $this->wc_helper->get_comment_author_avatar($comment);
46
+ $vote_count = ($comment->votes) ? $comment->votes : 0;
47
+ $unique_id = $this->get_unique_id($comment);
48
+
49
+ $child_comments = get_comments(array(
50
+ 'parent' => $comment->comment_ID,
51
+ 'status' => 'approve'
52
+ ));
53
+
54
+ if (!is_user_logged_in()) {
55
+ $vote_cls = ' wc_tooltipster';
56
+ $vote_title_text = $this->wc_options->wc_options_serialized->wc_phrases['wc_login_to_vote'];
57
+ $vote_up = $vote_title_text;
58
+ $vote_down = $vote_title_text;
59
+ } else {
60
+ $vote_cls = ' wc_vote';
61
+ $vote_up = $this->wc_options->wc_options_serialized->wc_phrases['wc_vote_up'];
62
+ $vote_down = $this->wc_options->wc_options_serialized->wc_phrases['wc_vote_down'];
63
+ }
64
+
65
+ $parent_comment = (!$comment->comment_parent && count($child_comments)) ? ' parnet_comment' : '';
66
+
67
+ $output = '<div id="wc-comm-' . $unique_id . '" class="' . $comment_wrapper_class . ' ' . $parent_comment . '">';
68
+ $output .= '<div class="wc-comment-left">' . $comm_author_avatar;
69
+ if (!$this->wc_options->wc_options_serialized->wc_author_titles_show_hide) {
70
+ $output .= '<div class="wc-comment-label">' . $author_title . '</div>';
71
+ }
72
+ $output .= '</div>';
73
+ $output .= '<div class="wc-comment-right">';
74
+ $output .= '<div class="wc-comment-header"><div class="wc-comment-author">' . $comment->comment_author . '</div><div class="wc-comment-date">' . $posted_date . '</div><div style="clear:both"></div></div>';
75
+ $output .= '<div class="wc-comment-text">' . $comment_content . '</div>';
76
+ $output .= '<div class="wc-comment-footer">';
77
+ if (!$this->wc_options->wc_options_serialized->wc_voting_buttons_show_hide) {
78
+ $output .= '<div id="vote-count-' . $unique_id . '" class="wc-vote-result">' . $vote_count . '</div>';
79
+ $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;';
80
+ }
81
+
82
+ if ($this->is_guest_can_reply() && $this->is_customer_can_reply()) {
83
+ $output .= '&nbsp;&nbsp;<span id="wc-comm-reply-' . $unique_id . '" class="wc-reply-link" title="' . $reply_text . '">' . $reply_text . '</span> &nbsp;&nbsp;';
84
+ }
85
+
86
+
87
+ if (!$this->wc_options->wc_options_serialized->wc_share_buttons_show_hide) {
88
+ $output .= '-&nbsp;&nbsp; <span id="wc-comm-share-' . $unique_id . '" class="wc-share-link" title="' . $share_text . '">' . $share_text . '</span> &nbsp;&nbsp;';
89
+
90
+ $twitt_content = $comment_content . ' ' . get_comment_link($comment);
91
+
92
+ $output .= '<span id="share_buttons_box-' . $unique_id . '" class="share_buttons_box">';
93
+ $output .= '<a target="_blank" href="http://www.facebook.com/sharer.php" title="' . $this->wc_options->wc_options_serialized->wc_phrases['wc_share_facebook'] . '"><img src="' . plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/files/img/social-icons/fb-18x18.png') . '"/></a>&nbsp;&nbsp;';
94
+ $output .= '<a target="_blank" href="https://twitter.com/home?status=' . $twitt_content . '" title="' . $this->wc_options->wc_options_serialized->wc_phrases['wc_share_twitter'] . '"><img src="' . plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/files/img/social-icons/twitter-18x18.png') . '"/></a>&nbsp;&nbsp;';
95
+ $output .= '<a target="_blank" href="https://plus.google.com/share?url=' . get_permalink($comment->comment_post_ID) . '" title="' . $this->wc_options->wc_options_serialized->wc_phrases['wc_share_google'] . '"><img src="' . plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/files/img/social-icons/google-18x18.png') . '"/></a>&nbsp;&nbsp;';
96
+ $output .= '</span>';
97
+ }
98
+
99
+ if (current_user_can('edit_comment', $comment->comment_ID)) {
100
+ $output .= '-&nbsp;&nbsp; <a href="' . get_edit_comment_link($comment->comment_ID) . '">' . __('Edit', 'wpdiscuz') . '</a>';
101
+ }
102
+
103
+
104
+
105
+ $visibility = 'none';
106
+ if (!$comment->comment_parent && count($child_comments)) {
107
+ $visibility = 'block';
108
+ $output .= '<span id="wc-toggle-' . $unique_id . '" class="wc-toggle" style="display:' . $visibility . ';">' . $this->wc_options->wc_options_serialized->wc_phrases['wc_hide_replies_text'] . ' &and;</span>';
109
+ }
110
+
111
+ $output .= '</div>';
112
+ $output .= '</div>';
113
+ $output .= '<div style="clear:both"></div>';
114
+
115
+ if ($this->is_guest_can_reply() && $this->is_customer_can_reply()) {
116
+ $output .= '<div class="wc-form-wrapper wc-secondary-forms-wrapper" id="wc-secondary-forms-wrapper-' . $unique_id . '">';
117
+ $output .= '<form action="" method="post" id="wc_comm_form-' . $unique_id . '" class="wc_comm_form">';
118
+ $output .= '<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" name="wc_comment" required="required" placeholder="' . $textarea_placeholder . '"></textarea></div><div style="clear:both"></div></div>';
119
+
120
+ $output .= '<div id="wc-form-footer-' . $unique_id . '" class="wc-form-footer">';
121
+
122
+ if (!is_user_logged_in()) {
123
+ $output .= '<div class="wc-author-data"><div class="wc-field-name item"><input id="wc_name-' . $unique_id . '" name="wc_name" class="wc_name" 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 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>';
124
+ }
125
+
126
+ $output .= '<div class="wc-form-submit">';
127
+
128
+ if (!$this->wc_options->wc_options_serialized->wc_captcha_show_hide) {
129
+ if (!is_user_logged_in()) {
130
+ $output .= '<div class="wc-field-captcha item">';
131
+ $output .= '<input id="wc_captcha-' . $unique_id . '" name="wc_captcha" required="required" value="" type="text" /><span class="wc-label wc-captcha-label">';
132
+ $output .= '<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 . '" />';
133
+ $output .= '<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" />';
134
+ $output .= '</span><span class="captcha_msg">' . $this->wc_options->wc_options_serialized->wc_phrases['wc_captcha_text'] . '</span></div>';
135
+ }
136
+ }
137
+
138
+ $output .= '<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"/>
139
+ </div>';
140
+ $output .= '<div style="clear:both"></div>';
141
+ $output .= '</div>';
142
+ $output .= '</div>';
143
+
144
+ $output .= '<input type="hidden" name="wc_home_url" value="' . plugins_url() . '" id="wc_home_url-' . $unique_id . '" />';
145
+ $output .= '<input type="hidden" name="wc_comment_post_ID" value="' . $comment->comment_post_ID . '" id="wc_comment_post_ID-' . $unique_id . '" />';
146
+ $output .= '<input type="hidden" name="wc_comment_parent" value="' . $comment->comment_ID . '" id="wc_comment_parent-' . $unique_id . '" />';
147
+
148
+ $output .= '</form>';
149
+ $output .= '</div>';
150
+ }
151
+ return $output;
152
+ }
153
+
154
+ public function is_guest_can_reply() {
155
+ $user_can_comment = TRUE;
156
+ if (!$this->wc_options->wc_options_serialized->wc_user_must_be_registered) {
157
+ if ($this->wc_options->wc_options_serialized->wc_reply_button_guests_show_hide) {
158
+ if (!is_user_logged_in()) {
159
+ $user_can_comment = FALSE;
160
+ }
161
+ }
162
+ } else {
163
+ if (!is_user_logged_in()) {
164
+ $user_can_comment = FALSE;
165
+ }
166
+ }
167
+ return $user_can_comment;
168
+ }
169
+
170
+ public function is_customer_can_reply() {
171
+ $user_can_comment = TRUE;
172
+ if ($this->wc_options->wc_options_serialized->wc_reply_button_members_show_hide) {
173
+ $user_can_comment = $this->is_user_can_reply_by_role('customer');
174
+ }
175
+ return $user_can_comment;
176
+ }
177
+
178
+ /**
179
+ * User can comment in product by role
180
+ */
181
+ private function is_user_can_reply_by_role($role) {
182
+ $user_can_comment = FALSE;
183
+ if (is_user_logged_in()) {
184
+ $current_user = wp_get_current_user();
185
+ $roles = $current_user->roles;
186
+ if (!in_array($role, $roles)) {
187
+ $user_can_comment = TRUE;
188
+ }
189
+ }
190
+ return $user_can_comment;
191
+ }
192
+
193
+ /**
194
+ * returns placeholder for textarea from options page phrases
195
+ */
196
+ public function get_textarea_placeholder($comment) {
197
+ $post = get_post($comment->comment_post_ID);
198
+ if ($post->comment_count) {
199
+ $textarea_placeholder = $this->wc_options->wc_options_serialized->wc_phrases['wc_comment_join_text'];
200
+ } else {
201
+ $textarea_placeholder = $this->wc_options->wc_options_serialized->wc_phrases['wc_comment_start_text'];
202
+ }
203
+ return $textarea_placeholder;
204
+ }
205
+
206
+ /**
207
+ * returns unique id based on comment and post ids
208
+ */
209
+ public function get_unique_id($comment) {
210
+ $unique_id = $comment->comment_post_ID . '_' . $comment->comment_ID;
211
+ return $unique_id;
212
+ }
213
+
214
+ /**
215
+ * set wpc helper
216
+ */
217
+ public function set_wc_helper($wc_helper) {
218
+ $this->wc_helper = $wc_helper;
219
+ }
220
+
221
+ /**
222
+ * set db helper
223
+ */
224
+ public function set_wc_db_helper($wc_db_helper) {
225
+ $this->wc_db_helper = $wc_db_helper;
226
+ }
227
+
228
+ /**
229
+ * set wpc options
230
+ */
231
+ public function set_wc_options($wc_options) {
232
+ $this->wc_options = $wc_options;
233
+ }
234
+
235
+ }
236
+
237
  ?>
options-templates/options-template-main.php CHANGED
@@ -1,273 +1,282 @@
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
9
- foreach ($this->wc_post_types as $post_type) {
10
- if (!post_type_supports($post_type, 'comments')) {
11
- continue;
12
- }
13
- ?>
14
- <label for="<?php echo $post_type ?>">
15
- <input type="checkbox" <?php checked(in_array($post_type, $this->wc_options_serialized->wc_post_types)); ?> value="<?php echo $post_type; ?>" name="wc_post_types[]" id="wc_type_<?php echo $post_type; ?>" />
16
- <span><?php echo $post_type; ?></span>
17
- </label><br/>
18
- <?php
19
- }
20
- ?>
21
- </td>
22
- </tr>
23
-
24
-
25
- <tr valign="top">
26
- <th scope="row">
27
- <?php _e('Hide Voting buttons', 'wpdiscuz'); ?>
28
- </th>
29
- <td colspan="3">
30
- <label for="wc_voting_buttons_show_hide">
31
- <input type="checkbox" <?php checked($this->wc_options_serialized->wc_voting_buttons_show_hide == 1) ?> value="<?php echo $this->wc_options_serialized->wc_voting_buttons_show_hide; ?>" name="wc_voting_buttons_show_hide" id="wc_voting_buttons_show_hide" />
32
- </label>
33
- </td>
34
- </tr>
35
-
36
- <tr valign="top">
37
- <th scope="row">
38
- <?php _e('Hide Share Button', 'wpdiscuz'); ?>
39
- </th>
40
- <td colspan="3">
41
- <label for="wc_share_buttons_show_hide">
42
- <input type="checkbox" <?php checked($this->wc_options_serialized->wc_share_buttons_show_hide == 1) ?> value="<?php echo $this->wc_options_serialized->wc_share_buttons_show_hide; ?>" name="wc_share_buttons_show_hide" id="wc_share_buttons_show_hide" />
43
- </label>
44
- </td>
45
- </tr>
46
-
47
- <tr valign="top">
48
- <th scope="row">
49
- <?php _e('Hide the CAPTCHA field', 'wpdiscuz'); ?>
50
- </th>
51
- <td colspan="3">
52
- <label for="wc_captcha_show_hide">
53
- <input type="checkbox" <?php checked($this->wc_options_serialized->wc_captcha_show_hide == 1) ?> value="<?php echo $this->wc_options_serialized->wc_captcha_show_hide; ?>" name="wc_captcha_show_hide" id="wc_captcha_show_hide" />
54
- </label>
55
- </td>
56
- </tr>
57
-
58
- <tr valign="top">
59
- <th scope="row">
60
- <?php _e('User Must be registered to comment', 'wpdiscuz'); ?>
61
- </th>
62
- <td colspan="3">
63
- <fieldset>
64
- <label title="Yes">
65
- <input type="radio" value="1" <?php checked('1' == $this->wc_options_serialized->wc_user_must_be_registered); ?> name="wc_user_must_be_registered" id="wc_user_must_be_registered_yes" />
66
- <span>Yes</span>
67
- </label> &nbsp;
68
- <label title="No">
69
- <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" />
70
- <span>No</span>
71
- </label><br>
72
- </fieldset>
73
- </td>
74
- </tr>
75
-
76
- <tr valign="top">
77
- <th scope="row">
78
- <?php _e('Held new comments for moderation', 'wpdiscuz'); ?>
79
- </th>
80
- <td colspan="3">
81
- <label for="wc_held_comment_to_moderate">
82
- <input type="checkbox" <?php checked($this->wc_options_serialized->wc_held_comment_to_moderate == 1) ?> value="<?php echo $this->wc_options_serialized->wc_held_comment_to_moderate; ?>" name="wc_held_comment_to_moderate" id="wc_held_comment_to_moderate" />
83
- </label>
84
- </td>
85
- </tr>
86
-
87
- <tr valign="top">
88
- <th scope="row">
89
- <?php _e('Hide Reply button for Guests', 'wpdiscuz'); ?>
90
- </th>
91
- <td colspan="3">
92
- <label for="wc_reply_button_guests_show_hide">
93
- <input type="checkbox" <?php checked($this->wc_options_serialized->wc_reply_button_guests_show_hide == 1) ?> value="<?php echo $this->wc_options_serialized->wc_reply_button_guests_show_hide; ?>" name="wc_reply_button_guests_show_hide" id="wc_reply_button_guests_show_hide" />
94
- </label>
95
- </td>
96
- </tr>
97
-
98
- <tr valign="top">
99
- <th scope="row">
100
- <?php _e('Hide Reply button for Members', 'wpdiscuz'); ?>
101
- </th>
102
- <td colspan="3">
103
- <label for="wc_reply_button_members_show_hide">
104
- <input type="checkbox" <?php checked($this->wc_options_serialized->wc_reply_button_members_show_hide == 1) ?> value="<?php echo $this->wc_options_serialized->wc_reply_button_members_show_hide; ?>" name="wc_reply_button_members_show_hide" id="wc_reply_button_members_show_hide" />
105
- </label>
106
- </td>
107
- </tr>
108
-
109
- <tr valign="top">
110
- <th scope="row">
111
- <?php _e('Hide Author Titles', 'wpdiscuz'); ?>
112
- </th>
113
- <td colspan="3">
114
- <label for="wc_author_titles_show_hide">
115
- <input type="checkbox" <?php checked($this->wc_options_serialized->wc_author_titles_show_hide == 1) ?> value="<?php echo $this->wc_options_serialized->wc_author_titles_show_hide; ?>" name="wc_author_titles_show_hide" id="wc_author_titles_show_hide" />
116
- </label>
117
- </td>
118
- </tr>
119
-
120
- <tr valign="top">
121
- <th scope="row">
122
- <?php _e('Comment Threads Per Page', 'wpdiscuz'); ?>
123
- </th>
124
- <td colspan="3">
125
- <label for="wc_comment_count">
126
- <input type="number" value="<?php echo $this->wc_options_serialized->wc_comment_count; ?>" name="wc_comment_count" id="wc_comment_count" />
127
- </label><br/>
128
- </td>
129
- </tr>
130
-
131
- <tr valign="top">
132
- <th scope="row">
133
- <?php _e('Notify moderator on new comment', 'wpdiscuz'); ?>
134
- </th>
135
- <td colspan="3">
136
- <label for="wc_notify_moderator">
137
- <input type="checkbox" <?php checked($this->wc_options_serialized->wc_notify_moderator == 1) ?> value="<?php echo $this->wc_options_serialized->wc_notify_moderator; ?>" name="wc_notify_moderator" id="wc_notify_moderator" />
138
- </label>
139
- </td>
140
- </tr>
141
-
142
- <tr valign="top">
143
- <th scope="row">
144
- <?php _e('Notify comment author on new reply', 'wpdiscuz'); ?>
145
- </th>
146
- <td colspan="3">
147
- <label for="wc_notify_comment_author">
148
- <input type="checkbox" <?php checked($this->wc_options_serialized->wc_notify_comment_author == 1) ?> value="<?php echo $this->wc_options_serialized->wc_notify_comment_author; ?>" name="wc_notify_comment_author" id="wc_notify_comment_author" />
149
- </label>
150
- </td>
151
- </tr>
152
-
153
- <tr valign="top">
154
- <th scope="row">
155
- <label for="wc_comment_bg_color"><?php _e('Comment Background Color', 'wpdiscuz'); ?></label>
156
- </th>
157
- <td width="1">
158
- <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'); ?>"/>
159
- </td>
160
-
161
- <td class="picker_img_cell">
162
- <a href="#wc_openModal1">
163
- <img class="wc_colorpicker_img1" src="<?php echo plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/files/third-party/colorpicker/img/colorpicker_icon_22.png'); ?>" />
164
- </a>
165
- </td>
166
- <td class="color_picker">
167
- <div id="wc_openModal1" class="modalDialog">
168
- <div id="wc_box1">
169
- <a href="#close" title="Close" class="close">X</a>
170
- <h2>Color Picker</h2>
171
- <p id="wc_colorpickerHolder1"></p>
172
- </div>
173
- </div>
174
- </td>
175
- </tr>
176
-
177
- <tr valign="top">
178
- <th scope="row">
179
- <label for="wc_reply_bg_color"><?php _e('Reply Background Color', 'wpdiscuz'); ?></label>
180
- </th>
181
- <td>
182
- <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'); ?>"/>
183
- </td>
184
-
185
- <td class="picker_img_cell">
186
- <a href="#wc_openModal2">
187
- <img class="wc_colorpicker_img2" src="<?php echo plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/files/third-party/colorpicker/img/colorpicker_icon_22.png'); ?>" />
188
- </a>
189
- </td>
190
- <td class="color_picker">
191
- <div id="wc_openModal2" class="modalDialog">
192
- <div id="wc_box2">
193
- <a href="#close" title="Close" class="close">X</a>
194
- <h2>Color Picker</h2>
195
- <p id="wc_colorpickerHolder2"></p>
196
- </div>
197
- </div>
198
- </td>
199
- </tr>
200
-
201
- <tr valign="top">
202
- <th scope="row">
203
- <label for="wc_comment_text_color"><?php _e('Comment Text Color', 'wpdiscuz'); ?></label>
204
- </th>
205
- <td>
206
- <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'); ?>"/>
207
- </td>
208
-
209
- <td class="picker_img_cell">
210
- <a href="#wc_openModal3">
211
- <img class="wc_colorpicker_img3" src="<?php echo plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/files/third-party/colorpicker/img/colorpicker_icon_22.png'); ?>" />
212
- </a>
213
- </td>
214
- <td class="color_picker">
215
- <div id="wc_openModal3" class="modalDialog">
216
- <div id="wc_box3">
217
- <a href="#close" title="Close" class="close">X</a>
218
- <h2>Color Picker</h2>
219
- <p id="wc_colorpickerHolder3"></p>
220
- </div>
221
- </div>
222
- </td>
223
- </tr>
224
-
225
-
226
- <tr valign="top">
227
- <th scope="row">
228
- <label for="wc_author_title_color"><?php _e('Author title color', 'wpdiscuz'); ?></label>
229
- </th>
230
- <td>
231
- <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'); ?>"/>
232
- </td>
233
-
234
- <td class="picker_img_cell">
235
- <a href="#wc_openModal4">
236
- <img class="wc_colorpicker_img4" src="<?php echo plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/files/third-party/colorpicker/img/colorpicker_icon_22.png'); ?>" />
237
- </a>
238
- </td>
239
- <td class="color_picker">
240
- <div id="wc_openModal4" class="modalDialog">
241
- <div id="wc_box4">
242
- <a href="#close" title="Close" class="close">X</a>
243
- <h2>Color Picker</h2>
244
- <p id="wc_colorpickerHolder4"></p>
245
- </div>
246
- </div>
247
- </td>
248
- </tr>
249
-
250
-
251
- <tr valign="top">
252
- <th scope="row">
253
- <label for="wc_vote_reply_color"><?php _e('Vote, Reply, Share, Edit links text colors', 'wpdiscuz'); ?></label>
254
- </th>
255
- <td>
256
- <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'); ?>"/>
257
- </td>
258
-
259
- <td class="picker_img_cell">
260
- <a href="#wc_openModal5">
261
- <img class="wc_colorpicker_img5" src="<?php echo plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/files/third-party/colorpicker/img/colorpicker_icon_22.png'); ?>" />
262
- </a>
263
- </td>
264
- <td class="color_picker">
265
- <div id="wc_openModal5" class="modalDialog">
266
- <div id="wc_box5">
267
- <a href="#close" title="Close" class="close">X</a>
268
- <h2>Color Picker</h2>
269
- <p id="wc_colorpickerHolder5"></p>
270
- </div>
271
- </div>
272
- </td>
 
 
 
 
 
 
 
 
 
273
  </tr>
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
9
+ foreach ($this->wc_post_types as $post_type) {
10
+ if (!post_type_supports($post_type, 'comments')) {
11
+ continue;
12
+ }
13
+ ?>
14
+ <label for="<?php echo $post_type ?>">
15
+ <input type="checkbox" <?php checked(in_array($post_type, $this->wc_options_serialized->wc_post_types)); ?> value="<?php echo $post_type; ?>" name="wc_post_types[]" id="wc_type_<?php echo $post_type; ?>" />
16
+ <span><?php echo $post_type; ?></span>
17
+ </label><br/>
18
+ <?php
19
+ }
20
+ ?>
21
+ </td>
22
+ </tr>
23
+
24
+
25
+ <tr valign="top">
26
+ <th scope="row">
27
+ <?php _e('Hide Voting buttons', 'wpdiscuz'); ?>
28
+ </th>
29
+ <td colspan="3">
30
+ <label for="wc_voting_buttons_show_hide">
31
+ <input type="checkbox" <?php checked($this->wc_options_serialized->wc_voting_buttons_show_hide == 1) ?> value="<?php echo $this->wc_options_serialized->wc_voting_buttons_show_hide; ?>" name="wc_voting_buttons_show_hide" id="wc_voting_buttons_show_hide" />
32
+ </label>
33
+ </td>
34
+ </tr>
35
+
36
+ <tr valign="top">
37
+ <th scope="row">
38
+ <?php _e('Hide Share Button', 'wpdiscuz'); ?>
39
+ </th>
40
+ <td colspan="3">
41
+ <label for="wc_share_buttons_show_hide">
42
+ <input type="checkbox" <?php checked($this->wc_options_serialized->wc_share_buttons_show_hide == 1) ?> value="<?php echo $this->wc_options_serialized->wc_share_buttons_show_hide; ?>" name="wc_share_buttons_show_hide" id="wc_share_buttons_show_hide" />
43
+ </label>
44
+ </td>
45
+ </tr>
46
+
47
+ <tr valign="top">
48
+ <th scope="row">
49
+ <?php _e('Hide the CAPTCHA field', 'wpdiscuz'); ?>
50
+ </th>
51
+ <td colspan="3">
52
+ <label for="wc_captcha_show_hide">
53
+ <input type="checkbox" <?php checked($this->wc_options_serialized->wc_captcha_show_hide == 1) ?> value="<?php echo $this->wc_options_serialized->wc_captcha_show_hide; ?>" name="wc_captcha_show_hide" id="wc_captcha_show_hide" />
54
+ </label>
55
+ </td>
56
+ </tr>
57
+
58
+ <tr valign="top">
59
+ <th scope="row">
60
+ <?php _e('User Must be registered to comment', 'wpdiscuz'); ?>
61
+ </th>
62
+ <td colspan="3">
63
+ <fieldset>
64
+ <label title="Yes">
65
+ <input type="radio" value="1" <?php checked('1' == $this->wc_options_serialized->wc_user_must_be_registered); ?> name="wc_user_must_be_registered" id="wc_user_must_be_registered_yes" />
66
+ <span>Yes</span>
67
+ </label> &nbsp;
68
+ <label title="No">
69
+ <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" />
70
+ <span>No</span>
71
+ </label><br>
72
+ </fieldset>
73
+ </td>
74
+ </tr>
75
+
76
+ <tr valign="top">
77
+ <th scope="row">
78
+ <?php _e('Held new comments for moderation', 'wpdiscuz'); ?>
79
+ </th>
80
+ <td colspan="3">
81
+ <label for="wc_held_comment_to_moderate">
82
+ <input type="checkbox" <?php checked($this->wc_options_serialized->wc_held_comment_to_moderate == 1) ?> value="<?php echo $this->wc_options_serialized->wc_held_comment_to_moderate; ?>" name="wc_held_comment_to_moderate" id="wc_held_comment_to_moderate" />
83
+ </label>
84
+ </td>
85
+ </tr>
86
+
87
+ <tr valign="top">
88
+ <th scope="row">
89
+ <?php _e('Hide Reply button for Guests', 'wpdiscuz'); ?>
90
+ </th>
91
+ <td colspan="3">
92
+ <label for="wc_reply_button_guests_show_hide">
93
+ <input type="checkbox" <?php checked($this->wc_options_serialized->wc_reply_button_guests_show_hide == 1) ?> value="<?php echo $this->wc_options_serialized->wc_reply_button_guests_show_hide; ?>" name="wc_reply_button_guests_show_hide" id="wc_reply_button_guests_show_hide" />
94
+ </label>
95
+ </td>
96
+ </tr>
97
+
98
+ <tr valign="top">
99
+ <th scope="row">
100
+ <?php _e('Hide Reply button for Members', 'wpdiscuz'); ?>
101
+ </th>
102
+ <td colspan="3">
103
+ <label for="wc_reply_button_members_show_hide">
104
+ <input type="checkbox" <?php checked($this->wc_options_serialized->wc_reply_button_members_show_hide == 1) ?> value="<?php echo $this->wc_options_serialized->wc_reply_button_members_show_hide; ?>" name="wc_reply_button_members_show_hide" id="wc_reply_button_members_show_hide" />
105
+ </label>
106
+ </td>
107
+ </tr>
108
+
109
+ <tr valign="top">
110
+ <th scope="row">
111
+ <?php _e('Hide Author Titles', 'wpdiscuz'); ?>
112
+ </th>
113
+ <td colspan="3">
114
+ <label for="wc_author_titles_show_hide">
115
+ <input type="checkbox" <?php checked($this->wc_options_serialized->wc_author_titles_show_hide == 1) ?> value="<?php echo $this->wc_options_serialized->wc_author_titles_show_hide; ?>" name="wc_author_titles_show_hide" id="wc_author_titles_show_hide" />
116
+ </label>
117
+ </td>
118
+ </tr>
119
+
120
+ <tr valign="top">
121
+ <th scope="row">
122
+ <?php _e('Comment Threads Per Page', 'wpdiscuz'); ?>
123
+ </th>
124
+ <td colspan="3">
125
+ <label for="wc_comment_count">
126
+ <input type="number" value="<?php echo $this->wc_options_serialized->wc_comment_count; ?>" name="wc_comment_count" id="wc_comment_count" />
127
+ </label><br/>
128
+ </td>
129
+ </tr>
130
+
131
+ <tr valign="top">
132
+ <th scope="row">
133
+ <?php _e('Notify moderator on new comment', 'wpdiscuz'); ?>
134
+ </th>
135
+ <td colspan="3">
136
+ <label for="wc_notify_moderator">
137
+ <input type="checkbox" <?php checked($this->wc_options_serialized->wc_notify_moderator == 1) ?> value="<?php echo $this->wc_options_serialized->wc_notify_moderator; ?>" name="wc_notify_moderator" id="wc_notify_moderator" />
138
+ </label>
139
+ </td>
140
+ </tr>
141
+
142
+ <tr valign="top">
143
+ <th scope="row">
144
+ <?php _e('Notify comment author on new reply', 'wpdiscuz'); ?>
145
+ </th>
146
+ <td colspan="3">
147
+ <label for="wc_notify_comment_author">
148
+ <input type="checkbox" <?php checked($this->wc_options_serialized->wc_notify_comment_author == 1) ?> value="<?php echo $this->wc_options_serialized->wc_notify_comment_author; ?>" name="wc_notify_comment_author" id="wc_notify_comment_author" />
149
+ </label>
150
+ </td>
151
+ </tr>
152
+
153
+ <tr valign="top">
154
+ <th scope="row">
155
+ <label for="wc_comment_bg_color"><?php _e('Comment Background Color', 'wpdiscuz'); ?></label>
156
+ </th>
157
+ <td width="1">
158
+ <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'); ?>"/>
159
+ </td>
160
+
161
+ <td class="picker_img_cell">
162
+ <a href="#wc_openModal1">
163
+ <img class="wc_colorpicker_img1" src="<?php echo plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/files/third-party/colorpicker/img/colorpicker_icon_22.png'); ?>" />
164
+ </a>
165
+ </td>
166
+ <td class="color_picker">
167
+ <div id="wc_openModal1" class="modalDialog">
168
+ <div id="wc_box1">
169
+ <a href="#close" title="Close" class="close">X</a>
170
+ <h2>Color Picker</h2>
171
+ <p id="wc_colorpickerHolder1"></p>
172
+ </div>
173
+ </div>
174
+ </td>
175
+ </tr>
176
+
177
+ <tr valign="top">
178
+ <th scope="row">
179
+ <label for="wc_reply_bg_color"><?php _e('Reply Background Color', 'wpdiscuz'); ?></label>
180
+ </th>
181
+ <td>
182
+ <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'); ?>"/>
183
+ </td>
184
+
185
+ <td class="picker_img_cell">
186
+ <a href="#wc_openModal2">
187
+ <img class="wc_colorpicker_img2" src="<?php echo plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/files/third-party/colorpicker/img/colorpicker_icon_22.png'); ?>" />
188
+ </a>
189
+ </td>
190
+ <td class="color_picker">
191
+ <div id="wc_openModal2" class="modalDialog">
192
+ <div id="wc_box2">
193
+ <a href="#close" title="Close" class="close">X</a>
194
+ <h2>Color Picker</h2>
195
+ <p id="wc_colorpickerHolder2"></p>
196
+ </div>
197
+ </div>
198
+ </td>
199
+ </tr>
200
+
201
+ <tr valign="top">
202
+ <th scope="row">
203
+ <label for="wc_comment_text_color"><?php _e('Comment Text Color', 'wpdiscuz'); ?></label>
204
+ </th>
205
+ <td>
206
+ <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'); ?>"/>
207
+ </td>
208
+
209
+ <td class="picker_img_cell">
210
+ <a href="#wc_openModal3">
211
+ <img class="wc_colorpicker_img3" src="<?php echo plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/files/third-party/colorpicker/img/colorpicker_icon_22.png'); ?>" />
212
+ </a>
213
+ </td>
214
+ <td class="color_picker">
215
+ <div id="wc_openModal3" class="modalDialog">
216
+ <div id="wc_box3">
217
+ <a href="#close" title="Close" class="close">X</a>
218
+ <h2>Color Picker</h2>
219
+ <p id="wc_colorpickerHolder3"></p>
220
+ </div>
221
+ </div>
222
+ </td>
223
+ </tr>
224
+
225
+
226
+ <tr valign="top">
227
+ <th scope="row">
228
+ <label for="wc_author_title_color"><?php _e('Author title color', 'wpdiscuz'); ?></label>
229
+ </th>
230
+ <td>
231
+ <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'); ?>"/>
232
+ </td>
233
+
234
+ <td class="picker_img_cell">
235
+ <a href="#wc_openModal4">
236
+ <img class="wc_colorpicker_img4" src="<?php echo plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/files/third-party/colorpicker/img/colorpicker_icon_22.png'); ?>" />
237
+ </a>
238
+ </td>
239
+ <td class="color_picker">
240
+ <div id="wc_openModal4" class="modalDialog">
241
+ <div id="wc_box4">
242
+ <a href="#close" title="Close" class="close">X</a>
243
+ <h2>Color Picker</h2>
244
+ <p id="wc_colorpickerHolder4"></p>
245
+ </div>
246
+ </div>
247
+ </td>
248
+ </tr>
249
+
250
+
251
+ <tr valign="top">
252
+ <th scope="row">
253
+ <label for="wc_vote_reply_color"><?php _e('Vote, Reply, Share, Edit links text colors', 'wpdiscuz'); ?></label>
254
+ </th>
255
+ <td>
256
+ <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'); ?>"/>
257
+ </td>
258
+
259
+ <td class="picker_img_cell">
260
+ <a href="#wc_openModal5">
261
+ <img class="wc_colorpicker_img5" src="<?php echo plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/files/third-party/colorpicker/img/colorpicker_icon_22.png'); ?>" />
262
+ </a>
263
+ </td>
264
+ <td class="color_picker">
265
+ <div id="wc_openModal5" class="modalDialog">
266
+ <div id="wc_box5">
267
+ <a href="#close" title="Close" class="close">X</a>
268
+ <h2>Color Picker</h2>
269
+ <p id="wc_colorpickerHolder5"></p>
270
+ </div>
271
+ </div>
272
+ </td>
273
+ </tr>
274
+
275
+ <tr valign="top">
276
+ <th scope="row">
277
+ <label for="wc_custom_css"><?php _e('Custom CSS Code', 'wpdiscuz'); ?></label>
278
+ </th>
279
+ <td>
280
+ <textarea cols="50" rows="10" class="regular-text" id="wc_custom_css" name="wc_custom_css" placeholder=""><?php echo $this->wc_options_serialized->wc_custom_css; ?></textarea>
281
+ </td>
282
  </tr>
options-templates/options-template-phrases.php CHANGED
@@ -1,537 +1,537 @@
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">
9
- <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_leave_a_reply_text']; ?>" name="wc_leave_a_reply_text" id="wc_leave_a_reply_text" />
10
- </label>
11
- </td>
12
- </tr>
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">
20
- <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_be_the_first_text']; ?>" name="wc_be_the_first_text" id="wc_be_the_first_text" />
21
- </label>
22
- </td>
23
- </tr>
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">
31
- <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_header_text']; ?>" name="wc_header_text" id="wc_header_text" />
32
- </label>
33
- </td>
34
- </tr>
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">
42
- <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_header_on_text']; ?>" name="wc_header_on_text" id="wc_header_on_text" />
43
- </label>
44
- </td>
45
- </tr>
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">
53
- <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_comment_start_text']; ?>" name="wc_comment_start_text" id="wc_comment_start_text" />
54
- </label>
55
- </td>
56
- </tr>
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">
64
- <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_comment_join_text']; ?>" name="wc_comment_join_text" id="wc_comment_join_text" />
65
- </label>
66
- </td>
67
- </tr>
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">
75
- <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_email_text']; ?>" name="wc_email_text" id="wc_email_text" />
76
- </label>
77
- </td>
78
- </tr>
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">
86
- <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_name_text']; ?>" name="wc_name_text" id="wc_email_text" />
87
- </label>
88
- </td>
89
- </tr>
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">
97
- <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_captcha_text']; ?>" name="wc_captcha_text" id="wc_email_text" />
98
- </label>
99
- </td>
100
- </tr>
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">
108
- <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_submit_text']; ?>" name="wc_submit_text" id="wc_submit_text" />
109
- </label>
110
- </td>
111
- </tr>
112
-
113
- <tr valign="top">
114
- <th scope="row">
115
- <?php _e('Load More Button', 'wpdiscuz'); ?>
116
- </th>
117
- <td colspan="3">
118
- <label for="wc_load_more_submit_text">
119
- <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_load_more_submit_text']; ?>" name="wc_load_more_submit_text" id="wc_load_more_submit_text" />
120
- </label>
121
- </td>
122
- </tr>
123
-
124
- <tr valign="top">
125
- <th scope="row">
126
- <?php _e('Reply', 'wpdiscuz'); ?>
127
- </th>
128
- <td colspan="3">
129
- <label for="wc_reply_text">
130
- <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_reply_text']; ?>" name="wc_reply_text" id="wc_submit_text" />
131
- </label>
132
- </td>
133
- </tr>
134
-
135
- <tr valign="top">
136
- <th scope="row">
137
- <?php _e('Share', 'wpdiscuz'); ?>
138
- </th>
139
- <td colspan="3">
140
- <label for="wc_share_text">
141
- <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_share_text']; ?>" name="wc_share_text" id="wc_share_text" />
142
- </label>
143
- </td>
144
- </tr>
145
-
146
- <tr valign="top">
147
- <th scope="row">
148
- <?php _e('Share On Facebook', 'wpdiscuz'); ?>
149
- </th>
150
- <td colspan="3">
151
- <label for="wc_share_facebook">
152
- <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_share_facebook']; ?>" name="wc_share_facebook" id="wc_share_facebook" />
153
- </label>
154
- </td>
155
- </tr>
156
-
157
- <tr valign="top" >
158
- <th scope="row">
159
- <?php _e('Share On Twitter', 'wpdiscuz'); ?>
160
- </th>
161
- <td colspan="3">
162
- <label for="wc_share_twitter">
163
- <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_share_twitter']; ?>" name="wc_share_twitter" id="wc_share_twitter" />
164
- </label>
165
- </td>
166
- </tr>
167
-
168
- <tr valign="top">
169
- <th scope="row">
170
- <?php _e('Share On Google', 'wpdiscuz'); ?>
171
- </th>
172
- <td colspan="3">
173
- <label for="wc_share_google">
174
- <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_share_google']; ?>" name="wc_share_google" id="wc_share_google" />
175
- </label>
176
- </td>
177
- </tr>
178
-
179
- <tr valign="top" >
180
- <th scope="row">
181
- <?php _e('Hide Replies', 'wpdiscuz'); ?>
182
- </th>
183
- <td colspan="3">
184
- <label for="wc_hide_replies_text">
185
- <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_hide_replies_text']; ?>" name="wc_hide_replies_text" id="wc_hide_replies_text" />
186
- </label>
187
- </td>
188
- </tr>
189
-
190
- <tr valign="top">
191
- <th scope="row">
192
- <?php _e('Show Replies', 'wpdiscuz'); ?>
193
- </th>
194
- <td colspan="3">
195
- <label for="wc_show_replies_text">
196
- <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_show_replies_text']; ?>" name="wc_show_replies_text" id="wc_show_replies_text" />
197
- </label>
198
- </td>
199
- </tr>
200
-
201
- <tr valign="top">
202
- <th scope="row">
203
- <?php _e('Title For Guests', 'wpdiscuz'); ?>
204
- </th>
205
- <td colspan="3">
206
- <label for="wc_user_title_guest_text">
207
- <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" />
208
- </label>
209
- </td>
210
- </tr>
211
-
212
- <tr valign="top">
213
- <th scope="row">
214
- <?php _e('Title For Members', 'wpdiscuz'); ?>
215
- </th>
216
- <td colspan="3">
217
- <label for="wc_user_title_member_text">
218
- <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" />
219
- </label>
220
- </td>
221
- </tr>
222
-
223
-
224
-
225
-
226
- <tr valign="top">
227
- <th scope="row">
228
- <?php _e('Title For Authors', 'wpdiscuz'); ?>
229
- </th>
230
- <td colspan="3">
231
- <label for="wc_user_title_author_text">
232
- <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" />
233
- </label>
234
- </td>
235
- </tr>
236
-
237
- <tr valign="top">
238
- <th scope="row">
239
- <?php _e('Title For Admins', 'wpdiscuz'); ?>
240
- </th>
241
- <td colspan="3">
242
- <label for="wc_user_title_admin_text">
243
- <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" />
244
- </label>
245
- </td>
246
- </tr>
247
-
248
-
249
-
250
-
251
-
252
-
253
- <tr valign="top">
254
- <th scope="row">
255
- <?php _e('Email Subject', 'wpdiscuz'); ?>
256
- </th>
257
- <td colspan="3">
258
- <label for="wc_email_subject">
259
- <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_email_subject']; ?>" name="wc_email_subject" id="wc_email_subject" />
260
- </label>
261
- </td>
262
- </tr>
263
-
264
- <tr valign="top">
265
- <th scope="row">
266
- <?php _e('Email Message', 'wpdiscuz'); ?>
267
- </th>
268
- <td colspan="3">
269
- <label for="wc_email_message">
270
- <textarea name="wc_email_message" id="wc_email_message"><?php echo $this->wc_options_serialized->wc_phrases['wc_email_message']; ?></textarea>
271
- </label>
272
- </td>
273
- </tr>
274
-
275
- <tr valign="top">
276
- <th scope="row">
277
- <?php _e('Error message for empty field', 'wpdiscuz'); ?>
278
- </th>
279
- <td colspan="3">
280
- <label for="wc_error_empty_text">
281
- <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" />
282
- </label>
283
- </td>
284
- </tr>
285
-
286
- <tr valign="top">
287
- <th scope="row">
288
- <?php _e('Error message for invalid email field', 'wpdiscuz'); ?>
289
- </th>
290
- <td colspan="3">
291
- <label for="wc_error_email_text">
292
- <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" />
293
- </label>
294
- </td>
295
- </tr>
296
-
297
- <tr valign="top">
298
- <th scope="row">
299
- <?php _e('Year', 'wpdiscuz'); ?>
300
- </th>
301
- <td colspan="3">
302
- <label for="wc_year_text">
303
- <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" />
304
- </label>
305
- </td>
306
- </tr>
307
-
308
- <tr valign="top">
309
- <th scope="row">
310
- <?php _e('Month', 'wpdiscuz'); ?>
311
- </th>
312
- <td colspan="3">
313
- <label for="wc_month_text">
314
- <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" />
315
- </label>
316
- </td>
317
- </tr>
318
-
319
- <tr valign="top">
320
- <th scope="row">
321
- <?php _e('Day', 'wpdiscuz'); ?>
322
- </th>
323
- <td colspan="3">
324
- <label for="wc_day_text">
325
- <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" />
326
- </label>
327
- </td>
328
- </tr>
329
-
330
- <tr valign="top">
331
- <th scope="row">
332
- <?php _e('Hour', 'wpdiscuz'); ?>
333
- </th>
334
- <td colspan="3">
335
- <label for="wc_hour_text">
336
- <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" />
337
- </label>
338
- </td>
339
- </tr>
340
-
341
- <tr valign="top">
342
- <th scope="row">
343
- <?php _e('Minute', 'wpdiscuz'); ?>
344
- </th>
345
- <td colspan="3">
346
- <label for="wc_minute_text">
347
- <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" />
348
- </label>
349
- </td>
350
- </tr>
351
-
352
- <tr valign="top">
353
- <th scope="row">
354
- <?php _e('Second', 'wpdiscuz'); ?>
355
- </th>
356
- <td colspan="3">
357
- <label for="wc_second_text">
358
- <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" />
359
- </label>
360
- </td>
361
- </tr>
362
-
363
- <tr valign="top">
364
- <th scope="row">
365
- <?php _e('Plural (Ex. user -> user + s)', 'wpdiscuz'); ?>
366
- </th>
367
- <td colspan="3">
368
- <label for="wc_plural_text">
369
- <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_plural_text']; ?>" name="wc_plural_text" id="wc_plural_text" />
370
- </label>
371
- </td>
372
- </tr>
373
-
374
- <tr valign="top">
375
- <th scope="row">
376
- <?php _e('Commented "right now" text', 'wpdiscuz'); ?>
377
- </th>
378
- <td colspan="3">
379
- <label for="wc_right_now_text">
380
- <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" />
381
- </label>
382
- </td>
383
- </tr>
384
-
385
- <tr valign="top">
386
- <th scope="row">
387
- <?php _e('Ago text', 'wpdiscuz'); ?>
388
- </th>
389
- <td colspan="3">
390
- <label for="wc_ago_text">
391
- <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_ago_text']; ?>" name="wc_ago_text" id="wc_ago_text" />
392
- </label>
393
- </td>
394
- </tr>
395
-
396
- <tr valign="top">
397
- <th scope="row">
398
- <?php _e('You must be', 'wpdiscuz'); ?>
399
- </th>
400
- <td colspan="3">
401
- <label for="wc_you_must_be_text">
402
- <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" />
403
- </label>
404
- </td>
405
- </tr>
406
-
407
- <tr valign="top">
408
- <th scope="row">
409
- <?php _e('Logged In', 'wpdiscuz'); ?>
410
- </th>
411
- <td colspan="3">
412
- <label for="wc_logged_in_text">
413
- <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" />
414
- </label>
415
- </td>
416
- </tr>
417
-
418
- <tr valign="top">
419
- <th scope="row">
420
- <?php _e('To post a comment', 'wpdiscuz'); ?>
421
- </th>
422
- <td colspan="3">
423
- <label for="wc_to_post_comment_text">
424
- <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" />
425
- </label>
426
- </td>
427
- </tr>
428
-
429
- <tr valign="top">
430
- <th scope="row">
431
- <?php _e('Vote Up', 'wpdiscuz'); ?>
432
- </th>
433
- <td colspan="3">
434
- <label for="wc_vote_up">
435
- <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_vote_up']; ?>" name="wc_vote_up" id="wc_vote_up" />
436
- </label>
437
- </td>
438
- </tr>
439
-
440
- <tr valign="top">
441
- <th scope="row">
442
- <?php _e('Vote Down', 'wpdiscuz'); ?>
443
- </th>
444
- <td colspan="3">
445
- <label for="wc_vote_down">
446
- <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_vote_down']; ?>" name="wc_vote_down" id="wc_vote_down" />
447
- </label>
448
- </td>
449
- </tr>
450
-
451
- <tr valign="top">
452
- <th scope="row">
453
- <?php _e('Vote Counted', 'wpdiscuz'); ?>
454
- </th>
455
- <td colspan="3">
456
- <label for="wc_vote_counted">
457
- <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_vote_counted']; ?>" name="wc_vote_counted" id="wc_vote_counted" />
458
- </label>
459
- </td>
460
- </tr>
461
-
462
- <tr valign="top">
463
- <th scope="row">
464
- <?php _e('You can vote only 1 time', 'wpdiscuz'); ?>
465
- </th>
466
- <td colspan="3">
467
- <label for="wc_vote_only_one_time">
468
- <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_vote_only_one_time']; ?>" name="wc_vote_only_one_time" id="wc_vote_only_one_time" />
469
- </label>
470
- </td>
471
- </tr>
472
-
473
- <tr valign="top">
474
- <th scope="row">
475
- <?php _e('Voting Error', 'wpdiscuz'); ?>
476
- </th>
477
- <td colspan="3">
478
- <label for="wc_voting_error">
479
- <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_voting_error']; ?>" name="wc_voting_error" id="wc_voting_error" />
480
- </label>
481
- </td>
482
- </tr>
483
-
484
- <tr valign="top">
485
- <th scope="row">
486
- <?php _e('Login To Vote', 'wpdiscuz'); ?>
487
- </th>
488
- <td colspan="3">
489
- <label for="wc_login_to_vote">
490
- <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_login_to_vote']; ?>" name="wc_login_to_vote" id="wc_login_to_vote" />
491
- </label>
492
- </td>
493
- </tr>
494
-
495
- <tr valign="top">
496
- <th scope="row">
497
- <?php _e('You Cannot Vote On Your Comment', 'wpdiscuz'); ?>
498
- </th>
499
- <td colspan="3">
500
- <label for="wc_self_vote">
501
- <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_self_vote']; ?>" name="wc_self_vote" id="wc_self_vote" />
502
- </label>
503
- </td>
504
- </tr>
505
-
506
- <tr valign="top">
507
- <th scope="row">
508
- <?php _e('Invalid Captcha Code', 'wpdiscuz'); ?>
509
- </th>
510
- <td colspan="3">
511
- <label for="wc_invalid_captcha">
512
- <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_invalid_captcha']; ?>" name="wc_invalid_captcha" id="wc_invalid_captcha" />
513
- </label>
514
- </td>
515
- </tr>
516
-
517
- <tr valign="top">
518
- <th scope="row">
519
- <?php _e('Some of field value is invalid', 'wpdiscuz'); ?>
520
- </th>
521
- <td colspan="3">
522
- <label for="wc_invalid_field">
523
- <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_invalid_field']; ?>" name="wc_invalid_field" id="wc_invalid_field" />
524
- </label>
525
- </td>
526
- </tr>
527
-
528
- <tr valign="top">
529
- <th scope="row">
530
- <?php _e('Comment waiting moderation', 'wpdiscuz'); ?>
531
- </th>
532
- <td colspan="3">
533
- <label for="wc_held_for_moderate">
534
- <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_held_for_moderate']; ?>" name="wc_held_for_moderate" id="wc_held_for_moderate" />
535
- </label>
536
- </td>
537
  </tr>
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">
9
+ <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_leave_a_reply_text']; ?>" name="wc_leave_a_reply_text" id="wc_leave_a_reply_text" />
10
+ </label>
11
+ </td>
12
+ </tr>
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">
20
+ <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_be_the_first_text']; ?>" name="wc_be_the_first_text" id="wc_be_the_first_text" />
21
+ </label>
22
+ </td>
23
+ </tr>
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">
31
+ <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_header_text']; ?>" name="wc_header_text" id="wc_header_text" />
32
+ </label>
33
+ </td>
34
+ </tr>
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">
42
+ <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_header_on_text']; ?>" name="wc_header_on_text" id="wc_header_on_text" />
43
+ </label>
44
+ </td>
45
+ </tr>
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">
53
+ <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_comment_start_text']; ?>" name="wc_comment_start_text" id="wc_comment_start_text" />
54
+ </label>
55
+ </td>
56
+ </tr>
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">
64
+ <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_comment_join_text']; ?>" name="wc_comment_join_text" id="wc_comment_join_text" />
65
+ </label>
66
+ </td>
67
+ </tr>
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">
75
+ <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_email_text']; ?>" name="wc_email_text" id="wc_email_text" />
76
+ </label>
77
+ </td>
78
+ </tr>
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">
86
+ <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_name_text']; ?>" name="wc_name_text" id="wc_email_text" />
87
+ </label>
88
+ </td>
89
+ </tr>
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">
97
+ <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_captcha_text']; ?>" name="wc_captcha_text" id="wc_email_text" />
98
+ </label>
99
+ </td>
100
+ </tr>
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">
108
+ <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_submit_text']; ?>" name="wc_submit_text" id="wc_submit_text" />
109
+ </label>
110
+ </td>
111
+ </tr>
112
+
113
+ <tr valign="top">
114
+ <th scope="row">
115
+ <?php _e('Load More Button', 'wpdiscuz'); ?>
116
+ </th>
117
+ <td colspan="3">
118
+ <label for="wc_load_more_submit_text">
119
+ <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_load_more_submit_text']; ?>" name="wc_load_more_submit_text" id="wc_load_more_submit_text" />
120
+ </label>
121
+ </td>
122
+ </tr>
123
+
124
+ <tr valign="top">
125
+ <th scope="row">
126
+ <?php _e('Reply', 'wpdiscuz'); ?>
127
+ </th>
128
+ <td colspan="3">
129
+ <label for="wc_reply_text">
130
+ <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_reply_text']; ?>" name="wc_reply_text" id="wc_submit_text" />
131
+ </label>
132
+ </td>
133
+ </tr>
134
+
135
+ <tr valign="top">
136
+ <th scope="row">
137
+ <?php _e('Share', 'wpdiscuz'); ?>
138
+ </th>
139
+ <td colspan="3">
140
+ <label for="wc_share_text">
141
+ <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_share_text']; ?>" name="wc_share_text" id="wc_share_text" />
142
+ </label>
143
+ </td>
144
+ </tr>
145
+
146
+ <tr valign="top">
147
+ <th scope="row">
148
+ <?php _e('Share On Facebook', 'wpdiscuz'); ?>
149
+ </th>
150
+ <td colspan="3">
151
+ <label for="wc_share_facebook">
152
+ <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_share_facebook']; ?>" name="wc_share_facebook" id="wc_share_facebook" />
153
+ </label>
154
+ </td>
155
+ </tr>
156
+
157
+ <tr valign="top" >
158
+ <th scope="row">
159
+ <?php _e('Share On Twitter', 'wpdiscuz'); ?>
160
+ </th>
161
+ <td colspan="3">
162
+ <label for="wc_share_twitter">
163
+ <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_share_twitter']; ?>" name="wc_share_twitter" id="wc_share_twitter" />
164
+ </label>
165
+ </td>
166
+ </tr>
167
+
168
+ <tr valign="top">
169
+ <th scope="row">
170
+ <?php _e('Share On Google', 'wpdiscuz'); ?>
171
+ </th>
172
+ <td colspan="3">
173
+ <label for="wc_share_google">
174
+ <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_share_google']; ?>" name="wc_share_google" id="wc_share_google" />
175
+ </label>
176
+ </td>
177
+ </tr>
178
+
179
+ <tr valign="top" >
180
+ <th scope="row">
181
+ <?php _e('Hide Replies', 'wpdiscuz'); ?>
182
+ </th>
183
+ <td colspan="3">
184
+ <label for="wc_hide_replies_text">
185
+ <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_hide_replies_text']; ?>" name="wc_hide_replies_text" id="wc_hide_replies_text" />
186
+ </label>
187
+ </td>
188
+ </tr>
189
+
190
+ <tr valign="top">
191
+ <th scope="row">
192
+ <?php _e('Show Replies', 'wpdiscuz'); ?>
193
+ </th>
194
+ <td colspan="3">
195
+ <label for="wc_show_replies_text">
196
+ <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_show_replies_text']; ?>" name="wc_show_replies_text" id="wc_show_replies_text" />
197
+ </label>
198
+ </td>
199
+ </tr>
200
+
201
+ <tr valign="top">
202
+ <th scope="row">
203
+ <?php _e('Title For Guests', 'wpdiscuz'); ?>
204
+ </th>
205
+ <td colspan="3">
206
+ <label for="wc_user_title_guest_text">
207
+ <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" />
208
+ </label>
209
+ </td>
210
+ </tr>
211
+
212
+ <tr valign="top">
213
+ <th scope="row">
214
+ <?php _e('Title For Members', 'wpdiscuz'); ?>
215
+ </th>
216
+ <td colspan="3">
217
+ <label for="wc_user_title_member_text">
218
+ <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" />
219
+ </label>
220
+ </td>
221
+ </tr>
222
+
223
+
224
+
225
+
226
+ <tr valign="top">
227
+ <th scope="row">
228
+ <?php _e('Title For Authors', 'wpdiscuz'); ?>
229
+ </th>
230
+ <td colspan="3">
231
+ <label for="wc_user_title_author_text">
232
+ <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" />
233
+ </label>
234
+ </td>
235
+ </tr>
236
+
237
+ <tr valign="top">
238
+ <th scope="row">
239
+ <?php _e('Title For Admins', 'wpdiscuz'); ?>
240
+ </th>
241
+ <td colspan="3">
242
+ <label for="wc_user_title_admin_text">
243
+ <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" />
244
+ </label>
245
+ </td>
246
+ </tr>
247
+
248
+
249
+
250
+
251
+
252
+
253
+ <tr valign="top">
254
+ <th scope="row">
255
+ <?php _e('Email Subject', 'wpdiscuz'); ?>
256
+ </th>
257
+ <td colspan="3">
258
+ <label for="wc_email_subject">
259
+ <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_email_subject']; ?>" name="wc_email_subject" id="wc_email_subject" />
260
+ </label>
261
+ </td>
262
+ </tr>
263
+
264
+ <tr valign="top">
265
+ <th scope="row">
266
+ <?php _e('Email Message', 'wpdiscuz'); ?>
267
+ </th>
268
+ <td colspan="3">
269
+ <label for="wc_email_message">
270
+ <textarea name="wc_email_message" id="wc_email_message"><?php echo $this->wc_options_serialized->wc_phrases['wc_email_message']; ?></textarea>
271
+ </label>
272
+ </td>
273
+ </tr>
274
+
275
+ <tr valign="top">
276
+ <th scope="row">
277
+ <?php _e('Error message for empty field', 'wpdiscuz'); ?>
278
+ </th>
279
+ <td colspan="3">
280
+ <label for="wc_error_empty_text">
281
+ <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" />
282
+ </label>
283
+ </td>
284
+ </tr>
285
+
286
+ <tr valign="top">
287
+ <th scope="row">
288
+ <?php _e('Error message for invalid email field', 'wpdiscuz'); ?>
289
+ </th>
290
+ <td colspan="3">
291
+ <label for="wc_error_email_text">
292
+ <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" />
293
+ </label>
294
+ </td>
295
+ </tr>
296
+
297
+ <tr valign="top">
298
+ <th scope="row">
299
+ <?php _e('Year', 'wpdiscuz'); ?>
300
+ </th>
301
+ <td colspan="3">
302
+ <label for="wc_year_text">
303
+ <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" />
304
+ </label>
305
+ </td>
306
+ </tr>
307
+
308
+ <tr valign="top">
309
+ <th scope="row">
310
+ <?php _e('Month', 'wpdiscuz'); ?>
311
+ </th>
312
+ <td colspan="3">
313
+ <label for="wc_month_text">
314
+ <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" />
315
+ </label>
316
+ </td>
317
+ </tr>
318
+
319
+ <tr valign="top">
320
+ <th scope="row">
321
+ <?php _e('Day', 'wpdiscuz'); ?>
322
+ </th>
323
+ <td colspan="3">
324
+ <label for="wc_day_text">
325
+ <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" />
326
+ </label>
327
+ </td>
328
+ </tr>
329
+
330
+ <tr valign="top">
331
+ <th scope="row">
332
+ <?php _e('Hour', 'wpdiscuz'); ?>
333
+ </th>
334
+ <td colspan="3">
335
+ <label for="wc_hour_text">
336
+ <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" />
337
+ </label>
338
+ </td>
339
+ </tr>
340
+
341
+ <tr valign="top">
342
+ <th scope="row">
343
+ <?php _e('Minute', 'wpdiscuz'); ?>
344
+ </th>
345
+ <td colspan="3">
346
+ <label for="wc_minute_text">
347
+ <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" />
348
+ </label>
349
+ </td>
350
+ </tr>
351
+
352
+ <tr valign="top">
353
+ <th scope="row">
354
+ <?php _e('Second', 'wpdiscuz'); ?>
355
+ </th>
356
+ <td colspan="3">
357
+ <label for="wc_second_text">
358
+ <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" />
359
+ </label>
360
+ </td>
361
+ </tr>
362
+
363
+ <tr valign="top">
364
+ <th scope="row">
365
+ <?php _e('Plural (Ex. user -> user + s)', 'wpdiscuz'); ?>
366
+ </th>
367
+ <td colspan="3">
368
+ <label for="wc_plural_text">
369
+ <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_plural_text']; ?>" name="wc_plural_text" id="wc_plural_text" />
370
+ </label>
371
+ </td>
372
+ </tr>
373
+
374
+ <tr valign="top">
375
+ <th scope="row">
376
+ <?php _e('Commented "right now" text', 'wpdiscuz'); ?>
377
+ </th>
378
+ <td colspan="3">
379
+ <label for="wc_right_now_text">
380
+ <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" />
381
+ </label>
382
+ </td>
383
+ </tr>
384
+
385
+ <tr valign="top">
386
+ <th scope="row">
387
+ <?php _e('Ago text', 'wpdiscuz'); ?>
388
+ </th>
389
+ <td colspan="3">
390
+ <label for="wc_ago_text">
391
+ <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_ago_text']; ?>" name="wc_ago_text" id="wc_ago_text" />
392
+ </label>
393
+ </td>
394
+ </tr>
395
+
396
+ <tr valign="top">
397
+ <th scope="row">
398
+ <?php _e('You must be', 'wpdiscuz'); ?>
399
+ </th>
400
+ <td colspan="3">
401
+ <label for="wc_you_must_be_text">
402
+ <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" />
403
+ </label>
404
+ </td>
405
+ </tr>
406
+
407
+ <tr valign="top">
408
+ <th scope="row">
409
+ <?php _e('Logged In', 'wpdiscuz'); ?>
410
+ </th>
411
+ <td colspan="3">
412
+ <label for="wc_logged_in_text">
413
+ <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" />
414
+ </label>
415
+ </td>
416
+ </tr>
417
+
418
+ <tr valign="top">
419
+ <th scope="row">
420
+ <?php _e('To post a comment', 'wpdiscuz'); ?>
421
+ </th>
422
+ <td colspan="3">
423
+ <label for="wc_to_post_comment_text">
424
+ <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" />
425
+ </label>
426
+ </td>
427
+ </tr>
428
+
429
+ <tr valign="top">
430
+ <th scope="row">
431
+ <?php _e('Vote Up', 'wpdiscuz'); ?>
432
+ </th>
433
+ <td colspan="3">
434
+ <label for="wc_vote_up">
435
+ <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_vote_up']; ?>" name="wc_vote_up" id="wc_vote_up" />
436
+ </label>
437
+ </td>
438
+ </tr>
439
+
440
+ <tr valign="top">
441
+ <th scope="row">
442
+ <?php _e('Vote Down', 'wpdiscuz'); ?>
443
+ </th>
444
+ <td colspan="3">
445
+ <label for="wc_vote_down">
446
+ <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_vote_down']; ?>" name="wc_vote_down" id="wc_vote_down" />
447
+ </label>
448
+ </td>
449
+ </tr>
450
+
451
+ <tr valign="top">
452
+ <th scope="row">
453
+ <?php _e('Vote Counted', 'wpdiscuz'); ?>
454
+ </th>
455
+ <td colspan="3">
456
+ <label for="wc_vote_counted">
457
+ <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_vote_counted']; ?>" name="wc_vote_counted" id="wc_vote_counted" />
458
+ </label>
459
+ </td>
460
+ </tr>
461
+
462
+ <tr valign="top">
463
+ <th scope="row">
464
+ <?php _e('You can vote only 1 time', 'wpdiscuz'); ?>
465
+ </th>
466
+ <td colspan="3">
467
+ <label for="wc_vote_only_one_time">
468
+ <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_vote_only_one_time']; ?>" name="wc_vote_only_one_time" id="wc_vote_only_one_time" />
469
+ </label>
470
+ </td>
471
+ </tr>
472
+
473
+ <tr valign="top">
474
+ <th scope="row">
475
+ <?php _e('Voting Error', 'wpdiscuz'); ?>
476
+ </th>
477
+ <td colspan="3">
478
+ <label for="wc_voting_error">
479
+ <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_voting_error']; ?>" name="wc_voting_error" id="wc_voting_error" />
480
+ </label>
481
+ </td>
482
+ </tr>
483
+
484
+ <tr valign="top">
485
+ <th scope="row">
486
+ <?php _e('Login To Vote', 'wpdiscuz'); ?>
487
+ </th>
488
+ <td colspan="3">
489
+ <label for="wc_login_to_vote">
490
+ <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_login_to_vote']; ?>" name="wc_login_to_vote" id="wc_login_to_vote" />
491
+ </label>
492
+ </td>
493
+ </tr>
494
+
495
+ <tr valign="top">
496
+ <th scope="row">
497
+ <?php _e('You Cannot Vote On Your Comment', 'wpdiscuz'); ?>
498
+ </th>
499
+ <td colspan="3">
500
+ <label for="wc_self_vote">
501
+ <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_self_vote']; ?>" name="wc_self_vote" id="wc_self_vote" />
502
+ </label>
503
+ </td>
504
+ </tr>
505
+
506
+ <tr valign="top">
507
+ <th scope="row">
508
+ <?php _e('Invalid Captcha Code', 'wpdiscuz'); ?>
509
+ </th>
510
+ <td colspan="3">
511
+ <label for="wc_invalid_captcha">
512
+ <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_invalid_captcha']; ?>" name="wc_invalid_captcha" id="wc_invalid_captcha" />
513
+ </label>
514
+ </td>
515
+ </tr>
516
+
517
+ <tr valign="top">
518
+ <th scope="row">
519
+ <?php _e('Some of field value is invalid', 'wpdiscuz'); ?>
520
+ </th>
521
+ <td colspan="3">
522
+ <label for="wc_invalid_field">
523
+ <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_invalid_field']; ?>" name="wc_invalid_field" id="wc_invalid_field" />
524
+ </label>
525
+ </td>
526
+ </tr>
527
+
528
+ <tr valign="top">
529
+ <th scope="row">
530
+ <?php _e('Comment waiting moderation', 'wpdiscuz'); ?>
531
+ </th>
532
+ <td colspan="3">
533
+ <label for="wc_held_for_moderate">
534
+ <input type="text" value="<?php echo $this->wc_options_serialized->wc_phrases['wc_held_for_moderate']; ?>" name="wc_held_for_moderate" id="wc_held_for_moderate" />
535
+ </label>
536
+ </td>
537
  </tr>
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
- === WpDiscuz - Wordpress Comments ===
2
  Contributors: gVectors Team
3
  Tags: Wordpress Comments, Post Comments, comments box, comments, discussions, comment template
4
  Requires at least: 2.7
5
  Tested up to: 4.0
6
- Stable tag: 1.0.1
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -32,7 +32,6 @@ Better comment system. Wordpress post comments and discussion plugin. Allows you
32
  *
33
  * | **Dashboard**
34
  * | Option to display comment form for certain post types
35
- * | Option to set Discussion Tab as the first opened Tab on product page
36
  * | Options to turn On/Off Comment Voting and Sharing features
37
  * | Option to hide/show CAPTCHA field on comment form
38
  * | Option for "User Must be registered to comment"
@@ -58,9 +57,10 @@ Better comment system. Wordpress post comments and discussion plugin. Allows you
58
  * Support Forum: <http://gvectors.com/questions/>
59
 
60
  == Changelog ==
 
 
61
 
62
  = 1.0.1 =
63
-
64
  * Changed : Comment Box Header
65
  * Fixed Bug : CSS Issues
66
  * Fixed Bug : Layout Issues with some themes
1
+ === wpDiscuz - Wordpress Comments ===
2
  Contributors: gVectors Team
3
  Tags: Wordpress Comments, Post Comments, comments box, comments, discussions, comment template
4
  Requires at least: 2.7
5
  Tested up to: 4.0
6
+ Stable tag: 1.0.2
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
32
  *
33
  * | **Dashboard**
34
  * | Option to display comment form for certain post types
 
35
  * | Options to turn On/Off Comment Voting and Sharing features
36
  * | Option to hide/show CAPTCHA field on comment form
37
  * | Option for "User Must be registered to comment"
57
  * Support Forum: <http://gvectors.com/questions/>
58
 
59
  == Changelog ==
60
+ = 1.0.2 =
61
+ * Fixed Bug : Translations does not work, they come by default when saving
62
 
63
  = 1.0.1 =
 
64
  * Changed : Comment Box Header
65
  * Fixed Bug : CSS Issues
66
  * Fixed Bug : Layout Issues with some themes
tasks.txt CHANGED
@@ -1,5 +1 @@
1
- User role issue - multisite
2
-
3
- 1. post types - option
4
- 2. comments open
5
- 3. post type support comment
1
+ User role issue - multisite
 
 
 
 
wc-css.php CHANGED
@@ -1,88 +1,91 @@
1
- <?php
2
-
3
- class WC_CSS {
4
- private $wc_options;
5
-
6
- function __construct($wc_options) {
7
- $this->wc_options = $wc_options;
8
- }
9
-
10
- /**
11
- * init woo discuss styles
12
- */
13
- public function init_styles() {
14
- ?>
15
- <style type="text/css">
16
- .wc-comment-header{ padding-top:20px; display:block; float:none; clear:both; font-size:18px;} /*#2892BF*/
17
- #wpcomm form .item {display: block;} .item input {}
18
- #wpcomm { margin:15px auto; padding:1px 0px 10px 0px; border-top:#DDDDDD solid 1px; }
19
- #wpcomm form { margin:0px; padding:0px; background:none; border:none; }
20
- #wpcomm form div{ margin:0px; }
21
- #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; }
22
- #wpcomm .wc-form-wrapper{ padding:10px; background:#F9F9F9; margin-top:20px; border:1px solid #F1F1F1; }
23
- #wpcomm .wc-author-data{ margin-bottom:10px; }
24
- #wpcomm .wc-field-submit{ padding:5px 0px 13px 0px; }
25
- #wpcomm .wc-field-name{ width:49%; float:left; }
26
- #wpcomm .wc-field-email{ width:49%; float:right; text-align:right; }
27
- #wpcomm .wc-field-comment{ margin:5px auto 10px auto; }
28
- #wpcomm .wc-field-captcha{ width:55%; float:left; margin:0px; }
29
- #wpcomm .wc-field-submit{ width:45%; float:right; text-align:right; margin:0px; }
30
- #wpcomm .wc-field-name input[type="text"]{ width:95%; max-width:100%; padding:5px; font-size:14px; margin:0px; }
31
- #wpcomm .wc-field-email input[type="email"]{ width:100%; max-width:100%; padding:5px; font-size:14px; margin:0px; }
32
- #wpcomm .wc-field-captcha input[type="text"]{ width:40%; padding:5px; font-size:14px; margin:0px; }
33
- #wpcomm .wc-field-submit input[type="submit"]{ margin:1px; }
34
- #wpcomm .wc-field-submit input[type="button"]{ margin:1px; }
35
- #wpcomm .captcha_msg{ color: #aaaaaa; font-family: Lato,sans-serif; font-size: 12px; line-height: 18px; display:block; clear:both; }
36
- #wpcomm .wc-field-comment textarea{ width:100%; max-width:100%; height:43px; min-height: 43px !important; padding:5px; box-sizing: border-box; }
37
- #wpcomm .wc-label{ display:block; font-size:14px; padding:5px; }
38
- #wpcomm .wc-field-captcha .wc-label{ font-size:18px; padding:5px; text-align:center; display:inline; }
39
- #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; }
40
- #wpcomm .wc-copyright{ margin: 0px 0px 0px auto; text-align:right; display: block; padding-top: 2px; }
41
- #wpcomm .wc-copyright a{ font-size: 9px; color: #AAAAAA; cursor:help; text-decoration:none; margin:0px; padding:0px; border:none;}
42
- #wpcomm .wc-thread-wrapper{ padding:10px 0px; margin-bottom:10px;}
43
- #wpcomm .wc-comment { margin-bottom:13px; }
44
- #wpcomm .wc-comment .wc-field-submit{ padding:5px 0px 5px 0px; }
45
- #wpcomm .wc-comment .wc-form-wrapper{ padding:10px 10px 2px 10px; }
46
- #wpcomm .wc-comment .wc-comment-left{ width:62px; float:left; position:absolute; text-align:center; font-family:Lato,sans-serif; line-height:16px; }
47
- #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; ?>}
48
- #wpcomm .wc-reply .wc-comment-right{ margin-left:70px; border:#F5F5F5 1px solid; padding:10px 10px 3px 10px; }
49
- #wpcomm .wc-reply { margin-top: 10px; margin-bottom:0px; margin-left:40px; }
50
- #wpcomm .wc-reply .wc-comment-right{ background:<?php echo $this->wc_options->wc_options_serialized->wc_reply_bg_color; ?>; }
51
- #wpcomm .wc-must-login{ margin:0px; font-size:14px; line-height:16px; padding:10px }
52
- #wpcomm hr{ background-color: rgba(0, 0, 0, 0.1); border: 0 none; height: 1px; margin:10px 0px; }
53
- #wpcomm .avatar{ border: 1px solid rgba(0, 0, 0, 0.1); padding: 2px; margin:0px; float:none; }
54
- #wpcomm .wc-comment-text{ font-size:13px; text-align:left; color:<?php echo $this->wc_options->wc_options_serialized->wc_comment_text_color; ?>; padding-bottom:5px; }
55
- #wpcomm .wc-comment-header{ margin-bottom:7px; font-family:Lato,sans-serif; }
56
- #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; }
57
- #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; }
58
- #wpcomm .wc-comment-date{ font-size:12px; color:#999999; width:59%; float:right; text-align:right; white-space:nowrap; line-height:27px; }
59
- #wpcomm .wc-comment-footer { font-size:12px; font-weight:normal; color:#999999; margin-top:12px; min-height: 28px; font-family:Lato,sans-serif; }
60
- #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; ?>; }
61
- #wpcomm .wc-comment-footer .share_buttons_box img{ vertical-align:middle; }
62
- #wpcomm .wc-comment-footer .wc-voted{ color:#666666; cursor:default; }
63
- #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;}
64
- #wpcomm .wc-toggle{ float:right; text-align:right; padding-right:0px; margin-right:0px; color:#999999; cursor:pointer; font-size:12px; }
65
- #wpcomm .item { background: none; border-radius: 0px; box-shadow: none; }
66
- #wc_response_info img{ margin: 0px auto 0px auto; }
67
- #wpcomm .share_buttons_box img { display:inline!important; width:16px; height:16px; }
68
- #wpcomm .wc-captcha-label img{ display: inline!important; border:none; padding:0px 1px; margin:0px; }
69
- #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; ?>; }
70
- #wpcomm .wc-form-footer, #wpcomm .wc-secondary-forms-wrapper {display: none;}
71
- #wpcomm .wc-field-captcha .wc-captcha-label { margin-left: 5px; padding: 0; display: inline-block; }
72
- #wpcomm .wc_captcha_refresh_img {cursor: pointer; margin-left: 3px;}
73
- #wpcomm .share_buttons_box {display: none;/*position: absolute;left: 40%;*/}
74
- #wpcomm .wc-no-left-margin {margin-left: 0 !important;}
75
- 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;}
76
- .wc-load-more-submit-wrap { width: 100%; text-align: center; margin-bottom:20px; }
77
- .wc-load-more-submit { width: 100%; text-align: center; }
78
- #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;}
79
- #wc_openModalFormAction > div#wc_response_info { /*z-index: 10000;*/ }
80
- #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; }
81
- #wpcomm .by-wpdiscuz{ text-align:right; border-top:#DDDDDD solid 1px; padding:3px 1px 1px 1px; }
82
- #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; }
83
- </style>
84
- <?php
85
- }
86
-
87
- }
88
- ?>
 
 
 
1
+ <?php
2
+
3
+ class WC_CSS {
4
+
5
+ private $wc_options;
6
+
7
+ function __construct($wc_options) {
8
+ $this->wc_options = $wc_options;
9
+ }
10
+
11
+ /**
12
+ * init woo discuss styles
13
+ */
14
+ public function init_styles() {
15
+ ?>
16
+ <style type="text/css">
17
+ .wc-comment-header{ padding-top:20px; display:block; float:none; clear:both; font-size:18px;} /*#2892BF*/
18
+ #wpcomm form .item {display: block;} .item input {}
19
+ #wpcomm { margin:15px auto; padding:1px 0px 10px 0px; border-top:#DDDDDD solid 1px; }
20
+ #wpcomm form { margin:0px; padding:0px; background:none; border:none; }
21
+ #wpcomm form div{ margin:0px; }
22
+ #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; }
23
+ #wpcomm .wc-form-wrapper{ padding:10px; background:#F9F9F9; margin-top:20px; border:1px solid #F1F1F1; }
24
+ #wpcomm .wc-author-data{ margin-bottom:10px; }
25
+ #wpcomm .wc-field-submit{ padding:5px 0px 13px 0px; }
26
+ #wpcomm .wc-field-name{ width:49%; float:left; }
27
+ #wpcomm .wc-field-email{ width:49%; float:right; text-align:right; }
28
+ #wpcomm .wc-field-comment{ margin:5px auto 10px auto; }
29
+ #wpcomm .wc-field-captcha{ width:55%; float:left; margin:0px; }
30
+ #wpcomm .wc-field-submit{ width:45%; float:right; text-align:right; margin:0px; }
31
+ #wpcomm .wc-field-name input[type="text"]{ width:95%; max-width:100%; padding:5px; font-size:14px; margin:0px; }
32
+ #wpcomm .wc-field-email input[type="email"]{ width:100%; max-width:100%; padding:5px; font-size:14px; margin:0px; }
33
+ #wpcomm .wc-field-captcha input[type="text"]{ width:40%; padding:5px; font-size:14px; margin:0px; }
34
+ #wpcomm .wc-field-submit input[type="submit"]{ margin:1px; }
35
+ #wpcomm .wc-field-submit input[type="button"]{ margin:1px; }
36
+ #wpcomm .captcha_msg{ color: #aaaaaa; font-family: Lato,sans-serif; font-size: 12px; line-height: 18px; display:block; clear:both; }
37
+ #wpcomm .wc-field-comment textarea{ width:100%; max-width:100%; height:43px; min-height: 43px !important; padding:5px; box-sizing: border-box; }
38
+ #wpcomm .wc-label{ display:block; font-size:14px; padding:5px; }
39
+ #wpcomm .wc-field-captcha .wc-label{ font-size:18px; padding:5px; text-align:center; display:inline; }
40
+ #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; }
41
+ #wpcomm .wc-copyright{ margin: 0px 0px 0px auto; text-align:right; display: block; padding-top: 2px; }
42
+ #wpcomm .wc-copyright a{ font-size: 9px; color: #AAAAAA; cursor:help; text-decoration:none; margin:0px; padding:0px; border:none;}
43
+ #wpcomm .wc-thread-wrapper{ padding:10px 0px; margin-bottom:10px;}
44
+ #wpcomm .wc-comment { margin-bottom:13px; }
45
+ #wpcomm .wc-comment .wc-field-submit{ padding:5px 0px 5px 0px; }
46
+ #wpcomm .wc-comment .wc-form-wrapper{ padding:10px 10px 2px 10px; }
47
+ #wpcomm .wc-comment .wc-comment-left{ width:62px; float:left; position:absolute; text-align:center; font-family:Lato,sans-serif; line-height:16px; }
48
+ #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; ?>}
49
+ #wpcomm .wc-reply .wc-comment-right{ margin-left:70px; border:#F5F5F5 1px solid; padding:10px 10px 3px 10px; }
50
+ #wpcomm .wc-reply { margin-top: 10px; margin-bottom:0px; margin-left:40px; }
51
+ #wpcomm .wc-reply .wc-comment-right{ background:<?php echo $this->wc_options->wc_options_serialized->wc_reply_bg_color; ?>; }
52
+ #wpcomm .wc-must-login{ margin:0px; font-size:14px; line-height:16px; padding:10px }
53
+ #wpcomm hr{ background-color: rgba(0, 0, 0, 0.1); border: 0 none; height: 1px; margin:10px 0px; }
54
+ #wpcomm .avatar{ border: 1px solid rgba(0, 0, 0, 0.1); padding: 2px; margin:0px; float:none; }
55
+ #wpcomm .wc-comment-text{ font-size:13px; text-align:left; color:<?php echo $this->wc_options->wc_options_serialized->wc_comment_text_color; ?>; padding-bottom:5px; }
56
+ #wpcomm .wc-comment-header{ margin-bottom:7px; font-family:Lato,sans-serif; }
57
+ #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; }
58
+ #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; }
59
+ #wpcomm .wc-comment-date{ font-size:12px; color:#999999; width:59%; float:right; text-align:right; white-space:nowrap; line-height:27px; }
60
+ #wpcomm .wc-comment-footer { font-size:12px; font-weight:normal; color:#999999; margin-top:12px; min-height: 28px; font-family:Lato,sans-serif; }
61
+ #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; ?>; }
62
+ #wpcomm .wc-comment-footer .share_buttons_box img{ vertical-align:middle; }
63
+ #wpcomm .wc-comment-footer .wc-voted{ color:#666666; cursor:default; }
64
+ #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;}
65
+ #wpcomm .wc-toggle{ float:right; text-align:right; padding-right:0px; margin-right:0px; color:#999999; cursor:pointer; font-size:12px; }
66
+ #wpcomm .item { background: none; border-radius: 0px; box-shadow: none; }
67
+ #wc_response_info img{ margin: 0px auto 0px auto; }
68
+ #wpcomm .share_buttons_box img { display:inline!important; width:16px; height:16px; }
69
+ #wpcomm .wc-captcha-label img{ display: inline!important; border:none; padding:0px 1px; margin:0px; }
70
+ #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; ?>; }
71
+ #wpcomm .wc-form-footer, #wpcomm .wc-secondary-forms-wrapper {display: none;}
72
+ #wpcomm .wc-field-captcha .wc-captcha-label { margin-left: 5px; padding: 0; display: inline-block; }
73
+ #wpcomm .wc_captcha_refresh_img {cursor: pointer; margin-left: 3px;}
74
+ #wpcomm .share_buttons_box {display: none;/*position: absolute;left: 40%;*/}
75
+ #wpcomm .wc-no-left-margin {margin-left: 0 !important;}
76
+ 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;}
77
+ .wc-load-more-submit-wrap { width: 100%; text-align: center; margin-bottom:20px; }
78
+ .wc-load-more-submit { width: 100%; text-align: center; }
79
+ #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;}
80
+ #wc_openModalFormAction > div#wc_response_info { /*z-index: 10000;*/ }
81
+ #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; }
82
+ #wpcomm .by-wpdiscuz{ text-align:right; border-top:#DDDDDD solid 1px; padding:3px 1px 1px 1px; }
83
+ #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; }
84
+
85
+ <?php echo $this->wc_options->wc_options_serialized->wc_custom_css; ?>
86
+ </style>
87
+ <?php
88
+ }
89
+
90
+ }
91
+ ?>
wc-options-serialize.php CHANGED
@@ -142,6 +142,17 @@ class WC_Options_Serialize {
142
  */
143
  public $wc_vote_reply_color;
144
 
 
 
 
 
 
 
 
 
 
 
 
145
  /*
146
  * Type - HTML elements array
147
  * Available Values - Text
@@ -178,6 +189,7 @@ class WC_Options_Serialize {
178
  $this->wc_comment_text_color = $options['wc_comment_text_color'];
179
  $this->wc_author_title_color = $options['wc_author_title_color'];
180
  $this->wc_vote_reply_color = $options['wc_vote_reply_color'];
 
181
  }
182
 
183
  /**
@@ -254,7 +266,8 @@ class WC_Options_Serialize {
254
  'wc_reply_bg_color' => $this->wc_reply_bg_color,
255
  'wc_comment_text_color' => $this->wc_comment_text_color,
256
  'wc_author_title_color' => $this->wc_author_title_color,
257
- 'wc_vote_reply_color' => $this->wc_vote_reply_color
 
258
  );
259
 
260
  return $options;
@@ -282,7 +295,8 @@ class WC_Options_Serialize {
282
  'wc_reply_bg_color' => '#f8f8f8',
283
  'wc_comment_text_color' => '#555',
284
  'wc_author_title_color' => '#00B38F',
285
- 'wc_vote_reply_color' => '#666666'
 
286
  );
287
  add_option($this->wc_options_slug, serialize($options));
288
  }
142
  */
143
  public $wc_vote_reply_color;
144
 
145
+
146
+ /*
147
+ * Type - Textarea
148
+ * Available Values - custom css code
149
+ * Description - Custom css code
150
+ * Default Value -
151
+ */
152
+ public $wc_custom_css;
153
+
154
+
155
+
156
  /*
157
  * Type - HTML elements array
158
  * Available Values - Text
189
  $this->wc_comment_text_color = $options['wc_comment_text_color'];
190
  $this->wc_author_title_color = $options['wc_author_title_color'];
191
  $this->wc_vote_reply_color = $options['wc_vote_reply_color'];
192
+ $this->wc_custom_css = $options['wc_custom_css'];
193
  }
194
 
195
  /**
266
  'wc_reply_bg_color' => $this->wc_reply_bg_color,
267
  'wc_comment_text_color' => $this->wc_comment_text_color,
268
  'wc_author_title_color' => $this->wc_author_title_color,
269
+ 'wc_vote_reply_color' => $this->wc_vote_reply_color,
270
+ 'wc_custom_css' => $this->wc_custom_css
271
  );
272
 
273
  return $options;
295
  'wc_reply_bg_color' => '#f8f8f8',
296
  'wc_comment_text_color' => '#555',
297
  'wc_author_title_color' => '#00B38F',
298
+ 'wc_vote_reply_color' => '#666666',
299
+ 'wc_custom_css' => '.comments-area{width: 100%;margin: 0 auto;}'
300
  );
301
  add_option($this->wc_options_slug, serialize($options));
302
  }
wc-options.php CHANGED
@@ -25,7 +25,7 @@ class WC_Options {
25
  }
26
  }
27
 
28
- if (isset($_POST['submit_options'])) {
29
 
30
  if (function_exists('current_user_can') && !current_user_can('manage_options')) {
31
  die(_e('Hacker?', 'wpdiscuz'));
@@ -52,6 +52,7 @@ class WC_Options {
52
  $this->wc_options_serialized->wc_comment_text_color = isset($_POST['wc_comment_text_color']) ? $_POST['wc_comment_text_color'] : '#555';
53
  $this->wc_options_serialized->wc_author_title_color = isset($_POST['wc_author_title_color']) ? $_POST['wc_author_title_color'] : '#00B38F';
54
  $this->wc_options_serialized->wc_vote_reply_color = isset($_POST['wc_vote_reply_color']) ? $_POST['wc_vote_reply_color'] : '#666666';
 
55
 
56
  $this->wc_options_serialized->update_options();
57
  }
@@ -86,7 +87,7 @@ class WC_Options {
86
  <tr valign="top">
87
  <td colspan="4">
88
  <p class="submit">
89
- <input type="submit" class="button button-primary" name="submit_options" value="<?php _e('Save Changes', 'wpdiscuz'); ?>" />
90
  </p>
91
  </td>
92
  </tr>
@@ -102,7 +103,7 @@ class WC_Options {
102
 
103
  public function phrases_options_form() {
104
 
105
- if (isset($_POST['submit_phrases'])) {
106
 
107
  if (function_exists('current_user_can') && !current_user_can('manage_options')) {
108
  die(_e('Hacker?', 'wpdiscuz'));
@@ -165,7 +166,7 @@ class WC_Options {
165
 
166
  $this->wc_db_helper->update_phrases($this->wc_options_serialized->wc_phrases);
167
  }
168
- if ($this->wc_db_helper->is_phrase_exists('wc_discuss_tab')) {
169
  $this->wc_options_serialized->wc_phrases = $this->wc_db_helper->get_phrases();
170
  }
171
  ?>
@@ -199,7 +200,7 @@ class WC_Options {
199
  <tr valign="top">
200
  <td colspan="4">
201
  <p class="submit">
202
- <input type="submit" class="button button-primary" name="submit_phrases" value="<?php _e('Save Changes', 'wpdiscuz'); ?>" />
203
  </p>
204
  </td>
205
  </tr>
25
  }
26
  }
27
 
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'));
52
  $this->wc_options_serialized->wc_comment_text_color = isset($_POST['wc_comment_text_color']) ? $_POST['wc_comment_text_color'] : '#555';
53
  $this->wc_options_serialized->wc_author_title_color = isset($_POST['wc_author_title_color']) ? $_POST['wc_author_title_color'] : '#00B38F';
54
  $this->wc_options_serialized->wc_vote_reply_color = isset($_POST['wc_vote_reply_color']) ? $_POST['wc_vote_reply_color'] : '#666666';
55
+ $this->wc_options_serialized->wc_custom_css = isset($_POST['wc_custom_css']) ? $_POST['wc_custom_css'] : '.comments-area{width: 100%;margin: 0 auto;}';
56
 
57
  $this->wc_options_serialized->update_options();
58
  }
87
  <tr valign="top">
88
  <td colspan="4">
89
  <p class="submit">
90
+ <input type="submit" class="button button-primary" name="wc_submit_options" value="<?php _e('Save Changes', 'wpdiscuz'); ?>" />
91
  </p>
92
  </td>
93
  </tr>
103
 
104
  public function phrases_options_form() {
105
 
106
+ if (isset($_POST['wc_submit_phrases'])) {
107
 
108
  if (function_exists('current_user_can') && !current_user_can('manage_options')) {
109
  die(_e('Hacker?', 'wpdiscuz'));
166
 
167
  $this->wc_db_helper->update_phrases($this->wc_options_serialized->wc_phrases);
168
  }
169
+ if ($this->wc_db_helper->is_phrase_exists('wc_leave_a_reply_text')) {
170
  $this->wc_options_serialized->wc_phrases = $this->wc_db_helper->get_phrases();
171
  }
172
  ?>
200
  <tr valign="top">
201
  <td colspan="4">
202
  <p class="submit">
203
+ <input type="submit" class="button button-primary" name="wc_submit_phrases" value="<?php _e('Save Changes', 'wpdiscuz'); ?>" />
204
  </p>
205
  </td>
206
  </tr>
wc.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
 
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: 1.0.1
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/
@@ -301,6 +301,7 @@ class WC_Core {
301
  * vote on comment via ajax
302
  */
303
  public function vote_on_comment() {
 
304
  $messageArray = array();
305
  $messageArray['code'] = -1;
306
  $comment_id = '';
@@ -358,6 +359,7 @@ class WC_Core {
358
  */
359
  public function get_wp_comments($comments_offset, $post_id = null) {
360
  global $post;
 
361
 
362
  if (!$post_id) {
363
  $post_id = $post->ID;
1
  <?php
2
 
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: 1.0.2
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/
301
  * vote on comment via ajax
302
  */
303
  public function vote_on_comment() {
304
+ $this->wc_options->wc_options_serialized->wc_phrases = $this->wc_db_helper->get_phrases();
305
  $messageArray = array();
306
  $messageArray['code'] = -1;
307
  $comment_id = '';
359
  */
360
  public function get_wp_comments($comments_offset, $post_id = null) {
361
  global $post;
362
+ $this->wc_options->wc_options_serialized->wc_phrases = $this->wc_db_helper->get_phrases();
363
 
364
  if (!$post_id) {
365
  $post_id = $post->ID;