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.7 |
Comparing to | |
See all releases |
Code changes from version 2.0.6 to 2.0.7
- assets/css/front.css +192 -105
- classes/ssb-settings.php +529 -517
- inc/custom-css.php +100 -82
- readme.txt +40 -33
- simple-social-buttons.php +17 -11
assets/css/front.css
CHANGED
@@ -8,8 +8,6 @@
|
|
8 |
font-weight: normal;
|
9 |
font-style: normal;
|
10 |
}
|
11 |
-
|
12 |
-
@import url('https://fonts.googleapis.com/css?family=Open+Sans');
|
13 |
div.simplesocialbuttons { height: auto; margin: 5px auto 5px -5px; text-align: left; clear: left; font-size: 0; }
|
14 |
div.simplesocialbutton { float: left; }
|
15 |
div.ssb-button-googleplus { width: 100px; }
|
@@ -29,7 +27,7 @@ div.ssb-button-pinterest { width: 100px; }
|
|
29 |
margin: 5px;
|
30 |
-webkit-box-shadow: none;
|
31 |
box-shadow: none;
|
32 |
-
font-family: '
|
33 |
-webkit-box-sizing: border-box;
|
34 |
box-sizing: border-box;
|
35 |
font-weight: normal;
|
@@ -383,7 +381,8 @@ div[class*="simplesocialbuttons-float"].simplesocial-simple-icons.simplesocialbu
|
|
383 |
.simplesocial-simple-icons .ssb_tweet-icon{
|
384 |
position: relative;
|
385 |
height: 20px;
|
386 |
-
box-sizing: border-box;
|
|
|
387 |
padding: 1px 8px 1px 6px;
|
388 |
background-color: #1b95e0;
|
389 |
color: #fff;
|
@@ -418,14 +417,16 @@ div[class*="simplesocialbuttons-float"].simplesocial-simple-icons.simplesocialbu
|
|
418 |
.simplesocial-simple-icons .ssb_gplus-icon .icon{
|
419 |
border: 1px solid #d5d5d5;
|
420 |
border: 1px solid rgba(0,0,0,.17);
|
421 |
-
-webkit-border-radius: 2px;
|
422 |
border-radius: 2px;
|
423 |
-webkit-box-shadow: 0 1px 0 rgba(0,0,0,.05);
|
424 |
box-shadow: 0 1px 0 rgba(0,0,0,.05);
|
425 |
-webkit-box-sizing: border-box;
|
426 |
box-sizing: border-box;
|
427 |
-webkit-transition: background-color .218s,border-color .218s,box-shadow .218s;
|
|
|
|
|
428 |
transition: background-color .218s,border-color .218s,box-shadow .218s;
|
|
|
429 |
-webkit-user-select: none;
|
430 |
-webkit-appearance: none;
|
431 |
background-color: #fff;
|
@@ -462,7 +463,6 @@ div[class*="simplesocialbuttons-float"].simplesocial-simple-icons.simplesocialbu
|
|
462 |
position: relative;
|
463 |
background: #fff;
|
464 |
border: 1px solid #ccc;
|
465 |
-
-webkit-border-radius: 2px;
|
466 |
border-radius: 2px;
|
467 |
display: inline-block;
|
468 |
margin-left: 5px;
|
@@ -566,7 +566,6 @@ div[class*="simplesocialbuttons-float"].simplesocial-simple-icons.simplesocialbu
|
|
566 |
-webkit-border-top-right-radius: 2px;
|
567 |
-webkit-border-bottom-right-radius: 2px;
|
568 |
background-color: #0077b5;
|
569 |
-
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#0077b5), color-stop(100%,#0077b5));
|
570 |
background-image: -webkit-linear-gradient(top, #0077b5 0%, #0077b5 100%);
|
571 |
font: bold 11px Arial, Helvetica, sans-serif;
|
572 |
line-height: 20px;
|
@@ -579,7 +578,6 @@ div[class*="simplesocialbuttons-float"].simplesocial-simple-icons.simplesocialbu
|
|
579 |
border-bottom-color: #066094;
|
580 |
border-left-color: #066094;
|
581 |
background-color: #066094;
|
582 |
-
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#066094), color-stop(100%,#066094));
|
583 |
background-image: -webkit-linear-gradient(top, #066094 0%, #066094 100%);
|
584 |
}
|
585 |
.simplesocial-simple-icons .ssb_linkedin-icon .ssb_counter{
|
@@ -641,7 +639,8 @@ div[class*="simplesocialbuttons-float"].simplesocial-simple-icons.simplesocialbu
|
|
641 |
}
|
642 |
.simplesocial-simple-icons .ssb_pinterest-icon:hover .simplesocialtxt{
|
643 |
background-color: #aa0719;
|
644 |
-
box-shadow: none;
|
|
|
645 |
color: #fff;
|
646 |
}
|
647 |
.simplesocial-simple-icons .ssb_pinterest-icon .icon{
|
@@ -796,9 +795,9 @@ div[class*="simplesocialbuttons-float"].simplesocialbuttons.simplesocial-simple-
|
|
796 |
border-width: 1px;
|
797 |
border-color: rgb(222, 222, 222);
|
798 |
border-radius: 4px;
|
799 |
-
background-image: -moz-linear-gradient(
|
800 |
-
background-image: -webkit-linear-gradient(
|
801 |
-
background-image: -ms-linear-gradient(
|
802 |
height: 38px;
|
803 |
line-height: 26px;
|
804 |
padding: 4px 15px 4px 20px;
|
@@ -814,9 +813,9 @@ div[class*="simplesocialbuttons-float"].simplesocialbuttons.simplesocial-simple-
|
|
814 |
box-shadow: none;
|
815 |
}
|
816 |
.simplesocialbuttons.simplesocial-sm-round button:hover{
|
817 |
-
background-image: -moz-linear-gradient(
|
818 |
-
background-image: -webkit-linear-gradient(
|
819 |
-
background-image: -ms-linear-gradient(
|
820 |
-webkit-box-shadow: none;
|
821 |
box-shadow: none;
|
822 |
}
|
@@ -1057,67 +1056,83 @@ div[class*="simplesocialbuttons-float"].simplesocialbuttons.simplesocial-simple-
|
|
1057 |
transition: all 0.2s ease-in-out;
|
1058 |
}
|
1059 |
.simplesocialbuttons.simplesocial-round-btm-border button.simplesocial-fb-share {
|
1060 |
-
box-shadow: inset 0px 0px 0px 0px #43609c, 0px 2px 0px 0px #43609c, 0px 0px 5px 0px rgba(0, 0, 0, 0.13);
|
|
|
1061 |
color: #43609c;
|
1062 |
}
|
1063 |
.simplesocialbuttons.simplesocial-round-btm-border button.simplesocial-fb-share:hover{
|
1064 |
-
box-shadow: inset 0px -40px 0px 0px #43609c, 0px 2px 0px 0px #43609c, 0px 0px 5px 0px rgba(0, 0, 0, 0.13);
|
|
|
1065 |
color: #fff;
|
1066 |
}
|
1067 |
.simplesocialbuttons.simplesocial-round-btm-border button.simplesocial-twt-share {
|
1068 |
-
box-shadow: inset 0px 0px 0px 0px #1da1f2, 0px 2px 0px 0px #1da1f2, 0px 0px 5px 0px rgba(0, 0, 0, 0.13);
|
|
|
1069 |
color: #1da1f2;
|
1070 |
}
|
1071 |
.simplesocialbuttons.simplesocial-round-btm-border button.simplesocial-twt-share:hover{
|
1072 |
-
box-shadow: inset 0px -40px 0px 0px #1da1f2, 0px 2px 0px 0px #1da1f2, 0px 0px 5px 0px rgba(0, 0, 0, 0.13);
|
|
|
1073 |
color: #fff;
|
1074 |
}
|
1075 |
.simplesocialbuttons.simplesocial-round-btm-border button.simplesocial-gplus-share {
|
1076 |
-
box-shadow: inset 0px 0px 0px 0px #db4437, 0px 2px 0px 0px #db4437, 0px 0px 5px 0px rgba(0, 0, 0, 0.13);
|
|
|
1077 |
color: #db4437;
|
1078 |
}
|
1079 |
.simplesocialbuttons.simplesocial-round-btm-border button.simplesocial-gplus-share:hover{
|
1080 |
-
box-shadow: inset 0px -40px 0px 0px #db4437, 0px 2px 0px 0px #db4437, 0px 0px 5px 0px rgba(0, 0, 0, 0.13);
|
|
|
1081 |
color: #fff;
|
1082 |
}
|
1083 |
.simplesocialbuttons.simplesocial-round-btm-border button.simplesocial-whatsapp-share {
|
1084 |
-
box-shadow: inset 0px 0px 0px 0px #34AF23, 0px 2px 0px 0px #34AF23, 0px 0px 5px 0px rgba(0, 0, 0, 0.13);
|
|
|
1085 |
color: #34AF23;
|
1086 |
}
|
1087 |
.simplesocialbuttons.simplesocial-round-btm-border button.simplesocial-whatsapp-share:hover{
|
1088 |
-
box-shadow: inset 0px -40px 0px 0px #34AF23, 0px 2px 0px 0px #34AF23, 0px 0px 5px 0px rgba(0, 0, 0, 0.13);
|
|
|
1089 |
color: #fff;
|
1090 |
}
|
1091 |
.simplesocialbuttons.simplesocial-round-btm-border button.simplesocial-viber-share {
|
1092 |
-
box-shadow: inset 0px 0px 0px 0px #59267c, 0px 2px 0px 0px #59267c, 0px 0px 5px 0px rgba(0, 0, 0, 0.13);
|
|
|
1093 |
color: #59267c;
|
1094 |
}
|
1095 |
.simplesocialbuttons.simplesocial-round-btm-border button.simplesocial-viber-share:hover{
|
1096 |
-
box-shadow: inset 0px -40px 0px 0px #59267c, 0px 2px 0px 0px #59267c, 0px 0px 5px 0px rgba(0, 0, 0, 0.13);
|
|
|
1097 |
color: #fff;
|
1098 |
}
|
1099 |
.simplesocialbuttons.simplesocial-round-btm-border button.simplesocial-reddit-share {
|
1100 |
-
box-shadow: inset 0px 0px 0px 0px #ff4500, 0px 2px 0px 0px #ff4500, 0px 0px 5px 0px rgba(0, 0, 0, 0.13);
|
|
|
1101 |
color: #ff4500;
|
1102 |
}
|
1103 |
.simplesocialbuttons.simplesocial-round-btm-border button.simplesocial-reddit-share:hover{
|
1104 |
-
box-shadow: inset 0px -40px 0px 0px #ff4500, 0px 2px 0px 0px #ff4500, 0px 0px 5px 0px rgba(0, 0, 0, 0.13);
|
|
|
1105 |
color: #fff;
|
1106 |
}
|
1107 |
.simplesocialbuttons.simplesocial-round-btm-border button.simplesocial-linkedin-share {
|
1108 |
-
box-shadow: inset 0px 0px 0px 0px #0077B5, 0px 2px 0px 0px #0077B5, 0px 0px 5px 0px rgba(0, 0, 0, 0.13);
|
|
|
1109 |
color: #0077B5;
|
1110 |
}
|
1111 |
.simplesocialbuttons.simplesocial-round-btm-border button.simplesocial-linkedin-share:hover{
|
1112 |
-
box-shadow: inset 0px -40px 0px 0px #0077B5, 0px 2px 0px 0px #0077B5, 0px 0px 5px 0px rgba(0, 0, 0, 0.13);
|
|
|
1113 |
color: #fff;
|
1114 |
}
|
1115 |
.simplesocialbuttons.simplesocial-round-btm-border button.simplesocial-pinterest-share {
|
1116 |
-
box-shadow: inset 0px 0px 0px 0px #C92228, 0px 2px 0px 0px #C92228, 0px 0px 5px 0px rgba(0, 0, 0, 0.13);
|
|
|
1117 |
color: #C92228;
|
1118 |
}
|
1119 |
.simplesocialbuttons.simplesocial-round-btm-border button.simplesocial-pinterest-share:hover{
|
1120 |
-
box-shadow: inset 0px -40px 0px 0px #C92228, 0px 2px 0px 0px #C92228, 0px 0px 5px 0px rgba(0, 0, 0, 0.13);
|
|
|
1121 |
color: #fff;
|
1122 |
}
|
1123 |
/*===== End of style 4 ======*/
|
@@ -1144,59 +1159,75 @@ div[class*="simplesocialbuttons-float"].simplesocialbuttons.simplesocial-simple-
|
|
1144 |
}
|
1145 |
.simplesocialbuttons.simplesocial-flat-button-border button.simplesocial-fb-share {
|
1146 |
background: #43609c;
|
1147 |
-
box-shadow: inset 0px 0px 0px 0px #354e83, 0px 3px 0px 0px #354e83;
|
|
|
1148 |
}
|
1149 |
.simplesocialbuttons.simplesocial-flat-button-border button.simplesocial-fb-share:hover {
|
1150 |
-
box-shadow: inset 0px -40px 0px 0px #354e83, 0px 3px 0px 0px #354e83;
|
|
|
1151 |
}
|
1152 |
.simplesocialbuttons.simplesocial-flat-button-border button.simplesocial-twt-share {
|
1153 |
background: #1da1f2;
|
1154 |
-
box-shadow: inset 0px 0px 0px 0px #1889cf, 0px 3px 0px 0px #1889cf;
|
|
|
1155 |
}
|
1156 |
.simplesocialbuttons.simplesocial-flat-button-border button.simplesocial-twt-share:hover {
|
1157 |
-
box-shadow: inset 0px -40px 0px 0px #1889cf, 0px 3px 0px 0px #1889cf;
|
|
|
1158 |
}
|
1159 |
.simplesocialbuttons.simplesocial-flat-button-border button.simplesocial-gplus-share {
|
1160 |
background: #db4437;
|
1161 |
-
box-shadow: inset 0px 0px 0px 0px #bb372b, 0px 3px 0px 0px #bb372b;
|
|
|
1162 |
}
|
1163 |
.simplesocialbuttons.simplesocial-flat-button-border button.simplesocial-gplus-share:hover {
|
1164 |
-
box-shadow: inset 0px -40px 0px 0px #bb372b, 0px 3px 0px 0px #bb372b;
|
|
|
1165 |
}
|
1166 |
.simplesocialbuttons.simplesocial-flat-button-border button.simplesocial-whatsapp-share {
|
1167 |
background: #34AF23;
|
1168 |
-
box-shadow: inset 0px 0px 0px 0px #176e0b, 0px 3px 0px 0px #176e0b;
|
|
|
1169 |
}
|
1170 |
.simplesocialbuttons.simplesocial-flat-button-border button.simplesocial-whatsapp-share:hover {
|
1171 |
-
box-shadow: inset 0px -40px 0px 0px #176e0b, 0px 3px 0px 0px #176e0b;
|
|
|
1172 |
}
|
1173 |
.simplesocialbuttons.simplesocial-flat-button-border button.simplesocial-viber-share {
|
1174 |
background: #59267c;
|
1175 |
-
box-shadow: inset 0px 0px 0px 0px #3e115d, 0px 3px 0px 0px #3e115d;
|
|
|
1176 |
}
|
1177 |
.simplesocialbuttons.simplesocial-flat-button-border button.simplesocial-viber-share:hover {
|
1178 |
-
box-shadow: inset 0px -40px 0px 0px #3e115d, 0px 3px 0px 0px #3e115d;
|
|
|
1179 |
}
|
1180 |
.simplesocialbuttons.simplesocial-flat-button-border button.simplesocial-reddit-share {
|
1181 |
background: #ff4500;
|
1182 |
-
box-shadow: inset 0px 0px 0px 0px #ce3b04, 0px 3px 0px 0px #ce3b04;
|
|
|
1183 |
}
|
1184 |
.simplesocialbuttons.simplesocial-flat-button-border button.simplesocial-reddit-share:hover {
|
1185 |
-
box-shadow: inset 0px -40px 0px 0px #ce3b04, 0px 3px 0px 0px #ce3b04;
|
|
|
1186 |
}
|
1187 |
.simplesocialbuttons.simplesocial-flat-button-border button.simplesocial-linkedin-share {
|
1188 |
background: #0077B5;
|
1189 |
-
box-shadow: inset 0px 0px 0px 0px #044568, 0px 3px 0px 0px #044568;
|
|
|
1190 |
}
|
1191 |
.simplesocialbuttons.simplesocial-flat-button-border button.simplesocial-linkedin-share:hover {
|
1192 |
-
box-shadow: inset 0px -40px 0px 0px #044568, 0px 3px 0px 0px #044568;
|
|
|
1193 |
}
|
1194 |
.simplesocialbuttons.simplesocial-flat-button-border button.simplesocial-pinterest-share {
|
1195 |
background: #C92228;
|
1196 |
-
box-shadow: inset 0px 0px 0px 0px #af040a, 0px 3px 0px 0px #af040a;
|
|
|
1197 |
}
|
1198 |
.simplesocialbuttons.simplesocial-flat-button-border button.simplesocial-pinterest-share:hover {
|
1199 |
-
box-shadow: inset 0px -40px 0px 0px #af040a, 0px 3px 0px 0px #af040a;
|
|
|
1200 |
}
|
1201 |
|
1202 |
|
@@ -1360,7 +1391,6 @@ div[class*="simplesocialbuttons-float"].simplesocialbuttons.simplesocial-simple-
|
|
1360 |
-webkit-animation-timing-function: ease;
|
1361 |
-moz-animation-timing-function: ease;
|
1362 |
-webkit-animation-fill-mode: forwards;
|
1363 |
-
-moz-animation-fill-mode: forwards;
|
1364 |
animation-fill-mode: forwards;
|
1365 |
}
|
1366 |
@keyframes ssb_slidetop {
|
@@ -1392,46 +1422,60 @@ div[class*="simplesocialbuttons-float"].simplesocialbuttons.simplesocial-simple-
|
|
1392 |
opacity: 1;
|
1393 |
}
|
1394 |
.simplesocialbuttons_inline button:nth-child(2),.simplesocialbuttons_inline .ssb_total_counter:nth-child(2){
|
1395 |
-
animation-delay: 0.2s;
|
|
|
1396 |
}
|
1397 |
.simplesocialbuttons_inline button:nth-child(3),.simplesocialbuttons_inline .ssb_total_counter:nth-child(3){
|
1398 |
-
animation-delay: 0.4s;
|
|
|
1399 |
}
|
1400 |
.simplesocialbuttons_inline button:nth-child(4),.simplesocialbuttons_inline .ssb_total_counter:nth-child(4){
|
1401 |
-
animation-delay: 0.6s;
|
|
|
1402 |
}
|
1403 |
.simplesocialbuttons_inline button:nth-child(5),.simplesocialbuttons_inline .ssb_total_counter:nth-child(5){
|
1404 |
-
animation-delay: 0.8s;
|
|
|
1405 |
}
|
1406 |
.simplesocialbuttons_inline button:nth-child(6),.simplesocialbuttons_inline .ssb_total_counter:nth-child(6){
|
1407 |
-
animation-delay: 1s;
|
|
|
1408 |
}
|
1409 |
.simplesocialbuttons_inline button:nth-child(7),.simplesocialbuttons_inline .ssb_total_counter:nth-child(7){
|
1410 |
-
animation-delay: 1.2s;
|
|
|
1411 |
}
|
1412 |
.simplesocialbuttons_inline button:nth-child(8),.simplesocialbuttons_inline .ssb_total_counter:nth-child(8){
|
1413 |
-
animation-delay: 1.4s;
|
|
|
1414 |
}
|
1415 |
.simplesocialbuttons_inline button:nth-child(9),.simplesocialbuttons_inline .ssb_total_counter:nth-child(9){
|
1416 |
-
animation-delay: 1.6s;
|
|
|
1417 |
}
|
1418 |
.simplesocialbuttons_inline button:nth-child(10),.simplesocialbuttons_inline .ssb_total_counter:nth-child(10){
|
1419 |
-
animation-delay: 1.8s;
|
|
|
1420 |
}
|
1421 |
.simplesocialbuttons_inline button:nth-child(11),.simplesocialbuttons_inline .ssb_total_counter:nth-child(11){
|
1422 |
-
animation-delay: 2s;
|
|
|
1423 |
}
|
1424 |
.simplesocialbuttons_inline button:nth-child(12),.simplesocialbuttons_inline .ssb_total_counter:nth-child(12){
|
1425 |
-
animation-delay: 2.2s;
|
|
|
1426 |
}
|
1427 |
.simplesocialbuttons_inline button:nth-child(13),.simplesocialbuttons_inline .ssb_total_counter:nth-child(13){
|
1428 |
-
animation-delay: 2.4s;
|
|
|
1429 |
}
|
1430 |
.simplesocialbuttons_inline button:nth-child(14),.simplesocialbuttons_inline .ssb_total_counter:nth-child(14){
|
1431 |
-
animation-delay: 2.6s;
|
|
|
1432 |
}
|
1433 |
.simplesocialbuttons_inline button:nth-child(15),.simplesocialbuttons_inline .ssb_total_counter:nth-child(15){
|
1434 |
-
animation-delay: 2.8s;
|
|
|
1435 |
}
|
1436 |
|
1437 |
|
@@ -1471,9 +1515,10 @@ div[class*="simplesocialbuttons-float"].simplesocialbuttons.simplesocial-simple-
|
|
1471 |
min-width: 24px;
|
1472 |
text-align: center;
|
1473 |
line-height: normal;
|
1474 |
-
box-sizing: border-box;
|
|
|
1475 |
overflow: hidden;
|
1476 |
-
font-family: '
|
1477 |
line-height: 14px;
|
1478 |
}
|
1479 |
.simplesocialbuttons.simplesocial-round-txt button.simplesocial-fb-share .ssb_counter{
|
@@ -1512,9 +1557,9 @@ div[class*="simplesocialbuttons-float"].simplesocialbuttons.simplesocial-simple-
|
|
1512 |
text-align: center;
|
1513 |
height: 36px;
|
1514 |
line-height: 36px;
|
1515 |
-
background-image: -
|
1516 |
-
background-image: -
|
1517 |
-
background-image:
|
1518 |
border-left: 1px solid #dedede;
|
1519 |
border-radius: 0 3px 3px 0;
|
1520 |
}
|
@@ -1718,7 +1763,7 @@ div[class*="simplesocialbuttons-float"].simplesocialbuttons.simplesocial-simple-
|
|
1718 |
border-right-color: #db4437;
|
1719 |
}
|
1720 |
.ssb_counter{
|
1721 |
-
font-family: '
|
1722 |
}
|
1723 |
.simplesocialbuttons.simplesocial-round-icon button .ssb_counter {
|
1724 |
position: absolute;
|
@@ -1736,7 +1781,8 @@ div[class*="simplesocialbuttons-float"].simplesocialbuttons.simplesocial-simple-
|
|
1736 |
text-align: center;
|
1737 |
line-height: 15px;
|
1738 |
padding: 0;
|
1739 |
-
box-sizing: border-box;
|
|
|
1740 |
}
|
1741 |
.simplesocialbuttons.simplesocial-round-icon button.simplesocial-fb-share .ssb_counter{
|
1742 |
border-color: #43609c;
|
@@ -1963,7 +2009,8 @@ div.simplesocialbuttons.simplesocialbuttons-float-left-center:not(.simplesocial-
|
|
1963 |
div[class*="simplesocialbuttons-float"]:not(.simplesocial-simple-icons) button{
|
1964 |
height: 36px;
|
1965 |
width: 36px;
|
1966 |
-
box-sizing: border-box;
|
|
|
1967 |
}
|
1968 |
div[class*="simplesocialbuttons-float"]:not(.simplesocial-simple-icons) button span.simplesocialtxt{
|
1969 |
display: none;
|
@@ -2020,6 +2067,14 @@ div[class*="simplesocialbuttons-float"].simplesocialbuttons .ssb-fb-like{
|
|
2020 |
div[class*="simplesocialbuttons-float-right"].simplesocialbuttons .ssb-fb-like{
|
2021 |
float: right;
|
2022 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023 |
@-webkit-keyframes ssb_fade {
|
2024 |
from {opacity: 0;}
|
2025 |
to {opacity: 1;}
|
@@ -2046,14 +2101,14 @@ div[class*="simplesocialbuttons-float"].simplesocialbuttons-slide-left-in .ssb_t
|
|
2046 |
}
|
2047 |
|
2048 |
@-webkit-keyframes ssb_slide_left_in {
|
2049 |
-
from {transform: translateX(-100%)}
|
2050 |
-
to {transform: translateX(0%)}
|
2051 |
}
|
2052 |
|
2053 |
/* Standard syntax */
|
2054 |
@keyframes ssb_slide_left_in {
|
2055 |
-
from {transform: translateX(-100%)}
|
2056 |
-
to {transform: translateX(0%)}
|
2057 |
}
|
2058 |
div[class*="simplesocialbuttons-float"].simplesocialbuttons-slide-right-in button,
|
2059 |
div[class*="simplesocialbuttons-float"].simplesocialbuttons-slide-right-in .ssb_total_counter{
|
@@ -2067,14 +2122,14 @@ div[class*="simplesocialbuttons-float"].simplesocialbuttons-slide-right-in .ssb_
|
|
2067 |
animation-fill-mode: forwards;
|
2068 |
}
|
2069 |
@-webkit-keyframes ssb_slide_right_in {
|
2070 |
-
from {transform: translateX(100%)}
|
2071 |
-
to {transform: translateX(0%)}
|
2072 |
}
|
2073 |
|
2074 |
/* Standard syntax */
|
2075 |
@keyframes ssb_slide_right_in {
|
2076 |
-
from {transform: translateX(100%)}
|
2077 |
-
to {transform: translateX(0%)}
|
2078 |
}
|
2079 |
div[class*="simplesocialbuttons-float"].simplesocialbuttons-slide-bottom-in{
|
2080 |
-webkit-transform: translateY(-45%);
|
@@ -2087,14 +2142,14 @@ div[class*="simplesocialbuttons-float"].simplesocialbuttons-slide-bottom-in{
|
|
2087 |
animation-fill-mode: forwards;
|
2088 |
}
|
2089 |
@-webkit-keyframes ssb_slide_top_in {
|
2090 |
-
from {transform: translateY(-45%)}
|
2091 |
-
to {transform: translateY(-50%)}
|
2092 |
}
|
2093 |
|
2094 |
/* Standard syntax */
|
2095 |
@keyframes ssb_slide_top_in {
|
2096 |
-
from {transform: translateY(-45%)}
|
2097 |
-
to {transform: translateY(-50%)}
|
2098 |
}
|
2099 |
div[class*="simplesocialbuttons-float"].simplesocialbuttons-slide-top-in{
|
2100 |
-webkit-transform: translateY(-60%);
|
@@ -2107,14 +2162,14 @@ div[class*="simplesocialbuttons-float"].simplesocialbuttons-slide-top-in{
|
|
2107 |
animation-fill-mode: forwards;
|
2108 |
}
|
2109 |
@-webkit-keyframes ssb_slide_bottom_in {
|
2110 |
-
from {transform: translateY(-60%); opacity: 0;}
|
2111 |
-
to {transform: translateY(-50%); opacity: 1;}
|
2112 |
}
|
2113 |
|
2114 |
/* Standard syntax */
|
2115 |
@keyframes ssb_slide_bottom_in {
|
2116 |
-
from {transform: translateY(-60%); opacity: 0;}
|
2117 |
-
to {transform: translateY(-50%); opacity: 1;}
|
2118 |
}
|
2119 |
div[class*="simplesocialbuttons-float"].simplesocialbuttons-slide-top-in{
|
2120 |
opacity: 0;
|
@@ -2126,14 +2181,14 @@ div[class*="simplesocialbuttons-float"].simplesocialbuttons-slide-top-in{
|
|
2126 |
animation-fill-mode: forwards;
|
2127 |
}
|
2128 |
@-webkit-keyframes ssb_slide_bottom_in {
|
2129 |
-
from {transform: translateY(-60%);opacity: 0;}
|
2130 |
-
to {transform: translateY(-50%);opacity: 1;}
|
2131 |
}
|
2132 |
|
2133 |
/* Standard syntax */
|
2134 |
@keyframes ssb_slide_bottom_in {
|
2135 |
-
from {transform: translateY(-60%);opacity: 0;}
|
2136 |
-
to {transform: translateY(-50%);opacity: 1;}
|
2137 |
}
|
2138 |
div[class*="simplesocialbuttons-float"].simplesocialbuttons-slide-fade-in{
|
2139 |
opacity: 0;
|
@@ -2155,46 +2210,60 @@ div[class*="simplesocialbuttons-float"].simplesocialbuttons-slide-fade-in{
|
|
2155 |
to {opacity: 1;}
|
2156 |
}
|
2157 |
div[class*="simplesocialbuttons-float"] button:nth-child(2){
|
2158 |
-
animation-delay: 0.2s;
|
|
|
2159 |
}
|
2160 |
div[class*="simplesocialbuttons-float"] button:nth-child(3){
|
2161 |
-
animation-delay: 0.4s;
|
|
|
2162 |
}
|
2163 |
div[class*="simplesocialbuttons-float"] button:nth-child(4){
|
2164 |
-
animation-delay: 0.6s;
|
|
|
2165 |
}
|
2166 |
div[class*="simplesocialbuttons-float"] button:nth-child(5){
|
2167 |
-
animation-delay: 0.8s;
|
|
|
2168 |
}
|
2169 |
div[class*="simplesocialbuttons-float"] button:nth-child(6){
|
2170 |
-
animation-delay: 1s;
|
|
|
2171 |
}
|
2172 |
div[class*="simplesocialbuttons-float"] button:nth-child(7){
|
2173 |
-
animation-delay: 1.2s;
|
|
|
2174 |
}
|
2175 |
div[class*="simplesocialbuttons-float"] button:nth-child(8){
|
2176 |
-
animation-delay: 1.4s;
|
|
|
2177 |
}
|
2178 |
div[class*="simplesocialbuttons-float"] button:nth-child(9){
|
2179 |
-
animation-delay: 1.6s;
|
|
|
2180 |
}
|
2181 |
div[class*="simplesocialbuttons-float"] button:nth-child(10){
|
2182 |
-
animation-delay: 1.8s;
|
|
|
2183 |
}
|
2184 |
div[class*="simplesocialbuttons-float"] button:nth-child(11){
|
2185 |
-
animation-delay: 2s;
|
|
|
2186 |
}
|
2187 |
div[class*="simplesocialbuttons-float"] button:nth-child(12){
|
2188 |
-
animation-delay: 2.2s;
|
|
|
2189 |
}
|
2190 |
div[class*="simplesocialbuttons-float"] button:nth-child(13){
|
2191 |
-
animation-delay: 2.4s;
|
|
|
2192 |
}
|
2193 |
div[class*="simplesocialbuttons-float"] button:nth-child(14){
|
2194 |
-
animation-delay: 2.6s;
|
|
|
2195 |
}
|
2196 |
div[class*="simplesocialbuttons-float"] button:nth-child(15){
|
2197 |
-
animation-delay: 2.8s;
|
|
|
2198 |
}
|
2199 |
div[class*="simplesocialbuttons-float"]{
|
2200 |
position: fixed;
|
@@ -2203,6 +2272,7 @@ div[class*="simplesocialbuttons-float"]{
|
|
2203 |
text-align: center;
|
2204 |
z-index: 9999;
|
2205 |
}
|
|
|
2206 |
div.simplesocialbuttons.simplesocialbuttons-align-centered{
|
2207 |
text-align: center;
|
2208 |
}
|
@@ -2302,6 +2372,22 @@ div[class*="simplesocialbuttons-float-left-post"] button .ssb_counter{
|
|
2302 |
div[class*="simplesocialbuttons-float"].simplesocial-simple-round button[class*="-share"]:not(:hover):before{
|
2303 |
width: 0;
|
2304 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2305 |
@media screen and (max-width: 767px) {
|
2306 |
.simplesocialbuttons-mobile-hidden{
|
2307 |
display: none !important;
|
@@ -2318,7 +2404,8 @@ div[class*="simplesocialbuttons-float"].simplesocial-simple-round button[class*
|
|
2318 |
margin: 2.5px 0;
|
2319 |
-webkit-box-shadow: none;
|
2320 |
box-shadow: none;
|
2321 |
-
box-sizing: border-box;
|
|
|
2322 |
font-weight: normal;
|
2323 |
text-transform: capitalize !important;
|
2324 |
width: 100%;
|
8 |
font-weight: normal;
|
9 |
font-style: normal;
|
10 |
}
|
|
|
|
|
11 |
div.simplesocialbuttons { height: auto; margin: 5px auto 5px -5px; text-align: left; clear: left; font-size: 0; }
|
12 |
div.simplesocialbutton { float: left; }
|
13 |
div.ssb-button-googleplus { width: 100px; }
|
27 |
margin: 5px;
|
28 |
-webkit-box-shadow: none;
|
29 |
box-shadow: none;
|
30 |
+
font-family: 'Helvetica', Arial, sans-serif;
|
31 |
-webkit-box-sizing: border-box;
|
32 |
box-sizing: border-box;
|
33 |
font-weight: normal;
|
381 |
.simplesocial-simple-icons .ssb_tweet-icon{
|
382 |
position: relative;
|
383 |
height: 20px;
|
384 |
+
-webkit-box-sizing: border-box;
|
385 |
+
box-sizing: border-box;
|
386 |
padding: 1px 8px 1px 6px;
|
387 |
background-color: #1b95e0;
|
388 |
color: #fff;
|
417 |
.simplesocial-simple-icons .ssb_gplus-icon .icon{
|
418 |
border: 1px solid #d5d5d5;
|
419 |
border: 1px solid rgba(0,0,0,.17);
|
|
|
420 |
border-radius: 2px;
|
421 |
-webkit-box-shadow: 0 1px 0 rgba(0,0,0,.05);
|
422 |
box-shadow: 0 1px 0 rgba(0,0,0,.05);
|
423 |
-webkit-box-sizing: border-box;
|
424 |
box-sizing: border-box;
|
425 |
-webkit-transition: background-color .218s,border-color .218s,box-shadow .218s;
|
426 |
+
-webkit-transition: background-color .218s,border-color .218s,-webkit-box-shadow .218s;
|
427 |
+
transition: background-color .218s,border-color .218s,-webkit-box-shadow .218s;
|
428 |
transition: background-color .218s,border-color .218s,box-shadow .218s;
|
429 |
+
transition: background-color .218s,border-color .218s,box-shadow .218s,-webkit-box-shadow .218s;
|
430 |
-webkit-user-select: none;
|
431 |
-webkit-appearance: none;
|
432 |
background-color: #fff;
|
463 |
position: relative;
|
464 |
background: #fff;
|
465 |
border: 1px solid #ccc;
|
|
|
466 |
border-radius: 2px;
|
467 |
display: inline-block;
|
468 |
margin-left: 5px;
|
566 |
-webkit-border-top-right-radius: 2px;
|
567 |
-webkit-border-bottom-right-radius: 2px;
|
568 |
background-color: #0077b5;
|
|
|
569 |
background-image: -webkit-linear-gradient(top, #0077b5 0%, #0077b5 100%);
|
570 |
font: bold 11px Arial, Helvetica, sans-serif;
|
571 |
line-height: 20px;
|
578 |
border-bottom-color: #066094;
|
579 |
border-left-color: #066094;
|
580 |
background-color: #066094;
|
|
|
581 |
background-image: -webkit-linear-gradient(top, #066094 0%, #066094 100%);
|
582 |
}
|
583 |
.simplesocial-simple-icons .ssb_linkedin-icon .ssb_counter{
|
639 |
}
|
640 |
.simplesocial-simple-icons .ssb_pinterest-icon:hover .simplesocialtxt{
|
641 |
background-color: #aa0719;
|
642 |
+
-webkit-box-shadow: none;
|
643 |
+
box-shadow: none;
|
644 |
color: #fff;
|
645 |
}
|
646 |
.simplesocial-simple-icons .ssb_pinterest-icon .icon{
|
795 |
border-width: 1px;
|
796 |
border-color: rgb(222, 222, 222);
|
797 |
border-radius: 4px;
|
798 |
+
background-image: -moz-linear-gradient(-90deg, rgb(255, 255, 255) 0%, rgb(221, 221, 221) 100%);
|
799 |
+
background-image: -webkit-linear-gradient(-90deg, rgb(255, 255, 255) 0%, rgb(221, 221, 221) 100%);
|
800 |
+
background-image: -ms-linear-gradient(-90deg, rgb(255, 255, 255) 0%, rgb(221, 221, 221) 100%);
|
801 |
height: 38px;
|
802 |
line-height: 26px;
|
803 |
padding: 4px 15px 4px 20px;
|
813 |
box-shadow: none;
|
814 |
}
|
815 |
.simplesocialbuttons.simplesocial-sm-round button:hover{
|
816 |
+
background-image: -moz-linear-gradient(90deg, rgb(255, 255, 255) 0%, rgb(221, 221, 221) 100%);
|
817 |
+
background-image: -webkit-linear-gradient(90deg, rgb(255, 255, 255) 0%, rgb(221, 221, 221) 100%);
|
818 |
+
background-image: -ms-linear-gradient(90deg, rgb(255, 255, 255) 0%, rgb(221, 221, 221) 100%);
|
819 |
-webkit-box-shadow: none;
|
820 |
box-shadow: none;
|
821 |
}
|
1056 |
transition: all 0.2s ease-in-out;
|
1057 |
}
|
1058 |
.simplesocialbuttons.simplesocial-round-btm-border button.simplesocial-fb-share {
|
1059 |
+
-webkit-box-shadow: inset 0px 0px 0px 0px #43609c, 0px 2px 0px 0px #43609c, 0px 0px 5px 0px rgba(0, 0, 0, 0.13);
|
1060 |
+
box-shadow: inset 0px 0px 0px 0px #43609c, 0px 2px 0px 0px #43609c, 0px 0px 5px 0px rgba(0, 0, 0, 0.13);
|
1061 |
color: #43609c;
|
1062 |
}
|
1063 |
.simplesocialbuttons.simplesocial-round-btm-border button.simplesocial-fb-share:hover{
|
1064 |
+
-webkit-box-shadow: inset 0px -40px 0px 0px #43609c, 0px 2px 0px 0px #43609c, 0px 0px 5px 0px rgba(0, 0, 0, 0.13);
|
1065 |
+
box-shadow: inset 0px -40px 0px 0px #43609c, 0px 2px 0px 0px #43609c, 0px 0px 5px 0px rgba(0, 0, 0, 0.13);
|
1066 |
color: #fff;
|
1067 |
}
|
1068 |
.simplesocialbuttons.simplesocial-round-btm-border button.simplesocial-twt-share {
|
1069 |
+
-webkit-box-shadow: inset 0px 0px 0px 0px #1da1f2, 0px 2px 0px 0px #1da1f2, 0px 0px 5px 0px rgba(0, 0, 0, 0.13);
|
1070 |
+
box-shadow: inset 0px 0px 0px 0px #1da1f2, 0px 2px 0px 0px #1da1f2, 0px 0px 5px 0px rgba(0, 0, 0, 0.13);
|
1071 |
color: #1da1f2;
|
1072 |
}
|
1073 |
.simplesocialbuttons.simplesocial-round-btm-border button.simplesocial-twt-share:hover{
|
1074 |
+
-webkit-box-shadow: inset 0px -40px 0px 0px #1da1f2, 0px 2px 0px 0px #1da1f2, 0px 0px 5px 0px rgba(0, 0, 0, 0.13);
|
1075 |
+
box-shadow: inset 0px -40px 0px 0px #1da1f2, 0px 2px 0px 0px #1da1f2, 0px 0px 5px 0px rgba(0, 0, 0, 0.13);
|
1076 |
color: #fff;
|
1077 |
}
|
1078 |
.simplesocialbuttons.simplesocial-round-btm-border button.simplesocial-gplus-share {
|
1079 |
+
-webkit-box-shadow: inset 0px 0px 0px 0px #db4437, 0px 2px 0px 0px #db4437, 0px 0px 5px 0px rgba(0, 0, 0, 0.13);
|
1080 |
+
box-shadow: inset 0px 0px 0px 0px #db4437, 0px 2px 0px 0px #db4437, 0px 0px 5px 0px rgba(0, 0, 0, 0.13);
|
1081 |
color: #db4437;
|
1082 |
}
|
1083 |
.simplesocialbuttons.simplesocial-round-btm-border button.simplesocial-gplus-share:hover{
|
1084 |
+
-webkit-box-shadow: inset 0px -40px 0px 0px #db4437, 0px 2px 0px 0px #db4437, 0px 0px 5px 0px rgba(0, 0, 0, 0.13);
|
1085 |
+
box-shadow: inset 0px -40px 0px 0px #db4437, 0px 2px 0px 0px #db4437, 0px 0px 5px 0px rgba(0, 0, 0, 0.13);
|
1086 |
color: #fff;
|
1087 |
}
|
1088 |
.simplesocialbuttons.simplesocial-round-btm-border button.simplesocial-whatsapp-share {
|
1089 |
+
-webkit-box-shadow: inset 0px 0px 0px 0px #34AF23, 0px 2px 0px 0px #34AF23, 0px 0px 5px 0px rgba(0, 0, 0, 0.13);
|
1090 |
+
box-shadow: inset 0px 0px 0px 0px #34AF23, 0px 2px 0px 0px #34AF23, 0px 0px 5px 0px rgba(0, 0, 0, 0.13);
|
1091 |
color: #34AF23;
|
1092 |
}
|
1093 |
.simplesocialbuttons.simplesocial-round-btm-border button.simplesocial-whatsapp-share:hover{
|
1094 |
+
-webkit-box-shadow: inset 0px -40px 0px 0px #34AF23, 0px 2px 0px 0px #34AF23, 0px 0px 5px 0px rgba(0, 0, 0, 0.13);
|
1095 |
+
box-shadow: inset 0px -40px 0px 0px #34AF23, 0px 2px 0px 0px #34AF23, 0px 0px 5px 0px rgba(0, 0, 0, 0.13);
|
1096 |
color: #fff;
|
1097 |
}
|
1098 |
.simplesocialbuttons.simplesocial-round-btm-border button.simplesocial-viber-share {
|
1099 |
+
-webkit-box-shadow: inset 0px 0px 0px 0px #59267c, 0px 2px 0px 0px #59267c, 0px 0px 5px 0px rgba(0, 0, 0, 0.13);
|
1100 |
+
box-shadow: inset 0px 0px 0px 0px #59267c, 0px 2px 0px 0px #59267c, 0px 0px 5px 0px rgba(0, 0, 0, 0.13);
|
1101 |
color: #59267c;
|
1102 |
}
|
1103 |
.simplesocialbuttons.simplesocial-round-btm-border button.simplesocial-viber-share:hover{
|
1104 |
+
-webkit-box-shadow: inset 0px -40px 0px 0px #59267c, 0px 2px 0px 0px #59267c, 0px 0px 5px 0px rgba(0, 0, 0, 0.13);
|
1105 |
+
box-shadow: inset 0px -40px 0px 0px #59267c, 0px 2px 0px 0px #59267c, 0px 0px 5px 0px rgba(0, 0, 0, 0.13);
|
1106 |
color: #fff;
|
1107 |
}
|
1108 |
.simplesocialbuttons.simplesocial-round-btm-border button.simplesocial-reddit-share {
|
1109 |
+
-webkit-box-shadow: inset 0px 0px 0px 0px #ff4500, 0px 2px 0px 0px #ff4500, 0px 0px 5px 0px rgba(0, 0, 0, 0.13);
|
1110 |
+
box-shadow: inset 0px 0px 0px 0px #ff4500, 0px 2px 0px 0px #ff4500, 0px 0px 5px 0px rgba(0, 0, 0, 0.13);
|
1111 |
color: #ff4500;
|
1112 |
}
|
1113 |
.simplesocialbuttons.simplesocial-round-btm-border button.simplesocial-reddit-share:hover{
|
1114 |
+
-webkit-box-shadow: inset 0px -40px 0px 0px #ff4500, 0px 2px 0px 0px #ff4500, 0px 0px 5px 0px rgba(0, 0, 0, 0.13);
|
1115 |
+
box-shadow: inset 0px -40px 0px 0px #ff4500, 0px 2px 0px 0px #ff4500, 0px 0px 5px 0px rgba(0, 0, 0, 0.13);
|
1116 |
color: #fff;
|
1117 |
}
|
1118 |
.simplesocialbuttons.simplesocial-round-btm-border button.simplesocial-linkedin-share {
|
1119 |
+
-webkit-box-shadow: inset 0px 0px 0px 0px #0077B5, 0px 2px 0px 0px #0077B5, 0px 0px 5px 0px rgba(0, 0, 0, 0.13);
|
1120 |
+
box-shadow: inset 0px 0px 0px 0px #0077B5, 0px 2px 0px 0px #0077B5, 0px 0px 5px 0px rgba(0, 0, 0, 0.13);
|
1121 |
color: #0077B5;
|
1122 |
}
|
1123 |
.simplesocialbuttons.simplesocial-round-btm-border button.simplesocial-linkedin-share:hover{
|
1124 |
+
-webkit-box-shadow: inset 0px -40px 0px 0px #0077B5, 0px 2px 0px 0px #0077B5, 0px 0px 5px 0px rgba(0, 0, 0, 0.13);
|
1125 |
+
box-shadow: inset 0px -40px 0px 0px #0077B5, 0px 2px 0px 0px #0077B5, 0px 0px 5px 0px rgba(0, 0, 0, 0.13);
|
1126 |
color: #fff;
|
1127 |
}
|
1128 |
.simplesocialbuttons.simplesocial-round-btm-border button.simplesocial-pinterest-share {
|
1129 |
+
-webkit-box-shadow: inset 0px 0px 0px 0px #C92228, 0px 2px 0px 0px #C92228, 0px 0px 5px 0px rgba(0, 0, 0, 0.13);
|
1130 |
+
box-shadow: inset 0px 0px 0px 0px #C92228, 0px 2px 0px 0px #C92228, 0px 0px 5px 0px rgba(0, 0, 0, 0.13);
|
1131 |
color: #C92228;
|
1132 |
}
|
1133 |
.simplesocialbuttons.simplesocial-round-btm-border button.simplesocial-pinterest-share:hover{
|
1134 |
+
-webkit-box-shadow: inset 0px -40px 0px 0px #C92228, 0px 2px 0px 0px #C92228, 0px 0px 5px 0px rgba(0, 0, 0, 0.13);
|
1135 |
+
box-shadow: inset 0px -40px 0px 0px #C92228, 0px 2px 0px 0px #C92228, 0px 0px 5px 0px rgba(0, 0, 0, 0.13);
|
1136 |
color: #fff;
|
1137 |
}
|
1138 |
/*===== End of style 4 ======*/
|
1159 |
}
|
1160 |
.simplesocialbuttons.simplesocial-flat-button-border button.simplesocial-fb-share {
|
1161 |
background: #43609c;
|
1162 |
+
-webkit-box-shadow: inset 0px 0px 0px 0px #354e83, 0px 3px 0px 0px #354e83;
|
1163 |
+
box-shadow: inset 0px 0px 0px 0px #354e83, 0px 3px 0px 0px #354e83;
|
1164 |
}
|
1165 |
.simplesocialbuttons.simplesocial-flat-button-border button.simplesocial-fb-share:hover {
|
1166 |
+
-webkit-box-shadow: inset 0px -40px 0px 0px #354e83, 0px 3px 0px 0px #354e83;
|
1167 |
+
box-shadow: inset 0px -40px 0px 0px #354e83, 0px 3px 0px 0px #354e83;
|
1168 |
}
|
1169 |
.simplesocialbuttons.simplesocial-flat-button-border button.simplesocial-twt-share {
|
1170 |
background: #1da1f2;
|
1171 |
+
-webkit-box-shadow: inset 0px 0px 0px 0px #1889cf, 0px 3px 0px 0px #1889cf;
|
1172 |
+
box-shadow: inset 0px 0px 0px 0px #1889cf, 0px 3px 0px 0px #1889cf;
|
1173 |
}
|
1174 |
.simplesocialbuttons.simplesocial-flat-button-border button.simplesocial-twt-share:hover {
|
1175 |
+
-webkit-box-shadow: inset 0px -40px 0px 0px #1889cf, 0px 3px 0px 0px #1889cf;
|
1176 |
+
box-shadow: inset 0px -40px 0px 0px #1889cf, 0px 3px 0px 0px #1889cf;
|
1177 |
}
|
1178 |
.simplesocialbuttons.simplesocial-flat-button-border button.simplesocial-gplus-share {
|
1179 |
background: #db4437;
|
1180 |
+
-webkit-box-shadow: inset 0px 0px 0px 0px #bb372b, 0px 3px 0px 0px #bb372b;
|
1181 |
+
box-shadow: inset 0px 0px 0px 0px #bb372b, 0px 3px 0px 0px #bb372b;
|
1182 |
}
|
1183 |
.simplesocialbuttons.simplesocial-flat-button-border button.simplesocial-gplus-share:hover {
|
1184 |
+
-webkit-box-shadow: inset 0px -40px 0px 0px #bb372b, 0px 3px 0px 0px #bb372b;
|
1185 |
+
box-shadow: inset 0px -40px 0px 0px #bb372b, 0px 3px 0px 0px #bb372b;
|
1186 |
}
|
1187 |
.simplesocialbuttons.simplesocial-flat-button-border button.simplesocial-whatsapp-share {
|
1188 |
background: #34AF23;
|
1189 |
+
-webkit-box-shadow: inset 0px 0px 0px 0px #176e0b, 0px 3px 0px 0px #176e0b;
|
1190 |
+
box-shadow: inset 0px 0px 0px 0px #176e0b, 0px 3px 0px 0px #176e0b;
|
1191 |
}
|
1192 |
.simplesocialbuttons.simplesocial-flat-button-border button.simplesocial-whatsapp-share:hover {
|
1193 |
+
-webkit-box-shadow: inset 0px -40px 0px 0px #176e0b, 0px 3px 0px 0px #176e0b;
|
1194 |
+
box-shadow: inset 0px -40px 0px 0px #176e0b, 0px 3px 0px 0px #176e0b;
|
1195 |
}
|
1196 |
.simplesocialbuttons.simplesocial-flat-button-border button.simplesocial-viber-share {
|
1197 |
background: #59267c;
|
1198 |
+
-webkit-box-shadow: inset 0px 0px 0px 0px #3e115d, 0px 3px 0px 0px #3e115d;
|
1199 |
+
box-shadow: inset 0px 0px 0px 0px #3e115d, 0px 3px 0px 0px #3e115d;
|
1200 |
}
|
1201 |
.simplesocialbuttons.simplesocial-flat-button-border button.simplesocial-viber-share:hover {
|
1202 |
+
-webkit-box-shadow: inset 0px -40px 0px 0px #3e115d, 0px 3px 0px 0px #3e115d;
|
1203 |
+
box-shadow: inset 0px -40px 0px 0px #3e115d, 0px 3px 0px 0px #3e115d;
|
1204 |
}
|
1205 |
.simplesocialbuttons.simplesocial-flat-button-border button.simplesocial-reddit-share {
|
1206 |
background: #ff4500;
|
1207 |
+
-webkit-box-shadow: inset 0px 0px 0px 0px #ce3b04, 0px 3px 0px 0px #ce3b04;
|
1208 |
+
box-shadow: inset 0px 0px 0px 0px #ce3b04, 0px 3px 0px 0px #ce3b04;
|
1209 |
}
|
1210 |
.simplesocialbuttons.simplesocial-flat-button-border button.simplesocial-reddit-share:hover {
|
1211 |
+
-webkit-box-shadow: inset 0px -40px 0px 0px #ce3b04, 0px 3px 0px 0px #ce3b04;
|
1212 |
+
box-shadow: inset 0px -40px 0px 0px #ce3b04, 0px 3px 0px 0px #ce3b04;
|
1213 |
}
|
1214 |
.simplesocialbuttons.simplesocial-flat-button-border button.simplesocial-linkedin-share {
|
1215 |
background: #0077B5;
|
1216 |
+
-webkit-box-shadow: inset 0px 0px 0px 0px #044568, 0px 3px 0px 0px #044568;
|
1217 |
+
box-shadow: inset 0px 0px 0px 0px #044568, 0px 3px 0px 0px #044568;
|
1218 |
}
|
1219 |
.simplesocialbuttons.simplesocial-flat-button-border button.simplesocial-linkedin-share:hover {
|
1220 |
+
-webkit-box-shadow: inset 0px -40px 0px 0px #044568, 0px 3px 0px 0px #044568;
|
1221 |
+
box-shadow: inset 0px -40px 0px 0px #044568, 0px 3px 0px 0px #044568;
|
1222 |
}
|
1223 |
.simplesocialbuttons.simplesocial-flat-button-border button.simplesocial-pinterest-share {
|
1224 |
background: #C92228;
|
1225 |
+
-webkit-box-shadow: inset 0px 0px 0px 0px #af040a, 0px 3px 0px 0px #af040a;
|
1226 |
+
box-shadow: inset 0px 0px 0px 0px #af040a, 0px 3px 0px 0px #af040a;
|
1227 |
}
|
1228 |
.simplesocialbuttons.simplesocial-flat-button-border button.simplesocial-pinterest-share:hover {
|
1229 |
+
-webkit-box-shadow: inset 0px -40px 0px 0px #af040a, 0px 3px 0px 0px #af040a;
|
1230 |
+
box-shadow: inset 0px -40px 0px 0px #af040a, 0px 3px 0px 0px #af040a;
|
1231 |
}
|
1232 |
|
1233 |
|
1391 |
-webkit-animation-timing-function: ease;
|
1392 |
-moz-animation-timing-function: ease;
|
1393 |
-webkit-animation-fill-mode: forwards;
|
|
|
1394 |
animation-fill-mode: forwards;
|
1395 |
}
|
1396 |
@keyframes ssb_slidetop {
|
1422 |
opacity: 1;
|
1423 |
}
|
1424 |
.simplesocialbuttons_inline button:nth-child(2),.simplesocialbuttons_inline .ssb_total_counter:nth-child(2){
|
1425 |
+
-webkit-animation-delay: 0.2s;
|
1426 |
+
animation-delay: 0.2s;
|
1427 |
}
|
1428 |
.simplesocialbuttons_inline button:nth-child(3),.simplesocialbuttons_inline .ssb_total_counter:nth-child(3){
|
1429 |
+
-webkit-animation-delay: 0.4s;
|
1430 |
+
animation-delay: 0.4s;
|
1431 |
}
|
1432 |
.simplesocialbuttons_inline button:nth-child(4),.simplesocialbuttons_inline .ssb_total_counter:nth-child(4){
|
1433 |
+
-webkit-animation-delay: 0.6s;
|
1434 |
+
animation-delay: 0.6s;
|
1435 |
}
|
1436 |
.simplesocialbuttons_inline button:nth-child(5),.simplesocialbuttons_inline .ssb_total_counter:nth-child(5){
|
1437 |
+
-webkit-animation-delay: 0.8s;
|
1438 |
+
animation-delay: 0.8s;
|
1439 |
}
|
1440 |
.simplesocialbuttons_inline button:nth-child(6),.simplesocialbuttons_inline .ssb_total_counter:nth-child(6){
|
1441 |
+
-webkit-animation-delay: 1s;
|
1442 |
+
animation-delay: 1s;
|
1443 |
}
|
1444 |
.simplesocialbuttons_inline button:nth-child(7),.simplesocialbuttons_inline .ssb_total_counter:nth-child(7){
|
1445 |
+
-webkit-animation-delay: 1.2s;
|
1446 |
+
animation-delay: 1.2s;
|
1447 |
}
|
1448 |
.simplesocialbuttons_inline button:nth-child(8),.simplesocialbuttons_inline .ssb_total_counter:nth-child(8){
|
1449 |
+
-webkit-animation-delay: 1.4s;
|
1450 |
+
animation-delay: 1.4s;
|
1451 |
}
|
1452 |
.simplesocialbuttons_inline button:nth-child(9),.simplesocialbuttons_inline .ssb_total_counter:nth-child(9){
|
1453 |
+
-webkit-animation-delay: 1.6s;
|
1454 |
+
animation-delay: 1.6s;
|
1455 |
}
|
1456 |
.simplesocialbuttons_inline button:nth-child(10),.simplesocialbuttons_inline .ssb_total_counter:nth-child(10){
|
1457 |
+
-webkit-animation-delay: 1.8s;
|
1458 |
+
animation-delay: 1.8s;
|
1459 |
}
|
1460 |
.simplesocialbuttons_inline button:nth-child(11),.simplesocialbuttons_inline .ssb_total_counter:nth-child(11){
|
1461 |
+
-webkit-animation-delay: 2s;
|
1462 |
+
animation-delay: 2s;
|
1463 |
}
|
1464 |
.simplesocialbuttons_inline button:nth-child(12),.simplesocialbuttons_inline .ssb_total_counter:nth-child(12){
|
1465 |
+
-webkit-animation-delay: 2.2s;
|
1466 |
+
animation-delay: 2.2s;
|
1467 |
}
|
1468 |
.simplesocialbuttons_inline button:nth-child(13),.simplesocialbuttons_inline .ssb_total_counter:nth-child(13){
|
1469 |
+
-webkit-animation-delay: 2.4s;
|
1470 |
+
animation-delay: 2.4s;
|
1471 |
}
|
1472 |
.simplesocialbuttons_inline button:nth-child(14),.simplesocialbuttons_inline .ssb_total_counter:nth-child(14){
|
1473 |
+
-webkit-animation-delay: 2.6s;
|
1474 |
+
animation-delay: 2.6s;
|
1475 |
}
|
1476 |
.simplesocialbuttons_inline button:nth-child(15),.simplesocialbuttons_inline .ssb_total_counter:nth-child(15){
|
1477 |
+
-webkit-animation-delay: 2.8s;
|
1478 |
+
animation-delay: 2.8s;
|
1479 |
}
|
1480 |
|
1481 |
|
1515 |
min-width: 24px;
|
1516 |
text-align: center;
|
1517 |
line-height: normal;
|
1518 |
+
-webkit-box-sizing: border-box;
|
1519 |
+
box-sizing: border-box;
|
1520 |
overflow: hidden;
|
1521 |
+
font-family: 'Helvetica', Arial, sans-serif;
|
1522 |
line-height: 14px;
|
1523 |
}
|
1524 |
.simplesocialbuttons.simplesocial-round-txt button.simplesocial-fb-share .ssb_counter{
|
1557 |
text-align: center;
|
1558 |
height: 36px;
|
1559 |
line-height: 36px;
|
1560 |
+
background-image: -webkit-linear-gradient(left, rgb(255,255,255) 0%, rgb(221,221,221) 100%);
|
1561 |
+
background-image: -o-linear-gradient(left, rgb(255,255,255) 0%, rgb(221,221,221) 100%);
|
1562 |
+
background-image: linear-gradient(to right, rgb(255,255,255) 0%, rgb(221,221,221) 100%);
|
1563 |
border-left: 1px solid #dedede;
|
1564 |
border-radius: 0 3px 3px 0;
|
1565 |
}
|
1763 |
border-right-color: #db4437;
|
1764 |
}
|
1765 |
.ssb_counter{
|
1766 |
+
font-family: 'Helvetica', Arial, sans-serif;
|
1767 |
}
|
1768 |
.simplesocialbuttons.simplesocial-round-icon button .ssb_counter {
|
1769 |
position: absolute;
|
1781 |
text-align: center;
|
1782 |
line-height: 15px;
|
1783 |
padding: 0;
|
1784 |
+
-webkit-box-sizing: border-box;
|
1785 |
+
box-sizing: border-box;
|
1786 |
}
|
1787 |
.simplesocialbuttons.simplesocial-round-icon button.simplesocial-fb-share .ssb_counter{
|
1788 |
border-color: #43609c;
|
2009 |
div[class*="simplesocialbuttons-float"]:not(.simplesocial-simple-icons) button{
|
2010 |
height: 36px;
|
2011 |
width: 36px;
|
2012 |
+
-webkit-box-sizing: border-box;
|
2013 |
+
box-sizing: border-box;
|
2014 |
}
|
2015 |
div[class*="simplesocialbuttons-float"]:not(.simplesocial-simple-icons) button span.simplesocialtxt{
|
2016 |
display: none;
|
2067 |
div[class*="simplesocialbuttons-float-right"].simplesocialbuttons .ssb-fb-like{
|
2068 |
float: right;
|
2069 |
}
|
2070 |
+
div[class*="simplesocialbuttons-float-left"].simplesocial-simple-icons .ssb_total_counter{
|
2071 |
+
display: block;
|
2072 |
+
text-align: left;
|
2073 |
+
}
|
2074 |
+
div[class*="simplesocialbuttons-float-right"].simplesocial-simple-icons .ssb_total_counter{
|
2075 |
+
display: block;
|
2076 |
+
text-align: right;
|
2077 |
+
}
|
2078 |
@-webkit-keyframes ssb_fade {
|
2079 |
from {opacity: 0;}
|
2080 |
to {opacity: 1;}
|
2101 |
}
|
2102 |
|
2103 |
@-webkit-keyframes ssb_slide_left_in {
|
2104 |
+
from {-webkit-transform: translateX(-100%);transform: translateX(-100%)}
|
2105 |
+
to {-webkit-transform: translateX(0%);transform: translateX(0%)}
|
2106 |
}
|
2107 |
|
2108 |
/* Standard syntax */
|
2109 |
@keyframes ssb_slide_left_in {
|
2110 |
+
from {-webkit-transform: translateX(-100%);transform: translateX(-100%)}
|
2111 |
+
to {-webkit-transform: translateX(0%);transform: translateX(0%)}
|
2112 |
}
|
2113 |
div[class*="simplesocialbuttons-float"].simplesocialbuttons-slide-right-in button,
|
2114 |
div[class*="simplesocialbuttons-float"].simplesocialbuttons-slide-right-in .ssb_total_counter{
|
2122 |
animation-fill-mode: forwards;
|
2123 |
}
|
2124 |
@-webkit-keyframes ssb_slide_right_in {
|
2125 |
+
from {-webkit-transform: translateX(100%);transform: translateX(100%)}
|
2126 |
+
to {-webkit-transform: translateX(0%);transform: translateX(0%)}
|
2127 |
}
|
2128 |
|
2129 |
/* Standard syntax */
|
2130 |
@keyframes ssb_slide_right_in {
|
2131 |
+
from {-webkit-transform: translateX(100%);transform: translateX(100%)}
|
2132 |
+
to {-webkit-transform: translateX(0%);transform: translateX(0%)}
|
2133 |
}
|
2134 |
div[class*="simplesocialbuttons-float"].simplesocialbuttons-slide-bottom-in{
|
2135 |
-webkit-transform: translateY(-45%);
|
2142 |
animation-fill-mode: forwards;
|
2143 |
}
|
2144 |
@-webkit-keyframes ssb_slide_top_in {
|
2145 |
+
from {-webkit-transform: translateY(-45%);transform: translateY(-45%)}
|
2146 |
+
to {-webkit-transform: translateY(-50%);transform: translateY(-50%)}
|
2147 |
}
|
2148 |
|
2149 |
/* Standard syntax */
|
2150 |
@keyframes ssb_slide_top_in {
|
2151 |
+
from {-webkit-transform: translateY(-45%);transform: translateY(-45%)}
|
2152 |
+
to {-webkit-transform: translateY(-50%);transform: translateY(-50%)}
|
2153 |
}
|
2154 |
div[class*="simplesocialbuttons-float"].simplesocialbuttons-slide-top-in{
|
2155 |
-webkit-transform: translateY(-60%);
|
2162 |
animation-fill-mode: forwards;
|
2163 |
}
|
2164 |
@-webkit-keyframes ssb_slide_bottom_in {
|
2165 |
+
from {-webkit-transform: translateY(-60%);transform: translateY(-60%); opacity: 0;}
|
2166 |
+
to {-webkit-transform: translateY(-50%);transform: translateY(-50%); opacity: 1;}
|
2167 |
}
|
2168 |
|
2169 |
/* Standard syntax */
|
2170 |
@keyframes ssb_slide_bottom_in {
|
2171 |
+
from {-webkit-transform: translateY(-60%);transform: translateY(-60%); opacity: 0;}
|
2172 |
+
to {-webkit-transform: translateY(-50%);transform: translateY(-50%); opacity: 1;}
|
2173 |
}
|
2174 |
div[class*="simplesocialbuttons-float"].simplesocialbuttons-slide-top-in{
|
2175 |
opacity: 0;
|
2181 |
animation-fill-mode: forwards;
|
2182 |
}
|
2183 |
@-webkit-keyframes ssb_slide_bottom_in {
|
2184 |
+
from {-webkit-transform: translateY(-60%);transform: translateY(-60%);opacity: 0;}
|
2185 |
+
to {-webkit-transform: translateY(-50%);transform: translateY(-50%);opacity: 1;}
|
2186 |
}
|
2187 |
|
2188 |
/* Standard syntax */
|
2189 |
@keyframes ssb_slide_bottom_in {
|
2190 |
+
from {-webkit-transform: translateY(-60%);transform: translateY(-60%);opacity: 0;}
|
2191 |
+
to {-webkit-transform: translateY(-50%);transform: translateY(-50%);opacity: 1;}
|
2192 |
}
|
2193 |
div[class*="simplesocialbuttons-float"].simplesocialbuttons-slide-fade-in{
|
2194 |
opacity: 0;
|
2210 |
to {opacity: 1;}
|
2211 |
}
|
2212 |
div[class*="simplesocialbuttons-float"] button:nth-child(2){
|
2213 |
+
-webkit-animation-delay: 0.2s;
|
2214 |
+
animation-delay: 0.2s;
|
2215 |
}
|
2216 |
div[class*="simplesocialbuttons-float"] button:nth-child(3){
|
2217 |
+
-webkit-animation-delay: 0.4s;
|
2218 |
+
animation-delay: 0.4s;
|
2219 |
}
|
2220 |
div[class*="simplesocialbuttons-float"] button:nth-child(4){
|
2221 |
+
-webkit-animation-delay: 0.6s;
|
2222 |
+
animation-delay: 0.6s;
|
2223 |
}
|
2224 |
div[class*="simplesocialbuttons-float"] button:nth-child(5){
|
2225 |
+
-webkit-animation-delay: 0.8s;
|
2226 |
+
animation-delay: 0.8s;
|
2227 |
}
|
2228 |
div[class*="simplesocialbuttons-float"] button:nth-child(6){
|
2229 |
+
-webkit-animation-delay: 1s;
|
2230 |
+
animation-delay: 1s;
|
2231 |
}
|
2232 |
div[class*="simplesocialbuttons-float"] button:nth-child(7){
|
2233 |
+
-webkit-animation-delay: 1.2s;
|
2234 |
+
animation-delay: 1.2s;
|
2235 |
}
|
2236 |
div[class*="simplesocialbuttons-float"] button:nth-child(8){
|
2237 |
+
-webkit-animation-delay: 1.4s;
|
2238 |
+
animation-delay: 1.4s;
|
2239 |
}
|
2240 |
div[class*="simplesocialbuttons-float"] button:nth-child(9){
|
2241 |
+
-webkit-animation-delay: 1.6s;
|
2242 |
+
animation-delay: 1.6s;
|
2243 |
}
|
2244 |
div[class*="simplesocialbuttons-float"] button:nth-child(10){
|
2245 |
+
-webkit-animation-delay: 1.8s;
|
2246 |
+
animation-delay: 1.8s;
|
2247 |
}
|
2248 |
div[class*="simplesocialbuttons-float"] button:nth-child(11){
|
2249 |
+
-webkit-animation-delay: 2s;
|
2250 |
+
animation-delay: 2s;
|
2251 |
}
|
2252 |
div[class*="simplesocialbuttons-float"] button:nth-child(12){
|
2253 |
+
-webkit-animation-delay: 2.2s;
|
2254 |
+
animation-delay: 2.2s;
|
2255 |
}
|
2256 |
div[class*="simplesocialbuttons-float"] button:nth-child(13){
|
2257 |
+
-webkit-animation-delay: 2.4s;
|
2258 |
+
animation-delay: 2.4s;
|
2259 |
}
|
2260 |
div[class*="simplesocialbuttons-float"] button:nth-child(14){
|
2261 |
+
-webkit-animation-delay: 2.6s;
|
2262 |
+
animation-delay: 2.6s;
|
2263 |
}
|
2264 |
div[class*="simplesocialbuttons-float"] button:nth-child(15){
|
2265 |
+
-webkit-animation-delay: 2.8s;
|
2266 |
+
animation-delay: 2.8s;
|
2267 |
}
|
2268 |
div[class*="simplesocialbuttons-float"]{
|
2269 |
position: fixed;
|
2272 |
text-align: center;
|
2273 |
z-index: 9999;
|
2274 |
}
|
2275 |
+
|
2276 |
div.simplesocialbuttons.simplesocialbuttons-align-centered{
|
2277 |
text-align: center;
|
2278 |
}
|
2372 |
div[class*="simplesocialbuttons-float"].simplesocial-simple-round button[class*="-share"]:not(:hover):before{
|
2373 |
width: 0;
|
2374 |
}
|
2375 |
+
.ssb_inline-share_heading{
|
2376 |
+
font-weight: 400;
|
2377 |
+
font-size: 24px;
|
2378 |
+
padding: 0 0 10px;
|
2379 |
+
margin: 0;
|
2380 |
+
display: block;
|
2381 |
+
}
|
2382 |
+
.ssb_inline-share_heading.left{
|
2383 |
+
text-align: left
|
2384 |
+
}
|
2385 |
+
.ssb_inline-share_heading.centered{
|
2386 |
+
text-align: center;
|
2387 |
+
}
|
2388 |
+
.ssb_inline-share_heading.right{
|
2389 |
+
text-align: right;
|
2390 |
+
}
|
2391 |
@media screen and (max-width: 767px) {
|
2392 |
.simplesocialbuttons-mobile-hidden{
|
2393 |
display: none !important;
|
2404 |
margin: 2.5px 0;
|
2405 |
-webkit-box-shadow: none;
|
2406 |
box-shadow: none;
|
2407 |
+
-webkit-box-sizing: border-box;
|
2408 |
+
box-sizing: border-box;
|
2409 |
font-weight: normal;
|
2410 |
text-transform: capitalize !important;
|
2411 |
width: 100%;
|
classes/ssb-settings.php
CHANGED
@@ -1,517 +1,529 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/**
|
4 |
-
*
|
5 |
-
*/
|
6 |
-
class Ssb_Settings {
|
7 |
-
|
8 |
-
private $settings_api;
|
9 |
-
|
10 |
-
function __construct() {
|
11 |
-
|
12 |
-
include_once SSB_PLUGIN_DIR . '/classes/ssb-settings-strucutre.php';
|
13 |
-
$this->settings_api = new Ssb_Settings_Structure();
|
14 |
-
add_action( 'admin_init', array( $this, 'admin_init' ) );
|
15 |
-
add_action( 'admin_menu', array( $this, 'admin_menu' ) );
|
16 |
-
add_action( 'wp_ajax_ssb_help', array( $this, 'download_help' ) );
|
17 |
-
add_action( 'wp_ajax_ssb_export', array( $this, 'export' ) );
|
18 |
-
add_action( 'wp_ajax_ssb_import', array( $this, 'import' ) );
|
19 |
-
|
20 |
-
}
|
21 |
-
|
22 |
-
function admin_menu() {
|
23 |
-
|
24 |
-
if ( current_user_can( 'activate_plugins' ) ) {
|
25 |
-
add_menu_page( 'Simple Social Buttons ', 'Social Buttons ', 'activate_plugins', 'simple-social-buttons', array( $this, 'plugin_page' ), 'dashicons-share', 100 );
|
26 |
-
|
27 |
-
add_submenu_page( 'simple-social-buttons', 'Settings', 'Settings', 'manage_options', 'simple-social-buttons' );
|
28 |
-
do_action( 'ssb_add_pro_submenu' );
|
29 |
-
|
30 |
-
add_submenu_page( 'simple-social-buttons', __( 'Help', 'simple-social-buttons' ), __( 'Help', 'simple-social-buttons' ), 'manage_options', 'ssb-help', array( $this, 'help_page' ) );
|
31 |
-
|
32 |
-
add_submenu_page( 'simple-social-buttons', __( 'Import and export settings', 'simple-social-buttons' ), __( 'Import / Export', 'simple-social-buttons' ), 'manage_options', 'ssb-import-export', array( $this, 'import_export_page' ) );
|
33 |
-
|
34 |
-
}
|
35 |
-
|
36 |
-
}
|
37 |
-
|
38 |
-
function get_settings_sections() {
|
39 |
-
$sections = array(
|
40 |
-
array(
|
41 |
-
'id' => 'ssb_networks',
|
42 |
-
'title' => __( 'Social Buttons', 'simple-social-buttons' ),
|
43 |
-
'priority' => '10',
|
44 |
-
),
|
45 |
-
array(
|
46 |
-
'id' => 'ssb_themes',
|
47 |
-
'title' => __( 'Social Buttons Designs', 'simple-social-buttons' ),
|
48 |
-
'priority' => '15',
|
49 |
-
),
|
50 |
-
array(
|
51 |
-
'id' => 'ssb_positions',
|
52 |
-
'title' => __( 'Social Buttons Postions', 'simple-social-buttons' ),
|
53 |
-
'priority' => '20',
|
54 |
-
),
|
55 |
-
array(
|
56 |
-
'id' => 'ssb_sidebar',
|
57 |
-
'title' => __( 'Sidebar', 'simple-social-buttons' ),
|
58 |
-
'priority' => '25',
|
59 |
-
),
|
60 |
-
array(
|
61 |
-
'id' => 'ssb_media',
|
62 |
-
'title' => __( 'On Media', 'simple-social-buttons' ),
|
63 |
-
'priority' => '40',
|
64 |
-
),
|
65 |
-
array(
|
66 |
-
'id' => 'ssb_popup',
|
67 |
-
'title' => __( 'Popup', 'simple-social-buttons' ),
|
68 |
-
'priority' => '45',
|
69 |
-
),
|
70 |
-
array(
|
71 |
-
'id' => 'ssb_flyin',
|
72 |
-
'title' => __( 'Fly In', 'simple-social-buttons' ),
|
73 |
-
'priority' => '50',
|
74 |
-
),
|
75 |
-
array(
|
76 |
-
'id' => 'ssb_inline',
|
77 |
-
'title' => __( 'InLine', 'simple-social-buttons' ),
|
78 |
-
'priority' => '30',
|
79 |
-
),
|
80 |
-
array(
|
81 |
-
'id' => 'ssb_advanced',
|
82 |
-
'title' => __( 'Additional features', 'simple-social-buttons' ),
|
83 |
-
'priority' => '99',
|
84 |
-
),
|
85 |
-
);
|
86 |
-
|
87 |
-
$setting_section = apply_filters( 'ssb_settings_panel', $sections );
|
88 |
-
|
89 |
-
usort( $setting_section, array( $this, 'sort_array' ) );
|
90 |
-
|
91 |
-
return $setting_section;
|
92 |
-
}
|
93 |
-
|
94 |
-
public function sort_array( $a, $b ){
|
95 |
-
return $a['priority'] - $b['priority'];
|
96 |
-
}
|
97 |
-
|
98 |
-
public function get_current_post_types() {
|
99 |
-
|
100 |
-
$post_types_list = array(
|
101 |
-
'home' => 'Home'
|
102 |
-
);
|
103 |
-
|
104 |
-
$args = array(
|
105 |
-
'public' => true,
|
106 |
-
);
|
107 |
-
|
108 |
-
$post_types = get_post_types( $args );
|
109 |
-
|
110 |
-
foreach ( $post_types as $post_type ) {
|
111 |
-
$post_types_list[ $post_type ] = ucfirst( $post_type );
|
112 |
-
}
|
113 |
-
|
114 |
-
return $post_types_list;
|
115 |
-
}
|
116 |
-
|
117 |
-
/**
|
118 |
-
* Returns all the settings fields
|
119 |
-
*
|
120 |
-
* @return array settings fields
|
121 |
-
*/
|
122 |
-
function get_settings_fields() {
|
123 |
-
$post_types = $this->get_current_post_types();
|
124 |
-
$ssb_positions_options = apply_filters( 'ssb_positions_options', array(
|
125 |
-
'sidebar' => 'Sidebar',
|
126 |
-
'inline' => 'Inline',
|
127 |
-
'media' => 'Media',
|
128 |
-
'popup' => 'Popup',
|
129 |
-
'flyin' => 'Fly In',
|
130 |
-
) ) ;
|
131 |
-
|
132 |
-
$ssb_sidebar = array(
|
133 |
-
array(
|
134 |
-
'name' => 'orientation',
|
135 |
-
'label' => __( 'Sidebar Orientation', 'simple-social-buttons' ),
|
136 |
-
'desc' => __( '<h4>Display Settings</h4>', 'simple-social-buttons' ),
|
137 |
-
'type' => 'ssb_select',
|
138 |
-
'default' => 'left',
|
139 |
-
'options' => array(
|
140 |
-
'left' => 'Left',
|
141 |
-
'right' => 'Right',
|
142 |
-
),
|
143 |
-
'priority' => '5',
|
144 |
-
),
|
145 |
-
array(
|
146 |
-
'name' => 'animation',
|
147 |
-
'label' => __( 'Intro Animation', 'simple-social-buttons' ),
|
148 |
-
'type' => 'ssb_select',
|
149 |
-
'default' => 'no-animation',
|
150 |
-
'options' => array(
|
151 |
-
'no-animation' => 'No',
|
152 |
-
'right-in' => 'From Right',
|
153 |
-
'top-in' => 'From Top',
|
154 |
-
'bottom-in' => 'From Bottom',
|
155 |
-
'left-in' => 'From Left',
|
156 |
-
'fade-in' => 'FadeIn',
|
157 |
-
),
|
158 |
-
'priority' => '10',
|
159 |
-
),
|
160 |
-
array(
|
161 |
-
'name' => 'share_counts',
|
162 |
-
'label' => __( 'Display Share Counts', 'simple-social-buttons' ),
|
163 |
-
'type' => 'ssb_checkbox',
|
164 |
-
'priority' => '15',
|
165 |
-
),
|
166 |
-
array(
|
167 |
-
'name' => 'total_share',
|
168 |
-
'label' => __( 'Display Total Shares', 'simple-social-buttons' ),
|
169 |
-
'type' => 'ssb_checkbox',
|
170 |
-
'priority' => '20',
|
171 |
-
),
|
172 |
-
array(
|
173 |
-
'name' => 'icon_space',
|
174 |
-
'label' => __( 'Add Icon Spacing', 'simple-social-buttons' ),
|
175 |
-
'type' => 'ssb_checkbox',
|
176 |
-
'priority' => '25',
|
177 |
-
),
|
178 |
-
array(
|
179 |
-
'name' => 'icon_space_value',
|
180 |
-
'type' => 'ssb_text',
|
181 |
-
'label' => 'Enter the Space in Pixel',
|
182 |
-
'sanitize_callback' => 'sanitize_text_field',
|
183 |
-
'priority' => '30',
|
184 |
-
),
|
185 |
-
array(
|
186 |
-
'name' => 'hide_mobile',
|
187 |
-
'label' => __( 'Hide On Mobile Devices', 'simple-social-buttons' ),
|
188 |
-
'type' => 'ssb_checkbox',
|
189 |
-
'priority' => '35',
|
190 |
-
),
|
191 |
-
array(
|
192 |
-
'name' => 'posts',
|
193 |
-
'label' => __( 'Post type Settings', 'simple-social-buttons' ),
|
194 |
-
'desc' => __( 'Multi checkbox description', 'simple-social-buttons' ),
|
195 |
-
'type' => 'ssb_post_types',
|
196 |
-
'default' => array('post' => 'post', 'page' => 'page'),
|
197 |
-
'options' => $post_types,
|
198 |
-
'priority' => '99',
|
199 |
-
),
|
200 |
-
array(
|
201 |
-
'name' => 'go_pro',
|
202 |
-
'type' => 'ssb_go_pro',
|
203 |
-
'label' => __( 'Want even more fine tuned control over your Sidebar Social Buttons Styling?', 'simple-social-buttons' ),
|
204 |
-
'desc' => __( 'By upgrading to Simple Social Buttons Pro, you get access to Styling Social buttons of your own choice that matches with your website color schemes. These social buttons will help in driving more engagement and traffic to your site. Some of the Pro features include: Show Social media buttons on Images/Photos, Social Popups on exit/intent, Social Flyin slides and so much more!', 'simple-social-buttons' ),
|
205 |
-
'link' => 'http://www.WPBrigade.com/wordpress/plugins/simple-social-buttons-pro/?utm_source=simple-social-buttons-lite&utm_medium=settings-sidebar&utm_campaign=pro-upgrade'
|
206 |
-
),
|
207 |
-
);
|
208 |
-
|
209 |
-
$ssb_sidebar = apply_filters( 'ssb_sidebar_fields', $ssb_sidebar );
|
210 |
-
|
211 |
-
$ssb_inline = array(
|
212 |
-
array(
|
213 |
-
'name' => 'location',
|
214 |
-
'label' => __( 'Icon Position', 'simple-social-buttons' ),
|
215 |
-
'desc' => __( '<h4>Display Settings</h4>', 'simple-social-buttons' ),
|
216 |
-
'type' => 'ssb_select',
|
217 |
-
'default' => 'above',
|
218 |
-
'options' => array(
|
219 |
-
'above' => 'Above The
|
220 |
-
'below' => 'Below The
|
221 |
-
'above_below' => 'Above + Below The
|
222 |
-
),
|
223 |
-
'priority' => '5',
|
224 |
-
),
|
225 |
-
array(
|
226 |
-
'name' => 'icon_alignment',
|
227 |
-
'label' => __( 'Icon Alignment', 'simple-social-buttons' ),
|
228 |
-
'type' => 'ssb_select',
|
229 |
-
'default' => 'left',
|
230 |
-
'options' => array(
|
231 |
-
'left' => 'Left',
|
232 |
-
'centered' => 'Centered',
|
233 |
-
'right' => 'Right',
|
234 |
-
),
|
235 |
-
'priority' => '10',
|
236 |
-
),
|
237 |
-
array(
|
238 |
-
'name' => 'animation',
|
239 |
-
'label' => __( 'Animation', 'simple-social-buttons' ),
|
240 |
-
'type' => 'ssb_select',
|
241 |
-
'default' => 'no-animation',
|
242 |
-
'options' => array(
|
243 |
-
'no-animation' => 'No',
|
244 |
-
'bottom-in' => 'From bottom',
|
245 |
-
'top-in' => 'From top',
|
246 |
-
'left-in' => 'From left',
|
247 |
-
'right-in' => 'From right',
|
248 |
-
'fade-in' => 'Fade In',
|
249 |
-
),
|
250 |
-
'priority' => '15',
|
251 |
-
),
|
252 |
-
array(
|
253 |
-
'name' => 'share_counts',
|
254 |
-
'label' => __( 'Display Share Counts', 'simple-social-buttons' ),
|
255 |
-
'type' => 'ssb_checkbox',
|
256 |
-
'priority' => '20',
|
257 |
-
),
|
258 |
-
array(
|
259 |
-
'name' => 'total_share',
|
260 |
-
'label' => __( 'Display Total Shares', 'simple-social-buttons' ),
|
261 |
-
'type' => 'ssb_checkbox',
|
262 |
-
'priority' => '25',
|
263 |
-
),
|
264 |
-
array(
|
265 |
-
'name' => 'icon_space',
|
266 |
-
'label' => __( 'Add Icon Spacing', 'simple-social-buttons' ),
|
267 |
-
'type' => 'ssb_checkbox',
|
268 |
-
'priority' => '30',
|
269 |
-
),
|
270 |
-
array(
|
271 |
-
'name' => 'icon_space_value',
|
272 |
-
'type' => 'ssb_text',
|
273 |
-
'label' => 'Enter the Space in Pixel',
|
274 |
-
'sanitize_callback' => 'sanitize_text_field',
|
275 |
-
'priority' => '35',
|
276 |
-
),
|
277 |
-
array(
|
278 |
-
'name' => 'hide_mobile',
|
279 |
-
'label' => __( 'Hide On Mobile Devices', 'simple-social-buttons' ),
|
280 |
-
'type' => 'ssb_checkbox',
|
281 |
-
'priority' => '40',
|
282 |
-
),
|
283 |
-
array(
|
284 |
-
'name' => 'show_on_category',
|
285 |
-
'label' => __( 'Show at Category pages', 'simple-social-buttons' ),
|
286 |
-
'type' => 'ssb_checkbox',
|
287 |
-
'priority' => '45',
|
288 |
-
),
|
289 |
-
array(
|
290 |
-
'name' => 'show_on_archive',
|
291 |
-
'label' => __( 'Show at Archive pages', 'simple-social-buttons' ),
|
292 |
-
'type' => 'ssb_checkbox',
|
293 |
-
'priority' => '50',
|
294 |
-
|
295 |
-
),
|
296 |
-
array(
|
297 |
-
'name' => 'show_on_tag',
|
298 |
-
'label' => __( 'Show at Tag pages', 'simple-social-buttons' ),
|
299 |
-
'type' => 'ssb_checkbox',
|
300 |
-
'priority' => '55',
|
301 |
-
),
|
302 |
-
array(
|
303 |
-
'name'
|
304 |
-
'label'
|
305 |
-
'
|
306 |
-
'
|
307 |
-
|
308 |
-
|
309 |
-
'
|
310 |
-
|
311 |
-
|
312 |
-
'
|
313 |
-
|
314 |
-
|
315 |
-
'
|
316 |
-
'
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
)
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
'
|
358 |
-
|
359 |
-
|
360 |
-
'
|
361 |
-
'
|
362 |
-
'
|
363 |
-
'
|
364 |
-
'
|
365 |
-
),
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
-
|
370 |
-
|
371 |
-
|
372 |
-
'
|
373 |
-
'
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
|
380 |
-
|
381 |
-
'
|
382 |
-
'
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
-
|
390 |
-
'
|
391 |
-
|
392 |
-
|
393 |
-
|
394 |
-
|
395 |
-
|
396 |
-
|
397 |
-
|
398 |
-
|
399 |
-
|
400 |
-
|
401 |
-
|
402 |
-
|
403 |
-
|
404 |
-
|
405 |
-
|
406 |
-
|
407 |
-
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
-
|
413 |
-
|
414 |
-
|
415 |
-
$
|
416 |
-
$
|
417 |
-
|
418 |
-
|
419 |
-
|
420 |
-
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
|
425 |
-
|
426 |
-
function
|
427 |
-
|
428 |
-
|
429 |
-
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
-
|
435 |
-
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
|
449 |
-
|
450 |
-
|
451 |
-
|
452 |
-
$html
|
453 |
-
$html .= '</
|
454 |
-
|
455 |
-
|
456 |
-
|
457 |
-
|
458 |
-
|
459 |
-
|
460 |
-
|
461 |
-
|
462 |
-
|
463 |
-
|
464 |
-
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
-
|
469 |
-
|
470 |
-
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
|
476 |
-
|
477 |
-
|
478 |
-
|
479 |
-
|
480 |
-
|
481 |
-
|
482 |
-
|
483 |
-
|
484 |
-
|
485 |
-
|
486 |
-
|
487 |
-
|
488 |
-
|
489 |
-
|
490 |
-
|
491 |
-
|
492 |
-
|
493 |
-
|
494 |
-
|
495 |
-
|
496 |
-
|
497 |
-
|
498 |
-
|
499 |
-
|
500 |
-
|
501 |
-
|
502 |
-
|
503 |
-
|
504 |
-
|
505 |
-
|
506 |
-
|
507 |
-
|
508 |
-
|
509 |
-
|
510 |
-
|
511 |
-
|
512 |
-
|
513 |
-
|
514 |
-
|
515 |
-
|
516 |
-
|
517 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
*
|
5 |
+
*/
|
6 |
+
class Ssb_Settings {
|
7 |
+
|
8 |
+
private $settings_api;
|
9 |
+
|
10 |
+
function __construct() {
|
11 |
+
|
12 |
+
include_once SSB_PLUGIN_DIR . '/classes/ssb-settings-strucutre.php';
|
13 |
+
$this->settings_api = new Ssb_Settings_Structure();
|
14 |
+
add_action( 'admin_init', array( $this, 'admin_init' ) );
|
15 |
+
add_action( 'admin_menu', array( $this, 'admin_menu' ) );
|
16 |
+
add_action( 'wp_ajax_ssb_help', array( $this, 'download_help' ) );
|
17 |
+
add_action( 'wp_ajax_ssb_export', array( $this, 'export' ) );
|
18 |
+
add_action( 'wp_ajax_ssb_import', array( $this, 'import' ) );
|
19 |
+
|
20 |
+
}
|
21 |
+
|
22 |
+
function admin_menu() {
|
23 |
+
|
24 |
+
if ( current_user_can( 'activate_plugins' ) ) {
|
25 |
+
add_menu_page( 'Simple Social Buttons ', 'Social Buttons ', 'activate_plugins', 'simple-social-buttons', array( $this, 'plugin_page' ), 'dashicons-share', 100 );
|
26 |
+
|
27 |
+
add_submenu_page( 'simple-social-buttons', 'Settings', 'Settings', 'manage_options', 'simple-social-buttons' );
|
28 |
+
do_action( 'ssb_add_pro_submenu' );
|
29 |
+
|
30 |
+
add_submenu_page( 'simple-social-buttons', __( 'Help', 'simple-social-buttons' ), __( 'Help', 'simple-social-buttons' ), 'manage_options', 'ssb-help', array( $this, 'help_page' ) );
|
31 |
+
|
32 |
+
add_submenu_page( 'simple-social-buttons', __( 'Import and export settings', 'simple-social-buttons' ), __( 'Import / Export', 'simple-social-buttons' ), 'manage_options', 'ssb-import-export', array( $this, 'import_export_page' ) );
|
33 |
+
|
34 |
+
}
|
35 |
+
|
36 |
+
}
|
37 |
+
|
38 |
+
function get_settings_sections() {
|
39 |
+
$sections = array(
|
40 |
+
array(
|
41 |
+
'id' => 'ssb_networks',
|
42 |
+
'title' => __( 'Social Buttons', 'simple-social-buttons' ),
|
43 |
+
'priority' => '10',
|
44 |
+
),
|
45 |
+
array(
|
46 |
+
'id' => 'ssb_themes',
|
47 |
+
'title' => __( 'Social Buttons Designs', 'simple-social-buttons' ),
|
48 |
+
'priority' => '15',
|
49 |
+
),
|
50 |
+
array(
|
51 |
+
'id' => 'ssb_positions',
|
52 |
+
'title' => __( 'Social Buttons Postions', 'simple-social-buttons' ),
|
53 |
+
'priority' => '20',
|
54 |
+
),
|
55 |
+
array(
|
56 |
+
'id' => 'ssb_sidebar',
|
57 |
+
'title' => __( 'Sidebar', 'simple-social-buttons' ),
|
58 |
+
'priority' => '25',
|
59 |
+
),
|
60 |
+
array(
|
61 |
+
'id' => 'ssb_media',
|
62 |
+
'title' => __( 'On Media', 'simple-social-buttons' ),
|
63 |
+
'priority' => '40',
|
64 |
+
),
|
65 |
+
array(
|
66 |
+
'id' => 'ssb_popup',
|
67 |
+
'title' => __( 'Popup', 'simple-social-buttons' ),
|
68 |
+
'priority' => '45',
|
69 |
+
),
|
70 |
+
array(
|
71 |
+
'id' => 'ssb_flyin',
|
72 |
+
'title' => __( 'Fly In', 'simple-social-buttons' ),
|
73 |
+
'priority' => '50',
|
74 |
+
),
|
75 |
+
array(
|
76 |
+
'id' => 'ssb_inline',
|
77 |
+
'title' => __( 'InLine', 'simple-social-buttons' ),
|
78 |
+
'priority' => '30',
|
79 |
+
),
|
80 |
+
array(
|
81 |
+
'id' => 'ssb_advanced',
|
82 |
+
'title' => __( 'Additional features', 'simple-social-buttons' ),
|
83 |
+
'priority' => '99',
|
84 |
+
),
|
85 |
+
);
|
86 |
+
|
87 |
+
$setting_section = apply_filters( 'ssb_settings_panel', $sections );
|
88 |
+
|
89 |
+
usort( $setting_section, array( $this, 'sort_array' ) );
|
90 |
+
|
91 |
+
return $setting_section;
|
92 |
+
}
|
93 |
+
|
94 |
+
public function sort_array( $a, $b ){
|
95 |
+
return $a['priority'] - $b['priority'];
|
96 |
+
}
|
97 |
+
|
98 |
+
public function get_current_post_types() {
|
99 |
+
|
100 |
+
$post_types_list = array(
|
101 |
+
'home' => 'Home'
|
102 |
+
);
|
103 |
+
|
104 |
+
$args = array(
|
105 |
+
'public' => true,
|
106 |
+
);
|
107 |
+
|
108 |
+
$post_types = get_post_types( $args );
|
109 |
+
|
110 |
+
foreach ( $post_types as $post_type ) {
|
111 |
+
$post_types_list[ $post_type ] = ucfirst( $post_type );
|
112 |
+
}
|
113 |
+
|
114 |
+
return $post_types_list;
|
115 |
+
}
|
116 |
+
|
117 |
+
/**
|
118 |
+
* Returns all the settings fields
|
119 |
+
*
|
120 |
+
* @return array settings fields
|
121 |
+
*/
|
122 |
+
function get_settings_fields() {
|
123 |
+
$post_types = $this->get_current_post_types();
|
124 |
+
$ssb_positions_options = apply_filters( 'ssb_positions_options', array(
|
125 |
+
'sidebar' => 'Sidebar',
|
126 |
+
'inline' => 'Inline',
|
127 |
+
'media' => 'Media',
|
128 |
+
'popup' => 'Popup',
|
129 |
+
'flyin' => 'Fly In',
|
130 |
+
) ) ;
|
131 |
+
|
132 |
+
$ssb_sidebar = array(
|
133 |
+
array(
|
134 |
+
'name' => 'orientation',
|
135 |
+
'label' => __( 'Sidebar Orientation', 'simple-social-buttons' ),
|
136 |
+
'desc' => __( '<h4>Display Settings</h4>', 'simple-social-buttons' ),
|
137 |
+
'type' => 'ssb_select',
|
138 |
+
'default' => 'left',
|
139 |
+
'options' => array(
|
140 |
+
'left' => 'Left',
|
141 |
+
'right' => 'Right',
|
142 |
+
),
|
143 |
+
'priority' => '5',
|
144 |
+
),
|
145 |
+
array(
|
146 |
+
'name' => 'animation',
|
147 |
+
'label' => __( 'Intro Animation', 'simple-social-buttons' ),
|
148 |
+
'type' => 'ssb_select',
|
149 |
+
'default' => 'no-animation',
|
150 |
+
'options' => array(
|
151 |
+
'no-animation' => 'No',
|
152 |
+
'right-in' => 'From Right',
|
153 |
+
'top-in' => 'From Top',
|
154 |
+
'bottom-in' => 'From Bottom',
|
155 |
+
'left-in' => 'From Left',
|
156 |
+
'fade-in' => 'FadeIn',
|
157 |
+
),
|
158 |
+
'priority' => '10',
|
159 |
+
),
|
160 |
+
array(
|
161 |
+
'name' => 'share_counts',
|
162 |
+
'label' => __( 'Display Share Counts', 'simple-social-buttons' ),
|
163 |
+
'type' => 'ssb_checkbox',
|
164 |
+
'priority' => '15',
|
165 |
+
),
|
166 |
+
array(
|
167 |
+
'name' => 'total_share',
|
168 |
+
'label' => __( 'Display Total Shares', 'simple-social-buttons' ),
|
169 |
+
'type' => 'ssb_checkbox',
|
170 |
+
'priority' => '20',
|
171 |
+
),
|
172 |
+
array(
|
173 |
+
'name' => 'icon_space',
|
174 |
+
'label' => __( 'Add Icon Spacing', 'simple-social-buttons' ),
|
175 |
+
'type' => 'ssb_checkbox',
|
176 |
+
'priority' => '25',
|
177 |
+
),
|
178 |
+
array(
|
179 |
+
'name' => 'icon_space_value',
|
180 |
+
'type' => 'ssb_text',
|
181 |
+
'label' => 'Enter the Space in Pixel',
|
182 |
+
'sanitize_callback' => 'sanitize_text_field',
|
183 |
+
'priority' => '30',
|
184 |
+
),
|
185 |
+
array(
|
186 |
+
'name' => 'hide_mobile',
|
187 |
+
'label' => __( 'Hide On Mobile Devices', 'simple-social-buttons' ),
|
188 |
+
'type' => 'ssb_checkbox',
|
189 |
+
'priority' => '35',
|
190 |
+
),
|
191 |
+
array(
|
192 |
+
'name' => 'posts',
|
193 |
+
'label' => __( 'Post type Settings', 'simple-social-buttons' ),
|
194 |
+
'desc' => __( 'Multi checkbox description', 'simple-social-buttons' ),
|
195 |
+
'type' => 'ssb_post_types',
|
196 |
+
'default' => array('post' => 'post', 'page' => 'page'),
|
197 |
+
'options' => $post_types,
|
198 |
+
'priority' => '99',
|
199 |
+
),
|
200 |
+
array(
|
201 |
+
'name' => 'go_pro',
|
202 |
+
'type' => 'ssb_go_pro',
|
203 |
+
'label' => __( 'Want even more fine tuned control over your Sidebar Social Buttons Styling?', 'simple-social-buttons' ),
|
204 |
+
'desc' => __( 'By upgrading to Simple Social Buttons Pro, you get access to Styling Social buttons of your own choice that matches with your website color schemes. These social buttons will help in driving more engagement and traffic to your site. Some of the Pro features include: Show Social media buttons on Images/Photos, Social Popups on exit/intent, Social Flyin slides and so much more!', 'simple-social-buttons' ),
|
205 |
+
'link' => 'http://www.WPBrigade.com/wordpress/plugins/simple-social-buttons-pro/?utm_source=simple-social-buttons-lite&utm_medium=settings-sidebar&utm_campaign=pro-upgrade'
|
206 |
+
),
|
207 |
+
);
|
208 |
+
|
209 |
+
$ssb_sidebar = apply_filters( 'ssb_sidebar_fields', $ssb_sidebar );
|
210 |
+
|
211 |
+
$ssb_inline = array(
|
212 |
+
array(
|
213 |
+
'name' => 'location',
|
214 |
+
'label' => __( 'Icon Position', 'simple-social-buttons' ),
|
215 |
+
'desc' => __( '<h4>Display Settings</h4>', 'simple-social-buttons' ),
|
216 |
+
'type' => 'ssb_select',
|
217 |
+
'default' => 'above',
|
218 |
+
'options' => array(
|
219 |
+
'above' => 'Above The Content',
|
220 |
+
'below' => 'Below The Content',
|
221 |
+
'above_below' => 'Above + Below The Content',
|
222 |
+
),
|
223 |
+
'priority' => '5',
|
224 |
+
),
|
225 |
+
array(
|
226 |
+
'name' => 'icon_alignment',
|
227 |
+
'label' => __( 'Icon Alignment', 'simple-social-buttons' ),
|
228 |
+
'type' => 'ssb_select',
|
229 |
+
'default' => 'left',
|
230 |
+
'options' => array(
|
231 |
+
'left' => 'Left',
|
232 |
+
'centered' => 'Centered',
|
233 |
+
'right' => 'Right',
|
234 |
+
),
|
235 |
+
'priority' => '10',
|
236 |
+
),
|
237 |
+
array(
|
238 |
+
'name' => 'animation',
|
239 |
+
'label' => __( 'Animation', 'simple-social-buttons' ),
|
240 |
+
'type' => 'ssb_select',
|
241 |
+
'default' => 'no-animation',
|
242 |
+
'options' => array(
|
243 |
+
'no-animation' => 'No',
|
244 |
+
'bottom-in' => 'From bottom',
|
245 |
+
'top-in' => 'From top',
|
246 |
+
'left-in' => 'From left',
|
247 |
+
'right-in' => 'From right',
|
248 |
+
'fade-in' => 'Fade In',
|
249 |
+
),
|
250 |
+
'priority' => '15',
|
251 |
+
),
|
252 |
+
array(
|
253 |
+
'name' => 'share_counts',
|
254 |
+
'label' => __( 'Display Share Counts', 'simple-social-buttons' ),
|
255 |
+
'type' => 'ssb_checkbox',
|
256 |
+
'priority' => '20',
|
257 |
+
),
|
258 |
+
array(
|
259 |
+
'name' => 'total_share',
|
260 |
+
'label' => __( 'Display Total Shares', 'simple-social-buttons' ),
|
261 |
+
'type' => 'ssb_checkbox',
|
262 |
+
'priority' => '25',
|
263 |
+
),
|
264 |
+
array(
|
265 |
+
'name' => 'icon_space',
|
266 |
+
'label' => __( 'Add Icon Spacing', 'simple-social-buttons' ),
|
267 |
+
'type' => 'ssb_checkbox',
|
268 |
+
'priority' => '30',
|
269 |
+
),
|
270 |
+
array(
|
271 |
+
'name' => 'icon_space_value',
|
272 |
+
'type' => 'ssb_text',
|
273 |
+
'label' => 'Enter the Space in Pixel',
|
274 |
+
'sanitize_callback' => 'sanitize_text_field',
|
275 |
+
'priority' => '35',
|
276 |
+
),
|
277 |
+
array(
|
278 |
+
'name' => 'hide_mobile',
|
279 |
+
'label' => __( 'Hide On Mobile Devices', 'simple-social-buttons' ),
|
280 |
+
'type' => 'ssb_checkbox',
|
281 |
+
'priority' => '40',
|
282 |
+
),
|
283 |
+
array(
|
284 |
+
'name' => 'show_on_category',
|
285 |
+
'label' => __( 'Show at Category pages', 'simple-social-buttons' ),
|
286 |
+
'type' => 'ssb_checkbox',
|
287 |
+
'priority' => '45',
|
288 |
+
),
|
289 |
+
array(
|
290 |
+
'name' => 'show_on_archive',
|
291 |
+
'label' => __( 'Show at Archive pages', 'simple-social-buttons' ),
|
292 |
+
'type' => 'ssb_checkbox',
|
293 |
+
'priority' => '50',
|
294 |
+
|
295 |
+
),
|
296 |
+
array(
|
297 |
+
'name' => 'show_on_tag',
|
298 |
+
'label' => __( 'Show at Tag pages', 'simple-social-buttons' ),
|
299 |
+
'type' => 'ssb_checkbox',
|
300 |
+
'priority' => '55',
|
301 |
+
),
|
302 |
+
array(
|
303 |
+
'name' => 'show_on_search',
|
304 |
+
'label' => __( 'Show at Search pages', 'simple-social-buttons' ),
|
305 |
+
'type' => 'ssb_checkbox',
|
306 |
+
'priority' => '56',
|
307 |
+
),
|
308 |
+
array(
|
309 |
+
'name' => 'share_title',
|
310 |
+
'label' => __( 'Share Title', 'simple-social-buttons' ),
|
311 |
+
'type' => 'ssb_text',
|
312 |
+
'priority' => '57',
|
313 |
+
),
|
314 |
+
array(
|
315 |
+
'name' => 'posts',
|
316 |
+
'label' => __( 'Post type Settings', 'simple-social-buttons' ),
|
317 |
+
'desc' => __( 'Multi checkbox description', 'simple-social-buttons' ),
|
318 |
+
'type' => 'ssb_post_types',
|
319 |
+
'default' => array('post' => 'post', 'page' => 'page'),
|
320 |
+
'options' => $post_types,
|
321 |
+
'priority' => '99',
|
322 |
+
),
|
323 |
+
array(
|
324 |
+
'name' => 'go_pro',
|
325 |
+
'type' => 'ssb_go_pro',
|
326 |
+
'label' => __( 'Want to style the Inline Social buttons matches your theme colors?', 'simple-social-buttons' ),
|
327 |
+
'desc' => __( 'By upgrading to Simple Social Buttons Pro, you get access to Styling Social buttons of your own choice that matches with your website color schemes. These social buttons will help in driving more engagement and traffic to your site. Some of the Pro features include: Show Social media buttons on Images/Photos, Social Popups on exit/intent, Social Flyin slides and so much more!', 'simple-social-buttons' ),
|
328 |
+
'link' => 'http://www.WPBrigade.com/wordpress/plugins/simple-social-buttons-pro/?utm_source=simple-social-buttons-lite&utm_medium=settings-inline&utm_campaign=pro-upgrade'
|
329 |
+
),
|
330 |
+
);
|
331 |
+
|
332 |
+
$ssb_inline = apply_filters( 'ssb_inline_fields', $ssb_inline );
|
333 |
+
|
334 |
+
$settings_fields = array(
|
335 |
+
'ssb_networks' => array(
|
336 |
+
array(
|
337 |
+
'name' => 'icon_selection',
|
338 |
+
'type' => 'ssb_icon_selection',
|
339 |
+
)
|
340 |
+
),
|
341 |
+
'ssb_themes' => array(
|
342 |
+
array(
|
343 |
+
'name' => 'icon_style',
|
344 |
+
'label' => __( 'Icon Style', 'simple-social-buttons' ),
|
345 |
+
'type' => 'icon_style',
|
346 |
+
'options' => array(
|
347 |
+
'sm-round' => 'sm-round',
|
348 |
+
'simple-round' => 'simple-round',
|
349 |
+
'round-txt' => 'round-txt',
|
350 |
+
'round-btm-border' => 'round-btm-border',
|
351 |
+
'flat-button-border' => 'flat-button-border',
|
352 |
+
'round-icon' => 'round-icon',
|
353 |
+
'simple-icons' => 'simple-icons',
|
354 |
+
),
|
355 |
+
),
|
356 |
+
),
|
357 |
+
'ssb_positions' => array(
|
358 |
+
array(
|
359 |
+
'name' => 'position',
|
360 |
+
'label' => __( 'Postions', 'simple-social-buttons' ),
|
361 |
+
'desc' => __( 'Multi checkbox description', 'simple-social-buttons' ),
|
362 |
+
'type' => 'position',
|
363 |
+
'default' => 'inline',
|
364 |
+
'options' => $ssb_positions_options,
|
365 |
+
),
|
366 |
+
|
367 |
+
),
|
368 |
+
'ssb_sidebar' => $ssb_sidebar,
|
369 |
+
'ssb_inline' => $ssb_inline,
|
370 |
+
'ssb_media' => array(
|
371 |
+
array(
|
372 |
+
'name' => 'go_pro',
|
373 |
+
'type' => 'ssb_go_pro',
|
374 |
+
'label' => __( 'Show Social Sharing buttons on images or photos in your posts/pages.', 'simple-social-buttons' ),
|
375 |
+
'desc' => __( 'By upgrading to Simple Social Buttons Pro, you get access to Styling Social buttons of your own choice that matches with your website color schemes. These social buttons will help in driving more engagement and traffic to your site. Some of the Pro features include: Show Social media buttons on Images/Photos, Social Popups on exit/intent, Social Flyin slides and so much more!', 'simple-social-buttons' ),
|
376 |
+
'link' => 'http://www.WPBrigade.com/wordpress/plugins/simple-social-buttons-pro/?utm_source=simple-social-buttons-lite&utm_medium=settings-media&utm_campaign=pro-upgrade'
|
377 |
+
),
|
378 |
+
),
|
379 |
+
'ssb_popup' => array(
|
380 |
+
array(
|
381 |
+
'name' => 'go_pro',
|
382 |
+
'type' => 'ssb_go_pro',
|
383 |
+
'label' => __( 'Get more engagement and shares on scrolling and exit intent to visitors.', 'simple-social-buttons' ),
|
384 |
+
'desc' => __( 'By upgrading to Simple Social Buttons Pro, you get access to Styling Social buttons of your own choice that matches with your website color schemes. These social buttons will help in driving more engagement and traffic to your site. Some of the Pro features include: Show Social media buttons on Images/Photos, Social Popups on exit/intent, Social Flyin slides and so much more!', 'simple-social-buttons' ),
|
385 |
+
'link' => 'http://www.WPBrigade.com/wordpress/plugins/simple-social-buttons-pro/?utm_source=simple-social-buttons-lite&utm_medium=settings-popup&utm_campaign=pro-upgrade'
|
386 |
+
),
|
387 |
+
),
|
388 |
+
'ssb_flyin' => array(
|
389 |
+
array(
|
390 |
+
'name' => 'go_pro',
|
391 |
+
'type' => 'ssb_go_pro',
|
392 |
+
'label' => __( 'Advanced Fly ins with animations to have more Social shares.', 'simple-social-buttons' ),
|
393 |
+
'desc' => __( 'By upgrading to Simple Social Buttons Pro, you get access to Styling Social buttons of your own choice that matches with your website color schemes. These social buttons will help in driving more engagement and traffic to your site. Some of the Pro features include: Show Social media buttons on Images/Photos, Social Popups on exit/intent, Social Flyin slides and so much more!', 'simple-social-buttons' ),
|
394 |
+
'link' => 'http://www.WPBrigade.com/wordpress/plugins/simple-social-buttons-pro/?utm_source=simple-social-buttons-lite&utm_medium=settings-flyin&utm_campaign=pro-upgrade'
|
395 |
+
),
|
396 |
+
),
|
397 |
+
'ssb_advanced' => array(
|
398 |
+
array(
|
399 |
+
'name' => 'twitter_handle',
|
400 |
+
'type' => 'ssb_text',
|
401 |
+
'label' => __( 'Twitter @username:', 'simple-social-buttons' ),
|
402 |
+
'sanitize_callback' => 'sanitize_text_field',
|
403 |
+
),
|
404 |
+
),
|
405 |
+
);
|
406 |
+
|
407 |
+
$settings_fields = apply_filters( 'ssb_setting_fields' , $settings_fields, $post_types );
|
408 |
+
|
409 |
+
return $settings_fields;
|
410 |
+
}
|
411 |
+
|
412 |
+
function plugin_page() {
|
413 |
+
echo '<div class="wrap">';
|
414 |
+
$this->settings_api->settings_header();
|
415 |
+
$this->settings_api->show_navigation();
|
416 |
+
$this->settings_api->show_forms();
|
417 |
+
$this->settings_api->settings_sidebar();
|
418 |
+
echo '</div>';
|
419 |
+
}
|
420 |
+
|
421 |
+
/**
|
422 |
+
* Get all the pages
|
423 |
+
*
|
424 |
+
* @return array page names with key value pairs
|
425 |
+
*/
|
426 |
+
function get_pages() {
|
427 |
+
$pages = get_pages();
|
428 |
+
$pages_options = array();
|
429 |
+
if ( $pages ) {
|
430 |
+
foreach ( $pages as $page ) {
|
431 |
+
$pages_options[ $page->ID ] = $page->post_title;
|
432 |
+
}
|
433 |
+
}
|
434 |
+
|
435 |
+
return $pages_options;
|
436 |
+
}
|
437 |
+
|
438 |
+
function admin_init() {
|
439 |
+
|
440 |
+
// set the settings
|
441 |
+
$this->settings_api->set_sections( $this->get_settings_sections() );
|
442 |
+
$this->settings_api->set_fields( $this->get_settings_fields() );
|
443 |
+
|
444 |
+
// initialize settings
|
445 |
+
$this->settings_api->admin_init();
|
446 |
+
}
|
447 |
+
|
448 |
+
function help_page() {
|
449 |
+
|
450 |
+
include SSB_PLUGIN_DIR . 'classes/ssb-logs.php';
|
451 |
+
|
452 |
+
$html = '<div class="simple-social-buttons-help-page">';
|
453 |
+
$html .= '<h2>Help & Troubleshooting</h2>';
|
454 |
+
$html .= sprintf( __( 'Free support is available on the %1$s plugin support forums%2$s.', 'simple-social-buttons' ), '<a href="https://wordpress.org/support/plugin/simple-social-buttons" target="_blank">', '</a>' );
|
455 |
+
$html .="<br /><br />";
|
456 |
+
$html .= sprintf( __( 'For premium features, add-ons and priority email support, %1$s upgrade to pro%2$s.', 'simple-social-buttons' ), '<a href="https://wpbrigade.com/wordpress/plugins/simple-social-buttons-pro/?utm_source=simple-social-buttons-lite&utm_medium=help-page&utm_campaign=pro-upgrade" target="_blank">', '</a>' );
|
457 |
+
$html .="<br /><br />";
|
458 |
+
$html .= 'Found a bug or have a feature request? Please submit an issue <a href="https://wpbrigade.com/contact/" target="_blank">here</a>!';
|
459 |
+
$html .= '<pre><textarea rows="25" cols="75" readonly="readonly">';
|
460 |
+
$html .= Ssb_Logs_Info::get_sysinfo();
|
461 |
+
$html .= '</textarea></pre>';
|
462 |
+
$html .= '<input type="button" class="button simple-social-buttons-log-file" value="' . __( 'Download Log File', 'simple-social-buttons' ) . '"/>';
|
463 |
+
$html .= '<span class="ssb-log-file-sniper"><img src="'. admin_url( 'images/wpspin_light.gif' ) .'" /></span>';
|
464 |
+
$html .= '<span class="ssb-log-file-text">Simple Social Buttons Log File Downloaded Successfully!</span>';
|
465 |
+
$html .= '</div>';
|
466 |
+
echo $html;
|
467 |
+
}
|
468 |
+
|
469 |
+
public function download_help() {
|
470 |
+
|
471 |
+
include SSB_PLUGIN_DIR . 'classes/ssb-logs.php';
|
472 |
+
|
473 |
+
echo Ssb_Logs_Info::get_sysinfo();
|
474 |
+
wp_die();
|
475 |
+
}
|
476 |
+
|
477 |
+
/**
|
478 |
+
* Include Import/Export Page.
|
479 |
+
*
|
480 |
+
* @since 2.0.4
|
481 |
+
*/
|
482 |
+
public function import_export_page() {
|
483 |
+
include_once SSB_PLUGIN_DIR . '/inc/ssb-import-export.php';
|
484 |
+
}
|
485 |
+
|
486 |
+
/**
|
487 |
+
* Export Settings
|
488 |
+
*
|
489 |
+
* @since 2.0.4
|
490 |
+
*/
|
491 |
+
public function export() {
|
492 |
+
|
493 |
+
$sections = $this->get_settings_sections();
|
494 |
+
$settings = array();
|
495 |
+
|
496 |
+
foreach ( $sections as $section ) {
|
497 |
+
$result = get_option( $section ['id'] );
|
498 |
+
$settings [ $section ['id'] ] = $result;
|
499 |
+
}
|
500 |
+
|
501 |
+
echo json_encode( $settings );
|
502 |
+
wp_die();
|
503 |
+
}
|
504 |
+
|
505 |
+
/**
|
506 |
+
* Import Settings.
|
507 |
+
*
|
508 |
+
* @since 2.0.4
|
509 |
+
*/
|
510 |
+
public function import(){
|
511 |
+
|
512 |
+
$ssb_imp_tmp_name = $_FILES['file']['tmp_name'];
|
513 |
+
$ssb_file_content = file_get_contents( $ssb_imp_tmp_name );
|
514 |
+
$ssb_json = json_decode( $ssb_file_content, true );
|
515 |
+
|
516 |
+
if ( json_last_error() == JSON_ERROR_NONE ) {
|
517 |
+
foreach ( $ssb_json as $id => $array ) {
|
518 |
+
update_option( $id, $array );
|
519 |
+
}
|
520 |
+
} else {
|
521 |
+
echo "error";
|
522 |
+
}
|
523 |
+
wp_die();
|
524 |
+
}
|
525 |
+
|
526 |
+
|
527 |
+
}
|
528 |
+
|
529 |
+
new Ssb_Settings();
|
inc/custom-css.php
CHANGED
@@ -1,82 +1,100 @@
|
|
1 |
-
<style media="screen">
|
2 |
-
|
3 |
-
<?php if (
|
4 |
-
.simplesocialbuttons.simplesocialbuttons_inline.
|
5 |
-
margin: <?php echo $this->inline_option['icon_space'] == '1' && $this->inline_option['icon_space_value'] != '' ? $this->inline_option['icon_space_value'] . 'px' : ''; ?>;
|
6 |
-
}
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
.simplesocialbuttons.simplesocialbuttons_inline.simplesocial-
|
11 |
-
margin: <?php echo $this->inline_option['icon_space'] == '1' && $this->inline_option['icon_space_value'] != '' ? $this->inline_option['icon_space_value'] . 'px' : ''; ?>;
|
12 |
-
}
|
13 |
-
<?php endif ?>
|
14 |
-
|
15 |
-
<?php if ( 'round
|
16 |
-
.simplesocialbuttons.simplesocialbuttons_inline.simplesocial-round
|
17 |
-
margin: <?php echo $this->inline_option['icon_space'] == '1' && $this->inline_option['icon_space_value'] != '' ? $this->inline_option['icon_space_value'] . 'px' : ''; ?>;
|
18 |
-
}
|
19 |
-
<?php endif ?>
|
20 |
-
|
21 |
-
<?php if ( 'round-
|
22 |
-
.simplesocialbuttons.simplesocialbuttons_inline.simplesocial-round-
|
23 |
-
margin: <?php echo $this->inline_option['icon_space'] == '1' && $this->inline_option['icon_space_value'] != '' ? $this->inline_option['icon_space_value'] . 'px' : ''; ?>;
|
24 |
-
}
|
25 |
-
<?php endif ?>
|
26 |
-
|
27 |
-
<?php if ( '
|
28 |
-
.simplesocialbuttons.simplesocialbuttons_inline.simplesocial-
|
29 |
-
margin: <?php echo $this->inline_option['icon_space'] == '1' && $this->inline_option['icon_space_value'] != '' ? $this->inline_option['icon_space_value'] . 'px' : ''; ?>;
|
30 |
-
}
|
31 |
-
<?php endif ?>
|
32 |
-
|
33 |
-
<?php if ( '
|
34 |
-
.simplesocialbuttons.simplesocialbuttons_inline.simplesocial-
|
35 |
-
margin: <?php echo $this->inline_option['icon_space'] == '1' && $this->inline_option['icon_space_value'] != '' ? $this->inline_option['icon_space_value'] . 'px' : ''; ?>;
|
36 |
-
}
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
<?php if ( '
|
55 |
-
div[class*="simplesocialbuttons-float"].simplesocialbuttons.simplesocial-
|
56 |
-
margin: <?php echo $this->sidebar_option['icon_space'] == '1' && $this->sidebar_option['icon_space_value'] != '' ? $this->sidebar_option['icon_space_value'] . 'px 0' : ''; ?>;
|
57 |
-
}
|
58 |
-
<?php endif ?>
|
59 |
-
|
60 |
-
<?php if ( 'round
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
<?php endif ?>
|
65 |
-
|
66 |
-
<?php if ( 'round-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
<?php endif ?>
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
}
|
7 |
+
<?php endif ?>
|
8 |
+
/*inline margin*/
|
9 |
+
<?php if ( 'sm-round' == $this->selected_theme && isset( $this->selected_position['inline'] ) ): ?>
|
10 |
+
.simplesocialbuttons.simplesocialbuttons_inline.simplesocial-sm-round button{
|
11 |
+
margin: <?php echo $this->inline_option['icon_space'] == '1' && $this->inline_option['icon_space_value'] != '' ? $this->inline_option['icon_space_value'] . 'px' : ''; ?>;
|
12 |
+
}
|
13 |
+
<?php endif ?>
|
14 |
+
|
15 |
+
<?php if ( 'simple-round' == $this->selected_theme && isset( $this->selected_position['inline'] ) ) : ?>
|
16 |
+
.simplesocialbuttons.simplesocialbuttons_inline.simplesocial-simple-round button{
|
17 |
+
margin: <?php echo $this->inline_option['icon_space'] == '1' && $this->inline_option['icon_space_value'] != '' ? $this->inline_option['icon_space_value'] . 'px' : ''; ?>;
|
18 |
+
}
|
19 |
+
<?php endif ?>
|
20 |
+
|
21 |
+
<?php if ( 'round-txt' == $this->selected_theme && isset( $this->selected_position['inline'] ) ) : ?>
|
22 |
+
.simplesocialbuttons.simplesocialbuttons_inline.simplesocial-round-txt button{
|
23 |
+
margin: <?php echo $this->inline_option['icon_space'] == '1' && $this->inline_option['icon_space_value'] != '' ? $this->inline_option['icon_space_value'] . 'px' : ''; ?>;
|
24 |
+
}
|
25 |
+
<?php endif ?>
|
26 |
+
|
27 |
+
<?php if ( 'round-btm-border' == $this->selected_theme && isset( $this->selected_position['inline'] ) ) : ?>
|
28 |
+
.simplesocialbuttons.simplesocialbuttons_inline.simplesocial-round-btm-border button{
|
29 |
+
margin: <?php echo $this->inline_option['icon_space'] == '1' && $this->inline_option['icon_space_value'] != '' ? $this->inline_option['icon_space_value'] . 'px' : ''; ?>;
|
30 |
+
}
|
31 |
+
<?php endif ?>
|
32 |
+
|
33 |
+
<?php if ( 'flat-button-border' == $this->selected_theme && isset( $this->selected_position['inline'] ) ) : ?>
|
34 |
+
.simplesocialbuttons.simplesocialbuttons_inline.simplesocial-flat-button-border button{
|
35 |
+
margin: <?php echo $this->inline_option['icon_space'] == '1' && $this->inline_option['icon_space_value'] != '' ? $this->inline_option['icon_space_value'] . 'px' : ''; ?>;
|
36 |
+
}
|
37 |
+
<?php endif ?>
|
38 |
+
|
39 |
+
<?php if ( 'round-icon' == $this->selected_theme && isset( $this->selected_position['inline'] ) ) : ?>
|
40 |
+
.simplesocialbuttons.simplesocialbuttons_inline.simplesocial-round-icon button{
|
41 |
+
margin: <?php echo $this->inline_option['icon_space'] == '1' && $this->inline_option['icon_space_value'] != '' ? $this->inline_option['icon_space_value'] . 'px' : ''; ?>;
|
42 |
+
}
|
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 |
+
}
|
50 |
+
|
51 |
+
<?php endif ?>
|
52 |
+
/*margin-digbar*/
|
53 |
+
|
54 |
+
<?php if ( 'sm-round' == $this->selected_theme && isset( $this->selected_position['sidebar'] ) ) : ?>
|
55 |
+
div[class*="simplesocialbuttons-float"].simplesocialbuttons.simplesocial-sm-round button{
|
56 |
+
margin: <?php echo $this->sidebar_option['icon_space'] == '1' && $this->sidebar_option['icon_space_value'] != '' ? $this->sidebar_option['icon_space_value'] . 'px 0' : ''; ?>;
|
57 |
+
}
|
58 |
+
<?php endif ?>
|
59 |
+
|
60 |
+
<?php if ( 'simple-round' == $this->selected_theme && isset( $this->selected_position['sidebar'] ) ) : ?>
|
61 |
+
div[class*="simplesocialbuttons-float"].simplesocialbuttons.simplesocial-simple-round button{
|
62 |
+
margin: <?php echo $this->sidebar_option['icon_space'] == '1' && $this->sidebar_option['icon_space_value'] != '' ? $this->sidebar_option['icon_space_value'] . 'px 0' : ''; ?>;
|
63 |
+
}
|
64 |
+
<?php endif ?>
|
65 |
+
|
66 |
+
<?php if ( 'round-txt' == $this->selected_theme && isset( $this->selected_position['sidebar'] ) ) : ?>
|
67 |
+
div[class*="simplesocialbuttons-float"].simplesocialbuttons.simplesocial-round-txt button{
|
68 |
+
margin: <?php echo $this->sidebar_option['icon_space'] == '1' && $this->sidebar_option['icon_space_value'] != '' ? $this->sidebar_option['icon_space_value'] . 'px 0' : ''; ?>;
|
69 |
+
}
|
70 |
+
<?php endif ?>
|
71 |
+
|
72 |
+
<?php if ( 'round-btm-border' == $this->selected_theme && isset( $this->selected_position['sidebar'] ) ) : ?>
|
73 |
+
div[class*="simplesocialbuttons-float"].simplesocialbuttons.simplesocial-round-btm-border button{
|
74 |
+
margin: <?php echo $this->sidebar_option['icon_space'] == '1' && $this->sidebar_option['icon_space_value'] != '' ? $this->sidebar_option['icon_space_value'] . 'px 0' : ''; ?>;
|
75 |
+
}
|
76 |
+
<?php endif ?>
|
77 |
+
|
78 |
+
<?php if ( 'round-icon' == $this->selected_theme && isset( $this->selected_position['sidebar'] ) ) : ?>
|
79 |
+
div[class*="simplesocialbuttons-float"].simplesocialbuttons.simplesocial-round-icon button{
|
80 |
+
margin: <?php echo $this->sidebar_option['icon_space'] == '1' && $this->sidebar_option['icon_space_value'] != '' ? $this->sidebar_option['icon_space_value'] . 'px 0' : ''; ?>;
|
81 |
+
}
|
82 |
+
<?php endif ?>
|
83 |
+
|
84 |
+
<?php if ( 'simple-icons' == $this->selected_theme && isset( $this->selected_position['sidebar'] ) ) : ?>
|
85 |
+
div[class*="simplesocialbuttons-float"].simplesocialbuttons.simplesocial-simple-icons button{
|
86 |
+
margin: <?php echo $this->sidebar_option['icon_space'] == '1' && $this->sidebar_option['icon_space_value'] != '' ? $this->sidebar_option['icon_space_value'] . 'px 0' : ''; ?>;
|
87 |
+
}
|
88 |
+
div[class*="simplesocialbuttons-float"].simplesocialbuttons.simplesocial-simple-icons .ssb-fb-like{
|
89 |
+
margin: <?php echo $this->sidebar_option['icon_space'] == '1' && $this->sidebar_option['icon_space_value'] != '' ? $this->sidebar_option['icon_space_value'] . 'px 0' : ''; ?>;
|
90 |
+
}
|
91 |
+
<?php endif ?>
|
92 |
+
|
93 |
+
<?php if ( isset( $this->selected_position['sidebar'] ) && $this->sidebar_option['icon_space'] == '1' ) : ?>
|
94 |
+
div[class*="simplesocialbuttons-float"].simplesocialbuttons .ssb-fb-like{
|
95 |
+
margin: <?php echo $this->sidebar_option['icon_space'] == '1' && $this->sidebar_option['icon_space_value'] != '' ? $this->sidebar_option['icon_space_value'] . 'px 0' : ''; ?>;
|
96 |
+
}
|
97 |
+
<?php endif ?>
|
98 |
+
|
99 |
+
|
100 |
+
</style>
|
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 |
|
@@ -12,14 +12,14 @@ Simple Social Media Share Buttons adds an advanced set of social media sharing b
|
|
12 |
|
13 |
== Description ==
|
14 |
|
15 |
-
[Simple Social Buttons](https://wpbrigade.com/wordpress/plugins/simple-social-buttons-pro/?utm_source=simple-social-buttons-lite&utm_medium=link-readme&utm_campaign=pro-upgrade "This plugin makes Social Sharing easy for EVERYONE.") adds ( with lots of options like Sidebar, inline, above and below the posts content, on photos, popups, fly ins ) an advanced set of social media sharing buttons to your WordPress sites, such as: Google +1, Facebook, WhatsApp, Viber, Twitter, Reddit, LinkedIn and Pinterest.
|
16 |
|
17 |
> Rich set of features makes it the most flexible **Social Sharing plugin ever for Everyone**.
|
18 |
|
19 |
** This social sharing Plugin is fully customizable. You can decide where to position those buttons:**
|
20 |
|
21 |
**Inline**
|
22 |
-
- Social Sharing Buttons above the post content
|
23 |
- Social Sharing Buttons under the post content
|
24 |
- Social Sharing Buttons above and under the post
|
25 |
- Hide Social Share buttons on mobile devices
|
@@ -70,10 +70,10 @@ Want's more? Now you can change the **order of buttons** on your post!
|
|
70 |
|
71 |
Simple Social Buttons is currently in the following languages:
|
72 |
|
73 |
-
- Danish
|
74 |
- Dutch
|
75 |
- English
|
76 |
-
- French
|
77 |
- German
|
78 |
- Lithuanian
|
79 |
- Polish
|
@@ -81,8 +81,8 @@ Simple Social Buttons is currently in the following languages:
|
|
81 |
- Slovak
|
82 |
- Spanish
|
83 |
- Swedish
|
84 |
-
- Thai
|
85 |
-
- Ukrainian
|
86 |
|
87 |
|
88 |
== Installation ==
|
@@ -107,7 +107,7 @@ This plugin lets you adds the Facebook share button, Google plus one +1, Twitter
|
|
107 |
|
108 |
= How about support? =
|
109 |
|
110 |
-
Use [plugin's forum](http://wordpress.org/support/plugin/simple-social-buttons "Forum") to ask about plugin or report some problems.
|
111 |
|
112 |
= Why upgrade to Pro? =
|
113 |
|
@@ -146,12 +146,19 @@ 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.
|
151 |
|
152 |
|
153 |
== Changelog ==
|
154 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
155 |
= 2.0.6 - 2017-12-27 =
|
156 |
* Bug Fix: fix layout issues for default social media sharing icons.
|
157 |
|
@@ -170,7 +177,7 @@ theme = theme1 or theme2 or theme3 or theme4 or Flat or Circle or Official
|
|
170 |
* Enhancement: Facebook likes button is back.
|
171 |
|
172 |
= 2.0.3 - 2017-11-13 =
|
173 |
-
* Bug Fix: Social media Counter
|
174 |
* Enhancement: Compatible with 4.9
|
175 |
|
176 |
= 2.0.2 - 2017-11-02 =
|
@@ -181,15 +188,15 @@ theme = theme1 or theme2 or theme3 or theme4 or Flat or Circle or Official
|
|
181 |
|
182 |
= 2.0.0 - 2017-10-31 =
|
183 |
* New Feature: Refactored i.e rewritten the whole plugin with lots of new features.
|
184 |
-
* New Feature: Inline social share buttons with animations and custom colors in Pro
|
185 |
-
* New Feature: Sidebar social share buttons with animations and custom colors in Pro
|
186 |
* New Feature: Social share Popups with events triggers on exit/intent and on scroll.
|
187 |
* New Feature: Social Share buttons on images in posts or pages or custom post types. Helps in drive more engagement with site visitors.
|
188 |
* New Feature: Fly-in the social popups. Style it with your WordPress theme and win the use engagement.
|
189 |
* New Feature: Choose Social media buttons from more than 5 different social button styles.
|
190 |
* New Feature: Show Social media buttons on 5 different locations or positions.
|
191 |
* New Feature: Choose Social Networks with Drag and Drop feature.
|
192 |
-
* New Feature: Introducing
|
193 |
* Bug Fix: Improved the loading speed of social media buttons.
|
194 |
|
195 |
|
@@ -218,7 +225,7 @@ theme = theme1 or theme2 or theme3 or theme4 or Flat or Circle or Official
|
|
218 |
* First stable release.
|
219 |
|
220 |
= 1.1 =
|
221 |
-
* Added
|
222 |
* Added language support in Facebook and Google+ JavaScript
|
223 |
|
224 |
= 1.2.1 =
|
@@ -233,19 +240,19 @@ theme = theme1 or theme2 or theme3 or theme4 or Flat or Circle or Official
|
|
233 |
* Lots of fine-tuning
|
234 |
|
235 |
= 1.4 =
|
236 |
-
* Added custom meta to disable SSB plugin on
|
237 |
* Function get_ssb() to directly use in template to show Simple Social Buttons in specified order
|
238 |
* Widget manage page in wp-admin available only for Administrator
|
239 |
* Added German and Spanish translation
|
240 |
* Fine-tuning
|
241 |
|
242 |
-
= 1.5 =
|
243 |
* New asynchronous JS code
|
244 |
* Minor bug fixed
|
245 |
|
246 |
|
247 |
= 1.5.1 =
|
248 |
-
* Added
|
249 |
|
250 |
= 1.5.2 =
|
251 |
* Bug fix from 1.5.1
|
@@ -254,11 +261,11 @@ theme = theme1 or theme2 or theme3 or theme4 or Flat or Circle or Official
|
|
254 |
* Facebook "Like it" fix (added id="fb-root" instead of class="fb-like")
|
255 |
|
256 |
= 1.5.5 =
|
257 |
-
* Added
|
258 |
|
259 |
= 1.5.6 =
|
260 |
-
* Added
|
261 |
-
* fixed Facebook language detection
|
262 |
|
263 |
= 1.6.0 =
|
264 |
* Added Twitter via @username option
|
@@ -266,44 +273,44 @@ theme = theme1 or theme2 or theme3 or theme4 or Flat or Circle or Official
|
|
266 |
* Some bug fixes
|
267 |
|
268 |
= 1.6.2 =
|
269 |
-
* Added
|
270 |
|
271 |
-
= 1.6.3 =
|
272 |
* Fixed CSS class names ("buttom" to "button")
|
273 |
-
* Fixed
|
274 |
|
275 |
-
= 1.6.4 =
|
276 |
* Used "Roles and Capabilities" in admin access
|
277 |
|
278 |
= 1.6.5 =
|
279 |
-
* Added
|
280 |
-
* Added
|
281 |
|
282 |
= 1.6.6 =
|
283 |
-
* Update for
|
284 |
|
285 |
= 1.7.0 =
|
286 |
* Fixed margin-right for buttons
|
287 |
* Pinterest button code update
|
288 |
|
289 |
= 1.7.2 =
|
290 |
-
* New
|
291 |
|
292 |
= 1.7.3 =
|
293 |
* New description and donation link
|
294 |
-
* New polish and
|
295 |
|
296 |
= 1.7.4 =
|
297 |
* Fixed position of Facebook "Like" button
|
298 |
|
299 |
= 1.7.5 =
|
300 |
-
* Added
|
301 |
|
302 |
= 1.7.7 =
|
303 |
-
* Added
|
304 |
|
305 |
= 1.7.8 =
|
306 |
* Fixed PHP warning
|
307 |
|
308 |
= 1.7.9 =
|
309 |
-
* Fixed users permission
|
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.7
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
12 |
|
13 |
== Description ==
|
14 |
|
15 |
+
[Simple Social Buttons](https://wpbrigade.com/wordpress/plugins/simple-social-buttons-pro/?utm_source=simple-social-buttons-lite&utm_medium=link-readme&utm_campaign=pro-upgrade "This plugin makes Social Sharing easy for EVERYONE.") adds ( with lots of options like Sidebar, inline, above and below the posts content, on photos, popups, fly ins ) an advanced set of social media sharing buttons to your WordPress sites, such as: Google +1, Facebook, WhatsApp, Viber, Twitter, Reddit, LinkedIn and Pinterest.
|
16 |
|
17 |
> Rich set of features makes it the most flexible **Social Sharing plugin ever for Everyone**.
|
18 |
|
19 |
** This social sharing Plugin is fully customizable. You can decide where to position those buttons:**
|
20 |
|
21 |
**Inline**
|
22 |
+
- Social Sharing Buttons above the post content
|
23 |
- Social Sharing Buttons under the post content
|
24 |
- Social Sharing Buttons above and under the post
|
25 |
- Hide Social Share buttons on mobile devices
|
70 |
|
71 |
Simple Social Buttons is currently in the following languages:
|
72 |
|
73 |
+
- Danish
|
74 |
- Dutch
|
75 |
- English
|
76 |
+
- French
|
77 |
- German
|
78 |
- Lithuanian
|
79 |
- Polish
|
81 |
- Slovak
|
82 |
- Spanish
|
83 |
- Swedish
|
84 |
+
- Thai
|
85 |
+
- Ukrainian
|
86 |
|
87 |
|
88 |
== Installation ==
|
107 |
|
108 |
= How about support? =
|
109 |
|
110 |
+
Use [plugin's forum](http://wordpress.org/support/plugin/simple-social-buttons "Forum") to ask about plugin or report some problems.
|
111 |
|
112 |
= Why upgrade to Pro? =
|
113 |
|
146 |
|
147 |
== Upgrade Notice ==
|
148 |
|
149 |
+
= 2.0.7 =
|
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.7 - 2018-01-20 =
|
156 |
+
* New Feature: Share Title text Option added.
|
157 |
+
* New Feature: Settings Option for excluding Simple Social Buttons on Search Page.
|
158 |
+
* Bug Fix: Show on tags page.
|
159 |
+
* Bug Fix: Custom Icon Space.
|
160 |
+
* Bug Fix: Remove Open Sans from Social buttons.
|
161 |
+
|
162 |
= 2.0.6 - 2017-12-27 =
|
163 |
* Bug Fix: fix layout issues for default social media sharing icons.
|
164 |
|
177 |
* Enhancement: Facebook likes button is back.
|
178 |
|
179 |
= 2.0.3 - 2017-11-13 =
|
180 |
+
* Bug Fix: Social media Counter
|
181 |
* Enhancement: Compatible with 4.9
|
182 |
|
183 |
= 2.0.2 - 2017-11-02 =
|
188 |
|
189 |
= 2.0.0 - 2017-10-31 =
|
190 |
* New Feature: Refactored i.e rewritten the whole plugin with lots of new features.
|
191 |
+
* New Feature: Inline social share buttons with animations and custom colors in Pro version.
|
192 |
+
* New Feature: Sidebar social share buttons with animations and custom colors in Pro version.
|
193 |
* New Feature: Social share Popups with events triggers on exit/intent and on scroll.
|
194 |
* New Feature: Social Share buttons on images in posts or pages or custom post types. Helps in drive more engagement with site visitors.
|
195 |
* New Feature: Fly-in the social popups. Style it with your WordPress theme and win the use engagement.
|
196 |
* New Feature: Choose Social media buttons from more than 5 different social button styles.
|
197 |
* New Feature: Show Social media buttons on 5 different locations or positions.
|
198 |
* New Feature: Choose Social Networks with Drag and Drop feature.
|
199 |
+
* New Feature: Introducing WhatsApp, Viber, Reddit and linked in.
|
200 |
* Bug Fix: Improved the loading speed of social media buttons.
|
201 |
|
202 |
|
225 |
* First stable release.
|
226 |
|
227 |
= 1.1 =
|
228 |
+
* Added French translation
|
229 |
* Added language support in Facebook and Google+ JavaScript
|
230 |
|
231 |
= 1.2.1 =
|
240 |
* Lots of fine-tuning
|
241 |
|
242 |
= 1.4 =
|
243 |
+
* Added custom meta to disable SSB plugin on single page/post (managed in admin menu)
|
244 |
* Function get_ssb() to directly use in template to show Simple Social Buttons in specified order
|
245 |
* Widget manage page in wp-admin available only for Administrator
|
246 |
* Added German and Spanish translation
|
247 |
* Fine-tuning
|
248 |
|
249 |
+
= 1.5 =
|
250 |
* New asynchronous JS code
|
251 |
* Minor bug fixed
|
252 |
|
253 |
|
254 |
= 1.5.1 =
|
255 |
+
* Added Lithuanian translation
|
256 |
|
257 |
= 1.5.2 =
|
258 |
* Bug fix from 1.5.1
|
261 |
* Facebook "Like it" fix (added id="fb-root" instead of class="fb-like")
|
262 |
|
263 |
= 1.5.5 =
|
264 |
+
* Added Danish translation
|
265 |
|
266 |
= 1.5.6 =
|
267 |
+
* Added Thai translation
|
268 |
+
* fixed Facebook language detection
|
269 |
|
270 |
= 1.6.0 =
|
271 |
* Added Twitter via @username option
|
273 |
* Some bug fixes
|
274 |
|
275 |
= 1.6.2 =
|
276 |
+
* Added Slovak translation
|
277 |
|
278 |
+
= 1.6.3 =
|
279 |
* Fixed CSS class names ("buttom" to "button")
|
280 |
+
* Fixed Facebook Like box cut off
|
281 |
|
282 |
+
= 1.6.4 =
|
283 |
* Used "Roles and Capabilities" in admin access
|
284 |
|
285 |
= 1.6.5 =
|
286 |
+
* Added Dutch translation
|
287 |
+
* Added Serbo-Croatian translation
|
288 |
|
289 |
= 1.6.6 =
|
290 |
+
* Update for WordPress 3.8
|
291 |
|
292 |
= 1.7.0 =
|
293 |
* Fixed margin-right for buttons
|
294 |
* Pinterest button code update
|
295 |
|
296 |
= 1.7.2 =
|
297 |
+
* New screenshots of plugin
|
298 |
|
299 |
= 1.7.3 =
|
300 |
* New description and donation link
|
301 |
+
* New polish and English translation
|
302 |
|
303 |
= 1.7.4 =
|
304 |
* Fixed position of Facebook "Like" button
|
305 |
|
306 |
= 1.7.5 =
|
307 |
+
* Added Ukrainian translation
|
308 |
|
309 |
= 1.7.7 =
|
310 |
+
* Added Swedish translation
|
311 |
|
312 |
= 1.7.8 =
|
313 |
* Fixed PHP warning
|
314 |
|
315 |
= 1.7.9 =
|
316 |
+
* Fixed users permission
|
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 |
|
@@ -393,7 +393,7 @@ class SimpleSocialButtonsPR {
|
|
393 |
*/
|
394 |
function insert_excerpt_buttons( $content ) {
|
395 |
|
396 |
-
if ( is_single() ) {
|
397 |
return $content;
|
398 |
}
|
399 |
|
@@ -433,11 +433,13 @@ class SimpleSocialButtonsPR {
|
|
433 |
return $content;
|
434 |
}
|
435 |
|
436 |
-
if ( is_archive() &&
|
437 |
return $content; }
|
438 |
-
if ( is_category() &&
|
439 |
return $content; }
|
440 |
-
if ( is_tag() &&
|
|
|
|
|
441 |
return $content; }
|
442 |
|
443 |
// && 'false' == get_post_meta( get_the_ID(), $this->hideCustomMetaKey , true )
|
@@ -466,12 +468,17 @@ class SimpleSocialButtonsPR {
|
|
466 |
$_selected_network = apply_filters( 'ssb_inline_social_networks', $this->selected_networks );
|
467 |
$ssb_buttonscode = $this->generate_buttons_code( $_selected_network, $show_count, $show_total, $extra_class );
|
468 |
|
469 |
-
|
|
|
|
|
|
|
|
|
|
|
470 |
if ( $this->inline_option['location'] == 'above' || $this->inline_option['location'] == 'above_below' ) {
|
471 |
-
$content = $ssb_buttonscode . $content;
|
472 |
}
|
473 |
if ( $this->inline_option['location'] == 'below' || $this->inline_option['location'] == 'above_below' ) {
|
474 |
-
$content = $content . $ssb_buttonscode;
|
475 |
}
|
476 |
}
|
477 |
}
|
@@ -480,7 +487,6 @@ class SimpleSocialButtonsPR {
|
|
480 |
|
481 |
}
|
482 |
|
483 |
-
|
484 |
/**
|
485 |
* Generate buttons html code with specified order
|
486 |
*
|
@@ -807,7 +813,7 @@ class SimpleSocialButtonsPR {
|
|
807 |
|
808 |
if ( $this->_get_settings( 'sidebar', 'share_counts' ) ) {
|
809 |
$class .= ' ssb_counter-activate';
|
810 |
-
}
|
811 |
|
812 |
$class .= ' simplesocialbuttons-slide-' . $this->_get_settings( 'sidebar', 'animation', 'no-animation' );
|
813 |
$_selected_network = apply_filters( 'ssb_sidebar_social_networks', $this->selected_networks );
|
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
|
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.7';
|
34 |
public $pluginPrefix = 'ssb_pr_';
|
35 |
public $hideCustomMetaKey = '_ssb_hide';
|
36 |
|
393 |
*/
|
394 |
function insert_excerpt_buttons( $content ) {
|
395 |
|
396 |
+
if ( is_single() || has_excerpt() ) {
|
397 |
return $content;
|
398 |
}
|
399 |
|
433 |
return $content;
|
434 |
}
|
435 |
|
436 |
+
if ( is_archive() && $this->_get_settings( 'inline', 'show_on_archive', '0' ) == '0' && !is_tag() && !is_category() ) {
|
437 |
return $content; }
|
438 |
+
if ( is_category() && $this->_get_settings( 'inline', 'show_on_category', '0' ) == '0' ) {
|
439 |
return $content; }
|
440 |
+
if ( is_tag() && $this->_get_settings( 'inline', 'show_on_tag', '0' ) == '0' ) {
|
441 |
+
return $content; }
|
442 |
+
if ( is_search() && $this->_get_settings( 'inline', 'show_on_search', '0' ) == '0' ) {
|
443 |
return $content; }
|
444 |
|
445 |
// && 'false' == get_post_meta( get_the_ID(), $this->hideCustomMetaKey , true )
|
468 |
$_selected_network = apply_filters( 'ssb_inline_social_networks', $this->selected_networks );
|
469 |
$ssb_buttonscode = $this->generate_buttons_code( $_selected_network, $show_count, $show_total, $extra_class );
|
470 |
|
471 |
+
$sharing_text = '';
|
472 |
+
|
473 |
+
if ( isset( $this->inline_option['share_title'] ) && trim( $this->inline_option['share_title'] ) != '' ) {
|
474 |
+
$sharing_text = '<span class="ssb_inline-share_heading '. $this->_get_settings( 'inline', 'icon_alignment', 'left' ) .'">'. $this->inline_option['share_title'] .'</span>' ;
|
475 |
+
}
|
476 |
+
if ( in_array( $this->get_post_type(), $this->_get_settings( 'inline', 'posts', array() ) ) ) {
|
477 |
if ( $this->inline_option['location'] == 'above' || $this->inline_option['location'] == 'above_below' ) {
|
478 |
+
$content = $sharing_text . $ssb_buttonscode . $content;
|
479 |
}
|
480 |
if ( $this->inline_option['location'] == 'below' || $this->inline_option['location'] == 'above_below' ) {
|
481 |
+
$content = $content . $sharing_text . $ssb_buttonscode;
|
482 |
}
|
483 |
}
|
484 |
}
|
487 |
|
488 |
}
|
489 |
|
|
|
490 |
/**
|
491 |
* Generate buttons html code with specified order
|
492 |
*
|
813 |
|
814 |
if ( $this->_get_settings( 'sidebar', 'share_counts' ) ) {
|
815 |
$class .= ' ssb_counter-activate';
|
816 |
+
}
|
817 |
|
818 |
$class .= ' simplesocialbuttons-slide-' . $this->_get_settings( 'sidebar', 'animation', 'no-animation' );
|
819 |
$_selected_network = apply_filters( 'ssb_sidebar_social_networks', $this->selected_networks );
|