WordPress Social Sharing Plugin – Sassy Social Share - Version 3.3.6

Version Description

[28 November 2019] = [Bugfix] Previous version was breaking social share on custom posts [New] Added option (in Miscellaneous section) to control if Javascript should be loaded on every page or only where it's needed

Download this release

Release Info

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

Code changes from version 3.3.5 to 3.3.6

admin/partials/sassy-social-share-options-page.php CHANGED
@@ -1800,6 +1800,24 @@ defined( 'ABSPATH' ) or die("Cheating........Uh!!");
1800
  </td>
1801
  </tr>
1802
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1803
  <tr>
1804
  <th>
1805
  <label for="heateor_sss_delete_options"><?php _e("Delete all the options on plugin deletion", 'sassy-social-share' ); ?></label>
1800
  </td>
1801
  </tr>
1802
 
1803
+ <tr>
1804
+ <th>
1805
+ <label for="heateor_sss_js_when_needed"><?php _e( "Load Javascript only when needed", 'sassy-social-share' ) ?></label>
1806
+ <img id="heateor_sss_js_when_needed_help" class="heateor_sss_help_bubble" src="<?php echo plugins_url( '../../images/info.png', __FILE__ ) ?>" />
1807
+ </th>
1808
+ <td>
1809
+ <input id="heateor_sss_js_when_needed" name="heateor_sss[js_when_needed]" type="checkbox" <?php echo isset( $options['js_when_needed'] ) ? 'checked = "checked"' : '';?> value="1" />
1810
+ </td>
1811
+ </tr>
1812
+
1813
+ <tr class="heateor_sss_help_content" id="heateor_sss_js_when_needed_help_cont">
1814
+ <td colspan="2">
1815
+ <div>
1816
+ <?php _e( 'Javascript file will be loaded only at the webpages where share icons have been integrated', 'sassy-social-share' ) ?>
1817
+ </div>
1818
+ </td>
1819
+ </tr>
1820
+
1821
  <tr>
1822
  <th>
1823
  <label for="heateor_sss_delete_options"><?php _e("Delete all the options on plugin deletion", 'sassy-social-share' ); ?></label>
