WordPress Social Sharing Plugin – Sassy Social Share - Version 2.5

Version Description

  • [Bugfix] "Widgets" page in admin area was unresponsive, in some cases
  • [Bugfix] Share counts were not working for the sharing icons enabled using Shortcode and Widgets, in some cases
  • [Improvement] Share count cache was not working for sharing icons enabled using shortcode and widgets
Download this release

Release Info

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

Code changes from version 2.4.5 to 2.5

admin/partials/sassy-social-share-options-page.php CHANGED
@@ -1887,6 +1887,7 @@ defined( 'ABSPATH' ) or die("Cheating........Uh!!");
1887
  <div class="stuffbox">
1888
  <h3><label><?php _e( 'FAQ', 'sassy-social-share' ) ?></label></h3>
1889
  <div class="inside faq">
 
1890
  <p><a href="http://support.heateor.com/how-can-i-show-share-counts-of-my-website-rather-than-of-individual-pagepost/" target="_blank"><?php _e( 'How can I show share counts of my website rather than of individual pages/posts?', 'sassy-social-share' ) ?></a></p>
1891
  <p><a href="http://support.heateor.com/how-can-i-disable-social-sharing-on-particular-pagepost/" target="_blank"><?php _e( 'How can I disable sharing on particular page/post?', 'sassy-social-share' ) ?></a></p>
1892
  <p><a href="http://support.heateor.com/how-can-i-specify-minimum-sharing-count-for-sharing-networks/" target="_blank"><?php _e( 'How can I specify minimum sharing count for sharing networks?', 'sassy-social-share' ) ?></a></p>
1887
  <div class="stuffbox">
1888
  <h3><label><?php _e( 'FAQ', 'sassy-social-share' ) ?></label></h3>
1889
  <div class="inside faq">
1890
+ <p><a href="http://support.heateor.com/why-is-sharer-not-showing-the-correct-image-title-and-other-meta-tags-content" target="_blank"><?php _e('Why is sharer not showing the correct image, title and other meta tags content?', 'sassy-social-share' ) ?></a></p>
1891
  <p><a href="http://support.heateor.com/how-can-i-show-share-counts-of-my-website-rather-than-of-individual-pagepost/" target="_blank"><?php _e( 'How can I show share counts of my website rather than of individual pages/posts?', 'sassy-social-share' ) ?></a></p>
1892
  <p><a href="http://support.heateor.com/how-can-i-disable-social-sharing-on-particular-pagepost/" target="_blank"><?php _e( 'How can I disable sharing on particular page/post?', 'sassy-social-share' ) ?></a></p>
1893
  <p><a href="http://support.heateor.com/how-can-i-specify-minimum-sharing-count-for-sharing-networks/" target="_blank"><?php _e( 'How can I specify minimum sharing count for sharing networks?', 'sassy-social-share' ) ?></a></p>
includes/class-sassy-social-share-shortcodes.php CHANGED
@@ -90,7 +90,12 @@ class Sassy_Social_Share_Shortcodes {
90
  } elseif ( $right) {
91
  $alignment_offset = $right;
92
  }
93
- $html = '<div class="heateor_sss_sharing_container heateor_sss_' . ( $type == 'standard' ? 'horizontal' : 'vertical' ) . '_sharing' . ( $type == 'floating' && isset( $this->options['hide_mobile_sharing'] ) ? ' heateor_sss_hide_sharing' : '' ) . ( $type == 'floating' && isset( $this->options['bottom_mobile_sharing'] ) ? ' heateor_sss_bottom_sharing' : '' ) . '" ss-offset="' . $alignment_offset . '" heateor-sss-data-href="' . $target_url.'" ';
 
 
 
 
 
94
  $vertical_offsets = '';
