Version Description
- Added : Option to set comment text font size
- Added : Option to set form background color
- Added : Better responsively on mobile devices
- Added : better CAPTCHA image with colors and lines
- Fixed Bug: Undefined loader spinner image source.
Download this release
Release Info
Developer | AdvancedCoding |
Plugin | Comments – wpDiscuz |
Version | 1.0.9 |
Comparing to | |
See all releases |
Code changes from version 1.0.8 to 1.0.9
- captcha/captcha.php +14 -1
- comment-form/form.php +5 -4
- files/js/wc-scripts.js +7 -0
- includes/wc-db-helper.php +1 -1
- options-templates/options-template-main.php +40 -0
- readme.txt +12 -4
- wc-css.php +7 -7
- wc-options-serialize.php +22 -0
- wc-options.php +3 -1
- wc.php +2 -2
captcha/captcha.php
CHANGED
@@ -24,9 +24,22 @@ $_SESSION['wc_captcha'][$comm_id] = md5(strtolower(trim($randomString)));
|
|
24 |
|
25 |
$im = @imagecreatefrompng("captcha_bg_easy.png");
|
26 |
|
|
|
27 |
$font_path = './consolai.ttf';
|
28 |
|
29 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
|
31 |
header('Content-type: image/png');
|
32 |
imagepng($im, NULL, 0);
|
24 |
|
25 |
$im = @imagecreatefrompng("captcha_bg_easy.png");
|
26 |
|
27 |
+
|
28 |
$font_path = './consolai.ttf';
|
29 |
|
30 |
+
|
31 |
+
$x = 5;
|
32 |
+
for ($i = 0; $i < strlen($randomString); $i++) {
|
33 |
+
$color = imagecolorallocate($im, rand(0, 255), 0, rand(0, 255));
|
34 |
+
$letter = substr($randomString, $i, 1);
|
35 |
+
imagettftext($im, 16, 0, $x, 20, $color, $font_path, $letter);
|
36 |
+
$x += 13;
|
37 |
+
}
|
38 |
+
|
39 |
+
for ($i = 0; $i < 5; $i++) {
|
40 |
+
$color = imagecolorallocate($im, rand(0, 255), rand(0, 200), rand(0, 255));
|
41 |
+
imageline($im, rand(0, 20), rand(1, 50), rand(150, 180), rand(1, 50), $color);
|
42 |
+
}
|
43 |
|
44 |
header('Content-type: image/png');
|
45 |
imagepng($im, NULL, 0);
|
comment-form/form.php
CHANGED
@@ -89,15 +89,15 @@ $header_text .= ' "' . get_the_title($post) . '"';
|
|
89 |
<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>
|
90 |
<div style="clear:both"></div>
|
91 |
</div>
|
92 |
-
</div>
|
93 |
-
<input type="hidden" name="wc_home_url" value="<?php echo plugins_url(); ?>" id="wc_home_url" />
|
94 |
-
<input type="hidden" name="wc_plugin_dir_url" value="<?php echo WC_Core::$PLUGIN_DIRECTORY; ?>" id="wc_plugin_dir_url" />
|
95 |
<input type="hidden" name="wc_comment_post_ID" value="<?php echo $post->ID; ?>" id="wc_comment_post_ID-<?php echo $unique_id; ?>" />
|
96 |
<input type="hidden" name="wc_comment_parent" value="0" id="wc_comment_parent-<?php echo $unique_id; ?>" />
|
97 |
</form>
|
98 |
<?php } else { ?>
|
99 |
<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>
|
100 |
<?php } ?>
|
|
|
|
|
101 |
</div>
|
102 |
<hr/>
|
103 |
|
@@ -115,7 +115,8 @@ $header_text .= ' "' . get_the_title($post) . '"';
|
|
115 |
<?php } ?>
|
116 |
|
117 |
<div style="clear:both"></div>
|
118 |
-
<div class="by-wpdiscuz"><span id="awpdiscuz" onclick='javascript:document.getElementById("bywpdiscuz").style.display = "inline";
|
|
|
119 |
|
120 |
<div id="wc_openModalFormAction" class="modalDialog">
|
121 |
<div id="wc_response_info" class="wc_modal">
|
89 |
<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>
|
90 |
<div style="clear:both"></div>
|
91 |
</div>
|
92 |
+
</div>
|
|
|
|
|
93 |
<input type="hidden" name="wc_comment_post_ID" value="<?php echo $post->ID; ?>" id="wc_comment_post_ID-<?php echo $unique_id; ?>" />
|
94 |
<input type="hidden" name="wc_comment_parent" value="0" id="wc_comment_parent-<?php echo $unique_id; ?>" />
|
95 |
</form>
|
96 |
<?php } else { ?>
|
97 |
<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>
|
98 |
<?php } ?>
|
99 |
+
<input type="hidden" name="wc_home_url" value="<?php echo plugins_url(); ?>" id="wc_home_url" />
|
100 |
+
<input type="hidden" name="wc_plugin_dir_url" value="<?php echo WC_Core::$PLUGIN_DIRECTORY; ?>" id="wc_plugin_dir_url" />
|
101 |
</div>
|
102 |
<hr/>
|
103 |
|
115 |
<?php } ?>
|
116 |
|
117 |
<div style="clear:both"></div>
|
118 |
+
<div class="by-wpdiscuz"><span id="awpdiscuz" onclick='javascript:document.getElementById("bywpdiscuz").style.display = "inline";
|
119 |
+
document.getElementById("awpdiscuz").style.display = "none";'><img src="<?php echo plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/files/img/plugin-icon/icon_info.png'); ?>" align="absmiddle" class="wpdimg"/></span> <a href="http://gvectors.com/wpdiscuz/" id="bywpdiscuz" title="wpDiscuz - Interactive Comment System">wpDiscuz</a></div>
|
120 |
|
121 |
<div id="wc_openModalFormAction" class="modalDialog">
|
122 |
<div id="wc_response_info" class="wc_modal">
|
files/js/wc-scripts.js
CHANGED
@@ -38,4 +38,11 @@ jQuery(document).ready(function ($) {
|
|
38 |
$('#wc_vote_reply_color').val('#' + hex);
|
39 |
}
|
40 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
});
|
38 |
$('#wc_vote_reply_color').val('#' + hex);
|
39 |
}
|
40 |
});
|
41 |
+
|
42 |
+
$('#wc_colorpickerHolder6').ColorPicker({
|
43 |
+
flat: true,
|
44 |
+
onChange: function (hsb, hex, rgb) {
|
45 |
+
$('#wc_form_bg_color').val('#' + hex);
|
46 |
+
}
|
47 |
+
});
|
48 |
});
|
includes/wc-db-helper.php
CHANGED
@@ -26,7 +26,7 @@ class WC_DB_Helper {
|
|
26 |
dbDelta($sql);
|
27 |
}
|
28 |
if ($this->db->get_var("SHOW TABLES LIKE '$this->phrases'") != $this->phrases) {
|
29 |
-
$sql = "CREATE TABLE `" . $this->phrases . "`(`id` INT(11) NOT NULL AUTO_INCREMENT, `phrase_key` VARCHAR(255) NOT NULL, `phrase_value` VARCHAR(255) NOT NULL, PRIMARY KEY (`id`), KEY `phrase_key` (`phrase_key`)
|
30 |
dbDelta($sql);
|
31 |
}
|
32 |
}
|
26 |
dbDelta($sql);
|
27 |
}
|
28 |
if ($this->db->get_var("SHOW TABLES LIKE '$this->phrases'") != $this->phrases) {
|
29 |
+
$sql = "CREATE TABLE `" . $this->phrases . "`(`id` INT(11) NOT NULL AUTO_INCREMENT, `phrase_key` VARCHAR(255) NOT NULL, `phrase_value` VARCHAR(255) NOT NULL, PRIMARY KEY (`id`), KEY `phrase_key` (`phrase_key`)) ENGINE=MyISAM DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci AUTO_INCREMENT=1;;";
|
30 |
dbDelta($sql);
|
31 |
}
|
32 |
}
|
options-templates/options-template-main.php
CHANGED
@@ -167,6 +167,46 @@
|
|
167 |
</td>
|
168 |
</tr>
|
169 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
170 |
<tr valign="top">
|
171 |
<th scope="row">
|
172 |
<label for="wc_comment_bg_color"><?php _e('Comment Background Color', 'wpdiscuz'); ?></label>
|
167 |
</td>
|
168 |
</tr>
|
169 |
|
170 |
+
<tr valign="top">
|
171 |
+
<th scope="row">
|
172 |
+
<label for="wc_comment_text_size"><?php _e('Comment text size in pixels', 'wpdiscuz'); ?></label>
|
173 |
+
</th>
|
174 |
+
<td colspan="3">
|
175 |
+
<select id="wc_comment_text_size" name="wc_comment_text_size">
|
176 |
+
<?php $wc_comment_text_size = isset($this->wc_options_serialized->wc_comment_text_size) ? $this->wc_options_serialized->wc_comment_text_size : '14px'; ?>
|
177 |
+
<option value="12px" <?php selected($wc_comment_text_size, '12px'); ?>>12px</option>
|
178 |
+
<option value="13px" <?php selected($wc_comment_text_size, '13px'); ?>>13px</option>
|
179 |
+
<option value="14px" <?php selected($wc_comment_text_size, '14px'); ?>>14px</option>
|
180 |
+
<option value="15px" <?php selected($wc_comment_text_size, '15px'); ?>>15px</option>
|
181 |
+
<option value="16px" <?php selected($wc_comment_text_size, '16px'); ?>>16px</option>
|
182 |
+
</select>
|
183 |
+
</td>
|
184 |
+
</tr>
|
185 |
+
|
186 |
+
<tr valign="top">
|
187 |
+
<th scope="row">
|
188 |
+
<label for="wc_form_bg_color"><?php _e('Comment Form Background Color', 'wpdiscuz'); ?></label>
|
189 |
+
</th>
|
190 |
+
<td width="1">
|
191 |
+
<input type="text" class="regular-text" value="<?php echo isset($this->wc_options_serialized->wc_form_bg_color) ? $this->wc_options_serialized->wc_form_bg_color : '#f9f9f9' ; ?>" id="wc_form_bg_color" name="wc_form_bg_color" placeholder="<?php _e('Example: #00ff00', 'wpdiscuz'); ?>"/>
|
192 |
+
</td>
|
193 |
+
|
194 |
+
<td class="picker_img_cell">
|
195 |
+
<a href="#wc_openModal6">
|
196 |
+
<img class="wc_colorpicker_img6" src="<?php echo plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/files/third-party/colorpicker/img/colorpicker_icon_22.png'); ?>" />
|
197 |
+
</a>
|
198 |
+
</td>
|
199 |
+
<td class="color_picker">
|
200 |
+
<div id="wc_openModal6" class="modalDialog">
|
201 |
+
<div id="wc_box6">
|
202 |
+
<a href="#close" title="Close" class="close">X</a>
|
203 |
+
<h2>Color Picker</h2>
|
204 |
+
<p id="wc_colorpickerHolder6"></p>
|
205 |
+
</div>
|
206 |
+
</div>
|
207 |
+
</td>
|
208 |
+
</tr>
|
209 |
+
|
210 |
<tr valign="top">
|
211 |
<th scope="row">
|
212 |
<label for="wc_comment_bg_color"><?php _e('Comment Background Color', 'wpdiscuz'); ?></label>
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: gVectors Team
|
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=UC44WQM5XJFPA
|
4 |
Tags: wordpress comments, ajax comments, ajax, theme, post comments, comments box, community, discussion, discuss, comment form, reply, comments, discussions, comment template, activity, comment author, comment system
|
5 |
Requires at least: 2.7
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 1.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -61,16 +61,17 @@ https://wordpress.org/plugins/woodiscuz-woocommerce-comments/
|
|
61 |
|
62 |
== Frequently Asked Questions ==
|
63 |
|
|
|
64 |
|
65 |
* QUESTION: Does it fully replace the current comment system? That in this case what happens to old comments?
|
66 |
* ANSWER: wpDiscuz changes default comment system to a new interactive system and shows all old comments, nothing will be lost.
|
67 |
|
68 |
|
69 |
* QUESTION: Where comments are stored?
|
70 |
-
* ANSWER: wpDiscuz uses the default WordPress comment storage system, all comments are on your database and all comments are manageable
|
71 |
|
72 |
|
73 |
-
* QUESTION:
|
74 |
* ANSWER: wpDiscuz doesn't affect any data. You can install and uninstall whenever you want without any worries.
|
75 |
|
76 |
|
@@ -90,6 +91,13 @@ https://wordpress.org/plugins/woodiscuz-woocommerce-comments/
|
|
90 |
|
91 |
== Changelog ==
|
92 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
93 |
= 1.0.8 =
|
94 |
* Fixed Bug: CSS Issues
|
95 |
* Added : wpDiscuz comment system supports all WordPress template hooks. It's compatible with all plugins which uses comment hooks.
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=UC44WQM5XJFPA
|
4 |
Tags: wordpress comments, ajax comments, ajax, theme, post comments, comments box, community, discussion, discuss, comment form, reply, comments, discussions, comment template, activity, comment author, comment system
|
5 |
Requires at least: 2.7
|
6 |
+
Tested up to: 4.1
|
7 |
+
Stable tag: 1.0.9
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
61 |
|
62 |
== Frequently Asked Questions ==
|
63 |
|
64 |
+
= Q&A =
|
65 |
|
66 |
* QUESTION: Does it fully replace the current comment system? That in this case what happens to old comments?
|
67 |
* ANSWER: wpDiscuz changes default comment system to a new interactive system and shows all old comments, nothing will be lost.
|
68 |
|
69 |
|
70 |
* QUESTION: Where comments are stored?
|
71 |
+
* ANSWER: wpDiscuz uses the default WordPress comment storage system, all comments are on your database and all comments are manageable in Dashboard > Comments admin page.
|
72 |
|
73 |
|
74 |
+
* QUESTION: Will my comments be lost if I install this plugin, and then remove it?
|
75 |
* ANSWER: wpDiscuz doesn't affect any data. You can install and uninstall whenever you want without any worries.
|
76 |
|
77 |
|
91 |
|
92 |
== Changelog ==
|
93 |
|
94 |
+
= 1.0.9 =
|
95 |
+
* Added : Option to set comment text font size
|
96 |
+
* Added : Option to set form background color
|
97 |
+
* Added : Better responsively on mobile devices
|
98 |
+
* Added : better CAPTCHA image with colors and lines
|
99 |
+
* Fixed Bug: Undefined loader spinner image source.
|
100 |
+
|
101 |
= 1.0.8 =
|
102 |
* Fixed Bug: CSS Issues
|
103 |
* Added : wpDiscuz comment system supports all WordPress template hooks. It's compatible with all plugins which uses comment hooks.
|
wc-css.php
CHANGED
@@ -20,19 +20,19 @@ class WC_CSS {
|
|
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
|
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; height:29px; }
|
32 |
#wpcomm .wc-field-email input[type="email"]{ width:100%; max-width:100%; padding:5px; font-size:14px; margin:0px; height:29px; }
|
33 |
-
#wpcomm .wc-field-captcha input[type="text"]{ width:40%; padding:5px; font-size:14px; margin:0px; height:29px; }
|
34 |
#wpcomm .wc-field-submit input[type="submit"]{ margin:1px; }
|
35 |
-
#wpcomm .wc-field-submit input[type="button"]{ margin:1px; border:#DDDDDD 1px solid; font-size: 13px; line-height: 16px; padding: 6px
|
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:46px; min-height: 46px !important; padding:5px; box-sizing: border-box; }
|
38 |
#wpcomm .wc-label{ display:block; font-size:14px; padding:5px; }
|
@@ -52,12 +52,12 @@ class WC_CSS {
|
|
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 auto; float:none; display:inline; }
|
55 |
-
#wpcomm .wc-comment-text{ font-size:14px; text-align:left; color:<?php echo $this->wc_options->wc_options_serialized->wc_comment_text_color; ?>; padding-bottom:5px; line-height: 20px; }
|
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-author a{ color:<?php echo $this->wc_options->wc_options_serialized->wc_author_title_color; ?>; font-size:16px; white-space:nowrap; text-decoration:none; }
|
59 |
#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; }
|
60 |
-
#wpcomm .wc-comment-date{ font-size:12px; color:#999999;
|
61 |
#wpcomm .wc-comment-footer { font-size:12px; font-weight:normal; color:#999999; margin-top:12px; min-height: 28px; font-family:Lato,sans-serif; }
|
62 |
#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; ?>; }
|
63 |
#wpcomm .wc-comment-footer .share_buttons_box img{ vertical-align:middle; }
|
@@ -70,7 +70,7 @@ class WC_CSS {
|
|
70 |
#wpcomm .wc-captcha-label img{ display: inline!important; border:none; padding:0px 1px; margin:0px; vertical-align:middle; }
|
71 |
#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; ?>; }
|
72 |
#wpcomm .wc-form-footer, #wpcomm .wc-secondary-forms-wrapper {display: none;}
|
73 |
-
#wpcomm .wc-field-captcha .wc-captcha-label {
|
74 |
#wpcomm .wc_captcha_refresh_img {cursor: pointer; margin-left: 3px;}
|
75 |
#wpcomm .share_buttons_box {display: none;/*position: absolute;left: 40%;*/}
|
76 |
#wpcomm .wc-no-left-margin {margin-left: 0 !important;}
|
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:<?php echo isset($this->wc_options->wc_options_serialized->wc_form_bg_color) ? $this->wc_options->wc_options_serialized->wc_form_bg_color : '#f9f9f9'; ?>; margin-top:20px; border:1px solid #F1F1F1; }
|
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; height:auto!important; }
|
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; height:29px; }
|
32 |
#wpcomm .wc-field-email input[type="email"]{ width:100%; max-width:100%; padding:5px; font-size:14px; margin:0px; height:29px; }
|
33 |
+
#wpcomm .wc-field-captcha input[type="text"]{ width:40%; padding:5px; font-size:14px; margin:0px 5px 0px 0px; height:29px; }
|
34 |
#wpcomm .wc-field-submit input[type="submit"]{ margin:1px; }
|
35 |
+
#wpcomm .wc-field-submit input[type="button"]{ margin:1px; border:#DDDDDD 1px solid; font-size: 13px; line-height: 16px; padding: 6px 15px; }
|
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:46px; min-height: 46px !important; padding:5px; box-sizing: border-box; }
|
38 |
#wpcomm .wc-label{ display:block; font-size:14px; padding:5px; }
|
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 auto; float:none; display:inline; }
|
55 |
+
#wpcomm .wc-comment-text{ font-size:<?php echo isset($this->wc_options->wc_options_serialized->wc_comment_text_size) ? $this->wc_options->wc_options_serialized->wc_comment_text_size : '14px'; ?>; text-align:left; color:<?php echo $this->wc_options->wc_options_serialized->wc_comment_text_color; ?>; padding-bottom:5px; line-height: 20px; }
|
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-author a{ color:<?php echo $this->wc_options->wc_options_serialized->wc_author_title_color; ?>; font-size:16px; white-space:nowrap; text-decoration:none; }
|
59 |
#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; }
|
60 |
+
#wpcomm .wc-comment-date{ font-size:12px; color:#999999; float:right; text-align:right; white-space:nowrap; line-height:27px; }
|
61 |
#wpcomm .wc-comment-footer { font-size:12px; font-weight:normal; color:#999999; margin-top:12px; min-height: 28px; font-family:Lato,sans-serif; }
|
62 |
#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; ?>; }
|
63 |
#wpcomm .wc-comment-footer .share_buttons_box img{ vertical-align:middle; }
|
70 |
#wpcomm .wc-captcha-label img{ display: inline!important; border:none; padding:0px 1px; margin:0px; vertical-align:middle; }
|
71 |
#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; ?>; }
|
72 |
#wpcomm .wc-form-footer, #wpcomm .wc-secondary-forms-wrapper {display: none;}
|
73 |
+
#wpcomm .wc-field-captcha .wc-captcha-label { padding: 0; display: inline-block; }
|
74 |
#wpcomm .wc_captcha_refresh_img {cursor: pointer; margin-left: 3px;}
|
75 |
#wpcomm .share_buttons_box {display: none;/*position: absolute;left: 40%;*/}
|
76 |
#wpcomm .wc-no-left-margin {margin-left: 0 !important;}
|
wc-options-serialize.php
CHANGED
@@ -112,6 +112,22 @@ class WC_Options_Serialize {
|
|
112 |
*/
|
113 |
public $wc_notify_comment_author;
|
114 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
115 |
/**
|
116 |
* Type - Input
|
117 |
* Available Values - color codes
|
@@ -196,6 +212,8 @@ class WC_Options_Serialize {
|
|
196 |
$this->wc_comment_count = $options['wc_comment_count'];
|
197 |
$this->wc_notify_moderator = $options['wc_notify_moderator'];
|
198 |
$this->wc_notify_comment_author = $options['wc_notify_comment_author'];
|
|
|
|
|
199 |
$this->wc_comment_bg_color = $options['wc_comment_bg_color'];
|
200 |
$this->wc_reply_bg_color = $options['wc_reply_bg_color'];
|
201 |
$this->wc_comment_text_color = $options['wc_comment_text_color'];
|
@@ -275,6 +293,8 @@ class WC_Options_Serialize {
|
|
275 |
'wc_comment_count' => $this->wc_comment_count,
|
276 |
'wc_notify_moderator' => $this->wc_notify_moderator,
|
277 |
'wc_notify_comment_author' => $this->wc_notify_comment_author,
|
|
|
|
|
278 |
'wc_comment_bg_color' => $this->wc_comment_bg_color,
|
279 |
'wc_reply_bg_color' => $this->wc_reply_bg_color,
|
280 |
'wc_comment_text_color' => $this->wc_comment_text_color,
|
@@ -305,6 +325,8 @@ class WC_Options_Serialize {
|
|
305 |
'wc_comment_count' => '5',
|
306 |
'wc_notify_moderator' => '1',
|
307 |
'wc_notify_comment_author' => '1',
|
|
|
|
|
308 |
'wc_comment_bg_color' => '#fefefe',
|
309 |
'wc_reply_bg_color' => '#f8f8f8',
|
310 |
'wc_comment_text_color' => '#555',
|
112 |
*/
|
113 |
public $wc_notify_comment_author;
|
114 |
|
115 |
+
/**
|
116 |
+
* Type - Select
|
117 |
+
* Available Values - 12px-16px
|
118 |
+
* Description - Comment Text Size
|
119 |
+
* Default Value - 14px
|
120 |
+
*/
|
121 |
+
public $wc_comment_text_size;
|
122 |
+
|
123 |
+
/**
|
124 |
+
* Type - Input
|
125 |
+
* Available Values - color codes
|
126 |
+
* Description - Form Background Color
|
127 |
+
* Default Value - #F9F9F9
|
128 |
+
*/
|
129 |
+
public $wc_form_bg_color;
|
130 |
+
|
131 |
/**
|
132 |
* Type - Input
|
133 |
* Available Values - color codes
|
212 |
$this->wc_comment_count = $options['wc_comment_count'];
|
213 |
$this->wc_notify_moderator = $options['wc_notify_moderator'];
|
214 |
$this->wc_notify_comment_author = $options['wc_notify_comment_author'];
|
215 |
+
$this->wc_comment_text_size = $options['wc_comment_text_size'];
|
216 |
+
$this->wc_form_bg_color = $options['wc_form_bg_color'];
|
217 |
$this->wc_comment_bg_color = $options['wc_comment_bg_color'];
|
218 |
$this->wc_reply_bg_color = $options['wc_reply_bg_color'];
|
219 |
$this->wc_comment_text_color = $options['wc_comment_text_color'];
|
293 |
'wc_comment_count' => $this->wc_comment_count,
|
294 |
'wc_notify_moderator' => $this->wc_notify_moderator,
|
295 |
'wc_notify_comment_author' => $this->wc_notify_comment_author,
|
296 |
+
'wc_comment_text_size' => $this->wc_comment_text_size,
|
297 |
+
'wc_form_bg_color' => $this->wc_form_bg_color,
|
298 |
'wc_comment_bg_color' => $this->wc_comment_bg_color,
|
299 |
'wc_reply_bg_color' => $this->wc_reply_bg_color,
|
300 |
'wc_comment_text_color' => $this->wc_comment_text_color,
|
325 |
'wc_comment_count' => '5',
|
326 |
'wc_notify_moderator' => '1',
|
327 |
'wc_notify_comment_author' => '1',
|
328 |
+
'wc_comment_text_size' => '14px',
|
329 |
+
'wc_form_bg_color' => '#f9f9f9',
|
330 |
'wc_comment_bg_color' => '#fefefe',
|
331 |
'wc_reply_bg_color' => '#f8f8f8',
|
332 |
'wc_comment_text_color' => '#555',
|
wc-options.php
CHANGED
@@ -47,7 +47,9 @@ class WC_Options {
|
|
47 |
$this->wc_options_serialized->wc_author_titles_show_hide = isset($_POST['wc_author_titles_show_hide']) ? $_POST['wc_author_titles_show_hide'] : 0;
|
48 |
$this->wc_options_serialized->wc_comment_count = isset($_POST['wc_comment_count']) ? $_POST['wc_comment_count'] : 10;
|
49 |
$this->wc_options_serialized->wc_notify_moderator = isset($_POST['wc_notify_moderator']) ? $_POST['wc_notify_moderator'] : 0;
|
50 |
-
$this->wc_options_serialized->wc_notify_comment_author = isset($_POST['wc_notify_comment_author']) ? $_POST['wc_notify_comment_author'] : 0;
|
|
|
|
|
51 |
$this->wc_options_serialized->wc_comment_bg_color = isset($_POST['wc_comment_bg_color']) ? $_POST['wc_comment_bg_color'] : '#fefefe';
|
52 |
$this->wc_options_serialized->wc_reply_bg_color = isset($_POST['wc_reply_bg_color']) ? $_POST['wc_reply_bg_color'] : '#f8f8f8';
|
53 |
$this->wc_options_serialized->wc_comment_text_color = isset($_POST['wc_comment_text_color']) ? $_POST['wc_comment_text_color'] : '#555';
|
47 |
$this->wc_options_serialized->wc_author_titles_show_hide = isset($_POST['wc_author_titles_show_hide']) ? $_POST['wc_author_titles_show_hide'] : 0;
|
48 |
$this->wc_options_serialized->wc_comment_count = isset($_POST['wc_comment_count']) ? $_POST['wc_comment_count'] : 10;
|
49 |
$this->wc_options_serialized->wc_notify_moderator = isset($_POST['wc_notify_moderator']) ? $_POST['wc_notify_moderator'] : 0;
|
50 |
+
$this->wc_options_serialized->wc_notify_comment_author = isset($_POST['wc_notify_comment_author']) ? $_POST['wc_notify_comment_author'] : 0;
|
51 |
+
$this->wc_options_serialized->wc_form_bg_color = isset($_POST['wc_form_bg_color']) ? $_POST['wc_form_bg_color'] : '#f9f9f9';
|
52 |
+
$this->wc_options_serialized->wc_comment_text_size = isset($_POST['wc_comment_text_size']) ? $_POST['wc_comment_text_size'] : '14px';
|
53 |
$this->wc_options_serialized->wc_comment_bg_color = isset($_POST['wc_comment_bg_color']) ? $_POST['wc_comment_bg_color'] : '#fefefe';
|
54 |
$this->wc_options_serialized->wc_reply_bg_color = isset($_POST['wc_reply_bg_color']) ? $_POST['wc_reply_bg_color'] : '#f8f8f8';
|
55 |
$this->wc_options_serialized->wc_comment_text_color = isset($_POST['wc_comment_text_color']) ? $_POST['wc_comment_text_color'] : '#555';
|
wc.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
/*
|
4 |
Plugin Name: wpDiscuz - Wordpress Comments
|
5 |
Description: Better comment system. Wordpress post comments and discussion plugin. Allows your visitors discuss, vote for comments and share.
|
6 |
-
Version: 1.0.
|
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/
|
@@ -143,7 +143,7 @@ class WC_Core {
|
|
143 |
wp_register_style('validator-style', plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/files/css/fv.css'));
|
144 |
wp_enqueue_style('validator-style');
|
145 |
|
146 |
-
wp_enqueue_script('wc-ajax-js', plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/files/js/wc-ajax.js'), array('jquery'), '1.0.
|
147 |
wp_localize_script('wc-ajax-js', 'wc_ajax_obj', array('url' => admin_url('admin-ajax.php')));
|
148 |
|
149 |
wp_enqueue_script('wc-cookie-js', plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/files/js/jquery.cookie.js'), array('jquery'), '1.4.1', false);
|
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.9
|
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/
|
143 |
wp_register_style('validator-style', plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/files/css/fv.css'));
|
144 |
wp_enqueue_style('validator-style');
|
145 |
|
146 |
+
wp_enqueue_script('wc-ajax-js', plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/files/js/wc-ajax.js'), array('jquery'), '1.0.9', false);
|
147 |
wp_localize_script('wc-ajax-js', 'wc_ajax_obj', array('url' => admin_url('admin-ajax.php')));
|
148 |
|
149 |
wp_enqueue_script('wc-cookie-js', plugins_url(WC_Core::$PLUGIN_DIRECTORY . '/files/js/jquery.cookie.js'), array('jquery'), '1.4.1', false);
|