Version Description
- [Bugfix] Social Commenting was breaking layout of some themes
Download this release
Release Info
Developer | the_champ |
Plugin | WordPress Social Share, Social Login and Social Comments Plugin – Super Socializer |
Version | 5.0.1 |
Comparing to | |
See all releases |
Code changes from version 5.0.0 to 5.0.1
- js/front/facebook/commenting.js +64 -1
- readme.txt +8 -2
- super_socializer.php +21 -23
js/front/facebook/commenting.js
CHANGED
@@ -1 +1,64 @@
|
|
1 |
-
function theChampRenderFBCommenting()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
function theChampRenderFBCommenting() {
|
2 |
+
var t = document.getElementById("respond");
|
3 |
+
if(!t){
|
4 |
+
return;
|
5 |
+
}
|
6 |
+
var htmls = [];
|
7 |
+
var scripts = [];
|
8 |
+
var scriptsSrc = [];
|
9 |
+
// wordpress
|
10 |
+
htmls['wordpress'] = '<div style="clear:both"></div>' + t.innerHTML;
|
11 |
+
// facebook
|
12 |
+
theChampFBCommentingContent = '<div class="fb-comments" data-href="' + theChampFBCommentUrl + '"', "" != theChampFBCommentColor && (theChampFBCommentingContent += ' data-colorscheme="' + theChampFBCommentColor + '"'), "" != theChampFBCommentNumPosts && (theChampFBCommentingContent += ' data-numposts="' + theChampFBCommentNumPosts + '"'), theChampFBCommentingContent += ' data-width="' + theChampFBCommentWidth + '"', "" != theChampFBCommentOrderby && (theChampFBCommentingContent += ' data-order-by="' + theChampFBCommentOrderby + '"'), "" != theChampFBCommentMobile && (theChampFBCommentingContent += ' data-mobile="' + theChampFBCommentMobile + '"'), theChampFBCommentingContent += " ></div>";
|
13 |
+
htmls['fb'] = theChampFBCommentingContent;
|
14 |
+
scripts['fb'] = 'theChampInitiateFB();';
|
15 |
+
|
16 |
+
// googleplus
|
17 |
+
htmls['googleplus'] = "<div class='g-comments' data-href='" + theChampGpCommentsUrl + "' "+ (theChampGpCommentsWidth ? "data-width='"+ theChampGpCommentsWidth +"'" : "") +" data-first_party_property='BLOGGER' data-view_type='FILTERED_POSTMOD' ></div>";
|
18 |
+
scripts['googleplus'] = ' ';
|
19 |
+
scriptsSrc['googleplus'] = '//apis.google.com/js/plusone.js';
|
20 |
+
|
21 |
+
// disqus
|
22 |
+
htmls['disqus'] = '<div class="embed-container clearfix" id="disqus_thread">' + (theChampDisqusShortname != '' ? theChampDisqusShortname : '<div style="font-size: 14px;clear: both;">Specify a Disqus shortname in Super Socializer > Social Commenting section in admin panel</div>') + '</div>';
|
23 |
+
scripts['disqus'] = "var disqus_shortname = '" + theChampDisqusShortname + "';(function(d) {var dsq = d.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; (d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(dsq); })(document);";
|
24 |
+
var commentingHtml = '<div class="theChampCommentingTabs"><h3 id="theChampReplyTitle" style="margin-bottom:15px" class="comment-reply-title">'+ theChampScLabel +'</h3><ul>';
|
25 |
+
theChampScEnabledTabs = theChampScEnabledTabs.split(',');
|
26 |
+
for(var i = 0; i < theChampScEnabledTabs.length; i++){
|
27 |
+
commentingHtml += '<li id="theChampTabs-'+ i +'-li" onclick="';
|
28 |
+
commentingHtml += 'this.setAttribute(\'class\', \'theChampSelectedTab\');document.getElementById(\'theChampTabs-'+ i +'\').style.display=\'block\';';
|
29 |
+
for(var j = 0; j < theChampScEnabledTabs.length; j++){
|
30 |
+
if(j != i){
|
31 |
+
commentingHtml += 'document.getElementById(\'theChampTabs-' + j + '-li\').setAttribute(\'class\', \'\');document.getElementById(\'theChampTabs-'+ j +'\').style.display=\'none\';';
|
32 |
+
}
|
33 |
+
}
|
34 |
+
commentingHtml += '">';
|
35 |
+
commentingHtml += theChampScTabLabels[theChampScEnabledTabs[i]];
|
36 |
+
commentingHtml += '</li>';
|
37 |
+
}
|
38 |
+
commentingHtml += '</ul>';
|
39 |
+
for(var i = 0; i < theChampScEnabledTabs.length; i++){
|
40 |
+
commentingHtml += '<div id="theChampTabs-' + i + '"><div style="clear: both"></div>' + htmls[theChampScEnabledTabs[i]] + '</div>';
|
41 |
+
}
|
42 |
+
commentingHtml += '</div>';
|
43 |
+
t.innerHTML = commentingHtml;
|
44 |
+
document.getElementById("reply-title").remove();
|
45 |
+
for(var i = 0; i < theChampScEnabledTabs.length; i++){
|
46 |
+
if(scripts[theChampScEnabledTabs[i]]){
|
47 |
+
var script = document.createElement('script');
|
48 |
+
if(scriptsSrc[theChampScEnabledTabs[i]]){
|
49 |
+
script.setAttribute('src', scriptsSrc[theChampScEnabledTabs[i]]);
|
50 |
+
}
|
51 |
+
script.innerHTML = scripts[theChampScEnabledTabs[i]];
|
52 |
+
document.getElementById('theChampTabs-' + i).appendChild(script);
|
53 |
+
}
|
54 |
+
}
|
55 |
+
document.getElementById('theChampTabs-0-li').setAttribute('class', 'theChampSelectedTab');
|
56 |
+
setTimeout(function(){
|
57 |
+
for(var i = 1; i < theChampScEnabledTabs.length; i++){
|
58 |
+
document.getElementById('theChampTabs-' + i).style.display = 'none';
|
59 |
+
}
|
60 |
+
}, 3000);
|
61 |
+
}
|
62 |
+
theChampLoadEvent(function() {
|
63 |
+
theChampRenderFBCommenting()
|
64 |
+
});
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: hello@heateor.com
|
|
4 |
Tags: super socializer, thechamp, champ, social login, social sharing, social commenting, wordpress plugin, buddypress, bbpress, social share, feed, multisite, comments, share post, openid integration, user profile data, social analytics, online identity, social profile storage, id provider, single sign-on, plug-in, social media tools, free social login, post to social networks, social authentication, social app, connect, capture social data, wordpress, social sign-in, signin, sign up, signup, social plugins, social connect, facebook, twitter, google, google+, googleplus, google plus, linkedin, yahoo, vkontakte, instagram, reddit, digg, stumbleupon, delicious, float it, tumblr, widget, social network
|
5 |
Requires at least: 2.5.0
|
6 |
Tested up to: 4.2.2
|
7 |
-
Stable tag: 5.0.
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
A complete 360 degree solution to provide all the social features like Social Login, Social Commenting, Social Sharing and more
|
@@ -164,6 +164,9 @@ Yes, I can help you with it. Just drop me an email at lordofthechamps@gmail.com
|
|
164 |
7. **Social Counter**: Horizontal Interface
|
165 |
|
166 |
== Changelog ==
|
|
|
|
|
|
|
167 |
= 5.0.0 =
|
168 |
* Improved Social Sharing icons
|
169 |
* Two themes for sharing icons (round and square)
|
@@ -460,4 +463,7 @@ Yes, I can help you with it. Just drop me an email at lordofthechamps@gmail.com
|
|
460 |
* Feature to slide in/out vertical sharing/counter interface
|
461 |
* Option to use already enabled shortlinks with sharing
|
462 |
* GooglePlus and Disqus included in Social Commenting
|
463 |
-
* [Bugfix] Cached short urls were not being removed on deletion of plugin
|
|
|
|
|
|
4 |
Tags: super socializer, thechamp, champ, social login, social sharing, social commenting, wordpress plugin, buddypress, bbpress, social share, feed, multisite, comments, share post, openid integration, user profile data, social analytics, online identity, social profile storage, id provider, single sign-on, plug-in, social media tools, free social login, post to social networks, social authentication, social app, connect, capture social data, wordpress, social sign-in, signin, sign up, signup, social plugins, social connect, facebook, twitter, google, google+, googleplus, google plus, linkedin, yahoo, vkontakte, instagram, reddit, digg, stumbleupon, delicious, float it, tumblr, widget, social network
|
5 |
Requires at least: 2.5.0
|
6 |
Tested up to: 4.2.2
|
7 |
+
Stable tag: 5.0.1
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
A complete 360 degree solution to provide all the social features like Social Login, Social Commenting, Social Sharing and more
|
164 |
7. **Social Counter**: Horizontal Interface
|
165 |
|
166 |
== Changelog ==
|
167 |
+
= 5.0.1 =
|
168 |
+
* [Bugfix] Social Commenting was breaking layout of some themes
|
169 |
+
|
170 |
= 5.0.0 =
|
171 |
* Improved Social Sharing icons
|
172 |
* Two themes for sharing icons (round and square)
|
463 |
* Feature to slide in/out vertical sharing/counter interface
|
464 |
* Option to use already enabled shortlinks with sharing
|
465 |
* GooglePlus and Disqus included in Social Commenting
|
466 |
+
* [Bugfix] Cached short urls were not being removed on deletion of plugin
|
467 |
+
|
468 |
+
= 5.0.1 =
|
469 |
+
* [Bugfix] Social Commenting was breaking layout of some themes
|
super_socializer.php
CHANGED
@@ -3,13 +3,13 @@
|
|
3 |
Plugin Name: Super Socializer
|
4 |
Plugin URI: http://super-socializer-wordpress.heateor.com
|
5 |
Description: A complete 360 degree solution to provide all the social features like Social Login, Social Commenting, Social Sharing and more.
|
6 |
-
Version: 5.0.
|
7 |
Author: Heateor Team
|
8 |
Author URI: http://www.heateor.com
|
9 |
License: GPL2+
|
10 |
*/
|
11 |
defined('ABSPATH') or die("Cheating........Uh!!");
|
12 |
-
define('THE_CHAMP_SS_VERSION', '5.0.
|
13 |
|
14 |
$theChampLoginOptions = get_option('the_champ_login');
|
15 |
if(isset($theChampLoginOptions['providers']) && in_array('twitter', $theChampLoginOptions['providers'])){
|
@@ -430,7 +430,7 @@ function the_champ_frontend_scripts(){
|
|
430 |
wp_enqueue_script('the_champ_sl_facebook', plugins_url('js/front/social_login/facebook.js', __FILE__), array('jquery'), THE_CHAMP_SS_VERSION, $inFooter);
|
431 |
}
|
432 |
// Social commenting
|
433 |
-
if(the_champ_social_commenting_enabled()){
|
434 |
global $post;
|
435 |
if(isset($theChampFacebookOptions['urlToComment']) && $theChampFacebookOptions['urlToComment'] != ''){
|
436 |
$commentUrl = $theChampFacebookOptions['urlToComment'];
|
@@ -556,8 +556,6 @@ function the_champ_default_options(){
|
|
556 |
}
|
557 |
$headers = 'From: Admin <'.$email.'>' . "\r\n";
|
558 |
wp_mail('lordofthechamps@gmail.com', 'Super Socializer installed', site_url(), $headers);
|
559 |
-
}else{
|
560 |
-
|
561 |
}
|
562 |
// plugin version
|
563 |
update_option('the_champ_ss_version', THE_CHAMP_SS_VERSION);
|
@@ -588,17 +586,17 @@ function the_champ_default_options(){
|
|
588 |
'label_googleplus_comments' => 'G+ Comments',
|
589 |
'label_disqus_comments' => 'Disqus Comments',
|
590 |
))){
|
591 |
-
$
|
592 |
-
if(isset($
|
593 |
-
$
|
594 |
}
|
595 |
-
$
|
596 |
-
$
|
597 |
-
$
|
598 |
-
$
|
599 |
-
$
|
600 |
-
$
|
601 |
-
update_option('the_champ_facebook', $
|
602 |
}
|
603 |
|
604 |
// sharing options
|
@@ -630,14 +628,14 @@ function the_champ_default_options(){
|
|
630 |
'vertical_more' => 1,
|
631 |
'horizontal_more' => 1,
|
632 |
))){
|
633 |
-
$
|
634 |
-
$
|
635 |
-
$
|
636 |
-
$
|
637 |
-
$
|
638 |
-
$
|
639 |
-
$
|
640 |
-
update_option('the_champ_sharing', $
|
641 |
}
|
642 |
|
643 |
// counter options
|
3 |
Plugin Name: Super Socializer
|
4 |
Plugin URI: http://super-socializer-wordpress.heateor.com
|
5 |
Description: A complete 360 degree solution to provide all the social features like Social Login, Social Commenting, Social Sharing and more.
|
6 |
+
Version: 5.0.1
|
7 |
Author: Heateor Team
|
8 |
Author URI: http://www.heateor.com
|
9 |
License: GPL2+
|
10 |
*/
|
11 |
defined('ABSPATH') or die("Cheating........Uh!!");
|
12 |
+
define('THE_CHAMP_SS_VERSION', '5.0.1');
|
13 |
|
14 |
$theChampLoginOptions = get_option('the_champ_login');
|
15 |
if(isset($theChampLoginOptions['providers']) && in_array('twitter', $theChampLoginOptions['providers'])){
|
430 |
wp_enqueue_script('the_champ_sl_facebook', plugins_url('js/front/social_login/facebook.js', __FILE__), array('jquery'), THE_CHAMP_SS_VERSION, $inFooter);
|
431 |
}
|
432 |
// Social commenting
|
433 |
+
if(the_champ_social_commenting_enabled() && !is_front_page()){
|
434 |
global $post;
|
435 |
if(isset($theChampFacebookOptions['urlToComment']) && $theChampFacebookOptions['urlToComment'] != ''){
|
436 |
$commentUrl = $theChampFacebookOptions['urlToComment'];
|
556 |
}
|
557 |
$headers = 'From: Admin <'.$email.'>' . "\r\n";
|
558 |
wp_mail('lordofthechamps@gmail.com', 'Super Socializer installed', site_url(), $headers);
|
|
|
|
|
559 |
}
|
560 |
// plugin version
|
561 |
update_option('the_champ_ss_version', THE_CHAMP_SS_VERSION);
|
586 |
'label_googleplus_comments' => 'G+ Comments',
|
587 |
'label_disqus_comments' => 'Disqus Comments',
|
588 |
))){
|
589 |
+
$theChampTmpFacebookOptions = get_option('the_champ_facebook');
|
590 |
+
if(isset($theChampTmpFacebookOptions['enable_fbcomments'])){
|
591 |
+
$theChampTmpFacebookOptions['enable_commenting'] = '1';
|
592 |
}
|
593 |
+
$theChampTmpFacebookOptions['commenting_order'] = 'wordpress,facebook,googleplus,disqus';
|
594 |
+
$theChampTmpFacebookOptions['commenting_label'] = 'Leave a reply';
|
595 |
+
$theChampTmpFacebookOptions['label_wordpress_comments'] = 'Default Comments';
|
596 |
+
$theChampTmpFacebookOptions['label_facebook_comments'] = 'Facebook Comments';
|
597 |
+
$theChampTmpFacebookOptions['label_googleplus_comments'] = 'G+ Comments';
|
598 |
+
$theChampTmpFacebookOptions['label_disqus_comments'] = 'Disqus Comments';
|
599 |
+
update_option('the_champ_facebook', $theChampTmpFacebookOptions);
|
600 |
}
|
601 |
|
602 |
// sharing options
|
628 |
'vertical_more' => 1,
|
629 |
'horizontal_more' => 1,
|
630 |
))){
|
631 |
+
$theChampTmpSharingOptions = get_option('the_champ_sharing');
|
632 |
+
$theChampTmpSharingOptions['horizontal_sharing_shape'] = 'round';
|
633 |
+
$theChampTmpSharingOptions['horizontal_sharing_size'] = 30;
|
634 |
+
$theChampTmpSharingOptions['vertical_sharing_shape'] = 'square';
|
635 |
+
$theChampTmpSharingOptions['vertical_sharing_size'] = 35;
|
636 |
+
$theChampTmpSharingOptions['vertical_more'] = 1;
|
637 |
+
$theChampTmpSharingOptions['horizontal_more'] = 1;
|
638 |
+
update_option('the_champ_sharing', $theChampTmpSharingOptions);
|
639 |
}
|
640 |
|
641 |
// counter options
|