Simple Social Media Share Buttons – Social Sharing for Everyone - Version 2.0.17

Version Description

  • Please upgrade immediately. Releasing New features, few bugfixes and improvements.

=

Download this release

Release Info

Developer hiddenpearls
Plugin Icon 128x128 Simple Social Media Share Buttons – Social Sharing for Everyone
Version 2.0.17
Comparing to
See all releases

Code changes from version 2.0.16 to 2.0.17

assets/css/front.css CHANGED
@@ -75,6 +75,9 @@ div.ssb-button-pinterest { width: 100px; }
75
  .simplesocialbuttons button.simplesocial-print-share:after{
76
  content: "\e90c";
77
  }
 
 
 
78
  .ssb_total_counter{
79
  display: inline-block;
80
  font-weight: bold;
@@ -759,6 +762,36 @@ div[class*="simplesocialbuttons-float"].simplesocial-simple-icons.simplesocialbu
759
  .simplesocial-simple-icons button.ssb_whatsapp-icon:hover{
760
  background: #2b8e1e;
761
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
762
  .simplesocial-simple-icons button.ssb_whatsapp-icon .icon{
763
  text-indent: 0;
764
  position: absolute;
@@ -976,6 +1009,9 @@ div[class*="simplesocialbuttons-float"].simplesocialbuttons.simplesocial-simple-
976
  .simplesocialbuttons.simplesocial-sm-round button.simplesocial-print-share{
977
  color: #353535;
978
  }
 
 
 
979
 
980
  /*===== End of Gredient Button ======*/
981
  /*========================================
@@ -1057,6 +1093,9 @@ div[class*="simplesocialbuttons-float"].simplesocialbuttons.simplesocial-simple-
1057
  .simplesocialbuttons.simplesocial-simple-round button.simplesocial-print-share{
1058
  background: #353535;
1059
  }
 
 
 
1060
  .simplesocialbuttons.simplesocial-simple-round button.simplesocial-fb-share:after, .simplesocialbuttons.simplesocial-simple-round button.simplesocial-fb-share:before {
1061
  background: #354e83;
1062
  }
@@ -1085,6 +1124,9 @@ div[class*="simplesocialbuttons-float"].simplesocialbuttons.simplesocial-simple-
1085
  .simplesocialbuttons.simplesocial-simple-round button.simplesocial-msng-share:after, .simplesocialbuttons.simplesocial-simple-round button.simplesocial-msng-share:before {
1086
  background: #3c7be6;
1087
  }
 
 
 
1088
 
1089
 
1090
  /*===== End of Code For Style 2 ======*/
@@ -1204,6 +1246,14 @@ div[class*="simplesocialbuttons-float"].simplesocialbuttons.simplesocial-simple-
1204
  background: #353535;
1205
  color: #fff;
1206
  }
 
 
 
 
 
 
 
 
1207
 
1208
  /*===== End of Code for style 3 ======*/
1209
  /*===============================
@@ -1309,6 +1359,11 @@ div[class*="simplesocialbuttons-float"].simplesocialbuttons.simplesocial-simple-
1309
  box-shadow: inset 0px 0px 0px 0px #468bff, 0px 2px 0px 0px #468bff, 0px 0px 5px 0px rgba(0, 0, 0, 0.13);
1310
  color: #468bff;
1311
  }
 
 
 
 
 
1312
  .simplesocialbuttons.simplesocial-round-btm-border button.simplesocial-msng-share:hover{
1313
  -webkit-box-shadow: inset 0px -40px 0px 0px #468bff, 0px 2px 0px 0px #468bff, 0px 0px 5px 0px rgba(0, 0, 0, 0.13);
1314
  box-shadow: inset 0px -40px 0px 0px #468bff, 0px 2px 0px 0px #468bff, 0px 0px 5px 0px rgba(0, 0, 0, 0.13);
@@ -1334,6 +1389,11 @@ div[class*="simplesocialbuttons-float"].simplesocialbuttons.simplesocial-simple-
1334
  box-shadow: inset 0px -40px 0px 0px #353535, 0px 2px 0px 0px #353535, 0px 0px 5px 0px rgba(0, 0, 0, 0.13);
1335
  color: #fff;
1336
  }
 
 
 
 
 
1337
  /*===== End of style 4 ======*/
1338
 
1339
  /*========================================
@@ -1455,6 +1515,15 @@ div[class*="simplesocialbuttons-float"].simplesocialbuttons.simplesocial-simple-
1455
  -webkit-box-shadow: inset 0px -40px 0px 0px #1b1a1a, 0px 3px 0px 0px #1b1a1a;
1456
  box-shadow: inset 0px -40px 0px 0px #1b1a1a, 0px 3px 0px 0px #1b1a1a;
1457
  }
 
 
 
 
 
 
 
 
 
1458
  /*===== End of Code for style 5 ======*/
1459
 
1460
 
@@ -1592,6 +1661,19 @@ div[class*="simplesocialbuttons-float"].simplesocialbuttons.simplesocial-simple-
1592
  height: 34px;
1593
  line-height: 34px;
1594
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
1595
  /*===== End of Style 6 ======*/
1596
 
1597
  .simplesocialbuttons-inline-bottom-in button{
@@ -1802,6 +1884,9 @@ div[class*="simplesocialbuttons-float"].simplesocialbuttons.simplesocial-simple-
1802
  .simplesocialbuttons.simplesocial-round-txt button.simplesocial-gplus-share .ssb_counter{
1803
  background: #db4437;
1804
  }
 
 
 
1805
  .simplesocialbuttons.simplesocial-sm-round.ssb_counter-activate button:not(.simplesocial-viber-share):not(.simplesocial-whatsapp-share):not(.simplesocial-msng-share):not(.simplesocial-email-share):not(.simplesocial-print-share){
1806
  padding-right: 50px;
1807
  position: relative;
@@ -1859,6 +1944,9 @@ div[class*="simplesocialbuttons-float"].simplesocialbuttons.simplesocial-simple-
1859
  .simplesocialbuttons.simplesocial-simple-round button.simplesocial-gplus-share .ssb_counter{
1860
  color: #db4437;
1861
  }
 
 
 
1862
  /*.simplesocialbuttons.simplesocial-flat-button-border.ssb_counter-activate a.testaadfadf{
1863
  padding-right: 50px;
1864
  position: relative;
@@ -1938,6 +2026,9 @@ div[class*="simplesocialbuttons-float"].simplesocialbuttons.simplesocial-simple-
1938
  .simplesocialbuttons.simplesocial-flat-button-border button.simplesocial-gplus-share .ssb_counter{
1939
  color: #db4437;
1940
  }
 
 
 
1941
  .simplesocialbuttons.simplesocial-round-btm-border.ssb_counter-activate button:not(.simplesocial-viber-share):not(.simplesocial-whatsapp-share):not(.simplesocial-msng-share):not(.simplesocial-email-share):not(.simplesocial-print-share){
1942
  padding-right: 60px;
1943
  position: relative;
@@ -2017,6 +2108,12 @@ div[class*="simplesocialbuttons-float"].simplesocialbuttons.simplesocial-simple-
2017
  .simplesocialbuttons.simplesocial-round-btm-border button.simplesocial-gplus-share .ssb_counter:after{
2018
  border-right-color: #db4437;
2019
  }
 
 
 
 
 
 
2020
  .ssb_counter{
2021
  font-family: 'Helvetica', Arial, sans-serif;
2022
  }
@@ -2071,6 +2168,10 @@ div[class*="simplesocialbuttons-float"].simplesocialbuttons.simplesocial-simple-
2071
  border-color: #db4437;
2072
  background: #db4437;
2073
  }
 
 
 
 
2074
  div[class*="simplesocialbuttons-float"].simplesocialbuttons.simplesocial-round-btm-border button.simplesocial-fb-share .ssb_counter{
2075
  border-color: #43609c;
2076
  color: #ffffff;
75
  .simplesocialbuttons button.simplesocial-print-share:after{
76
  content: "\e90c";
77
  }
78
+ .simplesocialbuttons button.simplesocial-tumblr-share:after{
79
+ content: "\e90d";
80
+ }
81
  .ssb_total_counter{
82
  display: inline-block;
83
  font-weight: bold;
762
  .simplesocial-simple-icons button.ssb_whatsapp-icon:hover{
763
  background: #2b8e1e;
764
  }
765
+ .simplesocial-simple-icons button.ssb_tumblr-icon{
766
+ border-radius: 2px;
767
+ width: auto;
768
+ padding: 0 4px 0 0;
769
+ text-align: center;
770
+ text-decoration: none;
771
+ font:bold 12px/20px "Helvetica Neue", Helvetica, sans-serif;
772
+ font-weight: bold;
773
+ color: #fff;
774
+ background: #36465d;
775
+ background-size: 14px 14px;
776
+ display: inline-block;
777
+ -webkit-font-smoothing: antialiased;
778
+ height: 20px;
779
+ text-indent: 20px;
780
+ }
781
+ .simplesocial-simple-icons button.ssb_tumblr-icon:hover{
782
+ background: #36465d;
783
+ }
784
+ .simplesocial-simple-icons button.ssb_tumblr-icon .icon{
785
+ text-indent: 0;
786
+ position: absolute;
787
+ top: 4px;
788
+ left: 4px;
789
+ }
790
+ .simplesocial-simple-icons button.ssb_tumblr-icon .icon svg{
791
+ width: 9px;
792
+ fill: #fff;
793
+ height: 12px;
794
+ }
795
  .simplesocial-simple-icons button.ssb_whatsapp-icon .icon{
796
  text-indent: 0;
797
  position: absolute;
1009
  .simplesocialbuttons.simplesocial-sm-round button.simplesocial-print-share{
1010
  color: #353535;
1011
  }
1012
+ .simplesocialbuttons.simplesocial-sm-round button.simplesocial-tumblr-share{
1013
+ color: #36465d;
1014
+ }
1015
 
1016
  /*===== End of Gredient Button ======*/
1017
  /*========================================
1093
  .simplesocialbuttons.simplesocial-simple-round button.simplesocial-print-share{
1094
  background: #353535;
1095
  }
1096
+ .simplesocialbuttons.simplesocial-simple-round button.simplesocial-tumblr-share{
1097
+ background: #36465d;
1098
+ }
1099
  .simplesocialbuttons.simplesocial-simple-round button.simplesocial-fb-share:after, .simplesocialbuttons.simplesocial-simple-round button.simplesocial-fb-share:before {
1100
  background: #354e83;
1101
  }
1124
  .simplesocialbuttons.simplesocial-simple-round button.simplesocial-msng-share:after, .simplesocialbuttons.simplesocial-simple-round button.simplesocial-msng-share:before {
1125
  background: #3c7be6;
1126
  }
1127
+ .simplesocialbuttons.simplesocial-simple-round button.simplesocial-tumblr-share:after, .simplesocialbuttons.simplesocial-simple-round button.simplesocial-tumlbr-share:before {
1128
+ background: #36465d;
1129
+ }
1130
 
1131
 
1132
  /*===== End of Code For Style 2 ======*/
1246
  background: #353535;
1247
  color: #fff;
1248
  }
1249
+ .simplesocialbuttons.simplesocial-round-txt button.simplesocial-tumblr-share{
1250
+ color: #36465d;
1251
+ border-color: #36465d;
1252
+ }
1253
+ .simplesocialbuttons.simplesocial-round-txt button.simplesocial-tumblr-share:hover{
1254
+ background: #36465d;
1255
+ color: #fff;
1256
+ }
1257
 
1258
  /*===== End of Code for style 3 ======*/
1259
  /*===============================
1359
  box-shadow: inset 0px 0px 0px 0px #468bff, 0px 2px 0px 0px #468bff, 0px 0px 5px 0px rgba(0, 0, 0, 0.13);
1360
  color: #468bff;
1361
  }
1362
+ .simplesocialbuttons.simplesocial-round-btm-border button.simplesocial-tumblr-share {
1363
+ -webkit-box-shadow: inset 0px 0px 0px 0px #36465d, 0px 2px 0px 0px #36465d, 0px 0px 5px 0px rgba(0, 0, 0, 0.13);
1364
+ box-shadow: inset 0px 0px 0px 0px #36465d, 0px 2px 0px 0px #36465d, 0px 0px 5px 0px rgba(0, 0, 0, 0.13);
1365
+ color: #36465d;
1366
+ }
1367
  .simplesocialbuttons.simplesocial-round-btm-border button.simplesocial-msng-share:hover{
1368
  -webkit-box-shadow: inset 0px -40px 0px 0px #468bff, 0px 2px 0px 0px #468bff, 0px 0px 5px 0px rgba(0, 0, 0, 0.13);
1369
  box-shadow: inset 0px -40px 0px 0px #468bff, 0px 2px 0px 0px #468bff, 0px 0px 5px 0px rgba(0, 0, 0, 0.13);
1389
  box-shadow: inset 0px -40px 0px 0px #353535, 0px 2px 0px 0px #353535, 0px 0px 5px 0px rgba(0, 0, 0, 0.13);
1390
  color: #fff;
1391
  }
1392
+ .simplesocialbuttons.simplesocial-round-btm-border button.simplesocial-tumblr-share:hover{
1393
+ -webkit-box-shadow: inset 0px -40px 0px 0px #36465d, 0px 2px 0px 0px #36465d, 0px 0px 5px 0px rgba(0, 0, 0, 0.13);
1394
+ box-shadow: inset 0px -40px 0px 0px #36465d, 0px 2px 0px 0px #36465d, 0px 0px 5px 0px rgba(0, 0, 0, 0.13);
1395
+ color: #fff;
1396
+ }
1397
  /*===== End of style 4 ======*/
1398
 
1399
  /*========================================
1515
  -webkit-box-shadow: inset 0px -40px 0px 0px #1b1a1a, 0px 3px 0px 0px #1b1a1a;
1516
  box-shadow: inset 0px -40px 0px 0px #1b1a1a, 0px 3px 0px 0px #1b1a1a;
1517
  }
1518
+ .simplesocialbuttons.simplesocial-flat-button-border button.simplesocial-tumblr-share {
1519
+ background: #36465d;
1520
+ -webkit-box-shadow: inset 0px 0px 0px 0px #36465d, 0px 3px 0px 0px #36465d;
1521
+ box-shadow: inset 0px 0px 0px 0px #36465d, 0px 3px 0px 0px #253141;
1522
+ }
1523
+ .simplesocialbuttons.simplesocial-flat-button-border button.simplesocial-tumblr-share:hover {
1524
+ -webkit-box-shadow: inset 0px -40px 0px 0px #253141, 0px 3px 0px 0px #253141;
1525
+ box-shadow: inset 0px -40px 0px 0px #253141, 0px 3px 0px 0px #253141;
1526
+ }
1527
  /*===== End of Code for style 5 ======*/
1528
 
1529
 
1661
  height: 34px;
1662
  line-height: 34px;
1663
  }
1664
+ .simplesocialbuttons.simplesocial-round-icon button.simplesocial-tumblr-share{
1665
+ color: #36465d;
1666
+ border-color: #36465d;
1667
+ }
1668
+ .simplesocialbuttons.simplesocial-round-icon button.simplesocial-tumblr-share:hover{
1669
+ background: #36465d;
1670
+ color: #fff;
1671
+ }
1672
+ .simplesocialbuttons.simplesocial-tumblr-icon button:after{
1673
+ width: 34px;
1674
+ height: 34px;
1675
+ line-height: 34px;
1676
+ }
1677
  /*===== End of Style 6 ======*/
1678
 
1679
  .simplesocialbuttons-inline-bottom-in button{
1884
  .simplesocialbuttons.simplesocial-round-txt button.simplesocial-gplus-share .ssb_counter{
1885
  background: #db4437;
1886
  }
1887
+ .simplesocialbuttons.simplesocial-round-txt button.simplesocial-tumblr-share .ssb_counter{
1888
+ background: #36465d;
1889
+ }
1890
  .simplesocialbuttons.simplesocial-sm-round.ssb_counter-activate button:not(.simplesocial-viber-share):not(.simplesocial-whatsapp-share):not(.simplesocial-msng-share):not(.simplesocial-email-share):not(.simplesocial-print-share){
1891
  padding-right: 50px;
1892
  position: relative;
1944
  .simplesocialbuttons.simplesocial-simple-round button.simplesocial-gplus-share .ssb_counter{
1945
  color: #db4437;
1946
  }
1947
+ .simplesocialbuttons.simplesocial-simple-round button.simplesocial-tumblr-share .ssb_counter{
1948
+ color: #36465d;
1949
+ }
1950
  /*.simplesocialbuttons.simplesocial-flat-button-border.ssb_counter-activate a.testaadfadf{
1951
  padding-right: 50px;
1952
  position: relative;
2026
  .simplesocialbuttons.simplesocial-flat-button-border button.simplesocial-gplus-share .ssb_counter{
2027
  color: #db4437;
2028
  }
2029
+ .simplesocialbuttons.simplesocial-flat-button-border button.simplesocial-tumblr-share .ssb_counter{
2030
+ color: #36465d;
2031
+ }
2032
  .simplesocialbuttons.simplesocial-round-btm-border.ssb_counter-activate button:not(.simplesocial-viber-share):not(.simplesocial-whatsapp-share):not(.simplesocial-msng-share):not(.simplesocial-email-share):not(.simplesocial-print-share){
2033
  padding-right: 60px;
2034
  position: relative;
2108
  .simplesocialbuttons.simplesocial-round-btm-border button.simplesocial-gplus-share .ssb_counter:after{
2109
  border-right-color: #db4437;
2110
  }
2111
+ .simplesocialbuttons.simplesocial-round-btm-border button.simplesocial-tumblr-share .ssb_counter{
2112
+ background: #36465d;
2113
+ }
2114
+ .simplesocialbuttons.simplesocial-round-btm-border button.simplesocial-tumblr-share .ssb_counter:after{
2115
+ border-right-color: #36465d;
2116
+ }
2117
  .ssb_counter{
2118
  font-family: 'Helvetica', Arial, sans-serif;
2119
  }
2168
  border-color: #db4437;
2169
  background: #db4437;
2170
  }
2171
+ .simplesocialbuttons.simplesocial-round-icon button.simplesocial-tumblr-share .ssb_counter{
2172
+ border-color: #36465d;
2173
+ background: #36465d;
2174
+ }
2175
  div[class*="simplesocialbuttons-float"].simplesocialbuttons.simplesocial-round-btm-border button.simplesocial-fb-share .ssb_counter{
2176
  border-color: #43609c;
2177
  color: #ffffff;
assets/fonts/ssb-icon.eot CHANGED
Binary file
assets/fonts/ssb-icon.svg CHANGED
@@ -20,4 +20,5 @@
20
  <glyph unicode="&#xe90a;" glyph-name="instagram" d="M509.291 658.399c-126.42 0-231.168-102.942-231.168-231.168s102.942-231.168 231.168-231.168 231.168 104.748 231.168 231.168-104.748 231.168-231.168 231.168zM509.291 279.139c-81.27 0-148.092 66.822-148.092 148.092s66.822 148.092 148.092 148.092 148.092-66.822 148.092-148.092-66.822-148.092-148.092-148.092zM801.862 663.817c0-28.925-23.449-52.374-52.374-52.374s-52.374 23.449-52.374 52.374c0 28.925 23.449 52.374 52.374 52.374s52.374-23.449 52.374-52.374zM884.938 799.266c-46.956 48.762-113.778 74.046-189.63 74.046h-372.035c-157.122 0-261.869-104.748-261.869-261.869v-370.229c0-77.658 25.284-144.48 75.852-193.242 48.762-46.956 113.778-70.434 187.824-70.434h368.423c77.658 0 142.674 25.284 189.63 70.434 48.762 46.956 74.046 113.778 74.046 191.436v372.035c0 75.852-25.284 140.868-72.24 187.824zM877.714 239.407c0-55.986-19.866-101.136-52.374-131.838s-77.658-46.956-131.838-46.956h-368.423c-54.18 0-99.33 16.254-131.838 46.956-32.508 32.508-48.762 77.658-48.762 133.644v370.229c0 54.18 16.254 99.33 48.762 131.838 30.702 30.702 77.658 46.956 131.838 46.956h372.035c54.18 0 99.33-16.254 131.838-48.762 30.702-32.508 48.762-77.658 48.762-130.032v-372.035z" />
21
  <glyph unicode="&#xe90b;" glyph-name="email_icon" horiz-adv-x="1377" d="M0 848.134v-86.050l688.403-344.202 688.403 344.202v86.050c0 60.235-51.63 111.866-111.866 111.866h-1153.076c-60.235 0-111.866-43.025-111.866-111.866zM0 658.824v-610.958c0-60.235 51.63-111.866 111.866-111.866h1153.076c60.235 0 111.866 51.63 111.866 111.866v610.958l-688.403-344.202-688.403 344.202z" />
22
  <glyph unicode="&#xe90c;" glyph-name="print_icon" horiz-adv-x="1196" d="M597.956 713.343c171.912 0 343.825 0 515.737 0 29.898 0 52.321-7.474 67.27-37.372 7.474-14.949 7.474-29.898 7.474-44.847 0-127.066 0-254.131 0-381.197 0-52.321-29.898-82.219-82.219-74.745-44.847 0-89.693 0-134.54 0-7.474 0-14.949 0-14.949-14.949 0-52.321 0-104.642 0-149.489s-29.898-74.745-74.745-74.745c-7.474 0-22.423 0-29.898 0-186.861 0-366.248 0-553.109 0-22.423 0-37.372 0-59.796 7.474-22.423 14.949-37.372 37.372-37.372 67.27 0 52.321 0 104.642 0 149.489 0 14.949-7.474 14.949-14.949 14.949-44.847 0-89.693 0-127.066 0-52.321 0-74.745 29.898-74.745 74.745 0 127.066 0 254.131 0 381.197 0 29.898 14.949 59.796 44.847 67.27 14.949 7.474 22.423 7.474 37.372 7.474 186.861 7.474 358.774 7.474 530.686 7.474zM597.956 324.672c0 0 0 0 0 0-104.642 0-209.285 0-313.927 0-7.474 0-14.949 0-14.949-14.949 0-22.423 0-52.321 0-74.745 0-74.745 0-149.489 0-224.234 0-22.423 7.474-29.898 29.898-29.898 186.861 0 381.197 0 568.058 0 7.474 0 22.423 0 29.898 0 14.949 0 22.423 14.949 22.423 22.423 0 97.168 0 201.81 0 298.978 0 14.949 0 14.949-14.949 14.949-97.168 7.474-201.81 7.474-306.453 7.474zM949.255 511.533c29.898 0 52.321 22.423 52.321 52.321s-22.423 52.321-59.796 52.321c-29.898 0-52.321-22.423-52.321-52.321 7.474-29.898 29.898-52.321 59.796-52.321zM971.679 765.664c-14.949 0-29.898 0-37.372 0-231.708 0-463.416 0-695.124 0-7.474 0-14.949 0-14.949 14.949 0 37.372 0 74.745 0 112.117s29.898 74.745 67.27 74.745c7.474 0 14.949 0 22.423 0 194.336 0 388.672 0 583.007 0 44.847 0 74.745-29.898 74.745-74.745 0-37.372 0-67.27 0-104.642 0-14.949 0-22.423 0-22.423zM373.723 175.182c0 14.949 0 29.898 0 44.847 149.489 0 298.978 0 448.467 0 0-14.949 0-29.898 0-44.847-149.489 0-298.978 0-448.467 0zM545.635 78.015c-52.321 0-104.642 0-156.964 0-7.474 0-14.949 0-14.949 14.949 0 7.474 0 14.949 0 22.423s0 14.949 14.949 14.949c7.474 0 14.949 0 22.423 0 97.168 0 194.336 0 291.504 0 22.423 0 22.423 0 22.423-22.423 0-29.898 0-29.898-29.898-29.898-52.321 0-97.168 0-149.489 0 0 0 0 0 0 0z" />
 
23
  </font></defs></svg>
20
  <glyph unicode="&#xe90a;" glyph-name="instagram" d="M509.291 658.399c-126.42 0-231.168-102.942-231.168-231.168s102.942-231.168 231.168-231.168 231.168 104.748 231.168 231.168-104.748 231.168-231.168 231.168zM509.291 279.139c-81.27 0-148.092 66.822-148.092 148.092s66.822 148.092 148.092 148.092 148.092-66.822 148.092-148.092-66.822-148.092-148.092-148.092zM801.862 663.817c0-28.925-23.449-52.374-52.374-52.374s-52.374 23.449-52.374 52.374c0 28.925 23.449 52.374 52.374 52.374s52.374-23.449 52.374-52.374zM884.938 799.266c-46.956 48.762-113.778 74.046-189.63 74.046h-372.035c-157.122 0-261.869-104.748-261.869-261.869v-370.229c0-77.658 25.284-144.48 75.852-193.242 48.762-46.956 113.778-70.434 187.824-70.434h368.423c77.658 0 142.674 25.284 189.63 70.434 48.762 46.956 74.046 113.778 74.046 191.436v372.035c0 75.852-25.284 140.868-72.24 187.824zM877.714 239.407c0-55.986-19.866-101.136-52.374-131.838s-77.658-46.956-131.838-46.956h-368.423c-54.18 0-99.33 16.254-131.838 46.956-32.508 32.508-48.762 77.658-48.762 133.644v370.229c0 54.18 16.254 99.33 48.762 131.838 30.702 30.702 77.658 46.956 131.838 46.956h372.035c54.18 0 99.33-16.254 131.838-48.762 30.702-32.508 48.762-77.658 48.762-130.032v-372.035z" />
21
  <glyph unicode="&#xe90b;" glyph-name="email_icon" horiz-adv-x="1377" d="M0 848.134v-86.050l688.403-344.202 688.403 344.202v86.050c0 60.235-51.63 111.866-111.866 111.866h-1153.076c-60.235 0-111.866-43.025-111.866-111.866zM0 658.824v-610.958c0-60.235 51.63-111.866 111.866-111.866h1153.076c60.235 0 111.866 51.63 111.866 111.866v610.958l-688.403-344.202-688.403 344.202z" />
22
  <glyph unicode="&#xe90c;" glyph-name="print_icon" horiz-adv-x="1196" d="M597.956 713.343c171.912 0 343.825 0 515.737 0 29.898 0 52.321-7.474 67.27-37.372 7.474-14.949 7.474-29.898 7.474-44.847 0-127.066 0-254.131 0-381.197 0-52.321-29.898-82.219-82.219-74.745-44.847 0-89.693 0-134.54 0-7.474 0-14.949 0-14.949-14.949 0-52.321 0-104.642 0-149.489s-29.898-74.745-74.745-74.745c-7.474 0-22.423 0-29.898 0-186.861 0-366.248 0-553.109 0-22.423 0-37.372 0-59.796 7.474-22.423 14.949-37.372 37.372-37.372 67.27 0 52.321 0 104.642 0 149.489 0 14.949-7.474 14.949-14.949 14.949-44.847 0-89.693 0-127.066 0-52.321 0-74.745 29.898-74.745 74.745 0 127.066 0 254.131 0 381.197 0 29.898 14.949 59.796 44.847 67.27 14.949 7.474 22.423 7.474 37.372 7.474 186.861 7.474 358.774 7.474 530.686 7.474zM597.956 324.672c0 0 0 0 0 0-104.642 0-209.285 0-313.927 0-7.474 0-14.949 0-14.949-14.949 0-22.423 0-52.321 0-74.745 0-74.745 0-149.489 0-224.234 0-22.423 7.474-29.898 29.898-29.898 186.861 0 381.197 0 568.058 0 7.474 0 22.423 0 29.898 0 14.949 0 22.423 14.949 22.423 22.423 0 97.168 0 201.81 0 298.978 0 14.949 0 14.949-14.949 14.949-97.168 7.474-201.81 7.474-306.453 7.474zM949.255 511.533c29.898 0 52.321 22.423 52.321 52.321s-22.423 52.321-59.796 52.321c-29.898 0-52.321-22.423-52.321-52.321 7.474-29.898 29.898-52.321 59.796-52.321zM971.679 765.664c-14.949 0-29.898 0-37.372 0-231.708 0-463.416 0-695.124 0-7.474 0-14.949 0-14.949 14.949 0 37.372 0 74.745 0 112.117s29.898 74.745 67.27 74.745c7.474 0 14.949 0 22.423 0 194.336 0 388.672 0 583.007 0 44.847 0 74.745-29.898 74.745-74.745 0-37.372 0-67.27 0-104.642 0-14.949 0-22.423 0-22.423zM373.723 175.182c0 14.949 0 29.898 0 44.847 149.489 0 298.978 0 448.467 0 0-14.949 0-29.898 0-44.847-149.489 0-298.978 0-448.467 0zM545.635 78.015c-52.321 0-104.642 0-156.964 0-7.474 0-14.949 0-14.949 14.949 0 7.474 0 14.949 0 22.423s0 14.949 14.949 14.949c7.474 0 14.949 0 22.423 0 97.168 0 194.336 0 291.504 0 22.423 0 22.423 0 22.423-22.423 0-29.898 0-29.898-29.898-29.898-52.321 0-97.168 0-149.489 0 0 0 0 0 0 0z" />
23
+ <glyph unicode="&#xe90d;" glyph-name="tumblr_icon" horiz-adv-x="725" d="M253.124 960c63.281 0 120.809 0 184.090 0 0-86.292 0-166.831 0-253.124 97.798 0 189.843 0 287.64 0 0-63.281 0-126.562 0-195.596-97.798 0-189.843 0-287.64 0 0-5.753 0-11.506 0-11.506 0-92.045 0-184.090 0-276.135 0-69.034 34.517-103.551 103.551-115.056 63.281-5.753 120.809 0 172.584 28.764 5.753 0 5.753 5.753 11.506 5.753 0-5.753 0-5.753 0-11.506 0-46.022 0-86.292 0-132.315 0-5.753 0-11.506-11.506-17.258-92.045-34.517-184.090-51.775-287.64-46.022-57.528 5.753-115.056 17.258-166.831 46.022-69.034 40.27-103.551 97.798-103.551 178.337 0 120.809 0 235.865 0 356.674 0 5.753 0 11.506 0 17.258-51.775 0-103.551 0-155.326 0 0 5.753 0 5.753 0 11.506 0 40.27 0 86.292 0 126.562 0 5.753 0 11.506 11.506 11.506 17.258 5.753 40.27 11.506 57.528 17.258 92.045 34.517 149.573 103.551 172.584 201.348 0 5.753 5.753 17.258 5.753 23.011 0 17.258 5.753 28.764 5.753 34.517z" />
24
  </font></defs></svg>
assets/fonts/ssb-icon.ttf CHANGED
Binary file
assets/fonts/ssb-icon.woff CHANGED
Binary file
assets/images/tumblr.png ADDED
Binary file
assets/images/tumblr.svg ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
+ <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
4
+ width="90.8px" height="28px" viewBox="-1358.9 1973.6 90.8 28" style="enable-background:new -1358.9 1973.6 90.8 28;"
5
+ xml:space="preserve">
6
+ <style type="text/css">
7
+ .st0{fill:#35465C;}
8
+ .st1{opacity:0.15;enable-background:new ;}
9
+ .st2{fill:#FFFFFF;}
10
+ </style>
11
+ <path class="st0" d="M-1355.9,1973.6h84.8c1.7,0,3,1.5,3,3.5v21c0,2-1.3,3.5-3,3.5h-84.8c-1.7,0-3-1.5-3-3.5v-21
12
+ C-1358.9,1975.1-1357.6,1973.6-1355.9,1973.6z"/>
13
+ <path class="st1" d="M-1330.8,1973.6h1v28h-1V1973.6z"/>
14
+ <g>
15
+ <path class="st2" d="M-1316.9,1984.1h-2.9v-1h7v1h-2.9v8.5h-1.2V1984.1z"/>
16
+ <path class="st2" d="M-1306.7,1990.7c0,0.7,0,1.3,0.1,1.9h-1.1l-0.1-1.1h0c-0.3,0.6-1,1.3-2.3,1.3c-1.1,0-2.4-0.6-2.4-3v-4h1.2v3.8
17
+ c0,1.3,0.4,2.2,1.5,2.2c0.8,0,1.4-0.6,1.6-1.1c0.1-0.2,0.1-0.4,0.1-0.6v-4.2h1.2V1990.7z"/>
18
+ <path class="st2" d="M-1304.6,1987.6c0-0.7,0-1.3-0.1-1.8h1.1l0.1,1.1h0c0.4-0.6,1-1.3,2.1-1.3c0.9,0,1.6,0.6,1.9,1.4h0
19
+ c0.2-0.4,0.5-0.7,0.8-0.9c0.4-0.3,0.9-0.5,1.5-0.5c0.9,0,2.2,0.6,2.2,3v4h-1.2v-3.9c0-1.3-0.5-2.1-1.5-2.1c-0.7,0-1.3,0.5-1.5,1.1
20
+ c-0.1,0.2-0.1,0.4-0.1,0.6v4.2h-1.2v-4.1c0-1.1-0.5-1.9-1.4-1.9c-0.8,0-1.3,0.6-1.5,1.2c-0.1,0.2-0.1,0.4-0.1,0.6v4.1h-1.2V1987.6z
21
+ "/>
22
+ <path class="st2" d="M-1292.9,1992.6c0-0.5,0.1-1.2,0.1-1.8v-8.2h1.2v4.3h0c0.4-0.8,1.2-1.3,2.3-1.3c1.7,0,2.9,1.4,2.9,3.5
23
+ c0,2.4-1.5,3.7-3.1,3.7c-1,0-1.8-0.4-2.3-1.3h0l-0.1,1.1H-1292.9z M-1291.6,1989.9c0,0.2,0,0.3,0.1,0.5c0.2,0.9,1,1.5,1.9,1.5
24
+ c1.3,0,2.1-1.1,2.1-2.6c0-1.4-0.7-2.5-2-2.5c-0.8,0-1.6,0.6-1.9,1.5c0,0.1-0.1,0.3-0.1,0.5V1989.9z"/>
25
+ <path class="st2" d="M-1284.8,1982.6h1.2v10h-1.2V1982.6z"/>
26
+ <path class="st2" d="M-1281.5,1987.9c0-0.8,0-1.5-0.1-2.1h1.1l0,1.3h0.1c0.3-0.9,1.1-1.5,1.9-1.5c0.1,0,0.2,0,0.4,0v1.2
27
+ c-0.1,0-0.3,0-0.4,0c-0.9,0-1.5,0.7-1.7,1.6c0,0.2-0.1,0.4-0.1,0.6v3.6h-1.2V1987.9z"/>
28
+ </g>
29
+ <g>
30
+ <path class="st2" d="M-1346.8,1978.7c1.1,0,2.1,0,3.2,0c0,1.5,0,2.9,0,4.4c1.7,0,3.3,0,5,0c0,1.1,0,2.2,0,3.4c-1.7,0-3.3,0-5,0
31
+ c0,0.1,0,0.2,0,0.2c0,1.6,0,3.2,0,4.8c0,1.2,0.6,1.8,1.8,2c1.1,0.1,2.1,0,3-0.5c0.1,0,0.1-0.1,0.2-0.1c0,0.1,0,0.1,0,0.2
32
+ c0,0.8,0,1.5,0,2.3c0,0.1,0,0.2-0.2,0.3c-1.6,0.6-3.2,0.9-5,0.8c-1-0.1-2-0.3-2.9-0.8c-1.2-0.7-1.8-1.7-1.8-3.1c0-2.1,0-4.1,0-6.2
33
+ c0-0.1,0-0.2,0-0.3c-0.9,0-1.8,0-2.7,0c0-0.1,0-0.1,0-0.2c0-0.7,0-1.5,0-2.2c0-0.1,0-0.2,0.2-0.2c0.3-0.1,0.7-0.2,1-0.3
34
+ c1.6-0.6,2.6-1.8,3-3.5c0-0.1,0.1-0.3,0.1-0.4C-1346.8,1979-1346.8,1978.9-1346.8,1978.7z"/>
35
+ </g>
36
+ </svg>
assets/js/front.js CHANGED
@@ -28,7 +28,69 @@
28
 
29
  })(jQuery);
30
  // IIFE - Immediately Invoked Function Expression
 
 
 
 
31
  (function ($, window, document) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
32
 
33
  // Listen for the jQuery ready event on the document
34
  $(function () {
@@ -113,4 +175,3 @@
113
  // })
114
 
115
  }(window.jQuery, window, document));
116
-
28
 
29
  })(jQuery);
30
  // IIFE - Immediately Invoked Function Expression
31
+
32
+ var ssbPlugin = ssbPlugin || {};
33
+
34
+
35
  (function ($, window, document) {
36
+ 'use strict';
37
+
38
+
39
+ function absint($int) {
40
+ return parseInt($int, 10);
41
+ }
42
+
43
+
44
+ var ssbPostData = {};
45
+ ssbPlugin.fetchFacebookShares = function() {
46
+ /**
47
+ * Run all the API calls
48
+ */
49
+
50
+ $.when(
51
+ $.get('https://graph.facebook.com/?fields=og_object{likes.summary(true).limit(0)},share&id=' + ssb_post_url),
52
+ $.get('https://graph.facebook.com/?fields=og_object{likes.summary(true).limit(0)},share&id=' + ssb_alternate_post_url )
53
+ )
54
+ .then(function(a, b) {
55
+
56
+ if('undefined' !== typeof a[0].share) {
57
+ var f1 = absint(a[0].share.share_count);
58
+ var f2 = absint(a[0].share.comment_count);
59
+ if('undefined' !== typeof a[0].og_object){
60
+ var f3 = absint(a[0].og_object.likes.summary.total_count);
61
+ } else {
62
+ var f3 = 0;
63
+ }
64
+ var fShares = f1 + f2 + f3;
65
+ if(ssb_alternate_post_url) {
66
+ if (typeof b[0].share !== 'undefined') {
67
+ var f4 = absint(b[0].share.share_count);
68
+ var f5 = absint(b[0].share.comment_count);
69
+ } else {
70
+ var f4 = 0, f5 = 0;
71
+ }
72
+ if (typeof b[0].og_object !== 'undefined') {
73
+ var f6 = absint(b[0].og_object.likes.summary.total_count);
74
+ } else {
75
+ var f6 = 0
76
+ }
77
+ var fShares2 = f4 + f5 + f6;
78
+ if (fShares !== fShares2) {
79
+ fShares = fShares + fShares2;
80
+ }
81
+ }
82
+
83
+ ssbPostData = {
84
+ action: 'ssb_facebook_shares_update',
85
+ post_id: ssb_post_id,
86
+ share_counts: fShares
87
+ };
88
+
89
+ $.post(ssb_admin_ajax, ssbPostData);
90
+ }
91
+ });
92
+ }
93
+
94
 
95
  // Listen for the jQuery ready event on the document
96
  $(function () {
175
  // })
176
 
177
  }(window.jQuery, window, document));
 
classes/ssb-settings-strucutre.php CHANGED
@@ -367,7 +367,7 @@ if ( ! class_exists( 'Ssb_Settings_Structure' ) ) :
367
  <ul id="ssb_active_icons" class="items" style="min-height:35px">
368
  <?php
369
  $ssb_icons_order = array();
370
- $arrKnownButtons = array( 'googleplus', 'twitter', 'pinterest', 'fbshare', 'linkedin', 'reddit', 'whatsapp', 'viber', 'fblike', 'messenger' , 'email', 'print' );
371
  foreach ($arrKnownButtons as $button_name) {
372
  $ssb_icons_order[$button_name] = isset( $settings[$button_name] ) ? $settings[$button_name] : '' ;
373
  }
367
  <ul id="ssb_active_icons" class="items" style="min-height:35px">
368
  <?php
369
  $ssb_icons_order = array();
370
+ $arrKnownButtons = array( 'googleplus', 'twitter', 'pinterest', 'fbshare', 'linkedin', 'reddit', 'whatsapp', 'viber', 'fblike', 'messenger' , 'email', 'print', 'tumblr' );
371
  foreach ($arrKnownButtons as $button_name) {
372
  $ssb_icons_order[$button_name] = isset( $settings[$button_name] ) ? $settings[$button_name] : '' ;
373
  }
inc/utils.php CHANGED
@@ -166,17 +166,33 @@ function ssb_fetch_shares_via_curl_multi( $data, $options = array() ) {
166
  }
167
 
168
  foreach ( $stats as $social_name => $counts ) {
169
- if ( 'totalshare' == $social_name || 'viber' == $social_name || 'fblike' == $social_name || 'whatsapp' == $social_name || 'print' == $social_name || 'email' == $social_name || 'messenger' == $social_name )
170
  { continue; }
171
  $stats_counts = call_user_func( 'ssb_format_' . $social_name . '_response', $counts );
172
  $new_counts = $stats_counts + $networks[ $social_name];
173
- $stats_result[ $social_name ] = $new_counts;
 
 
 
 
 
 
 
 
 
 
 
174
  // special case if post id not exist for example short code run on widget out side the loop in archive page
175
- if( 0 !== $post_id ){
176
- update_post_meta( $post_id, 'ssb_' . $social_name . '_counts', $new_counts );
177
- }else{
178
- update_option( 'ssb_not_exist_post_'. $social_name .'_counts', $new_counts );
179
- }
 
 
 
 
 
180
 
181
  $total += $new_counts;
182
  }
166
  }
167
 
168
  foreach ( $stats as $social_name => $counts ) {
169
+ if ( 'totalshare' == $social_name || 'viber' == $social_name || 'fblike' == $social_name || 'whatsapp' == $social_name || 'print' == $social_name || 'email' == $social_name || 'messenger' == $social_name )
170
  { continue; }
171
  $stats_counts = call_user_func( 'ssb_format_' . $social_name . '_response', $counts );
172
  $new_counts = $stats_counts + $networks[ $social_name];
173
+
174
+ $old_counts = get_post_meta( $post_id, 'ssb_' . $social_name . '_counts', true );
175
+
176
+ // this will solve if new plugin install.
177
+ $old_counts = $old_counts ? $old_counts : 0;
178
+ // if old counts less than new. Return old.
179
+ if ( $new_counts > $old_counts ) {
180
+ $stats_result[ $social_name ] = $new_counts;
181
+ } else {
182
+ $stats_result[ $social_name ] = $old_counts;
183
+ }
184
+
185
  // special case if post id not exist for example short code run on widget out side the loop in archive page
186
+ if( 0 !== $post_id ) {
187
+ if ( $new_counts > $old_counts ) {
188
+ update_post_meta( $post_id, 'ssb_' . $social_name . '_counts', $new_counts );
189
+ } else {
190
+ // set new counts = old counts for total calculation.
191
+ $new_counts = $old_counts;
192
+ }
193
+ } else {
194
+ update_option( 'ssb_not_exist_post_'. $social_name .'_counts', $new_counts );
195
+ }
196
 
197
  $total += $new_counts;
198
  }
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://wpbrigade.com/
4
  Tags: Social share, Social buttons, Whatsapp, Viber, LinkedIn, facebook, google, twitter, pinterest, plus one
5
  Requires at least: 4.0
6
  Tested up to: 4.9
7
- Stable tag: 2.0.16
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -146,11 +146,14 @@ like_button_size = small(default), large
146
 
147
  == Upgrade Notice ==
148
 
149
- = 2.0.16 =
150
  * Please upgrade immediately. Releasing New features, few bugfixes and improvements.
151
 
152
 
153
  == Changelog ==
 
 
 
154
 
155
  = 2.0.16 - 2018-07-09 =
156
  * Improvement: Like button size parameter added in short code.
4
  Tags: Social share, Social buttons, Whatsapp, Viber, LinkedIn, facebook, google, twitter, pinterest, plus one
5
  Requires at least: 4.0
6
  Tested up to: 4.9
7
+ Stable tag: 2.0.17
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
146
 
147
  == Upgrade Notice ==
148
 
149
+ = 2.0.17 =
150
  * Please upgrade immediately. Releasing New features, few bugfixes and improvements.
151
 
152
 
153
  == Changelog ==
154
+ = 2.0.17 - 2018-08-25 =
155
+ * New Feature: Tumblr Button Added.
156
+ * Enhancement: Getting Facebook share count algorithm,
157
 
158
  = 2.0.16 - 2018-07-09 =
159
  * Improvement: Like button size parameter added in short code.
simple-social-buttons.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Simple Social Buttons
4
  * Plugin URI: http://www.WPBrigade.com/wordpress/plugins/simple-social-buttons/
5
  * Description: Simple Social Buttons adds an advanced set of social media sharing buttons to your WordPress sites, such as: Google +1, Facebook, WhatsApp, Viber, Twitter, Reddit, LinkedIn and Pinterest. This makes it the most <code>Flexible Social Sharing Plugin ever for Everyone.</code>
6
- * Version: 2.0.16
7
  * Author: WPBrigade
8
  * Author URI: http://www.WPBrigade.com/
9
  * Text Domain: simple-social-buttons
@@ -30,7 +30,7 @@
30
 
31
  class SimpleSocialButtonsPR {
32
  public $pluginName = 'Simple Social Buttons';
33
- public $pluginVersion = '2.0.16';
34
  public $pluginPrefix = 'ssb_pr_';
35
  public $hideCustomMetaKey = '_ssb_hide';
36
  private $fb_app_id = '891268654262273';
@@ -53,7 +53,7 @@ class SimpleSocialButtonsPR {
53
  );
54
 
55
  // defined buttons
56
- public $arrKnownButtons = array( 'googleplus', 'twitter', 'pinterest', 'fbshare', 'linkedin', 'reddit', 'whatsapp', 'viber', 'fblike', 'messenger', 'email', 'print' );
57
 
58
  // an array to store current settings, to avoid passing them between functions
59
  public $settings = array();
@@ -115,6 +115,10 @@ class SimpleSocialButtonsPR {
115
  add_shortcode( 'SSB', array( $this, 'short_code_content' ) );
116
  add_action( 'wp_head', array( $this, 'add_meta_tags' ) );
117
 
 
 
 
 
118
  }
119
 
120
  function set_selected_networks() {
@@ -208,15 +212,17 @@ class SimpleSocialButtonsPR {
208
  ob_start();
209
 
210
  ?>
211
- jQuery( document ).ready(function(){
212
  var ssb_admin_ajax = '<?php echo admin_url( 'admin-ajax.php' ); ?>';
 
 
 
 
213
  var is_ssb_used = jQuery('.simplesocialbuttons');
214
- var postID = <?php echo $info['postID']; ?> ;
215
  if( is_ssb_used ) {
216
 
217
  var data = {
218
  'action': 'ssb_fetch_data',
219
- 'postID': postID
220
  };
221
  jQuery.post(ssb_admin_ajax, data, function(data, textStatus, xhr) {
222
  var array = JSON.parse(data);
@@ -230,16 +236,39 @@ class SimpleSocialButtonsPR {
230
  }
231
  });
232
 
233
-
234
  });
235
  }
236
- });
 
 
 
 
 
 
 
237
  <?php
238
  $info['footer_output'] .= ob_get_clean();
239
 
240
  return $info;
241
  }
242
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
243
 
244
  function ssb_footer_functions() {
245
 
@@ -281,6 +310,7 @@ class SimpleSocialButtonsPR {
281
  include_once SSB_PLUGIN_DIR . '/ssb-social-counts/googleplus.php';
282
  include_once SSB_PLUGIN_DIR . '/ssb-social-counts/pinterest.php';
283
  include_once SSB_PLUGIN_DIR . '/ssb-social-counts/reddit.php';
 
284
  }
285
 
286
 
@@ -548,7 +578,7 @@ class SimpleSocialButtonsPR {
548
  continue; }
549
  $_share_links[ $social_name ] = call_user_func( 'ssb_' . $social_name . '_generate_link', $permalink );
550
  }
551
-
552
  // http url convert to https or vice versa
553
  $_alt_share_links = $this->http_or_https_link_generate( $permalink );
554
 
@@ -808,6 +838,34 @@ class SimpleSocialButtonsPR {
808
  $arrButtonsCode[] = '<button onclick="javascript:window.print();return false;" class="simplesocial-print-share" ><span class="simplesocialtxt">Print</span></button>';
809
  }
810
  break;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
811
  }
812
  }
