Version Description
- Added: Supports "Social Login" Plugin
- Added: Redirection to current page after login/logout
- Fixed Bug: Super Socializer comment author avatar problem
- Fixed Bug: Author website URL rel="nofollow"
- Fixed Bug: Other small bugs
IMPORTANT: If you have a Cache Plugin, please delete all caches after wpDiscuz update.
Download this release
Release Info
Developer | AdvancedCoding |
Plugin | Comments – wpDiscuz |
Version | 2.2.6 |
Comparing to | |
See all releases |
Code changes from version 2.2.5 to 2.2.6
- comment-form/form.php +14 -5
- comment-form/tpl-comment.php +7 -4
- files/css/wpdiscuz.min.css +1 -1
- files/js/wc-ajax.js +2 -0
- files/js/wc-ajax.min.js +1 -1
- includes/wc-helper.php +7 -6
- options/options-layouts/settings-social.php +15 -1
- options/wc-options-serialize.php +1 -1
- options/wc-options.php +2 -2
- readme.txt +10 -3
- wc.php +1 -1
comment-form/form.php
CHANGED
@@ -55,13 +55,13 @@ $header_text .= ' "' . get_the_title($post) . '"';
|
|
55 |
$wc_is_name_field_required = ($wc_core->wc_options_serialized->wc_is_name_field_required) ? 'required="required"' : '';
|
56 |
$wc_is_email_field_required = ($wc_core->wc_options_serialized->wc_is_email_field_required) ? 'required="required"' : '';
|
57 |
|
58 |
-
|
59 |
$wc_validate_comment_text_length = (intval($wc_core->wc_options_serialized->wc_comment_text_max_length)) ? 'data-validate-length-range="1,' . $wc_core->wc_options_serialized->wc_comment_text_max_length . '"' : '';
|
60 |
?>
|
61 |
<div style="clear:both"></div>
|
62 |
|
63 |
<?php if (comments_open($post->ID)) { ?>
|
64 |
-
<div id="comments" class="comments-area">
|
65 |
<?php
|
66 |
if (isset($_GET['wpdiscuzSubscribeID']) && isset($_GET['key'])) {
|
67 |
$wc_core->wc_unsubscribe($_GET['wpdiscuzSubscribeID'], $_GET['key']);
|
@@ -96,7 +96,11 @@ $wc_validate_comment_text_length = (intval($wc_core->wc_options_serialized->wc_c
|
|
96 |
?>
|
97 |
<div id="wc_show_hide_loggedin_username">
|
98 |
<span class="wc_show_hide_loggedin_username">
|
99 |
-
<?php
|
|
|
|
|
|
|
|
|
100 |
</span>
|
101 |
</div>
|
102 |
<?php
|
@@ -232,7 +236,12 @@ $wc_validate_comment_text_length = (intval($wc_core->wc_options_serialized->wc_c
|
|
232 |
</form>
|
233 |
|
234 |
<?php } else { ?>
|
235 |
-
<p class="wc-must-login"
|
|
|
|
|
|
|
|
|
|
|
236 |
<?php
|
237 |
}
|
238 |
?>
|
@@ -316,7 +325,7 @@ $wc_validate_comment_text_length = (intval($wc_core->wc_options_serialized->wc_c
|
|
316 |
$html = $html . $wc_div_end_html;
|
317 |
}
|
318 |
//Custom case for social login plugin
|
319 |
-
if (strpos('champ_login') !== FALSE) {
|
320 |
if (preg_match_all('|<li[^><]*>.+?</li>|is', $html, $wc_social_buttons, PREG_SET_ORDER)) {
|
321 |
foreach ($wc_social_buttons as $wc_social_button) {
|
322 |
$wc_social_buttons_array[] = $wc_social_button[0];
|
55 |
$wc_is_name_field_required = ($wc_core->wc_options_serialized->wc_is_name_field_required) ? 'required="required"' : '';
|
56 |
$wc_is_email_field_required = ($wc_core->wc_options_serialized->wc_is_email_field_required) ? 'required="required"' : '';
|
57 |
|
58 |
+
$ob_stat = ini_get('output_buffering'); if( $ob_stat || $ob_stat === '' ){ $wc_ob_allowed = true; ob_start(); do_action('comment_form_top'); $wc_comment_form_top_content = ob_get_contents(); ob_clean(); $wc_comment_form_top_content = wpdiscuz_close_divs($wc_comment_form_top_content); } else{ $wc_ob_allowed = false; }
|
59 |
$wc_validate_comment_text_length = (intval($wc_core->wc_options_serialized->wc_comment_text_max_length)) ? 'data-validate-length-range="1,' . $wc_core->wc_options_serialized->wc_comment_text_max_length . '"' : '';
|
60 |
?>
|
61 |
<div style="clear:both"></div>
|
62 |
|
63 |
<?php if (comments_open($post->ID)) { ?>
|
64 |
+
<div id="comments" class="comments-area"><div id="respond" style="width: 0;height: 0;clear: both;margin: 0;padding: 0;"></div>
|
65 |
<?php
|
66 |
if (isset($_GET['wpdiscuzSubscribeID']) && isset($_GET['key'])) {
|
67 |
$wc_core->wc_unsubscribe($_GET['wpdiscuzSubscribeID'], $_GET['key']);
|
96 |
?>
|
97 |
<div id="wc_show_hide_loggedin_username">
|
98 |
<span class="wc_show_hide_loggedin_username">
|
99 |
+
<?php
|
100 |
+
$logout = wp_loginout(get_permalink(),false) ;
|
101 |
+
$logout = preg_replace('!>([^<]+)!is','>'.$wc_core->wc_options_serialized->wc_phrases['wc_log_out'], $logout);
|
102 |
+
echo $wc_core->wc_options_serialized->wc_phrases['wc_logged_in_as'] . ' <a href="' . $user_url . '">' . $current_user->display_name . '</a> | '. $logout;
|
103 |
+
?>
|
104 |
</span>
|
105 |
</div>
|
106 |
<?php
|
236 |
</form>
|
237 |
|
238 |
<?php } else { ?>
|
239 |
+
<p class="wc-must-login">
|
240 |
+
<?php echo $wc_core->wc_options_serialized->wc_phrases['wc_you_must_be_text'];
|
241 |
+
$login = wp_loginout(get_permalink(),false);
|
242 |
+
$login = preg_replace('!>([^<]+)!is','>'.$wc_core->wc_options_serialized->wc_phrases['wc_logged_in_text'],$login);
|
243 |
+
echo ' ' . $login . ' ' .$wc_core->wc_options_serialized->wc_phrases['wc_to_post_comment_text']; ?>
|
244 |
+
</p>
|
245 |
<?php
|
246 |
}
|
247 |
?>
|
325 |
$html = $html . $wc_div_end_html;
|
326 |
}
|
327 |
//Custom case for social login plugin
|
328 |
+
if (strpos($html, 'champ_login') !== FALSE) {
|
329 |
if (preg_match_all('|<li[^><]*>.+?</li>|is', $html, $wc_social_buttons, PREG_SET_ORDER)) {
|
330 |
foreach ($wc_social_buttons as $wc_social_button) {
|
331 |
$wc_social_buttons_array[] = $wc_social_button[0];
|
comment-form/tpl-comment.php
CHANGED
@@ -88,7 +88,7 @@ class WC_Comment_Template_Builder {
|
|
88 |
}
|
89 |
|
90 |
if ($wc_comment_author_url) {
|
91 |
-
$wc_author_name = "<a href='$wc_comment_author_url'>" . $wc_author_name . "</a>";
|
92 |
} else {
|
93 |
if ($wc_profile_url) {
|
94 |
$wc_author_name = "<a href='$wc_profile_url'>" . $wc_author_name . "</a>";
|
@@ -118,7 +118,7 @@ class WC_Comment_Template_Builder {
|
|
118 |
|
119 |
$output = '<div id="wc-comm-' . $unique_id . '" class="' . $comment_wrapper_class . ' ' . $wc_author_class . ' ' . $parent_comment . ' wc_comment_level-' . $depth . '">';
|
120 |
if (!$this->wc_options_serialized->wc_avatar_show_hide) {
|
121 |
-
$output .= '<div class="wc-comment-left"
|
122 |
if (!$this->wc_options_serialized->wc_author_titles_show_hide) {
|
123 |
$output .= '<div class="' . $wc_author_class . ' wc-comment-label">' . $author_title . '</div>';
|
124 |
}
|
@@ -127,7 +127,7 @@ class WC_Comment_Template_Builder {
|
|
127 |
}
|
128 |
$output .= '</div>';
|
129 |
}
|
130 |
-
$output .= '<div class="wc-comment-right ' . $comment_content_class . '" ' . $hide_avatar_style . '>';
|
131 |
$output .= '<div class="wc-comment-header"><div class="wc-comment-author">' . $wc_author_name . '</div><div class="wc-comment-date">' . $posted_date . '</div><div style="clear:both"></div></div>';
|
132 |
$output .= '<div class="wc-comment-text">' . $comment_content . '</div>';
|
133 |
$output .= '<div class="wc-comment-footer">';
|
@@ -377,10 +377,13 @@ class WC_Comment_Template_Builder {
|
|
377 |
}
|
378 |
|
379 |
public function get_author_name($comment) {
|
380 |
-
if (class_exists('UM_API') && isset($comment->user_id) &&
|
381 |
um_fetch_user($comment->user_id);
|
382 |
$author_name = um_user('display_name');
|
383 |
um_reset_user();
|
|
|
|
|
|
|
384 |
} else {
|
385 |
$author_name = $comment->comment_author ? $comment->comment_author : __('Anonymous', WC_Core::$TEXT_DOMAIN);
|
386 |
}
|
88 |
}
|
89 |
|
90 |
if ($wc_comment_author_url) {
|
91 |
+
$wc_author_name = "<a rel='nofollow' href='$wc_comment_author_url'>" . $wc_author_name . "</a>";
|
92 |
} else {
|
93 |
if ($wc_profile_url) {
|
94 |
$wc_author_name = "<a href='$wc_profile_url'>" . $wc_author_name . "</a>";
|
118 |
|
119 |
$output = '<div id="wc-comm-' . $unique_id . '" class="' . $comment_wrapper_class . ' ' . $wc_author_class . ' ' . $parent_comment . ' wc_comment_level-' . $depth . '">';
|
120 |
if (!$this->wc_options_serialized->wc_avatar_show_hide) {
|
121 |
+
$output .= '<div class="wc-comment-left">' . $wc_comm_author_avatar;
|
122 |
if (!$this->wc_options_serialized->wc_author_titles_show_hide) {
|
123 |
$output .= '<div class="' . $wc_author_class . ' wc-comment-label">' . $author_title . '</div>';
|
124 |
}
|
127 |
}
|
128 |
$output .= '</div>';
|
129 |
}
|
130 |
+
$output .= '<div id="comment-' . $comment->comment_ID . '" class="wc-comment-right ' . $comment_content_class . '" ' . $hide_avatar_style . '>';
|
131 |
$output .= '<div class="wc-comment-header"><div class="wc-comment-author">' . $wc_author_name . '</div><div class="wc-comment-date">' . $posted_date . '</div><div style="clear:both"></div></div>';
|
132 |
$output .= '<div class="wc-comment-text">' . $comment_content . '</div>';
|
133 |
$output .= '<div class="wc-comment-footer">';
|
377 |
}
|
378 |
|
379 |
public function get_author_name($comment) {
|
380 |
+
if (class_exists('UM_API') && isset($comment->user_id) && $comment->user_id) {
|
381 |
um_fetch_user($comment->user_id);
|
382 |
$author_name = um_user('display_name');
|
383 |
um_reset_user();
|
384 |
+
}else if(isset($comment->user_id) && $comment->user_id){
|
385 |
+
$author_name = get_the_author_meta( 'display_name', $comment->user_id );
|
386 |
+
$author_name = $author_name ? $author_name : get_the_author_meta('user_login',$comment->user_id );
|
387 |
} else {
|
388 |
$author_name = $comment->comment_author ? $comment->comment_author : __('Anonymous', WC_Core::$TEXT_DOMAIN);
|
389 |
}
|
files/css/wpdiscuz.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
#wc-comment-header{padding:20px 5px 1px 5px;display:block;float:none;clear:both;font-size:18px}#wpcomm form div{box-sizing:inherit}#wpcomm form .wpdiscuz-item{display:block;height:auto}.wpdiscuz-item input{border-radius:0;height:auto;width:auto}#wpcomm{margin:15px 5px;padding:1px 0 10px 0;border-top:#ddd solid 1px}#wpcomm form{margin:0;padding:0;background:0;border:0;width:auto!important}#wpcomm form div{margin:0}#wc_show_hide_loggedin_username{padding:10px 5px 5px 5px;font-size:13px}#wpcomm .wc_new_comment_and_replies{margin:0;padding:0;width:100%;height:auto;background:transparent}#wpcomm .wc_new_comment_and_replies .wc_new_comment{float:right;display:none;padding:3px 10px;font-size:12px;margin:1px 0 1px 3px;cursor:pointer;color:#fff;line-height:15px}#wpcomm .wc_new_comment_and_replies .wc_new_reply{float:right;display:none;padding:3px 10px;font-size:12px;margin:1px 0 1px 1px;cursor:pointer;color:#fff;line-height:15px}#wpcomm .wc-comment-bar{width:100%;padding:0;display:block}#wpcomm .wc-comment-title{margin:0;line-height:18px;font-weight:bold;padding:10px;margin-bottom:10px;font-size:13px;text-align:right;border-bottom:#ccc dotted 1px;padding-bottom:10px}#wpcomm .wc-form-wrapper{padding:10px;margin-top:20px;border:1px solid #f1f1f1}#wpcomm .wc-author-data{margin-bottom:3px}#wpcomm .wc-field-submit{padding:5px 0 13px 0}#wpcomm .wc-field-name{width:49%;float:left}#wpcomm .wc-field-email{width:49%;float:right;text-align:right}#wpcomm .wc-field-comment{margin:5px auto 1px auto}#wpcomm .wc-field-comment .wc-field-avatararea{width:60px;float:left}#wpcomm .wc-field-comment .wc-field-textarea{margin-left:65px}#wpcomm .wc-field-captcha{width:49%;float:left;margin:0;height:auto!important}#wpcomm .wc-field-submit{width:49%;float:right;text-align:right;margin:0}#wpcomm .wc-field-website{width:100%;padding:0 0 10px 0;margin:0;display:block}#wpcomm .wc-field-name input[type="text"]{width:99%;max-width:100%;padding:3px 5px;font-size:14px;margin:0;height:29px}#wpcomm .wc-field-website input[type="url"],#wpcomm .wc-field-website input[type="text"]{width:100%;max-width:100%;padding:3px 5px;font-size:14px;margin:0;height:29px}#wpcomm .wc-field-email input[type="email"]{width:100%;max-width:100%;padding:3px 5px;font-size:14px;margin:0;height:29px}#wpcomm .wc-field-captcha input[type="text"]{max-width:45%;min-width:85px;padding:3px 5px;font-size:14px;margin:0 5px 2px 0;height:27px}@media screen and (max-width:1000px){#wpcomm .wc-field-captcha input[type="text"]{max-width:45%;min-width:90px}}@media screen and (max-width:850px){#wpcomm .wc-field-captcha input[type="text"]{max-width:35%;min-width:90px}}@media screen and (max-width:790px){#wpcomm .wc-field-captcha input[type="text"]{max-width:30%;min-width:80px}}@media screen and (max-width:690px){#wpcomm .wc-field-captcha input[type="text"]{max-width:30%;min-width:80px}}#wpcomm .wc-field-submit input[type="submit"]{margin:1px}#wpcomm .wc-field-submit input[type="button"]{margin:1px;border:#ddd 1px solid;font-size:13px;line-height:16px;padding:6px 15px;clear:both;float:none}#wpcomm .captcha_msg{color:#999;font-family:Lato,sans-serif;font-size:13px;line-height:18px;display:block;clear:both;padding:5px 0 0 0}#wpcomm .wc-field-comment textarea,#wpcomm .wc-comment .wc-comment-right textarea{width:100%;max-width:100%;height:48px;min-height:48px!important;padding:5px;box-sizing:border-box;border-radius:0}#wpcomm .wc-label{display:block;font-size:14px;padding:5px}#wpcomm .wc_manage_subscribtions{cursor:pointer;padding:0 0 5px 0;display:block;font-size:13px;line-height:16px;font-family:Lato,sans-serif}#wpcomm .wc_notification_checkboxes{padding:7px 0 7px 0;text-align:left;display:none;border-top:1px dotted #ddd;line-height:18px;font-size:13px}#wpcomm .wc_notification_checkboxes input[type="checkbox"],#wpcomm .wc_notification_checkboxes input[type="radio"]{overflow:none;width:inherit;font-size:13px;margin:0;padding:0;display:inline;clear:both;float:none;max-height:20px;margin:0 3px}#wpcomm .wc_notification_checkboxes label{clear:both;float:none;font-weight:normal}#wpcomm .wc-label-comment-notify{display:inline;font-size:13px;padding:0;margin:0;border:0;line-height:15px;text-decoration:none;color:#999;font-family:Lato,sans-serif;cursor:pointer}#wpcomm .wc-label-reply-notify,#wpcomm .wc-notification-none{display:inline;font-size:13px;padding:0;margin:0;border:0;line-height:15px;text-decoration:none;color:#999;font-family:Lato,sans-serif;cursor:pointer}#wpcomm .wc-label-all-reply-notify{display:inline;font-size:13px;padding:0;margin:0;border:0;line-height:15px;text-decoration:none;color:#999;font-family:Lato,sans-serif;cursor:pointer}#wpcomm .wc-field-captcha .wc-label{font-size:14px;padding:5px;text-align:center;display:inline}#wpcomm input[type="text"],#wpcomm input[type="email"],#wpcomm input[type="url"],#wpcomm textarea{font-size:14px;color:#777;font-family:Lato,sans-serif;box-sizing:border-box;margin:0;clear:both;float:none;display:inline}#wpcomm .wc-copyright{margin:0 0 0 auto;text-align:right;display:block;padding-top:2px}#wpcomm .wc-copyright a{font-size:9px;color:#aaa;cursor:help;text-decoration:none;margin:0;padding:0;border:0}#wpcomm .wc-thread-wrapper{padding:10px 0;margin-bottom:10px}#wpcomm .wc-comment{margin-bottom:13px}#wpcomm .wc-comment .wc-field-submit{padding:5px 0 5px 0}#wpcomm .wc-comment .wc-form-wrapper{padding:10px 10px 7px 10px}#wpcomm .wc-comment .wc-comment-left{width:62px;float:left;position:absolute;text-align:center;font-family:Lato,sans-serif;line-height:16px}#wpcomm .wc-comment .wc-comment-right{margin-left:70px;border:#f5f5f5 1px solid;padding:10px 10px 3px 10px}#wpcomm .wc-reply .wc-comment-right{margin-left:70px;border:#f5f5f5 1px solid;padding:10px 10px 3px 10px}#wpcomm .wc-reply{margin-top:10px;margin-bottom:0;margin-left:40px}#wpcomm .wc-must-login{margin:0;font-size:14px;line-height:16px;padding:10px;text-align:center}#wpcomm hr{background-color:rgba(0,0,0,0.1);border:0 none;height:1px;margin:10px 0}#wpcomm .avatar{border:1px solid rgba(0,0,0,0.1);padding:2px;margin:0 auto;float:none;display:inline;width:48px;height:auto}#wpcomm .wc-form-wrapper .avatar{margin-top:3px}#wpcomm .wc-comment-text{text-align:left;padding-bottom:5px;line-height:20px;white-space:-moz-pre-wrap;white-space:-pre-wrap;white-space:-o-pre-wrap;word-wrap:break-word}#wpcomm .wc-comment-text img{max-width:90%;height:auto}#wpcomm .wc-comment-header{margin-bottom:7px;font-family:Lato,sans-serif}#wpcomm .wc-comment-author{font-size:16px;width:40%;float:left;white-space:nowrap}#wpcomm .wc-comment-author a{font-size:16px;white-space:nowrap;text-decoration:none}#wpcomm .wc-comment-label{color:#fff;padding:2px 5px;font-size:12px;margin:4px auto;text-align:center;display:table;line-height:16px}#wpcomm .wc-comment-date{font-size:12px;color:#999;float:right;text-align:right;white-space:nowrap;line-height:27px}#wpcomm .wc-comment-footer{font-size:12px;font-weight:normal;color:#999;margin-top:12px;min-height:28px;font-family:Lato,sans-serif}#wpcomm .wc-comment-footer a,#wpcomm .wc-comment-footer span.wc_editable_comment,#wpcomm .wc-comment-footer span.wc_save_edited_comment,#wpcomm span.wc_cancel_edit{text-decoration:none;font-size:13px;font-weight:bold;cursor:pointer}#wpcomm .wc-comment-footer .share_buttons_box img{vertical-align:middle}#wpcomm .wc-comment-footer .wc-voted{color:#666;cursor:default}#wpcomm .wc-comment-footer .wc-vote-img-up{padding:0;margin:0 0 -2px 0;vertical-align:baseline;display:inline;float:none;clear:both;border:0;background:transparent;width:16px;height:16px;border-radius:0;box-shadow:none;box-sizing:border-box}#wpcomm .wc-comment-footer .wc-vote-img-down{padding:0;margin:0 0 -6px 0;vertical-align:baseline;display:inline;float:none;clear:both;border:0;background:transparent;width:16px;height:16px;border-radius:0;box-shadow:none;box-sizing:border-box}#wpcomm .wc-comment-footer .wc-vote-result{padding:2px 6px 2px 5px;color:#fff;font-size:12px;font-weight:bold;display:inline;margin-right:5px}#wpcomm .wc-toggle{float:right;text-align:right;padding-right:0;margin-right:0;color:#999;cursor:pointer;font-size:12px;white-space:nowrap}#wpcomm .wpdiscuz-item{background:0;border-radius:0;box-shadow:none}#wc_response_info img{margin:0 auto 0 auto;box-shadow:none}#wpcomm .share_buttons_box img{display:inline!important;width:16px;height:16px}#wpcomm .wc-captcha-label img{display:inline!important;border:0;padding:0 0 0 2px;margin:0;vertical-align:middle}#wpcomm .wc-reply-link,#wpcomm .wc-vote-link,#wpcomm .wc-share-link{cursor:pointer;font-size:13px;font-weight:bold}#wpcomm .wc-form-footer,#wpcomm .wc-secondary-forms-wrapper{display:none}#wpcomm .wc-field-captcha .wc-captcha-label{padding:0;display:inline-block}#wpcomm .wc_captcha_refresh_img{cursor:pointer;margin-left:3px}#wpcomm .share_buttons_box{display:none}#wpcomm .wc-comment.wc-no-left-margin{margin-left:0!important}div.wc_modal{background:none repeat scroll 0 0 #ededed;color:#444;font-size:18px;font-weight:normal;padding:45px 10px 50px 10px!important;text-align:center;line-height:25px}.wc-load-more-submit-wrap{width:100%;text-align:center;margin-bottom:20px;margin-top:25px}.wc-load-more-submit{width:auto!important;padding:10px 20px;text-align:center;background-color:#fafafa;border-radius:3px;color:#555;cursor:pointer}.wc-load-more-submit:hover{background-image:-moz-linear-gradient(center top,#f4f4f4,#e6e6e6);background-repeat:repeat-x;box-shadow:0 1px 2px rgba(64,64,64,0.1);color:#7c7c7c}#wc_openModalFormAction>div#wc_response_info{width:200px;background:none repeat scroll 0 0 #ededed;color:#444;font-size:18px;font-weight:normal;padding:45px 10px 50px 10px!important;text-align:center;line-height:25px}#wc_openModalFormAction>div#wc_response_info a.close{background-position-x:right;background-position-y:top}#wpcomm #bywpdiscuz{display:none}#wpcomm .by-wpdiscuz{text-align:right;border-top:#ddd solid 1px;padding:1px 1px 1px 1px}#wpcomm .by-wpdiscuz a{font-size:11px;font-weight:bold;text-align:right;color:#ccc;padding:1px;margin:0;line-height:12px;border:0;text-decoration:none}#wpcomm .wpdimg{border:0;padding:0;margin:0;height:12px;cursor:pointer;display:inline;clear:both}#wc_unsubscribe_message{margin:10px auto 1px auto;padding:10px;text-align:center;border:#0d0 1px dotted;background:#cfc}.wc_unsubscribe_message{font-size:14px;color:#444}#wpcomm .wc_comment_level-3{margin-left:40px!important}#wpcomm .wc_comment_level-4{margin-left:40px!important}#wpcomm .wc_comment_level-5{margin-left:40px!important}#wpcomm .wc_editable_div{-moz-appearance:textfield-multiline;-webkit-appearance:textarea;border:1px solid #ccc;border-radius:0;font:medium -moz-fixed;font:-webkit-small-control;overflow:auto;resize:both;box-sizing:border-box;height:46px;max-width:100%;min-height:46px!important;padding:5px;width:100%}#wpcomm .wc_cancel_edit{display:none}#wpcomm .wc-comment-text p{margin-bottom:10px}#wpcomm .wc-comment-right textarea.wc_edit_comment{height:80px;max-height:200px}#wpcomm .wc_social_plugin_wrapper{width:auto}#wpcomm .wc_social_plugin_wrapper .wp-social-login-connect-with{float:left;font-size:13px;padding:2px 7px 0 0;text-transform:uppercase}#wpcomm .wc_social_plugin_wrapper .wp-social-login-provider-list{padding:1px;text-align:left;margin-bottom:-10px}#wpcomm .wc-secondary-forms-social-content .wp-social-login-provider-list{padding:1px;text-align:right}#wpcomm .wc-secondary-forms-social-content .wp-social-login-provider-list img{width:20px;height:20px;float:none;display:inline;border:0}#wpcomm .wc_social_plugin_wrapper .wp-social-login-provider-list img{width:24px;height:24px;float:none;display:inline;border:0}#wpcomm .wc-form-wrapper{clear:both}#wpcomm .wc_comm_form .wc_secondary_form{clear:both}#wpcomm .wc_comm_form .wc-field-comment{clear:both}#wpcomm .wc_social_plugin_wrapper .social_connect_ui{padding:0;clear:both;margin:0;margin-top:-20px;margin-bottom:-10px}#wpcomm .wc_social_plugin_wrapper .comment-form-social-connect{display:inherit;padding:0;margin:0;float:left;line-height:35px;padding-right:10px}#wpcomm .wc_social_plugin_wrapper .social_connect_form img{width:24px;height:24px;float:none;display:inline;border:0}#wpcomm .wc_social_plugin_wrapper .social_connect_form{float:left;line-height:35px;text-align:left;vertical-align:middle}#wpcomm .wc_social_plugin_wrapper .comment-form-social-connect label{display:inherit;padding:0;margin:0;font-style:normal;font-weight:normal;border:0;font-size:13px;text-transform:uppercase}#social_connect_facebook_auth,#social_connect_twitter_auth,#social_connect_google_auth,#social_connect_google_plus_auth,#social_connect_yahoo_auth,#social_connect_wordpress_auth{clear:both;padding:0;margin:0}#wpcomm .wc-secondary-forms-social-content .social_connect_ui{padding:0;clear:both;margin:0;text-align:right}#wpcomm .wc-secondary-forms-social-content .comment-form-social-connect{display:inherit;padding:0;margin:0;float:left;line-height:35px;padding-right:10px}#wpcomm .wc-secondary-forms-social-content .social_connect_form img{width:24px;height:24px;float:none;display:inline;border:0}#wpcomm .wc-secondary-forms-social-content .social_connect_form{float:left;width:100%;text-align:right;padding:0 0 5px 0;line-height:20px;vertical-align:middle}#wpcomm .wc-secondary-forms-social-content .comment-form-social-connect label{display:inherit;padding:0;margin:0;font-style:normal;font-weight:normal;border:0;font-size:13px;text-transform:uppercase}#wpcomm .wc_social_plugin_wrapper .wp-social-login-connect-with_by_the_champ{float:left;font-size:13px;padding:5px 7px 0 0;text-transform:uppercase}#wpcomm .wc_social_plugin_wrapper ul.wc_social_login_by_the_champ{list-style:none outside none!important;margin:0!important;padding-left:0!important}#wpcomm .wc_social_plugin_wrapper ul.wc_social_login_by_the_champ .theChampLoginButton{width:24px!important;height:24px!important}#wpcomm .wc-secondary-forms-social-content ul.wc_social_login_by_the_champ{list-style:none outside none!important;margin:0!important;padding-left:0!important}#wpcomm .wc-secondary-forms-social-content ul.wc_social_login_by_the_champ .theChampLoginButton{width:24px!important;height:24px!important}#wpcomm .wc-secondary-forms-social-content ul.wc_social_login_by_the_champ li{float:right!important} #wpcomm .wc_social_plugin_wrapper .theChampFacebookButton{ display:block!important; } #wpcomm .theChampTwitterButton{background-position:-4px -68px!important}#wpcomm .theChampGoogleButton{background-position:-36px -2px!important}#wpcomm .theChampVkontakteButton{background-position:-35px -67px!important}#wpcomm .theChampLinkedinButton{background-position:-34px -34px!important}#wpcomm input[type="text"], #wpcomm input[type="email"], #wpcomm input[type="password"], #wpcomm input[type="url"]{ line-height: inherit!important;}#wpcomm .wc-form-wrapper{ clear: both; } #wpcomm .wc-comment-text ol li, #wpcomm .wc-comment-text ul li{ margin-left:20px; } #wpcomm .wc-comment-text blockquote { font-size: inherit; line-height: inherit; margin-bottom: 1em; margin-left: 1em; padding-left: 1em; }
|
1 |
+
#wc-comment-header{padding:20px 5px 1px 5px;display:block;float:none;clear:both;font-size:18px}#wpcomm form div{box-sizing:inherit}#wpcomm form .wpdiscuz-item{display:block;height:auto}.wpdiscuz-item input{border-radius:0;height:auto;width:auto}#wpcomm{margin:15px 5px;padding:1px 0 10px 0;border-top:#ddd solid 1px}#wpcomm form{margin:0;padding:0;background:0;border:0;width:auto!important}#wpcomm form div{margin:0}#wc_show_hide_loggedin_username{padding:10px 5px 5px 5px;font-size:13px}#wpcomm .wc_new_comment_and_replies{margin:0;padding:0;width:100%;height:auto;background:transparent}#wpcomm .wc_new_comment_and_replies .wc_new_comment{float:right;display:none;padding:3px 10px;font-size:12px;margin:1px 0 1px 3px;cursor:pointer;color:#fff;line-height:15px}#wpcomm .wc_new_comment_and_replies .wc_new_reply{float:right;display:none;padding:3px 10px;font-size:12px;margin:1px 0 1px 1px;cursor:pointer;color:#fff;line-height:15px}#wpcomm .wc-comment-bar{width:100%;padding:0;display:block}#wpcomm .wc-comment-title{margin:0;line-height:18px;font-weight:bold;padding:10px;margin-bottom:10px;font-size:13px;text-align:right;border-bottom:#ccc dotted 1px;padding-bottom:10px}#wpcomm .wc-form-wrapper{padding:10px;margin-top:20px;border:1px solid #f1f1f1}#wpcomm .wc-author-data{margin-bottom:3px}#wpcomm .wc-field-submit{padding:5px 0 13px 0}#wpcomm .wc-field-name{width:49%;float:left}#wpcomm .wc-field-email{width:49%;float:right;text-align:right}#wpcomm .wc-field-comment{margin:5px auto 1px auto}#wpcomm .wc-field-comment .wc-field-avatararea{width:60px;float:left}#wpcomm .wc-field-comment .wc-field-textarea{margin-left:65px}#wpcomm .wc-field-captcha{width:49%;float:left;margin:0;height:auto!important}#wpcomm .wc-field-submit{width:49%;float:right;text-align:right;margin:0}#wpcomm .wc-field-website{width:100%;padding:0 0 10px 0;margin:0;display:block}#wpcomm .wc-field-name input[type="text"]{width:99%;max-width:100%;padding:3px 5px;font-size:14px;margin:0;height:29px}#wpcomm .wc-field-website input[type="url"],#wpcomm .wc-field-website input[type="text"]{width:100%;max-width:100%;padding:3px 5px;font-size:14px;margin:0;height:29px}#wpcomm .wc-field-email input[type="email"]{width:100%;max-width:100%;padding:3px 5px;font-size:14px;margin:0;height:29px}#wpcomm .wc-field-captcha input[type="text"]{max-width:45%;min-width:85px;padding:3px 5px;font-size:14px;margin:0 5px 2px 0;height:27px}@media screen and (max-width:1000px){#wpcomm .wc-field-captcha input[type="text"]{max-width:45%;min-width:90px}}@media screen and (max-width:850px){#wpcomm .wc-field-captcha input[type="text"]{max-width:35%;min-width:90px}}@media screen and (max-width:790px){#wpcomm .wc-field-captcha input[type="text"]{max-width:30%;min-width:80px}}@media screen and (max-width:690px){#wpcomm .wc-field-captcha input[type="text"]{max-width:30%;min-width:80px}}#wpcomm .wc-field-submit input[type="submit"]{margin:1px}#wpcomm .wc-field-submit input[type="button"]{margin:1px;border:#ddd 1px solid;font-size:13px;line-height:16px;padding:6px 15px;clear:both;float:none}#wpcomm .captcha_msg{color:#999;font-family:Lato,sans-serif;font-size:13px;line-height:18px;display:block;clear:both;padding:5px 0 0 0}#wpcomm .wc-field-comment textarea,#wpcomm .wc-comment .wc-comment-right textarea{width:100%;max-width:100%;height:48px;min-height:48px!important;padding:5px;box-sizing:border-box;border-radius:0}#wpcomm .wc-label{display:block;font-size:14px;padding:5px}#wpcomm .wc_manage_subscribtions{cursor:pointer;padding:0 0 5px 0;display:block;font-size:13px;line-height:16px;font-family:Lato,sans-serif}#wpcomm .wc_notification_checkboxes{padding:7px 0 7px 0;text-align:left;display:none;border-top:1px dotted #ddd;line-height:18px;font-size:13px}#wpcomm .wc_notification_checkboxes input[type="checkbox"],#wpcomm .wc_notification_checkboxes input[type="radio"]{overflow:none;width:inherit;font-size:13px;margin:0;padding:0;display:inline;clear:both;float:none;max-height:20px;margin:0 3px}#wpcomm .wc_notification_checkboxes label{clear:both;float:none;font-weight:normal}#wpcomm .wc-label-comment-notify{display:inline;font-size:13px;padding:0;margin:0;border:0;line-height:15px;text-decoration:none;color:#999;font-family:Lato,sans-serif;cursor:pointer}#wpcomm .wc-label-reply-notify,#wpcomm .wc-notification-none{display:inline;font-size:13px;padding:0;margin:0;border:0;line-height:15px;text-decoration:none;color:#999;font-family:Lato,sans-serif;cursor:pointer}#wpcomm .wc-label-all-reply-notify{display:inline;font-size:13px;padding:0;margin:0;border:0;line-height:15px;text-decoration:none;color:#999;font-family:Lato,sans-serif;cursor:pointer}#wpcomm .wc-field-captcha .wc-label{font-size:14px;padding:5px;text-align:center;display:inline}#wpcomm input[type="text"],#wpcomm input[type="email"],#wpcomm input[type="url"],#wpcomm textarea{font-size:14px;color:#777;font-family:Lato,sans-serif;box-sizing:border-box;margin:0;clear:both;float:none;display:inline}#wpcomm .wc-copyright{margin:0 0 0 auto;text-align:right;display:block;padding-top:2px}#wpcomm .wc-copyright a{font-size:9px;color:#aaa;cursor:help;text-decoration:none;margin:0;padding:0;border:0}#wpcomm .wc-thread-wrapper{padding:10px 0;margin-bottom:10px}#wpcomm .wc-comment{margin-bottom:13px}#wpcomm .wc-comment .wc-field-submit{padding:5px 0 5px 0}#wpcomm .wc-comment .wc-form-wrapper{padding:10px 10px 7px 10px}#wpcomm .wc-comment .wc-comment-left{width:62px;float:left;position:absolute;text-align:center;font-family:Lato,sans-serif;line-height:16px}#wpcomm .wc-comment .wc-comment-right{margin-left:70px;border:#f5f5f5 1px solid;padding:10px 10px 3px 10px}#wpcomm .wc-reply .wc-comment-right{margin-left:70px;border:#f5f5f5 1px solid;padding:10px 10px 3px 10px}#wpcomm .wc-reply{margin-top:10px;margin-bottom:0;margin-left:40px}#wpcomm .wc-must-login{margin:0;font-size:14px;line-height:16px;padding:10px;text-align:center}#wpcomm hr{background-color:rgba(0,0,0,0.1);border:0 none;height:1px;margin:10px 0}#wpcomm .avatar{border:1px solid rgba(0,0,0,0.1);padding:2px;margin:0 auto;float:none;display:inline;width:48px;height:auto}#wpcomm .wc-form-wrapper .avatar{margin-top:3px}#wpcomm .wc-comment-text{text-align:left;padding-bottom:5px;line-height:20px;white-space:-moz-pre-wrap;white-space:-pre-wrap;white-space:-o-pre-wrap;word-wrap:break-word}#wpcomm .wc-comment-text img{max-width:90%;height:auto}#wpcomm .wc-comment-header{margin-bottom:7px;font-family:Lato,sans-serif}#wpcomm .wc-comment-author{font-size:16px;width:40%;float:left;white-space:normal}#wpcomm .wc-comment-author a{font-size:16px;white-space:normal;text-decoration:none}#wpcomm .wc-comment-label{color:#fff;padding:2px 5px;font-size:12px;margin:4px auto;text-align:center;display:table;line-height:16px}#wpcomm .wc-comment-date{font-size:12px;color:#999;float:right;text-align:right;white-space:nowrap;line-height:27px}#wpcomm .wc-comment-footer{font-size:12px;font-weight:normal;color:#999;margin-top:12px;min-height:28px;font-family:Lato,sans-serif}#wpcomm .wc-comment-footer a,#wpcomm .wc-comment-footer span.wc_editable_comment,#wpcomm .wc-comment-footer span.wc_save_edited_comment,#wpcomm span.wc_cancel_edit{text-decoration:none;font-size:13px;font-weight:bold;cursor:pointer}#wpcomm .wc-comment-footer .share_buttons_box img{vertical-align:middle}#wpcomm .wc-comment-footer .wc-voted{color:#666;cursor:default}#wpcomm .wc-comment-footer .wc-vote-img-up{padding:0;margin:0 0 -2px 0;vertical-align:baseline;display:inline;float:none;clear:both;border:0;background:transparent;width:16px;height:16px;border-radius:0;box-shadow:none;box-sizing:border-box}#wpcomm .wc-comment-footer .wc-vote-img-down{padding:0;margin:0 0 -6px 0;vertical-align:baseline;display:inline;float:none;clear:both;border:0;background:transparent;width:16px;height:16px;border-radius:0;box-shadow:none;box-sizing:border-box}#wpcomm .wc-comment-footer .wc-vote-result{padding:2px 6px 2px 5px;color:#fff;font-size:12px;font-weight:bold;display:inline;margin-right:5px}#wpcomm .wc-toggle{float:right;text-align:right;padding-right:0;margin-right:0;color:#999;cursor:pointer;font-size:12px;white-space:nowrap}#wpcomm .wpdiscuz-item{background:0;border-radius:0;box-shadow:none}#wc_response_info img{margin:0 auto 0 auto;box-shadow:none}#wpcomm .share_buttons_box img{display:inline!important;width:16px;height:16px}#wpcomm .wc-captcha-label img{display:inline!important;border:0;padding:0 0 0 2px;margin:0;vertical-align:middle}#wpcomm .wc-reply-link,#wpcomm .wc-vote-link,#wpcomm .wc-share-link{cursor:pointer;font-size:13px;font-weight:bold}#wpcomm .wc-form-footer,#wpcomm .wc-secondary-forms-wrapper{display:none}#wpcomm .wc-field-captcha .wc-captcha-label{padding:0;display:inline-block}#wpcomm .wc_captcha_refresh_img{cursor:pointer;margin-left:3px}#wpcomm .share_buttons_box{display:none}#wpcomm .wc-comment.wc-no-left-margin{margin-left:0!important}div.wc_modal{background:none repeat scroll 0 0 #ededed;color:#444;font-size:18px;font-weight:normal;padding:45px 10px 50px 10px!important;text-align:center;line-height:25px}.wc-load-more-submit-wrap{width:100%;text-align:center;margin-bottom:20px;margin-top:25px}.wc-load-more-submit{width:auto!important;padding:10px 20px;text-align:center;background-color:#fafafa;border-radius:3px;color:#555;cursor:pointer}.wc-load-more-submit:hover{background-image:-moz-linear-gradient(center top,#f4f4f4,#e6e6e6);background-repeat:repeat-x;box-shadow:0 1px 2px rgba(64,64,64,0.1);color:#7c7c7c}#wc_openModalFormAction>div#wc_response_info{width:200px;background:none repeat scroll 0 0 #ededed;color:#444;font-size:18px;font-weight:normal;padding:45px 10px 50px 10px!important;text-align:center;line-height:25px}#wc_openModalFormAction>div#wc_response_info a.close{background-position-x:right;background-position-y:top}#wpcomm #bywpdiscuz{display:none}#wpcomm .by-wpdiscuz{text-align:right;border-top:#ddd solid 1px;padding:1px 1px 1px 1px}#wpcomm .by-wpdiscuz a{font-size:11px;font-weight:bold;text-align:right;color:#ccc;padding:1px;margin:0;line-height:12px;border:0;text-decoration:none}#wpcomm .wpdimg{border:0;padding:0;margin:0;height:12px;cursor:pointer;display:inline;clear:both}#wc_unsubscribe_message{margin:10px auto 1px auto;padding:10px;text-align:center;border:#0d0 1px dotted;background:#cfc}.wc_unsubscribe_message{font-size:14px;color:#444}#wpcomm .wc_comment_level-3{margin-left:40px!important}#wpcomm .wc_comment_level-4{margin-left:40px!important}#wpcomm .wc_comment_level-5{margin-left:40px!important}#wpcomm .wc_editable_div{-moz-appearance:textfield-multiline;-webkit-appearance:textarea;border:1px solid #ccc;border-radius:0;font:medium -moz-fixed;font:-webkit-small-control;overflow:auto;resize:both;box-sizing:border-box;height:46px;max-width:100%;min-height:46px!important;padding:5px;width:100%}#wpcomm .wc_cancel_edit{display:none}#wpcomm .wc-comment-text p{margin-bottom:10px}#wpcomm .wc-comment-right textarea.wc_edit_comment{height:80px;max-height:200px}#wpcomm .wc_social_plugin_wrapper{width:auto}#wpcomm .wc_social_plugin_wrapper .wp-social-login-connect-with{float:left;font-size:13px;padding:2px 7px 0 0;text-transform:uppercase}#wpcomm .wc_social_plugin_wrapper .wp-social-login-provider-list{padding:1px;text-align:left;margin-bottom:-10px}#wpcomm .wc-secondary-forms-social-content .wp-social-login-provider-list{padding:1px;text-align:right}#wpcomm .wc-secondary-forms-social-content .wp-social-login-provider-list img{width:20px;height:20px;float:none;display:inline;border:0}#wpcomm .wc_social_plugin_wrapper .wp-social-login-provider-list img{width:24px;height:24px;float:none;display:inline;border:0}#wpcomm .wc-form-wrapper{clear:both}#wpcomm .wc_comm_form .wc_secondary_form{clear:both}#wpcomm .wc_comm_form .wc-field-comment{clear:both}#wpcomm .wc_social_plugin_wrapper .social_connect_ui{padding:0;clear:both;margin:0;margin-top:-20px;margin-bottom:-10px}#wpcomm .wc_social_plugin_wrapper .comment-form-social-connect{display:inherit;padding:0;margin:0;float:left;line-height:35px;padding-right:10px}#wpcomm .wc_social_plugin_wrapper .social_connect_form img{width:24px;height:24px;float:none;display:inline;border:0}#wpcomm .wc_social_plugin_wrapper .social_connect_form{float:left;line-height:35px;text-align:left;vertical-align:middle}#wpcomm .wc_social_plugin_wrapper .comment-form-social-connect label{display:inherit;padding:0;margin:0;font-style:normal;font-weight:normal;border:0;font-size:13px;text-transform:uppercase}#social_connect_facebook_auth,#social_connect_twitter_auth,#social_connect_google_auth,#social_connect_google_plus_auth,#social_connect_yahoo_auth,#social_connect_wordpress_auth{clear:both;padding:0;margin:0}#wpcomm .wc-secondary-forms-social-content .social_connect_ui{padding:0;clear:both;margin:0;text-align:right}#wpcomm .wc-secondary-forms-social-content .comment-form-social-connect{display:inherit;padding:0;margin:0;float:left;line-height:35px;padding-right:10px}#wpcomm .wc-secondary-forms-social-content .social_connect_form img{width:24px;height:24px;float:none;display:inline;border:0}#wpcomm .wc-secondary-forms-social-content .social_connect_form{float:left;width:100%;text-align:right;padding:0 0 5px 0;line-height:20px;vertical-align:middle}#wpcomm .wc-secondary-forms-social-content .comment-form-social-connect label{display:inherit;padding:0;margin:0;font-style:normal;font-weight:normal;border:0;font-size:13px;text-transform:uppercase}#wpcomm .wc_social_plugin_wrapper .wp-social-login-connect-with_by_the_champ{float:left;font-size:13px;padding:5px 7px 0 0;text-transform:uppercase}#wpcomm .wc_social_plugin_wrapper ul.wc_social_login_by_the_champ{list-style:none outside none!important;margin:0!important;padding-left:0!important}#wpcomm .wc_social_plugin_wrapper ul.wc_social_login_by_the_champ .theChampLogin{width:24px!important;height:24px!important}#wpcomm .wc-secondary-forms-social-content ul.wc_social_login_by_the_champ{list-style:none outside none!important;margin:0!important;padding-left:0!important}#wpcomm .wc-secondary-forms-social-content ul.wc_social_login_by_the_champ .theChampLogin{width:24px!important;height:24px!important}#wpcomm .wc-secondary-forms-social-content ul.wc_social_login_by_the_champ li{float:right!important} #wpcomm .wc_social_plugin_wrapper .theChampFacebookButton{ display:block!important; } #wpcomm .theChampTwitterButton{background-position:-4px -68px!important}#wpcomm .theChampGoogleButton{background-position:-36px -2px!important}#wpcomm .theChampVkontakteButton{background-position:-35px -67px!important}#wpcomm .theChampLinkedinButton{background-position:-34px -34px!important}#wpcomm input[type="text"], #wpcomm input[type="email"], #wpcomm input[type="password"], #wpcomm input[type="url"]{ line-height: inherit!important;}#wpcomm .wc-form-wrapper{ clear: both; } #wpcomm .wc-comment-text ol li, #wpcomm .wc-comment-text ul li{ margin-left:20px; } #wpcomm .wc-comment-text blockquote { font-size: inherit; line-height: inherit; margin-bottom: 1em; margin-left: 1em; padding-left: 1em; }
|
files/js/wc-ajax.js
CHANGED
@@ -47,6 +47,8 @@ jQuery(document).ready(function ($) {
|
|
47 |
$('.wc_social_plugin_wrapper .the_champ_login_container').clone().prependTo('#wc-secondary-forms-social-content-' + uniqueID);
|
48 |
} else if ($('.wc_social_plugin_wrapper .social_connect_form').length && !($('#wc-secondary-forms-social-content-' + uniqueID + ' .social_connect_form').length)) {
|
49 |
$('.wc_social_plugin_wrapper .social_connect_form').clone().prependTo('#wc-secondary-forms-social-content-' + uniqueID);
|
|
|
|
|
50 |
}
|
51 |
|
52 |
$('#wc-secondary-forms-wrapper-' + uniqueID).slideToggle(700);
|
47 |
$('.wc_social_plugin_wrapper .the_champ_login_container').clone().prependTo('#wc-secondary-forms-social-content-' + uniqueID);
|
48 |
} else if ($('.wc_social_plugin_wrapper .social_connect_form').length && !($('#wc-secondary-forms-social-content-' + uniqueID + ' .social_connect_form').length)) {
|
49 |
$('.wc_social_plugin_wrapper .social_connect_form').clone().prependTo('#wc-secondary-forms-social-content-' + uniqueID);
|
50 |
+
}else if ($('.wc_social_plugin_wrapper .oneall_social_login_providers').length && !($('#wc-secondary-forms-social-content-' + uniqueID + ' .oneall_social_login_providers').length)) {
|
51 |
+
$('.wc_social_plugin_wrapper .oneall_social_login .oneall_social_login_providers').clone().prependTo('#wc-secondary-forms-social-content-' + uniqueID);
|
52 |
}
|
53 |
|
54 |
$('#wc-secondary-forms-wrapper-' + uniqueID).slideToggle(700);
|
files/js/wc-ajax.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
jQuery(document).ready(function(f){var D=f("#wc_home_url").val();var t=f("#wc_plugin_dir_url").val();var v;var l;var k;var r;var C;var j;var g;var y;var h;var m;var z;var d;var o=parseInt(f("#wc_comment_list_update_type").val());var e=parseInt(f("#wc_comment_list_update_timer").val());var i;var H;f(".wc_comment").autoGrow();f(document).delegate("#wc_openModalFormAction","click",function(){f("#wc_openModalFormAction").css("opacity","0");f("#wc_openModalFormAction").css("pointer-events","none")});f(document).delegate("#wc_openModalFormAction .close","click",function(){f("#wc_openModalFormAction").css("opacity","0");f("#wc_openModalFormAction").css("pointer-events","none")});d="<img width='64' height='64' src='"+D+"/"+t+"/files/img/loader/ajax-loader-200x200.gif' />";m=f("#wc_comments_offset");m.val("1");f(document).delegate(".wc_comment","focus",function(){var I=a(f(this));f("#wc-form-footer-"+I).slideDown(700)});f(document).delegate(".wc-reply-link","click",function(){var I=a(f(this));if(f(".wc_social_plugin_wrapper .wp-social-login-provider-list").length&&!(f("#wc-secondary-forms-social-content-"+I+" .wp-social-login-provider-list").length)){f(".wc_social_plugin_wrapper .wp-social-login-provider-list").clone().prependTo("#wc-secondary-forms-social-content-"+I)}else{if(f(".wc_social_plugin_wrapper .the_champ_login_container").length&&!(f("#wc-secondary-forms-social-content-"+I+" .the_champ_login_container").length)){f(".wc_social_plugin_wrapper .the_champ_login_container").clone().prependTo("#wc-secondary-forms-social-content-"+I)}else{if(f(".wc_social_plugin_wrapper .social_connect_form").length&&!(f("#wc-secondary-forms-social-content-"+I+" .social_connect_form").length)){f(".wc_social_plugin_wrapper .social_connect_form").clone().prependTo("#wc-secondary-forms-social-content-"+I)}}}f("#wc-secondary-forms-wrapper-"+I).slideToggle(700)});f(document).delegate(".wc-share-link","click",function(){var I=a(f(this));f("#share_buttons_box-"+I).slideToggle(1000)});f(document).delegate(".wc_captcha_refresh_img","click",function(){var K=a(f(this));var I=f("#wc_comment_post_ID-"+K).val();var J=f("#wc_comment_parent-"+K).val();f("#wc_captcha_img-"+K).attr("src",D+"/"+t+"/captcha/captcha.php?comm_id="+I+"-"+J+"&r="+Math.random())});f(document).delegate(".wc_comm_submit","click",function(){h=f(this).attr("id");var L=h.substring(h.lastIndexOf("-")+1);v=f("#wc_name-"+L).val();l=f("#wc_email-"+L).val();r=(f("#wc_website-"+L).length)?f("#wc_website-"+L).val():"";k=f("textarea#wc_comment-"+L).val();C=f("#wc_captcha-"+L).val();j=f("#wc_comment_post_ID-"+L).val();g=f("#wc_comment_parent-"+L).val();y=f("#wc_comm_form-"+L);var M=f("input[name='wc_comment_reply_notification-"+L+"']:checked").length?f("input[name='wc_comment_reply_notification-"+L+"']:checked").val():"";var K="";if(c(h,j)){K=1}else{K=x(f(this).parents(".wc-comment"))}var I="";if(M.length&&M!="wc_notification_none"){if(M=="wc_notification_new_reply"){I="reply"}if(M=="wc_notification_all_new_reply"){I="all_comment"}if(M=="wc_notification_new_comment"){I="post"}}var J=true;if(!wpdiscuzValidator.checkAll(y)){J=false;f("#wc_captcha-"+L).val("");f("#wc_captcha_img-"+L).attr("src",D+"/"+t+"/captcha/captcha.php?comm_id="+j+"-"+g+"&r="+Math.random())}else{f("#wc_openModalFormAction .close").css("display","none");f("#wc_openModalFormAction").css("opacity","1");f("#wc_openModalFormAction").css("pointer-events","auto");f("#wc_openModalFormAction > #wc_response_info").html(d)}if(J){f.ajax({type:"POST",url:wc_ajax_obj.url,data:{name:v,email:l,website:r,comment:k,captcha:C,comment_post_ID:j,comment_parent:g,comment_depth:K,notification_type:I,action:"wc_comms_via_ajax"}}).done(function(N){f("#wc_captcha_img-"+L).attr("src",D+"/"+t+"/captcha/captcha.php?comm_id="+j+"-"+g+"&r="+Math.random());try{var Q=f.parseJSON(N);z=parseInt(Q.wc_new_comment_id);if(Q.code===-1){var O="<a href='#close' title='Close' class='close'> </a>";f("#wc_openModalFormAction").css("opacity","1");f("#wc_openModalFormAction").css("pointer-events","auto");f("#wc_openModalFormAction .close").css("display","block");f("#wc_openModalFormAction > #wc_response_info").html(O+Q.message)}else{if(Q.code===-2){var O="<a href='#close' title='Close' class='close'> </a>";f("#wc_openModalFormAction").css("opacity","1");f("#wc_openModalFormAction").css("pointer-events","auto");f("#wc_openModalFormAction .close").css("display","block");f("#wc_openModalFormAction > #wc_response_info").html(O+Q.message);f("#wc_comment-"+L).val("");f(".wc_comm_form textarea").css("height","46px");if(h==="wc_comm-"+j+"_0"){f("#wc-form-footer-"+L).slideToggle(700)}else{f("#wc-secondary-forms-wrapper-"+L).slideToggle(700)}f.cookie("wc_author_name",v);f.cookie("wc_author_email",l);f.cookie("wc_author_website",r)}else{i=Q.wc_all_comments_count_new;f("#wc_comment-"+L).val("");f(".wc_comm_form textarea").css("height","46px");if(h==="wc_comm-"+j+"_0"){f(".wc-thread-wrapper").prepend(Q.message);f("#wc-form-footer-"+L).slideToggle(700);f("#wc_curr_user_comment_count").val(parseInt(f("#wc_curr_user_comment_count").val())+1)}else{f("#wc-secondary-forms-wrapper-"+L).slideToggle(700);if(Q.is_in_same_container==1){f("#wc-secondary-forms-wrapper-"+L).after(Q.message)}else{f("#wc-secondary-forms-wrapper-"+L).after(Q.message.replace("wc-reply","wc-reply wc-no-left-margin"))}}f("#wc_openModalFormAction").css("opacity","0");f("#wc_openModalFormAction").css("pointer-events","none");f.cookie("wc_author_name",v);f.cookie("wc_author_email",l);f.cookie("wc_author_website",r);f("#wpcomm .wc_name").val(v);f("#wpcomm .wc_email").val(l);f("#wpcomm .wc_website").val(r);if(f(".wc_header_text_count").length){f(".wc_header_text_count").val(parseInt(f(".wc_header_text_count").val())+1)}f.cookie("wc_all_comments_count_new",i)}}f("#wc_captcha-"+L).val("");f(".wc_tooltipster").tooltipster({offsetY:2});f(".wc_comm_form input").css("box-shadow","0 0 4px -2px #d4d0ba");f(".wc_comm_form textarea").css("box-shadow","0 0 4px -2px #d4d0ba");b(j,z,l,I);if(Q.code==1||Q.code==-2){f.ajax({type:"POST",url:wc_ajax_obj.url,data:{wc_new_comment_id:z,action:"wpdiscuz_comment_redirect"}}).done(function(S){try{var R=f.parseJSON(S);if(R.code==1){setTimeout(function(){window.location.href=R.redirect_to},5000)}}catch(T){}})}}catch(P){f("#wc_captcha-"+L).val("");f(".wc_tooltipster").tooltipster({offsetY:2});f(".wc_comm_form input").css("box-shadow","0 0 4px -2px #d4d0ba");f(".wc_comm_form textarea").css("box-shadow","0 0 4px -2px #d4d0ba");var O="<a href='#close' title='Close' class='close'> </a>";f("#wc_openModalFormAction").css("opacity","1");f("#wc_openModalFormAction").css("pointer-events","auto");f("#wc_openModalFormAction .close").css("display","block");if(N.contains("<")&&N.contains(">")){f("#wc_openModalFormAction > #wc_response_info").html(O+P)}else{f("#wc_openModalFormAction > #wc_response_info").html(O+N)}}})}else{return false}});f(document).delegate(".wc_vote","click",function(){var K=a(f(this));var I=F(K);var J;f("#wc_openModalFormAction > #wc_response_info").html(d);f("#wc_openModalFormAction .close").css("display","block");f("#wc_openModalFormAction").css("opacity","1");f("#wc_openModalFormAction").css("pointer-events","auto");if(f(this).hasClass("wc-up")){J=1}else{J=-1}f.ajax({dateType:"json",type:"POST",url:wc_ajax_obj.url,data:{comment_ID:I,vote_type:J,action:"wc_vote_via_ajax"}}).done(function(L){var N=f.parseJSON(L);if(N.code!==-1){f("#vote-count-"+K).text(parseInt(f("#vote-count-"+K).text())+J);f("#wc_openModalFormAction").css("opacity","0");f("#wc_openModalFormAction").css("pointer-events","none")}else{var M="<a href='#close' title='Close' class='close'> </a>";f("#wc_response_info").html(M+N.message);f("#wc_openModalFormAction .close").css("display","block")}})});f(document).delegate(".wc-load-more-submit","click",function(){f("#wc_openModalFormAction > #wc_response_info").html(d);f("#wc_openModalFormAction .close").css("display","none");f("#wc_openModalFormAction").css("opacity","1");f("#wc_openModalFormAction").css("pointer-events","auto");var L=m.val();var M=E(f(this).attr("id"));var N=parseInt(f("#wc_parent_comments_count").val());var J=parseInt(f("#wc_parent_per_page").val());var K=(f("#wc_last_comment_id_before_update").val())?f("#wc_last_comment_id_before_update").val():0;var I=f("#wc_curr_user_comment_count").val();L=parseInt(L);L++;f.ajax({type:"POST",url:wc_ajax_obj.url,data:{comments_offset:L,wc_curr_user_comment_count:I,wc_post_id:M,wc_last_comment_id:K,action:"wc_load_more_comments"}}).done(function(O){var P=f.parseJSON(O);m.val(L);if(N<=(L*J)){f(".wc-load-more-submit-wrap").remove()}f(".wc-thread-wrapper").html(P.message);f("#wc_last_comment_id").val(P.wc_last_comment_id);f("#hidden_new_comment_count").val(P.hidden_new_comment_count);f("#wc_openModalFormAction").css("opacity","0");f("#wc_openModalFormAction").css("pointer-events","none");f(".wc_tooltipster").tooltipster({offsetY:2});s()})});f(document).delegate(".wc_new_comment","click",function(){h=f(".wc_main_comm_form input.wc_comm_submit").attr("id");var M=h.substring(h.lastIndexOf("-")+1);j=E(M);var K=f("#wc_last_new_comment_id").val();l=f.cookie("wc_author_email");var J=f("#wc_curr_user_comment_count").val();var L=m.val();var I="";f(".wc-thread-wrapper .wc-comment").each(function(){var N=f(this).attr("id");var O=N.substring(N.lastIndexOf("-")+1);I+=F(O)+","});f.ajax({type:"POST",url:wc_ajax_obj.url,data:{wc_requested_comments_type:1,wc_last_comment_id:K,wc_post_id:j,wc_author_email:l,wc_comments_offset:L,wc_curr_user_comment_count:J,wc_visible_comments_ids:I,action:"wc_list_new_comments"}}).done(function(N){try{var P=f.parseJSON(N);if(P.code!=0){f(".wc-thread-wrapper").html(P.message);f("#wc_last_new_comment_id").val(P.wc_last_comment_id);f(".wc_new_comment").hide();f(document).delegate(".wc_new_loaded_comment","mouseenter",function(){if(f(this).parent(".wc-comment").hasClass("wc-reply")){f(this,".wc-comment-right").animate({backgroundColor:"#f8f8f8"},1500)}else{f(this,".wc-comment-right").animate({backgroundColor:"#fefefe"},1500)}f(this,".wc-comment-right").removeClass("wc_new_loaded_comment")})}}catch(O){console.log(O)}})});f(document).delegate(".wc_new_reply","click",function(){h=f(".wc_main_comm_form input.wc_comm_submit").attr("id");var M=h.substring(h.lastIndexOf("-")+1);j=E(M);var K=f("#wc_last_new_reply_id").val();l=f.cookie("wc_author_email");var J=f("#wc_curr_user_comment_count").val();var L=m.val();var I="";f(".wc-thread-wrapper .wc-comment").each(function(){var N=f(this).attr("id");var O=N.substring(N.lastIndexOf("-")+1);I+=F(O)+","});f.ajax({type:"POST",url:wc_ajax_obj.url,data:{wc_requested_comments_type:2,wc_last_comment_id:K,wc_comments_offset:L,wc_curr_user_comment_count:J,wc_post_id:j,wc_author_email:l,wc_visible_comments_ids:I,action:"wc_list_new_comments"}}).done(function(N){try{var P=f.parseJSON(N);if(P.code!=0){f(".wc-thread-wrapper").html(P.message);f("#wc_last_new_reply_id").val(P.wc_last_comment_id);f(".wc_new_reply").hide()}}catch(O){console.log(O)}})});function a(J){var I=J.attr("id");var K=I.substring(I.lastIndexOf("-")+1);return K}function E(J){var I=J.substring(J.lastIndexOf("-")+1);I=I.substring(0,I.lastIndexOf("_"));return I}function F(J){var I=J.substring(J.indexOf("_")+1);return I}function x(K){var J=K.attr("class");var I=J.split(" ");var L="";f.each(I,function(M,N){if("wc_comment_level"===G(N,false)){L=G(N,true)}});return parseInt(L)+1}function G(I,J){var K="";if(J){K=I.substring(I.indexOf("-")+1)}else{K=I.substring(0,I.indexOf("-"))}return K}function c(J,I){return J==="wc_comm-"+I+"_0"}function q(){var I=f.cookie("wc_all_comments_count_new")?false:true;if(o==1){if(!u(I)){p()}}else{if(o==2){if(!u(I)){B()}}}}function p(){j=f("#wpdiscuz_current_post_id").val();var O=f("#wc_last_comment_id_before_update").val();var K=f("#wc_last_new_comment_id").val();var L=f("#wc_last_new_reply_id").val();var M=f("#wc_comments_offset").length?f("#wc_comments_offset").val():1;var N=f.cookie("wc_all_comments_count_old");var I=f("#wc_curr_user_comment_count").val();var J=f.cookie("wc_author_email");f.ajax({type:"POST",url:wc_ajax_obj.url,data:{wc_author_email:J,wc_curr_user_comment_count:I,wc_last_comment_id:O,wc_last_new_comment_id:K,wc_last_new_reply_id:L,wc_all_comments_count_old:N,wc_comments_offset:M,wc_comment_list_update_type:o,wc_post_id:j,action:"wc_live_update"}}).done(function(P){n(P)})}function B(){h=f(".wc_main_comm_form input.wc_comm_submit").attr("id");var N=h.substring(h.lastIndexOf("-")+1);j=E(N);g=F(N);var L=f("#wc_comments_offset").length?f("#wc_comments_offset").val():1;var I=f("#wc_curr_user_comment_count").val();var M=f("#wc_last_comment_id").val();var J=f("#wc_last_new_comment_id").val();var K=f("#wc_last_new_reply_id").val();l=f.cookie("wc_author_email");f.ajax({type:"POST",url:wc_ajax_obj.url,data:{wc_last_comment_id:M,wc_last_new_comment_id:J,wc_last_new_reply_id:K,wc_comment_list_update_type:o,wc_comments_offset:L,wc_curr_user_comment_count:I,wc_post_id:j,wc_author_email:l,action:"wc_live_update"}}).done(function(O){n(O)})}function n(I){try{var K=f.parseJSON(I);if(K.code==1){f(".wc-thread-wrapper").html(K.message);if(f(".wc_header_text_count").length){f(".wc_header_text_count").html(K.wc_all_comments_count_new)}f("#wc_last_comment_id").val(K.wc_last_comment_id)}else{if(K.code==2){if(K.wc_new_comment_count){f(".wc_new_comment_button_text").html(K.wc_new_comment_count+" "+K.wc_new_comment_button_text);f(".wc_new_comment").css("display","inline-block")}else{f(".wc_new_comment").css("display","none")}if(K.wc_new_reply_count){f(".wc_new_reply_button_text").html(K.wc_new_reply_count+" "+K.wc_new_reply_button_text);f(".wc_new_reply").css("display","inline-block")}else{f(".wc_new_reply").css("display","none")}}}s()}catch(J){console.log(J)}}function u(K){var J=f(".wc_secondary_form input.wc_field_input").is(":focus");var I=f(".wc_secondary_form textarea.wc_field_input").is(":focus");var M=false;var L=false;if(K){f(".wc_secondary_form input.wc_field_input").each(function(){if(f(this).val()!=""){M=true}})}else{f(".wc_secondary_form input.wc_field_captcha").each(function(){if(f(this).val()!=""){M=true}})}f(".wc_secondary_form textarea.wc_field_input").each(function(){if(f(this).val()!=""){L=true}});return J||I||M||L}if(o!=0){setInterval(q,e*1000)}function s(){if(f.cookie("wc_author_name")&&f.cookie("wc_author_email")){f(".wc_name").val(f.cookie("wc_author_name"));f(".wc_email").val(f.cookie("wc_author_email"))}}function b(J,L,I,K){f.ajax({type:"POST",url:wc_ajax_obj.url,data:{wc_post_id:J,wc_comment_id:L,wc_notifcattion_type:K,wc_email:I,action:"wc_check_notification_type"}})}f(document).delegate(".wc_editable_comment","click",function(){var J=a(f(this));var I=F(J);f.ajax({type:"POST",url:wc_ajax_obj.url,data:{comment_id:I,action:"wc_get_editable_comment_content"}}).done(function(L){try{var O=f.parseJSON(L);if(O.code==1){H=O.message;var K='<textarea required="required" name="wc_comment" class="wc_comment wc_field_input wc_edit_comment" id="wc_edit_comment-'+J+'" style="min-height: 2em;">'+O.message+"</textarea>";f("#wc-comm-"+J+" > .wc-comment-right .wc-comment-text").replaceWith(K);document.getElementById("wc_edit_comment-"+J).focus();f("#wc_save_edited_comment-"+J).show();K="";f("#wc_editable_comment-"+J).hide();f("#wc_cancel_edit-"+J).show()}else{var M="<a href='#close' title='Close' class='close'> </a>";f("#wc_openModalFormAction").css("opacity","1");f("#wc_openModalFormAction").css("pointer-events","auto");f("#wc_openModalFormAction .close").css("display","block");f("#wc_openModalFormAction > #wc_response_info").html(M+O.phrase_message)}}catch(N){console.log(N)}})});f(document).delegate(".wc_save_edited_comment","click",function(){var N=a(f(this));var J=F(N);var I=f("#wc-comm-"+N+" textarea#wc_edit_comment-"+N);var K=I.val();var L=true;var M=x(f(this).parents(".wc-comment"))-1;if(f.trim(K).length<=0){L=false}if(L){f("#wc_openModalFormAction .close").css("display","none");f("#wc_openModalFormAction").css("opacity","1");f("#wc_openModalFormAction").css("pointer-events","auto");f("#wc_openModalFormAction > #wc_response_info").html(d);f.ajax({type:"POST",url:wc_ajax_obj.url,data:{comment_id:J,comment_content:K,comment_depth:M,action:"wc_save_edited_comment"}}).done(function(O){try{var R=f.parseJSON(O);if(R.code==1){f("#wc_openModalFormAction").css("opacity","0");f("#wc_openModalFormAction").css("pointer-events","none");A(N,R.message)}else{var P="<a href='#close' title='Close' class='close'> </a>";f("#wc_openModalFormAction").css("opacity","1");f("#wc_openModalFormAction").css("pointer-events","auto");f("#wc_openModalFormAction .close").css("display","block");f("#wc_openModalFormAction > #wc_response_info").html(P+R.phrase_message)}I="";K=""}catch(Q){console.log(Q)}})}});f(document).delegate(".wc_cancel_edit","click",function(){var I=a(f(this));A(I,H)});function A(K,J){f("#wc_editable_comment-"+K).show();f("#wc_cancel_edit-"+K).hide();f("#wc_save_edited_comment-"+K).hide();var I='<div class="wc-comment-text">'+w(J)+"</div>";f("#wc-comm-"+K+" #wc_edit_comment-"+K).replaceWith(I)}function w(L,K){var J=(K||typeof K==="undefined")?"<br/>":"<br>";var I=(L+"").replace(/([^>\r\n]?)(\r\n|\n\r|\r|\n)/g,"$1"+J+"$2");return I.replace("<br><br>","<br/>")}f(".wc_tooltipster").tooltipster({offsetY:2})});
|
1 |
+
jQuery(document).ready(function(f){var D=f("#wc_home_url").val();var t=f("#wc_plugin_dir_url").val();var v;var l;var k;var r;var C;var j;var g;var y;var h;var m;var z;var d;var o=parseInt(f("#wc_comment_list_update_type").val());var e=parseInt(f("#wc_comment_list_update_timer").val());var i;var H;f(".wc_comment").autoGrow();f(document).delegate("#wc_openModalFormAction","click",function(){f("#wc_openModalFormAction").css("opacity","0");f("#wc_openModalFormAction").css("pointer-events","none")});f(document).delegate("#wc_openModalFormAction .close","click",function(){f("#wc_openModalFormAction").css("opacity","0");f("#wc_openModalFormAction").css("pointer-events","none")});d="<img width='64' height='64' src='"+D+"/"+t+"/files/img/loader/ajax-loader-200x200.gif' />";m=f("#wc_comments_offset");m.val("1");f(document).delegate(".wc_comment","focus",function(){var I=a(f(this));f("#wc-form-footer-"+I).slideDown(700)});f(document).delegate(".wc-reply-link","click",function(){var I=a(f(this));if(f(".wc_social_plugin_wrapper .wp-social-login-provider-list").length&&!(f("#wc-secondary-forms-social-content-"+I+" .wp-social-login-provider-list").length)){f(".wc_social_plugin_wrapper .wp-social-login-provider-list").clone().prependTo("#wc-secondary-forms-social-content-"+I)}else{if(f(".wc_social_plugin_wrapper .the_champ_login_container").length&&!(f("#wc-secondary-forms-social-content-"+I+" .the_champ_login_container").length)){f(".wc_social_plugin_wrapper .the_champ_login_container").clone().prependTo("#wc-secondary-forms-social-content-"+I)}else{if(f(".wc_social_plugin_wrapper .social_connect_form").length&&!(f("#wc-secondary-forms-social-content-"+I+" .social_connect_form").length)){f(".wc_social_plugin_wrapper .social_connect_form").clone().prependTo("#wc-secondary-forms-social-content-"+I)}else{if(f(".wc_social_plugin_wrapper .oneall_social_login_providers").length&&!(f("#wc-secondary-forms-social-content-"+I+" .oneall_social_login_providers").length)){f(".wc_social_plugin_wrapper .oneall_social_login .oneall_social_login_providers").clone().prependTo("#wc-secondary-forms-social-content-"+I)}}}}f("#wc-secondary-forms-wrapper-"+I).slideToggle(700)});f(document).delegate(".wc-share-link","click",function(){var I=a(f(this));f("#share_buttons_box-"+I).slideToggle(1000)});f(document).delegate(".wc_captcha_refresh_img","click",function(){var K=a(f(this));var I=f("#wc_comment_post_ID-"+K).val();var J=f("#wc_comment_parent-"+K).val();f("#wc_captcha_img-"+K).attr("src",D+"/"+t+"/captcha/captcha.php?comm_id="+I+"-"+J+"&r="+Math.random())});f(document).delegate(".wc_comm_submit","click",function(){h=f(this).attr("id");var L=h.substring(h.lastIndexOf("-")+1);v=f("#wc_name-"+L).val();l=f("#wc_email-"+L).val();r=(f("#wc_website-"+L).length)?f("#wc_website-"+L).val():"";k=f("textarea#wc_comment-"+L).val();C=f("#wc_captcha-"+L).val();j=f("#wc_comment_post_ID-"+L).val();g=f("#wc_comment_parent-"+L).val();y=f("#wc_comm_form-"+L);var M=f("input[name='wc_comment_reply_notification-"+L+"']:checked").length?f("input[name='wc_comment_reply_notification-"+L+"']:checked").val():"";var K="";if(c(h,j)){K=1}else{K=x(f(this).parents(".wc-comment"))}var I="";if(M.length&&M!="wc_notification_none"){if(M=="wc_notification_new_reply"){I="reply"}if(M=="wc_notification_all_new_reply"){I="all_comment"}if(M=="wc_notification_new_comment"){I="post"}}var J=true;if(!wpdiscuzValidator.checkAll(y)){J=false;f("#wc_captcha-"+L).val("");f("#wc_captcha_img-"+L).attr("src",D+"/"+t+"/captcha/captcha.php?comm_id="+j+"-"+g+"&r="+Math.random())}else{f("#wc_openModalFormAction .close").css("display","none");f("#wc_openModalFormAction").css("opacity","1");f("#wc_openModalFormAction").css("pointer-events","auto");f("#wc_openModalFormAction > #wc_response_info").html(d)}if(J){f.ajax({type:"POST",url:wc_ajax_obj.url,data:{name:v,email:l,website:r,comment:k,captcha:C,comment_post_ID:j,comment_parent:g,comment_depth:K,notification_type:I,action:"wc_comms_via_ajax"}}).done(function(N){f("#wc_captcha_img-"+L).attr("src",D+"/"+t+"/captcha/captcha.php?comm_id="+j+"-"+g+"&r="+Math.random());try{var Q=f.parseJSON(N);z=parseInt(Q.wc_new_comment_id);if(Q.code===-1){var O="<a href='#close' title='Close' class='close'> </a>";f("#wc_openModalFormAction").css("opacity","1");f("#wc_openModalFormAction").css("pointer-events","auto");f("#wc_openModalFormAction .close").css("display","block");f("#wc_openModalFormAction > #wc_response_info").html(O+Q.message)}else{if(Q.code===-2){var O="<a href='#close' title='Close' class='close'> </a>";f("#wc_openModalFormAction").css("opacity","1");f("#wc_openModalFormAction").css("pointer-events","auto");f("#wc_openModalFormAction .close").css("display","block");f("#wc_openModalFormAction > #wc_response_info").html(O+Q.message);f("#wc_comment-"+L).val("");f(".wc_comm_form textarea").css("height","46px");if(h==="wc_comm-"+j+"_0"){f("#wc-form-footer-"+L).slideToggle(700)}else{f("#wc-secondary-forms-wrapper-"+L).slideToggle(700)}f.cookie("wc_author_name",v);f.cookie("wc_author_email",l);f.cookie("wc_author_website",r)}else{i=Q.wc_all_comments_count_new;f("#wc_comment-"+L).val("");f(".wc_comm_form textarea").css("height","46px");if(h==="wc_comm-"+j+"_0"){f(".wc-thread-wrapper").prepend(Q.message);f("#wc-form-footer-"+L).slideToggle(700);f("#wc_curr_user_comment_count").val(parseInt(f("#wc_curr_user_comment_count").val())+1)}else{f("#wc-secondary-forms-wrapper-"+L).slideToggle(700);if(Q.is_in_same_container==1){f("#wc-secondary-forms-wrapper-"+L).after(Q.message)}else{f("#wc-secondary-forms-wrapper-"+L).after(Q.message.replace("wc-reply","wc-reply wc-no-left-margin"))}}f("#wc_openModalFormAction").css("opacity","0");f("#wc_openModalFormAction").css("pointer-events","none");f.cookie("wc_author_name",v);f.cookie("wc_author_email",l);f.cookie("wc_author_website",r);f("#wpcomm .wc_name").val(v);f("#wpcomm .wc_email").val(l);f("#wpcomm .wc_website").val(r);if(f(".wc_header_text_count").length){f(".wc_header_text_count").val(parseInt(f(".wc_header_text_count").val())+1)}f.cookie("wc_all_comments_count_new",i)}}f("#wc_captcha-"+L).val("");f(".wc_tooltipster").tooltipster({offsetY:2});f(".wc_comm_form input").css("box-shadow","0 0 4px -2px #d4d0ba");f(".wc_comm_form textarea").css("box-shadow","0 0 4px -2px #d4d0ba");b(j,z,l,I);if(Q.code==1||Q.code==-2){f.ajax({type:"POST",url:wc_ajax_obj.url,data:{wc_new_comment_id:z,action:"wpdiscuz_comment_redirect"}}).done(function(S){try{var R=f.parseJSON(S);if(R.code==1){setTimeout(function(){window.location.href=R.redirect_to},5000)}}catch(T){}})}}catch(P){f("#wc_captcha-"+L).val("");f(".wc_tooltipster").tooltipster({offsetY:2});f(".wc_comm_form input").css("box-shadow","0 0 4px -2px #d4d0ba");f(".wc_comm_form textarea").css("box-shadow","0 0 4px -2px #d4d0ba");var O="<a href='#close' title='Close' class='close'> </a>";f("#wc_openModalFormAction").css("opacity","1");f("#wc_openModalFormAction").css("pointer-events","auto");f("#wc_openModalFormAction .close").css("display","block");if(N.contains("<")&&N.contains(">")){f("#wc_openModalFormAction > #wc_response_info").html(O+P)}else{f("#wc_openModalFormAction > #wc_response_info").html(O+N)}}})}else{return false}});f(document).delegate(".wc_vote","click",function(){var K=a(f(this));var I=F(K);var J;f("#wc_openModalFormAction > #wc_response_info").html(d);f("#wc_openModalFormAction .close").css("display","block");f("#wc_openModalFormAction").css("opacity","1");f("#wc_openModalFormAction").css("pointer-events","auto");if(f(this).hasClass("wc-up")){J=1}else{J=-1}f.ajax({dateType:"json",type:"POST",url:wc_ajax_obj.url,data:{comment_ID:I,vote_type:J,action:"wc_vote_via_ajax"}}).done(function(L){var N=f.parseJSON(L);if(N.code!==-1){f("#vote-count-"+K).text(parseInt(f("#vote-count-"+K).text())+J);f("#wc_openModalFormAction").css("opacity","0");f("#wc_openModalFormAction").css("pointer-events","none")}else{var M="<a href='#close' title='Close' class='close'> </a>";f("#wc_response_info").html(M+N.message);f("#wc_openModalFormAction .close").css("display","block")}})});f(document).delegate(".wc-load-more-submit","click",function(){f("#wc_openModalFormAction > #wc_response_info").html(d);f("#wc_openModalFormAction .close").css("display","none");f("#wc_openModalFormAction").css("opacity","1");f("#wc_openModalFormAction").css("pointer-events","auto");var L=m.val();var M=E(f(this).attr("id"));var N=parseInt(f("#wc_parent_comments_count").val());var J=parseInt(f("#wc_parent_per_page").val());var K=(f("#wc_last_comment_id_before_update").val())?f("#wc_last_comment_id_before_update").val():0;var I=f("#wc_curr_user_comment_count").val();L=parseInt(L);L++;f.ajax({type:"POST",url:wc_ajax_obj.url,data:{comments_offset:L,wc_curr_user_comment_count:I,wc_post_id:M,wc_last_comment_id:K,action:"wc_load_more_comments"}}).done(function(O){var P=f.parseJSON(O);m.val(L);if(N<=(L*J)){f(".wc-load-more-submit-wrap").remove()}f(".wc-thread-wrapper").html(P.message);f("#wc_last_comment_id").val(P.wc_last_comment_id);f("#hidden_new_comment_count").val(P.hidden_new_comment_count);f("#wc_openModalFormAction").css("opacity","0");f("#wc_openModalFormAction").css("pointer-events","none");f(".wc_tooltipster").tooltipster({offsetY:2});s()})});f(document).delegate(".wc_new_comment","click",function(){h=f(".wc_main_comm_form input.wc_comm_submit").attr("id");var M=h.substring(h.lastIndexOf("-")+1);j=E(M);var K=f("#wc_last_new_comment_id").val();l=f.cookie("wc_author_email");var J=f("#wc_curr_user_comment_count").val();var L=m.val();var I="";f(".wc-thread-wrapper .wc-comment").each(function(){var N=f(this).attr("id");var O=N.substring(N.lastIndexOf("-")+1);I+=F(O)+","});f.ajax({type:"POST",url:wc_ajax_obj.url,data:{wc_requested_comments_type:1,wc_last_comment_id:K,wc_post_id:j,wc_author_email:l,wc_comments_offset:L,wc_curr_user_comment_count:J,wc_visible_comments_ids:I,action:"wc_list_new_comments"}}).done(function(N){try{var P=f.parseJSON(N);if(P.code!=0){f(".wc-thread-wrapper").html(P.message);f("#wc_last_new_comment_id").val(P.wc_last_comment_id);f(".wc_new_comment").hide();f(document).delegate(".wc_new_loaded_comment","mouseenter",function(){if(f(this).parent(".wc-comment").hasClass("wc-reply")){f(this,".wc-comment-right").animate({backgroundColor:"#f8f8f8"},1500)}else{f(this,".wc-comment-right").animate({backgroundColor:"#fefefe"},1500)}f(this,".wc-comment-right").removeClass("wc_new_loaded_comment")})}}catch(O){console.log(O)}})});f(document).delegate(".wc_new_reply","click",function(){h=f(".wc_main_comm_form input.wc_comm_submit").attr("id");var M=h.substring(h.lastIndexOf("-")+1);j=E(M);var K=f("#wc_last_new_reply_id").val();l=f.cookie("wc_author_email");var J=f("#wc_curr_user_comment_count").val();var L=m.val();var I="";f(".wc-thread-wrapper .wc-comment").each(function(){var N=f(this).attr("id");var O=N.substring(N.lastIndexOf("-")+1);I+=F(O)+","});f.ajax({type:"POST",url:wc_ajax_obj.url,data:{wc_requested_comments_type:2,wc_last_comment_id:K,wc_comments_offset:L,wc_curr_user_comment_count:J,wc_post_id:j,wc_author_email:l,wc_visible_comments_ids:I,action:"wc_list_new_comments"}}).done(function(N){try{var P=f.parseJSON(N);if(P.code!=0){f(".wc-thread-wrapper").html(P.message);f("#wc_last_new_reply_id").val(P.wc_last_comment_id);f(".wc_new_reply").hide()}}catch(O){console.log(O)}})});function a(J){var I=J.attr("id");var K=I.substring(I.lastIndexOf("-")+1);return K}function E(J){var I=J.substring(J.lastIndexOf("-")+1);I=I.substring(0,I.lastIndexOf("_"));return I}function F(J){var I=J.substring(J.indexOf("_")+1);return I}function x(K){var J=K.attr("class");var I=J.split(" ");var L="";f.each(I,function(M,N){if("wc_comment_level"===G(N,false)){L=G(N,true)}});return parseInt(L)+1}function G(I,J){var K="";if(J){K=I.substring(I.indexOf("-")+1)}else{K=I.substring(0,I.indexOf("-"))}return K}function c(J,I){return J==="wc_comm-"+I+"_0"}function q(){var I=f.cookie("wc_all_comments_count_new")?false:true;if(o==1){if(!u(I)){p()}}else{if(o==2){if(!u(I)){B()}}}}function p(){j=f("#wpdiscuz_current_post_id").val();var O=f("#wc_last_comment_id_before_update").val();var K=f("#wc_last_new_comment_id").val();var L=f("#wc_last_new_reply_id").val();var M=f("#wc_comments_offset").length?f("#wc_comments_offset").val():1;var N=f.cookie("wc_all_comments_count_old");var I=f("#wc_curr_user_comment_count").val();var J=f.cookie("wc_author_email");f.ajax({type:"POST",url:wc_ajax_obj.url,data:{wc_author_email:J,wc_curr_user_comment_count:I,wc_last_comment_id:O,wc_last_new_comment_id:K,wc_last_new_reply_id:L,wc_all_comments_count_old:N,wc_comments_offset:M,wc_comment_list_update_type:o,wc_post_id:j,action:"wc_live_update"}}).done(function(P){n(P)})}function B(){h=f(".wc_main_comm_form input.wc_comm_submit").attr("id");var N=h.substring(h.lastIndexOf("-")+1);j=E(N);g=F(N);var L=f("#wc_comments_offset").length?f("#wc_comments_offset").val():1;var I=f("#wc_curr_user_comment_count").val();var M=f("#wc_last_comment_id").val();var J=f("#wc_last_new_comment_id").val();var K=f("#wc_last_new_reply_id").val();l=f.cookie("wc_author_email");f.ajax({type:"POST",url:wc_ajax_obj.url,data:{wc_last_comment_id:M,wc_last_new_comment_id:J,wc_last_new_reply_id:K,wc_comment_list_update_type:o,wc_comments_offset:L,wc_curr_user_comment_count:I,wc_post_id:j,wc_author_email:l,action:"wc_live_update"}}).done(function(O){n(O)})}function n(I){try{var K=f.parseJSON(I);if(K.code==1){f(".wc-thread-wrapper").html(K.message);if(f(".wc_header_text_count").length){f(".wc_header_text_count").html(K.wc_all_comments_count_new)}f("#wc_last_comment_id").val(K.wc_last_comment_id)}else{if(K.code==2){if(K.wc_new_comment_count){f(".wc_new_comment_button_text").html(K.wc_new_comment_count+" "+K.wc_new_comment_button_text);f(".wc_new_comment").css("display","inline-block")}else{f(".wc_new_comment").css("display","none")}if(K.wc_new_reply_count){f(".wc_new_reply_button_text").html(K.wc_new_reply_count+" "+K.wc_new_reply_button_text);f(".wc_new_reply").css("display","inline-block")}else{f(".wc_new_reply").css("display","none")}}}s()}catch(J){console.log(J)}}function u(K){var J=f(".wc_secondary_form input.wc_field_input").is(":focus");var I=f(".wc_secondary_form textarea.wc_field_input").is(":focus");var M=false;var L=false;if(K){f(".wc_secondary_form input.wc_field_input").each(function(){if(f(this).val()!=""){M=true}})}else{f(".wc_secondary_form input.wc_field_captcha").each(function(){if(f(this).val()!=""){M=true}})}f(".wc_secondary_form textarea.wc_field_input").each(function(){if(f(this).val()!=""){L=true}});return J||I||M||L}if(o!=0){setInterval(q,e*1000)}function s(){if(f.cookie("wc_author_name")&&f.cookie("wc_author_email")){f(".wc_name").val(f.cookie("wc_author_name"));f(".wc_email").val(f.cookie("wc_author_email"))}}function b(J,L,I,K){f.ajax({type:"POST",url:wc_ajax_obj.url,data:{wc_post_id:J,wc_comment_id:L,wc_notifcattion_type:K,wc_email:I,action:"wc_check_notification_type"}})}f(document).delegate(".wc_editable_comment","click",function(){var J=a(f(this));var I=F(J);f.ajax({type:"POST",url:wc_ajax_obj.url,data:{comment_id:I,action:"wc_get_editable_comment_content"}}).done(function(L){try{var O=f.parseJSON(L);if(O.code==1){H=O.message;var K='<textarea required="required" name="wc_comment" class="wc_comment wc_field_input wc_edit_comment" id="wc_edit_comment-'+J+'" style="min-height: 2em;">'+O.message+"</textarea>";f("#wc-comm-"+J+" > .wc-comment-right .wc-comment-text").replaceWith(K);document.getElementById("wc_edit_comment-"+J).focus();f("#wc_save_edited_comment-"+J).show();K="";f("#wc_editable_comment-"+J).hide();f("#wc_cancel_edit-"+J).show()}else{var M="<a href='#close' title='Close' class='close'> </a>";f("#wc_openModalFormAction").css("opacity","1");f("#wc_openModalFormAction").css("pointer-events","auto");f("#wc_openModalFormAction .close").css("display","block");f("#wc_openModalFormAction > #wc_response_info").html(M+O.phrase_message)}}catch(N){console.log(N)}})});f(document).delegate(".wc_save_edited_comment","click",function(){var N=a(f(this));var J=F(N);var I=f("#wc-comm-"+N+" textarea#wc_edit_comment-"+N);var K=I.val();var L=true;var M=x(f(this).parents(".wc-comment"))-1;if(f.trim(K).length<=0){L=false}if(L){f("#wc_openModalFormAction .close").css("display","none");f("#wc_openModalFormAction").css("opacity","1");f("#wc_openModalFormAction").css("pointer-events","auto");f("#wc_openModalFormAction > #wc_response_info").html(d);f.ajax({type:"POST",url:wc_ajax_obj.url,data:{comment_id:J,comment_content:K,comment_depth:M,action:"wc_save_edited_comment"}}).done(function(O){try{var R=f.parseJSON(O);if(R.code==1){f("#wc_openModalFormAction").css("opacity","0");f("#wc_openModalFormAction").css("pointer-events","none");A(N,R.message)}else{var P="<a href='#close' title='Close' class='close'> </a>";f("#wc_openModalFormAction").css("opacity","1");f("#wc_openModalFormAction").css("pointer-events","auto");f("#wc_openModalFormAction .close").css("display","block");f("#wc_openModalFormAction > #wc_response_info").html(P+R.phrase_message)}I="";K=""}catch(Q){console.log(Q)}})}});f(document).delegate(".wc_cancel_edit","click",function(){var I=a(f(this));A(I,H)});function A(K,J){f("#wc_editable_comment-"+K).show();f("#wc_cancel_edit-"+K).hide();f("#wc_save_edited_comment-"+K).hide();var I='<div class="wc-comment-text">'+w(J)+"</div>";f("#wc-comm-"+K+" #wc_edit_comment-"+K).replaceWith(I)}function w(L,K){var J=(K||typeof K==="undefined")?"<br/>":"<br>";var I=(L+"").replace(/([^>\r\n]?)(\r\n|\n\r|\r|\n)/g,"$1"+J+"$2");return I.replace("<br><br>","<br/>")}f(".wc_tooltipster").tooltipster({offsetY:2})});
|
includes/wc-helper.php
CHANGED
@@ -126,14 +126,15 @@ class WC_Helper {
|
|
126 |
global $current_user;
|
127 |
get_currentuserinfo();
|
128 |
$comm_auth_user_email = $current_user->user_email;
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
$comm_auth_avatar = get_avatar($comm_auth_user_email, 48);
|
134 |
}
|
|
|
|
|
135 |
if (!$this->wc_form_avatar) {
|
136 |
-
$this->wc_form_avatar =
|
137 |
}
|
138 |
return $comm_auth_avatar;
|
139 |
}
|
126 |
global $current_user;
|
127 |
get_currentuserinfo();
|
128 |
$comm_auth_user_email = $current_user->user_email;
|
129 |
+
if (function_exists('the_champ_init') && get_user_meta($current_user->ID, 'thechamp_avatar') && is_null($comment)) {
|
130 |
+
$comment = (object) array('user_id' => $current_user->ID, 'comment_author_email' => $current_user->user_email, 'comment_type' => '');
|
131 |
+
} elseif (!$comment) {
|
132 |
+
$comment = $current_user->user_email;
|
|
|
133 |
}
|
134 |
+
$comm_auth_avatar = get_avatar($comment, 48);
|
135 |
+
|
136 |
if (!$this->wc_form_avatar) {
|
137 |
+
$this->wc_form_avatar = $comm_auth_avatar;
|
138 |
}
|
139 |
return $comm_auth_avatar;
|
140 |
}
|
options/options-layouts/settings-social.php
CHANGED
@@ -12,7 +12,9 @@ if (function_exists('wsl_render_auth_widget_in_comment_form')) {
|
|
12 |
$wc_social_plugin = '<tr valign="top"><td>Super Socializer</td><td><a href="admin.php?page=the-champ-social-login" class="button button-primary">' . __('Settings', 'default') . '</a></td></tr>';
|
13 |
} else if (function_exists('sc_render_comment_form_social_connect')) {
|
14 |
$wc_social_plugin = '<tr valign="top"><td>Social Connect</td><td><a href="options-general.php?page=social-connect-id" class="button button-primary">' . __('Settings', 'default') . '</a></td></tr>';
|
15 |
-
} else {
|
|
|
|
|
16 |
$plugins_directory = ABSPATH . 'wp-content/plugins/';
|
17 |
// wordpress social login
|
18 |
if (file_exists($plugins_directory . 'wordpress-social-login/')) {
|
@@ -45,9 +47,21 @@ if (function_exists('wsl_render_auth_widget_in_comment_form')) {
|
|
45 |
$wc_social_connect_thickbox = 'thickbox';
|
46 |
}
|
47 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
$wc_social_plugin = '<tr valign="top"><td>WordPress Social Login</td><td><a href="' . $wc_wordpress_social_login_link . '" class="button button-primary ' . $wc_wordpress_social_login_thickbox . '">' . $wc_wordpress_social_login_text . '</a></td></tr>';
|
49 |
$wc_social_plugin .= '<tr valign="top"><td>Super Socializer</td><td><a href="' . $wc_super_socializer_link . '" class="button button-primary ' . $wc_super_socializer_thickbox . '">' . $wc_super_socializer_text . '</a></td></tr>';
|
50 |
$wc_social_plugin .= '<tr valign="top"><td>Social Connect</td><td><a href="' . $wc_social_connect_link . '" class="button button-primary ' . $wc_social_connect_thickbox . '">' . $wc_social_connect_text . '</a></td></tr>';
|
|
|
51 |
}
|
52 |
|
53 |
if (isset($_GET['wc_social_action'])) {
|
12 |
$wc_social_plugin = '<tr valign="top"><td>Super Socializer</td><td><a href="admin.php?page=the-champ-social-login" class="button button-primary">' . __('Settings', 'default') . '</a></td></tr>';
|
13 |
} else if (function_exists('sc_render_comment_form_social_connect')) {
|
14 |
$wc_social_plugin = '<tr valign="top"><td>Social Connect</td><td><a href="options-general.php?page=social-connect-id" class="button button-primary">' . __('Settings', 'default') . '</a></td></tr>';
|
15 |
+
} else if (function_exists('oa_social_login_render_login_form_comments')) {
|
16 |
+
$wc_social_plugin = '<tr valign="top"><td>Social Login</td><td><a href="admin.php?page=oa_social_login_setup" class="button button-primary">' . __('Settings', 'default') . '</a></td></tr>';
|
17 |
+
}else {
|
18 |
$plugins_directory = ABSPATH . 'wp-content/plugins/';
|
19 |
// wordpress social login
|
20 |
if (file_exists($plugins_directory . 'wordpress-social-login/')) {
|
47 |
$wc_social_connect_thickbox = 'thickbox';
|
48 |
}
|
49 |
|
50 |
+
// social login
|
51 |
+
if (file_exists($plugins_directory . 'oa-social-login/')) {
|
52 |
+
$wc_oa_social_login_text = __('Activate', WC_Core::$TEXT_DOMAIN);
|
53 |
+
$wc_oa_social_login_link = 'admin.php?page=wpdiscuz_options_page&wc_social_action=oa-social-login';
|
54 |
+
$wc_oa_social_login_thickbox = '';
|
55 |
+
} else {
|
56 |
+
$wc_oa_social_login_text = __('View details/Install', WC_Core::$TEXT_DOMAIN);
|
57 |
+
$wc_oa_social_login_link = 'plugin-install.php?tab=plugin-information&plugin=oa-social-login&TB_iframe=true&width=772&height=342';
|
58 |
+
$wc_oa_social_login_thickbox = 'thickbox';
|
59 |
+
}
|
60 |
+
|
61 |
$wc_social_plugin = '<tr valign="top"><td>WordPress Social Login</td><td><a href="' . $wc_wordpress_social_login_link . '" class="button button-primary ' . $wc_wordpress_social_login_thickbox . '">' . $wc_wordpress_social_login_text . '</a></td></tr>';
|
62 |
$wc_social_plugin .= '<tr valign="top"><td>Super Socializer</td><td><a href="' . $wc_super_socializer_link . '" class="button button-primary ' . $wc_super_socializer_thickbox . '">' . $wc_super_socializer_text . '</a></td></tr>';
|
63 |
$wc_social_plugin .= '<tr valign="top"><td>Social Connect</td><td><a href="' . $wc_social_connect_link . '" class="button button-primary ' . $wc_social_connect_thickbox . '">' . $wc_social_connect_text . '</a></td></tr>';
|
64 |
+
$wc_social_plugin .= '<tr valign="top"><td>Social Login</td><td><a href="' . $wc_oa_social_login_link . '" class="button button-primary ' . $wc_oa_social_login_thickbox . '">' . $wc_oa_social_login_text . '</a></td></tr>';
|
65 |
}
|
66 |
|
67 |
if (isset($_GET['wc_social_action'])) {
|
options/wc-options-serialize.php
CHANGED
@@ -387,7 +387,7 @@ class WC_Options_Serialize {
|
|
387 |
$this->wc_reply_button_guests_show_hide = $options['wc_reply_button_guests_show_hide'];
|
388 |
$this->wc_reply_button_members_show_hide = $options['wc_reply_button_members_show_hide'];
|
389 |
$this->wc_author_titles_show_hide = $options['wc_author_titles_show_hide'];
|
390 |
-
$this->wc_comment_count = $options['wc_comment_count'];
|
391 |
$this->wc_comments_max_depth = isset($options['wc_comments_max_depth']) ? $options['wc_comments_max_depth'] : 2;
|
392 |
$this->wc_simple_comment_date = isset($options['wc_simple_comment_date']) ? $options['wc_simple_comment_date'] : 0;
|
393 |
$this->wc_comment_reply_checkboxes_default_checked = isset($options['wc_comment_reply_checkboxes_default_checked']) ? $options['wc_comment_reply_checkboxes_default_checked'] : 0;
|
387 |
$this->wc_reply_button_guests_show_hide = $options['wc_reply_button_guests_show_hide'];
|
388 |
$this->wc_reply_button_members_show_hide = $options['wc_reply_button_members_show_hide'];
|
389 |
$this->wc_author_titles_show_hide = $options['wc_author_titles_show_hide'];
|
390 |
+
$this->wc_comment_count = isset($options['wc_comment_count']) ? $options['wc_comment_count'] : 5;
|
391 |
$this->wc_comments_max_depth = isset($options['wc_comments_max_depth']) ? $options['wc_comments_max_depth'] : 2;
|
392 |
$this->wc_simple_comment_date = isset($options['wc_simple_comment_date']) ? $options['wc_simple_comment_date'] : 0;
|
393 |
$this->wc_comment_reply_checkboxes_default_checked = isset($options['wc_comment_reply_checkboxes_default_checked']) ? $options['wc_comment_reply_checkboxes_default_checked'] : 0;
|
options/wc-options.php
CHANGED
@@ -201,7 +201,7 @@ class WC_Options {
|
|
201 |
type: 'default', //Types: default, vertical, accordion
|
202 |
width: 'auto', //auto or any width like 600px
|
203 |
fit: true, // 100% fit in a container
|
204 |
-
tabidentify: 'hor_1'
|
205 |
});
|
206 |
});
|
207 |
</script>
|
@@ -371,7 +371,7 @@ class WC_Options {
|
|
371 |
type: 'default', //Types: default, vertical, accordion
|
372 |
width: 'auto', //auto or any width like 600px
|
373 |
fit: true, // 100% fit in a container
|
374 |
-
tabidentify: 'hor_2'
|
375 |
});
|
376 |
});
|
377 |
</script>
|
201 |
type: 'default', //Types: default, vertical, accordion
|
202 |
width: 'auto', //auto or any width like 600px
|
203 |
fit: true, // 100% fit in a container
|
204 |
+
tabidentify: 'hor_1' // The tab groups identifier
|
205 |
});
|
206 |
});
|
207 |
</script>
|
371 |
type: 'default', //Types: default, vertical, accordion
|
372 |
width: 'auto', //auto or any width like 600px
|
373 |
fit: true, // 100% fit in a container
|
374 |
+
tabidentify: 'hor_2' // The tab groups identifier
|
375 |
});
|
376 |
});
|
377 |
</script>
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
|
|
4 |
Tags: wordpress comments, ajax comments, ajax, live update, theme, post comments, comments box, community, discussion, discuss, comment form, reply, comments, discussions, comment template, activity, comment author, comment system, redirect, comment redirect, first commenter, social login
|
5 |
Requires at least: 2.7
|
6 |
Tested up to: 4.2.2
|
7 |
-
Stable tag: 2.2.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -130,12 +130,19 @@ http://www.gvectors.com/questions/wpdiscuz-comment-form-is-missing/
|
|
130 |
|
131 |
== Changelog ==
|
132 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
133 |
= 2.2.5 =
|
134 |
* Fixed Bug: Comment author profile image issue when using Gravatar
|
135 |
* Fixed Bug: Conditional php session start (optimized).
|
136 |
|
137 |
-
IMPORTANT: If you have a Cache Plugin, please delete all caches after wpDiscuz update.
|
138 |
-
|
139 |
= 2.2.4 =
|
140 |
* Fixed Bug: CSS/Layout issue. Breaks some theme layout.
|
141 |
|
4 |
Tags: wordpress comments, ajax comments, ajax, live update, theme, post comments, comments box, community, discussion, discuss, comment form, reply, comments, discussions, comment template, activity, comment author, comment system, redirect, comment redirect, first commenter, social login
|
5 |
Requires at least: 2.7
|
6 |
Tested up to: 4.2.2
|
7 |
+
Stable tag: 2.2.6
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
130 |
|
131 |
== Changelog ==
|
132 |
|
133 |
+
= 2.2.6 =
|
134 |
+
* Added: Supports "Social Login" Plugin
|
135 |
+
* Added: Redirection to current page after login/logout
|
136 |
+
* Fixed Bug: Super Socializer comment author avatar problem
|
137 |
+
* Fixed Bug: Author website URL rel="nofollow"
|
138 |
+
* Fixed Bug: Other small bugs
|
139 |
+
|
140 |
+
IMPORTANT: If you have a Cache Plugin, please delete all caches after wpDiscuz update.
|
141 |
+
|
142 |
= 2.2.5 =
|
143 |
* Fixed Bug: Comment author profile image issue when using Gravatar
|
144 |
* Fixed Bug: Conditional php session start (optimized).
|
145 |
|
|
|
|
|
146 |
= 2.2.4 =
|
147 |
* Fixed Bug: CSS/Layout issue. Breaks some theme layout.
|
148 |
|
wc.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
/*
|
4 |
Plugin Name: wpDiscuz - Wordpress Comments
|
5 |
Description: Better comment system. Wordpress post comments and discussion plugin. Allows your visitors discuss, vote for comments and share.
|
6 |
-
Version: 2.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/
|
3 |
/*
|
4 |
Plugin Name: wpDiscuz - Wordpress Comments
|
5 |
Description: Better comment system. Wordpress post comments and discussion plugin. Allows your visitors discuss, vote for comments and share.
|
6 |
+
Version: 2.2.6
|
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/
|