Version Description
- All PRO features are now available in this version
Download this release
Release Info
Developer | wpkube |
Plugin | Kiwi Social Share – Social Media Share Buttons & Icons |
Version | 2.1.0 |
Comparing to | |
See all releases |
Code changes from version 2.0.16 to 2.1.0
- assets/css/admin.css +71 -130
- assets/css/admin.min.css +1 -1
- assets/css/frontend.css +52 -5
- assets/css/frontend.min.css +1 -1
- assets/css/kiwi.amp.css +25 -0
- assets/img/mix.png +0 -0
- assets/js/kiwi.js +4 -4
- assets/js/kiwi.min.js +1 -1
- includes/backend/parts/epsilon-tabs.php +15 -21
- includes/backend/parts/kiwi-modal-popup.php +5 -0
- includes/backend/parts/kiwi-networks-ordering.php +2 -2
- includes/backend/parts/kiwi-tab-advanced.php +9 -32
- includes/backend/parts/kiwi-tab-article-bar.php +2 -3
- includes/backend/parts/kiwi-tab-floating-bar.php +2 -3
- includes/backend/parts/kiwi-tab-networks.php +6 -19
- includes/backend/parts/kiwi-tab-social-identity.php +12 -0
- includes/frontend/social-bars/class-kiwi-social-share-view-article-bar.php +184 -144
- includes/frontend/social-bars/class-kiwi-social-share-view-floating-bar.php +7 -1
- includes/frontend/social-bars/class-kiwi-social-share-view.php +0 -2
- includes/frontend/social-buttons/class-kiwi-social-share-social-button-email.php +40 -0
- includes/frontend/social-buttons/class-kiwi-social-share-social-button-facebook.php +6 -0
- includes/frontend/social-buttons/class-kiwi-social-share-social-button-google-plus.php +0 -61
- includes/frontend/social-buttons/class-kiwi-social-share-social-button-linkedin.php +6 -0
- includes/frontend/social-buttons/class-kiwi-social-share-social-button-mix.php +34 -0
- includes/frontend/social-buttons/class-kiwi-social-share-social-button-pinterest.php +7 -0
- includes/frontend/social-buttons/class-kiwi-social-share-social-button-reddit.php +54 -0
- includes/frontend/social-buttons/class-kiwi-social-share-social-button-skype.php +38 -0
- includes/frontend/social-buttons/class-kiwi-social-share-social-button-telegram.php +50 -0
- includes/frontend/social-buttons/class-kiwi-social-share-social-button-twitter.php +6 -0
- includes/frontend/social-buttons/class-kiwi-social-share-social-button-whatsapp.php +48 -0
- includes/frontend/social-buttons/class-kiwi-social-share-social-button.php +39 -1
- includes/lib/class-kiwi-social-share-bitly.php +116 -0
- includes/lib/class-kiwi-social-share-click-to-tweet.php +20 -0
- includes/lib/class-kiwi-social-share-customization.php +177 -0
- includes/lib/class-kiwi-social-share-frontend.php +8 -0
- includes/lib/class-kiwi-social-share-highlight-share.php +20 -0
- includes/lib/class-kiwi-social-share-importer.php +2 -2
- includes/lib/class-kiwi-social-share-integration.php +0 -186
- includes/lib/class-kiwi-social-share-sanitizers.php +1 -1
- includes/lib/class-kiwi-social-share-settings.php +3 -190
- includes/lib/class-kiwi-social-share-shortcodes.php +10 -4
- includes/lib/helpers/class-kiwi-social-share-helper.php +244 -264
- kiwi-social-share.php +3 -4
- readme.txt +5 -2
assets/css/admin.css
CHANGED
@@ -2,11 +2,12 @@
|
|
2 |
=Links
|
3 |
========================================================================== */
|
4 |
#sl-kiwi {
|
5 |
-
width:
|
6 |
padding: 20px;
|
7 |
margin-bottom: 10px;
|
8 |
font-family: 'Open Sans';
|
9 |
position: relative;
|
|
|
10 |
}
|
11 |
|
12 |
#sl-kiwi a:focus {
|
@@ -72,7 +73,7 @@
|
|
72 |
.sl-kiwi-content {
|
73 |
background: #fff;
|
74 |
min-height: 500px;
|
75 |
-
margin-top:
|
76 |
position: relative;
|
77 |
z-index: 5;
|
78 |
-webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.06);
|
@@ -306,7 +307,7 @@
|
|
306 |
width: 35px;
|
307 |
height: 35px;
|
308 |
line-height: 35px;
|
309 |
-
top:
|
310 |
text-align: center;
|
311 |
}
|
312 |
|
@@ -631,7 +632,7 @@ ul[data-style="fit"].pill .sl-kiwi-item-add span {
|
|
631 |
height: 17px;
|
632 |
border-radius: 10px;
|
633 |
text-align: center;
|
634 |
-
vertical-align:
|
635 |
}
|
636 |
|
637 |
.sl-kiwi-opt-space-sm {
|
@@ -883,28 +884,38 @@ ul[data-style="fit"].pill .sl-kiwi-item-add span {
|
|
883 |
overflow: hidden;
|
884 |
position: relative;
|
885 |
z-index: 10;
|
|
|
|
|
|
|
886 |
}
|
887 |
|
888 |
.epsilon-ui-tabs ul {
|
889 |
height: 36px;
|
890 |
-
margin-left:
|
|
|
891 |
}
|
892 |
|
893 |
.epsilon-ui-tabs li {
|
894 |
-
height: 36px;
|
895 |
margin-right: 2px;
|
896 |
float: left;
|
897 |
-
background: #
|
898 |
list-style-type: none;
|
899 |
line-height: 36px;
|
900 |
text-align: center;
|
|
|
|
|
901 |
}
|
902 |
|
903 |
.epsilon-ui-tabs li.selected {
|
904 |
-
background: #fff;
|
905 |
-webkit-box-shadow: 0 -2px 3px rgba(0, 0, 0, 0.02);
|
906 |
-moz-box-shadow: 0 -2px 3px rgba(0, 0, 0, 0.02);
|
907 |
box-shadow: 0 -2px 3px rgba(0, 0, 0, 0.02);
|
|
|
|
|
|
|
|
|
|
|
908 |
}
|
909 |
|
910 |
.epsilon-ui-tabs .selected a:hover {
|
@@ -914,9 +925,12 @@ ul[data-style="fit"].pill .sl-kiwi-item-add span {
|
|
914 |
.epsilon-ui-tabs a {
|
915 |
display: block;
|
916 |
line-height: 36px;
|
917 |
-
color: #
|
918 |
padding: 0 10px;
|
919 |
min-width: 80px;
|
|
|
|
|
|
|
920 |
}
|
921 |
|
922 |
.epsilon-ui-tabs i {
|
@@ -925,7 +939,7 @@ ul[data-style="fit"].pill .sl-kiwi-item-add span {
|
|
925 |
}
|
926 |
|
927 |
.epsilon-ui-tabs a:hover {
|
928 |
-
background: #
|
929 |
text-decoration: none;
|
930 |
}
|
931 |
|
@@ -1023,9 +1037,9 @@ ul[data-style="fit"].pill .sl-kiwi-item-add span {
|
|
1023 |
position: relative;
|
1024 |
cursor: pointer;
|
1025 |
background: transparent;
|
1026 |
-
|
1027 |
max-width: none;
|
1028 |
-
font-weight:
|
1029 |
color: #808080;
|
1030 |
}
|
1031 |
|
@@ -1042,7 +1056,7 @@ ul[data-style="fit"].pill .sl-kiwi-item-add span {
|
|
1042 |
|
1043 |
#sl-kiwi .epsilon-ui-radio.ui-radio-inline {
|
1044 |
display: inline-block;
|
1045 |
-
|
1046 |
}
|
1047 |
|
1048 |
.epsilon-ui-radio strong {
|
@@ -1185,12 +1199,13 @@ ul[data-style="fit"].pill .sl-kiwi-item-add span {
|
|
1185 |
top: -1px;
|
1186 |
border: none;
|
1187 |
color: #D1D1D1;
|
|
|
1188 |
}
|
1189 |
|
1190 |
#sl-kiwi .epsilon-ui-color .wp-picker-container .wp-picker-clear {
|
1191 |
position: relative;
|
1192 |
left: 66px;
|
1193 |
-
top:
|
1194 |
}
|
1195 |
|
1196 |
#sl-kiwi .epsilon-ui-color .wp-picker-container .wp-color-result {
|
@@ -2094,7 +2109,7 @@ ul[data-style="fit"].pill .sl-kiwi-item-add span {
|
|
2094 |
font-size: 11px;
|
2095 |
position: absolute;
|
2096 |
bottom: 2px;
|
2097 |
-
right:
|
2098 |
border-radius: 50%;
|
2099 |
width: 16px;
|
2100 |
height: 16px;
|
@@ -2278,32 +2293,55 @@ ul[data-style="fit"].pill .sl-kiwi-item-add span {
|
|
2278 |
color: #fff;
|
2279 |
}
|
2280 |
|
2281 |
-
.
|
2282 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2283 |
}
|
2284 |
|
2285 |
-
|
2286 |
-
|
2287 |
-
|
2288 |
-
margin-left: 7px;
|
2289 |
-
vertical-align: middle;
|
2290 |
}
|
2291 |
|
2292 |
-
|
2293 |
-
|
2294 |
-
|
2295 |
}
|
2296 |
|
2297 |
-
|
2298 |
-
text-align:
|
2299 |
}
|
2300 |
|
2301 |
-
|
2302 |
-
|
2303 |
-
|
2304 |
-
|
2305 |
-
|
2306 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2307 |
}
|
2308 |
|
2309 |
/* ==========================================================================
|
@@ -2334,100 +2372,3 @@ li.kiwi-upgrade-list {
|
|
2334 |
width: 0;
|
2335 |
height: 0;
|
2336 |
}
|
2337 |
-
|
2338 |
-
/*Lite vs Pro View*/
|
2339 |
-
|
2340 |
-
.featured-section.features .row {
|
2341 |
-
display: inline-block;
|
2342 |
-
width: 97%;
|
2343 |
-
padding: 15px;
|
2344 |
-
border-bottom: 1px solid rgba(0, 0, 0, .06);
|
2345 |
-
}
|
2346 |
-
|
2347 |
-
.featured-section.features .row .dashicons-yes {
|
2348 |
-
color: #2cbe4e;
|
2349 |
-
}
|
2350 |
-
|
2351 |
-
.featured-section.features .row .dashicons-no-alt {
|
2352 |
-
color: #ff3d2e;
|
2353 |
-
}
|
2354 |
-
|
2355 |
-
.featured-section.features .row > div {
|
2356 |
-
display: inline-block;
|
2357 |
-
float: left;
|
2358 |
-
width: 15%;
|
2359 |
-
text-align: center;
|
2360 |
-
}
|
2361 |
-
|
2362 |
-
.featured-section.features .row > .feature {
|
2363 |
-
width: 70%;
|
2364 |
-
text-align: left;
|
2365 |
-
}
|
2366 |
-
|
2367 |
-
.featured-section .free-pro-table {
|
2368 |
-
border-spacing: 0;
|
2369 |
-
width: 100%;
|
2370 |
-
margin-top: 40px;
|
2371 |
-
}
|
2372 |
-
|
2373 |
-
.featured-section .free-pro-table th {
|
2374 |
-
padding-bottom: 20px;
|
2375 |
-
}
|
2376 |
-
|
2377 |
-
.featured-section .free-pro-table td {
|
2378 |
-
border-top: 1px solid #ccc;
|
2379 |
-
padding: 20px 0 25px;
|
2380 |
-
}
|
2381 |
-
|
2382 |
-
.featured-section .free-pro-table h3 {
|
2383 |
-
margin: 0;
|
2384 |
-
}
|
2385 |
-
|
2386 |
-
.featured-section .free-pro-table td p {
|
2387 |
-
margin: 0;
|
2388 |
-
}
|
2389 |
-
|
2390 |
-
.featured-section .free-pro-table .sab-feature,
|
2391 |
-
.featured-section .free-pro-table .sab-pro-feature {
|
2392 |
-
text-align: center;
|
2393 |
-
width: 15%;
|
2394 |
-
}
|
2395 |
-
|
2396 |
-
.featured-section .free-pro-table .dashicons-yes {
|
2397 |
-
color: #00a878;
|
2398 |
-
}
|
2399 |
-
|
2400 |
-
.featured-section .free-pro-table .dashicons-no-alt {
|
2401 |
-
color: #ff3439;
|
2402 |
-
}
|
2403 |
-
|
2404 |
-
.featured-section .free-pro-table .dashicons-before:before,
|
2405 |
-
.featured-section .free-pro-table .dashicons-before:before {
|
2406 |
-
font-size: 35px;
|
2407 |
-
height: 35px;
|
2408 |
-
width: 35px;
|
2409 |
-
}
|
2410 |
-
|
2411 |
-
.featured-section .button-hero .dashicons {
|
2412 |
-
font-size: 16px;
|
2413 |
-
vertical-align: middle;
|
2414 |
-
}
|
2415 |
-
|
2416 |
-
.featured-section .ti-about-page-text-center {
|
2417 |
-
text-align: center;
|
2418 |
-
}
|
2419 |
-
|
2420 |
-
.free-pro-table .text-right {
|
2421 |
-
text-align: right;
|
2422 |
-
}
|
2423 |
-
|
2424 |
-
/* Upsells */
|
2425 |
-
.ui-locked .kiwi-upgrade-pro-url,
|
2426 |
-
.epsilon-ui-locked .kiwi-upgrade-pro-url {
|
2427 |
-
position: absolute;
|
2428 |
-
width: 100%;
|
2429 |
-
height: 100%;
|
2430 |
-
top: 0;
|
2431 |
-
left: 0;
|
2432 |
-
z-index: 99;
|
2433 |
-
}
|
2 |
=Links
|
3 |
========================================================================== */
|
4 |
#sl-kiwi {
|
5 |
+
width: 1250px;
|
6 |
padding: 20px;
|
7 |
margin-bottom: 10px;
|
8 |
font-family: 'Open Sans';
|
9 |
position: relative;
|
10 |
+
margin: 0 auto;
|
11 |
}
|
12 |
|
13 |
#sl-kiwi a:focus {
|
73 |
.sl-kiwi-content {
|
74 |
background: #fff;
|
75 |
min-height: 500px;
|
76 |
+
margin-top: 0px;
|
77 |
position: relative;
|
78 |
z-index: 5;
|
79 |
-webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.06);
|
307 |
width: 35px;
|
308 |
height: 35px;
|
309 |
line-height: 35px;
|
310 |
+
top: 12px;
|
311 |
text-align: center;
|
312 |
}
|
313 |
|
632 |
height: 17px;
|
633 |
border-radius: 10px;
|
634 |
text-align: center;
|
635 |
+
vertical-align: top;
|
636 |
}
|
637 |
|
638 |
.sl-kiwi-opt-space-sm {
|
884 |
overflow: hidden;
|
885 |
position: relative;
|
886 |
z-index: 10;
|
887 |
+
background: #fff;
|
888 |
+
margin-bottom: 25px;
|
889 |
+
margin-top: 25px;
|
890 |
}
|
891 |
|
892 |
.epsilon-ui-tabs ul {
|
893 |
height: 36px;
|
894 |
+
margin-left: 0px;
|
895 |
+
margin-bottom: 0px;
|
896 |
}
|
897 |
|
898 |
.epsilon-ui-tabs li {
|
|
|
899 |
margin-right: 2px;
|
900 |
float: left;
|
901 |
+
background: #fff;
|
902 |
list-style-type: none;
|
903 |
line-height: 36px;
|
904 |
text-align: center;
|
905 |
+
margin-bottom: 0px;
|
906 |
+
margin-right: 15px;
|
907 |
}
|
908 |
|
909 |
.epsilon-ui-tabs li.selected {
|
910 |
+
background: #fff !important;
|
911 |
-webkit-box-shadow: 0 -2px 3px rgba(0, 0, 0, 0.02);
|
912 |
-moz-box-shadow: 0 -2px 3px rgba(0, 0, 0, 0.02);
|
913 |
box-shadow: 0 -2px 3px rgba(0, 0, 0, 0.02);
|
914 |
+
border-bottom: 2px solid #666666;
|
915 |
+
}
|
916 |
+
|
917 |
+
.epsilon-ui-tabs li.selected a {
|
918 |
+
color: #666666;
|
919 |
}
|
920 |
|
921 |
.epsilon-ui-tabs .selected a:hover {
|
925 |
.epsilon-ui-tabs a {
|
926 |
display: block;
|
927 |
line-height: 36px;
|
928 |
+
color: #0073aa;
|
929 |
padding: 0 10px;
|
930 |
min-width: 80px;
|
931 |
+
padding-top: 10px;
|
932 |
+
padding-bottom: 10px;
|
933 |
+
outline: none !important;
|
934 |
}
|
935 |
|
936 |
.epsilon-ui-tabs i {
|
939 |
}
|
940 |
|
941 |
.epsilon-ui-tabs a:hover {
|
942 |
+
background: #fff;
|
943 |
text-decoration: none;
|
944 |
}
|
945 |
|
1037 |
position: relative;
|
1038 |
cursor: pointer;
|
1039 |
background: transparent;
|
1040 |
+
margin: 0 35px;
|
1041 |
max-width: none;
|
1042 |
+
font-weight: 600;
|
1043 |
color: #808080;
|
1044 |
}
|
1045 |
|
1056 |
|
1057 |
#sl-kiwi .epsilon-ui-radio.ui-radio-inline {
|
1058 |
display: inline-block;
|
1059 |
+
margin-left: 0;
|
1060 |
}
|
1061 |
|
1062 |
.epsilon-ui-radio strong {
|
1199 |
top: -1px;
|
1200 |
border: none;
|
1201 |
color: #D1D1D1;
|
1202 |
+
padding-bottom:7px;
|
1203 |
}
|
1204 |
|
1205 |
#sl-kiwi .epsilon-ui-color .wp-picker-container .wp-picker-clear {
|
1206 |
position: relative;
|
1207 |
left: 66px;
|
1208 |
+
top: 0px;
|
1209 |
}
|
1210 |
|
1211 |
#sl-kiwi .epsilon-ui-color .wp-picker-container .wp-color-result {
|
2109 |
font-size: 11px;
|
2110 |
position: absolute;
|
2111 |
bottom: 2px;
|
2112 |
+
right: -25px;
|
2113 |
border-radius: 50%;
|
2114 |
width: 16px;
|
2115 |
height: 16px;
|
2293 |
color: #fff;
|
2294 |
}
|
2295 |
|
2296 |
+
.kicon-mix:before {
|
2297 |
+
content: "";
|
2298 |
+
background: url(../img/mix.png) center center no-repeat;
|
2299 |
+
background-size: contain;
|
2300 |
+
display: block;
|
2301 |
+
position: absolute;
|
2302 |
+
width: 100%;
|
2303 |
+
height: 30px;
|
2304 |
+
left: 0;
|
2305 |
+
right: 0;
|
2306 |
+
top: 0;
|
2307 |
+
bottom: 0;
|
2308 |
+
}
|
2309 |
+
|
2310 |
+
.kiwi-nw-mix {
|
2311 |
+
position: relative;
|
2312 |
}
|
2313 |
|
2314 |
+
a.kiwi-nw-mix {
|
2315 |
+
background: #ff8226;
|
2316 |
+
vertical-align: bottom;
|
|
|
|
|
2317 |
}
|
2318 |
|
2319 |
+
ul[data-style="fit"] a.kiwi-nw-mix {
|
2320 |
+
display: inline-block !important;
|
2321 |
+
width: 100%;
|
2322 |
}
|
2323 |
|
2324 |
+
#sl-kiwi p.submit {
|
2325 |
+
text-align: right;
|
2326 |
}
|
2327 |
|
2328 |
+
#sl-kiwi p.submit input {
|
2329 |
+
padding: 10px 25px;
|
2330 |
+
height: auto;
|
2331 |
+
}
|
2332 |
+
|
2333 |
+
ul[data-style="center"].shift a.kiwi-nw-mix {
|
2334 |
+
display: block !important;
|
2335 |
+
width: auto;
|
2336 |
+
}
|
2337 |
+
|
2338 |
+
ul[data-id="networks_ordering_floating_bar"].pill a.kiwi-nw-mix .kicon-mix:before {
|
2339 |
+
top: 50%;
|
2340 |
+
-webkit-transform: translateY(-50%);
|
2341 |
+
-moz-transform: translateY(-50%);
|
2342 |
+
-ms-transform: translateY(-50%);
|
2343 |
+
-o-transform: translateY(-50%);
|
2344 |
+
transform: translateY(-50%);
|
2345 |
}
|
2346 |
|
2347 |
/* ==========================================================================
|
2372 |
width: 0;
|
2373 |
height: 0;
|
2374 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assets/css/admin.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
#sl-kiwi,.kiwi-modal .modal-title{font-family:'Open Sans'}.epsilon-ui-tabs a:focus,.epsilon-ui-tabs a:hover,.sl-kiwi-dragdrop li a:hover,.sl-kiwi-tab-integration .integration_box.theme .info a:focus,.sl-kiwi-tab-integration .integration_box.theme .info a:hover{text-decoration:none}#sl-kiwi{width:1150px;padding:20px;margin-bottom:10px;position:relative}#sl-kiwi a:focus{box-shadow:none;-webkit-box-shadow:none}#sl-kiwi .overlay{position:absolute;top:20px;bottom:102px;left:20px;right:20px;-webkit-transition:all .3s;transition:all .3s;z-index:9999;text-align:center;padding-top:250px}#sl-kiwi .overlay.active{-webkit-transition:all .4s;transition:all .4s;background:rgba(255,255,255,.97)}#sl-kiwi .overlay img{position:relative;top:-72px}.kiwi-notification-popup{width:100%;padding:25px 20px;box-sizing:border-box;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;background-color:#0073aa;color:#fff;display:none;position:relative;z-index:10}.kiwi-notification-popup .button{float:right;position:relative;bottom:5px}.kiwi-utility-bar{position:absolute;top:20px;right:-25px;display:none}.kiwi-utility-bar>input{position:fixed}.sl-kiwi-content{background:#fff;min-height:500px;margin-top:-10px;position:relative;z-index:5;-webkit-box-shadow:0 0 5px rgba(0,0,0,.06);-moz-box-shadow:0 0 5px rgba(0,0,0,.06);box-shadow:0 0 5px rgba(0,0,0,.06);padding:10px 30px}.sl-kiwi-content input[type=text],.sl-kiwi-content input[type=email],.sl-kiwi-content input[type=url]{width:330px;height:32px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;background-color:#fff;-webkit-box-shadow:1px 1px 2px rgba(35,31,32,.2);-moz-box-shadow:1px 1px 2px rgba(35,31,32,.2);box-shadow:1px 1px 2px rgba(35,31,32,.2);padding-left:10px;margin-top:5px;border:1px solid #f2f2f2}#sl-kiwi .epsilon-ui-color .wp-picker-container .wp-color-result,.sl-kiwi-dragdrop{-webkit-box-shadow:0 0 5px rgba(0,0,0,.15);-moz-box-shadow:0 0 5px rgba(0,0,0,.15)}.sl-kiwi-content>div{padding-bottom:50px;display:none}.sl-kiwi-content>div.epsilon-tab-active{display:block}.sl-kiwi-dragdrop .suggestions{font-size:32px;color:#EBEBEB;width:100%;height:40px;line-height:40px;text-align:center;font-weight:700;display:block;position:absolute;top:15px;opacity:.7;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.sl-kiwi-dragdrop{height:220px;border:1px solid #fff;margin:0;position:relative;-webkit-border-radius:3px 3px 0 0;-moz-border-radius:3px 3px 0 0;border-radius:3px 3px 0 0;background-color:#fff;box-shadow:0 0 5px rgba(0,0,0,.15);background-image:-webkit-linear-gradient(top,rgba(255,255,255,.7),rgba(246,246,246,.7));background-image:-moz-linear-gradient(top,rgba(255,255,255,.7),rgba(246,246,246,.7));background-image:-o-linear-gradient(top,rgba(255,255,255,.7),rgba(246,246,246,.7));background-image:-ms-linear-gradient(top,rgba(255,255,255,.7),rgba(246,246,246,.7));background-image:linear-gradient(to bottom,rgba(255,255,255,.7),rgba(246,246,246,.7))}.sl-kiwi-dragdrop>div{padding:85px 25px 0;text-align:center}.sl-kiwi-dragdrop ul{line-height:30px;vertical-align:top}.sl-kiwi-dragdrop ul[data-id=networks_ordering_floating_bar]{position:absolute;top:45px;right:0;z-index:-1;transition:all .3s;opacity:0}.sl-kiwi-dragdrop ul[data-id=networks_ordering_floating_bar] li{display:block;margin:0;padding:0}.sl-kiwi-dragdrop ul[data-id=networks_ordering_floating_bar] li a{display:block;height:40px;line-height:40px;padding:0 5px;min-width:40px;transition:all .3s;-webkit-box-shadow:none;box-shadow:none;font-size:16px;box-sizing:border-box;position:relative;z-index:1}.sl-kiwi-dragdrop ul[data-id=networks_ordering_floating_bar] li.sl-kiwi-dragdrop-placeholder:before{width:40px}.sl-kiwi-dragdrop ul[data-id=networks_ordering_floating_bar].pill li{margin-bottom:2px}.sl-kiwi-dragdrop ul[data-id=networks_ordering_floating_bar].pill li a{border-radius:25px}#sl-kiwi .sl-kiwi-item-add{margin-right:5px}#sl-kiwi .sl-kiwi-item-remove{max-width:0;margin-right:0;display:none}.sl-kiwi-dragdrop-placeholder:before{border:1px dashed #ccc;width:100%;position:absolute;top:0;left:0;bottom:0;right:0;height:100%;content:" ";display:block}.sl-kiwi-dragdrop-placeholder{position:relative;height:30px;padding:0 5px;min-width:90px;background:0 0;vertical-align:top}.sl-kiwi-dragdrop ul.pill a{border-radius:15px}.sl-kiwi-dragdrop ul.leaf a{border-radius:12px 0}.sl-kiwi-dragdrop ul.shift a{-ms-transform:skewX(-15deg);-webkit-transform:skewX(-15deg);transform:skewX(-15deg)}.sl-kiwi-dragdrop ul.shift span{-ms-transform:skewX(15deg);-webkit-transform:skewX(15deg);transform:skewX(15deg);display:block}.sl-kiwi-dragdrop ul.pill .sl-kiwi-dragdrop-placeholder:before{border-radius:15px}.sl-kiwi-dragdrop ul.leaf .sl-kiwi-dragdrop-placeholder:before{border-radius:12px 0}.sl-kiwi-dragdrop ul.shift .sl-kiwi-dragdrop-placeholder:before{-ms-transform:skewX(-15deg);-webkit-transform:skewX(-15deg);transform:skewX(-15deg)}.sl-kiwi-dragdrop li{list-style-type:none;transition:max-width .2s,margin .2s;overflow:hidden;margin-right:5px;display:inline-block;padding:0 5px}.sl-kiwi-dragdrop li.ui-sortable-helper a{transition:box-shadow .3s;-webkit-box-shadow:6px 10px 10px rgba(0,0,0,.1);-moz-box-shadow:6px 10px 10px rgba(0,0,0,.1);box-shadow:6px 10px 10px rgba(0,0,0,.1)}.sl-kiwi-dragdrop li a{display:block;height:30px;line-height:30px;padding:0 5px;min-width:90px;transition:all .3s}.sl-kiwi-networks{margin-bottom:40px;position:relative}.sl-kiwi-networks .epsilon-ui-locked{position:absolute;right:-15px;width:35px;height:35px;line-height:35px;top:0;text-align:center}ul[data-style=fit]{display:table;width:100%}ul[data-style=fit] li{display:table-cell;padding:0;overflow:initial}ul[data-style=fit].leaf a,ul[data-style=fit].leaf li:last-of-type a{width:100%}ul[data-style=fit].pill{flex-wrap:nowrap;display:flex;margin-left:20px;width:auto}ul[data-style=fit].pill .sl-kiwi-item-add{margin:0;flex:1}ul[data-style=fit].pill .sl-kiwi-item-add a{padding:0 0 0 26px;display:block;width:100%;margin-left:-26px}ul[data-style=fit].pill .sl-kiwi-item-add span{margin-right:26px}.sl-kiwi-tab-registration label,.sl-kiwi-tab-socialIdentity label{display:block;color:grey;margin-bottom:5px}.sl-kiwi-tab-registration input[type=text],.sl-kiwi-tab-socialIdentity input[type=text]{padding:5px;margin-bottom:15px}.sl-kiwi-tab-registration .kiwi-registration-action,.sl-kiwi-tab-socialIdentity .kiwi-registration-action{height:30px}[class*=sl-kiwi-tab-] h2{font-size:22px;color:#585858;font-weight:300;height:50px}.sl-kiwi-networks h2>span{width:65%;display:block;float:left;background:0 0}.sl-kiwi-networks h2 span+span{width:17.5%;display:block;float:left;background:0 0;text-align:center;font-size:14px;color:#959696}.sl-kiwi-networks em{font-style:normal;position:absolute;top:3px;left:42px}.sl-kiwi-networks ul{border-top:1px solid #F5F5F5;padding:0;margin:0 10px}.sl-kiwi-networks li{height:39px;border-bottom:1px solid #F5F5F5;list-style-type:none;line-height:35px;padding-left:20px;position:relative;margin-bottom:0;display:inline-block;width:98%}.sl-kiwi-networks li:hover{background:#FBFBFB}.sl-kiwi-networks li>span{width:65%;display:block;float:left;background:0 0;color:#555;font-size:13px}.sl-kiwi-networks li span+span{width:17.5%;background:0 0;text-align:center}.sl-kiwi-networks span>strong{height:24px;width:24px;display:inline-block;vertical-align:middle;line-height:24px;text-align:center;border-radius:2px;margin-right:5px;background:#D4D4D4}.sl-kiwi-networks span>strong i{font-size:16px;line-height:24px}.sl-kiwi-networks.kiwi-styles h2 span+span{width:16%}.sl-kiwi-networks.kiwi-styles h2 span:nth-last-of-type(-n+2)+span:nth-last-of-type(-n+2),.sl-kiwi-networks.kiwi-styles h2 span:nth-last-of-type(-n+3)+span:nth-last-of-type(-n+3){width:8%}.sl-kiwi-networks.kiwi-styles h2 strong.goleft{position:relative;right:5px}.sl-kiwi-networks.kiwi-styles h2>span{width:20%;text-align:left}.sl-kiwi-networks.kiwi-styles li span+span{width:16%;text-align:left}.sl-kiwi-networks.kiwi-styles li span:nth-last-of-type(-n+2)+span:nth-last-of-type(-n+2),.sl-kiwi-networks.kiwi-styles li span:nth-last-of-type(-n+3)+span:nth-last-of-type(-n+3){width:8%}.sl-kiwi-networks.kiwi-styles li>span{width:20%}#sl-kiwi .kiwi-nw-twitter{background:#4EAEF8;color:#fff}#sl-kiwi .kiwi-nw-whatsapp{background:#0DC143;color:#fff}#sl-kiwi .kiwi-nw-telegram{background:#179CDE;color:#fff}#sl-kiwi .kiwi-nw-skype{background:#009EE5;color:#fff}#sl-kiwi .kiwi-nw-youtube,#sl-kiwi .kiwi-nw-youtube-play{background:#E62117;color:#fff}#sl-kiwi .kiwi-nw-facebook{background:#3B5998;color:#fff}#sl-kiwi .kiwi-nw-google-plus{background:#DB4437;color:#fff}#sl-kiwi .kiwi-nw-pinterest{background:#BD081C;color:#fff}#sl-kiwi .kiwi-nw-fintel{background:#087515;color:#fff}#sl-kiwi .kiwi-nw-linkedin{background:#1A85BC;color:#fff}#sl-kiwi .kiwi-nw-reddit{background:#FF4500;color:#fff}#sl-kiwi .kiwi-nw-email,#sl-kiwi .kiwi-nw-envelope{background:#4D9159;color:#fff}.sl-kiwi-opt-group{min-height:100px;background:0 0;padding:30px 0;border-bottom:1px solid #F5F5F5}.sl-kiwi-opt-group:last-of-type{border-bottom:none}.sl-kiwi-opt-group .bottom-color-option{clear:both}.sl-kiwi-inner-opt{padding-left:70px}.sl-kiwi-opt-group .left{float:left}.sl-kiwi-opt-group .right{float:right}.sl-kiwi-opt-toggle{background:0 0;width:70px;float:left;padding-top:10px}.sl-kiwi-opt-description{float:left;background:0 0;min-height:60px;position:relative}.sl-kiwi-opt-description h4{font-size:18px;margin:0;line-height:18px}.sl-kiwi-opt-description h5{font-size:16px;margin:0;line-height:18px}.sl-kiwi-opt-description p{font-size:14px;margin:0}.epsilon-ui-locked{display:inline-block;border-radius:10px;width:20px;height:20px;cursor:pointer;vertical-align:middle}.epsilon-ui-locked i{font-size:12px;color:#fff;text-shadow:0 0 4px rgba(0,0,0,.2);line-height:16px;background:#F05A25;cursor:pointer}.dashicons-before::before,.epsilon-ui-locked i.dashicons{width:17px;height:17px;border-radius:10px;text-align:center;vertical-align:middle}.sl-kiwi-opt-space-sm{padding-top:15px}.clearfix:after{clear:both;content:".";display:block;height:0;line-height:0;visibility:hidden}.kiwi-modal,.kiwi-modal #page-two{display:none}.kiwi-modal{position:fixed;top:0;right:0;left:0;bottom:0;z-index:1050;overflow:hidden;-webkit-overflow-scrolling:touch;outline:0;background:rgba(0,0,0,.7)}.kiwi-modal .close-modal{width:25px;height:25px;color:#FF3424;position:absolute;text-align:center;line-height:25px;font-size:17px;right:7px;top:7px;cursor:pointer}.kiwi-modal .kiwi-modal-content{position:relative;width:900px;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px;background-image:-webkit-linear-gradient(bottom,#fff 25%,#f2f3f4 90%);background-image:-moz-linear-gradient(bottom,#fff 25%,#f2f3f4 90%);background-image:-o-linear-gradient(bottom,#fff 25%,#f2f3f4 90%);background-image:-ms-linear-gradient(bottom,#fff 25%,#f2f3f4 90%);background-image:linear-gradient(to top,#fff 25%,#f2f3f4 90%);-webkit-box-shadow:0 0 15px rgba(0,0,0,.15);-moz-box-shadow:0 0 15px rgba(0,0,0,.15);box-shadow:0 0 15px rgba(0,0,0,.15);margin:8% auto}.kiwi-modal.fade{opacity:0;-webkit-transition:opacity .15s linear;-o-transition:opacity .15s linear;transition:opacity .15s linear}.epsilon-ui-option input:checked+span>strong:before,.kiwi-modal.fade.in{opacity:1}.kiwi-modal.fade .kiwi-modal-content{-webkit-transition:-webkit-transform .3s ease-out;-o-transition:-o-transform .3s ease-out;transition:transform .3s ease-out;-webkit-transform:translate(0,-25%);-ms-transform:translate(0,-25%);-o-transform:translate(0,-25%);transform:translate(0,-25%)}.kiwi-modal.fade.in .kiwi-modal-content{-webkit-transform:translate(0,0);-ms-transform:translate(0,0);-o-transform:translate(0,0);transform:translate(0,0)}.kiwi-modal .button-modal{width:100%;height:45px;-webkit-border-radius:22px 23px 23px 22px/22px 22px 23px 23px;-moz-border-radius:22px 23px 23px 22px/22px 22px 23px 23px;border-radius:22px 23px 23px 22px/22px 22px 23px 23px;background-color:#ff3d2e;color:#fff;display:inline-block;line-height:45px;margin:30px auto;text-align:center}.kiwi-modal .button-modal:focus,.kiwi-modal .button-modal:hover{text-decoration:none;color:#fff;background-color:#ff3424}.kiwi-modal .modal-header{padding-top:40px;padding-bottom:40px;text-align:center;background-image:url(../img/back-wavy.png);background-size:cover;background-position:center;-webkit-border-top-left-radius:10px;-moz-border-top-left-radius:10px;border-top-left-radius:10px;-webkit-border-top-right-radius:10px;-moz-border-top-right-radius:10px;border-top-right-radius:10px}.kiwi-modal .modal-header .modal-header-content{width:475px;margin:0 auto}.kiwi-modal .modal-title{font-size:28px;font-weight:800;color:#333}.kiwi-modal .modal-subtitle{font-family:"Open Sans";font-size:14px;color:#8c8c8c}.kiwi-modal .price-box{margin-top:40px}.kiwi-modal .price-box .price{font-family:"Open Sans";font-weight:700;color:#333;font-size:60px;display:block}.kiwi-modal .price-box .price .currency{font-size:45px}.kiwi-modal .price-box .price small{font-size:15px}.kiwi-modal .price-box .button-modal{width:150px}.kiwi-modal .modal-footer{margin:60px auto 0;padding-bottom:60px;width:475px}.kiwi-modal .modal-footer a{color:#639fb1;font-family:'Open Sans';font-size:14px;display:inline-block;margin-bottom:15px}.kiwi-modal .modal-footer .muted{font-size:12px;font-family:'Open Sans';color:#8c8c8c}.kiwi-modal .modal-content.form .clearfix label,.kiwi-modal .modal-content.form .radio-label{color:grey;font-family:'Open Sans';display:block}.kiwi-modal .modal-content{width:310px;margin:0 auto}.kiwi-modal .modal-content.form .radio-label{margin-top:40px}.kiwi-modal .modal-content.form>.ui-radio-inline{margin-top:15px!important}.kiwi-modal .modal-content.form .clearfix{margin-top:30px}.kiwi-modal .modal-content.form .clearfix .half{width:50%;float:left;padding-right:15px;box-sizing:border-box}.kiwi-modal .modal-content.form .clearfix .half:last-of-type{padding-left:15px;padding-right:0}.kiwi-modal .modal-content.form .clearfix input{width:100%;height:32px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;border:none;background-color:#fff;-webkit-box-shadow:1px 1px 2px rgba(35,31,32,.2);-moz-box-shadow:1px 1px 2px rgba(35,31,32,.2);box-shadow:1px 1px 2px rgba(35,31,32,.2);padding-left:5px;margin-top:5px}.epsilon-ui-tabs{margin-top:-36px;overflow:hidden;position:relative;z-index:10}.epsilon-ui-tabs ul{height:36px;margin-left:30px}.epsilon-ui-tabs li{height:36px;margin-right:2px;float:left;background:#E8E8E8;list-style-type:none;line-height:36px;text-align:center}.epsilon-ui-tabs li.selected{background:#fff;-webkit-box-shadow:0 -2px 3px rgba(0,0,0,.02);-moz-box-shadow:0 -2px 3px rgba(0,0,0,.02);box-shadow:0 -2px 3px rgba(0,0,0,.02)}.epsilon-ui-tabs .selected a:hover{background:#fff}.epsilon-ui-tabs a{display:block;line-height:36px;color:#666;padding:0 10px;min-width:80px}.epsilon-ui-tabs i{vertical-align:middle;font-size:16px}.epsilon-ui-tabs a:hover{background:#D4D4D4}.epsilon-ui-tabs a:focus{outline:#ccc dashed 1px;outline-offset:-4px}.sl-kiwi-networks li span{line-height:30px}.sl-kiwi-networks li:hover .epsilon-ui-checkbox strong{border:1px solid #8AB7C5}.sl-kiwi-networks li:hover .epsilon-ui-checkbox input:checked~strong,.sl-kiwi-networks li:hover .epsilon-ui-checkbox input:focus~strong{border:1px solid #448092}.ui-inline strong{display:inline-block}#sl-kiwi label.epsilon-ui-checkbox{background:0 0;display:block;position:relative;cursor:pointer;margin:0 35px;max-width:none}.epsilon-ui-checkbox.ui-checkbox-inline strong{display:inline-block}#sl-kiwi .epsilon-ui-checkbox.ui-checkbox-inline{display:inline-block;margin-left:0}.epsilon-ui-checkbox input{position:absolute;z-index:-1;opacity:0;left:0;top:0}.epsilon-ui-checkbox input:focus~strong{border:1px solid #448092;outline:#ccc dashed 1px;outline-offset:2px}.epsilon-ui-checkbox input:checked~strong{background:#fff;border:1px solid #448092;-webkit-box-shadow:inset 0 0 0 4px rgba(99,159,177,.75);-moz-box-shadow:inset 0 0 0 4px rgba(99,159,177,.75);box-shadow:inset 0 0 0 4px rgba(99,159,177,.75)}.epsilon-ui-checkbox input:disabled~strong{background:#1ABC9C;opacity:.6;pointer-events:none}.epsilon-ui-checkbox strong{background:#fff;border:1px solid #DDD;display:block;margin:11px auto auto;height:16px;width:16px;transition:all .15s}#sl-kiwi label.epsilon-ui-radio{display:block;position:relative;cursor:pointer;background:0 0;padding:0 35px;max-width:none;font-weight:400;color:grey}#sl-kiwi .sl-kiwi-tab-styles label.epsilon-ui-radio{margin:0 60px 0 0}.epsilon-ui-radio.ui-radio-inline strong{display:inline-block;margin-right:5px;position:relative;top:3px}#sl-kiwi .epsilon-ui-radio.ui-radio-inline{display:inline-block;padding-left:0}.epsilon-ui-radio strong{border-radius:50%;display:block;margin:11px auto auto;height:16px;width:16px;background:#fff;border:1px solid #DDD;transition:all .15s}.epsilon-ui-radio input{position:absolute;z-index:-1;opacity:0;left:0;top:0}.epsilon-ui-radio input:focus~strong{border:1px solid #448092;outline:#ccc dashed 1px;outline-offset:2px}.epsilon-ui-radio input:checked~strong{background:#fff;border:1px solid #448092;-webkit-box-shadow:inset 0 0 0 4px rgba(99,159,177,.75);-moz-box-shadow:inset 0 0 0 4px rgba(99,159,177,.75);box-shadow:inset 0 0 0 4px rgba(99,159,177,.75)}.epsilon-ui-radio input:disabled~strong{background:#1ABC9C;opacity:.6;pointer-events:none}.epsilon-ui-checklist{position:relative;overflow:hidden;margin-top:25px;padding-top:10px;border-top:1px solid #ECECEC;background:#FCFCFC}.epsilon-ui-checklist:before{position:absolute;top:-2px;left:50px;right:50px;height:2px;content:" ";box-shadow:0 -60px 30px 35px rgba(0,0,0,.7);z-index:1}.epsilon-ui-checklist ul{margin:15px 0 0;list-style-type:none;padding:0 5px 25px 25px;position:relative;overflow:hidden}.epsilon-ui-checklist li{margin-bottom:1px;height:35px}.epsilon-ui-checklist li>span{float:left;width:80%;padding:10px 0 0;color:grey}#sl-kiwi .epsilon-ui-checklist li .epsilon-ui-checkbox{float:right;width:20%;margin:0}.epsilon-ui-overlay{background:#fff;position:absolute;padding:10px;opacity:0}.epsilon-ui-overlay.active{top:-5px;left:-5px;bottom:-5px;right:-5px;opacity:.6}.epsilon-ui-overlay.active.networks{right:185px;left:200px;top:35px}#sl-kiwi .epsilon-ui-color{line-height:14px;background:0 0;display:inline-block;color:#D1D1D1;position:relative}#sl-kiwi .epsilon-ui-color .wp-picker-container{position:relative}#sl-kiwi .epsilon-ui-color .wp-picker-container .wp-picker-holder{position:absolute;z-index:9999}#sl-kiwi .epsilon-ui-color .wp-picker-container .wp-color-picker{width:69px;height:23px;z-index:10;position:absolute;top:-1px;border:none;color:#D1D1D1}#sl-kiwi .epsilon-ui-color .wp-picker-container .wp-picker-clear{position:relative;left:66px;top:6px}#sl-kiwi .epsilon-ui-color .wp-picker-container .wp-color-result{background:0 0;border:none;-webkit-border-radius:0;border-radius:0;box-shadow:0 0 5px rgba(0,0,0,.15);padding-left:30px}#sl-kiwi .epsilon-ui-color .wp-picker-container .wp-color-result .wp-color-result-text{display:none}#sl-kiwi .epsilon-ui-color .wp-picker-container .wp-color-result:after{background:0 0;-webkit-border-radius:0;border-radius:0;content:''}#sl-kiwi .bottom-color-option .floating-bar-background{width:350px;position:relative}#sl-kiwi .bottom-color-option .floating-bar-background em{position:absolute;left:44px;top:3px;font-style:normal;font-size:13px}#sl-kiwi .bottom-color-option .wp-picker-container{width:350px}#sl-kiwi .bottom-color-option .wp-picker-container .wp-color-result{border:none}#sl-kiwi .bottom-color-option .wp-picker-container .wp-color-result:after{-webkit-border-radius:0;border-radius:0;content:''}#sl-kiwi .bottom-color-option .wp-picker-container .wp-color-result:focus,#sl-kiwi .bottom-color-option .wp-picker-container .wp-color-result:hover{background:0 0;border-color:transparent;color:initial}#sl-kiwi .bottom-color-option .wp-picker-container .wp-color-picker{z-index:10;height:27px;top:-3px}#sl-kiwi .bottom-color-option .wp-picker-container .wp-picker-default{z-index:999;left:100px;position:absolute}#sl-kiwi .epsilon-ui-color strong{width:30px;height:20px;border-radius:0;-webkit-box-shadow:0 0 5px rgba(0,0,0,.15);-moz-box-shadow:0 0 5px rgba(0,0,0,.15);box-shadow:0 0 5px rgba(0,0,0,.15)}.epsilon-ui-option{position:relative}.epsilon-ui-option input{position:absolute;z-index:-1;opacity:0;left:0;top:0}.epsilon-ui-option label{width:100%;cursor:pointer;margin:0}.epsilon-ui-option ul{list-style-type:none;height:90px;padding:0;margin:0}.epsilon-ui-option li{width:80px;height:90px;float:left;background:#F7FAFB;text-align:center;margin-right:1px}.epsilon-ui-option input+span{background:#F7FAFB;display:block;padding:14px 15px 0;height:90px}.epsilon-ui-option span span{text-transform:uppercase;font-size:10px;display:block;background:0 0;height:24px;color:#969A9C;border-top:1px solid #fff;line-height:24px;font-weight:400;margin:15px -15px 0}.epsilon-ui-option strong{position:relative;transition:all .15s;display:block;border:2px solid #CBCBCB;border-radius:2px;width:50px;height:39px;background-color:#f1f1f1;-webkit-box-shadow:0 0 5px rgba(0,0,0,.1);-moz-box-shadow:0 0 5px rgba(0,0,0,.1);box-shadow:0 0 5px rgba(0,0,0,.1);background-image:-webkit-linear-gradient(top,#fff,#f6f6f6);background-image:-moz-linear-gradient(top,#fff,#f6f6f6);background-image:-o-linear-gradient(top,#fff,#f6f6f6);background-image:-ms-linear-gradient(top,#fff,#f6f6f6);background-image:linear-gradient(to bottom,#fff,#f6f6f6)}.epsilon-ui-option input:focus+span{outline:#ccc dashed 1px;outline-offset:-4px}.epsilon-ui-option input:checked+span,.epsilon-ui-option input:checked:focus+span{background:#E8F1F3}.epsilon-ui-option input+span:hover,.epsilon-ui-option input:checked:focus+span:hover{background:#dbe9ec}.epsilon-ui-option input:disabled+span{background:#FCFCFC;opacity:.5}.epsilon-ui-option input:disabled:checked+span{background:#F5F5F5;border-color:#C4C4C4;opacity:1}.epsilon-ui-option input:disabled+span .kiwi-ic-centered em,.epsilon-ui-option input:disabled+span .kiwi-ic-centered em+em:after,.epsilon-ui-option input:disabled+span .kiwi-ic-centered em+em:before,.epsilon-ui-option input:disabled+span .kiwi-ic-centered em:after,.epsilon-ui-option input:disabled+span .kiwi-ic-centered em:before,.epsilon-ui-option input:disabled+span .kiwi-ic-posboth em,.epsilon-ui-option input:disabled+span .kiwi-ic-posboth em+em:after,.epsilon-ui-option input:disabled+span .kiwi-ic-posboth em+em:before,.epsilon-ui-option input:disabled+span .kiwi-ic-posboth em:after,.epsilon-ui-option input:disabled+span .kiwi-ic-posboth em:before,.epsilon-ui-option input:disabled+span .kiwi-ic-posbottom em,.epsilon-ui-option input:disabled+span .kiwi-ic-posbottom em+em:after,.epsilon-ui-option input:disabled+span .kiwi-ic-posbottom em+em:before,.epsilon-ui-option input:disabled+span .kiwi-ic-posbottom em:after,.epsilon-ui-option input:disabled+span .kiwi-ic-posbottom em:before,.epsilon-ui-option input:disabled+span .kiwi-ic-postop em,.epsilon-ui-option input:disabled+span .kiwi-ic-postop em+em:after,.epsilon-ui-option input:disabled+span .kiwi-ic-postop em+em:before,.epsilon-ui-option input:disabled+span .kiwi-ic-postop em:after,.epsilon-ui-option input:disabled+span .kiwi-ic-postop em:before{background:#CECECE;opacity:1}.epsilon-ui-option input:disabled+span>i>strong:before{background:#CECECE}.epsilon-ui-option .kiwi-ic-bottom strong:before,.epsilon-ui-option .kiwi-ic-left strong:before,.epsilon-ui-option .kiwi-ic-right strong:before{background:#E14D43;opacity:.7;content:' '}.epsilon-ui-option .kiwi-ic-left strong:before{width:6px;height:17px;left:0;top:9px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-right strong:before{width:6px;height:17px;right:0;top:9px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-bottom strong:before{width:16px;height:6px;left:15px;bottom:0;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-leaf strong:before,.epsilon-ui-option .kiwi-ic-pill strong:before,.epsilon-ui-option .kiwi-ic-rect strong:before,.epsilon-ui-option .kiwi-ic-shift strong:before{background:#E14D43;width:30px;height:15px;left:8px;top:10px;content:' ';display:block;position:absolute;opacity:.7}.epsilon-ui-option .kiwi-ic-shift strong:before{-ms-transform:skewX(-20deg);-webkit-transform:skewX(-20deg);transform:skewX(-20deg)}.epsilon-ui-option .kiwi-ic-pill strong:before{border-radius:10px}.epsilon-ui-option .kiwi-ic-leaf strong:before{border-radius:6px 0}.epsilon-ui-option .kiwi-ic-centered strong:before{background:#CACACA;opacity:.7;content:' ';width:14px;height:2px;left:6px;top:7px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-centered strong>em{background:#CECECE;opacity:.7;width:38px;height:11px;left:6px;top:13px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-centered strong>em:after,.epsilon-ui-option .kiwi-ic-centered strong>em:before{width:10px;height:5px;top:14px;opacity:1;content:' ';display:block;position:absolute}.epsilon-ui-option .kiwi-ic-centered strong>em:before{background:#1F4091;left:0}.epsilon-ui-option .kiwi-ic-centered strong>em:after{background:#00BFF3;left:14px}.epsilon-ui-option .kiwi-ic-centered strong>em+em{background:0 0;opacity:1;content:' ';width:5px;height:15px;left:35px;top:13px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-centered strong>em+em:before{background:#E03D1C;opacity:1;content:' ';width:10px;height:5px;left:-1px;top:14px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-centered strong>em+em:after{content:none}.epsilon-ui-option .kiwi-ic-filled strong:before{background:#CACACA;opacity:.7;content:' ';width:14px;height:2px;left:6px;top:7px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-filled strong>em{background:#CECECE;opacity:.7;width:38px;height:11px;left:6px;top:13px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-filled strong>em:after,.epsilon-ui-option .kiwi-ic-filled strong>em:before{width:13px;height:5px;top:14px;opacity:1;content:' ';display:block;position:absolute}.epsilon-ui-option .kiwi-ic-filled strong>em:before{background:#1F4091;left:0}.epsilon-ui-option .kiwi-ic-filled strong>em:after{background:#00BFF3;left:13px}.epsilon-ui-option .kiwi-ic-filled strong>em+em{background:0 0;opacity:1;content:' ';width:5px;height:15px;left:35px;top:13px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-filled strong>em+em:before{background:#E03D1C;opacity:1;content:' ';width:12px;height:5px;left:-3px;top:14px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-filled strong>em+em:after{content:none}.epsilon-ui-option .kiwi-ic-posbottom strong:before{background:#CACACA;opacity:.7;content:' ';width:14px;height:2px;left:6px;top:7px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-posbottom strong>em{background:#CECECE;opacity:.7;width:27px;height:11px;left:6px;top:13px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-posbottom strong>em:after,.epsilon-ui-option .kiwi-ic-posbottom strong>em:before{width:6px;height:2px;display:block;position:absolute;content:' ';opacity:1;top:13px}.epsilon-ui-option .kiwi-ic-posbottom strong>em:before{background:#1F4091;left:0}.epsilon-ui-option .kiwi-ic-posbottom strong>em:after{background:#00BFF3;left:7px}.epsilon-ui-option .kiwi-ic-posbottom strong>em+em{background:#CECECE;opacity:1;content:' ';width:5px;height:15px;left:35px;top:13px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-posboth strong:before,.epsilon-ui-option .kiwi-ic-posbottom strong>em+em:after,.epsilon-ui-option .kiwi-ic-posbottom strong>em+em:before{content:' ';height:2px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-posbottom strong>em+em:before{background:#E03D1C;opacity:1;width:6px;left:-15px;top:13px}.epsilon-ui-option .kiwi-ic-posbottom strong>em+em:after{background:#81B636;opacity:1;width:6px;left:-8px;top:13px}.epsilon-ui-option .kiwi-ic-posboth strong:before{background:#CACACA;opacity:.7;width:14px;left:6px;top:7px}.epsilon-ui-option .kiwi-ic-posboth strong>em{background:#CECECE;opacity:.7;width:27px;height:7px;left:6px;top:17px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-posboth strong>em.top:after,.epsilon-ui-option .kiwi-ic-posboth strong>em.top:before{width:6px;height:2px;top:-4px;display:block;position:absolute;opacity:1;content:' '}.epsilon-ui-option .kiwi-ic-posboth strong>em.top:before{background:#1F4091;left:0}.epsilon-ui-option .kiwi-ic-posboth strong>em.top:after{background:#00BFF3;left:7px}.epsilon-ui-option .kiwi-ic-posboth strong>em.top+em.top{background:#CECECE;opacity:1;content:' ';width:5px;height:15px;left:35px;top:13px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-posboth strong>em.bottom:after,.epsilon-ui-option .kiwi-ic-posboth strong>em.bottom:before,.epsilon-ui-option .kiwi-ic-posboth strong>em.top+em.top:after,.epsilon-ui-option .kiwi-ic-posboth strong>em.top+em.top:before{width:6px;height:2px;opacity:1;content:' ';display:block;position:absolute}.epsilon-ui-option .kiwi-ic-posboth strong>em.top+em.top:before{background:#E03D1C;left:-15px;top:0}.epsilon-ui-option .kiwi-ic-posboth strong>em.top+em.top:after{background:#81B636;left:-8px;top:0}.epsilon-ui-option .kiwi-ic-posboth strong>em.bottom:before{background:#1F4091;left:0;top:9px}.epsilon-ui-option .kiwi-ic-posboth strong>em.bottom:after{background:#00BFF3;left:7px;top:9px}.epsilon-ui-option .kiwi-ic-posboth strong>em.bottom+em.bottom{background:#CECECE;opacity:1;content:' ';width:5px;height:15px;left:35px;top:13px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-posboth strong>em.bottom+em.bottom:before{background:#E03D1C;opacity:1;content:' ';width:6px;height:2px;left:-15px;top:13px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-posboth strong>em.bottom+em.bottom:after{background:#81B636;opacity:1;content:' ';width:6px;height:2px;left:-8px;top:13px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-postop strong:before{background:#CACACA;opacity:.7;content:' ';width:14px;height:2px;left:6px;top:7px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-postop strong>em{background:#CECECE;opacity:.7;width:27px;height:11px;left:6px;top:17px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-postop strong>em:after,.epsilon-ui-option .kiwi-ic-postop strong>em:before{width:6px;height:2px;top:-4px;opacity:1;content:' ';position:absolute;display:block}.epsilon-ui-option .kiwi-ic-postop strong>em:before{background:#1F4091;left:0}.epsilon-ui-option .kiwi-ic-postop strong>em:after{background:#00BFF3;left:7px}.epsilon-ui-option .kiwi-ic-postop strong>em+em{background:#CECECE;opacity:1;content:' ';width:5px;height:15px;left:35px;top:13px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-postop strong>em+em:before{background:#E03D1C;opacity:1;content:' ';width:6px;height:2px;left:-15px;top:0;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-postop strong>em+em:after{background:#81B636;opacity:1;content:' ';width:6px;height:2px;left:-8px;top:0;display:block;position:absolute}.epsilon-ui-toggle{background:0 0;width:52px;height:22px;position:relative;z-index:10}.epsilon-ui-toggle input{position:absolute;z-index:-1;opacity:0;left:0;top:0}.epsilon-ui-toggle input:focus~span{outline:#ccc dashed 1px;outline-offset:2px}.epsilon-ui-toggle span{display:block;width:52px;overflow:hidden;cursor:pointer;position:relative;height:22px;padding:0;line-height:19px;transition:background-color .2s ease-in;-webkit-border-radius:11px;-moz-border-radius:11px;border-radius:30px;background-color:#c4c4c4;-webkit-box-shadow:inset 0 2px 1px rgba(0,0,0,.11);-moz-box-shadow:inset 0 2px 1px rgba(0,0,0,.11);box-shadow:inset 0 2px 1px rgba(0,0,0,.11)}.epsilon-ui-toggle input+span:before{content:"";display:block;width:18px;height:18px;margin:0;position:absolute;top:2px;bottom:0;right:32px;background-color:#fff;-webkit-box-shadow:0 0 3px rgba(0,0,0,.1);-moz-box-shadow:0 0 3px rgba(0,0,0,.1);box-shadow:0 0 3px rgba(0,0,0,.1);-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px;transition:all .2s ease-in 0s}.epsilon-ui-toggle input+span:after{content:"OFF";display:block;color:#FFF;position:absolute;top:2px;bottom:2px;right:6px;font-size:11px;font-family:Arial}.sl-kiwi-tab-integration .themes,.ui-locked:after{display:inline-block}.epsilon-ui-toggle input:checked+span{background:#3CAF0E}.epsilon-ui-toggle input:checked+span:before{right:2px}.epsilon-ui-toggle input:checked+span:after{content:"ON";right:27px}.epsilon-ui-toggle input:focus+span,.epsilon-ui-toggle:hover input+span{background:#d4d4d4}.epsilon-ui-toggle input:focus:checked+span,.epsilon-ui-toggle:hover input:checked+span{background:#4fbf23}.ui-locked{position:relative}.ui-locked input[type=radio]:disabled{opacity:0}.ui-locked input:disabled~strong{background:0 0}.ui-locked:after{background:#F15B25;opacity:1;border:none;text-align:center;content:'\f160';font-family:dashicons;color:#fff;font-size:11px;position:absolute;bottom:2px;right:10px;border-radius:50%;width:16px;height:16px;line-height:16px}.sl-kiwi-tab-integration .integration_box{height:330px;margin-top:15px;text-align:center;background:#FFF;position:relative;border:1px solid rgba(0,0,0,.1);float:left}.sl-kiwi-tab-integration .integration_box .recommended{background:#d25637;color:#FFF;text-transform:uppercase;height:28px;text-align:center;top:0;left:0;right:0;line-height:28px;font-size:10px;position:absolute;font-weight:700}.sl-kiwi-tab-integration .integration_box img{width:155px;height:155px;padding-top:50px;margin:0 auto 15px;display:block;border:none}.sl-kiwi-tab-integration .integration_box.theme img{width:100%;height:initial;padding:0;margin:0;display:block}.sl-kiwi-tab-integration .integration_box.theme .info{display:block;position:absolute;bottom:48px;left:0;right:0;height:35px;background:rgba(0,0,0,.5);line-height:35px}.sl-kiwi-tab-integration .integration_box.theme .info a{color:#fff;font-size:14px;font-family:'Open Sans'}.sl-kiwi-tab-integration .integration_box .action_bar{position:absolute;bottom:0;left:0;right:0;font-size:15px;font-weight:600;height:18px;margin:0;padding:15px 105px 15px 15px;-webkit-box-shadow:inset 0 1px 0 rgba(0,0,0,.1);box-shadow:inset 0 1px 0 rgba(0,0,0,.1);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;background:#fff;background:rgba(255,255,255,.65);text-align:left}.sl-kiwi-tab-integration .integration_box .action_bar.active{background:#23282d;color:#FFF}.sl-kiwi-tab-integration .integration_box .action_button{position:absolute;bottom:-1px;right:-1px;padding:9px 10px 10px;background:#f6f6f6;border:1px solid rgba(0,0,0,.1)}.sl-kiwi-tab-integration .integration_box .action_button.active{background:#2c2e2f;bottom:0;right:-1px;padding:9px 10px}.sl-kiwi-tab-integration.three-col .col{width:29.81%;margin-right:5%;margin-bottom:35px}.sl-kiwi-tab-integration.three-col .col:nth-child(3n+3){margin-right:0}.mce-ico.mce-i-dashicons.dashicons-twitter{font-family:dashicons}.mce-ico.mce-i-dashicons.dashicons-twitter:before{content:"\f301";color:#55ACEE}#update-nag,.update-nag{position:relative;z-index:10}#update-nag.kiwi-notice,.update-nag.kiwi-notice{width:95%}#update-nag.kiwi-notice p,.update-nag.kiwi-notice p{font-size:14px}.kiwi-title-has-tooltip h4{display:inline-block}.kiwi-tooltip-container{position:relative;display:inline-block}.kiwi-tooltip-container .dashicons{color:#0073aa}.kiwi-tooltip-container .tooltip-opener{cursor:pointer}.kiwi-tooltip-container .tooltip-opener:focus+.kiwi-notice-container,.kiwi-tooltip-container .tooltip-opener:hover+.kiwi-notice-container{display:block}.kiwi-tooltip-container .kiwi-notice-container{position:absolute;display:none;padding:10px;background:#0073aa;border-radius:3px;z-index:10;width:350px}.clear,.fixed:after{clear:both;display:block;visibility:hidden;height:0}.kiwi-tooltip-container .kiwi-notice-container p{color:#fff}.wp-has-submenu a[href*="admin.php?page=kiwi-upgrade"],a.kiwi-upgrade-pro{color:red!important}.wp-has-submenu a[href*="admin.php?page=kiwi-upgrade"]:after,a.kiwi-upgrade-pro:after{font-family:dashicons;content:'\f155';margin-left:7px;vertical-align:middle}li.kiwi-upgrade-list{background:0 0;float:right}.featured-section .kiwi.free-pro-table th{text-align:center}.kiwi-social-share-wrap .wp-badge{background-image:url(../img/icon-256x256.jpg);background-color:transparent;background-size:contain;border:0;box-shadow:none}.fixed:after{font-size:0;content:" "}.clear{overflow:hidden;width:0}.featured-section.features .row{display:inline-block;width:97%;padding:15px;border-bottom:1px solid rgba(0,0,0,.06)}.featured-section.features .row .dashicons-yes{color:#2cbe4e}.featured-section.features .row .dashicons-no-alt{color:#ff3d2e}.featured-section.features .row>div{display:inline-block;float:left;width:15%;text-align:center}.featured-section.features .row>.feature{width:70%;text-align:left}.featured-section .free-pro-table{border-spacing:0;width:100%;margin-top:40px}.featured-section .free-pro-table th{padding-bottom:20px}.featured-section .free-pro-table td{border-top:1px solid #ccc;padding:20px 0 25px}.featured-section .free-pro-table h3,.featured-section .free-pro-table td p{margin:0}.featured-section .free-pro-table .sab-feature,.featured-section .free-pro-table .sab-pro-feature{text-align:center;width:15%}.featured-section .free-pro-table .dashicons-yes{color:#00a878}.featured-section .free-pro-table .dashicons-no-alt{color:#ff3439}.featured-section .free-pro-table .dashicons-before:before{font-size:35px;height:35px;width:35px}.featured-section .button-hero .dashicons{font-size:16px;vertical-align:middle}.featured-section .ti-about-page-text-center{text-align:center}.free-pro-table .text-right{text-align:right}.epsilon-ui-locked .kiwi-upgrade-pro-url,.ui-locked .kiwi-upgrade-pro-url{position:absolute;width:100%;height:100%;top:0;left:0;z-index:99}
|
1 |
+
#sl-kiwi,.kiwi-modal .modal-title{font-family:'Open Sans'}.epsilon-ui-tabs a:focus,.epsilon-ui-tabs a:hover,.sl-kiwi-dragdrop li a:hover,.sl-kiwi-tab-integration .integration_box.theme .info a:focus,.sl-kiwi-tab-integration .integration_box.theme .info a:hover{text-decoration:none}#sl-kiwi{width:1250px;padding:20px;position:relative;margin:0 auto}#sl-kiwi a:focus{box-shadow:none;-webkit-box-shadow:none}#sl-kiwi .overlay{position:absolute;top:20px;bottom:102px;left:20px;right:20px;-webkit-transition:all .3s;transition:all .3s;z-index:9999;text-align:center;padding-top:250px}#sl-kiwi .overlay.active{-webkit-transition:all .4s;transition:all .4s;background:rgba(255,255,255,.97)}#sl-kiwi .overlay img{position:relative;top:-72px}.kiwi-notification-popup{width:100%;padding:25px 20px;box-sizing:border-box;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;background-color:#0073aa;color:#fff;display:none;position:relative;z-index:10}.kiwi-notification-popup .button{float:right;position:relative;bottom:5px}.kiwi-utility-bar{position:absolute;top:20px;right:-25px;display:none}.kiwi-utility-bar>input{position:fixed}.sl-kiwi-content{background:#fff;min-height:500px;margin-top:0;position:relative;z-index:5;-webkit-box-shadow:0 0 5px rgba(0,0,0,.06);-moz-box-shadow:0 0 5px rgba(0,0,0,.06);box-shadow:0 0 5px rgba(0,0,0,.06);padding:10px 30px}.sl-kiwi-content input[type=text],.sl-kiwi-content input[type=email],.sl-kiwi-content input[type=url]{width:330px;height:32px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;background-color:#fff;-webkit-box-shadow:1px 1px 2px rgba(35,31,32,.2);-moz-box-shadow:1px 1px 2px rgba(35,31,32,.2);box-shadow:1px 1px 2px rgba(35,31,32,.2);padding-left:10px;margin-top:5px;border:1px solid #f2f2f2}#sl-kiwi .epsilon-ui-color .wp-picker-container .wp-color-result,.sl-kiwi-dragdrop{-webkit-box-shadow:0 0 5px rgba(0,0,0,.15);-moz-box-shadow:0 0 5px rgba(0,0,0,.15)}.sl-kiwi-content>div{padding-bottom:50px;display:none}.sl-kiwi-content>div.epsilon-tab-active{display:block}.sl-kiwi-dragdrop .suggestions{font-size:32px;color:#EBEBEB;width:100%;height:40px;line-height:40px;text-align:center;font-weight:700;display:block;position:absolute;top:15px;opacity:.7;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.sl-kiwi-dragdrop{height:220px;border:1px solid #fff;margin:0;position:relative;-webkit-border-radius:3px 3px 0 0;-moz-border-radius:3px 3px 0 0;border-radius:3px 3px 0 0;background-color:#fff;box-shadow:0 0 5px rgba(0,0,0,.15);background-image:-webkit-linear-gradient(top,rgba(255,255,255,.7),rgba(246,246,246,.7));background-image:-moz-linear-gradient(top,rgba(255,255,255,.7),rgba(246,246,246,.7));background-image:-o-linear-gradient(top,rgba(255,255,255,.7),rgba(246,246,246,.7));background-image:-ms-linear-gradient(top,rgba(255,255,255,.7),rgba(246,246,246,.7));background-image:linear-gradient(to bottom,rgba(255,255,255,.7),rgba(246,246,246,.7))}.sl-kiwi-dragdrop>div{padding:85px 25px 0;text-align:center}.sl-kiwi-dragdrop ul{line-height:30px;vertical-align:top}.sl-kiwi-dragdrop ul[data-id=networks_ordering_floating_bar]{position:absolute;top:45px;right:0;z-index:-1;transition:all .3s;opacity:0}.sl-kiwi-dragdrop ul[data-id=networks_ordering_floating_bar] li{display:block;margin:0;padding:0}.sl-kiwi-dragdrop ul[data-id=networks_ordering_floating_bar] li a{display:block;height:40px;line-height:40px;padding:0 5px;min-width:40px;transition:all .3s;-webkit-box-shadow:none;box-shadow:none;font-size:16px;box-sizing:border-box;position:relative;z-index:1}.sl-kiwi-dragdrop ul[data-id=networks_ordering_floating_bar] li.sl-kiwi-dragdrop-placeholder:before{width:40px}.sl-kiwi-dragdrop ul[data-id=networks_ordering_floating_bar].pill li{margin-bottom:2px}.sl-kiwi-dragdrop ul[data-id=networks_ordering_floating_bar].pill li a{border-radius:25px}#sl-kiwi .sl-kiwi-item-add{margin-right:5px}#sl-kiwi .sl-kiwi-item-remove{max-width:0;margin-right:0;display:none}.sl-kiwi-dragdrop-placeholder:before{border:1px dashed #ccc;width:100%;position:absolute;top:0;left:0;bottom:0;right:0;height:100%;content:" ";display:block}.sl-kiwi-dragdrop-placeholder{position:relative;height:30px;padding:0 5px;min-width:90px;background:0 0;vertical-align:top}.sl-kiwi-dragdrop ul.pill a{border-radius:15px}.sl-kiwi-dragdrop ul.leaf a{border-radius:12px 0}.sl-kiwi-dragdrop ul.shift a{-ms-transform:skewX(-15deg);-webkit-transform:skewX(-15deg);transform:skewX(-15deg)}.sl-kiwi-dragdrop ul.shift span{-ms-transform:skewX(15deg);-webkit-transform:skewX(15deg);transform:skewX(15deg);display:block}.sl-kiwi-dragdrop ul.pill .sl-kiwi-dragdrop-placeholder:before{border-radius:15px}.sl-kiwi-dragdrop ul.leaf .sl-kiwi-dragdrop-placeholder:before{border-radius:12px 0}.sl-kiwi-dragdrop ul.shift .sl-kiwi-dragdrop-placeholder:before{-ms-transform:skewX(-15deg);-webkit-transform:skewX(-15deg);transform:skewX(-15deg)}.sl-kiwi-dragdrop li{list-style-type:none;transition:max-width .2s,margin .2s;overflow:hidden;margin-right:5px;display:inline-block;padding:0 5px}.sl-kiwi-dragdrop li.ui-sortable-helper a{transition:box-shadow .3s;-webkit-box-shadow:6px 10px 10px rgba(0,0,0,.1);-moz-box-shadow:6px 10px 10px rgba(0,0,0,.1);box-shadow:6px 10px 10px rgba(0,0,0,.1)}.sl-kiwi-dragdrop li a{display:block;height:30px;line-height:30px;padding:0 5px;min-width:90px;transition:all .3s}.sl-kiwi-networks{margin-bottom:40px;position:relative}.sl-kiwi-networks .epsilon-ui-locked{position:absolute;right:-15px;width:35px;height:35px;line-height:35px;top:12px;text-align:center}ul[data-style=fit]{display:table;width:100%}ul[data-style=fit] li{display:table-cell;padding:0;overflow:initial}ul[data-style=fit].leaf a,ul[data-style=fit].leaf li:last-of-type a{width:100%}ul[data-style=fit].pill{flex-wrap:nowrap;display:flex;margin-left:20px;width:auto}ul[data-style=fit].pill .sl-kiwi-item-add{margin:0;flex:1}ul[data-style=fit].pill .sl-kiwi-item-add a{padding:0 0 0 26px;display:block;width:100%;margin-left:-26px}ul[data-style=fit].pill .sl-kiwi-item-add span{margin-right:26px}.sl-kiwi-tab-registration label,.sl-kiwi-tab-socialIdentity label{display:block;color:grey;margin-bottom:5px}.sl-kiwi-tab-registration input[type=text],.sl-kiwi-tab-socialIdentity input[type=text]{padding:5px;margin-bottom:15px}.sl-kiwi-tab-registration .kiwi-registration-action,.sl-kiwi-tab-socialIdentity .kiwi-registration-action{height:30px}[class*=sl-kiwi-tab-] h2{font-size:22px;color:#585858;font-weight:300;height:50px}.sl-kiwi-networks h2>span{width:65%;display:block;float:left;background:0 0}.sl-kiwi-networks h2 span+span{width:17.5%;display:block;float:left;background:0 0;text-align:center;font-size:14px;color:#959696}.sl-kiwi-networks em{font-style:normal;position:absolute;top:3px;left:42px}.sl-kiwi-networks ul{border-top:1px solid #F5F5F5;padding:0;margin:0 10px}.sl-kiwi-networks li{height:39px;border-bottom:1px solid #F5F5F5;list-style-type:none;line-height:35px;padding-left:20px;position:relative;margin-bottom:0;display:inline-block;width:98%}.sl-kiwi-networks li:hover{background:#FBFBFB}.sl-kiwi-networks li>span{width:65%;display:block;float:left;background:0 0;color:#555;font-size:13px}.sl-kiwi-networks li span+span{width:17.5%;background:0 0;text-align:center}.sl-kiwi-networks span>strong{height:24px;width:24px;display:inline-block;vertical-align:middle;line-height:24px;text-align:center;border-radius:2px;margin-right:5px;background:#D4D4D4}.sl-kiwi-networks span>strong i{font-size:16px;line-height:24px}.sl-kiwi-networks.kiwi-styles h2 span+span{width:16%}.sl-kiwi-networks.kiwi-styles h2 span:nth-last-of-type(-n+2)+span:nth-last-of-type(-n+2),.sl-kiwi-networks.kiwi-styles h2 span:nth-last-of-type(-n+3)+span:nth-last-of-type(-n+3){width:8%}.sl-kiwi-networks.kiwi-styles h2 strong.goleft{position:relative;right:5px}.sl-kiwi-networks.kiwi-styles h2>span{width:20%;text-align:left}.sl-kiwi-networks.kiwi-styles li span+span{width:16%;text-align:left}.sl-kiwi-networks.kiwi-styles li span:nth-last-of-type(-n+2)+span:nth-last-of-type(-n+2),.sl-kiwi-networks.kiwi-styles li span:nth-last-of-type(-n+3)+span:nth-last-of-type(-n+3){width:8%}.sl-kiwi-networks.kiwi-styles li>span{width:20%}#sl-kiwi .kiwi-nw-twitter{background:#4EAEF8;color:#fff}#sl-kiwi .kiwi-nw-whatsapp{background:#0DC143;color:#fff}#sl-kiwi .kiwi-nw-telegram{background:#179CDE;color:#fff}#sl-kiwi .kiwi-nw-skype{background:#009EE5;color:#fff}#sl-kiwi .kiwi-nw-youtube,#sl-kiwi .kiwi-nw-youtube-play{background:#E62117;color:#fff}#sl-kiwi .kiwi-nw-facebook{background:#3B5998;color:#fff}#sl-kiwi .kiwi-nw-google-plus{background:#DB4437;color:#fff}#sl-kiwi .kiwi-nw-pinterest{background:#BD081C;color:#fff}#sl-kiwi .kiwi-nw-fintel{background:#087515;color:#fff}#sl-kiwi .kiwi-nw-linkedin{background:#1A85BC;color:#fff}#sl-kiwi .kiwi-nw-reddit{background:#FF4500;color:#fff}#sl-kiwi .kiwi-nw-email,#sl-kiwi .kiwi-nw-envelope{background:#4D9159;color:#fff}.sl-kiwi-opt-group{min-height:100px;background:0 0;padding:30px 0;border-bottom:1px solid #F5F5F5}.sl-kiwi-opt-group:last-of-type{border-bottom:none}.sl-kiwi-opt-group .bottom-color-option{clear:both}.sl-kiwi-inner-opt{padding-left:70px}.sl-kiwi-opt-group .left{float:left}.sl-kiwi-opt-group .right{float:right}.sl-kiwi-opt-toggle{background:0 0;width:70px;float:left;padding-top:10px}.sl-kiwi-opt-description{float:left;background:0 0;min-height:60px;position:relative}.sl-kiwi-opt-description h4{font-size:18px;margin:0;line-height:18px}.sl-kiwi-opt-description h5{font-size:16px;margin:0;line-height:18px}.sl-kiwi-opt-description p{font-size:14px;margin:0}.epsilon-ui-locked{display:inline-block;border-radius:10px;width:20px;height:20px;cursor:pointer;vertical-align:middle}.epsilon-ui-locked i{font-size:12px;color:#fff;text-shadow:0 0 4px rgba(0,0,0,.2);line-height:16px;background:#F05A25;cursor:pointer}.dashicons-before::before,.epsilon-ui-locked i.dashicons{width:17px;height:17px;border-radius:10px;text-align:center;vertical-align:top}.sl-kiwi-opt-space-sm{padding-top:15px}.clearfix:after{clear:both;content:".";display:block;height:0;line-height:0;visibility:hidden}.kiwi-modal,.kiwi-modal #page-two{display:none}.kiwi-modal{position:fixed;top:0;right:0;left:0;bottom:0;z-index:1050;overflow:hidden;-webkit-overflow-scrolling:touch;outline:0;background:rgba(0,0,0,.7)}.kiwi-modal .close-modal{width:25px;height:25px;color:#FF3424;position:absolute;text-align:center;line-height:25px;font-size:17px;right:7px;top:7px;cursor:pointer}.kiwi-modal .kiwi-modal-content{position:relative;width:900px;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px;background-image:-webkit-linear-gradient(bottom,#fff 25%,#f2f3f4 90%);background-image:-moz-linear-gradient(bottom,#fff 25%,#f2f3f4 90%);background-image:-o-linear-gradient(bottom,#fff 25%,#f2f3f4 90%);background-image:-ms-linear-gradient(bottom,#fff 25%,#f2f3f4 90%);background-image:linear-gradient(to top,#fff 25%,#f2f3f4 90%);-webkit-box-shadow:0 0 15px rgba(0,0,0,.15);-moz-box-shadow:0 0 15px rgba(0,0,0,.15);box-shadow:0 0 15px rgba(0,0,0,.15);margin:8% auto}.kiwi-modal.fade{opacity:0;-webkit-transition:opacity .15s linear;-o-transition:opacity .15s linear;transition:opacity .15s linear}.epsilon-ui-option input:checked+span>strong:before,.kiwi-modal.fade.in{opacity:1}.kiwi-modal.fade .kiwi-modal-content{-webkit-transition:-webkit-transform .3s ease-out;-o-transition:-o-transform .3s ease-out;transition:transform .3s ease-out;-webkit-transform:translate(0,-25%);-ms-transform:translate(0,-25%);-o-transform:translate(0,-25%);transform:translate(0,-25%)}.kiwi-modal.fade.in .kiwi-modal-content{-webkit-transform:translate(0,0);-ms-transform:translate(0,0);-o-transform:translate(0,0);transform:translate(0,0)}.kiwi-modal .button-modal{width:100%;height:45px;-webkit-border-radius:22px 23px 23px 22px/22px 22px 23px 23px;-moz-border-radius:22px 23px 23px 22px/22px 22px 23px 23px;border-radius:22px 23px 23px 22px/22px 22px 23px 23px;background-color:#ff3d2e;color:#fff;display:inline-block;line-height:45px;margin:30px auto;text-align:center}.kiwi-modal .button-modal:focus,.kiwi-modal .button-modal:hover{text-decoration:none;color:#fff;background-color:#ff3424}.kiwi-modal .modal-header{padding-top:40px;padding-bottom:40px;text-align:center;background-image:url(../img/back-wavy.png);background-size:cover;background-position:center;-webkit-border-top-left-radius:10px;-moz-border-top-left-radius:10px;border-top-left-radius:10px;-webkit-border-top-right-radius:10px;-moz-border-top-right-radius:10px;border-top-right-radius:10px}.kiwi-modal .modal-header .modal-header-content{width:475px;margin:0 auto}.kiwi-modal .modal-title{font-size:28px;font-weight:800;color:#333}.kiwi-modal .modal-subtitle{font-family:"Open Sans";font-size:14px;color:#8c8c8c}.kiwi-modal .price-box{margin-top:40px}.kiwi-modal .price-box .price{font-family:"Open Sans";font-weight:700;color:#333;font-size:60px;display:block}.kiwi-modal .price-box .price .currency{font-size:45px}.kiwi-modal .price-box .price small{font-size:15px}.kiwi-modal .price-box .button-modal{width:150px}.kiwi-modal .modal-footer{margin:60px auto 0;padding-bottom:60px;width:475px}.kiwi-modal .modal-footer a{color:#639fb1;font-family:'Open Sans';font-size:14px;display:inline-block;margin-bottom:15px}.kiwi-modal .modal-footer .muted{font-size:12px;font-family:'Open Sans';color:#8c8c8c}.kiwi-modal .modal-content.form .clearfix label,.kiwi-modal .modal-content.form .radio-label{color:grey;font-family:'Open Sans';display:block}.kiwi-modal .modal-content{width:310px;margin:0 auto}.kiwi-modal .modal-content.form .radio-label{margin-top:40px}.kiwi-modal .modal-content.form>.ui-radio-inline{margin-top:15px!important}.kiwi-modal .modal-content.form .clearfix{margin-top:30px}.kiwi-modal .modal-content.form .clearfix .half{width:50%;float:left;padding-right:15px;box-sizing:border-box}.kiwi-modal .modal-content.form .clearfix .half:last-of-type{padding-left:15px;padding-right:0}.kiwi-modal .modal-content.form .clearfix input{width:100%;height:32px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;border:none;background-color:#fff;-webkit-box-shadow:1px 1px 2px rgba(35,31,32,.2);-moz-box-shadow:1px 1px 2px rgba(35,31,32,.2);box-shadow:1px 1px 2px rgba(35,31,32,.2);padding-left:5px;margin-top:5px}.epsilon-ui-tabs{overflow:hidden;position:relative;z-index:10;background:#fff;margin-bottom:25px;margin-top:25px}.epsilon-ui-tabs ul{height:36px;margin-left:0;margin-bottom:0}.epsilon-ui-tabs li{float:left;background:#fff;list-style-type:none;line-height:36px;text-align:center;margin-bottom:0;margin-right:15px}.epsilon-ui-tabs li.selected{background:#fff!important;-webkit-box-shadow:0 -2px 3px rgba(0,0,0,.02);-moz-box-shadow:0 -2px 3px rgba(0,0,0,.02);box-shadow:0 -2px 3px rgba(0,0,0,.02);border-bottom:2px solid #666}.epsilon-ui-tabs li.selected a{color:#666}.epsilon-ui-tabs .selected a:hover{background:#fff}.epsilon-ui-tabs a{display:block;line-height:36px;color:#0073aa;padding:10px;min-width:80px;outline:0!important}.epsilon-ui-tabs i{vertical-align:middle;font-size:16px}.epsilon-ui-tabs a:hover{background:#fff}.epsilon-ui-tabs a:focus{outline:#ccc dashed 1px;outline-offset:-4px}.sl-kiwi-networks li span{line-height:30px}.sl-kiwi-networks li:hover .epsilon-ui-checkbox strong{border:1px solid #8AB7C5}.sl-kiwi-networks li:hover .epsilon-ui-checkbox input:checked~strong,.sl-kiwi-networks li:hover .epsilon-ui-checkbox input:focus~strong{border:1px solid #448092}.ui-inline strong{display:inline-block}#sl-kiwi label.epsilon-ui-checkbox{background:0 0;display:block;position:relative;cursor:pointer;margin:0 35px;max-width:none}.epsilon-ui-checkbox.ui-checkbox-inline strong{display:inline-block}#sl-kiwi .epsilon-ui-checkbox.ui-checkbox-inline{display:inline-block;margin-left:0}.epsilon-ui-checkbox input{position:absolute;z-index:-1;opacity:0;left:0;top:0}.epsilon-ui-checkbox input:focus~strong{border:1px solid #448092;outline:#ccc dashed 1px;outline-offset:2px}.epsilon-ui-checkbox input:checked~strong{background:#fff;border:1px solid #448092;-webkit-box-shadow:inset 0 0 0 4px rgba(99,159,177,.75);-moz-box-shadow:inset 0 0 0 4px rgba(99,159,177,.75);box-shadow:inset 0 0 0 4px rgba(99,159,177,.75)}.epsilon-ui-checkbox input:disabled~strong{background:#1ABC9C;opacity:.6;pointer-events:none}.epsilon-ui-checkbox strong{background:#fff;border:1px solid #DDD;display:block;margin:11px auto auto;height:16px;width:16px;transition:all .15s}#sl-kiwi label.epsilon-ui-radio{display:block;position:relative;cursor:pointer;background:0 0;margin:0 35px;max-width:none;font-weight:600;color:grey}#sl-kiwi .sl-kiwi-tab-styles label.epsilon-ui-radio{margin:0 60px 0 0}.epsilon-ui-radio.ui-radio-inline strong{display:inline-block;margin-right:5px;position:relative;top:3px}#sl-kiwi .epsilon-ui-radio.ui-radio-inline{display:inline-block;margin-left:0}.epsilon-ui-radio strong{border-radius:50%;display:block;margin:11px auto auto;height:16px;width:16px;background:#fff;border:1px solid #DDD;transition:all .15s}.epsilon-ui-radio input{position:absolute;z-index:-1;opacity:0;left:0;top:0}.epsilon-ui-radio input:focus~strong{border:1px solid #448092;outline:#ccc dashed 1px;outline-offset:2px}.epsilon-ui-radio input:checked~strong{background:#fff;border:1px solid #448092;-webkit-box-shadow:inset 0 0 0 4px rgba(99,159,177,.75);-moz-box-shadow:inset 0 0 0 4px rgba(99,159,177,.75);box-shadow:inset 0 0 0 4px rgba(99,159,177,.75)}.epsilon-ui-radio input:disabled~strong{background:#1ABC9C;opacity:.6;pointer-events:none}.epsilon-ui-checklist{position:relative;overflow:hidden;margin-top:25px;padding-top:10px;border-top:1px solid #ECECEC;background:#FCFCFC}.epsilon-ui-checklist:before{position:absolute;top:-2px;left:50px;right:50px;height:2px;content:" ";box-shadow:0 -60px 30px 35px rgba(0,0,0,.7);z-index:1}.epsilon-ui-checklist ul{margin:15px 0 0;list-style-type:none;padding:0 5px 25px 25px;position:relative;overflow:hidden}.epsilon-ui-checklist li{margin-bottom:1px;height:35px}.epsilon-ui-checklist li>span{float:left;width:80%;padding:10px 0 0;color:grey}#sl-kiwi .epsilon-ui-checklist li .epsilon-ui-checkbox{float:right;width:20%;margin:0}.epsilon-ui-overlay{background:#fff;position:absolute;padding:10px;opacity:0}.epsilon-ui-overlay.active{top:-5px;left:-5px;bottom:-5px;right:-5px;opacity:.6}.epsilon-ui-overlay.active.networks{right:185px;left:200px;top:35px}#sl-kiwi .epsilon-ui-color{line-height:14px;background:0 0;display:inline-block;color:#D1D1D1;position:relative}#sl-kiwi .epsilon-ui-color .wp-picker-container{position:relative}#sl-kiwi .epsilon-ui-color .wp-picker-container .wp-picker-holder{position:absolute;z-index:9999}#sl-kiwi .epsilon-ui-color .wp-picker-container .wp-color-picker{width:69px;height:23px;z-index:10;position:absolute;top:-1px;border:none;color:#D1D1D1;padding-bottom:7px}#sl-kiwi .epsilon-ui-color .wp-picker-container .wp-picker-clear{position:relative;left:66px;top:0}#sl-kiwi .epsilon-ui-color .wp-picker-container .wp-color-result{background:0 0;border:none;-webkit-border-radius:0;border-radius:0;box-shadow:0 0 5px rgba(0,0,0,.15);padding-left:30px}#sl-kiwi .epsilon-ui-color .wp-picker-container .wp-color-result .wp-color-result-text{display:none}#sl-kiwi .epsilon-ui-color .wp-picker-container .wp-color-result:after{background:0 0;-webkit-border-radius:0;border-radius:0;content:''}#sl-kiwi .bottom-color-option .floating-bar-background{width:350px;position:relative}#sl-kiwi .bottom-color-option .floating-bar-background em{position:absolute;left:44px;top:3px;font-style:normal;font-size:13px}#sl-kiwi .bottom-color-option .wp-picker-container{width:350px}#sl-kiwi .bottom-color-option .wp-picker-container .wp-color-result{border:none}#sl-kiwi .bottom-color-option .wp-picker-container .wp-color-result:after{-webkit-border-radius:0;border-radius:0;content:''}#sl-kiwi .bottom-color-option .wp-picker-container .wp-color-result:focus,#sl-kiwi .bottom-color-option .wp-picker-container .wp-color-result:hover{background:0 0;border-color:transparent;color:initial}#sl-kiwi .bottom-color-option .wp-picker-container .wp-color-picker{z-index:10;height:27px;top:-3px}#sl-kiwi .bottom-color-option .wp-picker-container .wp-picker-default{z-index:999;left:100px;position:absolute}#sl-kiwi .epsilon-ui-color strong{width:30px;height:20px;border-radius:0;-webkit-box-shadow:0 0 5px rgba(0,0,0,.15);-moz-box-shadow:0 0 5px rgba(0,0,0,.15);box-shadow:0 0 5px rgba(0,0,0,.15)}.epsilon-ui-option{position:relative}.epsilon-ui-option input{position:absolute;z-index:-1;opacity:0;left:0;top:0}.epsilon-ui-option label{width:100%;cursor:pointer;margin:0}.epsilon-ui-option ul{list-style-type:none;height:90px;padding:0;margin:0}.epsilon-ui-option li{width:80px;height:90px;float:left;background:#F7FAFB;text-align:center;margin-right:1px}.epsilon-ui-option input+span{background:#F7FAFB;display:block;padding:14px 15px 0;height:90px}.epsilon-ui-option span span{text-transform:uppercase;font-size:10px;display:block;background:0 0;height:24px;color:#969A9C;border-top:1px solid #fff;line-height:24px;font-weight:400;margin:15px -15px 0}.epsilon-ui-option strong{position:relative;transition:all .15s;display:block;border:2px solid #CBCBCB;border-radius:2px;width:50px;height:39px;background-color:#f1f1f1;-webkit-box-shadow:0 0 5px rgba(0,0,0,.1);-moz-box-shadow:0 0 5px rgba(0,0,0,.1);box-shadow:0 0 5px rgba(0,0,0,.1);background-image:-webkit-linear-gradient(top,#fff,#f6f6f6);background-image:-moz-linear-gradient(top,#fff,#f6f6f6);background-image:-o-linear-gradient(top,#fff,#f6f6f6);background-image:-ms-linear-gradient(top,#fff,#f6f6f6);background-image:linear-gradient(to bottom,#fff,#f6f6f6)}.epsilon-ui-option input:focus+span{outline:#ccc dashed 1px;outline-offset:-4px}.epsilon-ui-option input:checked+span,.epsilon-ui-option input:checked:focus+span{background:#E8F1F3}.epsilon-ui-option input+span:hover,.epsilon-ui-option input:checked:focus+span:hover{background:#dbe9ec}.epsilon-ui-option input:disabled+span{background:#FCFCFC;opacity:.5}.epsilon-ui-option input:disabled:checked+span{background:#F5F5F5;border-color:#C4C4C4;opacity:1}.epsilon-ui-option input:disabled+span .kiwi-ic-centered em,.epsilon-ui-option input:disabled+span .kiwi-ic-centered em+em:after,.epsilon-ui-option input:disabled+span .kiwi-ic-centered em+em:before,.epsilon-ui-option input:disabled+span .kiwi-ic-centered em:after,.epsilon-ui-option input:disabled+span .kiwi-ic-centered em:before,.epsilon-ui-option input:disabled+span .kiwi-ic-posboth em,.epsilon-ui-option input:disabled+span .kiwi-ic-posboth em+em:after,.epsilon-ui-option input:disabled+span .kiwi-ic-posboth em+em:before,.epsilon-ui-option input:disabled+span .kiwi-ic-posboth em:after,.epsilon-ui-option input:disabled+span .kiwi-ic-posboth em:before,.epsilon-ui-option input:disabled+span .kiwi-ic-posbottom em,.epsilon-ui-option input:disabled+span .kiwi-ic-posbottom em+em:after,.epsilon-ui-option input:disabled+span .kiwi-ic-posbottom em+em:before,.epsilon-ui-option input:disabled+span .kiwi-ic-posbottom em:after,.epsilon-ui-option input:disabled+span .kiwi-ic-posbottom em:before,.epsilon-ui-option input:disabled+span .kiwi-ic-postop em,.epsilon-ui-option input:disabled+span .kiwi-ic-postop em+em:after,.epsilon-ui-option input:disabled+span .kiwi-ic-postop em+em:before,.epsilon-ui-option input:disabled+span .kiwi-ic-postop em:after,.epsilon-ui-option input:disabled+span .kiwi-ic-postop em:before{background:#CECECE;opacity:1}.epsilon-ui-option input:disabled+span>i>strong:before{background:#CECECE}.epsilon-ui-option .kiwi-ic-bottom strong:before,.epsilon-ui-option .kiwi-ic-left strong:before,.epsilon-ui-option .kiwi-ic-right strong:before{background:#E14D43;opacity:.7;content:' '}.epsilon-ui-option .kiwi-ic-left strong:before{width:6px;height:17px;left:0;top:9px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-right strong:before{width:6px;height:17px;right:0;top:9px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-bottom strong:before{width:16px;height:6px;left:15px;bottom:0;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-leaf strong:before,.epsilon-ui-option .kiwi-ic-pill strong:before,.epsilon-ui-option .kiwi-ic-rect strong:before,.epsilon-ui-option .kiwi-ic-shift strong:before{background:#E14D43;width:30px;height:15px;left:8px;top:10px;content:' ';display:block;position:absolute;opacity:.7}.epsilon-ui-option .kiwi-ic-shift strong:before{-ms-transform:skewX(-20deg);-webkit-transform:skewX(-20deg);transform:skewX(-20deg)}.epsilon-ui-option .kiwi-ic-pill strong:before{border-radius:10px}.epsilon-ui-option .kiwi-ic-leaf strong:before{border-radius:6px 0}.epsilon-ui-option .kiwi-ic-centered strong:before{background:#CACACA;opacity:.7;content:' ';width:14px;height:2px;left:6px;top:7px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-centered strong>em{background:#CECECE;opacity:.7;width:38px;height:11px;left:6px;top:13px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-centered strong>em:after,.epsilon-ui-option .kiwi-ic-centered strong>em:before{width:10px;height:5px;top:14px;opacity:1;content:' ';display:block;position:absolute}.epsilon-ui-option .kiwi-ic-centered strong>em:before{background:#1F4091;left:0}.epsilon-ui-option .kiwi-ic-centered strong>em:after{background:#00BFF3;left:14px}.epsilon-ui-option .kiwi-ic-centered strong>em+em{background:0 0;opacity:1;content:' ';width:5px;height:15px;left:35px;top:13px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-centered strong>em+em:before{background:#E03D1C;opacity:1;content:' ';width:10px;height:5px;left:-1px;top:14px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-centered strong>em+em:after{content:none}.epsilon-ui-option .kiwi-ic-filled strong:before{background:#CACACA;opacity:.7;content:' ';width:14px;height:2px;left:6px;top:7px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-filled strong>em{background:#CECECE;opacity:.7;width:38px;height:11px;left:6px;top:13px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-filled strong>em:after,.epsilon-ui-option .kiwi-ic-filled strong>em:before{width:13px;height:5px;top:14px;opacity:1;content:' ';display:block;position:absolute}.epsilon-ui-option .kiwi-ic-filled strong>em:before{background:#1F4091;left:0}.epsilon-ui-option .kiwi-ic-filled strong>em:after{background:#00BFF3;left:13px}.epsilon-ui-option .kiwi-ic-filled strong>em+em{background:0 0;opacity:1;content:' ';width:5px;height:15px;left:35px;top:13px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-filled strong>em+em:before{background:#E03D1C;opacity:1;content:' ';width:12px;height:5px;left:-3px;top:14px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-filled strong>em+em:after{content:none}.epsilon-ui-option .kiwi-ic-posbottom strong:before{background:#CACACA;opacity:.7;content:' ';width:14px;height:2px;left:6px;top:7px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-posbottom strong>em{background:#CECECE;opacity:.7;width:27px;height:11px;left:6px;top:13px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-posbottom strong>em:after,.epsilon-ui-option .kiwi-ic-posbottom strong>em:before{width:6px;height:2px;display:block;position:absolute;content:' ';opacity:1;top:13px}.epsilon-ui-option .kiwi-ic-posbottom strong>em:before{background:#1F4091;left:0}.epsilon-ui-option .kiwi-ic-posbottom strong>em:after{background:#00BFF3;left:7px}.epsilon-ui-option .kiwi-ic-posbottom strong>em+em{background:#CECECE;opacity:1;content:' ';width:5px;height:15px;left:35px;top:13px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-posboth strong:before,.epsilon-ui-option .kiwi-ic-posbottom strong>em+em:after,.epsilon-ui-option .kiwi-ic-posbottom strong>em+em:before{content:' ';height:2px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-posbottom strong>em+em:before{background:#E03D1C;opacity:1;width:6px;left:-15px;top:13px}.epsilon-ui-option .kiwi-ic-posbottom strong>em+em:after{background:#81B636;opacity:1;width:6px;left:-8px;top:13px}.epsilon-ui-option .kiwi-ic-posboth strong:before{background:#CACACA;opacity:.7;width:14px;left:6px;top:7px}.epsilon-ui-option .kiwi-ic-posboth strong>em{background:#CECECE;opacity:.7;width:27px;height:7px;left:6px;top:17px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-posboth strong>em.top:after,.epsilon-ui-option .kiwi-ic-posboth strong>em.top:before{width:6px;height:2px;top:-4px;display:block;position:absolute;opacity:1;content:' '}.epsilon-ui-option .kiwi-ic-posboth strong>em.top:before{background:#1F4091;left:0}.epsilon-ui-option .kiwi-ic-posboth strong>em.top:after{background:#00BFF3;left:7px}.epsilon-ui-option .kiwi-ic-posboth strong>em.top+em.top{background:#CECECE;opacity:1;content:' ';width:5px;height:15px;left:35px;top:13px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-posboth strong>em.bottom:after,.epsilon-ui-option .kiwi-ic-posboth strong>em.bottom:before,.epsilon-ui-option .kiwi-ic-posboth strong>em.top+em.top:after,.epsilon-ui-option .kiwi-ic-posboth strong>em.top+em.top:before{width:6px;height:2px;opacity:1;content:' ';display:block;position:absolute}.epsilon-ui-option .kiwi-ic-posboth strong>em.top+em.top:before{background:#E03D1C;left:-15px;top:0}.epsilon-ui-option .kiwi-ic-posboth strong>em.top+em.top:after{background:#81B636;left:-8px;top:0}.epsilon-ui-option .kiwi-ic-posboth strong>em.bottom:before{background:#1F4091;left:0;top:9px}.epsilon-ui-option .kiwi-ic-posboth strong>em.bottom:after{background:#00BFF3;left:7px;top:9px}.epsilon-ui-option .kiwi-ic-posboth strong>em.bottom+em.bottom{background:#CECECE;opacity:1;content:' ';width:5px;height:15px;left:35px;top:13px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-posboth strong>em.bottom+em.bottom:before{background:#E03D1C;opacity:1;content:' ';width:6px;height:2px;left:-15px;top:13px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-posboth strong>em.bottom+em.bottom:after{background:#81B636;opacity:1;content:' ';width:6px;height:2px;left:-8px;top:13px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-postop strong:before{background:#CACACA;opacity:.7;content:' ';width:14px;height:2px;left:6px;top:7px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-postop strong>em{background:#CECECE;opacity:.7;width:27px;height:11px;left:6px;top:17px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-postop strong>em:after,.epsilon-ui-option .kiwi-ic-postop strong>em:before{width:6px;height:2px;top:-4px;opacity:1;content:' ';position:absolute;display:block}.epsilon-ui-option .kiwi-ic-postop strong>em:before{background:#1F4091;left:0}.epsilon-ui-option .kiwi-ic-postop strong>em:after{background:#00BFF3;left:7px}.epsilon-ui-option .kiwi-ic-postop strong>em+em{background:#CECECE;opacity:1;content:' ';width:5px;height:15px;left:35px;top:13px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-postop strong>em+em:before{background:#E03D1C;opacity:1;content:' ';width:6px;height:2px;left:-15px;top:0;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-postop strong>em+em:after{background:#81B636;opacity:1;content:' ';width:6px;height:2px;left:-8px;top:0;display:block;position:absolute}.epsilon-ui-toggle{background:0 0;width:52px;height:22px;position:relative;z-index:10}.epsilon-ui-toggle input{position:absolute;z-index:-1;opacity:0;left:0;top:0}.epsilon-ui-toggle input:focus~span{outline:#ccc dashed 1px;outline-offset:2px}.epsilon-ui-toggle span{display:block;width:52px;overflow:hidden;cursor:pointer;position:relative;height:22px;padding:0;line-height:19px;transition:background-color .2s ease-in;-webkit-border-radius:11px;-moz-border-radius:11px;border-radius:30px;background-color:#c4c4c4;-webkit-box-shadow:inset 0 2px 1px rgba(0,0,0,.11);-moz-box-shadow:inset 0 2px 1px rgba(0,0,0,.11);box-shadow:inset 0 2px 1px rgba(0,0,0,.11)}.epsilon-ui-toggle input+span:before{content:"";display:block;width:18px;height:18px;margin:0;position:absolute;top:2px;bottom:0;right:32px;background-color:#fff;-webkit-box-shadow:0 0 3px rgba(0,0,0,.1);-moz-box-shadow:0 0 3px rgba(0,0,0,.1);box-shadow:0 0 3px rgba(0,0,0,.1);-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px;transition:all .2s ease-in 0s}.epsilon-ui-toggle input+span:after{content:"OFF";display:block;color:#FFF;position:absolute;top:2px;bottom:2px;right:6px;font-size:11px;font-family:Arial}.sl-kiwi-tab-integration .themes,.ui-locked:after{display:inline-block}.epsilon-ui-toggle input:checked+span{background:#3CAF0E}.epsilon-ui-toggle input:checked+span:before{right:2px}.epsilon-ui-toggle input:checked+span:after{content:"ON";right:27px}.epsilon-ui-toggle input:focus+span,.epsilon-ui-toggle:hover input+span{background:#d4d4d4}.epsilon-ui-toggle input:focus:checked+span,.epsilon-ui-toggle:hover input:checked+span{background:#4fbf23}.ui-locked{position:relative}.ui-locked input[type=radio]:disabled{opacity:0}.ui-locked input:disabled~strong{background:0 0}.ui-locked:after{background:#F15B25;opacity:1;border:none;text-align:center;content:'\f160';font-family:dashicons;color:#fff;font-size:11px;position:absolute;bottom:2px;right:-25px;border-radius:50%;width:16px;height:16px;line-height:16px}.sl-kiwi-tab-integration .integration_box{height:330px;margin-top:15px;text-align:center;background:#FFF;position:relative;border:1px solid rgba(0,0,0,.1);float:left}.sl-kiwi-tab-integration .integration_box .recommended{background:#d25637;color:#FFF;text-transform:uppercase;height:28px;text-align:center;top:0;left:0;right:0;line-height:28px;font-size:10px;position:absolute;font-weight:700}.sl-kiwi-tab-integration .integration_box img{width:155px;height:155px;padding-top:50px;margin:0 auto 15px;display:block;border:none}.sl-kiwi-tab-integration .integration_box.theme img{width:100%;height:initial;padding:0;margin:0;display:block}.sl-kiwi-tab-integration .integration_box.theme .info{display:block;position:absolute;bottom:48px;left:0;right:0;height:35px;background:rgba(0,0,0,.5);line-height:35px}.sl-kiwi-tab-integration .integration_box.theme .info a{color:#fff;font-size:14px;font-family:'Open Sans'}.sl-kiwi-tab-integration .integration_box .action_bar{position:absolute;bottom:0;left:0;right:0;font-size:15px;font-weight:600;height:18px;margin:0;padding:15px 105px 15px 15px;-webkit-box-shadow:inset 0 1px 0 rgba(0,0,0,.1);box-shadow:inset 0 1px 0 rgba(0,0,0,.1);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;background:#fff;background:rgba(255,255,255,.65);text-align:left}.sl-kiwi-tab-integration .integration_box .action_bar.active{background:#23282d;color:#FFF}.sl-kiwi-tab-integration .integration_box .action_button{position:absolute;bottom:-1px;right:-1px;padding:9px 10px 10px;background:#f6f6f6;border:1px solid rgba(0,0,0,.1)}.sl-kiwi-tab-integration .integration_box .action_button.active{background:#2c2e2f;bottom:0;right:-1px;padding:9px 10px}.sl-kiwi-tab-integration.three-col .col{width:29.81%;margin-right:5%;margin-bottom:35px}.sl-kiwi-tab-integration.three-col .col:nth-child(3n+3){margin-right:0}.mce-ico.mce-i-dashicons.dashicons-twitter{font-family:dashicons}.mce-ico.mce-i-dashicons.dashicons-twitter:before{content:"\f301";color:#55ACEE}#update-nag,.update-nag{position:relative;z-index:10}#update-nag.kiwi-notice,.update-nag.kiwi-notice{width:95%}#update-nag.kiwi-notice p,.update-nag.kiwi-notice p{font-size:14px}.kiwi-title-has-tooltip h4{display:inline-block}.kiwi-tooltip-container{position:relative;display:inline-block}.kiwi-tooltip-container .dashicons{color:#0073aa}.kiwi-tooltip-container .tooltip-opener{cursor:pointer}.kiwi-tooltip-container .tooltip-opener:focus+.kiwi-notice-container,.kiwi-tooltip-container .tooltip-opener:hover+.kiwi-notice-container{display:block}.kiwi-tooltip-container .kiwi-notice-container{position:absolute;display:none;padding:10px;background:#0073aa;border-radius:3px;z-index:10;width:350px}.kiwi-tooltip-container .kiwi-notice-container p{color:#fff}.kicon-mix:before{content:"";background:url(../img/mix.png) center center no-repeat;background-size:contain;display:block;position:absolute;width:100%;height:30px;left:0;right:0;top:0;bottom:0}.kiwi-nw-mix{position:relative}a.kiwi-nw-mix{background:#ff8226;vertical-align:bottom}ul[data-style=fit] a.kiwi-nw-mix{display:inline-block!important;width:100%}#sl-kiwi p.submit{text-align:right}#sl-kiwi p.submit input{padding:10px 25px;height:auto}ul[data-style=center].shift a.kiwi-nw-mix{display:block!important;width:auto}.clear,.fixed:after{clear:both;display:block;visibility:hidden;height:0}ul[data-id=networks_ordering_floating_bar].pill a.kiwi-nw-mix .kicon-mix:before{top:50%;-webkit-transform:translateY(-50%);-moz-transform:translateY(-50%);-ms-transform:translateY(-50%);-o-transform:translateY(-50%);transform:translateY(-50%)}.fixed:after{font-size:0;content:" "}.clear{overflow:hidden;width:0}
|
assets/css/frontend.css
CHANGED
@@ -63,6 +63,7 @@ ul.kiwi-article-bar.kiwi-article-bar-fit li {
|
|
63 |
padding: 0;
|
64 |
margin: 0;
|
65 |
overflow: visible;
|
|
|
66 |
}
|
67 |
ul.kiwi-article-bar.kiwi-article-bar-fit li a {
|
68 |
min-width: initial;
|
@@ -230,6 +231,7 @@ ul.kiwi-floating-bar.bottom > li:hover > .network-label {
|
|
230 |
ul.kiwi-floating-bar.bottom li {
|
231 |
display: inline-block;
|
232 |
margin: 0;
|
|
|
233 |
}
|
234 |
ul.kiwi-floating-bar.pill a:first-of-type {
|
235 |
border-radius: 50%;
|
@@ -330,13 +332,11 @@ ul.kiwi-floating-bar.pill.bottom > li:hover .network-label {
|
|
330 |
background: #499b06;
|
331 |
color: #fff;
|
332 |
}
|
333 |
-
|
334 |
-
|
335 |
-
display: none;
|
336 |
-
}
|
337 |
}
|
338 |
@media (min-width: 768px) {
|
339 |
-
.kiwi-
|
340 |
display: inline-block;
|
341 |
}
|
342 |
}
|
@@ -412,3 +412,50 @@ ul.kiwi-floating-bar.pill.bottom > li:hover .network-label {
|
|
412 |
color: #4EAEF8;
|
413 |
font-size: 15px;
|
414 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
63 |
padding: 0;
|
64 |
margin: 0;
|
65 |
overflow: visible;
|
66 |
+
vertical-align: bottom;
|
67 |
}
|
68 |
ul.kiwi-article-bar.kiwi-article-bar-fit li a {
|
69 |
min-width: initial;
|
231 |
ul.kiwi-floating-bar.bottom li {
|
232 |
display: inline-block;
|
233 |
margin: 0;
|
234 |
+
vertical-align: bottom;
|
235 |
}
|
236 |
ul.kiwi-floating-bar.pill a:first-of-type {
|
237 |
border-radius: 50%;
|
332 |
background: #499b06;
|
333 |
color: #fff;
|
334 |
}
|
335 |
+
.kiwi-article-bar .kiwi-nw-whatsapp.kiwi-visible-desktop {
|
336 |
+
display: inline-block;
|
|
|
|
|
337 |
}
|
338 |
@media (min-width: 768px) {
|
339 |
+
.kiwi-floating-bar .kiwi-nw-whatsapp.kiwi-visible-desktop, .kiwi-floating-bar .kiwi-nw-whatsapp.kiwi-visible-desktop + a[data-class] {
|
340 |
display: inline-block;
|
341 |
}
|
342 |
}
|
412 |
color: #4EAEF8;
|
413 |
font-size: 15px;
|
414 |
}
|
415 |
+
|
416 |
+
.kicon-mix:before {
|
417 |
+
content: "";
|
418 |
+
background: url(../img/mix.png) center center no-repeat;
|
419 |
+
background-size: contain;
|
420 |
+
display: block;
|
421 |
+
position: absolute;
|
422 |
+
width: 100%;
|
423 |
+
height: 100%;
|
424 |
+
left: 0;
|
425 |
+
right: 0;
|
426 |
+
top: 0;
|
427 |
+
bottom: 0;
|
428 |
+
}
|
429 |
+
|
430 |
+
.kiwi-article-bar .kiwi-nw-mix, .kiwi-floating-bar .kiwi-nw-mix {
|
431 |
+
background: #ff8226;
|
432 |
+
}
|
433 |
+
|
434 |
+
.kiwi-article-bar [class*=kiwi-nw-] {
|
435 |
+
position: relative;
|
436 |
+
}
|
437 |
+
|
438 |
+
a.kiwi-nw-mix {
|
439 |
+
display: inline-block !important;
|
440 |
+
vertical-align: bottom;
|
441 |
+
width: 100%;
|
442 |
+
}
|
443 |
+
|
444 |
+
ul[data-style="center"].shift a.kiwi-nw-mix {
|
445 |
+
display: block !important;
|
446 |
+
width: auto;
|
447 |
+
}
|
448 |
+
|
449 |
+
ul[data-style="fit"] a.kiwi-nw-mix {
|
450 |
+
display: inline-block !important;
|
451 |
+
width: 100%;
|
452 |
+
}
|
453 |
+
|
454 |
+
ul[data-id="networks_ordering_floating_bar"].pill a.kiwi-nw-mix .kicon-mix:before {
|
455 |
+
top: 50%;
|
456 |
+
-webkit-transform: translateY(-50%);
|
457 |
+
-moz-transform: translateY(-50%);;
|
458 |
+
-ms-transform: translateY(-50%);;
|
459 |
+
-o-transform: translateY(-50%);;
|
460 |
+
transform: translateY(-50%);;
|
461 |
+
}
|
assets/css/frontend.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
ul.kiwi-article-bar{line-height:30px;padding:0;margin:0;vertical-align:top;text-align:center}ul.kiwi-article-bar li{list-style-type:none;transition:max-width .2s,margin .2s;overflow:hidden;margin:0 5px 0 0;display:inline-block;padding:0 5px}ul.kiwi-article-bar li [class*=kiwi-nw-] .fa{line-height:28px}ul.kiwi-article-bar li:before{content:'';display:none!important}ul.kiwi-article-bar li a{display:block;height:30px;line-height:30px;padding:0 5px;min-width:80px;transition:all .3s;-webkit-box-shadow:none;box-shadow:none;font-size:13px;box-sizing:border-box}ul.kiwi-article-bar li a:active,ul.kiwi-article-bar li a:focus,ul.kiwi-article-bar li a:hover{text-decoration:none;-webkit-box-shadow:none;box-shadow:none}ul.kiwi-article-bar.leaf a{border-radius:12px 0}ul.kiwi-article-bar.pill a{border-radius:15px}ul.kiwi-article-bar.shift a{-ms-transform:skewX(-15deg);-webkit-transform:skewX(-15deg);transform:skewX(-15deg)}ul.kiwi-article-bar.shift span{-ms-transform:skewX(15deg);-webkit-transform:skewX(15deg);transform:skewX(15deg)}ul.kiwi-article-bar.kiwi-article-bar-fit{display:table;width:100%;table-layout:fixed}ul.kiwi-article-bar.kiwi-article-bar-fit li{display:table-cell;padding:0;margin:0;overflow:visible}ul.kiwi-article-bar.kiwi-article-bar-fit li a{min-width:initial}ul.kiwi-article-bar.kiwi-article-bar-fit.leaf a{width:120%}ul.kiwi-article-bar.kiwi-article-bar-fit.leaf li:last-of-type a{width:100%}ul.kiwi-article-bar.kiwi-article-bar-fit.pill{border-radius:15px;overflow:hidden}ul.kiwi-article-bar.kiwi-article-bar-fit.pill a{width:120%;border-radius:15px 0 0 15px}ul.kiwi-article-bar.kiwi-article-bar-fit.pill li:last-child a{width:100%;border-radius:15px}@media (min-width:768px){ul.kiwi-article-bar.kiwi-article-bar-fit.icons-visible-desktop .kiwi-visible-desktop{display:block}}ul.kiwi-floating-bar{position:fixed;list-style-type:none;margin-bottom:0;z-index:9999;padding:0;-webkit-transition:all .2s linear;transition:all .2s linear}ul.kiwi-floating-bar [class*=kiwi-nw-] .fa{line-height:39px}ul.kiwi-floating-bar li{list-style-type:none;padding:0;margin:0;text-align:center;position:relative}ul.kiwi-floating-bar li:last-of-type{margin-bottom:0}ul.kiwi-floating-bar li:before{content:'';display:none!important}ul.kiwi-floating-bar li .network-label{position:absolute;opacity:0;visibility:hidden;z-index:0;font-size:13px;-webkit-transition:all .5s cubic-bezier(.075,.82,.165,1);transition:all .5s cubic-bezier(.075,.82,.165,1)}ul.kiwi-floating-bar li a:first-of-type{display:block;height:40px;line-height:40px;padding:0 5px;min-width:40px;transition:all .3s;-webkit-box-shadow:none;box-shadow:none;font-size:16px;box-sizing:border-box;position:relative;z-index:1}ul.kiwi-floating-bar li a:first-of-type:active,ul.kiwi-floating-bar li a:first-of-type:focus,ul.kiwi-floating-bar li a:first-of-type:hover{text-decoration:none;-webkit-box-shadow:none;box-shadow:none}ul.kiwi-floating-bar .kiwi-share-count{display:none}ul.kiwi-floating-bar.left{left:-50px;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);margin:0;border-top-right-radius:6px;border-bottom-right-radius:6px}ul.kiwi-floating-bar.left .network-label{top:0;left:-56px;height:100%;line-height:40px;width:95px;text-align:left;padding:0 10px}ul.kiwi-floating-bar.left>li:hover>.network-label{opacity:1;left:40px;visibility:visible;-webkit-transition:all .5s cubic-bezier(.075,.82,.165,1);transition:all .5s cubic-bezier(.075,.82,.165,1)}ul.kiwi-floating-bar.right{right:-50px;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);margin:0;border-top-left-radius:6px;border-bottom-left-radius:6px}ul.kiwi-floating-bar.right .network-label{top:0;right:-56px;height:100%;line-height:40px;width:95px;text-align:left;padding:0 10px}ul.kiwi-floating-bar.right>li:hover>.network-label{opacity:1;right:40px;visibility:visible;-webkit-transition:all .5s cubic-bezier(.075,.82,.165,1);transition:all .5s cubic-bezier(.075,.82,.165,1)}ul.kiwi-floating-bar.bottom{bottom:-50px;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);margin:0;line-height:0;border-top-right-radius:6px;border-top-left-radius:6px}ul.kiwi-floating-bar.bottom .network-label{bottom:0;left:0;height:100%;line-height:18px;width:95px;text-align:center;padding:10px 5px;visibility:hidden;transform:rotate(90deg);transform-origin:40% 6%}ul.kiwi-floating-bar.bottom>li:hover>.network-label{opacity:1;visibility:visible;bottom:59px;-webkit-transition:all .5s cubic-bezier(.075,.82,.165,1);transition:all .5s cubic-bezier(.075,.82,.165,1)}ul.kiwi-floating-bar.bottom li{display:inline-block;margin:0}ul.kiwi-floating-bar.pill a:first-of-type{border-radius:50%}ul.kiwi-floating-bar.pill.bottom>li .network-label,ul.kiwi-floating-bar.pill.right>li .network-label{border-bottom-left-radius:25px;border-top-left-radius:25px}ul.kiwi-floating-bar.pill.left>li .network-label{border-top-right-radius:25px;border-bottom-right-radius:25px;padding-left:25px;width:120px;left:5px}ul.kiwi-floating-bar.pill.left>li:hover .network-label{left:20px}ul.kiwi-floating-bar.pill.right>li .network-label{padding-right:25px;width:120px;right:5px}ul.kiwi-floating-bar.pill.right>li:hover .network-label{right:20px}ul.kiwi-floating-bar.pill.bottom>li:hover .network-label{bottom:42px}.kiwi-article-bar [class*=kiwi-nw-],.kiwi-floating-bar [class*=kiwi-nw-]{-webkit-transition:all .2s;transition:all .2s;color:#fff}.kiwi-article-bar [class*=kiwi-nw-]:focus,.kiwi-article-bar [class*=kiwi-nw-]:hover,.kiwi-floating-bar [class*=kiwi-nw-]:focus,.kiwi-floating-bar [class*=kiwi-nw-]:hover{-webkit-transition:all .2s;transition:all .2s}.kiwi-article-bar .kiwi-nw-facebook,.kiwi-floating-bar .kiwi-nw-facebook{background:#3B5998}.kiwi-article-bar .kiwi-nw-facebook:focus,.kiwi-article-bar .kiwi-nw-facebook:hover,.kiwi-floating-bar .kiwi-nw-facebook:focus,.kiwi-floating-bar .kiwi-nw-facebook:hover{background:#1b4199;color:#fff}.kiwi-article-bar .kiwi-nw-twitter,.kiwi-floating-bar .kiwi-nw-twitter{background:#4EAEF8}.kiwi-article-bar .kiwi-nw-twitter:focus,.kiwi-article-bar .kiwi-nw-twitter:hover,.kiwi-floating-bar .kiwi-nw-twitter:focus,.kiwi-floating-bar .kiwi-nw-twitter:hover{background:#1193f7;color:#fff}.kiwi-article-bar .kiwi-nw-google-plus,.kiwi-floating-bar .kiwi-nw-google-plus{background:#DB4437}.kiwi-article-bar .kiwi-nw-google-plus:focus,.kiwi-article-bar .kiwi-nw-google-plus:hover,.kiwi-floating-bar .kiwi-nw-google-plus:focus,.kiwi-floating-bar .kiwi-nw-google-plus:hover{background:#db2615;color:#fff}.kiwi-article-bar .kiwi-nw-pinterest,.kiwi-floating-bar .kiwi-nw-pinterest{background:#BD081C}.kiwi-article-bar .kiwi-nw-pinterest:focus,.kiwi-article-bar .kiwi-nw-pinterest:hover,.kiwi-floating-bar .kiwi-nw-pinterest:focus,.kiwi-floating-bar .kiwi-nw-pinterest:hover{background:#770107;color:#fff}.kiwi-article-bar .kiwi-nw-fintel,.kiwi-floating-bar .kiwi-nw-fintel{background:#087515}.kiwi-article-bar .kiwi-nw-linkedin,.kiwi-floating-bar .kiwi-nw-linkedin{background:#1A85BC}.kiwi-article-bar .kiwi-nw-linkedin:focus,.kiwi-article-bar .kiwi-nw-linkedin:hover,.kiwi-floating-bar .kiwi-nw-linkedin:focus,.kiwi-floating-bar .kiwi-nw-linkedin:hover{background:#006aa8;color:#fff}.kiwi-article-bar .kiwi-nw-reddit,.kiwi-floating-bar .kiwi-nw-reddit{background:#FF4500}.kiwi-article-bar .kiwi-nw-reddit:focus,.kiwi-article-bar .kiwi-nw-reddit:hover,.kiwi-floating-bar .kiwi-nw-reddit:focus,.kiwi-floating-bar .kiwi-nw-reddit:hover{background:#e22500;color:#fff}.kiwi-article-bar .kiwi-nw-email,.kiwi-floating-bar .kiwi-nw-email{background:#4D9159}.kiwi-article-bar .kiwi-nw-email:focus,.kiwi-article-bar .kiwi-nw-email:hover,.kiwi-floating-bar .kiwi-nw-email:focus,.kiwi-floating-bar .kiwi-nw-email:hover{background:#0e9126;color:#fff}.kiwi-article-bar .kiwi-nw-whatsapp,.kiwi-floating-bar .kiwi-nw-whatsapp{background:#0DC143}.kiwi-article-bar .kiwi-nw-whatsapp:focus,.kiwi-article-bar .kiwi-nw-whatsapp:hover,.kiwi-floating-bar .kiwi-nw-whatsapp:focus,.kiwi-floating-bar .kiwi-nw-whatsapp:hover{background:#499b06;color:#fff}@media (min-width:768px){.kiwi-article-bar .kiwi-nw-whatsapp,.kiwi-floating-bar .kiwi-nw-whatsapp{display:none}.kiwi-article-bar .kiwi-nw-whatsapp.kiwi-visible-desktop,.kiwi-floating-bar .kiwi-nw-whatsapp.kiwi-visible-desktop{display:inline-block}}.kiwi-article-bar .kiwi-nw-telegram,.kiwi-floating-bar .kiwi-nw-telegram{background:#179CDE}.kiwi-article-bar .kiwi-nw-telegram:focus,.kiwi-article-bar .kiwi-nw-telegram:hover,.kiwi-floating-bar .kiwi-nw-telegram:focus,.kiwi-floating-bar .kiwi-nw-telegram:hover{background:#008cea;color:#fff}.kiwi-article-bar .kiwi-nw-skype,.kiwi-floating-bar .kiwi-nw-skype{background:#009EE5}.kiwi-article-bar .kiwi-nw-skype:focus,.kiwi-article-bar .kiwi-nw-skype:hover,.kiwi-floating-bar .kiwi-nw-skype:focus,.kiwi-floating-bar .kiwi-nw-skype:hover{background:#008ae0;color:#fff}.kiwi-highlighter-content-area,.kiwi-highlighter-excerpt-area{position:relative}.kiwi-highlight-sharer{-webkit-box-shadow:0 2px 5px 0 rgba(0,0,0,.75);-moz-box-shadow:0 2px 5px 0 rgba(0,0,0,.75);box-shadow:0 2px 5px 0 rgba(0,0,0,.75);display:none;position:absolute}.kiwi-highlight-sharer .kiwi-nw-twitter{background:#4EAEF8;color:#fff;padding:5px 15px}.kiwi-highlight-sharer .kiwi-nw-twitter:focus,.kiwi-highlight-sharer .kiwi-nw-twitter:hover{background:#fff;color:#4EAEF8}.kiwi-click-to-tweet-content-area{border-radius:6px;border:1px solid #DDD;padding:15px;position:relative}.kiwi-click-to-tweet-content-area>a.kiwi-click-to-tweet-url{text-decoration:none;-webkit-box-shadow:none;box-shadow:none;font-size:21px;font-style:normal}.kiwi-click-to-tweet-content-area>a.kiwi-click-to-tweet-url:focus,.kiwi-click-to-tweet-content-area>a.kiwi-click-to-tweet-url:hover{text-decoration:none;-webkit-box-shadow:none;box-shadow:none}.kiwi-click-to-tweet-content-area>a.kiwi-click-to-tweet-url .kiwi-click-to-tweet .kiwi-click-to-tweet-text{position:relative;margin-bottom:25px;display:inline-block}.kiwi-click-to-tweet-content-area>a.kiwi-click-to-tweet-url .kiwi-click-to-tweet .kiwi-click-to-tweet-button{text-transform:uppercase;position:absolute;font-size:12px;font-style:normal;bottom:15px;right:15px}.kiwi-click-to-tweet-content-area>a.kiwi-click-to-tweet-url .kiwi-click-to-tweet .kiwi-click-to-tweet-button i{margin-left:5px;color:#4EAEF8;font-size:15px}
|
1 |
+
ul.kiwi-article-bar{line-height:30px;padding:0;margin:0;vertical-align:top;text-align:center}ul.kiwi-article-bar li{list-style-type:none;transition:max-width .2s,margin .2s;overflow:hidden;margin:0 5px 0 0;display:inline-block;padding:0 5px}ul.kiwi-article-bar li [class*=kiwi-nw-] .fa{line-height:28px}ul.kiwi-article-bar li:before{content:'';display:none!important}ul.kiwi-article-bar li a{display:block;height:30px;line-height:30px;padding:0 5px;min-width:80px;transition:all .3s;-webkit-box-shadow:none;box-shadow:none;font-size:13px;box-sizing:border-box}ul.kiwi-article-bar li a:active,ul.kiwi-article-bar li a:focus,ul.kiwi-article-bar li a:hover{text-decoration:none;-webkit-box-shadow:none;box-shadow:none}ul.kiwi-article-bar.leaf a{border-radius:12px 0 12px 0}ul.kiwi-article-bar.pill a{border-radius:15px}ul.kiwi-article-bar.shift a{-ms-transform:skewX(-15deg);-webkit-transform:skewX(-15deg);transform:skewX(-15deg)}ul.kiwi-article-bar.shift span{-ms-transform:skewX(15deg);-webkit-transform:skewX(15deg);transform:skewX(15deg)}ul.kiwi-article-bar.kiwi-article-bar-fit{display:table;width:100%;table-layout:fixed}ul.kiwi-article-bar.kiwi-article-bar-fit li{display:table-cell;padding:0;margin:0;overflow:visible;vertical-align:bottom}ul.kiwi-article-bar.kiwi-article-bar-fit li a{min-width:initial}ul.kiwi-article-bar.kiwi-article-bar-fit.leaf a{width:120%}ul.kiwi-article-bar.kiwi-article-bar-fit.leaf li:last-of-type a{width:100%}ul.kiwi-article-bar.kiwi-article-bar-fit.pill{border-radius:15px;overflow:hidden}ul.kiwi-article-bar.kiwi-article-bar-fit.pill a{width:120%;border-radius:15px 0 0 15px}ul.kiwi-article-bar.kiwi-article-bar-fit.pill li:last-child a{width:100%;border-radius:15px}@media (min-width:768px){ul.kiwi-article-bar.kiwi-article-bar-fit.icons-visible-desktop .kiwi-visible-desktop{display:block}}ul.kiwi-floating-bar{position:fixed;list-style-type:none;margin-bottom:0;z-index:9999;padding:0;-webkit-transition:all .2s linear;transition:all .2s linear}ul.kiwi-floating-bar [class*=kiwi-nw-] .fa{line-height:39px}ul.kiwi-floating-bar li{list-style-type:none;padding:0;margin:0;text-align:center;position:relative}ul.kiwi-floating-bar li:last-of-type{margin-bottom:0}ul.kiwi-floating-bar li:before{content:'';display:none!important}ul.kiwi-floating-bar li .network-label{position:absolute;opacity:0;visibility:hidden;z-index:0;font-size:13px;-webkit-transition:all .5s cubic-bezier(.075,.82,.165,1);transition:all .5s cubic-bezier(.075,.82,.165,1)}ul.kiwi-floating-bar li a:first-of-type{display:block;height:40px;line-height:40px;padding:0 5px;min-width:40px;transition:all .3s;-webkit-box-shadow:none;box-shadow:none;font-size:16px;box-sizing:border-box;position:relative;z-index:1}ul.kiwi-floating-bar li a:first-of-type:active,ul.kiwi-floating-bar li a:first-of-type:focus,ul.kiwi-floating-bar li a:first-of-type:hover{text-decoration:none;-webkit-box-shadow:none;box-shadow:none}ul.kiwi-floating-bar .kiwi-share-count{display:none}ul.kiwi-floating-bar.left{left:-50px;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);margin:0;border-top-right-radius:6px;border-bottom-right-radius:6px}ul.kiwi-floating-bar.left .network-label{top:0;left:-56px;height:100%;line-height:40px;width:95px;text-align:left;padding:0 10px}ul.kiwi-floating-bar.left>li:hover>.network-label{opacity:1;left:40px;visibility:visible;-webkit-transition:all .5s cubic-bezier(.075,.82,.165,1);transition:all .5s cubic-bezier(.075,.82,.165,1)}ul.kiwi-floating-bar.right{right:-50px;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);margin:0;border-top-left-radius:6px;border-bottom-left-radius:6px}ul.kiwi-floating-bar.right .network-label{top:0;right:-56px;height:100%;line-height:40px;width:95px;text-align:left;padding:0 10px}ul.kiwi-floating-bar.right>li:hover>.network-label{opacity:1;right:40px;visibility:visible;-webkit-transition:all .5s cubic-bezier(.075,.82,.165,1);transition:all .5s cubic-bezier(.075,.82,.165,1)}ul.kiwi-floating-bar.bottom{bottom:-50px;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);margin:0;line-height:0;border-top-right-radius:6px;border-top-left-radius:6px}ul.kiwi-floating-bar.bottom .network-label{bottom:0;left:0;height:100%;line-height:18px;width:95px;text-align:center;padding:10px 5px;visibility:hidden;transform:rotate(90deg);transform-origin:40% 6%}ul.kiwi-floating-bar.bottom>li:hover>.network-label{opacity:1;visibility:visible;bottom:59px;-webkit-transition:all .5s cubic-bezier(.075,.82,.165,1);transition:all .5s cubic-bezier(.075,.82,.165,1)}ul.kiwi-floating-bar.bottom li{display:inline-block;margin:0;vertical-align:bottom}ul.kiwi-floating-bar.pill a:first-of-type{border-radius:50%}ul.kiwi-floating-bar.pill.left>li .network-label{border-top-right-radius:25px;border-bottom-right-radius:25px;padding-left:25px;width:120px;left:5px}ul.kiwi-floating-bar.pill.left>li:hover .network-label{left:20px}ul.kiwi-floating-bar.pill.right>li .network-label{border-top-left-radius:25px;border-bottom-left-radius:25px;padding-right:25px;width:120px;right:5px}ul.kiwi-floating-bar.pill.right>li:hover .network-label{right:20px}ul.kiwi-floating-bar.pill.bottom>li .network-label{border-bottom-left-radius:25px;border-top-left-radius:25px}ul.kiwi-floating-bar.pill.bottom>li:hover .network-label{bottom:42px}.kiwi-article-bar [class*=kiwi-nw-],.kiwi-floating-bar [class*=kiwi-nw-]{-webkit-transition:all .2s;transition:all .2s;color:#fff}.kiwi-article-bar [class*=kiwi-nw-]:focus,.kiwi-article-bar [class*=kiwi-nw-]:hover,.kiwi-floating-bar [class*=kiwi-nw-]:focus,.kiwi-floating-bar [class*=kiwi-nw-]:hover{-webkit-transition:all .2s;transition:all .2s}.kiwi-article-bar .kiwi-nw-facebook,.kiwi-floating-bar .kiwi-nw-facebook{background:#3b5998}.kiwi-article-bar .kiwi-nw-facebook:focus,.kiwi-article-bar .kiwi-nw-facebook:hover,.kiwi-floating-bar .kiwi-nw-facebook:focus,.kiwi-floating-bar .kiwi-nw-facebook:hover{background:#1b4199;color:#fff}.kiwi-article-bar .kiwi-nw-twitter,.kiwi-floating-bar .kiwi-nw-twitter{background:#4eaef8}.kiwi-article-bar .kiwi-nw-twitter:focus,.kiwi-article-bar .kiwi-nw-twitter:hover,.kiwi-floating-bar .kiwi-nw-twitter:focus,.kiwi-floating-bar .kiwi-nw-twitter:hover{background:#1193f7;color:#fff}.kiwi-article-bar .kiwi-nw-google-plus,.kiwi-floating-bar .kiwi-nw-google-plus{background:#db4437}.kiwi-article-bar .kiwi-nw-google-plus:focus,.kiwi-article-bar .kiwi-nw-google-plus:hover,.kiwi-floating-bar .kiwi-nw-google-plus:focus,.kiwi-floating-bar .kiwi-nw-google-plus:hover{background:#db2615;color:#fff}.kiwi-article-bar .kiwi-nw-pinterest,.kiwi-floating-bar .kiwi-nw-pinterest{background:#bd081c}.kiwi-article-bar .kiwi-nw-pinterest:focus,.kiwi-article-bar .kiwi-nw-pinterest:hover,.kiwi-floating-bar .kiwi-nw-pinterest:focus,.kiwi-floating-bar .kiwi-nw-pinterest:hover{background:#770107;color:#fff}.kiwi-article-bar .kiwi-nw-fintel,.kiwi-floating-bar .kiwi-nw-fintel{background:#087515}.kiwi-article-bar .kiwi-nw-linkedin,.kiwi-floating-bar .kiwi-nw-linkedin{background:#1a85bc}.kiwi-article-bar .kiwi-nw-linkedin:focus,.kiwi-article-bar .kiwi-nw-linkedin:hover,.kiwi-floating-bar .kiwi-nw-linkedin:focus,.kiwi-floating-bar .kiwi-nw-linkedin:hover{background:#006aa8;color:#fff}.kiwi-article-bar .kiwi-nw-reddit,.kiwi-floating-bar .kiwi-nw-reddit{background:#ff4500}.kiwi-article-bar .kiwi-nw-reddit:focus,.kiwi-article-bar .kiwi-nw-reddit:hover,.kiwi-floating-bar .kiwi-nw-reddit:focus,.kiwi-floating-bar .kiwi-nw-reddit:hover{background:#e22500;color:#fff}.kiwi-article-bar .kiwi-nw-email,.kiwi-floating-bar .kiwi-nw-email{background:#4d9159}.kiwi-article-bar .kiwi-nw-email:focus,.kiwi-article-bar .kiwi-nw-email:hover,.kiwi-floating-bar .kiwi-nw-email:focus,.kiwi-floating-bar .kiwi-nw-email:hover{background:#0e9126;color:#fff}.kiwi-article-bar .kiwi-nw-whatsapp,.kiwi-floating-bar .kiwi-nw-whatsapp{background:#0dc143}.kiwi-article-bar .kiwi-nw-whatsapp:focus,.kiwi-article-bar .kiwi-nw-whatsapp:hover,.kiwi-floating-bar .kiwi-nw-whatsapp:focus,.kiwi-floating-bar .kiwi-nw-whatsapp:hover{background:#499b06;color:#fff}.kiwi-article-bar .kiwi-nw-whatsapp.kiwi-visible-desktop{display:inline-block}@media (min-width:768px){.kiwi-floating-bar .kiwi-nw-whatsapp.kiwi-visible-desktop,.kiwi-floating-bar .kiwi-nw-whatsapp.kiwi-visible-desktop+a[data-class]{display:inline-block}}.kiwi-article-bar .kiwi-nw-telegram,.kiwi-floating-bar .kiwi-nw-telegram{background:#179cde}.kiwi-article-bar .kiwi-nw-telegram:focus,.kiwi-article-bar .kiwi-nw-telegram:hover,.kiwi-floating-bar .kiwi-nw-telegram:focus,.kiwi-floating-bar .kiwi-nw-telegram:hover{background:#008cea;color:#fff}.kiwi-article-bar .kiwi-nw-skype,.kiwi-floating-bar .kiwi-nw-skype{background:#009ee5}.kiwi-article-bar .kiwi-nw-skype:focus,.kiwi-article-bar .kiwi-nw-skype:hover,.kiwi-floating-bar .kiwi-nw-skype:focus,.kiwi-floating-bar .kiwi-nw-skype:hover{background:#008ae0;color:#fff}.kiwi-highlighter-content-area,.kiwi-highlighter-excerpt-area{position:relative}.kiwi-highlight-sharer{-webkit-box-shadow:0 2px 5px 0 rgba(0,0,0,.75);-moz-box-shadow:0 2px 5px 0 rgba(0,0,0,.75);box-shadow:0 2px 5px 0 rgba(0,0,0,.75);display:none;position:absolute}.kiwi-highlight-sharer .kiwi-nw-twitter{background:#4eaef8;color:#fff;padding:5px 15px}.kiwi-highlight-sharer .kiwi-nw-twitter:focus,.kiwi-highlight-sharer .kiwi-nw-twitter:hover{background:#fff;color:#4eaef8}.kiwi-click-to-tweet-content-area{border-radius:6px;border:1px solid #ddd;padding:15px;position:relative}.kiwi-click-to-tweet-content-area>a.kiwi-click-to-tweet-url{text-decoration:none;-webkit-box-shadow:none;box-shadow:none;font-size:21px;font-style:normal}.kiwi-click-to-tweet-content-area>a.kiwi-click-to-tweet-url:focus,.kiwi-click-to-tweet-content-area>a.kiwi-click-to-tweet-url:hover{text-decoration:none;-webkit-box-shadow:none;box-shadow:none}.kiwi-click-to-tweet-content-area>a.kiwi-click-to-tweet-url .kiwi-click-to-tweet .kiwi-click-to-tweet-text{position:relative;margin-bottom:25px;display:inline-block}.kiwi-click-to-tweet-content-area>a.kiwi-click-to-tweet-url .kiwi-click-to-tweet .kiwi-click-to-tweet-button{text-transform:uppercase;position:absolute;font-size:12px;font-style:normal;bottom:15px;right:15px}.kiwi-click-to-tweet-content-area>a.kiwi-click-to-tweet-url .kiwi-click-to-tweet .kiwi-click-to-tweet-button i{margin-left:5px;color:#4eaef8;font-size:15px}.kicon-mix:before{content:"";background:url(../img/mix.png) center center no-repeat;background-size:contain;display:block;position:absolute;width:100%;height:100%;left:0;right:0;top:0;bottom:0}.kiwi-article-bar .kiwi-nw-mix,.kiwi-floating-bar .kiwi-nw-mix{background:#ff8226}.kiwi-article-bar [class*=kiwi-nw-]{position:relative}a.kiwi-nw-mix{display:inline-block!important;vertical-align:bottom;width:100%}ul[data-style=center].shift a.kiwi-nw-mix{display:block!important;width:auto}ul[data-style=fit] a.kiwi-nw-mix{display:inline-block!important;width:100%}ul[data-id=networks_ordering_floating_bar].pill a.kiwi-nw-mix .kicon-mix:before{top:50%;-webkit-transform:translateY(-50%);-moz-transform:translateY(-50%);-ms-transform:translateY(-50%);-o-transform:translateY(-50%);transform:translateY(-50%)}
|
assets/css/kiwi.amp.css
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*AMP design for social buttons*/
|
2 |
+
|
3 |
+
.kiwi-article-bar a[data-class="popup"] span:not(.kicon-mix) {
|
4 |
+
position:absolute;
|
5 |
+
top:50%;
|
6 |
+
transform:translateY(-50%);
|
7 |
+
left:0;
|
8 |
+
right:0;
|
9 |
+
margin:0 auto;
|
10 |
+
}
|
11 |
+
.kiwi-article-bar .kiwi-nw-whatsapp.kiwi-visible-desktop {
|
12 |
+
display:block;
|
13 |
+
}
|
14 |
+
ul.kiwi-article-bar li {
|
15 |
+
padding:0px;
|
16 |
+
margin:0px auto;
|
17 |
+
}
|
18 |
+
a.kiwi-nw-email {
|
19 |
+
display:flex !important;
|
20 |
+
flex-wrap:wrap;
|
21 |
+
align-content: center;
|
22 |
+
}
|
23 |
+
a.kiwi-nw-email span.kicon-envelope {
|
24 |
+
margin:0px auto;
|
25 |
+
}
|
assets/img/mix.png
ADDED
Binary file
|
assets/js/kiwi.js
CHANGED
@@ -132,7 +132,7 @@ var kiwi = {
|
|
132 |
* @param $
|
133 |
*/
|
134 |
tabs: function ($) {
|
135 |
-
$('.epsilon-ui-tabs a
|
136 |
|
137 |
if ( $(this).closest('li').hasClass('selected') ) {
|
138 |
return 0;
|
@@ -143,8 +143,8 @@ var kiwi = {
|
|
143 |
$(this).closest('ul').find('.selected').removeClass('selected');
|
144 |
$(this).closest('li').addClass('selected');
|
145 |
|
146 |
-
$('.sl-kiwi-content .epsilon-tab-active').removeClass('epsilon-tab-active');
|
147 |
-
$('.sl-kiwi-content .' + tab).addClass('epsilon-tab-active');
|
148 |
|
149 |
document.cookie = 'tab=' + tab;
|
150 |
$(document).trigger('KiwiTabChanged');
|
@@ -170,7 +170,7 @@ var kiwi = {
|
|
170 |
group : 'kiwi_registration',
|
171 |
option : 'license_key',
|
172 |
default: false,
|
173 |
-
value : $(this).parent().find('#
|
174 |
}
|
175 |
};
|
176 |
|
132 |
* @param $
|
133 |
*/
|
134 |
tabs: function ($) {
|
135 |
+
$('.epsilon-ui-tabs a').click(function () {
|
136 |
|
137 |
if ( $(this).closest('li').hasClass('selected') ) {
|
138 |
return 0;
|
143 |
$(this).closest('ul').find('.selected').removeClass('selected');
|
144 |
$(this).closest('li').addClass('selected');
|
145 |
|
146 |
+
$('.sl-kiwi-content .epsilon-tab-active').hide().removeClass('epsilon-tab-active');
|
147 |
+
$('.sl-kiwi-content .' + tab).show(700).addClass('epsilon-tab-active');
|
148 |
|
149 |
document.cookie = 'tab=' + tab;
|
150 |
$(document).trigger('KiwiTabChanged');
|
170 |
group : 'kiwi_registration',
|
171 |
option : 'license_key',
|
172 |
default: false,
|
173 |
+
value : $(this).parent().find('#kiwi_registration').val()
|
174 |
}
|
175 |
};
|
176 |
|
assets/js/kiwi.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
"use strict";var kiwi={loaded:0,interface:{saveChangesNotification:function(i){var t=i("#sl-kiwi"),e=t.find(".kiwi-notification-popup"),a=e.find("input"),n=t.find("form").find("#submit");t.find("input").on("change",function(){e.slideDown(300)}),a.on("click",function(){n.click()})},preloader:function(i){var t=i("#sl-kiwi").find(".overlay"),e=i('ul[data-id="networks_ordering_floating_bar"]');setTimeout(function(){t.find(".overlay-content").fadeOut(400,function(){t.removeClass("active").css({"z-index":0,bottom:"initial",right:"initial"}),e.css({right:"-46px",opacity:1,"z-index":1})})},1500)},colorFields:function(o){var i=o(".kiwi-styles .epsilon-ui-color input"),t=o(".kiwi-styles .epsilon-custom-colors .epsilon-ui-color input");o(".shift a");i.wpColorPicker(),o('input[name="kiwi_general_settings[styles_colors]"]:radio').change(function(){switch(o(this).val()){case"custom":o.each(t,function(){o(this).val(o(this).data("color-custom")).trigger("change")});break;case"monochrome":o.each(t,function(){o(this).val(o(this).data("color-monochrome")).trigger("change")});break;default:o.each(t,function(){o(this).val(o(this).data("color-original")).trigger("change")})}}),o.each(i,function(){var i=o(this).parents(".epsilon-ui-color"),a=i.find("em"),n=o(this),t=i.parent().parent().data("network");o(".shift").find(".kiwi-nw-"+t),n.wpColorPicker("color"),i.attr("data-prop");o(this).wpColorPicker({change:function(i,t){var e=n.wpColorPicker("color");a.html(e)}})});var a=o(".floating-bar-background input");a.length&&a.wpColorPicker({defaultColor:"#272F32",change:function(i,t){var e=a.wpColorPicker("color");o(".floating-bar-background").find("em").html(e)}}),kiwi.loaded+=1},toggleHelper:function(t){t(".epsilon-ui-option input").keypress(function(i){t(this).closest(".epsilon-ui-option").find(".epsilon-ui-overlay.active").length&&36<i.keyCode&&i.keyCode<41&&i.preventDefault()}),kiwi.loaded+=1},tabs:function(t){t('.epsilon-ui-tabs a:not([href*="admin.php?page=kiwi-upgrade"])').click(function(){if(t(this).closest("li").hasClass("selected"))return 0;var i=t(this).attr("data-tab");return t(this).closest("ul").find(".selected").removeClass("selected"),t(this).closest("li").addClass("selected"),t(".sl-kiwi-content .epsilon-tab-active").removeClass("epsilon-tab-active"),t(".sl-kiwi-content ."+i).addClass("epsilon-tab-active"),document.cookie="tab="+i,t(document).trigger("KiwiTabChanged"),!1}),kiwi.loaded+=1}},interactions:{registration:function(a){a(".kiwi-ajax-activation").on("click",function(i){i.preventDefault();var t={action:"kiwi_social_share_set_option",args:{group:"kiwi_registration",option:"license_key",default:!1,value:a(this).parent().find("#kiwi_pro_registration").val()}};jQuery.ajax({dataType:"json",type:"POST",url:ajaxurl,data:t,complete:function(i){i.responseText&&"Success"===i.responseText&&location.reload()}})}),a(".kiwi-ajax-registration-action").on("click",function(i){i.preventDefault();var t=a(this),e={action:"kiwi_social_share_edd_helper",args:{todo:a(this).attr("data-action")}};jQuery.ajax({dataType:"json",type:"POST",url:ajaxurl,data:e,complete:function(i){if(i.responseJSON.status)switch(i.responseJSON.message){case"active":t.attr("data-action","deactivate").addClass("button").removeClass("button-primary").val("Deactivate License");break;case"site_inactive":t.attr("data-action","activate").addClass("button-primary").removeClass("button").val("Activate License")}}})})},networks:function(t){t('.sl-kiwi-tab-networks .sl-kiwi-networks input[data-source="article-bar"]').on("click change",function(){var i=t(this).attr("data-list-item");t(this).is(":checked")?t('.sl-kiwi-dragdrop ul[data-id="networks_ordering"] li .'+i).closest("li").removeClass("sl-kiwi-item-remove").addClass("sl-kiwi-item-add"):t('.sl-kiwi-dragdrop ul[data-id="networks_ordering"] li .'+i).closest("li").removeClass("sl-kiwi-item-add").addClass("sl-kiwi-item-remove")}),t('.sl-kiwi-tab-networks .sl-kiwi-networks input[data-source="floating-bar"]').on("click change",function(){var i=t(this).attr("data-list-item");t(this).is(":checked")?t('.sl-kiwi-dragdrop ul[data-id="networks_ordering_floating_bar"] li .'+i).closest("li").removeClass("sl-kiwi-item-remove").addClass("sl-kiwi-item-add"):t('.sl-kiwi-dragdrop ul[data-id="networks_ordering_floating_bar"] li .'+i).closest("li").removeClass("sl-kiwi-item-add").addClass("sl-kiwi-item-remove")}),kiwi.loaded+=1},articleStyling:function(i){i('input[name="kiwi_general_settings[article_bar_style]"]:radio').change(function(){i(".sl-kiwi-dragdrop").find("[data-id='networks_ordering']").attr("data-style",this.value)})},toggles:function(t){t(".epsilon-ui-toggle input").click(function(){t(this).prop("checked")?t(this).val("on"):t(this).val("");var i=t(this).closest(".sl-kiwi-opt-group");t(this).is(":checked")?t(".epsilon-ui-overlay",i).removeClass("active"):t(".epsilon-ui-overlay",i).addClass("active")}),kiwi.loaded+=1},radioToggles:function(i){i(".sl-kiwi-radio-post-types .epsilon-ui-radio input").click(function(){"all"===i(this).val()?i(this).parent().parent().find(".epsilon-ui-checklist").slideUp():"custom"===i(this).val()&&i(this).parent().parent().find(".epsilon-ui-checklist").slideDown()}),i(".epsilon-ui-radio-toggle input").click(function(){"original"===i(this).val()?i(this).parents(".sl-kiwi-tab-networks").find(".epsilon-ui-overlay").addClass("active"):i(this).parents(".sl-kiwi-tab-networks").find(".epsilon-ui-overlay").removeClass("active")}),kiwi.loaded+=1},shapes:function(i){i('input[name="kiwi_general_settings[button_shape]"]:radio').change(function(){i(".sl-kiwi-dragdrop").find("[data-id='networks_ordering']").attr("class",this.value)}),i('input[name="kiwi_general_settings[button_shape_floating]"]:radio').change(function(){i(".sl-kiwi-dragdrop").find("[data-id='networks_ordering_floating_bar']").attr("class",this.value)}),kiwi.loaded+=1},allCheckbox:function(t){var e,i=t('input[name="kiwi_general_settings[networks_floating_bar][]"]'),a=t('input[name="kiwi_general_settings[networks_floating_bar][]"]:checked'),n=t('input[name="kiwi_general_settings[networks_article_bar][]"]'),o=t('input[name="kiwi_general_settings[networks_article_bar][]"]:checked');i.length===a.length&&t("#floating-bar-all").prop("checked",!0),n.length===o.length&&t("#social-bar-all").prop("checked",!0),t("#social-bar-all, #floating-bar-all").on("click",function(i){switch(t(this).attr("id")){case"floating-bar-all":e=t(this).prop("checked"),t('input[name="kiwi_general_settings[networks_floating_bar][]"]').prop("checked",e).change();break;default:e=t(this).prop("checked"),t('input[name="kiwi_general_settings[networks_article_bar][]"]').prop("checked",e).change()}})},sortable:function(o){o(".sl-kiwi-dragdrop ul[data-id='networks_ordering']").sortable({placeholder:"sl-kiwi-dragdrop-placeholder",stop:function(i,t){var a=[],e=o(this).attr("data-id");o('.sl-kiwi-dragdrop ul[data-id="networks_ordering"] li').each(function(i,t){var e=o(t).attr("data-item");a.push(e)});var n=a.join();o("#kiwi_"+e).val(n).trigger("change")},create:function(i,t){kiwi.loaded+=1}}).disableSelection()},upsellModalPage:function(l){var t=l(".kiwi-modal");l(".ui-locked, .epsilon-ui-locked, .epsilon-locked").on("click",function(i){t.fadeIn(200,function(){t.addClass("in")})}),l('input[name="kiwi_product_upsell[type]"]').on("change",function(){"business"===l(this).val()?l(".kiwi-modal").find(".company-group").fadeIn(300):(t.find(".company-group").fadeOut(300),t.find(".company-group input").val(""))}),l(".kiwi-modal .close-modal").on("click",function(i){i.preventDefault(),t.removeClass("in"),setTimeout(function(){t.fadeOut(200),t.find("#page-one").show(),t.find("#page-two").hide(),t.find(".modal-footer").show(),t.find(".modal-title").text(kiwi_locale.kiwi_step_one_title),t.find(".modal-subtitle").text(kiwi_locale.kiwi_step_one_subtitle)},200)}),l(".button-modal").on("click",function(i){if(i.preventDefault(),"modal-buy-now"===l(this).attr("data-action")){var t=l("#page-one"),e=l("#page-two"),a=l(".kiwi-modal .modal-footer"),n=l(".kiwi-modal .modal-header-content"),o=n.find(".modal-title"),s=n.find(".modal-subtitle");o.fadeOut(300,function(){o.text(kiwi_locale.kiwi_step_two_title),o.fadeIn(300)}),s.fadeOut(300,function(){s.text(kiwi_locale.kiwi_step_two_subtitle),s.fadeIn(300)}),a.fadeOut(300),t.fadeOut(300,function(){e.fadeIn(300)})}})},handleModalPageForm:function(o){o(".button-modal").on("click",function(i){if(i.preventDefault(),"continue-to-checkout"===o(this).attr("data-action")){var t={customer:{first_name:o('input[name="kiwi_product_upsell[first_name]"]').val(),last_name:o('input[name="kiwi_product_upsell[last_name]"]').val(),email:o('input[name="kiwi_product_upsell[email]"]').val(),vat:o('input[name="kiwi_product_upsell[vat]"]').val(),company_name:o('input[name="kiwi_product_upsell[company_name]"]').val()},product:{id:o('input[name="kiwi_product_upsell[product]"]').val(),options:{},quantity:"1"}},e=JSON.stringify(t),a=encodeURIComponent(btoa(e)),n=window.open("https://www.machothemes.com/checkout/?mthash="+a);window.focus&&n.focus()}})}},frontend:{modalPopup:function(s){s('a[data-class="popup"]').on("click",function(i){var t;i.preventDefault();var e=window.open(s(this).attr("href"),"","height=500,width=500");window.focus&&e.focus();var a,n=s(this).attr("data-network"),o=s(this).parent();return o.is("li")?(a=o.parent().attr("data-tracking-container"),t=kiwi.frontend.checkTracking(this)):o.is("blockquote")&&(a="click-to-tweet",t="true"===s(this).attr("data-tracking")),"function"==typeof ga&&!0===t&&ga("send","event","kiwi_social_media","kiwi_"+a+"_"+n+"_share"),!1})},highlighted:{start:0,end:0,url:null,title:null,content:null},highlightShare:function(o){var i=o(".kiwi-highlighter-excerpt-area, .kiwi-highlighter-content-area");o(".kiwi-highlight-sharer a").on("click",function(i){i.preventDefault();var t=kiwi.frontend.highlighted,e=null;kiwi.frontend.highlighted={},e=(e=this.href.replace("%url%",encodeURIComponent(t.url))).replace("%text%",encodeURIComponent(t.content)),window.open(e,"tweethighlight","width=575,height=430,toolbar=false,menubar=false,location=false,status=false");var a="true"===o(this).attr("data-tracking");if("function"==typeof ga&&!0===a){ga("send","event","kiwi_social_media","kiwi_highlight-to-tweet_twitter_share")}return o(".kiwi-highlight-sharer").css({display:"none"}),!1}),o("body").on("mousedown vmouseup",function(i){var t=o(i.target).parent(),e=o(".kiwi-highlight-sharer");t.hasClass("kiwi-highlight-sharer")||t.is("a")||e.is(":not(:hidden)")&&e.css({display:"none"})}),i.on("mousedown vmouseup",function(i){kiwi.frontend.highlighted.start=i.pageX;var t=o(".kiwi-highlight-sharer");t.is(":not(:hidden)")&&t.css({display:"none"})}),i.on("mouseup vmouseup",function(i){var t=kiwi.frontend.getSelected(),e=o(".kiwi-highlight-sharer");if(kiwi.frontend.highlighted.end=i.pageX,void 0!==t){var a={start:i.pageX,end:i.pageX,url:o(this).attr("data-url"),title:o(this).attr("data-title"),content:t},n=parseInt(Math.abs((kiwi.frontend.highlighted.start-kiwi.frontend.highlighted.end)/2));e.css({position:"absolute",left:i.pageX-n,top:i.pageY-50,display:"block"}),kiwi.frontend.highlighted=a}else e.css({display:"none"})}),document.addEventListener("selectionchange",function(){kiwi.frontend.getSelected()},!1)},getSelected:function(){var i=window.getSelection().toString();if(""!==i)return i},checkTracking:function(i){return"true"===jQuery(i).parents("ul").attr("data-tracking")},handleFloatingBarDisplay:function(i){var t,e=i(".kiwi-floating-bar");t=e.hasClass("bottom")?"bottom":e.hasClass("right")?"right":"left",setTimeout(function(){switch(t){case"bottom":e.css({bottom:0});break;case"right":e.css({right:0});break;default:e.css({left:0})}},300)}},init:function(i){kiwi.interface.tabs(i),kiwi.interface.toggleHelper(i),kiwi.interface.colorFields(i),kiwi.interface.saveChangesNotification(i),kiwi.interactions.toggles(i),kiwi.interactions.radioToggles(i),kiwi.interactions.networks(i),kiwi.interactions.shapes(i),kiwi.frontend.modalPopup(i),kiwi.interactions.sortable(i),kiwi.interactions.allCheckbox(i),kiwi.interactions.articleStyling(i);var t=setInterval(function(){8<=kiwi.loaded&&(i(document).trigger("KiwiObjectsLoaded"),clearInterval(t))},100)}};
|
1 |
+
"use strict";var kiwi={loaded:0,interface:{saveChangesNotification:function(i){var t=i("#sl-kiwi"),e=t.find(".kiwi-notification-popup"),i=e.find("input"),a=t.find("form").find("#submit");t.find("input").on("change",function(){e.slideDown(300)}),i.on("click",function(){a.click()})},preloader:function(i){var t=i("#sl-kiwi").find(".overlay"),e=i('ul[data-id="networks_ordering_floating_bar"]');setTimeout(function(){t.find(".overlay-content").fadeOut(400,function(){t.removeClass("active").css({"z-index":0,bottom:"initial",right:"initial"}),e.css({right:"-46px",opacity:1,"z-index":1})})},1500)},colorFields:function(o){var i=o(".kiwi-styles .epsilon-ui-color input"),t=o(".kiwi-styles .epsilon-custom-colors .epsilon-ui-color input");o(".shift a");i.wpColorPicker(),o('input[name="kiwi_general_settings[styles_colors]"]:radio').change(function(){switch(o(this).val()){case"custom":o.each(t,function(){o(this).val(o(this).data("color-custom")).trigger("change")});break;case"monochrome":o.each(t,function(){o(this).val(o(this).data("color-monochrome")).trigger("change")});break;default:o.each(t,function(){o(this).val(o(this).data("color-original")).trigger("change")})}}),o.each(i,function(){var i=o(this).parents(".epsilon-ui-color"),a=i.find("em"),n=o(this),t=i.parent().parent().data("network");o(".shift").find(".kiwi-nw-"+t),n.wpColorPicker("color"),i.attr("data-prop");o(this).wpColorPicker({change:function(i,t){var e=n.wpColorPicker("color");a.html(e)}})});var a=o(".floating-bar-background input");a.length&&a.wpColorPicker({defaultColor:"#272F32",change:function(i,t){var e=a.wpColorPicker("color");o(".floating-bar-background").find("em").html(e)}}),kiwi.loaded+=1},toggleHelper:function(t){t(".epsilon-ui-option input").keypress(function(i){t(this).closest(".epsilon-ui-option").find(".epsilon-ui-overlay.active").length&&36<i.keyCode&&i.keyCode<41&&i.preventDefault()}),kiwi.loaded+=1},tabs:function(t){t(".epsilon-ui-tabs a").click(function(){if(t(this).closest("li").hasClass("selected"))return 0;var i=t(this).attr("data-tab");return t(this).closest("ul").find(".selected").removeClass("selected"),t(this).closest("li").addClass("selected"),t(".sl-kiwi-content .epsilon-tab-active").hide().removeClass("epsilon-tab-active"),t(".sl-kiwi-content ."+i).show(700).addClass("epsilon-tab-active"),document.cookie="tab="+i,t(document).trigger("KiwiTabChanged"),!1}),kiwi.loaded+=1}},interactions:{registration:function(e){e(".kiwi-ajax-activation").on("click",function(i){i.preventDefault();i={action:"kiwi_social_share_set_option",args:{group:"kiwi_registration",option:"license_key",default:!1,value:e(this).parent().find("#kiwi_registration").val()}};jQuery.ajax({dataType:"json",type:"POST",url:ajaxurl,data:i,complete:function(i){i.responseText&&"Success"===i.responseText&&location.reload()}})}),e(".kiwi-ajax-registration-action").on("click",function(i){i.preventDefault();var t=e(this),i={action:"kiwi_social_share_edd_helper",args:{todo:e(this).attr("data-action")}};jQuery.ajax({dataType:"json",type:"POST",url:ajaxurl,data:i,complete:function(i){if(i.responseJSON.status)switch(i.responseJSON.message){case"active":t.attr("data-action","deactivate").addClass("button").removeClass("button-primary").val("Deactivate License");break;case"site_inactive":t.attr("data-action","activate").addClass("button-primary").removeClass("button").val("Activate License")}}})})},networks:function(t){t('.sl-kiwi-tab-networks .sl-kiwi-networks input[data-source="article-bar"]').on("click change",function(){var i=t(this).attr("data-list-item");t(this).is(":checked")?t('.sl-kiwi-dragdrop ul[data-id="networks_ordering"] li .'+i).closest("li").removeClass("sl-kiwi-item-remove").addClass("sl-kiwi-item-add"):t('.sl-kiwi-dragdrop ul[data-id="networks_ordering"] li .'+i).closest("li").removeClass("sl-kiwi-item-add").addClass("sl-kiwi-item-remove")}),t('.sl-kiwi-tab-networks .sl-kiwi-networks input[data-source="floating-bar"]').on("click change",function(){var i=t(this).attr("data-list-item");t(this).is(":checked")?t('.sl-kiwi-dragdrop ul[data-id="networks_ordering_floating_bar"] li .'+i).closest("li").removeClass("sl-kiwi-item-remove").addClass("sl-kiwi-item-add"):t('.sl-kiwi-dragdrop ul[data-id="networks_ordering_floating_bar"] li .'+i).closest("li").removeClass("sl-kiwi-item-add").addClass("sl-kiwi-item-remove")}),kiwi.loaded+=1},articleStyling:function(i){i('input[name="kiwi_general_settings[article_bar_style]"]:radio').change(function(){i(".sl-kiwi-dragdrop").find("[data-id='networks_ordering']").attr("data-style",this.value)})},toggles:function(t){t(".epsilon-ui-toggle input").click(function(){t(this).prop("checked")?t(this).val("on"):t(this).val("");var i=t(this).closest(".sl-kiwi-opt-group");t(this).is(":checked")?t(".epsilon-ui-overlay",i).removeClass("active"):t(".epsilon-ui-overlay",i).addClass("active")}),kiwi.loaded+=1},radioToggles:function(i){i(".sl-kiwi-radio-post-types .epsilon-ui-radio input").click(function(){"all"===i(this).val()?i(this).parent().parent().find(".epsilon-ui-checklist").slideUp():"custom"===i(this).val()&&i(this).parent().parent().find(".epsilon-ui-checklist").slideDown()}),i(".epsilon-ui-radio-toggle input").click(function(){"original"===i(this).val()?i(this).parents(".sl-kiwi-tab-networks").find(".epsilon-ui-overlay").addClass("active"):i(this).parents(".sl-kiwi-tab-networks").find(".epsilon-ui-overlay").removeClass("active")}),kiwi.loaded+=1},shapes:function(i){i('input[name="kiwi_general_settings[button_shape]"]:radio').change(function(){i(".sl-kiwi-dragdrop").find("[data-id='networks_ordering']").attr("class",this.value)}),i('input[name="kiwi_general_settings[button_shape_floating]"]:radio').change(function(){i(".sl-kiwi-dragdrop").find("[data-id='networks_ordering_floating_bar']").attr("class",this.value)}),kiwi.loaded+=1},allCheckbox:function(t){var e,i=t('input[name="kiwi_general_settings[networks_floating_bar][]"]'),a=t('input[name="kiwi_general_settings[networks_floating_bar][]"]:checked'),n=t('input[name="kiwi_general_settings[networks_article_bar][]"]'),o=t('input[name="kiwi_general_settings[networks_article_bar][]"]:checked');i.length===a.length&&t("#floating-bar-all").prop("checked",!0),n.length===o.length&&t("#social-bar-all").prop("checked",!0),t("#social-bar-all, #floating-bar-all").on("click",function(i){"floating-bar-all"===t(this).attr("id")?(e=t(this).prop("checked"),t('input[name="kiwi_general_settings[networks_floating_bar][]"]').prop("checked",e).change()):(e=t(this).prop("checked"),t('input[name="kiwi_general_settings[networks_article_bar][]"]').prop("checked",e).change())})},sortable:function(o){o(".sl-kiwi-dragdrop ul[data-id='networks_ordering']").sortable({placeholder:"sl-kiwi-dragdrop-placeholder",stop:function(i,t){var e=[],a=o(this).attr("data-id");o('.sl-kiwi-dragdrop ul[data-id="networks_ordering"] li').each(function(i,t){t=o(t).attr("data-item");e.push(t)});var n=e.join();o("#kiwi_"+a).val(n).trigger("change")},create:function(i,t){kiwi.loaded+=1}}).disableSelection()},upsellModalPage:function(s){var t=s(".kiwi-modal");s(".ui-locked, .epsilon-ui-locked, .epsilon-locked").on("click",function(i){t.fadeIn(200,function(){t.addClass("in")})}),s('input[name="kiwi_product_upsell[type]"]').on("change",function(){"business"===s(this).val()?s(".kiwi-modal").find(".company-group").fadeIn(300):(t.find(".company-group").fadeOut(300),t.find(".company-group input").val(""))}),s(".kiwi-modal .close-modal").on("click",function(i){i.preventDefault(),t.removeClass("in"),setTimeout(function(){t.fadeOut(200),t.find("#page-one").show(),t.find("#page-two").hide(),t.find(".modal-footer").show(),t.find(".modal-title").text(kiwi_locale.kiwi_step_one_title),t.find(".modal-subtitle").text(kiwi_locale.kiwi_step_one_subtitle)},200)}),s(".button-modal").on("click",function(i){var t,e,a,n,o;i.preventDefault(),"modal-buy-now"===s(this).attr("data-action")&&(t=s("#page-one"),e=s("#page-two"),a=s(".kiwi-modal .modal-footer"),i=s(".kiwi-modal .modal-header-content"),n=i.find(".modal-title"),o=i.find(".modal-subtitle"),n.fadeOut(300,function(){n.text(kiwi_locale.kiwi_step_two_title),n.fadeIn(300)}),o.fadeOut(300,function(){o.text(kiwi_locale.kiwi_step_two_subtitle),o.fadeIn(300)}),a.fadeOut(300),t.fadeOut(300,function(){e.fadeIn(300)}))})},handleModalPageForm:function(t){t(".button-modal").on("click",function(i){i.preventDefault(),"continue-to-checkout"===t(this).attr("data-action")&&(i={customer:{first_name:t('input[name="kiwi_product_upsell[first_name]"]').val(),last_name:t('input[name="kiwi_product_upsell[last_name]"]').val(),email:t('input[name="kiwi_product_upsell[email]"]').val(),vat:t('input[name="kiwi_product_upsell[vat]"]').val(),company_name:t('input[name="kiwi_product_upsell[company_name]"]').val()},product:{id:t('input[name="kiwi_product_upsell[product]"]').val(),options:{},quantity:"1"}},i=JSON.stringify(i),i=encodeURIComponent(btoa(i)),i=window.open("https://www.machothemes.com/checkout/?mthash="+i),window.focus&&i.focus())})}},frontend:{modalPopup:function(n){n('a[data-class="popup"]').on("click",function(i){var t;i.preventDefault();var e=window.open(n(this).attr("href"),"","height=500,width=500");window.focus&&e.focus();var a,i=n(this).attr("data-network"),e=n(this).parent();return e.is("li")?(a=e.parent().attr("data-tracking-container"),t=kiwi.frontend.checkTracking(this)):e.is("blockquote")&&(a="click-to-tweet",t="true"===n(this).attr("data-tracking")),"function"==typeof ga&&!0===t&&ga("send","event","kiwi_social_media","kiwi_"+a+"_"+i+"_share"),!1})},highlighted:{start:0,end:0,url:null,title:null,content:null},highlightShare:function(n){var i=n(".kiwi-highlighter-excerpt-area, .kiwi-highlighter-content-area");n(".kiwi-highlight-sharer a").on("click",function(i){i.preventDefault();var t=kiwi.frontend.highlighted,i=null;kiwi.frontend.highlighted={},i=(i=this.href.replace("%url%",encodeURIComponent(t.url))).replace("%text%",encodeURIComponent(t.content)),window.open(i,"tweethighlight","width=575,height=430,toolbar=false,menubar=false,location=false,status=false");i="true"===n(this).attr("data-tracking");return"function"==typeof ga&&!0==i&&ga("send","event","kiwi_social_media","kiwi_highlight-to-tweet_twitter_share"),n(".kiwi-highlight-sharer").css({display:"none"}),!1}),n("body").on("mousedown vmouseup",function(i){var t=n(i.target).parent(),i=n(".kiwi-highlight-sharer");t.hasClass("kiwi-highlight-sharer")||t.is("a")||i.is(":not(:hidden)")&&i.css({display:"none"})}),i.on("mousedown vmouseup",function(i){kiwi.frontend.highlighted.start=i.pageX;i=n(".kiwi-highlight-sharer");i.is(":not(:hidden)")&&i.css({display:"none"})}),i.on("mouseup vmouseup",function(i){var t,e=kiwi.frontend.getSelected(),a=n(".kiwi-highlight-sharer");kiwi.frontend.highlighted.end=i.pageX,void 0!==e?(t={start:i.pageX,end:i.pageX,url:n(this).attr("data-url"),title:n(this).attr("data-title"),content:e},e=parseInt(Math.abs((kiwi.frontend.highlighted.start-kiwi.frontend.highlighted.end)/2)),a.css({position:"absolute",left:i.pageX-e,top:i.pageY-50,display:"block"}),kiwi.frontend.highlighted=t):a.css({display:"none"})}),document.addEventListener("selectionchange",function(){kiwi.frontend.getSelected()},!1)},getSelected:function(){var i=window.getSelection().toString();if(""!==i)return i},checkTracking:function(i){return"true"===jQuery(i).parents("ul").attr("data-tracking")},handleFloatingBarDisplay:function(i){var t=i(".kiwi-floating-bar"),e=t.hasClass("bottom")?"bottom":t.hasClass("right")?"right":"left";setTimeout(function(){switch(e){case"bottom":t.css({bottom:0});break;case"right":t.css({right:0});break;default:t.css({left:0})}},300)}},init:function(i){kiwi.interface.tabs(i),kiwi.interface.toggleHelper(i),kiwi.interface.colorFields(i),kiwi.interface.saveChangesNotification(i),kiwi.interactions.toggles(i),kiwi.interactions.radioToggles(i),kiwi.interactions.networks(i),kiwi.interactions.shapes(i),kiwi.frontend.modalPopup(i),kiwi.interactions.sortable(i),kiwi.interactions.allCheckbox(i),kiwi.interactions.articleStyling(i);var t=setInterval(function(){8<=kiwi.loaded&&(i(document).trigger("KiwiObjectsLoaded"),clearInterval(t))},100)}};
|
includes/backend/parts/epsilon-tabs.php
CHANGED
@@ -5,38 +5,32 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
5 |
?>
|
6 |
|
7 |
<div class="epsilon-ui-tabs">
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
<?php echo esc_html__( 'Networks & Colors', 'kiwi-social-share' ); ?>
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
<?php echo esc_html__( 'Article bar', 'kiwi-social-share' ); ?>
|
17 |
-
|
18 |
-
|
19 |
<li class="<?php echo ( $hash === 'sl-kiwi-tab-floating-bar' ) ? 'selected' : ''; ?>">
|
20 |
<a href="#" data-tab="sl-kiwi-tab-floating-bar"><i class="dashicons dashicons-align-left"></i>
|
21 |
<?php echo esc_html__( 'Floating bar', 'kiwi-social-share' ); ?>
|
22 |
</a>
|
23 |
</li>
|
24 |
-
|
25 |
-
|
26 |
<?php echo esc_html__( 'Social Identity', 'kiwi-social-share' ); ?>
|
27 |
-
|
28 |
-
|
29 |
<li class="<?php echo ( $hash === 'sl-kiwi-tab-advanced' ) ? 'selected' : ''; ?>">
|
30 |
<a href="#" data-tab="sl-kiwi-tab-advanced"><i class="dashicons dashicons-admin-settings"></i>
|
31 |
<?php echo esc_html__( 'Advanced', 'kiwi-social-share' ); ?>
|
32 |
</a>
|
33 |
-
|
34 |
-
</li>
|
35 |
-
<li class="kiwi-upgrade-list">
|
36 |
-
<a href="<?php echo admin_url( 'admin.php?page=kiwi-upgrade' ) ?>" target="_blank" class="kiwi-upgrade-pro">
|
37 |
-
<?php echo esc_html__( 'Upgrade', 'kiwi-social-share' ); ?>
|
38 |
-
</a>
|
39 |
-
<?php get_bloginfo(); ?>
|
40 |
</li>
|
41 |
-
|
42 |
</div>
|
5 |
?>
|
6 |
|
7 |
<div class="epsilon-ui-tabs">
|
8 |
+
<ul>
|
9 |
+
<li class="<?php echo ( $hash === 'sl-kiwi-tab-networks' || empty( $hash ) ) ? 'selected' : ''; ?>">
|
10 |
+
<a href="#" data-tab="sl-kiwi-tab-networks"><i class="dashicons dashicons-laptop"></i>
|
11 |
<?php echo esc_html__( 'Networks & Colors', 'kiwi-social-share' ); ?>
|
12 |
+
</a>
|
13 |
+
</li>
|
14 |
+
<li class="<?php echo ( $hash === 'sl-kiwi-tab-article-bar' ) ? 'selected' : ''; ?>">
|
15 |
+
<a href="#" data-tab="sl-kiwi-tab-article-bar"><i class="dashicons dashicons-editor-insertmore"></i>
|
16 |
<?php echo esc_html__( 'Article bar', 'kiwi-social-share' ); ?>
|
17 |
+
</a>
|
18 |
+
</li>
|
19 |
<li class="<?php echo ( $hash === 'sl-kiwi-tab-floating-bar' ) ? 'selected' : ''; ?>">
|
20 |
<a href="#" data-tab="sl-kiwi-tab-floating-bar"><i class="dashicons dashicons-align-left"></i>
|
21 |
<?php echo esc_html__( 'Floating bar', 'kiwi-social-share' ); ?>
|
22 |
</a>
|
23 |
</li>
|
24 |
+
<li class="<?php echo ( $hash === 'sl-kiwi-tab-social-identity' ) ? 'selected' : ''; ?>">
|
25 |
+
<a href="#" data-tab="sl-kiwi-tab-socialIdentity"><i class="dashicons dashicons-share"></i>
|
26 |
<?php echo esc_html__( 'Social Identity', 'kiwi-social-share' ); ?>
|
27 |
+
</a>
|
28 |
+
</li>
|
29 |
<li class="<?php echo ( $hash === 'sl-kiwi-tab-advanced' ) ? 'selected' : ''; ?>">
|
30 |
<a href="#" data-tab="sl-kiwi-tab-advanced"><i class="dashicons dashicons-admin-settings"></i>
|
31 |
<?php echo esc_html__( 'Advanced', 'kiwi-social-share' ); ?>
|
32 |
</a>
|
33 |
+
<?php get_bloginfo();?>
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
</li>
|
35 |
+
</ul>
|
36 |
</div>
|
includes/backend/parts/kiwi-modal-popup.php
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
+
exit;
|
4 |
+
}
|
5 |
+
?>
|
includes/backend/parts/kiwi-networks-ordering.php
CHANGED
@@ -12,7 +12,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
12 |
class="<?php echo esc_attr( Kiwi_Social_Share_Helper::get_setting_value( 'button_shape', 'rect' ) ) ?>">
|
13 |
<?php foreach ( $networks as $network ) { ?>
|
14 |
<?php
|
15 |
-
if ( $network['locked'] ) {
|
16 |
continue;
|
17 |
}
|
18 |
?>
|
@@ -35,7 +35,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
35 |
<ul data-id="networks_ordering_floating_bar" class="<?php echo esc_attr( Kiwi_Social_Share_Helper::get_setting_value( 'button_shape_floating', 'rect' ) ) ?>">
|
36 |
<?php foreach ( $networks as $network ) { ?>
|
37 |
<?php
|
38 |
-
if ( $network['locked'] ) {
|
39 |
continue;
|
40 |
}
|
41 |
?>
|
12 |
class="<?php echo esc_attr( Kiwi_Social_Share_Helper::get_setting_value( 'button_shape', 'rect' ) ) ?>">
|
13 |
<?php foreach ( $networks as $network ) { ?>
|
14 |
<?php
|
15 |
+
if ( ! isset( $network['locked'] ) || $network['locked'] ) {
|
16 |
continue;
|
17 |
}
|
18 |
?>
|
35 |
<ul data-id="networks_ordering_floating_bar" class="<?php echo esc_attr( Kiwi_Social_Share_Helper::get_setting_value( 'button_shape_floating', 'rect' ) ) ?>">
|
36 |
<?php foreach ( $networks as $network ) { ?>
|
37 |
<?php
|
38 |
+
if ( ! isset( $network['locked'] ) || $network['locked'] ) {
|
39 |
continue;
|
40 |
}
|
41 |
?>
|
includes/backend/parts/kiwi-tab-advanced.php
CHANGED
@@ -44,15 +44,14 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
44 |
<?php echo esc_html__( 'All Pages', 'kiwi-social-share' ); ?>
|
45 |
</label>
|
46 |
|
47 |
-
<label class="epsilon-ui-radio ui-radio-inline
|
48 |
<input type="radio" id="kiwi_custom_meta_boxes_posttypes_b"
|
49 |
-
name="kiwi_general_settings[custom_meta_boxes_posttypes]"
|
50 |
value="custom" <?php echo ( $custom_meta_boxes_posttypes === 'custom' ) ? 'checked' : ''; ?>
|
51 |
/>
|
52 |
|
53 |
<strong></strong>
|
54 |
-
<?php echo esc_html__( 'Select post types', 'kiwi-social-share' ); ?>
|
55 |
-
<a href="<?php echo admin_url( 'admin.php?page=kiwi-upgrade' ) ?>" class="kiwi-upgrade-pro-url" target="_blank"></a>
|
56 |
|
57 |
</label>
|
58 |
|
@@ -99,7 +98,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
99 |
|
100 |
<div class="sl-kiwi-opt-description">
|
101 |
<h4><?php echo esc_html__( 'Click to tweet', 'kiwi-social-share' ) ?></h4>
|
102 |
-
<p><?php echo esc_html__( 'Add a "Click to tweet" button in WordPress editor.' ) ?></p>
|
103 |
</div>
|
104 |
|
105 |
<div class="clearfix"></div>
|
@@ -119,15 +118,14 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
119 |
<?php echo esc_html__( 'All Pages', 'kiwi-social-share' ); ?>
|
120 |
</label>
|
121 |
|
122 |
-
<label class="epsilon-ui-radio ui-radio-inline
|
123 |
<input type="radio" id="kiwi_click_to_tweet_posttypes_b"
|
124 |
-
name="kiwi_general_settings[click_to_tweet_posttypes]"
|
125 |
value="custom" <?php echo ( $click_to_tweet_posttypes === 'custom' ) ? 'checked' : ''; ?>
|
126 |
/>
|
127 |
|
128 |
<strong></strong>
|
129 |
<?php echo esc_html__( 'Select post types', 'kiwi-social-share' ); ?>
|
130 |
-
<a href="<?php echo admin_url( 'admin.php?page=kiwi-upgrade' ) ?>" class="kiwi-upgrade-pro-url" target="_blank"></a>
|
131 |
|
132 |
</label>
|
133 |
|
@@ -176,7 +174,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
176 |
|
177 |
<div class="sl-kiwi-opt-description">
|
178 |
<h4><?php echo esc_html__( 'Tweet selected text', 'kiwi-social-share' ) ?></h4>
|
179 |
-
<p><?php echo esc_html__( 'Allows tweeting the current selected text in the page.' ) ?></p>
|
180 |
</div>
|
181 |
|
182 |
<div class="clearfix"></div>
|
@@ -195,15 +193,14 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
195 |
<?php echo esc_html__( 'All Pages', 'kiwi-social-share' ); ?>
|
196 |
</label>
|
197 |
|
198 |
-
<label class="epsilon-ui-radio ui-radio-inline
|
199 |
<input type="radio" id="kiwi_highlight_to_tweet_posttypes_b"
|
200 |
-
name="kiwi_general_settings[highlight_to_tweet_posttypes]"
|
201 |
value="custom" <?php echo ( $highlight_to_tweet_posttypes === 'custom' ) ? 'checked' : ''; ?>
|
202 |
/>
|
203 |
|
204 |
<strong></strong>
|
205 |
<?php echo esc_html__( 'Select post types', 'kiwi-social-share' ); ?>
|
206 |
-
<a href="<?php echo admin_url( 'admin.php?page=kiwi-upgrade' ) ?>" class="kiwi-upgrade-pro-url" target="_blank"></a>
|
207 |
|
208 |
</label>
|
209 |
|
@@ -275,24 +272,4 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
275 |
</div>
|
276 |
</div>
|
277 |
|
278 |
-
<?php
|
279 |
-
$show_mobile_only = Kiwi_Social_Share_Helper::get_setting_value( 'mobile_only_sharing', false, 'kiwi_advanced_settings' );
|
280 |
-
?>
|
281 |
-
<div class="sl-kiwi-opt-group clearfix">
|
282 |
-
<div class="sl-kiwi-opt-toggle">
|
283 |
-
<div class="epsilon-ui-toggle">
|
284 |
-
<label>
|
285 |
-
<input type="checkbox" id="kiwi_mobile_only_sharing"
|
286 |
-
name="kiwi_advanced_settings[mobile_only_sharing]" <?php echo ! empty( $show_mobile_only ) ? 'checked' : ''; ?>
|
287 |
-
value="on"/>
|
288 |
-
<span></span>
|
289 |
-
</label>
|
290 |
-
</div>
|
291 |
-
</div>
|
292 |
-
|
293 |
-
<div class="sl-kiwi-opt-description fixed">
|
294 |
-
<h4><?php echo esc_html__( 'WhatsApp icon visible on desktop browsers', 'kiwi-social-share' ) ?></h4>
|
295 |
-
<p><?php echo esc_html__( 'Desktop browsers can\'t handle WhatsApp sharing correctly, you can enable/disable the visibility of the icon by toggling this option.', 'kiwi-social-share' ) ?></p>
|
296 |
-
</div>
|
297 |
-
</div>
|
298 |
</div>
|
44 |
<?php echo esc_html__( 'All Pages', 'kiwi-social-share' ); ?>
|
45 |
</label>
|
46 |
|
47 |
+
<label class="epsilon-ui-radio ui-radio-inline">
|
48 |
<input type="radio" id="kiwi_custom_meta_boxes_posttypes_b"
|
49 |
+
name="kiwi_general_settings[custom_meta_boxes_posttypes]"
|
50 |
value="custom" <?php echo ( $custom_meta_boxes_posttypes === 'custom' ) ? 'checked' : ''; ?>
|
51 |
/>
|
52 |
|
53 |
<strong></strong>
|
54 |
+
<?php echo esc_html__( 'Select post types', 'kiwi-social-share' ); ?>
|
|
|
55 |
|
56 |
</label>
|
57 |
|
98 |
|
99 |
<div class="sl-kiwi-opt-description">
|
100 |
<h4><?php echo esc_html__( 'Click to tweet', 'kiwi-social-share' ) ?></h4>
|
101 |
+
<p><?php echo esc_html__( 'Add a "Click to tweet" button in WordPress editor.', 'kiwi-social-share' ) ?></p>
|
102 |
</div>
|
103 |
|
104 |
<div class="clearfix"></div>
|
118 |
<?php echo esc_html__( 'All Pages', 'kiwi-social-share' ); ?>
|
119 |
</label>
|
120 |
|
121 |
+
<label class="epsilon-ui-radio ui-radio-inline">
|
122 |
<input type="radio" id="kiwi_click_to_tweet_posttypes_b"
|
123 |
+
name="kiwi_general_settings[click_to_tweet_posttypes]"
|
124 |
value="custom" <?php echo ( $click_to_tweet_posttypes === 'custom' ) ? 'checked' : ''; ?>
|
125 |
/>
|
126 |
|
127 |
<strong></strong>
|
128 |
<?php echo esc_html__( 'Select post types', 'kiwi-social-share' ); ?>
|
|
|
129 |
|
130 |
</label>
|
131 |
|
174 |
|
175 |
<div class="sl-kiwi-opt-description">
|
176 |
<h4><?php echo esc_html__( 'Tweet selected text', 'kiwi-social-share' ) ?></h4>
|
177 |
+
<p><?php echo esc_html__( 'Allows tweeting the current selected text in the page.', 'kiwi-social-share' ) ?></p>
|
178 |
</div>
|
179 |
|
180 |
<div class="clearfix"></div>
|
193 |
<?php echo esc_html__( 'All Pages', 'kiwi-social-share' ); ?>
|
194 |
</label>
|
195 |
|
196 |
+
<label class="epsilon-ui-radio ui-radio-inline">
|
197 |
<input type="radio" id="kiwi_highlight_to_tweet_posttypes_b"
|
198 |
+
name="kiwi_general_settings[highlight_to_tweet_posttypes]"
|
199 |
value="custom" <?php echo ( $highlight_to_tweet_posttypes === 'custom' ) ? 'checked' : ''; ?>
|
200 |
/>
|
201 |
|
202 |
<strong></strong>
|
203 |
<?php echo esc_html__( 'Select post types', 'kiwi-social-share' ); ?>
|
|
|
204 |
|
205 |
</label>
|
206 |
|
272 |
</div>
|
273 |
</div>
|
274 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
275 |
</div>
|
includes/backend/parts/kiwi-tab-article-bar.php
CHANGED
@@ -97,15 +97,14 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
97 |
<?php echo esc_html__( 'All Pages', 'kiwi-social-share' ); ?>
|
98 |
</label>
|
99 |
|
100 |
-
<label class="epsilon-ui-radio ui-radio-inline
|
101 |
<input type="radio" id="kiwi_share_buttons_posttypes_b"
|
102 |
-
name="kiwi_general_settings[share_buttons_posttypes]"
|
103 |
value="custom" <?php echo ( $share_buttons_posttypes === 'custom' ) ? 'checked' : ''; ?>
|
104 |
/>
|
105 |
|
106 |
<strong></strong>
|
107 |
<?php echo esc_html__( 'Select post types', 'kiwi-social-share' ); ?>
|
108 |
-
<a href="<?php echo admin_url( 'admin.php?page=kiwi-upgrade' ) ?>" class="kiwi-upgrade-pro-url" target="_blank"></a>
|
109 |
|
110 |
</label>
|
111 |
|
97 |
<?php echo esc_html__( 'All Pages', 'kiwi-social-share' ); ?>
|
98 |
</label>
|
99 |
|
100 |
+
<label class="epsilon-ui-radio ui-radio-inline">
|
101 |
<input type="radio" id="kiwi_share_buttons_posttypes_b"
|
102 |
+
name="kiwi_general_settings[share_buttons_posttypes]"
|
103 |
value="custom" <?php echo ( $share_buttons_posttypes === 'custom' ) ? 'checked' : ''; ?>
|
104 |
/>
|
105 |
|
106 |
<strong></strong>
|
107 |
<?php echo esc_html__( 'Select post types', 'kiwi-social-share' ); ?>
|
|
|
108 |
|
109 |
</label>
|
110 |
|
includes/backend/parts/kiwi-tab-floating-bar.php
CHANGED
@@ -85,15 +85,14 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
85 |
<?php echo esc_html__( 'All Pages', 'kiwi-social-share' ); ?>
|
86 |
</label>
|
87 |
|
88 |
-
<label class="epsilon-ui-radio ui-radio-inline
|
89 |
<input type="radio" id="kiwi_floating_panel_posttypes_b"
|
90 |
-
name="kiwi_general_settings[floating_panel_posttypes]"
|
91 |
value="custom" <?php echo ( $floating_panel_posttypes === 'custom' ) ? 'checked' : ''; ?>
|
92 |
/>
|
93 |
|
94 |
<strong></strong>
|
95 |
<?php echo esc_html__( 'Select post types', 'kiwi-social-share' ); ?>
|
96 |
-
<a href="<?php echo admin_url( 'admin.php?page=kiwi-upgrade' ) ?>" class="kiwi-upgrade-pro-url" target="_blank"></a>
|
97 |
|
98 |
</label>
|
99 |
|
85 |
<?php echo esc_html__( 'All Pages', 'kiwi-social-share' ); ?>
|
86 |
</label>
|
87 |
|
88 |
+
<label class="epsilon-ui-radio ui-radio-inline">
|
89 |
<input type="radio" id="kiwi_floating_panel_posttypes_b"
|
90 |
+
name="kiwi_general_settings[floating_panel_posttypes]"
|
91 |
value="custom" <?php echo ( $floating_panel_posttypes === 'custom' ) ? 'checked' : ''; ?>
|
92 |
/>
|
93 |
|
94 |
<strong></strong>
|
95 |
<?php echo esc_html__( 'Select post types', 'kiwi-social-share' ); ?>
|
|
|
96 |
|
97 |
</label>
|
98 |
|
includes/backend/parts/kiwi-tab-networks.php
CHANGED
@@ -21,27 +21,25 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
21 |
<?php echo esc_html__( 'Original', 'kiwi-social-share' ); ?>
|
22 |
</label>
|
23 |
|
24 |
-
<label class="epsilon-ui-radio epsilon-ui-radio-toggle ui-radio-inline
|
25 |
<input type="radio" id="kiwi_styles_colors_b"
|
26 |
name="kiwi_general_settings[styles_colors]"
|
27 |
-
|
28 |
value="monochrome"/>
|
29 |
|
30 |
<strong></strong>
|
31 |
<?php echo esc_html__( 'Monochrome', 'kiwi-social-share' ); ?>
|
32 |
-
<a href="<?php echo admin_url( 'admin.php?page=kiwi-upgrade' ) ?>" class="kiwi-upgrade-pro-url" target="_blank"></a>
|
33 |
|
34 |
</label>
|
35 |
|
36 |
-
<label class="epsilon-ui-radio epsilon-ui-radio-toggle ui-radio-inline
|
37 |
<input type="radio" id="kiwi_styles_colors_c"
|
38 |
name="kiwi_general_settings[styles_colors]"
|
39 |
-
|
40 |
value="custom"/>
|
41 |
|
42 |
<strong></strong>
|
43 |
<?php echo esc_html__( 'Custom', 'kiwi-social-share' ); ?>
|
44 |
-
<a href="<?php echo admin_url( 'admin.php?page=kiwi-upgrade' ) ?>" class="kiwi-upgrade-pro-url" target="_blank"></a>
|
45 |
|
46 |
</label>
|
47 |
</div>
|
@@ -64,7 +62,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
64 |
|
65 |
<ul>
|
66 |
<?php foreach ( $colors as $network => $props ) { ?>
|
67 |
-
<?php if ( $network === 'monochrome' ) {
|
68 |
continue;
|
69 |
} ?>
|
70 |
<li data-network="<?php echo esc_attr( $kiwi_networks[ $network ]['id'] ) ?>"
|
@@ -135,10 +133,6 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
135 |
type="checkbox"/>
|
136 |
<strong></strong>
|
137 |
</label>
|
138 |
-
<?php else: ?>
|
139 |
-
<label class="epsilon-ui-checkbox epsilon-locked">
|
140 |
-
<strong></strong>
|
141 |
-
</label>
|
142 |
<?php endif; ?>
|
143 |
</span>
|
144 |
|
@@ -153,17 +147,10 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
153 |
data-source="floating-bar" <?php echo in_array( 'floating-bar', $networks[ $network ]['checked'] ) ? 'checked' : '' ?>
|
154 |
type="checkbox"/>
|
155 |
<strong></strong>
|
156 |
-
</label>
|
157 |
-
<?php else: ?>
|
158 |
-
<label class="epsilon-ui-checkbox epsilon-locked">
|
159 |
-
<strong></strong>
|
160 |
-
</label>
|
161 |
<?php endif; ?>
|
162 |
</span>
|
163 |
|
164 |
-
<?php if ( $networks[ $network ]['locked'] ): ?>
|
165 |
-
<strong class="epsilon-ui-locked"><a href="<?php echo admin_url( 'admin.php?page=kiwi-upgrade' ) ?>" class="kiwi-upgrade-pro-url" target="_blank"></a><i class="dashicons dashicons-lock"></i></strong>
|
166 |
-
<?php endif; ?>
|
167 |
</li>
|
168 |
<?php } ?>
|
169 |
</ul>
|
21 |
<?php echo esc_html__( 'Original', 'kiwi-social-share' ); ?>
|
22 |
</label>
|
23 |
|
24 |
+
<label class="epsilon-ui-radio epsilon-ui-radio-toggle ui-radio-inline">
|
25 |
<input type="radio" id="kiwi_styles_colors_b"
|
26 |
name="kiwi_general_settings[styles_colors]"
|
27 |
+
<?php echo ( $styles_color === 'monochrome' ) ? 'checked' : ''; ?>
|
28 |
value="monochrome"/>
|
29 |
|
30 |
<strong></strong>
|
31 |
<?php echo esc_html__( 'Monochrome', 'kiwi-social-share' ); ?>
|
|
|
32 |
|
33 |
</label>
|
34 |
|
35 |
+
<label class="epsilon-ui-radio epsilon-ui-radio-toggle ui-radio-inline">
|
36 |
<input type="radio" id="kiwi_styles_colors_c"
|
37 |
name="kiwi_general_settings[styles_colors]"
|
38 |
+
<?php echo ( $styles_color === 'custom' ) ? 'checked' : ''; ?>
|
39 |
value="custom"/>
|
40 |
|
41 |
<strong></strong>
|
42 |
<?php echo esc_html__( 'Custom', 'kiwi-social-share' ); ?>
|
|
|
43 |
|
44 |
</label>
|
45 |
</div>
|
62 |
|
63 |
<ul>
|
64 |
<?php foreach ( $colors as $network => $props ) { ?>
|
65 |
+
<?php if ( $network === 'monochrome' || ! isset( $kiwi_networks[$network]['id'] ) ) {
|
66 |
continue;
|
67 |
} ?>
|
68 |
<li data-network="<?php echo esc_attr( $kiwi_networks[ $network ]['id'] ) ?>"
|
133 |
type="checkbox"/>
|
134 |
<strong></strong>
|
135 |
</label>
|
|
|
|
|
|
|
|
|
136 |
<?php endif; ?>
|
137 |
</span>
|
138 |
|
147 |
data-source="floating-bar" <?php echo in_array( 'floating-bar', $networks[ $network ]['checked'] ) ? 'checked' : '' ?>
|
148 |
type="checkbox"/>
|
149 |
<strong></strong>
|
150 |
+
</label>
|
|
|
|
|
|
|
|
|
151 |
<?php endif; ?>
|
152 |
</span>
|
153 |
|
|
|
|
|
|
|
154 |
</li>
|
155 |
<?php } ?>
|
156 |
</ul>
|
includes/backend/parts/kiwi-tab-social-identity.php
CHANGED
@@ -37,4 +37,16 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
37 |
<input type="text" id="kiwi-facebook-app-secret" name="kiwi_social_identities[facebook_app_secret]"
|
38 |
value="<?php echo esc_attr( Kiwi_Social_Share_Helper::get_setting_value( 'facebook_app_secret', '', 'kiwi_social_identities' ) ); ?>"/>
|
39 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
</div>
|
37 |
<input type="text" id="kiwi-facebook-app-secret" name="kiwi_social_identities[facebook_app_secret]"
|
38 |
value="<?php echo esc_attr( Kiwi_Social_Share_Helper::get_setting_value( 'facebook_app_secret', '', 'kiwi_social_identities' ) ); ?>"/>
|
39 |
</div>
|
40 |
+
<!-- start-pro-version -->
|
41 |
+
<div class="clearfix">
|
42 |
+
<label for="kiwi-bitly-access-token"> <?php echo esc_html__( 'Bitly Access Token', 'kiwi-social-share' ); ?> </label>
|
43 |
+
<input type="text" id="kiwi-bitly-access-token" name="kiwi_social_identities[bitly_access_token]"
|
44 |
+
value="<?php echo esc_attr( Kiwi_Social_Share_Helper::get_setting_value( 'bitly_access_token', '', 'kiwi_social_identities' ) ); ?>"/>
|
45 |
+
</div>
|
46 |
+
<div class="clearfix">
|
47 |
+
<label for="kiwi-bitly-access-login"> <?php echo esc_html__( 'Bitly Access Login', 'kiwi-social-share' ); ?> </label>
|
48 |
+
<input type="text" id="kiwi-bitly-access-login" name="kiwi_social_identities[bitly_access_login]"
|
49 |
+
value="<?php echo esc_attr( Kiwi_Social_Share_Helper::get_setting_value( 'bitly_access_login', '', 'kiwi_social_identities' ) ); ?>"/>
|
50 |
+
</div>
|
51 |
+
<!-- end-pro-version -->
|
52 |
</div>
|
includes/frontend/social-bars/class-kiwi-social-share-view-article-bar.php
CHANGED
@@ -1,150 +1,190 @@
|
|
1 |
<?php
|
2 |
-
if (
|
3 |
-
|
4 |
}
|
5 |
|
6 |
/**
|
7 |
* Class Kiwi_Social_Share_View_Article_Bar
|
8 |
*/
|
9 |
-
final class Kiwi_Social_Share_View_Article_Bar extends Kiwi_Social_Share_View implements Kiwi_Social_Share_Interface_Frontend
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
<?php
|
2 |
+
if (!defined('ABSPATH')) {
|
3 |
+
exit;
|
4 |
}
|
5 |
|
6 |
/**
|
7 |
* Class Kiwi_Social_Share_View_Article_Bar
|
8 |
*/
|
9 |
+
final class Kiwi_Social_Share_View_Article_Bar extends Kiwi_Social_Share_View implements Kiwi_Social_Share_Interface_Frontend
|
10 |
+
{
|
11 |
+
|
12 |
+
/**
|
13 |
+
* @var bool
|
14 |
+
*/
|
15 |
+
private $stop = false;
|
16 |
+
|
17 |
+
/**
|
18 |
+
* @var string
|
19 |
+
*/
|
20 |
+
private $style;
|
21 |
+
|
22 |
+
/**
|
23 |
+
* Kiwi_Social_Share_Article_Bar constructor.
|
24 |
+
*/
|
25 |
+
public function __construct()
|
26 |
+
{
|
27 |
+
parent::__construct();
|
28 |
+
$enable = Kiwi_Social_Share_Helper::get_setting_value('share_buttons', false);
|
29 |
+
|
30 |
+
if (!$enable) {
|
31 |
+
return;
|
32 |
+
}
|
33 |
+
|
34 |
+
if (empty($this->networks['article_bar'])) {
|
35 |
+
return;
|
36 |
+
}
|
37 |
+
|
38 |
+
$this->style = Kiwi_Social_Share_Helper::get_setting_value('article_bar_style', 'center');
|
39 |
+
switch ($this->style) {
|
40 |
+
case 'fit':
|
41 |
+
$this->style = 'kiwi-article-bar-fit';
|
42 |
+
break;
|
43 |
+
default:
|
44 |
+
$this->style = 'kiwi-article-bar-center';
|
45 |
+
break;
|
46 |
+
}
|
47 |
+
|
48 |
+
$this->position = Kiwi_Social_Share_Helper::get_setting_value('share_buttons_location', 'bottom');
|
49 |
+
|
50 |
+
// render on the front
|
51 |
+
add_action('wp', array($this, 'check_front_page'));
|
52 |
+
add_action('wp', array($this, 'kiwi_check_if_amp'));
|
53 |
+
add_action('wp', array($this, 'check_if_woocommerce_product'));
|
54 |
+
add_action('the_content', array($this, 'display_bar'));
|
55 |
+
add_action('amp_post_template_css', 'kiwi_check_if_amp', 11);
|
56 |
+
}
|
57 |
+
|
58 |
+
/**
|
59 |
+
* We need to make sure we don't render the article bar on a static front page ( some templates load custom post
|
60 |
+
* types as sections )
|
61 |
+
*/
|
62 |
+
public function check_front_page()
|
63 |
+
{
|
64 |
+
$this->stop = is_front_page();
|
65 |
+
}
|
66 |
+
|
67 |
+
/*
|
68 |
+
* If AMP add extra CSS for formatting
|
69 |
+
*/
|
70 |
+
|
71 |
+
public function kiwi_check_if_amp()
|
72 |
+
{
|
73 |
+
if (function_exists('is_amp_endpoint') && is_amp_endpoint()) {
|
74 |
+
?>
|
75 |
+
<link rel="stylesheet" href="<?php echo KIWI_SOCIAL_SHARE_URL; ?>/assets/css/frontend.min.css">
|
76 |
+
<link rel="stylesheet" href="<?php echo KIWI_SOCIAL_SHARE_URL; ?>/assets/vendors/icomoon/style.css">
|
77 |
+
<link rel="stylesheet" href="<?php echo KIWI_SOCIAL_SHARE_URL; ?>/assets/css/kiwi.amp.css">
|
78 |
+
<?php
|
79 |
+
}
|
80 |
+
}
|
81 |
+
|
82 |
+
/*
|
83 |
+
* Remove displaying article share bar in products so it won't display two rows of buttons. The function is attached to woocommerce_share hook
|
84 |
+
*/
|
85 |
+
|
86 |
+
public function check_if_woocommerce_product()
|
87 |
+
{
|
88 |
+
if (get_post_type(get_the_id()) == 'product') {
|
89 |
+
remove_action('the_content', array($this, 'display_bar'));
|
90 |
+
add_action('woocommerce_share', array($this, 'display_bar'));
|
91 |
+
return true;
|
92 |
+
}
|
93 |
+
}
|
94 |
+
|
95 |
+
/**
|
96 |
+
* Output contents in frontend
|
97 |
+
*
|
98 |
+
* @param string $content
|
99 |
+
*
|
100 |
+
* @return string
|
101 |
+
*/
|
102 |
+
public function display_bar($content = '')
|
103 |
+
{
|
104 |
+
/* start-pro-version */
|
105 |
+
if (is_array($this->post_types) && !in_array(get_post_type(), $this->post_types)) {
|
106 |
+
return $content;
|
107 |
+
}
|
108 |
+
/* end-pro-version */
|
109 |
+
|
110 |
+
if ((!is_single() && !is_page()) || $this->stop) {
|
111 |
+
return $content;
|
112 |
+
}
|
113 |
+
|
114 |
+
$kiwi = Kiwi_Social_Share::instance();
|
115 |
+
wp_enqueue_style($kiwi->_token . '-frontend');
|
116 |
+
wp_enqueue_script($kiwi->_token . '-frontend');
|
117 |
+
|
118 |
+
$bar = $this->generate_frontend_bar();
|
119 |
+
switch ($this->position) {
|
120 |
+
case 'top':
|
121 |
+
return $bar . $content;
|
122 |
+
break;
|
123 |
+
case 'both':
|
124 |
+
return $bar . $content . $bar;
|
125 |
+
break;
|
126 |
+
default:
|
127 |
+
return $content . $bar;
|
128 |
+
break;
|
129 |
+
}
|
130 |
+
}
|
131 |
+
|
132 |
+
/**
|
133 |
+
* Render the display bar
|
134 |
+
*
|
135 |
+
* Allow theme customization for the article bar using the following filters:
|
136 |
+
* * kiwi_before_article_bar
|
137 |
+
* * kiwi_before_first_article_item
|
138 |
+
* * kiwi_after_last_article_item
|
139 |
+
* * kiwi_after_article_bar
|
140 |
+
* * kiwi_article_bar_list_custom_class
|
141 |
+
*/
|
142 |
+
public function generate_frontend_bar()
|
143 |
+
{
|
144 |
+
$output = '';
|
145 |
+
$additional = '';
|
146 |
+
$class = implode(' ', $this->container_class);
|
147 |
+
$class .= ' ' . $this->style;
|
148 |
+
$class .= ' ' . apply_filters('kiwi_article_bar_list_custom_class', '');
|
149 |
+
$output .= wp_kses_post(apply_filters('kiwi_before_article_bar', ''));
|
150 |
+
|
151 |
+
$tracking = '';
|
152 |
+
if ($this->tracking) {
|
153 |
+
$tracking = ' data-tracking="true" data-tracking-container="article-bar" ';
|
154 |
+
}
|
155 |
+
|
156 |
+
$output .= '<ul class="kiwi-article-bar ' . esc_attr($class . $additional) . '"' . $tracking . '>';
|
157 |
+
$output .= wp_kses_post(apply_filters('kiwi_before_first_article_bar_item', ''));
|
158 |
+
|
159 |
+
foreach ($this->networks['article_bar'] as $network) {
|
160 |
+
$class = $this->generate_class_name($network);
|
161 |
+
if (!class_exists($class)) {
|
162 |
+
continue;
|
163 |
+
}
|
164 |
+
$t = new $class();
|
165 |
+
$t = $t->generate_output();
|
166 |
+
if (!empty($t)) {
|
167 |
+
$output .= '<li>';
|
168 |
+
/**
|
169 |
+
* Social buttons will implement this interface :
|
170 |
+
* Kiwi_Social_Share_Interface_Social::generate_output
|
171 |
+
*/
|
172 |
+
$output .= $t;
|
173 |
+
$output .= '</li>';
|
174 |
+
}
|
175 |
+
}
|
176 |
+
$output .= wp_kses_post(apply_filters('kiwi_after_last_article_bar_item', ''));
|
177 |
+
$output .= '</ul>';
|
178 |
+
|
179 |
+
$output .= wp_kses_post(apply_filters('kiwi_after_article_bar', ''));
|
180 |
+
|
181 |
+
|
182 |
+
if ($this->check_if_woocommerce_product() == true) {
|
183 |
+
echo $output;
|
184 |
+
} else {
|
185 |
+
return $output;
|
186 |
+
}
|
187 |
+
|
188 |
+
}
|
189 |
+
|
190 |
+
}
|
includes/frontend/social-bars/class-kiwi-social-share-view-floating-bar.php
CHANGED
@@ -61,6 +61,12 @@ final class Kiwi_Social_Share_View_Floating_Bar extends Kiwi_Social_Share_View i
|
|
61 |
*/
|
62 |
public function generate_frontend_bar() {
|
63 |
|
|
|
|
|
|
|
|
|
|
|
|
|
64 |
$kiwi = Kiwi_Social_Share::instance();
|
65 |
wp_enqueue_style( $kiwi->_token . '-frontend' );
|
66 |
wp_enqueue_script( $kiwi->_token . '-frontend' );
|
@@ -82,9 +88,9 @@ final class Kiwi_Social_Share_View_Floating_Bar extends Kiwi_Social_Share_View i
|
|
82 |
'facebook' => esc_html__( 'Facebook', 'kiwi-social-share' ),
|
83 |
'twitter' => esc_html__( 'Twitter', 'kiwi-social-share' ),
|
84 |
'email' => esc_html__( 'Email', 'kiwi-social-share' ),
|
85 |
-
'google-plus' => esc_html__( 'Google Plus', 'kiwi-social-share' ),
|
86 |
'linkedin' => esc_html__( 'LinkedIn', 'kiwi-social-share' ),
|
87 |
'fintel' => esc_html__( 'Fintel', 'kiwi-social-share' ),
|
|
|
88 |
'pinterest' => esc_html__( 'Pinterest', 'kiwi-social-share' ),
|
89 |
'reddit' => esc_html__( 'Reddit', 'kiwi-social-share' ),
|
90 |
'skype' => esc_html__( 'Skype', 'kiwi-social-share' ),
|
61 |
*/
|
62 |
public function generate_frontend_bar() {
|
63 |
|
64 |
+
/* start-pro-version */
|
65 |
+
if ( is_array( $this->post_types ) && ! in_array( get_post_type(), $this->post_types ) ) {
|
66 |
+
return false;
|
67 |
+
}
|
68 |
+
/* end-pro-version */
|
69 |
+
|
70 |
$kiwi = Kiwi_Social_Share::instance();
|
71 |
wp_enqueue_style( $kiwi->_token . '-frontend' );
|
72 |
wp_enqueue_script( $kiwi->_token . '-frontend' );
|
88 |
'facebook' => esc_html__( 'Facebook', 'kiwi-social-share' ),
|
89 |
'twitter' => esc_html__( 'Twitter', 'kiwi-social-share' ),
|
90 |
'email' => esc_html__( 'Email', 'kiwi-social-share' ),
|
|
|
91 |
'linkedin' => esc_html__( 'LinkedIn', 'kiwi-social-share' ),
|
92 |
'fintel' => esc_html__( 'Fintel', 'kiwi-social-share' ),
|
93 |
+
'mix' => esc_html__( 'Mix', 'kiwi-social-share' ),
|
94 |
'pinterest' => esc_html__( 'Pinterest', 'kiwi-social-share' ),
|
95 |
'reddit' => esc_html__( 'Reddit', 'kiwi-social-share' ),
|
96 |
'skype' => esc_html__( 'Skype', 'kiwi-social-share' ),
|
includes/frontend/social-bars/class-kiwi-social-share-view.php
CHANGED
@@ -110,8 +110,6 @@ abstract class Kiwi_Social_Share_View {
|
|
110 |
|
111 |
/**
|
112 |
* Sanitize the network name so we can call it as needed
|
113 |
-
* e.g. Kiwi_Social_Share_Social_Button_google-plus will throw error,
|
114 |
-
* turn it in -> Kiwi_Social_Share_Social_Button_google_plus
|
115 |
*
|
116 |
* @param string $str
|
117 |
*
|
110 |
|
111 |
/**
|
112 |
* Sanitize the network name so we can call it as needed
|
|
|
|
|
113 |
*
|
114 |
* @param string $str
|
115 |
*
|
includes/frontend/social-buttons/class-kiwi-social-share-social-button-email.php
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
+
exit;
|
4 |
+
}
|
5 |
+
|
6 |
+
/**
|
7 |
+
* Class Kiwi_Social_Share_Social_Button_Email
|
8 |
+
*/
|
9 |
+
final class Kiwi_Social_Share_Social_Button_Email extends Kiwi_Social_Share_Social_Button implements Kiwi_Social_Share_Interface_Social {
|
10 |
+
/**
|
11 |
+
* Kiwi_Social_Share_Social_Button_Email constructor.
|
12 |
+
*/
|
13 |
+
public function __construct() {
|
14 |
+
parent::__construct();
|
15 |
+
$this->platform = 'email';
|
16 |
+
$this->url = $this->build_url();
|
17 |
+
}
|
18 |
+
|
19 |
+
/**
|
20 |
+
* @return string
|
21 |
+
*/
|
22 |
+
public function build_url() {
|
23 |
+
$url = $this->get_current_page_url( $this->post_id );
|
24 |
+
/* start-pro-version */
|
25 |
+
if ( $this->short_url !== NULL && $this->short_url != false) {
|
26 |
+
$url = $this->short_url;
|
27 |
+
};
|
28 |
+
|
29 |
+
/* end-pro-version */
|
30 |
+
|
31 |
+
return 'mailto:?subject=' . strip_tags( get_the_title() ) . '&body=' . rawurlencode( $url );
|
32 |
+
}
|
33 |
+
|
34 |
+
/**
|
35 |
+
* @return string
|
36 |
+
*/
|
37 |
+
public function generate_output() {
|
38 |
+
return '<a class="' . esc_attr( $this->generate_anchor_class() ) . '" data-network="' . esc_attr( $this->platform ) . '" href="' . esc_url( $this->url ) . '" rel="nofollow">' . $this->generate_anchor_icon( 'envelope' ) . ' ' . $this->build_shared_count() . '</a>';
|
39 |
+
}
|
40 |
+
}
|
includes/frontend/social-buttons/class-kiwi-social-share-social-button-facebook.php
CHANGED
@@ -22,7 +22,13 @@ final class Kiwi_Social_Share_Social_Button_Facebook extends Kiwi_Social_Share_S
|
|
22 |
*/
|
23 |
public function build_url() {
|
24 |
$url = $this->get_current_page_url( $this->post_id );
|
|
|
|
|
|
|
|
|
|
|
25 |
|
|
|
26 |
|
27 |
return '//www.facebook.com/sharer.php?u=' . rawurlencode( $url );
|
28 |
}
|
22 |
*/
|
23 |
public function build_url() {
|
24 |
$url = $this->get_current_page_url( $this->post_id );
|
25 |
+
|
26 |
+
/* start-pro-version */
|
27 |
+
if ( $this->short_url !== NULL ) {
|
28 |
+
$url = $this->short_url;
|
29 |
+
};
|
30 |
|
31 |
+
/* end-pro-version */
|
32 |
|
33 |
return '//www.facebook.com/sharer.php?u=' . rawurlencode( $url );
|
34 |
}
|
includes/frontend/social-buttons/class-kiwi-social-share-social-button-google-plus.php
CHANGED
@@ -1,65 +1,4 @@
|
|
1 |
<?php
|
2 |
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
exit;
|
4 |
-
}
|
5 |
-
|
6 |
-
/**
|
7 |
-
* Class Kiwi_Social_Share_Social_Button_Google_Plus
|
8 |
-
*/
|
9 |
-
final class Kiwi_Social_Share_Social_Button_Google_Plus extends Kiwi_Social_Share_Social_Button implements Kiwi_Social_Share_Interface_Social {
|
10 |
-
/**
|
11 |
-
* Kiwi_Social_Share_Social_Button_Google_Plus constructor.
|
12 |
-
*/
|
13 |
-
public function __construct() {
|
14 |
-
parent::__construct();
|
15 |
-
$this->platform = 'google-plus';
|
16 |
-
$this->url = $this->build_url();
|
17 |
-
$this->api_url = 'https://clients6.google.com/rpc';
|
18 |
-
}
|
19 |
-
|
20 |
-
/**
|
21 |
-
* @return string
|
22 |
-
*/
|
23 |
-
public function build_url() {
|
24 |
-
$url = $this->get_current_page_url( $this->post_id );
|
25 |
-
return '//plus.google.com/share?url=' . rawurlencode( $url );
|
26 |
-
}
|
27 |
-
|
28 |
-
/**
|
29 |
-
* @return string
|
30 |
-
*/
|
31 |
-
public function generate_output() {
|
32 |
-
return '<a data-class="popup" data-network="' . esc_attr( $this->platform ) . '" class="' . esc_attr( $this->generate_anchor_class() ) . '" href="' . esc_url( $this->url ) . '" target="_blank" rel="nofollow">' . $this->generate_anchor_icon() . ' ' . $this->build_shared_count() . '</a>';
|
33 |
-
}
|
34 |
-
|
35 |
-
/**
|
36 |
-
* @return bool
|
37 |
-
*/
|
38 |
-
public function connect_to_api_url() {
|
39 |
-
$curl = curl_init();
|
40 |
-
curl_setopt( $curl, CURLOPT_URL, $this->api_url );
|
41 |
-
curl_setopt( $curl, CURLOPT_POST, 1 );
|
42 |
-
curl_setopt( $curl, CURLOPT_POSTFIELDS, '[{"method":"pos.plusones.get","id":"p","params":{"nolog":true,"id":"' . rawurlencode( get_the_permalink( get_the_ID() ) ) . '","source":"widget","userId":"@viewer","groupId":"@self"},"jsonrpc":"2.0","key":"p","apiVersion":"v1"}]' );
|
43 |
-
curl_setopt( $curl, CURLOPT_RETURNTRANSFER, true );
|
44 |
-
curl_setopt( $curl, CURLOPT_HTTPHEADER, array( 'Content-type: application/json' ) );
|
45 |
-
$curl_results = curl_exec( $curl );
|
46 |
-
curl_close( $curl );
|
47 |
-
|
48 |
-
$json = json_decode( $curl_results, true );
|
49 |
-
|
50 |
-
return $this->parse_api_response( $json );
|
51 |
-
}
|
52 |
-
|
53 |
-
/**
|
54 |
-
* @param $response
|
55 |
-
*
|
56 |
-
* @return bool
|
57 |
-
*/
|
58 |
-
public function parse_api_response( $response ) {
|
59 |
-
if ( ! isset( $response[0]['result'] ) ) {
|
60 |
-
return false;
|
61 |
-
}
|
62 |
-
|
63 |
-
return intval( $response[0]['result']['metadata']['globalCounts']['count'] );
|
64 |
-
}
|
65 |
}
|
1 |
<?php
|
2 |
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
exit;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
}
|
includes/frontend/social-buttons/class-kiwi-social-share-social-button-linkedin.php
CHANGED
@@ -27,6 +27,12 @@ final class Kiwi_Social_Share_Social_Button_LinkedIn extends Kiwi_Social_Share_S
|
|
27 |
}
|
28 |
|
29 |
$url = $this->get_current_page_url( $this->post_id );
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
|
31 |
return '//linkedin.com/shareArticle?mini=true&url=' . rawurlencode( $url ) . '&title=' . urlencode( $desc );
|
32 |
}
|
27 |
}
|
28 |
|
29 |
$url = $this->get_current_page_url( $this->post_id );
|
30 |
+
/* start-pro-version */
|
31 |
+
if ( $this->short_url !== NULL ) {
|
32 |
+
$url = $this->short_url;
|
33 |
+
};
|
34 |
+
|
35 |
+
/* end-pro-version */
|
36 |
|
37 |
return '//linkedin.com/shareArticle?mini=true&url=' . rawurlencode( $url ) . '&title=' . urlencode( $desc );
|
38 |
}
|
includes/frontend/social-buttons/class-kiwi-social-share-social-button-mix.php
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
+
exit;
|
4 |
+
}
|
5 |
+
|
6 |
+
/**
|
7 |
+
* Class Kiwi_Social_Share_Social_Button_Mix
|
8 |
+
*/
|
9 |
+
final class Kiwi_Social_Share_Social_Button_Mix extends Kiwi_Social_Share_Social_Button implements Kiwi_Social_Share_Interface_Social {
|
10 |
+
/**
|
11 |
+
* Kiwi_Social_Share_Social_Button_Mix constructor.
|
12 |
+
*/
|
13 |
+
public function __construct() {
|
14 |
+
parent::__construct();
|
15 |
+
$this->platform = 'mix';
|
16 |
+
$this->url = $this->build_url();
|
17 |
+
}
|
18 |
+
|
19 |
+
/**
|
20 |
+
* @return string
|
21 |
+
*/
|
22 |
+
public function build_url() {
|
23 |
+
$url = $this->get_current_page_url( $this->post_id );
|
24 |
+
return 'https://mix.com/add?url=' . rawurlencode( $url );
|
25 |
+
}
|
26 |
+
|
27 |
+
/**
|
28 |
+
* @return string
|
29 |
+
*/
|
30 |
+
public function generate_output() {
|
31 |
+
return '<a data-class="popup" data-network="' . esc_attr( $this->platform ) . '" class="' . esc_attr( $this->generate_anchor_class() ) . '" href="' . esc_url( $this->url ) . '" target="_blank" rel="nofollow">' . $this->generate_anchor_icon() . '</a>';
|
32 |
+
}
|
33 |
+
|
34 |
+
}
|
includes/frontend/social-buttons/class-kiwi-social-share-social-button-pinterest.php
CHANGED
@@ -39,6 +39,13 @@ final class Kiwi_Social_Share_Social_Button_Pinterest extends Kiwi_Social_Share_
|
|
39 |
}
|
40 |
|
41 |
$url = $this->get_current_page_url( $this->post_id );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
42 |
$str = '//pinterest.com/pin/create/button/?url=' . rawurlencode( $url ) . '&description=' . urlencode( $desc );
|
43 |
|
44 |
if ( ! empty( $media ) ) {
|
39 |
}
|
40 |
|
41 |
$url = $this->get_current_page_url( $this->post_id );
|
42 |
+
/* start-pro-version */
|
43 |
+
if ( $this->short_url !== NULL ) {
|
44 |
+
$url = $this->short_url;
|
45 |
+
};
|
46 |
+
|
47 |
+
/* end-pro-version */
|
48 |
+
|
49 |
$str = '//pinterest.com/pin/create/button/?url=' . rawurlencode( $url ) . '&description=' . urlencode( $desc );
|
50 |
|
51 |
if ( ! empty( $media ) ) {
|
includes/frontend/social-buttons/class-kiwi-social-share-social-button-reddit.php
ADDED
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
+
exit;
|
4 |
+
}
|
5 |
+
|
6 |
+
/**
|
7 |
+
* Class Kiwi_Social_Share_Social_Button_Reddit
|
8 |
+
*/
|
9 |
+
final class Kiwi_Social_Share_Social_Button_Reddit extends Kiwi_Social_Share_Social_Button implements Kiwi_Social_Share_Interface_Social {
|
10 |
+
/**
|
11 |
+
* Kiwi_Social_Share_Social_Button_Reddit constructor.
|
12 |
+
*/
|
13 |
+
public function __construct() {
|
14 |
+
parent::__construct();
|
15 |
+
$this->platform = 'reddit';
|
16 |
+
$this->url = $this->build_url();
|
17 |
+
$this->api_url = 'https://www.reddit.com/api/info.json?url=' . rawurlencode( $this->get_current_page_url( $this->post_id ) );
|
18 |
+
}
|
19 |
+
|
20 |
+
/**
|
21 |
+
* @return string
|
22 |
+
*/
|
23 |
+
public function build_url() {
|
24 |
+
$url = $this->get_current_page_url( $this->post_id );
|
25 |
+
/* start-pro-version */
|
26 |
+
if ( $this->short_url !== NULL ) {
|
27 |
+
$url = $this->short_url;
|
28 |
+
};
|
29 |
+
/* end-pro-version */
|
30 |
+
return '//reddit.com/submit?url=' . rawurlencode( $url );
|
31 |
+
}
|
32 |
+
|
33 |
+
/**
|
34 |
+
* @return string
|
35 |
+
*/
|
36 |
+
public function generate_output() {
|
37 |
+
return '<a data-class="popup" data-network="' . esc_attr( $this->platform ) . '" class="' . esc_attr( $this->generate_anchor_class() ) . '" href="' . esc_url( $this->url ) . '" target="_blank" rel="nofollow">' . $this->generate_anchor_icon() . ' ' . $this->build_shared_count() . '</a>';
|
38 |
+
}
|
39 |
+
|
40 |
+
/**
|
41 |
+
* @param $response
|
42 |
+
*
|
43 |
+
* @return bool|int
|
44 |
+
*/
|
45 |
+
public function parse_api_response( $response ) {
|
46 |
+
$response = json_decode( $response['body'], true );
|
47 |
+
|
48 |
+
if ( isset( $response ) && isset( $response['data'] ) && ! empty( $response['data']['children'] ) ) {
|
49 |
+
return count( $response['data']['children'] );
|
50 |
+
}
|
51 |
+
|
52 |
+
return false;
|
53 |
+
}
|
54 |
+
}
|
includes/frontend/social-buttons/class-kiwi-social-share-social-button-skype.php
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
+
exit;
|
4 |
+
}
|
5 |
+
|
6 |
+
/**
|
7 |
+
* Class Kiwi_Social_Share_Social_Button_Skype
|
8 |
+
*/
|
9 |
+
final class Kiwi_Social_Share_Social_Button_Skype extends Kiwi_Social_Share_Social_Button implements Kiwi_Social_Share_Interface_Social {
|
10 |
+
/**
|
11 |
+
* Kiwi_Social_Share_Social_Button_Skype constructor.
|
12 |
+
*/
|
13 |
+
public function __construct() {
|
14 |
+
parent::__construct();
|
15 |
+
$this->platform = 'skype';
|
16 |
+
$this->url = $this->build_url();
|
17 |
+
}
|
18 |
+
|
19 |
+
/**
|
20 |
+
* @return string
|
21 |
+
*/
|
22 |
+
public function build_url() {
|
23 |
+
$url = $this->get_current_page_url( $this->post_id );
|
24 |
+
/* start-pro-version */
|
25 |
+
if ( $this->short_url !== NULL ) {
|
26 |
+
$url = $this->short_url;
|
27 |
+
};
|
28 |
+
/* end-pro-version */
|
29 |
+
return 'https://web.skype.com/share?url=' . rawurlencode( $url ) . '&lang=' . get_locale() . '=&source=kiwi';
|
30 |
+
}
|
31 |
+
|
32 |
+
/**
|
33 |
+
* @return string
|
34 |
+
*/
|
35 |
+
public function generate_output() {
|
36 |
+
return '<a data-class="popup" data-network="' . esc_attr( $this->platform ) . '" class="' . esc_attr( $this->generate_anchor_class() ) . '" href="' . esc_url( $this->url ) . '" target="_blank" rel="nofollow">' . $this->generate_anchor_icon() . ' ' . $this->build_shared_count() . '</a>';
|
37 |
+
}
|
38 |
+
}
|
includes/frontend/social-buttons/class-kiwi-social-share-social-button-telegram.php
ADDED
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
+
exit;
|
4 |
+
}
|
5 |
+
|
6 |
+
/**
|
7 |
+
* Class Kiwi_Social_Share_Social_Button_Telegram
|
8 |
+
*/
|
9 |
+
final class Kiwi_Social_Share_Social_Button_Telegram extends Kiwi_Social_Share_Social_Button implements Kiwi_Social_Share_Interface_Social {
|
10 |
+
/**
|
11 |
+
* Kiwi_Social_Share_Social_Button_Telegram constructor.
|
12 |
+
*/
|
13 |
+
public function __construct() {
|
14 |
+
parent::__construct();
|
15 |
+
$this->platform = 'telegram';
|
16 |
+
$this->url = $this->build_url();
|
17 |
+
}
|
18 |
+
|
19 |
+
/**
|
20 |
+
* @return string
|
21 |
+
*/
|
22 |
+
public function build_url() {
|
23 |
+
$desc = strip_tags( get_the_title() );
|
24 |
+
if ( 'fp' == $this->post_id ) {
|
25 |
+
$desc = get_bloginfo( 'description' );
|
26 |
+
}
|
27 |
+
$url = $this->get_current_page_url( $this->post_id );
|
28 |
+
/* start-pro-version */
|
29 |
+
if ( $this->short_url !== NULL ) {
|
30 |
+
$url = $this->short_url;
|
31 |
+
};
|
32 |
+
|
33 |
+
/* end-pro-version */
|
34 |
+
|
35 |
+
return '//telegram.me/share/url?url=' . rawurlencode( $url ) . '&text=' . strip_tags( $desc );
|
36 |
+
}
|
37 |
+
|
38 |
+
/**
|
39 |
+
* @return string
|
40 |
+
*/
|
41 |
+
public function generate_output() {
|
42 |
+
$browser = Kiwi_Social_Share_Helper::check_browser_version();
|
43 |
+
|
44 |
+
if ( 'Firefox' !== $browser['name'] ) {
|
45 |
+
return '<a data-class="popup" data-network="' . esc_attr( $this->platform ) . '" class="' . esc_attr( $this->generate_anchor_class() ) . '" href="' . esc_url( $this->url ) . '" target="_blank" rel="nofollow">' . $this->generate_anchor_icon() . ' ' . $this->build_shared_count() . '</a>';
|
46 |
+
}
|
47 |
+
|
48 |
+
return '';
|
49 |
+
}
|
50 |
+
}
|
includes/frontend/social-buttons/class-kiwi-social-share-social-button-twitter.php
CHANGED
@@ -35,7 +35,13 @@ final class Kiwi_Social_Share_Social_Button_Twitter extends Kiwi_Social_Share_So
|
|
35 |
}
|
36 |
|
37 |
$url = $this->get_current_page_url( $this->post_id );
|
|
|
|
|
|
|
|
|
|
|
38 |
|
|
|
39 |
|
40 |
return '//twitter.com/intent/tweet?text=' . $desc . '&url=' . rawurlencode( $url ) . $additional;
|
41 |
}
|
35 |
}
|
36 |
|
37 |
$url = $this->get_current_page_url( $this->post_id );
|
38 |
+
|
39 |
+
/* start-pro-version */
|
40 |
+
if ( $this->short_url !== NULL ) {
|
41 |
+
$url = $this->short_url;
|
42 |
+
};
|
43 |
|
44 |
+
/* end-pro-version */
|
45 |
|
46 |
return '//twitter.com/intent/tweet?text=' . $desc . '&url=' . rawurlencode( $url ) . $additional;
|
47 |
}
|
includes/frontend/social-buttons/class-kiwi-social-share-social-button-whatsapp.php
ADDED
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
+
exit;
|
4 |
+
}
|
5 |
+
|
6 |
+
/**
|
7 |
+
* Class Kiwi_Social_Share_Social_Button_WhatsApp
|
8 |
+
*/
|
9 |
+
final class Kiwi_Social_Share_Social_Button_WhatsApp extends Kiwi_Social_Share_Social_Button implements Kiwi_Social_Share_Interface_Social {
|
10 |
+
/**
|
11 |
+
* Kiwi_Social_Share_Social_Button_WhatsApp constructor.
|
12 |
+
*/
|
13 |
+
public function __construct() {
|
14 |
+
parent::__construct();
|
15 |
+
$this->platform = 'whatsapp';
|
16 |
+
$this->url = $this->build_url();
|
17 |
+
}
|
18 |
+
|
19 |
+
/**
|
20 |
+
* @return string
|
21 |
+
*/
|
22 |
+
public function build_url() {
|
23 |
+
$desc = strip_tags( get_the_title() );
|
24 |
+
if ( 'fp' == $this->post_id ) {
|
25 |
+
$desc = get_bloginfo( 'description' );
|
26 |
+
}
|
27 |
+
|
28 |
+
$url = $this->get_current_page_url( $this->post_id );
|
29 |
+
/* start-pro-version */
|
30 |
+
if ( $this->short_url !== null ) {
|
31 |
+
$url = $this->short_url;
|
32 |
+
};
|
33 |
+
|
34 |
+
/* end-pro-version */
|
35 |
+
|
36 |
+
//return 'whatsapp://send?text=' . __( 'Look at this', 'kiwi-social-share' ) . ': ' . urlencode( $desc ) . ' - ' . rawurlencode( $url );
|
37 |
+
return 'https://wa.me/?text=' . __( 'Look at this', 'kiwi-social-share' ) . ': ' . urlencode( $desc ) . ' - ' . rawurlencode( $url );
|
38 |
+
}
|
39 |
+
|
40 |
+
/**
|
41 |
+
* @return string
|
42 |
+
*/
|
43 |
+
public function generate_output() {
|
44 |
+
$additional = '';
|
45 |
+
|
46 |
+
return '<a data-class="popup" class="' . esc_attr( $this->generate_anchor_class() ) . ' ' . $additional . '" data-network="' . esc_attr( $this->platform ) . '" href="' . $this->url . '" target="_blank" rel="nofollow">' . $this->generate_anchor_icon() . ' ' . $this->build_shared_count() . '</a>';
|
47 |
+
}
|
48 |
+
}
|
includes/frontend/social-buttons/class-kiwi-social-share-social-button.php
CHANGED
@@ -28,6 +28,12 @@ abstract class Kiwi_Social_Share_Social_Button {
|
|
28 |
*/
|
29 |
public $post_id;
|
30 |
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
|
32 |
/**
|
33 |
* Kiwi_Social_Share_Social_Button constructor.
|
@@ -37,6 +43,13 @@ abstract class Kiwi_Social_Share_Social_Button {
|
|
37 |
if ( is_front_page() || is_archive() || is_date() || is_category() || is_home() ) {
|
38 |
$this->post_id = 'fp';
|
39 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
}
|
41 |
|
42 |
/**
|
@@ -68,6 +81,31 @@ abstract class Kiwi_Social_Share_Social_Button {
|
|
68 |
return '<span class="kicon-' . esc_attr( $this->platform ) . '"></span>';
|
69 |
}
|
70 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
71 |
|
72 |
/**
|
73 |
* Returns an int, containing the number of shares
|
@@ -95,7 +133,7 @@ abstract class Kiwi_Social_Share_Social_Button {
|
|
95 |
* Returns a string, HTML code
|
96 |
*/
|
97 |
public function build_shared_count() {
|
98 |
-
if ( Kiwi_Social_Share_Helper::get_setting_value( 'share_counts', '' ) === 'on'
|
99 |
return '<span class="kiwi-share-count">' . $this->get_shared_count() . '</span>';
|
100 |
};
|
101 |
|
28 |
*/
|
29 |
public $post_id;
|
30 |
|
31 |
+
/* start-pro-version */
|
32 |
+
/**
|
33 |
+
* @var string
|
34 |
+
*/
|
35 |
+
public $short_url = null;
|
36 |
+
/* end-pro-version */
|
37 |
|
38 |
/**
|
39 |
* Kiwi_Social_Share_Social_Button constructor.
|
43 |
if ( is_front_page() || is_archive() || is_date() || is_category() || is_home() ) {
|
44 |
$this->post_id = 'fp';
|
45 |
}
|
46 |
+
/* start-pro-version */
|
47 |
+
$bitly_ap = Kiwi_Social_Share_Helper::get_setting_value( 'bitly_access_token', '', 'kiwi_social_identities' );
|
48 |
+
$bitly_al = Kiwi_Social_Share_Helper::get_setting_value( 'bitly_access_login', '', 'kiwi_social_identities' );
|
49 |
+
if ( ! empty( $bitly_ap ) && ! empty( $bitly_al ) ) {
|
50 |
+
$this->short_url = $this->set_short_link( $bitly_ap, $bitly_al );
|
51 |
+
}
|
52 |
+
/* end-pro-version */
|
53 |
}
|
54 |
|
55 |
/**
|
81 |
return '<span class="kicon-' . esc_attr( $this->platform ) . '"></span>';
|
82 |
}
|
83 |
|
84 |
+
/* start-pro-version */
|
85 |
+
/**
|
86 |
+
* Returns a string containing the bitly link
|
87 |
+
*/
|
88 |
+
public function set_short_link( $access_token, $access_login ) {
|
89 |
+
$response = get_transient( 'kiwi_' . $this->post_id . '_short_link_transient' );
|
90 |
+
|
91 |
+
if ( false === $response || false === $response['url'] ) {
|
92 |
+
$url = $this->get_current_page_url( $this->post_id );
|
93 |
+
|
94 |
+
$bitly = Kiwi_Social_Share_Bitly::instance( $access_token, $access_login );
|
95 |
+
$url = $bitly->shorten_url( $url );
|
96 |
+
|
97 |
+
if ( $url !== $this->get_current_page_url( $this->post_id ) ) {
|
98 |
+
$transient = array( 'url' => $url );
|
99 |
+
/**
|
100 |
+
* Add a transient available 1 WEEK
|
101 |
+
*/
|
102 |
+
set_transient( 'kiwi_' . $this->post_id . '_short_link_transient', $transient, 1 * WEEK_IN_SECONDS );
|
103 |
+
}
|
104 |
+
}
|
105 |
+
|
106 |
+
return $response['url'];
|
107 |
+
}
|
108 |
+
/* end-pro-version */
|
109 |
|
110 |
/**
|
111 |
* Returns an int, containing the number of shares
|
133 |
* Returns a string, HTML code
|
134 |
*/
|
135 |
public function build_shared_count() {
|
136 |
+
if ( $this->get_shared_count() > 0 && Kiwi_Social_Share_Helper::get_setting_value( 'share_counts', '' ) === 'on' ) {
|
137 |
return '<span class="kiwi-share-count">' . $this->get_shared_count() . '</span>';
|
138 |
};
|
139 |
|
includes/lib/class-kiwi-social-share-bitly.php
ADDED
@@ -0,0 +1,116 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
+
exit;
|
4 |
+
}
|
5 |
+
|
6 |
+
|
7 |
+
/**
|
8 |
+
* Class Kiwi_Social_Share_Bitly
|
9 |
+
*/
|
10 |
+
class Kiwi_Social_Share_Bitly {
|
11 |
+
/**
|
12 |
+
* The single instance of Kiwi_Social_Share_Bitly
|
13 |
+
*
|
14 |
+
* @var object
|
15 |
+
* @access private
|
16 |
+
* @since 2.0.0
|
17 |
+
*/
|
18 |
+
private static $_instance = null;
|
19 |
+
|
20 |
+
/**
|
21 |
+
* @var string
|
22 |
+
* @access private
|
23 |
+
* @since 2.0.0
|
24 |
+
*/
|
25 |
+
private $access_token = null;
|
26 |
+
|
27 |
+
/**
|
28 |
+
* @var string
|
29 |
+
* @access private
|
30 |
+
* @since
|
31 |
+
*/
|
32 |
+
private $access_login = null;
|
33 |
+
|
34 |
+
/**
|
35 |
+
* @var string
|
36 |
+
* @access private
|
37 |
+
* @since 2.0.0
|
38 |
+
*/
|
39 |
+
private $api_url = 'https://api-ssl.bitly.com/v3/shorten?';
|
40 |
+
|
41 |
+
/**
|
42 |
+
* Kiwi_Social_Share_Bitly constructor.
|
43 |
+
*
|
44 |
+
* @param string $access_token
|
45 |
+
*/
|
46 |
+
public function __construct( $access_token, $access_login ) {
|
47 |
+
$this->access_token = $access_token;
|
48 |
+
$this->access_login = $access_login;
|
49 |
+
}
|
50 |
+
|
51 |
+
/**
|
52 |
+
* @param $url
|
53 |
+
*
|
54 |
+
* @return bool
|
55 |
+
*/
|
56 |
+
public function shorten_url( $url ) {
|
57 |
+
$parsed = parse_url( $url );
|
58 |
+
|
59 |
+
if ( ! empty( $parsed['host'] ) && $parsed['host'] === 'localhost' ) {
|
60 |
+
return $url;
|
61 |
+
}
|
62 |
+
|
63 |
+
if ( empty( $parsed['scheme'] ) ) {
|
64 |
+
$url = 'http://' . ltrim( $url, '/' );
|
65 |
+
}
|
66 |
+
|
67 |
+
if ( empty( $this->access_token ) ) {
|
68 |
+
return $url;
|
69 |
+
}
|
70 |
+
|
71 |
+
$query = array(
|
72 |
+
'login' => $this->access_login,
|
73 |
+
'apiKey' => $this->access_token,
|
74 |
+
'longUrl' => $url,
|
75 |
+
'format' => 'json',
|
76 |
+
);
|
77 |
+
|
78 |
+
$remote_url = $this->api_url . http_build_query( $query );
|
79 |
+
|
80 |
+
$response = wp_remote_get( $remote_url );
|
81 |
+
|
82 |
+
if ( is_wp_error( $response ) || 200 != wp_remote_retrieve_response_code( $response ) ) {
|
83 |
+
return false;
|
84 |
+
}
|
85 |
+
|
86 |
+
if ( empty( $response['body'] ) ) {
|
87 |
+
return false;
|
88 |
+
}
|
89 |
+
|
90 |
+
$response = json_decode( $response['body'] );
|
91 |
+
|
92 |
+
if ( empty( $response->data ) ) {
|
93 |
+
return false;
|
94 |
+
}
|
95 |
+
|
96 |
+
return $response->data->url;
|
97 |
+
}
|
98 |
+
|
99 |
+
/**
|
100 |
+
* Main Kiwi_Social_Share_Bitly Instance
|
101 |
+
*
|
102 |
+
* Ensures only one instance of Kiwi_Social_Share_Bitly is loaded or can be loaded.
|
103 |
+
*
|
104 |
+
* @since 1.0.0
|
105 |
+
* @static
|
106 |
+
* @see Kiwi_Social_Share()
|
107 |
+
* @return Main Kiwi_Social_Share_Bitly instance
|
108 |
+
*/
|
109 |
+
public static function instance( $access_token = '', $access_login = '' ) {
|
110 |
+
if ( is_null( self::$_instance ) ) {
|
111 |
+
self::$_instance = new self( $access_token, $access_login );
|
112 |
+
}
|
113 |
+
|
114 |
+
return self::$_instance;
|
115 |
+
} // End instance ()
|
116 |
+
}
|
includes/lib/class-kiwi-social-share-click-to-tweet.php
CHANGED
@@ -47,6 +47,19 @@ class Kiwi_Social_Share_Click_To_Tweet {
|
|
47 |
|
48 |
if ( get_user_option( 'rich_editing' ) == 'true' ) {
|
49 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
50 |
$kiwi = Kiwi_Social_Share::instance();
|
51 |
wp_enqueue_style( $kiwi->_token . '-frontend' );
|
52 |
wp_enqueue_script( $kiwi->_token . '-frontend' );
|
@@ -118,6 +131,13 @@ class Kiwi_Social_Share_Click_To_Tweet {
|
|
118 |
|
119 |
$url = $twitter_button->get_current_page_url( get_the_ID() );
|
120 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
121 |
$content = '<blockquote class="kiwi-click-to-tweet-content-area"><a data-class="popup" data-network="twitter" class="kiwi-click-to-tweet-url" href="//twitter.com/intent/tweet?url=' . esc_url( $url ) . '&text=' . urlencode( html_entity_decode( $atts['tweet'], ENT_COMPAT, 'UTF-8' ) ) . $additional . '" rel="nofollow" target="_blank" ' . $tracking_html . '>';
|
122 |
$content .= '<span class="kiwi-click-to-tweet"><span class="kiwi-click-to-tweet-text">' . $atts['quote'] . '</span><span class="kiwi-click-to-tweet-button">' . __( 'Click To Tweet', 'kiwi-social-share' ) . '<i class="kicon-twitter"></i></span></span>';
|
123 |
$content .= '</a>';
|
47 |
|
48 |
if ( get_user_option( 'rich_editing' ) == 'true' ) {
|
49 |
|
50 |
+
/* start-pro-version */
|
51 |
+
global $typenow;
|
52 |
+
|
53 |
+
if ( empty( $typenow ) && ! empty( $_GET['post'] ) ) {
|
54 |
+
$post = get_post( $_GET['post'] );
|
55 |
+
$typenow = $post->post_type;
|
56 |
+
}
|
57 |
+
|
58 |
+
if ( is_array( $this->post_types ) && ! in_array( $typenow, $this->post_types ) ) {
|
59 |
+
return;
|
60 |
+
}
|
61 |
+
/* end-pro-version */
|
62 |
+
|
63 |
$kiwi = Kiwi_Social_Share::instance();
|
64 |
wp_enqueue_style( $kiwi->_token . '-frontend' );
|
65 |
wp_enqueue_script( $kiwi->_token . '-frontend' );
|
131 |
|
132 |
$url = $twitter_button->get_current_page_url( get_the_ID() );
|
133 |
|
134 |
+
/* start-pro-version */
|
135 |
+
if ( $twitter_button->short_url !== NULL ) {
|
136 |
+
$url = $twitter_button->short_url;
|
137 |
+
};
|
138 |
+
|
139 |
+
/* end-pro-version */
|
140 |
+
|
141 |
$content = '<blockquote class="kiwi-click-to-tweet-content-area"><a data-class="popup" data-network="twitter" class="kiwi-click-to-tweet-url" href="//twitter.com/intent/tweet?url=' . esc_url( $url ) . '&text=' . urlencode( html_entity_decode( $atts['tweet'], ENT_COMPAT, 'UTF-8' ) ) . $additional . '" rel="nofollow" target="_blank" ' . $tracking_html . '>';
|
142 |
$content .= '<span class="kiwi-click-to-tweet"><span class="kiwi-click-to-tweet-text">' . $atts['quote'] . '</span><span class="kiwi-click-to-tweet-button">' . __( 'Click To Tweet', 'kiwi-social-share' ) . '<i class="kicon-twitter"></i></span></span>';
|
143 |
$content .= '</a>';
|
includes/lib/class-kiwi-social-share-customization.php
ADDED
@@ -0,0 +1,177 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
+
exit;
|
4 |
+
}
|
5 |
+
|
6 |
+
/**
|
7 |
+
* Class Kiwi_Social_Share_Customization
|
8 |
+
*/
|
9 |
+
class Kiwi_Social_Share_Customization {
|
10 |
+
/**
|
11 |
+
* @var array
|
12 |
+
*/
|
13 |
+
public $colors = array();
|
14 |
+
|
15 |
+
/**
|
16 |
+
* Kiwi_Social_Share_Customization constructor.
|
17 |
+
*/
|
18 |
+
public function __construct() {
|
19 |
+
$customization = $this->set_colors();
|
20 |
+
if ( $customization['continue'] ) {
|
21 |
+
add_action( 'wp_enqueue_scripts', array( $this, 'enqueue' ) );
|
22 |
+
}
|
23 |
+
}
|
24 |
+
|
25 |
+
/**
|
26 |
+
* @return array
|
27 |
+
*/
|
28 |
+
public function set_colors() {
|
29 |
+
$scheme = Kiwi_Social_Share_Helper::get_setting_value( 'styles_colors', 'original' );
|
30 |
+
$colors = Kiwi_Social_Share_Helper::get_network_colors();
|
31 |
+
|
32 |
+
$return = array(
|
33 |
+
'scheme' => 'original',
|
34 |
+
'continue' => false,
|
35 |
+
);
|
36 |
+
|
37 |
+
switch ( $scheme ) {
|
38 |
+
case 'custom':
|
39 |
+
unset( $colors['monochrome'] );
|
40 |
+
$this->_set_options_custom( $colors );
|
41 |
+
$return = array(
|
42 |
+
'scheme' => 'custom',
|
43 |
+
'continue' => true,
|
44 |
+
);
|
45 |
+
break;
|
46 |
+
case 'monochrome':
|
47 |
+
$this->_set_options_custom( $colors );
|
48 |
+
$return = array(
|
49 |
+
'scheme' => 'monochrome',
|
50 |
+
'continue' => true,
|
51 |
+
);
|
52 |
+
break;
|
53 |
+
default:
|
54 |
+
$this->_set_options_original();
|
55 |
+
break;
|
56 |
+
}
|
57 |
+
|
58 |
+
return $return;
|
59 |
+
}
|
60 |
+
|
61 |
+
/**
|
62 |
+
* Reset the selector array
|
63 |
+
*/
|
64 |
+
public function _set_options_original() {
|
65 |
+
$this->colors = array();
|
66 |
+
}
|
67 |
+
|
68 |
+
/**
|
69 |
+
* Set the social networks colors (for custom scheme)
|
70 |
+
*
|
71 |
+
* @param $options
|
72 |
+
*/
|
73 |
+
public function _set_options_custom( $options ) {
|
74 |
+
$socials = Kiwi_Social_Share_Helper::get_social_network_identities();
|
75 |
+
$selectors = array();
|
76 |
+
foreach ( $socials as $name => $prop ) {
|
77 |
+
|
78 |
+
$selectors[ $name ] = array(
|
79 |
+
'normal' => array(
|
80 |
+
'background' => $options[ $name ]['background'],
|
81 |
+
'color' => $options[ $name ]['text'],
|
82 |
+
),
|
83 |
+
'hover' => array(
|
84 |
+
'background' => $options[ $name ]['hover_background'],
|
85 |
+
'color' => $options[ $name ]['hover_text'],
|
86 |
+
),
|
87 |
+
);
|
88 |
+
};
|
89 |
+
|
90 |
+
$this->colors = $selectors;
|
91 |
+
}
|
92 |
+
|
93 |
+
/**
|
94 |
+
* Set the social networks colors (for monochrome scheme)
|
95 |
+
*
|
96 |
+
* @param $options
|
97 |
+
*/
|
98 |
+
public function _set_options_monochrome( $options ) {
|
99 |
+
$socials = Kiwi_Social_Share_Helper::get_social_network_identities();
|
100 |
+
$selectors = array();
|
101 |
+
foreach ( $socials as $name => $prop ) {
|
102 |
+
$selectors[ $name ] = array(
|
103 |
+
'normal' => array(
|
104 |
+
'background' => $options['background'],
|
105 |
+
'color' => $options['text'],
|
106 |
+
),
|
107 |
+
'hover' => array(
|
108 |
+
'background' => $options['hover_background'],
|
109 |
+
'color' => $options['hover_text'],
|
110 |
+
),
|
111 |
+
);
|
112 |
+
}
|
113 |
+
|
114 |
+
$this->colors = $selectors;
|
115 |
+
}
|
116 |
+
|
117 |
+
/**
|
118 |
+
* Create the CSS string for output
|
119 |
+
*
|
120 |
+
* @return mixed|string
|
121 |
+
*/
|
122 |
+
public function create_css() {
|
123 |
+
/**
|
124 |
+
* Get an instance of the plugin so we can get the token
|
125 |
+
*/
|
126 |
+
$instance = Kiwi_Social_Share::instance();
|
127 |
+
/**
|
128 |
+
* Don't recreate the CSS file every time we load the page,
|
129 |
+
*/
|
130 |
+
if ( false === ( $string = get_transient( $instance->_token . '_css_transient' ) ) ) {
|
131 |
+
$string = '';
|
132 |
+
/**
|
133 |
+
* In case the array is empty, we return an empty string
|
134 |
+
*/
|
135 |
+
if ( empty( $this->colors ) ) {
|
136 |
+
return $string;
|
137 |
+
}
|
138 |
+
|
139 |
+
/**
|
140 |
+
* Build the CSS string for the normal and hover states
|
141 |
+
*/
|
142 |
+
foreach ( $this->colors as $selector => $prop ) {
|
143 |
+
foreach ( $prop as $state => $values ) {
|
144 |
+
if ( $state == 'normal' ) {
|
145 |
+
$string .= '.kiwi-floating-bar a.kiwi-nw-' . esc_attr( $selector ) . ', .kiwi-article-bar a.kiwi-nw-' . esc_attr( $selector ) . '{';
|
146 |
+
foreach ( $values as $k => $v ) {
|
147 |
+
$string .= esc_attr( $k ) . ':' . esc_attr( $v ) . ';';
|
148 |
+
}
|
149 |
+
$string .= '}';
|
150 |
+
} elseif ( $state == 'hover' ) {
|
151 |
+
$string .= '.kiwi-floating-bar a.kiwi-nw-' . esc_attr( $selector ) . ':hover, .kiwi-article-bar a.kiwi-nw-' . esc_attr( $selector ) . ':hover{';
|
152 |
+
foreach ( $values as $k => $v ) {
|
153 |
+
$string .= esc_attr( $k ) . ':' . esc_attr( $v ) . ';';
|
154 |
+
}
|
155 |
+
$string .= '}';
|
156 |
+
}
|
157 |
+
}
|
158 |
+
}
|
159 |
+
|
160 |
+
/**
|
161 |
+
* Add a transient available 24 HOURS
|
162 |
+
*/
|
163 |
+
set_transient( $instance->_token . '_css_transient', $string, 24 * HOUR_IN_SECONDS );
|
164 |
+
};
|
165 |
+
|
166 |
+
return $string;
|
167 |
+
}
|
168 |
+
|
169 |
+
/**
|
170 |
+
* Enqueue the inline CSS string
|
171 |
+
*/
|
172 |
+
public function enqueue() {
|
173 |
+
$instance = Kiwi_Social_Share::instance();
|
174 |
+
$css = $this->create_css();
|
175 |
+
wp_add_inline_style( $instance->_token . '-frontend', $css );
|
176 |
+
}
|
177 |
+
}
|
includes/lib/class-kiwi-social-share-frontend.php
CHANGED
@@ -21,6 +21,9 @@ class Kiwi_Social_Share_Frontend {
|
|
21 |
*/
|
22 |
public function __construct( $file = '', $version = '1.0.0' ) {
|
23 |
// Add the custom css styles
|
|
|
|
|
|
|
24 |
// Load the article bar
|
25 |
new Kiwi_Social_Share_View_Article_Bar();
|
26 |
// Load the floating bar
|
@@ -64,6 +67,11 @@ class Kiwi_Social_Share_Frontend {
|
|
64 |
$twitter_button = new Kiwi_Social_Share_Social_Button_Twitter();
|
65 |
$url = $twitter_button->get_current_page_url( get_the_ID() );
|
66 |
|
|
|
|
|
|
|
|
|
|
|
67 |
$info['header_output'] = '';
|
68 |
// We only modify the Open Graph tags on single blog post pages
|
69 |
if ( is_singular() ) {
|
21 |
*/
|
22 |
public function __construct( $file = '', $version = '1.0.0' ) {
|
23 |
// Add the custom css styles
|
24 |
+
/* start-pro-version */
|
25 |
+
new Kiwi_Social_Share_Customization();
|
26 |
+
/* end-pro-version */
|
27 |
// Load the article bar
|
28 |
new Kiwi_Social_Share_View_Article_Bar();
|
29 |
// Load the floating bar
|
67 |
$twitter_button = new Kiwi_Social_Share_Social_Button_Twitter();
|
68 |
$url = $twitter_button->get_current_page_url( get_the_ID() );
|
69 |
|
70 |
+
/* start-pro-version */
|
71 |
+
if ( $twitter_button->short_url !== NULL ) {
|
72 |
+
$url = $twitter_button->short_url;
|
73 |
+
};
|
74 |
+
/* end-pro-version */
|
75 |
$info['header_output'] = '';
|
76 |
// We only modify the Open Graph tags on single blog post pages
|
77 |
if ( is_singular() ) {
|
includes/lib/class-kiwi-social-share-highlight-share.php
CHANGED
@@ -44,6 +44,12 @@ class Kiwi_Social_Share_Highlight_Share {
|
|
44 |
*/
|
45 |
public function wp_loaded() {
|
46 |
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
if ( is_feed() ) {
|
48 |
return;
|
49 |
}
|
@@ -72,6 +78,13 @@ class Kiwi_Social_Share_Highlight_Share {
|
|
72 |
$title = get_the_title( get_the_ID() );
|
73 |
$url = $twitter_button->get_current_page_url( get_the_ID() );
|
74 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
75 |
$content = sprintf( '<div class="kiwi-highlighter-content-area" data-url="%s" data-title="%s">%s</div>', esc_url( $url ), esc_attr( $title ), $content );
|
76 |
|
77 |
return $content;
|
@@ -91,6 +104,13 @@ class Kiwi_Social_Share_Highlight_Share {
|
|
91 |
$title = get_the_title( get_the_ID() );
|
92 |
$url = $twitter_button->get_current_page_url( get_the_ID() );
|
93 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
94 |
$content = sprintf( '<div class="kiwi-highlighter-excerpt-area" data-url="%s" data-title="%s">%s</div>', esc_url( $url ), esc_attr( $title ), $content );
|
95 |
|
96 |
return $content;
|
44 |
*/
|
45 |
public function wp_loaded() {
|
46 |
|
47 |
+
/* start-pro-version */
|
48 |
+
if ( is_array( $this->post_types ) && ! in_array( get_post_type(), $this->post_types ) ) {
|
49 |
+
return;
|
50 |
+
}
|
51 |
+
/* end-pro-version */
|
52 |
+
|
53 |
if ( is_feed() ) {
|
54 |
return;
|
55 |
}
|
78 |
$title = get_the_title( get_the_ID() );
|
79 |
$url = $twitter_button->get_current_page_url( get_the_ID() );
|
80 |
|
81 |
+
/* start-pro-version */
|
82 |
+
if ( $twitter_button->short_url !== NULL ) {
|
83 |
+
$url = $twitter_button->short_url;
|
84 |
+
};
|
85 |
+
|
86 |
+
/* end-pro-version */
|
87 |
+
|
88 |
$content = sprintf( '<div class="kiwi-highlighter-content-area" data-url="%s" data-title="%s">%s</div>', esc_url( $url ), esc_attr( $title ), $content );
|
89 |
|
90 |
return $content;
|
104 |
$title = get_the_title( get_the_ID() );
|
105 |
$url = $twitter_button->get_current_page_url( get_the_ID() );
|
106 |
|
107 |
+
/* start-pro-version */
|
108 |
+
if ( $twitter_button->short_url !== NULL ) {
|
109 |
+
$url = $twitter_button->short_url;
|
110 |
+
};
|
111 |
+
|
112 |
+
/* end-pro-version */
|
113 |
+
|
114 |
$content = sprintf( '<div class="kiwi-highlighter-excerpt-area" data-url="%s" data-title="%s">%s</div>', esc_url( $url ), esc_attr( $title ), $content );
|
115 |
|
116 |
return $content;
|
includes/lib/class-kiwi-social-share-importer.php
CHANGED
@@ -52,7 +52,7 @@ class Kiwi_Social_Share_Importer {
|
|
52 |
if ( ! $settings ) {
|
53 |
$arr = array(
|
54 |
'networks_ordering' => '',
|
55 |
-
'networks_article_bar' => array( 'facebook', 'twitter', '
|
56 |
'share_buttons' => 'on',
|
57 |
'share_buttons_location' => 'top',
|
58 |
'button_shape' => 'rect',
|
@@ -265,7 +265,7 @@ class Kiwi_Social_Share_Importer {
|
|
265 |
public function check_social_networks() {
|
266 |
$settings = $this->get_old_settings();
|
267 |
$return = array();
|
268 |
-
$available = array( 'facebook', 'twitter', '
|
269 |
|
270 |
foreach ( $available as $social ) {
|
271 |
if ( ! empty( $settings[ 'kiwi-enable-' . $social ] ) ) {
|
52 |
if ( ! $settings ) {
|
53 |
$arr = array(
|
54 |
'networks_ordering' => '',
|
55 |
+
'networks_article_bar' => array( 'facebook', 'twitter', 'pinterest', 'fintel', 'mix' ),
|
56 |
'share_buttons' => 'on',
|
57 |
'share_buttons_location' => 'top',
|
58 |
'button_shape' => 'rect',
|
265 |
public function check_social_networks() {
|
266 |
$settings = $this->get_old_settings();
|
267 |
$return = array();
|
268 |
+
$available = array( 'facebook', 'twitter', 'pinterest', 'linkedin', 'reddit', 'email' );
|
269 |
|
270 |
foreach ( $available as $social ) {
|
271 |
if ( ! empty( $settings[ 'kiwi-enable-' . $social ] ) ) {
|
includes/lib/class-kiwi-social-share-integration.php
DELETED
@@ -1,186 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
-
exit;
|
4 |
-
}
|
5 |
-
|
6 |
-
/**
|
7 |
-
* Class Kiwi_Social_Share_Integration
|
8 |
-
*/
|
9 |
-
class Kiwi_Social_Share_Integration {
|
10 |
-
/**
|
11 |
-
* @var array
|
12 |
-
*/
|
13 |
-
public $themes = array();
|
14 |
-
/**
|
15 |
-
* @var array
|
16 |
-
*/
|
17 |
-
public $plugins = array();
|
18 |
-
/**
|
19 |
-
* @var array
|
20 |
-
*/
|
21 |
-
public $strings = array();
|
22 |
-
|
23 |
-
/**
|
24 |
-
* Kiwi_Social_Share_Integration constructor.
|
25 |
-
*/
|
26 |
-
public function __construct() {
|
27 |
-
$this->themes = array(
|
28 |
-
'newsmag' => array(
|
29 |
-
'slug' => 'newsmag',
|
30 |
-
'label' => esc_html__( 'NewsMag Lite', 'kiwi-social-share' ),
|
31 |
-
'author' => esc_html__( 'MachoThemes', 'kiwi-social-share' )
|
32 |
-
),
|
33 |
-
'regina-lite' => array(
|
34 |
-
'slug' => 'regina-lite',
|
35 |
-
'label' => esc_html__( 'Regina Lite', 'kiwi-social-share' ),
|
36 |
-
'author' => esc_html__( 'MachoThemes', 'kiwi-social-share' )
|
37 |
-
),
|
38 |
-
'affluent' => array(
|
39 |
-
'slug' => 'affluent',
|
40 |
-
'label' => esc_html__( 'Affluent', 'kiwi-social-share' ),
|
41 |
-
'author' => esc_html__( 'CPO Themes', 'kiwi-social-share' )
|
42 |
-
),
|
43 |
-
'allegiant' => array(
|
44 |
-
'slug' => 'allegiant',
|
45 |
-
'label' => esc_html__( 'Allegiant', 'kiwi-social-share' ),
|
46 |
-
'author' => esc_html__( 'CPO Themes', 'kiwi-social-share' )
|
47 |
-
),
|
48 |
-
'transcend' => array(
|
49 |
-
'slug' => 'transcend',
|
50 |
-
'label' => esc_html__( 'Transcend', 'kiwi-social-share' ),
|
51 |
-
'author' => esc_html__( 'CPO Themes', 'kiwi-social-share' )
|
52 |
-
),
|
53 |
-
);
|
54 |
-
|
55 |
-
$this->strings = array(
|
56 |
-
'not-installed' => esc_html__( 'Install Now', 'kiwi-social-share' ),
|
57 |
-
'not-active' => esc_html__( 'Activate', 'kiwi-social-share' ),
|
58 |
-
);
|
59 |
-
|
60 |
-
$this->class_names = array(
|
61 |
-
'not-installed' => 'theme-install',
|
62 |
-
'not-active' => 'activate'
|
63 |
-
);
|
64 |
-
|
65 |
-
$this->call_themes_api();
|
66 |
-
}
|
67 |
-
|
68 |
-
/**
|
69 |
-
* @return array
|
70 |
-
*/
|
71 |
-
public function call_themes_api() {
|
72 |
-
include_once( ABSPATH . 'wp-admin/includes/theme-install.php' );
|
73 |
-
|
74 |
-
$themes = array();
|
75 |
-
foreach ( $this->themes as $theme ) {
|
76 |
-
$themes[ $theme['slug'] ] = $this->_call_themes_api( $theme['slug'] );
|
77 |
-
}
|
78 |
-
|
79 |
-
foreach ( $themes as $k => $v ) {
|
80 |
-
$this->themes[ $k ]['version'] = $v->version;
|
81 |
-
$this->themes[ $k ]['preview_url'] = $v->preview_url;
|
82 |
-
$this->themes[ $k ]['screenshot_url'] = $v->screenshot_url;
|
83 |
-
$this->themes[ $k ]['homepage'] = $v->homepage;
|
84 |
-
$this->themes[ $k ]['download_link'] = $v->download_link;
|
85 |
-
$this->themes[ $k ]['status'] = $this->set_status( $v->slug, 'theme' );
|
86 |
-
$this->themes[ $k ]['action_link'] = $this->create_action_link( $v->slug, 'theme' );
|
87 |
-
}
|
88 |
-
|
89 |
-
return $themes;
|
90 |
-
|
91 |
-
}
|
92 |
-
|
93 |
-
/**
|
94 |
-
* @param $slug
|
95 |
-
*
|
96 |
-
* @return array|mixed|object|WP_Error
|
97 |
-
*/
|
98 |
-
private function _call_themes_api( $slug ) {
|
99 |
-
|
100 |
-
if ( false === ( $call_api = get_transient( 'kiwi_themes_information_transient_' . $slug ) ) ) {
|
101 |
-
$call_api = themes_api( 'theme_information', array(
|
102 |
-
'slug' => $slug,
|
103 |
-
) );
|
104 |
-
set_transient( 'kiwi_themes_information_transient_' . $slug, $call_api, 30 * MINUTE_IN_SECONDS );
|
105 |
-
}
|
106 |
-
|
107 |
-
return $call_api;
|
108 |
-
}
|
109 |
-
|
110 |
-
/**
|
111 |
-
* @param $slug
|
112 |
-
* @param $context
|
113 |
-
*
|
114 |
-
* @return bool|string
|
115 |
-
*/
|
116 |
-
private function set_status( $slug, $context ) {
|
117 |
-
switch ( $context ) {
|
118 |
-
case 'theme':
|
119 |
-
$t = wp_get_theme( $slug );
|
120 |
-
if ( is_wp_error( $t->errors() ) ) {
|
121 |
-
return 'not-installed';
|
122 |
-
}
|
123 |
-
|
124 |
-
$t = wp_get_theme();
|
125 |
-
|
126 |
-
if ( $slug == $t->name || $slug == $t->parent_theme ) {
|
127 |
-
return 'active';
|
128 |
-
}
|
129 |
-
|
130 |
-
return 'not-active';
|
131 |
-
break;
|
132 |
-
default:
|
133 |
-
return false;
|
134 |
-
break;
|
135 |
-
}
|
136 |
-
}
|
137 |
-
|
138 |
-
/**
|
139 |
-
* @param $slug
|
140 |
-
* @param $context
|
141 |
-
*
|
142 |
-
* @return bool|string
|
143 |
-
*/
|
144 |
-
private function create_action_link( $slug, $context ) {
|
145 |
-
switch ( $context ) {
|
146 |
-
case 'theme':
|
147 |
-
$status = $this->set_status( $slug, $context );
|
148 |
-
switch ( $status ) {
|
149 |
-
case 'not-installed':
|
150 |
-
return wp_nonce_url(
|
151 |
-
add_query_arg(
|
152 |
-
array(
|
153 |
-
'action' => 'install-theme',
|
154 |
-
'theme' => $slug
|
155 |
-
),
|
156 |
-
network_admin_url( 'update.php' )
|
157 |
-
),
|
158 |
-
'install-theme_' . $slug
|
159 |
-
);
|
160 |
-
break;
|
161 |
-
case 'not-active':
|
162 |
-
return wp_nonce_url(
|
163 |
-
add_query_arg(
|
164 |
-
array(
|
165 |
-
'action' => 'activate',
|
166 |
-
'stylesheet' => $slug
|
167 |
-
),
|
168 |
-
network_admin_url( 'themes.php' )
|
169 |
-
),
|
170 |
-
'switch-theme_' . $slug
|
171 |
-
);
|
172 |
-
break;
|
173 |
-
default :
|
174 |
-
return '';
|
175 |
-
break;
|
176 |
-
}
|
177 |
-
|
178 |
-
|
179 |
-
break;
|
180 |
-
default:
|
181 |
-
return false;
|
182 |
-
break;
|
183 |
-
}
|
184 |
-
|
185 |
-
}
|
186 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
includes/lib/class-kiwi-social-share-sanitizers.php
CHANGED
@@ -138,9 +138,9 @@ class Kiwi_Social_Share_Sanitizers {
|
|
138 |
'facebook',
|
139 |
'twitter',
|
140 |
'linkedin',
|
141 |
-
'google-plus',
|
142 |
'pinterest',
|
143 |
'fintel',
|
|
|
144 |
'reddit',
|
145 |
'email',
|
146 |
'whatsapp',
|
138 |
'facebook',
|
139 |
'twitter',
|
140 |
'linkedin',
|
|
|
141 |
'pinterest',
|
142 |
'fintel',
|
143 |
+
'mix',
|
144 |
'reddit',
|
145 |
'email',
|
146 |
'whatsapp',
|
includes/lib/class-kiwi-social-share-settings.php
CHANGED
@@ -16,7 +16,7 @@ class Kiwi_Social_Share_Settings {
|
|
16 |
* @access private
|
17 |
* @since 1.0.0
|
18 |
*/
|
19 |
-
private static $_instance =
|
20 |
|
21 |
/**
|
22 |
* The main plugin object.
|
@@ -25,7 +25,7 @@ class Kiwi_Social_Share_Settings {
|
|
25 |
* @access public
|
26 |
* @since 1.0.0
|
27 |
*/
|
28 |
-
public $parent =
|
29 |
|
30 |
/**
|
31 |
* Prefix for plugin settings.
|
@@ -86,19 +86,12 @@ class Kiwi_Social_Share_Settings {
|
|
86 |
* @return void
|
87 |
*/
|
88 |
public function add_menu_item() {
|
89 |
-
|
90 |
$page = add_menu_page( __( 'Kiwi', 'kiwi-social-share' ), __( 'Kiwi', 'kiwi-social-share' ), 'manage_options', $this->parent->_token . '_settings', array(
|
91 |
$this,
|
92 |
'settings_page'
|
93 |
), 'dashicons-share-alt' );
|
94 |
|
95 |
-
/*Add Kiwi upgrade page*/
|
96 |
-
add_submenu_page( $this->parent->_token . '_settings', __( 'Upgrade to PRO', 'kiwi-social-share' ), __( 'Upgrade', 'kiwi-social-share' ), 'manage_options', 'kiwi-upgrade', array(
|
97 |
-
$this,
|
98 |
-
'render_pro_page',
|
99 |
-
) );
|
100 |
-
/* end-lite-version */
|
101 |
-
|
102 |
|
103 |
$advanced_shortcodes = Kiwi_Social_Share_Helper::get_setting_value( 'advanced_shortcode_manager', false, 'kiwi_advanced_settings' );
|
104 |
if ( $advanced_shortcodes ) {
|
@@ -249,184 +242,4 @@ class Kiwi_Social_Share_Settings {
|
|
249 |
_doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?' ), $this->parent->_version );
|
250 |
} // End __wakeup()
|
251 |
|
252 |
-
|
253 |
-
/*
|
254 |
-
*
|
255 |
-
* Upgrade page : Free Vs Pro
|
256 |
-
*
|
257 |
-
*/
|
258 |
-
public function render_pro_page() {
|
259 |
-
|
260 |
-
|
261 |
-
wp_enqueue_script( 'kiwi-admin' );
|
262 |
-
|
263 |
-
$features = array(
|
264 |
-
'color-options' => array(
|
265 |
-
'label' => esc_html__( 'Network color options', 'kiwi-social-share' ),
|
266 |
-
'sub' => esc_html__( 'Select different types of color options for icons', 'kiwi-social-share' ),
|
267 |
-
'kiwi' => '<span class="dashicons dashicons-no-alt"></span>',
|
268 |
-
'kiwi-pro' => '<span class="dashicons dashicons-yes"></span></i>',
|
269 |
-
),
|
270 |
-
'social-networks' => array(
|
271 |
-
'label' => esc_html__( 'Select social sharing platforms', 'kiwi-social-share' ),
|
272 |
-
'sub' => esc_html__( 'Pro version offers besides free version the following: Reddit, Email, Telegram, WhatsApp, Skype and Mix', 'kiwi-social-share' ),
|
273 |
-
'kiwi' => '<span class="dashicons dashicons-no-alt"></span>',
|
274 |
-
'kiwi-pro' => '<span class="dashicons dashicons-yes"></span></i>',
|
275 |
-
),
|
276 |
-
'social-bar' => array(
|
277 |
-
'label' => esc_html__( 'Article bar', 'saboxplugin' ),
|
278 |
-
'sub' => esc_html__( 'The social buttons can be shown before or after content (post, page, custom post).', 'kiwi-social-share' ),
|
279 |
-
'kiwi' => '<span class="dashicons dashicons-yes"></span>',
|
280 |
-
'kiwi-pro' => '<span class="dashicons dashicons-yes"></span></i>',
|
281 |
-
),
|
282 |
-
'article-bar' => array(
|
283 |
-
'label' => esc_html__( 'Enable Article Bar only on selected post types', 'kiwi-social-share' ),
|
284 |
-
'sub' => esc_html__( 'Select the post types where you want the article bar to show up.', 'kiwi-social-share' ),
|
285 |
-
'kiwi' => '<span class="dashicons dashicons-no-alt"></span>',
|
286 |
-
'kiwi-pro' => '<span class="dashicons dashicons-yes"></span></i>',
|
287 |
-
),
|
288 |
-
'article-bar-button-shapes' => array(
|
289 |
-
'label' => esc_html__( 'Buttons shape for article bar', 'kiwi-social-share' ),
|
290 |
-
'sub' => esc_html__( 'Change the shape of the social buttons.', 'kiwi-social-share' ),
|
291 |
-
'kiwi' => '<span class="dashicons dashicons-yes"></span>',
|
292 |
-
'kiwi-pro' => '<span class="dashicons dashicons-yes"></span></i>',
|
293 |
-
),
|
294 |
-
'article-bar-button-group' => array(
|
295 |
-
'label' => esc_html__( 'Button group style', 'kiwi-social-share' ),
|
296 |
-
'sub' => esc_html__( 'Change the style of the article bar group.', 'kiwi-social-share' ),
|
297 |
-
'kiwi' => '<span class="dashicons dashicons-yes"></span>',
|
298 |
-
'kiwi-pro' => '<span class="dashicons dashicons-yes"></span></i>',
|
299 |
-
),
|
300 |
-
'article-bar-share-counts' => array(
|
301 |
-
'label' => esc_html__( 'Show share counts', 'kiwi-social-share' ),
|
302 |
-
'sub' => esc_html__( 'Display the number of counts next to the social network icon.', 'kiwi-social-share' ),
|
303 |
-
'kiwi' => '<span class="dashicons dashicons-yes"></span>',
|
304 |
-
'kiwi-pro' => '<span class="dashicons dashicons-yes"></span></i>',
|
305 |
-
),
|
306 |
-
'floating-bar' => array(
|
307 |
-
'label' => esc_html__( 'Floating bar', 'kiwi-social-share' ),
|
308 |
-
'sub' => esc_html__( 'Enalbe floating social bar.', 'kiwi-social-share' ),
|
309 |
-
'kiwi' => '<span class="dashicons dashicons-yes"></span>',
|
310 |
-
'kiwi-pro' => '<span class="dashicons dashicons-yes"></span></i>',
|
311 |
-
),
|
312 |
-
'floating-bar-selected-posts' => array(
|
313 |
-
'label' => esc_html__( 'Enable Floating Bar only on selected post types', 'kiwi-social-share' ),
|
314 |
-
'sub' => esc_html__( 'Select the post types where you want the floating bar to show up.', 'kiwi-social-share' ),
|
315 |
-
'kiwi' => '<span class="dashicons dashicons-no-alt"></span>',
|
316 |
-
'kiwi-pro' => '<span class="dashicons dashicons-yes"></span></i>',
|
317 |
-
),
|
318 |
-
'floating-bar-buttons-shape' => array(
|
319 |
-
'label' => esc_html__( 'Buttons shape for floating bar', 'kiwi-social-share' ),
|
320 |
-
'sub' => esc_html__( 'Change the shape of the social buttons.', 'kiwi-social-share' ),
|
321 |
-
'kiwi' => '<span class="dashicons dashicons-yes"></span>',
|
322 |
-
'kiwi-pro' => '<span class="dashicons dashicons-yes"></span></i>',
|
323 |
-
),
|
324 |
-
'custom-metaboxes' => array(
|
325 |
-
'label' => esc_html__( 'Custom metaboxes', 'kiwi-social-share' ),
|
326 |
-
'sub' => esc_html__( 'Adds Custom Metaboxes for page/post/cpt meta handling', 'kiwi-social-share' ),
|
327 |
-
'kiwi' => '<span class="dashicons dashicons-yes"></span>',
|
328 |
-
'kiwi-pro' => '<span class="dashicons dashicons-yes"></span></i>',
|
329 |
-
),
|
330 |
-
'custom-metaboxes' => array(
|
331 |
-
'label' => esc_html__( 'Custom metaboxes for selected post types', 'kiwi-social-share' ),
|
332 |
-
'sub' => esc_html__( 'Adds Custom Metaboxes only on selected post types', 'kiwi-social-share' ),
|
333 |
-
'kiwi' => '<span class="dashicons dashicons-no-alt"></span>',
|
334 |
-
'kiwi-pro' => '<span class="dashicons dashicons-yes"></span></i>',
|
335 |
-
),
|
336 |
-
'click-to-tweet' => array(
|
337 |
-
'label' => esc_html__( 'Click to tweet function', 'kiwi-social-share' ),
|
338 |
-
'sub' => esc_html__( 'Add a "Click to tweet" button in WordPress editor.', 'kiwi-social-share' ),
|
339 |
-
'kiwi' => '<span class="dashicons dashicons-yes"></span>',
|
340 |
-
'kiwi-pro' => '<span class="dashicons dashicons-yes"></span></i>',
|
341 |
-
),
|
342 |
-
'click-to-tweet-selected' => array(
|
343 |
-
'label' => esc_html__( 'Click to tweet function on selected post types', 'kiwi-social-share' ),
|
344 |
-
'sub' => esc_html__( 'Add a "Click to tweet" button in WordPress editor only on selected post types.', 'kiwi-social-share' ),
|
345 |
-
'kiwi' => '<span class="dashicons dashicons-no-alt"></span>',
|
346 |
-
'kiwi-pro' => '<span class="dashicons dashicons-yes"></span></i>',
|
347 |
-
),
|
348 |
-
'tweet-selected-text' => array(
|
349 |
-
'label' => esc_html__( 'Tweet selected text ', 'kiwi-social-share' ),
|
350 |
-
'sub' => esc_html__( 'Allows tweeting the current selected text in the page.', 'kiwi-social-share' ),
|
351 |
-
'kiwi' => '<span class="dashicons dashicons-yes"></span>',
|
352 |
-
'kiwi-pro' => '<span class="dashicons dashicons-yes"></span></i>',
|
353 |
-
),
|
354 |
-
'tweet-selected-text-selected' => array(
|
355 |
-
'label' => esc_html__( 'Tweet selected text on selected post types', 'kiwi-social-share' ),
|
356 |
-
'sub' => esc_html__( 'Allows tweeting the current selected text only on selected post types.', 'kiwi-social-share' ),
|
357 |
-
'kiwi' => '<span class="dashicons dashicons-no-alt"></span>',
|
358 |
-
'kiwi-pro' => '<span class="dashicons dashicons-yes"></span></i>',
|
359 |
-
),
|
360 |
-
'google-analytics-tracking' => array(
|
361 |
-
'label' => esc_html__( 'Google Analytics tracking', 'kiwi-social-share' ),
|
362 |
-
'sub' => esc_html__( 'Track the click events on your social networks.', 'kiwi-social-share' ),
|
363 |
-
'kiwi' => '<span class="dashicons dashicons-yes"></span>',
|
364 |
-
'kiwi-pro' => '<span class="dashicons dashicons-yes"></span></i>',
|
365 |
-
),
|
366 |
-
'shortcode-manager' => array(
|
367 |
-
'label' => esc_html__( 'Shortcode manager', 'kiwi-social-share' ),
|
368 |
-
'sub' => esc_html__( 'Enable the advanced shortcode manager.', 'kiwi-social-share' ),
|
369 |
-
'kiwi' => '<span class="dashicons dashicons-yes"></span>',
|
370 |
-
'kiwi-pro' => '<span class="dashicons dashicons-yes"></span></i>',
|
371 |
-
),
|
372 |
-
'whatsapp-desktop' => array(
|
373 |
-
'label' => esc_html__( 'WhatsApp icon visible on desktop browsers', 'kiwi-social-share' ),
|
374 |
-
'sub' => esc_html__( 'Desktop browsers can\'t handle WhatsApp sharing correctly, you can enable/disable the visibility of the icon by toggling this option.', 'kiwi-social-share' ),
|
375 |
-
'kiwi' => '<span class="dashicons dashicons-yes"></span>',
|
376 |
-
'kiwi-pro' => '<span class="dashicons dashicons-yes"></span></i>',
|
377 |
-
),
|
378 |
-
);
|
379 |
-
|
380 |
-
?>
|
381 |
-
|
382 |
-
<div class="wrap about-wrap kiwi-social-share-wrap">
|
383 |
-
<h1><?php echo esc_html__( 'Why you should be upgrading', 'saboxplugin' ); ?></h1>
|
384 |
-
<p class="about-text"><?php echo esc_html__( 'Introducing one of the best social sharing systems ever made for WordPress. Kiwi Social Share is an exquisite WordPress social share plugin perfectly fit for any needs. We\'ve outlined the PRO features below.', 'saboxplugin' ); ?></p>
|
385 |
-
<div class="wp-badge"></div>
|
386 |
-
<h2 class="nav-tab-wrapper wp-clearfix">
|
387 |
-
<a href="<?php echo admin_url( 'admin.php?page=sab-upgrade' ); ?>"
|
388 |
-
class="nav-tab nav-tab-active"><?php echo esc_html__( 'Comparison Table: Lite vs PRO', 'saboxplugin' ); ?></a>
|
389 |
-
</h2>
|
390 |
-
<div class="featured-section features">
|
391 |
-
<table class="free-pro-table kiwi">
|
392 |
-
<thead>
|
393 |
-
<tr>
|
394 |
-
<th></th>
|
395 |
-
<th><?php _e( 'Free', 'saboxplugin' ); ?></th>
|
396 |
-
<th><?php _e( 'PRO', 'saboxplugin' ); ?></th>
|
397 |
-
</tr>
|
398 |
-
</thead>
|
399 |
-
<tbody>
|
400 |
-
<?php foreach ( $features as $feature ) : ?>
|
401 |
-
<tr>
|
402 |
-
<td class="feature">
|
403 |
-
<h3><?php echo $feature['label']; ?></h3>
|
404 |
-
<?php if ( isset( $feature['sub'] ) ) : ?>
|
405 |
-
<p><?php echo $feature['sub']; ?></p>
|
406 |
-
<?php endif ?>
|
407 |
-
</td>
|
408 |
-
<td class="sab-feature">
|
409 |
-
<?php echo $feature['kiwi']; ?>
|
410 |
-
</td>
|
411 |
-
<td class="sab-pro-feature">
|
412 |
-
<?php echo $feature['kiwi-pro']; ?>
|
413 |
-
</td>
|
414 |
-
</tr>
|
415 |
-
<?php endforeach; ?>
|
416 |
-
<tr>
|
417 |
-
<td></td>
|
418 |
-
<td colspan="2" class="text-right">
|
419 |
-
<a href="https://www.machothemes.com/item/kiwi-pro/?utm_source=kiwi&utm_medium=about-page&utm_campaign=upsell"
|
420 |
-
target="_blank" class="button button-primary button-hero">
|
421 |
-
<span class="dashicons dashicons-cart"></span>
|
422 |
-
<?php _e( 'Get The Pro Version Now!', 'kiwi-social-share' ); ?>
|
423 |
-
</a></td>
|
424 |
-
</tr>
|
425 |
-
</tbody>
|
426 |
-
</table>
|
427 |
-
</div>
|
428 |
-
</div>
|
429 |
-
<?php
|
430 |
-
}
|
431 |
-
|
432 |
}
|
16 |
* @access private
|
17 |
* @since 1.0.0
|
18 |
*/
|
19 |
+
private static $_instance = NULL;
|
20 |
|
21 |
/**
|
22 |
* The main plugin object.
|
25 |
* @access public
|
26 |
* @since 1.0.0
|
27 |
*/
|
28 |
+
public $parent = NULL;
|
29 |
|
30 |
/**
|
31 |
* Prefix for plugin settings.
|
86 |
* @return void
|
87 |
*/
|
88 |
public function add_menu_item() {
|
89 |
+
|
90 |
$page = add_menu_page( __( 'Kiwi', 'kiwi-social-share' ), __( 'Kiwi', 'kiwi-social-share' ), 'manage_options', $this->parent->_token . '_settings', array(
|
91 |
$this,
|
92 |
'settings_page'
|
93 |
), 'dashicons-share-alt' );
|
94 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
95 |
|
96 |
$advanced_shortcodes = Kiwi_Social_Share_Helper::get_setting_value( 'advanced_shortcode_manager', false, 'kiwi_advanced_settings' );
|
97 |
if ( $advanced_shortcodes ) {
|
242 |
_doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?' ), $this->parent->_version );
|
243 |
} // End __wakeup()
|
244 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
245 |
}
|
includes/lib/class-kiwi-social-share-shortcodes.php
CHANGED
@@ -79,9 +79,9 @@ class Kiwi_Social_Share_Shortcodes {
|
|
79 |
public function kiwi_shortcode_columns( $columns ) {
|
80 |
$columns = array(
|
81 |
'cb' => '<input type="checkbox" />',
|
82 |
-
'title' => __( 'Shortcode' ),
|
83 |
-
'identifier' => __( 'Identifier' ),
|
84 |
-
'date' => __( 'Date' )
|
85 |
);
|
86 |
|
87 |
return $columns;
|
@@ -134,9 +134,15 @@ class Kiwi_Social_Share_Shortcodes {
|
|
134 |
'options' => array(
|
135 |
'facebook' => esc_html__( 'Facebook', 'kiwi-social-share' ),
|
136 |
'twitter' => esc_html__( 'Twitter', 'kiwi-social-share' ),
|
137 |
-
'google-plus' => esc_html__( 'Google Plus', 'kiwi-social-share' ),
|
138 |
'linkedin' => esc_html__( 'LinkedIn', 'kiwi-social-share' ),
|
139 |
'pinterest' => esc_html__( 'Pinterest', 'kiwi-social-share' ),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
140 |
),
|
141 |
)
|
142 |
);
|
79 |
public function kiwi_shortcode_columns( $columns ) {
|
80 |
$columns = array(
|
81 |
'cb' => '<input type="checkbox" />',
|
82 |
+
'title' => __( 'Shortcode', 'kiwi-social-share' ),
|
83 |
+
'identifier' => __( 'Identifier', 'kiwi-social-share' ),
|
84 |
+
'date' => __( 'Date', 'kiwi-social-share' )
|
85 |
);
|
86 |
|
87 |
return $columns;
|
134 |
'options' => array(
|
135 |
'facebook' => esc_html__( 'Facebook', 'kiwi-social-share' ),
|
136 |
'twitter' => esc_html__( 'Twitter', 'kiwi-social-share' ),
|
|
|
137 |
'linkedin' => esc_html__( 'LinkedIn', 'kiwi-social-share' ),
|
138 |
'pinterest' => esc_html__( 'Pinterest', 'kiwi-social-share' ),
|
139 |
+
/* start-pro-version */
|
140 |
+
'reddit' => esc_html__( 'Reddit', 'kiwi-social-share' ),
|
141 |
+
'email' => esc_html__( 'Email', 'kiwi-social-share' ),
|
142 |
+
'skype' => esc_html__( 'Skype', 'kiwi-social-share' ),
|
143 |
+
'telegram' => esc_html__( 'Telegram', 'kiwi-social-share' ),
|
144 |
+
'whatsapp' => esc_html__( 'WhatsApp', 'kiwi-social-share' ),
|
145 |
+
/* end-pro-version */
|
146 |
),
|
147 |
)
|
148 |
);
|
includes/lib/helpers/class-kiwi-social-share-helper.php
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
<?php
|
2 |
-
|
|
|
3 |
exit;
|
4 |
}
|
5 |
|
@@ -7,6 +8,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
7 |
* Class Kiwi_Social_Share_Helper
|
8 |
*/
|
9 |
class Kiwi_Social_Share_Helper {
|
|
|
10 |
/**
|
11 |
* @return array
|
12 |
*/
|
@@ -15,8 +17,8 @@ class Kiwi_Social_Share_Helper {
|
|
15 |
'public' => true,
|
16 |
);
|
17 |
|
18 |
-
$post_types
|
19 |
-
$return
|
20 |
|
21 |
foreach ( $post_types as $post_type ) {
|
22 |
$return[ $post_type->name ] = $post_type->label;
|
@@ -25,102 +27,102 @@ class Kiwi_Social_Share_Helper {
|
|
25 |
return $return;
|
26 |
}
|
27 |
|
28 |
-
|
29 |
/**
|
30 |
* @param string $network
|
31 |
* @param string $prop
|
32 |
*
|
33 |
* @return array
|
34 |
*/
|
35 |
-
public static function get_network_colors( $network = '',
|
|
|
36 |
$defaults = array(
|
37 |
-
'monochrome'
|
38 |
-
'background'
|
39 |
-
'text'
|
40 |
-
'hover_background'
|
41 |
-
'hover_text'
|
42 |
-
),
|
43 |
-
'facebook'
|
44 |
-
'background'
|
45 |
-
'text'
|
46 |
-
'hover_background'
|
47 |
-
'hover_text'
|
48 |
-
),
|
49 |
-
'twitter'
|
50 |
-
'background'
|
51 |
-
'text'
|
52 |
-
'hover_background'
|
53 |
-
'hover_text'
|
54 |
-
),
|
55 |
-
'
|
56 |
-
'background'
|
57 |
-
'text'
|
58 |
-
'hover_background'
|
59 |
-
'hover_text'
|
60 |
-
),
|
61 |
-
'
|
62 |
-
'background'
|
63 |
-
'text'
|
64 |
-
'hover_background'
|
65 |
-
'hover_text'
|
66 |
-
),
|
67 |
-
'
|
68 |
-
'background'
|
69 |
-
'text'
|
70 |
-
'hover_background'
|
71 |
-
'hover_text'
|
72 |
-
),
|
73 |
-
'
|
74 |
-
'background'
|
75 |
-
'text'
|
76 |
-
'hover_background'
|
77 |
-
'hover_text'
|
78 |
-
),
|
79 |
-
'
|
80 |
-
'background'
|
81 |
-
'text'
|
82 |
-
'hover_background'
|
83 |
-
'hover_text'
|
84 |
-
),
|
85 |
-
'
|
86 |
-
'background'
|
87 |
-
'text'
|
88 |
-
'hover_background'
|
89 |
-
'hover_text'
|
90 |
-
),
|
91 |
-
'
|
92 |
-
'background'
|
93 |
-
'text'
|
94 |
-
'hover_background'
|
95 |
-
'hover_text'
|
96 |
-
),
|
97 |
-
'
|
98 |
-
'background'
|
99 |
-
'text'
|
100 |
-
'hover_background'
|
101 |
-
'hover_text'
|
102 |
-
),
|
103 |
-
'
|
104 |
-
'background'
|
105 |
-
'text'
|
106 |
-
'hover_background'
|
107 |
-
'hover_text'
|
108 |
),
|
109 |
);
|
110 |
|
111 |
-
if ( !
|
112 |
return $defaults[ $network ][ $prop ];
|
113 |
}
|
114 |
|
115 |
$saved_order = self::get_setting_value( 'networks_ordering' );
|
116 |
|
117 |
-
if ( !
|
118 |
-
$array_keys
|
119 |
-
$defaults
|
120 |
}
|
121 |
|
122 |
$saved_options = get_option( 'kiwi_network_colors', false );
|
123 |
-
if (
|
124 |
return $defaults;
|
125 |
}
|
126 |
|
@@ -132,60 +134,60 @@ class Kiwi_Social_Share_Helper {
|
|
132 |
*/
|
133 |
public static function get_social_network_identities() {
|
134 |
return array(
|
135 |
-
'facebook'
|
136 |
-
'label'
|
137 |
-
'id'
|
138 |
-
'icon'
|
139 |
-
),
|
140 |
-
'twitter'
|
141 |
-
'label'
|
142 |
-
'id'
|
143 |
-
'icon'
|
144 |
-
),
|
145 |
-
'
|
146 |
-
'label'
|
147 |
-
'id'
|
148 |
-
'icon'
|
149 |
-
),
|
150 |
-
'
|
151 |
-
'label'
|
152 |
-
'id'
|
153 |
-
'icon'
|
154 |
-
),
|
155 |
-
'
|
156 |
-
'label'
|
157 |
-
'id'
|
158 |
-
'icon'
|
159 |
-
),
|
160 |
-
'
|
161 |
-
'label'
|
162 |
-
'id'
|
163 |
-
'icon'
|
164 |
-
),
|
165 |
-
'
|
166 |
-
'label'
|
167 |
-
'id'
|
168 |
-
'icon'
|
169 |
-
),
|
170 |
-
'
|
171 |
-
'label'
|
172 |
-
'id'
|
173 |
-
'icon'
|
174 |
-
),
|
175 |
-
'
|
176 |
-
'label'
|
177 |
-
'id'
|
178 |
-
'icon'
|
179 |
-
),
|
180 |
-
'
|
181 |
-
'label'
|
182 |
-
'id'
|
183 |
-
'icon'
|
184 |
-
),
|
185 |
-
'
|
186 |
-
'label'
|
187 |
-
'id'
|
188 |
-
'icon'
|
189 |
),
|
190 |
);
|
191 |
}
|
@@ -194,98 +196,103 @@ class Kiwi_Social_Share_Helper {
|
|
194 |
* @return array
|
195 |
*/
|
196 |
public static function get_checked_networks() {
|
197 |
-
$number
|
198 |
-
$defaults
|
199 |
-
'facebook'
|
200 |
-
'name'
|
201 |
-
'count'
|
202 |
-
'checked'
|
203 |
-
'locked'
|
204 |
-
),
|
205 |
-
'twitter'
|
206 |
-
'name'
|
207 |
-
'count'
|
208 |
-
'checked'
|
209 |
-
'locked'
|
210 |
-
),
|
211 |
-
'
|
212 |
-
'name'
|
213 |
-
'count'
|
214 |
-
'checked'
|
215 |
-
'locked'
|
216 |
-
),
|
217 |
-
'
|
218 |
-
'name'
|
219 |
-
'count'
|
220 |
-
'checked'
|
221 |
-
'locked'
|
222 |
-
),
|
223 |
-
'
|
224 |
-
'name'
|
225 |
-
'count'
|
226 |
-
'checked'
|
227 |
-
'locked'
|
228 |
-
),
|
229 |
-
'
|
230 |
-
'name'
|
231 |
-
'count'
|
232 |
-
'checked'
|
233 |
-
'locked'
|
234 |
-
),
|
235 |
-
/* start-
|
236 |
-
'reddit'
|
237 |
-
'name'
|
238 |
-
'count'
|
239 |
-
'checked'
|
240 |
-
'locked'
|
241 |
-
),
|
242 |
-
'email'
|
243 |
-
'name'
|
244 |
-
'count'
|
245 |
-
'checked'
|
246 |
-
'locked'
|
247 |
-
),
|
248 |
-
'telegram'
|
249 |
-
'name'
|
250 |
-
'count'
|
251 |
-
'checked'
|
252 |
-
'locked'
|
253 |
-
),
|
254 |
-
'whatsapp'
|
255 |
-
'name'
|
256 |
-
'count'
|
257 |
-
'checked'
|
258 |
-
'locked'
|
259 |
-
),
|
260 |
-
'skype'
|
261 |
-
'name'
|
262 |
-
'count'
|
263 |
-
'checked'
|
264 |
-
'locked'
|
265 |
-
),
|
266 |
-
|
267 |
-
|
268 |
);
|
269 |
|
270 |
$saved_order = self::get_setting_value( 'networks_ordering' );
|
271 |
|
272 |
-
if ( !
|
273 |
-
$array_keys
|
274 |
-
$defaults
|
275 |
}
|
276 |
|
277 |
-
$saved_article_bar_option
|
278 |
-
$saved_floating_bar_option
|
279 |
|
280 |
-
if ( !
|
281 |
foreach ( $saved_article_bar_option as $network ) {
|
282 |
-
|
|
|
|
|
|
|
|
|
283 |
}
|
284 |
}
|
285 |
|
286 |
-
if ( !
|
287 |
foreach ( $saved_floating_bar_option as $network ) {
|
288 |
-
$defaults[ $network ]['checked']
|
|
|
|
|
289 |
}
|
290 |
}
|
291 |
|
@@ -299,7 +306,9 @@ class Kiwi_Social_Share_Helper {
|
|
299 |
*
|
300 |
* @return mixed|string
|
301 |
*/
|
302 |
-
public static function get_setting_value( $option = '',
|
|
|
|
|
303 |
if ( empty( $group ) ) {
|
304 |
$group = 'kiwi_general_settings';
|
305 |
}
|
@@ -321,15 +330,15 @@ class Kiwi_Social_Share_Helper {
|
|
321 |
* @return array|bool|mixed|object|WP_Error
|
322 |
*/
|
323 |
public static function check_browser_version() {
|
324 |
-
if ( empty( $_SERVER['HTTP_USER_AGENT'] ) ) {
|
325 |
return false;
|
326 |
}
|
327 |
|
328 |
-
$key = md5( $_SERVER['HTTP_USER_AGENT'] );
|
329 |
|
330 |
if ( false === ( $response = get_site_transient( 'kiwi_browser_' . $key ) ) ) {
|
331 |
$options = array(
|
332 |
-
'body'
|
333 |
'user-agent' => 'WordPress/' . get_bloginfo( 'version' ) . '; ' . home_url()
|
334 |
);
|
335 |
|
@@ -352,7 +361,7 @@ class Kiwi_Social_Share_Helper {
|
|
352 |
*/
|
353 |
$response = json_decode( wp_remote_retrieve_body( $response ), true );
|
354 |
|
355 |
-
if ( !
|
356 |
return false;
|
357 |
}
|
358 |
|
@@ -369,7 +378,8 @@ class Kiwi_Social_Share_Helper {
|
|
369 |
*/
|
370 |
public static function get_excerpt_by_id( $id ) {
|
371 |
$the_post = get_post( $id );
|
372 |
-
|
|
|
373 |
return '';
|
374 |
}
|
375 |
|
@@ -380,10 +390,10 @@ class Kiwi_Social_Share_Helper {
|
|
380 |
}
|
381 |
|
382 |
|
383 |
-
$the_excerpt
|
384 |
-
$the_excerpt
|
385 |
-
$excerpt_length
|
386 |
-
$excerpt_more
|
387 |
|
388 |
$words = preg_split( "/[\n\r\t ]+/", $the_excerpt, $excerpt_length + 1, PREG_SPLIT_NO_EMPTY );
|
389 |
if ( count( $words ) > $excerpt_length ) {
|
@@ -413,62 +423,32 @@ class Kiwi_Social_Share_Helper {
|
|
413 |
|
414 |
return $content;
|
415 |
}
|
|
|
416 |
}
|
417 |
|
418 |
add_action( 'wp_ajax_kiwi_social_share_get_option', 'kiwi_social_share_get_option' );
|
|
|
419 |
add_action( 'wp_ajax_kiwi_social_share_set_option', 'kiwi_social_share_set_option' );
|
|
|
420 |
|
421 |
/**
|
422 |
*
|
423 |
*/
|
424 |
function kiwi_social_share_get_option() {
|
425 |
-
|
426 |
-
|
427 |
-
if ( ! in_array( $_POST['args']['group'], $allowed_options ) ) {
|
428 |
-
wp_die( 'Forbidden' );
|
429 |
-
}
|
430 |
-
|
431 |
-
if ( ! current_user_can( 'edit_posts' ) ) {
|
432 |
-
wp_die( 'Forbidden' );
|
433 |
-
}
|
434 |
-
|
435 |
-
$option = sanitize_text_field( $_POST['args']['option'] );
|
436 |
-
$default = sanitize_text_field( $_POST['args']['default'] );
|
437 |
-
$group = sanitize_text_field( $_POST['args']['group'] );
|
438 |
-
|
439 |
-
if ( ! empty( $_POST ) && $_POST['action'] === 'kiwi_social_share_get_option' ) {
|
440 |
-
$value = Kiwi_Social_Share_Helper::get_setting_value( $option, $default, $group );
|
441 |
-
wp_die( json_encode( esc_html( $value ) ) );
|
442 |
}
|
443 |
|
444 |
wp_die( 'Forbidden' );
|
445 |
}
|
446 |
|
447 |
-
|
448 |
function kiwi_social_share_set_option() {
|
449 |
-
|
450 |
-
|
451 |
-
|
452 |
-
|
453 |
-
|
454 |
-
$allowed_options = array( 'kiwi_registration' );
|
455 |
-
|
456 |
-
if ( ! in_array( $_POST['args']['group'], $allowed_options ) ) {
|
457 |
-
wp_die( 'Forbidden' );
|
458 |
-
}
|
459 |
-
|
460 |
-
if ( ! empty( $_POST ) && $_POST['action'] === 'kiwi_social_share_set_option' ) {
|
461 |
-
|
462 |
-
$group = sanitize_text_field( $_POST['args']['group'] );
|
463 |
-
$key = sanitize_text_field( $_POST['args']['option'] );
|
464 |
-
$value = sanitize_text_field( $_POST['args']['value'] );
|
465 |
-
|
466 |
-
$option = get_option( $group );
|
467 |
-
$option[ $key ] = $value;
|
468 |
-
update_option( $group, $option );
|
469 |
wp_die( 'Success' );
|
470 |
}
|
471 |
|
472 |
wp_die( 'Forbidden' );
|
473 |
}
|
474 |
-
|
1 |
<?php
|
2 |
+
|
3 |
+
if ( !defined( 'ABSPATH' ) ) {
|
4 |
exit;
|
5 |
}
|
6 |
|
8 |
* Class Kiwi_Social_Share_Helper
|
9 |
*/
|
10 |
class Kiwi_Social_Share_Helper {
|
11 |
+
|
12 |
/**
|
13 |
* @return array
|
14 |
*/
|
17 |
'public' => true,
|
18 |
);
|
19 |
|
20 |
+
$post_types = get_post_types( $args, 'objects' );
|
21 |
+
$return = array();
|
22 |
|
23 |
foreach ( $post_types as $post_type ) {
|
24 |
$return[ $post_type->name ] = $post_type->label;
|
27 |
return $return;
|
28 |
}
|
29 |
|
|
|
30 |
/**
|
31 |
* @param string $network
|
32 |
* @param string $prop
|
33 |
*
|
34 |
* @return array
|
35 |
*/
|
36 |
+
public static function get_network_colors( $network = '',
|
37 |
+
$prop = '' ) {
|
38 |
$defaults = array(
|
39 |
+
'monochrome' => array(
|
40 |
+
'background' => '#666666',
|
41 |
+
'text' => '#ffffff',
|
42 |
+
'hover_background' => '#222222',
|
43 |
+
'hover_text' => '#ffffff',
|
44 |
+
),
|
45 |
+
'facebook' => array(
|
46 |
+
'background' => '#3b5998',
|
47 |
+
'text' => '#ffffff',
|
48 |
+
'hover_background' => '#1b4199',
|
49 |
+
'hover_text' => '#ffffff',
|
50 |
+
),
|
51 |
+
'twitter' => array(
|
52 |
+
'background' => '#4eaef8',
|
53 |
+
'text' => '#ffffff',
|
54 |
+
'hover_background' => '#1193f7',
|
55 |
+
'hover_text' => '#ffffff',
|
56 |
+
),
|
57 |
+
'pinterest' => array(
|
58 |
+
'background' => '#bd081c',
|
59 |
+
'text' => '#ffffff',
|
60 |
+
'hover_background' => '#770107',
|
61 |
+
'hover_text' => '#ffffff',
|
62 |
+
),
|
63 |
+
'fintel' => array(
|
64 |
+
'background' => '#087515',
|
65 |
+
'text' => '#ffffff',
|
66 |
+
'hover_background' => '#087515',
|
67 |
+
'hover_text' => '#ffffff',
|
68 |
+
),
|
69 |
+
'linkedin' => array(
|
70 |
+
'background' => '#1a85bc',
|
71 |
+
'text' => '#ffffff',
|
72 |
+
'hover_background' => '#006aa8',
|
73 |
+
'hover_text' => '#ffffff',
|
74 |
+
),
|
75 |
+
'reddit' => array(
|
76 |
+
'background' => '#ff4500',
|
77 |
+
'text' => '#ffffff',
|
78 |
+
'hover_background' => '#e22500',
|
79 |
+
'hover_text' => '#ffffff',
|
80 |
+
),
|
81 |
+
'email' => array(
|
82 |
+
'background' => '#4d9159',
|
83 |
+
'text' => '#ffffff',
|
84 |
+
'hover_background' => '#0e9126',
|
85 |
+
'hover_text' => '#ffffff',
|
86 |
+
),
|
87 |
+
'telegram' => array(
|
88 |
+
'background' => '#179cde',
|
89 |
+
'text' => '#ffffff',
|
90 |
+
'hover_background' => '#008cea',
|
91 |
+
'hover_text' => '#ffffff',
|
92 |
+
),
|
93 |
+
'whatsapp' => array(
|
94 |
+
'background' => '#0dc143',
|
95 |
+
'text' => '#ffffff',
|
96 |
+
'hover_background' => '#499b06',
|
97 |
+
'hover_text' => '#ffffff',
|
98 |
+
),
|
99 |
+
'skype' => array(
|
100 |
+
'background' => '#009ee5',
|
101 |
+
'text' => '#ffffff',
|
102 |
+
'hover_background' => '#008ae0',
|
103 |
+
'hover_text' => '#ffffff',
|
104 |
+
),
|
105 |
+
'mix' => array(
|
106 |
+
'background' => '#009ee5',
|
107 |
+
'text' => '#ffffff',
|
108 |
+
'hover_background' => '#008ae0',
|
109 |
+
'hover_text' => '#ffffff',
|
110 |
),
|
111 |
);
|
112 |
|
113 |
+
if ( !empty( $network ) && !empty( $prop ) ) {
|
114 |
return $defaults[ $network ][ $prop ];
|
115 |
}
|
116 |
|
117 |
$saved_order = self::get_setting_value( 'networks_ordering' );
|
118 |
|
119 |
+
if ( !empty( $saved_order ) ) {
|
120 |
+
$array_keys = explode( ',', $saved_order );
|
121 |
+
$defaults = array_replace( array_flip( array_filter( $array_keys ) ), $defaults );
|
122 |
}
|
123 |
|
124 |
$saved_options = get_option( 'kiwi_network_colors', false );
|
125 |
+
if ( !$saved_options ) {
|
126 |
return $defaults;
|
127 |
}
|
128 |
|
134 |
*/
|
135 |
public static function get_social_network_identities() {
|
136 |
return array(
|
137 |
+
'facebook' => array(
|
138 |
+
'label' => esc_html__( 'Facebook', 'kiwi-social-share' ),
|
139 |
+
'id' => 'facebook',
|
140 |
+
'icon' => 'facebook',
|
141 |
+
),
|
142 |
+
'twitter' => array(
|
143 |
+
'label' => esc_html__( 'Twitter', 'kiwi-social-share' ),
|
144 |
+
'id' => 'twitter',
|
145 |
+
'icon' => 'twitter',
|
146 |
+
),
|
147 |
+
'pinterest' => array(
|
148 |
+
'label' => esc_html__( 'Pinterest', 'kiwi-social-share' ),
|
149 |
+
'id' => 'pinterest',
|
150 |
+
'icon' => 'pinterest',
|
151 |
+
),
|
152 |
+
'fintel' => array(
|
153 |
+
'label' => esc_html__( 'Fintel', 'kiwi-social-share' ),
|
154 |
+
'id' => 'fintel',
|
155 |
+
'icon' => 'fintel',
|
156 |
+
),
|
157 |
+
'linkedin' => array(
|
158 |
+
'label' => esc_html__( 'LinkedIn', 'kiwi-social-share' ),
|
159 |
+
'id' => 'linkedin',
|
160 |
+
'icon' => 'linkedin',
|
161 |
+
),
|
162 |
+
'reddit' => array(
|
163 |
+
'label' => esc_html__( 'Reddit', 'kiwi-social-share' ),
|
164 |
+
'id' => 'reddit',
|
165 |
+
'icon' => 'reddit',
|
166 |
+
),
|
167 |
+
'email' => array(
|
168 |
+
'label' => esc_html__( 'Email', 'kiwi-social-share' ),
|
169 |
+
'id' => 'email',
|
170 |
+
'icon' => 'envelope',
|
171 |
+
),
|
172 |
+
'telegram' => array(
|
173 |
+
'label' => esc_html__( 'Telegram', 'kiwi-social-share' ),
|
174 |
+
'id' => 'telegram',
|
175 |
+
'icon' => 'telegram',
|
176 |
+
),
|
177 |
+
'whatsapp' => array(
|
178 |
+
'label' => esc_html__( 'WhatsApp', 'kiwi-social-share' ),
|
179 |
+
'id' => 'whatsapp',
|
180 |
+
'icon' => 'whatsapp',
|
181 |
+
),
|
182 |
+
'skype' => array(
|
183 |
+
'label' => esc_html__( 'Skype', 'kiwi-social-share' ),
|
184 |
+
'id' => 'skype',
|
185 |
+
'icon' => 'skype',
|
186 |
+
),
|
187 |
+
'mix' => array(
|
188 |
+
'label' => esc_html__( 'Mix', 'kiwi-social-share' ),
|
189 |
+
'id' => 'mix',
|
190 |
+
'icon' => 'mix',
|
191 |
),
|
192 |
);
|
193 |
}
|
196 |
* @return array
|
197 |
*/
|
198 |
public static function get_checked_networks() {
|
199 |
+
$number = number_format( rand( 1, 9999 ) );
|
200 |
+
$defaults = array(
|
201 |
+
'facebook' => array(
|
202 |
+
'name' => 'facebook',
|
203 |
+
'count' => $number,
|
204 |
+
'checked' => array(),
|
205 |
+
'locked' => false,
|
206 |
+
),
|
207 |
+
'twitter' => array(
|
208 |
+
'name' => 'twitter',
|
209 |
+
'count' => $number,
|
210 |
+
'checked' => array(),
|
211 |
+
'locked' => false,
|
212 |
+
),
|
213 |
+
'pinterest' => array(
|
214 |
+
'name' => 'pinterest',
|
215 |
+
'count' => $number,
|
216 |
+
'checked' => array(),
|
217 |
+
'locked' => false,
|
218 |
+
),
|
219 |
+
'fintel' => array(
|
220 |
+
'name' => 'fintel',
|
221 |
+
'count' => $number,
|
222 |
+
'checked' => array(),
|
223 |
+
'locked' => false,
|
224 |
+
),
|
225 |
+
'linkedin' => array(
|
226 |
+
'name' => 'linkedin',
|
227 |
+
'count' => $number,
|
228 |
+
'checked' => array(),
|
229 |
+
'locked' => false,
|
230 |
+
),
|
231 |
+
'mix' => array(
|
232 |
+
'name' => 'mix',
|
233 |
+
'count' => 0,
|
234 |
+
'checked' => array(),
|
235 |
+
'locked' => false
|
236 |
+
),
|
237 |
+
/* start-pro-version */
|
238 |
+
'reddit' => array(
|
239 |
+
'name' => 'reddit',
|
240 |
+
'count' => $number,
|
241 |
+
'checked' => array(),
|
242 |
+
'locked' => false,
|
243 |
+
),
|
244 |
+
'email' => array(
|
245 |
+
'name' => 'email',
|
246 |
+
'count' => 0,
|
247 |
+
'checked' => array(),
|
248 |
+
'locked' => false,
|
249 |
+
),
|
250 |
+
'telegram' => array(
|
251 |
+
'name' => 'telegram',
|
252 |
+
'count' => 0,
|
253 |
+
'checked' => array(),
|
254 |
+
'locked' => false
|
255 |
+
),
|
256 |
+
'whatsapp' => array(
|
257 |
+
'name' => 'whatsapp',
|
258 |
+
'count' => 0,
|
259 |
+
'checked' => array(),
|
260 |
+
'locked' => false
|
261 |
+
),
|
262 |
+
'skype' => array(
|
263 |
+
'name' => 'skype',
|
264 |
+
'count' => 0,
|
265 |
+
'checked' => array(),
|
266 |
+
'locked' => false
|
267 |
+
),
|
268 |
+
/* end-pro-version */
|
|
|
269 |
);
|
270 |
|
271 |
$saved_order = self::get_setting_value( 'networks_ordering' );
|
272 |
|
273 |
+
if ( !empty( $saved_order ) ) {
|
274 |
+
$array_keys = explode( ',', $saved_order );
|
275 |
+
$defaults = array_replace( array_flip( array_filter( $array_keys ) ), $defaults );
|
276 |
}
|
277 |
|
278 |
+
$saved_article_bar_option = self::get_setting_value( 'networks_article_bar', array() );
|
279 |
+
$saved_floating_bar_option = self::get_setting_value( 'networks_floating_bar', array() );
|
280 |
|
281 |
+
if ( !empty( $saved_article_bar_option ) ) {
|
282 |
foreach ( $saved_article_bar_option as $network ) {
|
283 |
+
|
284 |
+
if ( isset( $defaults[ $network ]['checked'] ) ) {
|
285 |
+
$defaults[ $network ][ 'checked' ][] = 'article-bar';
|
286 |
+
}
|
287 |
+
|
288 |
}
|
289 |
}
|
290 |
|
291 |
+
if ( !empty( $saved_floating_bar_option ) ) {
|
292 |
foreach ( $saved_floating_bar_option as $network ) {
|
293 |
+
if ( isset( $defaults[ $network ]['checked'] ) ) {
|
294 |
+
$defaults[ $network ][ 'checked' ][] = 'floating-bar';
|
295 |
+
}
|
296 |
}
|
297 |
}
|
298 |
|
306 |
*
|
307 |
* @return mixed|string
|
308 |
*/
|
309 |
+
public static function get_setting_value( $option = '',
|
310 |
+
$default = '',
|
311 |
+
$group = '' ) {
|
312 |
if ( empty( $group ) ) {
|
313 |
$group = 'kiwi_general_settings';
|
314 |
}
|
330 |
* @return array|bool|mixed|object|WP_Error
|
331 |
*/
|
332 |
public static function check_browser_version() {
|
333 |
+
if ( empty( $_SERVER[ 'HTTP_USER_AGENT' ] ) ) {
|
334 |
return false;
|
335 |
}
|
336 |
|
337 |
+
$key = md5( $_SERVER[ 'HTTP_USER_AGENT' ] );
|
338 |
|
339 |
if ( false === ( $response = get_site_transient( 'kiwi_browser_' . $key ) ) ) {
|
340 |
$options = array(
|
341 |
+
'body' => array( 'useragent' => $_SERVER[ 'HTTP_USER_AGENT' ] ),
|
342 |
'user-agent' => 'WordPress/' . get_bloginfo( 'version' ) . '; ' . home_url()
|
343 |
);
|
344 |
|
361 |
*/
|
362 |
$response = json_decode( wp_remote_retrieve_body( $response ), true );
|
363 |
|
364 |
+
if ( !is_array( $response ) ) {
|
365 |
return false;
|
366 |
}
|
367 |
|
378 |
*/
|
379 |
public static function get_excerpt_by_id( $id ) {
|
380 |
$the_post = get_post( $id );
|
381 |
+
|
382 |
+
if ( NULL == $the_post ) {
|
383 |
return '';
|
384 |
}
|
385 |
|
390 |
}
|
391 |
|
392 |
|
393 |
+
$the_excerpt = strip_tags( strip_shortcodes( $the_excerpt ) );
|
394 |
+
$the_excerpt = str_replace( ']]>', ']]>', $the_excerpt );
|
395 |
+
$excerpt_length = apply_filters( 'excerpt_length', 100 );
|
396 |
+
$excerpt_more = apply_filters( 'excerpt_more', ' ' . '[...]' );
|
397 |
|
398 |
$words = preg_split( "/[\n\r\t ]+/", $the_excerpt, $excerpt_length + 1, PREG_SPLIT_NO_EMPTY );
|
399 |
if ( count( $words ) > $excerpt_length ) {
|
423 |
|
424 |
return $content;
|
425 |
}
|
426 |
+
|
427 |
}
|
428 |
|
429 |
add_action( 'wp_ajax_kiwi_social_share_get_option', 'kiwi_social_share_get_option' );
|
430 |
+
add_action( 'wp_ajax_nopriv_kiwi_social_share_get_option', 'kiwi_social_share_get_option' );
|
431 |
add_action( 'wp_ajax_kiwi_social_share_set_option', 'kiwi_social_share_set_option' );
|
432 |
+
add_action( 'wp_ajax_nopriv_kiwi_social_share_set_option', 'kiwi_social_share_set_option' );
|
433 |
|
434 |
/**
|
435 |
*
|
436 |
*/
|
437 |
function kiwi_social_share_get_option() {
|
438 |
+
if ( !empty( $_POST ) && $_POST[ 'action' ] === 'kiwi_social_share_get_option' ) {
|
439 |
+
wp_die( json_encode( Kiwi_Social_Share_Helper::get_setting_value( $_POST[ 'args' ][ 'option' ], $_POST[ 'args' ][ 'default' ], $_POST[ 'args' ][ 'group' ] ) ) );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
440 |
}
|
441 |
|
442 |
wp_die( 'Forbidden' );
|
443 |
}
|
444 |
|
|
|
445 |
function kiwi_social_share_set_option() {
|
446 |
+
if ( !empty( $_POST ) && $_POST[ 'action' ] === 'kiwi_social_share_set_option' ) {
|
447 |
+
$option = get_option( $_POST[ 'args' ][ 'group' ] );
|
448 |
+
$option[ $_POST[ 'args' ][ 'option' ] ] = $_POST[ 'args' ][ 'value' ];
|
449 |
+
update_option( $_POST[ 'args' ][ 'group' ], $option );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
450 |
wp_die( 'Success' );
|
451 |
}
|
452 |
|
453 |
wp_die( 'Forbidden' );
|
454 |
}
|
|
kiwi-social-share.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
* Plugin Name: Kiwi Social Share - Social Media Share Buttons & Icons
|
4 |
-
* Version: 2.0
|
5 |
* Description: Really beautiful & simple social media & share buttons + icons. Simplicity & speed is key with this social media share plugin.
|
6 |
* Author: WPKube
|
7 |
* Author URI: https://www.wpkube.com/
|
@@ -58,7 +58,7 @@ require_once 'includes/class-kiwi-social-share-autoloader.php';
|
|
58 |
* @return object Kiwi_Social_Share
|
59 |
*/
|
60 |
function Kiwi_Social_Share() {
|
61 |
-
$instance = Kiwi_Social_Share::instance( __FILE__, '2.0
|
62 |
|
63 |
if ( is_null( $instance->settings ) ) {
|
64 |
$instance->settings = Kiwi_Social_Share_Settings::instance( $instance );
|
@@ -80,5 +80,4 @@ function kiwi_social_share_check_for_review() {
|
|
80 |
|
81 |
Kiwi_Social_Share();
|
82 |
|
83 |
-
kiwi_social_share_check_for_review();
|
84 |
-
|
1 |
<?php
|
2 |
/*
|
3 |
* Plugin Name: Kiwi Social Share - Social Media Share Buttons & Icons
|
4 |
+
* Version: 2.1.0
|
5 |
* Description: Really beautiful & simple social media & share buttons + icons. Simplicity & speed is key with this social media share plugin.
|
6 |
* Author: WPKube
|
7 |
* Author URI: https://www.wpkube.com/
|
58 |
* @return object Kiwi_Social_Share
|
59 |
*/
|
60 |
function Kiwi_Social_Share() {
|
61 |
+
$instance = Kiwi_Social_Share::instance( __FILE__, '2.1.0' );
|
62 |
|
63 |
if ( is_null( $instance->settings ) ) {
|
64 |
$instance->settings = Kiwi_Social_Share_Settings::instance( $instance );
|
80 |
|
81 |
Kiwi_Social_Share();
|
82 |
|
83 |
+
kiwi_social_share_check_for_review();
|
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@
|
|
3 |
Contributors: wpkube
|
4 |
Tags: social media button, social share button, social floating bar, social share bar, facebook share, social sharing icons, twitter share, woocommerce sharing, share buttons, pinterest share, social share counters
|
5 |
Requires at least: 3.8
|
6 |
-
Tested up to: 5.
|
7 |
-
Stable tag: 2.0
|
8 |
License: GPLv3 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -78,6 +78,9 @@ Floating Bar Filters
|
|
78 |
|
79 |
== Changelog ==
|
80 |
|
|
|
|
|
|
|
81 |
= 2.0.16 =
|
82 |
* Fixes issue with "highlight to share" not working ( CSS/JS not loaded ) for some pages
|
83 |
|
3 |
Contributors: wpkube
|
4 |
Tags: social media button, social share button, social floating bar, social share bar, facebook share, social sharing icons, twitter share, woocommerce sharing, share buttons, pinterest share, social share counters
|
5 |
Requires at least: 3.8
|
6 |
+
Tested up to: 5.7
|
7 |
+
Stable tag: 2.1.0
|
8 |
License: GPLv3 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
78 |
|
79 |
== Changelog ==
|
80 |
|
81 |
+
= 2.1.0 =
|
82 |
+
* All PRO features are now available in this version
|
83 |
+
|
84 |
= 2.0.16 =
|
85 |
* Fixes issue with "highlight to share" not working ( CSS/JS not loaded ) for some pages
|
86 |
|