813
 
@@ -1395,6 +1453,34 @@ class SimpleSocialButtonsPR {
1395
  $arrButtonsCode[] = '<button onclick="javascript:window.print();return false;" class="simplesocial-print-share" ><span class="simplesocialtxt">Print</span></button>';
1396
  }
1397
  break;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1398
  }
1399
  }
1400
 
3
  * Plugin Name: Simple Social Buttons
4
  * Plugin URI: http://www.WPBrigade.com/wordpress/plugins/simple-social-buttons/
5
  * Description: Simple Social Buttons adds an advanced set of social media sharing buttons to your WordPress sites, such as: Google +1, Facebook, WhatsApp, Viber, Twitter, Reddit, LinkedIn and Pinterest. This makes it the most <code>Flexible Social Sharing Plugin ever for Everyone.</code>
6
+ * Version: 2.0.17
7
  * Author: WPBrigade
8
  * Author URI: http://www.WPBrigade.com/
9
  * Text Domain: simple-social-buttons
30
 
31
  class SimpleSocialButtonsPR {
32
  public $pluginName = 'Simple Social Buttons';
33
+ public $pluginVersion = '2.0.17';
34
  public $pluginPrefix = 'ssb_pr_';
35
  public $hideCustomMetaKey = '_ssb_hide';
36
  private $fb_app_id = '891268654262273';
53
  );