95
  if ( $type == 'floating' ) {
96
  $vertical_offsets = $align . ': ' . $$align . 'px; top: ' . $top . 'px;width:' . ( ( $this->options['vertical_sharing_size'] ? $this->options['vertical_sharing_size'] : '35' ) + 4 ) . "px;";
@@ -107,11 +112,10 @@ class Sassy_Social_Share_Shortcodes {
107
  if ( $type == 'standard' && $title != '' ) {
108
  $html .= '<div style="font-weight:bold">' . ucfirst( $title ) . '</div>';
109
  }
110
- // share count transient ID
111
- $this->public_class_object->share_count_transient_id = '';
112
  $html .= $this->public_class_object->prepare_sharing_html( $short_url ? $short_url : $target_url, $type == 'standard' ? 'horizontal' : 'vertical', $count, $total_shares == 'ON' ? 1 : 0 );
113
  $html .= '</div>';
114
- if ( $count || $total_shares == 'ON' ) {
115
  $html .= '<script>heateorSssLoadEvent(
116
  function() {
117
  // sharing counts
90
  } elseif ( $right) {
91
  $alignment_offset = $right;
92
  }
93
+
94
+ // share count transient ID
95
+ $this->public_class_object->share_count_transient_id = $this->public_class_object->get_share_count_transient_id( $target_url );
96
+ $cached_share_count = $this->public_class_object->get_cached_share_count( $this->public_class_object->share_count_transient_id );
97
+
98
+ $html = '<div class="heateor_sss_sharing_container heateor_sss_' . ( $type == 'standard' ? 'horizontal' : 'vertical' ) . '_sharing' . ( $type == 'floating' && isset( $this->options['hide_mobile_sharing'] ) ? ' heateor_sss_hide_sharing' : '' ) . ( $type == 'floating' && isset( $this->options['bottom_mobile_sharing'] ) ? ' heateor_sss_bottom_sharing' : '' ) . '" ss-offset="' . $alignment_offset . '" heateor-sss-data-href="' . $target_url.'" ' . ( ( $cached_share_count !== false || $this->public_class_object->is_amp_page() ) ? 'heateor-sss-no-counts="1" ' : "" );
99
  $vertical_offsets = '';
100
  if ( $type == 'floating' ) {
101
  $vertical_offsets = $align . ': ' . $$align . 'px; top: ' . $top . 'px;width:' . ( ( $this->options['vertical_sharing_size'] ? $this->options['vertical_sharing_size'] : '35' ) + 4 ) . "px;";
112
  if ( $type == 'standard' && $title != '' ) {
113
  $html .= '<div style="font-weight:bold">' . ucfirst( $title ) . '</div>';
114
  }
115
+
 
116
  $html .= $this->public_class_object->prepare_sharing_html( $short_url ? $short_url : $target_url, $type == 'standard' ? 'horizontal' : 'vertical', $count, $total_shares == 'ON' ? 1 : 0 );
117
  $html .= '</div>';
118
+ if ( ( $count || $total_shares == 'ON' ) && $cached_share_count === false ) {
119
  $html .= '<script>heateorSssLoadEvent(
120
  function() {
121
  // sharing counts
includes/class-sassy-social-share-widgets.php CHANGED
@@ -90,7 +90,11 @@ class Sassy_Social_Share_Standard_Widget extends WP_Widget {
90
  $sharing_url = get_permalink( $post->ID );
91
  }
92
 
93
- echo "<div class='heateor_sss_sharing_container heateor_sss_horizontal_sharing' heateor-sss-data-href='" . $sharing_url . "'>";
 
 
 
 
94
 
95
  echo $before_widget;
96
 
@@ -104,8 +108,6 @@ class Sassy_Social_Share_Standard_Widget extends WP_Widget {
104
  }
105
  $short_url = $this->public_class_object->get_short_url( $sharing_url, $post_id );
106
 
107
- // share count transient ID
108
- $this->public_class_object->share_count_transient_id = '';
109
  echo $this->public_class_object->prepare_sharing_html( $short_url ? $short_url : $sharing_url, 'horizontal', isset( $instance['show_counts'] ), isset( $instance['total_shares'] ) );
110
 
111
  if ( ! empty( $instance['after_widget_content'] ) ) {
@@ -113,7 +115,7 @@ class Sassy_Social_Share_Standard_Widget extends WP_Widget {
113
  }
114
 
115
  echo '</div>';
116
- if ( isset( $instance['show_counts'] ) || isset( $instance['total_shares'] ) ) {
117
  echo '<script>heateorSssLoadEvent(
118
  function() {
119
  // sharing counts
@@ -158,7 +160,9 @@ class Sassy_Social_Share_Standard_Widget extends WP_Widget {
158
  $defaults = array( 'title' => 'Share the joy', 'show_counts' => 0, 'total_shares' => 0, 'target_url' => 'default', 'target_url_custom' => '', 'before_widget_content' => '', 'after_widget_content' => '' );
159
 
160
  foreach ( $instance as $key => $value ) {
161
- $instance[ $key ] = esc_attr( $value );
 
 
162
  }
163
 
164
  $instance = wp_parse_args( ( array ) $instance, $defaults );
@@ -287,17 +291,21 @@ class Sassy_Social_Share_Floating_Widget extends WP_Widget {
287
  if ( isset( $instance['alignment'] ) && isset( $instance[$instance['alignment'] . '_offset'] ) ) {
288
  $ssOffset = $instance[$instance['alignment'] . '_offset'];
289
  }
290
- echo "<div class='heateor_sss_sharing_container heateor_sss_vertical_sharing" . ( isset( $this->options['hide_mobile_sharing'] ) ? ' heateor_sss_hide_sharing' : '' ) . ( isset( $this->options['bottom_mobile_sharing'] ) ? ' heateor_sss_bottom_sharing' : '' ) . "' ss-offset='" . $ssOffset . "' style='width:" . ( ( $this->options['vertical_sharing_size'] ? $this->options['vertical_sharing_size'] : 35) + 4) . "px;".( isset( $instance['alignment'] ) && $instance['alignment'] != '' && isset( $instance[$instance['alignment'].'_offset'] ) ? $instance['alignment'].': '. ( $instance[$instance['alignment'].'_offset'] == '' ? 0 : $instance[$instance['alignment'].'_offset'] ) .'px;' : '' ).( isset( $instance['top_offset'] ) ? 'top: '. ( $instance['top_offset'] == '' ? 0 : $instance['top_offset'] ) .'px;' : '' ) . ( isset( $instance['vertical_bg'] ) && $instance['vertical_bg'] != '' ? 'background-color: '.$instance['vertical_bg'] . ';' : '-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;' ) . "' heateor-sss-data-href='". $sharing_url ."'>";
 
 
 
 
 
291
 
292
  $short_url = $this->public_class_object->get_short_url( $sharing_url, $post_id );
293
 
294
  //echo $before_widget;
295
- // share count transient ID
296
- $this->public_class_object->share_count_transient_id = '';
297
  echo $this->public_class_object->prepare_sharing_html( $short_url ? $short_url : $sharing_url, 'vertical', isset( $instance['show_counts'] ), isset( $instance['total_shares'] ) );
298
 
299
  echo '</div>';
300
- if ( isset( $instance['show_counts'] ) || isset( $instance['total_shares'] ) ) {
301
  echo '<script>heateorSssLoadEvent(
302
  function() {
303
  // sharing counts
@@ -344,7 +352,9 @@ class Sassy_Social_Share_Floating_Widget extends WP_Widget {
344
  $defaults = array( 'alignment' => 'left', 'show_counts' => 0, 'total_shares' => 0, 'left_offset' => '40', 'right_offset' => '0', 'target_url' => 'default', 'target_url_custom' => '', 'top_offset' => '100', 'vertical_bg' => '' );
345
 
346
  foreach ( $instance as $key => $value ) {
347
- $instance[ $key ] = esc_attr( $value );
 
 
348
  }
349
 
350
  $instance = wp_parse_args( ( array ) $instance, $defaults );
90
  $sharing_url = get_permalink( $post->ID );
91
  }
92
 
93
+ // share count transient ID
94
+ $this->public_class_object->share_count_transient_id = $this->public_class_object->get_share_count_transient_id( $sharing_url );
95
+ $cached_share_count = $this->public_class_object->get_cached_share_count( $this->public_class_object->share_count_transient_id );
96
+
97
+ echo "<div class='heateor_sss_sharing_container heateor_sss_horizontal_sharing' heateor-sss-data-href='" . $sharing_url . "' ". ( ( $cached_share_count !== false || $this->public_class_object->is_amp_page() ) ? 'heateor-sss-no-counts="1"' : "" ) .">";
98
 
99
  echo $before_widget;
100
 
108
  }
109
  $short_url = $this->public_class_object->get_short_url( $sharing_url, $post_id );
110
 
 
 
111
  echo $this->public_class_object->prepare_sharing_html( $short_url ? $short_url : $sharing_url, 'horizontal', isset( $instance['show_counts'] ), isset( $instance['total_shares'] ) );
112
 
113
  if ( ! empty( $instance['after_widget_content'] ) ) {
115
  }
116
 
117
  echo '</div>';
118
+ if ( ( isset( $instance['show_counts'] ) || isset( $instance['total_shares'] ) ) && $cached_share_count === false ) {
119
  echo '<script>heateorSssLoadEvent(
120
  function() {
121
  // sharing counts
160
  $defaults = array( 'title' => 'Share the joy', 'show_counts' => 0, 'total_shares' => 0, 'target_url' => 'default', 'target_url_custom' => '', 'before_widget_content' => '', 'after_widget_content' => '' );
161
 
162
  foreach ( $instance as $key => $value ) {
163
+ if ( is_string( $value ) ) {
164
+ $instance[ $key ] = esc_attr( $value );
165
+ }
166
  }
167
 
168
  $instance = wp_parse_args( ( array ) $instance, $defaults );
291
  if ( isset( $instance['alignment'] ) && isset( $instance[$instance['alignment'] . '_offset'] ) ) {
292
  $ssOffset = $instance[$instance['alignment'] . '_offset'];
293
  }
294
+
295
+ // share count transient ID
296
+ $this->public_class_object->share_count_transient_id = $this->public_class_object->get_share_count_transient_id( $sharing_url );
297
+ $cached_share_count = $this->public_class_object->get_cached_share_count( $this->public_class_object->share_count_transient_id );
298
+
299
+ echo "<div class='heateor_sss_sharing_container heateor_sss_vertical_sharing" . ( isset( $this->options['hide_mobile_sharing'] ) ? ' heateor_sss_hide_sharing' : '' ) . ( isset( $this->options['bottom_mobile_sharing'] ) ? ' heateor_sss_bottom_sharing' : '' ) . "' ss-offset='" . $ssOffset . "' style='width:" . ( ( $this->options['vertical_sharing_size'] ? $this->options['vertical_sharing_size'] : 35) + 4) . "px;".( isset( $instance['alignment'] ) && $instance['alignment'] != '' && isset( $instance[$instance['alignment'].'_offset'] ) ? $instance['alignment'].': '. ( $instance[$instance['alignment'].'_offset'] == '' ? 0 : $instance[$instance['alignment'].'_offset'] ) .'px;' : '' ).( isset( $instance['top_offset'] ) ? 'top: '. ( $instance['top_offset'] == '' ? 0 : $instance['top_offset'] ) .'px;' : '' ) . ( isset( $instance['vertical_bg'] ) && $instance['vertical_bg'] != '' ? 'background-color: '.$instance['vertical_bg'] . ';' : '-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;' ) . "' heateor-sss-data-href='". $sharing_url ."' ". ( ( $cached_share_count !== false || $this->public_class_object->is_amp_page() ) ? 'heateor-sss-no-counts="1"' : "" ) .">";
300
 
301
  $short_url = $this->public_class_object->get_short_url( $sharing_url, $post_id );
302
 
303
  //echo $before_widget;
304
+
 
305
  echo $this->public_class_object->prepare_sharing_html( $short_url ? $short_url : $sharing_url, 'vertical', isset( $instance['show_counts'] ), isset( $instance['total_shares'] ) );
306
 
307
  echo '</div>';
308
+ if ( ( isset( $instance['show_counts'] ) || isset( $instance['total_shares'] ) ) && $cached_share_count === false ) {
309
  echo '<script>heateorSssLoadEvent(
310
  function() {
311
  // sharing counts
352
  $defaults = array( 'alignment' => 'left', 'show_counts' => 0, 'total_shares' => 0, 'left_offset' => '40', 'right_offset' => '0', 'target_url' => 'default', 'target_url_custom' => '', 'top_offset' => '100', 'vertical_bg' => '' );
353
 
354
  foreach ( $instance as $key => $value ) {
355
+ if ( is_string( $value ) ) {
356
+ $instance[ $key ] = esc_attr( $value );
357
+ }
358
  }
359
 
360
  $instance = wp_parse_args( ( array ) $instance, $defaults );
languages/sassy-social-share.pot CHANGED
@@ -2,8 +2,8 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Sassy Social Share\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2016-08-25 19:21+0530\n"
6
- "PO-Revision-Date: 2016-08-25 19:21+0530\n"
7
  "Last-Translator: The Champ <lordofthechamps@gmail.com>\n"
8
  "Language-Team: Heateor <hello@heateor.com>\n"
9
  "Language: \n"
@@ -211,7 +211,7 @@ msgstr ""
211
  #: ../admin/partials/sassy-social-share-options-page.php:257
212
  #: ../admin/partials/sassy-social-share-options-page.php:565
213
  #: ../admin/partials/sassy-social-share-options-page.php:1246
214
- #: ../includes/class-sassy-social-share-widgets.php:400
215
  msgid "Background Color"
216
  msgstr ""
217
 
@@ -258,7 +258,7 @@ msgstr ""
258
  #: ../admin/partials/sassy-social-share-options-page.php:614
259
  #: ../admin/partials/sassy-social-share-options-page.php:864
260
  #: ../admin/partials/sassy-social-share-options-page.php:1268
261
- #: ../includes/class-sassy-social-share-widgets.php:386
262
  msgid "Left"
263
  msgstr ""
264
 
@@ -271,7 +271,7 @@ msgstr ""
271
  #: ../admin/partials/sassy-social-share-options-page.php:618
272
  #: ../admin/partials/sassy-social-share-options-page.php:866
273
  #: ../admin/partials/sassy-social-share-options-page.php:1269
274
- #: ../includes/class-sassy-social-share-widgets.php:387
275
  msgid "Right"
276
  msgstr ""
277
 
@@ -780,54 +780,58 @@ msgid "If Facebook sharing is not working fine, click at the following link and
780
  msgstr ""
781
 
782
  #: ../admin/partials/sassy-social-share-options-page.php:1890
783
- msgid "How can I show share counts of my website rather than of individual pages/posts?"
784
  msgstr ""
785
 
786
  #: ../admin/partials/sassy-social-share-options-page.php:1891
787
- msgid "How can I disable sharing on particular page/post?"
788
  msgstr ""
789
 
790
  #: ../admin/partials/sassy-social-share-options-page.php:1892
791
- msgid "How can I specify minimum sharing count for sharing networks?"
792
  msgstr ""
793
 
794
  #: ../admin/partials/sassy-social-share-options-page.php:1893
795
- msgid "How to share specific page?"
796
  msgstr ""
797
 
798
  #: ../admin/partials/sassy-social-share-options-page.php:1894
799
- msgid "How to integrate Google Analytics with sharing?"
800
  msgstr ""
801
 
802
  #: ../admin/partials/sassy-social-share-options-page.php:1895
803
- msgid "How to customize the look of total share counts?"
804
  msgstr ""
805
 
806
  #: ../admin/partials/sassy-social-share-options-page.php:1896
807
- msgid "How to customize the look of individual share counts?"
808
  msgstr ""
809
 
810
  #: ../admin/partials/sassy-social-share-options-page.php:1897
811
- msgid "How to show Whatsapp icon only on mobile devices?"
812
  msgstr ""
813
 
814
  #: ../admin/partials/sassy-social-share-options-page.php:1898
815
- msgid "How to hide arrow after floating sharing bar?"
816
  msgstr ""
817
 
818
  #: ../admin/partials/sassy-social-share-options-page.php:1899
819
- msgid "Why is share count not getting updated?"
820
  msgstr ""
821
 
822
  #: ../admin/partials/sassy-social-share-options-page.php:1900
823
- msgid "Why is there so much space between like buttons?"
824
  msgstr ""
825
 
826
  #: ../admin/partials/sassy-social-share-options-page.php:1901
 
 
 
 
827
  msgid "Why are floating sharing/like buttons not appearing at homepage?"
828
  msgstr ""
829
 
830
- #: ../admin/partials/sassy-social-share-options-page.php:1911
831
  msgid "Save Changes"
832
  msgstr ""
833
 
@@ -904,87 +908,87 @@ msgstr ""
904
  msgid "Standard sharing widget. Let your website users share content on popular Social networks like Facebook, Twitter, Tumblr, Google+ and many more"
905
  msgstr ""
906
 
907
- #: ../includes/class-sassy-social-share-widgets.php:176
908
  msgid "Make sure \"Standard Sharing Interface\" is enabled in \"Standard Interface\" section at \"Sassy Social Share\" page."
909
  msgstr ""
910
 
911
- #: ../includes/class-sassy-social-share-widgets.php:177
912
  msgid "Title:"
913
  msgstr ""
914
 
915
- #: ../includes/class-sassy-social-share-widgets.php:179
916
- #: ../includes/class-sassy-social-share-widgets.php:372
917
  msgid "Show individual share counts:"
918
  msgstr ""
919
 
920
- #: ../includes/class-sassy-social-share-widgets.php:181
921
- #: ../includes/class-sassy-social-share-widgets.php:374
922
  msgid "Show total shares:"
923
  msgstr ""
924
 
925
- #: ../includes/class-sassy-social-share-widgets.php:183
926
- #: ../includes/class-sassy-social-share-widgets.php:376
927
  msgid "Target Url:"
928
  msgstr ""
929
 
930
- #: ../includes/class-sassy-social-share-widgets.php:185
931
- #: ../includes/class-sassy-social-share-widgets.php:378
932
  msgid "Select"
933
  msgstr ""
934
 
935
- #: ../includes/class-sassy-social-share-widgets.php:191
936
  msgid "Before widget content:"
937
  msgstr ""
938
 
939
- #: ../includes/class-sassy-social-share-widgets.php:193
940
  msgid "After widget content:"
941
  msgstr ""
942
 
943
- #: ../includes/class-sassy-social-share-widgets.php:195
944
- #: ../includes/class-sassy-social-share-widgets.php:403
945
  msgid "Hide for logged in users:"
946
  msgstr ""
947
 
948
- #: ../includes/class-sassy-social-share-widgets.php:244
949
  msgid "Floating sharing widget. Let your website users share content on popular Social networks like Facebook, Twitter, Tumblr, Google+ and many more"
950
  msgstr ""
951
 
952
- #: ../includes/class-sassy-social-share-widgets.php:371
953
  msgid "Make sure \"Floating Interface\" is enabled in \"Floating Interface\" section at \"Sassy Social Share\" page."
954
  msgstr ""
955
 
956
- #: ../includes/class-sassy-social-share-widgets.php:384
957
  msgid "Alignment"
958
  msgstr ""
959
 
960
- #: ../includes/class-sassy-social-share-widgets.php:390
961
  msgid "Left Offset"
962
  msgstr ""
963
 
964
- #: ../includes/class-sassy-social-share-widgets.php:394
965
  msgid "Right Offset"
966
  msgstr ""
967
 
968
- #: ../includes/class-sassy-social-share-widgets.php:397
969
  msgid "Top Offset"
970
  msgstr ""
971
 
972
  #: ../public/class-sassy-social-share-public.php:121
973
- #: ../public/class-sassy-social-share-public.php:1027
974
  msgid "Shares"
975
  msgstr ""
976
 
977
  #: ../public/class-sassy-social-share-public.php:121
978
- #: ../public/class-sassy-social-share-public.php:1027
979
  msgid "Share"
980
  msgstr ""
981
 
982
- #: ../public/class-sassy-social-share-public.php:1305
983
- #: ../public/class-sassy-social-share-public.php:1504
984
  msgid "Invalid request"
985
  msgstr ""
986
 
987
- #: ../public/class-sassy-social-share-public.php:1311
988
  msgid "Providers not selected"
989
  msgstr ""
990
 
2
  msgstr ""
3
  "Project-Id-Version: Sassy Social Share\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2016-09-27 20:57+0530\n"
6
+ "PO-Revision-Date: 2016-09-27 20:57+0530\n"
7
  "Last-Translator: The Champ <lordofthechamps@gmail.com>\n"
8
  "Language-Team: Heateor <hello@heateor.com>\n"
9
  "Language: \n"
211
  #: ../admin/partials/sassy-social-share-options-page.php:257
212
  #: ../admin/partials/sassy-social-share-options-page.php:565
213
  #: ../admin/partials/sassy-social-share-options-page.php:1246
214
+ #: ../includes/class-sassy-social-share-widgets.php:410
215
  msgid "Background Color"
216
  msgstr ""
217
 
258
  #: ../admin/partials/sassy-social-share-options-page.php:614
259
  #: ../admin/partials/sassy-social-share-options-page.php:864
260
  #: ../admin/partials/sassy-social-share-options-page.php:1268
261
+ #: ../includes/class-sassy-social-share-widgets.php:396
262
  msgid "Left"
263
  msgstr ""
264
 
271
  #: ../admin/partials/sassy-social-share-options-page.php:618
272
  #: ../admin/partials/sassy-social-share-options-page.php:866
273
  #: ../admin/partials/sassy-social-share-options-page.php:1269
274
+ #: ../includes/class-sassy-social-share-widgets.php:397
275
  msgid "Right"
276
  msgstr ""
277
 
780
  msgstr ""
781
 
782
  #: ../admin/partials/sassy-social-share-options-page.php:1890
783
+ msgid "Why is sharer not showing the correct image, title and other meta tags content?"
784
  msgstr ""
785
 
786
  #: ../admin/partials/sassy-social-share-options-page.php:1891
787
+ msgid "How can I show share counts of my website rather than of individual pages/posts?"
788
  msgstr ""
789
 
790
  #: ../admin/partials/sassy-social-share-options-page.php:1892
791
+ msgid "How can I disable sharing on particular page/post?"
792
  msgstr ""
793
 
794
  #: ../admin/partials/sassy-social-share-options-page.php:1893
795
+ msgid "How can I specify minimum sharing count for sharing networks?"
796
  msgstr ""
797
 
798
  #: ../admin/partials/sassy-social-share-options-page.php:1894
799
+ msgid "How to share specific page?"
800
  msgstr ""
801
 
802
  #: ../admin/partials/sassy-social-share-options-page.php:1895
803
+ msgid "How to integrate Google Analytics with sharing?"
804
  msgstr ""
805
 
806
  #: ../admin/partials/sassy-social-share-options-page.php:1896
807
+ msgid "How to customize the look of total share counts?"
808
  msgstr ""
809
 
810
  #: ../admin/partials/sassy-social-share-options-page.php:1897
811
+ msgid "How to customize the look of individual share counts?"
812
  msgstr ""
813
 
814
  #: ../admin/partials/sassy-social-share-options-page.php:1898
815
+ msgid "How to show Whatsapp icon only on mobile devices?"
816
  msgstr ""
817
 
818
  #: ../admin/partials/sassy-social-share-options-page.php:1899
819
+ msgid "How to hide arrow after floating sharing bar?"
820
  msgstr ""
821
 
822
  #: ../admin/partials/sassy-social-share-options-page.php:1900
823
+ msgid "Why is share count not getting updated?"
824
  msgstr ""
825
 
826
  #: ../admin/partials/sassy-social-share-options-page.php:1901
827
+ msgid "Why is there so much space between like buttons?"
828
+ msgstr ""
829
+
830
+ #: ../admin/partials/sassy-social-share-options-page.php:1902
831
  msgid "Why are floating sharing/like buttons not appearing at homepage?"
832
  msgstr ""
833
 
834
+ #: ../admin/partials/sassy-social-share-options-page.php:1912
835
  msgid "Save Changes"
836
  msgstr ""
837
 
908
  msgid "Standard sharing widget. Let your website users share content on popular Social networks like Facebook, Twitter, Tumblr, Google+ and many more"
909
  msgstr ""
910
 
911
+ #: ../includes/class-sassy-social-share-widgets.php:180
912
  msgid "Make sure \"Standard Sharing Interface\" is enabled in \"Standard Interface\" section at \"Sassy Social Share\" page."
913
  msgstr ""
914
 
915
+ #: ../includes/class-sassy-social-share-widgets.php:181
916
  msgid "Title:"
917
  msgstr ""
918
 
919
+ #: ../includes/class-sassy-social-share-widgets.php:183
920
+ #: ../includes/class-sassy-social-share-widgets.php:382
921
  msgid "Show individual share counts:"
922
  msgstr ""
923
 
924
+ #: ../includes/class-sassy-social-share-widgets.php:185
925
+ #: ../includes/class-sassy-social-share-widgets.php:384
926
  msgid "Show total shares:"
927
  msgstr ""
928
 
929
+ #: ../includes/class-sassy-social-share-widgets.php:187
930
+ #: ../includes/class-sassy-social-share-widgets.php:386
931
  msgid "Target Url:"
932
  msgstr ""
933
 
934
+ #: ../includes/class-sassy-social-share-widgets.php:189
935
+ #: ../includes/class-sassy-social-share-widgets.php:388
936
  msgid "Select"
937
  msgstr ""
938
 
939
+ #: ../includes/class-sassy-social-share-widgets.php:195
940
  msgid "Before widget content:"
941
  msgstr ""
942
 
943
+ #: ../includes/class-sassy-social-share-widgets.php:197
944
  msgid "After widget content:"
945
  msgstr ""
946
 
947
+ #: ../includes/class-sassy-social-share-widgets.php:199
948
+ #: ../includes/class-sassy-social-share-widgets.php:413
949
  msgid "Hide for logged in users:"
950
  msgstr ""
951
 
952
+ #: ../includes/class-sassy-social-share-widgets.php:248
953
  msgid "Floating sharing widget. Let your website users share content on popular Social networks like Facebook, Twitter, Tumblr, Google+ and many more"
954
  msgstr ""
955
 
956
+ #: ../includes/class-sassy-social-share-widgets.php:381
957
  msgid "Make sure \"Floating Interface\" is enabled in \"Floating Interface\" section at \"Sassy Social Share\" page."
958
  msgstr ""
959
 
960
+ #: ../includes/class-sassy-social-share-widgets.php:394
961
  msgid "Alignment"
962
  msgstr ""
963
 
964
+ #: ../includes/class-sassy-social-share-widgets.php:400
965
  msgid "Left Offset"
966
  msgstr ""
967
 
968
+ #: ../includes/class-sassy-social-share-widgets.php:404
969
  msgid "Right Offset"
970
  msgstr ""
971
 
972
+ #: ../includes/class-sassy-social-share-widgets.php:407
973
  msgid "Top Offset"
974
  msgstr ""
975
 
976
  #: ../public/class-sassy-social-share-public.php:121
977
+ #: ../public/class-sassy-social-share-public.php:1022
978
  msgid "Shares"
979
  msgstr ""
980
 
981
  #: ../public/class-sassy-social-share-public.php:121
982
+ #: ../public/class-sassy-social-share-public.php:1022
983
  msgid "Share"
984
  msgstr ""
985
 
986
+ #: ../public/class-sassy-social-share-public.php:1300
987
+ #: ../public/class-sassy-social-share-public.php:1499
988
  msgid "Invalid request"
989
  msgstr ""
990
 
991
+ #: ../public/class-sassy-social-share-public.php:1306
992
  msgid "Providers not selected"
993
  msgstr ""
994
 
public/class-sassy-social-share-public.php CHANGED
@@ -696,13 +696,8 @@ class Sassy_Social_Share_Public {
696
  }
697
  }';
698
  }
699
- if ( ! function_exists( 'wp_add_inline_script' ) ) {
700
- echo '<script type="text/javascript">' . $inline_script . '</script>';
701
- }
702
  wp_enqueue_script( 'heateor_sss_sharing_js', plugins_url( 'js/sassy-social-share-public.js', __FILE__ ), array( 'jquery' ), $this->version, $in_footer );
703
- if ( function_exists( 'wp_add_inline_script' ) ) {
704
- wp_add_inline_script( 'heateor_sss_sharing_js', $inline_script, 'before' );
705
- }
706
  }
707
  }
708
  }
@@ -1066,7 +1061,7 @@ class Sassy_Social_Share_Public {
1066
  * @since 1.7
1067
  * @param integer $post_id ID of the post to fetch cached share counts for
1068
  */
1069
- private function get_cached_share_count( $post_id ) {
1070
 
1071
  $share_count_transient = get_transient( 'heateor_sss_share_count_' . $post_id );
1072
  do_action( 'heateor_sss_share_count_transient_hook', $share_count_transient, $post_id );
@@ -1545,7 +1540,7 @@ class Sassy_Social_Share_Public {
1545
  *
1546
  * @since 1.0.0
1547
  */
1548
- private function get_share_count_transient_id( $target_url ) {
1549
 
1550
  if ( $this->options['horizontal_target_url_custom'] == $target_url || $this->options['vertical_target_url_custom'] == $target_url ) {
1551
  $post_id = 'custom';
696
  }
697
  }';
698
  }
699
+ echo '<script type="text/javascript">' . $inline_script . '</script>';
 
 
700
  wp_enqueue_script( 'heateor_sss_sharing_js', plugins_url( 'js/sassy-social-share-public.js', __FILE__ ), array( 'jquery' ), $this->version, $in_footer );
 
 
 
701
  }
702
  }
703
  }
1061
  * @since 1.7
1062
  * @param integer $post_id ID of the post to fetch cached share counts for
1063
  */
1064
+ public function get_cached_share_count( $post_id ) {
1065
 
1066
  $share_count_transient = get_transient( 'heateor_sss_share_count_' . $post_id );
1067
  do_action( 'heateor_sss_share_count_transient_hook', $share_count_transient, $post_id );
1540
  *
1541
  * @since 1.0.0
1542
  */
1543
+ public function get_share_count_transient_id( $target_url ) {
1544
 
1545
  if ( $this->options['horizontal_target_url_custom'] == $target_url || $this->options['vertical_target_url_custom'] == $target_url ) {
1546
  $post_id = 'custom';
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.6.1
7
- Stable tag: 2.4.5
8
  License: GPLv2 or later
9
 
10
  Slickest, Simplest and Optimized Share buttons. Facebook, Twitter, Google+, Pinterest, WhatsApp and over 100 more.
@@ -115,6 +115,11 @@ Yes, we can help you with it. Just drop an email at support[at]heateor[dot]com
115
  4. **Universal Sharing Popup**: Universal Sharing popup having all the supported sharing and bookmarking services
116
 
117
  == Changelog ==
 
 
 
 
 
118
  = 2.4.5 =
119
  * [Bugfix] Facebook shares were not being included in total shares, in some cases
120
  * [Improvement] Added background color for Pocket share icon
@@ -311,4 +316,9 @@ Yes, we can help you with it. Just drop an email at support[at]heateor[dot]com
311
  * [Bugfix] Facebook shares were not being included in total shares, in some cases
312
  * [Improvement] Added background color for Pocket share icon
313
  * [Improvement] Default plugin options are being saved for every subsite in multisite network on Network Activating the plugin
314
- * [Improvement] Default plugin options are being saved when a new subsite is created in multisite network
 
 
 
 
 
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.6.1
7
+ Stable tag: 2.5
8
  License: GPLv2 or later
9
 
10
  Slickest, Simplest and Optimized Share buttons. Facebook, Twitter, Google+, Pinterest, WhatsApp and over 100 more.
115
  4. **Universal Sharing Popup**: Universal Sharing popup having all the supported sharing and bookmarking services
116
 
117
  == Changelog ==
118
+ = 2.5 =
119
+ * [Bugfix] "Widgets" page in admin area was unresponsive, in some cases
120
+ * [Bugfix] Share counts were not working for the sharing icons enabled using Shortcode and Widgets, in some cases
121
+ * [Improvement] Share count cache was not working for sharing icons enabled using shortcode and widgets
122
+
123
  = 2.4.5 =
124
  * [Bugfix] Facebook shares were not being included in total shares, in some cases
125
  * [Improvement] Added background color for Pocket share icon
316
  * [Bugfix] Facebook shares were not being included in total shares, in some cases
317
  * [Improvement] Added background color for Pocket share icon
318
  * [Improvement] Default plugin options are being saved for every subsite in multisite network on Network Activating the plugin
319
+ * [Improvement] Default plugin options are being saved when a new subsite is created in multisite network
320
+
321
+ = 2.5 =
322
+ * [Bugfix] "Widgets" page in admin area was unresponsive, in some cases
323
+ * [Bugfix] Share counts were not working for the sharing icons enabled using Shortcode and Widgets, in some cases
324
+ * [Improvement] Share count cache was not working for sharing icons enabled using shortcode and widgets
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.4.5
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.4.5' );
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.5
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.5' );
25
  define( 'HEATEOR_SSS_PLUGIN_DIR', plugin_dir_path(__FILE__) );
26
 
27
  // plugin core class object