Version Description
- Relaunched with a whole set of NEW FEATURES and Improvement. Please upgrade immediately and provide your feedback. highly recommended. Apologies in advance, if anything breaks!
=
Download this release
Release Info
Developer | hiddenpearls |
Plugin | Simple Social Media Share Buttons – Social Sharing for Everyone |
Version | 2.0.11 |
Comparing to | |
See all releases |
Code changes from version 2.0.10 to 2.0.11
- assets/css/front.css +165 -17
- assets/fonts/ssb-icon.eot +0 -0
- assets/fonts/ssb-icon.svg +3 -0
- assets/fonts/ssb-icon.ttf +0 -0
- assets/fonts/ssb-icon.woff +0 -0
- assets/images/email.svg +24 -0
- assets/images/print.svg +38 -0
- assets/js/admin.js +23 -2
- classes/ssb-logs.php +7 -1
- classes/ssb-settings-strucutre.php +1 -1
- classes/ssb-widget.php +54 -0
- inc/custom-css.php +2 -2
- inc/ssb-widget-fields.php +19 -0
- inc/ssb-widget-front.php +5 -2
- readme.txt +13 -7
- simple-social-buttons.php +102 -11
- ssb-social-counts/facebook.php +1 -1
assets/css/front.css
CHANGED
@@ -69,6 +69,12 @@ div.ssb-button-pinterest { width: 100px; }
|
|
69 |
.simplesocialbuttons button.simplesocial-msng-share:after{
|
70 |
content: "\e908";
|
71 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
72 |
.ssb_total_counter{
|
73 |
display: inline-block;
|
74 |
font-weight: bold;
|
@@ -78,6 +84,67 @@ div.ssb-button-pinterest { width: 100px; }
|
|
78 |
color: #000;
|
79 |
text-align: center;
|
80 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
81 |
.simplesocialbuttons_inline .ssb_total_counter,.simplesocialbuttons-flyin .simplesocialbuttons .ssb_total_counter,.simplesocialbuttons-popup .simplesocialbuttons .ssb_total_counter,.ssb_social_media_wrapper .simplesocialbuttons .ssb_total_counter{
|
82 |
display: inline-block;
|
83 |
top: -4px;
|
@@ -142,7 +209,7 @@ transition: all 0.3s ease-in-out;
|
|
142 |
float: right;
|
143 |
}
|
144 |
div[class*="simplesocialbuttons-float"].simplesocial-simple-icons.ssb_counter-activate{
|
145 |
-
width:
|
146 |
}
|
147 |
.simplesocial-simple-icons.simplesocialbuttons button:after{
|
148 |
display: none;
|
@@ -896,7 +963,12 @@ div[class*="simplesocialbuttons-float"].simplesocialbuttons.simplesocial-simple-
|
|
896 |
.simplesocialbuttons.simplesocial-sm-round button.simplesocial-msng-share{
|
897 |
color: #468bff;
|
898 |
}
|
899 |
-
|
|
|
|
|
|
|
|
|
|
|
900 |
|
901 |
/*===== End of Gredient Button ======*/
|
902 |
/*========================================
|
@@ -972,7 +1044,12 @@ div[class*="simplesocialbuttons-float"].simplesocialbuttons.simplesocial-simple-
|
|
972 |
.simplesocialbuttons.simplesocial-simple-round button.simplesocial-msng-share{
|
973 |
background: #468bff;
|
974 |
}
|
975 |
-
|
|
|
|
|
|
|
|
|
|
|
976 |
.simplesocialbuttons.simplesocial-simple-round button.simplesocial-fb-share:after, .simplesocialbuttons.simplesocial-simple-round button.simplesocial-fb-share:before {
|
977 |
background: #354e83;
|
978 |
}
|
@@ -1104,6 +1181,22 @@ div[class*="simplesocialbuttons-float"].simplesocialbuttons.simplesocial-simple-
|
|
1104 |
background: #468bff;
|
1105 |
color: #fff;
|
1106 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1107 |
|
1108 |
/*===== End of Code for style 3 ======*/
|
1109 |
/*===============================
|
@@ -1214,6 +1307,26 @@ div[class*="simplesocialbuttons-float"].simplesocialbuttons.simplesocial-simple-
|
|
1214 |
box-shadow: inset 0px -40px 0px 0px #468bff, 0px 2px 0px 0px #468bff, 0px 0px 5px 0px rgba(0, 0, 0, 0.13);
|
1215 |
color: #fff;
|
1216 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1217 |
/*===== End of style 4 ======*/
|
1218 |
|
1219 |
/*========================================
|
@@ -1317,8 +1430,24 @@ div[class*="simplesocialbuttons-float"].simplesocialbuttons.simplesocial-simple-
|
|
1317 |
-webkit-box-shadow: inset 0px -40px 0px 0px #26519e, 0px 3px 0px 0px #26519e;
|
1318 |
box-shadow: inset 0px -40px 0px 0px #26519e, 0px 3px 0px 0px #26519e;
|
1319 |
}
|
1320 |
-
|
1321 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1322 |
/*===== End of Code for style 5 ======*/
|
1323 |
|
1324 |
|
@@ -1426,6 +1555,14 @@ div[class*="simplesocialbuttons-float"].simplesocialbuttons.simplesocial-simple-
|
|
1426 |
background: #db4437;
|
1427 |
color: #fff;
|
1428 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1429 |
.simplesocialbuttons.simplesocial-round-icon button:after{
|
1430 |
width: 34px;
|
1431 |
height: 34px;
|
@@ -1435,14 +1572,13 @@ div[class*="simplesocialbuttons-float"].simplesocialbuttons.simplesocial-simple-
|
|
1435 |
color: #468bff;
|
1436 |
border-color: #468bff;
|
1437 |
}
|
1438 |
-
.simplesocialbuttons.simplesocial-round-icon button.simplesocial-
|
1439 |
-
|
1440 |
-
color: #
|
1441 |
}
|
1442 |
-
.simplesocialbuttons.simplesocial-round-icon button:
|
1443 |
-
|
1444 |
-
|
1445 |
-
line-height: 34px;
|
1446 |
}
|
1447 |
|
1448 |
/*===== End of Style 6 ======*/
|
@@ -1588,7 +1724,9 @@ div[class*="simplesocialbuttons-float"].simplesocialbuttons.simplesocial-simple-
|
|
1588 |
.simplesocialbuttons.simplesocial-simple-round button.simplesocial-viber-share:not(:hover):before,
|
1589 |
.simplesocialbuttons.simplesocial-simple-round button.simplesocial-reddit-share:not(:hover):before,
|
1590 |
.simplesocialbuttons.simplesocial-simple-round button.simplesocial-linkedin-share:not(:hover):before,
|
1591 |
-
.simplesocialbuttons.simplesocial-simple-round button.simplesocial-pinterest-share:not(:hover):before
|
|
|
|
|
1592 |
background: rgba(0,0,0, .2);
|
1593 |
width: 36px;
|
1594 |
}
|
@@ -1653,7 +1791,7 @@ div[class*="simplesocialbuttons-float"].simplesocialbuttons.simplesocial-simple-
|
|
1653 |
.simplesocialbuttons.simplesocial-round-txt button.simplesocial-gplus-share .ssb_counter{
|
1654 |
background: #db4437;
|
1655 |
}
|
1656 |
-
.simplesocialbuttons.simplesocial-sm-round.ssb_counter-activate button:not(.simplesocial-viber-share):not(.simplesocial-whatsapp-share):not(.simplesocial-msng-share){
|
1657 |
padding-right: 50px;
|
1658 |
position: relative;
|
1659 |
}
|
@@ -1671,7 +1809,7 @@ div[class*="simplesocialbuttons-float"].simplesocialbuttons.simplesocial-simple-
|
|
1671 |
border-left: 1px solid #dedede;
|
1672 |
border-radius: 0 3px 3px 0;
|
1673 |
}
|
1674 |
-
.simplesocialbuttons.simplesocial-simple-round.ssb_counter-activate button:not(.simplesocial-viber-share):not(.simplesocial-whatsapp-share):not(.simplesocial-msng-share){
|
1675 |
padding-right: 50px;
|
1676 |
position: relative;
|
1677 |
}
|
@@ -1750,7 +1888,7 @@ div[class*="simplesocialbuttons-float"].simplesocialbuttons.simplesocial-simple-
|
|
1750 |
.simplesocialbuttons.simplesocial-flat-button-border button.simplesocial-gplus-share .ssb_counter{
|
1751 |
color: #db4437;
|
1752 |
}
|
1753 |
-
.simplesocialbuttons.simplesocial-flat-button-border button:not(.simplesocial-whatsapp-share):not(.simplesocial-viber-share):not(.simplesocial-msng-share){
|
1754 |
padding-right: 50px;
|
1755 |
position: relative;
|
1756 |
}
|
@@ -1789,7 +1927,7 @@ div[class*="simplesocialbuttons-float"].simplesocialbuttons.simplesocial-simple-
|
|
1789 |
.simplesocialbuttons.simplesocial-flat-button-border button.simplesocial-gplus-share .ssb_counter{
|
1790 |
color: #db4437;
|
1791 |
}
|
1792 |
-
.simplesocialbuttons.simplesocial-round-btm-border.ssb_counter-activate button:not(.simplesocial-viber-share):not(.simplesocial-whatsapp-share):not(.simplesocial-msng-share){
|
1793 |
padding-right: 60px;
|
1794 |
position: relative;
|
1795 |
}
|
@@ -2561,6 +2699,9 @@ div[class*="simplesocialbuttons-float"].simplesocial-simple-round button[class*
|
|
2561 |
.ssb_followers a.ssb_button.simplesocial-yt-follow:after{
|
2562 |
content: "\e909";
|
2563 |
}
|
|
|
|
|
|
|
2564 |
.ssb_followers a.ssb_button:after {
|
2565 |
font-family: 'ssb-icon' !important;
|
2566 |
speak: none;
|
@@ -2666,6 +2807,9 @@ div[class*="simplesocialbuttons-float"].simplesocial-simple-round button[class*
|
|
2666 |
.ssb_followers.simplesocial-simple-round a.ssb_button.simplesocial-yt-follow{
|
2667 |
background: #bb0000;
|
2668 |
}
|
|
|
|
|
|
|
2669 |
.ssb_followers.simplesocial-simple-round a.ssb_button.simplesocial-yt-follow:after, .ssb_followers.simplesocial-simple-round a.ssb_button.simplesocial-yt-follow:before {
|
2670 |
background: #790606;
|
2671 |
}
|
@@ -2694,6 +2838,10 @@ div[class*="simplesocialbuttons-float"].simplesocial-simple-round button[class*
|
|
2694 |
.ssb_followers.simplesocial-simple-round a.ssb_button.simplesocial-pinterest-follow:after, .ssb_followers.simplesocial-simple-round a.ssb_button.simplesocial-pinterest-follow:before {
|
2695 |
background: #af040a;
|
2696 |
}
|
|
|
|
|
|
|
|
|
2697 |
.ssb_followers.simplesocial-simple-round a.ssb_button span.widget_counter{
|
2698 |
position: absolute;
|
2699 |
right: 5px;
|
69 |
.simplesocialbuttons button.simplesocial-msng-share:after{
|
70 |
content: "\e908";
|
71 |
}
|
72 |
+
.simplesocialbuttons button.simplesocial-email-share:after{
|
73 |
+
content: "\e90b";
|
74 |
+
}
|
75 |
+
.simplesocialbuttons button.simplesocial-print-share:after{
|
76 |
+
content: "\e90c";
|
77 |
+
}
|
78 |
.ssb_total_counter{
|
79 |
display: inline-block;
|
80 |
font-weight: bold;
|
84 |
color: #000;
|
85 |
text-align: center;
|
86 |
}
|
87 |
+
.simplesocial-simple-icons .ssb_email-icon{
|
88 |
+
border-radius: 2px;
|
89 |
+
width: auto;
|
90 |
+
padding: 0 4px 0 0;
|
91 |
+
text-align: center;
|
92 |
+
text-decoration: none;
|
93 |
+
font:bold 11px/20px "Helvetica Neue", Helvetica, sans-serif;
|
94 |
+
font-weight: bold;
|
95 |
+
color: #fff;
|
96 |
+
background: #878787;
|
97 |
+
background-size: 14px 14px;
|
98 |
+
display: inline-block;
|
99 |
+
-webkit-font-smoothing: antialiased;
|
100 |
+
height: 20px;
|
101 |
+
text-indent: 20px;
|
102 |
+
}
|
103 |
+
.simplesocial-simple-icons .ssb_email-icon:hover{
|
104 |
+
background: #717070;
|
105 |
+
}
|
106 |
+
.simplesocial-simple-icons .ssb_email-icon .icon{
|
107 |
+
text-indent: 0;
|
108 |
+
position: absolute;
|
109 |
+
top: 3px;
|
110 |
+
left: 3px;
|
111 |
+
}
|
112 |
+
.simplesocial-simple-icons .ssb_email-icon .icon svg{
|
113 |
+
width: 14px;
|
114 |
+
fill: #fff;
|
115 |
+
height: 14px;
|
116 |
+
}
|
117 |
+
.simplesocial-simple-icons .ssb_print-icon{
|
118 |
+
border-radius: 2px;
|
119 |
+
width: auto;
|
120 |
+
padding: 0 4px 0 0;
|
121 |
+
text-align: center;
|
122 |
+
text-decoration: none;
|
123 |
+
font:bold 11px/20px "Helvetica Neue", Helvetica, sans-serif;
|
124 |
+
font-weight: bold;
|
125 |
+
color: #fff;
|
126 |
+
background: #353535;
|
127 |
+
background-size: 14px 14px;
|
128 |
+
display: inline-block;
|
129 |
+
-webkit-font-smoothing: antialiased;
|
130 |
+
height: 20px;
|
131 |
+
text-indent: 20px;
|
132 |
+
}
|
133 |
+
.simplesocial-simple-icons .ssb_print-icon:hover{
|
134 |
+
background: #1b1a1a;
|
135 |
+
}
|
136 |
+
.simplesocial-simple-icons .ssb_print-icon .icon{
|
137 |
+
text-indent: 0;
|
138 |
+
position: absolute;
|
139 |
+
top: 3px;
|
140 |
+
left: 3px;
|
141 |
+
}
|
142 |
+
.simplesocial-simple-icons .ssb_print-icon .icon svg{
|
143 |
+
width: 14px;
|
144 |
+
fill: #fff;
|
145 |
+
height: 14px;
|
146 |
+
}
|
147 |
+
|
148 |
.simplesocialbuttons_inline .ssb_total_counter,.simplesocialbuttons-flyin .simplesocialbuttons .ssb_total_counter,.simplesocialbuttons-popup .simplesocialbuttons .ssb_total_counter,.ssb_social_media_wrapper .simplesocialbuttons .ssb_total_counter{
|
149 |
display: inline-block;
|
150 |
top: -4px;
|
209 |
float: right;
|
210 |
}
|
211 |
div[class*="simplesocialbuttons-float"].simplesocial-simple-icons.ssb_counter-activate{
|
212 |
+
width: 116px;
|
213 |
}
|
214 |
.simplesocial-simple-icons.simplesocialbuttons button:after{
|
215 |
display: none;
|
963 |
.simplesocialbuttons.simplesocial-sm-round button.simplesocial-msng-share{
|
964 |
color: #468bff;
|
965 |
}
|
966 |
+
.simplesocialbuttons.simplesocial-sm-round button.simplesocial-email-share{
|
967 |
+
color: #878787;
|
968 |
+
}
|
969 |
+
.simplesocialbuttons.simplesocial-sm-round button.simplesocial-print-share{
|
970 |
+
color: #353535;
|
971 |
+
}
|
972 |
|
973 |
/*===== End of Gredient Button ======*/
|
974 |
/*========================================
|
1044 |
.simplesocialbuttons.simplesocial-simple-round button.simplesocial-msng-share{
|
1045 |
background: #468bff;
|
1046 |
}
|
1047 |
+
.simplesocialbuttons.simplesocial-simple-round button.simplesocial-email-share{
|
1048 |
+
background: #878787;
|
1049 |
+
}
|
1050 |
+
.simplesocialbuttons.simplesocial-simple-round button.simplesocial-print-share{
|
1051 |
+
background: #353535;
|
1052 |
+
}
|
1053 |
.simplesocialbuttons.simplesocial-simple-round button.simplesocial-fb-share:after, .simplesocialbuttons.simplesocial-simple-round button.simplesocial-fb-share:before {
|
1054 |
background: #354e83;
|
1055 |
}
|
1181 |
background: #468bff;
|
1182 |
color: #fff;
|
1183 |
}
|
1184 |
+
.simplesocialbuttons.simplesocial-round-txt button.simplesocial-email-share{
|
1185 |
+
color: #717070;
|
1186 |
+
border-color: #717070;
|
1187 |
+
}
|
1188 |
+
.simplesocialbuttons.simplesocial-round-txt button.simplesocial-email-share:hover{
|
1189 |
+
background: #717070;
|
1190 |
+
color: #fff;
|
1191 |
+
}
|
1192 |
+
.simplesocialbuttons.simplesocial-round-txt button.simplesocial-print-share{
|
1193 |
+
color: #353535;
|
1194 |
+
border-color: #353535;
|
1195 |
+
}
|
1196 |
+
.simplesocialbuttons.simplesocial-round-txt button.simplesocial-print-share:hover{
|
1197 |
+
background: #353535;
|
1198 |
+
color: #fff;
|
1199 |
+
}
|
1200 |
|
1201 |
/*===== End of Code for style 3 ======*/
|
1202 |
/*===============================
|
1307 |
box-shadow: inset 0px -40px 0px 0px #468bff, 0px 2px 0px 0px #468bff, 0px 0px 5px 0px rgba(0, 0, 0, 0.13);
|
1308 |
color: #fff;
|
1309 |
}
|
1310 |
+
.simplesocialbuttons.simplesocial-round-btm-border button.simplesocial-email-share {
|
1311 |
+
-webkit-box-shadow: inset 0px 0px 0px 0px #717070, 0px 2px 0px 0px #717070, 0px 0px 5px 0px rgba(0, 0, 0, 0.13);
|
1312 |
+
box-shadow: inset 0px 0px 0px 0px #717070, 0px 2px 0px 0px #717070, 0px 0px 5px 0px rgba(0, 0, 0, 0.13);
|
1313 |
+
color: #717070;
|
1314 |
+
}
|
1315 |
+
.simplesocialbuttons.simplesocial-round-btm-border button.simplesocial-email-share:hover{
|
1316 |
+
-webkit-box-shadow: inset 0px -40px 0px 0px #717070, 0px 2px 0px 0px #717070, 0px 0px 5px 0px rgba(0, 0, 0, 0.13);
|
1317 |
+
box-shadow: inset 0px -40px 0px 0px #717070, 0px 2px 0px 0px #717070, 0px 0px 5px 0px rgba(0, 0, 0, 0.13);
|
1318 |
+
color: #fff;
|
1319 |
+
}
|
1320 |
+
.simplesocialbuttons.simplesocial-round-btm-border button.simplesocial-print-share {
|
1321 |
+
-webkit-box-shadow: inset 0px 0px 0px 0px #353535, 0px 2px 0px 0px #353535, 0px 0px 5px 0px rgba(0, 0, 0, 0.13);
|
1322 |
+
box-shadow: inset 0px 0px 0px 0px #353535, 0px 2px 0px 0px #353535, 0px 0px 5px 0px rgba(0, 0, 0, 0.13);
|
1323 |
+
color: #717070;
|
1324 |
+
}
|
1325 |
+
.simplesocialbuttons.simplesocial-round-btm-border button.simplesocial-print-share:hover{
|
1326 |
+
-webkit-box-shadow: inset 0px -40px 0px 0px #353535, 0px 2px 0px 0px #353535, 0px 0px 5px 0px rgba(0, 0, 0, 0.13);
|
1327 |
+
box-shadow: inset 0px -40px 0px 0px #353535, 0px 2px 0px 0px #353535, 0px 0px 5px 0px rgba(0, 0, 0, 0.13);
|
1328 |
+
color: #fff;
|
1329 |
+
}
|
1330 |
/*===== End of style 4 ======*/
|
1331 |
|
1332 |
/*========================================
|
1430 |
-webkit-box-shadow: inset 0px -40px 0px 0px #26519e, 0px 3px 0px 0px #26519e;
|
1431 |
box-shadow: inset 0px -40px 0px 0px #26519e, 0px 3px 0px 0px #26519e;
|
1432 |
}
|
1433 |
+
.simplesocialbuttons.simplesocial-flat-button-border button.simplesocial-email-share {
|
1434 |
+
background: #717070;
|
1435 |
+
-webkit-box-shadow: inset 0px 0px 0px 0px #717070, 0px 3px 0px 0px #717070;
|
1436 |
+
box-shadow: inset 0px 0px 0px 0px #717070, 0px 3px 0px 0px #4e4f52;
|
1437 |
+
}
|
1438 |
+
.simplesocialbuttons.simplesocial-flat-button-border button.simplesocial-email-share:hover {
|
1439 |
+
-webkit-box-shadow: inset 0px -40px 0px 0px #4e4f52, 0px 3px 0px 0px #4e4f52;
|
1440 |
+
box-shadow: inset 0px -40px 0px 0px #4e4f52, 0px 3px 0px 0px #4e4f52;
|
1441 |
+
}
|
1442 |
+
.simplesocialbuttons.simplesocial-flat-button-border button.simplesocial-print-share {
|
1443 |
+
background: #353535;
|
1444 |
+
-webkit-box-shadow: inset 0px 0px 0px 0px #353535, 0px 3px 0px 0px #353535;
|
1445 |
+
box-shadow: inset 0px 0px 0px 0px #353535, 0px 3px 0px 0px #1b1a1a;
|
1446 |
+
}
|
1447 |
+
.simplesocialbuttons.simplesocial-flat-button-border button.simplesocial-print-share:hover {
|
1448 |
+
-webkit-box-shadow: inset 0px -40px 0px 0px #1b1a1a, 0px 3px 0px 0px #1b1a1a;
|
1449 |
+
box-shadow: inset 0px -40px 0px 0px #1b1a1a, 0px 3px 0px 0px #1b1a1a;
|
1450 |
+
}
|
1451 |
/*===== End of Code for style 5 ======*/
|
1452 |
|
1453 |
|
1555 |
background: #db4437;
|
1556 |
color: #fff;
|
1557 |
}
|
1558 |
+
.simplesocialbuttons.simplesocial-round-icon button.simplesocial-print-share{
|
1559 |
+
color: #353535;
|
1560 |
+
border-color: #353535;
|
1561 |
+
}
|
1562 |
+
.simplesocialbuttons.simplesocial-round-icon button.simplesocial-print-share:hover{
|
1563 |
+
background: #717070;
|
1564 |
+
color: #fff;
|
1565 |
+
}
|
1566 |
.simplesocialbuttons.simplesocial-round-icon button:after{
|
1567 |
width: 34px;
|
1568 |
height: 34px;
|
1572 |
color: #468bff;
|
1573 |
border-color: #468bff;
|
1574 |
}
|
1575 |
+
.simplesocialbuttons.simplesocial-round-icon button.simplesocial-email-share{
|
1576 |
+
color: #717070;
|
1577 |
+
border-color: #717070;
|
1578 |
}
|
1579 |
+
.simplesocialbuttons.simplesocial-round-icon button.simplesocial-email-share:hover{
|
1580 |
+
background: #717070;
|
1581 |
+
color: #fff;
|
|
|
1582 |
}
|
1583 |
|
1584 |
/*===== End of Style 6 ======*/
|
1724 |
.simplesocialbuttons.simplesocial-simple-round button.simplesocial-viber-share:not(:hover):before,
|
1725 |
.simplesocialbuttons.simplesocial-simple-round button.simplesocial-reddit-share:not(:hover):before,
|
1726 |
.simplesocialbuttons.simplesocial-simple-round button.simplesocial-linkedin-share:not(:hover):before,
|
1727 |
+
.simplesocialbuttons.simplesocial-simple-round button.simplesocial-pinterest-share:not(:hover):before
|
1728 |
+
.simplesocialbuttons.simplesocial-simple-round button.simplesocial-email-share:not(:hover):before,
|
1729 |
+
.simplesocialbuttons.simplesocial-simple-round button.simplesocial-print-share:not(:hover):before{
|
1730 |
background: rgba(0,0,0, .2);
|
1731 |
width: 36px;
|
1732 |
}
|
1791 |
.simplesocialbuttons.simplesocial-round-txt button.simplesocial-gplus-share .ssb_counter{
|
1792 |
background: #db4437;
|
1793 |
}
|
1794 |
+
.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){
|
1795 |
padding-right: 50px;
|
1796 |
position: relative;
|
1797 |
}
|
1809 |
border-left: 1px solid #dedede;
|
1810 |
border-radius: 0 3px 3px 0;
|
1811 |
}
|
1812 |
+
.simplesocialbuttons.simplesocial-simple-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){
|
1813 |
padding-right: 50px;
|
1814 |
position: relative;
|
1815 |
}
|
1888 |
.simplesocialbuttons.simplesocial-flat-button-border button.simplesocial-gplus-share .ssb_counter{
|
1889 |
color: #db4437;
|
1890 |
}
|
1891 |
+
.simplesocialbuttons.simplesocial-flat-button-border button:not(.simplesocial-whatsapp-share):not(.simplesocial-viber-share):not(.simplesocial-msng-share):not(.simplesocial-email-share):not(.simplesocial-print-share){
|
1892 |
padding-right: 50px;
|
1893 |
position: relative;
|
1894 |
}
|
1927 |
.simplesocialbuttons.simplesocial-flat-button-border button.simplesocial-gplus-share .ssb_counter{
|
1928 |
color: #db4437;
|
1929 |
}
|
1930 |
+
.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){
|
1931 |
padding-right: 60px;
|
1932 |
position: relative;
|
1933 |
}
|
2699 |
.ssb_followers a.ssb_button.simplesocial-yt-follow:after{
|
2700 |
content: "\e909";
|
2701 |
}
|
2702 |
+
.ssb_followers a.ssb_button.simplesocial-instagram-follow:after{
|
2703 |
+
content: "\e90a";
|
2704 |
+
}
|
2705 |
.ssb_followers a.ssb_button:after {
|
2706 |
font-family: 'ssb-icon' !important;
|
2707 |
speak: none;
|
2807 |
.ssb_followers.simplesocial-simple-round a.ssb_button.simplesocial-yt-follow{
|
2808 |
background: #bb0000;
|
2809 |
}
|
2810 |
+
.ssb_followers.simplesocial-simple-round a.ssb_button.simplesocial-instagram-follow{
|
2811 |
+
background: #3897f0;
|
2812 |
+
}
|
2813 |
.ssb_followers.simplesocial-simple-round a.ssb_button.simplesocial-yt-follow:after, .ssb_followers.simplesocial-simple-round a.ssb_button.simplesocial-yt-follow:before {
|
2814 |
background: #790606;
|
2815 |
}
|
2838 |
.ssb_followers.simplesocial-simple-round a.ssb_button.simplesocial-pinterest-follow:after, .ssb_followers.simplesocial-simple-round a.ssb_button.simplesocial-pinterest-follow:before {
|
2839 |
background: #af040a;
|
2840 |
}
|
2841 |
+
.ssb_followers.simplesocial-simple-round a.ssb_button.simplesocial-instagram-follow:after,
|
2842 |
+
.ssb_followers.simplesocial-simple-round a.ssb_button.simplesocial-instagram-follow:before {
|
2843 |
+
background: #1d75c7;
|
2844 |
+
}
|
2845 |
.ssb_followers.simplesocial-simple-round a.ssb_button span.widget_counter{
|
2846 |
position: absolute;
|
2847 |
right: 5px;
|
assets/fonts/ssb-icon.eot
CHANGED
Binary file
|
assets/fonts/ssb-icon.svg
CHANGED
@@ -17,4 +17,7 @@
|
|
17 |
<glyph unicode="" glyph-name="linkedin" horiz-adv-x="1071" d="M841.728-62.976c0 5.12 0 8.192 0 12.288 0 123.904 0 246.784-1.024 370.688 0 29.696-5.12 58.368-18.432 84.992-19.456 40.96-57.344 59.392-103.424 56.32-58.368-4.096-95.232-36.864-113.664-90.112-6.144-17.408-5.12-36.864-6.144-55.296 0-122.88 0-244.736 0-367.616 0-11.264 0-11.264-11.264-11.264-68.608 0-138.24 0-206.848 0-3.072 0-7.168 0-10.24 0 0 230.4 0 459.776 0 690.176 3.072 0 6.144 0 9.216 0 69.632 0 140.288 0 209.92 0 8.192 0 10.24-2.048 10.24-10.24-1.024-27.648 0-56.32 0-86.016 8.192 10.24 14.336 18.432 20.48 26.624 38.912 49.152 90.112 76.8 153.6 83.968 54.272 5.12 106.496-1.024 156.672-25.6 43.008-21.504 75.776-53.248 98.304-95.232 31.744-58.368 41.984-121.856 41.984-187.392 0-130.048 0-259.072 0-389.12 0-2.048 0-5.12 0-7.168-76.8 0-152.576 0-229.376 0zM14.336-64c0 5.12 0 8.192 0 11.264 0 222.208 0 445.44 0 667.648 0 11.264 0 11.264 11.264 11.264 68.608 0 138.24 0 206.848 0 8.192 0 11.264-2.048 11.264-10.24 0-223.232 0-446.464 0-670.72 0-8.192-2.048-10.24-10.24-10.24-69.632 0-139.264 0-208.896 0-3.072 1.024-6.144 1.024-10.24 1.024zM129.024 720.384c-45.056 1.024-83.968 15.36-109.568 55.296-38.912 59.392-18.432 151.552 64.512 176.128 44.032 13.312 87.040 10.24 125.952-16.384 38.912-27.648 53.248-66.56 47.104-112.64s-31.744-76.8-75.776-93.184c-16.384-6.144-34.816-8.192-52.224-11.264 0 1.024 0 2.048 0 2.048z" />
|
18 |
<glyph unicode="" glyph-name="messenger_icon_2" horiz-adv-x="970" d="M485.053 960c-269.474 0-485.053-204.8-485.053-458.105 0-129.347 53.895-242.526 145.516-323.368v-242.526l204.8 123.958c43.116-10.779 86.232-16.168 134.737-16.168 269.474 0 485.053 204.8 485.053 458.105s-215.579 458.105-485.053 458.105zM533.558 356.379l-129.347 129.347-231.747-129.347 253.305 280.253 129.347-129.347 226.358 129.347-247.916-280.253z" />
|
19 |
<glyph unicode="" glyph-name="youtube_icon_2" horiz-adv-x="1480" d="M1447.692 800.294c-16.91 62.943-66.701 112.734-130.583 129.644-115.552 30.062-577.761 30.062-577.761 30.062s-453.754 1.879-569.306-28.183c-63.883-16.91-124.947-68.58-141.857-131.523-31.002-114.613-28.183-352.294-28.183-352.294s-2.818-237.681 28.183-352.294c16.91-62.943 78.914-114.613 141.857-131.523 115.552-31.002 569.306-28.183 569.306-28.183s453.754-1.879 569.306 28.183c63.883 16.91 123.068 68.58 139.978 131.523 31.002 113.673 31.002 352.294 31.002 352.294s-0.939 237.681-31.941 352.294zM597.49 220.653v454.694l369.204-227.347-369.204-227.347z" />
|
|
|
|
|
|
|
20 |
</font></defs></svg>
|
17 |
<glyph unicode="" glyph-name="linkedin" horiz-adv-x="1071" d="M841.728-62.976c0 5.12 0 8.192 0 12.288 0 123.904 0 246.784-1.024 370.688 0 29.696-5.12 58.368-18.432 84.992-19.456 40.96-57.344 59.392-103.424 56.32-58.368-4.096-95.232-36.864-113.664-90.112-6.144-17.408-5.12-36.864-6.144-55.296 0-122.88 0-244.736 0-367.616 0-11.264 0-11.264-11.264-11.264-68.608 0-138.24 0-206.848 0-3.072 0-7.168 0-10.24 0 0 230.4 0 459.776 0 690.176 3.072 0 6.144 0 9.216 0 69.632 0 140.288 0 209.92 0 8.192 0 10.24-2.048 10.24-10.24-1.024-27.648 0-56.32 0-86.016 8.192 10.24 14.336 18.432 20.48 26.624 38.912 49.152 90.112 76.8 153.6 83.968 54.272 5.12 106.496-1.024 156.672-25.6 43.008-21.504 75.776-53.248 98.304-95.232 31.744-58.368 41.984-121.856 41.984-187.392 0-130.048 0-259.072 0-389.12 0-2.048 0-5.12 0-7.168-76.8 0-152.576 0-229.376 0zM14.336-64c0 5.12 0 8.192 0 11.264 0 222.208 0 445.44 0 667.648 0 11.264 0 11.264 11.264 11.264 68.608 0 138.24 0 206.848 0 8.192 0 11.264-2.048 11.264-10.24 0-223.232 0-446.464 0-670.72 0-8.192-2.048-10.24-10.24-10.24-69.632 0-139.264 0-208.896 0-3.072 1.024-6.144 1.024-10.24 1.024zM129.024 720.384c-45.056 1.024-83.968 15.36-109.568 55.296-38.912 59.392-18.432 151.552 64.512 176.128 44.032 13.312 87.040 10.24 125.952-16.384 38.912-27.648 53.248-66.56 47.104-112.64s-31.744-76.8-75.776-93.184c-16.384-6.144-34.816-8.192-52.224-11.264 0 1.024 0 2.048 0 2.048z" />
|
18 |
<glyph unicode="" glyph-name="messenger_icon_2" horiz-adv-x="970" d="M485.053 960c-269.474 0-485.053-204.8-485.053-458.105 0-129.347 53.895-242.526 145.516-323.368v-242.526l204.8 123.958c43.116-10.779 86.232-16.168 134.737-16.168 269.474 0 485.053 204.8 485.053 458.105s-215.579 458.105-485.053 458.105zM533.558 356.379l-129.347 129.347-231.747-129.347 253.305 280.253 129.347-129.347 226.358 129.347-247.916-280.253z" />
|
19 |
<glyph unicode="" glyph-name="youtube_icon_2" horiz-adv-x="1480" d="M1447.692 800.294c-16.91 62.943-66.701 112.734-130.583 129.644-115.552 30.062-577.761 30.062-577.761 30.062s-453.754 1.879-569.306-28.183c-63.883-16.91-124.947-68.58-141.857-131.523-31.002-114.613-28.183-352.294-28.183-352.294s-2.818-237.681 28.183-352.294c16.91-62.943 78.914-114.613 141.857-131.523 115.552-31.002 569.306-28.183 569.306-28.183s453.754-1.879 569.306 28.183c63.883 16.91 123.068 68.58 139.978 131.523 31.002 113.673 31.002 352.294 31.002 352.294s-0.939 237.681-31.941 352.294zM597.49 220.653v454.694l369.204-227.347-369.204-227.347z" />
|
20 |
+
<glyph unicode="" 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="" 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="" 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>
|
assets/fonts/ssb-icon.ttf
CHANGED
Binary file
|
assets/fonts/ssb-icon.woff
CHANGED
Binary file
|
assets/images/email.svg
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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="79px" height="28px" viewBox="-1092.9 1590.6 79 28" enable-background="new -1092.9 1590.6 79 28" xml:space="preserve">
|
5 |
+
<path fill="#878787" d="M-1089.9,1590.6h73c1.7,0,3,1.5,3,3.5v21c0,2-1.3,3.5-3,3.5h-73c-1.7,0-3-1.5-3-3.5v-21
|
6 |
+
C-1092.9,1592.1-1091.6,1590.6-1089.9,1590.6z"/>
|
7 |
+
<path opacity="0.15" enable-background="new " d="M-1064.8,1590.6h1v28h-1V1590.6z"/>
|
8 |
+
<path fill="#FFFFFF" d="M-1086.8,1600v1l8,4l8-4v-1c0-0.7-0.6-1.3-1.3-1.3h-13.4C-1086.2,1598.7-1086.8,1599.2-1086.8,1600z
|
9 |
+
M-1086.8,1602.2v7.1c0,0.7,0.6,1.3,1.3,1.3h13.4c0.7,0,1.3-0.6,1.3-1.3v-7.1l-8,4L-1086.8,1602.2z"/>
|
10 |
+
<g>
|
11 |
+
<path fill="#FFFFFF" d="M-1048.9,1605.1h-3.7v3.4h4.1v1h-5.3v-9.4h5.1v1h-3.9v3h3.7L-1048.9,1605.1L-1048.9,1605.1z"/>
|
12 |
+
<path fill="#FFFFFF" d="M-1047.1,1604.6c0-0.7,0-1.3,0-1.8h1.1l0.1,1.1l0,0c0.4-0.6,1-1.2,2.1-1.2c0.9,0,1.6,0.6,1.9,1.4l0,0
|
13 |
+
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,2.9v4h-1.2v-3.8c0-1.3-0.5-2.1-1.5-2.1
|
14 |
+
c-0.7,0-1.2,0.5-1.5,1.1c-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.2
|
15 |
+
c-0.1,0.2-0.1,0.4-0.1,0.6v4.1h-1.2L-1047.1,1604.6L-1047.1,1604.6z"/>
|
16 |
+
<path fill="#FFFFFF" d="M-1031.5,1609.5l-0.1-0.9l0,0c-0.4,0.5-1.1,1-2.1,1c-1.4,0-2.1-1-2.1-1.9c0-1.6,1.5-2.5,4.1-2.5v-0.1
|
17 |
+
c0-0.6-0.2-1.6-1.5-1.6c-0.6,0-1.3,0.2-1.8,0.5l-0.3-0.8c0.6-0.4,1.4-0.6,2.2-0.6c2.1,0,2.6,1.4,2.6,2.8v2.5c0,0.6,0,1.2,0.1,1.6
|
18 |
+
H-1031.5z M-1031.7,1606.1c-1.3,0-2.9,0.2-2.9,1.5c0,0.8,0.5,1.2,1.2,1.2c0.9,0,1.4-0.6,1.6-1.1c0-0.1,0.1-0.3,0.1-0.4
|
19 |
+
L-1031.7,1606.1L-1031.7,1606.1z"/>
|
20 |
+
<path fill="#FFFFFF" d="M-1027.2,1600.9c0,0.4-0.3,0.8-0.8,0.8c-0.4,0-0.7-0.3-0.7-0.8c0-0.4,0.3-0.8,0.8-0.8
|
21 |
+
C-1027.5,1600.1-1027.2,1600.4-1027.2,1600.9z M-1028.5,1609.5v-6.8h1.2v6.8H-1028.5z"/>
|
22 |
+
<path fill="#FFFFFF" d="M-1025.3,1599.6h1.2v9.9h-1.2V1599.6z"/>
|
23 |
+
</g>
|
24 |
+
</svg>
|
assets/images/print.svg
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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="75px" height="28px" viewBox="-1626.9 2356.6 75 28" enable-background="new -1626.9 2356.6 75 28" xml:space="preserve">
|
5 |
+
<path fill="#353535" d="M-1623.9,2356.6h69c1.7,0,3,1.5,3,3.5v21c0,2-1.3,3.5-3,3.5h-69c-1.7,0-3-1.5-3-3.5v-21
|
6 |
+
C-1626.9,2358.1-1625.6,2356.6-1623.9,2356.6z"/>
|
7 |
+
<path opacity="0.15" enable-background="new " d="M-1598.8,2356.6h1v28h-1V2356.6z"/>
|
8 |
+
<g>
|
9 |
+
<path fill="#FFFFFF" d="M-1612.8,2367.2c2.3,0,4.6,0,6.9,0c0.4,0,0.7,0.1,0.9,0.5c0.1,0.2,0.1,0.4,0.1,0.6c0,1.7,0,3.4,0,5.1
|
10 |
+
c0,0.7-0.4,1.1-1.1,1c-0.6,0-1.2,0-1.8,0c-0.1,0-0.2,0-0.2,0.2c0,0.7,0,1.4,0,2c0,0.6-0.4,1-1,1c-0.1,0-0.3,0-0.4,0
|
11 |
+
c-2.5,0-4.9,0-7.4,0c-0.3,0-0.5,0-0.8-0.1c-0.3-0.2-0.5-0.5-0.5-0.9c0-0.7,0-1.4,0-2c0-0.2-0.1-0.2-0.2-0.2c-0.6,0-1.2,0-1.7,0
|
12 |
+
c-0.7,0-1-0.4-1-1c0-1.7,0-3.4,0-5.1c0-0.4,0.2-0.8,0.6-0.9c0.2-0.1,0.3-0.1,0.5-0.1C-1617.4,2367.2-1615.1,2367.2-1612.8,2367.2z
|
13 |
+
M-1612.8,2372.4L-1612.8,2372.4c-1.4,0-2.8,0-4.2,0c-0.1,0-0.2,0-0.2,0.2c0,0.3,0,0.7,0,1c0,1,0,2,0,3c0,0.3,0.1,0.4,0.4,0.4
|
14 |
+
c2.5,0,5.1,0,7.6,0c0.1,0,0.3,0,0.4,0c0.2,0,0.3-0.2,0.3-0.3c0-1.3,0-2.7,0-4c0-0.2,0-0.2-0.2-0.2
|
15 |
+
C-1610,2372.4-1611.4,2372.4-1612.8,2372.4z M-1608.1,2369.9c0.4,0,0.7-0.3,0.7-0.7s-0.3-0.7-0.8-0.7c-0.4,0-0.7,0.3-0.7,0.7
|
16 |
+
C-1608.8,2369.6-1608.5,2369.9-1608.1,2369.9z"/>
|
17 |
+
<path fill="#FFFFFF" d="M-1607.8,2366.5c-0.2,0-0.4,0-0.5,0c-3.1,0-6.2,0-9.3,0c-0.1,0-0.2,0-0.2-0.2c0-0.5,0-1,0-1.5s0.4-1,0.9-1
|
18 |
+
c0.1,0,0.2,0,0.3,0c2.6,0,5.2,0,7.8,0c0.6,0,1,0.4,1,1c0,0.5,0,0.9,0,1.4C-1607.8,2366.4-1607.8,2366.5-1607.8,2366.5z"/>
|
19 |
+
<path fill="#FFFFFF" d="M-1615.8,2374.4c0-0.2,0-0.4,0-0.6c2,0,4,0,6,0c0,0.2,0,0.4,0,0.6
|
20 |
+
C-1611.8,2374.4-1613.8,2374.4-1615.8,2374.4z"/>
|
21 |
+
<path fill="#FFFFFF" d="M-1613.5,2375.7c-0.7,0-1.4,0-2.1,0c-0.1,0-0.2,0-0.2-0.2c0-0.1,0-0.2,0-0.3s0-0.2,0.2-0.2
|
22 |
+
c0.1,0,0.2,0,0.3,0c1.3,0,2.6,0,3.9,0c0.3,0,0.3,0,0.3,0.3c0,0.4,0,0.4-0.4,0.4C-1612.2,2375.7-1612.8,2375.7-1613.5,2375.7
|
23 |
+
L-1613.5,2375.7z"/>
|
24 |
+
</g>
|
25 |
+
<g>
|
26 |
+
<path fill="#FFFFFF" d="M-1587.8,2366.2c0.6-0.1,1.4-0.2,2.3-0.2c1.2,0,2.1,0.3,2.6,0.8c0.5,0.4,0.8,1.1,0.8,2c0,0.8-0.3,1.5-0.7,2
|
27 |
+
c-0.6,0.7-1.7,1-2.9,1c-0.4,0-0.7,0-1-0.1v3.8h-1.2L-1587.8,2366.2L-1587.8,2366.2z M-1586.6,2370.8c0.3,0.1,0.6,0.1,1,0.1
|
28 |
+
c1.5,0,2.4-0.7,2.4-2c0-1.2-0.9-1.8-2.2-1.8c-0.5,0-0.9,0-1.1,0.1v3.6H-1586.6z"/>
|
29 |
+
<path fill="#FFFFFF" d="M-1580.6,2370.9c0-0.8,0-1.5-0.1-2.1h1.1v1.3h0.1c0.3-0.9,1-1.5,1.9-1.5c0.1,0,0.2,0,0.3,0v1.2
|
30 |
+
c-0.1,0-0.3,0-0.4,0c-0.9,0-1.5,0.7-1.6,1.6c0,0.2-0.1,0.4-0.1,0.6v3.6h-1.2L-1580.6,2370.9L-1580.6,2370.9z"/>
|
31 |
+
<path fill="#FFFFFF" d="M-1574.7,2366.9c0,0.4-0.3,0.8-0.8,0.8c-0.4,0-0.7-0.3-0.7-0.8c0-0.4,0.3-0.8,0.8-0.8
|
32 |
+
C-1575,2366.1-1574.7,2366.4-1574.7,2366.9z M-1576,2375.5v-6.7h1.2v6.7H-1576z"/>
|
33 |
+
<path fill="#FFFFFF" d="M-1572.8,2370.6c0-0.7,0-1.3-0.1-1.8h1.1l0.1,1.1l0,0c0.3-0.6,1.1-1.3,2.2-1.3c0.9,0,2.4,0.6,2.4,2.9v4
|
34 |
+
h-1.2v-3.9c0-1.1-0.4-2-1.6-2c-0.8,0-1.4,0.6-1.6,1.3c-0.1,0.2-0.1,0.4-0.1,0.6v4.1h-1.2L-1572.8,2370.6L-1572.8,2370.6z"/>
|
35 |
+
<path fill="#FFFFFF" d="M-1563.6,2366.8v1.9h1.8v0.9h-1.8v3.6c0,0.8,0.2,1.3,0.9,1.3c0.3,0,0.6,0,0.7-0.1l0.1,0.9
|
36 |
+
c-0.2,0.1-0.6,0.2-1.1,0.2c-0.6,0-1-0.2-1.3-0.5c-0.3-0.4-0.5-1-0.5-1.8v-3.7h-1v-0.9h1v-1.6L-1563.6,2366.8z"/>
|
37 |
+
</g>
|
38 |
+
</svg>
|
assets/js/admin.js
CHANGED
@@ -227,7 +227,7 @@
|
|
227 |
$(document).on('click', '.show_youtube_check', function () {
|
228 |
var widget_content = $(this).parent().parent();
|
229 |
if ($(this).is(':checked')) {
|
230 |
-
|
231 |
$(widget_content).find('.show_youtube').css('display', 'block');
|
232 |
} else {
|
233 |
$(widget_content).find('.show_youtube').css('display', 'none');
|
@@ -238,7 +238,7 @@
|
|
238 |
$(document).on('click', '.show_pinterest_check', function () {
|
239 |
var widget_content = $(this).parent().parent();
|
240 |
if ($(this).is(':checked')) {
|
241 |
-
|
242 |
$(widget_content).find('.show_pinterest').css('display', 'block');
|
243 |
} else {
|
244 |
$(widget_content).find('.show_pinterest').css('display', 'none');
|
@@ -256,6 +256,27 @@
|
|
256 |
}
|
257 |
});
|
258 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
259 |
//end widget js;
|
260 |
|
261 |
|
227 |
$(document).on('click', '.show_youtube_check', function () {
|
228 |
var widget_content = $(this).parent().parent();
|
229 |
if ($(this).is(':checked')) {
|
230 |
+
|
231 |
$(widget_content).find('.show_youtube').css('display', 'block');
|
232 |
} else {
|
233 |
$(widget_content).find('.show_youtube').css('display', 'none');
|
238 |
$(document).on('click', '.show_pinterest_check', function () {
|
239 |
var widget_content = $(this).parent().parent();
|
240 |
if ($(this).is(':checked')) {
|
241 |
+
|
242 |
$(widget_content).find('.show_pinterest').css('display', 'block');
|
243 |
} else {
|
244 |
$(widget_content).find('.show_pinterest').css('display', 'none');
|
256 |
}
|
257 |
});
|
258 |
|
259 |
+
$(document).on('click', '.show_instagram_check', function () {
|
260 |
+
var widget_content = $(this).parent().parent();
|
261 |
+
if ($(this).is(':checked')) {
|
262 |
+
|
263 |
+
$(widget_content).find('.show_instagram').css('display', 'block');
|
264 |
+
} else {
|
265 |
+
$(widget_content).find('.show_instagram').css('display', 'none');
|
266 |
+
}
|
267 |
+
|
268 |
+
});
|
269 |
+
|
270 |
+
$(document).on('click', '.instagram_count_check', function () {
|
271 |
+
|
272 |
+
var instagram_content = $(this).parent().parent();
|
273 |
+
if ($(this).is(':checked')) {
|
274 |
+
$(instagram_content).find('.instagram_api_key').css('display', 'block');
|
275 |
+
} else {
|
276 |
+
$(instagram_content).find('.instagram_api_key').css('display', 'none');
|
277 |
+
}
|
278 |
+
});
|
279 |
+
|
280 |
//end widget js;
|
281 |
|
282 |
|
classes/ssb-logs.php
CHANGED
@@ -27,8 +27,10 @@ class Ssb_Logs_Info {
|
|
27 |
$popup_option = get_option( 'ssb_popup' );
|
28 |
$flyin_option = get_option( 'ssb_flyin' );
|
29 |
$extra_option = get_option( 'ssb_advanced' );
|
|
|
30 |
|
31 |
-
|
|
|
32 |
$html = '### Begin System Info ###' . "\n\n";
|
33 |
|
34 |
// Basic site info
|
@@ -73,6 +75,10 @@ class Ssb_Logs_Info {
|
|
73 |
$html .= 'Max Input Vars: ' . ini_get( 'max_input_vars' ) . "\n";
|
74 |
$html .= 'Display Errors: ' . ( ini_get( 'display_errors' ) ? 'On (' . ini_get( 'display_errors' ) . ')' : 'N/A' ) . "\n";
|
75 |
|
|
|
|
|
|
|
|
|
76 |
// WordPress active plugins
|
77 |
$html .= "\n" . '-- WordPress Active Plugins --' . "\n\n";
|
78 |
$plugins = get_plugins();
|
27 |
$popup_option = get_option( 'ssb_popup' );
|
28 |
$flyin_option = get_option( 'ssb_flyin' );
|
29 |
$extra_option = get_option( 'ssb_advanced' );
|
30 |
+
$active_theme = wp_get_theme();
|
31 |
|
32 |
+
// var_dump( wp_get_theme()->get( 'Name' ) );
|
33 |
+
// var_dump( wp_get_theme() );
|
34 |
$html = '### Begin System Info ###' . "\n\n";
|
35 |
|
36 |
// Basic site info
|
75 |
$html .= 'Max Input Vars: ' . ini_get( 'max_input_vars' ) . "\n";
|
76 |
$html .= 'Display Errors: ' . ( ini_get( 'display_errors' ) ? 'On (' . ini_get( 'display_errors' ) . ')' : 'N/A' ) . "\n";
|
77 |
|
78 |
+
// WordPress active theme
|
79 |
+
$html .= "\n" . '-- WordPress Active Theme --' . "\n\n";
|
80 |
+
$html .= $active_theme->get( 'Name' ) . ' '. $active_theme->get( 'Version' ) . ' by `' . $active_theme->get( 'Author' ) . "`\n";
|
81 |
+
|
82 |
// WordPress active plugins
|
83 |
$html .= "\n" . '-- WordPress Active Plugins --' . "\n\n";
|
84 |
$plugins = get_plugins();
|
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' );
|
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' );
|
371 |
foreach ($arrKnownButtons as $button_name) {
|
372 |
$ssb_icons_order[$button_name] = isset( $settings[$button_name] ) ? $settings[$button_name] : '' ;
|
373 |
}
|
classes/ssb-widget.php
CHANGED
@@ -54,6 +54,7 @@ class Ssb_Follower_Widget extends WP_Widget {
|
|
54 |
$show_google_plus = $instance['show_google_plus'];
|
55 |
$show_youtube = $instance['show_youtube'];
|
56 |
$show_pinterest = $instance['show_pinterest'];
|
|
|
57 |
|
58 |
$facebook_id = $instance['facebook_id'];
|
59 |
$facebook_show_counter = $instance['facebook_show_counter'];
|
@@ -80,11 +81,16 @@ class Ssb_Follower_Widget extends WP_Widget {
|
|
80 |
$pinterest_api_key = $instance['pinterest_api_key'];
|
81 |
$pinterest_text = $instance['pinterest_text'];
|
82 |
|
|
|
|
|
|
|
|
|
83 |
$fb_likes = $this->get_facebook_likes_count( $facebook_id, $facebook_access_token, $facebook_show_counter );
|
84 |
$twitter_follower = $this->get_twitter_followers( $twitter_id, $twitter_api_key, $twitter_secret_key, $twitter_show_counter );
|
85 |
$google_follower = $this->get_google_plus_follower( $google_id, $google_show_counter );
|
86 |
$youtube_subscriber = $this->get_youtube_subscriber( $youtube_id, $youtube_show_counter, $youtube_type );
|
87 |
$pinterest_follower = $this->get_pinterest_followers( $pinterest_api_key, $pinterest_show_counter );
|
|
|
88 |
|
89 |
include SSB_PLUGIN_DIR . '/inc/ssb-widget-front.php';
|
90 |
}
|
@@ -106,6 +112,7 @@ class Ssb_Follower_Widget extends WP_Widget {
|
|
106 |
$instance['youtube_text'] = __( 'Subscribe us on Youtube', 'simple-social-buttons' );
|
107 |
$instance['twitter_text'] = __( 'Follow us on Twitter', 'simple-social-buttons' );
|
108 |
$instance['pinterest_text'] = __( 'Pin us on Pinterest', 'simple-social-buttons' );
|
|
|
109 |
|
110 |
}
|
111 |
|
@@ -117,6 +124,7 @@ class Ssb_Follower_Widget extends WP_Widget {
|
|
117 |
$show_google_plus = ! empty( $instance['show_google_plus'] ) ? $instance['show_google_plus'] : '';
|
118 |
$show_youtube = ! empty( $instance['show_youtube'] ) ? $instance['show_youtube'] : '';
|
119 |
$show_pinterest = ! empty( $instance['show_pinterest'] ) ? $instance['show_pinterest'] : '';
|
|
|
120 |
|
121 |
$facebook_id = ! empty( $instance['facebook_id'] ) ? $instance['facebook_id'] : '';
|
122 |
$facebook_show_counter = ! empty( $instance['facebook_show_counter'] ) ? $instance['facebook_show_counter'] : '';
|
@@ -145,6 +153,11 @@ class Ssb_Follower_Widget extends WP_Widget {
|
|
145 |
$pinterest_show_counter = ! empty( $instance['pinterest_show_counter'] ) ? $instance['pinterest_show_counter'] : '';
|
146 |
$pinterest_api_key = ! empty( $instance['pinterest_api_key'] ) ? $instance['pinterest_api_key'] : '';
|
147 |
|
|
|
|
|
|
|
|
|
|
|
148 |
include SSB_PLUGIN_DIR . '/inc/ssb-widget-fields.php';
|
149 |
|
150 |
}
|
@@ -167,6 +180,7 @@ class Ssb_Follower_Widget extends WP_Widget {
|
|
167 |
delete_transient( 'ssb_follow_google_counter' );
|
168 |
delete_transient( 'ssb_follow_youtube_counter' );
|
169 |
delete_transient( 'ssb_follow_pinterest_counter' );
|
|
|
170 |
|
171 |
$instance = array();
|
172 |
$instance['title'] = ( ! empty( $new_instance['title'] ) ) ? strip_tags( $new_instance['title'] ) : '';
|
@@ -176,6 +190,7 @@ class Ssb_Follower_Widget extends WP_Widget {
|
|
176 |
$instance['show_google_plus'] = ! empty( $new_instance['show_google_plus'] ) ? strip_tags( $new_instance['show_google_plus'] ) : '0';
|
177 |
$instance['show_youtube'] = ! empty( $new_instance['show_youtube'] ) ? strip_tags( $new_instance['show_youtube'] ) : '0';
|
178 |
$instance['show_pinterest'] = ! empty( $new_instance['show_pinterest'] ) ? strip_tags( $new_instance['show_pinterest'] ) : '0';
|
|
|
179 |
|
180 |
$instance['facebook_id'] = sanitize_text_field( wp_unslash( $new_instance['facebook_id'] ) );
|
181 |
$instance['facebook_app_id'] = sanitize_text_field( wp_unslash( $new_instance['facebook_app_id'] ) );
|
@@ -203,6 +218,9 @@ class Ssb_Follower_Widget extends WP_Widget {
|
|
203 |
$instance['pinterest_show_counter'] = ( ! empty( $new_instance['pinterest_show_counter'] ) ) ? strip_tags( $new_instance['pinterest_show_counter'] ) : '0';
|
204 |
$instance['pinterest_text'] = sanitize_text_field( wp_unslash( $new_instance['pinterest_text'] ) );
|
205 |
$instance['pinterest_api_key'] = sanitize_text_field( wp_unslash( $new_instance['pinterest_api_key'] ) );
|
|
|
|
|
|
|
206 |
|
207 |
return $instance;
|
208 |
}
|
@@ -452,6 +470,42 @@ class Ssb_Follower_Widget extends WP_Widget {
|
|
452 |
|
453 |
}
|
454 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
455 |
/**
|
456 |
* Format the (int)number into easy readable format like 1K, 1M
|
457 |
* @since 2.0.2
|
54 |
$show_google_plus = $instance['show_google_plus'];
|
55 |
$show_youtube = $instance['show_youtube'];
|
56 |
$show_pinterest = $instance['show_pinterest'];
|
57 |
+
$show_instagram = $instance['show_instagram'];
|
58 |
|
59 |
$facebook_id = $instance['facebook_id'];
|
60 |
$facebook_show_counter = $instance['facebook_show_counter'];
|
81 |
$pinterest_api_key = $instance['pinterest_api_key'];
|
82 |
$pinterest_text = $instance['pinterest_text'];
|
83 |
|
84 |
+
$instagram_id = $instance['instagram'];
|
85 |
+
$instagram_show_counter = $instance['instagram_show_counter'];
|
86 |
+
$instagram_text = $instance['instagram_text'];
|
87 |
+
|
88 |
$fb_likes = $this->get_facebook_likes_count( $facebook_id, $facebook_access_token, $facebook_show_counter );
|
89 |
$twitter_follower = $this->get_twitter_followers( $twitter_id, $twitter_api_key, $twitter_secret_key, $twitter_show_counter );
|
90 |
$google_follower = $this->get_google_plus_follower( $google_id, $google_show_counter );
|
91 |
$youtube_subscriber = $this->get_youtube_subscriber( $youtube_id, $youtube_show_counter, $youtube_type );
|
92 |
$pinterest_follower = $this->get_pinterest_followers( $pinterest_api_key, $pinterest_show_counter );
|
93 |
+
$instagram_follower = $this->get_instagram_id_followers( $instagram_id, $instagram_show_counter );
|
94 |
|
95 |
include SSB_PLUGIN_DIR . '/inc/ssb-widget-front.php';
|
96 |
}
|
112 |
$instance['youtube_text'] = __( 'Subscribe us on Youtube', 'simple-social-buttons' );
|
113 |
$instance['twitter_text'] = __( 'Follow us on Twitter', 'simple-social-buttons' );
|
114 |
$instance['pinterest_text'] = __( 'Pin us on Pinterest', 'simple-social-buttons' );
|
115 |
+
$instance['instagram_text'] = __( 'Follow us on Instagram', 'simple-social-buttons' );
|
116 |
|
117 |
}
|
118 |
|
124 |
$show_google_plus = ! empty( $instance['show_google_plus'] ) ? $instance['show_google_plus'] : '';
|
125 |
$show_youtube = ! empty( $instance['show_youtube'] ) ? $instance['show_youtube'] : '';
|
126 |
$show_pinterest = ! empty( $instance['show_pinterest'] ) ? $instance['show_pinterest'] : '';
|
127 |
+
$show_instagram = ! empty( $instance['show_instagram'] ) ? $instance['show_instagram'] : '';
|
128 |
|
129 |
$facebook_id = ! empty( $instance['facebook_id'] ) ? $instance['facebook_id'] : '';
|
130 |
$facebook_show_counter = ! empty( $instance['facebook_show_counter'] ) ? $instance['facebook_show_counter'] : '';
|
153 |
$pinterest_show_counter = ! empty( $instance['pinterest_show_counter'] ) ? $instance['pinterest_show_counter'] : '';
|
154 |
$pinterest_api_key = ! empty( $instance['pinterest_api_key'] ) ? $instance['pinterest_api_key'] : '';
|
155 |
|
156 |
+
$instagram = ! empty( $instance['instagram'] ) ? $instance['instagram'] : '';
|
157 |
+
$instagram_user_id = ! empty( $instance['instagram_user_id'] ) ? $instance['instagram_user_id'] : '';
|
158 |
+
$instagram_text = ! empty( $instance['instagram_text'] ) ? $instance['instagram_text'] : '';
|
159 |
+
$instagram_show_counter = ! empty( $instance['instagram_show_counter'] ) ? $instance['instagram_show_counter'] : '';
|
160 |
+
|
161 |
include SSB_PLUGIN_DIR . '/inc/ssb-widget-fields.php';
|
162 |
|
163 |
}
|
180 |
delete_transient( 'ssb_follow_google_counter' );
|
181 |
delete_transient( 'ssb_follow_youtube_counter' );
|
182 |
delete_transient( 'ssb_follow_pinterest_counter' );
|
183 |
+
delete_transient( 'ssb_follow_instagram_counter' );
|
184 |
|
185 |
$instance = array();
|
186 |
$instance['title'] = ( ! empty( $new_instance['title'] ) ) ? strip_tags( $new_instance['title'] ) : '';
|
190 |
$instance['show_google_plus'] = ! empty( $new_instance['show_google_plus'] ) ? strip_tags( $new_instance['show_google_plus'] ) : '0';
|
191 |
$instance['show_youtube'] = ! empty( $new_instance['show_youtube'] ) ? strip_tags( $new_instance['show_youtube'] ) : '0';
|
192 |
$instance['show_pinterest'] = ! empty( $new_instance['show_pinterest'] ) ? strip_tags( $new_instance['show_pinterest'] ) : '0';
|
193 |
+
$instance['show_instagram'] = ! empty( $new_instance['show_instagram'] ) ? strip_tags( $new_instance['show_instagram'] ) : '0';
|
194 |
|
195 |
$instance['facebook_id'] = sanitize_text_field( wp_unslash( $new_instance['facebook_id'] ) );
|
196 |
$instance['facebook_app_id'] = sanitize_text_field( wp_unslash( $new_instance['facebook_app_id'] ) );
|
218 |
$instance['pinterest_show_counter'] = ( ! empty( $new_instance['pinterest_show_counter'] ) ) ? strip_tags( $new_instance['pinterest_show_counter'] ) : '0';
|
219 |
$instance['pinterest_text'] = sanitize_text_field( wp_unslash( $new_instance['pinterest_text'] ) );
|
220 |
$instance['pinterest_api_key'] = sanitize_text_field( wp_unslash( $new_instance['pinterest_api_key'] ) );
|
221 |
+
$instance['instagram'] = sanitize_text_field( wp_unslash( $new_instance['instagram'] ) );
|
222 |
+
$instance['instagram_show_counter'] = ( ! empty( $new_instance['instagram_show_counter'] ) ) ? strip_tags( $new_instance['instagram_show_counter'] ) : '0';
|
223 |
+
$instance['instagram_text'] = sanitize_text_field( wp_unslash( $new_instance['instagram_text'] ) );
|
224 |
|
225 |
return $instance;
|
226 |
}
|
470 |
|
471 |
}
|
472 |
|
473 |
+
/**
|
474 |
+
* Passing instagram access token for getting instagram follower
|
475 |
+
* @since 2.0.10
|
476 |
+
* @param $instagram_id
|
477 |
+
* @param $show_counter
|
478 |
+
*
|
479 |
+
* @return int|string( insta follower )
|
480 |
+
*/
|
481 |
+
function get_instagram_id_followers( $instagram_id, $show_counter ){
|
482 |
+
|
483 |
+
if ( $show_counter ) {
|
484 |
+
|
485 |
+
if ( false === get_transient( 'ssb_follow_instagram_counter' ) ) {
|
486 |
+
$json_feed_url = "https://www.instagram.com/$instagram_id/?__a=1";
|
487 |
+
|
488 |
+
$args = array( 'httpversion' => '1.1' );
|
489 |
+
$json_feed = wp_remote_get( $json_feed_url, $args );
|
490 |
+
|
491 |
+
if ( is_wp_error( $json_feed ) || 200 !== wp_remote_retrieve_response_code( $json_feed ) ) {
|
492 |
+
return 0;
|
493 |
+
}
|
494 |
+
$result = json_decode( wp_remote_retrieve_body( $json_feed ) );
|
495 |
+
$counter = isset( $result->user->followed_by->count ) ? $result->user->followed_by->count : 0;
|
496 |
+
$counter = $this->format_number( $counter );
|
497 |
+
|
498 |
+
if ( ! empty( $counter ) ) {
|
499 |
+
set_transient( 'ssb_follow_instagram_counter', $counter, $this->cache_time );
|
500 |
+
}
|
501 |
+
|
502 |
+
return $counter;
|
503 |
+
} else {
|
504 |
+
return get_transient( 'ssb_follow_instagram_counter' );
|
505 |
+
}
|
506 |
+
}
|
507 |
+
}
|
508 |
+
|
509 |
/**
|
510 |
* Format the (int)number into easy readable format like 1K, 1M
|
511 |
* @since 2.0.2
|
inc/custom-css.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<style media="screen">
|
2 |
|
3 |
-
<?php if ( isset( $this->selected_position['inline'] ) ): ?>
|
4 |
.simplesocialbuttons.simplesocialbuttons_inline .ssb-fb-like {
|
5 |
margin: <?php echo $this->inline_option['icon_space'] == '1' && $this->inline_option['icon_space_value'] != '' ? $this->inline_option['icon_space_value'] . 'px' : ''; ?>;
|
6 |
}
|
@@ -43,7 +43,7 @@
|
|
43 |
|
44 |
<?php endif ?>
|
45 |
|
46 |
-
<?php if ( 'simple-icons' == $this->selected_theme && isset( $this->selected_position['inline'] ) ) : ?>
|
47 |
.simplesocialbuttons.simplesocialbuttons_inline.simplesocial-simple-icons button{
|
48 |
margin: <?php echo $this->inline_option['icon_space'] == '1' && $this->inline_option['icon_space_value'] != '' ? $this->inline_option['icon_space_value'] . 'px' : ''; ?>;
|
49 |
}
|
1 |
<style media="screen">
|
2 |
|
3 |
+
<?php if ( isset( $this->selected_position['inline'] ) && isset( $this->inline_option['icon_space'] ) ): ?>
|
4 |
.simplesocialbuttons.simplesocialbuttons_inline .ssb-fb-like {
|
5 |
margin: <?php echo $this->inline_option['icon_space'] == '1' && $this->inline_option['icon_space_value'] != '' ? $this->inline_option['icon_space_value'] . 'px' : ''; ?>;
|
6 |
}
|
43 |
|
44 |
<?php endif ?>
|
45 |
|
46 |
+
<?php if ( 'simple-icons' == $this->selected_theme && isset( $this->selected_position['inline'] ) && isset( $this->inline_option['icon_space'] ) ) : ?>
|
47 |
.simplesocialbuttons.simplesocialbuttons_inline.simplesocial-simple-icons button{
|
48 |
margin: <?php echo $this->inline_option['icon_space'] == '1' && $this->inline_option['icon_space_value'] != '' ? $this->inline_option['icon_space_value'] . 'px' : ''; ?>;
|
49 |
}
|
inc/ssb-widget-fields.php
CHANGED
@@ -14,6 +14,8 @@
|
|
14 |
<input type="checkbox" value="1" class="show_youtube_check" name="<?php echo esc_attr( $this->get_field_name( 'show_youtube' ) ); ?>" id="<?php echo esc_attr( $this->get_field_id( 'show_youtube' ) ); ?>" <?php checked($show_youtube ,1);?> > <label for="<?php echo esc_attr( $this->get_field_id( 'show_youtube' ) ); ?>">YouTube</label>
|
15 |
<br/>
|
16 |
<input type="checkbox" value="1" class="show_pinterest_check" name="<?php echo esc_attr( $this->get_field_name( 'show_pinterest' ) ); ?>" id="<?php echo esc_attr( $this->get_field_id( 'show_pinterest' ) ); ?>" <?php checked($show_pinterest ,1);?> > <label for="<?php echo esc_attr( $this->get_field_id( 'show_pinterest' ) ); ?>">Pinterest</label>
|
|
|
|
|
17 |
</div>
|
18 |
<!--facebook-->
|
19 |
<div class="show_fb simpleshare-widget-settings" style="display: <?php echo ( $display == $show_facebook )? 'block' : 'none' ?>">
|
@@ -147,3 +149,20 @@
|
|
147 |
</div>
|
148 |
<hr/>
|
149 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
<input type="checkbox" value="1" class="show_youtube_check" name="<?php echo esc_attr( $this->get_field_name( 'show_youtube' ) ); ?>" id="<?php echo esc_attr( $this->get_field_id( 'show_youtube' ) ); ?>" <?php checked($show_youtube ,1);?> > <label for="<?php echo esc_attr( $this->get_field_id( 'show_youtube' ) ); ?>">YouTube</label>
|
15 |
<br/>
|
16 |
<input type="checkbox" value="1" class="show_pinterest_check" name="<?php echo esc_attr( $this->get_field_name( 'show_pinterest' ) ); ?>" id="<?php echo esc_attr( $this->get_field_id( 'show_pinterest' ) ); ?>" <?php checked($show_pinterest ,1);?> > <label for="<?php echo esc_attr( $this->get_field_id( 'show_pinterest' ) ); ?>">Pinterest</label>
|
17 |
+
<br/>
|
18 |
+
<input type="checkbox" value="1" class="show_instagram_check" name="<?php echo esc_attr( $this->get_field_name( 'show_instagram' ) ); ?>" id="<?php echo esc_attr( $this->get_field_id( 'show_instagram' ) ); ?>" <?php checked($show_instagram ,1);?> > <label for="<?php echo esc_attr( $this->get_field_id( 'show_instagram' ) ); ?>">Instagram</label>
|
19 |
</div>
|
20 |
<!--facebook-->
|
21 |
<div class="show_fb simpleshare-widget-settings" style="display: <?php echo ( $display == $show_facebook )? 'block' : 'none' ?>">
|
149 |
</div>
|
150 |
<hr/>
|
151 |
</div>
|
152 |
+
|
153 |
+
<!--instagram-->
|
154 |
+
<div class="show_instagram simpleshare-widget-settings" style="display: <?php echo ( $display == $show_instagram )? 'block' : 'none' ?>">
|
155 |
+
<h2><span>Instagram</span></h2>
|
156 |
+
<p>
|
157 |
+
<label for="<?php echo esc_attr( $this->get_field_id( 'instagram_text' ) ); ?> "><?php esc_attr_e( 'Instagram Button Text:', 'simple-social-buttons' ); ?></label>
|
158 |
+
<input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'instagram_text' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'instagram_text' ) ); ?>" type="text" value="<?php echo esc_attr( $instagram_text ); ?>" placeholder="Follow us on Instagram">
|
159 |
+
</p>
|
160 |
+
<p class="instagram_text" style="display: block">
|
161 |
+
<label for="<?php echo esc_attr( $this->get_field_id( 'instagram' ) ); ?>"><?php esc_attr_e( 'Instagram User Name:', 'simple-social-buttons' ); ?></label>
|
162 |
+
<input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'instagram' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'instagram' ) ); ?>" type="text" value="<?php echo esc_attr( $instagram ); ?>" placeholder="Username" >
|
163 |
+
<input type="checkbox" name="<?php echo esc_attr( $this->get_field_name( 'instagram_show_counter' ) ) ?>" id="<?php echo esc_attr( $this->get_field_id( 'instagram_show_counter' ) ) ?>" value="1" <?php checked( $instagram_show_counter, 1 ) ?> class="instagram_count_check" >
|
164 |
+
<label for="<?php echo esc_attr( $this->get_field_id( 'instagram_show_counter' ) ) ?>">Display Instagram follower counter</label>
|
165 |
+
</p>
|
166 |
+
|
167 |
+
<hr/>
|
168 |
+
</div>
|
inc/ssb-widget-front.php
CHANGED
@@ -18,12 +18,15 @@ if ( !empty( $widget_title ) ) {
|
|
18 |
<?php endif;
|
19 |
if( $display == $show_youtube):
|
20 |
?>
|
21 |
-
<a class="ssb_button simplesocial-yt-follow" rel="noopener" href="https://youtube.com/<?php echo $youtube_type
|
22 |
<?php endif;?>
|
23 |
<?php if ( $display == $show_pinterest ):?>
|
24 |
-
<a class="ssb_button simplesocial-pinterest-follow" rel="noopener" href="https://pinterest.com/<?php echo $pinterest_id
|
25 |
<?php endif;?>
|
26 |
|
|
|
|
|
|
|
27 |
|
28 |
</section>
|
29 |
<?php echo $after_widget;?>
|
18 |
<?php endif;
|
19 |
if( $display == $show_youtube):
|
20 |
?>
|
21 |
+
<a class="ssb_button simplesocial-yt-follow" rel="noopener" href="https://youtube.com/<?php echo $youtube_type ?><?php echo $youtube_id ?>" target="_blank"><span class="simplesocialtxt"><?php echo $youtube_text?> </span><span class="widget_counter"> <?php echo ( $display == $youtube_show_counter)?$youtube_subscriber:" ";?> </span></a>
|
22 |
<?php endif;?>
|
23 |
<?php if ( $display == $show_pinterest ):?>
|
24 |
+
<a class="ssb_button simplesocial-pinterest-follow" rel="noopener" href="https://pinterest.com/<?php echo $pinterest_id;?>" target="_blank"><span class="simplesocialtxt"><?php echo $pinterest_text;?> </span><span class="widget_counter"> <?php echo ( $display == $pinterest_show_counter )? $pinterest_follower: '';?> </span></a>
|
25 |
<?php endif;?>
|
26 |
|
27 |
+
<?php if ( $display == $show_instagram ):?>
|
28 |
+
<a class="ssb_button simplesocial-instagram-follow" rel="noopener" href="https://www.instagram.com/<?php echo $instagram_id;?>" target="_blank"><span class="simplesocialtxt"><?php echo $instagram_text;?> </span><span class="widget_counter"> <?php echo ( $display == $instagram_show_counter )? $instagram_follower: '';?> </span></a>
|
29 |
+
<?php endif;?>
|
30 |
|
31 |
</section>
|
32 |
<?php echo $after_widget;?>
|
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.
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -146,12 +146,18 @@ theme = theme1 or theme2 or theme3 or theme4 or Flat or Circle or Official
|
|
146 |
|
147 |
== Upgrade Notice ==
|
148 |
|
149 |
-
= 2.0.
|
150 |
* Relaunched with a whole set of NEW FEATURES and Improvement. Please upgrade immediately and provide your feedback. highly recommended. Apologies in advance, if anything breaks!
|
151 |
|
152 |
|
153 |
== Changelog ==
|
154 |
|
|
|
|
|
|
|
|
|
|
|
|
|
155 |
= 2.0.10 - 2018-02-08 =
|
156 |
* New Feature: Add Facebook Messenger Share.
|
157 |
* New Feature: Twitter Card meta added.
|
@@ -160,8 +166,8 @@ theme = theme1 or theme2 or theme3 or theme4 or Flat or Circle or Official
|
|
160 |
* Improvement: Remove extra text form WhatsApp & Viber.
|
161 |
|
162 |
= 2.0.9 - 2018-01-27 =
|
163 |
-
* Bug Fix:
|
164 |
-
* Bug Fix:
|
165 |
|
166 |
|
167 |
= 2.0.8 - 2018-01-24 =
|
@@ -223,17 +229,17 @@ theme = theme1 or theme2 or theme3 or theme4 or Flat or Circle or Official
|
|
223 |
* Enhancement: Introducing New Social Buttons: Facebook Share, LinkedIn.
|
224 |
* Enhancement: Responsive Social Share Buttons styling.
|
225 |
* Enhancement: Move Menu out from Settings.
|
226 |
-
*
|
227 |
|
228 |
= 1.8.2 =
|
229 |
-
*
|
230 |
* Enhancement: move menu out from settings.
|
231 |
* Enhancement: Add Review Notice.
|
232 |
* Enhancement: Add deactivate popup feedback form.
|
233 |
|
234 |
|
235 |
= 1.8.1 =
|
236 |
-
*
|
237 |
|
238 |
= 1.8.0 =
|
239 |
* Styling and Code improvement.
|
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.11
|
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.11 =
|
150 |
* Relaunched with a whole set of NEW FEATURES and Improvement. Please upgrade immediately and provide your feedback. highly recommended. Apologies in advance, if anything breaks!
|
151 |
|
152 |
|
153 |
== Changelog ==
|
154 |
|
155 |
+
= 2.0.11 - 2018-02-27 =
|
156 |
+
* New Feature: Add Instagram on Widget.
|
157 |
+
* New Feature: Add Print Button.
|
158 |
+
* New Feature: Add Email Button.
|
159 |
+
* Bug Fix: Undefined 'ssb_messenger_generate_link' function.
|
160 |
+
|
161 |
= 2.0.10 - 2018-02-08 =
|
162 |
* New Feature: Add Facebook Messenger Share.
|
163 |
* New Feature: Twitter Card meta added.
|
166 |
* Improvement: Remove extra text form WhatsApp & Viber.
|
167 |
|
168 |
= 2.0.9 - 2018-01-27 =
|
169 |
+
* Bug Fix: Facebook share - meta tags.
|
170 |
+
* Bug Fix: YouTube Widget bug.
|
171 |
|
172 |
|
173 |
= 2.0.8 - 2018-01-24 =
|
229 |
* Enhancement: Introducing New Social Buttons: Facebook Share, LinkedIn.
|
230 |
* Enhancement: Responsive Social Share Buttons styling.
|
231 |
* Enhancement: Move Menu out from Settings.
|
232 |
+
* Bug Fix: Code Cleanup and Improvement.
|
233 |
|
234 |
= 1.8.2 =
|
235 |
+
* Bug Fix: share button position issue with 2016 theme.
|
236 |
* Enhancement: move menu out from settings.
|
237 |
* Enhancement: Add Review Notice.
|
238 |
* Enhancement: Add deactivate popup feedback form.
|
239 |
|
240 |
|
241 |
= 1.8.1 =
|
242 |
+
* Bug Fix: Horizontal issue.
|
243 |
|
244 |
= 1.8.0 =
|
245 |
* Styling and Code improvement.
|
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.
|
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.
|
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' );
|
57 |
|
58 |
// an array to store current settings, to avoid passing them between functions
|
59 |
public $settings = array();
|
@@ -530,7 +530,7 @@ class SimpleSocialButtonsPR {
|
|
530 |
|
531 |
$_share_links = array();
|
532 |
foreach ( $arrButtons as $social_name => $priority ) {
|
533 |
-
if ( 'totalshare' == $social_name || 'viber' == $social_name || 'fblike' == $social_name || 'whatsapp' == $social_name ) {
|
534 |
continue; }
|
535 |
$_share_links[ $social_name ] = call_user_func( 'ssb_' . $social_name . '_generate_link', get_permalink() );
|
536 |
}
|
@@ -767,6 +767,34 @@ class SimpleSocialButtonsPR {
|
|
767 |
$arrButtonsCode[] = '<button class="simplesocial-msng-share" onclick="javascript:window.open( this.dataset.href, \'_blank\', \'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600\' );return false;" data-href="http://www.facebook.com/dialog/send?app_id='. $this->fb_app_id .'&redirect_uri=' . $link . '&link=' . $link . '&display=popup" ><span class="simplesocialtxt">Messenger</span></button> ';
|
768 |
}
|
769 |
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
770 |
}
|
771 |
}
|
772 |
|
@@ -950,7 +978,7 @@ class SimpleSocialButtonsPR {
|
|
950 |
|
951 |
counter = true,false
|
952 |
align = left ,right,centered,
|
953 |
-
order = googleplus,twitter,pinterest,fbshare,linkedin,reddit,whatsapp,viber,fblike
|
954 |
|
955 |
theme
|
956 |
theme1 = sm-round
|
@@ -1040,7 +1068,7 @@ class SimpleSocialButtonsPR {
|
|
1040 |
*/
|
1041 |
function generate_buttons_short_code( $short_code_theme, $short_code_order, $order = null, $show_count = false, $show_total = false, $extra_class = '' ) {
|
1042 |
|
1043 |
-
//googleplus,fbshare,twitter,pinterest,whatsapp,viber,reddit,linkedin
|
1044 |
|
1045 |
// define empty buttons code to use
|
1046 |
$ssb_buttonscode = '';
|
@@ -1313,6 +1341,34 @@ class SimpleSocialButtonsPR {
|
|
1313 |
}
|
1314 |
|
1315 |
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1316 |
}
|
1317 |
}
|
1318 |
|
@@ -1344,21 +1400,46 @@ class SimpleSocialButtonsPR {
|
|
1344 |
}
|
1345 |
|
1346 |
echo PHP_EOL . '<!-- Open Graph Meta Tags generated by Simple Social Buttons ' . $this->pluginVersion . ' -->' . PHP_EOL;
|
1347 |
-
|
1348 |
-
|
|
|
|
|
|
|
|
|
|
|
1349 |
echo '<meta property="og:url" content="'. get_permalink() .'" />' . PHP_EOL;
|
1350 |
-
|
|
|
|
|
1351 |
echo $this->get_og_image();
|
1352 |
|
1353 |
|
1354 |
echo '<meta name="twitter:card" content="summary_large_image" />' . PHP_EOL;
|
1355 |
-
|
1356 |
-
|
|
|
|
|
|
|
|
|
|
|
1357 |
echo $this->generate_twitter_image();
|
1358 |
|
1359 |
}
|
1360 |
|
1361 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1362 |
/**
|
1363 |
* Get the excerpt
|
1364 |
*
|
@@ -1367,6 +1448,9 @@ class SimpleSocialButtonsPR {
|
|
1367 |
* @return string
|
1368 |
*/
|
1369 |
function get_excerpt_by_id( $post_id ) {
|
|
|
|
|
|
|
1370 |
// Check if the post has an excerpt
|
1371 |
if( has_excerpt() ) {
|
1372 |
$excerpt_length = apply_filters( 'excerpt_length', 35 );
|
@@ -1393,6 +1477,9 @@ class SimpleSocialButtonsPR {
|
|
1393 |
*/
|
1394 |
public function get_content_images( $post ) {
|
1395 |
|
|
|
|
|
|
|
1396 |
$content = $post->post_content;
|
1397 |
$images = '';
|
1398 |
if ( preg_match_all( '`<img [^>]+>`', $content, $matches ) ) {
|
@@ -1456,6 +1543,10 @@ class SimpleSocialButtonsPR {
|
|
1456 |
*/
|
1457 |
public function get_twitter_content_images( $post ) {
|
1458 |
|
|
|
|
|
|
|
|
|
1459 |
$content = $post->post_content;
|
1460 |
$images = '';
|
1461 |
if ( preg_match_all( '`<img [^>]+>`', $content, $matches ) ) {
|
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.11
|
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.11';
|
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' );
|
57 |
|
58 |
// an array to store current settings, to avoid passing them between functions
|
59 |
public $settings = array();
|
530 |
|
531 |
$_share_links = array();
|
532 |
foreach ( $arrButtons as $social_name => $priority ) {
|
533 |
+
if ( 'totalshare' == $social_name || 'viber' == $social_name || 'fblike' == $social_name || 'whatsapp' == $social_name || 'print' == $social_name || 'email' == $social_name || 'messenger' == $social_name) {
|
534 |
continue; }
|
535 |
$_share_links[ $social_name ] = call_user_func( 'ssb_' . $social_name . '_generate_link', get_permalink() );
|
536 |
}
|
767 |
$arrButtonsCode[] = '<button class="simplesocial-msng-share" onclick="javascript:window.open( this.dataset.href, \'_blank\', \'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600\' );return false;" data-href="http://www.facebook.com/dialog/send?app_id='. $this->fb_app_id .'&redirect_uri=' . $link . '&link=' . $link . '&display=popup" ><span class="simplesocialtxt">Messenger</span></button> ';
|
768 |
}
|
769 |
break;
|
770 |
+
case 'email':
|
771 |
+
if ( $this->selected_theme == 'simple-icons' ) {
|
772 |
+
$arrButtonsCode[] = ' <button class="ssb_email-icon" onclick="javascript:window.location.href = this.dataset.href;return false;" class="simplesocial-email-share" data-href="mailto:?subject='. $title .'&body='. $permalink .'"><span class="simplesocialtxt">
|
773 |
+
<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" width="16px" height="11.9px" viewBox="-1214.1 1563.9 16 11.9" enable-background="new -1214.1 1563.9 16 11.9" xml:space="preserve">
|
774 |
+
<path d="M-1214.1,1565.2v1l8,4l8-4v-1c0-0.7-0.6-1.3-1.3-1.3h-13.4C-1213.5,1563.9-1214.1,1564.4-1214.1,1565.2z M-1214.1,1567.4v7.1c0,0.7,0.6,1.3,1.3,1.3h13.4c0.7,0,1.3-0.6,1.3-1.3v-7.1l-8,4L-1214.1,1567.4z"/> </svg> </span>
|
775 |
+
<span class="simplesocialtxt">Email</span>
|
776 |
+
</button>';
|
777 |
+
} else {
|
778 |
+
|
779 |
+
$arrButtonsCode[] = '<button onclick="javascript:window.location.href = this.dataset.href;return false;" class="simplesocial-email-share" data-href="mailto:?subject='. $title .'&body='. $permalink .'"><span class="simplesocialtxt">Email</span></button>';
|
780 |
+
}
|
781 |
+
break;
|
782 |
+
case 'print':
|
783 |
+
if ( $this->selected_theme == 'simple-icons' ) {
|
784 |
+
$arrButtonsCode[] = ' <button class="ssb_print-icon" onclick="javascript:window.print();return false;" class="simplesocial-email-share" ><span class="simplesocialtxt">
|
785 |
+
<span class="icon"> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" width="16px" height="13.7px" viewBox="-1296.9 1876.4 16 13.7" enable-background="new -1296.9 1876.4 16 13.7" xml:space="preserve"><g>
|
786 |
+
<path fill="#FFFFFF" d="M-1288.9,1879.7c2.3,0,4.6,0,6.9,0c0.4,0,0.7,0.1,0.9,0.5c0.1,0.2,0.1,0.4,0.1,0.6c0,1.7,0,3.4,0,5.1 c0,0.7-0.4,1.1-1.1,1c-0.6,0-1.2,0-1.8,0c-0.1,0-0.2,0-0.2,0.2c0,0.7,0,1.4,0,2c0,0.6-0.4,1-1,1c-0.1,0-0.3,0-0.4,0 c-2.5,0-4.9,0-7.4,0c-0.3,0-0.5,0-0.8-0.1c-0.3-0.2-0.5-0.5-0.5-0.9c0-0.7,0-1.4,0-2c0-0.2-0.1-0.2-0.2-0.2c-0.6,0-1.2,0-1.7,0 c-0.7,0-1-0.4-1-1c0-1.7,0-3.4,0-5.1c0-0.4,0.2-0.8,0.6-0.9c0.2-0.1,0.3-0.1,0.5-0.1C-1293.5,1879.7-1291.2,1879.7-1288.9,1879.7z M-1288.9,1884.9C-1288.9,1884.9-1288.9,1884.9-1288.9,1884.9c-1.4,0-2.8,0-4.2,0c-0.1,0-0.2,0-0.2,0.2c0,0.3,0,0.7,0,1 c0,1,0,2,0,3c0,0.3,0.1,0.4,0.4,0.4c2.5,0,5.1,0,7.6,0c0.1,0,0.3,0,0.4,0c0.2,0,0.3-0.2,0.3-0.3c0-1.3,0-2.7,0-4 c0-0.2,0-0.2-0.2-0.2C-1286.1,1884.9-1287.5,1884.9-1288.9,1884.9z M-1284.2,1882.4c0.4,0,0.7-0.3,0.7-0.7c0-0.4-0.3-0.7-0.8-0.7 c-0.4,0-0.7,0.3-0.7,0.7C-1284.9,1882.1-1284.6,1882.4-1284.2,1882.4z"/>
|
787 |
+
<path fill="#FFFFFF" d="M-1283.9,1879c-0.2,0-0.4,0-0.5,0c-3.1,0-6.2,0-9.3,0c-0.1,0-0.2,0-0.2-0.2c0-0.5,0-1,0-1.5 c0-0.5,0.4-1,0.9-1c0.1,0,0.2,0,0.3,0c2.6,0,5.2,0,7.8,0c0.6,0,1,0.4,1,1c0,0.5,0,0.9,0,1.4 C-1283.9,1878.9-1283.9,1879-1283.9,1879z"/>
|
788 |
+
<path fill="#FFFFFF" d="M-1291.9,1886.9c0-0.2,0-0.4,0-0.6c2,0,4,0,6,0c0,0.2,0,0.4,0,0.6 C-1287.9,1886.9-1289.9,1886.9-1291.9,1886.9z"/>
|
789 |
+
<path fill="#FFFFFF" d="M-1289.6,1888.2c-0.7,0-1.4,0-2.1,0c-0.1,0-0.2,0-0.2-0.2c0-0.1,0-0.2,0-0.3c0-0.1,0-0.2,0.2-0.2 c0.1,0,0.2,0,0.3,0c1.3,0,2.6,0,3.9,0c0.3,0,0.3,0,0.3,0.3c0,0.4,0,0.4-0.4,0.4C-1288.3,1888.2-1288.9,1888.2-1289.6,1888.2 C-1289.6,1888.2-1289.6,1888.2-1289.6,1888.2z"/>
|
790 |
+
</g></svg></span>
|
791 |
+
<span class="simplesocialtxt">Print</span>
|
792 |
+
</button>';
|
793 |
+
} else {
|
794 |
+
|
795 |
+
$arrButtonsCode[] = '<button onclick="javascript:window.print();return false;" class="simplesocial-print-share" ><span class="simplesocialtxt">Print</span></button>';
|
796 |
+
}
|
797 |
+
break;
|
798 |
}
|
799 |
}
|
800 |
|
978 |
|
979 |
counter = true,false
|
980 |
align = left ,right,centered,
|
981 |
+
order = googleplus,twitter,pinterest,fbshare,linkedin,reddit,whatsapp,viber,fblike,messenger,email
|
982 |
|
983 |
theme
|
984 |
theme1 = sm-round
|
1068 |
*/
|
1069 |
function generate_buttons_short_code( $short_code_theme, $short_code_order, $order = null, $show_count = false, $show_total = false, $extra_class = '' ) {
|
1070 |
|
1071 |
+
//googleplus,fbshare,twitter,pinterest,whatsapp,viber,reddit,linkedin,messenger,email,print
|
1072 |
|
1073 |
// define empty buttons code to use
|
1074 |
$ssb_buttonscode = '';
|
1341 |
}
|
1342 |
|
1343 |
break;
|
1344 |
+
case 'email':
|
1345 |
+
if ( $this->selected_theme == 'simple-icons' ) {
|
1346 |
+
$arrButtonsCode[] = ' <button class="ssb_email-icon" onclick="javascript:window.location.href = this.dataset.href;return false;" class="simplesocial-email-share" data-href="mailto:?subject='. $title .'&body='. $permalink .'"><span class="simplesocialtxt">
|
1347 |
+
<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" width="16px" height="11.9px" viewBox="-1214.1 1563.9 16 11.9" enable-background="new -1214.1 1563.9 16 11.9" xml:space="preserve">
|
1348 |
+
<path d="M-1214.1,1565.2v1l8,4l8-4v-1c0-0.7-0.6-1.3-1.3-1.3h-13.4C-1213.5,1563.9-1214.1,1564.4-1214.1,1565.2z M-1214.1,1567.4v7.1c0,0.7,0.6,1.3,1.3,1.3h13.4c0.7,0,1.3-0.6,1.3-1.3v-7.1l-8,4L-1214.1,1567.4z"/> </svg> </span>
|
1349 |
+
<span class="simplesocialtxt">Email</span>
|
1350 |
+
</button>';
|
1351 |
+
} else {
|
1352 |
+
|
1353 |
+
$arrButtonsCode[] = '<button onclick="javascript:window.location.href = this.dataset.href;return false;" class="simplesocial-email-share" data-href="mailto:?subject='. $title .'&body='. $permalink .'"><span class="simplesocialtxt">Email</span></button>';
|
1354 |
+
}
|
1355 |
+
break;
|
1356 |
+
case 'print':
|
1357 |
+
if ( $this->selected_theme == 'simple-icons' ) {
|
1358 |
+
$arrButtonsCode[] = ' <button class="ssb_print-icon" onclick="javascript:window.print();return false;" class="simplesocial-email-share" ><span class="simplesocialtxt">
|
1359 |
+
<span class="icon"> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" width="16px" height="13.7px" viewBox="-1296.9 1876.4 16 13.7" enable-background="new -1296.9 1876.4 16 13.7" xml:space="preserve"><g>
|
1360 |
+
<path fill="#FFFFFF" d="M-1288.9,1879.7c2.3,0,4.6,0,6.9,0c0.4,0,0.7,0.1,0.9,0.5c0.1,0.2,0.1,0.4,0.1,0.6c0,1.7,0,3.4,0,5.1 c0,0.7-0.4,1.1-1.1,1c-0.6,0-1.2,0-1.8,0c-0.1,0-0.2,0-0.2,0.2c0,0.7,0,1.4,0,2c0,0.6-0.4,1-1,1c-0.1,0-0.3,0-0.4,0 c-2.5,0-4.9,0-7.4,0c-0.3,0-0.5,0-0.8-0.1c-0.3-0.2-0.5-0.5-0.5-0.9c0-0.7,0-1.4,0-2c0-0.2-0.1-0.2-0.2-0.2c-0.6,0-1.2,0-1.7,0 c-0.7,0-1-0.4-1-1c0-1.7,0-3.4,0-5.1c0-0.4,0.2-0.8,0.6-0.9c0.2-0.1,0.3-0.1,0.5-0.1C-1293.5,1879.7-1291.2,1879.7-1288.9,1879.7z M-1288.9,1884.9C-1288.9,1884.9-1288.9,1884.9-1288.9,1884.9c-1.4,0-2.8,0-4.2,0c-0.1,0-0.2,0-0.2,0.2c0,0.3,0,0.7,0,1 c0,1,0,2,0,3c0,0.3,0.1,0.4,0.4,0.4c2.5,0,5.1,0,7.6,0c0.1,0,0.3,0,0.4,0c0.2,0,0.3-0.2,0.3-0.3c0-1.3,0-2.7,0-4 c0-0.2,0-0.2-0.2-0.2C-1286.1,1884.9-1287.5,1884.9-1288.9,1884.9z M-1284.2,1882.4c0.4,0,0.7-0.3,0.7-0.7c0-0.4-0.3-0.7-0.8-0.7 c-0.4,0-0.7,0.3-0.7,0.7C-1284.9,1882.1-1284.6,1882.4-1284.2,1882.4z"/>
|
1361 |
+
<path fill="#FFFFFF" d="M-1283.9,1879c-0.2,0-0.4,0-0.5,0c-3.1,0-6.2,0-9.3,0c-0.1,0-0.2,0-0.2-0.2c0-0.5,0-1,0-1.5 c0-0.5,0.4-1,0.9-1c0.1,0,0.2,0,0.3,0c2.6,0,5.2,0,7.8,0c0.6,0,1,0.4,1,1c0,0.5,0,0.9,0,1.4 C-1283.9,1878.9-1283.9,1879-1283.9,1879z"/>
|
1362 |
+
<path fill="#FFFFFF" d="M-1291.9,1886.9c0-0.2,0-0.4,0-0.6c2,0,4,0,6,0c0,0.2,0,0.4,0,0.6 C-1287.9,1886.9-1289.9,1886.9-1291.9,1886.9z"/>
|
1363 |
+
<path fill="#FFFFFF" d="M-1289.6,1888.2c-0.7,0-1.4,0-2.1,0c-0.1,0-0.2,0-0.2-0.2c0-0.1,0-0.2,0-0.3c0-0.1,0-0.2,0.2-0.2 c0.1,0,0.2,0,0.3,0c1.3,0,2.6,0,3.9,0c0.3,0,0.3,0,0.3,0.3c0,0.4,0,0.4-0.4,0.4C-1288.3,1888.2-1288.9,1888.2-1289.6,1888.2 C-1289.6,1888.2-1289.6,1888.2-1289.6,1888.2z"/>
|
1364 |
+
</g></svg></span>
|
1365 |
+
<span class="simplesocialtxt">Print</span>
|
1366 |
+
</button>';
|
1367 |
+
} else {
|
1368 |
+
|
1369 |
+
$arrButtonsCode[] = '<button onclick="javascript:window.print();return false;" class="simplesocial-print-share" ><span class="simplesocialtxt">Print</span></button>';
|
1370 |
+
}
|
1371 |
+
break;
|
1372 |
}
|
1373 |
}
|
1374 |
|
1400 |
}
|
1401 |
|
1402 |
echo PHP_EOL . '<!-- Open Graph Meta Tags generated by Simple Social Buttons ' . $this->pluginVersion . ' -->' . PHP_EOL;
|
1403 |
+
if ($this->og_get_title()) {
|
1404 |
+
echo '<meta property="og:title" content="'. get_the_title() ." - ". get_bloginfo( 'name' ) .'" />' . PHP_EOL;
|
1405 |
+
}
|
1406 |
+
|
1407 |
+
if ( $this->og_get_description() ) {
|
1408 |
+
echo '<meta property="og:description" content="'. $this->og_get_description() .'" />' . PHP_EOL;
|
1409 |
+
}
|
1410 |
echo '<meta property="og:url" content="'. get_permalink() .'" />' . PHP_EOL;
|
1411 |
+
if ( $this->og_get_blog() ) {
|
1412 |
+
echo '<meta property="og:site_name" content="'. $this->og_get_blog() .'" />' . PHP_EOL;
|
1413 |
+
}
|
1414 |
echo $this->get_og_image();
|
1415 |
|
1416 |
|
1417 |
echo '<meta name="twitter:card" content="summary_large_image" />' . PHP_EOL;
|
1418 |
+
if ( $this->og_get_description() ) {
|
1419 |
+
echo '<meta name="twitter:description" content="'. $this->get_excerpt_by_id( get_the_id() ) .'" />' . PHP_EOL;
|
1420 |
+
}
|
1421 |
+
|
1422 |
+
if ( $this->og_get_title() ) {
|
1423 |
+
echo '<meta name="twitter:title" content="'. get_the_title() ." - ". get_bloginfo( 'name' ) .'" />' . PHP_EOL;
|
1424 |
+
}
|
1425 |
echo $this->generate_twitter_image();
|
1426 |
|
1427 |
}
|
1428 |
|
1429 |
|
1430 |
+
function og_get_title() {
|
1431 |
+
return get_the_title() ." - ". get_bloginfo( 'name' );
|
1432 |
+
}
|
1433 |
+
|
1434 |
+
function og_get_description() {
|
1435 |
+
return $this->get_excerpt_by_id( get_the_id() );
|
1436 |
+
}
|
1437 |
+
|
1438 |
+
function og_get_blog() {
|
1439 |
+
return get_bloginfo( 'name' ) ;
|
1440 |
+
}
|
1441 |
+
|
1442 |
+
|
1443 |
/**
|
1444 |
* Get the excerpt
|
1445 |
*
|
1448 |
* @return string
|
1449 |
*/
|
1450 |
function get_excerpt_by_id( $post_id ) {
|
1451 |
+
|
1452 |
+
if( ! $post_id )
|
1453 |
+
return;
|
1454 |
// Check if the post has an excerpt
|
1455 |
if( has_excerpt() ) {
|
1456 |
$excerpt_length = apply_filters( 'excerpt_length', 35 );
|
1477 |
*/
|
1478 |
public function get_content_images( $post ) {
|
1479 |
|
1480 |
+
if( ! $post )
|
1481 |
+
return;
|
1482 |
+
|
1483 |
$content = $post->post_content;
|
1484 |
$images = '';
|
1485 |
if ( preg_match_all( '`<img [^>]+>`', $content, $matches ) ) {
|
1543 |
*/
|
1544 |
public function get_twitter_content_images( $post ) {
|
1545 |
|
1546 |
+
if ( ! $post ) {
|
1547 |
+
return;
|
1548 |
+
}
|
1549 |
+
|
1550 |
$content = $post->post_content;
|
1551 |
$images = '';
|
1552 |
if ( preg_match_all( '`<img [^>]+>`', $content, $matches ) ) {
|
ssb-social-counts/facebook.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
function ssb_format_fbshare_response( $response ) {
|
5 |
|
6 |
$formatted_response = json_decode( $response , true );
|
7 |
-
$likes = $formatted_response['og_object']['likes']['summary']['total_count'];
|
8 |
$comments = $formatted_response['share']['comment_count'];
|
9 |
$shares = $formatted_response['share']['share_count'];
|
10 |
$total = $likes + $comments + $shares;
|
4 |
function ssb_format_fbshare_response( $response ) {
|
5 |
|
6 |
$formatted_response = json_decode( $response , true );
|
7 |
+
$likes = isset( $formatted_response['og_object'] ) ? $formatted_response['og_object']['likes']['summary']['total_count'] : 0;
|
8 |
$comments = $formatted_response['share']['comment_count'];
|
9 |
$shares = $formatted_response['share']['share_count'];
|
10 |
$total = $likes + $comments + $shares;
|