54
 
55
  // defined buttons
56
+ public $arrKnownButtons = array( 'googleplus', 'twitter', 'pinterest', 'fbshare', 'linkedin', 'reddit', 'whatsapp', 'viber', 'fblike', 'messenger', 'email', 'print', 'tumblr' );
57
 
58
  // an array to store current settings, to avoid passing them between functions
59
  public $settings = array();
115
  add_shortcode( 'SSB', array( $this, 'short_code_content' ) );
116
  add_action( 'wp_head', array( $this, 'add_meta_tags' ) );
117
 
118
+
119
+ add_action( 'wp_ajax_ssb_facebook_shares_update', array( $this, 'facebook_shares_update' ) );
120
+ add_action( 'wp_ajax_nopriv_ssb_facebook_shares_update', array( $this, 'facebook_shares_update' ) );
121
+
122
  }
123
 
124
  function set_selected_networks() {
212
  ob_start();
213
 
214
  ?>
 
215
  var ssb_admin_ajax = '<?php echo admin_url( 'admin-ajax.php' ); ?>';
216
+ var ssb_post_id = <?php echo $info['postID']; ?> ;
217
+ var ssb_post_url = '<?php echo get_permalink( $info['postID'] ); ?>';
218
+ var ssb_alternate_post_url = '<?php echo $this->http_or_https_resolve_url( get_permalink( $info['postID'] ) ); ?>';
219
+ jQuery( document ).ready(function(){
220
  var is_ssb_used = jQuery('.simplesocialbuttons');
 
221
  if( is_ssb_used ) {
222
 
223
  var data = {
224
  'action': 'ssb_fetch_data',
225
+ 'postID': ssb_post_id
226
  };
227
  jQuery.post(ssb_admin_ajax, data, function(data, textStatus, xhr) {
228
  var array = JSON.parse(data);
236
  }
237
  });
238
 
 
239
  });
240
  }
