Version Description
- Major plugin code clean up and refactor.
- Addition of Button Preview in admin.
- New admin menu layout design.
- Addition of Whatsapp and Xing buttons.
Download this release
Release Info
Developer | DavidoffNeal |
Plugin | Simple Share Buttons Adder |
Version | 7.3.6 |
Comparing to | |
See all releases |
Code changes from version 6.3.6 to 7.3.6
- buttons/arbenta/facebook_save.png +0 -0
- buttons/arbenta/whatsapp.png +0 -0
- buttons/arbenta/xing.png +0 -0
- buttons/metal/facebook_save.png +0 -0
- buttons/metal/whatsapp.png +0 -0
- buttons/metal/xing.png +0 -0
- buttons/pagepeel/facebook_save.png +0 -0
- buttons/pagepeel/whatsapp.png +0 -0
- buttons/pagepeel/xing.png +0 -0
- buttons/plain/facebook_save.png +0 -0
- buttons/plain/whatsapp.png +0 -0
- buttons/plain/xing.png +0 -0
- buttons/retro/facebook_save.png +0 -0
- buttons/retro/whatsapp.png +0 -0
- buttons/retro/xing.png +0 -0
- buttons/ribbons/facebook_save.png +0 -0
- buttons/ribbons/whatsapp.png +0 -0
- buttons/ribbons/xing.png +0 -0
- buttons/simple/facebook_save.png +0 -0
- buttons/simple/whatsapp.png +0 -0
- buttons/simple/xing.png +0 -0
- buttons/somacro/facebook_save.png +0 -0
- buttons/somacro/whatsapp.png +0 -0
- buttons/somacro/xing.png +0 -0
- css/admin-theme.css +579 -0
- css/colorpicker.css +26 -16
- css/readable.css +1 -1
- css/share-buttons/1.css +1 -0
- css/share-buttons/10.css +1 -0
- css/share-buttons/11.css +1 -0
- css/share-buttons/2.css +1 -0
- css/share-buttons/3.css +1 -0
- css/share-buttons/4.css +1 -0
- css/share-buttons/5.css +1 -0
- css/share-buttons/6.css +1 -0
- css/share-buttons/7.css +1 -0
- css/share-buttons/8.css +1 -0
- css/share-buttons/9.css +1 -0
- css/ssba.css +1 -0
- css/ssbp-admin-theme.css +0 -427
- css/style.css +118 -25
- css/{ssbp_switch.css → switch.css} +0 -0
- inc/ssba_admin_bits.php +0 -230
- inc/ssba_admin_panel.php +0 -1101
- inc/ssba_buttons.php +0 -1012
- inc/ssba_database.php +0 -383
- inc/ssba_styles.php +0 -230
- inc/ssba_widget.php +0 -92
- inc/ssbp_forms.php +0 -197
- instance.php +29 -0
- js/admin.js +852 -0
- js/ssba.js +99 -40
- js/ssba.min.js +0 -1
- js/ssba_admin.js +0 -122
- js/ssbp_admin.js +0 -135
- js/{ssba_bootstrap.js → vendor/bootstrap.js} +0 -0
- js/{ssba_colorpicker.js → vendor/colorpicker.js} +70 -2
- js/{ssba_switch.js → vendor/switch.js} +0 -0
- php/class-admin-bits.php +420 -0
- php/class-admin-panel.php +1647 -0
- php/class-buttons.php +1389 -0
- php/class-database.php +595 -0
- php/class-forms.php +257 -0
- php/class-plugin-base.php +330 -0
- php/class-plugin.php +82 -0
- php/class-simple-share-buttons-adder.php +89 -0
- php/class-styles.php +275 -0
- php/class-widget.php +125 -0
- readme.txt +43 -38
- simple-share-buttons-adder.php +44 -95
- templates/admin-footer.php +38 -0
- templates/admin-header.php +57 -0
- templates/admin-panel.php +45 -0
- templates/classic-tab.php +345 -0
- templates/plus-tab.php +283 -0
- templates/share-bar-tab.php +262 -0
buttons/arbenta/facebook_save.png
CHANGED
Binary file
|
buttons/arbenta/whatsapp.png
ADDED
Binary file
|
buttons/arbenta/xing.png
ADDED
Binary file
|
buttons/metal/facebook_save.png
CHANGED
Binary file
|
buttons/metal/whatsapp.png
ADDED
Binary file
|
buttons/metal/xing.png
ADDED
Binary file
|
buttons/pagepeel/facebook_save.png
CHANGED
Binary file
|
buttons/pagepeel/whatsapp.png
ADDED
Binary file
|
buttons/pagepeel/xing.png
ADDED
Binary file
|
buttons/plain/facebook_save.png
CHANGED
Binary file
|
buttons/plain/whatsapp.png
ADDED
Binary file
|
buttons/plain/xing.png
ADDED
Binary file
|
buttons/retro/facebook_save.png
CHANGED
Binary file
|
buttons/retro/whatsapp.png
ADDED
Binary file
|
buttons/retro/xing.png
ADDED
Binary file
|
buttons/ribbons/facebook_save.png
CHANGED
Binary file
|
buttons/ribbons/whatsapp.png
ADDED
Binary file
|
buttons/ribbons/xing.png
ADDED
Binary file
|
buttons/simple/facebook_save.png
CHANGED
Binary file
|
buttons/simple/whatsapp.png
ADDED
Binary file
|
buttons/simple/xing.png
ADDED
Binary file
|
buttons/somacro/facebook_save.png
CHANGED
Binary file
|
buttons/somacro/whatsapp.png
ADDED
Binary file
|
buttons/somacro/xing.png
ADDED
Binary file
|
css/admin-theme.css
ADDED
@@ -0,0 +1,579 @@
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â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â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
1 |
+
/* Admin Theme Styles */
|
2 |
+
|
3 |
+
.ssbp-btn:before,
|
4 |
+
.ssbp-toggle-switch:before {
|
5 |
+
display: inline-block;
|
6 |
+
font-family: 'ssbp';
|
7 |
+
speak: none;
|
8 |
+
font-size: 24px;
|
9 |
+
font-style: normal;
|
10 |
+
font-weight: normal;
|
11 |
+
font-variant: normal;
|
12 |
+
text-transform: none
|
13 |
+
}
|
14 |
+
.ssbp-arrow-right:before {
|
15 |
+
content: "\e612"
|
16 |
+
}
|
17 |
+
.ssbp-arrow-left:before {
|
18 |
+
content: "\e613"
|
19 |
+
}
|
20 |
+
.ssbp-arrow-down:before {
|
21 |
+
content: "\e619"
|
22 |
+
}
|
23 |
+
.ssbp-arrow-up:before {
|
24 |
+
content: "\e61a"
|
25 |
+
}
|
26 |
+
.ssbp-chevron-down:before,
|
27 |
+
.ssbp-toggle-switch:before {
|
28 |
+
content: "\e618"
|
29 |
+
}
|
30 |
+
.ssbp-chevron-up:before,
|
31 |
+
.ssbp--state-hidden .ssbp-toggle-switch:before {
|
32 |
+
content: "\e615"
|
33 |
+
}
|
34 |
+
.ssbp-chevron-right:before,
|
35 |
+
.ssbp--fixed-right .ssbp-toggle-switch:before,
|
36 |
+
.ssbp--state-hidden.ssbp--fixed-left .ssbp-toggle-switch:before {
|
37 |
+
content: "\e616"
|
38 |
+
}
|
39 |
+
.ssbp-chevron-left:before,
|
40 |
+
.ssbp--fixed-left .ssbp-toggle-switch:before,
|
41 |
+
.ssbp--state-hidden.ssbp--fixed-right .ssbp-toggle-switch:before {
|
42 |
+
content: "\e617"
|
43 |
+
}
|
44 |
+
.ssbp-simplesharebuttons:before {
|
45 |
+
content: "\e611"
|
46 |
+
}
|
47 |
+
.ssbp-yummly:before {
|
48 |
+
content: "\e60b"
|
49 |
+
}
|
50 |
+
.ssbp-whatsapp:before {
|
51 |
+
content: "\e60f"
|
52 |
+
}
|
53 |
+
.ssbp-diggit:before {
|
54 |
+
content: "\e60c"
|
55 |
+
}
|
56 |
+
.ssbp-buffer:before {
|
57 |
+
content: "\e60d"
|
58 |
+
}
|
59 |
+
.ssbp-close:before {
|
60 |
+
content: "\e614"
|
61 |
+
}
|
62 |
+
.ssbp-twitter:before {
|
63 |
+
content: "\e605"
|
64 |
+
}
|
65 |
+
.ssbp-reddit:before {
|
66 |
+
content: "\e606"
|
67 |
+
}
|
68 |
+
.ssbp-flattr:before {
|
69 |
+
content: "\e607"
|
70 |
+
}
|
71 |
+
.ssbp-tumblr:before {
|
72 |
+
content: "\e608"
|
73 |
+
}
|
74 |
+
.ssbp-linkedin:before {
|
75 |
+
content: "\e609"
|
76 |
+
}
|
77 |
+
.ssbp-google:before {
|
78 |
+
content: "\e60a"
|
79 |
+
}
|
80 |
+
.ssbp-xing:before {
|
81 |
+
content: "\e610"
|
82 |
+
}
|
83 |
+
.ssbp-facebook:before {
|
84 |
+
content: "\e60e"
|
85 |
+
}
|
86 |
+
.ssbp-facebook_save:before {
|
87 |
+
content: "\e900";
|
88 |
+
}
|
89 |
+
.ssbp-vk:before {
|
90 |
+
content: "\e600"
|
91 |
+
}
|
92 |
+
.ssbp-stumbleupon:before {
|
93 |
+
content: "\e601"
|
94 |
+
}
|
95 |
+
.ssbp-print:before {
|
96 |
+
content: "\e602"
|
97 |
+
}
|
98 |
+
.ssbp-pinterest:before {
|
99 |
+
content: "\e603"
|
100 |
+
}
|
101 |
+
.ssbp-email:before {
|
102 |
+
content: "\e604"
|
103 |
+
}
|
104 |
+
|
105 |
+
.ssbp-wrap *,
|
106 |
+
.ssbp-wrap *:before,
|
107 |
+
.ssbp-wrap *:after {
|
108 |
+
box-sizing: border-box
|
109 |
+
}
|
110 |
+
.ssbp-input-url-div,
|
111 |
+
.ssbp-total-shares,
|
112 |
+
.ssba-hide-button.ssbp-each-share,
|
113 |
+
.ssbp-toggle-switch,
|
114 |
+
.ssbp-text {
|
115 |
+
display: none
|
116 |
+
}
|
117 |
+
.ssbp-wrap {
|
118 |
+
position: relative;
|
119 |
+
display: inline-block;
|
120 |
+
padding: 0px;
|
121 |
+
font-size: 0;
|
122 |
+
color: #272727
|
123 |
+
}
|
124 |
+
.ssbp-wrap.ssbp--centred {
|
125 |
+
display: block;
|
126 |
+
text-align: center
|
127 |
+
}
|
128 |
+
.ssbp-wrap.ssbp--aligned-right {
|
129 |
+
display: block;
|
130 |
+
text-align: right
|
131 |
+
}
|
132 |
+
.ssbp-wrap.ssbp--aligned-right .ssbp-container {
|
133 |
+
display: inline-block
|
134 |
+
}
|
135 |
+
.ssbp-wrap .ssbp-container,
|
136 |
+
.ssbp-wrap .ssbp-toggle-switch {
|
137 |
+
font-size: 16px
|
138 |
+
}
|
139 |
+
.ssbp-wrap .ssbp-list {
|
140 |
+
list-style: none;
|
141 |
+
display: inline-block;
|
142 |
+
vertical-align: middle;
|
143 |
+
margin: 0;
|
144 |
+
padding: 0
|
145 |
+
}
|
146 |
+
.ssbp-wrap .ssbp-list li {
|
147 |
+
position: relative;
|
148 |
+
display: inline-block;
|
149 |
+
vertical-align: top
|
150 |
+
}
|
151 |
+
.ssbp-wrap .ssbp-list li:first-of-type {
|
152 |
+
margin-left: 0
|
153 |
+
}
|
154 |
+
.ssbp-wrap .ssbp-btn {
|
155 |
+
display: inline-block;
|
156 |
+
text-align: center;
|
157 |
+
text-decoration: none;
|
158 |
+
font-family: sans-serif
|
159 |
+
}
|
160 |
+
.ssbp-wrap.ssbp--stacked .ssbp-list li,
|
161 |
+
.ssbp-wrap.ssbp--fixed-left .ssbp-list li,
|
162 |
+
.ssbp-wrap.ssbp--fixed-right .ssbp-list li {
|
163 |
+
display: block;
|
164 |
+
margin-top: 6px;
|
165 |
+
margin-left: 0 !important;
|
166 |
+
margin-right: 0 !important
|
167 |
+
}
|
168 |
+
.ssbp-wrap.ssbp--stacked .ssbp-list li:first-of-type,
|
169 |
+
.ssbp-wrap.ssbp--fixed-left .ssbp-list li:first-of-type,
|
170 |
+
.ssbp-wrap.ssbp--fixed-right .ssbp-list li:first-of-type {
|
171 |
+
margin-top: 0
|
172 |
+
}
|
173 |
+
.ssbp-wrap[class*="ssbp--fixed"] {
|
174 |
+
position: fixed;
|
175 |
+
z-index: 99999
|
176 |
+
}
|
177 |
+
.ssbp-wrap[class*="ssbp--fixed"] .ssbp-container {
|
178 |
+
-webkit-transition: 0.25s;
|
179 |
+
transition: 0.25s
|
180 |
+
}
|
181 |
+
.ssbp-wrap.ssbp--fixed-top,
|
182 |
+
.ssbp-wrap.ssbp--fixed-bottom {
|
183 |
+
left: 50%;
|
184 |
+
-webkit-transform: translateX(-50%);
|
185 |
+
-ms-transform: translateX(-50%);
|
186 |
+
transform: translateX(-50%)
|
187 |
+
}
|
188 |
+
.ssbp-wrap.ssbp--fixed-left,
|
189 |
+
.ssbp-wrap.ssbp--fixed-right {
|
190 |
+
top: 25%
|
191 |
+
}
|
192 |
+
.ssbp-wrap.ssbp--fixed-top {
|
193 |
+
top: 0
|
194 |
+
}
|
195 |
+
.ssbp-wrap.ssbp--fixed-bottom {
|
196 |
+
bottom: 0
|
197 |
+
}
|
198 |
+
.ssbp-wrap.ssbp--fixed-left {
|
199 |
+
left: 0
|
200 |
+
}
|
201 |
+
.ssbp-wrap.ssbp--fixed-right {
|
202 |
+
right: 0
|
203 |
+
}
|
204 |
+
.ssbp-wrap[data-ssbp-counts="true"] .ssbp-each-share {
|
205 |
+
display: block;
|
206 |
+
pointer-events: none
|
207 |
+
}
|
208 |
+
.ssbp-wrap[data-ssbp-total-counts="true"] .ssbp-total-shares {
|
209 |
+
display: inline-block;
|
210 |
+
padding: 0 .5em;
|
211 |
+
text-align: center;
|
212 |
+
font-size: 14px;
|
213 |
+
line-height: 2
|
214 |
+
}
|
215 |
+
.ssbp-wrap.ssbp--fixed-left .ssbp-total-shares,
|
216 |
+
.ssbp-wrap.ssbp--fixed-right .ssbp-total-shares,
|
217 |
+
.ssbp-wrap.ssbp--stacked .ssbp-total-shares,
|
218 |
+
.ssbp-wrap.ssbp--fixed-left .ssbp-total-shares,
|
219 |
+
.ssbp-wrap.ssbp--fixed-right .ssbp-total-shares {
|
220 |
+
display: block;
|
221 |
+
padding: 0
|
222 |
+
}
|
223 |
+
.ssbp-toggle-switch {
|
224 |
+
position: absolute;
|
225 |
+
padding: 0;
|
226 |
+
border: 0;
|
227 |
+
background: transparent;
|
228 |
+
text-align: center;
|
229 |
+
cursor: pointer;
|
230 |
+
-webkit-transition: 0.25s;
|
231 |
+
transition: 0.25s;
|
232 |
+
display: none !important
|
233 |
+
}
|
234 |
+
[data-ssbp-toggle="true"][class*="ssbp--fixed"] .ssbp-toggle-switch {
|
235 |
+
display: inline-block !important
|
236 |
+
}
|
237 |
+
.ssbp-toggle-switch:active,
|
238 |
+
.ssbp-toggle-switch:hover,
|
239 |
+
.ssbp-toggle-switch:focus {
|
240 |
+
padding: 0;
|
241 |
+
border: 0
|
242 |
+
}
|
243 |
+
.ssbp--fixed-left .ssbp-toggle-switch,
|
244 |
+
.ssbp--fixed-right .ssbp-toggle-switch {
|
245 |
+
left: 0;
|
246 |
+
bottom: 100%;
|
247 |
+
width: 100%
|
248 |
+
}
|
249 |
+
.ssbp--fixed-top .ssbp-toggle-switch,
|
250 |
+
.ssbp--fixed-bottom .ssbp-toggle-switch {
|
251 |
+
left: 100%;
|
252 |
+
bottom: 0;
|
253 |
+
height: 100%
|
254 |
+
}
|
255 |
+
.ssbp--show-toggle.ssbp--fixed-top .ssbp-toggle-switch:before {
|
256 |
+
-webkit-transform: rotate(90deg);
|
257 |
+
-ms-transform: rotate(90deg);
|
258 |
+
transform: rotate(90deg)
|
259 |
+
}
|
260 |
+
.ssbp--show-toggle.ssbp--fixed-bottom .ssbp-toggle-switch:before {
|
261 |
+
-webkit-transform: rotate(-90deg);
|
262 |
+
-ms-transform: rotate(-90deg);
|
263 |
+
transform: rotate(-90deg)
|
264 |
+
}
|
265 |
+
.ssbp--show-toggle.ssbp--fixed-right .ssbp-toggle-switch:before {
|
266 |
+
-webkit-transform: rotate(180deg);
|
267 |
+
-ms-transform: rotate(180deg);
|
268 |
+
transform: rotate(180deg)
|
269 |
+
}
|
270 |
+
.ssbp--state-hidden .ssbp-each-share {
|
271 |
+
opacity: 0
|
272 |
+
}
|
273 |
+
.ssbp--state-hidden .ssbp-container {
|
274 |
+
-webkit-transform: translateX(-100%);
|
275 |
+
-ms-transform: translateX(-100%);
|
276 |
+
transform: translateX(-100%)
|
277 |
+
}
|
278 |
+
.ssbp--state-hidden.ssbp--fixed-top .ssbp-container {
|
279 |
+
-webkit-transform: translateY(-100%);
|
280 |
+
-ms-transform: translateY(-100%);
|
281 |
+
transform: translateY(-100%)
|
282 |
+
}
|
283 |
+
.ssbp--state-hidden.ssbp--fixed-bottom .ssbp-container {
|
284 |
+
-webkit-transform: translateY(100%);
|
285 |
+
-ms-transform: translateY(100%);
|
286 |
+
transform: translateY(100%)
|
287 |
+
}
|
288 |
+
.ssbp--state-hidden.ssbp--fixed-left .ssbp-container {
|
289 |
+
-webkit-transform: translateX(-100%);
|
290 |
+
-ms-transform: translateX(-100%);
|
291 |
+
transform: translateX(-100%)
|
292 |
+
}
|
293 |
+
.ssbp--state-hidden.ssbp--fixed-right .ssbp-container {
|
294 |
+
-webkit-transform: translateX(100%);
|
295 |
+
-ms-transform: translateX(100%);
|
296 |
+
transform: translateX(100%)
|
297 |
+
}
|
298 |
+
.ssbp--theme-4 .ssbp-toggle-switch {
|
299 |
+
background: #fff;
|
300 |
+
background: rgba(255, 255, 255, 0.8);
|
301 |
+
color: #272727;
|
302 |
+
border-radius: 0
|
303 |
+
}
|
304 |
+
.ssbp--theme-4 .ssbp-toggle-switch:active,
|
305 |
+
.ssbp--theme-4 .ssbp-toggle-switch:hover,
|
306 |
+
.ssbp--theme-4 .ssbp-toggle-switch:focus {
|
307 |
+
background: #fff;
|
308 |
+
background: rgba(255, 255, 255, 0.9)
|
309 |
+
}
|
310 |
+
.ssbp--theme-4[class*="ssbp--fixed"] .ssbp-container {
|
311 |
+
background-color: rgba(255, 255, 255, 0.8);
|
312 |
+
padding: 8px
|
313 |
+
}
|
314 |
+
.ssbp--theme-4 .ssbp-btn {
|
315 |
+
width: 3em;
|
316 |
+
height: 3em;
|
317 |
+
line-height: 3em;
|
318 |
+
border-radius: 7.5px;
|
319 |
+
color: #fff;
|
320 |
+
-webkit-transition: background-color 0.25s;
|
321 |
+
transition: background-color 0.25s;
|
322 |
+
box-shadow: inset 0 -1.5em 2em rgba(255, 255, 255, 0.1);
|
323 |
+
border-bottom: 0
|
324 |
+
}
|
325 |
+
.ssbp--theme-4 .ssbp-btn:hover,
|
326 |
+
.ssbp--theme-4 .ssbp-btn:focus,
|
327 |
+
.ssbp--theme-4 .ssbp-btn:active {
|
328 |
+
box-shadow: inset 0 -1.5em 2em rgba(255, 255, 255, 0.1), inset 0 0 3.5em rgba(0, 0, 0, 0.33)
|
329 |
+
}
|
330 |
+
.ssbp--theme-4 .ssbp-btn:hover,
|
331 |
+
.ssbp--theme-4 .ssbp-btn:focus,
|
332 |
+
.ssbp--theme-4 .ssbp-btn:active,
|
333 |
+
.ssbp--theme-4 .ssbp-btn:visited {
|
334 |
+
color: #fff
|
335 |
+
}
|
336 |
+
.ssbp--theme-4 .ssbp-list li {
|
337 |
+
margin-left: 12px
|
338 |
+
}
|
339 |
+
.ssbp--theme-4 .ssbp-buffer {
|
340 |
+
background-color: #272727
|
341 |
+
}
|
342 |
+
.ssbp--theme-4 .ssbp-diggit {
|
343 |
+
background-color: #14589E
|
344 |
+
}
|
345 |
+
.ssbp--theme-4 .ssbp-email {
|
346 |
+
background-color: #787878
|
347 |
+
}
|
348 |
+
.ssbp--theme-4 .ssbp-ellipsis {
|
349 |
+
background-color: #152B3C
|
350 |
+
}
|
351 |
+
.ssbp--theme-4 .ssbp-facebook {
|
352 |
+
background-color: #365397
|
353 |
+
}
|
354 |
+
.ssbp--theme-4 .ssbp-facebook_save {
|
355 |
+
background-color: #365397
|
356 |
+
}
|
357 |
+
.ssbp--theme-4 .ssbp-flattr {
|
358 |
+
background-color: #f67C1A
|
359 |
+
}
|
360 |
+
.ssbp--theme-4 .ssbp-google {
|
361 |
+
background-color: #e0452c
|
362 |
+
}
|
363 |
+
.ssbp--theme-4 .ssbp-linkedin {
|
364 |
+
background-color: #007bb6
|
365 |
+
}
|
366 |
+
.ssbp--theme-4 .ssbp-pinterest {
|
367 |
+
background-color: #ce1a19
|
368 |
+
}
|
369 |
+
.ssbp--theme-4 .ssbp-print {
|
370 |
+
background-color: #1F6B43
|
371 |
+
}
|
372 |
+
.ssbp--theme-4 .ssbp-reddit {
|
373 |
+
background-color: #FF4500
|
374 |
+
}
|
375 |
+
.ssbp--theme-4 .ssbp-simplesharebuttons {
|
376 |
+
background-color: #4582ec
|
377 |
+
}
|
378 |
+
.ssbp--theme-4 .ssbp-stumbleupon {
|
379 |
+
background-color: #EB4924
|
380 |
+
}
|
381 |
+
.ssbp--theme-4 .ssbp-tumblr {
|
382 |
+
background-color: #2C4762
|
383 |
+
}
|
384 |
+
.ssbp--theme-4 .ssbp-twitter {
|
385 |
+
background-color: #00a9f1
|
386 |
+
}
|
387 |
+
.ssbp--theme-4 .ssbp-vk {
|
388 |
+
background-color: #45668E
|
389 |
+
}
|
390 |
+
.ssbp--theme-4 .ssbp-whatsapp {
|
391 |
+
background-color: #34AF23
|
392 |
+
}
|
393 |
+
.ssbp--theme-4 .ssbp-yummly {
|
394 |
+
background-color: #E16120
|
395 |
+
}
|
396 |
+
.ssbp--theme-4 .ssbp-xing {
|
397 |
+
background-color: #026466
|
398 |
+
}
|
399 |
+
.ssbp--theme-4 .ssbp-each-share {
|
400 |
+
position: absolute;
|
401 |
+
bottom: 100%;
|
402 |
+
right: 0;
|
403 |
+
z-index: 11;
|
404 |
+
min-width: 1.25em;
|
405 |
+
margin-right: -6px;
|
406 |
+
margin-bottom: -8px;
|
407 |
+
padding: 2px 4px;
|
408 |
+
border-radius: 8px;
|
409 |
+
background-color: #F22121;
|
410 |
+
font-size: 10px;
|
411 |
+
color: #FFF;
|
412 |
+
text-align: center
|
413 |
+
}
|
414 |
+
.ssbp--theme-4.ssbp--fixed-right .ssbp-each-share {
|
415 |
+
left: auto;
|
416 |
+
right: 100%;
|
417 |
+
margin-left: 0;
|
418 |
+
margin-right: -16px
|
419 |
+
}
|
420 |
+
.ssbp-share-text {
|
421 |
+
font-weight: normal;
|
422 |
+
margin: 0 0 10px 0;
|
423 |
+
font-size: 12px;
|
424 |
+
color: #4582ec
|
425 |
+
}
|
426 |
+
|
427 |
+
#classic-share-buttons blockquote.yellow {
|
428 |
+
border-left: 5px solid #ded400;
|
429 |
+
font-weight: bold;
|
430 |
+
}
|
431 |
+
|
432 |
+
#classic-share-buttons blockquote.yellow .notice-dismiss {
|
433 |
+
position: absolute;
|
434 |
+
right: -24px;
|
435 |
+
}
|
436 |
+
|
437 |
+
#classic-share-buttons blockquote.yellow p {
|
438 |
+
position: relative;
|
439 |
+
}
|
440 |
+
|
441 |
+
/* Share buttons preview */
|
442 |
+
.ssbp--theme-2 .ssbp-toggle-switch,.ssbp--theme-3 .ssbp-toggle-switch,.ssbp--theme-10 .ssbp-toggle-switch,.ssbp--theme-11 .ssbp-toggle-switch{background:#4C4C4C;background:rgba(39,39,39,0.8);border-radius:0;color:#fff}.ssbp--theme-2 .ssbp-toggle-switch:active,.ssbp--theme-3 .ssbp-toggle-switch:active,.ssbp--theme-10 .ssbp-toggle-switch:active,.ssbp--theme-11 .ssbp-toggle-switch:active,.ssbp--theme-2 .ssbp-toggle-switch:hover,.ssbp--theme-3 .ssbp-toggle-switch:hover,.ssbp--theme-10 .ssbp-toggle-switch:hover,.ssbp--theme-11 .ssbp-toggle-switch:hover,.ssbp--theme-2 .ssbp-toggle-switch:focus,.ssbp--theme-3 .ssbp-toggle-switch:focus,.ssbp--theme-10 .ssbp-toggle-switch:focus,.ssbp--theme-11 .ssbp-toggle-switch:focus{background:#4C4C4C;background:rgba(39,39,39,0.9)}.ssbp--theme-1 .ssbp-toggle-switch,.ssbp--theme-4 .ssbp-toggle-switch,.ssbp--theme-5 .ssbp-toggle-switch,.ssbp--theme-6 .ssbp-toggle-switch,.ssbp--theme-7 .ssbp-toggle-switch,.ssbp--theme-8 .ssbp-toggle-switch,.ssbp--theme-9 .ssbp-toggle-switch{background:#fff;background:rgba(255,255,255,0.8);color:#272727;border-radius:0}.ssbp--theme-1 .ssbp-toggle-switch:active,.ssbp--theme-4 .ssbp-toggle-switch:active,.ssbp--theme-5 .ssbp-toggle-switch:active,.ssbp--theme-6 .ssbp-toggle-switch:active,.ssbp--theme-7 .ssbp-toggle-switch:active,.ssbp--theme-8 .ssbp-toggle-switch:active,.ssbp--theme-9 .ssbp-toggle-switch:active,.ssbp--theme-1 .ssbp-toggle-switch:hover,.ssbp--theme-4 .ssbp-toggle-switch:hover,.ssbp--theme-5 .ssbp-toggle-switch:hover,.ssbp--theme-6 .ssbp-toggle-switch:hover,.ssbp--theme-7 .ssbp-toggle-switch:hover,.ssbp--theme-8 .ssbp-toggle-switch:hover,.ssbp--theme-9 .ssbp-toggle-switch:hover,.ssbp--theme-1 .ssbp-toggle-switch:focus,.ssbp--theme-4 .ssbp-toggle-switch:focus,.ssbp--theme-5 .ssbp-toggle-switch:focus,.ssbp--theme-6 .ssbp-toggle-switch:focus,.ssbp--theme-7 .ssbp-toggle-switch:focus,.ssbp--theme-8 .ssbp-toggle-switch:focus,.ssbp--theme-9 .ssbp-toggle-switch:focus{background:#fff;background:rgba(255,255,255,0.9)}.ssbp--theme-2.ssbp--centred .ssbp-list,.ssbp--theme-3.ssbp--centred .ssbp-list,.ssbp--theme-5.ssbp--centred .ssbp-list,.ssbp--theme-7.ssbp--centred .ssbp-list,.ssbp--theme-8.ssbp--centred .ssbp-list,.ssbp--theme-9.ssbp--centred .ssbp-list,.ssbp--theme-10.ssbp--centred .ssbp-list,.ssbp--theme-11.ssbp--centred .ssbp-list{display:table;table-layout:fixed;width:100%}.ssbp--theme-2.ssbp--centred .ssbp-list li,.ssbp--theme-3.ssbp--centred .ssbp-list li,.ssbp--theme-5.ssbp--centred .ssbp-list li,.ssbp--theme-7.ssbp--centred .ssbp-list li,.ssbp--theme-8.ssbp--centred .ssbp-list li,.ssbp--theme-9.ssbp--centred .ssbp-list li,.ssbp--theme-10.ssbp--centred .ssbp-list li,.ssbp--theme-11.ssbp--centred .ssbp-list li{display:inline-block !important;margin:0 12px !important;display:table-cell !important;width:auto;height:auto}.ssbp--theme-2.ssbp--centred .ssbp-btn,.ssbp--theme-3.ssbp--centred .ssbp-btn,.ssbp--theme-5.ssbp--centred .ssbp-btn,.ssbp--theme-7.ssbp--centred .ssbp-btn,.ssbp--theme-8.ssbp--centred .ssbp-btn,.ssbp--theme-9.ssbp--centred .ssbp-btn,.ssbp--theme-10.ssbp--centred .ssbp-btn,.ssbp--theme-11.ssbp--centred .ssbp-btn{display:block;width:auto}@-webkit-keyframes spin{from{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(360deg)}}@keyframes spin{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.ssbp-spinner:before{font-family:'ssbp';content:"\e614"}.ssbp-spinner{-webkit-animation:spin 2s infinite linear;animation:spin 2s infinite linear;display:inline-block}.ssbp-btn:before,.ssbp-toggle-switch:before{display:inline-block;font-family:'ssbp';speak:none;font-size:24px;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none}.ssbp-arrow-right:before{content:"\e612"}.ssbp-arrow-left:before{content:"\e613"}.ssbp-arrow-down:before{content:"\e619"}.ssbp-arrow-up:before{content:"\e61a"}.ssbp-chevron-down:before,.ssbp-toggle-switch:before{content:"\e618"}.ssbp-chevron-up:before,.ssbp--state-hidden .ssbp-toggle-switch:before{content:"\e615"}.ssbp-chevron-right:before,.ssbp--fixed-right .ssbp-toggle-switch:before,.ssbp--state-hidden.ssbp--fixed-left .ssbp-toggle-switch:before{content:"\e616"}.ssbp-chevron-left:before,.ssbp--fixed-left .ssbp-toggle-switch:before,.ssbp--state-hidden.ssbp--fixed-right .ssbp-toggle-switch:before{content:"\e617"}.ssbp-simplesharebuttons:before{content:"\e611"}.ssbp-yummly:before{content:"\e60b"}.ssbp-whatsapp:before{content:"\e60f"}.ssbp-diggit:before{content:"\e60c"}.ssbp-buffer:before{content:"\e60d"}.ssbp-close:before{content:"\e614"}.ssbp-twitter:before{content:"\e605"}.ssbp-reddit:before{content:"\e606"}.ssbp-flattr:before{content:"\e607"}.ssbp-tumblr:before{content:"\e608"}.ssbp-linkedin:before{content:"\e609"}.ssbp-google:before{content:"\e60a"}.ssbp-xing:before{content:"\e610"}.ssbp-facebook:before{content:"\e60e"}.ssbp-facebook_save:before{content:"\e900"}.ssbp-facebook-messenger:before{content:"\e611"}.ssbp-vk:before{content:"\e600"}.ssbp-stumbleupon:before{content:"\e601"}.ssbp-print:before{content:"\e602"}.ssbp-pinterest:before{content:"\e603"}.ssbp-email:before{content:"\e604"}.ssbp-ellipsis:before{content:"\e612"}.ssbp-x:before{content:"\e613"}@media print{.ssbp-wrap{display:none !important}}.ssbp-wrap *,.ssbp-wrap *:before,.ssbp-wrap *:after{box-sizing:border-box}.ssbp-input-url-div,.ssbp-total-shares,.ssba-hide-button.ssbp-each-share,.ssbp-toggle-switch,.ssbp-text{display:none}.ssbp-wrap{position:relative;display:inline-block;padding:0px;font-size:0;color:#272727}.ssbp-wrap.ssbp--centred{display:block;text-align:center}.ssbp-wrap.ssbp--aligned-right{display:block;text-align:right}.ssbp-wrap.ssbp--aligned-right .ssbp-container{display:inline-block}.ssbp-wrap .ssbp-container,.ssbp-wrap .ssbp-toggle-switch{font-size:16px}.ssbp-wrap .ssbp-list{list-style:none;display:inline-block;vertical-align:middle;margin:0;padding:0}.ssbp-wrap .ssbp-list li{position:relative;display:inline-block;vertical-align:top}.ssbp-wrap .ssbp-list li:first-of-type{margin-left:0}.ssbp-wrap .ssbp-btn{display:inline-block;text-align:center;text-decoration:none;font-family:sans-serif}.ssbp-wrap.ssbp--stacked .ssbp-list li,.ssbp-wrap.ssbp--fixed-left .ssbp-list li,.ssbp-wrap.ssbp--fixed-right .ssbp-list li{display:block;margin-top:6px;margin-left:0 !important;margin-right:0 !important}.ssbp-wrap.ssbp--stacked .ssbp-list li:first-of-type,.ssbp-wrap.ssbp--fixed-left .ssbp-list li:first-of-type,.ssbp-wrap.ssbp--fixed-right .ssbp-list li:first-of-type{margin-top:0}.ssbp-wrap[class*="ssbp--fixed"]{position:fixed;z-index:99999}.ssbp-wrap[class*="ssbp--fixed"] .ssbp-container{-webkit-transition:.25s;transition:.25s}.ssbp-wrap.ssbp--fixed-top,.ssbp-wrap.ssbp--fixed-bottom{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.ssbp-wrap.ssbp--fixed-left,.ssbp-wrap.ssbp--fixed-right{top:25%}.ssbp-wrap.ssbp--fixed-top{top:0}.ssbp-wrap.ssbp--fixed-bottom{bottom:0}.ssbp-wrap.ssbp--fixed-left{left:0}.ssbp-wrap.ssbp--fixed-right{right:0}.ssbp-wrap[data-ssbp-counts="true"] .ssbp-each-share{display:block;pointer-events:none}.ssbp-wrap[data-ssbp-total-counts="true"] .ssbp-total-shares{display:inline-block;padding:0 .5em;text-align:center;font-size:14px;line-height:2}.ssbp-wrap[data-ssbp-total-counts="true"].ssbp--fixed-left .ssbp-total-shares,.ssbp-wrap[data-ssbp-total-counts="true"].ssbp--fixed-right .ssbp-total-shares,.ssbp-wrap[data-ssbp-total-counts="true"].ssbp--stacked .ssbp-total-shares,.ssbp-wrap[data-ssbp-total-counts="true"].ssbp--fixed-left .ssbp-total-shares,.ssbp-wrap[data-ssbp-total-counts="true"].ssbp--fixed-right .ssbp-total-shares{display:block;padding:0}.ssbp-toggle-switch{position:absolute;padding:0;border:0;background:transparent;text-align:center;cursor:pointer;-webkit-transition:.25s;transition:.25s;display:none}.ssbp-toggle-switch:active,.ssbp-toggle-switch:hover,.ssbp-toggle-switch:focus{padding:0;border:0}.ssbp--fixed-left .ssbp-toggle-switch,.ssbp--fixed-right .ssbp-toggle-switch{left:0;bottom:100%;width:100%}.ssbp--fixed-top .ssbp-toggle-switch,.ssbp--fixed-bottom .ssbp-toggle-switch{left:100%;bottom:0;height:100%}.ssbp--show-toggle.ssbp--fixed-top .ssbp-toggle-switch:before{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.ssbp--show-toggle.ssbp--fixed-bottom .ssbp-toggle-switch:before{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.ssbp--show-toggle.ssbp--fixed-right .ssbp-toggle-switch:before{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.ssbp--state-hidden .ssbp-each-share{opacity:0}.ssbp--state-hidden .ssbp-container{-webkit-transform:translateX(-100%);transform:translateX(-100%)}.ssbp--state-hidden.ssbp--fixed-top .ssbp-container{-webkit-transform:translateY(-100%);transform:translateY(-100%)}.ssbp--state-hidden.ssbp--fixed-bottom .ssbp-container{-webkit-transform:translateY(100%);transform:translateY(100%)}.ssbp--state-hidden.ssbp--fixed-left .ssbp-container{-webkit-transform:translateX(-100%);transform:translateX(-100%)}.ssbp--state-hidden.ssbp--fixed-right .ssbp-container{-webkit-transform:translateX(100%);transform:translateX(100%)}.ssbp--theme-2 .ssbp-toggle-switch,.ssbp--theme-3 .ssbp-toggle-switch,.ssbp--theme-10 .ssbp-toggle-switch,.ssbp--theme-11 .ssbp-toggle-switch{background:#4C4C4C;background:rgba(39,39,39,0.8);border-radius:0;color:#fff}.ssbp--theme-2 .ssbp-toggle-switch:active,.ssbp--theme-3 .ssbp-toggle-switch:active,.ssbp--theme-10 .ssbp-toggle-switch:active,.ssbp--theme-11 .ssbp-toggle-switch:active,.ssbp--theme-2 .ssbp-toggle-switch:hover,.ssbp--theme-3 .ssbp-toggle-switch:hover,.ssbp--theme-10 .ssbp-toggle-switch:hover,.ssbp--theme-11 .ssbp-toggle-switch:hover,.ssbp--theme-2 .ssbp-toggle-switch:focus,.ssbp--theme-3 .ssbp-toggle-switch:focus,.ssbp--theme-10 .ssbp-toggle-switch:focus,.ssbp--theme-11 .ssbp-toggle-switch:focus{background:#4C4C4C;background:rgba(39,39,39,0.9)}.ssbp--theme-1 .ssbp-toggle-switch,.ssbp--theme-4 .ssbp-toggle-switch,.ssbp--theme-5 .ssbp-toggle-switch,.ssbp--theme-6 .ssbp-toggle-switch,.ssbp--theme-7 .ssbp-toggle-switch,.ssbp--theme-8 .ssbp-toggle-switch,.ssbp--theme-9 .ssbp-toggle-switch{background:#fff;background:rgba(255,255,255,0.8);color:#272727;border-radius:0}.ssbp--theme-1 .ssbp-toggle-switch:active,.ssbp--theme-4 .ssbp-toggle-switch:active,.ssbp--theme-5 .ssbp-toggle-switch:active,.ssbp--theme-6 .ssbp-toggle-switch:active,.ssbp--theme-7 .ssbp-toggle-switch:active,.ssbp--theme-8 .ssbp-toggle-switch:active,.ssbp--theme-9 .ssbp-toggle-switch:active,.ssbp--theme-1 .ssbp-toggle-switch:hover,.ssbp--theme-4 .ssbp-toggle-switch:hover,.ssbp--theme-5 .ssbp-toggle-switch:hover,.ssbp--theme-6 .ssbp-toggle-switch:hover,.ssbp--theme-7 .ssbp-toggle-switch:hover,.ssbp--theme-8 .ssbp-toggle-switch:hover,.ssbp--theme-9 .ssbp-toggle-switch:hover,.ssbp--theme-1 .ssbp-toggle-switch:focus,.ssbp--theme-4 .ssbp-toggle-switch:focus,.ssbp--theme-5 .ssbp-toggle-switch:focus,.ssbp--theme-6 .ssbp-toggle-switch:focus,.ssbp--theme-7 .ssbp-toggle-switch:focus,.ssbp--theme-8 .ssbp-toggle-switch:focus,.ssbp--theme-9 .ssbp-toggle-switch:focus{background:#fff;background:rgba(255,255,255,0.9)}.ssbp--theme-2.ssbp--centred .ssbp-list,.ssbp--theme-3.ssbp--centred .ssbp-list,.ssbp--theme-5.ssbp--centred .ssbp-list,.ssbp--theme-7.ssbp--centred .ssbp-list,.ssbp--theme-8.ssbp--centred .ssbp-list,.ssbp--theme-9.ssbp--centred .ssbp-list,.ssbp--theme-10.ssbp--centred .ssbp-list,.ssbp--theme-11.ssbp--centred .ssbp-list{display:table;table-layout:fixed;width:100%}.ssbp--theme-2.ssbp--centred .ssbp-list li,.ssbp--theme-3.ssbp--centred .ssbp-list li,.ssbp--theme-5.ssbp--centred .ssbp-list li,.ssbp--theme-7.ssbp--centred .ssbp-list li,.ssbp--theme-8.ssbp--centred .ssbp-list li,.ssbp--theme-9.ssbp--centred .ssbp-list li,.ssbp--theme-10.ssbp--centred .ssbp-list li,.ssbp--theme-11.ssbp--centred .ssbp-list li{display:inline-block !important;margin:0 12px !important;display:table-cell !important;width:auto;height:auto}.ssbp--theme-2.ssbp--centred .ssbp-btn,.ssbp--theme-3.ssbp--centred .ssbp-btn,.ssbp--theme-5.ssbp--centred .ssbp-btn,.ssbp--theme-7.ssbp--centred .ssbp-btn,.ssbp--theme-8.ssbp--centred .ssbp-btn,.ssbp--theme-9.ssbp--centred .ssbp-btn,.ssbp--theme-10.ssbp--centred .ssbp-btn,.ssbp--theme-11.ssbp--centred .ssbp-btn{display:block;width:auto}@-webkit-keyframes ripple-out{100%{visibility:visible;top:-1em;right:-1em;bottom:-1em;left:-1em;opacity:0}}@keyframes ripple-out{100%{visibility:visible;top:-1em;right:-1em;bottom:-1em;left:-1em;opacity:0}}.ssbp--theme-1 .ssbp-container{padding:6px}.ssbp--theme-1 .ssbp-list li{margin-left:12px}.ssbp--theme-1 .ssbp-btn{width:3em;height:3em;line-height:3em;position:relative;border-radius:50%;color:#fff;-webkit-transition:.25s;transition:.25s}.ssbp--theme-1 .ssbp-btn:hover,.ssbp--theme-1 .ssbp-btn:focus,.ssbp--theme-1 .ssbp-btn:active{background-color:#fff;z-index:10}.ssbp--theme-1 .ssbp-btn:visited{color:#fff}.ssbp--theme-1 .ssbp-btn:before{-webkit-transition:-webkit-transform .25s;transition:transform .25s}.ssbp--theme-1 .ssbp-btn:active:before{-webkit-transform:scale(1.2);transform:scale(1.2)}.ssbp--theme-1 .ssbp-btn:after{content:'';visibility:hidden;position:absolute;border:1px solid #fff;border-radius:50%;top:-1px;right:-1px;bottom:-1px;left:-1px;pointer-events:none;-webkit-animation-duration:.5s;animation-duration:.5s}.ssbp--theme-1 .ssbp-btn:hover:after{-webkit-animation-name:ripple-out;animation-name:ripple-out}.ssbp--theme-1[data-ssbp-counts="true"] .ssbp-list li{margin-left:13.2px}.ssbp--theme-1[data-ssbp-counts="true"] .ssbp-list li:first-of-type{margin-left:0}.ssbp--theme-1 .ssbp-buffer{background-color:#272727}.ssbp--theme-1 .ssbp-buffer:hover,.ssbp--theme-1 .ssbp-buffer:focus,.ssbp--theme-1 .ssbp-buffer:active{color:#272727;border-color:#272727}.ssbp--theme-1 .ssbp-buffer+.ssbp-each-share{background-color:#272727}.ssbp--theme-1 .ssbp-diggit{background-color:#14589E}.ssbp--theme-1 .ssbp-diggit:hover,.ssbp--theme-1 .ssbp-diggit:focus,.ssbp--theme-1 .ssbp-diggit:active{color:#14589E;border-color:#14589E}.ssbp--theme-1 .ssbp-diggit+.ssbp-each-share{background-color:#14589E}.ssbp--theme-1 .ssbp-email{background-color:#787878}.ssbp--theme-1 .ssbp-email:hover,.ssbp--theme-1 .ssbp-email:focus,.ssbp--theme-1 .ssbp-email:active{color:#787878;border-color:#787878}.ssbp--theme-1 .ssbp-email+.ssbp-each-share{background-color:#787878}.ssbp--theme-1 .ssbp-ellipsis{background-color:#4582EC}.ssbp--theme-1 .ssbp-ellipsis:hover,.ssbp--theme-1 .ssbp-ellipsis:focus,.ssbp--theme-1 .ssbp-ellipsis:active{color:#4582EC;border-color:#4582EC}.ssbp--theme-1 .ssbp-ellipsis+.ssbp-each-share{background-color:#4582EC}.ssbp--theme-1 .ssbp-facebook{background-color:#3b5998}.ssbp--theme-1 .ssbp-facebook:hover,.ssbp--theme-1 .ssbp-facebook:focus,.ssbp--theme-1 .ssbp-facebook:active{color:#3b5998;border-color:#3b5998}.ssbp--theme-1 .ssbp-facebook+.ssbp-each-share{background-color:#3b5998}.ssbp--theme-1 .ssbp-facebook_save{background-color:#3b5998}.ssbp--theme-1 .ssbp-facebook_save:hover,.ssbp--theme-1 .ssbp-facebook_save:focus,.ssbp--theme-1 .ssbp-facebook_save:active{color:#3b5998;border-color:#3b5998}.ssbp--theme-1 .ssbp-facebook_save+.ssbp-each-share{background-color:#3b5998}.ssbp--theme-1 .ssbp-facebook-messenger{background-color:#0084FF}.ssbp--theme-1 .ssbp-facebook-messenger:hover,.ssbp--theme-1 .ssbp-facebook-messenger:focus,.ssbp--theme-1 .ssbp-facebook-messenger:active{color:#0084FF;border-color:#0084FF}.ssbp--theme-1 .ssbp-facebook-messenger+.ssbp-each-share{background-color:#0084FF}.ssbp--theme-1 .ssbp-flattr{background-color:#f67C1A}.ssbp--theme-1 .ssbp-flattr:hover,.ssbp--theme-1 .ssbp-flattr:focus,.ssbp--theme-1 .ssbp-flattr:active{color:#f67C1A;border-color:#f67C1A}.ssbp--theme-1 .ssbp-flattr+.ssbp-each-share{background-color:#f67C1A}.ssbp--theme-1 .ssbp-google{background-color:#DC4E41}.ssbp--theme-1 .ssbp-google:hover,.ssbp--theme-1 .ssbp-google:focus,.ssbp--theme-1 .ssbp-google:active{color:#DC4E41;border-color:#DC4E41}.ssbp--theme-1 .ssbp-google+.ssbp-each-share{background-color:#DC4E41}.ssbp--theme-1 .ssbp-linkedin{background-color:#007bb6}.ssbp--theme-1 .ssbp-linkedin:hover,.ssbp--theme-1 .ssbp-linkedin:focus,.ssbp--theme-1 .ssbp-linkedin:active{color:#007bb6;border-color:#007bb6}.ssbp--theme-1 .ssbp-linkedin+.ssbp-each-share{background-color:#007bb6}.ssbp--theme-1 .ssbp-pinterest{background-color:#ce1a19}.ssbp--theme-1 .ssbp-pinterest:hover,.ssbp--theme-1 .ssbp-pinterest:focus,.ssbp--theme-1 .ssbp-pinterest:active{color:#ce1a19;border-color:#ce1a19}.ssbp--theme-1 .ssbp-pinterest+.ssbp-each-share{background-color:#ce1a19}.ssbp--theme-1 .ssbp-print{background-color:#1F6B43}.ssbp--theme-1 .ssbp-print:hover,.ssbp--theme-1 .ssbp-print:focus,.ssbp--theme-1 .ssbp-print:active{color:#1F6B43;border-color:#1F6B43}.ssbp--theme-1 .ssbp-print+.ssbp-each-share{background-color:#1F6B43}.ssbp--theme-1 .ssbp-reddit{background-color:#FF4500}.ssbp--theme-1 .ssbp-reddit:hover,.ssbp--theme-1 .ssbp-reddit:focus,.ssbp--theme-1 .ssbp-reddit:active{color:#FF4500;border-color:#FF4500}.ssbp--theme-1 .ssbp-reddit+.ssbp-each-share{background-color:#FF4500}.ssbp--theme-1 .ssbp-simplesharebuttons{background-color:#4582ec}.ssbp--theme-1 .ssbp-simplesharebuttons:hover,.ssbp--theme-1 .ssbp-simplesharebuttons:focus,.ssbp--theme-1 .ssbp-simplesharebuttons:active{color:#4582ec;border-color:#4582ec}.ssbp--theme-1 .ssbp-simplesharebuttons+.ssbp-each-share{background-color:#4582ec}.ssbp--theme-1 .ssbp-stumbleupon{background-color:#EB4924}.ssbp--theme-1 .ssbp-stumbleupon:hover,.ssbp--theme-1 .ssbp-stumbleupon:focus,.ssbp--theme-1 .ssbp-stumbleupon:active{color:#EB4924;border-color:#EB4924}.ssbp--theme-1 .ssbp-stumbleupon+.ssbp-each-share{background-color:#EB4924}.ssbp--theme-1 .ssbp-tumblr{background-color:#2C4762}.ssbp--theme-1 .ssbp-tumblr:hover,.ssbp--theme-1 .ssbp-tumblr:focus,.ssbp--theme-1 .ssbp-tumblr:active{color:#2C4762;border-color:#2C4762}.ssbp--theme-1 .ssbp-tumblr+.ssbp-each-share{background-color:#2C4762}.ssbp--theme-1 .ssbp-twitter{background-color:#00a9f1}.ssbp--theme-1 .ssbp-twitter:hover,.ssbp--theme-1 .ssbp-twitter:focus,.ssbp--theme-1 .ssbp-twitter:active{color:#00a9f1;border-color:#00a9f1}.ssbp--theme-1 .ssbp-twitter+.ssbp-each-share{background-color:#00a9f1}.ssbp--theme-1 .ssbp-vk{background-color:#45668E}.ssbp--theme-1 .ssbp-vk:hover,.ssbp--theme-1 .ssbp-vk:focus,.ssbp--theme-1 .ssbp-vk:active{color:#45668E;border-color:#45668E}.ssbp--theme-1 .ssbp-vk+.ssbp-each-share{background-color:#45668E}.ssbp--theme-1 .ssbp-whatsapp{background-color:#34AF23}.ssbp--theme-1 .ssbp-whatsapp:hover,.ssbp--theme-1 .ssbp-whatsapp:focus,.ssbp--theme-1 .ssbp-whatsapp:active{color:#34AF23;border-color:#34AF23}.ssbp--theme-1 .ssbp-whatsapp+.ssbp-each-share{background-color:#34AF23}.ssbp--theme-1 .ssbp-yummly{background-color:#E16120}.ssbp--theme-1 .ssbp-yummly:hover,.ssbp--theme-1 .ssbp-yummly:focus,.ssbp--theme-1 .ssbp-yummly:active{color:#E16120;border-color:#E16120}.ssbp--theme-1 .ssbp-yummly+.ssbp-each-share{background-color:#E16120}.ssbp--theme-1 .ssbp-xing{background-color:#026466}.ssbp--theme-1 .ssbp-xing:hover,.ssbp--theme-1 .ssbp-xing:focus,.ssbp--theme-1 .ssbp-xing:active{color:#026466;border-color:#026466}.ssbp--theme-1 .ssbp-xing+.ssbp-each-share{background-color:#026466}.ssbp--theme-1 .ssbp-each-share{position:absolute;top:0;left:100%;z-index:11;margin-left:-12px;padding:2px;border-radius:6px;font-size:10px;color:#FFF}.ssbp--theme-1.ssbp--fixed-right .ssbp-each-share{left:auto;right:100%;margin-left:0;margin-right:-12px}.ssbp--theme-2 .ssbp-toggle-switch,.ssbp--theme-3 .ssbp-toggle-switch,.ssbp--theme-10 .ssbp-toggle-switch,.ssbp--theme-11 .ssbp-toggle-switch{background:#4C4C4C;background:rgba(39,39,39,0.8);border-radius:0;color:#fff}.ssbp--theme-2 .ssbp-toggle-switch:active,.ssbp--theme-3 .ssbp-toggle-switch:active,.ssbp--theme-10 .ssbp-toggle-switch:active,.ssbp--theme-11 .ssbp-toggle-switch:active,.ssbp--theme-2 .ssbp-toggle-switch:hover,.ssbp--theme-3 .ssbp-toggle-switch:hover,.ssbp--theme-10 .ssbp-toggle-switch:hover,.ssbp--theme-11 .ssbp-toggle-switch:hover,.ssbp--theme-2 .ssbp-toggle-switch:focus,.ssbp--theme-3 .ssbp-toggle-switch:focus,.ssbp--theme-10 .ssbp-toggle-switch:focus,.ssbp--theme-11 .ssbp-toggle-switch:focus{background:#4C4C4C;background:rgba(39,39,39,0.9)}.ssbp--theme-1 .ssbp-toggle-switch,.ssbp--theme-4 .ssbp-toggle-switch,.ssbp--theme-5 .ssbp-toggle-switch,.ssbp--theme-6 .ssbp-toggle-switch,.ssbp--theme-7 .ssbp-toggle-switch,.ssbp--theme-8 .ssbp-toggle-switch,.ssbp--theme-9 .ssbp-toggle-switch{background:#fff;background:rgba(255,255,255,0.8);color:#272727;border-radius:0}.ssbp--theme-1 .ssbp-toggle-switch:active,.ssbp--theme-4 .ssbp-toggle-switch:active,.ssbp--theme-5 .ssbp-toggle-switch:active,.ssbp--theme-6 .ssbp-toggle-switch:active,.ssbp--theme-7 .ssbp-toggle-switch:active,.ssbp--theme-8 .ssbp-toggle-switch:active,.ssbp--theme-9 .ssbp-toggle-switch:active,.ssbp--theme-1 .ssbp-toggle-switch:hover,.ssbp--theme-4 .ssbp-toggle-switch:hover,.ssbp--theme-5 .ssbp-toggle-switch:hover,.ssbp--theme-6 .ssbp-toggle-switch:hover,.ssbp--theme-7 .ssbp-toggle-switch:hover,.ssbp--theme-8 .ssbp-toggle-switch:hover,.ssbp--theme-9 .ssbp-toggle-switch:hover,.ssbp--theme-1 .ssbp-toggle-switch:focus,.ssbp--theme-4 .ssbp-toggle-switch:focus,.ssbp--theme-5 .ssbp-toggle-switch:focus,.ssbp--theme-6 .ssbp-toggle-switch:focus,.ssbp--theme-7 .ssbp-toggle-switch:focus,.ssbp--theme-8 .ssbp-toggle-switch:focus,.ssbp--theme-9 .ssbp-toggle-switch:focus{background:#fff;background:rgba(255,255,255,0.9)}.ssbp--theme-2.ssbp--centred .ssbp-list,.ssbp--theme-3.ssbp--centred .ssbp-list,.ssbp--theme-5.ssbp--centred .ssbp-list,.ssbp--theme-7.ssbp--centred .ssbp-list,.ssbp--theme-8.ssbp--centred .ssbp-list,.ssbp--theme-9.ssbp--centred .ssbp-list,.ssbp--theme-10.ssbp--centred .ssbp-list,.ssbp--theme-11.ssbp--centred .ssbp-list{display:table;table-layout:fixed;width:100%}.ssbp--theme-2.ssbp--centred .ssbp-list li,.ssbp--theme-3.ssbp--centred .ssbp-list li,.ssbp--theme-5.ssbp--centred .ssbp-list li,.ssbp--theme-7.ssbp--centred .ssbp-list li,.ssbp--theme-8.ssbp--centred .ssbp-list li,.ssbp--theme-9.ssbp--centred .ssbp-list li,.ssbp--theme-10.ssbp--centred .ssbp-list li,.ssbp--theme-11.ssbp--centered .ssbp-list li{display:inline-block !important;margin:0 0 !important;display:table-cell !important;width:auto;height:auto}.ssbp--theme-2.ssbp--centred .ssbp-btn,.ssbp--theme-3.ssbp--centred .ssbp-btn,.ssbp--theme-5.ssbp--centred .ssbp-btn,.ssbp--theme-7.ssbp--centred .ssbp-btn,.ssbp--theme-8.ssbp--centred .ssbp-btn,.ssbp--theme-9.ssbp--centred .ssbp-btn,.ssbp--theme-10.ssbp--centred .ssbp-btn,.ssbp--theme-11.ssbp--centred .ssbp-btn{display:block;width:auto}.ssbp--theme-2 .ssbp-list li{overflow:hidden;margin: 0}.ssbp--theme-2 .ssbp-btn{width:3em;height:3em;line-height:3em;position:relative;color:#fff;-webkit-transition:.25s;transition:.25s;border-bottom:0}.ssbp--theme-2 .ssbp-btn:before{-webkit-transition:.25s;transition:.25s}.ssbp--theme-2 .ssbp-btn+.ssbp-each-share{position:absolute;z-index:10;bottom:0;left:0;right:0;-webkit-transform:translateY(0);transform:translateY(0);-webkit-transition:.25s;transition:.25s}.ssbp--theme-2 .ssbp-btn:hover,.ssbp--theme-2 .ssbp-btn:focus,.ssbp--theme-2 .ssbp-btn:active,.ssbp--theme-2 .ssbp-btn:visited{z-index:10;color:#fff}.ssbp--theme-2 .ssbp-btn:hover:before,.ssbp--theme-2 .ssbp-btn:focus:before,.ssbp--theme-2 .ssbp-btn:active:before,.ssbp--theme-2 .ssbp-btn:visited:before{-webkit-transform:none !important;transform:none !important}.ssbp--theme-2 .ssbp-btn:hover+.ssbp-each-share,.ssbp--theme-2 .ssbp-btn:focus+.ssbp-each-share,.ssbp--theme-2 .ssbp-btn:active+.ssbp-each-share,.ssbp--theme-2 .ssbp-btn:visited+.ssbp-each-share{-webkit-transform:translateY(100%);transform:translateY(100%)}.ssbp--theme-2 .ssbp-btn:active{-webkit-transform:scale(1.2);transform:scale(1.2)}.ssbp--theme-2[data-ssbp-counts="true"] .ssbp-btn:before{-webkit-transform:translateY(-0.25em) scale(0.75);transform:translateY(-0.25em) scale(0.75)}.ssbp--theme-2 .ssbp-buffer{background-color:#272727}.ssbp--theme-2 .ssbp-buffer:hover,.ssbp--theme-2 .ssbp-buffer:focus,.ssbp--theme-2 .ssbp-buffer:active{background-color:#0e0e0e}.ssbp--theme-2 .ssbp-diggit{background-color:#14589E}.ssbp--theme-2 .ssbp-diggit:hover,.ssbp--theme-2 .ssbp-diggit:focus,.ssbp--theme-2 .ssbp-diggit:active{background-color:#0e3f71}.ssbp--theme-2 .ssbp-email{background-color:#787878}.ssbp--theme-2 .ssbp-email:hover,.ssbp--theme-2 .ssbp-email:focus,.ssbp--theme-2 .ssbp-email:active{background-color:#5f5f5f}.ssbp--theme-2 .ssbp-ellipsis{background-color:#4582EC}.ssbp--theme-2 .ssbp-ellipsis:hover,.ssbp--theme-2 .ssbp-ellipsis:focus,.ssbp--theme-2 .ssbp-ellipsis:active{background-color:#1863e6}.ssbp--theme-2 .ssbp-facebook{background-color:#3b5998}.ssbp--theme-2 .ssbp-facebook:hover,.ssbp--theme-2 .ssbp-facebook:focus,.ssbp--theme-2 .ssbp-facebook:active{background-color:#2d4373}.ssbp--theme-2 .ssbp-facebook_save{background-color:#3b5998}.ssbp--theme-2 .ssbp-facebook_save:hover,.ssbp--theme-2 .ssbp-facebook_save:focus,.ssbp--theme-2 .ssbp-facebook_save:active{background-color:#2d4373}.ssbp--theme-2 .ssbp-facebook-messenger{background-color:#0084FF}.ssbp--theme-2 .ssbp-facebook-messenger:hover,.ssbp--theme-2 .ssbp-facebook-messenger:focus,.ssbp--theme-2 .ssbp-facebook-messenger:active{background-color:#006acc}.ssbp--theme-2 .ssbp-flattr{background-color:#f67C1A}.ssbp--theme-2 .ssbp-flattr:hover,.ssbp--theme-2 .ssbp-flattr:focus,.ssbp--theme-2 .ssbp-flattr:active{background-color:#d56308}.ssbp--theme-2 .ssbp-google{background-color:#DC4E41}.ssbp--theme-2 .ssbp-google:hover,.ssbp--theme-2 .ssbp-google:focus,.ssbp--theme-2 .ssbp-google:active{background-color:#c63224}.ssbp--theme-2 .ssbp-linkedin{background-color:#007bb6}.ssbp--theme-2 .ssbp-linkedin:hover,.ssbp--theme-2 .ssbp-linkedin:focus,.ssbp--theme-2 .ssbp-linkedin:active{background-color:#005983}.ssbp--theme-2 .ssbp-pinterest{background-color:#ce1a19}.ssbp--theme-2 .ssbp-pinterest:hover,.ssbp--theme-2 .ssbp-pinterest:focus,.ssbp--theme-2 .ssbp-pinterest:active{background-color:#a11413}.ssbp--theme-2 .ssbp-print{background-color:#1F6B43}.ssbp--theme-2 .ssbp-print:hover,.ssbp--theme-2 .ssbp-print:focus,.ssbp--theme-2 .ssbp-print:active{background-color:#14432a}.ssbp--theme-2 .ssbp-reddit{background-color:#FF4500}.ssbp--theme-2 .ssbp-reddit:hover,.ssbp--theme-2 .ssbp-reddit:focus,.ssbp--theme-2 .ssbp-reddit:active{background-color:#cc3700}.ssbp--theme-2 .ssbp-simplesharebuttons{background-color:#4582ec}.ssbp--theme-2 .ssbp-simplesharebuttons:hover,.ssbp--theme-2 .ssbp-simplesharebuttons:focus,.ssbp--theme-2 .ssbp-simplesharebuttons:active{background-color:#1863e6}.ssbp--theme-2 .ssbp-stumbleupon{background-color:#EB4924}.ssbp--theme-2 .ssbp-stumbleupon:hover,.ssbp--theme-2 .ssbp-stumbleupon:focus,.ssbp--theme-2 .ssbp-stumbleupon:active{background-color:#ca3412}.ssbp--theme-2 .ssbp-tumblr{background-color:#2C4762}.ssbp--theme-2 .ssbp-tumblr:hover,.ssbp--theme-2 .ssbp-tumblr:focus,.ssbp--theme-2 .ssbp-tumblr:active{background-color:#1c2e3f}.ssbp--theme-2 .ssbp-twitter{background-color:#00a9f1}.ssbp--theme-2 .ssbp-twitter:hover,.ssbp--theme-2 .ssbp-twitter:focus,.ssbp--theme-2 .ssbp-twitter:active{background-color:#0085be}.ssbp--theme-2 .ssbp-vk{background-color:#45668E}.ssbp--theme-2 .ssbp-vk:hover,.ssbp--theme-2 .ssbp-vk:focus,.ssbp--theme-2 .ssbp-vk:active{background-color:#344d6c}.ssbp--theme-2 .ssbp-whatsapp{background-color:#34AF23}.ssbp--theme-2 .ssbp-whatsapp:hover,.ssbp--theme-2 .ssbp-whatsapp:focus,.ssbp--theme-2 .ssbp-whatsapp:active{background-color:#27851b}.ssbp--theme-2 .ssbp-yummly{background-color:#E16120}.ssbp--theme-2 .ssbp-yummly:hover,.ssbp--theme-2 .ssbp-yummly:focus,.ssbp--theme-2 .ssbp-yummly:active{background-color:#b64d18}.ssbp--theme-2 .ssbp-xing{background-color:#026466}.ssbp--theme-2 .ssbp-xing:hover,.ssbp--theme-2 .ssbp-xing:focus,.ssbp--theme-2 .ssbp-xing:active{background-color:#013334}.ssbp--theme-2 .ssbp-each-share{padding:2px;background-color:rgba(0,0,0,0.1);font-size:10px;text-align:center;color:#FFF}.ssbp--theme-2 .ssbp-toggle-switch,.ssbp--theme-3 .ssbp-toggle-switch,.ssbp--theme-10 .ssbp-toggle-switch,.ssbp--theme-11 .ssbp-toggle-switch{background:#4C4C4C;background:rgba(39,39,39,0.8);border-radius:0;color:#fff}.ssbp--theme-2 .ssbp-toggle-switch:active,.ssbp--theme-3 .ssbp-toggle-switch:active,.ssbp--theme-10 .ssbp-toggle-switch:active,.ssbp--theme-11 .ssbp-toggle-switch:active,.ssbp--theme-2 .ssbp-toggle-switch:hover,.ssbp--theme-3 .ssbp-toggle-switch:hover,.ssbp--theme-10 .ssbp-toggle-switch:hover,.ssbp--theme-11 .ssbp-toggle-switch:hover,.ssbp--theme-2 .ssbp-toggle-switch:focus,.ssbp--theme-3 .ssbp-toggle-switch:focus,.ssbp--theme-10 .ssbp-toggle-switch:focus,.ssbp--theme-11 .ssbp-toggle-switch:focus{background:#4C4C4C;background:rgba(39,39,39,0.9)}.ssbp--theme-1 .ssbp-toggle-switch,.ssbp--theme-4 .ssbp-toggle-switch,.ssbp--theme-5 .ssbp-toggle-switch,.ssbp--theme-6 .ssbp-toggle-switch,.ssbp--theme-7 .ssbp-toggle-switch,.ssbp--theme-8 .ssbp-toggle-switch,.ssbp--theme-9 .ssbp-toggle-switch{background:#fff;background:rgba(255,255,255,0.8);color:#272727;border-radius:0}.ssbp--theme-1 .ssbp-toggle-switch:active,.ssbp--theme-4 .ssbp-toggle-switch:active,.ssbp--theme-5 .ssbp-toggle-switch:active,.ssbp--theme-6 .ssbp-toggle-switch:active,.ssbp--theme-7 .ssbp-toggle-switch:active,.ssbp--theme-8 .ssbp-toggle-switch:active,.ssbp--theme-9 .ssbp-toggle-switch:active,.ssbp--theme-1 .ssbp-toggle-switch:hover,.ssbp--theme-4 .ssbp-toggle-switch:hover,.ssbp--theme-5 .ssbp-toggle-switch:hover,.ssbp--theme-6 .ssbp-toggle-switch:hover,.ssbp--theme-7 .ssbp-toggle-switch:hover,.ssbp--theme-8 .ssbp-toggle-switch:hover,.ssbp--theme-9 .ssbp-toggle-switch:hover,.ssbp--theme-1 .ssbp-toggle-switch:focus,.ssbp--theme-4 .ssbp-toggle-switch:focus,.ssbp--theme-5 .ssbp-toggle-switch:focus,.ssbp--theme-6 .ssbp-toggle-switch:focus,.ssbp--theme-7 .ssbp-toggle-switch:focus,.ssbp--theme-8 .ssbp-toggle-switch:focus,.ssbp--theme-9 .ssbp-toggle-switch:focus{background:#fff;background:rgba(255,255,255,0.9)}.ssbp--theme-2.ssbp--centred .ssbp-list,.ssbp--theme-3.ssbp--centred .ssbp-list,.ssbp--theme-5.ssbp--centred .ssbp-list,.ssbp--theme-7.ssbp--centred .ssbp-list,.ssbp--theme-8.ssbp--centred .ssbp-list,.ssbp--theme-9.ssbp--centred .ssbp-list,.ssbp--theme-10.ssbp--centred .ssbp-list,.ssbp--theme-11.ssbp--centred .ssbp-list{display:table;table-layout:fixed;width:100%}.ssbp--theme-2.ssbp--centred .ssbp-list li,.ssbp--theme-3.ssbp--centred .ssbp-list li,.ssbp--theme-5.ssbp--centred .ssbp-list li,.ssbp--theme-7.ssbp--centred .ssbp-list li,.ssbp--theme-8.ssbp--centred .ssbp-list li,.ssbp--theme-9.ssbp--centred .ssbp-list li,.ssbp--theme-10.ssbp--centred .ssbp-list li,.ssbp--theme-11.ssbp--centred .ssbp-list li{display:inline-block !important;margin:0 0 !important;display:table-cell !important;width:auto;height:auto}.ssbp--theme-2.ssbp--centred .ssbp-btn,.ssbp--theme-3.ssbp--centred .ssbp-btn,.ssbp--theme-5.ssbp--centred .ssbp-btn,.ssbp--theme-7.ssbp--centred .ssbp-btn,.ssbp--theme-8.ssbp--centred .ssbp-btn,.ssbp--theme-9.ssbp--centred .ssbp-btn,.ssbp--theme-10.ssbp--centred .ssbp-btn,.ssbp--theme-11.ssbp--centred .ssbp-btn{display:block;width:auto}.ssbp--theme-3 .ssbp-list li{margin: 0}.ssbp--theme-3 .ssbp-text{display:inline-block;vertical-align:middle;font-size:12px;margin-left:.5em;text-shadow:-1px -1px rgba(0,0,0,0.2)}.ssbp--theme-3 .ssbp-btn{display:block;padding:0.5em 1em;color:#fff;text-shadow:-1px -1px rgba(0,0,0,0.2);-webkit-transition:background-color .25s;transition:background-color .25s;border-bottom:0}.ssbp--theme-3 .ssbp-btn:before{vertical-align:middle}.ssbp--theme-3 .ssbp-btn:active{box-shadow:inset 0 0 0.5em rgba(0,0,0,0.33)}.ssbp--theme-3 .ssbp-btn:hover,.ssbp--theme-3 .ssbp-btn:focus,.ssbp--theme-3 .ssbp-btn:active,.ssbp--theme-3 .ssbp-btn:visited{color:#fff}.ssbp--theme-3 .ssbp-buffer{background-color:#272727}.ssbp--theme-3 .ssbp-buffer:hover,.ssbp--theme-3 .ssbp-buffer:focus,.ssbp--theme-3 .ssbp-buffer:active,.ssbp--theme-3 .ssbp-buffer+.ssbp-each-share{background-color:#0e0e0e}.ssbp--theme-3 .ssbp-diggit{background-color:#14589E}.ssbp--theme-3 .ssbp-diggit:hover,.ssbp--theme-3 .ssbp-diggit:focus,.ssbp--theme-3 .ssbp-diggit:active,.ssbp--theme-3 .ssbp-diggit+.ssbp-each-share{background-color:#0e3f71}.ssbp--theme-3 .ssbp-email{background-color:#787878}.ssbp--theme-3 .ssbp-email:hover,.ssbp--theme-3 .ssbp-email:focus,.ssbp--theme-3 .ssbp-email:active,.ssbp--theme-3 .ssbp-email+.ssbp-each-share{background-color:#5f5f5f}.ssbp--theme-3 .ssbp-ellipsis{background-color:#4582EC}.ssbp--theme-3 .ssbp-ellipsis:hover,.ssbp--theme-3 .ssbp-ellipsis:focus,.ssbp--theme-3 .ssbp-ellipsis:active,.ssbp--theme-3 .ssbp-ellipsis+.ssbp-each-share{background-color:#1863e6}.ssbp--theme-3 .ssbp-facebook{background-color:#3b5998}.ssbp--theme-3 .ssbp-facebook:hover,.ssbp--theme-3 .ssbp-facebook:focus,.ssbp--theme-3 .ssbp-facebook:active,.ssbp--theme-3 .ssbp-facebook+.ssbp-each-share{background-color:#2d4373}.ssbp--theme-3 .ssbp-facebook_save{background-color:#3b5998}.ssbp--theme-3 .ssbp-facebook_save:hover,.ssbp--theme-3 .ssbp-facebook_save:focus,.ssbp--theme-3 .ssbp-facebook_save:active,.ssbp--theme-3 .ssbp-facebook_save+.ssbp-each-share{background-color:#2d4373}.ssbp--theme-3 .ssbp-facebook-messenger{background-color:#0084FF}.ssbp--theme-3 .ssbp-facebook-messenger:hover,.ssbp--theme-3 .ssbp-facebook-messenger:focus,.ssbp--theme-3 .ssbp-facebook-messenger:active,.ssbp--theme-3 .ssbp-facebook-messenger+.ssbp-each-share{background-color:#006acc}.ssbp--theme-3 .ssbp-flattr{background-color:#f67C1A}.ssbp--theme-3 .ssbp-flattr:hover,.ssbp--theme-3 .ssbp-flattr:focus,.ssbp--theme-3 .ssbp-flattr:active,.ssbp--theme-3 .ssbp-flattr+.ssbp-each-share{background-color:#d56308}.ssbp--theme-3 .ssbp-google{background-color:#DC4E41}.ssbp--theme-3 .ssbp-google:hover,.ssbp--theme-3 .ssbp-google:focus,.ssbp--theme-3 .ssbp-google:active,.ssbp--theme-3 .ssbp-google+.ssbp-each-share{background-color:#c63224}.ssbp--theme-3 .ssbp-linkedin{background-color:#007bb6}.ssbp--theme-3 .ssbp-linkedin:hover,.ssbp--theme-3 .ssbp-linkedin:focus,.ssbp--theme-3 .ssbp-linkedin:active,.ssbp--theme-3 .ssbp-linkedin+.ssbp-each-share{background-color:#005983}.ssbp--theme-3 .ssbp-pinterest{background-color:#ce1a19}.ssbp--theme-3 .ssbp-pinterest:hover,.ssbp--theme-3 .ssbp-pinterest:focus,.ssbp--theme-3 .ssbp-pinterest:active,.ssbp--theme-3 .ssbp-pinterest+.ssbp-each-share{background-color:#a11413}.ssbp--theme-3 .ssbp-print{background-color:#1F6B43}.ssbp--theme-3 .ssbp-print:hover,.ssbp--theme-3 .ssbp-print:focus,.ssbp--theme-3 .ssbp-print:active,.ssbp--theme-3 .ssbp-print+.ssbp-each-share{background-color:#14432a}.ssbp--theme-3 .ssbp-reddit{background-color:#FF4500}.ssbp--theme-3 .ssbp-reddit:hover,.ssbp--theme-3 .ssbp-reddit:focus,.ssbp--theme-3 .ssbp-reddit:active,.ssbp--theme-3 .ssbp-reddit+.ssbp-each-share{background-color:#cc3700}.ssbp--theme-3 .ssbp-simplesharebuttons{background-color:#4582ec}.ssbp--theme-3 .ssbp-simplesharebuttons:hover,.ssbp--theme-3 .ssbp-simplesharebuttons:focus,.ssbp--theme-3 .ssbp-simplesharebuttons:active,.ssbp--theme-3 .ssbp-simplesharebuttons+.ssbp-each-share{background-color:#1863e6}.ssbp--theme-3 .ssbp-stumbleupon{background-color:#EB4924}.ssbp--theme-3 .ssbp-stumbleupon:hover,.ssbp--theme-3 .ssbp-stumbleupon:focus,.ssbp--theme-3 .ssbp-stumbleupon:active,.ssbp--theme-3 .ssbp-stumbleupon+.ssbp-each-share{background-color:#ca3412}.ssbp--theme-3 .ssbp-tumblr{background-color:#2C4762}.ssbp--theme-3 .ssbp-tumblr:hover,.ssbp--theme-3 .ssbp-tumblr:focus,.ssbp--theme-3 .ssbp-tumblr:active,.ssbp--theme-3 .ssbp-tumblr+.ssbp-each-share{background-color:#1c2e3f}.ssbp--theme-3 .ssbp-twitter{background-color:#00a9f1}.ssbp--theme-3 .ssbp-twitter:hover,.ssbp--theme-3 .ssbp-twitter:focus,.ssbp--theme-3 .ssbp-twitter:active,.ssbp--theme-3 .ssbp-twitter+.ssbp-each-share{background-color:#0085be}.ssbp--theme-3 .ssbp-vk{background-color:#45668E}.ssbp--theme-3 .ssbp-vk:hover,.ssbp--theme-3 .ssbp-vk:focus,.ssbp--theme-3 .ssbp-vk:active,.ssbp--theme-3 .ssbp-vk+.ssbp-each-share{background-color:#344d6c}.ssbp--theme-3 .ssbp-whatsapp{background-color:#34AF23}.ssbp--theme-3 .ssbp-whatsapp:hover,.ssbp--theme-3 .ssbp-whatsapp:focus,.ssbp--theme-3 .ssbp-whatsapp:active,.ssbp--theme-3 .ssbp-whatsapp+.ssbp-each-share{background-color:#27851b}.ssbp--theme-3 .ssbp-yummly{background-color:#E16120}.ssbp--theme-3 .ssbp-yummly:hover,.ssbp--theme-3 .ssbp-yummly:focus,.ssbp--theme-3 .ssbp-yummly:active,.ssbp--theme-3 .ssbp-yummly+.ssbp-each-share{background-color:#b64d18}.ssbp--theme-3 .ssbp-xing{background-color:#026466}.ssbp--theme-3 .ssbp-xing:hover,.ssbp--theme-3 .ssbp-xing:focus,.ssbp--theme-3 .ssbp-xing:active,.ssbp--theme-3 .ssbp-xing+.ssbp-each-share{background-color:#013334}.ssbp--theme-3 .ssbp-each-share{padding:2px;font-size:10px;text-align:center;color:#FFF}.ssbp--theme-2 .ssbp-toggle-switch,.ssbp--theme-3 .ssbp-toggle-switch,.ssbp--theme-10 .ssbp-toggle-switch,.ssbp--theme-11 .ssbp-toggle-switch{background:#4C4C4C;background:rgba(39,39,39,0.8);border-radius:0;color:#fff}.ssbp--theme-2 .ssbp-toggle-switch:active,.ssbp--theme-3 .ssbp-toggle-switch:active,.ssbp--theme-10 .ssbp-toggle-switch:active,.ssbp--theme-11 .ssbp-toggle-switch:active,.ssbp--theme-2 .ssbp-toggle-switch:hover,.ssbp--theme-3 .ssbp-toggle-switch:hover,.ssbp--theme-10 .ssbp-toggle-switch:hover,.ssbp--theme-11 .ssbp-toggle-switch:hover,.ssbp--theme-2 .ssbp-toggle-switch:focus,.ssbp--theme-3 .ssbp-toggle-switch:focus,.ssbp--theme-10 .ssbp-toggle-switch:focus,.ssbp--theme-11 .ssbp-toggle-switch:focus{background:#4C4C4C;background:rgba(39,39,39,0.9)}.ssbp--theme-1 .ssbp-toggle-switch,.ssbp--theme-4 .ssbp-toggle-switch,.ssbp--theme-5 .ssbp-toggle-switch,.ssbp--theme-6 .ssbp-toggle-switch,.ssbp--theme-7 .ssbp-toggle-switch,.ssbp--theme-8 .ssbp-toggle-switch,.ssbp--theme-9 .ssbp-toggle-switch{background:#fff;background:rgba(255,255,255,0.8);color:#272727;border-radius:0}.ssbp--theme-1 .ssbp-toggle-switch:active,.ssbp--theme-4 .ssbp-toggle-switch:active,.ssbp--theme-5 .ssbp-toggle-switch:active,.ssbp--theme-6 .ssbp-toggle-switch:active,.ssbp--theme-7 .ssbp-toggle-switch:active,.ssbp--theme-8 .ssbp-toggle-switch:active,.ssbp--theme-9 .ssbp-toggle-switch:active,.ssbp--theme-1 .ssbp-toggle-switch:hover,.ssbp--theme-4 .ssbp-toggle-switch:hover,.ssbp--theme-5 .ssbp-toggle-switch:hover,.ssbp--theme-6 .ssbp-toggle-switch:hover,.ssbp--theme-7 .ssbp-toggle-switch:hover,.ssbp--theme-8 .ssbp-toggle-switch:hover,.ssbp--theme-9 .ssbp-toggle-switch:hover,.ssbp--theme-1 .ssbp-toggle-switch:focus,.ssbp--theme-4 .ssbp-toggle-switch:focus,.ssbp--theme-5 .ssbp-toggle-switch:focus,.ssbp--theme-6 .ssbp-toggle-switch:focus,.ssbp--theme-7 .ssbp-toggle-switch:focus,.ssbp--theme-8 .ssbp-toggle-switch:focus,.ssbp--theme-9 .ssbp-toggle-switch:focus{background:#fff;background:rgba(255,255,255,0.9)}.ssbp--theme-2.ssbp--centred .ssbp-list,.ssbp--theme-3.ssbp--centred .ssbp-list,.ssbp--theme-5.ssbp--centred .ssbp-list,.ssbp--theme-7.ssbp--centred .ssbp-list,.ssbp--theme-8.ssbp--centred .ssbp-list,.ssbp--theme-9.ssbp--centred .ssbp-list,.ssbp--theme-10.ssbp--centred .ssbp-list,.ssbp--theme-11.ssbp--centred .ssbp-list{display:table;table-layout:fixed;width:100%}.ssbp--theme-2.ssbp--centred .ssbp-list li,.ssbp--theme-3.ssbp--centred .ssbp-list li,.ssbp--theme-5.ssbp--centred .ssbp-list li,.ssbp--theme-7.ssbp--centred .ssbp-list li,.ssbp--theme-8.ssbp--centred .ssbp-list li,.ssbp--theme-9.ssbp--centred .ssbp-list li,.ssbp--theme-10.ssbp--centred .ssbp-list li,.ssbp--theme-11.ssbp--centred .ssbp-list li{display:inline-block !important;margin:0 12px !important;display:table-cell !important;width:auto;height:auto}.ssbp--theme-2.ssbp--centred .ssbp-btn,.ssbp--theme-3.ssbp--centred .ssbp-btn,.ssbp--theme-5.ssbp--centred .ssbp-btn,.ssbp--theme-7.ssbp--centred .ssbp-btn,.ssbp--theme-8.ssbp--centred .ssbp-btn,.ssbp--theme-9.ssbp--centred .ssbp-btn,.ssbp--theme-10.ssbp--centred .ssbp-btn,.ssbp--theme-11.ssbp--centred .ssbp-btn{display:block;width:auto}.ssbp--theme-4[class*="ssbp--fixed"] .ssbp-container{background-color:rgba(255,255,255,0.8);padding:8px}.ssbp--theme-4 .ssbp-btn{width:3em;height:3em;line-height:3em;border-radius:7.5px;color:#fff;-webkit-transition:background-color .25s;transition:background-color .25s;box-shadow:inset 0 -1.5em 2em rgba(255,255,255,0.1);border-bottom:0}.ssbp--theme-4 .ssbp-btn:hover,.ssbp--theme-4 .ssbp-btn:focus,.ssbp--theme-4 .ssbp-btn:active{box-shadow:inset 0 -1.5em 2em rgba(255,255,255,0.1),inset 0 0 3.5em rgba(0,0,0,0.33)}.ssbp--theme-4 .ssbp-btn:hover,.ssbp--theme-4 .ssbp-btn:focus,.ssbp--theme-4 .ssbp-btn:active,.ssbp--theme-4 .ssbp-btn:visited{color:#fff}.ssbp--theme-4 .ssbp-list li{margin-left:12px}.ssbp--theme-4 .ssbp-buffer{background-color:#272727}.ssbp--theme-4 .ssbp-diggit{background-color:#14589E}.ssbp--theme-4 .ssbp-email{background-color:#787878}.ssbp--theme-4 .ssbp-ellipsis{background-color:#4582EC}.ssbp--theme-4 .ssbp-facebook{background-color:#3b5998}.ssbp--theme-4 .ssbp-facebook_save{background-color:#3b5998}.ssbp--theme-4 .ssbp-facebook-messenger{background-color:#0084FF}.ssbp--theme-4 .ssbp-flattr{background-color:#f67C1A}.ssbp--theme-4 .ssbp-google{background-color:#DC4E41}.ssbp--theme-4 .ssbp-linkedin{background-color:#007bb6}.ssbp--theme-4 .ssbp-pinterest{background-color:#ce1a19}.ssbp--theme-4 .ssbp-print{background-color:#1F6B43}.ssbp--theme-4 .ssbp-reddit{background-color:#FF4500}.ssbp--theme-4 .ssbp-simplesharebuttons{background-color:#4582ec}.ssbp--theme-4 .ssbp-stumbleupon{background-color:#EB4924}.ssbp--theme-4 .ssbp-tumblr{background-color:#2C4762}.ssbp--theme-4 .ssbp-twitter{background-color:#00a9f1}.ssbp--theme-4 .ssbp-vk{background-color:#45668E}.ssbp--theme-4 .ssbp-whatsapp{background-color:#34AF23}.ssbp--theme-4 .ssbp-yummly{background-color:#E16120}.ssbp--theme-4 .ssbp-xing{background-color:#026466}.ssbp--theme-4 .ssbp-each-share{position:absolute;bottom:100%;right:0;z-index:11;min-width:1.25em;margin-right:-6px;margin-bottom:-8px;padding:2px 4px;border-radius:8px;background-color:#F22121;font-size:10px;color:#FFF;text-align:center}.ssbp--theme-4.ssbp--fixed-right .ssbp-each-share{left:auto;right:100%;margin-left:0;margin-right:-16px}.ssbp--theme-2 .ssbp-toggle-switch,.ssbp--theme-3 .ssbp-toggle-switch,.ssbp--theme-10 .ssbp-toggle-switch,.ssbp--theme-11 .ssbp-toggle-switch{background:#4C4C4C;background:rgba(39,39,39,0.8);border-radius:0;color:#fff}.ssbp--theme-2 .ssbp-toggle-switch:active,.ssbp--theme-3 .ssbp-toggle-switch:active,.ssbp--theme-10 .ssbp-toggle-switch:active,.ssbp--theme-11 .ssbp-toggle-switch:active,.ssbp--theme-2 .ssbp-toggle-switch:hover,.ssbp--theme-3 .ssbp-toggle-switch:hover,.ssbp--theme-10 .ssbp-toggle-switch:hover,.ssbp--theme-11 .ssbp-toggle-switch:hover,.ssbp--theme-2 .ssbp-toggle-switch:focus,.ssbp--theme-3 .ssbp-toggle-switch:focus,.ssbp--theme-10 .ssbp-toggle-switch:focus,.ssbp--theme-11 .ssbp-toggle-switch:focus{background:#4C4C4C;background:rgba(39,39,39,0.9)}.ssbp--theme-1 .ssbp-toggle-switch,.ssbp--theme-4 .ssbp-toggle-switch,.ssbp--theme-5 .ssbp-toggle-switch,.ssbp--theme-6 .ssbp-toggle-switch,.ssbp--theme-7 .ssbp-toggle-switch,.ssbp--theme-8 .ssbp-toggle-switch,.ssbp--theme-9 .ssbp-toggle-switch{background:#fff;background:rgba(255,255,255,0.8);color:#272727;border-radius:0}.ssbp--theme-1 .ssbp-toggle-switch:active,.ssbp--theme-4 .ssbp-toggle-switch:active,.ssbp--theme-5 .ssbp-toggle-switch:active,.ssbp--theme-6 .ssbp-toggle-switch:active,.ssbp--theme-7 .ssbp-toggle-switch:active,.ssbp--theme-8 .ssbp-toggle-switch:active,.ssbp--theme-9 .ssbp-toggle-switch:active,.ssbp--theme-1 .ssbp-toggle-switch:hover,.ssbp--theme-4 .ssbp-toggle-switch:hover,.ssbp--theme-5 .ssbp-toggle-switch:hover,.ssbp--theme-6 .ssbp-toggle-switch:hover,.ssbp--theme-7 .ssbp-toggle-switch:hover,.ssbp--theme-8 .ssbp-toggle-switch:hover,.ssbp--theme-9 .ssbp-toggle-switch:hover,.ssbp--theme-1 .ssbp-toggle-switch:focus,.ssbp--theme-4 .ssbp-toggle-switch:focus,.ssbp--theme-5 .ssbp-toggle-switch:focus,.ssbp--theme-6 .ssbp-toggle-switch:focus,.ssbp--theme-7 .ssbp-toggle-switch:focus,.ssbp--theme-8 .ssbp-toggle-switch:focus,.ssbp--theme-9 .ssbp-toggle-switch:focus{background:#fff;background:rgba(255,255,255,0.9)}.ssbp--theme-2.ssbp--centred .ssbp-list,.ssbp--theme-3.ssbp--centred .ssbp-list,.ssbp--theme-5.ssbp--centred .ssbp-list,.ssbp--theme-7.ssbp--centred .ssbp-list,.ssbp--theme-8.ssbp--centred .ssbp-list,.ssbp--theme-9.ssbp--centred .ssbp-list,.ssbp--theme-10.ssbp--centred .ssbp-list,.ssbp--theme-11.ssbp--centred .ssbp-list{display:table;table-layout:fixed;width:100%}.ssbp--theme-2.ssbp--centred .ssbp-list li,.ssbp--theme-3.ssbp--centred .ssbp-list li,.ssbp--theme-5.ssbp--centred .ssbp-list li,.ssbp--theme-7.ssbp--centred .ssbp-list li,.ssbp--theme-8.ssbp--centred .ssbp-list li,.ssbp--theme-9.ssbp--centred .ssbp-list li,.ssbp--theme-10.ssbp--centred .ssbp-list li,.ssbp--theme-11.ssbp--centred .ssbp-list li{display:inline-block !important;margin:0 0 !important;display:table-cell !important;width:auto;height:auto}.ssbp--theme-2.ssbp--centred .ssbp-btn,.ssbp--theme-3.ssbp--centred .ssbp-btn,.ssbp--theme-5.ssbp--centred .ssbp-btn,.ssbp--theme-7.ssbp--centred .ssbp-btn,.ssbp--theme-8.ssbp--centred .ssbp-btn,.ssbp--theme-9.ssbp--centred .ssbp-btn,.ssbp--theme-10.ssbp--centred .ssbp-btn,.ssbp--theme-11.ssbp--centred .ssbp-btn{display:block;width:auto}.ssbp--theme-5 .ssbp-btn{width:4em;height:3em;line-height:3em;margin-bottom:8px;color:#fff;-webkit-transition:.25s;transition:.25s;border-bottom:0}.ssbp--theme-5 .ssbp-btn:active{-webkit-transform:translateY(4px);transform:translateY(4px)}.ssbp--theme-5 .ssbp-btn:hover,.ssbp--theme-5 .ssbp-btn:focus,.ssbp--theme-5 .ssbp-btn:active,.ssbp--theme-5 .ssbp-btn:visited{color:#fff}.ssbp--theme-5.ssbp--stacked .ssbp-list li,.ssbp--theme-5.ssbp-wrap.ssbp--fixed-left .ssbp-list li,.ssbp--theme-5.ssbp-wrap.ssbp--fixed-right .ssbp-list li{margin-top:0}.ssbp--theme-5 .ssbp-buffer{background-color:#272727;box-shadow:0 8px 0 #0e0e0e,0 10px 12px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-buffer:active{box-shadow:0 4px 0 #0e0e0e,0 5px 6px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-diggit{background-color:#14589E;box-shadow:0 8px 0 #0e3f71,0 10px 12px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-diggit:active{box-shadow:0 4px 0 #0e3f71,0 5px 6px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-email{background-color:#787878;box-shadow:0 8px 0 #5f5f5f,0 10px 12px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-email:active{box-shadow:0 4px 0 #5f5f5f,0 5px 6px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-ellipsis{background-color:#4582EC;box-shadow:0 8px 0 #1863e6,0 10px 12px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-ellipsis:active{box-shadow:0 4px 0 #1863e6,0 5px 6px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-facebook{background-color:#3b5998;box-shadow:0 8px 0 #2d4373,0 10px 12px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-facebook:active{box-shadow:0 4px 0 #2d4373,0 5px 6px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-facebook_save{background-color:#3b5998;box-shadow:0 8px 0 #2d4373,0 10px 12px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-facebook_save:active{box-shadow:0 4px 0 #2d4373,0 5px 6px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-facebook-messenger{background-color:#0084FF;box-shadow:0 8px 0 #006acc,0 10px 12px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-facebook-messenger:active{box-shadow:0 4px 0 #006acc,0 5px 6px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-flattr{background-color:#f67C1A;box-shadow:0 8px 0 #d56308,0 10px 12px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-flattr:active{box-shadow:0 4px 0 #d56308,0 5px 6px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-google{background-color:#DC4E41;box-shadow:0 8px 0 #c63224,0 10px 12px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-google:active{box-shadow:0 4px 0 #c63224,0 5px 6px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-linkedin{background-color:#007bb6;box-shadow:0 8px 0 #005983,0 10px 12px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-linkedin:active{box-shadow:0 4px 0 #005983,0 5px 6px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-pinterest{background-color:#ce1a19;box-shadow:0 8px 0 #a11413,0 10px 12px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-pinterest:active{box-shadow:0 4px 0 #a11413,0 5px 6px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-print{background-color:#1F6B43;box-shadow:0 8px 0 #14432a,0 10px 12px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-print:active{box-shadow:0 4px 0 #14432a,0 5px 6px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-reddit{background-color:#FF4500;box-shadow:0 8px 0 #cc3700,0 10px 12px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-reddit:active{box-shadow:0 4px 0 #cc3700,0 5px 6px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-simplesharebuttons{background-color:#4582ec;box-shadow:0 8px 0 #1863e6,0 10px 12px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-simplesharebuttons:active{box-shadow:0 4px 0 #1863e6,0 5px 6px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-stumbleupon{background-color:#EB4924;box-shadow:0 8px 0 #ca3412,0 10px 12px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-stumbleupon:active{box-shadow:0 4px 0 #ca3412,0 5px 6px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-tumblr{background-color:#2C4762;box-shadow:0 8px 0 #1c2e3f,0 10px 12px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-tumblr:active{box-shadow:0 4px 0 #1c2e3f,0 5px 6px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-twitter{background-color:#00a9f1;box-shadow:0 8px 0 #0085be,0 10px 12px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-twitter:active{box-shadow:0 4px 0 #0085be,0 5px 6px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-vk{background-color:#45668E;box-shadow:0 8px 0 #344d6c,0 10px 12px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-vk:active{box-shadow:0 4px 0 #344d6c,0 5px 6px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-whatsapp{background-color:#34AF23;box-shadow:0 8px 0 #27851b,0 10px 12px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-whatsapp:active{box-shadow:0 4px 0 #27851b,0 5px 6px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-yummly{background-color:#E16120;box-shadow:0 8px 0 #b64d18,0 10px 12px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-yummly:active{box-shadow:0 4px 0 #b64d18,0 5px 6px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-xing{background-color:#026466;box-shadow:0 8px 0 #013334,0 10px 12px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-xing:active{box-shadow:0 4px 0 #013334,0 5px 6px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-each-share{padding-top:3px;text-align:center;font-size:12px}.ssbp--theme-2 .ssbp-toggle-switch,.ssbp--theme-3 .ssbp-toggle-switch,.ssbp--theme-10 .ssbp-toggle-switch,.ssbp--theme-11 .ssbp-toggle-switch{background:#4C4C4C;background:rgba(39,39,39,0.8);border-radius:0;color:#fff}.ssbp--theme-2 .ssbp-toggle-switch:active,.ssbp--theme-3 .ssbp-toggle-switch:active,.ssbp--theme-10 .ssbp-toggle-switch:active,.ssbp--theme-11 .ssbp-toggle-switch:active,.ssbp--theme-2 .ssbp-toggle-switch:hover,.ssbp--theme-3 .ssbp-toggle-switch:hover,.ssbp--theme-10 .ssbp-toggle-switch:hover,.ssbp--theme-11 .ssbp-toggle-switch:hover,.ssbp--theme-2 .ssbp-toggle-switch:focus,.ssbp--theme-3 .ssbp-toggle-switch:focus,.ssbp--theme-10 .ssbp-toggle-switch:focus,.ssbp--theme-11 .ssbp-toggle-switch:focus{background:#4C4C4C;background:rgba(39,39,39,0.9)}.ssbp--theme-1 .ssbp-toggle-switch,.ssbp--theme-4 .ssbp-toggle-switch,.ssbp--theme-5 .ssbp-toggle-switch,.ssbp--theme-6 .ssbp-toggle-switch,.ssbp--theme-7 .ssbp-toggle-switch,.ssbp--theme-8 .ssbp-toggle-switch,.ssbp--theme-9 .ssbp-toggle-switch{background:#fff;background:rgba(255,255,255,0.8);color:#272727;border-radius:0}.ssbp--theme-1 .ssbp-toggle-switch:active,.ssbp--theme-4 .ssbp-toggle-switch:active,.ssbp--theme-5 .ssbp-toggle-switch:active,.ssbp--theme-6 .ssbp-toggle-switch:active,.ssbp--theme-7 .ssbp-toggle-switch:active,.ssbp--theme-8 .ssbp-toggle-switch:active,.ssbp--theme-9 .ssbp-toggle-switch:active,.ssbp--theme-1 .ssbp-toggle-switch:hover,.ssbp--theme-4 .ssbp-toggle-switch:hover,.ssbp--theme-5 .ssbp-toggle-switch:hover,.ssbp--theme-6 .ssbp-toggle-switch:hover,.ssbp--theme-7 .ssbp-toggle-switch:hover,.ssbp--theme-8 .ssbp-toggle-switch:hover,.ssbp--theme-9 .ssbp-toggle-switch:hover,.ssbp--theme-1 .ssbp-toggle-switch:focus,.ssbp--theme-4 .ssbp-toggle-switch:focus,.ssbp--theme-5 .ssbp-toggle-switch:focus,.ssbp--theme-6 .ssbp-toggle-switch:focus,.ssbp--theme-7 .ssbp-toggle-switch:focus,.ssbp--theme-8 .ssbp-toggle-switch:focus,.ssbp--theme-9 .ssbp-toggle-switch:focus{background:#fff;background:rgba(255,255,255,0.9)}.ssbp--theme-2.ssbp--centred .ssbp-list,.ssbp--theme-3.ssbp--centred .ssbp-list,.ssbp--theme-5.ssbp--centred .ssbp-list,.ssbp--theme-7.ssbp--centred .ssbp-list,.ssbp--theme-8.ssbp--centred .ssbp-list,.ssbp--theme-9.ssbp--centred .ssbp-list,.ssbp--theme-10.ssbp--centred .ssbp-list,.ssbp--theme-11.ssbp--centred .ssbp-list{display:table;table-layout:fixed;width:100%}.ssbp--theme-2.ssbp--centred .ssbp-list li,.ssbp--theme-3.ssbp--centred .ssbp-list li,.ssbp--theme-5.ssbp--centred .ssbp-list li,.ssbp--theme-7.ssbp--centred .ssbp-list li,.ssbp--theme-8.ssbp--centred .ssbp-list li,.ssbp--theme-9.ssbp--centred .ssbp-list li,.ssbp--theme-10.ssbp--centred .ssbp-list li,.ssbp--theme-11.ssbp--centred .ssbp-list li{display:inline-block !important;margin:0 12px !important;display:table-cell !important;width:auto;height:auto}.ssbp--theme-2.ssbp--centred .ssbp-btn,.ssbp--theme-3.ssbp--centred .ssbp-btn,.ssbp--theme-5.ssbp--centred .ssbp-btn,.ssbp--theme-7.ssbp--centred .ssbp-btn,.ssbp--theme-8.ssbp--centred .ssbp-btn,.ssbp--theme-9.ssbp--centred .ssbp-btn,.ssbp--theme-10.ssbp--centred .ssbp-btn,.ssbp--theme-11.ssbp--centred .ssbp-btn{display:block;width:auto}.ssbp--theme-6[class*="ssbp--fixed"] .ssbp-container{background-color:rgba(255,255,255,0.8);padding:6px}.ssbp--theme-6 .ssbp-btn{width:3em;height:3em;line-height:3em;border:2px solid #fff;border-radius:50%;background-color:#fff;-webkit-transition:.25s;transition:.25s}.ssbp--theme-6 .ssbp-btn:hover,.ssbp--theme-6 .ssbp-btn:focus,.ssbp--theme-6 .ssbp-btn:active{color:#fff}.ssbp--theme-6 .ssbp-list li{margin-left:12px}.ssbp--theme-6 .ssbp-buffer{border-color:#272727;color:#272727}.ssbp--theme-6 .ssbp-buffer:hover,.ssbp--theme-6 .ssbp-buffer:focus,.ssbp--theme-6 .ssbp-buffer:active{background-color:#272727}.ssbp--theme-6 .ssbp-buffer+.ssbp-each-share{color:#272727;border-color:#272727}.ssbp--theme-6 .ssbp-diggit{border-color:#14589E;color:#14589E}.ssbp--theme-6 .ssbp-diggit:hover,.ssbp--theme-6 .ssbp-diggit:focus,.ssbp--theme-6 .ssbp-diggit:active{background-color:#14589E}.ssbp--theme-6 .ssbp-diggit+.ssbp-each-share{color:#14589E;border-color:#14589E}.ssbp--theme-6 .ssbp-email{border-color:#787878;color:#787878}.ssbp--theme-6 .ssbp-email:hover,.ssbp--theme-6 .ssbp-email:focus,.ssbp--theme-6 .ssbp-email:active{background-color:#787878}.ssbp--theme-6 .ssbp-email+.ssbp-each-share{color:#787878;border-color:#787878}.ssbp--theme-6 .ssbp-ellipsis{border-color:#4582EC;color:#4582EC}.ssbp--theme-6 .ssbp-ellipsis:hover,.ssbp--theme-6 .ssbp-ellipsis:focus,.ssbp--theme-6 .ssbp-ellipsis:active{background-color:#4582EC}.ssbp--theme-6 .ssbp-ellipsis+.ssbp-each-share{color:#4582EC;border-color:#4582EC}.ssbp--theme-6 .ssbp-facebook{border-color:#3b5998;color:#3b5998}.ssbp--theme-6 .ssbp-facebook:hover,.ssbp--theme-6 .ssbp-facebook:focus,.ssbp--theme-6 .ssbp-facebook:active{background-color:#3b5998}.ssbp--theme-6 .ssbp-facebook+.ssbp-each-share{color:#3b5998;border-color:#3b5998}.ssbp--theme-6 .ssbp-facebook_save{border-color:#3b5998;color:#3b5998}.ssbp--theme-6 .ssbp-facebook_save:hover,.ssbp--theme-6 .ssbp-facebook_save:focus,.ssbp--theme-6 .ssbp-facebook_save:active{background-color:#3b5998}.ssbp--theme-6 .ssbp-facebook_save+.ssbp-each-share{color:#3b5998;border-color:#3b5998}.ssbp--theme-6 .ssbp-facebook-messenger{border-color:#0084FF;color:#0084FF}.ssbp--theme-6 .ssbp-facebook-messenger:hover,.ssbp--theme-6 .ssbp-facebook-messenger:focus,.ssbp--theme-6 .ssbp-facebook-messenger:active{background-color:#0084FF}.ssbp--theme-6 .ssbp-facebook-messenger+.ssbp-each-share{color:#0084FF;border-color:#0084FF}.ssbp--theme-6 .ssbp-flattr{border-color:#f67C1A;color:#f67C1A}.ssbp--theme-6 .ssbp-flattr:hover,.ssbp--theme-6 .ssbp-flattr:focus,.ssbp--theme-6 .ssbp-flattr:active{background-color:#f67C1A}.ssbp--theme-6 .ssbp-flattr+.ssbp-each-share{color:#f67C1A;border-color:#f67C1A}.ssbp--theme-6 .ssbp-google{border-color:#DC4E41;color:#DC4E41}.ssbp--theme-6 .ssbp-google:hover,.ssbp--theme-6 .ssbp-google:focus,.ssbp--theme-6 .ssbp-google:active{background-color:#DC4E41}.ssbp--theme-6 .ssbp-google+.ssbp-each-share{color:#DC4E41;border-color:#DC4E41}.ssbp--theme-6 .ssbp-linkedin{border-color:#007bb6;color:#007bb6}.ssbp--theme-6 .ssbp-linkedin:hover,.ssbp--theme-6 .ssbp-linkedin:focus,.ssbp--theme-6 .ssbp-linkedin:active{background-color:#007bb6}.ssbp--theme-6 .ssbp-linkedin+.ssbp-each-share{color:#007bb6;border-color:#007bb6}.ssbp--theme-6 .ssbp-pinterest{border-color:#ce1a19;color:#ce1a19}.ssbp--theme-6 .ssbp-pinterest:hover,.ssbp--theme-6 .ssbp-pinterest:focus,.ssbp--theme-6 .ssbp-pinterest:active{background-color:#ce1a19}.ssbp--theme-6 .ssbp-pinterest+.ssbp-each-share{color:#ce1a19;border-color:#ce1a19}.ssbp--theme-6 .ssbp-print{border-color:#1F6B43;color:#1F6B43}.ssbp--theme-6 .ssbp-print:hover,.ssbp--theme-6 .ssbp-print:focus,.ssbp--theme-6 .ssbp-print:active{background-color:#1F6B43}.ssbp--theme-6 .ssbp-print+.ssbp-each-share{color:#1F6B43;border-color:#1F6B43}.ssbp--theme-6 .ssbp-reddit{border-color:#FF4500;color:#FF4500}.ssbp--theme-6 .ssbp-reddit:hover,.ssbp--theme-6 .ssbp-reddit:focus,.ssbp--theme-6 .ssbp-reddit:active{background-color:#FF4500}.ssbp--theme-6 .ssbp-reddit+.ssbp-each-share{color:#FF4500;border-color:#FF4500}.ssbp--theme-6 .ssbp-simplesharebuttons{border-color:#4582ec;color:#4582ec}.ssbp--theme-6 .ssbp-simplesharebuttons:hover,.ssbp--theme-6 .ssbp-simplesharebuttons:focus,.ssbp--theme-6 .ssbp-simplesharebuttons:active{background-color:#4582ec}.ssbp--theme-6 .ssbp-simplesharebuttons+.ssbp-each-share{color:#4582ec;border-color:#4582ec}.ssbp--theme-6 .ssbp-stumbleupon{border-color:#EB4924;color:#EB4924}.ssbp--theme-6 .ssbp-stumbleupon:hover,.ssbp--theme-6 .ssbp-stumbleupon:focus,.ssbp--theme-6 .ssbp-stumbleupon:active{background-color:#EB4924}.ssbp--theme-6 .ssbp-stumbleupon+.ssbp-each-share{color:#EB4924;border-color:#EB4924}.ssbp--theme-6 .ssbp-tumblr{border-color:#2C4762;color:#2C4762}.ssbp--theme-6 .ssbp-tumblr:hover,.ssbp--theme-6 .ssbp-tumblr:focus,.ssbp--theme-6 .ssbp-tumblr:active{background-color:#2C4762}.ssbp--theme-6 .ssbp-tumblr+.ssbp-each-share{color:#2C4762;border-color:#2C4762}.ssbp--theme-6 .ssbp-twitter{border-color:#00a9f1;color:#00a9f1}.ssbp--theme-6 .ssbp-twitter:hover,.ssbp--theme-6 .ssbp-twitter:focus,.ssbp--theme-6 .ssbp-twitter:active{background-color:#00a9f1}.ssbp--theme-6 .ssbp-twitter+.ssbp-each-share{color:#00a9f1;border-color:#00a9f1}.ssbp--theme-6 .ssbp-vk{border-color:#45668E;color:#45668E}.ssbp--theme-6 .ssbp-vk:hover,.ssbp--theme-6 .ssbp-vk:focus,.ssbp--theme-6 .ssbp-vk:active{background-color:#45668E}.ssbp--theme-6 .ssbp-vk+.ssbp-each-share{color:#45668E;border-color:#45668E}.ssbp--theme-6 .ssbp-whatsapp{border-color:#34AF23;color:#34AF23}.ssbp--theme-6 .ssbp-whatsapp:hover,.ssbp--theme-6 .ssbp-whatsapp:focus,.ssbp--theme-6 .ssbp-whatsapp:active{background-color:#34AF23}.ssbp--theme-6 .ssbp-whatsapp+.ssbp-each-share{color:#34AF23;border-color:#34AF23}.ssbp--theme-6 .ssbp-yummly{border-color:#E16120;color:#E16120}.ssbp--theme-6 .ssbp-yummly:hover,.ssbp--theme-6 .ssbp-yummly:focus,.ssbp--theme-6 .ssbp-yummly:active{background-color:#E16120}.ssbp--theme-6 .ssbp-yummly+.ssbp-each-share{color:#E16120;border-color:#E16120}.ssbp--theme-6 .ssbp-xing{border-color:#026466;color:#026466}.ssbp--theme-6 .ssbp-xing:hover,.ssbp--theme-6 .ssbp-xing:focus,.ssbp--theme-6 .ssbp-xing:active{background-color:#026466}.ssbp--theme-6 .ssbp-xing+.ssbp-each-share{color:#026466;border-color:#026466}.ssbp--theme-6 .ssbp-each-share{position:absolute;top:0;left:100%;z-index:11;margin-left:-12px;padding:2px;border:1px solid #fff;background-color:#fff;border-radius:6px;font-size:10px;color:#FFF}.ssbp--theme-6.ssbp--fixed-right .ssbp-each-share{left:auto;right:100%;margin-left:0;margin-right:-12px}.ssbp--theme-2 .ssbp-toggle-switch,.ssbp--theme-3 .ssbp-toggle-switch,.ssbp--theme-10 .ssbp-toggle-switch,.ssbp--theme-11 .ssbp-toggle-switch{background:#4C4C4C;background:rgba(39,39,39,0.8);border-radius:0;color:#fff}.ssbp--theme-2 .ssbp-toggle-switch:active,.ssbp--theme-3 .ssbp-toggle-switch:active,.ssbp--theme-10 .ssbp-toggle-switch:active,.ssbp--theme-11 .ssbp-toggle-switch:active,.ssbp--theme-2 .ssbp-toggle-switch:hover,.ssbp--theme-3 .ssbp-toggle-switch:hover,.ssbp--theme-10 .ssbp-toggle-switch:hover,.ssbp--theme-11 .ssbp-toggle-switch:hover,.ssbp--theme-2 .ssbp-toggle-switch:focus,.ssbp--theme-3 .ssbp-toggle-switch:focus,.ssbp--theme-10 .ssbp-toggle-switch:focus,.ssbp--theme-11 .ssbp-toggle-switch:focus{background:#4C4C4C;background:rgba(39,39,39,0.9)}.ssbp--theme-1 .ssbp-toggle-switch,.ssbp--theme-4 .ssbp-toggle-switch,.ssbp--theme-5 .ssbp-toggle-switch,.ssbp--theme-6 .ssbp-toggle-switch,.ssbp--theme-7 .ssbp-toggle-switch,.ssbp--theme-8 .ssbp-toggle-switch,.ssbp--theme-9 .ssbp-toggle-switch{background:#fff;background:rgba(255,255,255,0.8);color:#272727;border-radius:0}.ssbp--theme-1 .ssbp-toggle-switch:active,.ssbp--theme-4 .ssbp-toggle-switch:active,.ssbp--theme-5 .ssbp-toggle-switch:active,.ssbp--theme-6 .ssbp-toggle-switch:active,.ssbp--theme-7 .ssbp-toggle-switch:active,.ssbp--theme-8 .ssbp-toggle-switch:active,.ssbp--theme-9 .ssbp-toggle-switch:active,.ssbp--theme-1 .ssbp-toggle-switch:hover,.ssbp--theme-4 .ssbp-toggle-switch:hover,.ssbp--theme-5 .ssbp-toggle-switch:hover,.ssbp--theme-6 .ssbp-toggle-switch:hover,.ssbp--theme-7 .ssbp-toggle-switch:hover,.ssbp--theme-8 .ssbp-toggle-switch:hover,.ssbp--theme-9 .ssbp-toggle-switch:hover,.ssbp--theme-1 .ssbp-toggle-switch:focus,.ssbp--theme-4 .ssbp-toggle-switch:focus,.ssbp--theme-5 .ssbp-toggle-switch:focus,.ssbp--theme-6 .ssbp-toggle-switch:focus,.ssbp--theme-7 .ssbp-toggle-switch:focus,.ssbp--theme-8 .ssbp-toggle-switch:focus,.ssbp--theme-9 .ssbp-toggle-switch:focus{background:#fff;background:rgba(255,255,255,0.9)}.ssbp--theme-2.ssbp--centred .ssbp-list,.ssbp--theme-3.ssbp--centred .ssbp-list,.ssbp--theme-5.ssbp--centred .ssbp-list,.ssbp--theme-7.ssbp--centred .ssbp-list,.ssbp--theme-8.ssbp--centred .ssbp-list,.ssbp--theme-9.ssbp--centred .ssbp-list,.ssbp--theme-10.ssbp--centred .ssbp-list,.ssbp--theme-11.ssbp--centred .ssbp-list{display:table;table-layout:fixed;width:100%}.ssbp--theme-2.ssbp--centred .ssbp-list li,.ssbp--theme-3.ssbp--centred .ssbp-list li,.ssbp--theme-5.ssbp--centred .ssbp-list li,.ssbp--theme-7.ssbp--centred .ssbp-list li,.ssbp--theme-8.ssbp--centred .ssbp-list li,.ssbp--theme-9.ssbp--centred .ssbp-list li,.ssbp--theme-10.ssbp--centred .ssbp-list li,.ssbp--theme-11.ssbp--centred .ssbp-list li{display:inline-block !important;margin:0 6px !important;display:table-cell !important;width:auto;height:auto}.ssbp--theme-2.ssbp--centred .ssbp-btn,.ssbp--theme-3.ssbp--centred .ssbp-btn,.ssbp--theme-5.ssbp--centred .ssbp-btn,.ssbp--theme-7.ssbp--centred .ssbp-btn,.ssbp--theme-8.ssbp--centred .ssbp-btn,.ssbp--theme-9.ssbp--centred .ssbp-btn,.ssbp--theme-10.ssbp--centred .ssbp-btn,.ssbp--theme-11.ssbp--centred .ssbp-btn{display:block;width:auto}.ssbp--theme-7 .ssbp-list li{margin-left:6px}.ssbp--theme-7 .ssbp-text{display:inline-block;vertical-align:middle;font-size:12px;margin-left:.5em}.ssbp--theme-7 .ssbp-btn{display:block;padding:0.5em 1em;border:2px solid #fff;color:#fff;background-color:#fff;-webkit-transition:background-color .25s;transition:background-color .25s}.ssbp--theme-7 .ssbp-btn:before{vertical-align:middle}.ssbp--theme-7 .ssbp-buffer{border-color:#272727;color:#272727}.ssbp--theme-7 .ssbp-buffer:visited{color:#272727}.ssbp--theme-7 .ssbp-buffer:hover,.ssbp--theme-7 .ssbp-buffer:focus,.ssbp--theme-7 .ssbp-buffer:active{background-color:#272727;border-bottom:2px #272727 solid;color:#fff}.ssbp--theme-7 .ssbp-buffer+.ssbp-each-share{color:#272727}.ssbp--theme-7 .ssbp-diggit{border-color:#14589E;color:#14589E}.ssbp--theme-7 .ssbp-diggit:visited{color:#14589E}.ssbp--theme-7 .ssbp-diggit:hover,.ssbp--theme-7 .ssbp-diggit:focus,.ssbp--theme-7 .ssbp-diggit:active{background-color:#14589E;border-bottom:2px #14589E solid;color:#fff}.ssbp--theme-7 .ssbp-diggit+.ssbp-each-share{color:#14589E}.ssbp--theme-7 .ssbp-email{border-color:#787878;color:#787878}.ssbp--theme-7 .ssbp-email:visited{color:#787878}.ssbp--theme-7 .ssbp-email:hover,.ssbp--theme-7 .ssbp-email:focus,.ssbp--theme-7 .ssbp-email:active{background-color:#787878;border-bottom:2px #787878 solid;color:#fff}.ssbp--theme-7 .ssbp-email+.ssbp-each-share{color:#787878}.ssbp--theme-7 .ssbp-ellipsis{border-color:#4582EC;color:#4582EC}.ssbp--theme-7 .ssbp-ellipsis:visited{color:#4582EC}.ssbp--theme-7 .ssbp-ellipsis:hover,.ssbp--theme-7 .ssbp-ellipsis:focus,.ssbp--theme-7 .ssbp-ellipsis:active{background-color:#4582EC;border-bottom:2px #4582EC solid;color:#fff}.ssbp--theme-7 .ssbp-ellipsis+.ssbp-each-share{color:#4582EC}.ssbp--theme-7 .ssbp-facebook{border-color:#3b5998;color:#3b5998}.ssbp--theme-7 .ssbp-facebook:visited{color:#3b5998}.ssbp--theme-7 .ssbp-facebook:hover,.ssbp--theme-7 .ssbp-facebook:focus,.ssbp--theme-7 .ssbp-facebook:active{background-color:#3b5998;border-bottom:2px #3b5998 solid;color:#fff}.ssbp--theme-7 .ssbp-facebook+.ssbp-each-share{color:#3b5998}.ssbp--theme-7 .ssbp-facebook_save{border-color:#3b5998;color:#3b5998}.ssbp--theme-7 .ssbp-facebook_save:visited{color:#3b5998}.ssbp--theme-7 .ssbp-facebook_save:hover,.ssbp--theme-7 .ssbp-facebook_save:focus,.ssbp--theme-7 .ssbp-facebook_save:active{background-color:#3b5998;border-bottom:2px #3b5998 solid;color:#fff}.ssbp--theme-7 .ssbp-facebook_save+.ssbp-each-share{color:#3b5998}.ssbp--theme-7 .ssbp-facebook-messenger{border-color:#0084FF;color:#0084FF}.ssbp--theme-7 .ssbp-facebook-messenger:visited{color:#0084FF}.ssbp--theme-7 .ssbp-facebook-messenger:hover,.ssbp--theme-7 .ssbp-facebook-messenger:focus,.ssbp--theme-7 .ssbp-facebook-messenger:active{background-color:#0084FF;border-bottom:2px #0084FF solid;color:#fff}.ssbp--theme-7 .ssbp-facebook-messenger+.ssbp-each-share{color:#0084FF}.ssbp--theme-7 .ssbp-flattr{border-color:#f67C1A;color:#f67C1A}.ssbp--theme-7 .ssbp-flattr:visited{color:#f67C1A}.ssbp--theme-7 .ssbp-flattr:hover,.ssbp--theme-7 .ssbp-flattr:focus,.ssbp--theme-7 .ssbp-flattr:active{background-color:#f67C1A;border-bottom:2px #f67C1A solid;color:#fff}.ssbp--theme-7 .ssbp-flattr+.ssbp-each-share{color:#f67C1A}.ssbp--theme-7 .ssbp-google{border-color:#DC4E41;color:#DC4E41}.ssbp--theme-7 .ssbp-google:visited{color:#DC4E41}.ssbp--theme-7 .ssbp-google:hover,.ssbp--theme-7 .ssbp-google:focus,.ssbp--theme-7 .ssbp-google:active{background-color:#DC4E41;border-bottom:2px #DC4E41 solid;color:#fff}.ssbp--theme-7 .ssbp-google+.ssbp-each-share{color:#DC4E41}.ssbp--theme-7 .ssbp-linkedin{border-color:#007bb6;color:#007bb6}.ssbp--theme-7 .ssbp-linkedin:visited{color:#007bb6}.ssbp--theme-7 .ssbp-linkedin:hover,.ssbp--theme-7 .ssbp-linkedin:focus,.ssbp--theme-7 .ssbp-linkedin:active{background-color:#007bb6;border-bottom:2px #007bb6 solid;color:#fff}.ssbp--theme-7 .ssbp-linkedin+.ssbp-each-share{color:#007bb6}.ssbp--theme-7 .ssbp-pinterest{border-color:#ce1a19;color:#ce1a19}.ssbp--theme-7 .ssbp-pinterest:visited{color:#ce1a19}.ssbp--theme-7 .ssbp-pinterest:hover,.ssbp--theme-7 .ssbp-pinterest:focus,.ssbp--theme-7 .ssbp-pinterest:active{background-color:#ce1a19;border-bottom:2px #ce1a19 solid;color:#fff}.ssbp--theme-7 .ssbp-pinterest+.ssbp-each-share{color:#ce1a19}.ssbp--theme-7 .ssbp-print{border-color:#1F6B43;color:#1F6B43}.ssbp--theme-7 .ssbp-print:visited{color:#1F6B43}.ssbp--theme-7 .ssbp-print:hover,.ssbp--theme-7 .ssbp-print:focus,.ssbp--theme-7 .ssbp-print:active{background-color:#1F6B43;border-bottom:2px #1F6B43 solid;color:#fff}.ssbp--theme-7 .ssbp-print+.ssbp-each-share{color:#1F6B43}.ssbp--theme-7 .ssbp-reddit{border-color:#FF4500;color:#FF4500}.ssbp--theme-7 .ssbp-reddit:visited{color:#FF4500}.ssbp--theme-7 .ssbp-reddit:hover,.ssbp--theme-7 .ssbp-reddit:focus,.ssbp--theme-7 .ssbp-reddit:active{background-color:#FF4500;border-bottom:2px #FF4500 solid;color:#fff}.ssbp--theme-7 .ssbp-reddit+.ssbp-each-share{color:#FF4500}.ssbp--theme-7 .ssbp-simplesharebuttons{border-color:#4582ec;color:#4582ec}.ssbp--theme-7 .ssbp-simplesharebuttons:visited{color:#4582ec}.ssbp--theme-7 .ssbp-simplesharebuttons:hover,.ssbp--theme-7 .ssbp-simplesharebuttons:focus,.ssbp--theme-7 .ssbp-simplesharebuttons:active{background-color:#4582ec;border-bottom:2px #4582ec solid;color:#fff}.ssbp--theme-7 .ssbp-simplesharebuttons+.ssbp-each-share{color:#4582ec}.ssbp--theme-7 .ssbp-stumbleupon{border-color:#EB4924;color:#EB4924}.ssbp--theme-7 .ssbp-stumbleupon:visited{color:#EB4924}.ssbp--theme-7 .ssbp-stumbleupon:hover,.ssbp--theme-7 .ssbp-stumbleupon:focus,.ssbp--theme-7 .ssbp-stumbleupon:active{background-color:#EB4924;border-bottom:2px #EB4924 solid;color:#fff}.ssbp--theme-7 .ssbp-stumbleupon+.ssbp-each-share{color:#EB4924}.ssbp--theme-7 .ssbp-tumblr{border-color:#2C4762;color:#2C4762}.ssbp--theme-7 .ssbp-tumblr:visited{color:#2C4762}.ssbp--theme-7 .ssbp-tumblr:hover,.ssbp--theme-7 .ssbp-tumblr:focus,.ssbp--theme-7 .ssbp-tumblr:active{background-color:#2C4762;border-bottom:2px #2C4762 solid;color:#fff}.ssbp--theme-7 .ssbp-tumblr+.ssbp-each-share{color:#2C4762}.ssbp--theme-7 .ssbp-twitter{border-color:#00a9f1;color:#00a9f1}.ssbp--theme-7 .ssbp-twitter:visited{color:#00a9f1}.ssbp--theme-7 .ssbp-twitter:hover,.ssbp--theme-7 .ssbp-twitter:focus,.ssbp--theme-7 .ssbp-twitter:active{background-color:#00a9f1;border-bottom:2px #00a9f1 solid;color:#fff}.ssbp--theme-7 .ssbp-twitter+.ssbp-each-share{color:#00a9f1}.ssbp--theme-7 .ssbp-vk{border-color:#45668E;color:#45668E}.ssbp--theme-7 .ssbp-vk:visited{color:#45668E}.ssbp--theme-7 .ssbp-vk:hover,.ssbp--theme-7 .ssbp-vk:focus,.ssbp--theme-7 .ssbp-vk:active{background-color:#45668E;border-bottom:2px #45668E solid;color:#fff}.ssbp--theme-7 .ssbp-vk+.ssbp-each-share{color:#45668E}.ssbp--theme-7 .ssbp-whatsapp{border-color:#34AF23;color:#34AF23}.ssbp--theme-7 .ssbp-whatsapp:visited{color:#34AF23}.ssbp--theme-7 .ssbp-whatsapp:hover,.ssbp--theme-7 .ssbp-whatsapp:focus,.ssbp--theme-7 .ssbp-whatsapp:active{background-color:#34AF23;border-bottom:2px #34AF23 solid;color:#fff}.ssbp--theme-7 .ssbp-whatsapp+.ssbp-each-share{color:#34AF23}.ssbp--theme-7 .ssbp-yummly{border-color:#E16120;color:#E16120}.ssbp--theme-7 .ssbp-yummly:visited{color:#E16120}.ssbp--theme-7 .ssbp-yummly:hover,.ssbp--theme-7 .ssbp-yummly:focus,.ssbp--theme-7 .ssbp-yummly:active{background-color:#E16120;border-bottom:2px #E16120 solid;color:#fff}.ssbp--theme-7 .ssbp-yummly+.ssbp-each-share{color:#E16120}.ssbp--theme-7 .ssbp-xing{border-color:#026466;color:#026466}.ssbp--theme-7 .ssbp-xing:visited{color:#026466}.ssbp--theme-7 .ssbp-xing:hover,.ssbp--theme-7 .ssbp-xing:focus,.ssbp--theme-7 .ssbp-xing:active{background-color:#026466;border-bottom:2px #026466 solid;color:#fff}.ssbp--theme-7 .ssbp-xing+.ssbp-each-share{color:#026466}.ssbp--theme-7 .ssbp-each-share{padding-top:3px;text-align:center;font-size:12px}.ssbp--theme-2 .ssbp-toggle-switch,.ssbp--theme-3 .ssbp-toggle-switch,.ssbp--theme-10 .ssbp-toggle-switch,.ssbp--theme-11 .ssbp-toggle-switch{background:#4C4C4C;background:rgba(39,39,39,0.8);border-radius:0;color:#fff}.ssbp--theme-2 .ssbp-toggle-switch:active,.ssbp--theme-3 .ssbp-toggle-switch:active,.ssbp--theme-10 .ssbp-toggle-switch:active,.ssbp--theme-11 .ssbp-toggle-switch:active,.ssbp--theme-2 .ssbp-toggle-switch:hover,.ssbp--theme-3 .ssbp-toggle-switch:hover,.ssbp--theme-10 .ssbp-toggle-switch:hover,.ssbp--theme-11 .ssbp-toggle-switch:hover,.ssbp--theme-2 .ssbp-toggle-switch:focus,.ssbp--theme-3 .ssbp-toggle-switch:focus,.ssbp--theme-10 .ssbp-toggle-switch:focus,.ssbp--theme-11 .ssbp-toggle-switch:focus{background:#4C4C4C;background:rgba(39,39,39,0.9)}.ssbp--theme-1 .ssbp-toggle-switch,.ssbp--theme-4 .ssbp-toggle-switch,.ssbp--theme-5 .ssbp-toggle-switch,.ssbp--theme-6 .ssbp-toggle-switch,.ssbp--theme-7 .ssbp-toggle-switch,.ssbp--theme-8 .ssbp-toggle-switch,.ssbp--theme-9 .ssbp-toggle-switch{background:#fff;background:rgba(255,255,255,0.8);color:#272727;border-radius:0}.ssbp--theme-1 .ssbp-toggle-switch:active,.ssbp--theme-4 .ssbp-toggle-switch:active,.ssbp--theme-5 .ssbp-toggle-switch:active,.ssbp--theme-6 .ssbp-toggle-switch:active,.ssbp--theme-7 .ssbp-toggle-switch:active,.ssbp--theme-8 .ssbp-toggle-switch:active,.ssbp--theme-9 .ssbp-toggle-switch:active,.ssbp--theme-1 .ssbp-toggle-switch:hover,.ssbp--theme-4 .ssbp-toggle-switch:hover,.ssbp--theme-5 .ssbp-toggle-switch:hover,.ssbp--theme-6 .ssbp-toggle-switch:hover,.ssbp--theme-7 .ssbp-toggle-switch:hover,.ssbp--theme-8 .ssbp-toggle-switch:hover,.ssbp--theme-9 .ssbp-toggle-switch:hover,.ssbp--theme-1 .ssbp-toggle-switch:focus,.ssbp--theme-4 .ssbp-toggle-switch:focus,.ssbp--theme-5 .ssbp-toggle-switch:focus,.ssbp--theme-6 .ssbp-toggle-switch:focus,.ssbp--theme-7 .ssbp-toggle-switch:focus,.ssbp--theme-8 .ssbp-toggle-switch:focus,.ssbp--theme-9 .ssbp-toggle-switch:focus{background:#fff;background:rgba(255,255,255,0.9)}.ssbp--theme-2.ssbp--centred .ssbp-list,.ssbp--theme-3.ssbp--centred .ssbp-list,.ssbp--theme-5.ssbp--centred .ssbp-list,.ssbp--theme-7.ssbp--centred .ssbp-list,.ssbp--theme-8.ssbp--centred .ssbp-list,.ssbp--theme-9.ssbp--centred .ssbp-list,.ssbp--theme-10.ssbp--centred .ssbp-list,.ssbp--theme-11.ssbp--centred .ssbp-list{display:table;table-layout:fixed;width:100%}.ssbp--theme-2.ssbp--centred .ssbp-list li,.ssbp--theme-3.ssbp--centred .ssbp-list li,.ssbp--theme-5.ssbp--centred .ssbp-list li,.ssbp--theme-7.ssbp--centred .ssbp-list li,.ssbp--theme-8.ssbp--centred .ssbp-list li,.ssbp--theme-9.ssbp--centred .ssbp-list li,.ssbp--theme-10.ssbp--centred .ssbp-list li,.ssbp--theme-11.ssbp--centred .ssbp-list li{display:inline-block !important;margin:0 6px !important;display:table-cell !important;width:auto;height:auto}.ssbp--theme-2.ssbp--centred .ssbp-btn,.ssbp--theme-3.ssbp--centred .ssbp-btn,.ssbp--theme-5.ssbp--centred .ssbp-btn,.ssbp--theme-7.ssbp--centred .ssbp-btn,.ssbp--theme-8.ssbp--centred .ssbp-btn,.ssbp--theme-9.ssbp--centred .ssbp-btn,.ssbp--theme-10.ssbp--centred .ssbp-btn,.ssbp--theme-11.ssbp--centred .ssbp-btn{display:block;width:auto}.ssbp--theme-8 .ssbp-list li{margin-left:6px}.ssbp--theme-8 .ssbp-btn:hover,.ssbp--theme-8 .ssbp-btn:focus,.ssbp--theme-8 .ssbp-btn:active{border-bottom:3px solid #272727}.ssbp--theme-8 .ssbp-btn,.ssbp--theme-8 .ssbp-btn:visited{width:4em;height:3em;line-height:3em;position:relative;border:3px solid #272727;background-color:#fff;color:#272727;-webkit-transition:.25s;transition:.25s}.ssbp--theme-8 .ssbp-btn:hover,.ssbp--theme-8 .ssbp-btn:focus,.ssbp--theme-8 .ssbp-btn:active,.ssbp--theme-8 .ssbp-btn:visited:hover,.ssbp--theme-8 .ssbp-btn:visited:focus,.ssbp--theme-8 .ssbp-btn:visited:active{background-color:#272727;color:#fff}.ssbp--theme-8 .ssbp-each-share{padding-top:3px;text-align:center;font-size:12px}.ssbp--theme-2 .ssbp-toggle-switch,.ssbp--theme-3 .ssbp-toggle-switch,.ssbp--theme-10 .ssbp-toggle-switch,.ssbp--theme-11 .ssbp-toggle-switch{background:#4C4C4C;background:rgba(39,39,39,0.8);border-radius:0;color:#fff}.ssbp--theme-2 .ssbp-toggle-switch:active,.ssbp--theme-3 .ssbp-toggle-switch:active,.ssbp--theme-10 .ssbp-toggle-switch:active,.ssbp--theme-11 .ssbp-toggle-switch:active,.ssbp--theme-2 .ssbp-toggle-switch:hover,.ssbp--theme-3 .ssbp-toggle-switch:hover,.ssbp--theme-10 .ssbp-toggle-switch:hover,.ssbp--theme-11 .ssbp-toggle-switch:hover,.ssbp--theme-2 .ssbp-toggle-switch:focus,.ssbp--theme-3 .ssbp-toggle-switch:focus,.ssbp--theme-10 .ssbp-toggle-switch:focus,.ssbp--theme-11 .ssbp-toggle-switch:focus{background:#4C4C4C;background:rgba(39,39,39,0.9)}.ssbp--theme-1 .ssbp-toggle-switch,.ssbp--theme-4 .ssbp-toggle-switch,.ssbp--theme-5 .ssbp-toggle-switch,.ssbp--theme-6 .ssbp-toggle-switch,.ssbp--theme-7 .ssbp-toggle-switch,.ssbp--theme-8 .ssbp-toggle-switch,.ssbp--theme-9 .ssbp-toggle-switch{background:#fff;background:rgba(255,255,255,0.8);color:#272727;border-radius:0}.ssbp--theme-1 .ssbp-toggle-switch:active,.ssbp--theme-4 .ssbp-toggle-switch:active,.ssbp--theme-5 .ssbp-toggle-switch:active,.ssbp--theme-6 .ssbp-toggle-switch:active,.ssbp--theme-7 .ssbp-toggle-switch:active,.ssbp--theme-8 .ssbp-toggle-switch:active,.ssbp--theme-9 .ssbp-toggle-switch:active,.ssbp--theme-1 .ssbp-toggle-switch:hover,.ssbp--theme-4 .ssbp-toggle-switch:hover,.ssbp--theme-5 .ssbp-toggle-switch:hover,.ssbp--theme-6 .ssbp-toggle-switch:hover,.ssbp--theme-7 .ssbp-toggle-switch:hover,.ssbp--theme-8 .ssbp-toggle-switch:hover,.ssbp--theme-9 .ssbp-toggle-switch:hover,.ssbp--theme-1 .ssbp-toggle-switch:focus,.ssbp--theme-4 .ssbp-toggle-switch:focus,.ssbp--theme-5 .ssbp-toggle-switch:focus,.ssbp--theme-6 .ssbp-toggle-switch:focus,.ssbp--theme-7 .ssbp-toggle-switch:focus,.ssbp--theme-8 .ssbp-toggle-switch:focus,.ssbp--theme-9 .ssbp-toggle-switch:focus{background:#fff;background:rgba(255,255,255,0.9)}.ssbp--theme-2.ssbp--centred .ssbp-list,.ssbp--theme-3.ssbp--centred .ssbp-list,.ssbp--theme-5.ssbp--centred .ssbp-list,.ssbp--theme-7.ssbp--centred .ssbp-list,.ssbp--theme-8.ssbp--centred .ssbp-list,.ssbp--theme-9.ssbp--centred .ssbp-list,.ssbp--theme-10.ssbp--centred .ssbp-list,.ssbp--theme-11.ssbp--centred .ssbp-list{display:table;table-layout:fixed;width:100%}.ssbp--theme-2.ssbp--centred .ssbp-list li,.ssbp--theme-3.ssbp--centred .ssbp-list li,.ssbp--theme-5.ssbp--centred .ssbp-list li,.ssbp--theme-7.ssbp--centred .ssbp-list li,.ssbp--theme-8.ssbp--centred .ssbp-list li,.ssbp--theme-9.ssbp--centred .ssbp-list li,.ssbp--theme-10.ssbp--centred .ssbp-list li,.ssbp--theme-11.ssbp--centred .ssbp-list li{display:inline-block !important;margin:0 6px !important;display:table-cell !important;width:auto;height:auto}.ssbp--theme-2.ssbp--centred .ssbp-btn,.ssbp--theme-3.ssbp--centred .ssbp-btn,.ssbp--theme-5.ssbp--centred .ssbp-btn,.ssbp--theme-7.ssbp--centred .ssbp-btn,.ssbp--theme-8.ssbp--centred .ssbp-btn,.ssbp--theme-9.ssbp--centred .ssbp-btn,.ssbp--theme-10.ssbp--centred .ssbp-btn,.ssbp--theme-11.ssbp--centred .ssbp-btn{display:block;width:auto}.ssbp--theme-9 .ssbp-list li{margin-left:6px}.ssbp--theme-9 .ssbp-btn{display:block;padding:.5em 1em}.ssbp--theme-9 .ssbp-btn:hover,.ssbp--theme-9 .ssbp-btn:focus,.ssbp--theme-9 .ssbp-btn:active{opacity:.66}.ssbp--theme-9 .ssbp-buffer{border-bottom:5px solid #272727;color:#272727}.ssbp--theme-9 .ssbp-buffer:hover,.ssbp--theme-9 .ssbp-buffer:focus,.ssbp--theme-9 .ssbp-buffer:active{border-bottom:5px solid #272727}.ssbp--theme-9 .ssbp-buffer:hover,.ssbp--theme-9 .ssbp-buffer:focus,.ssbp--theme-9 .ssbp-buffer:active,.ssbp--theme-9 .ssbp-buffer:visited{color:#272727}.ssbp--theme-9 .ssbp-buffer+.ssbp-each-share{color:#272727}.ssbp--theme-9 .ssbp-diggit{border-bottom:5px solid #14589E;color:#14589E}.ssbp--theme-9 .ssbp-diggit:hover,.ssbp--theme-9 .ssbp-diggit:focus,.ssbp--theme-9 .ssbp-diggit:active{border-bottom:5px solid #14589E}.ssbp--theme-9 .ssbp-diggit:hover,.ssbp--theme-9 .ssbp-diggit:focus,.ssbp--theme-9 .ssbp-diggit:active,.ssbp--theme-9 .ssbp-diggit:visited{color:#14589E}.ssbp--theme-9 .ssbp-diggit+.ssbp-each-share{color:#14589E}.ssbp--theme-9 .ssbp-email{border-bottom:5px solid #787878;color:#787878}.ssbp--theme-9 .ssbp-email:hover,.ssbp--theme-9 .ssbp-email:focus,.ssbp--theme-9 .ssbp-email:active{border-bottom:5px solid #787878}.ssbp--theme-9 .ssbp-email:hover,.ssbp--theme-9 .ssbp-email:focus,.ssbp--theme-9 .ssbp-email:active,.ssbp--theme-9 .ssbp-email:visited{color:#787878}.ssbp--theme-9 .ssbp-email+.ssbp-each-share{color:#787878}.ssbp--theme-9 .ssbp-ellipsis{border-bottom:5px solid #4582EC;color:#4582EC}.ssbp--theme-9 .ssbp-ellipsis:hover,.ssbp--theme-9 .ssbp-ellipsis:focus,.ssbp--theme-9 .ssbp-ellipsis:active{border-bottom:5px solid #4582EC}.ssbp--theme-9 .ssbp-ellipsis:hover,.ssbp--theme-9 .ssbp-ellipsis:focus,.ssbp--theme-9 .ssbp-ellipsis:active,.ssbp--theme-9 .ssbp-ellipsis:visited{color:#4582EC}.ssbp--theme-9 .ssbp-ellipsis+.ssbp-each-share{color:#4582EC}.ssbp--theme-9 .ssbp-facebook{border-bottom:5px solid #3b5998;color:#3b5998}.ssbp--theme-9 .ssbp-facebook:hover,.ssbp--theme-9 .ssbp-facebook:focus,.ssbp--theme-9 .ssbp-facebook:active{border-bottom:5px solid #3b5998}.ssbp--theme-9 .ssbp-facebook:hover,.ssbp--theme-9 .ssbp-facebook:focus,.ssbp--theme-9 .ssbp-facebook:active,.ssbp--theme-9 .ssbp-facebook:visited{color:#3b5998}.ssbp--theme-9 .ssbp-facebook+.ssbp-each-share{color:#3b5998}.ssbp--theme-9 .ssbp-facebook_save{border-bottom:5px solid #3b5998;color:#3b5998}.ssbp--theme-9 .ssbp-facebook_save:hover,.ssbp--theme-9 .ssbp-facebook_save:focus,.ssbp--theme-9 .ssbp-facebook_save:active{border-bottom:5px solid #3b5998}.ssbp--theme-9 .ssbp-facebook_save:hover,.ssbp--theme-9 .ssbp-facebook_save:focus,.ssbp--theme-9 .ssbp-facebook_save:active,.ssbp--theme-9 .ssbp-facebook_save:visited{color:#3b5998}.ssbp--theme-9 .ssbp-facebook_save+.ssbp-each-share{color:#3b5998}.ssbp--theme-9 .ssbp-facebook-messenger{border-bottom:5px solid #0084FF;color:#0084FF}.ssbp--theme-9 .ssbp-facebook-messenger:hover,.ssbp--theme-9 .ssbp-facebook-messenger:focus,.ssbp--theme-9 .ssbp-facebook-messenger:active{border-bottom:5px solid #0084FF}.ssbp--theme-9 .ssbp-facebook-messenger:hover,.ssbp--theme-9 .ssbp-facebook-messenger:focus,.ssbp--theme-9 .ssbp-facebook-messenger:active,.ssbp--theme-9 .ssbp-facebook-messenger:visited{color:#0084FF}.ssbp--theme-9 .ssbp-facebook-messenger+.ssbp-each-share{color:#0084FF}.ssbp--theme-9 .ssbp-flattr{border-bottom:5px solid #f67C1A;color:#f67C1A}.ssbp--theme-9 .ssbp-flattr:hover,.ssbp--theme-9 .ssbp-flattr:focus,.ssbp--theme-9 .ssbp-flattr:active{border-bottom:5px solid #f67C1A}.ssbp--theme-9 .ssbp-flattr:hover,.ssbp--theme-9 .ssbp-flattr:focus,.ssbp--theme-9 .ssbp-flattr:active,.ssbp--theme-9 .ssbp-flattr:visited{color:#f67C1A}.ssbp--theme-9 .ssbp-flattr+.ssbp-each-share{color:#f67C1A}.ssbp--theme-9 .ssbp-google{border-bottom:5px solid #DC4E41;color:#DC4E41}.ssbp--theme-9 .ssbp-google:hover,.ssbp--theme-9 .ssbp-google:focus,.ssbp--theme-9 .ssbp-google:active{border-bottom:5px solid #DC4E41}.ssbp--theme-9 .ssbp-google:hover,.ssbp--theme-9 .ssbp-google:focus,.ssbp--theme-9 .ssbp-google:active,.ssbp--theme-9 .ssbp-google:visited{color:#DC4E41}.ssbp--theme-9 .ssbp-google+.ssbp-each-share{color:#DC4E41}.ssbp--theme-9 .ssbp-linkedin{border-bottom:5px solid #007bb6;color:#007bb6}.ssbp--theme-9 .ssbp-linkedin:hover,.ssbp--theme-9 .ssbp-linkedin:focus,.ssbp--theme-9 .ssbp-linkedin:active{border-bottom:5px solid #007bb6}.ssbp--theme-9 .ssbp-linkedin:hover,.ssbp--theme-9 .ssbp-linkedin:focus,.ssbp--theme-9 .ssbp-linkedin:active,.ssbp--theme-9 .ssbp-linkedin:visited{color:#007bb6}.ssbp--theme-9 .ssbp-linkedin+.ssbp-each-share{color:#007bb6}.ssbp--theme-9 .ssbp-pinterest{border-bottom:5px solid #ce1a19;color:#ce1a19}.ssbp--theme-9 .ssbp-pinterest:hover,.ssbp--theme-9 .ssbp-pinterest:focus,.ssbp--theme-9 .ssbp-pinterest:active{border-bottom:5px solid #ce1a19}.ssbp--theme-9 .ssbp-pinterest:hover,.ssbp--theme-9 .ssbp-pinterest:focus,.ssbp--theme-9 .ssbp-pinterest:active,.ssbp--theme-9 .ssbp-pinterest:visited{color:#ce1a19}.ssbp--theme-9 .ssbp-pinterest+.ssbp-each-share{color:#ce1a19}.ssbp--theme-9 .ssbp-print{border-bottom:5px solid #1F6B43;color:#1F6B43}.ssbp--theme-9 .ssbp-print:hover,.ssbp--theme-9 .ssbp-print:focus,.ssbp--theme-9 .ssbp-print:active{border-bottom:5px solid #1F6B43}.ssbp--theme-9 .ssbp-print:hover,.ssbp--theme-9 .ssbp-print:focus,.ssbp--theme-9 .ssbp-print:active,.ssbp--theme-9 .ssbp-print:visited{color:#1F6B43}.ssbp--theme-9 .ssbp-print+.ssbp-each-share{color:#1F6B43}.ssbp--theme-9 .ssbp-reddit{border-bottom:5px solid #FF4500;color:#FF4500}.ssbp--theme-9 .ssbp-reddit:hover,.ssbp--theme-9 .ssbp-reddit:focus,.ssbp--theme-9 .ssbp-reddit:active{border-bottom:5px solid #FF4500}.ssbp--theme-9 .ssbp-reddit:hover,.ssbp--theme-9 .ssbp-reddit:focus,.ssbp--theme-9 .ssbp-reddit:active,.ssbp--theme-9 .ssbp-reddit:visited{color:#FF4500}.ssbp--theme-9 .ssbp-reddit+.ssbp-each-share{color:#FF4500}.ssbp--theme-9 .ssbp-simplesharebuttons{border-bottom:5px solid #4582ec;color:#4582ec}.ssbp--theme-9 .ssbp-simplesharebuttons:hover,.ssbp--theme-9 .ssbp-simplesharebuttons:focus,.ssbp--theme-9 .ssbp-simplesharebuttons:active{border-bottom:5px solid #4582ec}.ssbp--theme-9 .ssbp-simplesharebuttons:hover,.ssbp--theme-9 .ssbp-simplesharebuttons:focus,.ssbp--theme-9 .ssbp-simplesharebuttons:active,.ssbp--theme-9 .ssbp-simplesharebuttons:visited{color:#4582ec}.ssbp--theme-9 .ssbp-simplesharebuttons+.ssbp-each-share{color:#4582ec}.ssbp--theme-9 .ssbp-stumbleupon{border-bottom:5px solid #EB4924;color:#EB4924}.ssbp--theme-9 .ssbp-stumbleupon:hover,.ssbp--theme-9 .ssbp-stumbleupon:focus,.ssbp--theme-9 .ssbp-stumbleupon:active{border-bottom:5px solid #EB4924}.ssbp--theme-9 .ssbp-stumbleupon:hover,.ssbp--theme-9 .ssbp-stumbleupon:focus,.ssbp--theme-9 .ssbp-stumbleupon:active,.ssbp--theme-9 .ssbp-stumbleupon:visited{color:#EB4924}.ssbp--theme-9 .ssbp-stumbleupon+.ssbp-each-share{color:#EB4924}.ssbp--theme-9 .ssbp-tumblr{border-bottom:5px solid #2C4762;color:#2C4762}.ssbp--theme-9 .ssbp-tumblr:hover,.ssbp--theme-9 .ssbp-tumblr:focus,.ssbp--theme-9 .ssbp-tumblr:active{border-bottom:5px solid #2C4762}.ssbp--theme-9 .ssbp-tumblr:hover,.ssbp--theme-9 .ssbp-tumblr:focus,.ssbp--theme-9 .ssbp-tumblr:active,.ssbp--theme-9 .ssbp-tumblr:visited{color:#2C4762}.ssbp--theme-9 .ssbp-tumblr+.ssbp-each-share{color:#2C4762}.ssbp--theme-9 .ssbp-twitter{border-bottom:5px solid #00a9f1;color:#00a9f1}.ssbp--theme-9 .ssbp-twitter:hover,.ssbp--theme-9 .ssbp-twitter:focus,.ssbp--theme-9 .ssbp-twitter:active{border-bottom:5px solid #00a9f1}.ssbp--theme-9 .ssbp-twitter:hover,.ssbp--theme-9 .ssbp-twitter:focus,.ssbp--theme-9 .ssbp-twitter:active,.ssbp--theme-9 .ssbp-twitter:visited{color:#00a9f1}.ssbp--theme-9 .ssbp-twitter+.ssbp-each-share{color:#00a9f1}.ssbp--theme-9 .ssbp-vk{border-bottom:5px solid #45668E;color:#45668E}.ssbp--theme-9 .ssbp-vk:hover,.ssbp--theme-9 .ssbp-vk:focus,.ssbp--theme-9 .ssbp-vk:active{border-bottom:5px solid #45668E}.ssbp--theme-9 .ssbp-vk:hover,.ssbp--theme-9 .ssbp-vk:focus,.ssbp--theme-9 .ssbp-vk:active,.ssbp--theme-9 .ssbp-vk:visited{color:#45668E}.ssbp--theme-9 .ssbp-vk+.ssbp-each-share{color:#45668E}.ssbp--theme-9 .ssbp-whatsapp{border-bottom:5px solid #34AF23;color:#34AF23}.ssbp--theme-9 .ssbp-whatsapp:hover,.ssbp--theme-9 .ssbp-whatsapp:focus,.ssbp--theme-9 .ssbp-whatsapp:active{border-bottom:5px solid #34AF23}.ssbp--theme-9 .ssbp-whatsapp:hover,.ssbp--theme-9 .ssbp-whatsapp:focus,.ssbp--theme-9 .ssbp-whatsapp:active,.ssbp--theme-9 .ssbp-whatsapp:visited{color:#34AF23}.ssbp--theme-9 .ssbp-whatsapp+.ssbp-each-share{color:#34AF23}.ssbp--theme-9 .ssbp-yummly{border-bottom:5px solid #E16120;color:#E16120}.ssbp--theme-9 .ssbp-yummly:hover,.ssbp--theme-9 .ssbp-yummly:focus,.ssbp--theme-9 .ssbp-yummly:active{border-bottom:5px solid #E16120}.ssbp--theme-9 .ssbp-yummly:hover,.ssbp--theme-9 .ssbp-yummly:focus,.ssbp--theme-9 .ssbp-yummly:active,.ssbp--theme-9 .ssbp-yummly:visited{color:#E16120}.ssbp--theme-9 .ssbp-yummly+.ssbp-each-share{color:#E16120}.ssbp--theme-9 .ssbp-xing{border-bottom:5px solid #026466;color:#026466}.ssbp--theme-9 .ssbp-xing:hover,.ssbp--theme-9 .ssbp-xing:focus,.ssbp--theme-9 .ssbp-xing:active{border-bottom:5px solid #026466}.ssbp--theme-9 .ssbp-xing:hover,.ssbp--theme-9 .ssbp-xing:focus,.ssbp--theme-9 .ssbp-xing:active,.ssbp--theme-9 .ssbp-xing:visited{color:#026466}.ssbp--theme-9 .ssbp-xing+.ssbp-each-share{color:#026466}.ssbp--theme-9 .ssbp-each-share{padding-top:3px;text-align:center;font-size:12px}.ssbp--theme-9 .ssbp-each-share:before{content:"("}.ssbp--theme-9 .ssbp-each-share:after{content:")"}.ssbp--theme-2 .ssbp-toggle-switch,.ssbp--theme-3 .ssbp-toggle-switch,.ssbp--theme-10 .ssbp-toggle-switch,.ssbp--theme-11 .ssbp-toggle-switch{background:#4C4C4C;background:rgba(39,39,39,0.8);border-radius:0;color:#fff}.ssbp--theme-2 .ssbp-toggle-switch:active,.ssbp--theme-3 .ssbp-toggle-switch:active,.ssbp--theme-10 .ssbp-toggle-switch:active,.ssbp--theme-11 .ssbp-toggle-switch:active,.ssbp--theme-2 .ssbp-toggle-switch:hover,.ssbp--theme-3 .ssbp-toggle-switch:hover,.ssbp--theme-10 .ssbp-toggle-switch:hover,.ssbp--theme-11 .ssbp-toggle-switch:hover,.ssbp--theme-2 .ssbp-toggle-switch:focus,.ssbp--theme-3 .ssbp-toggle-switch:focus,.ssbp--theme-10 .ssbp-toggle-switch:focus,.ssbp--theme-11 .ssbp-toggle-switch:focus{background:#4C4C4C;background:rgba(39,39,39,0.9)}.ssbp--theme-1 .ssbp-toggle-switch,.ssbp--theme-4 .ssbp-toggle-switch,.ssbp--theme-5 .ssbp-toggle-switch,.ssbp--theme-6 .ssbp-toggle-switch,.ssbp--theme-7 .ssbp-toggle-switch,.ssbp--theme-8 .ssbp-toggle-switch,.ssbp--theme-9 .ssbp-toggle-switch{background:#fff;background:rgba(255,255,255,0.8);color:#272727;border-radius:0}.ssbp--theme-1 .ssbp-toggle-switch:active,.ssbp--theme-4 .ssbp-toggle-switch:active,.ssbp--theme-5 .ssbp-toggle-switch:active,.ssbp--theme-6 .ssbp-toggle-switch:active,.ssbp--theme-7 .ssbp-toggle-switch:active,.ssbp--theme-8 .ssbp-toggle-switch:active,.ssbp--theme-9 .ssbp-toggle-switch:active,.ssbp--theme-1 .ssbp-toggle-switch:hover,.ssbp--theme-4 .ssbp-toggle-switch:hover,.ssbp--theme-5 .ssbp-toggle-switch:hover,.ssbp--theme-6 .ssbp-toggle-switch:hover,.ssbp--theme-7 .ssbp-toggle-switch:hover,.ssbp--theme-8 .ssbp-toggle-switch:hover,.ssbp--theme-9 .ssbp-toggle-switch:hover,.ssbp--theme-1 .ssbp-toggle-switch:focus,.ssbp--theme-4 .ssbp-toggle-switch:focus,.ssbp--theme-5 .ssbp-toggle-switch:focus,.ssbp--theme-6 .ssbp-toggle-switch:focus,.ssbp--theme-7 .ssbp-toggle-switch:focus,.ssbp--theme-8 .ssbp-toggle-switch:focus,.ssbp--theme-9 .ssbp-toggle-switch:focus{background:#fff;background:rgba(255,255,255,0.9)}.ssbp--theme-2.ssbp--centred .ssbp-list,.ssbp--theme-3.ssbp--centred .ssbp-list,.ssbp--theme-5.ssbp--centred .ssbp-list,.ssbp--theme-7.ssbp--centred .ssbp-list,.ssbp--theme-8.ssbp--centred .ssbp-list,.ssbp--theme-9.ssbp--centred .ssbp-list,.ssbp--theme-10.ssbp--centred .ssbp-list,.ssbp--theme-11.ssbp--centred .ssbp-list{display:table;table-layout:fixed;width:100%}.ssbp--theme-2.ssbp--centred .ssbp-list li,.ssbp--theme-3.ssbp--centred .ssbp-list li,.ssbp--theme-5.ssbp--centred .ssbp-list li,.ssbp--theme-7.ssbp--centred .ssbp-list li,.ssbp--theme-8.ssbp--centred .ssbp-list li,.ssbp--theme-9.ssbp--centred .ssbp-list li,.ssbp--theme-10.ssbp--centred .ssbp-list li,.ssbp--theme-11.ssbp--centred .ssbp-list li{display:inline-block !important;margin:0 0 !important;display:table-cell !important;width:auto;height:auto}.ssbp--theme-2.ssbp--centred .ssbp-btn,.ssbp--theme-3.ssbp--centred .ssbp-btn,.ssbp--theme-5.ssbp--centred .ssbp-btn,.ssbp--theme-7.ssbp--centred .ssbp-btn,.ssbp--theme-8.ssbp--centred .ssbp-btn,.ssbp--theme-9.ssbp--centred .ssbp-btn,.ssbp--theme-10.ssbp--centred .ssbp-btn,.ssbp--theme-11.ssbp--centred .ssbp-btn{display:block;width:auto}.ssbp--theme-10{overflow:hidden}.ssbp--theme-10 .ssbp-list li{margin: 0}.ssbp--theme-10 .ssbp-btn{display:block;padding:0.5em 1em;color:#fff;text-shadow:-1px -1px rgba(0,0,0,0.2);-webkit-transition:background-color .25s;transition:background-color .25s;border-bottom:0}.ssbp--theme-10 .ssbp-btn:before{vertical-align:middle}.ssbp--theme-10 .ssbp-btn:active{box-shadow:inset 0 0 0.5em rgba(0,0,0,0.33)}.ssbp--theme-10 .ssbp-btn:hover,.ssbp--theme-10 .ssbp-btn:focus,.ssbp--theme-10 .ssbp-btn:active,.ssbp--theme-10 .ssbp-btn:visited{color:#fff}.ssbp--theme-10.ssbp--centred .ssbp-input-url-div{position:relative;display:block;padding:10px}.ssbp--theme-10.ssbp--centred .ssbp-input-url{width:100%;max-width:200px;border:1px solid #DDD;padding:8px 8px 8px 8px;font-size:20px;font-weight:400;line-height:1;color:#B3B3B3;border-radius:4px;box-shadow:inset 0 1px 1px rgba(0,0,0,0.075)}.ssbp--theme-10.ssbp--centred .ssbp-total-shares{display:block;line-height:1}.ssbp--theme-10.ssbp--centred .ssbp-total-shares b{font-size:70px;color:#4582EC}.ssbp--theme-10.ssbp--centred .ssbp-total-shares:after{content:'Shares';display:block;font-family:'Lato',sans-serif;font-weight:700;font-size:30px;text-transform:uppercase;color:#B3B3B3}@media only screen and (min-width: 481px){.ssbp--theme-10.ssbp--centred .ssbp-input-url-div{float:right;width:50%;padding:35px 20px;text-align:left}.ssbp--theme-10.ssbp--centred .ssbp-total-shares{width:50%;text-align:right}}.ssbp--theme-10 .ssbp-buffer{background-color:#272727}.ssbp--theme-10 .ssbp-buffer:hover,.ssbp--theme-10 .ssbp-buffer:focus,.ssbp--theme-10 .ssbp-buffer:active,.ssbp--theme-10 .ssbp-buffer+.ssbp-each-share{background-color:#0e0e0e}.ssbp--theme-10 .ssbp-diggit{background-color:#14589E}.ssbp--theme-10 .ssbp-diggit:hover,.ssbp--theme-10 .ssbp-diggit:focus,.ssbp--theme-10 .ssbp-diggit:active,.ssbp--theme-10 .ssbp-diggit+.ssbp-each-share{background-color:#0e3f71}.ssbp--theme-10 .ssbp-email{background-color:#787878}.ssbp--theme-10 .ssbp-email:hover,.ssbp--theme-10 .ssbp-email:focus,.ssbp--theme-10 .ssbp-email:active,.ssbp--theme-10 .ssbp-email+.ssbp-each-share{background-color:#5f5f5f}.ssbp--theme-10 .ssbp-ellipsis{background-color:#4582EC}.ssbp--theme-10 .ssbp-ellipsis:hover,.ssbp--theme-10 .ssbp-ellipsis:focus,.ssbp--theme-10 .ssbp-ellipsis:active,.ssbp--theme-10 .ssbp-ellipsis+.ssbp-each-share{background-color:#1863e6}.ssbp--theme-10 .ssbp-facebook{background-color:#3b5998}.ssbp--theme-10 .ssbp-facebook:hover,.ssbp--theme-10 .ssbp-facebook:focus,.ssbp--theme-10 .ssbp-facebook:active,.ssbp--theme-10 .ssbp-facebook+.ssbp-each-share{background-color:#2d4373}.ssbp--theme-10 .ssbp-facebook_save{background-color:#3b5998}.ssbp--theme-10 .ssbp-facebook_save:hover,.ssbp--theme-10 .ssbp-facebook_save:focus,.ssbp--theme-10 .ssbp-facebook_save:active,.ssbp--theme-10 .ssbp-facebook_save+.ssbp-each-share{background-color:#2d4373}.ssbp--theme-10 .ssbp-facebook-messenger{background-color:#0084FF}.ssbp--theme-10 .ssbp-facebook-messenger:hover,.ssbp--theme-10 .ssbp-facebook-messenger:focus,.ssbp--theme-10 .ssbp-facebook-messenger:active,.ssbp--theme-10 .ssbp-facebook-messenger+.ssbp-each-share{background-color:#006acc}.ssbp--theme-10 .ssbp-flattr{background-color:#f67C1A}.ssbp--theme-10 .ssbp-flattr:hover,.ssbp--theme-10 .ssbp-flattr:focus,.ssbp--theme-10 .ssbp-flattr:active,.ssbp--theme-10 .ssbp-flattr+.ssbp-each-share{background-color:#d56308}.ssbp--theme-10 .ssbp-google{background-color:#DC4E41}.ssbp--theme-10 .ssbp-google:hover,.ssbp--theme-10 .ssbp-google:focus,.ssbp--theme-10 .ssbp-google:active,.ssbp--theme-10 .ssbp-google+.ssbp-each-share{background-color:#c63224}.ssbp--theme-10 .ssbp-linkedin{background-color:#007bb6}.ssbp--theme-10 .ssbp-linkedin:hover,.ssbp--theme-10 .ssbp-linkedin:focus,.ssbp--theme-10 .ssbp-linkedin:active,.ssbp--theme-10 .ssbp-linkedin+.ssbp-each-share{background-color:#005983}.ssbp--theme-10 .ssbp-pinterest{background-color:#ce1a19}.ssbp--theme-10 .ssbp-pinterest:hover,.ssbp--theme-10 .ssbp-pinterest:focus,.ssbp--theme-10 .ssbp-pinterest:active,.ssbp--theme-10 .ssbp-pinterest+.ssbp-each-share{background-color:#a11413}.ssbp--theme-10 .ssbp-print{background-color:#1F6B43}.ssbp--theme-10 .ssbp-print:hover,.ssbp--theme-10 .ssbp-print:focus,.ssbp--theme-10 .ssbp-print:active,.ssbp--theme-10 .ssbp-print+.ssbp-each-share{background-color:#14432a}.ssbp--theme-10 .ssbp-reddit{background-color:#FF4500}.ssbp--theme-10 .ssbp-reddit:hover,.ssbp--theme-10 .ssbp-reddit:focus,.ssbp--theme-10 .ssbp-reddit:active,.ssbp--theme-10 .ssbp-reddit+.ssbp-each-share{background-color:#cc3700}.ssbp--theme-10 .ssbp-simplesharebuttons{background-color:#4582ec}.ssbp--theme-10 .ssbp-simplesharebuttons:hover,.ssbp--theme-10 .ssbp-simplesharebuttons:focus,.ssbp--theme-10 .ssbp-simplesharebuttons:active,.ssbp--theme-10 .ssbp-simplesharebuttons+.ssbp-each-share{background-color:#1863e6}.ssbp--theme-10 .ssbp-stumbleupon{background-color:#EB4924}.ssbp--theme-10 .ssbp-stumbleupon:hover,.ssbp--theme-10 .ssbp-stumbleupon:focus,.ssbp--theme-10 .ssbp-stumbleupon:active,.ssbp--theme-10 .ssbp-stumbleupon+.ssbp-each-share{background-color:#ca3412}.ssbp--theme-10 .ssbp-tumblr{background-color:#2C4762}.ssbp--theme-10 .ssbp-tumblr:hover,.ssbp--theme-10 .ssbp-tumblr:focus,.ssbp--theme-10 .ssbp-tumblr:active,.ssbp--theme-10 .ssbp-tumblr+.ssbp-each-share{background-color:#1c2e3f}.ssbp--theme-10 .ssbp-twitter{background-color:#00a9f1}.ssbp--theme-10 .ssbp-twitter:hover,.ssbp--theme-10 .ssbp-twitter:focus,.ssbp--theme-10 .ssbp-twitter:active,.ssbp--theme-10 .ssbp-twitter+.ssbp-each-share{background-color:#0085be}.ssbp--theme-10 .ssbp-vk{background-color:#45668E}.ssbp--theme-10 .ssbp-vk:hover,.ssbp--theme-10 .ssbp-vk:focus,.ssbp--theme-10 .ssbp-vk:active,.ssbp--theme-10 .ssbp-vk+.ssbp-each-share{background-color:#344d6c}.ssbp--theme-10 .ssbp-whatsapp{background-color:#34AF23}.ssbp--theme-10 .ssbp-whatsapp:hover,.ssbp--theme-10 .ssbp-whatsapp:focus,.ssbp--theme-10 .ssbp-whatsapp:active,.ssbp--theme-10 .ssbp-whatsapp+.ssbp-each-share{background-color:#27851b}.ssbp--theme-10 .ssbp-yummly{background-color:#E16120}.ssbp--theme-10 .ssbp-yummly:hover,.ssbp--theme-10 .ssbp-yummly:focus,.ssbp--theme-10 .ssbp-yummly:active,.ssbp--theme-10 .ssbp-yummly+.ssbp-each-share{background-color:#b64d18}.ssbp--theme-10 .ssbp-xing{background-color:#026466}.ssbp--theme-10 .ssbp-xing:hover,.ssbp--theme-10 .ssbp-xing:focus,.ssbp--theme-10 .ssbp-xing:active,.ssbp--theme-10 .ssbp-xing+.ssbp-each-share{background-color:#013334}.ssbp--theme-10 .ssbp-each-share{padding:2px;font-size:10px;text-align:center;color:#FFF}.ssbp--theme-2 .ssbp-toggle-switch,.ssbp--theme-3 .ssbp-toggle-switch,.ssbp--theme-10 .ssbp-toggle-switch,.ssbp--theme-11 .ssbp-toggle-switch{background:#4C4C4C;background:rgba(39,39,39,0.8);border-radius:0;color:#fff}.ssbp--theme-2 .ssbp-toggle-switch:active,.ssbp--theme-3 .ssbp-toggle-switch:active,.ssbp--theme-10 .ssbp-toggle-switch:active,.ssbp--theme-11 .ssbp-toggle-switch:active,.ssbp--theme-2 .ssbp-toggle-switch:hover,.ssbp--theme-3 .ssbp-toggle-switch:hover,.ssbp--theme-10 .ssbp-toggle-switch:hover,.ssbp--theme-11 .ssbp-toggle-switch:hover,.ssbp--theme-2 .ssbp-toggle-switch:focus,.ssbp--theme-3 .ssbp-toggle-switch:focus,.ssbp--theme-10 .ssbp-toggle-switch:focus,.ssbp--theme-11 .ssbp-toggle-switch:focus{background:#4C4C4C;background:rgba(39,39,39,0.9)}.ssbp--theme-1 .ssbp-toggle-switch,.ssbp--theme-4 .ssbp-toggle-switch,.ssbp--theme-5 .ssbp-toggle-switch,.ssbp--theme-6 .ssbp-toggle-switch,.ssbp--theme-7 .ssbp-toggle-switch,.ssbp--theme-8 .ssbp-toggle-switch,.ssbp--theme-9 .ssbp-toggle-switch{background:#fff;background:rgba(255,255,255,0.8);color:#272727;border-radius:0}.ssbp--theme-1 .ssbp-toggle-switch:active,.ssbp--theme-4 .ssbp-toggle-switch:active,.ssbp--theme-5 .ssbp-toggle-switch:active,.ssbp--theme-6 .ssbp-toggle-switch:active,.ssbp--theme-7 .ssbp-toggle-switch:active,.ssbp--theme-8 .ssbp-toggle-switch:active,.ssbp--theme-9 .ssbp-toggle-switch:active,.ssbp--theme-1 .ssbp-toggle-switch:hover,.ssbp--theme-4 .ssbp-toggle-switch:hover,.ssbp--theme-5 .ssbp-toggle-switch:hover,.ssbp--theme-6 .ssbp-toggle-switch:hover,.ssbp--theme-7 .ssbp-toggle-switch:hover,.ssbp--theme-8 .ssbp-toggle-switch:hover,.ssbp--theme-9 .ssbp-toggle-switch:hover,.ssbp--theme-1 .ssbp-toggle-switch:focus,.ssbp--theme-4 .ssbp-toggle-switch:focus,.ssbp--theme-5 .ssbp-toggle-switch:focus,.ssbp--theme-6 .ssbp-toggle-switch:focus,.ssbp--theme-7 .ssbp-toggle-switch:focus,.ssbp--theme-8 .ssbp-toggle-switch:focus,.ssbp--theme-9 .ssbp-toggle-switch:focus{background:#fff;background:rgba(255,255,255,0.9)}.ssbp--theme-2.ssbp--centred .ssbp-list,.ssbp--theme-3.ssbp--centred .ssbp-list,.ssbp--theme-5.ssbp--centred .ssbp-list,.ssbp--theme-7.ssbp--centred .ssbp-list,.ssbp--theme-8.ssbp--centred .ssbp-list,.ssbp--theme-9.ssbp--centred .ssbp-list,.ssbp--theme-10.ssbp--centred .ssbp-list,.ssbp--theme-11.ssbp--centred .ssbp-list{display:table;table-layout:fixed;width:100%}.ssbp--theme-2.ssbp--centred .ssbp-list li,.ssbp--theme-3.ssbp--centred .ssbp-list li,.ssbp--theme-5.ssbp--centred .ssbp-list li,.ssbp--theme-7.ssbp--centred .ssbp-list li,.ssbp--theme-8.ssbp--centred .ssbp-list li,.ssbp--theme-9.ssbp--centred .ssbp-list li,.ssbp--theme-10.ssbp--centred .ssbp-list li,.ssbp--theme-11.ssbp--centred .ssbp-list li{display:inline-block !important;margin:0 0 !important;display:table-cell !important;width:auto;height:auto}.ssbp--theme-2.ssbp--centred .ssbp-btn,.ssbp--theme-3.ssbp--centred .ssbp-btn,.ssbp--theme-5.ssbp--centred .ssbp-btn,.ssbp--theme-7.ssbp--centred .ssbp-btn,.ssbp--theme-8.ssbp--centred .ssbp-btn,.ssbp--theme-9.ssbp--centred .ssbp-btn,.ssbp--theme-10.ssbp--centred .ssbp-btn,.ssbp--theme-11.ssbp--centred .ssbp-btn{display:block;width:auto}.ssbp--theme-11{margin-left:-5px;margin-right:-5px}.ssbp--theme-11 .ssbp-list li{margin: 0}.ssbp--theme-11 .ssbp-text{display:inline-block;vertical-align:middle;font-size:12px;line-height:1.2;font-size:11px}.ssbp--theme-11 .ssbp-btn{display:block;padding:0.6em 1em;margin:5px;text-transform:uppercase;color:#fff;font-size:11px;-webkit-transition:background-color .25s;transition:background-color .25s;border-bottom:0;border-radius:5px}.ssbp--theme-11 .ssbp-btn:before{display:none}.ssbp--theme-11 .ssbp-btn:active{box-shadow:inset 0 0 0.5em rgba(0,0,0,0.33)}.ssbp--theme-11 .ssbp-btn:hover,.ssbp--theme-11 .ssbp-btn:focus,.ssbp--theme-11 .ssbp-btn:active,.ssbp--theme-11 .ssbp-btn:visited{color:#fff}.ssbp--theme-11 .ssbp-buffer{background-color:#272727}.ssbp--theme-11 .ssbp-buffer:hover,.ssbp--theme-11 .ssbp-buffer:focus,.ssbp--theme-11 .ssbp-buffer:active,.ssbp--theme-11 .ssbp-buffer+.ssbp-each-share{background-color:#0e0e0e}.ssbp--theme-11 .ssbp-diggit{background-color:#14589E}.ssbp--theme-11 .ssbp-diggit:hover,.ssbp--theme-11 .ssbp-diggit:focus,.ssbp--theme-11 .ssbp-diggit:active,.ssbp--theme-11 .ssbp-diggit+.ssbp-each-share{background-color:#0e3f71}.ssbp--theme-11 .ssbp-email{background-color:#787878}.ssbp--theme-11 .ssbp-email:hover,.ssbp--theme-11 .ssbp-email:focus,.ssbp--theme-11 .ssbp-email:active,.ssbp--theme-11 .ssbp-email+.ssbp-each-share{background-color:#5f5f5f}.ssbp--theme-11 .ssbp-ellipsis{background-color:#4582EC}.ssbp--theme-11 .ssbp-ellipsis:hover,.ssbp--theme-11 .ssbp-ellipsis:focus,.ssbp--theme-11 .ssbp-ellipsis:active,.ssbp--theme-11 .ssbp-ellipsis+.ssbp-each-share{background-color:#1863e6}.ssbp--theme-11 .ssbp-facebook{background-color:#3b5998}.ssbp--theme-11 .ssbp-facebook:hover,.ssbp--theme-11 .ssbp-facebook:focus,.ssbp--theme-11 .ssbp-facebook:active,.ssbp--theme-11 .ssbp-facebook+.ssbp-each-share{background-color:#2d4373}.ssbp--theme-11 .ssbp-facebook_save{background-color:#3b5998}.ssbp--theme-11 .ssbp-facebook_save:hover,.ssbp--theme-11 .ssbp-facebook_save:focus,.ssbp--theme-11 .ssbp-facebook_save:active,.ssbp--theme-11 .ssbp-facebook_save+.ssbp-each-share{background-color:#2d4373}.ssbp--theme-11 .ssbp-facebook-messenger{background-color:#0084FF}.ssbp--theme-11 .ssbp-facebook-messenger:hover,.ssbp--theme-11 .ssbp-facebook-messenger:focus,.ssbp--theme-11 .ssbp-facebook-messenger:active,.ssbp--theme-11 .ssbp-facebook-messenger+.ssbp-each-share{background-color:#006acc}.ssbp--theme-11 .ssbp-flattr{background-color:#f67C1A}.ssbp--theme-11 .ssbp-flattr:hover,.ssbp--theme-11 .ssbp-flattr:focus,.ssbp--theme-11 .ssbp-flattr:active,.ssbp--theme-11 .ssbp-flattr+.ssbp-each-share{background-color:#d56308}.ssbp--theme-11 .ssbp-google{background-color:#DC4E41}.ssbp--theme-11 .ssbp-google:hover,.ssbp--theme-11 .ssbp-google:focus,.ssbp--theme-11 .ssbp-google:active,.ssbp--theme-11 .ssbp-google+.ssbp-each-share{background-color:#c63224}.ssbp--theme-11 .ssbp-linkedin{background-color:#007bb6}.ssbp--theme-11 .ssbp-linkedin:hover,.ssbp--theme-11 .ssbp-linkedin:focus,.ssbp--theme-11 .ssbp-linkedin:active,.ssbp--theme-11 .ssbp-linkedin+.ssbp-each-share{background-color:#005983}.ssbp--theme-11 .ssbp-pinterest{background-color:#ce1a19}.ssbp--theme-11 .ssbp-pinterest:hover,.ssbp--theme-11 .ssbp-pinterest:focus,.ssbp--theme-11 .ssbp-pinterest:active,.ssbp--theme-11 .ssbp-pinterest+.ssbp-each-share{background-color:#a11413}.ssbp--theme-11 .ssbp-print{background-color:#1F6B43}.ssbp--theme-11 .ssbp-print:hover,.ssbp--theme-11 .ssbp-print:focus,.ssbp--theme-11 .ssbp-print:active,.ssbp--theme-11 .ssbp-print+.ssbp-each-share{background-color:#14432a}.ssbp--theme-11 .ssbp-reddit{background-color:#FF4500}.ssbp--theme-11 .ssbp-reddit:hover,.ssbp--theme-11 .ssbp-reddit:focus,.ssbp--theme-11 .ssbp-reddit:active,.ssbp--theme-11 .ssbp-reddit+.ssbp-each-share{background-color:#cc3700}.ssbp--theme-11 .ssbp-simplesharebuttons{background-color:#4582ec}.ssbp--theme-11 .ssbp-simplesharebuttons:hover,.ssbp--theme-11 .ssbp-simplesharebuttons:focus,.ssbp--theme-11 .ssbp-simplesharebuttons:active,.ssbp--theme-11 .ssbp-simplesharebuttons+.ssbp-each-share{background-color:#1863e6}.ssbp--theme-11 .ssbp-stumbleupon{background-color:#EB4924}.ssbp--theme-11 .ssbp-stumbleupon:hover,.ssbp--theme-11 .ssbp-stumbleupon:focus,.ssbp--theme-11 .ssbp-stumbleupon:active,.ssbp--theme-11 .ssbp-stumbleupon+.ssbp-each-share{background-color:#ca3412}.ssbp--theme-11 .ssbp-tumblr{background-color:#2C4762}.ssbp--theme-11 .ssbp-tumblr:hover,.ssbp--theme-11 .ssbp-tumblr:focus,.ssbp--theme-11 .ssbp-tumblr:active,.ssbp--theme-11 .ssbp-tumblr+.ssbp-each-share{background-color:#1c2e3f}.ssbp--theme-11 .ssbp-twitter{background-color:#00a9f1}.ssbp--theme-11 .ssbp-twitter:hover,.ssbp--theme-11 .ssbp-twitter:focus,.ssbp--theme-11 .ssbp-twitter:active,.ssbp--theme-11 .ssbp-twitter+.ssbp-each-share{background-color:#0085be}.ssbp--theme-11 .ssbp-vk{background-color:#45668E}.ssbp--theme-11 .ssbp-vk:hover,.ssbp--theme-11 .ssbp-vk:focus,.ssbp--theme-11 .ssbp-vk:active,.ssbp--theme-11 .ssbp-vk+.ssbp-each-share{background-color:#344d6c}.ssbp--theme-11 .ssbp-whatsapp{background-color:#34AF23}.ssbp--theme-11 .ssbp-whatsapp:hover,.ssbp--theme-11 .ssbp-whatsapp:focus,.ssbp--theme-11 .ssbp-whatsapp:active,.ssbp--theme-11 .ssbp-whatsapp+.ssbp-each-share{background-color:#27851b}.ssbp--theme-11 .ssbp-yummly{background-color:#E16120}.ssbp--theme-11 .ssbp-yummly:hover,.ssbp--theme-11 .ssbp-yummly:focus,.ssbp--theme-11 .ssbp-yummly:active,.ssbp--theme-11 .ssbp-yummly+.ssbp-each-share{background-color:#b64d18}.ssbp--theme-11 .ssbp-xing{background-color:#026466}.ssbp--theme-11 .ssbp-xing:hover,.ssbp--theme-11 .ssbp-xing:focus,.ssbp--theme-11 .ssbp-xing:active,.ssbp--theme-11 .ssbp-xing+.ssbp-each-share{background-color:#013334}.ssbp--theme-11 .ssbp-each-share{padding:2px;font-size:10px;margin-right:5px;margin-left:5px;text-align:center;color:#FFF;border-radius:5px}
|
443 |
+
|
444 |
+
.active.in {
|
445 |
+
position: relatve;
|
446 |
+
z-index: 3;
|
447 |
+
}
|
448 |
+
|
449 |
+
#share-bar .ssbp--theme-11 .ssbp-btn {
|
450 |
+
margin: 0 5px 0;
|
451 |
+
}
|
452 |
+
|
453 |
+
.accor-wrap {
|
454 |
+
margin: 1rem 0 0;
|
455 |
+
display: inline-block;
|
456 |
+
width: 100%;
|
457 |
+
}
|
458 |
+
|
459 |
+
.accor-wrap .accor-tab {
|
460 |
+
background: #4582ec;
|
461 |
+
padding: .5rem;
|
462 |
+
border-radius: 5px;
|
463 |
+
color: #ffffff;
|
464 |
+
}
|
465 |
+
|
466 |
+
.accor-wrap .well {
|
467 |
+
display: inline-block;
|
468 |
+
width: 100%;
|
469 |
+
}
|
470 |
+
|
471 |
+
.accor-wrap .well h3 {
|
472 |
+
margin: 1rem 0;
|
473 |
+
}
|
474 |
+
|
475 |
+
.accor-wrap .well .col-md-12:first-of-type h3 {
|
476 |
+
margin-top: 0;
|
477 |
+
}
|
478 |
+
|
479 |
+
.accor-wrap .accor-content {
|
480 |
+
display: none;
|
481 |
+
}
|
482 |
+
|
483 |
+
.accor-wrap .accor-arrow {
|
484 |
+
border: 1px solid #ffffff;
|
485 |
+
padding: .2rem .4rem;
|
486 |
+
border-radius: 5px;
|
487 |
+
margin: 0 .3rem 0 .3rem;
|
488 |
+
font-size: 12px;
|
489 |
+
cursor: pointer;
|
490 |
+
font-family: arial, sans-serif;
|
491 |
+
}
|
492 |
+
|
493 |
+
|
494 |
+
.ssba_sharecount:after, .ssba_sharecount:before {
|
495 |
+
right: 100%;
|
496 |
+
border: solid transparent;
|
497 |
+
content: " ";
|
498 |
+
height: 0;
|
499 |
+
width: 0;
|
500 |
+
position: absolute;
|
501 |
+
pointer-events: none;
|
502 |
+
}
|
503 |
+
|
504 |
+
.ssba_sharecount:after {
|
505 |
+
border-color: rgba(224, 221, 221, 0);
|
506 |
+
border-right-color: #f5f5f5;
|
507 |
+
border-width: 5px;
|
508 |
+
top: 50%;
|
509 |
+
margin-top: -5px;
|
510 |
+
}
|
511 |
+
|
512 |
+
.ssba_sharecount:before {
|
513 |
+
border-color: rgba(85, 94, 88, 0);
|
514 |
+
border-right-color: #e0dddd;
|
515 |
+
border-width: 6px;
|
516 |
+
top: 50%;
|
517 |
+
margin-top: -6px;
|
518 |
+
}
|
519 |
+
|
520 |
+
.ssba_sharecount {
|
521 |
+
font: 11px Arial, Helvetica, sans-serif;
|
522 |
+
padding: 5px;
|
523 |
+
-khtml-border-radius: 6px;
|
524 |
+
-o-border-radius: 6px;
|
525 |
+
-webkit-border-radius: 6px;
|
526 |
+
-moz-border-radius: 6px;
|
527 |
+
border-radius: 6px;
|
528 |
+
position: relative;
|
529 |
+
border: 1px solid #e0dddd;
|
530 |
+
display: inline-block!important;
|
531 |
+
}
|
532 |
+
|
533 |
+
.ssba_sharecount.ssba_default {
|
534 |
+
color: #555e58;
|
535 |
+
background: #f5f5f5;
|
536 |
+
}
|
537 |
+
|
538 |
+
.ssba_sharecount.ssba_white {
|
539 |
+
color: #555e58;
|
540 |
+
background: #ffffff;
|
541 |
+
}
|
542 |
+
|
543 |
+
.ssba_sharecount.ssba_default:after {
|
544 |
+
border-right-color: #f5f5f5;
|
545 |
+
}
|
546 |
+
|
547 |
+
.ssba_sharecount.ssba_white:after {
|
548 |
+
border-right-color: #ffffff;
|
549 |
+
}
|
550 |
+
|
551 |
+
.ssba_sharecount.ssba_blue {
|
552 |
+
color: #ffffff;
|
553 |
+
background: #42a7e2;
|
554 |
+
}
|
555 |
+
|
556 |
+
.ssba_sharecount.ssba_blue:after {
|
557 |
+
border-right-color: #42a7e2;
|
558 |
+
}
|
559 |
+
|
560 |
+
#plus-share-buttons .ssbp-list li span:before {
|
561 |
+
content: none !important;
|
562 |
+
}
|
563 |
+
|
564 |
+
#plus-share-buttons .ssbp-each-share, #share-bar .ssbp-each-share {
|
565 |
+
display: block;
|
566 |
+
}
|
567 |
+
|
568 |
+
.ssba-buttons-shortcode {
|
569 |
+
background: white!important;
|
570 |
+
width: 15%;
|
571 |
+
display: inline;
|
572 |
+
margin-top: 20px;
|
573 |
+
}
|
574 |
+
|
575 |
+
#ssba-copy-shortcode {
|
576 |
+
width: 6rem;
|
577 |
+
padding: 1.1rem;
|
578 |
+
margin: -4px -6px 0;
|
579 |
+
}
|
css/colorpicker.css
CHANGED
@@ -1,8 +1,6 @@
|
|
1 |
-
/*
|
2 |
-
colpick Color Picker / colpick.com
|
3 |
-
*/
|
4 |
Â
|
5 |
-
/*Main container*/
|
6 |
Â
.colpick {
|
7 |
Â
position: absolute;
|
8 |
Â
width: 346px;
|
@@ -16,7 +14,7 @@ colpick Color Picker / colpick.com
|
|
16 |
Â
-moz-border-radius: 5px;
|
17 |
Â
border-radius:5px;
|
18 |
Â
z-index: 10;
|
19 |
-
|
20 |
Â
/*Prevents selecting text when dragging the selectors*/
|
21 |
Â
-webkit-user-select: none;
|
22 |
Â
-moz-user-select: none;
|
@@ -24,6 +22,7 @@ colpick Color Picker / colpick.com
|
|
24 |
Â
-o-user-select: none;
|
25 |
Â
user-select: none;
|
26 |
Â
}
|
Â
|
|
27 |
Â
/*Color selection box with gradients*/
|
28 |
Â
.colpick_color {
|
29 |
Â
position: absolute;
|
@@ -65,6 +64,7 @@ colpick Color Picker / colpick.com
|
|
65 |
Â
background: linear-gradient(to bottom, rgba(0,0,0,0) 0%,rgba(0,0,0,1) 100%); /* W3C */
|
66 |
Â
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00000000', endColorstr='#000000',GradientType=0 ); /* IE6-9 */
|
67 |
Â
}
|
Â
|
|
68 |
Â
/*Circular color selector*/
|
69 |
Â
.colpick_selector_outer {
|
70 |
Â
background:none;
|
@@ -82,6 +82,7 @@ colpick Color Picker / colpick.com
|
|
82 |
Â
border: 1px solid white;
|
83 |
Â
border-radius: 50%;
|
84 |
Â
}
|
Â
|
|
85 |
Â
/*Vertical hue bar*/
|
86 |
Â
.colpick_hue {
|
87 |
Â
position: absolute;
|
@@ -92,6 +93,7 @@ colpick Color Picker / colpick.com
|
|
92 |
Â
border: 1px solid #aaa;
|
93 |
Â
cursor: n-resize;
|
94 |
Â
}
|
Â
|
|
95 |
Â
/*Hue bar sliding indicator*/
|
96 |
Â
.colpick_hue_arrs {
|
97 |
Â
position: absolute;
|
@@ -102,8 +104,8 @@ colpick Color Picker / colpick.com
|
|
102 |
Â
}
|
103 |
Â
.colpick_hue_larr {
|
104 |
Â
position:absolute;
|
105 |
-
width: 0;
|
106 |
-
height: 0;
|
107 |
Â
border-top: 6px solid transparent;
|
108 |
Â
border-bottom: 6px solid transparent;
|
109 |
Â
border-left: 7px solid #858585;
|
@@ -111,12 +113,13 @@ colpick Color Picker / colpick.com
|
|
111 |
Â
.colpick_hue_rarr {
|
112 |
Â
position:absolute;
|
113 |
Â
right:0;
|
114 |
-
width: 0;
|
115 |
-
height: 0;
|
116 |
Â
border-top: 6px solid transparent;
|
117 |
-
border-bottom: 6px solid transparent;
|
118 |
-
border-right: 7px solid #858585;
|
119 |
Â
}
|
Â
|
|
120 |
Â
/*New color box*/
|
121 |
Â
.colpick_new_color {
|
122 |
Â
position: absolute;
|
@@ -127,6 +130,7 @@ colpick Color Picker / colpick.com
|
|
127 |
Â
background: #f00;
|
128 |
Â
border: 1px solid #8f8f8f;
|
129 |
Â
}
|
Â
|
|
130 |
Â
/*Current color box*/
|
131 |
Â
.colpick_current_color {
|
132 |
Â
position: absolute;
|
@@ -137,6 +141,7 @@ colpick Color Picker / colpick.com
|
|
137 |
Â
background: #f00;
|
138 |
Â
border: 1px solid #8f8f8f;
|
139 |
Â
}
|
Â
|
|
140 |
Â
/*Input field containers*/
|
141 |
Â
.colpick_field, .colpick_hex_field {
|
142 |
Â
position: absolute;
|
@@ -180,10 +185,12 @@ colpick Color Picker / colpick.com
|
|
180 |
Â
left: 207px;
|
181 |
Â
top: 121px;
|
182 |
Â
}
|
Â
|
|
183 |
Â
/*Text field container on focus*/
|
184 |
Â
.colpick_focus {
|
185 |
Â
border-color: #999;
|
186 |
Â
}
|
Â
|
|
187 |
Â
/*Field label container*/
|
188 |
Â
.colpick_field_letter {
|
189 |
Â
position: absolute;
|
@@ -196,6 +203,7 @@ colpick Color Picker / colpick.com
|
|
196 |
Â
font-weight: bold;
|
197 |
Â
color:#777;
|
198 |
Â
}
|
Â
|
|
199 |
Â
/*Text inputs*/
|
200 |
Â
.colpick_field input, .colpick_hex_field input {
|
201 |
Â
position: absolute;
|
@@ -215,6 +223,7 @@ colpick Color Picker / colpick.com
|
|
215 |
Â
.colpick_hex_field input {
|
216 |
Â
right: 4px;
|
217 |
Â
}
|
Â
|
|
218 |
Â
/*Field up/down arrows*/
|
219 |
Â
.colpick_field_arrs {
|
220 |
Â
position: absolute;
|
@@ -227,8 +236,8 @@ colpick Color Picker / colpick.com
|
|
227 |
Â
.colpick_field_uarr {
|
228 |
Â
position: absolute;
|
229 |
Â
top: 5px;
|
230 |
-
width: 0;
|
231 |
-
height: 0;
|
232 |
Â
border-left: 4px solid transparent;
|
233 |
Â
border-right: 4px solid transparent;
|
234 |
Â
border-bottom: 4px solid #959595;
|
@@ -236,12 +245,13 @@ colpick Color Picker / colpick.com
|
|
236 |
Â
.colpick_field_darr {
|
237 |
Â
position: absolute;
|
238 |
Â
bottom:5px;
|
239 |
-
width: 0;
|
240 |
-
height: 0;
|
241 |
Â
border-left: 4px solid transparent;
|
242 |
Â
border-right: 4px solid transparent;
|
243 |
Â
border-top: 4px solid #959595;
|
244 |
Â
}
|
Â
|
|
245 |
Â
/*Submit/Select button*/
|
246 |
Â
.colpick_submit {
|
247 |
Â
position: absolute;
|
@@ -418,4 +428,4 @@ colpick Color Picker / colpick.com
|
|
418 |
Â
.colpick_dark .colpick_submit:hover {
|
419 |
Â
background-color:#101010;
|
420 |
Â
border-color:#444;
|
421 |
-
}
|
1 |
+
/* colpick Color Picker / colpick.com */
|
Â
|
|
Â
|
|
2 |
Â
|
3 |
+
/* Main container */
|
4 |
Â
.colpick {
|
5 |
Â
position: absolute;
|
6 |
Â
width: 346px;
|
14 |
Â
-moz-border-radius: 5px;
|
15 |
Â
border-radius:5px;
|
16 |
Â
z-index: 10;
|
17 |
+
|
18 |
Â
/*Prevents selecting text when dragging the selectors*/
|
19 |
Â
-webkit-user-select: none;
|
20 |
Â
-moz-user-select: none;
|
22 |
Â
-o-user-select: none;
|
23 |
Â
user-select: none;
|
24 |
Â
}
|
25 |
+
|
26 |
Â
/*Color selection box with gradients*/
|
27 |
Â
.colpick_color {
|
28 |
Â
position: absolute;
|
64 |
Â
background: linear-gradient(to bottom, rgba(0,0,0,0) 0%,rgba(0,0,0,1) 100%); /* W3C */
|
65 |
Â
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00000000', endColorstr='#000000',GradientType=0 ); /* IE6-9 */
|
66 |
Â
}
|
67 |
+
|
68 |
Â
/*Circular color selector*/
|
69 |
Â
.colpick_selector_outer {
|
70 |
Â
background:none;
|
82 |
Â
border: 1px solid white;
|
83 |
Â
border-radius: 50%;
|
84 |
Â
}
|
85 |
+
|
86 |
Â
/*Vertical hue bar*/
|
87 |
Â
.colpick_hue {
|
88 |
Â
position: absolute;
|
93 |
Â
border: 1px solid #aaa;
|
94 |
Â
cursor: n-resize;
|
95 |
Â
}
|
96 |
+
|
97 |
Â
/*Hue bar sliding indicator*/
|
98 |
Â
.colpick_hue_arrs {
|
99 |
Â
position: absolute;
|
104 |
Â
}
|
105 |
Â
.colpick_hue_larr {
|
106 |
Â
position:absolute;
|
107 |
+
width: 0;
|
108 |
+
height: 0;
|
109 |
Â
border-top: 6px solid transparent;
|
110 |
Â
border-bottom: 6px solid transparent;
|
111 |
Â
border-left: 7px solid #858585;
|
113 |
Â
.colpick_hue_rarr {
|
114 |
Â
position:absolute;
|
115 |
Â
right:0;
|
116 |
+
width: 0;
|
117 |
+
height: 0;
|
118 |
Â
border-top: 6px solid transparent;
|
119 |
+
border-bottom: 6px solid transparent;
|
120 |
+
border-right: 7px solid #858585;
|
121 |
Â
}
|
122 |
+
|
123 |
Â
/*New color box*/
|
124 |
Â
.colpick_new_color {
|
125 |
Â
position: absolute;
|
130 |
Â
background: #f00;
|
131 |
Â
border: 1px solid #8f8f8f;
|
132 |
Â
}
|
133 |
+
|
134 |
Â
/*Current color box*/
|
135 |
Â
.colpick_current_color {
|
136 |
Â
position: absolute;
|
141 |
Â
background: #f00;
|
142 |
Â
border: 1px solid #8f8f8f;
|
143 |
Â
}
|
144 |
+
|
145 |
Â
/*Input field containers*/
|
146 |
Â
.colpick_field, .colpick_hex_field {
|
147 |
Â
position: absolute;
|
185 |
Â
left: 207px;
|
186 |
Â
top: 121px;
|
187 |
Â
}
|
188 |
+
|
189 |
Â
/*Text field container on focus*/
|
190 |
Â
.colpick_focus {
|
191 |
Â
border-color: #999;
|
192 |
Â
}
|
193 |
+
|
194 |
Â
/*Field label container*/
|
195 |
Â
.colpick_field_letter {
|
196 |
Â
position: absolute;
|
203 |
Â
font-weight: bold;
|
204 |
Â
color:#777;
|
205 |
Â
}
|
206 |
+
|
207 |
Â
/*Text inputs*/
|
208 |
Â
.colpick_field input, .colpick_hex_field input {
|
209 |
Â
position: absolute;
|
223 |
Â
.colpick_hex_field input {
|
224 |
Â
right: 4px;
|
225 |
Â
}
|
226 |
+
|
227 |
Â
/*Field up/down arrows*/
|
228 |
Â
.colpick_field_arrs {
|
229 |
Â
position: absolute;
|
236 |
Â
.colpick_field_uarr {
|
237 |
Â
position: absolute;
|
238 |
Â
top: 5px;
|
239 |
+
width: 0;
|
240 |
+
height: 0;
|
241 |
Â
border-left: 4px solid transparent;
|
242 |
Â
border-right: 4px solid transparent;
|
243 |
Â
border-bottom: 4px solid #959595;
|
245 |
Â
.colpick_field_darr {
|
246 |
Â
position: absolute;
|
247 |
Â
bottom:5px;
|
248 |
+
width: 0;
|
249 |
+
height: 0;
|
250 |
Â
border-left: 4px solid transparent;
|
251 |
Â
border-right: 4px solid transparent;
|
252 |
Â
border-top: 4px solid #959595;
|
253 |
Â
}
|
254 |
+
|
255 |
Â
/*Submit/Select button*/
|
256 |
Â
.colpick_submit {
|
257 |
Â
position: absolute;
|
428 |
Â
.colpick_dark .colpick_submit:hover {
|
429 |
Â
background-color:#101010;
|
430 |
Â
border-color:#444;
|
431 |
+
}
|
css/readable.css
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
Â
* Copyright 2012-2015 Thomas Park
|
5 |
Â
* Licensed under MIT
|
6 |
Â
* Based on Bootstrap
|
7 |
-
*//*! normalize.css v3.0.2 | MIT License | git.io/normalize */.ssbp-admin-wrap{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}.ssbp-admin-wrap{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:bold}dfn{font-style:italic}h1{font-size:2em;margin:0.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box;height:0}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace, monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type="button"],input[type="reset"],input[type="submit"]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input[type="checkbox"],input[type="radio"]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:0}input[type="number"]::-webkit-inner-spin-button,input[type="number"]::-webkit-outer-spin-button{height:auto}input[type="search"]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration{-webkit-appearance:none}fieldset{border:1px solid #c0c0c0;margin:0 2px;padding:0.35em 0.625em 0.75em}legend{border:0;padding:0}textarea{overflow:auto}optgroup{font-weight:bold}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}/*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */@media print{*,*:before,*:after{background:transparent !important;color:#000 !important;-webkit-box-shadow:none !important;box-shadow:none !important;text-shadow:none !important}a,a:visited{text-decoration:underline}a[href]:after{content:" (" attr(href) ")"}abbr[title]:after{content:" (" attr(title) ")"}a[href^="#"]:after,a[href^="javascript:"]:after{content:""}pre,blockquote{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}tr,img{page-break-inside:avoid}img{max-width:100% !important}p,h2,h3{orphans:3;widows:3}h2,h3{page-break-after:avoid}select{background:#fff !important}.navbar{display:none}.btn>.caret,.dropup>.btn>.caret{border-top-color:#000 !important}.label{border:1px solid #000}.table{border-collapse:collapse !important}.table td,.table th{background-color:#fff !important}.table-bordered th,.table-bordered td{border:1px solid #ddd !important}}@font-face{font-family:'Glyphicons Halflings';src:url('../fonts/glyphicons-halflings-regular.eot');src:url('../fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'),url('../fonts/glyphicons-halflings-regular.woff2') format('woff2'),url('../fonts/glyphicons-halflings-regular.woff') format('woff'),url('../fonts/glyphicons-halflings-regular.ttf') format('truetype'),url('../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg')}.glyphicon{position:relative;top:1px;display:inline-block;font-family:'Glyphicons Halflings';font-style:normal;font-weight:normal;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.glyphicon-asterisk:before{content:"\2a"}.glyphicon-plus:before{content:"\2b"}.glyphicon-euro:before,.glyphicon-eur:before{content:"\20ac"}.glyphicon-minus:before{content:"\2212"}.glyphicon-cloud:before{content:"\2601"}.glyphicon-envelope:before{content:"\2709"}.glyphicon-pencil:before{content:"\270f"}.glyphicon-glass:before{content:"\e001"}.glyphicon-music:before{content:"\e002"}.glyphicon-search:before{content:"\e003"}.glyphicon-heart:before{content:"\e005"}.glyphicon-star:before{content:"\e006"}.glyphicon-star-empty:before{content:"\e007"}.glyphicon-user:before{content:"\e008"}.glyphicon-film:before{content:"\e009"}.glyphicon-th-large:before{content:"\e010"}.glyphicon-th:before{content:"\e011"}.glyphicon-th-list:before{content:"\e012"}.glyphicon-ok:before{content:"\e013"}.glyphicon-remove:before{content:"\e014"}.glyphicon-zoom-in:before{content:"\e015"}.glyphicon-zoom-out:before{content:"\e016"}.glyphicon-off:before{content:"\e017"}.glyphicon-signal:before{content:"\e018"}.glyphicon-cog:before{content:"\e019"}.glyphicon-trash:before{content:"\e020"}.glyphicon-home:before{content:"\e021"}.glyphicon-file:before{content:"\e022"}.glyphicon-time:before{content:"\e023"}.glyphicon-road:before{content:"\e024"}.glyphicon-download-alt:before{content:"\e025"}.glyphicon-download:before{content:"\e026"}.glyphicon-upload:before{content:"\e027"}.glyphicon-inbox:before{content:"\e028"}.glyphicon-play-circle:before{content:"\e029"}.glyphicon-repeat:before{content:"\e030"}.glyphicon-refresh:before{content:"\e031"}.glyphicon-list-alt:before{content:"\e032"}.glyphicon-lock:before{content:"\e033"}.glyphicon-flag:before{content:"\e034"}.glyphicon-headphones:before{content:"\e035"}.glyphicon-volume-off:before{content:"\e036"}.glyphicon-volume-down:before{content:"\e037"}.glyphicon-volume-up:before{content:"\e038"}.glyphicon-qrcode:before{content:"\e039"}.glyphicon-barcode:before{content:"\e040"}.glyphicon-tag:before{content:"\e041"}.glyphicon-tags:before{content:"\e042"}.glyphicon-book:before{content:"\e043"}.glyphicon-bookmark:before{content:"\e044"}.glyphicon-print:before{content:"\e045"}.glyphicon-camera:before{content:"\e046"}.glyphicon-font:before{content:"\e047"}.glyphicon-bold:before{content:"\e048"}.glyphicon-italic:before{content:"\e049"}.glyphicon-text-height:before{content:"\e050"}.glyphicon-text-width:before{content:"\e051"}.glyphicon-align-left:before{content:"\e052"}.glyphicon-align-center:before{content:"\e053"}.glyphicon-align-right:before{content:"\e054"}.glyphicon-align-justify:before{content:"\e055"}.glyphicon-list:before{content:"\e056"}.glyphicon-indent-left:before{content:"\e057"}.glyphicon-indent-right:before{content:"\e058"}.glyphicon-facetime-video:before{content:"\e059"}.glyphicon-picture:before{content:"\e060"}.glyphicon-map-marker:before{content:"\e062"}.glyphicon-adjust:before{content:"\e063"}.glyphicon-tint:before{content:"\e064"}.glyphicon-edit:before{content:"\e065"}.glyphicon-share:before{content:"\e066"}.glyphicon-check:before{content:"\e067"}.glyphicon-move:before{content:"\e068"}.glyphicon-step-backward:before{content:"\e069"}.glyphicon-fast-backward:before{content:"\e070"}.glyphicon-backward:before{content:"\e071"}.glyphicon-play:before{content:"\e072"}.glyphicon-pause:before{content:"\e073"}.glyphicon-stop:before{content:"\e074"}.glyphicon-forward:before{content:"\e075"}.glyphicon-fast-forward:before{content:"\e076"}.glyphicon-step-forward:before{content:"\e077"}.glyphicon-eject:before{content:"\e078"}.glyphicon-chevron-left:before{content:"\e079"}.glyphicon-chevron-right:before{content:"\e080"}.glyphicon-plus-sign:before{content:"\e081"}.glyphicon-minus-sign:before{content:"\e082"}.glyphicon-remove-sign:before{content:"\e083"}.glyphicon-ok-sign:before{content:"\e084"}.glyphicon-question-sign:before{content:"\e085"}.glyphicon-info-sign:before{content:"\e086"}.glyphicon-screenshot:before{content:"\e087"}.glyphicon-remove-circle:before{content:"\e088"}.glyphicon-ok-circle:before{content:"\e089"}.glyphicon-ban-circle:before{content:"\e090"}.glyphicon-arrow-left:before{content:"\e091"}.glyphicon-arrow-right:before{content:"\e092"}.glyphicon-arrow-up:before{content:"\e093"}.glyphicon-arrow-down:before{content:"\e094"}.glyphicon-share-alt:before{content:"\e095"}.glyphicon-resize-full:before{content:"\e096"}.glyphicon-resize-small:before{content:"\e097"}.glyphicon-exclamation-sign:before{content:"\e101"}.glyphicon-gift:before{content:"\e102"}.glyphicon-leaf:before{content:"\e103"}.glyphicon-fire:before{content:"\e104"}.glyphicon-eye-open:before{content:"\e105"}.glyphicon-eye-close:before{content:"\e106"}.glyphicon-warning-sign:before{content:"\e107"}.glyphicon-plane:before{content:"\e108"}.glyphicon-calendar:before{content:"\e109"}.glyphicon-random:before{content:"\e110"}.glyphicon-comment:before{content:"\e111"}.glyphicon-magnet:before{content:"\e112"}.glyphicon-chevron-up:before{content:"\e113"}.glyphicon-chevron-down:before{content:"\e114"}.glyphicon-retweet:before{content:"\e115"}.glyphicon-shopping-cart:before{content:"\e116"}.glyphicon-folder-close:before{content:"\e117"}.glyphicon-folder-open:before{content:"\e118"}.glyphicon-resize-vertical:before{content:"\e119"}.glyphicon-resize-horizontal:before{content:"\e120"}.glyphicon-hdd:before{content:"\e121"}.glyphicon-bullhorn:before{content:"\e122"}.glyphicon-bell:before{content:"\e123"}.glyphicon-certificate:before{content:"\e124"}.glyphicon-thumbs-up:before{content:"\e125"}.glyphicon-thumbs-down:before{content:"\e126"}.glyphicon-hand-right:before{content:"\e127"}.glyphicon-hand-left:before{content:"\e128"}.glyphicon-hand-up:before{content:"\e129"}.glyphicon-hand-down:before{content:"\e130"}.glyphicon-circle-arrow-right:before{content:"\e131"}.glyphicon-circle-arrow-left:before{content:"\e132"}.glyphicon-circle-arrow-up:before{content:"\e133"}.glyphicon-circle-arrow-down:before{content:"\e134"}.glyphicon-globe:before{content:"\e135"}.glyphicon-wrench:before{content:"\e136"}.glyphicon-tasks:before{content:"\e137"}.glyphicon-filter:before{content:"\e138"}.glyphicon-briefcase:before{content:"\e139"}.glyphicon-fullscreen:before{content:"\e140"}.glyphicon-dashboard:before{content:"\e141"}.glyphicon-paperclip:before{content:"\e142"}.glyphicon-heart-empty:before{content:"\e143"}.glyphicon-link:before{content:"\e144"}.glyphicon-phone:before{content:"\e145"}.glyphicon-pushpin:before{content:"\e146"}.glyphicon-usd:before{content:"\e148"}.glyphicon-gbp:before{content:"\e149"}.glyphicon-sort:before{content:"\e150"}.glyphicon-sort-by-alphabet:before{content:"\e151"}.glyphicon-sort-by-alphabet-alt:before{content:"\e152"}.glyphicon-sort-by-order:before{content:"\e153"}.glyphicon-sort-by-order-alt:before{content:"\e154"}.glyphicon-sort-by-attributes:before{content:"\e155"}.glyphicon-sort-by-attributes-alt:before{content:"\e156"}.glyphicon-unchecked:before{content:"\e157"}.glyphicon-expand:before{content:"\e158"}.glyphicon-collapse-down:before{content:"\e159"}.glyphicon-collapse-up:before{content:"\e160"}.glyphicon-log-in:before{content:"\e161"}.glyphicon-flash:before{content:"\e162"}.glyphicon-log-out:before{content:"\e163"}.glyphicon-new-window:before{content:"\e164"}.glyphicon-record:before{content:"\e165"}.glyphicon-save:before{content:"\e166"}.glyphicon-open:before{content:"\e167"}.glyphicon-saved:before{content:"\e168"}.glyphicon-import:before{content:"\e169"}.glyphicon-export:before{content:"\e170"}.glyphicon-send:before{content:"\e171"}.glyphicon-floppy-disk:before{content:"\e172"}.glyphicon-floppy-saved:before{content:"\e173"}.glyphicon-floppy-remove:before{content:"\e174"}.glyphicon-floppy-save:before{content:"\e175"}.glyphicon-floppy-open:before{content:"\e176"}.glyphicon-credit-card:before{content:"\e177"}.glyphicon-transfer:before{content:"\e178"}.glyphicon-cutlery:before{content:"\e179"}.glyphicon-header:before{content:"\e180"}.glyphicon-compressed:before{content:"\e181"}.glyphicon-earphone:before{content:"\e182"}.glyphicon-phone-alt:before{content:"\e183"}.glyphicon-tower:before{content:"\e184"}.glyphicon-stats:before{content:"\e185"}.glyphicon-sd-video:before{content:"\e186"}.glyphicon-hd-video:before{content:"\e187"}.glyphicon-subtitles:before{content:"\e188"}.glyphicon-sound-stereo:before{content:"\e189"}.glyphicon-sound-dolby:before{content:"\e190"}.glyphicon-sound-5-1:before{content:"\e191"}.glyphicon-sound-6-1:before{content:"\e192"}.glyphicon-sound-7-1:before{content:"\e193"}.glyphicon-copyright-mark:before{content:"\e194"}.glyphicon-registration-mark:before{content:"\e195"}.glyphicon-cloud-download:before{content:"\e197"}.glyphicon-cloud-upload:before{content:"\e198"}.glyphicon-tree-conifer:before{content:"\e199"}.glyphicon-tree-deciduous:before{content:"\e200"}.glyphicon-cd:before{content:"\e201"}.glyphicon-save-file:before{content:"\e202"}.glyphicon-open-file:before{content:"\e203"}.glyphicon-level-up:before{content:"\e204"}.glyphicon-copy:before{content:"\e205"}.glyphicon-paste:before{content:"\e206"}.glyphicon-alert:before{content:"\e209"}.glyphicon-equalizer:before{content:"\e210"}.glyphicon-king:before{content:"\e211"}.glyphicon-queen:before{content:"\e212"}.glyphicon-pawn:before{content:"\e213"}.glyphicon-bishop:before{content:"\e214"}.glyphicon-knight:before{content:"\e215"}.glyphicon-baby-formula:before{content:"\e216"}.glyphicon-tent:before{content:"\26fa"}.glyphicon-blackboard:before{content:"\e218"}.glyphicon-bed:before{content:"\e219"}.glyphicon-apple:before{content:"\f8ff"}.glyphicon-erase:before{content:"\e221"}.glyphicon-hourglass:before{content:"\231b"}.glyphicon-lamp:before{content:"\e223"}.glyphicon-duplicate:before{content:"\e224"}.glyphicon-piggy-bank:before{content:"\e225"}.glyphicon-scissors:before{content:"\e226"}.glyphicon-bitcoin:before{content:"\e227"}.glyphicon-btc:before{content:"\e227"}.glyphicon-xbt:before{content:"\e227"}.glyphicon-yen:before{content:"\00a5"}.glyphicon-jpy:before{content:"\00a5"}.glyphicon-ruble:before{content:"\20bd"}.glyphicon-rub:before{content:"\20bd"}.glyphicon-scale:before{content:"\e230"}.glyphicon-ice-lolly:before{content:"\e231"}.glyphicon-ice-lolly-tasted:before{content:"\e232"}.glyphicon-education:before{content:"\e233"}.glyphicon-option-horizontal:before{content:"\e234"}.glyphicon-option-vertical:before{content:"\e235"}.glyphicon-menu-hamburger:before{content:"\e236"}.glyphicon-modal-window:before{content:"\e237"}.glyphicon-oil:before{content:"\e238"}.glyphicon-grain:before{content:"\e239"}.glyphicon-sunglasses:before{content:"\e240"}.glyphicon-text-size:before{content:"\e241"}.glyphicon-text-color:before{content:"\e242"}.glyphicon-text-background:before{content:"\e243"}.glyphicon-object-align-top:before{content:"\e244"}.glyphicon-object-align-bottom:before{content:"\e245"}.glyphicon-object-align-horizontal:before{content:"\e246"}.glyphicon-object-align-left:before{content:"\e247"}.glyphicon-object-align-vertical:before{content:"\e248"}.glyphicon-object-align-right:before{content:"\e249"}.glyphicon-triangle-right:before{content:"\e250"}.glyphicon-triangle-left:before{content:"\e251"}.glyphicon-triangle-bottom:before{content:"\e252"}.glyphicon-triangle-top:before{content:"\e253"}.glyphicon-console:before{content:"\e254"}.glyphicon-superscript:before{content:"\e255"}.glyphicon-subscript:before{content:"\e256"}.glyphicon-menu-left:before{content:"\e257"}.glyphicon-menu-right:before{content:"\e258"}.glyphicon-menu-down:before{content:"\e259"}.glyphicon-menu-up:before{content:"\e260"}*{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}*:before,*:after{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}html{font-size:10px;-webkit-tap-highlight-color:rgba(0,0,0,0)}input,button,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit}a{color:#4582ec;text-decoration:none}a:hover,a:focus{color:#134fb8;text-decoration:underline}a:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}figure{margin:0}img{vertical-align:middle}.img-responsive,.thumbnail>img,.thumbnail a>img,.carousel-inner>.item>img,.carousel-inner>.item>a>img{display:block;max-width:100%;height:auto}.img-rounded{border-radius:6px}.img-thumbnail{padding:4px;line-height:1.42857143;background-color:#ffffff;border:1px solid #dddddd;border-radius:4px;-webkit-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out;display:inline-block;max-width:100%;height:auto}.img-circle{border-radius:50%}hr{margin-top:22px;margin-bottom:22px;border:0;border-top:1px solid #eeeeee}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}[role="button"]{cursor:pointer}h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6{font-family:"Raleway","Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:bold;line-height:1.1;color:inherit}h1 small,h2 small,h3 small,h4 small,h5 small,h6 small,.h1 small,.h2 small,.h3 small,.h4 small,.h5 small,.h6 small,h1 .small,h2 .small,h3 .small,h4 .small,h5 .small,h6 .small,.h1 .small,.h2 .small,.h3 .small,.h4 .small,.h5 .small,.h6 .small{font-weight:normal;line-height:1;color:#b3b3b3}h1,.h1,h2,.h2,h3,.h3{margin-top:22px;margin-bottom:11px}h1 small,.h1 small,h2 small,.h2 small,h3 small,.h3 small,h1 .small,.h1 .small,h2 .small,.h2 .small,h3 .small,.h3 .small{font-size:65%}h4,.h4,h5,.h5,h6,.h6{margin-top:11px;margin-bottom:11px}h4 small,.h4 small,h5 small,.h5 small,h6 small,.h6 small,h4 .small,.h4 .small,h5 .small,.h5 .small,h6 .small,.h6 .small{font-size:75%}h1,.h1{font-size:41px}h2,.h2{font-size:34px}h3,.h3{font-size:28px}h4,.h4{font-size:20px}h5,.h5{font-size:16px}h6,.h6{font-size:14px}p{margin:0 0 11px}.lead{margin-bottom:22px;font-size:18px;font-weight:300;line-height:1.4}@media (min-width:768px){.lead{font-size:24px}}small,.small{font-size:87%}mark,.mark{background-color:#fcf8e3;padding:.2em}.text-left{text-align:left}.text-right{text-align:right}.text-center{text-align:center}.text-justify{text-align:justify}.text-nowrap{white-space:nowrap}.text-lowercase{text-transform:lowercase}.text-uppercase{text-transform:uppercase}.text-capitalize{text-transform:capitalize}.text-muted{color:#b3b3b3}.text-primary{color:#4582ec}a.text-primary:hover{color:#1863e6}.text-success{color:#3fad46}a.text-success:hover{color:#318837}.text-info{color:#5bc0de}a.text-info:hover{color:#31b0d5}.text-warning{color:#f0ad4e}a.text-warning:hover{color:#ec971f}.text-danger{color:#d9534f}a.text-danger:hover{color:#c9302c}.bg-primary{color:#fff;background-color:#4582ec}a.bg-primary:hover{background-color:#1863e6}.bg-success{background-color:#dff0d8}a.bg-success:hover{background-color:#c1e2b3}.bg-info{background-color:#d9edf7}a.bg-info:hover{background-color:#afd9ee}.bg-warning{background-color:#fcf8e3}a.bg-warning:hover{background-color:#f7ecb5}.bg-danger{background-color:#f2dede}a.bg-danger:hover{background-color:#e4b9b9}.page-header{padding-bottom:10px;margin:44px 0 22px;border-bottom:1px solid #dddddd}ul,ol{margin-top:0;margin-bottom:11px}ul ul,ol ul,ul ol,ol ol{margin-bottom:0}.list-unstyled{padding-left:0;list-style:none}.list-inline{padding-left:0;list-style:none;margin-left:-5px}.list-inline>li{display:inline-block;padding-left:5px;padding-right:5px}dl{margin-top:0;margin-bottom:22px}dt,dd{line-height:1.42857143}dt{font-weight:bold}dd{margin-left:0}@media (min-width:768px){.dl-horizontal dt{float:left;width:160px;clear:left;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dl-horizontal dd{margin-left:180px}}abbr[title],abbr[data-original-title]{cursor:help;border-bottom:1px dotted #b3b3b3}.initialism{font-size:90%;text-transform:uppercase}blockquote{padding:11px 22px;margin:0 0 22px;font-size:20px;border-left:5px solid #4582ec}blockquote p:last-child,blockquote ul:last-child,blockquote ol:last-child{margin-bottom:0}blockquote footer,blockquote small,blockquote .small{display:block;font-size:80%;line-height:1.42857143;color:#333333}blockquote footer:before,blockquote small:before,blockquote .small:before{content:'\2014 \00A0'}.blockquote-reverse,blockquote.pull-right{padding-right:15px;padding-left:0;border-right:5px solid #4582ec;border-left:0;text-align:right}.blockquote-reverse footer:before,blockquote.pull-right footer:before,.blockquote-reverse small:before,blockquote.pull-right small:before,.blockquote-reverse .small:before,blockquote.pull-right .small:before{content:''}.blockquote-reverse footer:after,blockquote.pull-right footer:after,.blockquote-reverse small:after,blockquote.pull-right small:after,.blockquote-reverse .small:after,blockquote.pull-right .small:after{content:'\00A0 \2014'}address{margin-bottom:22px;font-style:normal;line-height:1.42857143}code,kbd,pre,samp{font-family:Menlo,Monaco,Consolas,"Courier New",monospace}code{padding:2px 4px;font-size:90%;color:#c7254e;background-color:#f9f2f4;border-radius:4px}kbd{padding:2px 4px;font-size:90%;color:#ffffff;background-color:#333333;border-radius:3px;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,0.25);box-shadow:inset 0 -1px 0 rgba(0,0,0,0.25)}kbd kbd{padding:0;font-size:100%;font-weight:bold;-webkit-box-shadow:none;box-shadow:none}pre{display:block;padding:10.5px;margin:0 0 11px;font-size:15px;line-height:1.42857143;word-break:break-all;word-wrap:break-word;color:#333333;background-color:#f5f5f5;border:1px solid #cccccc;border-radius:4px}pre code{padding:0;font-size:inherit;color:inherit;white-space:pre-wrap;background-color:transparent;border-radius:0}.pre-scrollable{max-height:340px;overflow-y:scroll}.container{margin-right:auto;margin-left:auto;padding-left:15px;padding-right:15px}@media (min-width:768px){.container{width:750px}}@media (min-width:992px){.container{width:970px}}@media (min-width:1200px){.container{width:1170px}}.container-fluid{margin-right:auto;margin-left:auto;padding-left:15px;padding-right:15px}.row{margin-left:-15px;margin-right:-15px}.col-xs-1,.col-sm-1,.col-md-1,.col-lg-1,.col-xs-2,.col-sm-2,.col-md-2,.col-lg-2,.col-xs-3,.col-sm-3,.col-md-3,.col-lg-3,.col-xs-4,.col-sm-4,.col-md-4,.col-lg-4,.col-xs-5,.col-sm-5,.col-md-5,.col-lg-5,.col-xs-6,.col-sm-6,.col-md-6,.col-lg-6,.col-xs-7,.col-sm-7,.col-md-7,.col-lg-7,.col-xs-8,.col-sm-8,.col-md-8,.col-lg-8,.col-xs-9,.col-sm-9,.col-md-9,.col-lg-9,.col-xs-10,.col-sm-10,.col-md-10,.col-lg-10,.col-xs-11,.col-sm-11,.col-md-11,.col-lg-11,.col-xs-12,.col-sm-12,.col-md-12,.col-lg-12{position:relative;min-height:1px;padding-left:15px;padding-right:15px}.col-xs-1,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9,.col-xs-10,.col-xs-11,.col-xs-12{float:left}.col-xs-12{width:100%}.col-xs-11{width:91.66666667%}.col-xs-10{width:83.33333333%}.col-xs-9{width:75%}.col-xs-8{width:66.66666667%}.col-xs-7{width:58.33333333%}.col-xs-6{width:50%}.col-xs-5{width:41.66666667%}.col-xs-4{width:33.33333333%}.col-xs-3{width:25%}.col-xs-2{width:16.66666667%}.col-xs-1{width:8.33333333%}.col-xs-pull-12{right:100%}.col-xs-pull-11{right:91.66666667%}.col-xs-pull-10{right:83.33333333%}.col-xs-pull-9{right:75%}.col-xs-pull-8{right:66.66666667%}.col-xs-pull-7{right:58.33333333%}.col-xs-pull-6{right:50%}.col-xs-pull-5{right:41.66666667%}.col-xs-pull-4{right:33.33333333%}.col-xs-pull-3{right:25%}.col-xs-pull-2{right:16.66666667%}.col-xs-pull-1{right:8.33333333%}.col-xs-pull-0{right:auto}.col-xs-push-12{left:100%}.col-xs-push-11{left:91.66666667%}.col-xs-push-10{left:83.33333333%}.col-xs-push-9{left:75%}.col-xs-push-8{left:66.66666667%}.col-xs-push-7{left:58.33333333%}.col-xs-push-6{left:50%}.col-xs-push-5{left:41.66666667%}.col-xs-push-4{left:33.33333333%}.col-xs-push-3{left:25%}.col-xs-push-2{left:16.66666667%}.col-xs-push-1{left:8.33333333%}.col-xs-push-0{left:auto}.col-xs-offset-12{margin-left:100%}.col-xs-offset-11{margin-left:91.66666667%}.col-xs-offset-10{margin-left:83.33333333%}.col-xs-offset-9{margin-left:75%}.col-xs-offset-8{margin-left:66.66666667%}.col-xs-offset-7{margin-left:58.33333333%}.col-xs-offset-6{margin-left:50%}.col-xs-offset-5{margin-left:41.66666667%}.col-xs-offset-4{margin-left:33.33333333%}.col-xs-offset-3{margin-left:25%}.col-xs-offset-2{margin-left:16.66666667%}.col-xs-offset-1{margin-left:8.33333333%}.col-xs-offset-0{margin-left:0%}@media (min-width:768px){.col-sm-1,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-10,.col-sm-11,.col-sm-12{float:left}.col-sm-12{width:100%}.col-sm-11{width:91.66666667%}.col-sm-10{width:83.33333333%}.col-sm-9{width:75%}.col-sm-8{width:66.66666667%}.col-sm-7{width:58.33333333%}.col-sm-6{width:50%}.col-sm-5{width:41.66666667%}.col-sm-4{width:33.33333333%}.col-sm-3{width:25%}.col-sm-2{width:16.66666667%}.col-sm-1{width:8.33333333%}.col-sm-pull-12{right:100%}.col-sm-pull-11{right:91.66666667%}.col-sm-pull-10{right:83.33333333%}.col-sm-pull-9{right:75%}.col-sm-pull-8{right:66.66666667%}.col-sm-pull-7{right:58.33333333%}.col-sm-pull-6{right:50%}.col-sm-pull-5{right:41.66666667%}.col-sm-pull-4{right:33.33333333%}.col-sm-pull-3{right:25%}.col-sm-pull-2{right:16.66666667%}.col-sm-pull-1{right:8.33333333%}.col-sm-pull-0{right:auto}.col-sm-push-12{left:100%}.col-sm-push-11{left:91.66666667%}.col-sm-push-10{left:83.33333333%}.col-sm-push-9{left:75%}.col-sm-push-8{left:66.66666667%}.col-sm-push-7{left:58.33333333%}.col-sm-push-6{left:50%}.col-sm-push-5{left:41.66666667%}.col-sm-push-4{left:33.33333333%}.col-sm-push-3{left:25%}.col-sm-push-2{left:16.66666667%}.col-sm-push-1{left:8.33333333%}.col-sm-push-0{left:auto}.col-sm-offset-12{margin-left:100%}.col-sm-offset-11{margin-left:91.66666667%}.col-sm-offset-10{margin-left:83.33333333%}.col-sm-offset-9{margin-left:75%}.col-sm-offset-8{margin-left:66.66666667%}.col-sm-offset-7{margin-left:58.33333333%}.col-sm-offset-6{margin-left:50%}.col-sm-offset-5{margin-left:41.66666667%}.col-sm-offset-4{margin-left:33.33333333%}.col-sm-offset-3{margin-left:25%}.col-sm-offset-2{margin-left:16.66666667%}.col-sm-offset-1{margin-left:8.33333333%}.col-sm-offset-0{margin-left:0%}}@media (min-width:992px){.col-md-1,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-md-10,.col-md-11,.col-md-12{float:left}.col-md-12{width:100%}.col-md-11{width:91.66666667%}.col-md-10{width:83.33333333%}.col-md-9{width:75%}.col-md-8{width:66.66666667%}.col-md-7{width:58.33333333%}.col-md-6{width:50%}.col-md-5{width:41.66666667%}.col-md-4{width:33.33333333%}.col-md-3{width:25%}.col-md-2{width:16.66666667%}.col-md-1{width:8.33333333%}.col-md-pull-12{right:100%}.col-md-pull-11{right:91.66666667%}.col-md-pull-10{right:83.33333333%}.col-md-pull-9{right:75%}.col-md-pull-8{right:66.66666667%}.col-md-pull-7{right:58.33333333%}.col-md-pull-6{right:50%}.col-md-pull-5{right:41.66666667%}.col-md-pull-4{right:33.33333333%}.col-md-pull-3{right:25%}.col-md-pull-2{right:16.66666667%}.col-md-pull-1{right:8.33333333%}.col-md-pull-0{right:auto}.col-md-push-12{left:100%}.col-md-push-11{left:91.66666667%}.col-md-push-10{left:83.33333333%}.col-md-push-9{left:75%}.col-md-push-8{left:66.66666667%}.col-md-push-7{left:58.33333333%}.col-md-push-6{left:50%}.col-md-push-5{left:41.66666667%}.col-md-push-4{left:33.33333333%}.col-md-push-3{left:25%}.col-md-push-2{left:16.66666667%}.col-md-push-1{left:8.33333333%}.col-md-push-0{left:auto}.col-md-offset-12{margin-left:100%}.col-md-offset-11{margin-left:91.66666667%}.col-md-offset-10{margin-left:83.33333333%}.col-md-offset-9{margin-left:75%}.col-md-offset-8{margin-left:66.66666667%}.col-md-offset-7{margin-left:58.33333333%}.col-md-offset-6{margin-left:50%}.col-md-offset-5{margin-left:41.66666667%}.col-md-offset-4{margin-left:33.33333333%}.col-md-offset-3{margin-left:25%}.col-md-offset-2{margin-left:16.66666667%}.col-md-offset-1{margin-left:8.33333333%}.col-md-offset-0{margin-left:0%}}@media (min-width:1200px){.col-lg-1,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-10,.col-lg-11,.col-lg-12{float:left}.col-lg-12{width:100%}.col-lg-11{width:91.66666667%}.col-lg-10{width:83.33333333%}.col-lg-9{width:75%}.col-lg-8{width:66.66666667%}.col-lg-7{width:58.33333333%}.col-lg-6{width:50%}.col-lg-5{width:41.66666667%}.col-lg-4{width:33.33333333%}.col-lg-3{width:25%}.col-lg-2{width:16.66666667%}.col-lg-1{width:8.33333333%}.col-lg-pull-12{right:100%}.col-lg-pull-11{right:91.66666667%}.col-lg-pull-10{right:83.33333333%}.col-lg-pull-9{right:75%}.col-lg-pull-8{right:66.66666667%}.col-lg-pull-7{right:58.33333333%}.col-lg-pull-6{right:50%}.col-lg-pull-5{right:41.66666667%}.col-lg-pull-4{right:33.33333333%}.col-lg-pull-3{right:25%}.col-lg-pull-2{right:16.66666667%}.col-lg-pull-1{right:8.33333333%}.col-lg-pull-0{right:auto}.col-lg-push-12{left:100%}.col-lg-push-11{left:91.66666667%}.col-lg-push-10{left:83.33333333%}.col-lg-push-9{left:75%}.col-lg-push-8{left:66.66666667%}.col-lg-push-7{left:58.33333333%}.col-lg-push-6{left:50%}.col-lg-push-5{left:41.66666667%}.col-lg-push-4{left:33.33333333%}.col-lg-push-3{left:25%}.col-lg-push-2{left:16.66666667%}.col-lg-push-1{left:8.33333333%}.col-lg-push-0{left:auto}.col-lg-offset-12{margin-left:100%}.col-lg-offset-11{margin-left:91.66666667%}.col-lg-offset-10{margin-left:83.33333333%}.col-lg-offset-9{margin-left:75%}.col-lg-offset-8{margin-left:66.66666667%}.col-lg-offset-7{margin-left:58.33333333%}.col-lg-offset-6{margin-left:50%}.col-lg-offset-5{margin-left:41.66666667%}.col-lg-offset-4{margin-left:33.33333333%}.col-lg-offset-3{margin-left:25%}.col-lg-offset-2{margin-left:16.66666667%}.col-lg-offset-1{margin-left:8.33333333%}.col-lg-offset-0{margin-left:0%}}table{background-color:transparent}caption{padding-top:8px;padding-bottom:8px;color:#b3b3b3;text-align:left}th{text-align:left}.table{width:100%;max-width:100%;margin-bottom:22px}.table>thead>tr>th,.table>tbody>tr>th,.table>tfoot>tr>th,.table>thead>tr>td,.table>tbody>tr>td,.table>tfoot>tr>td{padding:8px;line-height:1.42857143;vertical-align:top;border-top:1px solid #dddddd}.table>thead>tr>th{vertical-align:bottom;border-bottom:2px solid #dddddd}.table>caption+thead>tr:first-child>th,.table>colgroup+thead>tr:first-child>th,.table>thead:first-child>tr:first-child>th,.table>caption+thead>tr:first-child>td,.table>colgroup+thead>tr:first-child>td,.table>thead:first-child>tr:first-child>td{border-top:0}.table>tbody+tbody{border-top:2px solid #dddddd}.table .table{background-color:#ffffff}.table-condensed>thead>tr>th,.table-condensed>tbody>tr>th,.table-condensed>tfoot>tr>th,.table-condensed>thead>tr>td,.table-condensed>tbody>tr>td,.table-condensed>tfoot>tr>td{padding:5px}.table-bordered{border:1px solid #dddddd}.table-bordered>thead>tr>th,.table-bordered>tbody>tr>th,.table-bordered>tfoot>tr>th,.table-bordered>thead>tr>td,.table-bordered>tbody>tr>td,.table-bordered>tfoot>tr>td{border:1px solid #dddddd}.table-bordered>thead>tr>th,.table-bordered>thead>tr>td{border-bottom-width:2px}.table-striped>tbody>tr:nth-of-type(odd){background-color:#f9f9f9}.table-hover>tbody>tr:hover{background-color:#f5f5f5}table col[class*="col-"]{position:static;float:none;display:table-column}table td[class*="col-"],table th[class*="col-"]{position:static;float:none;display:table-cell}.table>thead>tr>td.active,.table>tbody>tr>td.active,.table>tfoot>tr>td.active,.table>thead>tr>th.active,.table>tbody>tr>th.active,.table>tfoot>tr>th.active,.table>thead>tr.active>td,.table>tbody>tr.active>td,.table>tfoot>tr.active>td,.table>thead>tr.active>th,.table>tbody>tr.active>th,.table>tfoot>tr.active>th{background-color:#f5f5f5}.table-hover>tbody>tr>td.active:hover,.table-hover>tbody>tr>th.active:hover,.table-hover>tbody>tr.active:hover>td,.table-hover>tbody>tr:hover>.active,.table-hover>tbody>tr.active:hover>th{background-color:#e8e8e8}.table>thead>tr>td.success,.table>tbody>tr>td.success,.table>tfoot>tr>td.success,.table>thead>tr>th.success,.table>tbody>tr>th.success,.table>tfoot>tr>th.success,.table>thead>tr.success>td,.table>tbody>tr.success>td,.table>tfoot>tr.success>td,.table>thead>tr.success>th,.table>tbody>tr.success>th,.table>tfoot>tr.success>th{background-color:#dff0d8}.table-hover>tbody>tr>td.success:hover,.table-hover>tbody>tr>th.success:hover,.table-hover>tbody>tr.success:hover>td,.table-hover>tbody>tr:hover>.success,.table-hover>tbody>tr.success:hover>th{background-color:#d0e9c6}.table>thead>tr>td.info,.table>tbody>tr>td.info,.table>tfoot>tr>td.info,.table>thead>tr>th.info,.table>tbody>tr>th.info,.table>tfoot>tr>th.info,.table>thead>tr.info>td,.table>tbody>tr.info>td,.table>tfoot>tr.info>td,.table>thead>tr.info>th,.table>tbody>tr.info>th,.table>tfoot>tr.info>th{background-color:#d9edf7}.table-hover>tbody>tr>td.info:hover,.table-hover>tbody>tr>th.info:hover,.table-hover>tbody>tr.info:hover>td,.table-hover>tbody>tr:hover>.info,.table-hover>tbody>tr.info:hover>th{background-color:#c4e3f3}.table>thead>tr>td.warning,.table>tbody>tr>td.warning,.table>tfoot>tr>td.warning,.table>thead>tr>th.warning,.table>tbody>tr>th.warning,.table>tfoot>tr>th.warning,.table>thead>tr.warning>td,.table>tbody>tr.warning>td,.table>tfoot>tr.warning>td,.table>thead>tr.warning>th,.table>tbody>tr.warning>th,.table>tfoot>tr.warning>th{background-color:#fcf8e3}.table-hover>tbody>tr>td.warning:hover,.table-hover>tbody>tr>th.warning:hover,.table-hover>tbody>tr.warning:hover>td,.table-hover>tbody>tr:hover>.warning,.table-hover>tbody>tr.warning:hover>th{background-color:#faf2cc}.table>thead>tr>td.danger,.table>tbody>tr>td.danger,.table>tfoot>tr>td.danger,.table>thead>tr>th.danger,.table>tbody>tr>th.danger,.table>tfoot>tr>th.danger,.table>thead>tr.danger>td,.table>tbody>tr.danger>td,.table>tfoot>tr.danger>td,.table>thead>tr.danger>th,.table>tbody>tr.danger>th,.table>tfoot>tr.danger>th{background-color:#f2dede}.table-hover>tbody>tr>td.danger:hover,.table-hover>tbody>tr>th.danger:hover,.table-hover>tbody>tr.danger:hover>td,.table-hover>tbody>tr:hover>.danger,.table-hover>tbody>tr.danger:hover>th{background-color:#ebcccc}.table-responsive{overflow-x:auto;min-height:0.01%}@media screen and (max-width:767px){.table-responsive{width:100%;margin-bottom:16.5px;overflow-y:hidden;-ms-overflow-style:-ms-autohiding-scrollbar;border:1px solid #dddddd}.table-responsive>.table{margin-bottom:0}.table-responsive>.table>thead>tr>th,.table-responsive>.table>tbody>tr>th,.table-responsive>.table>tfoot>tr>th,.table-responsive>.table>thead>tr>td,.table-responsive>.table>tbody>tr>td,.table-responsive>.table>tfoot>tr>td{white-space:nowrap}.table-responsive>.table-bordered{border:0}.table-responsive>.table-bordered>thead>tr>th:first-child,.table-responsive>.table-bordered>tbody>tr>th:first-child,.table-responsive>.table-bordered>tfoot>tr>th:first-child,.table-responsive>.table-bordered>thead>tr>td:first-child,.table-responsive>.table-bordered>tbody>tr>td:first-child,.table-responsive>.table-bordered>tfoot>tr>td:first-child{border-left:0}.table-responsive>.table-bordered>thead>tr>th:last-child,.table-responsive>.table-bordered>tbody>tr>th:last-child,.table-responsive>.table-bordered>tfoot>tr>th:last-child,.table-responsive>.table-bordered>thead>tr>td:last-child,.table-responsive>.table-bordered>tbody>tr>td:last-child,.table-responsive>.table-bordered>tfoot>tr>td:last-child{border-right:0}.table-responsive>.table-bordered>tbody>tr:last-child>th,.table-responsive>.table-bordered>tfoot>tr:last-child>th,.table-responsive>.table-bordered>tbody>tr:last-child>td,.table-responsive>.table-bordered>tfoot>tr:last-child>td{border-bottom:0}}fieldset{padding:0;margin:0;border:0;min-width:0}legend{display:block;width:100%;padding:0;margin-bottom:22px;font-size:24px;line-height:inherit;color:#333333;border:0;border-bottom:1px solid #e5e5e5}label{display:inline-block;max-width:100%;margin-bottom:5px;font-weight:bold}input[type="search"]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}input[type="radio"],input[type="checkbox"]{margin:4px 0 0;margin-top:1px \9;line-height:normal}input[type="file"]{display:block}input[type="range"]{display:block;width:100%}select[multiple],select[size]{height:auto}input[type="file"]:focus,input[type="radio"]:focus,input[type="checkbox"]:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}output{display:block;padding-top:9px;font-size:16px;line-height:1.42857143;color:#333333}.form-control{display:block;width:100%;height:40px;padding:8px 12px;font-size:16px;line-height:1.42857143;color:#333333;background-color:#ffffff;background-image:none;border:1px solid #dddddd;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);-webkit-transition:border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;-o-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}.form-control:focus{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(102,175,233,0.6);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(102,175,233,0.6)}.form-control::-moz-placeholder{color:#b3b3b3;opacity:1}.form-control:-ms-input-placeholder{color:#b3b3b3}.form-control::-webkit-input-placeholder{color:#b3b3b3}.form-control[disabled],.form-control[readonly],fieldset[disabled] .form-control{background-color:#eeeeee;opacity:1}.form-control[disabled],fieldset[disabled] .form-control{cursor:not-allowed}textarea.form-control{height:auto}input[type="search"]{-webkit-appearance:none}@media screen and (-webkit-min-device-pixel-ratio:0){input[type="date"],input[type="time"],input[type="datetime-local"],input[type="month"]{line-height:40px}input[type="date"].input-sm,input[type="time"].input-sm,input[type="datetime-local"].input-sm,input[type="month"].input-sm,.input-group-sm input[type="date"],.input-group-sm input[type="time"],.input-group-sm input[type="datetime-local"],.input-group-sm input[type="month"]{line-height:33px}input[type="date"].input-lg,input[type="time"].input-lg,input[type="datetime-local"].input-lg,input[type="month"].input-lg,.input-group-lg input[type="date"],.input-group-lg input[type="time"],.input-group-lg input[type="datetime-local"],.input-group-lg input[type="month"]{line-height:57px}}.form-group{margin-bottom:15px}.radio,.checkbox{position:relative;display:block;margin-top:10px;margin-bottom:10px}.radio label,.checkbox label{min-height:22px;padding-left:20px;margin-bottom:0;font-weight:normal;cursor:pointer}.radio input[type="radio"],.radio-inline input[type="radio"],.checkbox input[type="checkbox"],.checkbox-inline input[type="checkbox"]{position:absolute;margin-left:-20px;margin-top:4px \9}.radio+.radio,.checkbox+.checkbox{margin-top:-5px}.radio-inline,.checkbox-inline{position:relative;display:inline-block;padding-left:20px;margin-bottom:0;vertical-align:middle;font-weight:normal;cursor:pointer}.radio-inline+.radio-inline,.checkbox-inline+.checkbox-inline{margin-top:0;margin-left:10px}input[type="radio"][disabled],input[type="checkbox"][disabled],input[type="radio"].disabled,input[type="checkbox"].disabled,fieldset[disabled] input[type="radio"],fieldset[disabled] input[type="checkbox"]{cursor:not-allowed}.radio-inline.disabled,.checkbox-inline.disabled,fieldset[disabled] .radio-inline,fieldset[disabled] .checkbox-inline{cursor:not-allowed}.radio.disabled label,.checkbox.disabled label,fieldset[disabled] .radio label,fieldset[disabled] .checkbox label{cursor:not-allowed}.form-control-static{padding-top:9px;padding-bottom:9px;margin-bottom:0;min-height:38px}.form-control-static.input-lg,.form-control-static.input-sm{padding-left:0;padding-right:0}.input-sm{height:33px;padding:5px 10px;font-size:14px;line-height:1.5;border-radius:3px}select.input-sm{height:33px;line-height:33px}textarea.input-sm,select[multiple].input-sm{height:auto}.form-group-sm .form-control{height:33px;padding:5px 10px;font-size:14px;line-height:1.5;border-radius:3px}select.form-group-sm .form-control{height:33px;line-height:33px}textarea.form-group-sm .form-control,select[multiple].form-group-sm .form-control{height:auto}.form-group-sm .form-control-static{height:33px;padding:5px 10px;font-size:14px;line-height:1.5;min-height:36px}.input-lg{height:57px;padding:14px 16px;font-size:20px;line-height:1.3333333;border-radius:6px}select.input-lg{height:57px;line-height:57px}textarea.input-lg,select[multiple].input-lg{height:auto}.form-group-lg .form-control{height:57px;padding:14px 16px;font-size:20px;line-height:1.3333333;border-radius:6px}select.form-group-lg .form-control{height:57px;line-height:57px}textarea.form-group-lg .form-control,select[multiple].form-group-lg .form-control{height:auto}.form-group-lg .form-control-static{height:57px;padding:14px 16px;font-size:20px;line-height:1.3333333;min-height:42px}.has-feedback{position:relative}.has-feedback .form-control{padding-right:50px}.form-control-feedback{position:absolute;top:0;right:0;z-index:2;display:block;width:40px;height:40px;line-height:40px;text-align:center;pointer-events:none}.input-lg+.form-control-feedback{width:57px;height:57px;line-height:57px}.input-sm+.form-control-feedback{width:33px;height:33px;line-height:33px}.has-success .help-block,.has-success .control-label,.has-success .radio,.has-success .checkbox,.has-success .radio-inline,.has-success .checkbox-inline,.has-success.radio label,.has-success.checkbox label,.has-success.radio-inline label,.has-success.checkbox-inline label{color:#3fad46}.has-success .form-control{border-color:#3fad46;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075)}.has-success .form-control:focus{border-color:#318837;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #81d186;box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #81d186}.has-success .input-group-addon{color:#3fad46;border-color:#3fad46;background-color:#dff0d8}.has-success .form-control-feedback{color:#3fad46}.has-warning .help-block,.has-warning .control-label,.has-warning .radio,.has-warning .checkbox,.has-warning .radio-inline,.has-warning .checkbox-inline,.has-warning.radio label,.has-warning.checkbox label,.has-warning.radio-inline label,.has-warning.checkbox-inline label{color:#f0ad4e}.has-warning .form-control{border-color:#f0ad4e;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075)}.has-warning .form-control:focus{border-color:#ec971f;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #f8d9ac;box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #f8d9ac}.has-warning .input-group-addon{color:#f0ad4e;border-color:#f0ad4e;background-color:#fcf8e3}.has-warning .form-control-feedback{color:#f0ad4e}.has-error .help-block,.has-error .control-label,.has-error .radio,.has-error .checkbox,.has-error .radio-inline,.has-error .checkbox-inline,.has-error.radio label,.has-error.checkbox label,.has-error.radio-inline label,.has-error.checkbox-inline label{color:#d9534f}.has-error .form-control{border-color:#d9534f;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075)}.has-error .form-control:focus{border-color:#c9302c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #eba5a3;box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #eba5a3}.has-error .input-group-addon{color:#d9534f;border-color:#d9534f;background-color:#f2dede}.has-error .form-control-feedback{color:#d9534f}.has-feedback label~.form-control-feedback{top:27px}.has-feedback label.sr-only~.form-control-feedback{top:0}.help-block{display:block;margin-top:5px;margin-bottom:10px;color:#737373}@media (min-width:768px){.form-inline .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.form-inline .form-control{display:inline-block;width:auto;vertical-align:middle}.form-inline .form-control-static{display:inline-block}.form-inline .input-group{display:inline-table;vertical-align:middle}.form-inline .input-group .input-group-addon,.form-inline .input-group .input-group-btn,.form-inline .input-group .form-control{width:auto}.form-inline .input-group>.form-control{width:100%}.form-inline .control-label{margin-bottom:0;vertical-align:middle}.form-inline .radio,.form-inline .checkbox{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle}.form-inline .radio label,.form-inline .checkbox label{padding-left:0}.form-inline .radio input[type="radio"],.form-inline .checkbox input[type="checkbox"]{position:relative;margin-left:0}.form-inline .has-feedback .form-control-feedback{top:0}}.form-horizontal .radio,.form-horizontal .checkbox,.form-horizontal .radio-inline,.form-horizontal .checkbox-inline{margin-top:0;margin-bottom:0;padding-top:9px}.form-horizontal .radio,.form-horizontal .checkbox{min-height:31px}.form-horizontal .form-group{margin-left:-15px;margin-right:-15px}@media (min-width:768px){.form-horizontal .control-label{text-align:right;margin-bottom:0;padding-top:9px}}.form-horizontal .has-feedback .form-control-feedback{right:15px}@media (min-width:768px){.form-horizontal .form-group-lg .control-label{padding-top:19.6666662px}}@media (min-width:768px){.form-horizontal .form-group-sm .control-label{padding-top:6px}}.btn{display:inline-block;margin-bottom:0;font-weight:normal;text-align:center;vertical-align:middle;-ms-touch-action:manipulation;touch-action:manipulation;cursor:pointer;background-image:none;border:1px solid transparent;white-space:nowrap;padding:8px 12px;font-size:16px;line-height:1.42857143;border-radius:4px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.btn:focus,.btn:active:focus,.btn.active:focus,.btn.focus,.btn:active.focus,.btn.active.focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.btn:hover,.btn:focus,.btn.focus{color:#333333;text-decoration:none}.btn:active,.btn.active{outline:0;background-image:none;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,0.125);box-shadow:inset 0 3px 5px rgba(0,0,0,0.125)}.btn.disabled,.btn[disabled],fieldset[disabled] .btn{cursor:not-allowed;pointer-events:none;opacity:0.65;filter:alpha(opacity=65);-webkit-box-shadow:none;box-shadow:none}.btn-default{color:#333333;background-color:#ffffff;border-color:#dddddd}.btn-default:hover,.btn-default:focus,.btn-default.focus,.btn-default:active,.btn-default.active,.open>.dropdown-toggle.btn-default{color:#333333;background-color:#e6e6e6;border-color:#bebebe}.btn-default:active,.btn-default.active,.open>.dropdown-toggle.btn-default{background-image:none}.btn-default.disabled,.btn-default[disabled],fieldset[disabled] .btn-default,.btn-default.disabled:hover,.btn-default[disabled]:hover,fieldset[disabled] .btn-default:hover,.btn-default.disabled:focus,.btn-default[disabled]:focus,fieldset[disabled] .btn-default:focus,.btn-default.disabled.focus,.btn-default[disabled].focus,fieldset[disabled] .btn-default.focus,.btn-default.disabled:active,.btn-default[disabled]:active,fieldset[disabled] .btn-default:active,.btn-default.disabled.active,.btn-default[disabled].active,fieldset[disabled] .btn-default.active{background-color:#ffffff;border-color:#dddddd}.btn-default .badge{color:#ffffff;background-color:#333333}.btn-primary{color:#ffffff;background-color:#4582ec;border-color:#4582ec}.btn-primary:hover,.btn-primary:focus,.btn-primary.focus,.btn-primary:active,.btn-primary.active,.open>.dropdown-toggle.btn-primary{color:#ffffff;background-color:#1863e6;border-color:#175fdd}.btn-primary:active,.btn-primary.active,.open>.dropdown-toggle.btn-primary{background-image:none}.btn-primary.disabled,.btn-primary[disabled],fieldset[disabled] .btn-primary,.btn-primary.disabled:hover,.btn-primary[disabled]:hover,fieldset[disabled] .btn-primary:hover,.btn-primary.disabled:focus,.btn-primary[disabled]:focus,fieldset[disabled] .btn-primary:focus,.btn-primary.disabled.focus,.btn-primary[disabled].focus,fieldset[disabled] .btn-primary.focus,.btn-primary.disabled:active,.btn-primary[disabled]:active,fieldset[disabled] .btn-primary:active,.btn-primary.disabled.active,.btn-primary[disabled].active,fieldset[disabled] .btn-primary.active{background-color:#4582ec;border-color:#4582ec}.btn-primary .badge{color:#4582ec;background-color:#ffffff}.btn-success{color:#ffffff;background-color:#3fad46;border-color:#3fad46}.btn-success:hover,.btn-success:focus,.btn-success.focus,.btn-success:active,.btn-success.active,.open>.dropdown-toggle.btn-success{color:#ffffff;background-color:#318837;border-color:#2f8034}.btn-success:active,.btn-success.active,.open>.dropdown-toggle.btn-success{background-image:none}.btn-success.disabled,.btn-success[disabled],fieldset[disabled] .btn-success,.btn-success.disabled:hover,.btn-success[disabled]:hover,fieldset[disabled] .btn-success:hover,.btn-success.disabled:focus,.btn-success[disabled]:focus,fieldset[disabled] .btn-success:focus,.btn-success.disabled.focus,.btn-success[disabled].focus,fieldset[disabled] .btn-success.focus,.btn-success.disabled:active,.btn-success[disabled]:active,fieldset[disabled] .btn-success:active,.btn-success.disabled.active,.btn-success[disabled].active,fieldset[disabled] .btn-success.active{background-color:#3fad46;border-color:#3fad46}.btn-success .badge{color:#3fad46;background-color:#ffffff}.btn-info{color:#ffffff;background-color:#5bc0de;border-color:#5bc0de}.btn-info:hover,.btn-info:focus,.btn-info.focus,.btn-info:active,.btn-info.active,.open>.dropdown-toggle.btn-info{color:#ffffff;background-color:#31b0d5;border-color:#2aabd2}.btn-info:active,.btn-info.active,.open>.dropdown-toggle.btn-info{background-image:none}.btn-info.disabled,.btn-info[disabled],fieldset[disabled] .btn-info,.btn-info.disabled:hover,.btn-info[disabled]:hover,fieldset[disabled] .btn-info:hover,.btn-info.disabled:focus,.btn-info[disabled]:focus,fieldset[disabled] .btn-info:focus,.btn-info.disabled.focus,.btn-info[disabled].focus,fieldset[disabled] .btn-info.focus,.btn-info.disabled:active,.btn-info[disabled]:active,fieldset[disabled] .btn-info:active,.btn-info.disabled.active,.btn-info[disabled].active,fieldset[disabled] .btn-info.active{background-color:#5bc0de;border-color:#5bc0de}.btn-info .badge{color:#5bc0de;background-color:#ffffff}.btn-warning{color:#ffffff;background-color:#f0ad4e;border-color:#f0ad4e}.btn-warning:hover,.btn-warning:focus,.btn-warning.focus,.btn-warning:active,.btn-warning.active,.open>.dropdown-toggle.btn-warning{color:#ffffff;background-color:#ec971f;border-color:#eb9316}.btn-warning:active,.btn-warning.active,.open>.dropdown-toggle.btn-warning{background-image:none}.btn-warning.disabled,.btn-warning[disabled],fieldset[disabled] .btn-warning,.btn-warning.disabled:hover,.btn-warning[disabled]:hover,fieldset[disabled] .btn-warning:hover,.btn-warning.disabled:focus,.btn-warning[disabled]:focus,fieldset[disabled] .btn-warning:focus,.btn-warning.disabled.focus,.btn-warning[disabled].focus,fieldset[disabled] .btn-warning.focus,.btn-warning.disabled:active,.btn-warning[disabled]:active,fieldset[disabled] .btn-warning:active,.btn-warning.disabled.active,.btn-warning[disabled].active,fieldset[disabled] .btn-warning.active{background-color:#f0ad4e;border-color:#f0ad4e}.btn-warning .badge{color:#f0ad4e;background-color:#ffffff}.btn-danger{color:#ffffff;background-color:#d9534f;border-color:#d9534f}.btn-danger:hover,.btn-danger:focus,.btn-danger.focus,.btn-danger:active,.btn-danger.active,.open>.dropdown-toggle.btn-danger{color:#ffffff;background-color:#c9302c;border-color:#c12e2a}.btn-danger:active,.btn-danger.active,.open>.dropdown-toggle.btn-danger{background-image:none}.btn-danger.disabled,.btn-danger[disabled],fieldset[disabled] .btn-danger,.btn-danger.disabled:hover,.btn-danger[disabled]:hover,fieldset[disabled] .btn-danger:hover,.btn-danger.disabled:focus,.btn-danger[disabled]:focus,fieldset[disabled] .btn-danger:focus,.btn-danger.disabled.focus,.btn-danger[disabled].focus,fieldset[disabled] .btn-danger.focus,.btn-danger.disabled:active,.btn-danger[disabled]:active,fieldset[disabled] .btn-danger:active,.btn-danger.disabled.active,.btn-danger[disabled].active,fieldset[disabled] .btn-danger.active{background-color:#d9534f;border-color:#d9534f}.btn-danger .badge{color:#d9534f;background-color:#ffffff}.btn-link{color:#4582ec;font-weight:normal;border-radius:0}.btn-link,.btn-link:active,.btn-link.active,.btn-link[disabled],fieldset[disabled] .btn-link{background-color:transparent;-webkit-box-shadow:none;box-shadow:none}.btn-link,.btn-link:hover,.btn-link:focus,.btn-link:active{border-color:transparent}.btn-link:hover,.btn-link:focus{color:#134fb8;text-decoration:underline;background-color:transparent}.btn-link[disabled]:hover,fieldset[disabled] .btn-link:hover,.btn-link[disabled]:focus,fieldset[disabled] .btn-link:focus{color:#b3b3b3;text-decoration:none}.btn-lg,.btn-group-lg>.btn{padding:14px 16px;font-size:20px;line-height:1.3333333;border-radius:6px}.btn-sm,.btn-group-sm>.btn{padding:5px 10px;font-size:14px;line-height:1.5;border-radius:3px}.btn-xs,.btn-group-xs>.btn{padding:1px 5px;font-size:14px;line-height:1.5;border-radius:3px}.btn-block{display:block;width:100%}.btn-block+.btn-block{margin-top:5px}input[type="submit"].btn-block,input[type="reset"].btn-block,input[type="button"].btn-block{width:100%}.fade{opacity:0;-webkit-transition:opacity 0.15s linear;-o-transition:opacity 0.15s linear;transition:opacity 0.15s linear}.fade.in{opacity:1}.collapse{display:none}.collapse.in{display:block}tr.collapse.in{display:table-row}tbody.collapse.in{display:table-row-group}.collapsing{position:relative;height:0;overflow:hidden;-webkit-transition-property:height, visibility;-o-transition-property:height, visibility;transition-property:height, visibility;-webkit-transition-duration:0.35s;-o-transition-duration:0.35s;transition-duration:0.35s;-webkit-transition-timing-function:ease;-o-transition-timing-function:ease;transition-timing-function:ease}.caret{display:inline-block;width:0;height:0;margin-left:2px;vertical-align:middle;border-top:4px dashed;border-right:4px solid transparent;border-left:4px solid transparent}.dropup,.dropdown{position:relative}.dropdown-toggle:focus{outline:0}.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:160px;padding:5px 0;margin:2px 0 0;list-style:none;font-size:16px;text-align:left;background-color:#ffffff;border:1px solid #cccccc;border:1px solid rgba(0,0,0,0.15);border-radius:4px;-webkit-box-shadow:0 6px 12px rgba(0,0,0,0.175);box-shadow:0 6px 12px rgba(0,0,0,0.175);-webkit-background-clip:padding-box;background-clip:padding-box}.dropdown-menu.pull-right{right:0;left:auto}.dropdown-menu .divider{height:1px;margin:10px 0;overflow:hidden;background-color:#e5e5e5}.dropdown-menu>li>a{display:block;padding:3px 20px;clear:both;font-weight:normal;line-height:1.42857143;color:#333333;white-space:nowrap}.dropdown-menu>li>a:hover,.dropdown-menu>li>a:focus{text-decoration:none;color:#ffffff;background-color:#4582ec}.dropdown-menu>.active>a,.dropdown-menu>.active>a:hover,.dropdown-menu>.active>a:focus{color:#ffffff;text-decoration:none;outline:0;background-color:#4582ec}.dropdown-menu>.disabled>a,.dropdown-menu>.disabled>a:hover,.dropdown-menu>.disabled>a:focus{color:#b3b3b3}.dropdown-menu>.disabled>a:hover,.dropdown-menu>.disabled>a:focus{text-decoration:none;background-color:transparent;background-image:none;filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);cursor:not-allowed}.open>.dropdown-menu{display:block}.open>a{outline:0}.dropdown-menu-right{left:auto;right:0}.dropdown-menu-left{left:0;right:auto}.dropdown-header{display:block;padding:3px 20px;font-size:14px;line-height:1.42857143;color:#b3b3b3;white-space:nowrap}.dropdown-backdrop{position:fixed;left:0;right:0;bottom:0;top:0;z-index:990}.pull-right>.dropdown-menu{right:0;left:auto}.dropup .caret,.navbar-fixed-bottom .dropdown .caret{border-top:0;border-bottom:4px solid;content:""}.dropup .dropdown-menu,.navbar-fixed-bottom .dropdown .dropdown-menu{top:auto;bottom:100%;margin-bottom:2px}@media (min-width:768px){.navbar-right .dropdown-menu{left:auto;right:0}.navbar-right .dropdown-menu-left{left:0;right:auto}}.btn-group,.btn-group-vertical{position:relative;display:inline-block;vertical-align:middle}.btn-group>.btn,.btn-group-vertical>.btn{position:relative;float:left}.btn-group>.btn:hover,.btn-group-vertical>.btn:hover,.btn-group>.btn:focus,.btn-group-vertical>.btn:focus,.btn-group>.btn:active,.btn-group-vertical>.btn:active,.btn-group>.btn.active,.btn-group-vertical>.btn.active{z-index:2}.btn-group .btn+.btn,.btn-group .btn+.btn-group,.btn-group .btn-group+.btn,.btn-group .btn-group+.btn-group{margin-left:-1px}.btn-toolbar{margin-left:-5px}.btn-toolbar .btn-group,.btn-toolbar .input-group{float:left}.btn-toolbar>.btn,.btn-toolbar>.btn-group,.btn-toolbar>.input-group{margin-left:5px}.btn-group>.btn:not(:first-child):not(:last-child):not(.dropdown-toggle){border-radius:0}.btn-group>.btn:first-child{margin-left:0}.btn-group>.btn:first-child:not(:last-child):not(.dropdown-toggle){border-bottom-right-radius:0;border-top-right-radius:0}.btn-group>.btn:last-child:not(:first-child),.btn-group>.dropdown-toggle:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0}.btn-group>.btn-group{float:left}.btn-group>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group>.btn-group:first-child:not(:last-child)>.btn:last-child,.btn-group>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-bottom-right-radius:0;border-top-right-radius:0}.btn-group>.btn-group:last-child:not(:first-child)>.btn:first-child{border-bottom-left-radius:0;border-top-left-radius:0}.btn-group .dropdown-toggle:active,.btn-group.open .dropdown-toggle{outline:0}.btn-group>.btn+.dropdown-toggle{padding-left:8px;padding-right:8px}.btn-group>.btn-lg+.dropdown-toggle{padding-left:12px;padding-right:12px}.btn-group.open .dropdown-toggle{-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,0.125);box-shadow:inset 0 3px 5px rgba(0,0,0,0.125)}.btn-group.open .dropdown-toggle.btn-link{-webkit-box-shadow:none;box-shadow:none}.btn .caret{margin-left:0}.btn-lg .caret{border-width:5px 5px 0;border-bottom-width:0}.dropup .btn-lg .caret{border-width:0 5px 5px}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group,.btn-group-vertical>.btn-group>.btn{display:block;float:none;width:100%;max-width:100%}.btn-group-vertical>.btn-group>.btn{float:none}.btn-group-vertical>.btn+.btn,.btn-group-vertical>.btn+.btn-group,.btn-group-vertical>.btn-group+.btn,.btn-group-vertical>.btn-group+.btn-group{margin-top:-1px;margin-left:0}.btn-group-vertical>.btn:not(:first-child):not(:last-child){border-radius:0}.btn-group-vertical>.btn:first-child:not(:last-child){border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn:last-child:not(:first-child){border-bottom-left-radius:4px;border-top-right-radius:0;border-top-left-radius:0}.btn-group-vertical>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group-vertical>.btn-group:first-child:not(:last-child)>.btn:last-child,.btn-group-vertical>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn-group:last-child:not(:first-child)>.btn:first-child{border-top-right-radius:0;border-top-left-radius:0}.btn-group-justified{display:table;width:100%;table-layout:fixed;border-collapse:separate}.btn-group-justified>.btn,.btn-group-justified>.btn-group{float:none;display:table-cell;width:1%}.btn-group-justified>.btn-group .btn{width:100%}.btn-group-justified>.btn-group .dropdown-menu{left:auto}[data-toggle="buttons"]>.btn input[type="radio"],[data-toggle="buttons"]>.btn-group>.btn input[type="radio"],[data-toggle="buttons"]>.btn input[type="checkbox"],[data-toggle="buttons"]>.btn-group>.btn input[type="checkbox"]{position:absolute;clip:rect(0, 0, 0, 0);pointer-events:none}.input-group{position:relative;display:table;border-collapse:separate}.input-group[class*="col-"]{float:none;padding-left:0;padding-right:0}.input-group .form-control{position:relative;z-index:2;float:left;width:100%;margin-bottom:0}.input-group-lg>.form-control,.input-group-lg>.input-group-addon,.input-group-lg>.input-group-btn>.btn{height:57px;padding:14px 16px;font-size:20px;line-height:1.3333333;border-radius:6px}select.input-group-lg>.form-control,select.input-group-lg>.input-group-addon,select.input-group-lg>.input-group-btn>.btn{height:57px;line-height:57px}textarea.input-group-lg>.form-control,textarea.input-group-lg>.input-group-addon,textarea.input-group-lg>.input-group-btn>.btn,select[multiple].input-group-lg>.form-control,select[multiple].input-group-lg>.input-group-addon,select[multiple].input-group-lg>.input-group-btn>.btn{height:auto}.input-group-sm>.form-control,.input-group-sm>.input-group-addon,.input-group-sm>.input-group-btn>.btn{height:33px;padding:5px 10px;font-size:14px;line-height:1.5;border-radius:3px}select.input-group-sm>.form-control,select.input-group-sm>.input-group-addon,select.input-group-sm>.input-group-btn>.btn{height:33px;line-height:33px}textarea.input-group-sm>.form-control,textarea.input-group-sm>.input-group-addon,textarea.input-group-sm>.input-group-btn>.btn,select[multiple].input-group-sm>.form-control,select[multiple].input-group-sm>.input-group-addon,select[multiple].input-group-sm>.input-group-btn>.btn{height:auto}.input-group-addon,.input-group-btn,.input-group .form-control{display:table-cell}.input-group-addon:not(:first-child):not(:last-child),.input-group-btn:not(:first-child):not(:last-child),.input-group .form-control:not(:first-child):not(:last-child){border-radius:0}.input-group-addon,.input-group-btn{width:1%;white-space:nowrap;vertical-align:middle}.input-group-addon{padding:8px 12px;font-size:16px;font-weight:normal;line-height:1;color:#333333;text-align:center;background-color:#eeeeee;border:1px solid #dddddd;border-radius:4px}.input-group-addon.input-sm{padding:5px 10px;font-size:14px;border-radius:3px}.input-group-addon.input-lg{padding:14px 16px;font-size:20px;border-radius:6px}.input-group-addon input[type="radio"],.input-group-addon input[type="checkbox"]{margin-top:0}.input-group .form-control:first-child,.input-group-addon:first-child,.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group>.btn,.input-group-btn:first-child>.dropdown-toggle,.input-group-btn:last-child>.btn:not(:last-child):not(.dropdown-toggle),.input-group-btn:last-child>.btn-group:not(:last-child)>.btn{border-bottom-right-radius:0;border-top-right-radius:0}.input-group-addon:first-child{border-right:0}.input-group .form-control:last-child,.input-group-addon:last-child,.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group>.btn,.input-group-btn:last-child>.dropdown-toggle,.input-group-btn:first-child>.btn:not(:first-child),.input-group-btn:first-child>.btn-group:not(:first-child)>.btn{border-bottom-left-radius:0;border-top-left-radius:0}.input-group-addon:last-child{border-left:0}.input-group-btn{position:relative;font-size:0;white-space:nowrap}.input-group-btn>.btn{position:relative}.input-group-btn>.btn+.btn{margin-left:-1px}.input-group-btn>.btn:hover,.input-group-btn>.btn:focus,.input-group-btn>.btn:active{z-index:2}.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group{margin-right:-1px}.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group{margin-left:-1px}.nav{margin-bottom:0;padding-left:0;list-style:none}.nav>li{position:relative;display:block}.nav>li>a{position:relative;display:block;padding:10px 15px}.nav>li>a:hover,.nav>li>a:focus{text-decoration:none;background-color:#eeeeee}.nav>li.disabled>a{color:#b3b3b3}.nav>li.disabled>a:hover,.nav>li.disabled>a:focus{color:#b3b3b3;text-decoration:none;background-color:transparent;cursor:not-allowed}.nav .open>a,.nav .open>a:hover,.nav .open>a:focus{background-color:#eeeeee;border-color:#4582ec}.nav .nav-divider{height:1px;margin:10px 0;overflow:hidden;background-color:#e5e5e5}.nav>li>a>img{max-width:none}.nav-tabs{border-bottom:1px solid #dddddd}.nav-tabs>li{float:left;margin-bottom:-1px}.nav-tabs>li>a{margin-right:2px;line-height:1.42857143;border:1px solid transparent;border-radius:4px 4px 0 0}.nav-tabs>li>a:hover{border-color:#eeeeee #eeeeee #dddddd}.nav-tabs>li.active>a,.nav-tabs>li.active>a:hover,.nav-tabs>li.active>a:focus{color:#555555;background-color:#ffffff;border:1px solid #dddddd;border-bottom-color:transparent;cursor:default}.nav-tabs.nav-justified{width:100%;border-bottom:0}.nav-tabs.nav-justified>li{float:none}.nav-tabs.nav-justified>li>a{text-align:center;margin-bottom:5px}.nav-tabs.nav-justified>.dropdown .dropdown-menu{top:auto;left:auto}@media (min-width:768px){.nav-tabs.nav-justified>li{display:table-cell;width:1%}.nav-tabs.nav-justified>li>a{margin-bottom:0}}.nav-tabs.nav-justified>li>a{margin-right:0;border-radius:4px}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:hover,.nav-tabs.nav-justified>.active>a:focus{border:1px solid #dddddd}@media (min-width:768px){.nav-tabs.nav-justified>li>a{border-bottom:1px solid #dddddd;border-radius:4px 4px 0 0}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:hover,.nav-tabs.nav-justified>.active>a:focus{border-bottom-color:#ffffff}}.nav-pills>li{float:left}.nav-pills>li>a{border-radius:4px}.nav-pills>li+li{margin-left:2px}.nav-pills>li.active>a,.nav-pills>li.active>a:hover,.nav-pills>li.active>a:focus{color:#ffffff;background-color:#4582ec}.nav-stacked>li{float:none}.nav-stacked>li+li{margin-top:2px;margin-left:0}.nav-justified{width:100%}.nav-justified>li{float:none}.nav-justified>li>a{text-align:center;margin-bottom:5px}.nav-justified>.dropdown .dropdown-menu{top:auto;left:auto}@media (min-width:768px){.nav-justified>li{display:table-cell;width:1%}.nav-justified>li>a{margin-bottom:0}}.nav-tabs-justified{border-bottom:0}.nav-tabs-justified>li>a{margin-right:0;border-radius:4px}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:hover,.nav-tabs-justified>.active>a:focus{border:1px solid #dddddd}@media (min-width:768px){.nav-tabs-justified>li>a{border-bottom:1px solid #dddddd;border-radius:4px 4px 0 0}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:hover,.nav-tabs-justified>.active>a:focus{border-bottom-color:#ffffff}}.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}.nav-tabs .dropdown-menu{margin-top:-1px;border-top-right-radius:0;border-top-left-radius:0}.navbar{position:relative;min-height:65px;margin-bottom:22px;border:1px solid transparent}@media (min-width:768px){.navbar{border-radius:4px}}@media (min-width:768px){.navbar-header{float:left}}.navbar-collapse{overflow-x:visible;padding-right:15px;padding-left:15px;border-top:1px solid transparent;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,0.1);box-shadow:inset 0 1px 0 rgba(255,255,255,0.1);-webkit-overflow-scrolling:touch}.navbar-collapse.in{overflow-y:auto}@media (min-width:768px){.navbar-collapse{width:auto;border-top:0;-webkit-box-shadow:none;box-shadow:none}.navbar-collapse.collapse{display:block !important;height:auto !important;padding-bottom:0;overflow:visible !important}.navbar-collapse.in{overflow-y:visible}.navbar-fixed-top .navbar-collapse,.navbar-static-top .navbar-collapse,.navbar-fixed-bottom .navbar-collapse{padding-left:0;padding-right:0}}.navbar-fixed-top .navbar-collapse,.navbar-fixed-bottom .navbar-collapse{max-height:340px}@media (max-device-width:480px) and (orientation:landscape){.navbar-fixed-top .navbar-collapse,.navbar-fixed-bottom .navbar-collapse{max-height:200px}}.container>.navbar-header,.container-fluid>.navbar-header,.container>.navbar-collapse,.container-fluid>.navbar-collapse{margin-right:-15px;margin-left:-15px}@media (min-width:768px){.container>.navbar-header,.container-fluid>.navbar-header,.container>.navbar-collapse,.container-fluid>.navbar-collapse{margin-right:0;margin-left:0}}.navbar-static-top{z-index:1000;border-width:0 0 1px}@media (min-width:768px){.navbar-static-top{border-radius:0}}.navbar-fixed-top,.navbar-fixed-bottom{position:fixed;right:0;left:0;z-index:1030}@media (min-width:768px){.navbar-fixed-top,.navbar-fixed-bottom{border-radius:0}}.navbar-fixed-top{top:0;border-width:0 0 1px}.navbar-fixed-bottom{bottom:0;margin-bottom:0;border-width:1px 0 0}.navbar-brand{float:left;padding:21.5px 15px;font-size:20px;line-height:22px;height:65px}.navbar-brand:hover,.navbar-brand:focus{text-decoration:none}.navbar-brand>img{display:block}@media (min-width:768px){.navbar>.container .navbar-brand,.navbar>.container-fluid .navbar-brand{margin-left:-15px}}.navbar-toggle{position:relative;float:right;margin-right:15px;padding:9px 10px;margin-top:15.5px;margin-bottom:15.5px;background-color:transparent;background-image:none;border:1px solid transparent;border-radius:4px}.navbar-toggle:focus{outline:0}.navbar-toggle .icon-bar{display:block;width:22px;height:2px;border-radius:1px}.navbar-toggle .icon-bar+.icon-bar{margin-top:4px}@media (min-width:768px){.navbar-toggle{display:none}}.navbar-nav{margin:10.75px -15px}.navbar-nav>li>a{padding-top:10px;padding-bottom:10px;line-height:22px}@media (max-width:767px){.navbar-nav .open .dropdown-menu{position:static;float:none;width:auto;margin-top:0;background-color:transparent;border:0;-webkit-box-shadow:none;box-shadow:none}.navbar-nav .open .dropdown-menu>li>a,.navbar-nav .open .dropdown-menu .dropdown-header{padding:5px 15px 5px 25px}.navbar-nav .open .dropdown-menu>li>a{line-height:22px}.navbar-nav .open .dropdown-menu>li>a:hover,.navbar-nav .open .dropdown-menu>li>a:focus{background-image:none}}@media (min-width:768px){.navbar-nav{float:left;margin:0}.navbar-nav>li{float:left}.navbar-nav>li>a{padding-top:21.5px;padding-bottom:21.5px}}.navbar-form{margin-left:-15px;margin-right:-15px;padding:10px 15px;border-top:1px solid transparent;border-bottom:1px solid transparent;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,0.1),0 1px 0 rgba(255,255,255,0.1);box-shadow:inset 0 1px 0 rgba(255,255,255,0.1),0 1px 0 rgba(255,255,255,0.1);margin-top:12.5px;margin-bottom:12.5px}@media (min-width:768px){.navbar-form .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.navbar-form .form-control{display:inline-block;width:auto;vertical-align:middle}.navbar-form .form-control-static{display:inline-block}.navbar-form .input-group{display:inline-table;vertical-align:middle}.navbar-form .input-group .input-group-addon,.navbar-form .input-group .input-group-btn,.navbar-form .input-group .form-control{width:auto}.navbar-form .input-group>.form-control{width:100%}.navbar-form .control-label{margin-bottom:0;vertical-align:middle}.navbar-form .radio,.navbar-form .checkbox{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle}.navbar-form .radio label,.navbar-form .checkbox label{padding-left:0}.navbar-form .radio input[type="radio"],.navbar-form .checkbox input[type="checkbox"]{position:relative;margin-left:0}.navbar-form .has-feedback .form-control-feedback{top:0}}@media (max-width:767px){.navbar-form .form-group{margin-bottom:5px}.navbar-form .form-group:last-child{margin-bottom:0}}@media (min-width:768px){.navbar-form{width:auto;border:0;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;-webkit-box-shadow:none;box-shadow:none}}.navbar-nav>li>.dropdown-menu{margin-top:0;border-top-right-radius:0;border-top-left-radius:0}.navbar-fixed-bottom .navbar-nav>li>.dropdown-menu{margin-bottom:0;border-top-right-radius:4px;border-top-left-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.navbar-btn{margin-top:12.5px;margin-bottom:12.5px}.navbar-btn.btn-sm{margin-top:16px;margin-bottom:16px}.navbar-btn.btn-xs{margin-top:21.5px;margin-bottom:21.5px}.navbar-text{margin-top:21.5px;margin-bottom:21.5px}@media (min-width:768px){.navbar-text{float:left;margin-left:15px;margin-right:15px}}@media (min-width:768px){.navbar-left{float:left !important}.navbar-right{float:right !important;margin-right:-15px}.navbar-right~.navbar-right{margin-right:0}}.navbar-default{background-color:#ffffff;border-color:#dddddd}.navbar-default .navbar-brand{color:#4582ec}.navbar-default .navbar-brand:hover,.navbar-default .navbar-brand:focus{color:#4582ec;background-color:transparent}.navbar-default .navbar-text{color:#333333}.navbar-default .navbar-nav>li>a{color:#4582ec}.navbar-default .navbar-nav>li>a:hover,.navbar-default .navbar-nav>li>a:focus{color:#4582ec;background-color:transparent}.navbar-default .navbar-nav>.active>a,.navbar-default .navbar-nav>.active>a:hover,.navbar-default .navbar-nav>.active>a:focus{color:#4582ec;background-color:transparent}.navbar-default .navbar-nav>.disabled>a,.navbar-default .navbar-nav>.disabled>a:hover,.navbar-default .navbar-nav>.disabled>a:focus{color:#333333;background-color:transparent}.navbar-default .navbar-toggle{border-color:#dddddd}.navbar-default .navbar-toggle:hover,.navbar-default .navbar-toggle:focus{background-color:#dddddd}.navbar-default .navbar-toggle .icon-bar{background-color:#cccccc}.navbar-default .navbar-collapse,.navbar-default .navbar-form{border-color:#dddddd}.navbar-default .navbar-nav>.open>a,.navbar-default .navbar-nav>.open>a:hover,.navbar-default .navbar-nav>.open>a:focus{background-color:transparent;color:#4582ec}@media (max-width:767px){.navbar-default .navbar-nav .open .dropdown-menu>li>a{color:#4582ec}.navbar-default .navbar-nav .open .dropdown-menu>li>a:hover,.navbar-default .navbar-nav .open .dropdown-menu>li>a:focus{color:#4582ec;background-color:transparent}.navbar-default .navbar-nav .open .dropdown-menu>.active>a,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:hover,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:focus{color:#4582ec;background-color:transparent}.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:hover,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:focus{color:#333333;background-color:transparent}}.navbar-default .navbar-link{color:#4582ec}.navbar-default .navbar-link:hover{color:#4582ec}.navbar-default .btn-link{color:#4582ec}.navbar-default .btn-link:hover,.navbar-default .btn-link:focus{color:#4582ec}.navbar-default .btn-link[disabled]:hover,fieldset[disabled] .navbar-default .btn-link:hover,.navbar-default .btn-link[disabled]:focus,fieldset[disabled] .navbar-default .btn-link:focus{color:#333333}.navbar-inverse{background-color:#ffffff;border-color:#dddddd}.navbar-inverse .navbar-brand{color:#333333}.navbar-inverse .navbar-brand:hover,.navbar-inverse .navbar-brand:focus{color:#333333;background-color:transparent}.navbar-inverse .navbar-text{color:#333333}.navbar-inverse .navbar-nav>li>a{color:#333333}.navbar-inverse .navbar-nav>li>a:hover,.navbar-inverse .navbar-nav>li>a:focus{color:#333333;background-color:transparent}.navbar-inverse .navbar-nav>.active>a,.navbar-inverse .navbar-nav>.active>a:hover,.navbar-inverse .navbar-nav>.active>a:focus{color:#333333;background-color:transparent}.navbar-inverse .navbar-nav>.disabled>a,.navbar-inverse .navbar-nav>.disabled>a:hover,.navbar-inverse .navbar-nav>.disabled>a:focus{color:#cccccc;background-color:transparent}.navbar-inverse .navbar-toggle{border-color:#dddddd}.navbar-inverse .navbar-toggle:hover,.navbar-inverse .navbar-toggle:focus{background-color:#dddddd}.navbar-inverse .navbar-toggle .icon-bar{background-color:#cccccc}.navbar-inverse .navbar-collapse,.navbar-inverse .navbar-form{border-color:#ededed}.navbar-inverse .navbar-nav>.open>a,.navbar-inverse .navbar-nav>.open>a:hover,.navbar-inverse .navbar-nav>.open>a:focus{background-color:transparent;color:#333333}@media (max-width:767px){.navbar-inverse .navbar-nav .open .dropdown-menu>.dropdown-header{border-color:#dddddd}.navbar-inverse .navbar-nav .open .dropdown-menu .divider{background-color:#dddddd}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a{color:#333333}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:hover,.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:focus{color:#333333;background-color:transparent}.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:hover,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:focus{color:#333333;background-color:transparent}.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:hover,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:focus{color:#cccccc;background-color:transparent}}.navbar-inverse .navbar-link{color:#333333}.navbar-inverse .navbar-link:hover{color:#333333}.navbar-inverse .btn-link{color:#333333}.navbar-inverse .btn-link:hover,.navbar-inverse .btn-link:focus{color:#333333}.navbar-inverse .btn-link[disabled]:hover,fieldset[disabled] .navbar-inverse .btn-link:hover,.navbar-inverse .btn-link[disabled]:focus,fieldset[disabled] .navbar-inverse .btn-link:focus{color:#cccccc}.breadcrumb{padding:8px 15px;margin-bottom:22px;list-style:none;background-color:#f5f5f5;border-radius:4px}.breadcrumb>li{display:inline-block}.breadcrumb>li+li:before{content:"/\00a0";padding:0 5px;color:#cccccc}.breadcrumb>.active{color:#b3b3b3}.pagination{display:inline-block;padding-left:0;margin:22px 0;border-radius:4px}.pagination>li{display:inline}.pagination>li>a,.pagination>li>span{position:relative;float:left;padding:8px 12px;line-height:1.42857143;text-decoration:none;color:#333333;background-color:#ffffff;border:1px solid #dddddd;margin-left:-1px}.pagination>li:first-child>a,.pagination>li:first-child>span{margin-left:0;border-bottom-left-radius:4px;border-top-left-radius:4px}.pagination>li:last-child>a,.pagination>li:last-child>span{border-bottom-right-radius:4px;border-top-right-radius:4px}.pagination>li>a:hover,.pagination>li>span:hover,.pagination>li>a:focus,.pagination>li>span:focus{color:#ffffff;background-color:#4582ec;border-color:#4582ec}.pagination>.active>a,.pagination>.active>span,.pagination>.active>a:hover,.pagination>.active>span:hover,.pagination>.active>a:focus,.pagination>.active>span:focus{z-index:2;color:#ffffff;background-color:#4582ec;border-color:#4582ec;cursor:default}.pagination>.disabled>span,.pagination>.disabled>span:hover,.pagination>.disabled>span:focus,.pagination>.disabled>a,.pagination>.disabled>a:hover,.pagination>.disabled>a:focus{color:#b3b3b3;background-color:#ffffff;border-color:#dddddd;cursor:not-allowed}.pagination-lg>li>a,.pagination-lg>li>span{padding:14px 16px;font-size:20px}.pagination-lg>li:first-child>a,.pagination-lg>li:first-child>span{border-bottom-left-radius:6px;border-top-left-radius:6px}.pagination-lg>li:last-child>a,.pagination-lg>li:last-child>span{border-bottom-right-radius:6px;border-top-right-radius:6px}.pagination-sm>li>a,.pagination-sm>li>span{padding:5px 10px;font-size:14px}.pagination-sm>li:first-child>a,.pagination-sm>li:first-child>span{border-bottom-left-radius:3px;border-top-left-radius:3px}.pagination-sm>li:last-child>a,.pagination-sm>li:last-child>span{border-bottom-right-radius:3px;border-top-right-radius:3px}.pager{padding-left:0;margin:22px 0;list-style:none;text-align:center}.pager li{display:inline}.pager li>a,.pager li>span{display:inline-block;padding:5px 14px;background-color:#ffffff;border:1px solid #dddddd;border-radius:15px}.pager li>a:hover,.pager li>a:focus{text-decoration:none;background-color:#4582ec}.pager .next>a,.pager .next>span{float:right}.pager .previous>a,.pager .previous>span{float:left}.pager .disabled>a,.pager .disabled>a:hover,.pager .disabled>a:focus,.pager .disabled>span{color:#b3b3b3;background-color:#ffffff;cursor:not-allowed}.label{display:inline;padding:.2em .6em .3em;font-size:75%;font-weight:bold;line-height:1;color:#ffffff;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25em}a.label:hover,a.label:focus{color:#ffffff;text-decoration:none;cursor:pointer}.label:empty{display:none}.btn .label{position:relative;top:-1px}.label-default{background-color:#ffffff}.label-default[href]:hover,.label-default[href]:focus{background-color:#e6e6e6}.label-primary{background-color:#4582ec}.label-primary[href]:hover,.label-primary[href]:focus{background-color:#1863e6}.label-success{background-color:#3fad46}.label-success[href]:hover,.label-success[href]:focus{background-color:#318837}.label-info{background-color:#5bc0de}.label-info[href]:hover,.label-info[href]:focus{background-color:#31b0d5}.label-warning{background-color:#f0ad4e}.label-warning[href]:hover,.label-warning[href]:focus{background-color:#ec971f}.label-danger{background-color:#d9534f}.label-danger[href]:hover,.label-danger[href]:focus{background-color:#c9302c}.badge{display:inline-block;min-width:10px;padding:3px 7px;font-size:14px;font-weight:bold;color:#ffffff;line-height:1;vertical-align:baseline;white-space:nowrap;text-align:center;background-color:#4582ec;border-radius:10px}.badge:empty{display:none}.btn .badge{position:relative;top:-1px}.btn-xs .badge,.btn-group-xs>.btn .badge{top:0;padding:1px 5px}a.badge:hover,a.badge:focus{color:#ffffff;text-decoration:none;cursor:pointer}.list-group-item.active>.badge,.nav-pills>.active>a>.badge{color:#4582ec;background-color:#ffffff}.list-group-item>.badge{float:right}.list-group-item>.badge+.badge{margin-right:5px}.nav-pills>li>a>.badge{margin-left:3px}.jumbotron{padding:30px 15px;margin-bottom:30px;color:inherit;background-color:#f7f7f7}.jumbotron h1,.jumbotron .h1{color:inherit}.jumbotron p{margin-bottom:15px;font-size:24px;font-weight:200}.jumbotron>hr{border-top-color:#dedede}.container .jumbotron,.container-fluid .jumbotron{border-radius:6px}.jumbotron .container{max-width:100%}@media screen and (min-width:768px){.jumbotron{padding:48px 0}.container .jumbotron,.container-fluid .jumbotron{padding-left:60px;padding-right:60px}.jumbotron h1,.jumbotron .h1{font-size:72px}}.thumbnail{display:block;padding:4px;margin-bottom:22px;line-height:1.42857143;background-color:#ffffff;border:1px solid #dddddd;border-radius:4px;-webkit-transition:border .2s ease-in-out;-o-transition:border .2s ease-in-out;transition:border .2s ease-in-out}.thumbnail>img,.thumbnail a>img{margin-left:auto;margin-right:auto}a.thumbnail:hover,a.thumbnail:focus,a.thumbnail.active{border-color:#4582ec}.thumbnail .caption{padding:9px;color:#333333}.alert{padding:15px;margin-bottom:22px;border:1px solid transparent;border-radius:4px}.alert h4{margin-top:0;color:inherit}.alert .alert-link{font-weight:bold}.alert>p,.alert>ul{margin-bottom:0}.alert>p+p{margin-top:5px}.alert-dismissable,.alert-dismissible{padding-right:35px}.alert-dismissable .close,.alert-dismissible .close{position:relative;top:-2px;right:-21px;color:inherit}.alert-success{background-color:#3fad46;border-color:#3fad46;color:#ffffff}.alert-success hr{border-top-color:#389a3e}.alert-success .alert-link{color:#e6e6e6}.alert-info{background-color:#5bc0de;border-color:#5bc0de;color:#ffffff}.alert-info hr{border-top-color:#46b8da}.alert-info .alert-link{color:#e6e6e6}.alert-warning{background-color:#f0ad4e;border-color:#f0ad4e;color:#ffffff}.alert-warning hr{border-top-color:#eea236}.alert-warning .alert-link{color:#e6e6e6}.alert-danger{background-color:#d9534f;border-color:#d9534f;color:#ffffff}.alert-danger hr{border-top-color:#d43f3a}.alert-danger .alert-link{color:#e6e6e6}@-webkit-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@-o-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}.progress{overflow:hidden;height:22px;margin-bottom:22px;background-color:#f5f5f5;border-radius:4px;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,0.1);box-shadow:inset 0 1px 2px rgba(0,0,0,0.1)}.progress-bar{float:left;width:0%;height:100%;font-size:14px;line-height:22px;color:#ffffff;text-align:center;background-color:#4582ec;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,0.15);box-shadow:inset 0 -1px 0 rgba(0,0,0,0.15);-webkit-transition:width 0.6s ease;-o-transition:width 0.6s ease;transition:width 0.6s ease}.progress-striped .progress-bar,.progress-bar-striped{background-image:-webkit-linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent);background-image:-o-linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent);background-image:linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent);-webkit-background-size:40px 40px;background-size:40px 40px}.progress.active .progress-bar,.progress-bar.active{-webkit-animation:progress-bar-stripes 2s linear infinite;-o-animation:progress-bar-stripes 2s linear infinite;animation:progress-bar-stripes 2s linear infinite}.progress-bar-success{background-color:#3fad46}.progress-striped .progress-bar-success{background-image:-webkit-linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent);background-image:-o-linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent);background-image:linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent)}.progress-bar-info{background-color:#5bc0de}.progress-striped .progress-bar-info{background-image:-webkit-linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent);background-image:-o-linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent);background-image:linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent)}.progress-bar-warning{background-color:#f0ad4e}.progress-striped .progress-bar-warning{background-image:-webkit-linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent);background-image:-o-linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent);background-image:linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent)}.progress-bar-danger{background-color:#d9534f}.progress-striped .progress-bar-danger{background-image:-webkit-linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent);background-image:-o-linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent);background-image:linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent)}.media{margin-top:15px}.media:first-child{margin-top:0}.media,.media-body{zoom:1;overflow:hidden}.media-body{width:10000px}.media-object{display:block}.media-right,.media>.pull-right{padding-left:10px}.media-left,.media>.pull-left{padding-right:10px}.media-left,.media-right,.media-body{display:table-cell;vertical-align:top}.media-middle{vertical-align:middle}.media-bottom{vertical-align:bottom}.media-heading{margin-top:0;margin-bottom:5px}.media-list{padding-left:0;list-style:none}.list-group{margin-bottom:20px;padding-left:0}.list-group-item{position:relative;display:block;padding:10px 15px;margin-bottom:-1px;background-color:#ffffff;border:1px solid #dddddd}.list-group-item:first-child{border-top-right-radius:4px;border-top-left-radius:4px}.list-group-item:last-child{margin-bottom:0;border-bottom-right-radius:4px;border-bottom-left-radius:4px}a.list-group-item{color:#555555}a.list-group-item .list-group-item-heading{color:#333333}a.list-group-item:hover,a.list-group-item:focus{text-decoration:none;color:#555555;background-color:#f5f5f5}.list-group-item.disabled,.list-group-item.disabled:hover,.list-group-item.disabled:focus{background-color:#eeeeee;color:#b3b3b3;cursor:not-allowed}.list-group-item.disabled .list-group-item-heading,.list-group-item.disabled:hover .list-group-item-heading,.list-group-item.disabled:focus .list-group-item-heading{color:inherit}.list-group-item.disabled .list-group-item-text,.list-group-item.disabled:hover .list-group-item-text,.list-group-item.disabled:focus .list-group-item-text{color:#b3b3b3}.list-group-item.active,.list-group-item.active:hover,.list-group-item.active:focus{z-index:2;color:#ffffff;background-color:#4582ec;border-color:#4582ec}.list-group-item.active .list-group-item-heading,.list-group-item.active:hover .list-group-item-heading,.list-group-item.active:focus .list-group-item-heading,.list-group-item.active .list-group-item-heading>small,.list-group-item.active:hover .list-group-item-heading>small,.list-group-item.active:focus .list-group-item-heading>small,.list-group-item.active .list-group-item-heading>.small,.list-group-item.active:hover .list-group-item-heading>.small,.list-group-item.active:focus .list-group-item-heading>.small{color:inherit}.list-group-item.active .list-group-item-text,.list-group-item.active:hover .list-group-item-text,.list-group-item.active:focus .list-group-item-text{color:#fefeff}.list-group-item-success{color:#3fad46;background-color:#dff0d8}a.list-group-item-success{color:#3fad46}a.list-group-item-success .list-group-item-heading{color:inherit}a.list-group-item-success:hover,a.list-group-item-success:focus{color:#3fad46;background-color:#d0e9c6}a.list-group-item-success.active,a.list-group-item-success.active:hover,a.list-group-item-success.active:focus{color:#fff;background-color:#3fad46;border-color:#3fad46}.list-group-item-info{color:#5bc0de;background-color:#d9edf7}a.list-group-item-info{color:#5bc0de}a.list-group-item-info .list-group-item-heading{color:inherit}a.list-group-item-info:hover,a.list-group-item-info:focus{color:#5bc0de;background-color:#c4e3f3}a.list-group-item-info.active,a.list-group-item-info.active:hover,a.list-group-item-info.active:focus{color:#fff;background-color:#5bc0de;border-color:#5bc0de}.list-group-item-warning{color:#f0ad4e;background-color:#fcf8e3}a.list-group-item-warning{color:#f0ad4e}a.list-group-item-warning .list-group-item-heading{color:inherit}a.list-group-item-warning:hover,a.list-group-item-warning:focus{color:#f0ad4e;background-color:#faf2cc}a.list-group-item-warning.active,a.list-group-item-warning.active:hover,a.list-group-item-warning.active:focus{color:#fff;background-color:#f0ad4e;border-color:#f0ad4e}.list-group-item-danger{color:#d9534f;background-color:#f2dede}a.list-group-item-danger{color:#d9534f}a.list-group-item-danger .list-group-item-heading{color:inherit}a.list-group-item-danger:hover,a.list-group-item-danger:focus{color:#d9534f;background-color:#ebcccc}a.list-group-item-danger.active,a.list-group-item-danger.active:hover,a.list-group-item-danger.active:focus{color:#fff;background-color:#d9534f;border-color:#d9534f}.list-group-item-heading{margin-top:0;margin-bottom:5px}.list-group-item-text{margin-bottom:0;line-height:1.3}.panel{margin-bottom:22px;background-color:#ffffff;border:1px solid transparent;border-radius:4px;-webkit-box-shadow:0 1px 1px rgba(0,0,0,0.05);box-shadow:0 1px 1px rgba(0,0,0,0.05)}.panel-body{padding:15px}.panel-heading{padding:10px 15px;border-bottom:1px solid transparent;border-top-right-radius:3px;border-top-left-radius:3px}.panel-heading>.dropdown .dropdown-toggle{color:inherit}.panel-title{margin-top:0;margin-bottom:0;font-size:18px;color:inherit}.panel-title>a,.panel-title>small,.panel-title>.small,.panel-title>small>a,.panel-title>.small>a{color:inherit}.panel-footer{padding:10px 15px;background-color:#ffffff;border-top:1px solid #dddddd;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.list-group,.panel>.panel-collapse>.list-group{margin-bottom:0}.panel>.list-group .list-group-item,.panel>.panel-collapse>.list-group .list-group-item{border-width:1px 0;border-radius:0}.panel>.list-group:first-child .list-group-item:first-child,.panel>.panel-collapse>.list-group:first-child .list-group-item:first-child{border-top:0;border-top-right-radius:3px;border-top-left-radius:3px}.panel>.list-group:last-child .list-group-item:last-child,.panel>.panel-collapse>.list-group:last-child .list-group-item:last-child{border-bottom:0;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel-heading+.list-group .list-group-item:first-child{border-top-width:0}.list-group+.panel-footer{border-top-width:0}.panel>.table,.panel>.table-responsive>.table,.panel>.panel-collapse>.table{margin-bottom:0}.panel>.table caption,.panel>.table-responsive>.table caption,.panel>.panel-collapse>.table caption{padding-left:15px;padding-right:15px}.panel>.table:first-child,.panel>.table-responsive:first-child>.table:first-child{border-top-right-radius:3px;border-top-left-radius:3px}.panel>.table:first-child>thead:first-child>tr:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child{border-top-left-radius:3px;border-top-right-radius:3px}.panel>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table:first-child>thead:first-child>tr:first-child th:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:first-child{border-top-left-radius:3px}.panel>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table:first-child>thead:first-child>tr:first-child th:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:last-child{border-top-right-radius:3px}.panel>.table:last-child,.panel>.table-responsive:last-child>.table:last-child{border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.table:last-child>tbody:last-child>tr:last-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child{border-bottom-left-radius:3px;border-bottom-right-radius:3px}.panel>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:first-child{border-bottom-left-radius:3px}.panel>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:last-child{border-bottom-right-radius:3px}.panel>.panel-body+.table,.panel>.panel-body+.table-responsive,.panel>.table+.panel-body,.panel>.table-responsive+.panel-body{border-top:1px solid #dddddd}.panel>.table>tbody:first-child>tr:first-child th,.panel>.table>tbody:first-child>tr:first-child td{border-top:0}.panel>.table-bordered,.panel>.table-responsive>.table-bordered{border:0}.panel>.table-bordered>thead>tr>th:first-child,.panel>.table-responsive>.table-bordered>thead>tr>th:first-child,.panel>.table-bordered>tbody>tr>th:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:first-child,.panel>.table-bordered>tfoot>tr>th:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:first-child,.panel>.table-bordered>thead>tr>td:first-child,.panel>.table-responsive>.table-bordered>thead>tr>td:first-child,.panel>.table-bordered>tbody>tr>td:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:first-child,.panel>.table-bordered>tfoot>tr>td:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:first-child{border-left:0}.panel>.table-bordered>thead>tr>th:last-child,.panel>.table-responsive>.table-bordered>thead>tr>th:last-child,.panel>.table-bordered>tbody>tr>th:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:last-child,.panel>.table-bordered>tfoot>tr>th:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:last-child,.panel>.table-bordered>thead>tr>td:last-child,.panel>.table-responsive>.table-bordered>thead>tr>td:last-child,.panel>.table-bordered>tbody>tr>td:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:last-child,.panel>.table-bordered>tfoot>tr>td:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:last-child{border-right:0}.panel>.table-bordered>thead>tr:first-child>td,.panel>.table-responsive>.table-bordered>thead>tr:first-child>td,.panel>.table-bordered>tbody>tr:first-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>td,.panel>.table-bordered>thead>tr:first-child>th,.panel>.table-responsive>.table-bordered>thead>tr:first-child>th,.panel>.table-bordered>tbody>tr:first-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>th{border-bottom:0}.panel>.table-bordered>tbody>tr:last-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>td,.panel>.table-bordered>tfoot>tr:last-child>td,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>td,.panel>.table-bordered>tbody>tr:last-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>th,.panel>.table-bordered>tfoot>tr:last-child>th,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>th{border-bottom:0}.panel>.table-responsive{border:0;margin-bottom:0}.panel-group{margin-bottom:22px}.panel-group .panel{margin-bottom:0;border-radius:4px}.panel-group .panel+.panel{margin-top:5px}.panel-group .panel-heading{border-bottom:0}.panel-group .panel-heading+.panel-collapse>.panel-body,.panel-group .panel-heading+.panel-collapse>.list-group{border-top:1px solid #dddddd}.panel-group .panel-footer{border-top:0}.panel-group .panel-footer+.panel-collapse .panel-body{border-bottom:1px solid #dddddd}.panel-default{border-color:#dddddd}.panel-default>.panel-heading{color:#333333;background-color:#f5f5f5;border-color:#dddddd}.panel-default>.panel-heading+.panel-collapse>.panel-body{border-top-color:#dddddd}.panel-default>.panel-heading .badge{color:#f5f5f5;background-color:#333333}.panel-default>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#dddddd}.panel-primary{border-color:#4582ec}.panel-primary>.panel-heading{color:#ffffff;background-color:#4582ec;border-color:#4582ec}.panel-primary>.panel-heading+.panel-collapse>.panel-body{border-top-color:#4582ec}.panel-primary>.panel-heading .badge{color:#4582ec;background-color:#ffffff}.panel-primary>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#4582ec}.panel-success{border-color:#3fad46}.panel-success>.panel-heading{color:#ffffff;background-color:#3fad46;border-color:#3fad46}.panel-success>.panel-heading+.panel-collapse>.panel-body{border-top-color:#3fad46}.panel-success>.panel-heading .badge{color:#3fad46;background-color:#ffffff}.panel-success>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#3fad46}.panel-info{border-color:#5bc0de}.panel-info>.panel-heading{color:#ffffff;background-color:#5bc0de;border-color:#5bc0de}.panel-info>.panel-heading+.panel-collapse>.panel-body{border-top-color:#5bc0de}.panel-info>.panel-heading .badge{color:#5bc0de;background-color:#ffffff}.panel-info>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#5bc0de}.panel-warning{border-color:#f0ad4e}.panel-warning>.panel-heading{color:#ffffff;background-color:#f0ad4e;border-color:#f0ad4e}.panel-warning>.panel-heading+.panel-collapse>.panel-body{border-top-color:#f0ad4e}.panel-warning>.panel-heading .badge{color:#f0ad4e;background-color:#ffffff}.panel-warning>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#f0ad4e}.panel-danger{border-color:#d9534f}.panel-danger>.panel-heading{color:#ffffff;background-color:#d9534f;border-color:#d9534f}.panel-danger>.panel-heading+.panel-collapse>.panel-body{border-top-color:#d9534f}.panel-danger>.panel-heading .badge{color:#d9534f;background-color:#ffffff}.panel-danger>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#d9534f}.embed-responsive{position:relative;display:block;height:0;padding:0;overflow:hidden}.embed-responsive .embed-responsive-item,.embed-responsive iframe,.embed-responsive embed,.embed-responsive object,.embed-responsive video{position:absolute;top:0;left:0;bottom:0;height:100%;width:100%;border:0}.embed-responsive-16by9{padding-bottom:56.25%}.embed-responsive-4by3{padding-bottom:75%}.well{min-height:20px;padding:19px;margin-bottom:20px;background-color:#f7f7f7;border:1px solid #e5e5e5;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.05);box-shadow:inset 0 1px 1px rgba(0,0,0,0.05)}.well blockquote{border-color:#ddd;border-color:rgba(0,0,0,0.15)}.well-lg{padding:24px;border-radius:6px}.well-sm{padding:9px;border-radius:3px}.close{float:right;font-size:24px;font-weight:bold;line-height:1;color:#ffffff;text-shadow:0 1px 0 #ffffff;opacity:0.2;filter:alpha(opacity=20)}.close:hover,.close:focus{color:#ffffff;text-decoration:none;cursor:pointer;opacity:0.5;filter:alpha(opacity=50)}button.close{padding:0;cursor:pointer;background:transparent;border:0;-webkit-appearance:none}.modal-open{overflow:hidden}.modal{display:none;overflow:hidden;position:fixed;top:0;right:0;bottom:0;left:0;z-index:1050;-webkit-overflow-scrolling:touch;outline:0}.modal.fade .modal-dialog{-webkit-transform:translate(0, -25%);-ms-transform:translate(0, -25%);-o-transform:translate(0, -25%);transform:translate(0, -25%);-webkit-transition:-webkit-transform .3s ease-out;-o-transition:-o-transform .3s ease-out;transition:transform .3s ease-out}.modal.in .modal-dialog{-webkit-transform:translate(0, 0);-ms-transform:translate(0, 0);-o-transform:translate(0, 0);transform:translate(0, 0)}.modal-open .modal{overflow-x:hidden;overflow-y:auto}.modal-dialog{position:relative;width:auto;margin:10px}.modal-content{position:relative;background-color:#ffffff;border:1px solid #999999;border:1px solid rgba(0,0,0,0.2);border-radius:6px;-webkit-box-shadow:0 3px 9px rgba(0,0,0,0.5);box-shadow:0 3px 9px rgba(0,0,0,0.5);-webkit-background-clip:padding-box;background-clip:padding-box;outline:0}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1040;background-color:#000000}.modal-backdrop.fade{opacity:0;filter:alpha(opacity=0)}.modal-backdrop.in{opacity:0.5;filter:alpha(opacity=50)}.modal-header{padding:15px;border-bottom:1px solid #e5e5e5;min-height:16.42857143px}.modal-header .close{margin-top:-2px}.modal-title{margin:0;line-height:1.42857143}.modal-body{position:relative;padding:20px}.modal-footer{padding:20px;text-align:right;border-top:1px solid #e5e5e5}.modal-footer .btn+.btn{margin-left:5px;margin-bottom:0}.modal-footer .btn-group .btn+.btn{margin-left:-1px}.modal-footer .btn-block+.btn-block{margin-left:0}.modal-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}@media (min-width:768px){.modal-dialog{width:600px;margin:30px auto}.modal-content{-webkit-box-shadow:0 5px 15px rgba(0,0,0,0.5);box-shadow:0 5px 15px rgba(0,0,0,0.5)}.modal-sm{width:300px}}@media (min-width:992px){.modal-lg{width:900px}}.tooltip{position:absolute;z-index:1070;display:block;font-size:14px;font-weight:normal;line-height:1.4;opacity:0;filter:alpha(opacity=0)}.tooltip.in{opacity:0.9;filter:alpha(opacity=90)}.tooltip.top{margin-top:-3px;padding:5px 0}.tooltip.right{margin-left:3px;padding:0 5px}.tooltip.bottom{margin-top:3px;padding:5px 0}.tooltip.left{margin-left:-3px;padding:0 5px}.tooltip-inner{max-width:200px;padding:3px 8px;color:#ffffff;text-align:center;text-decoration:none;background-color:#000000;border-radius:4px}.tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid}.tooltip.top .tooltip-arrow{bottom:0;left:50%;margin-left:-5px;border-width:5px 5px 0;border-top-color:#000000}.tooltip.top-left .tooltip-arrow{bottom:0;right:5px;margin-bottom:-5px;border-width:5px 5px 0;border-top-color:#000000}.tooltip.top-right .tooltip-arrow{bottom:0;left:5px;margin-bottom:-5px;border-width:5px 5px 0;border-top-color:#000000}.tooltip.right .tooltip-arrow{top:50%;left:0;margin-top:-5px;border-width:5px 5px 5px 0;border-right-color:#000000}.tooltip.left .tooltip-arrow{top:50%;right:0;margin-top:-5px;border-width:5px 0 5px 5px;border-left-color:#000000}.tooltip.bottom .tooltip-arrow{top:0;left:50%;margin-left:-5px;border-width:0 5px 5px;border-bottom-color:#000000}.tooltip.bottom-left .tooltip-arrow{top:0;right:5px;margin-top:-5px;border-width:0 5px 5px;border-bottom-color:#000000}.tooltip.bottom-right .tooltip-arrow{top:0;left:5px;margin-top:-5px;border-width:0 5px 5px;border-bottom-color:#000000}.popover{position:absolute;top:0;left:0;z-index:1060;display:none;max-width:276px;padding:1px;font-size:16px;font-weight:normal;line-height:1.42857143;text-align:left;background-color:#ffffff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #cccccc;border:1px solid rgba(0,0,0,0.2);border-radius:6px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,0.2);box-shadow:0 5px 10px rgba(0,0,0,0.2);white-space:normal}.popover.top{margin-top:-10px}.popover.right{margin-left:10px}.popover.bottom{margin-top:10px}.popover.left{margin-left:-10px}.popover-title{margin:0;padding:8px 14px;font-size:16px;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;border-radius:5px 5px 0 0}.popover-content{padding:9px 14px}.popover>.arrow,.popover>.arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.popover>.arrow{border-width:11px}.popover>.arrow:after{border-width:10px;content:""}.popover.top>.arrow{left:50%;margin-left:-11px;border-bottom-width:0;border-top-color:#999999;border-top-color:rgba(0,0,0,0.25);bottom:-11px}.popover.top>.arrow:after{content:" ";bottom:1px;margin-left:-10px;border-bottom-width:0;border-top-color:#ffffff}.popover.right>.arrow{top:50%;left:-11px;margin-top:-11px;border-left-width:0;border-right-color:#999999;border-right-color:rgba(0,0,0,0.25)}.popover.right>.arrow:after{content:" ";left:1px;bottom:-10px;border-left-width:0;border-right-color:#ffffff}.popover.bottom>.arrow{left:50%;margin-left:-11px;border-top-width:0;border-bottom-color:#999999;border-bottom-color:rgba(0,0,0,0.25);top:-11px}.popover.bottom>.arrow:after{content:" ";top:1px;margin-left:-10px;border-top-width:0;border-bottom-color:#ffffff}.popover.left>.arrow{top:50%;right:-11px;margin-top:-11px;border-right-width:0;border-left-color:#999999;border-left-color:rgba(0,0,0,0.25)}.popover.left>.arrow:after{content:" ";right:1px;border-right-width:0;border-left-color:#ffffff;bottom:-10px}.carousel{position:relative}.carousel-inner{position:relative;overflow:hidden;width:100%}.carousel-inner>.item{display:none;position:relative;-webkit-transition:.6s ease-in-out left;-o-transition:.6s ease-in-out left;transition:.6s ease-in-out left}.carousel-inner>.item>img,.carousel-inner>.item>a>img{line-height:1}@media all and (transform-3d),(-webkit-transform-3d){.carousel-inner>.item{-webkit-transition:-webkit-transform .6s ease-in-out;-o-transition:-o-transform .6s ease-in-out;transition:transform .6s ease-in-out;-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-perspective:1000;perspective:1000}.carousel-inner>.item.next,.carousel-inner>.item.active.right{-webkit-transform:translate3d(100%, 0, 0);transform:translate3d(100%, 0, 0);left:0}.carousel-inner>.item.prev,.carousel-inner>.item.active.left{-webkit-transform:translate3d(-100%, 0, 0);transform:translate3d(-100%, 0, 0);left:0}.carousel-inner>.item.next.left,.carousel-inner>.item.prev.right,.carousel-inner>.item.active{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);left:0}}.carousel-inner>.active,.carousel-inner>.next,.carousel-inner>.prev{display:block}.carousel-inner>.active{left:0}.carousel-inner>.next,.carousel-inner>.prev{position:absolute;top:0;width:100%}.carousel-inner>.next{left:100%}.carousel-inner>.prev{left:-100%}.carousel-inner>.next.left,.carousel-inner>.prev.right{left:0}.carousel-inner>.active.left{left:-100%}.carousel-inner>.active.right{left:100%}.carousel-control{position:absolute;top:0;left:0;bottom:0;width:15%;opacity:0.5;filter:alpha(opacity=50);font-size:20px;color:#ffffff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,0.6)}.carousel-control.left{background-image:-webkit-linear-gradient(left, rgba(0,0,0,0.5) 0, rgba(0,0,0,0.0001) 100%);background-image:-o-linear-gradient(left, rgba(0,0,0,0.5) 0, rgba(0,0,0,0.0001) 100%);background-image:-webkit-gradient(linear, left top, right top, from(rgba(0,0,0,0.5)), to(rgba(0,0,0,0.0001)));background-image:linear-gradient(to right, rgba(0,0,0,0.5) 0, rgba(0,0,0,0.0001) 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1)}.carousel-control.right{left:auto;right:0;background-image:-webkit-linear-gradient(left, rgba(0,0,0,0.0001) 0, rgba(0,0,0,0.5) 100%);background-image:-o-linear-gradient(left, rgba(0,0,0,0.0001) 0, rgba(0,0,0,0.5) 100%);background-image:-webkit-gradient(linear, left top, right top, from(rgba(0,0,0,0.0001)), to(rgba(0,0,0,0.5)));background-image:linear-gradient(to right, rgba(0,0,0,0.0001) 0, rgba(0,0,0,0.5) 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1)}.carousel-control:hover,.carousel-control:focus{outline:0;color:#ffffff;text-decoration:none;opacity:0.9;filter:alpha(opacity=90)}.carousel-control .icon-prev,.carousel-control .icon-next,.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right{position:absolute;top:50%;z-index:5;display:inline-block}.carousel-control .icon-prev,.carousel-control .glyphicon-chevron-left{left:50%;margin-left:-10px}.carousel-control .icon-next,.carousel-control .glyphicon-chevron-right{right:50%;margin-right:-10px}.carousel-control .icon-prev,.carousel-control .icon-next{width:20px;height:20px;margin-top:-10px;line-height:1;font-family:serif}.carousel-control .icon-prev:before{content:'\2039'}.carousel-control .icon-next:before{content:'\203a'}.carousel-indicators{position:absolute;bottom:10px;left:50%;z-index:15;width:60%;margin-left:-30%;padding-left:0;list-style:none;text-align:center}.carousel-indicators li{display:inline-block;width:10px;height:10px;margin:1px;text-indent:-999px;border:1px solid #ffffff;border-radius:10px;cursor:pointer;background-color:#000 \9;background-color:rgba(0,0,0,0)}.carousel-indicators .active{margin:0;width:12px;height:12px;background-color:#ffffff}.carousel-caption{position:absolute;left:15%;right:15%;bottom:20px;z-index:10;padding-top:20px;padding-bottom:20px;color:#ffffff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,0.6)}.carousel-caption .btn{text-shadow:none}@media screen and (min-width:768px){.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right,.carousel-control .icon-prev,.carousel-control .icon-next{width:30px;height:30px;margin-top:-15px;font-size:30px}.carousel-control .glyphicon-chevron-left,.carousel-control .icon-prev{margin-left:-15px}.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next{margin-right:-15px}.carousel-caption{left:20%;right:20%;padding-bottom:30px}.carousel-indicators{bottom:20px}}.clearfix:before,.clearfix:after,.dl-horizontal dd:before,.dl-horizontal dd:after,.container:before,.container:after,.container-fluid:before,.container-fluid:after,.row:before,.row:after,.form-horizontal .form-group:before,.form-horizontal .form-group:after,.btn-toolbar:before,.btn-toolbar:after,.btn-group-vertical>.btn-group:before,.btn-group-vertical>.btn-group:after,.nav:before,.nav:after,.navbar:before,.navbar:after,.navbar-header:before,.navbar-header:after,.navbar-collapse:before,.navbar-collapse:after,.pager:before,.pager:after,.panel-body:before,.panel-body:after,.modal-footer:before,.modal-footer:after{content:" ";display:table}.clearfix:after,.dl-horizontal dd:after,.container:after,.container-fluid:after,.row:after,.form-horizontal .form-group:after,.btn-toolbar:after,.btn-group-vertical>.btn-group:after,.nav:after,.navbar:after,.navbar-header:after,.navbar-collapse:after,.pager:after,.panel-body:after,.modal-footer:after{clear:both}.center-block{display:block;margin-left:auto;margin-right:auto}.pull-right{float:right !important}.pull-left{float:left !important}.hide{display:none !important}.show{display:block !important}.invisible{visibility:hidden}.text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.hidden{display:none !important}.affix{position:fixed}@-ms-viewport{width:device-width}.visible-xs,.visible-sm,.visible-md,.visible-lg{display:none !important}.visible-xs-block,.visible-xs-inline,.visible-xs-inline-block,.visible-sm-block,.visible-sm-inline,.visible-sm-inline-block,.visible-md-block,.visible-md-inline,.visible-md-inline-block,.visible-lg-block,.visible-lg-inline,.visible-lg-inline-block{display:none !important}@media (max-width:767px){.visible-xs{display:block !important}table.visible-xs{display:table}tr.visible-xs{display:table-row !important}th.visible-xs,td.visible-xs{display:table-cell !important}}@media (max-width:767px){.visible-xs-block{display:block !important}}@media (max-width:767px){.visible-xs-inline{display:inline !important}}@media (max-width:767px){.visible-xs-inline-block{display:inline-block !important}}@media (min-width:768px) and (max-width:991px){.visible-sm{display:block !important}table.visible-sm{display:table}tr.visible-sm{display:table-row !important}th.visible-sm,td.visible-sm{display:table-cell !important}}@media (min-width:768px) and (max-width:991px){.visible-sm-block{display:block !important}}@media (min-width:768px) and (max-width:991px){.visible-sm-inline{display:inline !important}}@media (min-width:768px) and (max-width:991px){.visible-sm-inline-block{display:inline-block !important}}@media (min-width:992px) and (max-width:1199px){.visible-md{display:block !important}table.visible-md{display:table}tr.visible-md{display:table-row !important}th.visible-md,td.visible-md{display:table-cell !important}}@media (min-width:992px) and (max-width:1199px){.visible-md-block{display:block !important}}@media (min-width:992px) and (max-width:1199px){.visible-md-inline{display:inline !important}}@media (min-width:992px) and (max-width:1199px){.visible-md-inline-block{display:inline-block !important}}@media (min-width:1200px){.visible-lg{display:block !important}table.visible-lg{display:table}tr.visible-lg{display:table-row !important}th.visible-lg,td.visible-lg{display:table-cell !important}}@media (min-width:1200px){.visible-lg-block{display:block !important}}@media (min-width:1200px){.visible-lg-inline{display:inline !important}}@media (min-width:1200px){.visible-lg-inline-block{display:inline-block !important}}@media (max-width:767px){.hidden-xs{display:none !important}}@media (min-width:768px) and (max-width:991px){.hidden-sm{display:none !important}}@media (min-width:992px) and (max-width:1199px){.hidden-md{display:none !important}}@media (min-width:1200px){.hidden-lg{display:none !important}}.visible-print{display:none !important}@media print{.visible-print{display:block !important}table.visible-print{display:table}tr.visible-print{display:table-row !important}th.visible-print,td.visible-print{display:table-cell !important}}.visible-print-block{display:none !important}@media print{.visible-print-block{display:block !important}}.visible-print-inline{display:none !important}@media print{.visible-print-inline{display:inline !important}}.visible-print-inline-block{display:none !important}@media print{.visible-print-inline-block{display:inline-block !important}}@media print{.hidden-print{display:none !important}}.navbar{font-family:"Raleway","Helvetica Neue",Helvetica,Arial,sans-serif}.navbar-nav,.navbar-form{margin-left:0;margin-right:0}.navbar-nav>li>a{padding:8px 12px;margin:12.5px 6px;border:1px solid transparent;border-radius:4px}.navbar-nav>li>a:hover{border:1px solid #ddd}.navbar-nav>.active>a,.navbar-nav>.active>a:hover{border:1px solid #ddd}.navbar-default .navbar-nav>.active>a:hover{color:#4582ec}.navbar-inverse .navbar-nav>.active>a:hover{color:#333333}.navbar-brand{padding-top:12.5px;padding-bottom:12.5px;line-height:1.9}@media (max-width:768px){.navbar .navbar-nav>li>a{margin:0}}.btn{font-family:"Raleway","Helvetica Neue",Helvetica,Arial,sans-serif}legend{font-family:"Raleway","Helvetica Neue",Helvetica,Arial,sans-serif}.input-group-addon{font-family:"Raleway","Helvetica Neue",Helvetica,Arial,sans-serif}.nav .open>a,.nav .open>a:hover,.nav .open>a:focus{border:1px solid #ddd}.pagination{font-family:"Raleway","Helvetica Neue",Helvetica,Arial,sans-serif}.pagination-lg>li>a,.pagination-lg>li>span{padding:14px 24px}.pager{font-family:"Raleway","Helvetica Neue",Helvetica,Arial,sans-serif}.pager a{color:#333333}.pager a:hover{border-color:transparent;color:#fff}.pager .disabled a{border-color:#dddddd}.close{color:#fff;text-decoration:none;text-shadow:none;opacity:0.4}.close:hover,.close:focus{color:#fff;opacity:1}.alert .alert-link{color:#ffffff;text-decoration:underline}.label{font-family:"Raleway","Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:normal}.label-default{border:1px solid #ddd;color:#333333}.badge{padding:1px 7px 5px;vertical-align:2px;font-family:"Raleway","Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:normal}.panel{-webkit-box-shadow:none;box-shadow:none}.panel-default .close{color:#333333}.modal .close{color:#333333}
|
4 |
Â
* Copyright 2012-2015 Thomas Park
|
5 |
Â
* Licensed under MIT
|
6 |
Â
* Based on Bootstrap
|
7 |
+
*//*! normalize.css v3.0.2 | MIT License | git.io/normalize */.ssbp-admin-wrap{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}.ssbp-admin-wrap{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:bold}dfn{font-style:italic}h1{font-size:2em;margin:0.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box;height:0}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace, monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type="button"],input[type="reset"],input[type="submit"]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input[type="checkbox"],input[type="radio"]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:0}input[type="number"]::-webkit-inner-spin-button,input[type="number"]::-webkit-outer-spin-button{height:auto}input[type="search"]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration{-webkit-appearance:none}fieldset{border:1px solid #c0c0c0;margin:0 2px;padding:0.35em 0.625em 0.75em}legend{border:0;padding:0}textarea{overflow:auto}optgroup{font-weight:bold}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}/*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */@media print{*,*:before,*:after{background:transparent !important;color:#000 !important;-webkit-box-shadow:none !important;box-shadow:none !important;text-shadow:none !important}a,a:visited{text-decoration:underline}a[href]:after{content:" (" attr(href) ")"}abbr[title]:after{content:" (" attr(title) ")"}a[href^="#"]:after,a[href^="javascript:"]:after{content:""}pre,blockquote{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}tr,img{page-break-inside:avoid}img{max-width:100% !important}p,h2,h3{orphans:3;widows:3}h2,h3{page-break-after:avoid}select{background:#fff !important}.navbar{display:none}.btn>.caret,.dropup>.btn>.caret{border-top-color:#000 !important}.label{border:1px solid #000}.table{border-collapse:collapse !important}.table td,.table th{background-color:#fff !important}.table-bordered th,.table-bordered td{border:1px solid #ddd !important}}@font-face{font-family:'Glyphicons Halflings';src:url('../fonts/glyphicons-halflings-regular.eot');src:url('../fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'),url('../fonts/glyphicons-halflings-regular.woff2') format('woff2'),url('../fonts/glyphicons-halflings-regular.woff') format('woff'),url('../fonts/glyphicons-halflings-regular.ttf') format('truetype'),url('../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg')}.glyphicon{position:relative;top:1px;display:inline-block;font-family:'Glyphicons Halflings';font-style:normal;font-weight:normal;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.glyphicon-asterisk:before{content:"\2a"}.glyphicon-plus:before{content:"\2b"}.glyphicon-euro:before,.glyphicon-eur:before{content:"\20ac"}.glyphicon-minus:before{content:"\2212"}.glyphicon-cloud:before{content:"\2601"}.glyphicon-envelope:before{content:"\2709"}.glyphicon-pencil:before{content:"\270f"}.glyphicon-glass:before{content:"\e001"}.glyphicon-music:before{content:"\e002"}.glyphicon-search:before{content:"\e003"}.glyphicon-heart:before{content:"\e005"}.glyphicon-star:before{content:"\e006"}.glyphicon-star-empty:before{content:"\e007"}.glyphicon-user:before{content:"\e008"}.glyphicon-film:before{content:"\e009"}.glyphicon-th-large:before{content:"\e010"}.glyphicon-th:before{content:"\e011"}.glyphicon-th-list:before{content:"\e012"}.glyphicon-ok:before{content:"\e013"}.glyphicon-remove:before{content:"\e014"}.glyphicon-zoom-in:before{content:"\e015"}.glyphicon-zoom-out:before{content:"\e016"}.glyphicon-off:before{content:"\e017"}.glyphicon-signal:before{content:"\e018"}.glyphicon-cog:before{content:"\e019"}.glyphicon-trash:before{content:"\e020"}.glyphicon-home:before{content:"\e021"}.glyphicon-file:before{content:"\e022"}.glyphicon-time:before{content:"\e023"}.glyphicon-road:before{content:"\e024"}.glyphicon-download-alt:before{content:"\e025"}.glyphicon-download:before{content:"\e026"}.glyphicon-upload:before{content:"\e027"}.glyphicon-inbox:before{content:"\e028"}.glyphicon-play-circle:before{content:"\e029"}.glyphicon-repeat:before{content:"\e030"}.glyphicon-refresh:before{content:"\e031"}.glyphicon-list-alt:before{content:"\e032"}.glyphicon-lock:before{content:"\e033"}.glyphicon-flag:before{content:"\e034"}.glyphicon-headphones:before{content:"\e035"}.glyphicon-volume-off:before{content:"\e036"}.glyphicon-volume-down:before{content:"\e037"}.glyphicon-volume-up:before{content:"\e038"}.glyphicon-qrcode:before{content:"\e039"}.glyphicon-barcode:before{content:"\e040"}.glyphicon-tag:before{content:"\e041"}.glyphicon-tags:before{content:"\e042"}.glyphicon-book:before{content:"\e043"}.glyphicon-bookmark:before{content:"\e044"}.glyphicon-print:before{content:"\e045"}.glyphicon-camera:before{content:"\e046"}.glyphicon-font:before{content:"\e047"}.glyphicon-bold:before{content:"\e048"}.glyphicon-italic:before{content:"\e049"}.glyphicon-text-height:before{content:"\e050"}.glyphicon-text-width:before{content:"\e051"}.glyphicon-align-left:before{content:"\e052"}.glyphicon-align-center:before{content:"\e053"}.glyphicon-align-right:before{content:"\e054"}.glyphicon-align-justify:before{content:"\e055"}.glyphicon-list:before{content:"\e056"}.glyphicon-indent-left:before{content:"\e057"}.glyphicon-indent-right:before{content:"\e058"}.glyphicon-facetime-video:before{content:"\e059"}.glyphicon-picture:before{content:"\e060"}.glyphicon-map-marker:before{content:"\e062"}.glyphicon-adjust:before{content:"\e063"}.glyphicon-tint:before{content:"\e064"}.glyphicon-edit:before{content:"\e065"}.glyphicon-share:before{content:"\e066"}.glyphicon-check:before{content:"\e067"}.glyphicon-move:before{content:"\e068"}.glyphicon-step-backward:before{content:"\e069"}.glyphicon-fast-backward:before{content:"\e070"}.glyphicon-backward:before{content:"\e071"}.glyphicon-play:before{content:"\e072"}.glyphicon-pause:before{content:"\e073"}.glyphicon-stop:before{content:"\e074"}.glyphicon-forward:before{content:"\e075"}.glyphicon-fast-forward:before{content:"\e076"}.glyphicon-step-forward:before{content:"\e077"}.glyphicon-eject:before{content:"\e078"}.glyphicon-chevron-left:before{content:"\e079"}.glyphicon-chevron-right:before{content:"\e080"}.glyphicon-plus-sign:before{content:"\e081"}.glyphicon-minus-sign:before{content:"\e082"}.glyphicon-remove-sign:before{content:"\e083"}.glyphicon-ok-sign:before{content:"\e084"}.glyphicon-question-sign:before{content:"\e085"}.glyphicon-info-sign:before{content:"\e086"}.glyphicon-screenshot:before{content:"\e087"}.glyphicon-remove-circle:before{content:"\e088"}.glyphicon-ok-circle:before{content:"\e089"}.glyphicon-ban-circle:before{content:"\e090"}.glyphicon-arrow-left:before{content:"\e091"}.glyphicon-arrow-right:before{content:"\e092"}.glyphicon-arrow-up:before{content:"\e093"}.glyphicon-arrow-down:before{content:"\e094"}.glyphicon-share-alt:before{content:"\e095"}.glyphicon-resize-full:before{content:"\e096"}.glyphicon-resize-small:before{content:"\e097"}.glyphicon-exclamation-sign:before{content:"\e101"}.glyphicon-gift:before{content:"\e102"}.glyphicon-leaf:before{content:"\e103"}.glyphicon-fire:before{content:"\e104"}.glyphicon-eye-open:before{content:"\e105"}.glyphicon-eye-close:before{content:"\e106"}.glyphicon-warning-sign:before{content:"\e107"}.glyphicon-plane:before{content:"\e108"}.glyphicon-calendar:before{content:"\e109"}.glyphicon-random:before{content:"\e110"}.glyphicon-comment:before{content:"\e111"}.glyphicon-magnet:before{content:"\e112"}.glyphicon-chevron-up:before{content:"\e113"}.glyphicon-chevron-down:before{content:"\e114"}.glyphicon-retweet:before{content:"\e115"}.glyphicon-shopping-cart:before{content:"\e116"}.glyphicon-folder-close:before{content:"\e117"}.glyphicon-folder-open:before{content:"\e118"}.glyphicon-resize-vertical:before{content:"\e119"}.glyphicon-resize-horizontal:before{content:"\e120"}.glyphicon-hdd:before{content:"\e121"}.glyphicon-bullhorn:before{content:"\e122"}.glyphicon-bell:before{content:"\e123"}.glyphicon-certificate:before{content:"\e124"}.glyphicon-thumbs-up:before{content:"\e125"}.glyphicon-thumbs-down:before{content:"\e126"}.glyphicon-hand-right:before{content:"\e127"}.glyphicon-hand-left:before{content:"\e128"}.glyphicon-hand-up:before{content:"\e129"}.glyphicon-hand-down:before{content:"\e130"}.glyphicon-circle-arrow-right:before{content:"\e131"}.glyphicon-circle-arrow-left:before{content:"\e132"}.glyphicon-circle-arrow-up:before{content:"\e133"}.glyphicon-circle-arrow-down:before{content:"\e134"}.glyphicon-globe:before{content:"\e135"}.glyphicon-wrench:before{content:"\e136"}.glyphicon-tasks:before{content:"\e137"}.glyphicon-filter:before{content:"\e138"}.glyphicon-briefcase:before{content:"\e139"}.glyphicon-fullscreen:before{content:"\e140"}.glyphicon-dashboard:before{content:"\e141"}.glyphicon-paperclip:before{content:"\e142"}.glyphicon-heart-empty:before{content:"\e143"}.glyphicon-link:before{content:"\e144"}.glyphicon-phone:before{content:"\e145"}.glyphicon-pushpin:before{content:"\e146"}.glyphicon-usd:before{content:"\e148"}.glyphicon-gbp:before{content:"\e149"}.glyphicon-sort:before{content:"\e150"}.glyphicon-sort-by-alphabet:before{content:"\e151"}.glyphicon-sort-by-alphabet-alt:before{content:"\e152"}.glyphicon-sort-by-order:before{content:"\e153"}.glyphicon-sort-by-order-alt:before{content:"\e154"}.glyphicon-sort-by-attributes:before{content:"\e155"}.glyphicon-sort-by-attributes-alt:before{content:"\e156"}.glyphicon-unchecked:before{content:"\e157"}.glyphicon-expand:before{content:"\e158"}.glyphicon-collapse-down:before{content:"\e159"}.glyphicon-collapse-up:before{content:"\e160"}.glyphicon-log-in:before{content:"\e161"}.glyphicon-flash:before{content:"\e162"}.glyphicon-log-out:before{content:"\e163"}.glyphicon-new-window:before{content:"\e164"}.glyphicon-record:before{content:"\e165"}.glyphicon-save:before{content:"\e166"}.glyphicon-open:before{content:"\e167"}.glyphicon-saved:before{content:"\e168"}.glyphicon-import:before{content:"\e169"}.glyphicon-export:before{content:"\e170"}.glyphicon-send:before{content:"\e171"}.glyphicon-floppy-disk:before{content:"\e172"}.glyphicon-floppy-saved:before{content:"\e173"}.glyphicon-floppy-remove:before{content:"\e174"}.glyphicon-floppy-save:before{content:"\e175"}.glyphicon-floppy-open:before{content:"\e176"}.glyphicon-credit-card:before{content:"\e177"}.glyphicon-transfer:before{content:"\e178"}.glyphicon-cutlery:before{content:"\e179"}.glyphicon-header:before{content:"\e180"}.glyphicon-compressed:before{content:"\e181"}.glyphicon-earphone:before{content:"\e182"}.glyphicon-phone-alt:before{content:"\e183"}.glyphicon-tower:before{content:"\e184"}.glyphicon-stats:before{content:"\e185"}.glyphicon-sd-video:before{content:"\e186"}.glyphicon-hd-video:before{content:"\e187"}.glyphicon-subtitles:before{content:"\e188"}.glyphicon-sound-stereo:before{content:"\e189"}.glyphicon-sound-dolby:before{content:"\e190"}.glyphicon-sound-5-1:before{content:"\e191"}.glyphicon-sound-6-1:before{content:"\e192"}.glyphicon-sound-7-1:before{content:"\e193"}.glyphicon-copyright-mark:before{content:"\e194"}.glyphicon-registration-mark:before{content:"\e195"}.glyphicon-cloud-download:before{content:"\e197"}.glyphicon-cloud-upload:before{content:"\e198"}.glyphicon-tree-conifer:before{content:"\e199"}.glyphicon-tree-deciduous:before{content:"\e200"}.glyphicon-cd:before{content:"\e201"}.glyphicon-save-file:before{content:"\e202"}.glyphicon-open-file:before{content:"\e203"}.glyphicon-level-up:before{content:"\e204"}.glyphicon-copy:before{content:"\e205"}.glyphicon-paste:before{content:"\e206"}.glyphicon-alert:before{content:"\e209"}.glyphicon-equalizer:before{content:"\e210"}.glyphicon-king:before{content:"\e211"}.glyphicon-queen:before{content:"\e212"}.glyphicon-pawn:before{content:"\e213"}.glyphicon-bishop:before{content:"\e214"}.glyphicon-knight:before{content:"\e215"}.glyphicon-baby-formula:before{content:"\e216"}.glyphicon-tent:before{content:"\26fa"}.glyphicon-blackboard:before{content:"\e218"}.glyphicon-bed:before{content:"\e219"}.glyphicon-apple:before{content:"\f8ff"}.glyphicon-erase:before{content:"\e221"}.glyphicon-hourglass:before{content:"\231b"}.glyphicon-lamp:before{content:"\e223"}.glyphicon-duplicate:before{content:"\e224"}.glyphicon-piggy-bank:before{content:"\e225"}.glyphicon-scissors:before{content:"\e226"}.glyphicon-bitcoin:before{content:"\e227"}.glyphicon-btc:before{content:"\e227"}.glyphicon-xbt:before{content:"\e227"}.glyphicon-yen:before{content:"\00a5"}.glyphicon-jpy:before{content:"\00a5"}.glyphicon-ruble:before{content:"\20bd"}.glyphicon-rub:before{content:"\20bd"}.glyphicon-scale:before{content:"\e230"}.glyphicon-ice-lolly:before{content:"\e231"}.glyphicon-ice-lolly-tasted:before{content:"\e232"}.glyphicon-education:before{content:"\e233"}.glyphicon-option-horizontal:before{content:"\e234"}.glyphicon-option-vertical:before{content:"\e235"}.glyphicon-menu-hamburger:before{content:"\e236"}.glyphicon-modal-window:before{content:"\e237"}.glyphicon-oil:before{content:"\e238"}.glyphicon-grain:before{content:"\e239"}.glyphicon-sunglasses:before{content:"\e240"}.glyphicon-text-size:before{content:"\e241"}.glyphicon-text-color:before{content:"\e242"}.glyphicon-text-background:before{content:"\e243"}.glyphicon-object-align-top:before{content:"\e244"}.glyphicon-object-align-bottom:before{content:"\e245"}.glyphicon-object-align-horizontal:before{content:"\e246"}.glyphicon-object-align-left:before{content:"\e247"}.glyphicon-object-align-vertical:before{content:"\e248"}.glyphicon-object-align-right:before{content:"\e249"}.glyphicon-triangle-right:before{content:"\e250"}.glyphicon-triangle-left:before{content:"\e251"}.glyphicon-triangle-bottom:before{content:"\e252"}.glyphicon-triangle-top:before{content:"\e253"}.glyphicon-console:before{content:"\e254"}.glyphicon-superscript:before{content:"\e255"}.glyphicon-subscript:before{content:"\e256"}.glyphicon-menu-left:before{content:"\e257"}.glyphicon-menu-right:before{content:"\e258"}.glyphicon-menu-down:before{content:"\e259"}.glyphicon-menu-up:before{content:"\e260"}*{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}*:before,*:after{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}html{font-size:10px;-webkit-tap-highlight-color:rgba(0,0,0,0)}input,button,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit}a{color:#4582ec;text-decoration:none}a:hover,a:focus{color:#134fb8;text-decoration:underline}a:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}figure{margin:0}img{vertical-align:middle}.img-responsive,.thumbnail>img,.thumbnail a>img,.carousel-inner>.item>img,.carousel-inner>.item>a>img{display:block;max-width:100%;height:auto}.img-rounded{border-radius:6px}.img-thumbnail{padding:4px;line-height:1.42857143;background-color:#ffffff;border:1px solid #dddddd;border-radius:4px;-webkit-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out;display:inline-block;max-width:100%;height:auto}.img-circle{border-radius:50%}hr{margin-top:22px;margin-bottom:22px;border:0;border-top:1px solid #eeeeee}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}[role="button"]{cursor:pointer}h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6{font-family:"Raleway","Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:bold;line-height:1.1;color:inherit}h1 small,h2 small,h3 small,h4 small,h5 small,h6 small,.h1 small,.h2 small,.h3 small,.h4 small,.h5 small,.h6 small,h1 .small,h2 .small,h3 .small,h4 .small,h5 .small,h6 .small,.h1 .small,.h2 .small,.h3 .small,.h4 .small,.h5 .small,.h6 .small{font-weight:normal;line-height:1;color:#b3b3b3}h1,.h1,h2,.h2,h3,.h3{margin-top:22px;margin-bottom:11px}h1 small,.h1 small,h2 small,.h2 small,h3 small,.h3 small,h1 .small,.h1 .small,h2 .small,.h2 .small,h3 .small,.h3 .small{font-size:65%}h4,.h4,h5,.h5,h6,.h6{margin-top:11px;margin-bottom:11px}h4 small,.h4 small,h5 small,.h5 small,h6 small,.h6 small,h4 .small,.h4 .small,h5 .small,.h5 .small,h6 .small,.h6 .small{font-size:75%}h1,.h1{font-size:41px}h2,.h2{font-size:34px}h3,.h3{font-size:28px}h4,.h4{font-size:20px}h5,.h5{font-size:16px}h6,.h6{font-size:14px}p{margin:0 0 11px}.lead{margin-bottom:22px;font-size:18px;font-weight:300;line-height:1.4}@media (min-width:768px){.lead{font-size:24px}}small,.small{font-size:87%}mark,.mark{background-color:#fcf8e3;padding:.2em}.text-left{text-align:left}.text-right{text-align:right}.text-center{text-align:center}.text-justify{text-align:justify}.text-nowrap{white-space:nowrap}.text-lowercase{text-transform:lowercase}.text-uppercase{text-transform:uppercase}.text-capitalize{text-transform:capitalize}.text-muted{color:#b3b3b3}.text-primary{color:#4582ec}a.text-primary:hover{color:#1863e6}.text-success{color:#3fad46}a.text-success:hover{color:#318837}.text-info{color:#5bc0de}a.text-info:hover{color:#31b0d5}.text-warning{color:#f0ad4e}a.text-warning:hover{color:#ec971f}.text-danger{color:#d9534f}a.text-danger:hover{color:#c9302c}.bg-primary{color:#fff;background-color:#4582ec}a.bg-primary:hover{background-color:#1863e6}.bg-success{background-color:#dff0d8}a.bg-success:hover{background-color:#c1e2b3}.bg-info{background-color:#d9edf7}a.bg-info:hover{background-color:#afd9ee}.bg-warning{background-color:#fcf8e3}a.bg-warning:hover{background-color:#f7ecb5}.bg-danger{background-color:#f2dede}a.bg-danger:hover{background-color:#e4b9b9}.page-header{padding-bottom:10px;margin:44px 0 22px;border-bottom:1px solid #dddddd}ul,ol{margin-top:0;margin-bottom:11px}ul ul,ol ul,ul ol,ol ol{margin-bottom:0}.list-unstyled{padding-left:0;list-style:none}.list-inline{padding-left:0;list-style:none;margin-left:-5px}.list-inline>li{display:inline-block;padding-left:5px;padding-right:5px}dl{margin-top:0;margin-bottom:22px}dt,dd{line-height:1.42857143}dt{font-weight:bold}dd{margin-left:0}@media (min-width:768px){.dl-horizontal dt{float:left;width:160px;clear:left;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dl-horizontal dd{margin-left:180px}}abbr[title],abbr[data-original-title]{cursor:help;border-bottom:1px dotted #b3b3b3}.initialism{font-size:90%;text-transform:uppercase}blockquote{background: #ececec;padding:11px 22px;margin:0 0 22px;font-size:20px;border-left:5px solid #4582ec}blockquote p:last-child,blockquote ul:last-child,blockquote ol:last-child{margin-bottom:0}blockquote footer,blockquote small,blockquote .small{display:block;font-size:80%;line-height:1.42857143;color:#333333}blockquote footer:before,blockquote small:before,blockquote .small:before{content:'\2014 \00A0'}.blockquote-reverse,blockquote.pull-right{padding-right:15px;padding-left:0;border-right:5px solid #4582ec;border-left:0;text-align:right}.blockquote-reverse footer:before,blockquote.pull-right footer:before,.blockquote-reverse small:before,blockquote.pull-right small:before,.blockquote-reverse .small:before,blockquote.pull-right .small:before{content:''}.blockquote-reverse footer:after,blockquote.pull-right footer:after,.blockquote-reverse small:after,blockquote.pull-right small:after,.blockquote-reverse .small:after,blockquote.pull-right .small:after{content:'\00A0 \2014'}address{margin-bottom:22px;font-style:normal;line-height:1.42857143}code,kbd,pre,samp{font-family:Menlo,Monaco,Consolas,"Courier New",monospace}code{padding:2px 4px;font-size:90%;color:#c7254e;background-color:#f9f2f4;border-radius:4px}kbd{padding:2px 4px;font-size:90%;color:#ffffff;background-color:#333333;border-radius:3px;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,0.25);box-shadow:inset 0 -1px 0 rgba(0,0,0,0.25)}kbd kbd{padding:0;font-size:100%;font-weight:bold;-webkit-box-shadow:none;box-shadow:none}pre{display:block;padding:10.5px;margin:0 0 11px;font-size:15px;line-height:1.42857143;word-break:break-all;word-wrap:break-word;color:#333333;background-color:#f5f5f5;border:1px solid #cccccc;border-radius:4px}pre code{padding:0;font-size:inherit;color:inherit;white-space:pre-wrap;background-color:transparent;border-radius:0}.pre-scrollable{max-height:340px;overflow-y:scroll}.container{margin-right:auto;margin-left:auto;padding-left:15px;padding-right:15px}@media (min-width:768px){.container{width:750px}}@media (min-width:992px){.container{width:970px}}@media (min-width:1200px){.container{width:1170px}}.container-fluid{margin-right:auto;margin-left:auto;padding-left:15px;padding-right:15px}.row{margin-left:-15px;margin-right:-15px}.col-xs-1,.col-sm-1,.col-md-1,.col-lg-1,.col-xs-2,.col-sm-2,.col-md-2,.col-lg-2,.col-xs-3,.col-sm-3,.col-md-3,.col-lg-3,.col-xs-4,.col-sm-4,.col-md-4,.col-lg-4,.col-xs-5,.col-sm-5,.col-md-5,.col-lg-5,.col-xs-6,.col-sm-6,.col-md-6,.col-lg-6,.col-xs-7,.col-sm-7,.col-md-7,.col-lg-7,.col-xs-8,.col-sm-8,.col-md-8,.col-lg-8,.col-xs-9,.col-sm-9,.col-md-9,.col-lg-9,.col-xs-10,.col-sm-10,.col-md-10,.col-lg-10,.col-xs-11,.col-sm-11,.col-md-11,.col-lg-11,.col-xs-12,.col-sm-12,.col-md-12,.col-lg-12{position:relative;min-height:1px;padding-left:15px;padding-right:15px}.col-xs-1,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9,.col-xs-10,.col-xs-11,.col-xs-12{float:left}.col-xs-12{width:100%}.col-xs-11{width:91.66666667%}.col-xs-10{width:83.33333333%}.col-xs-9{width:75%}.col-xs-8{width:66.66666667%}.col-xs-7{width:58.33333333%}.col-xs-6{width:50%}.col-xs-5{width:41.66666667%}.col-xs-4{width:33.33333333%}.col-xs-3{width:25%}.col-xs-2{width:16.66666667%}.col-xs-1{width:8.33333333%}.col-xs-pull-12{right:100%}.col-xs-pull-11{right:91.66666667%}.col-xs-pull-10{right:83.33333333%}.col-xs-pull-9{right:75%}.col-xs-pull-8{right:66.66666667%}.col-xs-pull-7{right:58.33333333%}.col-xs-pull-6{right:50%}.col-xs-pull-5{right:41.66666667%}.col-xs-pull-4{right:33.33333333%}.col-xs-pull-3{right:25%}.col-xs-pull-2{right:16.66666667%}.col-xs-pull-1{right:8.33333333%}.col-xs-pull-0{right:auto}.col-xs-push-12{left:100%}.col-xs-push-11{left:91.66666667%}.col-xs-push-10{left:83.33333333%}.col-xs-push-9{left:75%}.col-xs-push-8{left:66.66666667%}.col-xs-push-7{left:58.33333333%}.col-xs-push-6{left:50%}.col-xs-push-5{left:41.66666667%}.col-xs-push-4{left:33.33333333%}.col-xs-push-3{left:25%}.col-xs-push-2{left:16.66666667%}.col-xs-push-1{left:8.33333333%}.col-xs-push-0{left:auto}.col-xs-offset-12{margin-left:100%}.col-xs-offset-11{margin-left:91.66666667%}.col-xs-offset-10{margin-left:83.33333333%}.col-xs-offset-9{margin-left:75%}.col-xs-offset-8{margin-left:66.66666667%}.col-xs-offset-7{margin-left:58.33333333%}.col-xs-offset-6{margin-left:50%}.col-xs-offset-5{margin-left:41.66666667%}.col-xs-offset-4{margin-left:33.33333333%}.col-xs-offset-3{margin-left:25%}.col-xs-offset-2{margin-left:16.66666667%}.col-xs-offset-1{margin-left:8.33333333%}.col-xs-offset-0{margin-left:0%}@media (min-width:768px){.col-sm-1,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-10,.col-sm-11,.col-sm-12{float:left}.col-sm-12{width:100%}.col-sm-11{width:91.66666667%}.col-sm-10{width:83.33333333%}.col-sm-9{width:75%}.col-sm-8{width:66.66666667%}.col-sm-7{width:58.33333333%}.col-sm-6{width:50%}.col-sm-5{width:41.66666667%}.col-sm-4{width:33.33333333%}.col-sm-3{width:25%}.col-sm-2{width:16.66666667%}.col-sm-1{width:8.33333333%}.col-sm-pull-12{right:100%}.col-sm-pull-11{right:91.66666667%}.col-sm-pull-10{right:83.33333333%}.col-sm-pull-9{right:75%}.col-sm-pull-8{right:66.66666667%}.col-sm-pull-7{right:58.33333333%}.col-sm-pull-6{right:50%}.col-sm-pull-5{right:41.66666667%}.col-sm-pull-4{right:33.33333333%}.col-sm-pull-3{right:25%}.col-sm-pull-2{right:16.66666667%}.col-sm-pull-1{right:8.33333333%}.col-sm-pull-0{right:auto}.col-sm-push-12{left:100%}.col-sm-push-11{left:91.66666667%}.col-sm-push-10{left:83.33333333%}.col-sm-push-9{left:75%}.col-sm-push-8{left:66.66666667%}.col-sm-push-7{left:58.33333333%}.col-sm-push-6{left:50%}.col-sm-push-5{left:41.66666667%}.col-sm-push-4{left:33.33333333%}.col-sm-push-3{left:25%}.col-sm-push-2{left:16.66666667%}.col-sm-push-1{left:8.33333333%}.col-sm-push-0{left:auto}.col-sm-offset-12{margin-left:100%}.col-sm-offset-11{margin-left:91.66666667%}.col-sm-offset-10{margin-left:83.33333333%}.col-sm-offset-9{margin-left:75%}.col-sm-offset-8{margin-left:66.66666667%}.col-sm-offset-7{margin-left:58.33333333%}.col-sm-offset-6{margin-left:50%}.col-sm-offset-5{margin-left:41.66666667%}.col-sm-offset-4{margin-left:33.33333333%}.col-sm-offset-3{margin-left:25%}.col-sm-offset-2{margin-left:16.66666667%}.col-sm-offset-1{margin-left:8.33333333%}.col-sm-offset-0{margin-left:0%}}@media (min-width:992px){.col-md-1,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-md-10,.col-md-11,.col-md-12{float:left}.col-md-12{width:100%}.col-md-11{width:91.66666667%}.col-md-10{width:83.33333333%}.col-md-9{width:75%}.col-md-8{width:66.66666667%}.col-md-7{width:58.33333333%}.col-md-6{width:50%}.col-md-5{width:41.66666667%}.col-md-4{width:33.33333333%}.col-md-3{width:25%}.col-md-2{width:16.66666667%}.col-md-1{width:8.33333333%}.col-md-pull-12{right:100%}.col-md-pull-11{right:91.66666667%}.col-md-pull-10{right:83.33333333%}.col-md-pull-9{right:75%}.col-md-pull-8{right:66.66666667%}.col-md-pull-7{right:58.33333333%}.col-md-pull-6{right:50%}.col-md-pull-5{right:41.66666667%}.col-md-pull-4{right:33.33333333%}.col-md-pull-3{right:25%}.col-md-pull-2{right:16.66666667%}.col-md-pull-1{right:8.33333333%}.col-md-pull-0{right:auto}.col-md-push-12{left:100%}.col-md-push-11{left:91.66666667%}.col-md-push-10{left:83.33333333%}.col-md-push-9{left:75%}.col-md-push-8{left:66.66666667%}.col-md-push-7{left:58.33333333%}.col-md-push-6{left:50%}.col-md-push-5{left:41.66666667%}.col-md-push-4{left:33.33333333%}.col-md-push-3{left:25%}.col-md-push-2{left:16.66666667%}.col-md-push-1{left:8.33333333%}.col-md-push-0{left:auto}.col-md-offset-12{margin-left:100%}.col-md-offset-11{margin-left:91.66666667%}.col-md-offset-10{margin-left:83.33333333%}.col-md-offset-9{margin-left:75%}.col-md-offset-8{margin-left:66.66666667%}.col-md-offset-7{margin-left:58.33333333%}.col-md-offset-6{margin-left:50%}.col-md-offset-5{margin-left:41.66666667%}.col-md-offset-4{margin-left:33.33333333%}.col-md-offset-3{margin-left:25%}.col-md-offset-2{margin-left:16.66666667%}.col-md-offset-1{margin-left:8.33333333%}.col-md-offset-0{margin-left:0%}}@media (min-width:1200px){.col-lg-1,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-10,.col-lg-11,.col-lg-12{float:left}.col-lg-12{width:100%}.col-lg-11{width:91.66666667%}.col-lg-10{width:83.33333333%}.col-lg-9{width:75%}.col-lg-8{width:66.66666667%}.col-lg-7{width:58.33333333%}.col-lg-6{width:50%}.col-lg-5{width:41.66666667%}.col-lg-4{width:33.33333333%}.col-lg-3{width:25%}.col-lg-2{width:16.66666667%}.col-lg-1{width:8.33333333%}.col-lg-pull-12{right:100%}.col-lg-pull-11{right:91.66666667%}.col-lg-pull-10{right:83.33333333%}.col-lg-pull-9{right:75%}.col-lg-pull-8{right:66.66666667%}.col-lg-pull-7{right:58.33333333%}.col-lg-pull-6{right:50%}.col-lg-pull-5{right:41.66666667%}.col-lg-pull-4{right:33.33333333%}.col-lg-pull-3{right:25%}.col-lg-pull-2{right:16.66666667%}.col-lg-pull-1{right:8.33333333%}.col-lg-pull-0{right:auto}.col-lg-push-12{left:100%}.col-lg-push-11{left:91.66666667%}.col-lg-push-10{left:83.33333333%}.col-lg-push-9{left:75%}.col-lg-push-8{left:66.66666667%}.col-lg-push-7{left:58.33333333%}.col-lg-push-6{left:50%}.col-lg-push-5{left:41.66666667%}.col-lg-push-4{left:33.33333333%}.col-lg-push-3{left:25%}.col-lg-push-2{left:16.66666667%}.col-lg-push-1{left:8.33333333%}.col-lg-push-0{left:auto}.col-lg-offset-12{margin-left:100%}.col-lg-offset-11{margin-left:91.66666667%}.col-lg-offset-10{margin-left:83.33333333%}.col-lg-offset-9{margin-left:75%}.col-lg-offset-8{margin-left:66.66666667%}.col-lg-offset-7{margin-left:58.33333333%}.col-lg-offset-6{margin-left:50%}.col-lg-offset-5{margin-left:41.66666667%}.col-lg-offset-4{margin-left:33.33333333%}.col-lg-offset-3{margin-left:25%}.col-lg-offset-2{margin-left:16.66666667%}.col-lg-offset-1{margin-left:8.33333333%}.col-lg-offset-0{margin-left:0%}}table{background-color:transparent}caption{padding-top:8px;padding-bottom:8px;color:#b3b3b3;text-align:left}th{text-align:left}.table{width:100%;max-width:100%;margin-bottom:22px}.table>thead>tr>th,.table>tbody>tr>th,.table>tfoot>tr>th,.table>thead>tr>td,.table>tbody>tr>td,.table>tfoot>tr>td{padding:8px;line-height:1.42857143;vertical-align:top;border-top:1px solid #dddddd}.table>thead>tr>th{vertical-align:bottom;border-bottom:2px solid #dddddd}.table>caption+thead>tr:first-child>th,.table>colgroup+thead>tr:first-child>th,.table>thead:first-child>tr:first-child>th,.table>caption+thead>tr:first-child>td,.table>colgroup+thead>tr:first-child>td,.table>thead:first-child>tr:first-child>td{border-top:0}.table>tbody+tbody{border-top:2px solid #dddddd}.table .table{background-color:#ffffff}.table-condensed>thead>tr>th,.table-condensed>tbody>tr>th,.table-condensed>tfoot>tr>th,.table-condensed>thead>tr>td,.table-condensed>tbody>tr>td,.table-condensed>tfoot>tr>td{padding:5px}.table-bordered{border:1px solid #dddddd}.table-bordered>thead>tr>th,.table-bordered>tbody>tr>th,.table-bordered>tfoot>tr>th,.table-bordered>thead>tr>td,.table-bordered>tbody>tr>td,.table-bordered>tfoot>tr>td{border:1px solid #dddddd}.table-bordered>thead>tr>th,.table-bordered>thead>tr>td{border-bottom-width:2px}.table-striped>tbody>tr:nth-of-type(odd){background-color:#f9f9f9}.table-hover>tbody>tr:hover{background-color:#f5f5f5}table col[class*="col-"]{position:static;float:none;display:table-column}table td[class*="col-"],table th[class*="col-"]{position:static;float:none;display:table-cell}.table>thead>tr>td.active,.table>tbody>tr>td.active,.table>tfoot>tr>td.active,.table>thead>tr>th.active,.table>tbody>tr>th.active,.table>tfoot>tr>th.active,.table>thead>tr.active>td,.table>tbody>tr.active>td,.table>tfoot>tr.active>td,.table>thead>tr.active>th,.table>tbody>tr.active>th,.table>tfoot>tr.active>th{background-color:#f5f5f5}.table-hover>tbody>tr>td.active:hover,.table-hover>tbody>tr>th.active:hover,.table-hover>tbody>tr.active:hover>td,.table-hover>tbody>tr:hover>.active,.table-hover>tbody>tr.active:hover>th{background-color:#e8e8e8}.table>thead>tr>td.success,.table>tbody>tr>td.success,.table>tfoot>tr>td.success,.table>thead>tr>th.success,.table>tbody>tr>th.success,.table>tfoot>tr>th.success,.table>thead>tr.success>td,.table>tbody>tr.success>td,.table>tfoot>tr.success>td,.table>thead>tr.success>th,.table>tbody>tr.success>th,.table>tfoot>tr.success>th{background-color:#dff0d8}.table-hover>tbody>tr>td.success:hover,.table-hover>tbody>tr>th.success:hover,.table-hover>tbody>tr.success:hover>td,.table-hover>tbody>tr:hover>.success,.table-hover>tbody>tr.success:hover>th{background-color:#d0e9c6}.table>thead>tr>td.info,.table>tbody>tr>td.info,.table>tfoot>tr>td.info,.table>thead>tr>th.info,.table>tbody>tr>th.info,.table>tfoot>tr>th.info,.table>thead>tr.info>td,.table>tbody>tr.info>td,.table>tfoot>tr.info>td,.table>thead>tr.info>th,.table>tbody>tr.info>th,.table>tfoot>tr.info>th{background-color:#d9edf7}.table-hover>tbody>tr>td.info:hover,.table-hover>tbody>tr>th.info:hover,.table-hover>tbody>tr.info:hover>td,.table-hover>tbody>tr:hover>.info,.table-hover>tbody>tr.info:hover>th{background-color:#c4e3f3}.table>thead>tr>td.warning,.table>tbody>tr>td.warning,.table>tfoot>tr>td.warning,.table>thead>tr>th.warning,.table>tbody>tr>th.warning,.table>tfoot>tr>th.warning,.table>thead>tr.warning>td,.table>tbody>tr.warning>td,.table>tfoot>tr.warning>td,.table>thead>tr.warning>th,.table>tbody>tr.warning>th,.table>tfoot>tr.warning>th{background-color:#fcf8e3}.table-hover>tbody>tr>td.warning:hover,.table-hover>tbody>tr>th.warning:hover,.table-hover>tbody>tr.warning:hover>td,.table-hover>tbody>tr:hover>.warning,.table-hover>tbody>tr.warning:hover>th{background-color:#faf2cc}.table>thead>tr>td.danger,.table>tbody>tr>td.danger,.table>tfoot>tr>td.danger,.table>thead>tr>th.danger,.table>tbody>tr>th.danger,.table>tfoot>tr>th.danger,.table>thead>tr.danger>td,.table>tbody>tr.danger>td,.table>tfoot>tr.danger>td,.table>thead>tr.danger>th,.table>tbody>tr.danger>th,.table>tfoot>tr.danger>th{background-color:#f2dede}.table-hover>tbody>tr>td.danger:hover,.table-hover>tbody>tr>th.danger:hover,.table-hover>tbody>tr.danger:hover>td,.table-hover>tbody>tr:hover>.danger,.table-hover>tbody>tr.danger:hover>th{background-color:#ebcccc}.table-responsive{overflow-x:auto;min-height:0.01%}@media screen and (max-width:767px){.table-responsive{width:100%;margin-bottom:16.5px;overflow-y:hidden;-ms-overflow-style:-ms-autohiding-scrollbar;border:1px solid #dddddd}.table-responsive>.table{margin-bottom:0}.table-responsive>.table>thead>tr>th,.table-responsive>.table>tbody>tr>th,.table-responsive>.table>tfoot>tr>th,.table-responsive>.table>thead>tr>td,.table-responsive>.table>tbody>tr>td,.table-responsive>.table>tfoot>tr>td{white-space:nowrap}.table-responsive>.table-bordered{border:0}.table-responsive>.table-bordered>thead>tr>th:first-child,.table-responsive>.table-bordered>tbody>tr>th:first-child,.table-responsive>.table-bordered>tfoot>tr>th:first-child,.table-responsive>.table-bordered>thead>tr>td:first-child,.table-responsive>.table-bordered>tbody>tr>td:first-child,.table-responsive>.table-bordered>tfoot>tr>td:first-child{border-left:0}.table-responsive>.table-bordered>thead>tr>th:last-child,.table-responsive>.table-bordered>tbody>tr>th:last-child,.table-responsive>.table-bordered>tfoot>tr>th:last-child,.table-responsive>.table-bordered>thead>tr>td:last-child,.table-responsive>.table-bordered>tbody>tr>td:last-child,.table-responsive>.table-bordered>tfoot>tr>td:last-child{border-right:0}.table-responsive>.table-bordered>tbody>tr:last-child>th,.table-responsive>.table-bordered>tfoot>tr:last-child>th,.table-responsive>.table-bordered>tbody>tr:last-child>td,.table-responsive>.table-bordered>tfoot>tr:last-child>td{border-bottom:0}}fieldset{padding:0;margin:0;border:0;min-width:0}legend{display:block;width:100%;padding:0;margin-bottom:22px;font-size:24px;line-height:inherit;color:#333333;border:0;border-bottom:1px solid #e5e5e5}label{display:inline-block;max-width:100%;margin-bottom:5px;font-weight:bold}input[type="search"]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}input[type="radio"],input[type="checkbox"]{margin:4px 0 0;margin-top:1px \9;line-height:normal}input[type="file"]{display:block}input[type="range"]{display:block;width:100%}select[multiple],select[size]{height:auto}input[type="file"]:focus,input[type="radio"]:focus,input[type="checkbox"]:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}output{display:block;padding-top:9px;font-size:16px;line-height:1.42857143;color:#333333}.form-control{display:block;width:100%;height:40px;padding:8px 12px;font-size:16px;line-height:1.42857143;color:#333333;background-color:#ffffff;background-image:none;border:1px solid #dddddd;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);-webkit-transition:border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;-o-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}.form-control:focus{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(102,175,233,0.6);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 8px rgba(102,175,233,0.6)}.form-control::-moz-placeholder{color:#b3b3b3;opacity:1}.form-control:-ms-input-placeholder{color:#b3b3b3}.form-control::-webkit-input-placeholder{color:#b3b3b3}.form-control[disabled],.form-control[readonly],fieldset[disabled] .form-control{background-color:#eeeeee;opacity:1}.form-control[disabled],fieldset[disabled] .form-control{cursor:not-allowed}textarea.form-control{height:auto}input[type="search"]{-webkit-appearance:none}@media screen and (-webkit-min-device-pixel-ratio:0){input[type="date"],input[type="time"],input[type="datetime-local"],input[type="month"]{line-height:40px}input[type="date"].input-sm,input[type="time"].input-sm,input[type="datetime-local"].input-sm,input[type="month"].input-sm,.input-group-sm input[type="date"],.input-group-sm input[type="time"],.input-group-sm input[type="datetime-local"],.input-group-sm input[type="month"]{line-height:33px}input[type="date"].input-lg,input[type="time"].input-lg,input[type="datetime-local"].input-lg,input[type="month"].input-lg,.input-group-lg input[type="date"],.input-group-lg input[type="time"],.input-group-lg input[type="datetime-local"],.input-group-lg input[type="month"]{line-height:57px}}.form-group{margin-bottom:15px}.radio,.checkbox{position:relative;display:block;margin-top:10px;margin-bottom:10px}.radio label,.checkbox label{min-height:22px;padding-left:20px;margin-bottom:0;font-weight:normal;cursor:pointer}.radio input[type="radio"],.radio-inline input[type="radio"],.checkbox input[type="checkbox"],.checkbox-inline input[type="checkbox"]{position:absolute;margin-left:-20px;margin-top:4px \9}.radio+.radio,.checkbox+.checkbox{margin-top:-5px}.radio-inline,.checkbox-inline{position:relative;display:inline-block;padding-left:20px;margin-bottom:0;vertical-align:middle;font-weight:normal;cursor:pointer}.radio-inline+.radio-inline,.checkbox-inline+.checkbox-inline{margin-top:0;margin-left:10px}input[type="radio"][disabled],input[type="checkbox"][disabled],input[type="radio"].disabled,input[type="checkbox"].disabled,fieldset[disabled] input[type="radio"],fieldset[disabled] input[type="checkbox"]{cursor:not-allowed}.radio-inline.disabled,.checkbox-inline.disabled,fieldset[disabled] .radio-inline,fieldset[disabled] .checkbox-inline{cursor:not-allowed}.radio.disabled label,.checkbox.disabled label,fieldset[disabled] .radio label,fieldset[disabled] .checkbox label{cursor:not-allowed}.form-control-static{padding-top:9px;padding-bottom:9px;margin-bottom:0;min-height:38px}.form-control-static.input-lg,.form-control-static.input-sm{padding-left:0;padding-right:0}.input-sm{height:33px;padding:5px 10px;font-size:14px;line-height:1.5;border-radius:3px}select.input-sm{height:33px;line-height:33px}textarea.input-sm,select[multiple].input-sm{height:auto}.form-group-sm .form-control{height:33px;padding:5px 10px;font-size:14px;line-height:1.5;border-radius:3px}select.form-group-sm .form-control{height:33px;line-height:33px}textarea.form-group-sm .form-control,select[multiple].form-group-sm .form-control{height:auto}.form-group-sm .form-control-static{height:33px;padding:5px 10px;font-size:14px;line-height:1.5;min-height:36px}.input-lg{height:57px;padding:14px 16px;font-size:20px;line-height:1.3333333;border-radius:6px}select.input-lg{height:57px;line-height:57px}textarea.input-lg,select[multiple].input-lg{height:auto}.form-group-lg .form-control{height:57px;padding:14px 16px;font-size:20px;line-height:1.3333333;border-radius:6px}select.form-group-lg .form-control{height:57px;line-height:57px}textarea.form-group-lg .form-control,select[multiple].form-group-lg .form-control{height:auto}.form-group-lg .form-control-static{height:57px;padding:14px 16px;font-size:20px;line-height:1.3333333;min-height:42px}.has-feedback{position:relative}.has-feedback .form-control{padding-right:50px}.form-control-feedback{position:absolute;top:0;right:0;z-index:2;display:block;width:40px;height:40px;line-height:40px;text-align:center;pointer-events:none}.input-lg+.form-control-feedback{width:57px;height:57px;line-height:57px}.input-sm+.form-control-feedback{width:33px;height:33px;line-height:33px}.has-success .help-block,.has-success .control-label,.has-success .radio,.has-success .checkbox,.has-success .radio-inline,.has-success .checkbox-inline,.has-success.radio label,.has-success.checkbox label,.has-success.radio-inline label,.has-success.checkbox-inline label{color:#3fad46}.has-success .form-control{border-color:#3fad46;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075)}.has-success .form-control:focus{border-color:#318837;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #81d186;box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #81d186}.has-success .input-group-addon{color:#3fad46;border-color:#3fad46;background-color:#dff0d8}.has-success .form-control-feedback{color:#3fad46}.has-warning .help-block,.has-warning .control-label,.has-warning .radio,.has-warning .checkbox,.has-warning .radio-inline,.has-warning .checkbox-inline,.has-warning.radio label,.has-warning.checkbox label,.has-warning.radio-inline label,.has-warning.checkbox-inline label{color:#f0ad4e}.has-warning .form-control{border-color:#f0ad4e;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075)}.has-warning .form-control:focus{border-color:#ec971f;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #f8d9ac;box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #f8d9ac}.has-warning .input-group-addon{color:#f0ad4e;border-color:#f0ad4e;background-color:#fcf8e3}.has-warning .form-control-feedback{color:#f0ad4e}.has-error .help-block,.has-error .control-label,.has-error .radio,.has-error .checkbox,.has-error .radio-inline,.has-error .checkbox-inline,.has-error.radio label,.has-error.checkbox label,.has-error.radio-inline label,.has-error.checkbox-inline label{color:#d9534f}.has-error .form-control{border-color:#d9534f;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075);box-shadow:inset 0 1px 1px rgba(0,0,0,0.075)}.has-error .form-control:focus{border-color:#c9302c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #eba5a3;box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 6px #eba5a3}.has-error .input-group-addon{color:#d9534f;border-color:#d9534f;background-color:#f2dede}.has-error .form-control-feedback{color:#d9534f}.has-feedback label~.form-control-feedback{top:27px}.has-feedback label.sr-only~.form-control-feedback{top:0}.help-block{display:block;margin-top:5px;margin-bottom:10px;color:#737373}@media (min-width:768px){.form-inline .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.form-inline .form-control{display:inline-block;width:auto;vertical-align:middle}.form-inline .form-control-static{display:inline-block}.form-inline .input-group{display:inline-table;vertical-align:middle}.form-inline .input-group .input-group-addon,.form-inline .input-group .input-group-btn,.form-inline .input-group .form-control{width:auto}.form-inline .input-group>.form-control{width:100%}.form-inline .control-label{margin-bottom:0;vertical-align:middle}.form-inline .radio,.form-inline .checkbox{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle}.form-inline .radio label,.form-inline .checkbox label{padding-left:0}.form-inline .radio input[type="radio"],.form-inline .checkbox input[type="checkbox"]{position:relative;margin-left:0}.form-inline .has-feedback .form-control-feedback{top:0}}.form-horizontal .radio,.form-horizontal .checkbox,.form-horizontal .radio-inline,.form-horizontal .checkbox-inline{margin-top:0;margin-bottom:0;padding-top:9px}.form-horizontal .radio,.form-horizontal .checkbox{min-height:31px}.form-horizontal .form-group{margin-left:-15px;margin-right:-15px}@media (min-width:768px){.form-horizontal .control-label{text-align:right;margin-bottom:0;padding-top:9px}}.form-horizontal .has-feedback .form-control-feedback{right:15px}@media (min-width:768px){.form-horizontal .form-group-lg .control-label{padding-top:19.6666662px}}@media (min-width:768px){.form-horizontal .form-group-sm .control-label{padding-top:6px}}.btn{display:inline-block;margin-bottom:0;font-weight:normal;text-align:center;vertical-align:middle;-ms-touch-action:manipulation;touch-action:manipulation;cursor:pointer;background-image:none;border:1px solid transparent;white-space:nowrap;padding:8px 12px;font-size:16px;line-height:1.42857143;border-radius:4px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.btn:focus,.btn:active:focus,.btn.active:focus,.btn.focus,.btn:active.focus,.btn.active.focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.btn:hover,.btn:focus,.btn.focus{color:#333333;text-decoration:none}.btn:active,.btn.active{outline:0;background-image:none;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,0.125);box-shadow:inset 0 3px 5px rgba(0,0,0,0.125)}.btn.disabled,.btn[disabled],fieldset[disabled] .btn{cursor:not-allowed;pointer-events:none;opacity:0.65;filter:alpha(opacity=65);-webkit-box-shadow:none;box-shadow:none}.btn-default{color:#333333;background-color:#ffffff;border-color:#dddddd}.btn-default:hover,.btn-default:focus,.btn-default.focus,.btn-default:active,.btn-default.active,.open>.dropdown-toggle.btn-default{color:#333333;background-color:#e6e6e6;border-color:#bebebe}.btn-default:active,.btn-default.active,.open>.dropdown-toggle.btn-default{background-image:none}.btn-default.disabled,.btn-default[disabled],fieldset[disabled] .btn-default,.btn-default.disabled:hover,.btn-default[disabled]:hover,fieldset[disabled] .btn-default:hover,.btn-default.disabled:focus,.btn-default[disabled]:focus,fieldset[disabled] .btn-default:focus,.btn-default.disabled.focus,.btn-default[disabled].focus,fieldset[disabled] .btn-default.focus,.btn-default.disabled:active,.btn-default[disabled]:active,fieldset[disabled] .btn-default:active,.btn-default.disabled.active,.btn-default[disabled].active,fieldset[disabled] .btn-default.active{background-color:#ffffff;border-color:#dddddd}.btn-default .badge{color:#ffffff;background-color:#333333}.btn-primary{color:#ffffff;background-color:#4582ec;border-color:#4582ec}.btn-primary:hover,.btn-primary:focus,.btn-primary.focus,.btn-primary:active,.btn-primary.active,.open>.dropdown-toggle.btn-primary{color:#ffffff;background-color:#1863e6;border-color:#175fdd}.btn-primary:active,.btn-primary.active,.open>.dropdown-toggle.btn-primary{background-image:none}.btn-primary.disabled,.btn-primary[disabled],fieldset[disabled] .btn-primary,.btn-primary.disabled:hover,.btn-primary[disabled]:hover,fieldset[disabled] .btn-primary:hover,.btn-primary.disabled:focus,.btn-primary[disabled]:focus,fieldset[disabled] .btn-primary:focus,.btn-primary.disabled.focus,.btn-primary[disabled].focus,fieldset[disabled] .btn-primary.focus,.btn-primary.disabled:active,.btn-primary[disabled]:active,fieldset[disabled] .btn-primary:active,.btn-primary.disabled.active,.btn-primary[disabled].active,fieldset[disabled] .btn-primary.active{background-color:#4582ec;border-color:#4582ec}.btn-primary .badge{color:#4582ec;background-color:#ffffff}.btn-success{color:#ffffff;background-color:#3fad46;border-color:#3fad46}.btn-success:hover,.btn-success:focus,.btn-success.focus,.btn-success:active,.btn-success.active,.open>.dropdown-toggle.btn-success{color:#ffffff;background-color:#318837;border-color:#2f8034}.btn-success:active,.btn-success.active,.open>.dropdown-toggle.btn-success{background-image:none}.btn-success.disabled,.btn-success[disabled],fieldset[disabled] .btn-success,.btn-success.disabled:hover,.btn-success[disabled]:hover,fieldset[disabled] .btn-success:hover,.btn-success.disabled:focus,.btn-success[disabled]:focus,fieldset[disabled] .btn-success:focus,.btn-success.disabled.focus,.btn-success[disabled].focus,fieldset[disabled] .btn-success.focus,.btn-success.disabled:active,.btn-success[disabled]:active,fieldset[disabled] .btn-success:active,.btn-success.disabled.active,.btn-success[disabled].active,fieldset[disabled] .btn-success.active{background-color:#3fad46;border-color:#3fad46}.btn-success .badge{color:#3fad46;background-color:#ffffff}.btn-info{color:#ffffff;background-color:#5bc0de;border-color:#5bc0de}.btn-info:hover,.btn-info:focus,.btn-info.focus,.btn-info:active,.btn-info.active,.open>.dropdown-toggle.btn-info{color:#ffffff;background-color:#31b0d5;border-color:#2aabd2}.btn-info:active,.btn-info.active,.open>.dropdown-toggle.btn-info{background-image:none}.btn-info.disabled,.btn-info[disabled],fieldset[disabled] .btn-info,.btn-info.disabled:hover,.btn-info[disabled]:hover,fieldset[disabled] .btn-info:hover,.btn-info.disabled:focus,.btn-info[disabled]:focus,fieldset[disabled] .btn-info:focus,.btn-info.disabled.focus,.btn-info[disabled].focus,fieldset[disabled] .btn-info.focus,.btn-info.disabled:active,.btn-info[disabled]:active,fieldset[disabled] .btn-info:active,.btn-info.disabled.active,.btn-info[disabled].active,fieldset[disabled] .btn-info.active{background-color:#5bc0de;border-color:#5bc0de}.btn-info .badge{color:#5bc0de;background-color:#ffffff}.btn-warning{color:#ffffff;background-color:#f0ad4e;border-color:#f0ad4e}.btn-warning:hover,.btn-warning:focus,.btn-warning.focus,.btn-warning:active,.btn-warning.active,.open>.dropdown-toggle.btn-warning{color:#ffffff;background-color:#ec971f;border-color:#eb9316}.btn-warning:active,.btn-warning.active,.open>.dropdown-toggle.btn-warning{background-image:none}.btn-warning.disabled,.btn-warning[disabled],fieldset[disabled] .btn-warning,.btn-warning.disabled:hover,.btn-warning[disabled]:hover,fieldset[disabled] .btn-warning:hover,.btn-warning.disabled:focus,.btn-warning[disabled]:focus,fieldset[disabled] .btn-warning:focus,.btn-warning.disabled.focus,.btn-warning[disabled].focus,fieldset[disabled] .btn-warning.focus,.btn-warning.disabled:active,.btn-warning[disabled]:active,fieldset[disabled] .btn-warning:active,.btn-warning.disabled.active,.btn-warning[disabled].active,fieldset[disabled] .btn-warning.active{background-color:#f0ad4e;border-color:#f0ad4e}.btn-warning .badge{color:#f0ad4e;background-color:#ffffff}.btn-danger{color:#ffffff;background-color:#d9534f;border-color:#d9534f}.btn-danger:hover,.btn-danger:focus,.btn-danger.focus,.btn-danger:active,.btn-danger.active,.open>.dropdown-toggle.btn-danger{color:#ffffff;background-color:#c9302c;border-color:#c12e2a}.btn-danger:active,.btn-danger.active,.open>.dropdown-toggle.btn-danger{background-image:none}.btn-danger.disabled,.btn-danger[disabled],fieldset[disabled] .btn-danger,.btn-danger.disabled:hover,.btn-danger[disabled]:hover,fieldset[disabled] .btn-danger:hover,.btn-danger.disabled:focus,.btn-danger[disabled]:focus,fieldset[disabled] .btn-danger:focus,.btn-danger.disabled.focus,.btn-danger[disabled].focus,fieldset[disabled] .btn-danger.focus,.btn-danger.disabled:active,.btn-danger[disabled]:active,fieldset[disabled] .btn-danger:active,.btn-danger.disabled.active,.btn-danger[disabled].active,fieldset[disabled] .btn-danger.active{background-color:#d9534f;border-color:#d9534f}.btn-danger .badge{color:#d9534f;background-color:#ffffff}.btn-link{color:#4582ec;font-weight:normal;border-radius:0}.btn-link,.btn-link:active,.btn-link.active,.btn-link[disabled],fieldset[disabled] .btn-link{background-color:transparent;-webkit-box-shadow:none;box-shadow:none}.btn-link,.btn-link:hover,.btn-link:focus,.btn-link:active{border-color:transparent}.btn-link:hover,.btn-link:focus{color:#134fb8;text-decoration:underline;background-color:transparent}.btn-link[disabled]:hover,fieldset[disabled] .btn-link:hover,.btn-link[disabled]:focus,fieldset[disabled] .btn-link:focus{color:#b3b3b3;text-decoration:none}.btn-lg,.btn-group-lg>.btn{padding:14px 16px;font-size:20px;line-height:1.3333333;border-radius:6px}.btn-sm,.btn-group-sm>.btn{padding:5px 10px;font-size:14px;line-height:1.5;border-radius:3px}.btn-xs,.btn-group-xs>.btn{padding:1px 5px;font-size:14px;line-height:1.5;border-radius:3px}.btn-block{display:block;width:100%}.btn-block+.btn-block{margin-top:5px}input[type="submit"].btn-block,input[type="reset"].btn-block,input[type="button"].btn-block{width:100%}.fade{opacity:0;-webkit-transition:opacity 0.15s linear;-o-transition:opacity 0.15s linear;transition:opacity 0.15s linear}.fade.in{opacity:1}.collapse{display:none}.collapse.in{display:block}tr.collapse.in{display:table-row}tbody.collapse.in{display:table-row-group}.collapsing{position:relative;height:0;overflow:hidden;-webkit-transition-property:height, visibility;-o-transition-property:height, visibility;transition-property:height, visibility;-webkit-transition-duration:0.35s;-o-transition-duration:0.35s;transition-duration:0.35s;-webkit-transition-timing-function:ease;-o-transition-timing-function:ease;transition-timing-function:ease}.caret{display:inline-block;width:0;height:0;margin-left:2px;vertical-align:middle;border-top:4px dashed;border-right:4px solid transparent;border-left:4px solid transparent}.dropup,.dropdown{position:relative}.dropdown-toggle:focus{outline:0}.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:160px;padding:5px 0;margin:2px 0 0;list-style:none;font-size:16px;text-align:left;background-color:#ffffff;border:1px solid #cccccc;border:1px solid rgba(0,0,0,0.15);border-radius:4px;-webkit-box-shadow:0 6px 12px rgba(0,0,0,0.175);box-shadow:0 6px 12px rgba(0,0,0,0.175);-webkit-background-clip:padding-box;background-clip:padding-box}.dropdown-menu.pull-right{right:0;left:auto}.dropdown-menu .divider{height:1px;margin:10px 0;overflow:hidden;background-color:#e5e5e5}.dropdown-menu>li>a{display:block;padding:3px 20px;clear:both;font-weight:normal;line-height:1.42857143;color:#333333;white-space:nowrap}.dropdown-menu>li>a:hover,.dropdown-menu>li>a:focus{text-decoration:none;color:#ffffff;background-color:#4582ec}.dropdown-menu>.active>a,.dropdown-menu>.active>a:hover,.dropdown-menu>.active>a:focus{color:#ffffff;text-decoration:none;outline:0;background-color:#4582ec}.dropdown-menu>.disabled>a,.dropdown-menu>.disabled>a:hover,.dropdown-menu>.disabled>a:focus{color:#b3b3b3}.dropdown-menu>.disabled>a:hover,.dropdown-menu>.disabled>a:focus{text-decoration:none;background-color:transparent;background-image:none;filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);cursor:not-allowed}.open>.dropdown-menu{display:block}.open>a{outline:0}.dropdown-menu-right{left:auto;right:0}.dropdown-menu-left{left:0;right:auto}.dropdown-header{display:block;padding:3px 20px;font-size:14px;line-height:1.42857143;color:#b3b3b3;white-space:nowrap}.dropdown-backdrop{position:fixed;left:0;right:0;bottom:0;top:0;z-index:990}.pull-right>.dropdown-menu{right:0;left:auto}.dropup .caret,.navbar-fixed-bottom .dropdown .caret{border-top:0;border-bottom:4px solid;content:""}.dropup .dropdown-menu,.navbar-fixed-bottom .dropdown .dropdown-menu{top:auto;bottom:100%;margin-bottom:2px}@media (min-width:768px){.navbar-right .dropdown-menu{left:auto;right:0}.navbar-right .dropdown-menu-left{left:0;right:auto}}.btn-group,.btn-group-vertical{position:relative;display:inline-block;vertical-align:middle}.btn-group>.btn,.btn-group-vertical>.btn{position:relative;float:left}.btn-group>.btn:hover,.btn-group-vertical>.btn:hover,.btn-group>.btn:focus,.btn-group-vertical>.btn:focus,.btn-group>.btn:active,.btn-group-vertical>.btn:active,.btn-group>.btn.active,.btn-group-vertical>.btn.active{z-index:2}.btn-group .btn+.btn,.btn-group .btn+.btn-group,.btn-group .btn-group+.btn,.btn-group .btn-group+.btn-group{margin-left:-1px}.btn-toolbar{margin-left:-5px}.btn-toolbar .btn-group,.btn-toolbar .input-group{float:left}.btn-toolbar>.btn,.btn-toolbar>.btn-group,.btn-toolbar>.input-group{margin-left:5px}.btn-group>.btn:not(:first-child):not(:last-child):not(.dropdown-toggle){border-radius:0}.btn-group>.btn:first-child{margin-left:0}.btn-group>.btn:first-child:not(:last-child):not(.dropdown-toggle){border-bottom-right-radius:0;border-top-right-radius:0}.btn-group>.btn:last-child:not(:first-child),.btn-group>.dropdown-toggle:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0}.btn-group>.btn-group{float:left}.btn-group>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group>.btn-group:first-child:not(:last-child)>.btn:last-child,.btn-group>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-bottom-right-radius:0;border-top-right-radius:0}.btn-group>.btn-group:last-child:not(:first-child)>.btn:first-child{border-bottom-left-radius:0;border-top-left-radius:0}.btn-group .dropdown-toggle:active,.btn-group.open .dropdown-toggle{outline:0}.btn-group>.btn+.dropdown-toggle{padding-left:8px;padding-right:8px}.btn-group>.btn-lg+.dropdown-toggle{padding-left:12px;padding-right:12px}.btn-group.open .dropdown-toggle{-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,0.125);box-shadow:inset 0 3px 5px rgba(0,0,0,0.125)}.btn-group.open .dropdown-toggle.btn-link{-webkit-box-shadow:none;box-shadow:none}.btn .caret{margin-left:0}.btn-lg .caret{border-width:5px 5px 0;border-bottom-width:0}.dropup .btn-lg .caret{border-width:0 5px 5px}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group,.btn-group-vertical>.btn-group>.btn{display:block;float:none;width:100%;max-width:100%}.btn-group-vertical>.btn-group>.btn{float:none}.btn-group-vertical>.btn+.btn,.btn-group-vertical>.btn+.btn-group,.btn-group-vertical>.btn-group+.btn,.btn-group-vertical>.btn-group+.btn-group{margin-top:-1px;margin-left:0}.btn-group-vertical>.btn:not(:first-child):not(:last-child){border-radius:0}.btn-group-vertical>.btn:first-child:not(:last-child){border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn:last-child:not(:first-child){border-bottom-left-radius:4px;border-top-right-radius:0;border-top-left-radius:0}.btn-group-vertical>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group-vertical>.btn-group:first-child:not(:last-child)>.btn:last-child,.btn-group-vertical>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn-group:last-child:not(:first-child)>.btn:first-child{border-top-right-radius:0;border-top-left-radius:0}.btn-group-justified{display:table;width:100%;table-layout:fixed;border-collapse:separate}.btn-group-justified>.btn,.btn-group-justified>.btn-group{float:none;display:table-cell;width:1%}.btn-group-justified>.btn-group .btn{width:100%}.btn-group-justified>.btn-group .dropdown-menu{left:auto}[data-toggle="buttons"]>.btn input[type="radio"],[data-toggle="buttons"]>.btn-group>.btn input[type="radio"],[data-toggle="buttons"]>.btn input[type="checkbox"],[data-toggle="buttons"]>.btn-group>.btn input[type="checkbox"]{position:absolute;clip:rect(0, 0, 0, 0);pointer-events:none}.input-group{position:relative;display:table;border-collapse:separate}.input-group[class*="col-"]{float:none;padding-left:0;padding-right:0}.input-group .form-control{position:relative;z-index:2;float:left;width:100%;margin-bottom:0}.input-group-lg>.form-control,.input-group-lg>.input-group-addon,.input-group-lg>.input-group-btn>.btn{height:57px;padding:14px 16px;font-size:20px;line-height:1.3333333;border-radius:6px}select.input-group-lg>.form-control,select.input-group-lg>.input-group-addon,select.input-group-lg>.input-group-btn>.btn{height:57px;line-height:57px}textarea.input-group-lg>.form-control,textarea.input-group-lg>.input-group-addon,textarea.input-group-lg>.input-group-btn>.btn,select[multiple].input-group-lg>.form-control,select[multiple].input-group-lg>.input-group-addon,select[multiple].input-group-lg>.input-group-btn>.btn{height:auto}.input-group-sm>.form-control,.input-group-sm>.input-group-addon,.input-group-sm>.input-group-btn>.btn{height:33px;padding:5px 10px;font-size:14px;line-height:1.5;border-radius:3px}select.input-group-sm>.form-control,select.input-group-sm>.input-group-addon,select.input-group-sm>.input-group-btn>.btn{height:33px;line-height:33px}textarea.input-group-sm>.form-control,textarea.input-group-sm>.input-group-addon,textarea.input-group-sm>.input-group-btn>.btn,select[multiple].input-group-sm>.form-control,select[multiple].input-group-sm>.input-group-addon,select[multiple].input-group-sm>.input-group-btn>.btn{height:auto}.input-group-addon,.input-group-btn,.input-group .form-control{display:table-cell}.input-group-addon:not(:first-child):not(:last-child),.input-group-btn:not(:first-child):not(:last-child),.input-group .form-control:not(:first-child):not(:last-child){border-radius:0}.input-group-addon,.input-group-btn{width:1%;white-space:nowrap;vertical-align:middle}.input-group-addon{padding:8px 12px;font-size:16px;font-weight:normal;line-height:1;color:#333333;text-align:center;background-color:#eeeeee;border:1px solid #dddddd;border-radius:4px}.input-group-addon.input-sm{padding:5px 10px;font-size:14px;border-radius:3px}.input-group-addon.input-lg{padding:14px 16px;font-size:20px;border-radius:6px}.input-group-addon input[type="radio"],.input-group-addon input[type="checkbox"]{margin-top:0}.input-group .form-control:first-child,.input-group-addon:first-child,.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group>.btn,.input-group-btn:first-child>.dropdown-toggle,.input-group-btn:last-child>.btn:not(:last-child):not(.dropdown-toggle),.input-group-btn:last-child>.btn-group:not(:last-child)>.btn{border-bottom-right-radius:0;border-top-right-radius:0}.input-group-addon:first-child{border-right:0}.input-group .form-control:last-child,.input-group-addon:last-child,.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group>.btn,.input-group-btn:last-child>.dropdown-toggle,.input-group-btn:first-child>.btn:not(:first-child),.input-group-btn:first-child>.btn-group:not(:first-child)>.btn{border-bottom-left-radius:0;border-top-left-radius:0}.input-group-addon:last-child{border-left:0}.input-group-btn{position:relative;font-size:0;white-space:nowrap}.input-group-btn>.btn{position:relative}.input-group-btn>.btn+.btn{margin-left:-1px}.input-group-btn>.btn:hover,.input-group-btn>.btn:focus,.input-group-btn>.btn:active{z-index:2}.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group{margin-right:-1px}.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group{margin-left:-1px}.nav{margin-bottom:0;padding-left:0;list-style:none}.nav>li{position:relative;display:block}.nav>li>a{position:relative;display:block;padding:15px 30px}.nav>li>a:hover,.nav>li>a:focus{text-decoration:none;background-color:#eeeeee}.nav>li.disabled>a{color:#b3b3b3}.nav>li.disabled>a:hover,.nav>li.disabled>a:focus{color:#b3b3b3;text-decoration:none;background-color:transparent;cursor:not-allowed}.nav .open>a,.nav .open>a:hover,.nav .open>a:focus{background-color:#eeeeee;border-color:#4582ec}.nav .nav-divider{height:1px;margin:10px 0;overflow:hidden;background-color:#e5e5e5}.nav>li>a>img{max-width:none}.nav-tabs{border-bottom:1px solid #dddddd}.nav-tabs>li{float:left;margin-bottom:-1px}.nav-tabs>li>a{margin-right:2px;line-height:1.42857143;border:1px solid transparent;border-radius:4px 4px 0 0}.nav-tabs>li>a:hover{border-color:#eeeeee #eeeeee #dddddd}.nav-tabs>li.active>a,.nav-tabs>li.active>a:hover,.nav-tabs>li.active>a:focus{color:#555555;background-color:#ffffff;border:1px solid #dddddd;border-bottom-color:transparent;cursor:default}.nav-tabs.nav-justified{width:100%;border-bottom:0}.nav-tabs.nav-justified>li{float:none}.nav-tabs.nav-justified>li>a{text-align:center;margin-bottom:5px}.nav-tabs.nav-justified>.dropdown .dropdown-menu{top:auto;left:auto}@media (min-width:768px){.nav-tabs.nav-justified>li{display:table-cell;width:1%}.nav-tabs.nav-justified>li>a{margin-bottom:0}}.nav-tabs.nav-justified>li>a{margin-right:0;border-radius:4px}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:hover,.nav-tabs.nav-justified>.active>a:focus{border:1px solid #dddddd}@media (min-width:768px){.nav-tabs.nav-justified>li>a{border-bottom:1px solid #dddddd;border-radius:4px 4px 0 0}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:hover,.nav-tabs.nav-justified>.active>a:focus{border-bottom-color:#ffffff}}.nav-pills>li{float:left}.nav-pills>li>a{border-radius:4px}.nav-pills>li+li{margin-left:2px}.nav-pills>li.active>a,.nav-pills>li.active>a:hover,.nav-pills>li.active>a:focus{color:#ffffff;background-color:#4582ec}.nav-stacked>li{float:none}.nav-stacked>li+li{margin-top:2px;margin-left:0}.nav-justified{width:100%}.nav-justified>li{float:none}.nav-justified>li>a{text-align:center;margin-bottom:5px}.nav-justified>.dropdown .dropdown-menu{top:auto;left:auto}@media (min-width:768px){.nav-justified>li{display:table-cell;width:1%}.nav-justified>li>a{margin-bottom:0}}.nav-tabs-justified{border-bottom:0}.nav-tabs-justified>li>a{margin-right:0;border-radius:4px}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:hover,.nav-tabs-justified>.active>a:focus{border:1px solid #dddddd}@media (min-width:768px){.nav-tabs-justified>li>a{border-bottom:1px solid #dddddd;border-radius:4px 4px 0 0}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:hover,.nav-tabs-justified>.active>a:focus{border-bottom-color:#ffffff}}.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}.nav-tabs .dropdown-menu{margin-top:-1px;border-top-right-radius:0;border-top-left-radius:0}.navbar{position:relative;min-height:65px;margin-bottom:22px;border:1px solid transparent}@media (min-width:768px){.navbar{border-radius:4px}}@media (min-width:768px){.navbar-header{float:left}}.navbar-collapse{overflow-x:visible;padding-right:15px;padding-left:15px;border-top:1px solid transparent;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,0.1);box-shadow:inset 0 1px 0 rgba(255,255,255,0.1);-webkit-overflow-scrolling:touch}.navbar-collapse.in{overflow-y:auto}@media (min-width:768px){.navbar-collapse{width:auto;border-top:0;-webkit-box-shadow:none;box-shadow:none}.navbar-collapse.collapse{display:block !important;height:auto !important;padding-bottom:0;overflow:visible !important}.navbar-collapse.in{overflow-y:visible}.navbar-fixed-top .navbar-collapse,.navbar-static-top .navbar-collapse,.navbar-fixed-bottom .navbar-collapse{padding-left:0;padding-right:0}}.navbar-fixed-top .navbar-collapse,.navbar-fixed-bottom .navbar-collapse{max-height:340px}@media (max-device-width:480px) and (orientation:landscape){.navbar-fixed-top .navbar-collapse,.navbar-fixed-bottom .navbar-collapse{max-height:200px}}.container>.navbar-header,.container-fluid>.navbar-header,.container>.navbar-collapse,.container-fluid>.navbar-collapse{margin-right:-15px;margin-left:-15px}@media (min-width:768px){.container>.navbar-header,.container-fluid>.navbar-header,.container>.navbar-collapse,.container-fluid>.navbar-collapse{margin-right:0;margin-left:0}}.navbar-static-top{z-index:1000;border-width:0 0 1px}@media (min-width:768px){.navbar-static-top{border-radius:0}}.navbar-fixed-top,.navbar-fixed-bottom{position:fixed;right:0;left:0;z-index:1030}@media (min-width:768px){.navbar-fixed-top,.navbar-fixed-bottom{border-radius:0}}.navbar-fixed-top{top:0;border-width:0 0 1px}.navbar-fixed-bottom{bottom:0;margin-bottom:0;border-width:1px 0 0}.navbar-brand{float:left;padding:21.5px 15px;font-size:20px;line-height:22px;height:65px}.navbar-brand:hover,.navbar-brand:focus{text-decoration:none}.navbar-brand>img{display:block}@media (min-width:768px){.navbar>.container .navbar-brand,.navbar>.container-fluid .navbar-brand{margin-left:-15px}}.navbar-toggle{position:relative;float:right;margin-right:15px;padding:9px 10px;margin-top:15.5px;margin-bottom:15.5px;background-color:transparent;background-image:none;border:1px solid transparent;border-radius:4px}.navbar-toggle:focus{outline:0}.navbar-toggle .icon-bar{display:block;width:22px;height:2px;border-radius:1px}.navbar-toggle .icon-bar+.icon-bar{margin-top:4px}@media (min-width:768px){.navbar-toggle{display:none}}.navbar-nav{margin:10.75px -15px}.navbar-nav>li>a{padding-top:10px;padding-bottom:10px;line-height:22px}@media (max-width:767px){.navbar-nav .open .dropdown-menu{position:static;float:none;width:auto;margin-top:0;background-color:transparent;border:0;-webkit-box-shadow:none;box-shadow:none}.navbar-nav .open .dropdown-menu>li>a,.navbar-nav .open .dropdown-menu .dropdown-header{padding:5px 15px 5px 25px}.navbar-nav .open .dropdown-menu>li>a{line-height:22px}.navbar-nav .open .dropdown-menu>li>a:hover,.navbar-nav .open .dropdown-menu>li>a:focus{background-image:none}}@media (min-width:768px){.navbar-nav{float:left;margin:0}.navbar-nav>li{float:left}.navbar-nav>li>a{padding-top:21.5px;padding-bottom:21.5px}}.navbar-form{margin-left:-15px;margin-right:-15px;padding:10px 15px;border-top:1px solid transparent;border-bottom:1px solid transparent;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,0.1),0 1px 0 rgba(255,255,255,0.1);box-shadow:inset 0 1px 0 rgba(255,255,255,0.1),0 1px 0 rgba(255,255,255,0.1);margin-top:12.5px;margin-bottom:12.5px}@media (min-width:768px){.navbar-form .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.navbar-form .form-control{display:inline-block;width:auto;vertical-align:middle}.navbar-form .form-control-static{display:inline-block}.navbar-form .input-group{display:inline-table;vertical-align:middle}.navbar-form .input-group .input-group-addon,.navbar-form .input-group .input-group-btn,.navbar-form .input-group .form-control{width:auto}.navbar-form .input-group>.form-control{width:100%}.navbar-form .control-label{margin-bottom:0;vertical-align:middle}.navbar-form .radio,.navbar-form .checkbox{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle}.navbar-form .radio label,.navbar-form .checkbox label{padding-left:0}.navbar-form .radio input[type="radio"],.navbar-form .checkbox input[type="checkbox"]{position:relative;margin-left:0}.navbar-form .has-feedback .form-control-feedback{top:0}}@media (max-width:767px){.navbar-form .form-group{margin-bottom:5px}.navbar-form .form-group:last-child{margin-bottom:0}}@media (min-width:768px){.navbar-form{width:auto;border:0;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;-webkit-box-shadow:none;box-shadow:none}}.navbar-nav>li>.dropdown-menu{margin-top:0;border-top-right-radius:0;border-top-left-radius:0}.navbar-fixed-bottom .navbar-nav>li>.dropdown-menu{margin-bottom:0;border-top-right-radius:4px;border-top-left-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.navbar-btn{margin-top:12.5px;margin-bottom:12.5px}.navbar-btn.btn-sm{margin-top:16px;margin-bottom:16px}.navbar-btn.btn-xs{margin-top:21.5px;margin-bottom:21.5px}.navbar-text{margin-top:21.5px;margin-bottom:21.5px}@media (min-width:768px){.navbar-text{float:left;margin-left:15px;margin-right:15px}}@media (min-width:768px){.navbar-left{float:left !important}.navbar-right{float:right !important;margin-right:-15px}.navbar-right~.navbar-right{margin-right:0}}.navbar-default{background-color:#ffffff;border-color:#dddddd}.navbar-default .navbar-brand{color:#4582ec}.navbar-default .navbar-brand:hover,.navbar-default .navbar-brand:focus{color:#4582ec;background-color:transparent}.navbar-default .navbar-text{color:#333333}.navbar-default .navbar-nav>li>a{color:#4582ec}.navbar-default .navbar-nav>li>a:hover,.navbar-default .navbar-nav>li>a:focus{color:#4582ec;background-color:transparent}.navbar-default .navbar-nav>.active>a,.navbar-default .navbar-nav>.active>a:hover,.navbar-default .navbar-nav>.active>a:focus{color:#4582ec;background-color:transparent}.navbar-default .navbar-nav>.disabled>a,.navbar-default .navbar-nav>.disabled>a:hover,.navbar-default .navbar-nav>.disabled>a:focus{color:#333333;background-color:transparent}.navbar-default .navbar-toggle{border-color:#dddddd}.navbar-default .navbar-toggle:hover,.navbar-default .navbar-toggle:focus{background-color:#dddddd}.navbar-default .navbar-toggle .icon-bar{background-color:#cccccc}.navbar-default .navbar-collapse,.navbar-default .navbar-form{border-color:#dddddd}.navbar-default .navbar-nav>.open>a,.navbar-default .navbar-nav>.open>a:hover,.navbar-default .navbar-nav>.open>a:focus{background-color:transparent;color:#4582ec}@media (max-width:767px){.navbar-default .navbar-nav .open .dropdown-menu>li>a{color:#4582ec}.navbar-default .navbar-nav .open .dropdown-menu>li>a:hover,.navbar-default .navbar-nav .open .dropdown-menu>li>a:focus{color:#4582ec;background-color:transparent}.navbar-default .navbar-nav .open .dropdown-menu>.active>a,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:hover,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:focus{color:#4582ec;background-color:transparent}.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:hover,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:focus{color:#333333;background-color:transparent}}.navbar-default .navbar-link{color:#4582ec}.navbar-default .navbar-link:hover{color:#4582ec}.navbar-default .btn-link{color:#4582ec}.navbar-default .btn-link:hover,.navbar-default .btn-link:focus{color:#4582ec}.navbar-default .btn-link[disabled]:hover,fieldset[disabled] .navbar-default .btn-link:hover,.navbar-default .btn-link[disabled]:focus,fieldset[disabled] .navbar-default .btn-link:focus{color:#333333}.navbar-inverse{background-color:#ffffff;border-color:#dddddd}.navbar-inverse .navbar-brand{color:#333333}.navbar-inverse .navbar-brand:hover,.navbar-inverse .navbar-brand:focus{color:#333333;background-color:transparent}.navbar-inverse .navbar-text{color:#333333}.navbar-inverse .navbar-nav>li>a{color:#333333}.navbar-inverse .navbar-nav>li>a:hover,.navbar-inverse .navbar-nav>li>a:focus{color:#333333;background-color:transparent}.navbar-inverse .navbar-nav>.active>a,.navbar-inverse .navbar-nav>.active>a:hover,.navbar-inverse .navbar-nav>.active>a:focus{color:#333333;background-color:transparent}.navbar-inverse .navbar-nav>.disabled>a,.navbar-inverse .navbar-nav>.disabled>a:hover,.navbar-inverse .navbar-nav>.disabled>a:focus{color:#cccccc;background-color:transparent}.navbar-inverse .navbar-toggle{border-color:#dddddd}.navbar-inverse .navbar-toggle:hover,.navbar-inverse .navbar-toggle:focus{background-color:#dddddd}.navbar-inverse .navbar-toggle .icon-bar{background-color:#cccccc}.navbar-inverse .navbar-collapse,.navbar-inverse .navbar-form{border-color:#ededed}.navbar-inverse .navbar-nav>.open>a,.navbar-inverse .navbar-nav>.open>a:hover,.navbar-inverse .navbar-nav>.open>a:focus{background-color:transparent;color:#333333}@media (max-width:767px){.navbar-inverse .navbar-nav .open .dropdown-menu>.dropdown-header{border-color:#dddddd}.navbar-inverse .navbar-nav .open .dropdown-menu .divider{background-color:#dddddd}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a{color:#333333}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:hover,.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:focus{color:#333333;background-color:transparent}.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:hover,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:focus{color:#333333;background-color:transparent}.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:hover,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:focus{color:#cccccc;background-color:transparent}}.navbar-inverse .navbar-link{color:#333333}.navbar-inverse .navbar-link:hover{color:#333333}.navbar-inverse .btn-link{color:#333333}.navbar-inverse .btn-link:hover,.navbar-inverse .btn-link:focus{color:#333333}.navbar-inverse .btn-link[disabled]:hover,fieldset[disabled] .navbar-inverse .btn-link:hover,.navbar-inverse .btn-link[disabled]:focus,fieldset[disabled] .navbar-inverse .btn-link:focus{color:#cccccc}.breadcrumb{padding:8px 15px;margin-bottom:22px;list-style:none;background-color:#f5f5f5;border-radius:4px}.breadcrumb>li{display:inline-block}.breadcrumb>li+li:before{content:"/\00a0";padding:0 5px;color:#cccccc}.breadcrumb>.active{color:#b3b3b3}.pagination{display:inline-block;padding-left:0;margin:22px 0;border-radius:4px}.pagination>li{display:inline}.pagination>li>a,.pagination>li>span{position:relative;float:left;padding:8px 12px;line-height:1.42857143;text-decoration:none;color:#333333;background-color:#ffffff;border:1px solid #dddddd;margin-left:-1px}.pagination>li:first-child>a,.pagination>li:first-child>span{margin-left:0;border-bottom-left-radius:4px;border-top-left-radius:4px}.pagination>li:last-child>a,.pagination>li:last-child>span{border-bottom-right-radius:4px;border-top-right-radius:4px}.pagination>li>a:hover,.pagination>li>span:hover,.pagination>li>a:focus,.pagination>li>span:focus{color:#ffffff;background-color:#4582ec;border-color:#4582ec}.pagination>.active>a,.pagination>.active>span,.pagination>.active>a:hover,.pagination>.active>span:hover,.pagination>.active>a:focus,.pagination>.active>span:focus{z-index:2;color:#ffffff;background-color:#4582ec;border-color:#4582ec;cursor:default}.pagination>.disabled>span,.pagination>.disabled>span:hover,.pagination>.disabled>span:focus,.pagination>.disabled>a,.pagination>.disabled>a:hover,.pagination>.disabled>a:focus{color:#b3b3b3;background-color:#ffffff;border-color:#dddddd;cursor:not-allowed}.pagination-lg>li>a,.pagination-lg>li>span{padding:14px 16px;font-size:20px}.pagination-lg>li:first-child>a,.pagination-lg>li:first-child>span{border-bottom-left-radius:6px;border-top-left-radius:6px}.pagination-lg>li:last-child>a,.pagination-lg>li:last-child>span{border-bottom-right-radius:6px;border-top-right-radius:6px}.pagination-sm>li>a,.pagination-sm>li>span{padding:5px 10px;font-size:14px}.pagination-sm>li:first-child>a,.pagination-sm>li:first-child>span{border-bottom-left-radius:3px;border-top-left-radius:3px}.pagination-sm>li:last-child>a,.pagination-sm>li:last-child>span{border-bottom-right-radius:3px;border-top-right-radius:3px}.pager{padding-left:0;margin:22px 0;list-style:none;text-align:center}.pager li{display:inline}.pager li>a,.pager li>span{display:inline-block;padding:5px 14px;background-color:#ffffff;border:1px solid #dddddd;border-radius:15px}.pager li>a:hover,.pager li>a:focus{text-decoration:none;background-color:#4582ec}.pager .next>a,.pager .next>span{float:right}.pager .previous>a,.pager .previous>span{float:left}.pager .disabled>a,.pager .disabled>a:hover,.pager .disabled>a:focus,.pager .disabled>span{color:#b3b3b3;background-color:#ffffff;cursor:not-allowed}.label{display:inline;padding:.2em .6em .3em;font-size:75%;font-weight:bold;line-height:1;color:#ffffff;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25em}a.label:hover,a.label:focus{color:#ffffff;text-decoration:none;cursor:pointer}.label:empty{display:none}.btn .label{position:relative;top:-1px}.label-default{background-color:#ffffff}.label-default[href]:hover,.label-default[href]:focus{background-color:#e6e6e6}.label-primary{background-color:#4582ec}.label-primary[href]:hover,.label-primary[href]:focus{background-color:#1863e6}.label-success{background-color:#3fad46}.label-success[href]:hover,.label-success[href]:focus{background-color:#318837}.label-info{background-color:#5bc0de}.label-info[href]:hover,.label-info[href]:focus{background-color:#31b0d5}.label-warning{background-color:#f0ad4e}.label-warning[href]:hover,.label-warning[href]:focus{background-color:#ec971f}.label-danger{background-color:#d9534f}.label-danger[href]:hover,.label-danger[href]:focus{background-color:#c9302c}.badge{display:inline-block;min-width:10px;padding:3px 7px;font-size:14px;font-weight:bold;color:#ffffff;line-height:1;vertical-align:baseline;white-space:nowrap;text-align:center;background-color:#4582ec;border-radius:10px}.badge:empty{display:none}.btn .badge{position:relative;top:-1px}.btn-xs .badge,.btn-group-xs>.btn .badge{top:0;padding:1px 5px}a.badge:hover,a.badge:focus{color:#ffffff;text-decoration:none;cursor:pointer}.list-group-item.active>.badge,.nav-pills>.active>a>.badge{color:#4582ec;background-color:#ffffff}.list-group-item>.badge{float:right}.list-group-item>.badge+.badge{margin-right:5px}.nav-pills>li>a>.badge{margin-left:3px}.jumbotron{padding:30px 15px;margin-bottom:30px;color:inherit;background-color:#f7f7f7}.jumbotron h1,.jumbotron .h1{color:inherit}.jumbotron p{margin-bottom:15px;font-size:24px;font-weight:200}.jumbotron>hr{border-top-color:#dedede}.container .jumbotron,.container-fluid .jumbotron{border-radius:6px}.jumbotron .container{max-width:100%}@media screen and (min-width:768px){.jumbotron{padding:48px 0}.container .jumbotron,.container-fluid .jumbotron{padding-left:60px;padding-right:60px}.jumbotron h1,.jumbotron .h1{font-size:72px}}.thumbnail{display:block;padding:4px;margin-bottom:22px;line-height:1.42857143;background-color:#ffffff;border:1px solid #dddddd;border-radius:4px;-webkit-transition:border .2s ease-in-out;-o-transition:border .2s ease-in-out;transition:border .2s ease-in-out}.thumbnail>img,.thumbnail a>img{margin-left:auto;margin-right:auto}a.thumbnail:hover,a.thumbnail:focus,a.thumbnail.active{border-color:#4582ec}.thumbnail .caption{padding:9px;color:#333333}.alert{padding:15px;margin-bottom:22px;border:1px solid transparent;border-radius:4px}.alert h4{margin-top:0;color:inherit}.alert .alert-link{font-weight:bold}.alert>p,.alert>ul{margin-bottom:0}.alert>p+p{margin-top:5px}.alert-dismissable,.alert-dismissible{padding-right:35px}.alert-dismissable .close,.alert-dismissible .close{position:relative;top:-2px;right:-21px;color:inherit}.alert-success{background-color:#3fad46;border-color:#3fad46;color:#ffffff}.alert-success hr{border-top-color:#389a3e}.alert-success .alert-link{color:#e6e6e6}.alert-info{background-color:#5bc0de;border-color:#5bc0de;color:#ffffff}.alert-info hr{border-top-color:#46b8da}.alert-info .alert-link{color:#e6e6e6}.alert-warning{background-color:#f0ad4e;border-color:#f0ad4e;color:#ffffff}.alert-warning hr{border-top-color:#eea236}.alert-warning .alert-link{color:#e6e6e6}.alert-danger{background-color:#d9534f;border-color:#d9534f;color:#ffffff}.alert-danger hr{border-top-color:#d43f3a}.alert-danger .alert-link{color:#e6e6e6}@-webkit-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@-o-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}.progress{overflow:hidden;height:22px;margin-bottom:22px;background-color:#f5f5f5;border-radius:4px;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,0.1);box-shadow:inset 0 1px 2px rgba(0,0,0,0.1)}.progress-bar{float:left;width:0%;height:100%;font-size:14px;line-height:22px;color:#ffffff;text-align:center;background-color:#4582ec;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,0.15);box-shadow:inset 0 -1px 0 rgba(0,0,0,0.15);-webkit-transition:width 0.6s ease;-o-transition:width 0.6s ease;transition:width 0.6s ease}.progress-striped .progress-bar,.progress-bar-striped{background-image:-webkit-linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent);background-image:-o-linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent);background-image:linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent);-webkit-background-size:40px 40px;background-size:40px 40px}.progress.active .progress-bar,.progress-bar.active{-webkit-animation:progress-bar-stripes 2s linear infinite;-o-animation:progress-bar-stripes 2s linear infinite;animation:progress-bar-stripes 2s linear infinite}.progress-bar-success{background-color:#3fad46}.progress-striped .progress-bar-success{background-image:-webkit-linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent);background-image:-o-linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent);background-image:linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent)}.progress-bar-info{background-color:#5bc0de}.progress-striped .progress-bar-info{background-image:-webkit-linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent);background-image:-o-linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent);background-image:linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent)}.progress-bar-warning{background-color:#f0ad4e}.progress-striped .progress-bar-warning{background-image:-webkit-linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent);background-image:-o-linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent);background-image:linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent)}.progress-bar-danger{background-color:#d9534f}.progress-striped .progress-bar-danger{background-image:-webkit-linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent);background-image:-o-linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent);background-image:linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent)}.media{margin-top:15px}.media:first-child{margin-top:0}.media,.media-body{zoom:1;overflow:hidden}.media-body{width:10000px}.media-object{display:block}.media-right,.media>.pull-right{padding-left:10px}.media-left,.media>.pull-left{padding-right:10px}.media-left,.media-right,.media-body{display:table-cell;vertical-align:top}.media-middle{vertical-align:middle}.media-bottom{vertical-align:bottom}.media-heading{margin-top:0;margin-bottom:5px}.media-list{padding-left:0;list-style:none}.list-group{margin-bottom:20px;padding-left:0}.list-group-item{position:relative;display:block;padding:10px 15px;margin-bottom:-1px;background-color:#ffffff;border:1px solid #dddddd}.list-group-item:first-child{border-top-right-radius:4px;border-top-left-radius:4px}.list-group-item:last-child{margin-bottom:0;border-bottom-right-radius:4px;border-bottom-left-radius:4px}a.list-group-item{color:#555555}a.list-group-item .list-group-item-heading{color:#333333}a.list-group-item:hover,a.list-group-item:focus{text-decoration:none;color:#555555;background-color:#f5f5f5}.list-group-item.disabled,.list-group-item.disabled:hover,.list-group-item.disabled:focus{background-color:#eeeeee;color:#b3b3b3;cursor:not-allowed}.list-group-item.disabled .list-group-item-heading,.list-group-item.disabled:hover .list-group-item-heading,.list-group-item.disabled:focus .list-group-item-heading{color:inherit}.list-group-item.disabled .list-group-item-text,.list-group-item.disabled:hover .list-group-item-text,.list-group-item.disabled:focus .list-group-item-text{color:#b3b3b3}.list-group-item.active,.list-group-item.active:hover,.list-group-item.active:focus{z-index:2;color:#ffffff;background-color:#4582ec;border-color:#4582ec}.list-group-item.active .list-group-item-heading,.list-group-item.active:hover .list-group-item-heading,.list-group-item.active:focus .list-group-item-heading,.list-group-item.active .list-group-item-heading>small,.list-group-item.active:hover .list-group-item-heading>small,.list-group-item.active:focus .list-group-item-heading>small,.list-group-item.active .list-group-item-heading>.small,.list-group-item.active:hover .list-group-item-heading>.small,.list-group-item.active:focus .list-group-item-heading>.small{color:inherit}.list-group-item.active .list-group-item-text,.list-group-item.active:hover .list-group-item-text,.list-group-item.active:focus .list-group-item-text{color:#fefeff}.list-group-item-success{color:#3fad46;background-color:#dff0d8}a.list-group-item-success{color:#3fad46}a.list-group-item-success .list-group-item-heading{color:inherit}a.list-group-item-success:hover,a.list-group-item-success:focus{color:#3fad46;background-color:#d0e9c6}a.list-group-item-success.active,a.list-group-item-success.active:hover,a.list-group-item-success.active:focus{color:#fff;background-color:#3fad46;border-color:#3fad46}.list-group-item-info{color:#5bc0de;background-color:#d9edf7}a.list-group-item-info{color:#5bc0de}a.list-group-item-info .list-group-item-heading{color:inherit}a.list-group-item-info:hover,a.list-group-item-info:focus{color:#5bc0de;background-color:#c4e3f3}a.list-group-item-info.active,a.list-group-item-info.active:hover,a.list-group-item-info.active:focus{color:#fff;background-color:#5bc0de;border-color:#5bc0de}.list-group-item-warning{color:#f0ad4e;background-color:#fcf8e3}a.list-group-item-warning{color:#f0ad4e}a.list-group-item-warning .list-group-item-heading{color:inherit}a.list-group-item-warning:hover,a.list-group-item-warning:focus{color:#f0ad4e;background-color:#faf2cc}a.list-group-item-warning.active,a.list-group-item-warning.active:hover,a.list-group-item-warning.active:focus{color:#fff;background-color:#f0ad4e;border-color:#f0ad4e}.list-group-item-danger{color:#d9534f;background-color:#f2dede}a.list-group-item-danger{color:#d9534f}a.list-group-item-danger .list-group-item-heading{color:inherit}a.list-group-item-danger:hover,a.list-group-item-danger:focus{color:#d9534f;background-color:#ebcccc}a.list-group-item-danger.active,a.list-group-item-danger.active:hover,a.list-group-item-danger.active:focus{color:#fff;background-color:#d9534f;border-color:#d9534f}.list-group-item-heading{margin-top:0;margin-bottom:5px}.list-group-item-text{margin-bottom:0;line-height:1.3}.panel{margin-bottom:22px;background-color:#ffffff;border:1px solid transparent;border-radius:4px;-webkit-box-shadow:0 1px 1px rgba(0,0,0,0.05);box-shadow:0 1px 1px rgba(0,0,0,0.05)}.panel-body{padding:15px}.panel-heading{padding:10px 15px;border-bottom:1px solid transparent;border-top-right-radius:3px;border-top-left-radius:3px}.panel-heading>.dropdown .dropdown-toggle{color:inherit}.panel-title{margin-top:0;margin-bottom:0;font-size:18px;color:inherit}.panel-title>a,.panel-title>small,.panel-title>.small,.panel-title>small>a,.panel-title>.small>a{color:inherit}.panel-footer{padding:10px 15px;background-color:#ffffff;border-top:1px solid #dddddd;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.list-group,.panel>.panel-collapse>.list-group{margin-bottom:0}.panel>.list-group .list-group-item,.panel>.panel-collapse>.list-group .list-group-item{border-width:1px 0;border-radius:0}.panel>.list-group:first-child .list-group-item:first-child,.panel>.panel-collapse>.list-group:first-child .list-group-item:first-child{border-top:0;border-top-right-radius:3px;border-top-left-radius:3px}.panel>.list-group:last-child .list-group-item:last-child,.panel>.panel-collapse>.list-group:last-child .list-group-item:last-child{border-bottom:0;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel-heading+.list-group .list-group-item:first-child{border-top-width:0}.list-group+.panel-footer{border-top-width:0}.panel>.table,.panel>.table-responsive>.table,.panel>.panel-collapse>.table{margin-bottom:0}.panel>.table caption,.panel>.table-responsive>.table caption,.panel>.panel-collapse>.table caption{padding-left:15px;padding-right:15px}.panel>.table:first-child,.panel>.table-responsive:first-child>.table:first-child{border-top-right-radius:3px;border-top-left-radius:3px}.panel>.table:first-child>thead:first-child>tr:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child{border-top-left-radius:3px;border-top-right-radius:3px}.panel>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table:first-child>thead:first-child>tr:first-child th:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:first-child{border-top-left-radius:3px}.panel>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table:first-child>thead:first-child>tr:first-child th:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:last-child{border-top-right-radius:3px}.panel>.table:last-child,.panel>.table-responsive:last-child>.table:last-child{border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.table:last-child>tbody:last-child>tr:last-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child{border-bottom-left-radius:3px;border-bottom-right-radius:3px}.panel>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:first-child{border-bottom-left-radius:3px}.panel>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:last-child{border-bottom-right-radius:3px}.panel>.panel-body+.table,.panel>.panel-body+.table-responsive,.panel>.table+.panel-body,.panel>.table-responsive+.panel-body{border-top:1px solid #dddddd}.panel>.table>tbody:first-child>tr:first-child th,.panel>.table>tbody:first-child>tr:first-child td{border-top:0}.panel>.table-bordered,.panel>.table-responsive>.table-bordered{border:0}.panel>.table-bordered>thead>tr>th:first-child,.panel>.table-responsive>.table-bordered>thead>tr>th:first-child,.panel>.table-bordered>tbody>tr>th:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:first-child,.panel>.table-bordered>tfoot>tr>th:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:first-child,.panel>.table-bordered>thead>tr>td:first-child,.panel>.table-responsive>.table-bordered>thead>tr>td:first-child,.panel>.table-bordered>tbody>tr>td:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:first-child,.panel>.table-bordered>tfoot>tr>td:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:first-child{border-left:0}.panel>.table-bordered>thead>tr>th:last-child,.panel>.table-responsive>.table-bordered>thead>tr>th:last-child,.panel>.table-bordered>tbody>tr>th:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:last-child,.panel>.table-bordered>tfoot>tr>th:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:last-child,.panel>.table-bordered>thead>tr>td:last-child,.panel>.table-responsive>.table-bordered>thead>tr>td:last-child,.panel>.table-bordered>tbody>tr>td:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:last-child,.panel>.table-bordered>tfoot>tr>td:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:last-child{border-right:0}.panel>.table-bordered>thead>tr:first-child>td,.panel>.table-responsive>.table-bordered>thead>tr:first-child>td,.panel>.table-bordered>tbody>tr:first-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>td,.panel>.table-bordered>thead>tr:first-child>th,.panel>.table-responsive>.table-bordered>thead>tr:first-child>th,.panel>.table-bordered>tbody>tr:first-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>th{border-bottom:0}.panel>.table-bordered>tbody>tr:last-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>td,.panel>.table-bordered>tfoot>tr:last-child>td,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>td,.panel>.table-bordered>tbody>tr:last-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>th,.panel>.table-bordered>tfoot>tr:last-child>th,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>th{border-bottom:0}.panel>.table-responsive{border:0;margin-bottom:0}.panel-group{margin-bottom:22px}.panel-group .panel{margin-bottom:0;border-radius:4px}.panel-group .panel+.panel{margin-top:5px}.panel-group .panel-heading{border-bottom:0}.panel-group .panel-heading+.panel-collapse>.panel-body,.panel-group .panel-heading+.panel-collapse>.list-group{border-top:1px solid #dddddd}.panel-group .panel-footer{border-top:0}.panel-group .panel-footer+.panel-collapse .panel-body{border-bottom:1px solid #dddddd}.panel-default{border-color:#dddddd}.panel-default>.panel-heading{color:#333333;background-color:#f5f5f5;border-color:#dddddd}.panel-default>.panel-heading+.panel-collapse>.panel-body{border-top-color:#dddddd}.panel-default>.panel-heading .badge{color:#f5f5f5;background-color:#333333}.panel-default>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#dddddd}.panel-primary{border-color:#4582ec}.panel-primary>.panel-heading{color:#ffffff;background-color:#4582ec;border-color:#4582ec}.panel-primary>.panel-heading+.panel-collapse>.panel-body{border-top-color:#4582ec}.panel-primary>.panel-heading .badge{color:#4582ec;background-color:#ffffff}.panel-primary>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#4582ec}.panel-success{border-color:#3fad46}.panel-success>.panel-heading{color:#ffffff;background-color:#3fad46;border-color:#3fad46}.panel-success>.panel-heading+.panel-collapse>.panel-body{border-top-color:#3fad46}.panel-success>.panel-heading .badge{color:#3fad46;background-color:#ffffff}.panel-success>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#3fad46}.panel-info{border-color:#5bc0de}.panel-info>.panel-heading{color:#ffffff;background-color:#5bc0de;border-color:#5bc0de}.panel-info>.panel-heading+.panel-collapse>.panel-body{border-top-color:#5bc0de}.panel-info>.panel-heading .badge{color:#5bc0de;background-color:#ffffff}.panel-info>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#5bc0de}.panel-warning{border-color:#f0ad4e}.panel-warning>.panel-heading{color:#ffffff;background-color:#f0ad4e;border-color:#f0ad4e}.panel-warning>.panel-heading+.panel-collapse>.panel-body{border-top-color:#f0ad4e}.panel-warning>.panel-heading .badge{color:#f0ad4e;background-color:#ffffff}.panel-warning>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#f0ad4e}.panel-danger{border-color:#d9534f}.panel-danger>.panel-heading{color:#ffffff;background-color:#d9534f;border-color:#d9534f}.panel-danger>.panel-heading+.panel-collapse>.panel-body{border-top-color:#d9534f}.panel-danger>.panel-heading .badge{color:#d9534f;background-color:#ffffff}.panel-danger>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#d9534f}.embed-responsive{position:relative;display:block;height:0;padding:0;overflow:hidden}.embed-responsive .embed-responsive-item,.embed-responsive iframe,.embed-responsive embed,.embed-responsive object,.embed-responsive video{position:absolute;top:0;left:0;bottom:0;height:100%;width:100%;border:0}.embed-responsive-16by9{padding-bottom:56.25%}.embed-responsive-4by3{padding-bottom:75%}.well{min-height:20px;padding:19px;margin-bottom:20px;background-color:#f7f7f7;border:1px solid #e5e5e5;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.05);box-shadow:inset 0 1px 1px rgba(0,0,0,0.05)}.well blockquote{border-color:#ddd;border-color:rgba(0,0,0,0.15)}.well-lg{padding:24px;border-radius:6px}.well-sm{padding:9px;border-radius:3px}.close{float:right;font-size:24px;font-weight:bold;line-height:1;color:#ffffff;text-shadow:0 1px 0 #ffffff;opacity:0.2;filter:alpha(opacity=20)}.close:hover,.close:focus{color:#ffffff;text-decoration:none;cursor:pointer;opacity:0.5;filter:alpha(opacity=50)}button.close{padding:0;cursor:pointer;background:transparent;border:0;-webkit-appearance:none}.modal-open{overflow:hidden}.modal{display:none;overflow:hidden;position:fixed;top:0;right:0;bottom:0;left:0;z-index:1050;-webkit-overflow-scrolling:touch;outline:0}.modal.fade .modal-dialog{-webkit-transform:translate(0, -25%);-ms-transform:translate(0, -25%);-o-transform:translate(0, -25%);transform:translate(0, -25%);-webkit-transition:-webkit-transform .3s ease-out;-o-transition:-o-transform .3s ease-out;transition:transform .3s ease-out}.modal.in .modal-dialog{-webkit-transform:translate(0, 0);-ms-transform:translate(0, 0);-o-transform:translate(0, 0);transform:translate(0, 0)}.modal-open .modal{overflow-x:hidden;overflow-y:auto}.modal-dialog{position:relative;width:auto;margin:10px}.modal-content{position:relative;background-color:#ffffff;border:1px solid #999999;border:1px solid rgba(0,0,0,0.2);border-radius:6px;-webkit-box-shadow:0 3px 9px rgba(0,0,0,0.5);box-shadow:0 3px 9px rgba(0,0,0,0.5);-webkit-background-clip:padding-box;background-clip:padding-box;outline:0}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1040;background-color:#000000}.modal-backdrop.fade{opacity:0;filter:alpha(opacity=0)}.modal-backdrop.in{opacity:0.5;filter:alpha(opacity=50)}.modal-header{padding:15px;border-bottom:1px solid #e5e5e5;min-height:16.42857143px}.modal-header .close{margin-top:-2px}.modal-title{margin:0;line-height:1.42857143}.modal-body{position:relative;padding:20px}.modal-footer{padding:20px;text-align:right;border-top:1px solid #e5e5e5}.modal-footer .btn+.btn{margin-left:5px;margin-bottom:0}.modal-footer .btn-group .btn+.btn{margin-left:-1px}.modal-footer .btn-block+.btn-block{margin-left:0}.modal-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}@media (min-width:768px){.modal-dialog{width:600px;margin:30px auto}.modal-content{-webkit-box-shadow:0 5px 15px rgba(0,0,0,0.5);box-shadow:0 5px 15px rgba(0,0,0,0.5)}.modal-sm{width:300px}}@media (min-width:992px){.modal-lg{width:900px}}.tooltip{position:absolute;z-index:1070;display:block;font-size:14px;font-weight:normal;line-height:1.4;opacity:0;filter:alpha(opacity=0)}.tooltip.in{opacity:0.9;filter:alpha(opacity=90)}.tooltip.top{margin-top:-3px;padding:5px 0}.tooltip.right{margin-left:3px;padding:0 5px}.tooltip.bottom{margin-top:3px;padding:5px 0}.tooltip.left{margin-left:-3px;padding:0 5px}.tooltip-inner{max-width:200px;padding:3px 8px;color:#ffffff;text-align:center;text-decoration:none;background-color:#000000;border-radius:4px}.tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid}.tooltip.top .tooltip-arrow{bottom:0;left:50%;margin-left:-5px;border-width:5px 5px 0;border-top-color:#000000}.tooltip.top-left .tooltip-arrow{bottom:0;right:5px;margin-bottom:-5px;border-width:5px 5px 0;border-top-color:#000000}.tooltip.top-right .tooltip-arrow{bottom:0;left:5px;margin-bottom:-5px;border-width:5px 5px 0;border-top-color:#000000}.tooltip.right .tooltip-arrow{top:50%;left:0;margin-top:-5px;border-width:5px 5px 5px 0;border-right-color:#000000}.tooltip.left .tooltip-arrow{top:50%;right:0;margin-top:-5px;border-width:5px 0 5px 5px;border-left-color:#000000}.tooltip.bottom .tooltip-arrow{top:0;left:50%;margin-left:-5px;border-width:0 5px 5px;border-bottom-color:#000000}.tooltip.bottom-left .tooltip-arrow{top:0;right:5px;margin-top:-5px;border-width:0 5px 5px;border-bottom-color:#000000}.tooltip.bottom-right .tooltip-arrow{top:0;left:5px;margin-top:-5px;border-width:0 5px 5px;border-bottom-color:#000000}.popover{position:absolute;top:0;left:0;z-index:1060;display:none;max-width:276px;padding:1px;font-size:16px;font-weight:normal;line-height:1.42857143;text-align:left;background-color:#ffffff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #cccccc;border:1px solid rgba(0,0,0,0.2);border-radius:6px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,0.2);box-shadow:0 5px 10px rgba(0,0,0,0.2);white-space:normal}.popover.top{margin-top:-10px}.popover.right{margin-left:10px}.popover.bottom{margin-top:10px}.popover.left{margin-left:-10px}.popover-title{margin:0;padding:8px 14px;font-size:16px;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;border-radius:5px 5px 0 0}.popover-content{padding:9px 14px}.popover>.arrow,.popover>.arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.popover>.arrow{border-width:11px}.popover>.arrow:after{border-width:10px;content:""}.popover.top>.arrow{left:50%;margin-left:-11px;border-bottom-width:0;border-top-color:#999999;border-top-color:rgba(0,0,0,0.25);bottom:-11px}.popover.top>.arrow:after{content:" ";bottom:1px;margin-left:-10px;border-bottom-width:0;border-top-color:#ffffff}.popover.right>.arrow{top:50%;left:-11px;margin-top:-11px;border-left-width:0;border-right-color:#999999;border-right-color:rgba(0,0,0,0.25)}.popover.right>.arrow:after{content:" ";left:1px;bottom:-10px;border-left-width:0;border-right-color:#ffffff}.popover.bottom>.arrow{left:50%;margin-left:-11px;border-top-width:0;border-bottom-color:#999999;border-bottom-color:rgba(0,0,0,0.25);top:-11px}.popover.bottom>.arrow:after{content:" ";top:1px;margin-left:-10px;border-top-width:0;border-bottom-color:#ffffff}.popover.left>.arrow{top:50%;right:-11px;margin-top:-11px;border-right-width:0;border-left-color:#999999;border-left-color:rgba(0,0,0,0.25)}.popover.left>.arrow:after{content:" ";right:1px;border-right-width:0;border-left-color:#ffffff;bottom:-10px}.carousel{position:relative}.carousel-inner{position:relative;overflow:hidden;width:100%}.carousel-inner>.item{display:none;position:relative;-webkit-transition:.6s ease-in-out left;-o-transition:.6s ease-in-out left;transition:.6s ease-in-out left}.carousel-inner>.item>img,.carousel-inner>.item>a>img{line-height:1}@media all and (transform-3d),(-webkit-transform-3d){.carousel-inner>.item{-webkit-transition:-webkit-transform .6s ease-in-out;-o-transition:-o-transform .6s ease-in-out;transition:transform .6s ease-in-out;-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-perspective:1000;perspective:1000}.carousel-inner>.item.next,.carousel-inner>.item.active.right{-webkit-transform:translate3d(100%, 0, 0);transform:translate3d(100%, 0, 0);left:0}.carousel-inner>.item.prev,.carousel-inner>.item.active.left{-webkit-transform:translate3d(-100%, 0, 0);transform:translate3d(-100%, 0, 0);left:0}.carousel-inner>.item.next.left,.carousel-inner>.item.prev.right,.carousel-inner>.item.active{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);left:0}}.carousel-inner>.active,.carousel-inner>.next,.carousel-inner>.prev{display:block}.carousel-inner>.active{left:0}.carousel-inner>.next,.carousel-inner>.prev{position:absolute;top:0;width:100%}.carousel-inner>.next{left:100%}.carousel-inner>.prev{left:-100%}.carousel-inner>.next.left,.carousel-inner>.prev.right{left:0}.carousel-inner>.active.left{left:-100%}.carousel-inner>.active.right{left:100%}.carousel-control{position:absolute;top:0;left:0;bottom:0;width:15%;opacity:0.5;filter:alpha(opacity=50);font-size:20px;color:#ffffff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,0.6)}.carousel-control.left{background-image:-webkit-linear-gradient(left, rgba(0,0,0,0.5) 0, rgba(0,0,0,0.0001) 100%);background-image:-o-linear-gradient(left, rgba(0,0,0,0.5) 0, rgba(0,0,0,0.0001) 100%);background-image:-webkit-gradient(linear, left top, right top, from(rgba(0,0,0,0.5)), to(rgba(0,0,0,0.0001)));background-image:linear-gradient(to right, rgba(0,0,0,0.5) 0, rgba(0,0,0,0.0001) 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1)}.carousel-control.right{left:auto;right:0;background-image:-webkit-linear-gradient(left, rgba(0,0,0,0.0001) 0, rgba(0,0,0,0.5) 100%);background-image:-o-linear-gradient(left, rgba(0,0,0,0.0001) 0, rgba(0,0,0,0.5) 100%);background-image:-webkit-gradient(linear, left top, right top, from(rgba(0,0,0,0.0001)), to(rgba(0,0,0,0.5)));background-image:linear-gradient(to right, rgba(0,0,0,0.0001) 0, rgba(0,0,0,0.5) 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1)}.carousel-control:hover,.carousel-control:focus{outline:0;color:#ffffff;text-decoration:none;opacity:0.9;filter:alpha(opacity=90)}.carousel-control .icon-prev,.carousel-control .icon-next,.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right{position:absolute;top:50%;z-index:5;display:inline-block}.carousel-control .icon-prev,.carousel-control .glyphicon-chevron-left{left:50%;margin-left:-10px}.carousel-control .icon-next,.carousel-control .glyphicon-chevron-right{right:50%;margin-right:-10px}.carousel-control .icon-prev,.carousel-control .icon-next{width:20px;height:20px;margin-top:-10px;line-height:1;font-family:serif}.carousel-control .icon-prev:before{content:'\2039'}.carousel-control .icon-next:before{content:'\203a'}.carousel-indicators{position:absolute;bottom:10px;left:50%;z-index:15;width:60%;margin-left:-30%;padding-left:0;list-style:none;text-align:center}.carousel-indicators li{display:inline-block;width:10px;height:10px;margin:1px;text-indent:-999px;border:1px solid #ffffff;border-radius:10px;cursor:pointer;background-color:#000 \9;background-color:rgba(0,0,0,0)}.carousel-indicators .active{margin:0;width:12px;height:12px;background-color:#ffffff}.carousel-caption{position:absolute;left:15%;right:15%;bottom:20px;z-index:10;padding-top:20px;padding-bottom:20px;color:#ffffff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,0.6)}.carousel-caption .btn{text-shadow:none}@media screen and (min-width:768px){.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right,.carousel-control .icon-prev,.carousel-control .icon-next{width:30px;height:30px;margin-top:-15px;font-size:30px}.carousel-control .glyphicon-chevron-left,.carousel-control .icon-prev{margin-left:-15px}.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next{margin-right:-15px}.carousel-caption{left:20%;right:20%;padding-bottom:30px}.carousel-indicators{bottom:20px}}.clearfix:before,.clearfix:after,.dl-horizontal dd:before,.dl-horizontal dd:after,.container:before,.container:after,.container-fluid:before,.container-fluid:after,.row:before,.row:after,.form-horizontal .form-group:before,.form-horizontal .form-group:after,.btn-toolbar:before,.btn-toolbar:after,.btn-group-vertical>.btn-group:before,.btn-group-vertical>.btn-group:after,.nav:before,.nav:after,.navbar:before,.navbar:after,.navbar-header:before,.navbar-header:after,.navbar-collapse:before,.navbar-collapse:after,.pager:before,.pager:after,.panel-body:before,.panel-body:after,.modal-footer:before,.modal-footer:after{content:" ";display:table}.clearfix:after,.dl-horizontal dd:after,.container:after,.container-fluid:after,.row:after,.form-horizontal .form-group:after,.btn-toolbar:after,.btn-group-vertical>.btn-group:after,.nav:after,.navbar:after,.navbar-header:after,.navbar-collapse:after,.pager:after,.panel-body:after,.modal-footer:after{clear:both}.center-block{display:block;margin-left:auto;margin-right:auto}.pull-right{float:right !important}.pull-left{float:left !important}.hide{display:none !important}.show{display:block !important}.invisible{visibility:hidden}.text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.hidden{display:none !important}.affix{position:fixed}@-ms-viewport{width:device-width}.visible-xs,.visible-sm,.visible-md,.visible-lg{display:none !important}.visible-xs-block,.visible-xs-inline,.visible-xs-inline-block,.visible-sm-block,.visible-sm-inline,.visible-sm-inline-block,.visible-md-block,.visible-md-inline,.visible-md-inline-block,.visible-lg-block,.visible-lg-inline,.visible-lg-inline-block{display:none !important}@media (max-width:767px){.visible-xs{display:block !important}table.visible-xs{display:table}tr.visible-xs{display:table-row !important}th.visible-xs,td.visible-xs{display:table-cell !important}}@media (max-width:767px){.visible-xs-block{display:block !important}}@media (max-width:767px){.visible-xs-inline{display:inline !important}}@media (max-width:767px){.visible-xs-inline-block{display:inline-block !important}}@media (min-width:768px) and (max-width:991px){.visible-sm{display:block !important}table.visible-sm{display:table}tr.visible-sm{display:table-row !important}th.visible-sm,td.visible-sm{display:table-cell !important}}@media (min-width:768px) and (max-width:991px){.visible-sm-block{display:block !important}}@media (min-width:768px) and (max-width:991px){.visible-sm-inline{display:inline !important}}@media (min-width:768px) and (max-width:991px){.visible-sm-inline-block{display:inline-block !important}}@media (min-width:992px) and (max-width:1199px){.visible-md{display:block !important}table.visible-md{display:table}tr.visible-md{display:table-row !important}th.visible-md,td.visible-md{display:table-cell !important}}@media (min-width:992px) and (max-width:1199px){.visible-md-block{display:block !important}}@media (min-width:992px) and (max-width:1199px){.visible-md-inline{display:inline !important}}@media (min-width:992px) and (max-width:1199px){.visible-md-inline-block{display:inline-block !important}}@media (min-width:1200px){.visible-lg{display:block !important}table.visible-lg{display:table}tr.visible-lg{display:table-row !important}th.visible-lg,td.visible-lg{display:table-cell !important}}@media (min-width:1200px){.visible-lg-block{display:block !important}}@media (min-width:1200px){.visible-lg-inline{display:inline !important}}@media (min-width:1200px){.visible-lg-inline-block{display:inline-block !important}}@media (max-width:767px){.hidden-xs{display:none !important}}@media (min-width:768px) and (max-width:991px){.hidden-sm{display:none !important}}@media (min-width:992px) and (max-width:1199px){.hidden-md{display:none !important}}@media (min-width:1200px){.hidden-lg{display:none !important}}.visible-print{display:none !important}@media print{.visible-print{display:block !important}table.visible-print{display:table}tr.visible-print{display:table-row !important}th.visible-print,td.visible-print{display:table-cell !important}}.visible-print-block{display:none !important}@media print{.visible-print-block{display:block !important}}.visible-print-inline{display:none !important}@media print{.visible-print-inline{display:inline !important}}.visible-print-inline-block{display:none !important}@media print{.visible-print-inline-block{display:inline-block !important}}@media print{.hidden-print{display:none !important}}.navbar{font-family:"Raleway","Helvetica Neue",Helvetica,Arial,sans-serif}.navbar-nav,.navbar-form{margin-left:0;margin-right:0}.navbar-nav>li>a{padding:8px 12px;margin:12.5px 6px;border:1px solid transparent;border-radius:4px}.navbar-nav>li>a:hover{border:1px solid #ddd}.navbar-nav>.active>a,.navbar-nav>.active>a:hover{border:1px solid #ddd}.navbar-default .navbar-nav>.active>a:hover{color:#4582ec}.navbar-inverse .navbar-nav>.active>a:hover{color:#333333}.navbar-brand{padding-top:12.5px;padding-bottom:12.5px;line-height:1.9}@media (max-width:768px){.navbar .navbar-nav>li>a{margin:0}}.btn{font-family:"Raleway","Helvetica Neue",Helvetica,Arial,sans-serif}legend{font-family:"Raleway","Helvetica Neue",Helvetica,Arial,sans-serif}.input-group-addon{font-family:"Raleway","Helvetica Neue",Helvetica,Arial,sans-serif}.nav .open>a,.nav .open>a:hover,.nav .open>a:focus{border:1px solid #ddd}.pagination{font-family:"Raleway","Helvetica Neue",Helvetica,Arial,sans-serif}.pagination-lg>li>a,.pagination-lg>li>span{padding:14px 24px}.pager{font-family:"Raleway","Helvetica Neue",Helvetica,Arial,sans-serif}.pager a{color:#333333}.pager a:hover{border-color:transparent;color:#fff}.pager .disabled a{border-color:#dddddd}.close{color:#fff;text-decoration:none;text-shadow:none;opacity:0.4}.close:hover,.close:focus{color:#fff;opacity:1}.alert .alert-link{color:#ffffff;text-decoration:underline}.label{font-family:"Raleway","Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:normal}.label-default{border:1px solid #ddd;color:#333333}.badge{padding:1px 7px 5px;vertical-align:2px;font-family:"Raleway","Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:normal}.panel{-webkit-box-shadow:none;box-shadow:none}.panel-default .close{color:#333333}.modal .close{color:#333333}
|
css/share-buttons/1.css
ADDED
@@ -0,0 +1 @@
|
|
Â
|
1 |
+
.ssbp--theme-1 .ssbp-toggle-switch{background:#fff;background:rgba(255,255,255,0.8);color:#272727;border-radius:0}.ssbp--theme-1 .ssbp-toggle-switch:active,.ssbp--theme-1 .ssbp-toggle-switch:hover,.ssbp--theme-1 .ssbp-toggle-switch:focus{background:#fff;background:rgba(255,255,255,0.9)}@-webkit-keyframes ripple-out{100%{visibility:visible;top:-1em;right:-1em;bottom:-1em;left:-1em;opacity:0}}@keyframes ripple-out{100%{visibility:visible;top:-1em;right:-1em;bottom:-1em;left:-1em;opacity:0}}.ssbp--theme-1 .ssbp-container{padding:6px}.ssbp--theme-1 .ssbp-list li{margin-left:12px}.ssbp--theme-1 .ssbp-btn{width:3em;height:3em;line-height:3em;position:relative;border-radius:50%;color:#fff;-webkit-transition:.25s;transition:.25s}.ssbp--theme-1 .ssbp-btn:hover,.ssbp--theme-1 .ssbp-btn:focus,.ssbp--theme-1 .ssbp-btn:active{background-color:#fff;z-index:10}.ssbp--theme-1 .ssbp-btn:visited{color:#fff}.ssbp--theme-1 .ssbp-btn:before{-webkit-transition:-webkit-transform .25s;transition:transform .25s}.ssbp--theme-1 .ssbp-btn:active:before{-webkit-transform:scale(1.2);transform:scale(1.2)}.ssbp--theme-1 .ssbp-btn:after{content:'';visibility:hidden;position:absolute;border:1px solid #fff;border-radius:50%;top:-1px;right:-1px;bottom:-1px;left:-1px;pointer-events:none;-webkit-animation-duration:.5s;animation-duration:.5s}.ssbp--theme-1 .ssbp-btn:hover:after{-webkit-animation-name:ripple-out;animation-name:ripple-out}.ssbp--theme-1[data-ssbp-counts="true"] .ssbp-list li{margin-left:13.2px}.ssbp--theme-1[data-ssbp-counts="true"] .ssbp-list li:first-of-type{margin-left:0}.ssbp--theme-1 .ssbp-buffer{background-color:#272727}.ssbp--theme-1 .ssbp-buffer:hover,.ssbp--theme-1 .ssbp-buffer:focus,.ssbp--theme-1 .ssbp-buffer:active{color:#272727;border-color:#272727}.ssbp--theme-1 .ssbp-buffer+.ssbp-each-share{background-color:#272727}.ssbp--theme-1 .ssbp-diggit{background-color:#14589E}.ssbp--theme-1 .ssbp-diggit:hover,.ssbp--theme-1 .ssbp-diggit:focus,.ssbp--theme-1 .ssbp-diggit:active{color:#14589E;border-color:#14589E}.ssbp--theme-1 .ssbp-diggit+.ssbp-each-share{background-color:#14589E}.ssbp--theme-1 .ssbp-email{background-color:#787878}.ssbp--theme-1 .ssbp-email:hover,.ssbp--theme-1 .ssbp-email:focus,.ssbp--theme-1 .ssbp-email:active{color:#787878;border-color:#787878}.ssbp--theme-1 .ssbp-email+.ssbp-each-share{background-color:#787878}.ssbp--theme-1 .ssbp-ellipsis{background-color:#4582EC}.ssbp--theme-1 .ssbp-ellipsis:hover,.ssbp--theme-1 .ssbp-ellipsis:focus,.ssbp--theme-1 .ssbp-ellipsis:active{color:#4582EC;border-color:#4582EC}.ssbp--theme-1 .ssbp-ellipsis+.ssbp-each-share{background-color:#4582EC}.ssbp--theme-1 .ssbp-facebook{background-color:#3b5998}.ssbp--theme-1 .ssbp-facebook:hover,.ssbp--theme-1 .ssbp-facebook:focus,.ssbp--theme-1 .ssbp-facebook:active{color:#3b5998;border-color:#3b5998}.ssbp--theme-1 .ssbp-facebook+.ssbp-each-share{background-color:#3b5998}.ssbp--theme-1 .ssbp-facebook_save{background-color:#3b5998}.ssbp--theme-1 .ssbp-facebook_save:hover,.ssbp--theme-1 .ssbp-facebook_save:focus,.ssbp--theme-1 .ssbp-facebook_save:active{color:#3b5998;border-color:#3b5998}.ssbp--theme-1 .ssbp-facebook_save+.ssbp-each-share{background-color:#3b5998}.ssbp--theme-1 .ssbp-facebook-messenger{background-color:#0084FF}.ssbp--theme-1 .ssbp-facebook-messenger:hover,.ssbp--theme-1 .ssbp-facebook-messenger:focus,.ssbp--theme-1 .ssbp-facebook-messenger:active{color:#0084FF;border-color:#0084FF}.ssbp--theme-1 .ssbp-facebook-messenger+.ssbp-each-share{background-color:#0084FF}.ssbp--theme-1 .ssbp-flattr{background-color:#f67C1A}.ssbp--theme-1 .ssbp-flattr:hover,.ssbp--theme-1 .ssbp-flattr:focus,.ssbp--theme-1 .ssbp-flattr:active{color:#f67C1A;border-color:#f67C1A}.ssbp--theme-1 .ssbp-flattr+.ssbp-each-share{background-color:#f67C1A}.ssbp--theme-1 .ssbp-google{background-color:#DC4E41}.ssbp--theme-1 .ssbp-google:hover,.ssbp--theme-1 .ssbp-google:focus,.ssbp--theme-1 .ssbp-google:active{color:#DC4E41;border-color:#DC4E41}.ssbp--theme-1 .ssbp-google+.ssbp-each-share{background-color:#DC4E41}.ssbp--theme-1 .ssbp-linkedin{background-color:#007bb6}.ssbp--theme-1 .ssbp-linkedin:hover,.ssbp--theme-1 .ssbp-linkedin:focus,.ssbp--theme-1 .ssbp-linkedin:active{color:#007bb6;border-color:#007bb6}.ssbp--theme-1 .ssbp-linkedin+.ssbp-each-share{background-color:#007bb6}.ssbp--theme-1 .ssbp-pinterest{background-color:#ce1a19}.ssbp--theme-1 .ssbp-pinterest:hover,.ssbp--theme-1 .ssbp-pinterest:focus,.ssbp--theme-1 .ssbp-pinterest:active{color:#ce1a19;border-color:#ce1a19}.ssbp--theme-1 .ssbp-pinterest+.ssbp-each-share{background-color:#ce1a19}.ssbp--theme-1 .ssbp-print{background-color:#1F6B43}.ssbp--theme-1 .ssbp-print:hover,.ssbp--theme-1 .ssbp-print:focus,.ssbp--theme-1 .ssbp-print:active{color:#1F6B43;border-color:#1F6B43}.ssbp--theme-1 .ssbp-print+.ssbp-each-share{background-color:#1F6B43}.ssbp--theme-1 .ssbp-reddit{background-color:#FF4500}.ssbp--theme-1 .ssbp-reddit:hover,.ssbp--theme-1 .ssbp-reddit:focus,.ssbp--theme-1 .ssbp-reddit:active{color:#FF4500;border-color:#FF4500}.ssbp--theme-1 .ssbp-reddit+.ssbp-each-share{background-color:#FF4500}.ssbp--theme-1 .ssbp-simplesharebuttons{background-color:#4582ec}.ssbp--theme-1 .ssbp-simplesharebuttons:hover,.ssbp--theme-1 .ssbp-simplesharebuttons:focus,.ssbp--theme-1 .ssbp-simplesharebuttons:active{color:#4582ec;border-color:#4582ec}.ssbp--theme-1 .ssbp-simplesharebuttons+.ssbp-each-share{background-color:#4582ec}.ssbp--theme-1 .ssbp-stumbleupon{background-color:#EB4924}.ssbp--theme-1 .ssbp-stumbleupon:hover,.ssbp--theme-1 .ssbp-stumbleupon:focus,.ssbp--theme-1 .ssbp-stumbleupon:active{color:#EB4924;border-color:#EB4924}.ssbp--theme-1 .ssbp-stumbleupon+.ssbp-each-share{background-color:#EB4924}.ssbp--theme-1 .ssbp-tumblr{background-color:#2C4762}.ssbp--theme-1 .ssbp-tumblr:hover,.ssbp--theme-1 .ssbp-tumblr:focus,.ssbp--theme-1 .ssbp-tumblr:active{color:#2C4762;border-color:#2C4762}.ssbp--theme-1 .ssbp-tumblr+.ssbp-each-share{background-color:#2C4762}.ssbp--theme-1 .ssbp-twitter{background-color:#00a9f1}.ssbp--theme-1 .ssbp-twitter:hover,.ssbp--theme-1 .ssbp-twitter:focus,.ssbp--theme-1 .ssbp-twitter:active{color:#00a9f1;border-color:#00a9f1}.ssbp--theme-1 .ssbp-twitter+.ssbp-each-share{background-color:#00a9f1}.ssbp--theme-1 .ssbp-vk{background-color:#45668E}.ssbp--theme-1 .ssbp-vk:hover,.ssbp--theme-1 .ssbp-vk:focus,.ssbp--theme-1 .ssbp-vk:active{color:#45668E;border-color:#45668E}.ssbp--theme-1 .ssbp-vk+.ssbp-each-share{background-color:#45668E}.ssbp--theme-1 .ssbp-whatsapp{background-color:#34AF23}.ssbp--theme-1 .ssbp-whatsapp:hover,.ssbp--theme-1 .ssbp-whatsapp:focus,.ssbp--theme-1 .ssbp-whatsapp:active{color:#34AF23;border-color:#34AF23}.ssbp--theme-1 .ssbp-whatsapp+.ssbp-each-share{background-color:#34AF23}.ssbp--theme-1 .ssbp-yummly{background-color:#E16120}.ssbp--theme-1 .ssbp-yummly:hover,.ssbp--theme-1 .ssbp-yummly:focus,.ssbp--theme-1 .ssbp-yummly:active{color:#E16120;border-color:#E16120}.ssbp--theme-1 .ssbp-yummly+.ssbp-each-share{background-color:#E16120}.ssbp--theme-1 .ssbp-xing{background-color:#026466}.ssbp--theme-1 .ssbp-xing:hover,.ssbp--theme-1 .ssbp-xing:focus,.ssbp--theme-1 .ssbp-xing:active{color:#026466;border-color:#026466}.ssbp--theme-1 .ssbp-xing+.ssbp-each-share{background-color:#026466}.ssbp--theme-1 .ssbp-each-share{position:absolute;top:0;left:100%;z-index:11;margin-left:-12px;padding:2px;border-radius:6px;font-size:10px;color:#FFF}.ssbp--theme-1.ssbp--fixed-right .ssbp-each-share{left:auto;right:100%;margin-left:0;margin-right:-12px}
|
css/share-buttons/10.css
ADDED
@@ -0,0 +1 @@
|
|
Â
|
1 |
+
.ssbp--theme-10 .ssbp-toggle-switch{background:#4C4C4C;background:rgba(39,39,39,0.8);border-radius:0;color:#fff}.ssbp--theme-10 .ssbp-toggle-switch:active,.ssbp--theme-10 .ssbp-toggle-switch:hover,.ssbp--theme-10 .ssbp-toggle-switch:focus{background:#4C4C4C;background:rgba(39,39,39,0.9)}.ssbp--theme-10.ssbp--centred .ssbp-list{display:table;table-layout:fixed;width:100%}.ssbp--theme-10.ssbp--centred .ssbp-list li{display:inline-block !important;margin:0 0 !important;display:table-cell !important;width:auto;height:auto}.ssbp--theme-10.ssbp--centred .ssbp-btn{display:block;width:auto}.ssbp--theme-10{overflow:hidden}.ssbp--theme-10 .ssbp-list li{margin:0 !important}.ssbp--theme-10 .ssbp-btn{display:block;padding:0.5em 1em;color:#fff;text-shadow:-1px -1px rgba(0,0,0,0.2);-webkit-transition:background-color .25s;transition:background-color .25s;border-bottom:0}.ssbp--theme-10 .ssbp-btn:before{vertical-align:middle}.ssbp--theme-10 .ssbp-btn:active{box-shadow:inset 0 0 0.5em rgba(0,0,0,0.33)}.ssbp--theme-10 .ssbp-btn:hover,.ssbp--theme-10 .ssbp-btn:focus,.ssbp--theme-10 .ssbp-btn:active,.ssbp--theme-10 .ssbp-btn:visited{color:#fff}.ssbp--theme-10.ssbp--centred .ssbp-input-url-div{position:relative;display:block;padding:10px}.ssbp--theme-10.ssbp--centred .ssbp-input-url{width:100%;max-width:200px;border:1px solid #DDD;padding:8px 8px 8px 8px;font-size:20px;font-weight:400;line-height:1;color:#B3B3B3;border-radius:4px;box-shadow:inset 0 1px 1px rgba(0,0,0,0.075)}.ssbp--theme-10.ssbp--centred .ssbp-total-shares{display:block;line-height:1}.ssbp--theme-10.ssbp--centred .ssbp-total-shares b{font-size:70px;color:#4582EC}.ssbp--theme-10.ssbp--centred .ssbp-total-shares:after{content:'Shares';display:block;font-family:'Lato',sans-serif;font-weight:700;font-size:30px;text-transform:uppercase;color:#B3B3B3}@media only screen and (min-width: 481px){.ssbp--theme-10.ssbp--centred .ssbp-input-url-div{float:right;width:50%;padding:35px 20px;text-align:left}.ssbp--theme-10.ssbp--centred .ssbp-total-shares{width:50%;text-align:right}}.ssbp--theme-10 .ssbp-buffer{background-color:#272727}.ssbp--theme-10 .ssbp-buffer:hover,.ssbp--theme-10 .ssbp-buffer:focus,.ssbp--theme-10 .ssbp-buffer:active,.ssbp--theme-10 .ssbp-buffer+.ssbp-each-share{background-color:#0e0e0e}.ssbp--theme-10 .ssbp-diggit{background-color:#14589E}.ssbp--theme-10 .ssbp-diggit:hover,.ssbp--theme-10 .ssbp-diggit:focus,.ssbp--theme-10 .ssbp-diggit:active,.ssbp--theme-10 .ssbp-diggit+.ssbp-each-share{background-color:#0e3f71}.ssbp--theme-10 .ssbp-email{background-color:#787878}.ssbp--theme-10 .ssbp-email:hover,.ssbp--theme-10 .ssbp-email:focus,.ssbp--theme-10 .ssbp-email:active,.ssbp--theme-10 .ssbp-email+.ssbp-each-share{background-color:#5f5f5f}.ssbp--theme-10 .ssbp-ellipsis{background-color:#4582EC}.ssbp--theme-10 .ssbp-ellipsis:hover,.ssbp--theme-10 .ssbp-ellipsis:focus,.ssbp--theme-10 .ssbp-ellipsis:active,.ssbp--theme-10 .ssbp-ellipsis+.ssbp-each-share{background-color:#1863e6}.ssbp--theme-10 .ssbp-facebook{background-color:#3b5998}.ssbp--theme-10 .ssbp-facebook:hover,.ssbp--theme-10 .ssbp-facebook:focus,.ssbp--theme-10 .ssbp-facebook:active,.ssbp--theme-10 .ssbp-facebook+.ssbp-each-share{background-color:#2d4373}.ssbp--theme-10 .ssbp-facebook_save{background-color:#3b5998}.ssbp--theme-10 .ssbp-facebook_save:hover,.ssbp--theme-10 .ssbp-facebook_save:focus,.ssbp--theme-10 .ssbp-facebook_save:active,.ssbp--theme-10 .ssbp-facebook_save+.ssbp-each-share{background-color:#2d4373}.ssbp--theme-10 .ssbp-facebook-messenger{background-color:#0084FF}.ssbp--theme-10 .ssbp-facebook-messenger:hover,.ssbp--theme-10 .ssbp-facebook-messenger:focus,.ssbp--theme-10 .ssbp-facebook-messenger:active,.ssbp--theme-10 .ssbp-facebook-messenger+.ssbp-each-share{background-color:#006acc}.ssbp--theme-10 .ssbp-flattr{background-color:#f67C1A}.ssbp--theme-10 .ssbp-flattr:hover,.ssbp--theme-10 .ssbp-flattr:focus,.ssbp--theme-10 .ssbp-flattr:active,.ssbp--theme-10 .ssbp-flattr+.ssbp-each-share{background-color:#d56308}.ssbp--theme-10 .ssbp-google{background-color:#DC4E41}.ssbp--theme-10 .ssbp-google:hover,.ssbp--theme-10 .ssbp-google:focus,.ssbp--theme-10 .ssbp-google:active,.ssbp--theme-10 .ssbp-google+.ssbp-each-share{background-color:#c63224}.ssbp--theme-10 .ssbp-linkedin{background-color:#007bb6}.ssbp--theme-10 .ssbp-linkedin:hover,.ssbp--theme-10 .ssbp-linkedin:focus,.ssbp--theme-10 .ssbp-linkedin:active,.ssbp--theme-10 .ssbp-linkedin+.ssbp-each-share{background-color:#005983}.ssbp--theme-10 .ssbp-pinterest{background-color:#ce1a19}.ssbp--theme-10 .ssbp-pinterest:hover,.ssbp--theme-10 .ssbp-pinterest:focus,.ssbp--theme-10 .ssbp-pinterest:active,.ssbp--theme-10 .ssbp-pinterest+.ssbp-each-share{background-color:#a11413}.ssbp--theme-10 .ssbp-print{background-color:#1F6B43}.ssbp--theme-10 .ssbp-print:hover,.ssbp--theme-10 .ssbp-print:focus,.ssbp--theme-10 .ssbp-print:active,.ssbp--theme-10 .ssbp-print+.ssbp-each-share{background-color:#14432a}.ssbp--theme-10 .ssbp-reddit{background-color:#FF4500}.ssbp--theme-10 .ssbp-reddit:hover,.ssbp--theme-10 .ssbp-reddit:focus,.ssbp--theme-10 .ssbp-reddit:active,.ssbp--theme-10 .ssbp-reddit+.ssbp-each-share{background-color:#cc3700}.ssbp--theme-10 .ssbp-simplesharebuttons{background-color:#4582ec}.ssbp--theme-10 .ssbp-simplesharebuttons:hover,.ssbp--theme-10 .ssbp-simplesharebuttons:focus,.ssbp--theme-10 .ssbp-simplesharebuttons:active,.ssbp--theme-10 .ssbp-simplesharebuttons+.ssbp-each-share{background-color:#1863e6}.ssbp--theme-10 .ssbp-stumbleupon{background-color:#EB4924}.ssbp--theme-10 .ssbp-stumbleupon:hover,.ssbp--theme-10 .ssbp-stumbleupon:focus,.ssbp--theme-10 .ssbp-stumbleupon:active,.ssbp--theme-10 .ssbp-stumbleupon+.ssbp-each-share{background-color:#ca3412}.ssbp--theme-10 .ssbp-tumblr{background-color:#2C4762}.ssbp--theme-10 .ssbp-tumblr:hover,.ssbp--theme-10 .ssbp-tumblr:focus,.ssbp--theme-10 .ssbp-tumblr:active,.ssbp--theme-10 .ssbp-tumblr+.ssbp-each-share{background-color:#1c2e3f}.ssbp--theme-10 .ssbp-twitter{background-color:#00a9f1}.ssbp--theme-10 .ssbp-twitter:hover,.ssbp--theme-10 .ssbp-twitter:focus,.ssbp--theme-10 .ssbp-twitter:active,.ssbp--theme-10 .ssbp-twitter+.ssbp-each-share{background-color:#0085be}.ssbp--theme-10 .ssbp-vk{background-color:#45668E}.ssbp--theme-10 .ssbp-vk:hover,.ssbp--theme-10 .ssbp-vk:focus,.ssbp--theme-10 .ssbp-vk:active,.ssbp--theme-10 .ssbp-vk+.ssbp-each-share{background-color:#344d6c}.ssbp--theme-10 .ssbp-whatsapp{background-color:#34AF23}.ssbp--theme-10 .ssbp-whatsapp:hover,.ssbp--theme-10 .ssbp-whatsapp:focus,.ssbp--theme-10 .ssbp-whatsapp:active,.ssbp--theme-10 .ssbp-whatsapp+.ssbp-each-share{background-color:#27851b}.ssbp--theme-10 .ssbp-yummly{background-color:#E16120}.ssbp--theme-10 .ssbp-yummly:hover,.ssbp--theme-10 .ssbp-yummly:focus,.ssbp--theme-10 .ssbp-yummly:active,.ssbp--theme-10 .ssbp-yummly+.ssbp-each-share{background-color:#b64d18}.ssbp--theme-10 .ssbp-xing{background-color:#026466}.ssbp--theme-10 .ssbp-xing:hover,.ssbp--theme-10 .ssbp-xing:focus,.ssbp--theme-10 .ssbp-xing:active,.ssbp--theme-10 .ssbp-xing+.ssbp-each-share{background-color:#013334}.ssbp--theme-10 .ssbp-each-share{padding:2px;font-size:10px;text-align:center;color:#FFF}
|
css/share-buttons/11.css
ADDED
@@ -0,0 +1 @@
|
|
Â
|
1 |
+
.ssbp--theme-11 .ssbp-toggle-switch{background:#4C4C4C;background:rgba(39,39,39,0.8);border-radius:0;color:#fff}.ssbp--theme-11 .ssbp-toggle-switch:active,.ssbp--theme-11 .ssbp-toggle-switch:hover,.ssbp--theme-11 .ssbp-toggle-switch:focus{background:#4C4C4C;background:rgba(39,39,39,0.9)}.ssbp--theme-11.ssbp--centred .ssbp-list{display:table;table-layout:fixed;width:100%}.ssbp--theme-11.ssbp--centred .ssbp-list li{display:inline-block !important;margin:0 0 !important;display:table-cell !important;width:auto;height:auto}.ssbp--theme-11.ssbp--centred .ssbp-btn{display:block;width:auto}.ssbp--theme-11{margin-left:-5px;margin-right:-5px}.ssbp--theme-11 .ssbp-list li{margin:0 !important}.ssbp--theme-11 .ssbp-text{display:inline-block;vertical-align:middle;font-size:12px;line-height:1.2;font-size:11px}.ssbp--theme-11 .ssbp-btn{display:block;padding:0.6em 1em;margin:5px;text-transform:uppercase;color:#fff;font-size:11px;-webkit-transition:background-color .25s;transition:background-color .25s;border-bottom:0;border-radius:5px}.ssbp--theme-11 .ssbp-btn:before{display:none}.ssbp--theme-11 .ssbp-btn:active{box-shadow:inset 0 0 0.5em rgba(0,0,0,0.33)}.ssbp--theme-11 .ssbp-btn:hover,.ssbp--theme-11 .ssbp-btn:focus,.ssbp--theme-11 .ssbp-btn:active,.ssbp--theme-11 .ssbp-btn:visited{color:#fff}.ssbp--theme-11 .ssbp-buffer{background-color:#272727}.ssbp--theme-11 .ssbp-buffer:hover,.ssbp--theme-11 .ssbp-buffer:focus,.ssbp--theme-11 .ssbp-buffer:active,.ssbp--theme-11 .ssbp-buffer+.ssbp-each-share{background-color:#0e0e0e}.ssbp--theme-11 .ssbp-diggit{background-color:#14589E}.ssbp--theme-11 .ssbp-diggit:hover,.ssbp--theme-11 .ssbp-diggit:focus,.ssbp--theme-11 .ssbp-diggit:active,.ssbp--theme-11 .ssbp-diggit+.ssbp-each-share{background-color:#0e3f71}.ssbp--theme-11 .ssbp-email{background-color:#787878}.ssbp--theme-11 .ssbp-email:hover,.ssbp--theme-11 .ssbp-email:focus,.ssbp--theme-11 .ssbp-email:active,.ssbp--theme-11 .ssbp-email+.ssbp-each-share{background-color:#5f5f5f}.ssbp--theme-11 .ssbp-ellipsis{background-color:#4582EC}.ssbp--theme-11 .ssbp-ellipsis:hover,.ssbp--theme-11 .ssbp-ellipsis:focus,.ssbp--theme-11 .ssbp-ellipsis:active,.ssbp--theme-11 .ssbp-ellipsis+.ssbp-each-share{background-color:#1863e6}.ssbp--theme-11 .ssbp-facebook{background-color:#3b5998}.ssbp--theme-11 .ssbp-facebook:hover,.ssbp--theme-11 .ssbp-facebook:focus,.ssbp--theme-11 .ssbp-facebook:active,.ssbp--theme-11 .ssbp-facebook+.ssbp-each-share{background-color:#2d4373}.ssbp--theme-11 .ssbp-facebook_save{background-color:#3b5998}.ssbp--theme-11 .ssbp-facebook_save:hover,.ssbp--theme-11 .ssbp-facebook_save:focus,.ssbp--theme-11 .ssbp-facebook_save:active,.ssbp--theme-11 .ssbp-facebook_save+.ssbp-each-share{background-color:#2d4373}.ssbp--theme-11 .ssbp-facebook-messenger{background-color:#0084FF}.ssbp--theme-11 .ssbp-facebook-messenger:hover,.ssbp--theme-11 .ssbp-facebook-messenger:focus,.ssbp--theme-11 .ssbp-facebook-messenger:active,.ssbp--theme-11 .ssbp-facebook-messenger+.ssbp-each-share{background-color:#006acc}.ssbp--theme-11 .ssbp-flattr{background-color:#f67C1A}.ssbp--theme-11 .ssbp-flattr:hover,.ssbp--theme-11 .ssbp-flattr:focus,.ssbp--theme-11 .ssbp-flattr:active,.ssbp--theme-11 .ssbp-flattr+.ssbp-each-share{background-color:#d56308}.ssbp--theme-11 .ssbp-google{background-color:#DC4E41}.ssbp--theme-11 .ssbp-google:hover,.ssbp--theme-11 .ssbp-google:focus,.ssbp--theme-11 .ssbp-google:active,.ssbp--theme-11 .ssbp-google+.ssbp-each-share{background-color:#c63224}.ssbp--theme-11 .ssbp-linkedin{background-color:#007bb6}.ssbp--theme-11 .ssbp-linkedin:hover,.ssbp--theme-11 .ssbp-linkedin:focus,.ssbp--theme-11 .ssbp-linkedin:active,.ssbp--theme-11 .ssbp-linkedin+.ssbp-each-share{background-color:#005983}.ssbp--theme-11 .ssbp-pinterest{background-color:#ce1a19}.ssbp--theme-11 .ssbp-pinterest:hover,.ssbp--theme-11 .ssbp-pinterest:focus,.ssbp--theme-11 .ssbp-pinterest:active,.ssbp--theme-11 .ssbp-pinterest+.ssbp-each-share{background-color:#a11413}.ssbp--theme-11 .ssbp-print{background-color:#1F6B43}.ssbp--theme-11 .ssbp-print:hover,.ssbp--theme-11 .ssbp-print:focus,.ssbp--theme-11 .ssbp-print:active,.ssbp--theme-11 .ssbp-print+.ssbp-each-share{background-color:#14432a}.ssbp--theme-11 .ssbp-reddit{background-color:#FF4500}.ssbp--theme-11 .ssbp-reddit:hover,.ssbp--theme-11 .ssbp-reddit:focus,.ssbp--theme-11 .ssbp-reddit:active,.ssbp--theme-11 .ssbp-reddit+.ssbp-each-share{background-color:#cc3700}.ssbp--theme-11 .ssbp-simplesharebuttons{background-color:#4582ec}.ssbp--theme-11 .ssbp-simplesharebuttons:hover,.ssbp--theme-11 .ssbp-simplesharebuttons:focus,.ssbp--theme-11 .ssbp-simplesharebuttons:active,.ssbp--theme-11 .ssbp-simplesharebuttons+.ssbp-each-share{background-color:#1863e6}.ssbp--theme-11 .ssbp-stumbleupon{background-color:#EB4924}.ssbp--theme-11 .ssbp-stumbleupon:hover,.ssbp--theme-11 .ssbp-stumbleupon:focus,.ssbp--theme-11 .ssbp-stumbleupon:active,.ssbp--theme-11 .ssbp-stumbleupon+.ssbp-each-share{background-color:#ca3412}.ssbp--theme-11 .ssbp-tumblr{background-color:#2C4762}.ssbp--theme-11 .ssbp-tumblr:hover,.ssbp--theme-11 .ssbp-tumblr:focus,.ssbp--theme-11 .ssbp-tumblr:active,.ssbp--theme-11 .ssbp-tumblr+.ssbp-each-share{background-color:#1c2e3f}.ssbp--theme-11 .ssbp-twitter{background-color:#00a9f1}.ssbp--theme-11 .ssbp-twitter:hover,.ssbp--theme-11 .ssbp-twitter:focus,.ssbp--theme-11 .ssbp-twitter:active,.ssbp--theme-11 .ssbp-twitter+.ssbp-each-share{background-color:#0085be}.ssbp--theme-11 .ssbp-vk{background-color:#45668E}.ssbp--theme-11 .ssbp-vk:hover,.ssbp--theme-11 .ssbp-vk:focus,.ssbp--theme-11 .ssbp-vk:active,.ssbp--theme-11 .ssbp-vk+.ssbp-each-share{background-color:#344d6c}.ssbp--theme-11 .ssbp-whatsapp{background-color:#34AF23}.ssbp--theme-11 .ssbp-whatsapp:hover,.ssbp--theme-11 .ssbp-whatsapp:focus,.ssbp--theme-11 .ssbp-whatsapp:active,.ssbp--theme-11 .ssbp-whatsapp+.ssbp-each-share{background-color:#27851b}.ssbp--theme-11 .ssbp-yummly{background-color:#E16120}.ssbp--theme-11 .ssbp-yummly:hover,.ssbp--theme-11 .ssbp-yummly:focus,.ssbp--theme-11 .ssbp-yummly:active,.ssbp--theme-11 .ssbp-yummly+.ssbp-each-share{background-color:#b64d18}.ssbp--theme-11 .ssbp-xing{background-color:#026466}.ssbp--theme-11 .ssbp-xing:hover,.ssbp--theme-11 .ssbp-xing:focus,.ssbp--theme-11 .ssbp-xing:active,.ssbp--theme-11 .ssbp-xing+.ssbp-each-share{background-color:#013334}.ssbp--theme-11 .ssbp-each-share{padding:2px;font-size:10px;margin-right:5px;margin-left:5px;text-align:center;color:#FFF;border-radius:5px}
|
css/share-buttons/2.css
ADDED
@@ -0,0 +1 @@
|
|
Â
|
1 |
+
.ssbp--theme-2 .ssbp-toggle-switch{background:#4C4C4C;background:rgba(39,39,39,0.8);border-radius:0;color:#fff}.ssbp--theme-2 .ssbp-toggle-switch:active,.ssbp--theme-2 .ssbp-toggle-switch:hover,.ssbp--theme-2 .ssbp-toggle-switch:focus{background:#4C4C4C;background:rgba(39,39,39,0.9)}.ssbp--theme-2.ssbp--centred .ssbp-list{display:table;table-layout:fixed;width:100%}.ssbp--theme-2.ssbp--centred .ssbp-list li{display:inline-block !important;margin:0 0 !important;display:table-cell !important;width:auto;height:auto}.ssbp--theme-2.ssbp--centred .ssbp-btn{display:block;width:auto}.ssbp--theme-2 .ssbp-list li{overflow:hidden;margin:0 !important}.ssbp--theme-2 .ssbp-btn{width:3em;height:3em;line-height:3em;position:relative;color:#fff;-webkit-transition:.25s;transition:.25s;border-bottom:0}.ssbp--theme-2 .ssbp-btn:before{-webkit-transition:.25s;transition:.25s}.ssbp--theme-2 .ssbp-btn+.ssbp-each-share{position:absolute;z-index:10;bottom:0;left:0;right:0;-webkit-transform:translateY(0);transform:translateY(0);-webkit-transition:.25s;transition:.25s}.ssbp--theme-2 .ssbp-btn:hover,.ssbp--theme-2 .ssbp-btn:focus,.ssbp--theme-2 .ssbp-btn:active,.ssbp--theme-2 .ssbp-btn:visited{z-index:10;color:#fff}.ssbp--theme-2 .ssbp-btn:hover:before,.ssbp--theme-2 .ssbp-btn:focus:before,.ssbp--theme-2 .ssbp-btn:active:before,.ssbp--theme-2 .ssbp-btn:visited:before{-webkit-transform:none !important;transform:none !important}.ssbp--theme-2 .ssbp-btn:hover+.ssbp-each-share,.ssbp--theme-2 .ssbp-btn:focus+.ssbp-each-share,.ssbp--theme-2 .ssbp-btn:active+.ssbp-each-share,.ssbp--theme-2 .ssbp-btn:visited+.ssbp-each-share{-webkit-transform:translateY(100%);transform:translateY(100%)}.ssbp--theme-2 .ssbp-btn:active{-webkit-transform:scale(1.2);transform:scale(1.2)}.ssbp--theme-2[data-ssbp-counts="true"] .ssbp-btn:before{-webkit-transform:translateY(-0.25em) scale(0.75);transform:translateY(-0.25em) scale(0.75)}.ssbp--theme-2 .ssbp-buffer{background-color:#272727}.ssbp--theme-2 .ssbp-buffer:hover,.ssbp--theme-2 .ssbp-buffer:focus,.ssbp--theme-2 .ssbp-buffer:active{background-color:#0e0e0e}.ssbp--theme-2 .ssbp-diggit{background-color:#14589E}.ssbp--theme-2 .ssbp-diggit:hover,.ssbp--theme-2 .ssbp-diggit:focus,.ssbp--theme-2 .ssbp-diggit:active{background-color:#0e3f71}.ssbp--theme-2 .ssbp-email{background-color:#787878}.ssbp--theme-2 .ssbp-email:hover,.ssbp--theme-2 .ssbp-email:focus,.ssbp--theme-2 .ssbp-email:active{background-color:#5f5f5f}.ssbp--theme-2 .ssbp-ellipsis{background-color:#4582EC}.ssbp--theme-2 .ssbp-ellipsis:hover,.ssbp--theme-2 .ssbp-ellipsis:focus,.ssbp--theme-2 .ssbp-ellipsis:active{background-color:#1863e6}.ssbp--theme-2 .ssbp-facebook{background-color:#3b5998}.ssbp--theme-2 .ssbp-facebook:hover,.ssbp--theme-2 .ssbp-facebook:focus,.ssbp--theme-2 .ssbp-facebook:active{background-color:#2d4373}.ssbp--theme-2 .ssbp-facebook_save{background-color:#3b5998}.ssbp--theme-2 .ssbp-facebook_save:hover,.ssbp--theme-2 .ssbp-facebook_save:focus,.ssbp--theme-2 .ssbp-facebook_save:active{background-color:#2d4373}.ssbp--theme-2 .ssbp-facebook-messenger{background-color:#0084FF}.ssbp--theme-2 .ssbp-facebook-messenger:hover,.ssbp--theme-2 .ssbp-facebook-messenger:focus,.ssbp--theme-2 .ssbp-facebook-messenger:active{background-color:#006acc}.ssbp--theme-2 .ssbp-flattr{background-color:#f67C1A}.ssbp--theme-2 .ssbp-flattr:hover,.ssbp--theme-2 .ssbp-flattr:focus,.ssbp--theme-2 .ssbp-flattr:active{background-color:#d56308}.ssbp--theme-2 .ssbp-google{background-color:#DC4E41}.ssbp--theme-2 .ssbp-google:hover,.ssbp--theme-2 .ssbp-google:focus,.ssbp--theme-2 .ssbp-google:active{background-color:#c63224}.ssbp--theme-2 .ssbp-linkedin{background-color:#007bb6}.ssbp--theme-2 .ssbp-linkedin:hover,.ssbp--theme-2 .ssbp-linkedin:focus,.ssbp--theme-2 .ssbp-linkedin:active{background-color:#005983}.ssbp--theme-2 .ssbp-pinterest{background-color:#ce1a19}.ssbp--theme-2 .ssbp-pinterest:hover,.ssbp--theme-2 .ssbp-pinterest:focus,.ssbp--theme-2 .ssbp-pinterest:active{background-color:#a11413}.ssbp--theme-2 .ssbp-print{background-color:#1F6B43}.ssbp--theme-2 .ssbp-print:hover,.ssbp--theme-2 .ssbp-print:focus,.ssbp--theme-2 .ssbp-print:active{background-color:#14432a}.ssbp--theme-2 .ssbp-reddit{background-color:#FF4500}.ssbp--theme-2 .ssbp-reddit:hover,.ssbp--theme-2 .ssbp-reddit:focus,.ssbp--theme-2 .ssbp-reddit:active{background-color:#cc3700}.ssbp--theme-2 .ssbp-simplesharebuttons{background-color:#4582ec}.ssbp--theme-2 .ssbp-simplesharebuttons:hover,.ssbp--theme-2 .ssbp-simplesharebuttons:focus,.ssbp--theme-2 .ssbp-simplesharebuttons:active{background-color:#1863e6}.ssbp--theme-2 .ssbp-stumbleupon{background-color:#EB4924}.ssbp--theme-2 .ssbp-stumbleupon:hover,.ssbp--theme-2 .ssbp-stumbleupon:focus,.ssbp--theme-2 .ssbp-stumbleupon:active{background-color:#ca3412}.ssbp--theme-2 .ssbp-tumblr{background-color:#2C4762}.ssbp--theme-2 .ssbp-tumblr:hover,.ssbp--theme-2 .ssbp-tumblr:focus,.ssbp--theme-2 .ssbp-tumblr:active{background-color:#1c2e3f}.ssbp--theme-2 .ssbp-twitter{background-color:#00a9f1}.ssbp--theme-2 .ssbp-twitter:hover,.ssbp--theme-2 .ssbp-twitter:focus,.ssbp--theme-2 .ssbp-twitter:active{background-color:#0085be}.ssbp--theme-2 .ssbp-vk{background-color:#45668E}.ssbp--theme-2 .ssbp-vk:hover,.ssbp--theme-2 .ssbp-vk:focus,.ssbp--theme-2 .ssbp-vk:active{background-color:#344d6c}.ssbp--theme-2 .ssbp-whatsapp{background-color:#34AF23}.ssbp--theme-2 .ssbp-whatsapp:hover,.ssbp--theme-2 .ssbp-whatsapp:focus,.ssbp--theme-2 .ssbp-whatsapp:active{background-color:#27851b}.ssbp--theme-2 .ssbp-yummly{background-color:#E16120}.ssbp--theme-2 .ssbp-yummly:hover,.ssbp--theme-2 .ssbp-yummly:focus,.ssbp--theme-2 .ssbp-yummly:active{background-color:#b64d18}.ssbp--theme-2 .ssbp-xing{background-color:#026466}.ssbp--theme-2 .ssbp-xing:hover,.ssbp--theme-2 .ssbp-xing:focus,.ssbp--theme-2 .ssbp-xing:active{background-color:#013334}.ssbp--theme-2 .ssbp-each-share{padding:2px;background-color:rgba(0,0,0,0.1);font-size:10px;text-align:center;color:#FFF}
|
css/share-buttons/3.css
ADDED
@@ -0,0 +1 @@
|
|
Â
|
1 |
+
.ssbp--theme-3 .ssbp-toggle-switch{background:#4C4C4C;background:rgba(39,39,39,0.8);border-radius:0;color:#fff}.ssbp--theme-3 .ssbp-toggle-switch:active,.ssbp--theme-3 .ssbp-toggle-switch:hover,.ssbp--theme-3 .ssbp-toggle-switch:focus{background:#4C4C4C;background:rgba(39,39,39,0.9)}.ssbp--theme-3.ssbp--centred .ssbp-list{display:table;table-layout:fixed;width:100%}.ssbp--theme-3.ssbp--centred .ssbp-list li{display:inline-block !important;margin:0 0 !important;display:table-cell !important;width:auto;height:auto}.ssbp--theme-3.ssbp--centred .ssbp-btn{display:block;width:auto}.ssbp--theme-3 .ssbp-list li{margin:0 !important}.ssbp--theme-3 .ssbp-text{display:inline-block;vertical-align:middle;font-size:12px;margin-left:.5em;text-shadow:-1px -1px rgba(0,0,0,0.2)}.ssbp--theme-3 .ssbp-btn{display:block;padding:0.5em 1em;color:#fff;text-shadow:-1px -1px rgba(0,0,0,0.2);-webkit-transition:background-color .25s;transition:background-color .25s;border-bottom:0}.ssbp--theme-3 .ssbp-btn:before{vertical-align:middle}.ssbp--theme-3 .ssbp-btn:active{box-shadow:inset 0 0 0.5em rgba(0,0,0,0.33)}.ssbp--theme-3 .ssbp-btn:hover,.ssbp--theme-3 .ssbp-btn:focus,.ssbp--theme-3 .ssbp-btn:active,.ssbp--theme-3 .ssbp-btn:visited{color:#fff}.ssbp--theme-3 .ssbp-buffer{background-color:#272727}.ssbp--theme-3 .ssbp-buffer:hover,.ssbp--theme-3 .ssbp-buffer:focus,.ssbp--theme-3 .ssbp-buffer:active,.ssbp--theme-3 .ssbp-buffer+.ssbp-each-share{background-color:#0e0e0e}.ssbp--theme-3 .ssbp-diggit{background-color:#14589E}.ssbp--theme-3 .ssbp-diggit:hover,.ssbp--theme-3 .ssbp-diggit:focus,.ssbp--theme-3 .ssbp-diggit:active,.ssbp--theme-3 .ssbp-diggit+.ssbp-each-share{background-color:#0e3f71}.ssbp--theme-3 .ssbp-email{background-color:#787878}.ssbp--theme-3 .ssbp-email:hover,.ssbp--theme-3 .ssbp-email:focus,.ssbp--theme-3 .ssbp-email:active,.ssbp--theme-3 .ssbp-email+.ssbp-each-share{background-color:#5f5f5f}.ssbp--theme-3 .ssbp-ellipsis{background-color:#4582EC}.ssbp--theme-3 .ssbp-ellipsis:hover,.ssbp--theme-3 .ssbp-ellipsis:focus,.ssbp--theme-3 .ssbp-ellipsis:active,.ssbp--theme-3 .ssbp-ellipsis+.ssbp-each-share{background-color:#1863e6}.ssbp--theme-3 .ssbp-facebook{background-color:#3b5998}.ssbp--theme-3 .ssbp-facebook:hover,.ssbp--theme-3 .ssbp-facebook:focus,.ssbp--theme-3 .ssbp-facebook:active,.ssbp--theme-3 .ssbp-facebook+.ssbp-each-share{background-color:#2d4373}.ssbp--theme-3 .ssbp-facebook_save{background-color:#3b5998}.ssbp--theme-3 .ssbp-facebook_save:hover,.ssbp--theme-3 .ssbp-facebook_save:focus,.ssbp--theme-3 .ssbp-facebook_save:active,.ssbp--theme-3 .ssbp-facebook_save+.ssbp-each-share{background-color:#2d4373}.ssbp--theme-3 .ssbp-facebook-messenger{background-color:#0084FF}.ssbp--theme-3 .ssbp-facebook-messenger:hover,.ssbp--theme-3 .ssbp-facebook-messenger:focus,.ssbp--theme-3 .ssbp-facebook-messenger:active,.ssbp--theme-3 .ssbp-facebook-messenger+.ssbp-each-share{background-color:#006acc}.ssbp--theme-3 .ssbp-flattr{background-color:#f67C1A}.ssbp--theme-3 .ssbp-flattr:hover,.ssbp--theme-3 .ssbp-flattr:focus,.ssbp--theme-3 .ssbp-flattr:active,.ssbp--theme-3 .ssbp-flattr+.ssbp-each-share{background-color:#d56308}.ssbp--theme-3 .ssbp-google{background-color:#DC4E41}.ssbp--theme-3 .ssbp-google:hover,.ssbp--theme-3 .ssbp-google:focus,.ssbp--theme-3 .ssbp-google:active,.ssbp--theme-3 .ssbp-google+.ssbp-each-share{background-color:#c63224}.ssbp--theme-3 .ssbp-linkedin{background-color:#007bb6}.ssbp--theme-3 .ssbp-linkedin:hover,.ssbp--theme-3 .ssbp-linkedin:focus,.ssbp--theme-3 .ssbp-linkedin:active,.ssbp--theme-3 .ssbp-linkedin+.ssbp-each-share{background-color:#005983}.ssbp--theme-3 .ssbp-pinterest{background-color:#ce1a19}.ssbp--theme-3 .ssbp-pinterest:hover,.ssbp--theme-3 .ssbp-pinterest:focus,.ssbp--theme-3 .ssbp-pinterest:active,.ssbp--theme-3 .ssbp-pinterest+.ssbp-each-share{background-color:#a11413}.ssbp--theme-3 .ssbp-print{background-color:#1F6B43}.ssbp--theme-3 .ssbp-print:hover,.ssbp--theme-3 .ssbp-print:focus,.ssbp--theme-3 .ssbp-print:active,.ssbp--theme-3 .ssbp-print+.ssbp-each-share{background-color:#14432a}.ssbp--theme-3 .ssbp-reddit{background-color:#FF4500}.ssbp--theme-3 .ssbp-reddit:hover,.ssbp--theme-3 .ssbp-reddit:focus,.ssbp--theme-3 .ssbp-reddit:active,.ssbp--theme-3 .ssbp-reddit+.ssbp-each-share{background-color:#cc3700}.ssbp--theme-3 .ssbp-simplesharebuttons{background-color:#4582ec}.ssbp--theme-3 .ssbp-simplesharebuttons:hover,.ssbp--theme-3 .ssbp-simplesharebuttons:focus,.ssbp--theme-3 .ssbp-simplesharebuttons:active,.ssbp--theme-3 .ssbp-simplesharebuttons+.ssbp-each-share{background-color:#1863e6}.ssbp--theme-3 .ssbp-stumbleupon{background-color:#EB4924}.ssbp--theme-3 .ssbp-stumbleupon:hover,.ssbp--theme-3 .ssbp-stumbleupon:focus,.ssbp--theme-3 .ssbp-stumbleupon:active,.ssbp--theme-3 .ssbp-stumbleupon+.ssbp-each-share{background-color:#ca3412}.ssbp--theme-3 .ssbp-tumblr{background-color:#2C4762}.ssbp--theme-3 .ssbp-tumblr:hover,.ssbp--theme-3 .ssbp-tumblr:focus,.ssbp--theme-3 .ssbp-tumblr:active,.ssbp--theme-3 .ssbp-tumblr+.ssbp-each-share{background-color:#1c2e3f}.ssbp--theme-3 .ssbp-twitter{background-color:#00a9f1}.ssbp--theme-3 .ssbp-twitter:hover,.ssbp--theme-3 .ssbp-twitter:focus,.ssbp--theme-3 .ssbp-twitter:active,.ssbp--theme-3 .ssbp-twitter+.ssbp-each-share{background-color:#0085be}.ssbp--theme-3 .ssbp-vk{background-color:#45668E}.ssbp--theme-3 .ssbp-vk:hover,.ssbp--theme-3 .ssbp-vk:focus,.ssbp--theme-3 .ssbp-vk:active,.ssbp--theme-3 .ssbp-vk+.ssbp-each-share{background-color:#344d6c}.ssbp--theme-3 .ssbp-whatsapp{background-color:#34AF23}.ssbp--theme-3 .ssbp-whatsapp:hover,.ssbp--theme-3 .ssbp-whatsapp:focus,.ssbp--theme-3 .ssbp-whatsapp:active,.ssbp--theme-3 .ssbp-whatsapp+.ssbp-each-share{background-color:#27851b}.ssbp--theme-3 .ssbp-yummly{background-color:#E16120}.ssbp--theme-3 .ssbp-yummly:hover,.ssbp--theme-3 .ssbp-yummly:focus,.ssbp--theme-3 .ssbp-yummly:active,.ssbp--theme-3 .ssbp-yummly+.ssbp-each-share{background-color:#b64d18}.ssbp--theme-3 .ssbp-xing{background-color:#026466}.ssbp--theme-3 .ssbp-xing:hover,.ssbp--theme-3 .ssbp-xing:focus,.ssbp--theme-3 .ssbp-xing:active,.ssbp--theme-3 .ssbp-xing+.ssbp-each-share{background-color:#013334}.ssbp--theme-3 .ssbp-each-share{padding:2px;font-size:10px;text-align:center;color:#FFF}
|
css/share-buttons/4.css
ADDED
@@ -0,0 +1 @@
|
|
Â
|
1 |
+
.ssbp--theme-4 .ssbp-toggle-switch{background:#fff;background:rgba(255,255,255,0.8);color:#272727;border-radius:0}.ssbp--theme-4 .ssbp-toggle-switch:active,.ssbp--theme-4 .ssbp-toggle-switch:hover,.ssbp--theme-4 .ssbp-toggle-switch:focus{background:#fff;background:rgba(255,255,255,0.9)}.ssbp--theme-4[class*="ssbp--fixed"] .ssbp-container{background-color:rgba(255,255,255,0.8);padding:8px}.ssbp--theme-4 .ssbp-btn{width:3em;height:3em;line-height:3em;border-radius:7.5px;color:#fff;-webkit-transition:background-color .25s;transition:background-color .25s;box-shadow:inset 0 -1.5em 2em rgba(255,255,255,0.1);border-bottom:0}.ssbp--theme-4 .ssbp-btn:hover,.ssbp--theme-4 .ssbp-btn:focus,.ssbp--theme-4 .ssbp-btn:active{box-shadow:inset 0 -1.5em 2em rgba(255,255,255,0.1),inset 0 0 3.5em rgba(0,0,0,0.33)}.ssbp--theme-4 .ssbp-btn:hover,.ssbp--theme-4 .ssbp-btn:focus,.ssbp--theme-4 .ssbp-btn:active,.ssbp--theme-4 .ssbp-btn:visited{color:#fff}.ssbp--theme-4 .ssbp-list li{margin-left:12px}.ssbp--theme-4 .ssbp-buffer{background-color:#272727}.ssbp--theme-4 .ssbp-diggit{background-color:#14589E}.ssbp--theme-4 .ssbp-email{background-color:#787878}.ssbp--theme-4 .ssbp-ellipsis{background-color:#4582EC}.ssbp--theme-4 .ssbp-facebook{background-color:#3b5998}.ssbp--theme-4 .ssbp-facebook_save{background-color:#3b5998}.ssbp--theme-4 .ssbp-facebook-messenger{background-color:#0084FF}.ssbp--theme-4 .ssbp-flattr{background-color:#f67C1A}.ssbp--theme-4 .ssbp-google{background-color:#DC4E41}.ssbp--theme-4 .ssbp-linkedin{background-color:#007bb6}.ssbp--theme-4 .ssbp-pinterest{background-color:#ce1a19}.ssbp--theme-4 .ssbp-print{background-color:#1F6B43}.ssbp--theme-4 .ssbp-reddit{background-color:#FF4500}.ssbp--theme-4 .ssbp-simplesharebuttons{background-color:#4582ec}.ssbp--theme-4 .ssbp-stumbleupon{background-color:#EB4924}.ssbp--theme-4 .ssbp-tumblr{background-color:#2C4762}.ssbp--theme-4 .ssbp-twitter{background-color:#00a9f1}.ssbp--theme-4 .ssbp-vk{background-color:#45668E}.ssbp--theme-4 .ssbp-whatsapp{background-color:#34AF23}.ssbp--theme-4 .ssbp-yummly{background-color:#E16120}.ssbp--theme-4 .ssbp-xing{background-color:#026466}.ssbp--theme-4 .ssbp-each-share{position:absolute;bottom:100%;right:0;z-index:11;min-width:1.25em;margin-right:-6px;margin-bottom:-8px;padding:2px 4px;border-radius:8px;background-color:#F22121;font-size:10px;color:#FFF;text-align:center}.ssbp--theme-4.ssbp--fixed-right .ssbp-each-share{left:auto;right:100%;margin-left:0;margin-right:-16px}
|
css/share-buttons/5.css
ADDED
@@ -0,0 +1 @@
|
|
Â
|
1 |
+
.ssbp--theme-5 .ssbp-toggle-switch{background:#fff;background:rgba(255,255,255,0.8);color:#272727;border-radius:0}.ssbp--theme-5 .ssbp-toggle-switch:active,.ssbp--theme-5 .ssbp-toggle-switch:hover,.ssbp--theme-5 .ssbp-toggle-switch:focus{background:#fff;background:rgba(255,255,255,0.9)}.ssbp--theme-5.ssbp--centred .ssbp-list{display:table;table-layout:fixed;width:100%}.ssbp--theme-5.ssbp--centred .ssbp-list li{display:inline-block !important;margin:0 0 !important;display:table-cell !important;width:auto;height:auto}.ssbp--theme-5.ssbp--centred .ssbp-btn{display:block;width:auto}.ssbp--theme-5 .ssbp-btn{width:4em;height:3em;line-height:3em;margin-bottom:8px;color:#fff;-webkit-transition:.25s;transition:.25s;border-bottom:0}.ssbp--theme-5 .ssbp-btn:active{-webkit-transform:translateY(4px);transform:translateY(4px)}.ssbp--theme-5 .ssbp-btn:hover,.ssbp--theme-5 .ssbp-btn:focus,.ssbp--theme-5 .ssbp-btn:active,.ssbp--theme-5 .ssbp-btn:visited{color:#fff}.ssbp--theme-5.ssbp--stacked .ssbp-list li{margin-top:0}.ssbp--theme-5 .ssbp-buffer{background-color:#272727;box-shadow:0 8px 0 #0e0e0e,0 10px 12px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-buffer:active{box-shadow:0 4px 0 #0e0e0e,0 5px 6px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-diggit{background-color:#14589E;box-shadow:0 8px 0 #0e3f71,0 10px 12px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-diggit:active{box-shadow:0 4px 0 #0e3f71,0 5px 6px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-email{background-color:#787878;box-shadow:0 8px 0 #5f5f5f,0 10px 12px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-email:active{box-shadow:0 4px 0 #5f5f5f,0 5px 6px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-ellipsis{background-color:#4582EC;box-shadow:0 8px 0 #1863e6,0 10px 12px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-ellipsis:active{box-shadow:0 4px 0 #1863e6,0 5px 6px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-facebook{background-color:#3b5998;box-shadow:0 8px 0 #2d4373,0 10px 12px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-facebook:active{box-shadow:0 4px 0 #2d4373,0 5px 6px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-facebook_save{background-color:#3b5998;box-shadow:0 8px 0 #2d4373,0 10px 12px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-facebook_save:active{box-shadow:0 4px 0 #2d4373,0 5px 6px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-facebook-messenger{background-color:#0084FF;box-shadow:0 8px 0 #006acc,0 10px 12px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-facebook-messenger:active{box-shadow:0 4px 0 #006acc,0 5px 6px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-flattr{background-color:#f67C1A;box-shadow:0 8px 0 #d56308,0 10px 12px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-flattr:active{box-shadow:0 4px 0 #d56308,0 5px 6px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-google{background-color:#DC4E41;box-shadow:0 8px 0 #c63224,0 10px 12px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-google:active{box-shadow:0 4px 0 #c63224,0 5px 6px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-linkedin{background-color:#007bb6;box-shadow:0 8px 0 #005983,0 10px 12px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-linkedin:active{box-shadow:0 4px 0 #005983,0 5px 6px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-pinterest{background-color:#ce1a19;box-shadow:0 8px 0 #a11413,0 10px 12px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-pinterest:active{box-shadow:0 4px 0 #a11413,0 5px 6px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-print{background-color:#1F6B43;box-shadow:0 8px 0 #14432a,0 10px 12px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-print:active{box-shadow:0 4px 0 #14432a,0 5px 6px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-reddit{background-color:#FF4500;box-shadow:0 8px 0 #cc3700,0 10px 12px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-reddit:active{box-shadow:0 4px 0 #cc3700,0 5px 6px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-simplesharebuttons{background-color:#4582ec;box-shadow:0 8px 0 #1863e6,0 10px 12px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-simplesharebuttons:active{box-shadow:0 4px 0 #1863e6,0 5px 6px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-stumbleupon{background-color:#EB4924;box-shadow:0 8px 0 #ca3412,0 10px 12px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-stumbleupon:active{box-shadow:0 4px 0 #ca3412,0 5px 6px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-tumblr{background-color:#2C4762;box-shadow:0 8px 0 #1c2e3f,0 10px 12px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-tumblr:active{box-shadow:0 4px 0 #1c2e3f,0 5px 6px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-twitter{background-color:#00a9f1;box-shadow:0 8px 0 #0085be,0 10px 12px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-twitter:active{box-shadow:0 4px 0 #0085be,0 5px 6px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-vk{background-color:#45668E;box-shadow:0 8px 0 #344d6c,0 10px 12px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-vk:active{box-shadow:0 4px 0 #344d6c,0 5px 6px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-whatsapp{background-color:#34AF23;box-shadow:0 8px 0 #27851b,0 10px 12px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-whatsapp:active{box-shadow:0 4px 0 #27851b,0 5px 6px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-yummly{background-color:#E16120;box-shadow:0 8px 0 #b64d18,0 10px 12px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-yummly:active{box-shadow:0 4px 0 #b64d18,0 5px 6px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-xing{background-color:#026466;box-shadow:0 8px 0 #013334,0 10px 12px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-xing:active{box-shadow:0 4px 0 #013334,0 5px 6px rgba(0,0,0,0.33)}.ssbp--theme-5 .ssbp-each-share{padding-top:3px;text-align:center;font-size:12px}
|
css/share-buttons/6.css
ADDED
@@ -0,0 +1 @@
|
|
Â
|
1 |
+
.ssbp--theme-6 .ssbp-toggle-switch{background:#fff;background:rgba(255,255,255,0.8);color:#272727;border-radius:0}.ssbp--theme-6 .ssbp-toggle-switch:active,.ssbp--theme-6 .ssbp-toggle-switch:hover,.ssbp--theme-6 .ssbp-toggle-switch:focus{background:#fff;background:rgba(255,255,255,0.9)}.ssbp--theme-6[class*="ssbp--fixed"] .ssbp-container{background-color:rgba(255,255,255,0.8);padding:6px}.ssbp--theme-6 .ssbp-btn{width:3em;height:3em;line-height:3em;border:2px solid #fff;border-radius:50%;background-color:#fff;-webkit-transition:.25s;transition:.25s}.ssbp--theme-6 .ssbp-btn:hover,.ssbp--theme-6 .ssbp-btn:focus,.ssbp--theme-6 .ssbp-btn:active{color:#fff}.ssbp--theme-6 .ssbp-list li{margin-left:12px}.ssbp--theme-6 .ssbp-buffer{border-color:#272727;color:#272727}.ssbp--theme-6 .ssbp-buffer:hover,.ssbp--theme-6 .ssbp-buffer:focus,.ssbp--theme-6 .ssbp-buffer:active{background-color:#272727}.ssbp--theme-6 .ssbp-buffer+.ssbp-each-share{color:#272727;border-color:#272727}.ssbp--theme-6 .ssbp-diggit{border-color:#14589E;color:#14589E}.ssbp--theme-6 .ssbp-diggit:hover,.ssbp--theme-6 .ssbp-diggit:focus,.ssbp--theme-6 .ssbp-diggit:active{background-color:#14589E}.ssbp--theme-6 .ssbp-diggit+.ssbp-each-share{color:#14589E;border-color:#14589E}.ssbp--theme-6 .ssbp-email{border-color:#787878;color:#787878}.ssbp--theme-6 .ssbp-email:hover,.ssbp--theme-6 .ssbp-email:focus,.ssbp--theme-6 .ssbp-email:active{background-color:#787878}.ssbp--theme-6 .ssbp-email+.ssbp-each-share{color:#787878;border-color:#787878}.ssbp--theme-6 .ssbp-ellipsis{border-color:#4582EC;color:#4582EC}.ssbp--theme-6 .ssbp-ellipsis:hover,.ssbp--theme-6 .ssbp-ellipsis:focus,.ssbp--theme-6 .ssbp-ellipsis:active{background-color:#4582EC}.ssbp--theme-6 .ssbp-ellipsis+.ssbp-each-share{color:#4582EC;border-color:#4582EC}.ssbp--theme-6 .ssbp-facebook{border-color:#3b5998;color:#3b5998}.ssbp--theme-6 .ssbp-facebook:hover,.ssbp--theme-6 .ssbp-facebook:focus,.ssbp--theme-6 .ssbp-facebook:active{background-color:#3b5998}.ssbp--theme-6 .ssbp-facebook+.ssbp-each-share{color:#3b5998;border-color:#3b5998}.ssbp--theme-6 .ssbp-facebook_save{border-color:#3b5998;color:#3b5998}.ssbp--theme-6 .ssbp-facebook_save:hover,.ssbp--theme-6 .ssbp-facebook_save:focus,.ssbp--theme-6 .ssbp-facebook_save:active{background-color:#3b5998}.ssbp--theme-6 .ssbp-facebook_save+.ssbp-each-share{color:#3b5998;border-color:#3b5998}.ssbp--theme-6 .ssbp-facebook-messenger{border-color:#0084FF;color:#0084FF}.ssbp--theme-6 .ssbp-facebook-messenger:hover,.ssbp--theme-6 .ssbp-facebook-messenger:focus,.ssbp--theme-6 .ssbp-facebook-messenger:active{background-color:#0084FF}.ssbp--theme-6 .ssbp-facebook-messenger+.ssbp-each-share{color:#0084FF;border-color:#0084FF}.ssbp--theme-6 .ssbp-flattr{border-color:#f67C1A;color:#f67C1A}.ssbp--theme-6 .ssbp-flattr:hover,.ssbp--theme-6 .ssbp-flattr:focus,.ssbp--theme-6 .ssbp-flattr:active{background-color:#f67C1A}.ssbp--theme-6 .ssbp-flattr+.ssbp-each-share{color:#f67C1A;border-color:#f67C1A}.ssbp--theme-6 .ssbp-google{border-color:#DC4E41;color:#DC4E41}.ssbp--theme-6 .ssbp-google:hover,.ssbp--theme-6 .ssbp-google:focus,.ssbp--theme-6 .ssbp-google:active{background-color:#DC4E41}.ssbp--theme-6 .ssbp-google+.ssbp-each-share{color:#DC4E41;border-color:#DC4E41}.ssbp--theme-6 .ssbp-linkedin{border-color:#007bb6;color:#007bb6}.ssbp--theme-6 .ssbp-linkedin:hover,.ssbp--theme-6 .ssbp-linkedin:focus,.ssbp--theme-6 .ssbp-linkedin:active{background-color:#007bb6}.ssbp--theme-6 .ssbp-linkedin+.ssbp-each-share{color:#007bb6;border-color:#007bb6}.ssbp--theme-6 .ssbp-pinterest{border-color:#ce1a19;color:#ce1a19}.ssbp--theme-6 .ssbp-pinterest:hover,.ssbp--theme-6 .ssbp-pinterest:focus,.ssbp--theme-6 .ssbp-pinterest:active{background-color:#ce1a19}.ssbp--theme-6 .ssbp-pinterest+.ssbp-each-share{color:#ce1a19;border-color:#ce1a19}.ssbp--theme-6 .ssbp-print{border-color:#1F6B43;color:#1F6B43}.ssbp--theme-6 .ssbp-print:hover,.ssbp--theme-6 .ssbp-print:focus,.ssbp--theme-6 .ssbp-print:active{background-color:#1F6B43}.ssbp--theme-6 .ssbp-print+.ssbp-each-share{color:#1F6B43;border-color:#1F6B43}.ssbp--theme-6 .ssbp-reddit{border-color:#FF4500;color:#FF4500}.ssbp--theme-6 .ssbp-reddit:hover,.ssbp--theme-6 .ssbp-reddit:focus,.ssbp--theme-6 .ssbp-reddit:active{background-color:#FF4500}.ssbp--theme-6 .ssbp-reddit+.ssbp-each-share{color:#FF4500;border-color:#FF4500}.ssbp--theme-6 .ssbp-simplesharebuttons{border-color:#4582ec;color:#4582ec}.ssbp--theme-6 .ssbp-simplesharebuttons:hover,.ssbp--theme-6 .ssbp-simplesharebuttons:focus,.ssbp--theme-6 .ssbp-simplesharebuttons:active{background-color:#4582ec}.ssbp--theme-6 .ssbp-simplesharebuttons+.ssbp-each-share{color:#4582ec;border-color:#4582ec}.ssbp--theme-6 .ssbp-stumbleupon{border-color:#EB4924;color:#EB4924}.ssbp--theme-6 .ssbp-stumbleupon:hover,.ssbp--theme-6 .ssbp-stumbleupon:focus,.ssbp--theme-6 .ssbp-stumbleupon:active{background-color:#EB4924}.ssbp--theme-6 .ssbp-stumbleupon+.ssbp-each-share{color:#EB4924;border-color:#EB4924}.ssbp--theme-6 .ssbp-tumblr{border-color:#2C4762;color:#2C4762}.ssbp--theme-6 .ssbp-tumblr:hover,.ssbp--theme-6 .ssbp-tumblr:focus,.ssbp--theme-6 .ssbp-tumblr:active{background-color:#2C4762}.ssbp--theme-6 .ssbp-tumblr+.ssbp-each-share{color:#2C4762;border-color:#2C4762}.ssbp--theme-6 .ssbp-twitter{border-color:#00a9f1;color:#00a9f1}.ssbp--theme-6 .ssbp-twitter:hover,.ssbp--theme-6 .ssbp-twitter:focus,.ssbp--theme-6 .ssbp-twitter:active{background-color:#00a9f1}.ssbp--theme-6 .ssbp-twitter+.ssbp-each-share{color:#00a9f1;border-color:#00a9f1}.ssbp--theme-6 .ssbp-vk{border-color:#45668E;color:#45668E}.ssbp--theme-6 .ssbp-vk:hover,.ssbp--theme-6 .ssbp-vk:focus,.ssbp--theme-6 .ssbp-vk:active{background-color:#45668E}.ssbp--theme-6 .ssbp-vk+.ssbp-each-share{color:#45668E;border-color:#45668E}.ssbp--theme-6 .ssbp-whatsapp{border-color:#34AF23;color:#34AF23}.ssbp--theme-6 .ssbp-whatsapp:hover,.ssbp--theme-6 .ssbp-whatsapp:focus,.ssbp--theme-6 .ssbp-whatsapp:active{background-color:#34AF23}.ssbp--theme-6 .ssbp-whatsapp+.ssbp-each-share{color:#34AF23;border-color:#34AF23}.ssbp--theme-6 .ssbp-yummly{border-color:#E16120;color:#E16120}.ssbp--theme-6 .ssbp-yummly:hover,.ssbp--theme-6 .ssbp-yummly:focus,.ssbp--theme-6 .ssbp-yummly:active{background-color:#E16120}.ssbp--theme-6 .ssbp-yummly+.ssbp-each-share{color:#E16120;border-color:#E16120}.ssbp--theme-6 .ssbp-xing{border-color:#026466;color:#026466}.ssbp--theme-6 .ssbp-xing:hover,.ssbp--theme-6 .ssbp-xing:focus,.ssbp--theme-6 .ssbp-xing:active{background-color:#026466}.ssbp--theme-6 .ssbp-xing+.ssbp-each-share{color:#026466;border-color:#026466}.ssbp--theme-6 .ssbp-each-share{position:absolute;top:0;left:100%;z-index:11;margin-left:-12px;padding:2px;border:1px solid #fff;background-color:#fff;border-radius:6px;font-size:10px;color:#FFF}.ssbp--theme-6.ssbp--fixed-right .ssbp-each-share{left:auto;right:100%;margin-left:0;margin-right:-12px}
|
css/share-buttons/7.css
ADDED
@@ -0,0 +1 @@
|
|
Â
|
1 |
+
.ssbp--theme-7 .ssbp-toggle-switch{background:#fff;background:rgba(255,255,255,0.8);color:#272727;border-radius:0}.ssbp--theme-7 .ssbp-toggle-switch:active,.ssbp--theme-7 .ssbp-toggle-switch:hover,.ssbp--theme-7 .ssbp-toggle-switch:focus{background:#fff;background:rgba(255,255,255,0.9)}.ssbp--theme-7.ssbp--centred .ssbp-list{display:table;table-layout:fixed;width:100%}.ssbp--theme-7.ssbp--centred .ssbp-list li{display:inline-block !important;margin:0 6px !important;display:table-cell !important;width:auto;height:auto}.ssbp--theme-7.ssbp--centred .ssbp-btn{display:block;width:auto}.ssbp--theme-7 .ssbp-list li{margin-left:6px}.ssbp--theme-7 .ssbp-text{display:inline-block;vertical-align:middle;font-size:12px;margin-left:.5em}.ssbp--theme-7 .ssbp-btn{display:block;padding:0.5em 1em;border:2px solid #fff;color:#fff;background-color:#fff;-webkit-transition:background-color .25s;transition:background-color .25s}.ssbp--theme-7 .ssbp-btn:before{vertical-align:middle}.ssbp--theme-7 .ssbp-buffer{border-color:#272727;color:#272727}.ssbp--theme-7 .ssbp-buffer:visited{color:#272727}.ssbp--theme-7 .ssbp-buffer:hover,.ssbp--theme-7 .ssbp-buffer:focus,.ssbp--theme-7 .ssbp-buffer:active{background-color:#272727;border-bottom:2px #272727 solid;color:#fff}.ssbp--theme-7 .ssbp-buffer+.ssbp-each-share{color:#272727}.ssbp--theme-7 .ssbp-diggit{border-color:#14589E;color:#14589E}.ssbp--theme-7 .ssbp-diggit:visited{color:#14589E}.ssbp--theme-7 .ssbp-diggit:hover,.ssbp--theme-7 .ssbp-diggit:focus,.ssbp--theme-7 .ssbp-diggit:active{background-color:#14589E;border-bottom:2px #14589E solid;color:#fff}.ssbp--theme-7 .ssbp-diggit+.ssbp-each-share{color:#14589E}.ssbp--theme-7 .ssbp-email{border-color:#787878;color:#787878}.ssbp--theme-7 .ssbp-email:visited{color:#787878}.ssbp--theme-7 .ssbp-email:hover,.ssbp--theme-7 .ssbp-email:focus,.ssbp--theme-7 .ssbp-email:active{background-color:#787878;border-bottom:2px #787878 solid;color:#fff}.ssbp--theme-7 .ssbp-email+.ssbp-each-share{color:#787878}.ssbp--theme-7 .ssbp-ellipsis{border-color:#4582EC;color:#4582EC}.ssbp--theme-7 .ssbp-ellipsis:visited{color:#4582EC}.ssbp--theme-7 .ssbp-ellipsis:hover,.ssbp--theme-7 .ssbp-ellipsis:focus,.ssbp--theme-7 .ssbp-ellipsis:active{background-color:#4582EC;border-bottom:2px #4582EC solid;color:#fff}.ssbp--theme-7 .ssbp-ellipsis+.ssbp-each-share{color:#4582EC}.ssbp--theme-7 .ssbp-facebook{border-color:#3b5998;color:#3b5998}.ssbp--theme-7 .ssbp-facebook:visited{color:#3b5998}.ssbp--theme-7 .ssbp-facebook:hover,.ssbp--theme-7 .ssbp-facebook:focus,.ssbp--theme-7 .ssbp-facebook:active{background-color:#3b5998;border-bottom:2px #3b5998 solid;color:#fff}.ssbp--theme-7 .ssbp-facebook+.ssbp-each-share{color:#3b5998}.ssbp--theme-7 .ssbp-facebook_save{border-color:#3b5998;color:#3b5998}.ssbp--theme-7 .ssbp-facebook_save:visited{color:#3b5998}.ssbp--theme-7 .ssbp-facebook_save:hover,.ssbp--theme-7 .ssbp-facebook_save:focus,.ssbp--theme-7 .ssbp-facebook_save:active{background-color:#3b5998;border-bottom:2px #3b5998 solid;color:#fff}.ssbp--theme-7 .ssbp-facebook_save+.ssbp-each-share{color:#3b5998}.ssbp--theme-7 .ssbp-facebook-messenger{border-color:#0084FF;color:#0084FF}.ssbp--theme-7 .ssbp-facebook-messenger:visited{color:#0084FF}.ssbp--theme-7 .ssbp-facebook-messenger:hover,.ssbp--theme-7 .ssbp-facebook-messenger:focus,.ssbp--theme-7 .ssbp-facebook-messenger:active{background-color:#0084FF;border-bottom:2px #0084FF solid;color:#fff}.ssbp--theme-7 .ssbp-facebook-messenger+.ssbp-each-share{color:#0084FF}.ssbp--theme-7 .ssbp-flattr{border-color:#f67C1A;color:#f67C1A}.ssbp--theme-7 .ssbp-flattr:visited{color:#f67C1A}.ssbp--theme-7 .ssbp-flattr:hover,.ssbp--theme-7 .ssbp-flattr:focus,.ssbp--theme-7 .ssbp-flattr:active{background-color:#f67C1A;border-bottom:2px #f67C1A solid;color:#fff}.ssbp--theme-7 .ssbp-flattr+.ssbp-each-share{color:#f67C1A}.ssbp--theme-7 .ssbp-google{border-color:#DC4E41;color:#DC4E41}.ssbp--theme-7 .ssbp-google:visited{color:#DC4E41}.ssbp--theme-7 .ssbp-google:hover,.ssbp--theme-7 .ssbp-google:focus,.ssbp--theme-7 .ssbp-google:active{background-color:#DC4E41;border-bottom:2px #DC4E41 solid;color:#fff}.ssbp--theme-7 .ssbp-google+.ssbp-each-share{color:#DC4E41}.ssbp--theme-7 .ssbp-linkedin{border-color:#007bb6;color:#007bb6}.ssbp--theme-7 .ssbp-linkedin:visited{color:#007bb6}.ssbp--theme-7 .ssbp-linkedin:hover,.ssbp--theme-7 .ssbp-linkedin:focus,.ssbp--theme-7 .ssbp-linkedin:active{background-color:#007bb6;border-bottom:2px #007bb6 solid;color:#fff}.ssbp--theme-7 .ssbp-linkedin+.ssbp-each-share{color:#007bb6}.ssbp--theme-7 .ssbp-pinterest{border-color:#ce1a19;color:#ce1a19}.ssbp--theme-7 .ssbp-pinterest:visited{color:#ce1a19}.ssbp--theme-7 .ssbp-pinterest:hover,.ssbp--theme-7 .ssbp-pinterest:focus,.ssbp--theme-7 .ssbp-pinterest:active{background-color:#ce1a19;border-bottom:2px #ce1a19 solid;color:#fff}.ssbp--theme-7 .ssbp-pinterest+.ssbp-each-share{color:#ce1a19}.ssbp--theme-7 .ssbp-print{border-color:#1F6B43;color:#1F6B43}.ssbp--theme-7 .ssbp-print:visited{color:#1F6B43}.ssbp--theme-7 .ssbp-print:hover,.ssbp--theme-7 .ssbp-print:focus,.ssbp--theme-7 .ssbp-print:active{background-color:#1F6B43;border-bottom:2px #1F6B43 solid;color:#fff}.ssbp--theme-7 .ssbp-print+.ssbp-each-share{color:#1F6B43}.ssbp--theme-7 .ssbp-reddit{border-color:#FF4500;color:#FF4500}.ssbp--theme-7 .ssbp-reddit:visited{color:#FF4500}.ssbp--theme-7 .ssbp-reddit:hover,.ssbp--theme-7 .ssbp-reddit:focus,.ssbp--theme-7 .ssbp-reddit:active{background-color:#FF4500;border-bottom:2px #FF4500 solid;color:#fff}.ssbp--theme-7 .ssbp-reddit+.ssbp-each-share{color:#FF4500}.ssbp--theme-7 .ssbp-simplesharebuttons{border-color:#4582ec;color:#4582ec}.ssbp--theme-7 .ssbp-simplesharebuttons:visited{color:#4582ec}.ssbp--theme-7 .ssbp-simplesharebuttons:hover,.ssbp--theme-7 .ssbp-simplesharebuttons:focus,.ssbp--theme-7 .ssbp-simplesharebuttons:active{background-color:#4582ec;border-bottom:2px #4582ec solid;color:#fff}.ssbp--theme-7 .ssbp-simplesharebuttons+.ssbp-each-share{color:#4582ec}.ssbp--theme-7 .ssbp-stumbleupon{border-color:#EB4924;color:#EB4924}.ssbp--theme-7 .ssbp-stumbleupon:visited{color:#EB4924}.ssbp--theme-7 .ssbp-stumbleupon:hover,.ssbp--theme-7 .ssbp-stumbleupon:focus,.ssbp--theme-7 .ssbp-stumbleupon:active{background-color:#EB4924;border-bottom:2px #EB4924 solid;color:#fff}.ssbp--theme-7 .ssbp-stumbleupon+.ssbp-each-share{color:#EB4924}.ssbp--theme-7 .ssbp-tumblr{border-color:#2C4762;color:#2C4762}.ssbp--theme-7 .ssbp-tumblr:visited{color:#2C4762}.ssbp--theme-7 .ssbp-tumblr:hover,.ssbp--theme-7 .ssbp-tumblr:focus,.ssbp--theme-7 .ssbp-tumblr:active{background-color:#2C4762;border-bottom:2px #2C4762 solid;color:#fff}.ssbp--theme-7 .ssbp-tumblr+.ssbp-each-share{color:#2C4762}.ssbp--theme-7 .ssbp-twitter{border-color:#00a9f1;color:#00a9f1}.ssbp--theme-7 .ssbp-twitter:visited{color:#00a9f1}.ssbp--theme-7 .ssbp-twitter:hover,.ssbp--theme-7 .ssbp-twitter:focus,.ssbp--theme-7 .ssbp-twitter:active{background-color:#00a9f1;border-bottom:2px #00a9f1 solid;color:#fff}.ssbp--theme-7 .ssbp-twitter+.ssbp-each-share{color:#00a9f1}.ssbp--theme-7 .ssbp-vk{border-color:#45668E;color:#45668E}.ssbp--theme-7 .ssbp-vk:visited{color:#45668E}.ssbp--theme-7 .ssbp-vk:hover,.ssbp--theme-7 .ssbp-vk:focus,.ssbp--theme-7 .ssbp-vk:active{background-color:#45668E;border-bottom:2px #45668E solid;color:#fff}.ssbp--theme-7 .ssbp-vk+.ssbp-each-share{color:#45668E}.ssbp--theme-7 .ssbp-whatsapp{border-color:#34AF23;color:#34AF23}.ssbp--theme-7 .ssbp-whatsapp:visited{color:#34AF23}.ssbp--theme-7 .ssbp-whatsapp:hover,.ssbp--theme-7 .ssbp-whatsapp:focus,.ssbp--theme-7 .ssbp-whatsapp:active{background-color:#34AF23;border-bottom:2px #34AF23 solid;color:#fff}.ssbp--theme-7 .ssbp-whatsapp+.ssbp-each-share{color:#34AF23}.ssbp--theme-7 .ssbp-yummly{border-color:#E16120;color:#E16120}.ssbp--theme-7 .ssbp-yummly:visited{color:#E16120}.ssbp--theme-7 .ssbp-yummly:hover,.ssbp--theme-7 .ssbp-yummly:focus,.ssbp--theme-7 .ssbp-yummly:active{background-color:#E16120;border-bottom:2px #E16120 solid;color:#fff}.ssbp--theme-7 .ssbp-yummly+.ssbp-each-share{color:#E16120}.ssbp--theme-7 .ssbp-xing{border-color:#026466;color:#026466}.ssbp--theme-7 .ssbp-xing:visited{color:#026466}.ssbp--theme-7 .ssbp-xing:hover,.ssbp--theme-7 .ssbp-xing:focus,.ssbp--theme-7 .ssbp-xing:active{background-color:#026466;border-bottom:2px #026466 solid;color:#fff}.ssbp--theme-7 .ssbp-xing+.ssbp-each-share{color:#026466}.ssbp--theme-7 .ssbp-each-share{padding-top:3px;text-align:center;font-size:12px}
|
css/share-buttons/8.css
ADDED
@@ -0,0 +1 @@
|
|
Â
|
1 |
+
.ssbp--theme-8 .ssbp-toggle-switch{background:#fff;background:rgba(255,255,255,0.8);color:#272727;border-radius:0}.ssbp--theme-8 .ssbp-toggle-switch:active,.ssbp--theme-8 .ssbp-toggle-switch:hover,.ssbp--theme-8 .ssbp-toggle-switch:focus{background:#fff;background:rgba(255,255,255,0.9)}.ssbp--theme-8.ssbp--centred .ssbp-list{display:table;table-layout:fixed;width:100%}.ssbp--theme-8.ssbp--centred .ssbp-list li{display:inline-block !important;margin:0 6px !important;display:table-cell !important;width:auto;height:auto}.ssbp--theme-8.ssbp--centred .ssbp-btn{display:block;width:auto}.ssbp--theme-8 .ssbp-list li{margin-left:6px}.ssbp--theme-8 .ssbp-btn:hover,.ssbp--theme-8 .ssbp-btn:focus,.ssbp--theme-8 .ssbp-btn:active{border-bottom:3px solid #272727}.ssbp--theme-8 .ssbp-btn,.ssbp--theme-8 .ssbp-btn:visited{width:4em;height:3em;line-height:3em;position:relative;border:3px solid #272727;background-color:#fff;color:#272727;-webkit-transition:.25s;transition:.25s}.ssbp--theme-8 .ssbp-btn:hover,.ssbp--theme-8 .ssbp-btn:focus,.ssbp--theme-8 .ssbp-btn:active,.ssbp--theme-8 .ssbp-btn:visited:hover,.ssbp--theme-8 .ssbp-btn:visited:focus,.ssbp--theme-8 .ssbp-btn:visited:active{background-color:#272727;color:#fff}.ssbp--theme-8 .ssbp-each-share{padding-top:3px;text-align:center;font-size:12px}
|
css/share-buttons/9.css
ADDED
@@ -0,0 +1 @@
|
|
Â
|
1 |
+
.ssbp--theme-9 .ssbp-toggle-switch{background:#fff;background:rgba(255,255,255,0.8);color:#272727;border-radius:0}.ssbp--theme-9 .ssbp-toggle-switch:active,.ssbp--theme-9 .ssbp-toggle-switch:hover,.ssbp--theme-9 .ssbp-toggle-switch:focus{background:#fff;background:rgba(255,255,255,0.9)}.ssbp--theme-9.ssbp--centred .ssbp-list{display:table;table-layout:fixed;width:100%}.ssbp--theme-9.ssbp--centred .ssbp-list li{display:inline-block !important;margin:0 6px !important;display:table-cell !important;width:auto;height:auto}.ssbp--theme-9.ssbp--centred .ssbp-btn{display:block;width:auto}.ssbp--theme-9 .ssbp-list li{margin-left:6px}.ssbp--theme-9 .ssbp-btn{display:block;padding:.5em 1em}.ssbp--theme-9 .ssbp-btn:hover,.ssbp--theme-9 .ssbp-btn:focus,.ssbp--theme-9 .ssbp-btn:active{opacity:.66}.ssbp--theme-9 .ssbp-buffer{border-bottom:5px solid #272727;color:#272727}.ssbp--theme-9 .ssbp-buffer:hover,.ssbp--theme-9 .ssbp-buffer:focus,.ssbp--theme-9 .ssbp-buffer:active{border-bottom:5px solid #272727}.ssbp--theme-9 .ssbp-buffer:hover,.ssbp--theme-9 .ssbp-buffer:focus,.ssbp--theme-9 .ssbp-buffer:active,.ssbp--theme-9 .ssbp-buffer:visited{color:#272727}.ssbp--theme-9 .ssbp-buffer+.ssbp-each-share{color:#272727}.ssbp--theme-9 .ssbp-diggit{border-bottom:5px solid #14589E;color:#14589E}.ssbp--theme-9 .ssbp-diggit:hover,.ssbp--theme-9 .ssbp-diggit:focus,.ssbp--theme-9 .ssbp-diggit:active{border-bottom:5px solid #14589E}.ssbp--theme-9 .ssbp-diggit:hover,.ssbp--theme-9 .ssbp-diggit:focus,.ssbp--theme-9 .ssbp-diggit:active,.ssbp--theme-9 .ssbp-diggit:visited{color:#14589E}.ssbp--theme-9 .ssbp-diggit+.ssbp-each-share{color:#14589E}.ssbp--theme-9 .ssbp-email{border-bottom:5px solid #787878;color:#787878}.ssbp--theme-9 .ssbp-email:hover,.ssbp--theme-9 .ssbp-email:focus,.ssbp--theme-9 .ssbp-email:active{border-bottom:5px solid #787878}.ssbp--theme-9 .ssbp-email:hover,.ssbp--theme-9 .ssbp-email:focus,.ssbp--theme-9 .ssbp-email:active,.ssbp--theme-9 .ssbp-email:visited{color:#787878}.ssbp--theme-9 .ssbp-email+.ssbp-each-share{color:#787878}.ssbp--theme-9 .ssbp-ellipsis{border-bottom:5px solid #4582EC;color:#4582EC}.ssbp--theme-9 .ssbp-ellipsis:hover,.ssbp--theme-9 .ssbp-ellipsis:focus,.ssbp--theme-9 .ssbp-ellipsis:active{border-bottom:5px solid #4582EC}.ssbp--theme-9 .ssbp-ellipsis:hover,.ssbp--theme-9 .ssbp-ellipsis:focus,.ssbp--theme-9 .ssbp-ellipsis:active,.ssbp--theme-9 .ssbp-ellipsis:visited{color:#4582EC}.ssbp--theme-9 .ssbp-ellipsis+.ssbp-each-share{color:#4582EC}.ssbp--theme-9 .ssbp-facebook{border-bottom:5px solid #3b5998;color:#3b5998}.ssbp--theme-9 .ssbp-facebook:hover,.ssbp--theme-9 .ssbp-facebook:focus,.ssbp--theme-9 .ssbp-facebook:active{border-bottom:5px solid #3b5998}.ssbp--theme-9 .ssbp-facebook:hover,.ssbp--theme-9 .ssbp-facebook:focus,.ssbp--theme-9 .ssbp-facebook:active,.ssbp--theme-9 .ssbp-facebook:visited{color:#3b5998}.ssbp--theme-9 .ssbp-facebook+.ssbp-each-share{color:#3b5998}.ssbp--theme-9 .ssbp-facebook_save{border-bottom:5px solid #3b5998;color:#3b5998}.ssbp--theme-9 .ssbp-facebook_save:hover,.ssbp--theme-9 .ssbp-facebook_save:focus,.ssbp--theme-9 .ssbp-facebook_save:active{border-bottom:5px solid #3b5998}.ssbp--theme-9 .ssbp-facebook_save:hover,.ssbp--theme-9 .ssbp-facebook_save:focus,.ssbp--theme-9 .ssbp-facebook_save:active,.ssbp--theme-9 .ssbp-facebook_save:visited{color:#3b5998}.ssbp--theme-9 .ssbp-facebook_save+.ssbp-each-share{color:#3b5998}.ssbp--theme-9 .ssbp-facebook-messenger{border-bottom:5px solid #0084FF;color:#0084FF}.ssbp--theme-9 .ssbp-facebook-messenger:hover,.ssbp--theme-9 .ssbp-facebook-messenger:focus,.ssbp--theme-9 .ssbp-facebook-messenger:active{border-bottom:5px solid #0084FF}.ssbp--theme-9 .ssbp-facebook-messenger:hover,.ssbp--theme-9 .ssbp-facebook-messenger:focus,.ssbp--theme-9 .ssbp-facebook-messenger:active,.ssbp--theme-9 .ssbp-facebook-messenger:visited{color:#0084FF}.ssbp--theme-9 .ssbp-facebook-messenger+.ssbp-each-share{color:#0084FF}.ssbp--theme-9 .ssbp-flattr{border-bottom:5px solid #f67C1A;color:#f67C1A}.ssbp--theme-9 .ssbp-flattr:hover,.ssbp--theme-9 .ssbp-flattr:focus,.ssbp--theme-9 .ssbp-flattr:active{border-bottom:5px solid #f67C1A}.ssbp--theme-9 .ssbp-flattr:hover,.ssbp--theme-9 .ssbp-flattr:focus,.ssbp--theme-9 .ssbp-flattr:active,.ssbp--theme-9 .ssbp-flattr:visited{color:#f67C1A}.ssbp--theme-9 .ssbp-flattr+.ssbp-each-share{color:#f67C1A}.ssbp--theme-9 .ssbp-google{border-bottom:5px solid #DC4E41;color:#DC4E41}.ssbp--theme-9 .ssbp-google:hover,.ssbp--theme-9 .ssbp-google:focus,.ssbp--theme-9 .ssbp-google:active{border-bottom:5px solid #DC4E41}.ssbp--theme-9 .ssbp-google:hover,.ssbp--theme-9 .ssbp-google:focus,.ssbp--theme-9 .ssbp-google:active,.ssbp--theme-9 .ssbp-google:visited{color:#DC4E41}.ssbp--theme-9 .ssbp-google+.ssbp-each-share{color:#DC4E41}.ssbp--theme-9 .ssbp-linkedin{border-bottom:5px solid #007bb6;color:#007bb6}.ssbp--theme-9 .ssbp-linkedin:hover,.ssbp--theme-9 .ssbp-linkedin:focus,.ssbp--theme-9 .ssbp-linkedin:active{border-bottom:5px solid #007bb6}.ssbp--theme-9 .ssbp-linkedin:hover,.ssbp--theme-9 .ssbp-linkedin:focus,.ssbp--theme-9 .ssbp-linkedin:active,.ssbp--theme-9 .ssbp-linkedin:visited{color:#007bb6}.ssbp--theme-9 .ssbp-linkedin+.ssbp-each-share{color:#007bb6}.ssbp--theme-9 .ssbp-pinterest{border-bottom:5px solid #ce1a19;color:#ce1a19}.ssbp--theme-9 .ssbp-pinterest:hover,.ssbp--theme-9 .ssbp-pinterest:focus,.ssbp--theme-9 .ssbp-pinterest:active{border-bottom:5px solid #ce1a19}.ssbp--theme-9 .ssbp-pinterest:hover,.ssbp--theme-9 .ssbp-pinterest:focus,.ssbp--theme-9 .ssbp-pinterest:active,.ssbp--theme-9 .ssbp-pinterest:visited{color:#ce1a19}.ssbp--theme-9 .ssbp-pinterest+.ssbp-each-share{color:#ce1a19}.ssbp--theme-9 .ssbp-print{border-bottom:5px solid #1F6B43;color:#1F6B43}.ssbp--theme-9 .ssbp-print:hover,.ssbp--theme-9 .ssbp-print:focus,.ssbp--theme-9 .ssbp-print:active{border-bottom:5px solid #1F6B43}.ssbp--theme-9 .ssbp-print:hover,.ssbp--theme-9 .ssbp-print:focus,.ssbp--theme-9 .ssbp-print:active,.ssbp--theme-9 .ssbp-print:visited{color:#1F6B43}.ssbp--theme-9 .ssbp-print+.ssbp-each-share{color:#1F6B43}.ssbp--theme-9 .ssbp-reddit{border-bottom:5px solid #FF4500;color:#FF4500}.ssbp--theme-9 .ssbp-reddit:hover,.ssbp--theme-9 .ssbp-reddit:focus,.ssbp--theme-9 .ssbp-reddit:active{border-bottom:5px solid #FF4500}.ssbp--theme-9 .ssbp-reddit:hover,.ssbp--theme-9 .ssbp-reddit:focus,.ssbp--theme-9 .ssbp-reddit:active,.ssbp--theme-9 .ssbp-reddit:visited{color:#FF4500}.ssbp--theme-9 .ssbp-reddit+.ssbp-each-share{color:#FF4500}.ssbp--theme-9 .ssbp-simplesharebuttons{border-bottom:5px solid #4582ec;color:#4582ec}.ssbp--theme-9 .ssbp-simplesharebuttons:hover,.ssbp--theme-9 .ssbp-simplesharebuttons:focus,.ssbp--theme-9 .ssbp-simplesharebuttons:active{border-bottom:5px solid #4582ec}.ssbp--theme-9 .ssbp-simplesharebuttons:hover,.ssbp--theme-9 .ssbp-simplesharebuttons:focus,.ssbp--theme-9 .ssbp-simplesharebuttons:active,.ssbp--theme-9 .ssbp-simplesharebuttons:visited{color:#4582ec}.ssbp--theme-9 .ssbp-simplesharebuttons+.ssbp-each-share{color:#4582ec}.ssbp--theme-9 .ssbp-stumbleupon{border-bottom:5px solid #EB4924;color:#EB4924}.ssbp--theme-9 .ssbp-stumbleupon:hover,.ssbp--theme-9 .ssbp-stumbleupon:focus,.ssbp--theme-9 .ssbp-stumbleupon:active{border-bottom:5px solid #EB4924}.ssbp--theme-9 .ssbp-stumbleupon:hover,.ssbp--theme-9 .ssbp-stumbleupon:focus,.ssbp--theme-9 .ssbp-stumbleupon:active,.ssbp--theme-9 .ssbp-stumbleupon:visited{color:#EB4924}.ssbp--theme-9 .ssbp-stumbleupon+.ssbp-each-share{color:#EB4924}.ssbp--theme-9 .ssbp-tumblr{border-bottom:5px solid #2C4762;color:#2C4762}.ssbp--theme-9 .ssbp-tumblr:hover,.ssbp--theme-9 .ssbp-tumblr:focus,.ssbp--theme-9 .ssbp-tumblr:active{border-bottom:5px solid #2C4762}.ssbp--theme-9 .ssbp-tumblr:hover,.ssbp--theme-9 .ssbp-tumblr:focus,.ssbp--theme-9 .ssbp-tumblr:active,.ssbp--theme-9 .ssbp-tumblr:visited{color:#2C4762}.ssbp--theme-9 .ssbp-tumblr+.ssbp-each-share{color:#2C4762}.ssbp--theme-9 .ssbp-twitter{border-bottom:5px solid #00a9f1;color:#00a9f1}.ssbp--theme-9 .ssbp-twitter:hover,.ssbp--theme-9 .ssbp-twitter:focus,.ssbp--theme-9 .ssbp-twitter:active{border-bottom:5px solid #00a9f1}.ssbp--theme-9 .ssbp-twitter:hover,.ssbp--theme-9 .ssbp-twitter:focus,.ssbp--theme-9 .ssbp-twitter:active,.ssbp--theme-9 .ssbp-twitter:visited{color:#00a9f1}.ssbp--theme-9 .ssbp-twitter+.ssbp-each-share{color:#00a9f1}.ssbp--theme-9 .ssbp-vk{border-bottom:5px solid #45668E;color:#45668E}.ssbp--theme-9 .ssbp-vk:hover,.ssbp--theme-9 .ssbp-vk:focus,.ssbp--theme-9 .ssbp-vk:active{border-bottom:5px solid #45668E}.ssbp--theme-9 .ssbp-vk:hover,.ssbp--theme-9 .ssbp-vk:focus,.ssbp--theme-9 .ssbp-vk:active,.ssbp--theme-9 .ssbp-vk:visited{color:#45668E}.ssbp--theme-9 .ssbp-vk+.ssbp-each-share{color:#45668E}.ssbp--theme-9 .ssbp-whatsapp{border-bottom:5px solid #34AF23;color:#34AF23}.ssbp--theme-9 .ssbp-whatsapp:hover,.ssbp--theme-9 .ssbp-whatsapp:focus,.ssbp--theme-9 .ssbp-whatsapp:active{border-bottom:5px solid #34AF23}.ssbp--theme-9 .ssbp-whatsapp:hover,.ssbp--theme-9 .ssbp-whatsapp:focus,.ssbp--theme-9 .ssbp-whatsapp:active,.ssbp--theme-9 .ssbp-whatsapp:visited{color:#34AF23}.ssbp--theme-9 .ssbp-whatsapp+.ssbp-each-share{color:#34AF23}.ssbp--theme-9 .ssbp-yummly{border-bottom:5px solid #E16120;color:#E16120}.ssbp--theme-9 .ssbp-yummly:hover,.ssbp--theme-9 .ssbp-yummly:focus,.ssbp--theme-9 .ssbp-yummly:active{border-bottom:5px solid #E16120}.ssbp--theme-9 .ssbp-yummly:hover,.ssbp--theme-9 .ssbp-yummly:focus,.ssbp--theme-9 .ssbp-yummly:active,.ssbp--theme-9 .ssbp-yummly:visited{color:#E16120}.ssbp--theme-9 .ssbp-yummly+.ssbp-each-share{color:#E16120}.ssbp--theme-9 .ssbp-xing{border-bottom:5px solid #026466;color:#026466}.ssbp--theme-9 .ssbp-xing:hover,.ssbp--theme-9 .ssbp-xing:focus,.ssbp--theme-9 .ssbp-xing:active{border-bottom:5px solid #026466}.ssbp--theme-9 .ssbp-xing:hover,.ssbp--theme-9 .ssbp-xing:focus,.ssbp--theme-9 .ssbp-xing:active,.ssbp--theme-9 .ssbp-xing:visited{color:#026466}.ssbp--theme-9 .ssbp-xing+.ssbp-each-share{color:#026466}.ssbp--theme-9 .ssbp-each-share{padding-top:3px;text-align:center;font-size:12px}.ssbp--theme-9 .ssbp-each-share:before{content:"("}.ssbp--theme-9 .ssbp-each-share:after{content:")"}
|
css/ssba.css
ADDED
@@ -0,0 +1 @@
|
|
Â
|
1 |
+
/* Style stylesheet */
|
css/ssbp-admin-theme.css
DELETED
@@ -1,427 +0,0 @@
|
|
1 |
-
.ssbp-btn:before,
|
2 |
-
.ssbp-toggle-switch:before {
|
3 |
-
display: inline-block;
|
4 |
-
font-family: 'ssbp';
|
5 |
-
speak: none;
|
6 |
-
font-size: 24px;
|
7 |
-
font-style: normal;
|
8 |
-
font-weight: normal;
|
9 |
-
font-variant: normal;
|
10 |
-
text-transform: none
|
11 |
-
}
|
12 |
-
.ssbp-arrow-right:before {
|
13 |
-
content: "\e612"
|
14 |
-
}
|
15 |
-
.ssbp-arrow-left:before {
|
16 |
-
content: "\e613"
|
17 |
-
}
|
18 |
-
.ssbp-arrow-down:before {
|
19 |
-
content: "\e619"
|
20 |
-
}
|
21 |
-
.ssbp-arrow-up:before {
|
22 |
-
content: "\e61a"
|
23 |
-
}
|
24 |
-
.ssbp-chevron-down:before,
|
25 |
-
.ssbp-toggle-switch:before {
|
26 |
-
content: "\e618"
|
27 |
-
}
|
28 |
-
.ssbp-chevron-up:before,
|
29 |
-
.ssbp--state-hidden .ssbp-toggle-switch:before {
|
30 |
-
content: "\e615"
|
31 |
-
}
|
32 |
-
.ssbp-chevron-right:before,
|
33 |
-
.ssbp--fixed-right .ssbp-toggle-switch:before,
|
34 |
-
.ssbp--state-hidden.ssbp--fixed-left .ssbp-toggle-switch:before {
|
35 |
-
content: "\e616"
|
36 |
-
}
|
37 |
-
.ssbp-chevron-left:before,
|
38 |
-
.ssbp--fixed-left .ssbp-toggle-switch:before,
|
39 |
-
.ssbp--state-hidden.ssbp--fixed-right .ssbp-toggle-switch:before {
|
40 |
-
content: "\e617"
|
41 |
-
}
|
42 |
-
.ssbp-simplesharebuttons:before {
|
43 |
-
content: "\e611"
|
44 |
-
}
|
45 |
-
.ssbp-yummly:before {
|
46 |
-
content: "\e60b"
|
47 |
-
}
|
48 |
-
.ssbp-whatsapp:before {
|
49 |
-
content: "\e60f"
|
50 |
-
}
|
51 |
-
.ssbp-diggit:before {
|
52 |
-
content: "\e60c"
|
53 |
-
}
|
54 |
-
.ssbp-buffer:before {
|
55 |
-
content: "\e60d"
|
56 |
-
}
|
57 |
-
.ssbp-close:before {
|
58 |
-
content: "\e614"
|
59 |
-
}
|
60 |
-
.ssbp-twitter:before {
|
61 |
-
content: "\e605"
|
62 |
-
}
|
63 |
-
.ssbp-reddit:before {
|
64 |
-
content: "\e606"
|
65 |
-
}
|
66 |
-
.ssbp-flattr:before {
|
67 |
-
content: "\e607"
|
68 |
-
}
|
69 |
-
.ssbp-tumblr:before {
|
70 |
-
content: "\e608"
|
71 |
-
}
|
72 |
-
.ssbp-linkedin:before {
|
73 |
-
content: "\e609"
|
74 |
-
}
|
75 |
-
.ssbp-google:before {
|
76 |
-
content: "\e60a"
|
77 |
-
}
|
78 |
-
.ssbp-xing:before {
|
79 |
-
content: "\e610"
|
80 |
-
}
|
81 |
-
.ssbp-facebook:before {
|
82 |
-
content: "\e60e"
|
83 |
-
}
|
84 |
-
.ssbp-facebook_save:before {
|
85 |
-
content: "\e900";
|
86 |
-
}
|
87 |
-
.ssbp-vk:before {
|
88 |
-
content: "\e600"
|
89 |
-
}
|
90 |
-
.ssbp-stumbleupon:before {
|
91 |
-
content: "\e601"
|
92 |
-
}
|
93 |
-
.ssbp-print:before {
|
94 |
-
content: "\e602"
|
95 |
-
}
|
96 |
-
.ssbp-pinterest:before {
|
97 |
-
content: "\e603"
|
98 |
-
}
|
99 |
-
.ssbp-email:before {
|
100 |
-
content: "\e604"
|
101 |
-
}
|
102 |
-
@media only screen and (min-width: 481px) {
|
103 |
-
.ssbp-li--whatsapp {
|
104 |
-
display: none !important
|
105 |
-
}
|
106 |
-
}
|
107 |
-
.ssbp-wrap *,
|
108 |
-
.ssbp-wrap *:before,
|
109 |
-
.ssbp-wrap *:after {
|
110 |
-
box-sizing: border-box
|
111 |
-
}
|
112 |
-
.ssbp-input-url-div,
|
113 |
-
.ssbp-total-shares,
|
114 |
-
.ssbp-each-share,
|
115 |
-
.ssbp-toggle-switch,
|
116 |
-
.ssbp-text {
|
117 |
-
display: none
|
118 |
-
}
|
119 |
-
.ssbp-wrap {
|
120 |
-
position: relative;
|
121 |
-
display: inline-block;
|
122 |
-
padding: 0px;
|
123 |
-
font-size: 0;
|
124 |
-
color: #272727
|
125 |
-
}
|
126 |
-
.ssbp-wrap.ssbp--centred {
|
127 |
-
display: block;
|
128 |
-
text-align: center
|
129 |
-
}
|
130 |
-
.ssbp-wrap.ssbp--aligned-right {
|
131 |
-
display: block;
|
132 |
-
text-align: right
|
133 |
-
}
|
134 |
-
.ssbp-wrap.ssbp--aligned-right .ssbp-container {
|
135 |
-
display: inline-block
|
136 |
-
}
|
137 |
-
.ssbp-wrap .ssbp-container,
|
138 |
-
.ssbp-wrap .ssbp-toggle-switch {
|
139 |
-
font-size: 16px
|
140 |
-
}
|
141 |
-
.ssbp-wrap .ssbp-list {
|
142 |
-
list-style: none;
|
143 |
-
display: inline-block;
|
144 |
-
vertical-align: middle;
|
145 |
-
margin: 0;
|
146 |
-
padding: 0
|
147 |
-
}
|
148 |
-
.ssbp-wrap .ssbp-list li {
|
149 |
-
position: relative;
|
150 |
-
display: inline-block;
|
151 |
-
vertical-align: top
|
152 |
-
}
|
153 |
-
.ssbp-wrap .ssbp-list li:first-of-type {
|
154 |
-
margin-left: 0
|
155 |
-
}
|
156 |
-
.ssbp-wrap .ssbp-btn {
|
157 |
-
display: inline-block;
|
158 |
-
text-align: center;
|
159 |
-
text-decoration: none;
|
160 |
-
font-family: sans-serif
|
161 |
-
}
|
162 |
-
.ssbp-wrap.ssbp--stacked .ssbp-list li,
|
163 |
-
.ssbp-wrap.ssbp--fixed-left .ssbp-list li,
|
164 |
-
.ssbp-wrap.ssbp--fixed-right .ssbp-list li {
|
165 |
-
display: block;
|
166 |
-
margin-top: 6px;
|
167 |
-
margin-left: 0 !important;
|
168 |
-
margin-right: 0 !important
|
169 |
-
}
|
170 |
-
.ssbp-wrap.ssbp--stacked .ssbp-list li:first-of-type,
|
171 |
-
.ssbp-wrap.ssbp--fixed-left .ssbp-list li:first-of-type,
|
172 |
-
.ssbp-wrap.ssbp--fixed-right .ssbp-list li:first-of-type {
|
173 |
-
margin-top: 0
|
174 |
-
}
|
175 |
-
.ssbp-wrap[class*="ssbp--fixed"] {
|
176 |
-
position: fixed;
|
177 |
-
z-index: 99999
|
178 |
-
}
|
179 |
-
.ssbp-wrap[class*="ssbp--fixed"] .ssbp-container {
|
180 |
-
-webkit-transition: 0.25s;
|
181 |
-
transition: 0.25s
|
182 |
-
}
|
183 |
-
.ssbp-wrap.ssbp--fixed-top,
|
184 |
-
.ssbp-wrap.ssbp--fixed-bottom {
|
185 |
-
left: 50%;
|
186 |
-
-webkit-transform: translateX(-50%);
|
187 |
-
-ms-transform: translateX(-50%);
|
188 |
-
transform: translateX(-50%)
|
189 |
-
}
|
190 |
-
.ssbp-wrap.ssbp--fixed-left,
|
191 |
-
.ssbp-wrap.ssbp--fixed-right {
|
192 |
-
top: 25%
|
193 |
-
}
|
194 |
-
.ssbp-wrap.ssbp--fixed-top {
|
195 |
-
top: 0
|
196 |
-
}
|
197 |
-
.ssbp-wrap.ssbp--fixed-bottom {
|
198 |
-
bottom: 0
|
199 |
-
}
|
200 |
-
.ssbp-wrap.ssbp--fixed-left {
|
201 |
-
left: 0
|
202 |
-
}
|
203 |
-
.ssbp-wrap.ssbp--fixed-right {
|
204 |
-
right: 0
|
205 |
-
}
|
206 |
-
.ssbp-wrap[data-ssbp-counts="true"] .ssbp-each-share {
|
207 |
-
display: block;
|
208 |
-
pointer-events: none
|
209 |
-
}
|
210 |
-
.ssbp-wrap[data-ssbp-total-counts="true"] .ssbp-total-shares {
|
211 |
-
display: inline-block;
|
212 |
-
padding: 0 .5em;
|
213 |
-
text-align: center;
|
214 |
-
font-size: 14px;
|
215 |
-
line-height: 2
|
216 |
-
}
|
217 |
-
.ssbp-wrap.ssbp--fixed-left .ssbp-total-shares,
|
218 |
-
.ssbp-wrap.ssbp--fixed-right .ssbp-total-shares,
|
219 |
-
.ssbp-wrap.ssbp--stacked .ssbp-total-shares,
|
220 |
-
.ssbp-wrap.ssbp--fixed-left .ssbp-total-shares,
|
221 |
-
.ssbp-wrap.ssbp--fixed-right .ssbp-total-shares {
|
222 |
-
display: block;
|
223 |
-
padding: 0
|
224 |
-
}
|
225 |
-
.ssbp-toggle-switch {
|
226 |
-
position: absolute;
|
227 |
-
padding: 0;
|
228 |
-
border: 0;
|
229 |
-
background: transparent;
|
230 |
-
text-align: center;
|
231 |
-
cursor: pointer;
|
232 |
-
-webkit-transition: 0.25s;
|
233 |
-
transition: 0.25s;
|
234 |
-
display: none !important
|
235 |
-
}
|
236 |
-
[data-ssbp-toggle="true"][class*="ssbp--fixed"] .ssbp-toggle-switch {
|
237 |
-
display: inline-block !important
|
238 |
-
}
|
239 |
-
.ssbp-toggle-switch:active,
|
240 |
-
.ssbp-toggle-switch:hover,
|
241 |
-
.ssbp-toggle-switch:focus {
|
242 |
-
padding: 0;
|
243 |
-
border: 0
|
244 |
-
}
|
245 |
-
.ssbp--fixed-left .ssbp-toggle-switch,
|
246 |
-
.ssbp--fixed-right .ssbp-toggle-switch {
|
247 |
-
left: 0;
|
248 |
-
bottom: 100%;
|
249 |
-
width: 100%
|
250 |
-
}
|
251 |
-
.ssbp--fixed-top .ssbp-toggle-switch,
|
252 |
-
.ssbp--fixed-bottom .ssbp-toggle-switch {
|
253 |
-
left: 100%;
|
254 |
-
bottom: 0;
|
255 |
-
height: 100%
|
256 |
-
}
|
257 |
-
.ssbp--show-toggle.ssbp--fixed-top .ssbp-toggle-switch:before {
|
258 |
-
-webkit-transform: rotate(90deg);
|
259 |
-
-ms-transform: rotate(90deg);
|
260 |
-
transform: rotate(90deg)
|
261 |
-
}
|
262 |
-
.ssbp--show-toggle.ssbp--fixed-bottom .ssbp-toggle-switch:before {
|
263 |
-
-webkit-transform: rotate(-90deg);
|
264 |
-
-ms-transform: rotate(-90deg);
|
265 |
-
transform: rotate(-90deg)
|
266 |
-
}
|
267 |
-
.ssbp--show-toggle.ssbp--fixed-right .ssbp-toggle-switch:before {
|
268 |
-
-webkit-transform: rotate(180deg);
|
269 |
-
-ms-transform: rotate(180deg);
|
270 |
-
transform: rotate(180deg)
|
271 |
-
}
|
272 |
-
.ssbp--state-hidden .ssbp-each-share {
|
273 |
-
opacity: 0
|
274 |
-
}
|
275 |
-
.ssbp--state-hidden .ssbp-container {
|
276 |
-
-webkit-transform: translateX(-100%);
|
277 |
-
-ms-transform: translateX(-100%);
|
278 |
-
transform: translateX(-100%)
|
279 |
-
}
|
280 |
-
.ssbp--state-hidden.ssbp--fixed-top .ssbp-container {
|
281 |
-
-webkit-transform: translateY(-100%);
|
282 |
-
-ms-transform: translateY(-100%);
|
283 |
-
transform: translateY(-100%)
|
284 |
-
}
|
285 |
-
.ssbp--state-hidden.ssbp--fixed-bottom .ssbp-container {
|
286 |
-
-webkit-transform: translateY(100%);
|
287 |
-
-ms-transform: translateY(100%);
|
288 |
-
transform: translateY(100%)
|
289 |
-
}
|
290 |
-
.ssbp--state-hidden.ssbp--fixed-left .ssbp-container {
|
291 |
-
-webkit-transform: translateX(-100%);
|
292 |
-
-ms-transform: translateX(-100%);
|
293 |
-
transform: translateX(-100%)
|
294 |
-
}
|
295 |
-
.ssbp--state-hidden.ssbp--fixed-right .ssbp-container {
|
296 |
-
-webkit-transform: translateX(100%);
|
297 |
-
-ms-transform: translateX(100%);
|
298 |
-
transform: translateX(100%)
|
299 |
-
}
|
300 |
-
.ssbp--theme-4 .ssbp-toggle-switch {
|
301 |
-
background: #fff;
|
302 |
-
background: rgba(255, 255, 255, 0.8);
|
303 |
-
color: #272727;
|
304 |
-
border-radius: 0
|
305 |
-
}
|
306 |
-
.ssbp--theme-4 .ssbp-toggle-switch:active,
|
307 |
-
.ssbp--theme-4 .ssbp-toggle-switch:hover,
|
308 |
-
.ssbp--theme-4 .ssbp-toggle-switch:focus {
|
309 |
-
background: #fff;
|
310 |
-
background: rgba(255, 255, 255, 0.9)
|
311 |
-
}
|
312 |
-
.ssbp--theme-4[class*="ssbp--fixed"] .ssbp-container {
|
313 |
-
background-color: rgba(255, 255, 255, 0.8);
|
314 |
-
padding: 8px
|
315 |
-
}
|
316 |
-
.ssbp--theme-4 .ssbp-btn {
|
317 |
-
width: 3em;
|
318 |
-
height: 3em;
|
319 |
-
line-height: 3em;
|
320 |
-
border-radius: 7.5px;
|
321 |
-
color: #fff;
|
322 |
-
-webkit-transition: background-color 0.25s;
|
323 |
-
transition: background-color 0.25s;
|
324 |
-
box-shadow: inset 0 -1.5em 2em rgba(255, 255, 255, 0.1);
|
325 |
-
border-bottom: 0
|
326 |
-
}
|
327 |
-
.ssbp--theme-4 .ssbp-btn:hover,
|
328 |
-
.ssbp--theme-4 .ssbp-btn:focus,
|
329 |
-
.ssbp--theme-4 .ssbp-btn:active {
|
330 |
-
box-shadow: inset 0 -1.5em 2em rgba(255, 255, 255, 0.1), inset 0 0 3.5em rgba(0, 0, 0, 0.33)
|
331 |
-
}
|
332 |
-
.ssbp--theme-4 .ssbp-btn:hover,
|
333 |
-
.ssbp--theme-4 .ssbp-btn:focus,
|
334 |
-
.ssbp--theme-4 .ssbp-btn:active,
|
335 |
-
.ssbp--theme-4 .ssbp-btn:visited {
|
336 |
-
color: #fff
|
337 |
-
}
|
338 |
-
.ssbp--theme-4 .ssbp-list li {
|
339 |
-
margin-left: 12px
|
340 |
-
}
|
341 |
-
.ssbp--theme-4 .ssbp-buffer {
|
342 |
-
background-color: #272727
|
343 |
-
}
|
344 |
-
.ssbp--theme-4 .ssbp-diggit {
|
345 |
-
background-color: #14589E
|
346 |
-
}
|
347 |
-
.ssbp--theme-4 .ssbp-email {
|
348 |
-
background-color: #787878
|
349 |
-
}
|
350 |
-
.ssbp--theme-4 .ssbp-ellipsis {
|
351 |
-
background-color: #152B3C
|
352 |
-
}
|
353 |
-
.ssbp--theme-4 .ssbp-facebook {
|
354 |
-
background-color: #365397
|
355 |
-
}
|
356 |
-
.ssbp--theme-4 .ssbp-facebook_save {
|
357 |
-
background-color: #365397
|
358 |
-
}
|
359 |
-
.ssbp--theme-4 .ssbp-flattr {
|
360 |
-
background-color: #f67C1A
|
361 |
-
}
|
362 |
-
.ssbp--theme-4 .ssbp-google {
|
363 |
-
background-color: #e0452c
|
364 |
-
}
|
365 |
-
.ssbp--theme-4 .ssbp-linkedin {
|
366 |
-
background-color: #007bb6
|
367 |
-
}
|
368 |
-
.ssbp--theme-4 .ssbp-pinterest {
|
369 |
-
background-color: #ce1a19
|
370 |
-
}
|
371 |
-
.ssbp--theme-4 .ssbp-print {
|
372 |
-
background-color: #1F6B43
|
373 |
-
}
|
374 |
-
.ssbp--theme-4 .ssbp-reddit {
|
375 |
-
background-color: #FF4500
|
376 |
-
}
|
377 |
-
.ssbp--theme-4 .ssbp-simplesharebuttons {
|
378 |
-
background-color: #4582ec
|
379 |
-
}
|
380 |
-
.ssbp--theme-4 .ssbp-stumbleupon {
|
381 |
-
background-color: #EB4924
|
382 |
-
}
|
383 |
-
.ssbp--theme-4 .ssbp-tumblr {
|
384 |
-
background-color: #2C4762
|
385 |
-
}
|
386 |
-
.ssbp--theme-4 .ssbp-twitter {
|
387 |
-
background-color: #00a9f1
|
388 |
-
}
|
389 |
-
.ssbp--theme-4 .ssbp-vk {
|
390 |
-
background-color: #45668E
|
391 |
-
}
|
392 |
-
.ssbp--theme-4 .ssbp-whatsapp {
|
393 |
-
background-color: #34AF23
|
394 |
-
}
|
395 |
-
.ssbp--theme-4 .ssbp-yummly {
|
396 |
-
background-color: #E16120
|
397 |
-
}
|
398 |
-
.ssbp--theme-4 .ssbp-xing {
|
399 |
-
background-color: #026466
|
400 |
-
}
|
401 |
-
.ssbp--theme-4 .ssbp-each-share {
|
402 |
-
position: absolute;
|
403 |
-
bottom: 100%;
|
404 |
-
right: 0;
|
405 |
-
z-index: 11;
|
406 |
-
min-width: 1.25em;
|
407 |
-
margin-right: -6px;
|
408 |
-
margin-bottom: -8px;
|
409 |
-
padding: 2px 4px;
|
410 |
-
border-radius: 8px;
|
411 |
-
background-color: #F22121;
|
412 |
-
font-size: 10px;
|
413 |
-
color: #FFF;
|
414 |
-
text-align: center
|
415 |
-
}
|
416 |
-
.ssbp--theme-4.ssbp--fixed-right .ssbp-each-share {
|
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Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
css/style.css
CHANGED
@@ -1,4 +1,6 @@
|
|
1 |
-

|
Â
|
|
Â
|
|
2 |
Â
background-color: #fff!important;
|
3 |
Â
margin-left:-20px;
|
4 |
Â
font-size: 16px;
|
@@ -28,7 +30,7 @@
|
|
28 |
Â
margin-bottom: 15px;
|
29 |
Â
}
|
30 |
Â
|
31 |
-
#ssbasort2 {
|
32 |
Â
width: 100%;
|
33 |
Â
}
|
34 |
Â
|
@@ -62,19 +64,19 @@
|
|
62 |
Â
.ssba-video-container {
|
63 |
Â
margin-top:15px;
|
64 |
Â
margin-bottom: 15px;
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
Â
}
|
69 |
Â
|
70 |
Â
.ssba-video-container iframe,
|
71 |
Â
.ssba-video-container object,
|
72 |
Â
.ssba-video-container embed {
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
Â
}
|
79 |
Â
|
80 |
Â
.ssbp-wrap .ssbp-list {
|
@@ -86,7 +88,7 @@
|
|
86 |
Â
border: 1px dashed #ADADAD;
|
87 |
Â
}
|
88 |
Â
|
89 |
-
#ssbasort2 li {
|
90 |
Â
margin-top: 6px;
|
91 |
Â
}
|
92 |
Â
|
@@ -103,13 +105,13 @@
|
|
103 |
Â
}
|
104 |
Â
|
105 |
Â
.ssbp--theme-4 .ssbp-list li {
|
106 |
-
|
107 |
Â
}
|
108 |
Â
|
109 |
Â
.ssbp--theme-4 .ssbp-btn {
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
Â
}
|
114 |
Â
|
115 |
Â
.ssbp-btn:before {
|
@@ -126,7 +128,7 @@
|
|
126 |
Â
position: fixed;
|
127 |
Â
z-index: 10;
|
128 |
Â
right: 0;
|
129 |
-
|
130 |
Â
}
|
131 |
Â
|
132 |
Â
.ssba-btn-thank-you {
|
@@ -140,31 +142,122 @@
|
|
140 |
Â
}
|
141 |
Â
|
142 |
Â
.ssbp-float-right-btn {
|
143 |
-
|
144 |
-
|
145 |
Â
}
|
146 |
Â
|
147 |
Â
.ssba-navlink-blue {
|
148 |
-
|
149 |
Â
}
|
150 |
Â
|
151 |
Â
.ssba-navlink-blue:hover, .ssba-navlink-blue:focus {
|
152 |
-
|
153 |
Â
}
|
154 |
Â
|
155 |
Â
.margin-bottom {
|
156 |
-
|
157 |
Â
}
|
158 |
Â
|
159 |
Â
.ssba-responsive-img {
|
160 |
-
|
161 |
-
|
162 |
Â
}
|
163 |
Â
|
164 |
Â
.ssba-spacer {
|
165 |
-
|
166 |
Â
}
|
167 |
Â
|
168 |
Â
.text-20 {
|
169 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
170 |
Â
}
|
1 |
+
/* Style stylesheet */
|
2 |
+
|
3 |
+
.ssba-admin-wrap {
|
4 |
Â
background-color: #fff!important;
|
5 |
Â
margin-left:-20px;
|
6 |
Â
font-size: 16px;
|
30 |
Â
margin-bottom: 15px;
|
31 |
Â
}
|
32 |
Â
|
33 |
+
#ssbasort2, #ssbasort4, #ssbasort6 {
|
34 |
Â
width: 100%;
|
35 |
Â
}
|
36 |
Â
|
64 |
Â
.ssba-video-container {
|
65 |
Â
margin-top:15px;
|
66 |
Â
margin-bottom: 15px;
|
67 |
+
position: relative;
|
68 |
+
padding-bottom: 56.25%;
|
69 |
+
padding-top: 30px; height: 0; overflow: hidden;
|
70 |
Â
}
|
71 |
Â
|
72 |
Â
.ssba-video-container iframe,
|
73 |
Â
.ssba-video-container object,
|
74 |
Â
.ssba-video-container embed {
|
75 |
+
position: absolute;
|
76 |
+
top: 0;
|
77 |
+
left: 0;
|
78 |
+
width: 95%;
|
79 |
+
height: 100%;
|
80 |
Â
}
|
81 |
Â
|
82 |
Â
.ssbp-wrap .ssbp-list {
|
88 |
Â
border: 1px dashed #ADADAD;
|
89 |
Â
}
|
90 |
Â
|
91 |
+
#ssbasort2 li, #ssbasort4 li, #ssbasort6 li {
|
92 |
Â
margin-top: 6px;
|
93 |
Â
}
|
94 |
Â
|
105 |
Â
}
|
106 |
Â
|
107 |
Â
.ssbp--theme-4 .ssbp-list li {
|
108 |
+
margin-left: 5px;
|
109 |
Â
}
|
110 |
Â
|
111 |
Â
.ssbp--theme-4 .ssbp-btn {
|
112 |
+
width: 2.5em;
|
113 |
+
height: 2.5em;
|
114 |
+
line-height: 2.5em;
|
115 |
Â
}
|
116 |
Â
|
117 |
Â
.ssbp-btn:before {
|
128 |
Â
position: fixed;
|
129 |
Â
z-index: 10;
|
130 |
Â
right: 0;
|
131 |
+
top: 130px;
|
132 |
Â
}
|
133 |
Â
|
134 |
Â
.ssba-btn-thank-you {
|
142 |
Â
}
|
143 |
Â
|
144 |
Â
.ssbp-float-right-btn {
|
145 |
+
float: right;
|
146 |
+
margin: 20px 0 0 20px;
|
147 |
Â
}
|
148 |
Â
|
149 |
Â
.ssba-navlink-blue {
|
150 |
+
color: #fff !important;
|
151 |
Â
}
|
152 |
Â
|
153 |
Â
.ssba-navlink-blue:hover, .ssba-navlink-blue:focus {
|
154 |
+
color: #4582ec !important;
|
155 |
Â
}
|
156 |
Â
|
157 |
Â
.margin-bottom {
|
158 |
+
margin-bottom: 10px;
|
159 |
Â
}
|
160 |
Â
|
161 |
Â
.ssba-responsive-img {
|
162 |
+
width: 100%;
|
163 |
+
height: auto;
|
164 |
Â
}
|
165 |
Â
|
166 |
Â
.ssba-spacer {
|
167 |
+
margin-top: 20px;
|
168 |
Â
}
|
169 |
Â
|
170 |
Â
.text-20 {
|
171 |
+
font-size: 20px;
|
172 |
+
}
|
173 |
+
|
174 |
+
#ssba-preview-2.left {
|
175 |
+
position: fixed;
|
176 |
+
left: 160px;
|
177 |
+
top: 45%;
|
178 |
+
z-index: 10000;
|
179 |
+
}
|
180 |
+
|
181 |
+
#ssba-preview-2.right {
|
182 |
+
position: fixed;
|
183 |
+
right: 0;
|
184 |
+
top: 45%;
|
185 |
+
z-index: 10000;
|
186 |
+
}
|
187 |
+
|
188 |
+
#ssba-preview-2.left .ssbp-list {
|
189 |
+
max-width: 84px;
|
190 |
+
text-align: left;
|
191 |
+
min-width: auto;
|
192 |
+
}
|
193 |
+
|
194 |
+
#ssba-preview-2.right .ssbp-list {
|
195 |
+
max-width: 84px;
|
196 |
+
text-align: right;
|
197 |
+
min-width: auto;
|
198 |
+
}
|
199 |
+
|
200 |
+
#ssba-preview-2 .ssbp-list li {
|
201 |
+
margin: 0;
|
202 |
+
}
|
203 |
+
|
204 |
+
#ssba-preview-2 ul li a {
|
205 |
+
max-width: 84px;
|
206 |
+
}
|
207 |
+
|
208 |
+
.ssba-tab-container {
|
209 |
+
padding: 0 8rem;
|
210 |
+
}
|
211 |
+
|
212 |
+
#ssba-preview-1, #ssba-preview {
|
213 |
+
width: 100%;
|
214 |
+
margin: .7rem;
|
215 |
+
}
|
216 |
+
|
217 |
+
.master-ssba-prev-wrap.ssba-sticky {
|
218 |
+
background: #ffffff;
|
219 |
+
width:100%;
|
220 |
+
position: fixed;
|
221 |
+
top: 32px;
|
222 |
+
left: 160px;
|
223 |
+
z-index: 5;
|
224 |
+
box-shadow: #cccccc 5px 5px 5px;
|
225 |
+
}
|
226 |
+
|
227 |
+
#ssba-preview-1.ssba-sticky, #ssba-preview.ssba-sticky {
|
228 |
+
width: 75.6%;
|
229 |
+
text-align: left;
|
230 |
+
margin: .7rem 9.5rem;
|
231 |
+
}
|
232 |
+
|
233 |
+
#ssba-preview-1 ul, #ssba-preview ul {
|
234 |
+
width: auto;
|
235 |
+
display: table-header-group;
|
236 |
+
}
|
237 |
+
|
238 |
+
#ssba-preview-1 ul li img{
|
239 |
+
font-size: 12px;
|
240 |
+
}
|
241 |
+
|
242 |
+
#ssba-preview-1 .ssba-preview-content, #ssba-preview .ssba-preview-content {
|
243 |
+
width: max-content;
|
244 |
+
display: inline-block;
|
245 |
+
}
|
246 |
+
|
247 |
+
#ssba-preview-1 .ssba-hide-button, #ssba-preview .ssba-hide-button, #ssba-preview-2 .ssba-hide-button {
|
248 |
+
display: none;
|
249 |
+
}
|
250 |
+
|
251 |
+
.ssba-new-icon {
|
252 |
+
position: absolute;
|
253 |
+
top: 3px;
|
254 |
+
font-size: 10px;
|
255 |
+
color: #fff;
|
256 |
+
background: #e00000;
|
257 |
+
padding: .1rem .3rem;
|
258 |
+
border-radius: 3px;
|
259 |
+
}
|
260 |
+
|
261 |
+
.ssbp-list li img {
|
262 |
+
box-sizing: unset;
|
263 |
Â
}
|
css/{ssbp_switch.css → switch.css}
RENAMED
File without changes
|
inc/ssba_admin_bits.php
DELETED
@@ -1,230 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
defined('ABSPATH') or die('No direct access permitted');
|
3 |
-
|
4 |
-
// Adds ST terms to array if they don't exist.
|
5 |
-
$arrSettings = wp_parse_args( $arrSettings, array(
|
6 |
-
'accepted_sharethis_terms' => 'N',
|
7 |
-
'hide_sharethis_terms' => false,
|
8 |
-
) );
|
9 |
-
|
10 |
-
// if the sharethis terms have not yet been accepted
|
11 |
-
if (
|
12 |
-
'Y' !== $arrSettings['accepted_sharethis_terms'] &&
|
13 |
-
true !== $arrSettings['hide_sharethis_terms']
|
14 |
-
) {
|
15 |
-
function sharethis_terms_notice()
|
16 |
-
{
|
17 |
-
?>
|
18 |
-
<div id="sharethis_terms_notice" class="update-nag notice is-dismissible">
|
19 |
-
<p>There are some <strong>great new features</strong> available with Simple Share Buttons Adder 6.3, such as an improved mobile Facebook sharing experience and Facebook analytics.
|
20 |
-
We've updated our <a href="http://simplesharebuttons.com/privacy" target="_blank">privacy policy and terms of use</a> with important changes you should review. To take advantage of the new features, please review and accept the new <a href="http://simplesharebuttons.com/privacy" target="_blank">terms and privacy policy</a>.
|
21 |
-
<a href="options-general.php?page=simple-share-buttons-adder&accept-terms=Y"><span class="button button-primary">I accept</span></a></p>
|
22 |
-
</div>
|
23 |
-
<script type="text/javascript">
|
24 |
-
jQuery( '#sharethis_terms_notice' ).on( 'click', '.notice-dismiss', function( event ) {
|
25 |
-
jQuery.post( ajaxurl, { action: 'ssba_hide_terms' } );
|
26 |
-
});
|
27 |
-
</script>
|
28 |
-
<?php
|
29 |
-
}
|
30 |
-
add_action( 'admin_notices', 'sharethis_terms_notice' );
|
31 |
-
add_action( 'wp_ajax_ssba_hide_terms', 'ssba_admin_hide_callback' );
|
32 |
-
}
|
33 |
-
// add settings link on plugin page
|
34 |
-
function ssba_settings_link($links) {
|
35 |
-
|
36 |
-
// add to plugins links
|
37 |
-
array_unshift($links, '<a href="options-general.php?page=simple-share-buttons-adder">Settings</a>');
|
38 |
-
|
39 |
-
// return all links
|
40 |
-
return $links;
|
41 |
-
}
|
42 |
-
|
43 |
-
// Hides the terms agreement at user's request.
|
44 |
-
function ssba_admin_hide_callback() {
|
45 |
-
ssba_update_options( array( 'hide_sharethis_terms' => true ) );
|
46 |
-
wp_die();
|
47 |
-
}
|
48 |
-
|
49 |
-
// include js files and upload script
|
50 |
-
function ssba_admin_scripts() {
|
51 |
-
|
52 |
-
// all extra scripts needed
|
53 |
-
wp_enqueue_media();
|
54 |
-
wp_enqueue_script('media-upload');
|
55 |
-
wp_register_script('ssba-bootstrap-js', plugins_url('/js/ssba_bootstrap.js', SSBA_FILE ));
|
56 |
-
wp_enqueue_script('ssba-bootstrap-js');
|
57 |
-
wp_register_script('ssba-colorpicker-js', plugins_url('/js/ssba_colorpicker.js', SSBA_FILE ));
|
58 |
-
wp_enqueue_script('ssba-colorpicker-js');
|
59 |
-
wp_register_script('ssba-switch-js', plugins_url('/js/ssba_switch.js', SSBA_FILE ));
|
60 |
-
wp_enqueue_script('ssba-switch-js');
|
61 |
-
wp_register_script('ssba-admin-js', plugins_url('/js/ssba_admin.js', SSBA_FILE ));
|
62 |
-
wp_enqueue_script('ssba-admin-js');
|
63 |
-
wp_enqueue_script('jquery-ui-sortable');
|
64 |
-
wp_enqueue_script('jquery-ui');
|
65 |
-
}
|
66 |
-
|
67 |
-
// include styles for the ssba admin panel
|
68 |
-
function ssba_admin_styles() {
|
69 |
-
|
70 |
-
// admin styles
|
71 |
-
wp_register_style('ssba-readable', plugins_url('/css/readable.css', SSBA_FILE ));
|
72 |
-
wp_enqueue_style('ssba-readable');
|
73 |
-
wp_register_style('ssba-colorpicker', plugins_url('/css/colorpicker.css', SSBA_FILE ));
|
74 |
-
wp_enqueue_style('ssba-colorpicker');
|
75 |
-
wp_register_style('ssba-switch', plugins_url('/css/ssbp_switch.css', SSBA_FILE ));
|
76 |
-
wp_enqueue_style('ssba-switch');
|
77 |
-
wp_register_style('ssba-admin-theme', plugins_url('/css/ssbp-admin-theme.css', SSBA_FILE ));
|
78 |
-
wp_enqueue_style('ssba-admin-theme');
|
79 |
-
wp_register_style('ssbp-font-awesome', '//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css');
|
80 |
-
wp_enqueue_style('ssbp-font-awesome');
|
81 |
-
wp_register_style('ssba-styles', plugins_url('/css/style.css', SSBA_FILE ));
|
82 |
-
wp_enqueue_style('ssba-styles');
|
83 |
-
}
|
84 |
-
|
85 |
-
// add filter hook for plugin action links
|
86 |
-
add_filter('plugin_action_links_' . plugin_basename(SSBA_FILE), 'ssba_settings_link' );
|
87 |
-
|
88 |
-
// add menu to dashboard
|
89 |
-
add_action( 'admin_menu', 'ssba_menu' );
|
90 |
-
|
91 |
-
// check if viewing the admin page
|
92 |
-
if (isset($_GET['page']) && $_GET['page'] == 'simple-share-buttons-adder') {
|
93 |
-
|
94 |
-
// add the registered scripts
|
95 |
-
add_action('admin_print_styles', 'ssba_admin_styles');
|
96 |
-
add_action('admin_print_scripts', 'ssba_admin_scripts');
|
97 |
-
}
|
98 |
-
|
99 |
-
// menu settings
|
100 |
-
function ssba_menu() {
|
101 |
-
|
102 |
-
// add menu page
|
103 |
-
add_options_page( 'Simple Share Buttons Adder', 'Simple Share Buttons', 'manage_options', 'simple-share-buttons-adder', 'ssba_settings');
|
104 |
-
|
105 |
-
// query the db for current ssba settings
|
106 |
-
$arrSettings = get_ssba_settings();
|
107 |
-
|
108 |
-
// get the current version
|
109 |
-
$version = get_option('ssba_version');
|
110 |
-
|
111 |
-
// there was a version set
|
112 |
-
if ($version !== false) {
|
113 |
-
// check if not updated to current version
|
114 |
-
if ($version < SSBA_VERSION) {
|
115 |
-
// run the upgrade function
|
116 |
-
upgrade_ssba($arrSettings, $version);
|
117 |
-
}
|
118 |
-
}
|
119 |
-
}
|
120 |
-
|
121 |
-
// answer form
|
122 |
-
function ssba_settings() {
|
123 |
-
|
124 |
-
// check if user has the rights to manage options
|
125 |
-
if (! current_user_can('manage_options')) {
|
126 |
-
|
127 |
-
// permissions message
|
128 |
-
wp_die( __('You do not have sufficient permissions to access this page.'));
|
129 |
-
}
|
130 |
-
|
131 |
-
// if a post has been made
|
132 |
-
if(isset($_POST['ssbaData']))
|
133 |
-
{
|
134 |
-
// get posted data
|
135 |
-
$ssbaPost = $_POST['ssbaData'];
|
136 |
-
parse_str($ssbaPost, $ssbaPost);
|
137 |
-
|
138 |
-
// if the nonce doesn't check out...
|
139 |
-
if ( ! isset($ssbaPost['ssba_save_nonce']) || ! wp_verify_nonce($ssbaPost['ssba_save_nonce'], 'ssba_save_settings')) {
|
140 |
-
die('There was no nonce provided, or the one provided did not verify.');
|
141 |
-
}
|
142 |
-
|
143 |
-
// prepare array
|
144 |
-
$arrOptions = array(
|
145 |
-
'ssba_image_set' => $ssbaPost['ssba_image_set'],
|
146 |
-
'ssba_size' => $ssbaPost['ssba_size'],
|
147 |
-
'ssba_pages' => (isset($ssbaPost['ssba_pages']) ? $ssbaPost['ssba_pages'] : NULL),
|
148 |
-
'ssba_posts' => (isset($ssbaPost['ssba_posts']) ? $ssbaPost['ssba_posts'] : NULL),
|
149 |
-
'ssba_cats_archs' => (isset($ssbaPost['ssba_cats_archs']) ? $ssbaPost['ssba_cats_archs'] : NULL),
|
150 |
-
'ssba_homepage' => (isset($ssbaPost['ssba_homepage']) ? $ssbaPost['ssba_homepage'] : NULL),
|
151 |
-
'ssba_excerpts' => (isset($ssbaPost['ssba_excerpts']) ? $ssbaPost['ssba_excerpts'] : NULL),
|
152 |
-
'ssba_align' => (isset($ssbaPost['ssba_align']) ? $ssbaPost['ssba_align'] : NULL),
|
153 |
-
'ssba_padding' => $ssbaPost['ssba_padding'],
|
154 |
-
'ssba_before_or_after' => $ssbaPost['ssba_before_or_after'],
|
155 |
-
'ssba_additional_css' => $ssbaPost['ssba_additional_css'],
|
156 |
-
'ssba_custom_styles' => $ssbaPost['ssba_custom_styles'],
|
157 |
-
'ssba_custom_styles_enabled' => $ssbaPost['ssba_custom_styles_enabled'],
|
158 |
-
'ssba_email_message' => stripslashes_deep($ssbaPost['ssba_email_message']),
|
159 |
-
'ssba_twitter_text' => stripslashes_deep($ssbaPost['ssba_twitter_text']),
|
160 |
-
'ssba_buffer_text' => stripslashes_deep($ssbaPost['ssba_buffer_text']),
|
161 |
-
'ssba_flattr_user_id' => stripslashes_deep($ssbaPost['ssba_flattr_user_id']),
|
162 |
-
'ssba_flattr_url' => stripslashes_deep($ssbaPost['ssba_flattr_url']),
|
163 |
-
'ssba_share_new_window' => (isset($ssbaPost['ssba_share_new_window']) ? $ssbaPost['ssba_share_new_window'] : NULL),
|
164 |
-
'ssba_link_to_ssb' => (isset($ssbaPost['ssba_link_to_ssb']) ? $ssbaPost['ssba_link_to_ssb'] : NULL),
|
165 |
-
'ssba_show_share_count' => (isset($ssbaPost['ssba_show_share_count']) ? $ssbaPost['ssba_show_share_count'] : NULL),
|
166 |
-
'ssba_share_count_style' => $ssbaPost['ssba_share_count_style'],
|
167 |
-
'ssba_share_count_css' => $ssbaPost['ssba_share_count_css'],
|
168 |
-
'ssba_share_count_once' => (isset($ssbaPost['ssba_share_count_once']) ? $ssbaPost['ssba_share_count_once'] : NULL),
|
169 |
-
'ssba_widget_text' => $ssbaPost['ssba_widget_text'],
|
170 |
-
'ssba_rel_nofollow' => (isset($ssbaPost['ssba_rel_nofollow']) ? $ssbaPost['ssba_rel_nofollow'] : NULL),
|
171 |
-
'ssba_default_pinterest' => (isset($ssbaPost['ssba_default_pinterest']) ? $ssbaPost['ssba_default_pinterest'] : NULL),
|
172 |
-
'ssba_pinterest_featured' => (isset($ssbaPost['ssba_pinterest_featured']) ? $ssbaPost['ssba_pinterest_featured'] : NULL),
|
173 |
-
'ssba_content_priority' => (isset($ssbaPost['ssba_content_priority']) ? $ssbaPost['ssba_content_priority'] : NULL),
|
174 |
-
|
175 |
-
// share container
|
176 |
-
'ssba_div_padding' => $ssbaPost['ssba_div_padding'],
|
177 |
-
'ssba_div_rounded_corners' => (isset($ssbaPost['ssba_div_rounded_corners']) ? $ssbaPost['ssba_div_rounded_corners'] : NULL),
|
178 |
-
'ssba_border_width' => $ssbaPost['ssba_border_width'],
|
179 |
-
'ssba_div_border' => $ssbaPost['ssba_div_border'],
|
180 |
-
'ssba_div_background' => $ssbaPost['ssba_div_background'],
|
181 |
-
|
182 |
-
// text
|
183 |
-
'ssba_share_text' => stripslashes_deep($ssbaPost['ssba_share_text']),
|
184 |
-
'ssba_text_placement' => $ssbaPost['ssba_text_placement'],
|
185 |
-
'ssba_font_family' => $ssbaPost['ssba_font_family'],
|
186 |
-
'ssba_font_color' => $ssbaPost['ssba_font_color'],
|
187 |
-
'ssba_font_size' => $ssbaPost['ssba_font_size'],
|
188 |
-
'ssba_font_weight' => $ssbaPost['ssba_font_weight'],
|
189 |
-
|
190 |
-
// included buttons
|
191 |
-
'ssba_selected_buttons' => $ssbaPost['ssba_selected_buttons'],
|
192 |
-
|
193 |
-
// sharedcount
|
194 |
-
'sharedcount_enabled' => $ssbaPost['sharedcount_enabled'],
|
195 |
-
'sharedcount_api_key' => $ssbaPost['sharedcount_api_key'],
|
196 |
-
'sharedcount_plan' => $ssbaPost['sharedcount_plan'],
|
197 |
-
|
198 |
-
// newsharecounts
|
199 |
-
'twitter_newsharecounts' => $ssbaPost['twitter_newsharecounts'],
|
200 |
-
|
201 |
-
// facebook
|
202 |
-
'facebook_insights' => $ssbaPost['facebook_insights'],
|
203 |
-
'facebook_app_id' => $ssbaPost['facebook_app_id'],
|
204 |
-
);
|
205 |
-
|
206 |
-
// prepare array of buttons
|
207 |
-
$arrButtons = json_decode(get_option('ssba_buttons'), true);
|
208 |
-
|
209 |
-
// loop through each button
|
210 |
-
foreach ($arrButtons as $button => $arrButton) {
|
211 |
-
// add custom button to array of options
|
212 |
-
$arrOptions['ssba_custom_'.$button] = $ssbaPost['ssba_custom_'.$button];
|
213 |
-
}
|
214 |
-
|
215 |
-
// save the settings
|
216 |
-
ssba_update_options($arrOptions);
|
217 |
-
|
218 |
-
// return success
|
219 |
-
return true;
|
220 |
-
}
|
221 |
-
|
222 |
-
// include then run the upgrade script
|
223 |
-
include_once (plugin_dir_path(SSBA_FILE) . '/inc/ssba_admin_panel.php');
|
224 |
-
|
225 |
-
// query the db for current ssba settings
|
226 |
-
$arrSettings = get_ssba_settings();
|
227 |
-
|
228 |
-
// --------- ADMIN PANEL ------------ //
|
229 |
-
ssba_admin_panel($arrSettings);
|
230 |
-
}
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
inc/ssba_admin_panel.php
DELETED
@@ -1,1101 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
function ssba_admin_header()
|
4 |
-
{
|
5 |
-
// open wrap
|
6 |
-
$htmlHeader = '<div class="ssba-admin-wrap">';
|
7 |
-
|
8 |
-
// navbar/header
|
9 |
-
$htmlHeader .= '<nav class="navbar navbar-default">
|
10 |
-
<div class="container-fluid">
|
11 |
-
<div class="navbar-header">
|
12 |
-
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
|
13 |
-
<span class="sr-only">Toggle navigation</span>
|
14 |
-
<span class="icon-bar"></span>
|
15 |
-
<span class="icon-bar"></span>
|
16 |
-
<span class="icon-bar"></span>
|
17 |
-
</button>
|
18 |
-
<a class="navbar-brand" href="https://simplesharebuttons.com"><img src="'.plugins_url().'/simple-share-buttons-adder/images/simplesharebuttons.png" alt="Simple Share Buttons Plus" class="ssba-logo-img" /></a>
|
19 |
-
</div>
|
20 |
-
|
21 |
-
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
|
22 |
-
<ul class="nav navbar-nav navbar-right">
|
23 |
-
<li><a href="https://simplesharebuttons.com/wordpress-faq/" target="_blank">FAQ</a></li>
|
24 |
-
<li><a data-toggle="modal" data-target="#ssbaSupportModal" href="#">Support</a></li>
|
25 |
-
<li><a class="btn btn-primary ssba-navlink-blue" href="https://simplesharebuttons.com/plus/?utm_source=adder&utm_medium=plugin_ad&utm_campaign=product&utm_content=navlink" target="_blank">Plus <i class="fa fa-plus"></i></a></li>
|
26 |
-
</ul>
|
27 |
-
</div>
|
28 |
-
</div>
|
29 |
-
</nav>';
|
30 |
-
|
31 |
-
$htmlHeader.= '<div class="modal fade" id="ssbaSupportModal" tabindex="-1" role="dialog" aria-hidden="true">
|
32 |
-
<div class="modal-dialog">
|
33 |
-
<div class="modal-content">
|
34 |
-
<div class="modal-header">
|
35 |
-
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
36 |
-
<h4 class="modal-title">Simple Share Buttons Support</h4>
|
37 |
-
</div>
|
38 |
-
<div class="modal-body">
|
39 |
-
<p>Please note that the this plugin relies mostly on WordPress community support from other users.</p>
|
40 |
-
<p>If you wish to receive official support, please consider purchasing <a href="https://simplesharebuttons.com/plus/?utm_source=adder&utm_medium=plugin_ad&utm_campaign=product&utm_content=support_modal" target="_blank"><b>Simple Share Buttons Plus</b></a></p>
|
41 |
-
<div class="row">
|
42 |
-
<div class="col-sm-6">
|
43 |
-
<a href="https://wordpress.org/support/plugin/simple-share-buttons-adder" target="_blank"><button class="btn btn-block btn-default">Community support</button></a>
|
44 |
-
</div>
|
45 |
-
<div class="col-sm-6">
|
46 |
-
<a href="https://simplesharebuttons.com/plus/?utm_source=adder&utm_medium=plugin_ad&utm_campaign=product&utm_content=support_modal" target="_blank"><button class="btn btn-block btn-primary">Check out Plus</button></a>
|
47 |
-
</div>
|
48 |
-
</div>
|
49 |
-
</div>
|
50 |
-
<div class="modal-footer">
|
51 |
-
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
52 |
-
</div>
|
53 |
-
</div>
|
54 |
-
</div>
|
55 |
-
</div>';
|
56 |
-
|
57 |
-
// open container - closed in footer
|
58 |
-
$htmlHeader .= '<div class="container">';
|
59 |
-
|
60 |
-
// return
|
61 |
-
return $htmlHeader;
|
62 |
-
}
|
63 |
-
|
64 |
-
function ssba_admin_footer()
|
65 |
-
{
|
66 |
-
// row
|
67 |
-
$htmlFooter = '<footer class="row">';
|
68 |
-
|
69 |
-
// col
|
70 |
-
$htmlFooter .= '<div class="col-sm-12">';
|
71 |
-
|
72 |
-
// link to show footer content
|
73 |
-
$htmlFooter .= '<a href="https://simplesharebuttons.com" target="_blank">Simple Share Buttons Adder</a> <span class="badge">'.SSBA_VERSION.'</span>';
|
74 |
-
|
75 |
-
// show more/less links
|
76 |
-
$htmlFooter .= '<button type="button" class="ssba-btn-thank-you pull-right btn btn-primary" data-toggle="modal" data-target="#ssbaFooterModal"><i class="fa fa-info"></i></button>';
|
77 |
-
|
78 |
-
$htmlFooter.= '<div class="modal fade" id="ssbaFooterModal" tabindex="-1" role="dialog" aria-labelledby="ssbaFooterModalLabel" aria-hidden="true">
|
79 |
-
<div class="modal-dialog">
|
80 |
-
<div class="modal-content">
|
81 |
-
<div class="modal-header">
|
82 |
-
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
83 |
-
<h4 class="modal-title">Simple Share Buttons</h4>
|
84 |
-
</div>
|
85 |
-
<div class="modal-body">
|
86 |
-
<p>Many thanks for choosing <a href="https://simplesharebuttons.com" target="_blank">Simple Share Buttons</a> for your share buttons plugin, we\'re confident you won\'t be disappointed in your decision. If you require any support, please visit the <a href="https://wordpress.org/support/plugin/simple-share-buttons-adder" target="_blank">support forum</a>.</p>
|
87 |
-
<p>If you like the plugin, we\'d really appreciate it if you took a moment to <a href="https://wordpress.org/support/view/plugin-reviews/simple-share-buttons-adder" target="_blank">leave a review</a>, if there\'s anything missing to get 5 stars do please <a href="https://simplesharebuttons.com/contact/" target="_blank">let us know</a>. If you feel your website is worthy of appearing on our <a href="https://simplesharebuttons.com/showcase/" target="_blank">showcase page</a> do <a href="https://simplesharebuttons.com/contact/" target="_blank">get in touch</a>.</p>
|
88 |
-
</div>
|
89 |
-
<div class="modal-footer">
|
90 |
-
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
91 |
-
</div>
|
92 |
-
</div>
|
93 |
-
</div>
|
94 |
-
</div>';
|
95 |
-
|
96 |
-
// close col
|
97 |
-
$htmlFooter .= '</div>';
|
98 |
-
|
99 |
-
// close row
|
100 |
-
$htmlFooter .= '</footer>';
|
101 |
-
|
102 |
-
// close container - opened in header
|
103 |
-
$htmlFooter .= '</div>';
|
104 |
-
|
105 |
-
// close ssba-admin-wrap - opened in header
|
106 |
-
$htmlFooter .= '</div>';
|
107 |
-
|
108 |
-
// return
|
109 |
-
return $htmlFooter;
|
110 |
-
}
|
111 |
-
|
112 |
-
function ssba_admin_panel($arrSettings)
|
113 |
-
{
|
114 |
-
// set var
|
115 |
-
$htmlShareButtonsForm = '';
|
116 |
-
|
117 |
-
// if user is accepting terms
|
118 |
-
if (isset($_GET['accept-terms']) && $_GET['accept-terms'] == 'Y') {
|
119 |
-
// save acceptance
|
120 |
-
ssba_update_options(array('accepted_sharethis_terms' => 'Y'));
|
121 |
-
|
122 |
-
// hide the notice for now, it will disappear upon reload
|
123 |
-
$htmlShareButtonsForm .= '<style>#sharethis_terms_notice { display: none }.ssbp-facebook_save { background-color: #365397 !important; }</style>';
|
124 |
-
|
125 |
-
// show notice
|
126 |
-
add_action( 'admin_notices', 'accepted_sharethis_terms_notice' );
|
127 |
-
}
|
128 |
-
|
129 |
-
// include the forms helper
|
130 |
-
include_once 'ssbp_forms.php';
|
131 |
-
|
132 |
-
// prepare array of buttons
|
133 |
-
$arrButtons = json_decode(get_option('ssba_buttons'), true);
|
134 |
-
|
135 |
-
// get the font family needed
|
136 |
-
$htmlShareButtonsForm .= '<style>'.ssba_get_font_family().'</style>';
|
137 |
-
|
138 |
-
// if left to right
|
139 |
-
if (is_rtl()) {
|
140 |
-
// move save button
|
141 |
-
$htmlShareButtonsForm .= '<style>.ssba-btn-save{left: 0!important;
|
142 |
-
right: auto !important;
|
143 |
-
border-radius: 0 5px 5px 0;}
|
144 |
-
</style>';
|
145 |
-
}
|
146 |
-
|
147 |
-
// add header
|
148 |
-
$htmlShareButtonsForm .= ssba_admin_header();
|
149 |
-
|
150 |
-
// initiate forms helper
|
151 |
-
$ssbpForm = new ssbpForms;
|
152 |
-
|
153 |
-
// opening form tag
|
154 |
-
$htmlShareButtonsForm .= $ssbpForm->open(false);
|
155 |
-
|
156 |
-
// heading
|
157 |
-
$htmlShareButtonsForm .= '<h2>Share Buttons Settings</h2>';
|
158 |
-
|
159 |
-
// if terms have just been accepted
|
160 |
-
if (isset($_GET['accept-terms']) && $_GET['accept-terms'] == 'Y') {
|
161 |
-
$htmlShareButtonsForm.= '<div class="alert alert-success text-center">
|
162 |
-
<p>Thanks for accepting the terms, you can now take advantage of the great new features!</p>
|
163 |
-
</div>';
|
164 |
-
} elseif ($arrSettings['accepted_sharethis_terms'] != 'Y') {
|
165 |
-
$htmlShareButtonsForm.= '<div class="alert alert-warning text-center">
|
166 |
-
<p>The Facebook save button requires acceptance of the terms before it can be used. <a href="options-general.php?page=simple-share-buttons-adder&accept-terms=Y"><span class="button button-secondary">I accept</span></a></p>
|
167 |
-
</div>';
|
168 |
-
}
|
169 |
-
|
170 |
-
// tabs
|
171 |
-
$htmlShareButtonsForm .= '<ul class="nav nav-tabs">
|
172 |
-
<li class="active"><a href="#core" data-toggle="tab">Core</a></li>
|
173 |
-
<li><a href="#styling" data-toggle="tab">Styling</a></li>
|
174 |
-
<li><a href="#counters" data-toggle="tab">Counters</a></li>
|
175 |
-
<li><a href="#advanced" data-toggle="tab">Advanced</a></li>
|
176 |
-
<li class="dropdown">
|
177 |
-
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
|
178 |
-
CSS <span class="caret"></span>
|
179 |
-
</a>
|
180 |
-
<ul class="dropdown-menu">
|
181 |
-
<li><a href="#css_additional" data-toggle="tab">Additional</a></li>
|
182 |
-
<li><a href="#css_custom" data-toggle="tab">Custom</a></li>
|
183 |
-
</ul>
|
184 |
-
</li>
|
185 |
-
</ul>';
|
186 |
-
// tab content div
|
187 |
-
$htmlShareButtonsForm .= '<div id="ssbaTabContent" class="tab-content">';
|
188 |
-
|
189 |
-
//======================================================================
|
190 |
-
// CORE
|
191 |
-
//======================================================================
|
192 |
-
$htmlShareButtonsForm .= '<div class="tab-pane fade active in" id="core">';
|
193 |
-
|
194 |
-
// basic info
|
195 |
-
$htmlShareButtonsForm .= '<blockquote><p>The <b>simple</b> options you can see below are all you need to complete to get your <b>share buttons</b> to appear on your website. Once you\'re done here, you can further customise the share buttons via the Styling tab.</p></blockquote>';
|
196 |
-
|
197 |
-
// COLUMN --------------------------------
|
198 |
-
$htmlShareButtonsForm .= '<div class="col-sm-12">';
|
199 |
-
|
200 |
-
// locations array
|
201 |
-
$locs = array(
|
202 |
-
'Homepage' => array(
|
203 |
-
'value' => 'ssba_homepage',
|
204 |
-
'checked' => ($arrSettings['ssba_homepage'] == 'Y' ? true : false)
|
205 |
-
),
|
206 |
-
'Pages' => array(
|
207 |
-
'value' => 'ssba_pages',
|
208 |
-
'checked' => ($arrSettings['ssba_pages'] == 'Y' ? true : false)
|
209 |
-
),
|
210 |
-
'Posts' => array(
|
211 |
-
'value' => 'ssba_posts',
|
212 |
-
'checked' => ($arrSettings['ssba_posts'] == 'Y' ? true : false)
|
213 |
-
),
|
214 |
-
'Excerpts' => array(
|
215 |
-
'value' => 'ssba_excerpts',
|
216 |
-
'checked' => ($arrSettings['ssba_excerpts'] == 'Y' ? true : false)
|
217 |
-
),
|
218 |
-
'Categories/Archives' => array(
|
219 |
-
'value' => 'ssba_cats_archs',
|
220 |
-
'checked' => ($arrSettings['ssba_cats_archs'] == 'Y' ? true : false)
|
221 |
-
)
|
222 |
-
);
|
223 |
-
// locations
|
224 |
-
$opts = array(
|
225 |
-
'form_group' => false,
|
226 |
-
'label' => 'Locations',
|
227 |
-
'tooltip' => 'Enable the locations you wish for share buttons to appear',
|
228 |
-
'value' => 'Y',
|
229 |
-
'checkboxes' => $locs
|
230 |
-
);
|
231 |
-
$htmlShareButtonsForm .= $ssbpForm->ssbp_checkboxes($opts);
|
232 |
-
|
233 |
-
// placement
|
234 |
-
$opts = array(
|
235 |
-
'form_group' => false,
|
236 |
-
'type' => 'select',
|
237 |
-
'name' => 'ssba_before_or_after',
|
238 |
-
'label' => 'Placement',
|
239 |
-
'tooltip' => 'Place share buttons before or after your content',
|
240 |
-
'selected' => $arrSettings['ssba_before_or_after'],
|
241 |
-
'options' => array(
|
242 |
-
'After' => 'after',
|
243 |
-
'Before' => 'before',
|
244 |
-
'Both' => 'both',
|
245 |
-
),
|
246 |
-
);
|
247 |
-
$htmlShareButtonsForm .= $ssbpForm->ssbp_input($opts);
|
248 |
-
|
249 |
-
// share text
|
250 |
-
$opts = array(
|
251 |
-
'form_group' => false,
|
252 |
-
'type' => 'text',
|
253 |
-
'placeholder' => 'Keeping sharing simple...',
|
254 |
-
'name' => 'ssba_share_text',
|
255 |
-
'label' => 'Share Text',
|
256 |
-
'tooltip' => 'Add some custom text by your share buttons',
|
257 |
-
'value' => $arrSettings['ssba_share_text'],
|
258 |
-
);
|
259 |
-
$htmlShareButtonsForm .= $ssbpForm->ssbp_input($opts);
|
260 |
-
|
261 |
-
// networks
|
262 |
-
$htmlShareButtonsForm .= '<label for="ssba_choices" class="control-label" data-toggle="tooltip" data-placement="right" data-original-title="Drag, drop and reorder those buttons that you wish to include">Networks</label>
|
263 |
-
<div class="">';
|
264 |
-
|
265 |
-
$htmlShareButtonsForm .= '<div class="ssbp-wrap ssbp--centred ssbp--theme-4">
|
266 |
-
<div class="ssbp-container">
|
267 |
-
<ul id="ssbasort1" class="ssbp-list ssbaSortable">';
|
268 |
-
$htmlShareButtonsForm .= getAvailableSSBA($arrSettings['ssba_selected_buttons'], $arrSettings);
|
269 |
-
$htmlShareButtonsForm .= '</ul>
|
270 |
-
</div>
|
271 |
-
</div>';
|
272 |
-
$htmlShareButtonsForm .= '<div class="well">';
|
273 |
-
$htmlShareButtonsForm .= '<div class="ssba-well-instruction"><i class="fa fa-download"></i> Drop icons below</div>';
|
274 |
-
$htmlShareButtonsForm .= '<div class="ssbp-wrap ssbp--centred ssbp--theme-4">
|
275 |
-
<div class="ssbp-container">
|
276 |
-
<ul id="ssbasort2" class="ssba-include-list ssbp-list ssbaSortable">';
|
277 |
-
$htmlShareButtonsForm .= getSelectedSSBA($arrSettings['ssba_selected_buttons'], $arrSettings);
|
278 |
-
$htmlShareButtonsForm .= '</ul>
|
279 |
-
</div>';
|
280 |
-
$htmlShareButtonsForm .= '</div>';
|
281 |
-
$htmlShareButtonsForm .= '</div>';
|
282 |
-
$htmlShareButtonsForm .= '<input type="hidden" name="ssba_selected_buttons" id="ssba_selected_buttons" value="'.$arrSettings['ssba_selected_buttons'].'"/>';
|
283 |
-
|
284 |
-
// plus plug
|
285 |
-
$htmlShareButtonsForm .= '<div class="well text-center">';
|
286 |
-
$htmlShareButtonsForm .= '<h2>Simple Share Buttons Plus</h2>';
|
287 |
-
$htmlShareButtonsForm .= '<h5 class="margin-bottom">Get <strong>Xing</strong> and <strong>WhatsApp</strong> buttons...</h5>';
|
288 |
-
$htmlShareButtonsForm .= '<div class="ssbp-wrap ssbp--centred ssbp--theme-4">
|
289 |
-
<div class="ssbp-container">
|
290 |
-
<ul class="ssbp-list">
|
291 |
-
<li class="ssbp-option-item ui-sortable-handle" id="buffer"><a href="javascript:;" class="ssbp-btn ssbp-whatsapp"></a></li>
|
292 |
-
<li class="ssbp-option-item ui-sortable-handle" id="diggit"><a href="javascript:;" class="ssbp-btn ssbp-xing"></a></li>
|
293 |
-
</ul>
|
294 |
-
</div>
|
295 |
-
</div>';
|
296 |
-
|
297 |
-
$htmlShareButtonsForm .= '<a href="https://simplesharebuttons.com/plus/?utm_source=adder&utm_medium=plugin_ad&utm_campaign=product&utm_content=feature" target="_blank"><span class="btn btn-primary">Simple Share Buttons Plus</span></a>';
|
298 |
-
$htmlShareButtonsForm .= '<div class="ssba-spacer"></div>';
|
299 |
-
$htmlShareButtonsForm .= '<p>Extra buttons are just the tip of the iceberg... <strong>Simple Share Buttons Plus</strong> comes with a great deal of extra features, from <strong>GeoIP click tracking</strong> to <strong>mobile-responsive</strong> share bars. <a href="https://simplesharebuttons.com/plus/?utm_source=adder&utm_medium=plugin_ad&utm_campaign=product&utm_content=feature" target="_blank"><strong>Find out more here</strong></a></p>';
|
300 |
-
$htmlShareButtonsForm .= '<div class="ssba-spacer"></div>';
|
301 |
-
$htmlShareButtonsForm .= '</div>';
|
302 |
-
|
303 |
-
$htmlShareButtonsForm .= '</div>';
|
304 |
-
|
305 |
-
// close col
|
306 |
-
$htmlShareButtonsForm .= '</div>';
|
307 |
-
|
308 |
-
// close share buttons tab
|
309 |
-
$htmlShareButtonsForm .= '</div>';
|
310 |
-
|
311 |
-
//======================================================================
|
312 |
-
// STYLING
|
313 |
-
//======================================================================
|
314 |
-
$htmlShareButtonsForm .= '<div class="tab-pane fade" id="styling">';
|
315 |
-
|
316 |
-
// intro info
|
317 |
-
$htmlShareButtonsForm .= '<blockquote><p>Use the options below to choose your favourite button set and how it should appear. <strong>If you wish to upload your own custom images</strong> please select \'Custom\' from the Image Set dropdown.</p></blockquote>';
|
318 |
-
|
319 |
-
// COLUMN --------------------------------
|
320 |
-
$htmlShareButtonsForm .= '<div class="col-sm-7">';
|
321 |
-
|
322 |
-
// IMAGES --------------------------------
|
323 |
-
$htmlShareButtonsForm .= '<div class="well">';
|
324 |
-
|
325 |
-
// heading
|
326 |
-
$htmlShareButtonsForm .= '<h3>Images</h3>';
|
327 |
-
|
328 |
-
// placement
|
329 |
-
$opts = array(
|
330 |
-
'form_group' => false,
|
331 |
-
'type' => 'select',
|
332 |
-
'name' => 'ssba_image_set',
|
333 |
-
'label' => 'Image set',
|
334 |
-
'tooltip' => 'Choose your favourite set of buttons, or set to custom to choose your own',
|
335 |
-
'selected' => $arrSettings['ssba_image_set'],
|
336 |
-
'options' => array(
|
337 |
-
'Arbenta' => 'arbenta',
|
338 |
-
'Custom' => 'custom',
|
339 |
-
'Metal' => 'metal',
|
340 |
-
'Pagepeel' => 'pagepeel',
|
341 |
-
'Plain' => 'plain',
|
342 |
-
'Retro' => 'retro',
|
343 |
-
'Ribbons' => 'ribbons',
|
344 |
-
'Simple' => 'simple',
|
345 |
-
'Somacro' => 'somacro',
|
346 |
-
),
|
347 |
-
);
|
348 |
-
$htmlShareButtonsForm .= $ssbpForm->ssbp_input($opts);
|
349 |
-
|
350 |
-
// custom images well
|
351 |
-
$htmlShareButtonsForm .= '<div id="ssba-custom-images" '.($arrSettings['ssba_image_set'] != 'custom' ? 'style="display: none;"' : NULL).'>';
|
352 |
-
|
353 |
-
// loop through each button
|
354 |
-
foreach ($arrButtons as $button => $arrButton) {
|
355 |
-
// enable custom images
|
356 |
-
$opts = array(
|
357 |
-
'form_group' => false,
|
358 |
-
'type' => 'image_upload',
|
359 |
-
'name' => 'ssba_custom_'.$button,
|
360 |
-
'label' => $arrButton['full_name'],
|
361 |
-
'tooltip' => 'Upload a custom '.$arrButton['full_name'].' image',
|
362 |
-
'value' => $arrSettings['ssba_custom_'.$button],
|
363 |
-
);
|
364 |
-
$htmlShareButtonsForm .= $ssbpForm->ssbp_input($opts);
|
365 |
-
}
|
366 |
-
|
367 |
-
// close custom images
|
368 |
-
$htmlShareButtonsForm .= '</div>';
|
369 |
-
|
370 |
-
// button size
|
371 |
-
$opts = array(
|
372 |
-
'form_group' => false,
|
373 |
-
'type' => 'number_addon',
|
374 |
-
'addon' => 'px',
|
375 |
-
'placeholder' => '35',
|
376 |
-
'name' => 'ssba_size',
|
377 |
-
'label' => 'Button Size',
|
378 |
-
'tooltip' => 'Set the size of your buttons in pixels',
|
379 |
-
'value' => $arrSettings['ssba_size'],
|
380 |
-
);
|
381 |
-
$htmlShareButtonsForm .= $ssbpForm->ssbp_input($opts);
|
382 |
-
|
383 |
-
// alignment
|
384 |
-
$opts = array(
|
385 |
-
'form_group' => false,
|
386 |
-
'type' => 'select',
|
387 |
-
'name' => 'ssba_align',
|
388 |
-
'label' => 'Alignment',
|
389 |
-
'tooltip' => 'Align your buttons the way you wish',
|
390 |
-
'selected' => $arrSettings['ssba_align'],
|
391 |
-
'options' => array(
|
392 |
-
'Left' => 'left',
|
393 |
-
'Centre' => 'center',
|
394 |
-
'Right' => 'right',
|
395 |
-
),
|
396 |
-
);
|
397 |
-
$htmlShareButtonsForm .= $ssbpForm->ssbp_input($opts);
|
398 |
-
|
399 |
-
// padding
|
400 |
-
$opts = array(
|
401 |
-
'form_group' => false,
|
402 |
-
'type' => 'number_addon',
|
403 |
-
'addon' => 'px',
|
404 |
-
'placeholder' => '10',
|
405 |
-
'name' => 'ssba_padding',
|
406 |
-
'label' => 'Padding',
|
407 |
-
'tooltip' => 'Apply some space around your images',
|
408 |
-
'value' => $arrSettings['ssba_padding'],
|
409 |
-
);
|
410 |
-
$htmlShareButtonsForm .= $ssbpForm->ssbp_input($opts);
|
411 |
-
|
412 |
-
// close images well
|
413 |
-
$htmlShareButtonsForm .= '</div>';
|
414 |
-
|
415 |
-
// SHARE TEXT STYLING --------------------------------
|
416 |
-
$htmlShareButtonsForm .= '<div class="well">';
|
417 |
-
|
418 |
-
// heading
|
419 |
-
$htmlShareButtonsForm .= '<h3>Share Text</h3>';
|
420 |
-
|
421 |
-
// font colour
|
422 |
-
$opts = array(
|
423 |
-
'form_group' => false,
|
424 |
-
'type' => 'colorpicker',
|
425 |
-
'name' => 'ssba_font_color',
|
426 |
-
'label' => 'Font Colour',
|
427 |
-
'tooltip' => 'Choose the colour of your share text',
|
428 |
-
'value' => $arrSettings['ssba_font_color'],
|
429 |
-
);
|
430 |
-
$htmlShareButtonsForm .= $ssbpForm->ssbp_input($opts);
|
431 |
-
|
432 |
-
// font family
|
433 |
-
$opts = array(
|
434 |
-
'form_group' => false,
|
435 |
-
'type' => 'select',
|
436 |
-
'name' => 'ssba_font_family',
|
437 |
-
'label' => 'Font Family',
|
438 |
-
'tooltip' => 'Choose a font available or inherit the font from your website',
|
439 |
-
'selected' => $arrSettings['ssba_font_family'],
|
440 |
-
'options' => array(
|
441 |
-
'Reenie Beanie' => 'Reenie Beanie',
|
442 |
-
'Indie Flower' => 'Indie Flower',
|
443 |
-
'Inherit from my website' => '',
|
444 |
-
),
|
445 |
-
);
|
446 |
-
$htmlShareButtonsForm .= $ssbpForm->ssbp_input($opts);
|
447 |
-
|
448 |
-
// font size
|
449 |
-
$opts = array(
|
450 |
-
'form_group' => false,
|
451 |
-
'type' => 'number_addon',
|
452 |
-
'addon' => 'px',
|
453 |
-
'placeholder' => '20',
|
454 |
-
'name' => 'ssba_font_size',
|
455 |
-
'label' => 'Font Size',
|
456 |
-
'tooltip' => 'Set the size of the share text in pixels',
|
457 |
-
'value' => $arrSettings['ssba_font_size'],
|
458 |
-
);
|
459 |
-
$htmlShareButtonsForm .= $ssbpForm->ssbp_input($opts);
|
460 |
-
|
461 |
-
// font weight
|
462 |
-
$opts = array(
|
463 |
-
'form_group' => false,
|
464 |
-
'type' => 'select',
|
465 |
-
'name' => 'ssba_font_weight',
|
466 |
-
'label' => 'Font Weight',
|
467 |
-
'tooltip' => 'Set the weight of the share text',
|
468 |
-
'selected' => $arrSettings['ssba_font_weight'],
|
469 |
-
'options' => array(
|
470 |
-
'Bold' => 'bold',
|
471 |
-
'Normal' => 'normal',
|
472 |
-
'Light' => 'light',
|
473 |
-
),
|
474 |
-
);
|
475 |
-
$htmlShareButtonsForm .= $ssbpForm->ssbp_input($opts);
|
476 |
-
|
477 |
-
// text placement
|
478 |
-
$opts = array(
|
479 |
-
'form_group' => false,
|
480 |
-
'type' => 'select',
|
481 |
-
'name' => 'ssba_text_placement',
|
482 |
-
'label' => 'Text placement',
|
483 |
-
'tooltip' => 'Choose where you want your text to be displayed, in relation to the buttons',
|
484 |
-
'selected' => $arrSettings['ssba_text_placement'],
|
485 |
-
'options' => array(
|
486 |
-
'Above' => 'above',
|
487 |
-
'Left' => 'left',
|
488 |
-
'Right' => 'right',
|
489 |
-
'Below' => 'below',
|
490 |
-
),
|
491 |
-
);
|
492 |
-
$htmlShareButtonsForm .= $ssbpForm->ssbp_input($opts);
|
493 |
-
|
494 |
-
// close share text well
|
495 |
-
$htmlShareButtonsForm .= '</div>';
|
496 |
-
|
497 |
-
// CONTAINER TEXT STYLING --------------------------------
|
498 |
-
$htmlShareButtonsForm .= '<div class="well">';
|
499 |
-
|
500 |
-
// heading
|
501 |
-
$htmlShareButtonsForm .= '<h3>Container</h3>';
|
502 |
-
|
503 |
-
// container padding
|
504 |
-
$opts = array(
|
505 |
-
'form_group' => false,
|
506 |
-
'type' => 'number_addon',
|
507 |
-
'addon' => 'px',
|
508 |
-
'placeholder' => '10',
|
509 |
-
'name' => 'ssba_div_padding',
|
510 |
-
'label' => 'Container Padding',
|
511 |
-
'tooltip' => 'Add some padding to your share container',
|
512 |
-
'value' => $arrSettings['ssba_div_padding'],
|
513 |
-
);
|
514 |
-
$htmlShareButtonsForm .= $ssbpForm->ssbp_input($opts);
|
515 |
-
|
516 |
-
// div background colour
|
517 |
-
$opts = array(
|
518 |
-
'form_group' => false,
|
519 |
-
'type' => 'colorpicker',
|
520 |
-
'name' => 'ssba_div_background',
|
521 |
-
'label' => 'Container Background Colour',
|
522 |
-
'tooltip' => 'Choose the colour of your share container',
|
523 |
-
'value' => $arrSettings['ssba_div_background'],
|
524 |
-
);
|
525 |
-
$htmlShareButtonsForm .= $ssbpForm->ssbp_input($opts);
|
526 |
-
|
527 |
-
// div border colour
|
528 |
-
$opts = array(
|
529 |
-
'form_group' => false,
|
530 |
-
'type' => 'colorpicker',
|
531 |
-
'name' => 'ssba_div_border',
|
532 |
-
'label' => 'Container Border Colour',
|
533 |
-
'tooltip' => 'Choose the colour of your share container border',
|
534 |
-
'value' => $arrSettings['ssba_div_border'],
|
535 |
-
);
|
536 |
-
$htmlShareButtonsForm .= $ssbpForm->ssbp_input($opts);
|
537 |
-
|
538 |
-
// container border width
|
539 |
-
$opts = array(
|
540 |
-
'form_group' => false,
|
541 |
-
'type' => 'number_addon',
|
542 |
-
'addon' => 'px',
|
543 |
-
'placeholder' => '1',
|
544 |
-
'name' => 'ssba_border_width',
|
545 |
-
'label' => 'Container Border Width',
|
546 |
-
'tooltip' => 'Set the width of the share container border',
|
547 |
-
'value' => $arrSettings['ssba_border_width'],
|
548 |
-
);
|
549 |
-
$htmlShareButtonsForm .= $ssbpForm->ssbp_input($opts);
|
550 |
-
|
551 |
-
// rounded container corners
|
552 |
-
$opts = array(
|
553 |
-
'form_group' => false,
|
554 |
-
'type' => 'checkbox',
|
555 |
-
'name' => 'ssba_div_rounded_corners',
|
556 |
-
'label' => 'Rounded Container Corners',
|
557 |
-
'tooltip' => 'Switch on to enable rounded corners for your share container',
|
558 |
-
'value' => 'Y',
|
559 |
-
'checked' => ($arrSettings['ssba_div_rounded_corners'] == 'Y' ? 'checked' : null),
|
560 |
-
);
|
561 |
-
$htmlShareButtonsForm .= $ssbpForm->ssbp_input($opts);
|
562 |
-
|
563 |
-
// close container well
|
564 |
-
$htmlShareButtonsForm .= '</div>';
|
565 |
-
|
566 |
-
// close col
|
567 |
-
$htmlShareButtonsForm .= '</div>';
|
568 |
-
|
569 |
-
// COLUMN --------------------------------
|
570 |
-
$htmlShareButtonsForm .= '<div class="col-sm-5">';
|
571 |
-
|
572 |
-
// plus plug
|
573 |
-
$htmlShareButtonsForm .= '<div class="well">';
|
574 |
-
$htmlShareButtonsForm .= '<h2>Get responsive</h2>';
|
575 |
-
$htmlShareButtonsForm .= '<p class="lead">Looking for <strong>fixed</strong> and <strong>responsive</strong> share buttons?</p>';
|
576 |
-
$htmlShareButtonsForm .= '<p>With <strong>Simple Share Buttons Plus</strong> you can pick from 10 different styles, that are all <strong>mobile-responsive</strong>. You can also pick icon/button colours and their hover colours!</p>';
|
577 |
-
$htmlShareButtonsForm .= '<img class="ssba-responsive-img" src="' . plugins_url() . '/simple-share-buttons-adder/images/simple-share-buttons-mockups.png' . '" />';
|
578 |
-
$htmlShareButtonsForm .= '<div class="text-center ssba-spacer"><span class="text-20 label label-success">Only $10</span></div>';
|
579 |
-
$htmlShareButtonsForm .= '<a href="https://simplesharebuttons.com/plus/?utm_source=adder&utm_medium=plugin_ad&utm_campaign=product&utm_content=styling_tab" target="_blank"><span class="ssba-spacer btn btn-block btn-primary">Get Plus!</span></a>';
|
580 |
-
$htmlShareButtonsForm .= '<div class="ssba-spacer"></div>';
|
581 |
-
$htmlShareButtonsForm .= '</div>';
|
582 |
-
|
583 |
-
// close col
|
584 |
-
$htmlShareButtonsForm .= '</div>';
|
585 |
-
|
586 |
-
// close share buttons tab
|
587 |
-
$htmlShareButtonsForm .= '</div>';
|
588 |
-
|
589 |
-
//======================================================================
|
590 |
-
// COUNTERS
|
591 |
-
//======================================================================
|
592 |
-
$htmlShareButtonsForm .= '<div class="tab-pane fade" id="counters">';
|
593 |
-
|
594 |
-
// intro info
|
595 |
-
$htmlShareButtonsForm .= '<blockquote><p>You can tweak share counter settings to your liking here.</p></blockquote>';
|
596 |
-
|
597 |
-
// COLUMN --------------------------------
|
598 |
-
$htmlShareButtonsForm .= '<div class="col-sm-7">';
|
599 |
-
|
600 |
-
// share count
|
601 |
-
$opts = array(
|
602 |
-
'form_group' => false,
|
603 |
-
'type' => 'checkbox',
|
604 |
-
'name' => 'ssba_show_share_count',
|
605 |
-
'label' => 'Share Count',
|
606 |
-
'tooltip' => 'Check the box if you wish to enable share counts. Enabling this option will slow down the loading of any pages that use share buttons',
|
607 |
-
'value' => 'Y',
|
608 |
-
'checked' => ($arrSettings['ssba_show_share_count'] == 'Y' ? 'checked' : null),
|
609 |
-
);
|
610 |
-
$htmlShareButtonsForm .= $ssbpForm->ssbp_input($opts);
|
611 |
-
|
612 |
-
// show count once
|
613 |
-
$opts = array(
|
614 |
-
'form_group' => false,
|
615 |
-
'type' => 'checkbox',
|
616 |
-
'name' => 'ssba_share_count_once',
|
617 |
-
'label' => 'Show Once',
|
618 |
-
'tooltip' => 'This option is recommended, it deactivates share counts for categories and archives allowing them to load more quickly',
|
619 |
-
'value' => 'Y',
|
620 |
-
'checked' => ($arrSettings['ssba_share_count_once'] == 'Y' ? 'checked' : null),
|
621 |
-
);
|
622 |
-
$htmlShareButtonsForm .= $ssbpForm->ssbp_input($opts);
|
623 |
-
|
624 |
-
// share counters style
|
625 |
-
$opts = array(
|
626 |
-
'form_group' => false,
|
627 |
-
'type' => 'select',
|
628 |
-
'name' => 'ssba_share_count_style',
|
629 |
-
'label' => 'Counters Style',
|
630 |
-
'tooltip' => 'Pick a setting to style the share counters',
|
631 |
-
'selected' => $arrSettings['ssba_share_count_style'],
|
632 |
-
'options' => array(
|
633 |
-
'Default' => 'default',
|
634 |
-
'White' => 'white',
|
635 |
-
'Blue' => 'blue',
|
636 |
-
),
|
637 |
-
);
|
638 |
-
$htmlShareButtonsForm .= $ssbpForm->ssbp_input($opts);
|
639 |
-
|
640 |
-
// newsharecounts.com enable
|
641 |
-
$opts = array(
|
642 |
-
'form_group' => false,
|
643 |
-
'type' => 'checkbox',
|
644 |
-
'name' => 'twitter_newsharecounts',
|
645 |
-
'label' => 'newsharecounts.com Counts for Twitter',
|
646 |
-
'tooltip' => 'Switch on to enable the use of the newsharecounts.com API for Twitter share counts',
|
647 |
-
'value' => 'Y',
|
648 |
-
'checked' => ($arrSettings['twitter_newsharecounts'] == 'Y' ? 'checked' : null),
|
649 |
-
);
|
650 |
-
$htmlShareButtonsForm .= $ssbpForm->ssbp_input($opts);
|
651 |
-
|
652 |
-
// info
|
653 |
-
$htmlShareButtonsForm .= '<p>You shall need to follow the instructions here before enabling this feature - <a target="_blank" href="http://newsharecounts.com/">newsharecounts.com</a>';
|
654 |
-
|
655 |
-
// open sharedcount well
|
656 |
-
$htmlShareButtonsForm .= '<div class="well">';
|
657 |
-
|
658 |
-
// sharedcount heading
|
659 |
-
$htmlShareButtonsForm .= '<h3>sharedcount.com</h3>';
|
660 |
-
$htmlShareButtonsForm .= '<p>Only necessary if you are experiencing issues with Facebook share counts. <a href="https://admin.sharedcount.com/admin/signup.php" target="_blank">Signup for your free account here</a>.</p>';
|
661 |
-
|
662 |
-
// sharedcount enable
|
663 |
-
$opts = array(
|
664 |
-
'form_group' => false,
|
665 |
-
'type' => 'checkbox',
|
666 |
-
'name' => 'sharedcount_enabled',
|
667 |
-
'label' => 'Enable sharedcount.com API',
|
668 |
-
'tooltip' => 'Enable if you wish to enable the use of the sharedcount.com API',
|
669 |
-
'value' => 'Y',
|
670 |
-
'checked' => ($arrSettings['sharedcount_enabled'] == 'Y' ? 'checked' : null),
|
671 |
-
);
|
672 |
-
$htmlShareButtonsForm .= $ssbpForm->ssbp_input($opts);
|
673 |
-
|
674 |
-
// sharedcount plan
|
675 |
-
$opts = array(
|
676 |
-
'form_group' => false,
|
677 |
-
'type' => 'select',
|
678 |
-
'name' => 'sharedcount_plan',
|
679 |
-
'label' => 'sharedcount.com plan',
|
680 |
-
'tooltip' => 'Select your sharedcount.com plan',
|
681 |
-
'selected' => $arrSettings['sharedcount_plan'],
|
682 |
-
'options' => array(
|
683 |
-
'Free' => 'free',
|
684 |
-
'Plus' => 'plus',
|
685 |
-
'Business' => 'business',
|
686 |
-
),
|
687 |
-
);
|
688 |
-
$htmlShareButtonsForm .= $ssbpForm->ssbp_input($opts);
|
689 |
-
|
690 |
-
// sharedcount api key
|
691 |
-
$opts = array(
|
692 |
-
'form_group' => false,
|
693 |
-
'type' => 'text',
|
694 |
-
'placeholder' => '9b17c12712c691491ef95f46c51ce3917118fdf9',
|
695 |
-
'name' => 'sharedcount_api_key',
|
696 |
-
'label' => 'sharedcount.com API Key',
|
697 |
-
'tooltip' => 'Add some text included in an email when people share that way',
|
698 |
-
'value' => $arrSettings['sharedcount_api_key'],
|
699 |
-
);
|
700 |
-
$htmlShareButtonsForm .= $ssbpForm->ssbp_input($opts);
|
701 |
-
|
702 |
-
// close well
|
703 |
-
$htmlShareButtonsForm .= '</div>';
|
704 |
-
|
705 |
-
// close col
|
706 |
-
$htmlShareButtonsForm .= '</div>';
|
707 |
-
|
708 |
-
// COLUMN --------------------------------
|
709 |
-
$htmlShareButtonsForm .= '<div class="col-sm-5">';
|
710 |
-
|
711 |
-
// plus plug
|
712 |
-
$htmlShareButtonsForm .= '<div class="well">';
|
713 |
-
$htmlShareButtonsForm .= '<h2>Get speed and accuracy</h2>';
|
714 |
-
$htmlShareButtonsForm .= '<p class="lead">Do you want <strong>fast</strong> and <strong>consistent share counts</strong>?</p>';
|
715 |
-
$htmlShareButtonsForm .= '<p>With <strong>Simple Share Buttons Plus</strong> share counts are saved for the length of time you set, drastically speeding up page load time. Plus also comes with use of the SSB API for <a href="https://simplesharebuttons.com/plus/features/api/"><strong>consistent Facebook share counts</strong></a></p>';
|
716 |
-
$htmlShareButtonsForm .= '<img class="ssba-responsive-img" src="' . plugins_url() . '/simple-share-buttons-adder/images/simple-share-buttons-mockups.png' . '" />';
|
717 |
-
$htmlShareButtonsForm .= '<div class="text-center ssba-spacer"><span class="text-20 label label-success">Only $10</span></div>';
|
718 |
-
$htmlShareButtonsForm .= '<a href="https://simplesharebuttons.com/plus/?utm_source=adder&utm_medium=plugin_ad&utm_campaign=product&utm_content=counters_tab" target="_blank"><span class="ssba-spacer btn btn-block btn-primary">Get Plus!</span></a>';
|
719 |
-
$htmlShareButtonsForm .= '<div class="ssba-spacer"></div>';
|
720 |
-
$htmlShareButtonsForm .= '</div>';
|
721 |
-
|
722 |
-
// close col
|
723 |
-
$htmlShareButtonsForm .= '</div>';
|
724 |
-
|
725 |
-
// close share buttons tab
|
726 |
-
$htmlShareButtonsForm .= '</div>';
|
727 |
-
|
728 |
-
//======================================================================
|
729 |
-
// ADVANCED
|
730 |
-
//======================================================================
|
731 |
-
$htmlShareButtonsForm .= '<div class="tab-pane fade" id="advanced">';
|
732 |
-
|
733 |
-
// intro info
|
734 |
-
$htmlShareButtonsForm .= '<blockquote><p>You\'ll find a number of advanced and miscellaneous options below, to get your share buttons functioning how you would like.</p></blockquote>';
|
735 |
-
|
736 |
-
// COLUMN --------------------------------
|
737 |
-
$htmlShareButtonsForm .= '<div class="col-sm-7">';
|
738 |
-
|
739 |
-
// link to ssb
|
740 |
-
$opts = array(
|
741 |
-
'form_group' => false,
|
742 |
-
'type' => 'checkbox',
|
743 |
-
'name' => 'ssba_link_to_ssb',
|
744 |
-
'label' => 'Share Text Link',
|
745 |
-
'tooltip' => 'Enabling this will set your share text as a link to simplesharebuttons.com to help others learn of the plugin',
|
746 |
-
'value' => 'Y',
|
747 |
-
'checked' => ($arrSettings['ssba_link_to_ssb'] == 'Y' ? 'checked' : null),
|
748 |
-
);
|
749 |
-
$htmlShareButtonsForm .= $ssbpForm->ssbp_input($opts);
|
750 |
-
|
751 |
-
// content priority
|
752 |
-
$opts = array(
|
753 |
-
'form_group' => false,
|
754 |
-
'type' => 'number',
|
755 |
-
'placeholder' => '10',
|
756 |
-
'name' => 'ssba_content_priority',
|
757 |
-
'label' => 'Content Priority',
|
758 |
-
'tooltip' => 'Set the priority for your share buttons within your content. 1-10, default is 10',
|
759 |
-
'value' => $arrSettings['ssba_content_priority'],
|
760 |
-
);
|
761 |
-
$htmlShareButtonsForm .= $ssbpForm->ssbp_input($opts);
|
762 |
-
|
763 |
-
// share in new window
|
764 |
-
$opts = array(
|
765 |
-
'form_group' => false,
|
766 |
-
'type' => 'checkbox',
|
767 |
-
'name' => 'ssba_share_new_window',
|
768 |
-
'label' => 'Open links in a new window',
|
769 |
-
'tooltip' => 'Disabling this will make links open in the same window',
|
770 |
-
'value' => 'Y',
|
771 |
-
'checked' => ($arrSettings['ssba_share_new_window'] == 'Y' ? 'checked' : null),
|
772 |
-
);
|
773 |
-
$htmlShareButtonsForm .= $ssbpForm->ssbp_input($opts);
|
774 |
-
|
775 |
-
// nofollow
|
776 |
-
$opts = array(
|
777 |
-
'form_group' => false,
|
778 |
-
'type' => 'checkbox',
|
779 |
-
'name' => 'ssba_rel_nofollow',
|
780 |
-
'label' => 'Add rel="nofollow"',
|
781 |
-
'tooltip' => 'Enable this to add nofollow to all share links',
|
782 |
-
'value' => 'Y',
|
783 |
-
'checked' => ($arrSettings['ssba_rel_nofollow'] == 'Y' ? 'checked' : null),
|
784 |
-
);
|
785 |
-
$htmlShareButtonsForm .= $ssbpForm->ssbp_input($opts);
|
786 |
-
|
787 |
-
// widget share text
|
788 |
-
$opts = array(
|
789 |
-
'form_group' => false,
|
790 |
-
'type' => 'text',
|
791 |
-
'placeholder' => 'Keeping sharing simple...',
|
792 |
-
'name' => 'ssba_widget_text',
|
793 |
-
'label' => 'Widget Share Text',
|
794 |
-
'tooltip' => 'Add custom share text when used as a widget',
|
795 |
-
'value' => $arrSettings['ssba_widget_text'],
|
796 |
-
);
|
797 |
-
$htmlShareButtonsForm .= $ssbpForm->ssbp_input($opts);
|
798 |
-
|
799 |
-
// email share text
|
800 |
-
$opts = array(
|
801 |
-
'form_group' => false,
|
802 |
-
'type' => 'text',
|
803 |
-
'placeholder' => 'Share by email...',
|
804 |
-
'name' => 'ssba_email_message',
|
805 |
-
'label' => 'Email Text',
|
806 |
-
'tooltip' => 'Add some text included in an email when people share that way',
|
807 |
-
'value' => $arrSettings['ssba_email_message'],
|
808 |
-
);
|
809 |
-
$htmlShareButtonsForm .= $ssbpForm->ssbp_input($opts);
|
810 |
-
|
811 |
-
// facebook app id
|
812 |
-
$opts = array(
|
813 |
-
'form_group' => false,
|
814 |
-
'type' => 'text',
|
815 |
-
'placeholder' => '123456789123',
|
816 |
-
'name' => 'facebook_app_id',
|
817 |
-
'label' => 'Facebook App ID',
|
818 |
-
'tooltip' => 'Enter your Facebook App ID, e.g. 123456789123',
|
819 |
-
'value' => $arrSettings['facebook_app_id'],
|
820 |
-
'disabled' => ($arrSettings['accepted_sharethis_terms'] != 'Y' ? 'disabled' : null),
|
821 |
-
);
|
822 |
-
$htmlShareButtonsForm .= $ssbpForm->ssbp_input($opts);
|
823 |
-
|
824 |
-
// info
|
825 |
-
$htmlShareButtonsForm .= '<p>You shall need to follow the instructions here before enabling this feature - <a target="_blank" href="https://developers.facebook.com/docs/apps/register">https://developers.facebook.com/docs/apps/register</a></p>';
|
826 |
-
|
827 |
-
// facebook insights
|
828 |
-
$opts = array(
|
829 |
-
'form_group' => false,
|
830 |
-
'type' => 'checkbox',
|
831 |
-
'name' => 'facebook_insights',
|
832 |
-
'label' => 'Facebook Insights',
|
833 |
-
'tooltip' => 'Enable this feature to enable Facebook Insights',
|
834 |
-
'value' => 'Y',
|
835 |
-
'checked' => ($arrSettings['facebook_insights'] == 'Y' ? 'checked' : null),
|
836 |
-
'disabled' => ($arrSettings['accepted_sharethis_terms'] != 'Y' ? 'disabled' : null),
|
837 |
-
);
|
838 |
-
$htmlShareButtonsForm .= $ssbpForm->ssbp_input($opts);
|
839 |
-
|
840 |
-
// info
|
841 |
-
$htmlShareButtonsForm .= '<p>You shall need have created and added a Facebook App ID above to make use of this feature</p>';
|
842 |
-
|
843 |
-
// twitter share text
|
844 |
-
$opts = array(
|
845 |
-
'form_group' => false,
|
846 |
-
'type' => 'text',
|
847 |
-
'placeholder' => 'Shared by Twitter...',
|
848 |
-
'name' => 'ssba_twitter_text',
|
849 |
-
'label' => 'Twitter Text',
|
850 |
-
'tooltip' => 'Add some custom text for when people share via Twitter',
|
851 |
-
'value' => $arrSettings['ssba_twitter_text'],
|
852 |
-
);
|
853 |
-
$htmlShareButtonsForm .= $ssbpForm->ssbp_input($opts);
|
854 |
-
|
855 |
-
// flattr user id
|
856 |
-
$opts = array(
|
857 |
-
'form_group' => false,
|
858 |
-
'type' => 'text',
|
859 |
-
'placeholder' => 'davidsneal',
|
860 |
-
'name' => 'ssba_flattr_user_id',
|
861 |
-
'label' => 'Flattr User ID',
|
862 |
-
'tooltip' => 'Enter your Flattr ID, e.g. davidsneal',
|
863 |
-
'value' => $arrSettings['ssba_flattr_user_id'],
|
864 |
-
);
|
865 |
-
$htmlShareButtonsForm .= $ssbpForm->ssbp_input($opts);
|
866 |
-
|
867 |
-
// flattr url
|
868 |
-
$opts = array(
|
869 |
-
'form_group' => false,
|
870 |
-
'type' => 'text',
|
871 |
-
'placeholder' => 'https://simplesharebuttons.com',
|
872 |
-
'name' => 'ssba_flattr_url',
|
873 |
-
'label' => 'Flattr URL',
|
874 |
-
'tooltip' => 'This option is perfect for dedicated sites, e.g. https://simplesharebuttons.com',
|
875 |
-
'value' => $arrSettings['ssba_flattr_url'],
|
876 |
-
);
|
877 |
-
$htmlShareButtonsForm .= $ssbpForm->ssbp_input($opts);
|
878 |
-
|
879 |
-
// buffer text
|
880 |
-
$opts = array(
|
881 |
-
'form_group' => false,
|
882 |
-
'type' => 'text',
|
883 |
-
'placeholder' => 'Shared by Buffer...',
|
884 |
-
'name' => 'ssba_buffer_text',
|
885 |
-
'label' => 'Custom Buffer Text',
|
886 |
-
'tooltip' => 'Add some custom text for when people share via Buffer',
|
887 |
-
'value' => $arrSettings['ssba_buffer_text'],
|
888 |
-
);
|
889 |
-
$htmlShareButtonsForm .= $ssbpForm->ssbp_input($opts);
|
890 |
-
|
891 |
-
// pin featured images
|
892 |
-
$opts = array(
|
893 |
-
'form_group' => false,
|
894 |
-
'type' => 'checkbox',
|
895 |
-
'name' => 'ssba_pinterest_featured',
|
896 |
-
'label' => 'Pin Featured Images',
|
897 |
-
'tooltip' => 'Force the use of featured images for posts/pages when pinning',
|
898 |
-
'value' => 'Y',
|
899 |
-
'checked' => ($arrSettings['ssba_pinterest_featured'] == 'Y' ? 'checked' : null),
|
900 |
-
);
|
901 |
-
$htmlShareButtonsForm .= $ssbpForm->ssbp_input($opts);
|
902 |
-
|
903 |
-
// default pinterest image
|
904 |
-
$opts = array(
|
905 |
-
'form_group' => false,
|
906 |
-
'type' => 'image_upload',
|
907 |
-
'name' => 'ssba_default_pinterest',
|
908 |
-
'label' => 'Default Pinterest Image',
|
909 |
-
'tooltip' => 'Upload a default Pinterest image',
|
910 |
-
'value' => $arrSettings['ssba_default_pinterest'],
|
911 |
-
);
|
912 |
-
$htmlShareButtonsForm .= $ssbpForm->ssbp_input($opts);
|
913 |
-
|
914 |
-
// close col
|
915 |
-
$htmlShareButtonsForm .= '</div>';
|
916 |
-
|
917 |
-
// COLUMN --------------------------------
|
918 |
-
$htmlShareButtonsForm .= '<div class="col-sm-5">';
|
919 |
-
|
920 |
-
// plus plug
|
921 |
-
$htmlShareButtonsForm .= '<div class="well">';
|
922 |
-
$htmlShareButtonsForm .= '<h2>Get even more</h2>';
|
923 |
-
$htmlShareButtonsForm .= '<p class="lead">Hoping for <strong>even more</strong> features?</p>';
|
924 |
-
$htmlShareButtonsForm .= '<p>With <strong>Simple Share Buttons Plus</strong> there is an ever-growing \'Advanced\' features section, including <strong>bit.ly</strong> URL shortening, <strong>Google Analytics Event Tracking</strong> and <strong>Share-Meta</strong> Functionality.</p>';
|
925 |
-
$htmlShareButtonsForm .= '<img class="ssba-responsive-img" src="' . plugins_url() . '/simple-share-buttons-adder/images/simple-share-buttons-mockups.png' . '" />';
|
926 |
-
$htmlShareButtonsForm .= '<div class="text-center ssba-spacer"><span class="text-20 label label-success">Only $10</span></div>';
|
927 |
-
$htmlShareButtonsForm .= '<a href="https://simplesharebuttons.com/plus/?utm_source=adder&utm_medium=plugin_ad&utm_campaign=product&utm_content=advanced_tab" target="_blank"><span class="ssba-spacer btn btn-block btn-primary">Get Plus!</span></a>';
|
928 |
-
$htmlShareButtonsForm .= '<div class="ssba-spacer"></div>';
|
929 |
-
$htmlShareButtonsForm .= '</div>';
|
930 |
-
|
931 |
-
// close col
|
932 |
-
$htmlShareButtonsForm .= '</div>';
|
933 |
-
|
934 |
-
// close share buttons tab
|
935 |
-
$htmlShareButtonsForm .= '</div>';
|
936 |
-
|
937 |
-
//======================================================================
|
938 |
-
// ADDITIONAL CSS
|
939 |
-
//======================================================================
|
940 |
-
$htmlShareButtonsForm .= '<div class="tab-pane fade" id="css_additional">';
|
941 |
-
|
942 |
-
// intro info
|
943 |
-
$htmlShareButtonsForm .= '<blockquote><p>The contents of the text area below will be appended to Simple Share Button Adder\'s CSS.</p></blockquote>';
|
944 |
-
|
945 |
-
// column for padding
|
946 |
-
$htmlShareButtonsForm .= '<div class="col-sm-12">';
|
947 |
-
|
948 |
-
// additional css
|
949 |
-
$opts = array(
|
950 |
-
'form_group' => false,
|
951 |
-
'type' => 'textarea',
|
952 |
-
'rows' => '15',
|
953 |
-
'class' => 'code-font',
|
954 |
-
'name' => 'ssba_additional_css',
|
955 |
-
'label' => 'Additional CSS',
|
956 |
-
'tooltip' => 'Add your own additional CSS if you wish',
|
957 |
-
'value' => $arrSettings['ssba_additional_css'],
|
958 |
-
);
|
959 |
-
$htmlShareButtonsForm .= $ssbpForm->ssbp_input($opts);
|
960 |
-
|
961 |
-
// close column
|
962 |
-
$htmlShareButtonsForm .= '</div>';
|
963 |
-
|
964 |
-
// close additional css
|
965 |
-
$htmlShareButtonsForm .= '</div>';
|
966 |
-
|
967 |
-
//======================================================================
|
968 |
-
// CUSTOM CSS
|
969 |
-
//======================================================================
|
970 |
-
$htmlShareButtonsForm .= '<div class="tab-pane fade" id="css_custom">';
|
971 |
-
|
972 |
-
// intro info
|
973 |
-
$htmlShareButtonsForm .= '<blockquote><p>If you want to take over control of your share buttons\' CSS entirely, turn on the switch below and enter your custom CSS. <strong>ALL of Simple Share Buttons Adder\'s CSS will be disabled</strong>.</p></blockquote>';
|
974 |
-
|
975 |
-
// column for padding
|
976 |
-
$htmlShareButtonsForm .= '<div class="col-sm-12">';
|
977 |
-
|
978 |
-
// enable custom css
|
979 |
-
$opts = array(
|
980 |
-
'form_group' => false,
|
981 |
-
'type' => 'checkbox',
|
982 |
-
'name' => 'ssba_custom_styles_enabled',
|
983 |
-
'label' => 'Enable Custom CSS',
|
984 |
-
'tooltip' => 'Switch on to disable all SSBA styles and use your own custom CSS',
|
985 |
-
'value' => 'Y',
|
986 |
-
'checked' => ($arrSettings['ssba_custom_styles_enabled'] == 'Y' ? 'checked' : null),
|
987 |
-
);
|
988 |
-
$htmlShareButtonsForm .= $ssbpForm->ssbp_input($opts);
|
989 |
-
|
990 |
-
// custom css
|
991 |
-
$opts = array(
|
992 |
-
'form_group' => false,
|
993 |
-
'type' => 'textarea',
|
994 |
-
'rows' => '15',
|
995 |
-
'class' => 'code-font',
|
996 |
-
'name' => 'ssba_custom_styles',
|
997 |
-
'label' => 'Custom CSS',
|
998 |
-
'tooltip' => 'Enter in your own custom CSS for your share buttons',
|
999 |
-
'value' => $arrSettings['ssba_custom_styles'],
|
1000 |
-
);
|
1001 |
-
$htmlShareButtonsForm .= $ssbpForm->ssbp_input($opts);
|
1002 |
-
|
1003 |
-
// close column
|
1004 |
-
$htmlShareButtonsForm .= '</div>';
|
1005 |
-
|
1006 |
-
// close custom css
|
1007 |
-
$htmlShareButtonsForm .= '</div>';
|
1008 |
-
|
1009 |
-
// close tab content div
|
1010 |
-
$htmlShareButtonsForm .= '</div>';
|
1011 |
-
|
1012 |
-
// close off form with save button
|
1013 |
-
$htmlShareButtonsForm .= $ssbpForm->close();
|
1014 |
-
|
1015 |
-
// add footer
|
1016 |
-
$htmlShareButtonsForm .= ssba_admin_footer();
|
1017 |
-
|
1018 |
-
echo $htmlShareButtonsForm;
|
1019 |
-
}
|
1020 |
-
|
1021 |
-
// get an html formatted of currently selected and ordered buttons
|
1022 |
-
function getSelectedSSBA($strSelectedSSBA, $arrSettings) {
|
1023 |
-
//variables
|
1024 |
-
$htmlSelectedList = '';
|
1025 |
-
|
1026 |
-
// prepare array of buttons
|
1027 |
-
$arrButtons = json_decode(get_option('ssba_buttons'), true);
|
1028 |
-
|
1029 |
-
// if there are some selected buttons
|
1030 |
-
if ($strSelectedSSBA != '') {
|
1031 |
-
|
1032 |
-
// explode saved include list and add to a new array
|
1033 |
-
$arrSelectedSSBA = explode(',', $strSelectedSSBA);
|
1034 |
-
|
1035 |
-
// check if array is not empty
|
1036 |
-
if ($arrSelectedSSBA != '') {
|
1037 |
-
|
1038 |
-
// for each included button
|
1039 |
-
foreach ($arrSelectedSSBA as $strSelected) {
|
1040 |
-
// if share this terms haven't been accepted and it's the facebook save button then make the button look disabled
|
1041 |
-
$disabled = ($arrSettings['accepted_sharethis_terms'] != 'Y' && $strSelected == 'facebook_save' ? 'style="background-color:#eaeaea;"' : null);
|
1042 |
-
|
1043 |
-
// add a list item for each selected option
|
1044 |
-
$htmlSelectedList .= '<li class="ssbp-option-item" id="'.$strSelected.'"><a title="'.$arrButtons[$strSelected]["full_name"].'" href="javascript:;" class="ssbp-btn ssbp-'.$strSelected.'" '.$disabled.'></a></li>';
|
1045 |
-
}
|
1046 |
-
}
|
1047 |
-
}
|
1048 |
-
|
1049 |
-
// return html list options
|
1050 |
-
return $htmlSelectedList;
|
1051 |
-
}
|
1052 |
-
|
1053 |
-
function getAvailableSSBA($strSelectedSSBA, $arrSettings)
|
1054 |
-
{
|
1055 |
-
// variables
|
1056 |
-
$htmlAvailableList = '';
|
1057 |
-
|
1058 |
-
// prepare array of buttons
|
1059 |
-
$arrButtons = json_decode(get_option('ssba_buttons'), true);
|
1060 |
-
|
1061 |
-
// explode saved include list and add to a new array
|
1062 |
-
$arrSelectedSSBA = explode(',', $strSelectedSSBA);
|
1063 |
-
|
1064 |
-
// extract the available buttons
|
1065 |
-
$arrAvailableSSBA = array_diff(array_keys($arrButtons), $arrSelectedSSBA);
|
1066 |
-
|
1067 |
-
// check if array is not empty
|
1068 |
-
if($arrSelectedSSBA != '')
|
1069 |
-
{
|
1070 |
-
// for each included button
|
1071 |
-
foreach($arrAvailableSSBA as $strAvailable) {
|
1072 |
-
// if share this terms haven't been accepted and it's the facebook save button then make the button look disabled
|
1073 |
-
$disabled = ($arrSettings['accepted_sharethis_terms'] != 'Y' && $strAvailable == 'facebook_save' ? 'style="background-color:#eaeaea;"' : null);
|
1074 |
-
|
1075 |
-
// add a list item for each available option
|
1076 |
-
$htmlAvailableList .= '<li class="ssbp-option-item" id="'.$strAvailable.'"><a title="'.$arrButtons[$strAvailable]["full_name"].'" href="javascript:;" class="ssbp-btn ssbp-'.$strAvailable.'" '.$disabled.'></a></li>';
|
1077 |
-
}
|
1078 |
-
}
|
1079 |
-
|
1080 |
-
// return html list options
|
1081 |
-
return $htmlAvailableList;
|
1082 |
-
}
|
1083 |
-
|
1084 |
-
// get ssbp font family
|
1085 |
-
function ssba_get_font_family()
|
1086 |
-
{
|
1087 |
-
return "@font-face {
|
1088 |
-
font-family: 'ssbp';
|
1089 |
-
src:url('".plugins_url()."/simple-share-buttons-adder/fonts/ssbp.eot?xj3ol1');
|
1090 |
-
src:url('".plugins_url()."/simple-share-buttons-adder/fonts/ssbp.eot?#iefixxj3ol1') format('embedded-opentype'),
|
1091 |
-
url('".plugins_url()."/simple-share-buttons-adder/fonts/ssbp.woff?xj3ol1') format('woff'),
|
1092 |
-
url('".plugins_url()."/simple-share-buttons-adder/fonts/ssbp.ttf?xj3ol1') format('truetype'),
|
1093 |
-
url('".plugins_url()."/simple-share-buttons-adder/fonts/ssbp.svg?xj3ol1#ssbp') format('svg');
|
1094 |
-
font-weight: normal;
|
1095 |
-
font-style: normal;
|
1096 |
-
|
1097 |
-
/* Better Font Rendering =========== */
|
1098 |
-
-webkit-font-smoothing: antialiased;
|
1099 |
-
-moz-osx-font-smoothing: grayscale;
|
1100 |
-
}";
|
1101 |
-
}
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|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
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
inc/ssba_buttons.php
DELETED
@@ -1,1012 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
defined('ABSPATH') or die('No direct access permitted');
|
3 |
-
|
4 |
-
// format the returned number
|
5 |
-
function ssba_format_number($intNumber)
|
6 |
-
{
|
7 |
-
// if the number is greater than or equal to 1000
|
8 |
-
if ($intNumber >= 1000) {
|
9 |
-
// divide by 1000 and add k
|
10 |
-
$intNumber = round(($intNumber / 1000), 1).'k';
|
11 |
-
}
|
12 |
-
|
13 |
-
// return the number
|
14 |
-
return $intNumber;
|
15 |
-
}
|
16 |
-
|
17 |
-
/**
|
18 |
-
* Adds a filter around the content.
|
19 |
-
*/
|
20 |
-
function ssba_add_button_filter() {
|
21 |
-
$arrSettings = get_ssba_settings();
|
22 |
-
add_filter( 'the_content', 'show_share_buttons', (int) $arrSettings['ssba_content_priority'] );
|
23 |
-
}
|
24 |
-
|
25 |
-
add_action( 'wp_head', 'ssba_add_button_filter', 99 );
|
26 |
-
|
27 |
-
|
28 |
-
// get and show share buttons
|
29 |
-
function show_share_buttons($content, $booShortCode = FALSE, $atts = '') {
|
30 |
-
|
31 |
-
// globals
|
32 |
-
global $post;
|
33 |
-
|
34 |
-
// variables
|
35 |
-
$htmlContent = $content;
|
36 |
-
$pattern = get_shortcode_regex();
|
37 |
-
|
38 |
-
// ssba_hide shortcode is in the post content and instance is not called by shortcode ssba
|
39 |
-
if (isset($post->post_content) && preg_match_all( '/'. $pattern .'/s', $post->post_content, $matches )
|
40 |
-
&& array_key_exists( 2, $matches )
|
41 |
-
&& in_array('ssba_hide', $matches[2])
|
42 |
-
&& $booShortCode == FALSE) {
|
43 |
-
|
44 |
-
// exit the function returning the content without the buttons
|
45 |
-
return $content;
|
46 |
-
}
|
47 |
-
|
48 |
-
// get sbba settings
|
49 |
-
$arrSettings = get_ssba_settings();
|
50 |
-
|
51 |
-
// placement on pages/posts/categories/archives/homepage
|
52 |
-
if ((!is_home() && !is_front_page() && is_page() && $arrSettings['ssba_pages'] == 'Y') || (is_single() && $arrSettings['ssba_posts'] == 'Y') || (is_category() && $arrSettings['ssba_cats_archs'] == 'Y') || (is_archive() && $arrSettings['ssba_cats_archs'] == 'Y') || ( (is_home() || is_front_page() ) && $arrSettings['ssba_homepage'] == 'Y') || $booShortCode == TRUE) {
|
53 |
-
|
54 |
-
|
55 |
-
// if not shortcode
|
56 |
-
if (isset($atts['widget']) && $atts['widget'] == 'Y')
|
57 |
-
// use widget share text
|
58 |
-
$strShareText = $arrSettings['ssba_widget_text'];
|
59 |
-
else
|
60 |
-
// use normal share text
|
61 |
-
$strShareText = $arrSettings['ssba_share_text'];
|
62 |
-
|
63 |
-
// post id
|
64 |
-
$intPostID = get_the_ID();
|
65 |
-
|
66 |
-
// ssba div
|
67 |
-
$htmlShareButtons = '<!-- Simple Share Buttons Adder ('.SSBA_VERSION.') simplesharebuttons.com --><div class="ssba ssba-wrap">';
|
68 |
-
|
69 |
-
// center if set so
|
70 |
-
$htmlShareButtons.= '<div style="text-align:'.$arrSettings['ssba_align'].'">';
|
71 |
-
|
72 |
-
// add custom text if set and set to placement above or left
|
73 |
-
if (($strShareText != '') && ($arrSettings['ssba_text_placement'] == 'above' || $arrSettings['ssba_text_placement'] == 'left')) {
|
74 |
-
|
75 |
-
// check if user has left share link box checked
|
76 |
-
if ($arrSettings['ssba_link_to_ssb'] == 'Y') {
|
77 |
-
|
78 |
-
// share text with link
|
79 |
-
$htmlShareButtons .= '<a href="https://simplesharebuttons.com" target="_blank">' . $strShareText . '</a>';
|
80 |
-
}
|
81 |
-
|
82 |
-
// just display the share text
|
83 |
-
else {
|
84 |
-
|
85 |
-
// share text
|
86 |
-
$htmlShareButtons .= $strShareText;
|
87 |
-
}
|
88 |
-
// add a line break if set to above
|
89 |
-
($arrSettings['ssba_text_placement'] == 'above' ? $htmlShareButtons .= '<br/>' : NULL);
|
90 |
-
}
|
91 |
-
|
92 |
-
// if running standard
|
93 |
-
if ($booShortCode == FALSE) {
|
94 |
-
|
95 |
-
// use wordpress functions for page/post details
|
96 |
-
$urlCurrentPage = get_permalink($post->ID);
|
97 |
-
$strPageTitle = get_the_title($post->ID);
|
98 |
-
|
99 |
-
} else { // using shortcode
|
100 |
-
|
101 |
-
// set page URL and title as set by user or get if needed
|
102 |
-
$urlCurrentPage = (isset($atts['url']) ? $atts['url'] : ssba_current_url($atts));
|
103 |
-
$strPageTitle = (isset($atts['title']) ? $atts['title'] : get_the_title());
|
104 |
-
}
|
105 |
-
|
106 |
-
// strip any unwanted tags from the page title
|
107 |
-
$strPageTitle = esc_attr(strip_tags($strPageTitle));
|
108 |
-
|
109 |
-
// the buttons!
|
110 |
-
$htmlShareButtons.= get_share_buttons($arrSettings, $urlCurrentPage, $strPageTitle, $intPostID);
|
111 |
-
|
112 |
-
// add custom text if set and set to placement right or below
|
113 |
-
if (($strShareText != '') && ($arrSettings['ssba_text_placement'] == 'right' || $arrSettings['ssba_text_placement'] =='below')) {
|
114 |
-
|
115 |
-
// add a line break if set to above
|
116 |
-
($arrSettings['ssba_text_placement'] == 'below' ? $htmlShareButtons .= '<br/>' : NULL);
|
117 |
-
|
118 |
-
// check if user has checked share link option
|
119 |
-
if ($arrSettings['ssba_link_to_ssb'] == 'Y') {
|
120 |
-
|
121 |
-
// share text with link
|
122 |
-
$htmlShareButtons .= '<a href="https://simplesharebuttons.com" target="_blank">' . $strShareText . '</a>';
|
123 |
-
}
|
124 |
-
|
125 |
-
// just display the share text
|
126 |
-
else {
|
127 |
-
|
128 |
-
// share text
|
129 |
-
$htmlShareButtons .= $strShareText;
|
130 |
-
}
|
131 |
-
}
|
132 |
-
|
133 |
-
// close center if set
|
134 |
-
$htmlShareButtons.= '</div>';
|
135 |
-
$htmlShareButtons.= '</div>';
|
136 |
-
|
137 |
-
// if not using shortcode
|
138 |
-
if ($booShortCode == FALSE) {
|
139 |
-
|
140 |
-
// switch for placement of ssba
|
141 |
-
switch ($arrSettings['ssba_before_or_after']) {
|
142 |
-
|
143 |
-
case 'before': // before the content
|
144 |
-
$htmlContent = $htmlShareButtons . $content;
|
145 |
-
break;
|
146 |
-
|
147 |
-
case 'after': // after the content
|
148 |
-
$htmlContent = $content . $htmlShareButtons;
|
149 |
-
break;
|
150 |
-
|
151 |
-
case 'both': // before and after the content
|
152 |
-
$htmlContent = $htmlShareButtons . $content . $htmlShareButtons;
|
153 |
-
break;
|
154 |
-
}
|
155 |
-
}
|
156 |
-
|
157 |
-
// if using shortcode
|
158 |
-
else {
|
159 |
-
|
160 |
-
// just return buttons
|
161 |
-
$htmlContent = $htmlShareButtons;
|
162 |
-
}
|
163 |
-
}
|
164 |
-
|
165 |
-
// return content and share buttons
|
166 |
-
return $htmlContent;
|
167 |
-
}
|
168 |
-
|
169 |
-
// if we wish to add to excerpts
|
170 |
-
if(isset($arrSettings['ssba_excerpts']) && $arrSettings['ssba_excerpts'] == 'Y') {
|
171 |
-
|
172 |
-
// add a hook
|
173 |
-
add_filter( 'the_excerpt', 'show_share_buttons');
|
174 |
-
}
|
175 |
-
|
176 |
-
// shortcode for adding buttons
|
177 |
-
function ssba_buttons($atts) {
|
178 |
-
|
179 |
-
// get buttons - NULL for $content, TRUE for shortcode flag
|
180 |
-
$htmlShareButtons = show_share_buttons(NULL, TRUE, $atts);
|
181 |
-
|
182 |
-
//return buttons
|
183 |
-
return $htmlShareButtons;
|
184 |
-
}
|
185 |
-
|
186 |
-
// shortcode for hiding buttons
|
187 |
-
function ssba_hide($content) {
|
188 |
-
// no need to do anything here!
|
189 |
-
}
|
190 |
-
|
191 |
-
// get URL function
|
192 |
-
function ssba_current_url($atts) {
|
193 |
-
// if multisite has been set to true
|
194 |
-
if (isset($atts['multisite'])) {
|
195 |
-
global $wp;
|
196 |
-
$url = add_query_arg($_SERVER['QUERY_STRING'], '', home_url($wp->request));
|
197 |
-
return esc_url($url);
|
198 |
-
}
|
199 |
-
|
200 |
-
// add http
|
201 |
-
$urlCurrentPage = 'http';
|
202 |
-
|
203 |
-
// add s to http if required
|
204 |
-
if (isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == "on") {
|
205 |
-
$urlCurrentPage .= "s";
|
206 |
-
}
|
207 |
-
|
208 |
-
// add colon and forward slashes
|
209 |
-
$urlCurrentPage .= "://".$_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
|
210 |
-
|
211 |
-
// return url
|
212 |
-
return esc_url($urlCurrentPage);
|
213 |
-
}
|
214 |
-
|
215 |
-
// get set share buttons
|
216 |
-
function get_share_buttons($arrSettings, $urlCurrentPage, $strPageTitle, $intPostID) {
|
217 |
-
|
218 |
-
// variables
|
219 |
-
$htmlShareButtons = '';
|
220 |
-
|
221 |
-
// explode saved include list and add to a new array
|
222 |
-
$arrSelectedSSBA = explode(',', $arrSettings['ssba_selected_buttons']);
|
223 |
-
|
224 |
-
// check if array is not empty
|
225 |
-
if ($arrSettings['ssba_selected_buttons'] != '') {
|
226 |
-
|
227 |
-
// add post ID to settings array
|
228 |
-
$arrSettings['post_id'] = $intPostID;
|
229 |
-
|
230 |
-
// if show counters option is selected
|
231 |
-
if ($arrSettings['ssba_show_share_count'] == 'Y') {
|
232 |
-
|
233 |
-
// set show flag to true
|
234 |
-
$booShowShareCount = true;
|
235 |
-
|
236 |
-
// if show counters once option is selected
|
237 |
-
if ($arrSettings['ssba_share_count_once'] == 'Y') {
|
238 |
-
|
239 |
-
// if not a page or post
|
240 |
-
if (!is_page() && !is_single()) {
|
241 |
-
|
242 |
-
// set show flag to false
|
243 |
-
$booShowShareCount = false;
|
244 |
-
}
|
245 |
-
}
|
246 |
-
} else {
|
247 |
-
// set show flag to false
|
248 |
-
$booShowShareCount = false;
|
249 |
-
}
|
250 |
-
|
251 |
-
// for each included button
|
252 |
-
foreach ($arrSelectedSSBA as $strSelected) {
|
253 |
-
|
254 |
-
$strGetButton = 'ssba_' . $strSelected;
|
255 |
-
|
256 |
-
// add a list item for each selected option
|
257 |
-
$htmlShareButtons .= $strGetButton($arrSettings, $urlCurrentPage, $strPageTitle, $booShowShareCount);
|
258 |
-
}
|
259 |
-
}
|
260 |
-
|
261 |
-
// return share buttons
|
262 |
-
return $htmlShareButtons;
|
263 |
-
}
|
264 |
-
|
265 |
-
// get facebook button
|
266 |
-
function ssba_facebook($arrSettings, $urlCurrentPage, $strPageTitle, $booShowShareCount) {
|
267 |
-
// if the sharethis terms have been accepted
|
268 |
-
if ($arrSettings['accepted_sharethis_terms'] == 'Y' && $arrSettings['facebook_app_id'] != '') {
|
269 |
-
// facebook share link
|
270 |
-
$htmlShareButtons = '<a data-site="" data-facebook="mobile" class="ssba_facebook_share" data-href="'.$urlCurrentPage.'" href="https://www.facebook.com/dialog/share?app_id='.$arrSettings['facebook_app_id'].'&display=popup&href='.$urlCurrentPage.'&redirect_uri='.$urlCurrentPage.'" ' . ($arrSettings['ssba_share_new_window'] == 'Y' ? ' target="_blank" ' : NULL) . ($arrSettings['ssba_rel_nofollow'] == 'Y' ? ' rel="nofollow"' : NULL) .'>';
|
271 |
-
} else {
|
272 |
-
// facebook share link
|
273 |
-
$htmlShareButtons = '<a data-site="" class="ssba_facebook_share" href="http://www.facebook.com/sharer.php?u=' . $urlCurrentPage . '" ' . ($arrSettings['ssba_share_new_window'] == 'Y' ? ' target="_blank" ' : NULL) . ($arrSettings['ssba_rel_nofollow'] == 'Y' ? ' rel="nofollow"' : NULL) .'>';
|
274 |
-
}
|
275 |
-
|
276 |
-
// if not using custom
|
277 |
-
if ($arrSettings['ssba_image_set'] != 'custom') {
|
278 |
-
|
279 |
-
// show selected ssba image
|
280 |
-
$htmlShareButtons .= '<img src="' . plugins_url() . '/simple-share-buttons-adder/buttons/' . $arrSettings['ssba_image_set'] . '/facebook.png" title="Facebook" class="ssba ssba-img" alt="Share on Facebook" />';
|
281 |
-
}
|
282 |
-
|
283 |
-
// if using custom images
|
284 |
-
else {
|
285 |
-
|
286 |
-
// show custom image
|
287 |
-
$htmlShareButtons .= '<img src="' . $arrSettings['ssba_custom_facebook'] . '" title="Facebook" class="ssba ssba-img" alt="Share on Facebook" />';
|
288 |
-
}
|
289 |
-
|
290 |
-
// close href
|
291 |
-
$htmlShareButtons .= '</a>';
|
292 |
-
|
293 |
-
// if show share count is set to Y
|
294 |
-
if ($arrSettings['ssba_show_share_count'] == 'Y' && $booShowShareCount == true) {
|
295 |
-
// get and add facebook share count
|
296 |
-
$htmlShareButtons .= '<span class="ssba_sharecount">' . getFacebookShareCount($urlCurrentPage, $arrSettings) . '</span>';
|
297 |
-
}
|
298 |
-
|
299 |
-
// return share buttons
|
300 |
-
return $htmlShareButtons;
|
301 |
-
}
|
302 |
-
|
303 |
-
// get facebook button
|
304 |
-
function ssba_facebook_save($arrSettings, $urlCurrentPage, $strPageTitle, $booShowShareCount) {
|
305 |
-
// if the sharethis terms have been accepted
|
306 |
-
if ($arrSettings['accepted_sharethis_terms'] == 'Y') {
|
307 |
-
// add facebook save button
|
308 |
-
return '<div class="fb-save" style="display:inline-block" data-uri="'.$urlCurrentPage.'"></div>';
|
309 |
-
}
|
310 |
-
}
|
311 |
-
|
312 |
-
// get facebook share count
|
313 |
-
function getFacebookShareCount($urlCurrentPage, $arrSettings)
|
314 |
-
{
|
315 |
-
$cache_key = sprintf(
|
316 |
-
'facebook_sharecount_%s',
|
317 |
-
wp_hash( $urlCurrentPage )
|
318 |
-
);
|
319 |
-
if ( $cachedCount = wp_cache_get( $cache_key, 'ssba' ) ) {
|
320 |
-
return ssba_format_number( $cachedCount );
|
321 |
-
}
|
322 |
-
|
323 |
-
// Get the longer cached value from the Transient API.
|
324 |
-
$longCachedCount = get_transient( "ssba_{$cache_key}" );
|
325 |
-
if ( false === $longCachedCount ) {
|
326 |
-
$longCachedCount = 0;
|
327 |
-
}
|
328 |
-
|
329 |
-
// if sharedcount.com is enabled
|
330 |
-
if ($arrSettings['sharedcount_enabled']) {
|
331 |
-
// request from sharedcount.com
|
332 |
-
$sharedcount = wp_remote_get('https://'.$arrSettings['sharedcount_plan'].'.sharedcount.com/url?url='.$urlCurrentPage.'&apikey='.$arrSettings['sharedcount_api_key'], array('timeout' => 6));
|
333 |
-
|
334 |
-
// if no error
|
335 |
-
if (is_wp_error($sharedcount)) {
|
336 |
-
return ssba_format_number( $longCachedCount );
|
337 |
-
}
|
338 |
-
|
339 |
-
// decode and return count
|
340 |
-
$shared_resp = json_decode( $sharedcount['body'], true );
|
341 |
-
$sharedcount = $longCachedCount;
|
342 |
-
if ( isset( $shared_resp['Facebook']['share_count'] ) ) {
|
343 |
-
$sharedcount = (int) $shared_resp['Facebook']['share_count'];
|
344 |
-
wp_cache_set( $cache_key, $sharedcount, 'ssba', MINUTE_IN_SECONDS * 2 );
|
345 |
-
set_transient( "ssba_{$cache_key}", $sharedcount, DAY_IN_SECONDS );
|
346 |
-
}
|
347 |
-
return ssba_format_number( $sharedcount );
|
348 |
-
} else {
|
349 |
-
// get results from facebook
|
350 |
-
$htmlFacebookShareDetails = wp_remote_get('http://graph.facebook.com/'.$urlCurrentPage, array('timeout' => 6));
|
351 |
-
|
352 |
-
// if no error
|
353 |
-
if (is_wp_error($htmlFacebookShareDetails)) {
|
354 |
-
return ssba_format_number( $longCachedCount );
|
355 |
-
}
|
356 |
-
|
357 |
-
// decode and return count
|
358 |
-
$arrFacebookShareDetails = json_decode($htmlFacebookShareDetails['body'], true);
|
359 |
-
$intFacebookShareCount = $longCachedCount;
|
360 |
-
if ( isset( $arrFacebookShareDetails['share']['share_count'] ) ) {
|
361 |
-
$intFacebookShareCount = (int) $arrFacebookShareDetails['share']['share_count'];
|
362 |
-
wp_cache_set( $cache_key, $intFacebookShareCount, 'ssba', MINUTE_IN_SECONDS * 2 );
|
363 |
-
set_transient( "ssba_{$cache_key}", $intFacebookShareCount, DAY_IN_SECONDS );
|
364 |
-
}
|
365 |
-
return ssba_format_number( $intFacebookShareCount );
|
366 |
-
}
|
367 |
-
}
|
368 |
-
|
369 |
-
// get twitter button
|
370 |
-
function ssba_twitter($arrSettings, $urlCurrentPage, $strPageTitle, $booShowShareCount) {
|
371 |
-
|
372 |
-
// format the URL into friendly code
|
373 |
-
$twitterShareText = urlencode(html_entity_decode($strPageTitle . ' ' . $arrSettings['ssba_twitter_text'], ENT_COMPAT, 'UTF-8'));
|
374 |
-
|
375 |
-
// twitter share link
|
376 |
-
$htmlShareButtons = '<a data-site="" class="ssba_twitter_share" href="http://twitter.com/share?url=' . $urlCurrentPage . '&text=' . $twitterShareText . '" ' . ($arrSettings['ssba_share_new_window'] == 'Y' ? ' target="_blank" ' : NULL) . ($arrSettings['ssba_rel_nofollow'] == 'Y' ? ' rel="nofollow"' : NULL) . '>';
|
377 |
-
|
378 |
-
// if image set is not custom
|
379 |
-
if ($arrSettings['ssba_image_set'] != 'custom') {
|
380 |
-
|
381 |
-
// show ssba image
|
382 |
-
$htmlShareButtons .= '<img src="' . plugins_url() . '/simple-share-buttons-adder/buttons/' . $arrSettings['ssba_image_set'] . '/twitter.png" title="Twitter" class="ssba ssba-img" alt="Tweet about this on Twitter" />';
|
383 |
-
}
|
384 |
-
|
385 |
-
// if using custom images
|
386 |
-
else {
|
387 |
-
|
388 |
-
// show custom image
|
389 |
-
$htmlShareButtons .= '<img src="' . $arrSettings['ssba_custom_twitter'] . '" title="Twitter" class="ssba ssba-img" alt="Tweet about this on Twitter" />';
|
390 |
-
}
|
391 |
-
|
392 |
-
// close href
|
393 |
-
$htmlShareButtons .= '</a>';
|
394 |
-
|
395 |
-
// if show share count is set to Y
|
396 |
-
if ($arrSettings['ssba_show_share_count'] == 'Y' && $booShowShareCount == true) {
|
397 |
-
// newsharedcount needs to be enabled
|
398 |
-
if ($arrSettings['twitter_newsharecounts'] == 'Y') {
|
399 |
-
$htmlShareButtons .= '<span class="ssba_sharecount">' . ssba_twitter_count($urlCurrentPage) . '</span>';
|
400 |
-
}
|
401 |
-
}
|
402 |
-
|
403 |
-
// return share buttons
|
404 |
-
return $htmlShareButtons;
|
405 |
-
}
|
406 |
-
|
407 |
-
// get twitter share count
|
408 |
-
function ssba_twitter_count($urlCurrentPage)
|
409 |
-
{
|
410 |
-
// get results from newsharecounts and return the number of shares
|
411 |
-
$result = wp_remote_get('http://public.newsharecounts.com/count.json?url=' . $urlCurrentPage, array('timeout' => 6));
|
412 |
-
|
413 |
-
// check there was an error
|
414 |
-
if (is_wp_error($result)) {
|
415 |
-
return 0;
|
416 |
-
}
|
417 |
-
|
418 |
-
// decode data
|
419 |
-
$result = json_decode($result['body'], true);
|
420 |
-
$count = (isset($result['count']) ? $result['count'] : 0);
|
421 |
-
|
422 |
-
// return
|
423 |
-
return ssba_format_number($count);
|
424 |
-
}
|
425 |
-
|
426 |
-
// get google+ button
|
427 |
-
function ssba_google($arrSettings, $urlCurrentPage, $strPageTitle, $booShowShareCount) {
|
428 |
-
|
429 |
-
// google share link
|
430 |
-
$htmlShareButtons = '<a data-site="" class="ssba_google_share" href="https://plus.google.com/share?url=' . $urlCurrentPage . '" ' . ($arrSettings['ssba_share_new_window'] == 'Y' ? ' target="_blank" ' : NULL) . ($arrSettings['ssba_rel_nofollow'] == 'Y' ? ' rel="nofollow" ' : NULL) . '>';
|
431 |
-
|
432 |
-
// if image set is not custom
|
433 |
-
if ($arrSettings['ssba_image_set'] != 'custom') {
|
434 |
-
|
435 |
-
// show ssba image
|
436 |
-
$htmlShareButtons .= '<img src="' . plugins_url() . '/simple-share-buttons-adder/buttons/' . $arrSettings['ssba_image_set'] . '/google.png" title="Google+" class="ssba ssba-img" alt="Share on Google+" />';
|
437 |
-
}
|
438 |
-
|
439 |
-
// if using custom images
|
440 |
-
else {
|
441 |
-
|
442 |
-
// show custom image
|
443 |
-
$htmlShareButtons .= '<img src="' . $arrSettings['ssba_custom_google'] . '" title="Share on Google+" class="ssba ssba-img" alt="Google+" />';
|
444 |
-
}
|
445 |
-
|
446 |
-
// close href
|
447 |
-
$htmlShareButtons .= '</a>';
|
448 |
-
|
449 |
-
// if show share count is set to Y
|
450 |
-
if ($arrSettings['ssba_show_share_count'] == 'Y' && $booShowShareCount == true) {
|
451 |
-
|
452 |
-
$htmlShareButtons .= '<span class="ssba_sharecount">' . getGoogleShareCount($urlCurrentPage) . '</span>';
|
453 |
-
}
|
454 |
-
|
455 |
-
// return share buttons
|
456 |
-
return $htmlShareButtons;
|
457 |
-
}
|
458 |
-
|
459 |
-
// get google share count
|
460 |
-
function getGoogleShareCount($urlCurrentPage) {
|
461 |
-
|
462 |
-
$args = array(
|
463 |
-
'method' => 'POST',
|
464 |
-
'headers' => array(
|
465 |
-
// setup content type to JSON
|
466 |
-
'Content-Type' => 'application/json'
|
467 |
-
),
|
468 |
-
// setup POST options to Google API
|
469 |
-
'body' => json_encode(array(
|
470 |
-
'method' => 'pos.plusones.get',
|
471 |
-
'id' => 'p',
|
472 |
-
'method' => 'pos.plusones.get',
|
473 |
-
'jsonrpc' => '2.0',
|
474 |
-
'key' => 'p',
|
475 |
-
'apiVersion' => 'v1',
|
476 |
-
'params' => array(
|
477 |
-
'nolog'=>true,
|
478 |
-
'id'=> $urlCurrentPage,
|
479 |
-
'source'=>'widget',
|
480 |
-
'userId'=>'@viewer',
|
481 |
-
'groupId'=>'@self'
|
482 |
-
)
|
483 |
-
)),
|
484 |
-
// disable checking SSL sertificates
|
485 |
-
'sslverify'=>false
|
486 |
-
);
|
487 |
-
|
488 |
-
// retrieves JSON with HTTP POST method for current URL
|
489 |
-
$json_string = wp_remote_post("https://clients6.google.com/rpc", $args);
|
490 |
-
|
491 |
-
if (is_wp_error($json_string)){
|
492 |
-
// return zero if response is error
|
493 |
-
return "0";
|
494 |
-
} else {
|
495 |
-
$json = json_decode($json_string['body'], true);
|
496 |
-
// return count of Google +1 for requsted URL
|
497 |
-
return ssba_format_number(intval($json['result']['metadata']['globalCounts']['count']));
|
498 |
-
}
|
499 |
-
}
|
500 |
-
|
501 |
-
// get diggit button
|
502 |
-
function ssba_diggit($arrSettings, $urlCurrentPage, $strPageTitle, $booShowShareCount) {
|
503 |
-
|
504 |
-
// diggit share link
|
505 |
-
$htmlShareButtons = '<a data-site="digg" class="ssba_diggit_share ssba_share_link" href="http://www.digg.com/submit?url=' . $urlCurrentPage . '" ' . ($arrSettings['ssba_share_new_window'] == 'Y' ? ' target="_blank" ' : NULL) . ($arrSettings['ssba_rel_nofollow'] == 'Y' ? ' rel="nofollow" ' : NULL) . '>';
|
506 |
-
|
507 |
-
// if image set is not custom
|
508 |
-
if ($arrSettings['ssba_image_set'] != 'custom') {
|
509 |
-
|
510 |
-
// show ssba image
|
511 |
-
$htmlShareButtons .= '<img src="' . plugins_url() . '/simple-share-buttons-adder/buttons/' . $arrSettings['ssba_image_set'] . '/diggit.png" title="Digg" class="ssba ssba-img" alt="Digg this" />';
|
512 |
-
}
|
513 |
-
|
514 |
-
// if using custom images
|
515 |
-
else {
|
516 |
-
|
517 |
-
// show custom image
|
518 |
-
$htmlShareButtons .= '<img src="' . $arrSettings['ssba_custom_diggit'] . '" title="Digg" class="ssba ssba-img" alt="Digg this" />';
|
519 |
-
}
|
520 |
-
|
521 |
-
// close href
|
522 |
-
$htmlShareButtons .= '</a>';
|
523 |
-
|
524 |
-
// return share buttons
|
525 |
-
return $htmlShareButtons;
|
526 |
-
}
|
527 |
-
|
528 |
-
// get reddit button
|
529 |
-
function ssba_reddit($arrSettings, $urlCurrentPage, $strPageTitle, $booShowShareCount) {
|
530 |
-
|
531 |
-
// reddit share link
|
532 |
-
$htmlShareButtons = '<a data-site="reddit" class="ssba_reddit_share" href="http://reddit.com/submit?url=' . $urlCurrentPage . '&title=' . $strPageTitle . '" ' . ($arrSettings['ssba_share_new_window'] == 'Y' ? ' target="_blank" ' : NULL) . ($arrSettings['ssba_rel_nofollow'] == 'Y' ? ' rel="nofollow" ' : NULL) . '>';
|
533 |
-
|
534 |
-
// if image set is not custom
|
535 |
-
if ($arrSettings['ssba_image_set'] != 'custom') {
|
536 |
-
|
537 |
-
// show ssba image
|
538 |
-
$htmlShareButtons .= '<img src="' . plugins_url() . '/simple-share-buttons-adder/buttons/' . $arrSettings['ssba_image_set'] . '/reddit.png" title="Reddit" class="ssba ssba-img" alt="Share on Reddit" />';
|
539 |
-
}
|
540 |
-
|
541 |
-
// if using custom images
|
542 |
-
else {
|
543 |
-
|
544 |
-
// show custom image
|
545 |
-
$htmlShareButtons .= '<img src="' . $arrSettings['ssba_custom_reddit'] . '" title="Reddit" class="ssba ssba-img" alt="Share on Reddit" />';
|
546 |
-
}
|
547 |
-
|
548 |
-
// close href
|
549 |
-
$htmlShareButtons .= '</a>';
|
550 |
-
|
551 |
-
// if show share count is set to Y
|
552 |
-
if ($arrSettings['ssba_show_share_count'] == 'Y' && $booShowShareCount == true) {
|
553 |
-
|
554 |
-
// get and display share count
|
555 |
-
$htmlShareButtons .= '<span class="ssba_sharecount">' . getRedditShareCount($urlCurrentPage) . '</span>';
|
556 |
-
}
|
557 |
-
|
558 |
-
// return share buttons
|
559 |
-
return $htmlShareButtons;
|
560 |
-
}
|
561 |
-
|
562 |
-
// get reddit share count
|
563 |
-
function getRedditShareCount($urlCurrentPage) {
|
564 |
-
// get results from reddit and return the number of shares
|
565 |
-
$htmlRedditShareDetails = wp_remote_get('http://www.reddit.com/api/info.json?url='.$urlCurrentPage, array('timeout' => 6));
|
566 |
-
|
567 |
-
// check there was an error
|
568 |
-
if (is_wp_error($htmlRedditShareDetails)) {
|
569 |
-
return 0;
|
570 |
-
}
|
571 |
-
|
572 |
-
// decode and get share count
|
573 |
-
$arrRedditResult = json_decode($htmlRedditShareDetails['body'], true);
|
574 |
-
$intRedditShareCount = (isset($arrRedditResult['data']['children']['0']['data']['score']) ? $arrRedditResult['data']['children']['0']['data']['score'] : 0);
|
575 |
-
return ($intRedditShareCount) ? ssba_format_number($intRedditShareCount) : '0';
|
576 |
-
}
|
577 |
-
|
578 |
-
// get linkedin button
|
579 |
-
function ssba_linkedin($arrSettings, $urlCurrentPage, $strPageTitle, $booShowShareCount) {
|
580 |
-
|
581 |
-
// linkedin share link
|
582 |
-
$htmlShareButtons = '<a data-site="linkedin" class="ssba_linkedin_share ssba_share_link" href="http://www.linkedin.com/shareArticle?mini=true&url=' . $urlCurrentPage . '" ' . ($arrSettings['ssba_share_new_window'] == 'Y' ? ' target="_blank" ' : NULL) . ($arrSettings['ssba_rel_nofollow'] == 'Y' ? ' rel="nofollow" ' : NULL) . '>';
|
583 |
-
|
584 |
-
// if image set is not custom
|
585 |
-
if ($arrSettings['ssba_image_set'] != 'custom') {
|
586 |
-
|
587 |
-
// show ssba image
|
588 |
-
$htmlShareButtons .= '<img src="' . plugins_url() . '/simple-share-buttons-adder/buttons/' . $arrSettings['ssba_image_set'] . '/linkedin.png" title="LinkedIn" class="ssba ssba-img" alt="Share on LinkedIn" />';
|
589 |
-
}
|
590 |
-
|
591 |
-
// if using custom images
|
592 |
-
else {
|
593 |
-
|
594 |
-
// show custom image
|
595 |
-
$htmlShareButtons .= '<img src="' . $arrSettings['ssba_custom_linkedin'] . '" alt="Share on LinkedIn" title="LinkedIn" class="ssba ssba-img" />';
|
596 |
-
}
|
597 |
-
|
598 |
-
// close href
|
599 |
-
$htmlShareButtons .= '</a>';
|
600 |
-
|
601 |
-
// if show share count is set to Y
|
602 |
-
if ($arrSettings['ssba_show_share_count'] == 'Y' && $booShowShareCount == true) {
|
603 |
-
|
604 |
-
// get and display share count
|
605 |
-
$htmlShareButtons .= '<span class="ssba_sharecount">' . getLinkedinShareCount($urlCurrentPage) . '</span>';
|
606 |
-
}
|
607 |
-
|
608 |
-
// return share buttons
|
609 |
-
return $htmlShareButtons;
|
610 |
-
}
|
611 |
-
|
612 |
-
// get linkedin share count
|
613 |
-
function getLinkedinShareCount($urlCurrentPage) {
|
614 |
-
// get results from linkedin and return the number of shares
|
615 |
-
$htmlLinkedinShareDetails = wp_remote_get('http://www.linkedin.com/countserv/count/share?url='.$urlCurrentPage, array('timeout' => 6));
|
616 |
-
|
617 |
-
// if there was an error
|
618 |
-
if (is_wp_error($htmlLinkedinShareDetails)) {
|
619 |
-
return 0;
|
620 |
-
}
|
621 |
-
|
622 |
-
// extract/decode share count
|
623 |
-
$htmlLinkedinShareDetails = str_replace('IN.Tags.Share.handleCount(', '', $htmlLinkedinShareDetails);
|
624 |
-
$htmlLinkedinShareDetails = str_replace(');', '', $htmlLinkedinShareDetails);
|
625 |
-
$arrLinkedinShareDetails = json_decode($htmlLinkedinShareDetails['body'], true);
|
626 |
-
$intLinkedinShareCount = $arrLinkedinShareDetails['count'];
|
627 |
-
return ($intLinkedinShareCount) ? ssba_format_number($intLinkedinShareCount) : '0';
|
628 |
-
}
|
629 |
-
|
630 |
-
// get pinterest button
|
631 |
-
function ssba_pinterest($arrSettings, $urlCurrentPage, $strPageTitle, $booShowShareCount) {
|
632 |
-
|
633 |
-
// if using featured images for Pinteres
|
634 |
-
if($arrSettings['ssba_pinterest_featured'] == 'Y')
|
635 |
-
{
|
636 |
-
// if this post has a featured image
|
637 |
-
if(has_post_thumbnail($arrSettings['post_id']))
|
638 |
-
{
|
639 |
-
// get the featured image
|
640 |
-
$urlPostThumb = wp_get_attachment_image_src(get_post_thumbnail_id($arrSettings['post_id']), 'full');
|
641 |
-
$urlPostThumb = $urlPostThumb[0];
|
642 |
-
}
|
643 |
-
// no featured image set
|
644 |
-
else
|
645 |
-
{
|
646 |
-
// use the pinterest default
|
647 |
-
$urlPostThumb = $arrSettings['ssba_default_pinterest'];
|
648 |
-
}
|
649 |
-
|
650 |
-
// pinterest share link
|
651 |
-
$htmlShareButtons = '<a data-site="pinterest-featured" href="http://pinterest.com/pin/create/bookmarklet/?is_video=false&url='.$urlCurrentPage.'&media='.$urlPostThumb.'&description='.$strPageTitle.'" class="ssba_pinterest_share ssba_share_link" '.($arrSettings['ssba_share_new_window'] == 'Y' ? ' target="_blank" ' : NULL) . ($arrSettings['ssba_rel_nofollow'] == 'Y' ? ' rel="nofollow" ' : NULL).'>';
|
652 |
-
}
|
653 |
-
// not using featured images for pinterest
|
654 |
-
else
|
655 |
-
{
|
656 |
-
// use the choice of pinnable images approach
|
657 |
-
$htmlShareButtons = "<a data-site='pinterest' class='ssba_pinterest_share' href='javascript:void((function()%7Bvar%20e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','//assets.pinterest.com/js/pinmarklet.js?r='+Math.random()*99999999);document.body.appendChild(e)%7D)());'>";
|
658 |
-
}
|
659 |
-
|
660 |
-
// if image set is not custom
|
661 |
-
if ($arrSettings['ssba_image_set'] != 'custom') {
|
662 |
-
|
663 |
-
// show ssba image
|
664 |
-
$htmlShareButtons .= '<img src="' . plugins_url() . '/simple-share-buttons-adder/buttons/' . $arrSettings['ssba_image_set'] . '/pinterest.png" title="Pinterest" class="ssba ssba-img" alt="Pin on Pinterest" />';
|
665 |
-
}
|
666 |
-
|
667 |
-
// if using custom images
|
668 |
-
else {
|
669 |
-
|
670 |
-
// show custom image
|
671 |
-
$htmlShareButtons .= '<img title="Pinterest" class="ssba ssba-img" src="' . $arrSettings['ssba_custom_pinterest'] . '" alt="Pin on Pinterest" />';
|
672 |
-
}
|
673 |
-
|
674 |
-
// close href
|
675 |
-
$htmlShareButtons .= '</a>';
|
676 |
-
|
677 |
-
// if show share count is set to Y
|
678 |
-
if ($arrSettings['ssba_show_share_count'] == 'Y' && $booShowShareCount == true) {
|
679 |
-
|
680 |
-
$htmlShareButtons .= '<span class="ssba_sharecount">' . getPinterestShareCount($urlCurrentPage) . '</span>';
|
681 |
-
}
|
682 |
-
|
683 |
-
// return share buttons
|
684 |
-
return $htmlShareButtons;
|
685 |
-
}
|
686 |
-
|
687 |
-
// get pinterest share count
|
688 |
-
function getPinterestShareCount($urlCurrentPage) {
|
689 |
-
|
690 |
-
// get results from pinterest
|
691 |
-
$htmlPinterestShareDetails = wp_remote_get('http://api.pinterest.com/v1/urls/count.json?url='.$urlCurrentPage, array('timeout' => 6));
|
692 |
-
|
693 |
-
// check there was an error
|
694 |
-
if (is_wp_error($htmlPinterestShareDetails)) {
|
695 |
-
return 0;
|
696 |
-
}
|
697 |
-
|
698 |
-
// decode data
|
699 |
-
$htmlPinterestShareDetails = str_replace('receiveCount(', '', $htmlPinterestShareDetails);
|
700 |
-
$htmlPinterestShareDetails = str_replace(')', '', $htmlPinterestShareDetails);
|
701 |
-
$arrPinterestShareDetails = json_decode($htmlPinterestShareDetails['body'], true);
|
702 |
-
$intPinterestShareCount = $arrPinterestShareDetails['count'];
|
703 |
-
return ($intPinterestShareCount) ? ssba_format_number($intPinterestShareCount) : '0';
|
704 |
-
}
|
705 |
-
|
706 |
-
// get stumbleupon button
|
707 |
-
function ssba_stumbleupon($arrSettings, $urlCurrentPage, $strPageTitle, $booShowShareCount) {
|
708 |
-
|
709 |
-
$url = 'http://www.stumbleupon.com/submit?url=' . $urlCurrentPage . '&title=' . $strPageTitle;
|
710 |
-
|
711 |
-
// stumbleupon share link
|
712 |
-
$htmlShareButtons = '<a data-site="stumbleupon" class="ssba_stumbleupon_share ssba_share_link" href="' . esc_url( $url ) . '" ' . ($arrSettings['ssba_share_new_window'] == 'Y' ? ' target="_blank" ' : NULL) . ($arrSettings['ssba_rel_nofollow'] == 'Y' ? ' rel="nofollow" ' : NULL) . '>';
|
713 |
-
|
714 |
-
// if image set is not custom
|
715 |
-
if ($arrSettings['ssba_image_set'] != 'custom') {
|
716 |
-
|
717 |
-
// show ssba image
|
718 |
-
$htmlShareButtons .= '<img src="' . plugins_url() . '/simple-share-buttons-adder/buttons/' . $arrSettings['ssba_image_set'] . '/stumbleupon.png" title="StumbleUpon" class="ssba ssba-img" alt="Share on StumbleUpon" />';
|
719 |
-
}
|
720 |
-
|
721 |
-
// if using custom images
|
722 |
-
else {
|
723 |
-
|
724 |
-
// show custom image
|
725 |
-
$htmlShareButtons .= '<img src="' . $arrSettings['ssba_custom_stumbleupon'] . '" alt="Share on StumbleUpon" title="StumbleUpon" class="ssba ssba-img" />';
|
726 |
-
}
|
727 |
-
|
728 |
-
// close href
|
729 |
-
$htmlShareButtons .= '</a>';
|
730 |
-
|
731 |
-
// if show share count is set to Y
|
732 |
-
if ($arrSettings['ssba_show_share_count'] == 'Y' && $booShowShareCount == true) {
|
733 |
-
|
734 |
-
$htmlShareButtons .= '<span class="ssba_sharecount">' . getStumbleUponShareCount($urlCurrentPage) . '</span>';
|
735 |
-
}
|
736 |
-
|
737 |
-
// return share buttons
|
738 |
-
return $htmlShareButtons;
|
739 |
-
}
|
740 |
-
|
741 |
-
// get stumbleupon share count
|
742 |
-
function getStumbleUponShareCount($urlCurrentPage) {
|
743 |
-
|
744 |
-
// get results from stumbleupon and return the number of shares
|
745 |
-
$htmlStumbleUponShareDetails = wp_remote_get('http://www.stumbleupon.com/services/1.01/badge.getinfo?url='.$urlCurrentPage, array('timeout' => 6));
|
746 |
-
|
747 |
-
// check there was an error
|
748 |
-
if (is_wp_error($htmlStumbleUponShareDetails)) {
|
749 |
-
return 0;
|
750 |
-
}
|
751 |
-
|
752 |
-
// decode data
|
753 |
-
$arrStumbleUponResult = json_decode($htmlStumbleUponShareDetails['body'], true);
|
754 |
-
$intStumbleUponShareCount = (isset($arrStumbleUponResult['result']['views']) ? $arrStumbleUponResult['result']['views'] : 0);
|
755 |
-
return ($intStumbleUponShareCount) ? ssba_format_number($intStumbleUponShareCount) : '0';
|
756 |
-
}
|
757 |
-
|
758 |
-
// get email button
|
759 |
-
function ssba_email($arrSettings, $urlCurrentPage, $strPageTitle, $booShowShareCount) {
|
760 |
-
|
761 |
-
// replace ampersands as needed for email link
|
762 |
-
$emailTitle = str_replace('&', '%26', $strPageTitle);
|
763 |
-
|
764 |
-
$url = 'mailto:?subject=' . $emailTitle . '&body=' . $arrSettings['ssba_email_message'] . ' ' . $urlCurrentPage;
|
765 |
-
|
766 |
-
// email share link
|
767 |
-
$htmlShareButtons = '<a data-site="email" class="ssba_email_share" href="' . esc_url( $url ) . '">';
|
768 |
-
|
769 |
-
// if image set is not custom
|
770 |
-
if ($arrSettings['ssba_image_set'] != 'custom') {
|
771 |
-
|
772 |
-
// show ssba image
|
773 |
-
$htmlShareButtons .= '<img src="' . plugins_url() . '/simple-share-buttons-adder/buttons/' . $arrSettings['ssba_image_set'] . '/email.png" title="Email" class="ssba ssba-img" alt="Email this to someone" />';
|
774 |
-
}
|
775 |
-
|
776 |
-
// if using custom images
|
777 |
-
else {
|
778 |
-
|
779 |
-
// show custom image
|
780 |
-
$htmlShareButtons .= '<img src="' . $arrSettings['ssba_custom_email'] . '" title="Email" class="ssba ssba-img" alt="Email to someone" />';
|
781 |
-
}
|
782 |
-
|
783 |
-
// close href
|
784 |
-
$htmlShareButtons .= '</a>';
|
785 |
-
|
786 |
-
// return share buttons
|
787 |
-
return $htmlShareButtons;
|
788 |
-
}
|
789 |
-
|
790 |
-
// get flattr button
|
791 |
-
function ssba_flattr($arrSettings, $urlCurrentPage, $strPageTitle, $booShowShareCount) {
|
792 |
-
|
793 |
-
// check for dedicated flattr URL
|
794 |
-
if ($arrSettings['ssba_flattr_url'] != '') {
|
795 |
-
|
796 |
-
// updatae url that will be set to specified URL
|
797 |
-
$urlCurrentPage = $arrSettings['ssba_flattr_url'];
|
798 |
-
}
|
799 |
-
|
800 |
-
// flattr share link
|
801 |
-
$htmlShareButtons = '<a data-site="flattr" class="ssba_flattr_share" href="https://flattr.com/submit/auto?user_id=' . $arrSettings['ssba_flattr_user_id'] . '&title=' . $strPageTitle . '&url=' . $urlCurrentPage . '" ' . ($arrSettings['ssba_share_new_window'] == 'Y' ? ' target="_blank" ' : NULL) . ($arrSettings['ssba_rel_nofollow'] == 'Y' ? ' rel="nofollow" ' : NULL) . '>';
|
802 |
-
|
803 |
-
// if image set is not custom
|
804 |
-
if ($arrSettings['ssba_image_set'] != 'custom') {
|
805 |
-
|
806 |
-
// show ssba image
|
807 |
-
$htmlShareButtons .= '<img src="' . plugins_url() . '/simple-share-buttons-adder/buttons/' . $arrSettings['ssba_image_set'] . '/flattr.png" title="Flattr" class="ssba ssba-img" alt="Flattr the author" />';
|
808 |
-
}
|
809 |
-
|
810 |
-
// if using custom images
|
811 |
-
else {
|
812 |
-
|
813 |
-
// show custom image
|
814 |
-
$htmlShareButtons .= '<img src="' . $arrSettings['ssba_custom_flattr'] . '" title="Flattr" class="ssba ssba-img" alt="Flattr the author" />';
|
815 |
-
}
|
816 |
-
|
817 |
-
// close href
|
818 |
-
$htmlShareButtons .= '</a>';
|
819 |
-
|
820 |
-
// return share buttons
|
821 |
-
return $htmlShareButtons;
|
822 |
-
}
|
823 |
-
|
824 |
-
// get buffer button
|
825 |
-
function ssba_buffer($arrSettings, $urlCurrentPage, $strPageTitle, $booShowShareCount) {
|
826 |
-
|
827 |
-
// buffer share link
|
828 |
-
$htmlShareButtons = '<a data-site="buffer" class="ssba_buffer_share" href="https://bufferapp.com/add?url=' . $urlCurrentPage . '&text=' . ($arrSettings['ssba_buffer_text'] != '' ? $arrSettings['ssba_buffer_text'] : NULL) . ' ' . $strPageTitle . '" ' . ($arrSettings['ssba_share_new_window'] == 'Y' ? ' target="_blank" ' : NULL) . ($arrSettings['ssba_rel_nofollow'] == 'Y' ? ' rel="nofollow" ' : NULL) . '>';
|
829 |
-
|
830 |
-
// if image set is not custom
|
831 |
-
if ($arrSettings['ssba_image_set'] != 'custom') {
|
832 |
-
|
833 |
-
// show ssba image
|
834 |
-
$htmlShareButtons .= '<img src="' . plugins_url() . '/simple-share-buttons-adder/buttons/' . $arrSettings['ssba_image_set'] . '/buffer.png" title="Buffer" class="ssba ssba-img" alt="Buffer this page" />';
|
835 |
-
}
|
836 |
-
|
837 |
-
// if using custom images
|
838 |
-
else {
|
839 |
-
|
840 |
-
// show custom image
|
841 |
-
$htmlShareButtons .= '<img src="' . $arrSettings['ssba_custom_buffer'] . '" title="Buffer" class="ssba ssba-img" alt="Buffer this page" />';
|
842 |
-
}
|
843 |
-
|
844 |
-
// close href
|
845 |
-
$htmlShareButtons .= '</a>';
|
846 |
-
|
847 |
-
// return share buttons
|
848 |
-
return $htmlShareButtons;
|
849 |
-
}
|
850 |
-
|
851 |
-
// get tumblr button
|
852 |
-
function ssba_tumblr($arrSettings, $urlCurrentPage, $strPageTitle, $booShowShareCount) {
|
853 |
-
// tumblr share link
|
854 |
-
$htmlShareButtons = '<a data-site="tumblr" class="ssba_tumblr_share" href="http://www.tumblr.com/share/link?url=' . $urlCurrentPage . '" ' . ($arrSettings['ssba_share_new_window'] == 'Y' ? ' target="_blank" ' : NULL) . ($arrSettings['ssba_rel_nofollow'] == 'Y' ? ' rel="nofollow" ' : NULL) . '>';
|
855 |
-
|
856 |
-
// if image set is not custom
|
857 |
-
if ($arrSettings['ssba_image_set'] != 'custom') {
|
858 |
-
|
859 |
-
// show ssba image
|
860 |
-
$htmlShareButtons .= '<img src="' . plugins_url() . '/simple-share-buttons-adder/buttons/' . $arrSettings['ssba_image_set'] . '/tumblr.png" title="tumblr" class="ssba ssba-img" alt="Share on Tumblr" />';
|
861 |
-
}
|
862 |
-
|
863 |
-
// if using custom images
|
864 |
-
else {
|
865 |
-
|
866 |
-
// show custom image
|
867 |
-
$htmlShareButtons .= '<img src="' . $arrSettings['ssba_custom_tumblr'] . '" title="tumblr" class="ssba ssba-img" alt="share on Tumblr" />';
|
868 |
-
}
|
869 |
-
|
870 |
-
// close href
|
871 |
-
$htmlShareButtons .= '</a>';
|
872 |
-
|
873 |
-
// if show share count is set to Y
|
874 |
-
if ($arrSettings['ssba_show_share_count'] == 'Y' && $booShowShareCount == true) {
|
875 |
-
|
876 |
-
$htmlShareButtons .= '<span class="ssba_sharecount">' . getTumblrShareCount($urlCurrentPage) . '</span>';
|
877 |
-
}
|
878 |
-
|
879 |
-
// return share buttons
|
880 |
-
return $htmlShareButtons;
|
881 |
-
}
|
882 |
-
|
883 |
-
// get tumblr share count
|
884 |
-
function getTumblrShareCount($urlCurrentPage)
|
885 |
-
{
|
886 |
-
// get results from tumblr and return the number of shares
|
887 |
-
$result = wp_remote_get('http://api.tumblr.com/v2/share/stats?url=' . $urlCurrentPage, array('timeout' => 6));
|
888 |
-
|
889 |
-
// check there was an error
|
890 |
-
if (is_wp_error($result)) {
|
891 |
-
// return
|
892 |
-
return 0;
|
893 |
-
}
|
894 |
-
|
895 |
-
// decode data
|
896 |
-
$array = json_decode($result['body'], true);
|
897 |
-
$count = (isset($array['response']['note_count']) ? $array['response']['note_count'] : 0);
|
898 |
-
|
899 |
-
// return
|
900 |
-
return ($count) ? $count : '0';
|
901 |
-
}
|
902 |
-
|
903 |
-
// get print button
|
904 |
-
function ssba_print($arrSettings, $urlCurrentPage, $strPageTitle, $booShowShareCount) {
|
905 |
-
|
906 |
-
// linkedin share link
|
907 |
-
$htmlShareButtons = '<a data-site="print" class="ssba_print ssba_share_link" href="#" onclick="window.print()">';
|
908 |
-
|
909 |
-
// if image set is not custom
|
910 |
-
if ($arrSettings['ssba_image_set'] != 'custom') {
|
911 |
-
|
912 |
-
// show ssba image
|
913 |
-
$htmlShareButtons .= '<img src="' . plugins_url() . '/simple-share-buttons-adder/buttons/' . $arrSettings['ssba_image_set'] . '/print.png" title="Print" class="ssba ssba-img" alt="Print this page" />';
|
914 |
-
}
|
915 |
-
|
916 |
-
// if using custom images
|
917 |
-
else {
|
918 |
-
|
919 |
-
// show custom image
|
920 |
-
$htmlShareButtons .= '<img src="' . $arrSettings['ssba_custom_print'] . '" title="Print" class="ssba ssba-img" alt="Print this page" />';
|
921 |
-
}
|
922 |
-
|
923 |
-
// close href
|
924 |
-
$htmlShareButtons .= '</a>';
|
925 |
-
|
926 |
-
// return share buttons
|
927 |
-
return $htmlShareButtons;
|
928 |
-
}
|
929 |
-
|
930 |
-
// get vk button
|
931 |
-
function ssba_vk($arrSettings, $urlCurrentPage, $strPageTitle, $booShowShareCount) {
|
932 |
-
|
933 |
-
// vk share link
|
934 |
-
$htmlShareButtons = '<a data-site="vk" class="ssba_vk_share ssba_share_link" href="http://vkontakte.ru/share.php?url=' . $urlCurrentPage . '" ' . ($arrSettings['ssba_share_new_window'] == 'Y' ? ' target="_blank" ' : NULL) . ($arrSettings['ssba_rel_nofollow'] == 'Y' ? ' rel="nofollow" ' : NULL) . '>';
|
935 |
-
|
936 |
-
// if image set is not custom
|
937 |
-
if ($arrSettings['ssba_image_set'] != 'custom') {
|
938 |
-
|
939 |
-
// show ssba image
|
940 |
-
$htmlShareButtons .= '<img src="' . plugins_url() . '/simple-share-buttons-adder/buttons/' . $arrSettings['ssba_image_set'] . '/vk.png" title="VK" class="ssba ssba-img" alt="Share on VK" />';
|
941 |
-
}
|
942 |
-
|
943 |
-
// if using custom images
|
944 |
-
else {
|
945 |
-
|
946 |
-
// show custom image
|
947 |
-
$htmlShareButtons .= '<img src="' . $arrSettings['ssba_custom_vk'] . '" title="VK" class="ssba ssba-img" alt="Share on VK" />';
|
948 |
-
}
|
949 |
-
|
950 |
-
// close href
|
951 |
-
$htmlShareButtons .= '</a>';
|
952 |
-
|
953 |
-
// return share buttons
|
954 |
-
return $htmlShareButtons;
|
955 |
-
}
|
956 |
-
|
957 |
-
// get yummly button
|
958 |
-
function ssba_yummly($arrSettings, $urlCurrentPage, $strPageTitle, $booShowShareCount) {
|
959 |
-
|
960 |
-
// yummly share link
|
961 |
-
$htmlShareButtons = '<a data-site="yummly" class="ssba_yummly_share ssba_share_link" href="http://www.yummly.com/urb/verify?url=' . $urlCurrentPage . '&title='.urlencode(html_entity_decode($strPageTitle)).'" ' . ($arrSettings['ssba_share_new_window'] == 'Y' ? ' target="_blank" ' : NULL) . ($arrSettings['ssba_rel_nofollow'] == 'Y' ? ' rel="nofollow" ' : NULL) . '>';
|
962 |
-
|
963 |
-
// if image set is not custom
|
964 |
-
if ($arrSettings['ssba_image_set'] != 'custom') {
|
965 |
-
|
966 |
-
// show ssba image
|
967 |
-
$htmlShareButtons .= '<img src="' . plugins_url() . '/simple-share-buttons-adder/buttons/' . $arrSettings['ssba_image_set'] . '/yummly.png" title="Yummly" class="ssba ssba-img" alt="Share on Yummly" />';
|
968 |
-
}
|
969 |
-
|
970 |
-
// if using custom images
|
971 |
-
else {
|
972 |
-
|
973 |
-
// show custom image
|
974 |
-
$htmlShareButtons .= '<img src="' . $arrSettings['ssba_custom_yummly'] . '" title="Yummly" class="ssba ssba-img" alt="Share on Yummly" />';
|
975 |
-
}
|
976 |
-
|
977 |
-
// close href
|
978 |
-
$htmlShareButtons .= '</a>';
|
979 |
-
|
980 |
-
// if show share count is set to Y
|
981 |
-
if ($arrSettings['ssba_show_share_count'] == 'Y' && $booShowShareCount == true) {
|
982 |
-
|
983 |
-
$htmlShareButtons .= '<span class="ssba_sharecount">' . getYummlyShareCount($urlCurrentPage) . '</span>';
|
984 |
-
}
|
985 |
-
|
986 |
-
// return share buttons
|
987 |
-
return $htmlShareButtons;
|
988 |
-
}
|
989 |
-
|
990 |
-
// get yummly share count
|
991 |
-
function getYummlyShareCount($urlCurrentPage)
|
992 |
-
{
|
993 |
-
// get results from yummly and return the number of shares
|
994 |
-
$result = wp_remote_get('http://www.yummly.com/services/yum-count?url=' . $urlCurrentPage, array('timeout' => 6));
|
995 |
-
|
996 |
-
// check there was an error
|
997 |
-
if (is_wp_error($result)) {
|
998 |
-
// return
|
999 |
-
return 0;
|
1000 |
-
}
|
1001 |
-
|
1002 |
-
// decode data
|
1003 |
-
$array = json_decode($result['body'], true);
|
1004 |
-
$count = (isset($array['count']) ? $array['count'] : 0);
|
1005 |
-
|
1006 |
-
// return
|
1007 |
-
return ($count) ? $count : '0';
|
1008 |
-
}
|
1009 |
-
|
1010 |
-
// register shortcode [ssba] to show [ssba_hide]
|
1011 |
-
add_shortcode( 'ssba', 'ssba_buttons' );
|
1012 |
-
add_shortcode( 'ssba_hide', 'ssba_hide' );
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|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
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
inc/ssba_database.php
DELETED
@@ -1,383 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
defined('ABSPATH') or die('No direct access permitted');
|
3 |
-
|
4 |
-
// activate ssba function
|
5 |
-
function ssba_activate() {
|
6 |
-
|
7 |
-
// likely a reactivation, return doing nothing
|
8 |
-
if (get_option('ssba_version') !== false) {
|
9 |
-
return;
|
10 |
-
}
|
11 |
-
|
12 |
-
// array ready with defaults
|
13 |
-
$ssba_settings = array(
|
14 |
-
'ssba_image_set' => 'somacro',
|
15 |
-
'ssba_size' => '35',
|
16 |
-
'ssba_pages' => '',
|
17 |
-
'ssba_posts' => '',
|
18 |
-
'ssba_cats_archs' => '',
|
19 |
-
'ssba_homepage' => '',
|
20 |
-
'ssba_excerpts' => '',
|
21 |
-
'ssba_align' => 'left',
|
22 |
-
'ssba_padding' => '6',
|
23 |
-
'ssba_before_or_after' => 'after',
|
24 |
-
'ssba_additional_css' => '',
|
25 |
-
'ssba_custom_styles' => '',
|
26 |
-
'ssba_custom_styles_enabled' => '',
|
27 |
-
'ssba_email_message' => '',
|
28 |
-
'ssba_twitter_text' => '',
|
29 |
-
'ssba_buffer_text' => '',
|
30 |
-
'ssba_flattr_user_id' => '',
|
31 |
-
'ssba_flattr_url' => '',
|
32 |
-
'ssba_share_new_window' => 'Y',
|
33 |
-
'ssba_link_to_ssb' => 'N',
|
34 |
-
'ssba_show_share_count' => '',
|
35 |
-
'ssba_share_count_style' => 'default',
|
36 |
-
'ssba_share_count_css' => '',
|
37 |
-
'ssba_share_count_once' => 'Y',
|
38 |
-
'ssba_widget_text' => '',
|
39 |
-
'ssba_rel_nofollow' => '',
|
40 |
-
'ssba_default_pinterest' => '',
|
41 |
-
'ssba_pinterest_featured' => '',
|
42 |
-
'ssba_content_priority' => '10',
|
43 |
-
|
44 |
-
// share container
|
45 |
-
'ssba_div_padding' => '',
|
46 |
-
'ssba_div_rounded_corners' => '',
|
47 |
-
'ssba_border_width' => '',
|
48 |
-
'ssba_div_border' => '',
|
49 |
-
'ssba_div_background' => '',
|
50 |
-
|
51 |
-
// share text
|
52 |
-
'ssba_share_text' => "It's only fair to share...",
|
53 |
-
'ssba_text_placement' => 'left',
|
54 |
-
'ssba_font_family' => 'Indie Flower',
|
55 |
-
'ssba_font_color' => '',
|
56 |
-
'ssba_font_size' => '20',
|
57 |
-
'ssba_font_weight' => '',
|
58 |
-
|
59 |
-
// include
|
60 |
-
'ssba_selected_buttons' => 'facebook,google,twitter,linkedin',
|
61 |
-
|
62 |
-
// custom images
|
63 |
-
'ssba_custom_email' => '',
|
64 |
-
'ssba_custom_google' => '',
|
65 |
-
'ssba_custom_facebook' => '',
|
66 |
-
'ssba_custom_twitter' => '',
|
67 |
-
'ssba_custom_diggit' => '',
|
68 |
-
'ssba_custom_linkedin' => '',
|
69 |
-
'ssba_custom_reddit' => '',
|
70 |
-
'ssba_custom_stumbleupon' => '',
|
71 |
-
'ssba_custom_pinterest' => '',
|
72 |
-
'ssba_custom_buffer' => '',
|
73 |
-
'ssba_custom_flattr' => '',
|
74 |
-
'ssba_custom_tumblr' => '',
|
75 |
-
'ssba_custom_print' => '',
|
76 |
-
'ssba_custom_vk' => '',
|
77 |
-
'ssba_custom_yummly' => '',
|
78 |
-
|
79 |
-
// sharedcount
|
80 |
-
'sharedcount_enabled' => '',
|
81 |
-
'sharedcount_api_key' => '',
|
82 |
-
'sharedcount_plan' => 'free',
|
83 |
-
|
84 |
-
// newsharecounts
|
85 |
-
'twitter_newsharecounts' => '',
|
86 |
-
|
87 |
-
// new with sharethis
|
88 |
-
'facebook_insights' => '',
|
89 |
-
'facebook_app_id' => '',
|
90 |
-
'accepted_sharethis_terms' => 'Y',
|
91 |
-
);
|
92 |
-
|
93 |
-
// json encode
|
94 |
-
$jsonSettings = json_encode($ssba_settings);
|
95 |
-
|
96 |
-
// insert default options for ssba
|
97 |
-
add_option('ssba_settings', $jsonSettings);
|
98 |
-
|
99 |
-
// button helper array
|
100 |
-
ssba_button_helper_array();
|
101 |
-
|
102 |
-
// ssba version
|
103 |
-
add_option('ssba_version', SSBA_VERSION);
|
104 |
-
}
|
105 |
-
|
106 |
-
// uninstall ssba
|
107 |
-
function ssba_uninstall() {
|
108 |
-
|
109 |
-
//if uninstall not called from WordPress exit
|
110 |
-
if (defined('WP_UNINSTALL_PLUGIN')) {
|
111 |
-
exit();
|
112 |
-
}
|
113 |
-
|
114 |
-
// delete options
|
115 |
-
delete_option('ssba_settings');
|
116 |
-
delete_option('ssba_version');
|
117 |
-
}
|
118 |
-
|
119 |
-
// the upgrade function
|
120 |
-
function upgrade_ssba($arrSettings, $version) {
|
121 |
-
|
122 |
-
// if version is less than 6.0.5
|
123 |
-
if ($version < '6.0.5') {
|
124 |
-
// ensure excerpts are set
|
125 |
-
add_option('ssba_excerpts', '');
|
126 |
-
|
127 |
-
// add print button
|
128 |
-
add_option('ssba_custom_print', '');
|
129 |
-
|
130 |
-
// new for 3.8
|
131 |
-
add_option('ssba_widget_text', '');
|
132 |
-
add_option('ssba_rel_nofollow', '');
|
133 |
-
|
134 |
-
// added pre 4.5, added in 4.6 to fix notice
|
135 |
-
add_option('ssba_rel_nofollow', '');
|
136 |
-
|
137 |
-
// added in 5.0
|
138 |
-
add_option('ssba_custom_vk', '');
|
139 |
-
add_option('ssba_custom_yummly', '');
|
140 |
-
|
141 |
-
// added in 5.2
|
142 |
-
add_option('ssba_default_pinterest', '');
|
143 |
-
|
144 |
-
// added in 5.5
|
145 |
-
add_option('ssba_pinterest_featured', '');
|
146 |
-
|
147 |
-
// added in 5.7
|
148 |
-
// additional CSS field
|
149 |
-
add_option('ssba_additional_css', '');
|
150 |
-
|
151 |
-
// empty custom CSS var and option
|
152 |
-
$customCSS = '';
|
153 |
-
add_option('ssba_custom_styles_enabled', '');
|
154 |
-
|
155 |
-
// if some custom styles are in place
|
156 |
-
if ($arrSettings['ssba_custom_styles'] != '') {
|
157 |
-
$customCSS.= $arrSettings['ssba_custom_styles'];
|
158 |
-
update_option('ssba_custom_styles_enabled', 'Y');
|
159 |
-
}
|
160 |
-
|
161 |
-
// if some custom share count styles are in place
|
162 |
-
if ($arrSettings['ssba_share_count_css'] != '') {
|
163 |
-
$customCSS.= $arrSettings['ssba_share_count_css'];
|
164 |
-
update_option('ssba_custom_styles_enabled', 'Y');
|
165 |
-
}
|
166 |
-
|
167 |
-
// update custom CSS option
|
168 |
-
update_option('ssba_custom_styles', $customCSS);
|
169 |
-
|
170 |
-
// content priority
|
171 |
-
add_option('ssba_content_priority', '10');
|
172 |
-
}
|
173 |
-
|
174 |
-
// if version is less than 6.0.6
|
175 |
-
if ($version < '6.0.6') {
|
176 |
-
// get old settings
|
177 |
-
$oldSettings = get_old_ssba_settings();
|
178 |
-
|
179 |
-
// json encode old settings
|
180 |
-
$jsonSettings = json_encode($oldSettings);
|
181 |
-
|
182 |
-
// insert all options for ssba as json
|
183 |
-
add_option('ssba_settings', $jsonSettings);
|
184 |
-
|
185 |
-
// delete old options
|
186 |
-
ssba_delete_old_options();
|
187 |
-
}
|
188 |
-
|
189 |
-
// if version is less than 6.1.3
|
190 |
-
if ($version < '6.1.3') {
|
191 |
-
// new settings
|
192 |
-
$new = array(
|
193 |
-
'sharedcount_enabled' => '',
|
194 |
-
'sharedcount_api_key' => '',
|
195 |
-
'sharedcount_plan' => 'free',
|
196 |
-
);
|
197 |
-
|
198 |
-
// update settings
|
199 |
-
ssba_update_options($new);
|
200 |
-
}
|
201 |
-
|
202 |
-
// if version is less than 6.1.5
|
203 |
-
if ($version < '6.1.5') {
|
204 |
-
// new settings
|
205 |
-
$new = array(
|
206 |
-
'twitter_newsharecounts' => '',
|
207 |
-
);
|
208 |
-
|
209 |
-
// update settings
|
210 |
-
ssba_update_options($new);
|
211 |
-
}
|
212 |
-
|
213 |
-
// if version is less than 6.2.0
|
214 |
-
if ($version < '6.2.0') {
|
215 |
-
// new settings
|
216 |
-
$new = array(
|
217 |
-
'facebook_insights' => '',
|
218 |
-
'facebook_app_id' => '',
|
219 |
-
'accepted_sharethis_terms' => '',
|
220 |
-
);
|
221 |
-
|
222 |
-
// update settings
|
223 |
-
ssba_update_options($new);
|
224 |
-
}
|
225 |
-
|
226 |
-
// button helper array
|
227 |
-
ssba_button_helper_array();
|
228 |
-
|
229 |
-
// Show the ST terms notice after upgrades if the user hasn't agreed.
|
230 |
-
ssba_update_options( array( 'hide_sharethis_terms' => false ) );
|
231 |
-
|
232 |
-
// update version number
|
233 |
-
update_option('ssba_version', SSBA_VERSION);
|
234 |
-
}
|
235 |
-
|
236 |
-
// button helper option
|
237 |
-
function ssba_button_helper_array()
|
238 |
-
{
|
239 |
-
// helper array for ssbp
|
240 |
-
update_option('ssba_buttons', json_encode(array(
|
241 |
-
'buffer' => array(
|
242 |
-
'full_name' => 'Buffer'
|
243 |
-
),
|
244 |
-
'diggit' => array(
|
245 |
-
'full_name' => 'Diggit'
|
246 |
-
),
|
247 |
-
'email' => array(
|
248 |
-
'full_name' => 'Email'
|
249 |
-
),
|
250 |
-
'facebook' => array(
|
251 |
-
'full_name' => 'Facebook'
|
252 |
-
),
|
253 |
-
'facebook_save' => array(
|
254 |
-
'full_name' => 'Facebook Save'
|
255 |
-
),
|
256 |
-
'flattr' => array(
|
257 |
-
'full_name' => 'Flattr'
|
258 |
-
),
|
259 |
-
'google' => array(
|
260 |
-
'full_name' => 'Google+'
|
261 |
-
),
|
262 |
-
'linkedin' => array(
|
263 |
-
'full_name' => 'LinkedIn'
|
264 |
-
),
|
265 |
-
'pinterest' => array(
|
266 |
-
'full_name' => 'Pinterest'
|
267 |
-
),
|
268 |
-
'print' => array(
|
269 |
-
'full_name' => 'Print'
|
270 |
-
),
|
271 |
-
'reddit' => array(
|
272 |
-
'full_name' => 'Reddit'
|
273 |
-
),
|
274 |
-
'stumbleupon' => array(
|
275 |
-
'full_name' => 'StumbleUpon'
|
276 |
-
),
|
277 |
-
'tumblr' => array(
|
278 |
-
'full_name' => 'Tumblr'
|
279 |
-
),
|
280 |
-
'twitter' => array(
|
281 |
-
'full_name' => 'Twitter'
|
282 |
-
),
|
283 |
-
'vk' => array(
|
284 |
-
'full_name' => 'VK'
|
285 |
-
),
|
286 |
-
'yummly' => array(
|
287 |
-
'full_name' => 'Yummly'
|
288 |
-
)
|
289 |
-
)));
|
290 |
-
}
|
291 |
-
|
292 |
-
// delete old options to move to json array
|
293 |
-
function ssba_delete_old_options()
|
294 |
-
{
|
295 |
-
// delete all options
|
296 |
-
delete_option('ssba_version');
|
297 |
-
delete_option('ssba_image_set');
|
298 |
-
delete_option('ssba_size');
|
299 |
-
delete_option('ssba_pages');
|
300 |
-
delete_option('ssba_posts');
|
301 |
-
delete_option('ssba_cats_archs');
|
302 |
-
delete_option('ssba_homepage');
|
303 |
-
delete_option('ssba_excerpts');
|
304 |
-
delete_option('ssba_align');
|
305 |
-
delete_option('ssba_padding');
|
306 |
-
delete_option('ssba_before_or_after');
|
307 |
-
delete_option('ssba_additional_css');
|
308 |
-
delete_option('ssba_custom_styles');
|
309 |
-
delete_option('ssba_custom_styles_enabled');
|
310 |
-
delete_option('ssba_email_message');
|
311 |
-
delete_option('ssba_buffer_text');
|
312 |
-
delete_option('ssba_twitter_text');
|
313 |
-
delete_option('ssba_flattr_user_id');
|
314 |
-
delete_option('ssba_flattr_url');
|
315 |
-
delete_option('ssba_share_new_window');
|
316 |
-
delete_option('ssba_link_to_ssb');
|
317 |
-
delete_option('ssba_show_share_count');
|
318 |
-
delete_option('ssba_share_count_style');
|
319 |
-
delete_option('ssba_share_count_css');
|
320 |
-
delete_option('ssba_share_count_once');
|
321 |
-
delete_option('ssba_widget_text');
|
322 |
-
delete_option('ssba_rel_nofollow');
|
323 |
-
delete_option('ssba_default_pinterest');
|
324 |
-
delete_option('ssba_pinterest_featured');
|
325 |
-
delete_option('ssba_content_priority');
|
326 |
-
|
327 |
-
// share container
|
328 |
-
delete_option('ssba_div_padding');
|
329 |
-
delete_option('ssba_div_rounded_corners');
|
330 |
-
delete_option('ssba_border_width');
|
331 |
-
delete_option('ssba_div_border');
|
332 |
-
delete_option('ssba_div_background');
|
333 |
-
|
334 |
-
// share text
|
335 |
-
delete_option('ssba_share_text');
|
336 |
-
delete_option('ssba_text_placement');
|
337 |
-
delete_option('ssba_font_family');
|
338 |
-
delete_option('ssba_font_color');
|
339 |
-
delete_option('ssba_font_size');
|
340 |
-
delete_option('ssba_font_weight');
|
341 |
-
|
342 |
-
// include
|
343 |
-
delete_option('ssba_selected_buttons');
|
344 |
-
|
345 |
-
// custom images
|
346 |
-
delete_option('ssba_custom_email');
|
347 |
-
delete_option('ssba_custom_google');
|
348 |
-
delete_option('ssba_custom_facebook');
|
349 |
-
delete_option('ssba_custom_twitter');
|
350 |
-
delete_option('ssba_custom_diggit');
|
351 |
-
delete_option('ssba_custom_linkedin');
|
352 |
-
delete_option('ssba_custom_reddit');
|
353 |
-
delete_option('ssba_custom_stumbleupon');
|
354 |
-
delete_option('ssba_custom_pinterest');
|
355 |
-
delete_option('ssba_custom_buffer');
|
356 |
-
delete_option('ssba_custom_flattr');
|
357 |
-
delete_option('ssba_custom_tumblr');
|
358 |
-
delete_option('ssba_custom_print');
|
359 |
-
delete_option('ssba_custom_vk');
|
360 |
-
delete_option('ssba_custom_yummly');
|
361 |
-
}
|
362 |
-
|
363 |
-
// return old ssba settings (pre 6.0.6)
|
364 |
-
function get_old_ssba_settings() {
|
365 |
-
|
366 |
-
// globals
|
367 |
-
global $wpdb;
|
368 |
-
|
369 |
-
// query the db for current ssba settings
|
370 |
-
$arrSettings = $wpdb->get_results("SELECT option_name, option_value
|
371 |
-
FROM $wpdb->options
|
372 |
-
WHERE option_name LIKE 'ssba_%'");
|
373 |
-
|
374 |
-
// loop through each setting in the array
|
375 |
-
foreach ($arrSettings as $setting) {
|
376 |
-
|
377 |
-
// add each setting to the array by name
|
378 |
-
$arrSettings[$setting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â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
inc/ssba_styles.php
DELETED
@@ -1,230 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
defined('ABSPATH') or die('No direct access permitted');
|
3 |
-
|
4 |
-
// call scripts add function
|
5 |
-
add_action( 'wp_enqueue_scripts', 'ssba_page_scripts' );
|
6 |
-
|
7 |
-
// add css scripts for page/post use
|
8 |
-
function ssba_page_scripts() {
|
9 |
-
// get settings
|
10 |
-
$arrSettings = get_ssba_settings();
|
11 |
-
|
12 |
-
if (is_ssl()) {
|
13 |
-
$st_insights = 'https://ws.sharethis.com/button/st_insights.js';
|
14 |
-
} else {
|
15 |
-
$st_insights = 'http://w.sharethis.com/button/st_insights.js';
|
16 |
-
}
|
17 |
-
|
18 |
-
// add call to st_insights.js with params
|
19 |
-
$url = add_query_arg( array(
|
20 |
-
'publisher' => '4d48b7c5-0ae3-43d4-bfbe-3ff8c17a8ae6',
|
21 |
-
'product' => 'simpleshare',
|
22 |
-
), $st_insights );
|
23 |
-
if ( 'Y' === $arrSettings['accepted_sharethis_terms'] ) {
|
24 |
-
wp_enqueue_script( 'ssba-sharethis', $url, null, null );
|
25 |
-
add_filter( 'script_loader_tag', 'ssba_script_tags', 10, 2 );
|
26 |
-
}
|
27 |
-
|
28 |
-
// ssba.min.js
|
29 |
-
wp_enqueue_script('ssba', plugins_url('js/ssba.min.js', SSBA_FILE), array('jquery'), false, true);
|
30 |
-
|
31 |
-
// if indie flower font is selected
|
32 |
-
if ($arrSettings['ssba_font_family'] == 'Indie Flower') {
|
33 |
-
// font scripts
|
34 |
-
wp_register_style('ssbaFont', '//fonts.googleapis.com/css?family=Indie+Flower');
|
35 |
-
wp_enqueue_style( 'ssbaFont');
|
36 |
-
} else if ($arrSettings['ssba_font_family'] == 'Reenie Beanie') {
|
37 |
-
// font scripts
|
38 |
-
wp_register_style('ssbaFont', '//fonts.googleapis.com/css?family=Reenie+Beanie');
|
39 |
-
wp_enqueue_style( 'ssbaFont');
|
40 |
-
}
|
41 |
-
}
|
42 |
-
|
43 |
-
/**
|
44 |
-
* Adds ID to sharethis script.
|
45 |
-
* @param string $tag HTML script tag.
|
46 |
-
* @param string $handle Script handle.
|
47 |
-
* @return string
|
48 |
-
*/
|
49 |
-
function ssba_script_tags( $tag, $handle ) {
|
50 |
-
if ( 'ssba-sharethis' === $handle ) {
|
51 |
-
return str_replace( '<script ', '<script id=\'st_insights_js\' ', $tag );
|
52 |
-
}
|
53 |
-
return $tag;
|
54 |
-
}
|
55 |
-
|
56 |
-
// add CSS to the head
|
57 |
-
add_action( 'wp_head', 'get_ssba_style' );
|
58 |
-
|
59 |
-
// generate style
|
60 |
-
function get_ssba_style() {
|
61 |
-
|
62 |
-
// query the db for current ssba settings
|
63 |
-
$arrSettings = get_ssba_settings();
|
64 |
-
|
65 |
-
// if the sharethis terms have been accepted
|
66 |
-
if ($arrSettings['accepted_sharethis_terms'] == 'Y') {
|
67 |
-
// if a facebook app id has been set
|
68 |
-
if ($arrSettings['facebook_app_id'] != '') {
|
69 |
-
$src = '//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.6&appID='.$arrSettings['facebook_app_id'];
|
70 |
-
} else {
|
71 |
-
$src = '//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.6';
|
72 |
-
}
|
73 |
-
|
74 |
-
// if an app id has been entered
|
75 |
-
if ($arrSettings['facebook_app_id'] != '') {
|
76 |
-
// init facebook
|
77 |
-
echo "<script>window.fbAsyncInit = function() {
|
78 |
-
FB.init({
|
79 |
-
appId : '" . $arrSettings['facebook_app_id'] . "',
|
80 |
-
xfbml : true,
|
81 |
-
version : 'v2.6'
|
82 |
-
});
|
83 |
-
};</script>";
|
84 |
-
}
|
85 |
-
|
86 |
-
// include facebook js sdk
|
87 |
-
echo "<script>(function(d, s, id){
|
88 |
-
var js, fjs = d.getElementsByTagName(s)[0];
|
89 |
-
if (d.getElementById(id)) {return;}
|
90 |
-
js = d.createElement(s); js.id = id;
|
91 |
-
js.src = \"" . $src . "\";
|
92 |
-
fjs.parentNode.insertBefore(js, fjs);
|
93 |
-
}(document, 'script', 'facebook-jssdk'));</script>";
|
94 |
-
|
95 |
-
// if an app id has been entered
|
96 |
-
if ($arrSettings['facebook_app_id'] != '') {
|
97 |
-
// if facebook insights have been enabled
|
98 |
-
if ($arrSettings['facebook_insights'] == 'Y') {
|
99 |
-
// add facebook meta tag
|
100 |
-
echo '<meta property="fb:app_id" content="'.$arrSettings['facebook_app_id'].'" />';
|
101 |
-
}
|
102 |
-
}
|
103 |
-
}
|
104 |
-
|
105 |
-
// css style
|
106 |
-
$htmlSSBAStyle = '<style type="text/css">';
|
107 |
-
|
108 |
-
// check if custom styles haven't been set
|
109 |
-
if ($arrSettings['ssba_custom_styles_enabled'] != 'Y') {
|
110 |
-
|
111 |
-
// use set options
|
112 |
-
$htmlSSBAStyle .= ' .ssba {
|
113 |
-
' . ($arrSettings['ssba_div_padding'] != '' ? 'padding: ' . $arrSettings['ssba_div_padding'] . 'px;' : NULL) . '
|
114 |
-
' . ($arrSettings['ssba_border_width'] != '' ? 'border: ' . $arrSettings['ssba_border_width'] . 'px solid ' . $arrSettings['ssba_div_border'] . ';' : NULL) . '
|
115 |
-
' . ($arrSettings['ssba_div_background'] != '' ? 'background-color: ' . $arrSettings['ssba_div_background'] . ';' : NULL) . '
|
116 |
-
' . ($arrSettings['ssba_div_rounded_corners'] == 'Y' ? '-moz-border-radius: 10px; -webkit-border-radius: 10px; -khtml-border-radius: 10px; border-radius: 10px; -o-border-radius: 10px;' : NULL) . '
|
117 |
-
}
|
118 |
-
.ssba img
|
119 |
-
{
|
120 |
-
width: ' . $arrSettings['ssba_size'] . 'px !important;
|
121 |
-
padding: ' . $arrSettings['ssba_padding'] . 'px;
|
122 |
-
border: 0;
|
123 |
-
box-shadow: none !important;
|
124 |
-
display: inline !important;
|
125 |
-
vertical-align: middle;
|
126 |
-
}
|
127 |
-
.ssba, .ssba a
|
128 |
-
{
|
129 |
-
text-decoration:none;
|
130 |
-
border:0;
|
131 |
-
' . ($arrSettings['ssba_div_background'] == '' ? 'background: none;' : NULL) . '
|
132 |
-
' . ($arrSettings['ssba_font_family'] != '' ? 'font-family: ' . $arrSettings['ssba_font_family'] . ';' : NULL) . '
|
133 |
-
' . ($arrSettings['ssba_font_size'] != '' ? 'font-size: ' . $arrSettings['ssba_font_size'] . 'px;' : NULL) . '
|
134 |
-
' . ($arrSettings['ssba_font_color'] != '' ? 'color: ' . $arrSettings['ssba_font_color'] . '!important;' : NULL) . '
|
135 |
-
' . ($arrSettings['ssba_font_weight'] != '' ? 'font-weight: ' . $arrSettings['ssba_font_weight'] . ';' : NULL) . '
|
136 |
-
}
|
137 |
-
';
|
138 |
-
|
139 |
-
// if counters option is set to Y
|
140 |
-
if ($arrSettings['ssba_show_share_count'] == 'Y') {
|
141 |
-
// styles that apply to all counter css sets
|
142 |
-
$htmlSSBAStyle .= '.ssba_sharecount:after, .ssba_sharecount:before {
|
143 |
-
right: 100%;
|
144 |
-
border: solid transparent;
|
145 |
-
content: " ";
|
146 |
-
height: 0;
|
147 |
-
width: 0;
|
148 |
-
position: absolute;
|
149 |
-
pointer-events: none;
|
150 |
-
}
|
151 |
-
.ssba_sharecount:after {
|
152 |
-
border-color: rgba(224, 221, 221, 0);
|
153 |
-
border-right-color: #f5f5f5;
|
154 |
-
border-width: 5px;
|
155 |
-
top: 50%;
|
156 |
-
margin-top: -5px;
|
157 |
-
}
|
158 |
-
.ssba_sharecount:before {
|
159 |
-
border-color: rgba(85, 94, 88, 0);
|
160 |
-
border-right-color: #e0dddd;
|
161 |
-
border-width: 6px;
|
162 |
-
top: 50%;
|
163 |
-
margin-top: -6px;
|
164 |
-
}
|
165 |
-
.ssba_sharecount {
|
166 |
-
font: 11px Arial, Helvetica, sans-serif;
|
167 |
-
|
168 |
-
padding: 5px;
|
169 |
-
-khtml-border-radius: 6px;
|
170 |
-
-o-border-radius: 6px;
|
171 |
-
-webkit-border-radius: 6px;
|
172 |
-
-moz-border-radius: 6px;
|
173 |
-
border-radius: 6px;
|
174 |
-
position: relative;
|
175 |
-
border: 1px solid #e0dddd;';
|
176 |
-
|
177 |
-
// if default counter style has been chosen
|
178 |
-
if ($arrSettings['ssba_share_count_style'] == 'default') {
|
179 |
-
|
180 |
-
// style share count
|
181 |
-
$htmlSSBAStyle .= 'color: #555e58;
|
182 |
-
background: #f5f5f5;
|
183 |
-
}
|
184 |
-
.ssba_sharecount:after {
|
185 |
-
border-right-color: #f5f5f5;
|
186 |
-
}';
|
187 |
-
|
188 |
-
} elseif ($arrSettings['ssba_share_count_style'] == 'white') {
|
189 |
-
|
190 |
-
// show white style share counts
|
191 |
-
$htmlSSBAStyle .= 'color: #555e58;
|
192 |
-
background: #ffffff;
|
193 |
-
}
|
194 |
-
.ssba_sharecount:after {
|
195 |
-
border-right-color: #ffffff;
|
196 |
-
}';
|
197 |
-
|
198 |
-
} elseif ($arrSettings['ssba_share_count_style'] == 'blue') {
|
199 |
-
|
200 |
-
// show blue style share counts
|
201 |
-
$htmlSSBAStyle .= 'color: #ffffff;
|
202 |
-
background: #42a7e2;
|
203 |
-
}
|
204 |
-
.ssba_sharecount:after {
|
205 |
-
border-right-color: #42a7e2;
|
206 |
-
}';
|
207 |
-
}
|
208 |
-
}
|
209 |
-
|
210 |
-
// if there's any additional css
|
211 |
-
if ($arrSettings['ssba_additional_css'] != '') {
|
212 |
-
// add the additional CSS
|
213 |
-
$htmlSSBAStyle .= $arrSettings['ssba_additional_css'];
|
214 |
-
}
|
215 |
-
}
|
216 |
-
|
217 |
-
// else use set options
|
218 |
-
else {
|
219 |
-
|
220 |
-
// use custom styles
|
221 |
-
$htmlSSBAStyle .= $arrSettings['ssba_custom_styles'];
|
222 |
-
}
|
223 |
-
|
224 |
-
// close style tag
|
225 |
-
$htmlSSBAStyle .= '</style>';
|
226 |
-
|
227 |
-
// return
|
228 |
-
echo $htmlSSBAStyle;
|
229 |
-
|
230 |
-
}
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
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
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
inc/ssba_widget.php
DELETED
@@ -1,92 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
defined('ABSPATH') or die('No direct access permitted');
|
3 |
-
|
4 |
-
// widget class
|
5 |
-
class ssba_widget extends WP_Widget {
|
6 |
-
|
7 |
-
// construct the widget
|
8 |
-
public function __construct() {
|
9 |
-
parent::__construct(
|
10 |
-
'ssba_widget', // Base ID
|
11 |
-
'Share Buttons', // Name
|
12 |
-
array( 'description' => __( 'Simple Share Buttons Adder', 'text_domain' ), ) // Args
|
13 |
-
);
|
14 |
-
}
|
15 |
-
|
16 |
-
// extract required arguments and run the shortcode
|
17 |
-
public function widget( $args, $instance ) {
|
18 |
-
extract( $args );
|
19 |
-
$title = apply_filters( 'widget_title', $instance['title'] );
|
20 |
-
$url = $instance['url'];
|
21 |
-
$pagetitle = $instance['pagetitle'];
|
22 |
-
|
23 |
-
echo $before_widget;
|
24 |
-
if (!empty($title))
|
25 |
-
echo $before_title . $title . $after_title;
|
26 |
-
|
27 |
-
$shortcode = '[ssba';
|
28 |
-
($url != '' ? $shortcode .= ' url="' . $url . '"' : NULL);
|
29 |
-
($pagetitle != '' ? $shortcode .= ' title="' . $pagetitle . '"' : NULL);
|
30 |
-
$shortcode .= ' widget="Y"]';
|
31 |
-
echo do_shortcode($shortcode, 'text_domain' );
|
32 |
-
echo $after_widget;
|
33 |
-
}
|
34 |
-
|
35 |
-
public function form( $instance )
|
36 |
-
{
|
37 |
-
if ( isset( $instance[ 'title' ] ) )
|
38 |
-
{
|
39 |
-
$title = $instance[ 'title' ];
|
40 |
-
}
|
41 |
-
else
|
42 |
-
{
|
43 |
-
$title = __( 'Share Buttons', 'text_domain' );
|
44 |
-
}
|
45 |
-
|
46 |
-
if ( isset( $instance[ 'title' ] ) )
|
47 |
-
{
|
48 |
-
$url = esc_url( $instance['url'] );
|
49 |
-
}
|
50 |
-
else
|
51 |
-
{
|
52 |
-
$url = '';
|
53 |
-
}
|
54 |
-
|
55 |
-
if ( isset( $instance[ 'title' ] ) )
|
56 |
-
{
|
57 |
-
$pagetitle = esc_attr( $instance['pagetitle'] );
|
58 |
-
}
|
59 |
-
else
|
60 |
-
{
|
61 |
-
$pagetitle = '';
|
62 |
-
}
|
63 |
-
|
64 |
-
# Title
|
65 |
-
echo '<p><label for="' . $this->get_field_id('title') . '">' . 'Title:' . '</label><input class="widefat" id="' . $this->get_field_id('title') . '" name="' . $this->get_field_name('title') . '" type="text" value="' . $title . '" /></p>';
|
66 |
-
# URL
|
67 |
-
echo '<p><label for="' . $this->get_field_id('url') . '">' . 'URL:' . '</label><input class="widefat" id="' . $this->get_field_id('url') . '" name="' . $this->get_field_name('url') . '" type="text" value="' . $url . '" /></p>';
|
68 |
-
echo '<p class="description">Leave this blank to share the current page, or enter a URL to force one URL for all pages.</p>';
|
69 |
-
# Page title
|
70 |
-
echo '<p><label for="' . $this->get_field_id('pagetitle') . '">' . 'Page title:' . '</label><input class="widefat" id="' . $this->get_field_id('pagetitle') . '" name="' . $this->get_field_name('pagetitle') . '" type="text" value="' . $pagetitle . '" /></p>';
|
71 |
-
echo '<p class="description">Set a page title for the page being shared, leave this blank if you have not set a URL.</p>';
|
72 |
-
}
|
73 |
-
|
74 |
-
public function update( $new_instance, $old_instance ) {
|
75 |
-
$instance = array();
|
76 |
-
$instance['title'] = strip_tags( $new_instance['title'] );
|
77 |
-
$instance['url'] = strip_tags( $new_instance['url'] );
|
78 |
-
$instance['pagetitle'] = strip_tags( $new_instance['pagetitle'] );
|
79 |
-
|
80 |
-
return $instance;
|
81 |
-
}
|
82 |
-
|
83 |
-
}
|
84 |
-
|
85 |
-
// add ssba to available widgets
|
86 |
-
add_action( 'widgets_init', create_function( '', 'register_widget( "ssba_widget" );' ) );
|
87 |
-
|
88 |
-
function mywidget_init() {
|
89 |
-
|
90 |
-
register_sidebar_widget('Share Buttons Widget', 'ssba_widget');
|
91 |
-
register_widget_control('Share Buttons Widget', 'ssba_widget_control');
|
92 |
-
}
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
inc/ssbp_forms.php
DELETED
@@ -1,197 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
defined('ABSPATH') or die("No direct access permitted");
|
3 |
-
|
4 |
-
// forms class
|
5 |
-
Class ssbpForms {
|
6 |
-
|
7 |
-
// variables
|
8 |
-
public $ssba_checkboxes;
|
9 |
-
|
10 |
-
// opening form tag
|
11 |
-
public function open($wrap, $action = '', $class = '')
|
12 |
-
{
|
13 |
-
$return = '<div class="'.($wrap ? 'ssba-form-wrap' : null).'">';
|
14 |
-
$return .= '<form class="form-horizontal '.$class.'" id="ssba-admin-form" method="post" action="'.$action.'">';
|
15 |
-
|
16 |
-
// required hidden fields
|
17 |
-
$return .= wp_nonce_field('ssba_save_settings','ssba_save_nonce');
|
18 |
-
$return .= '<input type="hidden" name="ssba_options" />';
|
19 |
-
|
20 |
-
// open fieldset
|
21 |
-
$return .= '<fieldset>';
|
22 |
-
|
23 |
-
return $return;
|
24 |
-
}
|
25 |
-
|
26 |
-
// close form tag
|
27 |
-
public function close()
|
28 |
-
{
|
29 |
-
// save button
|
30 |
-
$return = '<button type="submit" id="submit" class="ssba-btn-save btn btn-lg btn-primary"><i class="fa fa-floppy-o"></i></button>';
|
31 |
-
|
32 |
-
// success button
|
33 |
-
$return .= '<button type="button" class="ssba-btn-save-success btn btn-lg btn-success"><i class="fa fa-check"></i></button>';
|
34 |
-
|
35 |
-
// close fieldset
|
36 |
-
$return.= '</fieldset>';
|
37 |
-
|
38 |
-
// close form
|
39 |
-
$return .= '</form>';
|
40 |
-
$return .= '</div>';
|
41 |
-
|
42 |
-
return $return;
|
43 |
-
}
|
44 |
-
|
45 |
-
// inline checkboxes
|
46 |
-
public function ssbp_checkboxes($opts)
|
47 |
-
{
|
48 |
-
// check if opts passed is an array
|
49 |
-
if( ! is_array($opts))
|
50 |
-
return 'Variable passed not an array';
|
51 |
-
|
52 |
-
// define variable
|
53 |
-
$input = '';
|
54 |
-
|
55 |
-
// if we're including the form group div
|
56 |
-
if($opts['form_group'] === true)
|
57 |
-
$input.= '<div class="form-group">';
|
58 |
-
|
59 |
-
// if a tooltip has been set
|
60 |
-
if(isset($opts['tooltip']) && $opts['tooltip'] != '')
|
61 |
-
$tooltip = 'data-toggle="tooltip" data-placement="right" data-original-title="'.$opts['tooltip'].'"';
|
62 |
-
// no tooltip
|
63 |
-
else
|
64 |
-
$tooltip = '';
|
65 |
-
|
66 |
-
// label with tooltip
|
67 |
-
$input .= '<label class="control-label" '.$tooltip.'>'.$opts['label'].'</label>';
|
68 |
-
|
69 |
-
// input div
|
70 |
-
$input .='<div class="">';
|
71 |
-
|
72 |
-
// add all checkboxes
|
73 |
-
array_walk($opts['checkboxes'], array($this, '_ssbp_add_checkboxes'));
|
74 |
-
$input.= $this->ssba_checkboxes;
|
75 |
-
|
76 |
-
// close input div
|
77 |
-
$input.= '</div>';
|
78 |
-
|
79 |
-
// if we're including the form group div
|
80 |
-
if($opts['form_group'] === true)
|
81 |
-
$input.= '</div>';
|
82 |
-
|
83 |
-
// return the input
|
84 |
-
return $input;
|
85 |
-
}
|
86 |
-
|
87 |
-
// checkboxes
|
88 |
-
private function _ssbp_add_checkboxes($value, $key)
|
89 |
-
{
|
90 |
-
$this->ssba_checkboxes .= '<label class="checkbox-inline no_indent">
|
91 |
-
'.$key.'<br />
|
92 |
-
<input type="checkbox" id="'.$value['value'].'" name="'.$value['value'].'" value="Y" '.($value['checked'] === true ? 'checked="checked"' : null).'>
|
93 |
-
</label>';
|
94 |
-
}
|
95 |
-
|
96 |
-
// form input with group
|
97 |
-
public function ssbp_input($opts)
|
98 |
-
{
|
99 |
-
// check if opts passed is an array
|
100 |
-
if( ! is_array($opts))
|
101 |
-
return 'Variable passed not an array';
|
102 |
-
|
103 |
-
// define variable
|
104 |
-
$input = '';
|
105 |
-
|
106 |
-
// if we're including the form group div
|
107 |
-
if($opts['form_group'] === true)
|
108 |
-
$input.= '<div class="form-group">';
|
109 |
-
|
110 |
-
// if a tooltip has been set
|
111 |
-
if(isset($opts['tooltip']) && $opts['tooltip'] != '')
|
112 |
-
$tooltip = 'data-toggle="tooltip" data-placement="right" data-original-title="'.$opts['tooltip'].'"';
|
113 |
-
// no tooltip
|
114 |
-
else
|
115 |
-
$tooltip = '';
|
116 |
-
|
117 |
-
// label with tooltip
|
118 |
-
$input .= '<label for="'.$opts['name'].'" class="control-label" '.$tooltip.'>'.$opts['label'].'</label>';
|
119 |
-
|
120 |
-
// input div
|
121 |
-
$input .='<div class="input-div">';
|
122 |
-
|
123 |
-
// switch based on the inputn type
|
124 |
-
switch($opts['type'])
|
125 |
-
{
|
126 |
-
case 'text':
|
127 |
-
default:
|
128 |
-
$input.='<input class="form-control" name="'.$opts['name'].'" id="'.$opts['name'].'" type="text" value="'.$opts['value'].'" placeholder="'.$opts['placeholder'].'" '.(isset($opts['disabled']) ? $opts['disabled'] : null).' />';
|
129 |
-
break;
|
130 |
-
|
131 |
-
case 'text_prefix':
|
132 |
-
$input.='<div class="input-group">
|
133 |
-
<span class="input-group-addon">'.$opts['prefix'].'</span>
|
134 |
-
<input name="'.$opts['name'].'" id="'.$opts['name'].'" type="text" value="'.$opts['value'].'" class="form-control" placeholder="'.$opts['placeholder'].'">
|
135 |
-
</div>';
|
136 |
-
break;
|
137 |
-
|
138 |
-
case 'error':
|
139 |
-
$input.='<p class="text-danger">'.$opts['error'].'</p>';
|
140 |
-
break;
|
141 |
-
|
142 |
-
case 'number':
|
143 |
-
$input.='<input class="form-control" name="'.$opts['name'].'" id="'.$opts['name'].'" type="number" value="'.$opts['value'].'" placeholder="'.$opts['placeholder'].'" />';
|
144 |
-
break;
|
145 |
-
|
146 |
-
case 'image_upload':
|
147 |
-
$input.='<div class="input-group">
|
148 |
-
<input id="'.$opts['name'].'" name="'.$opts['name'].'" type="text" class="form-control" value="'.$opts['value'].'">
|
149 |
-
<span class="input-group-btn">
|
150 |
-
<button id="upload_'.$opts['name'].'_button" class="ssbpUpload ssbp_upload_btn btn btn-default" data-ssbp-input="'.$opts['name'].'" type="button">Upload</button>
|
151 |
-
</span>
|
152 |
-
</div>';
|
153 |
-
break;
|
154 |
-
|
155 |
-
case 'number_addon':
|
156 |
-
$input.='<div class="input-group">
|
157 |
-
<input id="'.$opts['name'].'" name="'.$opts['name'].'" type="number" class="form-control" value="'.$opts['value'].'" placeholder="'.$opts['placeholder'].'" />
|
158 |
-
<span class="input-group-addon">'.$opts['addon'].'</span>
|
159 |
-
</div>';
|
160 |
-
break;
|
161 |
-
|
162 |
-
case 'colorpicker':
|
163 |
-
$input.= '<input id="'.$opts['name'].'" name="'.$opts['name'].'" type="text" class="ssba-colorpicker form-control" value="'.$opts['value'].'" placeholder="#4582ec" style="border-color: '.($opts['value'] != '' ? $opts['value'] : '#eaeaea').'" />';
|
164 |
-
break;
|
165 |
-
|
166 |
-
case 'textarea':
|
167 |
-
$input.='<textarea class="form-control '.(isset($opts['class']) ? $opts['class'] : null).'" name="'.$opts['name'].'" id="'.$opts['name'].'" rows="'.$opts['rows'].'">'.$opts['value'].'</textarea>';
|
168 |
-
break;
|
169 |
-
|
170 |
-
case 'checkbox':
|
171 |
-
$input.='<input class="'.(isset($opts['class']) ? $opts['class'] : null).'" name="'.$opts['name'].'" id="'.$opts['name'].'" type="checkbox" '.$opts['checked'].' value="'.$opts['value'].'" '.(isset($opts['disabled']) ? $opts['disabled'] : null).' />';
|
172 |
-
break;
|
173 |
-
|
174 |
-
case 'select':
|
175 |
-
$input.='<select class="form-control" name="'.$opts['name'].'" id="'.$opts['name'].'">';
|
176 |
-
|
177 |
-
// add all options
|
178 |
-
foreach($opts['options'] as $key => $value)
|
179 |
-
{
|
180 |
-
$input.= '<option value="'.$value.'" '.($value == $opts['selected'] ? 'selected="selected"' : null).'>'.$key.'</option>';
|
181 |
-
}
|
182 |
-
|
183 |
-
$input.='</select>';
|
184 |
-
break;
|
185 |
-
}
|
186 |
-
|
187 |
-
// close input div
|
188 |
-
$input.= '</div>';
|
189 |
-
|
190 |
-
// if we're including the form group div
|
191 |
-
if($opts['form_group'] === true)
|
192 |
-
$input.= '</div>';
|
193 |
-
|
194 |
-
// return the input
|
195 |
-
return $input;
|
196 |
-
}
|
197 |
-
}
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
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
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
instance.php
ADDED
@@ -0,0 +1,29 @@
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Instantiates the Simple Share Buttons Adder plugin
|
4 |
+
*
|
5 |
+
* @package SimpleShareButtonsAdder
|
6 |
+
*/
|
7 |
+
|
8 |
+
namespace SimpleShareButtonsAdder;
|
9 |
+
|
10 |
+
define( 'SSBA_FILE', __FILE__ );
|
11 |
+
define( 'SSBA_ROOT', dirname( __FILE__ ) );
|
12 |
+
define( 'SSBA_VERSION', '7.3.6' );
|
13 |
+
|
14 |
+
global $simple_share_buttons_adder_plugin;
|
15 |
+
|
16 |
+
require_once __DIR__ . '/php/class-plugin-base.php';
|
17 |
+
require_once __DIR__ . '/php/class-plugin.php';
|
18 |
+
|
19 |
+
$simple_share_buttons_adder_plugin = new Plugin();
|
20 |
+
|
21 |
+
/**
|
22 |
+
* Simple Share Buttons Adder Plugin Instance
|
23 |
+
*
|
24 |
+
* @return Plugin
|
25 |
+
*/
|
26 |
+
function get_plugin_instance() {
|
27 |
+
global $simple_share_buttons_adder_plugin;
|
28 |
+
return $simple_share_buttons_adder_plugin;
|
29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, wp ) {
|
9 |
+
'use strict';
|
10 |
+
|
11 |
+
return {
|
12 |
+
/**
|
13 |
+
* Holds data.
|
14 |
+
*/
|
15 |
+
data: {},
|
16 |
+
|
17 |
+
/**
|
18 |
+
* Boot plugin.
|
19 |
+
*
|
20 |
+
* @param data
|
21 |
+
*/
|
22 |
+
boot: function( data ) {
|
23 |
+
this.data = data;
|
24 |
+
|
25 |
+
$( document ).ready( function() {
|
26 |
+
this.init();
|
27 |
+
}.bind( this ) );
|
28 |
+
},
|
29 |
+
|
30 |
+
/**
|
31 |
+
* Initialize plugin.
|
32 |
+
*/
|
33 |
+
init: function() {
|
34 |
+
this.$plusContainer = $( '#plus-share-buttons' );
|
35 |
+
this.$shareContainer = $( '#share-bar' );
|
36 |
+
this.switchCheckboxes();
|
37 |
+
this.colorPicker();
|
38 |
+
$( '[data-toggle="tooltip"]' ).tooltip();
|
39 |
+
this.dragSort();
|
40 |
+
this.extractIncludeList();
|
41 |
+
this.listen();
|
42 |
+
},
|
43 |
+
|
44 |
+
/**
|
45 |
+
* Listener events.
|
46 |
+
*/
|
47 |
+
listen: function() {
|
48 |
+
var self = this;
|
49 |
+
|
50 |
+
// When changing image sets.
|
51 |
+
$( 'body' ).on( 'change', '#ssba_image_set', function() {
|
52 |
+
var imageSet = $( this ).val();
|
53 |
+
|
54 |
+
self.changeImageSets( imageSet );
|
55 |
+
} );
|
56 |
+
|
57 |
+
// Image uploads.
|
58 |
+
$( 'body' ).on( 'click', '.ssbpUpload', function( event ) {
|
59 |
+
var field = $( this ).attr( 'data-ssbp-input' );
|
60 |
+
|
61 |
+
event.preventDefault();
|
62 |
+
self.imageUploads( field );
|
63 |
+
} );
|
64 |
+
|
65 |
+
// SSBA admin form.
|
66 |
+
$( 'body' ).on( 'click', '#submit', function( event ) {
|
67 |
+
self.adminForm( event, this );
|
68 |
+
} );
|
69 |
+
|
70 |
+
// Select preview.
|
71 |
+
$( 'body' ).on( 'change', '#ssba_share_button_style, #ssba_share_bar_style', function() {
|
72 |
+
var selectId = '#' + $( this ).attr( 'id' ),
|
73 |
+
selection = $( selectId + ' option:selected' ).val(),
|
74 |
+
target = '#ssba-preview-2';
|
75 |
+
|
76 |
+
if ( '#ssba_share_button_style' === selectId ) {
|
77 |
+
target = '#ssba-preview';
|
78 |
+
}
|
79 |
+
|
80 |
+
self.preview( selection, target );
|
81 |
+
} );
|
82 |
+
|
83 |
+
// Share bar preview position.
|
84 |
+
$( 'body' ).on( 'change', '#ssba_share_bar_position', function() {
|
85 |
+
var position = $( '#ssba_share_bar_position option:selected' ).val();
|
86 |
+
|
87 |
+
self.barPosition( position );
|
88 |
+
} );
|
89 |
+
|
90 |
+
// Classic button preview.
|
91 |
+
$( 'body' ).on( 'change', '#ssba_image_set', function() {
|
92 |
+
var selection = $( '#ssba_image_set option:selected' ).val();
|
93 |
+
|
94 |
+
self.classicPreview( selection, '', '-1', 'img' );
|
95 |
+
} );
|
96 |
+
|
97 |
+
this.$plusContainer.on( 'change', '#ssba_plus_height, #ssba_plus_width, #ssba_plus_icon_size, #ssba_plus_margin', function() {
|
98 |
+
var id = $( this ).attr( 'id' ),
|
99 |
+
selection = $( this ).val(),
|
100 |
+
type;
|
101 |
+
|
102 |
+
if ( 'ssba_plus_height' === id ) {
|
103 |
+
type = 'height';
|
104 |
+
find = 'a';
|
105 |
+
|
106 |
+
self.updateInlineStyle();
|
107 |
+
}
|
108 |
+
|
109 |
+
if ( 'ssba_plus_width' === id ) {
|
110 |
+
type = 'width';
|
111 |
+
find = 'a';
|
112 |
+
}
|
113 |
+
|
114 |
+
if ( 'ssba_plus_icon_size' === id ) {
|
115 |
+
type = 'font-size';
|
116 |
+
find = 'a:before';
|
117 |
+
selection = selection + 'px';
|
118 |
+
|
119 |
+
self.updateInlineStyle();
|
120 |
+
}
|
121 |
+
|
122 |
+
if ( 'ssba_plus_margin' === id ) {
|
123 |
+
type = 'margin';
|
124 |
+
find = '';
|
125 |
+
selection = selection + 'px';
|
126 |
+
}
|
127 |
+
|
128 |
+
self.classicPreview( selection, type, '', find );
|
129 |
+
} );
|
130 |
+
|
131 |
+
this.$shareContainer.on( 'change', '#ssba_share_height, #ssba_share_width, #ssba_share_icon_size, #ssba_share_margin', function() {
|
132 |
+
var id = $( this ).attr( 'id' ),
|
133 |
+
selection = $( this ).val(),
|
134 |
+
type;
|
135 |
+
|
136 |
+
if ( 'ssba_share_height' === id ) {
|
137 |
+
type = 'height';
|
138 |
+
find = 'a';
|
139 |
+
|
140 |
+
self.updateInlineStyle();
|
141 |
+
}
|
142 |
+
|
143 |
+
if ( 'ssba_share_width' === id ) {
|
144 |
+
type = 'width';
|
145 |
+
find = 'a';
|
146 |
+
}
|
147 |
+
|
148 |
+
if ( 'ssba_share_icon_size' === id ) {
|
149 |
+
type = 'font-size';
|
150 |
+
find = 'a:before';
|
151 |
+
selection = selection + 'px';
|
152 |
+
|
153 |
+
self.updateInlineStyle();
|
154 |
+
}
|
155 |
+
|
156 |
+
if ( 'ssba_share_margin' === id ) {
|
157 |
+
type = 'margin';
|
158 |
+
find = '';
|
159 |
+
selection = selection + 'px';
|
160 |
+
}
|
161 |
+
|
162 |
+
self.classicPreview( selection, type, '-2', find );
|
163 |
+
} );
|
164 |
+
|
165 |
+
// Classic button css preview.
|
166 |
+
$( 'body' ).on( 'change', '#ssba_size, #ssba_padding, #ssba_align', function() {
|
167 |
+
var value = $( this ).val(),
|
168 |
+
id = $( this ).attr( 'id' ),
|
169 |
+
type = 'padding',
|
170 |
+
target = 'li';
|
171 |
+
|
172 |
+
if ( 'ssba_size' === id ) {
|
173 |
+
type = 'height';
|
174 |
+
}
|
175 |
+
|
176 |
+
if ( 'ssba_align' === id ) {
|
177 |
+
target = 'ul';
|
178 |
+
type = 'text-align';
|
179 |
+
}
|
180 |
+
|
181 |
+
self.classicCss( type, value, target, '-1' );
|
182 |
+
} );
|
183 |
+
|
184 |
+
// Plus button css preview.
|
185 |
+
this.$plusContainer.on( 'change', '#ssba_plus_align', function() {
|
186 |
+
var value = $( this ).val(),
|
187 |
+
id = $( this ).attr( 'id' ),
|
188 |
+
type,
|
189 |
+
target = '';
|
190 |
+
|
191 |
+
if ( 'ssba_plus_align' === id ) {
|
192 |
+
target = 'ul';
|
193 |
+
type = 'text-align';
|
194 |
+
}
|
195 |
+
|
196 |
+
self.classicCss( type, value, target, '' );
|
197 |
+
} );
|
198 |
+
|
199 |
+
// Update icon and other non DOM style preview.
|
200 |
+
this.$plusContainer.on( 'change', '#ssba_plus_icon_size', function() {
|
201 |
+
self.updateInlineStyle();
|
202 |
+
} );
|
203 |
+
|
204 |
+
// Class button share text css preview.
|
205 |
+
$( 'body' ).on( 'change', '.share-text-prev input, .share-text-prev select', function() {
|
206 |
+
var value = $( this ).val(),
|
207 |
+
id = $( this ).attr( 'id' ),
|
208 |
+
type,
|
209 |
+
sel_value = $( '#' + id + ' option:selected' ).val(),
|
210 |
+
tab = $( this ).closest( '.tab-pane' ).attr( 'id' );
|
211 |
+
|
212 |
+
if ( 'ssba_share_text' === id || 'ssba_plus_share_text' === id ) {
|
213 |
+
type = 'html';
|
214 |
+
}
|
215 |
+
|
216 |
+
if ( 'ssba_font_color' === id || 'ssba_plus_font_color' === id ) {
|
217 |
+
type = 'color';
|
218 |
+
}
|
219 |
+
|
220 |
+
if ( 'ssba_font_family' === id || 'ssba_plus_font_family' === id ) {
|
221 |
+
type = 'font-family';
|
222 |
+
value = sel_value;
|
223 |
+
}
|
224 |
+
|
225 |
+
if ( 'ssba_font_size' === id || 'ssba_plus_font_size' === id ) {
|
226 |
+
type = 'font-size';
|
227 |
+
value = value + 'px';
|
228 |
+
}
|
229 |
+
|
230 |
+
if ( 'ssba_font_weight' === id || 'ssba_plus_font_weight' === id ) {
|
231 |
+
type = 'font-weight';
|
232 |
+
value = sel_value;
|
233 |
+
}
|
234 |
+
|
235 |
+
if ( ( 'ssba_text_placement' === id || 'ssba_plus_text_placement' === id ) && 'above' !== value && 'below' !== value ) {
|
236 |
+
type = 'float';
|
237 |
+
value = sel_value;
|
238 |
+
}
|
239 |
+
|
240 |
+
if ( ( 'ssba_text_placement' === id || 'ssba_plus_text_placement' === id ) && ( 'above' === value || 'below' === value ) ) {
|
241 |
+
type = 'placement';
|
242 |
+
}
|
243 |
+
|
244 |
+
self.classicTextCss( type, value, '#' + tab + ' .ssba-share-text-prev' );
|
245 |
+
} );
|
246 |
+
|
247 |
+
// Class button share text css preview.
|
248 |
+
$( 'body' ).on( 'change', '.share-cont-prev input', function() {
|
249 |
+
var value = $( this ).val(),
|
250 |
+
id = $( this ).attr( 'id' ),
|
251 |
+
type,
|
252 |
+
bWidth = $( '#ssba_border_width' ).val() + 'px',
|
253 |
+
bColor = $( '#ssba_div_border' ).val(),
|
254 |
+
target = '.ssba-preview-content';
|
255 |
+
|
256 |
+
if ( 'ssba_div_padding' === id ) {
|
257 |
+
type = 'padding';
|
258 |
+
value = value + 'px';
|
259 |
+
target = '#ssba-preview-1';
|
260 |
+
}
|
261 |
+
|
262 |
+
if ( 'ssba_div_background' === id ) {
|
263 |
+
type = 'background';
|
264 |
+
}
|
265 |
+
|
266 |
+
if ( 'ssba_div_border' === id ) {
|
267 |
+
type = 'border';
|
268 |
+
value = bWidth + ' solid ' + value;
|
269 |
+
target = '#ssba-preview-1';
|
270 |
+
}
|
271 |
+
|
272 |
+
if ( 'ssba_border_width' === id ) {
|
273 |
+
type = 'border';
|
274 |
+
value = value + 'px solid ' + bColor;
|
275 |
+
target = '#ssba-preview-1';
|
276 |
+
}
|
277 |
+
|
278 |
+
self.classicTextCss( type, value, target );
|
279 |
+
} );
|
280 |
+
|
281 |
+
// Container radius switch.
|
282 |
+
$( 'body' ).on( 'switchChange.bootstrapSwitch', '#ssba_div_rounded_corners', function( event, state ) {
|
283 |
+
var type = 'border-radius',
|
284 |
+
value = '0';
|
285 |
+
|
286 |
+
if ( state ) {
|
287 |
+
value = '10px';
|
288 |
+
}
|
289 |
+
|
290 |
+
self.classicTextCss( type, value, '#ssba-preview-1' );
|
291 |
+
} )
|
292 |
+
|
293 |
+
// Share count switch.
|
294 |
+
$( 'body' ).on( 'switchChange.bootstrapSwitch', '#ssba_show_share_count', function( event, state ) {
|
295 |
+
var type = $( '#ssba_share_count_style option:selected' ).val();
|
296 |
+
|
297 |
+
if ( state ) {
|
298 |
+
$( '#ssba-preview-1 .ssbp-list li' ).each( function() {
|
299 |
+
$( this ).find( 'span' ).addClass( 'ssba_sharecount' ).addClass( 'ssba_' + type );
|
300 |
+
} );
|
301 |
+
} else {
|
302 |
+
$( '#ssba-preview-1 .ssbp-list li' ).each( function() {
|
303 |
+
$( this ).find( 'span' ).removeClass( 'ssba_sharecount' ).removeClass( 'ssba_' + type );
|
304 |
+
} );
|
305 |
+
}
|
306 |
+
} );
|
307 |
+
|
308 |
+
// Share plus count switch.
|
309 |
+
$( 'body' ).on( 'switchChange.bootstrapSwitch', '#ssba_plus_show_share_count', function( event, state ) {
|
310 |
+
if ( state ) {
|
311 |
+
$( '#ssba-preview .ssbp-list li' ).each( function() {
|
312 |
+
$( this ).find( 'span' ).css( 'display', 'block' );
|
313 |
+
} );
|
314 |
+
} else {
|
315 |
+
$( '#ssba-preview .ssbp-list li' ).each( function() {
|
316 |
+
$( this ).find( 'span' ).hide();
|
317 |
+
} );
|
318 |
+
}
|
319 |
+
} );
|
320 |
+
|
321 |
+
// Share share bar count switch.
|
322 |
+
$( 'body' ).on( 'switchChange.bootstrapSwitch', '#ssba_share_show_share_count', function( event, state ) {
|
323 |
+
if ( state ) {
|
324 |
+
$( '#ssba-preview-2 .ssbp-list li' ).each( function() {
|
325 |
+
$( this ).find( 'span' ).css( 'display', 'block' );
|
326 |
+
} );
|
327 |
+
} else {
|
328 |
+
$( '#ssba-preview-2 .ssbp-list li' ).each( function() {
|
329 |
+
$( this ).find( 'span' ).hide();
|
330 |
+
} );
|
331 |
+
}
|
332 |
+
} );
|
333 |
+
|
334 |
+
// Share count style.
|
335 |
+
$( 'body' ).on( 'change', '#ssba_share_count_style', function() {
|
336 |
+
var type = $( '#ssba_share_count_style option:selected' ).val();
|
337 |
+
|
338 |
+
$( '#ssba-preview-1 .ssbp-list li' ).each( function() {
|
339 |
+
$( this ).find( 'span' ).removeClass( 'ssba_default' ).removeClass( 'ssba_white' ).removeClass( 'ssba_blue' ).addClass( 'ssba_' + type );
|
340 |
+
} );
|
341 |
+
} );
|
342 |
+
|
343 |
+
// Swap classic and plus buttons.
|
344 |
+
$( 'body' ).on( 'switchChange.bootstrapSwitch', '#ssba_new_buttons', function( event, state ) {
|
345 |
+
self.swapButtons( state );
|
346 |
+
} );
|
347 |
+
|
348 |
+
// Toggle button menus when arrows are clicked.
|
349 |
+
$( 'body' ).on( 'click', '.accor-wrap .accor-tab', function() {
|
350 |
+
var type = $( this ).find( 'span.accor-arrow' );
|
351 |
+
|
352 |
+
self.updateAccors( type.html(), type );
|
353 |
+
} );
|
354 |
+
|
355 |
+
// Add class to preview when scrolled to.
|
356 |
+
$( window ).on( 'scroll', function(){
|
357 |
+
var stickyTop = $( '#ssba-preview-title' ).offset().top;
|
358 |
+
|
359 |
+
if ( $( window ).scrollTop() >= stickyTop ) {
|
360 |
+
$( '.master-ssba-prev-wrap, #ssba-preview-1' ).addClass( 'ssba-sticky' );
|
361 |
+
} else {
|
362 |
+
$( '.master-ssba-prev-wrap, #ssba-preview-1' ).removeClass( 'ssba-sticky' );
|
363 |
+
}
|
364 |
+
} );
|
365 |
+
|
366 |
+
// Network selection change.
|
367 |
+
$( 'body' ).on( 'mouseout', '#ssbasort2, #ssbasort1', function() {
|
368 |
+
var list = $( '#ssba_selected_buttons' ).val().split( ',' );
|
369 |
+
|
370 |
+
self.updateNetworkPreview( list, '-1', 'img' );
|
371 |
+
} );
|
372 |
+
|
373 |
+
// Network share selection change.
|
374 |
+
$( 'body' ).on( 'mouseout', '#ssbasort4, #ssbasort3', function() {
|
375 |
+
var list = $( '#ssba_selected_share_buttons' ).val().split( ',' );
|
376 |
+
|
377 |
+
self.updateNetworkPreview( list, '-2', 'div.ssbp-text' );
|
378 |
+
} );
|
379 |
+
|
380 |
+
// Network plus selection change.
|
381 |
+
$( 'body' ).on( 'mouseout', '#ssbasort6, #ssbasort5', function() {
|
382 |
+
var list = $( '#ssba_selected_plus_buttons' ).val().split( ',' );
|
383 |
+
|
384 |
+
self.updateNetworkPreview( list, '', 'div.ssbp-text' );
|
385 |
+
} );
|
386 |
+
|
387 |
+
// Add id to color picker submit.
|
388 |
+
$( 'body' ).on( 'focus', '.ssba-colorpicker', function() {
|
389 |
+
var id = $( this ).attr( 'id' );
|
390 |
+
|
391 |
+
$( '.colpick_submit' ).attr( 'id', id );
|
392 |
+
} );
|
393 |
+
|
394 |
+
// Dismiss notice.
|
395 |
+
$( 'body' ).on( 'click', '.ssba-tab-container blockquote .notice-dismiss', function() {
|
396 |
+
var type = $( this ).attr( 'id' );
|
397 |
+
|
398 |
+
// Save dismiss status to database.
|
399 |
+
self.dismissNotice( type );
|
400 |
+
} );
|
401 |
+
|
402 |
+
// Copy text from read only input fields.
|
403 |
+
$( 'body' ).on( 'click', '#ssba-copy-shortcode', function() {
|
404 |
+
self.copyText( $( '.ssba-buttons-shortcode' ) );
|
405 |
+
} );
|
406 |
+
},
|
407 |
+
|
408 |
+
/**
|
409 |
+
* Switch for checkboxes.
|
410 |
+
*/
|
411 |
+
switchCheckboxes: function() {
|
412 |
+
$( '.ssba-admin-wrap input:checkbox' ).bootstrapSwitch( {
|
413 |
+
onColor: 'primary',
|
414 |
+
size: 'normal'
|
415 |
+
} );
|
416 |
+
},
|
417 |
+
|
418 |
+
/**
|
419 |
+
* Color picker.
|
420 |
+
*/
|
421 |
+
colorPicker: function() {
|
422 |
+
$( '.ssba-colorpicker' ).colpick( {
|
423 |
+
layout: 'hex',
|
424 |
+
submit: 1,
|
425 |
+
onSubmit: function( hsb, hex, rgb, el, colid ) {
|
426 |
+
$( el ).val( '#' + hex );
|
427 |
+
$( el ).css( 'border-color', '#' + hex );
|
428 |
+
$( el ).colpickHide();
|
429 |
+
}
|
430 |
+
} );
|
431 |
+
},
|
432 |
+
|
433 |
+
/**
|
434 |
+
* Add drag and sort functions to include table.
|
435 |
+
*/
|
436 |
+
dragSort: function() {
|
437 |
+
$( '#ssbasort1, #ssbasort2, #ssbasort3, #ssbasort4, #ssbasort5, #ssbasort6' ).sortable( {
|
438 |
+
connectWith: '.ssbaSortable'
|
439 |
+
} ).disableSelection();
|
440 |
+
},
|
441 |
+
|
442 |
+
/**
|
443 |
+
* Extract and add include list to hidden field.
|
444 |
+
*/
|
445 |
+
extractIncludeList: function() {
|
446 |
+
$( '#ssba_selected_buttons' ).val( $( '#ssbasort2 li' ).map( function() {
|
447 |
+
|
448 |
+
// For each <li> in the list, return its inner text and let .map() build an array of those values.
|
449 |
+
return $( this ).attr( 'id' );
|
450 |
+
} ).get() );
|
451 |
+
|
452 |
+
// After a change, extract and add include list to hidden field.
|
453 |
+
$( '.ssbp-wrap' ).mouseout( function() {
|
454 |
+
$( '#ssba-preview-1 .ssbp-list' ).html();
|
455 |
+
$( '#ssba_selected_buttons' ).val( $( '#ssbasort2 li' ).map( function() {
|
456 |
+
|
457 |
+
// For each <li> in the list, return its inner text and let .map()
|
458 |
+
// build an array of those values.
|
459 |
+
return $( this ).attr( 'id' );
|
460 |
+
} ).get() );
|
461 |
+
} );
|
462 |
+
|
463 |
+
$( '#ssba_selected_share_buttons' ).val( $( '#ssbasort4 li' ).map( function() {
|
464 |
+
|
465 |
+
// For each <li> in the list, return its inner text and let .map() build an array of those values.
|
466 |
+
return $( this ).attr( 'id' );
|
467 |
+
} ).get() );
|
468 |
+
|
469 |
+
// After a change, extract and add include list to hidden field.
|
470 |
+
$( '.ssbp-wrap' ).mouseout( function() {
|
471 |
+
$( '#ssba_selected_share_buttons' ).val( $( '#ssbasort4 li' ).map( function() {
|
472 |
+
|
473 |
+
// For each <li> in the list, return its inner text and let .map()
|
474 |
+
// build an array of those values.
|
475 |
+
return $( this ).attr( 'id' );
|
476 |
+
} ).get() );
|
477 |
+
} );
|
478 |
+
|
479 |
+
$( '#ssba_selected_plus_buttons' ).val( $( '#ssbasort6 li' ).map( function() {
|
480 |
+
|
481 |
+
// For each <li> in the list, return its inner text and let .map() build an array of those values.
|
482 |
+
return $( this ).attr( 'id' );
|
483 |
+
} ).get() );
|
484 |
+
|
485 |
+
// After a change, extract and add include list to hidden field.
|
486 |
+
$( '.ssbp-wrap' ).mouseout( function() {
|
487 |
+
$( '#ssba_selected_plus_buttons' ).val( $( '#ssbasort6 li' ).map( function() {
|
488 |
+
|
489 |
+
// For each <li> in the list, return its inner text and let .map()
|
490 |
+
// build an array of those values.
|
491 |
+
return $( this ).attr( 'id' );
|
492 |
+
} ).get() );
|
493 |
+
} );
|
494 |
+
},
|
495 |
+
|
496 |
+
/**
|
497 |
+
* When changing image sets.
|
498 |
+
*
|
499 |
+
* @param imageSet
|
500 |
+
*/
|
501 |
+
changeImageSets: function( imageSet ) {
|
502 |
+
if ( 'custom' === imageSet ) {
|
503 |
+
$( '#ssba-custom-images' ).fadeIn( 100 );
|
504 |
+
} else {
|
505 |
+
$( '#ssba-custom-images' ).fadeOut( 100 );
|
506 |
+
}
|
507 |
+
},
|
508 |
+
|
509 |
+
/**
|
510 |
+
* Image Uploads
|
511 |
+
*
|
512 |
+
* @param field
|
513 |
+
*/
|
514 |
+
imageUploads: function( field ) {
|
515 |
+
var custom_uploader = wp.media.frames.file_frame = wp.media({
|
516 |
+
title: 'Add Image',
|
517 |
+
button: {
|
518 |
+
text: 'Add Image'
|
519 |
+
},
|
520 |
+
multiple: false
|
521 |
+
} ),
|
522 |
+
button,
|
523 |
+
buttonClass;
|
524 |
+
|
525 |
+
custom_uploader.on( 'select', function() {
|
526 |
+
var attachment = custom_uploader.state().get( 'selection' ).first().toJSON();
|
527 |
+
$( '#' + field ).val( attachment.url );
|
528 |
+
|
529 |
+
// Update button preview.
|
530 |
+
button = field.replace( 'ssba_custom_', '' );
|
531 |
+
buttonClass = '.ssbp-li--' + button;
|
532 |
+
|
533 |
+
$( buttonClass + ' img' ).attr( 'src', attachment.url );
|
534 |
+
} );
|
535 |
+
custom_uploader.open();
|
536 |
+
},
|
537 |
+
|
538 |
+
/**
|
539 |
+
* SSBA admin form.
|
540 |
+
*
|
541 |
+
* @param event
|
542 |
+
*/
|
543 |
+
adminForm: function( event, submit ) {
|
544 |
+
var ssbaData = $( '#ssba-admin-form' ).serialize();
|
545 |
+
|
546 |
+
// Show spinner to show save in progress.
|
547 |
+
$( 'button.ssba-btn-save' ).html( '<i class="fa fa-spinner fa-spin"></i>' );
|
548 |
+
|
549 |
+
// Disable all inputs.
|
550 |
+
$( ':input' ).prop( 'disabled', true );
|
551 |
+
$( '.ssba-admin-wrap input:checkbox' ).bootstrapSwitch( 'disabled', true );
|
552 |
+
|
553 |
+
$.post(
|
554 |
+
$( submit ).prop( 'action' ),
|
555 |
+
{
|
556 |
+
ssbaData: ssbaData
|
557 |
+
},
|
558 |
+
function() {
|
559 |
+
|
560 |
+
// Show success.
|
561 |
+
$( 'button.ssba-btn-save-success' ).fadeIn( 100 ).delay( 2500 ).fadeOut( 200 );
|
562 |
+
|
563 |
+
// Re-enable inputs and reset save button.
|
564 |
+
$( ':input' ).prop( 'disabled', false );
|
565 |
+
$( '.ssba-admin-wrap input:checkbox' ).bootstrapSwitch( 'disabled', false );
|
566 |
+
$( 'button.ssba-btn-save' ).html( '<i class="fa fa-floppy-o"></i>' );
|
567 |
+
|
568 |
+
// Refresh page.
|
569 |
+
location.reload();
|
570 |
+
}
|
571 |
+
); // End post.
|
572 |
+
},
|
573 |
+
|
574 |
+
/**
|
575 |
+
* Update the preview buttons with selected theme.
|
576 |
+
*
|
577 |
+
* @param selection
|
578 |
+
* @param target
|
579 |
+
*/
|
580 |
+
preview: function( selection, target ) {
|
581 |
+
var position = $( '#ssba_share_bar_position option:selected' ).val(),
|
582 |
+
newClass = 'ssbp-wrap ssbp--theme-' + selection + ' ' + position;
|
583 |
+
|
584 |
+
$( target ).attr( 'class', newClass );
|
585 |
+
},
|
586 |
+
|
587 |
+
/**
|
588 |
+
* Update class on share bar preview to switch position.
|
589 |
+
*
|
590 |
+
* @param position
|
591 |
+
*/
|
592 |
+
barPosition: function( position ) {
|
593 |
+
if ( 'right' === position ) {
|
594 |
+
$( '#ssba-preview-2' ).removeClass( 'left' );
|
595 |
+
} else {
|
596 |
+
$( '#ssba-preview-2' ).removeClass( 'right' );
|
597 |
+
}
|
598 |
+
|
599 |
+
$( '#ssba-preview-2' ).addClass( position );
|
600 |
+
},
|
601 |
+
|
602 |
+
/**
|
603 |
+
* Add message to classic tab when plus buttons are enabled.
|
604 |
+
*
|
605 |
+
* @param value
|
606 |
+
*/
|
607 |
+
swapButtons: function( value ) {
|
608 |
+
if ( value ) {
|
609 |
+
$( '#classic-share-buttons blockquote.yellow' ).show();
|
610 |
+
} else {
|
611 |
+
$( '#classic-share-buttons blockquote.yellow' ).hide();
|
612 |
+
}
|
613 |
+
},
|
614 |
+
|
615 |
+
/**
|
616 |
+
* Toggle the accordions.
|
617 |
+
*
|
618 |
+
* @param type
|
619 |
+
* @param arrow
|
620 |
+
*/
|
621 |
+
updateAccors: function( type, arrow ) {
|
622 |
+
var closestButton = $( arrow ).parent( '.accor-tab' ).parent( '.accor-wrap' );
|
623 |
+
|
624 |
+
if ( 'â–º' === type ) {
|
625 |
+
|
626 |
+
// Show the button configs.
|
627 |
+
closestButton.find( '.accor-content' ).slideDown();
|
628 |
+
|
629 |
+
// Change the icon next to title.
|
630 |
+
closestButton.find( '.accor-arrow' ).html( '▼' );
|
631 |
+
} else {
|
632 |
+
|
633 |
+
// Show the button configs.
|
634 |
+
closestButton.find( '.accor-content' ).slideUp();
|
635 |
+
|
636 |
+
// Change the icon next to title.
|
637 |
+
closestButton.find( '.accor-arrow' ).html( '►' );
|
638 |
+
}
|
639 |
+
},
|
640 |
+
|
641 |
+
/**
|
642 |
+
* Change classic preview css.
|
643 |
+
*
|
644 |
+
* @param style
|
645 |
+
* @param value
|
646 |
+
* @param target
|
647 |
+
* @param button
|
648 |
+
*/
|
649 |
+
classicCss: function( style, value, target, button ) {
|
650 |
+
var lineHeight,
|
651 |
+
width;
|
652 |
+
|
653 |
+
if ( 'li' === target ) {
|
654 |
+
$( '#ssba-preview' + button + ' .ssbp-list li' ).each( function () {
|
655 |
+
$( this ).find( 'img' ).css( style, value );
|
656 |
+
|
657 |
+
if ( 'height' === style ) {
|
658 |
+
lineHeight = parseInt( $( '#ssba_padding' ).val() ) + parseInt( value ) + 3 + 'px';
|
659 |
+
|
660 |
+
$( '#ssba-preview' + button + ' .ssba-share-text-prev' ).css( 'line-height', lineHeight );
|
661 |
+
$( '#ssba-preview' + button + ' ul li img' ).css( 'line-height', lineHeight );
|
662 |
+
}
|
663 |
+
|
664 |
+
if ( 'padding' === style ) {
|
665 |
+
width = parseInt( $( '#ssba_size' ).val() ) + parseInt( value ) + 3 + 'px';
|
666 |
+
|
667 |
+
$( '#ssba-preview' + button + ' .ssba-share-text-prev' ).css( 'line-height', lineHeight );
|
668 |
+
$( '#ssba-preview' + button + ' ul li img' ).css( 'line-height', lineHeight );
|
669 |
+
}
|
670 |
+
} );
|
671 |
+
}
|
672 |
+
|
673 |
+
if ( 'ul' === target ) {
|
674 |
+
$( '#ssba-preview' + button ).css( style, value );
|
675 |
+
}
|
676 |
+
},
|
677 |
+
|
678 |
+
/**
|
679 |
+
* Change images used in classic preview.
|
680 |
+
*
|
681 |
+
* @param selection
|
682 |
+
* @param target
|
683 |
+
* @param button
|
684 |
+
* @param find
|
685 |
+
*/
|
686 |
+
classicPreview: function( selection, target, button, find, type ) {
|
687 |
+
var title,
|
688 |
+
imgSrc,
|
689 |
+
height = $( '#ssba_' + type + '_height' ).val(),
|
690 |
+
margin = $( '#ssba_plus_margin' ).val(),
|
691 |
+
placement = $( '#ssba_plus_text_placement option:selected' ).val(),
|
692 |
+
lineHeight,
|
693 |
+
self = this;
|
694 |
+
|
695 |
+
if ( '' === height ) {
|
696 |
+
height = 48;
|
697 |
+
}
|
698 |
+
|
699 |
+
if ( '' === margin ) {
|
700 |
+
margin = 0;
|
701 |
+
}
|
702 |
+
|
703 |
+
lineHeight = parseInt( height ) + parseInt( margin ) * 2;
|
704 |
+
|
705 |
+
if ( ( 'height' === target || 'margin' === target ) && ( '' === button || '-1' === button ) && ( 'above' !== placement && 'below' !== placement ) ) {
|
706 |
+
$( '#ssba-preview' + button + ' .ssba-share-text-prev' ).css( 'line-height', lineHeight + 'px' );
|
707 |
+
$( '#ssba-preview' + button + ' ul li img' ).css( 'line-height', lineHeight + 'px' );
|
708 |
+
}
|
709 |
+
|
710 |
+
if ( 'height' === target && 'share' === type ) {
|
711 |
+
self.updateInlineStyle();
|
712 |
+
}
|
713 |
+
|
714 |
+
$( '#ssba-preview' + button + ' .ssbp-list li' ).each( function() {
|
715 |
+
if ( '' === target ) {
|
716 |
+
title = $( this ).find( find ).attr( 'title' ).toLowerCase();
|
717 |
+
imgSrc = self.data.site + selection + '/' + title.replace( /[^a-zA-Z 0-9]+/g, '' ).replace( ' ', '_' ) + '.png';
|
718 |
+
|
719 |
+
if ( 'custom' !== selection ) {
|
720 |
+
$( this ).find( find ).attr( 'src', imgSrc );
|
721 |
+
} else {
|
722 |
+
$( this ).find( find ).attr( 'src', '' );
|
723 |
+
}
|
724 |
+
}
|
725 |
+
|
726 |
+
if ( '' !== find ) {
|
727 |
+
$( this ).find( find ).css( target, selection );
|
728 |
+
} else {
|
729 |
+
$( this ).css( target, selection );
|
730 |
+
}
|
731 |
+
} );
|
732 |
+
},
|
733 |
+
|
734 |
+
/**
|
735 |
+
* Update the share text styling.
|
736 |
+
*
|
737 |
+
* @param type
|
738 |
+
* @param value
|
739 |
+
* @param target
|
740 |
+
*/
|
741 |
+
classicTextCss: function( type, value, target ) {
|
742 |
+
var height = $( '#ssba_plus_height' ).val(),
|
743 |
+
margin = $( '#ssba_plus_margin' ).val(),
|
744 |
+
cheight = $( '#ssba_size' ).val(),
|
745 |
+
cmargin = $( '#ssba_padding' ).val() * 2,
|
746 |
+
lineHeight,
|
747 |
+
clineHeight;
|
748 |
+
|
749 |
+
if ( '' === height || '' === cheight ) {
|
750 |
+
height = 48;
|
751 |
+
cheight = 48;
|
752 |
+
}
|
753 |
+
|
754 |
+
if ( '' === margin || '' === cmargin ) {
|
755 |
+
margin = 0;
|
756 |
+
cmargin = 0;
|
757 |
+
}
|
758 |
+
|
759 |
+
lineHeight = parseInt( height ) + parseInt( margin ) * 2;
|
760 |
+
clineHeight = parseInt( cheight ) + parseInt( cmargin );
|
761 |
+
|
762 |
+
if ( 'float' === type ) {
|
763 |
+
$( '#ssba-preview-1 .ssba-share-text-prev' ).css( 'line-height', clineHeight + 'px' );
|
764 |
+
$( '#ssba-preview-1 ul li img' ).css( 'line-height', clineHeight + 'px' );
|
765 |
+
}
|
766 |
+
|
767 |
+
if ( 'html' !== type && 'placement' !== type ) {
|
768 |
+
$( target ).css( type, value );
|
769 |
+
}
|
770 |
+
|
771 |
+
if ( 'html' === type ) {
|
772 |
+
$( target ).html( value );
|
773 |
+
}
|
774 |
+
|
775 |
+
if ( 'placement' === type && 'above' === value ) {
|
776 |
+
$( target ).css( { 'float' : 'none', 'display' : 'inline' } );
|
777 |
+
$( '.ssba-share-text-prev' ).css( 'line-height', 'inherit' );
|
778 |
+
}
|
779 |
+
|
780 |
+
if ( 'placement' === type && 'below' === value ) {
|
781 |
+
$( target ).css( { 'display' : 'table-footer-group', 'float' : 'none' } );
|
782 |
+
$( '.ssba-share-text-prev' ).css( 'line-height', 'inherit' );
|
783 |
+
}
|
784 |
+
},
|
785 |
+
|
786 |
+
/**
|
787 |
+
* Update the networks in the preview with new list.
|
788 |
+
*
|
789 |
+
* @param list
|
790 |
+
* @param number
|
791 |
+
* @param type
|
792 |
+
*/
|
793 |
+
updateNetworkPreview: function( list, number, type ) {
|
794 |
+
$( '#ssba-preview' + number + ' .ssbp-list li' ).addClass( 'ssba-hide-button' );
|
795 |
+
$.each( list, function( index, id ) {
|
796 |
+
$( '#ssba-preview' + number + ' .ssbp-list li' ).each( function() {
|
797 |
+
var newid = $( this ).find( type ).attr( 'title' ).toLowerCase().replace( '+', '' ).replace( ' ', '_' );
|
798 |
+
|
799 |
+
if ( id === newid ) {
|
800 |
+
$( this ).removeClass( 'ssba-hide-button' );
|
801 |
+
}
|
802 |
+
} );
|
803 |
+
} );
|
804 |
+
},
|
805 |
+
|
806 |
+
/**
|
807 |
+
* Update style for non DOM styles.
|
808 |
+
*/
|
809 |
+
updateInlineStyle: function() {
|
810 |
+
var iconSize = $( '#ssba_plus_icon_size' ).val(),
|
811 |
+
iconLineHeight = $( '#ssba_plus_height' ).val(),
|
812 |
+
iconColor = $( '#ssba_plus_icon_color' ).val(),
|
813 |
+
iconColorHover = $( '#ssba_plus_icon_hover_color' ).val(),
|
814 |
+
buttonColorHover = $( '#ssba_plus_button_hover_color' ).val(),
|
815 |
+
iconSizeBar = $( '#ssba_share_icon_size' ).val(),
|
816 |
+
iconLineHeightBar = $( '#ssba_share_height' ).val(),
|
817 |
+
iconColorBar = $( '#ssba_share_icon_color' ).val(),
|
818 |
+
iconColorHoverBar = $( '#ssba_share_icon_hover_color' ).val(),
|
819 |
+
buttonColorHoverBar = $( '#ssba_share_button_hover_color' ).val(),
|
820 |
+
newStyle = '#ssba-preview .ssbp-btn:before{ font-size: ' + iconSize + 'px; line-height: ' + iconLineHeight + 'px; color: ' + iconColor + '; } #ssba-preview .ssbp-btn:hover::before { color: ' + iconColorHover + '; } #ssba-preview .ssbp-btn:hover { background: ' + buttonColorHover + '!important; } #ssba-preview-2 .ssbp-btn:before{ font-size: ' + iconSizeBar + 'px; line-height: ' + iconLineHeightBar + 'px; color: ' + iconColorBar + '; } #ssba-preview-2 .ssbp-btn:hover::before { color: ' + iconColorHoverBar + '; } #ssba-preview-2 .ssbp-btn:hover { background: ' + buttonColorHoverBar + '!important; }';
|
821 |
+
|
822 |
+
$( '#simple-share-buttons-adder-styles-inline-css' ).html( newStyle );
|
823 |
+
},
|
824 |
+
|
825 |
+
/**
|
826 |
+
* Add dismiss status to blockquote notices.
|
827 |
+
*
|
828 |
+
* @param type
|
829 |
+
*/
|
830 |
+
dismissNotice: function( type ){
|
831 |
+
// Send newsletter id to the test function.
|
832 |
+
wp.ajax.post( 'dismiss_notice', {
|
833 |
+
type: type,
|
834 |
+
nonce: this.data.nonce
|
835 |
+
} ).always( function(response) {
|
836 |
+
|
837 |
+
// Hide notice.
|
838 |
+
$( '#' + type ).closest( 'blockquote' ).hide();
|
839 |
+
} );
|
840 |
+
},
|
841 |
+
|
842 |
+
/**
|
843 |
+
* Copy text to clipboard
|
844 |
+
*
|
845 |
+
* @param copiedText
|
846 |
+
*/
|
847 |
+
copyText: function( copiedText ) {
|
848 |
+
copiedText.select();
|
849 |
+
document.execCommand( 'copy' );
|
850 |
+
}
|
851 |
+
};
|
852 |
+
} )( window.jQuery, window.wp );
|
js/ssba.js
CHANGED
@@ -1,40 +1,99 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
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 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
1 |
+
/**
|
2 |
+
* Main.
|
3 |
+
*
|
4 |
+
* @package SimpleShareButtonsAdder
|
5 |
+
*/
|
6 |
+
|
7 |
+
/* exported Main */
|
8 |
+
var Main = ( function( $, FB ) {
|
9 |
+
'use strict';
|
10 |
+
|
11 |
+
return {
|
12 |
+
/**
|
13 |
+
* Holds data.
|
14 |
+
*/
|
15 |
+
data: {},
|
16 |
+
|
17 |
+
/**
|
18 |
+
* Boot plugin.
|
19 |
+
*
|
20 |
+
* @param data
|
21 |
+
*/
|
22 |
+
boot: function( data ) {
|
23 |
+
this.data = data;
|
24 |
+
|
25 |
+
$( document ).ready( function() {
|
26 |
+
this.init();
|
27 |
+
}.bind( this ) );
|
28 |
+
},
|
29 |
+
|
30 |
+
/**
|
31 |
+
* Initialize plugin.
|
32 |
+
*/
|
33 |
+
init: function() {
|
34 |
+
this.listen();
|
35 |
+
this.removeP();
|
36 |
+
},
|
37 |
+
|
38 |
+
/**
|
39 |
+
* Listener event.
|
40 |
+
*/
|
41 |
+
listen: function() {
|
42 |
+
var self = this;
|
43 |
+
|
44 |
+
// Upon clicking a share button.
|
45 |
+
$( 'body' ).on( 'click', '.ssba-wrap a', function( event ) {
|
46 |
+
|
47 |
+
// Don't go the the href yet.
|
48 |
+
event.preventDefault();
|
49 |
+
self.engageShareButton( this );
|
50 |
+
} );
|
51 |
+
},
|
52 |
+
|
53 |
+
/**
|
54 |
+
* Share button popup
|
55 |
+
*
|
56 |
+
* @param event
|
57 |
+
*/
|
58 |
+
engageShareButton: function( event ) {
|
59 |
+
|
60 |
+
// If it's facebook mobile.
|
61 |
+
if ( 'mobile' === $( this ).data( 'facebook' ) ) {
|
62 |
+
FB.ui( {
|
63 |
+
method: 'share',
|
64 |
+
mobile_iframe: true,
|
65 |
+
href: $( this ).data( 'href' )
|
66 |
+
}, function( response ) {} );
|
67 |
+
} else {
|
68 |
+
|
69 |
+
// These share options don't need to have a popup.
|
70 |
+
if ( 'email' === $( this ).data( 'site' ) || 'print' === $( this ).data( 'site' ) || 'pinterest' === $( this ).data( 'site' ) ) {
|
71 |
+
|
72 |
+
// Just redirect.
|
73 |
+
window.location.href = $( this ).attr( 'href' );
|
74 |
+
} else {
|
75 |
+
|
76 |
+
// Prepare popup window.
|
77 |
+
var width = 575,
|
78 |
+
height = 520,
|
79 |
+
left = ( $( window ).width() - width ) / 2,
|
80 |
+
top = ( $( window ).height() - height ) / 2,
|
81 |
+
opts = 'status=1' +
|
82 |
+
',width=' + width +
|
83 |
+
',height=' + height +
|
84 |
+
',top=' + top +
|
85 |
+
',left=' + left;
|
86 |
+
|
87 |
+
// Open the share url in a smaller window.
|
88 |
+
window.open( $( event ).attr( 'href' ), 'share', opts );
|
89 |
+
}
|
90 |
+
}
|
91 |
+
},
|
92 |
+
|
93 |
+
/**
|
94 |
+
* Remove generated p tag from facebook save button.
|
95 |
+
*/
|
96 |
+
removeP: function() {
|
97 |
+
}
|
98 |
+
};
|
99 |
+
} )( window.jQuery, window.FB );
|
js/ssba.min.js
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
jQuery(document).ready(function(){jQuery(".ssba-wrap a").click(function(a){if(a.preventDefault(),"mobile"==jQuery(this).data("facebook"))FB.ui({method:"share",mobile_iframe:!0,href:jQuery(this).data("href")},function(a){});else if("email"==jQuery(this).data("site")||"print"==jQuery(this).data("site")||"pinterest"==jQuery(this).data("site"))window.location.href=jQuery(this).attr("href");else{var b=575,c=520,d=(jQuery(window).width()-b)/2,e=(jQuery(window).height()-c)/2,f="status=1,width="+b+",height="+c+",top="+e+",left="+d;window.open(jQuery(this).attr("href"),"share",f)}})});
|
Â
|
js/ssba_admin.js
DELETED
@@ -1,122 +0,0 @@
|
|
1 |
-
jQuery(document).ready(function() {
|
2 |
-
|
3 |
-
// switch for checkboxes
|
4 |
-
jQuery(".ssba-admin-wrap input:checkbox").bootstrapSwitch({
|
5 |
-
onColor: 'primary',
|
6 |
-
size: 'normal'
|
7 |
-
});
|
8 |
-
|
9 |
-
// color picker
|
10 |
-
jQuery('.ssba-colorpicker').colpick({
|
11 |
-
layout:'hex',
|
12 |
-
submit:1,
|
13 |
-
onSubmit:function(hsb,hex,rgb,el,colid) {
|
14 |
-
jQuery(el).val('#'+hex);
|
15 |
-
jQuery(el).css('border-color', '#'+hex);
|
16 |
-
jQuery(el).colpickHide();
|
17 |
-
}
|
18 |
-
});
|
19 |
-
|
20 |
-
jQuery('[data-toggle="tooltip"]').tooltip();
|
21 |
-
|
22 |
-
//------- INCLUDE LIST ----------//
|
23 |
-
|
24 |
-
// add drag and sort functions to include table
|
25 |
-
jQuery(function() {
|
26 |
-
jQuery( "#ssbasort1, #ssbasort2" ).sortable({
|
27 |
-
connectWith: ".ssbaSortable"
|
28 |
-
}).disableSelection();
|
29 |
-
});
|
30 |
-
|
31 |
-
// extract and add include list to hidden field
|
32 |
-
jQuery('#ssba_selected_buttons').val(jQuery('#ssbasort2 li').map(function() {
|
33 |
-
// For each <li> in the list, return its inner text and let .map()
|
34 |
-
// build an array of those values.
|
35 |
-
return jQuery(this).attr('id');
|
36 |
-
}).get());
|
37 |
-
|
38 |
-
// after a change, extract and add include list to hidden field
|
39 |
-
jQuery('.ssbp-wrap').mouseout(function() {
|
40 |
-
jQuery('#ssba_selected_buttons').val(jQuery('#ssbasort2 li').map(function() {
|
41 |
-
// For each <li> in the list, return its inner text and let .map()
|
42 |
-
// build an array of those values.
|
43 |
-
return jQuery(this).attr('id');
|
44 |
-
}).get());
|
45 |
-
});
|
46 |
-
|
47 |
-
|
48 |
-
// when changing image sets
|
49 |
-
jQuery('#ssba_image_set').change(function(){
|
50 |
-
|
51 |
-
if (jQuery("#ssba_image_set").val() == "custom" ) {
|
52 |
-
jQuery("#ssba-custom-images").fadeIn(100);
|
53 |
-
}
|
54 |
-
if(jQuery("#ssba_image_set").val() != "custom" ) {
|
55 |
-
jQuery("#ssba-custom-images").fadeOut(100);
|
56 |
-
}
|
57 |
-
});
|
58 |
-
|
59 |
-
// ----- IMAGE UPLOADS ------ //
|
60 |
-
var file_frame;
|
61 |
-
|
62 |
-
jQuery('.ssbpUpload').click(function(event){
|
63 |
-
|
64 |
-
event.preventDefault();
|
65 |
-
|
66 |
-
// set the field ID we shall add the img url to
|
67 |
-
var strInputID = jQuery(this).data('ssbp-input');
|
68 |
-
|
69 |
-
// Create the media frame.
|
70 |
-
file_frame = wp.media.frames.file_frame = wp.media({
|
71 |
-
multiple: false // Set to true to allow multiple files to be selected
|
72 |
-
});
|
73 |
-
|
74 |
-
// When an image is selected, run a callback.
|
75 |
-
file_frame.on( 'select', function() {
|
76 |
-
// We set multiple to false so only get one image from the uploader
|
77 |
-
var attachment = file_frame.state().get('selection').first().toJSON();
|
78 |
-
jQuery('#' + strInputID).val(attachment['url']);
|
79 |
-
});
|
80 |
-
|
81 |
-
// Finally, open the modal
|
82 |
-
file_frame.open();
|
83 |
-
});
|
84 |
-
//---------------------------------------------------------------------------------------//
|
85 |
-
//
|
86 |
-
// SSBA ADMIN FORM
|
87 |
-
//
|
88 |
-
jQuery( "#ssba-admin-form:not('.ssba-form-non-ajax')" ).on( 'submit', function(e) {
|
89 |
-
|
90 |
-
// don't submit the form
|
91 |
-
e.preventDefault();
|
92 |
-
|
93 |
-
// show spinner to show save in progress
|
94 |
-
jQuery("button.ssba-btn-save").html('<i class="fa fa-spinner fa-spin"></i>');
|
95 |
-
|
96 |
-
// get posted data and serialise
|
97 |
-
var ssbaData = jQuery("#ssba-admin-form").serialize();
|
98 |
-
|
99 |
-
// disable all inputs
|
100 |
-
jQuery(':input').prop('disabled', true);
|
101 |
-
jQuery(".ssba-admin-wrap input:checkbox").bootstrapSwitch('disabled', true);
|
102 |
-
|
103 |
-
|
104 |
-
jQuery.post(
|
105 |
-
jQuery( this ).prop( 'action' ),
|
106 |
-
{
|
107 |
-
ssbaData: ssbaData
|
108 |
-
},
|
109 |
-
function() {
|
110 |
-
|
111 |
-
// show success
|
112 |
-
jQuery('button.ssba-btn-save-success').fadeIn(100).delay(2500).fadeOut(200);
|
113 |
-
|
114 |
-
// re-enable inputs and reset save button
|
115 |
-
jQuery(':input').prop('disabled', false);
|
116 |
-
jQuery(".ssba-admin-wrap input:checkbox").bootstrapSwitch('disabled', false);
|
117 |
-
jQuery("button.ssba-btn-save").html('<i class="fa fa-floppy-o"></i>');
|
118 |
-
}
|
119 |
-
); // end post
|
120 |
-
} ); // end form submit
|
121 |
-
|
122 |
-
});
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
js/ssbp_admin.js
DELETED
@@ -1,135 +0,0 @@
|
|
1 |
-
jQuery(document).ready(function() {
|
2 |
-
|
3 |
-
// switch for checkboxes
|
4 |
-
jQuery(".ssbp-admin-wrap input:checkbox:not('.ssbp-post-type')").bootstrapSwitch({
|
5 |
-
onColor: 'primary',
|
6 |
-
size: 'normal'
|
7 |
-
});
|
8 |
-
|
9 |
-
// switch for post type checkboxes
|
10 |
-
jQuery("input.ssbp-post-type").bootstrapSwitch({
|
11 |
-
onColor: 'default',
|
12 |
-
onText: 'OFF',
|
13 |
-
offColor: 'primary',
|
14 |
-
offText: 'ON',
|
15 |
-
inverse: true,
|
16 |
-
size: 'normal'
|
17 |
-
});
|
18 |
-
|
19 |
-
jQuery('[data-toggle="tooltip"]').tooltip();
|
20 |
-
|
21 |
-
// simple file input
|
22 |
-
jQuery(".filestyle").filestyle({icon: false});
|
23 |
-
|
24 |
-
jQuery('.ssbp-updated').fadeIn('fast');
|
25 |
-
jQuery('.ssbp-updated').delay(1000).fadeOut('slow');
|
26 |
-
|
27 |
-
//------- INCLUDE LIST ----------//
|
28 |
-
|
29 |
-
// add drag and sort functions to include table
|
30 |
-
jQuery(function() {
|
31 |
-
jQuery( "#ssbpsort1, #ssbpsort2" ).sortable({
|
32 |
-
connectWith: ".ssbpSortable"
|
33 |
-
}).disableSelection();
|
34 |
-
});
|
35 |
-
|
36 |
-
|
37 |
-
// extract and add include list to hidden field
|
38 |
-
jQuery('#ssbp_selected_buttons').val(jQuery('#ssbpsort2 li').map(function() {
|
39 |
-
// For each <li> in the list, return its inner text and let .map()
|
40 |
-
// build an array of those values.
|
41 |
-
return jQuery(this).attr('id');
|
42 |
-
}).get());
|
43 |
-
|
44 |
-
// after a change, extract and add include list to hidden field
|
45 |
-
jQuery('.ssbp-include-list').mouseout(function() {
|
46 |
-
jQuery('#selected_buttons').val(jQuery('#ssbpsort2 li').map(function() {
|
47 |
-
// For each <li> in the list, return its inner text and let .map()
|
48 |
-
// build an array of those values.
|
49 |
-
return jQuery(this).attr('id');
|
50 |
-
}).get());
|
51 |
-
});
|
52 |
-
|
53 |
-
// when support details textarea is clicked
|
54 |
-
jQuery('#ssbp-support-textarea,.support-details-btn').click(function(){
|
55 |
-
// select text in support details textarea
|
56 |
-
document.getElementById("ssbp-support-textarea").select();
|
57 |
-
});
|
58 |
-
|
59 |
-
jQuery("#ssb-official-import").click(function(){
|
60 |
-
if(confirm("Are you sure? All your current settings will be overwritten!")) {
|
61 |
-
return true;
|
62 |
-
}
|
63 |
-
return false;
|
64 |
-
});
|
65 |
-
|
66 |
-
// ----- IMAGE UPLOADS ------ //
|
67 |
-
var file_frame;
|
68 |
-
|
69 |
-
jQuery('.customUpload').click(function(event){
|
70 |
-
|
71 |
-
event.preventDefault();
|
72 |
-
|
73 |
-
// set the field ID we shall add the img url to
|
74 |
-
var strInputID = jQuery(this).data('ssbp-input');
|
75 |
-
|
76 |
-
// Create the media frame.
|
77 |
-
file_frame = wp.media.frames.file_frame = wp.media({
|
78 |
-
multiple: false // Set to true to allow multiple files to be selected
|
79 |
-
});
|
80 |
-
|
81 |
-
// When an image is selected, run a callback.
|
82 |
-
file_frame.on( 'select', function() {
|
83 |
-
// We set multiple to false so only get one image from the uploader
|
84 |
-
var attachment = file_frame.state().get('selection').first().toJSON();
|
85 |
-
jQuery('#' + strInputID).val(attachment['url']);
|
86 |
-
});
|
87 |
-
|
88 |
-
// Finally, open the modal
|
89 |
-
file_frame.open();
|
90 |
-
});
|
91 |
-
|
92 |
-
// select ortsh url upon clicking the text input
|
93 |
-
jQuery(".ssbp-ortsh-input-url").on("click", function () {
|
94 |
-
jQuery(this).select();
|
95 |
-
});
|
96 |
-
|
97 |
-
//---------------------------------------------------------------------------------------//
|
98 |
-
//
|
99 |
-
// SSBP ADMIN FORM
|
100 |
-
//
|
101 |
-
jQuery( "#ssbp-admin-form:not('.ssbp-form-non-ajax')" ).on( 'submit', function(e) {
|
102 |
-
|
103 |
-
// don't submit the form
|
104 |
-
e.preventDefault();
|
105 |
-
|
106 |
-
// show spinner to show save in progress
|
107 |
-
jQuery("button.ssbp-btn-save").html('<i class="fa fa-spinner fa-spin"></i>');
|
108 |
-
|
109 |
-
// get posted data and serialise
|
110 |
-
var ssbpData = jQuery("#ssbp-admin-form").serialize();
|
111 |
-
|
112 |
-
// disable all inputs
|
113 |
-
jQuery(':input').prop('disabled', true);
|
114 |
-
jQuery(".ssbp-admin-wrap input:checkbox").bootstrapSwitch('disabled', true);
|
115 |
-
|
116 |
-
|
117 |
-
jQuery.post(
|
118 |
-
jQuery( this ).prop( 'action' ),
|
119 |
-
{
|
120 |
-
ssbpData: ssbpData
|
121 |
-
},
|
122 |
-
function() {
|
123 |
-
|
124 |
-
// show success
|
125 |
-
jQuery('button.ssbp-btn-save-success').fadeIn(100).delay(2500).fadeOut(200);
|
126 |
-
|
127 |
-
// re-enable inputs and reset save button
|
128 |
-
jQuery(':input').prop('disabled', false);
|
129 |
-
jQuery(".ssbp-admin-wrap input:checkbox").bootstrapSwitch('disabled', false);
|
130 |
-
jQuery("button.ssbp-btn-save").html('<i class="fa fa-floppy-o"></i>');
|
131 |
-
}
|
132 |
-
); // end post
|
133 |
-
} ); // end form submit
|
134 |
-
|
135 |
-
});
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
js/{ssba_bootstrap.js → vendor/bootstrap.js}
RENAMED
File without changes
|
js/{ssba_colorpicker.js → vendor/colorpicker.js}
RENAMED
@@ -64,6 +64,7 @@ For usage and examples: colpick.com/plugin
|
|
64 |
Â
//Called when the new color is changed
|
65 |
Â
change = function (ev) {
|
66 |
Â
var cal = $(this).parent().parent(), col;
|
Â
|
|
67 |
Â
if (this.parentNode.className.indexOf('_hex') > 0) {
|
68 |
Â
cal.data('colpick').color = col = hexToHsb(fixHex(this.value));
|
69 |
Â
fillRGBFields(col, cal.get(0));
|
@@ -85,6 +86,7 @@ For usage and examples: colpick.com/plugin
|
|
85 |
Â
fillHexFields(col, cal.get(0));
|
86 |
Â
fillHSBFields(col, cal.get(0));
|
87 |
Â
}
|
Â
|
|
88 |
Â
setSelector(col, cal.get(0));
|
89 |
Â
setHue(col, cal.get(0));
|
90 |
Â
setNewColor(col, cal.get(0));
|
@@ -221,11 +223,77 @@ For usage and examples: colpick.com/plugin
|
|
221 |
Â
},
|
222 |
Â
//Submit button
|
223 |
Â
clickSubmit = function (ev) {
|
224 |
-
var cal = $(this).parent()
|
225 |
-
|
Â
|
|
Â
|
|
Â
|
|
226 |
Â
cal.data('colpick').origColor = col;
|
227 |
Â
setCurrentColor(col, cal.get(0));
|
228 |
Â
cal.data('colpick').onSubmit(col, hsbToHex(col), hsbToRgb(col), cal.data('colpick').el);
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
229 |
Â
},
|
230 |
Â
//Show/hide the color picker
|
231 |
Â
show = function (ev) {
|
64 |
Â
//Called when the new color is changed
|
65 |
Â
change = function (ev) {
|
66 |
Â
var cal = $(this).parent().parent(), col;
|
67 |
+
|
68 |
Â
if (this.parentNode.className.indexOf('_hex') > 0) {
|
69 |
Â
cal.data('colpick').color = col = hexToHsb(fixHex(this.value));
|
70 |
Â
fillRGBFields(col, cal.get(0));
|
86 |
Â
fillHexFields(col, cal.get(0));
|
87 |
Â
fillHSBFields(col, cal.get(0));
|
88 |
Â
}
|
89 |
+
|
90 |
Â
setSelector(col, cal.get(0));
|
91 |
Â
setHue(col, cal.get(0));
|
92 |
Â
setNewColor(col, cal.get(0));
|
223 |
Â
},
|
224 |
Â
//Submit button
|
225 |
Â
clickSubmit = function (ev) {
|
226 |
+
var cal = $(this).parent(),
|
227 |
+
col = cal.data('colpick').color,
|
228 |
+
submitButton = $( '.colpick_submit' ).attr( 'id' ),
|
229 |
+
bWidth = $( '#ssba_border_width' ).val() + 'px';
|
230 |
+
|
231 |
Â
cal.data('colpick').origColor = col;
|
232 |
Â
setCurrentColor(col, cal.get(0));
|
233 |
Â
cal.data('colpick').onSubmit(col, hsbToHex(col), hsbToRgb(col), cal.data('colpick').el);
|
234 |
+
|
235 |
+
// Classic share text color.
|
236 |
+
if ( 'ssba_font_color' === submitButton ) {
|
237 |
+
$( '.ssba-share-text-prev' ).css( 'color', '#' + hsbToHex( col ) );
|
238 |
+
}
|
239 |
+
|
240 |
+
// Plus share text color.
|
241 |
+
if ( 'ssba_plus_font_color' === submitButton ) {
|
242 |
+
$( '#ssba-preview .ssba-share-text-prev' ).css( 'color', '#' + hsbToHex(col ) );
|
243 |
+
}
|
244 |
+
|
245 |
+
// Classic Container Border Color.
|
246 |
+
if ( 'ssba_div_border' === submitButton ) {
|
247 |
+
$( '#ssba-preview-1' ).css( 'border', bWidth + ' solid ' + '#' + hsbToHex( col ) );
|
248 |
+
}
|
249 |
+
|
250 |
+
// Classic Container Background Color.
|
251 |
+
if ( 'ssba_div_background' === submitButton ) {
|
252 |
+
$( '#ssba-preview-1' ).css( 'background', '#' + hsbToHex( col ) );
|
253 |
+
}
|
254 |
+
|
255 |
+
// Button color.
|
256 |
+
if ( 'ssba_plus_button_color' === submitButton ) {
|
257 |
+
$( '#ssba-preview .ssbp-list li' ).each( function() {
|
258 |
+
$( this ).find( 'a' ).css( 'background', '#' + hsbToHex( col ) );
|
259 |
+
} );
|
260 |
+
}
|
261 |
+
|
262 |
+
// Icon color.
|
263 |
+
if ( 'ssba_plus_icon_color' === submitButton ) {
|
264 |
+
var iconSize = $( '#ssba_plus_icon_size' ).val(),
|
265 |
+
iconLineHeight = $( '#ssba_plus_height' ).val(),
|
266 |
+
iconColor = '#' + hsbToHex( col ),
|
267 |
+
iconColorHover = $( '#ssba_plus_icon_hover_color' ).val(),
|
268 |
+
buttonColorHover = $( '#ssba_plus_button_hover_color' ).val(),
|
269 |
+
newStyle = '#ssba-preview .ssbp-btn:before{ font-size: ' + iconSize + 'px; line-height: ' + iconLineHeight + 'px; color: ' + iconColor + '; } #ssba-preview .ssbp-btn:hover::before { color: ' + iconColorHover + '; } #ssba-preview .ssbp-btn:hover { background: ' + buttonColorHover + '!important; }';
|
270 |
+
|
271 |
+
$( '#simple-share-buttons-adder-styles-inline-css' ).html( newStyle );
|
272 |
+
}
|
273 |
+
|
274 |
+
// Icon hover color
|
275 |
+
if ( 'ssba_plus_icon_hover_color' === submitButton ) {
|
276 |
+
var iconSize = $( '#ssba_plus_icon_size' ).val(),
|
277 |
+
iconLineHeight = $( '#ssba_plus_height' ).val(),
|
278 |
+
iconColor = $( '#ssba_plus_icon_color' ).val(),
|
279 |
+
iconColorHover = '#' + hsbToHex( col ),
|
280 |
+
buttonColorHover = $( '#ssba_plus_button_hover_color' ).val(),
|
281 |
+
newStyle = '#ssba-preview .ssbp-btn:before{ font-size: ' + iconSize + 'px; line-height: ' + iconLineHeight + 'px; color: ' + iconColor + '; } #ssba-preview .ssbp-btn:hover::before { color: ' + iconColorHover + '; } #ssba-preview .ssbp-btn:hover { background: ' + buttonColorHover + '!important; }';
|
282 |
+
|
283 |
+
$( '#simple-share-buttons-adder-styles-inline-css' ).html( newStyle );
|
284 |
+
}
|
285 |
+
|
286 |
+
// Button hover color
|
287 |
+
if ( 'ssba_plus_button_hover_color' === submitButton ) {
|
288 |
+
var iconSize = $( '#ssba_plus_icon_size' ).val(),
|
289 |
+
iconLineHeight = $( '#ssba_plus_height' ).val(),
|
290 |
+
iconColor = $( '#ssba_plus_icon_color' ).val(),
|
291 |
+
iconColorHover = $( '#ssba_plus_icon_hover_color' ).val(),
|
292 |
+
buttonColorHover = '#' + hsbToHex( col ),
|
293 |
+
newStyle = '#ssba-preview .ssbp-btn:before{ font-size: ' + iconSize + 'px; line-height: ' + iconLineHeight + 'px; color: ' + iconColor + '; } #ssba-preview .ssbp-btn:hover::before { color: ' + iconColorHover + '; } #ssba-preview .ssbp-btn:hover { background: ' + buttonColorHover + '!important; }';
|
294 |
+
|
295 |
+
$( '#simple-share-buttons-adder-styles-inline-css' ).html( newStyle );
|
296 |
+
}
|
297 |
Â
},
|
298 |
Â
//Show/hide the color picker
|
299 |
Â
show = function (ev) {
|
js/{ssba_switch.js → vendor/switch.js}
RENAMED
File without changes
|
php/class-admin-bits.php
ADDED
@@ -0,0 +1,420 @@
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
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
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Admin Bits.
|
4 |
+
*
|
5 |
+
* @package SimpleShareButtonsAdder
|
6 |
+
*/
|
7 |
+
|
8 |
+
namespace SimpleShareButtonsAdder;
|
9 |
+
|
10 |
+
/**
|
11 |
+
* Admin Bits Class
|
12 |
+
*
|
13 |
+
* @package SimpleShareButtonsAdder
|
14 |
+
*/
|
15 |
+
class Admin_Bits {
|
16 |
+
|
17 |
+
/**
|
18 |
+
* Plugin instance.
|
19 |
+
*
|
20 |
+
* @var object
|
21 |
+
*/
|
22 |
+
public $plugin;
|
23 |
+
|
24 |
+
/**
|
25 |
+
* Simple_Share_Buttons_Adder instance.
|
26 |
+
*
|
27 |
+
* @var object
|
28 |
+
*/
|
29 |
+
public $class_ssba;
|
30 |
+
|
31 |
+
/**
|
32 |
+
* Database instance.
|
33 |
+
*
|
34 |
+
* @var object
|
35 |
+
*/
|
36 |
+
public $database;
|
37 |
+
|
38 |
+
/**
|
39 |
+
* Admin Panel instance.
|
40 |
+
*
|
41 |
+
* @var object
|
42 |
+
*/
|
43 |
+
public $admin_panel;
|
44 |
+
|
45 |
+
/**
|
46 |
+
* Class constructor.
|
47 |
+
*
|
48 |
+
* @param object $plugin Plugin class.
|
49 |
+
* @param object $class_ssba Simple Share Buttons Adder class.
|
50 |
+
* @param object $database Database class.
|
51 |
+
* @param object $admin_panel Admin Panel class.
|
52 |
+
*/
|
53 |
+
public function __construct( $plugin, $class_ssba, $database, $admin_panel ) {
|
54 |
+
$this->plugin = $plugin;
|
55 |
+
$this->class_ssba = $class_ssba;
|
56 |
+
$this->database = $database;
|
57 |
+
$this->admin_panel = $admin_panel;
|
58 |
+
}
|
59 |
+
|
60 |
+
/**
|
61 |
+
* ShareThis terms notice detector.
|
62 |
+
*
|
63 |
+
* @action admin_notices
|
64 |
+
*/
|
65 |
+
public function sharethis_terms_notice() {
|
66 |
+
// If the sharethis terms have not yet been accepted.
|
67 |
+
if ( isset( $arr_settings['accepted_sharethis_terms'], $arr_settings['hide_share_this_terms'] ) && 'Y' !== $arr_settings['accepted_sharethis_terms'] && true !== $arr_settings['hide_sharethis_terms'] ) {
|
68 |
+
?>
|
69 |
+
<div id="sharethis_terms_notice" class="update-nag notice is-dismissible">
|
70 |
+
<p>
|
71 |
+
<?php echo esc_html__( 'There are some', 'simple-share-buttons-adder' ); ?> <strong><?php echo esc_html__( 'great new features', 'simple-share-buttons-adder' ); ?></strong> <?php echo esc_html__( 'available with Simple Share Buttons Adder 6.3', 'simple-share-buttons-adder' ); ?>,
|
72 |
+
<?php echo esc_html__( 'such as an improved mobile Facebook sharing experience and Facebook analytics.
|
73 |
+
We\'ve updated our' ); ?> <a href="http://simplesharebuttons.com/privacy" target="_blank"><?php echo esc_html__( 'privacy policy and terms of use', 'simple-share-buttons-adder' ); ?></a> <?php echo esc_html__( 'with important changes you should review. To take advantage of the new features, please review and accept the new', 'simple-share-buttons-adder' ); ?> <a href="http://simplesharebuttons.com/privacy" target="_blank">terms and privacy policy</a>.
|
74 |
+
<a href="options-general.php?page=simple-share-buttons-adder&accept-terms=Y">
|
75 |
+
<span class="button button-primary">
|
76 |
+
<?php echo esc_html__( 'I accept', 'simple-share-buttons-adder' ); ?>
|
77 |
+
</span>
|
78 |
+
</a>
|
79 |
+
</p>
|
80 |
+
</div>
|
81 |
+
<script type="text/javascript">
|
82 |
+
jQuery( '#sharethis_terms_notice' ).on( 'click', '.notice-dismiss', function ( event ) {
|
83 |
+
jQuery.post( ajaxurl, { action: 'ssba_hide_terms' } );
|
84 |
+
} );
|
85 |
+
</script>
|
86 |
+
<?php
|
87 |
+
}
|
88 |
+
}
|
89 |
+
|
90 |
+
/**
|
91 |
+
* Add settings link on plugin page.
|
92 |
+
*
|
93 |
+
* @filter plugin_action_links_simple-share-buttons-adder
|
94 |
+
*
|
95 |
+
* @param array $links The supplied links.
|
96 |
+
* @return mixed
|
97 |
+
*/
|
98 |
+
public function ssba_settings_link( $links ) {
|
99 |
+
// Add to plugins links.
|
100 |
+
array_unshift( $links, '<a href="options-general.php?page=simple-share-buttons-adder">' . esc_html__( 'Settings' ) . '</a>' );
|
101 |
+
|
102 |
+
return $links;
|
103 |
+
}
|
104 |
+
|
105 |
+
/**
|
106 |
+
* Hides the terms agreement at user's request.
|
107 |
+
*
|
108 |
+
* @action wp_ajax_ssba_hide_term
|
109 |
+
*/
|
110 |
+
public function ssba_admin_hide_callback() {
|
111 |
+
$this->class_ssba->ssba_update_options( array(
|
112 |
+
'hide_sharethis_terms' => true,
|
113 |
+
) );
|
114 |
+
wp_die();
|
115 |
+
}
|
116 |
+
|
117 |
+
/**
|
118 |
+
* Includes js/css files and upload script.
|
119 |
+
*
|
120 |
+
* @param string $hook_suffix The current admin page hook suffix.
|
121 |
+
* @action admin_enqueue_scripts
|
122 |
+
*/
|
123 |
+
public function enqueue_admin_assets( $hook_suffix ) {
|
124 |
+
$current_url = $this->plugin->dir_url . 'buttons/';
|
125 |
+
|
126 |
+
if ( $this->hook_suffix === $hook_suffix ) {
|
127 |
+
// All extra scripts needed.
|
128 |
+
wp_enqueue_media();
|
129 |
+
wp_enqueue_script( 'media-upload' );
|
130 |
+
wp_enqueue_script( 'jquery-ui-sortable' );
|
131 |
+
wp_enqueue_script( 'jquery-ui' );
|
132 |
+
wp_enqueue_script( "{$this->plugin->assets_prefix}-bootstrap-js" );
|
133 |
+
wp_enqueue_script( "{$this->plugin->assets_prefix}-colorpicker" );
|
134 |
+
wp_enqueue_script( "{$this->plugin->assets_prefix}-switch" );
|
135 |
+
wp_enqueue_script( "{$this->plugin->assets_prefix}-admin" );
|
136 |
+
wp_add_inline_script( "{$this->plugin->assets_prefix}-admin", sprintf( '%s.boot( %s );',
|
137 |
+
__NAMESPACE__,
|
138 |
+
wp_json_encode( array(
|
139 |
+
'site' => $current_url,
|
140 |
+
'nonce' => wp_create_nonce( $this->plugin->meta_prefix ),
|
141 |
+
) )
|
142 |
+
) );
|
143 |
+
|
144 |
+
// Admin styles.
|
145 |
+
wp_enqueue_style( "{$this->plugin->assets_prefix}-readable" );
|
146 |
+
wp_enqueue_style( "{$this->plugin->assets_prefix}-colorpicker" );
|
147 |
+
wp_enqueue_style( "{$this->plugin->assets_prefix}-switch" );
|
148 |
+
wp_enqueue_style( "{$this->plugin->assets_prefix}-font-awesome" );
|
149 |
+
wp_enqueue_style( "{$this->plugin->assets_prefix}-admin-theme" );
|
150 |
+
wp_enqueue_style( "{$this->plugin->assets_prefix}-styles" );
|
151 |
+
}
|
152 |
+
}
|
153 |
+
|
154 |
+
/**
|
155 |
+
* Save dismiss notice status.
|
156 |
+
*
|
157 |
+
* @action wp_ajax_dismiss_notice
|
158 |
+
*/
|
159 |
+
public function dismiss_notice() {
|
160 |
+
check_ajax_referer( $this->plugin->meta_prefix, 'nonce' );
|
161 |
+
|
162 |
+
if ( ! isset( $_POST['type'] ) || '' === $_POST['type'] ) { // WPCS: input var okay.
|
163 |
+
wp_send_json_error( 'dismiss notice failed' );
|
164 |
+
}
|
165 |
+
|
166 |
+
$type = sanitize_text_field( wp_unslash( $_POST['type'] ) );
|
167 |
+
$current_notices = get_option( 'ssba_dismiss_notice' );
|
168 |
+
$current_notices = null !== $current_notices && false !== $current_notices && '' !== $current_notices ? $current_notices : '';
|
169 |
+
|
170 |
+
if ( '' !== $current_notices ) {
|
171 |
+
$new_notice = array_merge( $current_notices, array(
|
172 |
+
$type => false,
|
173 |
+
) );
|
174 |
+
} else {
|
175 |
+
$new_notice = array(
|
176 |
+
$type => false,
|
177 |
+
);
|
178 |
+
}
|
179 |
+
|
180 |
+
update_option( 'ssba_dismiss_notice', $new_notice );
|
181 |
+
}
|
182 |
+
|
183 |
+
/**
|
184 |
+
* Menu settings.
|
185 |
+
*
|
186 |
+
* @action admin_menu
|
187 |
+
*/
|
188 |
+
public function ssba_menu() {
|
189 |
+
// Add menu page.
|
190 |
+
$this->hook_suffix = add_options_page(
|
191 |
+
esc_html__( 'Simple Share Buttons Adder', 'simple-share-buttons-adder' ),
|
192 |
+
esc_html__( 'Simple Share Buttons', 'simple-share-buttons-adder' ),
|
193 |
+
'manage_options',
|
194 |
+
$this->plugin->assets_prefix,
|
195 |
+
array( $this, 'ssba_settings' )
|
196 |
+
);
|
197 |
+
|
198 |
+
// Query the db for current ssba settings.
|
199 |
+
$arr_settings = $this->class_ssba->get_ssba_settings();
|
200 |
+
|
201 |
+
// Get the current version.
|
202 |
+
$version = get_option( 'ssba_version' );
|
203 |
+
|
204 |
+
// There was a version set.
|
205 |
+
if ( false !== $version ) {
|
206 |
+
// Check if not updated to current version.
|
207 |
+
if ( $version < SSBA_VERSION ) {
|
208 |
+
// Run the upgrade function.
|
209 |
+
$this->database->upgrade_ssba( $arr_settings, $version );
|
210 |
+
}
|
211 |
+
}
|
212 |
+
}
|
213 |
+
|
214 |
+
/**
|
215 |
+
* Answer form.
|
216 |
+
*
|
217 |
+
* @return bool
|
218 |
+
*/
|
219 |
+
public function ssba_settings() {
|
220 |
+
// Check if user has the rights to manage options.
|
221 |
+
if ( ! current_user_can( 'manage_options' ) ) {
|
222 |
+
// Permissions message.
|
223 |
+
wp_die( esc_html__( 'You do not have sufficient permissions to access this page.', 'simple-share-buttons-adder' ) );
|
224 |
+
}
|
225 |
+
|
226 |
+
// If a post has been made.
|
227 |
+
if ( isset( $_POST['ssbaData'] ) ) { // WPCS: CSRF ok.
|
228 |
+
// Get posted data.
|
229 |
+
$ssba_post = $_POST['ssbaData']; // WPCS: CSRF ok.
|
230 |
+
|
231 |
+
parse_str( $ssba_post, $ssba_post );
|
232 |
+
|
233 |
+
// If the nonce doesn't check out.
|
234 |
+
if ( ! isset( $ssba_post['ssba_save_nonce'] ) || ! wp_verify_nonce( $ssba_post['ssba_save_nonce'], 'ssba_save_settings' ) ) {
|
235 |
+
die( esc_html__( 'There was no nonce provided, or the one provided did not verify.', 'simple-share-buttons-adder' ) );
|
236 |
+
}
|
237 |
+
|
238 |
+
// Prepare array.
|
239 |
+
$arr_options = array(
|
240 |
+
'ssba_image_set' => $ssba_post['ssba_image_set'],
|
241 |
+
'ssba_size' => $ssba_post['ssba_size'],
|
242 |
+
'ssba_pages' => ( isset( $ssba_post['ssba_pages'] ) ? $ssba_post['ssba_pages'] : null ),
|
243 |
+
'ssba_posts' => ( isset( $ssba_post['ssba_posts'] ) ? $ssba_post['ssba_posts'] : null ),
|
244 |
+
'ssba_cats_archs' => ( isset( $ssba_post['ssba_cats_archs'] ) ? $ssba_post['ssba_cats_archs'] : null ),
|
245 |
+
'ssba_homepage' => ( isset( $ssba_post['ssba_homepage'] ) ? $ssba_post['ssba_homepage'] : null ),
|
246 |
+
'ssba_excerpts' => ( isset( $ssba_post['ssba_excerpts'] ) ? $ssba_post['ssba_excerpts'] : null ),
|
247 |
+
'ssba_plus_pages' => ( isset( $ssba_post['ssba_plus_pages'] ) ? $ssba_post['ssba_plus_pages'] : null ),
|
248 |
+
'ssba_plus_posts' => ( isset( $ssba_post['ssba_plus_posts'] ) ? $ssba_post['ssba_plus_posts'] : null ),
|
249 |
+
'ssba_plus_cats_archs' => ( isset( $ssba_post['ssba_plus_cats_archs'] ) ? $ssba_post['ssba_plus_cats_archs'] : null ),
|
250 |
+
'ssba_plus_homepage' => ( isset( $ssba_post['ssba_plus_homepage'] ) ? $ssba_post['ssba_plus_homepage'] : null ),
|
251 |
+
'ssba_plus_excerpts' => ( isset( $ssba_post['ssba_plus_excerpts'] ) ? $ssba_post['ssba_plus_excerpts'] : null ),
|
252 |
+
'ssba_share_pages' => ( isset( $ssba_post['ssba_share_pages'] ) ? $ssba_post['ssba_share_pages'] : null ),
|
253 |
+
'ssba_share_posts' => ( isset( $ssba_post['ssba_share_posts'] ) ? $ssba_post['ssba_share_posts'] : null ),
|
254 |
+
'ssba_share_cats_archs' => ( isset( $ssba_post['ssba_share_cats_archs'] ) ? $ssba_post['ssba_share_cats_archs'] : null ),
|
255 |
+
'ssba_share_homepage' => ( isset( $ssba_post['ssba_share_homepage'] ) ? $ssba_post['ssba_share_homepage'] : null ),
|
256 |
+
'ssba_share_excerpts' => ( isset( $ssba_post['ssba_share_excerpts'] ) ? $ssba_post['ssba_share_excerpts'] : null ),
|
257 |
+
'ssba_align' => ( isset( $ssba_post['ssba_align'] ) ? $ssba_post['ssba_align'] : null ),
|
258 |
+
'ssba_plus_align' => ( isset( $ssba_post['ssba_plus_align'] ) ? $ssba_post['ssba_plus_align'] : null ),
|
259 |
+
'ssba_padding' => $ssba_post['ssba_padding'],
|
260 |
+
'ssba_before_or_after' => $ssba_post['ssba_before_or_after'],
|
261 |
+
'ssba_before_or_after_plus' => $ssba_post['ssba_before_or_after_plus'],
|
262 |
+
'ssba_additional_css' => $ssba_post['ssba_additional_css'],
|
263 |
+
'ssba_custom_styles' => $ssba_post['ssba_custom_styles'],
|
264 |
+
'ssba_custom_styles_enabled' => $ssba_post['ssba_custom_styles_enabled'],
|
265 |
+
'ssba_email_message' => stripslashes_deep( $ssba_post['ssba_email_message'] ),
|
266 |
+
'ssba_twitter_text' => stripslashes_deep( $ssba_post['ssba_twitter_text'] ),
|
267 |
+
'ssba_buffer_text' => stripslashes_deep( $ssba_post['ssba_buffer_text'] ),
|
268 |
+
'ssba_flattr_user_id' => stripslashes_deep( $ssba_post['ssba_flattr_user_id'] ),
|
269 |
+
'ssba_flattr_url' => stripslashes_deep( $ssba_post['ssba_flattr_url'] ),
|
270 |
+
'ssba_share_new_window' => ( isset( $ssba_post['ssba_share_new_window'] ) ? $ssba_post['ssba_share_new_window'] : null ),
|
271 |
+
'ssba_link_to_ssb' => ( isset( $ssba_post['ssba_link_to_ssb'] ) ? $ssba_post['ssba_link_to_ssb'] : null ),
|
272 |
+
'ssba_show_share_count' => ( isset( $ssba_post['ssba_show_share_count'] ) ? $ssba_post['ssba_show_share_count'] : null ),
|
273 |
+
'ssba_share_count_style' => $ssba_post['ssba_share_count_style'],
|
274 |
+
'ssba_share_count_css' => $ssba_post['ssba_share_count_css'],
|
275 |
+
'ssba_share_count_once' => ( isset( $ssba_post['ssba_share_count_once'] ) ? $ssba_post['ssba_share_count_once'] : null ),
|
276 |
+
'ssba_widget_text' => $ssba_post['ssba_widget_text'],
|
277 |
+
'ssba_rel_nofollow' => ( isset( $ssba_post['ssba_rel_nofollow'] ) ? $ssba_post['ssba_rel_nofollow'] : null ),
|
278 |
+
'ssba_default_pinterest' => ( isset( $ssba_post['ssba_default_pinterest'] ) ? $ssba_post['ssba_default_pinterest'] : null ),
|
279 |
+
'ssba_pinterest_featured' => ( isset( $ssba_post['ssba_pinterest_featured'] ) ? $ssba_post['ssba_pinterest_featured'] : null ),
|
280 |
+
'ssba_content_priority' => ( isset( $ssba_post['ssba_content_priority'] ) ? $ssba_post['ssba_content_priority'] : null ),
|
281 |
+
'ssba_plus_additional_css' => $ssba_post['ssba_plus_additional_css'],
|
282 |
+
'ssba_plus_custom_styles' => $ssba_post['ssba_plus_custom_styles'],
|
283 |
+
'ssba_plus_custom_styles_enabled' => $ssba_post['ssba_plus_custom_styles_enabled'],
|
284 |
+
'ssba_plus_email_message' => stripslashes_deep( $ssba_post['ssba_plus_email_message'] ),
|
285 |
+
'ssba_plus_twitter_text' => stripslashes_deep( $ssba_post['ssba_plus_twitter_text'] ),
|
286 |
+
'ssba_plus_buffer_text' => stripslashes_deep( $ssba_post['ssba_plus_buffer_text'] ),
|
287 |
+
'ssba_plus_flattr_user_id' => stripslashes_deep( $ssba_post['ssba_plus_flattr_user_id'] ),
|
288 |
+
'ssba_plus_flattr_url' => stripslashes_deep( $ssba_post['ssba_plus_flattr_url'] ),
|
289 |
+
'ssba_plus_share_new_window' => ( isset( $ssba_post['ssba_plus_share_new_window'] ) ? $ssba_post['ssba_plus_share_new_window'] : null ),
|
290 |
+
'ssba_plus_link_to_ssb' => ( isset( $ssba_post['ssba_plus_link_to_ssb'] ) ? $ssba_post['ssba_plus_link_to_ssb'] : null ),
|
291 |
+
'ssba_plus_show_share_count' => ( isset( $ssba_post['ssba_plus_show_share_count'] ) ? $ssba_post['ssba_plus_show_share_count'] : null ),
|
292 |
+
'ssba_plus_share_count_style' => $ssba_post['ssba_plus_share_count_style'],
|
293 |
+
'ssba_plus_share_count_css' => $ssba_post['ssba_plus_share_count_css'],
|
294 |
+
'ssba_plus_share_count_once' => ( isset( $ssba_post['ssba_plus_share_count_once'] ) ? $ssba_post['ssba_plus_share_count_once'] : null ),
|
295 |
+
'ssba_plus_widget_text' => $ssba_post['ssba_plus_widget_text'],
|
296 |
+
'ssba_plus_rel_nofollow' => ( isset( $ssba_post['ssba_plus_rel_nofollow'] ) ? $ssba_post['ssba_plus_rel_nofollow'] : null ),
|
297 |
+
'ssba_plus_default_pinterest' => ( isset( $ssba_post['ssba_plus_default_pinterest'] ) ? $ssba_post['ssba_plus_default_pinterest'] : null ),
|
298 |
+
'ssba_plus_pinterest_featured' => ( isset( $ssba_post['ssba_plus_pinterest_featured'] ) ? $ssba_post['ssba_plus_pinterest_featured'] : null ),
|
299 |
+
'ssba_share_additional_css' => $ssba_post['ssba_share_additional_css'],
|
300 |
+
'ssba_share_custom_styles' => $ssba_post['ssba_share_custom_styles'],
|
301 |
+
'ssba_share_custom_styles_enabled' => $ssba_post['ssba_share_custom_styles_enabled'],
|
302 |
+
'ssba_share_email_message' => stripslashes_deep( $ssba_post['ssba_share_email_message'] ),
|
303 |
+
'ssba_share_twitter_text' => stripslashes_deep( $ssba_post['ssba_share_twitter_text'] ),
|
304 |
+
'ssba_share_buffer_text' => stripslashes_deep( $ssba_post['ssba_share_buffer_text'] ),
|
305 |
+
'ssba_share_flattr_user_id' => stripslashes_deep( $ssba_post['ssba_share_flattr_user_id'] ),
|
306 |
+
'ssba_share_flattr_url' => stripslashes_deep( $ssba_post['ssba_share_flattr_url'] ),
|
307 |
+
'ssba_share_share_new_window' => ( isset( $ssba_post['ssba_share_share_new_window'] ) ? $ssba_post['ssba_share_share_new_window'] : null ),
|
308 |
+
'ssba_share_link_to_ssb' => ( isset( $ssba_post['ssba_share_link_to_ssb'] ) ? $ssba_post['ssba_share_link_to_ssb'] : null ),
|
309 |
+
'ssba_share_show_share_count' => ( isset( $ssba_post['ssba_share_show_share_count'] ) ? $ssba_post['ssba_share_show_share_count'] : null ),
|
310 |
+
'ssba_share_share_count_style' => $ssba_post['ssba_share_share_count_style'],
|
311 |
+
'ssba_share_share_count_css' => $ssba_post['ssba_share_share_count_css'],
|
312 |
+
'ssba_share_share_count_once' => ( isset( $ssba_post['ssba_share_share_count_once'] ) ? $ssba_post['ssba_share_share_count_once'] : null ),
|
313 |
+
'ssba_share_widget_text' => $ssba_post['ssba_share_widget_text'],
|
314 |
+
'ssba_share_rel_nofollow' => ( isset( $ssba_post['ssba_share_rel_nofollow'] ) ? $ssba_post['ssba_share_rel_nofollow'] : null ),
|
315 |
+
'ssba_share_default_pinterest' => ( isset( $ssba_post['ssba_share_default_pinterest'] ) ? $ssba_post['ssba_share_default_pinterest'] : null ),
|
316 |
+
'ssba_share_pinterest_featured' => ( isset( $ssba_post['ssba_share_pinterest_featured'] ) ? $ssba_post['ssba_share_pinterest_featured'] : null ),
|
317 |
+
|
318 |
+
// Share container.
|
319 |
+
'ssba_div_padding' => $ssba_post['ssba_div_padding'],
|
320 |
+
'ssba_div_rounded_corners' => ( isset( $ssba_post['ssba_div_rounded_corners'] ) ? $ssba_post['ssba_div_rounded_corners'] : null ),
|
321 |
+
'ssba_border_width' => $ssba_post['ssba_border_width'],
|
322 |
+
'ssba_div_border' => $ssba_post['ssba_div_border'],
|
323 |
+
'ssba_div_background' => $ssba_post['ssba_div_background'],
|
324 |
+
|
325 |
+
// Text.
|
326 |
+
'ssba_share_text' => stripslashes_deep( $ssba_post['ssba_share_text'] ),
|
327 |
+
'ssba_text_placement' => $ssba_post['ssba_text_placement'],
|
328 |
+
'ssba_font_family' => $ssba_post['ssba_font_family'],
|
329 |
+
'ssba_font_color' => $ssba_post['ssba_font_color'],
|
330 |
+
'ssba_font_size' => $ssba_post['ssba_font_size'],
|
331 |
+
'ssba_font_weight' => $ssba_post['ssba_font_weight'],
|
332 |
+
'ssba_plus_share_text' => stripslashes_deep( $ssba_post['ssba_plus_share_text'] ),
|
333 |
+
'ssba_plus_text_placement' => $ssba_post['ssba_plus_text_placement'],
|
334 |
+
'ssba_plus_font_family' => $ssba_post['ssba_plus_font_family'],
|
335 |
+
'ssba_plus_font_color' => $ssba_post['ssba_plus_font_color'],
|
336 |
+
'ssba_plus_font_size' => $ssba_post['ssba_plus_font_size'],
|
337 |
+
'ssba_plus_font_weight' => $ssba_post['ssba_plus_font_weight'],
|
338 |
+
|
339 |
+
// Included buttons.
|
340 |
+
'ssba_selected_buttons' => $ssba_post['ssba_selected_buttons'],
|
341 |
+
'ssba_selected_share_buttons' => $ssba_post['ssba_selected_share_buttons'],
|
342 |
+
'ssba_selected_plus_buttons' => $ssba_post['ssba_selected_plus_buttons'],
|
343 |
+
'ssba_share_button_style' => $ssba_post['ssba_share_button_style'],
|
344 |
+
'ssba_share_bar_style' => $ssba_post['ssba_share_bar_style'],
|
345 |
+
'ssba_new_buttons' => $ssba_post['ssba_new_buttons'],
|
346 |
+
'ssba_share_bar' => $ssba_post['ssba_share_bar'],
|
347 |
+
'ssba_share_bar_position' => $ssba_post['ssba_share_bar_position'],
|
348 |
+
'ssba_plus_height' => $ssba_post['ssba_plus_height'],
|
349 |
+
'ssba_plus_width' => $ssba_post['ssba_plus_width'],
|
350 |
+
'ssba_plus_margin' => $ssba_post['ssba_plus_margin'],
|
351 |
+
'ssba_plus_button_color' => $ssba_post['ssba_plus_button_color'],
|
352 |
+
'ssba_plus_button_hover_color' => $ssba_post['ssba_plus_button_hover_color'],
|
353 |
+
'ssba_plus_icon_size' => $ssba_post['ssba_plus_icon_size'],
|
354 |
+
'ssba_plus_icon_color' => $ssba_post['ssba_plus_icon_color'],
|
355 |
+
'ssba_plus_icon_hover_color' => $ssba_post['ssba_plus_icon_hover_color'],
|
356 |
+
'ssba_share_height' => $ssba_post['ssba_share_height'],
|
357 |
+
'ssba_share_width' => $ssba_post['ssba_share_width'],
|
358 |
+
'ssba_share_button_color' => $ssba_post['ssba_share_button_color'],
|
359 |
+
'ssba_share_button_hover_color' => $ssba_post['ssba_share_button_hover_color'],
|
360 |
+
'ssba_share_icon_size' => $ssba_post['ssba_share_icon_size'],
|
361 |
+
'ssba_share_icon_color' => $ssba_post['ssba_share_icon_color'],
|
362 |
+
'ssba_share_icon_hover_color' => $ssba_post['ssba_share_icon_hover_color'],
|
363 |
+
'ssba_share_desktop' => $ssba_post['ssba_share_desktop'],
|
364 |
+
'ssba_share_margin' => $ssba_post['ssba_share_margin'],
|
365 |
+
'ssba_share_mobile' => $ssba_post['ssba_share_mobile'],
|
366 |
+
'ssba_mobile_breakpoint' => $ssba_post['ssba_mobile_breakpoint'],
|
367 |
+
'ssba_custom_facebook' => $ssba_post['ssba_custom_facebook'],
|
368 |
+
'ssba_custom_google' => $ssba_post['ssba_custom_google'],
|
369 |
+
'ssba_custom_twitter' => $ssba_post['ssba_custom_twitter'],
|
370 |
+
'ssba_custom_linkedin' => $ssba_post['ssba_custom_linkedin'],
|
371 |
+
'ssba_custom_flattr' => $ssba_post['ssba_custom_flattr'],
|
372 |
+
'ssba_custom_pinterest' => $ssba_post['ssba_custom_pinterest'],
|
373 |
+
'ssba_custom_print' => $ssba_post['ssba_custom_print'],
|
374 |
+
'ssba_custom_reddit' => $ssba_post['ssba_custom_reddit'],
|
375 |
+
'ssba_custom_stumbleupon' => $ssba_post['ssba_custom_stumbleupon'],
|
376 |
+
'ssba_custom_tumblr' => $ssba_post['ssba_custom_tumblr'],
|
377 |
+
'ssba_custom_vk' => $ssba_post['ssba_custom_vk'],
|
378 |
+
'ssba_custom_whatsapp' => $ssba_post['ssba_custom_whatsapp'],
|
379 |
+
'ssba_custom_xing' => $ssba_post['ssba_custom_xing'],
|
380 |
+
'ssba_custom_yummly' => $ssba_post['ssba_custom_yummly'],
|
381 |
+
|
382 |
+
// Shared count.
|
383 |
+
'sharedcount_enabled' => $ssba_post['sharedcount_enabled'],
|
384 |
+
'sharedcount_api_key' => $ssba_post['sharedcount_api_key'],
|
385 |
+
'sharedcount_plan' => $ssba_post['sharedcount_plan'],
|
386 |
+
'plus_sharedcount_enabled' => $ssba_post['plus_sharedcount_enabled'],
|
387 |
+
'plus_sharedcount_api_key' => $ssba_post['plus_sharedcount_api_key'],
|
388 |
+
'plus_sharedcount_plan' => $ssba_post['plus_sharedcount_plan'],
|
389 |
+
'share_sharedcount_enabled' => $ssba_post['share_sharedcount_enabled'],
|
390 |
+
'share_sharedcount_api_key' => $ssba_post['share_sharedcount_api_key'],
|
391 |
+
'share_sharedcount_plan' => $ssba_post['share_sharedcount_plan'],
|
392 |
+
|
393 |
+
// New share counts.
|
394 |
+
'twitter_newsharecounts' => $ssba_post['twitter_newsharecounts'],
|
395 |
+
'plus_twitter_newsharecounts' => $ssba_post['plus_twitter_newsharecounts'],
|
396 |
+
'share_twitter_newsharecounts' => $ssba_post['share_twitter_newsharecounts'],
|
397 |
+
|
398 |
+
// Facebook.
|
399 |
+
'facebook_insights' => $ssba_post['facebook_insights'],
|
400 |
+
'facebook_app_id' => $ssba_post['facebook_app_id'],
|
401 |
+
'plus_facebook_insights' => $ssba_post['plus_facebook_insights'],
|
402 |
+
'plus_facebook_app_id' => $ssba_post['plus_facebook_app_id'],
|
403 |
+
'share_facebook_insights' => $ssba_post['share_facebook_insights'],
|
404 |
+
'share_facebook_app_id' => $ssba_post['share_facebook_app_id'],
|
405 |
+
);
|
406 |
+
|
407 |
+
// Save the settings.
|
408 |
+
$this->class_ssba->ssba_update_options( $arr_options );
|
409 |
+
|
410 |
+
// Return success.
|
411 |
+
return true;
|
412 |
+
} // End if().
|
413 |
+
|
414 |
+
// Query the db for current ssba settings.
|
415 |
+
$arr_settings = $this->class_ssba->get_ssba_settings();
|
416 |
+
|
417 |
+
// Admin panel.
|
418 |
+
$this->admin_panel->admin_panel( $arr_settings );
|
419 |
+
}
|
420 |
+
}
|
php/class-admin-panel.php
ADDED
@@ -0,0 +1,1647 @@
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|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|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Admin Panel.
|
4 |
+
*
|
5 |
+
* @package SimpleShareButtonsAdder
|
6 |
+
*/
|
7 |
+
|
8 |
+
namespace SimpleShareButtonsAdder;
|
9 |
+
|
10 |
+
/**
|
11 |
+
* Admin Panel Class
|
12 |
+
*
|
13 |
+
* @package SimpleShareButtonsAdder
|
14 |
+
*/
|
15 |
+
class Admin_Panel {
|
16 |
+
|
17 |
+
/**
|
18 |
+
* Plugin instance.
|
19 |
+
*
|
20 |
+
* @var object
|
21 |
+
*/
|
22 |
+
public $plugin;
|
23 |
+
|
24 |
+
/**
|
25 |
+
* Simple Share Buttons Adder instance.
|
26 |
+
*
|
27 |
+
* @var object
|
28 |
+
*/
|
29 |
+
public $class_ssba;
|
30 |
+
|
31 |
+
/**
|
32 |
+
* Forms instance.
|
33 |
+
*
|
34 |
+
* @var object
|
35 |
+
*/
|
36 |
+
public $forms;
|
37 |
+
|
38 |
+
/**
|
39 |
+
* Admin_Panel constructor.
|
40 |
+
*
|
41 |
+
* @param object $plugin Plugin instance.
|
42 |
+
* @param object $class_ssba Simple Share Buttons Adder instance.
|
43 |
+
* @param object $forms Forms instance.
|
44 |
+
*/
|
45 |
+
public function __construct( $plugin, $class_ssba, $forms ) {
|
46 |
+
$this->plugin = $plugin;
|
47 |
+
$this->class_ssba = $class_ssba;
|
48 |
+
$this->forms = $forms;
|
49 |
+
}
|
50 |
+
|
51 |
+
/**
|
52 |
+
* Display the admin header.
|
53 |
+
*/
|
54 |
+
public function admin_header() {
|
55 |
+
include_once( "{$this->plugin->dir_path}/templates/admin-header.php" );
|
56 |
+
}
|
57 |
+
|
58 |
+
/**
|
59 |
+
* Display the admin footer.
|
60 |
+
*/
|
61 |
+
public function admin_footer() {
|
62 |
+
include_once( "{$this->plugin->dir_path}/templates/admin-footer.php" );
|
63 |
+
}
|
64 |
+
|
65 |
+
/**
|
66 |
+
* Build the Admin Panel html variables and include template.
|
67 |
+
*
|
68 |
+
* @param array $arr_settings The current ssba settings.
|
69 |
+
*/
|
70 |
+
public function admin_panel( $arr_settings ) {
|
71 |
+
// Locations array.
|
72 |
+
$locs = array(
|
73 |
+
'Homepage' => array(
|
74 |
+
'value' => 'ssba_homepage',
|
75 |
+
'checked' => 'Y' === $arr_settings['ssba_homepage'] ? true : false,
|
76 |
+
),
|
77 |
+
'Pages' => array(
|
78 |
+
'value' => 'ssba_pages',
|
79 |
+
'checked' => 'Y' === $arr_settings['ssba_pages'] ? true : false,
|
80 |
+
),
|
81 |
+
'Posts' => array(
|
82 |
+
'value' => 'ssba_posts',
|
83 |
+
'checked' => 'Y' === $arr_settings['ssba_posts'] ? true : false,
|
84 |
+
),
|
85 |
+
'Excerpts' => array(
|
86 |
+
'value' => 'ssba_excerpts',
|
87 |
+
'checked' => 'Y' === $arr_settings['ssba_excerpts'] ? true : false,
|
88 |
+
),
|
89 |
+
'Categories/Archives' => array(
|
90 |
+
'value' => 'ssba_cats_archs',
|
91 |
+
'checked' => 'Y' === $arr_settings['ssba_cats_archs'] ? true : false,
|
92 |
+
),
|
93 |
+
);
|
94 |
+
|
95 |
+
// Locations array.
|
96 |
+
$locs2 = array(
|
97 |
+
'Homepage' => array(
|
98 |
+
'value' => 'ssba_bar_homepage',
|
99 |
+
'checked' => 'Y' === $arr_settings['ssba_bar_homepage'] ? true : false,
|
100 |
+
),
|
101 |
+
'Pages' => array(
|
102 |
+
'value' => 'ssba_bar_pages',
|
103 |
+
'checked' => 'Y' === $arr_settings['ssba_bar_pages'] ? true : false,
|
104 |
+
),
|
105 |
+
'Posts' => array(
|
106 |
+
'value' => 'ssba_bar_posts',
|
107 |
+
'checked' => 'Y' === $arr_settings['ssba_bar_posts'] ? true : false,
|
108 |
+
),
|
109 |
+
'Categories/Archives' => array(
|
110 |
+
'value' => 'ssba_bar_cats_archs',
|
111 |
+
'checked' => 'Y' === $arr_settings['ssba_bar_cats_archs'] ? true : false,
|
112 |
+
),
|
113 |
+
);
|
114 |
+
|
115 |
+
// Locations array for plus.
|
116 |
+
$locs3 = array(
|
117 |
+
'Homepage' => array(
|
118 |
+
'value' => 'ssba_plus_homepage',
|
119 |
+
'checked' => 'Y' === $arr_settings['ssba_plus_homepage'] ? true : false,
|
120 |
+
),
|
121 |
+
'Pages' => array(
|
122 |
+
'value' => 'ssba_plus_pages',
|
123 |
+
'checked' => 'Y' === $arr_settings['ssba_plus_pages'] ? true : false,
|
124 |
+
),
|
125 |
+
'Posts' => array(
|
126 |
+
'value' => 'ssba_plus_posts',
|
127 |
+
'checked' => 'Y' === $arr_settings['ssba_plus_posts'] ? true : false,
|
128 |
+
),
|
129 |
+
'Excerpts' => array(
|
130 |
+
'value' => 'ssba_plus_excerpts',
|
131 |
+
'checked' => 'Y' === $arr_settings['ssba_plus_excerpts'] ? true : false,
|
132 |
+
),
|
133 |
+
'Categories/Archives' => array(
|
134 |
+
'value' => 'ssba_plus_cats_archs',
|
135 |
+
'checked' => 'Y' === $arr_settings['ssba_plus_cats_archs'] ? true : false,
|
136 |
+
),
|
137 |
+
);
|
138 |
+
|
139 |
+
// Display options.
|
140 |
+
$display_loc = array(
|
141 |
+
'Desktop' => array(
|
142 |
+
'value' => 'ssba_share_desktop',
|
143 |
+
'checked' => 'Y' === $arr_settings['ssba_share_desktop'] ? true : false,
|
144 |
+
),
|
145 |
+
'Mobile' => array(
|
146 |
+
'value' => 'ssba_share_mobile',
|
147 |
+
'checked' => 'Y' === $arr_settings['ssba_share_mobile'] ? true : false,
|
148 |
+
),
|
149 |
+
);
|
150 |
+
|
151 |
+
// Prepare array of buttons.
|
152 |
+
$arr_buttons = json_decode( get_option( 'ssba_buttons' ), true );
|
153 |
+
|
154 |
+
// Locations.
|
155 |
+
$opts1 = array(
|
156 |
+
'form_group' => false,
|
157 |
+
'label' => 'Locations',
|
158 |
+
'tooltip' => 'Enable the locations you wish for share buttons to appear',
|
159 |
+
'value' => 'Y',
|
160 |
+
'checkboxes' => $locs,
|
161 |
+
);
|
162 |
+
|
163 |
+
// Placement.
|
164 |
+
$opts2 = array(
|
165 |
+
'form_group' => false,
|
166 |
+
'type' => 'select',
|
167 |
+
'name' => 'ssba_before_or_after',
|
168 |
+
'label' => 'Placement',
|
169 |
+
'tooltip' => 'Place share buttons before or after your content',
|
170 |
+
'selected' => $arr_settings['ssba_before_or_after'],
|
171 |
+
'options' => array(
|
172 |
+
'After' => 'after',
|
173 |
+
'Before' => 'before',
|
174 |
+
'Both' => 'both',
|
175 |
+
),
|
176 |
+
);
|
177 |
+
|
178 |
+
// Share text.
|
179 |
+
$opts3 = array(
|
180 |
+
'form_group' => false,
|
181 |
+
'type' => 'text',
|
182 |
+
'placeholder' => 'Share this...',
|
183 |
+
'name' => 'ssba_share_text',
|
184 |
+
'label' => 'Call To Action',
|
185 |
+
'tooltip' => 'Add some custom text by your share buttons',
|
186 |
+
'value' => $arr_settings['ssba_share_text'],
|
187 |
+
);
|
188 |
+
|
189 |
+
// Share text for plus.
|
190 |
+
$opts3p = array(
|
191 |
+
'form_group' => false,
|
192 |
+
'type' => 'text',
|
193 |
+
'placeholder' => 'Share this...',
|
194 |
+
'name' => 'ssba_plus_share_text',
|
195 |
+
'label' => 'Call To Action',
|
196 |
+
'tooltip' => 'Add some custom text by your share buttons',
|
197 |
+
'value' => $arr_settings['ssba_plus_share_text'],
|
198 |
+
);
|
199 |
+
|
200 |
+
// Placement.
|
201 |
+
$opts4 = array(
|
202 |
+
'form_group' => false,
|
203 |
+
'type' => 'select',
|
204 |
+
'name' => 'ssba_image_set',
|
205 |
+
'label' => 'Theme',
|
206 |
+
'tooltip' => 'Choose your favourite set of buttons, or set to custom to choose your own',
|
207 |
+
'selected' => $arr_settings['ssba_image_set'],
|
208 |
+
'options' => array(
|
209 |
+
'Arbenta' => 'arbenta',
|
210 |
+
'Custom' => 'custom',
|
211 |
+
'Metal' => 'metal',
|
212 |
+
'Pagepeel' => 'pagepeel',
|
213 |
+
'Plain' => 'plain',
|
214 |
+
'Retro' => 'retro',
|
215 |
+
'Ribbons' => 'ribbons',
|
216 |
+
'Simple' => 'simple',
|
217 |
+
'Somacro' => 'somacro',
|
218 |
+
),
|
219 |
+
);
|
220 |
+
|
221 |
+
// Button size.
|
222 |
+
$opts6 = array(
|
223 |
+
'form_group' => false,
|
224 |
+
'type' => 'number_addon',
|
225 |
+
'addon' => 'px',
|
226 |
+
'placeholder' => '35',
|
227 |
+
'name' => 'ssba_size',
|
228 |
+
'label' => 'Button Size',
|
229 |
+
'tooltip' => 'Set the size of your buttons in pixels',
|
230 |
+
'value' => $arr_settings['ssba_size'],
|
231 |
+
);
|
232 |
+
|
233 |
+
// Alignment.
|
234 |
+
$opts7 = array(
|
235 |
+
'form_group' => false,
|
236 |
+
'type' => 'select',
|
237 |
+
'name' => 'ssba_align',
|
238 |
+
'label' => 'Alignment',
|
239 |
+
'tooltip' => 'Align your buttons the way you wish',
|
240 |
+
'selected' => $arr_settings['ssba_align'],
|
241 |
+
'options' => array(
|
242 |
+
'Left' => 'left',
|
243 |
+
'Center' => 'center',
|
244 |
+
'Right' => 'right',
|
245 |
+
),
|
246 |
+
);
|
247 |
+
|
248 |
+
// Alignment for Plus.
|
249 |
+
$opts7p = array(
|
250 |
+
'form_group' => false,
|
251 |
+
'type' => 'select',
|
252 |
+
'name' => 'ssba_plus_align',
|
253 |
+
'label' => 'Alignment',
|
254 |
+
'tooltip' => 'Align your plus buttons the way you wish',
|
255 |
+
'selected' => $arr_settings['ssba_plus_align'],
|
256 |
+
'options' => array(
|
257 |
+
'Left' => 'left',
|
258 |
+
'Center' => 'center',
|
259 |
+
'Right' => 'right',
|
260 |
+
),
|
261 |
+
);
|
262 |
+
|
263 |
+
// Padding.
|
264 |
+
$opts8 = array(
|
265 |
+
'form_group' => false,
|
266 |
+
'type' => 'number_addon',
|
267 |
+
'addon' => 'px',
|
268 |
+
'placeholder' => '10',
|
269 |
+
'name' => 'ssba_padding',
|
270 |
+
'label' => 'Padding',
|
271 |
+
'tooltip' => 'Apply some space around your images',
|
272 |
+
'value' => $arr_settings['ssba_padding'],
|
273 |
+
);
|
274 |
+
|
275 |
+
// Font color.
|
276 |
+
$opts9 = array(
|
277 |
+
'form_group' => false,
|
278 |
+
'type' => 'colorpicker',
|
279 |
+
'name' => 'ssba_font_color',
|
280 |
+
'label' => 'Font Color',
|
281 |
+
'tooltip' => 'Choose the color of your share text',
|
282 |
+
'value' => $arr_settings['ssba_font_color'],
|
283 |
+
);
|
284 |
+
|
285 |
+
// Font color for plus.
|
286 |
+
$opts9p = array(
|
287 |
+
'form_group' => false,
|
288 |
+
'type' => 'colorpicker',
|
289 |
+
'name' => 'ssba_plus_font_color',
|
290 |
+
'label' => 'Font Color',
|
291 |
+
'tooltip' => 'Choose the color of your share text',
|
292 |
+
'value' => $arr_settings['ssba_plus_font_color'],
|
293 |
+
);
|
294 |
+
|
295 |
+
// Font family.
|
296 |
+
$opts10 = array(
|
297 |
+
'form_group' => false,
|
298 |
+
'type' => 'select',
|
299 |
+
'name' => 'ssba_font_family',
|
300 |
+
'label' => 'Font Family',
|
301 |
+
'tooltip' => 'Choose a font available or inherit the font from your website',
|
302 |
+
'selected' => $arr_settings['ssba_font_family'],
|
303 |
+
'options' => array(
|
304 |
+
'Reenie Beanie' => 'Reenie Beanie',
|
305 |
+
'Indie Flower' => 'Indie Flower',
|
306 |
+
'Inherit from my website' => '',
|
307 |
+
),
|
308 |
+
);
|
309 |
+
|
310 |
+
// Font family for plus.
|
311 |
+
$opts10p = array(
|
312 |
+
'form_group' => false,
|
313 |
+
'type' => 'select',
|
314 |
+
'name' => 'ssba_plus_font_family',
|
315 |
+
'label' => 'Font Family',
|
316 |
+
'tooltip' => 'Choose a font available or inherit the font from your website',
|
317 |
+
'selected' => $arr_settings['ssba_plus_font_family'],
|
318 |
+
'options' => array(
|
319 |
+
'Reenie Beanie' => 'Reenie Beanie',
|
320 |
+
'Indie Flower' => 'Indie Flower',
|
321 |
+
'Inherit from my website' => '',
|
322 |
+
),
|
323 |
+
);
|
324 |
+
|
325 |
+
// Enqueue the styles so preview can update.
|
326 |
+
wp_enqueue_style( "{$this->plugin->assets_prefix}-reenie" );
|
327 |
+
wp_enqueue_style( "{$this->plugin->assets_prefix}-indie" );
|
328 |
+
|
329 |
+
// Font size.
|
330 |
+
$opts11 = array(
|
331 |
+
'form_group' => false,
|
332 |
+
'type' => 'number_addon',
|
333 |
+
'addon' => 'px',
|
334 |
+
'placeholder' => '20',
|
335 |
+
'name' => 'ssba_font_size',
|
336 |
+
'label' => 'Font Size',
|
337 |
+
'tooltip' => 'Set the size of the share text in pixels',
|
338 |
+
'value' => $arr_settings['ssba_font_size'],
|
339 |
+
);
|
340 |
+
|
341 |
+
// Font size for plus.
|
342 |
+
$opts11p = array(
|
343 |
+
'form_group' => false,
|
344 |
+
'type' => 'number_addon',
|
345 |
+
'addon' => 'px',
|
346 |
+
'placeholder' => '20',
|
347 |
+
'name' => 'ssba_plus_font_size',
|
348 |
+
'label' => 'Font Size',
|
349 |
+
'tooltip' => 'Set the size of the share text in pixels',
|
350 |
+
'value' => $arr_settings['ssba_plus_font_size'],
|
351 |
+
);
|
352 |
+
|
353 |
+
// Font weight.
|
354 |
+
$opts12 = array(
|
355 |
+
'form_group' => false,
|
356 |
+
'type' => 'select',
|
357 |
+
'name' => 'ssba_font_weight',
|
358 |
+
'label' => 'Font Weight',
|
359 |
+
'tooltip' => 'Set the weight of the share text',
|
360 |
+
'selected' => $arr_settings['ssba_font_weight'],
|
361 |
+
'options' => array(
|
362 |
+
'Normal' => 'normal',
|
363 |
+
'Bold' => 'bold',
|
364 |
+
'Light' => 'light',
|
365 |
+
),
|
366 |
+
);
|
367 |
+
|
368 |
+
// Font weight for plus.
|
369 |
+
$opts12p = array(
|
370 |
+
'form_group' => false,
|
371 |
+
'type' => 'select',
|
372 |
+
'name' => 'ssba_plus_font_weight',
|
373 |
+
'label' => 'Font Weight',
|
374 |
+
'tooltip' => 'Set the weight of the share text',
|
375 |
+
'selected' => $arr_settings['ssba_plus_font_weight'],
|
376 |
+
'options' => array(
|
377 |
+
'Normal' => 'normal',
|
378 |
+
'Bold' => 'bold',
|
379 |
+
'Light' => 'light',
|
380 |
+
),
|
381 |
+
);
|
382 |
+
|
383 |
+
// Text placement.
|
384 |
+
$opts13 = array(
|
385 |
+
'form_group' => false,
|
386 |
+
'type' => 'select',
|
387 |
+
'name' => 'ssba_text_placement',
|
388 |
+
'label' => 'Text placement',
|
389 |
+
'tooltip' => 'Choose where you want your text to be displayed, in relation to the buttons',
|
390 |
+
'selected' => $arr_settings['ssba_text_placement'],
|
391 |
+
'options' => array(
|
392 |
+
'Above' => 'above',
|
393 |
+
'Left' => 'left',
|
394 |
+
'Right' => 'right',
|
395 |
+
'Below' => 'below',
|
396 |
+
),
|
397 |
+
);
|
398 |
+
|
399 |
+
// Text placement for plus.
|
400 |
+
$opts13p = array(
|
401 |
+
'form_group' => false,
|
402 |
+
'type' => 'select',
|
403 |
+
'name' => 'ssba_plus_text_placement',
|
404 |
+
'label' => 'Text placement',
|
405 |
+
'tooltip' => 'Choose where you want your text to be displayed, in relation to the buttons',
|
406 |
+
'selected' => $arr_settings['ssba_plus_text_placement'],
|
407 |
+
'options' => array(
|
408 |
+
'Above' => 'above',
|
409 |
+
'Left' => 'left',
|
410 |
+
'Right' => 'right',
|
411 |
+
'Below' => 'below',
|
412 |
+
),
|
413 |
+
);
|
414 |
+
|
415 |
+
// Container padding.
|
416 |
+
$opts14 = array(
|
417 |
+
'form_group' => false,
|
418 |
+
'type' => 'number_addon',
|
419 |
+
'addon' => 'px',
|
420 |
+
'placeholder' => '10',
|
421 |
+
'name' => 'ssba_div_padding',
|
422 |
+
'label' => 'Container Padding',
|
423 |
+
'tooltip' => 'Add some padding to your share container',
|
424 |
+
'value' => $arr_settings['ssba_div_padding'],
|
425 |
+
);
|
426 |
+
|
427 |
+
// Div background color.
|
428 |
+
$opts15 = array(
|
429 |
+
'form_group' => false,
|
430 |
+
'type' => 'colorpicker',
|
431 |
+
'name' => 'ssba_div_background',
|
432 |
+
'label' => 'Container Background Color',
|
433 |
+
'tooltip' => 'Choose the color of your share container',
|
434 |
+
'value' => $arr_settings['ssba_div_background'],
|
435 |
+
);
|
436 |
+
|
437 |
+
// Div border color.
|
438 |
+
$opts16 = array(
|
439 |
+
'form_group' => false,
|
440 |
+
'type' => 'colorpicker',
|
441 |
+
'name' => 'ssba_div_border',
|
442 |
+
'label' => 'Container Border Color',
|
443 |
+
'tooltip' => 'Choose the color of your share container border',
|
444 |
+
'value' => $arr_settings['ssba_div_border'],
|
445 |
+
);
|
446 |
+
|
447 |
+
// Container border width.
|
448 |
+
$opts17 = array(
|
449 |
+
'form_group' => false,
|
450 |
+
'type' => 'number_addon',
|
451 |
+
'addon' => 'px',
|
452 |
+
'placeholder' => '1',
|
453 |
+
'name' => 'ssba_border_width',
|
454 |
+
'label' => 'Container Border Width',
|
455 |
+
'tooltip' => 'Set the width of the share container border',
|
456 |
+
'value' => $arr_settings['ssba_border_width'],
|
457 |
+
);
|
458 |
+
|
459 |
+
// Rounded container corners.
|
460 |
+
$opts18 = array(
|
461 |
+
'form_group' => false,
|
462 |
+
'type' => 'checkbox',
|
463 |
+
'name' => 'ssba_div_rounded_corners',
|
464 |
+
'label' => 'Rounded Container Corners',
|
465 |
+
'tooltip' => 'Switch on to enable rounded corners for your share container',
|
466 |
+
'value' => 'Y',
|
467 |
+
'checked' => 'Y' === $arr_settings['ssba_div_rounded_corners'] ? esc_attr( 'checked' ) : '',
|
468 |
+
);
|
469 |
+
|
470 |
+
// Share count.
|
471 |
+
$opts19 = array(
|
472 |
+
'form_group' => false,
|
473 |
+
'type' => 'checkbox',
|
474 |
+
'name' => 'ssba_show_share_count',
|
475 |
+
'label' => 'Share Count',
|
476 |
+
'tooltip' => 'Check the box if you wish to enable share counts. Enabling this option will slow down the loading of any pages that use share buttons',
|
477 |
+
'value' => 'Y',
|
478 |
+
'checked' => 'Y' === $arr_settings['ssba_show_share_count'] ? esc_attr( 'checked' ) : null,
|
479 |
+
);
|
480 |
+
|
481 |
+
// Share count for plus.
|
482 |
+
$opts19p = array(
|
483 |
+
'form_group' => false,
|
484 |
+
'type' => 'checkbox',
|
485 |
+
'name' => 'ssba_plus_show_share_count',
|
486 |
+
'label' => 'Share Count',
|
487 |
+
'tooltip' => 'Check the box if you wish to enable share counts. Enabling this option will slow down the loading of any pages that use share buttons',
|
488 |
+
'value' => 'Y',
|
489 |
+
'checked' => 'Y' === $arr_settings['ssba_plus_show_share_count'] ? esc_attr( 'checked' ) : null,
|
490 |
+
);
|
491 |
+
|
492 |
+
// Share count for share bar.
|
493 |
+
$opts19s = array(
|
494 |
+
'form_group' => false,
|
495 |
+
'type' => 'checkbox',
|
496 |
+
'name' => 'ssba_share_show_share_count',
|
497 |
+
'label' => 'Share Count',
|
498 |
+
'tooltip' => 'Check the box if you wish to enable share counts. Enabling this option will slow down the loading of any pages that use share buttons',
|
499 |
+
'value' => 'Y',
|
500 |
+
'checked' => 'Y' === $arr_settings['ssba_share_show_share_count'] ? esc_attr( 'checked' ) : null,
|
501 |
+
);
|
502 |
+
|
503 |
+
// Show count once.
|
504 |
+
$opts20 = array(
|
505 |
+
'form_group' => false,
|
506 |
+
'type' => 'checkbox',
|
507 |
+
'name' => 'ssba_share_count_once',
|
508 |
+
'label' => 'Show Once',
|
509 |
+
'tooltip' => 'This option is recommended, it deactivates share counts for categories and archives allowing them to load more quickly',
|
510 |
+
'value' => 'Y',
|
511 |
+
'checked' => 'Y' === $arr_settings['ssba_share_count_once'] ? esc_attr( 'checked' ) : null,
|
512 |
+
);
|
513 |
+
|
514 |
+
// Show count once for plus.
|
515 |
+
$opts20p = array(
|
516 |
+
'form_group' => false,
|
517 |
+
'type' => 'checkbox',
|
518 |
+
'name' => 'ssba_plus_share_count_once',
|
519 |
+
'label' => 'Show Once',
|
520 |
+
'tooltip' => 'This option is recommended, it deactivates share counts for categories and archives allowing them to load more quickly',
|
521 |
+
'value' => 'Y',
|
522 |
+
'checked' => 'Y' === $arr_settings['ssba_plus_share_count_once'] ? esc_attr( 'checked' ) : null,
|
523 |
+
);
|
524 |
+
|
525 |
+
// Show count once for share bar.
|
526 |
+
$opts20s = array(
|
527 |
+
'form_group' => false,
|
528 |
+
'type' => 'checkbox',
|
529 |
+
'name' => 'ssba_share_share_count_once',
|
530 |
+
'label' => 'Show Once',
|
531 |
+
'tooltip' => 'This option is recommended, it deactivates share counts for categories and archives allowing them to load more quickly',
|
532 |
+
'value' => 'Y',
|
533 |
+
'checked' => 'Y' === $arr_settings['ssba_share_share_count_once'] ? esc_attr( 'checked' ) : null,
|
534 |
+
);
|
535 |
+
|
536 |
+
// Share counters style.
|
537 |
+
$opts21 = array(
|
538 |
+
'form_group' => false,
|
539 |
+
'type' => 'select',
|
540 |
+
'name' => 'ssba_share_count_style',
|
541 |
+
'label' => 'Counters Style',
|
542 |
+
'tooltip' => 'Pick a setting to style the share counters',
|
543 |
+
'selected' => $arr_settings['ssba_share_count_style'],
|
544 |
+
'options' => array(
|
545 |
+
'Default' => 'default',
|
546 |
+
'White' => 'white',
|
547 |
+
'Blue' => 'blue',
|
548 |
+
),
|
549 |
+
);
|
550 |
+
|
551 |
+
// Newsharecounts.com enable.
|
552 |
+
$opts22 = array(
|
553 |
+
'form_group' => false,
|
554 |
+
'type' => 'checkbox',
|
555 |
+
'name' => 'twitter_newsharecounts',
|
556 |
+
'label' => '',
|
557 |
+
'tooltip' => 'Switch on to enable the use of the newsharecounts.com API for Twitter share counts',
|
558 |
+
'value' => 'Y',
|
559 |
+
'checked' => 'Y' === $arr_settings['twitter_newsharecounts'] ? esc_attr( 'checked' ) : null,
|
560 |
+
);
|
561 |
+
|
562 |
+
// Sharedcount enable.
|
563 |
+
$opts23 = array(
|
564 |
+
'form_group' => false,
|
565 |
+
'type' => 'checkbox',
|
566 |
+
'name' => 'sharedcount_enabled',
|
567 |
+
'label' => 'Enable sharedcount.com API',
|
568 |
+
'tooltip' => 'Enable if you wish to enable the use of the sharedcount.com API',
|
569 |
+
'value' => 'Y',
|
570 |
+
'checked' => 'Y' === $arr_settings['sharedcount_enabled'] ? esc_attr( 'checked' ) : null,
|
571 |
+
);
|
572 |
+
|
573 |
+
// Sharedcount plan.
|
574 |
+
$opts24 = array(
|
575 |
+
'form_group' => false,
|
576 |
+
'type' => 'select',
|
577 |
+
'name' => 'sharedcount_plan',
|
578 |
+
'label' => 'sharedcount.com plan',
|
579 |
+
'tooltip' => 'Select your sharedcount.com plan',
|
580 |
+
'selected' => $arr_settings['sharedcount_plan'],
|
581 |
+
'options' => array(
|
582 |
+
'Free' => 'free',
|
583 |
+
'Plus' => 'plus',
|
584 |
+
'Business' => 'business',
|
585 |
+
),
|
586 |
+
);
|
587 |
+
|
588 |
+
// Sharedcount api key.
|
589 |
+
$opts25 = array(
|
590 |
+
'form_group' => false,
|
591 |
+
'type' => 'text',
|
592 |
+
'placeholder' => '9b17c12712c691491ef95f46c51ce3917118fdf9',
|
593 |
+
'name' => 'sharedcount_api_key',
|
594 |
+
'label' => 'sharedcount.com API Key',
|
595 |
+
'tooltip' => 'Add some text included in an email when people share that way',
|
596 |
+
'value' => $arr_settings['sharedcount_api_key'],
|
597 |
+
);
|
598 |
+
|
599 |
+
// Link to ssb.
|
600 |
+
$opts26 = array(
|
601 |
+
'form_group' => false,
|
602 |
+
'type' => 'checkbox',
|
603 |
+
'name' => 'ssba_link_to_ssb',
|
604 |
+
'label' => 'Share Text Link',
|
605 |
+
'tooltip' => 'Enabling this will set your share text as a link to simplesharebuttons.com to help others learn of the plugin',
|
606 |
+
'value' => 'Y',
|
607 |
+
'checked' => 'Y' === $arr_settings['ssba_link_to_ssb'] ? esc_attr( 'checked' ) : null,
|
608 |
+
);
|
609 |
+
|
610 |
+
// Link to ssb for plus.
|
611 |
+
$opts26p = array(
|
612 |
+
'form_group' => false,
|
613 |
+
'type' => 'checkbox',
|
614 |
+
'name' => 'ssba_plus_link_to_ssb',
|
615 |
+
'label' => 'Share Text Link',
|
616 |
+
'tooltip' => 'Enabling this will set your share text as a link to simplesharebuttons.com to help others learn of the plugin',
|
617 |
+
'value' => 'Y',
|
618 |
+
'checked' => 'Y' === $arr_settings['ssba_plus_link_to_ssb'] ? esc_attr( 'checked' ) : null,
|
619 |
+
);
|
620 |
+
|
621 |
+
// Link to ssb for plus.
|
622 |
+
$opts26s = array(
|
623 |
+
'form_group' => false,
|
624 |
+
'type' => 'checkbox',
|
625 |
+
'name' => 'ssba_share_link_to_ssb',
|
626 |
+
'label' => 'Share Text Link',
|
627 |
+
'tooltip' => 'Enabling this will set your share text as a link to simplesharebuttons.com to help others learn of the plugin',
|
628 |
+
'value' => 'Y',
|
629 |
+
'checked' => 'Y' === $arr_settings['ssba_share_link_to_ssb'] ? esc_attr( 'checked' ) : null,
|
630 |
+
);
|
631 |
+
|
632 |
+
// Content priority.
|
633 |
+
$opts27 = array(
|
634 |
+
'form_group' => false,
|
635 |
+
'type' => 'number',
|
636 |
+
'placeholder' => '10',
|
637 |
+
'name' => 'ssba_content_priority',
|
638 |
+
'label' => 'Content Priority',
|
639 |
+
'tooltip' => 'Set the priority for your share buttons within your content. 1-10, default is 10',
|
640 |
+
'value' => $arr_settings['ssba_content_priority'],
|
641 |
+
);
|
642 |
+
|
643 |
+
// Share in new window.
|
644 |
+
$opts28 = array(
|
645 |
+
'form_group' => false,
|
646 |
+
'type' => 'checkbox',
|
647 |
+
'name' => 'ssba_share_new_window',
|
648 |
+
'label' => 'Open links in a new window',
|
649 |
+
'tooltip' => 'Disabling this will make links open in the same window',
|
650 |
+
'value' => 'Y',
|
651 |
+
'checked' => 'Y' === $arr_settings['ssba_share_new_window'] ? esc_attr( 'checked' ) : null,
|
652 |
+
);
|
653 |
+
|
654 |
+
// Share in new window for plus.
|
655 |
+
$opts28p = array(
|
656 |
+
'form_group' => false,
|
657 |
+
'type' => 'checkbox',
|
658 |
+
'name' => 'ssba_plus_share_new_window',
|
659 |
+
'label' => 'Open links in a new window',
|
660 |
+
'tooltip' => 'Disabling this will make links open in the same window',
|
661 |
+
'value' => 'Y',
|
662 |
+
'checked' => 'Y' === $arr_settings['ssba_plus_share_new_window'] ? esc_attr( 'checked' ) : null,
|
663 |
+
);
|
664 |
+
|
665 |
+
// Share in new window for share bar.
|
666 |
+
$opts28s = array(
|
667 |
+
'form_group' => false,
|
668 |
+
'type' => 'checkbox',
|
669 |
+
'name' => 'ssba_share_share_new_window',
|
670 |
+
'label' => 'Open links in a new window',
|
671 |
+
'tooltip' => 'Disabling this will make links open in the same window',
|
672 |
+
'value' => 'Y',
|
673 |
+
'checked' => 'Y' === $arr_settings['ssba_share_share_new_window'] ? esc_attr( 'checked' ) : null,
|
674 |
+
);
|
675 |
+
|
676 |
+
// Nofollow.
|
677 |
+
$opts29 = array(
|
678 |
+
'form_group' => false,
|
679 |
+
'type' => 'checkbox',
|
680 |
+
'name' => 'ssba_rel_nofollow',
|
681 |
+
'label' => 'Add rel="nofollow"',
|
682 |
+
'tooltip' => 'Enable this to add nofollow to all share links',
|
683 |
+
'value' => 'Y',
|
684 |
+
'checked' => 'Y' === $arr_settings['ssba_rel_nofollow'] ? esc_attr( 'checked' ) : null,
|
685 |
+
);
|
686 |
+
|
687 |
+
// Nofollow for plus.
|
688 |
+
$opts29p = array(
|
689 |
+
'form_group' => false,
|
690 |
+
'type' => 'checkbox',
|
691 |
+
'name' => 'ssba_plus_rel_nofollow',
|
692 |
+
'label' => 'Add rel="nofollow"',
|
693 |
+
'tooltip' => 'Enable this to add nofollow to all share links',
|
694 |
+
'value' => 'Y',
|
695 |
+
'checked' => 'Y' === $arr_settings['ssba_plus_rel_nofollow'] ? esc_attr( 'checked' ) : null,
|
696 |
+
);
|
697 |
+
|
698 |
+
// Nofollow for share bar.
|
699 |
+
$opts29s = array(
|
700 |
+
'form_group' => false,
|
701 |
+
'type' => 'checkbox',
|
702 |
+
'name' => 'ssba_share_rel_nofollow',
|
703 |
+
'label' => 'Add rel="nofollow"',
|
704 |
+
'tooltip' => 'Enable this to add nofollow to all share links',
|
705 |
+
'value' => 'Y',
|
706 |
+
'checked' => 'Y' === $arr_settings['ssba_share_rel_nofollow'] ? esc_attr( 'checked' ) : null,
|
707 |
+
);
|
708 |
+
|
709 |
+
// Widget share text.
|
710 |
+
$opts30 = array(
|
711 |
+
'form_group' => false,
|
712 |
+
'type' => 'text',
|
713 |
+
'placeholder' => 'Keeping sharing simple...',
|
714 |
+
'name' => 'ssba_widget_text',
|
715 |
+
'label' => 'Widget Share Text',
|
716 |
+
'tooltip' => 'Add custom share text when used as a widget',
|
717 |
+
'value' => $arr_settings['ssba_widget_text'],
|
718 |
+
);
|
719 |
+
|
720 |
+
// Widget share text for plus.
|
721 |
+
$opts30p = array(
|
722 |
+
'form_group' => false,
|
723 |
+
'type' => 'text',
|
724 |
+
'placeholder' => 'Keeping sharing simple...',
|
725 |
+
'name' => 'ssba_plus_widget_text',
|
726 |
+
'label' => 'Widget Share Text',
|
727 |
+
'tooltip' => 'Add custom share text when used as a widget',
|
728 |
+
'value' => $arr_settings['ssba_plus_widget_text'],
|
729 |
+
);
|
730 |
+
|
731 |
+
// Widget share text for share bar.
|
732 |
+
$opts30s = array(
|
733 |
+
'form_group' => false,
|
734 |
+
'type' => 'text',
|
735 |
+
'placeholder' => 'Keeping sharing simple...',
|
736 |
+
'name' => 'ssba_share_widget_text',
|
737 |
+
'label' => 'Widget Share Text',
|
738 |
+
'tooltip' => 'Add custom share text when used as a widget',
|
739 |
+
'value' => $arr_settings['ssba_share_widget_text'],
|
740 |
+
);
|
741 |
+
|
742 |
+
// Email share text.
|
743 |
+
$opts31 = array(
|
744 |
+
'form_group' => false,
|
745 |
+
'type' => 'text',
|
746 |
+
'placeholder' => 'Share by email...',
|
747 |
+
'name' => 'ssba_email_message',
|
748 |
+
'label' => 'Email Text',
|
749 |
+
'tooltip' => 'Add some text included in an email when people share that way',
|
750 |
+
'value' => $arr_settings['ssba_email_message'],
|
751 |
+
);
|
752 |
+
|
753 |
+
// Email share text for plus.
|
754 |
+
$opts31p = array(
|
755 |
+
'form_group' => false,
|
756 |
+
'type' => 'text',
|
757 |
+
'placeholder' => 'Share by email...',
|
758 |
+
'name' => 'ssba_plus_email_message',
|
759 |
+
'label' => 'Email Text',
|
760 |
+
'tooltip' => 'Add some text included in an email when people share that way',
|
761 |
+
'value' => $arr_settings['ssba_plus_email_message'],
|
762 |
+
);
|
763 |
+
|
764 |
+
// Email share text for share bar.
|
765 |
+
$opts31s = array(
|
766 |
+
'form_group' => false,
|
767 |
+
'type' => 'text',
|
768 |
+
'placeholder' => 'Share by email...',
|
769 |
+
'name' => 'ssba_share_email_message',
|
770 |
+
'label' => 'Email Text',
|
771 |
+
'tooltip' => 'Add some text included in an email when people share that way',
|
772 |
+
'value' => $arr_settings['ssba_share_email_message'],
|
773 |
+
);
|
774 |
+
|
775 |
+
// Facebook app id.
|
776 |
+
$opts32 = array(
|
777 |
+
'form_group' => false,
|
778 |
+
'type' => 'text',
|
779 |
+
'placeholder' => '123456789123',
|
780 |
+
'name' => 'facebook_app_id',
|
781 |
+
'label' => 'Facebook App ID',
|
782 |
+
'tooltip' => 'Enter your Facebook App ID, e.g. 123456789123',
|
783 |
+
'value' => $arr_settings['facebook_app_id'],
|
784 |
+
'disabled' => 'Y' !== $arr_settings['accepted_sharethis_terms'] ? esc_attr( 'disabled' ) : null,
|
785 |
+
);
|
786 |
+
|
787 |
+
// Facebook app id for plus.
|
788 |
+
$opts32p = array(
|
789 |
+
'form_group' => false,
|
790 |
+
'type' => 'text',
|
791 |
+
'placeholder' => '123456789123',
|
792 |
+
'name' => 'plus_facebook_app_id',
|
793 |
+
'label' => 'Facebook App ID',
|
794 |
+
'tooltip' => 'Enter your Facebook App ID, e.g. 123456789123',
|
795 |
+
'value' => $arr_settings['plus_facebook_app_id'],
|
796 |
+
'disabled' => 'Y' !== $arr_settings['accepted_sharethis_terms'] ? esc_attr( 'disabled' ) : null,
|
797 |
+
);
|
798 |
+
|
799 |
+
// Facebook app id for share bar.
|
800 |
+
$opts32s = array(
|
801 |
+
'form_group' => false,
|
802 |
+
'type' => 'text',
|
803 |
+
'placeholder' => '123456789123',
|
804 |
+
'name' => 'share_facebook_app_id',
|
805 |
+
'label' => 'Facebook App ID',
|
806 |
+
'tooltip' => 'Enter your Facebook App ID, e.g. 123456789123',
|
807 |
+
'value' => $arr_settings['share_facebook_app_id'],
|
808 |
+
'disabled' => 'Y' !== $arr_settings['accepted_sharethis_terms'] ? esc_attr( 'disabled' ) : null,
|
809 |
+
);
|
810 |
+
|
811 |
+
// Facebook insights.
|
812 |
+
$opts33 = array(
|
813 |
+
'form_group' => false,
|
814 |
+
'type' => 'checkbox',
|
815 |
+
'name' => 'facebook_insights',
|
816 |
+
'label' => 'Facebook Insights',
|
817 |
+
'tooltip' => 'Enable this feature to enable Facebook Insights',
|
818 |
+
'value' => 'Y',
|
819 |
+
'checked' => 'Y' === $arr_settings['facebook_insights'] ? 'checked' : null,
|
820 |
+
'disabled' => 'Y' !== $arr_settings['accepted_sharethis_terms'] ? 'disabled' : null,
|
821 |
+
);
|
822 |
+
|
823 |
+
// Facebook insights for plus.
|
824 |
+
$opts33p = array(
|
825 |
+
'form_group' => false,
|
826 |
+
'type' => 'checkbox',
|
827 |
+
'name' => 'plus_facebook_insights',
|
828 |
+
'label' => 'Facebook Insights',
|
829 |
+
'tooltip' => 'Enable this feature to enable Facebook Insights',
|
830 |
+
'value' => 'Y',
|
831 |
+
'checked' => 'Y' === $arr_settings['plus_facebook_insights'] ? 'checked' : null,
|
832 |
+
'disabled' => 'Y' !== $arr_settings['accepted_sharethis_terms'] ? 'disabled' : null,
|
833 |
+
);
|
834 |
+
|
835 |
+
// Facebook insights for share bar.
|
836 |
+
$opts33s = array(
|
837 |
+
'form_group' => false,
|
838 |
+
'type' => 'checkbox',
|
839 |
+
'name' => 'share_facebook_insights',
|
840 |
+
'label' => 'Facebook Insights',
|
841 |
+
'tooltip' => 'Enable this feature to enable Facebook Insights',
|
842 |
+
'value' => 'Y',
|
843 |
+
'checked' => 'Y' === $arr_settings['share_facebook_insights'] ? 'checked' : null,
|
844 |
+
'disabled' => 'Y' !== $arr_settings['accepted_sharethis_terms'] ? 'disabled' : null,
|
845 |
+
);
|
846 |
+
|
847 |
+
// Twitter share text.
|
848 |
+
$opts34 = array(
|
849 |
+
'form_group' => false,
|
850 |
+
'type' => 'text',
|
851 |
+
'placeholder' => 'Shared by Twitter...',
|
852 |
+
'name' => 'ssba_twitter_text',
|
853 |
+
'label' => 'Twitter Text',
|
854 |
+
'tooltip' => 'Add some custom text for when people share via Twitter',
|
855 |
+
'value' => $arr_settings['ssba_twitter_text'],
|
856 |
+
);
|
857 |
+
|
858 |
+
// Twitter share text for plus.
|
859 |
+
$opts34p = array(
|
860 |
+
'form_group' => false,
|
861 |
+
'type' => 'text',
|
862 |
+
'placeholder' => 'Shared by Twitter...',
|
863 |
+
'name' => 'ssba_plus_twitter_text',
|
864 |
+
'label' => 'Twitter Text',
|
865 |
+
'tooltip' => 'Add some custom text for when people share via Twitter',
|
866 |
+
'value' => $arr_settings['ssba_plus_twitter_text'],
|
867 |
+
);
|
868 |
+
|
869 |
+
// Twitter share text for share bar.
|
870 |
+
$opts34s = array(
|
871 |
+
'form_group' => false,
|
872 |
+
'type' => 'text',
|
873 |
+
'placeholder' => 'Shared by Twitter...',
|
874 |
+
'name' => 'ssba_share_twitter_text',
|
875 |
+
'label' => 'Twitter Text',
|
876 |
+
'tooltip' => 'Add some custom text for when people share via Twitter',
|
877 |
+
'value' => $arr_settings['ssba_share_twitter_text'],
|
878 |
+
);
|
879 |
+
|
880 |
+
// Flattr user id.
|
881 |
+
$opts35 = array(
|
882 |
+
'form_group' => false,
|
883 |
+
'type' => 'text',
|
884 |
+
'placeholder' => 'davidsneal',
|
885 |
+
'name' => 'ssba_flattr_user_id',
|
886 |
+
'label' => 'Flattr User ID',
|
887 |
+
'tooltip' => 'Enter your Flattr ID, e.g. davidsneal',
|
888 |
+
'value' => $arr_settings['ssba_flattr_user_id'],
|
889 |
+
);
|
890 |
+
|
891 |
+
// Flattr user id for plus.
|
892 |
+
$opts35p = array(
|
893 |
+
'form_group' => false,
|
894 |
+
'type' => 'text',
|
895 |
+
'placeholder' => 'davidsneal',
|
896 |
+
'name' => 'ssba_plus_flattr_user_id',
|
897 |
+
'label' => 'Flattr User ID',
|
898 |
+
'tooltip' => 'Enter your Flattr ID, e.g. davidsneal',
|
899 |
+
'value' => $arr_settings['ssba_plus_flattr_user_id'],
|
900 |
+
);
|
901 |
+
|
902 |
+
// Flattr user id for share bar.
|
903 |
+
$opts35s = array(
|
904 |
+
'form_group' => false,
|
905 |
+
'type' => 'text',
|
906 |
+
'placeholder' => 'davidsneal',
|
907 |
+
'name' => 'ssba_share_flattr_user_id',
|
908 |
+
'label' => 'Flattr User ID',
|
909 |
+
'tooltip' => 'Enter your Flattr ID, e.g. davidsneal',
|
910 |
+
'value' => $arr_settings['ssba_share_flattr_user_id'],
|
911 |
+
);
|
912 |
+
|
913 |
+
// Flattr url.
|
914 |
+
$opts36 = array(
|
915 |
+
'form_group' => false,
|
916 |
+
'type' => 'text',
|
917 |
+
'placeholder' => 'https://simplesharebuttons.com',
|
918 |
+
'name' => 'ssba_flattr_url',
|
919 |
+
'label' => 'Flattr URL',
|
920 |
+
'tooltip' => 'This option is perfect for dedicated sites, e.g. https://simplesharebuttons.com',
|
921 |
+
'value' => $arr_settings['ssba_flattr_url'],
|
922 |
+
);
|
923 |
+
|
924 |
+
// Flattr url for plus.
|
925 |
+
$opts36p = array(
|
926 |
+
'form_group' => false,
|
927 |
+
'type' => 'text',
|
928 |
+
'placeholder' => 'https://simplesharebuttons.com',
|
929 |
+
'name' => 'ssba_plus_flattr_url',
|
930 |
+
'label' => 'Flattr URL',
|
931 |
+
'tooltip' => 'This option is perfect for dedicated sites, e.g. https://simplesharebuttons.com',
|
932 |
+
'value' => $arr_settings['ssba_plus_flattr_url'],
|
933 |
+
);
|
934 |
+
|
935 |
+
// Flattr url for share bar.
|
936 |
+
$opts36s = array(
|
937 |
+
'form_group' => false,
|
938 |
+
'type' => 'text',
|
939 |
+
'placeholder' => 'https://simplesharebuttons.com',
|
940 |
+
'name' => 'ssba_share_flattr_url',
|
941 |
+
'label' => 'Flattr URL',
|
942 |
+
'tooltip' => 'This option is perfect for dedicated sites, e.g. https://simplesharebuttons.com',
|
943 |
+
'value' => $arr_settings['ssba_share_flattr_url'],
|
944 |
+
);
|
945 |
+
|
946 |
+
// Buffer text.
|
947 |
+
$opts37 = array(
|
948 |
+
'form_group' => false,
|
949 |
+
'type' => 'text',
|
950 |
+
'placeholder' => 'Shared by Buffer...',
|
951 |
+
'name' => 'ssba_buffer_text',
|
952 |
+
'label' => 'Custom Buffer Text',
|
953 |
+
'tooltip' => 'Add some custom text for when people share via Buffer',
|
954 |
+
'value' => $arr_settings['ssba_buffer_text'],
|
955 |
+
);
|
956 |
+
|
957 |
+
// Buffer text for plus.
|
958 |
+
$opts37p = array(
|
959 |
+
'form_group' => false,
|
960 |
+
'type' => 'text',
|
961 |
+
'placeholder' => 'Shared by Buffer...',
|
962 |
+
'name' => 'ssba_plus_buffer_text',
|
963 |
+
'label' => 'Custom Buffer Text',
|
964 |
+
'tooltip' => 'Add some custom text for when people share via Buffer',
|
965 |
+
'value' => $arr_settings['ssba_plus_buffer_text'],
|
966 |
+
);
|
967 |
+
|
968 |
+
// Buffer text for share bar.
|
969 |
+
$opts37s = array(
|
970 |
+
'form_group' => false,
|
971 |
+
'type' => 'text',
|
972 |
+
'placeholder' => 'Shared by Buffer...',
|
973 |
+
'name' => 'ssba_share_buffer_text',
|
974 |
+
'label' => 'Custom Buffer Text',
|
975 |
+
'tooltip' => 'Add some custom text for when people share via Buffer',
|
976 |
+
'value' => $arr_settings['ssba_share_buffer_text'],
|
977 |
+
);
|
978 |
+
|
979 |
+
// Pin featured images.
|
980 |
+
$opts38 = array(
|
981 |
+
'form_group' => false,
|
982 |
+
'type' => 'checkbox',
|
983 |
+
'name' => 'ssba_pinterest_featured',
|
984 |
+
'label' => 'Pin Featured Images',
|
985 |
+
'tooltip' => 'Force the use of featured images for posts/pages when pinning',
|
986 |
+
'value' => 'Y',
|
987 |
+
'checked' => 'Y' === $arr_settings['ssba_pinterest_featured'] ? 'checked' : null,
|
988 |
+
);
|
989 |
+
|
990 |
+
// Pin featured images for plus.
|
991 |
+
$opts38p = array(
|
992 |
+
'form_group' => false,
|
993 |
+
'type' => 'checkbox',
|
994 |
+
'name' => 'ssba_plus_pinterest_featured',
|
995 |
+
'label' => 'Pin Featured Images',
|
996 |
+
'tooltip' => 'Force the use of featured images for posts/pages when pinning',
|
997 |
+
'value' => 'Y',
|
998 |
+
'checked' => 'Y' === $arr_settings['ssba_plus_pinterest_featured'] ? 'checked' : null,
|
999 |
+
);
|
1000 |
+
|
1001 |
+
// Pin featured images for share bar.
|
1002 |
+
$opts38s = array(
|
1003 |
+
'form_group' => false,
|
1004 |
+
'type' => 'checkbox',
|
1005 |
+
'name' => 'ssba_share_pinterest_featured',
|
1006 |
+
'label' => 'Pin Featured Images',
|
1007 |
+
'tooltip' => 'Force the use of featured images for posts/pages when pinning',
|
1008 |
+
'value' => 'Y',
|
1009 |
+
'checked' => 'Y' === $arr_settings['ssba_share_pinterest_featured'] ? 'checked' : null,
|
1010 |
+
);
|
1011 |
+
|
1012 |
+
// Default pinterest image.
|
1013 |
+
$opts39 = array(
|
1014 |
+
'form_group' => false,
|
1015 |
+
'type' => 'image_upload',
|
1016 |
+
'name' => 'ssba_default_pinterest',
|
1017 |
+
'label' => 'Default Pinterest Image',
|
1018 |
+
'tooltip' => 'Upload a default Pinterest image',
|
1019 |
+
'value' => $arr_settings['ssba_default_pinterest'],
|
1020 |
+
);
|
1021 |
+
|
1022 |
+
// Default pinterest image for plus.
|
1023 |
+
$opts39p = array(
|
1024 |
+
'form_group' => false,
|
1025 |
+
'type' => 'image_upload',
|
1026 |
+
'name' => 'ssba_plus_default_pinterest',
|
1027 |
+
'label' => 'Default Pinterest Image',
|
1028 |
+
'tooltip' => 'Upload a default Pinterest image',
|
1029 |
+
'value' => $arr_settings['ssba_plus_default_pinterest'],
|
1030 |
+
);
|
1031 |
+
|
1032 |
+
// Default pinterest image for share bar.
|
1033 |
+
$opts39s = array(
|
1034 |
+
'form_group' => false,
|
1035 |
+
'type' => 'image_upload',
|
1036 |
+
'name' => 'ssba_share_default_pinterest',
|
1037 |
+
'label' => 'Default Pinterest Image',
|
1038 |
+
'tooltip' => 'Upload a default Pinterest image',
|
1039 |
+
'value' => $arr_settings['ssba_share_default_pinterest'],
|
1040 |
+
);
|
1041 |
+
|
1042 |
+
// Additional css.
|
1043 |
+
$opts40 = array(
|
1044 |
+
'form_group' => false,
|
1045 |
+
'type' => 'textarea',
|
1046 |
+
'rows' => '15',
|
1047 |
+
'class' => 'code-font',
|
1048 |
+
'name' => 'ssba_additional_css',
|
1049 |
+
'label' => 'Additional CSS',
|
1050 |
+
'tooltip' => 'Add your own additional CSS if you wish',
|
1051 |
+
'value' => $arr_settings['ssba_additional_css'],
|
1052 |
+
);
|
1053 |
+
|
1054 |
+
// Additional css for plus.
|
1055 |
+
$opts40p = array(
|
1056 |
+
'form_group' => false,
|
1057 |
+
'type' => 'textarea',
|
1058 |
+
'rows' => '15',
|
1059 |
+
'class' => 'code-font',
|
1060 |
+
'name' => 'ssba_plus_additional_css',
|
1061 |
+
'label' => 'Additional CSS',
|
1062 |
+
'tooltip' => 'Add your own additional CSS if you wish',
|
1063 |
+
'value' => $arr_settings['ssba_plus_additional_css'],
|
1064 |
+
);
|
1065 |
+
|
1066 |
+
// Additional css for share.
|
1067 |
+
$opts40s = array(
|
1068 |
+
'form_group' => false,
|
1069 |
+
'type' => 'textarea',
|
1070 |
+
'rows' => '15',
|
1071 |
+
'class' => 'code-font',
|
1072 |
+
'name' => 'ssba_share_additional_css',
|
1073 |
+
'label' => 'Additional CSS',
|
1074 |
+
'tooltip' => 'Add your own additional CSS if you wish',
|
1075 |
+
'value' => $arr_settings['ssba_share_additional_css'],
|
1076 |
+
);
|
1077 |
+
|
1078 |
+
// Enable custom css.
|
1079 |
+
$opts41 = array(
|
1080 |
+
'form_group' => false,
|
1081 |
+
'type' => 'checkbox',
|
1082 |
+
'name' => 'ssba_custom_styles_enabled',
|
1083 |
+
'label' => 'Enable Custom CSS',
|
1084 |
+
'tooltip' => 'Switch on to disable all SSBA styles and use your own custom CSS',
|
1085 |
+
'value' => 'Y',
|
1086 |
+
'checked' => 'Y' === $arr_settings['ssba_custom_styles_enabled'] ? 'checked' : null,
|
1087 |
+
);
|
1088 |
+
|
1089 |
+
// Enable custom css for plus.
|
1090 |
+
$opts41p = array(
|
1091 |
+
'form_group' => false,
|
1092 |
+
'type' => 'checkbox',
|
1093 |
+
'name' => 'ssba_plus_custom_styles_enabled',
|
1094 |
+
'label' => 'Enable Custom CSS',
|
1095 |
+
'tooltip' => 'Switch on to disable all SSBA styles and use your own custom CSS',
|
1096 |
+
'value' => 'Y',
|
1097 |
+
'checked' => 'Y' === $arr_settings['ssba_plus_custom_styles_enabled'] ? 'checked' : null,
|
1098 |
+
);
|
1099 |
+
|
1100 |
+
// Enable custom css for share bar.
|
1101 |
+
$opts41s = array(
|
1102 |
+
'form_group' => false,
|
1103 |
+
'type' => 'checkbox',
|
1104 |
+
'name' => 'ssba_share_custom_styles_enabled',
|
1105 |
+
'label' => 'Enable Custom CSS',
|
1106 |
+
'tooltip' => 'Switch on to disable all SSBA styles and use your own custom CSS',
|
1107 |
+
'value' => 'Y',
|
1108 |
+
'checked' => 'Y' === $arr_settings['ssba_share_custom_styles_enabled'] ? 'checked' : null,
|
1109 |
+
);
|
1110 |
+
|
1111 |
+
// Custom css.
|
1112 |
+
$opts42 = array(
|
1113 |
+
'form_group' => false,
|
1114 |
+
'type' => 'textarea',
|
1115 |
+
'rows' => '15',
|
1116 |
+
'class' => 'code-font',
|
1117 |
+
'name' => 'ssba_custom_styles',
|
1118 |
+
'label' => 'Custom CSS',
|
1119 |
+
'tooltip' => 'Enter in your own custom CSS for your share buttons',
|
1120 |
+
'value' => $arr_settings['ssba_custom_styles'],
|
1121 |
+
);
|
1122 |
+
|
1123 |
+
// Custom css for plus.
|
1124 |
+
$opts42p = array(
|
1125 |
+
'form_group' => false,
|
1126 |
+
'type' => 'textarea',
|
1127 |
+
'rows' => '15',
|
1128 |
+
'class' => 'code-font',
|
1129 |
+
'name' => 'ssba_plus_custom_styles',
|
1130 |
+
'label' => 'Custom CSS',
|
1131 |
+
'tooltip' => 'Enter in your own custom CSS for your share buttons',
|
1132 |
+
'value' => $arr_settings['ssba_plus_custom_styles'],
|
1133 |
+
);
|
1134 |
+
|
1135 |
+
// Custom css for share bar.
|
1136 |
+
$opts42s = array(
|
1137 |
+
'form_group' => false,
|
1138 |
+
'type' => 'textarea',
|
1139 |
+
'rows' => '15',
|
1140 |
+
'class' => 'code-font',
|
1141 |
+
'name' => 'ssba_share_custom_styles',
|
1142 |
+
'label' => 'Custom CSS',
|
1143 |
+
'tooltip' => 'Enter in your own custom CSS for your share buttons',
|
1144 |
+
'value' => $arr_settings['ssba_share_custom_styles'],
|
1145 |
+
);
|
1146 |
+
|
1147 |
+
// Switch to new buttons.
|
1148 |
+
$opts43 = array(
|
1149 |
+
'form_group' => false,
|
1150 |
+
'type' => 'checkbox',
|
1151 |
+
'name' => 'ssba_new_buttons',
|
1152 |
+
'label' => 'Plus Share Buttons',
|
1153 |
+
'tooltip' => 'If "On" new buttons replace the old on your site.',
|
1154 |
+
'value' => 'Y',
|
1155 |
+
'checked' => 'Y' === $arr_settings['ssba_new_buttons'] ? 'checked' : null,
|
1156 |
+
);
|
1157 |
+
|
1158 |
+
// Select style of new buttons.
|
1159 |
+
$opts44 = array(
|
1160 |
+
'form_group' => false,
|
1161 |
+
'type' => 'select',
|
1162 |
+
'name' => 'ssba_share_button_style',
|
1163 |
+
'label' => 'Theme',
|
1164 |
+
'tooltip' => 'Choose the style of the new buttons',
|
1165 |
+
'selected' => $arr_settings['ssba_share_button_style'],
|
1166 |
+
'options' => array(
|
1167 |
+
'Round' => 1,
|
1168 |
+
'Square' => 2,
|
1169 |
+
'Logo Name' => 3,
|
1170 |
+
'Rounded' => 4,
|
1171 |
+
'3D' => 5,
|
1172 |
+
'Border Round' => 6,
|
1173 |
+
'Border Logo Name' => 7,
|
1174 |
+
'Black Border' => 8,
|
1175 |
+
'Underline' => 9,
|
1176 |
+
'Auto Square' => 10,
|
1177 |
+
'Name' => 11,
|
1178 |
+
),
|
1179 |
+
);
|
1180 |
+
|
1181 |
+
// Locations.
|
1182 |
+
$opts48 = array(
|
1183 |
+
'form_group' => false,
|
1184 |
+
'label' => 'Locations',
|
1185 |
+
'tooltip' => 'Enable the locations you wish for plus buttons to appear',
|
1186 |
+
'value' => 'Y',
|
1187 |
+
'checkboxes' => $locs3,
|
1188 |
+
);
|
1189 |
+
|
1190 |
+
// Placement.
|
1191 |
+
$opts49 = array(
|
1192 |
+
'form_group' => false,
|
1193 |
+
'type' => 'select',
|
1194 |
+
'name' => 'ssba_before_or_after_plus',
|
1195 |
+
'label' => 'Placement',
|
1196 |
+
'tooltip' => 'Place share buttons before or after your content',
|
1197 |
+
'selected' => $arr_settings['ssba_before_or_after_plus'],
|
1198 |
+
'options' => array(
|
1199 |
+
'After' => 'after',
|
1200 |
+
'Before' => 'before',
|
1201 |
+
'Both' => 'both',
|
1202 |
+
),
|
1203 |
+
);
|
1204 |
+
|
1205 |
+
// Locations.
|
1206 |
+
$opts45 = array(
|
1207 |
+
'form_group' => false,
|
1208 |
+
'label' => 'Locations',
|
1209 |
+
'tooltip' => 'Enable the locations you wish for share buttons to appear',
|
1210 |
+
'value' => 'Y',
|
1211 |
+
'checkboxes' => $locs2,
|
1212 |
+
);
|
1213 |
+
|
1214 |
+
// Select style of share bar.
|
1215 |
+
$opts46 = array(
|
1216 |
+
'form_group' => false,
|
1217 |
+
'type' => 'select',
|
1218 |
+
'name' => 'ssba_share_bar_style',
|
1219 |
+
'label' => 'Style',
|
1220 |
+
'tooltip' => 'Choose the style of the share bar buttons',
|
1221 |
+
'selected' => $arr_settings['ssba_share_bar_style'],
|
1222 |
+
'options' => array(
|
1223 |
+
'Round' => 1,
|
1224 |
+
'Square' => 2,
|
1225 |
+
'Logo Name' => 3,
|
1226 |
+
'Rounded' => 4,
|
1227 |
+
'3D' => 5,
|
1228 |
+
'Border Round' => 6,
|
1229 |
+
'Border Logo Name' => 7,
|
1230 |
+
'Black Border' => 8,
|
1231 |
+
'Underline' => 9,
|
1232 |
+
'Name' => 11,
|
1233 |
+
),
|
1234 |
+
);
|
1235 |
+
|
1236 |
+
// Select position of share bar.
|
1237 |
+
$opts47 = array(
|
1238 |
+
'form_group' => false,
|
1239 |
+
'type' => 'select',
|
1240 |
+
'name' => 'ssba_share_bar_position',
|
1241 |
+
'label' => 'Alignment',
|
1242 |
+
'tooltip' => 'Choose the share bar position',
|
1243 |
+
'selected' => $arr_settings['ssba_share_bar_position'],
|
1244 |
+
'options' => array(
|
1245 |
+
'Sticky Left' => 'left',
|
1246 |
+
'Sticky Right' => 'right',
|
1247 |
+
),
|
1248 |
+
);
|
1249 |
+
|
1250 |
+
// Plus buttons height.
|
1251 |
+
$plus_height = array(
|
1252 |
+
'form_group' => false,
|
1253 |
+
'type' => 'number_addon',
|
1254 |
+
'addon' => 'px',
|
1255 |
+
'placeholder' => '48',
|
1256 |
+
'name' => 'ssba_plus_height',
|
1257 |
+
'label' => 'Height',
|
1258 |
+
'tooltip' => 'Set the height of the plus buttons',
|
1259 |
+
'value' => $arr_settings['ssba_plus_height'],
|
1260 |
+
);
|
1261 |
+
|
1262 |
+
// Plus buttons width.
|
1263 |
+
$plus_width = array(
|
1264 |
+
'form_group' => false,
|
1265 |
+
'type' => 'number_addon',
|
1266 |
+
'addon' => 'px',
|
1267 |
+
'placeholder' => '48',
|
1268 |
+
'name' => 'ssba_plus_width',
|
1269 |
+
'label' => 'Width',
|
1270 |
+
'tooltip' => 'Set the width of the plus buttons',
|
1271 |
+
'value' => $arr_settings['ssba_plus_width'],
|
1272 |
+
);
|
1273 |
+
|
1274 |
+
// Plus icon size.
|
1275 |
+
$plus_icon_size = array(
|
1276 |
+
'form_group' => false,
|
1277 |
+
'type' => 'number_addon',
|
1278 |
+
'addon' => 'px',
|
1279 |
+
'placeholder' => '24',
|
1280 |
+
'name' => 'ssba_plus_icon_size',
|
1281 |
+
'label' => 'Icon Size',
|
1282 |
+
'tooltip' => 'Set the icon size of the plus buttons',
|
1283 |
+
'value' => $arr_settings['ssba_plus_icon_size'],
|
1284 |
+
);
|
1285 |
+
|
1286 |
+
// Plus button margin.
|
1287 |
+
$plus_margin = array(
|
1288 |
+
'form_group' => false,
|
1289 |
+
'type' => 'number_addon',
|
1290 |
+
'addon' => 'px',
|
1291 |
+
'placeholder' => '12',
|
1292 |
+
'name' => 'ssba_plus_margin',
|
1293 |
+
'label' => 'Margin',
|
1294 |
+
'tooltip' => 'Set the margin of the plus buttons',
|
1295 |
+
'value' => $arr_settings['ssba_plus_margin'],
|
1296 |
+
);
|
1297 |
+
|
1298 |
+
// Plus button color override.
|
1299 |
+
$plus_button_color = array(
|
1300 |
+
'form_group' => false,
|
1301 |
+
'type' => 'colorpicker',
|
1302 |
+
'name' => 'ssba_plus_button_color',
|
1303 |
+
'label' => 'Button Color',
|
1304 |
+
'tooltip' => 'Choose the color for all plus buttons',
|
1305 |
+
'value' => $arr_settings['ssba_plus_button_color'],
|
1306 |
+
);
|
1307 |
+
|
1308 |
+
// Plus button hover color override.
|
1309 |
+
$plus_hover_color = array(
|
1310 |
+
'form_group' => false,
|
1311 |
+
'type' => 'colorpicker',
|
1312 |
+
'name' => 'ssba_plus_button_hover_color',
|
1313 |
+
'label' => 'Hover Color',
|
1314 |
+
'tooltip' => 'Choose the color for all plus buttons hover',
|
1315 |
+
'value' => $arr_settings['ssba_plus_button_hover_color'],
|
1316 |
+
);
|
1317 |
+
|
1318 |
+
// Plus icon color override.
|
1319 |
+
$plus_icon_color = array(
|
1320 |
+
'form_group' => false,
|
1321 |
+
'type' => 'colorpicker',
|
1322 |
+
'name' => 'ssba_plus_icon_color',
|
1323 |
+
'label' => 'Icon Color',
|
1324 |
+
'tooltip' => 'Choose the color for all plus button icons',
|
1325 |
+
'value' => $arr_settings['ssba_plus_icon_color'],
|
1326 |
+
);
|
1327 |
+
|
1328 |
+
// Plus button color override.
|
1329 |
+
$plus_icon_hover_color = array(
|
1330 |
+
'form_group' => false,
|
1331 |
+
'type' => 'colorpicker',
|
1332 |
+
'name' => 'ssba_plus_icon_hover_color',
|
1333 |
+
'label' => 'Icon Hover Color',
|
1334 |
+
'tooltip' => 'Choose the color for all plus button icons hover',
|
1335 |
+
'value' => $arr_settings['ssba_plus_icon_hover_color'],
|
1336 |
+
);
|
1337 |
+
|
1338 |
+
// share buttons height.
|
1339 |
+
$share_height = array(
|
1340 |
+
'form_group' => false,
|
1341 |
+
'type' => 'number_addon',
|
1342 |
+
'addon' => 'px',
|
1343 |
+
'placeholder' => '48',
|
1344 |
+
'name' => 'ssba_share_height',
|
1345 |
+
'label' => 'Height',
|
1346 |
+
'tooltip' => 'Set the height of the share bar buttons',
|
1347 |
+
'value' => $arr_settings['ssba_share_height'],
|
1348 |
+
);
|
1349 |
+
|
1350 |
+
// share buttons width.
|
1351 |
+
$share_width = array(
|
1352 |
+
'form_group' => false,
|
1353 |
+
'type' => 'number_addon',
|
1354 |
+
'addon' => 'px',
|
1355 |
+
'placeholder' => '48',
|
1356 |
+
'name' => 'ssba_share_width',
|
1357 |
+
'label' => 'Width',
|
1358 |
+
'tooltip' => 'Set the width of the share bar buttons',
|
1359 |
+
'value' => $arr_settings['ssba_share_width'],
|
1360 |
+
);
|
1361 |
+
|
1362 |
+
// share icon size.
|
1363 |
+
$share_icon_size = array(
|
1364 |
+
'form_group' => false,
|
1365 |
+
'type' => 'number_addon',
|
1366 |
+
'addon' => 'px',
|
1367 |
+
'placeholder' => '24',
|
1368 |
+
'name' => 'ssba_share_icon_size',
|
1369 |
+
'label' => 'Icon Size',
|
1370 |
+
'tooltip' => 'Set the icon size of the share bar buttons',
|
1371 |
+
'value' => $arr_settings['ssba_share_icon_size'],
|
1372 |
+
);
|
1373 |
+
|
1374 |
+
// share button margin.
|
1375 |
+
$share_margin = array(
|
1376 |
+
'form_group' => false,
|
1377 |
+
'type' => 'number_addon',
|
1378 |
+
'addon' => 'px',
|
1379 |
+
'placeholder' => '12',
|
1380 |
+
'name' => 'ssba_share_margin',
|
1381 |
+
'label' => 'Margin',
|
1382 |
+
'tooltip' => 'Set the margin of the share bar buttons',
|
1383 |
+
'value' => $arr_settings['ssba_share_margin'],
|
1384 |
+
);
|
1385 |
+
|
1386 |
+
// share button color override.
|
1387 |
+
$share_button_color = array(
|
1388 |
+
'form_group' => false,
|
1389 |
+
'type' => 'colorpicker',
|
1390 |
+
'name' => 'ssba_share_button_color',
|
1391 |
+
'label' => 'Button Color',
|
1392 |
+
'tooltip' => 'Choose the color for all share bar buttons',
|
1393 |
+
'value' => $arr_settings['ssba_share_button_color'],
|
1394 |
+
);
|
1395 |
+
|
1396 |
+
// share button hover color override.
|
1397 |
+
$share_hover_color = array(
|
1398 |
+
'form_group' => false,
|
1399 |
+
'type' => 'colorpicker',
|
1400 |
+
'name' => 'ssba_share_button_hover_color',
|
1401 |
+
'label' => 'Hover Color',
|
1402 |
+
'tooltip' => 'Choose the color for all share bar buttons hover',
|
1403 |
+
'value' => $arr_settings['ssba_share_button_hover_color'],
|
1404 |
+
);
|
1405 |
+
|
1406 |
+
// share icon color override.
|
1407 |
+
$share_icon_color = array(
|
1408 |
+
'form_group' => false,
|
1409 |
+
'type' => 'colorpicker',
|
1410 |
+
'name' => 'ssba_share_icon_color',
|
1411 |
+
'label' => 'Icon Color',
|
1412 |
+
'tooltip' => 'Choose the color for all share bar button icons',
|
1413 |
+
'value' => $arr_settings['ssba_share_icon_color'],
|
1414 |
+
);
|
1415 |
+
|
1416 |
+
// share button color override.
|
1417 |
+
$share_icon_hover_color = array(
|
1418 |
+
'form_group' => false,
|
1419 |
+
'type' => 'colorpicker',
|
1420 |
+
'name' => 'ssba_share_icon_hover_color',
|
1421 |
+
'label' => 'Icon Hover Color',
|
1422 |
+
'tooltip' => 'Choose the color for all share bar button icons hover',
|
1423 |
+
'value' => $arr_settings['ssba_share_icon_hover_color'],
|
1424 |
+
);
|
1425 |
+
|
1426 |
+
// Enable share bar.
|
1427 |
+
$share_bar = array(
|
1428 |
+
'form_group' => false,
|
1429 |
+
'type' => 'checkbox',
|
1430 |
+
'name' => 'ssba_share_bar',
|
1431 |
+
'label' => 'Share Bar',
|
1432 |
+
'tooltip' => 'If "On" share bar will appear on your site.',
|
1433 |
+
'value' => 'Y',
|
1434 |
+
'checked' => 'Y' === $arr_settings['ssba_share_bar'] ? 'checked' : null,
|
1435 |
+
);
|
1436 |
+
|
1437 |
+
// Share bar display.
|
1438 |
+
$share_bar_display = array(
|
1439 |
+
'form_group' => false,
|
1440 |
+
'label' => 'Display on',
|
1441 |
+
'tooltip' => 'Disable to hide on desktop or mobile views',
|
1442 |
+
'value' => 'Y',
|
1443 |
+
'checkboxes' => $display_loc,
|
1444 |
+
);
|
1445 |
+
|
1446 |
+
// share button mobile breakpoint.
|
1447 |
+
$mobile_breakpoint = array(
|
1448 |
+
'form_group' => false,
|
1449 |
+
'type' => 'number_addon',
|
1450 |
+
'addon' => 'px',
|
1451 |
+
'placeholder' => '780',
|
1452 |
+
'name' => 'ssba_mobile_breakpoint',
|
1453 |
+
'label' => 'Mobile Breakpoint',
|
1454 |
+
'tooltip' => 'Set the share bar mobile breakpoint when it centers on screen',
|
1455 |
+
'value' => $arr_settings['ssba_mobile_breakpoint'],
|
1456 |
+
);
|
1457 |
+
|
1458 |
+
// Notices.
|
1459 |
+
$notice = get_option( 'ssba_dismiss_notice' );
|
1460 |
+
|
1461 |
+
// All buttons.
|
1462 |
+
$arr_buttons = array_values( json_decode( get_option( 'ssba_buttons' ), true ) );
|
1463 |
+
$selected_buttons = explode( ',', $arr_settings['ssba_selected_buttons'] );
|
1464 |
+
|
1465 |
+
// Custom button key.
|
1466 |
+
$custom_buttons = $this->get_custom_button_key( $arr_settings );
|
1467 |
+
|
1468 |
+
foreach ( $arr_buttons as $button_name ) {
|
1469 |
+
$new_name = str_replace( '+', '', str_replace( ' ', '_', strtolower( $button_name['full_name'] ) ) );
|
1470 |
+
$new_arr_buttons[ $new_name ] = $button_name;
|
1471 |
+
}
|
1472 |
+
|
1473 |
+
foreach ( $selected_buttons as $button ) {
|
1474 |
+
if ( isset( $new_arr_buttons[ $button ] ) ) {
|
1475 |
+
$selected_button_array[] = $new_arr_buttons[ $button ];
|
1476 |
+
}
|
1477 |
+
}
|
1478 |
+
|
1479 |
+
foreach ( $arr_buttons as $non_buttons ) {
|
1480 |
+
if ( ! in_array( $non_buttons, $selected_button_array, true ) ) {
|
1481 |
+
$non_selected_buttons[] = $non_buttons;
|
1482 |
+
}
|
1483 |
+
}
|
1484 |
+
|
1485 |
+
$arr_buttons = array_merge( $selected_button_array, $non_selected_buttons );
|
1486 |
+
|
1487 |
+
include_once( "{$this->plugin->dir_path}/templates/admin-panel.php" );
|
1488 |
+
}
|
1489 |
+
|
1490 |
+
/**
|
1491 |
+
* Get an html formatted of currently selected and ordered buttons.
|
1492 |
+
*
|
1493 |
+
* @param array $str_selected_ssba The selected buttons.
|
1494 |
+
* @param array $arr_settings The current ssba settings.
|
1495 |
+
*
|
1496 |
+
* @return string
|
1497 |
+
*/
|
1498 |
+
public function get_selected_ssba( $str_selected_ssba, $arr_settings ) {
|
1499 |
+
// Variables.
|
1500 |
+
$html_selected_list = '';
|
1501 |
+
|
1502 |
+
// Prepare array of buttons.
|
1503 |
+
$arr_buttons = json_decode( get_option( 'ssba_buttons' ), true );
|
1504 |
+
|
1505 |
+
// If there are some selected buttons.
|
1506 |
+
if ( '' !== $str_selected_ssba && null !== $str_selected_ssba && false !== $str_selected_ssba ) {
|
1507 |
+
// Explode saved include list and add to a new array.
|
1508 |
+
$arr_selected_ssba = explode( ',', $str_selected_ssba );
|
1509 |
+
|
1510 |
+
// Check if array is not empty.
|
1511 |
+
if ( '' !== $arr_selected_ssba ) {
|
1512 |
+
// For each included button.
|
1513 |
+
foreach ( $arr_selected_ssba as $str_selected ) {
|
1514 |
+
// If share this terms haven't been accepted and it's the facebook save button then make the button look disabled.
|
1515 |
+
$disabled = 'Y' !== $arr_settings['accepted_sharethis_terms'] && 'facebook_save' === $str_selected ? 'style="background-color:#eaeaea;"' : null;
|
1516 |
+
|
1517 |
+
// Add a list item for each selected option.
|
1518 |
+
$html_selected_list .= '<li class="ssbp-option-item" id="' . esc_attr( $str_selected ) . '"><a title="' . esc_attr( $arr_buttons[ $str_selected ]['full_name'] ) . '" href="javascript:;" class="ssbp-btn ssbp-' . esc_attr( $str_selected ) . '" ' . esc_attr( $disabled ) . '></a></li>';
|
1519 |
+
}
|
1520 |
+
}
|
1521 |
+
}
|
1522 |
+
|
1523 |
+
// Return html list options.
|
1524 |
+
return $html_selected_list;
|
1525 |
+
}
|
1526 |
+
|
1527 |
+
/**
|
1528 |
+
* Custom button key.
|
1529 |
+
*
|
1530 |
+
* @param array $arr_settings The current site settings.
|
1531 |
+
*/
|
1532 |
+
public function get_custom_button_key( $arr_settings ) {
|
1533 |
+
$custom_array = array(
|
1534 |
+
'facebook' => isset( $arr_settings['ssba_custom_facebook'] ) ? $arr_settings['ssba_custom_facebook'] : '',
|
1535 |
+
'google' => isset( $arr_settings['ssba_custom_google'] ) ? $arr_settings['ssba_custom_google'] : '',
|
1536 |
+
'twitter' => isset( $arr_settings['ssba_custom_twitter'] ) ? $arr_settings['ssba_custom_twitter'] : '',
|
1537 |
+
'linkedin' => isset( $arr_settings['ssba_custom_linkedin'] ) ? $arr_settings['ssba_custom_linkedin'] : '',
|
1538 |
+
'flattr' => isset( $arr_settings['ssba_custom_flattr'] ) ? $arr_settings['ssba_custom_flattr'] : '',
|
1539 |
+
'pinterest' => isset( $arr_settings['ssba_custom_pinterest'] ) ? $arr_settings['ssba_custom_pinterest'] : '',
|
1540 |
+
'print' => isset( $arr_settings['ssba_custom_print'] ) ? $arr_settings['ssba_custom_print'] : '',
|
1541 |
+
'reddit' => isset( $arr_settings['ssba_custom_reddit'] ) ? $arr_settings['ssba_custom_reddit'] : '',
|
1542 |
+
'stumbleupon' => isset( $arr_settings['ssba_custom_stumbleupon'] ) ? $arr_settings['ssba_custom_stumbleupon'] : '',
|
1543 |
+
'tumblr' => isset( $arr_settings['ssba_custom_tumblr'] ) ? $arr_settings['ssba_custom_tumblr'] : '',
|
1544 |
+
'vk' => isset( $arr_settings['ssba_custom_vk'] ) ? $arr_settings['ssba_custom_vk'] : '',
|
1545 |
+
'whatsapp' => isset( $arr_settings['ssba_custom_whatsapp'] ) ? $arr_settings['ssba_custom_whatsapp'] : '',
|
1546 |
+
'xing' => isset( $arr_settings['ssba_custom_xing'] ) ? $arr_settings['ssba_custom_xing'] : '',
|
1547 |
+
'yummly' => isset( $arr_settings['ssba_custom_yummly'] ) ? $arr_settings['ssba_custom_yummly'] : '',
|
1548 |
+
);
|
1549 |
+
|
1550 |
+
return $custom_array;
|
1551 |
+
}
|
1552 |
+
|
1553 |
+
/**
|
1554 |
+
* Get available share buttons.
|
1555 |
+
*
|
1556 |
+
* @param array $str_selected_ssba The selected buttons.
|
1557 |
+
* @param array $arr_settings The current ssba settings.
|
1558 |
+
*
|
1559 |
+
* @return string
|
1560 |
+
*/
|
1561 |
+
public function get_available_ssba( $str_selected_ssba, $arr_settings ) {
|
1562 |
+
// Variables.
|
1563 |
+
$html_available_list = '';
|
1564 |
+
|
1565 |
+
// Prepare array of buttons.
|
1566 |
+
$arr_buttons = json_decode( get_option( 'ssba_buttons' ), true );
|
1567 |
+
|
1568 |
+
// Explode saved include list and add to a new array.
|
1569 |
+
$arr_selected_ssba = explode( ',', $str_selected_ssba );
|
1570 |
+
|
1571 |
+
// Extract the available buttons.
|
1572 |
+
$arr_available_ssba = array_diff( array_keys( $arr_buttons ), $arr_selected_ssba );
|
1573 |
+
|
1574 |
+
// Check if array is not empty.
|
1575 |
+
if ( '' !== $arr_selected_ssba ) {
|
1576 |
+
// For each included button.
|
1577 |
+
foreach ( $arr_available_ssba as $str_available ) {
|
1578 |
+
// If share this terms haven't been accepted and it's the facebook save button then make the button look disabled.
|
1579 |
+
$disabled = 'Y' !== $arr_settings['accepted_sharethis_terms'] && 'facebook_save' === $str_available ? 'style="background-color:#eaeaea;"' : null;
|
1580 |
+
|
1581 |
+
// Add a list item for each available option.
|
1582 |
+
$html_available_list .= '<li class="ssbp-option-item" id="' . esc_attr( $str_available ) . '"><a title="' . esc_attr( $arr_buttons[ $str_available ]['full_name'] ) . '" href="javascript:;" class="ssbp-btn ssbp-' . esc_attr( $str_available ) . '" ' . esc_attr( $disabled ) . '></a></li>';
|
1583 |
+
}
|
1584 |
+
}
|
1585 |
+
|
1586 |
+
// Return html list options.
|
1587 |
+
return $html_available_list;
|
1588 |
+
}
|
1589 |
+
|
1590 |
+
/**
|
1591 |
+
* Get ssbp font family.
|
1592 |
+
*
|
1593 |
+
* @return string
|
1594 |
+
*/
|
1595 |
+
public function get_font_family() {
|
1596 |
+
return "@font-face {
|
1597 |
+
font-family: 'ssbp';
|
1598 |
+
src:url('{$this->plugin->dir_url}fonts/ssbp.eot?xj3ol1');
|
1599 |
+
src:url('{$this->plugin->dir_url}fonts/ssbp.eot?#iefixxj3ol1') format('embedded-opentype'),
|
1600 |
+
url('{$this->plugin->dir_url}fonts/ssbp.woff?xj3ol1') format('woff'),
|
1601 |
+
url('{$this->plugin->dir_url}fonts/ssbp.ttf?xj3ol1') format('truetype'),
|
1602 |
+
url('{$this->plugin->dir_url}fonts/ssbp.svg?xj3ol1#ssbp') format('svg');
|
1603 |
+
font-weight: normal;
|
1604 |
+
font-style: normal;
|
1605 |
+
|
1606 |
+
/* Better Font Rendering =========== */
|
1607 |
+
-webkit-font-smoothing: antialiased;
|
1608 |
+
-moz-osx-font-smoothing: grayscale;
|
1609 |
+
}";
|
1610 |
+
}
|
1611 |
+
|
1612 |
+
/**
|
1613 |
+
* Add additional admin styles
|
1614 |
+
*
|
1615 |
+
* @action admin_enqueue_scripts
|
1616 |
+
*/
|
1617 |
+
public function additional_styles() {
|
1618 |
+
$html_share_buttons_form = '';
|
1619 |
+
|
1620 |
+
// Get settings.
|
1621 |
+
$arr_settings = $this->class_ssba->get_ssba_settings();
|
1622 |
+
|
1623 |
+
// If user is accepting terms.
|
1624 |
+
if ( isset( $_GET['accept-terms'] ) && 'Y' === $_GET['accept-terms'] ) { // WPCS: CSRF ok.
|
1625 |
+
// Save acceptance.
|
1626 |
+
$this->class_ssba->ssba_update_options( array(
|
1627 |
+
'accepted_sharethis_terms' => 'Y',
|
1628 |
+
) );
|
1629 |
+
|
1630 |
+
// Hide the notice for now, it will disappear upon reload.
|
1631 |
+
$html_share_buttons_form .= '#sharethis_terms_notice { display: none }.ssbp-facebook_save { background-color: #365397 !important; }';
|
1632 |
+
}
|
1633 |
+
|
1634 |
+
// Get the font family needed.
|
1635 |
+
$html_share_buttons_form .= $this->get_font_family();
|
1636 |
+
|
1637 |
+
// If left to right.
|
1638 |
+
if ( is_rtl() ) {
|
1639 |
+
// Move save button.
|
1640 |
+
$html_share_buttons_form .= '.ssba-btn-save{ left: 0!important;
|
1641 |
+
right: auto !important;
|
1642 |
+
border-radius: 0 5px 5px 0; }';
|
1643 |
+
}
|
1644 |
+
|
1645 |
+
wp_add_inline_style( "{$this->plugin->assets_prefix}-admin-theme", $html_share_buttons_form );
|
1646 |
+
}
|
1647 |
+
}
|
php/class-buttons.php
ADDED
@@ -0,0 +1,1389 @@
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
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+
/**
|
11 |
+
* Buttons Class
|
12 |
+
*
|
13 |
+
* @package SimpleShareButtonsAdder
|
14 |
+
*/
|
15 |
+
class Buttons {
|
16 |
+
|
17 |
+
/**
|
18 |
+
* Plugin instance.
|
19 |
+
*
|
20 |
+
* @var object
|
21 |
+
*/
|
22 |
+
public $plugin;
|
23 |
+
|
24 |
+
/**
|
25 |
+
* Simple Share Buttons Adder instance.
|
26 |
+
*
|
27 |
+
* @var object
|
28 |
+
*/
|
29 |
+
public $class_ssba;
|
30 |
+
|
31 |
+
/**
|
32 |
+
* Class constructor.
|
33 |
+
*
|
34 |
+
* @param object $plugin Plugin class.
|
35 |
+
* @param object $class_ssba Simple Share Buttons Adder class.
|
36 |
+
*/
|
37 |
+
public function __construct( $plugin, $class_ssba ) {
|
38 |
+
$this->plugin = $plugin;
|
39 |
+
$this->class_ssba = $class_ssba;
|
40 |
+
}
|
41 |
+
|
42 |
+
/**
|
43 |
+
* Format the returned number.
|
44 |
+
*
|
45 |
+
* @param integer $int_number The number to format.
|
46 |
+
*
|
47 |
+
* @return string
|
48 |
+
*/
|
49 |
+
public function ssba_format_number( $int_number ) {
|
50 |
+
// If the number is greater than or equal to 1000.
|
51 |
+
if ( $int_number >= 1000 ) {
|
52 |
+
// Divide by 1000 and add k.
|
53 |
+
$int_number = round( ( $int_number / 1000 ), 1 ) . 'k';
|
54 |
+
}
|
55 |
+
|
56 |
+
// Return the number.
|
57 |
+
return $int_number;
|
58 |
+
}
|
59 |
+
|
60 |
+
/**
|
61 |
+
* Adds a filter around the content.
|
62 |
+
*
|
63 |
+
* @action wp_head, 99
|
64 |
+
*/
|
65 |
+
public function ssba_add_button_filter() {
|
66 |
+
$arr_settings = $this->class_ssba->get_ssba_settings();
|
67 |
+
|
68 |
+
add_filter( 'the_content', array( $this, 'show_share_buttons' ), (int) $arr_settings['ssba_content_priority'] );
|
69 |
+
|
70 |
+
// If we wish to add to excerpts.
|
71 |
+
if ( isset( $arr_settings['ssba_excerpts'] ) && 'Y' !== $arr_settings['ssba_excerpts'] ) {
|
72 |
+
add_filter( 'the_excerpt', array( $this, 'show_share_buttons' ) );
|
73 |
+
}
|
74 |
+
}
|
75 |
+
|
76 |
+
/**
|
77 |
+
* Call back for showing share buttons.
|
78 |
+
*
|
79 |
+
* @param string $content The current page or post content.
|
80 |
+
* @param bool $boo_shortcode Whether to use shortcode or not.
|
81 |
+
* @param array $atts Manual replacements for page url/title.
|
82 |
+
*
|
83 |
+
* @return string
|
84 |
+
*/
|
85 |
+
public function show_share_buttons( $content, $boo_shortcode = false, $atts = '' ) {
|
86 |
+
global $post;
|
87 |
+
|
88 |
+
// Variables.
|
89 |
+
$html_content = $content;
|
90 |
+
$str_share_text = '';
|
91 |
+
$pattern = get_shortcode_regex();
|
92 |
+
|
93 |
+
// Ssba_hide shortcode is in the post content and instance is not called by shortcode ssba.
|
94 |
+
if ( isset( $post->post_content )
|
95 |
+
&&
|
96 |
+
preg_match_all( '/' . $pattern . '/s', $post->post_content, $matches )
|
97 |
+
&&
|
98 |
+
array_key_exists( 2, $matches )
|
99 |
+
&&
|
100 |
+
in_array( 'ssba_hide', $matches[2], true )
|
101 |
+
&&
|
102 |
+
! $boo_shortcode
|
103 |
+
) {
|
104 |
+
// Exit the function returning the content without the buttons.
|
105 |
+
return $content;
|
106 |
+
}
|
107 |
+
|
108 |
+
// Get sbba settings.
|
109 |
+
$arr_settings = $this->class_ssba->get_ssba_settings();
|
110 |
+
|
111 |
+
// Placement on pages/posts/categories/archives/homepage.
|
112 |
+
if (
|
113 |
+
( ! is_home() && ! is_front_page() && is_page() && 'Y' === $arr_settings['ssba_pages'] )
|
114 |
+
||
|
115 |
+
( is_single() && 'Y' === $arr_settings['ssba_posts'] )
|
116 |
+
||
|
117 |
+
( is_category() && 'Y' === $arr_settings['ssba_cats_archs'] )
|
118 |
+
||
|
119 |
+
( is_archive() && 'Y' === $arr_settings['ssba_cats_archs'] )
|
120 |
+
||
|
121 |
+
( ( is_home() || is_front_page() ) && 'Y' === $arr_settings['ssba_homepage'] )
|
122 |
+
||
|
123 |
+
$boo_shortcode
|
124 |
+
) {
|
125 |
+
wp_enqueue_style( "{$this->plugin->assets_prefix}-ssba" );
|
126 |
+
|
127 |
+
// If not shortcode.
|
128 |
+
if ( isset( $atts['widget'] ) && 'Y' === $atts['widget'] && '' === $arr_settings['ssba_widget_text'] ) { // Use widget share text.
|
129 |
+
$str_share_text = $arr_settings['ssba_widget_text'];
|
130 |
+
} else { // Use normal share text.
|
131 |
+
$str_share_text = $arr_settings['ssba_share_text'];
|
132 |
+
}
|
133 |
+
|
134 |
+
// Post id.
|
135 |
+
$int_post_id = $post->ID;
|
136 |
+
|
137 |
+
// Ssba div.
|
138 |
+
$html_share_buttons = '<!-- Simple Share Buttons Adder (' . esc_html( SSBA_VERSION ) . ') simplesharebuttons.com --><div class="ssba ssba-wrap">';
|
139 |
+
|
140 |
+
// Center if set so.
|
141 |
+
$html_share_buttons .= '<div style="text-align:' . esc_attr( $arr_settings['ssba_align'] ) . '">';
|
142 |
+
|
143 |
+
// Add custom text if set and set to placement above or left.
|
144 |
+
if ( '' !== $str_share_text && ( 'above' === $arr_settings['ssba_text_placement'] || 'left' === $arr_settings['ssba_text_placement'] ) ) {
|
145 |
+
// Check if user has left share link box checked.
|
146 |
+
if ( 'Y' === $arr_settings['ssba_link_to_ssb'] ) {
|
147 |
+
// Share text with link.
|
148 |
+
$html_share_buttons .= '<a href="https://simplesharebuttons.com" target="_blank">' . esc_html( $str_share_text ) . '</a>';
|
149 |
+
} else { // Just display the share text.
|
150 |
+
// Share text.
|
151 |
+
$html_share_buttons .= $str_share_text;
|
152 |
+
}
|
153 |
+
// Add a line break if set to above.
|
154 |
+
$html_share_buttons .= 'above' === $arr_settings['ssba_text_placement'] ? '<br/>' : '';
|
155 |
+
}
|
156 |
+
|
157 |
+
// If running standard.
|
158 |
+
if ( ! $boo_shortcode ) {
|
159 |
+
// Use wordpress functions for page/post details.
|
160 |
+
$url_current_page = get_permalink( $post->ID );
|
161 |
+
$str_page_title = get_the_title( $post->ID );
|
162 |
+
|
163 |
+
} else { // Using shortcode.
|
164 |
+
// Set page URL and title as set by user or get if needed.
|
165 |
+
$url_current_page = isset( $atts['url'] ) ? $atts['url'] : $this->ssba_current_url( $atts );
|
166 |
+
$str_page_title = ( isset( $atts['title'] ) ? $atts['title'] : get_the_title() );
|
167 |
+
}
|
168 |
+
|
169 |
+
// Strip any unwanted tags from the page title.
|
170 |
+
$str_page_title = esc_attr( strip_tags( $str_page_title ) );
|
171 |
+
|
172 |
+
// The buttons.
|
173 |
+
$html_share_buttons .= $this->get_share_buttons( $arr_settings, $url_current_page, $str_page_title, $int_post_id );
|
174 |
+
|
175 |
+
// Add custom text if set and set to placement right or below.
|
176 |
+
if ( '' !== $str_share_text && ( 'right' === $arr_settings['ssba_text_placement'] || 'below' === $arr_settings['ssba_text_placement'] ) ) {
|
177 |
+
// Add a line break if set to above.
|
178 |
+
$html_share_buttons .= 'below' === $arr_settings['ssba_text_placement'] ? '<br/>' : '';
|
179 |
+
|
180 |
+
// Check if user has checked share link option.
|
181 |
+
if ( 'Y' === $arr_settings['ssba_link_to_ssb'] ) {
|
182 |
+
// Share text with link.
|
183 |
+
$html_share_buttons .= '<a href="https://simplesharebuttons.com" target="_blank">' . esc_html( $str_share_text ) . '</a>';
|
184 |
+
} else { // Just display the share text.
|
185 |
+
// Share text.
|
186 |
+
$html_share_buttons .= $str_share_text;
|
187 |
+
}
|
188 |
+
}
|
189 |
+
|
190 |
+
// Close center if set.
|
191 |
+
$html_share_buttons .= '</div></div>';
|
192 |
+
|
193 |
+
// If not using shortcode.
|
194 |
+
if ( ! $boo_shortcode ) {
|
195 |
+
// Switch for placement of ssba.
|
196 |
+
switch ( $arr_settings['ssba_before_or_after'] ) {
|
197 |
+
case 'before': // Before the content.
|
198 |
+
$html_content = $html_share_buttons . $content;
|
199 |
+
break;
|
200 |
+
case 'after': // After the content.
|
201 |
+
$html_content = $content . $html_share_buttons;
|
202 |
+
break;
|
203 |
+
case 'both': // Before and after the content.
|
204 |
+
$html_content = $html_share_buttons . $content . $html_share_buttons;
|
205 |
+
break;
|
206 |
+
}
|
207 |
+
} else { // If using shortcode.
|
208 |
+
// Just return buttons.
|
209 |
+
$html_content = $html_share_buttons;
|
210 |
+
}
|
211 |
+
} // End if().
|
212 |
+
|
213 |
+
// Return content and share buttons.
|
214 |
+
return $html_content;
|
215 |
+
}
|
216 |
+
|
217 |
+
/**
|
218 |
+
* Function that shows the share bar if enabled.
|
219 |
+
*
|
220 |
+
* @action wp_head, 99
|
221 |
+
*/
|
222 |
+
public function show_share_bar() {
|
223 |
+
global $post, $wp;
|
224 |
+
|
225 |
+
// Get sbba settings.
|
226 |
+
$arr_settings = $this->class_ssba->get_ssba_settings();
|
227 |
+
|
228 |
+
// Get current url.
|
229 |
+
$url_current_page = home_url( add_query_arg( array(), $wp->request ) );
|
230 |
+
|
231 |
+
// Placement on pages/posts/categories/archives/homepage.
|
232 |
+
if (
|
233 |
+
( ! is_home() && ! is_front_page() && is_page() && isset( $arr_settings['ssba_bar_pages'] ) && 'Y' === $arr_settings['ssba_bar_pages'] )
|
234 |
+
||
|
235 |
+
( is_single() && isset( $arr_settings['ssba_bar_posts'] ) && 'Y' === $arr_settings['ssba_bar_posts'] )
|
236 |
+
||
|
237 |
+
( is_category() && isset( $arr_settings['ssba_bar_cats_archs'] ) && 'Y' === $arr_settings['ssba_bar_cats_archs'] )
|
238 |
+
||
|
239 |
+
( is_archive() && isset( $arr_settings['ssba_bar_cats_archs'] ) && 'Y' === $arr_settings['ssba_bar_cats_archs'] )
|
240 |
+
||
|
241 |
+
( ( is_home() || is_front_page() ) && isset( $arr_settings['ssba_bar_homepage'] ) && 'Y' === $arr_settings['ssba_bar_homepage'] )
|
242 |
+
) {
|
243 |
+
$html_share_buttons .= '<div style="position:fixed;left:0;z-index:1000000000;top:30%;">';
|
244 |
+
// The buttons.
|
245 |
+
$html_share_buttons .= $this->get_share_bar( $arr_settings, $url_current_page, $post->post_title, $post->ID );
|
246 |
+
$html_share_buttons .= '</div>';
|
247 |
+
echo wp_kses_post( $html_share_buttons );
|
248 |
+
}
|
249 |
+
}
|
250 |
+
|
251 |
+
/**
|
252 |
+
* Shortcode for adding buttons.
|
253 |
+
*
|
254 |
+
* @param array $atts The current shortcodes attributes.
|
255 |
+
*
|
256 |
+
* @shortcode ssba-buttons
|
257 |
+
*
|
258 |
+
* @return string
|
259 |
+
*/
|
260 |
+
public function ssba_buttons( $atts ) {
|
261 |
+
// Get buttons - NULL for $content, TRUE for shortcode flag.
|
262 |
+
$html_share_buttons = $this->show_share_buttons( null, true, $atts );
|
263 |
+
|
264 |
+
// Return buttons.
|
265 |
+
return $html_share_buttons;
|
266 |
+
}
|
267 |
+
|
268 |
+
/**
|
269 |
+
* Shortcode for hiding buttons
|
270 |
+
*
|
271 |
+
* @param string $content The current page or posts content.
|
272 |
+
*
|
273 |
+
* @shortcode ssba_hide
|
274 |
+
*/
|
275 |
+
public function ssba_hide( $content ) {
|
276 |
+
// No need to do anything here!
|
277 |
+
}
|
278 |
+
|
279 |
+
/**
|
280 |
+
* Get URL function.
|
281 |
+
*
|
282 |
+
* @param array $atts The supplied attributes.
|
283 |
+
*
|
284 |
+
* @return string
|
285 |
+
*/
|
286 |
+
public function ssba_current_url( $atts ) {
|
287 |
+
|
288 |
+
if ( ! isset( $_SERVER['SERVER_NAME'] ) || ! isset( $_SERVER['REQUEST_URI'] ) ) {
|
289 |
+
return;
|
290 |
+
}
|
291 |
+
|
292 |
+
// If multisite has been set to true.
|
293 |
+
if ( isset( $atts['multisite'] ) && isset( $_SERVER['QUERY_STRING'] ) ) {
|
294 |
+
global $wp;
|
295 |
+
|
296 |
+
$url = add_query_arg( sanitize_text_field( wp_unslash( $_SERVER['QUERY_STRING'] ) ), '', home_url( $wp->request ) ); // WPCS: CSRF ok.
|
297 |
+
|
298 |
+
return esc_url( $url );
|
299 |
+
}
|
300 |
+
|
301 |
+
// Add http.
|
302 |
+
$url_current_page = 'http';
|
303 |
+
|
304 |
+
// Add s to http if required.
|
305 |
+
if ( isset( $_SERVER['HTTPS'] ) && 'on' === $_SERVER['HTTPS'] ) {
|
306 |
+
$url_current_page .= 's';
|
307 |
+
}
|
308 |
+
|
309 |
+
// Add colon and forward slashes.
|
310 |
+
$url_current_page .= '://' . sanitize_text_field( wp_unslash( $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'] ) );
|
311 |
+
|
312 |
+
// Return url.
|
313 |
+
return esc_url( $url_current_page );
|
314 |
+
}
|
315 |
+
|
316 |
+
/**
|
317 |
+
* Get set share buttons.
|
318 |
+
*
|
319 |
+
* @param array $arr_settings The current ssba settings.
|
320 |
+
* @param string $url_current_page The current pages url.
|
321 |
+
* @param string $str_page_title The page title.
|
322 |
+
* @param integer $int_post_id The post id.
|
323 |
+
*
|
324 |
+
* @return string
|
325 |
+
*/
|
326 |
+
public function get_share_buttons( $arr_settings, $url_current_page, $str_page_title, $int_post_id ) {
|
327 |
+
// Variables.
|
328 |
+
$html_share_buttons = '';
|
329 |
+
|
330 |
+
// Explode saved include list and add to a new array.
|
331 |
+
$arr_selected_ssba = explode( ',', $arr_settings['ssba_selected_buttons'] );
|
332 |
+
|
333 |
+
// Check if array is not empty.
|
334 |
+
if ( '' !== $arr_settings['ssba_selected_buttons'] ) {
|
335 |
+
|
336 |
+
// Add post ID to settings array.
|
337 |
+
$arr_settings['post_id'] = $int_post_id;
|
338 |
+
|
339 |
+
// If show counters option is selected.
|
340 |
+
if ( 'Y' === $arr_settings['ssba_show_share_count'] ) {
|
341 |
+
// Set show flag to true.
|
342 |
+
$boo_show_share_count = true;
|
343 |
+
|
344 |
+
// If show counters once option is selected.
|
345 |
+
if ( 'Y' === $arr_settings['ssba_share_count_once'] ) {
|
346 |
+
// If not a page or post.
|
347 |
+
if ( ! is_page() && ! is_single() ) {
|
348 |
+
// Let show flag to false.
|
349 |
+
$boo_show_share_count = false;
|
350 |
+
}
|
351 |
+
}
|
352 |
+
} else {
|
353 |
+
// Set show flag to false.
|
354 |
+
$boo_show_share_count = false;
|
355 |
+
}
|
356 |
+
|
357 |
+
// For each included button.
|
358 |
+
foreach ( $arr_selected_ssba as $str_selected ) {
|
359 |
+
$str_get_button = 'ssba_' . $str_selected;
|
360 |
+
|
361 |
+
// Add a list item for each selected option.
|
362 |
+
$html_share_buttons .= $this->$str_get_button( $arr_settings, $url_current_page, $str_page_title, $boo_show_share_count );
|
363 |
+
}
|
364 |
+
}
|
365 |
+
|
366 |
+
// Return share buttons.
|
367 |
+
return $html_share_buttons;
|
368 |
+
}
|
369 |
+
|
370 |
+
/**
|
371 |
+
* Get facebook button.
|
372 |
+
*
|
373 |
+
* @param array $arr_settings The current ssba settings.
|
374 |
+
* @param string $url_current_page The current page url.
|
375 |
+
* @param string $str_page_title The page title.
|
376 |
+
* @param bool $boo_show_share_count Show share count or not.
|
377 |
+
*
|
378 |
+
* @return string
|
379 |
+
*/
|
380 |
+
public function ssba_facebook( $arr_settings, $url_current_page, $str_page_title, $boo_show_share_count ) {
|
381 |
+
$nofollow = 'Y' === $arr_settings['ssba_rel_nofollow'] ? ' rel="nofollow"' : '';
|
382 |
+
$target = 'Y' === $arr_settings['ssba_share_new_window'] ? ' target="_blank" ' : '';
|
383 |
+
|
384 |
+
// If the sharethis terms have been accepted.
|
385 |
+
if ( 'Y' === $arr_settings['accepted_sharethis_terms'] && '' !== $arr_settings['facebook_app_id'] ) {
|
386 |
+
// Facebook share link.
|
387 |
+
$html_share_buttons = '<a data-site="" data-facebook="mobile" class="ssba_facebook_share" data-href="' . esc_attr( $url_current_page ) . '" href="https://www.facebook.com/dialog/share?app_id=' . esc_attr( $arr_settings['facebook_app_id'] ) . '&display=popup&href=' . esc_attr( $url_current_page ) . '&redirect_uri=' . esc_url( $url_current_page ) . '" ' . esc_attr( $target . $nofollow ) . '>';
|
388 |
+
} else {
|
389 |
+
// Facebook share link.
|
390 |
+
$html_share_buttons = '<a data-site="" class="ssba_facebook_share" href="http://www.facebook.com/sharer.php?u=' . esc_attr( $url_current_page ) . '" ' . $target . $nofollow . '>';
|
391 |
+
}
|
392 |
+
|
393 |
+
// If not using custom.
|
394 |
+
if ( 'custom' !== $arr_settings['ssba_image_set'] ) {
|
395 |
+
// Show selected ssba image.
|
396 |
+
$html_share_buttons .= '<img src="' . esc_url( plugins_url() ) . '/simple-share-buttons-adder/buttons/' . esc_attr( $arr_settings['ssba_image_set'] ) . '/facebook.png" title="Facebook" class="ssba ssba-img" alt="Share on Facebook" />';
|
397 |
+
} else { // If using custom images.
|
398 |
+
// Show custom image.
|
399 |
+
$html_share_buttons .= '<img src="' . esc_url( $arr_settings['ssba_custom_facebook'] ) . '" title="Facebook" class="ssba ssba-img" alt="Share on Facebook" />';
|
400 |
+
}
|
401 |
+
|
402 |
+
// Close href.
|
403 |
+
$html_share_buttons .= '</a>';
|
404 |
+
|
405 |
+
// If show share count is set to Y.
|
406 |
+
if ( 'Y' === $arr_settings['ssba_show_share_count'] && $boo_show_share_count ) {
|
407 |
+
// Get and add facebook share count.
|
408 |
+
$html_share_buttons .= '<span class="ssba_sharecount">' . esc_html( $this->get_facebook_share_count( $url_current_page, $arr_settings ) ) . '</span>';
|
409 |
+
}
|
410 |
+
|
411 |
+
// Return share buttons.
|
412 |
+
return $html_share_buttons;
|
413 |
+
}
|
414 |
+
|
415 |
+
/**
|
416 |
+
* Get set share buttons.
|
417 |
+
*
|
418 |
+
* @param array $arr_settings The current ssba settings.
|
419 |
+
* @param string $url_current_page The current pages url.
|
420 |
+
* @param string $str_page_title The page title.
|
421 |
+
* @param integer $int_post_id The post id.
|
422 |
+
*
|
423 |
+
* @return string
|
424 |
+
*/
|
425 |
+
public function get_share_bar( $arr_settings, $url_current_page, $str_page_title, $int_post_id ) {
|
426 |
+
// Variables.
|
427 |
+
$html_share_buttons = '';
|
428 |
+
|
429 |
+
// Explode saved include list and add to a new array.
|
430 |
+
$arr_selected_ssba = explode( ',', $arr_settings['ssba_selected_share_buttons'] );
|
431 |
+
|
432 |
+
// Check if array is not empty.
|
433 |
+
if ( '' !== $arr_settings['ssba_selected_share_buttons'] ) {
|
434 |
+
|
435 |
+
// Add post ID to settings array.
|
436 |
+
$arr_settings['post_id'] = $int_post_id;
|
437 |
+
|
438 |
+
// If show counters option is selected.
|
439 |
+
if ( 'Y' === $arr_settings['ssba_show_share_count'] ) {
|
440 |
+
// Set show flag to true.
|
441 |
+
$boo_show_share_count = true;
|
442 |
+
|
443 |
+
// If show counters once option is selected.
|
444 |
+
if ( 'Y' === $arr_settings['ssba_share_count_once'] ) {
|
445 |
+
// If not a page or post.
|
446 |
+
if ( ! is_page() && ! is_single() ) {
|
447 |
+
// Let show flag to false.
|
448 |
+
$boo_show_share_count = false;
|
449 |
+
}
|
450 |
+
}
|
451 |
+
} else {
|
452 |
+
// Set show flag to false.
|
453 |
+
$boo_show_share_count = false;
|
454 |
+
}
|
455 |
+
|
456 |
+
// For each included button.
|
457 |
+
foreach ( $arr_selected_ssba as $str_selected ) {
|
458 |
+
if ( '' !== $str_selected ) {
|
459 |
+
$str_get_button = 'ssba_' . $str_selected;
|
460 |
+
|
461 |
+
// Add a list item for each selected option.
|
462 |
+
$html_share_buttons .= $this->$str_get_button( $arr_settings, $url_current_page, $str_page_title, $boo_show_share_count );
|
463 |
+
}
|
464 |
+
}
|
465 |
+
}
|
466 |
+
|
467 |
+
// Return share buttons.
|
468 |
+
return $html_share_buttons;
|
469 |
+
}
|
470 |
+
|
471 |
+
/**
|
472 |
+
* Get facebook button.
|
473 |
+
*
|
474 |
+
* @param array $arr_settings The current ssba settings.
|
475 |
+
* @param string $url_current_page The current page url.
|
476 |
+
* @param string $str_page_title The page title.
|
477 |
+
* @param bool $boo_show_share_count Show share count or not.
|
478 |
+
*
|
479 |
+
* @return string
|
480 |
+
*/
|
481 |
+
public function ssba_facebook_save( $arr_settings, $url_current_page, $str_page_title, $boo_show_share_count ) {
|
482 |
+
// If the sharethis terms have been accepted.
|
483 |
+
if ( 'Y' === $arr_settings['accepted_sharethis_terms'] ) {
|
484 |
+
// Add facebook save button.
|
485 |
+
return '<span class="fb-save" style="display:inline-block" data-uri="' . esc_attr( $url_current_page ) . '"></span>';
|
486 |
+
}
|
487 |
+
}
|
488 |
+
|
489 |
+
/**
|
490 |
+
* Get facebook share count.
|
491 |
+
*
|
492 |
+
* @param string $url_current_page Current url.
|
493 |
+
* @param array $arr_settings Current ssba settings.
|
494 |
+
*
|
495 |
+
* @return string
|
496 |
+
*/
|
497 |
+
public function get_facebook_share_count( $url_current_page, $arr_settings ) {
|
498 |
+
$cache_key = sprintf(
|
499 |
+
'facebook_sharecount_%s',
|
500 |
+
wp_hash( $url_current_page )
|
501 |
+
);
|
502 |
+
|
503 |
+
// Get the longer cached value from the Transient API.
|
504 |
+
$long_cached_count = get_transient( "ssba_{$cache_key}" );
|
505 |
+
if ( false === $long_cached_count ) {
|
506 |
+
$long_cached_count = 0;
|
507 |
+
}
|
508 |
+
|
509 |
+
// If sharedcount.com is enabled.
|
510 |
+
if ( $arr_settings['sharedcount_enabled'] ) {
|
511 |
+
// Request from sharedcount.com.
|
512 |
+
$sharedcount = wp_safe_remote_get( 'https://' . $arr_settings['sharedcount_plan'] . '.sharedcount.com/url?url=' . $url_current_page . '&apikey=' . $arr_settings['sharedcount_api_key'], array(
|
513 |
+
'timeout' => 6,
|
514 |
+
) );
|
515 |
+
|
516 |
+
// If no error.
|
517 |
+
if ( is_wp_error( $sharedcount ) ) {
|
518 |
+
return $this->ssba_format_number( $long_cached_count );
|
519 |
+
}
|
520 |
+
|
521 |
+
// Decode and return count.
|
522 |
+
$shared_resp = json_decode( $sharedcount['body'], true );
|
523 |
+
$sharedcount = $long_cached_count;
|
524 |
+
|
525 |
+
if ( isset( $shared_resp['Facebook']['share_count'] ) ) {
|
526 |
+
$sharedcount = (int) $shared_resp['Facebook']['share_count'];
|
527 |
+
wp_cache_set( $cache_key, $sharedcount, 'ssba', MINUTE_IN_SECONDS * 2 );
|
528 |
+
set_transient( "ssba_{$cache_key}", $sharedcount, DAY_IN_SECONDS );
|
529 |
+
}
|
530 |
+
|
531 |
+
return $this->ssba_format_number( $sharedcount );
|
532 |
+
} else {
|
533 |
+
// Get results from facebook.
|
534 |
+
$html_facebook_share_details = wp_safe_remote_get( 'http://graph.facebook.com/' . $url_current_page, array(
|
535 |
+
'timeout' => 6,
|
536 |
+
) );
|
537 |
+
|
538 |
+
// If no error.
|
539 |
+
if ( is_wp_error( $html_facebook_share_details ) ) {
|
540 |
+
return $this->ssba_format_number( $long_cached_count );
|
541 |
+
}
|
542 |
+
|
543 |
+
// Decode and return count.
|
544 |
+
$arr_facebook_share_details = json_decode( $html_facebook_share_details['body'], true );
|
545 |
+
$int_facebook_share_count = $long_cached_count;
|
546 |
+
|
547 |
+
if ( isset( $arr_facebook_share_details['share']['share_count'] ) ) {
|
548 |
+
$int_facebook_share_count = (int) $arr_facebook_share_details['share']['share_count'];
|
549 |
+
|
550 |
+
wp_cache_set( $cache_key, $int_facebook_share_count, 'ssba', MINUTE_IN_SECONDS * 2 );
|
551 |
+
set_transient( "ssba_{$cache_key}", $int_facebook_share_count, DAY_IN_SECONDS );
|
552 |
+
}
|
553 |
+
|
554 |
+
return $this->ssba_format_number( $int_facebook_share_count );
|
555 |
+
} // End if().
|
556 |
+
}
|
557 |
+
|
558 |
+
/**
|
559 |
+
* Get twitter button.
|
560 |
+
*
|
561 |
+
* @param array $arr_settings The current ssba settings.
|
562 |
+
* @param string $url_current_page The current page url.
|
563 |
+
* @param string $str_page_title The page title.
|
564 |
+
* @param bool $boo_show_share_count Show share count or not.
|
565 |
+
*
|
566 |
+
* @return string
|
567 |
+
*/
|
568 |
+
public function ssba_twitter( $arr_settings, $url_current_page, $str_page_title, $boo_show_share_count ) {
|
569 |
+
$nofollow = 'Y' === $arr_settings['ssba_rel_nofollow'] ? ' rel="nofollow"' : '';
|
570 |
+
$target = 'Y' === $arr_settings['ssba_share_new_window'] ? ' target="_blank" ' : '';
|
571 |
+
|
572 |
+
// Format the URL into friendly code.
|
573 |
+
$twitter_share_text = rawurlencode( html_entity_decode( $str_page_title . ' ' . $arr_settings['ssba_twitter_text'], ENT_COMPAT, 'UTF-8' ) );
|
574 |
+
|
575 |
+
// Twitter share link.
|
576 |
+
$html_share_buttons = '<a data-site="" class="ssba_twitter_share" href="http://twitter.com/share?url=' . esc_attr( $url_current_page ) . '&text=' . esc_attr( $twitter_share_text ) . '" ' . esc_attr( $target . $nofollow ) . '>';
|
577 |
+
|
578 |
+
// If image set is not custom.
|
579 |
+
if ( 'custom' !== $arr_settings['ssba_image_set'] ) {
|
580 |
+
// Show ssba image.
|
581 |
+
$html_share_buttons .= '<img src="' . plugins_url() . '/simple-share-buttons-adder/buttons/' . esc_attr( $arr_settings['ssba_image_set'] ) . '/twitter.png" title="Twitter" class="ssba ssba-img" alt="Tweet about this on Twitter" />';
|
582 |
+
} else { // If using custom images.
|
583 |
+
// Show custom image.
|
584 |
+
$html_share_buttons .= '<img src="' . esc_url( $arr_settings['ssba_custom_twitter'] ) . '" title="Twitter" class="ssba ssba-img" alt="Tweet about this on Twitter" />';
|
585 |
+
}
|
586 |
+
|
587 |
+
// Close href.
|
588 |
+
$html_share_buttons .= '</a>';
|
589 |
+
|
590 |
+
// If show share count is set to Y.
|
591 |
+
if ( 'Y' === $arr_settings['ssba_show_share_count'] && $boo_show_share_count ) {
|
592 |
+
// Newsharedcount needs to be enabled.
|
593 |
+
if ( 'Y' === $arr_settings['twitter_newsharecounts'] ) {
|
594 |
+
$html_share_buttons .= '<span class="ssba_sharecount">' . esc_html( $this->ssba_twitter_count( $url_current_page ) ) . '</span>';
|
595 |
+
}
|
596 |
+
}
|
597 |
+
|
598 |
+
// Return share buttons.
|
599 |
+
return $html_share_buttons;
|
600 |
+
}
|
601 |
+
|
602 |
+
/**
|
603 |
+
* Get twitter share count.
|
604 |
+
*
|
605 |
+
* @param string $url_current_page The current page url.
|
606 |
+
*
|
607 |
+
* @return int|string
|
608 |
+
*/
|
609 |
+
public function ssba_twitter_count( $url_current_page ) {
|
610 |
+
// Get results from newsharecounts and return the number of shares.
|
611 |
+
$result = wp_safe_remote_get( 'http://public.newsharecounts.com/count.json?url=' . $url_current_page, array(
|
612 |
+
'timeout' => 6,
|
613 |
+
) );
|
614 |
+
|
615 |
+
// Check there was an error.
|
616 |
+
if ( is_wp_error( $result ) ) {
|
617 |
+
return 0;
|
618 |
+
}
|
619 |
+
|
620 |
+
// Decode data.
|
621 |
+
$result = json_decode( $result['body'], true );
|
622 |
+
$count = isset( $result['count'] ) ? $result['count'] : 0;
|
623 |
+
|
624 |
+
// Return.
|
625 |
+
return $this->ssba_format_number( $count );
|
626 |
+
}
|
627 |
+
|
628 |
+
/**
|
629 |
+
* Get google+ button.
|
630 |
+
*
|
631 |
+
* @param array $arr_settings The current ssba settings.
|
632 |
+
* @param string $url_current_page The current page url.
|
633 |
+
* @param string $str_page_title The page title.
|
634 |
+
* @param bool $boo_show_share_count Show share count or not.
|
635 |
+
*
|
636 |
+
* @return string
|
637 |
+
*/
|
638 |
+
public function ssba_google( $arr_settings, $url_current_page, $str_page_title, $boo_show_share_count ) {
|
639 |
+
$nofollow = 'Y' === $arr_settings['ssba_rel_nofollow'] ? ' rel="nofollow"' : '';
|
640 |
+
$target = 'Y' === $arr_settings['ssba_share_new_window'] ? ' target="_blank" ' : '';
|
641 |
+
|
642 |
+
// Google share link.
|
643 |
+
$html_share_buttons = '<a data-site="" class="ssba_google_share" href="https://plus.google.com/share?url=' . esc_attr( $url_current_page ) . '" ' . esc_attr( $target . $nofollow ) . '>';
|
644 |
+
|
645 |
+
// If image set is not custom.
|
646 |
+
if ( 'custom' !== $arr_settings['ssba_image_set'] ) {
|
647 |
+
// Show ssba image.
|
648 |
+
$html_share_buttons .= '<img src="' . esc_attr( plugins_url() ) . '/simple-share-buttons-adder/buttons/' . esc_attr( $arr_settings['ssba_image_set'] ) . '/google.png" title="Google+" class="ssba ssba-img" alt="Share on Google+" />';
|
649 |
+
} else { // If using custom images.
|
650 |
+
// Show custom image.
|
651 |
+
$html_share_buttons .= '<img src="' . esc_url( $arr_settings['ssba_custom_google'] ) . '" title="Share on Google+" class="ssba ssba-img" alt="Google+" />';
|
652 |
+
}
|
653 |
+
|
654 |
+
// Close href.
|
655 |
+
$html_share_buttons .= '</a>';
|
656 |
+
|
657 |
+
// If show share count is set to Y.
|
658 |
+
if ( 'Y' === $arr_settings['ssba_show_share_count'] && $boo_show_share_count ) {
|
659 |
+
$html_share_buttons .= '<span class="ssba_sharecount">' . esc_html( $this->get_google_share_count( $url_current_page ) ) . '</span>';
|
660 |
+
}
|
661 |
+
|
662 |
+
// Return share buttons.
|
663 |
+
return $html_share_buttons;
|
664 |
+
}
|
665 |
+
|
666 |
+
/**
|
667 |
+
* Get google share count.
|
668 |
+
*
|
669 |
+
* @param string $url_current_page The current page url.
|
670 |
+
*
|
671 |
+
* @return string
|
672 |
+
*/
|
673 |
+
public function get_google_share_count( $url_current_page ) {
|
674 |
+
$args = array(
|
675 |
+
'method' => 'POST',
|
676 |
+
'headers' => array(
|
677 |
+
// Setup content type to JSON.
|
678 |
+
'Content-Type' => 'application/json',
|
679 |
+
),
|
680 |
+
// Setup POST options to Google API.
|
681 |
+
'body' => wp_json_encode( array(
|
682 |
+
'method' => 'pos.plusones.get',
|
683 |
+
'id' => 'p',
|
684 |
+
'method' => 'pos.plusones.get',
|
685 |
+
'jsonrpc' => '2.0',
|
686 |
+
'key' => 'p',
|
687 |
+
'apiVersion' => 'v1',
|
688 |
+
'params' => array(
|
689 |
+
'nolog' => true,
|
690 |
+
'id' => $url_current_page,
|
691 |
+
'source' => 'widget',
|
692 |
+
'userId' => '@viewer',
|
693 |
+
'groupId' => '@self',
|
694 |
+
),
|
695 |
+
) ),
|
696 |
+
// Disable checking SSL sertificates.
|
697 |
+
'sslverify' => false,
|
698 |
+
);
|
699 |
+
|
700 |
+
// Retrieves JSON with HTTP POST method for current URL.
|
701 |
+
$json_string = wp_remote_post( 'https://clients6.google.com/rpc', $args );
|
702 |
+
|
703 |
+
if ( is_wp_error( $json_string ) ) {
|
704 |
+
// Return zero if response is error.
|
705 |
+
return '0';
|
706 |
+
} else {
|
707 |
+
$json = json_decode( $json_string['body'], true );
|
708 |
+
|
709 |
+
// Return count of Google +1 for requsted URL.
|
710 |
+
return $this->ssba_format_number( intval( $json['result']['metadata']['globalCounts']['count'] ) );
|
711 |
+
}
|
712 |
+
}
|
713 |
+
|
714 |
+
/**
|
715 |
+
* Get diggit button.
|
716 |
+
*
|
717 |
+
* @param array $arr_settings The current ssba settings.
|
718 |
+
* @param string $url_current_page The current page url.
|
719 |
+
* @param string $str_page_title The page title.
|
720 |
+
* @param bool $boo_show_share_count Show share count or not.
|
721 |
+
*
|
722 |
+
* @return string
|
723 |
+
*/
|
724 |
+
public function ssba_diggit( $arr_settings, $url_current_page, $str_page_title, $boo_show_share_count ) {
|
725 |
+
$nofollow = 'Y' === $arr_settings['ssba_rel_nofollow'] ? ' rel="nofollow"' : '';
|
726 |
+
$target = 'Y' === $arr_settings['ssba_share_new_window'] ? ' target="_blank" ' : '';
|
727 |
+
|
728 |
+
// Diggit share link.
|
729 |
+
$html_share_buttons = '<a data-site="digg" class="ssba_diggit_share ssba_share_link" href="http://www.digg.com/submit?url=' . esc_attr( $url_current_page ) . '" ' . esc_attr( $target . $nofollow ) . '>';
|
730 |
+
|
731 |
+
// If image set is not custom.
|
732 |
+
if ( 'custom' !== $arr_settings['ssba_image_set'] ) {
|
733 |
+
// Show ssba image.
|
734 |
+
$html_share_buttons .= '<img src="' . plugins_url() . '/simple-share-buttons-adder/buttons/' . esc_attr( $arr_settings['ssba_image_set'] ) . '/diggit.png" title="Digg" class="ssba ssba-img" alt="Digg this" />';
|
735 |
+
} else { // If using custom images.
|
736 |
+
// Show custom image.
|
737 |
+
$html_share_buttons .= '<img src="' . esc_url( $arr_settings['ssba_custom_diggit'] ) . '" title="Digg" class="ssba ssba-img" alt="Digg this" />';
|
738 |
+
}
|
739 |
+
|
740 |
+
// Close href.
|
741 |
+
$html_share_buttons .= '</a>';
|
742 |
+
|
743 |
+
// Return share buttons.
|
744 |
+
return $html_share_buttons;
|
745 |
+
}
|
746 |
+
|
747 |
+
/**
|
748 |
+
* Get reddit.
|
749 |
+
*
|
750 |
+
* @param array $arr_settings The current ssba settings.
|
751 |
+
* @param string $url_current_page The current page url.
|
752 |
+
* @param string $str_page_title The page title.
|
753 |
+
* @param bool $boo_show_share_count Show share count or not.
|
754 |
+
*
|
755 |
+
* @return string
|
756 |
+
*/
|
757 |
+
public function ssba_reddit( $arr_settings, $url_current_page, $str_page_title, $boo_show_share_count ) {
|
758 |
+
$nofollow = 'Y' === $arr_settings['ssba_rel_nofollow'] ? ' rel="nofollow"' : '';
|
759 |
+
$target = 'Y' === $arr_settings['ssba_share_new_window'] ? ' target="_blank" ' : '';
|
760 |
+
|
761 |
+
// Reddit share link.
|
762 |
+
$html_share_buttons = '<a data-site="reddit" class="ssba_reddit_share" href="http://reddit.com/submit?url=' . esc_attr( $url_current_page ) . '&title=' . esc_attr( $str_page_title ) . '" ' . esc_attr( $target . $nofollow ) . '>';
|
763 |
+
|
764 |
+
// If image set is not custom.
|
765 |
+
if ( 'custom' !== $arr_settings['ssba_image_set'] ) {
|
766 |
+
|
767 |
+
// Show ssba image.
|
768 |
+
$html_share_buttons .= '<img src="' . plugins_url() . '/simple-share-buttons-adder/buttons/' . esc_attr( $arr_settings['ssba_image_set'] ) . '/reddit.png" title="Reddit" class="ssba ssba-img" alt="Share on Reddit" />';
|
769 |
+
} else { // If using custom images.
|
770 |
+
// Show custom image.
|
771 |
+
$html_share_buttons .= '<img src="' . esc_attr( $arr_settings['ssba_custom_reddit'] ) . '" title="Reddit" class="ssba ssba-img" alt="Share on Reddit" />';
|
772 |
+
}
|
773 |
+
|
774 |
+
// Close href.
|
775 |
+
$html_share_buttons .= '</a>';
|
776 |
+
|
777 |
+
// If show share count is set to Y.
|
778 |
+
if ( 'Y' === $arr_settings['ssba_show_share_count'] && $boo_show_share_count ) {
|
779 |
+
// Get and display share count.
|
780 |
+
$html_share_buttons .= '<span class="ssba_sharecount">' . esc_html( $this->get_reddit_share_count( $url_current_page ) ) . '</span>';
|
781 |
+
}
|
782 |
+
|
783 |
+
// Return share buttons.
|
784 |
+
return $html_share_buttons;
|
785 |
+
}
|
786 |
+
|
787 |
+
/**
|
788 |
+
* Get reddit share count.
|
789 |
+
*
|
790 |
+
* @param string $url_current_page The current url.
|
791 |
+
*
|
792 |
+
* @return int|string
|
793 |
+
*/
|
794 |
+
public function get_reddit_share_count( $url_current_page ) {
|
795 |
+
// Get results from reddit and return the number of shares.
|
796 |
+
$html_reddit_share_details = wp_safe_remote_get( 'http://www.reddit.com/api/info.json?url=' . $url_current_page, array(
|
797 |
+
'timeout' => 6,
|
798 |
+
) );
|
799 |
+
|
800 |
+
// Check there was an error.
|
801 |
+
if ( is_wp_error( $html_reddit_share_details ) ) {
|
802 |
+
return 0;
|
803 |
+
}
|
804 |
+
|
805 |
+
// Decode and get share count.
|
806 |
+
$arr_reddit_result = json_decode( $html_reddit_share_details['body'], true );
|
807 |
+
$int_reddit_share_count = isset( $arr_reddit_result['data']['children']['0']['data']['score'] ) ? $arr_reddit_result['data']['children']['0']['data']['score'] : 0;
|
808 |
+
|
809 |
+
return $int_reddit_share_count ? $this->ssba_format_number( $int_reddit_share_count ) : '0';
|
810 |
+
}
|
811 |
+
|
812 |
+
/**
|
813 |
+
* Get linkedin button.
|
814 |
+
*
|
815 |
+
* @param array $arr_settings The current ssba settings.
|
816 |
+
* @param string $url_current_page The current page url.
|
817 |
+
* @param string $str_page_title The page title.
|
818 |
+
* @param bool $boo_show_share_count Show share count or not.
|
819 |
+
*
|
820 |
+
* @return string
|
821 |
+
*/
|
822 |
+
public function ssba_linkedin( $arr_settings, $url_current_page, $str_page_title, $boo_show_share_count ) {
|
823 |
+
$nofollow = 'Y' === $arr_settings['ssba_rel_nofollow'] ? ' rel="nofollow"' : '';
|
824 |
+
$target = 'Y' === $arr_settings['ssba_share_new_window'] ? ' target="_blank" ' : '';
|
825 |
+
|
826 |
+
// Linkedin share link.
|
827 |
+
$html_share_buttons = '<a data-site="linkedin" class="ssba_linkedin_share ssba_share_link" href="http://www.linkedin.com/shareArticle?mini=true&url=' . esc_attr( $url_current_page ) . '" ' . esc_attr( $target . $nofollow ) . '>';
|
828 |
+
|
829 |
+
// If image set is not custom.
|
830 |
+
if ( 'custom' !== $arr_settings['ssba_image_set'] ) {
|
831 |
+
// Show ssba image.
|
832 |
+
$html_share_buttons .= '<img src="' . plugins_url() . '/simple-share-buttons-adder/buttons/' . esc_attr( $arr_settings['ssba_image_set'] ) . '/linkedin.png" title="LinkedIn" class="ssba ssba-img" alt="Share on LinkedIn" />';
|
833 |
+
} else { // If using custom images.
|
834 |
+
// Show custom image.
|
835 |
+
$html_share_buttons .= '<img src="' . esc_url( $arr_settings['ssba_custom_linkedin'] ) . '" alt="Share on LinkedIn" title="LinkedIn" class="ssba ssba-img" />';
|
836 |
+
}
|
837 |
+
|
838 |
+
// Close href.
|
839 |
+
$html_share_buttons .= '</a>';
|
840 |
+
|
841 |
+
// If show share count is set to Y.
|
842 |
+
if ( 'Y' === $arr_settings['ssba_show_share_count'] && $boo_show_share_count ) {
|
843 |
+
// Get and display share count.
|
844 |
+
$html_share_buttons .= '<span class="ssba_sharecount">' . esc_html( $this->get_linkedin_share_count( $url_current_page ) ) . '</span>';
|
845 |
+
}
|
846 |
+
|
847 |
+
// Return share buttons.
|
848 |
+
return $html_share_buttons;
|
849 |
+
}
|
850 |
+
|
851 |
+
/**
|
852 |
+
* Get linkedin share count.
|
853 |
+
*
|
854 |
+
* @param string $url_current_page The current page url.
|
855 |
+
*
|
856 |
+
* @return int|string
|
857 |
+
*/
|
858 |
+
public function get_linkedin_share_count( $url_current_page ) {
|
859 |
+
// Get results from linkedin and return the number of shares.
|
860 |
+
$html_linkedin_share_details = wp_safe_remote_get( 'http://www.linkedin.com/countserv/count/share?url=' . $url_current_page, array(
|
861 |
+
'timeout' => 6,
|
862 |
+
) );
|
863 |
+
|
864 |
+
// If there was an error.
|
865 |
+
if ( is_wp_error( $html_linkedin_share_details ) ) {
|
866 |
+
return 0;
|
867 |
+
}
|
868 |
+
|
869 |
+
// Extract/decode share count.
|
870 |
+
$html_linkedin_share_details = str_replace( 'IN.Tags.Share.handleCount(', '', $html_linkedin_share_details );
|
871 |
+
$html_linkedin_share_details = str_replace( ');', '', $html_linkedin_share_details );
|
872 |
+
$arr_linkedin_share_details = json_decode( $html_linkedin_share_details['body'], true );
|
873 |
+
$int_linkedin_share_count = $arr_linkedin_share_details['count'];
|
874 |
+
|
875 |
+
return $int_linkedin_share_count ? ssba_format_number( $int_linkedin_share_count ) : '0';
|
876 |
+
}
|
877 |
+
|
878 |
+
/**
|
879 |
+
* Get pinterest button.
|
880 |
+
*
|
881 |
+
* @param array $arr_settings The current ssba settings.
|
882 |
+
* @param string $url_current_page The current page url.
|
883 |
+
* @param string $str_page_title The page title.
|
884 |
+
* @param bool $boo_show_share_count Show share count or not.
|
885 |
+
*
|
886 |
+
* @return string
|
887 |
+
*/
|
888 |
+
public function ssba_pinterest( $arr_settings, $url_current_page, $str_page_title, $boo_show_share_count ) {
|
889 |
+
$nofollow = 'Y' === $arr_settings['ssba_rel_nofollow'] ? ' rel="nofollow"' : '';
|
890 |
+
$target = 'Y' === $arr_settings['ssba_share_new_window'] ? ' target="_blank" ' : '';
|
891 |
+
|
892 |
+
// If using featured images for Pinteres.
|
893 |
+
if ( 'Y' === $arr_settings['ssba_pinterest_featured'] ) {
|
894 |
+
// If this post has a featured image.
|
895 |
+
if ( has_post_thumbnail( $arr_settings['post_id'] ) ) {
|
896 |
+
// Get the featured image.
|
897 |
+
$url_post_thumb = wp_get_attachment_image_src( get_post_thumbnail_id( $arr_settings['post_id'] ), 'full' );
|
898 |
+
$url_post_thumb = $url_post_thumb[0];
|
899 |
+
} else { // No featured image set.
|
900 |
+
// Use the pinterest default.
|
901 |
+
$url_post_thumb = $arr_settings['ssba_default_pinterest'];
|
902 |
+
}
|
903 |
+
|
904 |
+
// Pinterest share link.
|
905 |
+
$html_share_buttons = '<a data-site="pinterest-featured" href="http://pinterest.com/pin/create/bookmarklet/?is_video=false&url=' . esc_attr( $url_current_page ) . '&media=' . esc_attr( $url_post_thumb ) . '&description=' . esc_attr( $str_page_title ) . '" class="ssba_pinterest_share ssba_share_link" ' . esc_attr( $target . $nofollow ) . '>';
|
906 |
+
} else { // Not using featured images for pinterest.
|
907 |
+
// Use the choice of pinnable images approach.
|
908 |
+
$html_share_buttons = "<a data-site='pinterest' class='ssba_pinterest_share' href='javascript:void((function()%7Bvar%20e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','//assets.pinterest.com/js/pinmarklet.js?r='+Math.random()*99999999);document.body.appendChild(e)%7D)());'>";
|
909 |
+
}
|
910 |
+
|
911 |
+
// If image set is not custom.
|
912 |
+
if ( 'custom' !== $arr_settings['ssba_image_set'] ) {
|
913 |
+
// Show ssba image.
|
914 |
+
$html_share_buttons .= '<img src="' . plugins_url() . '/simple-share-buttons-adder/buttons/' . esc_attr( $arr_settings['ssba_image_set'] ) . '/pinterest.png" title="Pinterest" class="ssba ssba-img" alt="Pin on Pinterest" />';
|
915 |
+
} else { // If using custom images.
|
916 |
+
// Show custom image.
|
917 |
+
$html_share_buttons .= '<img title="Pinterest" class="ssba ssba-img" src="' . esc_url( $arr_settings['ssba_custom_pinterest'] ) . '" alt="Pin on Pinterest" />';
|
918 |
+
}
|
919 |
+
|
920 |
+
// Close href.
|
921 |
+
$html_share_buttons .= '</a>';
|
922 |
+
|
923 |
+
// If show share count is set to Y.
|
924 |
+
if ( 'Y' === $arr_settings['ssba_show_share_count'] && $boo_show_share_count ) {
|
925 |
+
$html_share_buttons .= '<span class="ssba_sharecount">' . esc_html( $this->get_pinterest_share_count( $url_current_page ) ) . '</span>';
|
926 |
+
}
|
927 |
+
|
928 |
+
// Return share buttons.
|
929 |
+
return $html_share_buttons;
|
930 |
+
}
|
931 |
+
|
932 |
+
/**
|
933 |
+
* Get pinterest share count.
|
934 |
+
*
|
935 |
+
* @param string $url_current_page The current page url.
|
936 |
+
*
|
937 |
+
* @return int|string
|
938 |
+
*/
|
939 |
+
public function get_pinterest_share_count( $url_current_page ) {
|
940 |
+
// Get results from pinterest.
|
941 |
+
$html_pinterest_share_details = wp_safe_remote_get( 'http://api.pinterest.com/v1/urls/count.json?url=' . $url_current_page, array(
|
942 |
+
'timeout' => 6,
|
943 |
+
) );
|
944 |
+
|
945 |
+
// Check there was an error.
|
946 |
+
if ( is_wp_error( $html_pinterest_share_details ) ) {
|
947 |
+
return 0;
|
948 |
+
}
|
949 |
+
|
950 |
+
// Decode data.
|
951 |
+
$html_pinterest_share_details = str_replace( 'receiveCount(', '', $html_pinterest_share_details );
|
952 |
+
$html_pinterest_share_details = str_replace( ')', '', $html_pinterest_share_details );
|
953 |
+
$arr_pinterest_share_details = json_decode( $html_pinterest_share_details['body'], true );
|
954 |
+
$int_pinterest_share_count = $arr_pinterest_share_details['count'];
|
955 |
+
|
956 |
+
return $int_pinterest_share_count ? $this->ssba_format_number( $int_pinterest_share_count ) : '0';
|
957 |
+
}
|
958 |
+
|
959 |
+
/**
|
960 |
+
* Get stumbleupon button.
|
961 |
+
*
|
962 |
+
* @param array $arr_settings The current ssba settings.
|
963 |
+
* @param string $url_current_page The current page url.
|
964 |
+
* @param string $str_page_title The page title.
|
965 |
+
* @param bool $boo_show_share_count Show share count or not.
|
966 |
+
*
|
967 |
+
* @return string
|
968 |
+
*/
|
969 |
+
public function ssba_stumbleupon( $arr_settings, $url_current_page, $str_page_title, $boo_show_share_count ) {
|
970 |
+
$nofollow = 'Y' === $arr_settings['ssba_rel_nofollow'] ? ' rel="nofollow"' : '';
|
971 |
+
$target = 'Y' === $arr_settings['ssba_share_new_window'] ? ' target="_blank" ' : '';
|
972 |
+
$url = 'http://www.stumbleupon.com/submit?url=' . esc_attr( $url_current_page ) . '&title=' . esc_attr( $str_page_title );
|
973 |
+
|
974 |
+
// Stumbleupon share link.
|
975 |
+
$html_share_buttons = '<a data-site="stumbleupon" class="ssba_stumbleupon_share ssba_share_link" href="' . esc_url( $url ) . '" ' . esc_attr( $target . $nofollow ) . '>';
|
976 |
+
|
977 |
+
// If image set is not custom.
|
978 |
+
if ( 'custom' !== $arr_settings['ssba_image_set'] ) {
|
979 |
+
// Show ssba image.
|
980 |
+
$html_share_buttons .= '<img src="' . plugins_url() . '/simple-share-buttons-adder/buttons/' . esc_attr( $arr_settings['ssba_image_set'] ) . '/stumbleupon.png" title="StumbleUpon" class="ssba ssba-img" alt="Share on StumbleUpon" />';
|
981 |
+
} else { // If using custom images.
|
982 |
+
// Show custom image.
|
983 |
+
$html_share_buttons .= '<img src="' . esc_url( $arr_settings['ssba_custom_stumbleupon'] ) . '" alt="Share on StumbleUpon" title="StumbleUpon" class="ssba ssba-img" />';
|
984 |
+
}
|
985 |
+
|
986 |
+
// Close href.
|
987 |
+
$html_share_buttons .= '</a>';
|
988 |
+
|
989 |
+
// If show share count is set to Y.
|
990 |
+
if ( 'Y' === $arr_settings['ssba_show_share_count'] && $boo_show_share_count ) {
|
991 |
+
$html_share_buttons .= '<span class="ssba_sharecount">' . esc_html( $this->get_stumble_upon_share_count( $url_current_page ) ) . '</span>';
|
992 |
+
}
|
993 |
+
|
994 |
+
// Return share buttons.
|
995 |
+
return $html_share_buttons;
|
996 |
+
}
|
997 |
+
|
998 |
+
/**
|
999 |
+
* Get stumbleupon share count.
|
1000 |
+
*
|
1001 |
+
* @param string $url_current_page The current url.
|
1002 |
+
*
|
1003 |
+
* @return int|string
|
1004 |
+
*/
|
1005 |
+
public function get_stumble_upon_share_count( $url_current_page ) {
|
1006 |
+
// Get results from stumbleupon and return the number of shares.
|
1007 |
+
$html_stumble_upon_share_details = wp_safe_remote_get( 'http://www.stumbleupon.com/services/1.01/badge.getinfo?url=' . $url_current_page, array(
|
1008 |
+
'timeout' => 6,
|
1009 |
+
) );
|
1010 |
+
|
1011 |
+
// Check there was an error.
|
1012 |
+
if ( is_wp_error( $html_stumble_upon_share_details ) ) {
|
1013 |
+
return 0;
|
1014 |
+
}
|
1015 |
+
|
1016 |
+
// Decode data.
|
1017 |
+
$arr_stumble_upon_result = json_decode( $html_stumble_upon_share_details['body'], true );
|
1018 |
+
$int_stumble_upon_share_count = isset( $arr_stumble_upon_result['result']['views'] ) ? $arr_stumble_upon_result['result']['views'] : 0;
|
1019 |
+
|
1020 |
+
return $int_stumble_upon_share_count ? $this->ssba_format_number( $int_stumble_upon_share_count ) : '0';
|
1021 |
+
}
|
1022 |
+
|
1023 |
+
/**
|
1024 |
+
* Get email button.
|
1025 |
+
*
|
1026 |
+
* @param array $arr_settings The current ssba settings.
|
1027 |
+
* @param string $url_current_page The current page url.
|
1028 |
+
* @param string $str_page_title The page title.
|
1029 |
+
* @param bool $boo_show_share_count Show share count or not.
|
1030 |
+
*
|
1031 |
+
* @return string
|
1032 |
+
*/
|
1033 |
+
public function ssba_email( $arr_settings, $url_current_page, $str_page_title, $boo_show_share_count ) {
|
1034 |
+
// Replace ampersands as needed for email link.
|
1035 |
+
$email_title = str_replace( '&', '%26', $str_page_title );
|
1036 |
+
$url = 'mailto:?subject=' . $email_title . '&body=' . $arr_settings['ssba_email_message'] . ' ' . $url_current_page;
|
1037 |
+
|
1038 |
+
// Email share link.
|
1039 |
+
$html_share_buttons = '<a data-site="email" class="ssba_email_share" href="' . esc_url( $url ) . '">';
|
1040 |
+
|
1041 |
+
// If image set is not custom.
|
1042 |
+
if ( 'custom' !== $arr_settings['ssba_image_set'] ) {
|
1043 |
+
// Show ssba image.
|
1044 |
+
$html_share_buttons .= '<img src="' . plugins_url() . '/simple-share-buttons-adder/buttons/' . esc_attr( $arr_settings['ssba_image_set'] ) . '/email.png" title="Email" class="ssba ssba-img" alt="Email this to someone" />';
|
1045 |
+
} else { // If using custom images.
|
1046 |
+
// Show custom image.
|
1047 |
+
$html_share_buttons .= '<img src="' . esc_url( $arr_settings['ssba_custom_email'] ) . '" title="Email" class="ssba ssba-img" alt="Email to someone" />';
|
1048 |
+
}
|
1049 |
+
|
1050 |
+
// Close href.
|
1051 |
+
$html_share_buttons .= '</a>';
|
1052 |
+
|
1053 |
+
// Return share buttons.
|
1054 |
+
return $html_share_buttons;
|
1055 |
+
}
|
1056 |
+
|
1057 |
+
/**
|
1058 |
+
* Get flattr button.
|
1059 |
+
*
|
1060 |
+
* @param array $arr_settings The current ssba settings.
|
1061 |
+
* @param string $url_current_page The current page url.
|
1062 |
+
* @param string $str_page_title The page title.
|
1063 |
+
* @param bool $boo_show_share_count Show share count or not.
|
1064 |
+
*
|
1065 |
+
* @return string
|
1066 |
+
*/
|
1067 |
+
public function ssba_flattr( $arr_settings, $url_current_page, $str_page_title, $boo_show_share_count ) {
|
1068 |
+
$nofollow = 'Y' === $arr_settings['ssba_rel_nofollow'] ? ' rel="nofollow"' : '';
|
1069 |
+
$target = 'Y' === $arr_settings['ssba_share_new_window'] ? ' target="_blank" ' : '';
|
1070 |
+
|
1071 |
+
// Check for dedicated flattr URL.
|
1072 |
+
if ( '' !== $arr_settings['ssba_flattr_url'] ) {
|
1073 |
+
// Update url that will be set to specified URL.
|
1074 |
+
$url_current_page = $arr_settings['ssba_flattr_url'];
|
1075 |
+
}
|
1076 |
+
|
1077 |
+
// Flattr share link.
|
1078 |
+
$html_share_buttons = '<a data-site="flattr" class="ssba_flattr_share" href="https://flattr.com/submit/auto?user_id=' . esc_attr( $arr_settings['ssba_flattr_user_id'] ) . '&title=' . esc_attr( $str_page_title ) . '&url=' . esc_attr( $url_current_page ) . '" ' . esc_attr( $target . $nofollow ) . '>';
|
1079 |
+
|
1080 |
+
// If image set is not custom.
|
1081 |
+
if ( 'custom' !== $arr_settings['ssba_image_set'] ) {
|
1082 |
+
// Show ssba image.
|
1083 |
+
$html_share_buttons .= '<img src="' . plugins_url() . '/simple-share-buttons-adder/buttons/' . esc_attr( $arr_settings['ssba_image_set'] ) . '/flattr.png" title="Flattr" class="ssba ssba-img" alt="Flattr the author" />';
|
1084 |
+
} else { // If using custom images.
|
1085 |
+
// Show custom image.
|
1086 |
+
$html_share_buttons .= '<img src="' . esc_url( $arr_settings['ssba_custom_flattr'] ) . '" title="Flattr" class="ssba ssba-img" alt="Flattr the author" />';
|
1087 |
+
}
|
1088 |
+
|
1089 |
+
// Close href.
|
1090 |
+
$html_share_buttons .= '</a>';
|
1091 |
+
|
1092 |
+
// Return share buttons.
|
1093 |
+
return $html_share_buttons;
|
1094 |
+
}
|
1095 |
+
|
1096 |
+
/**
|
1097 |
+
* Get buffer button.
|
1098 |
+
*
|
1099 |
+
* @param array $arr_settings The current ssba settings.
|
1100 |
+
* @param string $url_current_page The current page url.
|
1101 |
+
* @param string $str_page_title The page title.
|
1102 |
+
* @param bool $boo_show_share_count Show share count or not.
|
1103 |
+
*
|
1104 |
+
* @return string
|
1105 |
+
*/
|
1106 |
+
public function ssba_buffer( $arr_settings, $url_current_page, $str_page_title, $boo_show_share_count ) {
|
1107 |
+
$buffer = '' !== $arr_settings['ssba_buffer_text'] ? $arr_settings['ssba_buffer_text'] : '';
|
1108 |
+
$nofollow = 'Y' === $arr_settings['ssba_rel_nofollow'] ? ' rel="nofollow"' : '';
|
1109 |
+
$target = 'Y' === $arr_settings['ssba_share_new_window'] ? ' target="_blank" ' : '';
|
1110 |
+
|
1111 |
+
// Buffer share link.
|
1112 |
+
$html_share_buttons = '<a data-site="buffer" class="ssba_buffer_share" href="https://bufferapp.com/add?url=' . esc_attr( $url_current_page ) . '&text=' . esc_attr( $buffer ) . ' ' . esc_attr( $str_page_title ) . '" ' . esc_attr( $target . $nofollow ) . '>';
|
1113 |
+
|
1114 |
+
// If image set is not custom.
|
1115 |
+
if ( 'custom' !== $arr_settings['ssba_image_set'] ) {
|
1116 |
+
// Show ssba image.
|
1117 |
+
$html_share_buttons .= '<img src="' . plugins_url() . '/simple-share-buttons-adder/buttons/' . esc_attr( $arr_settings['ssba_image_set'] ) . '/buffer.png" title="Buffer" class="ssba ssba-img" alt="Buffer this page" />';
|
1118 |
+
} else { // If using custom images.
|
1119 |
+
// Show custom image.
|
1120 |
+
$html_share_buttons .= '<img src="' . esc_url( $arr_settings['ssba_custom_buffer'] ) . '" title="Buffer" class="ssba ssba-img" alt="Buffer this page" />';
|
1121 |
+
}
|
1122 |
+
|
1123 |
+
// Close href.
|
1124 |
+
$html_share_buttons .= '</a>';
|
1125 |
+
|
1126 |
+
// Return share buttons.
|
1127 |
+
return $html_share_buttons;
|
1128 |
+
}
|
1129 |
+
|
1130 |
+
/**
|
1131 |
+
* Get tumblr button.
|
1132 |
+
*
|
1133 |
+
* @param array $arr_settings The current ssba settings.
|
1134 |
+
* @param string $url_current_page The current page url.
|
1135 |
+
* @param string $str_page_title The page title.
|
1136 |
+
* @param bool $boo_show_share_count Show share count or not.
|
1137 |
+
*
|
1138 |
+
* @return string
|
1139 |
+
*/
|
1140 |
+
public function ssba_tumblr( $arr_settings, $url_current_page, $str_page_title, $boo_show_share_count ) {
|
1141 |
+
$nofollow = 'Y' === $arr_settings['ssba_rel_nofollow'] ? ' rel="nofollow"' : '';
|
1142 |
+
$target = 'Y' === $arr_settings['ssba_share_new_window'] ? ' target="_blank" ' : '';
|
1143 |
+
|
1144 |
+
// Tumblr share link.
|
1145 |
+
$html_share_buttons = '<a data-site="tumblr" class="ssba_tumblr_share" href="http://www.tumblr.com/share/link?url=' . esc_attr( $url_current_page ) . '" ' . esc_attr( $target . $nofollow ) . '>';
|
1146 |
+
|
1147 |
+
// If image set is not custom.
|
1148 |
+
if ( 'custom' !== $arr_settings['ssba_image_set'] ) {
|
1149 |
+
// Show ssba image.
|
1150 |
+
$html_share_buttons .= '<img src="' . plugins_url() . '/simple-share-buttons-adder/buttons/' . esc_attr( $arr_settings['ssba_image_set'] ) . '/tumblr.png" title="tumblr" class="ssba ssba-img" alt="Share on Tumblr" />';
|
1151 |
+
} else { // If using custom images.
|
1152 |
+
// Show custom image.
|
1153 |
+
$html_share_buttons .= '<img src="' . esc_url( $arr_settings['ssba_custom_tumblr'] ) . '" title="tumblr" class="ssba ssba-img" alt="share on Tumblr" />';
|
1154 |
+
}
|
1155 |
+
|
1156 |
+
// Close href.
|
1157 |
+
$html_share_buttons .= '</a>';
|
1158 |
+
|
1159 |
+
// If show share count is set to Y.
|
1160 |
+
if ( 'Y' === $arr_settings['ssba_show_share_count'] && $boo_show_share_count ) {
|
1161 |
+
$html_share_buttons .= '<span class="ssba_sharecount">' . esc_html( $this->get_tumblr_share_count( $url_current_page ) ) . '</span>';
|
1162 |
+
}
|
1163 |
+
|
1164 |
+
// Return share buttons.
|
1165 |
+
return $html_share_buttons;
|
1166 |
+
}
|
1167 |
+
|
1168 |
+
/**
|
1169 |
+
* Get tumblr share count.
|
1170 |
+
*
|
1171 |
+
* @param string $url_current_page The current url.
|
1172 |
+
*
|
1173 |
+
* @return int|string
|
1174 |
+
*/
|
1175 |
+
public function get_tumblr_share_count( $url_current_page ) {
|
1176 |
+
// Get results from tumblr and return the number of shares.
|
1177 |
+
$result = wp_safe_remote_get( 'http://api.tumblr.com/v2/share/stats?url=' . $url_current_page, array(
|
1178 |
+
'timeout' => 6,
|
1179 |
+
) );
|
1180 |
+
|
1181 |
+
// Check there was an error.
|
1182 |
+
if ( is_wp_error( $result ) ) {
|
1183 |
+
return 0;
|
1184 |
+
}
|
1185 |
+
|
1186 |
+
// Decode data.
|
1187 |
+
$array = json_decode( $result['body'], true );
|
1188 |
+
$count = isset( $array['response']['note_count'] ) ? $array['response']['note_count'] : 0;
|
1189 |
+
|
1190 |
+
return ( $count ) ? $count : '0';
|
1191 |
+
}
|
1192 |
+
|
1193 |
+
/**
|
1194 |
+
* Get print button.
|
1195 |
+
*
|
1196 |
+
* @param array $arr_settings The current ssba settings.
|
1197 |
+
* @param string $url_current_page The current page url.
|
1198 |
+
* @param string $str_page_title The page title.
|
1199 |
+
* @param bool $boo_show_share_count Show share count or not.
|
1200 |
+
*
|
1201 |
+
* @return string
|
1202 |
+
*/
|
1203 |
+
public function ssba_print( $arr_settings, $url_current_page, $str_page_title, $boo_show_share_count ) {
|
1204 |
+
// Linkedin share link.
|
1205 |
+
$html_share_buttons = '<a data-site="print" class="ssba_print ssba_share_link" href="#" onclick="window.print()">';
|
1206 |
+
|
1207 |
+
// If image set is not custom.
|
1208 |
+
if ( 'custom' !== $arr_settings['ssba_image_set'] ) {
|
1209 |
+
// Show ssba image.
|
1210 |
+
$html_share_buttons .= '<img src="' . plugins_url() . '/simple-share-buttons-adder/buttons/' . esc_attr( $arr_settings['ssba_image_set'] ) . '/print.png" title="Print" class="ssba ssba-img" alt="Print this page" />';
|
1211 |
+
} else { // If using custom images.
|
1212 |
+
// Show custom image.
|
1213 |
+
$html_share_buttons .= '<img src="' . esc_url( $arr_settings['ssba_custom_print'] ) . '" title="Print" class="ssba ssba-img" alt="Print this page" />';
|
1214 |
+
}
|
1215 |
+
|
1216 |
+
// Close href.
|
1217 |
+
$html_share_buttons .= '</a>';
|
1218 |
+
|
1219 |
+
// Return share buttons.
|
1220 |
+
return $html_share_buttons;
|
1221 |
+
}
|
1222 |
+
|
1223 |
+
/**
|
1224 |
+
* Get vk button.
|
1225 |
+
*
|
1226 |
+
* @param array $arr_settings The current ssba settings.
|
1227 |
+
* @param string $url_current_page The current page url.
|
1228 |
+
* @param string $str_page_title The page title.
|
1229 |
+
* @param bool $boo_show_share_count Show share count or not.
|
1230 |
+
*
|
1231 |
+
* @return string
|
1232 |
+
*/
|
1233 |
+
public function ssba_vk( $arr_settings, $url_current_page, $str_page_title, $boo_show_share_count ) {
|
1234 |
+
$nofollow = 'Y' === $arr_settings['ssba_rel_nofollow'] ? ' rel="nofollow"' : '';
|
1235 |
+
$target = 'Y' === $arr_settings['ssba_share_new_window'] ? ' target="_blank" ' : '';
|
1236 |
+
|
1237 |
+
// Vk share link.
|
1238 |
+
$html_share_buttons = '<a data-site="vk" class="ssba_vk_share ssba_share_link" href="http://vkontakte.ru/share.php?url=' . esc_attr( $url_current_page ) . '" ' . esc_attr( $target . $nofollow ) . '>';
|
1239 |
+
|
1240 |
+
// If image set is not custom.
|
1241 |
+
if ( 'custom' !== $arr_settings['ssba_image_set'] ) {
|
1242 |
+
// Show ssba image.
|
1243 |
+
$html_share_buttons .= '<img src="' . plugins_url() . '/simple-share-buttons-adder/buttons/' . esc_attr( $arr_settings['ssba_image_set'] ) . '/vk.png" title="VK" class="ssba ssba-img" alt="Share on VK" />';
|
1244 |
+
} else { // If using custom images.
|
1245 |
+
// Show custom image.
|
1246 |
+
$html_share_buttons .= '<img src="' . esc_url( $arr_settings['ssba_custom_vk'] ) . '" title="VK" class="ssba ssba-img" alt="Share on VK" />';
|
1247 |
+
}
|
1248 |
+
|
1249 |
+
// Close href.
|
1250 |
+
$html_share_buttons .= '</a>';
|
1251 |
+
|
1252 |
+
// Return share buttons.
|
1253 |
+
return $html_share_buttons;
|
1254 |
+
}
|
1255 |
+
|
1256 |
+
/**
|
1257 |
+
* Get yummly button.
|
1258 |
+
*
|
1259 |
+
* @param array $arr_settings The current ssba settings.
|
1260 |
+
* @param string $url_current_page The current page url.
|
1261 |
+
* @param string $str_page_title The page title.
|
1262 |
+
* @param bool $boo_show_share_count Show share count or not.
|
1263 |
+
*
|
1264 |
+
* @return string
|
1265 |
+
*/
|
1266 |
+
public function ssba_yummly( $arr_settings, $url_current_page, $str_page_title, $boo_show_share_count ) {
|
1267 |
+
$nofollow = 'Y' === $arr_settings['ssba_rel_nofollow'] ? ' rel="nofollow"' : '';
|
1268 |
+
$target = 'Y' === $arr_settings['ssba_share_new_window'] ? ' target="_blank" ' : '';
|
1269 |
+
|
1270 |
+
// Yummly share link.
|
1271 |
+
$html_share_buttons = '<a data-site="yummly" class="ssba_yummly_share ssba_share_link" href="http://www.yummly.com/urb/verify?url=' . esc_attr( $url_current_page ) . '&title=' . esc_attr( rawurlencode( html_entity_decode( $str_page_title ) ) ) . '" ' . esc_attr( $target . $nofollow ) . '>';
|
1272 |
+
|
1273 |
+
// If image set is not custom.
|
1274 |
+
if ( 'custom' !== $arr_settings['ssba_image_set'] ) {
|
1275 |
+
// Show ssba image.
|
1276 |
+
$html_share_buttons .= '<img src="' . plugins_url() . '/simple-share-buttons-adder/buttons/' . esc_attr( $arr_settings['ssba_image_set'] ) . '/yummly.png" title="Yummly" class="ssba ssba-img" alt="Share on Yummly" />';
|
1277 |
+
} else { // If using custom images.
|
1278 |
+
// Show custom image.
|
1279 |
+
$html_share_buttons .= '<img src="' . esc_url( $arr_settings['ssba_custom_yummly'] ) . '" title="Yummly" class="ssba ssba-img" alt="Share on Yummly" />';
|
1280 |
+
}
|
1281 |
+
|
1282 |
+
// Close href.
|
1283 |
+
$html_share_buttons .= '</a>';
|
1284 |
+
|
1285 |
+
// If show share count is set to Y.
|
1286 |
+
if ( 'Y' === $arr_settings['ssba_show_share_count'] && $boo_show_share_count ) {
|
1287 |
+
$html_share_buttons .= '<span class="ssba_sharecount">' . esc_html( $this->get_yummly_share_count( $url_current_page ) ) . '</span>';
|
1288 |
+
}
|
1289 |
+
|
1290 |
+
// Return share buttons.
|
1291 |
+
return $html_share_buttons;
|
1292 |
+
}
|
1293 |
+
|
1294 |
+
/**
|
1295 |
+
* Get yummly share count.
|
1296 |
+
*
|
1297 |
+
* @param string $url_current_page the current page url.
|
1298 |
+
*
|
1299 |
+
* @return int|string
|
1300 |
+
*/
|
1301 |
+
public function get_yummly_share_count( $url_current_page ) {
|
1302 |
+
// Get results from yummly and return the number of shares.
|
1303 |
+
$result = wp_safe_remote_get( 'http://www.yummly.com/services/yum-count?url=' . $url_current_page, array(
|
1304 |
+
'timeout' => 6,
|
1305 |
+
) );
|
1306 |
+
|
1307 |
+
// Check there was an error.
|
1308 |
+
if ( is_wp_error( $result ) ) {
|
1309 |
+
return 0;
|
1310 |
+
}
|
1311 |
+
|
1312 |
+
// Decode data.
|
1313 |
+
$array = json_decode( $result['body'], true );
|
1314 |
+
$count = isset( $array['count'] ) ? $array['count'] : '0';
|
1315 |
+
|
1316 |
+
// Return.
|
1317 |
+
return $count;
|
1318 |
+
}
|
1319 |
+
|
1320 |
+
/**
|
1321 |
+
* Get whatsapp button.
|
1322 |
+
*
|
1323 |
+
* @param array $arr_settings The current ssba settings.
|
1324 |
+
* @param string $url_current_page The current page url.
|
1325 |
+
* @param string $str_page_title The page title.
|
1326 |
+
* @param bool $boo_show_share_count Show share count or not.
|
1327 |
+
*
|
1328 |
+
* @return string
|
1329 |
+
*/
|
1330 |
+
public function ssba_whatsapp( $arr_settings, $url_current_page, $str_page_title, $boo_show_share_count ) {
|
1331 |
+
if ( ! wp_is_mobile() ) {
|
1332 |
+
return;
|
1333 |
+
}
|
1334 |
+
|
1335 |
+
$nofollow = 'Y' === $arr_settings['ssba_rel_nofollow'] ? ' rel="nofollow"' : '';
|
1336 |
+
$target = 'Y' === $arr_settings['ssba_share_new_window'] ? ' target="_blank" ' : '';
|
1337 |
+
|
1338 |
+
// Whatsapp share link.
|
1339 |
+
$html_share_buttons = '<a data-site="whatsapp" class="ssba_whatsapp_share ssba_share_link" href="whatsapp://send?text=' . rawurlencode( $url_current_page . ' ' . $str_page_title ) . '" ' . esc_attr( $target . $nofollow ) . '>';
|
1340 |
+
|
1341 |
+
// If image set is not custom.
|
1342 |
+
if ( 'custom' !== $arr_settings['ssba_image_set'] ) {
|
1343 |
+
// Show ssba image.
|
1344 |
+
$html_share_buttons .= '<img src="' . plugins_url() . '/simple-share-buttons-adder/buttons/' . esc_attr( $arr_settings['ssba_image_set'] ) . '/whatsapp.png" title="Whatsapp" class="ssba ssba-img" alt="Share on Whatsapp" />';
|
1345 |
+
} else { // If using custom images.
|
1346 |
+
// Show custom image.
|
1347 |
+
$html_share_buttons .= '<img src="' . esc_url( $arr_settings['ssba_custom_whatsapp'] ) . '" title="Whatsapp" class="ssba ssba-img" alt="Share on Whatsapp" />';
|
1348 |
+
}
|
1349 |
+
|
1350 |
+
// Close href.
|
1351 |
+
$html_share_buttons .= '</a>';
|
1352 |
+
|
1353 |
+
// Return share buttons.
|
1354 |
+
return $html_share_buttons;
|
1355 |
+
}
|
1356 |
+
|
1357 |
+
/**
|
1358 |
+
* Get xing button.
|
1359 |
+
*
|
1360 |
+
* @param array $arr_settings The current ssba settings.
|
1361 |
+
* @param string $url_current_page The current page url.
|
1362 |
+
* @param string $str_page_title The page title.
|
1363 |
+
* @param bool $boo_show_share_count Show share count or not.
|
1364 |
+
*
|
1365 |
+
* @return string
|
1366 |
+
*/
|
1367 |
+
public function ssba_xing( $arr_settings, $url_current_page, $str_page_title, $boo_show_share_count ) {
|
1368 |
+
$nofollow = 'Y' === $arr_settings['ssba_rel_nofollow'] ? ' rel="nofollow"' : '';
|
1369 |
+
$target = 'Y' === $arr_settings['ssba_share_new_window'] ? ' target="_blank" ' : '';
|
1370 |
+
|
1371 |
+
// Xing share link.
|
1372 |
+
$html_share_buttons = '<a data-site="xing" class="ssba_xing_share ssba_share_link" href="https://www.xing.com/spi/shares/new?url=' . $url_current_page . '" ' . esc_attr( $target . $nofollow ) . '>';
|
1373 |
+
|
1374 |
+
// If image set is not custom.
|
1375 |
+
if ( 'custom' !== $arr_settings['ssba_image_set'] ) {
|
1376 |
+
// Show ssba image.
|
1377 |
+
$html_share_buttons .= '<img src="' . plugins_url() . '/simple-share-buttons-adder/buttons/' . esc_attr( $arr_settings['ssba_image_set'] ) . '/xing.png" title="Xing" class="ssba ssba-img" alt="Share on Xing" />';
|
1378 |
+
} else { // If using custom images.
|
1379 |
+
// Show custom image.
|
1380 |
+
$html_share_buttons .= '<img src="' . esc_url( $arr_settings['ssba_custom_xing'] ) . '" title="Xing" class="ssba ssba-img" alt="Share on Xing" />';
|
1381 |
+
}
|
1382 |
+
|
1383 |
+
// Close href.
|
1384 |
+
$html_share_buttons .= '</a>';
|
1385 |
+
|
1386 |
+
// Return share buttons.
|
1387 |
+
return $html_share_buttons;
|
1388 |
+
}
|
1389 |
+
}
|
php/class-database.php
ADDED
@@ -0,0 +1,595 @@
|
|
Â
|
|
Â
|
|
Â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|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Database.
|
4 |
+
*
|
5 |
+
* @package SimpleShareButtonsAdder
|
6 |
+
*/
|
7 |
+
|
8 |
+
namespace SimpleShareButtonsAdder;
|
9 |
+
|
10 |
+
/**
|
11 |
+
* Database Class
|
12 |
+
*
|
13 |
+
* @package SimpleShareButtonsAdder
|
14 |
+
*/
|
15 |
+
class Database {
|
16 |
+
|
17 |
+
/**
|
18 |
+
* Plugin instance.
|
19 |
+
*
|
20 |
+
* @var object
|
21 |
+
*/
|
22 |
+
public $plugin;
|
23 |
+
|
24 |
+
/**
|
25 |
+
* Simple Share Buttons Adder instance.
|
26 |
+
*
|
27 |
+
* @var object
|
28 |
+
*/
|
29 |
+
public $class_ssba;
|
30 |
+
|
31 |
+
/**
|
32 |
+
* Class constructor.
|
33 |
+
*
|
34 |
+
* @param object $plugin Plugin class.
|
35 |
+
* @param object $class_ssba Simple Share Buttons Adder class.
|
36 |
+
*/
|
37 |
+
public function __construct( $plugin, $class_ssba ) {
|
38 |
+
$this->plugin = $plugin;
|
39 |
+
$this->class_ssba = $class_ssba;
|
40 |
+
|
41 |
+
// Run the activation function upon activation of the plugin.
|
42 |
+
register_activation_hook( $this->plugin->dir_path . '/simple-share-buttons-adder.php', array( $this, 'activate' ) );
|
43 |
+
|
44 |
+
// Register deactivation hook.
|
45 |
+
register_deactivation_hook( $this->plugin->dir_path . '/simple-share-buttons-adder.php', array( $this, 'deactivate' ) );
|
46 |
+
}
|
47 |
+
|
48 |
+
/**
|
49 |
+
* Activate ssba function.
|
50 |
+
*/
|
51 |
+
public function activate() {
|
52 |
+
// Likely a reactivation, return doing nothing.
|
53 |
+
if ( false !== get_option( 'ssba_version' ) ) {
|
54 |
+
return;
|
55 |
+
}
|
56 |
+
|
57 |
+
// Array ready with defaults.
|
58 |
+
$ssba_settings = array(
|
59 |
+
'ssba_image_set' => 'somacro',
|
60 |
+
'ssba_size' => '35',
|
61 |
+
'ssba_pages' => '',
|
62 |
+
'ssba_posts' => '',
|
63 |
+
'ssba_cats_archs' => '',
|
64 |
+
'ssba_homepage' => '',
|
65 |
+
'ssba_excerpts' => '',
|
66 |
+
'ssba_plus_pages' => '',
|
67 |
+
'ssba_plus_posts' => '',
|
68 |
+
'ssba_plus_cats_archs' => '',
|
69 |
+
'ssba_plus_homepage' => '',
|
70 |
+
'ssba_plus_excerpts' => '',
|
71 |
+
'ssba_share_pages' => '',
|
72 |
+
'ssba_share_posts' => '',
|
73 |
+
'ssba_share_cats_archs' => '',
|
74 |
+
'ssba_share_homepage' => '',
|
75 |
+
'ssba_share_excerpts' => '',
|
76 |
+
'ssba_align' => 'left',
|
77 |
+
'ssba_plus_align' => 'left',
|
78 |
+
'ssba_share_align' => 'left',
|
79 |
+
'ssba_padding' => '6',
|
80 |
+
'ssba_before_or_after' => 'after',
|
81 |
+
'ssba_before_or_after_plus' => 'after',
|
82 |
+
'ssba_additional_css' => '',
|
83 |
+
'ssba_custom_styles' => '',
|
84 |
+
'ssba_custom_styles_enabled' => '',
|
85 |
+
'ssba_plus_additional_css' => '',
|
86 |
+
'ssba_plus_custom_styles' => '',
|
87 |
+
'ssba_plus_custom_styles_enabled' => '',
|
88 |
+
'ssba_share_additional_css' => '',
|
89 |
+
'ssba_share_custom_styles' => '',
|
90 |
+
'ssba_share_custom_styles_enabled' => '',
|
91 |
+
'ssba_email_message' => '',
|
92 |
+
'ssba_twitter_text' => '',
|
93 |
+
'ssba_buffer_text' => '',
|
94 |
+
'ssba_flattr_user_id' => '',
|
95 |
+
'ssba_flattr_url' => '',
|
96 |
+
'ssba_share_new_window' => 'Y',
|
97 |
+
'ssba_link_to_ssb' => 'N',
|
98 |
+
'ssba_show_share_count' => '',
|
99 |
+
'ssba_plus_show_share_count' => '',
|
100 |
+
'ssba_share_show_share_count' => '',
|
101 |
+
'ssba_share_count_style' => 'default',
|
102 |
+
'ssba_share_count_css' => '',
|
103 |
+
'ssba_share_count_once' => 'Y',
|
104 |
+
'ssba_widget_text' => '',
|
105 |
+
'ssba_rel_nofollow' => '',
|
106 |
+
'ssba_default_pinterest' => '',
|
107 |
+
'ssba_pinterest_featured' => '',
|
108 |
+
'ssba_plus_widget_text' => '',
|
109 |
+
'ssba_plus_rel_nofollow' => '',
|
110 |
+
'ssba_plus_default_pinterest' => '',
|
111 |
+
'ssba_plus_pinterest_featured' => '',
|
112 |
+
'ssba_share_widget_text' => '',
|
113 |
+
'ssba_share_rel_nofollow' => '',
|
114 |
+
'ssba_share_default_pinterest' => '',
|
115 |
+
'ssba_share_pinterest_featured' => '',
|
116 |
+
'ssba_content_priority' => '10',
|
117 |
+
|
118 |
+
// Share container.
|
119 |
+
'ssba_div_padding' => '',
|
120 |
+
'ssba_div_rounded_corners' => '',
|
121 |
+
'ssba_border_width' => '',
|
122 |
+
'ssba_div_border' => '',
|
123 |
+
'ssba_div_background' => '',
|
124 |
+
|
125 |
+
// Share text.
|
126 |
+
'ssba_share_text' => esc_html__( 'Share this...', 'simple-share-buttons-adder' ),
|
127 |
+
'ssba_text_placement' => 'above',
|
128 |
+
'ssba_font_family' => '',
|
129 |
+
'ssba_font_color' => '',
|
130 |
+
'ssba_font_size' => '12',
|
131 |
+
'ssba_font_weight' => '',
|
132 |
+
'ssba_plus_share_text' => esc_html__( 'Share this...', 'simple-share-buttons-adder' ),
|
133 |
+
'ssba_plus_text_placement' => 'above',
|
134 |
+
'ssba_plus_font_family' => '',
|
135 |
+
'ssba_plus_font_color' => '',
|
136 |
+
'ssba_plus_font_size' => '12',
|
137 |
+
'ssba_plus_font_weight' => '',
|
138 |
+
|
139 |
+
// Include.
|
140 |
+
'ssba_selected_buttons' => 'facebook,google,twitter,linkedin',
|
141 |
+
'ssba_selected_share_buttons' => 'facebook,google,twitter,linkedin',
|
142 |
+
'ssba_selected_plus_buttons' => 'facebook,google,twitter,linkedin',
|
143 |
+
'ssba_share_button_style' => 1,
|
144 |
+
'ssba_share_bar_style' => 1,
|
145 |
+
'ssba_new_buttons' => '',
|
146 |
+
'ssba_share_bar' => '',
|
147 |
+
'ssba_share_bar_position' => 'left',
|
148 |
+
'ssba_plus_height' => '48',
|
149 |
+
'ssba_plus_width' => '48',
|
150 |
+
'ssba_plus_margin' => '12',
|
151 |
+
'ssba_plus_button_color' => '',
|
152 |
+
'ssba_plus_button_hover_color' => '',
|
153 |
+
'ssba_plus_icon_size' => '',
|
154 |
+
'ssba_plus_icon_color' => '',
|
155 |
+
'ssba_plus_icon_hover_color' => '',
|
156 |
+
'ssba_share_height' => '48',
|
157 |
+
'ssba_share_width' => '48',
|
158 |
+
'ssba_share_margin' => '0',
|
159 |
+
'ssba_share_icon_size' => '',
|
160 |
+
'ssba_share_button_color' => '',
|
161 |
+
'ssba_share_button_hover_color' => '',
|
162 |
+
'ssba_share_icon_color' => '',
|
163 |
+
'ssba_share_icon_hover_color' => '',
|
164 |
+
'ssba_share_desktop' => '',
|
165 |
+
'ssba_share_mobile' => '',
|
166 |
+
'ssba_mobile_breakpoint' => '',
|
167 |
+
|
168 |
+
// Custom images.
|
169 |
+
'ssba_custom_email' => '',
|
170 |
+
'ssba_custom_google' => '',
|
171 |
+
'ssba_custom_facebook' => '',
|
172 |
+
'ssba_custom_twitter' => '',
|
173 |
+
'ssba_custom_diggit' => '',
|
174 |
+
'ssba_custom_linkedin' => '',
|
175 |
+
'ssba_custom_reddit' => '',
|
176 |
+
'ssba_custom_stumbleupon' => '',
|
177 |
+
'ssba_custom_pinterest' => '',
|
178 |
+
'ssba_custom_buffer' => '',
|
179 |
+
'ssba_custom_flattr' => '',
|
180 |
+
'ssba_custom_tumblr' => '',
|
181 |
+
'ssba_custom_print' => '',
|
182 |
+
'ssba_custom_vk' => '',
|
183 |
+
'ssba_custom_yummly' => '',
|
184 |
+
|
185 |
+
// Sharedcount.
|
186 |
+
'sharedcount_enabled' => '',
|
187 |
+
'sharedcount_api_key' => '',
|
188 |
+
'sharedcount_plan' => 'free',
|
189 |
+
'sharedcount_plus_enabled' => '',
|
190 |
+
'sharedcount_plus_api_key' => '',
|
191 |
+
'sharedcount_plus_plan' => 'free',
|
192 |
+
'sharedcount_share_enabled' => '',
|
193 |
+
'sharedcount_share_api_key' => '',
|
194 |
+
'sharedcount_share_plan' => 'free',
|
195 |
+
|
196 |
+
// Newsharecounts.
|
197 |
+
'twitter_newsharecounts' => '',
|
198 |
+
'plus_twitter_newsharecounts' => '',
|
199 |
+
'share_twitter_newsharecounts' => '',
|
200 |
+
|
201 |
+
// New with sharethis.
|
202 |
+
'facebook_insights' => '',
|
203 |
+
'facebook_app_id' => '',
|
204 |
+
'plus_facebook_insights' => '',
|
205 |
+
'plus_facebook_app_id' => '',
|
206 |
+
'share_facebook_insights' => '',
|
207 |
+
'share_facebook_app_id' => '',
|
208 |
+
'accepted_sharethis_terms' => 'Y',
|
209 |
+
);
|
210 |
+
|
211 |
+
// Json encode.
|
212 |
+
$json_settings = wp_json_encode( $ssba_settings );
|
213 |
+
|
214 |
+
// Insert default options for ssba.
|
215 |
+
add_option( 'ssba_settings', $json_settings );
|
216 |
+
|
217 |
+
// Button helper array.
|
218 |
+
$this->ssba_button_helper_array();
|
219 |
+
|
220 |
+
// Ssba version.
|
221 |
+
add_option( 'ssba_version', SSBA_VERSION );
|
222 |
+
}
|
223 |
+
|
224 |
+
/**
|
225 |
+
* Deactivate ssba.
|
226 |
+
*/
|
227 |
+
public function deactivate() {
|
228 |
+
// Delete options.
|
229 |
+
delete_option( 'ssba_settings' );
|
230 |
+
delete_option( 'ssba_version' );
|
231 |
+
}
|
232 |
+
|
233 |
+
/**
|
234 |
+
* The upgrade function.
|
235 |
+
*
|
236 |
+
* @param array $arr_settings The current ssba settings.
|
237 |
+
* @param string $version The current plugin version.
|
238 |
+
*/
|
239 |
+
public function upgrade_ssba( $arr_settings, $version ) {
|
240 |
+
// If version is less than 6.0.5.
|
241 |
+
if ( $version < '6.0.5' ) {
|
242 |
+
// Ensure excerpts are set.
|
243 |
+
add_option( 'ssba_excerpts', '' );
|
244 |
+
|
245 |
+
// Add print button.
|
246 |
+
add_option( 'ssba_custom_print', '' );
|
247 |
+
|
248 |
+
// New for 3.8.
|
249 |
+
add_option( 'ssba_widget_text', '' );
|
250 |
+
add_option( 'ssba_rel_nofollow', '' );
|
251 |
+
|
252 |
+
// Added pre 4.5, added in 4.6 to fix notice.
|
253 |
+
add_option( 'ssba_rel_nofollow', '' );
|
254 |
+
|
255 |
+
// Added in 5.0.
|
256 |
+
add_option( 'ssba_custom_vk', '' );
|
257 |
+
add_option( 'ssba_custom_yummly', '' );
|
258 |
+
|
259 |
+
// Added in 5.2.
|
260 |
+
add_option( 'ssba_default_pinterest', '' );
|
261 |
+
|
262 |
+
// Added in 5.5.
|
263 |
+
add_option( 'ssba_pinterest_featured', '' );
|
264 |
+
|
265 |
+
// Added in 5.7. Additional CSS field.
|
266 |
+
add_option( 'ssba_additional_css', '' );
|
267 |
+
|
268 |
+
// Empty custom CSS var and option.
|
269 |
+
$custom_css = '';
|
270 |
+
|
271 |
+
add_option( 'ssba_custom_styles_enabled', '' );
|
272 |
+
|
273 |
+
// If some custom styles are in place.
|
274 |
+
if ( '' !== $arr_settings['ssba_custom_styles'] ) {
|
275 |
+
$custom_css .= $arr_settings['ssba_custom_styles'];
|
276 |
+
|
277 |
+
update_option( 'ssba_custom_styles_enabled', 'Y' );
|
278 |
+
}
|
279 |
+
|
280 |
+
// If some custom share count styles are in place.
|
281 |
+
if ( '' !== $arr_settings['ssba_share_count_css'] ) {
|
282 |
+
$custom_css .= $arr_settings['ssba_share_count_css'];
|
283 |
+
|
284 |
+
update_option( 'ssba_custom_styles_enabled', 'Y' );
|
285 |
+
}
|
286 |
+
|
287 |
+
// Update custom CSS option.
|
288 |
+
update_option( 'ssba_custom_styles', $custom_css );
|
289 |
+
|
290 |
+
// Content priority.
|
291 |
+
add_option( 'ssba_content_priority', '10' );
|
292 |
+
} // End if().
|
293 |
+
|
294 |
+
// If version is less than 6.0.6.
|
295 |
+
if ( $version < '6.0.6' ) {
|
296 |
+
// Get old settings.
|
297 |
+
$old_settings = $this->get_old_ssba_settings();
|
298 |
+
|
299 |
+
// Json encode old settings.
|
300 |
+
$json_settings = wp_json_encode( $old_settings );
|
301 |
+
|
302 |
+
// Insert all options for ssba as json.
|
303 |
+
add_option( 'ssba_settings', $json_settings );
|
304 |
+
|
305 |
+
// Delete old options.
|
306 |
+
$this->ssba_delete_old_options();
|
307 |
+
}
|
308 |
+
|
309 |
+
// If version is less than 6.1.3.
|
310 |
+
if ( $version < '6.1.3' ) {
|
311 |
+
// New settings.
|
312 |
+
$new = array(
|
313 |
+
'sharedcount_enabled' => '',
|
314 |
+
'sharedcount_api_key' => '',
|
315 |
+
'sharedcount_plan' => 'free',
|
316 |
+
);
|
317 |
+
|
318 |
+
// Update settings.
|
319 |
+
$this->class_ssba->ssba_update_options( $new );
|
320 |
+
}
|
321 |
+
|
322 |
+
// If version is less than 6.1.5.
|
323 |
+
if ( $version < '6.1.5' ) {
|
324 |
+
// New settings.
|
325 |
+
$new = array(
|
326 |
+
'twitter_newsharecounts' => '',
|
327 |
+
);
|
328 |
+
|
329 |
+
// Update settings.
|
330 |
+
$this->class_ssba->ssba_update_options( $new );
|
331 |
+
}
|
332 |
+
|
333 |
+
// If version is less than 6.2.0.
|
334 |
+
if ( $version < '6.2.0' ) {
|
335 |
+
// New settings.
|
336 |
+
$new = array(
|
337 |
+
'facebook_insights' => '',
|
338 |
+
'facebook_app_id' => '',
|
339 |
+
'accepted_sharethis_terms' => '',
|
340 |
+
);
|
341 |
+
|
342 |
+
// Update settings.
|
343 |
+
$this->class_ssba->ssba_update_options( $new );
|
344 |
+
}
|
345 |
+
|
346 |
+
// Button helper array.
|
347 |
+
$this->ssba_button_helper_array();
|
348 |
+
|
349 |
+
// Show the ST terms notice after upgrades if the user hasn't agreed.
|
350 |
+
$this->class_ssba->ssba_update_options( array(
|
351 |
+
'hide_sharethis_terms' => false,
|
352 |
+
) );
|
353 |
+
|
354 |
+
// Update version number.
|
355 |
+
update_option( 'ssba_version', SSBA_VERSION );
|
356 |
+
}
|
357 |
+
|
358 |
+
/**
|
359 |
+
* Button helper option.
|
360 |
+
*/
|
361 |
+
public function ssba_button_helper_array() {
|
362 |
+
// Helper array for ssbp.
|
363 |
+
update_option( 'ssba_buttons', wp_json_encode( array(
|
364 |
+
'buffer' => array(
|
365 |
+
'full_name' => esc_html__( 'Buffer', 'simple-share-buttons-adder' ),
|
366 |
+
),
|
367 |
+
'diggit' => array(
|
368 |
+
'full_name' => esc_html__( 'Diggit', 'simple-share-buttons-adder' ),
|
369 |
+
),
|
370 |
+
'email' => array(
|
371 |
+
'full_name' => esc_html__( 'Email', 'simple-share-buttons-adder' ),
|
372 |
+
),
|
373 |
+
'facebook' => array(
|
374 |
+
'full_name' => esc_html__( 'Facebook', 'simple-share-buttons-adder' ),
|
375 |
+
),
|
376 |
+
'facebook_save' => array(
|
377 |
+
'full_name' => esc_html__( 'Facebook Save', 'simple-share-buttons-adder' ),
|
378 |
+
),
|
379 |
+
'flattr' => array(
|
380 |
+
'full_name' => esc_html__( 'Flattr', 'simple-share-buttons-adder' ),
|
381 |
+
),
|
382 |
+
'google' => array(
|
383 |
+
'full_name' => esc_html__( 'Google+', 'simple-share-buttons-adder' ),
|
384 |
+
),
|
385 |
+
'linkedin' => array(
|
386 |
+
'full_name' => esc_html__( 'LinkedIn', 'simple-share-buttons-adder' ),
|
387 |
+
),
|
388 |
+
'pinterest' => array(
|
389 |
+
'full_name' => esc_html__( 'Pinterest', 'simple-share-buttons-adder' ),
|
390 |
+
),
|
391 |
+
'print' => array(
|
392 |
+
'full_name' => esc_html__( 'Print', 'simple-share-buttons-adder' ),
|
393 |
+
),
|
394 |
+
'reddit' => array(
|
395 |
+
'full_name' => esc_html__( 'Reddit', 'simple-share-buttons-adder' ),
|
396 |
+
),
|
397 |
+
'stumbleupon' => array(
|
398 |
+
'full_name' => esc_html__( 'StumbleUpon', 'simple-share-buttons-adder' ),
|
399 |
+
),
|
400 |
+
'tumblr' => array(
|
401 |
+
'full_name' => esc_html__( 'Tumblr', 'simple-share-buttons-adder' ),
|
402 |
+
),
|
403 |
+
'twitter' => array(
|
404 |
+
'full_name' => esc_html__( 'Twitter', 'simple-share-buttons-adder' ),
|
405 |
+
),
|
406 |
+
'vk' => array(
|
407 |
+
'full_name' => esc_html__( 'VK', 'simple-share-buttons-adder' ),
|
408 |
+
),
|
409 |
+
'whatsapp' => array(
|
410 |
+
'full_name' => esc_html__( 'WhatsApp', 'simple-share-buttons-adder' ),
|
411 |
+
),
|
412 |
+
'xing' => array(
|
413 |
+
'full_name' => esc_html__( 'Xing', 'simple-share-buttons-adder' ),
|
414 |
+
),
|
415 |
+
'yummly' => array(
|
416 |
+
'full_name' => esc_html__( 'Yummly', 'simple-share-buttons-adder' ),
|
417 |
+
),
|
418 |
+
) ) );
|
419 |
+
}
|
420 |
+
|
421 |
+
/**
|
422 |
+
* Delete old options to move to json array.
|
423 |
+
*/
|
424 |
+
public function ssba_delete_old_options() {
|
425 |
+
// Delete all options.
|
426 |
+
delete_option( 'ssba_version' );
|
427 |
+
delete_option( 'ssba_image_set' );
|
428 |
+
delete_option( 'ssba_size' );
|
429 |
+
delete_option( 'ssba_pages' );
|
430 |
+
delete_option( 'ssba_posts' );
|
431 |
+
delete_option( 'ssba_cats_archs' );
|
432 |
+
delete_option( 'ssba_homepage' );
|
433 |
+
delete_option( 'ssba_excerpts' );
|
434 |
+
delete_option( 'ssba_plus_pages' );
|
435 |
+
delete_option( 'ssba_plus_posts' );
|
436 |
+
delete_option( 'ssba_plus_cats_archs' );
|
437 |
+
delete_option( 'ssba_plus_homepage' );
|
438 |
+
delete_option( 'ssba_plus_excerpts' );
|
439 |
+
delete_option( 'ssba_share_bar' );
|
440 |
+
delete_option( 'ssba_share_pages' );
|
441 |
+
delete_option( 'ssba_share_posts' );
|
442 |
+
delete_option( 'ssba_share_cats_archs' );
|
443 |
+
delete_option( 'ssba_share_homepage' );
|
444 |
+
delete_option( 'ssba_share_excerpts' );
|
445 |
+
delete_option( 'ssba_align' );
|
446 |
+
delete_option( 'ssba_plus_align' );
|
447 |
+
delete_option( 'ssba_padding' );
|
448 |
+
delete_option( 'ssba_before_or_after' );
|
449 |
+
delete_option( 'ssba_before_or_after_plus' );
|
450 |
+
delete_option( 'ssba_additional_css' );
|
451 |
+
delete_option( 'ssba_custom_styles' );
|
452 |
+
delete_option( 'ssba_custom_styles_enabled' );
|
453 |
+
delete_option( 'ssba_email_message' );
|
454 |
+
delete_option( 'ssba_buffer_text' );
|
455 |
+
delete_option( 'ssba_twitter_text' );
|
456 |
+
delete_option( 'ssba_flattr_user_id' );
|
457 |
+
delete_option( 'ssba_flattr_url' );
|
458 |
+
delete_option( 'ssba_share_new_window' );
|
459 |
+
delete_option( 'ssba_link_to_ssb' );
|
460 |
+
delete_option( 'ssba_show_share_count' );
|
461 |
+
delete_option( 'ssba_share_count_style' );
|
462 |
+
delete_option( 'ssba_share_count_css' );
|
463 |
+
delete_option( 'ssba_share_count_once' );
|
464 |
+
delete_option( 'ssba_widget_text' );
|
465 |
+
delete_option( 'ssba_rel_nofollow' );
|
466 |
+
delete_option( 'ssba_default_pinterest' );
|
467 |
+
delete_option( 'ssba_pinterest_featured' );
|
468 |
+
delete_option( 'ssba_content_priority' );
|
469 |
+
delete_option( 'ssba_plus_additional_css' );
|
470 |
+
delete_option( 'ssba_plus_custom_styles' );
|
471 |
+
delete_option( 'ssba_plus_custom_styles_enabled' );
|
472 |
+
delete_option( 'ssba_plus_email_message' );
|
473 |
+
delete_option( 'ssba_plus_buffer_text' );
|
474 |
+
delete_option( 'ssba_plus_twitter_text' );
|
475 |
+
delete_option( 'ssba_plus_flattr_user_id' );
|
476 |
+
delete_option( 'ssba_plus_flattr_url' );
|
477 |
+
delete_option( 'ssba_plus_share_new_window' );
|
478 |
+
delete_option( 'ssba_plus_link_to_ssb' );
|
479 |
+
delete_option( 'ssba_plus_show_share_count' );
|
480 |
+
delete_option( 'ssba_plus_share_count_style' );
|
481 |
+
delete_option( 'ssba_plus_share_count_css' );
|
482 |
+
delete_option( 'ssba_plus_share_count_once' );
|
483 |
+
delete_option( 'ssba_plus_widget_text' );
|
484 |
+
delete_option( 'ssba_plus_rel_nofollow' );
|
485 |
+
delete_option( 'ssba_plus_default_pinterest' );
|
486 |
+
delete_option( 'ssba_plus_pinterest_featured' );
|
487 |
+
delete_option( 'ssba_share_additional_css' );
|
488 |
+
delete_option( 'ssba_share_custom_styles' );
|
489 |
+
delete_option( 'ssba_share_custom_styles_enabled' );
|
490 |
+
delete_option( 'ssba_share_email_message' );
|
491 |
+
delete_option( 'ssba_share_buffer_text' );
|
492 |
+
delete_option( 'ssba_share_twitter_text' );
|
493 |
+
delete_option( 'ssba_share_flattr_user_id' );
|
494 |
+
delete_option( 'ssba_share_flattr_url' );
|
495 |
+
delete_option( 'ssba_share_share_new_window' );
|
496 |
+
delete_option( 'ssba_share_link_to_ssb' );
|
497 |
+
delete_option( 'ssba_share_show_share_count' );
|
498 |
+
delete_option( 'ssba_share_share_count_style' );
|
499 |
+
delete_option( 'ssba_share_share_count_css' );
|
500 |
+
delete_option( 'ssba_share_share_count_once' );
|
501 |
+
delete_option( 'ssba_share_widget_text' );
|
502 |
+
delete_option( 'ssba_share_rel_nofollow' );
|
503 |
+
delete_option( 'ssba_share_default_pinterest' );
|
504 |
+
delete_option( 'ssba_share_pinterest_featured' );
|
505 |
+
|
506 |
+
// Share container.
|
507 |
+
delete_option( 'ssba_div_padding' );
|
508 |
+
delete_option( 'ssba_div_rounded_corners' );
|
509 |
+
delete_option( 'ssba_border_width' );
|
510 |
+
delete_option( 'ssba_div_border' );
|
511 |
+
delete_option( 'ssba_div_background' );
|
512 |
+
|
513 |
+
// Share text.
|
514 |
+
delete_option( 'ssba_share_text' );
|
515 |
+
delete_option( 'ssba_text_placement' );
|
516 |
+
delete_option( 'ssba_font_family' );
|
517 |
+
delete_option( 'ssba_font_color' );
|
518 |
+
delete_option( 'ssba_font_size' );
|
519 |
+
delete_option( 'ssba_font_weight' );
|
520 |
+
delete_option( 'ssba_plus_share_text' );
|
521 |
+
delete_option( 'ssba_plus_text_placement' );
|
522 |
+
delete_option( 'ssba_plus_font_family' );
|
523 |
+
delete_option( 'ssba_plus_font_color' );
|
524 |
+
delete_option( 'ssba_plus_font_size' );
|
525 |
+
delete_option( 'ssba_plus_font_weight' );
|
526 |
+
|
527 |
+
// Include.
|
528 |
+
delete_option( 'ssba_selected_buttons' );
|
529 |
+
delete_option( 'ssba_selected_share_buttons' );
|
530 |
+
delete_option( 'ssba_selected_plus_buttons' );
|
531 |
+
delete_option( 'ssba_share_button_style' );
|
532 |
+
delete_option( 'ssba_share_bar_style' );
|
533 |
+
delete_option( 'ssba_new_buttons' );
|
534 |
+
delete_option( 'ssba_share_bar_position' );
|
535 |
+
delete_option( 'ssba_plus_height' );
|
536 |
+
delete_option( 'ssba_plus_width' );
|
537 |
+
delete_option( 'ssba_plus_margin' );
|
538 |
+
delete_option( 'ssba_plus_button_color' );
|
539 |
+
delete_option( 'ssba_plus_button_hover_color' );
|
540 |
+
delete_option( 'ssba_plus_icon_size' );
|
541 |
+
delete_option( 'ssba_plus_icon_color' );
|
542 |
+
delete_option( 'ssba_plus_icon_hover_color' );
|
543 |
+
delete_option( 'ssba_share_height' );
|
544 |
+
delete_option( 'ssba_share_width' );
|
545 |
+
delete_option( 'ssba_share_margin' );
|
546 |
+
delete_option( 'ssba_share_button_color' );
|
547 |
+
delete_option( 'ssba_share_button_hover_color' );
|
548 |
+
delete_option( 'ssba_share_icon_size' );
|
549 |
+
delete_option( 'ssba_share_icon_color' );
|
550 |
+
delete_option( 'ssba_share_icon_hover_color' );
|
551 |
+
delete_option( 'ssba_share_desktop' );
|
552 |
+
delete_option( 'ssba_share_mobile' );
|
553 |
+
delete_option( 'ssba_mobile_breakpoint' );
|
554 |
+
|
555 |
+
// Custom images.
|
556 |
+
delete_option( 'ssba_custom_email' );
|
557 |
+
delete_option( 'ssba_custom_google' );
|
558 |
+
delete_option( 'ssba_custom_facebook' );
|
559 |
+
delete_option( 'ssba_custom_twitter' );
|
560 |
+
delete_option( 'ssba_custom_diggit' );
|
561 |
+
delete_option( 'ssba_custom_linkedin' );
|
562 |
+
delete_option( 'ssba_custom_reddit' );
|
563 |
+
delete_option( 'ssba_custom_stumbleupon' );
|
564 |
+
delete_option( 'ssba_custom_pinterest' );
|
565 |
+
delete_option( 'ssba_custom_buffer' );
|
566 |
+
delete_option( 'ssba_custom_flattr' );
|
567 |
+
delete_option( 'ssba_custom_tumblr' );
|
568 |
+
delete_option( 'ssba_custom_print' );
|
569 |
+
delete_option( 'ssba_custom_vk' );
|
570 |
+
delete_option( 'ssba_custom_yummly' );
|
571 |
+
|
572 |
+
// Notice.
|
573 |
+
delete_option( 'ssba_dismiss_notice' );
|
574 |
+
}
|
575 |
+
|
576 |
+
/**
|
577 |
+
* Return old ssba settings (pre 6.0.6).
|
578 |
+
*
|
579 |
+
* @return array|null|object
|
580 |
+
*/
|
581 |
+
public function get_old_ssba_settings() {
|
582 |
+
global $wp_registered_settings;
|
583 |
+
|
584 |
+
// Set variable.
|
585 |
+
$arr_settings = array();
|
586 |
+
|
587 |
+
foreach ( $wp_registered_settings as $name => $value ) {
|
588 |
+
if ( in_array( 'ssba', explode( '_', $name ), true ) ) {
|
589 |
+
$arr_settings[ $name ] = $value;
|
590 |
+
}
|
591 |
+
}
|
592 |
+
|
593 |
+
return $arr_settings;
|
594 |
+
}
|
595 |
+
}
|
php/class-forms.php
ADDED
@@ -0,0 +1,257 @@
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|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â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Forms.
|
4 |
+
*
|
5 |
+
* @package SimpleShareButtonsAdder
|
6 |
+
*/
|
7 |
+
|
8 |
+
namespace SimpleShareButtonsAdder;
|
9 |
+
|
10 |
+
/**
|
11 |
+
* Forms Class
|
12 |
+
*
|
13 |
+
* @package SimpleShareButtonsAdder
|
14 |
+
*/
|
15 |
+
class Forms {
|
16 |
+
|
17 |
+
/**
|
18 |
+
* Plugin instance.
|
19 |
+
*
|
20 |
+
* @var object
|
21 |
+
*/
|
22 |
+
public $plugin;
|
23 |
+
|
24 |
+
/**
|
25 |
+
* Checkboxes.
|
26 |
+
*
|
27 |
+
* @var string
|
28 |
+
*/
|
29 |
+
public $ssba_checkboxes;
|
30 |
+
|
31 |
+
/**
|
32 |
+
* Class constructor.
|
33 |
+
*
|
34 |
+
* @param object $plugin Plugin class.
|
35 |
+
*/
|
36 |
+
public function __construct( $plugin ) {
|
37 |
+
$this->plugin = $plugin;
|
38 |
+
}
|
39 |
+
|
40 |
+
/**
|
41 |
+
* Opening form tag.
|
42 |
+
*
|
43 |
+
* @param string $wrap The wrap class.
|
44 |
+
* @param string $action The action attribute.
|
45 |
+
* @param string $class The class attribute.
|
46 |
+
*
|
47 |
+
* @return string
|
48 |
+
*/
|
49 |
+
public function open( $wrap, $action = '', $class = '' ) {
|
50 |
+
$wrap = $wrap ? 'ssba-form-wrap' : '';
|
51 |
+
$return = '<div class="' . esc_attr( $wrap ) . '">';
|
52 |
+
$return .= '<form class="form-horizontal ' . esc_attr( $class ) . '" id="ssba-admin-form" method="post" action="' . esc_attr( $action ) . '">';
|
53 |
+
|
54 |
+
// Required hidden fields.
|
55 |
+
$return .= wp_nonce_field( 'ssba_save_settings','ssba_save_nonce' );
|
56 |
+
$return .= '<input type="hidden" name="ssba_options" />';
|
57 |
+
|
58 |
+
// Open fieldset.
|
59 |
+
$return .= '<fieldset>';
|
60 |
+
|
61 |
+
return $return;
|
62 |
+
}
|
63 |
+
|
64 |
+
/**
|
65 |
+
* Close form tag.
|
66 |
+
*
|
67 |
+
* @return string
|
68 |
+
*/
|
69 |
+
public function close() {
|
70 |
+
// Save button.
|
71 |
+
$return = '<button id="submit" class="ssba-btn-save btn btn-lg btn-primary"><i class="fa fa-floppy-o"></i></button>';
|
72 |
+
|
73 |
+
// Success button.
|
74 |
+
$return .= '<button type="button" class="ssba-btn-save-success btn btn-lg btn-success"><i class="fa fa-check"></i></button>';
|
75 |
+
|
76 |
+
// Close fieldset.
|
77 |
+
$return .= '</fieldset>';
|
78 |
+
|
79 |
+
// Close form.
|
80 |
+
$return .= '</form>';
|
81 |
+
$return .= '</div>';
|
82 |
+
|
83 |
+
return $return;
|
84 |
+
}
|
85 |
+
|
86 |
+
/**
|
87 |
+
* Inline checkboxes.
|
88 |
+
*
|
89 |
+
* @param array $opts The option array.
|
90 |
+
*
|
91 |
+
* @return string
|
92 |
+
*/
|
93 |
+
public function ssbp_checkboxes( $opts ) {
|
94 |
+
// Check if opts passed is an array.
|
95 |
+
if ( ! is_array( $opts ) ) {
|
96 |
+
return 'Variable passed not an array';
|
97 |
+
}
|
98 |
+
|
99 |
+
// Define variable.
|
100 |
+
$input = '';
|
101 |
+
|
102 |
+
// If we're including the form group div.
|
103 |
+
if ( $opts['form_group'] ) {
|
104 |
+
$input .= '<div class="form-group">';
|
105 |
+
}
|
106 |
+
|
107 |
+
// If a tooltip has been set.
|
108 |
+
if ( isset( $opts['tooltip'] ) && '' !== $opts['tooltip'] ) {
|
109 |
+
$tooltip = 'data-toggle="tooltip" data-placement="right" data-original-title="' . esc_attr( $opts['tooltip'] ) . '"';
|
110 |
+
} else {
|
111 |
+
$tooltip = '';
|
112 |
+
}
|
113 |
+
|
114 |
+
// Label with tooltip.
|
115 |
+
$input .= '<label class="control-label" ' . esc_attr( $tooltip ) . '>' . esc_html( $opts['label'] ) . '</label>';
|
116 |
+
|
117 |
+
// Input div.
|
118 |
+
$input .= '<div class="">';
|
119 |
+
|
120 |
+
// Add all checkboxes.
|
121 |
+
foreach ( $opts['checkboxes'] as $checkbox => $value ) {
|
122 |
+
$input .= $this->_ssbp_add_checkboxes( $value, $checkbox );
|
123 |
+
}
|
124 |
+
|
125 |
+
// Close input div.
|
126 |
+
$input .= '</div>';
|
127 |
+
|
128 |
+
// If we're including the form group div.
|
129 |
+
if ( $opts['form_group'] ) {
|
130 |
+
$input .= '</div>';
|
131 |
+
}
|
132 |
+
|
133 |
+
// Return the input.
|
134 |
+
return $input;
|
135 |
+
}
|
136 |
+
|
137 |
+
/**
|
138 |
+
* Checkboxes.
|
139 |
+
*
|
140 |
+
* @param array $value The checked prop.
|
141 |
+
* @param string $key The label value.
|
142 |
+
*/
|
143 |
+
public function _ssbp_add_checkboxes( $value, $key ) {
|
144 |
+
$checked = isset( $value['checked'] ) && $value['checked'] ? 'checked="checked"' : '';
|
145 |
+
|
146 |
+
$ssba_checkboxes = '<label class="checkbox-inline no_indent">
|
147 |
+
' . esc_html( $key ) . '<br />
|
148 |
+
<input type="checkbox" id="' . esc_attr( $value['value'] ) . '" name="' . esc_attr( $value['value'] ) . '" value="Y" ' . esc_attr( $checked ) . '>
|
149 |
+
</label>';
|
150 |
+
return $ssba_checkboxes;
|
151 |
+
}
|
152 |
+
|
153 |
+
/**
|
154 |
+
* Form input with group.
|
155 |
+
*
|
156 |
+
* @param array $opts The option array.
|
157 |
+
*
|
158 |
+
* @return string
|
159 |
+
*/
|
160 |
+
public function ssbp_input( $opts ) {
|
161 |
+
// Check if opts passed is an array.
|
162 |
+
if ( ! is_array( $opts ) ) {
|
163 |
+
return 'Variable passed not an array';
|
164 |
+
}
|
165 |
+
|
166 |
+
// Define variable.
|
167 |
+
$input = '';
|
168 |
+
|
169 |
+
// If we're including the form group div.
|
170 |
+
if ( $opts['form_group'] ) {
|
171 |
+
$input .= '<div class="form-group">';
|
172 |
+
}
|
173 |
+
|
174 |
+
// If a tooltip has been set.
|
175 |
+
if ( isset( $opts['tooltip'] ) && '' !== $opts['tooltip'] ) {
|
176 |
+
$tooltip = 'data-toggle="tooltip" data-placement="right" data-original-title="' . esc_attr( $opts['tooltip'] ) . '"';
|
177 |
+
} else {
|
178 |
+
$tooltip = '';
|
179 |
+
}
|
180 |
+
|
181 |
+
// Label with tooltip.
|
182 |
+
$input .= '<label for="' . esc_attr( $opts['name'] ) . '" class="control-label" ' . $tooltip . '>' . esc_html( $opts['label'] ) . '</label>';
|
183 |
+
|
184 |
+
// Input div.
|
185 |
+
$input .= '<div class="input-div">';
|
186 |
+
$disabled = isset( $opts['disabled'] ) ? $opts['disabled'] : null;
|
187 |
+
|
188 |
+
// Switch based on the input type.
|
189 |
+
switch ( $opts['type'] ) {
|
190 |
+
case 'text':
|
191 |
+
default:
|
192 |
+
$input .= '<input class="form-control" name="' . esc_attr( $opts['name'] ) . '" id="' . esc_attr( $opts['name'] ) . '" type="text" value="' . esc_attr( $opts['value'] ) . '" placeholder="' . esc_attr( $opts['placeholder'] ) . '" ' . $disabled . ' />';
|
193 |
+
break;
|
194 |
+
case 'text_prefix':
|
195 |
+
$input .= '<div class="input-group">
|
196 |
+
<span class="input-group-addon">' . esc_html( $opts['prefix'] ) . '</span>
|
197 |
+
<input name="' . esc_attr( $opts['name'] ) . '" id="' . esc_attr( $opts['name'] ) . '" type="text" value="' . esc_attr( $opts['value'] ) . '" class="form-control" placeholder="' . esc_attr( $opts['placeholder'] ) . '">
|
198 |
+
</div>';
|
199 |
+
break;
|
200 |
+
case 'error':
|
201 |
+
$input .= '<p class="text-danger">' . esc_html( $opts['error'] ) . '</p>';
|
202 |
+
break;
|
203 |
+
case 'number':
|
204 |
+
$input .= '<input class="form-control" name="' . esc_attr( $opts['name'] ) . '" id="' . esc_attr( $opts['name'] ) . '" type="number" value="' . esc_attr( $opts['value'] ) . '" placeholder="' . esc_attr( $opts['placeholder'] ) . '" />';
|
205 |
+
break;
|
206 |
+
case 'image_upload':
|
207 |
+
$input .= '<div class="input-group">
|
208 |
+
<input id="' . esc_attr( $opts['name'] ) . '" name="' . esc_attr( $opts['name'] ) . '" type="text" class="form-control" value="' . esc_attr( $opts['value'] ) . '">
|
209 |
+
<span class="input-group-btn">
|
210 |
+
<button id="upload_' . esc_attr( $opts['name'] ) . '_button" class="ssbpUpload ssbp_upload_btn btn btn-default" data-ssbp-input="' . esc_attr( $opts['name'] ) . '" type="button">Upload</button>
|
211 |
+
</span>
|
212 |
+
</div>';
|
213 |
+
break;
|
214 |
+
case 'number_addon':
|
215 |
+
$input .= '<div class="input-group">
|
216 |
+
<input id="' . esc_attr( $opts['name'] ) . '" name="' . esc_attr( $opts['name'] ) . '" type="number" class="form-control" value="' . esc_attr( $opts['value'] ) . '" placeholder="' . esc_attr( $opts['placeholder'] ) . '" />
|
217 |
+
<span class="input-group-addon">' . esc_html( $opts['addon'] ) . '</span>
|
218 |
+
</div>';
|
219 |
+
break;
|
220 |
+
case 'colorpicker':
|
221 |
+
$value = '' !== $opts['value'] ? $opts['value'] : '#eaeaea';
|
222 |
+
$input .= '<input id="' . esc_attr( $opts['name'] ) . '" name="' . esc_attr( $opts['name'] ) . '" type="text" class="ssba-colorpicker form-control" value="' . esc_attr( $opts['value'] ) . '" placeholder="#4582ec" style="border-color: ' . esc_attr( $value ) . '" />';
|
223 |
+
break;
|
224 |
+
case 'textarea':
|
225 |
+
$class = isset( $opts['class'] ) ? $opts['class'] : '';
|
226 |
+
$input .= '<textarea class="form-control ' . esc_attr( $class ) . '" name="' . esc_attr( $opts['name'] ) . '" id="' . esc_attr( $opts['name'] ) . '" rows="' . esc_attr( $opts['rows'] ) . '">' . esc_html( $opts['value'] ) . '</textarea>';
|
227 |
+
break;
|
228 |
+
case 'checkbox':
|
229 |
+
$class = isset( $opts['class'] ) ? $opts['class'] : '';
|
230 |
+
$disabled = isset( $opts['disabled'] ) ? $opts['disabled'] : '';
|
231 |
+
$input .= '<input class="' . esc_attr( $class ) . '" name="' . esc_attr( $opts['name'] ) . '" id="' . esc_attr( $opts['name'] ) . '" type="checkbox" ' . esc_attr( $opts['checked'] ) . ' value="' . esc_attr( $opts['value'] ) . '" ' . esc_attr( $disabled ) . ' />';
|
232 |
+
break;
|
233 |
+
case 'select':
|
234 |
+
$input .= '<select class="form-control" name="' . esc_attr( $opts['name'] ) . '" id="' . esc_attr( $opts['name'] ) . '">';
|
235 |
+
|
236 |
+
// Add all options.
|
237 |
+
foreach ( $opts['options'] as $key => $value ) {
|
238 |
+
$selected = (string) $value === $opts['selected'] ? 'selected="selected"' : '';
|
239 |
+
$input .= '<option value="' . esc_attr( $value ) . '" ' . esc_attr( $selected ) . '>' . esc_html( $key ) . '</option>';
|
240 |
+
}
|
241 |
+
|
242 |
+
$input .= '</select>';
|
243 |
+
break;
|
244 |
+
} // End switch().
|
245 |
+
|
246 |
+
// Close input div.
|
247 |
+
$input .= '</div>';
|
248 |
+
|
249 |
+
// If we're including the form group div.
|
250 |
+
if ( $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
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Class Plugin_Base
|
4 |
+
*
|
5 |
+
* @package SimpleShareButtonsAdder
|
6 |
+
*/
|
7 |
+
|
8 |
+
namespace SimpleShareButtonsAdder;
|
9 |
+
|
10 |
+
/**
|
11 |
+
* Class Plugin_Base
|
12 |
+
*
|
13 |
+
* @package SimpleShareButtonsAdder
|
14 |
+
*/
|
15 |
+
abstract class Plugin_Base {
|
16 |
+
|
17 |
+
/**
|
18 |
+
* Plugin config.
|
19 |
+
*
|
20 |
+
* @var array
|
21 |
+
*/
|
22 |
+
public $config = array();
|
23 |
+
|
24 |
+
/**
|
25 |
+
* Plugin slug.
|
26 |
+
*
|
27 |
+
* @var string
|
28 |
+
*/
|
29 |
+
public $slug;
|
30 |
+
|
31 |
+
/**
|
32 |
+
* Plugin directory path.
|
33 |
+
*
|
34 |
+
* @var string
|
35 |
+
*/
|
36 |
+
public $dir_path;
|
37 |
+
|
38 |
+
/**
|
39 |
+
* Plugin directory URL.
|
40 |
+
*
|
41 |
+
* @var string
|
42 |
+
*/
|
43 |
+
public $dir_url;
|
44 |
+
|
45 |
+
/**
|
46 |
+
* Directory in plugin containing autoloaded classes.
|
47 |
+
*
|
48 |
+
* @var string
|
49 |
+
*/
|
50 |
+
protected $autoload_class_dir = 'php';
|
51 |
+
|
52 |
+
/**
|
53 |
+
* Autoload matches cache.
|
54 |
+
*
|
55 |
+
* @var array
|
56 |
+
*/
|
57 |
+
protected $autoload_matches_cache = array();
|
58 |
+
|
59 |
+
/**
|
60 |
+
* Required instead of a static variable inside the add_doc_hooks method
|
61 |
+
* for the sake of unit testing.
|
62 |
+
*
|
63 |
+
* @var array
|
64 |
+
*/
|
65 |
+
protected $_called_doc_hooks = array();
|
66 |
+
|
67 |
+
/**
|
68 |
+
* Plugin_Base constructor.
|
69 |
+
*/
|
70 |
+
public function __construct() {
|
71 |
+
$location = $this->locate_plugin();
|
72 |
+
$this->slug = $location['dir_basename'];
|
73 |
+
$this->dir_path = $location['dir_path'];
|
74 |
+
$this->dir_url = $location['dir_url'];
|
75 |
+
|
76 |
+
spl_autoload_register( array( $this, 'autoload' ) );
|
77 |
+
$this->add_doc_hooks();
|
78 |
+
}
|
79 |
+
|
80 |
+
/**
|
81 |
+
* Plugin_Base destructor.
|
82 |
+
*/
|
83 |
+
function __destruct() {
|
84 |
+
$this->remove_doc_hooks();
|
85 |
+
}
|
86 |
+
|
87 |
+
/**
|
88 |
+
* Get reflection object for this class.
|
89 |
+
*
|
90 |
+
* @return \ReflectionObject
|
91 |
+
*/
|
92 |
+
public function get_object_reflection() {
|
93 |
+
static $reflection;
|
94 |
+
|
95 |
+
if ( empty( $reflection ) ) {
|
96 |
+
$reflection = new \ReflectionObject( $this );
|
97 |
+
}
|
98 |
+
|
99 |
+
return $reflection;
|
100 |
+
}
|
101 |
+
|
102 |
+
/**
|
103 |
+
* Autoload for classes that are in the same namespace as $this.
|
104 |
+
*
|
105 |
+
* @param string $class Class name.
|
106 |
+
* @return void
|
107 |
+
*/
|
108 |
+
public function autoload( $class ) {
|
109 |
+
if ( ! isset( $this->autoload_matches_cache[ $class ] ) ) {
|
110 |
+
if ( ! preg_match( '/^(?P<namespace>.+)\\\\(?P<class>[^\\\\]+)$/', $class, $matches ) ) {
|
111 |
+
$matches = false;
|
112 |
+
}
|
113 |
+
|
114 |
+
$this->autoload_matches_cache[ $class ] = $matches;
|
115 |
+
} else {
|
116 |
+
$matches = $this->autoload_matches_cache[ $class ];
|
117 |
+
}
|
118 |
+
|
119 |
+
if ( empty( $matches ) ) {
|
120 |
+
return;
|
121 |
+
}
|
122 |
+
|
123 |
+
if ( $this->get_object_reflection()->getNamespaceName() !== $matches['namespace'] ) {
|
124 |
+
return;
|
125 |
+
}
|
126 |
+
|
127 |
+
$class_name = $matches['class'];
|
128 |
+
$class_path = \trailingslashit( $this->dir_path );
|
129 |
+
|
130 |
+
if ( $this->autoload_class_dir ) {
|
131 |
+
$class_path .= \trailingslashit( $this->autoload_class_dir );
|
132 |
+
}
|
133 |
+
|
134 |
+
$class_path .= sprintf( 'class-%s.php', strtolower( str_replace( '_', '-', $class_name ) ) );
|
135 |
+
|
136 |
+
if ( is_readable( $class_path ) ) {
|
137 |
+
require_once $class_path;
|
138 |
+
}
|
139 |
+
}
|
140 |
+
|
141 |
+
/**
|
142 |
+
* Version of plugin_dir_url() which works for plugins installed in the plugins directory,
|
143 |
+
* and for plugins bundled with themes.
|
144 |
+
*
|
145 |
+
* @throws \Exception If the plugin is not located in the expected location.
|
146 |
+
* @return array
|
147 |
+
*/
|
148 |
+
public function locate_plugin() {
|
149 |
+
$file_name = $this->get_object_reflection()->getFileName();
|
150 |
+
|
151 |
+
if ( '/' !== \DIRECTORY_SEPARATOR ) {
|
152 |
+
$file_name = str_replace( \DIRECTORY_SEPARATOR, '/', $file_name ); // Windows compat.
|
153 |
+
}
|
154 |
+
|
155 |
+
$plugin_dir = preg_replace( '#(.*plugins[^/]*/[^/]+)(/.*)?#', '$1', $file_name, 1, $count );
|
156 |
+
|
157 |
+
if ( 0 === $count ) {
|
158 |
+
throw new \Exception( "Class not located within a directory tree containing 'plugins': $file_name" );
|
159 |
+
}
|
160 |
+
|
161 |
+
// Make sure that we can reliably get the relative path inside of the content directory.
|
162 |
+
$plugin_path = $this->relative_path( $plugin_dir, 'wp-content', \DIRECTORY_SEPARATOR );
|
163 |
+
|
164 |
+
if ( '' === $plugin_path ) {
|
165 |
+
throw new \Exception( 'Plugin dir is not inside of the `wp-content` directory' );
|
166 |
+
}
|
167 |
+
|
168 |
+
$dir_url = content_url( trailingslashit( $plugin_path ) );
|
169 |
+
$dir_path = $plugin_dir;
|
170 |
+
$dir_basename = basename( $plugin_dir );
|
171 |
+
|
172 |
+
return compact( 'dir_url', 'dir_path', 'dir_basename' );
|
173 |
+
}
|
174 |
+
|
175 |
+
/**
|
176 |
+
* Relative Path
|
177 |
+
*
|
178 |
+
* Returns a relative path from a specified starting position of a full path
|
179 |
+
*
|
180 |
+
* @param string $path The full path to start with.
|
181 |
+
* @param string $start The directory after which to start creating the relative path.
|
182 |
+
* @param string $sep The directory seperator.
|
183 |
+
*
|
184 |
+
* @return string
|
185 |
+
*/
|
186 |
+
public function relative_path( $path, $start, $sep ) {
|
187 |
+
$path = explode( $sep, untrailingslashit( $path ) );
|
188 |
+
|
189 |
+
if ( count( $path ) > 0 ) {
|
190 |
+
foreach ( $path as $p ) {
|
191 |
+
array_shift( $path );
|
192 |
+
|
193 |
+
if ( $p === $start ) {
|
194 |
+
break;
|
195 |
+
}
|
196 |
+
}
|
197 |
+
}
|
198 |
+
|
199 |
+
return implode( $sep, $path );
|
200 |
+
}
|
201 |
+
|
202 |
+
/**
|
203 |
+
* Hooks a function on to a specific filter.
|
204 |
+
*
|
205 |
+
* @param string $name The hook name.
|
206 |
+
* @param array $callback The class object and method.
|
207 |
+
* @param array $args An array with priority and arg_count.
|
208 |
+
*
|
209 |
+
* @return mixed
|
210 |
+
*/
|
211 |
+
public function add_filter( $name, $callback, $args = array() ) {
|
212 |
+
// Merge defaults.
|
213 |
+
$args = array_merge( array(
|
214 |
+
'priority' => 10,
|
215 |
+
'arg_count' => PHP_INT_MAX,
|
216 |
+
), $args );
|
217 |
+
|
218 |
+
return $this->_add_hook( 'filter', $name, $callback, $args );
|
219 |
+
}
|
220 |
+
|
221 |
+
/**
|
222 |
+
* Hooks a function on to a specific shortcode.
|
223 |
+
*
|
224 |
+
* @param string $name The shortcode name.
|
225 |
+
* @param array $callback The class object and method.
|
226 |
+
*
|
227 |
+
* @return mixed
|
228 |
+
*/
|
229 |
+
public function add_shortcode( $name, $callback ) {
|
230 |
+
return $this->_add_hook( 'shortcode', $name, $callback );
|
231 |
+
}
|
232 |
+
|
233 |
+
/**
|
234 |
+
* Hooks a function on to a specific action.
|
235 |
+
*
|
236 |
+
* @param string $name The hook name.
|
237 |
+
* @param array $callback The class object and method.
|
238 |
+
* @param array $args An array with priority and arg_count.
|
239 |
+
*
|
240 |
+
* @return mixed
|
241 |
+
*/
|
242 |
+
public function add_action( $name, $callback, $args = array() ) {
|
243 |
+
// Merge defaults.
|
244 |
+
$args = array_merge( array(
|
245 |
+
'priority' => 10,
|
246 |
+
'arg_count' => PHP_INT_MAX,
|
247 |
+
), $args );
|
248 |
+
|
249 |
+
return $this->_add_hook( 'action', $name, $callback, $args );
|
250 |
+
}
|
251 |
+
|
252 |
+
/**
|
253 |
+
* Hooks a function on to a specific action/filter.
|
254 |
+
*
|
255 |
+
* @param string $type The hook type. Options are action/filter.
|
256 |
+
* @param string $name The hook name.
|
257 |
+
* @param array $callback The class object and method.
|
258 |
+
* @param array $args An array with priority and arg_count.
|
259 |
+
*
|
260 |
+
* @return mixed
|
261 |
+
*/
|
262 |
+
protected function _add_hook( $type, $name, $callback, $args = array() ) {
|
263 |
+
$priority = isset( $args['priority'] ) ? $args['priority'] : 10;
|
264 |
+
$arg_count = isset( $args['arg_count'] ) ? $args['arg_count'] : PHP_INT_MAX;
|
265 |
+
$fn = sprintf( '\add_%s', $type );
|
266 |
+
$retval = \call_user_func( $fn, $name, $callback, $priority, $arg_count );
|
267 |
+
|
268 |
+
return $retval;
|
269 |
+
}
|
270 |
+
|
271 |
+
/**
|
272 |
+
* Add actions/filters/shortcodes from the methods of a class based on DocBlocks.
|
273 |
+
*
|
274 |
+
* @param object $object The class object.
|
275 |
+
*/
|
276 |
+
public function add_doc_hooks( $object = null ) {
|
277 |
+
if ( is_null( $object ) ) {
|
278 |
+
$object = $this;
|
279 |
+
}
|
280 |
+
$class_name = get_class( $object );
|
281 |
+
if ( isset( $this->_called_doc_hooks[ $class_name ] ) ) {
|
282 |
+
$notice = sprintf( 'The add_doc_hooks method was already called on %s. Note that the Plugin_Base constructor automatically calls this method.', $class_name );
|
283 |
+
// @codingStandardsIgnoreStart
|
284 |
+
trigger_error( esc_html( $notice ), \E_USER_NOTICE );
|
285 |
+
// @codingStandardsIgnoreEnd
|
286 |
+
return;
|
287 |
+
}
|
288 |
+
$this->_called_doc_hooks[ $class_name ] = true;
|
289 |
+
$reflector = new \ReflectionObject( $object );
|
290 |
+
foreach ( $reflector->getMethods() as $method ) {
|
291 |
+
$doc = $method->getDocComment();
|
292 |
+
$arg_count = $method->getNumberOfParameters();
|
293 |
+
if ( preg_match_all( '#\* @(?P<type>filter|action|shortcode)\s+(?P<name>[a-z0-9\-\._]+)(?:,\s+(?P<priority>\d+))?#', $doc, $matches, PREG_SET_ORDER ) ) {
|
294 |
+
foreach ( $matches as $match ) {
|
295 |
+
$type = $match['type'];
|
296 |
+
$name = $match['name'];
|
297 |
+
$priority = empty( $match['priority'] ) ? 10 : intval( $match['priority'] );
|
298 |
+
$callback = array( $object, $method->getName() );
|
299 |
+
call_user_func( array( $this, "add_{$type}" ), $name, $callback, compact( 'priority', 'arg_count' ) );
|
300 |
+
}
|
301 |
+
}
|
302 |
+
}
|
303 |
+
}
|
304 |
+
|
305 |
+
/**
|
306 |
+
* Removes the added DocBlock hooks.
|
307 |
+
*
|
308 |
+
* @param object $object The class object.
|
309 |
+
*/
|
310 |
+
public function remove_doc_hooks( $object = null ) {
|
311 |
+
if ( is_null( $object ) ) {
|
312 |
+
$object = $this;
|
313 |
+
}
|
314 |
+
$class_name = get_class( $object );
|
315 |
+
$reflector = new \ReflectionObject( $object );
|
316 |
+
foreach ( $reflector->getMethods() as $method ) {
|
317 |
+
$doc = $method->getDocComment();
|
318 |
+
if ( preg_match_all( '#\* @(?P<type>filter|action|shortcode)\s+(?P<name>[a-z0-9\-\._]+)(?:,\s+(?P<priority>\d+))?#', $doc, $matches, PREG_SET_ORDER ) ) {
|
319 |
+
foreach ( $matches as $match ) {
|
320 |
+
$type = $match['type'];
|
321 |
+
$name = $match['name'];
|
322 |
+
$priority = empty( $match['priority'] ) ? 10 : intval( $match['priority'] );
|
323 |
+
$callback = array( $object, $method->getName() );
|
324 |
+
call_user_func( "remove_{$type}", $name, $callback, $priority );
|
325 |
+
}
|
326 |
+
}
|
327 |
+
}
|
328 |
+
unset( $this->_called_doc_hooks[ $class_name ] );
|
329 |
+
}
|
330 |
+
}
|
php/class-plugin.php
ADDED
@@ -0,0 +1,82 @@
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Bootstraps the Simple Share Buttons Adder plugin.
|
4 |
+
*
|
5 |
+
* @package SimpleShareButtonsAdder
|
6 |
+
*/
|
7 |
+
|
8 |
+
namespace SimpleShareButtonsAdder;
|
9 |
+
|
10 |
+
/**
|
11 |
+
* Main plugin bootstrap file.
|
12 |
+
*/
|
13 |
+
class Plugin extends Plugin_Base {
|
14 |
+
|
15 |
+
/**
|
16 |
+
* Plugin constructor.
|
17 |
+
*/
|
18 |
+
public function __construct() {
|
19 |
+
parent::__construct();
|
20 |
+
|
21 |
+
// Define some prefixes to use througout the plugin.
|
22 |
+
$this->assets_prefix = strtolower( preg_replace( '/\B([A-Z])/', '-$1', __NAMESPACE__ ) );
|
23 |
+
$this->meta_prefix = strtolower( preg_replace( '/\B([A-Z])/', '_$1', __NAMESPACE__ ) );
|
24 |
+
|
25 |
+
// Globals.
|
26 |
+
$class_ssba = new Simple_Share_Buttons_Adder( $this );
|
27 |
+
$database = new Database( $this, $class_ssba );
|
28 |
+
$forms = new Forms( $this );
|
29 |
+
$admin_panel = new Admin_Panel( $this, $class_ssba, $forms );
|
30 |
+
|
31 |
+
// Initiate classes.
|
32 |
+
$classes = array(
|
33 |
+
$class_ssba,
|
34 |
+
$database,
|
35 |
+
$admin_panel,
|
36 |
+
$forms,
|
37 |
+
new Styles( $this, $class_ssba ),
|
38 |
+
new Admin_Bits( $this, $class_ssba, $database, $admin_panel ),
|
39 |
+
new Buttons( $this, $class_ssba ),
|
40 |
+
new Widget(),
|
41 |
+
|
42 |
+
);
|
43 |
+
|
44 |
+
// Add classes doc hooks.
|
45 |
+
foreach ( $classes as $instance ) {
|
46 |
+
$this->add_doc_hooks( $instance );
|
47 |
+
}
|
48 |
+
}
|
49 |
+
|
50 |
+
/**
|
51 |
+
* Register assets.
|
52 |
+
*
|
53 |
+
* @action wp_enqueue_scripts
|
54 |
+
*/
|
55 |
+
public function register_assets() {
|
56 |
+
wp_register_script( "{$this->assets_prefix}-ssba", "{$this->dir_url}js/ssba.js", array( 'jquery' ), false, true );
|
57 |
+
wp_register_style( "{$this->assets_prefix}-indie", '//fonts.googleapis.com/css?family=Indie+Flower' );
|
58 |
+
wp_register_style( "{$this->assets_prefix}-reenie", '//fonts.googleapis.com/css?family=Reenie+Beanie' );
|
59 |
+
wp_register_style( "{$this->assets_prefix}-ssba", "{$this->dir_url}css/ssba.css", false );
|
60 |
+
}
|
61 |
+
|
62 |
+
/**
|
63 |
+
* Register admin scripts/styles.
|
64 |
+
*
|
65 |
+
* @action admin_enqueue_scripts
|
66 |
+
*/
|
67 |
+
public function register_admin_assets() {
|
68 |
+
wp_register_script( "{$this->assets_prefix}-admin", "{$this->dir_url}js/admin.js", array( 'jquery', 'wp-util' ) );
|
69 |
+
wp_register_script( "{$this->assets_prefix}-bootstrap-js", "{$this->dir_url}js/vendor/bootstrap.js" );
|
70 |
+
wp_register_script( "{$this->assets_prefix}-colorpicker", "{$this->dir_url}js/vendor/colorpicker.js" );
|
71 |
+
wp_register_script( "{$this->assets_prefix}-switch", "{$this->dir_url}js/vendor/switch.js" );
|
72 |
+
wp_register_style( "{$this->assets_prefix}-admin", "{$this->dir_url}css/admin.css", false );
|
73 |
+
wp_register_style( "{$this->assets_prefix}-readable", "{$this->dir_url}css/readable.css" );
|
74 |
+
wp_register_style( "{$this->assets_prefix}-colorpicker", "{$this->dir_url}css/colorpicker.css" );
|
75 |
+
wp_register_style( "{$this->assets_prefix}-switch","{$this->dir_url}css/switch.css" );
|
76 |
+
wp_register_style( "{$this->assets_prefix}-admin-theme", "{$this->dir_url}css/admin-theme.css", "{$this->assets_prefix}-font-awesome" );
|
77 |
+
wp_register_style( "{$this->assets_prefix}-font-awesome", '//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css', false );
|
78 |
+
wp_register_style( "{$this->assets_prefix}-styles", "{$this->dir_url}css/style.css" );
|
79 |
+
wp_register_style( "{$this->assets_prefix}-indie", '//fonts.googleapis.com/css?family=Indie+Flower' );
|
80 |
+
wp_register_style( "{$this->assets_prefix}-reenie", '//fonts.googleapis.com/css?family=Reenie+Beanie' );
|
81 |
+
}
|
82 |
+
}
|
php/class-simple-share-buttons-adder.php
ADDED
@@ -0,0 +1,89 @@
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Simple_Share_Buttons_Adder
|
4 |
+
*
|
5 |
+
* @package SimpleShareButtonsAdder
|
6 |
+
*/
|
7 |
+
|
8 |
+
namespace SimpleShareButtonsAdder;
|
9 |
+
|
10 |
+
/**
|
11 |
+
* Simple Share Buttons Adder Class
|
12 |
+
*
|
13 |
+
* @package SimpleShareButtonsAdder
|
14 |
+
*/
|
15 |
+
class Simple_Share_Buttons_Adder {
|
16 |
+
|
17 |
+
/**
|
18 |
+
* Plugin instance.
|
19 |
+
*
|
20 |
+
* @var object
|
21 |
+
*/
|
22 |
+
public $plugin;
|
23 |
+
|
24 |
+
/**
|
25 |
+
* Class constructor.
|
26 |
+
*
|
27 |
+
* @param object $plugin Plugin class.
|
28 |
+
*/
|
29 |
+
public function __construct( $plugin ) {
|
30 |
+
$this->plugin = $plugin;
|
31 |
+
}
|
32 |
+
|
33 |
+
/**
|
34 |
+
* Get the SSBA option settings.
|
35 |
+
*
|
36 |
+
* @action init
|
37 |
+
* @return array
|
38 |
+
*/
|
39 |
+
public function get_ssba_settings() {
|
40 |
+
$json_settings = get_option( 'ssba_settings' );
|
41 |
+
|
42 |
+
// Decode and return settings.
|
43 |
+
return json_decode( $json_settings, true );
|
44 |
+
}
|
45 |
+
|
46 |
+
/**
|
47 |
+
* Update an array of options.
|
48 |
+
*
|
49 |
+
* @param array $arr_options The options array.
|
50 |
+
*/
|
51 |
+
public function ssba_update_options( $arr_options ) {
|
52 |
+
// If not given an array.
|
53 |
+
if ( ! is_array( $arr_options ) ) {
|
54 |
+
die( esc_html__( 'Value parsed not an array', 'simple-share-buttons-adder' ) );
|
55 |
+
}
|
56 |
+
|
57 |
+
// Get ssba settings.
|
58 |
+
$json_settings = get_option( 'ssba_settings' );
|
59 |
+
|
60 |
+
// Decode the settings.
|
61 |
+
$ssba_settings = json_decode( $json_settings, true );
|
62 |
+
|
63 |
+
// Loop through array given.
|
64 |
+
foreach ( $arr_options as $name => $value ) {
|
65 |
+
// Update/add the option in the array.
|
66 |
+
$ssba_settings[ $name ] = $value;
|
67 |
+
}
|
68 |
+
|
69 |
+
// Encode the options ready to save back.
|
70 |
+
$json_settings = wp_json_encode( $ssba_settings );
|
71 |
+
|
72 |
+
// Update the option in the db.
|
73 |
+
update_option( 'ssba_settings', $json_settings );
|
74 |
+
}
|
75 |
+
|
76 |
+
/**
|
77 |
+
* Add setting link to plugin page.
|
78 |
+
*
|
79 |
+
* @param $links
|
80 |
+
*
|
81 |
+
* @return mixed
|
82 |
+
*/
|
83 |
+
public function add_action_links( $links ) {
|
84 |
+
$mylinks = array(
|
85 |
+
'<a href="' . admin_url( 'options-general.php?page=simple-share-buttons-adder' ) . '">Settings</a>',
|
86 |
+
);
|
87 |
+
return array_merge( $links, $mylinks );
|
88 |
+
}
|
89 |
+
}
|
php/class-styles.php
ADDED
@@ -0,0 +1,275 @@
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|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â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Styles.
|
4 |
+
*
|
5 |
+
* @package SimpleShareButtonsAdder
|
6 |
+
*/
|
7 |
+
|
8 |
+
namespace SimpleShareButtonsAdder;
|
9 |
+
|
10 |
+
/**
|
11 |
+
* Styles Class
|
12 |
+
*
|
13 |
+
* @package SimpleShareButtonsAdder
|
14 |
+
*/
|
15 |
+
class Styles {
|
16 |
+
|
17 |
+
/**
|
18 |
+
* Plugin instance.
|
19 |
+
*
|
20 |
+
* @var object
|
21 |
+
*/
|
22 |
+
public $plugin;
|
23 |
+
|
24 |
+
/**
|
25 |
+
* Simple Share Buttons Adder instance.
|
26 |
+
*
|
27 |
+
* @var object
|
28 |
+
*/
|
29 |
+
public $class_ssba;
|
30 |
+
|
31 |
+
/**
|
32 |
+
* Class constructor.
|
33 |
+
*
|
34 |
+
* @param object $plugin Plugin class.
|
35 |
+
* @param object $class_ssba Simple Share Buttons Adder class.
|
36 |
+
*/
|
37 |
+
public function __construct( $plugin, $class_ssba ) {
|
38 |
+
$this->plugin = $plugin;
|
39 |
+
$this->class_ssba = $class_ssba;
|
40 |
+
}
|
41 |
+
|
42 |
+
/**
|
43 |
+
* Add css scripts for page/post use.
|
44 |
+
*
|
45 |
+
* @action wp_enqueue_scripts
|
46 |
+
*/
|
47 |
+
public function ssba_page_scripts() {
|
48 |
+
// Get settings.
|
49 |
+
$arr_settings = $this->class_ssba->get_ssba_settings();
|
50 |
+
|
51 |
+
if ( is_ssl() ) {
|
52 |
+
$st_insights = 'https://ws.sharethis.com/button/st_insights.js';
|
53 |
+
} else {
|
54 |
+
$st_insights = 'http://w.sharethis.com/button/st_insights.js';
|
55 |
+
}
|
56 |
+
|
57 |
+
// Add call to st_insights.js with params.
|
58 |
+
$url = add_query_arg( array(
|
59 |
+
'publisher' => '4d48b7c5-0ae3-43d4-bfbe-3ff8c17a8ae6',
|
60 |
+
'product' => 'simpleshare',
|
61 |
+
), $st_insights );
|
62 |
+
|
63 |
+
if ( 'Y' === $arr_settings['accepted_sharethis_terms'] ) {
|
64 |
+
wp_enqueue_script( 'ssba-sharethis', $url, null, null );
|
65 |
+
add_filter( 'script_loader_tag', array( $this, 'ssba_script_tags' ), 10, 2 );
|
66 |
+
}
|
67 |
+
|
68 |
+
// Enqueue main script.
|
69 |
+
wp_enqueue_script( "{$this->plugin->assets_prefix}-ssba" );
|
70 |
+
wp_add_inline_script( "{$this->plugin->assets_prefix}-ssba", sprintf( 'Main.boot( %s );',
|
71 |
+
wp_json_encode( array() )
|
72 |
+
) );
|
73 |
+
|
74 |
+
// If indie flower font is selected.
|
75 |
+
if ( 'Indie Flower' === $arr_settings['ssba_font_family'] ) {
|
76 |
+
// Font scripts.
|
77 |
+
wp_enqueue_style( "{$this->plugin->assets_prefix}-indie" );
|
78 |
+
} elseif ( 'Reenie Beanie' === $arr_settings['ssba_font_family'] ) {
|
79 |
+
// Font scripts.
|
80 |
+
wp_enqueue_style( "{$this->plugin->assets_prefix}-reenie" );
|
81 |
+
}
|
82 |
+
}
|
83 |
+
|
84 |
+
/**
|
85 |
+
* Adds ID to sharethis script.
|
86 |
+
*
|
87 |
+
* @param string $tag HTML script tag.
|
88 |
+
* @param string $handle Script handle.
|
89 |
+
*
|
90 |
+
* @return string
|
91 |
+
*/
|
92 |
+
public function ssba_script_tags( $tag, $handle ) {
|
93 |
+
if ( 'ssba-sharethis' === $handle ) {
|
94 |
+
return str_replace( '<script ', '<script id=\'st_insights_js\' ', $tag );
|
95 |
+
}
|
96 |
+
|
97 |
+
return $tag;
|
98 |
+
}
|
99 |
+
|
100 |
+
/**
|
101 |
+
* Generate style.
|
102 |
+
*
|
103 |
+
* @action wp_enqueue_scripts
|
104 |
+
*/
|
105 |
+
public function get_ssba_style() {
|
106 |
+
// Query the db for current ssba settings.
|
107 |
+
$arr_settings = $this->class_ssba->get_ssba_settings();
|
108 |
+
|
109 |
+
// If the sharethis terms have been accepted.
|
110 |
+
if ( 'Y' === $arr_settings['accepted_sharethis_terms'] ) {
|
111 |
+
// if a facebook app id has been set
|
112 |
+
if ( '' !== $arr_settings['facebook_app_id'] ) {
|
113 |
+
$src = '//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.6&appID=' . $arr_settings['facebook_app_id'];
|
114 |
+
} else {
|
115 |
+
$src = '//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.6';
|
116 |
+
}
|
117 |
+
|
118 |
+
// If an app id has been entered.
|
119 |
+
if ( '' !== $arr_settings['facebook_app_id'] ) {
|
120 |
+
// Init facebook.
|
121 |
+
echo "<script>window.fbAsyncInit = function() {
|
122 |
+
FB.init({
|
123 |
+
appId : '" . $arr_settings['facebook_app_id'] . "',
|
124 |
+
xfbml : true,
|
125 |
+
version : 'v2.6'
|
126 |
+
});
|
127 |
+
};</script>";
|
128 |
+
}
|
129 |
+
|
130 |
+
// Include facebook js sdk.
|
131 |
+
echo '<script>(function(d, s, id){
|
132 |
+
var js, fjs = d.getElementsByTagName(s)[0];
|
133 |
+
if (d.getElementById(id)) {return;}
|
134 |
+
js = d.createElement(s); js.id = id;
|
135 |
+
js.src = "' . $src . '";
|
136 |
+
fjs.parentNode.insertBefore(js, fjs);
|
137 |
+
}(document, \'script\', \'facebook-jssdk\'));</script>';
|
138 |
+
|
139 |
+
// If an app id has been entered.
|
140 |
+
if ( '' !== $arr_settings['facebook_app_id'] ) {
|
141 |
+
// If facebook insights have been enabled.
|
142 |
+
if ( 'Y' === $arr_settings['facebook_insights'] ) {
|
143 |
+
// Add facebook meta tag.
|
144 |
+
echo '<meta property="fb:app_id" content="' . esc_attr( $arr_settings['facebook_app_id'] ) . '" />';
|
145 |
+
}
|
146 |
+
}
|
147 |
+
} // End if().
|
148 |
+
|
149 |
+
// Check if custom styles haven't been set.
|
150 |
+
if ( 'Y' !== $arr_settings['ssba_custom_styles_enabled'] ) {
|
151 |
+
$div_padding = '' !== $arr_settings['ssba_div_padding'] ? 'padding: ' . $arr_settings['ssba_div_padding'] . 'px;' : '';
|
152 |
+
$border_width = '' !== $arr_settings['ssba_border_width'] ? 'border: ' . $arr_settings['ssba_border_width'] . 'px solid ' . $arr_settings['ssba_div_border'] . ';' : '';
|
153 |
+
$div_background1 = '' !== $arr_settings['ssba_div_background'] ? 'background-color: ' . $arr_settings['ssba_div_background'] . ';' : '';
|
154 |
+
$rounded = 'Y' === $arr_settings['ssba_div_rounded_corners'] ? '-moz-border-radius: 10px; -webkit-border-radius: 10px; -khtml-border-radius: 10px; border-radius: 10px; -o-border-radius: 10px;' : '';
|
155 |
+
$div_background2 = '' === $arr_settings['ssba_div_background'] ? 'background: none;' : '';
|
156 |
+
$font = '' !== $arr_settings['ssba_font_family'] ? 'font-family: ' . $arr_settings['ssba_font_family'] . ';' : '';
|
157 |
+
$font_size = '' !== $arr_settings['ssba_font_size'] ? 'font-size: ' . $arr_settings['ssba_font_size'] . 'px;' : '';
|
158 |
+
$font_color = '' !== $arr_settings['ssba_font_color'] ? 'color: ' . $arr_settings['ssba_font_color'] . '!important;' : '';
|
159 |
+
$font_weight = '' !== $arr_settings['ssba_font_weight'] ? 'font-weight: ' . $arr_settings['ssba_font_weight'] . ';' : '';
|
160 |
+
|
161 |
+
// Use set options.
|
162 |
+
$html_ssba_style = ' .ssba {
|
163 |
+
' . esc_html( $div_padding ) . '
|
164 |
+
' . esc_html( $border_width ) . '
|
165 |
+
' . esc_html( $div_background1 ) . '
|
166 |
+
' . esc_html( $rounded ) . '
|
167 |
+
}
|
168 |
+
.ssba img
|
169 |
+
{
|
170 |
+
width: ' . esc_html( $arr_settings['ssba_size'] ) . 'px !important;
|
171 |
+
padding: ' . esc_html( $arr_settings['ssba_padding'] ) . 'px;
|
172 |
+
border: 0;
|
173 |
+
box-shadow: none !important;
|
174 |
+
display: inline !important;
|
175 |
+
vertical-align: middle;
|
176 |
+
box-sizing: unset;
|
177 |
+
}
|
178 |
+
|
179 |
+
.ssba .fb-save
|
180 |
+
{
|
181 |
+
padding: ' . esc_html( $arr_settings['ssba_padding'] ) . 'px;
|
182 |
+
line-height: ' . esc_html( (int) $arr_settings['ssba_size'] - 5 ) . 'px;
|
183 |
+
}
|
184 |
+
.ssba, .ssba a
|
185 |
+
{
|
186 |
+
text-decoration:none;
|
187 |
+
' . esc_html( $div_background2 ) . '
|
188 |
+
' . esc_html( $font ) . '
|
189 |
+
' . esc_html( $font_size ) . '
|
190 |
+
' . esc_html( $font_color ) . '
|
191 |
+
' . esc_html( $font_weight ) . '
|
192 |
+
}
|
193 |
+
';
|
194 |
+
|
195 |
+
// If counters option is set to Y.
|
196 |
+
if ( 'Y' === $arr_settings['ssba_show_share_count'] ) {
|
197 |
+
// Styles that apply to all counter css sets.
|
198 |
+
$html_ssba_style .= '.ssba_sharecount:after, .ssba_sharecount:before {
|
199 |
+
right: 100%;
|
200 |
+
border: solid transparent;
|
201 |
+
content: " ";
|
202 |
+
height: 0;
|
203 |
+
width: 0;
|
204 |
+
position: absolute;
|
205 |
+
pointer-events: none;
|
206 |
+
}
|
207 |
+
.ssba_sharecount:after {
|
208 |
+
border-color: rgba(224, 221, 221, 0);
|
209 |
+
border-right-color: #f5f5f5;
|
210 |
+
border-width: 5px;
|
211 |
+
top: 50%;
|
212 |
+
margin-top: -5px;
|
213 |
+
}
|
214 |
+
.ssba_sharecount:before {
|
215 |
+
border-color: rgba(85, 94, 88, 0);
|
216 |
+
border-right-color: #e0dddd;
|
217 |
+
border-width: 6px;
|
218 |
+
top: 50%;
|
219 |
+
margin-top: -6px;
|
220 |
+
}
|
221 |
+
.ssba_sharecount {
|
222 |
+
font: 11px Arial, Helvetica, sans-serif;
|
223 |
+
|
224 |
+
padding: 5px;
|
225 |
+
-khtml-border-radius: 6px;
|
226 |
+
-o-border-radius: 6px;
|
227 |
+
-webkit-border-radius: 6px;
|
228 |
+
-moz-border-radius: 6px;
|
229 |
+
border-radius: 6px;
|
230 |
+
position: relative;
|
231 |
+
border: 1px solid #e0dddd;';
|
232 |
+
|
233 |
+
// If default counter style has been chosen.
|
234 |
+
if ( 'default' === $arr_settings['ssba_share_count_style'] ) {
|
235 |
+
// Style share count.
|
236 |
+
$html_ssba_style .= 'color: #555e58;
|
237 |
+
background: #f5f5f5;
|
238 |
+
}
|
239 |
+
.ssba_sharecount:after {
|
240 |
+
border-right-color: #f5f5f5;
|
241 |
+
}';
|
242 |
+
|
243 |
+
} elseif ( 'white' === $arr_settings['ssba_share_count_style'] ) {
|
244 |
+
// Show white style share counts.
|
245 |
+
$html_ssba_style .= 'color: #555e58;
|
246 |
+
background: #ffffff;
|
247 |
+
}
|
248 |
+
.ssba_sharecount:after {
|
249 |
+
border-right-color: #ffffff;
|
250 |
+
}';
|
251 |
+
|
252 |
+
} elseif ( 'blue' === $arr_settings['ssba_share_count_style'] ) {
|
253 |
+
// Show blue style share counts.
|
254 |
+
$html_ssba_style .= 'color: #ffffff;
|
255 |
+
background: #42a7e2;
|
256 |
+
}
|
257 |
+
.ssba_sharecount:after {
|
258 |
+
border-right-color: #42a7e2;
|
259 |
+
}';
|
260 |
+
}
|
261 |
+
} // End if().
|
262 |
+
|
263 |
+
// If there's any additional css.
|
264 |
+
if ( '' !== $arr_settings['ssba_additional_css'] ) {
|
265 |
+
// Add the additional CSS.
|
266 |
+
$html_ssba_style .= $arr_settings['ssba_additional_css'];
|
267 |
+
}
|
268 |
+
} else { // Else use set options.
|
269 |
+
// Use custom styles.
|
270 |
+
$html_ssba_style .= $arr_settings['ssba_custom_styles'];
|
271 |
+
} // End if().
|
272 |
+
|
273 |
+
wp_add_inline_style( "{$this->plugin->assets_prefix}-ssba", $html_ssba_style ); // WPCS: XSS ok.
|
274 |
+
}
|
275 |
+
}
|
php/class-widget.php
ADDED
@@ -0,0 +1,125 @@
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
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+
|
17 |
+
/**
|
18 |
+
* Class constructor.
|
19 |
+
*/
|
20 |
+
public function __construct() {
|
21 |
+
parent::__construct(
|
22 |
+
'ssba_widget', // Base ID.
|
23 |
+
'Share Buttons', // Name.
|
24 |
+
array(
|
25 |
+
'description' => __( 'Simple Share Buttons Adder', 'text_domain' ),
|
26 |
+
)
|
27 |
+
);
|
28 |
+
|
29 |
+
// Add ssba to available widgets.
|
30 |
+
add_action( 'widgets_init', create_function( '', 'register_widget( "SimpleShareButtonsAdder\Widget" );' ) );
|
31 |
+
}
|
32 |
+
|
33 |
+
/**
|
34 |
+
* Extract required arguments and run the shortcode.
|
35 |
+
*
|
36 |
+
* @param array $args The widget arguments.
|
37 |
+
* @param array $instance THe widget instance.
|
38 |
+
*/
|
39 |
+
public function widget( $args, $instance ) {
|
40 |
+
$before_title = $args['before_title'];
|
41 |
+
$before_widget = $args['before_widget'];
|
42 |
+
$after_title = $args['after_title'];
|
43 |
+
$after_widget = $args['after_widget'];
|
44 |
+
$title = apply_filters( 'widget_title', $instance['title'] );
|
45 |
+
$url = $instance['url'];
|
46 |
+
$pagetitle = $instance['pagetitle'];
|
47 |
+
|
48 |
+
echo wp_kses_post( $before_widget );
|
49 |
+
|
50 |
+
if ( ! empty( $title ) ) {
|
51 |
+
echo wp_kses_post( $before_title . $title . $after_title );
|
52 |
+
}
|
53 |
+
|
54 |
+
$shortcode = '[ssba-buttons';
|
55 |
+
$shortcode .= '' !== $url ? ' url="' . $url . '"' : '';
|
56 |
+
$shortcode .= '' !== $pagetitle ? ' title="' . $pagetitle . '"' : '';
|
57 |
+
$shortcode .= ' widget="Y"]';
|
58 |
+
|
59 |
+
echo do_shortcode( $shortcode );
|
60 |
+
echo wp_kses_post( $after_widget );
|
61 |
+
}
|
62 |
+
|
63 |
+
/**
|
64 |
+
* Form widget function.
|
65 |
+
*
|
66 |
+
* @param array $instance THe form instance.
|
67 |
+
*/
|
68 |
+
public function form( $instance ) {
|
69 |
+
if ( isset( $instance['title'] ) ) {
|
70 |
+
$title = $instance['title'];
|
71 |
+
} else {
|
72 |
+
$title = esc_html__( 'Share Buttons', 'simple-share-buttons-adder' );
|
73 |
+
}
|
74 |
+
|
75 |
+
if ( isset( $instance['title'] ) ) {
|
76 |
+
$url = esc_url( $instance['url'] );
|
77 |
+
} else {
|
78 |
+
$url = '';
|
79 |
+
}
|
80 |
+
|
81 |
+
if ( isset( $instance['title'] ) ) {
|
82 |
+
$pagetitle = esc_attr( $instance['pagetitle'] );
|
83 |
+
} else {
|
84 |
+
$pagetitle = '';
|
85 |
+
}
|
86 |
+
|
87 |
+
// Title.
|
88 |
+
echo '<p><label for="' . esc_attr( $this->get_field_id( 'title' ) ) . '">Title:</label><input class="widefat" id="' . esc_attr( $this->get_field_id( 'title' ) ) . '" name="' . esc_attr( $this->get_field_name( 'title' ) ) . '" type="text" value="' . esc_attr( $title ) . '" /></p>';
|
89 |
+
|
90 |
+
// URL.
|
91 |
+
echo '<p><label for="' . esc_attr( $this->get_field_id( 'url' ) ) . '">URL:</label><input class="widefat" id="' . esc_attr( $this->get_field_id( 'url' ) ) . '" name="' . esc_attr( $this->get_field_name( 'url' ) ) . '" type="text" value="' . esc_attr( $url ) . '" /></p>';
|
92 |
+
echo '<p class="description">' . esc_html__( 'Leave this blank to share the current page, or enter a URL to force one URL for all pages.', 'simple-share-buttons-adder' ) . '</p>';
|
93 |
+
|
94 |
+
// Page title.
|
95 |
+
echo '<p><label for="' . esc_attr( $this->get_field_id( 'pagetitle' ) ) . '">Page title:</label><input class="widefat" id="' . esc_attr( $this->get_field_id( 'pagetitle' ) ) . '" name="' . esc_attr( $this->get_field_name( 'pagetitle' ) ) . '" type="text" value="' . esc_attr( $pagetitle ) . '" /></p>';
|
96 |
+
echo '<p class="description">Set a page title for the page being shared, leave this blank if you have not set a URL.</p>';
|
97 |
+
}
|
98 |
+
|
99 |
+
/**
|
100 |
+
* Update the widget.
|
101 |
+
*
|
102 |
+
* @param array $new_instance The new value of the widget.
|
103 |
+
* @param array $old_instance The old value of the widget.
|
104 |
+
*
|
105 |
+
* @return array
|
106 |
+
*/
|
107 |
+
public function update( $new_instance, $old_instance ) {
|
108 |
+
$instance = array();
|
109 |
+
$instance['title'] = strip_tags( $new_instance['title'] );
|
110 |
+
$instance['url'] = strip_tags( $new_instance['url'] );
|
111 |
+
$instance['pagetitle'] = strip_tags( $new_instance['pagetitle'] );
|
112 |
+
|
113 |
+
return $instance;
|
114 |
+
}
|
115 |
+
|
116 |
+
/**
|
117 |
+
* The widget registration.
|
118 |
+
*
|
119 |
+
* @action admin_init
|
120 |
+
*/
|
121 |
+
public function mywidget_init() {
|
122 |
+
wp_register_sidebar_widget( 'ssba_buttons_widget', 'Share Buttons Widget', array( $this, 'ssba_widget' ) );
|
123 |
+
wp_register_widget_control( 'ssba_buttons_widget', 'Share Buttons Widget', array( $this, 'ssba_widget_control' ) );
|
124 |
+
}
|
125 |
+
}
|
readme.txt
CHANGED
@@ -1,68 +1,73 @@
|
|
1 |
Â
=== Simple Share Buttons Adder ===
|
2 |
-
Contributors: DavidoffNeal
|
3 |
-
Tags: share buttons, facebook, twitter, google+, share, share links, stumble upon, linkedin, pinterest, yummly, vk
|
4 |
-
Requires at least:
|
5 |
-
Tested up to: 4.
|
6 |
-
Stable tag:
|
7 |
-
License: GPLv2
|
8 |
-
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
Â
|
10 |
Â
A simple plugin that enables you to add share buttons to all of your posts and/or pages.
|
11 |
Â
|
12 |
Â
== Description ==
|
13 |
Â
|
14 |
-
The Simple Share Buttons Adder does exactly what it says
|
15 |
Â
|
16 |
Â
This plugin has a dedicated website! Check out <a href="https://simplesharebuttons.com" target="_blank">simplesharebuttons.com</a>
|
17 |
Â
|
18 |
-
Looking for even more? <a href="https://simplesharebuttons.com/plus/" target="_blank">Checkout the Plus version</a>!
|
19 |
-
|
20 |
Â
You can even upload and use your own custom images if you wish!
|
21 |
Â
|
22 |
-
|
23 |
-
|
24 |
-
The Simple Share Buttons Adder utilises features that, as a WordPress user, you will be familiar with. A self-explanatory administration screen will have you showing your Share Buttons on your posts and pages in no time!
|
25 |
Â
|
26 |
Â
By downloading and installing this plugin you are agreeing to the <a href="https://simplesharebuttons.com/privacy/" target="_blank">Privacy Policy</a> and <a href="https://simplesharebuttons.com/privacy/" target="_blank">Terms of Service</a>.
|
27 |
Â
|
28 |
-
|
29 |
Â
== Installation ==
|
30 |
Â
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
42 |
Â
|
43 |
Â
== Frequently Asked Questions ==
|
44 |
Â
|
45 |
Â
This plugin has a dedicated website! Check out the <a href="http://simplesharebuttons.com/wordpress-faq/" target="_blank"> FAQs page</a>
|
46 |
Â
|
47 |
-
|
48 |
-
|
49 |
-
Please visit the <a href="http://simplesharebuttons.com/forums/forum/wordpress-forum/">WordPress Support Forum</a> for any assistance you may need.
|
50 |
-
|
51 |
-
A step by step guide on how to configure this plugin can be found <a href="http://simplesharebuttons.com/wordpress/wordpress-configuration/">here</a>.
|
52 |
Â
|
53 |
Â
== Screenshots ==
|
54 |
Â
|
55 |
-
1. The
|
56 |
-
2.
|
57 |
-
3. The
|
58 |
-
4.
|
59 |
-
5. The additional CSS field - where you can add your own CSS
|
60 |
-
6. The custom CSS field - where you can use your own CSS
|
61 |
-
7. This is an example of a set of Share Buttons you can add using Simple Share Buttons Adder
|
62 |
-
8. This is an example of a set of Share Buttons you can add using Simple Share Buttons Adder
|
63 |
Â
|
64 |
Â
== Changelog ==
|
65 |
Â
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
66 |
Â
= 6.3.6 =
|
67 |
Â
* minor bug fixes
|
68 |
Â
|
1 |
Â
=== Simple Share Buttons Adder ===
|
2 |
+
Contributors: sharethis, scottstorebloom, surlyrightclick, DavidoffNeal
|
3 |
+
Tags: share buttons, social buttons, facebook, twitter, google+, share, share links, stumble upon, linkedin, pinterest, yummly, vk
|
4 |
+
Requires at least: 4.5
|
5 |
+
Tested up to: 4.8.2
|
6 |
+
Stable tag: 7.3.6
|
7 |
+
License: GPLv2 or later
|
Â
|
|
8 |
Â
|
9 |
Â
A simple plugin that enables you to add share buttons to all of your posts and/or pages.
|
10 |
Â
|
11 |
Â
== Description ==
|
12 |
Â
|
13 |
+
The Simple Share Buttons Adder does exactly what it says – adds share buttons to all of your posts and pages, simply.
|
14 |
Â
|
15 |
Â
This plugin has a dedicated website! Check out <a href="https://simplesharebuttons.com" target="_blank">simplesharebuttons.com</a>
|
16 |
Â
|
Â
|
|
Â
|
|
17 |
Â
You can even upload and use your own custom images if you wish!
|
18 |
Â
|
19 |
+
The Simple Share Buttons Adder utilizes features that, as a WordPress user, you will be familiar with. A self-explanatory administration screen will have you showing your Share Buttons on your posts and pages in no time!
|
Â
|
|
Â
|
|
20 |
Â
|
21 |
Â
By downloading and installing this plugin you are agreeing to the <a href="https://simplesharebuttons.com/privacy/" target="_blank">Privacy Policy</a> and <a href="https://simplesharebuttons.com/privacy/" target="_blank">Terms of Service</a>.
|
22 |
Â
|
Â
|
|
23 |
Â
== Installation ==
|
24 |
Â
|
25 |
+
Automatic
|
26 |
+
- Click the ‘Plugins’ tab in WordPress admin view
|
27 |
+
- Click the ‘Add New’ button
|
28 |
+
- Search for ‘Simple Share’
|
29 |
+
- Click ‘Install Now’
|
30 |
+
- Activate the plugin
|
31 |
+
- Navigate to ‘Installed Plugins’
|
32 |
+
- Click ‘Settings’
|
33 |
+
- Toggle On/Off Location Placement
|
34 |
+
- Click the blue save icon
|
35 |
+
FTP
|
36 |
+
- Upload Simple Share Adder to the `/wp-content/plugins/` directory
|
37 |
+
- Activate the plugin
|
38 |
+
- Navigate to ‘Installed Plugins’
|
39 |
+
- Click ‘Settings’
|
40 |
+
- Toggle On/Off Location Placement
|
41 |
+
- Click the blue save icon
|
42 |
+
Upload
|
43 |
+
- Upload the downloaded zip file on the ‘Add New’ plugins screen (see the ‘Upload’ tab) in your WordPress admin view
|
44 |
+
- Activate the plugin
|
45 |
+
- Navigate to ‘Installed Plugins’
|
46 |
+
- Click ‘Settings’
|
47 |
+
- Toggle On/Off Location Placement
|
48 |
+
- Click the blue save icon
|
49 |
Â
|
50 |
Â
== Frequently Asked Questions ==
|
51 |
Â
|
52 |
Â
This plugin has a dedicated website! Check out the <a href="http://simplesharebuttons.com/wordpress-faq/" target="_blank"> FAQs page</a>
|
53 |
Â
|
54 |
+
Please visit the <a href="https://wordpress.org/support/plugin/simple-share-buttons-adder">WordPress Support Forum</a> for any assistance you may need.
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
55 |
Â
|
56 |
Â
== Screenshots ==
|
57 |
Â
|
58 |
+
1. The top of the admin menu including the network selection tool.
|
59 |
+
2. Some styling options for your button's share text and container.
|
60 |
+
3. The button preview and additional accordions with more configuration options.
|
61 |
+
4. An example of the buttons shown below page content using the "Ribbon" theme.
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
62 |
Â
|
63 |
Â
== Changelog ==
|
64 |
Â
|
65 |
+
= 7.3.6 =
|
66 |
+
* Major plugin code clean up and refactor.
|
67 |
+
* Addition of Button Preview in admin.
|
68 |
+
* New admin menu layout design.
|
69 |
+
* Addition of Whatsapp and Xing buttons.
|
70 |
+
|
71 |
Â
= 6.3.6 =
|
72 |
Â
* minor bug fixes
|
73 |
Â
|
simple-share-buttons-adder.php
CHANGED
@@ -1,12 +1,12 @@
|
|
1 |
Â
<?php
|
2 |
-
|
3 |
-
Plugin Name: Simple Share Buttons Adder
|
4 |
-
Plugin URI: https://simplesharebuttons.com
|
5 |
-
Description: A simple plugin that enables you to add share buttons to all of your posts and/or pages.
|
6 |
-
Version:
|
7 |
-
Author: Simple Share Buttons
|
8 |
-
Author URI: https://simplesharebuttons.com
|
9 |
-
License: GPLv2
|
10 |
Â
|
11 |
Â
Copyright 2015 Simple Share Buttons admin@simplesharebuttons.com
|
12 |
Â
|
@@ -18,92 +18,41 @@ This program is distributed in the hope that it will be useful,
|
|
18 |
Â
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
19 |
Â
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
20 |
Â
GNU General Public License for more details.
|
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 |
-
register_uninstall_hook(__FILE__,'ssba_uninstall');
|
65 |
-
|
66 |
-
//======================================================================
|
67 |
-
// GET SSBA SETTINGS
|
68 |
-
//======================================================================
|
69 |
-
|
70 |
-
// return ssba settings
|
71 |
-
function get_ssba_settings()
|
72 |
-
{
|
73 |
-
// get json array settings from DB
|
74 |
-
$jsonSettings = get_option('ssba_settings');
|
75 |
-
|
76 |
-
// decode and return settings
|
77 |
-
return json_decode($jsonSettings, true);
|
78 |
-
}
|
79 |
-
|
80 |
-
//======================================================================
|
81 |
-
// UPDATE SSBA SETTINGS
|
82 |
-
//======================================================================
|
83 |
-
|
84 |
-
// update an array of options
|
85 |
-
function ssba_update_options($arrOptions)
|
86 |
-
{
|
87 |
-
// if not given an array
|
88 |
-
if (! is_array($arrOptions)) {
|
89 |
-
die('Value parsed not an array');
|
90 |
-
}
|
91 |
-
|
92 |
-
// get ssba settings
|
93 |
-
$jsonSettings = get_option('ssba_settings');
|
94 |
-
|
95 |
-
// decode the settings
|
96 |
-
$ssba_settings = json_decode($jsonSettings, true);
|
97 |
-
|
98 |
-
// loop through array given
|
99 |
-
foreach ($arrOptions as $name => $value) {
|
100 |
-
// update/add the option in the array
|
101 |
-
$ssba_settings[$name] = $value;
|
102 |
-
}
|
103 |
-
|
104 |
-
// encode the options ready to save back
|
105 |
-
$jsonSettings = json_encode($ssba_settings);
|
106 |
-
|
107 |
-
// update the option in the db
|
108 |
-
update_option('ssba_settings', $jsonSettings);
|
109 |
-
}
|
1 |
Â
<?php
|
2 |
+
/**
|
3 |
+
* Plugin Name: Simple Share Buttons Adder
|
4 |
+
* Plugin URI: https://simplesharebuttons.com
|
5 |
+
* Description: A simple plugin that enables you to add share buttons to all of your posts and/or pages.
|
6 |
+
* Version: 7.3.6
|
7 |
+
* Author: Simple Share Buttons
|
8 |
+
* Author URI: https://simplesharebuttons.com
|
9 |
+
* License: GPLv2
|
10 |
Â
|
11 |
Â
Copyright 2015 Simple Share Buttons admin@simplesharebuttons.com
|
12 |
Â
|
18 |
Â
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
19 |
Â
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
20 |
Â
GNU General Public License for more details.
|
21 |
+
*
|
22 |
+
* @package SimpleShareButtonsAdder
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
23 |
Â
*/
|
24 |
Â
|
25 |
+
if ( version_compare( phpversion(), '5.3', '>=' ) ) {
|
26 |
+
require_once __DIR__ . '/instance.php';
|
27 |
+
} else {
|
28 |
+
if ( defined( 'WP_CLI' ) ) {
|
29 |
+
WP_CLI::warning( _simple_share_buttons_adder_php_version_text() );
|
30 |
+
} else {
|
31 |
+
add_action( 'admin_notices', '_simple_share_buttons_adder_php_version_error' );
|
32 |
+
}
|
33 |
+
}
|
34 |
+
|
35 |
+
/**
|
36 |
+
* Admin notice for incompatible versions of PHP.
|
37 |
+
*/
|
38 |
+
function _simple_share_buttons_adder_php_version_error() {
|
39 |
+
printf( '<div class="error"><p>%s</p></div>', esc_html( _simple_share_buttons_adder_php_version_text() ) );
|
40 |
+
}
|
41 |
+
|
42 |
+
/**
|
43 |
+
* String describing the minimum PHP version.
|
44 |
+
*
|
45 |
+
* @return string
|
46 |
+
*/
|
47 |
+
function _simple_share_buttons_adder_php_version_text() {
|
48 |
+
return __( 'Simple Share Buttons Adder plugin error: Your version of PHP is too old to run this plugin. You must be running PHP 5.3 or higher.', 'simple-share-buttons-adder' );
|
49 |
+
}
|
50 |
+
|
51 |
+
add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), 'add_action_links' );
|
52 |
+
|
53 |
+
function add_action_links( $links ) {
|
54 |
+
$mylinks = array(
|
55 |
+
'<a href="' . admin_url( 'options-general.php?page=simple-share-buttons-adder' ) . '">Settings</a>',
|
56 |
+
);
|
57 |
+
return array_merge( $links, $mylinks );
|
58 |
+
}
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
templates/admin-footer.php
ADDED
@@ -0,0 +1,38 @@
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Admin footer template.
|
4 |
+
*
|
5 |
+
* The template wrapper for the admin footer.
|
6 |
+
*
|
7 |
+
* @package SimpleShareButtonsAdder
|
8 |
+
*/
|
9 |
+
|
10 |
+
?>
|
11 |
+
<footer class="row">
|
12 |
+
<div class="col-sm-12">
|
13 |
+
<a href="https://simplesharebuttons.com" target="_blank"><?php echo esc_html__( 'Simple Share Buttons Adder', 'simple-share-buttons-adder' ); ?></a>
|
14 |
+
<span class="badge"><?php echo esc_html( SSBA_VERSION ); ?></span>
|
15 |
+
<button type="button" class="ssba-btn-thank-you pull-right btn btn-primary" data-toggle="modal" data-target="#ssbaFooterModal">
|
16 |
+
<i class="fa fa-info"></i>
|
17 |
+
</button>
|
18 |
+
<div class="modal fade" id="ssbaFooterModal" tabindex="-1" role="dialog" aria-labelledby="ssbaFooterModalLabel" aria-hidden="true">
|
19 |
+
<div class="modal-dialog">
|
20 |
+
<div class="modal-content">
|
21 |
+
<div class="modal-header">
|
22 |
+
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
23 |
+
<h4 class="modal-title"><?php echo esc_html__( 'Simple Share Buttons', 'simple-share-buttons-adder' ); ?></h4>
|
24 |
+
</div>
|
25 |
+
<div class="modal-body">
|
26 |
+
<p><?php echo esc_html__( 'Many thanks for choosing', 'simple-share-buttons-adder' ); ?> <a href="https://simplesharebuttons.com" target="_blank"><?php echo esc_html__( 'Simple Share Buttons', 'simple-share-buttons-adder' ); ?></a> <?php echo esc_html__( 'for your share buttons plugin, we\'re confident you won\'t be disappointed in your decision. If you require any support, please visit the', 'simple-share-buttons-adder' ); ?> <a href="https://wordpress.org/support/plugin/simple-share-buttons-adder" target="_blank"><?php echo esc_html__( 'support forum', 'simple-share-buttons-adder' ); ?></a>.</p>
|
27 |
+
<p><?php echo esc_html__( 'If you like the plugin, we\'d really appreciate it if you took a moment to', 'simple-share-buttons-adder' ); ?> <a href="https://wordpress.org/support/view/plugin-reviews/simple-share-buttons-adder" target="_blank"><?php echo esc_html__( 'leave a review', 'simple-share-buttons-adder' ); ?></a>, <?php echo esc_html__( 'if there\'s anything missing to get 5 stars do please', 'simple-share-buttons-adder' ); ?> <a href="https://simplesharebuttons.com/contact/" target="_blank"><?php echo esc_html__( 'let us know', 'simple-share-buttons-adder' ); ?></a>. <?php echo esc_html__( 'If you feel your website is worthy of appearing on our', 'simple-share-buttons-adder' ); ?> <a href="https://simplesharebuttons.com/showcase/" target="_blank"><?php echo esc_html__( 'showcase page', 'simple-share-buttons-adder' ); ?></a> do <a href="https://simplesharebuttons.com/contact/" target="_blank"><?php echo esc_html__( 'get in touch', 'simple-share-buttons-adder' ); ?></a>.</p>
|
28 |
+
</div>
|
29 |
+
<div class="modal-footer">
|
30 |
+
<button type="button" class="btn btn-default" data-dismiss="modal"><?php echo esc_html__( 'Close', 'simple-share-buttons-adder' ); ?></button>
|
31 |
+
</div>
|
32 |
+
</div>
|
33 |
+
</div>
|
34 |
+
</div>
|
35 |
+
</div>
|
36 |
+
</footer>
|
37 |
+
</div>
|
38 |
+
</div>
|
templates/admin-header.php
ADDED
@@ -0,0 +1,57 @@
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Admin header template.
|
4 |
+
*
|
5 |
+
* The template wrapper for the admin header.
|
6 |
+
*
|
7 |
+
* @package SimpleShareButtonsAdder
|
8 |
+
*/
|
9 |
+
|
10 |
+
?>
|
11 |
+
<div class="ssba-admin-wrap">
|
12 |
+
<nav class="navbar navbar-default">
|
13 |
+
<div class="container-fluid">
|
14 |
+
<div class="navbar-header">
|
15 |
+
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
|
16 |
+
<span class="sr-only"><?php echo esc_html__( 'Toggle navigation', 'simple-share-buttons-adder' ); ?></span>
|
17 |
+
<span class="icon-bar"></span>
|
18 |
+
<span class="icon-bar"></span>
|
19 |
+
<span class="icon-bar"></span>
|
20 |
+
</button>
|
21 |
+
<a class="navbar-brand" href="https://simplesharebuttons.com">
|
22 |
+
<img src="<?php echo esc_url( plugins_url() ); ?>/simple-share-buttons-adder/images/simplesharebuttons.png" alt="Simple Share Buttons Plus" class="ssba-logo-img" />
|
23 |
+
</a>
|
24 |
+
</div>
|
25 |
+
</div>
|
26 |
+
</nav>
|
27 |
+
|
28 |
+
<div class="modal fade" id="ssbaSupportModal" tabindex="-1" role="dialog" aria-hidden="true">
|
29 |
+
<div class="modal-dialog">
|
30 |
+
<div class="modal-content">
|
31 |
+
<div class="modal-header">
|
32 |
+
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
33 |
+
<h4 class="modal-title"><?php echo esc_html__( 'Simple Share Buttons Support', 'simple-share-buttons-adder' ); ?></h4>
|
34 |
+
</div>
|
35 |
+
<div class="modal-body">
|
36 |
+
<p><?php echo esc_html__( 'Please note that the this plugin relies mostly on WordPress community support from other users.', 'simple-share-buttons-adder' ); ?></p>
|
37 |
+
<p><?php echo esc_html__( 'If you wish to receive official support, please consider purchasing', 'simple-share-buttons-adder' ); ?> <a href="https://simplesharebuttons.com/plus/?utm_source=adder&utm_medium=plugin_ad&utm_campaign=product&utm_content=support_modal" target="_blank"><b><?php echo esc_html__( 'Simple Share Buttons Plus', 'simple-share-buttons-adder' ); ?></b></a></p>
|
38 |
+
<div class="row">
|
39 |
+
<div class="col-sm-6">
|
40 |
+
<a href="https://wordpress.org/support/plugin/simple-share-buttons-adder" target="_blank">
|
41 |
+
<button class="btn btn-block btn-default"><?php echo esc_html__( 'Community support', 'simple-share-buttons-adder' ); ?></button>
|
42 |
+
</a>
|
43 |
+
</div>
|
44 |
+
<div class="col-sm-6">
|
45 |
+
<a href="https://simplesharebuttons.com/plus/?utm_source=adder&utm_medium=plugin_ad&utm_campaign=product&utm_content=support_modal" target="_blank">
|
46 |
+
<button class="btn btn-block btn-primary"><?php echo esc_html__( 'Check out Plus', 'simple-share-buttons-adder' ); ?></button>
|
47 |
+
</a>
|
48 |
+
</div>
|
49 |
+
</div>
|
50 |
+
</div>
|
51 |
+
<div class="modal-footer">
|
52 |
+
<button type="button" class="btn btn-default" data-dismiss="modal"><?php echo esc_html__( 'Close', 'simple-share-buttons-adder' ); ?></button>
|
53 |
+
</div>
|
54 |
+
</div>
|
55 |
+
</div>
|
56 |
+
</div>
|
57 |
+
<div class="container">
|
templates/admin-panel.php
ADDED
@@ -0,0 +1,45 @@
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Admin panel template.
|
4 |
+
*
|
5 |
+
* The template wrapper for the admin panel.
|
6 |
+
*
|
7 |
+
* @package SimpleShareButtonsAdder
|
8 |
+
*/
|
9 |
+
|
10 |
+
echo $this->admin_header(); // WPCS: XSS ok.
|
11 |
+
echo $this->forms->open( false ); // WPCS: XSS ok.
|
12 |
+
?>
|
13 |
+
<h2><?php echo esc_html__( 'Settings', 'simple-share-buttons-adder' ); ?></h2>
|
14 |
+
|
15 |
+
<?php
|
16 |
+
// If terms have just been accepted.
|
17 |
+
if ( isset( $_GET['accept-terms'] ) && 'Y' === $_GET['accept-terms'] ) { // WPCS: CSRF ok. ?>
|
18 |
+
<div class="alert alert-success text-center">
|
19 |
+
<p><?php echo esc_html__( 'Thanks for accepting the terms, you can now take advantage of the great new features!', 'simple-share-buttons-adder' ); ?></p>
|
20 |
+
</div>
|
21 |
+
<?php } elseif ( 'Y' !== $arr_settings['accepted_sharethis_terms'] ) { ?>
|
22 |
+
<div class="alert alert-warning text-center">
|
23 |
+
<p>
|
24 |
+
<?php echo esc_html__( 'The Facebook save button requires acceptance of the terms before it can be used.', 'simple-share-buttons-adder' ); ?>
|
25 |
+
<a href="options-general.php?page=simple-share-buttons-adder&accept-terms=Y">
|
26 |
+
<span class="button button-secondary">
|
27 |
+
<?php echo esc_html__( 'I accept', 'simple-share-buttons-adder' ); ?>
|
28 |
+
</span>
|
29 |
+
</a>
|
30 |
+
</p>
|
31 |
+
</div>
|
32 |
+
<?php } ?>
|
33 |
+
<ul class="nav nav-tabs">
|
34 |
+
<li class="active">
|
35 |
+
<a href="#classic-share-buttons" data-toggle="tab"><?php echo esc_html__( 'Classic Share Buttons', 'simple-share-buttons-adder' ); ?></a>
|
36 |
+
</li>
|
37 |
+
</ul>
|
38 |
+
<div id="ssbaTabContent" class="tab-content">
|
39 |
+
<?php include_once( "{$this->plugin->dir_path}/templates/classic-tab.php" ); ?>
|
40 |
+
</div>
|
41 |
+
|
42 |
+
<?php
|
43 |
+
echo $this->forms->close(); // WPCS: XSS ok.
|
44 |
+
echo $this->admin_footer(); // WPCS: XSS ok.
|
45 |
+
?>
|
templates/classic-tab.php
ADDED
@@ -0,0 +1,345 @@
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
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
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Classic tab template.
|
4 |
+
*
|
5 |
+
* The template wrapper for the classic tab.
|
6 |
+
*
|
7 |
+
* @package SimpleShareButtonsAdder
|
8 |
+
*/
|
9 |
+
|
10 |
+
?>
|
11 |
+
<div class="tab-pane fade active in" id="classic-share-buttons">
|
12 |
+
<div class="col-sm-12 ssba-tab-container">
|
13 |
+
<?php if ( ! isset( $notice['new-tab-notice'] ) ) : ?>
|
14 |
+
<blockquote class="yellow">
|
15 |
+
<p>
|
16 |
+
<?php echo esc_html__( 'All of the plugin settings are now included on this page. No more switching tabs! Scroll down past the preview to access the styling, counters, advanced and css settings.', 'simple-share-buttons-adder' ); ?>
|
17 |
+
|
18 |
+
<button id="new-tab-notice" type="button" class="notice-dismiss"><span class="screen-reader-text">Dismiss this notice.</span></button>
|
19 |
+
</p>
|
20 |
+
</blockquote>
|
21 |
+
<?php endif; ?>
|
22 |
+
|
23 |
+
<blockquote>
|
24 |
+
<p>
|
25 |
+
<?php echo esc_html__( 'The', 'simple-share-buttons-adder' ); ?> <b><?php echo esc_html__( 'simple', 'simple-share-buttons-adder' ); ?></b> <?php echo esc_html__( 'options you can see below are all you need to complete to get your', 'simple-share-buttons-adder' ); ?> <b><?php echo esc_html__( 'share buttons', 'simple-share-buttons-adder' ); ?></b> <?php echo esc_html__( 'to appear on your website. Once you\'re done here, you can further customise the share buttons via the Styling tab.', 'simple-share-buttons-adder' ); ?>
|
26 |
+
</p>
|
27 |
+
</blockquote>
|
28 |
+
|
29 |
+
<label for="ssba_choices" class="control-label" data-toggle="tooltip" data-placement="right" data-original-title="<?php echo esc_attr__( 'Drag, drop and reorder those buttons that you wish to include', 'simple-share-buttons-adder' ); ?>"><?php echo esc_html__( 'Networks', 'simple-share-buttons-adder' ); ?></label>
|
30 |
+
|
31 |
+
<div>
|
32 |
+
<div class="ssbp-wrap ssbp--centred ssbp--theme-4">
|
33 |
+
<div class="ssbp-container">
|
34 |
+
<ul id="ssbasort1" class="ssbp-list ssbaSortable">
|
35 |
+
<?php echo wp_kses_post( $this->get_available_ssba( $arr_settings['ssba_selected_buttons'], $arr_settings ) ); ?>
|
36 |
+
</ul>
|
37 |
+
</div>
|
38 |
+
</div>
|
39 |
+
<div class="well">
|
40 |
+
<div class="ssba-well-instruction">
|
41 |
+
<i class="fa fa-download"></i> <?php echo esc_html__( 'Drop icons below - the order of your preview will update when you save.', 'simple-share-buttons-adder' ); ?>
|
42 |
+
</div>
|
43 |
+
<div class="ssbp-wrap ssbp--centred ssbp--theme-4">
|
44 |
+
<div class="ssbp-container">
|
45 |
+
<ul id="ssbasort2" class="ssba-include-list ssbp-list ssbaSortable">
|
46 |
+
<?php echo wp_kses_post( $this->get_selected_ssba( $arr_settings['ssba_selected_buttons'], $arr_settings ) ); ?>
|
47 |
+
</ul>
|
48 |
+
</div>
|
49 |
+
</div>
|
50 |
+
</div>
|
51 |
+
|
52 |
+
<input type="hidden" name="ssba_selected_buttons" id="ssba_selected_buttons" value="<?php esc_attr( $arr_settings['ssba_selected_buttons'] ); ?>"/>
|
53 |
+
</div>
|
54 |
+
<?php
|
55 |
+
echo $this->forms->ssbp_checkboxes( $opts1 ); // WPCS: XSS ok.
|
56 |
+
echo $this->forms->ssbp_input( $opts2 ); // WPCS: XSS ok.
|
57 |
+
|
58 |
+
$line_height = 'below' === $arr_settings['ssba_text_placement'] || 'above' === $arr_settings['ssba_text_placement'] ? 'inherit' : ( (int) $arr_settings['ssba_size'] + (int) $arr_settings['ssba_padding'] + 3 ) . 'px';
|
59 |
+
$image_line_height = $arr_settings['ssba_size'] . 'px';
|
60 |
+
?>
|
61 |
+
|
62 |
+
<h3 id="ssba-preview-title"><?php echo esc_html__( 'Preview', 'simple-share-buttons-adder' ); ?></h3>
|
63 |
+
|
64 |
+
<div class="master-ssba-prev-wrap">
|
65 |
+
<div id="ssba-preview-1" class="ssbp-wrap" style="text-align: <?php echo esc_attr( $arr_settings['ssba_align'] ); ?>; border-radius: <?php echo 'Y' === $arr_settings['ssba_div_rounded_corners'] ? esc_attr( '10px' ) : esc_attr( '0' ); ?>; border: <?php echo esc_attr( $arr_settings['ssba_border_width'] . 'px solid ' . $arr_settings['ssba_div_border'] ); ?>; background: <?php echo esc_attr( $arr_settings['ssba_div_background'] ); ?>; padding: <?php echo esc_attr( $arr_settings['ssba_div_padding'] ); ?>px;">
|
66 |
+
<div class="ssba-preview-content">
|
67 |
+
<div style="display: <?php echo esc_attr( 'below' === $arr_settings['ssba_text_placement'] ? 'table-footer-group' : '' ); ?>; line-height: <?php echo esc_attr( $line_height ); ?>; float: <?php echo esc_attr( 'above' === $arr_settings['ssba_text_placement'] ? 'none' : $arr_settings['ssba_text_placement'] ); ?>; color: <?php echo esc_attr( $arr_settings['ssba_font_color'] ); ?>; font-family: <?php echo esc_attr( $arr_settings['ssba_font_family'] ); ?>; font-weight: <?php echo esc_attr( $arr_settings['ssba_font_weight'] ); ?>; font-size: <?php echo esc_attr( $arr_settings['ssba_font_size'] ); ?>px;" class="ssba-share-text-prev">
|
68 |
+
<?php echo esc_html( $arr_settings['ssba_share_text'] ); ?>
|
69 |
+
</div>
|
70 |
+
|
71 |
+
<ul class="ssbp-list">
|
72 |
+
<?php foreach ( $arr_buttons as $buttons ) :
|
73 |
+
$button = strtolower( str_replace( ' ', '_', str_replace( '+', '', $buttons['full_name'] ) ) );
|
74 |
+
|
75 |
+
if ( 'custom' !== $arr_settings['ssba_image_set'] ) {
|
76 |
+
$img_src = esc_attr( $this->plugin->dir_url ) . 'buttons/' . esc_attr( $arr_settings['ssba_image_set'] ) . '/' . esc_attr( $button ) . '.png';
|
77 |
+
} else {
|
78 |
+
$img_src = $custom_buttons[ $button ];
|
79 |
+
} ?>
|
80 |
+
<li class="ssbp-li--<?php echo esc_attr( $button );
|
81 |
+
if ( ! in_array( $button, explode( ',', $arr_settings['ssba_selected_buttons'] ), true ) ) {
|
82 |
+
echo esc_attr( ' ssba-hide-button' );
|
83 |
+
}
|
84 |
+
?>">
|
85 |
+
<img style="line-height: <?php echo esc_attr( $image_line_height ); ?>; height: <?php echo esc_attr( $arr_settings['ssba_size'] ); ?>px; padding: <?php echo esc_attr( $arr_settings['ssba_padding'] ); ?>px;" src="<?php echo esc_attr( $img_src ); ?>" title="<?php echo esc_attr( $buttons['full_name'] ); ?>" class="ssba ssba-img" alt="Share on <?php echo esc_attr( $button ); ?>" />
|
86 |
+
<?php if ( 'facebook_save' !== $button ) : ?>
|
87 |
+
<span style="vertical-align: middle;" class="<?php echo 'Y' === $arr_settings['ssba_show_share_count'] ? esc_attr( 'ssba_sharecount ssba_' . $arr_settings['ssba_share_count_style'] ) : ''; ?> ssbp-total-<?php echo esc_attr( $button ); ?>-shares">1.8k</span>
|
88 |
+
<?php endif; ?>
|
89 |
+
</li>
|
90 |
+
<?php endforeach; ?>
|
91 |
+
</ul>
|
92 |
+
</div>
|
93 |
+
</div>
|
94 |
+
</div>
|
95 |
+
<div class="accor-wrap">
|
96 |
+
<div class="accor-tab">
|
97 |
+
<span class="accor-arrow">►</span>
|
98 |
+
<?php echo esc_html__( 'Styling', 'simple-share-buttons-adder' ); ?>
|
99 |
+
</div>
|
100 |
+
<div class="accor-content">
|
101 |
+
<div class="well">
|
102 |
+
<div class="col-md-12">
|
103 |
+
<h3><?php echo esc_html__( 'Appearance', 'simple-share-buttons-adder' ); ?></h3>
|
104 |
+
</div>
|
105 |
+
|
106 |
+
<div class="col-md-6">
|
107 |
+
<?php echo $this->forms->ssbp_input( $opts4 ); // WPCS: XSS ok.?>
|
108 |
+
|
109 |
+
<div id="ssba-custom-images" <?php echo 'custom' !== $arr_settings['ssba_image_set'] ? 'style="display: none;"' : null; ?>>
|
110 |
+
<?php
|
111 |
+
// Loop through each button.
|
112 |
+
foreach ( $arr_buttons as $button => $arr_button ) {
|
113 |
+
$custom_button = strtolower( str_replace( ' ', '_', str_replace( '+', '', $arr_button['full_name'] ) ) );
|
114 |
+
|
115 |
+
// Enable custom images.
|
116 |
+
$opts5 = array(
|
117 |
+
'form_group' => false,
|
118 |
+
'type' => 'image_upload',
|
119 |
+
'name' => 'ssba_custom_' . $custom_button,
|
120 |
+
'label' => $arr_button['full_name'],
|
121 |
+
'tooltip' => 'Upload a custom ' . $arr_button['full_name'] . ' image',
|
122 |
+
'value' => isset( $arr_settings[ 'ssba_custom_' . $custom_button ] ) ? $arr_settings[ 'ssba_custom_' . $custom_button ] : '',
|
123 |
+
);
|
124 |
+
echo $this->forms->ssbp_input( $opts5 ); // WPCS: XSS ok.
|
125 |
+
}
|
126 |
+
?>
|
127 |
+
</div>
|
128 |
+
|
129 |
+
<?php echo $this->forms->ssbp_input( $opts6 ); // WPCS: XSS ok. ?>
|
130 |
+
</div>
|
131 |
+
<div class="col-md-6">
|
132 |
+
<?php
|
133 |
+
echo $this->forms->ssbp_input( $opts7 ); // WPCS: XSS ok.
|
134 |
+
echo $this->forms->ssbp_input( $opts8 ); // WPCS: XSS ok.
|
135 |
+
?>
|
136 |
+
</div>
|
137 |
+
|
138 |
+
<div class="col-md-12">
|
139 |
+
<h3><?php echo esc_html__( 'Share Text', 'simple-share-buttons-adder' ); ?></h3>
|
140 |
+
</div>
|
141 |
+
<div class="col-md-6 share-text-prev">
|
142 |
+
<?php
|
143 |
+
echo $this->forms->ssbp_input( $opts3 ); // WPCS: XSS ok.
|
144 |
+
echo $this->forms->ssbp_input( $opts10 ); // WPCS: XSS ok.
|
145 |
+
echo $this->forms->ssbp_input( $opts11 ); // WPCS: XSS ok.
|
146 |
+
?>
|
147 |
+
</div>
|
148 |
+
<div class="col-md-6 share-text-prev">
|
149 |
+
<?php
|
150 |
+
echo $this->forms->ssbp_input( $opts12 ); // WPCS: XSS ok.
|
151 |
+
echo $this->forms->ssbp_input( $opts13 ); // WPCS: XSS ok.
|
152 |
+
echo $this->forms->ssbp_input( $opts9 ); // WPCS: XSS ok.
|
153 |
+
?>
|
154 |
+
</div>
|
155 |
+
|
156 |
+
<div class="col-md-12">
|
157 |
+
<h3><?php echo esc_html__( 'Container', 'simple-share-buttons-adder' ); ?></h3>
|
158 |
+
</div>
|
159 |
+
|
160 |
+
<div class="col-md-12 share-cont-prev">
|
161 |
+
<?php echo $this->forms->ssbp_input( $opts18 ); // WPCS: XSS ok. ?>
|
162 |
+
</div>
|
163 |
+
|
164 |
+
<div class="col-md-6 share-cont-prev">
|
165 |
+
<?php
|
166 |
+
echo $this->forms->ssbp_input( $opts14 ); // WPCS: XSS ok.
|
167 |
+
echo $this->forms->ssbp_input( $opts17 ); // WPCS: XSS ok.
|
168 |
+
?>
|
169 |
+
</div>
|
170 |
+
<div class="col-md-6 share-cont-prev">
|
171 |
+
<?php
|
172 |
+
echo $this->forms->ssbp_input( $opts16 ); // WPCS: XSS ok.
|
173 |
+
echo $this->forms->ssbp_input( $opts15 ); // WPCS: XSS ok.
|
174 |
+
?>
|
175 |
+
</div>
|
176 |
+
</div>
|
177 |
+
</div>
|
178 |
+
</div>
|
179 |
+
<div class="accor-wrap">
|
180 |
+
<div class="accor-tab">
|
181 |
+
<span class="accor-arrow">►</span>
|
182 |
+
<?php echo esc_html__( 'Counters', 'simple-share-buttons-adder' ); ?>
|
183 |
+
</div>
|
184 |
+
<div class="accor-content">
|
185 |
+
<div class="well">
|
186 |
+
<div class="col-md-12">
|
187 |
+
<h3><?php echo esc_html__( 'Share Counts', 'simple-share-buttons-adder' ); ?></h3>
|
188 |
+
</div>
|
189 |
+
|
190 |
+
<div class="col-md-12 share-count-prev">
|
191 |
+
<?php
|
192 |
+
echo $this->forms->ssbp_input( $opts19 ); // WPCS: XSS ok.
|
193 |
+
echo $this->forms->ssbp_input( $opts20 ); // WPCS: XSS ok.
|
194 |
+
echo $this->forms->ssbp_input( $opts21 ); // WPCS: XSS ok.
|
195 |
+
?>
|
196 |
+
|
197 |
+
<p>
|
198 |
+
<strong>
|
199 |
+
<?php echo esc_html( 'newsharecounts.com Counts for Twitter', 'simple-share-buttons-adder' ); ?>
|
200 |
+
</strong>
|
201 |
+
<br>
|
202 |
+
<?php echo esc_html__( 'You shall need to follow the instructions here before enabling this feature', 'simple-share-buttons-adder' ); ?> - <a target="_blank" href="http://newsharecounts.com/">newsharecounts.com</a>
|
203 |
+
<?php echo $this->forms->ssbp_input( $opts22 ); // WPCS: XSS ok. ?>
|
204 |
+
</p>
|
205 |
+
|
206 |
+
<h3>sharedcount.com</h3>
|
207 |
+
<p>
|
208 |
+
<?php echo esc_html__( 'Only necessary if you are experiencing issues with Facebook share counts.', 'simple-share-buttons-adder' ); ?> <a href="https://admin.sharedcount.com/admin/signup.php" target="_blank"><?php echo esc_html__( 'Signup for your free account here', 'simple-share-buttons-adder' ); ?></a>.
|
209 |
+
</p>
|
210 |
+
|
211 |
+
<?php echo $this->forms->ssbp_input( $opts23 ); // WPCS: XSS ok. ?>
|
212 |
+
</div>
|
213 |
+
<div class="col-md-6">
|
214 |
+
<?php echo $this->forms->ssbp_input( $opts24 ); // WPCS: XSS ok. ?>
|
215 |
+
</div>
|
216 |
+
<div class="col-md-6">
|
217 |
+
<?php echo $this->forms->ssbp_input( $opts25 ); // WPCS: XSS ok. ?>
|
218 |
+
</div>
|
219 |
+
</div>
|
220 |
+
</div>
|
221 |
+
</div>
|
222 |
+
|
223 |
+
<div class="accor-wrap">
|
224 |
+
<div class="accor-tab">
|
225 |
+
<span class="accor-arrow">►</span>
|
226 |
+
<?php echo esc_html__( 'Shortcode', 'simple-share-buttons-adder' ); ?>
|
227 |
+
</div>
|
228 |
+
<div class="accor-content">
|
229 |
+
<div class="well">
|
230 |
+
<div class="col-md-12 text-center">
|
231 |
+
Use the shortcode below to insert your buttons in pages and posts.
|
232 |
+
<p>
|
233 |
+
<textarea id="holdtext" style="display:none;"></textarea>
|
234 |
+
<input type="text" class="form-control ssba-buttons-shortcode" value="<?php echo esc_attr( '[ssba-buttons]' ); ?>" readonly size="40"/>
|
235 |
+
<button class="input-group-addon" type="button" id="ssba-copy-shortcode"><?php esc_html_e( 'Copy', 'simple-share-buttons-adder' ); ?></button>
|
236 |
+
</p>
|
237 |
+
</div>
|
238 |
+
</div>
|
239 |
+
</div>
|
240 |
+
</div>
|
241 |
+
|
242 |
+
<div class="accor-wrap">
|
243 |
+
<div class="accor-tab">
|
244 |
+
<span class="accor-arrow">►</span>
|
245 |
+
<?php echo esc_html__( 'Advanced', 'simple-share-buttons-adder' ); ?>
|
246 |
+
</div>
|
247 |
+
<div class="accor-content">
|
248 |
+
<div class="well">
|
249 |
+
<div class="col-md-12">
|
250 |
+
<h3><?php echo esc_html__( 'Advanced functionality', 'simple-share-buttons-adder' ); ?></h3>
|
251 |
+
</div>
|
252 |
+
|
253 |
+
<div class="col-md-12">
|
254 |
+
<?php
|
255 |
+
echo $this->forms->ssbp_input( $opts26 ); // WPCS: XSS ok.
|
256 |
+
echo $this->forms->ssbp_input( $opts27 ); // WPCS: XSS ok.
|
257 |
+
echo $this->forms->ssbp_input( $opts28 ); // WPCS: XSS ok.
|
258 |
+
echo $this->forms->ssbp_input( $opts29 ); // WPCS: XSS ok.
|
259 |
+
?>
|
260 |
+
</div>
|
261 |
+
|
262 |
+
<div class="col-md-6">
|
263 |
+
<?php echo $this->forms->ssbp_input( $opts30 ); // WPCS: XSS ok. ?>
|
264 |
+
</div>
|
265 |
+
|
266 |
+
<div class="col-md-6">
|
267 |
+
<?php echo $this->forms->ssbp_input( $opts31 ); // WPCS: XSS ok. ?>
|
268 |
+
</div>
|
269 |
+
|
270 |
+
<div class="col-md-12">
|
271 |
+
<?php echo esc_html__( 'You shall need to follow the instructions here before enabling this feature', 'simple-share-buttons-adder' ); ?> - <a target="_blank" href="https://developers.facebook.com/docs/apps/register"><?php echo esc_html( 'https://developers.facebook.com/docs/apps/register' ); ?></a>
|
272 |
+
</div>
|
273 |
+
|
274 |
+
<div class="col-md-12">
|
275 |
+
<?php echo $this->forms->ssbp_input( $opts33 ); // WPCS: XSS ok.?>
|
276 |
+
</div>
|
277 |
+
|
278 |
+
<div class="col-md-12">
|
279 |
+
<?php echo esc_html__( 'You shall need have created and added a Facebook App ID above to make use of this feature', 'simple-share-buttons-adder' ); ?>
|
280 |
+
</div>
|
281 |
+
|
282 |
+
<div class="col-md-12">
|
283 |
+
<?php echo $this->forms->ssbp_input( $opts32 ); // WPCS: XSS ok. ?>
|
284 |
+
</div>
|
285 |
+
|
286 |
+
<div class="col-md-6">
|
287 |
+
<?php
|
288 |
+
echo $this->forms->ssbp_input( $opts34 ); // WPCS: XSS ok.
|
289 |
+
echo $this->forms->ssbp_input( $opts37 ); // WPCS: XSS ok.
|
290 |
+
?>
|
291 |
+
</div>
|
292 |
+
<div class="col-md-6">
|
293 |
+
<?php
|
294 |
+
echo $this->forms->ssbp_input( $opts35 ); // WPCS: XSS ok.
|
295 |
+
echo $this->forms->ssbp_input( $opts36 ); // WPCS: XSS ok.
|
296 |
+
?>
|
297 |
+
</div>
|
298 |
+
|
299 |
+
<div class="col-md-12">
|
300 |
+
<?php
|
301 |
+
echo $this->forms->ssbp_input( $opts38 ); // WPCS: XSS ok.
|
302 |
+
echo $this->forms->ssbp_input( $opts39 ); // WPCS: XSS ok.
|
303 |
+
?>
|
304 |
+
</div>
|
305 |
+
</div>
|
306 |
+
</div>
|
307 |
+
</div>
|
308 |
+
<div class="accor-wrap">
|
309 |
+
<div class="accor-tab">
|
310 |
+
<span class="accor-arrow">►</span>
|
311 |
+
<?php echo esc_html__( 'CSS', 'simple-share-buttons-adder' ); ?>
|
312 |
+
</div>
|
313 |
+
<div class="accor-content">
|
314 |
+
<div class="well">
|
315 |
+
<div class="col-md-12">
|
316 |
+
<h3><?php echo esc_html__( 'CSS overrides', 'simple-share-buttons-adder' ); ?></h3>
|
317 |
+
</div>
|
318 |
+
|
319 |
+
<div class="col-md-12">
|
320 |
+
<blockquote>
|
321 |
+
<p><?php echo esc_html__( 'The contents of the text area below will be appended to Simple Share Button Adder\'s CSS.', 'simple-share-buttons-adder' ); ?></p>
|
322 |
+
</blockquote>
|
323 |
+
</div>
|
324 |
+
|
325 |
+
<div class="col-sm-12">
|
326 |
+
<?php echo $this->forms->ssbp_input( $opts40 ); // WPCS: XSS ok.?>
|
327 |
+
</div>
|
328 |
+
|
329 |
+
<div class="col-md-12">
|
330 |
+
<blockquote>
|
331 |
+
<p><?php echo esc_html__( 'If you want to take over control of your share buttons\' CSS entirely, turn on the switch below and enter your custom CSS.', 'simple-share-buttons-adder' ); ?> <strong><?php echo esc_html__( 'ALL of Simple Share Buttons Adder\'s CSS will be disabled', 'simple-share-buttons-adder' ); ?></strong>.</p>
|
332 |
+
</blockquote>
|
333 |
+
</div>
|
334 |
+
|
335 |
+
<div class="col-sm-12">
|
336 |
+
<?php
|
337 |
+
echo $this->forms->ssbp_input( $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|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Plus tab template.
|
4 |
+
*
|
5 |
+
* The template wrapper for the plus tab.
|
6 |
+
*
|
7 |
+
* @package SimpleShareButtonsAdder
|
8 |
+
*/
|
9 |
+
|
10 |
+
?>
|
11 |
+
<div class="tab-pane fade" id="plus-share-buttons">
|
12 |
+
<div class="col-sm-12 ssba-tab-container">
|
13 |
+
<?php echo $this->forms->ssbp_input( $opts43 ); // WPCS: XSS ok. ?>
|
14 |
+
|
15 |
+
<blockquote>
|
16 |
+
<p>
|
17 |
+
<?php echo esc_html__( 'Activating Plus Share Buttons will override your Classic Share Buttons. None of your classic settings will be lost. If you wish to switch back to classic buttons simply deactivate the Plus Share Buttons. Use the simple settings below to get started. Once you’re done you can further customize the share buttons via the options in the styling, counters, advanced, and CSS sections located below the preview.' ); ?>
|
18 |
+
</p>
|
19 |
+
</blockquote>
|
20 |
+
|
21 |
+
<label for="ssba_choices" class="control-label" data-toggle="tooltip" data-placement="right" data-original-title="<?php echo esc_attr__( 'Drag, drop and reorder those buttons that you wish to include', 'simple-share-buttons-adder' ); ?>"><?php echo esc_html__( 'Networks', 'simple-share-buttons-adder' ); ?></label>
|
22 |
+
|
23 |
+
<div>
|
24 |
+
<div class="ssbp-wrap ssbp--centred ssbp--theme-4">
|
25 |
+
<div class="ssbp-container">
|
26 |
+
<ul id="ssbasort5" class="ssbp-list ssbaSortable">
|
27 |
+
<?php echo wp_kses_post( $this->get_available_ssba( $arr_settings['ssba_selected_plus_buttons'], $arr_settings ) ); ?>
|
28 |
+
</ul>
|
29 |
+
</div>
|
30 |
+
</div>
|
31 |
+
</div>
|
32 |
+
<div class="well">
|
33 |
+
<div class="ssba-well-instruction">
|
34 |
+
<i class="fa fa-download"></i> <?php echo esc_html__( 'Drop icons below', 'simple-share-buttons-adder' ); ?>
|
35 |
+
</div>
|
36 |
+
<div class="ssbp-wrap ssbp--centred ssbp--theme-4">
|
37 |
+
<div class="ssbp-container">
|
38 |
+
<ul id="ssbasort6" class="ssba-include-list ssbp-list ssbaSortable">
|
39 |
+
<?php echo wp_kses_post( $this->get_selected_ssba( $arr_settings['ssba_selected_plus_buttons'], $arr_settings ) ); ?>
|
40 |
+
</ul>
|
41 |
+
</div>
|
42 |
+
</div>
|
43 |
+
</div>
|
44 |
+
|
45 |
+
<input type="hidden" name="ssba_selected_plus_buttons" id="ssba_selected_plus_buttons" value="<?php esc_attr( $arr_settings['ssba_selected_plus_buttons'] ); ?>"/>
|
46 |
+
|
47 |
+
<?php
|
48 |
+
echo $this->forms->ssbp_checkboxes( $opts48 ); // WPCS: XSS ok.
|
49 |
+
echo $this->forms->ssbp_input( $opts49 ); // WPCS: XSS ok.
|
50 |
+
?>
|
51 |
+
|
52 |
+
<h3 id="ssba-preview-title-2"><?php echo esc_html__( 'Preview', 'simple-share-buttons-adder' ); ?></h3>
|
53 |
+
|
54 |
+
<div id="ssba-preview" class="<?php echo esc_attr( $arr_settings['ssba_plus_position'] ); ?> ssbp-wrap ssbp--theme-<?php echo esc_attr( $arr_settings['ssba_share_button_style'] ); ?>">
|
55 |
+
<div class="ssba-preview-content ssbp-container">
|
56 |
+
<div style="display: <?php echo esc_attr( 'below' === $arr_settings['ssba_plus_text_placement'] ? 'table-footer-group' : '' ); ?>;line-height: <?php echo '' !== $arr_settings['ssba_plus_height'] ? esc_attr( (int) $arr_settings['ssba_plus_height'] + ( (int) $arr_settings['ssba_plus_margin'] * 2 ) ) : '48'; ?>px; float: <?php echo esc_attr( 'above' === $arr_settings['ssba_plus_text_placement'] ? 'none' : $arr_settings['ssba_plus_text_placement'] ); ?>; color: <?php echo esc_attr( $arr_settings['ssba_plus_font_color'] ); ?>; font-family: <?php echo esc_attr( $arr_settings['ssba_plus_font_family'] ); ?>; font-weight: <?php echo esc_attr( $arr_settings['ssba_plus_font_weight'] ); ?>; font-size: <?php echo esc_attr( $arr_settings['ssba_plus_font_size'] ); ?>px;" class="ssba-share-text-prev">
|
57 |
+
<?php echo esc_html( $arr_settings['ssba_plus_share_text'] ); ?>
|
58 |
+
</div>
|
59 |
+
|
60 |
+
<ul class="ssbp-list">
|
61 |
+
<?php foreach ( $arr_buttons as $buttons ) :
|
62 |
+
$button = strtolower( str_replace( ' ', '_', str_replace( '+', '', $buttons['full_name'] ) ) ); ?>
|
63 |
+
<li style="margin: <?php echo esc_attr( $arr_settings['ssba_plus_margin'] ); ?>px;" class="ssbp-li--<?php echo esc_attr( $button );
|
64 |
+
if ( ! in_array( $button, explode( ',', $arr_settings['ssba_selected_plus_buttons'] ), true ) ) {
|
65 |
+
echo esc_attr( ' ssba-hide-button' );
|
66 |
+
}
|
67 |
+
?>">
|
68 |
+
<a href="#" class="ssbp-btn ssbp-<?php echo esc_attr( $button ); ?>" style="height: <?php echo esc_attr( $arr_settings['ssba_plus_height'] ); ?>px; width: <?php echo esc_attr( $arr_settings['ssba_plus_width'] ); ?>px; <?php echo '' !== $arr_settings['ssba_plus_button_color'] ? esc_attr( 'background: ' . $arr_settings['ssba_plus_button_color'] . ';' ) : ''; ?>"><div title="<?php echo esc_attr( $buttons['full_name'] ); ?>" class="ssbp-text"><?php echo esc_html( $buttons['full_name'] ); ?></div></a>
|
69 |
+
<span class="<?php echo 'Y' !== $arr_settings['ssba_plus_show_share_count'] ? esc_attr( 'ssba-hide-button' ) : ''; ?> ssbp-each-share">1.8k</span>
|
70 |
+
</li>
|
71 |
+
<?php endforeach; ?>
|
72 |
+
</ul>
|
73 |
+
</div>
|
74 |
+
</div>
|
75 |
+
<div class="accor-wrap">
|
76 |
+
<div class="accor-tab">
|
77 |
+
<span class="accor-arrow">►</span>
|
78 |
+
<?php echo esc_html__( 'Styling', 'simple-share-buttons-adder' ); ?>
|
79 |
+
</div>
|
80 |
+
<div class="accor-content">
|
81 |
+
<div class="well">
|
82 |
+
<div class="col-md-12">
|
83 |
+
<h3><?php echo esc_html__( 'Appearance', 'simple-share-buttons-adder' ); ?></h3>
|
84 |
+
</div>
|
85 |
+
|
86 |
+
<div class="col-md-6">
|
87 |
+
<?php echo $this->forms->ssbp_input( $opts44 ); // WPCS: XSS ok. ?>
|
88 |
+
</div>
|
89 |
+
<div class="col-md-6">
|
90 |
+
<?php echo $this->forms->ssbp_input( $opts7p ); // WPCS: XSS ok. ?>
|
91 |
+
</div>
|
92 |
+
|
93 |
+
<div class="col-md-12">
|
94 |
+
<h3><?php echo esc_html__( 'Size', 'simple-share-buttons-adder' ); ?></h3>
|
95 |
+
</div>
|
96 |
+
|
97 |
+
<div class="col-md-6">
|
98 |
+
<?php echo $this->forms->ssbp_input( $plus_height ); // WPCS: XSS ok. ?>
|
99 |
+
<?php echo $this->forms->ssbp_input( $plus_width ); // WPCS: XSS ok. ?>
|
100 |
+
</div>
|
101 |
+
<div class="col-md-6">
|
102 |
+
<?php echo $this->forms->ssbp_input( $plus_icon_size ); // WPCS: XSS ok. ?>
|
103 |
+
<?php echo $this->forms->ssbp_input( $plus_margin ); // WPCS: XSS ok. ?>
|
104 |
+
</div>
|
105 |
+
|
106 |
+
<div class="col-md-12">
|
107 |
+
<h3><?php echo esc_html__( 'Color Overrides', 'simple-share-buttons-adder' ); ?></h3>
|
108 |
+
</div>
|
109 |
+
|
110 |
+
<div class="col-md-6">
|
111 |
+
<?php echo $this->forms->ssbp_input( $plus_button_color ); // WPCS: XSS ok. ?>
|
112 |
+
<?php echo $this->forms->ssbp_input( $plus_hover_color ); // WPCS: XSS ok. ?>
|
113 |
+
</div>
|
114 |
+
<div class="col-md-6">
|
115 |
+
<?php echo $this->forms->ssbp_input( $plus_icon_color ); // WPCS: XSS ok. ?>
|
116 |
+
<?php echo $this->forms->ssbp_input( $plus_icon_hover_color ); // WPCS: XSS ok. ?>
|
117 |
+
</div>
|
118 |
+
|
119 |
+
<div class="col-md-12">
|
120 |
+
<h3><?php echo esc_html__( 'Share Text', 'simple-share-buttons-adder' ); ?></h3>
|
121 |
+
</div>
|
122 |
+
<div class="col-md-6 share-text-prev">
|
123 |
+
<?php
|
124 |
+
echo $this->forms->ssbp_input( $opts3p ); // WPCS: XSS ok.
|
125 |
+
echo $this->forms->ssbp_input( $opts10p ); // WPCS: XSS ok.
|
126 |
+
echo $this->forms->ssbp_input( $opts11p ); // WPCS: XSS ok.
|
127 |
+
?>
|
128 |
+
</div>
|
129 |
+
<div class="col-md-6 share-text-prev">
|
130 |
+
<?php
|
131 |
+
echo $this->forms->ssbp_input( $opts12p ); // WPCS: XSS ok.
|
132 |
+
echo $this->forms->ssbp_input( $opts13p ); // WPCS: XSS ok.
|
133 |
+
echo $this->forms->ssbp_input( $opts9p ); // WPCS: XSS ok.
|
134 |
+
?>
|
135 |
+
</div>
|
136 |
+
</div>
|
137 |
+
</div>
|
138 |
+
</div>
|
139 |
+
<div class="accor-wrap">
|
140 |
+
<div class="accor-tab">
|
141 |
+
<span class="accor-arrow">►</span>
|
142 |
+
<?php echo esc_html__( 'Counters', 'simple-share-buttons-adder' ); ?>
|
143 |
+
</div>
|
144 |
+
<div class="accor-content">
|
145 |
+
<div class="well">
|
146 |
+
<div class="col-md-12">
|
147 |
+
<h3><?php echo esc_html__( 'Share Counts', 'simple-share-buttons-adder' ); ?></h3>
|
148 |
+
</div>
|
149 |
+
|
150 |
+
<div class="col-md-12 share-count-prev">
|
151 |
+
<?php
|
152 |
+
echo $this->forms->ssbp_input( $opts19p ); // WPCS: XSS ok.
|
153 |
+
echo $this->forms->ssbp_input( $opts20p ); // WPCS: XSS ok.
|
154 |
+
?>
|
155 |
+
|
156 |
+
<p>
|
157 |
+
<strong>
|
158 |
+
<?php echo esc_html( 'newsharecounts.com Counts for Twitter', 'simple-share-buttons-adder' ); ?>
|
159 |
+
</strong>
|
160 |
+
<br>
|
161 |
+
<?php echo esc_html__( 'You shall need to follow the instructions here before enabling this feature', 'simple-share-buttons-adder' ); ?> - <a target="_blank" href="http://newsharecounts.com/">newsharecounts.com</a>
|
162 |
+
<?php echo $this->forms->ssbp_input( $opts22 ); // WPCS: XSS ok. ?>
|
163 |
+
</p>
|
164 |
+
|
165 |
+
<h3>sharedcount.com</h3>
|
166 |
+
<p>
|
167 |
+
<?php echo esc_html__( 'Only necessary if you are experiencing issues with Facebook share counts.', 'simple-share-buttons-adder' ); ?> <a href="https://admin.sharedcount.com/admin/signup.php" target="_blank"><?php echo esc_html__( 'Signup for your free account here', 'simple-share-buttons-adder' ); ?></a>.
|
168 |
+
</p>
|
169 |
+
|
170 |
+
<?php echo $this->forms->ssbp_input( $opts23 ); // WPCS: XSS ok. ?>
|
171 |
+
</div>
|
172 |
+
<div class="col-md-6">
|
173 |
+
<?php echo $this->forms->ssbp_input( $opts24 ); // WPCS: XSS ok. ?>
|
174 |
+
</div>
|
175 |
+
<div class="col-md-6">
|
176 |
+
<?php echo $this->forms->ssbp_input( $opts25 ); // WPCS: XSS ok. ?>
|
177 |
+
</div>
|
178 |
+
</div>
|
179 |
+
</div>
|
180 |
+
</div>
|
181 |
+
<div class="accor-wrap">
|
182 |
+
<div class="accor-tab">
|
183 |
+
<span class="accor-arrow">►</span>
|
184 |
+
<?php echo esc_html__( 'Advanced', 'simple-share-buttons-adder' ); ?>
|
185 |
+
</div>
|
186 |
+
<div class="accor-content">
|
187 |
+
<div class="well">
|
188 |
+
<div class="col-md-12">
|
189 |
+
<h3><?php echo esc_html__( 'Advanced functionality', 'simple-share-buttons-adder' ); ?></h3>
|
190 |
+
</div>
|
191 |
+
|
192 |
+
<div class="col-md-12">
|
193 |
+
<?php
|
194 |
+
echo $this->forms->ssbp_input( $opts26p ); // WPCS: XSS ok.
|
195 |
+
echo $this->forms->ssbp_input( $opts28p ); // WPCS: XSS ok.
|
196 |
+
echo $this->forms->ssbp_input( $opts29p ); // WPCS: XSS ok.
|
197 |
+
?>
|
198 |
+
</div>
|
199 |
+
|
200 |
+
<div class="col-md-6">
|
201 |
+
<?php echo $this->forms->ssbp_input( $opts30p ); // WPCS: XSS ok. ?>
|
202 |
+
</div>
|
203 |
+
|
204 |
+
<div class="col-md-6">
|
205 |
+
<?php echo $this->forms->ssbp_input( $opts31p ); // WPCS: XSS ok. ?>
|
206 |
+
</div>
|
207 |
+
|
208 |
+
<div class="col-md-12">
|
209 |
+
<?php echo esc_html__( 'You shall need to follow the instructions here before enabling this feature', 'simple-share-buttons-adder' ); ?> - <a target="_blank" href="https://developers.facebook.com/docs/apps/register"><?php echo esc_html( 'https://developers.facebook.com/docs/apps/register' ); ?></a>
|
210 |
+
</div>
|
211 |
+
|
212 |
+
<div class="col-md-12">
|
213 |
+
<?php echo $this->forms->ssbp_input( $opts33p ); // WPCS: XSS ok.?>
|
214 |
+
</div>
|
215 |
+
|
216 |
+
<div class="col-md-12">
|
217 |
+
<?php echo esc_html__( 'You shall need have created and added a Facebook App ID above to make use of this feature', 'simple-share-buttons-adder' ); ?>
|
218 |
+
</div>
|
219 |
+
|
220 |
+
<div class="col-md-12">
|
221 |
+
<?php echo $this->forms->ssbp_input( $opts32p ); // WPCS: XSS ok. ?>
|
222 |
+
</div>
|
223 |
+
|
224 |
+
<div class="col-md-6">
|
225 |
+
<?php
|
226 |
+
echo $this->forms->ssbp_input( $opts34p ); // WPCS: XSS ok.
|
227 |
+
echo $this->forms->ssbp_input( $opts37p ); // WPCS: XSS ok.
|
228 |
+
?>
|
229 |
+
</div>
|
230 |
+
<div class="col-md-6">
|
231 |
+
<?php
|
232 |
+
echo $this->forms->ssbp_input( $opts35p ); // WPCS: XSS ok.
|
233 |
+
echo $this->forms->ssbp_input( $opts36p ); // WPCS: XSS ok.
|
234 |
+
?>
|
235 |
+
</div>
|
236 |
+
|
237 |
+
<div class="col-md-12">
|
238 |
+
<?php
|
239 |
+
echo $this->forms->ssbp_input( $opts38p ); // WPCS: XSS ok.
|
240 |
+
echo $this->forms->ssbp_input( $opts39p ); // WPCS: XSS ok.
|
241 |
+
?>
|
242 |
+
</div>
|
243 |
+
</div>
|
244 |
+
</div>
|
245 |
+
</div>
|
246 |
+
<div class="accor-wrap">
|
247 |
+
<div class="accor-tab">
|
248 |
+
<span class="accor-arrow">►</span>
|
249 |
+
<?php echo esc_html__( 'CSS', 'simple-share-buttons-adder' ); ?>
|
250 |
+
</div>
|
251 |
+
<div class="accor-content">
|
252 |
+
<div class="well">
|
253 |
+
<div class="col-md-12">
|
254 |
+
<h3><?php echo esc_html__( 'CSS overrides', 'simple-share-buttons-adder' ); ?></h3>
|
255 |
+
</div>
|
256 |
+
|
257 |
+
<div class="col-md-12">
|
258 |
+
<blockquote>
|
259 |
+
<p><?php echo esc_html__( 'The contents of the text area below will be appended to Simple Share Button Adder\'s CSS.', 'simple-share-buttons-adder' ); ?></p>
|
260 |
+
</blockquote>
|
261 |
+
</div>
|
262 |
+
|
263 |
+
<div class="col-sm-12">
|
264 |
+
<?php echo $this->forms->ssbp_input( $opts40p ); // WPCS: XSS ok.?>
|
265 |
+
</div>
|
266 |
+
|
267 |
+
<div class="col-md-12">
|
268 |
+
<blockquote>
|
269 |
+
<p><?php echo esc_html__( 'If you want to take over control of your share buttons\' CSS entirely, turn on the switch below and enter your custom CSS.', 'simple-share-buttons-adder' ); ?> <strong><?php echo esc_html__( 'ALL of Simple Share Buttons Adder\'s CSS will be disabled', 'simple-share-buttons-adder' ); ?></strong>.</p>
|
270 |
+
</blockquote>
|
271 |
+
</div>
|
272 |
+
|
273 |
+
<div class="col-sm-12">
|
274 |
+
<?php
|
275 |
+
echo $this->forms->ssbp_input( $opts41p ); // WPCS: XSS ok.
|
276 |
+
echo $this->forms->ssbp_input( $opts42p ); // WPCS: XSS ok.
|
277 |
+
?>
|
278 |
+
</div>
|
279 |
+
</div>
|
280 |
+
</div>
|
281 |
+
</div>
|
282 |
+
</div>
|
283 |
+
</div>
|
templates/share-bar-tab.php
ADDED
@@ -0,0 +1,262 @@
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
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|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
|
Â
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Share bar tab template.
|
4 |
+
*
|
5 |
+
* The template wrapper for the share bar tab.
|
6 |
+
*
|
7 |
+
* @package SimpleShareButtonsAdder
|
8 |
+
*/
|
9 |
+
|
10 |
+
?>
|
11 |
+
<div class="tab-pane fade" id="share-bar">
|
12 |
+
<div class="col-sm-12 ssba-tab-container">
|
13 |
+
<?php echo $this->forms->ssbp_input( $share_bar ); // WPCS: XSS ok. ?>
|
14 |
+
|
15 |
+
<blockquote>
|
16 |
+
<p>
|
17 |
+
<?php echo esc_html__( 'The', 'simple-share-buttons-adder' ); ?> <b><?php echo esc_html__( 'simple', 'simple-share-buttons-adder' ); ?></b> <?php echo esc_html__( 'options you can see below are all you need to complete to get your', 'simple-share-buttons-adder' ); ?> <b><?php echo esc_html__( 'share buttons', 'simple-share-buttons-adder' ); ?></b> <?php echo esc_html__( 'to appear on your website. Once you\'re done here, you can further customise the share buttons via the Styling tab.', 'simple-share-buttons-adder' ); ?>
|
18 |
+
</p>
|
19 |
+
</blockquote>
|
20 |
+
|
21 |
+
<label for="ssba_choices" class="control-label" data-toggle="tooltip" data-placement="right" data-original-title="<?php echo esc_attr__( 'Drag, drop and reorder those buttons that you wish to include', 'simple-share-buttons-adder' ); ?>"><?php echo esc_html__( 'Networks', 'simple-share-buttons-adder' ); ?></label>
|
22 |
+
|
23 |
+
<div class="">
|
24 |
+
<div class="ssbp-wrap ssbp--centred ssbp--theme-4">
|
25 |
+
<div class="ssbp-container">
|
26 |
+
<ul id="ssbasort3" class="ssbp-list ssbaSortable">
|
27 |
+
<?php echo wp_kses_post( $this->get_available_ssba( $arr_settings['ssba_selected_share_buttons'], $arr_settings ) ); ?>
|
28 |
+
</ul>
|
29 |
+
</div>
|
30 |
+
</div>
|
31 |
+
<div class="well">
|
32 |
+
<div class="ssba-well-instruction">
|
33 |
+
<i class="fa fa-download"></i> <?php echo esc_html__( 'Drop icons below', 'simple-share-buttons-adder' ); ?>
|
34 |
+
</div>
|
35 |
+
<div class="ssbp-wrap ssbp--centred ssbp--theme-4">
|
36 |
+
<div class="ssbp-container">
|
37 |
+
<ul id="ssbasort4" class="ssba-include-list ssbp-list ssbaSortable">
|
38 |
+
<?php echo wp_kses_post( $this->get_selected_ssba( $arr_settings['ssba_selected_share_buttons'], $arr_settings ) ); ?>
|
39 |
+
</ul>
|
40 |
+
</div>
|
41 |
+
</div>
|
42 |
+
</div>
|
43 |
+
|
44 |
+
<input type="hidden" name="ssba_selected_share_buttons" id="ssba_selected_share_buttons" value="<?php esc_attr( $arr_settings['ssba_selected_share_buttons'] ); ?>"/>
|
45 |
+
</div>
|
46 |
+
|
47 |
+
<div id="ssba-preview-2" class="<?php echo esc_attr( $arr_settings['ssba_share_bar_position'] ); ?> ssbp-wrap ssbp--theme-<?php echo esc_attr( $arr_settings['ssba_share_bar_style'] ); ?>">
|
48 |
+
<div class="ssbp-container">
|
49 |
+
<ul class="ssbp-list">
|
50 |
+
<?php foreach ( $arr_buttons as $buttons ) :
|
51 |
+
$button = strtolower( str_replace( ' ', '_', str_replace( '+', '', $buttons['full_name'] ) ) ); ?>
|
52 |
+
<li style="margin: <?php echo esc_attr( $arr_settings['ssba_share_margin'] ); ?>px;" class="ssbp-li--<?php echo esc_attr( $button );
|
53 |
+
if ( ! in_array( $button, explode( ',', $arr_settings['ssba_selected_share_buttons'] ), true ) ) {
|
54 |
+
echo esc_attr( ' ssba-hide-button' );
|
55 |
+
}
|
56 |
+
?>">
|
57 |
+
<a href="#" class="ssbp-btn ssbp-<?php echo esc_attr( $button ); ?>" style="height: <?php echo esc_attr( $arr_settings['ssba_share_height'] ); ?>px; width: <?php echo esc_attr( $arr_settings['ssba_share_width'] ); ?>px; <?php echo '' !== $arr_settings['ssba_share_button_color'] ? esc_attr( 'background: ' . $arr_settings['ssba_share_button_color'] . ';' ) : ''; ?>"><div title="<?php echo esc_attr( $buttons['full_name'] ); ?>" class="ssbp-text"><?php echo esc_html( $buttons['full_name'] ); ?></div></a>
|
58 |
+
<span class="<?php echo 'Y' !== $arr_settings['ssba_share_show_share_count'] ? esc_attr( 'ssba-hide-button' ) : ''; ?> ssbp-each-share">1.8k</span>
|
59 |
+
</li>
|
60 |
+
<?php endforeach; ?>
|
61 |
+
</ul>
|
62 |
+
</div>
|
63 |
+
</div>
|
64 |
+
<?php
|
65 |
+
echo $this->forms->ssbp_checkboxes( $opts45 ); // WPCS: XSS ok.
|
66 |
+
echo $this->forms->ssbp_checkboxes( $share_bar_display ); // WPCS: XSS ok.
|
67 |
+
?>
|
68 |
+
<div class="accor-wrap">
|
69 |
+
<div class="accor-tab">
|
70 |
+
<span class="accor-arrow">►</span>
|
71 |
+
<?php echo esc_html__( 'Styling', 'simple-share-buttons-adder' ); ?>
|
72 |
+
</div>
|
73 |
+
<div class="accor-content">
|
74 |
+
<div class="well">
|
75 |
+
<div class="col-md-12">
|
76 |
+
<h3><?php echo esc_html__( 'Appearance', 'simple-share-buttons-adder' ); ?></h3>
|
77 |
+
</div>
|
78 |
+
|
79 |
+
<div class="col-md-6">
|
80 |
+
<?php echo $this->forms->ssbp_input( $opts46 ); // WPCS: XSS ok. ?>
|
81 |
+
</div>
|
82 |
+
<div class="col-md-6">
|
83 |
+
<?php echo $this->forms->ssbp_input( $opts47 ); // WPCS: XSS ok. ?>
|
84 |
+
</div>
|
85 |
+
|
86 |
+
<div class="col-md-12">
|
87 |
+
<?php echo $this->forms->ssbp_input( $mobile_breakpoint ); // WPCS: XSS ok. ?>
|
88 |
+
</div>
|
89 |
+
|
90 |
+
<div class="col-md-12">
|
91 |
+
<h3><?php echo esc_html__( 'Size', 'simple-share-buttons-adder' ); ?></h3>
|
92 |
+
</div>
|
93 |
+
|
94 |
+
<div class="col-md-6">
|
95 |
+
<?php echo $this->forms->ssbp_input( $share_height ); // WPCS: XSS ok. ?>
|
96 |
+
<?php echo $this->forms->ssbp_input( $share_width ); // WPCS: XSS ok. ?>
|
97 |
+
</div>
|
98 |
+
<div class="col-md-6">
|
99 |
+
<?php echo $this->forms->ssbp_input( $share_icon_size ); // WPCS: XSS ok. ?>
|
100 |
+
<?php echo $this->forms->ssbp_input( $share_margin ); // WPCS: XSS ok. ?>
|
101 |
+
</div>
|
102 |
+
|
103 |
+
<div class="col-md-12">
|
104 |
+
<h3><?php echo esc_html__( 'Color Overrides', 'simple-share-buttons-adder' ); ?></h3>
|
105 |
+
</div>
|
106 |
+
|
107 |
+
<div class="col-md-6">
|
108 |
+
<?php echo $this->forms->ssbp_input( $share_button_color ); // WPCS: XSS ok. ?>
|
109 |
+
<?php echo $this->forms->ssbp_input( $share_hover_color ); // WPCS: XSS ok. ?>
|
110 |
+
</div>
|
111 |
+
<div class="col-md-6">
|
112 |
+
<?php echo $this->forms->ssbp_input( $share_icon_color ); // WPCS: XSS ok. ?>
|
113 |
+
<?php echo $this->forms->ssbp_input( $share_icon_hover_color ); // WPCS: XSS ok. ?>
|
114 |
+
</div>
|
115 |
+
</div>
|
116 |
+
</div>
|
117 |
+
</div>
|
118 |
+
<div class="accor-wrap">
|
119 |
+
<div class="accor-tab">
|
120 |
+
<span class="accor-arrow">►</span>
|
121 |
+
<?php echo esc_html__( 'Counters', 'simple-share-buttons-adder' ); ?>
|
122 |
+
</div>
|
123 |
+
<div class="accor-content">
|
124 |
+
<div class="well">
|
125 |
+
<div class="col-md-12">
|
126 |
+
<h3><?php echo esc_html__( 'Share Counts', 'simple-share-buttons-adder' ); ?></h3>
|
127 |
+
</div>
|
128 |
+
|
129 |
+
<div class="col-md-12 share-count-prev">
|
130 |
+
<?php
|
131 |
+
echo $this->forms->ssbp_input( $opts19s ); // WPCS: XSS ok.
|
132 |
+
echo $this->forms->ssbp_input( $opts20s ); // WPCS: XSS ok.
|
133 |
+
?>
|
134 |
+
|
135 |
+
<p>
|
136 |
+
<strong>
|
137 |
+
<?php echo esc_html( 'newsharecounts.com Counts for Twitter', 'simple-share-buttons-adder' ); ?>
|
138 |
+
</strong>
|
139 |
+
<br>
|
140 |
+
<?php echo esc_html__( 'You shall need to follow the instructions here before enabling this feature', 'simple-share-buttons-adder' ); ?> - <a target="_blank" href="http://newsharecounts.com/">newsharecounts.com</a>
|
141 |
+
<?php echo $this->forms->ssbp_input( $opts22 ); // WPCS: XSS ok. ?>
|
142 |
+
</p>
|
143 |
+
|
144 |
+
<h3>sharedcount.com</h3>
|
145 |
+
<p>
|
146 |
+
<?php echo esc_html__( 'Only necessary if you are experiencing issues with Facebook share counts.', 'simple-share-buttons-adder' ); ?> <a href="https://admin.sharedcount.com/admin/signup.php" target="_blank"><?php echo esc_html__( 'Signup for your free account here', 'simple-share-buttons-adder' ); ?></a>.
|
147 |
+
</p>
|
148 |
+
|
149 |
+
<?php echo $this->forms->ssbp_input( $opts23 ); // WPCS: XSS ok. ?>
|
150 |
+
</div>
|
151 |
+
<div class="col-md-6">
|
152 |
+
<?php echo $this->forms->ssbp_input( $opts24 ); // WPCS: XSS ok. ?>
|
153 |
+
</div>
|
154 |
+
<div class="col-md-6">
|
155 |
+
<?php echo $this->forms->ssbp_input( $opts25 ); // WPCS: XSS ok. ?>
|
156 |
+
</div>
|
157 |
+
</div>
|
158 |
+
</div>
|
159 |
+
</div>
|
160 |
+
<div class="accor-wrap">
|
161 |
+
<div class="accor-tab">
|
162 |
+
<span class="accor-arrow">►</span>
|
163 |
+
<?php echo esc_html__( 'Advanced', 'simple-share-buttons-adder' ); ?>
|
164 |
+
</div>
|
165 |
+
<div class="accor-content">
|
166 |
+
<div class="well">
|
167 |
+
<div class="col-md-12">
|
168 |
+
<h3><?php echo esc_html__( 'Advanced functionality', 'simple-share-buttons-adder' ); ?></h3>
|
169 |
+
</div>
|
170 |
+
|
171 |
+
<div class="col-md-12">
|
172 |
+
<?php
|
173 |
+
echo $this->forms->ssbp_input( $opts26s ); // WPCS: XSS ok.
|
174 |
+
echo $this->forms->ssbp_input( $opts28s ); // WPCS: XSS ok.
|
175 |
+
echo $this->forms->ssbp_input( $opts29s ); // WPCS: XSS ok.
|
176 |
+
?>
|
177 |
+
</div>
|
178 |
+
|
179 |
+
<div class="col-md-6">
|
180 |
+
<?php echo $this->forms->ssbp_input( $opts30s ); // WPCS: XSS ok. ?>
|
181 |
+
</div>
|
182 |
+
|
183 |
+
<div class="col-md-6">
|
184 |
+
<?php echo $this->forms->ssbp_input( $opts31s ); // WPCS: XSS ok. ?>
|
185 |
+
</div>
|
186 |
+
|
187 |
+
<div class="col-md-12">
|
188 |
+
<?php echo esc_html__( 'You shall need to follow the instructions here before enabling this feature', 'simple-share-buttons-adder' ); ?> - <a target="_blank" href="https://developers.facebook.com/docs/apps/register"><?php echo esc_html( 'https://developers.facebook.com/docs/apps/register' ); ?></a>
|
189 |
+
</div>
|
190 |
+
|
191 |
+
<div class="col-md-12">
|
192 |
+
<?php echo $this->forms->ssbp_input( $opts33s ); // WPCS: XSS ok.?>
|
193 |
+
</div>
|
194 |
+
|
195 |
+
<div class="col-md-12">
|
196 |
+
<?php echo esc_html__( 'You shall need have created and added a Facebook App ID above to make use of this feature', 'simple-share-buttons-adder' ); ?>
|
197 |
+
</div>
|
198 |
+
|
199 |
+
<div class="col-md-12">
|
200 |
+
<?php echo $this->forms->ssbp_input( $opts32s ); // WPCS: XSS ok. ?>
|
201 |
+
</div>
|
202 |
+
|
203 |
+
<div class="col-md-6">
|
204 |
+
<?php
|
205 |
+
echo $this->forms->ssbp_input( $opts34s ); // WPCS: XSS ok.
|
206 |
+
echo $this->forms->ssbp_input( $opts37s ); // WPCS: XSS ok.
|
207 |
+
?>
|
208 |
+
</div>
|
209 |
+
<div class="col-md-6">
|
210 |
+
<?php
|
211 |
+
echo $this->forms->ssbp_input( $opts35s ); // WPCS: XSS ok.
|
212 |
+
echo $this->forms->ssbp_input( $opts36s ); // WPCS: XSS ok.
|
213 |
+
?>
|
214 |
+
</div>
|
215 |
+
|
216 |
+
<div class="col-md-12">
|
217 |
+
<?php
|
218 |
+
echo $this->forms->ssbp_input( $opts38s ); // WPCS: XSS ok.
|
219 |
+
echo $this->forms->ssbp_input( $opts39s ); // WPCS: XSS ok.
|
220 |
+
?>
|
221 |
+
</div>
|
222 |
+
</div>
|
223 |
+
</div>
|
224 |
+
</div>
|
225 |
+
<div class="accor-wrap">
|
226 |
+
<div class="accor-tab">
|
227 |
+
<span class="accor-arrow">►</span>
|
228 |
+
<?php echo esc_html__( 'CSS', 'simple-share-buttons-adder' ); ?>
|
229 |
+
</div>
|
230 |
+
<div class="accor-content">
|
231 |
+
<div class="well">
|
232 |
+
<div class="col-md-12">
|
233 |
+
<h3><?php echo esc_html__( 'CSS overrides', 'simple-share-buttons-adder' ); ?></h3>
|
234 |
+
</div>
|
235 |
+
|
236 |
+
<div class="col-md-12">
|
237 |
+
<blockquote>
|
238 |
+
<p><?php echo esc_html__( 'The contents of the text area below will be appended to Simple Share Button Adder\'s CSS.', 'simple-share-buttons-adder' ); ?></p>
|
239 |
+
</blockquote>
|
240 |
+
</div>
|
241 |
+
|
242 |
+
<div class="col-sm-12">
|
243 |
+
<?php echo $this->forms->ssbp_input( $opts40s ); // WPCS: XSS ok.?>
|
244 |
+
</div>
|
245 |
+
|
246 |
+
<div class="col-md-12">
|
247 |
+
<blockquote>
|
248 |
+
<p><?php echo esc_html__( 'If you want to take over control of your share buttons\' CSS entirely, turn on the switch below and enter your custom CSS.', 'simple-share-buttons-adder' ); ?> <strong><?php echo esc_html__( 'ALL of Simple Share Buttons Adder\'s CSS will be disabled', 'simple-share-buttons-adder' ); ?></strong>.</p>
|
249 |
+
</blockquote>
|
250 |
+
</div>
|
251 |
+
|
252 |
+
<div class="col-sm-12">
|
253 |
+
<?php
|
254 |
+
echo $this->forms->ssbp_input( $opts41s ); // WPCS: XSS ok.
|
255 |
+
echo $this->forms->ssbp_input( $opts42s ); // WPCS: XSS ok.
|
256 |
+
?>
|
257 |
+
</div>
|
258 |
+
</div>
|
259 |
+
</div>
|
260 |
+
</div>
|
261 |
+
</div>
|
262 |
+
</div>
|