WordPress Social Share, Social Login and Social Comments Plugin – Super Socializer - Version 7.13.33

Version Description

[10 May 2022] = * [New] Added a new option to change the alignment of the standard icons in the Super Socializer - Follow Icons widget * [Bugfix] Alignment option for the floating icons in the Super Socializer - Follow Icons widget was not working * [Bugfix] Youtube share icon was not appearing in AMP * [Bugfix] Enabling the social media follow widget was giving fatal error if social sharing was disabled * [Improvement] Code quality improvement * [Improvement] Performance improvement

Download this release

Release Info

Developer the_champ
Plugin Icon 128x128 WordPress Social Share, Social Login and Social Comments Plugin – Super Socializer
Version 7.13.33
Comparing to
See all releases

Code changes from version 7.13.32 to 7.13.33

helper.php CHANGED
@@ -831,7 +831,7 @@ function the_champ_sharing_meta_setup(){
831
  }
832
 
833
  /**
834
- * Save sharing meta fields.
835
  */
836
  function the_champ_save_sharing_meta($postId){
837
  // make sure data came from our meta box
@@ -849,10 +849,7 @@ function the_champ_save_sharing_meta($postId){
849
  }
850
  }
851
  if(isset($_POST['_the_champ_meta'])){
852
- $newData = $_POST['_the_champ_meta'];
853
- foreach($newData as $k => $v){
854
- $newData[$k] = intval(sanitize_text_field($v));
855
- }
856
  }else{
857
  $newData = array('sharing' => 0, 'vertical_sharing' => 0, 'counter' => 0, 'vertical_counter' => 0, 'fb_comments' => 0);
858
  }
@@ -860,6 +857,13 @@ function the_champ_save_sharing_meta($postId){
860
  return $postId;
861
  }
862
 
 
 
 
 
 
 
 
863
  /**
864
  * Override sanitize_user function to allow cyrillic usernames
865
  */
@@ -894,11 +898,11 @@ function the_champ_social_avatar_options(){
894
  $dontUpdateAvatar = get_user_meta($user_ID, 'thechamp_dontupdate_avatar', true);
895
  }
896
  if(isset($_POST['ss_small_avatar']) && heateor_ss_validate_url($_POST['ss_small_avatar']) !== false){
897
- $updatedSmallAvatar = str_replace('http://', '//', esc_url(trim($_POST['ss_small_avatar'])));
898
  update_user_meta($user_ID, 'thechamp_avatar', $updatedSmallAvatar);
899
  }
900
  if(isset($_POST['ss_large_avatar']) && heateor_ss_validate_url($_POST['ss_large_avatar']) !== false){
901
- $updatedLargeAvatar = str_replace('http://', '//', esc_url(trim($_POST['ss_large_avatar'])));
902
  update_user_meta($user_ID, 'thechamp_large_avatar', $updatedLargeAvatar);
903
  }
904
  ?>
@@ -1097,4 +1101,14 @@ function heateor_ss_add_safe_styles($styles){
1097
 
1098
  return $styles;
1099
  }
1100
- add_filter('safe_style_css', 'heateor_ss_add_safe_styles', 10, 1);
 
 
 
 
 
 
 
 
 
 
831
  }
832
 
833
  /**
834
+ * Save sharing meta fields
835
  */
836
  function the_champ_save_sharing_meta($postId){
837
  // make sure data came from our meta box
849
  }
850
  }
851
  if(isset($_POST['_the_champ_meta'])){
852
+ $newData = array_map("the_champ_sanitize_post_meta", $_POST['_the_champ_meta']);
 
 
 
853
  }else{
854
  $newData = array('sharing' => 0, 'vertical_sharing' => 0, 'counter' => 0, 'vertical_counter' => 0, 'fb_comments' => 0);
855
  }
857
  return $postId;
858
  }
859
 
860
+ /**
861
+ * Save sharing meta fields
862
+ */
863
+ function the_champ_sanitize_post_meta($postMetaValue){
864
+ return intval(sanitize_text_field($postMetaValue));
865
+ }
866
+
867
  /**
868
  * Override sanitize_user function to allow cyrillic usernames
869
  */
898
  $dontUpdateAvatar = get_user_meta($user_ID, 'thechamp_dontupdate_avatar', true);
899
  }
900
  if(isset($_POST['ss_small_avatar']) && heateor_ss_validate_url($_POST['ss_small_avatar']) !== false){
901
+ $updatedSmallAvatar = str_replace('http://', '//', sanitize_url(trim($_POST['ss_small_avatar'])));
902
  update_user_meta($user_ID, 'thechamp_avatar', $updatedSmallAvatar);
903
  }
904
  if(isset($_POST['ss_large_avatar']) && heateor_ss_validate_url($_POST['ss_large_avatar']) !== false){
905
+ $updatedLargeAvatar = str_replace('http://', '//', sanitize_url(trim($_POST['ss_large_avatar'])));
906
  update_user_meta($user_ID, 'thechamp_large_avatar', $updatedLargeAvatar);
907
  }
908
  ?>
1101
 
1102
  return $styles;
1103
  }
1104
+ add_filter('safe_style_css', 'heateor_ss_add_safe_styles', 10, 1);
1105
+
1106
+ /**
1107
+ * Check if current page is an AMP
1108
+ */
1109
+ function the_champ_is_amp_page(){
1110
+ if((function_exists('is_amp_endpoint') && is_amp_endpoint()) || (function_exists('ampforwp_is_amp_endpoint') && ampforwp_is_amp_endpoint())){
1111
+ return true;
1112
+ }
1113
+ return false;
1114
+ }
inc/shortcode.php CHANGED
@@ -36,7 +36,7 @@ function the_champ_sharing_shortcode($params){
36
  $targetUrl = $url;
37
  $postId = 0;
38
  }elseif(is_front_page()){
39
- $targetUrl = esc_url(home_url());
40
  $postId = 0;
41
  }elseif(!is_singular() && $type == 'vertical'){
42
  $targetUrl = esc_url_raw(the_champ_get_http().$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"]);
@@ -135,7 +135,7 @@ function the_champ_counter_shortcode($params){
135
  $targetUrl = $url;
136
  $postId = 0;
137
  }elseif(is_front_page()){
138
- $targetUrl = esc_url(home_url());
139
  $postId = 0;
140
  }elseif(!is_singular() && $type == 'vertical'){
141
  $targetUrl = esc_url_raw(the_champ_get_http().$_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]);
@@ -260,7 +260,7 @@ function the_champ_fb_commenting_shortcode($params){
260
  global $heateor_fcm_options;
261
  $html .= '<div class="heateor_ss_fb_comments_optin_container"><label><input type="checkbox" class="heateor_ss_fb_comments_optin" value="1" />'. str_replace($heateor_fcm_options['ppu_placeholder'], '<a href="'. $heateor_fcm_options['privacy_policy_url'] .'" target="_blank">'. $heateor_fcm_options['ppu_placeholder'] .'</a>', wp_strip_all_tags($heateor_fcm_options['privacy_policy_optin_text'])) .'</label></div>';
262
  }
263
- $html .= '<div class="fb-comments" data-href="' .($url == '' ? esc_url(the_champ_get_http().$_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]) : $url). '"';
264
  $html .= ' data-numposts="' . $num_posts . '"';
265
  $html .= ' data-width="' . ($width == '' ? '100%' : $width) . '"';
266
  $html .= ' ></div></div><script type="text/javascript" src="//connect.facebook.net/' . $language . '/sdk.js
36
  $targetUrl = $url;
37
  $postId = 0;
38
  }elseif(is_front_page()){
39
+ $targetUrl = esc_url_raw(home_url());
40
  $postId = 0;
41
  }elseif(!is_singular() && $type == 'vertical'){
42
  $targetUrl = esc_url_raw(the_champ_get_http().$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"]);
135
  $targetUrl = $url;
136
  $postId = 0;
137
  }elseif(is_front_page()){
138
+ $targetUrl = esc_url_raw(home_url());
139
  $postId = 0;
140
  }elseif(!is_singular() && $type == 'vertical'){
141
  $targetUrl = esc_url_raw(the_champ_get_http().$_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]);
260
  global $heateor_fcm_options;
261
  $html .= '<div class="heateor_ss_fb_comments_optin_container"><label><input type="checkbox" class="heateor_ss_fb_comments_optin" value="1" />'. str_replace($heateor_fcm_options['ppu_placeholder'], '<a href="'. $heateor_fcm_options['privacy_policy_url'] .'" target="_blank">'. $heateor_fcm_options['ppu_placeholder'] .'</a>', wp_strip_all_tags($heateor_fcm_options['privacy_policy_optin_text'])) .'</label></div>';
262
  }
263
+ $html .= '<div class="fb-comments" data-href="' .($url == '' ? sanitize_url(the_champ_get_http().$_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]) : $url). '"';
264
  $html .= ' data-numposts="' . $num_posts . '"';
265
  $html .= ' data-width="' . ($width == '' ? '100%' : $width) . '"';
266
  $html .= ' ></div></div><script type="text/javascript" src="//connect.facebook.net/' . $language . '/sdk.js
inc/social_login.php CHANGED
@@ -850,7 +850,7 @@ function the_champ_user_auth($profileData, $provider = 'facebook', $twitterRedir
850
  the_champ_link_account($profileData['id'], $profileData['provider'], $user_ID);
851
  the_champ_close_login_popup(admin_url() . '/profile.php'); //** may be BP profile/custom profile page/wp profile page
852
  }else{
853
- the_champ_close_login_popup(esc_url(home_url()).'?SuperSocializerUnverified=1');
854
  }
855
  }
856
  if(is_user_logged_in()){
@@ -961,7 +961,7 @@ function the_champ_user_auth($profileData, $provider = 'facebook', $twitterRedir
961
  $serializedProfileData = maybe_serialize($profileData);
962
  $uniqueId = mt_rand();
963
  update_user_meta($uniqueId, 'the_champ_temp_data', $serializedProfileData);
964
- the_champ_close_login_popup(esc_url(home_url()).'?SuperSocializerEmail=1&par='.$uniqueId);
965
  }
966
  }
967
  // check if email exists in the database
@@ -1111,7 +1111,7 @@ add_action('wp_ajax_nopriv_the_champ_save_email', 'the_champ_save_email');
1111
  */
1112
  function the_champ_send_verification_email($receiverEmail, $verificationKey){
1113
  $subject = "[".wp_specialchars_decode(trim(get_option('blogname')), ENT_QUOTES)."] " . __('Email Verification', 'super-socializer');
1114
- $url = esc_url(home_url())."?SuperSocializerKey=".$verificationKey;
1115
  $message = __("Please click on the following link or paste it in browser to verify your email", 'super-socializer') . "\r\n" . $url;
1116
  wp_mail($receiverEmail, $subject, $message);
1117
  }
850
  the_champ_link_account($profileData['id'], $profileData['provider'], $user_ID);
851
  the_champ_close_login_popup(admin_url() . '/profile.php'); //** may be BP profile/custom profile page/wp profile page
852
  }else{
853
+ the_champ_close_login_popup(home_url().'?SuperSocializerUnverified=1');
854
  }
855
  }
856
  if(is_user_logged_in()){
961
  $serializedProfileData = maybe_serialize($profileData);
962
  $uniqueId = mt_rand();
963
  update_user_meta($uniqueId, 'the_champ_temp_data', $serializedProfileData);
964
+ the_champ_close_login_popup(home_url().'?SuperSocializerEmail=1&par='.$uniqueId);
965
  }
966
  }
967
  // check if email exists in the database
1111
  */
1112
  function the_champ_send_verification_email($receiverEmail, $verificationKey){
1113
  $subject = "[".wp_specialchars_decode(trim(get_option('blogname')), ENT_QUOTES)."] " . __('Email Verification', 'super-socializer');
1114
+ $url = esc_url_raw(home_url())."?SuperSocializerKey=".$verificationKey;
1115
  $message = __("Please click on the following link or paste it in browser to verify your email", 'super-socializer') . "\r\n" . $url;
1116
  wp_mail($receiverEmail, $subject, $message);
1117
  }