241
+ })
242
+
243
+ document.addEventListener("DOMContentLoaded", function() {
244
+ var if_ssb_exist = document.getElementsByClassName( "simplesocialbuttons" ).length > 0;
245
+ if (if_ssb_exist) {
246
+ ssbPlugin.fetchFacebookShares();
247
+ }
248
+ });;
249
  <?php
250
  $info['footer_output'] .= ob_get_clean();
251
 
252
  return $info;
253
  }
254
 
255
+ // Update facebook by sending the ajax.
256
+ public function facebook_shares_update() {
257
+
258
+ $activity = $_POST['share_counts'];
259
+ $post_id = $_POST['post_id'];
260
+
261
+ $previous_activity = get_post_meta( $post_id, 'ssb_fbshare_counts', true );
262
+
263
+ if ( $activity > $previous_activity ) :
264
+ update_post_meta( $post_id, 'ssb_fbshare_counts', $activity );
265
+ endif;
266
+
267
+ echo 'Logged ' . $activity . ' shares.';
268
+
269
+ wp_die();
270
+ }
271
+
272
 
273
  function ssb_footer_functions() {
274
 
310
  include_once SSB_PLUGIN_DIR . '/ssb-social-counts/googleplus.php';
311
  include_once SSB_PLUGIN_DIR . '/ssb-social-counts/pinterest.php';
312
  include_once SSB_PLUGIN_DIR . '/ssb-social-counts/reddit.php';
313
+ include_once SSB_PLUGIN_DIR . '/ssb-social-counts/tumblr.php';
314
  }