includes/class-sassy-social-share-shortcodes.php CHANGED
@@ -179,7 +179,7 @@ class Sassy_Social_Share_Shortcodes {
179
  $this->public_class_object->share_count_transient_id = $this->public_class_object->get_share_count_transient_id( $target_url );
180
  $cached_share_count = $this->public_class_object->get_cached_share_count( $this->public_class_object->share_count_transient_id );
181
 
182
- if ( ! wp_script_is( 'heateor_sss_sharing_js' ) ) {
183
  $in_footer = isset( $this->options['footer_script'] ) ? true : false;
184
  $inline_script = 'function heateorSssLoadEvent(e) {var t=window.onload;if (typeof window.onload!="function") {window.onload=e}else{window.onload=function() {t();e()}}};';
185
  $inline_script .= 'var heateorSssSharingAjaxUrl = \''. get_admin_url() .'admin-ajax.php\', heateorSssCloseIconPath = \''. plugins_url( '../images/close.png', __FILE__ ) .'\', heateorSssPluginIconPath = \''. plugins_url( '../images/logo.png', __FILE__ ) .'\', heateorSssHorizontalSharingCountEnable = '. ( isset( $this->options['hor_enable'] ) && ( isset( $this->options['horizontal_counts'] ) || isset( $this->options['horizontal_total_shares'] ) ) ? 1 : 0 ) .', heateorSssVerticalSharingCountEnable = '. ( isset( $this->options['vertical_enable'] ) && ( isset( $this->options['vertical_counts'] ) || isset( $this->options['vertical_total_shares'] ) ) ? 1 : 0 ) .', heateorSssSharingOffset = '. ( isset( $this->options['alignment'] ) && $this->options['alignment'] != '' && isset( $this->options[$this->options['alignment'].'_offset'] ) && $this->options[$this->options['alignment'].'_offset'] != '' ? $this->options[$this->options['alignment'].'_offset'] : 0 ) . '; var heateorSssMobileStickySharingEnabled = ' . ( isset( $this->options['vertical_enable'] ) && isset( $this->options['bottom_mobile_sharing'] ) && $this->options['horizontal_screen_width'] != '' ? 1 : 0 ) . ';';
179
  $this->public_class_object->share_count_transient_id = $this->public_class_object->get_share_count_transient_id( $target_url );
180
  $cached_share_count = $this->public_class_object->get_cached_share_count( $this->public_class_object->share_count_transient_id );
181
 
182
+ if ( isset( $this->options['js_when_needed'] ) && ! wp_script_is( 'heateor_sss_sharing_js' ) ) {
183
  $in_footer = isset( $this->options['footer_script'] ) ? true : false;
184
  $inline_script = 'function heateorSssLoadEvent(e) {var t=window.onload;if (typeof window.onload!="function") {window.onload=e}else{window.onload=function() {t();e()}}};';
185
  $inline_script .= 'var heateorSssSharingAjaxUrl = \''. get_admin_url() .'admin-ajax.php\', heateorSssCloseIconPath = \''. plugins_url( '../images/close.png', __FILE__ ) .'\', heateorSssPluginIconPath = \''. plugins_url( '../images/logo.png', __FILE__ ) .'\', heateorSssHorizontalSharingCountEnable = '. ( isset( $this->options['hor_enable'] ) && ( isset( $this->options['horizontal_counts'] ) || isset( $this->options['horizontal_total_shares'] ) ) ? 1 : 0 ) .', heateorSssVerticalSharingCountEnable = '. ( isset( $this->options['vertical_enable'] ) && ( isset( $this->options['vertical_counts'] ) || isset( $this->options['vertical_total_shares'] ) ) ? 1 : 0 ) .', heateorSssSharingOffset = '. ( isset( $this->options['alignment'] ) && $this->options['alignment'] != '' && isset( $this->options[$this->options['alignment'].'_offset'] ) && $this->options[$this->options['alignment'].'_offset'] != '' ? $this->options[$this->options['alignment'].'_offset'] : 0 ) . '; var heateorSssMobileStickySharingEnabled = ' . ( isset( $this->options['vertical_enable'] ) && isset( $this->options['bottom_mobile_sharing'] ) && $this->options['horizontal_screen_width'] != '' ? 1 : 0 ) . ';';
includes/class-sassy-social-share-widgets.php CHANGED
@@ -67,7 +67,7 @@ class Sassy_Social_Share_Standard_Widget extends WP_Widget {
67
 
68
  global $post;
69
 
70
- if ( ! wp_script_is( 'heateor_sss_sharing_js' ) ) {
71
  $in_footer = isset( $this->options['footer_script'] ) ? true : false;
72
  $inline_script = 'function heateorSssLoadEvent(e) {var t=window.onload;if (typeof window.onload!="function") {window.onload=e}else{window.onload=function() {t();e()}}};';
73
  $inline_script .= 'var heateorSssSharingAjaxUrl = \''. get_admin_url() .'admin-ajax.php\', heateorSssCloseIconPath = \''. plugins_url( '../images/close.png', __FILE__ ) .'\', heateorSssPluginIconPath = \''. plugins_url( '../images/logo.png', __FILE__ ) .'\', heateorSssHorizontalSharingCountEnable = '. ( isset( $this->options['hor_enable'] ) && ( isset( $this->options['horizontal_counts'] ) || isset( $this->options['horizontal_total_shares'] ) ) ? 1 : 0 ) .', heateorSssVerticalSharingCountEnable = '. ( isset( $this->options['vertical_enable'] ) && ( isset( $this->options['vertical_counts'] ) || isset( $this->options['vertical_total_shares'] ) ) ? 1 : 0 ) .', heateorSssSharingOffset = '. ( isset( $this->options['alignment'] ) && $this->options['alignment'] != '' && isset( $this->options[$this->options['alignment'].'_offset'] ) && $this->options[$this->options['alignment'].'_offset'] != '' ? $this->options[$this->options['alignment'].'_offset'] : 0 ) . '; var heateorSssMobileStickySharingEnabled = ' . ( isset( $this->options['vertical_enable'] ) && isset( $this->options['bottom_mobile_sharing'] ) && $this->options['horizontal_screen_width'] != '' ? 1 : 0 ) . ';';
@@ -302,7 +302,7 @@ class Sassy_Social_Share_Floating_Widget extends WP_Widget {
302
 
303
  global $post;
304
 
305
- if ( ! wp_script_is( 'heateor_sss_sharing_js' ) ) {
306
  $in_footer = isset( $this->options['footer_script'] ) ? true : false;
307
  $inline_script = 'function heateorSssLoadEvent(e) {var t=window.onload;if (typeof window.onload!="function") {window.onload=e}else{window.onload=function() {t();e()}}};';
308
  $inline_script .= 'var heateorSssSharingAjaxUrl = \''. get_admin_url() .'admin-ajax.php\', heateorSssCloseIconPath = \''. plugins_url( '../images/close.png', __FILE__ ) .'\', heateorSssPluginIconPath = \''. plugins_url( '../images/logo.png', __FILE__ ) .'\', heateorSssHorizontalSharingCountEnable = '. ( isset( $this->options['hor_enable'] ) && ( isset( $this->options['horizontal_counts'] ) || isset( $this->options['horizontal_total_shares'] ) ) ? 1 : 0 ) .', heateorSssVerticalSharingCountEnable = '. ( isset( $this->options['vertical_enable'] ) && ( isset( $this->options['vertical_counts'] ) || isset( $this->options['vertical_total_shares'] ) ) ? 1 : 0 ) .', heateorSssSharingOffset = '. ( isset( $this->options['alignment'] ) && $this->options['alignment'] != '' && isset( $this->options[$this->options['alignment'].'_offset'] ) && $this->options[$this->options['alignment'].'_offset'] != '' ? $this->options[$this->options['alignment'].'_offset'] : 0 ) . '; var heateorSssMobileStickySharingEnabled = ' . ( isset( $this->options['vertical_enable'] ) && isset( $this->options['bottom_mobile_sharing'] ) && $this->options['horizontal_screen_width'] != '' ? 1 : 0 ) . ';';
67
 
68
  global $post;
69
 
70
+ if ( isset( $this->options['js_when_needed'] ) && ! wp_script_is( 'heateor_sss_sharing_js' ) ) {
71
  $in_footer = isset( $this->options['footer_script'] ) ? true : false;
72
  $inline_script = 'function heateorSssLoadEvent(e) {var t=window.onload;if (typeof window.onload!="function") {window.onload=e}else{window.onload=function() {t();e()}}};';
73
  $inline_script .= 'var heateorSssSharingAjaxUrl = \''. get_admin_url() .'admin-ajax.php\', heateorSssCloseIconPath = \''. plugins_url( '../images/close.png', __FILE__ ) .'\', heateorSssPluginIconPath = \''. plugins_url( '../images/logo.png', __FILE__ ) .'\', heateorSssHorizontalSharingCountEnable = '. ( isset( $this->options['hor_enable'] ) && ( isset( $this->options['horizontal_counts'] ) || isset( $this->options['horizontal_total_shares'] ) ) ? 1 : 0 ) .', heateorSssVerticalSharingCountEnable = '. ( isset( $this->options['vertical_enable'] ) && ( isset( $this->options['vertical_counts'] ) || isset( $this->options['vertical_total_shares'] ) ) ? 1 : 0 ) .', heateorSssSharingOffset = '. ( isset( $this->options['alignment'] ) && $this->options['alignment'] != '' && isset( $this->options[$this->options['alignment'].'_offset'] ) && $this->options[$this->options['alignment'].'_offset'] != '' ? $this->options[$this->options['alignment'].'_offset'] : 0 ) . '; var heateorSssMobileStickySharingEnabled = ' . ( isset( $this->options['vertical_enable'] ) && isset( $this->options['bottom_mobile_sharing'] ) && $this->options['horizontal_screen_width'] != '' ? 1 : 0 ) . ';';
302
 
303
  global $post;
304
 
305
+ if ( isset( $this->options['js_when_needed'] ) && ! wp_script_is( 'heateor_sss_sharing_js' ) ) {
306
  $in_footer = isset( $this->options['footer_script'] ) ? true : false;
307
  $inline_script = 'function heateorSssLoadEvent(e) {var t=window.onload;if (typeof window.onload!="function") {window.onload=e}else{window.onload=function() {t();e()}}};';
308
  $inline_script .= 'var heateorSssSharingAjaxUrl = \''. get_admin_url() .'admin-ajax.php\', heateorSssCloseIconPath = \''. plugins_url( '../images/close.png', __FILE__ ) .'\', heateorSssPluginIconPath = \''. plugins_url( '../images/logo.png', __FILE__ ) .'\', heateorSssHorizontalSharingCountEnable = '. ( isset( $this->options['hor_enable'] ) && ( isset( $this->options['horizontal_counts'] ) || isset( $this->options['horizontal_total_shares'] ) ) ? 1 : 0 ) .', heateorSssVerticalSharingCountEnable = '. ( isset( $this->options['vertical_enable'] ) && ( isset( $this->options['vertical_counts'] ) || isset( $this->options['vertical_total_shares'] ) ) ? 1 : 0 ) .', heateorSssSharingOffset = '. ( isset( $this->options['alignment'] ) && $this->options['alignment'] != '' && isset( $this->options[$this->options['alignment'].'_offset'] ) && $this->options[$this->options['alignment'].'_offset'] != '' ? $this->options[$this->options['alignment'].'_offset'] : 0 ) . '; var heateorSssMobileStickySharingEnabled = ' . ( isset( $this->options['vertical_enable'] ) && isset( $this->options['bottom_mobile_sharing'] ) && $this->options['horizontal_screen_width'] != '' ? 1 : 0 ) . ';';
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: 2019-11-27 08:31+0530\n"
6
- "PO-Revision-Date: 2019-11-27 08:31+0530\n"
7
  "Last-Translator: Heateor <hello@heateor.com>\n"
8
  "Language-Team: Heateor <hello@heateor.com>\n"
9
  "Language: en_IN\n"
@@ -132,7 +132,7 @@ msgid "Settings"
132
  msgstr ""
133
 
134
  #: ../admin/partials/sassy-social-share-options-page.php:16
135
- #: ../admin/partials/sassy-social-share-options-page.php:2211
136
  #, php-format
137
  msgid ""
138
  "You can appreciate the effort put in this free plugin by rating it <a href="
@@ -161,7 +161,7 @@ msgid "3rd Party Integration"
161
  msgstr ""
162
 
163
  #: ../admin/partials/sassy-social-share-options-page.php:35
164
- #: ../admin/partials/sassy-social-share-options-page.php:2134
165
  msgid "Shortcode & Widget"
166
  msgstr ""
167
 
@@ -170,7 +170,7 @@ msgid "Troubleshooter"
170
  msgstr ""
171
 
172
  #: ../admin/partials/sassy-social-share-options-page.php:37
173
- #: ../admin/partials/sassy-social-share-options-page.php:2168
174
  msgid "FAQ"
175
  msgstr ""
176
 
@@ -613,7 +613,7 @@ msgstr ""
613
 
614
  #: ../admin/partials/sassy-social-share-options-page.php:1095
615
  #: ../admin/partials/sassy-social-share-options-page.php:1561
616
- #: ../admin/partials/sassy-social-share-options-page.php:2173
617
  msgid ""
618
  "Save Facebook App Id and Secret in the \"Miscellaneous\" section to track "
619
  "Facebook shares"
@@ -843,25 +843,35 @@ msgid ""
843
  msgstr ""
844
 
845
  #: ../admin/partials/sassy-social-share-options-page.php:1805
846
- msgid "Delete all the options on plugin deletion"
847
  msgstr ""
848
 
849
  #: ../admin/partials/sassy-social-share-options-page.php:1816
850
  msgid ""
 
 
 
 
 
 
 
 
 
 
851
  "If enabled, plugin options will get deleted when plugin is deleted/"
852
  "uninstalled and you will need to reconfigure the options when you install "
853
  "the plugin next time."
854
  msgstr ""
855
 
856
- #: ../admin/partials/sassy-social-share-options-page.php:1825
857
  msgid "Share Count Cache"
858
  msgstr ""
859
 
860
- #: ../admin/partials/sassy-social-share-options-page.php:1830
861
  msgid "Refresh Share Count cache every"
862
  msgstr ""
863
 
864
- #: ../admin/partials/sassy-social-share-options-page.php:1847
865
  #, php-format
866
  msgid ""
867
  "Frequent cache refreshing results in slower loading of pages with share "
@@ -869,82 +879,82 @@ msgid ""
869
  "target=\"_blank\">here</a>"
870
  msgstr ""
871
 
872
- #: ../admin/partials/sassy-social-share-options-page.php:1854
873
  msgid "Clear Share Counts Cache"
874
  msgstr ""
875
 
876
- #: ../admin/partials/sassy-social-share-options-page.php:1859
877
  msgid "Share Counts cache cleared successfully."
878
  msgstr ""
879
 
880
- #: ../admin/partials/sassy-social-share-options-page.php:1866
881
  msgid "Use this to clear cached share counts"
882
  msgstr ""
883
 
884
- #: ../admin/partials/sassy-social-share-options-page.php:1875
885
  msgid "Url shortener"
886
  msgstr ""
887
 
888
- #: ../admin/partials/sassy-social-share-options-page.php:1880
889
  msgid "Use shortlinks already installed"
890
  msgstr ""
891
 
892
- #: ../admin/partials/sassy-social-share-options-page.php:1891
893
  msgid ""
894
  "Use default short url permalinks without the need for any additional plugin"
895
  msgstr ""
896
 
897
- #: ../admin/partials/sassy-social-share-options-page.php:1898
898
  msgid "Enable bit.ly url shortener for sharing"
899
  msgstr ""
900
 
901
- #: ../admin/partials/sassy-social-share-options-page.php:1909
902
  msgid "Master control to enable bit.ly url shortening for sharing"
903
  msgstr ""
904
 
905
- #: ../admin/partials/sassy-social-share-options-page.php:1916
906
  msgid "bit.ly Login"
907
  msgstr ""
908
 
909
- #: ../admin/partials/sassy-social-share-options-page.php:1927
910
  #, php-format
911
  msgid ""
912
  "Login to your bit.ly account and navigate to <a href=\"%s\" target=\"_blank"
913
  "\">this link</a> to get bit.ly Login"
914
  msgstr ""
915
 
916
- #: ../admin/partials/sassy-social-share-options-page.php:1935
917
  msgid "bit.ly API Key"
918
  msgstr ""
919
 
920
- #: ../admin/partials/sassy-social-share-options-page.php:1946
921
  #, php-format
922
  msgid ""
923
  "Login to your bit.ly account and navigate to <a href=\"%s\" target=\"_blank"
924
  "\">this link</a> to get your API key"
925
  msgstr ""
926
 
927
- #: ../admin/partials/sassy-social-share-options-page.php:1954
928
  msgid "Clear Bitly Cache"
929
  msgstr ""
930
 
931
- #: ../admin/partials/sassy-social-share-options-page.php:1959
932
  msgid "ShortUrl cache cleared successfully."
933
  msgstr ""
934
 
935
- #: ../admin/partials/sassy-social-share-options-page.php:1966
936
  msgid ""
937
  "Use this to delete short urls saved in database. Handy, if urls of your "
938
  "website have been changed but short urls are still being generated for old "
939
  "urls."
940
  msgstr ""
941
 
942
- #: ../admin/partials/sassy-social-share-options-page.php:1975
943
- #: ../admin/partials/sassy-social-share-options-page.php:1980
944
  msgid "Language"
945
  msgstr ""
946
 
947
- #: ../admin/partials/sassy-social-share-options-page.php:1991
948
  #, php-format
949
  msgid ""
950
  "Enter the code of the language you want to use for like buttons. You can "
@@ -952,68 +962,68 @@ msgid ""
952
  "Leave it empty for default language(English)"
953
  msgstr ""
954
 
955
- #: ../admin/partials/sassy-social-share-options-page.php:2000
956
  msgid "Username in sharing"
957
  msgstr ""
958
 
959
- #: ../admin/partials/sassy-social-share-options-page.php:2005
960
  msgid "Twitter username (without @)"
961
  msgstr ""
962
 
963
- #: ../admin/partials/sassy-social-share-options-page.php:2016
964
- #: ../admin/partials/sassy-social-share-options-page.php:2035
965
  msgid ""
966
  "Provided username will be appended after the content being shared as \"via "
967
  "@USERNAME\". Leave empty if you do not want any username in the content "
968
  "being shared."
969
  msgstr ""
970
 
971
- #: ../admin/partials/sassy-social-share-options-page.php:2024
972
  msgid "Buffer username (without @)"
973
  msgstr ""
974
 
975
- #: ../admin/partials/sassy-social-share-options-page.php:2044
976
  msgid "AMP"
977
  msgstr ""
978
 
979
- #: ../admin/partials/sassy-social-share-options-page.php:2049
980
  msgid "Enable sharing on AMP pages"
981
  msgstr ""
982
 
983
- #: ../admin/partials/sassy-social-share-options-page.php:2060
984
  msgid "Enable this option to render sharing icons on AMP pages"
985
  msgstr ""
986
 
987
- #: ../admin/partials/sassy-social-share-options-page.php:2069
988
- #: ../admin/partials/sassy-social-share-options-page.php:2074
989
  msgid "Custom CSS"
990
  msgstr ""
991
 
992
- #: ../admin/partials/sassy-social-share-options-page.php:2085
993
  msgid "You can specify any additional CSS rules (without &lt;style&gt; tag)"
994
  msgstr ""
995
 
996
- #: ../admin/partials/sassy-social-share-options-page.php:2108
997
  msgid "myCRED"
998
  msgstr ""
999
 
1000
- #: ../admin/partials/sassy-social-share-options-page.php:2113
1001
  msgid "Append myCRED referral ID to the urls being shared"
1002
  msgstr ""
1003
 
1004
- #: ../admin/partials/sassy-social-share-options-page.php:2136
1005
  msgid "Social Share Shortcode & Widget"
1006
  msgstr ""
1007
 
1008
- #: ../admin/partials/sassy-social-share-options-page.php:2137
1009
  msgid "Follow Icons Shortcode & Widget"
1010
  msgstr ""
1011
 
1012
- #: ../admin/partials/sassy-social-share-options-page.php:2148
1013
  msgid "Facebook Sharing Troubleshooter"
1014
  msgstr ""
1015
 
1016
- #: ../admin/partials/sassy-social-share-options-page.php:2153
1017
  msgid ""
1018
  "If Facebook sharing is not working fine, click at the following link and "
1019
  "enter the problematic url (where Facebook sharing is not working properly) "
@@ -1021,31 +1031,31 @@ msgid ""
1021
  "button."
1022
  msgstr ""
1023
 
1024
- #: ../admin/partials/sassy-social-share-options-page.php:2170
1025
  msgid ""
1026
  "<strong>Note:</strong> Plugin will not work on local server. You should have "
1027
  "an online website for the plugin to function properly."
1028
  msgstr ""
1029
 
1030
- #: ../admin/partials/sassy-social-share-options-page.php:2171
1031
  msgid ""
1032
  "Why is sharer not showing the correct image, title and other meta tags "
1033
  "content?"
1034
  msgstr ""
1035
 
1036
- #: ../admin/partials/sassy-social-share-options-page.php:2172
1037
  msgid "Why is Facebook share count not working?"
1038
  msgstr ""
1039
 
1040
- #: ../admin/partials/sassy-social-share-options-page.php:2174
1041
  msgid "How to Customize the Url being Shared?"
1042
  msgstr ""
1043
 
1044
- #: ../admin/partials/sassy-social-share-options-page.php:2175
1045
  msgid "Why is Instagram icon redirecting to Instagram website?"
1046
  msgstr ""
1047
 
1048
- #: ../admin/partials/sassy-social-share-options-page.php:2176
1049
  msgid ""
1050
  "Instagram icon is there to send website visitors to the Instagram page of "
1051
  "your choice. You can save the desired Instagram handle in \"Instagram "
@@ -1053,97 +1063,97 @@ msgid ""
1053
  "sections."
1054
  msgstr ""
1055
 
1056
- #: ../admin/partials/sassy-social-share-options-page.php:2178
1057
  msgid ""
1058
  "Why are Twitter shares not appearing even after registering at Twitcount.com?"
1059
  msgstr ""
1060
 
1061
- #: ../admin/partials/sassy-social-share-options-page.php:2179
1062
  msgid ""
1063
  "It takes some time for their service to track the shares made on Twitter "
1064
  "from your website. If you still feel it's taking too long you can contact "
1065
  "their support directly from their website."
1066
  msgstr ""
1067
 
1068
- #: ../admin/partials/sassy-social-share-options-page.php:2181
1069
  msgid ""
1070
  "How to restore Social Share counts lost after moving my website to SSL/Https?"
1071
  msgstr ""
1072
 
1073
- #: ../admin/partials/sassy-social-share-options-page.php:2182
1074
  msgid "How to integrate Google Analytics with sharing?"
1075
  msgstr ""
1076
 
1077
- #: ../admin/partials/sassy-social-share-options-page.php:2183
1078
  msgid "Why the color of share icons is not being updated?"
1079
  msgstr ""
1080
 
1081
- #: ../admin/partials/sassy-social-share-options-page.php:2184
1082
  msgid ""
1083
  "How to show recent Facebook Comments from all over the website in a widget?"
1084
  msgstr ""
1085
 
1086
- #: ../admin/partials/sassy-social-share-options-page.php:2185
1087
  msgid ""
1088
  "How to recover the Facebook Comments lost after moving my website to SSL/"
1089
  "Https?"
1090
  msgstr ""
1091
 
1092
- #: ../admin/partials/sassy-social-share-options-page.php:2186
1093
  msgid "How to Place Title and Social Share Icons in the Same Row?"
1094
  msgstr ""
1095
 
1096
- #: ../admin/partials/sassy-social-share-options-page.php:2187
1097
  msgid ""
1098
  "How can I show share counts of my website rather than of individual pages/"
1099
  "posts?"
1100
  msgstr ""
1101
 
1102
- #: ../admin/partials/sassy-social-share-options-page.php:2188
1103
  msgid "How can I disable sharing on particular page/post?"
1104
  msgstr ""
1105
 
1106
- #: ../admin/partials/sassy-social-share-options-page.php:2189
1107
  msgid "How can I specify minimum sharing count for sharing networks?"
1108
  msgstr ""
1109
 
1110
- #: ../admin/partials/sassy-social-share-options-page.php:2190
1111
  msgid "How to share specific page?"
1112
  msgstr ""
1113
 
1114
- #: ../admin/partials/sassy-social-share-options-page.php:2191
1115
  msgid "How to customize the look of total share counts?"
1116
  msgstr ""
1117
 
1118
- #: ../admin/partials/sassy-social-share-options-page.php:2192
1119
  msgid "How to customize the look of individual share counts?"
1120
  msgstr ""
1121
 
1122
- #: ../admin/partials/sassy-social-share-options-page.php:2193
1123
  msgid "How to show Whatsapp icon only on mobile devices?"
1124
  msgstr ""
1125
 
1126
- #: ../admin/partials/sassy-social-share-options-page.php:2194
1127
  msgid "How to hide arrow after floating sharing bar?"
1128
  msgstr ""
1129
 
1130
- #: ../admin/partials/sassy-social-share-options-page.php:2195
1131
  msgid "Why is share count not getting updated?"
1132
  msgstr ""
1133
 
1134
- #: ../admin/partials/sassy-social-share-options-page.php:2196
1135
  msgid "Why is there so much space between like buttons?"
1136
  msgstr ""
1137
 
1138
- #: ../admin/partials/sassy-social-share-options-page.php:2197
1139
  msgid "Why are floating sharing/like buttons not appearing at homepage?"
1140
  msgstr ""
1141
 
1142
- #: ../admin/partials/sassy-social-share-options-page.php:2207
1143
  msgid "Save Changes"
1144
  msgstr ""
1145
 
1146
- #: ../admin/partials/sassy-social-share-options-page.php:2219
1147
  msgid ""
1148
  "If you can send (to hello@heateor.com) how this plugin is helping your "
1149
  "business, we would be glad to shoutout on Instagram. You can also send any "
2
  msgstr ""
3
  "Project-Id-Version: Sassy Social Share\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2019-11-28 05:34+0530\n"
6
+ "PO-Revision-Date: 2019-11-28 05:34+0530\n"
7
  "Last-Translator: Heateor <hello@heateor.com>\n"
8
  "Language-Team: Heateor <hello@heateor.com>\n"
9
  "Language: en_IN\n"
132
  msgstr ""
133
 
134
  #: ../admin/partials/sassy-social-share-options-page.php:16
135
+ #: ../admin/partials/sassy-social-share-options-page.php:2230
136
  #, php-format
137
  msgid ""
138
  "You can appreciate the effort put in this free plugin by rating it <a href="
161
  msgstr ""
162
 
163
  #: ../admin/partials/sassy-social-share-options-page.php:35
164
+ #: ../admin/partials/sassy-social-share-options-page.php:2152
165
  msgid "Shortcode & Widget"
166
  msgstr ""
167
 
170
  msgstr ""
171
 
172
  #: ../admin/partials/sassy-social-share-options-page.php:37
173
+ #: ../admin/partials/sassy-social-share-options-page.php:2187
174
  msgid "FAQ"
175
  msgstr ""
176
 
613
 
614
  #: ../admin/partials/sassy-social-share-options-page.php:1095
615
  #: ../admin/partials/sassy-social-share-options-page.php:1561
616
+ #: ../admin/partials/sassy-social-share-options-page.php:2192
617
  msgid ""
618
  "Save Facebook App Id and Secret in the \"Miscellaneous\" section to track "
619
  "Facebook shares"
843
  msgstr ""
844
 
845
  #: ../admin/partials/sassy-social-share-options-page.php:1805
846
+ msgid "Load Javascript only when needed"
847
  msgstr ""
848
 
849
  #: ../admin/partials/sassy-social-share-options-page.php:1816
850
  msgid ""
851
+ "Javascript file will be loaded only at the webpages where share icons have "
852
+ "been integrated"
853
+ msgstr ""
854
+
855
+ #: ../admin/partials/sassy-social-share-options-page.php:1823
856
+ msgid "Delete all the options on plugin deletion"
857
+ msgstr ""
858
+
859
+ #: ../admin/partials/sassy-social-share-options-page.php:1834
860
+ msgid ""
861
  "If enabled, plugin options will get deleted when plugin is deleted/"
862
  "uninstalled and you will need to reconfigure the options when you install "
863
  "the plugin next time."
864
  msgstr ""
865
 
866
+ #: ../admin/partials/sassy-social-share-options-page.php:1843
867
  msgid "Share Count Cache"
868
  msgstr ""
869
 
870
+ #: ../admin/partials/sassy-social-share-options-page.php:1848
871
  msgid "Refresh Share Count cache every"
872
  msgstr ""
873
 
874
+ #: ../admin/partials/sassy-social-share-options-page.php:1865
875
  #, php-format
876
  msgid ""
877
  "Frequent cache refreshing results in slower loading of pages with share "
879
  "target=\"_blank\">here</a>"
880
  msgstr ""
881
 
882
+ #: ../admin/partials/sassy-social-share-options-page.php:1872
883
  msgid "Clear Share Counts Cache"
884
  msgstr ""
885
 
886
+ #: ../admin/partials/sassy-social-share-options-page.php:1877
887
  msgid "Share Counts cache cleared successfully."
888
  msgstr ""
889
 
890
+ #: ../admin/partials/sassy-social-share-options-page.php:1884
891
  msgid "Use this to clear cached share counts"
892
  msgstr ""
893
 
894
+ #: ../admin/partials/sassy-social-share-options-page.php:1893
895
  msgid "Url shortener"
896
  msgstr ""
897
 
898
+ #: ../admin/partials/sassy-social-share-options-page.php:1898
899
  msgid "Use shortlinks already installed"
900
  msgstr ""
901
 
902
+ #: ../admin/partials/sassy-social-share-options-page.php:1909
903
  msgid ""
904
  "Use default short url permalinks without the need for any additional plugin"
905
  msgstr ""
906
 
907
+ #: ../admin/partials/sassy-social-share-options-page.php:1916
908
  msgid "Enable bit.ly url shortener for sharing"
909
  msgstr ""
910
 
911
+ #: ../admin/partials/sassy-social-share-options-page.php:1927
912
  msgid "Master control to enable bit.ly url shortening for sharing"
913
  msgstr ""
914
 
915
+ #: ../admin/partials/sassy-social-share-options-page.php:1934
916
  msgid "bit.ly Login"
917
  msgstr ""
918
 
919
+ #: ../admin/partials/sassy-social-share-options-page.php:1945
920
  #, php-format
921
  msgid ""
922
  "Login to your bit.ly account and navigate to <a href=\"%s\" target=\"_blank"
923
  "\">this link</a> to get bit.ly Login"
924
  msgstr ""
925
 
926
+ #: ../admin/partials/sassy-social-share-options-page.php:1953
927
  msgid "bit.ly API Key"
928
  msgstr ""
929
 
930
+ #: ../admin/partials/sassy-social-share-options-page.php:1964
931
  #, php-format
932
  msgid ""
933
  "Login to your bit.ly account and navigate to <a href=\"%s\" target=\"_blank"
934
  "\">this link</a> to get your API key"
935
  msgstr ""
936
 
937
+ #: ../admin/partials/sassy-social-share-options-page.php:1972
938
  msgid "Clear Bitly Cache"
939
  msgstr ""
940
 
941
+ #: ../admin/partials/sassy-social-share-options-page.php:1977
942
  msgid "ShortUrl cache cleared successfully."
943
  msgstr ""
944
 
945
+ #: ../admin/partials/sassy-social-share-options-page.php:1984
946
  msgid ""
947
  "Use this to delete short urls saved in database. Handy, if urls of your "
948
  "website have been changed but short urls are still being generated for old "
949
  "urls."
950
  msgstr ""
951
 
952
+ #: ../admin/partials/sassy-social-share-options-page.php:1993
953
+ #: ../admin/partials/sassy-social-share-options-page.php:1998
954
  msgid "Language"
955
  msgstr ""
956
 
957
+ #: ../admin/partials/sassy-social-share-options-page.php:2009
958
  #, php-format
959
  msgid ""
960
  "Enter the code of the language you want to use for like buttons. You can "
962
  "Leave it empty for default language(English)"
963
  msgstr ""
964
 
965
+ #: ../admin/partials/sassy-social-share-options-page.php:2018
966
  msgid "Username in sharing"
967
  msgstr ""
968
 
969
+ #: ../admin/partials/sassy-social-share-options-page.php:2023
970
  msgid "Twitter username (without @)"
971
  msgstr ""
972
 
973
+ #: ../admin/partials/sassy-social-share-options-page.php:2034
974
+ #: ../admin/partials/sassy-social-share-options-page.php:2053
975
  msgid ""
976
  "Provided username will be appended after the content being shared as \"via "
977
  "@USERNAME\". Leave empty if you do not want any username in the content "
978
  "being shared."
979
  msgstr ""
980
 
981
+ #: ../admin/partials/sassy-social-share-options-page.php:2042
982
  msgid "Buffer username (without @)"
983
  msgstr ""
984
 
985
+ #: ../admin/partials/sassy-social-share-options-page.php:2062
986
  msgid "AMP"
987
  msgstr ""
988
 
989
+ #: ../admin/partials/sassy-social-share-options-page.php:2067
990
  msgid "Enable sharing on AMP pages"
991
  msgstr ""
992
 
993
+ #: ../admin/partials/sassy-social-share-options-page.php:2078
994
  msgid "Enable this option to render sharing icons on AMP pages"
995
  msgstr ""
996
 
997
+ #: ../admin/partials/sassy-social-share-options-page.php:2087
998
+ #: ../admin/partials/sassy-social-share-options-page.php:2092
999
  msgid "Custom CSS"
1000
  msgstr ""
1001
 
1002
+ #: ../admin/partials/sassy-social-share-options-page.php:2103
1003
  msgid "You can specify any additional CSS rules (without &lt;style&gt; tag)"
1004
  msgstr ""
1005
 
1006
+ #: ../admin/partials/sassy-social-share-options-page.php:2126
1007
  msgid "myCRED"
1008
  msgstr ""
1009
 
1010
+ #: ../admin/partials/sassy-social-share-options-page.php:2131
1011
  msgid "Append myCRED referral ID to the urls being shared"
1012
  msgstr ""
1013
 
1014
+ #: ../admin/partials/sassy-social-share-options-page.php:2154
1015
  msgid "Social Share Shortcode & Widget"
1016
  msgstr ""
1017
 
1018
+ #: ../admin/partials/sassy-social-share-options-page.php:2155
1019
  msgid "Follow Icons Shortcode & Widget"
1020
  msgstr ""
1021
 
1022
+ #: ../admin/partials/sassy-social-share-options-page.php:2167
1023
  msgid "Facebook Sharing Troubleshooter"
1024
  msgstr ""
1025
 
1026
+ #: ../admin/partials/sassy-social-share-options-page.php:2172
1027
  msgid ""
1028
  "If Facebook sharing is not working fine, click at the following link and "
1029
  "enter the problematic url (where Facebook sharing is not working properly) "
1031
  "button."
1032
  msgstr ""
1033
 
1034
+ #: ../admin/partials/sassy-social-share-options-page.php:2189
1035
  msgid ""
1036
  "<strong>Note:</strong> Plugin will not work on local server. You should have "
1037
  "an online website for the plugin to function properly."
1038
  msgstr ""
1039
 
1040
+ #: ../admin/partials/sassy-social-share-options-page.php:2190
1041
  msgid ""
1042
  "Why is sharer not showing the correct image, title and other meta tags "
1043
  "content?"
1044
  msgstr ""
1045
 
1046
+ #: ../admin/partials/sassy-social-share-options-page.php:2191
1047
  msgid "Why is Facebook share count not working?"
1048
  msgstr ""
1049
 
1050
+ #: ../admin/partials/sassy-social-share-options-page.php:2193
1051
  msgid "How to Customize the Url being Shared?"
1052
  msgstr ""
1053
 
1054
+ #: ../admin/partials/sassy-social-share-options-page.php:2194
1055
  msgid "Why is Instagram icon redirecting to Instagram website?"
1056
  msgstr ""
1057
 
1058
+ #: ../admin/partials/sassy-social-share-options-page.php:2195
1059
  msgid ""
1060
  "Instagram icon is there to send website visitors to the Instagram page of "
1061
  "your choice. You can save the desired Instagram handle in \"Instagram "
1063
  "sections."
1064
  msgstr ""
1065
 
1066
+ #: ../admin/partials/sassy-social-share-options-page.php:2197
1067
  msgid ""
1068
  "Why are Twitter shares not appearing even after registering at Twitcount.com?"
1069
  msgstr ""
1070
 
1071
+ #: ../admin/partials/sassy-social-share-options-page.php:2198
1072
  msgid ""
1073
  "It takes some time for their service to track the shares made on Twitter "
1074
  "from your website. If you still feel it's taking too long you can contact "
1075
  "their support directly from their website."
1076
  msgstr ""
1077
 
1078
+ #: ../admin/partials/sassy-social-share-options-page.php:2200
1079
  msgid ""
1080
  "How to restore Social Share counts lost after moving my website to SSL/Https?"
1081
  msgstr ""
1082
 
1083
+ #: ../admin/partials/sassy-social-share-options-page.php:2201
1084
  msgid "How to integrate Google Analytics with sharing?"
1085
  msgstr ""
1086
 
1087
+ #: ../admin/partials/sassy-social-share-options-page.php:2202
1088
  msgid "Why the color of share icons is not being updated?"
1089
  msgstr ""
1090
 
1091
+ #: ../admin/partials/sassy-social-share-options-page.php:2203
1092
  msgid ""
1093
  "How to show recent Facebook Comments from all over the website in a widget?"
1094
  msgstr ""
1095
 
1096
+ #: ../admin/partials/sassy-social-share-options-page.php:2204
1097
  msgid ""
1098
  "How to recover the Facebook Comments lost after moving my website to SSL/"
1099
  "Https?"
1100
  msgstr ""
1101
 
1102
+ #: ../admin/partials/sassy-social-share-options-page.php:2205
1103
  msgid "How to Place Title and Social Share Icons in the Same Row?"
1104
  msgstr ""
1105
 
1106
+ #: ../admin/partials/sassy-social-share-options-page.php:2206
1107
  msgid ""
1108
  "How can I show share counts of my website rather than of individual pages/"
1109
  "posts?"
1110
  msgstr ""
1111
 
1112
+ #: ../admin/partials/sassy-social-share-options-page.php:2207
1113
  msgid "How can I disable sharing on particular page/post?"
1114
  msgstr ""
1115
 
1116
+ #: ../admin/partials/sassy-social-share-options-page.php:2208
1117
  msgid "How can I specify minimum sharing count for sharing networks?"
1118
  msgstr ""
1119
 
1120
+ #: ../admin/partials/sassy-social-share-options-page.php:2209
1121
  msgid "How to share specific page?"
1122
  msgstr ""
1123
 
1124
+ #: ../admin/partials/sassy-social-share-options-page.php:2210
1125
  msgid "How to customize the look of total share counts?"
1126
  msgstr ""
1127
 
1128
+ #: ../admin/partials/sassy-social-share-options-page.php:2211
1129
  msgid "How to customize the look of individual share counts?"
1130
  msgstr ""
1131
 
1132
+ #: ../admin/partials/sassy-social-share-options-page.php:2212
1133
  msgid "How to show Whatsapp icon only on mobile devices?"
1134
  msgstr ""
1135
 
1136
+ #: ../admin/partials/sassy-social-share-options-page.php:2213
1137
  msgid "How to hide arrow after floating sharing bar?"
1138
  msgstr ""
1139
 
1140
+ #: ../admin/partials/sassy-social-share-options-page.php:2214
1141
  msgid "Why is share count not getting updated?"
1142
  msgstr ""
1143
 
1144
+ #: ../admin/partials/sassy-social-share-options-page.php:2215
1145
  msgid "Why is there so much space between like buttons?"
1146
  msgstr ""
1147
 
1148
+ #: ../admin/partials/sassy-social-share-options-page.php:2216
1149
  msgid "Why are floating sharing/like buttons not appearing at homepage?"
1150
  msgstr ""
1151
 
1152
+ #: ../admin/partials/sassy-social-share-options-page.php:2226
1153
  msgid "Save Changes"
1154
  msgstr ""
1155
 
1156
+ #: ../admin/partials/sassy-social-share-options-page.php:2238
1157
  msgid ""
1158
  "If you can send (to hello@heateor.com) how this plugin is helping your "
1159
  "business, we would be glad to shoutout on Instagram. You can also send any "
public/class-sassy-social-share-public.php CHANGED
@@ -106,7 +106,7 @@ class Sassy_Social_Share_Public {
106
  if ( $post ) {
107
  $sharing_meta = get_post_meta( $post->ID, '_heateor_sss_meta', true );
108
  if ( is_front_page() || ! isset( $sharing_meta['sharing'] ) || $sharing_meta['sharing'] != 1 || ! isset( $sharing_meta['vertical_sharing'] ) || $sharing_meta['vertical_sharing'] != 1 ) {
109
- if ( ( ( isset( $this->options['home'] ) || isset( $this->options['vertical_home'] ) ) && is_front_page() ) || ( ( isset( $this->options['category'] ) || isset($this->options['vertical_category'] ) ) && is_category() ) ||( ( isset( $this->options['archive'] ) || isset( $this->options['vertical_archive'] ) ) && is_archive() ) || ( ( isset( $this->options['post'] ) || isset( $this->options['vertical_post'] ) ) && is_single() && isset( $post->post_type ) && $post->post_type == 'post' ) || ( ( isset( $this->options['page'] ) || isset( $this->options['vertical_page'] ) ) && is_page() && isset( $post->post_type ) && $post->post_type == 'page' ) || ( ( isset( $this->options['excerpt'] ) || isset( $this->options['vertical_excerpt'] ) ) && ( is_home() || current_filter() == 'the_excerpt' ) ) || ( ( isset( $this->options['bb_forum'] ) || isset( $this->options['vertical_bb_forum'] ) ) && current_filter() == 'bbp_template_before_single_forum' ) || ( ( isset( $this->options['bb_topic'] ) || 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['bp_group'] ) || isset( $this->options['vertical_bb_group'] ) ) ) ) {
110
  $inline_script .= 'var heateorSssSharingAjaxUrl = \''. get_admin_url() .'admin-ajax.php\', heateorSssCloseIconPath = \''. plugins_url( '../images/close.png', __FILE__ ) .'\', heateorSssPluginIconPath = \''. plugins_url( '../images/logo.png', __FILE__ ) .'\', heateorSssHorizontalSharingCountEnable = '. ( isset( $this->options['hor_enable'] ) && ( isset( $this->options['horizontal_counts'] ) || isset( $this->options['horizontal_total_shares'] ) ) ? 1 : 0 ) .', heateorSssVerticalSharingCountEnable = '. ( isset( $this->options['vertical_enable'] ) && ( isset( $this->options['vertical_counts'] ) || isset( $this->options['vertical_total_shares'] ) ) ? 1 : 0 ) .', heateorSssSharingOffset = '. ( isset( $this->options['alignment'] ) && $this->options['alignment'] != '' && isset( $this->options[$this->options['alignment'].'_offset'] ) && $this->options[$this->options['alignment'].'_offset'] != '' ? $this->options[$this->options['alignment'].'_offset'] : 0 ) . '; var heateorSssMobileStickySharingEnabled = ' . ( isset( $this->options['vertical_enable'] ) && isset( $this->options['bottom_mobile_sharing'] ) && $this->options['horizontal_screen_width'] != '' ? 1 : 0 ) . ';';
111
  $inline_script .= 'var heateorSssCopyLinkMessage = "' . htmlspecialchars( __( 'Link copied.', 'sassy-social-share' ), ENT_QUOTES ) . '";';
112
  if ( isset( $this->options['horizontal_counts'] ) && isset( $this->options['horizontal_counter_position'] ) ) {
106
  if ( $post ) {
107
  $sharing_meta = get_post_meta( $post->ID, '_heateor_sss_meta', true );
108
  if ( is_front_page() || ! isset( $sharing_meta['sharing'] ) || $sharing_meta['sharing'] != 1 || ! isset( $sharing_meta['vertical_sharing'] ) || $sharing_meta['vertical_sharing'] != 1 ) {
109
+ if ( ! isset( $this->options['js_when_needed'] ) || ( ( ( isset( $this->options['home'] ) || isset( $this->options['vertical_home'] ) ) && is_front_page() ) || ( ( isset( $this->options['category'] ) || isset($this->options['vertical_category'] ) ) && is_category() ) ||( ( isset( $this->options['archive'] ) || isset( $this->options['vertical_archive'] ) ) && is_archive() ) || ( ( isset( $this->options['post'] ) || isset( $this->options['vertical_post'] ) ) && is_single() && isset( $post->post_type ) && $post->post_type == 'post' ) || ( ( isset( $this->options['page'] ) || isset( $this->options['vertical_page'] ) ) && is_page() && isset( $post->post_type ) && $post->post_type == 'page' ) || ( ( isset( $this->options['excerpt'] ) || isset( $this->options['vertical_excerpt'] ) ) && ( is_home() || current_filter() == 'the_excerpt' ) ) || ( ( isset( $this->options['bb_forum'] ) || isset( $this->options['vertical_bb_forum'] ) ) && current_filter() == 'bbp_template_before_single_forum' ) || ( ( isset( $this->options['bb_topic'] ) || 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['bp_group'] ) || isset( $this->options['vertical_bb_group'] ) ) ) ) ) {
110
  $inline_script .= 'var heateorSssSharingAjaxUrl = \''. get_admin_url() .'admin-ajax.php\', heateorSssCloseIconPath = \''. plugins_url( '../images/close.png', __FILE__ ) .'\', heateorSssPluginIconPath = \''. plugins_url( '../images/logo.png', __FILE__ ) .'\', heateorSssHorizontalSharingCountEnable = '. ( isset( $this->options['hor_enable'] ) && ( isset( $this->options['horizontal_counts'] ) || isset( $this->options['horizontal_total_shares'] ) ) ? 1 : 0 ) .', heateorSssVerticalSharingCountEnable = '. ( isset( $this->options['vertical_enable'] ) && ( isset( $this->options['vertical_counts'] ) || isset( $this->options['vertical_total_shares'] ) ) ? 1 : 0 ) .', heateorSssSharingOffset = '. ( isset( $this->options['alignment'] ) && $this->options['alignment'] != '' && isset( $this->options[$this->options['alignment'].'_offset'] ) && $this->options[$this->options['alignment'].'_offset'] != '' ? $this->options[$this->options['alignment'].'_offset'] : 0 ) . '; var heateorSssMobileStickySharingEnabled = ' . ( isset( $this->options['vertical_enable'] ) && isset( $this->options['bottom_mobile_sharing'] ) && $this->options['horizontal_screen_width'] != '' ? 1 : 0 ) . ';';
111
  $inline_script .= 'var heateorSssCopyLinkMessage = "' . htmlspecialchars( __( 'Link copied.', 'sassy-social-share' ), ENT_QUOTES ) . '";';
112
  if ( isset( $this->options['horizontal_counts'] ) && isset( $this->options['horizontal_counter_position'] ) ) {
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 media share, share facebook, facebook social share, wordpress social share, share buttons, social share buttons, facebook like, twitter tweet, whatsapp share, line share
5
  Requires at least: 2.5.0
6
  Tested up to: 5.3
7
- Stable tag: 3.3.5
8
  License: GPLv2 or later
9
 
10
  Slickest, Simplest and Optimized Share buttons. Facebook, Twitter, Reddit, Pinterest, WhatsApp and over 100 more.
@@ -123,6 +123,10 @@ Yes, we can help you with it. Just drop an email at support[at]heateor[dot]com
123
  4. **Universal Sharing Popup**: Universal Sharing popup having all the supported sharing and bookmarking services
124
 
125
  == Changelog ==
 
 
 
 
126
  = 3.3.5 [27 November 2019] =
127
  [Improvement] Javascript is being loaded only at the webpages where social share icons are integrated
128
  [Improvement] Admin UI improvements (<a href="https://www.heateor.com/comparison-between-sassy-social-share-pro-and-premium/">Pro and Premium</a> versions now available)
@@ -851,4 +855,8 @@ Yes, we can help you with it. Just drop an email at support[at]heateor[dot]com
851
  = 3.3.5 [27 November 2019] =
852
  [Improvement] Javascript is being loaded only at the webpages where social share icons are integrated
853
  [Improvement] Admin UI improvements (<a href="https://www.heateor.com/comparison-between-sassy-social-share-pro-and-premium/">Pro and Premium</a> versions now available)
854
- [Bugfix] "Load Javascript files in footer" option was coming twice at plugin options page
 
 
 
 
4
  Tags: social share, social sharing, social media share, share facebook, facebook social share, wordpress social share, share buttons, social share buttons, facebook like, twitter tweet, whatsapp share, line share
5
  Requires at least: 2.5.0
6
  Tested up to: 5.3
7
+ Stable tag: 3.3.6
8
  License: GPLv2 or later
9
 
10
  Slickest, Simplest and Optimized Share buttons. Facebook, Twitter, Reddit, Pinterest, WhatsApp and over 100 more.
123
  4. **Universal Sharing Popup**: Universal Sharing popup having all the supported sharing and bookmarking services
124
 
125
  == Changelog ==
126
+ = 3.3.6 [28 November 2019] =
127
+ [Bugfix] Previous version was breaking social share on custom posts
128
+ [New] Added option (in Miscellaneous section) to control if Javascript should be loaded on every page or only where it's needed
129
+
130
  = 3.3.5 [27 November 2019] =
131
  [Improvement] Javascript is being loaded only at the webpages where social share icons are integrated
132
  [Improvement] Admin UI improvements (<a href="https://www.heateor.com/comparison-between-sassy-social-share-pro-and-premium/">Pro and Premium</a> versions now available)
855
  = 3.3.5 [27 November 2019] =
856
  [Improvement] Javascript is being loaded only at the webpages where social share icons are integrated
857
  [Improvement] Admin UI improvements (<a href="https://www.heateor.com/comparison-between-sassy-social-share-pro-and-premium/">Pro and Premium</a> versions now available)
858
+ [Bugfix] "Load Javascript files in footer" option was coming twice at plugin options page
859
+
860
+ = 3.3.6 [28 November 2019] =
861
+ [Bugfix] Previous version was breaking social share on custom posts
862
+ [New] Added option (in Miscellaneous section) to control if Javascript should be loaded on every page or only where it's needed
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, Reddit, Pinterest, WhatsApp and over 100 more
10
- * Version: 3.3.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', '3.3.5' );
25
  define( 'HEATEOR_SSS_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
26
 
27
  // plugin core class object
@@ -35,7 +35,7 @@ function heateor_sss_update_svg_css( $color_to_be_replaced, $css_file ) {
35
  try {
36
  $content = file( $path );
37
  if ( $content !== false ) {
38
- $handle = fopen( dirname( __FILE__ ) . '/admin/css/' . $css_file . '.css','w' );
39
  if ( $handle !== false ) {
40
  foreach ( $content as $value ) {
41
  fwrite( $handle, str_replace( '%23fff', str_replace( '#', '%23', $color_to_be_replaced ), $value ) );
7
  * Plugin Name: Sassy Social Share
8
  * Plugin URI: https://www.heateor.com
9
  * Description: Slickest, Simplest and Optimized Share buttons. Facebook, Twitter, Reddit, Pinterest, WhatsApp and over 100 more
10
+ * Version: 3.3.6
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', '3.3.6' );
25
  define( 'HEATEOR_SSS_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
26
 
27
  // plugin core class object
35
  try {
36
  $content = file( $path );
37
  if ( $content !== false ) {
38
+ $handle = fopen( dirname( __FILE__ ) . '/admin/css/' . $css_file . '.css', 'w' );
39
  if ( $handle !== false ) {
40
  foreach ( $content as $value ) {
41
  fwrite( $handle, str_replace( '%23fff', str_replace( '#', '%23', $color_to_be_replaced ), $value ) );