inc/social_sharing.php CHANGED
@@ -11,11 +11,11 @@ function the_champ_prepare_sharing_html($postUrl, $shareCountUrl, $sharingType,
11
 
12
  global $post, $theChampSharingOptions;
13
 
14
- if(NULL === $post ||!is_object($post )){
15
  $post = get_post($shareCountTransientId );
16
  }
17
 
18
- if(!is_object($post )){
19
  return '';
20
  }
21
 
@@ -246,7 +246,7 @@ function the_champ_prepare_sharing_html($postUrl, $shareCountUrl, $sharingType,
246
  if ( $displayCount ) {
247
  $liItems .= $counterContainerInitHtml . '">&nbsp;' . $counterContainerEndHtml;
248
  }
249
- $liItems .= '<span class="the_champ_svg" style="background-color:#ee8e2d;' . str_replace( array( 'style="', ';"' ), array( '', ';display:inline-block!important;opacity:1;float:left;font-size:32px!important;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;display:inline;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box;' ), $style ) . '" onclick="theChampMoreSharingPopup(this, \'' . htmlentities( addslashes( esc_url( $postUrl ) ), ENT_QUOTES ) . '\', \'' . $postTitle . '\', \'' . heateor_ss_sanitize_post_title( heateor_ss_wpseo_twitter_title( $post ) ) . '\' )">';
250
  if ( the_champ_is_amp_page() ) {
251
  $liItems .= '<i title="More" class="theChampSharing theChampMoreBackground"><i class="theChampSharingSvg theChampMoreSvg"></i></i></li>';
252
  } else{
@@ -500,16 +500,6 @@ function the_champ_generate_counter_bitly_url($url, $postId = 0){
500
  return false;
501
  }
502
 
503
- /**
504
- * Check if current page is AMP page
505
- */
506
- function the_champ_is_amp_page(){
507
- if((function_exists('is_amp_endpoint') && is_amp_endpoint()) || (function_exists('ampforwp_is_amp_endpoint') && ampforwp_is_amp_endpoint())){
508
- return true;
509
- }
510
- return false;
511
- }
512
-
513
  /**
514
  * Generate short url for like buttons
515
  */
@@ -766,7 +756,7 @@ function the_champ_render_sharing($content){
766
  $postUrl = get_permalink($post->ID);
767
  $shareCountUrl = $postUrl;
768
  if((isset($_SERVER['QUERY_STRING']) && $_SERVER['QUERY_STRING']) || $postUrl == ''){
769
- $postUrl = esc_url( str_replace( array( '%3Cscript%3E', '%3C/script%3E', '%2Fscript', '%3Bscript' ), '', the_champ_get_http() . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"] ) );
770
  }
771
  if($shareCountUrl == ''){
772
  $shareCountUrl = $postUrl;
@@ -848,11 +838,11 @@ function the_champ_render_sharing($content){
848
  $postUrl = get_permalink($post->ID);
849
  $shareCountUrl = $postUrl;
850
  if(!is_singular()){
851
- $postUrl = esc_url( str_replace( array( '%3Cscript%3E', '%3C/script%3E', '%2Fscript', '%3Bscript' ), '', the_champ_get_http() . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"] ) );
852
  $postId = 0;
853
  $shareCountUrl = $postUrl;
854
  }elseif((isset($_SERVER['QUERY_STRING']) && $_SERVER['QUERY_STRING']) || $postUrl == ''){
855
- $postUrl = esc_url( str_replace( array( '%3Cscript%3E', '%3C/script%3E', '%2Fscript', '%3Bscript' ), '', the_champ_get_http() . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"] ) );
856
  }
857
  if($shareCountUrl == ''){
858
  $shareCountUrl = $postUrl;
@@ -955,17 +945,22 @@ if(isset($theChampSharingOptions['woocom_thankyou']) || isset($theChampCounterOp
955
  }
956
 
957
  /**
958
- * Get sharing count for providers
 
 
 
 
 
 
 
 
 
959
  */
960
  function the_champ_sharing_count(){
961
  if(isset($_GET['urls']) && is_array($_GET['urls']) && count($_GET['urls']) > 0){
962
- $targetUrls = array_unique($_GET['urls']);
963
- foreach($targetUrls as $k => $v){
964
- if(heateor_ss_validate_url($v) === false){
965
- unset($targetUrls[$k]);
966
- }else{
967
- $targetUrls[$k] = sanitize_url($v);
968
- }
969
  }
970
  }else{
971
  the_champ_ajax_response(array('status' => 0, 'message' => __('Invalid request')));
@@ -1196,15 +1191,19 @@ function heateor_ss_update_share_counts($targetUrl, $shareCounts){
1196
  }
1197
  }
1198
 
 
 
 
 
 
 
 
1199
  /**
1200
  * Save Facebook share counts in transient
1201
  */
1202
  function the_champ_save_facebook_shares(){
1203
  if(isset($_GET['share_counts']) && is_array($_GET['share_counts']) && count($_GET['share_counts']) > 0){
1204
- $targetUrls = $_GET['share_counts'];
1205
- foreach($targetUrls as $k => $v){
1206
- $targetUrls[sanitize_url($k)] = intval($v);
1207
- }
1208
  }else{
1209
  the_champ_ajax_response(array('status' => 0, 'message' => __('Invalid request')));
1210
  }
11
 
12
  global $post, $theChampSharingOptions;
13
 
14
+ if(NULL === $post ||!is_object($post)){
15
  $post = get_post($shareCountTransientId );
16
  }
17
 
18
+ if(!is_object($post)){
19
  return '';
20
  }
21
 
246
  if ( $displayCount ) {
247
  $liItems .= $counterContainerInitHtml . '">&nbsp;' . $counterContainerEndHtml;
248
  }
249
+ $liItems .= '<span class="the_champ_svg" style="background-color:#ee8e2d;' . str_replace( array( 'style="', ';"' ), array( '', ';display:inline-block!important;opacity:1;float:left;font-size:32px!important;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;display:inline;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box;' ), $style ) . '" onclick="theChampMoreSharingPopup(this, \'' . htmlentities( addslashes( esc_url( $postUrl ) ), ENT_QUOTES ) . '\', \'' . $postTitle . '\', \'' . heateor_ss_sanitize_post_title( heateor_ss_wpseo_twitter_title( $post) ) . '\' )">';
250
  if ( the_champ_is_amp_page() ) {
251
  $liItems .= '<i title="More" class="theChampSharing theChampMoreBackground"><i class="theChampSharingSvg theChampMoreSvg"></i></i></li>';
252
  } else{
500
  return false;
501
  }
502
 
 
 
 
 
 
 
 
 
 
 
503
  /**
504
  * Generate short url for like buttons
505
  */
756
  $postUrl = get_permalink($post->ID);
757
  $shareCountUrl = $postUrl;
758
  if((isset($_SERVER['QUERY_STRING']) && $_SERVER['QUERY_STRING']) || $postUrl == ''){
759
+ $postUrl = sanitize_url(str_replace(array('%3Cscript%3E', '%3C/script%3E', '%2Fscript', '%3Bscript'), '', the_champ_get_http().$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"]));
760
  }
761
  if($shareCountUrl == ''){
762
  $shareCountUrl = $postUrl;
838
  $postUrl = get_permalink($post->ID);
839
  $shareCountUrl = $postUrl;
840
  if(!is_singular()){
841
+ $postUrl = sanitize_url(str_replace(array('%3Cscript%3E', '%3C/script%3E', '%2Fscript', '%3Bscript'), '', the_champ_get_http().$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"]));
842
  $postId = 0;
843
  $shareCountUrl = $postUrl;
844
  }elseif((isset($_SERVER['QUERY_STRING']) && $_SERVER['QUERY_STRING']) || $postUrl == ''){
845
+ $postUrl = sanitize_url(str_replace(array('%3Cscript%3E', '%3C/script%3E', '%2Fscript', '%3Bscript'), '', the_champ_get_http().$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"]));
846
  }
847
  if($shareCountUrl == ''){
848
  $shareCountUrl = $postUrl;
945
  }
946
 
947
  /**
948
+ * Sanitize the URLs of passed array
949
+ */
950
+ function the_champ_sanitize_url_array($url){
951
+ if(heateor_ss_validate_url($url) !== false){
952
+ return sanitize_url($url);
953
+ }
954
+ }
955
+
956
+ /**
957
+ * Get share counts for social networks
958
  */
959
  function the_champ_sharing_count(){
960
  if(isset($_GET['urls']) && is_array($_GET['urls']) && count($_GET['urls']) > 0){
961
+ $targetUrls = array_map('the_champ_sanitize_url_array', array_unique($_GET['urls']));
962
+ if(!is_array($targetUrls)){
963
+ $targetUrls = array();
 
 
 
 
964
  }
965
  }else{
966
  the_champ_ajax_response(array('status' => 0, 'message' => __('Invalid request')));
1191
  }
1192
  }
1193
 
1194
+ /**
1195
+ * Sanitize the share counts of the passed array
1196
+ */
1197
+ function the_champ_sanitize_share_count_array($shareCount){
1198
+ return sanitize_text_field($shareCount);
1199
+ }
1200
+
1201
  /**
1202
  * Save Facebook share counts in transient
1203
  */
1204
  function the_champ_save_facebook_shares(){
1205
  if(isset($_GET['share_counts']) && is_array($_GET['share_counts']) && count($_GET['share_counts']) > 0){
1206
+ $targetUrls = array_map('the_champ_sanitize_share_count_array', $_GET['share_counts']);
 
 
 
1207
  }else{
1208
  the_champ_ajax_response(array('status' => 0, 'message' => __('Invalid request')));
1209
  }
inc/widget.php CHANGED
@@ -72,7 +72,7 @@ class TheChampLoginWidget extends WP_Widget {
72
  $defaults = array('title' => __('Login with your Social Account', 'super-socializer'), 'title_after' => '', 'before_widget_content' => '', 'after_widget_content' => '');
73
 
74
  foreach($instance as $key => $value){
75
- if( is_string($value)){
76
  $instance[ $key ] = esc_attr($value);
77
  }
78
  }
@@ -81,17 +81,17 @@ class TheChampLoginWidget extends WP_Widget {
81
  ?>
82
  <p>
83
  <p><strong>Note:</strong> <?php _e('Make sure Social Login is enabled at "Super Socializer > Social Login" page.', 'super-socializer') ?></p>
84
- <label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title (before login):', 'super-socializer'); ?></label>
85
- <input style="width: 95%" class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo $instance['title']; ?>" />
86
- <label for="<?php echo $this->get_field_id('title_after'); ?>"><?php _e('Title (after login):', 'super-socializer'); ?></label>
87
- <input style="width: 95%" class="widefat" id="<?php echo $this->get_field_id('title_after'); ?>" name="<?php echo $this->get_field_name('title_after'); ?>" type="text" value="<?php echo esc_attr($instance['title_after']); ?>" />
88
- <label for="<?php echo $this->get_field_id('before_widget_content'); ?>"><?php _e('Before widget content:', 'super-socializer'); ?></label>
89
- <input class="widefat" id="<?php echo $this->get_field_id('before_widget_content'); ?>" name="<?php echo $this->get_field_name('before_widget_content'); ?>" type="text" value="<?php echo esc_attr($instance['before_widget_content']); ?>" />
90
- <label for="<?php echo $this->get_field_id('after_widget_content'); ?>"><?php _e('After widget content:', 'super-socializer'); ?></label>
91
- <input class="widefat" id="<?php echo $this->get_field_id('after_widget_content'); ?>" name="<?php echo $this->get_field_name('after_widget_content'); ?>" type="text" value="<?php echo esc_attr($instance['after_widget_content']); ?>" />
92
  <br /><br />
93
- <label for="<?php echo $this->get_field_id('hide_for_logged_in'); ?>"><?php _e('Hide for logged in users:', 'super-socializer'); ?></label>
94
- <input type="checkbox" id="<?php echo $this->get_field_id('hide_for_logged_in'); ?>" name="<?php echo $this->get_field_name('hide_for_logged_in'); ?>" type="text" value="1" <?php if(isset($instance['hide_for_logged_in']) && $instance['hide_for_logged_in']==1) echo 'checked="checked"'; ?> />
95
  </p>
96
  <?php
97
  }
@@ -134,15 +134,15 @@ class TheChampSharingWidget extends WP_Widget {
134
  $postId = 0;
135
  }elseif(isset($instance['target_url'])){
136
  if($instance['target_url'] == 'default'){
137
- $sharingUrl = esc_url(the_champ_get_http().$_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]);
138
  if(is_home()){
139
- $sharingUrl = esc_url(home_url());
140
  $postId = 0;
141
  }elseif(!is_singular()){
142
- $sharingUrl = esc_url(the_champ_get_http().$_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]);
143
  $postId = 0;
144
  }elseif(isset($_SERVER['QUERY_STRING']) && $_SERVER['QUERY_STRING']){
145
- $sharingUrl = esc_url(the_champ_get_http().$_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]);
146
  }elseif(get_permalink($post->ID)){
147
  $sharingUrl = get_permalink($post->ID);
148
  }
@@ -233,7 +233,7 @@ class TheChampSharingWidget extends WP_Widget {
233
  $defaults = array('title' => 'Share the joy', 'show_counts' => '', 'total_shares' => '', 'target_url' => 'default', 'target_url_custom' => '', 'before_widget_content' => '', 'after_widget_content' => '', 'hide_for_logged_in' => '');
234
 
235
  foreach($instance as $key => $value){
236
- if( is_string($value)){
237
  $instance[ $key ] = esc_attr($value);
238
  }
239
  }
@@ -250,27 +250,27 @@ class TheChampSharingWidget extends WP_Widget {
250
  }
251
  </script>
252
  <p>
253
- <p><strong>Note:</strong> <?php _e('Make sure "Standard Social Sharing" is enabled at "Super Socializer > Social Sharing" page.', 'super-socializer') ?></p>
254
- <label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title:', 'super-socializer'); ?></label>
255
- <input style="width: 95%" class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo esc_attr($instance['title']); ?>" /> <br/><br/>
256
- <label for="<?php echo $this->get_field_id('show_counts'); ?>"><?php _e('Show individual share counts:', 'super-socializer'); ?></label>
257
- <input id="<?php echo $this->get_field_id('show_counts'); ?>" name="<?php echo $this->get_field_name('show_counts'); ?>" type="checkbox" value="1" <?php echo isset($instance['show_counts']) && $instance['show_counts'] == 1 ? 'checked' : ''; ?> /><br/><br/>
258
- <label for="<?php echo $this->get_field_id('total_shares'); ?>"><?php _e('Show total shares:', 'super-socializer'); ?></label>
259
- <input id="<?php echo $this->get_field_id('total_shares'); ?>" name="<?php echo $this->get_field_name('total_shares'); ?>" type="checkbox" value="1" <?php echo isset($instance['total_shares']) && $instance['total_shares'] == 1 ? 'checked' : ''; ?> /><br/> <br/>
260
- <label for="<?php echo $this->get_field_id('target_url'); ?>"><?php _e('Target Url:', 'super-socializer'); ?></label>
261
- <select style="width: 95%" onchange="theChampToggleHorSharingTargetUrl(this.value)" class="widefat" id="<?php echo $this->get_field_id('target_url'); ?>" name="<?php echo $this->get_field_name('target_url'); ?>">
262
  <option value="">--<?php _e('Select', 'super-socializer') ?>--</option>
263
  <option value="default" <?php echo isset($instance['target_url']) && $instance['target_url'] == 'default' ? 'selected' : '' ; ?>><?php _e('Url of the webpage where icons are located (default)', 'super-socializer') ?></option>
264
  <option value="homepage" <?php echo isset($instance['target_url']) && $instance['target_url'] == 'homepage' ? 'selected' : '' ; ?>><?php _e('Url of the homepage of your website', 'super-socializer') ?></option>
265
  <option value="custom" <?php echo isset($instance['target_url']) && $instance['target_url'] == 'custom' ? 'selected' : '' ; ?>><?php _e('Custom Url', 'super-socializer') ?></option>
266
  </select>
267
- <input placeholder="<?php _e('Custom URL', 'super-socializer') ?>" style="margin-top: 5px; <?php echo !isset($instance['target_url']) || $instance['target_url'] != 'custom' ? 'display: none' : '' ; ?>" class="widefat theChampHorSharingTargetUrl" id="<?php echo $this->get_field_id('target_url_custom'); ?>" name="<?php echo $this->get_field_name('target_url_custom'); ?>" type="text" value="<?php echo isset($instance['target_url_custom']) ? esc_attr($instance['target_url_custom']) : ''; ?>" />
268
- <label for="<?php echo $this->get_field_id('before_widget_content'); ?>"><?php _e('Before widget content:', 'super-socializer'); ?></label>
269
- <input class="widefat" id="<?php echo $this->get_field_id('before_widget_content'); ?>" name="<?php echo $this->get_field_name('before_widget_content'); ?>" type="text" value="<?php echo esc_attr($instance['before_widget_content']); ?>" />
270
- <label for="<?php echo $this->get_field_id('after_widget_content'); ?>"><?php _e('After widget content:', 'super-socializer'); ?></label>
271
- <input class="widefat" id="<?php echo $this->get_field_id('after_widget_content'); ?>" name="<?php echo $this->get_field_name('after_widget_content'); ?>" type="text" value="<?php echo esc_attr($instance['after_widget_content']); ?>" />
272
- <br /><br /><label for="<?php echo $this->get_field_id('hide_for_logged_in'); ?>"><?php _e('Hide for logged in users:', 'super-socializer'); ?></label>
273
- <input type="checkbox" id="<?php echo $this->get_field_id('hide_for_logged_in'); ?>" name="<?php echo $this->get_field_name('hide_for_logged_in'); ?>" type="text" value="1" <?php if(isset($instance['hide_for_logged_in']) && $instance['hide_for_logged_in']==1) echo 'checked="checked"'; ?> />
274
  </p>
275
  <?php
276
  }
@@ -313,15 +313,15 @@ class TheChampVerticalSharingWidget extends WP_Widget {
313
  $postId = 0;
314
  }elseif(isset($instance['target_url'])){
315
  if($instance['target_url'] == 'default'){
316
- $sharingUrl = esc_url(the_champ_get_http().$_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]);
317
  if(is_home()){
318
  $sharingUrl = esc_url(home_url());
319
  $postId = 0;
320
  }elseif(!is_singular()){
321
- $sharingUrl = esc_url(the_champ_get_http().$_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]);
322
  $postId = 0;
323
  }elseif(isset($_SERVER['QUERY_STRING']) && $_SERVER['QUERY_STRING']){
324
- $sharingUrl = esc_url(the_champ_get_http().$_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]);
325
  }elseif(get_permalink($post->ID)){
326
  $sharingUrl = get_permalink($post->ID);
327
  }
@@ -405,7 +405,7 @@ class TheChampVerticalSharingWidget extends WP_Widget {
405
  $defaults = array('alignment' => 'left', 'show_counts' => '', 'total_shares' => '', 'left_offset' => '40', 'right_offset' => '0', 'target_url' => 'default', 'target_url_custom' => '', 'top_offset' => '100', 'vertical_bg' => '', 'hide_for_logged_in' => '');
406
 
407
  foreach($instance as $key => $value){
408
- if( is_string($value)){
409
  $instance[ $key ] = esc_attr($value);
410
  }
411
  }
@@ -432,42 +432,39 @@ class TheChampVerticalSharingWidget extends WP_Widget {
432
  }
433
  </script>
434
  <p><strong>Note:</strong> <?php _e('Make sure "Floating Social Sharing" is enabled at "Super Socializer > Social Sharing" page.', 'super-socializer') ?></p>
435
- <label for="<?php echo $this->get_field_id('show_counts'); ?>"><?php _e('Show individual share counts:', 'super-socializer'); ?></label>
436
- <input id="<?php echo $this->get_field_id('show_counts'); ?>" name="<?php echo $this->get_field_name('show_counts'); ?>" type="checkbox" value="1" <?php echo isset($instance['show_counts']) && $instance['show_counts'] == 1 ? 'checked' : ''; ?> /><br/><br/>
437
- <label for="<?php echo $this->get_field_id('total_shares'); ?>"><?php _e('Show total shares:', 'super-socializer'); ?></label>
438
- <input id="<?php echo $this->get_field_id('total_shares'); ?>" name="<?php echo $this->get_field_name('total_shares'); ?>" type="checkbox" value="1" <?php echo isset($instance['total_shares']) && $instance['total_shares'] == 1 ? 'checked' : ''; ?> /><br/> <br/>
439
- <label for="<?php echo $this->get_field_id('target_url'); ?>"><?php _e('Target Url:', 'super-socializer'); ?></label>
440
- <select style="width: 95%" onchange="theChampToggleVerticalSharingTargetUrl(this.value)" class="widefat" id="<?php echo $this->get_field_id('target_url'); ?>" name="<?php echo $this->get_field_name('target_url'); ?>">
441
  <option value="">--<?php _e('Select', 'super-socializer') ?>--</option>
442
- <option value="default" <?php echo isset($instance['target_url']) && $instance['target_url'] == 'default' ? 'selected' : '' ; ?>><?php _e('Url of the webpage where icons are located (default)', 'super-socializer
443
- ') ?></option>
444
- <option value="homepage" <?php echo isset($instance['target_url']) && $instance['target_url'] == 'homepage' ? 'selected' : '' ; ?>><?php _e('Url of the homepage of your website', 'super-socializer
445
- ') ?></option>
446
- <option value="custom" <?php echo isset($instance['target_url']) && $instance['target_url'] == 'custom' ? 'selected' : '' ; ?>><?php _e('Custom Url', 'super-socializer
447
- ') ?></option>
448
  </select>
449
- <input placeholder="<?php _e('Custom URL', 'super-socializer') ?>" style="width:95%; margin-top: 5px; <?php echo !isset($instance['target_url']) || $instance['target_url'] != 'custom' ? 'display: none' : '' ; ?>" class="widefat theChampVerticalSharingTargetUrl" id="<?php echo $this->get_field_id('target_url_custom'); ?>" name="<?php echo $this->get_field_name('target_url_custom'); ?>" type="text" value="<?php echo isset($instance['target_url_custom']) ? esc_attr($instance['target_url_custom']) : ''; ?>" />
450
- <label for="<?php echo $this->get_field_id('alignment'); ?>"><?php _e('Alignment', 'super-socializer'); ?></label>
451
- <select onchange="theChampToggleSharingOffset(this.value)" style="width: 95%" class="widefat" id="<?php echo $this->get_field_id('alignment'); ?>" name="<?php echo $this->get_field_name('alignment'); ?>">
452
  <option value="left" <?php echo $instance['alignment'] == 'left' ? 'selected' : ''; ?>><?php _e('Left', 'super-socializer') ?></option>
453
  <option value="right" <?php echo $instance['alignment'] == 'right' ? 'selected' : ''; ?>><?php _e('Right', 'super-socializer') ?></option>
454
  </select>
455
  <div class="theChampSharingLeftOffset" <?php echo $instance['alignment'] == 'right' ? 'style="display: none"' : ''; ?>>
456
- <label for="<?php echo $this->get_field_id('left_offset'); ?>"><?php _e('Left Offset', 'super-socializer'); ?></label>
457
- <input style="width: 95%" class="widefat" id="<?php echo $this->get_field_id('left_offset'); ?>" name="<?php echo $this->get_field_name('left_offset'); ?>" type="text" value="<?php echo esc_attr($instance['left_offset']); ?>" />px<br/>
458
  </div>
459
  <div class="theChampSharingRightOffset" <?php echo $instance['alignment'] == 'left' ? 'style="display: none"' : ''; ?>>
460
- <label for="<?php echo $this->get_field_id('right_offset'); ?>"><?php _e('Right Offset', 'super-socializer'); ?></label>
461
- <input style="width: 95%" class="widefat" id="<?php echo $this->get_field_id('right_offset'); ?>" name="<?php echo $this->get_field_name('right_offset'); ?>" type="text" value="<?php echo esc_attr($instance['right_offset']); ?>" />px<br/>
462
  </div>
463
- <label for="<?php echo $this->get_field_id('top_offset'); ?>"><?php _e('Top Offset', 'super-socializer'); ?></label>
464
- <input style="width: 95%" class="widefat" id="<?php echo $this->get_field_id('top_offset'); ?>" name="<?php echo $this->get_field_name('top_offset'); ?>" type="text" value="<?php echo esc_attr($instance['top_offset']); ?>" />px<br/>
465
 
466
- <label for="<?php echo $this->get_field_id('vertical_bg'); ?>"><?php _e('Background Color', 'super-socializer'); ?></label>
467
- <input style="width: 95%" class="widefat" id="<?php echo $this->get_field_id('vertical_bg'); ?>" name="<?php echo $this->get_field_name('vertical_bg'); ?>" type="text" value="<?php echo esc_attr($instance['vertical_bg']); ?>" />
468
 
469
- <br /><br /><label for="<?php echo $this->get_field_id('hide_for_logged_in'); ?>"><?php _e('Hide for logged in users:', 'super-socializer'); ?></label>
470
- <input type="checkbox" id="<?php echo $this->get_field_id('hide_for_logged_in'); ?>" name="<?php echo $this->get_field_name('hide_for_logged_in'); ?>" type="text" value="1" <?php if(isset($instance['hide_for_logged_in']) && $instance['hide_for_logged_in']==1) echo 'checked="checked"'; ?> />
471
  </p>
472
  <?php
473
  }
@@ -507,15 +504,15 @@ class TheChampCounterWidget extends WP_Widget {
507
  $postId = 0;
508
  }elseif(isset($instance['target_url'])){
509
  if($instance['target_url'] == 'default'){
510
- $counterUrl = esc_url(the_champ_get_http().$_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]);
511
  if(is_home()){
512
  $counterUrl = esc_url(home_url());
513
  $postId = 0;
514
  }elseif(!is_singular()){
515
- $counterUrl = esc_url(the_champ_get_http().$_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]);
516
  $postId = 0;
517
  }elseif(isset($_SERVER['QUERY_STRING']) && $_SERVER['QUERY_STRING']){
518
- $counterUrl = esc_url(the_champ_get_http().$_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]);
519
  }elseif(get_permalink($post->ID)){
520
  $counterUrl = get_permalink($post->ID);
521
  }
@@ -583,7 +580,7 @@ class TheChampCounterWidget extends WP_Widget {
583
  $defaults = array('title' => 'Share the joy', 'before_widget_content' => '', 'after_widget_content' => '', 'target_url_custom' => '', 'target_url' => 'default');
584
 
585
  foreach($instance as $key => $value){
586
- if( is_string($value)){
587
  $instance[ $key ] = esc_attr($value);
588
  }
589
  }
@@ -601,22 +598,22 @@ class TheChampCounterWidget extends WP_Widget {
601
  </script>
602
  <p>
603
  <p><strong>Note:</strong> <?php _e('Make sure "Standard Like Buttons" are enabled from "Super Socializer > Like Buttons" page.', 'super-socializer') ?></p>
604
- <label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title:', 'super-socializer'); ?></label>
605
- <input style="width: 95%" class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo esc_attr($instance['title']); ?>" />
606
- <label for="<?php echo $this->get_field_id('target_url'); ?>"><?php _e('Target Url:', 'super-socializer'); ?></label>
607
- <select style="width: 95%" onchange="theChampToggleHorCounterTargetUrl(this.value)" class="widefat" id="<?php echo $this->get_field_id('target_url'); ?>" name="<?php echo $this->get_field_name('target_url'); ?>">
608
  <option value="">--<?php _e('Select', 'super-socializer') ?>--</option>
609
  <option value="default" <?php echo isset($instance['target_url']) && $instance['target_url'] == 'default' ? 'selected' : '' ; ?>><?php _e('Url of the webpage where icons are located (default)', 'super-socializer') ?></option>
610
  <option value="homepage" <?php echo isset($instance['target_url']) && $instance['target_url'] == 'homepage' ? 'selected' : '' ; ?>><?php _e('Url of the homepage of your website', 'super-socializer') ?></option>
611
  <option value="custom" <?php echo isset($instance['target_url']) && $instance['target_url'] == 'custom' ? 'selected' : '' ; ?>><?php _e('Custom Url', 'super-socializer') ?></option>
612
  </select>
613
- <input placeholder="<?php _e('Custom URL', 'super-socializer') ?>" style="width:95%; margin-top: 5px; <?php echo !isset($instance['target_url']) || $instance['target_url'] != 'custom' ? 'display: none' : '' ; ?>" class="widefat theChampHorCounterTargetUrl" id="<?php echo $this->get_field_id('target_url_custom'); ?>" name="<?php echo $this->get_field_name('target_url_custom'); ?>" type="text" value="<?php echo isset($instance['target_url_custom']) ? esc_attr($instance['target_url_custom']) : ''; ?>" />
614
- <label for="<?php echo $this->get_field_id('before_widget_content'); ?>"><?php _e('Before widget content:', 'super-socializer'); ?></label>
615
- <input class="widefat" id="<?php echo $this->get_field_id('before_widget_content'); ?>" name="<?php echo $this->get_field_name('before_widget_content'); ?>" type="text" value="<?php echo $instance['before_widget_content']; ?>" />
616
- <label for="<?php echo $this->get_field_id('after_widget_content'); ?>"><?php _e('After widget content:', 'super-socializer'); ?></label>
617
- <input class="widefat" id="<?php echo $this->get_field_id('after_widget_content'); ?>" name="<?php echo $this->get_field_name('after_widget_content'); ?>" type="text" value="<?php echo $instance['after_widget_content']; ?>" />
618
- <br /><br /><label for="<?php echo $this->get_field_id('hide_for_logged_in'); ?>"><?php _e('Hide for logged in users:', 'super-socializer'); ?></label>
619
- <input type="checkbox" id="<?php echo $this->get_field_id('hide_for_logged_in'); ?>" name="<?php echo $this->get_field_name('hide_for_logged_in'); ?>" type="text" value="1" <?php if(isset($instance['hide_for_logged_in']) && $instance['hide_for_logged_in']==1) echo 'checked="checked"'; ?> />
620
  </p>
621
  <?php
622
  }
@@ -655,15 +652,15 @@ class TheChampVerticalCounterWidget extends WP_Widget {
655
  $postId = 0;
656
  }elseif(isset($instance['target_url'])){
657
  if($instance['target_url'] == 'default'){
658
- $counterUrl = esc_url(the_champ_get_http().$_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]);
659
  if(is_home()){
660
  $counterUrl = esc_url(home_url());
661
  $postId = 0;
662
  }elseif(!is_singular()){
663
- $counterUrl = esc_url(the_champ_get_http().$_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]);
664
  $postId = 0;
665
  }elseif(isset($_SERVER['QUERY_STRING']) && $_SERVER['QUERY_STRING']){
666
- $counterUrl = esc_url(the_champ_get_http().$_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]);
667
  }elseif(get_permalink($post->ID)){
668
  $counterUrl = get_permalink($post->ID);
669
  }
@@ -724,7 +721,7 @@ class TheChampVerticalCounterWidget extends WP_Widget {
724
  $defaults = array('alignment' => 'left', 'left_offset' => '40', 'right_offset' => '0', 'top_offset' => '100', 'vertical_bg' => '', 'target_url' => 'default', 'target_url_custom' => '');
725
 
726
  foreach($instance as $key => $value){
727
- if( is_string($value)){
728
  $instance[ $key ] = esc_attr($value);
729
  }
730
  }
@@ -752,35 +749,35 @@ class TheChampVerticalCounterWidget extends WP_Widget {
752
  </script>
753
  <p>
754
  <p><strong>Note:</strong> <?php _e('Make sure "Floating Like Buttons" are enabled from "Super Socializer > Like Buttons" page.', 'super-socializer') ?></p>
755
- <label for="<?php echo $this->get_field_id('target_url'); ?>"><?php _e('Target Url:', 'super-socializer'); ?></label>
756
- <select style="width: 95%" onchange="theChampToggleVerticalCounterTargetUrl(this.value)" class="widefat" id="<?php echo $this->get_field_id('target_url'); ?>" name="<?php echo $this->get_field_name('target_url'); ?>">
757
  <option value="">--<?php _e('Select', 'super-socializer') ?>--</option>
758
  <option value="default" <?php echo isset($instance['target_url']) && $instance['target_url'] == 'default' ? 'selected' : '' ; ?>><?php _e('Url of the webpage where icons are located (default)', 'super-socializer'); ?></option>
759
  <option value="homepage" <?php echo isset($instance['target_url']) && $instance['target_url'] == 'homepage' ? 'selected' : '' ; ?>><?php _e('Url of the homepage of your website', 'super-socializer'); ?></option>
760
  <option value="custom" <?php echo isset($instance['target_url']) && $instance['target_url'] == 'custom' ? 'selected' : '' ; ?>><?php _e('Custom Url', 'super-socializer'); ?></option>
761
  </select>
762
- <input placeholder="<?php _e('Custom URL', 'super-socializer') ?>" style="width:95%; margin-top: 5px; <?php echo !isset($instance['target_url']) || $instance['target_url'] != 'custom' ? 'display: none' : '' ; ?>" class="widefat theChampVerticalCounterTargetUrl" id="<?php echo $this->get_field_id('target_url_custom'); ?>" name="<?php echo $this->get_field_name('target_url_custom'); ?>" type="text" value="<?php echo isset($instance['target_url_custom']) ? $instance['target_url_custom'] : ''; ?>" />
763
- <label for="<?php echo $this->get_field_id('alignment'); ?>"><?php _e('Alignment', 'super-socializer'); ?></label>
764
- <select style="width: 95%" onchange="theChampToggleCounterOffset(this.value)" class="widefat" id="<?php echo $this->get_field_id('alignment'); ?>" name="<?php echo $this->get_field_name('alignment'); ?>">
765
  <option value="left" <?php echo $instance['alignment'] == 'left' ? 'selected' : ''; ?>><?php _e('Left', 'super-socializer') ?></option>
766
  <option value="right" <?php echo $instance['alignment'] == 'right' ? 'selected' : ''; ?>><?php _e('Right', 'super-socializer') ?></option>
767
  </select>
768
  <div class="theChampCounterLeftOffset" <?php echo $instance['alignment'] == 'right' ? 'style="display: none"' : ''; ?>>
769
- <label for="<?php echo $this->get_field_id('left_offset'); ?>"><?php _e('Left Offset', 'super-socializer'); ?></label>
770
- <input style="width: 95%" class="widefat" id="<?php echo $this->get_field_id('left_offset'); ?>" name="<?php echo $this->get_field_name('left_offset'); ?>" type="text" value="<?php echo esc_attr($instance['left_offset']); ?>" />px<br/>
771
  </div>
772
  <div class="theChampCounterRightOffset" <?php echo $instance['alignment'] == 'left' ? 'style="display: none"' : ''; ?>>
773
- <label for="<?php echo $this->get_field_id('right_offset'); ?>"><?php _e('Right Offset', 'super-socializer'); ?></label>
774
- <input style="width: 95%" class="widefat" id="<?php echo $this->get_field_id('right_offset'); ?>" name="<?php echo $this->get_field_name('right_offset'); ?>" type="text" value="<?php echo esc_attr($instance['right_offset']); ?>" />px<br/>
775
  </div>
776
- <label for="<?php echo $this->get_field_id('top_offset'); ?>"><?php _e('Top Offset', 'super-socializer'); ?></label>
777
- <input style="width: 95%" class="widefat" id="<?php echo $this->get_field_id('top_offset'); ?>" name="<?php echo $this->get_field_name('top_offset'); ?>" type="text" value="<?php echo esc_attr($instance['top_offset']); ?>" />px<br/>
778
 
779
- <label for="<?php echo $this->get_field_id('vertical_bg'); ?>"><?php _e('Background Color', 'super-socializer'); ?></label>
780
- <input style="width: 95%" class="widefat" id="<?php echo $this->get_field_id('vertical_bg'); ?>" name="<?php echo $this->get_field_name('vertical_bg'); ?>" type="text" value="<?php echo esc_attr($instance['vertical_bg']); ?>" />
781
 
782
- <br /><br /><label for="<?php echo $this->get_field_id('hide_for_logged_in'); ?>"><?php _e('Hide for logged in users:', 'super-socializer'); ?></label>
783
- <input type="checkbox" id="<?php echo $this->get_field_id('hide_for_logged_in'); ?>" name="<?php echo $this->get_field_name('hide_for_logged_in'); ?>" type="text" value="1" <?php if(isset($instance['hide_for_logged_in']) && $instance['hide_for_logged_in']==1) echo 'checked="checked"'; ?> />
784
  </p>
785
  <?php
786
  }
@@ -803,7 +800,7 @@ class TheChampFollowWidget extends WP_Widget {
803
 
804
  /** This is rendered widget content */
805
  public function widget($args, $instance){
806
- if( the_champ_is_amp_page()){
807
  return;
808
  }
809
  extract($args );
@@ -820,16 +817,16 @@ class TheChampFollowWidget extends WP_Widget {
820
  $check_theme = 'floating_';
821
  }
822
  $style = '';
823
- if($instance['type'] == 'floating'){
824
  $style = 'position:fixed;top:' . (isset($instance['top_offset']) ? intval($instance['top_offset']) : 100 ) . 'px;' . (isset($instance['alignment']) && $instance['alignment'] == 'left' ? 'left' : 'right') . ':' . (isset($instance['alignment_value']) ? intval($instance['alignment_value']) : 100 ) . 'px;width:' . (isset($instance['size']) ? intval($instance['size']) : 32 ) . 'px;';
825
  }
826
  global $heateorSsAllowedTags;
827
- echo wp_kses('<div style="' . $style . '" class="heateor_ss_' . $check_theme . 'follow_icons_container' . (isset($instance['bottom_mobile_sharing']) ? ' heateor_ss_bottom_follow' : '') . '">', $heateorSsAllowedTags);
828
  if(!empty($instance['title'])){
829
  $title = apply_filters('widget_title', $instance['title']);
830
- echo $before_title . $title . $after_title;
831
  }
832
- echo $this->follow_icons($instance);
833
  echo '<div style="clear:both"></div>';
834
  echo '</div>';
835
  if(!empty($instance['after_widget_content'])){
@@ -842,8 +839,12 @@ class TheChampFollowWidget extends WP_Widget {
842
  private function follow_icons($instance){
843
  $logo_color = '#fff';
844
  $html = '';
845
- if(isset($instance['type']) && $instance['type'] == 'standard' && isset($instance['hor_alignment']) && $instance['hor_alignment'] == "center" ){
846
- $html .= '<style>div.heateor_ss_follow_ul{width:100%;text-align:center;}.widget_thechampfollow div.heateor_ss_follow_ul a{float:none!important;display:inline-block;}</style>';
 
 
 
 
847
  }
848
  if(isset($instance['hide_mobile_sharing']) && $instance['vertical_screen_width'] != ''){
849
  $html .= '<style>@media screen and (max-width:' . $instance['vertical_screen_width'] . 'px){.the_champ_floating_follow_icons_container{display:none!important}}</style>';
@@ -984,6 +985,8 @@ class TheChampFollowWidget extends WP_Widget {
984
  $instance['size'] = intval($new_instance['size']);
985
  $instance['custom_color'] = $new_instance['custom_color'] ;
986
  $instance['icon_shape'] = $new_instance['icon_shape'];
 
 
987
  $instance['type'] = $new_instance['type'];
988
  $instance['facebook'] = $new_instance['facebook'];
989
  $instance['twitter'] = $new_instance['twitter'];
@@ -1019,31 +1022,37 @@ class TheChampFollowWidget extends WP_Widget {
1019
  /** Widget options in admin panel */
1020
  public function form($instance){
1021
  /* Set up default widget settings. */
1022
- $defaults = array('hor_alignment' => 'left', 'title' => '', 'type' => 'standard', 'alignment' => 'right', 'size' => '32', 'icon_shape' => 'round', 'custom_color' => '', 'facebook' => '', 'twitter' => '', 'instagram' => '', 'gettr' => '', 'gab' => '', 'parler' => '', 'pinterest' => '', 'behance' => '', 'flickr' => '', 'foursquare' => '', 'github' => '', 'gitlab' => '', 'linkedin' => '', 'linkedin_company' => '', 'medium' => '', 'mewe' => '', 'odnoklassniki' => '', 'telegram' => '', 'tumblr' => '', 'vimeo' => '', 'vkontakte' => '', 'whatsapp' => '', 'xing' => '', 'youtube' => '', 'youtube_channel' => '', 'rss_feed' => '', 'before_widget_content' => '', 'after_widget_content' => '', 'top_offset' => '200', 'alignment_value' => '0', 'mobile_sharing' => '1', 'bottom_mobile_sharing' => '1', 'vertical_screen_width' => '783', 'horizontal_screen_width' => '783', 'bottom_sharing_alignment' => 'left', 'bottom_sharing_position_radio' => 'responsive', 'bottom_sharing_position' => '0');
1023
 
1024
  foreach($instance as $key => $value){
1025
- if( is_string($value)){
1026
  $instance[ $key ] = esc_attr($value);
1027
  }
1028
  }
1029
 
1030
- $instance = wp_parse_args( (array)$instance, $defaults );
1031
  ?>
1032
  <p>
1033
- <label for="<?php echo $this->get_field_id('before_widget_content'); ?>"><?php _e('Before widget content:', 'super-socializer'); ?></label>
1034
- <input class="widefat" id="<?php echo $this->get_field_id('before_widget_content'); ?>" name="<?php echo $this->get_field_name('before_widget_content'); ?>" type="text" value="<?php echo esc_attr($instance['before_widget_content']); ?>" /><br/><br/>
1035
- <label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title', 'super-socializer'); ?></label>
1036
- <input style="width: 95%" class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo esc_attr($instance['title']); ?>" /><br/><br/>
 
 
 
 
 
 
1037
  <label for="<?php echo esc_attr($this->get_field_id('mode_standard')); ?>"><?php _e('Type:', 'super-socializer') ?></label><br>
1038
- <input id="<?php echo esc_attr($this->get_field_id('mode_standard')); ?>" type="radio" onclick="jQuery('.heateorSssFloatingAlignment').css('display', 'none');" name="<?php echo esc_attr($this->get_field_name('type')); ?>" value="standard" <?php if(! isset($instance['type']) || $instance['type'] == 'standard'){
1039
  echo "checked";
1040
  } ?>><label for="<?php echo esc_attr($this->get_field_id('mode_standard')); ?>"> <?php _e('Standard', 'super-socializer') ?></label><br>
1041
- <input id="<?php echo esc_attr($this->get_field_id('mode_floating')); ?>" type="radio" name="<?php echo esc_attr($this->get_field_name('type')); ?>" onclick="jQuery('.heateorSssFloatingAlignment').css('display', 'block');" value="floating" <?php if($instance['type'] == 'floating'){
1042
  echo "checked";
1043
  }?>><label for="<?php echo esc_attr($this->get_field_id('mode_floating')); ?>"> <?php _e('Floating', 'super-socializer') ?></label><br><br>
1044
 
1045
- <div class="heateorSssFloatingAlignment"
1046
- <?php echo $instance['type'] == 'standard' ? "style='display:none'" : "style='display:block'" ?>>
1047
  <label for="<?php echo esc_attr($this->get_field_id('top_offset')); ?>">
1048
  <?php _e('Top offset:', 'super-socializer') ?>
1049
  </label>
@@ -1088,10 +1097,10 @@ class TheChampFollowWidget extends WP_Widget {
1088
  <br>
1089
  <br>
1090
  </div>
1091
- <label for="<?php echo $this->get_field_id('size'); ?>"><?php _e('Size of icons', 'super-socializer'); ?></label>
1092
- <input style="width: 82%" class="widefat" id="<?php echo $this->get_field_id('size'); ?>" name="<?php echo $this->get_field_name('size'); ?>" type="text" value="<?php echo $instance['size']; ?>" />pixels<br/><br/>
1093
- <label for="<?php echo $this->get_field_id('icon_shape'); ?>"><?php _e('Icon Shape', 'super-socializer'); ?></label>
1094
- <select style="width: 95%" class="widefat" id="<?php echo $this->get_field_id('icon_shape'); ?>" name="<?php echo $this->get_field_name('icon_shape'); ?>">
1095
  <option value="round" <?php echo !isset($instance['icon_shape']) || $instance['icon_shape'] == 'round' ? 'selected' : '' ; ?>><?php _e('Round', 'super-socializer'); ?></option>
1096
  <option value="square" <?php echo isset($instance['icon_shape']) && $instance['icon_shape'] == 'square' ? 'selected' : '' ; ?>><?php _e('Square', 'super-socializer'); ?></option>
1097
  </select><br/><br/>
@@ -1101,74 +1110,74 @@ class TheChampFollowWidget extends WP_Widget {
1101
  <option value="standard" <?php echo isset($instance['custom_color']) && $instance['custom_color'] == 'standard' ? 'selected' : '' ; ?>><?php _e('Yes, Standard Interface Theme', 'super-socializer'); ?></option>
1102
  <option value="floating" <?php echo isset($instance['custom_color']) && $instance['custom_color'] == 'floating' ? 'selected' : '' ; ?>><?php _e('Yes, Floating Interface Theme', 'super-socializer'); ?></option>
1103
  </select><br/><br/>
1104
- <label for="<?php echo $this->get_field_id('facebook'); ?>"><?php _e('Facebook URL:', 'super-socializer'); ?></label>
1105
- <input style="width: 95%" class="widefat" id="<?php echo $this->get_field_id('facebook'); ?>" name="<?php echo $this->get_field_name('facebook'); ?>" type="text" value="<?php echo esc_attr($instance['facebook']); ?>" /><br/>
1106
  <span>https://www.facebook.com/ID</span><br/><br/>
1107
- <label for="<?php echo $this->get_field_id('twitter'); ?>"><?php _e('Twitter URL:', 'super-socializer'); ?></label>
1108
- <input style="width: 95%" class="widefat" id="<?php echo $this->get_field_id('twitter'); ?>" name="<?php echo $this->get_field_name('twitter'); ?>" type="text" value="<?php echo esc_attr($instance['twitter']); ?>" /><br/>
1109
  <span>https://twitter.com/ID</span><br/><br/>
1110
- <label for="<?php echo $this->get_field_id('parler'); ?>"><?php _e('Parler URL:', 'super-socializer'); ?></label>
1111
- <input style="width: 95%" class="widefat" id="<?php echo $this->get_field_id('parler'); ?>" name="<?php echo $this->get_field_name('parler'); ?>" type="text" value="<?php echo esc_attr($instance['parler']); ?>" /><br/>
1112
  <span>https://parler.com/profile/ID</span><br/><br/>
1113
- <label for="<?php echo $this->get_field_id('instagram'); ?>"><?php _e('Instagram URL:', 'super-socializer'); ?></label>
1114
- <input style="width: 95%" class="widefat" id="<?php echo $this->get_field_id('instagram'); ?>" name="<?php echo $this->get_field_name('instagram'); ?>" type="text" value="<?php echo esc_attr($instance['instagram']); ?>" /><br/>
1115
  <span>https://www.instagram.com/ID</span><br/><br/>
1116
- <label for="<?php echo $this->get_field_id('pinterest'); ?>"><?php _e('Pinterest URL:', 'super-socializer'); ?></label>
1117
- <input style="width: 95%" class="widefat" id="<?php echo $this->get_field_id('pinterest'); ?>" name="<?php echo $this->get_field_name('pinterest'); ?>" type="text" value="<?php echo esc_attr($instance['pinterest']); ?>" /><br/>
1118
  <span>https://www.pinterest.com/ID</span><br/><br/>
1119
- <label for="<?php echo $this->get_field_id('behance'); ?>"><?php _e('Behance URL:', 'super-socializer'); ?></label>
1120
- <input style="width: 95%" class="widefat" id="<?php echo $this->get_field_id('behance'); ?>" name="<?php echo $this->get_field_name('behance'); ?>" type="text" value="<?php echo esc_attr($instance['behance']); ?>" /><br/>
1121
  <span>https://www.behance.net/ID</span><br/><br/>
1122
- <label for="<?php echo $this->get_field_id('flickr'); ?>"><?php _e('Flickr URL:', 'super-socializer'); ?></label>
1123
- <input style="width: 95%" class="widefat" id="<?php echo $this->get_field_id('flickr'); ?>" name="<?php echo $this->get_field_name('flickr'); ?>" type="text" value="<?php echo esc_attr($instance['flickr']); ?>" /><br/>
1124
  <span>https://www.flickr.com/photos/ID</span><br/><br/>
1125
- <label for="<?php echo $this->get_field_id('foursquare'); ?>"><?php _e('Foursquare URL:', 'super-socializer'); ?></label>
1126
- <input style="width: 95%" class="widefat" id="<?php echo $this->get_field_id('foursquare'); ?>" name="<?php echo $this->get_field_name('foursquare'); ?>" type="text" value="<?php echo esc_attr($instance['foursquare']); ?>" /><br/>
1127
  <span>https://foursquare.com/ID</span><br/><br/>
1128
- <label for="<?php echo $this->get_field_id('github'); ?>"><?php _e('Github URL:', 'super-socializer'); ?></label>
1129
- <input style="width: 95%" class="widefat" id="<?php echo $this->get_field_id('github'); ?>" name="<?php echo $this->get_field_name('github'); ?>" type="text" value="<?php echo esc_attr($instance['github']); ?>" /><br/>
1130
  <span>https://github.com/ID</span><br/><br/>
1131
- <label for="<?php echo $this->get_field_id('linkedin'); ?>"><?php _e('LinkedIn URL:', 'super-socializer'); ?></label>
1132
- <input style="width: 95%" class="widefat" id="<?php echo $this->get_field_id('linkedin'); ?>" name="<?php echo $this->get_field_name('linkedin'); ?>" type="text" value="<?php echo esc_attr($instance['linkedin']); ?>" /><br/>
1133
  <span>https://www.linkedin.com/in/ID</span><br/><br/>
1134
- <label for="<?php echo $this->get_field_id('linkedin_company'); ?>"><?php _e('LinkedIn Company URL:', 'super-socializer'); ?></label>
1135
- <input style="width: 95%" class="widefat" id="<?php echo $this->get_field_id('linkedin_company'); ?>" name="<?php echo $this->get_field_name('linkedin_company'); ?>" type="text" value="<?php echo esc_attr($instance['linkedin_company']); ?>" /><br/>
1136
  <span>https://www.linkedin.com/company/ID</span><br/><br/>
1137
- <label for="<?php echo $this->get_field_id('medium'); ?>"><?php _e('Medium URL:', 'super-socializer'); ?></label>
1138
- <input style="width: 95%" class="widefat" id="<?php echo $this->get_field_id('medium'); ?>" name="<?php echo $this->get_field_name('medium'); ?>" type="text" value="<?php echo esc_attr($instance['medium']); ?>" /><br/>
1139
  <span>https://medium.com/@ID</span><br/><br/>
1140
- <label for="<?php echo $this->get_field_id('mewe'); ?>"><?php _e('MeWe URL:', 'super-socializer'); ?></label>
1141
- <input style="width: 95%" class="widefat" id="<?php echo $this->get_field_id('mewe'); ?>" name="<?php echo $this->get_field_name('mewe'); ?>" type="text" value="<?php echo esc_attr($instance['mewe']); ?>" /><br/>
1142
  <span>https://mewe.com/profile/ID</span><br/><br/>
1143
- <label for="<?php echo $this->get_field_id('odnoklassniki'); ?>"><?php _e('Odnoklassniki URL:', 'super-socializer'); ?></label>
1144
- <input style="width: 95%" class="widefat" id="<?php echo $this->get_field_id('odnoklassniki'); ?>" name="<?php echo $this->get_field_name('odnoklassniki'); ?>" type="text" value="<?php echo esc_attr($instance['odnoklassniki']); ?>" /><br/>
1145
  <span>https://ok.ru/profile/ID</span><br/><br/>
1146
- <label for="<?php echo $this->get_field_id('snapchat'); ?>"><?php _e('Snapchat URL:', 'super-socializer'); ?></label>
1147
- <input style="width: 95%" class="widefat" id="<?php echo $this->get_field_id('snapchat'); ?>" name="<?php echo $this->get_field_name('snapchat'); ?>" type="text" value="<?php echo esc_attr($instance['snapchat']); ?>" /><br/>
1148
  <span>https://www.snapchat.com/add/ID</span><br/><br/>
1149
- <label for="<?php echo $this->get_field_id('telegram'); ?>"><?php _e('Telegram URL:', 'super-socializer'); ?></label>
1150
- <input style="width: 95%" class="widefat" id="<?php echo $this->get_field_id('telegram'); ?>" name="<?php echo $this->get_field_name('telegram'); ?>" type="text" value="<?php echo esc_attr($instance['telegram']); ?>" /><br/>
1151
  <span>https://t.me/username</span><br/><br/>
1152
- <label for="<?php echo $this->get_field_id('tumblr'); ?>"><?php _e('Tumblr URL:', 'super-socializer'); ?></label>
1153
- <input style="width: 95%" class="widefat" id="<?php echo $this->get_field_id('tumblr'); ?>" name="<?php echo $this->get_field_name('tumblr'); ?>" type="text" value="<?php echo esc_attr($instance['tumblr']); ?>" /><br/>
1154
  <span>https://ID.tumblr.com</span><br/><br/>
1155
- <label for="<?php echo $this->get_field_id('vimeo'); ?>"><?php _e('Vimeo URL:', 'super-socializer'); ?></label>
1156
- <input style="width: 95%" class="widefat" id="<?php echo $this->get_field_id('vimeo'); ?>" name="<?php echo $this->get_field_name('vimeo'); ?>" type="text" value="<?php echo esc_attr($instance['vimeo']); ?>" /><br/>
1157
  <span>https://vimeo.com/ID</span><br/><br/>
1158
- <label for="<?php echo $this->get_field_id('vkontakte'); ?>"><?php _e('Vkontakte URL:', 'super-socializer'); ?></label>
1159
- <input style="width: 95%" class="widefat" id="<?php echo $this->get_field_id('vkontakte'); ?>" name="<?php echo $this->get_field_name('vkontakte'); ?>" type="text" value="<?php echo esc_attr($instance['vkontakte']); ?>" /><br/>
1160
  <span>https://vk.com/ID</span><br/><br/>
1161
- <label for="<?php echo $this->get_field_id('xing'); ?>"><?php _e('Xing URL:', 'super-socializer'); ?></label>
1162
- <input style="width: 95%" class="widefat" id="<?php echo $this->get_field_id('xing'); ?>" name="<?php echo $this->get_field_name('xing'); ?>" type="text" value="<?php echo esc_attr($instance['xing']); ?>" /><br/>
1163
  <span>https://www.xing.com/profile/ID</span><br/><br/>
1164
- <label for="<?php echo $this->get_field_id('youtube'); ?>"><?php _e('Youtube URL:', 'super-socializer'); ?></label>
1165
- <input style="width: 95%" class="widefat" id="<?php echo $this->get_field_id('youtube'); ?>" name="<?php echo $this->get_field_name('youtube'); ?>" type="text" value="<?php echo esc_attr($instance['youtube']); ?>" /><br/>
1166
  <span>https://www.youtube.com/user/ID</span><br/><br/>
1167
- <label for="<?php echo $this->get_field_id('youtube_channel'); ?>"><?php _e('Youtube Channel URL:', 'super-socializer'); ?></label>
1168
- <input style="width: 95%" class="widefat" id="<?php echo $this->get_field_id('youtube_channel'); ?>" name="<?php echo $this->get_field_name('youtube_channel'); ?>" type="text" value="<?php echo esc_attr($instance['youtube_channel']); ?>" /><br/>
1169
  <span>https://www.youtube.com/channel/ID</span><br/><br/>
1170
- <label for="<?php echo $this->get_field_id('rss_feed'); ?>"><?php _e('RSS Feed URL:', 'super-socializer'); ?></label>
1171
- <input style="width: 95%" class="widefat" id="<?php echo $this->get_field_id('rss_feed'); ?>" name="<?php echo $this->get_field_name('rss_feed'); ?>" type="text" value="<?php echo esc_attr($instance['rss_feed']); ?>" /><br/>
1172
  <span>http://www.example.com/feed/</span><br/><br/>
1173
  <label for="<?php echo esc_attr($this->get_field_id('gab')); ?>"><?php _e('Gab.com URL:', 'super-socializer'); ?></label>
1174
  <input style="width: 95%" class="widefat" id="<?php echo esc_attr($this->get_field_id('gab')); ?>" name="<?php echo esc_attr($this->get_field_name('gab')); ?>" type="text" value="<?php echo esc_attr($instance['gab']); ?>" /><br/>
@@ -1176,8 +1185,8 @@ class TheChampFollowWidget extends WP_Widget {
1176
  <label for="<?php echo esc_attr($this->get_field_id('gettr')); ?>"><?php _e('Gettr.com URL:', 'super-socializer'); ?></label>
1177
  <input style="width: 95%" class="widefat" id="<?php echo esc_attr($this->get_field_id('gettr')); ?>" name="<?php echo esc_attr($this->get_field_name('gettr')); ?>" type="text" value="<?php echo esc_attr($instance['gettr']); ?>" /><br/>
1178
  <span>https://www.gettr.com/user/ID</span><br/><br/>
1179
- <label for="<?php echo $this->get_field_id('after_widget_content'); ?>"><?php _e('After widget content:', 'super-socializer'); ?></label>
1180
- <input class="widefat" id="<?php echo $this->get_field_id('after_widget_content'); ?>" name="<?php echo $this->get_field_name('after_widget_content'); ?>" type="text" value="<?php echo esc_attr($instance['after_widget_content']); ?>" />
1181
  </p>
1182
  <?php
1183
  }
72
  $defaults = array('title' => __('Login with your Social Account', 'super-socializer'), 'title_after' => '', 'before_widget_content' => '', 'after_widget_content' => '');
73
 
74
  foreach($instance as $key => $value){
75
+ if(is_string($value)){
76
  $instance[ $key ] = esc_attr($value);
77
  }
78
  }
81
  ?>
82
  <p>
83
  <p><strong>Note:</strong> <?php _e('Make sure Social Login is enabled at "Super Socializer > Social Login" page.', 'super-socializer') ?></p>
84
+ <label for="<?php echo esc_attr($this->get_field_id('title')); ?>"><?php _e('Title (before login):', 'super-socializer'); ?></label>
85
+ <input style="width: 95%" class="widefat" id="<?php echo esc_attr($this->get_field_id('title')); ?>" name="<?php echo esc_attr($this->get_field_name('title')); ?>" type="text" value="<?php echo $instance['title']; ?>" />
86
+ <label for="<?php echo esc_attr($this->get_field_id('title_after')); ?>"><?php _e('Title (after login):', 'super-socializer'); ?></label>
87
+ <input style="width: 95%" class="widefat" id="<?php echo esc_attr($this->get_field_id('title_after')); ?>" name="<?php echo esc_attr($this->get_field_name('title_after')); ?>" type="text" value="<?php echo esc_attr($instance['title_after']); ?>" />
88
+ <label for="<?php echo esc_attr($this->get_field_id('before_widget_content')); ?>"><?php _e('Before widget content:', 'super-socializer'); ?></label>
89
+ <input class="widefat" id="<?php echo esc_attr($this->get_field_id('before_widget_content')); ?>" name="<?php echo esc_attr($this->get_field_name('before_widget_content')); ?>" type="text" value="<?php echo esc_attr($instance['before_widget_content']); ?>" />
90
+ <label for="<?php echo esc_attr($this->get_field_id('after_widget_content')); ?>"><?php _e('After widget content:', 'super-socializer'); ?></label>
91
+ <input class="widefat" id="<?php echo esc_attr($this->get_field_id('after_widget_content')); ?>" name="<?php echo esc_attr($this->get_field_name('after_widget_content')); ?>" type="text" value="<?php echo esc_attr($instance['after_widget_content']); ?>" />
92
  <br /><br />
93
+ <label for="<?php echo esc_attr($this->get_field_id('hide_for_logged_in')); ?>"><?php _e('Hide for logged in users:', 'super-socializer'); ?></label>
94
+ <input type="checkbox" id="<?php echo esc_attr($this->get_field_id('hide_for_logged_in')); ?>" name="<?php echo esc_attr($this->get_field_name('hide_for_logged_in')); ?>" type="text" value="1" <?php if(isset($instance['hide_for_logged_in']) && $instance['hide_for_logged_in']==1) echo 'checked="checked"'; ?> />
95
  </p>
96
  <?php
97
  }
134
  $postId = 0;
135
  }elseif(isset($instance['target_url'])){
136
  if($instance['target_url'] == 'default'){
137
+ $sharingUrl = sanitize_url(the_champ_get_http().$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"]);
138
  if(is_home()){
139
+ $sharingUrl = sanitize_url(home_url());
140
  $postId = 0;
141
  }elseif(!is_singular()){
142
+ $sharingUrl = sanitize_url(the_champ_get_http().$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"]);
143
  $postId = 0;
144
  }elseif(isset($_SERVER['QUERY_STRING']) && $_SERVER['QUERY_STRING']){
145
+ $sharingUrl = sanitize_url(the_champ_get_http().$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"]);
146
  }elseif(get_permalink($post->ID)){
147
  $sharingUrl = get_permalink($post->ID);
148
  }
233
  $defaults = array('title' => 'Share the joy', 'show_counts' => '', 'total_shares' => '', 'target_url' => 'default', 'target_url_custom' => '', 'before_widget_content' => '', 'after_widget_content' => '', 'hide_for_logged_in' => '');
234
 
235
  foreach($instance as $key => $value){
236
+ if(is_string($value)){
237
  $instance[ $key ] = esc_attr($value);
238
  }
239
  }
250
  }
251
  </script>
252
  <p>
253
+ <p><strong><?php _e('Note', 'super-socializer'); ?>:</strong><?php _e('Make sure "Standard Social Sharing" is enabled at "Super Socializer > Social Sharing" page.', 'super-socializer') ?></p>
254
+ <label for="<?php echo esc_attr($this->get_field_id('title')); ?>"><?php _e('Title:', 'super-socializer'); ?></label>
255
+ <input style="width: 95%" class="widefat" id="<?php echo esc_attr($this->get_field_id('title')); ?>" name="<?php echo esc_attr($this->get_field_name('title')); ?>" type="text" value="<?php echo esc_attr($instance['title']); ?>" /> <br/><br/>
256
+ <label for="<?php echo esc_attr($this->get_field_id('show_counts')); ?>"><?php _e('Show individual share counts:', 'super-socializer'); ?></label>
257
+ <input id="<?php echo esc_attr($this->get_field_id('show_counts')); ?>" name="<?php echo esc_attr($this->get_field_name('show_counts')); ?>" type="checkbox" value="1" <?php echo isset($instance['show_counts']) && $instance['show_counts'] == 1 ? 'checked' : ''; ?> /><br/><br/>
258
+ <label for="<?php echo esc_attr($this->get_field_id('total_shares')); ?>"><?php _e('Show total shares:', 'super-socializer'); ?></label>
259
+ <input id="<?php echo esc_attr($this->get_field_id('total_shares')); ?>" name="<?php echo esc_attr($this->get_field_name('total_shares')); ?>" type="checkbox" value="1" <?php echo isset($instance['total_shares']) && $instance['total_shares'] == 1 ? 'checked' : ''; ?> /><br/><br/>
260
+ <label for="<?php echo esc_attr($this->get_field_id('target_url')); ?>"><?php _e('Target Url:', 'super-socializer'); ?></label>
261
+ <select style="width: 95%" onchange="theChampToggleHorSharingTargetUrl(this.value)" class="widefat" id="<?php echo esc_attr($this->get_field_id('target_url')); ?>" name="<?php echo esc_attr($this->get_field_name('target_url')); ?>">
262
  <option value="">--<?php _e('Select', 'super-socializer') ?>--</option>
263
  <option value="default" <?php echo isset($instance['target_url']) && $instance['target_url'] == 'default' ? 'selected' : '' ; ?>><?php _e('Url of the webpage where icons are located (default)', 'super-socializer') ?></option>
264
  <option value="homepage" <?php echo isset($instance['target_url']) && $instance['target_url'] == 'homepage' ? 'selected' : '' ; ?>><?php _e('Url of the homepage of your website', 'super-socializer') ?></option>
265
  <option value="custom" <?php echo isset($instance['target_url']) && $instance['target_url'] == 'custom' ? 'selected' : '' ; ?>><?php _e('Custom Url', 'super-socializer') ?></option>
266
  </select>
267
+ <input placeholder="<?php _e('Custom URL', 'super-socializer') ?>" style="margin-top: 5px; <?php echo !isset($instance['target_url']) || $instance['target_url'] != 'custom' ? 'display: none' : '' ; ?>" class="widefat theChampHorSharingTargetUrl" id="<?php echo esc_attr($this->get_field_id('target_url_custom')); ?>" name="<?php echo esc_attr($this->get_field_name('target_url_custom')); ?>" type="text" value="<?php echo isset($instance['target_url_custom']) ? esc_attr($instance['target_url_custom']) : ''; ?>" />
268
+ <label for="<?php echo esc_attr($this->get_field_id('before_widget_content')); ?>"><?php _e('Before widget content:', 'super-socializer'); ?></label>
269
+ <input class="widefat" id="<?php echo esc_attr($this->get_field_id('before_widget_content')); ?>" name="<?php echo esc_attr($this->get_field_name('before_widget_content')); ?>" type="text" value="<?php echo esc_attr($instance['before_widget_content']); ?>" />
270
+ <label for="<?php echo esc_attr($this->get_field_id('after_widget_content')); ?>"><?php _e('After widget content:', 'super-socializer'); ?></label>
271
+ <input class="widefat" id="<?php echo esc_attr($this->get_field_id('after_widget_content')); ?>" name="<?php echo esc_attr($this->get_field_name('after_widget_content')); ?>" type="text" value="<?php echo esc_attr($instance['after_widget_content']); ?>" />
272
+ <br /><br /><label for="<?php echo esc_attr($this->get_field_id('hide_for_logged_in')); ?>"><?php _e('Hide for logged in users:', 'super-socializer'); ?></label>
273
+ <input type="checkbox" id="<?php echo esc_attr($this->get_field_id('hide_for_logged_in')); ?>" name="<?php echo esc_attr($this->get_field_name('hide_for_logged_in')); ?>" type="text" value="1" <?php if(isset($instance['hide_for_logged_in']) && $instance['hide_for_logged_in']==1) echo 'checked="checked"'; ?> />
274
  </p>
275
  <?php
276
  }
313
  $postId = 0;
314
  }elseif(isset($instance['target_url'])){
315
  if($instance['target_url'] == 'default'){
316
+ $sharingUrl = sanitize_url(the_champ_get_http().$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"]);
317
  if(is_home()){
318
  $sharingUrl = esc_url(home_url());
319
  $postId = 0;
320
  }elseif(!is_singular()){
321
+ $sharingUrl = sanitize_url(the_champ_get_http().$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"]);
322
  $postId = 0;
323
  }elseif(isset($_SERVER['QUERY_STRING']) && $_SERVER['QUERY_STRING']){
324
+ $sharingUrl = sanitize_url(the_champ_get_http().$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"]);
325
  }elseif(get_permalink($post->ID)){
326
  $sharingUrl = get_permalink($post->ID);
327
  }
405
  $defaults = array('alignment' => 'left', 'show_counts' => '', 'total_shares' => '', 'left_offset' => '40', 'right_offset' => '0', 'target_url' => 'default', 'target_url_custom' => '', 'top_offset' => '100', 'vertical_bg' => '', 'hide_for_logged_in' => '');
406
 
407
  foreach($instance as $key => $value){
408
+ if(is_string($value)){
409
  $instance[ $key ] = esc_attr($value);
410
  }
411
  }
432
  }
433
  </script>
434
  <p><strong>Note:</strong> <?php _e('Make sure "Floating Social Sharing" is enabled at "Super Socializer > Social Sharing" page.', 'super-socializer') ?></p>
435
+ <label for="<?php echo esc_attr($this->get_field_id('show_counts')); ?>"><?php _e('Show individual share counts:', 'super-socializer'); ?></label>
436
+ <input id="<?php echo esc_attr($this->get_field_id('show_counts')); ?>" name="<?php echo esc_attr($this->get_field_name('show_counts')); ?>" type="checkbox" value="1" <?php echo isset($instance['show_counts']) && $instance['show_counts'] == 1 ? 'checked' : ''; ?> /><br/><br/>
437
+ <label for="<?php echo esc_attr($this->get_field_id('total_shares')); ?>"><?php _e('Show total shares:', 'super-socializer'); ?></label>
438
+ <input id="<?php echo esc_attr($this->get_field_id('total_shares')); ?>" name="<?php echo esc_attr($this->get_field_name('total_shares')); ?>" type="checkbox" value="1" <?php echo isset($instance['total_shares']) && $instance['total_shares'] == 1 ? 'checked' : ''; ?> /><br/> <br/>
439
+ <label for="<?php echo esc_attr($this->get_field_id('target_url')); ?>"><?php _e('Target Url:', 'super-socializer'); ?></label>
440
+ <select style="width: 95%" onchange="theChampToggleVerticalSharingTargetUrl(this.value)" class="widefat" id="<?php echo esc_attr($this->get_field_id('target_url')); ?>" name="<?php echo esc_attr($this->get_field_name('target_url')); ?>">
441
  <option value="">--<?php _e('Select', 'super-socializer') ?>--</option>
442
+ <option value="default" <?php echo isset($instance['target_url']) && $instance['target_url'] == 'default' ? 'selected' : '' ; ?>><?php _e('Url of the webpage where icons are located (default)', 'super-socializer') ?></option>
443
+ <option value="homepage" <?php echo isset($instance['target_url']) && $instance['target_url'] == 'homepage' ? 'selected' : '' ; ?>><?php _e('Url of the homepage of your website', 'super-socializer ') ?></option>
444
+ <option value="custom" <?php echo isset($instance['target_url']) && $instance['target_url'] == 'custom' ? 'selected' : '' ; ?>><?php _e('Custom Url', 'super-socializer') ?></option>
 
 
 
445
  </select>
446
+ <input placeholder="<?php _e('Custom URL', 'super-socializer') ?>" style="width:95%; margin-top: 5px; <?php echo !isset($instance['target_url']) || $instance['target_url'] != 'custom' ? 'display: none' : '' ; ?>" class="widefat theChampVerticalSharingTargetUrl" id="<?php echo esc_attr($this->get_field_id('target_url_custom')); ?>" name="<?php echo esc_attr($this->get_field_name('target_url_custom')); ?>" type="text" value="<?php echo isset($instance['target_url_custom']) ? esc_attr($instance['target_url_custom']) : ''; ?>" />
447
+ <label for="<?php echo esc_attr($this->get_field_id('alignment')); ?>"><?php _e('Alignment', 'super-socializer'); ?></label>
448
+ <select onchange="theChampToggleSharingOffset(this.value)" style="width: 95%" class="widefat" id="<?php echo esc_attr($this->get_field_id('alignment')); ?>" name="<?php echo esc_attr($this->get_field_name('alignment')); ?>">
449
  <option value="left" <?php echo $instance['alignment'] == 'left' ? 'selected' : ''; ?>><?php _e('Left', 'super-socializer') ?></option>
450
  <option value="right" <?php echo $instance['alignment'] == 'right' ? 'selected' : ''; ?>><?php _e('Right', 'super-socializer') ?></option>
451
  </select>
452
  <div class="theChampSharingLeftOffset" <?php echo $instance['alignment'] == 'right' ? 'style="display: none"' : ''; ?>>
453
+ <label for="<?php echo esc_attr($this->get_field_id('left_offset')); ?>"><?php _e('Left Offset', 'super-socializer'); ?></label>
454
+ <input style="width: 95%" class="widefat" id="<?php echo esc_attr($this->get_field_id('left_offset')); ?>" name="<?php echo esc_attr($this->get_field_name('left_offset')); ?>" type="text" value="<?php echo esc_attr($instance['left_offset']); ?>" />px<br/>
455
  </div>
456
  <div class="theChampSharingRightOffset" <?php echo $instance['alignment'] == 'left' ? 'style="display: none"' : ''; ?>>
457
+ <label for="<?php echo esc_attr($this->get_field_id('right_offset')); ?>"><?php _e('Right Offset', 'super-socializer'); ?></label>
458
+ <input style="width: 95%" class="widefat" id="<?php echo esc_attr($this->get_field_id('right_offset')); ?>" name="<?php echo esc_attr($this->get_field_name('right_offset')); ?>" type="text" value="<?php echo esc_attr($instance['right_offset']); ?>" />px<br/>
459
  </div>
460
+ <label for="<?php echo esc_attr($this->get_field_id('top_offset')); ?>"><?php _e('Top Offset', 'super-socializer'); ?></label>
461
+ <input style="width: 95%" class="widefat" id="<?php echo esc_attr($this->get_field_id('top_offset')); ?>" name="<?php echo esc_attr($this->get_field_name('top_offset')); ?>" type="text" value="<?php echo esc_attr($instance['top_offset']); ?>" />px<br/>
462
 
463
+ <label for="<?php echo esc_attr($this->get_field_id('vertical_bg')); ?>"><?php _e('Background Color', 'super-socializer'); ?></label>
464
+ <input style="width: 95%" class="widefat" id="<?php echo esc_attr($this->get_field_id('vertical_bg')); ?>" name="<?php echo esc_attr($this->get_field_name('vertical_bg')); ?>" type="text" value="<?php echo esc_attr($instance['vertical_bg']); ?>" />
465
 
466
+ <br /><br /><label for="<?php echo esc_attr($this->get_field_id('hide_for_logged_in')); ?>"><?php _e('Hide for logged in users:', 'super-socializer'); ?></label>
467
+ <input type="checkbox" id="<?php echo esc_attr($this->get_field_id('hide_for_logged_in')); ?>" name="<?php echo esc_attr($this->get_field_name('hide_for_logged_in')); ?>" type="text" value="1" <?php if(isset($instance['hide_for_logged_in']) && $instance['hide_for_logged_in']==1) echo 'checked="checked"'; ?> />
468
  </p>
469
  <?php
470
  }
504
  $postId = 0;
505
  }elseif(isset($instance['target_url'])){
506
  if($instance['target_url'] == 'default'){
507
+ $counterUrl = sanitize_url(the_champ_get_http().$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"]);
508
  if(is_home()){
509
  $counterUrl = esc_url(home_url());
510
  $postId = 0;
511
  }elseif(!is_singular()){
512
+ $counterUrl = sanitize_url(the_champ_get_http().$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"]);
513
  $postId = 0;
514
  }elseif(isset($_SERVER['QUERY_STRING']) && $_SERVER['QUERY_STRING']){
515
+ $counterUrl = sanitize_url(the_champ_get_http().$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"]);
516
  }elseif(get_permalink($post->ID)){
517
  $counterUrl = get_permalink($post->ID);
518
  }
580
  $defaults = array('title' => 'Share the joy', 'before_widget_content' => '', 'after_widget_content' => '', 'target_url_custom' => '', 'target_url' => 'default');
581
 
582
  foreach($instance as $key => $value){
583
+ if(is_string($value)){
584
  $instance[ $key ] = esc_attr($value);
585
  }
586
  }
598
  </script>
599
  <p>
600
  <p><strong>Note:</strong> <?php _e('Make sure "Standard Like Buttons" are enabled from "Super Socializer > Like Buttons" page.', 'super-socializer') ?></p>
601
+ <label for="<?php echo esc_attr($this->get_field_id('title')); ?>"><?php _e('Title:', 'super-socializer'); ?></label>
602
+ <input style="width: 95%" class="widefat" id="<?php echo esc_attr($this->get_field_id('title')); ?>" name="<?php echo esc_attr($this->get_field_name('title')); ?>" type="text" value="<?php echo esc_attr($instance['title']); ?>" />
603
+ <label for="<?php echo esc_attr($this->get_field_id('target_url')); ?>"><?php _e('Target Url:', 'super-socializer'); ?></label>
604
+ <select style="width: 95%" onchange="theChampToggleHorCounterTargetUrl(this.value)" class="widefat" id="<?php echo esc_attr($this->get_field_id('target_url')); ?>" name="<?php echo esc_attr($this->get_field_name('target_url')); ?>">
605
  <option value="">--<?php _e('Select', 'super-socializer') ?>--</option>
606
  <option value="default" <?php echo isset($instance['target_url']) && $instance['target_url'] == 'default' ? 'selected' : '' ; ?>><?php _e('Url of the webpage where icons are located (default)', 'super-socializer') ?></option>
607
  <option value="homepage" <?php echo isset($instance['target_url']) && $instance['target_url'] == 'homepage' ? 'selected' : '' ; ?>><?php _e('Url of the homepage of your website', 'super-socializer') ?></option>
608
  <option value="custom" <?php echo isset($instance['target_url']) && $instance['target_url'] == 'custom' ? 'selected' : '' ; ?>><?php _e('Custom Url', 'super-socializer') ?></option>
609
  </select>
610
+ <input placeholder="<?php _e('Custom URL', 'super-socializer') ?>" style="width:95%; margin-top: 5px; <?php echo !isset($instance['target_url']) || $instance['target_url'] != 'custom' ? 'display: none' : '' ; ?>" class="widefat theChampHorCounterTargetUrl" id="<?php echo esc_attr($this->get_field_id('target_url_custom')); ?>" name="<?php echo esc_attr($this->get_field_name('target_url_custom')); ?>" type="text" value="<?php echo isset($instance['target_url_custom']) ? esc_attr($instance['target_url_custom']) : ''; ?>" />
611
+ <label for="<?php echo esc_attr($this->get_field_id('before_widget_content')); ?>"><?php _e('Before widget content:', 'super-socializer'); ?></label>
612
+ <input class="widefat" id="<?php echo esc_attr($this->get_field_id('before_widget_content')); ?>" name="<?php echo esc_attr($this->get_field_name('before_widget_content')); ?>" type="text" value="<?php echo $instance['before_widget_content']; ?>" />
613
+ <label for="<?php echo esc_attr($this->get_field_id('after_widget_content')); ?>"><?php _e('After widget content:', 'super-socializer'); ?></label>
614
+ <input class="widefat" id="<?php echo esc_attr($this->get_field_id('after_widget_content')); ?>" name="<?php echo esc_attr($this->get_field_name('after_widget_content')); ?>" type="text" value="<?php echo $instance['after_widget_content']; ?>" />
615
+ <br /><br /><label for="<?php echo esc_attr($this->get_field_id('hide_for_logged_in')); ?>"><?php _e('Hide for logged in users:', 'super-socializer'); ?></label>
616
+ <input type="checkbox" id="<?php echo esc_attr($this->get_field_id('hide_for_logged_in')); ?>" name="<?php echo esc_attr($this->get_field_name('hide_for_logged_in')); ?>" type="text" value="1" <?php if(isset($instance['hide_for_logged_in']) && $instance['hide_for_logged_in']==1) echo 'checked="checked"'; ?> />
617
  </p>
618
  <?php
619
  }
652
  $postId = 0;
653
  }elseif(isset($instance['target_url'])){
654
  if($instance['target_url'] == 'default'){
655
+ $counterUrl = sanitize_url(the_champ_get_http().$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"]);
656
  if(is_home()){
657
  $counterUrl = esc_url(home_url());
658
  $postId = 0;
659
  }elseif(!is_singular()){
660
+ $counterUrl = sanitize_url(the_champ_get_http().$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"]);
661
  $postId = 0;
662
  }elseif(isset($_SERVER['QUERY_STRING']) && $_SERVER['QUERY_STRING']){
663
+ $counterUrl = sanitize_url(the_champ_get_http().$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"]);
664
  }elseif(get_permalink($post->ID)){
665
  $counterUrl = get_permalink($post->ID);
666
  }
721
  $defaults = array('alignment' => 'left', 'left_offset' => '40', 'right_offset' => '0', 'top_offset' => '100', 'vertical_bg' => '', 'target_url' => 'default', 'target_url_custom' => '');
722
 
723
  foreach($instance as $key => $value){
724
+ if(is_string($value)){
725
  $instance[ $key ] = esc_attr($value);
726
  }
727
  }
749
  </script>
750
  <p>
751
  <p><strong>Note:</strong> <?php _e('Make sure "Floating Like Buttons" are enabled from "Super Socializer > Like Buttons" page.', 'super-socializer') ?></p>
752
+ <label for="<?php echo esc_attr($this->get_field_id('target_url')); ?>"><?php _e('Target Url:', 'super-socializer'); ?></label>
753
+ <select style="width: 95%" onchange="theChampToggleVerticalCounterTargetUrl(this.value)" class="widefat" id="<?php echo esc_attr($this->get_field_id('target_url')); ?>" name="<?php echo esc_attr($this->get_field_name('target_url')); ?>">
754
  <option value="">--<?php _e('Select', 'super-socializer') ?>--</option>
755
  <option value="default" <?php echo isset($instance['target_url']) && $instance['target_url'] == 'default' ? 'selected' : '' ; ?>><?php _e('Url of the webpage where icons are located (default)', 'super-socializer'); ?></option>
756
  <option value="homepage" <?php echo isset($instance['target_url']) && $instance['target_url'] == 'homepage' ? 'selected' : '' ; ?>><?php _e('Url of the homepage of your website', 'super-socializer'); ?></option>
757
  <option value="custom" <?php echo isset($instance['target_url']) && $instance['target_url'] == 'custom' ? 'selected' : '' ; ?>><?php _e('Custom Url', 'super-socializer'); ?></option>
758
  </select>
759
+ <input placeholder="<?php _e('Custom URL', 'super-socializer') ?>" style="width:95%; margin-top: 5px; <?php echo !isset($instance['target_url']) || $instance['target_url'] != 'custom' ? 'display: none' : '' ; ?>" class="widefat theChampVerticalCounterTargetUrl" id="<?php echo esc_attr($this->get_field_id('target_url_custom')); ?>" name="<?php echo esc_attr($this->get_field_name('target_url_custom')); ?>" type="text" value="<?php echo isset($instance['target_url_custom']) ? $instance['target_url_custom'] : ''; ?>" />
760
+ <label for="<?php echo esc_attr($this->get_field_id('alignment')); ?>"><?php _e('Alignment', 'super-socializer'); ?></label>
761
+ <select style="width: 95%" onchange="theChampToggleCounterOffset(this.value)" class="widefat" id="<?php echo esc_attr($this->get_field_id('alignment')); ?>" name="<?php echo esc_attr($this->get_field_name('alignment')); ?>">
762
  <option value="left" <?php echo $instance['alignment'] == 'left' ? 'selected' : ''; ?>><?php _e('Left', 'super-socializer') ?></option>
763
  <option value="right" <?php echo $instance['alignment'] == 'right' ? 'selected' : ''; ?>><?php _e('Right', 'super-socializer') ?></option>
764
  </select>
765
  <div class="theChampCounterLeftOffset" <?php echo $instance['alignment'] == 'right' ? 'style="display: none"' : ''; ?>>
766
+ <label for="<?php echo esc_attr($this->get_field_id('left_offset')); ?>"><?php _e('Left Offset', 'super-socializer'); ?></label>
767
+ <input style="width: 95%" class="widefat" id="<?php echo esc_attr($this->get_field_id('left_offset')); ?>" name="<?php echo esc_attr($this->get_field_name('left_offset')); ?>" type="text" value="<?php echo esc_attr($instance['left_offset']); ?>" />px<br/>
768
  </div>
769
  <div class="theChampCounterRightOffset" <?php echo $instance['alignment'] == 'left' ? 'style="display: none"' : ''; ?>>
770
+ <label for="<?php echo esc_attr($this->get_field_id('right_offset')); ?>"><?php _e('Right Offset', 'super-socializer'); ?></label>
771
+ <input style="width: 95%" class="widefat" id="<?php echo esc_attr($this->get_field_id('right_offset')); ?>" name="<?php echo esc_attr($this->get_field_name('right_offset')); ?>" type="text" value="<?php echo esc_attr($instance['right_offset']); ?>" />px<br/>
772
  </div>
773
+ <label for="<?php echo esc_attr($this->get_field_id('top_offset')); ?>"><?php _e('Top Offset', 'super-socializer'); ?></label>
774
+ <input style="width: 95%" class="widefat" id="<?php echo esc_attr($this->get_field_id('top_offset')); ?>" name="<?php echo esc_attr($this->get_field_name('top_offset')); ?>" type="text" value="<?php echo esc_attr($instance['top_offset']); ?>" />px<br/>
775
 
776
+ <label for="<?php echo esc_attr($this->get_field_id('vertical_bg')); ?>"><?php _e('Background Color', 'super-socializer'); ?></label>
777
+ <input style="width: 95%" class="widefat" id="<?php echo esc_attr($this->get_field_id('vertical_bg')); ?>" name="<?php echo esc_attr($this->get_field_name('vertical_bg')); ?>" type="text" value="<?php echo esc_attr($instance['vertical_bg']); ?>" />
778
 
779
+ <br /><br /><label for="<?php echo esc_attr($this->get_field_id('hide_for_logged_in')); ?>"><?php _e('Hide for logged in users:', 'super-socializer'); ?></label>
780
+ <input type="checkbox" id="<?php echo esc_attr($this->get_field_id('hide_for_logged_in')); ?>" name="<?php echo esc_attr($this->get_field_name('hide_for_logged_in')); ?>" type="text" value="1" <?php if(isset($instance['hide_for_logged_in']) && $instance['hide_for_logged_in']==1) echo 'checked="checked"'; ?> />
781
  </p>
782
  <?php
783
  }
800
 
801
  /** This is rendered widget content */
802
  public function widget($args, $instance){
803
+ if(the_champ_is_amp_page()){
804
  return;
805
  }
806
  extract($args );
817
  $check_theme = 'floating_';
818
  }
819
  $style = '';
820
+ if(isset($instance['type']) && $instance['type'] == 'floating'){
821
  $style = 'position:fixed;top:' . (isset($instance['top_offset']) ? intval($instance['top_offset']) : 100 ) . 'px;' . (isset($instance['alignment']) && $instance['alignment'] == 'left' ? 'left' : 'right') . ':' . (isset($instance['alignment_value']) ? intval($instance['alignment_value']) : 100 ) . 'px;width:' . (isset($instance['size']) ? intval($instance['size']) : 32 ) . 'px;';
822
  }
823
  global $heateorSsAllowedTags;
824
+ echo wp_kses('<div style="' . $style . '" class="heateor_ss_' . $check_theme . 'follow_icons_container' . (isset($instance['bottom_mobile_sharing']) ? ' heateor_ss_bottom_follow' : '') . '">', $heateorSsAllowedTags);
825
  if(!empty($instance['title'])){
826
  $title = apply_filters('widget_title', $instance['title']);
827
+ echo $before_title . esc_html($title) . $after_title;
828
  }
829
+ echo wp_kses($this->follow_icons($instance), $heateorSsAllowedTags);
830
  echo '<div style="clear:both"></div>';
831
  echo '</div>';
832
  if(!empty($instance['after_widget_content'])){
839
  private function follow_icons($instance){
840
  $logo_color = '#fff';
841
  $html = '';
842
+ if(isset($instance['type']) && $instance['type'] == 'standard'){
843
+ if(isset($instance['hor_alignment']) && $instance['hor_alignment'] == "center"){
844
+ $html .= '<style>div.heateor_ss_follow_ul{width:100%;text-align:center;}.widget_thechampfollow div.heateor_ss_follow_ul a{float:none!important;display:inline-block;}.widget_thechampfollow .widget-title{text-align:center;}</style>';
845
+ }elseif(isset($instance['hor_alignment']) && $instance['hor_alignment'] == "right"){
846
+ $html .= '<style>.widget_thechampfollow .widget-title{text-align:right;}</style>';
847
+ }
848
  }
849
  if(isset($instance['hide_mobile_sharing']) && $instance['vertical_screen_width'] != ''){
850
  $html .= '<style>@media screen and (max-width:' . $instance['vertical_screen_width'] . 'px){.the_champ_floating_follow_icons_container{display:none!important}}</style>';
985
  $instance['size'] = intval($new_instance['size']);
986
  $instance['custom_color'] = $new_instance['custom_color'] ;
987
  $instance['icon_shape'] = $new_instance['icon_shape'];
988
+ $instance['alignment'] = $new_instance['alignment'];
989
+ $instance['hor_alignment'] = $new_instance['hor_alignment'];
990
  $instance['type'] = $new_instance['type'];
991
  $instance['facebook'] = $new_instance['facebook'];
992
  $instance['twitter'] = $new_instance['twitter'];
1022
  /** Widget options in admin panel */
1023
  public function form($instance){
1024
  /* Set up default widget settings. */
1025
+ $defaults = array('alignment' => 'left', 'hor_alignment' => 'left', 'title' => '', 'type' => 'standard', 'alignment' => 'right', 'size' => '32', 'icon_shape' => 'round', 'custom_color' => '', 'facebook' => '', 'twitter' => '', 'instagram' => '', 'gettr' => '', 'gab' => '', 'parler' => '', 'pinterest' => '', 'behance' => '', 'flickr' => '', 'foursquare' => '', 'github' => '', 'gitlab' => '', 'linkedin' => '', 'linkedin_company' => '', 'medium' => '', 'mewe' => '', 'odnoklassniki' => '', 'telegram' => '', 'tumblr' => '', 'vimeo' => '', 'vkontakte' => '', 'whatsapp' => '', 'xing' => '', 'youtube' => '', 'youtube_channel' => '', 'rss_feed' => '', 'before_widget_content' => '', 'after_widget_content' => '', 'top_offset' => '200', 'alignment_value' => '0', 'mobile_sharing' => '1', 'bottom_mobile_sharing' => '1', 'vertical_screen_width' => '783', 'horizontal_screen_width' => '783', 'bottom_sharing_alignment' => 'left', 'bottom_sharing_position_radio' => 'responsive', 'bottom_sharing_position' => '0');
1026
 
1027
  foreach($instance as $key => $value){
1028
+ if(is_string($value)){
1029
  $instance[ $key ] = esc_attr($value);
1030
  }
1031
  }
1032
 
1033
+ $instance = wp_parse_args((array)$instance, $defaults);
1034
  ?>
1035
  <p>
1036
+ <label for="<?php echo esc_attr($this->get_field_id('before_widget_content')); ?>"><?php _e('Before widget content:', 'super-socializer'); ?></label>
1037
+ <input class="widefat" id="<?php echo esc_attr($this->get_field_id('before_widget_content')); ?>" name="<?php echo esc_attr($this->get_field_name('before_widget_content')); ?>" type="text" value="<?php echo esc_attr($instance['before_widget_content']); ?>" /><br/><br/>
1038
+ <label for="<?php echo esc_attr($this->get_field_id('title')); ?>"><?php _e('Title', 'super-socializer'); ?></label>
1039
+ <input style="width: 95%" class="widefat" id="<?php echo esc_attr($this->get_field_id('title')); ?>" name="<?php echo esc_attr($this->get_field_name('title')); ?>" type="text" value="<?php echo esc_attr($instance['title']); ?>" /><br/><br/>
1040
+ <label for="<?php echo esc_attr( $this->get_field_id( 'hor_alignment' ) ); ?>"><?php _e( 'Alignment', 'super-socializer' ); ?></label><br/>
1041
+ <select style="width: 95%" class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'hor_alignment' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'hor_alignment' ) ); ?>">
1042
+ <option value="" <?php echo ! isset( $instance['hor_alignment'] ) || $instance['hor_alignment'] == 'left' ? 'selected' : '' ; ?>><?php _e( 'Left', 'super-socializer' ); ?></option>
1043
+ <option value="center" <?php echo isset( $instance['hor_alignment'] ) && $instance['hor_alignment'] == 'center' ? 'selected' : '' ; ?>><?php _e( 'Center', 'super-socializer' ); ?></option>
1044
+ <option value="right" <?php echo isset( $instance['hor_alignment'] ) && $instance['hor_alignment'] == 'right' ? 'selected' : '' ; ?>><?php _e( 'Right', 'super-socializer' ); ?></option>
1045
+ </select><br/><br/>
1046
  <label for="<?php echo esc_attr($this->get_field_id('mode_standard')); ?>"><?php _e('Type:', 'super-socializer') ?></label><br>
1047
+ <input id="<?php echo esc_attr($this->get_field_id('mode_standard')); ?>" type="radio" onclick="jQuery('.heateorSsFloatingAlignment').css('display', 'none');" name="<?php echo esc_attr($this->get_field_name('type')); ?>" value="standard" <?php if(!isset($instance['type']) || $instance['type'] == 'standard'){
1048
  echo "checked";
1049
  } ?>><label for="<?php echo esc_attr($this->get_field_id('mode_standard')); ?>"> <?php _e('Standard', 'super-socializer') ?></label><br>
1050
+ <input id="<?php echo esc_attr($this->get_field_id('mode_floating')); ?>" type="radio" name="<?php echo esc_attr($this->get_field_name('type')); ?>" onclick="jQuery('.heateorSsFloatingAlignment').css('display', 'block');" value="floating" <?php if(isset($instance['type']) && $instance['type'] == 'floating'){
1051
  echo "checked";
1052
  }?>><label for="<?php echo esc_attr($this->get_field_id('mode_floating')); ?>"> <?php _e('Floating', 'super-socializer') ?></label><br><br>
1053
 
1054
+ <div class="heateorSsFloatingAlignment"
1055
+ <?php echo isset($instance['type']) && $instance['type'] == 'standard' ? "style='display:none'" : "style='display:block'" ?>>
1056
  <label for="<?php echo esc_attr($this->get_field_id('top_offset')); ?>">
1057
  <?php _e('Top offset:', 'super-socializer') ?>
1058
  </label>
1097
  <br>
1098
  <br>
1099
  </div>
1100
+ <label for="<?php echo esc_attr($this->get_field_id('size')); ?>"><?php _e('Size of icons', 'super-socializer'); ?></label>
1101
+ <input style="width: 82%" class="widefat" id="<?php echo esc_attr($this->get_field_id('size')); ?>" name="<?php echo esc_attr($this->get_field_name('size')); ?>" type="text" value="<?php echo $instance['size']; ?>" />pixels<br/><br/>
1102
+ <label for="<?php echo esc_attr($this->get_field_id('icon_shape')); ?>"><?php _e('Icon Shape', 'super-socializer'); ?></label>
1103
+ <select style="width: 95%" class="widefat" id="<?php echo esc_attr($this->get_field_id('icon_shape')); ?>" name="<?php echo esc_attr($this->get_field_name('icon_shape')); ?>">
1104
  <option value="round" <?php echo !isset($instance['icon_shape']) || $instance['icon_shape'] == 'round' ? 'selected' : '' ; ?>><?php _e('Round', 'super-socializer'); ?></option>
1105
  <option value="square" <?php echo isset($instance['icon_shape']) && $instance['icon_shape'] == 'square' ? 'selected' : '' ; ?>><?php _e('Square', 'super-socializer'); ?></option>
1106
  </select><br/><br/>
1110
  <option value="standard" <?php echo isset($instance['custom_color']) && $instance['custom_color'] == 'standard' ? 'selected' : '' ; ?>><?php _e('Yes, Standard Interface Theme', 'super-socializer'); ?></option>
1111
  <option value="floating" <?php echo isset($instance['custom_color']) && $instance['custom_color'] == 'floating' ? 'selected' : '' ; ?>><?php _e('Yes, Floating Interface Theme', 'super-socializer'); ?></option>
1112
  </select><br/><br/>
1113
+ <label for="<?php echo esc_attr($this->get_field_id('facebook')); ?>"><?php _e('Facebook URL:', 'super-socializer'); ?></label>
1114
+ <input style="width: 95%" class="widefat" id="<?php echo esc_attr($this->get_field_id('facebook')); ?>" name="<?php echo esc_attr($this->get_field_name('facebook')); ?>" type="text" value="<?php echo esc_attr($instance['facebook']); ?>" /><br/>
1115
  <span>https://www.facebook.com/ID</span><br/><br/>
1116
+ <label for="<?php echo esc_attr($this->get_field_id('twitter')); ?>"><?php _e('Twitter URL:', 'super-socializer'); ?></label>
1117
+ <input style="width: 95%" class="widefat" id="<?php echo esc_attr($this->get_field_id('twitter')); ?>" name="<?php echo esc_attr($this->get_field_name('twitter')); ?>" type="text" value="<?php echo esc_attr($instance['twitter']); ?>" /><br/>
1118
  <span>https://twitter.com/ID</span><br/><br/>
1119
+ <label for="<?php echo esc_attr($this->get_field_id('parler')); ?>"><?php _e('Parler URL:', 'super-socializer'); ?></label>
1120
+ <input style="width: 95%" class="widefat" id="<?php echo esc_attr($this->get_field_id('parler')); ?>" name="<?php echo esc_attr($this->get_field_name('parler')); ?>" type="text" value="<?php echo esc_attr($instance['parler']); ?>" /><br/>
1121
  <span>https://parler.com/profile/ID</span><br/><br/>
1122
+ <label for="<?php echo esc_attr($this->get_field_id('instagram')); ?>"><?php _e('Instagram URL:', 'super-socializer'); ?></label>
1123
+ <input style="width: 95%" class="widefat" id="<?php echo esc_attr($this->get_field_id('instagram')); ?>" name="<?php echo esc_attr($this->get_field_name('instagram')); ?>" type="text" value="<?php echo esc_attr($instance['instagram']); ?>" /><br/>
1124
  <span>https://www.instagram.com/ID</span><br/><br/>
1125
+ <label for="<?php echo esc_attr($this->get_field_id('pinterest')); ?>"><?php _e('Pinterest URL:', 'super-socializer'); ?></label>
1126
+ <input style="width: 95%" class="widefat" id="<?php echo esc_attr($this->get_field_id('pinterest')); ?>" name="<?php echo esc_attr($this->get_field_name('pinterest')); ?>" type="text" value="<?php echo esc_attr($instance['pinterest']); ?>" /><br/>
1127
  <span>https://www.pinterest.com/ID</span><br/><br/>
1128
+ <label for="<?php echo esc_attr($this->get_field_id('behance')); ?>"><?php _e('Behance URL:', 'super-socializer'); ?></label>
1129
+ <input style="width: 95%" class="widefat" id="<?php echo esc_attr($this->get_field_id('behance')); ?>" name="<?php echo esc_attr($this->get_field_name('behance')); ?>" type="text" value="<?php echo esc_attr($instance['behance']); ?>" /><br/>
1130
  <span>https://www.behance.net/ID</span><br/><br/>
1131
+ <label for="<?php echo esc_attr($this->get_field_id('flickr')); ?>"><?php _e('Flickr URL:', 'super-socializer'); ?></label>
1132
+ <input style="width: 95%" class="widefat" id="<?php echo esc_attr($this->get_field_id('flickr')); ?>" name="<?php echo esc_attr($this->get_field_name('flickr')); ?>" type="text" value="<?php echo esc_attr($instance['flickr']); ?>" /><br/>
1133
  <span>https://www.flickr.com/photos/ID</span><br/><br/>
1134
+ <label for="<?php echo esc_attr($this->get_field_id('foursquare')); ?>"><?php _e('Foursquare URL:', 'super-socializer'); ?></label>
1135
+ <input style="width: 95%" class="widefat" id="<?php echo esc_attr($this->get_field_id('foursquare')); ?>" name="<?php echo esc_attr($this->get_field_name('foursquare')); ?>" type="text" value="<?php echo esc_attr($instance['foursquare']); ?>" /><br/>
1136
  <span>https://foursquare.com/ID</span><br/><br/>
1137
+ <label for="<?php echo esc_attr($this->get_field_id('github')); ?>"><?php _e('Github URL:', 'super-socializer'); ?></label>
1138
+ <input style="width: 95%" class="widefat" id="<?php echo esc_attr($this->get_field_id('github')); ?>" name="<?php echo esc_attr($this->get_field_name('github')); ?>" type="text" value="<?php echo esc_attr($instance['github']); ?>" /><br/>
1139
  <span>https://github.com/ID</span><br/><br/>
1140
+ <label for="<?php echo esc_attr($this->get_field_id('linkedin')); ?>"><?php _e('LinkedIn URL:', 'super-socializer'); ?></label>
1141
+ <input style="width: 95%" class="widefat" id="<?php echo esc_attr($this->get_field_id('linkedin')); ?>" name="<?php echo esc_attr($this->get_field_name('linkedin')); ?>" type="text" value="<?php echo esc_attr($instance['linkedin']); ?>" /><br/>
1142
  <span>https://www.linkedin.com/in/ID</span><br/><br/>
1143
+ <label for="<?php echo esc_attr($this->get_field_id('linkedin_company')); ?>"><?php _e('LinkedIn Company URL:', 'super-socializer'); ?></label>
1144
+ <input style="width: 95%" class="widefat" id="<?php echo esc_attr($this->get_field_id('linkedin_company')); ?>" name="<?php echo esc_attr($this->get_field_name('linkedin_company')); ?>" type="text" value="<?php echo esc_attr($instance['linkedin_company']); ?>" /><br/>
1145
  <span>https://www.linkedin.com/company/ID</span><br/><br/>
1146
+ <label for="<?php echo esc_attr($this->get_field_id('medium')); ?>"><?php _e('Medium URL:', 'super-socializer'); ?></label>
1147
+ <input style="width: 95%" class="widefat" id="<?php echo esc_attr($this->get_field_id('medium')); ?>" name="<?php echo esc_attr($this->get_field_name('medium')); ?>" type="text" value="<?php echo esc_attr($instance['medium']); ?>" /><br/>
1148
  <span>https://medium.com/@ID</span><br/><br/>
1149
+ <label for="<?php echo esc_attr($this->get_field_id('mewe')); ?>"><?php _e('MeWe URL:', 'super-socializer'); ?></label>
1150
+ <input style="width: 95%" class="widefat" id="<?php echo esc_attr($this->get_field_id('mewe')); ?>" name="<?php echo esc_attr($this->get_field_name('mewe')); ?>" type="text" value="<?php echo esc_attr($instance['mewe']); ?>" /><br/>
1151
  <span>https://mewe.com/profile/ID</span><br/><br/>
1152
+ <label for="<?php echo esc_attr($this->get_field_id('odnoklassniki')); ?>"><?php _e('Odnoklassniki URL:', 'super-socializer'); ?></label>
1153
+ <input style="width: 95%" class="widefat" id="<?php echo esc_attr($this->get_field_id('odnoklassniki')); ?>" name="<?php echo esc_attr($this->get_field_name('odnoklassniki')); ?>" type="text" value="<?php echo esc_attr($instance['odnoklassniki']); ?>" /><br/>
1154
  <span>https://ok.ru/profile/ID</span><br/><br/>
1155
+ <label for="<?php echo esc_attr($this->get_field_id('snapchat')); ?>"><?php _e('Snapchat URL:', 'super-socializer'); ?></label>
1156
+ <input style="width: 95%" class="widefat" id="<?php echo esc_attr($this->get_field_id('snapchat')); ?>" name="<?php echo esc_attr($this->get_field_name('snapchat')); ?>" type="text" value="<?php echo esc_attr($instance['snapchat']); ?>" /><br/>
1157
  <span>https://www.snapchat.com/add/ID</span><br/><br/>
1158
+ <label for="<?php echo esc_attr($this->get_field_id('telegram')); ?>"><?php _e('Telegram URL:', 'super-socializer'); ?></label>
1159
+ <input style="width: 95%" class="widefat" id="<?php echo esc_attr($this->get_field_id('telegram')); ?>" name="<?php echo esc_attr($this->get_field_name('telegram')); ?>" type="text" value="<?php echo esc_attr($instance['telegram']); ?>" /><br/>
1160
  <span>https://t.me/username</span><br/><br/>
1161
+ <label for="<?php echo esc_attr($this->get_field_id('tumblr')); ?>"><?php _e('Tumblr URL:', 'super-socializer'); ?></label>
1162
+ <input style="width: 95%" class="widefat" id="<?php echo esc_attr($this->get_field_id('tumblr')); ?>" name="<?php echo esc_attr($this->get_field_name('tumblr')); ?>" type="text" value="<?php echo esc_attr($instance['tumblr']); ?>" /><br/>
1163
  <span>https://ID.tumblr.com</span><br/><br/>
1164
+ <label for="<?php echo esc_attr($this->get_field_id('vimeo')); ?>"><?php _e('Vimeo URL:', 'super-socializer'); ?></label>
1165
+ <input style="width: 95%" class="widefat" id="<?php echo esc_attr($this->get_field_id('vimeo')); ?>" name="<?php echo esc_attr($this->get_field_name('vimeo')); ?>" type="text" value="<?php echo esc_attr($instance['vimeo']); ?>" /><br/>
1166
  <span>https://vimeo.com/ID</span><br/><br/>
1167
+ <label for="<?php echo esc_attr($this->get_field_id('vkontakte')); ?>"><?php _e('Vkontakte URL:', 'super-socializer'); ?></label>
1168
+ <input style="width: 95%" class="widefat" id="<?php echo esc_attr($this->get_field_id('vkontakte')); ?>" name="<?php echo esc_attr($this->get_field_name('vkontakte')); ?>" type="text" value="<?php echo esc_attr($instance['vkontakte']); ?>" /><br/>
1169
  <span>https://vk.com/ID</span><br/><br/>
1170
+ <label for="<?php echo esc_attr($this->get_field_id('xing')); ?>"><?php _e('Xing URL:', 'super-socializer'); ?></label>
1171
+ <input style="width: 95%" class="widefat" id="<?php echo esc_attr($this->get_field_id('xing')); ?>" name="<?php echo esc_attr($this->get_field_name('xing')); ?>" type="text" value="<?php echo esc_attr($instance['xing']); ?>" /><br/>
1172
  <span>https://www.xing.com/profile/ID</span><br/><br/>
1173
+ <label for="<?php echo esc_attr($this->get_field_id('youtube')); ?>"><?php _e('Youtube URL:', 'super-socializer'); ?></label>
1174
+ <input style="width: 95%" class="widefat" id="<?php echo esc_attr($this->get_field_id('youtube')); ?>" name="<?php echo esc_attr($this->get_field_name('youtube')); ?>" type="text" value="<?php echo esc_attr($instance['youtube']); ?>" /><br/>
1175
  <span>https://www.youtube.com/user/ID</span><br/><br/>
1176
+ <label for="<?php echo esc_attr($this->get_field_id('youtube_channel')); ?>"><?php _e('Youtube Channel URL:', 'super-socializer'); ?></label>
1177
+ <input style="width: 95%" class="widefat" id="<?php echo esc_attr($this->get_field_id('youtube_channel')); ?>" name="<?php echo esc_attr($this->get_field_name('youtube_channel')); ?>" type="text" value="<?php echo esc_attr($instance['youtube_channel']); ?>" /><br/>
1178
  <span>https://www.youtube.com/channel/ID</span><br/><br/>
1179
+ <label for="<?php echo esc_attr($this->get_field_id('rss_feed')); ?>"><?php _e('RSS Feed URL:', 'super-socializer'); ?></label>
1180
+ <input style="width: 95%" class="widefat" id="<?php echo esc_attr($this->get_field_id('rss_feed')); ?>" name="<?php echo esc_attr($this->get_field_name('rss_feed')); ?>" type="text" value="<?php echo esc_attr($instance['rss_feed']); ?>" /><br/>
1181
  <span>http://www.example.com/feed/</span><br/><br/>
1182
  <label for="<?php echo esc_attr($this->get_field_id('gab')); ?>"><?php _e('Gab.com URL:', 'super-socializer'); ?></label>
1183
  <input style="width: 95%" class="widefat" id="<?php echo esc_attr($this->get_field_id('gab')); ?>" name="<?php echo esc_attr($this->get_field_name('gab')); ?>" type="text" value="<?php echo esc_attr($instance['gab']); ?>" /><br/>
1185
  <label for="<?php echo esc_attr($this->get_field_id('gettr')); ?>"><?php _e('Gettr.com URL:', 'super-socializer'); ?></label>
1186
  <input style="width: 95%" class="widefat" id="<?php echo esc_attr($this->get_field_id('gettr')); ?>" name="<?php echo esc_attr($this->get_field_name('gettr')); ?>" type="text" value="<?php echo esc_attr($instance['gettr']); ?>" /><br/>
1187
  <span>https://www.gettr.com/user/ID</span><br/><br/>
1188
+ <label for="<?php echo esc_attr($this->get_field_id('after_widget_content')); ?>"><?php _e('After widget content:', 'super-socializer'); ?></label>
1189
+ <input class="widefat" id="<?php echo esc_attr($this->get_field_id('after_widget_content')); ?>" name="<?php echo esc_attr($this->get_field_name('after_widget_content')); ?>" type="text" value="<?php echo esc_attr($instance['after_widget_content']); ?>" />
1190
  </p>
1191
  <?php
1192
  }
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.heateor.com/donate?action=Super+Socializer
4
  Tags: social login, social share, line login, social commenting, social comments, social plugin, profile data, social analytics, online identity, social profile storage, single sign-on, social media follow, facebook login, twitter login, linkedin login, google login, vkontakte login, Windows Live Login, Microsoft Login, Wordpress login, Yahoo login, Spotify login, Dribbble login, Kakao login, Github login, Twitch login, Instagram login, dropbox login, foursquare login, disqus login, reddit login, amazon login, stackoverflow login, stack overflow login, discord login, mail.ru login, mailru login, mail ru login, gettr share, parler share
5
  Requires at least: 2.5.0
6
  Tested up to: 5.9.3
7
- Stable tag: 7.13.32
8
  License: GPLv2 or later
9
 
10
  The unique Social Plugin to let you integrate Social Login, Social Share, Social Comments and Social Media follow at your website
@@ -206,13 +206,21 @@ Yes, we can help you with it. Just drop an email at support[ at ]heateor[ dot ]c
206
  == Screenshots ==
207
  1. **Social Login**: Social Login interface at Wordpress login form
208
  2. **Social Sharing**: A wide variety of sharing icons
209
- 3. **Social Sharing**: Options to chosse size (minimum 16px, no upper limit) and shape (round and square) of sharing icons
210
  4. **Social Sharing**: Around 100 social networks in Social Sharing
211
  5. **Social Commenting**: WordPress Commenting selected
212
  6. **Social Commenting**: Facebook Commenting selected
213
  8. **Social Commenting**: Disqus Commenting selected
214
 
215
  == Changelog ==
 
 
 
 
 
 
 
 
216
  = 7.13.32 [8 April 2022] =
217
  * [Bugfix] Social Login Buttons were not responding with <a target="_blank" href="https://www.heateor.com/social-login-buttons/">Social Login Buttons</a> add-on active
218
  * [Improvement] Code quality improvement
@@ -2423,4 +2431,12 @@ Yes, we can help you with it. Just drop an email at support[ at ]heateor[ dot ]c
2423
 
2424
  = 7.13.32 [8 April 2022] =
2425
  * [Bugfix] Social Login Buttons were not responding with <a target="_blank" href="https://www.heateor.com/social-login-buttons/">Social Login Buttons</a> add-on active
2426
- * [Improvement] Code quality improvement
 
 
 
 
 
 
 
 
4
  Tags: social login, social share, line login, social commenting, social comments, social plugin, profile data, social analytics, online identity, social profile storage, single sign-on, social media follow, facebook login, twitter login, linkedin login, google login, vkontakte login, Windows Live Login, Microsoft Login, Wordpress login, Yahoo login, Spotify login, Dribbble login, Kakao login, Github login, Twitch login, Instagram login, dropbox login, foursquare login, disqus login, reddit login, amazon login, stackoverflow login, stack overflow login, discord login, mail.ru login, mailru login, mail ru login, gettr share, parler share
5
  Requires at least: 2.5.0
6
  Tested up to: 5.9.3
7
+ Stable tag: 7.13.33
8
  License: GPLv2 or later
9
 
10
  The unique Social Plugin to let you integrate Social Login, Social Share, Social Comments and Social Media follow at your website
206
  == Screenshots ==
207
  1. **Social Login**: Social Login interface at Wordpress login form
208
  2. **Social Sharing**: A wide variety of sharing icons
209
+ 3. **Social Sharing**: Options to choose size (minimum 16px, no upper limit) and shape (round and square) of sharing icons
210
  4. **Social Sharing**: Around 100 social networks in Social Sharing
211
  5. **Social Commenting**: WordPress Commenting selected
212
  6. **Social Commenting**: Facebook Commenting selected
213
  8. **Social Commenting**: Disqus Commenting selected
214
 
215
  == Changelog ==
216
+ = 7.13.33 [10 May 2022] =
217
+ * [New] Added a new option to change the alignment of the standard icons in the Super Socializer - Follow Icons widget
218
+ * [Bugfix] Alignment option for the floating icons in the Super Socializer - Follow Icons widget was not working
219
+ * [Bugfix] Youtube share icon was not appearing in AMP
220
+ * [Bugfix] Enabling the social media follow widget was giving fatal error if social sharing was disabled
221
+ * [Improvement] Code quality improvement
222
+ * [Improvement] Performance improvement
223
+
224
  = 7.13.32 [8 April 2022] =
225
  * [Bugfix] Social Login Buttons were not responding with <a target="_blank" href="https://www.heateor.com/social-login-buttons/">Social Login Buttons</a> add-on active
226
  * [Improvement] Code quality improvement
2431
 
2432
  = 7.13.32 [8 April 2022] =
2433
  * [Bugfix] Social Login Buttons were not responding with <a target="_blank" href="https://www.heateor.com/social-login-buttons/">Social Login Buttons</a> add-on active
2434
+ * [Improvement] Code quality improvement
2435
+
2436
+ = 7.13.33 [10 May 2022] =
2437
+ * [New] Added a new option to change the alignment of the standard icons in the Super Socializer - Follow Icons widget
2438
+ * [Bugfix] Alignment option for the floating icons in the Super Socializer - Follow Icons widget was not working
2439
+ * [Bugfix] Youtube share icon was not appearing in AMP
2440
+ * [Bugfix] Enabling the social media follow widget was giving fatal error if social sharing was disabled
2441
+ * [Improvement] Code quality improvement
2442
+ * [Improvement] Performance improvement
super_socializer.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Super Socializer
4
  Plugin URI: https://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, Social Media follow and more
6
- Version: 7.13.32
7
  Author: Team Heateor
8
  Author URI: https://www.heateor.com
9
  Text Domain: super-socializer
@@ -11,7 +11,7 @@ Domain Path: /languages
11
  License: GPL2+
12
  */
13
  defined('ABSPATH') or die("Cheating........Uh!!");
14
- define('THE_CHAMP_SS_VERSION', '7.13.32');
15
 
16
  // attributes to allow in the HTML of the social share and social media follow icons
17
  $heateorSsDefaultAttribs = array(
@@ -300,7 +300,7 @@ function the_champ_connect(){
300
  if(isset($theChampLoginOptions['providers']) && in_array('instagram', $theChampLoginOptions['providers']) && isset($theChampLoginOptions['insta_id']) && $theChampLoginOptions['insta_id'] != '' && isset($theChampLoginOptions['insta_app_secret']) && $theChampLoginOptions['insta_app_secret'] != ''){
301
  $instagramLoginState = mt_rand();
302
  // save referrer url in state
303
- update_user_meta($instagramLoginState, 'super_socializer_redirect_to', isset($_GET['super_socializer_redirect_to']) ? esc_url(trim($_GET['super_socializer_redirect_to'])) : home_url());
304
  wp_redirect("https://api.instagram.com/oauth/authorize?client_id=".$theChampLoginOptions['insta_id']."&scope=user_profile,user_media&response_type=code&language=en-us&state=".$instagramLoginState."&redirect_uri=".urlencode(home_url()."/SuperSocializerAuth/Instagram"));
305
  die;
306
  }
@@ -312,7 +312,7 @@ function the_champ_connect(){
312
  'client_secret' => $theChampLoginOptions['insta_app_secret'],
313
  'grant_type' => 'authorization_code',
314
  'redirect_uri' => home_url().'/SuperSocializerAuth/Instagram',
315
- 'code' => $_GET['code']
316
  );
317
  $response = wp_remote_post("https://api.instagram.com/oauth/access_token", array(
318
  'method' => 'POST',
@@ -401,7 +401,7 @@ function the_champ_connect(){
401
  if(!isset($_GET['code']) && !isset($_GET['state'])){
402
  $linkedinAuthState = mt_rand();
403
  // save referrer url in state
404
- update_user_meta( $linkedinAuthState, 'super_socializer_redirect_to', isset($_GET['super_socializer_redirect_to']) ? esc_url(trim($_GET['super_socializer_redirect_to'])) : home_url() );
405
  if(isset($_GET['heateorMSEnabled'])){
406
  update_user_meta($linkedinAuthState, 'heateor_ss_linkedin_mc_sub', 1);
407
  }
@@ -508,7 +508,7 @@ function the_champ_connect(){
508
  }
509
  }
510
  // save referrer url in state
511
- $_SESSION['super_socializer_line_redirect'] = isset($_GET['super_socializer_redirect_to']) ? esc_url(trim($_GET['super_socializer_redirect_to'])) : home_url();
512
 
513
  $link = $heateorSsLine->getLink(7);
514
  wp_redirect($link);
@@ -566,7 +566,7 @@ function the_champ_connect(){
566
  if(!isset($_GET['code'])){
567
  $mailruLoginState = mt_rand();
568
  // save referrer url in state
569
- update_user_meta($mailruLoginState, 'super_socializer_redirect_to', isset($_GET['super_socializer_redirect_to']) ? esc_url(trim($_GET['super_socializer_redirect_to'])) : home_url());
570
  }
571
  wp_redirect("https://oauth.mail.ru/login?client_id=". $theChampLoginOptions['mailru_client_id'] ."&scope=userinfo&state=". $mailruLoginState ."&response_type=code&redirect_uri=". home_url() ."/SuperSocializerAuth/Mailru");
572
  die;
@@ -639,7 +639,7 @@ function the_champ_connect(){
639
  if(!isset($_GET['code'])){
640
  $yahooLoginState = mt_rand();
641
  // save referrer url in state
642
- update_user_meta($yahooLoginState, 'super_socializer_redirect_to', isset($_GET['super_socializer_redirect_to']) ? esc_url(trim($_GET['super_socializer_redirect_to'])) : home_url());
643
  }
644
  wp_redirect("https://api.login.yahoo.com/oauth2/request_auth?client_id=".$theChampLoginOptions['yahoo_channel_id']."&response_type=code&language=en-us&state=".$yahooLoginState."&redirect_uri=".home_url()."/SuperSocializerAuth/Yahoo");
645
  die;
@@ -706,7 +706,7 @@ function the_champ_connect(){
706
  if(!isset($_GET['code'])){
707
  $discordLoginState = mt_rand();
708
  // save referrer url in state
709
- update_user_meta($discordLoginState, 'super_socializer_redirect_to', isset($_GET['super_socializer_redirect_to']) ? esc_url(trim($_GET['super_socializer_redirect_to'])) : home_url());
710
  }
711
  wp_redirect("https://discord.com/oauth2/authorize/request_auth?client_id=".$theChampLoginOptions['discord_channel_id']."&response_type=code&state=".$discordLoginState."&scope=identify%20email&redirect_uri=".home_url()."/SuperSocializerAuth/Discord");
712
  die;
@@ -773,7 +773,7 @@ function the_champ_connect(){
773
  if(!isset($_GET['code'])){
774
  $wordpressLoginState = mt_rand();
775
  // save referrer url in state
776
- update_user_meta($wordpressLoginState, 'super_socializer_redirect_to', isset($_GET['super_socializer_redirect_to']) ? esc_url(trim($_GET['super_socializer_redirect_to'])) : home_url());
777
  }
778
  wp_redirect("https://public-api.wordpress.com/oauth2/authorize?client_id=".$theChampLoginOptions['wordpress_client_id']."&scope=auth&response_type=code&state=".$wordpressLoginState."&redirect_uri=".home_url()."/SuperSocializerAuth/Wordpress");
779
  die;
@@ -839,7 +839,7 @@ function the_champ_connect(){
839
  if(isset($theChampLoginOptions['providers']) && in_array('microsoft', $theChampLoginOptions['providers']) && isset($theChampLoginOptions['live_channel_id']) && $theChampLoginOptions['live_channel_id'] != '' && isset($theChampLoginOptions['live_channel_secret']) && $theChampLoginOptions['live_channel_secret'] != ''){
840
  $liveLoginState = mt_rand();
841
  // save referrer url in state
842
- update_user_meta($liveLoginState, 'super_socializer_redirect_to', isset($_GET['super_socializer_redirect_to']) ? esc_url(trim($_GET['super_socializer_redirect_to'])) : home_url());
843
  wp_redirect("https://login.live.com/oauth20_authorize.srf?client_id=".$theChampLoginOptions['live_channel_id']."&scope=wl.emails,wl.basic&response_type=code&state=".$liveLoginState."&redirect_uri=".home_url()."/SuperSocializerAuth/Live");
844
  die;
845
  }
@@ -903,7 +903,7 @@ function the_champ_connect(){
903
  if(!isset($_GET['code'])){
904
  $twitchLoginState = mt_rand();
905
  // save referrer url in state
906
- update_user_meta($twitchLoginState, 'super_socializer_redirect_to', isset($_GET['super_socializer_redirect_to']) ? esc_url(trim($_GET['super_socializer_redirect_to'])) : home_url());
907
  }
908
  wp_redirect("https://id.twitch.tv/oauth2/authorize?client_id=".$theChampLoginOptions['twitch_client_id']."&scope=user:read:email&response_type=code&state=".$twitchLoginState."&redirect_uri=".urlencode(home_url()."/SuperSocializerAuth/Twitch"));
909
  die;
@@ -969,7 +969,7 @@ function the_champ_connect(){
969
  if(isset($theChampLoginOptions['providers']) && in_array('reddit', $theChampLoginOptions['providers']) && isset($theChampLoginOptions['reddit_client_id']) && $theChampLoginOptions['reddit_client_id'] != '' && isset($theChampLoginOptions['reddit_client_secret']) && $theChampLoginOptions['reddit_client_secret'] != ''){
970
  $redditLoginState = mt_rand();
971
  // save referrer url in state
972
- update_user_meta($redditLoginState, 'super_socializer_redirect_to', isset($_GET['super_socializer_redirect_to']) ? esc_url(trim($_GET['super_socializer_redirect_to'])) : home_url());
973
  wp_redirect("https://ssl.reddit.com/api/v1/authorize?client_id=" . $theChampLoginOptions['reddit_client_id'] . "&scope=identity&state=" . $redditLoginState . "&duration=temporary&response_type=code&redirect_uri=" . home_url() . "/SuperSocializerAuth/Reddit");
974
  die;
975
  }
@@ -1037,7 +1037,7 @@ function the_champ_connect(){
1037
  if(isset($theChampLoginOptions['providers']) && in_array('disqus', $theChampLoginOptions['providers']) && isset($theChampLoginOptions['disqus_public_key']) && $theChampLoginOptions['disqus_public_key'] != '' && isset($theChampLoginOptions['disqus_secret_key']) && $theChampLoginOptions['disqus_secret_key'] != ''){
1038
  $disqusLoginState = mt_rand();
1039
  // save referrer url in state
1040
- update_user_meta($disqusLoginState, 'super_socializer_redirect_to', isset($_GET['super_socializer_redirect_to']) ? esc_url(trim($_GET['super_socializer_redirect_to'])) : home_url());
1041
  wp_redirect("https://disqus.com/api/oauth/2.0/authorize/?client_id=" . $theChampLoginOptions['disqus_public_key'] . "&scope=read,email&response_type=code&state=". $disqusLoginState ."&redirect_uri=" . home_url() . "/SuperSocializerAuth/Disqus");
1042
  die;
1043
  }
@@ -1106,7 +1106,7 @@ function the_champ_connect(){
1106
  if(isset($theChampLoginOptions['providers']) && in_array('dropbox', $theChampLoginOptions['providers']) && isset($theChampLoginOptions['dropbox_app_key']) && $theChampLoginOptions['dropbox_app_key'] != '' && isset($theChampLoginOptions['dropbox_app_secret']) && $theChampLoginOptions['dropbox_app_secret'] != ''){
1107
  $dropboxLoginState = mt_rand();
1108
  // save referrer url in state
1109
- update_user_meta($dropboxLoginState, 'super_socializer_redirect_to', isset($_GET['super_socializer_redirect_to']) ? esc_url(trim($_GET['super_socializer_redirect_to'])) : home_url());
1110
  wp_redirect("https://www.dropbox.com/1/oauth2/authorize?client_id=" . $theChampLoginOptions['dropbox_app_key'] . "&scope=account_info.read&state=" . $dropboxLoginState . "&response_type=code&redirect_uri=" . home_url() . "/SuperSocializerAuth/Dropbox");
1111
  die;
1112
  }
@@ -1176,7 +1176,7 @@ function the_champ_connect(){
1176
  if(isset($theChampLoginOptions['providers']) && in_array('foursquare', $theChampLoginOptions['providers']) && isset($theChampLoginOptions['foursquare_client_id']) && $theChampLoginOptions['foursquare_client_id'] != '' && isset($theChampLoginOptions['foursquare_client_secret']) && $theChampLoginOptions['foursquare_client_secret'] != ''){
1177
  $foursquareLoginState = mt_rand();
1178
  // save referrer url in state
1179
- update_user_meta($foursquareLoginState, 'super_socializer_redirect_to', isset($_GET['super_socializer_redirect_to']) ? esc_url(trim($_GET['super_socializer_redirect_to'])) : home_url());
1180
  wp_redirect("https://foursquare.com/oauth2/authenticate/?client_id=" . $theChampLoginOptions['foursquare_client_id'] . "&response_type=code&state=". $foursquareLoginState ."&redirect_uri=" . home_url() . "/SuperSocializerAuth/Foursquare");
1181
  die;
1182
  }
@@ -1244,7 +1244,7 @@ function the_champ_connect(){
1244
  if(!isset($_GET['code'])){
1245
  $dribbbleLoginState = mt_rand();
1246
  // save referrer url in state
1247
- update_user_meta($dribbbleLoginState, 'super_socializer_redirect_to', isset($_GET['super_socializer_redirect_to']) ? esc_url(trim($_GET['super_socializer_redirect_to'])) : home_url());
1248
  }
1249
  wp_redirect("https://dribbble.com/oauth/authorize?client_id=".$theChampLoginOptions['dribbble_client_id']."&scope=public&state=". $dribbbleLoginState ."&redirect_uri=".urlencode(home_url()."/SuperSocializerAuth/Dribbble"));
1250
  die;
@@ -1309,7 +1309,7 @@ function the_champ_connect(){
1309
  if(!isset($_GET['code'])){
1310
  $spotifyLoginState = mt_rand();
1311
  // save referrer url in state
1312
- update_user_meta($spotifyLoginState, 'super_socializer_redirect_to', isset($_GET['super_socializer_redirect_to']) ? esc_url(trim($_GET['super_socializer_redirect_to'])) : home_url());
1313
  }
1314
  wp_redirect("https://accounts.spotify.com/authorize?client_id=".$theChampLoginOptions['spotify_client_id']."&scope=user-read-email&response_type=code&state=". $spotifyLoginState ."&redirect_uri=".home_url()."/SuperSocializerAuth/Spotify");
1315
  die;
@@ -1373,7 +1373,7 @@ function the_champ_connect(){
1373
  if(!isset($_GET['code'])){
1374
  $kakaoLoginState = mt_rand();
1375
  // save referrer url in state
1376
- update_user_meta($kakaoLoginState, 'super_socializer_redirect_to', isset($_GET['super_socializer_redirect_to']) ? esc_url(trim($_GET['super_socializer_redirect_to'])) : home_url());
1377
  }
1378
  wp_redirect("https://kauth.kakao.com/oauth/authorize?client_id=".$theChampLoginOptions['kakao_client_id']."&response_type=code&state=". $kakaoLoginState ."&redirect_uri=".home_url()."/SuperSocializerAuth/Kakao");
1379
  die;
@@ -1437,7 +1437,7 @@ function the_champ_connect(){
1437
  if(!isset($_GET['code'])){
1438
  $githubLoginState = mt_rand();
1439
  // save referrer url in state
1440
- update_user_meta($githubLoginState, 'super_socializer_redirect_to', isset($_GET['super_socializer_redirect_to']) ? esc_url(trim($_GET['super_socializer_redirect_to'])) : home_url());
1441
  }
1442
  wp_redirect("https://github.com/login/oauth/authorize?client_id=".$theChampLoginOptions['github_client_id']."&scope=read:user user:email&state=". $githubLoginState ."&response_type=code&redirect_uri=".home_url()."/SuperSocializerAuth/Github");
1443
  die;
@@ -1518,7 +1518,7 @@ function the_champ_connect(){
1518
  if(!isset($_GET['code'])){
1519
  $facebookLoginState = mt_rand();
1520
  // save referrer url in state
1521
- update_user_meta($facebookLoginState, 'super_socializer_redirect_to', isset($_GET['super_socializer_redirect_to']) ? esc_url(trim($_GET['super_socializer_redirect_to'])) : home_url());
1522
  wp_redirect("https://www.facebook.com/v10.0/dialog/oauth?scope=email&client_id=" . $theChampLoginOptions['fb_key'] . "&state=" . $facebookLoginState . "&redirect_uri=" . home_url() . "/?SuperSocializerAuth=Facebook");
1523
  die;
1524
  }elseif(isset($_GET['code']) && isset($_GET['state']) && get_user_meta(sanitize_text_field($_GET['state']), 'super_socializer_redirect_to', true) !== false){
@@ -1582,7 +1582,7 @@ function the_champ_connect(){
1582
  if(!isset($_GET['code'])){
1583
  $amazonLoginState = mt_rand();
1584
  // save referrer url in state
1585
- update_user_meta($amazonLoginState, 'super_socializer_redirect_to', isset($_GET['super_socializer_redirect_to']) ? esc_url(trim($_GET['super_socializer_redirect_to'])) : home_url());
1586
  }
1587
  wp_redirect("https://www.amazon.com/ap/oa?client_id=".$theChampLoginOptions['amazon_client_id']."&response_type=code&scope=profile&state=".$amazonLoginState."&redirect_uri=".urlencode(home_url()."/SuperSocializerAuth/Amazon"));
1588
  die;
@@ -1644,7 +1644,7 @@ function the_champ_connect(){
1644
  if(!isset($_GET['code'])){
1645
  $stackoverflowLoginState = mt_rand();
1646
  // save referrer url in state
1647
- update_user_meta($stackoverflowLoginState, 'super_socializer_redirect_to', isset($_GET['super_socializer_redirect_to']) ? esc_url(trim($_GET['super_socializer_redirect_to'])) : home_url());
1648
  }
1649
  wp_redirect("https://stackexchange.com/oauth?client_id=".$theChampLoginOptions['stackoverflow_client_id']."&response_type=code&scope=private_info&state=".$stackoverflowLoginState."&redirect_uri=".urlencode(home_url()."/SuperSocializerAuth/Stackoverflow"));
1650
  die;
@@ -1711,7 +1711,7 @@ function the_champ_connect(){
1711
  if(isset($theChampLoginOptions['providers']) && in_array('google', $theChampLoginOptions['providers']) && isset($theChampLoginOptions['google_key']) && $theChampLoginOptions['google_key'] != '' && isset($theChampLoginOptions['google_secret']) && $theChampLoginOptions['google_secret'] != ''){
1712
  $googleLoginState = mt_rand();
1713
  // save referrer url in state
1714
- update_user_meta($googleLoginState, 'super_socializer_redirect_to', isset($_GET['super_socializer_redirect_to']) ? esc_url(trim($_GET['super_socializer_redirect_to'])) : home_url());
1715
  wp_redirect("https://accounts.google.com/o/oauth2/auth?client_id=" . $theChampLoginOptions['google_key'] . "&scope=https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile&state=". $googleLoginState ."&response_type=code&prompt=select_account&redirect_uri=" . home_url());
1716
  die;
1717
  }
@@ -1797,7 +1797,7 @@ function the_champ_connect(){
1797
  session_start();
1798
  }
1799
  }
1800
- $_SESSION['super_socializer_vkontakte_redirect'] = isset($_GET['super_socializer_redirect_to']) ? esc_url(trim($_GET['super_socializer_redirect_to'])) : home_url();
1801
  wp_redirect($heateorSsVkontakte->getLoginUrl());
1802
  die;
1803
  }
@@ -1870,7 +1870,7 @@ function the_champ_connect(){
1870
  update_user_meta($uniqueId, 'thechamp_mc_subscribe', '1');
1871
  }
1872
  if(isset($_GET['super_socializer_redirect_to']) && heateor_ss_validate_url($_GET['super_socializer_redirect_to']) !== false){
1873
- update_user_meta($uniqueId, 'thechamp_twitter_redirect', esc_url(trim($_GET['super_socializer_redirect_to'])));
1874
  }
1875
  wp_redirect($connection->url('oauth/authorize', ['oauth_token' => $requestToken['oauth_token']]));
1876
  die;
@@ -2127,14 +2127,14 @@ function the_champ_frontend_scripts(){
2127
  if(the_champ_social_commenting_enabled()){
2128
  global $post;
2129
  if($post){
2130
- $postMeta = get_post_meta($post-> ID, '_the_champ_meta', true);
2131
  if(isset($theChampFacebookOptions['enable_'.$post->post_type]) && !(isset($postMeta) && isset($postMeta['fb_comments']) && $postMeta['fb_comments'] == 1)){
2132
  if(isset($theChampFacebookOptions['urlToComment']) && $theChampFacebookOptions['urlToComment'] != ''){
2133
  $commentUrl = $theChampFacebookOptions['urlToComment'];
2134
- }elseif(isset($post-> ID) && $post-> ID){
2135
- $commentUrl = get_permalink($post-> ID);
2136
  }else{
2137
- $commentUrl = esc_url(the_champ_get_http().$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"]);
2138
  }
2139
 
2140
  $commentingTabsOrder = ($theChampFacebookOptions['commenting_order'] != '' ? $theChampFacebookOptions['commenting_order'] : 'wordpress,facebook,disqus');
@@ -2187,7 +2187,7 @@ function the_champ_frontend_scripts(){
2187
  <?php
2188
  if(isset($theChampSharingOptions['horizontal_re_providers']) && (isset($theChampSharingOptions['horizontal_more']) || in_array('Copy_Link', $theChampSharingOptions['horizontal_re_providers']))){
2189
  $postId = 0;
2190
- $postUrl = esc_url(the_champ_get_http().$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"]);
2191
  if(isset($theChampSharingOptions['horizontal_target_url'])){
2192
  if($theChampSharingOptions['horizontal_target_url'] == 'default'){
2193
  if($post){
@@ -2555,7 +2555,7 @@ function the_champ_save_avatar($user_id){
2555
  update_user_meta($user_id, 'thechamp_avatar', esc_url(trim($_POST['the_champ_small_avatar'])));
2556
  }
2557
  if((!isset($_POST['heateor_ss_gdpr_consent']) || $_POST['heateor_ss_gdpr_consent'] == 'yes') && isset($_POST['the_champ_large_avatar'])){
2558
- update_user_meta($user_id, 'thechamp_large_avatar', esc_url(trim($_POST['the_champ_large_avatar'])));
2559
  }
2560
  if(isset($_POST['ss_dontupdate_avatar'])){
2561
  update_user_meta($user_id, 'thechamp_dontupdate_avatar', intval($_POST['ss_dontupdate_avatar']));
@@ -3572,68 +3572,16 @@ function the_champ_update_db_check(){
3572
  $theChampSharingOptions['language'] = get_locale();
3573
  $theChampSharingOptions['tweet_count_service'] = 'newsharecounts';
3574
 
3575
- $customCss = '';
3576
  if(isset($theChampSharingOptions['horizontal_counts'])){
3577
  $theChampSharingOptions['horizontal_counter_position'] = 'top';
3578
- $customCss .= '.the_champ_horizontal_sharing .the_champ_square_count{
3579
- display:block;
3580
- text-indent:0!important;
3581
- visibility:hidden;
3582
- background-color:#58B8F8!important;
3583
- width:auto;
3584
- height:auto;
3585
- text-align:center;
3586
- min-width:8px!important;
3587
- padding:1px 4px!important;
3588
- color:#fff!important;
3589
- font-family:\'Open Sans\',arial,sans-serif!important;
3590
- font-size:10px!important;
3591
- font-weight:600!important;
3592
- -webkit-border-radius:15px!important;
3593
- border-radius:15px!important;
3594
- -webkit-box-shadow:0 2px 2px rgba(0,0,0,.4);
3595
- box-shadow:0 2px 2px rgba(0,0,0,.4);
3596
- text-shadow:0 -1px 0 rgba(0,0,0,.2);
3597
- line-height:14px!important;
3598
- border:2px solid #fff!important;
3599
- z-index:1;
3600
- margin:2px auto!important;
3601
- box-sizing:content-box!important
3602
- }';
3603
  }
3604
  if(isset($theChampSharingOptions['vertical_counts'])){
3605
  if(!isset($theChampSharingOptions['vertical_sharing_shape']) || $theChampSharingOptions['vertical_sharing_shape'] == 'square'){
3606
  $theChampSharingOptions['vertical_counter_position'] = 'inner_top';
3607
  }elseif($theChampSharingOptions['vertical_sharing_shape'] == 'round'){
3608
  $theChampSharingOptions['vertical_counter_position'] = 'top';
3609
- $customCss .= '.the_champ_vertical_sharing .the_champ_square_count{
3610
- display:block;
3611
- text-indent:0!important;
3612
- visibility:hidden;
3613
- background-color:#58B8F8!important;
3614
- width:auto;
3615
- height:auto;
3616
- text-align:center;
3617
- min-width:8px!important;
3618
- padding:1px 4px!important;
3619
- color:#fff!important;
3620
- font-family:\'Open Sans\',arial,sans-serif!important;
3621
- font-size:10px!important;
3622
- font-weight:600!important;
3623
- -webkit-border-radius:15px!important;
3624
- border-radius:15px!important;
3625
- -webkit-box-shadow:0 2px 2px rgba(0,0,0,.4);
3626
- box-shadow:0 2px 2px rgba(0,0,0,.4);
3627
- text-shadow:0 -1px 0 rgba(0,0,0,.2);
3628
- line-height:14px!important;
3629
- border:2px solid #fff!important;
3630
- z-index:1;
3631
- margin:2px auto!important;
3632
- box-sizing:content-box!important
3633
- }';
3634
  }
3635
  }
3636
- $theChampGeneralOptions['custom_css'] = $customCss;
3637
 
3638
  update_option('the_champ_sharing', $theChampSharingOptions);
3639
  update_option('the_champ_general', $theChampGeneralOptions);
@@ -3668,7 +3616,7 @@ function the_champ_frontend_amp_css(){
3668
  }
3669
 
3670
  // background color of amp icons
3671
- $css .= 'a.the_champ_amp{padding:0 4px;}div.the_champ_horizontal_sharing a amp-img{display:inline-block;margin:0 4px;}.the_champ_amp_parler img{background-color:#C63240}.the_champ_amp_instagram img{background-color:#624E47}.the_champ_amp_yummly img{background-color:#E16120}.the_champ_amp_buffer img{background-color:#000}.the_champ_amp_facebook img{background-color:#3C589A}.the_champ_amp_digg img{background-color:#006094}.the_champ_amp_email img{background-color:#649A3F}.the_champ_amp_float_it img{background-color:#53BEEE}.the_champ_amp_google img{background-color:#dd4b39}.the_champ_amp_google_plus img{background-color:#dd4b39}.the_champ_amp_linkedin img{background-color:#0077B5}.the_champ_amp_pinterest img{background-color:#CC2329}.the_champ_amp_print img{background-color:#FD6500}.the_champ_amp_reddit img{background-color:#FF5700}.the_champ_amp_stocktwits img{background-color: #40576F}.the_champ_amp_mix img{background-color:#ff8226}.the_champ_amp_tumblr img{background-color:#29435D}.the_champ_amp_twitter img{background-color:#55acee}.the_champ_amp_vkontakte img{background-color:#5E84AC}.the_champ_amp_yahoo img{background-color:#8F03CC}.the_champ_amp_xing img{background-color:#00797D}.the_champ_amp_instagram img{background-color:#527FA4}.the_champ_amp_whatsapp img{background-color:#55EB4C}.the_champ_amp_aim img{background-color: #10ff00}.the_champ_amp_amazon_wish_list img{background-color: #ffe000}.the_champ_amp_aol_mail img{background-color: #2A2A2A}.the_champ_amp_app_net img{background-color: #5D5D5D}.the_champ_amp_balatarin img{background-color: #fff}.the_champ_amp_bibsonomy img{background-color: #000}.the_champ_amp_bitty_browser img{background-color: #EFEFEF}.the_champ_amp_blinklist img{background-color: #3D3C3B}.the_champ_amp_blogger_post img{background-color: #FDA352}.the_champ_amp_blogmarks img{background-color: #535353}.the_champ_amp_bookmarks_fr img{background-color: #E8EAD4}.the_champ_amp_box_net img{background-color: #1A74B0}.the_champ_amp_buddymarks img{background-color: #ffd400}.the_champ_amp_care2_news img{background-color: #6EB43F}.the_champ_amp_citeulike img{background-color: #2781CD}.the_champ_amp_comment img{background-color: #444}.the_champ_amp_diary_ru img{background-color: #E8D8C6}.the_champ_amp_diaspora img{background-color: #2E3436}.the_champ_amp_diigo img{background-color: #4A8BCA}.the_champ_amp_douban img{background-color: #497700}.the_champ_amp_draugiem img{background-color: #ffad66}.the_champ_amp_dzone img{background-color: #fff088}.the_champ_amp_evernote img{background-color: #8BE056}.the_champ_amp_facebook_messenger img{background-color: #0084FF}.the_champ_amp_fark img{background-color: #555}.the_champ_amp_fintel img{background-color:#087515}.the_champ_amp_flipboard img{background-color: #CC0000}.the_champ_amp_folkd img{background-color: #0F70B2}.the_champ_amp_google_classroom img{background-color: #FFC112}.the_champ_amp_google_bookmarks img{background-color: #CB0909}.the_champ_amp_google_gmail img{background-color: #E5E5E5}.the_champ_amp_hacker_news img{background-color: #F60}.the_champ_amp_hatena img{background-color: #00A6DB}.the_champ_amp_instapaper img{background-color: #EDEDED}.the_champ_amp_jamespot img{background-color: #FF9E2C}.the_champ_amp_kakao img{background-color: #FCB700}.the_champ_amp_kik img{background-color: #2A2A2A}.the_champ_amp_kindle_it img{background-color: #2A2A2A}.the_champ_amp_known img{background-color: #fff101}.the_champ_amp_line img{background-color: #00C300}.the_champ_amp_livejournal img{background-color: #EDEDED}.the_champ_amp_mail_ru img{background-color: #356FAC}.the_champ_amp_mendeley img{background-color: #A70805}.the_champ_amp_meneame img{background-color: #FF7D12}.the_champ_amp_mewe img{background-color: #007da1}.the_champ_amp_mixi img{background-color: #EDEDED}.the_champ_amp_myspace img{background-color: #2A2A2A}.the_champ_amp_netvouz img{background-color: #c0ff00}.the_champ_amp_odnoklassniki img{background-color: #F2720C}.the_champ_amp_outlook_com img{background-color: #0072C6}.the_champ_amp_papaly img{background-color: #3AC0F6}.the_champ_amp_pinboard img{background-color: #1341DE}.the_champ_amp_plurk img{background-color: #CF682F}.the_champ_amp_pocket img{background-color: #f0f0f0}.the_champ_amp_printfriendly img{background-color: #61D1D5}.the_champ_amp_protopage_bookmarks img{background-color: #413FFF}.the_champ_amp_pusha img{background-color: #0072B8}.the_champ_amp_qzone img{background-color: #2B82D9}.the_champ_amp_refind img{background-color: #1492ef}.the_champ_amp_rediff_mypage img{background-color: #D20000}.the_champ_amp_renren img{background-color: #005EAC}.the_champ_amp_sina_weibo img{background-color: #ff0}.the_champ_amp_sitejot img{background-color: #ffc800}.the_champ_amp_skype img{background-color: #00AFF0}.the_champ_amp_sms img{background-color: #6ebe45}.the_champ_amp_slashdot img{background-color: #004242}.the_champ_amp_svejo img{background-color: #fa7aa3}.the_champ_amp_symbaloo_feeds img{background-color: #6DA8F7}.the_champ_amp_telegram img{background-color: #3DA5f1}.the_champ_amp_trello img{background-color: #1189CE}.the_champ_amp_tuenti img{background-color: #0075C9}.the_champ_amp_twiddla img{background-color: #EDEDED}.the_champ_amp_typepad_post img{background-color: #2A2A2A}.the_champ_amp_viadeo img{background-color: #2A2A2A}.the_champ_amp_viber img{background-color: #8B628F}.the_champ_amp_wanelo img{background-color: #fff}.the_champ_amp_webnews img{background-color: #CC2512}.the_champ_amp_wordpress img{background-color: #464646}.the_champ_amp_wykop img{background-color: #367DA9}.the_champ_amp_yahoo_mail img{background-color: #400090}.the_champ_amp_yahoo_messenger img{background-color: #400090}.the_champ_amp_yoolink img{background-color: #A2C538}.the_champ_amp_threema img{background-color: #2A2A2A}.the_champ_amp_youmob img{background-color: #3B599D}.the_champ_amp_gentlereader img{background-color: #46aecf}.the_champ_amp_goodreads img{background-color:#ce6f2d}.the_champ_amp_gab img{background-color:#25CC80}.the_champ_amp_gettr img{background-color:#E50000}';
3672
 
3673
  // css for horizontal sharing bar
3674
  if($theChampSharingOptions['horizontal_sharing_shape'] == 'round'){
3
  Plugin Name: Super Socializer
4
  Plugin URI: https://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, Social Media follow and more
6
+ Version: 7.13.33
7
  Author: Team Heateor
8
  Author URI: https://www.heateor.com
9
  Text Domain: super-socializer
11
  License: GPL2+
12
  */
13
  defined('ABSPATH') or die("Cheating........Uh!!");
14
+ define('THE_CHAMP_SS_VERSION', '7.13.33');
15
 
16
  // attributes to allow in the HTML of the social share and social media follow icons
17
  $heateorSsDefaultAttribs = array(
300
  if(isset($theChampLoginOptions['providers']) && in_array('instagram', $theChampLoginOptions['providers']) && isset($theChampLoginOptions['insta_id']) && $theChampLoginOptions['insta_id'] != '' && isset($theChampLoginOptions['insta_app_secret']) && $theChampLoginOptions['insta_app_secret'] != ''){
301
  $instagramLoginState = mt_rand();
302
  // save referrer url in state
303
+ update_user_meta($instagramLoginState, 'super_socializer_redirect_to', isset($_GET['super_socializer_redirect_to']) ? sanitize_url($_GET['super_socializer_redirect_to']) : home_url());
304
  wp_redirect("https://api.instagram.com/oauth/authorize?client_id=".$theChampLoginOptions['insta_id']."&scope=user_profile,user_media&response_type=code&language=en-us&state=".$instagramLoginState."&redirect_uri=".urlencode(home_url()."/SuperSocializerAuth/Instagram"));
305
  die;
306
  }
312
  'client_secret' => $theChampLoginOptions['insta_app_secret'],
313
  'grant_type' => 'authorization_code',
314
  'redirect_uri' => home_url().'/SuperSocializerAuth/Instagram',
315
+ 'code' => sanitize_text_field($_GET['code'])
316
  );
317
  $response = wp_remote_post("https://api.instagram.com/oauth/access_token", array(
318
  'method' => 'POST',
401
  if(!isset($_GET['code']) && !isset($_GET['state'])){
402
  $linkedinAuthState = mt_rand();
403
  // save referrer url in state
404
+ update_user_meta( $linkedinAuthState, 'super_socializer_redirect_to', isset($_GET['super_socializer_redirect_to']) ? sanitize_url($_GET['super_socializer_redirect_to']) : home_url() );
405
  if(isset($_GET['heateorMSEnabled'])){
406
  update_user_meta($linkedinAuthState, 'heateor_ss_linkedin_mc_sub', 1);
407
  }
508
  }
509
  }
510
  // save referrer url in state
511
+ $_SESSION['super_socializer_line_redirect'] = isset($_GET['super_socializer_redirect_to']) ? sanitize_url($_GET['super_socializer_redirect_to']) : home_url();
512
 
513
  $link = $heateorSsLine->getLink(7);
514
  wp_redirect($link);
566
  if(!isset($_GET['code'])){
567
  $mailruLoginState = mt_rand();
568
  // save referrer url in state
569
+ update_user_meta($mailruLoginState, 'super_socializer_redirect_to', isset($_GET['super_socializer_redirect_to']) ? sanitize_url($_GET['super_socializer_redirect_to']) : home_url());
570
  }
571
  wp_redirect("https://oauth.mail.ru/login?client_id=". $theChampLoginOptions['mailru_client_id'] ."&scope=userinfo&state=". $mailruLoginState ."&response_type=code&redirect_uri=". home_url() ."/SuperSocializerAuth/Mailru");
572
  die;
639
  if(!isset($_GET['code'])){
640
  $yahooLoginState = mt_rand();
641
  // save referrer url in state
642
+ update_user_meta($yahooLoginState, 'super_socializer_redirect_to', isset($_GET['super_socializer_redirect_to']) ? sanitize_url($_GET['super_socializer_redirect_to']) : home_url());
643
  }
644
  wp_redirect("https://api.login.yahoo.com/oauth2/request_auth?client_id=".$theChampLoginOptions['yahoo_channel_id']."&response_type=code&language=en-us&state=".$yahooLoginState."&redirect_uri=".home_url()."/SuperSocializerAuth/Yahoo");
645
  die;
706
  if(!isset($_GET['code'])){
707
  $discordLoginState = mt_rand();
708
  // save referrer url in state
709
+ update_user_meta($discordLoginState, 'super_socializer_redirect_to', isset($_GET['super_socializer_redirect_to']) ? sanitize_url($_GET['super_socializer_redirect_to']) : home_url());
710
  }
711
  wp_redirect("https://discord.com/oauth2/authorize/request_auth?client_id=".$theChampLoginOptions['discord_channel_id']."&response_type=code&state=".$discordLoginState."&scope=identify%20email&redirect_uri=".home_url()."/SuperSocializerAuth/Discord");
712
  die;
773
  if(!isset($_GET['code'])){
774
  $wordpressLoginState = mt_rand();
775
  // save referrer url in state
776
+ update_user_meta($wordpressLoginState, 'super_socializer_redirect_to', isset($_GET['super_socializer_redirect_to']) ? sanitize_url($_GET['super_socializer_redirect_to']) : home_url());
777
  }
778
  wp_redirect("https://public-api.wordpress.com/oauth2/authorize?client_id=".$theChampLoginOptions['wordpress_client_id']."&scope=auth&response_type=code&state=".$wordpressLoginState."&redirect_uri=".home_url()."/SuperSocializerAuth/Wordpress");
779
  die;
839
  if(isset($theChampLoginOptions['providers']) && in_array('microsoft', $theChampLoginOptions['providers']) && isset($theChampLoginOptions['live_channel_id']) && $theChampLoginOptions['live_channel_id'] != '' && isset($theChampLoginOptions['live_channel_secret']) && $theChampLoginOptions['live_channel_secret'] != ''){
840
  $liveLoginState = mt_rand();
841
  // save referrer url in state
842
+ update_user_meta($liveLoginState, 'super_socializer_redirect_to', isset($_GET['super_socializer_redirect_to']) ? sanitize_url($_GET['super_socializer_redirect_to']) : home_url());
843
  wp_redirect("https://login.live.com/oauth20_authorize.srf?client_id=".$theChampLoginOptions['live_channel_id']."&scope=wl.emails,wl.basic&response_type=code&state=".$liveLoginState."&redirect_uri=".home_url()."/SuperSocializerAuth/Live");
844
  die;
845
  }
903
  if(!isset($_GET['code'])){
904
  $twitchLoginState = mt_rand();
905
  // save referrer url in state
906
+ update_user_meta($twitchLoginState, 'super_socializer_redirect_to', isset($_GET['super_socializer_redirect_to']) ? sanitize_url($_GET['super_socializer_redirect_to']) : home_url());
907
  }
908
  wp_redirect("https://id.twitch.tv/oauth2/authorize?client_id=".$theChampLoginOptions['twitch_client_id']."&scope=user:read:email&response_type=code&state=".$twitchLoginState."&redirect_uri=".urlencode(home_url()."/SuperSocializerAuth/Twitch"));
909
  die;
969
  if(isset($theChampLoginOptions['providers']) && in_array('reddit', $theChampLoginOptions['providers']) && isset($theChampLoginOptions['reddit_client_id']) && $theChampLoginOptions['reddit_client_id'] != '' && isset($theChampLoginOptions['reddit_client_secret']) && $theChampLoginOptions['reddit_client_secret'] != ''){
970
  $redditLoginState = mt_rand();
971
  // save referrer url in state
972
+ update_user_meta($redditLoginState, 'super_socializer_redirect_to', isset($_GET['super_socializer_redirect_to']) ? sanitize_url($_GET['super_socializer_redirect_to']) : home_url());
973
  wp_redirect("https://ssl.reddit.com/api/v1/authorize?client_id=" . $theChampLoginOptions['reddit_client_id'] . "&scope=identity&state=" . $redditLoginState . "&duration=temporary&response_type=code&redirect_uri=" . home_url() . "/SuperSocializerAuth/Reddit");
974
  die;
975
  }
1037
  if(isset($theChampLoginOptions['providers']) && in_array('disqus', $theChampLoginOptions['providers']) && isset($theChampLoginOptions['disqus_public_key']) && $theChampLoginOptions['disqus_public_key'] != '' && isset($theChampLoginOptions['disqus_secret_key']) && $theChampLoginOptions['disqus_secret_key'] != ''){
1038
  $disqusLoginState = mt_rand();
1039
  // save referrer url in state
1040
+ update_user_meta($disqusLoginState, 'super_socializer_redirect_to', isset($_GET['super_socializer_redirect_to']) ? sanitize_url($_GET['super_socializer_redirect_to']) : home_url());
1041
  wp_redirect("https://disqus.com/api/oauth/2.0/authorize/?client_id=" . $theChampLoginOptions['disqus_public_key'] . "&scope=read,email&response_type=code&state=". $disqusLoginState ."&redirect_uri=" . home_url() . "/SuperSocializerAuth/Disqus");
1042
  die;
1043
  }
1106
  if(isset($theChampLoginOptions['providers']) && in_array('dropbox', $theChampLoginOptions['providers']) && isset($theChampLoginOptions['dropbox_app_key']) && $theChampLoginOptions['dropbox_app_key'] != '' && isset($theChampLoginOptions['dropbox_app_secret']) && $theChampLoginOptions['dropbox_app_secret'] != ''){
1107
  $dropboxLoginState = mt_rand();
1108
  // save referrer url in state
1109
+ update_user_meta($dropboxLoginState, 'super_socializer_redirect_to', isset($_GET['super_socializer_redirect_to']) ? sanitize_url($_GET['super_socializer_redirect_to']) : home_url());
1110
  wp_redirect("https://www.dropbox.com/1/oauth2/authorize?client_id=" . $theChampLoginOptions['dropbox_app_key'] . "&scope=account_info.read&state=" . $dropboxLoginState . "&response_type=code&redirect_uri=" . home_url() . "/SuperSocializerAuth/Dropbox");
1111
  die;
1112
  }
1176
  if(isset($theChampLoginOptions['providers']) && in_array('foursquare', $theChampLoginOptions['providers']) && isset($theChampLoginOptions['foursquare_client_id']) && $theChampLoginOptions['foursquare_client_id'] != '' && isset($theChampLoginOptions['foursquare_client_secret']) && $theChampLoginOptions['foursquare_client_secret'] != ''){
1177
  $foursquareLoginState = mt_rand();
1178
  // save referrer url in state
1179
+ update_user_meta($foursquareLoginState, 'super_socializer_redirect_to', isset($_GET['super_socializer_redirect_to']) ? sanitize_url($_GET['super_socializer_redirect_to']) : home_url());
1180
  wp_redirect("https://foursquare.com/oauth2/authenticate/?client_id=" . $theChampLoginOptions['foursquare_client_id'] . "&response_type=code&state=". $foursquareLoginState ."&redirect_uri=" . home_url() . "/SuperSocializerAuth/Foursquare");
1181
  die;
1182
  }
1244
  if(!isset($_GET['code'])){
1245
  $dribbbleLoginState = mt_rand();
1246
  // save referrer url in state
1247
+ update_user_meta($dribbbleLoginState, 'super_socializer_redirect_to', isset($_GET['super_socializer_redirect_to']) ? sanitize_url($_GET['super_socializer_redirect_to']) : home_url());
1248
  }
1249
  wp_redirect("https://dribbble.com/oauth/authorize?client_id=".$theChampLoginOptions['dribbble_client_id']."&scope=public&state=". $dribbbleLoginState ."&redirect_uri=".urlencode(home_url()."/SuperSocializerAuth/Dribbble"));
1250
  die;
1309
  if(!isset($_GET['code'])){
1310
  $spotifyLoginState = mt_rand();
1311
  // save referrer url in state
1312
+ update_user_meta($spotifyLoginState, 'super_socializer_redirect_to', isset($_GET['super_socializer_redirect_to']) ? sanitize_url($_GET['super_socializer_redirect_to']) : home_url());
1313
  }
1314
  wp_redirect("https://accounts.spotify.com/authorize?client_id=".$theChampLoginOptions['spotify_client_id']."&scope=user-read-email&response_type=code&state=". $spotifyLoginState ."&redirect_uri=".home_url()."/SuperSocializerAuth/Spotify");
1315
  die;
1373
  if(!isset($_GET['code'])){
1374
  $kakaoLoginState = mt_rand();
1375
  // save referrer url in state
1376
+ update_user_meta($kakaoLoginState, 'super_socializer_redirect_to', isset($_GET['super_socializer_redirect_to']) ? sanitize_url($_GET['super_socializer_redirect_to']) : home_url());
1377
  }
1378
  wp_redirect("https://kauth.kakao.com/oauth/authorize?client_id=".$theChampLoginOptions['kakao_client_id']."&response_type=code&state=". $kakaoLoginState ."&redirect_uri=".home_url()."/SuperSocializerAuth/Kakao");
1379
  die;
1437
  if(!isset($_GET['code'])){
1438
  $githubLoginState = mt_rand();
1439
  // save referrer url in state
1440
+ update_user_meta($githubLoginState, 'super_socializer_redirect_to', isset($_GET['super_socializer_redirect_to']) ? sanitize_url($_GET['super_socializer_redirect_to']) : home_url());
1441
  }
1442
  wp_redirect("https://github.com/login/oauth/authorize?client_id=".$theChampLoginOptions['github_client_id']."&scope=read:user user:email&state=". $githubLoginState ."&response_type=code&redirect_uri=".home_url()."/SuperSocializerAuth/Github");
1443
  die;
1518
  if(!isset($_GET['code'])){
1519
  $facebookLoginState = mt_rand();
1520
  // save referrer url in state
1521
+ update_user_meta($facebookLoginState, 'super_socializer_redirect_to', isset($_GET['super_socializer_redirect_to']) ? sanitize_url($_GET['super_socializer_redirect_to']) : home_url());
1522
  wp_redirect("https://www.facebook.com/v10.0/dialog/oauth?scope=email&client_id=" . $theChampLoginOptions['fb_key'] . "&state=" . $facebookLoginState . "&redirect_uri=" . home_url() . "/?SuperSocializerAuth=Facebook");
1523
  die;
1524
  }elseif(isset($_GET['code']) && isset($_GET['state']) && get_user_meta(sanitize_text_field($_GET['state']), 'super_socializer_redirect_to', true) !== false){
1582
  if(!isset($_GET['code'])){
1583
  $amazonLoginState = mt_rand();
1584
  // save referrer url in state
1585
+ update_user_meta($amazonLoginState, 'super_socializer_redirect_to', isset($_GET['super_socializer_redirect_to']) ? sanitize_url($_GET['super_socializer_redirect_to']) : home_url());
1586
  }
1587
  wp_redirect("https://www.amazon.com/ap/oa?client_id=".$theChampLoginOptions['amazon_client_id']."&response_type=code&scope=profile&state=".$amazonLoginState."&redirect_uri=".urlencode(home_url()."/SuperSocializerAuth/Amazon"));
1588
  die;
1644
  if(!isset($_GET['code'])){
1645
  $stackoverflowLoginState = mt_rand();
1646
  // save referrer url in state
1647
+ update_user_meta($stackoverflowLoginState, 'super_socializer_redirect_to', isset($_GET['super_socializer_redirect_to']) ? sanitize_url($_GET['super_socializer_redirect_to']) : home_url());
1648
  }
1649
  wp_redirect("https://stackexchange.com/oauth?client_id=".$theChampLoginOptions['stackoverflow_client_id']."&response_type=code&scope=private_info&state=".$stackoverflowLoginState."&redirect_uri=".urlencode(home_url()."/SuperSocializerAuth/Stackoverflow"));
1650
  die;
1711
  if(isset($theChampLoginOptions['providers']) && in_array('google', $theChampLoginOptions['providers']) && isset($theChampLoginOptions['google_key']) && $theChampLoginOptions['google_key'] != '' && isset($theChampLoginOptions['google_secret']) && $theChampLoginOptions['google_secret'] != ''){
1712
  $googleLoginState = mt_rand();
1713
  // save referrer url in state
1714
+ update_user_meta($googleLoginState, 'super_socializer_redirect_to', isset($_GET['super_socializer_redirect_to']) ? sanitize_url($_GET['super_socializer_redirect_to']) : home_url());
1715
  wp_redirect("https://accounts.google.com/o/oauth2/auth?client_id=" . $theChampLoginOptions['google_key'] . "&scope=https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile&state=". $googleLoginState ."&response_type=code&prompt=select_account&redirect_uri=" . home_url());
1716
  die;
1717
  }
1797
  session_start();
1798
  }
1799
  }
1800
+ $_SESSION['super_socializer_vkontakte_redirect'] = isset($_GET['super_socializer_redirect_to']) ? sanitize_url($_GET['super_socializer_redirect_to']) : home_url();
1801
  wp_redirect($heateorSsVkontakte->getLoginUrl());
1802
  die;
1803
  }
1870
  update_user_meta($uniqueId, 'thechamp_mc_subscribe', '1');
1871
  }
1872
  if(isset($_GET['super_socializer_redirect_to']) && heateor_ss_validate_url($_GET['super_socializer_redirect_to']) !== false){
1873
+ update_user_meta($uniqueId, 'thechamp_twitter_redirect', sanitize_url($_GET['super_socializer_redirect_to']));
1874
  }
1875
  wp_redirect($connection->url('oauth/authorize', ['oauth_token' => $requestToken['oauth_token']]));
1876
  die;
2127
  if(the_champ_social_commenting_enabled()){
2128
  global $post;
2129
  if($post){
2130
+ $postMeta = get_post_meta($post->ID, '_the_champ_meta', true);
2131
  if(isset($theChampFacebookOptions['enable_'.$post->post_type]) && !(isset($postMeta) && isset($postMeta['fb_comments']) && $postMeta['fb_comments'] == 1)){
2132
  if(isset($theChampFacebookOptions['urlToComment']) && $theChampFacebookOptions['urlToComment'] != ''){
2133
  $commentUrl = $theChampFacebookOptions['urlToComment'];
2134
+ }elseif(isset($post->ID) && $post->ID){
2135
+ $commentUrl = get_permalink($post->ID);
2136
  }else{
2137
+ $commentUrl = sanitize_url(the_champ_get_http().$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"]);
2138
  }
2139
 
2140
  $commentingTabsOrder = ($theChampFacebookOptions['commenting_order'] != '' ? $theChampFacebookOptions['commenting_order'] : 'wordpress,facebook,disqus');
2187
  <?php
2188
  if(isset($theChampSharingOptions['horizontal_re_providers']) && (isset($theChampSharingOptions['horizontal_more']) || in_array('Copy_Link', $theChampSharingOptions['horizontal_re_providers']))){
2189
  $postId = 0;
2190
+ $postUrl = sanitize_url(the_champ_get_http().$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"]);
2191
  if(isset($theChampSharingOptions['horizontal_target_url'])){
2192
  if($theChampSharingOptions['horizontal_target_url'] == 'default'){
2193
  if($post){
2555
  update_user_meta($user_id, 'thechamp_avatar', esc_url(trim($_POST['the_champ_small_avatar'])));
2556
  }
2557
  if((!isset($_POST['heateor_ss_gdpr_consent']) || $_POST['heateor_ss_gdpr_consent'] == 'yes') && isset($_POST['the_champ_large_avatar'])){
2558
+ update_user_meta($user_id, 'thechamp_large_avatar', sanitize_url($_POST['the_champ_large_avatar']));
2559
  }
2560
  if(isset($_POST['ss_dontupdate_avatar'])){
2561
  update_user_meta($user_id, 'thechamp_dontupdate_avatar', intval($_POST['ss_dontupdate_avatar']));
3572
  $theChampSharingOptions['language'] = get_locale();
3573
  $theChampSharingOptions['tweet_count_service'] = 'newsharecounts';
3574
 
 
3575
  if(isset($theChampSharingOptions['horizontal_counts'])){
3576
  $theChampSharingOptions['horizontal_counter_position'] = 'top';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3577
  }
3578
  if(isset($theChampSharingOptions['vertical_counts'])){
3579
  if(!isset($theChampSharingOptions['vertical_sharing_shape']) || $theChampSharingOptions['vertical_sharing_shape'] == 'square'){
3580
  $theChampSharingOptions['vertical_counter_position'] = 'inner_top';
3581
  }elseif($theChampSharingOptions['vertical_sharing_shape'] == 'round'){
3582
  $theChampSharingOptions['vertical_counter_position'] = 'top';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3583
  }
3584
  }
 
3585
 
3586
  update_option('the_champ_sharing', $theChampSharingOptions);
3587
  update_option('the_champ_general', $theChampGeneralOptions);
3616
  }
3617
 
3618
  // background color of amp icons
3619
+ $css .= 'a.the_champ_amp{padding:0 4px;}div.the_champ_horizontal_sharing a amp-img{display:inline-block;margin:0 4px;}.the_champ_amp_parler img{background-color:#C63240}.the_champ_amp_instagram img{background-color:#624E47}.the_champ_amp_yummly img{background-color:#E16120}.the_champ_amp_buffer img{background-color:#000}.the_champ_amp_facebook img{background-color:#3C589A}.the_champ_amp_digg img{background-color:#006094}.the_champ_amp_email img{background-color:#649A3F}.the_champ_amp_float_it img{background-color:#53BEEE}.the_champ_amp_google img{background-color:#dd4b39}.the_champ_amp_google_plus img{background-color:#dd4b39}.the_champ_amp_linkedin img{background-color:#0077B5}.the_champ_amp_pinterest img{background-color:#CC2329}.the_champ_amp_print img{background-color:#FD6500}.the_champ_amp_reddit img{background-color:#FF5700}.the_champ_amp_stocktwits img{background-color: #40576F}.the_champ_amp_mix img{background-color:#ff8226}.the_champ_amp_tumblr img{background-color:#29435D}.the_champ_amp_twitter img{background-color:#55acee}.the_champ_amp_vkontakte img{background-color:#5E84AC}.the_champ_amp_yahoo img{background-color:#8F03CC}.the_champ_amp_xing img{background-color:#00797D}.the_champ_amp_instagram img{background-color:#527FA4}.the_champ_amp_whatsapp img{background-color:#55EB4C}.the_champ_amp_aim img{background-color: #10ff00}.the_champ_amp_amazon_wish_list img{background-color: #ffe000}.the_champ_amp_aol_mail img{background-color: #2A2A2A}.the_champ_amp_app_net img{background-color: #5D5D5D}.the_champ_amp_balatarin img{background-color: #fff}.the_champ_amp_bibsonomy img{background-color: #000}.the_champ_amp_bitty_browser img{background-color: #EFEFEF}.the_champ_amp_blinklist img{background-color: #3D3C3B}.the_champ_amp_blogger_post img{background-color: #FDA352}.the_champ_amp_blogmarks img{background-color: #535353}.the_champ_amp_bookmarks_fr img{background-color: #E8EAD4}.the_champ_amp_box_net img{background-color: #1A74B0}.the_champ_amp_buddymarks img{background-color: #ffd400}.the_champ_amp_care2_news img{background-color: #6EB43F}.the_champ_amp_citeulike img{background-color: #2781CD}.the_champ_amp_comment img{background-color: #444}.the_champ_amp_diary_ru img{background-color: #E8D8C6}.the_champ_amp_diaspora img{background-color: #2E3436}.the_champ_amp_diigo img{background-color: #4A8BCA}.the_champ_amp_douban img{background-color: #497700}.the_champ_amp_draugiem img{background-color: #ffad66}.the_champ_amp_dzone img{background-color: #fff088}.the_champ_amp_evernote img{background-color: #8BE056}.the_champ_amp_facebook_messenger img{background-color: #0084FF}.the_champ_amp_fark img{background-color: #555}.the_champ_amp_fintel img{background-color:#087515}.the_champ_amp_flipboard img{background-color: #CC0000}.the_champ_amp_folkd img{background-color: #0F70B2}.the_champ_amp_google_classroom img{background-color: #FFC112}.the_champ_amp_google_bookmarks img{background-color: #CB0909}.the_champ_amp_google_gmail img{background-color: #E5E5E5}.the_champ_amp_hacker_news img{background-color: #F60}.the_champ_amp_hatena img{background-color: #00A6DB}.the_champ_amp_instapaper img{background-color: #EDEDED}.the_champ_amp_jamespot img{background-color: #FF9E2C}.the_champ_amp_kakao img{background-color: #FCB700}.the_champ_amp_kik img{background-color: #2A2A2A}.the_champ_amp_kindle_it img{background-color: #2A2A2A}.the_champ_amp_known img{background-color: #fff101}.the_champ_amp_line img{background-color: #00C300}.the_champ_amp_livejournal img{background-color: #EDEDED}.the_champ_amp_mail_ru img{background-color: #356FAC}.the_champ_amp_mendeley img{background-color: #A70805}.the_champ_amp_meneame img{background-color: #FF7D12}.the_champ_amp_mewe img{background-color: #007da1}.the_champ_amp_mixi img{background-color: #EDEDED}.the_champ_amp_myspace img{background-color: #2A2A2A}.the_champ_amp_netvouz img{background-color: #c0ff00}.the_champ_amp_odnoklassniki img{background-color: #F2720C}.the_champ_amp_outlook_com img{background-color: #0072C6}.the_champ_amp_papaly img{background-color: #3AC0F6}.the_champ_amp_pinboard img{background-color: #1341DE}.the_champ_amp_plurk img{background-color: #CF682F}.the_champ_amp_pocket img{background-color: #f0f0f0}.the_champ_amp_printfriendly img{background-color: #61D1D5}.the_champ_amp_protopage_bookmarks img{background-color: #413FFF}.the_champ_amp_pusha img{background-color: #0072B8}.the_champ_amp_qzone img{background-color: #2B82D9}.the_champ_amp_refind img{background-color: #1492ef}.the_champ_amp_rediff_mypage img{background-color: #D20000}.the_champ_amp_renren img{background-color: #005EAC}.the_champ_amp_sina_weibo img{background-color: #ff0}.the_champ_amp_sitejot img{background-color: #ffc800}.the_champ_amp_skype img{background-color: #00AFF0}.the_champ_amp_sms img{background-color: #6ebe45}.the_champ_amp_slashdot img{background-color: #004242}.the_champ_amp_svejo img{background-color: #fa7aa3}.the_champ_amp_symbaloo_feeds img{background-color: #6DA8F7}.the_champ_amp_telegram img{background-color: #3DA5f1}.the_champ_amp_trello img{background-color: #1189CE}.the_champ_amp_tuenti img{background-color: #0075C9}.the_champ_amp_twiddla img{background-color: #EDEDED}.the_champ_amp_typepad_post img{background-color: #2A2A2A}.the_champ_amp_viadeo img{background-color: #2A2A2A}.the_champ_amp_viber img{background-color: #8B628F}.the_champ_amp_wanelo img{background-color: #fff}.the_champ_amp_webnews img{background-color: #CC2512}.the_champ_amp_wordpress img{background-color: #464646}.the_champ_amp_wykop img{background-color: #367DA9}.the_champ_amp_yahoo_mail img{background-color: #400090}.the_champ_amp_yahoo_messenger img{background-color: #400090}.the_champ_amp_yoolink img{background-color: #A2C538}.the_champ_amp_threema img{background-color: #2A2A2A}.the_champ_amp_youmob img{background-color: #3B599D}.the_champ_amp_youtube img{background-color:red}.the_champ_amp_gentlereader img{background-color: #46aecf}.the_champ_amp_goodreads img{background-color:#ce6f2d}.the_champ_amp_gab img{background-color:#25CC80}.the_champ_amp_gettr img{background-color:#E50000}';
3620
 
3621
  // css for horizontal sharing bar
3622
  if($theChampSharingOptions['horizontal_sharing_shape'] == 'round'){