315
 
316
 
578
  continue; }
579
  $_share_links[ $social_name ] = call_user_func( 'ssb_' . $social_name . '_generate_link', $permalink );
580
  }
581
+
582
  // http url convert to https or vice versa
583
  $_alt_share_links = $this->http_or_https_link_generate( $permalink );
584
 
838
  $arrButtonsCode[] = '<button onclick="javascript:window.print();return false;" class="simplesocial-print-share" ><span class="simplesocialtxt">Print</span></button>';
839
  }
840
  break;
841
+ case 'tumblr':
842
+
843
+ $tumblr_score = $share_counts['tumblr'] ? $share_counts['tumblr'] : 0;
844
+
845
+ $link = urlencode( $permalink );
846
+ $tumblr_share_url = "http://tumblr.com/widgets/share/tool?canonicalUrl=$link";
847
+ if ( $this->selected_theme == 'simple-icons' ) {
848
+ $_html = '<button class="ssb_tumblr-icon" data-href="' . $tumblr_share_url . '" onclick="javascript:window.open(this.dataset.href, \'\', \'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600\');return false;">
849
+ <span class="icon"> <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
850
+ width="12.6px" height="17.8px" viewBox="-299.1 388.3 12.6 17.8" style="enable-background:new -299.1 388.3 12.6 17.8;" xml:space="preserve"><g> <path fill="#FFFFFF" d="M-294.7,388.3c1.1,0,2.1,0,3.2,0c0,1.5,0,2.9,0,4.4c1.7,0,3.3,0,5,0c0,1.1,0,2.2,0,3.4c-1.7,0-3.3,0-5,0 c0,0.1,0,0.2,0,0.2c0,1.6,0,3.2,0,4.8c0,1.2,0.6,1.8,1.8,2c1.1,0.1,2.1,0,3-0.5c0.1,0,0.1-0.1,0.2-0.1c0,0.1,0,0.1,0,0.2 c0,0.8,0,1.5,0,2.3c0,0.1,0,0.2-0.2,0.3c-1.6,0.6-3.2,0.9-5,0.8c-1-0.1-2-0.3-2.9-0.8c-1.2-0.7-1.8-1.7-1.8-3.1c0-2.1,0-4.1,0-6.2 c0-0.1,0-0.2,0-0.3c-0.9,0-1.8,0-2.7,0c0-0.1,0-0.1,0-0.2c0-0.7,0-1.5,0-2.2c0-0.1,0-0.2,0.2-0.2c0.3-0.1,0.7-0.2,1-0.3 c1.6-0.6,2.6-1.8,3-3.5c0-0.1,0.1-0.3,0.1-0.4C-294.8,388.6-294.7,388.4-294.7,388.3z"/> </g> </svg> </span>
851
+ <span class="simplesocialtxt">tumblr </span>';
852
+ if ( $show_count ) {
853
+ $_html .= '<span class="ssb_counter">' . $tumblr_score . '</span>';
854
+ }
855
+
856
+ $_html .= '</button>';
857
+ } else {
858
+ $_html = '<button class="simplesocial-tumblr-share" data-href="' . $tumblr_share_url . '" onclick="javascript:window.open(this.dataset.href, \'\', \'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600\');return false;" ><span class="simplesocialtxt">Tumblr</span> ';
859
+
860
+ if ( $show_count ) {
861
+ $_html .= '<span class="ssb_counter ssb_tumblr_counter">' . $tumblr_score . '</span>';
862
+ }
863
+ $_html .= '</button>';
864
+
865
+ }
866
+
867
+ $arrButtonsCode[] = $_html;
868
+ break;
869
  }
