WordPress Social Sharing Plugin – Sassy Social Share - Version 2.1

Version Description

  • [Improvement] Fixed AMP validation errors (thanks @nfabiox85 :) )
Download this release

Release Info

Developer Heateor
Plugin Icon 128x128 WordPress Social Sharing Plugin – Sassy Social Share
Version 2.1
Comparing to
See all releases

Code changes from version 2.0 to 2.1

includes/class-sassy-social-share-sharing-networks.php CHANGED
@@ -37,8 +37,8 @@ class Sassy_Social_Share_Sharing_Networks {
37
  'twitter' => '<li class="%li_class%"><i %style% alt="%title%" Title="%title%" class="heateorSssSharing heateorSss%ucfirst_network%Background" onclick=\'heateorSssPopup("http://twitter.com/intent/tweet?%via_twitter_username%text=%post_title%&url=%post_url%")\'><ss style="%inner_style%" class="heateorSssSharingSvg heateorSss%ucfirst_network%Svg"></ss></i></li>',
38
  'linkedin' => '<li class="%li_class%"><i %style% alt="%title%" Title="%title%" class="heateorSssSharing heateorSss%ucfirst_network%Background" onclick=\'heateorSssPopup("http://www.linkedin.com/shareArticle?mini=true&url=%post_url%&title=%post_title%")\'><ss style="%inner_style%" class="heateorSssSharingSvg heateorSss%ucfirst_network%Svg"></ss></i></li>',
39
  'google_plus' => '<li class="%li_class%"><i %style% alt="%title%" Title="%title%" class="heateorSssSharing heateorSss%ucfirst_network%Background" onclick=\'heateorSssPopup("https://plus.google.com/share?url=%post_url%")\'><ss style="%inner_style%" class="heateorSssSharingSvg heateorSss%ucfirst_network%Svg"></ss></i></li>',
40
- 'print' => '<li class="%li_class%"><i %style% alt="Print" Title="Print" class="heateorSssSharing heateorSss%ucfirst_network%Background" onclick=\'window.print()\'><ss style="display:block" class="heateorSssSharingSvg heateorSss%ucfirst_network%Svg"></ss></i></li>',
41
- 'email' => '<li class="%li_class%"><i %style% alt="Email" Title="Email" class="heateorSssSharing heateorSss%ucfirst_network%Background" %amp_email% onclick="window.location.href = \'mailto:?subject=\' + decodeURIComponent(\'%post_title%\' ) + \'&body=\' + decodeURIComponent(\'%post_url%\' )"><ss style="display:block" class="heateorSssSharingSvg heateorSss%ucfirst_network%Svg"></ss></i></li>',
42
  'yahoo' => '<li class="%li_class%"><i %style% alt="%title%" Title="%title%" class="heateorSssSharing heateorSss%ucfirst_network%Background" onclick=\'heateorSssPopup("http://bookmarks.yahoo.com/toolbar/SaveBM/?u=%post_url%&t=%post_title%")\'><ss style="%inner_style%" class="heateorSssSharingSvg heateorSss%ucfirst_network%Svg"></ss></i></li>',
43
  'reddit' => '<li class="%li_class%"><i %style% alt="%title%" Title="%title%" class="heateorSssSharing heateorSss%ucfirst_network%Background" onclick=\'heateorSssPopup("http://reddit.com/submit?url=%post_url%&title=%post_title%")\'><ss style="%inner_style%" class="heateorSssSharingSvg heateorSss%ucfirst_network%Svg"></ss></i></li>',
44
  'digg' => '<li class="%li_class%"><i %style% alt="%title%" Title="%title%" class="heateorSssSharing heateorSss%ucfirst_network%Background" onclick=\'heateorSssPopup("http://digg.com/submit?url=%post_url%&title=%post_title%")\'><ss style="%inner_style%" class="heateorSssSharingSvg heateorSss%ucfirst_network%Svg"></ss></i></li>',
37
  'twitter' => '<li class="%li_class%"><i %style% alt="%title%" Title="%title%" class="heateorSssSharing heateorSss%ucfirst_network%Background" onclick=\'heateorSssPopup("http://twitter.com/intent/tweet?%via_twitter_username%text=%post_title%&url=%post_url%")\'><ss style="%inner_style%" class="heateorSssSharingSvg heateorSss%ucfirst_network%Svg"></ss></i></li>',
38
  'linkedin' => '<li class="%li_class%"><i %style% alt="%title%" Title="%title%" class="heateorSssSharing heateorSss%ucfirst_network%Background" onclick=\'heateorSssPopup("http://www.linkedin.com/shareArticle?mini=true&url=%post_url%&title=%post_title%")\'><ss style="%inner_style%" class="heateorSssSharingSvg heateorSss%ucfirst_network%Svg"></ss></i></li>',
39
  'google_plus' => '<li class="%li_class%"><i %style% alt="%title%" Title="%title%" class="heateorSssSharing heateorSss%ucfirst_network%Background" onclick=\'heateorSssPopup("https://plus.google.com/share?url=%post_url%")\'><ss style="%inner_style%" class="heateorSssSharingSvg heateorSss%ucfirst_network%Svg"></ss></i></li>',
40
+ 'print' => '<li class="%li_class%"><i %style% alt="%title%" Title="Print" class="heateorSssSharing heateorSss%ucfirst_network%Background" onclick=\'window.print()\'><ss style="display:block" class="heateorSssSharingSvg heateorSss%ucfirst_network%Svg"></ss></i></li>',
41
+ 'email' => '<li class="%li_class%"><i %style% alt="%title%" Title="Email" class="heateorSssSharing heateorSss%ucfirst_network%Background" %amp_email% onclick="window.location.href = \'mailto:?subject=\' + decodeURIComponent(\'%post_title%\' ) + \'&body=\' + decodeURIComponent(\'%post_url%\' )"><ss style="display:block" class="heateorSssSharingSvg heateorSss%ucfirst_network%Svg"></ss></i></li>',
42
  'yahoo' => '<li class="%li_class%"><i %style% alt="%title%" Title="%title%" class="heateorSssSharing heateorSss%ucfirst_network%Background" onclick=\'heateorSssPopup("http://bookmarks.yahoo.com/toolbar/SaveBM/?u=%post_url%&t=%post_title%")\'><ss style="%inner_style%" class="heateorSssSharingSvg heateorSss%ucfirst_network%Svg"></ss></i></li>',
43
  'reddit' => '<li class="%li_class%"><i %style% alt="%title%" Title="%title%" class="heateorSssSharing heateorSss%ucfirst_network%Background" onclick=\'heateorSssPopup("http://reddit.com/submit?url=%post_url%&title=%post_title%")\'><ss style="%inner_style%" class="heateorSssSharingSvg heateorSss%ucfirst_network%Svg"></ss></i></li>',
44
  'digg' => '<li class="%li_class%"><i %style% alt="%title%" Title="%title%" class="heateorSssSharing heateorSss%ucfirst_network%Background" onclick=\'heateorSssPopup("http://digg.com/submit?url=%post_url%&title=%post_title%")\'><ss style="%inner_style%" class="heateorSssSharingSvg heateorSss%ucfirst_network%Svg"></ss></i></li>',
public/class-sassy-social-share-public.php CHANGED
@@ -781,6 +781,21 @@ class Sassy_Social_Share_Public {
781
 
782
  }
783
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
784
  /**
785
  * Render sharing interface html.
786
  *
@@ -903,21 +918,30 @@ class Sassy_Social_Share_Public {
903
  $share_count = array();
904
  $to_be_replaced = array();
905
  $replace_by = array();
906
- $current_page_url = html_entity_decode( esc_url( $this->get_http_protocol() . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"] ) );
907
- if ( strpos( $current_page_url, '/amp' ) !== false || strpos( $current_page_url, '?amp=1' ) !== false ) {
 
 
 
908
  $to_be_replaced[] = '<i';
909
  $to_be_replaced[] = '/i>';
 
 
910
  $to_be_replaced[] = 'onclick=\'heateorSssPopup("';
911
  $to_be_replaced[] = '")\'';
912
  $to_be_replaced[] = '%amp_email%';
913
  $to_be_replaced[] = '%amp_whatsapp%';
 
914
 
915
  $replace_by[] = '<a target="_blank"';
916
  $replace_by[] = '/a>';
 
 
917
  $replace_by[] = 'href="';
918
  $replace_by[] = '"';
919
  $replace_by[] = 'href="mailto:?subject=' . urldecode( rawurlencode( $post_title ) ) . '&body=' . urlencode( $post_url ) . '"';
920
- $replace_by[] = 'class="heateorSssSharing heateorSssAmpWhatsapp" alt="Whatsapp" Title="Whatsapp"';
 
921
  }
922
  foreach ( $this->options[$sharing_type.'_re_providers'] as $provider ) {
923
  $share_count[$provider] = $share_counts == '&nbsp;' ? '' : ( isset( $share_counts[$provider] ) ? $share_counts[$provider] : '' );
@@ -971,10 +995,14 @@ class Sassy_Social_Share_Public {
971
 
972
  if ( isset( $this->options[$sharing_type . '_more'] ) ) {
973
  $li_items .= '<li class="' . ( $li_class != '' ? $li_class : '' ) . '">';
974
- if ( $display_count) {
975
  $li_items .= $counter_container_init_html . '">&nbsp;' . $counter_container_end_html;
976
  }
977
- $li_items .= '<i ' . $style . ' title="More" alt="More" class="heateorSssSharing heateorSssMoreBackground" onclick="heateorSssMoreSharingPopup(this, \'' . $post_url . '\', \''.$post_title.'\' )" ><ss style="display:block" class="heateorSssSharingSvg heateorSssMoreSvg"></ss></i></li>';
 
 
 
 
978
  }
979
 
980
  $total_shares_html = '';
@@ -990,7 +1018,7 @@ class Sassy_Social_Share_Public {
990
  }
991
  $add_style .= ( $total_share_count && $share_counts != '&nbsp;' ? 'visibility:visible;' : '' ) . '"';
992
  $style = str_replace( ';"', $add_style, $style );
993
- $total_shares_html .= '<i ' . $style . ' title="Total Shares" alt="Total Shares" class="heateorSssSharing heateorSssTCBackground">' . ( $total_share_count ? '<div class="heateorSssTotalShareCount" style="font-size: ' . ( $icon_height * 62/100 ) . 'px">' . $this->round_off_counts( $total_share_count ) . '</div><div class="heateorSssTotalShareText" style="font-size: ' . ( $icon_height * 38/100 ) . 'px">' . ( $total_share_count < 2 ? __( 'Share', 'sassy-social-share' ) : __( 'Shares', 'sassy-social-share' ) ) . '</div>' : '' ) . '</i></li>';
994
  }
995
 
996
  if ( $sharing_type == 'vertical' ) {
@@ -1133,7 +1161,7 @@ class Sassy_Social_Share_Public {
1133
  $sharing_title_style = 'style="font-weight: bold;list-style: none;position: relative;left: 50%;"';
1134
  }
1135
 
1136
- $horizontal_div = "<div class='heateorSssClear'></div><div ". $sharing_container_style ." class='heateor_sss_sharing_container heateor_sss_horizontal_sharing' " . ( $this->get_cached_share_count( $this->share_count_transient_id ) === false ? "heateor-sss-data-href='" . $post_url . "'" : '' ) . "><div class='heateor_sss_sharing_title' " . $sharing_title_style . " >" . ucfirst( $this->options['title'] ) . "</div>" . $sharing_div . "</div><div class='heateorSssClear'></div>";
1137
  if ( $sharing_bp_activity ) {
1138
  echo $horizontal_div;
1139
  }
@@ -1195,7 +1223,7 @@ class Sassy_Social_Share_Public {
1195
  $this->share_count_transient_id = $this->get_share_count_transient_id( $post_url );
1196
  $sharing_div = $this->prepare_sharing_html( $sharing_url ? $sharing_url : $post_url, 'vertical', isset( $this->options['vertical_counts'] ), isset( $this->options['vertical_total_shares'] ) );
1197
  $offset = ( $this->options['alignment'] != '' && $this->options[$this->options['alignment'].'_offset'] != '' ? $this->options['alignment'] . ': ' . $this->options[$this->options['alignment'].'_offset'] . 'px;' : '' ) . ( $this->options['top_offset'] != '' ? 'top: '.$this->options['top_offset'] . 'px;' : '' );
1198
- $vertical_div = "<div class='heateor_sss_sharing_container heateor_sss_vertical_sharing" . ( isset( $this->options['bottom_mobile_sharing'] ) ? ' heateor_sss_bottom_sharing' : '' ) . "' style='width:" . ( $vertical_sharing_width + 4 ) . "px;" . $offset . ( $this->options['vertical_bg'] != '' ? 'background-color: '.$this->options['vertical_bg'] : '-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;' ) . "' " . ( $this->get_cached_share_count( $this->share_count_transient_id ) === false ? "heateor-sss-data-href='" . $post_url . "'" : '' ) . ">" . $sharing_div . "</div>";
1199
  // show vertical sharing
1200
  if ( ( isset( $this->options['vertical_home'] ) && is_front_page() ) || ( isset( $this->options['vertical_category'] ) && is_category() ) || ( isset( $this->options['vertical_archive'] ) && is_archive() ) || ( isset( $this->options['vertical_post'] ) && is_single() && isset( $post -> post_type ) && $post -> post_type == 'post' ) || ( isset( $this->options['vertical_page'] ) && is_page() && isset( $post -> post_type ) && $post -> post_type == 'page' ) || ( isset( $this->options['vertical_excerpt'] ) && (is_home() || current_filter() == 'the_excerpt' ) ) || ( isset( $this->options['vertical_bb_forum'] ) && current_filter() == 'bbp_template_before_single_forum' ) || ( isset( $this->options['vertical_bb_topic'] ) && in_array( current_filter(), array( 'bbp_template_before_single_topic', 'bbp_template_before_lead_topic' ) ) ) || (current_filter() == 'bp_before_group_header' && isset( $this->options['vertical_bp_group'] ) ) ) {
1201
  if ( in_array( current_filter(), array( 'bbp_template_before_single_topic', 'bbp_template_before_lead_topic', 'bbp_template_before_single_forum', 'bp_before_group_header' ) ) ) {
@@ -1214,7 +1242,7 @@ class Sassy_Social_Share_Public {
1214
  // share count transient ID
1215
  $this->share_count_transient_id = 0;
1216
  $sharing_div = $this->prepare_sharing_html( $sharing_url ? $sharing_url : $post_url, 'vertical', isset( $this->options['vertical_counts'] ), isset( $this->options['vertical_total_shares'] ) );
1217
- $vertical_div = "<div class='heateor_sss_sharing_container heateor_sss_vertical_sharing" . ( isset( $this->options['bottom_mobile_sharing'] ) ? ' heateor_sss_bottom_sharing' : '' ) . "' style='width:" . ( $vertical_sharing_width + 4 ) . "px;" . $offset . ( $this->options['vertical_bg'] != '' ? 'background-color: ' . $this->options['vertical_bg'] : '-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;' ) . "' " . ( $this->get_cached_share_count( 0 ) === false ? "heateor-sss-data-href='" . $post_url . "'" : '' ) . ">" . $sharing_div . "</div>";
1218
  }
1219
  $content = $content . $vertical_div;
1220
  if ( current_filter() == 'the_content' ) {
@@ -1678,7 +1706,7 @@ class Sassy_Social_Share_Public {
1678
  $offset = ( $this->options['alignment'] != '' && $this->options[$this->options['alignment'].'_offset'] != '' ? $this->options['alignment'] . ': ' . $this->options[$this->options['alignment'].'_offset'] . 'px;' : '' ) . ( $this->options['top_offset'] != '' ? 'top: '.$this->options['top_offset'] . 'px;' : '' );
1679
  $css .= ".heateor_sss_vertical_sharing{width:" . ( $vertical_sharing_width + 4 ) . "px;" . $offset . ( $this->options['vertical_bg'] != '' ? 'background-color: '.$this->options['vertical_bg'] : '-webkit-box-shadow:none!important;-moz-box-shadow:none!important;box-shadow:none!important;' ) . "}";
1680
 
1681
- $css .= '.heateor_sss_sharing_container ss{display:block;}';
1682
 
1683
  $css .= file_get_contents( HEATEOR_SSS_PLUGIN_DIR . '/public/css/sassy-social-share-public.css' );
1684
  $default_svg = false;
781
 
782
  }
783
 
784
+ /**
785
+ * Check if current page is AMP
786
+ *
787
+ * @since 2.1
788
+ */
789
+ public function is_amp_page() {
790
+
791
+ $current_page_url = html_entity_decode( esc_url( $this->get_http_protocol() . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"] ) );
792
+ if ( strpos( $current_page_url, '/amp' ) !== false || strpos( $current_page_url, '?amp=1' ) !== false ) {
793
+ return true;
794
+ }
795
+ return false;
796
+
797
+ }
798
+
799
  /**
800
  * Render sharing interface html.
801
  *
918
  $share_count = array();
919
  $to_be_replaced = array();
920
  $replace_by = array();
921
+ if ( $this->is_amp_page() ) {
922
+ $counter_placeholder_value = str_replace( array( '<ss', '/ss>' ), array( '<i', '/i>' ), $counter_placeholder_value );
923
+ $counter_container_init_html = str_replace( '<ss', '<i', $counter_container_init_html );
924
+ $counter_container_end_html = str_replace( '/ss', '/i', $counter_container_end_html );
925
+
926
  $to_be_replaced[] = '<i';
927
  $to_be_replaced[] = '/i>';
928
+ $to_be_replaced[] = '<ss';
929
+ $to_be_replaced[] = '/ss>';
930
  $to_be_replaced[] = 'onclick=\'heateorSssPopup("';
931
  $to_be_replaced[] = '")\'';
932
  $to_be_replaced[] = '%amp_email%';
933
  $to_be_replaced[] = '%amp_whatsapp%';
934
+ $to_be_replaced[] = 'alt="%title%"';
935
 
936
  $replace_by[] = '<a target="_blank"';
937
  $replace_by[] = '/a>';
938
+ $replace_by[] = '<i';
939
+ $replace_by[] = '/i>';
940
  $replace_by[] = 'href="';
941
  $replace_by[] = '"';
942
  $replace_by[] = 'href="mailto:?subject=' . urldecode( rawurlencode( $post_title ) ) . '&body=' . urlencode( $post_url ) . '"';
943
+ $replace_by[] = 'class="heateorSssSharing heateorSssAmpWhatsapp" Title="Whatsapp"';
944
+ $replace_by[] = '';
945
  }
946
  foreach ( $this->options[$sharing_type.'_re_providers'] as $provider ) {
947
  $share_count[$provider] = $share_counts == '&nbsp;' ? '' : ( isset( $share_counts[$provider] ) ? $share_counts[$provider] : '' );
995
 
996
  if ( isset( $this->options[$sharing_type . '_more'] ) ) {
997
  $li_items .= '<li class="' . ( $li_class != '' ? $li_class : '' ) . '">';
998
+ if ( $display_count ) {
999
  $li_items .= $counter_container_init_html . '">&nbsp;' . $counter_container_end_html;
1000
  }
1001
+ if ( $this->is_amp_page() ) {
1002
+ $li_items .= '<i title="More" class="heateorSssSharing heateorSssMoreBackground"><i class="heateorSssSharingSvg heateorSssMoreSvg"></i></i></li>';
1003
+ } else {
1004
+ $li_items .= '<i ' . $style . ' title="More" alt="More" class="heateorSssSharing heateorSssMoreBackground" onclick="heateorSssMoreSharingPopup(this, \'' . $post_url . '\', \''.$post_title.'\' )" ><ss style="display:block" class="heateorSssSharingSvg heateorSssMoreSvg"></ss></i></li>';
1005
+ }
1006
  }
1007
 
1008
  $total_shares_html = '';
1018
  }
1019
  $add_style .= ( $total_share_count && $share_counts != '&nbsp;' ? 'visibility:visible;' : '' ) . '"';
1020
  $style = str_replace( ';"', $add_style, $style );
1021
+ $total_shares_html .= '<i ' . $style . ' title="Total Shares" class="heateorSssSharing heateorSssTCBackground">' . ( $total_share_count ? '<div class="heateorSssTotalShareCount" style="font-size: ' . ( $icon_height * 62/100 ) . 'px">' . $this->round_off_counts( $total_share_count ) . '</div><div class="heateorSssTotalShareText" style="font-size: ' . ( $icon_height * 38/100 ) . 'px">' . ( $total_share_count < 2 ? __( 'Share', 'sassy-social-share' ) : __( 'Shares', 'sassy-social-share' ) ) . '</div>' : '' ) . '</i></li>';
1022
  }
1023
 
1024
  if ( $sharing_type == 'vertical' ) {
1161
  $sharing_title_style = 'style="font-weight: bold;list-style: none;position: relative;left: 50%;"';
1162
  }
1163
 
1164
+ $horizontal_div = "<div class='heateorSssClear'></div><div ". $sharing_container_style ." class='heateor_sss_sharing_container heateor_sss_horizontal_sharing' " . ( ( $this->get_cached_share_count( $this->share_count_transient_id ) !== false || $this->is_amp_page() ) ? '' : "heateor-sss-data-href='" . $post_url . "'" ) . "><div class='heateor_sss_sharing_title' " . $sharing_title_style . " >" . ucfirst( $this->options['title'] ) . "</div>" . $sharing_div . "</div><div class='heateorSssClear'></div>";
1165
  if ( $sharing_bp_activity ) {
1166
  echo $horizontal_div;
1167
  }
1223
  $this->share_count_transient_id = $this->get_share_count_transient_id( $post_url );
1224
  $sharing_div = $this->prepare_sharing_html( $sharing_url ? $sharing_url : $post_url, 'vertical', isset( $this->options['vertical_counts'] ), isset( $this->options['vertical_total_shares'] ) );
1225
  $offset = ( $this->options['alignment'] != '' && $this->options[$this->options['alignment'].'_offset'] != '' ? $this->options['alignment'] . ': ' . $this->options[$this->options['alignment'].'_offset'] . 'px;' : '' ) . ( $this->options['top_offset'] != '' ? 'top: '.$this->options['top_offset'] . 'px;' : '' );
1226
+ $vertical_div = "<div class='heateor_sss_sharing_container heateor_sss_vertical_sharing" . ( isset( $this->options['bottom_mobile_sharing'] ) ? ' heateor_sss_bottom_sharing' : '' ) . "' style='width:" . ( $vertical_sharing_width + 4 ) . "px;" . $offset . ( $this->options['vertical_bg'] != '' ? 'background-color: '.$this->options['vertical_bg'] : '-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;' ) . "' " . ( ( $this->get_cached_share_count( $this->share_count_transient_id ) !== false || $this->is_amp_page() ) ? '' : "heateor-sss-data-href='" . $post_url . "'" ) . ">" . $sharing_div . "</div>";
1227
  // show vertical sharing
1228
  if ( ( isset( $this->options['vertical_home'] ) && is_front_page() ) || ( isset( $this->options['vertical_category'] ) && is_category() ) || ( isset( $this->options['vertical_archive'] ) && is_archive() ) || ( isset( $this->options['vertical_post'] ) && is_single() && isset( $post -> post_type ) && $post -> post_type == 'post' ) || ( isset( $this->options['vertical_page'] ) && is_page() && isset( $post -> post_type ) && $post -> post_type == 'page' ) || ( isset( $this->options['vertical_excerpt'] ) && (is_home() || current_filter() == 'the_excerpt' ) ) || ( isset( $this->options['vertical_bb_forum'] ) && current_filter() == 'bbp_template_before_single_forum' ) || ( isset( $this->options['vertical_bb_topic'] ) && in_array( current_filter(), array( 'bbp_template_before_single_topic', 'bbp_template_before_lead_topic' ) ) ) || (current_filter() == 'bp_before_group_header' && isset( $this->options['vertical_bp_group'] ) ) ) {
1229
  if ( in_array( current_filter(), array( 'bbp_template_before_single_topic', 'bbp_template_before_lead_topic', 'bbp_template_before_single_forum', 'bp_before_group_header' ) ) ) {
1242
  // share count transient ID
1243
  $this->share_count_transient_id = 0;
1244
  $sharing_div = $this->prepare_sharing_html( $sharing_url ? $sharing_url : $post_url, 'vertical', isset( $this->options['vertical_counts'] ), isset( $this->options['vertical_total_shares'] ) );
1245
+ $vertical_div = "<div class='heateor_sss_sharing_container heateor_sss_vertical_sharing" . ( isset( $this->options['bottom_mobile_sharing'] ) ? ' heateor_sss_bottom_sharing' : '' ) . "' style='width:" . ( $vertical_sharing_width + 4 ) . "px;" . $offset . ( $this->options['vertical_bg'] != '' ? 'background-color: ' . $this->options['vertical_bg'] : '-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;' ) . "' " . ( ( $this->get_cached_share_count( 0 ) !== false || $this->is_amp_page() ) ? '' : "heateor-sss-data-href='" . $post_url . "'" ) . ">" . $sharing_div . "</div>";
1246
  }
1247
  $content = $content . $vertical_div;
1248
  if ( current_filter() == 'the_content' ) {
1706
  $offset = ( $this->options['alignment'] != '' && $this->options[$this->options['alignment'].'_offset'] != '' ? $this->options['alignment'] . ': ' . $this->options[$this->options['alignment'].'_offset'] . 'px;' : '' ) . ( $this->options['top_offset'] != '' ? 'top: '.$this->options['top_offset'] . 'px;' : '' );
1707
  $css .= ".heateor_sss_vertical_sharing{width:" . ( $vertical_sharing_width + 4 ) . "px;" . $offset . ( $this->options['vertical_bg'] != '' ? 'background-color: '.$this->options['vertical_bg'] : '-webkit-box-shadow:none!important;-moz-box-shadow:none!important;box-shadow:none!important;' ) . "}";
1708
 
1709
+ $css .= '.heateor_sss_sharing_container i{display:block;}';
1710
 
1711
  $css .= file_get_contents( HEATEOR_SSS_PLUGIN_DIR . '/public/css/sassy-social-share-public.css' );
1712
  $default_svg = false;
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.heateor.com/donate/?action=Sassy+Social+Share
4
  Tags: social share, social sharing, social plugin, social media plugin, social media share, social media share, share facebook, facebook social share, wordpress social share, share buttons, social share buttons, social buttons, share wordpress, wordpress plugin share, share social plugin, facebook like, twitter tweet, google plus one, google +1, google plus share, googleplus share, googleplus one, social bookmark, bookmark, bookmarking, social bookmarking, social bookmarks, responsive share buttons, responsive sharing, mobile share buttons, mobile sharing
5
  Requires at least: 2.5.0
6
  Tested up to: 4.4.2
7
- Stable tag: 2.0
8
  License: GPLv2 or later
9
 
10
  Slickest, Simplest and Optimized Share buttons. Facebook, Twitter, Google+, Pinterest, WhatsApp and over 100 more.
@@ -27,7 +27,6 @@ This is the Simplest and Smoothest share plugin with optimized and great looking
27
  * Enable/Disable sharing on individual pages/posts
28
  * Enable/Disable total/individual share count(s)
29
  * **Mobile Responsiveness**
30
- * Compatible with **AMP (https://wordpress.org/plugins/amp) plugin**
31
  * Enable **Sharing at WooCommerce** products
32
  * **Official Like Buttons** (Faceboo Like, Twitter Tweet, Google +1 etc.)
33
  * **Widgets and Shortcodes**
@@ -116,6 +115,9 @@ Yes, we can help you with it. Just drop an email at support[at]heateor[dot]com
116
  4. **Universal Sharing Popup**: Universal Sharing popup having all the supported sharing and bookmarking services
117
 
118
  == Changelog ==
 
 
 
119
  = 2.0 =
120
  * [Bugfix] Sharing title and share counts were appearing in the content of post excerpts at posts page
121
  * [Bugfix] Single and double quotes in post title were appearing encoded when sharing on Twitter
@@ -226,4 +228,7 @@ Yes, we can help you with it. Just drop an email at support[at]heateor[dot]com
226
  * [Improvement] Compatible with AMP (https://wordpress.org/plugins/amp) plugin
227
  * [Improvement] Improved Delecious icon
228
  * [Improvement] Updated Facebook SDK to version 2.5
229
- * [Improvement] Changed background color of Linkedin icon to match its brand guidelines
 
 
 
4
  Tags: social share, social sharing, social plugin, social media plugin, social media share, social media share, share facebook, facebook social share, wordpress social share, share buttons, social share buttons, social buttons, share wordpress, wordpress plugin share, share social plugin, facebook like, twitter tweet, google plus one, google +1, google plus share, googleplus share, googleplus one, social bookmark, bookmark, bookmarking, social bookmarking, social bookmarks, responsive share buttons, responsive sharing, mobile share buttons, mobile sharing
5
  Requires at least: 2.5.0
6
  Tested up to: 4.4.2
7
+ Stable tag: 2.1
8
  License: GPLv2 or later
9
 
10
  Slickest, Simplest and Optimized Share buttons. Facebook, Twitter, Google+, Pinterest, WhatsApp and over 100 more.
27
  * Enable/Disable sharing on individual pages/posts
28
  * Enable/Disable total/individual share count(s)
29
  * **Mobile Responsiveness**
 
30
  * Enable **Sharing at WooCommerce** products
31
  * **Official Like Buttons** (Faceboo Like, Twitter Tweet, Google +1 etc.)
32
  * **Widgets and Shortcodes**
115
  4. **Universal Sharing Popup**: Universal Sharing popup having all the supported sharing and bookmarking services
116
 
117
  == Changelog ==
118
+ = 2.1 =
119
+ * [Improvement] Fixed AMP validation errors (thanks @nfabiox85 :) )
120
+
121
  = 2.0 =
122
  * [Bugfix] Sharing title and share counts were appearing in the content of post excerpts at posts page
123
  * [Bugfix] Single and double quotes in post title were appearing encoded when sharing on Twitter
228
  * [Improvement] Compatible with AMP (https://wordpress.org/plugins/amp) plugin
229
  * [Improvement] Improved Delecious icon
230
  * [Improvement] Updated Facebook SDK to version 2.5
231
+ * [Improvement] Changed background color of Linkedin icon to match its brand guidelines
232
+
233
+ = 2.1 =
234
+ * [Improvement] Fixed AMP validation errors (thanks @nfabiox85 :) )
sassy-social-share.php CHANGED
@@ -7,7 +7,7 @@
7
  * Plugin Name: Sassy Social Share
8
  * Plugin URI: https://www.heateor.com
9
  * Description: Slickest, Simplest and Optimized Share buttons. Facebook, Twitter, Google+, Pinterest, WhatsApp and over 100 more.
10
- * Version: 2.0
11
  * Author: Team Heateor
12
  * Author URI: https://www.heateor.com
13
  * Text Domain: sassy-social-share
@@ -21,7 +21,7 @@ if ( ! defined( 'WPINC' ) ) {
21
  die;
22
  }
23
 
24
- define( 'HEATEOR_SSS_VERSION', '2.0' );
25
  define( 'HEATEOR_SSS_PLUGIN_DIR', plugin_dir_path(__FILE__) );
26
 
27
  // plugin core class object
7
  * Plugin Name: Sassy Social Share
8
  * Plugin URI: https://www.heateor.com
9
  * Description: Slickest, Simplest and Optimized Share buttons. Facebook, Twitter, Google+, Pinterest, WhatsApp and over 100 more.
10
+ * Version: 2.1
11
  * Author: Team Heateor
12
  * Author URI: https://www.heateor.com
13
  * Text Domain: sassy-social-share
21
  die;
22
  }
23
 
24
+ define( 'HEATEOR_SSS_VERSION', '2.1' );
25
  define( 'HEATEOR_SSS_PLUGIN_DIR', plugin_dir_path(__FILE__) );
26
 
27
  // plugin core class object