870
  }
871
 
1453
  $arrButtonsCode[] = '<button onclick="javascript:window.print();return false;" class="simplesocial-print-share" ><span class="simplesocialtxt">Print</span></button>';
1454
  }
1455
  break;
1456
+ case 'tumblr':
1457
+
1458
+ $tumblr_score = $share_counts['tumblr'] ? $share_counts['tumblr'] : 0;
1459
+
1460
+ $link = urlencode( $permalink );
1461
+ $tumblr_share_url = "http://tumblr.com/widgets/share/tool?canonicalUrl=$link";
1462
+ if ( $this->selected_theme == 'simple-icons' ) {
1463
+ $_html ='<button class="ssb_tumblr-icon" data-href="' . $tumblr_share_url . '" onclick="javascript:window.open(this.dataset.href, \'\', \'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600\');return false;">
1464
+ <span class="icon"> <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
1465
+ width="12.6px" height="17.8px" viewBox="-299.1 388.3 12.6 17.8" style="enable-background:new -299.1 388.3 12.6 17.8;" xml:space="preserve"><g> <path fill="#FFFFFF" d="M-294.7,388.3c1.1,0,2.1,0,3.2,0c0,1.5,0,2.9,0,4.4c1.7,0,3.3,0,5,0c0,1.1,0,2.2,0,3.4c-1.7,0-3.3,0-5,0 c0,0.1,0,0.2,0,0.2c0,1.6,0,3.2,0,4.8c0,1.2,0.6,1.8,1.8,2c1.1,0.1,2.1,0,3-0.5c0.1,0,0.1-0.1,0.2-0.1c0,0.1,0,0.1,0,0.2 c0,0.8,0,1.5,0,2.3c0,0.1,0,0.2-0.2,0.3c-1.6,0.6-3.2,0.9-5,0.8c-1-0.1-2-0.3-2.9-0.8c-1.2-0.7-1.8-1.7-1.8-3.1c0-2.1,0-4.1,0-6.2 c0-0.1,0-0.2,0-0.3c-0.9,0-1.8,0-2.7,0c0-0.1,0-0.1,0-0.2c0-0.7,0-1.5,0-2.2c0-0.1,0-0.2,0.2-0.2c0.3-0.1,0.7-0.2,1-0.3 c1.6-0.6,2.6-1.8,3-3.5c0-0.1,0.1-0.3,0.1-0.4C-294.8,388.6-294.7,388.4-294.7,388.3z"/> </g> </svg> </span>
1466
+ <span class="simplesocialtxt">tumblr </span>';
1467
+ if ( $show_count ) {
1468
+ $_html .= '<span class="ssb_counter">' . $tumblr_score . '</span>';
1469
+ }
1470
+
1471
+ $_html .= '</button>';
1472
+ } else {
1473
+ $_html = '<button class="simplesocial-tumblr-share" data-href="' . $tumblr_share_url . '" onclick="javascript:window.open(this.dataset.href, \'\', \'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600\');return false;" ><span class="simplesocialtxt">Tumblr</span> ';
1474
+
1475
+ if ( $show_count ) {
1476
+ $_html .= '<span class="ssb_counter ssb_tumblr_counter">' . $tumblr_score . '</span>';
1477
+ }
1478
+ $_html .= '</button>';
1479
+
1480
+ }
1481
+
1482
+ $arrButtonsCode[] = $_html;
1483
+ break;
1484
  }
1485
  }
1486
 
ssb-social-counts/tumblr.php ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ function ssb_tumblr_generate_link( $url ) {
4
+ $request_url = 'https://api.tumblr.com/v2/share/stats?url=' . $url;
5
+ return $request_url;
6
+ }
7
+
8
+
9
+ function ssb_format_tumblr_response( $response ) {
10
+
11
+ $counts = 0;
12
+ $response = json_decode( $response, true );
13
+ // Check is valid api response
14
+ if ( $response['meta']['status'] == 200 ) {
15
+ $counts = $response['response']['note_count'];
16
+ }
17
+
18
+ return $counts;
19
+ }