Version Description
- added uninstall feedback
Download this release
Release Info
Developer | machothemes |
Plugin | Kiwi Social Share – Social Media Share Buttons & Icons |
Version | 2.0.7 |
Comparing to | |
See all releases |
Code changes from version 2.0.5 to 2.0.7
- LICENSE +338 -338
- assets/css/admin.css +2212 -2201
- assets/css/admin.min.css +1 -1
- assets/css/frontend.css +411 -406
- assets/css/frontend.min.css +1 -1
- assets/css/index.php +2 -2
- assets/img/index.php +2 -2
- assets/index.php +2 -2
- assets/js/KiwiClickToTweet.js +140 -140
- assets/js/KiwiClickToTweet.min.js +1 -1
- assets/js/admin.js +16 -16
- assets/js/frontend.js +9 -9
- assets/js/index.php +2 -2
- assets/js/kiwi.js +742 -742
- assets/js/kiwi.min.js +1 -1
- assets/vendors/index.php +2 -2
- changelog.txt +21 -16
- includes/backend/index.php +2 -2
- includes/backend/kiwi-social-share-backend.php +67 -67
- includes/backend/parts/epsilon-tabs.php +35 -35
- includes/backend/parts/index.php +1 -1
- includes/backend/parts/kiwi-modal-popup.php +93 -93
- includes/backend/parts/kiwi-networks-ordering.php +56 -56
- includes/backend/parts/kiwi-tab-advanced.php +291 -291
- includes/backend/parts/kiwi-tab-article-bar.php +258 -258
- includes/backend/parts/kiwi-tab-floating-bar.php +164 -164
- includes/backend/parts/kiwi-tab-networks.php +187 -187
- includes/backend/parts/kiwi-tab-social-identity.php +28 -28
- includes/class-kiwi-social-share-autoloader.php +88 -88
- includes/class-kiwi-social-share.php +358 -352
- includes/frontend/social-bars/class-kiwi-social-share-view-article-bar.php +149 -142
- includes/frontend/social-bars/class-kiwi-social-share-view-floating-bar.php +123 -123
- includes/frontend/social-bars/class-kiwi-social-share-view-shortcode-bar.php +75 -75
- includes/frontend/social-bars/class-kiwi-social-share-view.php +123 -123
- includes/frontend/social-buttons/class-kiwi-social-share-social-button-facebook.php +51 -51
- includes/frontend/social-buttons/class-kiwi-social-share-social-button-google-plus.php +64 -64
- includes/frontend/social-buttons/class-kiwi-social-share-social-button-linkedin.php +54 -54
- includes/frontend/social-buttons/class-kiwi-social-share-social-button-pinterest.php +76 -76
- includes/frontend/social-buttons/class-kiwi-social-share-social-button-twitter.php +63 -63
- includes/frontend/social-buttons/class-kiwi-social-share-social-button.php +146 -146
- includes/index.php +2 -2
- includes/interface/class-kiwi-social-share-interface-frontend.php +24 -24
- includes/interface/class-kiwi-social-share-interface-social.php +46 -46
- includes/lib/class-epsilon-plugin-request.php +225 -0
- includes/lib/class-kiwi-social-share-click-to-tweet.php +127 -127
- includes/lib/class-kiwi-social-share-feedback.php +252 -0
- includes/lib/class-kiwi-social-share-frontend.php +162 -162
- includes/lib/class-kiwi-social-share-highlight-share.php +122 -122
- includes/lib/class-kiwi-social-share-importer.php +289 -289
- includes/lib/class-kiwi-social-share-integration.php +185 -185
- includes/lib/class-kiwi-social-share-metaboxes.php +131 -131
- includes/lib/class-kiwi-social-share-sanitizers.php +210 -210
- includes/lib/class-kiwi-social-share-settings.php +245 -245
- includes/lib/class-kiwi-social-share-shortcodes.php +229 -229
- includes/lib/cmb2/bootstrap.php +77 -77
- includes/lib/cmb2/css/sass/cmb2-display.css +29 -29
- includes/lib/cmb2/css/sass/cmb2-front.css +983 -983
- includes/lib/cmb2/css/sass/cmb2.css +943 -943
- includes/lib/cmb2/init.php +193 -193
- includes/lib/helpers/class-kiwi-social-share-helper.php +428 -428
- index.php +2 -2
- kiwi-social-share.php +49 -49
- languages/index.php +2 -2
- languages/kiwi-social-share.pot +79 -12
- readme.txt +141 -120
- uninstall.php +11 -11
LICENSE
CHANGED
@@ -1,339 +1,339 @@
|
|
1 |
-
GNU GENERAL PUBLIC LICENSE
|
2 |
-
Version 2, June 1991
|
3 |
-
|
4 |
-
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
|
5 |
-
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
6 |
-
Everyone is permitted to copy and distribute verbatim copies
|
7 |
-
of this license document, but changing it is not allowed.
|
8 |
-
|
9 |
-
Preamble
|
10 |
-
|
11 |
-
The licenses for most software are designed to take away your
|
12 |
-
freedom to share and change it. By contrast, the GNU General Public
|
13 |
-
License is intended to guarantee your freedom to share and change free
|
14 |
-
software--to make sure the software is free for all its users. This
|
15 |
-
General Public License applies to most of the Free Software
|
16 |
-
Foundation's software and to any other program whose authors commit to
|
17 |
-
using it. (Some other Free Software Foundation software is covered by
|
18 |
-
the GNU Lesser General Public License instead.) You can apply it to
|
19 |
-
your programs, too.
|
20 |
-
|
21 |
-
When we speak of free software, we are referring to freedom, not
|
22 |
-
price. Our General Public Licenses are designed to make sure that you
|
23 |
-
have the freedom to distribute copies of free software (and charge for
|
24 |
-
this service if you wish), that you receive source code or can get it
|
25 |
-
if you want it, that you can change the software or use pieces of it
|
26 |
-
in new free programs; and that you know you can do these things.
|
27 |
-
|
28 |
-
To protect your rights, we need to make restrictions that forbid
|
29 |
-
anyone to deny you these rights or to ask you to surrender the rights.
|
30 |
-
These restrictions translate to certain responsibilities for you if you
|
31 |
-
distribute copies of the software, or if you modify it.
|
32 |
-
|
33 |
-
For example, if you distribute copies of such a program, whether
|
34 |
-
gratis or for a fee, you must give the recipients all the rights that
|
35 |
-
you have. You must make sure that they, too, receive or can get the
|
36 |
-
source code. And you must show them these terms so they know their
|
37 |
-
rights.
|
38 |
-
|
39 |
-
We protect your rights with two steps: (1) copyright the software, and
|
40 |
-
(2) offer you this license which gives you legal permission to copy,
|
41 |
-
distribute and/or modify the software.
|
42 |
-
|
43 |
-
Also, for each author's protection and ours, we want to make certain
|
44 |
-
that everyone understands that there is no warranty for this free
|
45 |
-
software. If the software is modified by someone else and passed on, we
|
46 |
-
want its recipients to know that what they have is not the original, so
|
47 |
-
that any problems introduced by others will not reflect on the original
|
48 |
-
authors' reputations.
|
49 |
-
|
50 |
-
Finally, any free program is threatened constantly by software
|
51 |
-
patents. We wish to avoid the danger that redistributors of a free
|
52 |
-
program will individually obtain patent licenses, in effect making the
|
53 |
-
program proprietary. To prevent this, we have made it clear that any
|
54 |
-
patent must be licensed for everyone's free use or not licensed at all.
|
55 |
-
|
56 |
-
The precise terms and conditions for copying, distribution and
|
57 |
-
modification follow.
|
58 |
-
|
59 |
-
GNU GENERAL PUBLIC LICENSE
|
60 |
-
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
61 |
-
|
62 |
-
0. This License applies to any program or other work which contains
|
63 |
-
a notice placed by the copyright holder saying it may be distributed
|
64 |
-
under the terms of this General Public License. The "Program", below,
|
65 |
-
refers to any such program or work, and a "work based on the Program"
|
66 |
-
means either the Program or any derivative work under copyright law:
|
67 |
-
that is to say, a work containing the Program or a portion of it,
|
68 |
-
either verbatim or with modifications and/or translated into another
|
69 |
-
language. (Hereinafter, translation is included without limitation in
|
70 |
-
the term "modification".) Each licensee is addressed as "you".
|
71 |
-
|
72 |
-
Activities other than copying, distribution and modification are not
|
73 |
-
covered by this License; they are outside its scope. The act of
|
74 |
-
running the Program is not restricted, and the output from the Program
|
75 |
-
is covered only if its contents constitute a work based on the
|
76 |
-
Program (independent of having been made by running the Program).
|
77 |
-
Whether that is true depends on what the Program does.
|
78 |
-
|
79 |
-
1. You may copy and distribute verbatim copies of the Program's
|
80 |
-
source code as you receive it, in any medium, provided that you
|
81 |
-
conspicuously and appropriately publish on each copy an appropriate
|
82 |
-
copyright notice and disclaimer of warranty; keep intact all the
|
83 |
-
notices that refer to this License and to the absence of any warranty;
|
84 |
-
and give any other recipients of the Program a copy of this License
|
85 |
-
along with the Program.
|
86 |
-
|
87 |
-
You may charge a fee for the physical act of transferring a copy, and
|
88 |
-
you may at your option offer warranty protection in exchange for a fee.
|
89 |
-
|
90 |
-
2. You may modify your copy or copies of the Program or any portion
|
91 |
-
of it, thus forming a work based on the Program, and copy and
|
92 |
-
distribute such modifications or work under the terms of Section 1
|
93 |
-
above, provided that you also meet all of these conditions:
|
94 |
-
|
95 |
-
a) You must cause the modified files to carry prominent notices
|
96 |
-
stating that you changed the files and the date of any change.
|
97 |
-
|
98 |
-
b) You must cause any work that you distribute or publish, that in
|
99 |
-
whole or in part contains or is derived from the Program or any
|
100 |
-
part thereof, to be licensed as a whole at no charge to all third
|
101 |
-
parties under the terms of this License.
|
102 |
-
|
103 |
-
c) If the modified program normally reads commands interactively
|
104 |
-
when run, you must cause it, when started running for such
|
105 |
-
interactive use in the most ordinary way, to print or display an
|
106 |
-
announcement including an appropriate copyright notice and a
|
107 |
-
notice that there is no warranty (or else, saying that you provide
|
108 |
-
a warranty) and that users may redistribute the program under
|
109 |
-
these conditions, and telling the user how to view a copy of this
|
110 |
-
License. (Exception: if the Program itself is interactive but
|
111 |
-
does not normally print such an announcement, your work based on
|
112 |
-
the Program is not required to print an announcement.)
|
113 |
-
|
114 |
-
These requirements apply to the modified work as a whole. If
|
115 |
-
identifiable sections of that work are not derived from the Program,
|
116 |
-
and can be reasonably considered independent and separate works in
|
117 |
-
themselves, then this License, and its terms, do not apply to those
|
118 |
-
sections when you distribute them as separate works. But when you
|
119 |
-
distribute the same sections as part of a whole which is a work based
|
120 |
-
on the Program, the distribution of the whole must be on the terms of
|
121 |
-
this License, whose permissions for other licensees extend to the
|
122 |
-
entire whole, and thus to each and every part regardless of who wrote it.
|
123 |
-
|
124 |
-
Thus, it is not the intent of this section to claim rights or contest
|
125 |
-
your rights to work written entirely by you; rather, the intent is to
|
126 |
-
exercise the right to control the distribution of derivative or
|
127 |
-
collective works based on the Program.
|
128 |
-
|
129 |
-
In addition, mere aggregation of another work not based on the Program
|
130 |
-
with the Program (or with a work based on the Program) on a volume of
|
131 |
-
a storage or distribution medium does not bring the other work under
|
132 |
-
the scope of this License.
|
133 |
-
|
134 |
-
3. You may copy and distribute the Program (or a work based on it,
|
135 |
-
under Section 2) in object code or executable form under the terms of
|
136 |
-
Sections 1 and 2 above provided that you also do one of the following:
|
137 |
-
|
138 |
-
a) Accompany it with the complete corresponding machine-readable
|
139 |
-
source code, which must be distributed under the terms of Sections
|
140 |
-
1 and 2 above on a medium customarily used for software interchange; or,
|
141 |
-
|
142 |
-
b) Accompany it with a written offer, valid for at least three
|
143 |
-
years, to give any third party, for a charge no more than your
|
144 |
-
cost of physically performing source distribution, a complete
|
145 |
-
machine-readable copy of the corresponding source code, to be
|
146 |
-
distributed under the terms of Sections 1 and 2 above on a medium
|
147 |
-
customarily used for software interchange; or,
|
148 |
-
|
149 |
-
c) Accompany it with the information you received as to the offer
|
150 |
-
to distribute corresponding source code. (This alternative is
|
151 |
-
allowed only for noncommercial distribution and only if you
|
152 |
-
received the program in object code or executable form with such
|
153 |
-
an offer, in accord with Subsection b above.)
|
154 |
-
|
155 |
-
The source code for a work means the preferred form of the work for
|
156 |
-
making modifications to it. For an executable work, complete source
|
157 |
-
code means all the source code for all modules it contains, plus any
|
158 |
-
associated interface definition files, plus the scripts used to
|
159 |
-
control compilation and installation of the executable. However, as a
|
160 |
-
special exception, the source code distributed need not include
|
161 |
-
anything that is normally distributed (in either source or binary
|
162 |
-
form) with the major components (compiler, kernel, and so on) of the
|
163 |
-
operating system on which the executable runs, unless that component
|
164 |
-
itself accompanies the executable.
|
165 |
-
|
166 |
-
If distribution of executable or object code is made by offering
|
167 |
-
access to copy from a designated place, then offering equivalent
|
168 |
-
access to copy the source code from the same place counts as
|
169 |
-
distribution of the source code, even though third parties are not
|
170 |
-
compelled to copy the source along with the object code.
|
171 |
-
|
172 |
-
4. You may not copy, modify, sublicense, or distribute the Program
|
173 |
-
except as expressly provided under this License. Any attempt
|
174 |
-
otherwise to copy, modify, sublicense or distribute the Program is
|
175 |
-
void, and will automatically terminate your rights under this License.
|
176 |
-
However, parties who have received copies, or rights, from you under
|
177 |
-
this License will not have their licenses terminated so long as such
|
178 |
-
parties remain in full compliance.
|
179 |
-
|
180 |
-
5. You are not required to accept this License, since you have not
|
181 |
-
signed it. However, nothing else grants you permission to modify or
|
182 |
-
distribute the Program or its derivative works. These actions are
|
183 |
-
prohibited by law if you do not accept this License. Therefore, by
|
184 |
-
modifying or distributing the Program (or any work based on the
|
185 |
-
Program), you indicate your acceptance of this License to do so, and
|
186 |
-
all its terms and conditions for copying, distributing or modifying
|
187 |
-
the Program or works based on it.
|
188 |
-
|
189 |
-
6. Each time you redistribute the Program (or any work based on the
|
190 |
-
Program), the recipient automatically receives a license from the
|
191 |
-
original licensor to copy, distribute or modify the Program subject to
|
192 |
-
these terms and conditions. You may not impose any further
|
193 |
-
restrictions on the recipients' exercise of the rights granted herein.
|
194 |
-
You are not responsible for enforcing compliance by third parties to
|
195 |
-
this License.
|
196 |
-
|
197 |
-
7. If, as a consequence of a court judgment or allegation of patent
|
198 |
-
infringement or for any other reason (not limited to patent issues),
|
199 |
-
conditions are imposed on you (whether by court order, agreement or
|
200 |
-
otherwise) that contradict the conditions of this License, they do not
|
201 |
-
excuse you from the conditions of this License. If you cannot
|
202 |
-
distribute so as to satisfy simultaneously your obligations under this
|
203 |
-
License and any other pertinent obligations, then as a consequence you
|
204 |
-
may not distribute the Program at all. For example, if a patent
|
205 |
-
license would not permit royalty-free redistribution of the Program by
|
206 |
-
all those who receive copies directly or indirectly through you, then
|
207 |
-
the only way you could satisfy both it and this License would be to
|
208 |
-
refrain entirely from distribution of the Program.
|
209 |
-
|
210 |
-
If any portion of this section is held invalid or unenforceable under
|
211 |
-
any particular circumstance, the balance of the section is intended to
|
212 |
-
apply and the section as a whole is intended to apply in other
|
213 |
-
circumstances.
|
214 |
-
|
215 |
-
It is not the purpose of this section to induce you to infringe any
|
216 |
-
patents or other property right claims or to contest validity of any
|
217 |
-
such claims; this section has the sole purpose of protecting the
|
218 |
-
integrity of the free software distribution system, which is
|
219 |
-
implemented by public license practices. Many people have made
|
220 |
-
generous contributions to the wide range of software distributed
|
221 |
-
through that system in reliance on consistent application of that
|
222 |
-
system; it is up to the author/donor to decide if he or she is willing
|
223 |
-
to distribute software through any other system and a licensee cannot
|
224 |
-
impose that choice.
|
225 |
-
|
226 |
-
This section is intended to make thoroughly clear what is believed to
|
227 |
-
be a consequence of the rest of this License.
|
228 |
-
|
229 |
-
8. If the distribution and/or use of the Program is restricted in
|
230 |
-
certain countries either by patents or by copyrighted interfaces, the
|
231 |
-
original copyright holder who places the Program under this License
|
232 |
-
may add an explicit geographical distribution limitation excluding
|
233 |
-
those countries, so that distribution is permitted only in or among
|
234 |
-
countries not thus excluded. In such case, this License incorporates
|
235 |
-
the limitation as if written in the body of this License.
|
236 |
-
|
237 |
-
9. The Free Software Foundation may publish revised and/or new versions
|
238 |
-
of the General Public License from time to time. Such new versions will
|
239 |
-
be similar in spirit to the present version, but may differ in detail to
|
240 |
-
address new problems or concerns.
|
241 |
-
|
242 |
-
Each version is given a distinguishing version number. If the Program
|
243 |
-
specifies a version number of this License which applies to it and "any
|
244 |
-
later version", you have the option of following the terms and conditions
|
245 |
-
either of that version or of any later version published by the Free
|
246 |
-
Software Foundation. If the Program does not specify a version number of
|
247 |
-
this License, you may choose any version ever published by the Free Software
|
248 |
-
Foundation.
|
249 |
-
|
250 |
-
10. If you wish to incorporate parts of the Program into other free
|
251 |
-
programs whose distribution conditions are different, write to the author
|
252 |
-
to ask for permission. For software which is copyrighted by the Free
|
253 |
-
Software Foundation, write to the Free Software Foundation; we sometimes
|
254 |
-
make exceptions for this. Our decision will be guided by the two goals
|
255 |
-
of preserving the free status of all derivatives of our free software and
|
256 |
-
of promoting the sharing and reuse of software generally.
|
257 |
-
|
258 |
-
NO WARRANTY
|
259 |
-
|
260 |
-
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
261 |
-
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
262 |
-
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
263 |
-
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
264 |
-
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
265 |
-
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
266 |
-
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
267 |
-
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
268 |
-
REPAIR OR CORRECTION.
|
269 |
-
|
270 |
-
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
271 |
-
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
272 |
-
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
273 |
-
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
274 |
-
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
275 |
-
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
276 |
-
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
277 |
-
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
278 |
-
POSSIBILITY OF SUCH DAMAGES.
|
279 |
-
|
280 |
-
END OF TERMS AND CONDITIONS
|
281 |
-
|
282 |
-
How to Apply These Terms to Your New Programs
|
283 |
-
|
284 |
-
If you develop a new program, and you want it to be of the greatest
|
285 |
-
possible use to the public, the best way to achieve this is to make it
|
286 |
-
free software which everyone can redistribute and change under these terms.
|
287 |
-
|
288 |
-
To do so, attach the following notices to the program. It is safest
|
289 |
-
to attach them to the start of each source file to most effectively
|
290 |
-
convey the exclusion of warranty; and each file should have at least
|
291 |
-
the "copyright" line and a pointer to where the full notice is found.
|
292 |
-
|
293 |
-
<one line to give the program's name and a brief idea of what it does.>
|
294 |
-
Copyright (C) <year> <name of author>
|
295 |
-
|
296 |
-
This program is free software; you can redistribute it and/or modify
|
297 |
-
it under the terms of the GNU General Public License as published by
|
298 |
-
the Free Software Foundation; either version 2 of the License, or
|
299 |
-
(at your option) any later version.
|
300 |
-
|
301 |
-
This program is distributed in the hope that it will be useful,
|
302 |
-
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
303 |
-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
304 |
-
GNU General Public License for more details.
|
305 |
-
|
306 |
-
You should have received a copy of the GNU General Public License along
|
307 |
-
with this program; if not, write to the Free Software Foundation, Inc.,
|
308 |
-
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
309 |
-
|
310 |
-
Also add information on how to contact you by electronic and paper mail.
|
311 |
-
|
312 |
-
If the program is interactive, make it output a short notice like this
|
313 |
-
when it starts in an interactive mode:
|
314 |
-
|
315 |
-
Gnomovision version 69, Copyright (C) year name of author
|
316 |
-
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
317 |
-
This is free software, and you are welcome to redistribute it
|
318 |
-
under certain conditions; type `show c' for details.
|
319 |
-
|
320 |
-
The hypothetical commands `show w' and `show c' should show the appropriate
|
321 |
-
parts of the General Public License. Of course, the commands you use may
|
322 |
-
be called something other than `show w' and `show c'; they could even be
|
323 |
-
mouse-clicks or menu items--whatever suits your program.
|
324 |
-
|
325 |
-
You should also get your employer (if you work as a programmer) or your
|
326 |
-
school, if any, to sign a "copyright disclaimer" for the program, if
|
327 |
-
necessary. Here is a sample; alter the names:
|
328 |
-
|
329 |
-
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
|
330 |
-
`Gnomovision' (which makes passes at compilers) written by James Hacker.
|
331 |
-
|
332 |
-
<signature of Ty Coon>, 1 April 1989
|
333 |
-
Ty Coon, President of Vice
|
334 |
-
|
335 |
-
This General Public License does not permit incorporating your program into
|
336 |
-
proprietary programs. If your program is a subroutine library, you may
|
337 |
-
consider it more useful to permit linking proprietary applications with the
|
338 |
-
library. If this is what you want to do, use the GNU Lesser General
|
339 |
Public License instead of this License.
|
1 |
+
GNU GENERAL PUBLIC LICENSE
|
2 |
+
Version 2, June 1991
|
3 |
+
|
4 |
+
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
|
5 |
+
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
6 |
+
Everyone is permitted to copy and distribute verbatim copies
|
7 |
+
of this license document, but changing it is not allowed.
|
8 |
+
|
9 |
+
Preamble
|
10 |
+
|
11 |
+
The licenses for most software are designed to take away your
|
12 |
+
freedom to share and change it. By contrast, the GNU General Public
|
13 |
+
License is intended to guarantee your freedom to share and change free
|
14 |
+
software--to make sure the software is free for all its users. This
|
15 |
+
General Public License applies to most of the Free Software
|
16 |
+
Foundation's software and to any other program whose authors commit to
|
17 |
+
using it. (Some other Free Software Foundation software is covered by
|
18 |
+
the GNU Lesser General Public License instead.) You can apply it to
|
19 |
+
your programs, too.
|
20 |
+
|
21 |
+
When we speak of free software, we are referring to freedom, not
|
22 |
+
price. Our General Public Licenses are designed to make sure that you
|
23 |
+
have the freedom to distribute copies of free software (and charge for
|
24 |
+
this service if you wish), that you receive source code or can get it
|
25 |
+
if you want it, that you can change the software or use pieces of it
|
26 |
+
in new free programs; and that you know you can do these things.
|
27 |
+
|
28 |
+
To protect your rights, we need to make restrictions that forbid
|
29 |
+
anyone to deny you these rights or to ask you to surrender the rights.
|
30 |
+
These restrictions translate to certain responsibilities for you if you
|
31 |
+
distribute copies of the software, or if you modify it.
|
32 |
+
|
33 |
+
For example, if you distribute copies of such a program, whether
|
34 |
+
gratis or for a fee, you must give the recipients all the rights that
|
35 |
+
you have. You must make sure that they, too, receive or can get the
|
36 |
+
source code. And you must show them these terms so they know their
|
37 |
+
rights.
|
38 |
+
|
39 |
+
We protect your rights with two steps: (1) copyright the software, and
|
40 |
+
(2) offer you this license which gives you legal permission to copy,
|
41 |
+
distribute and/or modify the software.
|
42 |
+
|
43 |
+
Also, for each author's protection and ours, we want to make certain
|
44 |
+
that everyone understands that there is no warranty for this free
|
45 |
+
software. If the software is modified by someone else and passed on, we
|
46 |
+
want its recipients to know that what they have is not the original, so
|
47 |
+
that any problems introduced by others will not reflect on the original
|
48 |
+
authors' reputations.
|
49 |
+
|
50 |
+
Finally, any free program is threatened constantly by software
|
51 |
+
patents. We wish to avoid the danger that redistributors of a free
|
52 |
+
program will individually obtain patent licenses, in effect making the
|
53 |
+
program proprietary. To prevent this, we have made it clear that any
|
54 |
+
patent must be licensed for everyone's free use or not licensed at all.
|
55 |
+
|
56 |
+
The precise terms and conditions for copying, distribution and
|
57 |
+
modification follow.
|
58 |
+
|
59 |
+
GNU GENERAL PUBLIC LICENSE
|
60 |
+
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
61 |
+
|
62 |
+
0. This License applies to any program or other work which contains
|
63 |
+
a notice placed by the copyright holder saying it may be distributed
|
64 |
+
under the terms of this General Public License. The "Program", below,
|
65 |
+
refers to any such program or work, and a "work based on the Program"
|
66 |
+
means either the Program or any derivative work under copyright law:
|
67 |
+
that is to say, a work containing the Program or a portion of it,
|
68 |
+
either verbatim or with modifications and/or translated into another
|
69 |
+
language. (Hereinafter, translation is included without limitation in
|
70 |
+
the term "modification".) Each licensee is addressed as "you".
|
71 |
+
|
72 |
+
Activities other than copying, distribution and modification are not
|
73 |
+
covered by this License; they are outside its scope. The act of
|
74 |
+
running the Program is not restricted, and the output from the Program
|
75 |
+
is covered only if its contents constitute a work based on the
|
76 |
+
Program (independent of having been made by running the Program).
|
77 |
+
Whether that is true depends on what the Program does.
|
78 |
+
|
79 |
+
1. You may copy and distribute verbatim copies of the Program's
|
80 |
+
source code as you receive it, in any medium, provided that you
|
81 |
+
conspicuously and appropriately publish on each copy an appropriate
|
82 |
+
copyright notice and disclaimer of warranty; keep intact all the
|
83 |
+
notices that refer to this License and to the absence of any warranty;
|
84 |
+
and give any other recipients of the Program a copy of this License
|
85 |
+
along with the Program.
|
86 |
+
|
87 |
+
You may charge a fee for the physical act of transferring a copy, and
|
88 |
+
you may at your option offer warranty protection in exchange for a fee.
|
89 |
+
|
90 |
+
2. You may modify your copy or copies of the Program or any portion
|
91 |
+
of it, thus forming a work based on the Program, and copy and
|
92 |
+
distribute such modifications or work under the terms of Section 1
|
93 |
+
above, provided that you also meet all of these conditions:
|
94 |
+
|
95 |
+
a) You must cause the modified files to carry prominent notices
|
96 |
+
stating that you changed the files and the date of any change.
|
97 |
+
|
98 |
+
b) You must cause any work that you distribute or publish, that in
|
99 |
+
whole or in part contains or is derived from the Program or any
|
100 |
+
part thereof, to be licensed as a whole at no charge to all third
|
101 |
+
parties under the terms of this License.
|
102 |
+
|
103 |
+
c) If the modified program normally reads commands interactively
|
104 |
+
when run, you must cause it, when started running for such
|
105 |
+
interactive use in the most ordinary way, to print or display an
|
106 |
+
announcement including an appropriate copyright notice and a
|
107 |
+
notice that there is no warranty (or else, saying that you provide
|
108 |
+
a warranty) and that users may redistribute the program under
|
109 |
+
these conditions, and telling the user how to view a copy of this
|
110 |
+
License. (Exception: if the Program itself is interactive but
|
111 |
+
does not normally print such an announcement, your work based on
|
112 |
+
the Program is not required to print an announcement.)
|
113 |
+
|
114 |
+
These requirements apply to the modified work as a whole. If
|
115 |
+
identifiable sections of that work are not derived from the Program,
|
116 |
+
and can be reasonably considered independent and separate works in
|
117 |
+
themselves, then this License, and its terms, do not apply to those
|
118 |
+
sections when you distribute them as separate works. But when you
|
119 |
+
distribute the same sections as part of a whole which is a work based
|
120 |
+
on the Program, the distribution of the whole must be on the terms of
|
121 |
+
this License, whose permissions for other licensees extend to the
|
122 |
+
entire whole, and thus to each and every part regardless of who wrote it.
|
123 |
+
|
124 |
+
Thus, it is not the intent of this section to claim rights or contest
|
125 |
+
your rights to work written entirely by you; rather, the intent is to
|
126 |
+
exercise the right to control the distribution of derivative or
|
127 |
+
collective works based on the Program.
|
128 |
+
|
129 |
+
In addition, mere aggregation of another work not based on the Program
|
130 |
+
with the Program (or with a work based on the Program) on a volume of
|
131 |
+
a storage or distribution medium does not bring the other work under
|
132 |
+
the scope of this License.
|
133 |
+
|
134 |
+
3. You may copy and distribute the Program (or a work based on it,
|
135 |
+
under Section 2) in object code or executable form under the terms of
|
136 |
+
Sections 1 and 2 above provided that you also do one of the following:
|
137 |
+
|
138 |
+
a) Accompany it with the complete corresponding machine-readable
|
139 |
+
source code, which must be distributed under the terms of Sections
|
140 |
+
1 and 2 above on a medium customarily used for software interchange; or,
|
141 |
+
|
142 |
+
b) Accompany it with a written offer, valid for at least three
|
143 |
+
years, to give any third party, for a charge no more than your
|
144 |
+
cost of physically performing source distribution, a complete
|
145 |
+
machine-readable copy of the corresponding source code, to be
|
146 |
+
distributed under the terms of Sections 1 and 2 above on a medium
|
147 |
+
customarily used for software interchange; or,
|
148 |
+
|
149 |
+
c) Accompany it with the information you received as to the offer
|
150 |
+
to distribute corresponding source code. (This alternative is
|
151 |
+
allowed only for noncommercial distribution and only if you
|
152 |
+
received the program in object code or executable form with such
|
153 |
+
an offer, in accord with Subsection b above.)
|
154 |
+
|
155 |
+
The source code for a work means the preferred form of the work for
|
156 |
+
making modifications to it. For an executable work, complete source
|
157 |
+
code means all the source code for all modules it contains, plus any
|
158 |
+
associated interface definition files, plus the scripts used to
|
159 |
+
control compilation and installation of the executable. However, as a
|
160 |
+
special exception, the source code distributed need not include
|
161 |
+
anything that is normally distributed (in either source or binary
|
162 |
+
form) with the major components (compiler, kernel, and so on) of the
|
163 |
+
operating system on which the executable runs, unless that component
|
164 |
+
itself accompanies the executable.
|
165 |
+
|
166 |
+
If distribution of executable or object code is made by offering
|
167 |
+
access to copy from a designated place, then offering equivalent
|
168 |
+
access to copy the source code from the same place counts as
|
169 |
+
distribution of the source code, even though third parties are not
|
170 |
+
compelled to copy the source along with the object code.
|
171 |
+
|
172 |
+
4. You may not copy, modify, sublicense, or distribute the Program
|
173 |
+
except as expressly provided under this License. Any attempt
|
174 |
+
otherwise to copy, modify, sublicense or distribute the Program is
|
175 |
+
void, and will automatically terminate your rights under this License.
|
176 |
+
However, parties who have received copies, or rights, from you under
|
177 |
+
this License will not have their licenses terminated so long as such
|
178 |
+
parties remain in full compliance.
|
179 |
+
|
180 |
+
5. You are not required to accept this License, since you have not
|
181 |
+
signed it. However, nothing else grants you permission to modify or
|
182 |
+
distribute the Program or its derivative works. These actions are
|
183 |
+
prohibited by law if you do not accept this License. Therefore, by
|
184 |
+
modifying or distributing the Program (or any work based on the
|
185 |
+
Program), you indicate your acceptance of this License to do so, and
|
186 |
+
all its terms and conditions for copying, distributing or modifying
|
187 |
+
the Program or works based on it.
|
188 |
+
|
189 |
+
6. Each time you redistribute the Program (or any work based on the
|
190 |
+
Program), the recipient automatically receives a license from the
|
191 |
+
original licensor to copy, distribute or modify the Program subject to
|
192 |
+
these terms and conditions. You may not impose any further
|
193 |
+
restrictions on the recipients' exercise of the rights granted herein.
|
194 |
+
You are not responsible for enforcing compliance by third parties to
|
195 |
+
this License.
|
196 |
+
|
197 |
+
7. If, as a consequence of a court judgment or allegation of patent
|
198 |
+
infringement or for any other reason (not limited to patent issues),
|
199 |
+
conditions are imposed on you (whether by court order, agreement or
|
200 |
+
otherwise) that contradict the conditions of this License, they do not
|
201 |
+
excuse you from the conditions of this License. If you cannot
|
202 |
+
distribute so as to satisfy simultaneously your obligations under this
|
203 |
+
License and any other pertinent obligations, then as a consequence you
|
204 |
+
may not distribute the Program at all. For example, if a patent
|
205 |
+
license would not permit royalty-free redistribution of the Program by
|
206 |
+
all those who receive copies directly or indirectly through you, then
|
207 |
+
the only way you could satisfy both it and this License would be to
|
208 |
+
refrain entirely from distribution of the Program.
|
209 |
+
|
210 |
+
If any portion of this section is held invalid or unenforceable under
|
211 |
+
any particular circumstance, the balance of the section is intended to
|
212 |
+
apply and the section as a whole is intended to apply in other
|
213 |
+
circumstances.
|
214 |
+
|
215 |
+
It is not the purpose of this section to induce you to infringe any
|
216 |
+
patents or other property right claims or to contest validity of any
|
217 |
+
such claims; this section has the sole purpose of protecting the
|
218 |
+
integrity of the free software distribution system, which is
|
219 |
+
implemented by public license practices. Many people have made
|
220 |
+
generous contributions to the wide range of software distributed
|
221 |
+
through that system in reliance on consistent application of that
|
222 |
+
system; it is up to the author/donor to decide if he or she is willing
|
223 |
+
to distribute software through any other system and a licensee cannot
|
224 |
+
impose that choice.
|
225 |
+
|
226 |
+
This section is intended to make thoroughly clear what is believed to
|
227 |
+
be a consequence of the rest of this License.
|
228 |
+
|
229 |
+
8. If the distribution and/or use of the Program is restricted in
|
230 |
+
certain countries either by patents or by copyrighted interfaces, the
|
231 |
+
original copyright holder who places the Program under this License
|
232 |
+
may add an explicit geographical distribution limitation excluding
|
233 |
+
those countries, so that distribution is permitted only in or among
|
234 |
+
countries not thus excluded. In such case, this License incorporates
|
235 |
+
the limitation as if written in the body of this License.
|
236 |
+
|
237 |
+
9. The Free Software Foundation may publish revised and/or new versions
|
238 |
+
of the General Public License from time to time. Such new versions will
|
239 |
+
be similar in spirit to the present version, but may differ in detail to
|
240 |
+
address new problems or concerns.
|
241 |
+
|
242 |
+
Each version is given a distinguishing version number. If the Program
|
243 |
+
specifies a version number of this License which applies to it and "any
|
244 |
+
later version", you have the option of following the terms and conditions
|
245 |
+
either of that version or of any later version published by the Free
|
246 |
+
Software Foundation. If the Program does not specify a version number of
|
247 |
+
this License, you may choose any version ever published by the Free Software
|
248 |
+
Foundation.
|
249 |
+
|
250 |
+
10. If you wish to incorporate parts of the Program into other free
|
251 |
+
programs whose distribution conditions are different, write to the author
|
252 |
+
to ask for permission. For software which is copyrighted by the Free
|
253 |
+
Software Foundation, write to the Free Software Foundation; we sometimes
|
254 |
+
make exceptions for this. Our decision will be guided by the two goals
|
255 |
+
of preserving the free status of all derivatives of our free software and
|
256 |
+
of promoting the sharing and reuse of software generally.
|
257 |
+
|
258 |
+
NO WARRANTY
|
259 |
+
|
260 |
+
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
261 |
+
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
262 |
+
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
263 |
+
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
264 |
+
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
265 |
+
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
266 |
+
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
267 |
+
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
268 |
+
REPAIR OR CORRECTION.
|
269 |
+
|
270 |
+
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
271 |
+
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
272 |
+
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
273 |
+
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
274 |
+
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
275 |
+
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
276 |
+
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
277 |
+
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
278 |
+
POSSIBILITY OF SUCH DAMAGES.
|
279 |
+
|
280 |
+
END OF TERMS AND CONDITIONS
|
281 |
+
|
282 |
+
How to Apply These Terms to Your New Programs
|
283 |
+
|
284 |
+
If you develop a new program, and you want it to be of the greatest
|
285 |
+
possible use to the public, the best way to achieve this is to make it
|
286 |
+
free software which everyone can redistribute and change under these terms.
|
287 |
+
|
288 |
+
To do so, attach the following notices to the program. It is safest
|
289 |
+
to attach them to the start of each source file to most effectively
|
290 |
+
convey the exclusion of warranty; and each file should have at least
|
291 |
+
the "copyright" line and a pointer to where the full notice is found.
|
292 |
+
|
293 |
+
<one line to give the program's name and a brief idea of what it does.>
|
294 |
+
Copyright (C) <year> <name of author>
|
295 |
+
|
296 |
+
This program is free software; you can redistribute it and/or modify
|
297 |
+
it under the terms of the GNU General Public License as published by
|
298 |
+
the Free Software Foundation; either version 2 of the License, or
|
299 |
+
(at your option) any later version.
|
300 |
+
|
301 |
+
This program is distributed in the hope that it will be useful,
|
302 |
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
303 |
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
304 |
+
GNU General Public License for more details.
|
305 |
+
|
306 |
+
You should have received a copy of the GNU General Public License along
|
307 |
+
with this program; if not, write to the Free Software Foundation, Inc.,
|
308 |
+
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
309 |
+
|
310 |
+
Also add information on how to contact you by electronic and paper mail.
|
311 |
+
|
312 |
+
If the program is interactive, make it output a short notice like this
|
313 |
+
when it starts in an interactive mode:
|
314 |
+
|
315 |
+
Gnomovision version 69, Copyright (C) year name of author
|
316 |
+
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
317 |
+
This is free software, and you are welcome to redistribute it
|
318 |
+
under certain conditions; type `show c' for details.
|
319 |
+
|
320 |
+
The hypothetical commands `show w' and `show c' should show the appropriate
|
321 |
+
parts of the General Public License. Of course, the commands you use may
|
322 |
+
be called something other than `show w' and `show c'; they could even be
|
323 |
+
mouse-clicks or menu items--whatever suits your program.
|
324 |
+
|
325 |
+
You should also get your employer (if you work as a programmer) or your
|
326 |
+
school, if any, to sign a "copyright disclaimer" for the program, if
|
327 |
+
necessary. Here is a sample; alter the names:
|
328 |
+
|
329 |
+
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
|
330 |
+
`Gnomovision' (which makes passes at compilers) written by James Hacker.
|
331 |
+
|
332 |
+
<signature of Ty Coon>, 1 April 1989
|
333 |
+
Ty Coon, President of Vice
|
334 |
+
|
335 |
+
This General Public License does not permit incorporating your program into
|
336 |
+
proprietary programs. If your program is a subroutine library, you may
|
337 |
+
consider it more useful to permit linking proprietary applications with the
|
338 |
+
library. If this is what you want to do, use the GNU Lesser General
|
339 |
Public License instead of this License.
|
assets/css/admin.css
CHANGED
@@ -1,2201 +1,2212 @@
|
|
1 |
-
/* ==========================================================================
|
2 |
-
=Links
|
3 |
-
========================================================================== */
|
4 |
-
#sl-kiwi {
|
5 |
-
width: 1150px;
|
6 |
-
padding: 20px;
|
7 |
-
margin-bottom: 10px;
|
8 |
-
font-family: 'Open Sans';
|
9 |
-
position: relative;
|
10 |
-
}
|
11 |
-
#sl-kiwi a:focus {
|
12 |
-
box-shadow: none;
|
13 |
-
-webkit-box-shadow: none;
|
14 |
-
}
|
15 |
-
#sl-kiwi .overlay {
|
16 |
-
position: absolute;
|
17 |
-
top: 20px;
|
18 |
-
bottom: 102px;
|
19 |
-
left: 20px;
|
20 |
-
right: 20px;
|
21 |
-
-webkit-transition: all .3s;
|
22 |
-
transition: all .3s;
|
23 |
-
z-index: 9999;
|
24 |
-
text-align: center;
|
25 |
-
padding-top: 250px;
|
26 |
-
}
|
27 |
-
#sl-kiwi .overlay.active {
|
28 |
-
-webkit-transition: all .4s;
|
29 |
-
transition: all .4s;
|
30 |
-
background: rgba(255, 255, 255, 0.97);
|
31 |
-
}
|
32 |
-
#sl-kiwi .overlay img {
|
33 |
-
position: relative;
|
34 |
-
top: -72px;
|
35 |
-
}
|
36 |
-
|
37 |
-
.kiwi-notification-popup {
|
38 |
-
width: 100%;
|
39 |
-
padding: 25px 20px;
|
40 |
-
box-sizing: border-box;
|
41 |
-
-webkit-border-radius: 3px;
|
42 |
-
-moz-border-radius: 3px;
|
43 |
-
border-radius: 3px;
|
44 |
-
background-color: #0073aa;
|
45 |
-
color: #fff;
|
46 |
-
display: none;
|
47 |
-
position: relative;
|
48 |
-
z-index: 10;
|
49 |
-
}
|
50 |
-
.kiwi-notification-popup .button {
|
51 |
-
float: right;
|
52 |
-
position: relative;
|
53 |
-
bottom: 5px;
|
54 |
-
}
|
55 |
-
|
56 |
-
.kiwi-utility-bar {
|
57 |
-
position: absolute;
|
58 |
-
top: 20px;
|
59 |
-
right: -25px;
|
60 |
-
display: none;
|
61 |
-
}
|
62 |
-
.kiwi-utility-bar > input {
|
63 |
-
position: fixed;
|
64 |
-
}
|
65 |
-
|
66 |
-
.sl-kiwi-content {
|
67 |
-
background: #fff;
|
68 |
-
min-height: 500px;
|
69 |
-
margin-top: -10px;
|
70 |
-
position: relative;
|
71 |
-
z-index: 5;
|
72 |
-
-webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.06);
|
73 |
-
-moz-box-shadow: 0 0 5px rgba(0, 0, 0, 0.06);
|
74 |
-
box-shadow: 0 0 5px rgba(0, 0, 0, 0.06);
|
75 |
-
padding: 10px 30px;
|
76 |
-
}
|
77 |
-
.sl-kiwi-content input[type="text"], .sl-kiwi-content input[type="email"], .sl-kiwi-content input[type="url"] {
|
78 |
-
width: 330px;
|
79 |
-
height: 32px;
|
80 |
-
-webkit-border-radius: 3px;
|
81 |
-
-moz-border-radius: 3px;
|
82 |
-
border-radius: 3px;
|
83 |
-
background-color: #fff;
|
84 |
-
-webkit-box-shadow: 1px 1px 2px rgba(35, 31, 32, 0.2);
|
85 |
-
-moz-box-shadow: 1px 1px 2px rgba(35, 31, 32, 0.2);
|
86 |
-
box-shadow: 1px 1px 2px rgba(35, 31, 32, 0.2);
|
87 |
-
padding-left: 10px;
|
88 |
-
margin-top: 5px;
|
89 |
-
border: 1px solid #f2f2f2;
|
90 |
-
}
|
91 |
-
|
92 |
-
.sl-kiwi-content > div {
|
93 |
-
padding-bottom: 50px;
|
94 |
-
display: none;
|
95 |
-
}
|
96 |
-
|
97 |
-
.sl-kiwi-content > div.epsilon-tab-active {
|
98 |
-
display: block;
|
99 |
-
}
|
100 |
-
|
101 |
-
.sl-kiwi-dragdrop .suggestions {
|
102 |
-
font-size: 32px;
|
103 |
-
color: #EBEBEB;
|
104 |
-
width: 100%;
|
105 |
-
height: 40px;
|
106 |
-
line-height: 40px;
|
107 |
-
text-align: center;
|
108 |
-
font-weight: bold;
|
109 |
-
display: block;
|
110 |
-
position: absolute;
|
111 |
-
top: 15px;
|
112 |
-
opacity: .7;
|
113 |
-
-webkit-user-select: none;
|
114 |
-
/* Chrome all / Safari all */
|
115 |
-
-moz-user-select: none;
|
116 |
-
/* Firefox all */
|
117 |
-
-ms-user-select: none;
|
118 |
-
/* IE 10+ */
|
119 |
-
user-select: none;
|
120 |
-
/* Likely future */
|
121 |
-
cursor: default;
|
122 |
-
}
|
123 |
-
|
124 |
-
.sl-kiwi-dragdrop {
|
125 |
-
height: 220px;
|
126 |
-
border: 1px solid #fff;
|
127 |
-
margin: 0;
|
128 |
-
position: relative;
|
129 |
-
-webkit-border-radius: 3px 3px 0 0;
|
130 |
-
-moz-border-radius: 3px 3px 0 0;
|
131 |
-
border-radius: 3px 3px 0 0;
|
132 |
-
background-color: #fff;
|
133 |
-
-webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
|
134 |
-
-moz-box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
|
135 |
-
box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
|
136 |
-
background-image: -webkit-linear-gradient(top, rgba(255, 255, 255, 0.7), rgba(246, 246, 246, 0.7));
|
137 |
-
background-image: -moz-linear-gradient(top, rgba(255, 255, 255, 0.7), rgba(246, 246, 246, 0.7));
|
138 |
-
background-image: -o-linear-gradient(top, rgba(255, 255, 255, 0.7), rgba(246, 246, 246, 0.7));
|
139 |
-
background-image: -ms-linear-gradient(top, rgba(255, 255, 255, 0.7), rgba(246, 246, 246, 0.7));
|
140 |
-
background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.7), rgba(246, 246, 246, 0.7));
|
141 |
-
}
|
142 |
-
|
143 |
-
.sl-kiwi-dragdrop > div {
|
144 |
-
padding: 85px 25px 0 25px;
|
145 |
-
text-align: center;
|
146 |
-
}
|
147 |
-
|
148 |
-
.sl-kiwi-dragdrop ul {
|
149 |
-
line-height: 30px;
|
150 |
-
vertical-align: top;
|
151 |
-
}
|
152 |
-
|
153 |
-
.sl-kiwi-dragdrop ul[data-id="networks_ordering_floating_bar"] {
|
154 |
-
position: absolute;
|
155 |
-
top: 45px;
|
156 |
-
right: 0;
|
157 |
-
z-index: -1;
|
158 |
-
transition: all .3s;
|
159 |
-
opacity: 0;
|
160 |
-
}
|
161 |
-
.sl-kiwi-dragdrop ul[data-id="networks_ordering_floating_bar"] li {
|
162 |
-
display: block;
|
163 |
-
margin: 0;
|
164 |
-
padding: 0;
|
165 |
-
}
|
166 |
-
.sl-kiwi-dragdrop ul[data-id="networks_ordering_floating_bar"] li a {
|
167 |
-
display: block;
|
168 |
-
height: 40px;
|
169 |
-
line-height: 40px;
|
170 |
-
padding: 0 5px;
|
171 |
-
min-width: 40px;
|
172 |
-
transition: all .3s;
|
173 |
-
-webkit-box-shadow: none;
|
174 |
-
box-shadow: none;
|
175 |
-
font-size: 16px;
|
176 |
-
box-sizing: border-box;
|
177 |
-
position: relative;
|
178 |
-
z-index: 1;
|
179 |
-
}
|
180 |
-
.sl-kiwi-dragdrop ul[data-id="networks_ordering_floating_bar"] li.sl-kiwi-dragdrop-placeholder:before {
|
181 |
-
width: 40px;
|
182 |
-
}
|
183 |
-
.sl-kiwi-dragdrop ul[data-id="networks_ordering_floating_bar"].pill li {
|
184 |
-
margin-bottom: 2px;
|
185 |
-
}
|
186 |
-
.sl-kiwi-dragdrop ul[data-id="networks_ordering_floating_bar"].pill li a {
|
187 |
-
border-radius: 25px;
|
188 |
-
}
|
189 |
-
|
190 |
-
#sl-kiwi .sl-kiwi-item-add {
|
191 |
-
margin-right: 5px;
|
192 |
-
}
|
193 |
-
|
194 |
-
#sl-kiwi .sl-kiwi-item-remove {
|
195 |
-
max-width: 0;
|
196 |
-
margin-right: 0;
|
197 |
-
display: none;
|
198 |
-
}
|
199 |
-
|
200 |
-
.sl-kiwi-dragdrop-placeholder:before {
|
201 |
-
border: 1px dashed #ccc;
|
202 |
-
width: 100%;
|
203 |
-
position: absolute;
|
204 |
-
top: 0;
|
205 |
-
left: 0;
|
206 |
-
bottom: 0;
|
207 |
-
right: 0;
|
208 |
-
height: 100%;
|
209 |
-
content: " ";
|
210 |
-
display: block;
|
211 |
-
}
|
212 |
-
|
213 |
-
.sl-kiwi-dragdrop-placeholder {
|
214 |
-
position: relative;
|
215 |
-
height: 30px;
|
216 |
-
padding: 0 5px;
|
217 |
-
min-width: 90px;
|
218 |
-
background: transparent;
|
219 |
-
vertical-align: top;
|
220 |
-
}
|
221 |
-
|
222 |
-
.sl-kiwi-dragdrop ul.pill a {
|
223 |
-
border-radius: 15px;
|
224 |
-
}
|
225 |
-
|
226 |
-
.sl-kiwi-dragdrop ul.leaf a {
|
227 |
-
border-radius: 12px 0 12px 0;
|
228 |
-
}
|
229 |
-
|
230 |
-
.sl-kiwi-dragdrop ul.shift a {
|
231 |
-
-ms-transform: skewX(-15deg);
|
232 |
-
-webkit-transform: skewX(-15deg);
|
233 |
-
transform: skewX(-15deg);
|
234 |
-
}
|
235 |
-
|
236 |
-
.sl-kiwi-dragdrop ul.shift span {
|
237 |
-
-ms-transform: skewX(15deg);
|
238 |
-
-webkit-transform: skewX(15deg);
|
239 |
-
transform: skewX(15deg);
|
240 |
-
display: block;
|
241 |
-
}
|
242 |
-
|
243 |
-
.sl-kiwi-dragdrop ul.pill .sl-kiwi-dragdrop-placeholder:before {
|
244 |
-
border-radius: 15px;
|
245 |
-
}
|
246 |
-
|
247 |
-
.sl-kiwi-dragdrop ul.leaf .sl-kiwi-dragdrop-placeholder:before {
|
248 |
-
border-radius: 12px 0 12px 0;
|
249 |
-
}
|
250 |
-
|
251 |
-
.sl-kiwi-dragdrop ul.shift .sl-kiwi-dragdrop-placeholder:before {
|
252 |
-
-ms-transform: skewX(-15deg);
|
253 |
-
-webkit-transform: skewX(-15deg);
|
254 |
-
transform: skewX(-15deg);
|
255 |
-
}
|
256 |
-
|
257 |
-
.sl-kiwi-dragdrop li {
|
258 |
-
list-style-type: none;
|
259 |
-
transition: max-width .2s, margin .2s;
|
260 |
-
overflow: hidden;
|
261 |
-
margin-right: 5px;
|
262 |
-
display: inline-block;
|
263 |
-
padding: 0 5px;
|
264 |
-
}
|
265 |
-
|
266 |
-
.sl-kiwi-dragdrop li.ui-sortable-helper a {
|
267 |
-
transition: box-shadow .3s;
|
268 |
-
-webkit-box-shadow: 6px 10px 10px rgba(0, 0, 0, 0.1);
|
269 |
-
-moz-box-shadow: 6px 10px 10px rgba(0, 0, 0, 0.1);
|
270 |
-
box-shadow: 6px 10px 10px rgba(0, 0, 0, 0.1);
|
271 |
-
}
|
272 |
-
|
273 |
-
.sl-kiwi-dragdrop li a:hover {
|
274 |
-
text-decoration: none;
|
275 |
-
}
|
276 |
-
|
277 |
-
.sl-kiwi-dragdrop li a {
|
278 |
-
display: block;
|
279 |
-
height: 30px;
|
280 |
-
line-height: 30px;
|
281 |
-
padding: 0 5px;
|
282 |
-
min-width: 90px;
|
283 |
-
transition: all .3s;
|
284 |
-
}
|
285 |
-
|
286 |
-
.sl-kiwi-networks {
|
287 |
-
margin-bottom: 40px;
|
288 |
-
position: relative;
|
289 |
-
}
|
290 |
-
.sl-kiwi-networks .epsilon-ui-locked {
|
291 |
-
position: absolute;
|
292 |
-
right: -15px;
|
293 |
-
width: 35px;
|
294 |
-
height: 35px;
|
295 |
-
line-height: 35px;
|
296 |
-
top: 12px;
|
297 |
-
text-align: center;
|
298 |
-
}
|
299 |
-
|
300 |
-
ul[data-style="fit"] {
|
301 |
-
display: table;
|
302 |
-
width: 100%;
|
303 |
-
}
|
304 |
-
ul[data-style="fit"] li {
|
305 |
-
display: table-cell;
|
306 |
-
padding: 0;
|
307 |
-
overflow: initial;
|
308 |
-
}
|
309 |
-
ul[data-style="fit"].leaf a {
|
310 |
-
width: 100%;
|
311 |
-
}
|
312 |
-
ul[data-style="fit"].leaf li:last-of-type a {
|
313 |
-
width: 100%;
|
314 |
-
}
|
315 |
-
ul[data-style="fit"].pill {
|
316 |
-
flex-wrap: nowrap;
|
317 |
-
display: flex;
|
318 |
-
margin-left: 20px;
|
319 |
-
width: auto;
|
320 |
-
}
|
321 |
-
ul[data-style="fit"].pill .sl-kiwi-item-add {
|
322 |
-
margin: 0;
|
323 |
-
flex: 1;
|
324 |
-
}
|
325 |
-
ul[data-style="fit"].pill .sl-kiwi-item-add a {
|
326 |
-
padding: 0;
|
327 |
-
display: block;
|
328 |
-
width: 100%;
|
329 |
-
padding-left: 26px;
|
330 |
-
margin-left: -26px;
|
331 |
-
}
|
332 |
-
ul[data-style="fit"].pill .sl-kiwi-item-add span {
|
333 |
-
margin-right: 26px;
|
334 |
-
}
|
335 |
-
|
336 |
-
.sl-kiwi-tab-socialIdentity label, .sl-kiwi-tab-registration label {
|
337 |
-
display: block;
|
338 |
-
color: #808080;
|
339 |
-
margin-bottom: 5px;
|
340 |
-
}
|
341 |
-
.sl-kiwi-tab-socialIdentity input[type="text"], .sl-kiwi-tab-registration input[type="text"] {
|
342 |
-
padding: 5px;
|
343 |
-
margin-bottom: 15px;
|
344 |
-
}
|
345 |
-
.sl-kiwi-tab-socialIdentity .kiwi-registration-action, .sl-kiwi-tab-registration .kiwi-registration-action {
|
346 |
-
height: 30px;
|
347 |
-
}
|
348 |
-
|
349 |
-
[class*="sl-kiwi-tab-"] h2 {
|
350 |
-
font-size: 22px;
|
351 |
-
color: #585858;
|
352 |
-
font-weight: 300;
|
353 |
-
height: 50px;
|
354 |
-
}
|
355 |
-
|
356 |
-
.sl-kiwi-networks h2 > span {
|
357 |
-
width: 65%;
|
358 |
-
display: block;
|
359 |
-
float: left;
|
360 |
-
background: transparent;
|
361 |
-
}
|
362 |
-
|
363 |
-
.sl-kiwi-networks h2 span + span {
|
364 |
-
width: 17.5%;
|
365 |
-
display: block;
|
366 |
-
float: left;
|
367 |
-
background: transparent;
|
368 |
-
text-align: center;
|
369 |
-
font-size: 14px;
|
370 |
-
color: #959696;
|
371 |
-
}
|
372 |
-
|
373 |
-
.sl-kiwi-networks em {
|
374 |
-
font-style: normal;
|
375 |
-
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
|
380 |
-
|
381 |
-
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
-
|
390 |
-
|
391 |
-
|
392 |
-
|
393 |
-
|
394 |
-
|
395 |
-
|
396 |
-
|
397 |
-
|
398 |
-
|
399 |
-
|
400 |
-
|
401 |
-
|
402 |
-
|
403 |
-
|
404 |
-
|
405 |
-
|
406 |
-
|
407 |
-
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
-
.
|
413 |
-
|
414 |
-
|
415 |
-
|
416 |
-
|
417 |
-
|
418 |
-
|
419 |
-
|
420 |
-
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
|
425 |
-
|
426 |
-
|
427 |
-
}
|
428 |
-
|
429 |
-
.sl-kiwi-networks
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
-
|
435 |
-
|
436 |
-
|
437 |
-
|
438 |
-
.sl-kiwi-networks.kiwi-styles h2 span
|
439 |
-
width:
|
440 |
-
}
|
441 |
-
|
442 |
-
.sl-kiwi-networks.kiwi-styles h2
|
443 |
-
|
444 |
-
|
445 |
-
}
|
446 |
-
|
447 |
-
.sl-kiwi-networks.kiwi-styles h2
|
448 |
-
|
449 |
-
|
450 |
-
}
|
451 |
-
|
452 |
-
.sl-kiwi-networks.kiwi-styles
|
453 |
-
width:
|
454 |
-
text-align: left;
|
455 |
-
}
|
456 |
-
|
457 |
-
.sl-kiwi-networks.kiwi-styles li span
|
458 |
-
|
459 |
-
|
460 |
-
}
|
461 |
-
|
462 |
-
.sl-kiwi-networks.kiwi-styles li
|
463 |
-
|
464 |
-
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
-
|
469 |
-
}
|
470 |
-
|
471 |
-
#sl-kiwi .kiwi-nw-
|
472 |
-
background: #
|
473 |
-
color: #fff;
|
474 |
-
}
|
475 |
-
|
476 |
-
#sl-kiwi .kiwi-nw-
|
477 |
-
background: #
|
478 |
-
color: #fff;
|
479 |
-
}
|
480 |
-
|
481 |
-
#sl-kiwi .kiwi-nw-
|
482 |
-
background: #
|
483 |
-
color: #fff;
|
484 |
-
}
|
485 |
-
|
486 |
-
#sl-kiwi .kiwi-nw-
|
487 |
-
background: #
|
488 |
-
color: #fff;
|
489 |
-
}
|
490 |
-
|
491 |
-
#sl-kiwi .kiwi-nw-
|
492 |
-
background: #
|
493 |
-
color: #fff;
|
494 |
-
}
|
495 |
-
|
496 |
-
#sl-kiwi .kiwi-nw-
|
497 |
-
background: #
|
498 |
-
color: #fff;
|
499 |
-
}
|
500 |
-
|
501 |
-
#sl-kiwi .kiwi-nw-
|
502 |
-
background: #
|
503 |
-
color: #fff;
|
504 |
-
}
|
505 |
-
|
506 |
-
#sl-kiwi .kiwi-nw-
|
507 |
-
background: #
|
508 |
-
color: #fff;
|
509 |
-
}
|
510 |
-
|
511 |
-
#sl-kiwi .kiwi-nw-
|
512 |
-
background: #
|
513 |
-
color: #fff;
|
514 |
-
}
|
515 |
-
|
516 |
-
#sl-kiwi .kiwi-nw-
|
517 |
-
background: #
|
518 |
-
color: #fff;
|
519 |
-
}
|
520 |
-
|
521 |
-
.sl-kiwi-
|
522 |
-
|
523 |
-
|
524 |
-
|
525 |
-
|
526 |
-
|
527 |
-
|
528 |
-
|
529 |
-
|
530 |
-
|
531 |
-
|
532 |
-
|
533 |
-
|
534 |
-
|
535 |
-
|
536 |
-
|
537 |
-
|
538 |
-
|
539 |
-
|
540 |
-
|
541 |
-
|
542 |
-
|
543 |
-
|
544 |
-
|
545 |
-
|
546 |
-
|
547 |
-
|
548 |
-
|
549 |
-
|
550 |
-
|
551 |
-
|
552 |
-
|
553 |
-
|
554 |
-
float: left;
|
555 |
-
|
556 |
-
|
557 |
-
|
558 |
-
|
559 |
-
|
560 |
-
|
561 |
-
|
562 |
-
|
563 |
-
|
564 |
-
|
565 |
-
|
566 |
-
|
567 |
-
|
568 |
-
|
569 |
-
|
570 |
-
|
571 |
-
|
572 |
-
|
573 |
-
|
574 |
-
|
575 |
-
}
|
576 |
-
|
577 |
-
.
|
578 |
-
|
579 |
-
|
580 |
-
|
581 |
-
|
582 |
-
|
583 |
-
|
584 |
-
|
585 |
-
|
586 |
-
|
587 |
-
|
588 |
-
|
589 |
-
|
590 |
-
|
591 |
-
|
592 |
-
|
593 |
-
|
594 |
-
|
595 |
-
|
596 |
-
|
597 |
-
|
598 |
-
|
599 |
-
|
600 |
-
|
601 |
-
|
602 |
-
|
603 |
-
|
604 |
-
|
605 |
-
|
606 |
-
|
607 |
-
|
608 |
-
|
609 |
-
|
610 |
-
|
611 |
-
|
612 |
-
|
613 |
-
|
614 |
-
|
615 |
-
|
616 |
-
|
617 |
-
|
618 |
-
|
619 |
-
|
620 |
-
|
621 |
-
|
622 |
-
|
623 |
-
|
624 |
-
|
625 |
-
|
626 |
-
|
627 |
-
|
628 |
-
|
629 |
-
|
630 |
-
|
631 |
-
|
632 |
-
|
633 |
-
|
634 |
-
|
635 |
-
|
636 |
-
|
637 |
-
|
638 |
-
|
639 |
-
|
640 |
-
|
641 |
-
|
642 |
-
|
643 |
-
|
644 |
-
|
645 |
-
|
646 |
-
|
647 |
-
|
648 |
-
|
649 |
-
|
650 |
-
|
651 |
-
|
652 |
-
-webkit-
|
653 |
-
-moz-
|
654 |
-
|
655 |
-
|
656 |
-
|
657 |
-
|
658 |
-
|
659 |
-
-
|
660 |
-
|
661 |
-
|
662 |
-
|
663 |
-
|
664 |
-
-webkit-transition:
|
665 |
-
-o-transition:
|
666 |
-
transition:
|
667 |
-
|
668 |
-
|
669 |
-
-
|
670 |
-
|
671 |
-
|
672 |
-
|
673 |
-
|
674 |
-
|
675 |
-
|
676 |
-
|
677 |
-
|
678 |
-
|
679 |
-
|
680 |
-
|
681 |
-
|
682 |
-
|
683 |
-
|
684 |
-
|
685 |
-
|
686 |
-
|
687 |
-
|
688 |
-
|
689 |
-
|
690 |
-
|
691 |
-
|
692 |
-
|
693 |
-
|
694 |
-
|
695 |
-
|
696 |
-
|
697 |
-
|
698 |
-
|
699 |
-
|
700 |
-
|
701 |
-
}
|
702 |
-
.kiwi-modal .modal-
|
703 |
-
|
704 |
-
|
705 |
-
|
706 |
-
|
707 |
-
|
708 |
-
|
709 |
-
-
|
710 |
-
-
|
711 |
-
|
712 |
-
-
|
713 |
-
-
|
714 |
-
border-top-
|
715 |
-
|
716 |
-
|
717 |
-
|
718 |
-
|
719 |
-
|
720 |
-
|
721 |
-
|
722 |
-
|
723 |
-
|
724 |
-
|
725 |
-
|
726 |
-
|
727 |
-
font-
|
728 |
-
font-
|
729 |
-
color: #
|
730 |
-
}
|
731 |
-
.kiwi-modal .
|
732 |
-
|
733 |
-
|
734 |
-
|
735 |
-
|
736 |
-
|
737 |
-
|
738 |
-
|
739 |
-
|
740 |
-
|
741 |
-
|
742 |
-
|
743 |
-
|
744 |
-
|
745 |
-
|
746 |
-
|
747 |
-
|
748 |
-
|
749 |
-
|
750 |
-
|
751 |
-
|
752 |
-
|
753 |
-
|
754 |
-
|
755 |
-
|
756 |
-
|
757 |
-
|
758 |
-
|
759 |
-
|
760 |
-
|
761 |
-
|
762 |
-
|
763 |
-
|
764 |
-
font-size:
|
765 |
-
|
766 |
-
|
767 |
-
}
|
768 |
-
.kiwi-modal .modal-
|
769 |
-
|
770 |
-
|
771 |
-
|
772 |
-
|
773 |
-
|
774 |
-
|
775 |
-
|
776 |
-
|
777 |
-
|
778 |
-
|
779 |
-
|
780 |
-
|
781 |
-
|
782 |
-
|
783 |
-
|
784 |
-
|
785 |
-
|
786 |
-
|
787 |
-
|
788 |
-
|
789 |
-
|
790 |
-
|
791 |
-
|
792 |
-
padding-right:
|
793 |
-
|
794 |
-
|
795 |
-
|
796 |
-
|
797 |
-
-
|
798 |
-
|
799 |
-
|
800 |
-
|
801 |
-
|
802 |
-
-webkit-
|
803 |
-
-moz-
|
804 |
-
|
805 |
-
|
806 |
-
|
807 |
-
|
808 |
-
|
809 |
-
|
810 |
-
|
811 |
-
|
812 |
-
}
|
813 |
-
|
814 |
-
|
815 |
-
|
816 |
-
|
817 |
-
|
818 |
-
|
819 |
-
|
820 |
-
|
821 |
-
|
822 |
-
|
823 |
-
|
824 |
-
|
825 |
-
|
826 |
-
|
827 |
-
|
828 |
-
}
|
829 |
-
|
830 |
-
.epsilon-ui-tabs
|
831 |
-
height: 36px;
|
832 |
-
margin-
|
833 |
-
|
834 |
-
|
835 |
-
|
836 |
-
|
837 |
-
|
838 |
-
|
839 |
-
|
840 |
-
|
841 |
-
|
842 |
-
-
|
843 |
-
|
844 |
-
|
845 |
-
|
846 |
-
|
847 |
-
|
848 |
-
|
849 |
-
|
850 |
-
|
851 |
-
|
852 |
-
|
853 |
-
|
854 |
-
|
855 |
-
|
856 |
-
|
857 |
-
|
858 |
-
|
859 |
-
|
860 |
-
|
861 |
-
|
862 |
-
}
|
863 |
-
|
864 |
-
.epsilon-ui-tabs
|
865 |
-
|
866 |
-
|
867 |
-
}
|
868 |
-
|
869 |
-
.epsilon-ui-tabs a:
|
870 |
-
|
871 |
-
|
872 |
-
|
873 |
-
|
874 |
-
|
875 |
-
|
876 |
-
|
877 |
-
|
878 |
-
}
|
879 |
-
|
880 |
-
|
881 |
-
|
882 |
-
|
883 |
-
|
884 |
-
|
885 |
-
|
886 |
-
|
887 |
-
|
888 |
-
|
889 |
-
|
890 |
-
|
891 |
-
|
892 |
-
|
893 |
-
|
894 |
-
|
895 |
-
|
896 |
-
|
897 |
-
|
898 |
-
|
899 |
-
|
900 |
-
|
901 |
-
|
902 |
-
|
903 |
-
|
904 |
-
|
905 |
-
|
906 |
-
|
907 |
-
|
908 |
-
|
909 |
-
|
910 |
-
|
911 |
-
|
912 |
-
|
913 |
-
}
|
914 |
-
|
915 |
-
.epsilon-ui-checkbox
|
916 |
-
|
917 |
-
|
918 |
-
|
919 |
-
|
920 |
-
|
921 |
-
|
922 |
-
|
923 |
-
|
924 |
-
|
925 |
-
|
926 |
-
|
927 |
-
|
928 |
-
|
929 |
-
|
930 |
-
|
931 |
-
|
932 |
-
|
933 |
-
|
934 |
-
|
935 |
-
|
936 |
-
|
937 |
-
|
938 |
-
|
939 |
-
|
940 |
-
|
941 |
-
|
942 |
-
|
943 |
-
|
944 |
-
|
945 |
-
|
946 |
-
|
947 |
-
|
948 |
-
|
949 |
-
|
950 |
-
|
951 |
-
|
952 |
-
|
953 |
-
|
954 |
-
|
955 |
-
|
956 |
-
}
|
957 |
-
|
958 |
-
|
959 |
-
|
960 |
-
|
961 |
-
|
962 |
-
|
963 |
-
|
964 |
-
|
965 |
-
|
966 |
-
|
967 |
-
|
968 |
-
|
969 |
-
|
970 |
-
|
971 |
-
|
972 |
-
|
973 |
-
|
974 |
-
|
975 |
-
margin
|
976 |
-
|
977 |
-
|
978 |
-
|
979 |
-
|
980 |
-
|
981 |
-
|
982 |
-
|
983 |
-
}
|
984 |
-
|
985 |
-
.epsilon-ui-radio
|
986 |
-
display: block;
|
987 |
-
margin:
|
988 |
-
|
989 |
-
|
990 |
-
|
991 |
-
|
992 |
-
|
993 |
-
|
994 |
-
|
995 |
-
|
996 |
-
|
997 |
-
|
998 |
-
|
999 |
-
|
1000 |
-
|
1001 |
-
|
1002 |
-
|
1003 |
-
|
1004 |
-
|
1005 |
-
|
1006 |
-
|
1007 |
-
|
1008 |
-
|
1009 |
-
|
1010 |
-
|
1011 |
-
|
1012 |
-
|
1013 |
-
|
1014 |
-
|
1015 |
-
|
1016 |
-
|
1017 |
-
|
1018 |
-
|
1019 |
-
|
1020 |
-
|
1021 |
-
|
1022 |
-
|
1023 |
-
|
1024 |
-
|
1025 |
-
|
1026 |
-
|
1027 |
-
|
1028 |
-
|
1029 |
-
|
1030 |
-
|
1031 |
-
|
1032 |
-
|
1033 |
-
|
1034 |
-
|
1035 |
-
|
1036 |
-
|
1037 |
-
|
1038 |
-
|
1039 |
-
|
1040 |
-
|
1041 |
-
|
1042 |
-
|
1043 |
-
|
1044 |
-
|
1045 |
-
|
1046 |
-
|
1047 |
-
|
1048 |
-
|
1049 |
-
|
1050 |
-
|
1051 |
-
|
1052 |
-
|
1053 |
-
|
1054 |
-
|
1055 |
-
|
1056 |
-
|
1057 |
-
|
1058 |
-
}
|
1059 |
-
|
1060 |
-
.epsilon-ui-checklist li
|
1061 |
-
|
1062 |
-
|
1063 |
-
|
1064 |
-
|
1065 |
-
|
1066 |
-
|
1067 |
-
|
1068 |
-
|
1069 |
-
|
1070 |
-
|
1071 |
-
|
1072 |
-
|
1073 |
-
|
1074 |
-
|
1075 |
-
|
1076 |
-
|
1077 |
-
|
1078 |
-
|
1079 |
-
|
1080 |
-
|
1081 |
-
|
1082 |
-
|
1083 |
-
|
1084 |
-
|
1085 |
-
|
1086 |
-
|
1087 |
-
|
1088 |
-
|
1089 |
-
|
1090 |
-
|
1091 |
-
|
1092 |
-
right:
|
1093 |
-
|
1094 |
-
|
1095 |
-
|
1096 |
-
|
1097 |
-
|
1098 |
-
|
1099 |
-
|
1100 |
-
|
1101 |
-
|
1102 |
-
|
1103 |
-
|
1104 |
-
|
1105 |
-
|
1106 |
-
|
1107 |
-
|
1108 |
-
|
1109 |
-
|
1110 |
-
position:
|
1111 |
-
|
1112 |
-
|
1113 |
-
|
1114 |
-
|
1115 |
-
|
1116 |
-
|
1117 |
-
|
1118 |
-
|
1119 |
-
|
1120 |
-
|
1121 |
-
|
1122 |
-
|
1123 |
-
|
1124 |
-
|
1125 |
-
|
1126 |
-
|
1127 |
-
|
1128 |
-
|
1129 |
-
|
1130 |
-
|
1131 |
-
|
1132 |
-
|
1133 |
-
|
1134 |
-
|
1135 |
-
|
1136 |
-
|
1137 |
-
|
1138 |
-
|
1139 |
-
|
1140 |
-
|
1141 |
-
|
1142 |
-
|
1143 |
-
|
1144 |
-
|
1145 |
-
}
|
1146 |
-
#sl-kiwi .
|
1147 |
-
|
1148 |
-
|
1149 |
-
|
1150 |
-
|
1151 |
-
|
1152 |
-
|
1153 |
-
#sl-kiwi .bottom-color-option .
|
1154 |
-
width: 350px;
|
1155 |
-
|
1156 |
-
|
1157 |
-
|
1158 |
-
|
1159 |
-
|
1160 |
-
|
1161 |
-
|
1162 |
-
|
1163 |
-
}
|
1164 |
-
#sl-kiwi .bottom-color-option .wp-picker-container
|
1165 |
-
|
1166 |
-
|
1167 |
-
|
1168 |
-
|
1169 |
-
|
1170 |
-
|
1171 |
-
|
1172 |
-
|
1173 |
-
|
1174 |
-
|
1175 |
-
|
1176 |
-
|
1177 |
-
|
1178 |
-
|
1179 |
-
|
1180 |
-
#sl-kiwi .
|
1181 |
-
|
1182 |
-
height:
|
1183 |
-
|
1184 |
-
|
1185 |
-
|
1186 |
-
|
1187 |
-
|
1188 |
-
|
1189 |
-
|
1190 |
-
|
1191 |
-
|
1192 |
-
|
1193 |
-
|
1194 |
-
|
1195 |
-
|
1196 |
-
|
1197 |
-
|
1198 |
-
|
1199 |
-
|
1200 |
-
|
1201 |
-
|
1202 |
-
|
1203 |
-
|
1204 |
-
|
1205 |
-
|
1206 |
-
|
1207 |
-
|
1208 |
-
|
1209 |
-
|
1210 |
-
|
1211 |
-
|
1212 |
-
|
1213 |
-
|
1214 |
-
|
1215 |
-
|
1216 |
-
|
1217 |
-
|
1218 |
-
|
1219 |
-
|
1220 |
-
|
1221 |
-
|
1222 |
-
|
1223 |
-
|
1224 |
-
|
1225 |
-
|
1226 |
-
|
1227 |
-
|
1228 |
-
|
1229 |
-
|
1230 |
-
height: 90px;
|
1231 |
-
|
1232 |
-
|
1233 |
-
|
1234 |
-
|
1235 |
-
|
1236 |
-
|
1237 |
-
|
1238 |
-
|
1239 |
-
|
1240 |
-
|
1241 |
-
|
1242 |
-
|
1243 |
-
|
1244 |
-
|
1245 |
-
|
1246 |
-
|
1247 |
-
|
1248 |
-
|
1249 |
-
|
1250 |
-
|
1251 |
-
border-
|
1252 |
-
|
1253 |
-
|
1254 |
-
|
1255 |
-
|
1256 |
-
|
1257 |
-
|
1258 |
-
|
1259 |
-
|
1260 |
-
|
1261 |
-
|
1262 |
-
|
1263 |
-
|
1264 |
-
|
1265 |
-
|
1266 |
-
|
1267 |
-
|
1268 |
-
|
1269 |
-
|
1270 |
-
|
1271 |
-
|
1272 |
-
|
1273 |
-
|
1274 |
-
|
1275 |
-
|
1276 |
-
|
1277 |
-
.epsilon-ui-option input:checked
|
1278 |
-
|
1279 |
-
|
1280 |
-
|
1281 |
-
|
1282 |
-
|
1283 |
-
|
1284 |
-
|
1285 |
-
|
1286 |
-
|
1287 |
-
|
1288 |
-
|
1289 |
-
|
1290 |
-
|
1291 |
-
|
1292 |
-
|
1293 |
-
|
1294 |
-
|
1295 |
-
|
1296 |
-
|
1297 |
-
|
1298 |
-
|
1299 |
-
|
1300 |
-
|
1301 |
-
opacity: 1;
|
1302 |
-
}
|
1303 |
-
|
1304 |
-
.epsilon-ui-option input:disabled + span
|
1305 |
-
|
1306 |
-
|
1307 |
-
|
1308 |
-
|
1309 |
-
|
1310 |
-
|
1311 |
-
|
1312 |
-
|
1313 |
-
|
1314 |
-
|
1315 |
-
.epsilon-ui-option input:disabled + span .kiwi-ic-
|
1316 |
-
.epsilon-ui-option input:disabled + span .kiwi-ic-
|
1317 |
-
.epsilon-ui-option input:disabled + span .kiwi-ic-
|
1318 |
-
|
1319 |
-
|
1320 |
-
|
1321 |
-
|
1322 |
-
|
1323 |
-
|
1324 |
-
.epsilon-ui-option input:disabled + span .kiwi-ic-
|
1325 |
-
.epsilon-ui-option input:disabled + span .kiwi-ic-
|
1326 |
-
.epsilon-ui-option input:disabled + span .kiwi-ic-
|
1327 |
-
|
1328 |
-
|
1329 |
-
|
1330 |
-
|
1331 |
-
|
1332 |
-
|
1333 |
-
.epsilon-ui-option input:disabled + span .kiwi-ic-
|
1334 |
-
.epsilon-ui-option input:disabled + span .kiwi-ic-
|
1335 |
-
.epsilon-ui-option input:disabled + span .kiwi-ic-
|
1336 |
-
|
1337 |
-
|
1338 |
-
|
1339 |
-
|
1340 |
-
|
1341 |
-
|
1342 |
-
|
1343 |
-
|
1344 |
-
.epsilon-ui-option .kiwi-ic-
|
1345 |
-
|
1346 |
-
|
1347 |
-
|
1348 |
-
|
1349 |
-
|
1350 |
-
|
1351 |
-
|
1352 |
-
|
1353 |
-
|
1354 |
-
|
1355 |
-
|
1356 |
-
|
1357 |
-
|
1358 |
-
|
1359 |
-
|
1360 |
-
|
1361 |
-
|
1362 |
-
|
1363 |
-
|
1364 |
-
|
1365 |
-
|
1366 |
-
|
1367 |
-
|
1368 |
-
|
1369 |
-
|
1370 |
-
|
1371 |
-
|
1372 |
-
|
1373 |
-
|
1374 |
-
|
1375 |
-
|
1376 |
-
|
1377 |
-
|
1378 |
-
|
1379 |
-
|
1380 |
-
|
1381 |
-
|
1382 |
-
|
1383 |
-
|
1384 |
-
|
1385 |
-
|
1386 |
-
|
1387 |
-
|
1388 |
-
|
1389 |
-
|
1390 |
-
|
1391 |
-
|
1392 |
-
|
1393 |
-
|
1394 |
-
|
1395 |
-
|
1396 |
-
|
1397 |
-
|
1398 |
-
|
1399 |
-
|
1400 |
-
|
1401 |
-
|
1402 |
-
|
1403 |
-
|
1404 |
-
|
1405 |
-
|
1406 |
-
|
1407 |
-
|
1408 |
-
|
1409 |
-
|
1410 |
-
|
1411 |
-
|
1412 |
-
|
1413 |
-
|
1414 |
-
|
1415 |
-
|
1416 |
-
|
1417 |
-
|
1418 |
-
|
1419 |
-
|
1420 |
-
|
1421 |
-
|
1422 |
-
|
1423 |
-
|
1424 |
-
|
1425 |
-
|
1426 |
-
|
1427 |
-
|
1428 |
-
|
1429 |
-
|
1430 |
-
|
1431 |
-
|
1432 |
-
|
1433 |
-
|
1434 |
-
|
1435 |
-
|
1436 |
-
|
1437 |
-
|
1438 |
-
|
1439 |
-
|
1440 |
-
|
1441 |
-
|
1442 |
-
|
1443 |
-
|
1444 |
-
|
1445 |
-
|
1446 |
-
|
1447 |
-
|
1448 |
-
width:
|
1449 |
-
height:
|
1450 |
-
left: 6px;
|
1451 |
-
top:
|
1452 |
-
display: block;
|
1453 |
-
position: absolute;
|
1454 |
-
}
|
1455 |
-
|
1456 |
-
.epsilon-ui-option .kiwi-ic-centered strong > em
|
1457 |
-
background: #
|
1458 |
-
opacity:
|
1459 |
-
|
1460 |
-
|
1461 |
-
|
1462 |
-
|
1463 |
-
|
1464 |
-
|
1465 |
-
|
1466 |
-
|
1467 |
-
|
1468 |
-
|
1469 |
-
|
1470 |
-
|
1471 |
-
|
1472 |
-
|
1473 |
-
|
1474 |
-
|
1475 |
-
|
1476 |
-
|
1477 |
-
|
1478 |
-
|
1479 |
-
|
1480 |
-
|
1481 |
-
|
1482 |
-
|
1483 |
-
|
1484 |
-
|
1485 |
-
|
1486 |
-
|
1487 |
-
|
1488 |
-
|
1489 |
-
|
1490 |
-
|
1491 |
-
|
1492 |
-
|
1493 |
-
|
1494 |
-
|
1495 |
-
|
1496 |
-
|
1497 |
-
|
1498 |
-
|
1499 |
-
|
1500 |
-
|
1501 |
-
|
1502 |
-
|
1503 |
-
|
1504 |
-
|
1505 |
-
|
1506 |
-
|
1507 |
-
|
1508 |
-
|
1509 |
-
|
1510 |
-
|
1511 |
-
|
1512 |
-
|
1513 |
-
|
1514 |
-
|
1515 |
-
|
1516 |
-
|
1517 |
-
|
1518 |
-
|
1519 |
-
|
1520 |
-
|
1521 |
-
|
1522 |
-
|
1523 |
-
width:
|
1524 |
-
height:
|
1525 |
-
left: 6px;
|
1526 |
-
top:
|
1527 |
-
display: block;
|
1528 |
-
position: absolute;
|
1529 |
-
}
|
1530 |
-
|
1531 |
-
.epsilon-ui-option .kiwi-ic-filled strong > em
|
1532 |
-
background: #
|
1533 |
-
opacity:
|
1534 |
-
|
1535 |
-
|
1536 |
-
|
1537 |
-
|
1538 |
-
|
1539 |
-
|
1540 |
-
|
1541 |
-
|
1542 |
-
|
1543 |
-
|
1544 |
-
|
1545 |
-
|
1546 |
-
|
1547 |
-
|
1548 |
-
|
1549 |
-
|
1550 |
-
|
1551 |
-
|
1552 |
-
|
1553 |
-
|
1554 |
-
|
1555 |
-
|
1556 |
-
|
1557 |
-
|
1558 |
-
|
1559 |
-
|
1560 |
-
|
1561 |
-
|
1562 |
-
|
1563 |
-
|
1564 |
-
|
1565 |
-
|
1566 |
-
|
1567 |
-
|
1568 |
-
|
1569 |
-
|
1570 |
-
|
1571 |
-
|
1572 |
-
|
1573 |
-
|
1574 |
-
|
1575 |
-
|
1576 |
-
|
1577 |
-
|
1578 |
-
|
1579 |
-
|
1580 |
-
|
1581 |
-
|
1582 |
-
|
1583 |
-
|
1584 |
-
|
1585 |
-
|
1586 |
-
|
1587 |
-
|
1588 |
-
|
1589 |
-
|
1590 |
-
|
1591 |
-
|
1592 |
-
|
1593 |
-
|
1594 |
-
|
1595 |
-
|
1596 |
-
|
1597 |
-
|
1598 |
-
width:
|
1599 |
-
height:
|
1600 |
-
left: 6px;
|
1601 |
-
top:
|
1602 |
-
display: block;
|
1603 |
-
position: absolute;
|
1604 |
-
}
|
1605 |
-
|
1606 |
-
.epsilon-ui-option .kiwi-ic-posbottom strong > em
|
1607 |
-
background: #
|
1608 |
-
opacity:
|
1609 |
-
|
1610 |
-
|
1611 |
-
|
1612 |
-
|
1613 |
-
|
1614 |
-
|
1615 |
-
|
1616 |
-
|
1617 |
-
|
1618 |
-
|
1619 |
-
|
1620 |
-
|
1621 |
-
|
1622 |
-
|
1623 |
-
|
1624 |
-
|
1625 |
-
|
1626 |
-
|
1627 |
-
|
1628 |
-
|
1629 |
-
|
1630 |
-
|
1631 |
-
|
1632 |
-
|
1633 |
-
|
1634 |
-
|
1635 |
-
|
1636 |
-
|
1637 |
-
|
1638 |
-
|
1639 |
-
|
1640 |
-
|
1641 |
-
|
1642 |
-
|
1643 |
-
|
1644 |
-
|
1645 |
-
|
1646 |
-
|
1647 |
-
|
1648 |
-
|
1649 |
-
|
1650 |
-
|
1651 |
-
|
1652 |
-
|
1653 |
-
|
1654 |
-
|
1655 |
-
|
1656 |
-
|
1657 |
-
|
1658 |
-
|
1659 |
-
|
1660 |
-
|
1661 |
-
|
1662 |
-
|
1663 |
-
|
1664 |
-
|
1665 |
-
|
1666 |
-
|
1667 |
-
|
1668 |
-
|
1669 |
-
|
1670 |
-
|
1671 |
-
|
1672 |
-
|
1673 |
-
|
1674 |
-
|
1675 |
-
|
1676 |
-
|
1677 |
-
|
1678 |
-
|
1679 |
-
|
1680 |
-
|
1681 |
-
width:
|
1682 |
-
height:
|
1683 |
-
left: 6px;
|
1684 |
-
top:
|
1685 |
-
display: block;
|
1686 |
-
position: absolute;
|
1687 |
-
}
|
1688 |
-
|
1689 |
-
.epsilon-ui-option .kiwi-ic-posboth strong > em
|
1690 |
-
background: #
|
1691 |
-
opacity:
|
1692 |
-
|
1693 |
-
|
1694 |
-
|
1695 |
-
|
1696 |
-
|
1697 |
-
|
1698 |
-
|
1699 |
-
|
1700 |
-
|
1701 |
-
|
1702 |
-
|
1703 |
-
|
1704 |
-
|
1705 |
-
|
1706 |
-
|
1707 |
-
|
1708 |
-
|
1709 |
-
|
1710 |
-
|
1711 |
-
|
1712 |
-
|
1713 |
-
|
1714 |
-
|
1715 |
-
|
1716 |
-
|
1717 |
-
|
1718 |
-
|
1719 |
-
|
1720 |
-
|
1721 |
-
|
1722 |
-
|
1723 |
-
|
1724 |
-
|
1725 |
-
|
1726 |
-
|
1727 |
-
|
1728 |
-
|
1729 |
-
|
1730 |
-
|
1731 |
-
|
1732 |
-
|
1733 |
-
|
1734 |
-
|
1735 |
-
|
1736 |
-
|
1737 |
-
|
1738 |
-
|
1739 |
-
|
1740 |
-
|
1741 |
-
|
1742 |
-
|
1743 |
-
|
1744 |
-
|
1745 |
-
|
1746 |
-
|
1747 |
-
|
1748 |
-
|
1749 |
-
|
1750 |
-
|
1751 |
-
|
1752 |
-
|
1753 |
-
|
1754 |
-
|
1755 |
-
|
1756 |
-
|
1757 |
-
|
1758 |
-
|
1759 |
-
|
1760 |
-
|
1761 |
-
|
1762 |
-
|
1763 |
-
|
1764 |
-
|
1765 |
-
|
1766 |
-
|
1767 |
-
|
1768 |
-
|
1769 |
-
|
1770 |
-
|
1771 |
-
|
1772 |
-
|
1773 |
-
|
1774 |
-
|
1775 |
-
|
1776 |
-
|
1777 |
-
|
1778 |
-
|
1779 |
-
|
1780 |
-
|
1781 |
-
|
1782 |
-
|
1783 |
-
|
1784 |
-
|
1785 |
-
|
1786 |
-
|
1787 |
-
|
1788 |
-
|
1789 |
-
|
1790 |
-
|
1791 |
-
|
1792 |
-
|
1793 |
-
|
1794 |
-
|
1795 |
-
|
1796 |
-
|
1797 |
-
|
1798 |
-
|
1799 |
-
|
1800 |
-
|
1801 |
-
|
1802 |
-
|
1803 |
-
|
1804 |
-
|
1805 |
-
|
1806 |
-
|
1807 |
-
|
1808 |
-
|
1809 |
-
|
1810 |
-
|
1811 |
-
|
1812 |
-
|
1813 |
-
|
1814 |
-
|
1815 |
-
|
1816 |
-
|
1817 |
-
|
1818 |
-
|
1819 |
-
|
1820 |
-
|
1821 |
-
|
1822 |
-
|
1823 |
-
|
1824 |
-
width:
|
1825 |
-
height:
|
1826 |
-
left: 6px;
|
1827 |
-
top:
|
1828 |
-
display: block;
|
1829 |
-
position: absolute;
|
1830 |
-
}
|
1831 |
-
|
1832 |
-
.epsilon-ui-option .kiwi-ic-postop strong > em
|
1833 |
-
background: #
|
1834 |
-
opacity:
|
1835 |
-
|
1836 |
-
|
1837 |
-
|
1838 |
-
|
1839 |
-
|
1840 |
-
|
1841 |
-
|
1842 |
-
|
1843 |
-
|
1844 |
-
|
1845 |
-
|
1846 |
-
|
1847 |
-
|
1848 |
-
|
1849 |
-
|
1850 |
-
|
1851 |
-
|
1852 |
-
|
1853 |
-
|
1854 |
-
|
1855 |
-
|
1856 |
-
|
1857 |
-
|
1858 |
-
|
1859 |
-
|
1860 |
-
|
1861 |
-
|
1862 |
-
|
1863 |
-
|
1864 |
-
|
1865 |
-
|
1866 |
-
|
1867 |
-
|
1868 |
-
|
1869 |
-
|
1870 |
-
|
1871 |
-
|
1872 |
-
|
1873 |
-
|
1874 |
-
|
1875 |
-
|
1876 |
-
|
1877 |
-
|
1878 |
-
|
1879 |
-
|
1880 |
-
|
1881 |
-
|
1882 |
-
|
1883 |
-
|
1884 |
-
|
1885 |
-
|
1886 |
-
|
1887 |
-
|
1888 |
-
|
1889 |
-
|
1890 |
-
|
1891 |
-
|
1892 |
-
|
1893 |
-
|
1894 |
-
|
1895 |
-
width:
|
1896 |
-
height:
|
1897 |
-
|
1898 |
-
|
1899 |
-
|
1900 |
-
|
1901 |
-
|
1902 |
-
|
1903 |
-
|
1904 |
-
|
1905 |
-
|
1906 |
-
|
1907 |
-
|
1908 |
-
|
1909 |
-
|
1910 |
-
|
1911 |
-
|
1912 |
-
|
1913 |
-
|
1914 |
-
|
1915 |
-
|
1916 |
-
|
1917 |
-
|
1918 |
-
|
1919 |
-
|
1920 |
-
|
1921 |
-
|
1922 |
-
|
1923 |
-
|
1924 |
-
|
1925 |
-
|
1926 |
-
|
1927 |
-
|
1928 |
-
|
1929 |
-
|
1930 |
-
|
1931 |
-
|
1932 |
-
|
1933 |
-
|
1934 |
-
|
1935 |
-
|
1936 |
-
|
1937 |
-
|
1938 |
-
|
1939 |
-
|
1940 |
-
|
1941 |
-
|
1942 |
-
|
1943 |
-
|
1944 |
-
|
1945 |
-
|
1946 |
-
|
1947 |
-
|
1948 |
-
|
1949 |
-
|
1950 |
-
|
1951 |
-
|
1952 |
-
|
1953 |
-
|
1954 |
-
|
1955 |
-
|
1956 |
-
|
1957 |
-
|
1958 |
-
|
1959 |
-
|
1960 |
-
|
1961 |
-
|
1962 |
-
|
1963 |
-
|
1964 |
-
|
1965 |
-
|
1966 |
-
|
1967 |
-
|
1968 |
-
|
1969 |
-
|
1970 |
-
|
1971 |
-
|
1972 |
-
|
1973 |
-
|
1974 |
-
|
1975 |
-
|
1976 |
-
|
1977 |
-
|
1978 |
-
|
1979 |
-
|
1980 |
-
|
1981 |
-
|
1982 |
-
|
1983 |
-
|
1984 |
-
|
1985 |
-
|
1986 |
-
.epsilon-ui-toggle
|
1987 |
-
|
1988 |
-
|
1989 |
-
|
1990 |
-
|
1991 |
-
|
1992 |
-
|
1993 |
-
|
1994 |
-
|
1995 |
-
|
1996 |
-
.ui-
|
1997 |
-
|
1998 |
-
|
1999 |
-
|
2000 |
-
|
2001 |
-
|
2002 |
-
|
2003 |
-
|
2004 |
-
|
2005 |
-
|
2006 |
-
|
2007 |
-
|
2008 |
-
|
2009 |
-
|
2010 |
-
|
2011 |
-
|
2012 |
-
|
2013 |
-
|
2014 |
-
|
2015 |
-
|
2016 |
-
|
2017 |
-
|
2018 |
-
|
2019 |
-
|
2020 |
-
|
2021 |
-
|
2022 |
-
|
2023 |
-
|
2024 |
-
|
2025 |
-
|
2026 |
-
|
2027 |
-
|
2028 |
-
|
2029 |
-
|
2030 |
-
|
2031 |
-
|
2032 |
-
|
2033 |
-
|
2034 |
-
|
2035 |
-
|
2036 |
-
|
2037 |
-
|
2038 |
-
|
2039 |
-
|
2040 |
-
|
2041 |
-
|
2042 |
-
|
2043 |
-
|
2044 |
-
|
2045 |
-
|
2046 |
-
|
2047 |
-
|
2048 |
-
|
2049 |
-
|
2050 |
-
|
2051 |
-
|
2052 |
-
|
2053 |
-
|
2054 |
-
|
2055 |
-
|
2056 |
-
|
2057 |
-
|
2058 |
-
|
2059 |
-
|
2060 |
-
|
2061 |
-
display: block;
|
2062 |
-
|
2063 |
-
|
2064 |
-
|
2065 |
-
|
2066 |
-
height:
|
2067 |
-
|
2068 |
-
|
2069 |
-
|
2070 |
-
|
2071 |
-
|
2072 |
-
|
2073 |
-
|
2074 |
-
|
2075 |
-
|
2076 |
-
|
2077 |
-
|
2078 |
-
|
2079 |
-
|
2080 |
-
|
2081 |
-
|
2082 |
-
|
2083 |
-
font-size:
|
2084 |
-
font-
|
2085 |
-
|
2086 |
-
|
2087 |
-
|
2088 |
-
|
2089 |
-
|
2090 |
-
|
2091 |
-
|
2092 |
-
|
2093 |
-
|
2094 |
-
|
2095 |
-
|
2096 |
-
|
2097 |
-
|
2098 |
-
|
2099 |
-
|
2100 |
-
|
2101 |
-
|
2102 |
-
|
2103 |
-
|
2104 |
-
|
2105 |
-
|
2106 |
-
|
2107 |
-
|
2108 |
-
|
2109 |
-
|
2110 |
-
|
2111 |
-
|
2112 |
-
|
2113 |
-
|
2114 |
-
|
2115 |
-
|
2116 |
-
|
2117 |
-
|
2118 |
-
|
2119 |
-
|
2120 |
-
}
|
2121 |
-
.sl-kiwi-tab-integration.
|
2122 |
-
|
2123 |
-
|
2124 |
-
|
2125 |
-
|
2126 |
-
|
2127 |
-
|
2128 |
-
|
2129 |
-
|
2130 |
-
|
2131 |
-
}
|
2132 |
-
|
2133 |
-
|
2134 |
-
|
2135 |
-
|
2136 |
-
|
2137 |
-
|
2138 |
-
|
2139 |
-
|
2140 |
-
|
2141 |
-
|
2142 |
-
}
|
2143 |
-
|
2144 |
-
.
|
2145 |
-
|
2146 |
-
|
2147 |
-
|
2148 |
-
.kiwi-
|
2149 |
-
|
2150 |
-
|
2151 |
-
|
2152 |
-
|
2153 |
-
|
2154 |
-
|
2155 |
-
.kiwi-
|
2156 |
-
|
2157 |
-
}
|
2158 |
-
|
2159 |
-
|
2160 |
-
|
2161 |
-
|
2162 |
-
|
2163 |
-
|
2164 |
-
|
2165 |
-
|
2166 |
-
|
2167 |
-
|
2168 |
-
|
2169 |
-
|
2170 |
-
|
2171 |
-
|
2172 |
-
|
2173 |
-
|
2174 |
-
|
2175 |
-
|
2176 |
-
|
2177 |
-
|
2178 |
-
|
2179 |
-
|
2180 |
-
|
2181 |
-
.
|
2182 |
-
|
2183 |
-
|
2184 |
-
|
2185 |
-
|
2186 |
-
|
2187 |
-
|
2188 |
-
|
2189 |
-
|
2190 |
-
|
2191 |
-
|
2192 |
-
|
2193 |
-
|
2194 |
-
|
2195 |
-
|
2196 |
-
|
2197 |
-
|
2198 |
-
|
2199 |
-
|
2200 |
-
|
2201 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* ==========================================================================
|
2 |
+
=Links
|
3 |
+
========================================================================== */
|
4 |
+
#sl-kiwi {
|
5 |
+
width: 1150px;
|
6 |
+
padding: 20px;
|
7 |
+
margin-bottom: 10px;
|
8 |
+
font-family: 'Open Sans';
|
9 |
+
position: relative;
|
10 |
+
}
|
11 |
+
#sl-kiwi a:focus {
|
12 |
+
box-shadow: none;
|
13 |
+
-webkit-box-shadow: none;
|
14 |
+
}
|
15 |
+
#sl-kiwi .overlay {
|
16 |
+
position: absolute;
|
17 |
+
top: 20px;
|
18 |
+
bottom: 102px;
|
19 |
+
left: 20px;
|
20 |
+
right: 20px;
|
21 |
+
-webkit-transition: all .3s;
|
22 |
+
transition: all .3s;
|
23 |
+
z-index: 9999;
|
24 |
+
text-align: center;
|
25 |
+
padding-top: 250px;
|
26 |
+
}
|
27 |
+
#sl-kiwi .overlay.active {
|
28 |
+
-webkit-transition: all .4s;
|
29 |
+
transition: all .4s;
|
30 |
+
background: rgba(255, 255, 255, 0.97);
|
31 |
+
}
|
32 |
+
#sl-kiwi .overlay img {
|
33 |
+
position: relative;
|
34 |
+
top: -72px;
|
35 |
+
}
|
36 |
+
|
37 |
+
.kiwi-notification-popup {
|
38 |
+
width: 100%;
|
39 |
+
padding: 25px 20px;
|
40 |
+
box-sizing: border-box;
|
41 |
+
-webkit-border-radius: 3px;
|
42 |
+
-moz-border-radius: 3px;
|
43 |
+
border-radius: 3px;
|
44 |
+
background-color: #0073aa;
|
45 |
+
color: #fff;
|
46 |
+
display: none;
|
47 |
+
position: relative;
|
48 |
+
z-index: 10;
|
49 |
+
}
|
50 |
+
.kiwi-notification-popup .button {
|
51 |
+
float: right;
|
52 |
+
position: relative;
|
53 |
+
bottom: 5px;
|
54 |
+
}
|
55 |
+
|
56 |
+
.kiwi-utility-bar {
|
57 |
+
position: absolute;
|
58 |
+
top: 20px;
|
59 |
+
right: -25px;
|
60 |
+
display: none;
|
61 |
+
}
|
62 |
+
.kiwi-utility-bar > input {
|
63 |
+
position: fixed;
|
64 |
+
}
|
65 |
+
|
66 |
+
.sl-kiwi-content {
|
67 |
+
background: #fff;
|
68 |
+
min-height: 500px;
|
69 |
+
margin-top: -10px;
|
70 |
+
position: relative;
|
71 |
+
z-index: 5;
|
72 |
+
-webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.06);
|
73 |
+
-moz-box-shadow: 0 0 5px rgba(0, 0, 0, 0.06);
|
74 |
+
box-shadow: 0 0 5px rgba(0, 0, 0, 0.06);
|
75 |
+
padding: 10px 30px;
|
76 |
+
}
|
77 |
+
.sl-kiwi-content input[type="text"], .sl-kiwi-content input[type="email"], .sl-kiwi-content input[type="url"] {
|
78 |
+
width: 330px;
|
79 |
+
height: 32px;
|
80 |
+
-webkit-border-radius: 3px;
|
81 |
+
-moz-border-radius: 3px;
|
82 |
+
border-radius: 3px;
|
83 |
+
background-color: #fff;
|
84 |
+
-webkit-box-shadow: 1px 1px 2px rgba(35, 31, 32, 0.2);
|
85 |
+
-moz-box-shadow: 1px 1px 2px rgba(35, 31, 32, 0.2);
|
86 |
+
box-shadow: 1px 1px 2px rgba(35, 31, 32, 0.2);
|
87 |
+
padding-left: 10px;
|
88 |
+
margin-top: 5px;
|
89 |
+
border: 1px solid #f2f2f2;
|
90 |
+
}
|
91 |
+
|
92 |
+
.sl-kiwi-content > div {
|
93 |
+
padding-bottom: 50px;
|
94 |
+
display: none;
|
95 |
+
}
|
96 |
+
|
97 |
+
.sl-kiwi-content > div.epsilon-tab-active {
|
98 |
+
display: block;
|
99 |
+
}
|
100 |
+
|
101 |
+
.sl-kiwi-dragdrop .suggestions {
|
102 |
+
font-size: 32px;
|
103 |
+
color: #EBEBEB;
|
104 |
+
width: 100%;
|
105 |
+
height: 40px;
|
106 |
+
line-height: 40px;
|
107 |
+
text-align: center;
|
108 |
+
font-weight: bold;
|
109 |
+
display: block;
|
110 |
+
position: absolute;
|
111 |
+
top: 15px;
|
112 |
+
opacity: .7;
|
113 |
+
-webkit-user-select: none;
|
114 |
+
/* Chrome all / Safari all */
|
115 |
+
-moz-user-select: none;
|
116 |
+
/* Firefox all */
|
117 |
+
-ms-user-select: none;
|
118 |
+
/* IE 10+ */
|
119 |
+
user-select: none;
|
120 |
+
/* Likely future */
|
121 |
+
cursor: default;
|
122 |
+
}
|
123 |
+
|
124 |
+
.sl-kiwi-dragdrop {
|
125 |
+
height: 220px;
|
126 |
+
border: 1px solid #fff;
|
127 |
+
margin: 0;
|
128 |
+
position: relative;
|
129 |
+
-webkit-border-radius: 3px 3px 0 0;
|
130 |
+
-moz-border-radius: 3px 3px 0 0;
|
131 |
+
border-radius: 3px 3px 0 0;
|
132 |
+
background-color: #fff;
|
133 |
+
-webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
|
134 |
+
-moz-box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
|
135 |
+
box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
|
136 |
+
background-image: -webkit-linear-gradient(top, rgba(255, 255, 255, 0.7), rgba(246, 246, 246, 0.7));
|
137 |
+
background-image: -moz-linear-gradient(top, rgba(255, 255, 255, 0.7), rgba(246, 246, 246, 0.7));
|
138 |
+
background-image: -o-linear-gradient(top, rgba(255, 255, 255, 0.7), rgba(246, 246, 246, 0.7));
|
139 |
+
background-image: -ms-linear-gradient(top, rgba(255, 255, 255, 0.7), rgba(246, 246, 246, 0.7));
|
140 |
+
background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.7), rgba(246, 246, 246, 0.7));
|
141 |
+
}
|
142 |
+
|
143 |
+
.sl-kiwi-dragdrop > div {
|
144 |
+
padding: 85px 25px 0 25px;
|
145 |
+
text-align: center;
|
146 |
+
}
|
147 |
+
|
148 |
+
.sl-kiwi-dragdrop ul {
|
149 |
+
line-height: 30px;
|
150 |
+
vertical-align: top;
|
151 |
+
}
|
152 |
+
|
153 |
+
.sl-kiwi-dragdrop ul[data-id="networks_ordering_floating_bar"] {
|
154 |
+
position: absolute;
|
155 |
+
top: 45px;
|
156 |
+
right: 0;
|
157 |
+
z-index: -1;
|
158 |
+
transition: all .3s;
|
159 |
+
opacity: 0;
|
160 |
+
}
|
161 |
+
.sl-kiwi-dragdrop ul[data-id="networks_ordering_floating_bar"] li {
|
162 |
+
display: block;
|
163 |
+
margin: 0;
|
164 |
+
padding: 0;
|
165 |
+
}
|
166 |
+
.sl-kiwi-dragdrop ul[data-id="networks_ordering_floating_bar"] li a {
|
167 |
+
display: block;
|
168 |
+
height: 40px;
|
169 |
+
line-height: 40px;
|
170 |
+
padding: 0 5px;
|
171 |
+
min-width: 40px;
|
172 |
+
transition: all .3s;
|
173 |
+
-webkit-box-shadow: none;
|
174 |
+
box-shadow: none;
|
175 |
+
font-size: 16px;
|
176 |
+
box-sizing: border-box;
|
177 |
+
position: relative;
|
178 |
+
z-index: 1;
|
179 |
+
}
|
180 |
+
.sl-kiwi-dragdrop ul[data-id="networks_ordering_floating_bar"] li.sl-kiwi-dragdrop-placeholder:before {
|
181 |
+
width: 40px;
|
182 |
+
}
|
183 |
+
.sl-kiwi-dragdrop ul[data-id="networks_ordering_floating_bar"].pill li {
|
184 |
+
margin-bottom: 2px;
|
185 |
+
}
|
186 |
+
.sl-kiwi-dragdrop ul[data-id="networks_ordering_floating_bar"].pill li a {
|
187 |
+
border-radius: 25px;
|
188 |
+
}
|
189 |
+
|
190 |
+
#sl-kiwi .sl-kiwi-item-add {
|
191 |
+
margin-right: 5px;
|
192 |
+
}
|
193 |
+
|
194 |
+
#sl-kiwi .sl-kiwi-item-remove {
|
195 |
+
max-width: 0;
|
196 |
+
margin-right: 0;
|
197 |
+
display: none;
|
198 |
+
}
|
199 |
+
|
200 |
+
.sl-kiwi-dragdrop-placeholder:before {
|
201 |
+
border: 1px dashed #ccc;
|
202 |
+
width: 100%;
|
203 |
+
position: absolute;
|
204 |
+
top: 0;
|
205 |
+
left: 0;
|
206 |
+
bottom: 0;
|
207 |
+
right: 0;
|
208 |
+
height: 100%;
|
209 |
+
content: " ";
|
210 |
+
display: block;
|
211 |
+
}
|
212 |
+
|
213 |
+
.sl-kiwi-dragdrop-placeholder {
|
214 |
+
position: relative;
|
215 |
+
height: 30px;
|
216 |
+
padding: 0 5px;
|
217 |
+
min-width: 90px;
|
218 |
+
background: transparent;
|
219 |
+
vertical-align: top;
|
220 |
+
}
|
221 |
+
|
222 |
+
.sl-kiwi-dragdrop ul.pill a {
|
223 |
+
border-radius: 15px;
|
224 |
+
}
|
225 |
+
|
226 |
+
.sl-kiwi-dragdrop ul.leaf a {
|
227 |
+
border-radius: 12px 0 12px 0;
|
228 |
+
}
|
229 |
+
|
230 |
+
.sl-kiwi-dragdrop ul.shift a {
|
231 |
+
-ms-transform: skewX(-15deg);
|
232 |
+
-webkit-transform: skewX(-15deg);
|
233 |
+
transform: skewX(-15deg);
|
234 |
+
}
|
235 |
+
|
236 |
+
.sl-kiwi-dragdrop ul.shift span {
|
237 |
+
-ms-transform: skewX(15deg);
|
238 |
+
-webkit-transform: skewX(15deg);
|
239 |
+
transform: skewX(15deg);
|
240 |
+
display: block;
|
241 |
+
}
|
242 |
+
|
243 |
+
.sl-kiwi-dragdrop ul.pill .sl-kiwi-dragdrop-placeholder:before {
|
244 |
+
border-radius: 15px;
|
245 |
+
}
|
246 |
+
|
247 |
+
.sl-kiwi-dragdrop ul.leaf .sl-kiwi-dragdrop-placeholder:before {
|
248 |
+
border-radius: 12px 0 12px 0;
|
249 |
+
}
|
250 |
+
|
251 |
+
.sl-kiwi-dragdrop ul.shift .sl-kiwi-dragdrop-placeholder:before {
|
252 |
+
-ms-transform: skewX(-15deg);
|
253 |
+
-webkit-transform: skewX(-15deg);
|
254 |
+
transform: skewX(-15deg);
|
255 |
+
}
|
256 |
+
|
257 |
+
.sl-kiwi-dragdrop li {
|
258 |
+
list-style-type: none;
|
259 |
+
transition: max-width .2s, margin .2s;
|
260 |
+
overflow: hidden;
|
261 |
+
margin-right: 5px;
|
262 |
+
display: inline-block;
|
263 |
+
padding: 0 5px;
|
264 |
+
}
|
265 |
+
|
266 |
+
.sl-kiwi-dragdrop li.ui-sortable-helper a {
|
267 |
+
transition: box-shadow .3s;
|
268 |
+
-webkit-box-shadow: 6px 10px 10px rgba(0, 0, 0, 0.1);
|
269 |
+
-moz-box-shadow: 6px 10px 10px rgba(0, 0, 0, 0.1);
|
270 |
+
box-shadow: 6px 10px 10px rgba(0, 0, 0, 0.1);
|
271 |
+
}
|
272 |
+
|
273 |
+
.sl-kiwi-dragdrop li a:hover {
|
274 |
+
text-decoration: none;
|
275 |
+
}
|
276 |
+
|
277 |
+
.sl-kiwi-dragdrop li a {
|
278 |
+
display: block;
|
279 |
+
height: 30px;
|
280 |
+
line-height: 30px;
|
281 |
+
padding: 0 5px;
|
282 |
+
min-width: 90px;
|
283 |
+
transition: all .3s;
|
284 |
+
}
|
285 |
+
|
286 |
+
.sl-kiwi-networks {
|
287 |
+
margin-bottom: 40px;
|
288 |
+
position: relative;
|
289 |
+
}
|
290 |
+
.sl-kiwi-networks .epsilon-ui-locked {
|
291 |
+
position: absolute;
|
292 |
+
right: -15px;
|
293 |
+
width: 35px;
|
294 |
+
height: 35px;
|
295 |
+
line-height: 35px;
|
296 |
+
top: 12px;
|
297 |
+
text-align: center;
|
298 |
+
}
|
299 |
+
|
300 |
+
ul[data-style="fit"] {
|
301 |
+
display: table;
|
302 |
+
width: 100%;
|
303 |
+
}
|
304 |
+
ul[data-style="fit"] li {
|
305 |
+
display: table-cell;
|
306 |
+
padding: 0;
|
307 |
+
overflow: initial;
|
308 |
+
}
|
309 |
+
ul[data-style="fit"].leaf a {
|
310 |
+
width: 100%;
|
311 |
+
}
|
312 |
+
ul[data-style="fit"].leaf li:last-of-type a {
|
313 |
+
width: 100%;
|
314 |
+
}
|
315 |
+
ul[data-style="fit"].pill {
|
316 |
+
flex-wrap: nowrap;
|
317 |
+
display: flex;
|
318 |
+
margin-left: 20px;
|
319 |
+
width: auto;
|
320 |
+
}
|
321 |
+
ul[data-style="fit"].pill .sl-kiwi-item-add {
|
322 |
+
margin: 0;
|
323 |
+
flex: 1;
|
324 |
+
}
|
325 |
+
ul[data-style="fit"].pill .sl-kiwi-item-add a {
|
326 |
+
padding: 0;
|
327 |
+
display: block;
|
328 |
+
width: 100%;
|
329 |
+
padding-left: 26px;
|
330 |
+
margin-left: -26px;
|
331 |
+
}
|
332 |
+
ul[data-style="fit"].pill .sl-kiwi-item-add span {
|
333 |
+
margin-right: 26px;
|
334 |
+
}
|
335 |
+
|
336 |
+
.sl-kiwi-tab-socialIdentity label, .sl-kiwi-tab-registration label {
|
337 |
+
display: block;
|
338 |
+
color: #808080;
|
339 |
+
margin-bottom: 5px;
|
340 |
+
}
|
341 |
+
.sl-kiwi-tab-socialIdentity input[type="text"], .sl-kiwi-tab-registration input[type="text"] {
|
342 |
+
padding: 5px;
|
343 |
+
margin-bottom: 15px;
|
344 |
+
}
|
345 |
+
.sl-kiwi-tab-socialIdentity .kiwi-registration-action, .sl-kiwi-tab-registration .kiwi-registration-action {
|
346 |
+
height: 30px;
|
347 |
+
}
|
348 |
+
|
349 |
+
[class*="sl-kiwi-tab-"] h2 {
|
350 |
+
font-size: 22px;
|
351 |
+
color: #585858;
|
352 |
+
font-weight: 300;
|
353 |
+
height: 50px;
|
354 |
+
}
|
355 |
+
|
356 |
+
.sl-kiwi-networks h2 > span {
|
357 |
+
width: 65%;
|
358 |
+
display: block;
|
359 |
+
float: left;
|
360 |
+
background: transparent;
|
361 |
+
}
|
362 |
+
|
363 |
+
.sl-kiwi-networks h2 span + span {
|
364 |
+
width: 17.5%;
|
365 |
+
display: block;
|
366 |
+
float: left;
|
367 |
+
background: transparent;
|
368 |
+
text-align: center;
|
369 |
+
font-size: 14px;
|
370 |
+
color: #959696;
|
371 |
+
}
|
372 |
+
|
373 |
+
.sl-kiwi-networks em {
|
374 |
+
font-style: normal;
|
375 |
+
position: absolute;
|
376 |
+
top: 3px;
|
377 |
+
left: 42px;
|
378 |
+
}
|
379 |
+
|
380 |
+
.sl-kiwi-networks ul {
|
381 |
+
border-top: 1px solid #F5F5F5;
|
382 |
+
padding: 0;
|
383 |
+
margin: 0 10px;
|
384 |
+
}
|
385 |
+
|
386 |
+
.sl-kiwi-networks li {
|
387 |
+
height: 39px;
|
388 |
+
border-bottom: 1px solid #F5F5F5;
|
389 |
+
list-style-type: none;
|
390 |
+
line-height: 35px;
|
391 |
+
padding-left: 20px;
|
392 |
+
position: relative;
|
393 |
+
margin-bottom: 0;
|
394 |
+
display: inline-block;
|
395 |
+
width: 98%;
|
396 |
+
}
|
397 |
+
|
398 |
+
.sl-kiwi-networks li:hover {
|
399 |
+
background: #FBFBFB;
|
400 |
+
}
|
401 |
+
|
402 |
+
.sl-kiwi-networks li > span {
|
403 |
+
width: 65%;
|
404 |
+
display: block;
|
405 |
+
float: left;
|
406 |
+
background: transparent;
|
407 |
+
color: #555555;
|
408 |
+
font-size: 13px;
|
409 |
+
}
|
410 |
+
|
411 |
+
.sl-kiwi-networks li span + span {
|
412 |
+
width: 17.5%;
|
413 |
+
background: transparent;
|
414 |
+
text-align: center;
|
415 |
+
}
|
416 |
+
|
417 |
+
.sl-kiwi-networks span > strong {
|
418 |
+
height: 24px;
|
419 |
+
width: 24px;
|
420 |
+
display: inline-block;
|
421 |
+
vertical-align: middle;
|
422 |
+
line-height: 24px;
|
423 |
+
text-align: center;
|
424 |
+
border-radius: 2px;
|
425 |
+
margin-right: 5px;
|
426 |
+
background: #D4D4D4;
|
427 |
+
}
|
428 |
+
|
429 |
+
.sl-kiwi-networks span > strong i {
|
430 |
+
font-size: 16px;
|
431 |
+
line-height: 24px;
|
432 |
+
}
|
433 |
+
|
434 |
+
.sl-kiwi-networks.kiwi-styles {
|
435 |
+
/*background:#FBFBFB;*/
|
436 |
+
}
|
437 |
+
|
438 |
+
.sl-kiwi-networks.kiwi-styles h2 span + span {
|
439 |
+
width: 16%;
|
440 |
+
}
|
441 |
+
|
442 |
+
.sl-kiwi-networks.kiwi-styles h2 span:nth-last-of-type(-n+3) + span:nth-last-of-type(-n+3),
|
443 |
+
.sl-kiwi-networks.kiwi-styles h2 span:nth-last-of-type(-n+2) + span:nth-last-of-type(-n+2) {
|
444 |
+
width: 8%;
|
445 |
+
}
|
446 |
+
|
447 |
+
.sl-kiwi-networks.kiwi-styles h2 strong.goleft {
|
448 |
+
position: relative;
|
449 |
+
right: 5px;
|
450 |
+
}
|
451 |
+
|
452 |
+
.sl-kiwi-networks.kiwi-styles h2 > span {
|
453 |
+
width: 20%;
|
454 |
+
text-align: left;
|
455 |
+
}
|
456 |
+
|
457 |
+
.sl-kiwi-networks.kiwi-styles li span + span {
|
458 |
+
width: 16%;
|
459 |
+
text-align: left;
|
460 |
+
}
|
461 |
+
|
462 |
+
.sl-kiwi-networks.kiwi-styles li span:nth-last-of-type(-n+3) + span:nth-last-of-type(-n+3),
|
463 |
+
.sl-kiwi-networks.kiwi-styles li span:nth-last-of-type(-n+2) + span:nth-last-of-type(-n+2) {
|
464 |
+
width: 8%;
|
465 |
+
}
|
466 |
+
|
467 |
+
.sl-kiwi-networks.kiwi-styles li > span {
|
468 |
+
width: 20%;
|
469 |
+
}
|
470 |
+
|
471 |
+
#sl-kiwi .kiwi-nw-twitter {
|
472 |
+
background: #4EAEF8;
|
473 |
+
color: #fff;
|
474 |
+
}
|
475 |
+
|
476 |
+
#sl-kiwi .kiwi-nw-whatsapp {
|
477 |
+
background: #0DC143;
|
478 |
+
color: #fff;
|
479 |
+
}
|
480 |
+
|
481 |
+
#sl-kiwi .kiwi-nw-telegram {
|
482 |
+
background: #179CDE;
|
483 |
+
color: #fff;
|
484 |
+
}
|
485 |
+
|
486 |
+
#sl-kiwi .kiwi-nw-skype {
|
487 |
+
background: #009EE5;
|
488 |
+
color: #fff;
|
489 |
+
}
|
490 |
+
|
491 |
+
#sl-kiwi .kiwi-nw-youtube-play, #sl-kiwi .kiwi-nw-youtube {
|
492 |
+
background: #E62117;
|
493 |
+
color: #fff;
|
494 |
+
}
|
495 |
+
|
496 |
+
#sl-kiwi .kiwi-nw-facebook {
|
497 |
+
background: #3B5998;
|
498 |
+
color: #fff;
|
499 |
+
}
|
500 |
+
|
501 |
+
#sl-kiwi .kiwi-nw-google-plus {
|
502 |
+
background: #DB4437;
|
503 |
+
color: #fff;
|
504 |
+
}
|
505 |
+
|
506 |
+
#sl-kiwi .kiwi-nw-pinterest {
|
507 |
+
background: #BD081C;
|
508 |
+
color: #fff;
|
509 |
+
}
|
510 |
+
|
511 |
+
#sl-kiwi .kiwi-nw-linkedin {
|
512 |
+
background: #1A85BC;
|
513 |
+
color: #fff;
|
514 |
+
}
|
515 |
+
|
516 |
+
#sl-kiwi .kiwi-nw-reddit {
|
517 |
+
background: #FF4500;
|
518 |
+
color: #fff;
|
519 |
+
}
|
520 |
+
|
521 |
+
#sl-kiwi .kiwi-nw-envelope, #sl-kiwi .kiwi-nw-email {
|
522 |
+
background: #4D9159;
|
523 |
+
color: #fff;
|
524 |
+
}
|
525 |
+
|
526 |
+
.sl-kiwi-opt-group {
|
527 |
+
min-height: 100px;
|
528 |
+
background: transparent;
|
529 |
+
padding: 30px 0;
|
530 |
+
border-bottom: 1px solid #F5F5F5;
|
531 |
+
}
|
532 |
+
.sl-kiwi-opt-group:last-of-type {
|
533 |
+
border-bottom: none;
|
534 |
+
}
|
535 |
+
.sl-kiwi-opt-group .bottom-color-option {
|
536 |
+
clear: both;
|
537 |
+
}
|
538 |
+
|
539 |
+
.sl-kiwi-inner-opt {
|
540 |
+
padding-left: 70px;
|
541 |
+
}
|
542 |
+
|
543 |
+
.sl-kiwi-opt-group .left {
|
544 |
+
float: left;
|
545 |
+
}
|
546 |
+
|
547 |
+
.sl-kiwi-opt-group .right {
|
548 |
+
float: right;
|
549 |
+
}
|
550 |
+
|
551 |
+
.sl-kiwi-opt-toggle {
|
552 |
+
background: transparent;
|
553 |
+
width: 70px;
|
554 |
+
float: left;
|
555 |
+
padding-top: 10px;
|
556 |
+
}
|
557 |
+
|
558 |
+
.sl-kiwi-opt-description {
|
559 |
+
float: left;
|
560 |
+
background: transparent;
|
561 |
+
min-height: 60px;
|
562 |
+
position: relative;
|
563 |
+
}
|
564 |
+
|
565 |
+
.sl-kiwi-opt-description h4 {
|
566 |
+
font-size: 18px;
|
567 |
+
margin: 0;
|
568 |
+
line-height: 18px;
|
569 |
+
}
|
570 |
+
|
571 |
+
.sl-kiwi-opt-description h5 {
|
572 |
+
font-size: 16px;
|
573 |
+
margin: 0;
|
574 |
+
line-height: 18px;
|
575 |
+
}
|
576 |
+
|
577 |
+
.sl-kiwi-opt-description p {
|
578 |
+
font-size: 14px;
|
579 |
+
margin: 0;
|
580 |
+
}
|
581 |
+
|
582 |
+
.epsilon-ui-locked {
|
583 |
+
display: inline-block;
|
584 |
+
border-radius: 10px;
|
585 |
+
width: 20px;
|
586 |
+
height: 20px;
|
587 |
+
cursor: pointer;
|
588 |
+
vertical-align: middle;
|
589 |
+
}
|
590 |
+
|
591 |
+
.epsilon-ui-locked i {
|
592 |
+
font-size: 12px;
|
593 |
+
color: #fff;
|
594 |
+
text-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
|
595 |
+
line-height: 16px;
|
596 |
+
background: #F05A25;
|
597 |
+
cursor: pointer;
|
598 |
+
}
|
599 |
+
|
600 |
+
.epsilon-ui-locked i.dashicons, .dashicons-before::before {
|
601 |
+
width: 17px;
|
602 |
+
height: 17px;
|
603 |
+
border-radius: 10px;
|
604 |
+
text-align: center;
|
605 |
+
vertical-align: top;
|
606 |
+
}
|
607 |
+
|
608 |
+
.sl-kiwi-opt-space-sm {
|
609 |
+
padding-top: 15px;
|
610 |
+
}
|
611 |
+
|
612 |
+
.clearfix:after {
|
613 |
+
clear: both;
|
614 |
+
content: ".";
|
615 |
+
display: block;
|
616 |
+
height: 0;
|
617 |
+
line-height: 0;
|
618 |
+
visibility: hidden;
|
619 |
+
}
|
620 |
+
|
621 |
+
.kiwi-modal {
|
622 |
+
position: fixed;
|
623 |
+
top: 0;
|
624 |
+
right: 0;
|
625 |
+
left: 0;
|
626 |
+
bottom: 0;
|
627 |
+
z-index: 1050;
|
628 |
+
display: none;
|
629 |
+
overflow: hidden;
|
630 |
+
-webkit-overflow-scrolling: touch;
|
631 |
+
outline: 0;
|
632 |
+
background: rgba(0, 0, 0, 0.7);
|
633 |
+
}
|
634 |
+
.kiwi-modal .close-modal {
|
635 |
+
width: 25px;
|
636 |
+
height: 25px;
|
637 |
+
color: #FF3424;
|
638 |
+
position: absolute;
|
639 |
+
text-align: center;
|
640 |
+
line-height: 25px;
|
641 |
+
font-size: 17px;
|
642 |
+
right: 7px;
|
643 |
+
top: 7px;
|
644 |
+
cursor: pointer;
|
645 |
+
}
|
646 |
+
.kiwi-modal .kiwi-modal-content {
|
647 |
+
position: relative;
|
648 |
+
width: 900px;
|
649 |
+
-webkit-border-radius: 10px;
|
650 |
+
-moz-border-radius: 10px;
|
651 |
+
border-radius: 10px;
|
652 |
+
background-image: -webkit-linear-gradient(bottom, #fff 25%, #f2f3f4 90%);
|
653 |
+
background-image: -moz-linear-gradient(bottom, #fff 25%, #f2f3f4 90%);
|
654 |
+
background-image: -o-linear-gradient(bottom, #fff 25%, #f2f3f4 90%);
|
655 |
+
background-image: -ms-linear-gradient(bottom, #fff 25%, #f2f3f4 90%);
|
656 |
+
background-image: linear-gradient(to top, #fff 25%, #f2f3f4 90%);
|
657 |
+
-webkit-box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
|
658 |
+
-moz-box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
|
659 |
+
box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
|
660 |
+
margin: 8% auto;
|
661 |
+
}
|
662 |
+
.kiwi-modal.fade {
|
663 |
+
opacity: 0;
|
664 |
+
-webkit-transition: opacity .15s linear;
|
665 |
+
-o-transition: opacity .15s linear;
|
666 |
+
transition: opacity .15s linear;
|
667 |
+
}
|
668 |
+
.kiwi-modal.fade .kiwi-modal-content {
|
669 |
+
-webkit-transition: -webkit-transform .3s ease-out;
|
670 |
+
-o-transition: -o-transform .3s ease-out;
|
671 |
+
transition: transform .3s ease-out;
|
672 |
+
-webkit-transform: translate(0, -25%);
|
673 |
+
-ms-transform: translate(0, -25%);
|
674 |
+
-o-transform: translate(0, -25%);
|
675 |
+
transform: translate(0, -25%);
|
676 |
+
}
|
677 |
+
.kiwi-modal.fade.in {
|
678 |
+
opacity: 1;
|
679 |
+
}
|
680 |
+
.kiwi-modal.fade.in .kiwi-modal-content {
|
681 |
+
-webkit-transform: translate(0, 0);
|
682 |
+
-ms-transform: translate(0, 0);
|
683 |
+
-o-transform: translate(0, 0);
|
684 |
+
transform: translate(0, 0);
|
685 |
+
}
|
686 |
+
.kiwi-modal #page-two {
|
687 |
+
display: none;
|
688 |
+
}
|
689 |
+
.kiwi-modal .button-modal {
|
690 |
+
width: 100%;
|
691 |
+
height: 45px;
|
692 |
+
-webkit-border-radius: 22px 23px 23px 22px/22px 22px 23px 23px;
|
693 |
+
-moz-border-radius: 22px 23px 23px 22px/22px 22px 23px 23px;
|
694 |
+
border-radius: 22px 23px 23px 22px/22px 22px 23px 23px;
|
695 |
+
background-color: #ff3d2e;
|
696 |
+
color: #fff;
|
697 |
+
display: inline-block;
|
698 |
+
line-height: 45px;
|
699 |
+
margin: 30px auto;
|
700 |
+
text-align: center;
|
701 |
+
}
|
702 |
+
.kiwi-modal .button-modal:hover, .kiwi-modal .button-modal:focus {
|
703 |
+
text-decoration: none;
|
704 |
+
color: #fff;
|
705 |
+
background-color: #ff3424;
|
706 |
+
}
|
707 |
+
.kiwi-modal .modal-header {
|
708 |
+
padding-top: 40px;
|
709 |
+
padding-bottom: 40px;
|
710 |
+
text-align: center;
|
711 |
+
background-image: url("../img/back-wavy.png");
|
712 |
+
background-size: cover;
|
713 |
+
background-position: center;
|
714 |
+
-webkit-border-top-left-radius: 10px;
|
715 |
+
-moz-border-top-left-radius: 10px;
|
716 |
+
border-top-left-radius: 10px;
|
717 |
+
-webkit-border-top-right-radius: 10px;
|
718 |
+
-moz-border-top-right-radius: 10px;
|
719 |
+
border-top-right-radius: 10px;
|
720 |
+
}
|
721 |
+
.kiwi-modal .modal-header .modal-header-content {
|
722 |
+
width: 475px;
|
723 |
+
margin: 0 auto;
|
724 |
+
}
|
725 |
+
.kiwi-modal .modal-title {
|
726 |
+
font-family: 'Open Sans';
|
727 |
+
font-size: 28px;
|
728 |
+
font-weight: 800;
|
729 |
+
color: #333;
|
730 |
+
}
|
731 |
+
.kiwi-modal .modal-subtitle {
|
732 |
+
font-family: "Open Sans";
|
733 |
+
font-size: 14px;
|
734 |
+
color: #8c8c8c;
|
735 |
+
}
|
736 |
+
.kiwi-modal .price-box {
|
737 |
+
margin-top: 40px;
|
738 |
+
}
|
739 |
+
.kiwi-modal .price-box .price {
|
740 |
+
font-family: "Open Sans";
|
741 |
+
font-weight: bold;
|
742 |
+
color: #333;
|
743 |
+
font-size: 60px;
|
744 |
+
display: block;
|
745 |
+
}
|
746 |
+
.kiwi-modal .price-box .price .currency {
|
747 |
+
font-size: 45px;
|
748 |
+
}
|
749 |
+
.kiwi-modal .price-box .price small {
|
750 |
+
font-size: 15px;
|
751 |
+
}
|
752 |
+
.kiwi-modal .price-box .button-modal {
|
753 |
+
width: 150px;
|
754 |
+
}
|
755 |
+
.kiwi-modal .modal-footer {
|
756 |
+
margin: 0 auto;
|
757 |
+
margin-top: 60px;
|
758 |
+
padding-bottom: 60px;
|
759 |
+
width: 475px;
|
760 |
+
}
|
761 |
+
.kiwi-modal .modal-footer a {
|
762 |
+
color: #639fb1;
|
763 |
+
font-family: 'Open Sans';
|
764 |
+
font-size: 14px;
|
765 |
+
display: inline-block;
|
766 |
+
margin-bottom: 15px;
|
767 |
+
}
|
768 |
+
.kiwi-modal .modal-footer .muted {
|
769 |
+
font-size: 12px;
|
770 |
+
font-family: 'Open Sans';
|
771 |
+
color: #8c8c8c;
|
772 |
+
}
|
773 |
+
.kiwi-modal .modal-content {
|
774 |
+
width: 310px;
|
775 |
+
margin: 0 auto;
|
776 |
+
}
|
777 |
+
.kiwi-modal .modal-content.form .radio-label {
|
778 |
+
margin-top: 40px;
|
779 |
+
display: block;
|
780 |
+
color: #808080;
|
781 |
+
font-family: 'Open Sans';
|
782 |
+
}
|
783 |
+
.kiwi-modal .modal-content.form > .ui-radio-inline {
|
784 |
+
margin-top: 15px !important;
|
785 |
+
}
|
786 |
+
.kiwi-modal .modal-content.form .clearfix {
|
787 |
+
margin-top: 30px;
|
788 |
+
}
|
789 |
+
.kiwi-modal .modal-content.form .clearfix .half {
|
790 |
+
width: 50%;
|
791 |
+
float: left;
|
792 |
+
padding-right: 15px;
|
793 |
+
box-sizing: border-box;
|
794 |
+
}
|
795 |
+
.kiwi-modal .modal-content.form .clearfix .half:last-of-type {
|
796 |
+
padding-left: 15px;
|
797 |
+
padding-right: 0;
|
798 |
+
}
|
799 |
+
.kiwi-modal .modal-content.form .clearfix input {
|
800 |
+
width: 100%;
|
801 |
+
height: 32px;
|
802 |
+
-webkit-border-radius: 3px;
|
803 |
+
-moz-border-radius: 3px;
|
804 |
+
border-radius: 3px;
|
805 |
+
border: none;
|
806 |
+
background-color: #fff;
|
807 |
+
-webkit-box-shadow: 1px 1px 2px rgba(35, 31, 32, 0.2);
|
808 |
+
-moz-box-shadow: 1px 1px 2px rgba(35, 31, 32, 0.2);
|
809 |
+
box-shadow: 1px 1px 2px rgba(35, 31, 32, 0.2);
|
810 |
+
padding-left: 5px;
|
811 |
+
margin-top: 5px;
|
812 |
+
}
|
813 |
+
.kiwi-modal .modal-content.form .clearfix label {
|
814 |
+
display: block;
|
815 |
+
color: #808080;
|
816 |
+
font-family: 'Open Sans';
|
817 |
+
}
|
818 |
+
|
819 |
+
/* ==========================================================================
|
820 |
+
=Epsilon Elements
|
821 |
+
========================================================================== */
|
822 |
+
/* Epsilon - Tabs */
|
823 |
+
.epsilon-ui-tabs {
|
824 |
+
margin-top: -36px;
|
825 |
+
overflow: hidden;
|
826 |
+
position: relative;
|
827 |
+
z-index: 10;
|
828 |
+
}
|
829 |
+
|
830 |
+
.epsilon-ui-tabs ul {
|
831 |
+
height: 36px;
|
832 |
+
margin-left: 30px;
|
833 |
+
}
|
834 |
+
|
835 |
+
.epsilon-ui-tabs li {
|
836 |
+
height: 36px;
|
837 |
+
margin-right: 2px;
|
838 |
+
float: left;
|
839 |
+
background: #E8E8E8;
|
840 |
+
list-style-type: none;
|
841 |
+
line-height: 36px;
|
842 |
+
text-align: center;
|
843 |
+
}
|
844 |
+
|
845 |
+
.epsilon-ui-tabs li.selected {
|
846 |
+
background: #fff;
|
847 |
+
-webkit-box-shadow: 0 -2px 3px rgba(0, 0, 0, 0.02);
|
848 |
+
-moz-box-shadow: 0 -2px 3px rgba(0, 0, 0, 0.02);
|
849 |
+
box-shadow: 0 -2px 3px rgba(0, 0, 0, 0.02);
|
850 |
+
}
|
851 |
+
|
852 |
+
.epsilon-ui-tabs .selected a:hover {
|
853 |
+
background: #fff;
|
854 |
+
}
|
855 |
+
|
856 |
+
.epsilon-ui-tabs a {
|
857 |
+
display: block;
|
858 |
+
line-height: 36px;
|
859 |
+
color: #666666;
|
860 |
+
padding: 0 10px;
|
861 |
+
min-width: 80px;
|
862 |
+
}
|
863 |
+
|
864 |
+
.epsilon-ui-tabs i {
|
865 |
+
vertical-align: middle;
|
866 |
+
font-size: 16px;
|
867 |
+
}
|
868 |
+
|
869 |
+
.epsilon-ui-tabs a:hover {
|
870 |
+
background: #D4D4D4;
|
871 |
+
text-decoration: none;
|
872 |
+
}
|
873 |
+
|
874 |
+
.epsilon-ui-tabs a:focus {
|
875 |
+
text-decoration: none;
|
876 |
+
outline: 1px dashed #ccc;
|
877 |
+
outline-offset: -4px;
|
878 |
+
}
|
879 |
+
|
880 |
+
/* Kiwi networks */
|
881 |
+
.sl-kiwi-networks li span {
|
882 |
+
line-height: 30px;
|
883 |
+
}
|
884 |
+
|
885 |
+
.sl-kiwi-networks li:hover .epsilon-ui-checkbox strong {
|
886 |
+
border: 1px solid #8AB7C5;
|
887 |
+
}
|
888 |
+
|
889 |
+
.sl-kiwi-networks li:hover .epsilon-ui-checkbox input:checked ~ strong {
|
890 |
+
border: 1px solid #448092;
|
891 |
+
}
|
892 |
+
|
893 |
+
.sl-kiwi-networks li:hover .epsilon-ui-checkbox input:focus ~ strong {
|
894 |
+
border: 1px solid #448092;
|
895 |
+
}
|
896 |
+
|
897 |
+
.ui-inline strong {
|
898 |
+
display: inline-block;
|
899 |
+
}
|
900 |
+
|
901 |
+
/* Epsilon UI - Checkbox */
|
902 |
+
#sl-kiwi label.epsilon-ui-checkbox {
|
903 |
+
background: transparent;
|
904 |
+
display: block;
|
905 |
+
position: relative;
|
906 |
+
cursor: pointer;
|
907 |
+
margin: 0 35px;
|
908 |
+
max-width: none;
|
909 |
+
}
|
910 |
+
|
911 |
+
.epsilon-ui-checkbox.ui-checkbox-inline strong {
|
912 |
+
display: inline-block;
|
913 |
+
}
|
914 |
+
|
915 |
+
#sl-kiwi .epsilon-ui-checkbox.ui-checkbox-inline {
|
916 |
+
display: inline-block;
|
917 |
+
margin-left: 0;
|
918 |
+
}
|
919 |
+
|
920 |
+
.epsilon-ui-checkbox input {
|
921 |
+
position: absolute;
|
922 |
+
z-index: -1;
|
923 |
+
opacity: 0;
|
924 |
+
left: 0;
|
925 |
+
top: 0;
|
926 |
+
}
|
927 |
+
|
928 |
+
.epsilon-ui-checkbox input:focus ~ strong {
|
929 |
+
border: 1px solid #448092;
|
930 |
+
outline: 1px dashed #ccc;
|
931 |
+
outline-offset: 2px;
|
932 |
+
}
|
933 |
+
|
934 |
+
.epsilon-ui-checkbox input:checked ~ strong {
|
935 |
+
background: #fff;
|
936 |
+
border: 1px solid #448092;
|
937 |
+
-webkit-box-shadow: inset 0px 0px 0px 4px rgba(99, 159, 177, 0.75);
|
938 |
+
-moz-box-shadow: inset 0px 0px 0px 4px rgba(99, 159, 177, 0.75);
|
939 |
+
box-shadow: inset 0px 0px 0px 4px rgba(99, 159, 177, 0.75);
|
940 |
+
}
|
941 |
+
|
942 |
+
.epsilon-ui-checkbox input:disabled ~ strong {
|
943 |
+
background: #1ABC9C;
|
944 |
+
opacity: 0.6;
|
945 |
+
pointer-events: none;
|
946 |
+
}
|
947 |
+
|
948 |
+
.epsilon-ui-checkbox strong {
|
949 |
+
background: #fff;
|
950 |
+
border: 1px solid #DDDDDD;
|
951 |
+
display: block;
|
952 |
+
margin: 11px auto auto auto;
|
953 |
+
height: 16px;
|
954 |
+
width: 16px;
|
955 |
+
transition: all .15s;
|
956 |
+
}
|
957 |
+
|
958 |
+
/* Epsilon UI - Radio input */
|
959 |
+
.epsilon-ui-radio strong {
|
960 |
+
border-radius: 50%;
|
961 |
+
}
|
962 |
+
|
963 |
+
#sl-kiwi label.epsilon-ui-radio {
|
964 |
+
display: block;
|
965 |
+
position: relative;
|
966 |
+
cursor: pointer;
|
967 |
+
background: transparent;
|
968 |
+
margin: 0 35px;
|
969 |
+
max-width: none;
|
970 |
+
font-weight: 400;
|
971 |
+
color: #808080;
|
972 |
+
}
|
973 |
+
|
974 |
+
#sl-kiwi .sl-kiwi-tab-styles label.epsilon-ui-radio {
|
975 |
+
margin: 0 60px 0 0;
|
976 |
+
}
|
977 |
+
|
978 |
+
.epsilon-ui-radio.ui-radio-inline strong {
|
979 |
+
display: inline-block;
|
980 |
+
margin-right: 5px;
|
981 |
+
position: relative;
|
982 |
+
top: 3px;
|
983 |
+
}
|
984 |
+
|
985 |
+
#sl-kiwi .epsilon-ui-radio.ui-radio-inline {
|
986 |
+
display: inline-block;
|
987 |
+
margin-left: 0;
|
988 |
+
}
|
989 |
+
|
990 |
+
.epsilon-ui-radio strong {
|
991 |
+
display: block;
|
992 |
+
margin: 11px auto auto auto;
|
993 |
+
height: 16px;
|
994 |
+
width: 16px;
|
995 |
+
background: #fff;
|
996 |
+
border: 1px solid #DDDDDD;
|
997 |
+
transition: all .15s;
|
998 |
+
}
|
999 |
+
|
1000 |
+
.epsilon-ui-radio input {
|
1001 |
+
position: absolute;
|
1002 |
+
z-index: -1;
|
1003 |
+
opacity: 0;
|
1004 |
+
left: 0;
|
1005 |
+
top: 0;
|
1006 |
+
}
|
1007 |
+
|
1008 |
+
.epsilon-ui-radio input:focus ~ strong {
|
1009 |
+
border: 1px solid #448092;
|
1010 |
+
outline: 1px dashed #ccc;
|
1011 |
+
outline-offset: 2px;
|
1012 |
+
}
|
1013 |
+
|
1014 |
+
.epsilon-ui-radio input:checked ~ strong {
|
1015 |
+
background: #fff;
|
1016 |
+
border: 1px solid #448092;
|
1017 |
+
-webkit-box-shadow: inset 0px 0px 0px 4px rgba(99, 159, 177, 0.75);
|
1018 |
+
-moz-box-shadow: inset 0px 0px 0px 4px rgba(99, 159, 177, 0.75);
|
1019 |
+
box-shadow: inset 0px 0px 0px 4px rgba(99, 159, 177, 0.75);
|
1020 |
+
}
|
1021 |
+
|
1022 |
+
.epsilon-ui-radio input:disabled ~ strong {
|
1023 |
+
background: #1ABC9C;
|
1024 |
+
opacity: 0.6;
|
1025 |
+
pointer-events: none;
|
1026 |
+
}
|
1027 |
+
|
1028 |
+
/*
|
1029 |
+
Epsilon UI - Checklist
|
1030 |
+
*/
|
1031 |
+
.epsilon-ui-checklist {
|
1032 |
+
position: relative;
|
1033 |
+
overflow: hidden;
|
1034 |
+
margin-top: 25px;
|
1035 |
+
padding-top: 10px;
|
1036 |
+
border-top: 1px solid #ECECEC;
|
1037 |
+
background: #FCFCFC;
|
1038 |
+
}
|
1039 |
+
|
1040 |
+
.epsilon-ui-checklist:before {
|
1041 |
+
position: absolute;
|
1042 |
+
top: -2px;
|
1043 |
+
left: 50px;
|
1044 |
+
right: 50px;
|
1045 |
+
height: 2px;
|
1046 |
+
content: " ";
|
1047 |
+
box-shadow: 0 -60px 30px 35px rgba(0, 0, 0, 0.7);
|
1048 |
+
z-index: 1;
|
1049 |
+
}
|
1050 |
+
|
1051 |
+
.epsilon-ui-checklist ul {
|
1052 |
+
margin: 0;
|
1053 |
+
list-style-type: none;
|
1054 |
+
padding: 0 5px 25px 25px;
|
1055 |
+
margin-top: 15px;
|
1056 |
+
position: relative;
|
1057 |
+
overflow: hidden;
|
1058 |
+
}
|
1059 |
+
|
1060 |
+
.epsilon-ui-checklist li {
|
1061 |
+
margin-bottom: 1px;
|
1062 |
+
height: 35px;
|
1063 |
+
}
|
1064 |
+
|
1065 |
+
.epsilon-ui-checklist li > span {
|
1066 |
+
float: left;
|
1067 |
+
width: 80%;
|
1068 |
+
padding: 10px 0 0 0;
|
1069 |
+
color: #808080;
|
1070 |
+
}
|
1071 |
+
|
1072 |
+
#sl-kiwi .epsilon-ui-checklist li .epsilon-ui-checkbox {
|
1073 |
+
float: right;
|
1074 |
+
width: 20%;
|
1075 |
+
margin: 0;
|
1076 |
+
}
|
1077 |
+
|
1078 |
+
/*
|
1079 |
+
Epsilon - UI Overlay
|
1080 |
+
*/
|
1081 |
+
.epsilon-ui-overlay {
|
1082 |
+
background: #fff;
|
1083 |
+
position: absolute;
|
1084 |
+
padding: 10px;
|
1085 |
+
opacity: 0;
|
1086 |
+
}
|
1087 |
+
|
1088 |
+
.epsilon-ui-overlay.active {
|
1089 |
+
top: -5px;
|
1090 |
+
left: -5px;
|
1091 |
+
bottom: -5px;
|
1092 |
+
right: -5px;
|
1093 |
+
opacity: .6;
|
1094 |
+
}
|
1095 |
+
|
1096 |
+
.epsilon-ui-overlay.active.networks {
|
1097 |
+
right: 185px;
|
1098 |
+
left: 200px;
|
1099 |
+
top: 35px;
|
1100 |
+
}
|
1101 |
+
|
1102 |
+
/*
|
1103 |
+
Epsilon - Color picker
|
1104 |
+
*/
|
1105 |
+
#sl-kiwi .epsilon-ui-color {
|
1106 |
+
line-height: 14px;
|
1107 |
+
background: transparent;
|
1108 |
+
display: inline-block;
|
1109 |
+
color: #D1D1D1;
|
1110 |
+
position: relative;
|
1111 |
+
}
|
1112 |
+
#sl-kiwi .epsilon-ui-color .wp-picker-container {
|
1113 |
+
position: relative;
|
1114 |
+
}
|
1115 |
+
#sl-kiwi .epsilon-ui-color .wp-picker-container .wp-picker-holder {
|
1116 |
+
position: absolute;
|
1117 |
+
z-index: 9999;
|
1118 |
+
}
|
1119 |
+
#sl-kiwi .epsilon-ui-color .wp-picker-container .wp-color-picker {
|
1120 |
+
width: 69px;
|
1121 |
+
height: 23px;
|
1122 |
+
z-index: 10;
|
1123 |
+
position: absolute;
|
1124 |
+
top: -1px;
|
1125 |
+
border: none;
|
1126 |
+
color: #D1D1D1;
|
1127 |
+
}
|
1128 |
+
#sl-kiwi .epsilon-ui-color .wp-picker-container .wp-picker-clear {
|
1129 |
+
position: relative;
|
1130 |
+
left: 66px;
|
1131 |
+
top: 6px;
|
1132 |
+
}
|
1133 |
+
#sl-kiwi .epsilon-ui-color .wp-picker-container .wp-color-result {
|
1134 |
+
background: transparent;
|
1135 |
+
border: none;
|
1136 |
+
-webkit-border-radius: 0;
|
1137 |
+
border-radius: 0;
|
1138 |
+
-webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
|
1139 |
+
-moz-box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
|
1140 |
+
box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
|
1141 |
+
padding-left: 30px;
|
1142 |
+
}
|
1143 |
+
#sl-kiwi .epsilon-ui-color .wp-picker-container .wp-color-result .wp-color-result-text {
|
1144 |
+
display: none;
|
1145 |
+
}
|
1146 |
+
#sl-kiwi .epsilon-ui-color .wp-picker-container .wp-color-result:after {
|
1147 |
+
background: transparent;
|
1148 |
+
-webkit-border-radius: 0;
|
1149 |
+
border-radius: 0;
|
1150 |
+
content: '';
|
1151 |
+
}
|
1152 |
+
|
1153 |
+
#sl-kiwi .bottom-color-option .floating-bar-background {
|
1154 |
+
width: 350px;
|
1155 |
+
position: relative;
|
1156 |
+
}
|
1157 |
+
#sl-kiwi .bottom-color-option .floating-bar-background em {
|
1158 |
+
position: absolute;
|
1159 |
+
left: 44px;
|
1160 |
+
top: 3px;
|
1161 |
+
font-style: normal;
|
1162 |
+
font-size: 13px;
|
1163 |
+
}
|
1164 |
+
#sl-kiwi .bottom-color-option .wp-picker-container {
|
1165 |
+
width: 350px;
|
1166 |
+
}
|
1167 |
+
#sl-kiwi .bottom-color-option .wp-picker-container .wp-color-result {
|
1168 |
+
border: none;
|
1169 |
+
}
|
1170 |
+
#sl-kiwi .bottom-color-option .wp-picker-container .wp-color-result:after {
|
1171 |
+
-webkit-border-radius: 0;
|
1172 |
+
border-radius: 0;
|
1173 |
+
content: '';
|
1174 |
+
}
|
1175 |
+
#sl-kiwi .bottom-color-option .wp-picker-container .wp-color-result:hover, #sl-kiwi .bottom-color-option .wp-picker-container .wp-color-result:focus {
|
1176 |
+
background: transparent;
|
1177 |
+
border-color: transparent;
|
1178 |
+
color: initial;
|
1179 |
+
}
|
1180 |
+
#sl-kiwi .bottom-color-option .wp-picker-container .wp-color-picker {
|
1181 |
+
z-index: 10;
|
1182 |
+
height: 27px;
|
1183 |
+
top: -3px;
|
1184 |
+
}
|
1185 |
+
#sl-kiwi .bottom-color-option .wp-picker-container .wp-picker-default {
|
1186 |
+
z-index: 999;
|
1187 |
+
left: 100px;
|
1188 |
+
position: absolute;
|
1189 |
+
}
|
1190 |
+
|
1191 |
+
#sl-kiwi .epsilon-ui-color strong {
|
1192 |
+
width: 30px;
|
1193 |
+
height: 20px;
|
1194 |
+
border-radius: 0;
|
1195 |
+
-webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
|
1196 |
+
-moz-box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
|
1197 |
+
box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
|
1198 |
+
}
|
1199 |
+
|
1200 |
+
/*
|
1201 |
+
Epsilon UI- Radio Image
|
1202 |
+
*/
|
1203 |
+
.epsilon-ui-option {
|
1204 |
+
position: relative;
|
1205 |
+
}
|
1206 |
+
|
1207 |
+
.epsilon-ui-option input {
|
1208 |
+
position: absolute;
|
1209 |
+
z-index: -1;
|
1210 |
+
opacity: 0;
|
1211 |
+
left: 0;
|
1212 |
+
top: 0;
|
1213 |
+
}
|
1214 |
+
|
1215 |
+
.epsilon-ui-option label {
|
1216 |
+
width: 100%;
|
1217 |
+
cursor: pointer;
|
1218 |
+
margin: 0;
|
1219 |
+
}
|
1220 |
+
|
1221 |
+
.epsilon-ui-option ul {
|
1222 |
+
list-style-type: none;
|
1223 |
+
height: 90px;
|
1224 |
+
padding: 0;
|
1225 |
+
margin: 0;
|
1226 |
+
}
|
1227 |
+
|
1228 |
+
.epsilon-ui-option li {
|
1229 |
+
width: 80px;
|
1230 |
+
height: 90px;
|
1231 |
+
float: left;
|
1232 |
+
background: #F7FAFB;
|
1233 |
+
text-align: center;
|
1234 |
+
margin-right: 1px;
|
1235 |
+
}
|
1236 |
+
|
1237 |
+
.epsilon-ui-option input + span {
|
1238 |
+
background: #F7FAFB;
|
1239 |
+
display: block;
|
1240 |
+
padding: 14px 15px 0 15px;
|
1241 |
+
height: 90px;
|
1242 |
+
}
|
1243 |
+
|
1244 |
+
.epsilon-ui-option span span {
|
1245 |
+
text-transform: uppercase;
|
1246 |
+
font-size: 10px;
|
1247 |
+
display: block;
|
1248 |
+
background: transparent;
|
1249 |
+
height: 24px;
|
1250 |
+
color: #969A9C;
|
1251 |
+
border-top: 1px solid #fff;
|
1252 |
+
line-height: 24px;
|
1253 |
+
font-weight: normal;
|
1254 |
+
margin: 15px -15px 0 -15px;
|
1255 |
+
}
|
1256 |
+
|
1257 |
+
.epsilon-ui-option strong {
|
1258 |
+
position: relative;
|
1259 |
+
transition: all .15s;
|
1260 |
+
display: block;
|
1261 |
+
border: 2px solid #CBCBCB;
|
1262 |
+
border-radius: 2px;
|
1263 |
+
width: 50px;
|
1264 |
+
height: 39px;
|
1265 |
+
background-color: #f1f1f1;
|
1266 |
+
-webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
|
1267 |
+
-moz-box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
|
1268 |
+
box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
|
1269 |
+
background-image: -webkit-linear-gradient(top, #fff, #f6f6f6);
|
1270 |
+
background-image: -moz-linear-gradient(top, #fff, #f6f6f6);
|
1271 |
+
background-image: -o-linear-gradient(top, #fff, #f6f6f6);
|
1272 |
+
background-image: -ms-linear-gradient(top, #fff, #f6f6f6);
|
1273 |
+
background-image: linear-gradient(to bottom, #fff, #f6f6f6);
|
1274 |
+
}
|
1275 |
+
|
1276 |
+
/*
|
1277 |
+
.epsilon-ui-option input:checked + span > strong { border:2px solid #639FB1; }
|
1278 |
+
*/
|
1279 |
+
.epsilon-ui-option input:focus + span {
|
1280 |
+
outline: 1px dashed #ccc;
|
1281 |
+
outline-offset: -4px;
|
1282 |
+
}
|
1283 |
+
|
1284 |
+
.epsilon-ui-option input:checked + span {
|
1285 |
+
background: #E8F1F3;
|
1286 |
+
}
|
1287 |
+
|
1288 |
+
.epsilon-ui-option input:checked:focus + span {
|
1289 |
+
background: #E8F1F3;
|
1290 |
+
}
|
1291 |
+
|
1292 |
+
.epsilon-ui-option input + span:hover {
|
1293 |
+
background: #dbe9ec;
|
1294 |
+
}
|
1295 |
+
|
1296 |
+
.epsilon-ui-option input:checked:focus + span:hover {
|
1297 |
+
background: #dbe9ec;
|
1298 |
+
}
|
1299 |
+
|
1300 |
+
.epsilon-ui-option input:checked + span > strong:before {
|
1301 |
+
opacity: 1;
|
1302 |
+
}
|
1303 |
+
|
1304 |
+
.epsilon-ui-option input:disabled + span {
|
1305 |
+
background: #FCFCFC;
|
1306 |
+
opacity: .5;
|
1307 |
+
}
|
1308 |
+
|
1309 |
+
.epsilon-ui-option input:disabled:checked + span {
|
1310 |
+
background: #F5F5F5;
|
1311 |
+
border-color: #C4C4C4;
|
1312 |
+
opacity: 1;
|
1313 |
+
}
|
1314 |
+
|
1315 |
+
.epsilon-ui-option input:disabled + span .kiwi-ic-centered em,
|
1316 |
+
.epsilon-ui-option input:disabled + span .kiwi-ic-centered em + em:after,
|
1317 |
+
.epsilon-ui-option input:disabled + span .kiwi-ic-centered em + em:before,
|
1318 |
+
.epsilon-ui-option input:disabled + span .kiwi-ic-centered em:after,
|
1319 |
+
.epsilon-ui-option input:disabled + span .kiwi-ic-centered em:before {
|
1320 |
+
background: #CECECE;
|
1321 |
+
opacity: 1;
|
1322 |
+
}
|
1323 |
+
|
1324 |
+
.epsilon-ui-option input:disabled + span .kiwi-ic-posbottom em,
|
1325 |
+
.epsilon-ui-option input:disabled + span .kiwi-ic-posbottom em + em:after,
|
1326 |
+
.epsilon-ui-option input:disabled + span .kiwi-ic-posbottom em + em:before,
|
1327 |
+
.epsilon-ui-option input:disabled + span .kiwi-ic-posbottom em:after,
|
1328 |
+
.epsilon-ui-option input:disabled + span .kiwi-ic-posbottom em:before {
|
1329 |
+
background: #CECECE;
|
1330 |
+
opacity: 1;
|
1331 |
+
}
|
1332 |
+
|
1333 |
+
.epsilon-ui-option input:disabled + span .kiwi-ic-postop em,
|
1334 |
+
.epsilon-ui-option input:disabled + span .kiwi-ic-postop em + em:after,
|
1335 |
+
.epsilon-ui-option input:disabled + span .kiwi-ic-postop em + em:before,
|
1336 |
+
.epsilon-ui-option input:disabled + span .kiwi-ic-postop em:after,
|
1337 |
+
.epsilon-ui-option input:disabled + span .kiwi-ic-postop em:before {
|
1338 |
+
background: #CECECE;
|
1339 |
+
opacity: 1;
|
1340 |
+
}
|
1341 |
+
|
1342 |
+
.epsilon-ui-option input:disabled + span .kiwi-ic-posboth em,
|
1343 |
+
.epsilon-ui-option input:disabled + span .kiwi-ic-posboth em + em:after,
|
1344 |
+
.epsilon-ui-option input:disabled + span .kiwi-ic-posboth em + em:before,
|
1345 |
+
.epsilon-ui-option input:disabled + span .kiwi-ic-posboth em:after,
|
1346 |
+
.epsilon-ui-option input:disabled + span .kiwi-ic-posboth em:before {
|
1347 |
+
background: #CECECE;
|
1348 |
+
opacity: 1;
|
1349 |
+
}
|
1350 |
+
|
1351 |
+
.epsilon-ui-option input:disabled + span > i > strong:before {
|
1352 |
+
background: #CECECE;
|
1353 |
+
}
|
1354 |
+
|
1355 |
+
.epsilon-ui-option .kiwi-ic-left strong:before {
|
1356 |
+
background: #E14D43;
|
1357 |
+
opacity: .7;
|
1358 |
+
content: ' ';
|
1359 |
+
width: 6px;
|
1360 |
+
height: 17px;
|
1361 |
+
left: 0;
|
1362 |
+
top: 9px;
|
1363 |
+
display: block;
|
1364 |
+
position: absolute;
|
1365 |
+
}
|
1366 |
+
|
1367 |
+
.epsilon-ui-option .kiwi-ic-right strong:before {
|
1368 |
+
background: #E14D43;
|
1369 |
+
opacity: .7;
|
1370 |
+
content: ' ';
|
1371 |
+
width: 6px;
|
1372 |
+
height: 17px;
|
1373 |
+
right: 0;
|
1374 |
+
top: 9px;
|
1375 |
+
display: block;
|
1376 |
+
position: absolute;
|
1377 |
+
}
|
1378 |
+
|
1379 |
+
.epsilon-ui-option .kiwi-ic-bottom strong:before {
|
1380 |
+
background: #E14D43;
|
1381 |
+
opacity: .7;
|
1382 |
+
content: ' ';
|
1383 |
+
width: 16px;
|
1384 |
+
height: 6px;
|
1385 |
+
left: 15px;
|
1386 |
+
bottom: 0px;
|
1387 |
+
display: block;
|
1388 |
+
position: absolute;
|
1389 |
+
}
|
1390 |
+
|
1391 |
+
.epsilon-ui-option .kiwi-ic-rect strong:before {
|
1392 |
+
background: #E14D43;
|
1393 |
+
opacity: .7;
|
1394 |
+
content: ' ';
|
1395 |
+
width: 30px;
|
1396 |
+
height: 15px;
|
1397 |
+
left: 8px;
|
1398 |
+
top: 10px;
|
1399 |
+
display: block;
|
1400 |
+
position: absolute;
|
1401 |
+
}
|
1402 |
+
|
1403 |
+
.epsilon-ui-option .kiwi-ic-shift strong:before {
|
1404 |
+
background: #E14D43;
|
1405 |
+
opacity: .7;
|
1406 |
+
content: ' ';
|
1407 |
+
width: 30px;
|
1408 |
+
height: 15px;
|
1409 |
+
left: 8px;
|
1410 |
+
top: 10px;
|
1411 |
+
display: block;
|
1412 |
+
position: absolute;
|
1413 |
+
-ms-transform: skewX(-20deg);
|
1414 |
+
-webkit-transform: skewX(-20deg);
|
1415 |
+
transform: skewX(-20deg);
|
1416 |
+
}
|
1417 |
+
|
1418 |
+
.epsilon-ui-option .kiwi-ic-pill strong:before {
|
1419 |
+
background: #E14D43;
|
1420 |
+
opacity: .7;
|
1421 |
+
content: ' ';
|
1422 |
+
width: 30px;
|
1423 |
+
height: 15px;
|
1424 |
+
left: 8px;
|
1425 |
+
top: 10px;
|
1426 |
+
display: block;
|
1427 |
+
position: absolute;
|
1428 |
+
border-radius: 10px;
|
1429 |
+
}
|
1430 |
+
|
1431 |
+
.epsilon-ui-option .kiwi-ic-leaf strong:before {
|
1432 |
+
background: #E14D43;
|
1433 |
+
opacity: .7;
|
1434 |
+
content: ' ';
|
1435 |
+
width: 30px;
|
1436 |
+
height: 15px;
|
1437 |
+
left: 8px;
|
1438 |
+
top: 10px;
|
1439 |
+
display: block;
|
1440 |
+
position: absolute;
|
1441 |
+
border-radius: 6px 0 6px 0;
|
1442 |
+
}
|
1443 |
+
|
1444 |
+
.epsilon-ui-option .kiwi-ic-centered strong:before {
|
1445 |
+
background: #CACACA;
|
1446 |
+
opacity: .7;
|
1447 |
+
content: ' ';
|
1448 |
+
width: 14px;
|
1449 |
+
height: 2px;
|
1450 |
+
left: 6px;
|
1451 |
+
top: 7px;
|
1452 |
+
display: block;
|
1453 |
+
position: absolute;
|
1454 |
+
}
|
1455 |
+
|
1456 |
+
.epsilon-ui-option .kiwi-ic-centered strong > em {
|
1457 |
+
background: #CECECE;
|
1458 |
+
opacity: .7;
|
1459 |
+
width: 38px;
|
1460 |
+
height: 11px;
|
1461 |
+
left: 6px;
|
1462 |
+
top: 13px;
|
1463 |
+
display: block;
|
1464 |
+
position: absolute;
|
1465 |
+
}
|
1466 |
+
|
1467 |
+
.epsilon-ui-option .kiwi-ic-centered strong > em:before {
|
1468 |
+
background: #1F4091;
|
1469 |
+
opacity: 1;
|
1470 |
+
content: ' ';
|
1471 |
+
width: 10px;
|
1472 |
+
height: 5px;
|
1473 |
+
left: 0;
|
1474 |
+
top: 14px;
|
1475 |
+
display: block;
|
1476 |
+
position: absolute;
|
1477 |
+
}
|
1478 |
+
|
1479 |
+
.epsilon-ui-option .kiwi-ic-centered strong > em:after {
|
1480 |
+
background: #00BFF3;
|
1481 |
+
opacity: 1;
|
1482 |
+
content: ' ';
|
1483 |
+
width: 10px;
|
1484 |
+
height: 5px;
|
1485 |
+
left: 14px;
|
1486 |
+
top: 14px;
|
1487 |
+
display: block;
|
1488 |
+
position: absolute;
|
1489 |
+
}
|
1490 |
+
|
1491 |
+
.epsilon-ui-option .kiwi-ic-centered strong > em + em {
|
1492 |
+
background: transparent;
|
1493 |
+
opacity: 1;
|
1494 |
+
content: ' ';
|
1495 |
+
width: 5px;
|
1496 |
+
height: 15px;
|
1497 |
+
left: 35px;
|
1498 |
+
top: 13px;
|
1499 |
+
display: block;
|
1500 |
+
position: absolute;
|
1501 |
+
}
|
1502 |
+
|
1503 |
+
.epsilon-ui-option .kiwi-ic-centered strong > em + em:before {
|
1504 |
+
background: #E03D1C;
|
1505 |
+
opacity: 1;
|
1506 |
+
content: ' ';
|
1507 |
+
width: 10px;
|
1508 |
+
height: 5px;
|
1509 |
+
left: -1px;
|
1510 |
+
top: 14px;
|
1511 |
+
display: block;
|
1512 |
+
position: absolute;
|
1513 |
+
}
|
1514 |
+
|
1515 |
+
.epsilon-ui-option .kiwi-ic-centered strong > em + em:after {
|
1516 |
+
content: none;
|
1517 |
+
}
|
1518 |
+
|
1519 |
+
.epsilon-ui-option .kiwi-ic-filled strong:before {
|
1520 |
+
background: #CACACA;
|
1521 |
+
opacity: .7;
|
1522 |
+
content: ' ';
|
1523 |
+
width: 14px;
|
1524 |
+
height: 2px;
|
1525 |
+
left: 6px;
|
1526 |
+
top: 7px;
|
1527 |
+
display: block;
|
1528 |
+
position: absolute;
|
1529 |
+
}
|
1530 |
+
|
1531 |
+
.epsilon-ui-option .kiwi-ic-filled strong > em {
|
1532 |
+
background: #CECECE;
|
1533 |
+
opacity: .7;
|
1534 |
+
width: 38px;
|
1535 |
+
height: 11px;
|
1536 |
+
left: 6px;
|
1537 |
+
top: 13px;
|
1538 |
+
display: block;
|
1539 |
+
position: absolute;
|
1540 |
+
}
|
1541 |
+
|
1542 |
+
.epsilon-ui-option .kiwi-ic-filled strong > em:before {
|
1543 |
+
background: #1F4091;
|
1544 |
+
opacity: 1;
|
1545 |
+
content: ' ';
|
1546 |
+
width: 13px;
|
1547 |
+
height: 5px;
|
1548 |
+
left: 0;
|
1549 |
+
top: 14px;
|
1550 |
+
display: block;
|
1551 |
+
position: absolute;
|
1552 |
+
}
|
1553 |
+
|
1554 |
+
.epsilon-ui-option .kiwi-ic-filled strong > em:after {
|
1555 |
+
background: #00BFF3;
|
1556 |
+
opacity: 1;
|
1557 |
+
content: ' ';
|
1558 |
+
width: 13px;
|
1559 |
+
height: 5px;
|
1560 |
+
left: 13px;
|
1561 |
+
top: 14px;
|
1562 |
+
display: block;
|
1563 |
+
position: absolute;
|
1564 |
+
}
|
1565 |
+
|
1566 |
+
.epsilon-ui-option .kiwi-ic-filled strong > em + em {
|
1567 |
+
background: transparent;
|
1568 |
+
opacity: 1;
|
1569 |
+
content: ' ';
|
1570 |
+
width: 5px;
|
1571 |
+
height: 15px;
|
1572 |
+
left: 35px;
|
1573 |
+
top: 13px;
|
1574 |
+
display: block;
|
1575 |
+
position: absolute;
|
1576 |
+
}
|
1577 |
+
|
1578 |
+
.epsilon-ui-option .kiwi-ic-filled strong > em + em:before {
|
1579 |
+
background: #E03D1C;
|
1580 |
+
opacity: 1;
|
1581 |
+
content: ' ';
|
1582 |
+
width: 12px;
|
1583 |
+
height: 5px;
|
1584 |
+
left: -3px;
|
1585 |
+
top: 14px;
|
1586 |
+
display: block;
|
1587 |
+
position: absolute;
|
1588 |
+
}
|
1589 |
+
|
1590 |
+
.epsilon-ui-option .kiwi-ic-filled strong > em + em:after {
|
1591 |
+
content: none;
|
1592 |
+
}
|
1593 |
+
|
1594 |
+
.epsilon-ui-option .kiwi-ic-posbottom strong:before {
|
1595 |
+
background: #CACACA;
|
1596 |
+
opacity: .7;
|
1597 |
+
content: ' ';
|
1598 |
+
width: 14px;
|
1599 |
+
height: 2px;
|
1600 |
+
left: 6px;
|
1601 |
+
top: 7px;
|
1602 |
+
display: block;
|
1603 |
+
position: absolute;
|
1604 |
+
}
|
1605 |
+
|
1606 |
+
.epsilon-ui-option .kiwi-ic-posbottom strong > em {
|
1607 |
+
background: #CECECE;
|
1608 |
+
opacity: .7;
|
1609 |
+
width: 27px;
|
1610 |
+
height: 11px;
|
1611 |
+
left: 6px;
|
1612 |
+
top: 13px;
|
1613 |
+
display: block;
|
1614 |
+
position: absolute;
|
1615 |
+
}
|
1616 |
+
|
1617 |
+
.epsilon-ui-option .kiwi-ic-posbottom strong > em:before {
|
1618 |
+
background: #1F4091;
|
1619 |
+
opacity: 1;
|
1620 |
+
content: ' ';
|
1621 |
+
width: 6px;
|
1622 |
+
height: 2px;
|
1623 |
+
left: 0;
|
1624 |
+
top: 13px;
|
1625 |
+
display: block;
|
1626 |
+
position: absolute;
|
1627 |
+
}
|
1628 |
+
|
1629 |
+
.epsilon-ui-option .kiwi-ic-posbottom strong > em:after {
|
1630 |
+
background: #00BFF3;
|
1631 |
+
opacity: 1;
|
1632 |
+
content: ' ';
|
1633 |
+
width: 6px;
|
1634 |
+
height: 2px;
|
1635 |
+
left: 7px;
|
1636 |
+
top: 13px;
|
1637 |
+
display: block;
|
1638 |
+
position: absolute;
|
1639 |
+
}
|
1640 |
+
|
1641 |
+
.epsilon-ui-option .kiwi-ic-posbottom strong > em + em {
|
1642 |
+
background: #CECECE;
|
1643 |
+
opacity: 1;
|
1644 |
+
content: ' ';
|
1645 |
+
width: 5px;
|
1646 |
+
height: 15px;
|
1647 |
+
left: 35px;
|
1648 |
+
top: 13px;
|
1649 |
+
display: block;
|
1650 |
+
position: absolute;
|
1651 |
+
}
|
1652 |
+
|
1653 |
+
.epsilon-ui-option .kiwi-ic-posbottom strong > em + em:before {
|
1654 |
+
background: #E03D1C;
|
1655 |
+
opacity: 1;
|
1656 |
+
content: ' ';
|
1657 |
+
width: 6px;
|
1658 |
+
height: 2px;
|
1659 |
+
left: -15px;
|
1660 |
+
top: 13px;
|
1661 |
+
display: block;
|
1662 |
+
position: absolute;
|
1663 |
+
}
|
1664 |
+
|
1665 |
+
.epsilon-ui-option .kiwi-ic-posbottom strong > em + em:after {
|
1666 |
+
background: #81B636;
|
1667 |
+
opacity: 1;
|
1668 |
+
content: ' ';
|
1669 |
+
width: 6px;
|
1670 |
+
height: 2px;
|
1671 |
+
left: -8px;
|
1672 |
+
top: 13px;
|
1673 |
+
display: block;
|
1674 |
+
position: absolute;
|
1675 |
+
}
|
1676 |
+
|
1677 |
+
.epsilon-ui-option .kiwi-ic-posboth strong:before {
|
1678 |
+
background: #CACACA;
|
1679 |
+
opacity: .7;
|
1680 |
+
content: ' ';
|
1681 |
+
width: 14px;
|
1682 |
+
height: 2px;
|
1683 |
+
left: 6px;
|
1684 |
+
top: 7px;
|
1685 |
+
display: block;
|
1686 |
+
position: absolute;
|
1687 |
+
}
|
1688 |
+
|
1689 |
+
.epsilon-ui-option .kiwi-ic-posboth strong > em {
|
1690 |
+
background: #CECECE;
|
1691 |
+
opacity: .7;
|
1692 |
+
width: 27px;
|
1693 |
+
height: 7px;
|
1694 |
+
left: 6px;
|
1695 |
+
top: 17px;
|
1696 |
+
display: block;
|
1697 |
+
position: absolute;
|
1698 |
+
}
|
1699 |
+
|
1700 |
+
.epsilon-ui-option .kiwi-ic-posboth strong > em.top:before {
|
1701 |
+
background: #1F4091;
|
1702 |
+
opacity: 1;
|
1703 |
+
content: ' ';
|
1704 |
+
width: 6px;
|
1705 |
+
height: 2px;
|
1706 |
+
left: 0;
|
1707 |
+
top: -4px;
|
1708 |
+
display: block;
|
1709 |
+
position: absolute;
|
1710 |
+
}
|
1711 |
+
|
1712 |
+
.epsilon-ui-option .kiwi-ic-posboth strong > em.top:after {
|
1713 |
+
background: #00BFF3;
|
1714 |
+
opacity: 1;
|
1715 |
+
content: ' ';
|
1716 |
+
width: 6px;
|
1717 |
+
height: 2px;
|
1718 |
+
left: 7px;
|
1719 |
+
top: -4px;
|
1720 |
+
display: block;
|
1721 |
+
position: absolute;
|
1722 |
+
}
|
1723 |
+
|
1724 |
+
.epsilon-ui-option .kiwi-ic-posboth strong > em.top + em.top {
|
1725 |
+
background: #CECECE;
|
1726 |
+
opacity: 1;
|
1727 |
+
content: ' ';
|
1728 |
+
width: 5px;
|
1729 |
+
height: 15px;
|
1730 |
+
left: 35px;
|
1731 |
+
top: 13px;
|
1732 |
+
display: block;
|
1733 |
+
position: absolute;
|
1734 |
+
}
|
1735 |
+
|
1736 |
+
.epsilon-ui-option .kiwi-ic-posboth strong > em.top + em.top:before {
|
1737 |
+
background: #E03D1C;
|
1738 |
+
opacity: 1;
|
1739 |
+
content: ' ';
|
1740 |
+
width: 6px;
|
1741 |
+
height: 2px;
|
1742 |
+
left: -15px;
|
1743 |
+
top: 0;
|
1744 |
+
display: block;
|
1745 |
+
position: absolute;
|
1746 |
+
}
|
1747 |
+
|
1748 |
+
.epsilon-ui-option .kiwi-ic-posboth strong > em.top + em.top:after {
|
1749 |
+
background: #81B636;
|
1750 |
+
opacity: 1;
|
1751 |
+
content: ' ';
|
1752 |
+
width: 6px;
|
1753 |
+
height: 2px;
|
1754 |
+
left: -8px;
|
1755 |
+
top: 0;
|
1756 |
+
display: block;
|
1757 |
+
position: absolute;
|
1758 |
+
}
|
1759 |
+
|
1760 |
+
.epsilon-ui-option .kiwi-ic-posboth strong > em.bottom:before {
|
1761 |
+
background: #1F4091;
|
1762 |
+
opacity: 1;
|
1763 |
+
content: ' ';
|
1764 |
+
width: 6px;
|
1765 |
+
height: 2px;
|
1766 |
+
left: 0;
|
1767 |
+
top: 9px;
|
1768 |
+
display: block;
|
1769 |
+
position: absolute;
|
1770 |
+
}
|
1771 |
+
|
1772 |
+
.epsilon-ui-option .kiwi-ic-posboth strong > em.bottom:after {
|
1773 |
+
background: #00BFF3;
|
1774 |
+
opacity: 1;
|
1775 |
+
content: ' ';
|
1776 |
+
width: 6px;
|
1777 |
+
height: 2px;
|
1778 |
+
left: 7px;
|
1779 |
+
top: 9px;
|
1780 |
+
display: block;
|
1781 |
+
position: absolute;
|
1782 |
+
}
|
1783 |
+
|
1784 |
+
.epsilon-ui-option .kiwi-ic-posboth strong > em.bottom + em.bottom {
|
1785 |
+
background: #CECECE;
|
1786 |
+
opacity: 1;
|
1787 |
+
content: ' ';
|
1788 |
+
width: 5px;
|
1789 |
+
height: 15px;
|
1790 |
+
left: 35px;
|
1791 |
+
top: 13px;
|
1792 |
+
display: block;
|
1793 |
+
position: absolute;
|
1794 |
+
}
|
1795 |
+
|
1796 |
+
.epsilon-ui-option .kiwi-ic-posboth strong > em.bottom + em.bottom:before {
|
1797 |
+
background: #E03D1C;
|
1798 |
+
opacity: 1;
|
1799 |
+
content: ' ';
|
1800 |
+
width: 6px;
|
1801 |
+
height: 2px;
|
1802 |
+
left: -15px;
|
1803 |
+
top: 13px;
|
1804 |
+
display: block;
|
1805 |
+
position: absolute;
|
1806 |
+
}
|
1807 |
+
|
1808 |
+
.epsilon-ui-option .kiwi-ic-posboth strong > em.bottom + em.bottom:after {
|
1809 |
+
background: #81B636;
|
1810 |
+
opacity: 1;
|
1811 |
+
content: ' ';
|
1812 |
+
width: 6px;
|
1813 |
+
height: 2px;
|
1814 |
+
left: -8px;
|
1815 |
+
top: 13px;
|
1816 |
+
display: block;
|
1817 |
+
position: absolute;
|
1818 |
+
}
|
1819 |
+
|
1820 |
+
.epsilon-ui-option .kiwi-ic-postop strong:before {
|
1821 |
+
background: #CACACA;
|
1822 |
+
opacity: .7;
|
1823 |
+
content: ' ';
|
1824 |
+
width: 14px;
|
1825 |
+
height: 2px;
|
1826 |
+
left: 6px;
|
1827 |
+
top: 7px;
|
1828 |
+
display: block;
|
1829 |
+
position: absolute;
|
1830 |
+
}
|
1831 |
+
|
1832 |
+
.epsilon-ui-option .kiwi-ic-postop strong > em {
|
1833 |
+
background: #CECECE;
|
1834 |
+
opacity: .7;
|
1835 |
+
width: 27px;
|
1836 |
+
height: 11px;
|
1837 |
+
left: 6px;
|
1838 |
+
top: 17px;
|
1839 |
+
display: block;
|
1840 |
+
position: absolute;
|
1841 |
+
}
|
1842 |
+
|
1843 |
+
.epsilon-ui-option .kiwi-ic-postop strong > em:before {
|
1844 |
+
background: #1F4091;
|
1845 |
+
opacity: 1;
|
1846 |
+
content: ' ';
|
1847 |
+
width: 6px;
|
1848 |
+
height: 2px;
|
1849 |
+
left: 0;
|
1850 |
+
top: -4px;
|
1851 |
+
display: block;
|
1852 |
+
position: absolute;
|
1853 |
+
}
|
1854 |
+
|
1855 |
+
.epsilon-ui-option .kiwi-ic-postop strong > em:after {
|
1856 |
+
background: #00BFF3;
|
1857 |
+
opacity: 1;
|
1858 |
+
content: ' ';
|
1859 |
+
width: 6px;
|
1860 |
+
height: 2px;
|
1861 |
+
left: 7px;
|
1862 |
+
top: -4px;
|
1863 |
+
display: block;
|
1864 |
+
position: absolute;
|
1865 |
+
}
|
1866 |
+
|
1867 |
+
.epsilon-ui-option .kiwi-ic-postop strong > em + em {
|
1868 |
+
background: #CECECE;
|
1869 |
+
opacity: 1;
|
1870 |
+
content: ' ';
|
1871 |
+
width: 5px;
|
1872 |
+
height: 15px;
|
1873 |
+
left: 35px;
|
1874 |
+
top: 13px;
|
1875 |
+
display: block;
|
1876 |
+
position: absolute;
|
1877 |
+
}
|
1878 |
+
|
1879 |
+
.epsilon-ui-option .kiwi-ic-postop strong > em + em:before {
|
1880 |
+
background: #E03D1C;
|
1881 |
+
opacity: 1;
|
1882 |
+
content: ' ';
|
1883 |
+
width: 6px;
|
1884 |
+
height: 2px;
|
1885 |
+
left: -15px;
|
1886 |
+
top: 0;
|
1887 |
+
display: block;
|
1888 |
+
position: absolute;
|
1889 |
+
}
|
1890 |
+
|
1891 |
+
.epsilon-ui-option .kiwi-ic-postop strong > em + em:after {
|
1892 |
+
background: #81B636;
|
1893 |
+
opacity: 1;
|
1894 |
+
content: ' ';
|
1895 |
+
width: 6px;
|
1896 |
+
height: 2px;
|
1897 |
+
left: -8px;
|
1898 |
+
top: 0;
|
1899 |
+
display: block;
|
1900 |
+
position: absolute;
|
1901 |
+
}
|
1902 |
+
|
1903 |
+
/* Epsilon - Toggle */
|
1904 |
+
.epsilon-ui-toggle {
|
1905 |
+
background: transparent;
|
1906 |
+
width: 52px;
|
1907 |
+
height: 22px;
|
1908 |
+
position: relative;
|
1909 |
+
z-index: 10;
|
1910 |
+
}
|
1911 |
+
|
1912 |
+
.epsilon-ui-toggle input {
|
1913 |
+
position: absolute;
|
1914 |
+
z-index: -1;
|
1915 |
+
opacity: 0;
|
1916 |
+
left: 0;
|
1917 |
+
top: 0;
|
1918 |
+
}
|
1919 |
+
|
1920 |
+
.epsilon-ui-toggle input:focus ~ span {
|
1921 |
+
outline: 1px dashed #ccc;
|
1922 |
+
outline-offset: 2px;
|
1923 |
+
}
|
1924 |
+
|
1925 |
+
.epsilon-ui-toggle span {
|
1926 |
+
display: block;
|
1927 |
+
height: 22px;
|
1928 |
+
width: 52px;
|
1929 |
+
border-radius: 20px;
|
1930 |
+
overflow: hidden;
|
1931 |
+
cursor: pointer;
|
1932 |
+
position: relative;
|
1933 |
+
height: 22px;
|
1934 |
+
padding: 0;
|
1935 |
+
line-height: 19px;
|
1936 |
+
transition: background-color 0.2s ease-in;
|
1937 |
+
-webkit-border-radius: 11px;
|
1938 |
+
-moz-border-radius: 11px;
|
1939 |
+
border-radius: 30px;
|
1940 |
+
background-color: #c4c4c4;
|
1941 |
+
-webkit-box-shadow: inset 0 2px 1px rgba(0, 0, 0, 0.11);
|
1942 |
+
-moz-box-shadow: inset 0 2px 1px rgba(0, 0, 0, 0.11);
|
1943 |
+
box-shadow: inset 0 2px 1px rgba(0, 0, 0, 0.11);
|
1944 |
+
}
|
1945 |
+
|
1946 |
+
.epsilon-ui-toggle input + span:before {
|
1947 |
+
content: "";
|
1948 |
+
display: block;
|
1949 |
+
width: 18px;
|
1950 |
+
height: 18px;
|
1951 |
+
margin: 0;
|
1952 |
+
position: absolute;
|
1953 |
+
top: 2px;
|
1954 |
+
bottom: 0;
|
1955 |
+
right: 32px;
|
1956 |
+
background-color: #fff;
|
1957 |
+
-webkit-box-shadow: 0 0 3px rgba(0, 0, 0, 0.1);
|
1958 |
+
-moz-box-shadow: 0 0 3px rgba(0, 0, 0, 0.1);
|
1959 |
+
box-shadow: 0 0 3px rgba(0, 0, 0, 0.1);
|
1960 |
+
-webkit-border-radius: 10px;
|
1961 |
+
-moz-border-radius: 10px;
|
1962 |
+
border-radius: 10px;
|
1963 |
+
transition: all 0.2s ease-in 0s;
|
1964 |
+
}
|
1965 |
+
|
1966 |
+
.epsilon-ui-toggle input + span:after {
|
1967 |
+
content: "OFF";
|
1968 |
+
display: block;
|
1969 |
+
color: #FFF;
|
1970 |
+
position: absolute;
|
1971 |
+
top: 2px;
|
1972 |
+
bottom: 2px;
|
1973 |
+
right: 6px;
|
1974 |
+
font-size: 11px;
|
1975 |
+
font-family: 'Arial';
|
1976 |
+
}
|
1977 |
+
|
1978 |
+
.epsilon-ui-toggle input:checked + span {
|
1979 |
+
background: #3CAF0E;
|
1980 |
+
}
|
1981 |
+
|
1982 |
+
.epsilon-ui-toggle input:checked + span:before {
|
1983 |
+
right: 2px;
|
1984 |
+
}
|
1985 |
+
|
1986 |
+
.epsilon-ui-toggle input:checked + span:after {
|
1987 |
+
content: "ON";
|
1988 |
+
right: 27px;
|
1989 |
+
}
|
1990 |
+
|
1991 |
+
.epsilon-ui-toggle input:focus + span,
|
1992 |
+
.epsilon-ui-toggle:hover input + span {
|
1993 |
+
background: #d4d4d4;
|
1994 |
+
}
|
1995 |
+
|
1996 |
+
.epsilon-ui-toggle input:focus:checked + span,
|
1997 |
+
.epsilon-ui-toggle:hover input:checked + span {
|
1998 |
+
background: #4fbf23;
|
1999 |
+
}
|
2000 |
+
|
2001 |
+
.ui-locked {
|
2002 |
+
position: relative;
|
2003 |
+
}
|
2004 |
+
.ui-locked input[type="radio"]:disabled {
|
2005 |
+
opacity: 0;
|
2006 |
+
}
|
2007 |
+
.ui-locked input:disabled ~ strong {
|
2008 |
+
background: transparent;
|
2009 |
+
}
|
2010 |
+
.ui-locked:after {
|
2011 |
+
background: #F15B25;
|
2012 |
+
opacity: 1;
|
2013 |
+
border: none;
|
2014 |
+
text-align: center;
|
2015 |
+
content: '\f160';
|
2016 |
+
font-family: dashicons;
|
2017 |
+
color: #fff;
|
2018 |
+
display: inline-block;
|
2019 |
+
font-size: 11px;
|
2020 |
+
position: absolute;
|
2021 |
+
bottom: 2px;
|
2022 |
+
right: -25px;
|
2023 |
+
border-radius: 50%;
|
2024 |
+
width: 16px;
|
2025 |
+
height: 16px;
|
2026 |
+
line-height: 16px;
|
2027 |
+
}
|
2028 |
+
|
2029 |
+
.sl-kiwi-tab-integration .integration_box {
|
2030 |
+
height: 330px;
|
2031 |
+
margin-top: 15px;
|
2032 |
+
text-align: center;
|
2033 |
+
background: #FFF;
|
2034 |
+
position: relative;
|
2035 |
+
border: 1px solid rgba(0, 0, 0, 0.1);
|
2036 |
+
float: left;
|
2037 |
+
}
|
2038 |
+
.sl-kiwi-tab-integration .themes {
|
2039 |
+
display: inline-block;
|
2040 |
+
}
|
2041 |
+
.sl-kiwi-tab-integration .integration_box .recommended {
|
2042 |
+
background: #d25637;
|
2043 |
+
color: #FFF;
|
2044 |
+
text-transform: uppercase;
|
2045 |
+
height: 28px;
|
2046 |
+
text-align: center;
|
2047 |
+
top: 0;
|
2048 |
+
left: 0;
|
2049 |
+
right: 0;
|
2050 |
+
line-height: 28px;
|
2051 |
+
font-size: 10px;
|
2052 |
+
position: absolute;
|
2053 |
+
font-weight: bold;
|
2054 |
+
}
|
2055 |
+
.sl-kiwi-tab-integration .integration_box img {
|
2056 |
+
width: 155px;
|
2057 |
+
height: 155px;
|
2058 |
+
padding-top: 50px;
|
2059 |
+
margin: 0 auto;
|
2060 |
+
margin-bottom: 15px;
|
2061 |
+
display: block;
|
2062 |
+
border: none;
|
2063 |
+
}
|
2064 |
+
.sl-kiwi-tab-integration .integration_box.theme img {
|
2065 |
+
width: 100%;
|
2066 |
+
height: initial;
|
2067 |
+
padding: 0;
|
2068 |
+
margin: 0;
|
2069 |
+
display: block;
|
2070 |
+
}
|
2071 |
+
.sl-kiwi-tab-integration .integration_box.theme .info {
|
2072 |
+
display: block;
|
2073 |
+
position: absolute;
|
2074 |
+
bottom: 48px;
|
2075 |
+
left: 0;
|
2076 |
+
right: 0;
|
2077 |
+
height: 35px;
|
2078 |
+
background: rgba(0, 0, 0, 0.5);
|
2079 |
+
line-height: 35px;
|
2080 |
+
}
|
2081 |
+
.sl-kiwi-tab-integration .integration_box.theme .info a {
|
2082 |
+
color: #fff;
|
2083 |
+
font-size: 14px;
|
2084 |
+
font-family: 'Open Sans';
|
2085 |
+
}
|
2086 |
+
.sl-kiwi-tab-integration .integration_box.theme .info a:hover, .sl-kiwi-tab-integration .integration_box.theme .info a:focus {
|
2087 |
+
text-decoration: none;
|
2088 |
+
}
|
2089 |
+
.sl-kiwi-tab-integration .integration_box .action_bar {
|
2090 |
+
position: absolute;
|
2091 |
+
bottom: 0;
|
2092 |
+
left: 0;
|
2093 |
+
right: 0;
|
2094 |
+
font-size: 15px;
|
2095 |
+
font-weight: 600;
|
2096 |
+
height: 18px;
|
2097 |
+
margin: 0;
|
2098 |
+
padding: 15px;
|
2099 |
+
-webkit-box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.1);
|
2100 |
+
box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.1);
|
2101 |
+
overflow: hidden;
|
2102 |
+
white-space: nowrap;
|
2103 |
+
text-overflow: ellipsis;
|
2104 |
+
background: #fff;
|
2105 |
+
background: rgba(255, 255, 255, 0.65);
|
2106 |
+
text-align: left;
|
2107 |
+
padding-right: 105px;
|
2108 |
+
}
|
2109 |
+
.sl-kiwi-tab-integration .integration_box .action_bar.active {
|
2110 |
+
background: #23282d;
|
2111 |
+
color: #FFF;
|
2112 |
+
}
|
2113 |
+
.sl-kiwi-tab-integration .integration_box .action_button {
|
2114 |
+
position: absolute;
|
2115 |
+
bottom: -1px;
|
2116 |
+
right: -1px;
|
2117 |
+
padding: 9px 10px 10px;
|
2118 |
+
background: #f6f6f6;
|
2119 |
+
border: 1px solid rgba(0, 0, 0, 0.1);
|
2120 |
+
}
|
2121 |
+
.sl-kiwi-tab-integration .integration_box .action_button.active {
|
2122 |
+
background: #2c2e2f;
|
2123 |
+
bottom: 0;
|
2124 |
+
right: -1px;
|
2125 |
+
padding: 9px 10px 9px;
|
2126 |
+
}
|
2127 |
+
.sl-kiwi-tab-integration.three-col .col {
|
2128 |
+
width: 29.81%;
|
2129 |
+
margin-right: 5%;
|
2130 |
+
margin-bottom: 35px;
|
2131 |
+
}
|
2132 |
+
.sl-kiwi-tab-integration.three-col .col:nth-child(3n + 3) {
|
2133 |
+
margin-right: 0;
|
2134 |
+
}
|
2135 |
+
|
2136 |
+
.mce-ico.mce-i-dashicons.dashicons-twitter {
|
2137 |
+
font-family: 'dashicons';
|
2138 |
+
}
|
2139 |
+
.mce-ico.mce-i-dashicons.dashicons-twitter:before {
|
2140 |
+
content: "\f301";
|
2141 |
+
color: #55ACEE;
|
2142 |
+
}
|
2143 |
+
|
2144 |
+
#update-nag, .update-nag {
|
2145 |
+
position: relative;
|
2146 |
+
z-index: 10;
|
2147 |
+
}
|
2148 |
+
#update-nag.kiwi-notice, .update-nag.kiwi-notice {
|
2149 |
+
width: 95%;
|
2150 |
+
}
|
2151 |
+
#update-nag.kiwi-notice p, .update-nag.kiwi-notice p {
|
2152 |
+
font-size: 14px;
|
2153 |
+
}
|
2154 |
+
|
2155 |
+
.kiwi-title-has-tooltip h4 {
|
2156 |
+
display: inline-block;
|
2157 |
+
}
|
2158 |
+
|
2159 |
+
.kiwi-tooltip-container {
|
2160 |
+
position: relative;
|
2161 |
+
display: inline-block;
|
2162 |
+
}
|
2163 |
+
.kiwi-tooltip-container .dashicons {
|
2164 |
+
color: #0073aa;
|
2165 |
+
}
|
2166 |
+
.kiwi-tooltip-container .tooltip-opener {
|
2167 |
+
cursor: pointer;
|
2168 |
+
}
|
2169 |
+
.kiwi-tooltip-container .tooltip-opener:hover + .kiwi-notice-container, .kiwi-tooltip-container .tooltip-opener:focus + .kiwi-notice-container {
|
2170 |
+
display: block;
|
2171 |
+
}
|
2172 |
+
.kiwi-tooltip-container .kiwi-notice-container {
|
2173 |
+
position: absolute;
|
2174 |
+
display: none;
|
2175 |
+
padding: 10px;
|
2176 |
+
background: #0073aa;
|
2177 |
+
border-radius: 3px;
|
2178 |
+
z-index: 10;
|
2179 |
+
width: 350px;
|
2180 |
+
}
|
2181 |
+
.kiwi-tooltip-container .kiwi-notice-container p {
|
2182 |
+
color: #fff;
|
2183 |
+
}
|
2184 |
+
|
2185 |
+
/* ==========================================================================
|
2186 |
+
=Clearing
|
2187 |
+
========================================================================== */
|
2188 |
+
/**
|
2189 |
+
* ClearFix Hack
|
2190 |
+
* Usage: add class="fixed" to parents of floated elements
|
2191 |
+
*/
|
2192 |
+
.fixed:after {
|
2193 |
+
visibility: hidden;
|
2194 |
+
display: block;
|
2195 |
+
font-size: 0;
|
2196 |
+
content: " ";
|
2197 |
+
clear: both;
|
2198 |
+
height: 0;
|
2199 |
+
}
|
2200 |
+
|
2201 |
+
/*****
|
2202 |
+
* Clear content
|
2203 |
+
* Usage: <br class="clear">
|
2204 |
+
*****/
|
2205 |
+
.clear {
|
2206 |
+
clear: both;
|
2207 |
+
display: block;
|
2208 |
+
overflow: hidden;
|
2209 |
+
visibility: hidden;
|
2210 |
+
width: 0;
|
2211 |
+
height: 0;
|
2212 |
+
}
|
assets/css/admin.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
#sl-kiwi,.kiwi-modal .modal-title{font-family:'Open Sans'}.epsilon-ui-tabs a:focus,.epsilon-ui-tabs a:hover,.sl-kiwi-dragdrop li a:hover,.sl-kiwi-tab-integration .integration_box.theme .info a:focus,.sl-kiwi-tab-integration .integration_box.theme .info a:hover{text-decoration:none}#sl-kiwi{width:1150px;padding:20px;margin-bottom:10px;position:relative}#sl-kiwi a:focus{box-shadow:none;-webkit-box-shadow:none}#sl-kiwi .overlay{position:absolute;top:20px;bottom:102px;left:20px;right:20px;-webkit-transition:all .3s;transition:all .3s;z-index:9999;text-align:center;padding-top:250px}#sl-kiwi .overlay.active{-webkit-transition:all .4s;transition:all .4s;background:rgba(255,255,255,.97)}#sl-kiwi .overlay img{position:relative;top:-72px}.kiwi-notification-popup{width:100%;padding:25px 20px;box-sizing:border-box;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;background-color:#0073aa;color:#fff;display:none;position:relative;z-index:10}.kiwi-notification-popup .button{float:right;position:relative;bottom:5px}.kiwi-utility-bar{position:absolute;top:20px;right:-25px;display:none}.kiwi-utility-bar>input{position:fixed}.sl-kiwi-content{background:#fff;min-height:500px;margin-top:-10px;position:relative;z-index:5;-webkit-box-shadow:0 0 5px rgba(0,0,0,.06);-moz-box-shadow:0 0 5px rgba(0,0,0,.06);box-shadow:0 0 5px rgba(0,0,0,.06);padding:10px 30px}.sl-kiwi-content input[type=text],.sl-kiwi-content input[type=email],.sl-kiwi-content input[type=url]{width:330px;height:32px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;background-color:#fff;-webkit-box-shadow:1px 1px 2px rgba(35,31,32,.2);-moz-box-shadow:1px 1px 2px rgba(35,31,32,.2);box-shadow:1px 1px 2px rgba(35,31,32,.2);padding-left:10px;margin-top:5px;border:1px solid #f2f2f2}#sl-kiwi .epsilon-ui-color .wp-picker-container .wp-color-result,.sl-kiwi-dragdrop{-webkit-box-shadow:0 0 5px rgba(0,0,0,.15);-moz-box-shadow:0 0 5px rgba(0,0,0,.15)}.sl-kiwi-content>div{padding-bottom:50px;display:none}.sl-kiwi-content>div.epsilon-tab-active{display:block}.sl-kiwi-dragdrop .suggestions{font-size:32px;color:#EBEBEB;width:100%;height:40px;line-height:40px;text-align:center;font-weight:700;display:block;position:absolute;top:15px;opacity:.7;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.sl-kiwi-dragdrop{height:220px;border:1px solid #fff;margin:0;position:relative;-webkit-border-radius:3px 3px 0 0;-moz-border-radius:3px 3px 0 0;border-radius:3px 3px 0 0;background-color:#fff;box-shadow:0 0 5px rgba(0,0,0,.15);background-image:-webkit-linear-gradient(top,rgba(255,255,255,.7),rgba(246,246,246,.7));background-image:-moz-linear-gradient(top,rgba(255,255,255,.7),rgba(246,246,246,.7));background-image:-o-linear-gradient(top,rgba(255,255,255,.7),rgba(246,246,246,.7));background-image:-ms-linear-gradient(top,rgba(255,255,255,.7),rgba(246,246,246,.7));background-image:linear-gradient(to bottom,rgba(255,255,255,.7),rgba(246,246,246,.7))}.sl-kiwi-dragdrop>div{padding:85px 25px 0;text-align:center}.sl-kiwi-dragdrop ul{line-height:30px;vertical-align:top}.sl-kiwi-dragdrop ul[data-id=networks_ordering_floating_bar]{position:absolute;top:45px;right:0;z-index:-1;transition:all .3s;opacity:0}.sl-kiwi-dragdrop ul[data-id=networks_ordering_floating_bar] li{display:block;margin:0;padding:0}.sl-kiwi-dragdrop ul[data-id=networks_ordering_floating_bar] li a{display:block;height:40px;line-height:40px;padding:0 5px;min-width:40px;transition:all .3s;-webkit-box-shadow:none;box-shadow:none;font-size:16px;box-sizing:border-box;position:relative;z-index:1}.sl-kiwi-dragdrop ul[data-id=networks_ordering_floating_bar] li.sl-kiwi-dragdrop-placeholder:before{width:40px}.sl-kiwi-dragdrop ul[data-id=networks_ordering_floating_bar].pill li{margin-bottom:2px}.sl-kiwi-dragdrop ul[data-id=networks_ordering_floating_bar].pill li a{border-radius:25px}#sl-kiwi .sl-kiwi-item-add{margin-right:5px}#sl-kiwi .sl-kiwi-item-remove{max-width:0;margin-right:0;display:none}.sl-kiwi-dragdrop-placeholder:before{border:1px dashed #ccc;width:100%;position:absolute;top:0;left:0;bottom:0;right:0;height:100%;content:" ";display:block}.sl-kiwi-dragdrop-placeholder{position:relative;height:30px;padding:0 5px;min-width:90px;background:0 0;vertical-align:top}.sl-kiwi-dragdrop ul.pill a{border-radius:15px}.sl-kiwi-dragdrop ul.leaf a{border-radius:12px 0}.sl-kiwi-dragdrop ul.shift a{-ms-transform:skewX(-15deg);-webkit-transform:skewX(-15deg);transform:skewX(-15deg)}.sl-kiwi-dragdrop ul.shift span{-ms-transform:skewX(15deg);-webkit-transform:skewX(15deg);transform:skewX(15deg);display:block}.sl-kiwi-dragdrop ul.pill .sl-kiwi-dragdrop-placeholder:before{border-radius:15px}.sl-kiwi-dragdrop ul.leaf .sl-kiwi-dragdrop-placeholder:before{border-radius:12px 0}.sl-kiwi-dragdrop ul.shift .sl-kiwi-dragdrop-placeholder:before{-ms-transform:skewX(-15deg);-webkit-transform:skewX(-15deg);transform:skewX(-15deg)}.sl-kiwi-dragdrop li{list-style-type:none;transition:max-width .2s,margin .2s;overflow:hidden;margin-right:5px;display:inline-block;padding:0 5px}.sl-kiwi-dragdrop li.ui-sortable-helper a{transition:box-shadow .3s;-webkit-box-shadow:6px 10px 10px rgba(0,0,0,.1);-moz-box-shadow:6px 10px 10px rgba(0,0,0,.1);box-shadow:6px 10px 10px rgba(0,0,0,.1)}.sl-kiwi-dragdrop li a{display:block;height:30px;line-height:30px;padding:0 5px;min-width:90px;transition:all .3s}.sl-kiwi-networks{margin-bottom:40px;position:relative}.sl-kiwi-networks .epsilon-ui-locked{position:absolute;right:-15px;width:35px;height:35px;line-height:35px;top:12px;text-align:center}ul[data-style=fit]{display:table;width:100%}ul[data-style=fit] li{display:table-cell;padding:0;overflow:initial}ul[data-style=fit].leaf a,ul[data-style=fit].leaf li:last-of-type a{width:100%}ul[data-style=fit].pill{flex-wrap:nowrap;display:flex;margin-left:20px;width:auto}ul[data-style=fit].pill .sl-kiwi-item-add{margin:0;flex:1}ul[data-style=fit].pill .sl-kiwi-item-add a{padding:0 0 0 26px;display:block;width:100%;margin-left:-26px}ul[data-style=fit].pill .sl-kiwi-item-add span{margin-right:26px}.sl-kiwi-tab-registration label,.sl-kiwi-tab-socialIdentity label{display:block;color:grey;margin-bottom:5px}.sl-kiwi-tab-registration input[type=text],.sl-kiwi-tab-socialIdentity input[type=text]{padding:5px;margin-bottom:15px}.sl-kiwi-tab-registration .kiwi-registration-action,.sl-kiwi-tab-socialIdentity .kiwi-registration-action{height:30px}[class*=sl-kiwi-tab-] h2{font-size:22px;color:#585858;font-weight:300;height:50px}.sl-kiwi-networks h2>span{width:65%;display:block;float:left;background:0 0}.sl-kiwi-networks h2 span+span{width:17.5%;display:block;float:left;background:0 0;text-align:center;font-size:14px;color:#959696}.sl-kiwi-networks em{font-style:normal}.sl-kiwi-networks ul{border-top:1px solid #F5F5F5;padding:0;margin:0 10px}.sl-kiwi-networks li{height:39px;border-bottom:1px solid #F5F5F5;list-style-type:none;line-height:35px;padding-left:20px;position:relative;margin-bottom:0}.sl-kiwi-networks li:hover{background:#FBFBFB}.sl-kiwi-networks li>span{width:65%;display:block;float:left;background:0 0;color:#555;font-size:13px}.sl-kiwi-networks li span+span{width:17.5%;background:0 0;text-align:center}.sl-kiwi-networks span>strong{height:24px;width:24px;display:inline-block;vertical-align:middle;line-height:24px;text-align:center;border-radius:2px;margin-right:5px;background:#D4D4D4}.sl-kiwi-networks span>strong i{font-size:16px;line-height:24px}.sl-kiwi-networks.kiwi-styles h2 span+span{width:16%}.sl-kiwi-networks.kiwi-styles h2 span:nth-last-of-type(-n+2)+span:nth-last-of-type(-n+2),.sl-kiwi-networks.kiwi-styles h2 span:nth-last-of-type(-n+3)+span:nth-last-of-type(-n+3){width:8%}.sl-kiwi-networks.kiwi-styles h2 strong.goleft{position:relative;right:5px}.sl-kiwi-networks.kiwi-styles h2>span{width:20%;text-align:left}.sl-kiwi-networks.kiwi-styles li span+span{width:16%;text-align:left}.sl-kiwi-networks.kiwi-styles li span:nth-last-of-type(-n+2)+span:nth-last-of-type(-n+2),.sl-kiwi-networks.kiwi-styles li span:nth-last-of-type(-n+3)+span:nth-last-of-type(-n+3){width:8%}.sl-kiwi-networks.kiwi-styles li>span{width:20%}#sl-kiwi .kiwi-nw-twitter{background:#4EAEF8;color:#fff}#sl-kiwi .kiwi-nw-whatsapp{background:#0DC143;color:#fff}#sl-kiwi .kiwi-nw-telegram{background:#179CDE;color:#fff}#sl-kiwi .kiwi-nw-skype{background:#009EE5;color:#fff}#sl-kiwi .kiwi-nw-youtube,#sl-kiwi .kiwi-nw-youtube-play{background:#E62117;color:#fff}#sl-kiwi .kiwi-nw-facebook{background:#3B5998;color:#fff}#sl-kiwi .kiwi-nw-google-plus{background:#DB4437;color:#fff}#sl-kiwi .kiwi-nw-pinterest{background:#BD081C;color:#fff}#sl-kiwi .kiwi-nw-linkedin{background:#1A85BC;color:#fff}#sl-kiwi .kiwi-nw-reddit{background:#FF4500;color:#fff}#sl-kiwi .kiwi-nw-email,#sl-kiwi .kiwi-nw-envelope{background:#4D9159;color:#fff}.sl-kiwi-opt-group{min-height:100px;background:0 0;padding:30px 0;border-bottom:1px solid #F5F5F5}.sl-kiwi-opt-group:last-of-type{border-bottom:none}.sl-kiwi-opt-group .bottom-color-option{clear:both}.sl-kiwi-inner-opt{padding-left:70px}.sl-kiwi-opt-group .left{float:left}.sl-kiwi-opt-group .right{float:right}.sl-kiwi-opt-toggle{background:0 0;width:70px;float:left;padding-top:10px}.sl-kiwi-opt-description{float:left;background:0 0;min-height:60px;position:relative}.sl-kiwi-opt-description h4{font-size:18px;margin:0;line-height:18px}.sl-kiwi-opt-description h5{font-size:16px;margin:0;line-height:18px}.sl-kiwi-opt-description p{font-size:14px;margin:0}.epsilon-ui-locked{display:inline-block;border-radius:10px;width:20px;height:20px;cursor:pointer;vertical-align:middle}.epsilon-ui-locked i{font-size:12px;color:#fff;text-shadow:0 0 4px rgba(0,0,0,.2);line-height:16px;background:#F05A25;cursor:pointer}.dashicons-before::before,.epsilon-ui-locked i.dashicons{width:17px;height:17px;border-radius:10px;text-align:center;vertical-align:top}.sl-kiwi-opt-space-sm{padding-top:15px}.clearfix:after{clear:both;content:".";display:block;height:0;line-height:0;visibility:hidden}.kiwi-modal,.kiwi-modal #page-two{display:none}.kiwi-modal{position:fixed;top:0;right:0;left:0;bottom:0;z-index:1050;overflow:hidden;-webkit-overflow-scrolling:touch;outline:0;background:rgba(0,0,0,.7)}.kiwi-modal .close-modal{width:25px;height:25px;color:#FF3424;position:absolute;text-align:center;line-height:25px;font-size:17px;right:7px;top:7px;cursor:pointer}.kiwi-modal .kiwi-modal-content{position:relative;width:900px;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px;background-image:-webkit-linear-gradient(bottom,#fff 25%,#f2f3f4 90%);background-image:-moz-linear-gradient(bottom,#fff 25%,#f2f3f4 90%);background-image:-o-linear-gradient(bottom,#fff 25%,#f2f3f4 90%);background-image:-ms-linear-gradient(bottom,#fff 25%,#f2f3f4 90%);background-image:linear-gradient(to top,#fff 25%,#f2f3f4 90%);-webkit-box-shadow:0 0 15px rgba(0,0,0,.15);-moz-box-shadow:0 0 15px rgba(0,0,0,.15);box-shadow:0 0 15px rgba(0,0,0,.15);margin:8% auto}.kiwi-modal.fade{opacity:0;-webkit-transition:opacity .15s linear;-o-transition:opacity .15s linear;transition:opacity .15s linear}.kiwi-modal.fade .kiwi-modal-content{-webkit-transition:-webkit-transform .3s ease-out;-o-transition:-o-transform .3s ease-out;transition:transform .3s ease-out;-webkit-transform:translate(0,-25%);-ms-transform:translate(0,-25%);-o-transform:translate(0,-25%);transform:translate(0,-25%)}.kiwi-modal.fade.in{opacity:1}.kiwi-modal.fade.in .kiwi-modal-content{-webkit-transform:translate(0,0);-ms-transform:translate(0,0);-o-transform:translate(0,0);transform:translate(0,0)}.kiwi-modal .button-modal{width:100%;height:45px;-webkit-border-radius:22px 23px 23px 22px/22px 22px 23px 23px;-moz-border-radius:22px 23px 23px 22px/22px 22px 23px 23px;border-radius:22px 23px 23px 22px/22px 22px 23px 23px;background-color:#ff3d2e;color:#fff;display:inline-block;line-height:45px;margin:30px auto;text-align:center}.kiwi-modal .button-modal:focus,.kiwi-modal .button-modal:hover{text-decoration:none;color:#fff;background-color:#ff3424}.kiwi-modal .modal-header{padding-top:40px;padding-bottom:40px;text-align:center;background-image:url(../img/back-wavy.png);background-size:cover;background-position:center;-webkit-border-top-left-radius:10px;-moz-border-top-left-radius:10px;border-top-left-radius:10px;-webkit-border-top-right-radius:10px;-moz-border-top-right-radius:10px;border-top-right-radius:10px}.kiwi-modal .modal-header .modal-header-content{width:475px;margin:0 auto}.kiwi-modal .modal-title{font-size:28px;font-weight:800;color:#333}.kiwi-modal .modal-subtitle{font-family:"Open Sans";font-size:14px;color:#8c8c8c}.kiwi-modal .price-box{margin-top:40px}.kiwi-modal .price-box .price{font-family:"Open Sans";font-weight:700;color:#333;font-size:60px;display:block}.kiwi-modal .price-box .price .currency{font-size:45px}.kiwi-modal .price-box .price small{font-size:15px}.kiwi-modal .price-box .button-modal{width:150px}.kiwi-modal .modal-footer{margin:60px auto 0;padding-bottom:60px;width:475px}.kiwi-modal .modal-footer a{color:#639fb1;font-family:'Open Sans';font-size:14px;display:inline-block;margin-bottom:15px}.kiwi-modal .modal-footer .muted{font-size:12px;font-family:'Open Sans';color:#8c8c8c}.kiwi-modal .modal-content.form .clearfix label,.kiwi-modal .modal-content.form .radio-label{color:grey;font-family:'Open Sans';display:block}.kiwi-modal .modal-content{width:310px;margin:0 auto}.kiwi-modal .modal-content.form .radio-label{margin-top:40px}.kiwi-modal .modal-content.form>.ui-radio-inline{margin-top:15px!important}.kiwi-modal .modal-content.form .clearfix{margin-top:30px}.kiwi-modal .modal-content.form .clearfix .half{width:50%;float:left;padding-right:15px;box-sizing:border-box}.kiwi-modal .modal-content.form .clearfix .half:last-of-type{padding-left:15px;padding-right:0}.kiwi-modal .modal-content.form .clearfix input{width:100%;height:32px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;border:none;background-color:#fff;-webkit-box-shadow:1px 1px 2px rgba(35,31,32,.2);-moz-box-shadow:1px 1px 2px rgba(35,31,32,.2);box-shadow:1px 1px 2px rgba(35,31,32,.2);padding-left:5px;margin-top:5px}.epsilon-ui-tabs{margin-top:-36px;overflow:hidden;position:relative;z-index:10}.epsilon-ui-tabs ul{height:36px;margin-left:30px}.epsilon-ui-tabs li{height:36px;margin-right:2px;float:left;background:#E8E8E8;list-style-type:none;line-height:36px;text-align:center}.epsilon-ui-tabs li.selected{background:#fff;-webkit-box-shadow:0 -2px 3px rgba(0,0,0,.02);-moz-box-shadow:0 -2px 3px rgba(0,0,0,.02);box-shadow:0 -2px 3px rgba(0,0,0,.02)}.epsilon-ui-tabs .selected a:hover{background:#fff}.epsilon-ui-tabs a{display:block;line-height:36px;color:#666;padding:0 10px;min-width:80px}.epsilon-ui-tabs i{vertical-align:middle;font-size:16px}.epsilon-ui-tabs a:hover{background:#D4D4D4}.epsilon-ui-tabs a:focus{outline:#ccc dashed 1px;outline-offset:-4px}.sl-kiwi-networks li span{line-height:35px}.sl-kiwi-networks li:hover .epsilon-ui-checkbox strong{border:1px solid #8AB7C5}.sl-kiwi-networks li:hover .epsilon-ui-checkbox input:checked~strong,.sl-kiwi-networks li:hover .epsilon-ui-checkbox input:focus~strong{border:1px solid #448092}.ui-inline strong{display:inline-block}#sl-kiwi label.epsilon-ui-checkbox{background:0 0;display:block;position:relative;cursor:pointer;margin:0 35px;max-width:none}.epsilon-ui-checkbox.ui-checkbox-inline strong{display:inline-block}#sl-kiwi .epsilon-ui-checkbox.ui-checkbox-inline{display:inline-block;margin-left:0}.epsilon-ui-checkbox input{position:absolute;z-index:-1;opacity:0;left:0;top:0}.epsilon-ui-checkbox input:focus~strong{border:1px solid #448092;outline:#ccc dashed 1px;outline-offset:2px}.epsilon-ui-checkbox input:checked~strong{background:#fff;border:1px solid #448092;-webkit-box-shadow:inset 0 0 0 4px rgba(99,159,177,.75);-moz-box-shadow:inset 0 0 0 4px rgba(99,159,177,.75);box-shadow:inset 0 0 0 4px rgba(99,159,177,.75)}.epsilon-ui-checkbox input:disabled~strong{background:#1ABC9C;opacity:.6;pointer-events:none}.epsilon-ui-checkbox strong{background:#fff;border:1px solid #DDD;display:block;margin:11px auto auto;height:16px;width:16px;transition:all .15s}#sl-kiwi label.epsilon-ui-radio{display:block;position:relative;cursor:pointer;background:0 0;margin:0 35px;max-width:none;font-weight:400;color:grey}#sl-kiwi .sl-kiwi-tab-styles label.epsilon-ui-radio{margin:0 60px 0 0}.epsilon-ui-radio.ui-radio-inline strong{display:inline-block;margin-right:5px;position:relative;top:3px}#sl-kiwi .epsilon-ui-radio.ui-radio-inline{display:inline-block;margin-left:0}.epsilon-ui-radio strong{border-radius:50%;display:block;margin:11px auto auto;height:16px;width:16px;background:#fff;border:1px solid #DDD;transition:all .15s}.epsilon-ui-radio input{position:absolute;z-index:-1;opacity:0;left:0;top:0}.epsilon-ui-radio input:focus~strong{border:1px solid #448092;outline:#ccc dashed 1px;outline-offset:2px}.epsilon-ui-radio input:checked~strong{background:#fff;border:1px solid #448092;-webkit-box-shadow:inset 0 0 0 4px rgba(99,159,177,.75);-moz-box-shadow:inset 0 0 0 4px rgba(99,159,177,.75);box-shadow:inset 0 0 0 4px rgba(99,159,177,.75)}.epsilon-ui-radio input:disabled~strong{background:#1ABC9C;opacity:.6;pointer-events:none}.epsilon-ui-checklist{position:relative;overflow:hidden;margin-top:25px;padding-top:10px;border-top:1px solid #ECECEC;background:#FCFCFC}.epsilon-ui-checklist:before{position:absolute;top:-2px;left:50px;right:50px;height:2px;content:" ";box-shadow:0 -60px 30px 35px rgba(0,0,0,.7);z-index:1}.epsilon-ui-checklist ul{margin:15px 0 0;list-style-type:none;padding:0 5px 25px 25px;position:relative;overflow:hidden}.epsilon-ui-checklist li{margin-bottom:1px;height:35px}.epsilon-ui-checklist li>span{float:left;width:80%;padding:10px 0 0;color:grey}#sl-kiwi .epsilon-ui-checklist li .epsilon-ui-checkbox{float:right;width:20%;margin:0}.epsilon-ui-overlay{background:#fff;position:absolute;padding:10px;opacity:0}.epsilon-ui-overlay.active{top:-5px;left:-5px;bottom:-5px;right:-5px;opacity:.6}.epsilon-ui-overlay.active.networks{right:185px;left:200px;top:35px}#sl-kiwi .epsilon-ui-color{line-height:14px;background:0 0;display:inline-block;color:#D1D1D1}#sl-kiwi .epsilon-ui-color .wp-picker-container{position:relative}#sl-kiwi .epsilon-ui-color .wp-picker-container .wp-picker-holder{position:absolute;z-index:9999}#sl-kiwi .epsilon-ui-color .wp-picker-container .wp-color-picker{height:23px;position:absolute;top:6px;border:none;color:#D1D1D1}#sl-kiwi .epsilon-ui-color .wp-picker-container .wp-picker-clear{position:relative;left:66px;top:6px}#sl-kiwi .epsilon-ui-color .wp-picker-container .wp-color-result{background:0 0;border:none;-webkit-border-radius:0;border-radius:0;box-shadow:0 0 5px rgba(0,0,0,.15);padding-left:19px}#sl-kiwi .epsilon-ui-color .wp-picker-container .wp-color-result:after{background:0 0;-webkit-border-radius:0;border-radius:0;content:''}#sl-kiwi .bottom-color-option .floating-bar-background{width:350px;position:relative}#sl-kiwi .bottom-color-option .floating-bar-background em{position:absolute;left:44px;top:3px;font-style:normal;font-size:13px}#sl-kiwi .bottom-color-option .wp-picker-container{width:350px}#sl-kiwi .bottom-color-option .wp-picker-container .wp-color-result{border:none}#sl-kiwi .bottom-color-option .wp-picker-container .wp-color-result:after{-webkit-border-radius:0;border-radius:0;content:''}#sl-kiwi .bottom-color-option .wp-picker-container .wp-color-result:focus,#sl-kiwi .bottom-color-option .wp-picker-container .wp-color-result:hover{background:0 0;border-color:transparent;color:initial}#sl-kiwi .bottom-color-option .wp-picker-container .wp-color-picker{z-index:10;height:27px;top:-3px}#sl-kiwi .bottom-color-option .wp-picker-container .wp-picker-default{z-index:999;left:100px;position:absolute}#sl-kiwi .epsilon-ui-color strong{width:30px;height:20px;border-radius:0;-webkit-box-shadow:0 0 5px rgba(0,0,0,.15);-moz-box-shadow:0 0 5px rgba(0,0,0,.15);box-shadow:0 0 5px rgba(0,0,0,.15)}.epsilon-ui-option{position:relative}.epsilon-ui-option input{position:absolute;z-index:-1;opacity:0;left:0;top:0}.epsilon-ui-option label{width:100%;cursor:pointer;margin:0}.epsilon-ui-option ul{list-style-type:none;height:90px;padding:0;margin:0}.epsilon-ui-option li{width:80px;height:90px;float:left;background:#F7FAFB;text-align:center;margin-right:1px}.epsilon-ui-option input+span{background:#F7FAFB;display:block;padding:14px 15px 0;height:90px}.epsilon-ui-option span span{text-transform:uppercase;font-size:10px;display:block;background:0 0;height:24px;color:#969A9C;border-top:1px solid #fff;line-height:24px;font-weight:400;margin:15px -15px 0}.epsilon-ui-option strong{position:relative;transition:all .15s;display:block;border:2px solid #CBCBCB;border-radius:2px;width:50px;height:39px;background-color:#f1f1f1;-webkit-box-shadow:0 0 5px rgba(0,0,0,.1);-moz-box-shadow:0 0 5px rgba(0,0,0,.1);box-shadow:0 0 5px rgba(0,0,0,.1);background-image:-webkit-linear-gradient(top,#fff,#f6f6f6);background-image:-moz-linear-gradient(top,#fff,#f6f6f6);background-image:-o-linear-gradient(top,#fff,#f6f6f6);background-image:-ms-linear-gradient(top,#fff,#f6f6f6);background-image:linear-gradient(to bottom,#fff,#f6f6f6)}.epsilon-ui-option input:focus+span{outline:#ccc dashed 1px;outline-offset:-4px}.epsilon-ui-option input:checked+span,.epsilon-ui-option input:checked:focus+span{background:#E8F1F3}.epsilon-ui-option input+span:hover,.epsilon-ui-option input:checked:focus+span:hover{background:#dbe9ec}.epsilon-ui-option input:checked+span>strong:before{opacity:1}.epsilon-ui-option input:disabled+span{background:#FCFCFC;opacity:.5}.epsilon-ui-option input:disabled:checked+span{background:#F5F5F5;border-color:#C4C4C4;opacity:1}.epsilon-ui-option input:disabled+span .kiwi-ic-centered em,.epsilon-ui-option input:disabled+span .kiwi-ic-centered em+em:after,.epsilon-ui-option input:disabled+span .kiwi-ic-centered em+em:before,.epsilon-ui-option input:disabled+span .kiwi-ic-centered em:after,.epsilon-ui-option input:disabled+span .kiwi-ic-centered em:before,.epsilon-ui-option input:disabled+span .kiwi-ic-posboth em,.epsilon-ui-option input:disabled+span .kiwi-ic-posboth em+em:after,.epsilon-ui-option input:disabled+span .kiwi-ic-posboth em+em:before,.epsilon-ui-option input:disabled+span .kiwi-ic-posboth em:after,.epsilon-ui-option input:disabled+span .kiwi-ic-posboth em:before,.epsilon-ui-option input:disabled+span .kiwi-ic-posbottom em,.epsilon-ui-option input:disabled+span .kiwi-ic-posbottom em+em:after,.epsilon-ui-option input:disabled+span .kiwi-ic-posbottom em+em:before,.epsilon-ui-option input:disabled+span .kiwi-ic-posbottom em:after,.epsilon-ui-option input:disabled+span .kiwi-ic-posbottom em:before,.epsilon-ui-option input:disabled+span .kiwi-ic-postop em,.epsilon-ui-option input:disabled+span .kiwi-ic-postop em+em:after,.epsilon-ui-option input:disabled+span .kiwi-ic-postop em+em:before,.epsilon-ui-option input:disabled+span .kiwi-ic-postop em:after,.epsilon-ui-option input:disabled+span .kiwi-ic-postop em:before{background:#CECECE;opacity:1}.epsilon-ui-option input:disabled+span>i>strong:before{background:#CECECE}.epsilon-ui-option .kiwi-ic-bottom strong:before,.epsilon-ui-option .kiwi-ic-left strong:before,.epsilon-ui-option .kiwi-ic-right strong:before{background:#E14D43;opacity:.7;content:' '}.epsilon-ui-option .kiwi-ic-left strong:before{width:6px;height:17px;left:0;top:9px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-right strong:before{width:6px;height:17px;right:0;top:9px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-bottom strong:before{width:16px;height:6px;left:15px;bottom:0;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-leaf strong:before,.epsilon-ui-option .kiwi-ic-pill strong:before,.epsilon-ui-option .kiwi-ic-rect strong:before,.epsilon-ui-option .kiwi-ic-shift strong:before{background:#E14D43;width:30px;height:15px;left:8px;top:10px;content:' ';display:block;position:absolute;opacity:.7}.epsilon-ui-option .kiwi-ic-shift strong:before{-ms-transform:skewX(-20deg);-webkit-transform:skewX(-20deg);transform:skewX(-20deg)}.epsilon-ui-option .kiwi-ic-pill strong:before{border-radius:10px}.epsilon-ui-option .kiwi-ic-leaf strong:before{border-radius:6px 0}.epsilon-ui-option .kiwi-ic-centered strong:before{background:#CACACA;opacity:.7;content:' ';width:14px;height:2px;left:6px;top:7px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-centered strong>em{background:#CECECE;opacity:.7;width:38px;height:11px;left:6px;top:13px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-centered strong>em:after,.epsilon-ui-option .kiwi-ic-centered strong>em:before{width:10px;height:5px;top:14px;opacity:1;content:' ';display:block;position:absolute}.epsilon-ui-option .kiwi-ic-centered strong>em:before{background:#1F4091;left:0}.epsilon-ui-option .kiwi-ic-centered strong>em:after{background:#00BFF3;left:14px}.epsilon-ui-option .kiwi-ic-centered strong>em+em{background:0 0;opacity:1;content:' ';width:5px;height:15px;left:35px;top:13px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-centered strong>em+em:before{background:#E03D1C;opacity:1;content:' ';width:10px;height:5px;left:-1px;top:14px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-centered strong>em+em:after{content:none}.epsilon-ui-option .kiwi-ic-filled strong:before{background:#CACACA;opacity:.7;content:' ';width:14px;height:2px;left:6px;top:7px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-filled strong>em{background:#CECECE;opacity:.7;width:38px;height:11px;left:6px;top:13px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-filled strong>em:after,.epsilon-ui-option .kiwi-ic-filled strong>em:before{width:13px;height:5px;top:14px;opacity:1;content:' ';display:block;position:absolute}.epsilon-ui-option .kiwi-ic-filled strong>em:before{background:#1F4091;left:0}.epsilon-ui-option .kiwi-ic-filled strong>em:after{background:#00BFF3;left:13px}.epsilon-ui-option .kiwi-ic-filled strong>em+em{background:0 0;opacity:1;content:' ';width:5px;height:15px;left:35px;top:13px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-filled strong>em+em:before{background:#E03D1C;opacity:1;content:' ';width:12px;height:5px;left:-3px;top:14px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-filled strong>em+em:after{content:none}.epsilon-ui-option .kiwi-ic-posbottom strong:before{background:#CACACA;opacity:.7;content:' ';width:14px;height:2px;left:6px;top:7px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-posbottom strong>em{background:#CECECE;opacity:.7;width:27px;height:11px;left:6px;top:13px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-posbottom strong>em:after,.epsilon-ui-option .kiwi-ic-posbottom strong>em:before{width:6px;height:2px;display:block;position:absolute;content:' ';opacity:1;top:13px}.epsilon-ui-option .kiwi-ic-posbottom strong>em:before{background:#1F4091;left:0}.epsilon-ui-option .kiwi-ic-posbottom strong>em:after{background:#00BFF3;left:7px}.epsilon-ui-option .kiwi-ic-posbottom strong>em+em{background:#CECECE;opacity:1;content:' ';width:5px;height:15px;left:35px;top:13px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-posboth strong:before,.epsilon-ui-option .kiwi-ic-posbottom strong>em+em:after,.epsilon-ui-option .kiwi-ic-posbottom strong>em+em:before{content:' ';height:2px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-posbottom strong>em+em:before{background:#E03D1C;opacity:1;width:6px;left:-15px;top:13px}.epsilon-ui-option .kiwi-ic-posbottom strong>em+em:after{background:#81B636;opacity:1;width:6px;left:-8px;top:13px}.epsilon-ui-option .kiwi-ic-posboth strong:before{background:#CACACA;opacity:.7;width:14px;left:6px;top:7px}.epsilon-ui-option .kiwi-ic-posboth strong>em{background:#CECECE;opacity:.7;width:27px;height:7px;left:6px;top:17px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-posboth strong>em.top:after,.epsilon-ui-option .kiwi-ic-posboth strong>em.top:before{width:6px;height:2px;top:-4px;display:block;position:absolute;opacity:1;content:' '}.epsilon-ui-option .kiwi-ic-posboth strong>em.top:before{background:#1F4091;left:0}.epsilon-ui-option .kiwi-ic-posboth strong>em.top:after{background:#00BFF3;left:7px}.epsilon-ui-option .kiwi-ic-posboth strong>em.top+em.top{background:#CECECE;opacity:1;content:' ';width:5px;height:15px;left:35px;top:13px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-posboth strong>em.bottom:after,.epsilon-ui-option .kiwi-ic-posboth strong>em.bottom:before,.epsilon-ui-option .kiwi-ic-posboth strong>em.top+em.top:after,.epsilon-ui-option .kiwi-ic-posboth strong>em.top+em.top:before{width:6px;height:2px;opacity:1;content:' ';display:block;position:absolute}.epsilon-ui-option .kiwi-ic-posboth strong>em.top+em.top:before{background:#E03D1C;left:-15px;top:0}.epsilon-ui-option .kiwi-ic-posboth strong>em.top+em.top:after{background:#81B636;left:-8px;top:0}.epsilon-ui-option .kiwi-ic-posboth strong>em.bottom:before{background:#1F4091;left:0;top:9px}.epsilon-ui-option .kiwi-ic-posboth strong>em.bottom:after{background:#00BFF3;left:7px;top:9px}.epsilon-ui-option .kiwi-ic-posboth strong>em.bottom+em.bottom{background:#CECECE;opacity:1;content:' ';width:5px;height:15px;left:35px;top:13px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-posboth strong>em.bottom+em.bottom:before{background:#E03D1C;opacity:1;content:' ';width:6px;height:2px;left:-15px;top:13px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-posboth strong>em.bottom+em.bottom:after{background:#81B636;opacity:1;content:' ';width:6px;height:2px;left:-8px;top:13px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-postop strong:before{background:#CACACA;opacity:.7;content:' ';width:14px;height:2px;left:6px;top:7px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-postop strong>em{background:#CECECE;opacity:.7;width:27px;height:11px;left:6px;top:17px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-postop strong>em:after,.epsilon-ui-option .kiwi-ic-postop strong>em:before{width:6px;height:2px;top:-4px;opacity:1;content:' ';position:absolute;display:block}.epsilon-ui-option .kiwi-ic-postop strong>em:before{background:#1F4091;left:0}.epsilon-ui-option .kiwi-ic-postop strong>em:after{background:#00BFF3;left:7px}.epsilon-ui-option .kiwi-ic-postop strong>em+em{background:#CECECE;opacity:1;content:' ';width:5px;height:15px;left:35px;top:13px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-postop strong>em+em:before{background:#E03D1C;opacity:1;content:' ';width:6px;height:2px;left:-15px;top:0;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-postop strong>em+em:after{background:#81B636;opacity:1;content:' ';width:6px;height:2px;left:-8px;top:0;display:block;position:absolute}.epsilon-ui-toggle{background:0 0;width:52px;height:22px;position:relative;z-index:10}.epsilon-ui-toggle input{position:absolute;z-index:-1;opacity:0;left:0;top:0}.epsilon-ui-toggle input:focus~span{outline:#ccc dashed 1px;outline-offset:2px}.epsilon-ui-toggle span{display:block;width:52px;overflow:hidden;cursor:pointer;position:relative;height:22px;padding:0;line-height:19px;transition:background-color .2s ease-in;-webkit-border-radius:11px;-moz-border-radius:11px;border-radius:30px;background-color:#c4c4c4;-webkit-box-shadow:inset 0 2px 1px rgba(0,0,0,.11);-moz-box-shadow:inset 0 2px 1px rgba(0,0,0,.11);box-shadow:inset 0 2px 1px rgba(0,0,0,.11)}.epsilon-ui-toggle input+span:before{content:"";display:block;width:18px;height:18px;margin:0;position:absolute;top:2px;bottom:0;right:32px;background-color:#fff;-webkit-box-shadow:0 0 3px rgba(0,0,0,.1);-moz-box-shadow:0 0 3px rgba(0,0,0,.1);box-shadow:0 0 3px rgba(0,0,0,.1);-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px;transition:all .2s ease-in 0s}.epsilon-ui-toggle input+span:after{content:"OFF";display:block;color:#FFF;position:absolute;top:2px;bottom:2px;right:6px;font-size:11px;font-family:Arial}.sl-kiwi-tab-integration .themes,.ui-locked:after{display:inline-block}.epsilon-ui-toggle input:checked+span{background:#3CAF0E}.epsilon-ui-toggle input:checked+span:before{right:2px}.epsilon-ui-toggle input:checked+span:after{content:"ON";right:27px}.epsilon-ui-toggle input:focus+span,.epsilon-ui-toggle:hover input+span{background:#d4d4d4}.epsilon-ui-toggle input:focus:checked+span,.epsilon-ui-toggle:hover input:checked+span{background:#4fbf23}.ui-locked{position:relative}.ui-locked input[type=radio]:disabled{opacity:0}.ui-locked input:disabled~strong{background:0 0}.ui-locked:after{background:#F15B25;opacity:1;border:none;text-align:center;content:'\f023';font-family:FontAwesome;color:#fff;font-size:11px;position:absolute;bottom:2px;right:-25px;border-radius:50%;width:16px;height:16px;line-height:16px}.sl-kiwi-tab-integration .integration_box{height:330px;margin-top:15px;text-align:center;background:#FFF;position:relative;border:1px solid rgba(0,0,0,.1);float:left}.sl-kiwi-tab-integration .integration_box .recommended{background:#d25637;color:#FFF;text-transform:uppercase;height:28px;text-align:center;top:0;left:0;right:0;line-height:28px;font-size:10px;position:absolute;font-weight:700}.sl-kiwi-tab-integration .integration_box img{width:155px;height:155px;padding-top:50px;margin:0 auto 15px;display:block;border:none}.sl-kiwi-tab-integration .integration_box.theme img{width:100%;height:initial;padding:0;margin:0;display:block}.sl-kiwi-tab-integration .integration_box.theme .info{display:block;position:absolute;bottom:48px;left:0;right:0;height:35px;background:rgba(0,0,0,.5);line-height:35px}.sl-kiwi-tab-integration .integration_box.theme .info a{color:#fff;font-size:14px;font-family:'Open Sans'}.sl-kiwi-tab-integration .integration_box .action_bar{position:absolute;bottom:0;left:0;right:0;font-size:15px;font-weight:600;height:18px;margin:0;padding:15px 105px 15px 15px;-webkit-box-shadow:inset 0 1px 0 rgba(0,0,0,.1);box-shadow:inset 0 1px 0 rgba(0,0,0,.1);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;background:#fff;background:rgba(255,255,255,.65);text-align:left}.sl-kiwi-tab-integration .integration_box .action_bar.active{background:#23282d;color:#FFF}.sl-kiwi-tab-integration .integration_box .action_button{position:absolute;bottom:-1px;right:-1px;padding:9px 10px 10px;background:#f6f6f6;border:1px solid rgba(0,0,0,.1)}.sl-kiwi-tab-integration .integration_box .action_button.active{background:#2c2e2f;bottom:0;right:-1px;padding:9px 10px}.sl-kiwi-tab-integration.three-col .col{width:29.81%;margin-right:5%;margin-bottom:35px}.sl-kiwi-tab-integration.three-col .col:nth-child(3n+3){margin-right:0}.mce-ico.mce-i-dashicons.dashicons-twitter{font-family:dashicons}.mce-ico.mce-i-dashicons.dashicons-twitter:before{content:"\f301";color:#55ACEE}#update-nag,.update-nag{position:relative;z-index:10}#update-nag.kiwi-notice,.update-nag.kiwi-notice{width:95%}#update-nag.kiwi-notice p,.update-nag.kiwi-notice p{font-size:14px}.kiwi-title-has-tooltip h4{display:inline-block}.kiwi-tooltip-container{position:relative;display:inline-block}.kiwi-tooltip-container .dashicons{color:#0073aa}.kiwi-tooltip-container .tooltip-opener{cursor:pointer}.kiwi-tooltip-container .tooltip-opener:focus+.kiwi-notice-container,.kiwi-tooltip-container .tooltip-opener:hover+.kiwi-notice-container{display:block}.kiwi-tooltip-container .kiwi-notice-container{position:absolute;display:none;padding:10px;background:#0073aa;border-radius:3px;z-index:10;width:350px}.clear,.fixed:after{clear:both;display:block;visibility:hidden;height:0}.kiwi-tooltip-container .kiwi-notice-container p{color:#fff}.fixed:after{font-size:0;content:" "}.clear{overflow:hidden;width:0}
|
1 |
+
#sl-kiwi,.kiwi-modal .modal-title{font-family:'Open Sans'}.epsilon-ui-tabs a:focus,.epsilon-ui-tabs a:hover,.sl-kiwi-dragdrop li a:hover,.sl-kiwi-tab-integration .integration_box.theme .info a:focus,.sl-kiwi-tab-integration .integration_box.theme .info a:hover{text-decoration:none}#sl-kiwi{width:1150px;padding:20px;margin-bottom:10px;position:relative}#sl-kiwi a:focus{box-shadow:none;-webkit-box-shadow:none}#sl-kiwi .overlay{position:absolute;top:20px;bottom:102px;left:20px;right:20px;-webkit-transition:all .3s;transition:all .3s;z-index:9999;text-align:center;padding-top:250px}#sl-kiwi .overlay.active{-webkit-transition:all .4s;transition:all .4s;background:rgba(255,255,255,.97)}#sl-kiwi .overlay img{position:relative;top:-72px}.kiwi-notification-popup{width:100%;padding:25px 20px;box-sizing:border-box;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;background-color:#0073aa;color:#fff;display:none;position:relative;z-index:10}.kiwi-notification-popup .button{float:right;position:relative;bottom:5px}.kiwi-utility-bar{position:absolute;top:20px;right:-25px;display:none}.kiwi-utility-bar>input{position:fixed}.sl-kiwi-content{background:#fff;min-height:500px;margin-top:-10px;position:relative;z-index:5;-webkit-box-shadow:0 0 5px rgba(0,0,0,.06);-moz-box-shadow:0 0 5px rgba(0,0,0,.06);box-shadow:0 0 5px rgba(0,0,0,.06);padding:10px 30px}.sl-kiwi-content input[type=text],.sl-kiwi-content input[type=email],.sl-kiwi-content input[type=url]{width:330px;height:32px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;background-color:#fff;-webkit-box-shadow:1px 1px 2px rgba(35,31,32,.2);-moz-box-shadow:1px 1px 2px rgba(35,31,32,.2);box-shadow:1px 1px 2px rgba(35,31,32,.2);padding-left:10px;margin-top:5px;border:1px solid #f2f2f2}#sl-kiwi .epsilon-ui-color .wp-picker-container .wp-color-result,.sl-kiwi-dragdrop{-webkit-box-shadow:0 0 5px rgba(0,0,0,.15);-moz-box-shadow:0 0 5px rgba(0,0,0,.15)}.sl-kiwi-content>div{padding-bottom:50px;display:none}.sl-kiwi-content>div.epsilon-tab-active{display:block}.sl-kiwi-dragdrop .suggestions{font-size:32px;color:#EBEBEB;width:100%;height:40px;line-height:40px;text-align:center;font-weight:700;display:block;position:absolute;top:15px;opacity:.7;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.sl-kiwi-dragdrop{height:220px;border:1px solid #fff;margin:0;position:relative;-webkit-border-radius:3px 3px 0 0;-moz-border-radius:3px 3px 0 0;border-radius:3px 3px 0 0;background-color:#fff;box-shadow:0 0 5px rgba(0,0,0,.15);background-image:-webkit-linear-gradient(top,rgba(255,255,255,.7),rgba(246,246,246,.7));background-image:-moz-linear-gradient(top,rgba(255,255,255,.7),rgba(246,246,246,.7));background-image:-o-linear-gradient(top,rgba(255,255,255,.7),rgba(246,246,246,.7));background-image:-ms-linear-gradient(top,rgba(255,255,255,.7),rgba(246,246,246,.7));background-image:linear-gradient(to bottom,rgba(255,255,255,.7),rgba(246,246,246,.7))}.sl-kiwi-dragdrop>div{padding:85px 25px 0;text-align:center}.sl-kiwi-dragdrop ul{line-height:30px;vertical-align:top}.sl-kiwi-dragdrop ul[data-id=networks_ordering_floating_bar]{position:absolute;top:45px;right:0;z-index:-1;transition:all .3s;opacity:0}.sl-kiwi-dragdrop ul[data-id=networks_ordering_floating_bar] li{display:block;margin:0;padding:0}.sl-kiwi-dragdrop ul[data-id=networks_ordering_floating_bar] li a{display:block;height:40px;line-height:40px;padding:0 5px;min-width:40px;transition:all .3s;-webkit-box-shadow:none;box-shadow:none;font-size:16px;box-sizing:border-box;position:relative;z-index:1}.sl-kiwi-dragdrop ul[data-id=networks_ordering_floating_bar] li.sl-kiwi-dragdrop-placeholder:before{width:40px}.sl-kiwi-dragdrop ul[data-id=networks_ordering_floating_bar].pill li{margin-bottom:2px}.sl-kiwi-dragdrop ul[data-id=networks_ordering_floating_bar].pill li a{border-radius:25px}#sl-kiwi .sl-kiwi-item-add{margin-right:5px}#sl-kiwi .sl-kiwi-item-remove{max-width:0;margin-right:0;display:none}.sl-kiwi-dragdrop-placeholder:before{border:1px dashed #ccc;width:100%;position:absolute;top:0;left:0;bottom:0;right:0;height:100%;content:" ";display:block}.sl-kiwi-dragdrop-placeholder{position:relative;height:30px;padding:0 5px;min-width:90px;background:0 0;vertical-align:top}.sl-kiwi-dragdrop ul.pill a{border-radius:15px}.sl-kiwi-dragdrop ul.leaf a{border-radius:12px 0}.sl-kiwi-dragdrop ul.shift a{-ms-transform:skewX(-15deg);-webkit-transform:skewX(-15deg);transform:skewX(-15deg)}.sl-kiwi-dragdrop ul.shift span{-ms-transform:skewX(15deg);-webkit-transform:skewX(15deg);transform:skewX(15deg);display:block}.sl-kiwi-dragdrop ul.pill .sl-kiwi-dragdrop-placeholder:before{border-radius:15px}.sl-kiwi-dragdrop ul.leaf .sl-kiwi-dragdrop-placeholder:before{border-radius:12px 0}.sl-kiwi-dragdrop ul.shift .sl-kiwi-dragdrop-placeholder:before{-ms-transform:skewX(-15deg);-webkit-transform:skewX(-15deg);transform:skewX(-15deg)}.sl-kiwi-dragdrop li{list-style-type:none;transition:max-width .2s,margin .2s;overflow:hidden;margin-right:5px;display:inline-block;padding:0 5px}.sl-kiwi-dragdrop li.ui-sortable-helper a{transition:box-shadow .3s;-webkit-box-shadow:6px 10px 10px rgba(0,0,0,.1);-moz-box-shadow:6px 10px 10px rgba(0,0,0,.1);box-shadow:6px 10px 10px rgba(0,0,0,.1)}.sl-kiwi-dragdrop li a{display:block;height:30px;line-height:30px;padding:0 5px;min-width:90px;transition:all .3s}.sl-kiwi-networks{margin-bottom:40px;position:relative}.sl-kiwi-networks .epsilon-ui-locked{position:absolute;right:-15px;width:35px;height:35px;line-height:35px;top:12px;text-align:center}ul[data-style=fit]{display:table;width:100%}ul[data-style=fit] li{display:table-cell;padding:0;overflow:initial}ul[data-style=fit].leaf a,ul[data-style=fit].leaf li:last-of-type a{width:100%}ul[data-style=fit].pill{flex-wrap:nowrap;display:flex;margin-left:20px;width:auto}ul[data-style=fit].pill .sl-kiwi-item-add{margin:0;flex:1}ul[data-style=fit].pill .sl-kiwi-item-add a{padding:0 0 0 26px;display:block;width:100%;margin-left:-26px}ul[data-style=fit].pill .sl-kiwi-item-add span{margin-right:26px}.sl-kiwi-tab-registration label,.sl-kiwi-tab-socialIdentity label{display:block;color:grey;margin-bottom:5px}.sl-kiwi-tab-registration input[type=text],.sl-kiwi-tab-socialIdentity input[type=text]{padding:5px;margin-bottom:15px}.sl-kiwi-tab-registration .kiwi-registration-action,.sl-kiwi-tab-socialIdentity .kiwi-registration-action{height:30px}[class*=sl-kiwi-tab-] h2{font-size:22px;color:#585858;font-weight:300;height:50px}.sl-kiwi-networks h2>span{width:65%;display:block;float:left;background:0 0}.sl-kiwi-networks h2 span+span{width:17.5%;display:block;float:left;background:0 0;text-align:center;font-size:14px;color:#959696}.sl-kiwi-networks em{font-style:normal;position:absolute;top:3px;left:42px}.sl-kiwi-networks ul{border-top:1px solid #F5F5F5;padding:0;margin:0 10px}.sl-kiwi-networks li{height:39px;border-bottom:1px solid #F5F5F5;list-style-type:none;line-height:35px;padding-left:20px;position:relative;margin-bottom:0;display:inline-block;width:98%}.sl-kiwi-networks li:hover{background:#FBFBFB}.sl-kiwi-networks li>span{width:65%;display:block;float:left;background:0 0;color:#555;font-size:13px}.sl-kiwi-networks li span+span{width:17.5%;background:0 0;text-align:center}.sl-kiwi-networks span>strong{height:24px;width:24px;display:inline-block;vertical-align:middle;line-height:24px;text-align:center;border-radius:2px;margin-right:5px;background:#D4D4D4}.sl-kiwi-networks span>strong i{font-size:16px;line-height:24px}.sl-kiwi-networks.kiwi-styles h2 span+span{width:16%}.sl-kiwi-networks.kiwi-styles h2 span:nth-last-of-type(-n+2)+span:nth-last-of-type(-n+2),.sl-kiwi-networks.kiwi-styles h2 span:nth-last-of-type(-n+3)+span:nth-last-of-type(-n+3){width:8%}.sl-kiwi-networks.kiwi-styles h2 strong.goleft{position:relative;right:5px}.sl-kiwi-networks.kiwi-styles h2>span{width:20%;text-align:left}.sl-kiwi-networks.kiwi-styles li span+span{width:16%;text-align:left}.sl-kiwi-networks.kiwi-styles li span:nth-last-of-type(-n+2)+span:nth-last-of-type(-n+2),.sl-kiwi-networks.kiwi-styles li span:nth-last-of-type(-n+3)+span:nth-last-of-type(-n+3){width:8%}.sl-kiwi-networks.kiwi-styles li>span{width:20%}#sl-kiwi .kiwi-nw-twitter{background:#4EAEF8;color:#fff}#sl-kiwi .kiwi-nw-whatsapp{background:#0DC143;color:#fff}#sl-kiwi .kiwi-nw-telegram{background:#179CDE;color:#fff}#sl-kiwi .kiwi-nw-skype{background:#009EE5;color:#fff}#sl-kiwi .kiwi-nw-youtube,#sl-kiwi .kiwi-nw-youtube-play{background:#E62117;color:#fff}#sl-kiwi .kiwi-nw-facebook{background:#3B5998;color:#fff}#sl-kiwi .kiwi-nw-google-plus{background:#DB4437;color:#fff}#sl-kiwi .kiwi-nw-pinterest{background:#BD081C;color:#fff}#sl-kiwi .kiwi-nw-linkedin{background:#1A85BC;color:#fff}#sl-kiwi .kiwi-nw-reddit{background:#FF4500;color:#fff}#sl-kiwi .kiwi-nw-email,#sl-kiwi .kiwi-nw-envelope{background:#4D9159;color:#fff}.sl-kiwi-opt-group{min-height:100px;background:0 0;padding:30px 0;border-bottom:1px solid #F5F5F5}.sl-kiwi-opt-group:last-of-type{border-bottom:none}.sl-kiwi-opt-group .bottom-color-option{clear:both}.sl-kiwi-inner-opt{padding-left:70px}.sl-kiwi-opt-group .left{float:left}.sl-kiwi-opt-group .right{float:right}.sl-kiwi-opt-toggle{background:0 0;width:70px;float:left;padding-top:10px}.sl-kiwi-opt-description{float:left;background:0 0;min-height:60px;position:relative}.sl-kiwi-opt-description h4{font-size:18px;margin:0;line-height:18px}.sl-kiwi-opt-description h5{font-size:16px;margin:0;line-height:18px}.sl-kiwi-opt-description p{font-size:14px;margin:0}.epsilon-ui-locked{display:inline-block;border-radius:10px;width:20px;height:20px;cursor:pointer;vertical-align:middle}.epsilon-ui-locked i{font-size:12px;color:#fff;text-shadow:0 0 4px rgba(0,0,0,.2);line-height:16px;background:#F05A25;cursor:pointer}.dashicons-before::before,.epsilon-ui-locked i.dashicons{width:17px;height:17px;border-radius:10px;text-align:center;vertical-align:top}.sl-kiwi-opt-space-sm{padding-top:15px}.clearfix:after{clear:both;content:".";display:block;height:0;line-height:0;visibility:hidden}.kiwi-modal,.kiwi-modal #page-two{display:none}.kiwi-modal{position:fixed;top:0;right:0;left:0;bottom:0;z-index:1050;overflow:hidden;-webkit-overflow-scrolling:touch;outline:0;background:rgba(0,0,0,.7)}.kiwi-modal .close-modal{width:25px;height:25px;color:#FF3424;position:absolute;text-align:center;line-height:25px;font-size:17px;right:7px;top:7px;cursor:pointer}.kiwi-modal .kiwi-modal-content{position:relative;width:900px;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px;background-image:-webkit-linear-gradient(bottom,#fff 25%,#f2f3f4 90%);background-image:-moz-linear-gradient(bottom,#fff 25%,#f2f3f4 90%);background-image:-o-linear-gradient(bottom,#fff 25%,#f2f3f4 90%);background-image:-ms-linear-gradient(bottom,#fff 25%,#f2f3f4 90%);background-image:linear-gradient(to top,#fff 25%,#f2f3f4 90%);-webkit-box-shadow:0 0 15px rgba(0,0,0,.15);-moz-box-shadow:0 0 15px rgba(0,0,0,.15);box-shadow:0 0 15px rgba(0,0,0,.15);margin:8% auto}.kiwi-modal.fade{opacity:0;-webkit-transition:opacity .15s linear;-o-transition:opacity .15s linear;transition:opacity .15s linear}.kiwi-modal.fade .kiwi-modal-content{-webkit-transition:-webkit-transform .3s ease-out;-o-transition:-o-transform .3s ease-out;transition:transform .3s ease-out;-webkit-transform:translate(0,-25%);-ms-transform:translate(0,-25%);-o-transform:translate(0,-25%);transform:translate(0,-25%)}.kiwi-modal.fade.in{opacity:1}.kiwi-modal.fade.in .kiwi-modal-content{-webkit-transform:translate(0,0);-ms-transform:translate(0,0);-o-transform:translate(0,0);transform:translate(0,0)}.kiwi-modal .button-modal{width:100%;height:45px;-webkit-border-radius:22px 23px 23px 22px/22px 22px 23px 23px;-moz-border-radius:22px 23px 23px 22px/22px 22px 23px 23px;border-radius:22px 23px 23px 22px/22px 22px 23px 23px;background-color:#ff3d2e;color:#fff;display:inline-block;line-height:45px;margin:30px auto;text-align:center}.kiwi-modal .button-modal:focus,.kiwi-modal .button-modal:hover{text-decoration:none;color:#fff;background-color:#ff3424}.kiwi-modal .modal-header{padding-top:40px;padding-bottom:40px;text-align:center;background-image:url(../img/back-wavy.png);background-size:cover;background-position:center;-webkit-border-top-left-radius:10px;-moz-border-top-left-radius:10px;border-top-left-radius:10px;-webkit-border-top-right-radius:10px;-moz-border-top-right-radius:10px;border-top-right-radius:10px}.kiwi-modal .modal-header .modal-header-content{width:475px;margin:0 auto}.kiwi-modal .modal-title{font-size:28px;font-weight:800;color:#333}.kiwi-modal .modal-subtitle{font-family:"Open Sans";font-size:14px;color:#8c8c8c}.kiwi-modal .price-box{margin-top:40px}.kiwi-modal .price-box .price{font-family:"Open Sans";font-weight:700;color:#333;font-size:60px;display:block}.kiwi-modal .price-box .price .currency{font-size:45px}.kiwi-modal .price-box .price small{font-size:15px}.kiwi-modal .price-box .button-modal{width:150px}.kiwi-modal .modal-footer{margin:60px auto 0;padding-bottom:60px;width:475px}.kiwi-modal .modal-footer a{color:#639fb1;font-family:'Open Sans';font-size:14px;display:inline-block;margin-bottom:15px}.kiwi-modal .modal-footer .muted{font-size:12px;font-family:'Open Sans';color:#8c8c8c}.kiwi-modal .modal-content.form .clearfix label,.kiwi-modal .modal-content.form .radio-label{color:grey;font-family:'Open Sans';display:block}.kiwi-modal .modal-content{width:310px;margin:0 auto}.kiwi-modal .modal-content.form .radio-label{margin-top:40px}.kiwi-modal .modal-content.form>.ui-radio-inline{margin-top:15px!important}.kiwi-modal .modal-content.form .clearfix{margin-top:30px}.kiwi-modal .modal-content.form .clearfix .half{width:50%;float:left;padding-right:15px;box-sizing:border-box}.kiwi-modal .modal-content.form .clearfix .half:last-of-type{padding-left:15px;padding-right:0}.kiwi-modal .modal-content.form .clearfix input{width:100%;height:32px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;border:none;background-color:#fff;-webkit-box-shadow:1px 1px 2px rgba(35,31,32,.2);-moz-box-shadow:1px 1px 2px rgba(35,31,32,.2);box-shadow:1px 1px 2px rgba(35,31,32,.2);padding-left:5px;margin-top:5px}.epsilon-ui-tabs{margin-top:-36px;overflow:hidden;position:relative;z-index:10}.epsilon-ui-tabs ul{height:36px;margin-left:30px}.epsilon-ui-tabs li{height:36px;margin-right:2px;float:left;background:#E8E8E8;list-style-type:none;line-height:36px;text-align:center}.epsilon-ui-tabs li.selected{background:#fff;-webkit-box-shadow:0 -2px 3px rgba(0,0,0,.02);-moz-box-shadow:0 -2px 3px rgba(0,0,0,.02);box-shadow:0 -2px 3px rgba(0,0,0,.02)}.epsilon-ui-tabs .selected a:hover{background:#fff}.epsilon-ui-tabs a{display:block;line-height:36px;color:#666;padding:0 10px;min-width:80px}.epsilon-ui-tabs i{vertical-align:middle;font-size:16px}.epsilon-ui-tabs a:hover{background:#D4D4D4}.epsilon-ui-tabs a:focus{outline:#ccc dashed 1px;outline-offset:-4px}.sl-kiwi-networks li span{line-height:30px}.sl-kiwi-networks li:hover .epsilon-ui-checkbox strong{border:1px solid #8AB7C5}.sl-kiwi-networks li:hover .epsilon-ui-checkbox input:checked~strong,.sl-kiwi-networks li:hover .epsilon-ui-checkbox input:focus~strong{border:1px solid #448092}.ui-inline strong{display:inline-block}#sl-kiwi label.epsilon-ui-checkbox{background:0 0;display:block;position:relative;cursor:pointer;margin:0 35px;max-width:none}.epsilon-ui-checkbox.ui-checkbox-inline strong{display:inline-block}#sl-kiwi .epsilon-ui-checkbox.ui-checkbox-inline{display:inline-block;margin-left:0}.epsilon-ui-checkbox input{position:absolute;z-index:-1;opacity:0;left:0;top:0}.epsilon-ui-checkbox input:focus~strong{border:1px solid #448092;outline:#ccc dashed 1px;outline-offset:2px}.epsilon-ui-checkbox input:checked~strong{background:#fff;border:1px solid #448092;-webkit-box-shadow:inset 0 0 0 4px rgba(99,159,177,.75);-moz-box-shadow:inset 0 0 0 4px rgba(99,159,177,.75);box-shadow:inset 0 0 0 4px rgba(99,159,177,.75)}.epsilon-ui-checkbox input:disabled~strong{background:#1ABC9C;opacity:.6;pointer-events:none}.epsilon-ui-checkbox strong{background:#fff;border:1px solid #DDD;display:block;margin:11px auto auto;height:16px;width:16px;transition:all .15s}#sl-kiwi label.epsilon-ui-radio{display:block;position:relative;cursor:pointer;background:0 0;margin:0 35px;max-width:none;font-weight:400;color:grey}#sl-kiwi .sl-kiwi-tab-styles label.epsilon-ui-radio{margin:0 60px 0 0}.epsilon-ui-radio.ui-radio-inline strong{display:inline-block;margin-right:5px;position:relative;top:3px}#sl-kiwi .epsilon-ui-radio.ui-radio-inline{display:inline-block;margin-left:0}.epsilon-ui-radio strong{border-radius:50%;display:block;margin:11px auto auto;height:16px;width:16px;background:#fff;border:1px solid #DDD;transition:all .15s}.epsilon-ui-radio input{position:absolute;z-index:-1;opacity:0;left:0;top:0}.epsilon-ui-radio input:focus~strong{border:1px solid #448092;outline:#ccc dashed 1px;outline-offset:2px}.epsilon-ui-radio input:checked~strong{background:#fff;border:1px solid #448092;-webkit-box-shadow:inset 0 0 0 4px rgba(99,159,177,.75);-moz-box-shadow:inset 0 0 0 4px rgba(99,159,177,.75);box-shadow:inset 0 0 0 4px rgba(99,159,177,.75)}.epsilon-ui-radio input:disabled~strong{background:#1ABC9C;opacity:.6;pointer-events:none}.epsilon-ui-checklist{position:relative;overflow:hidden;margin-top:25px;padding-top:10px;border-top:1px solid #ECECEC;background:#FCFCFC}.epsilon-ui-checklist:before{position:absolute;top:-2px;left:50px;right:50px;height:2px;content:" ";box-shadow:0 -60px 30px 35px rgba(0,0,0,.7);z-index:1}.epsilon-ui-checklist ul{margin:15px 0 0;list-style-type:none;padding:0 5px 25px 25px;position:relative;overflow:hidden}.epsilon-ui-checklist li{margin-bottom:1px;height:35px}.epsilon-ui-checklist li>span{float:left;width:80%;padding:10px 0 0;color:grey}#sl-kiwi .epsilon-ui-checklist li .epsilon-ui-checkbox{float:right;width:20%;margin:0}.epsilon-ui-overlay{background:#fff;position:absolute;padding:10px;opacity:0}.epsilon-ui-overlay.active{top:-5px;left:-5px;bottom:-5px;right:-5px;opacity:.6}.epsilon-ui-overlay.active.networks{right:185px;left:200px;top:35px}#sl-kiwi .epsilon-ui-color{line-height:14px;background:0 0;display:inline-block;color:#D1D1D1;position:relative}#sl-kiwi .epsilon-ui-color .wp-picker-container{position:relative}#sl-kiwi .epsilon-ui-color .wp-picker-container .wp-picker-holder{position:absolute;z-index:9999}#sl-kiwi .epsilon-ui-color .wp-picker-container .wp-color-picker{width:69px;height:23px;z-index:10;position:absolute;top:-1px;border:none;color:#D1D1D1}#sl-kiwi .epsilon-ui-color .wp-picker-container .wp-picker-clear{position:relative;left:66px;top:6px}#sl-kiwi .epsilon-ui-color .wp-picker-container .wp-color-result{background:0 0;border:none;-webkit-border-radius:0;border-radius:0;box-shadow:0 0 5px rgba(0,0,0,.15);padding-left:30px}#sl-kiwi .epsilon-ui-color .wp-picker-container .wp-color-result .wp-color-result-text{display:none}#sl-kiwi .epsilon-ui-color .wp-picker-container .wp-color-result:after{background:0 0;-webkit-border-radius:0;border-radius:0;content:''}#sl-kiwi .bottom-color-option .floating-bar-background{width:350px;position:relative}#sl-kiwi .bottom-color-option .floating-bar-background em{position:absolute;left:44px;top:3px;font-style:normal;font-size:13px}#sl-kiwi .bottom-color-option .wp-picker-container{width:350px}#sl-kiwi .bottom-color-option .wp-picker-container .wp-color-result{border:none}#sl-kiwi .bottom-color-option .wp-picker-container .wp-color-result:after{-webkit-border-radius:0;border-radius:0;content:''}#sl-kiwi .bottom-color-option .wp-picker-container .wp-color-result:focus,#sl-kiwi .bottom-color-option .wp-picker-container .wp-color-result:hover{background:0 0;border-color:transparent;color:initial}#sl-kiwi .bottom-color-option .wp-picker-container .wp-color-picker{z-index:10;height:27px;top:-3px}#sl-kiwi .bottom-color-option .wp-picker-container .wp-picker-default{z-index:999;left:100px;position:absolute}#sl-kiwi .epsilon-ui-color strong{width:30px;height:20px;border-radius:0;-webkit-box-shadow:0 0 5px rgba(0,0,0,.15);-moz-box-shadow:0 0 5px rgba(0,0,0,.15);box-shadow:0 0 5px rgba(0,0,0,.15)}.epsilon-ui-option{position:relative}.epsilon-ui-option input{position:absolute;z-index:-1;opacity:0;left:0;top:0}.epsilon-ui-option label{width:100%;cursor:pointer;margin:0}.epsilon-ui-option ul{list-style-type:none;height:90px;padding:0;margin:0}.epsilon-ui-option li{width:80px;height:90px;float:left;background:#F7FAFB;text-align:center;margin-right:1px}.epsilon-ui-option input+span{background:#F7FAFB;display:block;padding:14px 15px 0;height:90px}.epsilon-ui-option span span{text-transform:uppercase;font-size:10px;display:block;background:0 0;height:24px;color:#969A9C;border-top:1px solid #fff;line-height:24px;font-weight:400;margin:15px -15px 0}.epsilon-ui-option strong{position:relative;transition:all .15s;display:block;border:2px solid #CBCBCB;border-radius:2px;width:50px;height:39px;background-color:#f1f1f1;-webkit-box-shadow:0 0 5px rgba(0,0,0,.1);-moz-box-shadow:0 0 5px rgba(0,0,0,.1);box-shadow:0 0 5px rgba(0,0,0,.1);background-image:-webkit-linear-gradient(top,#fff,#f6f6f6);background-image:-moz-linear-gradient(top,#fff,#f6f6f6);background-image:-o-linear-gradient(top,#fff,#f6f6f6);background-image:-ms-linear-gradient(top,#fff,#f6f6f6);background-image:linear-gradient(to bottom,#fff,#f6f6f6)}.epsilon-ui-option input:focus+span{outline:#ccc dashed 1px;outline-offset:-4px}.epsilon-ui-option input:checked+span,.epsilon-ui-option input:checked:focus+span{background:#E8F1F3}.epsilon-ui-option input+span:hover,.epsilon-ui-option input:checked:focus+span:hover{background:#dbe9ec}.epsilon-ui-option input:checked+span>strong:before{opacity:1}.epsilon-ui-option input:disabled+span{background:#FCFCFC;opacity:.5}.epsilon-ui-option input:disabled:checked+span{background:#F5F5F5;border-color:#C4C4C4;opacity:1}.epsilon-ui-option input:disabled+span .kiwi-ic-centered em,.epsilon-ui-option input:disabled+span .kiwi-ic-centered em+em:after,.epsilon-ui-option input:disabled+span .kiwi-ic-centered em+em:before,.epsilon-ui-option input:disabled+span .kiwi-ic-centered em:after,.epsilon-ui-option input:disabled+span .kiwi-ic-centered em:before,.epsilon-ui-option input:disabled+span .kiwi-ic-posboth em,.epsilon-ui-option input:disabled+span .kiwi-ic-posboth em+em:after,.epsilon-ui-option input:disabled+span .kiwi-ic-posboth em+em:before,.epsilon-ui-option input:disabled+span .kiwi-ic-posboth em:after,.epsilon-ui-option input:disabled+span .kiwi-ic-posboth em:before,.epsilon-ui-option input:disabled+span .kiwi-ic-posbottom em,.epsilon-ui-option input:disabled+span .kiwi-ic-posbottom em+em:after,.epsilon-ui-option input:disabled+span .kiwi-ic-posbottom em+em:before,.epsilon-ui-option input:disabled+span .kiwi-ic-posbottom em:after,.epsilon-ui-option input:disabled+span .kiwi-ic-posbottom em:before,.epsilon-ui-option input:disabled+span .kiwi-ic-postop em,.epsilon-ui-option input:disabled+span .kiwi-ic-postop em+em:after,.epsilon-ui-option input:disabled+span .kiwi-ic-postop em+em:before,.epsilon-ui-option input:disabled+span .kiwi-ic-postop em:after,.epsilon-ui-option input:disabled+span .kiwi-ic-postop em:before{background:#CECECE;opacity:1}.epsilon-ui-option input:disabled+span>i>strong:before{background:#CECECE}.epsilon-ui-option .kiwi-ic-bottom strong:before,.epsilon-ui-option .kiwi-ic-left strong:before,.epsilon-ui-option .kiwi-ic-right strong:before{background:#E14D43;opacity:.7;content:' '}.epsilon-ui-option .kiwi-ic-left strong:before{width:6px;height:17px;left:0;top:9px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-right strong:before{width:6px;height:17px;right:0;top:9px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-bottom strong:before{width:16px;height:6px;left:15px;bottom:0;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-leaf strong:before,.epsilon-ui-option .kiwi-ic-pill strong:before,.epsilon-ui-option .kiwi-ic-rect strong:before,.epsilon-ui-option .kiwi-ic-shift strong:before{background:#E14D43;width:30px;height:15px;left:8px;top:10px;content:' ';display:block;position:absolute;opacity:.7}.epsilon-ui-option .kiwi-ic-shift strong:before{-ms-transform:skewX(-20deg);-webkit-transform:skewX(-20deg);transform:skewX(-20deg)}.epsilon-ui-option .kiwi-ic-pill strong:before{border-radius:10px}.epsilon-ui-option .kiwi-ic-leaf strong:before{border-radius:6px 0}.epsilon-ui-option .kiwi-ic-centered strong:before{background:#CACACA;opacity:.7;content:' ';width:14px;height:2px;left:6px;top:7px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-centered strong>em{background:#CECECE;opacity:.7;width:38px;height:11px;left:6px;top:13px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-centered strong>em:after,.epsilon-ui-option .kiwi-ic-centered strong>em:before{width:10px;height:5px;top:14px;opacity:1;content:' ';display:block;position:absolute}.epsilon-ui-option .kiwi-ic-centered strong>em:before{background:#1F4091;left:0}.epsilon-ui-option .kiwi-ic-centered strong>em:after{background:#00BFF3;left:14px}.epsilon-ui-option .kiwi-ic-centered strong>em+em{background:0 0;opacity:1;content:' ';width:5px;height:15px;left:35px;top:13px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-centered strong>em+em:before{background:#E03D1C;opacity:1;content:' ';width:10px;height:5px;left:-1px;top:14px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-centered strong>em+em:after{content:none}.epsilon-ui-option .kiwi-ic-filled strong:before{background:#CACACA;opacity:.7;content:' ';width:14px;height:2px;left:6px;top:7px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-filled strong>em{background:#CECECE;opacity:.7;width:38px;height:11px;left:6px;top:13px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-filled strong>em:after,.epsilon-ui-option .kiwi-ic-filled strong>em:before{width:13px;height:5px;top:14px;opacity:1;content:' ';display:block;position:absolute}.epsilon-ui-option .kiwi-ic-filled strong>em:before{background:#1F4091;left:0}.epsilon-ui-option .kiwi-ic-filled strong>em:after{background:#00BFF3;left:13px}.epsilon-ui-option .kiwi-ic-filled strong>em+em{background:0 0;opacity:1;content:' ';width:5px;height:15px;left:35px;top:13px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-filled strong>em+em:before{background:#E03D1C;opacity:1;content:' ';width:12px;height:5px;left:-3px;top:14px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-filled strong>em+em:after{content:none}.epsilon-ui-option .kiwi-ic-posbottom strong:before{background:#CACACA;opacity:.7;content:' ';width:14px;height:2px;left:6px;top:7px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-posbottom strong>em{background:#CECECE;opacity:.7;width:27px;height:11px;left:6px;top:13px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-posbottom strong>em:after,.epsilon-ui-option .kiwi-ic-posbottom strong>em:before{width:6px;height:2px;display:block;position:absolute;content:' ';opacity:1;top:13px}.epsilon-ui-option .kiwi-ic-posbottom strong>em:before{background:#1F4091;left:0}.epsilon-ui-option .kiwi-ic-posbottom strong>em:after{background:#00BFF3;left:7px}.epsilon-ui-option .kiwi-ic-posbottom strong>em+em{background:#CECECE;opacity:1;content:' ';width:5px;height:15px;left:35px;top:13px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-posboth strong:before,.epsilon-ui-option .kiwi-ic-posbottom strong>em+em:after,.epsilon-ui-option .kiwi-ic-posbottom strong>em+em:before{content:' ';height:2px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-posbottom strong>em+em:before{background:#E03D1C;opacity:1;width:6px;left:-15px;top:13px}.epsilon-ui-option .kiwi-ic-posbottom strong>em+em:after{background:#81B636;opacity:1;width:6px;left:-8px;top:13px}.epsilon-ui-option .kiwi-ic-posboth strong:before{background:#CACACA;opacity:.7;width:14px;left:6px;top:7px}.epsilon-ui-option .kiwi-ic-posboth strong>em{background:#CECECE;opacity:.7;width:27px;height:7px;left:6px;top:17px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-posboth strong>em.top:after,.epsilon-ui-option .kiwi-ic-posboth strong>em.top:before{width:6px;height:2px;top:-4px;display:block;position:absolute;opacity:1;content:' '}.epsilon-ui-option .kiwi-ic-posboth strong>em.top:before{background:#1F4091;left:0}.epsilon-ui-option .kiwi-ic-posboth strong>em.top:after{background:#00BFF3;left:7px}.epsilon-ui-option .kiwi-ic-posboth strong>em.top+em.top{background:#CECECE;opacity:1;content:' ';width:5px;height:15px;left:35px;top:13px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-posboth strong>em.bottom:after,.epsilon-ui-option .kiwi-ic-posboth strong>em.bottom:before,.epsilon-ui-option .kiwi-ic-posboth strong>em.top+em.top:after,.epsilon-ui-option .kiwi-ic-posboth strong>em.top+em.top:before{width:6px;height:2px;opacity:1;content:' ';display:block;position:absolute}.epsilon-ui-option .kiwi-ic-posboth strong>em.top+em.top:before{background:#E03D1C;left:-15px;top:0}.epsilon-ui-option .kiwi-ic-posboth strong>em.top+em.top:after{background:#81B636;left:-8px;top:0}.epsilon-ui-option .kiwi-ic-posboth strong>em.bottom:before{background:#1F4091;left:0;top:9px}.epsilon-ui-option .kiwi-ic-posboth strong>em.bottom:after{background:#00BFF3;left:7px;top:9px}.epsilon-ui-option .kiwi-ic-posboth strong>em.bottom+em.bottom{background:#CECECE;opacity:1;content:' ';width:5px;height:15px;left:35px;top:13px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-posboth strong>em.bottom+em.bottom:before{background:#E03D1C;opacity:1;content:' ';width:6px;height:2px;left:-15px;top:13px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-posboth strong>em.bottom+em.bottom:after{background:#81B636;opacity:1;content:' ';width:6px;height:2px;left:-8px;top:13px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-postop strong:before{background:#CACACA;opacity:.7;content:' ';width:14px;height:2px;left:6px;top:7px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-postop strong>em{background:#CECECE;opacity:.7;width:27px;height:11px;left:6px;top:17px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-postop strong>em:after,.epsilon-ui-option .kiwi-ic-postop strong>em:before{width:6px;height:2px;top:-4px;opacity:1;content:' ';position:absolute;display:block}.epsilon-ui-option .kiwi-ic-postop strong>em:before{background:#1F4091;left:0}.epsilon-ui-option .kiwi-ic-postop strong>em:after{background:#00BFF3;left:7px}.epsilon-ui-option .kiwi-ic-postop strong>em+em{background:#CECECE;opacity:1;content:' ';width:5px;height:15px;left:35px;top:13px;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-postop strong>em+em:before{background:#E03D1C;opacity:1;content:' ';width:6px;height:2px;left:-15px;top:0;display:block;position:absolute}.epsilon-ui-option .kiwi-ic-postop strong>em+em:after{background:#81B636;opacity:1;content:' ';width:6px;height:2px;left:-8px;top:0;display:block;position:absolute}.epsilon-ui-toggle{background:0 0;width:52px;height:22px;position:relative;z-index:10}.epsilon-ui-toggle input{position:absolute;z-index:-1;opacity:0;left:0;top:0}.epsilon-ui-toggle input:focus~span{outline:#ccc dashed 1px;outline-offset:2px}.epsilon-ui-toggle span{display:block;width:52px;overflow:hidden;cursor:pointer;position:relative;height:22px;padding:0;line-height:19px;transition:background-color .2s ease-in;-webkit-border-radius:11px;-moz-border-radius:11px;border-radius:30px;background-color:#c4c4c4;-webkit-box-shadow:inset 0 2px 1px rgba(0,0,0,.11);-moz-box-shadow:inset 0 2px 1px rgba(0,0,0,.11);box-shadow:inset 0 2px 1px rgba(0,0,0,.11)}.epsilon-ui-toggle input+span:before{content:"";display:block;width:18px;height:18px;margin:0;position:absolute;top:2px;bottom:0;right:32px;background-color:#fff;-webkit-box-shadow:0 0 3px rgba(0,0,0,.1);-moz-box-shadow:0 0 3px rgba(0,0,0,.1);box-shadow:0 0 3px rgba(0,0,0,.1);-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px;transition:all .2s ease-in 0s}.epsilon-ui-toggle input+span:after{content:"OFF";display:block;color:#FFF;position:absolute;top:2px;bottom:2px;right:6px;font-size:11px;font-family:Arial}.sl-kiwi-tab-integration .themes,.ui-locked:after{display:inline-block}.epsilon-ui-toggle input:checked+span{background:#3CAF0E}.epsilon-ui-toggle input:checked+span:before{right:2px}.epsilon-ui-toggle input:checked+span:after{content:"ON";right:27px}.epsilon-ui-toggle input:focus+span,.epsilon-ui-toggle:hover input+span{background:#d4d4d4}.epsilon-ui-toggle input:focus:checked+span,.epsilon-ui-toggle:hover input:checked+span{background:#4fbf23}.ui-locked{position:relative}.ui-locked input[type=radio]:disabled{opacity:0}.ui-locked input:disabled~strong{background:0 0}.ui-locked:after{background:#F15B25;opacity:1;border:none;text-align:center;content:'\f160';font-family:dashicons;color:#fff;font-size:11px;position:absolute;bottom:2px;right:-25px;border-radius:50%;width:16px;height:16px;line-height:16px}.sl-kiwi-tab-integration .integration_box{height:330px;margin-top:15px;text-align:center;background:#FFF;position:relative;border:1px solid rgba(0,0,0,.1);float:left}.sl-kiwi-tab-integration .integration_box .recommended{background:#d25637;color:#FFF;text-transform:uppercase;height:28px;text-align:center;top:0;left:0;right:0;line-height:28px;font-size:10px;position:absolute;font-weight:700}.sl-kiwi-tab-integration .integration_box img{width:155px;height:155px;padding-top:50px;margin:0 auto 15px;display:block;border:none}.sl-kiwi-tab-integration .integration_box.theme img{width:100%;height:initial;padding:0;margin:0;display:block}.sl-kiwi-tab-integration .integration_box.theme .info{display:block;position:absolute;bottom:48px;left:0;right:0;height:35px;background:rgba(0,0,0,.5);line-height:35px}.sl-kiwi-tab-integration .integration_box.theme .info a{color:#fff;font-size:14px;font-family:'Open Sans'}.sl-kiwi-tab-integration .integration_box .action_bar{position:absolute;bottom:0;left:0;right:0;font-size:15px;font-weight:600;height:18px;margin:0;padding:15px 105px 15px 15px;-webkit-box-shadow:inset 0 1px 0 rgba(0,0,0,.1);box-shadow:inset 0 1px 0 rgba(0,0,0,.1);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;background:#fff;background:rgba(255,255,255,.65);text-align:left}.sl-kiwi-tab-integration .integration_box .action_bar.active{background:#23282d;color:#FFF}.sl-kiwi-tab-integration .integration_box .action_button{position:absolute;bottom:-1px;right:-1px;padding:9px 10px 10px;background:#f6f6f6;border:1px solid rgba(0,0,0,.1)}.sl-kiwi-tab-integration .integration_box .action_button.active{background:#2c2e2f;bottom:0;right:-1px;padding:9px 10px}.sl-kiwi-tab-integration.three-col .col{width:29.81%;margin-right:5%;margin-bottom:35px}.sl-kiwi-tab-integration.three-col .col:nth-child(3n+3){margin-right:0}.mce-ico.mce-i-dashicons.dashicons-twitter{font-family:dashicons}.mce-ico.mce-i-dashicons.dashicons-twitter:before{content:"\f301";color:#55ACEE}#update-nag,.update-nag{position:relative;z-index:10}#update-nag.kiwi-notice,.update-nag.kiwi-notice{width:95%}#update-nag.kiwi-notice p,.update-nag.kiwi-notice p{font-size:14px}.kiwi-title-has-tooltip h4{display:inline-block}.kiwi-tooltip-container{position:relative;display:inline-block}.kiwi-tooltip-container .dashicons{color:#0073aa}.kiwi-tooltip-container .tooltip-opener{cursor:pointer}.kiwi-tooltip-container .tooltip-opener:focus+.kiwi-notice-container,.kiwi-tooltip-container .tooltip-opener:hover+.kiwi-notice-container{display:block}.kiwi-tooltip-container .kiwi-notice-container{position:absolute;display:none;padding:10px;background:#0073aa;border-radius:3px;z-index:10;width:350px}.clear,.fixed:after{clear:both;display:block;visibility:hidden;height:0}.kiwi-tooltip-container .kiwi-notice-container p{color:#fff}.fixed:after{font-size:0;content:" "}.clear{overflow:hidden;width:0}
|
assets/css/frontend.css
CHANGED
@@ -1,406 +1,411 @@
|
|
1 |
-
ul.kiwi-article-bar {
|
2 |
-
line-height: 30px;
|
3 |
-
padding: 0;
|
4 |
-
margin: 0;
|
5 |
-
vertical-align: top;
|
6 |
-
text-align: center;
|
7 |
-
}
|
8 |
-
ul.kiwi-article-bar li {
|
9 |
-
list-style-type: none;
|
10 |
-
transition: max-width .2s, margin .2s;
|
11 |
-
overflow: hidden;
|
12 |
-
margin: 0 5px 0 0;
|
13 |
-
display: inline-block;
|
14 |
-
padding: 0 5px;
|
15 |
-
}
|
16 |
-
ul.kiwi-article-bar li [class*="kiwi-nw-"] .fa {
|
17 |
-
line-height: 28px;
|
18 |
-
}
|
19 |
-
ul.kiwi-article-bar li:before {
|
20 |
-
content: '';
|
21 |
-
display: none !important;
|
22 |
-
}
|
23 |
-
ul.kiwi-article-bar li a {
|
24 |
-
display: block;
|
25 |
-
height: 30px;
|
26 |
-
line-height: 30px;
|
27 |
-
padding: 0 5px;
|
28 |
-
min-width: 90px;
|
29 |
-
transition: all .3s;
|
30 |
-
-webkit-box-shadow: none;
|
31 |
-
box-shadow: none;
|
32 |
-
font-size: 13px;
|
33 |
-
box-sizing: border-box;
|
34 |
-
}
|
35 |
-
ul.kiwi-article-bar li a:hover, ul.kiwi-article-bar li a:focus, ul.kiwi-article-bar li a:active {
|
36 |
-
text-decoration: none;
|
37 |
-
-webkit-box-shadow: none;
|
38 |
-
box-shadow: none;
|
39 |
-
}
|
40 |
-
ul.kiwi-article-bar.leaf a {
|
41 |
-
border-radius: 12px 0 12px 0;
|
42 |
-
}
|
43 |
-
ul.kiwi-article-bar.pill a {
|
44 |
-
border-radius: 15px;
|
45 |
-
}
|
46 |
-
ul.kiwi-article-bar.shift a {
|
47 |
-
-ms-transform: skewX(-15deg);
|
48 |
-
-webkit-transform: skewX(-15deg);
|
49 |
-
transform: skewX(-15deg);
|
50 |
-
}
|
51 |
-
ul.kiwi-article-bar.shift span {
|
52 |
-
-ms-transform: skewX(15deg);
|
53 |
-
-webkit-transform: skewX(15deg);
|
54 |
-
transform: skewX(15deg);
|
55 |
-
}
|
56 |
-
ul.kiwi-article-bar.kiwi-article-bar-fit {
|
57 |
-
display: table;
|
58 |
-
width: 100%;
|
59 |
-
table-layout: fixed;
|
60 |
-
}
|
61 |
-
ul.kiwi-article-bar.kiwi-article-bar-fit li {
|
62 |
-
display: table-cell;
|
63 |
-
padding: 0;
|
64 |
-
margin: 0;
|
65 |
-
overflow: visible;
|
66 |
-
}
|
67 |
-
ul.kiwi-article-bar.kiwi-article-bar-fit li a {
|
68 |
-
min-width: initial;
|
69 |
-
}
|
70 |
-
ul.kiwi-article-bar.kiwi-article-bar-fit.leaf a {
|
71 |
-
width: 120%;
|
72 |
-
}
|
73 |
-
ul.kiwi-article-bar.kiwi-article-bar-fit.leaf li:last-of-type a {
|
74 |
-
width: 100%;
|
75 |
-
}
|
76 |
-
ul.kiwi-article-bar.kiwi-article-bar-fit.pill {
|
77 |
-
border-radius: 15px;
|
78 |
-
overflow: hidden;
|
79 |
-
}
|
80 |
-
ul.kiwi-article-bar.kiwi-article-bar-fit.pill a {
|
81 |
-
width: 120%;
|
82 |
-
border-radius: 15px 0 0 15px;
|
83 |
-
}
|
84 |
-
ul.kiwi-article-bar.kiwi-article-bar-fit.pill li:last-child a {
|
85 |
-
width: 100%;
|
86 |
-
border-radius: 15px;
|
87 |
-
}
|
88 |
-
|
89 |
-
ul.kiwi-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
margin
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
}
|
143 |
-
ul.kiwi-floating-bar .kiwi-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
left:
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
right:
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
.kiwi-article-bar [class*="kiwi-nw-"]
|
266 |
-
-webkit-transition: all .2s;
|
267 |
-
transition: all .2s;
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
}
|
330 |
-
@media (min-width: 768px) {
|
331 |
-
.kiwi-article-bar .kiwi-nw-whatsapp
|
332 |
-
display:
|
333 |
-
}
|
334 |
-
}
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
.kiwi-
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
|
365 |
-
}
|
366 |
-
.kiwi-highlight-sharer .kiwi-nw-twitter
|
367 |
-
background: #
|
368 |
-
color: #
|
369 |
-
|
370 |
-
|
371 |
-
.kiwi-
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
|
380 |
-
|
381 |
-
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
-
|
387 |
-
|
388 |
-
}
|
389 |
-
.kiwi-click-to-tweet-content-area > a.kiwi-click-to-tweet-url .kiwi-click-to-tweet .kiwi-click-to-tweet-
|
390 |
-
|
391 |
-
|
392 |
-
|
393 |
-
}
|
394 |
-
.kiwi-click-to-tweet-content-area > a.kiwi-click-to-tweet-url .kiwi-click-to-tweet .kiwi-click-to-tweet-
|
395 |
-
|
396 |
-
|
397 |
-
|
398 |
-
|
399 |
-
|
400 |
-
|
401 |
-
|
402 |
-
|
403 |
-
|
404 |
-
|
405 |
-
|
406 |
-
}
|
|
|
|
|
|
|
|
|
|
1 |
+
ul.kiwi-article-bar {
|
2 |
+
line-height: 30px;
|
3 |
+
padding: 0;
|
4 |
+
margin: 0;
|
5 |
+
vertical-align: top;
|
6 |
+
text-align: center;
|
7 |
+
}
|
8 |
+
ul.kiwi-article-bar li {
|
9 |
+
list-style-type: none;
|
10 |
+
transition: max-width .2s, margin .2s;
|
11 |
+
overflow: hidden;
|
12 |
+
margin: 0 5px 0 0;
|
13 |
+
display: inline-block;
|
14 |
+
padding: 0 5px;
|
15 |
+
}
|
16 |
+
ul.kiwi-article-bar li [class*="kiwi-nw-"] .fa {
|
17 |
+
line-height: 28px;
|
18 |
+
}
|
19 |
+
ul.kiwi-article-bar li:before {
|
20 |
+
content: '';
|
21 |
+
display: none !important;
|
22 |
+
}
|
23 |
+
ul.kiwi-article-bar li a {
|
24 |
+
display: block;
|
25 |
+
height: 30px;
|
26 |
+
line-height: 30px;
|
27 |
+
padding: 0 5px;
|
28 |
+
min-width: 90px;
|
29 |
+
transition: all .3s;
|
30 |
+
-webkit-box-shadow: none;
|
31 |
+
box-shadow: none;
|
32 |
+
font-size: 13px;
|
33 |
+
box-sizing: border-box;
|
34 |
+
}
|
35 |
+
ul.kiwi-article-bar li a:hover, ul.kiwi-article-bar li a:focus, ul.kiwi-article-bar li a:active {
|
36 |
+
text-decoration: none;
|
37 |
+
-webkit-box-shadow: none;
|
38 |
+
box-shadow: none;
|
39 |
+
}
|
40 |
+
ul.kiwi-article-bar.leaf a {
|
41 |
+
border-radius: 12px 0 12px 0;
|
42 |
+
}
|
43 |
+
ul.kiwi-article-bar.pill a {
|
44 |
+
border-radius: 15px;
|
45 |
+
}
|
46 |
+
ul.kiwi-article-bar.shift a {
|
47 |
+
-ms-transform: skewX(-15deg);
|
48 |
+
-webkit-transform: skewX(-15deg);
|
49 |
+
transform: skewX(-15deg);
|
50 |
+
}
|
51 |
+
ul.kiwi-article-bar.shift span {
|
52 |
+
-ms-transform: skewX(15deg);
|
53 |
+
-webkit-transform: skewX(15deg);
|
54 |
+
transform: skewX(15deg);
|
55 |
+
}
|
56 |
+
ul.kiwi-article-bar.kiwi-article-bar-fit {
|
57 |
+
display: table;
|
58 |
+
width: 100%;
|
59 |
+
table-layout: fixed;
|
60 |
+
}
|
61 |
+
ul.kiwi-article-bar.kiwi-article-bar-fit li {
|
62 |
+
display: table-cell;
|
63 |
+
padding: 0;
|
64 |
+
margin: 0;
|
65 |
+
overflow: visible;
|
66 |
+
}
|
67 |
+
ul.kiwi-article-bar.kiwi-article-bar-fit li a {
|
68 |
+
min-width: initial;
|
69 |
+
}
|
70 |
+
ul.kiwi-article-bar.kiwi-article-bar-fit.leaf a {
|
71 |
+
width: 120%;
|
72 |
+
}
|
73 |
+
ul.kiwi-article-bar.kiwi-article-bar-fit.leaf li:last-of-type a {
|
74 |
+
width: 100%;
|
75 |
+
}
|
76 |
+
ul.kiwi-article-bar.kiwi-article-bar-fit.pill {
|
77 |
+
border-radius: 15px;
|
78 |
+
overflow: hidden;
|
79 |
+
}
|
80 |
+
ul.kiwi-article-bar.kiwi-article-bar-fit.pill a {
|
81 |
+
width: 120%;
|
82 |
+
border-radius: 15px 0 0 15px;
|
83 |
+
}
|
84 |
+
ul.kiwi-article-bar.kiwi-article-bar-fit.pill li:last-child a {
|
85 |
+
width: 100%;
|
86 |
+
border-radius: 15px;
|
87 |
+
}
|
88 |
+
@media (min-width: 768px) {
|
89 |
+
ul.kiwi-article-bar.kiwi-article-bar-fit.icons-visible-desktop .kiwi-visible-desktop {
|
90 |
+
display: block;
|
91 |
+
}
|
92 |
+
}
|
93 |
+
|
94 |
+
ul.kiwi-floating-bar {
|
95 |
+
position: fixed;
|
96 |
+
list-style-type: none;
|
97 |
+
margin-bottom: 0;
|
98 |
+
z-index: 9999;
|
99 |
+
padding: 0;
|
100 |
+
-webkit-transition: all .2s linear;
|
101 |
+
transition: all .2s linear;
|
102 |
+
}
|
103 |
+
ul.kiwi-floating-bar [class*="kiwi-nw-"] .fa {
|
104 |
+
line-height: 39px;
|
105 |
+
}
|
106 |
+
ul.kiwi-floating-bar li {
|
107 |
+
list-style-type: none;
|
108 |
+
padding: 0;
|
109 |
+
margin: 0;
|
110 |
+
text-align: center;
|
111 |
+
position: relative;
|
112 |
+
}
|
113 |
+
ul.kiwi-floating-bar li:last-of-type {
|
114 |
+
margin-bottom: 0;
|
115 |
+
}
|
116 |
+
ul.kiwi-floating-bar li:before {
|
117 |
+
content: '';
|
118 |
+
display: none !important;
|
119 |
+
}
|
120 |
+
ul.kiwi-floating-bar li .network-label {
|
121 |
+
position: absolute;
|
122 |
+
opacity: 0;
|
123 |
+
visibility: hidden;
|
124 |
+
z-index: 0;
|
125 |
+
font-size: 13px;
|
126 |
+
-webkit-transition: all 0.5s cubic-bezier(0.075, 0.82, 0.165, 1);
|
127 |
+
transition: all 0.5s cubic-bezier(0.075, 0.82, 0.165, 1);
|
128 |
+
}
|
129 |
+
ul.kiwi-floating-bar li a:first-of-type {
|
130 |
+
display: block;
|
131 |
+
height: 40px;
|
132 |
+
line-height: 40px;
|
133 |
+
padding: 0 5px;
|
134 |
+
min-width: 40px;
|
135 |
+
transition: all .3s;
|
136 |
+
-webkit-box-shadow: none;
|
137 |
+
box-shadow: none;
|
138 |
+
font-size: 16px;
|
139 |
+
box-sizing: border-box;
|
140 |
+
position: relative;
|
141 |
+
z-index: 1;
|
142 |
+
}
|
143 |
+
ul.kiwi-floating-bar li a:first-of-type:hover, ul.kiwi-floating-bar li a:first-of-type:focus, ul.kiwi-floating-bar li a:first-of-type:active {
|
144 |
+
text-decoration: none;
|
145 |
+
-webkit-box-shadow: none;
|
146 |
+
box-shadow: none;
|
147 |
+
}
|
148 |
+
ul.kiwi-floating-bar .kiwi-share-count {
|
149 |
+
display: none;
|
150 |
+
}
|
151 |
+
ul.kiwi-floating-bar.left {
|
152 |
+
left: -50px;
|
153 |
+
top: 50%;
|
154 |
+
-webkit-transform: translateY(-50%);
|
155 |
+
transform: translateY(-50%);
|
156 |
+
margin: 0;
|
157 |
+
border-top-right-radius: 6px;
|
158 |
+
border-bottom-right-radius: 6px;
|
159 |
+
}
|
160 |
+
ul.kiwi-floating-bar.left .network-label {
|
161 |
+
top: 0;
|
162 |
+
left: -56px;
|
163 |
+
height: 100%;
|
164 |
+
line-height: 40px;
|
165 |
+
width: 95px;
|
166 |
+
text-align: left;
|
167 |
+
padding: 0 10px;
|
168 |
+
}
|
169 |
+
ul.kiwi-floating-bar.left > li:hover > .network-label {
|
170 |
+
opacity: 1;
|
171 |
+
left: 40px;
|
172 |
+
visibility: visible;
|
173 |
+
-webkit-transition: all 0.5s cubic-bezier(0.075, 0.82, 0.165, 1);
|
174 |
+
transition: all 0.5s cubic-bezier(0.075, 0.82, 0.165, 1);
|
175 |
+
}
|
176 |
+
ul.kiwi-floating-bar.right {
|
177 |
+
right: -50px;
|
178 |
+
top: 50%;
|
179 |
+
-webkit-transform: translateY(-50%);
|
180 |
+
transform: translateY(-50%);
|
181 |
+
margin: 0;
|
182 |
+
border-top-left-radius: 6px;
|
183 |
+
border-bottom-left-radius: 6px;
|
184 |
+
}
|
185 |
+
ul.kiwi-floating-bar.right .network-label {
|
186 |
+
top: 0;
|
187 |
+
right: -56px;
|
188 |
+
height: 100%;
|
189 |
+
line-height: 40px;
|
190 |
+
width: 95px;
|
191 |
+
text-align: left;
|
192 |
+
padding: 0 10px;
|
193 |
+
}
|
194 |
+
ul.kiwi-floating-bar.right > li:hover > .network-label {
|
195 |
+
opacity: 1;
|
196 |
+
right: 40px;
|
197 |
+
visibility: visible;
|
198 |
+
-webkit-transition: all 0.5s cubic-bezier(0.075, 0.82, 0.165, 1);
|
199 |
+
transition: all 0.5s cubic-bezier(0.075, 0.82, 0.165, 1);
|
200 |
+
}
|
201 |
+
ul.kiwi-floating-bar.bottom {
|
202 |
+
bottom: -50px;
|
203 |
+
left: 50%;
|
204 |
+
-webkit-transform: translateX(-50%);
|
205 |
+
transform: translateX(-50%);
|
206 |
+
margin: 0;
|
207 |
+
line-height: 0;
|
208 |
+
border-top-right-radius: 6px;
|
209 |
+
border-top-left-radius: 6px;
|
210 |
+
}
|
211 |
+
ul.kiwi-floating-bar.bottom .network-label {
|
212 |
+
bottom: 0;
|
213 |
+
left: 0;
|
214 |
+
height: 100%;
|
215 |
+
line-height: 18px;
|
216 |
+
width: 95px;
|
217 |
+
text-align: center;
|
218 |
+
padding: 10px 5px;
|
219 |
+
visibility: hidden;
|
220 |
+
transform: rotate(90deg);
|
221 |
+
transform-origin: 40% 6%;
|
222 |
+
}
|
223 |
+
ul.kiwi-floating-bar.bottom > li:hover > .network-label {
|
224 |
+
opacity: 1;
|
225 |
+
visibility: visible;
|
226 |
+
bottom: 59px;
|
227 |
+
-webkit-transition: all 0.5s cubic-bezier(0.075, 0.82, 0.165, 1);
|
228 |
+
transition: all 0.5s cubic-bezier(0.075, 0.82, 0.165, 1);
|
229 |
+
}
|
230 |
+
ul.kiwi-floating-bar.bottom li {
|
231 |
+
display: inline-block;
|
232 |
+
margin: 0;
|
233 |
+
}
|
234 |
+
ul.kiwi-floating-bar.pill a:first-of-type {
|
235 |
+
border-radius: 50%;
|
236 |
+
}
|
237 |
+
ul.kiwi-floating-bar.pill.left > li .network-label {
|
238 |
+
border-top-right-radius: 25px;
|
239 |
+
border-bottom-right-radius: 25px;
|
240 |
+
padding-left: 25px;
|
241 |
+
width: 120px;
|
242 |
+
left: 5px;
|
243 |
+
}
|
244 |
+
ul.kiwi-floating-bar.pill.left > li:hover .network-label {
|
245 |
+
left: 20px;
|
246 |
+
}
|
247 |
+
ul.kiwi-floating-bar.pill.right > li .network-label {
|
248 |
+
border-top-left-radius: 25px;
|
249 |
+
border-bottom-left-radius: 25px;
|
250 |
+
padding-right: 25px;
|
251 |
+
width: 120px;
|
252 |
+
right: 5px;
|
253 |
+
}
|
254 |
+
ul.kiwi-floating-bar.pill.right > li:hover .network-label {
|
255 |
+
right: 20px;
|
256 |
+
}
|
257 |
+
ul.kiwi-floating-bar.pill.bottom > li .network-label {
|
258 |
+
border-bottom-left-radius: 25px;
|
259 |
+
border-top-left-radius: 25px;
|
260 |
+
}
|
261 |
+
ul.kiwi-floating-bar.pill.bottom > li:hover .network-label {
|
262 |
+
bottom: 42px;
|
263 |
+
}
|
264 |
+
|
265 |
+
.kiwi-article-bar [class*="kiwi-nw-"], .kiwi-floating-bar [class*="kiwi-nw-"] {
|
266 |
+
-webkit-transition: all .2s;
|
267 |
+
transition: all .2s;
|
268 |
+
color: #fff;
|
269 |
+
}
|
270 |
+
.kiwi-article-bar [class*="kiwi-nw-"]:hover, .kiwi-article-bar [class*="kiwi-nw-"]:focus, .kiwi-floating-bar [class*="kiwi-nw-"]:hover, .kiwi-floating-bar [class*="kiwi-nw-"]:focus {
|
271 |
+
-webkit-transition: all .2s;
|
272 |
+
transition: all .2s;
|
273 |
+
}
|
274 |
+
.kiwi-article-bar .kiwi-nw-facebook, .kiwi-floating-bar .kiwi-nw-facebook {
|
275 |
+
background: #3B5998;
|
276 |
+
}
|
277 |
+
.kiwi-article-bar .kiwi-nw-facebook:hover, .kiwi-article-bar .kiwi-nw-facebook:focus, .kiwi-floating-bar .kiwi-nw-facebook:hover, .kiwi-floating-bar .kiwi-nw-facebook:focus {
|
278 |
+
background: #1b4199;
|
279 |
+
color: #fff;
|
280 |
+
}
|
281 |
+
.kiwi-article-bar .kiwi-nw-twitter, .kiwi-floating-bar .kiwi-nw-twitter {
|
282 |
+
background: #4EAEF8;
|
283 |
+
}
|
284 |
+
.kiwi-article-bar .kiwi-nw-twitter:hover, .kiwi-article-bar .kiwi-nw-twitter:focus, .kiwi-floating-bar .kiwi-nw-twitter:hover, .kiwi-floating-bar .kiwi-nw-twitter:focus {
|
285 |
+
background: #1193f7;
|
286 |
+
color: #fff;
|
287 |
+
}
|
288 |
+
.kiwi-article-bar .kiwi-nw-google-plus, .kiwi-floating-bar .kiwi-nw-google-plus {
|
289 |
+
background: #DB4437;
|
290 |
+
}
|
291 |
+
.kiwi-article-bar .kiwi-nw-google-plus:hover, .kiwi-article-bar .kiwi-nw-google-plus:focus, .kiwi-floating-bar .kiwi-nw-google-plus:hover, .kiwi-floating-bar .kiwi-nw-google-plus:focus {
|
292 |
+
background: #db2615;
|
293 |
+
color: #fff;
|
294 |
+
}
|
295 |
+
.kiwi-article-bar .kiwi-nw-pinterest, .kiwi-floating-bar .kiwi-nw-pinterest {
|
296 |
+
background: #BD081C;
|
297 |
+
}
|
298 |
+
.kiwi-article-bar .kiwi-nw-pinterest:hover, .kiwi-article-bar .kiwi-nw-pinterest:focus, .kiwi-floating-bar .kiwi-nw-pinterest:hover, .kiwi-floating-bar .kiwi-nw-pinterest:focus {
|
299 |
+
background: #770107;
|
300 |
+
color: #fff;
|
301 |
+
}
|
302 |
+
.kiwi-article-bar .kiwi-nw-linkedin, .kiwi-floating-bar .kiwi-nw-linkedin {
|
303 |
+
background: #1A85BC;
|
304 |
+
}
|
305 |
+
.kiwi-article-bar .kiwi-nw-linkedin:hover, .kiwi-article-bar .kiwi-nw-linkedin:focus, .kiwi-floating-bar .kiwi-nw-linkedin:hover, .kiwi-floating-bar .kiwi-nw-linkedin:focus {
|
306 |
+
background: #006aa8;
|
307 |
+
color: #fff;
|
308 |
+
}
|
309 |
+
.kiwi-article-bar .kiwi-nw-reddit, .kiwi-floating-bar .kiwi-nw-reddit {
|
310 |
+
background: #FF4500;
|
311 |
+
}
|
312 |
+
.kiwi-article-bar .kiwi-nw-reddit:hover, .kiwi-article-bar .kiwi-nw-reddit:focus, .kiwi-floating-bar .kiwi-nw-reddit:hover, .kiwi-floating-bar .kiwi-nw-reddit:focus {
|
313 |
+
background: #e22500;
|
314 |
+
color: #fff;
|
315 |
+
}
|
316 |
+
.kiwi-article-bar .kiwi-nw-email, .kiwi-floating-bar .kiwi-nw-email {
|
317 |
+
background: #4D9159;
|
318 |
+
}
|
319 |
+
.kiwi-article-bar .kiwi-nw-email:hover, .kiwi-article-bar .kiwi-nw-email:focus, .kiwi-floating-bar .kiwi-nw-email:hover, .kiwi-floating-bar .kiwi-nw-email:focus {
|
320 |
+
background: #0e9126;
|
321 |
+
color: #fff;
|
322 |
+
}
|
323 |
+
.kiwi-article-bar .kiwi-nw-whatsapp, .kiwi-floating-bar .kiwi-nw-whatsapp {
|
324 |
+
background: #0DC143;
|
325 |
+
}
|
326 |
+
.kiwi-article-bar .kiwi-nw-whatsapp:hover, .kiwi-article-bar .kiwi-nw-whatsapp:focus, .kiwi-floating-bar .kiwi-nw-whatsapp:hover, .kiwi-floating-bar .kiwi-nw-whatsapp:focus {
|
327 |
+
background: #499b06;
|
328 |
+
color: #fff;
|
329 |
+
}
|
330 |
+
@media (min-width: 768px) {
|
331 |
+
.kiwi-article-bar .kiwi-nw-whatsapp, .kiwi-floating-bar .kiwi-nw-whatsapp {
|
332 |
+
display: none;
|
333 |
+
}
|
334 |
+
}
|
335 |
+
@media (min-width: 768px) {
|
336 |
+
.kiwi-article-bar .kiwi-nw-whatsapp.kiwi-visible-desktop, .kiwi-floating-bar .kiwi-nw-whatsapp.kiwi-visible-desktop {
|
337 |
+
display: inline-block;
|
338 |
+
}
|
339 |
+
}
|
340 |
+
.kiwi-article-bar .kiwi-nw-telegram, .kiwi-floating-bar .kiwi-nw-telegram {
|
341 |
+
background: #179CDE;
|
342 |
+
}
|
343 |
+
.kiwi-article-bar .kiwi-nw-telegram:hover, .kiwi-article-bar .kiwi-nw-telegram:focus, .kiwi-floating-bar .kiwi-nw-telegram:hover, .kiwi-floating-bar .kiwi-nw-telegram:focus {
|
344 |
+
background: #008cea;
|
345 |
+
color: #fff;
|
346 |
+
}
|
347 |
+
.kiwi-article-bar .kiwi-nw-skype, .kiwi-floating-bar .kiwi-nw-skype {
|
348 |
+
background: #009EE5;
|
349 |
+
}
|
350 |
+
.kiwi-article-bar .kiwi-nw-skype:hover, .kiwi-article-bar .kiwi-nw-skype:focus, .kiwi-floating-bar .kiwi-nw-skype:hover, .kiwi-floating-bar .kiwi-nw-skype:focus {
|
351 |
+
background: #008ae0;
|
352 |
+
color: #fff;
|
353 |
+
}
|
354 |
+
|
355 |
+
.kiwi-highlighter-excerpt-area, .kiwi-highlighter-content-area {
|
356 |
+
position: relative;
|
357 |
+
}
|
358 |
+
|
359 |
+
.kiwi-highlight-sharer {
|
360 |
+
-webkit-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.75);
|
361 |
+
-moz-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.75);
|
362 |
+
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.75);
|
363 |
+
display: none;
|
364 |
+
position: absolute;
|
365 |
+
}
|
366 |
+
.kiwi-highlight-sharer .kiwi-nw-twitter {
|
367 |
+
background: #4EAEF8;
|
368 |
+
color: #fff;
|
369 |
+
padding: 5px 15px;
|
370 |
+
}
|
371 |
+
.kiwi-highlight-sharer .kiwi-nw-twitter:hover, .kiwi-highlight-sharer .kiwi-nw-twitter:focus {
|
372 |
+
background: #fff;
|
373 |
+
color: #4EAEF8;
|
374 |
+
}
|
375 |
+
|
376 |
+
.kiwi-click-to-tweet-content-area {
|
377 |
+
border-radius: 6px;
|
378 |
+
border: 1px solid #DDDDDD;
|
379 |
+
padding: 15px;
|
380 |
+
position: relative;
|
381 |
+
}
|
382 |
+
.kiwi-click-to-tweet-content-area > a.kiwi-click-to-tweet-url {
|
383 |
+
text-decoration: none;
|
384 |
+
-webkit-box-shadow: none;
|
385 |
+
box-shadow: none;
|
386 |
+
font-size: 21px;
|
387 |
+
font-style: normal;
|
388 |
+
}
|
389 |
+
.kiwi-click-to-tweet-content-area > a.kiwi-click-to-tweet-url:hover, .kiwi-click-to-tweet-content-area > a.kiwi-click-to-tweet-url:focus {
|
390 |
+
text-decoration: none;
|
391 |
+
-webkit-box-shadow: none;
|
392 |
+
box-shadow: none;
|
393 |
+
}
|
394 |
+
.kiwi-click-to-tweet-content-area > a.kiwi-click-to-tweet-url .kiwi-click-to-tweet .kiwi-click-to-tweet-text {
|
395 |
+
position: relative;
|
396 |
+
margin-bottom: 25px;
|
397 |
+
display: inline-block;
|
398 |
+
}
|
399 |
+
.kiwi-click-to-tweet-content-area > a.kiwi-click-to-tweet-url .kiwi-click-to-tweet .kiwi-click-to-tweet-button {
|
400 |
+
text-transform: uppercase;
|
401 |
+
position: absolute;
|
402 |
+
font-size: 12px;
|
403 |
+
font-style: normal;
|
404 |
+
bottom: 15px;
|
405 |
+
right: 15px;
|
406 |
+
}
|
407 |
+
.kiwi-click-to-tweet-content-area > a.kiwi-click-to-tweet-url .kiwi-click-to-tweet .kiwi-click-to-tweet-button i {
|
408 |
+
margin-left: 5px;
|
409 |
+
color: #4EAEF8;
|
410 |
+
font-size: 15px;
|
411 |
+
}
|
assets/css/frontend.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
ul.kiwi-article-bar{line-height:30px;padding:0;margin:0;vertical-align:top;text-align:center}ul.kiwi-article-bar li{list-style-type:none;transition:max-width .2s,margin .2s;overflow:hidden;margin:0 5px 0 0;display:inline-block;padding:0 5px}ul.kiwi-article-bar li [class*=kiwi-nw-] .fa{line-height:28px}ul.kiwi-article-bar li:before{content:'';display:none!important}ul.kiwi-article-bar li a{display:block;height:30px;line-height:30px;padding:0 5px;min-width:90px;transition:all .3s;-webkit-box-shadow:none;box-shadow:none;font-size:13px;box-sizing:border-box}ul.kiwi-article-bar li a:active,ul.kiwi-article-bar li a:focus,ul.kiwi-article-bar li a:hover{text-decoration:none;-webkit-box-shadow:none;box-shadow:none}ul.kiwi-article-bar.leaf a{border-radius:12px 0}ul.kiwi-article-bar.pill a{border-radius:15px}ul.kiwi-article-bar.shift a{-ms-transform:skewX(-15deg);-webkit-transform:skewX(-15deg);transform:skewX(-15deg)}ul.kiwi-article-bar.shift span{-ms-transform:skewX(15deg);-webkit-transform:skewX(15deg);transform:skewX(15deg)}ul.kiwi-article-bar.kiwi-article-bar-fit{display:table;width:100%;table-layout:fixed}ul.kiwi-article-bar.kiwi-article-bar-fit li{display:table-cell;padding:0;margin:0;overflow:visible}ul.kiwi-article-bar.kiwi-article-bar-fit li a{min-width:initial}ul.kiwi-article-bar.kiwi-article-bar-fit.leaf a{width:120%}ul.kiwi-article-bar.kiwi-article-bar-fit.leaf li:last-of-type a{width:100%}ul.kiwi-article-bar.kiwi-article-bar-fit.pill{border-radius:15px;overflow:hidden}ul.kiwi-article-bar.kiwi-article-bar-fit.pill a{width:120%;border-radius:15px 0 0 15px}ul.kiwi-article-bar.kiwi-article-bar-fit.pill li:last-child a{width:100%;border-radius:15px}ul.kiwi-floating-bar{position:fixed;list-style-type:none;margin-bottom:0;z-index:9999;padding:0;-webkit-transition:all .2s linear;transition:all .2s linear}ul.kiwi-floating-bar [class*=kiwi-nw-] .fa{line-height:39px}ul.kiwi-floating-bar li{list-style-type:none;padding:0;margin:0;text-align:center;position:relative}ul.kiwi-floating-bar li:last-of-type{margin-bottom:0}ul.kiwi-floating-bar li:before{content:'';display:none!important}ul.kiwi-floating-bar li .network-label{position:absolute;opacity:0;visibility:hidden;z-index:0;font-size:13px;-webkit-transition:all .5s cubic-bezier(.075,.82,.165,1);transition:all .5s cubic-bezier(.075,.82,.165,1)}ul.kiwi-floating-bar li a:first-of-type{display:block;height:40px;line-height:40px;padding:0 5px;min-width:40px;transition:all .3s;-webkit-box-shadow:none;box-shadow:none;font-size:16px;box-sizing:border-box;position:relative;z-index:1}ul.kiwi-floating-bar li a:first-of-type:active,ul.kiwi-floating-bar li a:first-of-type:focus,ul.kiwi-floating-bar li a:first-of-type:hover{text-decoration:none;-webkit-box-shadow:none;box-shadow:none}ul.kiwi-floating-bar .kiwi-share-count{display:none}ul.kiwi-floating-bar.left{left:-50px;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);margin:0;border-top-right-radius:6px;border-bottom-right-radius:6px}ul.kiwi-floating-bar.left .network-label{top:0;left:-56px;height:100%;line-height:40px;width:95px;text-align:left;padding:0 10px}ul.kiwi-floating-bar.left>li:hover>.network-label{opacity:1;left:40px;visibility:visible;-webkit-transition:all .5s cubic-bezier(.075,.82,.165,1);transition:all .5s cubic-bezier(.075,.82,.165,1)}ul.kiwi-floating-bar.right{right:-50px;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);margin:0;border-top-left-radius:6px;border-bottom-left-radius:6px}ul.kiwi-floating-bar.right .network-label{top:0;right:-56px;height:100%;line-height:40px;width:95px;text-align:left;padding:0 10px}ul.kiwi-floating-bar.right>li:hover>.network-label{opacity:1;right:40px;visibility:visible;-webkit-transition:all .5s cubic-bezier(.075,.82,.165,1);transition:all .5s cubic-bezier(.075,.82,.165,1)}ul.kiwi-floating-bar.bottom{bottom:-50px;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);margin:0;line-height:0;border-top-right-radius:6px;border-top-left-radius:6px}ul.kiwi-floating-bar.bottom .network-label{bottom:0;left:0;height:100%;line-height:18px;width:95px;text-align:center;padding:10px 5px;visibility:hidden;transform:rotate(90deg);transform-origin:40% 6%}ul.kiwi-floating-bar.bottom>li:hover>.network-label{opacity:1;visibility:visible;bottom:59px;-webkit-transition:all .5s cubic-bezier(.075,.82,.165,1);transition:all .5s cubic-bezier(.075,.82,.165,1)}ul.kiwi-floating-bar.bottom li{display:inline-block;margin:0}ul.kiwi-floating-bar.pill a:first-of-type{border-radius:50%}ul.kiwi-floating-bar.pill.bottom>li .network-label,ul.kiwi-floating-bar.pill.right>li .network-label{border-bottom-left-radius:25px;border-top-left-radius:25px}ul.kiwi-floating-bar.pill.left>li .network-label{border-top-right-radius:25px;border-bottom-right-radius:25px;padding-left:25px;width:120px;left:5px}ul.kiwi-floating-bar.pill.left>li:hover .network-label{left:20px}ul.kiwi-floating-bar.pill.right>li .network-label{padding-right:25px;width:120px;right:5px}ul.kiwi-floating-bar.pill.right>li:hover .network-label{right:20px}ul.kiwi-floating-bar.pill.bottom>li:hover .network-label{bottom:42px}.kiwi-article-bar [class*=kiwi-nw-],.kiwi-floating-bar [class*=kiwi-nw-]{-webkit-transition:all .2s;transition:all .2s;color:#fff}.kiwi-article-bar [class*=kiwi-nw-]:focus,.kiwi-article-bar [class*=kiwi-nw-]:hover,.kiwi-floating-bar [class*=kiwi-nw-]:focus,.kiwi-floating-bar [class*=kiwi-nw-]:hover{-webkit-transition:all .2s;transition:all .2s}.kiwi-article-bar .kiwi-nw-facebook,.kiwi-floating-bar .kiwi-nw-facebook{background:#3B5998}.kiwi-article-bar .kiwi-nw-facebook:focus,.kiwi-article-bar .kiwi-nw-facebook:hover,.kiwi-floating-bar .kiwi-nw-facebook:focus,.kiwi-floating-bar .kiwi-nw-facebook:hover{background:#1b4199;color:#fff}.kiwi-article-bar .kiwi-nw-twitter,.kiwi-floating-bar .kiwi-nw-twitter{background:#4EAEF8}.kiwi-article-bar .kiwi-nw-twitter:focus,.kiwi-article-bar .kiwi-nw-twitter:hover,.kiwi-floating-bar .kiwi-nw-twitter:focus,.kiwi-floating-bar .kiwi-nw-twitter:hover{background:#1193f7;color:#fff}.kiwi-article-bar .kiwi-nw-google-plus,.kiwi-floating-bar .kiwi-nw-google-plus{background:#DB4437}.kiwi-article-bar .kiwi-nw-google-plus:focus,.kiwi-article-bar .kiwi-nw-google-plus:hover,.kiwi-floating-bar .kiwi-nw-google-plus:focus,.kiwi-floating-bar .kiwi-nw-google-plus:hover{background:#db2615;color:#fff}.kiwi-article-bar .kiwi-nw-pinterest,.kiwi-floating-bar .kiwi-nw-pinterest{background:#BD081C}.kiwi-article-bar .kiwi-nw-pinterest:focus,.kiwi-article-bar .kiwi-nw-pinterest:hover,.kiwi-floating-bar .kiwi-nw-pinterest:focus,.kiwi-floating-bar .kiwi-nw-pinterest:hover{background:#770107;color:#fff}.kiwi-article-bar .kiwi-nw-linkedin,.kiwi-floating-bar .kiwi-nw-linkedin{background:#1A85BC}.kiwi-article-bar .kiwi-nw-linkedin:focus,.kiwi-article-bar .kiwi-nw-linkedin:hover,.kiwi-floating-bar .kiwi-nw-linkedin:focus,.kiwi-floating-bar .kiwi-nw-linkedin:hover{background:#006aa8;color:#fff}.kiwi-article-bar .kiwi-nw-reddit,.kiwi-floating-bar .kiwi-nw-reddit{background:#FF4500}.kiwi-article-bar .kiwi-nw-reddit:focus,.kiwi-article-bar .kiwi-nw-reddit:hover,.kiwi-floating-bar .kiwi-nw-reddit:focus,.kiwi-floating-bar .kiwi-nw-reddit:hover{background:#e22500;color:#fff}.kiwi-article-bar .kiwi-nw-email,.kiwi-floating-bar .kiwi-nw-email{background:#4D9159}.kiwi-article-bar .kiwi-nw-email:focus,.kiwi-article-bar .kiwi-nw-email:hover,.kiwi-floating-bar .kiwi-nw-email:focus,.kiwi-floating-bar .kiwi-nw-email:hover{background:#0e9126;color:#fff}.kiwi-article-bar .kiwi-nw-whatsapp,.kiwi-floating-bar .kiwi-nw-whatsapp{background:#0DC143}.kiwi-article-bar .kiwi-nw-whatsapp:focus,.kiwi-article-bar .kiwi-nw-whatsapp:hover,.kiwi-floating-bar .kiwi-nw-whatsapp:focus,.kiwi-floating-bar .kiwi-nw-whatsapp:hover{background:#499b06;color:#fff}@media (min-width:768px){.kiwi-article-bar .kiwi-nw-whatsapp,.kiwi-floating-bar .kiwi-nw-whatsapp{display:none}.kiwi-article-bar .kiwi-nw-whatsapp.kiwi-visible-desktop,.kiwi-floating-bar .kiwi-nw-whatsapp.kiwi-visible-desktop{display:inline-block}}.kiwi-article-bar .kiwi-nw-telegram,.kiwi-floating-bar .kiwi-nw-telegram{background:#179CDE}.kiwi-article-bar .kiwi-nw-telegram:focus,.kiwi-article-bar .kiwi-nw-telegram:hover,.kiwi-floating-bar .kiwi-nw-telegram:focus,.kiwi-floating-bar .kiwi-nw-telegram:hover{background:#008cea;color:#fff}.kiwi-article-bar .kiwi-nw-skype,.kiwi-floating-bar .kiwi-nw-skype{background:#009EE5}.kiwi-article-bar .kiwi-nw-skype:focus,.kiwi-article-bar .kiwi-nw-skype:hover,.kiwi-floating-bar .kiwi-nw-skype:focus,.kiwi-floating-bar .kiwi-nw-skype:hover{background:#008ae0;color:#fff}.kiwi-highlighter-content-area,.kiwi-highlighter-excerpt-area{position:relative}.kiwi-highlight-sharer{-webkit-box-shadow:0 2px 5px 0 rgba(0,0,0,.75);-moz-box-shadow:0 2px 5px 0 rgba(0,0,0,.75);box-shadow:0 2px 5px 0 rgba(0,0,0,.75);display:none;position:absolute}.kiwi-highlight-sharer .kiwi-nw-twitter{background:#4EAEF8;color:#fff;padding:5px 15px}.kiwi-highlight-sharer .kiwi-nw-twitter:focus,.kiwi-highlight-sharer .kiwi-nw-twitter:hover{background:#fff;color:#4EAEF8}.kiwi-click-to-tweet-content-area{border-radius:6px;border:1px solid #DDD;padding:15px;position:relative}.kiwi-click-to-tweet-content-area>a.kiwi-click-to-tweet-url{text-decoration:none;-webkit-box-shadow:none;box-shadow:none;font-size:21px;font-style:normal}.kiwi-click-to-tweet-content-area>a.kiwi-click-to-tweet-url:focus,.kiwi-click-to-tweet-content-area>a.kiwi-click-to-tweet-url:hover{text-decoration:none;-webkit-box-shadow:none;box-shadow:none}.kiwi-click-to-tweet-content-area>a.kiwi-click-to-tweet-url .kiwi-click-to-tweet .kiwi-click-to-tweet-text{position:relative;margin-bottom:25px;display:inline-block}.kiwi-click-to-tweet-content-area>a.kiwi-click-to-tweet-url .kiwi-click-to-tweet .kiwi-click-to-tweet-button{text-transform:uppercase;position:absolute;font-size:12px;font-style:normal;bottom:15px;right:15px}.kiwi-click-to-tweet-content-area>a.kiwi-click-to-tweet-url .kiwi-click-to-tweet .kiwi-click-to-tweet-button i{margin-left:5px;color:#4EAEF8;font-size:15px}
|
1 |
+
ul.kiwi-article-bar{line-height:30px;padding:0;margin:0;vertical-align:top;text-align:center}ul.kiwi-article-bar li{list-style-type:none;transition:max-width .2s,margin .2s;overflow:hidden;margin:0 5px 0 0;display:inline-block;padding:0 5px}ul.kiwi-article-bar li [class*=kiwi-nw-] .fa{line-height:28px}ul.kiwi-article-bar li:before{content:'';display:none!important}ul.kiwi-article-bar li a{display:block;height:30px;line-height:30px;padding:0 5px;min-width:90px;transition:all .3s;-webkit-box-shadow:none;box-shadow:none;font-size:13px;box-sizing:border-box}ul.kiwi-article-bar li a:active,ul.kiwi-article-bar li a:focus,ul.kiwi-article-bar li a:hover{text-decoration:none;-webkit-box-shadow:none;box-shadow:none}ul.kiwi-article-bar.leaf a{border-radius:12px 0}ul.kiwi-article-bar.pill a{border-radius:15px}ul.kiwi-article-bar.shift a{-ms-transform:skewX(-15deg);-webkit-transform:skewX(-15deg);transform:skewX(-15deg)}ul.kiwi-article-bar.shift span{-ms-transform:skewX(15deg);-webkit-transform:skewX(15deg);transform:skewX(15deg)}ul.kiwi-article-bar.kiwi-article-bar-fit{display:table;width:100%;table-layout:fixed}ul.kiwi-article-bar.kiwi-article-bar-fit li{display:table-cell;padding:0;margin:0;overflow:visible}ul.kiwi-article-bar.kiwi-article-bar-fit li a{min-width:initial}ul.kiwi-article-bar.kiwi-article-bar-fit.leaf a{width:120%}ul.kiwi-article-bar.kiwi-article-bar-fit.leaf li:last-of-type a{width:100%}ul.kiwi-article-bar.kiwi-article-bar-fit.pill{border-radius:15px;overflow:hidden}ul.kiwi-article-bar.kiwi-article-bar-fit.pill a{width:120%;border-radius:15px 0 0 15px}ul.kiwi-article-bar.kiwi-article-bar-fit.pill li:last-child a{width:100%;border-radius:15px}@media (min-width:768px){ul.kiwi-article-bar.kiwi-article-bar-fit.icons-visible-desktop .kiwi-visible-desktop{display:block}}ul.kiwi-floating-bar{position:fixed;list-style-type:none;margin-bottom:0;z-index:9999;padding:0;-webkit-transition:all .2s linear;transition:all .2s linear}ul.kiwi-floating-bar [class*=kiwi-nw-] .fa{line-height:39px}ul.kiwi-floating-bar li{list-style-type:none;padding:0;margin:0;text-align:center;position:relative}ul.kiwi-floating-bar li:last-of-type{margin-bottom:0}ul.kiwi-floating-bar li:before{content:'';display:none!important}ul.kiwi-floating-bar li .network-label{position:absolute;opacity:0;visibility:hidden;z-index:0;font-size:13px;-webkit-transition:all .5s cubic-bezier(.075,.82,.165,1);transition:all .5s cubic-bezier(.075,.82,.165,1)}ul.kiwi-floating-bar li a:first-of-type{display:block;height:40px;line-height:40px;padding:0 5px;min-width:40px;transition:all .3s;-webkit-box-shadow:none;box-shadow:none;font-size:16px;box-sizing:border-box;position:relative;z-index:1}ul.kiwi-floating-bar li a:first-of-type:active,ul.kiwi-floating-bar li a:first-of-type:focus,ul.kiwi-floating-bar li a:first-of-type:hover{text-decoration:none;-webkit-box-shadow:none;box-shadow:none}ul.kiwi-floating-bar .kiwi-share-count{display:none}ul.kiwi-floating-bar.left{left:-50px;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);margin:0;border-top-right-radius:6px;border-bottom-right-radius:6px}ul.kiwi-floating-bar.left .network-label{top:0;left:-56px;height:100%;line-height:40px;width:95px;text-align:left;padding:0 10px}ul.kiwi-floating-bar.left>li:hover>.network-label{opacity:1;left:40px;visibility:visible;-webkit-transition:all .5s cubic-bezier(.075,.82,.165,1);transition:all .5s cubic-bezier(.075,.82,.165,1)}ul.kiwi-floating-bar.right{right:-50px;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);margin:0;border-top-left-radius:6px;border-bottom-left-radius:6px}ul.kiwi-floating-bar.right .network-label{top:0;right:-56px;height:100%;line-height:40px;width:95px;text-align:left;padding:0 10px}ul.kiwi-floating-bar.right>li:hover>.network-label{opacity:1;right:40px;visibility:visible;-webkit-transition:all .5s cubic-bezier(.075,.82,.165,1);transition:all .5s cubic-bezier(.075,.82,.165,1)}ul.kiwi-floating-bar.bottom{bottom:-50px;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);margin:0;line-height:0;border-top-right-radius:6px;border-top-left-radius:6px}ul.kiwi-floating-bar.bottom .network-label{bottom:0;left:0;height:100%;line-height:18px;width:95px;text-align:center;padding:10px 5px;visibility:hidden;transform:rotate(90deg);transform-origin:40% 6%}ul.kiwi-floating-bar.bottom>li:hover>.network-label{opacity:1;visibility:visible;bottom:59px;-webkit-transition:all .5s cubic-bezier(.075,.82,.165,1);transition:all .5s cubic-bezier(.075,.82,.165,1)}ul.kiwi-floating-bar.bottom li{display:inline-block;margin:0}ul.kiwi-floating-bar.pill a:first-of-type{border-radius:50%}ul.kiwi-floating-bar.pill.bottom>li .network-label,ul.kiwi-floating-bar.pill.right>li .network-label{border-bottom-left-radius:25px;border-top-left-radius:25px}ul.kiwi-floating-bar.pill.left>li .network-label{border-top-right-radius:25px;border-bottom-right-radius:25px;padding-left:25px;width:120px;left:5px}ul.kiwi-floating-bar.pill.left>li:hover .network-label{left:20px}ul.kiwi-floating-bar.pill.right>li .network-label{padding-right:25px;width:120px;right:5px}ul.kiwi-floating-bar.pill.right>li:hover .network-label{right:20px}ul.kiwi-floating-bar.pill.bottom>li:hover .network-label{bottom:42px}.kiwi-article-bar [class*=kiwi-nw-],.kiwi-floating-bar [class*=kiwi-nw-]{-webkit-transition:all .2s;transition:all .2s;color:#fff}.kiwi-article-bar [class*=kiwi-nw-]:focus,.kiwi-article-bar [class*=kiwi-nw-]:hover,.kiwi-floating-bar [class*=kiwi-nw-]:focus,.kiwi-floating-bar [class*=kiwi-nw-]:hover{-webkit-transition:all .2s;transition:all .2s}.kiwi-article-bar .kiwi-nw-facebook,.kiwi-floating-bar .kiwi-nw-facebook{background:#3B5998}.kiwi-article-bar .kiwi-nw-facebook:focus,.kiwi-article-bar .kiwi-nw-facebook:hover,.kiwi-floating-bar .kiwi-nw-facebook:focus,.kiwi-floating-bar .kiwi-nw-facebook:hover{background:#1b4199;color:#fff}.kiwi-article-bar .kiwi-nw-twitter,.kiwi-floating-bar .kiwi-nw-twitter{background:#4EAEF8}.kiwi-article-bar .kiwi-nw-twitter:focus,.kiwi-article-bar .kiwi-nw-twitter:hover,.kiwi-floating-bar .kiwi-nw-twitter:focus,.kiwi-floating-bar .kiwi-nw-twitter:hover{background:#1193f7;color:#fff}.kiwi-article-bar .kiwi-nw-google-plus,.kiwi-floating-bar .kiwi-nw-google-plus{background:#DB4437}.kiwi-article-bar .kiwi-nw-google-plus:focus,.kiwi-article-bar .kiwi-nw-google-plus:hover,.kiwi-floating-bar .kiwi-nw-google-plus:focus,.kiwi-floating-bar .kiwi-nw-google-plus:hover{background:#db2615;color:#fff}.kiwi-article-bar .kiwi-nw-pinterest,.kiwi-floating-bar .kiwi-nw-pinterest{background:#BD081C}.kiwi-article-bar .kiwi-nw-pinterest:focus,.kiwi-article-bar .kiwi-nw-pinterest:hover,.kiwi-floating-bar .kiwi-nw-pinterest:focus,.kiwi-floating-bar .kiwi-nw-pinterest:hover{background:#770107;color:#fff}.kiwi-article-bar .kiwi-nw-linkedin,.kiwi-floating-bar .kiwi-nw-linkedin{background:#1A85BC}.kiwi-article-bar .kiwi-nw-linkedin:focus,.kiwi-article-bar .kiwi-nw-linkedin:hover,.kiwi-floating-bar .kiwi-nw-linkedin:focus,.kiwi-floating-bar .kiwi-nw-linkedin:hover{background:#006aa8;color:#fff}.kiwi-article-bar .kiwi-nw-reddit,.kiwi-floating-bar .kiwi-nw-reddit{background:#FF4500}.kiwi-article-bar .kiwi-nw-reddit:focus,.kiwi-article-bar .kiwi-nw-reddit:hover,.kiwi-floating-bar .kiwi-nw-reddit:focus,.kiwi-floating-bar .kiwi-nw-reddit:hover{background:#e22500;color:#fff}.kiwi-article-bar .kiwi-nw-email,.kiwi-floating-bar .kiwi-nw-email{background:#4D9159}.kiwi-article-bar .kiwi-nw-email:focus,.kiwi-article-bar .kiwi-nw-email:hover,.kiwi-floating-bar .kiwi-nw-email:focus,.kiwi-floating-bar .kiwi-nw-email:hover{background:#0e9126;color:#fff}.kiwi-article-bar .kiwi-nw-whatsapp,.kiwi-floating-bar .kiwi-nw-whatsapp{background:#0DC143}.kiwi-article-bar .kiwi-nw-whatsapp:focus,.kiwi-article-bar .kiwi-nw-whatsapp:hover,.kiwi-floating-bar .kiwi-nw-whatsapp:focus,.kiwi-floating-bar .kiwi-nw-whatsapp:hover{background:#499b06;color:#fff}@media (min-width:768px){.kiwi-article-bar .kiwi-nw-whatsapp,.kiwi-floating-bar .kiwi-nw-whatsapp{display:none}.kiwi-article-bar .kiwi-nw-whatsapp.kiwi-visible-desktop,.kiwi-floating-bar .kiwi-nw-whatsapp.kiwi-visible-desktop{display:inline-block}}.kiwi-article-bar .kiwi-nw-telegram,.kiwi-floating-bar .kiwi-nw-telegram{background:#179CDE}.kiwi-article-bar .kiwi-nw-telegram:focus,.kiwi-article-bar .kiwi-nw-telegram:hover,.kiwi-floating-bar .kiwi-nw-telegram:focus,.kiwi-floating-bar .kiwi-nw-telegram:hover{background:#008cea;color:#fff}.kiwi-article-bar .kiwi-nw-skype,.kiwi-floating-bar .kiwi-nw-skype{background:#009EE5}.kiwi-article-bar .kiwi-nw-skype:focus,.kiwi-article-bar .kiwi-nw-skype:hover,.kiwi-floating-bar .kiwi-nw-skype:focus,.kiwi-floating-bar .kiwi-nw-skype:hover{background:#008ae0;color:#fff}.kiwi-highlighter-content-area,.kiwi-highlighter-excerpt-area{position:relative}.kiwi-highlight-sharer{-webkit-box-shadow:0 2px 5px 0 rgba(0,0,0,.75);-moz-box-shadow:0 2px 5px 0 rgba(0,0,0,.75);box-shadow:0 2px 5px 0 rgba(0,0,0,.75);display:none;position:absolute}.kiwi-highlight-sharer .kiwi-nw-twitter{background:#4EAEF8;color:#fff;padding:5px 15px}.kiwi-highlight-sharer .kiwi-nw-twitter:focus,.kiwi-highlight-sharer .kiwi-nw-twitter:hover{background:#fff;color:#4EAEF8}.kiwi-click-to-tweet-content-area{border-radius:6px;border:1px solid #DDD;padding:15px;position:relative}.kiwi-click-to-tweet-content-area>a.kiwi-click-to-tweet-url{text-decoration:none;-webkit-box-shadow:none;box-shadow:none;font-size:21px;font-style:normal}.kiwi-click-to-tweet-content-area>a.kiwi-click-to-tweet-url:focus,.kiwi-click-to-tweet-content-area>a.kiwi-click-to-tweet-url:hover{text-decoration:none;-webkit-box-shadow:none;box-shadow:none}.kiwi-click-to-tweet-content-area>a.kiwi-click-to-tweet-url .kiwi-click-to-tweet .kiwi-click-to-tweet-text{position:relative;margin-bottom:25px;display:inline-block}.kiwi-click-to-tweet-content-area>a.kiwi-click-to-tweet-url .kiwi-click-to-tweet .kiwi-click-to-tweet-button{text-transform:uppercase;position:absolute;font-size:12px;font-style:normal;bottom:15px;right:15px}.kiwi-click-to-tweet-content-area>a.kiwi-click-to-tweet-url .kiwi-click-to-tweet .kiwi-click-to-tweet-button i{margin-left:5px;color:#4EAEF8;font-size:15px}
|
assets/css/index.php
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
// Silence is golden
|
1 |
+
<?php
|
2 |
+
|
3 |
// Silence is golden
|
assets/img/index.php
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
// Silence is golden
|
1 |
+
<?php
|
2 |
+
|
3 |
// Silence is golden
|
assets/index.php
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
// Silence is golden
|
1 |
+
<?php
|
2 |
+
|
3 |
// Silence is golden
|
assets/js/KiwiClickToTweet.js
CHANGED
@@ -1,140 +1,140 @@
|
|
1 |
-
(function () {
|
2 |
-
var KiwiLinkLength = function (input) {
|
3 |
-
var tmp = '';
|
4 |
-
|
5 |
-
for ( var i = 0; i < 23; i++ ) {
|
6 |
-
tmp += 'o';
|
7 |
-
}
|
8 |
-
|
9 |
-
return input.replace(/(http:\/\/[\S]*)/g, tmp).length;
|
10 |
-
};
|
11 |
-
|
12 |
-
var KiwiGetTwitterHandle = function (id) {
|
13 |
-
var data = {
|
14 |
-
'action': 'kiwi_social_share_get_option',
|
15 |
-
'args' : {
|
16 |
-
group : 'kiwi_social_identities',
|
17 |
-
option : 'twitter_username',
|
18 |
-
default: false
|
19 |
-
}
|
20 |
-
};
|
21 |
-
|
22 |
-
jQuery.ajax({
|
23 |
-
dataType: 'json',
|
24 |
-
type : 'POST',
|
25 |
-
url : ajaxurl,
|
26 |
-
data : data,
|
27 |
-
complete: function (json) {
|
28 |
-
if ( json.responseJSON ) {
|
29 |
-
jQuery('#' + id).attr('data-handle', json.responseJSON);
|
30 |
-
}
|
31 |
-
}
|
32 |
-
});
|
33 |
-
|
34 |
-
};
|
35 |
-
|
36 |
-
tinymce.PluginManager.add('KiwiClickToTweet', function (editor, url) {
|
37 |
-
|
38 |
-
editor.addButton('KiwiClickToTweet', {
|
39 |
-
title : 'Click to Tweet',
|
40 |
-
icon : ' kicon-twitter',
|
41 |
-
onclick: function () {
|
42 |
-
var handle = KiwiGetTwitterHandle(this._id),
|
43 |
-
self = this._id;
|
44 |
-
|
45 |
-
editor.windowManager.open({
|
46 |
-
title : 'Build "Click to Tweet"',
|
47 |
-
class : 'kiwi-click-to-tweet',
|
48 |
-
body : [
|
49 |
-
{
|
50 |
-
type : 'textbox',
|
51 |
-
multiline: true,
|
52 |
-
style : 'height:50px',
|
53 |
-
name : 'tweet',
|
54 |
-
label : 'The text that will be sent out on Twitter.',
|
55 |
-
onkeyup : function () {
|
56 |
-
var value = jQuery('.mce-first textarea').val();
|
57 |
-
var strLength = value.length;
|
58 |
-
var handle = jQuery('#' + self).attr('data-handle');
|
59 |
-
if ( value.indexOf('http') > -1 || value.indexOf('https') > -1 ) {
|
60 |
-
linkSpace = 0;
|
61 |
-
} else {
|
62 |
-
linkSpace = 23;
|
63 |
-
}
|
64 |
-
|
65 |
-
if ( typeof handle === 'undefined' ) {
|
66 |
-
var remaining = 140 - KiwiLinkLength(value) - linkSpace;
|
67 |
-
} else {
|
68 |
-
var remaining = 140 - KiwiLinkLength(value) - linkSpace - handle.length - 6;
|
69 |
-
}
|
70 |
-
|
71 |
-
if ( remaining > 1 || remaining == 0 ) {
|
72 |
-
jQuery('.tweetCounter').css({ 'color': 'green' }).text(remaining + ' characters');
|
73 |
-
} else if ( remaining == 1 ) {
|
74 |
-
jQuery('.tweetCounter').css({ 'color': 'green' }).text(remaining + ' character');
|
75 |
-
} else if ( remaining < 0 ) {
|
76 |
-
jQuery('.tweetCounter').css({ 'color': 'red' }).text(remaining + ' characters');
|
77 |
-
}
|
78 |
-
},
|
79 |
-
class : 'tweetCounting'
|
80 |
-
},
|
81 |
-
{
|
82 |
-
type : 'label',
|
83 |
-
name : 'someHelpText',
|
84 |
-
onPostRender: function () {
|
85 |
-
var value = jQuery('.mce-first textarea').val();
|
86 |
-
var strLength = value.length;
|
87 |
-
var handle = jQuery('#' + self).attr('data-handle');
|
88 |
-
|
89 |
-
if ( value.indexOf('http') > -1 || value.indexOf('https') > -1 ) {
|
90 |
-
linkSpace = 0;
|
91 |
-
} else {
|
92 |
-
linkSpace = 23;
|
93 |
-
}
|
94 |
-
|
95 |
-
if ( typeof handle === 'undefined' ) {
|
96 |
-
var remaining = 140 - KiwiLinkLength(value) - linkSpace;
|
97 |
-
} else {
|
98 |
-
var remaining = 140 - KiwiLinkLength(value) - linkSpace - handle.length - 6;
|
99 |
-
}
|
100 |
-
|
101 |
-
this.getEl().innerHTML =
|
102 |
-
'<span style="float:right;">You have <span class="tweetCounter" style="color:green">' + remaining + ' characters</span> remaining.</span>';
|
103 |
-
},
|
104 |
-
text : ''
|
105 |
-
},
|
106 |
-
{
|
107 |
-
type : 'textbox',
|
108 |
-
multiline: true,
|
109 |
-
style : 'height:50px',
|
110 |
-
name : 'quote',
|
111 |
-
label : 'The quote as it will appear in your article.'
|
112 |
-
}, {
|
113 |
-
type : 'label',
|
114 |
-
name : 'someHelpText2',
|
115 |
-
onPostRender: function () {
|
116 |
-
this.getEl().innerHTML =
|
117 |
-
'<div style="width:650px;"> </div>';
|
118 |
-
},
|
119 |
-
text : ''
|
120 |
-
}
|
121 |
-
],
|
122 |
-
onsubmit: function (e) {
|
123 |
-
var value = jQuery('.mce-first textarea').val();
|
124 |
-
var strLength = value.length;
|
125 |
-
var remaining = 117 - strLength;
|
126 |
-
if ( e.data.tweet === '' || e.data.quote === '' ) {
|
127 |
-
editor.windowManager.alert('Please, fill in both fields.');
|
128 |
-
return false;
|
129 |
-
} else if ( remaining < 0 ) {
|
130 |
-
editor.windowManager.alert('You have too many characters in your tweet.');
|
131 |
-
return false;
|
132 |
-
}
|
133 |
-
|
134 |
-
editor.insertContent('[KiwiClickToTweet tweet="' + e.data.tweet.replace(/"/g, '\'') + '" quote="' + e.data.quote.replace(/"/g, '\'') + '"]');
|
135 |
-
}
|
136 |
-
});
|
137 |
-
}
|
138 |
-
});
|
139 |
-
});
|
140 |
-
})();
|
1 |
+
(function () {
|
2 |
+
var KiwiLinkLength = function (input) {
|
3 |
+
var tmp = '';
|
4 |
+
|
5 |
+
for ( var i = 0; i < 23; i++ ) {
|
6 |
+
tmp += 'o';
|
7 |
+
}
|
8 |
+
|
9 |
+
return input.replace(/(http:\/\/[\S]*)/g, tmp).length;
|
10 |
+
};
|
11 |
+
|
12 |
+
var KiwiGetTwitterHandle = function (id) {
|
13 |
+
var data = {
|
14 |
+
'action': 'kiwi_social_share_get_option',
|
15 |
+
'args' : {
|
16 |
+
group : 'kiwi_social_identities',
|
17 |
+
option : 'twitter_username',
|
18 |
+
default: false
|
19 |
+
}
|
20 |
+
};
|
21 |
+
|
22 |
+
jQuery.ajax({
|
23 |
+
dataType: 'json',
|
24 |
+
type : 'POST',
|
25 |
+
url : ajaxurl,
|
26 |
+
data : data,
|
27 |
+
complete: function (json) {
|
28 |
+
if ( json.responseJSON ) {
|
29 |
+
jQuery('#' + id).attr('data-handle', json.responseJSON);
|
30 |
+
}
|
31 |
+
}
|
32 |
+
});
|
33 |
+
|
34 |
+
};
|
35 |
+
|
36 |
+
tinymce.PluginManager.add('KiwiClickToTweet', function (editor, url) {
|
37 |
+
|
38 |
+
editor.addButton('KiwiClickToTweet', {
|
39 |
+
title : 'Click to Tweet',
|
40 |
+
icon : ' kicon-twitter',
|
41 |
+
onclick: function () {
|
42 |
+
var handle = KiwiGetTwitterHandle(this._id),
|
43 |
+
self = this._id;
|
44 |
+
|
45 |
+
editor.windowManager.open({
|
46 |
+
title : 'Build "Click to Tweet"',
|
47 |
+
class : 'kiwi-click-to-tweet',
|
48 |
+
body : [
|
49 |
+
{
|
50 |
+
type : 'textbox',
|
51 |
+
multiline: true,
|
52 |
+
style : 'height:50px',
|
53 |
+
name : 'tweet',
|
54 |
+
label : 'The text that will be sent out on Twitter.',
|
55 |
+
onkeyup : function () {
|
56 |
+
var value = jQuery('.mce-first textarea').val();
|
57 |
+
var strLength = value.length;
|
58 |
+
var handle = jQuery('#' + self).attr('data-handle');
|
59 |
+
if ( value.indexOf('http') > -1 || value.indexOf('https') > -1 ) {
|
60 |
+
linkSpace = 0;
|
61 |
+
} else {
|
62 |
+
linkSpace = 23;
|
63 |
+
}
|
64 |
+
|
65 |
+
if ( typeof handle === 'undefined' ) {
|
66 |
+
var remaining = 140 - KiwiLinkLength(value) - linkSpace;
|
67 |
+
} else {
|
68 |
+
var remaining = 140 - KiwiLinkLength(value) - linkSpace - handle.length - 6;
|
69 |
+
}
|
70 |
+
|
71 |
+
if ( remaining > 1 || remaining == 0 ) {
|
72 |
+
jQuery('.tweetCounter').css({ 'color': 'green' }).text(remaining + ' characters');
|
73 |
+
} else if ( remaining == 1 ) {
|
74 |
+
jQuery('.tweetCounter').css({ 'color': 'green' }).text(remaining + ' character');
|
75 |
+
} else if ( remaining < 0 ) {
|
76 |
+
jQuery('.tweetCounter').css({ 'color': 'red' }).text(remaining + ' characters');
|
77 |
+
}
|
78 |
+
},
|
79 |
+
class : 'tweetCounting'
|
80 |
+
},
|
81 |
+
{
|
82 |
+
type : 'label',
|
83 |
+
name : 'someHelpText',
|
84 |
+
onPostRender: function () {
|
85 |
+
var value = jQuery('.mce-first textarea').val();
|
86 |
+
var strLength = value.length;
|
87 |
+
var handle = jQuery('#' + self).attr('data-handle');
|
88 |
+
|
89 |
+
if ( value.indexOf('http') > -1 || value.indexOf('https') > -1 ) {
|
90 |
+
linkSpace = 0;
|
91 |
+
} else {
|
92 |
+
linkSpace = 23;
|
93 |
+
}
|
94 |
+
|
95 |
+
if ( typeof handle === 'undefined' ) {
|
96 |
+
var remaining = 140 - KiwiLinkLength(value) - linkSpace;
|
97 |
+
} else {
|
98 |
+
var remaining = 140 - KiwiLinkLength(value) - linkSpace - handle.length - 6;
|
99 |
+
}
|
100 |
+
|
101 |
+
this.getEl().innerHTML =
|
102 |
+
'<span style="float:right;">You have <span class="tweetCounter" style="color:green">' + remaining + ' characters</span> remaining.</span>';
|
103 |
+
},
|
104 |
+
text : ''
|
105 |
+
},
|
106 |
+
{
|
107 |
+
type : 'textbox',
|
108 |
+
multiline: true,
|
109 |
+
style : 'height:50px',
|
110 |
+
name : 'quote',
|
111 |
+
label : 'The quote as it will appear in your article.'
|
112 |
+
}, {
|
113 |
+
type : 'label',
|
114 |
+
name : 'someHelpText2',
|
115 |
+
onPostRender: function () {
|
116 |
+
this.getEl().innerHTML =
|
117 |
+
'<div style="width:650px;"> </div>';
|
118 |
+
},
|
119 |
+
text : ''
|
120 |
+
}
|
121 |
+
],
|
122 |
+
onsubmit: function (e) {
|
123 |
+
var value = jQuery('.mce-first textarea').val();
|
124 |
+
var strLength = value.length;
|
125 |
+
var remaining = 117 - strLength;
|
126 |
+
if ( e.data.tweet === '' || e.data.quote === '' ) {
|
127 |
+
editor.windowManager.alert('Please, fill in both fields.');
|
128 |
+
return false;
|
129 |
+
} else if ( remaining < 0 ) {
|
130 |
+
editor.windowManager.alert('You have too many characters in your tweet.');
|
131 |
+
return false;
|
132 |
+
}
|
133 |
+
|
134 |
+
editor.insertContent('[KiwiClickToTweet tweet="' + e.data.tweet.replace(/"/g, '\'') + '" quote="' + e.data.quote.replace(/"/g, '\'') + '"]');
|
135 |
+
}
|
136 |
+
});
|
137 |
+
}
|
138 |
+
});
|
139 |
+
});
|
140 |
+
})();
|
assets/js/KiwiClickToTweet.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(){var a=function(a){for(var b="",c=0;c<23;c++)b+="o";return a.replace(/(http:\/\/[\S]*)/g,b).length},b=function(a){var b={action:"kiwi_social_share_get_option",args:{group:"kiwi_social_identities",option:"twitter_username",default:!1}};jQuery.ajax({dataType:"json",type:"POST",url:ajaxurl,data:b,complete:function(b){b.responseJSON&&jQuery("#"+a).attr("data-handle",b.responseJSON)}})};tinymce.PluginManager.add("KiwiClickToTweet",function(c,d){c.addButton("KiwiClickToTweet",{title:"Click to Tweet",icon:" kicon-twitter",onclick:function(){var d=(b(this._id),this._id);c.windowManager.open({title:'Build "Click to Tweet"',class:"kiwi-click-to-tweet",body:[{type:"textbox",multiline:!0,style:"height:50px",name:"tweet",label:"The text that will be sent out on Twitter.",onkeyup:function(){var b=jQuery(".mce-first textarea").val(),c=(b.length,jQuery("#"+d).attr("data-handle"));if(b.indexOf("http")>-1||b.indexOf("https")>-1?linkSpace=0:linkSpace=23,
|
1 |
+
!function(){var a=function(a){for(var b="",c=0;c<23;c++)b+="o";return a.replace(/(http:\/\/[\S]*)/g,b).length},b=function(a){var b={action:"kiwi_social_share_get_option",args:{group:"kiwi_social_identities",option:"twitter_username",default:!1}};jQuery.ajax({dataType:"json",type:"POST",url:ajaxurl,data:b,complete:function(b){b.responseJSON&&jQuery("#"+a).attr("data-handle",b.responseJSON)}})};tinymce.PluginManager.add("KiwiClickToTweet",function(c,d){c.addButton("KiwiClickToTweet",{title:"Click to Tweet",icon:" kicon-twitter",onclick:function(){var d=(b(this._id),this._id);c.windowManager.open({title:'Build "Click to Tweet"',class:"kiwi-click-to-tweet",body:[{type:"textbox",multiline:!0,style:"height:50px",name:"tweet",label:"The text that will be sent out on Twitter.",onkeyup:function(){var b=jQuery(".mce-first textarea").val(),c=(b.length,jQuery("#"+d).attr("data-handle"));if(b.indexOf("http")>-1||b.indexOf("https")>-1?linkSpace=0:linkSpace=23,void 0===c)var e=140-a(b)-linkSpace;else var e=140-a(b)-linkSpace-c.length-6;e>1||0==e?jQuery(".tweetCounter").css({color:"green"}).text(e+" characters"):1==e?jQuery(".tweetCounter").css({color:"green"}).text(e+" character"):e<0&&jQuery(".tweetCounter").css({color:"red"}).text(e+" characters")},class:"tweetCounting"},{type:"label",name:"someHelpText",onPostRender:function(){var b=jQuery(".mce-first textarea").val(),c=(b.length,jQuery("#"+d).attr("data-handle"));if(b.indexOf("http")>-1||b.indexOf("https")>-1?linkSpace=0:linkSpace=23,void 0===c)var e=140-a(b)-linkSpace;else var e=140-a(b)-linkSpace-c.length-6;this.getEl().innerHTML='<span style="float:right;">You have <span class="tweetCounter" style="color:green">'+e+" characters</span> remaining.</span>"},text:""},{type:"textbox",multiline:!0,style:"height:50px",name:"quote",label:"The quote as it will appear in your article."},{type:"label",name:"someHelpText2",onPostRender:function(){this.getEl().innerHTML='<div style="width:650px;"> </div>'},text:""}],onsubmit:function(a){var b=jQuery(".mce-first textarea").val(),d=b.length,e=117-d;return""===a.data.tweet||""===a.data.quote?(c.windowManager.alert("Please, fill in both fields."),!1):e<0?(c.windowManager.alert("You have too many characters in your tweet."),!1):void c.insertContent('[KiwiClickToTweet tweet="'+a.data.tweet.replace(/"/g,"'")+'" quote="'+a.data.quote.replace(/"/g,"'")+'"]')}})}})})}();
|
assets/js/admin.js
CHANGED
@@ -1,17 +1,17 @@
|
|
1 |
-
jQuery(document).ready(function (e) {
|
2 |
-
try {
|
3 |
-
kiwi.init(e);
|
4 |
-
|
5 |
-
kiwi.interactions.upsellModalPage(e);
|
6 |
-
kiwi.interactions.handleModalPageForm(e);
|
7 |
-
kiwi.interactions.registration(e);
|
8 |
-
}
|
9 |
-
catch ( err ) {
|
10 |
-
console.warn(err.message);
|
11 |
-
}
|
12 |
-
|
13 |
-
});
|
14 |
-
|
15 |
-
jQuery(document).on('KiwiObjectsLoaded', function () {
|
16 |
-
kiwi.interface.preloader(jQuery);
|
17 |
});
|
1 |
+
jQuery(document).ready(function (e) {
|
2 |
+
try {
|
3 |
+
kiwi.init(e);
|
4 |
+
|
5 |
+
kiwi.interactions.upsellModalPage(e);
|
6 |
+
kiwi.interactions.handleModalPageForm(e);
|
7 |
+
kiwi.interactions.registration(e);
|
8 |
+
}
|
9 |
+
catch ( err ) {
|
10 |
+
console.warn(err.message);
|
11 |
+
}
|
12 |
+
|
13 |
+
});
|
14 |
+
|
15 |
+
jQuery(document).on('KiwiObjectsLoaded', function () {
|
16 |
+
kiwi.interface.preloader(jQuery);
|
17 |
});
|
assets/js/frontend.js
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
-
jQuery(document).ready(function (e) {
|
2 |
-
try {
|
3 |
-
kiwi.frontend.highlightShare(e);
|
4 |
-
kiwi.frontend.modalPopup(e);
|
5 |
-
kiwi.frontend.handleFloatingBarDisplay(e);
|
6 |
-
} catch ( err ) {
|
7 |
-
console.warn(err);
|
8 |
-
}
|
9 |
-
});
|
1 |
+
jQuery(document).ready(function (e) {
|
2 |
+
try {
|
3 |
+
kiwi.frontend.highlightShare(e);
|
4 |
+
kiwi.frontend.modalPopup(e);
|
5 |
+
kiwi.frontend.handleFloatingBarDisplay(e);
|
6 |
+
} catch ( err ) {
|
7 |
+
console.warn(err);
|
8 |
+
}
|
9 |
+
});
|
assets/js/index.php
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
// Silence is golden
|
1 |
+
<?php
|
2 |
+
|
3 |
// Silence is golden
|
assets/js/kiwi.js
CHANGED
@@ -1,742 +1,742 @@
|
|
1 |
-
"use strict";
|
2 |
-
|
3 |
-
var kiwi = {
|
4 |
-
loaded: 0,
|
5 |
-
|
6 |
-
/**
|
7 |
-
* Interface related methods
|
8 |
-
*/
|
9 |
-
interface: {
|
10 |
-
/**
|
11 |
-
* Listen on option changes and provide a notification
|
12 |
-
* @param $
|
13 |
-
*/
|
14 |
-
saveChangesNotification: function ($) {
|
15 |
-
var context = $('#sl-kiwi'),
|
16 |
-
notification = context.find('.kiwi-notification-popup'),
|
17 |
-
submitter = notification.find('input'),
|
18 |
-
form = context.find('form').find('#submit');
|
19 |
-
|
20 |
-
context.find('input').on('change', function () {
|
21 |
-
notification.slideDown(300);
|
22 |
-
});
|
23 |
-
|
24 |
-
submitter.on('click', function () {
|
25 |
-
form.click();
|
26 |
-
})
|
27 |
-
},
|
28 |
-
|
29 |
-
/**
|
30 |
-
* Handle the preloader
|
31 |
-
* @param $
|
32 |
-
*/
|
33 |
-
preloader: function ($) {
|
34 |
-
var context = $('#sl-kiwi'),
|
35 |
-
overlay = context.find('.overlay'),
|
36 |
-
floating_bar = $('ul[data-id="networks_ordering_floating_bar"]');
|
37 |
-
|
38 |
-
setTimeout(function () {
|
39 |
-
overlay.find('.overlay-content').fadeOut(400, function () {
|
40 |
-
overlay.removeClass('active').css({ 'z-index': 0, 'bottom': 'initial', 'right': 'initial' });
|
41 |
-
floating_bar.css({ right: '-46px', 'opacity': 1, 'z-index': 1 });
|
42 |
-
});
|
43 |
-
}, 1500);
|
44 |
-
},
|
45 |
-
|
46 |
-
/**
|
47 |
-
* Init the wp color picker and handle changes
|
48 |
-
*
|
49 |
-
* @param $
|
50 |
-
*/
|
51 |
-
colorFields: function ($) {
|
52 |
-
var colorpickers = $('.kiwi-styles .epsilon-ui-color input'),
|
53 |
-
customColorPickers = $('.kiwi-styles .epsilon-custom-colors .epsilon-ui-color input'),
|
54 |
-
networks = $('.shift a');
|
55 |
-
|
56 |
-
colorpickers.wpColorPicker();
|
57 |
-
$('input[name="kiwi_general_settings[styles_colors]"]:radio').change(function () {
|
58 |
-
var scheme = $(this).val();
|
59 |
-
|
60 |
-
switch ( scheme ) {
|
61 |
-
case 'custom':
|
62 |
-
$.each(customColorPickers, function () {
|
63 |
-
$(this).val($(this).data('color-custom')).trigger('change');
|
64 |
-
});
|
65 |
-
break;
|
66 |
-
case 'monochrome':
|
67 |
-
$.each(customColorPickers, function () {
|
68 |
-
$(this).val($(this).data('color-monochrome')).trigger('change');
|
69 |
-
});
|
70 |
-
break;
|
71 |
-
default:
|
72 |
-
$.each(customColorPickers, function () {
|
73 |
-
$(this).val($(this).data('color-original')).trigger('change');
|
74 |
-
});
|
75 |
-
break;
|
76 |
-
}
|
77 |
-
});
|
78 |
-
|
79 |
-
$.each(colorpickers, function () {
|
80 |
-
var parent = $(this).parents('.epsilon-ui-color'),
|
81 |
-
em = parent.find('em'),
|
82 |
-
self = $(this),
|
83 |
-
network = parent.parent().parent().data('network'),
|
84 |
-
sortable = $('.shift').find('.kiwi-nw-' + network),
|
85 |
-
currentColor = self.wpColorPicker('color'),
|
86 |
-
property = parent.attr('data-prop');
|
87 |
-
|
88 |
-
$(this).wpColorPicker({
|
89 |
-
'change': function (event, ui) {
|
90 |
-
var val = self.wpColorPicker('color');
|
91 |
-
em.html(val);
|
92 |
-
}
|
93 |
-
})
|
94 |
-
});
|
95 |
-
|
96 |
-
|
97 |
-
var fbem = $('.floating-bar-background input');
|
98 |
-
if ( fbem.length ) {
|
99 |
-
fbem.wpColorPicker({
|
100 |
-
defaultColor: '#272F32',
|
101 |
-
change : function (event, ui) {
|
102 |
-
var val = fbem.wpColorPicker('color');
|
103 |
-
|
104 |
-
$('.floating-bar-background').find('em').html(val);
|
105 |
-
}
|
106 |
-
});
|
107 |
-
}
|
108 |
-
|
109 |
-
|
110 |
-
kiwi.loaded += 1;
|
111 |
-
},
|
112 |
-
|
113 |
-
/**
|
114 |
-
* Disable the keyboard arrows on this elements while the toggle is off
|
115 |
-
* @param $
|
116 |
-
*/
|
117 |
-
toggleHelper: function ($) {
|
118 |
-
$(".epsilon-ui-option input").keypress(function (event) {
|
119 |
-
var overlay_active = $(this).closest('.epsilon-ui-option').find('.epsilon-ui-overlay.active').length;
|
120 |
-
|
121 |
-
if ( overlay_active && event.keyCode > 36 && event.keyCode < 41 ) {
|
122 |
-
event.preventDefault();
|
123 |
-
}
|
124 |
-
});
|
125 |
-
|
126 |
-
kiwi.loaded += 1;
|
127 |
-
},
|
128 |
-
|
129 |
-
/**
|
130 |
-
* Tab functionality
|
131 |
-
*
|
132 |
-
* @param $
|
133 |
-
*/
|
134 |
-
tabs: function ($) {
|
135 |
-
$('.epsilon-ui-tabs a').click(function () {
|
136 |
-
|
137 |
-
if ( $(this).closest('li').hasClass('selected') ) {
|
138 |
-
return 0;
|
139 |
-
}
|
140 |
-
|
141 |
-
var tab = $(this).attr('data-tab');
|
142 |
-
|
143 |
-
$(this).closest('ul').find('.selected').removeClass('selected');
|
144 |
-
$(this).closest('li').addClass('selected');
|
145 |
-
|
146 |
-
$('.sl-kiwi-content .epsilon-tab-active').removeClass('epsilon-tab-active');
|
147 |
-
$('.sl-kiwi-content .' + tab).addClass('epsilon-tab-active');
|
148 |
-
|
149 |
-
document.cookie = 'tab=' + tab;
|
150 |
-
$(document).trigger('KiwiTabChanged');
|
151 |
-
return false;
|
152 |
-
});
|
153 |
-
kiwi.loaded += 1;
|
154 |
-
}
|
155 |
-
},
|
156 |
-
|
157 |
-
/**
|
158 |
-
* UI / UX interactions
|
159 |
-
*/
|
160 |
-
interactions: {
|
161 |
-
/**
|
162 |
-
* Handle ajax request to add license key to options
|
163 |
-
*/
|
164 |
-
registration: function ($) {
|
165 |
-
$('.kiwi-ajax-activation').on('click', function (e) {
|
166 |
-
e.preventDefault();
|
167 |
-
var data = {
|
168 |
-
action: 'kiwi_social_share_set_option',
|
169 |
-
args : {
|
170 |
-
group : 'kiwi_registration',
|
171 |
-
option : 'license_key',
|
172 |
-
default: false,
|
173 |
-
value : $(this).parent().find('#kiwi_pro_registration').val()
|
174 |
-
}
|
175 |
-
};
|
176 |
-
|
177 |
-
jQuery.ajax({
|
178 |
-
dataType: 'json',
|
179 |
-
type : 'POST',
|
180 |
-
url : ajaxurl,
|
181 |
-
data : data,
|
182 |
-
complete: function (json) {
|
183 |
-
if ( json.responseText ) {
|
184 |
-
if ( 'Success' === json.responseText ) {
|
185 |
-
location.reload();
|
186 |
-
}
|
187 |
-
}
|
188 |
-
}
|
189 |
-
});
|
190 |
-
});
|
191 |
-
|
192 |
-
$('.kiwi-ajax-registration-action').on('click', function (e) {
|
193 |
-
e.preventDefault();
|
194 |
-
var self = $(this),
|
195 |
-
data = {
|
196 |
-
action: 'kiwi_social_share_edd_helper',
|
197 |
-
args : {
|
198 |
-
todo: $(this).attr('data-action')
|
199 |
-
}
|
200 |
-
};
|
201 |
-
|
202 |
-
jQuery.ajax({
|
203 |
-
dataType: 'json',
|
204 |
-
type : 'POST',
|
205 |
-
url : ajaxurl,
|
206 |
-
data : data,
|
207 |
-
complete: function (json) {
|
208 |
-
if ( json.responseJSON.status ) {
|
209 |
-
switch(json.responseJSON.message){
|
210 |
-
case 'active':
|
211 |
-
self.attr('data-action', 'deactivate').addClass('button').removeClass('button-primary').val('Deactivate License');
|
212 |
-
break;
|
213 |
-
case 'site_inactive':
|
214 |
-
self.attr('data-action', 'activate').addClass('button-primary').removeClass('button').val('Activate License');
|
215 |
-
break;
|
216 |
-
default:
|
217 |
-
break;
|
218 |
-
}
|
219 |
-
}
|
220 |
-
}
|
221 |
-
});
|
222 |
-
});
|
223 |
-
},
|
224 |
-
|
225 |
-
/**
|
226 |
-
* Hide/Show checked networks in the list
|
227 |
-
*
|
228 |
-
* @param $
|
229 |
-
*/
|
230 |
-
networks: function ($) {
|
231 |
-
|
232 |
-
$('.sl-kiwi-tab-networks .sl-kiwi-networks input[data-source="article-bar"]').on('click change', function () {
|
233 |
-
|
234 |
-
var social_item = $(this).attr('data-list-item');
|
235 |
-
|
236 |
-
if ( $(this).is(':checked') ) {
|
237 |
-
$('.sl-kiwi-dragdrop ul[data-id="networks_ordering"] li .' + social_item).closest('li').removeClass('sl-kiwi-item-remove').addClass('sl-kiwi-item-add');
|
238 |
-
} else {
|
239 |
-
$('.sl-kiwi-dragdrop ul[data-id="networks_ordering"] li .' + social_item).closest('li').removeClass('sl-kiwi-item-add').addClass('sl-kiwi-item-remove');
|
240 |
-
}
|
241 |
-
|
242 |
-
});
|
243 |
-
|
244 |
-
$('.sl-kiwi-tab-networks .sl-kiwi-networks input[data-source="floating-bar"]').on('click change', function () {
|
245 |
-
|
246 |
-
var social_item = $(this).attr('data-list-item');
|
247 |
-
|
248 |
-
if ( $(this).is(':checked') ) {
|
249 |
-
$('.sl-kiwi-dragdrop ul[data-id="networks_ordering_floating_bar"] li .' + social_item).closest('li').removeClass('sl-kiwi-item-remove').addClass('sl-kiwi-item-add');
|
250 |
-
} else {
|
251 |
-
$('.sl-kiwi-dragdrop ul[data-id="networks_ordering_floating_bar"] li .' + social_item).closest('li').removeClass('sl-kiwi-item-add').addClass('sl-kiwi-item-remove');
|
252 |
-
}
|
253 |
-
|
254 |
-
});
|
255 |
-
|
256 |
-
kiwi.loaded += 1;
|
257 |
-
},
|
258 |
-
|
259 |
-
/**
|
260 |
-
* Change the bar style on radio clicks
|
261 |
-
*
|
262 |
-
* @param $
|
263 |
-
*/
|
264 |
-
articleStyling: function ($) {
|
265 |
-
$('input[name="kiwi_general_settings[article_bar_style]"]:radio').change(function () {
|
266 |
-
$('.sl-kiwi-dragdrop').find("[data-id='networks_ordering']").attr('data-style', this.value);
|
267 |
-
});
|
268 |
-
},
|
269 |
-
|
270 |
-
/**
|
271 |
-
* Toggle functionality ( creates an overlay on the closest option group )
|
272 |
-
*
|
273 |
-
* @param $
|
274 |
-
*/
|
275 |
-
toggles: function ($) {
|
276 |
-
$('.epsilon-ui-toggle input').click(function () {
|
277 |
-
|
278 |
-
if ( $(this).prop('checked') ) {
|
279 |
-
$(this).val('on');
|
280 |
-
} else {
|
281 |
-
$(this).val('');
|
282 |
-
}
|
283 |
-
|
284 |
-
var group = $(this).closest('.sl-kiwi-opt-group');
|
285 |
-
|
286 |
-
if ( $(this).is(':checked') ) {
|
287 |
-
$('.epsilon-ui-overlay', group).removeClass('active');
|
288 |
-
} else {
|
289 |
-
$('.epsilon-ui-overlay', group).addClass('active');
|
290 |
-
}
|
291 |
-
});
|
292 |
-
kiwi.loaded += 1;
|
293 |
-
},
|
294 |
-
|
295 |
-
/**
|
296 |
-
* Toggle an overlay on radio elements ( used in styles tab )
|
297 |
-
*
|
298 |
-
* @param $
|
299 |
-
*/
|
300 |
-
radioToggles: function ($) {
|
301 |
-
$('.sl-kiwi-radio-post-types .epsilon-ui-radio input').click(function () {
|
302 |
-
if ( $(this).val() === 'all' ) {
|
303 |
-
$(this).parent().parent().find('.epsilon-ui-checklist').slideUp();
|
304 |
-
} else if ( $(this).val() === 'custom' ) {
|
305 |
-
$(this).parent().parent().find('.epsilon-ui-checklist').slideDown();
|
306 |
-
}
|
307 |
-
});
|
308 |
-
|
309 |
-
$('.epsilon-ui-radio-toggle input').click(function () {
|
310 |
-
if ( $(this).val() === 'original' ) {
|
311 |
-
$(this).parents('.sl-kiwi-tab-networks').find('.epsilon-ui-overlay').addClass('active');
|
312 |
-
} else {
|
313 |
-
$(this).parents('.sl-kiwi-tab-networks').find('.epsilon-ui-overlay').removeClass('active');
|
314 |
-
}
|
315 |
-
});
|
316 |
-
kiwi.loaded += 1;
|
317 |
-
},
|
318 |
-
|
319 |
-
/**
|
320 |
-
* Change the shapes of the network list elements
|
321 |
-
*
|
322 |
-
* @param $
|
323 |
-
*/
|
324 |
-
shapes: function ($) {
|
325 |
-
|
326 |
-
$('input[name="kiwi_general_settings[button_shape]"]:radio').change(function () {
|
327 |
-
$('.sl-kiwi-dragdrop').find("[data-id='networks_ordering']").attr('class', this.value);
|
328 |
-
});
|
329 |
-
|
330 |
-
$('input[name="kiwi_general_settings[button_shape_floating]"]:radio').change(function () {
|
331 |
-
$('.sl-kiwi-dragdrop').find("[data-id='networks_ordering_floating_bar']").attr('class', this.value);
|
332 |
-
});
|
333 |
-
kiwi.loaded += 1;
|
334 |
-
},
|
335 |
-
|
336 |
-
/**
|
337 |
-
* Toggle selection of all networks in article and floating bar
|
338 |
-
*
|
339 |
-
* @param $
|
340 |
-
*/
|
341 |
-
allCheckbox: function ($) {
|
342 |
-
var state,
|
343 |
-
floatingBar = $('input[name="kiwi_general_settings[networks_floating_bar][]"]'),
|
344 |
-
floatingBarChecked = $('input[name="kiwi_general_settings[networks_floating_bar][]"]:checked'),
|
345 |
-
articleBar = $('input[name="kiwi_general_settings[networks_article_bar][]"]'),
|
346 |
-
articleBarChecked = $('input[name="kiwi_general_settings[networks_article_bar][]"]:checked');
|
347 |
-
|
348 |
-
|
349 |
-
if ( floatingBar.length === floatingBarChecked.length ) {
|
350 |
-
$('#floating-bar-all').prop('checked', true);
|
351 |
-
}
|
352 |
-
|
353 |
-
if ( articleBar.length === articleBarChecked.length ) {
|
354 |
-
$('#social-bar-all').prop('checked', true);
|
355 |
-
}
|
356 |
-
|
357 |
-
|
358 |
-
$('#social-bar-all, #floating-bar-all').on('click', function (event) {
|
359 |
-
switch ( $(this).attr('id') ) {
|
360 |
-
case 'floating-bar-all':
|
361 |
-
state = $(this).prop('checked');
|
362 |
-
$('input[name="kiwi_general_settings[networks_floating_bar][]"]').prop('checked', state).change();
|
363 |
-
break;
|
364 |
-
default:
|
365 |
-
state = $(this).prop('checked');
|
366 |
-
$('input[name="kiwi_general_settings[networks_article_bar][]"]').prop('checked', state).change();
|
367 |
-
break;
|
368 |
-
}
|
369 |
-
});
|
370 |
-
},
|
371 |
-
|
372 |
-
/**
|
373 |
-
* Sorting functionality on the network list
|
374 |
-
*
|
375 |
-
* @param $
|
376 |
-
*/
|
377 |
-
sortable: function ($) {
|
378 |
-
var kiwi_sortable = $(".sl-kiwi-dragdrop ul[data-id='networks_ordering']");
|
379 |
-
kiwi_sortable.sortable({
|
380 |
-
placeholder: "sl-kiwi-dragdrop-placeholder",
|
381 |
-
stop : function (event, ui) {
|
382 |
-
var elements = [],
|
383 |
-
input = $(this).attr('data-id');
|
384 |
-
|
385 |
-
$('.sl-kiwi-dragdrop ul[data-id="networks_ordering"] li').each(function (index, elem) {
|
386 |
-
var kiwi_pos = $(elem).attr('data-item');
|
387 |
-
elements.push(kiwi_pos);
|
388 |
-
});
|
389 |
-
|
390 |
-
var serialize_elem = elements.join();
|
391 |
-
$('#kiwi_' + input).val(serialize_elem).trigger('change');
|
392 |
-
},
|
393 |
-
create : function (event, ui) {
|
394 |
-
kiwi.loaded += 1
|
395 |
-
}
|
396 |
-
}).disableSelection();
|
397 |
-
},
|
398 |
-
|
399 |
-
/**
|
400 |
-
* Handle the modal content
|
401 |
-
*
|
402 |
-
* @param $
|
403 |
-
*/
|
404 |
-
upsellModalPage: function ($) {
|
405 |
-
var context = $('.kiwi-modal');
|
406 |
-
|
407 |
-
$('.ui-locked, .epsilon-ui-locked, .epsilon-locked').on('click', function (e) {
|
408 |
-
context.fadeIn(200, function () {
|
409 |
-
context.addClass('in');
|
410 |
-
});
|
411 |
-
});
|
412 |
-
|
413 |
-
$('input[name="kiwi_product_upsell[type]"]').on('change', function () {
|
414 |
-
if ( $(this).val() === 'business' ) {
|
415 |
-
$('.kiwi-modal').find('.company-group').fadeIn(300);
|
416 |
-
} else {
|
417 |
-
context.find('.company-group').fadeOut(300);
|
418 |
-
context.find('.company-group input').val('');
|
419 |
-
}
|
420 |
-
});
|
421 |
-
|
422 |
-
$('.kiwi-modal .close-modal').on('click', function (e) {
|
423 |
-
e.preventDefault();
|
424 |
-
|
425 |
-
context.removeClass('in');
|
426 |
-
setTimeout(function () {
|
427 |
-
context.fadeOut(200);
|
428 |
-
context.find('#page-one').show();
|
429 |
-
context.find('#page-two').hide();
|
430 |
-
context.find('.modal-footer').show();
|
431 |
-
context.find('.modal-title').text(kiwi_locale.kiwi_step_one_title);
|
432 |
-
context.find('.modal-subtitle').text(kiwi_locale.kiwi_step_one_subtitle);
|
433 |
-
}, 200);
|
434 |
-
});
|
435 |
-
|
436 |
-
$('.button-modal').on('click', function (e) {
|
437 |
-
e.preventDefault();
|
438 |
-
var action = $(this).attr('data-action');
|
439 |
-
if ( action !== 'modal-buy-now' ) {
|
440 |
-
return;
|
441 |
-
}
|
442 |
-
var current_page = $('#page-one'),
|
443 |
-
next_page = $('#page-two'),
|
444 |
-
footer = $('.kiwi-modal .modal-footer'),
|
445 |
-
title_container = $('.kiwi-modal .modal-header-content'),
|
446 |
-
title = title_container.find('.modal-title'),
|
447 |
-
subtitle = title_container.find('.modal-subtitle');
|
448 |
-
|
449 |
-
title.fadeOut(300, function () {
|
450 |
-
title.text(kiwi_locale.kiwi_step_two_title);
|
451 |
-
title.fadeIn(300);
|
452 |
-
});
|
453 |
-
|
454 |
-
subtitle.fadeOut(300, function () {
|
455 |
-
subtitle.text(kiwi_locale.kiwi_step_two_subtitle);
|
456 |
-
subtitle.fadeIn(300);
|
457 |
-
});
|
458 |
-
|
459 |
-
footer.fadeOut(300);
|
460 |
-
current_page.fadeOut(300, function () {
|
461 |
-
next_page.fadeIn(300);
|
462 |
-
});
|
463 |
-
});
|
464 |
-
},
|
465 |
-
|
466 |
-
/**
|
467 |
-
* Handle the form on the modal upsell
|
468 |
-
* @param $
|
469 |
-
*/
|
470 |
-
handleModalPageForm: function ($) {
|
471 |
-
$('.button-modal').on('click', function (e) {
|
472 |
-
e.preventDefault();
|
473 |
-
var action = $(this).attr('data-action');
|
474 |
-
|
475 |
-
if ( action !== 'continue-to-checkout' ) {
|
476 |
-
return;
|
477 |
-
}
|
478 |
-
|
479 |
-
var fields = {
|
480 |
-
"customer": {
|
481 |
-
"first_name" : $('input[name="kiwi_product_upsell[first_name]"]').val(),
|
482 |
-
"last_name" : $('input[name="kiwi_product_upsell[last_name]"]').val(),
|
483 |
-
"email" : $('input[name="kiwi_product_upsell[email]"]').val(),
|
484 |
-
"vat" : $('input[name="kiwi_product_upsell[vat]"]').val(),
|
485 |
-
"company_name": $('input[name="kiwi_product_upsell[company_name]"]').val()
|
486 |
-
},
|
487 |
-
"product" : {
|
488 |
-
"id" : $('input[name="kiwi_product_upsell[product]"]').val(),
|
489 |
-
"options" : {},
|
490 |
-
"quantity": "1"
|
491 |
-
}
|
492 |
-
};
|
493 |
-
|
494 |
-
var obj = JSON.stringify(fields);
|
495 |
-
var hash = encodeURIComponent(btoa(obj));
|
496 |
-
|
497 |
-
var newwindow = window.open('https://www.machothemes.com/checkout/?mthash=' + hash);
|
498 |
-
|
499 |
-
if ( window.focus ) {
|
500 |
-
newwindow.focus()
|
501 |
-
}
|
502 |
-
});
|
503 |
-
}
|
504 |
-
},
|
505 |
-
|
506 |
-
frontend: {
|
507 |
-
/**
|
508 |
-
* Handles the popup window on click events
|
509 |
-
* @param $
|
510 |
-
*/
|
511 |
-
modalPopup: function ($) {
|
512 |
-
$('a[data-class="popup"]').on('click', function (e) {
|
513 |
-
e.preventDefault();
|
514 |
-
var kiwiTracking;
|
515 |
-
|
516 |
-
var newwindow = window.open($(this).attr('href'), '', 'height=500,width=500');
|
517 |
-
if ( window.focus ) {
|
518 |
-
newwindow.focus()
|
519 |
-
}
|
520 |
-
|
521 |
-
var network = $(this).attr('data-network'),
|
522 |
-
parent = $(this).parent(),
|
523 |
-
context;
|
524 |
-
|
525 |
-
if ( parent.is('li') ) {
|
526 |
-
context = parent.parent().attr('data-tracking-container');
|
527 |
-
kiwiTracking = kiwi.frontend.checkTracking(this);
|
528 |
-
} else if ( parent.is('blockquote') ) {
|
529 |
-
context = 'click-to-tweet';
|
530 |
-
kiwiTracking = 'true' === $(this).attr('data-tracking');
|
531 |
-
}
|
532 |
-
|
533 |
-
if ( typeof ga === "function" && true === kiwiTracking ) {
|
534 |
-
ga('send', 'event', 'kiwi_social_media', 'kiwi_' + context + '_' + network + '_share');
|
535 |
-
}
|
536 |
-
|
537 |
-
return false;
|
538 |
-
});
|
539 |
-
},
|
540 |
-
|
541 |
-
/**
|
542 |
-
* Highlighted content
|
543 |
-
*/
|
544 |
-
highlighted: {
|
545 |
-
start : 0,
|
546 |
-
end : 0,
|
547 |
-
url : null,
|
548 |
-
title : null,
|
549 |
-
content: null
|
550 |
-
},
|
551 |
-
|
552 |
-
/**
|
553 |
-
* Highlight share functionality
|
554 |
-
* @param $
|
555 |
-
*/
|
556 |
-
highlightShare: function ($) {
|
557 |
-
var areas = $('.kiwi-highlighter-excerpt-area, .kiwi-highlighter-content-area');
|
558 |
-
|
559 |
-
$('.kiwi-highlight-sharer a').on('click', function (e) {
|
560 |
-
e.preventDefault();
|
561 |
-
var proxy = kiwi.frontend.highlighted,
|
562 |
-
href = null;
|
563 |
-
|
564 |
-
kiwi.frontend.highlighted = {};
|
565 |
-
|
566 |
-
href = this.href.replace('%url%', encodeURIComponent(proxy.url));
|
567 |
-
href = href.replace('%text%', encodeURIComponent(proxy.content));
|
568 |
-
window.open(href, "tweethighlight", "width=575,height=430,toolbar=false,menubar=false,location=false,status=false");
|
569 |
-
|
570 |
-
var kiwiTracking = 'true' === $(this).attr('data-tracking');
|
571 |
-
|
572 |
-
if ( typeof ga === "function" && true === kiwiTracking ) {
|
573 |
-
var network = 'twitter',
|
574 |
-
context = 'highlight-to-tweet';
|
575 |
-
|
576 |
-
ga('send', 'event', 'kiwi_social_media', 'kiwi_' + context + '_' + network + '_share');
|
577 |
-
}
|
578 |
-
|
579 |
-
$('.kiwi-highlight-sharer').css({
|
580 |
-
display: 'none'
|
581 |
-
});
|
582 |
-
|
583 |
-
return false;
|
584 |
-
});
|
585 |
-
|
586 |
-
$('body').on('mousedown vmouseup', function (e) {
|
587 |
-
var parent = $(e.target).parent(),
|
588 |
-
sharer = $('.kiwi-highlight-sharer');
|
589 |
-
|
590 |
-
if ( parent.hasClass('kiwi-highlight-sharer') || parent.is('a') ) {
|
591 |
-
return;
|
592 |
-
}
|
593 |
-
|
594 |
-
if ( sharer.is(':not(:hidden)') ) {
|
595 |
-
sharer.css({
|
596 |
-
display: 'none'
|
597 |
-
});
|
598 |
-
}
|
599 |
-
});
|
600 |
-
|
601 |
-
areas.on('mousedown vmouseup', function (e) {
|
602 |
-
kiwi.frontend.highlighted.start = e.pageX;
|
603 |
-
var sharer = $('.kiwi-highlight-sharer');
|
604 |
-
if ( sharer.is(':not(:hidden)') ) {
|
605 |
-
sharer.css({
|
606 |
-
display: 'none'
|
607 |
-
});
|
608 |
-
}
|
609 |
-
|
610 |
-
});
|
611 |
-
|
612 |
-
areas.on('mouseup vmouseup', function (e) {
|
613 |
-
var selection = kiwi.frontend.getSelected(),
|
614 |
-
sharer = $('.kiwi-highlight-sharer');
|
615 |
-
|
616 |
-
kiwi.frontend.highlighted.end = e.pageX;
|
617 |
-
if ( typeof selection === 'undefined' ) {
|
618 |
-
sharer.css({ display: 'none' });
|
619 |
-
return;
|
620 |
-
}
|
621 |
-
|
622 |
-
var object = {
|
623 |
-
start : e.pageX,
|
624 |
-
end : e.pageX,
|
625 |
-
url : $(this).attr('data-url'),
|
626 |
-
title : $(this).attr('data-title'),
|
627 |
-
content: selection
|
628 |
-
};
|
629 |
-
|
630 |
-
var offset = parseInt(Math.abs((kiwi.frontend.highlighted.start - kiwi.frontend.highlighted.end) / 2));
|
631 |
-
|
632 |
-
sharer.css({
|
633 |
-
position: 'absolute',
|
634 |
-
left : e.pageX - offset,
|
635 |
-
top : e.pageY - 50,
|
636 |
-
display : 'block'
|
637 |
-
});
|
638 |
-
|
639 |
-
kiwi.frontend.highlighted = object;
|
640 |
-
});
|
641 |
-
|
642 |
-
document.addEventListener("selectionchange", function () {
|
643 |
-
kiwi.frontend.getSelected();
|
644 |
-
}, false);
|
645 |
-
|
646 |
-
},
|
647 |
-
|
648 |
-
/**
|
649 |
-
* Get selection text
|
650 |
-
*
|
651 |
-
* @returns {string}
|
652 |
-
*/
|
653 |
-
getSelected: function () {
|
654 |
-
var selection = window.getSelection();
|
655 |
-
var text = selection.toString();
|
656 |
-
if ( '' === text ) {
|
657 |
-
return;
|
658 |
-
}
|
659 |
-
|
660 |
-
return text;
|
661 |
-
},
|
662 |
-
|
663 |
-
/**
|
664 |
-
* Check tracking helper
|
665 |
-
*
|
666 |
-
* @param element
|
667 |
-
* @returns {boolean}
|
668 |
-
*/
|
669 |
-
checkTracking: function (element) {
|
670 |
-
var parent = jQuery(element).parents('ul');
|
671 |
-
return 'true' === parent.attr('data-tracking');
|
672 |
-
},
|
673 |
-
|
674 |
-
/**
|
675 |
-
* Animate the floating bar
|
676 |
-
* @param $
|
677 |
-
*/
|
678 |
-
handleFloatingBarDisplay: function ($) {
|
679 |
-
var element = $('.kiwi-floating-bar'),
|
680 |
-
position;
|
681 |
-
if ( element.hasClass('bottom') ) {
|
682 |
-
position = 'bottom';
|
683 |
-
} else if ( element.hasClass('right') ) {
|
684 |
-
position = 'right';
|
685 |
-
} else {
|
686 |
-
position = 'left';
|
687 |
-
}
|
688 |
-
|
689 |
-
setTimeout(function () {
|
690 |
-
switch ( position ) {
|
691 |
-
case 'bottom':
|
692 |
-
element.css({ 'bottom': 0 });
|
693 |
-
break;
|
694 |
-
case 'right':
|
695 |
-
element.css({ 'right': 0 });
|
696 |
-
break;
|
697 |
-
default:
|
698 |
-
element.css({ 'left': 0 });
|
699 |
-
break;
|
700 |
-
}
|
701 |
-
}, 300);
|
702 |
-
}
|
703 |
-
},
|
704 |
-
|
705 |
-
/**
|
706 |
-
* Initiate the helper functions
|
707 |
-
*
|
708 |
-
* @param $
|
709 |
-
*/
|
710 |
-
init: function ($) {
|
711 |
-
/**
|
712 |
-
* Interface methods
|
713 |
-
*/
|
714 |
-
kiwi.interface.tabs($);
|
715 |
-
kiwi.interface.toggleHelper($);
|
716 |
-
kiwi.interface.colorFields($);
|
717 |
-
kiwi.interface.saveChangesNotification($);
|
718 |
-
/**
|
719 |
-
* Interaction handlers
|
720 |
-
*/
|
721 |
-
kiwi.interactions.toggles($);
|
722 |
-
kiwi.interactions.radioToggles($);
|
723 |
-
kiwi.interactions.networks($);
|
724 |
-
kiwi.interactions.shapes($);
|
725 |
-
kiwi.frontend.modalPopup($);
|
726 |
-
kiwi.interactions.sortable($);
|
727 |
-
kiwi.interactions.allCheckbox($);
|
728 |
-
kiwi.interactions.articleStyling($);
|
729 |
-
|
730 |
-
/**
|
731 |
-
* Preloader handler
|
732 |
-
*
|
733 |
-
* @type {number}
|
734 |
-
*/
|
735 |
-
var loader = setInterval(function () {
|
736 |
-
if ( kiwi.loaded >= 8 ) {
|
737 |
-
$(document).trigger('KiwiObjectsLoaded');
|
738 |
-
clearInterval(loader);
|
739 |
-
}
|
740 |
-
}, 100);
|
741 |
-
}
|
742 |
-
};
|
1 |
+
"use strict";
|
2 |
+
|
3 |
+
var kiwi = {
|
4 |
+
loaded: 0,
|
5 |
+
|
6 |
+
/**
|
7 |
+
* Interface related methods
|
8 |
+
*/
|
9 |
+
interface: {
|
10 |
+
/**
|
11 |
+
* Listen on option changes and provide a notification
|
12 |
+
* @param $
|
13 |
+
*/
|
14 |
+
saveChangesNotification: function ($) {
|
15 |
+
var context = $('#sl-kiwi'),
|
16 |
+
notification = context.find('.kiwi-notification-popup'),
|
17 |
+
submitter = notification.find('input'),
|
18 |
+
form = context.find('form').find('#submit');
|
19 |
+
|
20 |
+
context.find('input').on('change', function () {
|
21 |
+
notification.slideDown(300);
|
22 |
+
});
|
23 |
+
|
24 |
+
submitter.on('click', function () {
|
25 |
+
form.click();
|
26 |
+
})
|
27 |
+
},
|
28 |
+
|
29 |
+
/**
|
30 |
+
* Handle the preloader
|
31 |
+
* @param $
|
32 |
+
*/
|
33 |
+
preloader: function ($) {
|
34 |
+
var context = $('#sl-kiwi'),
|
35 |
+
overlay = context.find('.overlay'),
|
36 |
+
floating_bar = $('ul[data-id="networks_ordering_floating_bar"]');
|
37 |
+
|
38 |
+
setTimeout(function () {
|
39 |
+
overlay.find('.overlay-content').fadeOut(400, function () {
|
40 |
+
overlay.removeClass('active').css({ 'z-index': 0, 'bottom': 'initial', 'right': 'initial' });
|
41 |
+
floating_bar.css({ right: '-46px', 'opacity': 1, 'z-index': 1 });
|
42 |
+
});
|
43 |
+
}, 1500);
|
44 |
+
},
|
45 |
+
|
46 |
+
/**
|
47 |
+
* Init the wp color picker and handle changes
|
48 |
+
*
|
49 |
+
* @param $
|
50 |
+
*/
|
51 |
+
colorFields: function ($) {
|
52 |
+
var colorpickers = $('.kiwi-styles .epsilon-ui-color input'),
|
53 |
+
customColorPickers = $('.kiwi-styles .epsilon-custom-colors .epsilon-ui-color input'),
|
54 |
+
networks = $('.shift a');
|
55 |
+
|
56 |
+
colorpickers.wpColorPicker();
|
57 |
+
$('input[name="kiwi_general_settings[styles_colors]"]:radio').change(function () {
|
58 |
+
var scheme = $(this).val();
|
59 |
+
|
60 |
+
switch ( scheme ) {
|
61 |
+
case 'custom':
|
62 |
+
$.each(customColorPickers, function () {
|
63 |
+
$(this).val($(this).data('color-custom')).trigger('change');
|
64 |
+
});
|
65 |
+
break;
|
66 |
+
case 'monochrome':
|
67 |
+
$.each(customColorPickers, function () {
|
68 |
+
$(this).val($(this).data('color-monochrome')).trigger('change');
|
69 |
+
});
|
70 |
+
break;
|
71 |
+
default:
|
72 |
+
$.each(customColorPickers, function () {
|
73 |
+
$(this).val($(this).data('color-original')).trigger('change');
|
74 |
+
});
|
75 |
+
break;
|
76 |
+
}
|
77 |
+
});
|
78 |
+
|
79 |
+
$.each(colorpickers, function () {
|
80 |
+
var parent = $(this).parents('.epsilon-ui-color'),
|
81 |
+
em = parent.find('em'),
|
82 |
+
self = $(this),
|
83 |
+
network = parent.parent().parent().data('network'),
|
84 |
+
sortable = $('.shift').find('.kiwi-nw-' + network),
|
85 |
+
currentColor = self.wpColorPicker('color'),
|
86 |
+
property = parent.attr('data-prop');
|
87 |
+
|
88 |
+
$(this).wpColorPicker({
|
89 |
+
'change': function (event, ui) {
|
90 |
+
var val = self.wpColorPicker('color');
|
91 |
+
em.html(val);
|
92 |
+
}
|
93 |
+
})
|
94 |
+
});
|
95 |
+
|
96 |
+
|
97 |
+
var fbem = $('.floating-bar-background input');
|
98 |
+
if ( fbem.length ) {
|
99 |
+
fbem.wpColorPicker({
|
100 |
+
defaultColor: '#272F32',
|
101 |
+
change : function (event, ui) {
|
102 |
+
var val = fbem.wpColorPicker('color');
|
103 |
+
|
104 |
+
$('.floating-bar-background').find('em').html(val);
|
105 |
+
}
|
106 |
+
});
|
107 |
+
}
|
108 |
+
|
109 |
+
|
110 |
+
kiwi.loaded += 1;
|
111 |
+
},
|
112 |
+
|
113 |
+
/**
|
114 |
+
* Disable the keyboard arrows on this elements while the toggle is off
|
115 |
+
* @param $
|
116 |
+
*/
|
117 |
+
toggleHelper: function ($) {
|
118 |
+
$(".epsilon-ui-option input").keypress(function (event) {
|
119 |
+
var overlay_active = $(this).closest('.epsilon-ui-option').find('.epsilon-ui-overlay.active').length;
|
120 |
+
|
121 |
+
if ( overlay_active && event.keyCode > 36 && event.keyCode < 41 ) {
|
122 |
+
event.preventDefault();
|
123 |
+
}
|
124 |
+
});
|
125 |
+
|
126 |
+
kiwi.loaded += 1;
|
127 |
+
},
|
128 |
+
|
129 |
+
/**
|
130 |
+
* Tab functionality
|
131 |
+
*
|
132 |
+
* @param $
|
133 |
+
*/
|
134 |
+
tabs: function ($) {
|
135 |
+
$('.epsilon-ui-tabs a').click(function () {
|
136 |
+
|
137 |
+
if ( $(this).closest('li').hasClass('selected') ) {
|
138 |
+
return 0;
|
139 |
+
}
|
140 |
+
|
141 |
+
var tab = $(this).attr('data-tab');
|
142 |
+
|
143 |
+
$(this).closest('ul').find('.selected').removeClass('selected');
|
144 |
+
$(this).closest('li').addClass('selected');
|
145 |
+
|
146 |
+
$('.sl-kiwi-content .epsilon-tab-active').removeClass('epsilon-tab-active');
|
147 |
+
$('.sl-kiwi-content .' + tab).addClass('epsilon-tab-active');
|
148 |
+
|
149 |
+
document.cookie = 'tab=' + tab;
|
150 |
+
$(document).trigger('KiwiTabChanged');
|
151 |
+
return false;
|
152 |
+
});
|
153 |
+
kiwi.loaded += 1;
|
154 |
+
}
|
155 |
+
},
|
156 |
+
|
157 |
+
/**
|
158 |
+
* UI / UX interactions
|
159 |
+
*/
|
160 |
+
interactions: {
|
161 |
+
/**
|
162 |
+
* Handle ajax request to add license key to options
|
163 |
+
*/
|
164 |
+
registration: function ($) {
|
165 |
+
$('.kiwi-ajax-activation').on('click', function (e) {
|
166 |
+
e.preventDefault();
|
167 |
+
var data = {
|
168 |
+
action: 'kiwi_social_share_set_option',
|
169 |
+
args : {
|
170 |
+
group : 'kiwi_registration',
|
171 |
+
option : 'license_key',
|
172 |
+
default: false,
|
173 |
+
value : $(this).parent().find('#kiwi_pro_registration').val()
|
174 |
+
}
|
175 |
+
};
|
176 |
+
|
177 |
+
jQuery.ajax({
|
178 |
+
dataType: 'json',
|
179 |
+
type : 'POST',
|
180 |
+
url : ajaxurl,
|
181 |
+
data : data,
|
182 |
+
complete: function (json) {
|
183 |
+
if ( json.responseText ) {
|
184 |
+
if ( 'Success' === json.responseText ) {
|
185 |
+
location.reload();
|
186 |
+
}
|
187 |
+
}
|
188 |
+
}
|
189 |
+
});
|
190 |
+
});
|
191 |
+
|
192 |
+
$('.kiwi-ajax-registration-action').on('click', function (e) {
|
193 |
+
e.preventDefault();
|
194 |
+
var self = $(this),
|
195 |
+
data = {
|
196 |
+
action: 'kiwi_social_share_edd_helper',
|
197 |
+
args : {
|
198 |
+
todo: $(this).attr('data-action')
|
199 |
+
}
|
200 |
+
};
|
201 |
+
|
202 |
+
jQuery.ajax({
|
203 |
+
dataType: 'json',
|
204 |
+
type : 'POST',
|
205 |
+
url : ajaxurl,
|
206 |
+
data : data,
|
207 |
+
complete: function (json) {
|
208 |
+
if ( json.responseJSON.status ) {
|
209 |
+
switch(json.responseJSON.message){
|
210 |
+
case 'active':
|
211 |
+
self.attr('data-action', 'deactivate').addClass('button').removeClass('button-primary').val('Deactivate License');
|
212 |
+
break;
|
213 |
+
case 'site_inactive':
|
214 |
+
self.attr('data-action', 'activate').addClass('button-primary').removeClass('button').val('Activate License');
|
215 |
+
break;
|
216 |
+
default:
|
217 |
+
break;
|
218 |
+
}
|
219 |
+
}
|
220 |
+
}
|
221 |
+
});
|
222 |
+
});
|
223 |
+
},
|
224 |
+
|
225 |
+
/**
|
226 |
+
* Hide/Show checked networks in the list
|
227 |
+
*
|
228 |
+
* @param $
|
229 |
+
*/
|
230 |
+
networks: function ($) {
|
231 |
+
|
232 |
+
$('.sl-kiwi-tab-networks .sl-kiwi-networks input[data-source="article-bar"]').on('click change', function () {
|
233 |
+
|
234 |
+
var social_item = $(this).attr('data-list-item');
|
235 |
+
|
236 |
+
if ( $(this).is(':checked') ) {
|
237 |
+
$('.sl-kiwi-dragdrop ul[data-id="networks_ordering"] li .' + social_item).closest('li').removeClass('sl-kiwi-item-remove').addClass('sl-kiwi-item-add');
|
238 |
+
} else {
|
239 |
+
$('.sl-kiwi-dragdrop ul[data-id="networks_ordering"] li .' + social_item).closest('li').removeClass('sl-kiwi-item-add').addClass('sl-kiwi-item-remove');
|
240 |
+
}
|
241 |
+
|
242 |
+
});
|
243 |
+
|
244 |
+
$('.sl-kiwi-tab-networks .sl-kiwi-networks input[data-source="floating-bar"]').on('click change', function () {
|
245 |
+
|
246 |
+
var social_item = $(this).attr('data-list-item');
|
247 |
+
|
248 |
+
if ( $(this).is(':checked') ) {
|
249 |
+
$('.sl-kiwi-dragdrop ul[data-id="networks_ordering_floating_bar"] li .' + social_item).closest('li').removeClass('sl-kiwi-item-remove').addClass('sl-kiwi-item-add');
|
250 |
+
} else {
|
251 |
+
$('.sl-kiwi-dragdrop ul[data-id="networks_ordering_floating_bar"] li .' + social_item).closest('li').removeClass('sl-kiwi-item-add').addClass('sl-kiwi-item-remove');
|
252 |
+
}
|
253 |
+
|
254 |
+
});
|
255 |
+
|
256 |
+
kiwi.loaded += 1;
|
257 |
+
},
|
258 |
+
|
259 |
+
/**
|
260 |
+
* Change the bar style on radio clicks
|
261 |
+
*
|
262 |
+
* @param $
|
263 |
+
*/
|
264 |
+
articleStyling: function ($) {
|
265 |
+
$('input[name="kiwi_general_settings[article_bar_style]"]:radio').change(function () {
|
266 |
+
$('.sl-kiwi-dragdrop').find("[data-id='networks_ordering']").attr('data-style', this.value);
|
267 |
+
});
|
268 |
+
},
|
269 |
+
|
270 |
+
/**
|
271 |
+
* Toggle functionality ( creates an overlay on the closest option group )
|
272 |
+
*
|
273 |
+
* @param $
|
274 |
+
*/
|
275 |
+
toggles: function ($) {
|
276 |
+
$('.epsilon-ui-toggle input').click(function () {
|
277 |
+
|
278 |
+
if ( $(this).prop('checked') ) {
|
279 |
+
$(this).val('on');
|
280 |
+
} else {
|
281 |
+
$(this).val('');
|
282 |
+
}
|
283 |
+
|
284 |
+
var group = $(this).closest('.sl-kiwi-opt-group');
|
285 |
+
|
286 |
+
if ( $(this).is(':checked') ) {
|
287 |
+
$('.epsilon-ui-overlay', group).removeClass('active');
|
288 |
+
} else {
|
289 |
+
$('.epsilon-ui-overlay', group).addClass('active');
|
290 |
+
}
|
291 |
+
});
|
292 |
+
kiwi.loaded += 1;
|
293 |
+
},
|
294 |
+
|
295 |
+
/**
|
296 |
+
* Toggle an overlay on radio elements ( used in styles tab )
|
297 |
+
*
|
298 |
+
* @param $
|
299 |
+
*/
|
300 |
+
radioToggles: function ($) {
|
301 |
+
$('.sl-kiwi-radio-post-types .epsilon-ui-radio input').click(function () {
|
302 |
+
if ( $(this).val() === 'all' ) {
|
303 |
+
$(this).parent().parent().find('.epsilon-ui-checklist').slideUp();
|
304 |
+
} else if ( $(this).val() === 'custom' ) {
|
305 |
+
$(this).parent().parent().find('.epsilon-ui-checklist').slideDown();
|
306 |
+
}
|
307 |
+
});
|
308 |
+
|
309 |
+
$('.epsilon-ui-radio-toggle input').click(function () {
|
310 |
+
if ( $(this).val() === 'original' ) {
|
311 |
+
$(this).parents('.sl-kiwi-tab-networks').find('.epsilon-ui-overlay').addClass('active');
|
312 |
+
} else {
|
313 |
+
$(this).parents('.sl-kiwi-tab-networks').find('.epsilon-ui-overlay').removeClass('active');
|
314 |
+
}
|
315 |
+
});
|
316 |
+
kiwi.loaded += 1;
|
317 |
+
},
|
318 |
+
|
319 |
+
/**
|
320 |
+
* Change the shapes of the network list elements
|
321 |
+
*
|
322 |
+
* @param $
|
323 |
+
*/
|
324 |
+
shapes: function ($) {
|
325 |
+
|
326 |
+
$('input[name="kiwi_general_settings[button_shape]"]:radio').change(function () {
|
327 |
+
$('.sl-kiwi-dragdrop').find("[data-id='networks_ordering']").attr('class', this.value);
|
328 |
+
});
|
329 |
+
|
330 |
+
$('input[name="kiwi_general_settings[button_shape_floating]"]:radio').change(function () {
|
331 |
+
$('.sl-kiwi-dragdrop').find("[data-id='networks_ordering_floating_bar']").attr('class', this.value);
|
332 |
+
});
|
333 |
+
kiwi.loaded += 1;
|
334 |
+
},
|
335 |
+
|
336 |
+
/**
|
337 |
+
* Toggle selection of all networks in article and floating bar
|
338 |
+
*
|
339 |
+
* @param $
|
340 |
+
*/
|
341 |
+
allCheckbox: function ($) {
|
342 |
+
var state,
|
343 |
+
floatingBar = $('input[name="kiwi_general_settings[networks_floating_bar][]"]'),
|
344 |
+
floatingBarChecked = $('input[name="kiwi_general_settings[networks_floating_bar][]"]:checked'),
|
345 |
+
articleBar = $('input[name="kiwi_general_settings[networks_article_bar][]"]'),
|
346 |
+
articleBarChecked = $('input[name="kiwi_general_settings[networks_article_bar][]"]:checked');
|
347 |
+
|
348 |
+
|
349 |
+
if ( floatingBar.length === floatingBarChecked.length ) {
|
350 |
+
$('#floating-bar-all').prop('checked', true);
|
351 |
+
}
|
352 |
+
|
353 |
+
if ( articleBar.length === articleBarChecked.length ) {
|
354 |
+
$('#social-bar-all').prop('checked', true);
|
355 |
+
}
|
356 |
+
|
357 |
+
|
358 |
+
$('#social-bar-all, #floating-bar-all').on('click', function (event) {
|
359 |
+
switch ( $(this).attr('id') ) {
|
360 |
+
case 'floating-bar-all':
|
361 |
+
state = $(this).prop('checked');
|
362 |
+
$('input[name="kiwi_general_settings[networks_floating_bar][]"]').prop('checked', state).change();
|
363 |
+
break;
|
364 |
+
default:
|
365 |
+
state = $(this).prop('checked');
|
366 |
+
$('input[name="kiwi_general_settings[networks_article_bar][]"]').prop('checked', state).change();
|
367 |
+
break;
|
368 |
+
}
|
369 |
+
});
|
370 |
+
},
|
371 |
+
|
372 |
+
/**
|
373 |
+
* Sorting functionality on the network list
|
374 |
+
*
|
375 |
+
* @param $
|
376 |
+
*/
|
377 |
+
sortable: function ($) {
|
378 |
+
var kiwi_sortable = $(".sl-kiwi-dragdrop ul[data-id='networks_ordering']");
|
379 |
+
kiwi_sortable.sortable({
|
380 |
+
placeholder: "sl-kiwi-dragdrop-placeholder",
|
381 |
+
stop : function (event, ui) {
|
382 |
+
var elements = [],
|
383 |
+
input = $(this).attr('data-id');
|
384 |
+
|
385 |
+
$('.sl-kiwi-dragdrop ul[data-id="networks_ordering"] li').each(function (index, elem) {
|
386 |
+
var kiwi_pos = $(elem).attr('data-item');
|
387 |
+
elements.push(kiwi_pos);
|
388 |
+
});
|
389 |
+
|
390 |
+
var serialize_elem = elements.join();
|
391 |
+
$('#kiwi_' + input).val(serialize_elem).trigger('change');
|
392 |
+
},
|
393 |
+
create : function (event, ui) {
|
394 |
+
kiwi.loaded += 1
|
395 |
+
}
|
396 |
+
}).disableSelection();
|
397 |
+
},
|
398 |
+
|
399 |
+
/**
|
400 |
+
* Handle the modal content
|
401 |
+
*
|
402 |
+
* @param $
|
403 |
+
*/
|
404 |
+
upsellModalPage: function ($) {
|
405 |
+
var context = $('.kiwi-modal');
|
406 |
+
|
407 |
+
$('.ui-locked, .epsilon-ui-locked, .epsilon-locked').on('click', function (e) {
|
408 |
+
context.fadeIn(200, function () {
|
409 |
+
context.addClass('in');
|
410 |
+
});
|
411 |
+
});
|
412 |
+
|
413 |
+
$('input[name="kiwi_product_upsell[type]"]').on('change', function () {
|
414 |
+
if ( $(this).val() === 'business' ) {
|
415 |
+
$('.kiwi-modal').find('.company-group').fadeIn(300);
|
416 |
+
} else {
|
417 |
+
context.find('.company-group').fadeOut(300);
|
418 |
+
context.find('.company-group input').val('');
|
419 |
+
}
|
420 |
+
});
|
421 |
+
|
422 |
+
$('.kiwi-modal .close-modal').on('click', function (e) {
|
423 |
+
e.preventDefault();
|
424 |
+
|
425 |
+
context.removeClass('in');
|
426 |
+
setTimeout(function () {
|
427 |
+
context.fadeOut(200);
|
428 |
+
context.find('#page-one').show();
|
429 |
+
context.find('#page-two').hide();
|
430 |
+
context.find('.modal-footer').show();
|
431 |
+
context.find('.modal-title').text(kiwi_locale.kiwi_step_one_title);
|
432 |
+
context.find('.modal-subtitle').text(kiwi_locale.kiwi_step_one_subtitle);
|
433 |
+
}, 200);
|
434 |
+
});
|
435 |
+
|
436 |
+
$('.button-modal').on('click', function (e) {
|
437 |
+
e.preventDefault();
|
438 |
+
var action = $(this).attr('data-action');
|
439 |
+
if ( action !== 'modal-buy-now' ) {
|
440 |
+
return;
|
441 |
+
}
|
442 |
+
var current_page = $('#page-one'),
|
443 |
+
next_page = $('#page-two'),
|
444 |
+
footer = $('.kiwi-modal .modal-footer'),
|
445 |
+
title_container = $('.kiwi-modal .modal-header-content'),
|
446 |
+
title = title_container.find('.modal-title'),
|
447 |
+
subtitle = title_container.find('.modal-subtitle');
|
448 |
+
|
449 |
+
title.fadeOut(300, function () {
|
450 |
+
title.text(kiwi_locale.kiwi_step_two_title);
|
451 |
+
title.fadeIn(300);
|
452 |
+
});
|
453 |
+
|
454 |
+
subtitle.fadeOut(300, function () {
|
455 |
+
subtitle.text(kiwi_locale.kiwi_step_two_subtitle);
|
456 |
+
subtitle.fadeIn(300);
|
457 |
+
});
|
458 |
+
|
459 |
+
footer.fadeOut(300);
|
460 |
+
current_page.fadeOut(300, function () {
|
461 |
+
next_page.fadeIn(300);
|
462 |
+
});
|
463 |
+
});
|
464 |
+
},
|
465 |
+
|
466 |
+
/**
|
467 |
+
* Handle the form on the modal upsell
|
468 |
+
* @param $
|
469 |
+
*/
|
470 |
+
handleModalPageForm: function ($) {
|
471 |
+
$('.button-modal').on('click', function (e) {
|
472 |
+
e.preventDefault();
|
473 |
+
var action = $(this).attr('data-action');
|
474 |
+
|
475 |
+
if ( action !== 'continue-to-checkout' ) {
|
476 |
+
return;
|
477 |
+
}
|
478 |
+
|
479 |
+
var fields = {
|
480 |
+
"customer": {
|
481 |
+
"first_name" : $('input[name="kiwi_product_upsell[first_name]"]').val(),
|
482 |
+
"last_name" : $('input[name="kiwi_product_upsell[last_name]"]').val(),
|
483 |
+
"email" : $('input[name="kiwi_product_upsell[email]"]').val(),
|
484 |
+
"vat" : $('input[name="kiwi_product_upsell[vat]"]').val(),
|
485 |
+
"company_name": $('input[name="kiwi_product_upsell[company_name]"]').val()
|
486 |
+
},
|
487 |
+
"product" : {
|
488 |
+
"id" : $('input[name="kiwi_product_upsell[product]"]').val(),
|
489 |
+
"options" : {},
|
490 |
+
"quantity": "1"
|
491 |
+
}
|
492 |
+
};
|
493 |
+
|
494 |
+
var obj = JSON.stringify(fields);
|
495 |
+
var hash = encodeURIComponent(btoa(obj));
|
496 |
+
|
497 |
+
var newwindow = window.open('https://www.machothemes.com/checkout/?mthash=' + hash);
|
498 |
+
|
499 |
+
if ( window.focus ) {
|
500 |
+
newwindow.focus()
|
501 |
+
}
|
502 |
+
});
|
503 |
+
}
|
504 |
+
},
|
505 |
+
|
506 |
+
frontend: {
|
507 |
+
/**
|
508 |
+
* Handles the popup window on click events
|
509 |
+
* @param $
|
510 |
+
*/
|
511 |
+
modalPopup: function ($) {
|
512 |
+
$('a[data-class="popup"]').on('click', function (e) {
|
513 |
+
e.preventDefault();
|
514 |
+
var kiwiTracking;
|
515 |
+
|
516 |
+
var newwindow = window.open($(this).attr('href'), '', 'height=500,width=500');
|
517 |
+
if ( window.focus ) {
|
518 |
+
newwindow.focus()
|
519 |
+
}
|
520 |
+
|
521 |
+
var network = $(this).attr('data-network'),
|
522 |
+
parent = $(this).parent(),
|
523 |
+
context;
|
524 |
+
|
525 |
+
if ( parent.is('li') ) {
|
526 |
+
context = parent.parent().attr('data-tracking-container');
|
527 |
+
kiwiTracking = kiwi.frontend.checkTracking(this);
|
528 |
+
} else if ( parent.is('blockquote') ) {
|
529 |
+
context = 'click-to-tweet';
|
530 |
+
kiwiTracking = 'true' === $(this).attr('data-tracking');
|
531 |
+
}
|
532 |
+
|
533 |
+
if ( typeof ga === "function" && true === kiwiTracking ) {
|
534 |
+
ga('send', 'event', 'kiwi_social_media', 'kiwi_' + context + '_' + network + '_share');
|
535 |
+
}
|
536 |
+
|
537 |
+
return false;
|
538 |
+
});
|
539 |
+
},
|
540 |
+
|
541 |
+
/**
|
542 |
+
* Highlighted content
|
543 |
+
*/
|
544 |
+
highlighted: {
|
545 |
+
start : 0,
|
546 |
+
end : 0,
|
547 |
+
url : null,
|
548 |
+
title : null,
|
549 |
+
content: null
|
550 |
+
},
|
551 |
+
|
552 |
+
/**
|
553 |
+
* Highlight share functionality
|
554 |
+
* @param $
|
555 |
+
*/
|
556 |
+
highlightShare: function ($) {
|
557 |
+
var areas = $('.kiwi-highlighter-excerpt-area, .kiwi-highlighter-content-area');
|
558 |
+
|
559 |
+
$('.kiwi-highlight-sharer a').on('click', function (e) {
|
560 |
+
e.preventDefault();
|
561 |
+
var proxy = kiwi.frontend.highlighted,
|
562 |
+
href = null;
|
563 |
+
|
564 |
+
kiwi.frontend.highlighted = {};
|
565 |
+
|
566 |
+
href = this.href.replace('%url%', encodeURIComponent(proxy.url));
|
567 |
+
href = href.replace('%text%', encodeURIComponent(proxy.content));
|
568 |
+
window.open(href, "tweethighlight", "width=575,height=430,toolbar=false,menubar=false,location=false,status=false");
|
569 |
+
|
570 |
+
var kiwiTracking = 'true' === $(this).attr('data-tracking');
|
571 |
+
|
572 |
+
if ( typeof ga === "function" && true === kiwiTracking ) {
|
573 |
+
var network = 'twitter',
|
574 |
+
context = 'highlight-to-tweet';
|
575 |
+
|
576 |
+
ga('send', 'event', 'kiwi_social_media', 'kiwi_' + context + '_' + network + '_share');
|
577 |
+
}
|
578 |
+
|
579 |
+
$('.kiwi-highlight-sharer').css({
|
580 |
+
display: 'none'
|
581 |
+
});
|
582 |
+
|
583 |
+
return false;
|
584 |
+
});
|
585 |
+
|
586 |
+
$('body').on('mousedown vmouseup', function (e) {
|
587 |
+
var parent = $(e.target).parent(),
|
588 |
+
sharer = $('.kiwi-highlight-sharer');
|
589 |
+
|
590 |
+
if ( parent.hasClass('kiwi-highlight-sharer') || parent.is('a') ) {
|
591 |
+
return;
|
592 |
+
}
|
593 |
+
|
594 |
+
if ( sharer.is(':not(:hidden)') ) {
|
595 |
+
sharer.css({
|
596 |
+
display: 'none'
|
597 |
+
});
|
598 |
+
}
|
599 |
+
});
|
600 |
+
|
601 |
+
areas.on('mousedown vmouseup', function (e) {
|
602 |
+
kiwi.frontend.highlighted.start = e.pageX;
|
603 |
+
var sharer = $('.kiwi-highlight-sharer');
|
604 |
+
if ( sharer.is(':not(:hidden)') ) {
|
605 |
+
sharer.css({
|
606 |
+
display: 'none'
|
607 |
+
});
|
608 |
+
}
|
609 |
+
|
610 |
+
});
|
611 |
+
|
612 |
+
areas.on('mouseup vmouseup', function (e) {
|
613 |
+
var selection = kiwi.frontend.getSelected(),
|
614 |
+
sharer = $('.kiwi-highlight-sharer');
|
615 |
+
|
616 |
+
kiwi.frontend.highlighted.end = e.pageX;
|
617 |
+
if ( typeof selection === 'undefined' ) {
|
618 |
+
sharer.css({ display: 'none' });
|
619 |
+
return;
|
620 |
+
}
|
621 |
+
|
622 |
+
var object = {
|
623 |
+
start : e.pageX,
|
624 |
+
end : e.pageX,
|
625 |
+
url : $(this).attr('data-url'),
|
626 |
+
title : $(this).attr('data-title'),
|
627 |
+
content: selection
|
628 |
+
};
|
629 |
+
|
630 |
+
var offset = parseInt(Math.abs((kiwi.frontend.highlighted.start - kiwi.frontend.highlighted.end) / 2));
|
631 |
+
|
632 |
+
sharer.css({
|
633 |
+
position: 'absolute',
|
634 |
+
left : e.pageX - offset,
|
635 |
+
top : e.pageY - 50,
|
636 |
+
display : 'block'
|
637 |
+
});
|
638 |
+
|
639 |
+
kiwi.frontend.highlighted = object;
|
640 |
+
});
|
641 |
+
|
642 |
+
document.addEventListener("selectionchange", function () {
|
643 |
+
kiwi.frontend.getSelected();
|
644 |
+
}, false);
|
645 |
+
|
646 |
+
},
|
647 |
+
|
648 |
+
/**
|
649 |
+
* Get selection text
|
650 |
+
*
|
651 |
+
* @returns {string}
|
652 |
+
*/
|
653 |
+
getSelected: function () {
|
654 |
+
var selection = window.getSelection();
|
655 |
+
var text = selection.toString();
|
656 |
+
if ( '' === text ) {
|
657 |
+
return;
|
658 |
+
}
|
659 |
+
|
660 |
+
return text;
|
661 |
+
},
|
662 |
+
|
663 |
+
/**
|
664 |
+
* Check tracking helper
|
665 |
+
*
|
666 |
+
* @param element
|
667 |
+
* @returns {boolean}
|
668 |
+
*/
|
669 |
+
checkTracking: function (element) {
|
670 |
+
var parent = jQuery(element).parents('ul');
|
671 |
+
return 'true' === parent.attr('data-tracking');
|
672 |
+
},
|
673 |
+
|
674 |
+
/**
|
675 |
+
* Animate the floating bar
|
676 |
+
* @param $
|
677 |
+
*/
|
678 |
+
handleFloatingBarDisplay: function ($) {
|
679 |
+
var element = $('.kiwi-floating-bar'),
|
680 |
+
position;
|
681 |
+
if ( element.hasClass('bottom') ) {
|
682 |
+
position = 'bottom';
|
683 |
+
} else if ( element.hasClass('right') ) {
|
684 |
+
position = 'right';
|
685 |
+
} else {
|
686 |
+
position = 'left';
|
687 |
+
}
|
688 |
+
|
689 |
+
setTimeout(function () {
|
690 |
+
switch ( position ) {
|
691 |
+
case 'bottom':
|
692 |
+
element.css({ 'bottom': 0 });
|
693 |
+
break;
|
694 |
+
case 'right':
|
695 |
+
element.css({ 'right': 0 });
|
696 |
+
break;
|
697 |
+
default:
|
698 |
+
element.css({ 'left': 0 });
|
699 |
+
break;
|
700 |
+
}
|
701 |
+
}, 300);
|
702 |
+
}
|
703 |
+
},
|
704 |
+
|
705 |
+
/**
|
706 |
+
* Initiate the helper functions
|
707 |
+
*
|
708 |
+
* @param $
|
709 |
+
*/
|
710 |
+
init: function ($) {
|
711 |
+
/**
|
712 |
+
* Interface methods
|
713 |
+
*/
|
714 |
+
kiwi.interface.tabs($);
|
715 |
+
kiwi.interface.toggleHelper($);
|
716 |
+
kiwi.interface.colorFields($);
|
717 |
+
kiwi.interface.saveChangesNotification($);
|
718 |
+
/**
|
719 |
+
* Interaction handlers
|
720 |
+
*/
|
721 |
+
kiwi.interactions.toggles($);
|
722 |
+
kiwi.interactions.radioToggles($);
|
723 |
+
kiwi.interactions.networks($);
|
724 |
+
kiwi.interactions.shapes($);
|
725 |
+
kiwi.frontend.modalPopup($);
|
726 |
+
kiwi.interactions.sortable($);
|
727 |
+
kiwi.interactions.allCheckbox($);
|
728 |
+
kiwi.interactions.articleStyling($);
|
729 |
+
|
730 |
+
/**
|
731 |
+
* Preloader handler
|
732 |
+
*
|
733 |
+
* @type {number}
|
734 |
+
*/
|
735 |
+
var loader = setInterval(function () {
|
736 |
+
if ( kiwi.loaded >= 8 ) {
|
737 |
+
$(document).trigger('KiwiObjectsLoaded');
|
738 |
+
clearInterval(loader);
|
739 |
+
}
|
740 |
+
}, 100);
|
741 |
+
}
|
742 |
+
};
|
assets/js/kiwi.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
"use strict";var kiwi={loaded:0,interface:{saveChangesNotification:function(a){var b=a("#sl-kiwi"),c=b.find(".kiwi-notification-popup"),d=c.find("input"),e=b.find("form").find("#submit");b.find("input").on("change",function(){c.slideDown(300)}),d.on("click",function(){e.click()})},preloader:function(a){var b=a("#sl-kiwi"),c=b.find(".overlay"),d=a('ul[data-id="networks_ordering_floating_bar"]');setTimeout(function(){c.find(".overlay-content").fadeOut(400,function(){c.removeClass("active").css({"z-index":0,bottom:"initial",right:"initial"}),d.css({right:"-46px",opacity:1,"z-index":1})})},1500)},colorFields:function(a){var b=a(".kiwi-styles .epsilon-ui-color input"),c=a(".kiwi-styles .epsilon-custom-colors .epsilon-ui-color input");a(".shift a");b.wpColorPicker(),a('input[name="kiwi_general_settings[styles_colors]"]:radio').change(function(){var b=a(this).val();switch(b){case"custom":a.each(c,function(){a(this).val(a(this).data("color-custom")).trigger("change")});break;case"monochrome":a.each(c,function(){a(this).val(a(this).data("color-monochrome")).trigger("change")});break;default:a.each(c,function(){a(this).val(a(this).data("color-original")).trigger("change")})}}),a.each(b,function(){var b=a(this).parents(".epsilon-ui-color"),c=b.find("em"),d=a(this),e=b.parent().parent().data("network");a(".shift").find(".kiwi-nw-"+e),d.wpColorPicker("color"),b.attr("data-prop");a(this).wpColorPicker({change:function(a,b){var e=d.wpColorPicker("color");c.html(e)}})});var d=a(".floating-bar-background input");d.length&&d.wpColorPicker({defaultColor:"#272F32",change:function(b,c){var e=d.wpColorPicker("color");a(".floating-bar-background").find("em").html(e)}}),kiwi.loaded+=1},toggleHelper:function(a){a(".epsilon-ui-option input").keypress(function(b){var c=a(this).closest(".epsilon-ui-option").find(".epsilon-ui-overlay.active").length;c&&b.keyCode>36&&b.keyCode<41&&b.preventDefault()}),kiwi.loaded+=1},tabs:function(a){a(".epsilon-ui-tabs a").click(function(){if(a(this).closest("li").hasClass("selected"))return 0;var b=a(this).attr("data-tab");return a(this).closest("ul").find(".selected").removeClass("selected"),a(this).closest("li").addClass("selected"),a(".sl-kiwi-content .epsilon-tab-active").removeClass("epsilon-tab-active"),a(".sl-kiwi-content ."+b).addClass("epsilon-tab-active"),document.cookie="tab="+b,a(document).trigger("KiwiTabChanged"),!1}),kiwi.loaded+=1}},interactions:{registration:function(a){a(".kiwi-ajax-activation").on("click",function(b){b.preventDefault();var c={action:"kiwi_social_share_set_option",args:{group:"kiwi_registration",option:"license_key",default:!1,value:a(this).parent().find("#kiwi_pro_registration").val()}};jQuery.ajax({dataType:"json",type:"POST",url:ajaxurl,data:c,complete:function(a){a.responseText&&"Success"===a.responseText&&location.reload()}})}),a(".kiwi-ajax-registration-action").on("click",function(b){b.preventDefault();var c=a(this),d={action:"kiwi_social_share_edd_helper",args:{todo:a(this).attr("data-action")}};jQuery.ajax({dataType:"json",type:"POST",url:ajaxurl,data:d,complete:function(a){if(a.responseJSON.status)switch(a.responseJSON.message){case"active":c.attr("data-action","deactivate").addClass("button").removeClass("button-primary").val("Deactivate License");break;case"site_inactive":c.attr("data-action","activate").addClass("button-primary").removeClass("button").val("Activate License")}}})})},networks:function(a){a('.sl-kiwi-tab-networks .sl-kiwi-networks input[data-source="article-bar"]').on("click change",function(){var b=a(this).attr("data-list-item");a(this).is(":checked")?a('.sl-kiwi-dragdrop ul[data-id="networks_ordering"] li .'+b).closest("li").removeClass("sl-kiwi-item-remove").addClass("sl-kiwi-item-add"):a('.sl-kiwi-dragdrop ul[data-id="networks_ordering"] li .'+b).closest("li").removeClass("sl-kiwi-item-add").addClass("sl-kiwi-item-remove")}),a('.sl-kiwi-tab-networks .sl-kiwi-networks input[data-source="floating-bar"]').on("click change",function(){var b=a(this).attr("data-list-item");a(this).is(":checked")?a('.sl-kiwi-dragdrop ul[data-id="networks_ordering_floating_bar"] li .'+b).closest("li").removeClass("sl-kiwi-item-remove").addClass("sl-kiwi-item-add"):a('.sl-kiwi-dragdrop ul[data-id="networks_ordering_floating_bar"] li .'+b).closest("li").removeClass("sl-kiwi-item-add").addClass("sl-kiwi-item-remove")}),kiwi.loaded+=1},articleStyling:function(a){a('input[name="kiwi_general_settings[article_bar_style]"]:radio').change(function(){a(".sl-kiwi-dragdrop").find("[data-id='networks_ordering']").attr("data-style",this.value)})},toggles:function(a){a(".epsilon-ui-toggle input").click(function(){a(this).prop("checked")?a(this).val("on"):a(this).val("");var b=a(this).closest(".sl-kiwi-opt-group");a(this).is(":checked")?a(".epsilon-ui-overlay",b).removeClass("active"):a(".epsilon-ui-overlay",b).addClass("active")}),kiwi.loaded+=1},radioToggles:function(a){a(".sl-kiwi-radio-post-types .epsilon-ui-radio input").click(function(){"all"===a(this).val()?a(this).parent().parent().find(".epsilon-ui-checklist").slideUp():"custom"===a(this).val()&&a(this).parent().parent().find(".epsilon-ui-checklist").slideDown()}),a(".epsilon-ui-radio-toggle input").click(function(){"original"===a(this).val()?a(this).parents(".sl-kiwi-tab-networks").find(".epsilon-ui-overlay").addClass("active"):a(this).parents(".sl-kiwi-tab-networks").find(".epsilon-ui-overlay").removeClass("active")}),kiwi.loaded+=1},shapes:function(a){a('input[name="kiwi_general_settings[button_shape]"]:radio').change(function(){a(".sl-kiwi-dragdrop").find("[data-id='networks_ordering']").attr("class",this.value)}),a('input[name="kiwi_general_settings[button_shape_floating]"]:radio').change(function(){a(".sl-kiwi-dragdrop").find("[data-id='networks_ordering_floating_bar']").attr("class",this.value)}),kiwi.loaded+=1},allCheckbox:function(a){var b,c=a('input[name="kiwi_general_settings[networks_floating_bar][]"]'),d=a('input[name="kiwi_general_settings[networks_floating_bar][]"]:checked'),e=a('input[name="kiwi_general_settings[networks_article_bar][]"]'),f=a('input[name="kiwi_general_settings[networks_article_bar][]"]:checked');c.length===d.length&&a("#floating-bar-all").prop("checked",!0),e.length===f.length&&a("#social-bar-all").prop("checked",!0),a("#social-bar-all, #floating-bar-all").on("click",function(c){switch(a(this).attr("id")){case"floating-bar-all":b=a(this).prop("checked"),a('input[name="kiwi_general_settings[networks_floating_bar][]"]').prop("checked",b).change();break;default:b=a(this).prop("checked"),a('input[name="kiwi_general_settings[networks_article_bar][]"]').prop("checked",b).change()}})},sortable:function(a){var b=a(".sl-kiwi-dragdrop ul[data-id='networks_ordering']");b.sortable({placeholder:"sl-kiwi-dragdrop-placeholder",stop:function(b,c){var d=[],e=a(this).attr("data-id");a('.sl-kiwi-dragdrop ul[data-id="networks_ordering"] li').each(function(b,c){var e=a(c).attr("data-item");d.push(e)});var f=d.join();a("#kiwi_"+e).val(f).trigger("change")},create:function(a,b){kiwi.loaded+=1}}).disableSelection()},upsellModalPage:function(a){var b=a(".kiwi-modal");a(".ui-locked, .epsilon-ui-locked, .epsilon-locked").on("click",function(a){b.fadeIn(200,function(){b.addClass("in")})}),a('input[name="kiwi_product_upsell[type]"]').on("change",function(){"business"===a(this).val()?a(".kiwi-modal").find(".company-group").fadeIn(300):(b.find(".company-group").fadeOut(300),b.find(".company-group input").val(""))}),a(".kiwi-modal .close-modal").on("click",function(a){a.preventDefault(),b.removeClass("in"),setTimeout(function(){b.fadeOut(200),b.find("#page-one").show(),b.find("#page-two").hide(),b.find(".modal-footer").show(),b.find(".modal-title").text(kiwi_locale.kiwi_step_one_title),b.find(".modal-subtitle").text(kiwi_locale.kiwi_step_one_subtitle)},200)}),a(".button-modal").on("click",function(b){b.preventDefault();var c=a(this).attr("data-action");if("modal-buy-now"===c){var d=a("#page-one"),e=a("#page-two"),f=a(".kiwi-modal .modal-footer"),g=a(".kiwi-modal .modal-header-content"),h=g.find(".modal-title"),i=g.find(".modal-subtitle");h.fadeOut(300,function(){h.text(kiwi_locale.kiwi_step_two_title),h.fadeIn(300)}),i.fadeOut(300,function(){i.text(kiwi_locale.kiwi_step_two_subtitle),i.fadeIn(300)}),f.fadeOut(300),d.fadeOut(300,function(){e.fadeIn(300)})}})},handleModalPageForm:function(a){a(".button-modal").on("click",function(b){b.preventDefault();var c=a(this).attr("data-action");if("continue-to-checkout"===c){var d={customer:{first_name:a('input[name="kiwi_product_upsell[first_name]"]').val(),last_name:a('input[name="kiwi_product_upsell[last_name]"]').val(),email:a('input[name="kiwi_product_upsell[email]"]').val(),vat:a('input[name="kiwi_product_upsell[vat]"]').val(),company_name:a('input[name="kiwi_product_upsell[company_name]"]').val()},product:{id:a('input[name="kiwi_product_upsell[product]"]').val(),options:{},quantity:"1"}},e=JSON.stringify(d),f=encodeURIComponent(btoa(e)),g=window.open("https://www.machothemes.com/checkout/?mthash="+f);window.focus&&g.focus()}})}},frontend:{modalPopup:function(a){a('a[data-class="popup"]').on("click",function(b){b.preventDefault();var c,d=window.open(a(this).attr("href"),"","height=500,width=500");window.focus&&d.focus();var e,f=a(this).attr("data-network"),g=a(this).parent();return g.is("li")?(e=g.parent().attr("data-tracking-container"),c=kiwi.frontend.checkTracking(this)):g.is("blockquote")&&(e="click-to-tweet",c="true"===a(this).attr("data-tracking")),"function"==typeof ga&&!0===c&&ga("send","event","kiwi_social_media","kiwi_"+e+"_"+f+"_share"),!1})},highlighted:{start:0,end:0,url:null,title:null,content:null},highlightShare:function(a){var b=a(".kiwi-highlighter-excerpt-area, .kiwi-highlighter-content-area");a(".kiwi-highlight-sharer a").on("click",function(b){b.preventDefault();var c=kiwi.frontend.highlighted,d=null;kiwi.frontend.highlighted={},d=this.href.replace("%url%",encodeURIComponent(c.url)),d=d.replace("%text%",encodeURIComponent(c.content)),window.open(d,"tweethighlight","width=575,height=430,toolbar=false,menubar=false,location=false,status=false");var e="true"===a(this).attr("data-tracking");if("function"==typeof ga&&!0===e){var f="twitter",g="highlight-to-tweet";ga("send","event","kiwi_social_media","kiwi_"+g+"_"+f+"_share")}return a(".kiwi-highlight-sharer").css({display:"none"}),!1}),a("body").on("mousedown vmouseup",function(b){var c=a(b.target).parent(),d=a(".kiwi-highlight-sharer");c.hasClass("kiwi-highlight-sharer")||c.is("a")||d.is(":not(:hidden)")&&d.css({display:"none"})}),b.on("mousedown vmouseup",function(b){kiwi.frontend.highlighted.start=b.pageX;var c=a(".kiwi-highlight-sharer");c.is(":not(:hidden)")&&c.css({display:"none"})}),b.on("mouseup vmouseup",function(b){var c=kiwi.frontend.getSelected(),d=a(".kiwi-highlight-sharer");if(kiwi.frontend.highlighted.end=b.pageX,"undefined"==typeof c)return void d.css({display:"none"});var e={start:b.pageX,end:b.pageX,url:a(this).attr("data-url"),title:a(this).attr("data-title"),content:c},f=parseInt(Math.abs((kiwi.frontend.highlighted.start-kiwi.frontend.highlighted.end)/2));d.css({position:"absolute",left:b.pageX-f,top:b.pageY-50,display:"block"}),kiwi.frontend.highlighted=e}),document.addEventListener("selectionchange",function(){kiwi.frontend.getSelected()},!1)},getSelected:function(){var a=window.getSelection(),b=a.toString();if(""!==b)return b},checkTracking:function(a){var b=jQuery(a).parents("ul");return"true"===b.attr("data-tracking")},handleFloatingBarDisplay:function(a){var b,c=a(".kiwi-floating-bar");b=c.hasClass("bottom")?"bottom":c.hasClass("right")?"right":"left",setTimeout(function(){switch(b){case"bottom":c.css({bottom:0});break;case"right":c.css({right:0});break;default:c.css({left:0})}},300)}},init:function(a){kiwi.interface.tabs(a),kiwi.interface.toggleHelper(a),kiwi.interface.colorFields(a),kiwi.interface.saveChangesNotification(a),kiwi.interactions.toggles(a),kiwi.interactions.radioToggles(a),kiwi.interactions.networks(a),kiwi.interactions.shapes(a),kiwi.frontend.modalPopup(a),kiwi.interactions.sortable(a),kiwi.interactions.allCheckbox(a),kiwi.interactions.articleStyling(a);var b=setInterval(function(){kiwi.loaded>=8&&(a(document).trigger("KiwiObjectsLoaded"),clearInterval(b))},100)}};
|
1 |
+
"use strict";var kiwi={loaded:0,interface:{saveChangesNotification:function(a){var b=a("#sl-kiwi"),c=b.find(".kiwi-notification-popup"),d=c.find("input"),e=b.find("form").find("#submit");b.find("input").on("change",function(){c.slideDown(300)}),d.on("click",function(){e.click()})},preloader:function(a){var b=a("#sl-kiwi"),c=b.find(".overlay"),d=a('ul[data-id="networks_ordering_floating_bar"]');setTimeout(function(){c.find(".overlay-content").fadeOut(400,function(){c.removeClass("active").css({"z-index":0,bottom:"initial",right:"initial"}),d.css({right:"-46px",opacity:1,"z-index":1})})},1500)},colorFields:function(a){var b=a(".kiwi-styles .epsilon-ui-color input"),c=a(".kiwi-styles .epsilon-custom-colors .epsilon-ui-color input");a(".shift a");b.wpColorPicker(),a('input[name="kiwi_general_settings[styles_colors]"]:radio').change(function(){switch(a(this).val()){case"custom":a.each(c,function(){a(this).val(a(this).data("color-custom")).trigger("change")});break;case"monochrome":a.each(c,function(){a(this).val(a(this).data("color-monochrome")).trigger("change")});break;default:a.each(c,function(){a(this).val(a(this).data("color-original")).trigger("change")})}}),a.each(b,function(){var b=a(this).parents(".epsilon-ui-color"),c=b.find("em"),d=a(this),e=b.parent().parent().data("network");a(".shift").find(".kiwi-nw-"+e),d.wpColorPicker("color"),b.attr("data-prop");a(this).wpColorPicker({change:function(a,b){var e=d.wpColorPicker("color");c.html(e)}})});var d=a(".floating-bar-background input");d.length&&d.wpColorPicker({defaultColor:"#272F32",change:function(b,c){var e=d.wpColorPicker("color");a(".floating-bar-background").find("em").html(e)}}),kiwi.loaded+=1},toggleHelper:function(a){a(".epsilon-ui-option input").keypress(function(b){a(this).closest(".epsilon-ui-option").find(".epsilon-ui-overlay.active").length&&b.keyCode>36&&b.keyCode<41&&b.preventDefault()}),kiwi.loaded+=1},tabs:function(a){a(".epsilon-ui-tabs a").click(function(){if(a(this).closest("li").hasClass("selected"))return 0;var b=a(this).attr("data-tab");return a(this).closest("ul").find(".selected").removeClass("selected"),a(this).closest("li").addClass("selected"),a(".sl-kiwi-content .epsilon-tab-active").removeClass("epsilon-tab-active"),a(".sl-kiwi-content ."+b).addClass("epsilon-tab-active"),document.cookie="tab="+b,a(document).trigger("KiwiTabChanged"),!1}),kiwi.loaded+=1}},interactions:{registration:function(a){a(".kiwi-ajax-activation").on("click",function(b){b.preventDefault();var c={action:"kiwi_social_share_set_option",args:{group:"kiwi_registration",option:"license_key",default:!1,value:a(this).parent().find("#kiwi_pro_registration").val()}};jQuery.ajax({dataType:"json",type:"POST",url:ajaxurl,data:c,complete:function(a){a.responseText&&"Success"===a.responseText&&location.reload()}})}),a(".kiwi-ajax-registration-action").on("click",function(b){b.preventDefault();var c=a(this),d={action:"kiwi_social_share_edd_helper",args:{todo:a(this).attr("data-action")}};jQuery.ajax({dataType:"json",type:"POST",url:ajaxurl,data:d,complete:function(a){if(a.responseJSON.status)switch(a.responseJSON.message){case"active":c.attr("data-action","deactivate").addClass("button").removeClass("button-primary").val("Deactivate License");break;case"site_inactive":c.attr("data-action","activate").addClass("button-primary").removeClass("button").val("Activate License")}}})})},networks:function(a){a('.sl-kiwi-tab-networks .sl-kiwi-networks input[data-source="article-bar"]').on("click change",function(){var b=a(this).attr("data-list-item");a(this).is(":checked")?a('.sl-kiwi-dragdrop ul[data-id="networks_ordering"] li .'+b).closest("li").removeClass("sl-kiwi-item-remove").addClass("sl-kiwi-item-add"):a('.sl-kiwi-dragdrop ul[data-id="networks_ordering"] li .'+b).closest("li").removeClass("sl-kiwi-item-add").addClass("sl-kiwi-item-remove")}),a('.sl-kiwi-tab-networks .sl-kiwi-networks input[data-source="floating-bar"]').on("click change",function(){var b=a(this).attr("data-list-item");a(this).is(":checked")?a('.sl-kiwi-dragdrop ul[data-id="networks_ordering_floating_bar"] li .'+b).closest("li").removeClass("sl-kiwi-item-remove").addClass("sl-kiwi-item-add"):a('.sl-kiwi-dragdrop ul[data-id="networks_ordering_floating_bar"] li .'+b).closest("li").removeClass("sl-kiwi-item-add").addClass("sl-kiwi-item-remove")}),kiwi.loaded+=1},articleStyling:function(a){a('input[name="kiwi_general_settings[article_bar_style]"]:radio').change(function(){a(".sl-kiwi-dragdrop").find("[data-id='networks_ordering']").attr("data-style",this.value)})},toggles:function(a){a(".epsilon-ui-toggle input").click(function(){a(this).prop("checked")?a(this).val("on"):a(this).val("");var b=a(this).closest(".sl-kiwi-opt-group");a(this).is(":checked")?a(".epsilon-ui-overlay",b).removeClass("active"):a(".epsilon-ui-overlay",b).addClass("active")}),kiwi.loaded+=1},radioToggles:function(a){a(".sl-kiwi-radio-post-types .epsilon-ui-radio input").click(function(){"all"===a(this).val()?a(this).parent().parent().find(".epsilon-ui-checklist").slideUp():"custom"===a(this).val()&&a(this).parent().parent().find(".epsilon-ui-checklist").slideDown()}),a(".epsilon-ui-radio-toggle input").click(function(){"original"===a(this).val()?a(this).parents(".sl-kiwi-tab-networks").find(".epsilon-ui-overlay").addClass("active"):a(this).parents(".sl-kiwi-tab-networks").find(".epsilon-ui-overlay").removeClass("active")}),kiwi.loaded+=1},shapes:function(a){a('input[name="kiwi_general_settings[button_shape]"]:radio').change(function(){a(".sl-kiwi-dragdrop").find("[data-id='networks_ordering']").attr("class",this.value)}),a('input[name="kiwi_general_settings[button_shape_floating]"]:radio').change(function(){a(".sl-kiwi-dragdrop").find("[data-id='networks_ordering_floating_bar']").attr("class",this.value)}),kiwi.loaded+=1},allCheckbox:function(a){var b,c=a('input[name="kiwi_general_settings[networks_floating_bar][]"]'),d=a('input[name="kiwi_general_settings[networks_floating_bar][]"]:checked'),e=a('input[name="kiwi_general_settings[networks_article_bar][]"]'),f=a('input[name="kiwi_general_settings[networks_article_bar][]"]:checked');c.length===d.length&&a("#floating-bar-all").prop("checked",!0),e.length===f.length&&a("#social-bar-all").prop("checked",!0),a("#social-bar-all, #floating-bar-all").on("click",function(c){switch(a(this).attr("id")){case"floating-bar-all":b=a(this).prop("checked"),a('input[name="kiwi_general_settings[networks_floating_bar][]"]').prop("checked",b).change();break;default:b=a(this).prop("checked"),a('input[name="kiwi_general_settings[networks_article_bar][]"]').prop("checked",b).change()}})},sortable:function(a){a(".sl-kiwi-dragdrop ul[data-id='networks_ordering']").sortable({placeholder:"sl-kiwi-dragdrop-placeholder",stop:function(b,c){var d=[],e=a(this).attr("data-id");a('.sl-kiwi-dragdrop ul[data-id="networks_ordering"] li').each(function(b,c){var e=a(c).attr("data-item");d.push(e)});var f=d.join();a("#kiwi_"+e).val(f).trigger("change")},create:function(a,b){kiwi.loaded+=1}}).disableSelection()},upsellModalPage:function(a){var b=a(".kiwi-modal");a(".ui-locked, .epsilon-ui-locked, .epsilon-locked").on("click",function(a){b.fadeIn(200,function(){b.addClass("in")})}),a('input[name="kiwi_product_upsell[type]"]').on("change",function(){"business"===a(this).val()?a(".kiwi-modal").find(".company-group").fadeIn(300):(b.find(".company-group").fadeOut(300),b.find(".company-group input").val(""))}),a(".kiwi-modal .close-modal").on("click",function(a){a.preventDefault(),b.removeClass("in"),setTimeout(function(){b.fadeOut(200),b.find("#page-one").show(),b.find("#page-two").hide(),b.find(".modal-footer").show(),b.find(".modal-title").text(kiwi_locale.kiwi_step_one_title),b.find(".modal-subtitle").text(kiwi_locale.kiwi_step_one_subtitle)},200)}),a(".button-modal").on("click",function(b){if(b.preventDefault(),"modal-buy-now"===a(this).attr("data-action")){var c=a("#page-one"),d=a("#page-two"),e=a(".kiwi-modal .modal-footer"),f=a(".kiwi-modal .modal-header-content"),g=f.find(".modal-title"),h=f.find(".modal-subtitle");g.fadeOut(300,function(){g.text(kiwi_locale.kiwi_step_two_title),g.fadeIn(300)}),h.fadeOut(300,function(){h.text(kiwi_locale.kiwi_step_two_subtitle),h.fadeIn(300)}),e.fadeOut(300),c.fadeOut(300,function(){d.fadeIn(300)})}})},handleModalPageForm:function(a){a(".button-modal").on("click",function(b){if(b.preventDefault(),"continue-to-checkout"===a(this).attr("data-action")){var c={customer:{first_name:a('input[name="kiwi_product_upsell[first_name]"]').val(),last_name:a('input[name="kiwi_product_upsell[last_name]"]').val(),email:a('input[name="kiwi_product_upsell[email]"]').val(),vat:a('input[name="kiwi_product_upsell[vat]"]').val(),company_name:a('input[name="kiwi_product_upsell[company_name]"]').val()},product:{id:a('input[name="kiwi_product_upsell[product]"]').val(),options:{},quantity:"1"}},d=JSON.stringify(c),e=encodeURIComponent(btoa(d)),f=window.open("https://www.machothemes.com/checkout/?mthash="+e);window.focus&&f.focus()}})}},frontend:{modalPopup:function(a){a('a[data-class="popup"]').on("click",function(b){b.preventDefault();var c,d=window.open(a(this).attr("href"),"","height=500,width=500");window.focus&&d.focus();var e,f=a(this).attr("data-network"),g=a(this).parent();return g.is("li")?(e=g.parent().attr("data-tracking-container"),c=kiwi.frontend.checkTracking(this)):g.is("blockquote")&&(e="click-to-tweet",c="true"===a(this).attr("data-tracking")),"function"==typeof ga&&!0===c&&ga("send","event","kiwi_social_media","kiwi_"+e+"_"+f+"_share"),!1})},highlighted:{start:0,end:0,url:null,title:null,content:null},highlightShare:function(a){var b=a(".kiwi-highlighter-excerpt-area, .kiwi-highlighter-content-area");a(".kiwi-highlight-sharer a").on("click",function(b){b.preventDefault();var c=kiwi.frontend.highlighted,d=null;kiwi.frontend.highlighted={},d=this.href.replace("%url%",encodeURIComponent(c.url)),d=d.replace("%text%",encodeURIComponent(c.content)),window.open(d,"tweethighlight","width=575,height=430,toolbar=false,menubar=false,location=false,status=false");var e="true"===a(this).attr("data-tracking");if("function"==typeof ga&&!0===e){ga("send","event","kiwi_social_media","kiwi_"+"highlight-to-tweet"+"_"+"twitter"+"_share")}return a(".kiwi-highlight-sharer").css({display:"none"}),!1}),a("body").on("mousedown vmouseup",function(b){var c=a(b.target).parent(),d=a(".kiwi-highlight-sharer");c.hasClass("kiwi-highlight-sharer")||c.is("a")||d.is(":not(:hidden)")&&d.css({display:"none"})}),b.on("mousedown vmouseup",function(b){kiwi.frontend.highlighted.start=b.pageX;var c=a(".kiwi-highlight-sharer");c.is(":not(:hidden)")&&c.css({display:"none"})}),b.on("mouseup vmouseup",function(b){var c=kiwi.frontend.getSelected(),d=a(".kiwi-highlight-sharer");if(kiwi.frontend.highlighted.end=b.pageX,void 0===c)return void d.css({display:"none"});var e={start:b.pageX,end:b.pageX,url:a(this).attr("data-url"),title:a(this).attr("data-title"),content:c},f=parseInt(Math.abs((kiwi.frontend.highlighted.start-kiwi.frontend.highlighted.end)/2));d.css({position:"absolute",left:b.pageX-f,top:b.pageY-50,display:"block"}),kiwi.frontend.highlighted=e}),document.addEventListener("selectionchange",function(){kiwi.frontend.getSelected()},!1)},getSelected:function(){var a=window.getSelection(),b=a.toString();if(""!==b)return b},checkTracking:function(a){return"true"===jQuery(a).parents("ul").attr("data-tracking")},handleFloatingBarDisplay:function(a){var b,c=a(".kiwi-floating-bar");b=c.hasClass("bottom")?"bottom":c.hasClass("right")?"right":"left",setTimeout(function(){switch(b){case"bottom":c.css({bottom:0});break;case"right":c.css({right:0});break;default:c.css({left:0})}},300)}},init:function(a){kiwi.interface.tabs(a),kiwi.interface.toggleHelper(a),kiwi.interface.colorFields(a),kiwi.interface.saveChangesNotification(a),kiwi.interactions.toggles(a),kiwi.interactions.radioToggles(a),kiwi.interactions.networks(a),kiwi.interactions.shapes(a),kiwi.frontend.modalPopup(a),kiwi.interactions.sortable(a),kiwi.interactions.allCheckbox(a),kiwi.interactions.articleStyling(a);var b=setInterval(function(){kiwi.loaded>=8&&(a(document).trigger("KiwiObjectsLoaded"),clearInterval(b))},100)}};
|
assets/vendors/index.php
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
// Silence is golden
|
1 |
+
<?php
|
2 |
+
|
3 |
// Silence is golden
|
changelog.txt
CHANGED
@@ -1,17 +1,22 @@
|
|
1 |
-
*** Kiwi Pro Changelog ***
|
2 |
-
= 2.0.
|
3 |
-
*
|
4 |
-
|
5 |
-
= 2.0.
|
6 |
-
*
|
7 |
-
*
|
8 |
-
* WhatsApp
|
9 |
-
|
10 |
-
= 2.0.
|
11 |
-
*
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
|
|
|
|
|
|
|
|
|
|
17 |
* Minor bugs
|
1 |
+
*** Kiwi Pro Changelog ***
|
2 |
+
= 2.0.7 =
|
3 |
+
* added uninstall feedback
|
4 |
+
|
5 |
+
= 2.0.6 =
|
6 |
+
* WP 4.9 compatibility
|
7 |
+
* Remove url encode on twitter button
|
8 |
+
* WhatsApp button didn't look alright on fit
|
9 |
+
|
10 |
+
= 2.0.4 =
|
11 |
+
* Removed box shadow in the admin window
|
12 |
+
* Changed how URLS are encoded for text
|
13 |
+
* WhatsApp icon visibility is now handled with CSS ( wp_is_mobile function would not work on websites with cache )
|
14 |
+
|
15 |
+
= 2.0.3 =
|
16 |
+
* Saving settings would cause errors on some servers
|
17 |
+
|
18 |
+
= 2.0.2 =
|
19 |
+
* Ajax request failed on license activation
|
20 |
+
|
21 |
+
= 2.0.1 =
|
22 |
* Minor bugs
|
includes/backend/index.php
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
// Silence is golden
|
1 |
+
<?php
|
2 |
+
|
3 |
// Silence is golden
|
includes/backend/kiwi-social-share-backend.php
CHANGED
@@ -1,68 +1,68 @@
|
|
1 |
-
<?php
|
2 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
-
exit;
|
4 |
-
}
|
5 |
-
|
6 |
-
?>
|
7 |
-
<div id="sl-kiwi">
|
8 |
-
<div class="kiwi-notification-popup">
|
9 |
-
<?php echo esc_html__( 'Seems like you made some changes, don\'t forget to save them!', 'kiwi-social-share' ) ?>
|
10 |
-
<input type="button" value="Save Changes" class="button button-primary">
|
11 |
-
</div>
|
12 |
-
<div class="overlay active">
|
13 |
-
<div class="overlay-content">
|
14 |
-
<h4><?php echo esc_html__( 'Loading', 'kiwi-social-share' ); ?></h4>
|
15 |
-
<img src="<?php echo esc_url( Kiwi_Social_Share::instance()->assets_url . '/img/loader.svg' ) ?>"
|
16 |
-
alt="spinner"/>
|
17 |
-
</div>
|
18 |
-
</div>
|
19 |
-
<form method="post" action="options.php" enctype="multipart/form-data">
|
20 |
-
<?php
|
21 |
-
$kiwi_networks = Kiwi_Social_Share_Helper::get_social_network_identities();
|
22 |
-
$networks = Kiwi_Social_Share_Helper::get_checked_networks();
|
23 |
-
$post_types = Kiwi_Social_Share_Helper::get_custom_post_types();
|
24 |
-
$colors = Kiwi_Social_Share_Helper::get_network_colors();
|
25 |
-
$hash = '';
|
26 |
-
|
27 |
-
|
28 |
-
if ( ! empty( $_COOKIE ) && ! empty( $_COOKIE['tab'] ) ) {
|
29 |
-
$hash = $_COOKIE['tab'];
|
30 |
-
}
|
31 |
-
|
32 |
-
/**
|
33 |
-
* Load Kiwi social lists
|
34 |
-
*/
|
35 |
-
require_once dirname( __FILE__ ) . '/parts/kiwi-networks-ordering.php';
|
36 |
-
|
37 |
-
/**
|
38 |
-
* Load epsilon tabs view
|
39 |
-
*/
|
40 |
-
require_once dirname( __FILE__ ) . '/parts/epsilon-tabs.php';
|
41 |
-
|
42 |
-
settings_fields( $this->parent->_token . '_settings' );
|
43 |
-
do_settings_sections( $this->parent->_token . '_settings' );
|
44 |
-
|
45 |
-
?>
|
46 |
-
|
47 |
-
<div class="sl-kiwi-content">
|
48 |
-
<!-- Start Tabs -->
|
49 |
-
<?php
|
50 |
-
/**
|
51 |
-
* Load epsilon tabs content
|
52 |
-
*/
|
53 |
-
require_once dirname( __FILE__ ) . '/parts/kiwi-tab-networks.php';
|
54 |
-
require_once dirname( __FILE__ ) . '/parts/kiwi-tab-article-bar.php';
|
55 |
-
require_once dirname( __FILE__ ) . '/parts/kiwi-tab-floating-bar.php';
|
56 |
-
require_once dirname( __FILE__ ) . '/parts/kiwi-tab-advanced.php';
|
57 |
-
require_once dirname( __FILE__ ) . '/parts/kiwi-tab-social-identity.php';
|
58 |
-
?>
|
59 |
-
<!-- End Tabs -->
|
60 |
-
</div>
|
61 |
-
<?php submit_button( __( 'Save changes', 'kiwi-social-share', 'primary', 'submitter', true, array( 'id' => 'submitter' ) ) ); ?>
|
62 |
-
</form>
|
63 |
-
<?php
|
64 |
-
/* start-lite-version */
|
65 |
-
require_once dirname( __FILE__ ) . '/parts/kiwi-modal-popup.php';
|
66 |
-
/* end-lite-version */
|
67 |
-
?>
|
68 |
</div>
|
1 |
+
<?php
|
2 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
+
exit;
|
4 |
+
}
|
5 |
+
|
6 |
+
?>
|
7 |
+
<div id="sl-kiwi">
|
8 |
+
<div class="kiwi-notification-popup">
|
9 |
+
<?php echo esc_html__( 'Seems like you made some changes, don\'t forget to save them!', 'kiwi-social-share' ) ?>
|
10 |
+
<input type="button" value="Save Changes" class="button button-primary">
|
11 |
+
</div>
|
12 |
+
<div class="overlay active">
|
13 |
+
<div class="overlay-content">
|
14 |
+
<h4><?php echo esc_html__( 'Loading', 'kiwi-social-share' ); ?></h4>
|
15 |
+
<img src="<?php echo esc_url( Kiwi_Social_Share::instance()->assets_url . '/img/loader.svg' ) ?>"
|
16 |
+
alt="spinner"/>
|
17 |
+
</div>
|
18 |
+
</div>
|
19 |
+
<form method="post" action="options.php" enctype="multipart/form-data">
|
20 |
+
<?php
|
21 |
+
$kiwi_networks = Kiwi_Social_Share_Helper::get_social_network_identities();
|
22 |
+
$networks = Kiwi_Social_Share_Helper::get_checked_networks();
|
23 |
+
$post_types = Kiwi_Social_Share_Helper::get_custom_post_types();
|
24 |
+
$colors = Kiwi_Social_Share_Helper::get_network_colors();
|
25 |
+
$hash = '';
|
26 |
+
|
27 |
+
|
28 |
+
if ( ! empty( $_COOKIE ) && ! empty( $_COOKIE['tab'] ) ) {
|
29 |
+
$hash = $_COOKIE['tab'];
|
30 |
+
}
|
31 |
+
|
32 |
+
/**
|
33 |
+
* Load Kiwi social lists
|
34 |
+
*/
|
35 |
+
require_once dirname( __FILE__ ) . '/parts/kiwi-networks-ordering.php';
|
36 |
+
|
37 |
+
/**
|
38 |
+
* Load epsilon tabs view
|
39 |
+
*/
|
40 |
+
require_once dirname( __FILE__ ) . '/parts/epsilon-tabs.php';
|
41 |
+
|
42 |
+
settings_fields( $this->parent->_token . '_settings' );
|
43 |
+
do_settings_sections( $this->parent->_token . '_settings' );
|
44 |
+
|
45 |
+
?>
|
46 |
+
|
47 |
+
<div class="sl-kiwi-content">
|
48 |
+
<!-- Start Tabs -->
|
49 |
+
<?php
|
50 |
+
/**
|
51 |
+
* Load epsilon tabs content
|
52 |
+
*/
|
53 |
+
require_once dirname( __FILE__ ) . '/parts/kiwi-tab-networks.php';
|
54 |
+
require_once dirname( __FILE__ ) . '/parts/kiwi-tab-article-bar.php';
|
55 |
+
require_once dirname( __FILE__ ) . '/parts/kiwi-tab-floating-bar.php';
|
56 |
+
require_once dirname( __FILE__ ) . '/parts/kiwi-tab-advanced.php';
|
57 |
+
require_once dirname( __FILE__ ) . '/parts/kiwi-tab-social-identity.php';
|
58 |
+
?>
|
59 |
+
<!-- End Tabs -->
|
60 |
+
</div>
|
61 |
+
<?php submit_button( __( 'Save changes', 'kiwi-social-share', 'primary', 'submitter', true, array( 'id' => 'submitter' ) ) ); ?>
|
62 |
+
</form>
|
63 |
+
<?php
|
64 |
+
/* start-lite-version */
|
65 |
+
require_once dirname( __FILE__ ) . '/parts/kiwi-modal-popup.php';
|
66 |
+
/* end-lite-version */
|
67 |
+
?>
|
68 |
</div>
|
includes/backend/parts/epsilon-tabs.php
CHANGED
@@ -1,36 +1,36 @@
|
|
1 |
-
<?php
|
2 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
-
exit;
|
4 |
-
}
|
5 |
-
?>
|
6 |
-
|
7 |
-
<div class="epsilon-ui-tabs">
|
8 |
-
<ul>
|
9 |
-
<li class="<?php echo ( $hash === 'sl-kiwi-tab-networks' || empty( $hash ) ) ? 'selected' : ''; ?>">
|
10 |
-
<a href="#" data-tab="sl-kiwi-tab-networks"><i class="dashicons dashicons-laptop"></i>
|
11 |
-
<?php echo esc_html__( 'Networks & Colors', 'kiwi-social-share' ); ?>
|
12 |
-
</a>
|
13 |
-
</li>
|
14 |
-
<li class="<?php echo ( $hash === 'sl-kiwi-tab-article-bar' ) ? 'selected' : ''; ?>">
|
15 |
-
<a href="#" data-tab="sl-kiwi-tab-article-bar"><i class="dashicons dashicons-editor-insertmore"></i>
|
16 |
-
<?php echo esc_html__( 'Article bar', 'kiwi-social-share' ); ?>
|
17 |
-
</a>
|
18 |
-
</li>
|
19 |
-
<li class="<?php echo ( $hash === 'sl-kiwi-tab-floating-bar' ) ? 'selected' : ''; ?>">
|
20 |
-
<a href="#" data-tab="sl-kiwi-tab-floating-bar"><i class="dashicons dashicons-align-left"></i>
|
21 |
-
<?php echo esc_html__( 'Floating bar', 'kiwi-social-share' ); ?>
|
22 |
-
</a>
|
23 |
-
</li>
|
24 |
-
<li class="<?php echo ( $hash === 'sl-kiwi-tab-social-identity' ) ? 'selected' : ''; ?>">
|
25 |
-
<a href="#" data-tab="sl-kiwi-tab-socialIdentity"><i class="dashicons dashicons-share"></i>
|
26 |
-
<?php echo esc_html__( 'Social Identity', 'kiwi-social-share' ); ?>
|
27 |
-
</a>
|
28 |
-
</li>
|
29 |
-
<li class="<?php echo ( $hash === 'sl-kiwi-tab-advanced' ) ? 'selected' : ''; ?>">
|
30 |
-
<a href="#" data-tab="sl-kiwi-tab-advanced"><i class="dashicons dashicons-admin-settings"></i>
|
31 |
-
<?php echo esc_html__( 'Advanced', 'kiwi-social-share' ); ?>
|
32 |
-
</a>
|
33 |
-
<?php get_bloginfo();?>
|
34 |
-
</li>
|
35 |
-
</ul>
|
36 |
</div>
|
1 |
+
<?php
|
2 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
+
exit;
|
4 |
+
}
|
5 |
+
?>
|
6 |
+
|
7 |
+
<div class="epsilon-ui-tabs">
|
8 |
+
<ul>
|
9 |
+
<li class="<?php echo ( $hash === 'sl-kiwi-tab-networks' || empty( $hash ) ) ? 'selected' : ''; ?>">
|
10 |
+
<a href="#" data-tab="sl-kiwi-tab-networks"><i class="dashicons dashicons-laptop"></i>
|
11 |
+
<?php echo esc_html__( 'Networks & Colors', 'kiwi-social-share' ); ?>
|
12 |
+
</a>
|
13 |
+
</li>
|
14 |
+
<li class="<?php echo ( $hash === 'sl-kiwi-tab-article-bar' ) ? 'selected' : ''; ?>">
|
15 |
+
<a href="#" data-tab="sl-kiwi-tab-article-bar"><i class="dashicons dashicons-editor-insertmore"></i>
|
16 |
+
<?php echo esc_html__( 'Article bar', 'kiwi-social-share' ); ?>
|
17 |
+
</a>
|
18 |
+
</li>
|
19 |
+
<li class="<?php echo ( $hash === 'sl-kiwi-tab-floating-bar' ) ? 'selected' : ''; ?>">
|
20 |
+
<a href="#" data-tab="sl-kiwi-tab-floating-bar"><i class="dashicons dashicons-align-left"></i>
|
21 |
+
<?php echo esc_html__( 'Floating bar', 'kiwi-social-share' ); ?>
|
22 |
+
</a>
|
23 |
+
</li>
|
24 |
+
<li class="<?php echo ( $hash === 'sl-kiwi-tab-social-identity' ) ? 'selected' : ''; ?>">
|
25 |
+
<a href="#" data-tab="sl-kiwi-tab-socialIdentity"><i class="dashicons dashicons-share"></i>
|
26 |
+
<?php echo esc_html__( 'Social Identity', 'kiwi-social-share' ); ?>
|
27 |
+
</a>
|
28 |
+
</li>
|
29 |
+
<li class="<?php echo ( $hash === 'sl-kiwi-tab-advanced' ) ? 'selected' : ''; ?>">
|
30 |
+
<a href="#" data-tab="sl-kiwi-tab-advanced"><i class="dashicons dashicons-admin-settings"></i>
|
31 |
+
<?php echo esc_html__( 'Advanced', 'kiwi-social-share' ); ?>
|
32 |
+
</a>
|
33 |
+
<?php get_bloginfo();?>
|
34 |
+
</li>
|
35 |
+
</ul>
|
36 |
</div>
|
includes/backend/parts/index.php
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
-
<?php
|
2 |
// Silence is golden
|
1 |
+
<?php
|
2 |
// Silence is golden
|
includes/backend/parts/kiwi-modal-popup.php
CHANGED
@@ -1,93 +1,93 @@
|
|
1 |
-
<?php
|
2 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
-
exit;
|
4 |
-
}
|
5 |
-
?>
|
6 |
-
|
7 |
-
<div class="kiwi-modal fade">
|
8 |
-
<div class="kiwi-modal-content">
|
9 |
-
<span class="close-modal"><i class="kicon-times"></i></span>
|
10 |
-
<header class="modal-header">
|
11 |
-
<div class="modal-header-content">
|
12 |
-
<h3 class="modal-title"><?php echo esc_html__( 'Get your premium version now!', 'kiwi-social-share' ); ?></h3>
|
13 |
-
<span class="modal-subtitle"><?php echo esc_html__( 'Take advantage of the large number of professional features anad take
|
14 |
-
your business one step further!', 'kiwi-social-share' ); ?></span>
|
15 |
-
</div>
|
16 |
-
</header>
|
17 |
-
<section class="modal-content" id="page-one">
|
18 |
-
<div class="price-box text-center">
|
19 |
-
<span class="price"><span class="currency">$</span>19</span>
|
20 |
-
<a href="#" class="button-modal"
|
21 |
-
data-action="modal-buy-now"><?php echo esc_html__( 'Buy Now', 'kiwi-social-share' ); ?></a>
|
22 |
-
</div>
|
23 |
-
</section>
|
24 |
-
|
25 |
-
<section class="modal-content form" id="page-two">
|
26 |
-
<?php $user = wp_get_current_user(); ?>
|
27 |
-
<div class="clearfix">
|
28 |
-
<div class="half">
|
29 |
-
<label
|
30 |
-
for="kiwi_product_upsell_first_name"> <?php echo esc_html__( 'First name', 'kiwi-social-share' ); ?> </label>
|
31 |
-
<input type="text" value="<?php echo esc_attr( $user->user_firstname ) ?>"
|
32 |
-
id="kiwi_product_upsell_first_name" name="kiwi_product_upsell[first_name]"/>
|
33 |
-
</div>
|
34 |
-
<div class="half">
|
35 |
-
<label
|
36 |
-
for="kiwi_product_upsell_last_name"> <?php echo esc_html__( 'Last name', 'kiwi-social-share' ); ?> </label>
|
37 |
-
<input type="text" value="<?php echo esc_attr( $user->user_lastname ) ?>"
|
38 |
-
id="kiwi_product_upsell_last_name" name="kiwi_product_upsell[last_name]"/>
|
39 |
-
</div>
|
40 |
-
</div>
|
41 |
-
|
42 |
-
<div class="clearfix">
|
43 |
-
<label
|
44 |
-
for="kiwi_product_upsell_email"> <?php echo esc_html__( 'Email where we can send the invoice to.', 'kiwi-social-share' ); ?> </label>
|
45 |
-
<input type="email" value="<?php echo esc_attr( $user->user_email ) ?>" id="kiwi_product_upsell_email"
|
46 |
-
name="kiwi_product_upsell[email]"/>
|
47 |
-
</div>
|
48 |
-
|
49 |
-
<label class="epsilon-ui-radio ui-radio-inline">
|
50 |
-
<input type="radio" checked id="kiwi_product_upsell_type_a"
|
51 |
-
name="kiwi_product_upsell[type]"
|
52 |
-
value="consumer"/>
|
53 |
-
|
54 |
-
<strong></strong>
|
55 |
-
<?php echo esc_html__( 'Consumer', 'kiwi-social-share' ); ?>
|
56 |
-
</label>
|
57 |
-
<label class="epsilon-ui-radio ui-radio-inline">
|
58 |
-
<input type="radio" id="kiwi_product_upsell_type_b"
|
59 |
-
name="kiwi_product_upsell[type]"
|
60 |
-
value="business"/>
|
61 |
-
|
62 |
-
<strong></strong>
|
63 |
-
<?php echo esc_html__( 'Business', 'kiwi-social-share' ); ?>
|
64 |
-
</label>
|
65 |
-
<div class="company-group" style="display:none">
|
66 |
-
<div class="clearfix">
|
67 |
-
<label
|
68 |
-
for="kiwi_product_upsell_company_name"> <?php echo esc_html__( 'Company name', 'kiwi-social-share' ); ?> </label>
|
69 |
-
<input type="text" id="kiwi_product_upsell_company_name" name="kiwi_product_upsell[company_name]"/>
|
70 |
-
</div>
|
71 |
-
<div class="clearfix">
|
72 |
-
<label
|
73 |
-
for="kiwi_product_upsell_vat"> <?php echo esc_html__( 'VAT', 'kiwi-social-share' ); ?> </label>
|
74 |
-
<input type="text" id="kiwi_product_upsell_vat" name="kiwi_product_upsell[vat]"/>
|
75 |
-
</div>
|
76 |
-
</div>
|
77 |
-
|
78 |
-
<input type="hidden" id="kiwi_product_upsell_product" name="kiwi_product_upsell[product]" value="150641"/>
|
79 |
-
<a href="#" class="button-modal"
|
80 |
-
data-action="continue-to-checkout"><?php echo esc_html__( 'Continue with secure checkout', 'kiwi-social-share' ); ?></a>
|
81 |
-
</section>
|
82 |
-
<footer class="modal-footer text-center">
|
83 |
-
<div class="row">
|
84 |
-
<div class="col-md-12">
|
85 |
-
<a target="_blank"
|
86 |
-
href="https://machothemes.com/plugin/kiwi-pro/?utm_source=worg&utm_medium=kiwi-modal-page&utm_campaign=upsell"><?php echo esc_html__( 'Click here to see all the pro features', 'kiwi-social-share' ); ?></a>
|
87 |
-
<p class="muted"><?php echo esc_html__( 'No contract. No hassle. You can cancel your subscription at anytime
|
88 |
-
without any cancellation period.', 'kiwi-social-share' ); ?></p>
|
89 |
-
</div>
|
90 |
-
</div>
|
91 |
-
</footer>
|
92 |
-
</div>
|
93 |
-
</div>
|
1 |
+
<?php
|
2 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
+
exit;
|
4 |
+
}
|
5 |
+
?>
|
6 |
+
|
7 |
+
<div class="kiwi-modal fade">
|
8 |
+
<div class="kiwi-modal-content">
|
9 |
+
<span class="close-modal"><i class="kicon-times"></i></span>
|
10 |
+
<header class="modal-header">
|
11 |
+
<div class="modal-header-content">
|
12 |
+
<h3 class="modal-title"><?php echo esc_html__( 'Get your premium version now!', 'kiwi-social-share' ); ?></h3>
|
13 |
+
<span class="modal-subtitle"><?php echo esc_html__( 'Take advantage of the large number of professional features anad take
|
14 |
+
your business one step further!', 'kiwi-social-share' ); ?></span>
|
15 |
+
</div>
|
16 |
+
</header>
|
17 |
+
<section class="modal-content" id="page-one">
|
18 |
+
<div class="price-box text-center">
|
19 |
+
<span class="price"><span class="currency">$</span>19</span>
|
20 |
+
<a href="#" class="button-modal"
|
21 |
+
data-action="modal-buy-now"><?php echo esc_html__( 'Buy Now', 'kiwi-social-share' ); ?></a>
|
22 |
+
</div>
|
23 |
+
</section>
|
24 |
+
|
25 |
+
<section class="modal-content form" id="page-two">
|
26 |
+
<?php $user = wp_get_current_user(); ?>
|
27 |
+
<div class="clearfix">
|
28 |
+
<div class="half">
|
29 |
+
<label
|
30 |
+
for="kiwi_product_upsell_first_name"> <?php echo esc_html__( 'First name', 'kiwi-social-share' ); ?> </label>
|
31 |
+
<input type="text" value="<?php echo esc_attr( $user->user_firstname ) ?>"
|
32 |
+
id="kiwi_product_upsell_first_name" name="kiwi_product_upsell[first_name]"/>
|
33 |
+
</div>
|
34 |
+
<div class="half">
|
35 |
+
<label
|
36 |
+
for="kiwi_product_upsell_last_name"> <?php echo esc_html__( 'Last name', 'kiwi-social-share' ); ?> </label>
|
37 |
+
<input type="text" value="<?php echo esc_attr( $user->user_lastname ) ?>"
|
38 |
+
id="kiwi_product_upsell_last_name" name="kiwi_product_upsell[last_name]"/>
|
39 |
+
</div>
|
40 |
+
</div>
|
41 |
+
|
42 |
+
<div class="clearfix">
|
43 |
+
<label
|
44 |
+
for="kiwi_product_upsell_email"> <?php echo esc_html__( 'Email where we can send the invoice to.', 'kiwi-social-share' ); ?> </label>
|
45 |
+
<input type="email" value="<?php echo esc_attr( $user->user_email ) ?>" id="kiwi_product_upsell_email"
|
46 |
+
name="kiwi_product_upsell[email]"/>
|
47 |
+
</div>
|
48 |
+
|
49 |
+
<label class="epsilon-ui-radio ui-radio-inline">
|
50 |
+
<input type="radio" checked id="kiwi_product_upsell_type_a"
|
51 |
+
name="kiwi_product_upsell[type]"
|
52 |
+
value="consumer"/>
|
53 |
+
|
54 |
+
<strong></strong>
|
55 |
+
<?php echo esc_html__( 'Consumer', 'kiwi-social-share' ); ?>
|
56 |
+
</label>
|
57 |
+
<label class="epsilon-ui-radio ui-radio-inline">
|
58 |
+
<input type="radio" id="kiwi_product_upsell_type_b"
|
59 |
+
name="kiwi_product_upsell[type]"
|
60 |
+
value="business"/>
|
61 |
+
|
62 |
+
<strong></strong>
|
63 |
+
<?php echo esc_html__( 'Business', 'kiwi-social-share' ); ?>
|
64 |
+
</label>
|
65 |
+
<div class="company-group" style="display:none">
|
66 |
+
<div class="clearfix">
|
67 |
+
<label
|
68 |
+
for="kiwi_product_upsell_company_name"> <?php echo esc_html__( 'Company name', 'kiwi-social-share' ); ?> </label>
|
69 |
+
<input type="text" id="kiwi_product_upsell_company_name" name="kiwi_product_upsell[company_name]"/>
|
70 |
+
</div>
|
71 |
+
<div class="clearfix">
|
72 |
+
<label
|
73 |
+
for="kiwi_product_upsell_vat"> <?php echo esc_html__( 'VAT', 'kiwi-social-share' ); ?> </label>
|
74 |
+
<input type="text" id="kiwi_product_upsell_vat" name="kiwi_product_upsell[vat]"/>
|
75 |
+
</div>
|
76 |
+
</div>
|
77 |
+
|
78 |
+
<input type="hidden" id="kiwi_product_upsell_product" name="kiwi_product_upsell[product]" value="150641"/>
|
79 |
+
<a href="#" class="button-modal"
|
80 |
+
data-action="continue-to-checkout"><?php echo esc_html__( 'Continue with secure checkout', 'kiwi-social-share' ); ?></a>
|
81 |
+
</section>
|
82 |
+
<footer class="modal-footer text-center">
|
83 |
+
<div class="row">
|
84 |
+
<div class="col-md-12">
|
85 |
+
<a target="_blank"
|
86 |
+
href="https://machothemes.com/plugin/kiwi-pro/?utm_source=worg&utm_medium=kiwi-modal-page&utm_campaign=upsell"><?php echo esc_html__( 'Click here to see all the pro features', 'kiwi-social-share' ); ?></a>
|
87 |
+
<p class="muted"><?php echo esc_html__( 'No contract. No hassle. You can cancel your subscription at anytime
|
88 |
+
without any cancellation period.', 'kiwi-social-share' ); ?></p>
|
89 |
+
</div>
|
90 |
+
</div>
|
91 |
+
</footer>
|
92 |
+
</div>
|
93 |
+
</div>
|
includes/backend/parts/kiwi-networks-ordering.php
CHANGED
@@ -1,57 +1,57 @@
|
|
1 |
-
<?php
|
2 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
-
exit;
|
4 |
-
}
|
5 |
-
|
6 |
-
?>
|
7 |
-
|
8 |
-
<div class="sl-kiwi-dragdrop">
|
9 |
-
<span class="suggestions"><?php echo esc_html__( 'Drag & drop elements to reorder', 'kiwi-social-share' ); ?></span>
|
10 |
-
<div>
|
11 |
-
<ul data-id="networks_ordering" data-style="<?php echo esc_attr( Kiwi_Social_Share_Helper::get_setting_value( 'article_bar_style', 'center' ) ) ?>"
|
12 |
-
class="<?php echo esc_attr( Kiwi_Social_Share_Helper::get_setting_value( 'button_shape', 'rect' ) ) ?>">
|
13 |
-
<?php foreach ( $networks as $network ) { ?>
|
14 |
-
<?php
|
15 |
-
if ( $network['locked'] ) {
|
16 |
-
continue;
|
17 |
-
}
|
18 |
-
?>
|
19 |
-
|
20 |
-
<?php
|
21 |
-
$share_counts = Kiwi_Social_Share_Helper::get_setting_value( 'share_counts', '' );
|
22 |
-
?>
|
23 |
-
<li data-item="<?php echo esc_attr( $network['name'] ) ?>"
|
24 |
-
class="sl-kiwi-item-<?php echo in_array( 'article-bar', $network['checked'] ) ? 'add' : 'remove'; ?>">
|
25 |
-
<a href="#" class="kiwi-nw-<?php echo esc_attr( $network['name'] ) ?>">
|
26 |
-
<span>
|
27 |
-
<i class="kicon-<?php echo esc_attr( $kiwi_networks[ $network['name'] ]['icon'] ) ?>"
|
28 |
-
aria-hidden="true"></i> <?php echo ( ! empty( $share_counts ) && $network['count'] > 0 ) ? esc_attr( $network['count'] ) : '' ?>
|
29 |
-
</span>
|
30 |
-
</a>
|
31 |
-
</li>
|
32 |
-
<?php } ?>
|
33 |
-
</ul>
|
34 |
-
|
35 |
-
<ul data-id="networks_ordering_floating_bar" class="<?php echo esc_attr( Kiwi_Social_Share_Helper::get_setting_value( 'button_shape_floating', 'rect' ) ) ?>">
|
36 |
-
<?php foreach ( $networks as $network ) { ?>
|
37 |
-
<?php
|
38 |
-
if ( $network['locked'] ) {
|
39 |
-
continue;
|
40 |
-
}
|
41 |
-
?>
|
42 |
-
|
43 |
-
<li data-item="<?php echo esc_attr( $network['name'] ) ?>"
|
44 |
-
class="sl-kiwi-item-<?php echo in_array( 'floating-bar', $network['checked'] ) ? 'add' : 'remove'; ?>">
|
45 |
-
<a href="#" class="kiwi-nw-<?php echo esc_attr( $network['name'] ) ?>">
|
46 |
-
<span>
|
47 |
-
<i class="kicon-<?php echo esc_attr( $kiwi_networks[ $network['name'] ]['icon'] ) ?>"
|
48 |
-
aria-hidden="true"></i>
|
49 |
-
</span>
|
50 |
-
</a>
|
51 |
-
</li>
|
52 |
-
<?php } ?>
|
53 |
-
</ul>
|
54 |
-
</div>
|
55 |
-
<input type="hidden" id="kiwi_networks_ordering" name="kiwi_general_settings[networks_ordering]"
|
56 |
-
value="<?php echo esc_attr( Kiwi_Social_Share_Helper::get_setting_value( 'networks_ordering', '' ) ) ?>"/>
|
57 |
</div>
|
1 |
+
<?php
|
2 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
+
exit;
|
4 |
+
}
|
5 |
+
|
6 |
+
?>
|
7 |
+
|
8 |
+
<div class="sl-kiwi-dragdrop">
|
9 |
+
<span class="suggestions"><?php echo esc_html__( 'Drag & drop elements to reorder', 'kiwi-social-share' ); ?></span>
|
10 |
+
<div>
|
11 |
+
<ul data-id="networks_ordering" data-style="<?php echo esc_attr( Kiwi_Social_Share_Helper::get_setting_value( 'article_bar_style', 'center' ) ) ?>"
|
12 |
+
class="<?php echo esc_attr( Kiwi_Social_Share_Helper::get_setting_value( 'button_shape', 'rect' ) ) ?>">
|
13 |
+
<?php foreach ( $networks as $network ) { ?>
|
14 |
+
<?php
|
15 |
+
if ( $network['locked'] ) {
|
16 |
+
continue;
|
17 |
+
}
|
18 |
+
?>
|
19 |
+
|
20 |
+
<?php
|
21 |
+
$share_counts = Kiwi_Social_Share_Helper::get_setting_value( 'share_counts', '' );
|
22 |
+
?>
|
23 |
+
<li data-item="<?php echo esc_attr( $network['name'] ) ?>"
|
24 |
+
class="sl-kiwi-item-<?php echo in_array( 'article-bar', $network['checked'] ) ? 'add' : 'remove'; ?>">
|
25 |
+
<a href="#" class="kiwi-nw-<?php echo esc_attr( $network['name'] ) ?>">
|
26 |
+
<span>
|
27 |
+
<i class="kicon-<?php echo esc_attr( $kiwi_networks[ $network['name'] ]['icon'] ) ?>"
|
28 |
+
aria-hidden="true"></i> <?php echo ( ! empty( $share_counts ) && $network['count'] > 0 ) ? esc_attr( $network['count'] ) : '' ?>
|
29 |
+
</span>
|
30 |
+
</a>
|
31 |
+
</li>
|
32 |
+
<?php } ?>
|
33 |
+
</ul>
|
34 |
+
|
35 |
+
<ul data-id="networks_ordering_floating_bar" class="<?php echo esc_attr( Kiwi_Social_Share_Helper::get_setting_value( 'button_shape_floating', 'rect' ) ) ?>">
|
36 |
+
<?php foreach ( $networks as $network ) { ?>
|
37 |
+
<?php
|
38 |
+
if ( $network['locked'] ) {
|
39 |
+
continue;
|
40 |
+
}
|
41 |
+
?>
|
42 |
+
|
43 |
+
<li data-item="<?php echo esc_attr( $network['name'] ) ?>"
|
44 |
+
class="sl-kiwi-item-<?php echo in_array( 'floating-bar', $network['checked'] ) ? 'add' : 'remove'; ?>">
|
45 |
+
<a href="#" class="kiwi-nw-<?php echo esc_attr( $network['name'] ) ?>">
|
46 |
+
<span>
|
47 |
+
<i class="kicon-<?php echo esc_attr( $kiwi_networks[ $network['name'] ]['icon'] ) ?>"
|
48 |
+
aria-hidden="true"></i>
|
49 |
+
</span>
|
50 |
+
</a>
|
51 |
+
</li>
|
52 |
+
<?php } ?>
|
53 |
+
</ul>
|
54 |
+
</div>
|
55 |
+
<input type="hidden" id="kiwi_networks_ordering" name="kiwi_general_settings[networks_ordering]"
|
56 |
+
value="<?php echo esc_attr( Kiwi_Social_Share_Helper::get_setting_value( 'networks_ordering', '' ) ) ?>"/>
|
57 |
</div>
|
includes/backend/parts/kiwi-tab-advanced.php
CHANGED
@@ -1,292 +1,292 @@
|
|
1 |
-
<?php
|
2 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
-
exit;
|
4 |
-
}
|
5 |
-
?>
|
6 |
-
<div class="sl-kiwi-tab-advanced <?php echo ( $hash === 'sl-kiwi-tab-advanced' ) ? 'epsilon-tab-active' : ''; ?>">
|
7 |
-
<h2>
|
8 |
-
<span><?php echo esc_html__( 'Advanced settings', 'kiwi-social-share' ) ?></span>
|
9 |
-
</h2>
|
10 |
-
<?php
|
11 |
-
$custom_meta_boxes = Kiwi_Social_Share_Helper::get_setting_value( 'custom_meta_boxes', '' );
|
12 |
-
?>
|
13 |
-
<div class="sl-kiwi-opt-group clearfix">
|
14 |
-
<div class="sl-kiwi-opt-toggle">
|
15 |
-
<div class="epsilon-ui-toggle">
|
16 |
-
<label>
|
17 |
-
<input type="checkbox" id="kiwi_custom_meta_boxes"
|
18 |
-
name="kiwi_general_settings[custom_meta_boxes]" <?php echo ! empty( $custom_meta_boxes ) ? 'checked' : ''; ?>
|
19 |
-
value="on"/>
|
20 |
-
<span></span>
|
21 |
-
</label>
|
22 |
-
</div>
|
23 |
-
</div>
|
24 |
-
|
25 |
-
<div class="sl-kiwi-opt-description">
|
26 |
-
<h4><?php echo esc_html__( 'Custom metaboxes', 'kiwi-social-share' ) ?></h4>
|
27 |
-
<p><?php echo esc_html__( 'Adds Custom Metaboxes for page/post/cpt meta handling', 'kiwi-social-share' ) ?></p>
|
28 |
-
</div>
|
29 |
-
|
30 |
-
<div class="clearfix"></div>
|
31 |
-
|
32 |
-
<?php
|
33 |
-
$custom_meta_boxes_posttypes = Kiwi_Social_Share_Helper::get_setting_value( 'custom_meta_boxes_posttypes', 'all' );
|
34 |
-
?>
|
35 |
-
<div class="sl-kiwi-opt-description sl-kiwi-radio-post-types sl-kiwi-inner-opt clearfix">
|
36 |
-
<h5><?php echo esc_html__( 'Activate this feature on', 'kiwi-social-share' ) ?></h5>
|
37 |
-
|
38 |
-
<label class="epsilon-ui-radio ui-radio-inline">
|
39 |
-
<input type="radio" id="kiwi_custom_meta_boxes_posttypes_a"
|
40 |
-
name="kiwi_general_settings[custom_meta_boxes_posttypes]"
|
41 |
-
value="all" <?php echo ( $custom_meta_boxes_posttypes === 'all' ) ? 'checked' : ''; ?> />
|
42 |
-
|
43 |
-
<strong></strong>
|
44 |
-
<?php echo esc_html__( 'All Pages', 'kiwi-social-share' ); ?>
|
45 |
-
</label>
|
46 |
-
|
47 |
-
<label class="epsilon-ui-radio ui-radio-inline ui-locked">
|
48 |
-
<input type="radio" id="kiwi_custom_meta_boxes_posttypes_b"
|
49 |
-
name="kiwi_general_settings[custom_meta_boxes_posttypes]" disabled
|
50 |
-
value="custom" <?php echo ( $custom_meta_boxes_posttypes === 'custom' ) ? 'checked' : ''; ?>
|
51 |
-
/>
|
52 |
-
|
53 |
-
<strong></strong>
|
54 |
-
<?php echo esc_html__( 'Select post types', 'kiwi-social-share' ); ?>
|
55 |
-
</label>
|
56 |
-
|
57 |
-
<div class="epsilon-ui-checklist" <?php echo ( $custom_meta_boxes_posttypes === 'all' ) ? 'style="display:none"' : ''; ?>>
|
58 |
-
<ul>
|
59 |
-
<?php
|
60 |
-
$post_types_list = Kiwi_Social_Share_Helper::get_setting_value( 'custom_meta_boxes_posttypes_list', array(
|
61 |
-
'post',
|
62 |
-
'page'
|
63 |
-
) );
|
64 |
-
?>
|
65 |
-
<?php foreach ( $post_types as $name => $label ) { ?>
|
66 |
-
<li>
|
67 |
-
<span><?php echo esc_html( $label ) ?></span>
|
68 |
-
<label class="epsilon-ui-checkbox">
|
69 |
-
<input name="kiwi_general_settings[custom_meta_boxes_posttypes_list][]"
|
70 |
-
value="<?php echo esc_attr( $name ); ?>"
|
71 |
-
<?php echo ( in_array( $name, $post_types_list ) ) ? 'checked' : ''; ?>
|
72 |
-
type="checkbox"/>
|
73 |
-
<strong></strong>
|
74 |
-
</label>
|
75 |
-
</li>
|
76 |
-
<?php } ?>
|
77 |
-
</ul>
|
78 |
-
</div>
|
79 |
-
<div class="epsilon-ui-overlay <?php echo empty( $custom_meta_boxes ) ? 'active' : ''; ?>"></div>
|
80 |
-
</div>
|
81 |
-
</div>
|
82 |
-
|
83 |
-
<?php
|
84 |
-
$click_to_tweet = Kiwi_Social_Share_Helper::get_setting_value( 'click_to_tweet', '' );
|
85 |
-
?>
|
86 |
-
<div class="sl-kiwi-opt-group clearfix">
|
87 |
-
<div class="sl-kiwi-opt-toggle">
|
88 |
-
<div class="epsilon-ui-toggle">
|
89 |
-
<label>
|
90 |
-
<input type="checkbox" id="kiwi_click_to_tweet"
|
91 |
-
name="kiwi_general_settings[click_to_tweet]" <?php echo ! empty( $click_to_tweet ) ? 'checked' : ''; ?>
|
92 |
-
value="on"/>
|
93 |
-
<span></span>
|
94 |
-
</label>
|
95 |
-
</div>
|
96 |
-
</div>
|
97 |
-
|
98 |
-
<div class="sl-kiwi-opt-description">
|
99 |
-
<h4><?php echo esc_html__( 'Click to tweet', 'kiwi-social-share' ) ?></h4>
|
100 |
-
<p><?php echo esc_html__( 'Add a "Click to tweet" button in WordPress editor.' ) ?></p>
|
101 |
-
</div>
|
102 |
-
|
103 |
-
<div class="clearfix"></div>
|
104 |
-
|
105 |
-
<?php
|
106 |
-
$click_to_tweet_posttypes = Kiwi_Social_Share_Helper::get_setting_value( 'click_to_tweet_posttypes', 'all' );
|
107 |
-
?>
|
108 |
-
<div class="sl-kiwi-opt-description sl-kiwi-radio-post-types sl-kiwi-inner-opt clearfix">
|
109 |
-
<h5><?php echo esc_html__( 'Activate this feature on', 'kiwi-social-share' ) ?></h5>
|
110 |
-
|
111 |
-
<label class="epsilon-ui-radio ui-radio-inline">
|
112 |
-
<input type="radio" id="kiwi_click_to_tweet_posttypes_a"
|
113 |
-
name="kiwi_general_settings[click_to_tweet_posttypes]"
|
114 |
-
value="all" <?php echo ( $click_to_tweet_posttypes === 'all' ) ? 'checked' : ''; ?> />
|
115 |
-
|
116 |
-
<strong></strong>
|
117 |
-
<?php echo esc_html__( 'All Pages', 'kiwi-social-share' ); ?>
|
118 |
-
</label>
|
119 |
-
|
120 |
-
<label class="epsilon-ui-radio ui-radio-inline ui-locked">
|
121 |
-
<input type="radio" id="kiwi_click_to_tweet_posttypes_b"
|
122 |
-
name="kiwi_general_settings[click_to_tweet_posttypes]" disabled
|
123 |
-
value="custom" <?php echo ( $click_to_tweet_posttypes === 'custom' ) ? 'checked' : ''; ?>
|
124 |
-
/>
|
125 |
-
|
126 |
-
<strong></strong>
|
127 |
-
<?php echo esc_html__( 'Select post types', 'kiwi-social-share' ); ?>
|
128 |
-
</label>
|
129 |
-
|
130 |
-
<div
|
131 |
-
class="epsilon-ui-checklist" <?php echo ( $click_to_tweet_posttypes === 'all' ) ? 'style="display:none"' : ''; ?>>
|
132 |
-
<ul>
|
133 |
-
<?php
|
134 |
-
$post_types_list = Kiwi_Social_Share_Helper::get_setting_value( 'click_to_tweet_posttypes_list', array(
|
135 |
-
'post',
|
136 |
-
'page'
|
137 |
-
) );
|
138 |
-
?>
|
139 |
-
<?php foreach ( $post_types as $name => $label ) { ?>
|
140 |
-
<li>
|
141 |
-
<span><?php echo esc_html( $label ) ?></span>
|
142 |
-
<label class="epsilon-ui-checkbox">
|
143 |
-
<input name="kiwi_general_settings[click_to_tweet_posttypes_list][]"
|
144 |
-
value="<?php echo esc_attr( $name ); ?>"
|
145 |
-
<?php echo ( in_array( $name, $post_types_list ) ) ? 'checked' : ''; ?>
|
146 |
-
type="checkbox"/>
|
147 |
-
<strong></strong>
|
148 |
-
</label>
|
149 |
-
</li>
|
150 |
-
<?php } ?>
|
151 |
-
</ul>
|
152 |
-
</div>
|
153 |
-
<div
|
154 |
-
class="epsilon-ui-overlay <?php echo empty( $click_to_tweet ) ? 'active' : ''; ?>"></div>
|
155 |
-
</div>
|
156 |
-
</div>
|
157 |
-
|
158 |
-
<?php
|
159 |
-
$highlight_to_tweet = Kiwi_Social_Share_Helper::get_setting_value( 'highlight_to_tweet', '' );
|
160 |
-
?>
|
161 |
-
<div class="sl-kiwi-opt-group clearfix">
|
162 |
-
<div class="sl-kiwi-opt-toggle">
|
163 |
-
<div class="epsilon-ui-toggle">
|
164 |
-
<label>
|
165 |
-
<input type="checkbox" id="kiwi_highlight_to_tweet"
|
166 |
-
name="kiwi_general_settings[highlight_to_tweet]" <?php echo ! empty( $highlight_to_tweet ) ? 'checked' : ''; ?>
|
167 |
-
value="on"/>
|
168 |
-
<span></span>
|
169 |
-
</label>
|
170 |
-
</div>
|
171 |
-
</div>
|
172 |
-
|
173 |
-
<div class="sl-kiwi-opt-description">
|
174 |
-
<h4><?php echo esc_html__( 'Tweet selected text', 'kiwi-social-share' ) ?></h4>
|
175 |
-
<p><?php echo esc_html__( 'Allows tweeting the current selected text in the page.' ) ?></p>
|
176 |
-
</div>
|
177 |
-
|
178 |
-
<div class="clearfix"></div>
|
179 |
-
<?php
|
180 |
-
$highlight_to_tweet_posttypes = Kiwi_Social_Share_Helper::get_setting_value( 'highlight_to_tweet_posttypes', 'all' );
|
181 |
-
?>
|
182 |
-
<div class="sl-kiwi-opt-description sl-kiwi-radio-post-types sl-kiwi-inner-opt clearfix">
|
183 |
-
<h5><?php echo esc_html__( 'Activate this feature on', 'kiwi-social-share' ) ?></h5>
|
184 |
-
|
185 |
-
<label class="epsilon-ui-radio ui-radio-inline">
|
186 |
-
<input type="radio" id="kiwi_highlight_to_tweet_posttypes_a"
|
187 |
-
name="kiwi_general_settings[highlight_to_tweet_posttypes]"
|
188 |
-
value="all" <?php echo ( $highlight_to_tweet_posttypes === 'all' ) ? 'checked' : ''; ?> />
|
189 |
-
|
190 |
-
<strong></strong>
|
191 |
-
<?php echo esc_html__( 'All Pages', 'kiwi-social-share' ); ?>
|
192 |
-
</label>
|
193 |
-
|
194 |
-
<label class="epsilon-ui-radio ui-radio-inline ui-locked">
|
195 |
-
<input type="radio" id="kiwi_highlight_to_tweet_posttypes_b"
|
196 |
-
name="kiwi_general_settings[highlight_to_tweet_posttypes]" disabled
|
197 |
-
value="custom" <?php echo ( $highlight_to_tweet_posttypes === 'custom' ) ? 'checked' : ''; ?>
|
198 |
-
/>
|
199 |
-
|
200 |
-
<strong></strong>
|
201 |
-
<?php echo esc_html__( 'Select post types', 'kiwi-social-share' ); ?>
|
202 |
-
</label>
|
203 |
-
|
204 |
-
<div
|
205 |
-
class="epsilon-ui-checklist" <?php echo ( $highlight_to_tweet_posttypes === 'all' ) ? 'style="display:none"' : ''; ?>>
|
206 |
-
<ul>
|
207 |
-
<?php
|
208 |
-
$post_types_list = Kiwi_Social_Share_Helper::get_setting_value( 'highlight_to_tweet_posttypes_list', array(
|
209 |
-
'post',
|
210 |
-
'page'
|
211 |
-
) );
|
212 |
-
?>
|
213 |
-
<?php foreach ( $post_types as $name => $label ) { ?>
|
214 |
-
<li>
|
215 |
-
<span><?php echo esc_html( $label ) ?></span>
|
216 |
-
<label class="epsilon-ui-checkbox">
|
217 |
-
<input name="kiwi_general_settings[highlight_to_tweet_posttypes_list][]"
|
218 |
-
value="<?php echo esc_attr( $name ); ?>"
|
219 |
-
<?php echo ( in_array( $name, $post_types_list ) ) ? 'checked' : ''; ?>
|
220 |
-
type="checkbox"/>
|
221 |
-
<strong></strong>
|
222 |
-
</label>
|
223 |
-
</li>
|
224 |
-
<?php } ?>
|
225 |
-
</ul>
|
226 |
-
</div>
|
227 |
-
<div
|
228 |
-
class="epsilon-ui-overlay <?php echo empty( $highlight_to_tweet ) ? 'active' : ''; ?>"></div>
|
229 |
-
</div>
|
230 |
-
</div>
|
231 |
-
<?php
|
232 |
-
$tracking = Kiwi_Social_Share_Helper::get_setting_value( 'ga_tracking', '', 'kiwi_social_identities' );
|
233 |
-
?>
|
234 |
-
<div class="sl-kiwi-opt-group clearfix">
|
235 |
-
<div class="sl-kiwi-opt-toggle">
|
236 |
-
<div class="epsilon-ui-toggle">
|
237 |
-
<label>
|
238 |
-
<input type="checkbox" id="kiwi_ga_tracking"
|
239 |
-
name="kiwi_social_identities[ga_tracking]" <?php echo ! empty( $tracking ) ? 'checked' : ''; ?>
|
240 |
-
value="on"/>
|
241 |
-
<span></span>
|
242 |
-
</label>
|
243 |
-
</div>
|
244 |
-
</div>
|
245 |
-
|
246 |
-
<div class="sl-kiwi-opt-description fixed">
|
247 |
-
<h4><?php echo esc_html__( 'Google Analytics tracking', 'kiwi-social-share' ) ?></h4>
|
248 |
-
<p><?php echo esc_html__( 'Track the click events on your social networks.', 'kiwi-social-share' ) ?></p>
|
249 |
-
</div>
|
250 |
-
</div>
|
251 |
-
<?php
|
252 |
-
$advanced_shortcode_manager = Kiwi_Social_Share_Helper::get_setting_value( 'advanced_shortcode_manager', false, 'kiwi_advanced_settings' );
|
253 |
-
?>
|
254 |
-
<div class="sl-kiwi-opt-group clearfix">
|
255 |
-
<div class="sl-kiwi-opt-toggle">
|
256 |
-
<div class="epsilon-ui-toggle">
|
257 |
-
<label>
|
258 |
-
<input type="checkbox" id="kiwi_advanced_shortcode_manager"
|
259 |
-
name="kiwi_advanced_settings[advanced_shortcode_manager]" <?php echo ! empty( $advanced_shortcode_manager ) ? 'checked' : ''; ?>
|
260 |
-
value="on"/>
|
261 |
-
<span></span>
|
262 |
-
</label>
|
263 |
-
</div>
|
264 |
-
</div>
|
265 |
-
|
266 |
-
<div class="sl-kiwi-opt-description fixed">
|
267 |
-
<h4><?php echo esc_html__( 'Shortcode manager', 'kiwi-social-share' ) ?></h4>
|
268 |
-
<p><?php echo esc_html__( 'Enable the advanced shortcode manager.', 'kiwi-social-share' ) ?></p>
|
269 |
-
</div>
|
270 |
-
</div>
|
271 |
-
|
272 |
-
<?php
|
273 |
-
$show_mobile_only = Kiwi_Social_Share_Helper::get_setting_value( 'mobile_only_sharing', false, 'kiwi_advanced_settings' );
|
274 |
-
?>
|
275 |
-
<div class="sl-kiwi-opt-group clearfix">
|
276 |
-
<div class="sl-kiwi-opt-toggle">
|
277 |
-
<div class="epsilon-ui-toggle">
|
278 |
-
<label>
|
279 |
-
<input type="checkbox" id="kiwi_mobile_only_sharing"
|
280 |
-
name="kiwi_advanced_settings[mobile_only_sharing]" <?php echo ! empty( $show_mobile_only ) ? 'checked' : ''; ?>
|
281 |
-
value="on"/>
|
282 |
-
<span></span>
|
283 |
-
</label>
|
284 |
-
</div>
|
285 |
-
</div>
|
286 |
-
|
287 |
-
<div class="sl-kiwi-opt-description fixed">
|
288 |
-
<h4><?php echo esc_html__( 'WhatsApp icon visible on desktop browsers', 'kiwi-social-share' ) ?></h4>
|
289 |
-
<p><?php echo esc_html__( 'Desktop browsers can\'t handle WhatsApp sharing correctly, you can enable/disable the visibility of the icon by toggling this option.', 'kiwi-social-share' ) ?></p>
|
290 |
-
</div>
|
291 |
-
</div>
|
292 |
</div>
|
1 |
+
<?php
|
2 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
+
exit;
|
4 |
+
}
|
5 |
+
?>
|
6 |
+
<div class="sl-kiwi-tab-advanced <?php echo ( $hash === 'sl-kiwi-tab-advanced' ) ? 'epsilon-tab-active' : ''; ?>">
|
7 |
+
<h2>
|
8 |
+
<span><?php echo esc_html__( 'Advanced settings', 'kiwi-social-share' ) ?></span>
|
9 |
+
</h2>
|
10 |
+
<?php
|
11 |
+
$custom_meta_boxes = Kiwi_Social_Share_Helper::get_setting_value( 'custom_meta_boxes', '' );
|
12 |
+
?>
|
13 |
+
<div class="sl-kiwi-opt-group clearfix">
|
14 |
+
<div class="sl-kiwi-opt-toggle">
|
15 |
+
<div class="epsilon-ui-toggle">
|
16 |
+
<label>
|
17 |
+
<input type="checkbox" id="kiwi_custom_meta_boxes"
|
18 |
+
name="kiwi_general_settings[custom_meta_boxes]" <?php echo ! empty( $custom_meta_boxes ) ? 'checked' : ''; ?>
|
19 |
+
value="on"/>
|
20 |
+
<span></span>
|
21 |
+
</label>
|
22 |
+
</div>
|
23 |
+
</div>
|
24 |
+
|
25 |
+
<div class="sl-kiwi-opt-description">
|
26 |
+
<h4><?php echo esc_html__( 'Custom metaboxes', 'kiwi-social-share' ) ?></h4>
|
27 |
+
<p><?php echo esc_html__( 'Adds Custom Metaboxes for page/post/cpt meta handling', 'kiwi-social-share' ) ?></p>
|
28 |
+
</div>
|
29 |
+
|
30 |
+
<div class="clearfix"></div>
|
31 |
+
|
32 |
+
<?php
|
33 |
+
$custom_meta_boxes_posttypes = Kiwi_Social_Share_Helper::get_setting_value( 'custom_meta_boxes_posttypes', 'all' );
|
34 |
+
?>
|
35 |
+
<div class="sl-kiwi-opt-description sl-kiwi-radio-post-types sl-kiwi-inner-opt clearfix">
|
36 |
+
<h5><?php echo esc_html__( 'Activate this feature on', 'kiwi-social-share' ) ?></h5>
|
37 |
+
|
38 |
+
<label class="epsilon-ui-radio ui-radio-inline">
|
39 |
+
<input type="radio" id="kiwi_custom_meta_boxes_posttypes_a"
|
40 |
+
name="kiwi_general_settings[custom_meta_boxes_posttypes]"
|
41 |
+
value="all" <?php echo ( $custom_meta_boxes_posttypes === 'all' ) ? 'checked' : ''; ?> />
|
42 |
+
|
43 |
+
<strong></strong>
|
44 |
+
<?php echo esc_html__( 'All Pages', 'kiwi-social-share' ); ?>
|
45 |
+
</label>
|
46 |
+
|
47 |
+
<label class="epsilon-ui-radio ui-radio-inline ui-locked">
|
48 |
+
<input type="radio" id="kiwi_custom_meta_boxes_posttypes_b"
|
49 |
+
name="kiwi_general_settings[custom_meta_boxes_posttypes]" disabled
|
50 |
+
value="custom" <?php echo ( $custom_meta_boxes_posttypes === 'custom' ) ? 'checked' : ''; ?>
|
51 |
+
/>
|
52 |
+
|
53 |
+
<strong></strong>
|
54 |
+
<?php echo esc_html__( 'Select post types', 'kiwi-social-share' ); ?>
|
55 |
+
</label>
|
56 |
+
|
57 |
+
<div class="epsilon-ui-checklist" <?php echo ( $custom_meta_boxes_posttypes === 'all' ) ? 'style="display:none"' : ''; ?>>
|
58 |
+
<ul>
|
59 |
+
<?php
|
60 |
+
$post_types_list = Kiwi_Social_Share_Helper::get_setting_value( 'custom_meta_boxes_posttypes_list', array(
|
61 |
+
'post',
|
62 |
+
'page'
|
63 |
+
) );
|
64 |
+
?>
|
65 |
+
<?php foreach ( $post_types as $name => $label ) { ?>
|
66 |
+
<li>
|
67 |
+
<span><?php echo esc_html( $label ) ?></span>
|
68 |
+
<label class="epsilon-ui-checkbox">
|
69 |
+
<input name="kiwi_general_settings[custom_meta_boxes_posttypes_list][]"
|
70 |
+
value="<?php echo esc_attr( $name ); ?>"
|
71 |
+
<?php echo ( in_array( $name, $post_types_list ) ) ? 'checked' : ''; ?>
|
72 |
+
type="checkbox"/>
|
73 |
+
<strong></strong>
|
74 |
+
</label>
|
75 |
+
</li>
|
76 |
+
<?php } ?>
|
77 |
+
</ul>
|
78 |
+
</div>
|
79 |
+
<div class="epsilon-ui-overlay <?php echo empty( $custom_meta_boxes ) ? 'active' : ''; ?>"></div>
|
80 |
+
</div>
|
81 |
+
</div>
|
82 |
+
|
83 |
+
<?php
|
84 |
+
$click_to_tweet = Kiwi_Social_Share_Helper::get_setting_value( 'click_to_tweet', '' );
|
85 |
+
?>
|
86 |
+
<div class="sl-kiwi-opt-group clearfix">
|
87 |
+
<div class="sl-kiwi-opt-toggle">
|
88 |
+
<div class="epsilon-ui-toggle">
|
89 |
+
<label>
|
90 |
+
<input type="checkbox" id="kiwi_click_to_tweet"
|
91 |
+
name="kiwi_general_settings[click_to_tweet]" <?php echo ! empty( $click_to_tweet ) ? 'checked' : ''; ?>
|
92 |
+
value="on"/>
|
93 |
+
<span></span>
|
94 |
+
</label>
|
95 |
+
</div>
|
96 |
+
</div>
|
97 |
+
|
98 |
+
<div class="sl-kiwi-opt-description">
|
99 |
+
<h4><?php echo esc_html__( 'Click to tweet', 'kiwi-social-share' ) ?></h4>
|
100 |
+
<p><?php echo esc_html__( 'Add a "Click to tweet" button in WordPress editor.' ) ?></p>
|
101 |
+
</div>
|
102 |
+
|
103 |
+
<div class="clearfix"></div>
|
104 |
+
|
105 |
+
<?php
|
106 |
+
$click_to_tweet_posttypes = Kiwi_Social_Share_Helper::get_setting_value( 'click_to_tweet_posttypes', 'all' );
|
107 |
+
?>
|
108 |
+
<div class="sl-kiwi-opt-description sl-kiwi-radio-post-types sl-kiwi-inner-opt clearfix">
|
109 |
+
<h5><?php echo esc_html__( 'Activate this feature on', 'kiwi-social-share' ) ?></h5>
|
110 |
+
|
111 |
+
<label class="epsilon-ui-radio ui-radio-inline">
|
112 |
+
<input type="radio" id="kiwi_click_to_tweet_posttypes_a"
|
113 |
+
name="kiwi_general_settings[click_to_tweet_posttypes]"
|
114 |
+
value="all" <?php echo ( $click_to_tweet_posttypes === 'all' ) ? 'checked' : ''; ?> />
|
115 |
+
|
116 |
+
<strong></strong>
|
117 |
+
<?php echo esc_html__( 'All Pages', 'kiwi-social-share' ); ?>
|
118 |
+
</label>
|
119 |
+
|
120 |
+
<label class="epsilon-ui-radio ui-radio-inline ui-locked">
|
121 |
+
<input type="radio" id="kiwi_click_to_tweet_posttypes_b"
|
122 |
+
name="kiwi_general_settings[click_to_tweet_posttypes]" disabled
|
123 |
+
value="custom" <?php echo ( $click_to_tweet_posttypes === 'custom' ) ? 'checked' : ''; ?>
|
124 |
+
/>
|
125 |
+
|
126 |
+
<strong></strong>
|
127 |
+
<?php echo esc_html__( 'Select post types', 'kiwi-social-share' ); ?>
|
128 |
+
</label>
|
129 |
+
|
130 |
+
<div
|
131 |
+
class="epsilon-ui-checklist" <?php echo ( $click_to_tweet_posttypes === 'all' ) ? 'style="display:none"' : ''; ?>>
|
132 |
+
<ul>
|
133 |
+
<?php
|
134 |
+
$post_types_list = Kiwi_Social_Share_Helper::get_setting_value( 'click_to_tweet_posttypes_list', array(
|
135 |
+
'post',
|
136 |
+
'page'
|
137 |
+
) );
|
138 |
+
?>
|
139 |
+
<?php foreach ( $post_types as $name => $label ) { ?>
|
140 |
+
<li>
|
141 |
+
<span><?php echo esc_html( $label ) ?></span>
|
142 |
+
<label class="epsilon-ui-checkbox">
|
143 |
+
<input name="kiwi_general_settings[click_to_tweet_posttypes_list][]"
|
144 |
+
value="<?php echo esc_attr( $name ); ?>"
|
145 |
+
<?php echo ( in_array( $name, $post_types_list ) ) ? 'checked' : ''; ?>
|
146 |
+
type="checkbox"/>
|
147 |
+
<strong></strong>
|
148 |
+
</label>
|
149 |
+
</li>
|
150 |
+
<?php } ?>
|
151 |
+
</ul>
|
152 |
+
</div>
|
153 |
+
<div
|
154 |
+
class="epsilon-ui-overlay <?php echo empty( $click_to_tweet ) ? 'active' : ''; ?>"></div>
|
155 |
+
</div>
|
156 |
+
</div>
|
157 |
+
|
158 |
+
<?php
|
159 |
+
$highlight_to_tweet = Kiwi_Social_Share_Helper::get_setting_value( 'highlight_to_tweet', '' );
|
160 |
+
?>
|
161 |
+
<div class="sl-kiwi-opt-group clearfix">
|
162 |
+
<div class="sl-kiwi-opt-toggle">
|
163 |
+
<div class="epsilon-ui-toggle">
|
164 |
+
<label>
|
165 |
+
<input type="checkbox" id="kiwi_highlight_to_tweet"
|
166 |
+
name="kiwi_general_settings[highlight_to_tweet]" <?php echo ! empty( $highlight_to_tweet ) ? 'checked' : ''; ?>
|
167 |
+
value="on"/>
|
168 |
+
<span></span>
|
169 |
+
</label>
|
170 |
+
</div>
|
171 |
+
</div>
|
172 |
+
|
173 |
+
<div class="sl-kiwi-opt-description">
|
174 |
+
<h4><?php echo esc_html__( 'Tweet selected text', 'kiwi-social-share' ) ?></h4>
|
175 |
+
<p><?php echo esc_html__( 'Allows tweeting the current selected text in the page.' ) ?></p>
|
176 |
+
</div>
|
177 |
+
|
178 |
+
<div class="clearfix"></div>
|
179 |
+
<?php
|
180 |
+
$highlight_to_tweet_posttypes = Kiwi_Social_Share_Helper::get_setting_value( 'highlight_to_tweet_posttypes', 'all' );
|
181 |
+
?>
|
182 |
+
<div class="sl-kiwi-opt-description sl-kiwi-radio-post-types sl-kiwi-inner-opt clearfix">
|
183 |
+
<h5><?php echo esc_html__( 'Activate this feature on', 'kiwi-social-share' ) ?></h5>
|
184 |
+
|
185 |
+
<label class="epsilon-ui-radio ui-radio-inline">
|
186 |
+
<input type="radio" id="kiwi_highlight_to_tweet_posttypes_a"
|
187 |
+
name="kiwi_general_settings[highlight_to_tweet_posttypes]"
|
188 |
+
value="all" <?php echo ( $highlight_to_tweet_posttypes === 'all' ) ? 'checked' : ''; ?> />
|
189 |
+
|
190 |
+
<strong></strong>
|
191 |
+
<?php echo esc_html__( 'All Pages', 'kiwi-social-share' ); ?>
|
192 |
+
</label>
|
193 |
+
|
194 |
+
<label class="epsilon-ui-radio ui-radio-inline ui-locked">
|
195 |
+
<input type="radio" id="kiwi_highlight_to_tweet_posttypes_b"
|
196 |
+
name="kiwi_general_settings[highlight_to_tweet_posttypes]" disabled
|
197 |
+
value="custom" <?php echo ( $highlight_to_tweet_posttypes === 'custom' ) ? 'checked' : ''; ?>
|
198 |
+
/>
|
199 |
+
|
200 |
+
<strong></strong>
|
201 |
+
<?php echo esc_html__( 'Select post types', 'kiwi-social-share' ); ?>
|
202 |
+
</label>
|
203 |
+
|
204 |
+
<div
|
205 |
+
class="epsilon-ui-checklist" <?php echo ( $highlight_to_tweet_posttypes === 'all' ) ? 'style="display:none"' : ''; ?>>
|
206 |
+
<ul>
|
207 |
+
<?php
|
208 |
+
$post_types_list = Kiwi_Social_Share_Helper::get_setting_value( 'highlight_to_tweet_posttypes_list', array(
|
209 |
+
'post',
|
210 |
+
'page'
|
211 |
+
) );
|
212 |
+
?>
|
213 |
+
<?php foreach ( $post_types as $name => $label ) { ?>
|
214 |
+
<li>
|
215 |
+
<span><?php echo esc_html( $label ) ?></span>
|
216 |
+
<label class="epsilon-ui-checkbox">
|
217 |
+
<input name="kiwi_general_settings[highlight_to_tweet_posttypes_list][]"
|
218 |
+
value="<?php echo esc_attr( $name ); ?>"
|
219 |
+
<?php echo ( in_array( $name, $post_types_list ) ) ? 'checked' : ''; ?>
|
220 |
+
type="checkbox"/>
|
221 |
+
<strong></strong>
|
222 |
+
</label>
|
223 |
+
</li>
|
224 |
+
<?php } ?>
|
225 |
+
</ul>
|
226 |
+
</div>
|
227 |
+
<div
|
228 |
+
class="epsilon-ui-overlay <?php echo empty( $highlight_to_tweet ) ? 'active' : ''; ?>"></div>
|
229 |
+
</div>
|
230 |
+
</div>
|
231 |
+
<?php
|
232 |
+
$tracking = Kiwi_Social_Share_Helper::get_setting_value( 'ga_tracking', '', 'kiwi_social_identities' );
|
233 |
+
?>
|
234 |
+
<div class="sl-kiwi-opt-group clearfix">
|
235 |
+
<div class="sl-kiwi-opt-toggle">
|
236 |
+
<div class="epsilon-ui-toggle">
|
237 |
+
<label>
|
238 |
+
<input type="checkbox" id="kiwi_ga_tracking"
|
239 |
+
name="kiwi_social_identities[ga_tracking]" <?php echo ! empty( $tracking ) ? 'checked' : ''; ?>
|
240 |
+
value="on"/>
|
241 |
+
<span></span>
|
242 |
+
</label>
|
243 |
+
</div>
|
244 |
+
</div>
|
245 |
+
|
246 |
+
<div class="sl-kiwi-opt-description fixed">
|
247 |
+
<h4><?php echo esc_html__( 'Google Analytics tracking', 'kiwi-social-share' ) ?></h4>
|
248 |
+
<p><?php echo esc_html__( 'Track the click events on your social networks.', 'kiwi-social-share' ) ?></p>
|
249 |
+
</div>
|
250 |
+
</div>
|
251 |
+
<?php
|
252 |
+
$advanced_shortcode_manager = Kiwi_Social_Share_Helper::get_setting_value( 'advanced_shortcode_manager', false, 'kiwi_advanced_settings' );
|
253 |
+
?>
|
254 |
+
<div class="sl-kiwi-opt-group clearfix">
|
255 |
+
<div class="sl-kiwi-opt-toggle">
|
256 |
+
<div class="epsilon-ui-toggle">
|
257 |
+
<label>
|
258 |
+
<input type="checkbox" id="kiwi_advanced_shortcode_manager"
|
259 |
+
name="kiwi_advanced_settings[advanced_shortcode_manager]" <?php echo ! empty( $advanced_shortcode_manager ) ? 'checked' : ''; ?>
|
260 |
+
value="on"/>
|
261 |
+
<span></span>
|
262 |
+
</label>
|
263 |
+
</div>
|
264 |
+
</div>
|
265 |
+
|
266 |
+
<div class="sl-kiwi-opt-description fixed">
|
267 |
+
<h4><?php echo esc_html__( 'Shortcode manager', 'kiwi-social-share' ) ?></h4>
|
268 |
+
<p><?php echo esc_html__( 'Enable the advanced shortcode manager.', 'kiwi-social-share' ) ?></p>
|
269 |
+
</div>
|
270 |
+
</div>
|
271 |
+
|
272 |
+
<?php
|
273 |
+
$show_mobile_only = Kiwi_Social_Share_Helper::get_setting_value( 'mobile_only_sharing', false, 'kiwi_advanced_settings' );
|
274 |
+
?>
|
275 |
+
<div class="sl-kiwi-opt-group clearfix">
|
276 |
+
<div class="sl-kiwi-opt-toggle">
|
277 |
+
<div class="epsilon-ui-toggle">
|
278 |
+
<label>
|
279 |
+
<input type="checkbox" id="kiwi_mobile_only_sharing"
|
280 |
+
name="kiwi_advanced_settings[mobile_only_sharing]" <?php echo ! empty( $show_mobile_only ) ? 'checked' : ''; ?>
|
281 |
+
value="on"/>
|
282 |
+
<span></span>
|
283 |
+
</label>
|
284 |
+
</div>
|
285 |
+
</div>
|
286 |
+
|
287 |
+
<div class="sl-kiwi-opt-description fixed">
|
288 |
+
<h4><?php echo esc_html__( 'WhatsApp icon visible on desktop browsers', 'kiwi-social-share' ) ?></h4>
|
289 |
+
<p><?php echo esc_html__( 'Desktop browsers can\'t handle WhatsApp sharing correctly, you can enable/disable the visibility of the icon by toggling this option.', 'kiwi-social-share' ) ?></p>
|
290 |
+
</div>
|
291 |
+
</div>
|
292 |
</div>
|
includes/backend/parts/kiwi-tab-article-bar.php
CHANGED
@@ -1,259 +1,259 @@
|
|
1 |
-
<?php
|
2 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
-
exit;
|
4 |
-
}
|
5 |
-
?>
|
6 |
-
<div class="sl-kiwi-tab-article-bar <?php echo ( $hash === 'sl-kiwi-tab-article-bar' ) ? 'epsilon-tab-active' : ''; ?>">
|
7 |
-
<h2>
|
8 |
-
<span><?php echo esc_html__( 'Article bar', 'kiwi-social-share' ) ?></span>
|
9 |
-
</h2>
|
10 |
-
<div class="sl-kiwi-opt-group clearfix">
|
11 |
-
<?php
|
12 |
-
$share_buttons = Kiwi_Social_Share_Helper::get_setting_value( 'share_buttons', '' );
|
13 |
-
?>
|
14 |
-
<div class="sl-kiwi-opt-toggle">
|
15 |
-
<div class="epsilon-ui-toggle">
|
16 |
-
<label>
|
17 |
-
<input type="checkbox" id="kiwi_share_buttons"
|
18 |
-
name="kiwi_general_settings[share_buttons]" <?php echo ! empty( $share_buttons ) ? 'checked' : ''; ?>
|
19 |
-
value="on"/>
|
20 |
-
<span></span>
|
21 |
-
</label>
|
22 |
-
</div>
|
23 |
-
</div>
|
24 |
-
|
25 |
-
<div class="sl-kiwi-opt-description kiwi-title-has-tooltip">
|
26 |
-
<h4><?php echo esc_html__( 'Social bar', 'kiwi-social-share' ) ?></h4>
|
27 |
-
<div class="kiwi-tooltip-container">
|
28 |
-
<span data-attribute="shortcode-tooltip" class="tooltip-opener dashicons dashicons-info"></span>
|
29 |
-
<div id="shortcode-tooltip" class="kiwi-notice-container">
|
30 |
-
<p><?php echo esc_html__( 'To insert the share bar anywhere in the article, you can use the [kiwi-social-bar] shortcode. For a more advanced usage of shortcodes, you can activate the Shortcode manager from the Advanced tab.', 'kiwi-social-share' ); ?></p>
|
31 |
-
</div>
|
32 |
-
</div>
|
33 |
-
<p><?php echo esc_html__( 'The social buttons can be shown before or after content (post, page, custom post).', 'kiwi-social-share' ) ?></p>
|
34 |
-
</div>
|
35 |
-
|
36 |
-
<div class="epsilon-ui-option right">
|
37 |
-
<?php
|
38 |
-
$share_buttons_location = Kiwi_Social_Share_Helper::get_setting_value( 'share_buttons_location', 'bottom' );
|
39 |
-
?>
|
40 |
-
<ul>
|
41 |
-
<li>
|
42 |
-
<label>
|
43 |
-
<input type="radio" id="kiwi_share_buttons_location_a"
|
44 |
-
name="kiwi_general_settings[share_buttons_location]" <?php echo ( $share_buttons_location === 'top' ) ? 'checked' : ''; ?>
|
45 |
-
value="top"/>
|
46 |
-
<span>
|
47 |
-
<i class="icon kiwi-ic-postop"><strong><em></em><em></em><em></em></strong></i>
|
48 |
-
<span><?php echo esc_html__( 'Top', 'kiwi-social-share' ); ?></span>
|
49 |
-
</span>
|
50 |
-
</label>
|
51 |
-
</li>
|
52 |
-
<li>
|
53 |
-
<?php
|
54 |
-
|
55 |
-
?>
|
56 |
-
<label>
|
57 |
-
<input type="radio" id="kiwi_share_buttons_location_b"
|
58 |
-
name="kiwi_general_settings[share_buttons_location]"
|
59 |
-
value="bottom" <?php echo ( $share_buttons_location === 'bottom' ) ? 'checked' : ''; ?>/>
|
60 |
-
<span>
|
61 |
-
<i class="icon kiwi-ic-posbottom"><strong><em></em><em></em><em></em></strong></i>
|
62 |
-
<span><?php echo esc_html__( 'Bottom', 'kiwi-social-share' ); ?></span>
|
63 |
-
</span>
|
64 |
-
</label>
|
65 |
-
</li>
|
66 |
-
<li>
|
67 |
-
<label>
|
68 |
-
<input type="radio" id="kiwi_share_buttons_location_c"
|
69 |
-
name="kiwi_general_settings[share_buttons_location]"
|
70 |
-
value="both" <?php echo ( $share_buttons_location === 'both' ) ? 'checked' : ''; ?>/>
|
71 |
-
<span>
|
72 |
-
<i class="icon kiwi-ic-posboth"><strong><em class="top"></em><em class="top"></em><em
|
73 |
-
class="top"></em><em class="bottom"></em><em class="bottom"></em><em
|
74 |
-
class="bottom"></em></strong></i>
|
75 |
-
<span><?php echo esc_html__( 'Both', 'kiwi-social-share' ); ?></span>
|
76 |
-
</span>
|
77 |
-
</label>
|
78 |
-
</li>
|
79 |
-
</ul>
|
80 |
-
|
81 |
-
<div class="epsilon-ui-overlay <?php echo ! empty( $share_buttons ) ? '' : 'active'; ?>"></div>
|
82 |
-
</div>
|
83 |
-
|
84 |
-
<div class="clearfix"></div>
|
85 |
-
<?php
|
86 |
-
$share_buttons_posttypes = Kiwi_Social_Share_Helper::get_setting_value( 'share_buttons_posttypes', 'all' );
|
87 |
-
?>
|
88 |
-
<div class="sl-kiwi-opt-description sl-kiwi-radio-post-types sl-kiwi-inner-opt clearfix">
|
89 |
-
<h5><?php echo esc_html__( 'Activate this feature on', 'kiwi-social-share' ) ?></h5>
|
90 |
-
|
91 |
-
<label class="epsilon-ui-radio ui-radio-inline">
|
92 |
-
<input type="radio" id="kiwi_share_buttons_posttypes_a"
|
93 |
-
name="kiwi_general_settings[share_buttons_posttypes]"
|
94 |
-
value="all" <?php echo ( $share_buttons_posttypes === 'all' ) ? 'checked' : ''; ?> />
|
95 |
-
|
96 |
-
<strong></strong>
|
97 |
-
<?php echo esc_html__( 'All Pages', 'kiwi-social-share' ); ?>
|
98 |
-
</label>
|
99 |
-
|
100 |
-
<label class="epsilon-ui-radio ui-radio-inline ui-locked">
|
101 |
-
<input type="radio" id="kiwi_share_buttons_posttypes_b"
|
102 |
-
name="kiwi_general_settings[share_buttons_posttypes]" disabled
|
103 |
-
value="custom" <?php echo ( $share_buttons_posttypes === 'custom' ) ? 'checked' : ''; ?>
|
104 |
-
/>
|
105 |
-
|
106 |
-
<strong></strong>
|
107 |
-
<?php echo esc_html__( 'Select post types', 'kiwi-social-share' ); ?>
|
108 |
-
</label>
|
109 |
-
|
110 |
-
<div class="epsilon-ui-checklist" <?php echo ( $share_buttons_posttypes === 'all' ) ? 'style="display:none"' : ''; ?>>
|
111 |
-
<ul>
|
112 |
-
<?php
|
113 |
-
$post_types_list = Kiwi_Social_Share_Helper::get_setting_value( 'share_buttons_posttypes_list', array(
|
114 |
-
'post',
|
115 |
-
'page'
|
116 |
-
) );
|
117 |
-
|
118 |
-
?>
|
119 |
-
<?php foreach ( $post_types as $name => $label ) { ?>
|
120 |
-
<li>
|
121 |
-
<span><?php echo esc_html( $label ) ?></span>
|
122 |
-
<label class="epsilon-ui-checkbox">
|
123 |
-
<input name="kiwi_general_settings[share_buttons_posttypes_list][]"
|
124 |
-
value="<?php echo esc_attr( $name ); ?>"
|
125 |
-
<?php echo ( in_array( $name, $post_types_list ) ) ? 'checked' : ''; ?>
|
126 |
-
type="checkbox"/>
|
127 |
-
<strong></strong>
|
128 |
-
</label>
|
129 |
-
</li>
|
130 |
-
<?php } ?>
|
131 |
-
</ul>
|
132 |
-
</div>
|
133 |
-
<div class="epsilon-ui-overlay <?php echo ! empty( $share_buttons ) ? '' : 'active'; ?>"></div>
|
134 |
-
</div>
|
135 |
-
</div>
|
136 |
-
|
137 |
-
<div class="sl-kiwi-opt-group clearfix">
|
138 |
-
|
139 |
-
<div class="sl-kiwi-opt-description">
|
140 |
-
<h4><?php echo esc_html__( 'Buttons shape', 'kiwi-social-share' ) ?></h4>
|
141 |
-
<p><?php echo esc_html__( 'Change the shape of the social buttons.', 'kiwi-social-share' ) ?></p>
|
142 |
-
</div>
|
143 |
-
|
144 |
-
<?php
|
145 |
-
$button_shape = Kiwi_Social_Share_Helper::get_setting_value( 'button_shape', 'rect' );
|
146 |
-
?>
|
147 |
-
|
148 |
-
<div class="epsilon-ui-option right">
|
149 |
-
<ul>
|
150 |
-
<li>
|
151 |
-
<label>
|
152 |
-
<input type="radio" id="kiwi_button_shape_a"
|
153 |
-
name="kiwi_general_settings[button_shape]" <?php echo ( $button_shape === 'shift' ) ? 'checked' : ''; ?>
|
154 |
-
value="shift"/>
|
155 |
-
<span>
|
156 |
-
<i class="icon kiwi-ic-shift"><strong><em></em><em></em><em></em></strong></i>
|
157 |
-
<span><?php echo esc_html__( 'Shift', 'kiwi-social-share' ); ?></span>
|
158 |
-
</span>
|
159 |
-
</label>
|
160 |
-
</li>
|
161 |
-
<li>
|
162 |
-
<label>
|
163 |
-
<input type="radio" id="kiwi_button_shape_b"
|
164 |
-
name="kiwi_general_settings[button_shape]" <?php echo ( $button_shape === 'rect' ) ? 'checked' : ''; ?>
|
165 |
-
value="rect"/>
|
166 |
-
<span>
|
167 |
-
<i class="icon kiwi-ic-rect"><strong><em></em><em></em><em></em></strong></i>
|
168 |
-
<span><?php echo esc_html__( 'Rect', 'kiwi-social-share' ); ?></span>
|
169 |
-
</span>
|
170 |
-
</label>
|
171 |
-
</li>
|
172 |
-
<li>
|
173 |
-
<label>
|
174 |
-
<input type="radio" id="kiwi_button_shape_c"
|
175 |
-
name="kiwi_general_settings[button_shape]" <?php echo ( $button_shape === 'leaf' ) ? 'checked' : ''; ?>
|
176 |
-
value="leaf"/>
|
177 |
-
<span>
|
178 |
-
<i class="icon kiwi-ic-leaf"><strong><em></em><em></em><em></em></strong></i>
|
179 |
-
<span><?php echo esc_html__( 'Leaf', 'kiwi-social-share' ); ?></span>
|
180 |
-
</span>
|
181 |
-
</label>
|
182 |
-
</li>
|
183 |
-
<li>
|
184 |
-
<label>
|
185 |
-
<input type="radio" id="kiwi_button_shape_d"
|
186 |
-
name="kiwi_general_settings[button_shape]" <?php echo ( $button_shape === 'pill' ) ? 'checked' : ''; ?>
|
187 |
-
value="pill"/>
|
188 |
-
<span>
|
189 |
-
<i class="icon kiwi-ic-pill"><strong><em></em><em></em><em></em></strong></i>
|
190 |
-
<span><?php echo esc_html__( 'Pill', 'kiwi-social-share' ); ?></span>
|
191 |
-
</span>
|
192 |
-
</label>
|
193 |
-
</li>
|
194 |
-
</ul>
|
195 |
-
</div>
|
196 |
-
</div>
|
197 |
-
|
198 |
-
<div class="sl-kiwi-opt-group clearfix">
|
199 |
-
|
200 |
-
<div class="sl-kiwi-opt-description">
|
201 |
-
<h4><?php echo esc_html__( 'Button group style', 'kiwi-social-share' ) ?></h4>
|
202 |
-
<p><?php echo esc_html__( 'Change the style of the article bar group.', 'kiwi-social-share' ) ?></p>
|
203 |
-
</div>
|
204 |
-
|
205 |
-
<?php
|
206 |
-
$article_bar_style = Kiwi_Social_Share_Helper::get_setting_value( 'article_bar_style', 'center' );
|
207 |
-
?>
|
208 |
-
|
209 |
-
<div class="epsilon-ui-option right">
|
210 |
-
<ul>
|
211 |
-
<li>
|
212 |
-
<label>
|
213 |
-
<input type="radio" id="kiwi_article_bar_style_a"
|
214 |
-
name="kiwi_general_settings[article_bar_style]" <?php echo ( $article_bar_style === 'center' ) ? 'checked' : ''; ?>
|
215 |
-
value="center"/>
|
216 |
-
<span>
|
217 |
-
<i class="icon kiwi-ic-centered"><strong><em></em><em></em><em></em></strong></i>
|
218 |
-
<span><?php echo esc_html__( 'Center', 'kiwi-social-share' ); ?></span>
|
219 |
-
</span>
|
220 |
-
</label>
|
221 |
-
</li>
|
222 |
-
<li>
|
223 |
-
<label>
|
224 |
-
<input type="radio" id="kiwi_article_bar_style_b"
|
225 |
-
name="kiwi_general_settings[article_bar_style]" <?php echo ( $article_bar_style === 'fit' ) ? 'checked' : ''; ?>
|
226 |
-
value="fit"/>
|
227 |
-
<span>
|
228 |
-
<i class="icon kiwi-ic-filled"><strong><em></em><em></em><em></em></strong></i>
|
229 |
-
<span><?php echo esc_html__( 'Fit', 'kiwi-social-share' ); ?></span>
|
230 |
-
</span>
|
231 |
-
</label>
|
232 |
-
</li>
|
233 |
-
</ul>
|
234 |
-
</div>
|
235 |
-
</div>
|
236 |
-
|
237 |
-
|
238 |
-
<?php
|
239 |
-
$share_counts = Kiwi_Social_Share_Helper::get_setting_value( 'share_counts', '' );
|
240 |
-
?>
|
241 |
-
<div class="sl-kiwi-opt-group">
|
242 |
-
<div class="sl-kiwi-opt-toggle">
|
243 |
-
<div class="epsilon-ui-toggle">
|
244 |
-
<label>
|
245 |
-
<input type="checkbox" id="kiwi_share_counts"
|
246 |
-
name="kiwi_general_settings[share_counts]" <?php echo ! empty( $share_counts ) ? 'checked' : ''; ?>
|
247 |
-
value="on"/>
|
248 |
-
<span></span>
|
249 |
-
</label>
|
250 |
-
</div>
|
251 |
-
</div>
|
252 |
-
|
253 |
-
<div class="sl-kiwi-opt-description fixed">
|
254 |
-
<h4><?php echo esc_html__( 'Show share counts', 'kiwi-social-share' ) ?></h4>
|
255 |
-
<p><?php echo esc_html__( 'Display the number of counts next to the social network icon.', 'kiwi-social-share' ) ?></p>
|
256 |
-
</div>
|
257 |
-
</div>
|
258 |
-
|
259 |
</div>
|
1 |
+
<?php
|
2 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
+
exit;
|
4 |
+
}
|
5 |
+
?>
|
6 |
+
<div class="sl-kiwi-tab-article-bar <?php echo ( $hash === 'sl-kiwi-tab-article-bar' ) ? 'epsilon-tab-active' : ''; ?>">
|
7 |
+
<h2>
|
8 |
+
<span><?php echo esc_html__( 'Article bar', 'kiwi-social-share' ) ?></span>
|
9 |
+
</h2>
|
10 |
+
<div class="sl-kiwi-opt-group clearfix">
|
11 |
+
<?php
|
12 |
+
$share_buttons = Kiwi_Social_Share_Helper::get_setting_value( 'share_buttons', '' );
|
13 |
+
?>
|
14 |
+
<div class="sl-kiwi-opt-toggle">
|
15 |
+
<div class="epsilon-ui-toggle">
|
16 |
+
<label>
|
17 |
+
<input type="checkbox" id="kiwi_share_buttons"
|
18 |
+
name="kiwi_general_settings[share_buttons]" <?php echo ! empty( $share_buttons ) ? 'checked' : ''; ?>
|
19 |
+
value="on"/>
|
20 |
+
<span></span>
|
21 |
+
</label>
|
22 |
+
</div>
|
23 |
+
</div>
|
24 |
+
|
25 |
+
<div class="sl-kiwi-opt-description kiwi-title-has-tooltip">
|
26 |
+
<h4><?php echo esc_html__( 'Social bar', 'kiwi-social-share' ) ?></h4>
|
27 |
+
<div class="kiwi-tooltip-container">
|
28 |
+
<span data-attribute="shortcode-tooltip" class="tooltip-opener dashicons dashicons-info"></span>
|
29 |
+
<div id="shortcode-tooltip" class="kiwi-notice-container">
|
30 |
+
<p><?php echo esc_html__( 'To insert the share bar anywhere in the article, you can use the [kiwi-social-bar] shortcode. For a more advanced usage of shortcodes, you can activate the Shortcode manager from the Advanced tab.', 'kiwi-social-share' ); ?></p>
|
31 |
+
</div>
|
32 |
+
</div>
|
33 |
+
<p><?php echo esc_html__( 'The social buttons can be shown before or after content (post, page, custom post).', 'kiwi-social-share' ) ?></p>
|
34 |
+
</div>
|
35 |
+
|
36 |
+
<div class="epsilon-ui-option right">
|
37 |
+
<?php
|
38 |
+
$share_buttons_location = Kiwi_Social_Share_Helper::get_setting_value( 'share_buttons_location', 'bottom' );
|
39 |
+
?>
|
40 |
+
<ul>
|
41 |
+
<li>
|
42 |
+
<label>
|
43 |
+
<input type="radio" id="kiwi_share_buttons_location_a"
|
44 |
+
name="kiwi_general_settings[share_buttons_location]" <?php echo ( $share_buttons_location === 'top' ) ? 'checked' : ''; ?>
|
45 |
+
value="top"/>
|
46 |
+
<span>
|
47 |
+
<i class="icon kiwi-ic-postop"><strong><em></em><em></em><em></em></strong></i>
|
48 |
+
<span><?php echo esc_html__( 'Top', 'kiwi-social-share' ); ?></span>
|
49 |
+
</span>
|
50 |
+
</label>
|
51 |
+
</li>
|
52 |
+
<li>
|
53 |
+
<?php
|
54 |
+
|
55 |
+
?>
|
56 |
+
<label>
|
57 |
+
<input type="radio" id="kiwi_share_buttons_location_b"
|
58 |
+
name="kiwi_general_settings[share_buttons_location]"
|
59 |
+
value="bottom" <?php echo ( $share_buttons_location === 'bottom' ) ? 'checked' : ''; ?>/>
|
60 |
+
<span>
|
61 |
+
<i class="icon kiwi-ic-posbottom"><strong><em></em><em></em><em></em></strong></i>
|
62 |
+
<span><?php echo esc_html__( 'Bottom', 'kiwi-social-share' ); ?></span>
|
63 |
+
</span>
|
64 |
+
</label>
|
65 |
+
</li>
|
66 |
+
<li>
|
67 |
+
<label>
|
68 |
+
<input type="radio" id="kiwi_share_buttons_location_c"
|
69 |
+
name="kiwi_general_settings[share_buttons_location]"
|
70 |
+
value="both" <?php echo ( $share_buttons_location === 'both' ) ? 'checked' : ''; ?>/>
|
71 |
+
<span>
|
72 |
+
<i class="icon kiwi-ic-posboth"><strong><em class="top"></em><em class="top"></em><em
|
73 |
+
class="top"></em><em class="bottom"></em><em class="bottom"></em><em
|
74 |
+
class="bottom"></em></strong></i>
|
75 |
+
<span><?php echo esc_html__( 'Both', 'kiwi-social-share' ); ?></span>
|
76 |
+
</span>
|
77 |
+
</label>
|
78 |
+
</li>
|
79 |
+
</ul>
|
80 |
+
|
81 |
+
<div class="epsilon-ui-overlay <?php echo ! empty( $share_buttons ) ? '' : 'active'; ?>"></div>
|
82 |
+
</div>
|
83 |
+
|
84 |
+
<div class="clearfix"></div>
|
85 |
+
<?php
|
86 |
+
$share_buttons_posttypes = Kiwi_Social_Share_Helper::get_setting_value( 'share_buttons_posttypes', 'all' );
|
87 |
+
?>
|
88 |
+
<div class="sl-kiwi-opt-description sl-kiwi-radio-post-types sl-kiwi-inner-opt clearfix">
|
89 |
+
<h5><?php echo esc_html__( 'Activate this feature on', 'kiwi-social-share' ) ?></h5>
|
90 |
+
|
91 |
+
<label class="epsilon-ui-radio ui-radio-inline">
|
92 |
+
<input type="radio" id="kiwi_share_buttons_posttypes_a"
|
93 |
+
name="kiwi_general_settings[share_buttons_posttypes]"
|
94 |
+
value="all" <?php echo ( $share_buttons_posttypes === 'all' ) ? 'checked' : ''; ?> />
|
95 |
+
|
96 |
+
<strong></strong>
|
97 |
+
<?php echo esc_html__( 'All Pages', 'kiwi-social-share' ); ?>
|
98 |
+
</label>
|
99 |
+
|
100 |
+
<label class="epsilon-ui-radio ui-radio-inline ui-locked">
|
101 |
+
<input type="radio" id="kiwi_share_buttons_posttypes_b"
|
102 |
+
name="kiwi_general_settings[share_buttons_posttypes]" disabled
|
103 |
+
value="custom" <?php echo ( $share_buttons_posttypes === 'custom' ) ? 'checked' : ''; ?>
|
104 |
+
/>
|
105 |
+
|
106 |
+
<strong></strong>
|
107 |
+
<?php echo esc_html__( 'Select post types', 'kiwi-social-share' ); ?>
|
108 |
+
</label>
|
109 |
+
|
110 |
+
<div class="epsilon-ui-checklist" <?php echo ( $share_buttons_posttypes === 'all' ) ? 'style="display:none"' : ''; ?>>
|
111 |
+
<ul>
|
112 |
+
<?php
|
113 |
+
$post_types_list = Kiwi_Social_Share_Helper::get_setting_value( 'share_buttons_posttypes_list', array(
|
114 |
+
'post',
|
115 |
+
'page'
|
116 |
+
) );
|
117 |
+
|
118 |
+
?>
|
119 |
+
<?php foreach ( $post_types as $name => $label ) { ?>
|
120 |
+
<li>
|
121 |
+
<span><?php echo esc_html( $label ) ?></span>
|
122 |
+
<label class="epsilon-ui-checkbox">
|
123 |
+
<input name="kiwi_general_settings[share_buttons_posttypes_list][]"
|
124 |
+
value="<?php echo esc_attr( $name ); ?>"
|
125 |
+
<?php echo ( in_array( $name, $post_types_list ) ) ? 'checked' : ''; ?>
|
126 |
+
type="checkbox"/>
|
127 |
+
<strong></strong>
|
128 |
+
</label>
|
129 |
+
</li>
|
130 |
+
<?php } ?>
|
131 |
+
</ul>
|
132 |
+
</div>
|
133 |
+
<div class="epsilon-ui-overlay <?php echo ! empty( $share_buttons ) ? '' : 'active'; ?>"></div>
|
134 |
+
</div>
|
135 |
+
</div>
|
136 |
+
|
137 |
+
<div class="sl-kiwi-opt-group clearfix">
|
138 |
+
|
139 |
+
<div class="sl-kiwi-opt-description">
|
140 |
+
<h4><?php echo esc_html__( 'Buttons shape', 'kiwi-social-share' ) ?></h4>
|
141 |
+
<p><?php echo esc_html__( 'Change the shape of the social buttons.', 'kiwi-social-share' ) ?></p>
|
142 |
+
</div>
|
143 |
+
|
144 |
+
<?php
|
145 |
+
$button_shape = Kiwi_Social_Share_Helper::get_setting_value( 'button_shape', 'rect' );
|
146 |
+
?>
|
147 |
+
|
148 |
+
<div class="epsilon-ui-option right">
|
149 |
+
<ul>
|
150 |
+
<li>
|
151 |
+
<label>
|
152 |
+
<input type="radio" id="kiwi_button_shape_a"
|
153 |
+
name="kiwi_general_settings[button_shape]" <?php echo ( $button_shape === 'shift' ) ? 'checked' : ''; ?>
|
154 |
+
value="shift"/>
|
155 |
+
<span>
|
156 |
+
<i class="icon kiwi-ic-shift"><strong><em></em><em></em><em></em></strong></i>
|
157 |
+
<span><?php echo esc_html__( 'Shift', 'kiwi-social-share' ); ?></span>
|
158 |
+
</span>
|
159 |
+
</label>
|
160 |
+
</li>
|
161 |
+
<li>
|
162 |
+
<label>
|
163 |
+
<input type="radio" id="kiwi_button_shape_b"
|
164 |
+
name="kiwi_general_settings[button_shape]" <?php echo ( $button_shape === 'rect' ) ? 'checked' : ''; ?>
|
165 |
+
value="rect"/>
|
166 |
+
<span>
|
167 |
+
<i class="icon kiwi-ic-rect"><strong><em></em><em></em><em></em></strong></i>
|
168 |
+
<span><?php echo esc_html__( 'Rect', 'kiwi-social-share' ); ?></span>
|
169 |
+
</span>
|
170 |
+
</label>
|
171 |
+
</li>
|
172 |
+
<li>
|
173 |
+
<label>
|
174 |
+
<input type="radio" id="kiwi_button_shape_c"
|
175 |
+
name="kiwi_general_settings[button_shape]" <?php echo ( $button_shape === 'leaf' ) ? 'checked' : ''; ?>
|
176 |
+
value="leaf"/>
|
177 |
+
<span>
|
178 |
+
<i class="icon kiwi-ic-leaf"><strong><em></em><em></em><em></em></strong></i>
|
179 |
+
<span><?php echo esc_html__( 'Leaf', 'kiwi-social-share' ); ?></span>
|
180 |
+
</span>
|
181 |
+
</label>
|
182 |
+
</li>
|
183 |
+
<li>
|
184 |
+
<label>
|
185 |
+
<input type="radio" id="kiwi_button_shape_d"
|
186 |
+
name="kiwi_general_settings[button_shape]" <?php echo ( $button_shape === 'pill' ) ? 'checked' : ''; ?>
|
187 |
+
value="pill"/>
|
188 |
+
<span>
|
189 |
+
<i class="icon kiwi-ic-pill"><strong><em></em><em></em><em></em></strong></i>
|
190 |
+
<span><?php echo esc_html__( 'Pill', 'kiwi-social-share' ); ?></span>
|
191 |
+
</span>
|
192 |
+
</label>
|
193 |
+
</li>
|
194 |
+
</ul>
|
195 |
+
</div>
|
196 |
+
</div>
|
197 |
+
|
198 |
+
<div class="sl-kiwi-opt-group clearfix">
|
199 |
+
|
200 |
+
<div class="sl-kiwi-opt-description">
|
201 |
+
<h4><?php echo esc_html__( 'Button group style', 'kiwi-social-share' ) ?></h4>
|
202 |
+
<p><?php echo esc_html__( 'Change the style of the article bar group.', 'kiwi-social-share' ) ?></p>
|
203 |
+
</div>
|
204 |
+
|
205 |
+
<?php
|
206 |
+
$article_bar_style = Kiwi_Social_Share_Helper::get_setting_value( 'article_bar_style', 'center' );
|
207 |
+
?>
|
208 |
+
|
209 |
+
<div class="epsilon-ui-option right">
|
210 |
+
<ul>
|
211 |
+
<li>
|
212 |
+
<label>
|
213 |
+
<input type="radio" id="kiwi_article_bar_style_a"
|
214 |
+
name="kiwi_general_settings[article_bar_style]" <?php echo ( $article_bar_style === 'center' ) ? 'checked' : ''; ?>
|
215 |
+
value="center"/>
|
216 |
+
<span>
|
217 |
+
<i class="icon kiwi-ic-centered"><strong><em></em><em></em><em></em></strong></i>
|
218 |
+
<span><?php echo esc_html__( 'Center', 'kiwi-social-share' ); ?></span>
|
219 |
+
</span>
|
220 |
+
</label>
|
221 |
+
</li>
|
222 |
+
<li>
|
223 |
+
<label>
|
224 |
+
<input type="radio" id="kiwi_article_bar_style_b"
|
225 |
+
name="kiwi_general_settings[article_bar_style]" <?php echo ( $article_bar_style === 'fit' ) ? 'checked' : ''; ?>
|
226 |
+
value="fit"/>
|
227 |
+
<span>
|
228 |
+
<i class="icon kiwi-ic-filled"><strong><em></em><em></em><em></em></strong></i>
|
229 |
+
<span><?php echo esc_html__( 'Fit', 'kiwi-social-share' ); ?></span>
|
230 |
+
</span>
|
231 |
+
</label>
|
232 |
+
</li>
|
233 |
+
</ul>
|
234 |
+
</div>
|
235 |
+
</div>
|
236 |
+
|
237 |
+
|
238 |
+
<?php
|
239 |
+
$share_counts = Kiwi_Social_Share_Helper::get_setting_value( 'share_counts', '' );
|
240 |
+
?>
|
241 |
+
<div class="sl-kiwi-opt-group">
|
242 |
+
<div class="sl-kiwi-opt-toggle">
|
243 |
+
<div class="epsilon-ui-toggle">
|
244 |
+
<label>
|
245 |
+
<input type="checkbox" id="kiwi_share_counts"
|
246 |
+
name="kiwi_general_settings[share_counts]" <?php echo ! empty( $share_counts ) ? 'checked' : ''; ?>
|
247 |
+
value="on"/>
|
248 |
+
<span></span>
|
249 |
+
</label>
|
250 |
+
</div>
|
251 |
+
</div>
|
252 |
+
|
253 |
+
<div class="sl-kiwi-opt-description fixed">
|
254 |
+
<h4><?php echo esc_html__( 'Show share counts', 'kiwi-social-share' ) ?></h4>
|
255 |
+
<p><?php echo esc_html__( 'Display the number of counts next to the social network icon.', 'kiwi-social-share' ) ?></p>
|
256 |
+
</div>
|
257 |
+
</div>
|
258 |
+
|
259 |
</div>
|
includes/backend/parts/kiwi-tab-floating-bar.php
CHANGED
@@ -1,165 +1,165 @@
|
|
1 |
-
<?php
|
2 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
-
exit;
|
4 |
-
}
|
5 |
-
?>
|
6 |
-
<div class="sl-kiwi-tab-floating-bar <?php echo ( $hash === 'sl-kiwi-tab-floating-bar' ) ? 'epsilon-tab-active' : ''; ?>">
|
7 |
-
<h2>
|
8 |
-
<span><?php echo esc_html__( 'Floating bar', 'kiwi-social-share' ) ?></span>
|
9 |
-
</h2>
|
10 |
-
<?php
|
11 |
-
$floating_panel = Kiwi_Social_Share_Helper::get_setting_value( 'floating_panel', '' );
|
12 |
-
?>
|
13 |
-
<div class="sl-kiwi-opt-group clearfix">
|
14 |
-
<div class="sl-kiwi-opt-toggle">
|
15 |
-
<div class="epsilon-ui-toggle">
|
16 |
-
<label>
|
17 |
-
<input type="checkbox" id="kiwi_floating_panel"
|
18 |
-
name="kiwi_general_settings[floating_panel]" <?php echo ! empty( $floating_panel ) ? 'checked' : ''; ?>
|
19 |
-
value="on"/>
|
20 |
-
<span></span>
|
21 |
-
</label>
|
22 |
-
</div>
|
23 |
-
</div>
|
24 |
-
|
25 |
-
<div class="sl-kiwi-opt-description">
|
26 |
-
<h4><?php echo esc_html__( 'Floating bar', 'kiwi-social-share' ) ?>
|
27 |
-
</h4>
|
28 |
-
<p><?php echo esc_html__( 'You can enable a floating social bar for your website, that can be displayed on the edges of the screen.', 'kiwi-social-share' ) ?></p>
|
29 |
-
</div>
|
30 |
-
<?php
|
31 |
-
$floating_panel_location = Kiwi_Social_Share_Helper::get_setting_value( 'floating_panel_location', 'left' );
|
32 |
-
?>
|
33 |
-
<div class="epsilon-ui-option right clearfix">
|
34 |
-
<ul>
|
35 |
-
<li>
|
36 |
-
<label>
|
37 |
-
<input type="radio" id="kiwi_floating_panel_location_a"
|
38 |
-
name="kiwi_general_settings[floating_panel_location]"
|
39 |
-
value="left" <?php echo ( $floating_panel_location === 'left' ) ? 'checked' : ''; ?> />
|
40 |
-
<span>
|
41 |
-
<i class="icon kiwi-ic-left"><strong><em></em><em></em><em></em></strong></i>
|
42 |
-
<span><?php echo esc_html__( 'Left', 'kiwi-social-share' ); ?></span>
|
43 |
-
</span>
|
44 |
-
</label>
|
45 |
-
</li>
|
46 |
-
<li>
|
47 |
-
<label>
|
48 |
-
<input type="radio" id="kiwi_floating_panel_location_b"
|
49 |
-
name="kiwi_general_settings[floating_panel_location]"
|
50 |
-
value="bottom" <?php echo ( $floating_panel_location === 'bottom' ) ? 'checked' : ''; ?> />
|
51 |
-
<span>
|
52 |
-
<i class="icon kiwi-ic-bottom"><strong><em></em><em></em><em></em></strong></i>
|
53 |
-
<span><?php echo esc_html__( 'Bottom', 'kiwi-social-share' ); ?></span>
|
54 |
-
</span>
|
55 |
-
</label>
|
56 |
-
</li>
|
57 |
-
<li>
|
58 |
-
<label>
|
59 |
-
<input type="radio" id="kiwi_floating_panel_location_c"
|
60 |
-
name="kiwi_general_settings[floating_panel_location]"
|
61 |
-
value="right" <?php echo ( $floating_panel_location === 'right' ) ? 'checked' : ''; ?> />
|
62 |
-
<span>
|
63 |
-
<i class="icon kiwi-ic-right"><strong><em></em><em></em><em></em></strong></i>
|
64 |
-
<span><?php echo esc_html__( 'Right', 'kiwi-social-share' ); ?></span>
|
65 |
-
</span>
|
66 |
-
</label>
|
67 |
-
</li>
|
68 |
-
</ul>
|
69 |
-
<div class="epsilon-ui-overlay <?php echo ! empty( $floating_panel ) ? '' : 'active'; ?>"></div>
|
70 |
-
</div>
|
71 |
-
|
72 |
-
<div class="clearfix"></div>
|
73 |
-
<?php
|
74 |
-
$floating_panel_posttypes = Kiwi_Social_Share_Helper::get_setting_value( 'floating_panel_posttypes', 'all' );
|
75 |
-
?>
|
76 |
-
<div class="sl-kiwi-opt-description sl-kiwi-radio-post-types sl-kiwi-inner-opt clearfix">
|
77 |
-
<h5><?php echo esc_html__( 'Activate this feature on', 'kiwi-social-share' ) ?></h5>
|
78 |
-
|
79 |
-
<label class="epsilon-ui-radio ui-radio-inline">
|
80 |
-
<input type="radio" id="kiwi_floating_panel_posttypes_a"
|
81 |
-
name="kiwi_general_settings[floating_panel_posttypes]"
|
82 |
-
value="all" <?php echo ( $floating_panel_posttypes === 'all' ) ? 'checked' : ''; ?> />
|
83 |
-
|
84 |
-
<strong></strong>
|
85 |
-
<?php echo esc_html__( 'All Pages', 'kiwi-social-share' ); ?>
|
86 |
-
</label>
|
87 |
-
|
88 |
-
<label class="epsilon-ui-radio ui-radio-inline ui-locked">
|
89 |
-
<input type="radio" id="kiwi_floating_panel_posttypes_b"
|
90 |
-
name="kiwi_general_settings[floating_panel_posttypes]" disabled
|
91 |
-
value="custom" <?php echo ( $floating_panel_posttypes === 'custom' ) ? 'checked' : ''; ?>
|
92 |
-
/>
|
93 |
-
|
94 |
-
<strong></strong>
|
95 |
-
<?php echo esc_html__( 'Select post types', 'kiwi-social-share' ); ?>
|
96 |
-
</label>
|
97 |
-
|
98 |
-
<div class="epsilon-ui-checklist" <?php echo ( $floating_panel_posttypes === 'all' ) ? 'style="display:none"' : ''; ?>>
|
99 |
-
<ul>
|
100 |
-
<?php
|
101 |
-
$post_types_list_floating = Kiwi_Social_Share_Helper::get_setting_value( 'floating_panel_posttypes_list', array(
|
102 |
-
'post',
|
103 |
-
'page'
|
104 |
-
) );
|
105 |
-
?>
|
106 |
-
|
107 |
-
<?php foreach ( $post_types as $name => $label ) { ?>
|
108 |
-
<li>
|
109 |
-
<span><?php echo esc_html( $label ) ?></span>
|
110 |
-
<label class="epsilon-ui-checkbox">
|
111 |
-
<input name="kiwi_general_settings[floating_panel_posttypes_list][]"
|
112 |
-
value="<?php echo esc_attr( $name ); ?>"
|
113 |
-
<?php echo ( in_array( $name, $post_types_list_floating ) ) ? 'checked' : ''; ?>
|
114 |
-
type="checkbox"/>
|
115 |
-
<strong></strong>
|
116 |
-
</label>
|
117 |
-
</li>
|
118 |
-
<?php } ?>
|
119 |
-
</ul>
|
120 |
-
</div>
|
121 |
-
<div class="epsilon-ui-overlay <?php echo ! empty( $floating_panel ) ? '' : 'active'; ?>"></div>
|
122 |
-
</div>
|
123 |
-
</div>
|
124 |
-
|
125 |
-
|
126 |
-
<div class="sl-kiwi-opt-group clearfix">
|
127 |
-
|
128 |
-
<div class="sl-kiwi-opt-description">
|
129 |
-
<h4><?php echo esc_html__( 'Buttons shape', 'kiwi-social-share' ) ?></h4>
|
130 |
-
<p><?php echo esc_html__( 'Change the shape of the social buttons.', 'kiwi-social-share' ) ?></p>
|
131 |
-
</div>
|
132 |
-
|
133 |
-
<?php
|
134 |
-
$button_shape_floating = Kiwi_Social_Share_Helper::get_setting_value( 'button_shape_floating', 'rect' );
|
135 |
-
?>
|
136 |
-
|
137 |
-
<div class="epsilon-ui-option right">
|
138 |
-
<ul>
|
139 |
-
<li>
|
140 |
-
<label>
|
141 |
-
<input type="radio" id="kiwi_button_shape_floating_a"
|
142 |
-
name="kiwi_general_settings[button_shape_floating]" <?php echo ( $button_shape_floating === 'rect' ) ? 'checked' : ''; ?>
|
143 |
-
value="rect"/>
|
144 |
-
<span>
|
145 |
-
<i class="icon kiwi-ic-rect"><strong><em></em><em></em><em></em></strong></i>
|
146 |
-
<span><?php echo esc_html__( 'Rect', 'kiwi-social-share' ); ?></span>
|
147 |
-
</span>
|
148 |
-
</label>
|
149 |
-
</li>
|
150 |
-
<li>
|
151 |
-
<label>
|
152 |
-
<input type="radio" id="kiwi_button_shape_floating_b"
|
153 |
-
name="kiwi_general_settings[button_shape_floating]" <?php echo ( $button_shape_floating === 'pill' ) ? 'checked' : ''; ?>
|
154 |
-
value="pill"/>
|
155 |
-
<span>
|
156 |
-
<i class="icon kiwi-ic-pill"><strong><em></em><em></em><em></em></strong></i>
|
157 |
-
<span><?php echo esc_html__( 'Pill', 'kiwi-social-share' ); ?></span>
|
158 |
-
</span>
|
159 |
-
</label>
|
160 |
-
</li>
|
161 |
-
</ul>
|
162 |
-
</div>
|
163 |
-
</div>
|
164 |
-
|
165 |
</div>
|
1 |
+
<?php
|
2 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
+
exit;
|
4 |
+
}
|
5 |
+
?>
|
6 |
+
<div class="sl-kiwi-tab-floating-bar <?php echo ( $hash === 'sl-kiwi-tab-floating-bar' ) ? 'epsilon-tab-active' : ''; ?>">
|
7 |
+
<h2>
|
8 |
+
<span><?php echo esc_html__( 'Floating bar', 'kiwi-social-share' ) ?></span>
|
9 |
+
</h2>
|
10 |
+
<?php
|
11 |
+
$floating_panel = Kiwi_Social_Share_Helper::get_setting_value( 'floating_panel', '' );
|
12 |
+
?>
|
13 |
+
<div class="sl-kiwi-opt-group clearfix">
|
14 |
+
<div class="sl-kiwi-opt-toggle">
|
15 |
+
<div class="epsilon-ui-toggle">
|
16 |
+
<label>
|
17 |
+
<input type="checkbox" id="kiwi_floating_panel"
|
18 |
+
name="kiwi_general_settings[floating_panel]" <?php echo ! empty( $floating_panel ) ? 'checked' : ''; ?>
|
19 |
+
value="on"/>
|
20 |
+
<span></span>
|
21 |
+
</label>
|
22 |
+
</div>
|
23 |
+
</div>
|
24 |
+
|
25 |
+
<div class="sl-kiwi-opt-description">
|
26 |
+
<h4><?php echo esc_html__( 'Floating bar', 'kiwi-social-share' ) ?>
|
27 |
+
</h4>
|
28 |
+
<p><?php echo esc_html__( 'You can enable a floating social bar for your website, that can be displayed on the edges of the screen.', 'kiwi-social-share' ) ?></p>
|
29 |
+
</div>
|
30 |
+
<?php
|
31 |
+
$floating_panel_location = Kiwi_Social_Share_Helper::get_setting_value( 'floating_panel_location', 'left' );
|
32 |
+
?>
|
33 |
+
<div class="epsilon-ui-option right clearfix">
|
34 |
+
<ul>
|
35 |
+
<li>
|
36 |
+
<label>
|
37 |
+
<input type="radio" id="kiwi_floating_panel_location_a"
|
38 |
+
name="kiwi_general_settings[floating_panel_location]"
|
39 |
+
value="left" <?php echo ( $floating_panel_location === 'left' ) ? 'checked' : ''; ?> />
|
40 |
+
<span>
|
41 |
+
<i class="icon kiwi-ic-left"><strong><em></em><em></em><em></em></strong></i>
|
42 |
+
<span><?php echo esc_html__( 'Left', 'kiwi-social-share' ); ?></span>
|
43 |
+
</span>
|
44 |
+
</label>
|
45 |
+
</li>
|
46 |
+
<li>
|
47 |
+
<label>
|
48 |
+
<input type="radio" id="kiwi_floating_panel_location_b"
|
49 |
+
name="kiwi_general_settings[floating_panel_location]"
|
50 |
+
value="bottom" <?php echo ( $floating_panel_location === 'bottom' ) ? 'checked' : ''; ?> />
|
51 |
+
<span>
|
52 |
+
<i class="icon kiwi-ic-bottom"><strong><em></em><em></em><em></em></strong></i>
|
53 |
+
<span><?php echo esc_html__( 'Bottom', 'kiwi-social-share' ); ?></span>
|
54 |
+
</span>
|
55 |
+
</label>
|
56 |
+
</li>
|
57 |
+
<li>
|
58 |
+
<label>
|
59 |
+
<input type="radio" id="kiwi_floating_panel_location_c"
|
60 |
+
name="kiwi_general_settings[floating_panel_location]"
|
61 |
+
value="right" <?php echo ( $floating_panel_location === 'right' ) ? 'checked' : ''; ?> />
|
62 |
+
<span>
|
63 |
+
<i class="icon kiwi-ic-right"><strong><em></em><em></em><em></em></strong></i>
|
64 |
+
<span><?php echo esc_html__( 'Right', 'kiwi-social-share' ); ?></span>
|
65 |
+
</span>
|
66 |
+
</label>
|
67 |
+
</li>
|
68 |
+
</ul>
|
69 |
+
<div class="epsilon-ui-overlay <?php echo ! empty( $floating_panel ) ? '' : 'active'; ?>"></div>
|
70 |
+
</div>
|
71 |
+
|
72 |
+
<div class="clearfix"></div>
|
73 |
+
<?php
|
74 |
+
$floating_panel_posttypes = Kiwi_Social_Share_Helper::get_setting_value( 'floating_panel_posttypes', 'all' );
|
75 |
+
?>
|
76 |
+
<div class="sl-kiwi-opt-description sl-kiwi-radio-post-types sl-kiwi-inner-opt clearfix">
|
77 |
+
<h5><?php echo esc_html__( 'Activate this feature on', 'kiwi-social-share' ) ?></h5>
|
78 |
+
|
79 |
+
<label class="epsilon-ui-radio ui-radio-inline">
|
80 |
+
<input type="radio" id="kiwi_floating_panel_posttypes_a"
|
81 |
+
name="kiwi_general_settings[floating_panel_posttypes]"
|
82 |
+
value="all" <?php echo ( $floating_panel_posttypes === 'all' ) ? 'checked' : ''; ?> />
|
83 |
+
|
84 |
+
<strong></strong>
|
85 |
+
<?php echo esc_html__( 'All Pages', 'kiwi-social-share' ); ?>
|
86 |
+
</label>
|
87 |
+
|
88 |
+
<label class="epsilon-ui-radio ui-radio-inline ui-locked">
|
89 |
+
<input type="radio" id="kiwi_floating_panel_posttypes_b"
|
90 |
+
name="kiwi_general_settings[floating_panel_posttypes]" disabled
|
91 |
+
value="custom" <?php echo ( $floating_panel_posttypes === 'custom' ) ? 'checked' : ''; ?>
|
92 |
+
/>
|
93 |
+
|
94 |
+
<strong></strong>
|
95 |
+
<?php echo esc_html__( 'Select post types', 'kiwi-social-share' ); ?>
|
96 |
+
</label>
|
97 |
+
|
98 |
+
<div class="epsilon-ui-checklist" <?php echo ( $floating_panel_posttypes === 'all' ) ? 'style="display:none"' : ''; ?>>
|
99 |
+
<ul>
|
100 |
+
<?php
|
101 |
+
$post_types_list_floating = Kiwi_Social_Share_Helper::get_setting_value( 'floating_panel_posttypes_list', array(
|
102 |
+
'post',
|
103 |
+
'page'
|
104 |
+
) );
|
105 |
+
?>
|
106 |
+
|
107 |
+
<?php foreach ( $post_types as $name => $label ) { ?>
|
108 |
+
<li>
|
109 |
+
<span><?php echo esc_html( $label ) ?></span>
|
110 |
+
<label class="epsilon-ui-checkbox">
|
111 |
+
<input name="kiwi_general_settings[floating_panel_posttypes_list][]"
|
112 |
+
value="<?php echo esc_attr( $name ); ?>"
|
113 |
+
<?php echo ( in_array( $name, $post_types_list_floating ) ) ? 'checked' : ''; ?>
|
114 |
+
type="checkbox"/>
|
115 |
+
<strong></strong>
|
116 |
+
</label>
|
117 |
+
</li>
|
118 |
+
<?php } ?>
|
119 |
+
</ul>
|
120 |
+
</div>
|
121 |
+
<div class="epsilon-ui-overlay <?php echo ! empty( $floating_panel ) ? '' : 'active'; ?>"></div>
|
122 |
+
</div>
|
123 |
+
</div>
|
124 |
+
|
125 |
+
|
126 |
+
<div class="sl-kiwi-opt-group clearfix">
|
127 |
+
|
128 |
+
<div class="sl-kiwi-opt-description">
|
129 |
+
<h4><?php echo esc_html__( 'Buttons shape', 'kiwi-social-share' ) ?></h4>
|
130 |
+
<p><?php echo esc_html__( 'Change the shape of the social buttons.', 'kiwi-social-share' ) ?></p>
|
131 |
+
</div>
|
132 |
+
|
133 |
+
<?php
|
134 |
+
$button_shape_floating = Kiwi_Social_Share_Helper::get_setting_value( 'button_shape_floating', 'rect' );
|
135 |
+
?>
|
136 |
+
|
137 |
+
<div class="epsilon-ui-option right">
|
138 |
+
<ul>
|
139 |
+
<li>
|
140 |
+
<label>
|
141 |
+
<input type="radio" id="kiwi_button_shape_floating_a"
|
142 |
+
name="kiwi_general_settings[button_shape_floating]" <?php echo ( $button_shape_floating === 'rect' ) ? 'checked' : ''; ?>
|
143 |
+
value="rect"/>
|
144 |
+
<span>
|
145 |
+
<i class="icon kiwi-ic-rect"><strong><em></em><em></em><em></em></strong></i>
|
146 |
+
<span><?php echo esc_html__( 'Rect', 'kiwi-social-share' ); ?></span>
|
147 |
+
</span>
|
148 |
+
</label>
|
149 |
+
</li>
|
150 |
+
<li>
|
151 |
+
<label>
|
152 |
+
<input type="radio" id="kiwi_button_shape_floating_b"
|
153 |
+
name="kiwi_general_settings[button_shape_floating]" <?php echo ( $button_shape_floating === 'pill' ) ? 'checked' : ''; ?>
|
154 |
+
value="pill"/>
|
155 |
+
<span>
|
156 |
+
<i class="icon kiwi-ic-pill"><strong><em></em><em></em><em></em></strong></i>
|
157 |
+
<span><?php echo esc_html__( 'Pill', 'kiwi-social-share' ); ?></span>
|
158 |
+
</span>
|
159 |
+
</label>
|
160 |
+
</li>
|
161 |
+
</ul>
|
162 |
+
</div>
|
163 |
+
</div>
|
164 |
+
|
165 |
</div>
|
includes/backend/parts/kiwi-tab-networks.php
CHANGED
@@ -1,187 +1,187 @@
|
|
1 |
-
<?php
|
2 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
-
exit;
|
4 |
-
}
|
5 |
-
|
6 |
-
?>
|
7 |
-
<div class="sl-kiwi-tab-networks <?php echo ( $hash === 'sl-kiwi-tab-networks' || empty( $hash ) ) ? 'epsilon-tab-active' : ''; ?>">
|
8 |
-
<h2>
|
9 |
-
<span><?php echo esc_html__( 'Networks & Colors', 'kiwi-social-share' ) ?></span>
|
10 |
-
</h2>
|
11 |
-
<?php
|
12 |
-
$styles_color = Kiwi_Social_Share_Helper::get_setting_value( 'styles_colors', 'original' );
|
13 |
-
?>
|
14 |
-
<div class="clearfix">
|
15 |
-
<label class="epsilon-ui-radio epsilon-ui-radio-toggle ui-radio-inline">
|
16 |
-
<input type="radio" id="kiwi_styles_colors_a"
|
17 |
-
name="kiwi_general_settings[styles_colors]" <?php echo ( $styles_color === 'original' ) ? 'checked' : ''; ?>
|
18 |
-
value="original"/>
|
19 |
-
|
20 |
-
<strong></strong>
|
21 |
-
<?php echo esc_html__( 'Original', 'kiwi-social-share' ); ?>
|
22 |
-
</label>
|
23 |
-
|
24 |
-
<label class="epsilon-ui-radio epsilon-ui-radio-toggle ui-radio-inline ui-locked">
|
25 |
-
<input type="radio" id="kiwi_styles_colors_b"
|
26 |
-
name="kiwi_general_settings[styles_colors]"
|
27 |
-
disabled <?php echo ( $styles_color === 'monochrome' ) ? 'checked' : ''; ?>
|
28 |
-
value="monochrome"/>
|
29 |
-
|
30 |
-
<strong></strong>
|
31 |
-
<?php echo esc_html__( 'Monochrome', 'kiwi-social-share' ); ?>
|
32 |
-
</label>
|
33 |
-
|
34 |
-
<label class="epsilon-ui-radio epsilon-ui-radio-toggle ui-radio-inline ui-locked">
|
35 |
-
<input type="radio" id="kiwi_styles_colors_c"
|
36 |
-
name="kiwi_general_settings[styles_colors]"
|
37 |
-
disabled <?php echo ( $styles_color === 'custom' ) ? 'checked' : ''; ?>
|
38 |
-
value="custom"/>
|
39 |
-
|
40 |
-
<strong></strong>
|
41 |
-
<?php echo esc_html__( 'Custom', 'kiwi-social-share' ); ?>
|
42 |
-
</label>
|
43 |
-
</div>
|
44 |
-
|
45 |
-
<div class="sl-kiwi-networks kiwi-styles">
|
46 |
-
|
47 |
-
<h2>
|
48 |
-
<span><?php echo esc_html__( 'Social Network', 'kiwi-social-share' ) ?></span>
|
49 |
-
<span><?php echo esc_html__( 'Background', 'kiwi-social-share' ) ?></span>
|
50 |
-
<span><?php echo esc_html__( 'Text color', 'kiwi-social-share' ) ?></span>
|
51 |
-
<span><?php echo esc_html__( 'Hover Background', 'kiwi-social-share' ) ?></span>
|
52 |
-
<span><?php echo esc_html__( 'Hover Text color', 'kiwi-social-share' ) ?></span>
|
53 |
-
<span><?php echo esc_html__( 'Social bar', 'kiwi-social-share' ) ?>
|
54 |
-
<label class="epsilon-ui-checkbox"><input id="social-bar-all" type="checkbox"/>
|
55 |
-
<strong class="goleft"></strong></label></span>
|
56 |
-
<span><?php echo esc_html__( 'Floating bar', 'kiwi-social-share' ) ?>
|
57 |
-
<label class="epsilon-ui-checkbox"><input id="floating-bar-all" type="checkbox"/>
|
58 |
-
<strong style="transform: translateX(-7px);"></strong></label></span>
|
59 |
-
</h2>
|
60 |
-
|
61 |
-
<ul>
|
62 |
-
<?php foreach ( $colors as $network => $props ) { ?>
|
63 |
-
<?php if ( $network === 'monochrome' ) {
|
64 |
-
continue;
|
65 |
-
} ?>
|
66 |
-
<li data-network="<?php echo esc_attr( $kiwi_networks[ $network ]['id'] ) ?>"
|
67 |
-
class="epsilon-custom-colors">
|
68 |
-
<span>
|
69 |
-
<strong class="kiwi-nw-<?php echo esc_attr( $kiwi_networks[ $network ]['id'] ) ?>">
|
70 |
-
<i class="kicon-<?php echo esc_attr( $kiwi_networks[ $network ]['icon'] ) ?>"
|
71 |
-
aria-hidden="true"></i>
|
72 |
-
</strong>
|
73 |
-
<?php echo esc_html( $kiwi_networks[ $network ]['label'] ) ?>
|
74 |
-
</span>
|
75 |
-
<span>
|
76 |
-
<span class="epsilon-ui-color" data-prop="background">
|
77 |
-
<input data-color-original="<?php echo esc_attr( Kiwi_Social_Share_Helper::get_network_colors( $kiwi_networks[ $network ]['id'], 'background' ) ) ?>"
|
78 |
-
data-color-custom="<?php echo esc_attr( $props['background'] ); ?>"
|
79 |
-
data-color-monochrome="<?php echo esc_attr( $colors['monochrome']['background'] ); ?>"
|
80 |
-
name="kiwi_network_colors[<?php echo esc_attr( $network ) ?>][background]"
|
81 |
-
value="<?php echo esc_attr( $props['background'] ); ?>"/>
|
82 |
-
<em><?php echo esc_html( $props['background'] ); ?></em>
|
83 |
-
</span>
|
84 |
-
</span>
|
85 |
-
|
86 |
-
<span>
|
87 |
-
<span class="epsilon-ui-color" data-prop="text">
|
88 |
-
<input
|
89 |
-
data-color-original="<?php echo esc_attr( Kiwi_Social_Share_Helper::get_network_colors( $kiwi_networks[ $network ]['id'], 'text' ) ) ?>"
|
90 |
-
data-color-custom="<?php echo esc_attr( $props['text'] ); ?>"
|
91 |
-
data-color-monochrome="<?php echo esc_attr( $colors['monochrome']['text'] ); ?>"
|
92 |
-
name="kiwi_network_colors[<?php echo esc_attr( $network ) ?>][text]"
|
93 |
-
value="<?php echo esc_attr( $props['text'] ); ?>"/>
|
94 |
-
<em><?php echo esc_html( $props['text'] ); ?></em>
|
95 |
-
</span>
|
96 |
-
</span>
|
97 |
-
|
98 |
-
<span>
|
99 |
-
<span class="epsilon-ui-color" data-prop="hover_background">
|
100 |
-
<input
|
101 |
-
data-color-original="<?php echo esc_attr( Kiwi_Social_Share_Helper::get_network_colors( $kiwi_networks[ $network ]['id'], 'hover_background' ) ) ?>"
|
102 |
-
data-color-custom="<?php echo esc_attr( $props['hover_background'] ); ?>"
|
103 |
-
name="kiwi_network_colors[<?php echo esc_attr( $network ) ?>][hover_background]"
|
104 |
-
data-color-monochrome="<?php echo esc_attr( $colors['monochrome']['hover_background'] ); ?>"
|
105 |
-
value="<?php echo esc_attr( $props['hover_background'] ); ?>"/>
|
106 |
-
<em><?php echo esc_html( $props['hover_background'] ); ?></em>
|
107 |
-
</span>
|
108 |
-
</span>
|
109 |
-
|
110 |
-
<span>
|
111 |
-
<span class="epsilon-ui-color" data-prop="hover_text">
|
112 |
-
<input
|
113 |
-
data-color-original="<?php echo esc_attr( Kiwi_Social_Share_Helper::get_network_colors( $kiwi_networks[ $network ]['id'], 'hover_text' ) ) ?>"
|
114 |
-
data-color-custom="<?php echo esc_attr( $props['hover_text'] ) ?>"
|
115 |
-
name="kiwi_network_colors[<?php echo esc_attr( $network ) ?>][hover_text]"
|
116 |
-
data-color-monochrome="<?php echo esc_attr( $colors['monochrome']['hover_text'] ); ?>"
|
117 |
-
value="<?php echo esc_attr( $props['hover_text'] ) ?>"/>
|
118 |
-
<em><?php echo esc_html( $props['hover_text'] ) ?></em>
|
119 |
-
</span>
|
120 |
-
</span>
|
121 |
-
|
122 |
-
<span>
|
123 |
-
<?php if ( ! $networks[ $network ]['locked'] ): ?>
|
124 |
-
<label class="epsilon-ui-checkbox">
|
125 |
-
<input name="kiwi_general_settings[networks_article_bar][]"
|
126 |
-
value="<?php echo esc_attr( $network ); ?>"
|
127 |
-
data-list-item="kiwi-nw-<?php echo esc_attr( $network ) ?>"
|
128 |
-
data-icon="kicon-<?php echo esc_attr( $network ) ?>"
|
129 |
-
data-number="<?php echo absint( $networks[ $network ]['count'] ) ?>"
|
130 |
-
data-source="article-bar" <?php echo in_array( 'article-bar', $networks[ $network ]['checked'] ) ? 'checked' : '' ?>
|
131 |
-
type="checkbox"/>
|
132 |
-
<strong></strong>
|
133 |
-
</label>
|
134 |
-
<?php else: ?>
|
135 |
-
<label class="epsilon-ui-checkbox epsilon-locked">
|
136 |
-
<strong></strong>
|
137 |
-
</label>
|
138 |
-
<?php endif; ?>
|
139 |
-
</span>
|
140 |
-
|
141 |
-
<span>
|
142 |
-
<?php if ( ! $networks[ $network ]['locked'] ): ?>
|
143 |
-
<label class="epsilon-ui-checkbox">
|
144 |
-
<input name="kiwi_general_settings[networks_floating_bar][]"
|
145 |
-
value="<?php echo esc_attr( $network ); ?>"
|
146 |
-
data-list-item="kiwi-nw-<?php echo esc_attr( $network ) ?>"
|
147 |
-
data-icon="kicon-<?php echo esc_attr( $network ) ?>"
|
148 |
-
data-number="<?php echo absint( $networks[ $network ]['count'] ) ?>"
|
149 |
-
data-source="floating-bar" <?php echo in_array( 'floating-bar', $networks[ $network ]['checked'] ) ? 'checked' : '' ?>
|
150 |
-
type="checkbox"/>
|
151 |
-
<strong></strong>
|
152 |
-
</label>
|
153 |
-
<?php else: ?>
|
154 |
-
<label class="epsilon-ui-checkbox epsilon-locked">
|
155 |
-
<strong></strong>
|
156 |
-
</label>
|
157 |
-
<?php endif; ?>
|
158 |
-
</span>
|
159 |
-
|
160 |
-
<?php if ( $networks[ $network ]['locked'] ): ?>
|
161 |
-
<strong class="epsilon-ui-locked"><i class="dashicons dashicons-lock"></i></strong>
|
162 |
-
<?php endif; ?>
|
163 |
-
</li>
|
164 |
-
<?php } ?>
|
165 |
-
</ul>
|
166 |
-
<div
|
167 |
-
class="epsilon-ui-overlay networks <?php echo ( $styles_color === 'original' ) ? 'active' : ''; ?>"></div>
|
168 |
-
</div>
|
169 |
-
|
170 |
-
<!-- <div class="sl-kiwi-opt-group clearfix">-->
|
171 |
-
<!-- <div class="sl-kiwi-opt-description">-->
|
172 |
-
<!-- <h4>--><?php //echo esc_html__( 'Floating bar background', 'kiwi-social-share' ) ?><!--</h4>-->
|
173 |
-
<!-- <p>-->
|
174 |
-
<?php //echo esc_html__( 'Change the background color of the floating bar containerg.', 'kiwi-social-share' ) ?><!--</p>-->
|
175 |
-
<!-- </div>-->
|
176 |
-
<!---->
|
177 |
-
<!-- <div class="bottom-color-option">-->
|
178 |
-
<!-- <span class="epsilon-ui-color floating-bar-background">-->
|
179 |
-
<!-- <input data-color-custom="#272f32" name="kiwi_general_settings[floating_bar_color]"-->
|
180 |
-
<!-- value="-->
|
181 |
-
<?php //echo Kiwi_Social_Share_Helper::get_setting_value( 'floating_bar_color', '#272f32' ) ?><!--"/>-->
|
182 |
-
<!-- <em>-->
|
183 |
-
<?php //echo Kiwi_Social_Share_Helper::get_setting_value( 'floating_bar_color', '#272f32' ) ?><!--</em>-->
|
184 |
-
<!-- </span>-->
|
185 |
-
<!-- </div>-->
|
186 |
-
<!-- </div>-->
|
187 |
-
</div>
|
1 |
+
<?php
|
2 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
+
exit;
|
4 |
+
}
|
5 |
+
|
6 |
+
?>
|
7 |
+
<div class="sl-kiwi-tab-networks <?php echo ( $hash === 'sl-kiwi-tab-networks' || empty( $hash ) ) ? 'epsilon-tab-active' : ''; ?>">
|
8 |
+
<h2>
|
9 |
+
<span><?php echo esc_html__( 'Networks & Colors', 'kiwi-social-share' ) ?></span>
|
10 |
+
</h2>
|
11 |
+
<?php
|
12 |
+
$styles_color = Kiwi_Social_Share_Helper::get_setting_value( 'styles_colors', 'original' );
|
13 |
+
?>
|
14 |
+
<div class="clearfix">
|
15 |
+
<label class="epsilon-ui-radio epsilon-ui-radio-toggle ui-radio-inline">
|
16 |
+
<input type="radio" id="kiwi_styles_colors_a"
|
17 |
+
name="kiwi_general_settings[styles_colors]" <?php echo ( $styles_color === 'original' ) ? 'checked' : ''; ?>
|
18 |
+
value="original"/>
|
19 |
+
|
20 |
+
<strong></strong>
|
21 |
+
<?php echo esc_html__( 'Original', 'kiwi-social-share' ); ?>
|
22 |
+
</label>
|
23 |
+
|
24 |
+
<label class="epsilon-ui-radio epsilon-ui-radio-toggle ui-radio-inline ui-locked">
|
25 |
+
<input type="radio" id="kiwi_styles_colors_b"
|
26 |
+
name="kiwi_general_settings[styles_colors]"
|
27 |
+
disabled <?php echo ( $styles_color === 'monochrome' ) ? 'checked' : ''; ?>
|
28 |
+
value="monochrome"/>
|
29 |
+
|
30 |
+
<strong></strong>
|
31 |
+
<?php echo esc_html__( 'Monochrome', 'kiwi-social-share' ); ?>
|
32 |
+
</label>
|
33 |
+
|
34 |
+
<label class="epsilon-ui-radio epsilon-ui-radio-toggle ui-radio-inline ui-locked">
|
35 |
+
<input type="radio" id="kiwi_styles_colors_c"
|
36 |
+
name="kiwi_general_settings[styles_colors]"
|
37 |
+
disabled <?php echo ( $styles_color === 'custom' ) ? 'checked' : ''; ?>
|
38 |
+
value="custom"/>
|
39 |
+
|
40 |
+
<strong></strong>
|
41 |
+
<?php echo esc_html__( 'Custom', 'kiwi-social-share' ); ?>
|
42 |
+
</label>
|
43 |
+
</div>
|
44 |
+
|
45 |
+
<div class="sl-kiwi-networks kiwi-styles">
|
46 |
+
|
47 |
+
<h2>
|
48 |
+
<span><?php echo esc_html__( 'Social Network', 'kiwi-social-share' ) ?></span>
|
49 |
+
<span><?php echo esc_html__( 'Background', 'kiwi-social-share' ) ?></span>
|
50 |
+
<span><?php echo esc_html__( 'Text color', 'kiwi-social-share' ) ?></span>
|
51 |
+
<span><?php echo esc_html__( 'Hover Background', 'kiwi-social-share' ) ?></span>
|
52 |
+
<span><?php echo esc_html__( 'Hover Text color', 'kiwi-social-share' ) ?></span>
|
53 |
+
<span><?php echo esc_html__( 'Social bar', 'kiwi-social-share' ) ?>
|
54 |
+
<label class="epsilon-ui-checkbox"><input id="social-bar-all" type="checkbox"/>
|
55 |
+
<strong class="goleft"></strong></label></span>
|
56 |
+
<span><?php echo esc_html__( 'Floating bar', 'kiwi-social-share' ) ?>
|
57 |
+
<label class="epsilon-ui-checkbox"><input id="floating-bar-all" type="checkbox"/>
|
58 |
+
<strong style="transform: translateX(-7px);"></strong></label></span>
|
59 |
+
</h2>
|
60 |
+
|
61 |
+
<ul>
|
62 |
+
<?php foreach ( $colors as $network => $props ) { ?>
|
63 |
+
<?php if ( $network === 'monochrome' ) {
|
64 |
+
continue;
|
65 |
+
} ?>
|
66 |
+
<li data-network="<?php echo esc_attr( $kiwi_networks[ $network ]['id'] ) ?>"
|
67 |
+
class="epsilon-custom-colors">
|
68 |
+
<span>
|
69 |
+
<strong class="kiwi-nw-<?php echo esc_attr( $kiwi_networks[ $network ]['id'] ) ?>">
|
70 |
+
<i class="kicon-<?php echo esc_attr( $kiwi_networks[ $network ]['icon'] ) ?>"
|
71 |
+
aria-hidden="true"></i>
|
72 |
+
</strong>
|
73 |
+
<?php echo esc_html( $kiwi_networks[ $network ]['label'] ) ?>
|
74 |
+
</span>
|
75 |
+
<span>
|
76 |
+
<span class="epsilon-ui-color" data-prop="background">
|
77 |
+
<input data-color-original="<?php echo esc_attr( Kiwi_Social_Share_Helper::get_network_colors( $kiwi_networks[ $network ]['id'], 'background' ) ) ?>"
|
78 |
+
data-color-custom="<?php echo esc_attr( $props['background'] ); ?>"
|
79 |
+
data-color-monochrome="<?php echo esc_attr( $colors['monochrome']['background'] ); ?>"
|
80 |
+
name="kiwi_network_colors[<?php echo esc_attr( $network ) ?>][background]"
|
81 |
+
value="<?php echo esc_attr( $props['background'] ); ?>"/>
|
82 |
+
<em><?php echo esc_html( $props['background'] ); ?></em>
|
83 |
+
</span>
|
84 |
+
</span>
|
85 |
+
|
86 |
+
<span>
|
87 |
+
<span class="epsilon-ui-color" data-prop="text">
|
88 |
+
<input
|
89 |
+
data-color-original="<?php echo esc_attr( Kiwi_Social_Share_Helper::get_network_colors( $kiwi_networks[ $network ]['id'], 'text' ) ) ?>"
|
90 |
+
data-color-custom="<?php echo esc_attr( $props['text'] ); ?>"
|
91 |
+
data-color-monochrome="<?php echo esc_attr( $colors['monochrome']['text'] ); ?>"
|
92 |
+
name="kiwi_network_colors[<?php echo esc_attr( $network ) ?>][text]"
|
93 |
+
value="<?php echo esc_attr( $props['text'] ); ?>"/>
|
94 |
+
<em><?php echo esc_html( $props['text'] ); ?></em>
|
95 |
+
</span>
|
96 |
+
</span>
|
97 |
+
|
98 |
+
<span>
|
99 |
+
<span class="epsilon-ui-color" data-prop="hover_background">
|
100 |
+
<input
|
101 |
+
data-color-original="<?php echo esc_attr( Kiwi_Social_Share_Helper::get_network_colors( $kiwi_networks[ $network ]['id'], 'hover_background' ) ) ?>"
|
102 |
+
data-color-custom="<?php echo esc_attr( $props['hover_background'] ); ?>"
|
103 |
+
name="kiwi_network_colors[<?php echo esc_attr( $network ) ?>][hover_background]"
|
104 |
+
data-color-monochrome="<?php echo esc_attr( $colors['monochrome']['hover_background'] ); ?>"
|
105 |
+
value="<?php echo esc_attr( $props['hover_background'] ); ?>"/>
|
106 |
+
<em><?php echo esc_html( $props['hover_background'] ); ?></em>
|
107 |
+
</span>
|
108 |
+
</span>
|
109 |
+
|
110 |
+
<span>
|
111 |
+
<span class="epsilon-ui-color" data-prop="hover_text">
|
112 |
+
<input
|
113 |
+
data-color-original="<?php echo esc_attr( Kiwi_Social_Share_Helper::get_network_colors( $kiwi_networks[ $network ]['id'], 'hover_text' ) ) ?>"
|
114 |
+
data-color-custom="<?php echo esc_attr( $props['hover_text'] ) ?>"
|
115 |
+
name="kiwi_network_colors[<?php echo esc_attr( $network ) ?>][hover_text]"
|
116 |
+
data-color-monochrome="<?php echo esc_attr( $colors['monochrome']['hover_text'] ); ?>"
|
117 |
+
value="<?php echo esc_attr( $props['hover_text'] ) ?>"/>
|
118 |
+
<em><?php echo esc_html( $props['hover_text'] ) ?></em>
|
119 |
+
</span>
|
120 |
+
</span>
|
121 |
+
|
122 |
+
<span>
|
123 |
+
<?php if ( ! $networks[ $network ]['locked'] ): ?>
|
124 |
+
<label class="epsilon-ui-checkbox">
|
125 |
+
<input name="kiwi_general_settings[networks_article_bar][]"
|
126 |
+
value="<?php echo esc_attr( $network ); ?>"
|
127 |
+
data-list-item="kiwi-nw-<?php echo esc_attr( $network ) ?>"
|
128 |
+
data-icon="kicon-<?php echo esc_attr( $network ) ?>"
|
129 |
+
data-number="<?php echo absint( $networks[ $network ]['count'] ) ?>"
|
130 |
+
data-source="article-bar" <?php echo in_array( 'article-bar', $networks[ $network ]['checked'] ) ? 'checked' : '' ?>
|
131 |
+
type="checkbox"/>
|
132 |
+
<strong></strong>
|
133 |
+
</label>
|
134 |
+
<?php else: ?>
|
135 |
+
<label class="epsilon-ui-checkbox epsilon-locked">
|
136 |
+
<strong></strong>
|
137 |
+
</label>
|
138 |
+
<?php endif; ?>
|
139 |
+
</span>
|
140 |
+
|
141 |
+
<span>
|
142 |
+
<?php if ( ! $networks[ $network ]['locked'] ): ?>
|
143 |
+
<label class="epsilon-ui-checkbox">
|
144 |
+
<input name="kiwi_general_settings[networks_floating_bar][]"
|
145 |
+
value="<?php echo esc_attr( $network ); ?>"
|
146 |
+
data-list-item="kiwi-nw-<?php echo esc_attr( $network ) ?>"
|
147 |
+
data-icon="kicon-<?php echo esc_attr( $network ) ?>"
|
148 |
+
data-number="<?php echo absint( $networks[ $network ]['count'] ) ?>"
|
149 |
+
data-source="floating-bar" <?php echo in_array( 'floating-bar', $networks[ $network ]['checked'] ) ? 'checked' : '' ?>
|
150 |
+
type="checkbox"/>
|
151 |
+
<strong></strong>
|
152 |
+
</label>
|
153 |
+
<?php else: ?>
|
154 |
+
<label class="epsilon-ui-checkbox epsilon-locked">
|
155 |
+
<strong></strong>
|
156 |
+
</label>
|
157 |
+
<?php endif; ?>
|
158 |
+
</span>
|
159 |
+
|
160 |
+
<?php if ( $networks[ $network ]['locked'] ): ?>
|
161 |
+
<strong class="epsilon-ui-locked"><i class="dashicons dashicons-lock"></i></strong>
|
162 |
+
<?php endif; ?>
|
163 |
+
</li>
|
164 |
+
<?php } ?>
|
165 |
+
</ul>
|
166 |
+
<div
|
167 |
+
class="epsilon-ui-overlay networks <?php echo ( $styles_color === 'original' ) ? 'active' : ''; ?>"></div>
|
168 |
+
</div>
|
169 |
+
|
170 |
+
<!-- <div class="sl-kiwi-opt-group clearfix">-->
|
171 |
+
<!-- <div class="sl-kiwi-opt-description">-->
|
172 |
+
<!-- <h4>--><?php //echo esc_html__( 'Floating bar background', 'kiwi-social-share' ) ?><!--</h4>-->
|
173 |
+
<!-- <p>-->
|
174 |
+
<?php //echo esc_html__( 'Change the background color of the floating bar containerg.', 'kiwi-social-share' ) ?><!--</p>-->
|
175 |
+
<!-- </div>-->
|
176 |
+
<!---->
|
177 |
+
<!-- <div class="bottom-color-option">-->
|
178 |
+
<!-- <span class="epsilon-ui-color floating-bar-background">-->
|
179 |
+
<!-- <input data-color-custom="#272f32" name="kiwi_general_settings[floating_bar_color]"-->
|
180 |
+
<!-- value="-->
|
181 |
+
<?php //echo Kiwi_Social_Share_Helper::get_setting_value( 'floating_bar_color', '#272f32' ) ?><!--"/>-->
|
182 |
+
<!-- <em>-->
|
183 |
+
<?php //echo Kiwi_Social_Share_Helper::get_setting_value( 'floating_bar_color', '#272f32' ) ?><!--</em>-->
|
184 |
+
<!-- </span>-->
|
185 |
+
<!-- </div>-->
|
186 |
+
<!-- </div>-->
|
187 |
+
</div>
|
includes/backend/parts/kiwi-tab-social-identity.php
CHANGED
@@ -1,29 +1,29 @@
|
|
1 |
-
<?php
|
2 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
-
exit;
|
4 |
-
}
|
5 |
-
?>
|
6 |
-
|
7 |
-
<div class="sl-kiwi-tab-socialIdentity <?php echo ( $hash === 'sl-kiwi-tab-socialIdentity' ) ? 'epsilon-tab-active' : ''; ?>">
|
8 |
-
<h2>
|
9 |
-
<span><?php echo esc_html__( 'Social identities', 'kiwi-social-share' ) ?></span>
|
10 |
-
</h2>
|
11 |
-
<div class="clearfix">
|
12 |
-
<label
|
13 |
-
for="kiwi-twitter-username"> <?php echo esc_html__( 'Twitter Username', 'kiwi-social-share' ); ?> </label>
|
14 |
-
<input type="text" id="kiwi-twitter-username"
|
15 |
-
name="kiwi_social_identities[twitter_username]"
|
16 |
-
value="<?php echo esc_attr( Kiwi_Social_Share_Helper::get_setting_value( 'twitter_username', '', 'kiwi_social_identities' ) ); ?>"/>
|
17 |
-
</div>
|
18 |
-
<div class="clearfix">
|
19 |
-
<label
|
20 |
-
for="kiwi-facebook-page-url"> <?php echo esc_html__( 'Facebook Page Url', 'kiwi-social-share' ); ?> </label>
|
21 |
-
<input type="text" id="kiwi-facebook-page-url" name="kiwi_social_identities[facebook_page_url]"
|
22 |
-
value="<?php echo esc_attr( Kiwi_Social_Share_Helper::get_setting_value( 'facebook_page_url', '', 'kiwi_social_identities' ) ); ?>"/>
|
23 |
-
</div>
|
24 |
-
<div class="clearfix">
|
25 |
-
<label for="kiwi-facebook-app-id"> <?php echo esc_html__( 'Facebook App Id', 'kiwi-social-share' ); ?> </label>
|
26 |
-
<input type="text" id="kiwi-facebook-app-id" name="kiwi_social_identities[facebook_app_id]"
|
27 |
-
value="<?php echo esc_attr( Kiwi_Social_Share_Helper::get_setting_value( 'facebook_app_id', '', 'kiwi_social_identities' ) ); ?>"/>
|
28 |
-
</div>
|
29 |
</div>
|
1 |
+
<?php
|
2 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
+
exit;
|
4 |
+
}
|
5 |
+
?>
|
6 |
+
|
7 |
+
<div class="sl-kiwi-tab-socialIdentity <?php echo ( $hash === 'sl-kiwi-tab-socialIdentity' ) ? 'epsilon-tab-active' : ''; ?>">
|
8 |
+
<h2>
|
9 |
+
<span><?php echo esc_html__( 'Social identities', 'kiwi-social-share' ) ?></span>
|
10 |
+
</h2>
|
11 |
+
<div class="clearfix">
|
12 |
+
<label
|
13 |
+
for="kiwi-twitter-username"> <?php echo esc_html__( 'Twitter Username', 'kiwi-social-share' ); ?> </label>
|
14 |
+
<input type="text" id="kiwi-twitter-username"
|
15 |
+
name="kiwi_social_identities[twitter_username]"
|
16 |
+
value="<?php echo esc_attr( Kiwi_Social_Share_Helper::get_setting_value( 'twitter_username', '', 'kiwi_social_identities' ) ); ?>"/>
|
17 |
+
</div>
|
18 |
+
<div class="clearfix">
|
19 |
+
<label
|
20 |
+
for="kiwi-facebook-page-url"> <?php echo esc_html__( 'Facebook Page Url', 'kiwi-social-share' ); ?> </label>
|
21 |
+
<input type="text" id="kiwi-facebook-page-url" name="kiwi_social_identities[facebook_page_url]"
|
22 |
+
value="<?php echo esc_attr( Kiwi_Social_Share_Helper::get_setting_value( 'facebook_page_url', '', 'kiwi_social_identities' ) ); ?>"/>
|
23 |
+
</div>
|
24 |
+
<div class="clearfix">
|
25 |
+
<label for="kiwi-facebook-app-id"> <?php echo esc_html__( 'Facebook App Id', 'kiwi-social-share' ); ?> </label>
|
26 |
+
<input type="text" id="kiwi-facebook-app-id" name="kiwi_social_identities[facebook_app_id]"
|
27 |
+
value="<?php echo esc_attr( Kiwi_Social_Share_Helper::get_setting_value( 'facebook_app_id', '', 'kiwi_social_identities' ) ); ?>"/>
|
28 |
+
</div>
|
29 |
</div>
|
includes/class-kiwi-social-share-autoloader.php
CHANGED
@@ -1,89 +1,89 @@
|
|
1 |
-
<?php
|
2 |
-
if ( ! defined( 'WPINC' ) ) {
|
3 |
-
die;
|
4 |
-
}
|
5 |
-
|
6 |
-
/**
|
7 |
-
* Class Kiwi_Social_Share_Autoloader
|
8 |
-
*/
|
9 |
-
class Kiwi_Social_Share_Autoloader {
|
10 |
-
/**
|
11 |
-
* Kiwi_Social_Share_Autoloader constructor.
|
12 |
-
*/
|
13 |
-
public function __construct() {
|
14 |
-
spl_autoload_register( array( $this, 'load' ) );
|
15 |
-
}
|
16 |
-
|
17 |
-
/**
|
18 |
-
* @param $class
|
19 |
-
*/
|
20 |
-
public function load( $class ) {
|
21 |
-
/**
|
22 |
-
* All classes are prefixed with Kiwi_
|
23 |
-
*/
|
24 |
-
$parts = explode( '_', $class );
|
25 |
-
$bind = implode( '-', $parts );
|
26 |
-
|
27 |
-
if ( $parts[0] == 'Kiwi' ) {
|
28 |
-
/**
|
29 |
-
* Load interfaces
|
30 |
-
*/
|
31 |
-
if ( in_array( 'Interface', $parts ) && isset( $parts[2] ) ) {
|
32 |
-
$path = KIWI_SOCIAL_SHARE_BASE . 'includes/interface/class-' . strtolower( $bind ) . '.php';
|
33 |
-
|
34 |
-
if ( file_exists( $path ) ) {
|
35 |
-
require_once $path;
|
36 |
-
}
|
37 |
-
}
|
38 |
-
|
39 |
-
/**
|
40 |
-
* Load Views
|
41 |
-
*/
|
42 |
-
if ( in_array( 'View', $parts ) && isset( $parts[2] ) ) {
|
43 |
-
$path = KIWI_SOCIAL_SHARE_BASE . 'includes/frontend/social-bars/class-' . strtolower( $bind ) . '.php';
|
44 |
-
|
45 |
-
if ( file_exists( $path ) ) {
|
46 |
-
require_once $path;
|
47 |
-
}
|
48 |
-
}
|
49 |
-
|
50 |
-
/**
|
51 |
-
* Load Buttons
|
52 |
-
*/
|
53 |
-
if ( in_array( 'Button', $parts ) && isset( $parts[2] ) ) {
|
54 |
-
$path = KIWI_SOCIAL_SHARE_BASE . 'includes/frontend/social-buttons/class-' . strtolower( $bind ) . '.php';
|
55 |
-
|
56 |
-
if ( file_exists( $path ) ) {
|
57 |
-
require_once $path;
|
58 |
-
}
|
59 |
-
}
|
60 |
-
|
61 |
-
/**
|
62 |
-
* Load Buttons
|
63 |
-
*/
|
64 |
-
if ( in_array( 'Helper', $parts ) && ! in_array( 'EDD', $parts ) && isset( $parts[2] ) ) {
|
65 |
-
$path = KIWI_SOCIAL_SHARE_BASE . 'includes/lib/helpers/class-' . strtolower( $bind ) . '.php';
|
66 |
-
|
67 |
-
if ( file_exists( $path ) ) {
|
68 |
-
require_once $path;
|
69 |
-
}
|
70 |
-
}
|
71 |
-
|
72 |
-
|
73 |
-
/*
|
74 |
-
* Core library autoload.
|
75 |
-
*/
|
76 |
-
if ( isset( $parts[2] ) ) {
|
77 |
-
$path = KIWI_SOCIAL_SHARE_BASE . 'includes/lib/class-' . strtolower( $bind ) . '.php';
|
78 |
-
|
79 |
-
if ( file_exists( $path ) ) {
|
80 |
-
require_once $path;
|
81 |
-
}
|
82 |
-
}
|
83 |
-
}
|
84 |
-
}
|
85 |
-
}
|
86 |
-
|
87 |
-
$autoloader = new Kiwi_Social_Share_Autoloader();
|
88 |
-
|
89 |
require_once KIWI_SOCIAL_SHARE_BASE . 'includes/lib/cmb2/init.php';
|
1 |
+
<?php
|
2 |
+
if ( ! defined( 'WPINC' ) ) {
|
3 |
+
die;
|
4 |
+
}
|
5 |
+
|
6 |
+
/**
|
7 |
+
* Class Kiwi_Social_Share_Autoloader
|
8 |
+
*/
|
9 |
+
class Kiwi_Social_Share_Autoloader {
|
10 |
+
/**
|
11 |
+
* Kiwi_Social_Share_Autoloader constructor.
|
12 |
+
*/
|
13 |
+
public function __construct() {
|
14 |
+
spl_autoload_register( array( $this, 'load' ) );
|
15 |
+
}
|
16 |
+
|
17 |
+
/**
|
18 |
+
* @param $class
|
19 |
+
*/
|
20 |
+
public function load( $class ) {
|
21 |
+
/**
|
22 |
+
* All classes are prefixed with Kiwi_
|
23 |
+
*/
|
24 |
+
$parts = explode( '_', $class );
|
25 |
+
$bind = implode( '-', $parts );
|
26 |
+
|
27 |
+
if ( $parts[0] == 'Kiwi' ) {
|
28 |
+
/**
|
29 |
+
* Load interfaces
|
30 |
+
*/
|
31 |
+
if ( in_array( 'Interface', $parts ) && isset( $parts[2] ) ) {
|
32 |
+
$path = KIWI_SOCIAL_SHARE_BASE . 'includes/interface/class-' . strtolower( $bind ) . '.php';
|
33 |
+
|
34 |
+
if ( file_exists( $path ) ) {
|
35 |
+
require_once $path;
|
36 |
+
}
|
37 |
+
}
|
38 |
+
|
39 |
+
/**
|
40 |
+
* Load Views
|
41 |
+
*/
|
42 |
+
if ( in_array( 'View', $parts ) && isset( $parts[2] ) ) {
|
43 |
+
$path = KIWI_SOCIAL_SHARE_BASE . 'includes/frontend/social-bars/class-' . strtolower( $bind ) . '.php';
|
44 |
+
|
45 |
+
if ( file_exists( $path ) ) {
|
46 |
+
require_once $path;
|
47 |
+
}
|
48 |
+
}
|
49 |
+
|
50 |
+
/**
|
51 |
+
* Load Buttons
|
52 |
+
*/
|
53 |
+
if ( in_array( 'Button', $parts ) && isset( $parts[2] ) ) {
|
54 |
+
$path = KIWI_SOCIAL_SHARE_BASE . 'includes/frontend/social-buttons/class-' . strtolower( $bind ) . '.php';
|
55 |
+
|
56 |
+
if ( file_exists( $path ) ) {
|
57 |
+
require_once $path;
|
58 |
+
}
|
59 |
+
}
|
60 |
+
|
61 |
+
/**
|
62 |
+
* Load Buttons
|
63 |
+
*/
|
64 |
+
if ( in_array( 'Helper', $parts ) && ! in_array( 'EDD', $parts ) && isset( $parts[2] ) ) {
|
65 |
+
$path = KIWI_SOCIAL_SHARE_BASE . 'includes/lib/helpers/class-' . strtolower( $bind ) . '.php';
|
66 |
+
|
67 |
+
if ( file_exists( $path ) ) {
|
68 |
+
require_once $path;
|
69 |
+
}
|
70 |
+
}
|
71 |
+
|
72 |
+
|
73 |
+
/*
|
74 |
+
* Core library autoload.
|
75 |
+
*/
|
76 |
+
if ( isset( $parts[2] ) ) {
|
77 |
+
$path = KIWI_SOCIAL_SHARE_BASE . 'includes/lib/class-' . strtolower( $bind ) . '.php';
|
78 |
+
|
79 |
+
if ( file_exists( $path ) ) {
|
80 |
+
require_once $path;
|
81 |
+
}
|
82 |
+
}
|
83 |
+
}
|
84 |
+
}
|
85 |
+
}
|
86 |
+
|
87 |
+
$autoloader = new Kiwi_Social_Share_Autoloader();
|
88 |
+
|
89 |
require_once KIWI_SOCIAL_SHARE_BASE . 'includes/lib/cmb2/init.php';
|
includes/class-kiwi-social-share.php
CHANGED
@@ -1,353 +1,359 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
4 |
-
exit;
|
5 |
-
}
|
6 |
-
|
7 |
-
class Kiwi_Social_Share {
|
8 |
-
|
9 |
-
/**
|
10 |
-
* The single instance of Kiwi_Social_Share.
|
11 |
-
*
|
12 |
-
* @var object
|
13 |
-
* @access private
|
14 |
-
* @since 1.0.0
|
15 |
-
*/
|
16 |
-
private static $_instance = NULL;
|
17 |
-
|
18 |
-
/**
|
19 |
-
* Settings class object
|
20 |
-
*
|
21 |
-
* @var object
|
22 |
-
* @access public
|
23 |
-
* @since 1.0.0
|
24 |
-
*/
|
25 |
-
public $settings = NULL;
|
26 |
-
|
27 |
-
/**
|
28 |
-
* The version number.
|
29 |
-
*
|
30 |
-
* @var string
|
31 |
-
* @access public
|
32 |
-
* @since 1.0.0
|
33 |
-
*/
|
34 |
-
public $_version;
|
35 |
-
|
36 |
-
/**
|
37 |
-
* The token.
|
38 |
-
*
|
39 |
-
* @var string
|
40 |
-
* @access public
|
41 |
-
* @since 1.0.0
|
42 |
-
*/
|
43 |
-
public $_token;
|
44 |
-
|
45 |
-
/**
|
46 |
-
* The main plugin file.
|
47 |
-
*
|
48 |
-
* @var string
|
49 |
-
* @access public
|
50 |
-
* @since 1.0.0
|
51 |
-
*/
|
52 |
-
public $file;
|
53 |
-
|
54 |
-
/**
|
55 |
-
* The main plugin directory.
|
56 |
-
*
|
57 |
-
* @var string
|
58 |
-
* @access public
|
59 |
-
* @since 1.0.0
|
60 |
-
*/
|
61 |
-
public $dir;
|
62 |
-
|
63 |
-
/**
|
64 |
-
* The plugin assets directory.
|
65 |
-
*
|
66 |
-
* @var string
|
67 |
-
* @access public
|
68 |
-
* @since 1.0.0
|
69 |
-
*/
|
70 |
-
public $assets_dir;
|
71 |
-
|
72 |
-
/**
|
73 |
-
* The plugin assets URL.
|
74 |
-
*
|
75 |
-
* @var string
|
76 |
-
* @access public
|
77 |
-
* @since 1.0.0
|
78 |
-
*/
|
79 |
-
public $assets_url;
|
80 |
-
|
81 |
-
/**
|
82 |
-
* Suffix for Javascripts.
|
83 |
-
*
|
84 |
-
* @var string
|
85 |
-
* @access public
|
86 |
-
* @since 1.0.0
|
87 |
-
*/
|
88 |
-
public $script_suffix;
|
89 |
-
|
90 |
-
/**
|
91 |
-
* Kiwi_Social_Share constructor.
|
92 |
-
*
|
93 |
-
* @param string $file
|
94 |
-
* @param string $version
|
95 |
-
*/
|
96 |
-
public function __construct( $file = '', $version = '1.0.0' ) {
|
97 |
-
$this->_version = $version;
|
98 |
-
$this->_token = 'kiwi_social_sharing';
|
99 |
-
|
100 |
-
// Load plugin environment variables
|
101 |
-
$this->file = $file;
|
102 |
-
$this->dir = dirname( $this->file );
|
103 |
-
$this->assets_dir = trailingslashit( $this->dir ) . 'assets';
|
104 |
-
$this->assets_url = esc_url( trailingslashit( plugins_url( '/assets/', $this->file ) ) );
|
105 |
-
|
106 |
-
$this->script_suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
|
107 |
-
|
108 |
-
|
109 |
-
register_activation_hook( $this->file, array( $this, 'install' ) );
|
110 |
-
|
111 |
-
new Kiwi_Social_Share_Click_To_Tweet();
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
$this->
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
$settings = get_option( 'kiwi_backup_option' );
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
$
|
253 |
-
|
254 |
-
'
|
255 |
-
'
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
*
|
299 |
-
*
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
353 |
}
|
1 |
+
<?php
|
2 |
+
|
3 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
4 |
+
exit;
|
5 |
+
}
|
6 |
+
|
7 |
+
class Kiwi_Social_Share {
|
8 |
+
|
9 |
+
/**
|
10 |
+
* The single instance of Kiwi_Social_Share.
|
11 |
+
*
|
12 |
+
* @var object
|
13 |
+
* @access private
|
14 |
+
* @since 1.0.0
|
15 |
+
*/
|
16 |
+
private static $_instance = NULL;
|
17 |
+
|
18 |
+
/**
|
19 |
+
* Settings class object
|
20 |
+
*
|
21 |
+
* @var object
|
22 |
+
* @access public
|
23 |
+
* @since 1.0.0
|
24 |
+
*/
|
25 |
+
public $settings = NULL;
|
26 |
+
|
27 |
+
/**
|
28 |
+
* The version number.
|
29 |
+
*
|
30 |
+
* @var string
|
31 |
+
* @access public
|
32 |
+
* @since 1.0.0
|
33 |
+
*/
|
34 |
+
public $_version;
|
35 |
+
|
36 |
+
/**
|
37 |
+
* The token.
|
38 |
+
*
|
39 |
+
* @var string
|
40 |
+
* @access public
|
41 |
+
* @since 1.0.0
|
42 |
+
*/
|
43 |
+
public $_token;
|
44 |
+
|
45 |
+
/**
|
46 |
+
* The main plugin file.
|
47 |
+
*
|
48 |
+
* @var string
|
49 |
+
* @access public
|
50 |
+
* @since 1.0.0
|
51 |
+
*/
|
52 |
+
public $file;
|
53 |
+
|
54 |
+
/**
|
55 |
+
* The main plugin directory.
|
56 |
+
*
|
57 |
+
* @var string
|
58 |
+
* @access public
|
59 |
+
* @since 1.0.0
|
60 |
+
*/
|
61 |
+
public $dir;
|
62 |
+
|
63 |
+
/**
|
64 |
+
* The plugin assets directory.
|
65 |
+
*
|
66 |
+
* @var string
|
67 |
+
* @access public
|
68 |
+
* @since 1.0.0
|
69 |
+
*/
|
70 |
+
public $assets_dir;
|
71 |
+
|
72 |
+
/**
|
73 |
+
* The plugin assets URL.
|
74 |
+
*
|
75 |
+
* @var string
|
76 |
+
* @access public
|
77 |
+
* @since 1.0.0
|
78 |
+
*/
|
79 |
+
public $assets_url;
|
80 |
+
|
81 |
+
/**
|
82 |
+
* Suffix for Javascripts.
|
83 |
+
*
|
84 |
+
* @var string
|
85 |
+
* @access public
|
86 |
+
* @since 1.0.0
|
87 |
+
*/
|
88 |
+
public $script_suffix;
|
89 |
+
|
90 |
+
/**
|
91 |
+
* Kiwi_Social_Share constructor.
|
92 |
+
*
|
93 |
+
* @param string $file
|
94 |
+
* @param string $version
|
95 |
+
*/
|
96 |
+
public function __construct( $file = '', $version = '1.0.0' ) {
|
97 |
+
$this->_version = $version;
|
98 |
+
$this->_token = 'kiwi_social_sharing';
|
99 |
+
|
100 |
+
// Load plugin environment variables
|
101 |
+
$this->file = $file;
|
102 |
+
$this->dir = dirname( $this->file );
|
103 |
+
$this->assets_dir = trailingslashit( $this->dir ) . 'assets';
|
104 |
+
$this->assets_url = esc_url( trailingslashit( plugins_url( '/assets/', $this->file ) ) );
|
105 |
+
|
106 |
+
$this->script_suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
|
107 |
+
|
108 |
+
|
109 |
+
register_activation_hook( $this->file, array( $this, 'install' ) );
|
110 |
+
|
111 |
+
new Kiwi_Social_Share_Click_To_Tweet();
|
112 |
+
|
113 |
+
|
114 |
+
|
115 |
+
add_action( 'plugins_loaded', array( $this, 'load_frontend_kiwi' ) );
|
116 |
+
|
117 |
+
// Load frontend JS & CSS
|
118 |
+
add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_styles' ), 10 );
|
119 |
+
add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ), 10 );
|
120 |
+
|
121 |
+
// Load admin JS & CSS
|
122 |
+
add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ), 10, 1 );
|
123 |
+
add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_styles' ), 10, 1 );
|
124 |
+
|
125 |
+
// Handle feedback
|
126 |
+
require_once 'lib/class-kiwi-social-share-feedback.php';
|
127 |
+
new Kiwi_Social_Share_Feedback( $this->file );
|
128 |
+
|
129 |
+
// Handle localisation
|
130 |
+
$this->load_plugin_textdomain();
|
131 |
+
add_action( 'init', array( $this, 'load_localisation' ), 0 );
|
132 |
+
|
133 |
+
$this->add_shortcodes();
|
134 |
+
$this->add_metaboxes();
|
135 |
+
$this->import_settings();
|
136 |
+
|
137 |
+
} // End __construct ()
|
138 |
+
|
139 |
+
|
140 |
+
/**
|
141 |
+
* Initiate shortcode
|
142 |
+
*/
|
143 |
+
public function add_shortcodes() {
|
144 |
+
$advanced = Kiwi_Social_Share_Helper::get_setting_value( 'advanced_shortcode_manager', false, 'kiwi_advanced_settings' );
|
145 |
+
new Kiwi_Social_Share_Shortcodes( $advanced );
|
146 |
+
}
|
147 |
+
|
148 |
+
/**
|
149 |
+
* Add metaboxes if the option is enabled
|
150 |
+
*/
|
151 |
+
public function add_metaboxes() {
|
152 |
+
$custom_meta_boxes = Kiwi_Social_Share_Helper::get_setting_value( 'custom_meta_boxes', '' );
|
153 |
+
if ( ! empty( $custom_meta_boxes ) ) {
|
154 |
+
new Kiwi_Social_Share_Metaboxes();
|
155 |
+
}
|
156 |
+
}
|
157 |
+
|
158 |
+
/**
|
159 |
+
* Render the frontend
|
160 |
+
*
|
161 |
+
* @access public
|
162 |
+
* @since 1.0.0
|
163 |
+
* @return void
|
164 |
+
*/
|
165 |
+
public function load_frontend_kiwi() {
|
166 |
+
$instance = Kiwi_Social_Share_Frontend::instance( __FILE__, $this->_version );
|
167 |
+
}
|
168 |
+
|
169 |
+
/**
|
170 |
+
* Start importer
|
171 |
+
*
|
172 |
+
* @access public
|
173 |
+
* @since 1.0.0
|
174 |
+
* @return void
|
175 |
+
*/
|
176 |
+
public function import_settings() {
|
177 |
+
$settings = get_option( 'kiwi_backup_option', false );
|
178 |
+
if ( ! $settings ) {
|
179 |
+
return;
|
180 |
+
}
|
181 |
+
|
182 |
+
$current = get_option( 'kiwi_general_settings', false );
|
183 |
+
$settings = get_option( 'kiwi_backup_option' );
|
184 |
+
|
185 |
+
if ( ! $current ) {
|
186 |
+
update_option( 'kiwi_general_settings', $settings );
|
187 |
+
} else {
|
188 |
+
$new = array_merge( $current, $settings );
|
189 |
+
update_option( 'kiwi_general_settings', $new );
|
190 |
+
}
|
191 |
+
|
192 |
+
delete_option( 'kiwi_backup_option' );
|
193 |
+
}
|
194 |
+
|
195 |
+
/**
|
196 |
+
* Load frontend CSS.
|
197 |
+
*
|
198 |
+
* @access public
|
199 |
+
* @since 1.0.0
|
200 |
+
* @return void
|
201 |
+
*/
|
202 |
+
public function enqueue_styles() {
|
203 |
+
wp_enqueue_style( 'icomoon', esc_url( $this->assets_url ) . 'vendors/icomoon/style.css', array(), $this->_version );
|
204 |
+
wp_register_style( $this->_token . '-frontend', esc_url( $this->assets_url ) . 'css/frontend' . $this->script_suffix . '.css', array( 'icomoon' ), $this->_version );
|
205 |
+
} // End enqueue_styles ()
|
206 |
+
|
207 |
+
/**
|
208 |
+
* Load frontend Javascript.
|
209 |
+
*
|
210 |
+
* @access public
|
211 |
+
* @since 1.0.0
|
212 |
+
* @return void
|
213 |
+
*/
|
214 |
+
public function enqueue_scripts() {
|
215 |
+
wp_register_script( $this->_token . '-kiwi', esc_url( $this->assets_url ) . 'js/kiwi' . $this->script_suffix . '.js', array( 'jquery' ), $this->_version, true );
|
216 |
+
wp_register_script( $this->_token . '-frontend', esc_url( $this->assets_url ) . 'js/frontend' . $this->script_suffix . '.js', array( $this->_token . '-kiwi' ), $this->_version );
|
217 |
+
|
218 |
+
} // End enqueue_scripts ()
|
219 |
+
|
220 |
+
/**
|
221 |
+
* Load admin CSS.
|
222 |
+
*
|
223 |
+
* @access public
|
224 |
+
* @since 1.0.0
|
225 |
+
* @return void
|
226 |
+
*/
|
227 |
+
public function admin_enqueue_styles( $hook = '' ) {
|
228 |
+
// Add the color picker css file
|
229 |
+
if ( $hook == 'toplevel_page_kiwi_social_sharing_settings' ) {
|
230 |
+
wp_enqueue_style( 'wp-color-picker' );
|
231 |
+
wp_enqueue_style( 'bootstrap', esc_url( $this->assets_url ) . 'vendors/bootstrap/bootstrap' . $this->script_suffix . '.css', array(), $this->_version );
|
232 |
+
wp_enqueue_style( 'open-sans', '//fonts.googleapis.com/css?family=Open+Sans:300,400,700,800', array(), $this->_version );
|
233 |
+
wp_enqueue_style( 'icomoon', esc_url( $this->assets_url ) . 'vendors/icomoon/style.css', array(), $this->_version );
|
234 |
+
wp_register_style( $this->_token . '-admin', esc_url( $this->assets_url ) . 'css/admin' . $this->script_suffix . '.css', array(), $this->_version );
|
235 |
+
wp_enqueue_style( $this->_token . '-admin' );
|
236 |
+
}
|
237 |
+
|
238 |
+
} // End admin_enqueue_styles ()
|
239 |
+
|
240 |
+
/**
|
241 |
+
* Load admin Javascript.
|
242 |
+
*
|
243 |
+
* @access public
|
244 |
+
* @since 1.0.0
|
245 |
+
* @return void
|
246 |
+
*/
|
247 |
+
public function admin_enqueue_scripts( $hook = '' ) {
|
248 |
+
if ( $hook == 'toplevel_page_kiwi_social_sharing_settings' || $hook == 'plugins.php' ) {
|
249 |
+
wp_register_script( 'bootstrap', esc_url( $this->assets_url ) . 'vendors/bootstrap/bootstrap' . $this->script_suffix . '.js', array(
|
250 |
+
'jquery',
|
251 |
+
'jquery-ui-sortable'
|
252 |
+
), $this->_version, true );
|
253 |
+
wp_register_script( $this->_token . '-kiwi', esc_url( $this->assets_url ) . 'js/kiwi' . $this->script_suffix . '.js', array(
|
254 |
+
'bootstrap',
|
255 |
+
'wp-color-picker'
|
256 |
+
), $this->_version, true );
|
257 |
+
wp_register_script( $this->_token . '-admin', esc_url( $this->assets_url ) . 'js/admin' . $this->script_suffix . '.js', array( $this->_token . '-kiwi' ), $this->_version, true );
|
258 |
+
$kiwi_locale = array(
|
259 |
+
'kiwi_step_one_title' => esc_html__( 'Get your premium version now!', 'kiwi-social-share' ),
|
260 |
+
'kiwi_step_two_title' => esc_html__( 'Almost Done', 'kiwi-social-share' ),
|
261 |
+
'kiwi_step_one_subtitle' => esc_html__( 'Take advantage of the large number of professional features anad take
|
262 |
+
your business one step further!', 'kiwi-social-share' ),
|
263 |
+
'kiwi_step_two_subtitle' => esc_html__( 'We need a few information to complete this!', 'kiwi-social-share' )
|
264 |
+
);
|
265 |
+
wp_localize_script( $this->_token . '-admin', 'kiwi_locale', $kiwi_locale );
|
266 |
+
wp_enqueue_script( $this->_token . '-admin' );
|
267 |
+
}
|
268 |
+
} // End admin_enqueue_scripts ()
|
269 |
+
|
270 |
+
/**
|
271 |
+
* Load plugin localisation
|
272 |
+
*
|
273 |
+
* @access public
|
274 |
+
* @since 1.0.0
|
275 |
+
* @return void
|
276 |
+
*/
|
277 |
+
public function load_localisation() {
|
278 |
+
load_plugin_textdomain( 'kiwi-social-share', false, dirname( plugin_basename( $this->file ) ) . '/lang/' );
|
279 |
+
} // End load_localisation ()
|
280 |
+
|
281 |
+
/**
|
282 |
+
* Load plugin textdomain
|
283 |
+
*
|
284 |
+
* @access public
|
285 |
+
* @since 1.0.0
|
286 |
+
* @return void
|
287 |
+
*/
|
288 |
+
public function load_plugin_textdomain() {
|
289 |
+
$domain = 'kiwi-social-share';
|
290 |
+
|
291 |
+
$locale = apply_filters( 'plugin_locale', get_locale(), $domain );
|
292 |
+
|
293 |
+
load_textdomain( $domain, WP_LANG_DIR . '/' . $domain . '/' . $domain . '-' . $locale . '.mo' );
|
294 |
+
load_plugin_textdomain( $domain, false, dirname( plugin_basename( $this->file ) ) . '/lang/' );
|
295 |
+
} // End load_plugin_textdomain ()
|
296 |
+
|
297 |
+
/**
|
298 |
+
* Main Kiwi_Social_Share Instance
|
299 |
+
*
|
300 |
+
* Ensures only one instance of Kiwi_Social_Share is loaded or can be loaded.
|
301 |
+
*
|
302 |
+
* @since 1.0.0
|
303 |
+
* @static
|
304 |
+
* @see Kiwi_Social_Share()
|
305 |
+
* @return Main Kiwi_Social_Share instance
|
306 |
+
*/
|
307 |
+
public static function instance( $file = '', $version = '1.0.0' ) {
|
308 |
+
if ( is_null( self::$_instance ) ) {
|
309 |
+
self::$_instance = new self( $file, $version );
|
310 |
+
}
|
311 |
+
|
312 |
+
return self::$_instance;
|
313 |
+
} // End instance ()
|
314 |
+
|
315 |
+
/**
|
316 |
+
* Cloning is forbidden.
|
317 |
+
*
|
318 |
+
* @since 1.0.0
|
319 |
+
*/
|
320 |
+
public function __clone() {
|
321 |
+
_doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'kiwi-social-share' ), $this->_version );
|
322 |
+
} // End __clone ()
|
323 |
+
|
324 |
+
/**
|
325 |
+
* Unserializing instances of this class is forbidden.
|
326 |
+
*
|
327 |
+
* @since 1.0.0
|
328 |
+
*/
|
329 |
+
public function __wakeup() {
|
330 |
+
_doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'kiwi-social-share' ), $this->_version );
|
331 |
+
} // End __wakeup ()
|
332 |
+
|
333 |
+
/**
|
334 |
+
* Installation. Runs on activation.
|
335 |
+
*
|
336 |
+
* @access public
|
337 |
+
* @since 1.0.0
|
338 |
+
* @return void
|
339 |
+
*/
|
340 |
+
public function install() {
|
341 |
+
$this->_log_version_number();
|
342 |
+
$options = get_option( 'kiwi_general_settings', array() );
|
343 |
+
if ( empty( $options ) ) {
|
344 |
+
Kiwi_Social_Share_Importer::get_instance();
|
345 |
+
}
|
346 |
+
} // End install ()
|
347 |
+
|
348 |
+
/**
|
349 |
+
* Log the plugin version number.
|
350 |
+
*
|
351 |
+
* @access public
|
352 |
+
* @since 1.0.0
|
353 |
+
* @return void
|
354 |
+
*/
|
355 |
+
private function _log_version_number() {
|
356 |
+
update_option( $this->_token . '_version', $this->_version );
|
357 |
+
} // End _log_version_number ()
|
358 |
+
|
359 |
}
|
includes/frontend/social-bars/class-kiwi-social-share-view-article-bar.php
CHANGED
@@ -1,143 +1,150 @@
|
|
1 |
-
<?php
|
2 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
-
exit;
|
4 |
-
}
|
5 |
-
|
6 |
-
/**
|
7 |
-
* Class Kiwi_Social_Share_View_Article_Bar
|
8 |
-
*/
|
9 |
-
final class Kiwi_Social_Share_View_Article_Bar extends Kiwi_Social_Share_View implements Kiwi_Social_Share_Interface_Frontend {
|
10 |
-
/**
|
11 |
-
* @var bool
|
12 |
-
*/
|
13 |
-
private $stop = false;
|
14 |
-
/**
|
15 |
-
* @var string
|
16 |
-
*/
|
17 |
-
private $style;
|
18 |
-
|
19 |
-
/**
|
20 |
-
* Kiwi_Social_Share_Article_Bar constructor.
|
21 |
-
*/
|
22 |
-
public function __construct() {
|
23 |
-
parent::__construct();
|
24 |
-
$enable = Kiwi_Social_Share_Helper::get_setting_value( 'share_buttons', false );
|
25 |
-
|
26 |
-
if ( ! $enable ) {
|
27 |
-
return;
|
28 |
-
}
|
29 |
-
|
30 |
-
if ( empty( $this->networks['article_bar'] ) ) {
|
31 |
-
return;
|
32 |
-
}
|
33 |
-
|
34 |
-
$this->style = Kiwi_Social_Share_Helper::get_setting_value( 'article_bar_style', 'center' );
|
35 |
-
switch ( $this->style ) {
|
36 |
-
case 'fit':
|
37 |
-
$this->style = 'kiwi-article-bar-fit';
|
38 |
-
break;
|
39 |
-
default:
|
40 |
-
$this->style = 'kiwi-article-bar-center';
|
41 |
-
break;
|
42 |
-
}
|
43 |
-
|
44 |
-
$this->position = Kiwi_Social_Share_Helper::get_setting_value( 'share_buttons_location', 'bottom' );
|
45 |
-
|
46 |
-
// render on the front
|
47 |
-
add_action( 'wp', array( $this, 'check_front_page' ) );
|
48 |
-
add_action( 'the_content', array( $this, 'display_bar' ) );
|
49 |
-
|
50 |
-
}
|
51 |
-
|
52 |
-
/**
|
53 |
-
* We need to make sure we don't render the article bar on a static front page ( some templates load custom post
|
54 |
-
* types as sections )
|
55 |
-
*/
|
56 |
-
public function check_front_page() {
|
57 |
-
$this->stop = is_front_page();
|
58 |
-
}
|
59 |
-
|
60 |
-
/**
|
61 |
-
* Output contents in frontend
|
62 |
-
*
|
63 |
-
* @param string $content
|
64 |
-
*
|
65 |
-
* @return string
|
66 |
-
*/
|
67 |
-
public function display_bar( $content = '' ) {
|
68 |
-
|
69 |
-
if ( ( ! is_single() && ! is_page() ) || $this->stop ) {
|
70 |
-
return $content;
|
71 |
-
}
|
72 |
-
|
73 |
-
$kiwi = Kiwi_Social_Share::instance();
|
74 |
-
wp_enqueue_style( $kiwi->_token . '-frontend' );
|
75 |
-
wp_enqueue_script( $kiwi->_token . '-frontend' );
|
76 |
-
|
77 |
-
$bar = $this->generate_frontend_bar();
|
78 |
-
|
79 |
-
switch ( $this->position ) {
|
80 |
-
case 'top':
|
81 |
-
return $bar . $content;
|
82 |
-
break;
|
83 |
-
case 'both':
|
84 |
-
return $bar . $content . $bar;
|
85 |
-
break;
|
86 |
-
default:
|
87 |
-
return $content . $bar;
|
88 |
-
break;
|
89 |
-
}
|
90 |
-
}
|
91 |
-
|
92 |
-
/**
|
93 |
-
* Render the display bar
|
94 |
-
*
|
95 |
-
* Allow theme customization for the article bar using the following filters:
|
96 |
-
* * kiwi_before_article_bar
|
97 |
-
* * kiwi_before_first_article_item
|
98 |
-
* * kiwi_after_last_article_item
|
99 |
-
* * kiwi_after_article_bar
|
100 |
-
* * kiwi_article_bar_list_custom_class
|
101 |
-
*/
|
102 |
-
public function generate_frontend_bar() {
|
103 |
-
$output
|
104 |
-
$
|
105 |
-
$class
|
106 |
-
$class
|
107 |
-
$
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
$
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
143 |
}
|
1 |
+
<?php
|
2 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
+
exit;
|
4 |
+
}
|
5 |
+
|
6 |
+
/**
|
7 |
+
* Class Kiwi_Social_Share_View_Article_Bar
|
8 |
+
*/
|
9 |
+
final class Kiwi_Social_Share_View_Article_Bar extends Kiwi_Social_Share_View implements Kiwi_Social_Share_Interface_Frontend {
|
10 |
+
/**
|
11 |
+
* @var bool
|
12 |
+
*/
|
13 |
+
private $stop = false;
|
14 |
+
/**
|
15 |
+
* @var string
|
16 |
+
*/
|
17 |
+
private $style;
|
18 |
+
|
19 |
+
/**
|
20 |
+
* Kiwi_Social_Share_Article_Bar constructor.
|
21 |
+
*/
|
22 |
+
public function __construct() {
|
23 |
+
parent::__construct();
|
24 |
+
$enable = Kiwi_Social_Share_Helper::get_setting_value( 'share_buttons', false );
|
25 |
+
|
26 |
+
if ( ! $enable ) {
|
27 |
+
return;
|
28 |
+
}
|
29 |
+
|
30 |
+
if ( empty( $this->networks['article_bar'] ) ) {
|
31 |
+
return;
|
32 |
+
}
|
33 |
+
|
34 |
+
$this->style = Kiwi_Social_Share_Helper::get_setting_value( 'article_bar_style', 'center' );
|
35 |
+
switch ( $this->style ) {
|
36 |
+
case 'fit':
|
37 |
+
$this->style = 'kiwi-article-bar-fit';
|
38 |
+
break;
|
39 |
+
default:
|
40 |
+
$this->style = 'kiwi-article-bar-center';
|
41 |
+
break;
|
42 |
+
}
|
43 |
+
|
44 |
+
$this->position = Kiwi_Social_Share_Helper::get_setting_value( 'share_buttons_location', 'bottom' );
|
45 |
+
|
46 |
+
// render on the front
|
47 |
+
add_action( 'wp', array( $this, 'check_front_page' ) );
|
48 |
+
add_action( 'the_content', array( $this, 'display_bar' ) );
|
49 |
+
|
50 |
+
}
|
51 |
+
|
52 |
+
/**
|
53 |
+
* We need to make sure we don't render the article bar on a static front page ( some templates load custom post
|
54 |
+
* types as sections )
|
55 |
+
*/
|
56 |
+
public function check_front_page() {
|
57 |
+
$this->stop = is_front_page();
|
58 |
+
}
|
59 |
+
|
60 |
+
/**
|
61 |
+
* Output contents in frontend
|
62 |
+
*
|
63 |
+
* @param string $content
|
64 |
+
*
|
65 |
+
* @return string
|
66 |
+
*/
|
67 |
+
public function display_bar( $content = '' ) {
|
68 |
+
|
69 |
+
if ( ( ! is_single() && ! is_page() ) || $this->stop ) {
|
70 |
+
return $content;
|
71 |
+
}
|
72 |
+
|
73 |
+
$kiwi = Kiwi_Social_Share::instance();
|
74 |
+
wp_enqueue_style( $kiwi->_token . '-frontend' );
|
75 |
+
wp_enqueue_script( $kiwi->_token . '-frontend' );
|
76 |
+
|
77 |
+
$bar = $this->generate_frontend_bar();
|
78 |
+
|
79 |
+
switch ( $this->position ) {
|
80 |
+
case 'top':
|
81 |
+
return $bar . $content;
|
82 |
+
break;
|
83 |
+
case 'both':
|
84 |
+
return $bar . $content . $bar;
|
85 |
+
break;
|
86 |
+
default:
|
87 |
+
return $content . $bar;
|
88 |
+
break;
|
89 |
+
}
|
90 |
+
}
|
91 |
+
|
92 |
+
/**
|
93 |
+
* Render the display bar
|
94 |
+
*
|
95 |
+
* Allow theme customization for the article bar using the following filters:
|
96 |
+
* * kiwi_before_article_bar
|
97 |
+
* * kiwi_before_first_article_item
|
98 |
+
* * kiwi_after_last_article_item
|
99 |
+
* * kiwi_after_article_bar
|
100 |
+
* * kiwi_article_bar_list_custom_class
|
101 |
+
*/
|
102 |
+
public function generate_frontend_bar() {
|
103 |
+
$output = '';
|
104 |
+
$additional = '';
|
105 |
+
$class = implode( ' ', $this->container_class );
|
106 |
+
$class .= ' ' . $this->style;
|
107 |
+
$class .= ' ' . apply_filters( 'kiwi_article_bar_list_custom_class', '' );
|
108 |
+
$output .= wp_kses_post( apply_filters( 'kiwi_before_article_bar', '' ) );
|
109 |
+
|
110 |
+
$visibility = Kiwi_Social_Share_Helper::get_setting_value( 'mobile_only_sharing', false, 'kiwi_advanced_settings' );
|
111 |
+
|
112 |
+
if ( $visibility ) {
|
113 |
+
$additional = ' icons-visible-desktop';
|
114 |
+
}
|
115 |
+
|
116 |
+
$tracking = '';
|
117 |
+
if ( $this->tracking ) {
|
118 |
+
$tracking = ' data-tracking="true" data-tracking-container="article-bar" ';
|
119 |
+
}
|
120 |
+
|
121 |
+
$output .= '<ul class="kiwi-article-bar ' . esc_attr( $class . $additional ) . '"' . $tracking . '>';
|
122 |
+
$output .= wp_kses_post( apply_filters( 'kiwi_before_first_article_bar_item', '' ) );
|
123 |
+
|
124 |
+
foreach ( $this->networks['article_bar'] as $network ) {
|
125 |
+
$class = $this->generate_class_name( $network );
|
126 |
+
if ( ! class_exists( $class ) ) {
|
127 |
+
continue;
|
128 |
+
}
|
129 |
+
$t = new $class();
|
130 |
+
$t = $t->generate_output();
|
131 |
+
if ( ! empty( $t ) ) {
|
132 |
+
$output .= '<li>';
|
133 |
+
/**
|
134 |
+
* Social buttons will implement this interface :
|
135 |
+
* Kiwi_Social_Share_Interface_Social::generate_output
|
136 |
+
*/
|
137 |
+
$output .= $t;
|
138 |
+
$output .= '</li>';
|
139 |
+
}
|
140 |
+
}
|
141 |
+
$output .= wp_kses_post( apply_filters( 'kiwi_after_last_article_bar_item', '' ) );
|
142 |
+
$output .= '</ul>';
|
143 |
+
|
144 |
+
$output .= wp_kses_post( apply_filters( 'kiwi_after_article_bar', '' ) );
|
145 |
+
|
146 |
+
return $output;
|
147 |
+
}
|
148 |
+
|
149 |
+
|
150 |
}
|
includes/frontend/social-bars/class-kiwi-social-share-view-floating-bar.php
CHANGED
@@ -1,124 +1,124 @@
|
|
1 |
-
<?php
|
2 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
-
exit;
|
4 |
-
}
|
5 |
-
|
6 |
-
final class Kiwi_Social_Share_View_Floating_Bar extends Kiwi_Social_Share_View implements Kiwi_Social_Share_Interface_Frontend {
|
7 |
-
/**
|
8 |
-
* Kiwi_Social_Share_Floating_Bar constructor.
|
9 |
-
*/
|
10 |
-
public function __construct() {
|
11 |
-
parent::__construct();
|
12 |
-
$enable = Kiwi_Social_Share_Helper::get_setting_value( 'floating_panel', false );
|
13 |
-
|
14 |
-
if ( ! $enable ) {
|
15 |
-
return;
|
16 |
-
}
|
17 |
-
|
18 |
-
if ( empty( $this->networks['floating_bar'] ) ) {
|
19 |
-
return;
|
20 |
-
}
|
21 |
-
|
22 |
-
$this->position = Kiwi_Social_Share_Helper::get_setting_value( 'floating_panel_location', 'left' );
|
23 |
-
$this->container_class[] = $this->position;
|
24 |
-
|
25 |
-
// render on the front
|
26 |
-
add_action( 'wp_footer', array( $this, 'display_bar' ) );
|
27 |
-
}
|
28 |
-
|
29 |
-
/**
|
30 |
-
* @param string $content
|
31 |
-
*
|
32 |
-
* @return mixed|void
|
33 |
-
*/
|
34 |
-
public function display_bar( $content = '' ) {
|
35 |
-
$this->generate_frontend_bar();
|
36 |
-
}
|
37 |
-
|
38 |
-
/**
|
39 |
-
*
|
40 |
-
*/
|
41 |
-
public function set_options() {
|
42 |
-
$this->container_class[] = Kiwi_Social_Share_Helper::get_setting_value( 'button_shape_floating', 'rect' );
|
43 |
-
$floating_panel_posttypes = Kiwi_Social_Share_Helper::get_setting_value( 'floating_panel_posttypes', 'all' );
|
44 |
-
if ( $floating_panel_posttypes === 'all' ) {
|
45 |
-
$this->post_types = 'all';
|
46 |
-
} else {
|
47 |
-
$post_types = Kiwi_Social_Share_Helper::get_setting_value( 'floating_panel_posttypes_list', array() );
|
48 |
-
$this->post_types = array_merge( $this->post_types, $post_types );
|
49 |
-
};
|
50 |
-
}
|
51 |
-
|
52 |
-
/**
|
53 |
-
* Render the display bar
|
54 |
-
*
|
55 |
-
* Allow theme customization for the floating bar using the following filters:
|
56 |
-
* * kiwi_before_floating_bar
|
57 |
-
* * kiwi_before_first_floating_item
|
58 |
-
* * kiwi_after_last_floating_item
|
59 |
-
* * kiwi_after_floating_bar
|
60 |
-
* * kiwi_floating_bar_list_custom_class
|
61 |
-
*/
|
62 |
-
public function generate_frontend_bar() {
|
63 |
-
|
64 |
-
$kiwi = Kiwi_Social_Share::instance();
|
65 |
-
wp_enqueue_style( $kiwi->_token . '-frontend' );
|
66 |
-
wp_enqueue_script( $kiwi->_token . '-frontend' );
|
67 |
-
|
68 |
-
$output = '';
|
69 |
-
$class = implode( ' ', $this->container_class );
|
70 |
-
$class .= ' ' . apply_filters( 'kiwi_floating_bar_list_custom_class', '' );
|
71 |
-
$output .= wp_kses_post( apply_filters( 'kiwi_before_floating_bar', '' ) );
|
72 |
-
|
73 |
-
$tracking = '';
|
74 |
-
if ( $this->tracking ) {
|
75 |
-
$tracking = ' data-tracking="true" data-tracking-container="floating-bar" ';
|
76 |
-
}
|
77 |
-
|
78 |
-
$output .= '<ul class="kiwi-floating-bar ' . esc_attr( $class ) . '"' . $tracking . '>';
|
79 |
-
$output .= wp_kses_post( apply_filters( 'kiwi_before_first_floating_bar_item', '' ) );
|
80 |
-
|
81 |
-
$network_labels = array(
|
82 |
-
'facebook' => esc_html__( 'Facebook', 'kiwi-social-share' ),
|
83 |
-
'twitter' => esc_html__( 'Twitter', 'kiwi-social-share' ),
|
84 |
-
'email' => esc_html__( 'Email', 'kiwi-social-share' ),
|
85 |
-
'google-plus' => esc_html__( 'Google Plus', 'kiwi-social-share' ),
|
86 |
-
'linkedin' => esc_html__( 'LinkedIn', 'kiwi-social-share' ),
|
87 |
-
'pinterest' => esc_html__( 'Pinterest', 'kiwi-social-share' ),
|
88 |
-
'reddit' => esc_html__( 'Reddit', 'kiwi-social-share' ),
|
89 |
-
'skype' => esc_html__( 'Skype', 'kiwi-social-share' ),
|
90 |
-
'telegram' => esc_html__( 'Telegram', 'kiwi-social-share' ),
|
91 |
-
'whatsapp' => esc_html__( 'WhatsApp', 'kiwi-social-share' ),
|
92 |
-
);
|
93 |
-
|
94 |
-
foreach ( $this->networks['floating_bar'] as $network ) {
|
95 |
-
$class = $this->generate_class_name( $network );
|
96 |
-
if ( ! class_exists( $class ) ) {
|
97 |
-
continue;
|
98 |
-
}
|
99 |
-
|
100 |
-
$t = new $class();
|
101 |
-
$html = $t->generate_output();
|
102 |
-
if ( ! empty( $html ) ) {
|
103 |
-
$output .= '<li>';
|
104 |
-
/**
|
105 |
-
* Social buttons will implement this interface :
|
106 |
-
* Kiwi_Social_Share_Interface_Social::generate_output
|
107 |
-
*/
|
108 |
-
$output .= $html;
|
109 |
-
$output .= '<a data-class="popup" class="kiwi-nw-' . $network . ' network-label" data-network="' . esc_attr( $network ) . '" href="' . esc_url( $t->url ) . '">' . $network_labels[ $network ] . '</a>';
|
110 |
-
$output .= '</li>';
|
111 |
-
}
|
112 |
-
|
113 |
-
}
|
114 |
-
|
115 |
-
$output .= wp_kses_post( apply_filters( 'kiwi_after_last_floating_bar_item', '' ) );
|
116 |
-
$output .= '</ul>';
|
117 |
-
|
118 |
-
$output .= wp_kses_post( apply_filters( 'kiwi_after_floating_bar', '' ) );
|
119 |
-
|
120 |
-
echo $output;
|
121 |
-
}
|
122 |
-
|
123 |
-
|
124 |
}
|
1 |
+
<?php
|
2 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
+
exit;
|
4 |
+
}
|
5 |
+
|
6 |
+
final class Kiwi_Social_Share_View_Floating_Bar extends Kiwi_Social_Share_View implements Kiwi_Social_Share_Interface_Frontend {
|
7 |
+
/**
|
8 |
+
* Kiwi_Social_Share_Floating_Bar constructor.
|
9 |
+
*/
|
10 |
+
public function __construct() {
|
11 |
+
parent::__construct();
|
12 |
+
$enable = Kiwi_Social_Share_Helper::get_setting_value( 'floating_panel', false );
|
13 |
+
|
14 |
+
if ( ! $enable ) {
|
15 |
+
return;
|
16 |
+
}
|
17 |
+
|
18 |
+
if ( empty( $this->networks['floating_bar'] ) ) {
|
19 |
+
return;
|
20 |
+
}
|
21 |
+
|
22 |
+
$this->position = Kiwi_Social_Share_Helper::get_setting_value( 'floating_panel_location', 'left' );
|
23 |
+
$this->container_class[] = $this->position;
|
24 |
+
|
25 |
+
// render on the front
|
26 |
+
add_action( 'wp_footer', array( $this, 'display_bar' ) );
|
27 |
+
}
|
28 |
+
|
29 |
+
/**
|
30 |
+
* @param string $content
|
31 |
+
*
|
32 |
+
* @return mixed|void
|
33 |
+
*/
|
34 |
+
public function display_bar( $content = '' ) {
|
35 |
+
$this->generate_frontend_bar();
|
36 |
+
}
|
37 |
+
|
38 |
+
/**
|
39 |
+
*
|
40 |
+
*/
|
41 |
+
public function set_options() {
|
42 |
+
$this->container_class[] = Kiwi_Social_Share_Helper::get_setting_value( 'button_shape_floating', 'rect' );
|
43 |
+
$floating_panel_posttypes = Kiwi_Social_Share_Helper::get_setting_value( 'floating_panel_posttypes', 'all' );
|
44 |
+
if ( $floating_panel_posttypes === 'all' ) {
|
45 |
+
$this->post_types = 'all';
|
46 |
+
} else {
|
47 |
+
$post_types = Kiwi_Social_Share_Helper::get_setting_value( 'floating_panel_posttypes_list', array() );
|
48 |
+
$this->post_types = array_merge( $this->post_types, $post_types );
|
49 |
+
};
|
50 |
+
}
|
51 |
+
|
52 |
+
/**
|
53 |
+
* Render the display bar
|
54 |
+
*
|
55 |
+
* Allow theme customization for the floating bar using the following filters:
|
56 |
+
* * kiwi_before_floating_bar
|
57 |
+
* * kiwi_before_first_floating_item
|
58 |
+
* * kiwi_after_last_floating_item
|
59 |
+
* * kiwi_after_floating_bar
|
60 |
+
* * kiwi_floating_bar_list_custom_class
|
61 |
+
*/
|
62 |
+
public function generate_frontend_bar() {
|
63 |
+
|
64 |
+
$kiwi = Kiwi_Social_Share::instance();
|
65 |
+
wp_enqueue_style( $kiwi->_token . '-frontend' );
|
66 |
+
wp_enqueue_script( $kiwi->_token . '-frontend' );
|
67 |
+
|
68 |
+
$output = '';
|
69 |
+
$class = implode( ' ', $this->container_class );
|
70 |
+
$class .= ' ' . apply_filters( 'kiwi_floating_bar_list_custom_class', '' );
|
71 |
+
$output .= wp_kses_post( apply_filters( 'kiwi_before_floating_bar', '' ) );
|
72 |
+
|
73 |
+
$tracking = '';
|
74 |
+
if ( $this->tracking ) {
|
75 |
+
$tracking = ' data-tracking="true" data-tracking-container="floating-bar" ';
|
76 |
+
}
|
77 |
+
|
78 |
+
$output .= '<ul class="kiwi-floating-bar ' . esc_attr( $class ) . '"' . $tracking . '>';
|
79 |
+
$output .= wp_kses_post( apply_filters( 'kiwi_before_first_floating_bar_item', '' ) );
|
80 |
+
|
81 |
+
$network_labels = array(
|
82 |
+
'facebook' => esc_html__( 'Facebook', 'kiwi-social-share' ),
|
83 |
+
'twitter' => esc_html__( 'Twitter', 'kiwi-social-share' ),
|
84 |
+
'email' => esc_html__( 'Email', 'kiwi-social-share' ),
|
85 |
+
'google-plus' => esc_html__( 'Google Plus', 'kiwi-social-share' ),
|
86 |
+
'linkedin' => esc_html__( 'LinkedIn', 'kiwi-social-share' ),
|
87 |
+
'pinterest' => esc_html__( 'Pinterest', 'kiwi-social-share' ),
|
88 |
+
'reddit' => esc_html__( 'Reddit', 'kiwi-social-share' ),
|
89 |
+
'skype' => esc_html__( 'Skype', 'kiwi-social-share' ),
|
90 |
+
'telegram' => esc_html__( 'Telegram', 'kiwi-social-share' ),
|
91 |
+
'whatsapp' => esc_html__( 'WhatsApp', 'kiwi-social-share' ),
|
92 |
+
);
|
93 |
+
|
94 |
+
foreach ( $this->networks['floating_bar'] as $network ) {
|
95 |
+
$class = $this->generate_class_name( $network );
|
96 |
+
if ( ! class_exists( $class ) ) {
|
97 |
+
continue;
|
98 |
+
}
|
99 |
+
|
100 |
+
$t = new $class();
|
101 |
+
$html = $t->generate_output();
|
102 |
+
if ( ! empty( $html ) ) {
|
103 |
+
$output .= '<li>';
|
104 |
+
/**
|
105 |
+
* Social buttons will implement this interface :
|
106 |
+
* Kiwi_Social_Share_Interface_Social::generate_output
|
107 |
+
*/
|
108 |
+
$output .= $html;
|
109 |
+
$output .= '<a data-class="popup" class="kiwi-nw-' . $network . ' network-label" data-network="' . esc_attr( $network ) . '" href="' . esc_url( $t->url ) . '">' . $network_labels[ $network ] . '</a>';
|
110 |
+
$output .= '</li>';
|
111 |
+
}
|
112 |
+
|
113 |
+
}
|
114 |
+
|
115 |
+
$output .= wp_kses_post( apply_filters( 'kiwi_after_last_floating_bar_item', '' ) );
|
116 |
+
$output .= '</ul>';
|
117 |
+
|
118 |
+
$output .= wp_kses_post( apply_filters( 'kiwi_after_floating_bar', '' ) );
|
119 |
+
|
120 |
+
echo $output;
|
121 |
+
}
|
122 |
+
|
123 |
+
|
124 |
}
|
includes/frontend/social-bars/class-kiwi-social-share-view-shortcode-bar.php
CHANGED
@@ -1,76 +1,76 @@
|
|
1 |
-
<?php
|
2 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
-
exit;
|
4 |
-
}
|
5 |
-
|
6 |
-
/**
|
7 |
-
* Class Kiwi_Social_Share_View_Shortcode_Bar
|
8 |
-
*/
|
9 |
-
final class Kiwi_Social_Share_View_Shortcode_Bar extends Kiwi_Social_Share_View implements Kiwi_Social_Share_Interface_Frontend {
|
10 |
-
public function __construct( $networks = array(), $style = 'center', $icons = 'rect' ) {
|
11 |
-
parent::__construct();
|
12 |
-
|
13 |
-
if ( ! empty( $networks ) ) {
|
14 |
-
$this->networks['shortcode_bar'] = $networks;
|
15 |
-
}
|
16 |
-
|
17 |
-
$this->container_class = array( $icons );
|
18 |
-
|
19 |
-
switch ( $style ) {
|
20 |
-
case 'fit':
|
21 |
-
$this->container_class[] = 'kiwi-article-bar-fit';
|
22 |
-
break;
|
23 |
-
default:
|
24 |
-
$this->container_class[] = 'kiwi-article-bar-center';
|
25 |
-
break;
|
26 |
-
}
|
27 |
-
|
28 |
-
$kiwi = Kiwi_Social_Share::instance();
|
29 |
-
wp_enqueue_style( $kiwi->_token . '-frontend' );
|
30 |
-
wp_enqueue_script( $kiwi->_token . '-frontend' );
|
31 |
-
}
|
32 |
-
|
33 |
-
/**
|
34 |
-
* @param string $content
|
35 |
-
*
|
36 |
-
* @return mixed|void
|
37 |
-
*/
|
38 |
-
public function display_bar( $content = '' ) {
|
39 |
-
$this->generate_frontend_bar();
|
40 |
-
}
|
41 |
-
|
42 |
-
/**
|
43 |
-
* Render the display bar
|
44 |
-
*
|
45 |
-
*/
|
46 |
-
public function generate_frontend_bar() {
|
47 |
-
$output = '';
|
48 |
-
$class = implode( ' ', $this->container_class );
|
49 |
-
$tracking = '';
|
50 |
-
if ( $this->tracking ) {
|
51 |
-
$tracking = ' data-tracking="true" data-tracking-container="shortcode-bar" ';
|
52 |
-
}
|
53 |
-
$output .= '<ul class="kiwi-article-bar ' . esc_attr( $class ) . '"' . $tracking . '>';
|
54 |
-
foreach ( $this->networks['shortcode_bar'] as $network ) {
|
55 |
-
$class = $this->generate_class_name( $network );
|
56 |
-
if ( ! class_exists( $class ) ) {
|
57 |
-
continue;
|
58 |
-
}
|
59 |
-
$t = new $class();
|
60 |
-
$t = $t->generate_output();
|
61 |
-
if ( ! empty( $t ) ) {
|
62 |
-
$output .= '<li>';
|
63 |
-
/**
|
64 |
-
* Social buttons will implement this interface :
|
65 |
-
* Kiwi_Social_Share_Interface_Social::generate_output
|
66 |
-
*/
|
67 |
-
$output .= $t;
|
68 |
-
$output .= '</li>';
|
69 |
-
}
|
70 |
-
}
|
71 |
-
$output .= '</ul>';
|
72 |
-
|
73 |
-
return $output;
|
74 |
-
}
|
75 |
-
|
76 |
}
|
1 |
+
<?php
|
2 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
+
exit;
|
4 |
+
}
|
5 |
+
|
6 |
+
/**
|
7 |
+
* Class Kiwi_Social_Share_View_Shortcode_Bar
|
8 |
+
*/
|
9 |
+
final class Kiwi_Social_Share_View_Shortcode_Bar extends Kiwi_Social_Share_View implements Kiwi_Social_Share_Interface_Frontend {
|
10 |
+
public function __construct( $networks = array(), $style = 'center', $icons = 'rect' ) {
|
11 |
+
parent::__construct();
|
12 |
+
|
13 |
+
if ( ! empty( $networks ) ) {
|
14 |
+
$this->networks['shortcode_bar'] = $networks;
|
15 |
+
}
|
16 |
+
|
17 |
+
$this->container_class = array( $icons );
|
18 |
+
|
19 |
+
switch ( $style ) {
|
20 |
+
case 'fit':
|
21 |
+
$this->container_class[] = 'kiwi-article-bar-fit';
|
22 |
+
break;
|
23 |
+
default:
|
24 |
+
$this->container_class[] = 'kiwi-article-bar-center';
|
25 |
+
break;
|
26 |
+
}
|
27 |
+
|
28 |
+
$kiwi = Kiwi_Social_Share::instance();
|
29 |
+
wp_enqueue_style( $kiwi->_token . '-frontend' );
|
30 |
+
wp_enqueue_script( $kiwi->_token . '-frontend' );
|
31 |
+
}
|
32 |
+
|
33 |
+
/**
|
34 |
+
* @param string $content
|
35 |
+
*
|
36 |
+
* @return mixed|void
|
37 |
+
*/
|
38 |
+
public function display_bar( $content = '' ) {
|
39 |
+
$this->generate_frontend_bar();
|
40 |
+
}
|
41 |
+
|
42 |
+
/**
|
43 |
+
* Render the display bar
|
44 |
+
*
|
45 |
+
*/
|
46 |
+
public function generate_frontend_bar() {
|
47 |
+
$output = '';
|
48 |
+
$class = implode( ' ', $this->container_class );
|
49 |
+
$tracking = '';
|
50 |
+
if ( $this->tracking ) {
|
51 |
+
$tracking = ' data-tracking="true" data-tracking-container="shortcode-bar" ';
|
52 |
+
}
|
53 |
+
$output .= '<ul class="kiwi-article-bar ' . esc_attr( $class ) . '"' . $tracking . '>';
|
54 |
+
foreach ( $this->networks['shortcode_bar'] as $network ) {
|
55 |
+
$class = $this->generate_class_name( $network );
|
56 |
+
if ( ! class_exists( $class ) ) {
|
57 |
+
continue;
|
58 |
+
}
|
59 |
+
$t = new $class();
|
60 |
+
$t = $t->generate_output();
|
61 |
+
if ( ! empty( $t ) ) {
|
62 |
+
$output .= '<li>';
|
63 |
+
/**
|
64 |
+
* Social buttons will implement this interface :
|
65 |
+
* Kiwi_Social_Share_Interface_Social::generate_output
|
66 |
+
*/
|
67 |
+
$output .= $t;
|
68 |
+
$output .= '</li>';
|
69 |
+
}
|
70 |
+
}
|
71 |
+
$output .= '</ul>';
|
72 |
+
|
73 |
+
return $output;
|
74 |
+
}
|
75 |
+
|
76 |
}
|
includes/frontend/social-bars/class-kiwi-social-share-view.php
CHANGED
@@ -1,124 +1,124 @@
|
|
1 |
-
<?php
|
2 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
-
exit;
|
4 |
-
}
|
5 |
-
|
6 |
-
abstract class Kiwi_Social_Share_View {
|
7 |
-
/**
|
8 |
-
* @var array|mixed|string|void
|
9 |
-
*/
|
10 |
-
public $networks = array(
|
11 |
-
'floating_bar' => array(),
|
12 |
-
'article_bar' => array(),
|
13 |
-
);
|
14 |
-
|
15 |
-
/**
|
16 |
-
* @var array
|
17 |
-
*/
|
18 |
-
public $container_class = array();
|
19 |
-
|
20 |
-
/**
|
21 |
-
* @var string
|
22 |
-
*/
|
23 |
-
public $position = '';
|
24 |
-
|
25 |
-
/**
|
26 |
-
* @var array
|
27 |
-
*/
|
28 |
-
public $post_types = array();
|
29 |
-
|
30 |
-
/**
|
31 |
-
* @var bool
|
32 |
-
*/
|
33 |
-
public $tracking = false;
|
34 |
-
|
35 |
-
/**
|
36 |
-
* Kiwi_Social_Share_View constructor.
|
37 |
-
*/
|
38 |
-
public function __construct() {
|
39 |
-
$this->set_networks();
|
40 |
-
$this->set_tracking();
|
41 |
-
$this->set_options();
|
42 |
-
}
|
43 |
-
|
44 |
-
/**
|
45 |
-
* Get backend google analytics tracking settings
|
46 |
-
*/
|
47 |
-
private function set_tracking() {
|
48 |
-
$tracking = Kiwi_Social_Share_Helper::get_setting_value( 'ga_tracking', '', 'kiwi_social_identities' );
|
49 |
-
if ( ! empty( $tracking ) ) {
|
50 |
-
$this->tracking = true;
|
51 |
-
}
|
52 |
-
}
|
53 |
-
|
54 |
-
/**
|
55 |
-
* Get settings from backend and build the arrays
|
56 |
-
*/
|
57 |
-
private function set_networks() {
|
58 |
-
$saved_order = Kiwi_Social_Share_Helper::get_setting_value( 'networks_ordering' );
|
59 |
-
|
60 |
-
if ( empty( $saved_order ) ) {
|
61 |
-
$this->networks['floating_bar'] = Kiwi_Social_Share_Helper::get_setting_value( 'networks_floating_bar', array() );
|
62 |
-
$this->networks['article_bar'] = Kiwi_Social_Share_Helper::get_setting_value( 'networks_article_bar', array() );
|
63 |
-
|
64 |
-
return;
|
65 |
-
}
|
66 |
-
|
67 |
-
$this->networks['floating_bar'] = array();
|
68 |
-
$this->networks['article_bar'] = array();
|
69 |
-
|
70 |
-
$floating_bar = Kiwi_Social_Share_Helper::get_setting_value( 'networks_floating_bar', array() );
|
71 |
-
$article_bar = Kiwi_Social_Share_Helper::get_setting_value( 'networks_article_bar', array() );
|
72 |
-
|
73 |
-
$array_keys = explode( ',', $saved_order );
|
74 |
-
foreach ( $array_keys as $k ) {
|
75 |
-
if ( in_array( $k, $floating_bar ) ) {
|
76 |
-
$this->networks['floating_bar'][] = $k;
|
77 |
-
}
|
78 |
-
|
79 |
-
if ( in_array( $k, $article_bar ) ) {
|
80 |
-
$this->networks['article_bar'][] = $k;
|
81 |
-
}
|
82 |
-
}
|
83 |
-
|
84 |
-
}
|
85 |
-
|
86 |
-
/**
|
87 |
-
* Set options
|
88 |
-
*/
|
89 |
-
public function set_options() {
|
90 |
-
$this->container_class[] = Kiwi_Social_Share_Helper::get_setting_value( 'button_shape', 'rect' );
|
91 |
-
$share_buttons_posttypes = Kiwi_Social_Share_Helper::get_setting_value( 'share_buttons_posttypes', 'all' );
|
92 |
-
if ( $share_buttons_posttypes === 'all' ) {
|
93 |
-
$this->post_types = 'all';
|
94 |
-
} else {
|
95 |
-
$post_types = Kiwi_Social_Share_Helper::get_setting_value( 'share_buttons_posttypes_list', array() );
|
96 |
-
$this->post_types = array_merge( $this->post_types, $post_types );
|
97 |
-
};
|
98 |
-
}
|
99 |
-
|
100 |
-
/**
|
101 |
-
* Generate a class name, so we can create the buttons
|
102 |
-
*
|
103 |
-
* @param $network
|
104 |
-
*
|
105 |
-
* @return string
|
106 |
-
*/
|
107 |
-
public function generate_class_name( $network ) {
|
108 |
-
return 'Kiwi_Social_Share_Social_Button_' . $this->sanitize_network( $network );
|
109 |
-
}
|
110 |
-
|
111 |
-
/**
|
112 |
-
* Sanitize the network name so we can call it as needed
|
113 |
-
* e.g. Kiwi_Social_Share_Social_Button_google-plus will throw error,
|
114 |
-
* turn it in -> Kiwi_Social_Share_Social_Button_google_plus
|
115 |
-
*
|
116 |
-
* @param string $str
|
117 |
-
*
|
118 |
-
* @return mixed
|
119 |
-
*/
|
120 |
-
private function sanitize_network( $str = '' ) {
|
121 |
-
return str_replace( '-', '_', $str );
|
122 |
-
}
|
123 |
-
|
124 |
}
|
1 |
+
<?php
|
2 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
+
exit;
|
4 |
+
}
|
5 |
+
|
6 |
+
abstract class Kiwi_Social_Share_View {
|
7 |
+
/**
|
8 |
+
* @var array|mixed|string|void
|
9 |
+
*/
|
10 |
+
public $networks = array(
|
11 |
+
'floating_bar' => array(),
|
12 |
+
'article_bar' => array(),
|
13 |
+
);
|
14 |
+
|
15 |
+
/**
|
16 |
+
* @var array
|
17 |
+
*/
|
18 |
+
public $container_class = array();
|
19 |
+
|
20 |
+
/**
|
21 |
+
* @var string
|
22 |
+
*/
|
23 |
+
public $position = '';
|
24 |
+
|
25 |
+
/**
|
26 |
+
* @var array
|
27 |
+
*/
|
28 |
+
public $post_types = array();
|
29 |
+
|
30 |
+
/**
|
31 |
+
* @var bool
|
32 |
+
*/
|
33 |
+
public $tracking = false;
|
34 |
+
|
35 |
+
/**
|
36 |
+
* Kiwi_Social_Share_View constructor.
|
37 |
+
*/
|
38 |
+
public function __construct() {
|
39 |
+
$this->set_networks();
|
40 |
+
$this->set_tracking();
|
41 |
+
$this->set_options();
|
42 |
+
}
|
43 |
+
|
44 |
+
/**
|
45 |
+
* Get backend google analytics tracking settings
|
46 |
+
*/
|
47 |
+
private function set_tracking() {
|
48 |
+
$tracking = Kiwi_Social_Share_Helper::get_setting_value( 'ga_tracking', '', 'kiwi_social_identities' );
|
49 |
+
if ( ! empty( $tracking ) ) {
|
50 |
+
$this->tracking = true;
|
51 |
+
}
|
52 |
+
}
|
53 |
+
|
54 |
+
/**
|
55 |
+
* Get settings from backend and build the arrays
|
56 |
+
*/
|
57 |
+
private function set_networks() {
|
58 |
+
$saved_order = Kiwi_Social_Share_Helper::get_setting_value( 'networks_ordering' );
|
59 |
+
|
60 |
+
if ( empty( $saved_order ) ) {
|
61 |
+
$this->networks['floating_bar'] = Kiwi_Social_Share_Helper::get_setting_value( 'networks_floating_bar', array() );
|
62 |
+
$this->networks['article_bar'] = Kiwi_Social_Share_Helper::get_setting_value( 'networks_article_bar', array() );
|
63 |
+
|
64 |
+
return;
|
65 |
+
}
|
66 |
+
|
67 |
+
$this->networks['floating_bar'] = array();
|
68 |
+
$this->networks['article_bar'] = array();
|
69 |
+
|
70 |
+
$floating_bar = Kiwi_Social_Share_Helper::get_setting_value( 'networks_floating_bar', array() );
|
71 |
+
$article_bar = Kiwi_Social_Share_Helper::get_setting_value( 'networks_article_bar', array() );
|
72 |
+
|
73 |
+
$array_keys = explode( ',', $saved_order );
|
74 |
+
foreach ( $array_keys as $k ) {
|
75 |
+
if ( in_array( $k, $floating_bar ) ) {
|
76 |
+
$this->networks['floating_bar'][] = $k;
|
77 |
+
}
|
78 |
+
|
79 |
+
if ( in_array( $k, $article_bar ) ) {
|
80 |
+
$this->networks['article_bar'][] = $k;
|
81 |
+
}
|
82 |
+
}
|
83 |
+
|
84 |
+
}
|
85 |
+
|
86 |
+
/**
|
87 |
+
* Set options
|
88 |
+
*/
|
89 |
+
public function set_options() {
|
90 |
+
$this->container_class[] = Kiwi_Social_Share_Helper::get_setting_value( 'button_shape', 'rect' );
|
91 |
+
$share_buttons_posttypes = Kiwi_Social_Share_Helper::get_setting_value( 'share_buttons_posttypes', 'all' );
|
92 |
+
if ( $share_buttons_posttypes === 'all' ) {
|
93 |
+
$this->post_types = 'all';
|
94 |
+
} else {
|
95 |
+
$post_types = Kiwi_Social_Share_Helper::get_setting_value( 'share_buttons_posttypes_list', array() );
|
96 |
+
$this->post_types = array_merge( $this->post_types, $post_types );
|
97 |
+
};
|
98 |
+
}
|
99 |
+
|
100 |
+
/**
|
101 |
+
* Generate a class name, so we can create the buttons
|
102 |
+
*
|
103 |
+
* @param $network
|
104 |
+
*
|
105 |
+
* @return string
|
106 |
+
*/
|
107 |
+
public function generate_class_name( $network ) {
|
108 |
+
return 'Kiwi_Social_Share_Social_Button_' . $this->sanitize_network( $network );
|
109 |
+
}
|
110 |
+
|
111 |
+
/**
|
112 |
+
* Sanitize the network name so we can call it as needed
|
113 |
+
* e.g. Kiwi_Social_Share_Social_Button_google-plus will throw error,
|
114 |
+
* turn it in -> Kiwi_Social_Share_Social_Button_google_plus
|
115 |
+
*
|
116 |
+
* @param string $str
|
117 |
+
*
|
118 |
+
* @return mixed
|
119 |
+
*/
|
120 |
+
private function sanitize_network( $str = '' ) {
|
121 |
+
return str_replace( '-', '_', $str );
|
122 |
+
}
|
123 |
+
|
124 |
}
|
includes/frontend/social-buttons/class-kiwi-social-share-social-button-facebook.php
CHANGED
@@ -1,52 +1,52 @@
|
|
1 |
-
<?php
|
2 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
-
exit;
|
4 |
-
}
|
5 |
-
|
6 |
-
/**
|
7 |
-
* Class Kiwi_Social_Share_Social_Button_Facebook
|
8 |
-
*/
|
9 |
-
final class Kiwi_Social_Share_Social_Button_Facebook extends Kiwi_Social_Share_Social_Button implements Kiwi_Social_Share_Interface_Social {
|
10 |
-
/**
|
11 |
-
* Kiwi_Social_Share_Social_Button_Facebook constructor.
|
12 |
-
*/
|
13 |
-
public function __construct() {
|
14 |
-
parent::__construct();
|
15 |
-
$this->platform = 'facebook';
|
16 |
-
$this->url = $this->build_url();
|
17 |
-
|
18 |
-
$this->api_url = 'http://graph.facebook.com/?id=' . rawurlencode( $this->get_current_page_url( $this->post_id ) );
|
19 |
-
}
|
20 |
-
|
21 |
-
/**
|
22 |
-
* @return string
|
23 |
-
*/
|
24 |
-
public function build_url() {
|
25 |
-
$url = $this->get_current_page_url( $this->post_id );
|
26 |
-
|
27 |
-
|
28 |
-
return '//www.facebook.com/sharer.php?u=' . rawurlencode( $url );
|
29 |
-
}
|
30 |
-
|
31 |
-
/**
|
32 |
-
* @return string
|
33 |
-
*/
|
34 |
-
public function generate_output() {
|
35 |
-
return '<a data-class="popup" data-network="' . esc_attr( $this->platform ) . '" class="' . esc_attr( $this->generate_anchor_class() ) . '" href="' . esc_url( $this->url ) . '" target="_blank" rel="nofollow">' . $this->generate_anchor_icon() . ' ' . $this->build_shared_count() . '</a>';
|
36 |
-
}
|
37 |
-
|
38 |
-
/**
|
39 |
-
* @param $response
|
40 |
-
*
|
41 |
-
* @return bool
|
42 |
-
*/
|
43 |
-
public function parse_api_response( $response ) {
|
44 |
-
$response = json_decode( $response['body'], true );
|
45 |
-
|
46 |
-
if ( empty( $response['share'] ) ) {
|
47 |
-
return false;
|
48 |
-
}
|
49 |
-
|
50 |
-
return $response['share']['share_count'];
|
51 |
-
}
|
52 |
}
|
1 |
+
<?php
|
2 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
+
exit;
|
4 |
+
}
|
5 |
+
|
6 |
+
/**
|
7 |
+
* Class Kiwi_Social_Share_Social_Button_Facebook
|
8 |
+
*/
|
9 |
+
final class Kiwi_Social_Share_Social_Button_Facebook extends Kiwi_Social_Share_Social_Button implements Kiwi_Social_Share_Interface_Social {
|
10 |
+
/**
|
11 |
+
* Kiwi_Social_Share_Social_Button_Facebook constructor.
|
12 |
+
*/
|
13 |
+
public function __construct() {
|
14 |
+
parent::__construct();
|
15 |
+
$this->platform = 'facebook';
|
16 |
+
$this->url = $this->build_url();
|
17 |
+
|
18 |
+
$this->api_url = 'http://graph.facebook.com/?id=' . rawurlencode( $this->get_current_page_url( $this->post_id ) );
|
19 |
+
}
|
20 |
+
|
21 |
+
/**
|
22 |
+
* @return string
|
23 |
+
*/
|
24 |
+
public function build_url() {
|
25 |
+
$url = $this->get_current_page_url( $this->post_id );
|
26 |
+
|
27 |
+
|
28 |
+
return '//www.facebook.com/sharer.php?u=' . rawurlencode( $url );
|
29 |
+
}
|
30 |
+
|
31 |
+
/**
|
32 |
+
* @return string
|
33 |
+
*/
|
34 |
+
public function generate_output() {
|
35 |
+
return '<a data-class="popup" data-network="' . esc_attr( $this->platform ) . '" class="' . esc_attr( $this->generate_anchor_class() ) . '" href="' . esc_url( $this->url ) . '" target="_blank" rel="nofollow">' . $this->generate_anchor_icon() . ' ' . $this->build_shared_count() . '</a>';
|
36 |
+
}
|
37 |
+
|
38 |
+
/**
|
39 |
+
* @param $response
|
40 |
+
*
|
41 |
+
* @return bool
|
42 |
+
*/
|
43 |
+
public function parse_api_response( $response ) {
|
44 |
+
$response = json_decode( $response['body'], true );
|
45 |
+
|
46 |
+
if ( empty( $response['share'] ) ) {
|
47 |
+
return false;
|
48 |
+
}
|
49 |
+
|
50 |
+
return $response['share']['share_count'];
|
51 |
+
}
|
52 |
}
|
includes/frontend/social-buttons/class-kiwi-social-share-social-button-google-plus.php
CHANGED
@@ -1,65 +1,65 @@
|
|
1 |
-
<?php
|
2 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
-
exit;
|
4 |
-
}
|
5 |
-
|
6 |
-
/**
|
7 |
-
* Class Kiwi_Social_Share_Social_Button_Google_Plus
|
8 |
-
*/
|
9 |
-
final class Kiwi_Social_Share_Social_Button_Google_Plus extends Kiwi_Social_Share_Social_Button implements Kiwi_Social_Share_Interface_Social {
|
10 |
-
/**
|
11 |
-
* Kiwi_Social_Share_Social_Button_Google_Plus constructor.
|
12 |
-
*/
|
13 |
-
public function __construct() {
|
14 |
-
parent::__construct();
|
15 |
-
$this->platform = 'google-plus';
|
16 |
-
$this->url = $this->build_url();
|
17 |
-
$this->api_url = 'https://clients6.google.com/rpc';
|
18 |
-
}
|
19 |
-
|
20 |
-
/**
|
21 |
-
* @return string
|
22 |
-
*/
|
23 |
-
public function build_url() {
|
24 |
-
$url = $this->get_current_page_url( $this->post_id );
|
25 |
-
return '//plus.google.com/share?url=' . rawurlencode( $url );
|
26 |
-
}
|
27 |
-
|
28 |
-
/**
|
29 |
-
* @return string
|
30 |
-
*/
|
31 |
-
public function generate_output() {
|
32 |
-
return '<a data-class="popup" data-network="' . esc_attr( $this->platform ) . '" class="' . esc_attr( $this->generate_anchor_class() ) . '" href="' . esc_url( $this->url ) . '" target="_blank" rel="nofollow">' . $this->generate_anchor_icon() . ' ' . $this->build_shared_count() . '</a>';
|
33 |
-
}
|
34 |
-
|
35 |
-
/**
|
36 |
-
* @return bool
|
37 |
-
*/
|
38 |
-
public function connect_to_api_url() {
|
39 |
-
$curl = curl_init();
|
40 |
-
curl_setopt( $curl, CURLOPT_URL, $this->api_url );
|
41 |
-
curl_setopt( $curl, CURLOPT_POST, 1 );
|
42 |
-
curl_setopt( $curl, CURLOPT_POSTFIELDS, '[{"method":"pos.plusones.get","id":"p","params":{"nolog":true,"id":"' . rawurlencode( get_the_permalink( get_the_ID() ) ) . '","source":"widget","userId":"@viewer","groupId":"@self"},"jsonrpc":"2.0","key":"p","apiVersion":"v1"}]' );
|
43 |
-
curl_setopt( $curl, CURLOPT_RETURNTRANSFER, true );
|
44 |
-
curl_setopt( $curl, CURLOPT_HTTPHEADER, array( 'Content-type: application/json' ) );
|
45 |
-
$curl_results = curl_exec( $curl );
|
46 |
-
curl_close( $curl );
|
47 |
-
|
48 |
-
$json = json_decode( $curl_results, true );
|
49 |
-
|
50 |
-
return $this->parse_api_response( $json );
|
51 |
-
}
|
52 |
-
|
53 |
-
/**
|
54 |
-
* @param $response
|
55 |
-
*
|
56 |
-
* @return bool
|
57 |
-
*/
|
58 |
-
public function parse_api_response( $response ) {
|
59 |
-
if ( ! isset( $response[0]['result'] ) ) {
|
60 |
-
return false;
|
61 |
-
}
|
62 |
-
|
63 |
-
return intval( $response[0]['result']['metadata']['globalCounts']['count'] );
|
64 |
-
}
|
65 |
}
|
1 |
+
<?php
|
2 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
+
exit;
|
4 |
+
}
|
5 |
+
|
6 |
+
/**
|
7 |
+
* Class Kiwi_Social_Share_Social_Button_Google_Plus
|
8 |
+
*/
|
9 |
+
final class Kiwi_Social_Share_Social_Button_Google_Plus extends Kiwi_Social_Share_Social_Button implements Kiwi_Social_Share_Interface_Social {
|
10 |
+
/**
|
11 |
+
* Kiwi_Social_Share_Social_Button_Google_Plus constructor.
|
12 |
+
*/
|
13 |
+
public function __construct() {
|
14 |
+
parent::__construct();
|
15 |
+
$this->platform = 'google-plus';
|
16 |
+
$this->url = $this->build_url();
|
17 |
+
$this->api_url = 'https://clients6.google.com/rpc';
|
18 |
+
}
|
19 |
+
|
20 |
+
/**
|
21 |
+
* @return string
|
22 |
+
*/
|
23 |
+
public function build_url() {
|
24 |
+
$url = $this->get_current_page_url( $this->post_id );
|
25 |
+
return '//plus.google.com/share?url=' . rawurlencode( $url );
|
26 |
+
}
|
27 |
+
|
28 |
+
/**
|
29 |
+
* @return string
|
30 |
+
*/
|
31 |
+
public function generate_output() {
|
32 |
+
return '<a data-class="popup" data-network="' . esc_attr( $this->platform ) . '" class="' . esc_attr( $this->generate_anchor_class() ) . '" href="' . esc_url( $this->url ) . '" target="_blank" rel="nofollow">' . $this->generate_anchor_icon() . ' ' . $this->build_shared_count() . '</a>';
|
33 |
+
}
|
34 |
+
|
35 |
+
/**
|
36 |
+
* @return bool
|
37 |
+
*/
|
38 |
+
public function connect_to_api_url() {
|
39 |
+
$curl = curl_init();
|
40 |
+
curl_setopt( $curl, CURLOPT_URL, $this->api_url );
|
41 |
+
curl_setopt( $curl, CURLOPT_POST, 1 );
|
42 |
+
curl_setopt( $curl, CURLOPT_POSTFIELDS, '[{"method":"pos.plusones.get","id":"p","params":{"nolog":true,"id":"' . rawurlencode( get_the_permalink( get_the_ID() ) ) . '","source":"widget","userId":"@viewer","groupId":"@self"},"jsonrpc":"2.0","key":"p","apiVersion":"v1"}]' );
|
43 |
+
curl_setopt( $curl, CURLOPT_RETURNTRANSFER, true );
|
44 |
+
curl_setopt( $curl, CURLOPT_HTTPHEADER, array( 'Content-type: application/json' ) );
|
45 |
+
$curl_results = curl_exec( $curl );
|
46 |
+
curl_close( $curl );
|
47 |
+
|
48 |
+
$json = json_decode( $curl_results, true );
|
49 |
+
|
50 |
+
return $this->parse_api_response( $json );
|
51 |
+
}
|
52 |
+
|
53 |
+
/**
|
54 |
+
* @param $response
|
55 |
+
*
|
56 |
+
* @return bool
|
57 |
+
*/
|
58 |
+
public function parse_api_response( $response ) {
|
59 |
+
if ( ! isset( $response[0]['result'] ) ) {
|
60 |
+
return false;
|
61 |
+
}
|
62 |
+
|
63 |
+
return intval( $response[0]['result']['metadata']['globalCounts']['count'] );
|
64 |
+
}
|
65 |
}
|
includes/frontend/social-buttons/class-kiwi-social-share-social-button-linkedin.php
CHANGED
@@ -1,55 +1,55 @@
|
|
1 |
-
<?php
|
2 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
-
exit;
|
4 |
-
}
|
5 |
-
|
6 |
-
/**
|
7 |
-
* Class Kiwi_Social_Share_Social_Button_LinkedIn
|
8 |
-
*/
|
9 |
-
final class Kiwi_Social_Share_Social_Button_LinkedIn extends Kiwi_Social_Share_Social_Button implements Kiwi_Social_Share_Interface_Social {
|
10 |
-
/**
|
11 |
-
* Kiwi_Social_Share_Social_Button_LinkedIn constructor.
|
12 |
-
*/
|
13 |
-
public function __construct() {
|
14 |
-
parent::__construct();
|
15 |
-
$this->platform = 'linkedin';
|
16 |
-
$this->url = $this->build_url();
|
17 |
-
$this->api_url = 'http://www.linkedin.com/countserv/count/share?url=' . rawurlencode( $this->get_current_page_url( $this->post_id ) ) . '&format=json';
|
18 |
-
}
|
19 |
-
|
20 |
-
/**
|
21 |
-
* @return string
|
22 |
-
*/
|
23 |
-
public function build_url() {
|
24 |
-
$desc = strip_tags( get_the_title() );
|
25 |
-
if ( 'fp' == $this->post_id ) {
|
26 |
-
$desc = get_bloginfo( 'description' );
|
27 |
-
}
|
28 |
-
|
29 |
-
$url = $this->get_current_page_url( $this->post_id );
|
30 |
-
|
31 |
-
return '//linkedin.com/shareArticle?mini=true&url=' . rawurlencode( $url ) . '&title=' . urlencode( $desc );
|
32 |
-
}
|
33 |
-
|
34 |
-
/**
|
35 |
-
* @return string
|
36 |
-
*/
|
37 |
-
public function generate_output() {
|
38 |
-
return '<a data-class="popup" data-network="' . esc_attr( $this->platform ) . '" class="' . esc_attr( $this->generate_anchor_class() ) . '" href="' . esc_url( $this->url ) . '" target="_blank" rel="nofollow">' . $this->generate_anchor_icon() . ' ' . $this->build_shared_count() . '</a>';
|
39 |
-
}
|
40 |
-
|
41 |
-
/**
|
42 |
-
* @param $response
|
43 |
-
*
|
44 |
-
* @return bool
|
45 |
-
*/
|
46 |
-
public function parse_api_response( $response ) {
|
47 |
-
$response = json_decode( $response['body'], true );
|
48 |
-
|
49 |
-
if ( empty( $response['count'] ) ) {
|
50 |
-
return false;
|
51 |
-
}
|
52 |
-
|
53 |
-
return $response['count'];
|
54 |
-
}
|
55 |
}
|
1 |
+
<?php
|
2 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
+
exit;
|
4 |
+
}
|
5 |
+
|
6 |
+
/**
|
7 |
+
* Class Kiwi_Social_Share_Social_Button_LinkedIn
|
8 |
+
*/
|
9 |
+
final class Kiwi_Social_Share_Social_Button_LinkedIn extends Kiwi_Social_Share_Social_Button implements Kiwi_Social_Share_Interface_Social {
|
10 |
+
/**
|
11 |
+
* Kiwi_Social_Share_Social_Button_LinkedIn constructor.
|
12 |
+
*/
|
13 |
+
public function __construct() {
|
14 |
+
parent::__construct();
|
15 |
+
$this->platform = 'linkedin';
|
16 |
+
$this->url = $this->build_url();
|
17 |
+
$this->api_url = 'http://www.linkedin.com/countserv/count/share?url=' . rawurlencode( $this->get_current_page_url( $this->post_id ) ) . '&format=json';
|
18 |
+
}
|
19 |
+
|
20 |
+
/**
|
21 |
+
* @return string
|
22 |
+
*/
|
23 |
+
public function build_url() {
|
24 |
+
$desc = strip_tags( get_the_title() );
|
25 |
+
if ( 'fp' == $this->post_id ) {
|
26 |
+
$desc = get_bloginfo( 'description' );
|
27 |
+
}
|
28 |
+
|
29 |
+
$url = $this->get_current_page_url( $this->post_id );
|
30 |
+
|
31 |
+
return '//linkedin.com/shareArticle?mini=true&url=' . rawurlencode( $url ) . '&title=' . urlencode( $desc );
|
32 |
+
}
|
33 |
+
|
34 |
+
/**
|
35 |
+
* @return string
|
36 |
+
*/
|
37 |
+
public function generate_output() {
|
38 |
+
return '<a data-class="popup" data-network="' . esc_attr( $this->platform ) . '" class="' . esc_attr( $this->generate_anchor_class() ) . '" href="' . esc_url( $this->url ) . '" target="_blank" rel="nofollow">' . $this->generate_anchor_icon() . ' ' . $this->build_shared_count() . '</a>';
|
39 |
+
}
|
40 |
+
|
41 |
+
/**
|
42 |
+
* @param $response
|
43 |
+
*
|
44 |
+
* @return bool
|
45 |
+
*/
|
46 |
+
public function parse_api_response( $response ) {
|
47 |
+
$response = json_decode( $response['body'], true );
|
48 |
+
|
49 |
+
if ( empty( $response['count'] ) ) {
|
50 |
+
return false;
|
51 |
+
}
|
52 |
+
|
53 |
+
return $response['count'];
|
54 |
+
}
|
55 |
}
|
includes/frontend/social-buttons/class-kiwi-social-share-social-button-pinterest.php
CHANGED
@@ -1,77 +1,77 @@
|
|
1 |
-
<?php
|
2 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
-
exit;
|
4 |
-
}
|
5 |
-
|
6 |
-
/**
|
7 |
-
* Class Kiwi_Social_Share_Social_Button_Pinterest
|
8 |
-
*/
|
9 |
-
final class Kiwi_Social_Share_Social_Button_Pinterest extends Kiwi_Social_Share_Social_Button implements Kiwi_Social_Share_Interface_Social {
|
10 |
-
/**
|
11 |
-
* Kiwi_Social_Share_Social_Button_Pinterest constructor.
|
12 |
-
*/
|
13 |
-
public function __construct() {
|
14 |
-
parent::__construct();
|
15 |
-
$this->platform = 'pinterest';
|
16 |
-
$this->url = $this->build_url();
|
17 |
-
$this->api_url = 'http://api.pinterest.com/v1/urls/count.json?callback%20&url=' . rawurlencode( $this->get_current_page_url( $this->post_id ) );
|
18 |
-
}
|
19 |
-
|
20 |
-
/**
|
21 |
-
* @return string
|
22 |
-
*/
|
23 |
-
public function build_url() {
|
24 |
-
$media = wp_get_attachment_url( get_post_thumbnail_id( get_the_ID() ) );
|
25 |
-
$custom_image = get_post_meta( get_the_ID(), 'kiwi_social-media-pinterest-image', true );
|
26 |
-
$custom_text = get_post_meta( get_the_ID(), 'kiwi_social-media-pinterest-description', true );
|
27 |
-
|
28 |
-
if ( ! empty( $custom_image ) ) {
|
29 |
-
$media = $custom_image;
|
30 |
-
}
|
31 |
-
|
32 |
-
$desc = strip_tags( $this->get_excerpt_by_id( get_the_ID() ) );
|
33 |
-
if ( 'fp' == $this->post_id ) {
|
34 |
-
$desc = get_bloginfo( 'description' );
|
35 |
-
}
|
36 |
-
|
37 |
-
if ( ! empty( $custom_text ) ) {
|
38 |
-
$desc = $custom_text;
|
39 |
-
}
|
40 |
-
|
41 |
-
$url = $this->get_current_page_url( $this->post_id );
|
42 |
-
$str = '//pinterest.com/pin/create/button/?url=' . rawurlencode( $url ) . '&description=' . urlencode( $desc );
|
43 |
-
|
44 |
-
if ( ! empty( $media ) ) {
|
45 |
-
$str .= '&media=' . $media;
|
46 |
-
}
|
47 |
-
|
48 |
-
return $str;
|
49 |
-
}
|
50 |
-
|
51 |
-
/**
|
52 |
-
* @return string
|
53 |
-
*/
|
54 |
-
public function generate_output() {
|
55 |
-
return '<a data-class="popup" data-network="' . esc_attr( $this->platform ) . '" class="' . esc_attr( $this->generate_anchor_class() ) . '" href="' . esc_url( $this->url ) . '" target="_blank" rel="nofollow">' . $this->generate_anchor_icon() . ' ' . $this->build_shared_count() . '</a>';
|
56 |
-
}
|
57 |
-
|
58 |
-
/**
|
59 |
-
* @param $response
|
60 |
-
*/
|
61 |
-
/**
|
62 |
-
* @param $response
|
63 |
-
*
|
64 |
-
* @return bool
|
65 |
-
*/
|
66 |
-
public function parse_api_response( $response ) {
|
67 |
-
$response = preg_replace( '/^receiveCount\((.*)\)$/', '\\1', $response['body'] );
|
68 |
-
$response = json_decode( $response, true );
|
69 |
-
|
70 |
-
if ( empty( $response['count'] ) ) {
|
71 |
-
return false;
|
72 |
-
}
|
73 |
-
|
74 |
-
return $response['count'];
|
75 |
-
}
|
76 |
-
|
77 |
}
|
1 |
+
<?php
|
2 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
+
exit;
|
4 |
+
}
|
5 |
+
|
6 |
+
/**
|
7 |
+
* Class Kiwi_Social_Share_Social_Button_Pinterest
|
8 |
+
*/
|
9 |
+
final class Kiwi_Social_Share_Social_Button_Pinterest extends Kiwi_Social_Share_Social_Button implements Kiwi_Social_Share_Interface_Social {
|
10 |
+
/**
|
11 |
+
* Kiwi_Social_Share_Social_Button_Pinterest constructor.
|
12 |
+
*/
|
13 |
+
public function __construct() {
|
14 |
+
parent::__construct();
|
15 |
+
$this->platform = 'pinterest';
|
16 |
+
$this->url = $this->build_url();
|
17 |
+
$this->api_url = 'http://api.pinterest.com/v1/urls/count.json?callback%20&url=' . rawurlencode( $this->get_current_page_url( $this->post_id ) );
|
18 |
+
}
|
19 |
+
|
20 |
+
/**
|
21 |
+
* @return string
|
22 |
+
*/
|
23 |
+
public function build_url() {
|
24 |
+
$media = wp_get_attachment_url( get_post_thumbnail_id( get_the_ID() ) );
|
25 |
+
$custom_image = get_post_meta( get_the_ID(), 'kiwi_social-media-pinterest-image', true );
|
26 |
+
$custom_text = get_post_meta( get_the_ID(), 'kiwi_social-media-pinterest-description', true );
|
27 |
+
|
28 |
+
if ( ! empty( $custom_image ) ) {
|
29 |
+
$media = $custom_image;
|
30 |
+
}
|
31 |
+
|
32 |
+
$desc = strip_tags( $this->get_excerpt_by_id( get_the_ID() ) );
|
33 |
+
if ( 'fp' == $this->post_id ) {
|
34 |
+
$desc = get_bloginfo( 'description' );
|
35 |
+
}
|
36 |
+
|
37 |
+
if ( ! empty( $custom_text ) ) {
|
38 |
+
$desc = $custom_text;
|
39 |
+
}
|
40 |
+
|
41 |
+
$url = $this->get_current_page_url( $this->post_id );
|
42 |
+
$str = '//pinterest.com/pin/create/button/?url=' . rawurlencode( $url ) . '&description=' . urlencode( $desc );
|
43 |
+
|
44 |
+
if ( ! empty( $media ) ) {
|
45 |
+
$str .= '&media=' . $media;
|
46 |
+
}
|
47 |
+
|
48 |
+
return $str;
|
49 |
+
}
|
50 |
+
|
51 |
+
/**
|
52 |
+
* @return string
|
53 |
+
*/
|
54 |
+
public function generate_output() {
|
55 |
+
return '<a data-class="popup" data-network="' . esc_attr( $this->platform ) . '" class="' . esc_attr( $this->generate_anchor_class() ) . '" href="' . esc_url( $this->url ) . '" target="_blank" rel="nofollow">' . $this->generate_anchor_icon() . ' ' . $this->build_shared_count() . '</a>';
|
56 |
+
}
|
57 |
+
|
58 |
+
/**
|
59 |
+
* @param $response
|
60 |
+
*/
|
61 |
+
/**
|
62 |
+
* @param $response
|
63 |
+
*
|
64 |
+
* @return bool
|
65 |
+
*/
|
66 |
+
public function parse_api_response( $response ) {
|
67 |
+
$response = preg_replace( '/^receiveCount\((.*)\)$/', '\\1', $response['body'] );
|
68 |
+
$response = json_decode( $response, true );
|
69 |
+
|
70 |
+
if ( empty( $response['count'] ) ) {
|
71 |
+
return false;
|
72 |
+
}
|
73 |
+
|
74 |
+
return $response['count'];
|
75 |
+
}
|
76 |
+
|
77 |
}
|
includes/frontend/social-buttons/class-kiwi-social-share-social-button-twitter.php
CHANGED
@@ -1,64 +1,64 @@
|
|
1 |
-
<?php
|
2 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
-
exit;
|
4 |
-
}
|
5 |
-
|
6 |
-
/**
|
7 |
-
* Class Kiwi_Social_Share_Social_Button_Twitter
|
8 |
-
*/
|
9 |
-
final class Kiwi_Social_Share_Social_Button_Twitter extends Kiwi_Social_Share_Social_Button implements Kiwi_Social_Share_Interface_Social {
|
10 |
-
/**
|
11 |
-
* Kiwi_Social_Share_Social_Button_Twitter constructor.
|
12 |
-
*/
|
13 |
-
public function __construct() {
|
14 |
-
parent::__construct();
|
15 |
-
$this->platform = 'twitter';
|
16 |
-
$this->url = $this->build_url();
|
17 |
-
|
18 |
-
$this->api_url = 'http://public.newsharecounts.com/count.json?url=' . rawurlencode( $this->get_current_page_url( $this->post_id ) );
|
19 |
-
}
|
20 |
-
|
21 |
-
/**
|
22 |
-
* @return string
|
23 |
-
*/
|
24 |
-
public function build_url() {
|
25 |
-
$desc = strip_tags( get_the_title() );
|
26 |
-
if ( 'fp' == $this->post_id ) {
|
27 |
-
$desc = get_bloginfo( 'description' );
|
28 |
-
}
|
29 |
-
|
30 |
-
$additional = '';
|
31 |
-
|
32 |
-
$twitter_handle = Kiwi_Social_Share_Helper::get_setting_value( 'twitter_username', '', 'kiwi_social_identities' );
|
33 |
-
if ( ! empty( $twitter_handle ) ) {
|
34 |
-
$additional = '&via=' . str_replace( '@', '', $twitter_handle );
|
35 |
-
}
|
36 |
-
|
37 |
-
$url = $this->get_current_page_url( $this->post_id );
|
38 |
-
|
39 |
-
|
40 |
-
return '//twitter.com/intent/tweet?text=' .
|
41 |
-
}
|
42 |
-
|
43 |
-
/**
|
44 |
-
* @return string
|
45 |
-
*/
|
46 |
-
public function generate_output() {
|
47 |
-
return '<a data-class="popup" data-network="' . esc_attr( $this->platform ) . '" class="' . esc_attr( $this->generate_anchor_class() ) . '" href="' . esc_url( $this->url ) . '" target="_blank" rel="nofollow">' . $this->generate_anchor_icon() . ' ' . $this->build_shared_count() . '</a>';
|
48 |
-
}
|
49 |
-
|
50 |
-
/**
|
51 |
-
* @param $response
|
52 |
-
*
|
53 |
-
* @return bool
|
54 |
-
*/
|
55 |
-
public function parse_api_response( $response ) {
|
56 |
-
$response = json_decode( $response['body'], true );
|
57 |
-
|
58 |
-
if ( empty( $response['count'] ) ) {
|
59 |
-
return false;
|
60 |
-
}
|
61 |
-
|
62 |
-
return $response['count'];
|
63 |
-
}
|
64 |
}
|
1 |
+
<?php
|
2 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
+
exit;
|
4 |
+
}
|
5 |
+
|
6 |
+
/**
|
7 |
+
* Class Kiwi_Social_Share_Social_Button_Twitter
|
8 |
+
*/
|
9 |
+
final class Kiwi_Social_Share_Social_Button_Twitter extends Kiwi_Social_Share_Social_Button implements Kiwi_Social_Share_Interface_Social {
|
10 |
+
/**
|
11 |
+
* Kiwi_Social_Share_Social_Button_Twitter constructor.
|
12 |
+
*/
|
13 |
+
public function __construct() {
|
14 |
+
parent::__construct();
|
15 |
+
$this->platform = 'twitter';
|
16 |
+
$this->url = $this->build_url();
|
17 |
+
|
18 |
+
$this->api_url = 'http://public.newsharecounts.com/count.json?url=' . rawurlencode( $this->get_current_page_url( $this->post_id ) );
|
19 |
+
}
|
20 |
+
|
21 |
+
/**
|
22 |
+
* @return string
|
23 |
+
*/
|
24 |
+
public function build_url() {
|
25 |
+
$desc = strip_tags( get_the_title() );
|
26 |
+
if ( 'fp' == $this->post_id ) {
|
27 |
+
$desc = get_bloginfo( 'description' );
|
28 |
+
}
|
29 |
+
|
30 |
+
$additional = '';
|
31 |
+
|
32 |
+
$twitter_handle = Kiwi_Social_Share_Helper::get_setting_value( 'twitter_username', '', 'kiwi_social_identities' );
|
33 |
+
if ( ! empty( $twitter_handle ) ) {
|
34 |
+
$additional = '&via=' . str_replace( '@', '', $twitter_handle );
|
35 |
+
}
|
36 |
+
|
37 |
+
$url = $this->get_current_page_url( $this->post_id );
|
38 |
+
|
39 |
+
|
40 |
+
return '//twitter.com/intent/tweet?text=' . $desc . '&url=' . rawurlencode( $url ) . $additional;
|
41 |
+
}
|
42 |
+
|
43 |
+
/**
|
44 |
+
* @return string
|
45 |
+
*/
|
46 |
+
public function generate_output() {
|
47 |
+
return '<a data-class="popup" data-network="' . esc_attr( $this->platform ) . '" class="' . esc_attr( $this->generate_anchor_class() ) . '" href="' . esc_url( $this->url ) . '" target="_blank" rel="nofollow">' . $this->generate_anchor_icon() . ' ' . $this->build_shared_count() . '</a>';
|
48 |
+
}
|
49 |
+
|
50 |
+
/**
|
51 |
+
* @param $response
|
52 |
+
*
|
53 |
+
* @return bool
|
54 |
+
*/
|
55 |
+
public function parse_api_response( $response ) {
|
56 |
+
$response = json_decode( $response['body'], true );
|
57 |
+
|
58 |
+
if ( empty( $response['count'] ) ) {
|
59 |
+
return false;
|
60 |
+
}
|
61 |
+
|
62 |
+
return $response['count'];
|
63 |
+
}
|
64 |
}
|
includes/frontend/social-buttons/class-kiwi-social-share-social-button.php
CHANGED
@@ -1,147 +1,147 @@
|
|
1 |
-
<?php
|
2 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
-
exit;
|
4 |
-
}
|
5 |
-
|
6 |
-
/**
|
7 |
-
* Class Kiwi_Social_Share_Social_Button
|
8 |
-
*/
|
9 |
-
abstract class Kiwi_Social_Share_Social_Button {
|
10 |
-
/**
|
11 |
-
* @var
|
12 |
-
*/
|
13 |
-
public $platform;
|
14 |
-
/**
|
15 |
-
* @var
|
16 |
-
*/
|
17 |
-
public $url;
|
18 |
-
/**
|
19 |
-
* @var
|
20 |
-
*/
|
21 |
-
public $api_url;
|
22 |
-
/**
|
23 |
-
* @var
|
24 |
-
*/
|
25 |
-
public $settings;
|
26 |
-
/**
|
27 |
-
* @var string
|
28 |
-
*/
|
29 |
-
public $post_id;
|
30 |
-
|
31 |
-
|
32 |
-
/**
|
33 |
-
* Kiwi_Social_Share_Social_Button constructor.
|
34 |
-
*/
|
35 |
-
public function __construct() {
|
36 |
-
$this->post_id = get_the_ID();
|
37 |
-
if ( is_front_page() || is_archive() || is_date() || is_category() || is_home() ) {
|
38 |
-
$this->post_id = 'fp';
|
39 |
-
}
|
40 |
-
}
|
41 |
-
|
42 |
-
/**
|
43 |
-
* @param $id
|
44 |
-
*
|
45 |
-
* @return mixed|string
|
46 |
-
*/
|
47 |
-
public function get_excerpt_by_id( $id ) {
|
48 |
-
return Kiwi_Social_Share_Helper::get_excerpt_by_id( $id );
|
49 |
-
}
|
50 |
-
|
51 |
-
/**
|
52 |
-
* @return string
|
53 |
-
*/
|
54 |
-
public function generate_anchor_class() {
|
55 |
-
return 'kiwi-nw-' . $this->platform;
|
56 |
-
}
|
57 |
-
|
58 |
-
/**
|
59 |
-
* @param string $custom
|
60 |
-
*
|
61 |
-
* @return string
|
62 |
-
*/
|
63 |
-
public function generate_anchor_icon( $custom = '' ) {
|
64 |
-
if ( ! empty( $custom ) ) {
|
65 |
-
$this->platform = $custom;
|
66 |
-
}
|
67 |
-
|
68 |
-
return '<span class="kicon-' . esc_attr( $this->platform ) . '"></span>';
|
69 |
-
}
|
70 |
-
|
71 |
-
|
72 |
-
/**
|
73 |
-
* Returns an int, containing the number of shares
|
74 |
-
*/
|
75 |
-
public function get_shared_count() {
|
76 |
-
$response = get_transient( 'kiwi_' . $this->post_id . '_share_count_transient' );
|
77 |
-
if ( false === $response || empty( $response[ $this->platform ] ) ) {
|
78 |
-
$api = $this->connect_to_api_url();
|
79 |
-
|
80 |
-
if ( ! $api ) {
|
81 |
-
$api = 0;
|
82 |
-
}
|
83 |
-
|
84 |
-
$response[ $this->platform ] = $api;
|
85 |
-
/**
|
86 |
-
* Add a transient available 2 HOURS
|
87 |
-
*/
|
88 |
-
set_transient( 'kiwi_' . $this->post_id . '_share_count_transient', $response, 2 * HOUR_IN_SECONDS );
|
89 |
-
}
|
90 |
-
|
91 |
-
return $response[ $this->platform ];
|
92 |
-
}
|
93 |
-
|
94 |
-
/**
|
95 |
-
* Returns a string, HTML code
|
96 |
-
*/
|
97 |
-
public function build_shared_count() {
|
98 |
-
if ( $this->get_shared_count() > 0 && Kiwi_Social_Share_Helper::get_setting_value( 'share_counts', '' ) === 'on' ) {
|
99 |
-
return '<span class="kiwi-share-count">' . $this->get_shared_count() . '</span>';
|
100 |
-
};
|
101 |
-
|
102 |
-
return '';
|
103 |
-
}
|
104 |
-
|
105 |
-
/**
|
106 |
-
* @return bool|mixed
|
107 |
-
*/
|
108 |
-
public function connect_to_api_url() {
|
109 |
-
if ( empty( $this->api_url ) ) {
|
110 |
-
return false;
|
111 |
-
}
|
112 |
-
|
113 |
-
$response = wp_remote_get( $this->api_url );
|
114 |
-
|
115 |
-
if ( is_wp_error( $response ) || 200 != wp_remote_retrieve_response_code( $response ) ) {
|
116 |
-
return false;
|
117 |
-
}
|
118 |
-
|
119 |
-
if ( empty( $response['body'] ) ) {
|
120 |
-
return false;
|
121 |
-
}
|
122 |
-
|
123 |
-
return $this->parse_api_response( $response );
|
124 |
-
}
|
125 |
-
|
126 |
-
/**
|
127 |
-
* @param $response
|
128 |
-
*
|
129 |
-
* @return mixed
|
130 |
-
*/
|
131 |
-
public function parse_api_response( $response ) {
|
132 |
-
return 0;
|
133 |
-
}
|
134 |
-
|
135 |
-
/**
|
136 |
-
* @param $id
|
137 |
-
*
|
138 |
-
* @return false|string
|
139 |
-
*/
|
140 |
-
public function get_current_page_url( $id ) {
|
141 |
-
if ( $id === 'fp' ) {
|
142 |
-
return get_home_url();
|
143 |
-
}
|
144 |
-
|
145 |
-
return get_the_permalink( $id );
|
146 |
-
}
|
147 |
}
|
1 |
+
<?php
|
2 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
+
exit;
|
4 |
+
}
|
5 |
+
|
6 |
+
/**
|
7 |
+
* Class Kiwi_Social_Share_Social_Button
|
8 |
+
*/
|
9 |
+
abstract class Kiwi_Social_Share_Social_Button {
|
10 |
+
/**
|
11 |
+
* @var
|
12 |
+
*/
|
13 |
+
public $platform;
|
14 |
+
/**
|
15 |
+
* @var
|
16 |
+
*/
|
17 |
+
public $url;
|
18 |
+
/**
|
19 |
+
* @var
|
20 |
+
*/
|
21 |
+
public $api_url;
|
22 |
+
/**
|
23 |
+
* @var
|
24 |
+
*/
|
25 |
+
public $settings;
|
26 |
+
/**
|
27 |
+
* @var string
|
28 |
+
*/
|
29 |
+
public $post_id;
|
30 |
+
|
31 |
+
|
32 |
+
/**
|
33 |
+
* Kiwi_Social_Share_Social_Button constructor.
|
34 |
+
*/
|
35 |
+
public function __construct() {
|
36 |
+
$this->post_id = get_the_ID();
|
37 |
+
if ( is_front_page() || is_archive() || is_date() || is_category() || is_home() ) {
|
38 |
+
$this->post_id = 'fp';
|
39 |
+
}
|
40 |
+
}
|
41 |
+
|
42 |
+
/**
|
43 |
+
* @param $id
|
44 |
+
*
|
45 |
+
* @return mixed|string
|
46 |
+
*/
|
47 |
+
public function get_excerpt_by_id( $id ) {
|
48 |
+
return Kiwi_Social_Share_Helper::get_excerpt_by_id( $id );
|
49 |
+
}
|
50 |
+
|
51 |
+
/**
|
52 |
+
* @return string
|
53 |
+
*/
|
54 |
+
public function generate_anchor_class() {
|
55 |
+
return 'kiwi-nw-' . $this->platform;
|
56 |
+
}
|
57 |
+
|
58 |
+
/**
|
59 |
+
* @param string $custom
|
60 |
+
*
|
61 |
+
* @return string
|
62 |
+
*/
|
63 |
+
public function generate_anchor_icon( $custom = '' ) {
|
64 |
+
if ( ! empty( $custom ) ) {
|
65 |
+
$this->platform = $custom;
|
66 |
+
}
|
67 |
+
|
68 |
+
return '<span class="kicon-' . esc_attr( $this->platform ) . '"></span>';
|
69 |
+
}
|
70 |
+
|
71 |
+
|
72 |
+
/**
|
73 |
+
* Returns an int, containing the number of shares
|
74 |
+
*/
|
75 |
+
public function get_shared_count() {
|
76 |
+
$response = get_transient( 'kiwi_' . $this->post_id . '_share_count_transient' );
|
77 |
+
if ( false === $response || empty( $response[ $this->platform ] ) ) {
|
78 |
+
$api = $this->connect_to_api_url();
|
79 |
+
|
80 |
+
if ( ! $api ) {
|
81 |
+
$api = 0;
|
82 |
+
}
|
83 |
+
|
84 |
+
$response[ $this->platform ] = $api;
|
85 |
+
/**
|
86 |
+
* Add a transient available 2 HOURS
|
87 |
+
*/
|
88 |
+
set_transient( 'kiwi_' . $this->post_id . '_share_count_transient', $response, 2 * HOUR_IN_SECONDS );
|
89 |
+
}
|
90 |
+
|
91 |
+
return $response[ $this->platform ];
|
92 |
+
}
|
93 |
+
|
94 |
+
/**
|
95 |
+
* Returns a string, HTML code
|
96 |
+
*/
|
97 |
+
public function build_shared_count() {
|
98 |
+
if ( $this->get_shared_count() > 0 && Kiwi_Social_Share_Helper::get_setting_value( 'share_counts', '' ) === 'on' ) {
|
99 |
+
return '<span class="kiwi-share-count">' . $this->get_shared_count() . '</span>';
|
100 |
+
};
|
101 |
+
|
102 |
+
return '';
|
103 |
+
}
|
104 |
+
|
105 |
+
/**
|
106 |
+
* @return bool|mixed
|
107 |
+
*/
|
108 |
+
public function connect_to_api_url() {
|
109 |
+
if ( empty( $this->api_url ) ) {
|
110 |
+
return false;
|
111 |
+
}
|
112 |
+
|
113 |
+
$response = wp_remote_get( $this->api_url );
|
114 |
+
|
115 |
+
if ( is_wp_error( $response ) || 200 != wp_remote_retrieve_response_code( $response ) ) {
|
116 |
+
return false;
|
117 |
+
}
|
118 |
+
|
119 |
+
if ( empty( $response['body'] ) ) {
|
120 |
+
return false;
|
121 |
+
}
|
122 |
+
|
123 |
+
return $this->parse_api_response( $response );
|
124 |
+
}
|
125 |
+
|
126 |
+
/**
|
127 |
+
* @param $response
|
128 |
+
*
|
129 |
+
* @return mixed
|
130 |
+
*/
|
131 |
+
public function parse_api_response( $response ) {
|
132 |
+
return 0;
|
133 |
+
}
|
134 |
+
|
135 |
+
/**
|
136 |
+
* @param $id
|
137 |
+
*
|
138 |
+
* @return false|string
|
139 |
+
*/
|
140 |
+
public function get_current_page_url( $id ) {
|
141 |
+
if ( $id === 'fp' ) {
|
142 |
+
return get_home_url();
|
143 |
+
}
|
144 |
+
|
145 |
+
return get_the_permalink( $id );
|
146 |
+
}
|
147 |
}
|
includes/index.php
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
// Silence is golden
|
1 |
+
<?php
|
2 |
+
|
3 |
// Silence is golden
|
includes/interface/class-kiwi-social-share-interface-frontend.php
CHANGED
@@ -1,25 +1,25 @@
|
|
1 |
-
<?php
|
2 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
-
exit;
|
4 |
-
}
|
5 |
-
|
6 |
-
/**
|
7 |
-
* Interface Kiwi_Social_Share_Social (Bars)
|
8 |
-
*/
|
9 |
-
interface Kiwi_Social_Share_Interface_Frontend {
|
10 |
-
/**
|
11 |
-
* Returns a string containing HTML code of the bars
|
12 |
-
*
|
13 |
-
* @return mixed
|
14 |
-
*/
|
15 |
-
public function generate_frontend_bar();
|
16 |
-
|
17 |
-
/**
|
18 |
-
* Outputs the string on frontend
|
19 |
-
*
|
20 |
-
* @param $content
|
21 |
-
*
|
22 |
-
* @return mixed
|
23 |
-
*/
|
24 |
-
public function display_bar($content = '');
|
25 |
}
|
1 |
+
<?php
|
2 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
+
exit;
|
4 |
+
}
|
5 |
+
|
6 |
+
/**
|
7 |
+
* Interface Kiwi_Social_Share_Social (Bars)
|
8 |
+
*/
|
9 |
+
interface Kiwi_Social_Share_Interface_Frontend {
|
10 |
+
/**
|
11 |
+
* Returns a string containing HTML code of the bars
|
12 |
+
*
|
13 |
+
* @return mixed
|
14 |
+
*/
|
15 |
+
public function generate_frontend_bar();
|
16 |
+
|
17 |
+
/**
|
18 |
+
* Outputs the string on frontend
|
19 |
+
*
|
20 |
+
* @param $content
|
21 |
+
*
|
22 |
+
* @return mixed
|
23 |
+
*/
|
24 |
+
public function display_bar($content = '');
|
25 |
}
|
includes/interface/class-kiwi-social-share-interface-social.php
CHANGED
@@ -1,47 +1,47 @@
|
|
1 |
-
<?php
|
2 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
-
exit;
|
4 |
-
}
|
5 |
-
|
6 |
-
/**
|
7 |
-
* Interface Kiwi_Social_Share_Social (Buttons)
|
8 |
-
*/
|
9 |
-
interface Kiwi_Social_Share_Interface_Social {
|
10 |
-
/**
|
11 |
-
* Builds the Url of the button
|
12 |
-
*
|
13 |
-
* @return mixed
|
14 |
-
*/
|
15 |
-
public function build_url();
|
16 |
-
|
17 |
-
/**
|
18 |
-
* Returns a string containing HTML code of the button
|
19 |
-
*
|
20 |
-
* @return mixed
|
21 |
-
*/
|
22 |
-
public function generate_output();
|
23 |
-
|
24 |
-
/**
|
25 |
-
* Returns an int, number of shares the post has on a certain network
|
26 |
-
*
|
27 |
-
* @return mixed
|
28 |
-
*/
|
29 |
-
public function get_shared_count();
|
30 |
-
|
31 |
-
/**
|
32 |
-
* Returns HTML Code
|
33 |
-
*
|
34 |
-
* @return mixed
|
35 |
-
*/
|
36 |
-
public function build_shared_count();
|
37 |
-
|
38 |
-
/**
|
39 |
-
* @return mixed
|
40 |
-
*/
|
41 |
-
public function connect_to_api_url();
|
42 |
-
|
43 |
-
/**
|
44 |
-
* @return mixed
|
45 |
-
*/
|
46 |
-
public function parse_api_response( $response );
|
47 |
}
|
1 |
+
<?php
|
2 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
+
exit;
|
4 |
+
}
|
5 |
+
|
6 |
+
/**
|
7 |
+
* Interface Kiwi_Social_Share_Social (Buttons)
|
8 |
+
*/
|
9 |
+
interface Kiwi_Social_Share_Interface_Social {
|
10 |
+
/**
|
11 |
+
* Builds the Url of the button
|
12 |
+
*
|
13 |
+
* @return mixed
|
14 |
+
*/
|
15 |
+
public function build_url();
|
16 |
+
|
17 |
+
/**
|
18 |
+
* Returns a string containing HTML code of the button
|
19 |
+
*
|
20 |
+
* @return mixed
|
21 |
+
*/
|
22 |
+
public function generate_output();
|
23 |
+
|
24 |
+
/**
|
25 |
+
* Returns an int, number of shares the post has on a certain network
|
26 |
+
*
|
27 |
+
* @return mixed
|
28 |
+
*/
|
29 |
+
public function get_shared_count();
|
30 |
+
|
31 |
+
/**
|
32 |
+
* Returns HTML Code
|
33 |
+
*
|
34 |
+
* @return mixed
|
35 |
+
*/
|
36 |
+
public function build_shared_count();
|
37 |
+
|
38 |
+
/**
|
39 |
+
* @return mixed
|
40 |
+
*/
|
41 |
+
public function connect_to_api_url();
|
42 |
+
|
43 |
+
/**
|
44 |
+
* @return mixed
|
45 |
+
*/
|
46 |
+
public function parse_api_response( $response );
|
47 |
}
|
includes/lib/class-epsilon-plugin-request.php
ADDED
@@ -0,0 +1,225 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Epsilon_Plugin_Request {
|
4 |
+
|
5 |
+
/**
|
6 |
+
* Url for the request
|
7 |
+
*
|
8 |
+
* @var string
|
9 |
+
*/
|
10 |
+
private $url = 'https://tamewp.com/';
|
11 |
+
/**
|
12 |
+
* Api endpoint
|
13 |
+
*
|
14 |
+
* @var string
|
15 |
+
*/
|
16 |
+
private $endpoint = 'wp-json/epsilon/v1/add-tracking-data';
|
17 |
+
/**
|
18 |
+
* Private data
|
19 |
+
*
|
20 |
+
* @var array
|
21 |
+
*/
|
22 |
+
private $data = array(
|
23 |
+
'server' => array(),
|
24 |
+
'user' => array(),
|
25 |
+
'wordpress' => array(
|
26 |
+
'deactivated_plugin' => array(),
|
27 |
+
),
|
28 |
+
);
|
29 |
+
/**
|
30 |
+
* Plugin file
|
31 |
+
*
|
32 |
+
* @var string
|
33 |
+
*/
|
34 |
+
private $plugin_file = '';
|
35 |
+
|
36 |
+
private $allow_tracking = 0;
|
37 |
+
|
38 |
+
public $request_successful = false;
|
39 |
+
|
40 |
+
function __construct( $_plugin_file, $args ) {
|
41 |
+
|
42 |
+
// Set variables
|
43 |
+
$this->allow_tracking = $args['tracking'];
|
44 |
+
$this->plugin_file = $_plugin_file;
|
45 |
+
$this->data['unique'] = md5( home_url() . get_bloginfo( 'admin_email' ) );
|
46 |
+
$this->data['wordpress']['deactivated_plugin']['uninstall_reason'] = $args['reason'];
|
47 |
+
$this->data['wordpress']['deactivated_plugin']['uninstall_details'] = $args['details'];
|
48 |
+
|
49 |
+
// Start collecting data
|
50 |
+
$this->_collect_data();
|
51 |
+
$this->_generate_url();
|
52 |
+
$this->request_successful = $this->_send_request();
|
53 |
+
}
|
54 |
+
|
55 |
+
/**
|
56 |
+
* Collect all data for the request.
|
57 |
+
*
|
58 |
+
*/
|
59 |
+
private function _collect_data() {
|
60 |
+
|
61 |
+
$current_plugin = get_plugin_data( $this->plugin_file );
|
62 |
+
|
63 |
+
// Plugin data
|
64 |
+
$this->data['wordpress']['deactivated_plugin']['slug'] = $current_plugin['TextDomain'];
|
65 |
+
$this->data['wordpress']['deactivated_plugin']['name'] = $current_plugin['Name'];
|
66 |
+
$this->data['wordpress']['deactivated_plugin']['version'] = $current_plugin['Version'];
|
67 |
+
$this->data['wordpress']['deactivated_plugin']['author'] = $current_plugin['AuthorName'];
|
68 |
+
|
69 |
+
if ( $this->allow_tracking ) {
|
70 |
+
$this->_collect_wordpress_data();
|
71 |
+
$this->_collect_server_data();
|
72 |
+
$this->_collect_user_data();
|
73 |
+
}
|
74 |
+
|
75 |
+
}
|
76 |
+
|
77 |
+
/**
|
78 |
+
* Collect WordPress data.
|
79 |
+
*
|
80 |
+
*/
|
81 |
+
private function _collect_wordpress_data() {
|
82 |
+
$this->data['wordpress']['locale'] = ( get_bloginfo( 'version' ) >= 4.7 ) ? get_user_locale() : get_locale();
|
83 |
+
$this->data['wordpress']['wp_version'] = get_bloginfo( 'version' );
|
84 |
+
$this->data['wordpress']['multisite'] = is_multisite();
|
85 |
+
|
86 |
+
$this->data['wordpress']['themes'] = $this->get_themes();
|
87 |
+
$this->data['wordpress']['plugins'] = $this->get_plugins();
|
88 |
+
}
|
89 |
+
|
90 |
+
/**
|
91 |
+
* Collect server data.
|
92 |
+
*
|
93 |
+
*/
|
94 |
+
private function _collect_server_data() {
|
95 |
+
$this->data['server']['server'] = isset( $_SERVER['SERVER_SOFTWARE'] ) ? $_SERVER['SERVER_SOFTWARE'] : '';
|
96 |
+
$this->data['server']['php_version'] = phpversion();
|
97 |
+
$this->data['server']['url'] = home_url();
|
98 |
+
}
|
99 |
+
|
100 |
+
/**
|
101 |
+
* Collect user data.
|
102 |
+
*
|
103 |
+
*/
|
104 |
+
private function _collect_user_data() {
|
105 |
+
$admin = get_user_by( 'email', get_bloginfo( 'admin_email' ) );
|
106 |
+
if ( ! $admin ) {
|
107 |
+
$this->data['user']['email'] = '';
|
108 |
+
$this->data['user']['first_name'] = '';
|
109 |
+
$this->data['user']['last_name'] = '';
|
110 |
+
}else{
|
111 |
+
$this->data['user']['email'] = get_bloginfo( 'admin_email' );
|
112 |
+
$this->data['user']['first_name'] = $admin->first_name;
|
113 |
+
$this->data['user']['last_name'] = $admin->last_name;
|
114 |
+
}
|
115 |
+
}
|
116 |
+
|
117 |
+
/**
|
118 |
+
* Get current themes
|
119 |
+
*
|
120 |
+
* @return array
|
121 |
+
*/
|
122 |
+
private function get_themes() {
|
123 |
+
$theme = wp_get_theme();
|
124 |
+
|
125 |
+
return array(
|
126 |
+
'installed' => $this->_get_installed_themes(),
|
127 |
+
'active' => array(
|
128 |
+
'slug' => get_stylesheet(),
|
129 |
+
'name' => $theme->get( 'Name' ),
|
130 |
+
'version' => $theme->get( 'Version' ),
|
131 |
+
'author' => $theme->get( 'Author' ),
|
132 |
+
),
|
133 |
+
);
|
134 |
+
}
|
135 |
+
|
136 |
+
/**
|
137 |
+
* Get an array of installed themes
|
138 |
+
*/
|
139 |
+
private function _get_installed_themes() {
|
140 |
+
$installed = wp_get_themes();
|
141 |
+
$theme = get_stylesheet();
|
142 |
+
$arr = array();
|
143 |
+
|
144 |
+
foreach ( $installed as $slug => $info ) {
|
145 |
+
if ( $slug === $theme ) {
|
146 |
+
continue;
|
147 |
+
}
|
148 |
+
$arr[ $slug ] = array(
|
149 |
+
'slug' => $slug,
|
150 |
+
'name' => $info->get( 'Name' ),
|
151 |
+
'version' => $info->get( 'Version' ),
|
152 |
+
'author' => $info->get( 'Author' )
|
153 |
+
);
|
154 |
+
};
|
155 |
+
|
156 |
+
return $arr;
|
157 |
+
}
|
158 |
+
|
159 |
+
/**
|
160 |
+
* Get a list of installed plugins
|
161 |
+
*/
|
162 |
+
private function get_plugins() {
|
163 |
+
if ( ! function_exists( 'get_plugins' ) ) {
|
164 |
+
include ABSPATH . '/wp-admin/includes/plugin.php';
|
165 |
+
}
|
166 |
+
|
167 |
+
$plugins = get_plugins();
|
168 |
+
$option = get_option( 'active_plugins', array() );
|
169 |
+
$active = array();
|
170 |
+
$installed = array();
|
171 |
+
foreach ( $plugins as $id => $info ) {
|
172 |
+
if ( in_array( $id, $active ) ) {
|
173 |
+
continue;
|
174 |
+
}
|
175 |
+
|
176 |
+
$id = explode( '/', $id );
|
177 |
+
$id = ucwords( str_replace( '-', ' ', $id[0] ) );
|
178 |
+
|
179 |
+
$installed[] = $id;
|
180 |
+
}
|
181 |
+
|
182 |
+
foreach ( $option as $id ) {
|
183 |
+
$id = explode( '/', $id );
|
184 |
+
$id = ucwords( str_replace( '-', ' ', $id[0] ) );
|
185 |
+
|
186 |
+
$active[] = $id;
|
187 |
+
}
|
188 |
+
|
189 |
+
return array(
|
190 |
+
'installed' => $installed,
|
191 |
+
'active' => $active,
|
192 |
+
);
|
193 |
+
}
|
194 |
+
|
195 |
+
/**
|
196 |
+
* Generate the url
|
197 |
+
*/
|
198 |
+
protected function _generate_url() {
|
199 |
+
$this->url = $this->url . $this->endpoint;
|
200 |
+
}
|
201 |
+
|
202 |
+
/**
|
203 |
+
* Send dat to server.
|
204 |
+
*
|
205 |
+
*/
|
206 |
+
private function _send_request() {
|
207 |
+
|
208 |
+
$request = wp_remote_post( $this->url, array(
|
209 |
+
'method' => 'POST',
|
210 |
+
'timeout' => 20,
|
211 |
+
'redirection' => 5,
|
212 |
+
'httpversion' => '1.1',
|
213 |
+
'blocking' => true,
|
214 |
+
'body' => $this->data,
|
215 |
+
'user-agent' => 'MT/EPSILON-CUSTOMER-TRACKING/' . esc_url( home_url() )
|
216 |
+
) );
|
217 |
+
|
218 |
+
if ( is_wp_error( $request ) ) {
|
219 |
+
return false;
|
220 |
+
}
|
221 |
+
|
222 |
+
return true;
|
223 |
+
|
224 |
+
}
|
225 |
+
}
|
includes/lib/class-kiwi-social-share-click-to-tweet.php
CHANGED
@@ -1,128 +1,128 @@
|
|
1 |
-
<?php
|
2 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
-
exit;
|
4 |
-
}
|
5 |
-
|
6 |
-
/**
|
7 |
-
* Class Kiwi_Social_Share_Click_To_Tweet
|
8 |
-
*/
|
9 |
-
class Kiwi_Social_Share_Click_To_Tweet {
|
10 |
-
/**
|
11 |
-
* @var array
|
12 |
-
*/
|
13 |
-
public $post_types = array();
|
14 |
-
|
15 |
-
/**
|
16 |
-
* Kiwi_Social_Share_Click_To_Tweet constructor.
|
17 |
-
*/
|
18 |
-
public function __construct() {
|
19 |
-
$this->set_options();
|
20 |
-
|
21 |
-
if ( is_admin() ) {
|
22 |
-
add_filter( 'tiny_mce_version', array( $this, 'refresh_mce' ) );
|
23 |
-
add_action( 'init', array( $this, 'tinymce_button' ) );
|
24 |
-
}
|
25 |
-
add_shortcode( 'KiwiClickToTweet', array( $this, 'KiwiClickToTweetShortcode' ) );
|
26 |
-
}
|
27 |
-
|
28 |
-
/**
|
29 |
-
* Set Kiwi Backend Options
|
30 |
-
*/
|
31 |
-
public function set_options() {
|
32 |
-
if ( Kiwi_Social_Share_Helper::get_setting_value( 'click_to_tweet_posttypes', 'all' ) === 'all' ) {
|
33 |
-
$this->post_types = 'all';
|
34 |
-
} else {
|
35 |
-
$post_types = Kiwi_Social_Share_Helper::get_setting_value( 'click_to_tweet_posttypes_list', array() );
|
36 |
-
$this->post_types = array_merge( $this->post_types, $post_types );
|
37 |
-
};
|
38 |
-
}
|
39 |
-
|
40 |
-
/**
|
41 |
-
*
|
42 |
-
*/
|
43 |
-
public function tinymce_button() {
|
44 |
-
if ( ! current_user_can( 'edit_posts' ) && ! current_user_can( 'edit_pages' ) ) {
|
45 |
-
return;
|
46 |
-
}
|
47 |
-
|
48 |
-
if ( get_user_option( 'rich_editing' ) == 'true' ) {
|
49 |
-
|
50 |
-
$kiwi = Kiwi_Social_Share::instance();
|
51 |
-
wp_enqueue_style( $kiwi->_token . '-frontend' );
|
52 |
-
wp_enqueue_script( $kiwi->_token . '-frontend' );
|
53 |
-
wp_enqueue_style( 'icomoon', esc_url( $kiwi->assets_url ) . 'vendors/icomoon/style.css', array(), $kiwi->_version );
|
54 |
-
|
55 |
-
add_filter( 'mce_external_plugins', array( $this, 'tinymce_register_plugin' ) );
|
56 |
-
add_filter( 'mce_buttons', array( $this, 'tinymce_register_button' ) );
|
57 |
-
}
|
58 |
-
}
|
59 |
-
|
60 |
-
/**
|
61 |
-
* @param $buttons
|
62 |
-
*
|
63 |
-
* @return mixed
|
64 |
-
*/
|
65 |
-
public function tinymce_register_button( $buttons ) {
|
66 |
-
array_push( $buttons, '|', 'KiwiClickToTweet' );
|
67 |
-
|
68 |
-
return $buttons;
|
69 |
-
}
|
70 |
-
|
71 |
-
/**
|
72 |
-
* @param $plugin_array
|
73 |
-
*
|
74 |
-
* @return mixed
|
75 |
-
*/
|
76 |
-
public function tinymce_register_plugin( $plugin_array ) {
|
77 |
-
$kiwi = Kiwi_Social_Share::instance();
|
78 |
-
|
79 |
-
$plugin_array['KiwiClickToTweet'] = esc_url( $kiwi->assets_url ) . 'js/KiwiClickToTweet' . $kiwi->script_suffix . '.js';
|
80 |
-
|
81 |
-
return $plugin_array;
|
82 |
-
}
|
83 |
-
|
84 |
-
/**
|
85 |
-
* @param $ver
|
86 |
-
*
|
87 |
-
* @return int
|
88 |
-
*/
|
89 |
-
public function refresh_mce( $ver ) {
|
90 |
-
$ver += 3;
|
91 |
-
|
92 |
-
return $ver;
|
93 |
-
}
|
94 |
-
|
95 |
-
/**
|
96 |
-
* The function to build the click to tweets
|
97 |
-
*
|
98 |
-
* @param array $atts An array of attributes
|
99 |
-
*
|
100 |
-
* @return string The html of a click to tweet
|
101 |
-
*/
|
102 |
-
public function KiwiClickToTweetShortcode( $atts ) {
|
103 |
-
|
104 |
-
$twitter_button = new Kiwi_Social_Share_Social_Button_Twitter();
|
105 |
-
$atts['tweet'] = rtrim( $atts['tweet'] );
|
106 |
-
$additional = '';
|
107 |
-
$tracking_html = '';
|
108 |
-
|
109 |
-
$twitter_handle = Kiwi_Social_Share_Helper::get_setting_value( 'twitter_username', '', 'kiwi_social_identities' );
|
110 |
-
$tracking = Kiwi_Social_Share_Helper::get_setting_value( 'ga_tracking', '', 'kiwi_social_identities' );
|
111 |
-
if ( ! empty( $twitter_handle ) ) {
|
112 |
-
$additional = '&via=' . str_replace( '@', '', $twitter_handle );
|
113 |
-
}
|
114 |
-
|
115 |
-
if ( ! empty( $tracking ) ) {
|
116 |
-
$tracking_html = ' data-tracking="true" ';
|
117 |
-
}
|
118 |
-
|
119 |
-
$url = $twitter_button->get_current_page_url( get_the_ID() );
|
120 |
-
|
121 |
-
$content = '<blockquote class="kiwi-click-to-tweet-content-area"><a data-class="popup" data-network="twitter" class="kiwi-click-to-tweet-url" href="//twitter.com/intent/tweet?url=' . esc_url( $url ) . '&text=' . urlencode( html_entity_decode( $atts['tweet'], ENT_COMPAT, 'UTF-8' ) ) . $additional . '" rel="nofollow" target="_blank" ' . $tracking_html . '>';
|
122 |
-
$content .= '<span class="kiwi-click-to-tweet"><span class="kiwi-click-to-tweet-text">' . $atts['quote'] . '</span><span class="kiwi-click-to-tweet-button">' . __( 'Click To Tweet', 'kiwi-social-share' ) . '<i class="kicon-twitter"></i></span></span>';
|
123 |
-
$content .= '</a>';
|
124 |
-
$content .= '</blockquote>';
|
125 |
-
|
126 |
-
return $content;
|
127 |
-
}
|
128 |
}
|
1 |
+
<?php
|
2 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
+
exit;
|
4 |
+
}
|
5 |
+
|
6 |
+
/**
|
7 |
+
* Class Kiwi_Social_Share_Click_To_Tweet
|
8 |
+
*/
|
9 |
+
class Kiwi_Social_Share_Click_To_Tweet {
|
10 |
+
/**
|
11 |
+
* @var array
|
12 |
+
*/
|
13 |
+
public $post_types = array();
|
14 |
+
|
15 |
+
/**
|
16 |
+
* Kiwi_Social_Share_Click_To_Tweet constructor.
|
17 |
+
*/
|
18 |
+
public function __construct() {
|
19 |
+
$this->set_options();
|
20 |
+
|
21 |
+
if ( is_admin() ) {
|
22 |
+
add_filter( 'tiny_mce_version', array( $this, 'refresh_mce' ) );
|
23 |
+
add_action( 'init', array( $this, 'tinymce_button' ) );
|
24 |
+
}
|
25 |
+
add_shortcode( 'KiwiClickToTweet', array( $this, 'KiwiClickToTweetShortcode' ) );
|
26 |
+
}
|
27 |
+
|
28 |
+
/**
|
29 |
+
* Set Kiwi Backend Options
|
30 |
+
*/
|
31 |
+
public function set_options() {
|
32 |
+
if ( Kiwi_Social_Share_Helper::get_setting_value( 'click_to_tweet_posttypes', 'all' ) === 'all' ) {
|
33 |
+
$this->post_types = 'all';
|
34 |
+
} else {
|
35 |
+
$post_types = Kiwi_Social_Share_Helper::get_setting_value( 'click_to_tweet_posttypes_list', array() );
|
36 |
+
$this->post_types = array_merge( $this->post_types, $post_types );
|
37 |
+
};
|
38 |
+
}
|
39 |
+
|
40 |
+
/**
|
41 |
+
*
|
42 |
+
*/
|
43 |
+
public function tinymce_button() {
|
44 |
+
if ( ! current_user_can( 'edit_posts' ) && ! current_user_can( 'edit_pages' ) ) {
|
45 |
+
return;
|
46 |
+
}
|
47 |
+
|
48 |
+
if ( get_user_option( 'rich_editing' ) == 'true' ) {
|
49 |
+
|
50 |
+
$kiwi = Kiwi_Social_Share::instance();
|
51 |
+
wp_enqueue_style( $kiwi->_token . '-frontend' );
|
52 |
+
wp_enqueue_script( $kiwi->_token . '-frontend' );
|
53 |
+
wp_enqueue_style( 'icomoon', esc_url( $kiwi->assets_url ) . 'vendors/icomoon/style.css', array(), $kiwi->_version );
|
54 |
+
|
55 |
+
add_filter( 'mce_external_plugins', array( $this, 'tinymce_register_plugin' ) );
|
56 |
+
add_filter( 'mce_buttons', array( $this, 'tinymce_register_button' ) );
|
57 |
+
}
|
58 |
+
}
|
59 |
+
|
60 |
+
/**
|
61 |
+
* @param $buttons
|
62 |
+
*
|
63 |
+
* @return mixed
|
64 |
+
*/
|
65 |
+
public function tinymce_register_button( $buttons ) {
|
66 |
+
array_push( $buttons, '|', 'KiwiClickToTweet' );
|
67 |
+
|
68 |
+
return $buttons;
|
69 |
+
}
|
70 |
+
|
71 |
+
/**
|
72 |
+
* @param $plugin_array
|
73 |
+
*
|
74 |
+
* @return mixed
|
75 |
+
*/
|
76 |
+
public function tinymce_register_plugin( $plugin_array ) {
|
77 |
+
$kiwi = Kiwi_Social_Share::instance();
|
78 |
+
|
79 |
+
$plugin_array['KiwiClickToTweet'] = esc_url( $kiwi->assets_url ) . 'js/KiwiClickToTweet' . $kiwi->script_suffix . '.js';
|
80 |
+
|
81 |
+
return $plugin_array;
|
82 |
+
}
|
83 |
+
|
84 |
+
/**
|
85 |
+
* @param $ver
|
86 |
+
*
|
87 |
+
* @return int
|
88 |
+
*/
|
89 |
+
public function refresh_mce( $ver ) {
|
90 |
+
$ver += 3;
|
91 |
+
|
92 |
+
return $ver;
|
93 |
+
}
|
94 |
+
|
95 |
+
/**
|
96 |
+
* The function to build the click to tweets
|
97 |
+
*
|
98 |
+
* @param array $atts An array of attributes
|
99 |
+
*
|
100 |
+
* @return string The html of a click to tweet
|
101 |
+
*/
|
102 |
+
public function KiwiClickToTweetShortcode( $atts ) {
|
103 |
+
|
104 |
+
$twitter_button = new Kiwi_Social_Share_Social_Button_Twitter();
|
105 |
+
$atts['tweet'] = rtrim( $atts['tweet'] );
|
106 |
+
$additional = '';
|
107 |
+
$tracking_html = '';
|
108 |
+
|
109 |
+
$twitter_handle = Kiwi_Social_Share_Helper::get_setting_value( 'twitter_username', '', 'kiwi_social_identities' );
|
110 |
+
$tracking = Kiwi_Social_Share_Helper::get_setting_value( 'ga_tracking', '', 'kiwi_social_identities' );
|
111 |
+
if ( ! empty( $twitter_handle ) ) {
|
112 |
+
$additional = '&via=' . str_replace( '@', '', $twitter_handle );
|
113 |
+
}
|
114 |
+
|
115 |
+
if ( ! empty( $tracking ) ) {
|
116 |
+
$tracking_html = ' data-tracking="true" ';
|
117 |
+
}
|
118 |
+
|
119 |
+
$url = $twitter_button->get_current_page_url( get_the_ID() );
|
120 |
+
|
121 |
+
$content = '<blockquote class="kiwi-click-to-tweet-content-area"><a data-class="popup" data-network="twitter" class="kiwi-click-to-tweet-url" href="//twitter.com/intent/tweet?url=' . esc_url( $url ) . '&text=' . urlencode( html_entity_decode( $atts['tweet'], ENT_COMPAT, 'UTF-8' ) ) . $additional . '" rel="nofollow" target="_blank" ' . $tracking_html . '>';
|
122 |
+
$content .= '<span class="kiwi-click-to-tweet"><span class="kiwi-click-to-tweet-text">' . $atts['quote'] . '</span><span class="kiwi-click-to-tweet-button">' . __( 'Click To Tweet', 'kiwi-social-share' ) . '<i class="kicon-twitter"></i></span></span>';
|
123 |
+
$content .= '</a>';
|
124 |
+
$content .= '</blockquote>';
|
125 |
+
|
126 |
+
return $content;
|
127 |
+
}
|
128 |
}
|
includes/lib/class-kiwi-social-share-feedback.php
ADDED
@@ -0,0 +1,252 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Kiwi_Social_Share_Feedback {
|
4 |
+
|
5 |
+
private $plugin_file = '';
|
6 |
+
private $plugin_name = '';
|
7 |
+
|
8 |
+
function __construct( $_plugin_file ) {
|
9 |
+
|
10 |
+
$this->plugin_file = $_plugin_file;
|
11 |
+
$this->plugin_name = basename( $this->plugin_file, '.php' );
|
12 |
+
|
13 |
+
// Deactivation
|
14 |
+
add_filter( 'plugin_action_links_' . plugin_basename( $this->plugin_file ), array( $this, 'filter_action_links' ) );
|
15 |
+
add_action( 'admin_footer-plugins.php', array( $this, 'goodbye_ajax' ) );
|
16 |
+
add_action( 'wp_ajax_epsilon_deactivate_plugin', array( $this, 'epsilon_deactivate_plugin_callback' ) );
|
17 |
+
|
18 |
+
}
|
19 |
+
|
20 |
+
/**
|
21 |
+
* Filter the deactivation link to allow us to present a form when the user deactivates the plugin
|
22 |
+
* @since 1.0.0
|
23 |
+
*/
|
24 |
+
public function filter_action_links( $links ) {
|
25 |
+
|
26 |
+
if( isset( $links['deactivate'] ) ) {
|
27 |
+
$deactivation_link = $links['deactivate'];
|
28 |
+
// Insert an onClick action to allow form before deactivating
|
29 |
+
$deactivation_link = str_replace( '<a ', '<div class="epsilon-deactivate-form-wrapper"><span class="epsilon-deactivate-form" id="epsilon-deactivate-form-' . esc_attr( $this->plugin_name ) . '"></span></div><a onclick="javascript:event.preventDefault();" id="epsilon-deactivate-link-' . esc_attr( $this->plugin_name ) . '" ', $deactivation_link );
|
30 |
+
$links['deactivate'] = $deactivation_link;
|
31 |
+
}
|
32 |
+
return $links;
|
33 |
+
}
|
34 |
+
|
35 |
+
/**
|
36 |
+
* Form text strings
|
37 |
+
* These can be filtered
|
38 |
+
* @since 1.0.0
|
39 |
+
*/
|
40 |
+
public function goodbye_ajax() {
|
41 |
+
// Get our strings for the form
|
42 |
+
$form = $this->get_form_info();
|
43 |
+
|
44 |
+
// Build the HTML to go in the form
|
45 |
+
$html = '<div class="epsilon-deactivate-form-head"><strong>' . esc_html( $form['heading'] ) . '</strong></div>';
|
46 |
+
$html .= '<div class="epsilon-deactivate-form-body"><p>' . esc_html( $form['body'] ) . '</p>';
|
47 |
+
if( is_array( $form['options'] ) ) {
|
48 |
+
$html .= '<div class="epsilon-deactivate-options"><p>';
|
49 |
+
foreach( $form['options'] as $key => $option ) {
|
50 |
+
if ( 'features' == $key ) {
|
51 |
+
$html .= '<input type="radio" name="epsilon-deactivate-reason" checked="checked" id="' . esc_attr( $key ) . '" value="' . esc_attr( $key ) . '"> <label for="' . esc_attr( $key ) . '">' . esc_attr( $option ) . '</label><br>';
|
52 |
+
}else{
|
53 |
+
$html .= '<input type="radio" name="epsilon-deactivate-reason" id="' . esc_attr( $key ) . '" value="' . esc_attr( $key ) . '"> <label for="' . esc_attr( $key ) . '">' . esc_attr( $option ) . '</label><br>';
|
54 |
+
}
|
55 |
+
}
|
56 |
+
$html .= '</p><label id="epsilon-deactivate-details-label" for="epsilon-deactivate-reasons"><strong>' . esc_html( $form['details'] ) .'</strong></label><textarea name="epsilon-deactivate-details" id="epsilon-deactivate-details" rows="2" style="width:100%"></textarea>';
|
57 |
+
$html .= '<input type="checkbox" name="epsilon-deactivate-tracking" checked="" id="allow-tracking" value="yes"> <label for="allow-tracking">' . esc_html__( 'Allow us to get more information in order to improve our plugin', 'kiwi-social-share') . '</label><br>';
|
58 |
+
$html .= '</div><!-- .epsilon-deactivate-options -->';
|
59 |
+
}
|
60 |
+
$html .= '</div><!-- .epsilon-deactivate-form-body -->';
|
61 |
+
$html .= '<p class="deactivating-spinner"><span class="spinner"></span> ' . __( 'Submitting form', 'kiwi-social-share') . '</p>';
|
62 |
+
$html .= '<div class="epsilon-deactivate-form-footer"><p><a id="epsilon-deactivate-plugin" href="#">' . __( 'Just Deactivate', 'kiwi-social-share') . '</a><a id="epsilon-deactivate-submit-form" class="button button-primary" href="#">' . __( 'Submit and Deactivate', 'kiwi-social-share') . '</a></p></div>'
|
63 |
+
?>
|
64 |
+
<div class="epsilon-deactivate-form-bg" data-plugin="<?php echo esc_attr( $this->plugin_name ); ?>"></div>
|
65 |
+
<style type="text/css">
|
66 |
+
.epsilon-deactivate-form-active .epsilon-deactivate-form-bg {
|
67 |
+
background: rgba( 0, 0, 0, .5 );
|
68 |
+
position: fixed;
|
69 |
+
top: 0;
|
70 |
+
left: 0;
|
71 |
+
width: 100%;
|
72 |
+
height: 100%;
|
73 |
+
}
|
74 |
+
.epsilon-deactivate-form-wrapper {
|
75 |
+
position: relative;
|
76 |
+
z-index: 999;
|
77 |
+
display: none;
|
78 |
+
}
|
79 |
+
.epsilon-deactivate-form-active .epsilon-deactivate-form-wrapper {
|
80 |
+
display: block;
|
81 |
+
}
|
82 |
+
.epsilon-deactivate-form {
|
83 |
+
display: none;
|
84 |
+
}
|
85 |
+
.epsilon-deactivate-form-active .epsilon-deactivate-form {
|
86 |
+
position: absolute;
|
87 |
+
bottom: 30px;
|
88 |
+
left: 0;
|
89 |
+
max-width: 400px;
|
90 |
+
background: #fff;
|
91 |
+
white-space: normal;
|
92 |
+
}
|
93 |
+
.epsilon-deactivate-form-head {
|
94 |
+
background: #51AD31;
|
95 |
+
color: #fff;
|
96 |
+
padding: 8px 18px;
|
97 |
+
}
|
98 |
+
.epsilon-deactivate-form-body {
|
99 |
+
padding: 8px 18px;
|
100 |
+
color: #444;
|
101 |
+
}
|
102 |
+
.deactivating-spinner {
|
103 |
+
display: none;
|
104 |
+
}
|
105 |
+
.deactivating-spinner .spinner {
|
106 |
+
float: none;
|
107 |
+
margin: 4px 4px 0 18px;
|
108 |
+
vertical-align: bottom;
|
109 |
+
visibility: visible;
|
110 |
+
}
|
111 |
+
.epsilon-deactivate-form-footer {
|
112 |
+
padding: 8px 18px;
|
113 |
+
}
|
114 |
+
.epsilon-deactivate-form-footer p {
|
115 |
+
display: flex;
|
116 |
+
align-items: center;
|
117 |
+
justify-content: space-between;
|
118 |
+
}
|
119 |
+
.epsilon-deactivate-form.process-response .epsilon-deactivate-form-body,
|
120 |
+
.epsilon-deactivate-form.process-response .epsilon-deactivate-form-footer {
|
121 |
+
position: relative;
|
122 |
+
}
|
123 |
+
.epsilon-deactivate-form.process-response .epsilon-deactivate-form-body:after,
|
124 |
+
.epsilon-deactivate-form.process-response .epsilon-deactivate-form-footer:after {
|
125 |
+
content: "";
|
126 |
+
display: block;
|
127 |
+
position: absolute;
|
128 |
+
top: 0;
|
129 |
+
left: 0;
|
130 |
+
width: 100%;
|
131 |
+
height: 100%;
|
132 |
+
background-color: rgba( 255, 255, 255, .5 );
|
133 |
+
}
|
134 |
+
</style>
|
135 |
+
<script>
|
136 |
+
jQuery(document).ready(function($){
|
137 |
+
var deactivateURL = $("#epsilon-deactivate-link-<?php echo esc_attr( $this->plugin_name ); ?>"),
|
138 |
+
formContainer = $('#epsilon-deactivate-form-<?php echo esc_attr( $this->plugin_name ); ?>'),
|
139 |
+
detailsStrings = {
|
140 |
+
'setup' : '<?php echo __( 'What was the dificult part ?', 'kiwi-social-share') ?>',
|
141 |
+
'documentation' : '<?php echo __( 'What can we describe more ?', 'kiwi-social-share') ?>',
|
142 |
+
'features' : '<?php echo __( 'How could we improve ?', 'kiwi-social-share') ?>',
|
143 |
+
'better-plugin' : '<?php echo __( 'Can you mention it ?', 'kiwi-social-share') ?>',
|
144 |
+
'incompatibility' : '<?php echo __( 'With what plugin or theme is incompatible ?', 'kiwi-social-share') ?>',
|
145 |
+
};
|
146 |
+
|
147 |
+
$( deactivateURL ).on("click",function(){
|
148 |
+
// We'll send the user to this deactivation link when they've completed or dismissed the form
|
149 |
+
var url = deactivateURL.attr( 'href' );
|
150 |
+
$('body').toggleClass('epsilon-deactivate-form-active');
|
151 |
+
formContainer.fadeIn();
|
152 |
+
formContainer.html( '<?php echo $html; ?>');
|
153 |
+
|
154 |
+
formContainer.on( 'change', 'input[name="epsilon-deactivate-reason"]', function(){
|
155 |
+
var detailsLabel = formContainer.find( '#epsilon-deactivate-details-label strong' );
|
156 |
+
var value = formContainer.find( 'input[name="epsilon-deactivate-reason"]:checked' ).val();
|
157 |
+
detailsLabel.text( detailsStrings[ value ] );
|
158 |
+
});
|
159 |
+
|
160 |
+
formContainer.on('click', '#epsilon-deactivate-submit-form', function(e){
|
161 |
+
var data = {
|
162 |
+
'action': 'epsilon_deactivate_plugin',
|
163 |
+
'security': "<?php echo wp_create_nonce ( 'epsilon_deactivate_plugin' ); ?>",
|
164 |
+
'dataType': "json"
|
165 |
+
};
|
166 |
+
e.preventDefault();
|
167 |
+
// As soon as we click, the body of the form should disappear
|
168 |
+
formContainer.addClass( 'process-response' );
|
169 |
+
// Fade in spinner
|
170 |
+
formContainer.find(".deactivating-spinner").fadeIn();
|
171 |
+
|
172 |
+
data['reason'] = formContainer.find( 'input[name="epsilon-deactivate-reason"]:checked' ).val();
|
173 |
+
data['details'] = formContainer.find('#epsilon-deactivate-details').val();
|
174 |
+
data['tracking'] = formContainer.find( '#allow-tracking:checked' ).length;
|
175 |
+
|
176 |
+
$.post(
|
177 |
+
ajaxurl,
|
178 |
+
data,
|
179 |
+
function(response){
|
180 |
+
// Redirect to original deactivation URL
|
181 |
+
window.location.href = url;
|
182 |
+
}
|
183 |
+
);
|
184 |
+
});
|
185 |
+
|
186 |
+
formContainer.on('click', '#epsilon-deactivate-plugin', function(e){
|
187 |
+
e.preventDefault();
|
188 |
+
window.location.href = url;
|
189 |
+
});
|
190 |
+
|
191 |
+
// If we click outside the form, the form will close
|
192 |
+
$('.epsilon-deactivate-form-bg').on('click',function(){
|
193 |
+
formContainer.fadeOut();
|
194 |
+
$('body').removeClass('epsilon-deactivate-form-active');
|
195 |
+
});
|
196 |
+
});
|
197 |
+
});
|
198 |
+
</script>
|
199 |
+
<?php }
|
200 |
+
|
201 |
+
/*
|
202 |
+
* Form text strings
|
203 |
+
* These are non-filterable and used as fallback in case filtered strings aren't set correctly
|
204 |
+
* @since 1.0.0
|
205 |
+
*/
|
206 |
+
public function get_form_info() {
|
207 |
+
$form = array();
|
208 |
+
$form['heading'] = __( 'Sorry to see you go', 'kiwi-social-share');
|
209 |
+
$form['body'] = __( 'Before you deactivate the plugin, would you quickly give us your reason for doing so?', 'kiwi-social-share');
|
210 |
+
$form['options'] = array(
|
211 |
+
'setup' => __( 'Set up is too difficult', 'kiwi-social-share'),
|
212 |
+
'documentation' => __( 'Lack of documentation', 'kiwi-social-share'),
|
213 |
+
'features' => __( 'Not the features I wanted', 'kiwi-social-share'),
|
214 |
+
'better-plugin' => __( 'Found a better plugin', 'kiwi-social-share'),
|
215 |
+
'incompatibility' => __( 'Incompatible with theme or plugin', 'kiwi-social-share'),
|
216 |
+
);
|
217 |
+
$form['details'] = __( 'How could we improve ?', 'kiwi-social-share');
|
218 |
+
return $form;
|
219 |
+
}
|
220 |
+
|
221 |
+
public function epsilon_deactivate_plugin_callback() {
|
222 |
+
|
223 |
+
check_ajax_referer( 'epsilon_deactivate_plugin', 'security' );
|
224 |
+
|
225 |
+
if ( isset($_POST['reason']) && isset($_POST['details']) && isset($_POST['tracking']) ) {
|
226 |
+
require_once 'class-epsilon-plugin-request.php';
|
227 |
+
$args = array(
|
228 |
+
'reason' => $_POST['reason'],
|
229 |
+
'details' => $_POST['details'],
|
230 |
+
'tracking' => $_POST['tracking'],
|
231 |
+
);
|
232 |
+
$request = new Epsilon_Plugin_Request( $this->plugin_file, $args );
|
233 |
+
if ( $request->request_successful ) {
|
234 |
+
echo json_encode( array(
|
235 |
+
'status' => 'ok',
|
236 |
+
) );
|
237 |
+
}else{
|
238 |
+
echo json_encode( array(
|
239 |
+
'status' => 'nok',
|
240 |
+
) );
|
241 |
+
}
|
242 |
+
}else{
|
243 |
+
echo json_encode( array(
|
244 |
+
'status' => 'ok',
|
245 |
+
) );
|
246 |
+
}
|
247 |
+
|
248 |
+
die();
|
249 |
+
|
250 |
+
}
|
251 |
+
|
252 |
+
}
|
includes/lib/class-kiwi-social-share-frontend.php
CHANGED
@@ -1,163 +1,163 @@
|
|
1 |
-
<?php
|
2 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
-
exit;
|
4 |
-
}
|
5 |
-
|
6 |
-
class Kiwi_Social_Share_Frontend {
|
7 |
-
/**
|
8 |
-
* The single instance of Kiwi_Social_Share.
|
9 |
-
*
|
10 |
-
* @var object
|
11 |
-
* @access private
|
12 |
-
* @since 1.0.0
|
13 |
-
*/
|
14 |
-
private static $_instance = NULL;
|
15 |
-
|
16 |
-
/**
|
17 |
-
* Kiwi_Social_Share_Frontend constructor.
|
18 |
-
*
|
19 |
-
* @param string $file
|
20 |
-
* @param string $version
|
21 |
-
*/
|
22 |
-
public function __construct( $file = '', $version = '1.0.0' ) {
|
23 |
-
// Add the custom css styles
|
24 |
-
// Load the article bar
|
25 |
-
new Kiwi_Social_Share_View_Article_Bar();
|
26 |
-
// Load the floating bar
|
27 |
-
new Kiwi_Social_Share_View_Floating_Bar();
|
28 |
-
// Load Highlight Share
|
29 |
-
if ( Kiwi_Social_Share_Helper::get_setting_value( 'highlight_to_tweet', '' ) === 'on' ) {
|
30 |
-
new Kiwi_Social_Share_Highlight_Share();
|
31 |
-
}
|
32 |
-
// Add the Open Graph Meta
|
33 |
-
add_action( 'wp_head', array( $this, 'add_open_graph_meta' ) );
|
34 |
-
}
|
35 |
-
|
36 |
-
/**
|
37 |
-
* Adds the open graph meta
|
38 |
-
*/
|
39 |
-
public function add_open_graph_meta() {
|
40 |
-
// Create/check default values
|
41 |
-
$info = array(
|
42 |
-
'postID' => absint( get_the_ID() ),
|
43 |
-
'title' => esc_html( get_the_title() ),
|
44 |
-
'imageURL' => get_post_thumbnail_id( absint( get_the_ID() ) ),
|
45 |
-
'description' => esc_html( Kiwi_Social_Share_Helper::get_excerpt_by_id( absint( get_the_ID() ) ) ),
|
46 |
-
'fb_app_id' => esc_attr( Kiwi_Social_Share_Helper::get_setting_value( 'facebook_page_id', '', 'kiwi_social_identities' ) ),
|
47 |
-
'fp_url' => esc_attr( Kiwi_Social_Share_Helper::get_setting_value( 'facebook_page_url', '', 'kiwi_social_identities' ) ),
|
48 |
-
'user_twitter_handle' => esc_attr( Kiwi_Social_Share_Helper::get_setting_value( 'twitter_username', '', 'kiwi_social_identities' ) )
|
49 |
-
);
|
50 |
-
|
51 |
-
if ( ! empty( $info['user_twitter_handle'] ) ) {
|
52 |
-
$info['user_twitter_handle'] = str_replace( '@', '', $info['user_twitter_handle'] );
|
53 |
-
}
|
54 |
-
|
55 |
-
$metabox = array(
|
56 |
-
'title' => get_post_meta( get_the_ID(), 'kiwi_social-media-title', true ),
|
57 |
-
'description' => get_post_meta( get_the_ID(), 'kiwi_social-media-description', true ),
|
58 |
-
'imageURL' => get_post_meta( get_the_ID(), 'kiwi_social-media-image', true ),
|
59 |
-
'twitter_description' => get_post_meta( get_the_ID(), 'kiwi_social-media-custom-tweet', true ),
|
60 |
-
);
|
61 |
-
|
62 |
-
$info = wp_parse_args( $metabox, $info );
|
63 |
-
|
64 |
-
$twitter_button = new Kiwi_Social_Share_Social_Button_Twitter();
|
65 |
-
$url = $twitter_button->get_current_page_url( get_the_ID() );
|
66 |
-
|
67 |
-
$info['header_output'] = '';
|
68 |
-
// We only modify the Open Graph tags on single blog post pages
|
69 |
-
if ( is_singular() ) {
|
70 |
-
if ( ( isset( $info['title'] ) && $info['title'] ) || ( isset( $info['description'] ) && $info['description'] ) || ( isset( $info['imageURL'] ) && $info['imageURL'] ) ) {
|
71 |
-
|
72 |
-
// Check if Yoast Exists so we can coordinate output with their plugin accordingly
|
73 |
-
if ( ! defined( 'WPSEO_VERSION' ) ) {
|
74 |
-
// Add twitter stuff
|
75 |
-
$info['header_output'] .= PHP_EOL . '<!-- Twitter OG tags by Kiwi Social Sharing Plugin -->';
|
76 |
-
|
77 |
-
$info['header_output'] .= PHP_EOL . '<meta name="twitter:card" content="summary" />';
|
78 |
-
$info['header_output'] .= PHP_EOL . '<meta name="twitter:title" content="' . trim( $info['title'] ) . '" />';
|
79 |
-
$info['header_output'] .= PHP_EOL . '<meta name="twitter:url" content="' . esc_url( $url ) . '" />';
|
80 |
-
|
81 |
-
if ( ! empty( $info['user_twitter_handle'] ) ) {
|
82 |
-
$info['header_output'] .= PHP_EOL . '<meta name="twitter:site" content="' . trim( $info['user_twitter_handle'] ) . '" />';
|
83 |
-
$info['header_output'] .= PHP_EOL . '<meta name="twitter:creator" content="' . trim( $info['user_twitter_handle'] ) . '" />';
|
84 |
-
}
|
85 |
-
|
86 |
-
if ( ! empty( $info['twitter_description'] ) ) {
|
87 |
-
$info['header_output'] .= PHP_EOL . '<meta name="twitter:description" content="' . esc_attr( $info['twitter_description'] ) . '" />';
|
88 |
-
}
|
89 |
-
|
90 |
-
if ( ! empty( $info['imageURL'] ) ) {
|
91 |
-
$info['header_output'] .= PHP_EOL . '<meta name="twitter:image" content="' . esc_attr( $info['imageURL'] ) . '" />';
|
92 |
-
}
|
93 |
-
|
94 |
-
$info['header_output'] .= PHP_EOL . '<!-- / Twitter OG tags by Kiwi Social Sharing Plugin -->';
|
95 |
-
|
96 |
-
// Add all our Open Graph Tags to the Return Header Output
|
97 |
-
$info['header_output'] .= PHP_EOL . '<!-- Meta OG tags by Kiwi Social Sharing Plugin -->';
|
98 |
-
$info['header_output'] .= PHP_EOL . '<meta property="og:type" content="article" /> ';
|
99 |
-
|
100 |
-
// Open Graph Title: Create an open graph title meta tag
|
101 |
-
if ( $info['title'] ) {
|
102 |
-
// If nothing else is defined, let's use the post title
|
103 |
-
$info['header_output'] .= PHP_EOL . '<meta property="og:title" content="' . Kiwi_Social_Share_Helper::convert_smart_quotes( htmlspecialchars_decode( get_the_title() ) ) . '" />';
|
104 |
-
}
|
105 |
-
|
106 |
-
if ( $info['description'] ) {
|
107 |
-
// If nothing else is defined, let's use the post excerpt
|
108 |
-
$info['header_output'] .= PHP_EOL . '<meta property="og:description" content="' . Kiwi_Social_Share_Helper::convert_smart_quotes( $info['description'] ) . '" />';
|
109 |
-
}
|
110 |
-
|
111 |
-
if ( has_post_thumbnail( $info['postID'] ) ) {
|
112 |
-
// If nothing else is defined, let's use the post Thumbnail as long as we have the URL cached
|
113 |
-
$og_image = wp_get_attachment_image_src( get_post_thumbnail_id( $info['postID'] ), 'full' );
|
114 |
-
if ( $og_image ) {
|
115 |
-
$info['header_output'] .= PHP_EOL . '<meta property="og:image" content="' . esc_url( $og_image[0] ) . '" />';
|
116 |
-
}
|
117 |
-
}
|
118 |
-
|
119 |
-
$info['header_output'] .= PHP_EOL . '<meta property="og:url" content="' . esc_url( $url ) . '" />';
|
120 |
-
$info['header_output'] .= PHP_EOL . '<meta property="og:site_name" content="' . esc_attr( get_bloginfo( 'name' ) ) . '" />';
|
121 |
-
$info['header_output'] .= PHP_EOL . '<meta property="article:published_time" content="' . esc_attr( get_post_time( 'c' ) ) . '" />';
|
122 |
-
$info['header_output'] .= PHP_EOL . '<meta property="article:modified_time" content="' . esc_attr( get_post_modified_time( 'c' ) ) . '" />';
|
123 |
-
$info['header_output'] .= PHP_EOL . '<meta property="og:updated_time" content="' . esc_attr( get_post_modified_time( 'c' ) ) . '" />';
|
124 |
-
|
125 |
-
// add facebook app id
|
126 |
-
if ( ! empty( $info['fb_app_id'] ) ) {
|
127 |
-
$info['header_output'] .= PHP_EOL . '<meta property = "fb:app_id" content="' . trim( $info['fb_app_id'] ) . '" />';
|
128 |
-
}
|
129 |
-
|
130 |
-
// add facebook url
|
131 |
-
if ( ! empty( $info['fp_url'] ) ) {
|
132 |
-
$info['header_output'] .= PHP_EOL . '<meta property="article:publisher" content="' . trim( $info['fp_url'] ) . '" />';
|
133 |
-
}
|
134 |
-
|
135 |
-
// append the closing comment :)
|
136 |
-
$info['header_output'] .= PHP_EOL . '<!--/end meta tags by Kiwi Social Sharing Plugin -->';
|
137 |
-
// Return the variable containing our information for the meta tags
|
138 |
-
echo $info['header_output'] . PHP_EOL;
|
139 |
-
}
|
140 |
-
}
|
141 |
-
}
|
142 |
-
}
|
143 |
-
|
144 |
-
/**
|
145 |
-
* Main Kiwi_Social_Share_Frontend Instance
|
146 |
-
*
|
147 |
-
* Ensures only one instance of Kiwi_Social_Share_Frontend is loaded or can be loaded.
|
148 |
-
*
|
149 |
-
* @since 1.0.0
|
150 |
-
* @static
|
151 |
-
* @see Kiwi_Social_Share()
|
152 |
-
* @return Main Kiwi_Social_Share_Frontend instance
|
153 |
-
*/
|
154 |
-
public static function instance( $file = '', $version = '1.0.0' ) {
|
155 |
-
if ( is_null( self::$_instance ) ) {
|
156 |
-
self::$_instance = new self( $file, $version );
|
157 |
-
}
|
158 |
-
|
159 |
-
return self::$_instance;
|
160 |
-
} // End instance ()
|
161 |
-
|
162 |
-
|
163 |
}
|
1 |
+
<?php
|
2 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
+
exit;
|
4 |
+
}
|
5 |
+
|
6 |
+
class Kiwi_Social_Share_Frontend {
|
7 |
+
/**
|
8 |
+
* The single instance of Kiwi_Social_Share.
|
9 |
+
*
|
10 |
+
* @var object
|
11 |
+
* @access private
|
12 |
+
* @since 1.0.0
|
13 |
+
*/
|
14 |
+
private static $_instance = NULL;
|
15 |
+
|
16 |
+
/**
|
17 |
+
* Kiwi_Social_Share_Frontend constructor.
|
18 |
+
*
|
19 |
+
* @param string $file
|
20 |
+
* @param string $version
|
21 |
+
*/
|
22 |
+
public function __construct( $file = '', $version = '1.0.0' ) {
|
23 |
+
// Add the custom css styles
|
24 |
+
// Load the article bar
|
25 |
+
new Kiwi_Social_Share_View_Article_Bar();
|
26 |
+
// Load the floating bar
|
27 |
+
new Kiwi_Social_Share_View_Floating_Bar();
|
28 |
+
// Load Highlight Share
|
29 |
+
if ( Kiwi_Social_Share_Helper::get_setting_value( 'highlight_to_tweet', '' ) === 'on' ) {
|
30 |
+
new Kiwi_Social_Share_Highlight_Share();
|
31 |
+
}
|
32 |
+
// Add the Open Graph Meta
|
33 |
+
add_action( 'wp_head', array( $this, 'add_open_graph_meta' ) );
|
34 |
+
}
|
35 |
+
|
36 |
+
/**
|
37 |
+
* Adds the open graph meta
|
38 |
+
*/
|
39 |
+
public function add_open_graph_meta() {
|
40 |
+
// Create/check default values
|
41 |
+
$info = array(
|
42 |
+
'postID' => absint( get_the_ID() ),
|
43 |
+
'title' => esc_html( get_the_title() ),
|
44 |
+
'imageURL' => get_post_thumbnail_id( absint( get_the_ID() ) ),
|
45 |
+
'description' => esc_html( Kiwi_Social_Share_Helper::get_excerpt_by_id( absint( get_the_ID() ) ) ),
|
46 |
+
'fb_app_id' => esc_attr( Kiwi_Social_Share_Helper::get_setting_value( 'facebook_page_id', '', 'kiwi_social_identities' ) ),
|
47 |
+
'fp_url' => esc_attr( Kiwi_Social_Share_Helper::get_setting_value( 'facebook_page_url', '', 'kiwi_social_identities' ) ),
|
48 |
+
'user_twitter_handle' => esc_attr( Kiwi_Social_Share_Helper::get_setting_value( 'twitter_username', '', 'kiwi_social_identities' ) )
|
49 |
+
);
|
50 |
+
|
51 |
+
if ( ! empty( $info['user_twitter_handle'] ) ) {
|
52 |
+
$info['user_twitter_handle'] = str_replace( '@', '', $info['user_twitter_handle'] );
|
53 |
+
}
|
54 |
+
|
55 |
+
$metabox = array(
|
56 |
+
'title' => get_post_meta( get_the_ID(), 'kiwi_social-media-title', true ),
|
57 |
+
'description' => get_post_meta( get_the_ID(), 'kiwi_social-media-description', true ),
|
58 |
+
'imageURL' => get_post_meta( get_the_ID(), 'kiwi_social-media-image', true ),
|
59 |
+
'twitter_description' => get_post_meta( get_the_ID(), 'kiwi_social-media-custom-tweet', true ),
|
60 |
+
);
|
61 |
+
|
62 |
+
$info = wp_parse_args( $metabox, $info );
|
63 |
+
|
64 |
+
$twitter_button = new Kiwi_Social_Share_Social_Button_Twitter();
|
65 |
+
$url = $twitter_button->get_current_page_url( get_the_ID() );
|
66 |
+
|
67 |
+
$info['header_output'] = '';
|
68 |
+
// We only modify the Open Graph tags on single blog post pages
|
69 |
+
if ( is_singular() ) {
|
70 |
+
if ( ( isset( $info['title'] ) && $info['title'] ) || ( isset( $info['description'] ) && $info['description'] ) || ( isset( $info['imageURL'] ) && $info['imageURL'] ) ) {
|
71 |
+
|
72 |
+
// Check if Yoast Exists so we can coordinate output with their plugin accordingly
|
73 |
+
if ( ! defined( 'WPSEO_VERSION' ) ) {
|
74 |
+
// Add twitter stuff
|
75 |
+
$info['header_output'] .= PHP_EOL . '<!-- Twitter OG tags by Kiwi Social Sharing Plugin -->';
|
76 |
+
|
77 |
+
$info['header_output'] .= PHP_EOL . '<meta name="twitter:card" content="summary" />';
|
78 |
+
$info['header_output'] .= PHP_EOL . '<meta name="twitter:title" content="' . trim( $info['title'] ) . '" />';
|
79 |
+
$info['header_output'] .= PHP_EOL . '<meta name="twitter:url" content="' . esc_url( $url ) . '" />';
|
80 |
+
|
81 |
+
if ( ! empty( $info['user_twitter_handle'] ) ) {
|
82 |
+
$info['header_output'] .= PHP_EOL . '<meta name="twitter:site" content="' . trim( $info['user_twitter_handle'] ) . '" />';
|
83 |
+
$info['header_output'] .= PHP_EOL . '<meta name="twitter:creator" content="' . trim( $info['user_twitter_handle'] ) . '" />';
|
84 |
+
}
|
85 |
+
|
86 |
+
if ( ! empty( $info['twitter_description'] ) ) {
|
87 |
+
$info['header_output'] .= PHP_EOL . '<meta name="twitter:description" content="' . esc_attr( $info['twitter_description'] ) . '" />';
|
88 |
+
}
|
89 |
+
|
90 |
+
if ( ! empty( $info['imageURL'] ) ) {
|
91 |
+
$info['header_output'] .= PHP_EOL . '<meta name="twitter:image" content="' . esc_attr( $info['imageURL'] ) . '" />';
|
92 |
+
}
|
93 |
+
|
94 |
+
$info['header_output'] .= PHP_EOL . '<!-- / Twitter OG tags by Kiwi Social Sharing Plugin -->';
|
95 |
+
|
96 |
+
// Add all our Open Graph Tags to the Return Header Output
|
97 |
+
$info['header_output'] .= PHP_EOL . '<!-- Meta OG tags by Kiwi Social Sharing Plugin -->';
|
98 |
+
$info['header_output'] .= PHP_EOL . '<meta property="og:type" content="article" /> ';
|
99 |
+
|
100 |
+
// Open Graph Title: Create an open graph title meta tag
|
101 |
+
if ( $info['title'] ) {
|
102 |
+
// If nothing else is defined, let's use the post title
|
103 |
+
$info['header_output'] .= PHP_EOL . '<meta property="og:title" content="' . Kiwi_Social_Share_Helper::convert_smart_quotes( htmlspecialchars_decode( get_the_title() ) ) . '" />';
|
104 |
+
}
|
105 |
+
|
106 |
+
if ( $info['description'] ) {
|
107 |
+
// If nothing else is defined, let's use the post excerpt
|
108 |
+
$info['header_output'] .= PHP_EOL . '<meta property="og:description" content="' . Kiwi_Social_Share_Helper::convert_smart_quotes( $info['description'] ) . '" />';
|
109 |
+
}
|
110 |
+
|
111 |
+
if ( has_post_thumbnail( $info['postID'] ) ) {
|
112 |
+
// If nothing else is defined, let's use the post Thumbnail as long as we have the URL cached
|
113 |
+
$og_image = wp_get_attachment_image_src( get_post_thumbnail_id( $info['postID'] ), 'full' );
|
114 |
+
if ( $og_image ) {
|
115 |
+
$info['header_output'] .= PHP_EOL . '<meta property="og:image" content="' . esc_url( $og_image[0] ) . '" />';
|
116 |
+
}
|
117 |
+
}
|
118 |
+
|
119 |
+
$info['header_output'] .= PHP_EOL . '<meta property="og:url" content="' . esc_url( $url ) . '" />';
|
120 |
+
$info['header_output'] .= PHP_EOL . '<meta property="og:site_name" content="' . esc_attr( get_bloginfo( 'name' ) ) . '" />';
|
121 |
+
$info['header_output'] .= PHP_EOL . '<meta property="article:published_time" content="' . esc_attr( get_post_time( 'c' ) ) . '" />';
|
122 |
+
$info['header_output'] .= PHP_EOL . '<meta property="article:modified_time" content="' . esc_attr( get_post_modified_time( 'c' ) ) . '" />';
|
123 |
+
$info['header_output'] .= PHP_EOL . '<meta property="og:updated_time" content="' . esc_attr( get_post_modified_time( 'c' ) ) . '" />';
|
124 |
+
|
125 |
+
// add facebook app id
|
126 |
+
if ( ! empty( $info['fb_app_id'] ) ) {
|
127 |
+
$info['header_output'] .= PHP_EOL . '<meta property = "fb:app_id" content="' . trim( $info['fb_app_id'] ) . '" />';
|
128 |
+
}
|
129 |
+
|
130 |
+
// add facebook url
|
131 |
+
if ( ! empty( $info['fp_url'] ) ) {
|
132 |
+
$info['header_output'] .= PHP_EOL . '<meta property="article:publisher" content="' . trim( $info['fp_url'] ) . '" />';
|
133 |
+
}
|
134 |
+
|
135 |
+
// append the closing comment :)
|
136 |
+
$info['header_output'] .= PHP_EOL . '<!--/end meta tags by Kiwi Social Sharing Plugin -->';
|
137 |
+
// Return the variable containing our information for the meta tags
|
138 |
+
echo $info['header_output'] . PHP_EOL;
|
139 |
+
}
|
140 |
+
}
|
141 |
+
}
|
142 |
+
}
|
143 |
+
|
144 |
+
/**
|
145 |
+
* Main Kiwi_Social_Share_Frontend Instance
|
146 |
+
*
|
147 |
+
* Ensures only one instance of Kiwi_Social_Share_Frontend is loaded or can be loaded.
|
148 |
+
*
|
149 |
+
* @since 1.0.0
|
150 |
+
* @static
|
151 |
+
* @see Kiwi_Social_Share()
|
152 |
+
* @return Main Kiwi_Social_Share_Frontend instance
|
153 |
+
*/
|
154 |
+
public static function instance( $file = '', $version = '1.0.0' ) {
|
155 |
+
if ( is_null( self::$_instance ) ) {
|
156 |
+
self::$_instance = new self( $file, $version );
|
157 |
+
}
|
158 |
+
|
159 |
+
return self::$_instance;
|
160 |
+
} // End instance ()
|
161 |
+
|
162 |
+
|
163 |
}
|
includes/lib/class-kiwi-social-share-highlight-share.php
CHANGED
@@ -1,123 +1,123 @@
|
|
1 |
-
<?php
|
2 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
-
exit;
|
4 |
-
}
|
5 |
-
|
6 |
-
class Kiwi_Social_Share_Highlight_Share {
|
7 |
-
/**
|
8 |
-
* The single instance of Kiwi_Social_Share_Highlight_Share
|
9 |
-
*
|
10 |
-
* @var object
|
11 |
-
* @access private
|
12 |
-
* @since 1.0.0
|
13 |
-
*/
|
14 |
-
private static $_instance = NULL;
|
15 |
-
|
16 |
-
/**
|
17 |
-
* @var
|
18 |
-
*/
|
19 |
-
public $post_types = array();
|
20 |
-
|
21 |
-
/**
|
22 |
-
* Kiwi_Social_Share_Highlight_Share constructor.
|
23 |
-
*/
|
24 |
-
public function __construct() {
|
25 |
-
$this->set_options();
|
26 |
-
add_action( 'wp', array( $this, 'wp_loaded' ), 10 );
|
27 |
-
}
|
28 |
-
|
29 |
-
/**
|
30 |
-
* Set Kiwi Backend Options
|
31 |
-
*/
|
32 |
-
public function set_options() {
|
33 |
-
$highlight_to_tweet = Kiwi_Social_Share_Helper::get_setting_value( 'highlight_to_tweet_posttypes', 'all' );
|
34 |
-
if ( $highlight_to_tweet === 'all' ) {
|
35 |
-
$this->post_types = 'all';
|
36 |
-
} else {
|
37 |
-
$post_types = Kiwi_Social_Share_Helper::get_setting_value( 'highlight_to_tweet_posttypes_list', array() );
|
38 |
-
$this->post_types = array_merge( $this->post_types, $post_types );
|
39 |
-
};
|
40 |
-
}
|
41 |
-
|
42 |
-
/**
|
43 |
-
* Start plugin action here
|
44 |
-
*/
|
45 |
-
public function wp_loaded() {
|
46 |
-
|
47 |
-
if ( is_feed() ) {
|
48 |
-
return;
|
49 |
-
}
|
50 |
-
|
51 |
-
$kiwi = Kiwi_Social_Share::instance();
|
52 |
-
wp_enqueue_style( $kiwi->_token . '-frontend' );
|
53 |
-
wp_enqueue_script( $kiwi->_token . '-frontend' );
|
54 |
-
|
55 |
-
//Load content area
|
56 |
-
add_filter( 'the_content', array( $this, 'wrap_content_area' ) );
|
57 |
-
add_filter( 'the_excerpt', array( $this, 'wrap_excerpt_area' ) );
|
58 |
-
add_action( 'wp_footer', array( $this, 'highlighter_section' ) );
|
59 |
-
}
|
60 |
-
|
61 |
-
/**
|
62 |
-
* @param $content
|
63 |
-
*
|
64 |
-
* @return string
|
65 |
-
*/
|
66 |
-
public function wrap_content_area( $content ) {
|
67 |
-
if ( ! in_the_loop() ) {
|
68 |
-
return $content;
|
69 |
-
}
|
70 |
-
|
71 |
-
$twitter_button = new Kiwi_Social_Share_Social_Button_Twitter();
|
72 |
-
$title = get_the_title( get_the_ID() );
|
73 |
-
$url = $twitter_button->get_current_page_url( get_the_ID() );
|
74 |
-
|
75 |
-
$content = sprintf( '<div class="kiwi-highlighter-content-area" data-url="%s" data-title="%s">%s</div>', esc_url( $url ), esc_attr( $title ), $content );
|
76 |
-
|
77 |
-
return $content;
|
78 |
-
}
|
79 |
-
|
80 |
-
/**
|
81 |
-
* @param $content
|
82 |
-
*
|
83 |
-
* @return string
|
84 |
-
*/
|
85 |
-
public function wrap_excerpt_area( $content ) {
|
86 |
-
if ( ! in_the_loop() ) {
|
87 |
-
return $content;
|
88 |
-
}
|
89 |
-
|
90 |
-
$twitter_button = new Kiwi_Social_Share_Social_Button_Twitter();
|
91 |
-
$title = get_the_title( get_the_ID() );
|
92 |
-
$url = $twitter_button->get_current_page_url( get_the_ID() );
|
93 |
-
|
94 |
-
$content = sprintf( '<div class="kiwi-highlighter-excerpt-area" data-url="%s" data-title="%s">%s</div>', esc_url( $url ), esc_attr( $title ), $content );
|
95 |
-
|
96 |
-
return $content;
|
97 |
-
}
|
98 |
-
|
99 |
-
/**
|
100 |
-
*
|
101 |
-
*/
|
102 |
-
public function highlighter_section() {
|
103 |
-
$additional = '';
|
104 |
-
$tracking_html = '';
|
105 |
-
|
106 |
-
$twitter_handle = Kiwi_Social_Share_Helper::get_setting_value( 'twitter_username', '', 'kiwi_social_identities' );
|
107 |
-
$tracking = Kiwi_Social_Share_Helper::get_setting_value( 'ga_tracking', '', 'kiwi_social_identities' );
|
108 |
-
|
109 |
-
if ( ! empty( $twitter_handle ) ) {
|
110 |
-
$additional = '&via=' . str_replace( '@', '', $twitter_handle );
|
111 |
-
}
|
112 |
-
if ( ! empty( $tracking ) ) {
|
113 |
-
$tracking_html = ' data-tracking="true" ';
|
114 |
-
}
|
115 |
-
|
116 |
-
$html = '';
|
117 |
-
$html .= '<div class="kiwi-highlight-sharer">';
|
118 |
-
$html .= '<a href="//twitter.com/intent/tweet?url=%url%&text=%text%' . $additional . '" target="_blank" class="kiwi-nw-twitter" ' . $tracking_html . '><span class="kicon-twitter"></span></a>';
|
119 |
-
$html .= '</div>';
|
120 |
-
|
121 |
-
echo $html;
|
122 |
-
}
|
123 |
}
|
1 |
+
<?php
|
2 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
+
exit;
|
4 |
+
}
|
5 |
+
|
6 |
+
class Kiwi_Social_Share_Highlight_Share {
|
7 |
+
/**
|
8 |
+
* The single instance of Kiwi_Social_Share_Highlight_Share
|
9 |
+
*
|
10 |
+
* @var object
|
11 |
+
* @access private
|
12 |
+
* @since 1.0.0
|
13 |
+
*/
|
14 |
+
private static $_instance = NULL;
|
15 |
+
|
16 |
+
/**
|
17 |
+
* @var
|
18 |
+
*/
|
19 |
+
public $post_types = array();
|
20 |
+
|
21 |
+
/**
|
22 |
+
* Kiwi_Social_Share_Highlight_Share constructor.
|
23 |
+
*/
|
24 |
+
public function __construct() {
|
25 |
+
$this->set_options();
|
26 |
+
add_action( 'wp', array( $this, 'wp_loaded' ), 10 );
|
27 |
+
}
|
28 |
+
|
29 |
+
/**
|
30 |
+
* Set Kiwi Backend Options
|
31 |
+
*/
|
32 |
+
public function set_options() {
|
33 |
+
$highlight_to_tweet = Kiwi_Social_Share_Helper::get_setting_value( 'highlight_to_tweet_posttypes', 'all' );
|
34 |
+
if ( $highlight_to_tweet === 'all' ) {
|
35 |
+
$this->post_types = 'all';
|
36 |
+
} else {
|
37 |
+
$post_types = Kiwi_Social_Share_Helper::get_setting_value( 'highlight_to_tweet_posttypes_list', array() );
|
38 |
+
$this->post_types = array_merge( $this->post_types, $post_types );
|
39 |
+
};
|
40 |
+
}
|
41 |
+
|
42 |
+
/**
|
43 |
+
* Start plugin action here
|
44 |
+
*/
|
45 |
+
public function wp_loaded() {
|
46 |
+
|
47 |
+
if ( is_feed() ) {
|
48 |
+
return;
|
49 |
+
}
|
50 |
+
|
51 |
+
$kiwi = Kiwi_Social_Share::instance();
|
52 |
+
wp_enqueue_style( $kiwi->_token . '-frontend' );
|
53 |
+
wp_enqueue_script( $kiwi->_token . '-frontend' );
|
54 |
+
|
55 |
+
//Load content area
|
56 |
+
add_filter( 'the_content', array( $this, 'wrap_content_area' ) );
|
57 |
+
add_filter( 'the_excerpt', array( $this, 'wrap_excerpt_area' ) );
|
58 |
+
add_action( 'wp_footer', array( $this, 'highlighter_section' ) );
|
59 |
+
}
|
60 |
+
|
61 |
+
/**
|
62 |
+
* @param $content
|
63 |
+
*
|
64 |
+
* @return string
|
65 |
+
*/
|
66 |
+
public function wrap_content_area( $content ) {
|
67 |
+
if ( ! in_the_loop() ) {
|
68 |
+
return $content;
|
69 |
+
}
|
70 |
+
|
71 |
+
$twitter_button = new Kiwi_Social_Share_Social_Button_Twitter();
|
72 |
+
$title = get_the_title( get_the_ID() );
|
73 |
+
$url = $twitter_button->get_current_page_url( get_the_ID() );
|
74 |
+
|
75 |
+
$content = sprintf( '<div class="kiwi-highlighter-content-area" data-url="%s" data-title="%s">%s</div>', esc_url( $url ), esc_attr( $title ), $content );
|
76 |
+
|
77 |
+
return $content;
|
78 |
+
}
|
79 |
+
|
80 |
+
/**
|
81 |
+
* @param $content
|
82 |
+
*
|
83 |
+
* @return string
|
84 |
+
*/
|
85 |
+
public function wrap_excerpt_area( $content ) {
|
86 |
+
if ( ! in_the_loop() ) {
|
87 |
+
return $content;
|
88 |
+
}
|
89 |
+
|
90 |
+
$twitter_button = new Kiwi_Social_Share_Social_Button_Twitter();
|
91 |
+
$title = get_the_title( get_the_ID() );
|
92 |
+
$url = $twitter_button->get_current_page_url( get_the_ID() );
|
93 |
+
|
94 |
+
$content = sprintf( '<div class="kiwi-highlighter-excerpt-area" data-url="%s" data-title="%s">%s</div>', esc_url( $url ), esc_attr( $title ), $content );
|
95 |
+
|
96 |
+
return $content;
|
97 |
+
}
|
98 |
+
|
99 |
+
/**
|
100 |
+
*
|
101 |
+
*/
|
102 |
+
public function highlighter_section() {
|
103 |
+
$additional = '';
|
104 |
+
$tracking_html = '';
|
105 |
+
|
106 |
+
$twitter_handle = Kiwi_Social_Share_Helper::get_setting_value( 'twitter_username', '', 'kiwi_social_identities' );
|
107 |
+
$tracking = Kiwi_Social_Share_Helper::get_setting_value( 'ga_tracking', '', 'kiwi_social_identities' );
|
108 |
+
|
109 |
+
if ( ! empty( $twitter_handle ) ) {
|
110 |
+
$additional = '&via=' . str_replace( '@', '', $twitter_handle );
|
111 |
+
}
|
112 |
+
if ( ! empty( $tracking ) ) {
|
113 |
+
$tracking_html = ' data-tracking="true" ';
|
114 |
+
}
|
115 |
+
|
116 |
+
$html = '';
|
117 |
+
$html .= '<div class="kiwi-highlight-sharer">';
|
118 |
+
$html .= '<a href="//twitter.com/intent/tweet?url=%url%&text=%text%' . $additional . '" target="_blank" class="kiwi-nw-twitter" ' . $tracking_html . '><span class="kicon-twitter"></span></a>';
|
119 |
+
$html .= '</div>';
|
120 |
+
|
121 |
+
echo $html;
|
122 |
+
}
|
123 |
}
|
includes/lib/class-kiwi-social-share-importer.php
CHANGED
@@ -1,290 +1,290 @@
|
|
1 |
-
<?php
|
2 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
-
exit;
|
4 |
-
}
|
5 |
-
|
6 |
-
/**
|
7 |
-
* Class Kiwi_Social_Share_Importer
|
8 |
-
*/
|
9 |
-
class Kiwi_Social_Share_Importer {
|
10 |
-
/**
|
11 |
-
* @var
|
12 |
-
*/
|
13 |
-
private $old_settings;
|
14 |
-
/**
|
15 |
-
* @var
|
16 |
-
*/
|
17 |
-
private $new_settings;
|
18 |
-
|
19 |
-
/**
|
20 |
-
* @return mixed
|
21 |
-
*/
|
22 |
-
public function get_old_settings() {
|
23 |
-
return $this->old_settings;
|
24 |
-
}
|
25 |
-
|
26 |
-
/**
|
27 |
-
* @param mixed $old_settings
|
28 |
-
*/
|
29 |
-
public function set_old_settings( $old_settings ) {
|
30 |
-
$this->old_settings = $old_settings;
|
31 |
-
}
|
32 |
-
|
33 |
-
/**
|
34 |
-
* @return mixed
|
35 |
-
*/
|
36 |
-
public function get_new_settings() {
|
37 |
-
return $this->new_settings;
|
38 |
-
}
|
39 |
-
|
40 |
-
/**
|
41 |
-
* @param mixed $new_settings
|
42 |
-
*/
|
43 |
-
public function set_new_settings( $new_settings ) {
|
44 |
-
$this->new_settings = $new_settings;
|
45 |
-
}
|
46 |
-
|
47 |
-
/**
|
48 |
-
* Kiwi_Social_Share_Updater constructor.
|
49 |
-
*/
|
50 |
-
public function __construct() {
|
51 |
-
$settings = $this->get_legacy_settings();
|
52 |
-
if ( ! $settings ) {
|
53 |
-
$arr = array(
|
54 |
-
'networks_ordering' => '',
|
55 |
-
'networks_article_bar' => array( 'facebook', 'twitter', 'google-plus', 'pinterest' ),
|
56 |
-
'share_buttons' => 'on',
|
57 |
-
'share_buttons_location' => 'top',
|
58 |
-
'button_shape' => 'rect',
|
59 |
-
'share_buttons_posttypes' => '',
|
60 |
-
'floating_panel_posttypes' => '',
|
61 |
-
'share_buttons_posttypes_list' => array(),
|
62 |
-
'floating_panel_posttypes_list' => array(),
|
63 |
-
);
|
64 |
-
|
65 |
-
update_option( 'kiwi_general_settings', $arr );
|
66 |
-
|
67 |
-
return;
|
68 |
-
}
|
69 |
-
$this->set_old_settings( $settings );
|
70 |
-
|
71 |
-
$new_settings = $this->build_settings_array();
|
72 |
-
if ( ! $new_settings ) {
|
73 |
-
return;
|
74 |
-
}
|
75 |
-
|
76 |
-
$this->set_new_settings( $new_settings );
|
77 |
-
$this->add_backup_options();
|
78 |
-
|
79 |
-
update_option( 'kiwi_general_settings', $new_settings );
|
80 |
-
|
81 |
-
}
|
82 |
-
|
83 |
-
/**
|
84 |
-
* @since {VERSION}
|
85 |
-
*/
|
86 |
-
public function add_backup_options() {
|
87 |
-
$sanitized = array();
|
88 |
-
|
89 |
-
foreach ( $this->get_new_settings() as $k => $v ) {
|
90 |
-
|
91 |
-
if ( is_string( $v ) ) {
|
92 |
-
$sanitized[ $k ] = sanitize_text_field( $v );
|
93 |
-
}
|
94 |
-
|
95 |
-
if ( is_array( $v ) ) {
|
96 |
-
foreach ( $v as $item ) {
|
97 |
-
$sanitized[ $k ][] = sanitize_text_field( $item );
|
98 |
-
}
|
99 |
-
}
|
100 |
-
}
|
101 |
-
|
102 |
-
update_option( 'kiwi_backup_option', $sanitized );
|
103 |
-
}
|
104 |
-
|
105 |
-
/**
|
106 |
-
* @return bool|mixed
|
107 |
-
* @since {VERSION}
|
108 |
-
*/
|
109 |
-
public function get_legacy_settings() {
|
110 |
-
$legacy = get_option( 'kiwi_settings' );
|
111 |
-
|
112 |
-
if ( ! $legacy ) {
|
113 |
-
return false;
|
114 |
-
}
|
115 |
-
|
116 |
-
return $legacy;
|
117 |
-
}
|
118 |
-
|
119 |
-
|
120 |
-
/**
|
121 |
-
* @return array|bool
|
122 |
-
* @since {VERSION}
|
123 |
-
*/
|
124 |
-
public function build_settings_array() {
|
125 |
-
$arr = array(
|
126 |
-
'networks_ordering' => $this->check_sorting_option(),
|
127 |
-
'networks_article_bar' => $this->check_social_networks(),
|
128 |
-
'share_buttons' => $this->check_share_buttons(),
|
129 |
-
'share_buttons_location' => $this->check_share_buttons_location(),
|
130 |
-
'button_shape' => $this->check_button_shape(),
|
131 |
-
'share_buttons_posttypes_list' => $this->check_enable_posts(),
|
132 |
-
'floating_panel_posttypes_list' => array(),
|
133 |
-
);
|
134 |
-
|
135 |
-
$arr = array_filter( $arr );
|
136 |
-
|
137 |
-
if ( empty( $arr ) ) {
|
138 |
-
return false;
|
139 |
-
}
|
140 |
-
|
141 |
-
return $arr;
|
142 |
-
}
|
143 |
-
|
144 |
-
/**
|
145 |
-
* @return array|bool
|
146 |
-
*/
|
147 |
-
public function check_enable_posts() {
|
148 |
-
$settings = $this->get_old_settings();
|
149 |
-
$arr = array();
|
150 |
-
if ( ! empty( $settings['kiwi-enable-on-posts'] ) ) {
|
151 |
-
$arr[] = 'posts';
|
152 |
-
}
|
153 |
-
if ( ! empty( $settings['kiwi-enable-on-pages'] ) ) {
|
154 |
-
$arr[] = 'pages';
|
155 |
-
}
|
156 |
-
if ( ! empty( $arr ) ) {
|
157 |
-
return $arr;
|
158 |
-
}
|
159 |
-
|
160 |
-
return false;
|
161 |
-
}
|
162 |
-
|
163 |
-
|
164 |
-
/**
|
165 |
-
* @return bool|string
|
166 |
-
*/
|
167 |
-
public function check_button_shape() {
|
168 |
-
$settings = $this->get_old_settings();
|
169 |
-
if ( ! empty( $settings['kiwi-design-choose-layout'] ) ) {
|
170 |
-
switch ( $settings['kiwi-design-choose-layout'] ) {
|
171 |
-
case 'kiwi-leaf-style':
|
172 |
-
$style = 'leaf';
|
173 |
-
break;
|
174 |
-
case 'kiwi-shift-style':
|
175 |
-
$style = 'shift';
|
176 |
-
break;
|
177 |
-
case 'kiwi-pills-style':
|
178 |
-
$style = 'pill';
|
179 |
-
break;
|
180 |
-
default:
|
181 |
-
$style = 'rect';
|
182 |
-
break;
|
183 |
-
}
|
184 |
-
|
185 |
-
return $style;
|
186 |
-
}
|
187 |
-
|
188 |
-
return false;
|
189 |
-
}
|
190 |
-
|
191 |
-
/**
|
192 |
-
* @return bool|string
|
193 |
-
*/
|
194 |
-
public function check_share_buttons_location() {
|
195 |
-
$settings = $this->get_old_settings();
|
196 |
-
if ( ! empty( $settings['kiwi-enable-share-position'] ) ) {
|
197 |
-
|
198 |
-
switch ( $settings['kiwi-enable-share-position'] ) {
|
199 |
-
case 'before-posts':
|
200 |
-
$location = 'top';
|
201 |
-
break;
|
202 |
-
case 'after-posts':
|
203 |
-
$location = 'bottom';
|
204 |
-
break;
|
205 |
-
case 'before_and_after_posts':
|
206 |
-
$location = 'both';
|
207 |
-
break;
|
208 |
-
default:
|
209 |
-
$location = 'bottom';
|
210 |
-
break;
|
211 |
-
}
|
212 |
-
|
213 |
-
return $location;
|
214 |
-
}
|
215 |
-
|
216 |
-
return false;
|
217 |
-
|
218 |
-
}
|
219 |
-
|
220 |
-
/**
|
221 |
-
* @return bool|string
|
222 |
-
*/
|
223 |
-
public function check_share_buttons() {
|
224 |
-
$settings = $this->get_old_settings();
|
225 |
-
if ( ! empty( $settings['kiwi-enable-on-posts'] ) || ! empty( $settings['kiwi-enable-on-pages'] ) ) {
|
226 |
-
return 'on';
|
227 |
-
}
|
228 |
-
|
229 |
-
return false;
|
230 |
-
}
|
231 |
-
|
232 |
-
/**
|
233 |
-
* @return string
|
234 |
-
*/
|
235 |
-
public function check_sorting_option() {
|
236 |
-
$settings = $this->get_old_settings();
|
237 |
-
if ( ! empty( $settings['general-settings-order'] ) ) {
|
238 |
-
$ordering = explode( ',', $settings['general-settings-order'] );
|
239 |
-
$t = array();
|
240 |
-
foreach ( $ordering as $item ) {
|
241 |
-
if ( $item === 'kiwi-enable-on-posts' || $item === 'kiwi-enable-on-pages' ) {
|
242 |
-
continue;
|
243 |
-
}
|
244 |
-
$item = str_replace( 'kiwi-enable-', '', $item );
|
245 |
-
$t[] = $item;
|
246 |
-
}
|
247 |
-
|
248 |
-
$extra = array(
|
249 |
-
'whatsapp',
|
250 |
-
'telegram',
|
251 |
-
'skype'
|
252 |
-
);
|
253 |
-
|
254 |
-
$t = array_merge( $t, $extra );
|
255 |
-
|
256 |
-
return implode( ',', $t );
|
257 |
-
}
|
258 |
-
|
259 |
-
return '';
|
260 |
-
}
|
261 |
-
|
262 |
-
/**
|
263 |
-
* @return array
|
264 |
-
*/
|
265 |
-
public function check_social_networks() {
|
266 |
-
$settings = $this->get_old_settings();
|
267 |
-
$return = array();
|
268 |
-
$available = array( 'facebook', 'twitter', 'google-plus', 'pinterest', 'linkedin', 'reddit', 'email' );
|
269 |
-
|
270 |
-
foreach ( $available as $social ) {
|
271 |
-
if ( ! empty( $settings[ 'kiwi-enable-' . $social ] ) ) {
|
272 |
-
$return[] = $social;
|
273 |
-
}
|
274 |
-
}
|
275 |
-
|
276 |
-
return $return;
|
277 |
-
}
|
278 |
-
|
279 |
-
/**
|
280 |
-
* @return Kiwi_Social_Share_Importer
|
281 |
-
*/
|
282 |
-
public static function get_instance() {
|
283 |
-
static $inst;
|
284 |
-
if ( ! $inst ) {
|
285 |
-
$inst = new Kiwi_Social_Share_Importer;
|
286 |
-
}
|
287 |
-
|
288 |
-
return $inst;
|
289 |
-
}
|
290 |
}
|
1 |
+
<?php
|
2 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
+
exit;
|
4 |
+
}
|
5 |
+
|
6 |
+
/**
|
7 |
+
* Class Kiwi_Social_Share_Importer
|
8 |
+
*/
|
9 |
+
class Kiwi_Social_Share_Importer {
|
10 |
+
/**
|
11 |
+
* @var
|
12 |
+
*/
|
13 |
+
private $old_settings;
|
14 |
+
/**
|
15 |
+
* @var
|
16 |
+
*/
|
17 |
+
private $new_settings;
|
18 |
+
|
19 |
+
/**
|
20 |
+
* @return mixed
|
21 |
+
*/
|
22 |
+
public function get_old_settings() {
|
23 |
+
return $this->old_settings;
|
24 |
+
}
|
25 |
+
|
26 |
+
/**
|
27 |
+
* @param mixed $old_settings
|
28 |
+
*/
|
29 |
+
public function set_old_settings( $old_settings ) {
|
30 |
+
$this->old_settings = $old_settings;
|
31 |
+
}
|
32 |
+
|
33 |
+
/**
|
34 |
+
* @return mixed
|
35 |
+
*/
|
36 |
+
public function get_new_settings() {
|
37 |
+
return $this->new_settings;
|
38 |
+
}
|
39 |
+
|
40 |
+
/**
|
41 |
+
* @param mixed $new_settings
|
42 |
+
*/
|
43 |
+
public function set_new_settings( $new_settings ) {
|
44 |
+
$this->new_settings = $new_settings;
|
45 |
+
}
|
46 |
+
|
47 |
+
/**
|
48 |
+
* Kiwi_Social_Share_Updater constructor.
|
49 |
+
*/
|
50 |
+
public function __construct() {
|
51 |
+
$settings = $this->get_legacy_settings();
|
52 |
+
if ( ! $settings ) {
|
53 |
+
$arr = array(
|
54 |
+
'networks_ordering' => '',
|
55 |
+
'networks_article_bar' => array( 'facebook', 'twitter', 'google-plus', 'pinterest' ),
|
56 |
+
'share_buttons' => 'on',
|
57 |
+
'share_buttons_location' => 'top',
|
58 |
+
'button_shape' => 'rect',
|
59 |
+
'share_buttons_posttypes' => '',
|
60 |
+
'floating_panel_posttypes' => '',
|
61 |
+
'share_buttons_posttypes_list' => array(),
|
62 |
+
'floating_panel_posttypes_list' => array(),
|
63 |
+
);
|
64 |
+
|
65 |
+
update_option( 'kiwi_general_settings', $arr );
|
66 |
+
|
67 |
+
return;
|
68 |
+
}
|
69 |
+
$this->set_old_settings( $settings );
|
70 |
+
|
71 |
+
$new_settings = $this->build_settings_array();
|
72 |
+
if ( ! $new_settings ) {
|
73 |
+
return;
|
74 |
+
}
|
75 |
+
|
76 |
+
$this->set_new_settings( $new_settings );
|
77 |
+
$this->add_backup_options();
|
78 |
+
|
79 |
+
update_option( 'kiwi_general_settings', $new_settings );
|
80 |
+
|
81 |
+
}
|
82 |
+
|
83 |
+
/**
|
84 |
+
* @since {VERSION}
|
85 |
+
*/
|
86 |
+
public function add_backup_options() {
|
87 |
+
$sanitized = array();
|
88 |
+
|
89 |
+
foreach ( $this->get_new_settings() as $k => $v ) {
|
90 |
+
|
91 |
+
if ( is_string( $v ) ) {
|
92 |
+
$sanitized[ $k ] = sanitize_text_field( $v );
|
93 |
+
}
|
94 |
+
|
95 |
+
if ( is_array( $v ) ) {
|
96 |
+
foreach ( $v as $item ) {
|
97 |
+
$sanitized[ $k ][] = sanitize_text_field( $item );
|
98 |
+
}
|
99 |
+
}
|
100 |
+
}
|
101 |
+
|
102 |
+
update_option( 'kiwi_backup_option', $sanitized );
|
103 |
+
}
|
104 |
+
|
105 |
+
/**
|
106 |
+
* @return bool|mixed
|
107 |
+
* @since {VERSION}
|
108 |
+
*/
|
109 |
+
public function get_legacy_settings() {
|
110 |
+
$legacy = get_option( 'kiwi_settings' );
|
111 |
+
|
112 |
+
if ( ! $legacy ) {
|
113 |
+
return false;
|
114 |
+
}
|
115 |
+
|
116 |
+
return $legacy;
|
117 |
+
}
|
118 |
+
|
119 |
+
|
120 |
+
/**
|
121 |
+
* @return array|bool
|
122 |
+
* @since {VERSION}
|
123 |
+
*/
|
124 |
+
public function build_settings_array() {
|
125 |
+
$arr = array(
|
126 |
+
'networks_ordering' => $this->check_sorting_option(),
|
127 |
+
'networks_article_bar' => $this->check_social_networks(),
|
128 |
+
'share_buttons' => $this->check_share_buttons(),
|
129 |
+
'share_buttons_location' => $this->check_share_buttons_location(),
|
130 |
+
'button_shape' => $this->check_button_shape(),
|
131 |
+
'share_buttons_posttypes_list' => $this->check_enable_posts(),
|
132 |
+
'floating_panel_posttypes_list' => array(),
|
133 |
+
);
|
134 |
+
|
135 |
+
$arr = array_filter( $arr );
|
136 |
+
|
137 |
+
if ( empty( $arr ) ) {
|
138 |
+
return false;
|
139 |
+
}
|
140 |
+
|
141 |
+
return $arr;
|
142 |
+
}
|
143 |
+
|
144 |
+
/**
|
145 |
+
* @return array|bool
|
146 |
+
*/
|
147 |
+
public function check_enable_posts() {
|
148 |
+
$settings = $this->get_old_settings();
|
149 |
+
$arr = array();
|
150 |
+
if ( ! empty( $settings['kiwi-enable-on-posts'] ) ) {
|
151 |
+
$arr[] = 'posts';
|
152 |
+
}
|
153 |
+
if ( ! empty( $settings['kiwi-enable-on-pages'] ) ) {
|
154 |
+
$arr[] = 'pages';
|
155 |
+
}
|
156 |
+
if ( ! empty( $arr ) ) {
|
157 |
+
return $arr;
|
158 |
+
}
|
159 |
+
|
160 |
+
return false;
|
161 |
+
}
|
162 |
+
|
163 |
+
|
164 |
+
/**
|
165 |
+
* @return bool|string
|
166 |
+
*/
|
167 |
+
public function check_button_shape() {
|
168 |
+
$settings = $this->get_old_settings();
|
169 |
+
if ( ! empty( $settings['kiwi-design-choose-layout'] ) ) {
|
170 |
+
switch ( $settings['kiwi-design-choose-layout'] ) {
|
171 |
+
case 'kiwi-leaf-style':
|
172 |
+
$style = 'leaf';
|
173 |
+
break;
|
174 |
+
case 'kiwi-shift-style':
|
175 |
+
$style = 'shift';
|
176 |
+
break;
|
177 |
+
case 'kiwi-pills-style':
|
178 |
+
$style = 'pill';
|
179 |
+
break;
|
180 |
+
default:
|
181 |
+
$style = 'rect';
|
182 |
+
break;
|
183 |
+
}
|
184 |
+
|
185 |
+
return $style;
|
186 |
+
}
|
187 |
+
|
188 |
+
return false;
|
189 |
+
}
|
190 |
+
|
191 |
+
/**
|
192 |
+
* @return bool|string
|
193 |
+
*/
|
194 |
+
public function check_share_buttons_location() {
|
195 |
+
$settings = $this->get_old_settings();
|
196 |
+
if ( ! empty( $settings['kiwi-enable-share-position'] ) ) {
|
197 |
+
|
198 |
+
switch ( $settings['kiwi-enable-share-position'] ) {
|
199 |
+
case 'before-posts':
|
200 |
+
$location = 'top';
|
201 |
+
break;
|
202 |
+
case 'after-posts':
|
203 |
+
$location = 'bottom';
|
204 |
+
break;
|
205 |
+
case 'before_and_after_posts':
|
206 |
+
$location = 'both';
|
207 |
+
break;
|
208 |
+
default:
|
209 |
+
$location = 'bottom';
|
210 |
+
break;
|
211 |
+
}
|
212 |
+
|
213 |
+
return $location;
|
214 |
+
}
|
215 |
+
|
216 |
+
return false;
|
217 |
+
|
218 |
+
}
|
219 |
+
|
220 |
+
/**
|
221 |
+
* @return bool|string
|
222 |
+
*/
|
223 |
+
public function check_share_buttons() {
|
224 |
+
$settings = $this->get_old_settings();
|
225 |
+
if ( ! empty( $settings['kiwi-enable-on-posts'] ) || ! empty( $settings['kiwi-enable-on-pages'] ) ) {
|
226 |
+
return 'on';
|
227 |
+
}
|
228 |
+
|
229 |
+
return false;
|
230 |
+
}
|
231 |
+
|
232 |
+
/**
|
233 |
+
* @return string
|
234 |
+
*/
|
235 |
+
public function check_sorting_option() {
|
236 |
+
$settings = $this->get_old_settings();
|
237 |
+
if ( ! empty( $settings['general-settings-order'] ) ) {
|
238 |
+
$ordering = explode( ',', $settings['general-settings-order'] );
|
239 |
+
$t = array();
|
240 |
+
foreach ( $ordering as $item ) {
|
241 |
+
if ( $item === 'kiwi-enable-on-posts' || $item === 'kiwi-enable-on-pages' ) {
|
242 |
+
continue;
|
243 |
+
}
|
244 |
+
$item = str_replace( 'kiwi-enable-', '', $item );
|
245 |
+
$t[] = $item;
|
246 |
+
}
|
247 |
+
|
248 |
+
$extra = array(
|
249 |
+
'whatsapp',
|
250 |
+
'telegram',
|
251 |
+
'skype'
|
252 |
+
);
|
253 |
+
|
254 |
+
$t = array_merge( $t, $extra );
|
255 |
+
|
256 |
+
return implode( ',', $t );
|
257 |
+
}
|
258 |
+
|
259 |
+
return '';
|
260 |
+
}
|
261 |
+
|
262 |
+
/**
|
263 |
+
* @return array
|
264 |
+
*/
|
265 |
+
public function check_social_networks() {
|
266 |
+
$settings = $this->get_old_settings();
|
267 |
+
$return = array();
|
268 |
+
$available = array( 'facebook', 'twitter', 'google-plus', 'pinterest', 'linkedin', 'reddit', 'email' );
|
269 |
+
|
270 |
+
foreach ( $available as $social ) {
|
271 |
+
if ( ! empty( $settings[ 'kiwi-enable-' . $social ] ) ) {
|
272 |
+
$return[] = $social;
|
273 |
+
}
|
274 |
+
}
|
275 |
+
|
276 |
+
return $return;
|
277 |
+
}
|
278 |
+
|
279 |
+
/**
|
280 |
+
* @return Kiwi_Social_Share_Importer
|
281 |
+
*/
|
282 |
+
public static function get_instance() {
|
283 |
+
static $inst;
|
284 |
+
if ( ! $inst ) {
|
285 |
+
$inst = new Kiwi_Social_Share_Importer;
|
286 |
+
}
|
287 |
+
|
288 |
+
return $inst;
|
289 |
+
}
|
290 |
}
|
includes/lib/class-kiwi-social-share-integration.php
CHANGED
@@ -1,186 +1,186 @@
|
|
1 |
-
<?php
|
2 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
-
exit;
|
4 |
-
}
|
5 |
-
|
6 |
-
/**
|
7 |
-
* Class Kiwi_Social_Share_Integration
|
8 |
-
*/
|
9 |
-
class Kiwi_Social_Share_Integration {
|
10 |
-
/**
|
11 |
-
* @var array
|
12 |
-
*/
|
13 |
-
public $themes = array();
|
14 |
-
/**
|
15 |
-
* @var array
|
16 |
-
*/
|
17 |
-
public $plugins = array();
|
18 |
-
/**
|
19 |
-
* @var array
|
20 |
-
*/
|
21 |
-
public $strings = array();
|
22 |
-
|
23 |
-
/**
|
24 |
-
* Kiwi_Social_Share_Integration constructor.
|
25 |
-
*/
|
26 |
-
public function __construct() {
|
27 |
-
$this->themes = array(
|
28 |
-
'newsmag' => array(
|
29 |
-
'slug' => 'newsmag',
|
30 |
-
'label' => esc_html__( 'NewsMag Lite', 'kiwi-social-share' ),
|
31 |
-
'author' => esc_html__( 'MachoThemes', 'kiwi-social-share' )
|
32 |
-
),
|
33 |
-
'regina-lite' => array(
|
34 |
-
'slug' => 'regina-lite',
|
35 |
-
'label' => esc_html__( 'Regina Lite', 'kiwi-social-share' ),
|
36 |
-
'author' => esc_html__( 'MachoThemes', 'kiwi-social-share' )
|
37 |
-
),
|
38 |
-
'affluent' => array(
|
39 |
-
'slug' => 'affluent',
|
40 |
-
'label' => esc_html__( 'Affluent', 'kiwi-social-share' ),
|
41 |
-
'author' => esc_html__( 'CPO Themes', 'kiwi-social-share' )
|
42 |
-
),
|
43 |
-
'allegiant' => array(
|
44 |
-
'slug' => 'allegiant',
|
45 |
-
'label' => esc_html__( 'Allegiant', 'kiwi-social-share' ),
|
46 |
-
'author' => esc_html__( 'CPO Themes', 'kiwi-social-share' )
|
47 |
-
),
|
48 |
-
'transcend' => array(
|
49 |
-
'slug' => 'transcend',
|
50 |
-
'label' => esc_html__( 'Transcend', 'kiwi-social-share' ),
|
51 |
-
'author' => esc_html__( 'CPO Themes', 'kiwi-social-share' )
|
52 |
-
),
|
53 |
-
);
|
54 |
-
|
55 |
-
$this->strings = array(
|
56 |
-
'not-installed' => esc_html__( 'Install Now', 'kiwi-social-share' ),
|
57 |
-
'not-active' => esc_html__( 'Activate', 'kiwi-social-share' ),
|
58 |
-
);
|
59 |
-
|
60 |
-
$this->class_names = array(
|
61 |
-
'not-installed' => 'theme-install',
|
62 |
-
'not-active' => 'activate'
|
63 |
-
);
|
64 |
-
|
65 |
-
$this->call_themes_api();
|
66 |
-
}
|
67 |
-
|
68 |
-
/**
|
69 |
-
* @return array
|
70 |
-
*/
|
71 |
-
public function call_themes_api() {
|
72 |
-
include_once( ABSPATH . 'wp-admin/includes/theme-install.php' );
|
73 |
-
|
74 |
-
$themes = array();
|
75 |
-
foreach ( $this->themes as $theme ) {
|
76 |
-
$themes[ $theme['slug'] ] = $this->_call_themes_api( $theme['slug'] );
|
77 |
-
}
|
78 |
-
|
79 |
-
foreach ( $themes as $k => $v ) {
|
80 |
-
$this->themes[ $k ]['version'] = $v->version;
|
81 |
-
$this->themes[ $k ]['preview_url'] = $v->preview_url;
|
82 |
-
$this->themes[ $k ]['screenshot_url'] = $v->screenshot_url;
|
83 |
-
$this->themes[ $k ]['homepage'] = $v->homepage;
|
84 |
-
$this->themes[ $k ]['download_link'] = $v->download_link;
|
85 |
-
$this->themes[ $k ]['status'] = $this->set_status( $v->slug, 'theme' );
|
86 |
-
$this->themes[ $k ]['action_link'] = $this->create_action_link( $v->slug, 'theme' );
|
87 |
-
}
|
88 |
-
|
89 |
-
return $themes;
|
90 |
-
|
91 |
-
}
|
92 |
-
|
93 |
-
/**
|
94 |
-
* @param $slug
|
95 |
-
*
|
96 |
-
* @return array|mixed|object|WP_Error
|
97 |
-
*/
|
98 |
-
private function _call_themes_api( $slug ) {
|
99 |
-
|
100 |
-
if ( false === ( $call_api = get_transient( 'kiwi_themes_information_transient_' . $slug ) ) ) {
|
101 |
-
$call_api = themes_api( 'theme_information', array(
|
102 |
-
'slug' => $slug,
|
103 |
-
) );
|
104 |
-
set_transient( 'kiwi_themes_information_transient_' . $slug, $call_api, 30 * MINUTE_IN_SECONDS );
|
105 |
-
}
|
106 |
-
|
107 |
-
return $call_api;
|
108 |
-
}
|
109 |
-
|
110 |
-
/**
|
111 |
-
* @param $slug
|
112 |
-
* @param $context
|
113 |
-
*
|
114 |
-
* @return bool|string
|
115 |
-
*/
|
116 |
-
private function set_status( $slug, $context ) {
|
117 |
-
switch ( $context ) {
|
118 |
-
case 'theme':
|
119 |
-
$t = wp_get_theme( $slug );
|
120 |
-
if ( is_wp_error( $t->errors() ) ) {
|
121 |
-
return 'not-installed';
|
122 |
-
}
|
123 |
-
|
124 |
-
$t = wp_get_theme();
|
125 |
-
|
126 |
-
if ( $slug == $t->name || $slug == $t->parent_theme ) {
|
127 |
-
return 'active';
|
128 |
-
}
|
129 |
-
|
130 |
-
return 'not-active';
|
131 |
-
break;
|
132 |
-
default:
|
133 |
-
return false;
|
134 |
-
break;
|
135 |
-
}
|
136 |
-
}
|
137 |
-
|
138 |
-
/**
|
139 |
-
* @param $slug
|
140 |
-
* @param $context
|
141 |
-
*
|
142 |
-
* @return bool|string
|
143 |
-
*/
|
144 |
-
private function create_action_link( $slug, $context ) {
|
145 |
-
switch ( $context ) {
|
146 |
-
case 'theme':
|
147 |
-
$status = $this->set_status( $slug, $context );
|
148 |
-
switch ( $status ) {
|
149 |
-
case 'not-installed':
|
150 |
-
return wp_nonce_url(
|
151 |
-
add_query_arg(
|
152 |
-
array(
|
153 |
-
'action' => 'install-theme',
|
154 |
-
'theme' => $slug
|
155 |
-
),
|
156 |
-
network_admin_url( 'update.php' )
|
157 |
-
),
|
158 |
-
'install-theme_' . $slug
|
159 |
-
);
|
160 |
-
break;
|
161 |
-
case 'not-active':
|
162 |
-
return wp_nonce_url(
|
163 |
-
add_query_arg(
|
164 |
-
array(
|
165 |
-
'action' => 'activate',
|
166 |
-
'stylesheet' => $slug
|
167 |
-
),
|
168 |
-
network_admin_url( 'themes.php' )
|
169 |
-
),
|
170 |
-
'switch-theme_' . $slug
|
171 |
-
);
|
172 |
-
break;
|
173 |
-
default :
|
174 |
-
return '';
|
175 |
-
break;
|
176 |
-
}
|
177 |
-
|
178 |
-
|
179 |
-
break;
|
180 |
-
default:
|
181 |
-
return false;
|
182 |
-
break;
|
183 |
-
}
|
184 |
-
|
185 |
-
}
|
186 |
}
|
1 |
+
<?php
|
2 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
+
exit;
|
4 |
+
}
|
5 |
+
|
6 |
+
/**
|
7 |
+
* Class Kiwi_Social_Share_Integration
|
8 |
+
*/
|
9 |
+
class Kiwi_Social_Share_Integration {
|
10 |
+
/**
|
11 |
+
* @var array
|
12 |
+
*/
|
13 |
+
public $themes = array();
|
14 |
+
/**
|
15 |
+
* @var array
|
16 |
+
*/
|
17 |
+
public $plugins = array();
|
18 |
+
/**
|
19 |
+
* @var array
|
20 |
+
*/
|
21 |
+
public $strings = array();
|
22 |
+
|
23 |
+
/**
|
24 |
+
* Kiwi_Social_Share_Integration constructor.
|
25 |
+
*/
|
26 |
+
public function __construct() {
|
27 |
+
$this->themes = array(
|
28 |
+
'newsmag' => array(
|
29 |
+
'slug' => 'newsmag',
|
30 |
+
'label' => esc_html__( 'NewsMag Lite', 'kiwi-social-share' ),
|
31 |
+
'author' => esc_html__( 'MachoThemes', 'kiwi-social-share' )
|
32 |
+
),
|
33 |
+
'regina-lite' => array(
|
34 |
+
'slug' => 'regina-lite',
|
35 |
+
'label' => esc_html__( 'Regina Lite', 'kiwi-social-share' ),
|
36 |
+
'author' => esc_html__( 'MachoThemes', 'kiwi-social-share' )
|
37 |
+
),
|
38 |
+
'affluent' => array(
|
39 |
+
'slug' => 'affluent',
|
40 |
+
'label' => esc_html__( 'Affluent', 'kiwi-social-share' ),
|
41 |
+
'author' => esc_html__( 'CPO Themes', 'kiwi-social-share' )
|
42 |
+
),
|
43 |
+
'allegiant' => array(
|
44 |
+
'slug' => 'allegiant',
|
45 |
+
'label' => esc_html__( 'Allegiant', 'kiwi-social-share' ),
|
46 |
+
'author' => esc_html__( 'CPO Themes', 'kiwi-social-share' )
|
47 |
+
),
|
48 |
+
'transcend' => array(
|
49 |
+
'slug' => 'transcend',
|
50 |
+
'label' => esc_html__( 'Transcend', 'kiwi-social-share' ),
|
51 |
+
'author' => esc_html__( 'CPO Themes', 'kiwi-social-share' )
|
52 |
+
),
|
53 |
+
);
|
54 |
+
|
55 |
+
$this->strings = array(
|
56 |
+
'not-installed' => esc_html__( 'Install Now', 'kiwi-social-share' ),
|
57 |
+
'not-active' => esc_html__( 'Activate', 'kiwi-social-share' ),
|
58 |
+
);
|
59 |
+
|
60 |
+
$this->class_names = array(
|
61 |
+
'not-installed' => 'theme-install',
|
62 |
+
'not-active' => 'activate'
|
63 |
+
);
|
64 |
+
|
65 |
+
$this->call_themes_api();
|
66 |
+
}
|
67 |
+
|
68 |
+
/**
|
69 |
+
* @return array
|
70 |
+
*/
|
71 |
+
public function call_themes_api() {
|
72 |
+
include_once( ABSPATH . 'wp-admin/includes/theme-install.php' );
|
73 |
+
|
74 |
+
$themes = array();
|
75 |
+
foreach ( $this->themes as $theme ) {
|
76 |
+
$themes[ $theme['slug'] ] = $this->_call_themes_api( $theme['slug'] );
|
77 |
+
}
|
78 |
+
|
79 |
+
foreach ( $themes as $k => $v ) {
|
80 |
+
$this->themes[ $k ]['version'] = $v->version;
|
81 |
+
$this->themes[ $k ]['preview_url'] = $v->preview_url;
|
82 |
+
$this->themes[ $k ]['screenshot_url'] = $v->screenshot_url;
|
83 |
+
$this->themes[ $k ]['homepage'] = $v->homepage;
|
84 |
+
$this->themes[ $k ]['download_link'] = $v->download_link;
|
85 |
+
$this->themes[ $k ]['status'] = $this->set_status( $v->slug, 'theme' );
|
86 |
+
$this->themes[ $k ]['action_link'] = $this->create_action_link( $v->slug, 'theme' );
|
87 |
+
}
|
88 |
+
|
89 |
+
return $themes;
|
90 |
+
|
91 |
+
}
|
92 |
+
|
93 |
+
/**
|
94 |
+
* @param $slug
|
95 |
+
*
|
96 |
+
* @return array|mixed|object|WP_Error
|
97 |
+
*/
|
98 |
+
private function _call_themes_api( $slug ) {
|
99 |
+
|
100 |
+
if ( false === ( $call_api = get_transient( 'kiwi_themes_information_transient_' . $slug ) ) ) {
|
101 |
+
$call_api = themes_api( 'theme_information', array(
|
102 |
+
'slug' => $slug,
|
103 |
+
) );
|
104 |
+
set_transient( 'kiwi_themes_information_transient_' . $slug, $call_api, 30 * MINUTE_IN_SECONDS );
|
105 |
+
}
|
106 |
+
|
107 |
+
return $call_api;
|
108 |
+
}
|
109 |
+
|
110 |
+
/**
|
111 |
+
* @param $slug
|
112 |
+
* @param $context
|
113 |
+
*
|
114 |
+
* @return bool|string
|
115 |
+
*/
|
116 |
+
private function set_status( $slug, $context ) {
|
117 |
+
switch ( $context ) {
|
118 |
+
case 'theme':
|
119 |
+
$t = wp_get_theme( $slug );
|
120 |
+
if ( is_wp_error( $t->errors() ) ) {
|
121 |
+
return 'not-installed';
|
122 |
+
}
|
123 |
+
|
124 |
+
$t = wp_get_theme();
|
125 |
+
|
126 |
+
if ( $slug == $t->name || $slug == $t->parent_theme ) {
|
127 |
+
return 'active';
|
128 |
+
}
|
129 |
+
|
130 |
+
return 'not-active';
|
131 |
+
break;
|
132 |
+
default:
|
133 |
+
return false;
|
134 |
+
break;
|
135 |
+
}
|
136 |
+
}
|
137 |
+
|
138 |
+
/**
|
139 |
+
* @param $slug
|
140 |
+
* @param $context
|
141 |
+
*
|
142 |
+
* @return bool|string
|
143 |
+
*/
|
144 |
+
private function create_action_link( $slug, $context ) {
|
145 |
+
switch ( $context ) {
|
146 |
+
case 'theme':
|
147 |
+
$status = $this->set_status( $slug, $context );
|
148 |
+
switch ( $status ) {
|
149 |
+
case 'not-installed':
|
150 |
+
return wp_nonce_url(
|
151 |
+
add_query_arg(
|
152 |
+
array(
|
153 |
+
'action' => 'install-theme',
|
154 |
+
'theme' => $slug
|
155 |
+
),
|
156 |
+
network_admin_url( 'update.php' )
|
157 |
+
),
|
158 |
+
'install-theme_' . $slug
|
159 |
+
);
|
160 |
+
break;
|
161 |
+
case 'not-active':
|
162 |
+
return wp_nonce_url(
|
163 |
+
add_query_arg(
|
164 |
+
array(
|
165 |
+
'action' => 'activate',
|
166 |
+
'stylesheet' => $slug
|
167 |
+
),
|
168 |
+
network_admin_url( 'themes.php' )
|
169 |
+
),
|
170 |
+
'switch-theme_' . $slug
|
171 |
+
);
|
172 |
+
break;
|
173 |
+
default :
|
174 |
+
return '';
|
175 |
+
break;
|
176 |
+
}
|
177 |
+
|
178 |
+
|
179 |
+
break;
|
180 |
+
default:
|
181 |
+
return false;
|
182 |
+
break;
|
183 |
+
}
|
184 |
+
|
185 |
+
}
|
186 |
}
|
includes/lib/class-kiwi-social-share-metaboxes.php
CHANGED
@@ -1,132 +1,132 @@
|
|
1 |
-
<?php
|
2 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
-
exit;
|
4 |
-
}
|
5 |
-
|
6 |
-
/**
|
7 |
-
* Class Kiwi_Social_Share_Metaboxes
|
8 |
-
*/
|
9 |
-
class Kiwi_Social_Share_Metaboxes {
|
10 |
-
/**
|
11 |
-
* @var object
|
12 |
-
*
|
13 |
-
* CMB2 object
|
14 |
-
*/
|
15 |
-
public $metabox = NULL;
|
16 |
-
/**
|
17 |
-
* @var array
|
18 |
-
*/
|
19 |
-
public $options = array();
|
20 |
-
/**
|
21 |
-
* @var bool
|
22 |
-
*/
|
23 |
-
public $global = false;
|
24 |
-
/**
|
25 |
-
* @var array
|
26 |
-
*/
|
27 |
-
public $post_types = array();
|
28 |
-
|
29 |
-
/**
|
30 |
-
* Kiwi_Social_Share_Metaboxes constructor.
|
31 |
-
*/
|
32 |
-
public function __construct() {
|
33 |
-
$this->prefix = 'kiwi_';
|
34 |
-
|
35 |
-
$this->check_if_global();
|
36 |
-
$this->check_post_types();
|
37 |
-
|
38 |
-
$this->set_options();
|
39 |
-
|
40 |
-
add_action( 'cmb2_admin_init', array( $this, 'register_metabox' ) );
|
41 |
-
}
|
42 |
-
|
43 |
-
/**
|
44 |
-
* Set the options that we will add to the metabox
|
45 |
-
*/
|
46 |
-
public function set_options() {
|
47 |
-
$this->options = array(
|
48 |
-
'social-media-title' => array(
|
49 |
-
'name' => esc_html__( 'Social Media Title', 'kiwi-social-share' ),
|
50 |
-
'id' => $this->prefix . 'social-media-title',
|
51 |
-
'type' => 'text',
|
52 |
-
),
|
53 |
-
|
54 |
-
'social-media-description' => array(
|
55 |
-
'name' => esc_html__( 'Social Media Description', 'kiwi-social-share' ),
|
56 |
-
'id' => $this->prefix . 'social-media-description',
|
57 |
-
'type' => 'textarea',
|
58 |
-
),
|
59 |
-
|
60 |
-
'social-media-image' => array(
|
61 |
-
'name' => esc_html__( 'Social Media Image', 'kiwi-social-share' ),
|
62 |
-
'id' => $this->prefix . 'social-media-image',
|
63 |
-
'type' => 'file',
|
64 |
-
),
|
65 |
-
|
66 |
-
'social-media-custom-tweet' => array(
|
67 |
-
'name' => esc_html__( 'Custom Tweet', 'kiwi-social-share' ),
|
68 |
-
'id' => $this->prefix . 'social-media-custom-tweet',
|
69 |
-
'type' => 'textarea',
|
70 |
-
),
|
71 |
-
|
72 |
-
'social-media-pinterest-image' => array(
|
73 |
-
'name' => esc_html__( 'Social Media Pinterest Image', 'kiwi-social-share' ),
|
74 |
-
'id' => $this->prefix . 'social-media-pinterest-image',
|
75 |
-
'type' => 'file',
|
76 |
-
),
|
77 |
-
|
78 |
-
'social-media-pinterest-description' => array(
|
79 |
-
'name' => esc_html__( 'Pinterest Description', 'kiwi-social-share' ),
|
80 |
-
'id' => $this->prefix . 'social-media-pinterest-description',
|
81 |
-
'type' => 'textarea',
|
82 |
-
),
|
83 |
-
);
|
84 |
-
}
|
85 |
-
|
86 |
-
/**
|
87 |
-
* In case we have an 'all' match, we don`t need to search for specific post types
|
88 |
-
*/
|
89 |
-
public function check_if_global() {
|
90 |
-
$metaboxes = Kiwi_Social_Share_Helper::get_setting_value( 'custom_meta_boxes_posttypes', '' );
|
91 |
-
if ( 'all' == $metaboxes ) {
|
92 |
-
$this->global = true;
|
93 |
-
}
|
94 |
-
}
|
95 |
-
|
96 |
-
/**
|
97 |
-
* Get all the post types where we need to add the custom metaboxes
|
98 |
-
*/
|
99 |
-
public function check_post_types() {
|
100 |
-
$all_post_types = Kiwi_Social_Share_Helper::get_custom_post_types();
|
101 |
-
foreach ( $all_post_types as $k => $v ) {
|
102 |
-
$this->post_types[] = $k;
|
103 |
-
}
|
104 |
-
|
105 |
-
if ( ! $this->global ) {
|
106 |
-
$this->post_types = Kiwi_Social_Share_Helper::get_setting_value( 'custom_meta_boxes_posttypes_list', array() );
|
107 |
-
}
|
108 |
-
}
|
109 |
-
|
110 |
-
/**
|
111 |
-
* Register metaboxes
|
112 |
-
*/
|
113 |
-
public function register_metabox() {
|
114 |
-
$this->metabox = new_cmb2_box( array(
|
115 |
-
'id' => $this->prefix . 'metabox',
|
116 |
-
'title' => esc_html__( 'Kiwi Social Share Meta Information', 'kiwi-social-share' ),
|
117 |
-
'object_types' => $this->post_types,
|
118 |
-
'closed' => false,
|
119 |
-
) );
|
120 |
-
|
121 |
-
$this->add_fields();
|
122 |
-
}
|
123 |
-
|
124 |
-
/**
|
125 |
-
* Add fields to the metabox
|
126 |
-
*/
|
127 |
-
public function add_fields() {
|
128 |
-
foreach ( $this->options as $id => $option ) {
|
129 |
-
$this->metabox->add_field( $option );
|
130 |
-
}
|
131 |
-
}
|
132 |
}
|
1 |
+
<?php
|
2 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
+
exit;
|
4 |
+
}
|
5 |
+
|
6 |
+
/**
|
7 |
+
* Class Kiwi_Social_Share_Metaboxes
|
8 |
+
*/
|
9 |
+
class Kiwi_Social_Share_Metaboxes {
|
10 |
+
/**
|
11 |
+
* @var object
|
12 |
+
*
|
13 |
+
* CMB2 object
|
14 |
+
*/
|
15 |
+
public $metabox = NULL;
|
16 |
+
/**
|
17 |
+
* @var array
|
18 |
+
*/
|
19 |
+
public $options = array();
|
20 |
+
/**
|
21 |
+
* @var bool
|
22 |
+
*/
|
23 |
+
public $global = false;
|
24 |
+
/**
|
25 |
+
* @var array
|
26 |
+
*/
|
27 |
+
public $post_types = array();
|
28 |
+
|
29 |
+
/**
|
30 |
+
* Kiwi_Social_Share_Metaboxes constructor.
|
31 |
+
*/
|
32 |
+
public function __construct() {
|
33 |
+
$this->prefix = 'kiwi_';
|
34 |
+
|
35 |
+
$this->check_if_global();
|
36 |
+
$this->check_post_types();
|
37 |
+
|
38 |
+
$this->set_options();
|
39 |
+
|
40 |
+
add_action( 'cmb2_admin_init', array( $this, 'register_metabox' ) );
|
41 |
+
}
|
42 |
+
|
43 |
+
/**
|
44 |
+
* Set the options that we will add to the metabox
|
45 |
+
*/
|
46 |
+
public function set_options() {
|
47 |
+
$this->options = array(
|
48 |
+
'social-media-title' => array(
|
49 |
+
'name' => esc_html__( 'Social Media Title', 'kiwi-social-share' ),
|
50 |
+
'id' => $this->prefix . 'social-media-title',
|
51 |
+
'type' => 'text',
|
52 |
+
),
|
53 |
+
|
54 |
+
'social-media-description' => array(
|
55 |
+
'name' => esc_html__( 'Social Media Description', 'kiwi-social-share' ),
|
56 |
+
'id' => $this->prefix . 'social-media-description',
|
57 |
+
'type' => 'textarea',
|
58 |
+
),
|
59 |
+
|
60 |
+
'social-media-image' => array(
|
61 |
+
'name' => esc_html__( 'Social Media Image', 'kiwi-social-share' ),
|
62 |
+
'id' => $this->prefix . 'social-media-image',
|
63 |
+
'type' => 'file',
|
64 |
+
),
|
65 |
+
|
66 |
+
'social-media-custom-tweet' => array(
|
67 |
+
'name' => esc_html__( 'Custom Tweet', 'kiwi-social-share' ),
|
68 |
+
'id' => $this->prefix . 'social-media-custom-tweet',
|
69 |
+
'type' => 'textarea',
|
70 |
+
),
|
71 |
+
|
72 |
+
'social-media-pinterest-image' => array(
|
73 |
+
'name' => esc_html__( 'Social Media Pinterest Image', 'kiwi-social-share' ),
|
74 |
+
'id' => $this->prefix . 'social-media-pinterest-image',
|
75 |
+
'type' => 'file',
|
76 |
+
),
|
77 |
+
|
78 |
+
'social-media-pinterest-description' => array(
|
79 |
+
'name' => esc_html__( 'Pinterest Description', 'kiwi-social-share' ),
|
80 |
+
'id' => $this->prefix . 'social-media-pinterest-description',
|
81 |
+
'type' => 'textarea',
|
82 |
+
),
|
83 |
+
);
|
84 |
+
}
|
85 |
+
|
86 |
+
/**
|
87 |
+
* In case we have an 'all' match, we don`t need to search for specific post types
|
88 |
+
*/
|
89 |
+
public function check_if_global() {
|
90 |
+
$metaboxes = Kiwi_Social_Share_Helper::get_setting_value( 'custom_meta_boxes_posttypes', '' );
|
91 |
+
if ( 'all' == $metaboxes ) {
|
92 |
+
$this->global = true;
|
93 |
+
}
|
94 |
+
}
|
95 |
+
|
96 |
+
/**
|
97 |
+
* Get all the post types where we need to add the custom metaboxes
|
98 |
+
*/
|
99 |
+
public function check_post_types() {
|
100 |
+
$all_post_types = Kiwi_Social_Share_Helper::get_custom_post_types();
|
101 |
+
foreach ( $all_post_types as $k => $v ) {
|
102 |
+
$this->post_types[] = $k;
|
103 |
+
}
|
104 |
+
|
105 |
+
if ( ! $this->global ) {
|
106 |
+
$this->post_types = Kiwi_Social_Share_Helper::get_setting_value( 'custom_meta_boxes_posttypes_list', array() );
|
107 |
+
}
|
108 |
+
}
|
109 |
+
|
110 |
+
/**
|
111 |
+
* Register metaboxes
|
112 |
+
*/
|
113 |
+
public function register_metabox() {
|
114 |
+
$this->metabox = new_cmb2_box( array(
|
115 |
+
'id' => $this->prefix . 'metabox',
|
116 |
+
'title' => esc_html__( 'Kiwi Social Share Meta Information', 'kiwi-social-share' ),
|
117 |
+
'object_types' => $this->post_types,
|
118 |
+
'closed' => false,
|
119 |
+
) );
|
120 |
+
|
121 |
+
$this->add_fields();
|
122 |
+
}
|
123 |
+
|
124 |
+
/**
|
125 |
+
* Add fields to the metabox
|
126 |
+
*/
|
127 |
+
public function add_fields() {
|
128 |
+
foreach ( $this->options as $id => $option ) {
|
129 |
+
$this->metabox->add_field( $option );
|
130 |
+
}
|
131 |
+
}
|
132 |
}
|
includes/lib/class-kiwi-social-share-sanitizers.php
CHANGED
@@ -1,211 +1,211 @@
|
|
1 |
-
<?php
|
2 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
-
exit;
|
4 |
-
}
|
5 |
-
|
6 |
-
/**
|
7 |
-
* Class Kiwi_Social_Share_Sanitizers
|
8 |
-
*/
|
9 |
-
class Kiwi_Social_Share_Sanitizers {
|
10 |
-
|
11 |
-
/**
|
12 |
-
* @param $input
|
13 |
-
*
|
14 |
-
* @return array
|
15 |
-
*/
|
16 |
-
public static function automatic( $input ) {
|
17 |
-
$sanitized = array();
|
18 |
-
$token = Kiwi_Social_Share::instance();
|
19 |
-
$token = $token->_token;
|
20 |
-
/**
|
21 |
-
* In some cases, it's too early to check this array (it's not yet formed)
|
22 |
-
*/
|
23 |
-
if ( ! is_array( $input ) ) {
|
24 |
-
return $input;
|
25 |
-
}
|
26 |
-
|
27 |
-
foreach ( $input as $key => $val ) {
|
28 |
-
switch ( $key ) {
|
29 |
-
case 'networks_ordering':
|
30 |
-
$sanitized[ $key ] = sanitize_text_field( $val );
|
31 |
-
break;
|
32 |
-
case 'license_key':
|
33 |
-
$sanitized[ $key ] = trim( sanitize_text_field( $val ) );
|
34 |
-
delete_transient( $token . '_license_message' );
|
35 |
-
break;
|
36 |
-
case 'networks_article_bar':
|
37 |
-
case 'networks_floating_bar':
|
38 |
-
$sanitized[ $key ] = self::checkbox_multiple_fields_social( $val );
|
39 |
-
break;
|
40 |
-
case 'floating_bar_color':
|
41 |
-
$sanitized[ $key ] = sanitize_hex_color( $val );
|
42 |
-
break;
|
43 |
-
case 'share_buttons':
|
44 |
-
case 'share_buttons_posttypes':
|
45 |
-
case 'floating_panel_posttypes':
|
46 |
-
case 'floating_panel':
|
47 |
-
case 'share_counts':
|
48 |
-
case 'click_to_tweet':
|
49 |
-
case 'share_buttons_location':
|
50 |
-
case 'floating_panel_location':
|
51 |
-
case 'custom_meta_boxes_posttypes':
|
52 |
-
case 'click_to_tweet_posttypes':
|
53 |
-
case 'highlight_to_tweet_posttypes':
|
54 |
-
case 'styles_colors':
|
55 |
-
case 'button_shape':
|
56 |
-
case 'button_shape_floating':
|
57 |
-
case 'ga_tracking':
|
58 |
-
case 'advanced_shortcode_manager':
|
59 |
-
case 'mobile_only_sharing':
|
60 |
-
$sanitized[ $key ] = self::radio_fields( $val );
|
61 |
-
break;
|
62 |
-
case 'floating_panel_posttypes_list':
|
63 |
-
case 'share_buttons_posttypes_list':
|
64 |
-
case 'click_to_tweet_posttypes_list':
|
65 |
-
case 'highlight_to_tweet_posttypes_list':
|
66 |
-
case 'custom_meta_boxes_posttypes_list':
|
67 |
-
$sanitized[ $key ] = self::checkbox_multiple_fields_post_types( $val );
|
68 |
-
break;
|
69 |
-
default :
|
70 |
-
$sanitized[ $key ] = sanitize_text_field( $val );
|
71 |
-
break;
|
72 |
-
}
|
73 |
-
}
|
74 |
-
|
75 |
-
return $sanitized;
|
76 |
-
}
|
77 |
-
|
78 |
-
|
79 |
-
/**
|
80 |
-
* Sanitize Radio fields
|
81 |
-
*
|
82 |
-
* @param $input
|
83 |
-
*
|
84 |
-
* @return string
|
85 |
-
*/
|
86 |
-
public static function radio_fields( $input ) {
|
87 |
-
if ( ! empty( $input ) ) {
|
88 |
-
return sanitize_text_field( $input );
|
89 |
-
}
|
90 |
-
|
91 |
-
return $input;
|
92 |
-
}
|
93 |
-
|
94 |
-
/**
|
95 |
-
* Sanitize Text fields
|
96 |
-
*
|
97 |
-
* @param $input
|
98 |
-
*
|
99 |
-
* @return string
|
100 |
-
*/
|
101 |
-
public static function text_fields( $input ) {
|
102 |
-
if ( ! empty( $input ) ) {
|
103 |
-
return sanitize_text_field( $input );
|
104 |
-
}
|
105 |
-
|
106 |
-
return $input;
|
107 |
-
}
|
108 |
-
|
109 |
-
/**
|
110 |
-
* Sanitize multiple values to be saved in the database
|
111 |
-
*
|
112 |
-
* @param $input
|
113 |
-
*
|
114 |
-
* @return array
|
115 |
-
*/
|
116 |
-
public static function checkbox_multiple_fields( $input ) {
|
117 |
-
if ( ! empty( $input ) ) {
|
118 |
-
$sanitized = array();
|
119 |
-
foreach ( $input as $val ) {
|
120 |
-
$sanitized[] = sanitize_text_field( $val );
|
121 |
-
}
|
122 |
-
|
123 |
-
return $sanitized;
|
124 |
-
}
|
125 |
-
|
126 |
-
return $input;
|
127 |
-
}
|
128 |
-
|
129 |
-
/**
|
130 |
-
* We don`t allow saving other values in the database except these
|
131 |
-
*
|
132 |
-
* @param $input
|
133 |
-
*
|
134 |
-
* @return array
|
135 |
-
*/
|
136 |
-
public static function checkbox_multiple_fields_social( $input ) {
|
137 |
-
$allowed = array(
|
138 |
-
'facebook',
|
139 |
-
'twitter',
|
140 |
-
'linkedin',
|
141 |
-
'google-plus',
|
142 |
-
'pinterest',
|
143 |
-
'reddit',
|
144 |
-
'email',
|
145 |
-
'whatsapp',
|
146 |
-
'telegram',
|
147 |
-
'skype'
|
148 |
-
);
|
149 |
-
|
150 |
-
if ( ! empty( $input ) ) {
|
151 |
-
foreach ( $input as $index => $social ) {
|
152 |
-
if ( ! in_array( $social, $allowed ) ) {
|
153 |
-
unset( $input[ $index ] );
|
154 |
-
}
|
155 |
-
}
|
156 |
-
}
|
157 |
-
|
158 |
-
return self::checkbox_multiple_fields( $input );
|
159 |
-
}
|
160 |
-
|
161 |
-
/**
|
162 |
-
* Don't allow undefined custom post types injection
|
163 |
-
*
|
164 |
-
* @param $input
|
165 |
-
*
|
166 |
-
* @return array
|
167 |
-
*/
|
168 |
-
public static function checkbox_multiple_fields_post_types( $input ) {
|
169 |
-
$allowed = Kiwi_Social_Share_Helper::get_custom_post_types();
|
170 |
-
|
171 |
-
if ( ! empty( $input ) ) {
|
172 |
-
foreach ( $input as $index => $type ) {
|
173 |
-
if ( ! array_key_exists( $type, $allowed ) ) {
|
174 |
-
unset( $input[ $index ] );
|
175 |
-
}
|
176 |
-
}
|
177 |
-
}
|
178 |
-
|
179 |
-
return self::checkbox_multiple_fields( $input );
|
180 |
-
}
|
181 |
-
|
182 |
-
/**
|
183 |
-
* Sanitize hex fields
|
184 |
-
*
|
185 |
-
* @param $input
|
186 |
-
*
|
187 |
-
* @return array
|
188 |
-
*/
|
189 |
-
public static function multiple_hex_fields( $input ) {
|
190 |
-
if ( ! empty( $input ) ) {
|
191 |
-
$sanitized = array();
|
192 |
-
foreach ( $input as $array => $properties ) {
|
193 |
-
foreach ( $properties as $property => $val ) {
|
194 |
-
$sanitized[ $array ][ $property ] = sanitize_hex_color( $val );
|
195 |
-
}
|
196 |
-
}
|
197 |
-
|
198 |
-
$instance = Kiwi_Social_Share::instance();
|
199 |
-
/**
|
200 |
-
* Delete transient when we update the options
|
201 |
-
* CHECK ->> includes/class-kiwi-social-share-customization.php:163
|
202 |
-
*/
|
203 |
-
delete_transient( $instance->_token . '_css_transient' );
|
204 |
-
|
205 |
-
return $sanitized;
|
206 |
-
}
|
207 |
-
|
208 |
-
|
209 |
-
return $input;
|
210 |
-
}
|
211 |
}
|
1 |
+
<?php
|
2 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
+
exit;
|
4 |
+
}
|
5 |
+
|
6 |
+
/**
|
7 |
+
* Class Kiwi_Social_Share_Sanitizers
|
8 |
+
*/
|
9 |
+
class Kiwi_Social_Share_Sanitizers {
|
10 |
+
|
11 |
+
/**
|
12 |
+
* @param $input
|
13 |
+
*
|
14 |
+
* @return array
|
15 |
+
*/
|
16 |
+
public static function automatic( $input ) {
|
17 |
+
$sanitized = array();
|
18 |
+
$token = Kiwi_Social_Share::instance();
|
19 |
+
$token = $token->_token;
|
20 |
+
/**
|
21 |
+
* In some cases, it's too early to check this array (it's not yet formed)
|
22 |
+
*/
|
23 |
+
if ( ! is_array( $input ) ) {
|
24 |
+
return $input;
|
25 |
+
}
|
26 |
+
|
27 |
+
foreach ( $input as $key => $val ) {
|
28 |
+
switch ( $key ) {
|
29 |
+
case 'networks_ordering':
|
30 |
+
$sanitized[ $key ] = sanitize_text_field( $val );
|
31 |
+
break;
|
32 |
+
case 'license_key':
|
33 |
+
$sanitized[ $key ] = trim( sanitize_text_field( $val ) );
|
34 |
+
delete_transient( $token . '_license_message' );
|
35 |
+
break;
|
36 |
+
case 'networks_article_bar':
|
37 |
+
case 'networks_floating_bar':
|
38 |
+
$sanitized[ $key ] = self::checkbox_multiple_fields_social( $val );
|
39 |
+
break;
|
40 |
+
case 'floating_bar_color':
|
41 |
+
$sanitized[ $key ] = sanitize_hex_color( $val );
|
42 |
+
break;
|
43 |
+
case 'share_buttons':
|
44 |
+
case 'share_buttons_posttypes':
|
45 |
+
case 'floating_panel_posttypes':
|
46 |
+
case 'floating_panel':
|
47 |
+
case 'share_counts':
|
48 |
+
case 'click_to_tweet':
|
49 |
+
case 'share_buttons_location':
|
50 |
+
case 'floating_panel_location':
|
51 |
+
case 'custom_meta_boxes_posttypes':
|
52 |
+
case 'click_to_tweet_posttypes':
|
53 |
+
case 'highlight_to_tweet_posttypes':
|
54 |
+
case 'styles_colors':
|
55 |
+
case 'button_shape':
|
56 |
+
case 'button_shape_floating':
|
57 |
+
case 'ga_tracking':
|
58 |
+
case 'advanced_shortcode_manager':
|
59 |
+
case 'mobile_only_sharing':
|
60 |
+
$sanitized[ $key ] = self::radio_fields( $val );
|
61 |
+
break;
|
62 |
+
case 'floating_panel_posttypes_list':
|
63 |
+
case 'share_buttons_posttypes_list':
|
64 |
+
case 'click_to_tweet_posttypes_list':
|
65 |
+
case 'highlight_to_tweet_posttypes_list':
|
66 |
+
case 'custom_meta_boxes_posttypes_list':
|
67 |
+
$sanitized[ $key ] = self::checkbox_multiple_fields_post_types( $val );
|
68 |
+
break;
|
69 |
+
default :
|
70 |
+
$sanitized[ $key ] = sanitize_text_field( $val );
|
71 |
+
break;
|
72 |
+
}
|
73 |
+
}
|
74 |
+
|
75 |
+
return $sanitized;
|
76 |
+
}
|
77 |
+
|
78 |
+
|
79 |
+
/**
|
80 |
+
* Sanitize Radio fields
|
81 |
+
*
|
82 |
+
* @param $input
|
83 |
+
*
|
84 |
+
* @return string
|
85 |
+
*/
|
86 |
+
public static function radio_fields( $input ) {
|
87 |
+
if ( ! empty( $input ) ) {
|
88 |
+
return sanitize_text_field( $input );
|
89 |
+
}
|
90 |
+
|
91 |
+
return $input;
|
92 |
+
}
|
93 |
+
|
94 |
+
/**
|
95 |
+
* Sanitize Text fields
|
96 |
+
*
|
97 |
+
* @param $input
|
98 |
+
*
|
99 |
+
* @return string
|
100 |
+
*/
|
101 |
+
public static function text_fields( $input ) {
|
102 |
+
if ( ! empty( $input ) ) {
|
103 |
+
return sanitize_text_field( $input );
|
104 |
+
}
|
105 |
+
|
106 |
+
return $input;
|
107 |
+
}
|
108 |
+
|
109 |
+
/**
|
110 |
+
* Sanitize multiple values to be saved in the database
|
111 |
+
*
|
112 |
+
* @param $input
|
113 |
+
*
|
114 |
+
* @return array
|
115 |
+
*/
|
116 |
+
public static function checkbox_multiple_fields( $input ) {
|
117 |
+
if ( ! empty( $input ) ) {
|
118 |
+
$sanitized = array();
|
119 |
+
foreach ( $input as $val ) {
|
120 |
+
$sanitized[] = sanitize_text_field( $val );
|
121 |
+
}
|
122 |
+
|
123 |
+
return $sanitized;
|
124 |
+
}
|
125 |
+
|
126 |
+
return $input;
|
127 |
+
}
|
128 |
+
|
129 |
+
/**
|
130 |
+
* We don`t allow saving other values in the database except these
|
131 |
+
*
|
132 |
+
* @param $input
|
133 |
+
*
|
134 |
+
* @return array
|
135 |
+
*/
|
136 |
+
public static function checkbox_multiple_fields_social( $input ) {
|
137 |
+
$allowed = array(
|
138 |
+
'facebook',
|
139 |
+
'twitter',
|
140 |
+
'linkedin',
|
141 |
+
'google-plus',
|
142 |
+
'pinterest',
|
143 |
+
'reddit',
|
144 |
+
'email',
|
145 |
+
'whatsapp',
|
146 |
+
'telegram',
|
147 |
+
'skype'
|
148 |
+
);
|
149 |
+
|
150 |
+
if ( ! empty( $input ) ) {
|
151 |
+
foreach ( $input as $index => $social ) {
|
152 |
+
if ( ! in_array( $social, $allowed ) ) {
|
153 |
+
unset( $input[ $index ] );
|
154 |
+
}
|
155 |
+
}
|
156 |
+
}
|
157 |
+
|
158 |
+
return self::checkbox_multiple_fields( $input );
|
159 |
+
}
|
160 |
+
|
161 |
+
/**
|
162 |
+
* Don't allow undefined custom post types injection
|
163 |
+
*
|
164 |
+
* @param $input
|
165 |
+
*
|
166 |
+
* @return array
|
167 |
+
*/
|
168 |
+
public static function checkbox_multiple_fields_post_types( $input ) {
|
169 |
+
$allowed = Kiwi_Social_Share_Helper::get_custom_post_types();
|
170 |
+
|
171 |
+
if ( ! empty( $input ) ) {
|
172 |
+
foreach ( $input as $index => $type ) {
|
173 |
+
if ( ! array_key_exists( $type, $allowed ) ) {
|
174 |
+
unset( $input[ $index ] );
|
175 |
+
}
|
176 |
+
}
|
177 |
+
}
|
178 |
+
|
179 |
+
return self::checkbox_multiple_fields( $input );
|
180 |
+
}
|
181 |
+
|
182 |
+
/**
|
183 |
+
* Sanitize hex fields
|
184 |
+
*
|
185 |
+
* @param $input
|
186 |
+
*
|
187 |
+
* @return array
|
188 |
+
*/
|
189 |
+
public static function multiple_hex_fields( $input ) {
|
190 |
+
if ( ! empty( $input ) ) {
|
191 |
+
$sanitized = array();
|
192 |
+
foreach ( $input as $array => $properties ) {
|
193 |
+
foreach ( $properties as $property => $val ) {
|
194 |
+
$sanitized[ $array ][ $property ] = sanitize_hex_color( $val );
|
195 |
+
}
|
196 |
+
}
|
197 |
+
|
198 |
+
$instance = Kiwi_Social_Share::instance();
|
199 |
+
/**
|
200 |
+
* Delete transient when we update the options
|
201 |
+
* CHECK ->> includes/class-kiwi-social-share-customization.php:163
|
202 |
+
*/
|
203 |
+
delete_transient( $instance->_token . '_css_transient' );
|
204 |
+
|
205 |
+
return $sanitized;
|
206 |
+
}
|
207 |
+
|
208 |
+
|
209 |
+
return $input;
|
210 |
+
}
|
211 |
}
|
includes/lib/class-kiwi-social-share-settings.php
CHANGED
@@ -1,246 +1,246 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
4 |
-
exit;
|
5 |
-
}
|
6 |
-
|
7 |
-
/**
|
8 |
-
* Class Kiwi_Social_Share_Settings
|
9 |
-
*/
|
10 |
-
class Kiwi_Social_Share_Settings {
|
11 |
-
|
12 |
-
/**
|
13 |
-
* The single instance of Kiwi_Social_Share_Settings.
|
14 |
-
*
|
15 |
-
* @var object
|
16 |
-
* @access private
|
17 |
-
* @since 1.0.0
|
18 |
-
*/
|
19 |
-
private static $_instance = NULL;
|
20 |
-
|
21 |
-
/**
|
22 |
-
* The main plugin object.
|
23 |
-
*
|
24 |
-
* @var object
|
25 |
-
* @access public
|
26 |
-
* @since 1.0.0
|
27 |
-
*/
|
28 |
-
public $parent = NULL;
|
29 |
-
|
30 |
-
/**
|
31 |
-
* Prefix for plugin settings.
|
32 |
-
*
|
33 |
-
* @var string
|
34 |
-
* @access public
|
35 |
-
* @since 1.0.0
|
36 |
-
*/
|
37 |
-
public $base = '';
|
38 |
-
|
39 |
-
/**
|
40 |
-
* Available settings for plugin.
|
41 |
-
*
|
42 |
-
* @var array
|
43 |
-
* @access public
|
44 |
-
* @since 1.0.0
|
45 |
-
*/
|
46 |
-
public $settings = array();
|
47 |
-
|
48 |
-
/**
|
49 |
-
* Kiwi_Social_Share_Settings constructor.
|
50 |
-
*
|
51 |
-
* @param $parent
|
52 |
-
*/
|
53 |
-
public function __construct( $parent ) {
|
54 |
-
$this->parent = $parent;
|
55 |
-
|
56 |
-
$this->base = 'kiwi_';
|
57 |
-
|
58 |
-
// Initialise settings
|
59 |
-
add_action( 'init', array( $this, 'init_settings' ), 11 );
|
60 |
-
|
61 |
-
// Register plugin settings
|
62 |
-
add_action( 'admin_init', array( $this, 'register_settings' ) );
|
63 |
-
|
64 |
-
// Add settings page to menu
|
65 |
-
add_action( 'admin_menu', array( $this, 'add_menu_item' ) );
|
66 |
-
|
67 |
-
// Add settings link to plugins page
|
68 |
-
add_filter( 'plugin_action_links_' . plugin_basename( $this->parent->file ), array(
|
69 |
-
$this,
|
70 |
-
'add_settings_link'
|
71 |
-
) );
|
72 |
-
}
|
73 |
-
|
74 |
-
/**
|
75 |
-
* Initialise settings
|
76 |
-
*
|
77 |
-
* @return void
|
78 |
-
*/
|
79 |
-
public function init_settings() {
|
80 |
-
$this->settings = $this->settings_fields();
|
81 |
-
}
|
82 |
-
|
83 |
-
/**
|
84 |
-
* Add settings page to admin menu
|
85 |
-
*
|
86 |
-
* @return void
|
87 |
-
*/
|
88 |
-
public function add_menu_item() {
|
89 |
-
/* start-lite-version */
|
90 |
-
$page = add_menu_page( __( 'Kiwi', 'kiwi-social-share' ), __( 'Kiwi', 'kiwi-social-share' ), 'manage_options', $this->parent->_token . '_settings', array(
|
91 |
-
$this,
|
92 |
-
'settings_page'
|
93 |
-
), 'dashicons-share-alt' );
|
94 |
-
/* end-lite-version */
|
95 |
-
|
96 |
-
|
97 |
-
$advanced_shortcodes = Kiwi_Social_Share_Helper::get_setting_value( 'advanced_shortcode_manager', false, 'kiwi_advanced_settings' );
|
98 |
-
if ( $advanced_shortcodes ) {
|
99 |
-
add_submenu_page( $this->parent->_token . '_settings', __( 'Shortcodes', 'kiwi-social-share' ), __( 'Shortcodes', 'kiwi-social-share' ), 'manage_options', 'edit.php?post_type=kiwi-shortcodes' );
|
100 |
-
}
|
101 |
-
}
|
102 |
-
|
103 |
-
/**
|
104 |
-
* Add settings link to plugin list table
|
105 |
-
*
|
106 |
-
* @param array $links Existing links
|
107 |
-
*
|
108 |
-
* @return array Modified links
|
109 |
-
*/
|
110 |
-
public function add_settings_link( $links ) {
|
111 |
-
$settings_link = '<a href="options-general.php?page=' . $this->parent->_token . '_settings">' . esc_html__( 'Settings', 'kiwi-social-share' ) . '</a>';
|
112 |
-
array_push( $links, $settings_link );
|
113 |
-
|
114 |
-
return $links;
|
115 |
-
}
|
116 |
-
|
117 |
-
/**
|
118 |
-
* Build settings fields
|
119 |
-
*
|
120 |
-
* @return array Fields to be displayed on settings page
|
121 |
-
*/
|
122 |
-
private function settings_fields() {
|
123 |
-
|
124 |
-
$settings['standard'] = array(
|
125 |
-
'title' => '',
|
126 |
-
'fields' => array(
|
127 |
-
array(
|
128 |
-
'id' => 'general_settings',
|
129 |
-
'callback' => array( 'Kiwi_Social_Share_Sanitizers', 'automatic' ),
|
130 |
-
),
|
131 |
-
|
132 |
-
array(
|
133 |
-
'id' => 'network_colors',
|
134 |
-
'callback' => array( 'Kiwi_Social_Share_Sanitizers', 'multiple_hex_fields' ),
|
135 |
-
),
|
136 |
-
|
137 |
-
array(
|
138 |
-
'id' => 'social_identities',
|
139 |
-
'callback' => array( 'Kiwi_Social_Share_Sanitizers', 'automatic' ),
|
140 |
-
),
|
141 |
-
|
142 |
-
array(
|
143 |
-
'id' => 'advanced_settings',
|
144 |
-
'callback' => array( 'Kiwi_Social_Share_Sanitizers', 'automatic' ),
|
145 |
-
),
|
146 |
-
)
|
147 |
-
);
|
148 |
-
|
149 |
-
$settings = apply_filters( $this->parent->_token . '_settings_fields', $settings );
|
150 |
-
|
151 |
-
return $settings;
|
152 |
-
}
|
153 |
-
|
154 |
-
/**
|
155 |
-
* Register plugin settings
|
156 |
-
*
|
157 |
-
* @return void
|
158 |
-
*/
|
159 |
-
public function register_settings() {
|
160 |
-
if ( is_array( $this->settings ) ) {
|
161 |
-
|
162 |
-
// Check posted/selected tab
|
163 |
-
$current_section = '';
|
164 |
-
if ( isset( $_POST['tab'] ) && $_POST['tab'] ) {
|
165 |
-
$current_section = $_POST['tab'];
|
166 |
-
} else {
|
167 |
-
if ( isset( $_GET['tab'] ) && $_GET['tab'] ) {
|
168 |
-
$current_section = $_GET['tab'];
|
169 |
-
}
|
170 |
-
}
|
171 |
-
|
172 |
-
foreach ( $this->settings as $section => $data ) {
|
173 |
-
|
174 |
-
if ( $current_section && $current_section != $section ) {
|
175 |
-
continue;
|
176 |
-
}
|
177 |
-
|
178 |
-
// Add section to page
|
179 |
-
add_settings_section( $section, $data['title'], array(), $this->parent->_token . '_settings' );
|
180 |
-
|
181 |
-
foreach ( $data['fields'] as $field ) {
|
182 |
-
|
183 |
-
// Validation callback for field
|
184 |
-
$validation = '';
|
185 |
-
if ( isset( $field['callback'] ) ) {
|
186 |
-
$validation = $field['callback'];
|
187 |
-
}
|
188 |
-
|
189 |
-
// Register field
|
190 |
-
$option_name = $this->base . $field['id'];
|
191 |
-
register_setting( $this->parent->_token . '_settings', $option_name, $validation );
|
192 |
-
}
|
193 |
-
|
194 |
-
if ( ! $current_section ) {
|
195 |
-
break;
|
196 |
-
}
|
197 |
-
}
|
198 |
-
}
|
199 |
-
}
|
200 |
-
|
201 |
-
/**
|
202 |
-
* Load settings page content
|
203 |
-
*
|
204 |
-
* @return void
|
205 |
-
*/
|
206 |
-
public function settings_page() {
|
207 |
-
require_once KIWI_SOCIAL_SHARE_BASE . '/includes/backend/kiwi-social-share-backend.php';
|
208 |
-
}
|
209 |
-
|
210 |
-
/**
|
211 |
-
* Main Kiwi_Social_Share_Settings Instance
|
212 |
-
*
|
213 |
-
* Ensures only one instance of Kiwi_Social_Share_Settings is loaded or can be loaded.
|
214 |
-
*
|
215 |
-
* @since 1.0.0
|
216 |
-
* @static
|
217 |
-
* @see Kiwi_Social_Share()
|
218 |
-
* @return Main Kiwi_Social_Share_Settings instance
|
219 |
-
*/
|
220 |
-
public static function instance( $parent ) {
|
221 |
-
if ( is_null( self::$_instance ) ) {
|
222 |
-
self::$_instance = new self( $parent );
|
223 |
-
}
|
224 |
-
|
225 |
-
return self::$_instance;
|
226 |
-
} // End instance()
|
227 |
-
|
228 |
-
/**
|
229 |
-
* Cloning is forbidden.
|
230 |
-
*
|
231 |
-
* @since 1.0.0
|
232 |
-
*/
|
233 |
-
public function __clone() {
|
234 |
-
_doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?' ), $this->parent->_version );
|
235 |
-
} // End __clone()
|
236 |
-
|
237 |
-
/**
|
238 |
-
* Unserializing instances of this class is forbidden.
|
239 |
-
*
|
240 |
-
* @since 1.0.0
|
241 |
-
*/
|
242 |
-
public function __wakeup() {
|
243 |
-
_doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?' ), $this->parent->_version );
|
244 |
-
} // End __wakeup()
|
245 |
-
|
246 |
}
|
1 |
+
<?php
|
2 |
+
|
3 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
4 |
+
exit;
|
5 |
+
}
|
6 |
+
|
7 |
+
/**
|
8 |
+
* Class Kiwi_Social_Share_Settings
|
9 |
+
*/
|
10 |
+
class Kiwi_Social_Share_Settings {
|
11 |
+
|
12 |
+
/**
|
13 |
+
* The single instance of Kiwi_Social_Share_Settings.
|
14 |
+
*
|
15 |
+
* @var object
|
16 |
+
* @access private
|
17 |
+
* @since 1.0.0
|
18 |
+
*/
|
19 |
+
private static $_instance = NULL;
|
20 |
+
|
21 |
+
/**
|
22 |
+
* The main plugin object.
|
23 |
+
*
|
24 |
+
* @var object
|
25 |
+
* @access public
|
26 |
+
* @since 1.0.0
|
27 |
+
*/
|
28 |
+
public $parent = NULL;
|
29 |
+
|
30 |
+
/**
|
31 |
+
* Prefix for plugin settings.
|
32 |
+
*
|
33 |
+
* @var string
|
34 |
+
* @access public
|
35 |
+
* @since 1.0.0
|
36 |
+
*/
|
37 |
+
public $base = '';
|
38 |
+
|
39 |
+
/**
|
40 |
+
* Available settings for plugin.
|
41 |
+
*
|
42 |
+
* @var array
|
43 |
+
* @access public
|
44 |
+
* @since 1.0.0
|
45 |
+
*/
|
46 |
+
public $settings = array();
|
47 |
+
|
48 |
+
/**
|
49 |
+
* Kiwi_Social_Share_Settings constructor.
|
50 |
+
*
|
51 |
+
* @param $parent
|
52 |
+
*/
|
53 |
+
public function __construct( $parent ) {
|
54 |
+
$this->parent = $parent;
|
55 |
+
|
56 |
+
$this->base = 'kiwi_';
|
57 |
+
|
58 |
+
// Initialise settings
|
59 |
+
add_action( 'init', array( $this, 'init_settings' ), 11 );
|
60 |
+
|
61 |
+
// Register plugin settings
|
62 |
+
add_action( 'admin_init', array( $this, 'register_settings' ) );
|
63 |
+
|
64 |
+
// Add settings page to menu
|
65 |
+
add_action( 'admin_menu', array( $this, 'add_menu_item' ) );
|
66 |
+
|
67 |
+
// Add settings link to plugins page
|
68 |
+
add_filter( 'plugin_action_links_' . plugin_basename( $this->parent->file ), array(
|
69 |
+
$this,
|
70 |
+
'add_settings_link'
|
71 |
+
) );
|
72 |
+
}
|
73 |
+
|
74 |
+
/**
|
75 |
+
* Initialise settings
|
76 |
+
*
|
77 |
+
* @return void
|
78 |
+
*/
|
79 |
+
public function init_settings() {
|
80 |
+
$this->settings = $this->settings_fields();
|
81 |
+
}
|
82 |
+
|
83 |
+
/**
|
84 |
+
* Add settings page to admin menu
|
85 |
+
*
|
86 |
+
* @return void
|
87 |
+
*/
|
88 |
+
public function add_menu_item() {
|
89 |
+
/* start-lite-version */
|
90 |
+
$page = add_menu_page( __( 'Kiwi', 'kiwi-social-share' ), __( 'Kiwi', 'kiwi-social-share' ), 'manage_options', $this->parent->_token . '_settings', array(
|
91 |
+
$this,
|
92 |
+
'settings_page'
|
93 |
+
), 'dashicons-share-alt' );
|
94 |
+
/* end-lite-version */
|
95 |
+
|
96 |
+
|
97 |
+
$advanced_shortcodes = Kiwi_Social_Share_Helper::get_setting_value( 'advanced_shortcode_manager', false, 'kiwi_advanced_settings' );
|
98 |
+
if ( $advanced_shortcodes ) {
|
99 |
+
add_submenu_page( $this->parent->_token . '_settings', __( 'Shortcodes', 'kiwi-social-share' ), __( 'Shortcodes', 'kiwi-social-share' ), 'manage_options', 'edit.php?post_type=kiwi-shortcodes' );
|
100 |
+
}
|
101 |
+
}
|
102 |
+
|
103 |
+
/**
|
104 |
+
* Add settings link to plugin list table
|
105 |
+
*
|
106 |
+
* @param array $links Existing links
|
107 |
+
*
|
108 |
+
* @return array Modified links
|
109 |
+
*/
|
110 |
+
public function add_settings_link( $links ) {
|
111 |
+
$settings_link = '<a href="options-general.php?page=' . $this->parent->_token . '_settings">' . esc_html__( 'Settings', 'kiwi-social-share' ) . '</a>';
|
112 |
+
array_push( $links, $settings_link );
|
113 |
+
|
114 |
+
return $links;
|
115 |
+
}
|
116 |
+
|
117 |
+
/**
|
118 |
+
* Build settings fields
|
119 |
+
*
|
120 |
+
* @return array Fields to be displayed on settings page
|
121 |
+
*/
|
122 |
+
private function settings_fields() {
|
123 |
+
|
124 |
+
$settings['standard'] = array(
|
125 |
+
'title' => '',
|
126 |
+
'fields' => array(
|
127 |
+
array(
|
128 |
+
'id' => 'general_settings',
|
129 |
+
'callback' => array( 'Kiwi_Social_Share_Sanitizers', 'automatic' ),
|
130 |
+
),
|
131 |
+
|
132 |
+
array(
|
133 |
+
'id' => 'network_colors',
|
134 |
+
'callback' => array( 'Kiwi_Social_Share_Sanitizers', 'multiple_hex_fields' ),
|
135 |
+
),
|
136 |
+
|
137 |
+
array(
|
138 |
+
'id' => 'social_identities',
|
139 |
+
'callback' => array( 'Kiwi_Social_Share_Sanitizers', 'automatic' ),
|
140 |
+
),
|
141 |
+
|
142 |
+
array(
|
143 |
+
'id' => 'advanced_settings',
|
144 |
+
'callback' => array( 'Kiwi_Social_Share_Sanitizers', 'automatic' ),
|
145 |
+
),
|
146 |
+
)
|
147 |
+
);
|
148 |
+
|
149 |
+
$settings = apply_filters( $this->parent->_token . '_settings_fields', $settings );
|
150 |
+
|
151 |
+
return $settings;
|
152 |
+
}
|
153 |
+
|
154 |
+
/**
|
155 |
+
* Register plugin settings
|
156 |
+
*
|
157 |
+
* @return void
|
158 |
+
*/
|
159 |
+
public function register_settings() {
|
160 |
+
if ( is_array( $this->settings ) ) {
|
161 |
+
|
162 |
+
// Check posted/selected tab
|
163 |
+
$current_section = '';
|
164 |
+
if ( isset( $_POST['tab'] ) && $_POST['tab'] ) {
|
165 |
+
$current_section = $_POST['tab'];
|
166 |
+
} else {
|
167 |
+
if ( isset( $_GET['tab'] ) && $_GET['tab'] ) {
|
168 |
+
$current_section = $_GET['tab'];
|
169 |
+
}
|
170 |
+
}
|
171 |
+
|
172 |
+
foreach ( $this->settings as $section => $data ) {
|
173 |
+
|
174 |
+
if ( $current_section && $current_section != $section ) {
|
175 |
+
continue;
|
176 |
+
}
|
177 |
+
|
178 |
+
// Add section to page
|
179 |
+
add_settings_section( $section, $data['title'], array(), $this->parent->_token . '_settings' );
|
180 |
+
|
181 |
+
foreach ( $data['fields'] as $field ) {
|
182 |
+
|
183 |
+
// Validation callback for field
|
184 |
+
$validation = '';
|
185 |
+
if ( isset( $field['callback'] ) ) {
|
186 |
+
$validation = $field['callback'];
|
187 |
+
}
|
188 |
+
|
189 |
+
// Register field
|
190 |
+
$option_name = $this->base . $field['id'];
|
191 |
+
register_setting( $this->parent->_token . '_settings', $option_name, $validation );
|
192 |
+
}
|
193 |
+
|
194 |
+
if ( ! $current_section ) {
|
195 |
+
break;
|
196 |
+
}
|
197 |
+
}
|
198 |
+
}
|
199 |
+
}
|
200 |
+
|
201 |
+
/**
|
202 |
+
* Load settings page content
|
203 |
+
*
|
204 |
+
* @return void
|
205 |
+
*/
|
206 |
+
public function settings_page() {
|
207 |
+
require_once KIWI_SOCIAL_SHARE_BASE . '/includes/backend/kiwi-social-share-backend.php';
|
208 |
+
}
|
209 |
+
|
210 |
+
/**
|
211 |
+
* Main Kiwi_Social_Share_Settings Instance
|
212 |
+
*
|
213 |
+
* Ensures only one instance of Kiwi_Social_Share_Settings is loaded or can be loaded.
|
214 |
+
*
|
215 |
+
* @since 1.0.0
|
216 |
+
* @static
|
217 |
+
* @see Kiwi_Social_Share()
|
218 |
+
* @return Main Kiwi_Social_Share_Settings instance
|
219 |
+
*/
|
220 |
+
public static function instance( $parent ) {
|
221 |
+
if ( is_null( self::$_instance ) ) {
|
222 |
+
self::$_instance = new self( $parent );
|
223 |
+
}
|
224 |
+
|
225 |
+
return self::$_instance;
|
226 |
+
} // End instance()
|
227 |
+
|
228 |
+
/**
|
229 |
+
* Cloning is forbidden.
|
230 |
+
*
|
231 |
+
* @since 1.0.0
|
232 |
+
*/
|
233 |
+
public function __clone() {
|
234 |
+
_doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?' ), $this->parent->_version );
|
235 |
+
} // End __clone()
|
236 |
+
|
237 |
+
/**
|
238 |
+
* Unserializing instances of this class is forbidden.
|
239 |
+
*
|
240 |
+
* @since 1.0.0
|
241 |
+
*/
|
242 |
+
public function __wakeup() {
|
243 |
+
_doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?' ), $this->parent->_version );
|
244 |
+
} // End __wakeup()
|
245 |
+
|
246 |
}
|
includes/lib/class-kiwi-social-share-shortcodes.php
CHANGED
@@ -1,230 +1,230 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
4 |
-
exit;
|
5 |
-
}
|
6 |
-
|
7 |
-
/**
|
8 |
-
* Class Kiwi_Social_Share_Shortcodes
|
9 |
-
*/
|
10 |
-
class Kiwi_Social_Share_Shortcodes {
|
11 |
-
|
12 |
-
/**
|
13 |
-
* Kiwi_Social_Share_Shortcodes constructor.
|
14 |
-
*
|
15 |
-
* @param bool $advanced
|
16 |
-
*
|
17 |
-
*/
|
18 |
-
public function __construct( $advanced = false ) {
|
19 |
-
if ( $advanced ) {
|
20 |
-
/**
|
21 |
-
* Add a custom post type for our shortcodes
|
22 |
-
*/
|
23 |
-
add_action( 'init', array( $this, 'add_custom_post_type' ) );
|
24 |
-
/**
|
25 |
-
* Add a metabox and register settings for the shortcodes
|
26 |
-
*/
|
27 |
-
add_action( 'cmb2_admin_init', array( $this, 'register_metabox' ) );
|
28 |
-
/**
|
29 |
-
* Edit the columns from archive and add an identifier (easier to copy paste it where the user needs it)
|
30 |
-
*/
|
31 |
-
add_filter( 'manage_edit-kiwi-shortcodes_columns', array( $this, 'kiwi_shortcode_columns' ) );
|
32 |
-
add_action( 'manage_kiwi-shortcodes_posts_custom_column', array( $this, 'kiwi_shortcode_column' ), 10, 2 );
|
33 |
-
}
|
34 |
-
|
35 |
-
add_shortcode( 'kiwi-social-bar', array( $this, 'kiwi_bar_shortcode' ) );
|
36 |
-
}
|
37 |
-
|
38 |
-
/**
|
39 |
-
* Register the custom post type
|
40 |
-
*/
|
41 |
-
public function add_custom_post_type() {
|
42 |
-
register_post_type( 'kiwi-shortcodes',
|
43 |
-
array(
|
44 |
-
'labels' => array(
|
45 |
-
'name' => esc_html__( 'Kiwi Shortcodes', 'kiwi-social-share' ),
|
46 |
-
'singular_name' => esc_html__( 'Kiwi Shortcode', 'kiwi-social-share' ),
|
47 |
-
'not_found' => esc_html__( 'No Kiwi Shortcodes found', 'kiwi-social-share' ),
|
48 |
-
'not_found_in_trash' => esc_html__( 'No Kiwi Shortcodes found in trash', 'kiwi-social-share' )
|
49 |
-
),
|
50 |
-
'menu_icon' => 'dashicons-share-alt',
|
51 |
-
'supports' => array( 'title' ),
|
52 |
-
'public' => false,
|
53 |
-
'exclude_from_search' => true,
|
54 |
-
'show_ui' => true,
|
55 |
-
'show_in_menu' => false,
|
56 |
-
'has_archive' => false
|
57 |
-
)
|
58 |
-
);
|
59 |
-
}
|
60 |
-
|
61 |
-
/**
|
62 |
-
* Customize the identifier column
|
63 |
-
*
|
64 |
-
* @param $column
|
65 |
-
* @param $post_id
|
66 |
-
*
|
67 |
-
*/
|
68 |
-
public function kiwi_shortcode_column( $column, $post_id ) {
|
69 |
-
printf( '[kiwi-social-bar id="%s"]', $post_id );
|
70 |
-
}
|
71 |
-
|
72 |
-
/**
|
73 |
-
* Customize the kiwi shortcode columns
|
74 |
-
*
|
75 |
-
* @param $columns
|
76 |
-
*
|
77 |
-
* @return array
|
78 |
-
*/
|
79 |
-
public function kiwi_shortcode_columns( $columns ) {
|
80 |
-
$columns = array(
|
81 |
-
'cb' => '<input type="checkbox" />',
|
82 |
-
'title' => __( 'Shortcode' ),
|
83 |
-
'identifier' => __( 'Identifier' ),
|
84 |
-
'date' => __( 'Date' )
|
85 |
-
);
|
86 |
-
|
87 |
-
return $columns;
|
88 |
-
}
|
89 |
-
|
90 |
-
/**
|
91 |
-
* Register metaboxes using CMB2
|
92 |
-
*/
|
93 |
-
public function register_metabox() {
|
94 |
-
/**
|
95 |
-
* Add the metabox
|
96 |
-
*/
|
97 |
-
$metabox = new_cmb2_box( array(
|
98 |
-
'id' => 'kiwi_shortcode_metabox',
|
99 |
-
'title' => esc_html__( 'Kiwi Shortcode Meta', 'kiwi-social-share' ),
|
100 |
-
'object_types' => array( 'kiwi-shortcodes' ),
|
101 |
-
'closed' => false,
|
102 |
-
) );
|
103 |
-
|
104 |
-
$id = '';
|
105 |
-
if ( ! empty( $_GET ) && ! empty( $_GET['post'] ) ) {
|
106 |
-
$id = $_GET['post'];
|
107 |
-
/**
|
108 |
-
* Add shortcode fields
|
109 |
-
*
|
110 |
-
* This field is used as an identifier (user copies/pastes this content where he needs it)
|
111 |
-
*/
|
112 |
-
$metabox->add_field(
|
113 |
-
array(
|
114 |
-
'name' => esc_html__( 'Shortcode list item style', 'kiwi-social-share' ),
|
115 |
-
'id' => 'kiwi_shortcode_identifier',
|
116 |
-
'type' => 'text',
|
117 |
-
'default' => '[kiwi-social-bar id="' . $id . '"]',
|
118 |
-
'attributes' => array(
|
119 |
-
'readonly' => 'readonly'
|
120 |
-
)
|
121 |
-
)
|
122 |
-
);
|
123 |
-
}
|
124 |
-
|
125 |
-
|
126 |
-
/**
|
127 |
-
* Shortcode networks fields ( multicheck )
|
128 |
-
*/
|
129 |
-
$metabox->add_field(
|
130 |
-
array(
|
131 |
-
'name' => esc_html__( 'Shortcode networks', 'kiwi-social-share' ),
|
132 |
-
'id' => 'kiwi_shortcode_networks',
|
133 |
-
'type' => 'multicheck',
|
134 |
-
'options' => array(
|
135 |
-
'facebook' => esc_html__( 'Facebook', 'kiwi-social-share' ),
|
136 |
-
'twitter' => esc_html__( 'Twitter', 'kiwi-social-share' ),
|
137 |
-
'google-plus' => esc_html__( 'Google Plus', 'kiwi-social-share' ),
|
138 |
-
'linkedin' => esc_html__( 'LinkedIn', 'kiwi-social-share' ),
|
139 |
-
'pinterest' => esc_html__( 'Pinterest', 'kiwi-social-share' ),
|
140 |
-
),
|
141 |
-
)
|
142 |
-
);
|
143 |
-
|
144 |
-
/**
|
145 |
-
* Shortcode bar style
|
146 |
-
*/
|
147 |
-
$metabox->add_field(
|
148 |
-
array(
|
149 |
-
'name' => esc_html__( 'Shortcode bar style', 'kiwi-social-share' ),
|
150 |
-
'id' => 'kiwi_shortcode_bar_style',
|
151 |
-
'type' => 'radio',
|
152 |
-
'default' => 'fit',
|
153 |
-
'options' => array(
|
154 |
-
'fit' => esc_html__( 'Fit', 'kiwi-social-share' ),
|
155 |
-
'center' => esc_html__( 'Center', 'kiwi-social-share' ),
|
156 |
-
),
|
157 |
-
)
|
158 |
-
);
|
159 |
-
|
160 |
-
/**
|
161 |
-
* Shortcode list item styles
|
162 |
-
*/
|
163 |
-
$metabox->add_field(
|
164 |
-
array(
|
165 |
-
'name' => esc_html__( 'Shortcode list item style', 'kiwi-social-share' ),
|
166 |
-
'id' => 'kiwi_shortcode_list_item_style',
|
167 |
-
'type' => 'radio',
|
168 |
-
'default' => 'rect',
|
169 |
-
'options' => array(
|
170 |
-
'rect' => esc_html__( 'Rectangular', 'kiwi-social-share' ),
|
171 |
-
'leaf' => esc_html__( 'Leaf', 'kiwi-social-share' ),
|
172 |
-
'shift' => esc_html__( 'Shift', 'kiwi-social-share' ),
|
173 |
-
'pill' => esc_html__( 'Pill', 'kiwi-social-share' ),
|
174 |
-
),
|
175 |
-
)
|
176 |
-
);
|
177 |
-
}
|
178 |
-
|
179 |
-
/**
|
180 |
-
* @param null $atts
|
181 |
-
* @param null $content
|
182 |
-
*
|
183 |
-
* @return mixed|null|string
|
184 |
-
*/
|
185 |
-
public function kiwi_bar_shortcode( $atts = NULL, $content = NULL ) {
|
186 |
-
$instance = array(
|
187 |
-
'networks' => Kiwi_Social_Share_Helper::get_setting_value( 'networks_article_bar', array() ),
|
188 |
-
'style' => Kiwi_Social_Share_Helper::get_setting_value( 'article_bar_style', 'center' ),
|
189 |
-
'items' => Kiwi_Social_Share_Helper::get_setting_value( 'button_shape', 'rect' )
|
190 |
-
);
|
191 |
-
|
192 |
-
if ( ! empty( $atts ) ) {
|
193 |
-
$instance = array(
|
194 |
-
'networks' => get_post_meta( $atts['id'], 'kiwi_shortcode_networks', true ),
|
195 |
-
'style' => get_post_meta( $atts['id'], 'kiwi_shortcode_bar_style', true ),
|
196 |
-
'items' => get_post_meta( $atts['id'], 'kiwi_shortcode_list_item_style', true )
|
197 |
-
);
|
198 |
-
}
|
199 |
-
|
200 |
-
$defaults = array(
|
201 |
-
'networks' => array(),
|
202 |
-
'style' => 'center',
|
203 |
-
'items' => 'rect'
|
204 |
-
);
|
205 |
-
|
206 |
-
|
207 |
-
$instance = wp_parse_args( $instance, $defaults );
|
208 |
-
$bar = new Kiwi_Social_Share_View_Shortcode_Bar( $instance['networks'], $instance['style'], $instance['items'] );
|
209 |
-
|
210 |
-
return $bar->generate_frontend_bar();
|
211 |
-
}
|
212 |
-
|
213 |
-
/**
|
214 |
-
* @param null $atts
|
215 |
-
* @param null $content
|
216 |
-
*
|
217 |
-
* @return mixed|null|string
|
218 |
-
*/
|
219 |
-
public function kiwi_bar_simple( $atts = NULL, $content = NULL ) {
|
220 |
-
$defaults = array(
|
221 |
-
'networks' => Kiwi_Social_Share_Helper::get_setting_value( 'networks_article_bar', array() ),
|
222 |
-
'style' => Kiwi_Social_Share_Helper::get_setting_value( 'article_bar_style', 'center' ),
|
223 |
-
'items' => Kiwi_Social_Share_Helper::get_setting_value( 'button_shape', 'rect' )
|
224 |
-
);
|
225 |
-
|
226 |
-
$bar = new Kiwi_Social_Share_View_Shortcode_Bar( $defaults['networks'], $defaults['style'], $defaults['items'] );
|
227 |
-
|
228 |
-
return $bar->generate_frontend_bar();
|
229 |
-
}
|
230 |
}
|
1 |
+
<?php
|
2 |
+
|
3 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
4 |
+
exit;
|
5 |
+
}
|
6 |
+
|
7 |
+
/**
|
8 |
+
* Class Kiwi_Social_Share_Shortcodes
|
9 |
+
*/
|
10 |
+
class Kiwi_Social_Share_Shortcodes {
|
11 |
+
|
12 |
+
/**
|
13 |
+
* Kiwi_Social_Share_Shortcodes constructor.
|
14 |
+
*
|
15 |
+
* @param bool $advanced
|
16 |
+
*
|
17 |
+
*/
|
18 |
+
public function __construct( $advanced = false ) {
|
19 |
+
if ( $advanced ) {
|
20 |
+
/**
|
21 |
+
* Add a custom post type for our shortcodes
|
22 |
+
*/
|
23 |
+
add_action( 'init', array( $this, 'add_custom_post_type' ) );
|
24 |
+
/**
|
25 |
+
* Add a metabox and register settings for the shortcodes
|
26 |
+
*/
|
27 |
+
add_action( 'cmb2_admin_init', array( $this, 'register_metabox' ) );
|
28 |
+
/**
|
29 |
+
* Edit the columns from archive and add an identifier (easier to copy paste it where the user needs it)
|
30 |
+
*/
|
31 |
+
add_filter( 'manage_edit-kiwi-shortcodes_columns', array( $this, 'kiwi_shortcode_columns' ) );
|
32 |
+
add_action( 'manage_kiwi-shortcodes_posts_custom_column', array( $this, 'kiwi_shortcode_column' ), 10, 2 );
|
33 |
+
}
|
34 |
+
|
35 |
+
add_shortcode( 'kiwi-social-bar', array( $this, 'kiwi_bar_shortcode' ) );
|
36 |
+
}
|
37 |
+
|
38 |
+
/**
|
39 |
+
* Register the custom post type
|
40 |
+
*/
|
41 |
+
public function add_custom_post_type() {
|
42 |
+
register_post_type( 'kiwi-shortcodes',
|
43 |
+
array(
|
44 |
+
'labels' => array(
|
45 |
+
'name' => esc_html__( 'Kiwi Shortcodes', 'kiwi-social-share' ),
|
46 |
+
'singular_name' => esc_html__( 'Kiwi Shortcode', 'kiwi-social-share' ),
|
47 |
+
'not_found' => esc_html__( 'No Kiwi Shortcodes found', 'kiwi-social-share' ),
|
48 |
+
'not_found_in_trash' => esc_html__( 'No Kiwi Shortcodes found in trash', 'kiwi-social-share' )
|
49 |
+
),
|
50 |
+
'menu_icon' => 'dashicons-share-alt',
|
51 |
+
'supports' => array( 'title' ),
|
52 |
+
'public' => false,
|
53 |
+
'exclude_from_search' => true,
|
54 |
+
'show_ui' => true,
|
55 |
+
'show_in_menu' => false,
|
56 |
+
'has_archive' => false
|
57 |
+
)
|
58 |
+
);
|
59 |
+
}
|
60 |
+
|
61 |
+
/**
|
62 |
+
* Customize the identifier column
|
63 |
+
*
|
64 |
+
* @param $column
|
65 |
+
* @param $post_id
|
66 |
+
*
|
67 |
+
*/
|
68 |
+
public function kiwi_shortcode_column( $column, $post_id ) {
|
69 |
+
printf( '[kiwi-social-bar id="%s"]', $post_id );
|
70 |
+
}
|
71 |
+
|
72 |
+
/**
|
73 |
+
* Customize the kiwi shortcode columns
|
74 |
+
*
|
75 |
+
* @param $columns
|
76 |
+
*
|
77 |
+
* @return array
|
78 |
+
*/
|
79 |
+
public function kiwi_shortcode_columns( $columns ) {
|
80 |
+
$columns = array(
|
81 |
+
'cb' => '<input type="checkbox" />',
|
82 |
+
'title' => __( 'Shortcode' ),
|
83 |
+
'identifier' => __( 'Identifier' ),
|
84 |
+
'date' => __( 'Date' )
|
85 |
+
);
|
86 |
+
|
87 |
+
return $columns;
|
88 |
+
}
|
89 |
+
|
90 |
+
/**
|
91 |
+
* Register metaboxes using CMB2
|
92 |
+
*/
|
93 |
+
public function register_metabox() {
|
94 |
+
/**
|
95 |
+
* Add the metabox
|
96 |
+
*/
|
97 |
+
$metabox = new_cmb2_box( array(
|
98 |
+
'id' => 'kiwi_shortcode_metabox',
|
99 |
+
'title' => esc_html__( 'Kiwi Shortcode Meta', 'kiwi-social-share' ),
|
100 |
+
'object_types' => array( 'kiwi-shortcodes' ),
|
101 |
+
'closed' => false,
|
102 |
+
) );
|
103 |
+
|
104 |
+
$id = '';
|
105 |
+
if ( ! empty( $_GET ) && ! empty( $_GET['post'] ) ) {
|
106 |
+
$id = $_GET['post'];
|
107 |
+
/**
|
108 |
+
* Add shortcode fields
|
109 |
+
*
|
110 |
+
* This field is used as an identifier (user copies/pastes this content where he needs it)
|
111 |
+
*/
|
112 |
+
$metabox->add_field(
|
113 |
+
array(
|
114 |
+
'name' => esc_html__( 'Shortcode list item style', 'kiwi-social-share' ),
|
115 |
+
'id' => 'kiwi_shortcode_identifier',
|
116 |
+
'type' => 'text',
|
117 |
+
'default' => '[kiwi-social-bar id="' . $id . '"]',
|
118 |
+
'attributes' => array(
|
119 |
+
'readonly' => 'readonly'
|
120 |
+
)
|
121 |
+
)
|
122 |
+
);
|
123 |
+
}
|
124 |
+
|
125 |
+
|
126 |
+
/**
|
127 |
+
* Shortcode networks fields ( multicheck )
|
128 |
+
*/
|
129 |
+
$metabox->add_field(
|
130 |
+
array(
|
131 |
+
'name' => esc_html__( 'Shortcode networks', 'kiwi-social-share' ),
|
132 |
+
'id' => 'kiwi_shortcode_networks',
|
133 |
+
'type' => 'multicheck',
|
134 |
+
'options' => array(
|
135 |
+
'facebook' => esc_html__( 'Facebook', 'kiwi-social-share' ),
|
136 |
+
'twitter' => esc_html__( 'Twitter', 'kiwi-social-share' ),
|
137 |
+
'google-plus' => esc_html__( 'Google Plus', 'kiwi-social-share' ),
|
138 |
+
'linkedin' => esc_html__( 'LinkedIn', 'kiwi-social-share' ),
|
139 |
+
'pinterest' => esc_html__( 'Pinterest', 'kiwi-social-share' ),
|
140 |
+
),
|
141 |
+
)
|
142 |
+
);
|
143 |
+
|
144 |
+
/**
|
145 |
+
* Shortcode bar style
|
146 |
+
*/
|
147 |
+
$metabox->add_field(
|
148 |
+
array(
|
149 |
+
'name' => esc_html__( 'Shortcode bar style', 'kiwi-social-share' ),
|
150 |
+
'id' => 'kiwi_shortcode_bar_style',
|
151 |
+
'type' => 'radio',
|
152 |
+
'default' => 'fit',
|
153 |
+
'options' => array(
|
154 |
+
'fit' => esc_html__( 'Fit', 'kiwi-social-share' ),
|
155 |
+
'center' => esc_html__( 'Center', 'kiwi-social-share' ),
|
156 |
+
),
|
157 |
+
)
|
158 |
+
);
|
159 |
+
|
160 |
+
/**
|
161 |
+
* Shortcode list item styles
|
162 |
+
*/
|
163 |
+
$metabox->add_field(
|
164 |
+
array(
|
165 |
+
'name' => esc_html__( 'Shortcode list item style', 'kiwi-social-share' ),
|
166 |
+
'id' => 'kiwi_shortcode_list_item_style',
|
167 |
+
'type' => 'radio',
|
168 |
+
'default' => 'rect',
|
169 |
+
'options' => array(
|
170 |
+
'rect' => esc_html__( 'Rectangular', 'kiwi-social-share' ),
|
171 |
+
'leaf' => esc_html__( 'Leaf', 'kiwi-social-share' ),
|
172 |
+
'shift' => esc_html__( 'Shift', 'kiwi-social-share' ),
|
173 |
+
'pill' => esc_html__( 'Pill', 'kiwi-social-share' ),
|
174 |
+
),
|
175 |
+
)
|
176 |
+
);
|
177 |
+
}
|
178 |
+
|
179 |
+
/**
|
180 |
+
* @param null $atts
|
181 |
+
* @param null $content
|
182 |
+
*
|
183 |
+
* @return mixed|null|string
|
184 |
+
*/
|
185 |
+
public function kiwi_bar_shortcode( $atts = NULL, $content = NULL ) {
|
186 |
+
$instance = array(
|
187 |
+
'networks' => Kiwi_Social_Share_Helper::get_setting_value( 'networks_article_bar', array() ),
|
188 |
+
'style' => Kiwi_Social_Share_Helper::get_setting_value( 'article_bar_style', 'center' ),
|
189 |
+
'items' => Kiwi_Social_Share_Helper::get_setting_value( 'button_shape', 'rect' )
|
190 |
+
);
|
191 |
+
|
192 |
+
if ( ! empty( $atts ) ) {
|
193 |
+
$instance = array(
|
194 |
+
'networks' => get_post_meta( $atts['id'], 'kiwi_shortcode_networks', true ),
|
195 |
+
'style' => get_post_meta( $atts['id'], 'kiwi_shortcode_bar_style', true ),
|
196 |
+
'items' => get_post_meta( $atts['id'], 'kiwi_shortcode_list_item_style', true )
|
197 |
+
);
|
198 |
+
}
|
199 |
+
|
200 |
+
$defaults = array(
|
201 |
+
'networks' => array(),
|
202 |
+
'style' => 'center',
|
203 |
+
'items' => 'rect'
|
204 |
+
);
|
205 |
+
|
206 |
+
|
207 |
+
$instance = wp_parse_args( $instance, $defaults );
|
208 |
+
$bar = new Kiwi_Social_Share_View_Shortcode_Bar( $instance['networks'], $instance['style'], $instance['items'] );
|
209 |
+
|
210 |
+
return $bar->generate_frontend_bar();
|
211 |
+
}
|
212 |
+
|
213 |
+
/**
|
214 |
+
* @param null $atts
|
215 |
+
* @param null $content
|
216 |
+
*
|
217 |
+
* @return mixed|null|string
|
218 |
+
*/
|
219 |
+
public function kiwi_bar_simple( $atts = NULL, $content = NULL ) {
|
220 |
+
$defaults = array(
|
221 |
+
'networks' => Kiwi_Social_Share_Helper::get_setting_value( 'networks_article_bar', array() ),
|
222 |
+
'style' => Kiwi_Social_Share_Helper::get_setting_value( 'article_bar_style', 'center' ),
|
223 |
+
'items' => Kiwi_Social_Share_Helper::get_setting_value( 'button_shape', 'rect' )
|
224 |
+
);
|
225 |
+
|
226 |
+
$bar = new Kiwi_Social_Share_View_Shortcode_Bar( $defaults['networks'], $defaults['style'], $defaults['items'] );
|
227 |
+
|
228 |
+
return $bar->generate_frontend_bar();
|
229 |
+
}
|
230 |
}
|
includes/lib/cmb2/bootstrap.php
CHANGED
@@ -1,77 +1,77 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Bootstraps the CMB2 process
|
4 |
-
*
|
5 |
-
* @category WordPress_Plugin
|
6 |
-
* @package CMB2
|
7 |
-
* @author CMB2
|
8 |
-
* @license GPL-2.0+
|
9 |
-
* @link https://cmb2.io
|
10 |
-
*/
|
11 |
-
|
12 |
-
/**
|
13 |
-
* Function to encapsulate the CMB2 bootstrap process.
|
14 |
-
*
|
15 |
-
* @since 2.2.0
|
16 |
-
* @return void
|
17 |
-
*/
|
18 |
-
function cmb2_bootstrap() {
|
19 |
-
|
20 |
-
if ( is_admin() ) {
|
21 |
-
/**
|
22 |
-
* Fires on the admin side when CMB2 is included/loaded.
|
23 |
-
*
|
24 |
-
* In most cases, this should be used to add metaboxes. See example-functions.php
|
25 |
-
*/
|
26 |
-
do_action( 'cmb2_admin_init' );
|
27 |
-
}
|
28 |
-
|
29 |
-
/**
|
30 |
-
* Fires when CMB2 is included/loaded
|
31 |
-
*
|
32 |
-
* Can be used to add metaboxes if needed on the front-end or WP-API (or the front and backend).
|
33 |
-
*/
|
34 |
-
do_action( 'cmb2_init' );
|
35 |
-
|
36 |
-
/**
|
37 |
-
* For back-compat. Does the dirty-work of instantiating all the
|
38 |
-
* CMB2 instances for the cmb2_meta_boxes filter
|
39 |
-
*
|
40 |
-
* @since 2.0.2
|
41 |
-
*/
|
42 |
-
$cmb_config_arrays = apply_filters( 'cmb2_meta_boxes', array() );
|
43 |
-
foreach ( (array) $cmb_config_arrays as $cmb_config ) {
|
44 |
-
new CMB2( $cmb_config );
|
45 |
-
}
|
46 |
-
|
47 |
-
/**
|
48 |
-
* Fires after all CMB2 instances are created
|
49 |
-
*/
|
50 |
-
do_action( 'cmb2_init_before_hookup' );
|
51 |
-
|
52 |
-
/**
|
53 |
-
* Get all created metaboxes, and instantiate CMB2_hookup
|
54 |
-
* on metaboxes which require it.
|
55 |
-
*
|
56 |
-
* @since 2.0.2
|
57 |
-
*/
|
58 |
-
foreach ( CMB2_Boxes::get_all() as $cmb ) {
|
59 |
-
|
60 |
-
if ( $cmb->prop( 'hookup' ) ) {
|
61 |
-
$hookup = new CMB2_hookup( $cmb );
|
62 |
-
$hookup->universal_hooks();
|
63 |
-
}
|
64 |
-
|
65 |
-
if ( $cmb->prop( 'show_in_rest' ) && function_exists( 'rest_get_server' ) ) {
|
66 |
-
$rest = new CMB2_REST( $cmb );
|
67 |
-
$rest->universal_hooks();
|
68 |
-
}
|
69 |
-
}
|
70 |
-
|
71 |
-
/**
|
72 |
-
* Fires after CMB2 initiation process has been completed
|
73 |
-
*/
|
74 |
-
do_action( 'cmb2_after_init' );
|
75 |
-
}
|
76 |
-
|
77 |
-
/* End. That's it, folks! */
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Bootstraps the CMB2 process
|
4 |
+
*
|
5 |
+
* @category WordPress_Plugin
|
6 |
+
* @package CMB2
|
7 |
+
* @author CMB2
|
8 |
+
* @license GPL-2.0+
|
9 |
+
* @link https://cmb2.io
|
10 |
+
*/
|
11 |
+
|
12 |
+
/**
|
13 |
+
* Function to encapsulate the CMB2 bootstrap process.
|
14 |
+
*
|
15 |
+
* @since 2.2.0
|
16 |
+
* @return void
|
17 |
+
*/
|
18 |
+
function cmb2_bootstrap() {
|
19 |
+
|
20 |
+
if ( is_admin() ) {
|
21 |
+
/**
|
22 |
+
* Fires on the admin side when CMB2 is included/loaded.
|
23 |
+
*
|
24 |
+
* In most cases, this should be used to add metaboxes. See example-functions.php
|
25 |
+
*/
|
26 |
+
do_action( 'cmb2_admin_init' );
|
27 |
+
}
|
28 |
+
|
29 |
+
/**
|
30 |
+
* Fires when CMB2 is included/loaded
|
31 |
+
*
|
32 |
+
* Can be used to add metaboxes if needed on the front-end or WP-API (or the front and backend).
|
33 |
+
*/
|
34 |
+
do_action( 'cmb2_init' );
|
35 |
+
|
36 |
+
/**
|
37 |
+
* For back-compat. Does the dirty-work of instantiating all the
|
38 |
+
* CMB2 instances for the cmb2_meta_boxes filter
|
39 |
+
*
|
40 |
+
* @since 2.0.2
|
41 |
+
*/
|
42 |
+
$cmb_config_arrays = apply_filters( 'cmb2_meta_boxes', array() );
|
43 |
+
foreach ( (array) $cmb_config_arrays as $cmb_config ) {
|
44 |
+
new CMB2( $cmb_config );
|
45 |
+
}
|
46 |
+
|
47 |
+
/**
|
48 |
+
* Fires after all CMB2 instances are created
|
49 |
+
*/
|
50 |
+
do_action( 'cmb2_init_before_hookup' );
|
51 |
+
|
52 |
+
/**
|
53 |
+
* Get all created metaboxes, and instantiate CMB2_hookup
|
54 |
+
* on metaboxes which require it.
|
55 |
+
*
|
56 |
+
* @since 2.0.2
|
57 |
+
*/
|
58 |
+
foreach ( CMB2_Boxes::get_all() as $cmb ) {
|
59 |
+
|
60 |
+
if ( $cmb->prop( 'hookup' ) ) {
|
61 |
+
$hookup = new CMB2_hookup( $cmb );
|
62 |
+
$hookup->universal_hooks();
|
63 |
+
}
|
64 |
+
|
65 |
+
if ( $cmb->prop( 'show_in_rest' ) && function_exists( 'rest_get_server' ) ) {
|
66 |
+
$rest = new CMB2_REST( $cmb );
|
67 |
+
$rest->universal_hooks();
|
68 |
+
}
|
69 |
+
}
|
70 |
+
|
71 |
+
/**
|
72 |
+
* Fires after CMB2 initiation process has been completed
|
73 |
+
*/
|
74 |
+
do_action( 'cmb2_after_init' );
|
75 |
+
}
|
76 |
+
|
77 |
+
/* End. That's it, folks! */
|
includes/lib/cmb2/css/sass/cmb2-display.css
CHANGED
@@ -1,29 +1,29 @@
|
|
1 |
-
/**
|
2 |
-
* CMB2 Styling
|
3 |
-
*/
|
4 |
-
/**
|
5 |
-
* CMB2 Styling
|
6 |
-
*/
|
7 |
-
.cmb2-colorpicker-swatch span {
|
8 |
-
display: inline-block;
|
9 |
-
width: 1em;
|
10 |
-
height: 1em;
|
11 |
-
border-radius: 1em;
|
12 |
-
float: left;
|
13 |
-
margin-top: 3px;
|
14 |
-
margin-right: 2px; }
|
15 |
-
|
16 |
-
.cmb2-code {
|
17 |
-
overflow: scroll; }
|
18 |
-
|
19 |
-
.cmb-image-display {
|
20 |
-
max-width: 100%;
|
21 |
-
height: auto; }
|
22 |
-
|
23 |
-
.cmb2-display-file-list li {
|
24 |
-
display: inline;
|
25 |
-
margin: 0 .5em .5em 0; }
|
26 |
-
|
27 |
-
.cmb2-oembed * {
|
28 |
-
max-width: 100%;
|
29 |
-
height: auto; }
|
1 |
+
/**
|
2 |
+
* CMB2 Styling
|
3 |
+
*/
|
4 |
+
/**
|
5 |
+
* CMB2 Styling
|
6 |
+
*/
|
7 |
+
.cmb2-colorpicker-swatch span {
|
8 |
+
display: inline-block;
|
9 |
+
width: 1em;
|
10 |
+
height: 1em;
|
11 |
+
border-radius: 1em;
|
12 |
+
float: left;
|
13 |
+
margin-top: 3px;
|
14 |
+
margin-right: 2px; }
|
15 |
+
|
16 |
+
.cmb2-code {
|
17 |
+
overflow: scroll; }
|
18 |
+
|
19 |
+
.cmb-image-display {
|
20 |
+
max-width: 100%;
|
21 |
+
height: auto; }
|
22 |
+
|
23 |
+
.cmb2-display-file-list li {
|
24 |
+
display: inline;
|
25 |
+
margin: 0 .5em .5em 0; }
|
26 |
+
|
27 |
+
.cmb2-oembed * {
|
28 |
+
max-width: 100%;
|
29 |
+
height: auto; }
|
includes/lib/cmb2/css/sass/cmb2-front.css
CHANGED
@@ -1,983 +1,983 @@
|
|
1 |
-
/**
|
2 |
-
* CMB2 Styling
|
3 |
-
*/
|
4 |
-
/*--------------------------------------------------------------
|
5 |
-
Main Wrap
|
6 |
-
--------------------------------------------------------------*/
|
7 |
-
.cmb2-wrap {
|
8 |
-
margin: 0; }
|
9 |
-
.cmb2-wrap input,
|
10 |
-
.cmb2-wrap textarea {
|
11 |
-
font-size: 14px;
|
12 |
-
max-width: 100%;
|
13 |
-
padding: 5px; }
|
14 |
-
.cmb2-wrap input[type=text].cmb2-oembed {
|
15 |
-
width: 100%; }
|
16 |
-
.cmb2-wrap textarea {
|
17 |
-
width: 500px; }
|
18 |
-
.cmb2-wrap textarea.cmb2-textarea-code {
|
19 |
-
font-family: "Courier 10 Pitch", Courier, monospace;
|
20 |
-
line-height: 16px; }
|
21 |
-
.cmb2-wrap input.cmb2-text-small, .cmb2-wrap input.cmb2-timepicker {
|
22 |
-
width: 100px; }
|
23 |
-
.cmb2-wrap input.cmb2-text-money {
|
24 |
-
width: 90px; }
|
25 |
-
.cmb2-wrap input.cmb2-text-medium {
|
26 |
-
width: 230px; }
|
27 |
-
.cmb2-wrap input.cmb2-upload-file {
|
28 |
-
width: 65%; }
|
29 |
-
.cmb2-wrap input.ed_button {
|
30 |
-
padding: 2px 4px; }
|
31 |
-
.cmb2-wrap input:not([type="hidden"]) + input,
|
32 |
-
.cmb2-wrap input:not([type="hidden"]) + .button-secondary,
|
33 |
-
.cmb2-wrap input:not([type="hidden"]) + select {
|
34 |
-
margin-left: 20px; }
|
35 |
-
.cmb2-wrap ul {
|
36 |
-
margin: 0; }
|
37 |
-
.cmb2-wrap li {
|
38 |
-
font-size: 14px;
|
39 |
-
line-height: 16px;
|
40 |
-
margin: 1px 0 5px 0; }
|
41 |
-
.cmb2-wrap select {
|
42 |
-
font-size: 14px;
|
43 |
-
margin-top: 3px; }
|
44 |
-
.cmb2-wrap input:focus,
|
45 |
-
.cmb2-wrap textarea:focus {
|
46 |
-
background: #fffff8; }
|
47 |
-
.cmb2-wrap input[type="radio"] {
|
48 |
-
margin: 0 5px 0 0;
|
49 |
-
padding: 0; }
|
50 |
-
.cmb2-wrap input[type="checkbox"] {
|
51 |
-
margin: 0 5px 0 0;
|
52 |
-
padding: 0; }
|
53 |
-
.cmb2-wrap button,
|
54 |
-
.cmb2-wrap .button-secondary {
|
55 |
-
white-space: nowrap; }
|
56 |
-
.cmb2-wrap .mceLayout {
|
57 |
-
border: 1px solid #e9e9e9 !important; }
|
58 |
-
.cmb2-wrap .mceIframeContainer {
|
59 |
-
background: #fff; }
|
60 |
-
.cmb2-wrap .meta_mce {
|
61 |
-
width: 97%; }
|
62 |
-
.cmb2-wrap .meta_mce textarea {
|
63 |
-
width: 100%; }
|
64 |
-
.cmb2-wrap .wp-color-result,
|
65 |
-
.cmb2-wrap .wp-picker-input-wrap {
|
66 |
-
vertical-align: middle; }
|
67 |
-
.cmb2-wrap .wp-color-result,
|
68 |
-
.cmb2-wrap .wp-picker-container {
|
69 |
-
margin: 0 10px 0 0; }
|
70 |
-
.cmb2-wrap .cmb-row {
|
71 |
-
margin: 0; }
|
72 |
-
.cmb2-wrap .cmb-row:after {
|
73 |
-
content: '';
|
74 |
-
clear: both;
|
75 |
-
display: block;
|
76 |
-
width: 100%; }
|
77 |
-
.cmb2-wrap .cmb-row.cmb-repeat-row {
|
78 |
-
padding: 1.8em 0 0; }
|
79 |
-
.cmb2-wrap .cmb-row.cmb-repeat-row:first-of-type {
|
80 |
-
padding: 0; }
|
81 |
-
.cmb2-wrap .cmb-row.cmb-repeat .cmb2-metabox-description {
|
82 |
-
padding-top: 0;
|
83 |
-
padding-bottom: 1.8em; }
|
84 |
-
|
85 |
-
.cmb2-metabox {
|
86 |
-
clear: both;
|
87 |
-
margin: 0; }
|
88 |
-
.cmb2-metabox > .cmb-row:first-of-type > .cmb-td,
|
89 |
-
.cmb2-metabox > .cmb-row:first-of-type > .cmb-th,
|
90 |
-
.cmb2-metabox .cmb-field-list > .cmb-row:first-of-type > .cmb-td,
|
91 |
-
.cmb2-metabox .cmb-field-list > .cmb-row:first-of-type > .cmb-th {
|
92 |
-
border: 0; }
|
93 |
-
.cmb2-metabox > .cmb-row .cmb-repeat-table .cmb-row > .cmb-td {
|
94 |
-
padding-right: 20px;
|
95 |
-
box-sizing: border-box;
|
96 |
-
float: left; }
|
97 |
-
|
98 |
-
.cmb-add-row {
|
99 |
-
margin: 1.8em 0 0; }
|
100 |
-
|
101 |
-
.cmb-nested .cmb-td,
|
102 |
-
.cmb-repeatable-group .cmb-th,
|
103 |
-
.cmb-repeatable-group:first-of-type {
|
104 |
-
border: 0; }
|
105 |
-
|
106 |
-
.cmb-row:last-of-type,
|
107 |
-
.cmb2-wrap .cmb-row:last-of-type,
|
108 |
-
.cmb-repeatable-group:last-of-type {
|
109 |
-
border-bottom: 0; }
|
110 |
-
|
111 |
-
.cmb-repeatable-grouping {
|
112 |
-
border: 1px solid #e9e9e9;
|
113 |
-
padding: 0 1em;
|
114 |
-
max-width: 1000px; }
|
115 |
-
.cmb-repeatable-grouping.cmb-row {
|
116 |
-
margin: 0 0 0.8em; }
|
117 |
-
|
118 |
-
.cmb-th {
|
119 |
-
color: #222222;
|
120 |
-
float: left;
|
121 |
-
font-weight: 600;
|
122 |
-
line-height: 1.3;
|
123 |
-
padding: 20px 10px 20px 0;
|
124 |
-
vertical-align: top;
|
125 |
-
width: 200px; }
|
126 |
-
@media (max-width: 450px) {
|
127 |
-
.cmb-th {
|
128 |
-
font-size: 1.2em;
|
129 |
-
display: block;
|
130 |
-
float: none;
|
131 |
-
padding-bottom: 1em;
|
132 |
-
text-align: left;
|
133 |
-
width: 100%; }
|
134 |
-
.cmb-th label {
|
135 |
-
display: block;
|
136 |
-
margin-top: 0em;
|
137 |
-
padding-bottom: 5px; }
|
138 |
-
.cmb-th label:after {
|
139 |
-
border-bottom: 1px solid #e9e9e9;
|
140 |
-
content: '';
|
141 |
-
clear: both;
|
142 |
-
display: block;
|
143 |
-
padding-top: .4em; } }
|
144 |
-
|
145 |
-
.cmb-td {
|
146 |
-
line-height: 1.3;
|
147 |
-
max-width: 100%;
|
148 |
-
padding: 15px 10px;
|
149 |
-
vertical-align: middle; }
|
150 |
-
|
151 |
-
.cmb-type-title .cmb-td {
|
152 |
-
padding: 0; }
|
153 |
-
|
154 |
-
.cmb-th label {
|
155 |
-
display: block;
|
156 |
-
padding: 5px 0; }
|
157 |
-
|
158 |
-
.cmb-th + .cmb-td {
|
159 |
-
float: left; }
|
160 |
-
|
161 |
-
.cmb-td .cmb-td {
|
162 |
-
padding-bottom: 1em; }
|
163 |
-
|
164 |
-
.cmb-remove-row {
|
165 |
-
text-align: right; }
|
166 |
-
|
167 |
-
.empty-row.hidden {
|
168 |
-
display: none; }
|
169 |
-
|
170 |
-
.cmb-repeatable-group .cmb-th {
|
171 |
-
padding: 5px; }
|
172 |
-
.cmb-repeatable-group .cmb-group-title {
|
173 |
-
background-color: #e9e9e9;
|
174 |
-
padding: 8px 12px 8px 2.2em;
|
175 |
-
margin: 0 -1em;
|
176 |
-
min-height: 1.5em;
|
177 |
-
font-size: 14px;
|
178 |
-
line-height: 1.4; }
|
179 |
-
.cmb-repeatable-group .cmb-group-title h4 {
|
180 |
-
border: 0;
|
181 |
-
margin: 0;
|
182 |
-
font-size: 1.2em;
|
183 |
-
font-weight: 500;
|
184 |
-
padding: 0.5em 0.75em; }
|
185 |
-
.cmb-repeatable-group .cmb-group-title .cmb-th {
|
186 |
-
display: block;
|
187 |
-
width: 100%; }
|
188 |
-
.cmb-repeatable-group .cmb-group-description .cmb-th {
|
189 |
-
font-size: 1.2em;
|
190 |
-
display: block;
|
191 |
-
float: none;
|
192 |
-
padding-bottom: 1em;
|
193 |
-
text-align: left;
|
194 |
-
width: 100%; }
|
195 |
-
.cmb-repeatable-group .cmb-group-description .cmb-th label {
|
196 |
-
display: block;
|
197 |
-
margin-top: 0em;
|
198 |
-
padding-bottom: 5px; }
|
199 |
-
.cmb-repeatable-group .cmb-group-description .cmb-th label:after {
|
200 |
-
border-bottom: 1px solid #e9e9e9;
|
201 |
-
content: '';
|
202 |
-
clear: both;
|
203 |
-
display: block;
|
204 |
-
padding-top: .4em; }
|
205 |
-
.cmb-repeatable-group .cmb-shift-rows {
|
206 |
-
font-size: 1em;
|
207 |
-
margin-right: 1em;
|
208 |
-
text-decoration: none; }
|
209 |
-
.cmb-repeatable-group .cmb-shift-rows .dashicons {
|
210 |
-
font-size: 1.5em;
|
211 |
-
height: 1.5em;
|
212 |
-
line-height: 1.2em;
|
213 |
-
width: 1em; }
|
214 |
-
.cmb-repeatable-group .cmb-shift-rows .dashicons.dashicons-arrow-down-alt2 {
|
215 |
-
line-height: 1.3em; }
|
216 |
-
.cmb-repeatable-group .cmb2-upload-button {
|
217 |
-
float: right; }
|
218 |
-
|
219 |
-
p.cmb2-metabox-description {
|
220 |
-
color: #aaaaaa;
|
221 |
-
font-style: italic;
|
222 |
-
margin: 0;
|
223 |
-
padding-top: .5em; }
|
224 |
-
|
225 |
-
span.cmb2-metabox-description {
|
226 |
-
color: #aaaaaa;
|
227 |
-
font-style: italic; }
|
228 |
-
|
229 |
-
.cmb2-metabox-title {
|
230 |
-
margin: 0 0 5px 0;
|
231 |
-
padding: 5px 0 0 0;
|
232 |
-
font-size: 14px; }
|
233 |
-
|
234 |
-
.cmb-inline ul {
|
235 |
-
padding: 4px 0 0 0; }
|
236 |
-
|
237 |
-
.cmb-inline li {
|
238 |
-
display: inline-block;
|
239 |
-
padding-right: 18px; }
|
240 |
-
|
241 |
-
.cmb-type-textarea-code pre {
|
242 |
-
margin: 0; }
|
243 |
-
|
244 |
-
.cmb2-media-status .img-status {
|
245 |
-
clear: none;
|
246 |
-
display: inline-block;
|
247 |
-
vertical-align: middle;
|
248 |
-
margin-right: 10px;
|
249 |
-
width: auto; }
|
250 |
-
.cmb2-media-status .img-status img {
|
251 |
-
max-width: 350px;
|
252 |
-
height: auto; }
|
253 |
-
.cmb2-media-status .img-status img,
|
254 |
-
.cmb2-media-status .embed-status {
|
255 |
-
background: #ffffff;
|
256 |
-
border: 1px solid #e9e9e9;
|
257 |
-
border-radius: 2px;
|
258 |
-
-moz-border-radius: 2px;
|
259 |
-
margin: 15px 0 0 0;
|
260 |
-
padding: 5px; }
|
261 |
-
.cmb2-media-status .embed-status {
|
262 |
-
float: left;
|
263 |
-
max-width: 800px; }
|
264 |
-
.cmb2-media-status .img-status, .cmb2-media-status .embed-status {
|
265 |
-
position: relative; }
|
266 |
-
.cmb2-media-status .img-status .cmb2-remove-file-button, .cmb2-media-status .embed-status .cmb2-remove-file-button {
|
267 |
-
background: url(../images/ico-delete.png);
|
268 |
-
height: 16px;
|
269 |
-
left: -5px;
|
270 |
-
position: absolute;
|
271 |
-
text-indent: -9999px;
|
272 |
-
top: -5px;
|
273 |
-
width: 16px; }
|
274 |
-
.cmb2-media-status .img-status .cmb2-remove-file-button {
|
275 |
-
top: 10px; }
|
276 |
-
.cmb2-media-status .img-status img, .cmb2-media-status .file-status > span {
|
277 |
-
cursor: pointer; }
|
278 |
-
|
279 |
-
.cmb-type-file-list .cmb2-media-status .img-status {
|
280 |
-
clear: none;
|
281 |
-
vertical-align: middle;
|
282 |
-
width: auto;
|
283 |
-
margin-right: 10px;
|
284 |
-
margin-bottom: 10px;
|
285 |
-
margin-top: 0; }
|
286 |
-
|
287 |
-
.cmb-attach-list li {
|
288 |
-
clear: both;
|
289 |
-
display: inline-block;
|
290 |
-
width: 100%;
|
291 |
-
margin-top: 5px;
|
292 |
-
margin-bottom: 10px; }
|
293 |
-
.cmb-attach-list li img {
|
294 |
-
cursor: move;
|
295 |
-
float: left;
|
296 |
-
margin-right: 10px; }
|
297 |
-
|
298 |
-
.cmb2-remove-wrapper {
|
299 |
-
margin: 0; }
|
300 |
-
|
301 |
-
.child-cmb2 .cmb-th {
|
302 |
-
text-align: left; }
|
303 |
-
|
304 |
-
@media (max-width: 450px) {
|
305 |
-
.cmb-th,
|
306 |
-
.cmb-td,
|
307 |
-
.cmb-th + .cmb-td {
|
308 |
-
display: block;
|
309 |
-
float: none;
|
310 |
-
width: 100%; } }
|
311 |
-
/*--------------------------------------------------------------
|
312 |
-
Post Metaboxes
|
313 |
-
--------------------------------------------------------------*/
|
314 |
-
#poststuff .cmb-group-title {
|
315 |
-
margin-left: -1em;
|
316 |
-
margin-right: -1em;
|
317 |
-
min-height: 1.5em; }
|
318 |
-
|
319 |
-
#poststuff .repeatable .cmb-group-title {
|
320 |
-
padding-left: 2.2em; }
|
321 |
-
|
322 |
-
.cmb2-postbox .cmb2-wrap, .cmb-type-group .cmb2-wrap {
|
323 |
-
margin: 0; }
|
324 |
-
.cmb2-postbox .cmb2-wrap > .cmb-field-list > .cmb-row, .cmb-type-group .cmb2-wrap > .cmb-field-list > .cmb-row {
|
325 |
-
padding: 1.8em 0; }
|
326 |
-
.cmb2-postbox .cmb2-wrap input[type=text].cmb2-oembed, .cmb-type-group .cmb2-wrap input[type=text].cmb2-oembed {
|
327 |
-
width: 100%; }
|
328 |
-
.cmb2-postbox .cmb-row, .cmb-type-group .cmb-row {
|
329 |
-
padding: 0 0 1.8em;
|
330 |
-
margin: 0 0 0.8em; }
|
331 |
-
.cmb2-postbox .cmb-row .cmbhandle, .cmb-type-group .cmb-row .cmbhandle {
|
332 |
-
right: -1em;
|
333 |
-
position: relative; }
|
334 |
-
.cmb2-postbox .cmb-repeatable-grouping, .cmb-type-group .cmb-repeatable-grouping {
|
335 |
-
padding: 0 1em;
|
336 |
-
max-width: 100%;
|
337 |
-
min-width: 1px !important; }
|
338 |
-
.cmb2-postbox .cmb-repeatable-group > .cmb-row, .cmb-type-group .cmb-repeatable-group > .cmb-row {
|
339 |
-
padding-bottom: 0; }
|
340 |
-
.cmb2-postbox .cmb-th, .cmb-type-group .cmb-th {
|
341 |
-
width: 18%;
|
342 |
-
padding: 0 2% 0 0; }
|
343 |
-
.cmb2-postbox .cmb-td, .cmb-type-group .cmb-td {
|
344 |
-
margin-bottom: 0;
|
345 |
-
padding: 0;
|
346 |
-
line-height: 1.3; }
|
347 |
-
.cmb2-postbox .cmb-repeat-row .cmb-td, .cmb-type-group .cmb-repeat-row .cmb-td {
|
348 |
-
padding-bottom: 1.8em; }
|
349 |
-
.cmb2-postbox .cmb-th + .cmb-td, .cmb-type-group .cmb-th + .cmb-td {
|
350 |
-
width: 80%;
|
351 |
-
float: right; }
|
352 |
-
.cmb2-postbox .cmb-row:not(:last-of-type),
|
353 |
-
.cmb2-postbox .cmb-repeatable-group:not(:last-of-type), .cmb-type-group .cmb-row:not(:last-of-type),
|
354 |
-
.cmb-type-group .cmb-repeatable-group:not(:last-of-type) {
|
355 |
-
border-bottom: 1px solid #e9e9e9; }
|
356 |
-
@media (max-width: 450px) {
|
357 |
-
.cmb2-postbox .cmb-row:not(:last-of-type),
|
358 |
-
.cmb2-postbox .cmb-repeatable-group:not(:last-of-type), .cmb-type-group .cmb-row:not(:last-of-type),
|
359 |
-
.cmb-type-group .cmb-repeatable-group:not(:last-of-type) {
|
360 |
-
border-bottom: 0; } }
|
361 |
-
.cmb2-postbox .cmb-repeat-group-field,
|
362 |
-
.cmb2-postbox .cmb-remove-field-row, .cmb-type-group .cmb-repeat-group-field,
|
363 |
-
.cmb-type-group .cmb-remove-field-row {
|
364 |
-
padding-top: 1.8em; }
|
365 |
-
.cmb2-postbox .cmb2-metabox > .cmb-row.table-layout .cmb-repeat-table .cmb-tbody, .cmb2-postbox .cmb2-metabox > .cmb-row .cmb-row.table-layout .cmb-repeat-table .cmb-tbody, .cmb-type-group .cmb2-metabox > .cmb-row.table-layout .cmb-repeat-table .cmb-tbody, .cmb-type-group .cmb2-metabox > .cmb-row .cmb-row.table-layout .cmb-repeat-table .cmb-tbody {
|
366 |
-
display: table;
|
367 |
-
width: 100%; }
|
368 |
-
.cmb2-postbox .cmb2-metabox > .cmb-row.table-layout .cmb-repeat-table .cmb-tbody input.regular-text, .cmb2-postbox .cmb2-metabox > .cmb-row .cmb-row.table-layout .cmb-repeat-table .cmb-tbody input.regular-text, .cmb-type-group .cmb2-metabox > .cmb-row.table-layout .cmb-repeat-table .cmb-tbody input.regular-text, .cmb-type-group .cmb2-metabox > .cmb-row .cmb-row.table-layout .cmb-repeat-table .cmb-tbody input.regular-text {
|
369 |
-
width: 100%; }
|
370 |
-
.cmb2-postbox .cmb2-metabox > .cmb-row.table-layout .cmb-repeat-table .cmb-tbody .cmb-row:not(.hidden):not(.empty-row), .cmb2-postbox .cmb2-metabox > .cmb-row .cmb-row.table-layout .cmb-repeat-table .cmb-tbody .cmb-row:not(.hidden):not(.empty-row), .cmb-type-group .cmb2-metabox > .cmb-row.table-layout .cmb-repeat-table .cmb-tbody .cmb-row:not(.hidden):not(.empty-row), .cmb-type-group .cmb2-metabox > .cmb-row .cmb-row.table-layout .cmb-repeat-table .cmb-tbody .cmb-row:not(.hidden):not(.empty-row) {
|
371 |
-
display: table-row; }
|
372 |
-
.cmb2-postbox .cmb2-metabox > .cmb-row.table-layout .cmb-repeat-table .cmb-tbody .cmb-td, .cmb2-postbox .cmb2-metabox > .cmb-row .cmb-row.table-layout .cmb-repeat-table .cmb-tbody .cmb-td, .cmb-type-group .cmb2-metabox > .cmb-row.table-layout .cmb-repeat-table .cmb-tbody .cmb-td, .cmb-type-group .cmb2-metabox > .cmb-row .cmb-row.table-layout .cmb-repeat-table .cmb-tbody .cmb-td {
|
373 |
-
display: table-cell;
|
374 |
-
float: none;
|
375 |
-
width: 100%; }
|
376 |
-
.cmb2-postbox .cmb2-metabox > .cmb-row.table-layout .cmb-repeat-table .cmb-tbody .cmb-row:not(:first-of-type) .cmb-td, .cmb2-postbox .cmb2-metabox > .cmb-row .cmb-row.table-layout .cmb-repeat-table .cmb-tbody .cmb-row:not(:first-of-type) .cmb-td, .cmb-type-group .cmb2-metabox > .cmb-row.table-layout .cmb-repeat-table .cmb-tbody .cmb-row:not(:first-of-type) .cmb-td, .cmb-type-group .cmb2-metabox > .cmb-row .cmb-row.table-layout .cmb-repeat-table .cmb-tbody .cmb-row:not(:first-of-type) .cmb-td {
|
377 |
-
padding-top: 1.8em; }
|
378 |
-
.cmb2-postbox .cmb2-metabox > .cmb-row.table-layout .cmb-repeat-table .cmb-tbody .cmb-td.cmb-remove-row, .cmb2-postbox .cmb2-metabox > .cmb-row .cmb-row.table-layout .cmb-repeat-table .cmb-tbody .cmb-td.cmb-remove-row, .cmb-type-group .cmb2-metabox > .cmb-row.table-layout .cmb-repeat-table .cmb-tbody .cmb-td.cmb-remove-row, .cmb-type-group .cmb2-metabox > .cmb-row .cmb-row.table-layout .cmb-repeat-table .cmb-tbody .cmb-td.cmb-remove-row {
|
379 |
-
padding-right: 0; }
|
380 |
-
|
381 |
-
/*--------------------------------------------------------------
|
382 |
-
Context Metaboxes
|
383 |
-
--------------------------------------------------------------*/
|
384 |
-
/* Metabox collapse arrow indicators */
|
385 |
-
.js .cmb2-postbox.context-box .toggle-indicator:before {
|
386 |
-
content: "\f142";
|
387 |
-
display: inline-block;
|
388 |
-
font: normal 20px/1 dashicons;
|
389 |
-
speak: none;
|
390 |
-
-webkit-font-smoothing: antialiased;
|
391 |
-
-moz-osx-font-smoothing: grayscale;
|
392 |
-
text-decoration: none !important; }
|
393 |
-
.js .cmb2-postbox.context-box.closed .toggle-indicator:before {
|
394 |
-
content: "\f140"; }
|
395 |
-
|
396 |
-
.cmb2-postbox.context-box {
|
397 |
-
margin-bottom: 10px; }
|
398 |
-
.cmb2-postbox.context-box.context-before_permalink-box {
|
399 |
-
margin-top: 10px; }
|
400 |
-
.cmb2-postbox.context-box.context-after_title-box {
|
401 |
-
margin-top: 10px; }
|
402 |
-
.cmb2-postbox.context-box.context-after_editor-box {
|
403 |
-
margin-top: 20px;
|
404 |
-
margin-bottom: 0; }
|
405 |
-
.cmb2-postbox.context-box.context-form_top-box {
|
406 |
-
margin-top: 10px; }
|
407 |
-
.cmb2-postbox.context-box.context-form_top-box .hndle {
|
408 |
-
font-size: 14px;
|
409 |
-
padding: 8px 12px;
|
410 |
-
margin: 0;
|
411 |
-
line-height: 1.4; }
|
412 |
-
.cmb2-postbox.context-box .hndle {
|
413 |
-
cursor: auto; }
|
414 |
-
|
415 |
-
.cmb2-context-wrap {
|
416 |
-
margin-top: 10px; }
|
417 |
-
.cmb2-context-wrap.cmb2-context-wrap-form_top {
|
418 |
-
margin-right: 300px;
|
419 |
-
width: auto; }
|
420 |
-
.cmb2-context-wrap.cmb2-context-wrap-no-title .cmb2-metabox {
|
421 |
-
padding: 10px; }
|
422 |
-
.cmb2-context-wrap .cmb-th {
|
423 |
-
padding: 0 2% 0 0;
|
424 |
-
width: 18%; }
|
425 |
-
.cmb2-context-wrap .cmb-td {
|
426 |
-
width: 80%;
|
427 |
-
padding: 0; }
|
428 |
-
.cmb2-context-wrap .cmb-row {
|
429 |
-
margin-bottom: 10px; }
|
430 |
-
.cmb2-context-wrap .cmb-row:last-of-type {
|
431 |
-
margin-bottom: 0; }
|
432 |
-
|
433 |
-
/* one column on the post write/edit screen */
|
434 |
-
@media only screen and (max-width: 850px) {
|
435 |
-
.cmb2-context-wrap.cmb2-context-wrap-form_top {
|
436 |
-
margin-right: 0; } }
|
437 |
-
/*--------------------------------------------------------------
|
438 |
-
Misc.
|
439 |
-
--------------------------------------------------------------*/
|
440 |
-
#poststuff .cmb-repeatable-group h2 {
|
441 |
-
margin: 0; }
|
442 |
-
|
443 |
-
.edit-tags-php .cmb2-metabox-title,
|
444 |
-
.profile-php .cmb2-metabox-title,
|
445 |
-
.user-edit-php .cmb2-metabox-title {
|
446 |
-
font-size: 1.4em; }
|
447 |
-
|
448 |
-
.cmb2-options-page .cmb2-metabox-title {
|
449 |
-
font-size: 1.3em;
|
450 |
-
margin: 1em 0; }
|
451 |
-
.cmb2-options-page .cmb2-metabox-title + p.cmb2-metabox-description {
|
452 |
-
margin-top: -1.6em;
|
453 |
-
margin-bottom: .8em; }
|
454 |
-
|
455 |
-
.cmb2-postbox .cmb-spinner, .cmb2-no-box-wrap .cmb-spinner {
|
456 |
-
float: left;
|
457 |
-
display: none; }
|
458 |
-
|
459 |
-
.cmb-spinner {
|
460 |
-
display: none; }
|
461 |
-
.cmb-spinner.is-active {
|
462 |
-
display: block; }
|
463 |
-
|
464 |
-
/*--------------------------------------------------------------
|
465 |
-
Sidebar Placement Adjustments
|
466 |
-
--------------------------------------------------------------*/
|
467 |
-
.inner-sidebar .cmb2-wrap > .cmb-field-list > .cmb-row,
|
468 |
-
#side-sortables .cmb2-wrap > .cmb-field-list > .cmb-row {
|
469 |
-
padding: 1.4em 0; }
|
470 |
-
.inner-sidebar .cmb2-wrap input[type=text]:not(.wp-color-picker),
|
471 |
-
#side-sortables .cmb2-wrap input[type=text]:not(.wp-color-picker) {
|
472 |
-
width: 100%; }
|
473 |
-
.inner-sidebar .cmb2-wrap input + input:not(.wp-picker-clear), .inner-sidebar .cmb2-wrap input + select,
|
474 |
-
#side-sortables .cmb2-wrap input + input:not(.wp-picker-clear),
|
475 |
-
#side-sortables .cmb2-wrap input + select {
|
476 |
-
margin-left: 0;
|
477 |
-
margin-top: 1em;
|
478 |
-
display: block; }
|
479 |
-
.inner-sidebar .cmb2-wrap input.cmb2-text-money,
|
480 |
-
#side-sortables .cmb2-wrap input.cmb2-text-money {
|
481 |
-
max-width: 70%; }
|
482 |
-
.inner-sidebar .cmb2-wrap input.cmb2-text-money + .cmb2-metabox-description,
|
483 |
-
#side-sortables .cmb2-wrap input.cmb2-text-money + .cmb2-metabox-description {
|
484 |
-
display: block; }
|
485 |
-
.inner-sidebar .cmb2-wrap label,
|
486 |
-
#side-sortables .cmb2-wrap label {
|
487 |
-
display: block;
|
488 |
-
font-weight: 700;
|
489 |
-
padding: 0 0 5px; }
|
490 |
-
.inner-sidebar textarea,
|
491 |
-
#side-sortables textarea {
|
492 |
-
max-width: 99%; }
|
493 |
-
.inner-sidebar .cmb-repeatable-group,
|
494 |
-
#side-sortables .cmb-repeatable-group {
|
495 |
-
border-bottom: 1px solid #e9e9e9; }
|
496 |
-
.inner-sidebar .cmb-type-group > .cmb-td > .cmb-repeatable-group,
|
497 |
-
#side-sortables .cmb-type-group > .cmb-td > .cmb-repeatable-group {
|
498 |
-
border-bottom: 0;
|
499 |
-
margin-bottom: -1.4em; }
|
500 |
-
.inner-sidebar .cmb-th,
|
501 |
-
.inner-sidebar .cmb-td,
|
502 |
-
.inner-sidebar .cmb-th + .cmb-td,
|
503 |
-
#side-sortables .cmb-th,
|
504 |
-
#side-sortables .cmb-td,
|
505 |
-
#side-sortables .cmb-th + .cmb-td {
|
506 |
-
width: 100%;
|
507 |
-
display: block;
|
508 |
-
float: none; }
|
509 |
-
.inner-sidebar .closed .inside,
|
510 |
-
#side-sortables .closed .inside {
|
511 |
-
display: none; }
|
512 |
-
.inner-sidebar .cmb-td .cmb-td,
|
513 |
-
#side-sortables .cmb-td .cmb-td {
|
514 |
-
padding-bottom: 1em; }
|
515 |
-
.inner-sidebar .cmb-th,
|
516 |
-
#side-sortables .cmb-th {
|
517 |
-
display: block;
|
518 |
-
float: none;
|
519 |
-
padding-bottom: 1em;
|
520 |
-
text-align: left;
|
521 |
-
width: 100%;
|
522 |
-
padding-left: 0;
|
523 |
-
padding-right: 0; }
|
524 |
-
.inner-sidebar .cmb-th label,
|
525 |
-
#side-sortables .cmb-th label {
|
526 |
-
display: block;
|
527 |
-
margin-top: 0em;
|
528 |
-
padding-bottom: 5px; }
|
529 |
-
.inner-sidebar .cmb-th label:after,
|
530 |
-
#side-sortables .cmb-th label:after {
|
531 |
-
border-bottom: 1px solid #e9e9e9;
|
532 |
-
content: '';
|
533 |
-
clear: both;
|
534 |
-
display: block;
|
535 |
-
padding-top: .4em; }
|
536 |
-
.inner-sidebar .cmb-th label,
|
537 |
-
#side-sortables .cmb-th label {
|
538 |
-
font-size: 14px;
|
539 |
-
line-height: 1.4em; }
|
540 |
-
.inner-sidebar .cmb-group-description .cmb-th,
|
541 |
-
#side-sortables .cmb-group-description .cmb-th {
|
542 |
-
padding-top: 0; }
|
543 |
-
.inner-sidebar .cmb-group-description .cmb2-metabox-description,
|
544 |
-
#side-sortables .cmb-group-description .cmb2-metabox-description {
|
545 |
-
padding: 0; }
|
546 |
-
.inner-sidebar .cmb-group-title .cmb-th,
|
547 |
-
#side-sortables .cmb-group-title .cmb-th {
|
548 |
-
padding: 0; }
|
549 |
-
.inner-sidebar .cmb-repeatable-grouping + .cmb-repeatable-grouping,
|
550 |
-
#side-sortables .cmb-repeatable-grouping + .cmb-repeatable-grouping {
|
551 |
-
margin-top: 1em; }
|
552 |
-
.inner-sidebar .cmb2-media-status .img-status img,
|
553 |
-
.inner-sidebar .cmb2-media-status .embed-status img,
|
554 |
-
#side-sortables .cmb2-media-status .img-status img,
|
555 |
-
#side-sortables .cmb2-media-status .embed-status img {
|
556 |
-
max-width: 90%;
|
557 |
-
height: auto; }
|
558 |
-
.inner-sidebar .cmb2-list label,
|
559 |
-
#side-sortables .cmb2-list label {
|
560 |
-
display: inline;
|
561 |
-
font-weight: normal; }
|
562 |
-
.inner-sidebar .cmb2-metabox-description,
|
563 |
-
#side-sortables .cmb2-metabox-description {
|
564 |
-
display: block;
|
565 |
-
padding: 7px 0 0; }
|
566 |
-
.inner-sidebar .cmb-type-checkbox .cmb-td label,
|
567 |
-
.inner-sidebar .cmb-type-checkbox .cmb2-metabox-description,
|
568 |
-
#side-sortables .cmb-type-checkbox .cmb-td label,
|
569 |
-
#side-sortables .cmb-type-checkbox .cmb2-metabox-description {
|
570 |
-
font-weight: normal;
|
571 |
-
display: inline; }
|
572 |
-
.inner-sidebar .cmb-row .cmb2-metabox-description,
|
573 |
-
#side-sortables .cmb-row .cmb2-metabox-description {
|
574 |
-
padding-bottom: 1.8em; }
|
575 |
-
.inner-sidebar .cmb2-metabox-title,
|
576 |
-
#side-sortables .cmb2-metabox-title {
|
577 |
-
font-size: 1.2em;
|
578 |
-
font-style: italic; }
|
579 |
-
.inner-sidebar .cmb-remove-row,
|
580 |
-
#side-sortables .cmb-remove-row {
|
581 |
-
clear: both;
|
582 |
-
padding-top: 12px;
|
583 |
-
padding-bottom: 0; }
|
584 |
-
.inner-sidebar .cmb-type-colorpicker .cmb-repeat-row .cmb-td,
|
585 |
-
#side-sortables .cmb-type-colorpicker .cmb-repeat-row .cmb-td {
|
586 |
-
width: auto;
|
587 |
-
clear: none;
|
588 |
-
float: left;
|
589 |
-
padding-top: 0; }
|
590 |
-
.inner-sidebar .cmb-type-colorpicker .cmb-repeat-row .cmb-td.cmb-remove-row,
|
591 |
-
#side-sortables .cmb-type-colorpicker .cmb-repeat-row .cmb-td.cmb-remove-row {
|
592 |
-
float: right;
|
593 |
-
margin: 0; }
|
594 |
-
.inner-sidebar .cmb2-upload-button,
|
595 |
-
#side-sortables .cmb2-upload-button {
|
596 |
-
clear: both;
|
597 |
-
margin-top: 12px; }
|
598 |
-
|
599 |
-
.cmb2-metabox .cmb-type-group {
|
600 |
-
max-width: 1000px; }
|
601 |
-
.cmb2-metabox .cmbhandle {
|
602 |
-
color: #aaa;
|
603 |
-
float: right;
|
604 |
-
width: 27px;
|
605 |
-
height: 30px;
|
606 |
-
cursor: pointer;
|
607 |
-
right: -1em;
|
608 |
-
position: relative; }
|
609 |
-
.cmb2-metabox .cmbhandle:before {
|
610 |
-
content: '\f142';
|
611 |
-
right: 12px;
|
612 |
-
font: normal 20px/1 'dashicons';
|
613 |
-
speak: none;
|
614 |
-
display: inline-block;
|
615 |
-
padding: 8px 10px;
|
616 |
-
top: 0;
|
617 |
-
position: relative;
|
618 |
-
-webkit-font-smoothing: antialiased;
|
619 |
-
-moz-osx-font-smoothing: grayscale;
|
620 |
-
text-decoration: none !important; }
|
621 |
-
.cmb2-metabox .postbox.closed .cmbhandle:before {
|
622 |
-
content: '\f140'; }
|
623 |
-
.cmb2-metabox button.dashicons-before.dashicons-no-alt.cmb-remove-group-row {
|
624 |
-
-webkit-appearance: none !important;
|
625 |
-
background: none !important;
|
626 |
-
border: none !important;
|
627 |
-
position: absolute;
|
628 |
-
left: 0;
|
629 |
-
top: .5em;
|
630 |
-
line-height: 1em;
|
631 |
-
padding: 2px 6px 3px;
|
632 |
-
opacity: .5; }
|
633 |
-
.cmb2-metabox button.dashicons-before.dashicons-no-alt.cmb-remove-group-row:not([disabled]) {
|
634 |
-
cursor: pointer;
|
635 |
-
color: #a00;
|
636 |
-
opacity: 1; }
|
637 |
-
.cmb2-metabox button.dashicons-before.dashicons-no-alt.cmb-remove-group-row:not([disabled]):hover {
|
638 |
-
color: #f00; }
|
639 |
-
|
640 |
-
/*
|
641 |
-
* jQuery UI CSS Framework 1.8.16
|
642 |
-
*
|
643 |
-
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
644 |
-
* Dual licensed under the MIT or GPL Version 2 licenses.
|
645 |
-
* http://jquery.org/license
|
646 |
-
*
|
647 |
-
* http://docs.jquery.com/UI/Theming/API
|
648 |
-
*
|
649 |
-
* WordPress Styles adopted from "jQuery UI Datepicker CSS for WordPress"
|
650 |
-
* https://github.com/stuttter/wp-datepicker-styling
|
651 |
-
*
|
652 |
-
*/
|
653 |
-
* html .cmb2-element.ui-helper-clearfix {
|
654 |
-
height: 1%; }
|
655 |
-
|
656 |
-
.cmb2-element.ui-datepicker, .cmb2-element .ui-datepicker {
|
657 |
-
padding: 0;
|
658 |
-
margin: 0;
|
659 |
-
-webkit-border-radius: 0;
|
660 |
-
-moz-border-radius: 0;
|
661 |
-
border-radius: 0;
|
662 |
-
background-color: #fff;
|
663 |
-
border: 1px solid #dfdfdf;
|
664 |
-
border-top: none;
|
665 |
-
-webkit-box-shadow: 0 3px 6px rgba(0, 0, 0, 0.075);
|
666 |
-
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.075);
|
667 |
-
min-width: 17em;
|
668 |
-
width: auto;
|
669 |
-
/* Default Color Scheme */ }
|
670 |
-
.cmb2-element.ui-datepicker *, .cmb2-element .ui-datepicker * {
|
671 |
-
padding: 0;
|
672 |
-
font-family: "Open Sans", sans-serif;
|
673 |
-
-webkit-border-radius: 0;
|
674 |
-
-moz-border-radius: 0;
|
675 |
-
border-radius: 0; }
|
676 |
-
.cmb2-element.ui-datepicker table, .cmb2-element .ui-datepicker table {
|
677 |
-
font-size: 13px;
|
678 |
-
margin: 0;
|
679 |
-
border: none;
|
680 |
-
border-collapse: collapse; }
|
681 |
-
.cmb2-element.ui-datepicker .ui-widget-header,
|
682 |
-
.cmb2-element.ui-datepicker .ui-datepicker-header, .cmb2-element .ui-datepicker .ui-widget-header,
|
683 |
-
.cmb2-element .ui-datepicker .ui-datepicker-header {
|
684 |
-
background-image: none;
|
685 |
-
border: none;
|
686 |
-
color: #fff;
|
687 |
-
font-weight: normal; }
|
688 |
-
.cmb2-element.ui-datepicker .ui-datepicker-header .ui-state-hover, .cmb2-element .ui-datepicker .ui-datepicker-header .ui-state-hover {
|
689 |
-
background: transparent;
|
690 |
-
border-color: transparent;
|
691 |
-
cursor: pointer; }
|
692 |
-
.cmb2-element.ui-datepicker .ui-datepicker-title, .cmb2-element .ui-datepicker .ui-datepicker-title {
|
693 |
-
margin: 0;
|
694 |
-
padding: 10px 0;
|
695 |
-
color: #fff;
|
696 |
-
font-size: 14px;
|
697 |
-
line-height: 14px;
|
698 |
-
text-align: center; }
|
699 |
-
.cmb2-element.ui-datepicker .ui-datepicker-title select, .cmb2-element .ui-datepicker .ui-datepicker-title select {
|
700 |
-
margin-top: -8px;
|
701 |
-
margin-bottom: -8px; }
|
702 |
-
.cmb2-element.ui-datepicker .ui-datepicker-prev,
|
703 |
-
.cmb2-element.ui-datepicker .ui-datepicker-next, .cmb2-element .ui-datepicker .ui-datepicker-prev,
|
704 |
-
.cmb2-element .ui-datepicker .ui-datepicker-next {
|
705 |
-
position: relative;
|
706 |
-
top: 0;
|
707 |
-
height: 34px;
|
708 |
-
width: 34px; }
|
709 |
-
.cmb2-element.ui-datepicker .ui-state-hover.ui-datepicker-prev,
|
710 |
-
.cmb2-element.ui-datepicker .ui-state-hover.ui-datepicker-next, .cmb2-element .ui-datepicker .ui-state-hover.ui-datepicker-prev,
|
711 |
-
.cmb2-element .ui-datepicker .ui-state-hover.ui-datepicker-next {
|
712 |
-
border: none; }
|
713 |
-
.cmb2-element.ui-datepicker .ui-datepicker-prev,
|
714 |
-
.cmb2-element.ui-datepicker .ui-datepicker-prev-hover, .cmb2-element .ui-datepicker .ui-datepicker-prev,
|
715 |
-
.cmb2-element .ui-datepicker .ui-datepicker-prev-hover {
|
716 |
-
left: 0; }
|
717 |
-
.cmb2-element.ui-datepicker .ui-datepicker-next,
|
718 |
-
.cmb2-element.ui-datepicker .ui-datepicker-next-hover, .cmb2-element .ui-datepicker .ui-datepicker-next,
|
719 |
-
.cmb2-element .ui-datepicker .ui-datepicker-next-hover {
|
720 |
-
right: 0; }
|
721 |
-
.cmb2-element.ui-datepicker .ui-datepicker-next span,
|
722 |
-
.cmb2-element.ui-datepicker .ui-datepicker-prev span, .cmb2-element .ui-datepicker .ui-datepicker-next span,
|
723 |
-
.cmb2-element .ui-datepicker .ui-datepicker-prev span {
|
724 |
-
display: none; }
|
725 |
-
.cmb2-element.ui-datepicker .ui-datepicker-prev, .cmb2-element .ui-datepicker .ui-datepicker-prev {
|
726 |
-
float: left; }
|
727 |
-
.cmb2-element.ui-datepicker .ui-datepicker-next, .cmb2-element .ui-datepicker .ui-datepicker-next {
|
728 |
-
float: right; }
|
729 |
-
.cmb2-element.ui-datepicker .ui-datepicker-prev:before,
|
730 |
-
.cmb2-element.ui-datepicker .ui-datepicker-next:before, .cmb2-element .ui-datepicker .ui-datepicker-prev:before,
|
731 |
-
.cmb2-element .ui-datepicker .ui-datepicker-next:before {
|
732 |
-
font: normal 20px/34px 'dashicons';
|
733 |
-
padding-left: 7px;
|
734 |
-
color: #fff;
|
735 |
-
speak: none;
|
736 |
-
-webkit-font-smoothing: antialiased;
|
737 |
-
-moz-osx-font-smoothing: grayscale;
|
738 |
-
width: 34px;
|
739 |
-
height: 34px; }
|
740 |
-
.cmb2-element.ui-datepicker .ui-datepicker-prev:before, .cmb2-element .ui-datepicker .ui-datepicker-prev:before {
|
741 |
-
content: '\f341'; }
|
742 |
-
.cmb2-element.ui-datepicker .ui-datepicker-next:before, .cmb2-element .ui-datepicker .ui-datepicker-next:before {
|
743 |
-
content: '\f345'; }
|
744 |
-
.cmb2-element.ui-datepicker .ui-datepicker-prev-hover:before,
|
745 |
-
.cmb2-element.ui-datepicker .ui-datepicker-next-hover:before, .cmb2-element .ui-datepicker .ui-datepicker-prev-hover:before,
|
746 |
-
.cmb2-element .ui-datepicker .ui-datepicker-next-hover:before {
|
747 |
-
opacity: 0.7; }
|
748 |
-
.cmb2-element.ui-datepicker select.ui-datepicker-month,
|
749 |
-
.cmb2-element.ui-datepicker select.ui-datepicker-year, .cmb2-element .ui-datepicker select.ui-datepicker-month,
|
750 |
-
.cmb2-element .ui-datepicker select.ui-datepicker-year {
|
751 |
-
width: 33%;
|
752 |
-
background: transparent;
|
753 |
-
border-color: transparent;
|
754 |
-
box-shadow: none;
|
755 |
-
color: #fff; }
|
756 |
-
.cmb2-element.ui-datepicker select.ui-datepicker-month option,
|
757 |
-
.cmb2-element.ui-datepicker select.ui-datepicker-year option, .cmb2-element .ui-datepicker select.ui-datepicker-month option,
|
758 |
-
.cmb2-element .ui-datepicker select.ui-datepicker-year option {
|
759 |
-
color: #333; }
|
760 |
-
.cmb2-element.ui-datepicker thead, .cmb2-element .ui-datepicker thead {
|
761 |
-
color: #fff;
|
762 |
-
font-weight: 600; }
|
763 |
-
.cmb2-element.ui-datepicker thead th, .cmb2-element .ui-datepicker thead th {
|
764 |
-
font-weight: normal; }
|
765 |
-
.cmb2-element.ui-datepicker th, .cmb2-element .ui-datepicker th {
|
766 |
-
padding: 10px; }
|
767 |
-
.cmb2-element.ui-datepicker td, .cmb2-element .ui-datepicker td {
|
768 |
-
padding: 0;
|
769 |
-
border: 1px solid #f4f4f4; }
|
770 |
-
.cmb2-element.ui-datepicker td.ui-datepicker-other-month, .cmb2-element .ui-datepicker td.ui-datepicker-other-month {
|
771 |
-
border: transparent; }
|
772 |
-
.cmb2-element.ui-datepicker td.ui-datepicker-week-end, .cmb2-element .ui-datepicker td.ui-datepicker-week-end {
|
773 |
-
background-color: #f4f4f4;
|
774 |
-
border: 1px solid #f4f4f4; }
|
775 |
-
.cmb2-element.ui-datepicker td.ui-datepicker-week-end.ui-datepicker-today, .cmb2-element .ui-datepicker td.ui-datepicker-week-end.ui-datepicker-today {
|
776 |
-
-webkit-box-shadow: inset 0px 0px 1px 0px rgba(0, 0, 0, 0.1);
|
777 |
-
-moz-box-shadow: inset 0px 0px 1px 0px rgba(0, 0, 0, 0.1);
|
778 |
-
box-shadow: inset 0px 0px 1px 0px rgba(0, 0, 0, 0.1); }
|
779 |
-
.cmb2-element.ui-datepicker td.ui-datepicker-today, .cmb2-element .ui-datepicker td.ui-datepicker-today {
|
780 |
-
background-color: #f0f0c0; }
|
781 |
-
.cmb2-element.ui-datepicker td.ui-datepicker-current-day, .cmb2-element .ui-datepicker td.ui-datepicker-current-day {
|
782 |
-
background: #bbdd88; }
|
783 |
-
.cmb2-element.ui-datepicker td .ui-state-default, .cmb2-element .ui-datepicker td .ui-state-default {
|
784 |
-
background: transparent;
|
785 |
-
border: none;
|
786 |
-
text-align: center;
|
787 |
-
text-decoration: none;
|
788 |
-
width: auto;
|
789 |
-
display: block;
|
790 |
-
padding: 5px 10px;
|
791 |
-
font-weight: normal;
|
792 |
-
color: #444; }
|
793 |
-
.cmb2-element.ui-datepicker td.ui-state-disabled .ui-state-default, .cmb2-element .ui-datepicker td.ui-state-disabled .ui-state-default {
|
794 |
-
opacity: 0.5; }
|
795 |
-
.cmb2-element.ui-datepicker .ui-widget-header,
|
796 |
-
.cmb2-element.ui-datepicker .ui-datepicker-header, .cmb2-element .ui-datepicker .ui-widget-header,
|
797 |
-
.cmb2-element .ui-datepicker .ui-datepicker-header {
|
798 |
-
background: #00a0d2; }
|
799 |
-
.cmb2-element.ui-datepicker thead, .cmb2-element .ui-datepicker thead {
|
800 |
-
background: #32373c; }
|
801 |
-
.cmb2-element.ui-datepicker td .ui-state-hover, .cmb2-element.ui-datepicker td .ui-state-active, .cmb2-element .ui-datepicker td .ui-state-hover, .cmb2-element .ui-datepicker td .ui-state-active {
|
802 |
-
background: #0073aa;
|
803 |
-
color: #fff; }
|
804 |
-
.cmb2-element.ui-datepicker .ui-timepicker-div, .cmb2-element .ui-datepicker .ui-timepicker-div {
|
805 |
-
font-size: 14px; }
|
806 |
-
.cmb2-element.ui-datepicker .ui-timepicker-div dl, .cmb2-element .ui-datepicker .ui-timepicker-div dl {
|
807 |
-
text-align: left;
|
808 |
-
padding: 0 .6em; }
|
809 |
-
.cmb2-element.ui-datepicker .ui-timepicker-div dl dt, .cmb2-element .ui-datepicker .ui-timepicker-div dl dt {
|
810 |
-
float: left;
|
811 |
-
clear: left;
|
812 |
-
padding: 0 0 0 5px; }
|
813 |
-
.cmb2-element.ui-datepicker .ui-timepicker-div dl dd, .cmb2-element .ui-datepicker .ui-timepicker-div dl dd {
|
814 |
-
margin: 0 10px 10px 40%; }
|
815 |
-
.cmb2-element.ui-datepicker .ui-timepicker-div dl dd select, .cmb2-element .ui-datepicker .ui-timepicker-div dl dd select {
|
816 |
-
width: 100%; }
|
817 |
-
.cmb2-element.ui-datepicker .ui-timepicker-div + .ui-datepicker-buttonpane, .cmb2-element .ui-datepicker .ui-timepicker-div + .ui-datepicker-buttonpane {
|
818 |
-
padding: .6em;
|
819 |
-
text-align: left; }
|
820 |
-
.cmb2-element.ui-datepicker .ui-timepicker-div + .ui-datepicker-buttonpane .button-primary, .cmb2-element.ui-datepicker .ui-timepicker-div + .ui-datepicker-buttonpane .button-secondary, .cmb2-element .ui-datepicker .ui-timepicker-div + .ui-datepicker-buttonpane .button-primary, .cmb2-element .ui-datepicker .ui-timepicker-div + .ui-datepicker-buttonpane .button-secondary {
|
821 |
-
padding: 0 10px 1px;
|
822 |
-
-webkit-border-radius: 3px;
|
823 |
-
-moz-border-radius: 3px;
|
824 |
-
border-radius: 3px;
|
825 |
-
margin: 0 .6em .4em .4em; }
|
826 |
-
|
827 |
-
.admin-color-fresh .cmb2-element.ui-datepicker .ui-widget-header,
|
828 |
-
.admin-color-fresh .cmb2-element.ui-datepicker .ui-datepicker-header, .admin-color-fresh .cmb2-element .ui-datepicker .ui-widget-header,
|
829 |
-
.admin-color-fresh .cmb2-element .ui-datepicker .ui-datepicker-header {
|
830 |
-
background: #00a0d2; }
|
831 |
-
.admin-color-fresh .cmb2-element.ui-datepicker thead, .admin-color-fresh .cmb2-element .ui-datepicker thead {
|
832 |
-
background: #32373c; }
|
833 |
-
.admin-color-fresh .cmb2-element.ui-datepicker td .ui-state-hover, .admin-color-fresh .cmb2-element .ui-datepicker td .ui-state-hover {
|
834 |
-
background: #0073aa;
|
835 |
-
color: #fff; }
|
836 |
-
|
837 |
-
.admin-color-blue .cmb2-element.ui-datepicker .ui-widget-header,
|
838 |
-
.admin-color-blue .cmb2-element.ui-datepicker .ui-datepicker-header, .admin-color-blue .cmb2-element .ui-datepicker .ui-widget-header,
|
839 |
-
.admin-color-blue .cmb2-element .ui-datepicker .ui-datepicker-header {
|
840 |
-
background: #52accc; }
|
841 |
-
.admin-color-blue .cmb2-element.ui-datepicker thead, .admin-color-blue .cmb2-element .ui-datepicker thead {
|
842 |
-
background: #4796b3; }
|
843 |
-
.admin-color-blue .cmb2-element.ui-datepicker td .ui-state-hover, .admin-color-blue .cmb2-element.ui-datepicker td .ui-state-active, .admin-color-blue .cmb2-element .ui-datepicker td .ui-state-hover, .admin-color-blue .cmb2-element .ui-datepicker td .ui-state-active {
|
844 |
-
background: #096484;
|
845 |
-
color: #fff; }
|
846 |
-
.admin-color-blue .cmb2-element.ui-datepicker td.ui-datepicker-today, .admin-color-blue .cmb2-element .ui-datepicker td.ui-datepicker-today {
|
847 |
-
background: #eee; }
|
848 |
-
|
849 |
-
.admin-color-coffee .cmb2-element.ui-datepicker .ui-widget-header,
|
850 |
-
.admin-color-coffee .cmb2-element.ui-datepicker .ui-datepicker-header, .admin-color-coffee .cmb2-element .ui-datepicker .ui-widget-header,
|
851 |
-
.admin-color-coffee .cmb2-element .ui-datepicker .ui-datepicker-header {
|
852 |
-
background: #59524c; }
|
853 |
-
.admin-color-coffee .cmb2-element.ui-datepicker thead, .admin-color-coffee .cmb2-element .ui-datepicker thead {
|
854 |
-
background: #46403c; }
|
855 |
-
.admin-color-coffee .cmb2-element.ui-datepicker td .ui-state-hover, .admin-color-coffee .cmb2-element .ui-datepicker td .ui-state-hover {
|
856 |
-
background: #c7a589;
|
857 |
-
color: #fff; }
|
858 |
-
|
859 |
-
.admin-color-ectoplasm .cmb2-element.ui-datepicker .ui-widget-header,
|
860 |
-
.admin-color-ectoplasm .cmb2-element.ui-datepicker .ui-datepicker-header, .admin-color-ectoplasm .cmb2-element .ui-datepicker .ui-widget-header,
|
861 |
-
.admin-color-ectoplasm .cmb2-element .ui-datepicker .ui-datepicker-header {
|
862 |
-
background: #523f6d; }
|
863 |
-
.admin-color-ectoplasm .cmb2-element.ui-datepicker thead, .admin-color-ectoplasm .cmb2-element .ui-datepicker thead {
|
864 |
-
background: #413256; }
|
865 |
-
.admin-color-ectoplasm .cmb2-element.ui-datepicker td .ui-state-hover, .admin-color-ectoplasm .cmb2-element .ui-datepicker td .ui-state-hover {
|
866 |
-
background: #a3b745;
|
867 |
-
color: #fff; }
|
868 |
-
|
869 |
-
.admin-color-midnight .cmb2-element.ui-datepicker .ui-widget-header,
|
870 |
-
.admin-color-midnight .cmb2-element.ui-datepicker .ui-datepicker-header, .admin-color-midnight .cmb2-element .ui-datepicker .ui-widget-header,
|
871 |
-
.admin-color-midnight .cmb2-element .ui-datepicker .ui-datepicker-header {
|
872 |
-
background: #363b3f; }
|
873 |
-
.admin-color-midnight .cmb2-element.ui-datepicker thead, .admin-color-midnight .cmb2-element .ui-datepicker thead {
|
874 |
-
background: #26292c; }
|
875 |
-
.admin-color-midnight .cmb2-element.ui-datepicker td .ui-state-hover, .admin-color-midnight .cmb2-element .ui-datepicker td .ui-state-hover {
|
876 |
-
background: #e14d43;
|
877 |
-
color: #fff; }
|
878 |
-
|
879 |
-
.admin-color-ocean .cmb2-element.ui-datepicker .ui-widget-header,
|
880 |
-
.admin-color-ocean .cmb2-element.ui-datepicker .ui-datepicker-header, .admin-color-ocean .cmb2-element .ui-datepicker .ui-widget-header,
|
881 |
-
.admin-color-ocean .cmb2-element .ui-datepicker .ui-datepicker-header {
|
882 |
-
background: #738e96; }
|
883 |
-
.admin-color-ocean .cmb2-element.ui-datepicker thead, .admin-color-ocean .cmb2-element .ui-datepicker thead {
|
884 |
-
background: #627c83; }
|
885 |
-
.admin-color-ocean .cmb2-element.ui-datepicker td .ui-state-hover, .admin-color-ocean .cmb2-element .ui-datepicker td .ui-state-hover {
|
886 |
-
background: #9ebaa0;
|
887 |
-
color: #fff; }
|
888 |
-
|
889 |
-
.admin-color-sunrise .cmb2-element.ui-datepicker .ui-widget-header,
|
890 |
-
.admin-color-sunrise .cmb2-element.ui-datepicker .ui-datepicker-header,
|
891 |
-
.admin-color-sunrise .cmb2-element.ui-datepicker .ui-datepicker-header .ui-state-hover, .admin-color-sunrise .cmb2-element .ui-datepicker .ui-widget-header,
|
892 |
-
.admin-color-sunrise .cmb2-element .ui-datepicker .ui-datepicker-header,
|
893 |
-
.admin-color-sunrise .cmb2-element .ui-datepicker .ui-datepicker-header .ui-state-hover {
|
894 |
-
background: #cf4944; }
|
895 |
-
.admin-color-sunrise .cmb2-element.ui-datepicker th, .admin-color-sunrise .cmb2-element .ui-datepicker th {
|
896 |
-
border-color: #be3631;
|
897 |
-
background: #be3631; }
|
898 |
-
.admin-color-sunrise .cmb2-element.ui-datepicker td .ui-state-hover, .admin-color-sunrise .cmb2-element .ui-datepicker td .ui-state-hover {
|
899 |
-
background: #dd823b;
|
900 |
-
color: #fff; }
|
901 |
-
|
902 |
-
.admin-color-light .cmb2-element.ui-datepicker .ui-widget-header,
|
903 |
-
.admin-color-light .cmb2-element.ui-datepicker .ui-datepicker-header, .admin-color-light .cmb2-element .ui-datepicker .ui-widget-header,
|
904 |
-
.admin-color-light .cmb2-element .ui-datepicker .ui-datepicker-header {
|
905 |
-
background: #e5e5e5; }
|
906 |
-
.admin-color-light .cmb2-element.ui-datepicker select.ui-datepicker-month,
|
907 |
-
.admin-color-light .cmb2-element.ui-datepicker select.ui-datepicker-year, .admin-color-light .cmb2-element .ui-datepicker select.ui-datepicker-month,
|
908 |
-
.admin-color-light .cmb2-element .ui-datepicker select.ui-datepicker-year {
|
909 |
-
color: #555; }
|
910 |
-
.admin-color-light .cmb2-element.ui-datepicker thead, .admin-color-light .cmb2-element .ui-datepicker thead {
|
911 |
-
background: #888; }
|
912 |
-
.admin-color-light .cmb2-element.ui-datepicker .ui-datepicker-title,
|
913 |
-
.admin-color-light .cmb2-element.ui-datepicker td .ui-state-default,
|
914 |
-
.admin-color-light .cmb2-element.ui-datepicker .ui-datepicker-prev:before,
|
915 |
-
.admin-color-light .cmb2-element.ui-datepicker .ui-datepicker-next:before, .admin-color-light .cmb2-element .ui-datepicker .ui-datepicker-title,
|
916 |
-
.admin-color-light .cmb2-element .ui-datepicker td .ui-state-default,
|
917 |
-
.admin-color-light .cmb2-element .ui-datepicker .ui-datepicker-prev:before,
|
918 |
-
.admin-color-light .cmb2-element .ui-datepicker .ui-datepicker-next:before {
|
919 |
-
color: #555; }
|
920 |
-
.admin-color-light .cmb2-element.ui-datepicker td .ui-state-hover, .admin-color-light .cmb2-element.ui-datepicker td .ui-state-active, .admin-color-light .cmb2-element .ui-datepicker td .ui-state-hover, .admin-color-light .cmb2-element .ui-datepicker td .ui-state-active {
|
921 |
-
background: #ccc; }
|
922 |
-
.admin-color-light .cmb2-element.ui-datepicker td.ui-datepicker-today, .admin-color-light .cmb2-element .ui-datepicker td.ui-datepicker-today {
|
923 |
-
background: #eee; }
|
924 |
-
|
925 |
-
.admin-color-bbp-evergreen .cmb2-element.ui-datepicker .ui-widget-header,
|
926 |
-
.admin-color-bbp-evergreen .cmb2-element.ui-datepicker .ui-datepicker-header, .admin-color-bbp-evergreen .cmb2-element .ui-datepicker .ui-widget-header,
|
927 |
-
.admin-color-bbp-evergreen .cmb2-element .ui-datepicker .ui-datepicker-header {
|
928 |
-
background: #56b274; }
|
929 |
-
.admin-color-bbp-evergreen .cmb2-element.ui-datepicker thead, .admin-color-bbp-evergreen .cmb2-element .ui-datepicker thead {
|
930 |
-
background: #36533f; }
|
931 |
-
.admin-color-bbp-evergreen .cmb2-element.ui-datepicker td .ui-state-hover, .admin-color-bbp-evergreen .cmb2-element .ui-datepicker td .ui-state-hover {
|
932 |
-
background: #446950;
|
933 |
-
color: #fff; }
|
934 |
-
|
935 |
-
.admin-color-bbp-mint .cmb2-element.ui-datepicker .ui-widget-header,
|
936 |
-
.admin-color-bbp-mint .cmb2-element.ui-datepicker .ui-datepicker-header, .admin-color-bbp-mint .cmb2-element .ui-datepicker .ui-widget-header,
|
937 |
-
.admin-color-bbp-mint .cmb2-element .ui-datepicker .ui-datepicker-header {
|
938 |
-
background: #4ca26a; }
|
939 |
-
.admin-color-bbp-mint .cmb2-element.ui-datepicker thead, .admin-color-bbp-mint .cmb2-element .ui-datepicker thead {
|
940 |
-
background: #4f6d59; }
|
941 |
-
.admin-color-bbp-mint .cmb2-element.ui-datepicker td .ui-state-hover, .admin-color-bbp-mint .cmb2-element .ui-datepicker td .ui-state-hover {
|
942 |
-
background: #5fb37c;
|
943 |
-
color: #fff; }
|
944 |
-
|
945 |
-
/**
|
946 |
-
* CMB2 Frontend
|
947 |
-
*/
|
948 |
-
.closed .inside {
|
949 |
-
display: none; }
|
950 |
-
|
951 |
-
.cmb-repeatable-grouping {
|
952 |
-
position: relative; }
|
953 |
-
.cmb-repeatable-grouping .cmb-group-title {
|
954 |
-
margin-left: -1em;
|
955 |
-
margin-right: -1em;
|
956 |
-
min-height: 1.5em; }
|
957 |
-
.cmb-repeatable-grouping h3 {
|
958 |
-
font-size: 14px;
|
959 |
-
padding: 8px 12px;
|
960 |
-
margin: 0;
|
961 |
-
line-height: 1.4; }
|
962 |
-
|
963 |
-
.cmb-repeatable-group.repeatable .cmb-group-title {
|
964 |
-
padding-left: 2.2em; }
|
965 |
-
.cmb-repeatable-group.non-repeatable .cmb-group-title {
|
966 |
-
padding-left: 12px; }
|
967 |
-
|
968 |
-
.cmb-type-group .cmb-row .cmbhandle {
|
969 |
-
right: 0;
|
970 |
-
position: absolute; }
|
971 |
-
|
972 |
-
.cmb-spinner {
|
973 |
-
background: url(/wp-admin/images/spinner.gif) no-repeat;
|
974 |
-
-webkit-background-size: 20px 20px;
|
975 |
-
background-size: 20px 20px;
|
976 |
-
display: none;
|
977 |
-
float: right;
|
978 |
-
vertical-align: middle;
|
979 |
-
opacity: 0.7;
|
980 |
-
filter: alpha(opacity=70);
|
981 |
-
width: 20px;
|
982 |
-
height: 20px;
|
983 |
-
margin: 4px 10px 0; }
|
1 |
+
/**
|
2 |
+
* CMB2 Styling
|
3 |
+
*/
|
4 |
+
/*--------------------------------------------------------------
|
5 |
+
Main Wrap
|
6 |
+
--------------------------------------------------------------*/
|
7 |
+
.cmb2-wrap {
|
8 |
+
margin: 0; }
|
9 |
+
.cmb2-wrap input,
|
10 |
+
.cmb2-wrap textarea {
|
11 |
+
font-size: 14px;
|
12 |
+
max-width: 100%;
|
13 |
+
padding: 5px; }
|
14 |
+
.cmb2-wrap input[type=text].cmb2-oembed {
|
15 |
+
width: 100%; }
|
16 |
+
.cmb2-wrap textarea {
|
17 |
+
width: 500px; }
|
18 |
+
.cmb2-wrap textarea.cmb2-textarea-code {
|
19 |
+
font-family: "Courier 10 Pitch", Courier, monospace;
|
20 |
+
line-height: 16px; }
|
21 |
+
.cmb2-wrap input.cmb2-text-small, .cmb2-wrap input.cmb2-timepicker {
|
22 |
+
width: 100px; }
|
23 |
+
.cmb2-wrap input.cmb2-text-money {
|
24 |
+
width: 90px; }
|
25 |
+
.cmb2-wrap input.cmb2-text-medium {
|
26 |
+
width: 230px; }
|
27 |
+
.cmb2-wrap input.cmb2-upload-file {
|
28 |
+
width: 65%; }
|
29 |
+
.cmb2-wrap input.ed_button {
|
30 |
+
padding: 2px 4px; }
|
31 |
+
.cmb2-wrap input:not([type="hidden"]) + input,
|
32 |
+
.cmb2-wrap input:not([type="hidden"]) + .button-secondary,
|
33 |
+
.cmb2-wrap input:not([type="hidden"]) + select {
|
34 |
+
margin-left: 20px; }
|
35 |
+
.cmb2-wrap ul {
|
36 |
+
margin: 0; }
|
37 |
+
.cmb2-wrap li {
|
38 |
+
font-size: 14px;
|
39 |
+
line-height: 16px;
|
40 |
+
margin: 1px 0 5px 0; }
|
41 |
+
.cmb2-wrap select {
|
42 |
+
font-size: 14px;
|
43 |
+
margin-top: 3px; }
|
44 |
+
.cmb2-wrap input:focus,
|
45 |
+
.cmb2-wrap textarea:focus {
|
46 |
+
background: #fffff8; }
|
47 |
+
.cmb2-wrap input[type="radio"] {
|
48 |
+
margin: 0 5px 0 0;
|
49 |
+
padding: 0; }
|
50 |
+
.cmb2-wrap input[type="checkbox"] {
|
51 |
+
margin: 0 5px 0 0;
|
52 |
+
padding: 0; }
|
53 |
+
.cmb2-wrap button,
|
54 |
+
.cmb2-wrap .button-secondary {
|
55 |
+
white-space: nowrap; }
|
56 |
+
.cmb2-wrap .mceLayout {
|
57 |
+
border: 1px solid #e9e9e9 !important; }
|
58 |
+
.cmb2-wrap .mceIframeContainer {
|
59 |
+
background: #fff; }
|
60 |
+
.cmb2-wrap .meta_mce {
|
61 |
+
width: 97%; }
|
62 |
+
.cmb2-wrap .meta_mce textarea {
|
63 |
+
width: 100%; }
|
64 |
+
.cmb2-wrap .wp-color-result,
|
65 |
+
.cmb2-wrap .wp-picker-input-wrap {
|
66 |
+
vertical-align: middle; }
|
67 |
+
.cmb2-wrap .wp-color-result,
|
68 |
+
.cmb2-wrap .wp-picker-container {
|
69 |
+
margin: 0 10px 0 0; }
|
70 |
+
.cmb2-wrap .cmb-row {
|
71 |
+
margin: 0; }
|
72 |
+
.cmb2-wrap .cmb-row:after {
|
73 |
+
content: '';
|
74 |
+
clear: both;
|
75 |
+
display: block;
|
76 |
+
width: 100%; }
|
77 |
+
.cmb2-wrap .cmb-row.cmb-repeat-row {
|
78 |
+
padding: 1.8em 0 0; }
|
79 |
+
.cmb2-wrap .cmb-row.cmb-repeat-row:first-of-type {
|
80 |
+
padding: 0; }
|
81 |
+
.cmb2-wrap .cmb-row.cmb-repeat .cmb2-metabox-description {
|
82 |
+
padding-top: 0;
|
83 |
+
padding-bottom: 1.8em; }
|
84 |
+
|
85 |
+
.cmb2-metabox {
|
86 |
+
clear: both;
|
87 |
+
margin: 0; }
|
88 |
+
.cmb2-metabox > .cmb-row:first-of-type > .cmb-td,
|
89 |
+
.cmb2-metabox > .cmb-row:first-of-type > .cmb-th,
|
90 |
+
.cmb2-metabox .cmb-field-list > .cmb-row:first-of-type > .cmb-td,
|
91 |
+
.cmb2-metabox .cmb-field-list > .cmb-row:first-of-type > .cmb-th {
|
92 |
+
border: 0; }
|
93 |
+
.cmb2-metabox > .cmb-row .cmb-repeat-table .cmb-row > .cmb-td {
|
94 |
+
padding-right: 20px;
|
95 |
+
box-sizing: border-box;
|
96 |
+
float: left; }
|
97 |
+
|
98 |
+
.cmb-add-row {
|
99 |
+
margin: 1.8em 0 0; }
|
100 |
+
|
101 |
+
.cmb-nested .cmb-td,
|
102 |
+
.cmb-repeatable-group .cmb-th,
|
103 |
+
.cmb-repeatable-group:first-of-type {
|
104 |
+
border: 0; }
|
105 |
+
|
106 |
+
.cmb-row:last-of-type,
|
107 |
+
.cmb2-wrap .cmb-row:last-of-type,
|
108 |
+
.cmb-repeatable-group:last-of-type {
|
109 |
+
border-bottom: 0; }
|
110 |
+
|
111 |
+
.cmb-repeatable-grouping {
|
112 |
+
border: 1px solid #e9e9e9;
|
113 |
+
padding: 0 1em;
|
114 |
+
max-width: 1000px; }
|
115 |
+
.cmb-repeatable-grouping.cmb-row {
|
116 |
+
margin: 0 0 0.8em; }
|
117 |
+
|
118 |
+
.cmb-th {
|
119 |
+
color: #222222;
|
120 |
+
float: left;
|
121 |
+
font-weight: 600;
|
122 |
+
line-height: 1.3;
|
123 |
+
padding: 20px 10px 20px 0;
|
124 |
+
vertical-align: top;
|
125 |
+
width: 200px; }
|
126 |
+
@media (max-width: 450px) {
|
127 |
+
.cmb-th {
|
128 |
+
font-size: 1.2em;
|
129 |
+
display: block;
|
130 |
+
float: none;
|
131 |
+
padding-bottom: 1em;
|
132 |
+
text-align: left;
|
133 |
+
width: 100%; }
|
134 |
+
.cmb-th label {
|
135 |
+
display: block;
|
136 |
+
margin-top: 0em;
|
137 |
+
padding-bottom: 5px; }
|
138 |
+
.cmb-th label:after {
|
139 |
+
border-bottom: 1px solid #e9e9e9;
|
140 |
+
content: '';
|
141 |
+
clear: both;
|
142 |
+
display: block;
|
143 |
+
padding-top: .4em; } }
|
144 |
+
|
145 |
+
.cmb-td {
|
146 |
+
line-height: 1.3;
|
147 |
+
max-width: 100%;
|
148 |
+
padding: 15px 10px;
|
149 |
+
vertical-align: middle; }
|
150 |
+
|
151 |
+
.cmb-type-title .cmb-td {
|
152 |
+
padding: 0; }
|
153 |
+
|
154 |
+
.cmb-th label {
|
155 |
+
display: block;
|
156 |
+
padding: 5px 0; }
|
157 |
+
|
158 |
+
.cmb-th + .cmb-td {
|
159 |
+
float: left; }
|
160 |
+
|
161 |
+
.cmb-td .cmb-td {
|
162 |
+
padding-bottom: 1em; }
|
163 |
+
|
164 |
+
.cmb-remove-row {
|
165 |
+
text-align: right; }
|
166 |
+
|
167 |
+
.empty-row.hidden {
|
168 |
+
display: none; }
|
169 |
+
|
170 |
+
.cmb-repeatable-group .cmb-th {
|
171 |
+
padding: 5px; }
|
172 |
+
.cmb-repeatable-group .cmb-group-title {
|
173 |
+
background-color: #e9e9e9;
|
174 |
+
padding: 8px 12px 8px 2.2em;
|
175 |
+
margin: 0 -1em;
|
176 |
+
min-height: 1.5em;
|
177 |
+
font-size: 14px;
|
178 |
+
line-height: 1.4; }
|
179 |
+
.cmb-repeatable-group .cmb-group-title h4 {
|
180 |
+
border: 0;
|
181 |
+
margin: 0;
|
182 |
+
font-size: 1.2em;
|
183 |
+
font-weight: 500;
|
184 |
+
padding: 0.5em 0.75em; }
|
185 |
+
.cmb-repeatable-group .cmb-group-title .cmb-th {
|
186 |
+
display: block;
|
187 |
+
width: 100%; }
|
188 |
+
.cmb-repeatable-group .cmb-group-description .cmb-th {
|
189 |
+
font-size: 1.2em;
|
190 |
+
display: block;
|
191 |
+
float: none;
|
192 |
+
padding-bottom: 1em;
|
193 |
+
text-align: left;
|
194 |
+
width: 100%; }
|
195 |
+
.cmb-repeatable-group .cmb-group-description .cmb-th label {
|
196 |
+
display: block;
|
197 |
+
margin-top: 0em;
|
198 |
+
padding-bottom: 5px; }
|
199 |
+
.cmb-repeatable-group .cmb-group-description .cmb-th label:after {
|
200 |
+
border-bottom: 1px solid #e9e9e9;
|
201 |
+
content: '';
|
202 |
+
clear: both;
|
203 |
+
display: block;
|
204 |
+
padding-top: .4em; }
|
205 |
+
.cmb-repeatable-group .cmb-shift-rows {
|
206 |
+
font-size: 1em;
|
207 |
+
margin-right: 1em;
|
208 |
+
text-decoration: none; }
|
209 |
+
.cmb-repeatable-group .cmb-shift-rows .dashicons {
|
210 |
+
font-size: 1.5em;
|
211 |
+
height: 1.5em;
|
212 |
+
line-height: 1.2em;
|
213 |
+
width: 1em; }
|
214 |
+
.cmb-repeatable-group .cmb-shift-rows .dashicons.dashicons-arrow-down-alt2 {
|
215 |
+
line-height: 1.3em; }
|
216 |
+
.cmb-repeatable-group .cmb2-upload-button {
|
217 |
+
float: right; }
|
218 |
+
|
219 |
+
p.cmb2-metabox-description {
|
220 |
+
color: #aaaaaa;
|
221 |
+
font-style: italic;
|
222 |
+
margin: 0;
|
223 |
+
padding-top: .5em; }
|
224 |
+
|
225 |
+
span.cmb2-metabox-description {
|
226 |
+
color: #aaaaaa;
|
227 |
+
font-style: italic; }
|
228 |
+
|
229 |
+
.cmb2-metabox-title {
|
230 |
+
margin: 0 0 5px 0;
|
231 |
+
padding: 5px 0 0 0;
|
232 |
+
font-size: 14px; }
|
233 |
+
|
234 |
+
.cmb-inline ul {
|
235 |
+
padding: 4px 0 0 0; }
|
236 |
+
|
237 |
+
.cmb-inline li {
|
238 |
+
display: inline-block;
|
239 |
+
padding-right: 18px; }
|
240 |
+
|
241 |
+
.cmb-type-textarea-code pre {
|
242 |
+
margin: 0; }
|
243 |
+
|
244 |
+
.cmb2-media-status .img-status {
|
245 |
+
clear: none;
|
246 |
+
display: inline-block;
|
247 |
+
vertical-align: middle;
|
248 |
+
margin-right: 10px;
|
249 |
+
width: auto; }
|
250 |
+
.cmb2-media-status .img-status img {
|
251 |
+
max-width: 350px;
|
252 |
+
height: auto; }
|
253 |
+
.cmb2-media-status .img-status img,
|
254 |
+
.cmb2-media-status .embed-status {
|
255 |
+
background: #ffffff;
|
256 |
+
border: 1px solid #e9e9e9;
|
257 |
+
border-radius: 2px;
|
258 |
+
-moz-border-radius: 2px;
|
259 |
+
margin: 15px 0 0 0;
|
260 |
+
padding: 5px; }
|
261 |
+
.cmb2-media-status .embed-status {
|
262 |
+
float: left;
|
263 |
+
max-width: 800px; }
|
264 |
+
.cmb2-media-status .img-status, .cmb2-media-status .embed-status {
|
265 |
+
position: relative; }
|
266 |
+
.cmb2-media-status .img-status .cmb2-remove-file-button, .cmb2-media-status .embed-status .cmb2-remove-file-button {
|
267 |
+
background: url(../images/ico-delete.png);
|
268 |
+
height: 16px;
|
269 |
+
left: -5px;
|
270 |
+
position: absolute;
|
271 |
+
text-indent: -9999px;
|
272 |
+
top: -5px;
|
273 |
+
width: 16px; }
|
274 |
+
.cmb2-media-status .img-status .cmb2-remove-file-button {
|
275 |
+
top: 10px; }
|
276 |
+
.cmb2-media-status .img-status img, .cmb2-media-status .file-status > span {
|
277 |
+
cursor: pointer; }
|
278 |
+
|
279 |
+
.cmb-type-file-list .cmb2-media-status .img-status {
|
280 |
+
clear: none;
|
281 |
+
vertical-align: middle;
|
282 |
+
width: auto;
|
283 |
+
margin-right: 10px;
|
284 |
+
margin-bottom: 10px;
|
285 |
+
margin-top: 0; }
|
286 |
+
|
287 |
+
.cmb-attach-list li {
|
288 |
+
clear: both;
|
289 |
+
display: inline-block;
|
290 |
+
width: 100%;
|
291 |
+
margin-top: 5px;
|
292 |
+
margin-bottom: 10px; }
|
293 |
+
.cmb-attach-list li img {
|
294 |
+
cursor: move;
|
295 |
+
float: left;
|
296 |
+
margin-right: 10px; }
|
297 |
+
|
298 |
+
.cmb2-remove-wrapper {
|
299 |
+
margin: 0; }
|
300 |
+
|
301 |
+
.child-cmb2 .cmb-th {
|
302 |
+
text-align: left; }
|
303 |
+
|
304 |
+
@media (max-width: 450px) {
|
305 |
+
.cmb-th,
|
306 |
+
.cmb-td,
|
307 |
+
.cmb-th + .cmb-td {
|
308 |
+
display: block;
|
309 |
+
float: none;
|
310 |
+
width: 100%; } }
|
311 |
+
/*--------------------------------------------------------------
|
312 |
+
Post Metaboxes
|
313 |
+
--------------------------------------------------------------*/
|
314 |
+
#poststuff .cmb-group-title {
|
315 |
+
margin-left: -1em;
|
316 |
+
margin-right: -1em;
|
317 |
+
min-height: 1.5em; }
|
318 |
+
|
319 |
+
#poststuff .repeatable .cmb-group-title {
|
320 |
+
padding-left: 2.2em; }
|
321 |
+
|
322 |
+
.cmb2-postbox .cmb2-wrap, .cmb-type-group .cmb2-wrap {
|
323 |
+
margin: 0; }
|
324 |
+
.cmb2-postbox .cmb2-wrap > .cmb-field-list > .cmb-row, .cmb-type-group .cmb2-wrap > .cmb-field-list > .cmb-row {
|
325 |
+
padding: 1.8em 0; }
|
326 |
+
.cmb2-postbox .cmb2-wrap input[type=text].cmb2-oembed, .cmb-type-group .cmb2-wrap input[type=text].cmb2-oembed {
|
327 |
+
width: 100%; }
|
328 |
+
.cmb2-postbox .cmb-row, .cmb-type-group .cmb-row {
|
329 |
+
padding: 0 0 1.8em;
|
330 |
+
margin: 0 0 0.8em; }
|
331 |
+
.cmb2-postbox .cmb-row .cmbhandle, .cmb-type-group .cmb-row .cmbhandle {
|
332 |
+
right: -1em;
|
333 |
+
position: relative; }
|
334 |
+
.cmb2-postbox .cmb-repeatable-grouping, .cmb-type-group .cmb-repeatable-grouping {
|
335 |
+
padding: 0 1em;
|
336 |
+
max-width: 100%;
|
337 |
+
min-width: 1px !important; }
|
338 |
+
.cmb2-postbox .cmb-repeatable-group > .cmb-row, .cmb-type-group .cmb-repeatable-group > .cmb-row {
|
339 |
+
padding-bottom: 0; }
|
340 |
+
.cmb2-postbox .cmb-th, .cmb-type-group .cmb-th {
|
341 |
+
width: 18%;
|
342 |
+
padding: 0 2% 0 0; }
|
343 |
+
.cmb2-postbox .cmb-td, .cmb-type-group .cmb-td {
|
344 |
+
margin-bottom: 0;
|
345 |
+
padding: 0;
|
346 |
+
line-height: 1.3; }
|
347 |
+
.cmb2-postbox .cmb-repeat-row .cmb-td, .cmb-type-group .cmb-repeat-row .cmb-td {
|
348 |
+
padding-bottom: 1.8em; }
|
349 |
+
.cmb2-postbox .cmb-th + .cmb-td, .cmb-type-group .cmb-th + .cmb-td {
|
350 |
+
width: 80%;
|
351 |
+
float: right; }
|
352 |
+
.cmb2-postbox .cmb-row:not(:last-of-type),
|
353 |
+
.cmb2-postbox .cmb-repeatable-group:not(:last-of-type), .cmb-type-group .cmb-row:not(:last-of-type),
|
354 |
+
.cmb-type-group .cmb-repeatable-group:not(:last-of-type) {
|
355 |
+
border-bottom: 1px solid #e9e9e9; }
|
356 |
+
@media (max-width: 450px) {
|
357 |
+
.cmb2-postbox .cmb-row:not(:last-of-type),
|
358 |
+
.cmb2-postbox .cmb-repeatable-group:not(:last-of-type), .cmb-type-group .cmb-row:not(:last-of-type),
|
359 |
+
.cmb-type-group .cmb-repeatable-group:not(:last-of-type) {
|
360 |
+
border-bottom: 0; } }
|
361 |
+
.cmb2-postbox .cmb-repeat-group-field,
|
362 |
+
.cmb2-postbox .cmb-remove-field-row, .cmb-type-group .cmb-repeat-group-field,
|
363 |
+
.cmb-type-group .cmb-remove-field-row {
|
364 |
+
padding-top: 1.8em; }
|
365 |
+
.cmb2-postbox .cmb2-metabox > .cmb-row.table-layout .cmb-repeat-table .cmb-tbody, .cmb2-postbox .cmb2-metabox > .cmb-row .cmb-row.table-layout .cmb-repeat-table .cmb-tbody, .cmb-type-group .cmb2-metabox > .cmb-row.table-layout .cmb-repeat-table .cmb-tbody, .cmb-type-group .cmb2-metabox > .cmb-row .cmb-row.table-layout .cmb-repeat-table .cmb-tbody {
|
366 |
+
display: table;
|
367 |
+
width: 100%; }
|
368 |
+
.cmb2-postbox .cmb2-metabox > .cmb-row.table-layout .cmb-repeat-table .cmb-tbody input.regular-text, .cmb2-postbox .cmb2-metabox > .cmb-row .cmb-row.table-layout .cmb-repeat-table .cmb-tbody input.regular-text, .cmb-type-group .cmb2-metabox > .cmb-row.table-layout .cmb-repeat-table .cmb-tbody input.regular-text, .cmb-type-group .cmb2-metabox > .cmb-row .cmb-row.table-layout .cmb-repeat-table .cmb-tbody input.regular-text {
|
369 |
+
width: 100%; }
|
370 |
+
.cmb2-postbox .cmb2-metabox > .cmb-row.table-layout .cmb-repeat-table .cmb-tbody .cmb-row:not(.hidden):not(.empty-row), .cmb2-postbox .cmb2-metabox > .cmb-row .cmb-row.table-layout .cmb-repeat-table .cmb-tbody .cmb-row:not(.hidden):not(.empty-row), .cmb-type-group .cmb2-metabox > .cmb-row.table-layout .cmb-repeat-table .cmb-tbody .cmb-row:not(.hidden):not(.empty-row), .cmb-type-group .cmb2-metabox > .cmb-row .cmb-row.table-layout .cmb-repeat-table .cmb-tbody .cmb-row:not(.hidden):not(.empty-row) {
|
371 |
+
display: table-row; }
|
372 |
+
.cmb2-postbox .cmb2-metabox > .cmb-row.table-layout .cmb-repeat-table .cmb-tbody .cmb-td, .cmb2-postbox .cmb2-metabox > .cmb-row .cmb-row.table-layout .cmb-repeat-table .cmb-tbody .cmb-td, .cmb-type-group .cmb2-metabox > .cmb-row.table-layout .cmb-repeat-table .cmb-tbody .cmb-td, .cmb-type-group .cmb2-metabox > .cmb-row .cmb-row.table-layout .cmb-repeat-table .cmb-tbody .cmb-td {
|
373 |
+
display: table-cell;
|
374 |
+
float: none;
|
375 |
+
width: 100%; }
|
376 |
+
.cmb2-postbox .cmb2-metabox > .cmb-row.table-layout .cmb-repeat-table .cmb-tbody .cmb-row:not(:first-of-type) .cmb-td, .cmb2-postbox .cmb2-metabox > .cmb-row .cmb-row.table-layout .cmb-repeat-table .cmb-tbody .cmb-row:not(:first-of-type) .cmb-td, .cmb-type-group .cmb2-metabox > .cmb-row.table-layout .cmb-repeat-table .cmb-tbody .cmb-row:not(:first-of-type) .cmb-td, .cmb-type-group .cmb2-metabox > .cmb-row .cmb-row.table-layout .cmb-repeat-table .cmb-tbody .cmb-row:not(:first-of-type) .cmb-td {
|
377 |
+
padding-top: 1.8em; }
|
378 |
+
.cmb2-postbox .cmb2-metabox > .cmb-row.table-layout .cmb-repeat-table .cmb-tbody .cmb-td.cmb-remove-row, .cmb2-postbox .cmb2-metabox > .cmb-row .cmb-row.table-layout .cmb-repeat-table .cmb-tbody .cmb-td.cmb-remove-row, .cmb-type-group .cmb2-metabox > .cmb-row.table-layout .cmb-repeat-table .cmb-tbody .cmb-td.cmb-remove-row, .cmb-type-group .cmb2-metabox > .cmb-row .cmb-row.table-layout .cmb-repeat-table .cmb-tbody .cmb-td.cmb-remove-row {
|
379 |
+
padding-right: 0; }
|
380 |
+
|
381 |
+
/*--------------------------------------------------------------
|
382 |
+
Context Metaboxes
|
383 |
+
--------------------------------------------------------------*/
|
384 |
+
/* Metabox collapse arrow indicators */
|
385 |
+
.js .cmb2-postbox.context-box .toggle-indicator:before {
|
386 |
+
content: "\f142";
|
387 |
+
display: inline-block;
|
388 |
+
font: normal 20px/1 dashicons;
|
389 |
+
speak: none;
|
390 |
+
-webkit-font-smoothing: antialiased;
|
391 |
+
-moz-osx-font-smoothing: grayscale;
|
392 |
+
text-decoration: none !important; }
|
393 |
+
.js .cmb2-postbox.context-box.closed .toggle-indicator:before {
|
394 |
+
content: "\f140"; }
|
395 |
+
|
396 |
+
.cmb2-postbox.context-box {
|
397 |
+
margin-bottom: 10px; }
|
398 |
+
.cmb2-postbox.context-box.context-before_permalink-box {
|
399 |
+
margin-top: 10px; }
|
400 |
+
.cmb2-postbox.context-box.context-after_title-box {
|
401 |
+
margin-top: 10px; }
|
402 |
+
.cmb2-postbox.context-box.context-after_editor-box {
|
403 |
+
margin-top: 20px;
|
404 |
+
margin-bottom: 0; }
|
405 |
+
.cmb2-postbox.context-box.context-form_top-box {
|
406 |
+
margin-top: 10px; }
|
407 |
+
.cmb2-postbox.context-box.context-form_top-box .hndle {
|
408 |
+
font-size: 14px;
|
409 |
+
padding: 8px 12px;
|
410 |
+
margin: 0;
|
411 |
+
line-height: 1.4; }
|
412 |
+
.cmb2-postbox.context-box .hndle {
|
413 |
+
cursor: auto; }
|
414 |
+
|
415 |
+
.cmb2-context-wrap {
|
416 |
+
margin-top: 10px; }
|
417 |
+
.cmb2-context-wrap.cmb2-context-wrap-form_top {
|
418 |
+
margin-right: 300px;
|
419 |
+
width: auto; }
|
420 |
+
.cmb2-context-wrap.cmb2-context-wrap-no-title .cmb2-metabox {
|
421 |
+
padding: 10px; }
|
422 |
+
.cmb2-context-wrap .cmb-th {
|
423 |
+
padding: 0 2% 0 0;
|
424 |
+
width: 18%; }
|
425 |
+
.cmb2-context-wrap .cmb-td {
|
426 |
+
width: 80%;
|
427 |
+
padding: 0; }
|
428 |
+
.cmb2-context-wrap .cmb-row {
|
429 |
+
margin-bottom: 10px; }
|
430 |
+
.cmb2-context-wrap .cmb-row:last-of-type {
|
431 |
+
margin-bottom: 0; }
|
432 |
+
|
433 |
+
/* one column on the post write/edit screen */
|
434 |
+
@media only screen and (max-width: 850px) {
|
435 |
+
.cmb2-context-wrap.cmb2-context-wrap-form_top {
|
436 |
+
margin-right: 0; } }
|
437 |
+
/*--------------------------------------------------------------
|
438 |
+
Misc.
|
439 |
+
--------------------------------------------------------------*/
|
440 |
+
#poststuff .cmb-repeatable-group h2 {
|
441 |
+
margin: 0; }
|
442 |
+
|
443 |
+
.edit-tags-php .cmb2-metabox-title,
|
444 |
+
.profile-php .cmb2-metabox-title,
|
445 |
+
.user-edit-php .cmb2-metabox-title {
|
446 |
+
font-size: 1.4em; }
|
447 |
+
|
448 |
+
.cmb2-options-page .cmb2-metabox-title {
|
449 |
+
font-size: 1.3em;
|
450 |
+
margin: 1em 0; }
|
451 |
+
.cmb2-options-page .cmb2-metabox-title + p.cmb2-metabox-description {
|
452 |
+
margin-top: -1.6em;
|
453 |
+
margin-bottom: .8em; }
|
454 |
+
|
455 |
+
.cmb2-postbox .cmb-spinner, .cmb2-no-box-wrap .cmb-spinner {
|
456 |
+
float: left;
|
457 |
+
display: none; }
|
458 |
+
|
459 |
+
.cmb-spinner {
|
460 |
+
display: none; }
|
461 |
+
.cmb-spinner.is-active {
|
462 |
+
display: block; }
|
463 |
+
|
464 |
+
/*--------------------------------------------------------------
|
465 |
+
Sidebar Placement Adjustments
|
466 |
+
--------------------------------------------------------------*/
|
467 |
+
.inner-sidebar .cmb2-wrap > .cmb-field-list > .cmb-row,
|
468 |
+
#side-sortables .cmb2-wrap > .cmb-field-list > .cmb-row {
|
469 |
+
padding: 1.4em 0; }
|
470 |
+
.inner-sidebar .cmb2-wrap input[type=text]:not(.wp-color-picker),
|
471 |
+
#side-sortables .cmb2-wrap input[type=text]:not(.wp-color-picker) {
|
472 |
+
width: 100%; }
|
473 |
+
.inner-sidebar .cmb2-wrap input + input:not(.wp-picker-clear), .inner-sidebar .cmb2-wrap input + select,
|
474 |
+
#side-sortables .cmb2-wrap input + input:not(.wp-picker-clear),
|
475 |
+
#side-sortables .cmb2-wrap input + select {
|
476 |
+
margin-left: 0;
|
477 |
+
margin-top: 1em;
|
478 |
+
display: block; }
|
479 |
+
.inner-sidebar .cmb2-wrap input.cmb2-text-money,
|
480 |
+
#side-sortables .cmb2-wrap input.cmb2-text-money {
|
481 |
+
max-width: 70%; }
|
482 |
+
.inner-sidebar .cmb2-wrap input.cmb2-text-money + .cmb2-metabox-description,
|
483 |
+
#side-sortables .cmb2-wrap input.cmb2-text-money + .cmb2-metabox-description {
|
484 |
+
display: block; }
|
485 |
+
.inner-sidebar .cmb2-wrap label,
|
486 |
+
#side-sortables .cmb2-wrap label {
|
487 |
+
display: block;
|
488 |
+
font-weight: 700;
|
489 |
+
padding: 0 0 5px; }
|
490 |
+
.inner-sidebar textarea,
|
491 |
+
#side-sortables textarea {
|
492 |
+
max-width: 99%; }
|
493 |
+
.inner-sidebar .cmb-repeatable-group,
|
494 |
+
#side-sortables .cmb-repeatable-group {
|
495 |
+
border-bottom: 1px solid #e9e9e9; }
|
496 |
+
.inner-sidebar .cmb-type-group > .cmb-td > .cmb-repeatable-group,
|
497 |
+
#side-sortables .cmb-type-group > .cmb-td > .cmb-repeatable-group {
|
498 |
+
border-bottom: 0;
|
499 |
+
margin-bottom: -1.4em; }
|
500 |
+
.inner-sidebar .cmb-th,
|
501 |
+
.inner-sidebar .cmb-td,
|
502 |
+
.inner-sidebar .cmb-th + .cmb-td,
|
503 |
+
#side-sortables .cmb-th,
|
504 |
+
#side-sortables .cmb-td,
|
505 |
+
#side-sortables .cmb-th + .cmb-td {
|
506 |
+
width: 100%;
|
507 |
+
display: block;
|
508 |
+
float: none; }
|
509 |
+
.inner-sidebar .closed .inside,
|
510 |
+
#side-sortables .closed .inside {
|
511 |
+
display: none; }
|
512 |
+
.inner-sidebar .cmb-td .cmb-td,
|
513 |
+
#side-sortables .cmb-td .cmb-td {
|
514 |
+
padding-bottom: 1em; }
|
515 |
+
.inner-sidebar .cmb-th,
|
516 |
+
#side-sortables .cmb-th {
|
517 |
+
display: block;
|
518 |
+
float: none;
|
519 |
+
padding-bottom: 1em;
|
520 |
+
text-align: left;
|
521 |
+
width: 100%;
|
522 |
+
padding-left: 0;
|
523 |
+
padding-right: 0; }
|
524 |
+
.inner-sidebar .cmb-th label,
|
525 |
+
#side-sortables .cmb-th label {
|
526 |
+
display: block;
|
527 |
+
margin-top: 0em;
|
528 |
+
padding-bottom: 5px; }
|
529 |
+
.inner-sidebar .cmb-th label:after,
|
530 |
+
#side-sortables .cmb-th label:after {
|
531 |
+
border-bottom: 1px solid #e9e9e9;
|
532 |
+
content: '';
|
533 |
+
clear: both;
|
534 |
+
display: block;
|
535 |
+
padding-top: .4em; }
|
536 |
+
.inner-sidebar .cmb-th label,
|
537 |
+
#side-sortables .cmb-th label {
|
538 |
+
font-size: 14px;
|
539 |
+
line-height: 1.4em; }
|
540 |
+
.inner-sidebar .cmb-group-description .cmb-th,
|
541 |
+
#side-sortables .cmb-group-description .cmb-th {
|
542 |
+
padding-top: 0; }
|
543 |
+
.inner-sidebar .cmb-group-description .cmb2-metabox-description,
|
544 |
+
#side-sortables .cmb-group-description .cmb2-metabox-description {
|
545 |
+
padding: 0; }
|
546 |
+
.inner-sidebar .cmb-group-title .cmb-th,
|
547 |
+
#side-sortables .cmb-group-title .cmb-th {
|
548 |
+
padding: 0; }
|
549 |
+
.inner-sidebar .cmb-repeatable-grouping + .cmb-repeatable-grouping,
|
550 |
+
#side-sortables .cmb-repeatable-grouping + .cmb-repeatable-grouping {
|
551 |
+
margin-top: 1em; }
|
552 |
+
.inner-sidebar .cmb2-media-status .img-status img,
|
553 |
+
.inner-sidebar .cmb2-media-status .embed-status img,
|
554 |
+
#side-sortables .cmb2-media-status .img-status img,
|
555 |
+
#side-sortables .cmb2-media-status .embed-status img {
|
556 |
+
max-width: 90%;
|
557 |
+
height: auto; }
|
558 |
+
.inner-sidebar .cmb2-list label,
|
559 |
+
#side-sortables .cmb2-list label {
|
560 |
+
display: inline;
|
561 |
+
font-weight: normal; }
|
562 |
+
.inner-sidebar .cmb2-metabox-description,
|
563 |
+
#side-sortables .cmb2-metabox-description {
|
564 |
+
display: block;
|
565 |
+
padding: 7px 0 0; }
|
566 |
+
.inner-sidebar .cmb-type-checkbox .cmb-td label,
|
567 |
+
.inner-sidebar .cmb-type-checkbox .cmb2-metabox-description,
|
568 |
+
#side-sortables .cmb-type-checkbox .cmb-td label,
|
569 |
+
#side-sortables .cmb-type-checkbox .cmb2-metabox-description {
|
570 |
+
font-weight: normal;
|
571 |
+
display: inline; }
|
572 |
+
.inner-sidebar .cmb-row .cmb2-metabox-description,
|
573 |
+
#side-sortables .cmb-row .cmb2-metabox-description {
|
574 |
+
padding-bottom: 1.8em; }
|
575 |
+
.inner-sidebar .cmb2-metabox-title,
|
576 |
+
#side-sortables .cmb2-metabox-title {
|
577 |
+
font-size: 1.2em;
|
578 |
+
font-style: italic; }
|
579 |
+
.inner-sidebar .cmb-remove-row,
|
580 |
+
#side-sortables .cmb-remove-row {
|
581 |
+
clear: both;
|
582 |
+
padding-top: 12px;
|
583 |
+
padding-bottom: 0; }
|
584 |
+
.inner-sidebar .cmb-type-colorpicker .cmb-repeat-row .cmb-td,
|
585 |
+
#side-sortables .cmb-type-colorpicker .cmb-repeat-row .cmb-td {
|
586 |
+
width: auto;
|
587 |
+
clear: none;
|
588 |
+
float: left;
|
589 |
+
padding-top: 0; }
|
590 |
+
.inner-sidebar .cmb-type-colorpicker .cmb-repeat-row .cmb-td.cmb-remove-row,
|
591 |
+
#side-sortables .cmb-type-colorpicker .cmb-repeat-row .cmb-td.cmb-remove-row {
|
592 |
+
float: right;
|
593 |
+
margin: 0; }
|
594 |
+
.inner-sidebar .cmb2-upload-button,
|
595 |
+
#side-sortables .cmb2-upload-button {
|
596 |
+
clear: both;
|
597 |
+
margin-top: 12px; }
|
598 |
+
|
599 |
+
.cmb2-metabox .cmb-type-group {
|
600 |
+
max-width: 1000px; }
|
601 |
+
.cmb2-metabox .cmbhandle {
|
602 |
+
color: #aaa;
|
603 |
+
float: right;
|
604 |
+
width: 27px;
|
605 |
+
height: 30px;
|
606 |
+
cursor: pointer;
|
607 |
+
right: -1em;
|
608 |
+
position: relative; }
|
609 |
+
.cmb2-metabox .cmbhandle:before {
|
610 |
+
content: '\f142';
|
611 |
+
right: 12px;
|
612 |
+
font: normal 20px/1 'dashicons';
|
613 |
+
speak: none;
|
614 |
+
display: inline-block;
|
615 |
+
padding: 8px 10px;
|
616 |
+
top: 0;
|
617 |
+
position: relative;
|
618 |
+
-webkit-font-smoothing: antialiased;
|
619 |
+
-moz-osx-font-smoothing: grayscale;
|
620 |
+
text-decoration: none !important; }
|
621 |
+
.cmb2-metabox .postbox.closed .cmbhandle:before {
|
622 |
+
content: '\f140'; }
|
623 |
+
.cmb2-metabox button.dashicons-before.dashicons-no-alt.cmb-remove-group-row {
|
624 |
+
-webkit-appearance: none !important;
|
625 |
+
background: none !important;
|
626 |
+
border: none !important;
|
627 |
+
position: absolute;
|
628 |
+
left: 0;
|
629 |
+
top: .5em;
|
630 |
+
line-height: 1em;
|
631 |
+
padding: 2px 6px 3px;
|
632 |
+
opacity: .5; }
|
633 |
+
.cmb2-metabox button.dashicons-before.dashicons-no-alt.cmb-remove-group-row:not([disabled]) {
|
634 |
+
cursor: pointer;
|
635 |
+
color: #a00;
|
636 |
+
opacity: 1; }
|
637 |
+
.cmb2-metabox button.dashicons-before.dashicons-no-alt.cmb-remove-group-row:not([disabled]):hover {
|
638 |
+
color: #f00; }
|
639 |
+
|
640 |
+
/*
|
641 |
+
* jQuery UI CSS Framework 1.8.16
|
642 |
+
*
|
643 |
+
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
644 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
645 |
+
* http://jquery.org/license
|
646 |
+
*
|
647 |
+
* http://docs.jquery.com/UI/Theming/API
|
648 |
+
*
|
649 |
+
* WordPress Styles adopted from "jQuery UI Datepicker CSS for WordPress"
|
650 |
+
* https://github.com/stuttter/wp-datepicker-styling
|
651 |
+
*
|
652 |
+
*/
|
653 |
+
* html .cmb2-element.ui-helper-clearfix {
|
654 |
+
height: 1%; }
|
655 |
+
|
656 |
+
.cmb2-element.ui-datepicker, .cmb2-element .ui-datepicker {
|
657 |
+
padding: 0;
|
658 |
+
margin: 0;
|
659 |
+
-webkit-border-radius: 0;
|
660 |
+
-moz-border-radius: 0;
|
661 |
+
border-radius: 0;
|
662 |
+
background-color: #fff;
|
663 |
+
border: 1px solid #dfdfdf;
|
664 |
+
border-top: none;
|
665 |
+
-webkit-box-shadow: 0 3px 6px rgba(0, 0, 0, 0.075);
|
666 |
+
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.075);
|
667 |
+
min-width: 17em;
|
668 |
+
width: auto;
|
669 |
+
/* Default Color Scheme */ }
|
670 |
+
.cmb2-element.ui-datepicker *, .cmb2-element .ui-datepicker * {
|
671 |
+
padding: 0;
|
672 |
+
font-family: "Open Sans", sans-serif;
|
673 |
+
-webkit-border-radius: 0;
|
674 |
+
-moz-border-radius: 0;
|
675 |
+
border-radius: 0; }
|
676 |
+
.cmb2-element.ui-datepicker table, .cmb2-element .ui-datepicker table {
|
677 |
+
font-size: 13px;
|
678 |
+
margin: 0;
|
679 |
+
border: none;
|
680 |
+
border-collapse: collapse; }
|
681 |
+
.cmb2-element.ui-datepicker .ui-widget-header,
|
682 |
+
.cmb2-element.ui-datepicker .ui-datepicker-header, .cmb2-element .ui-datepicker .ui-widget-header,
|
683 |
+
.cmb2-element .ui-datepicker .ui-datepicker-header {
|
684 |
+
background-image: none;
|
685 |
+
border: none;
|
686 |
+
color: #fff;
|
687 |
+
font-weight: normal; }
|
688 |
+
.cmb2-element.ui-datepicker .ui-datepicker-header .ui-state-hover, .cmb2-element .ui-datepicker .ui-datepicker-header .ui-state-hover {
|
689 |
+
background: transparent;
|
690 |
+
border-color: transparent;
|
691 |
+
cursor: pointer; }
|
692 |
+
.cmb2-element.ui-datepicker .ui-datepicker-title, .cmb2-element .ui-datepicker .ui-datepicker-title {
|
693 |
+
margin: 0;
|
694 |
+
padding: 10px 0;
|
695 |
+
color: #fff;
|
696 |
+
font-size: 14px;
|
697 |
+
line-height: 14px;
|
698 |
+
text-align: center; }
|
699 |
+
.cmb2-element.ui-datepicker .ui-datepicker-title select, .cmb2-element .ui-datepicker .ui-datepicker-title select {
|
700 |
+
margin-top: -8px;
|
701 |
+
margin-bottom: -8px; }
|
702 |
+
.cmb2-element.ui-datepicker .ui-datepicker-prev,
|
703 |
+
.cmb2-element.ui-datepicker .ui-datepicker-next, .cmb2-element .ui-datepicker .ui-datepicker-prev,
|
704 |
+
.cmb2-element .ui-datepicker .ui-datepicker-next {
|
705 |
+
position: relative;
|
706 |
+
top: 0;
|
707 |
+
height: 34px;
|
708 |
+
width: 34px; }
|
709 |
+
.cmb2-element.ui-datepicker .ui-state-hover.ui-datepicker-prev,
|
710 |
+
.cmb2-element.ui-datepicker .ui-state-hover.ui-datepicker-next, .cmb2-element .ui-datepicker .ui-state-hover.ui-datepicker-prev,
|
711 |
+
.cmb2-element .ui-datepicker .ui-state-hover.ui-datepicker-next {
|
712 |
+
border: none; }
|
713 |
+
.cmb2-element.ui-datepicker .ui-datepicker-prev,
|
714 |
+
.cmb2-element.ui-datepicker .ui-datepicker-prev-hover, .cmb2-element .ui-datepicker .ui-datepicker-prev,
|
715 |
+
.cmb2-element .ui-datepicker .ui-datepicker-prev-hover {
|
716 |
+
left: 0; }
|
717 |
+
.cmb2-element.ui-datepicker .ui-datepicker-next,
|
718 |
+
.cmb2-element.ui-datepicker .ui-datepicker-next-hover, .cmb2-element .ui-datepicker .ui-datepicker-next,
|
719 |
+
.cmb2-element .ui-datepicker .ui-datepicker-next-hover {
|
720 |
+
right: 0; }
|
721 |
+
.cmb2-element.ui-datepicker .ui-datepicker-next span,
|
722 |
+
.cmb2-element.ui-datepicker .ui-datepicker-prev span, .cmb2-element .ui-datepicker .ui-datepicker-next span,
|
723 |
+
.cmb2-element .ui-datepicker .ui-datepicker-prev span {
|
724 |
+
display: none; }
|
725 |
+
.cmb2-element.ui-datepicker .ui-datepicker-prev, .cmb2-element .ui-datepicker .ui-datepicker-prev {
|
726 |
+
float: left; }
|
727 |
+
.cmb2-element.ui-datepicker .ui-datepicker-next, .cmb2-element .ui-datepicker .ui-datepicker-next {
|
728 |
+
float: right; }
|
729 |
+
.cmb2-element.ui-datepicker .ui-datepicker-prev:before,
|
730 |
+
.cmb2-element.ui-datepicker .ui-datepicker-next:before, .cmb2-element .ui-datepicker .ui-datepicker-prev:before,
|
731 |
+
.cmb2-element .ui-datepicker .ui-datepicker-next:before {
|
732 |
+
font: normal 20px/34px 'dashicons';
|
733 |
+
padding-left: 7px;
|
734 |
+
color: #fff;
|
735 |
+
speak: none;
|
736 |
+
-webkit-font-smoothing: antialiased;
|
737 |
+
-moz-osx-font-smoothing: grayscale;
|
738 |
+
width: 34px;
|
739 |
+
height: 34px; }
|
740 |
+
.cmb2-element.ui-datepicker .ui-datepicker-prev:before, .cmb2-element .ui-datepicker .ui-datepicker-prev:before {
|
741 |
+
content: '\f341'; }
|
742 |
+
.cmb2-element.ui-datepicker .ui-datepicker-next:before, .cmb2-element .ui-datepicker .ui-datepicker-next:before {
|
743 |
+
content: '\f345'; }
|
744 |
+
.cmb2-element.ui-datepicker .ui-datepicker-prev-hover:before,
|
745 |
+
.cmb2-element.ui-datepicker .ui-datepicker-next-hover:before, .cmb2-element .ui-datepicker .ui-datepicker-prev-hover:before,
|
746 |
+
.cmb2-element .ui-datepicker .ui-datepicker-next-hover:before {
|
747 |
+
opacity: 0.7; }
|
748 |
+
.cmb2-element.ui-datepicker select.ui-datepicker-month,
|
749 |
+
.cmb2-element.ui-datepicker select.ui-datepicker-year, .cmb2-element .ui-datepicker select.ui-datepicker-month,
|
750 |
+
.cmb2-element .ui-datepicker select.ui-datepicker-year {
|
751 |
+
width: 33%;
|
752 |
+
background: transparent;
|
753 |
+
border-color: transparent;
|
754 |
+
box-shadow: none;
|
755 |
+
color: #fff; }
|
756 |
+
.cmb2-element.ui-datepicker select.ui-datepicker-month option,
|
757 |
+
.cmb2-element.ui-datepicker select.ui-datepicker-year option, .cmb2-element .ui-datepicker select.ui-datepicker-month option,
|
758 |
+
.cmb2-element .ui-datepicker select.ui-datepicker-year option {
|
759 |
+
color: #333; }
|
760 |
+
.cmb2-element.ui-datepicker thead, .cmb2-element .ui-datepicker thead {
|
761 |
+
color: #fff;
|
762 |
+
font-weight: 600; }
|
763 |
+
.cmb2-element.ui-datepicker thead th, .cmb2-element .ui-datepicker thead th {
|
764 |
+
font-weight: normal; }
|
765 |
+
.cmb2-element.ui-datepicker th, .cmb2-element .ui-datepicker th {
|
766 |
+
padding: 10px; }
|
767 |
+
.cmb2-element.ui-datepicker td, .cmb2-element .ui-datepicker td {
|
768 |
+
padding: 0;
|
769 |
+
border: 1px solid #f4f4f4; }
|
770 |
+
.cmb2-element.ui-datepicker td.ui-datepicker-other-month, .cmb2-element .ui-datepicker td.ui-datepicker-other-month {
|
771 |
+
border: transparent; }
|
772 |
+
.cmb2-element.ui-datepicker td.ui-datepicker-week-end, .cmb2-element .ui-datepicker td.ui-datepicker-week-end {
|
773 |
+
background-color: #f4f4f4;
|
774 |
+
border: 1px solid #f4f4f4; }
|
775 |
+
.cmb2-element.ui-datepicker td.ui-datepicker-week-end.ui-datepicker-today, .cmb2-element .ui-datepicker td.ui-datepicker-week-end.ui-datepicker-today {
|
776 |
+
-webkit-box-shadow: inset 0px 0px 1px 0px rgba(0, 0, 0, 0.1);
|
777 |
+
-moz-box-shadow: inset 0px 0px 1px 0px rgba(0, 0, 0, 0.1);
|
778 |
+
box-shadow: inset 0px 0px 1px 0px rgba(0, 0, 0, 0.1); }
|
779 |
+
.cmb2-element.ui-datepicker td.ui-datepicker-today, .cmb2-element .ui-datepicker td.ui-datepicker-today {
|
780 |
+
background-color: #f0f0c0; }
|
781 |
+
.cmb2-element.ui-datepicker td.ui-datepicker-current-day, .cmb2-element .ui-datepicker td.ui-datepicker-current-day {
|
782 |
+
background: #bbdd88; }
|
783 |
+
.cmb2-element.ui-datepicker td .ui-state-default, .cmb2-element .ui-datepicker td .ui-state-default {
|
784 |
+
background: transparent;
|
785 |
+
border: none;
|
786 |
+
text-align: center;
|
787 |
+
text-decoration: none;
|
788 |
+
width: auto;
|
789 |
+
display: block;
|
790 |
+
padding: 5px 10px;
|
791 |
+
font-weight: normal;
|
792 |
+
color: #444; }
|
793 |
+
.cmb2-element.ui-datepicker td.ui-state-disabled .ui-state-default, .cmb2-element .ui-datepicker td.ui-state-disabled .ui-state-default {
|
794 |
+
opacity: 0.5; }
|
795 |
+
.cmb2-element.ui-datepicker .ui-widget-header,
|
796 |
+
.cmb2-element.ui-datepicker .ui-datepicker-header, .cmb2-element .ui-datepicker .ui-widget-header,
|
797 |
+
.cmb2-element .ui-datepicker .ui-datepicker-header {
|
798 |
+
background: #00a0d2; }
|
799 |
+
.cmb2-element.ui-datepicker thead, .cmb2-element .ui-datepicker thead {
|
800 |
+
background: #32373c; }
|
801 |
+
.cmb2-element.ui-datepicker td .ui-state-hover, .cmb2-element.ui-datepicker td .ui-state-active, .cmb2-element .ui-datepicker td .ui-state-hover, .cmb2-element .ui-datepicker td .ui-state-active {
|
802 |
+
background: #0073aa;
|
803 |
+
color: #fff; }
|
804 |
+
.cmb2-element.ui-datepicker .ui-timepicker-div, .cmb2-element .ui-datepicker .ui-timepicker-div {
|
805 |
+
font-size: 14px; }
|
806 |
+
.cmb2-element.ui-datepicker .ui-timepicker-div dl, .cmb2-element .ui-datepicker .ui-timepicker-div dl {
|
807 |
+
text-align: left;
|
808 |
+
padding: 0 .6em; }
|
809 |
+
.cmb2-element.ui-datepicker .ui-timepicker-div dl dt, .cmb2-element .ui-datepicker .ui-timepicker-div dl dt {
|
810 |
+
float: left;
|
811 |
+
clear: left;
|
812 |
+
padding: 0 0 0 5px; }
|
813 |
+
.cmb2-element.ui-datepicker .ui-timepicker-div dl dd, .cmb2-element .ui-datepicker .ui-timepicker-div dl dd {
|
814 |
+
margin: 0 10px 10px 40%; }
|
815 |
+
.cmb2-element.ui-datepicker .ui-timepicker-div dl dd select, .cmb2-element .ui-datepicker .ui-timepicker-div dl dd select {
|
816 |
+
width: 100%; }
|
817 |
+
.cmb2-element.ui-datepicker .ui-timepicker-div + .ui-datepicker-buttonpane, .cmb2-element .ui-datepicker .ui-timepicker-div + .ui-datepicker-buttonpane {
|
818 |
+
padding: .6em;
|
819 |
+
text-align: left; }
|
820 |
+
.cmb2-element.ui-datepicker .ui-timepicker-div + .ui-datepicker-buttonpane .button-primary, .cmb2-element.ui-datepicker .ui-timepicker-div + .ui-datepicker-buttonpane .button-secondary, .cmb2-element .ui-datepicker .ui-timepicker-div + .ui-datepicker-buttonpane .button-primary, .cmb2-element .ui-datepicker .ui-timepicker-div + .ui-datepicker-buttonpane .button-secondary {
|
821 |
+
padding: 0 10px 1px;
|
822 |
+
-webkit-border-radius: 3px;
|
823 |
+
-moz-border-radius: 3px;
|
824 |
+
border-radius: 3px;
|
825 |
+
margin: 0 .6em .4em .4em; }
|
826 |
+
|
827 |
+
.admin-color-fresh .cmb2-element.ui-datepicker .ui-widget-header,
|
828 |
+
.admin-color-fresh .cmb2-element.ui-datepicker .ui-datepicker-header, .admin-color-fresh .cmb2-element .ui-datepicker .ui-widget-header,
|
829 |
+
.admin-color-fresh .cmb2-element .ui-datepicker .ui-datepicker-header {
|
830 |
+
background: #00a0d2; }
|
831 |
+
.admin-color-fresh .cmb2-element.ui-datepicker thead, .admin-color-fresh .cmb2-element .ui-datepicker thead {
|
832 |
+
background: #32373c; }
|
833 |
+
.admin-color-fresh .cmb2-element.ui-datepicker td .ui-state-hover, .admin-color-fresh .cmb2-element .ui-datepicker td .ui-state-hover {
|
834 |
+
background: #0073aa;
|
835 |
+
color: #fff; }
|
836 |
+
|
837 |
+
.admin-color-blue .cmb2-element.ui-datepicker .ui-widget-header,
|
838 |
+
.admin-color-blue .cmb2-element.ui-datepicker .ui-datepicker-header, .admin-color-blue .cmb2-element .ui-datepicker .ui-widget-header,
|
839 |
+
.admin-color-blue .cmb2-element .ui-datepicker .ui-datepicker-header {
|
840 |
+
background: #52accc; }
|
841 |
+
.admin-color-blue .cmb2-element.ui-datepicker thead, .admin-color-blue .cmb2-element .ui-datepicker thead {
|
842 |
+
background: #4796b3; }
|
843 |
+
.admin-color-blue .cmb2-element.ui-datepicker td .ui-state-hover, .admin-color-blue .cmb2-element.ui-datepicker td .ui-state-active, .admin-color-blue .cmb2-element .ui-datepicker td .ui-state-hover, .admin-color-blue .cmb2-element .ui-datepicker td .ui-state-active {
|
844 |
+
background: #096484;
|
845 |
+
color: #fff; }
|
846 |
+
.admin-color-blue .cmb2-element.ui-datepicker td.ui-datepicker-today, .admin-color-blue .cmb2-element .ui-datepicker td.ui-datepicker-today {
|
847 |
+
background: #eee; }
|
848 |
+
|
849 |
+
.admin-color-coffee .cmb2-element.ui-datepicker .ui-widget-header,
|
850 |
+
.admin-color-coffee .cmb2-element.ui-datepicker .ui-datepicker-header, .admin-color-coffee .cmb2-element .ui-datepicker .ui-widget-header,
|
851 |
+
.admin-color-coffee .cmb2-element .ui-datepicker .ui-datepicker-header {
|
852 |
+
background: #59524c; }
|
853 |
+
.admin-color-coffee .cmb2-element.ui-datepicker thead, .admin-color-coffee .cmb2-element .ui-datepicker thead {
|
854 |
+
background: #46403c; }
|
855 |
+
.admin-color-coffee .cmb2-element.ui-datepicker td .ui-state-hover, .admin-color-coffee .cmb2-element .ui-datepicker td .ui-state-hover {
|
856 |
+
background: #c7a589;
|
857 |
+
color: #fff; }
|
858 |
+
|
859 |
+
.admin-color-ectoplasm .cmb2-element.ui-datepicker .ui-widget-header,
|
860 |
+
.admin-color-ectoplasm .cmb2-element.ui-datepicker .ui-datepicker-header, .admin-color-ectoplasm .cmb2-element .ui-datepicker .ui-widget-header,
|
861 |
+
.admin-color-ectoplasm .cmb2-element .ui-datepicker .ui-datepicker-header {
|
862 |
+
background: #523f6d; }
|
863 |
+
.admin-color-ectoplasm .cmb2-element.ui-datepicker thead, .admin-color-ectoplasm .cmb2-element .ui-datepicker thead {
|
864 |
+
background: #413256; }
|
865 |
+
.admin-color-ectoplasm .cmb2-element.ui-datepicker td .ui-state-hover, .admin-color-ectoplasm .cmb2-element .ui-datepicker td .ui-state-hover {
|
866 |
+
background: #a3b745;
|
867 |
+
color: #fff; }
|
868 |
+
|
869 |
+
.admin-color-midnight .cmb2-element.ui-datepicker .ui-widget-header,
|
870 |
+
.admin-color-midnight .cmb2-element.ui-datepicker .ui-datepicker-header, .admin-color-midnight .cmb2-element .ui-datepicker .ui-widget-header,
|
871 |
+
.admin-color-midnight .cmb2-element .ui-datepicker .ui-datepicker-header {
|
872 |
+
background: #363b3f; }
|
873 |
+
.admin-color-midnight .cmb2-element.ui-datepicker thead, .admin-color-midnight .cmb2-element .ui-datepicker thead {
|
874 |
+
background: #26292c; }
|
875 |
+
.admin-color-midnight .cmb2-element.ui-datepicker td .ui-state-hover, .admin-color-midnight .cmb2-element .ui-datepicker td .ui-state-hover {
|
876 |
+
background: #e14d43;
|
877 |
+
color: #fff; }
|
878 |
+
|
879 |
+
.admin-color-ocean .cmb2-element.ui-datepicker .ui-widget-header,
|
880 |
+
.admin-color-ocean .cmb2-element.ui-datepicker .ui-datepicker-header, .admin-color-ocean .cmb2-element .ui-datepicker .ui-widget-header,
|
881 |
+
.admin-color-ocean .cmb2-element .ui-datepicker .ui-datepicker-header {
|
882 |
+
background: #738e96; }
|
883 |
+
.admin-color-ocean .cmb2-element.ui-datepicker thead, .admin-color-ocean .cmb2-element .ui-datepicker thead {
|
884 |
+
background: #627c83; }
|
885 |
+
.admin-color-ocean .cmb2-element.ui-datepicker td .ui-state-hover, .admin-color-ocean .cmb2-element .ui-datepicker td .ui-state-hover {
|
886 |
+
background: #9ebaa0;
|
887 |
+
color: #fff; }
|
888 |
+
|
889 |
+
.admin-color-sunrise .cmb2-element.ui-datepicker .ui-widget-header,
|
890 |
+
.admin-color-sunrise .cmb2-element.ui-datepicker .ui-datepicker-header,
|
891 |
+
.admin-color-sunrise .cmb2-element.ui-datepicker .ui-datepicker-header .ui-state-hover, .admin-color-sunrise .cmb2-element .ui-datepicker .ui-widget-header,
|
892 |
+
.admin-color-sunrise .cmb2-element .ui-datepicker .ui-datepicker-header,
|
893 |
+
.admin-color-sunrise .cmb2-element .ui-datepicker .ui-datepicker-header .ui-state-hover {
|
894 |
+
background: #cf4944; }
|
895 |
+
.admin-color-sunrise .cmb2-element.ui-datepicker th, .admin-color-sunrise .cmb2-element .ui-datepicker th {
|
896 |
+
border-color: #be3631;
|
897 |
+
background: #be3631; }
|
898 |
+
.admin-color-sunrise .cmb2-element.ui-datepicker td .ui-state-hover, .admin-color-sunrise .cmb2-element .ui-datepicker td .ui-state-hover {
|
899 |
+
background: #dd823b;
|
900 |
+
color: #fff; }
|
901 |
+
|
902 |
+
.admin-color-light .cmb2-element.ui-datepicker .ui-widget-header,
|
903 |
+
.admin-color-light .cmb2-element.ui-datepicker .ui-datepicker-header, .admin-color-light .cmb2-element .ui-datepicker .ui-widget-header,
|
904 |
+
.admin-color-light .cmb2-element .ui-datepicker .ui-datepicker-header {
|
905 |
+
background: #e5e5e5; }
|
906 |
+
.admin-color-light .cmb2-element.ui-datepicker select.ui-datepicker-month,
|
907 |
+
.admin-color-light .cmb2-element.ui-datepicker select.ui-datepicker-year, .admin-color-light .cmb2-element .ui-datepicker select.ui-datepicker-month,
|
908 |
+
.admin-color-light .cmb2-element .ui-datepicker select.ui-datepicker-year {
|
909 |
+
color: #555; }
|
910 |
+
.admin-color-light .cmb2-element.ui-datepicker thead, .admin-color-light .cmb2-element .ui-datepicker thead {
|
911 |
+
background: #888; }
|
912 |
+
.admin-color-light .cmb2-element.ui-datepicker .ui-datepicker-title,
|
913 |
+
.admin-color-light .cmb2-element.ui-datepicker td .ui-state-default,
|
914 |
+
.admin-color-light .cmb2-element.ui-datepicker .ui-datepicker-prev:before,
|
915 |
+
.admin-color-light .cmb2-element.ui-datepicker .ui-datepicker-next:before, .admin-color-light .cmb2-element .ui-datepicker .ui-datepicker-title,
|
916 |
+
.admin-color-light .cmb2-element .ui-datepicker td .ui-state-default,
|
917 |
+
.admin-color-light .cmb2-element .ui-datepicker .ui-datepicker-prev:before,
|
918 |
+
.admin-color-light .cmb2-element .ui-datepicker .ui-datepicker-next:before {
|
919 |
+
color: #555; }
|
920 |
+
.admin-color-light .cmb2-element.ui-datepicker td .ui-state-hover, .admin-color-light .cmb2-element.ui-datepicker td .ui-state-active, .admin-color-light .cmb2-element .ui-datepicker td .ui-state-hover, .admin-color-light .cmb2-element .ui-datepicker td .ui-state-active {
|
921 |
+
background: #ccc; }
|
922 |
+
.admin-color-light .cmb2-element.ui-datepicker td.ui-datepicker-today, .admin-color-light .cmb2-element .ui-datepicker td.ui-datepicker-today {
|
923 |
+
background: #eee; }
|
924 |
+
|
925 |
+
.admin-color-bbp-evergreen .cmb2-element.ui-datepicker .ui-widget-header,
|
926 |
+
.admin-color-bbp-evergreen .cmb2-element.ui-datepicker .ui-datepicker-header, .admin-color-bbp-evergreen .cmb2-element .ui-datepicker .ui-widget-header,
|
927 |
+
.admin-color-bbp-evergreen .cmb2-element .ui-datepicker .ui-datepicker-header {
|
928 |
+
background: #56b274; }
|
929 |
+
.admin-color-bbp-evergreen .cmb2-element.ui-datepicker thead, .admin-color-bbp-evergreen .cmb2-element .ui-datepicker thead {
|
930 |
+
background: #36533f; }
|
931 |
+
.admin-color-bbp-evergreen .cmb2-element.ui-datepicker td .ui-state-hover, .admin-color-bbp-evergreen .cmb2-element .ui-datepicker td .ui-state-hover {
|
932 |
+
background: #446950;
|
933 |
+
color: #fff; }
|
934 |
+
|
935 |
+
.admin-color-bbp-mint .cmb2-element.ui-datepicker .ui-widget-header,
|
936 |
+
.admin-color-bbp-mint .cmb2-element.ui-datepicker .ui-datepicker-header, .admin-color-bbp-mint .cmb2-element .ui-datepicker .ui-widget-header,
|
937 |
+
.admin-color-bbp-mint .cmb2-element .ui-datepicker .ui-datepicker-header {
|
938 |
+
background: #4ca26a; }
|
939 |
+
.admin-color-bbp-mint .cmb2-element.ui-datepicker thead, .admin-color-bbp-mint .cmb2-element .ui-datepicker thead {
|
940 |
+
background: #4f6d59; }
|
941 |
+
.admin-color-bbp-mint .cmb2-element.ui-datepicker td .ui-state-hover, .admin-color-bbp-mint .cmb2-element .ui-datepicker td .ui-state-hover {
|
942 |
+
background: #5fb37c;
|
943 |
+
color: #fff; }
|
944 |
+
|
945 |
+
/**
|
946 |
+
* CMB2 Frontend
|
947 |
+
*/
|
948 |
+
.closed .inside {
|
949 |
+
display: none; }
|
950 |
+
|
951 |
+
.cmb-repeatable-grouping {
|
952 |
+
position: relative; }
|
953 |
+
.cmb-repeatable-grouping .cmb-group-title {
|
954 |
+
margin-left: -1em;
|
955 |
+
margin-right: -1em;
|
956 |
+
min-height: 1.5em; }
|
957 |
+
.cmb-repeatable-grouping h3 {
|
958 |
+
font-size: 14px;
|
959 |
+
padding: 8px 12px;
|
960 |
+
margin: 0;
|
961 |
+
line-height: 1.4; }
|
962 |
+
|
963 |
+
.cmb-repeatable-group.repeatable .cmb-group-title {
|
964 |
+
padding-left: 2.2em; }
|
965 |
+
.cmb-repeatable-group.non-repeatable .cmb-group-title {
|
966 |
+
padding-left: 12px; }
|
967 |
+
|
968 |
+
.cmb-type-group .cmb-row .cmbhandle {
|
969 |
+
right: 0;
|
970 |
+
position: absolute; }
|
971 |
+
|
972 |
+
.cmb-spinner {
|
973 |
+
background: url(/wp-admin/images/spinner.gif) no-repeat;
|
974 |
+
-webkit-background-size: 20px 20px;
|
975 |
+
background-size: 20px 20px;
|
976 |
+
display: none;
|
977 |
+
float: right;
|
978 |
+
vertical-align: middle;
|
979 |
+
opacity: 0.7;
|
980 |
+
filter: alpha(opacity=70);
|
981 |
+
width: 20px;
|
982 |
+
height: 20px;
|
983 |
+
margin: 4px 10px 0; }
|
includes/lib/cmb2/css/sass/cmb2.css
CHANGED
@@ -1,943 +1,943 @@
|
|
1 |
-
/**
|
2 |
-
* CMB2 Styling
|
3 |
-
*/
|
4 |
-
/*--------------------------------------------------------------
|
5 |
-
Main Wrap
|
6 |
-
--------------------------------------------------------------*/
|
7 |
-
.cmb2-wrap {
|
8 |
-
margin: 0; }
|
9 |
-
.cmb2-wrap input,
|
10 |
-
.cmb2-wrap textarea {
|
11 |
-
font-size: 14px;
|
12 |
-
max-width: 100%;
|
13 |
-
padding: 5px; }
|
14 |
-
.cmb2-wrap input[type=text].cmb2-oembed {
|
15 |
-
width: 100%; }
|
16 |
-
.cmb2-wrap textarea {
|
17 |
-
width: 500px; }
|
18 |
-
.cmb2-wrap textarea.cmb2-textarea-code {
|
19 |
-
font-family: "Courier 10 Pitch", Courier, monospace;
|
20 |
-
line-height: 16px; }
|
21 |
-
.cmb2-wrap input.cmb2-text-small, .cmb2-wrap input.cmb2-timepicker {
|
22 |
-
width: 100px; }
|
23 |
-
.cmb2-wrap input.cmb2-text-money {
|
24 |
-
width: 90px; }
|
25 |
-
.cmb2-wrap input.cmb2-text-medium {
|
26 |
-
width: 230px; }
|
27 |
-
.cmb2-wrap input.cmb2-upload-file {
|
28 |
-
width: 65%; }
|
29 |
-
.cmb2-wrap input.ed_button {
|
30 |
-
padding: 2px 4px; }
|
31 |
-
.cmb2-wrap input:not([type="hidden"]) + input,
|
32 |
-
.cmb2-wrap input:not([type="hidden"]) + .button-secondary,
|
33 |
-
.cmb2-wrap input:not([type="hidden"]) + select {
|
34 |
-
margin-left: 20px; }
|
35 |
-
.cmb2-wrap ul {
|
36 |
-
margin: 0; }
|
37 |
-
.cmb2-wrap li {
|
38 |
-
font-size: 14px;
|
39 |
-
line-height: 16px;
|
40 |
-
margin: 1px 0 5px 0; }
|
41 |
-
.cmb2-wrap select {
|
42 |
-
font-size: 14px;
|
43 |
-
margin-top: 3px; }
|
44 |
-
.cmb2-wrap input:focus,
|
45 |
-
.cmb2-wrap textarea:focus {
|
46 |
-
background: #fffff8; }
|
47 |
-
.cmb2-wrap input[type="radio"] {
|
48 |
-
margin: 0 5px 0 0;
|
49 |
-
padding: 0; }
|
50 |
-
.cmb2-wrap input[type="checkbox"] {
|
51 |
-
margin: 0 5px 0 0;
|
52 |
-
padding: 0; }
|
53 |
-
.cmb2-wrap button,
|
54 |
-
.cmb2-wrap .button-secondary {
|
55 |
-
white-space: nowrap; }
|
56 |
-
.cmb2-wrap .mceLayout {
|
57 |
-
border: 1px solid #e9e9e9 !important; }
|
58 |
-
.cmb2-wrap .mceIframeContainer {
|
59 |
-
background: #fff; }
|
60 |
-
.cmb2-wrap .meta_mce {
|
61 |
-
width: 97%; }
|
62 |
-
.cmb2-wrap .meta_mce textarea {
|
63 |
-
width: 100%; }
|
64 |
-
.cmb2-wrap .wp-color-result,
|
65 |
-
.cmb2-wrap .wp-picker-input-wrap {
|
66 |
-
vertical-align: middle; }
|
67 |
-
.cmb2-wrap .wp-color-result,
|
68 |
-
.cmb2-wrap .wp-picker-container {
|
69 |
-
margin: 0 10px 0 0; }
|
70 |
-
.cmb2-wrap .cmb-row {
|
71 |
-
margin: 0; }
|
72 |
-
.cmb2-wrap .cmb-row:after {
|
73 |
-
content: '';
|
74 |
-
clear: both;
|
75 |
-
display: block;
|
76 |
-
width: 100%; }
|
77 |
-
.cmb2-wrap .cmb-row.cmb-repeat-row {
|
78 |
-
padding: 1.8em 0 0; }
|
79 |
-
.cmb2-wrap .cmb-row.cmb-repeat-row:first-of-type {
|
80 |
-
padding: 0; }
|
81 |
-
.cmb2-wrap .cmb-row.cmb-repeat .cmb2-metabox-description {
|
82 |
-
padding-top: 0;
|
83 |
-
padding-bottom: 1.8em; }
|
84 |
-
|
85 |
-
.cmb2-metabox {
|
86 |
-
clear: both;
|
87 |
-
margin: 0; }
|
88 |
-
.cmb2-metabox > .cmb-row:first-of-type > .cmb-td,
|
89 |
-
.cmb2-metabox > .cmb-row:first-of-type > .cmb-th,
|
90 |
-
.cmb2-metabox .cmb-field-list > .cmb-row:first-of-type > .cmb-td,
|
91 |
-
.cmb2-metabox .cmb-field-list > .cmb-row:first-of-type > .cmb-th {
|
92 |
-
border: 0; }
|
93 |
-
.cmb2-metabox > .cmb-row .cmb-repeat-table .cmb-row > .cmb-td {
|
94 |
-
padding-right: 20px;
|
95 |
-
box-sizing: border-box;
|
96 |
-
float: left; }
|
97 |
-
|
98 |
-
.cmb-add-row {
|
99 |
-
margin: 1.8em 0 0; }
|
100 |
-
|
101 |
-
.cmb-nested .cmb-td,
|
102 |
-
.cmb-repeatable-group .cmb-th,
|
103 |
-
.cmb-repeatable-group:first-of-type {
|
104 |
-
border: 0; }
|
105 |
-
|
106 |
-
.cmb-row:last-of-type,
|
107 |
-
.cmb2-wrap .cmb-row:last-of-type,
|
108 |
-
.cmb-repeatable-group:last-of-type {
|
109 |
-
border-bottom: 0; }
|
110 |
-
|
111 |
-
.cmb-repeatable-grouping {
|
112 |
-
border: 1px solid #e9e9e9;
|
113 |
-
padding: 0 1em;
|
114 |
-
max-width: 1000px; }
|
115 |
-
.cmb-repeatable-grouping.cmb-row {
|
116 |
-
margin: 0 0 0.8em; }
|
117 |
-
|
118 |
-
.cmb-th {
|
119 |
-
color: #222222;
|
120 |
-
float: left;
|
121 |
-
font-weight: 600;
|
122 |
-
line-height: 1.3;
|
123 |
-
padding: 20px 10px 20px 0;
|
124 |
-
vertical-align: top;
|
125 |
-
width: 200px; }
|
126 |
-
@media (max-width: 450px) {
|
127 |
-
.cmb-th {
|
128 |
-
font-size: 1.2em;
|
129 |
-
display: block;
|
130 |
-
float: none;
|
131 |
-
padding-bottom: 1em;
|
132 |
-
text-align: left;
|
133 |
-
width: 100%; }
|
134 |
-
.cmb-th label {
|
135 |
-
display: block;
|
136 |
-
margin-top: 0em;
|
137 |
-
padding-bottom: 5px; }
|
138 |
-
.cmb-th label:after {
|
139 |
-
border-bottom: 1px solid #e9e9e9;
|
140 |
-
content: '';
|
141 |
-
clear: both;
|
142 |
-
display: block;
|
143 |
-
padding-top: .4em; } }
|
144 |
-
|
145 |
-
.cmb-td {
|
146 |
-
line-height: 1.3;
|
147 |
-
max-width: 100%;
|
148 |
-
padding: 15px 10px;
|
149 |
-
vertical-align: middle; }
|
150 |
-
|
151 |
-
.cmb-type-title .cmb-td {
|
152 |
-
padding: 0; }
|
153 |
-
|
154 |
-
.cmb-th label {
|
155 |
-
display: block;
|
156 |
-
padding: 5px 0; }
|
157 |
-
|
158 |
-
.cmb-th + .cmb-td {
|
159 |
-
float: left; }
|
160 |
-
|
161 |
-
.cmb-td .cmb-td {
|
162 |
-
padding-bottom: 1em; }
|
163 |
-
|
164 |
-
.cmb-remove-row {
|
165 |
-
text-align: right; }
|
166 |
-
|
167 |
-
.empty-row.hidden {
|
168 |
-
display: none; }
|
169 |
-
|
170 |
-
.cmb-repeatable-group .cmb-th {
|
171 |
-
padding: 5px; }
|
172 |
-
.cmb-repeatable-group .cmb-group-title {
|
173 |
-
background-color: #e9e9e9;
|
174 |
-
padding: 8px 12px 8px 2.2em;
|
175 |
-
margin: 0 -1em;
|
176 |
-
min-height: 1.5em;
|
177 |
-
font-size: 14px;
|
178 |
-
line-height: 1.4; }
|
179 |
-
.cmb-repeatable-group .cmb-group-title h4 {
|
180 |
-
border: 0;
|
181 |
-
margin: 0;
|
182 |
-
font-size: 1.2em;
|
183 |
-
font-weight: 500;
|
184 |
-
padding: 0.5em 0.75em; }
|
185 |
-
.cmb-repeatable-group .cmb-group-title .cmb-th {
|
186 |
-
display: block;
|
187 |
-
width: 100%; }
|
188 |
-
.cmb-repeatable-group .cmb-group-description .cmb-th {
|
189 |
-
font-size: 1.2em;
|
190 |
-
display: block;
|
191 |
-
float: none;
|
192 |
-
padding-bottom: 1em;
|
193 |
-
text-align: left;
|
194 |
-
width: 100%; }
|
195 |
-
.cmb-repeatable-group .cmb-group-description .cmb-th label {
|
196 |
-
display: block;
|
197 |
-
margin-top: 0em;
|
198 |
-
padding-bottom: 5px; }
|
199 |
-
.cmb-repeatable-group .cmb-group-description .cmb-th label:after {
|
200 |
-
border-bottom: 1px solid #e9e9e9;
|
201 |
-
content: '';
|
202 |
-
clear: both;
|
203 |
-
display: block;
|
204 |
-
padding-top: .4em; }
|
205 |
-
.cmb-repeatable-group .cmb-shift-rows {
|
206 |
-
font-size: 1em;
|
207 |
-
margin-right: 1em;
|
208 |
-
text-decoration: none; }
|
209 |
-
.cmb-repeatable-group .cmb-shift-rows .dashicons {
|
210 |
-
font-size: 1.5em;
|
211 |
-
height: 1.5em;
|
212 |
-
line-height: 1.2em;
|
213 |
-
width: 1em; }
|
214 |
-
.cmb-repeatable-group .cmb-shift-rows .dashicons.dashicons-arrow-down-alt2 {
|
215 |
-
line-height: 1.3em; }
|
216 |
-
.cmb-repeatable-group .cmb2-upload-button {
|
217 |
-
float: right; }
|
218 |
-
|
219 |
-
p.cmb2-metabox-description {
|
220 |
-
color: #aaaaaa;
|
221 |
-
font-style: italic;
|
222 |
-
margin: 0;
|
223 |
-
padding-top: .5em; }
|
224 |
-
|
225 |
-
span.cmb2-metabox-description {
|
226 |
-
color: #aaaaaa;
|
227 |
-
font-style: italic; }
|
228 |
-
|
229 |
-
.cmb2-metabox-title {
|
230 |
-
margin: 0 0 5px 0;
|
231 |
-
padding: 5px 0 0 0;
|
232 |
-
font-size: 14px; }
|
233 |
-
|
234 |
-
.cmb-inline ul {
|
235 |
-
padding: 4px 0 0 0; }
|
236 |
-
|
237 |
-
.cmb-inline li {
|
238 |
-
display: inline-block;
|
239 |
-
padding-right: 18px; }
|
240 |
-
|
241 |
-
.cmb-type-textarea-code pre {
|
242 |
-
margin: 0; }
|
243 |
-
|
244 |
-
.cmb2-media-status .img-status {
|
245 |
-
clear: none;
|
246 |
-
display: inline-block;
|
247 |
-
vertical-align: middle;
|
248 |
-
margin-right: 10px;
|
249 |
-
width: auto; }
|
250 |
-
.cmb2-media-status .img-status img {
|
251 |
-
max-width: 350px;
|
252 |
-
height: auto; }
|
253 |
-
.cmb2-media-status .img-status img,
|
254 |
-
.cmb2-media-status .embed-status {
|
255 |
-
background: #ffffff;
|
256 |
-
border: 1px solid #e9e9e9;
|
257 |
-
border-radius: 2px;
|
258 |
-
-moz-border-radius: 2px;
|
259 |
-
margin: 15px 0 0 0;
|
260 |
-
padding: 5px; }
|
261 |
-
.cmb2-media-status .embed-status {
|
262 |
-
float: left;
|
263 |
-
max-width: 800px; }
|
264 |
-
.cmb2-media-status .img-status, .cmb2-media-status .embed-status {
|
265 |
-
position: relative; }
|
266 |
-
.cmb2-media-status .img-status .cmb2-remove-file-button, .cmb2-media-status .embed-status .cmb2-remove-file-button {
|
267 |
-
background: url(../images/ico-delete.png);
|
268 |
-
height: 16px;
|
269 |
-
left: -5px;
|
270 |
-
position: absolute;
|
271 |
-
text-indent: -9999px;
|
272 |
-
top: -5px;
|
273 |
-
width: 16px; }
|
274 |
-
.cmb2-media-status .img-status .cmb2-remove-file-button {
|
275 |
-
top: 10px; }
|
276 |
-
.cmb2-media-status .img-status img, .cmb2-media-status .file-status > span {
|
277 |
-
cursor: pointer; }
|
278 |
-
|
279 |
-
.cmb-type-file-list .cmb2-media-status .img-status {
|
280 |
-
clear: none;
|
281 |
-
vertical-align: middle;
|
282 |
-
width: auto;
|
283 |
-
margin-right: 10px;
|
284 |
-
margin-bottom: 10px;
|
285 |
-
margin-top: 0; }
|
286 |
-
|
287 |
-
.cmb-attach-list li {
|
288 |
-
clear: both;
|
289 |
-
display: inline-block;
|
290 |
-
width: 100%;
|
291 |
-
margin-top: 5px;
|
292 |
-
margin-bottom: 10px; }
|
293 |
-
.cmb-attach-list li img {
|
294 |
-
cursor: move;
|
295 |
-
float: left;
|
296 |
-
margin-right: 10px; }
|
297 |
-
|
298 |
-
.cmb2-remove-wrapper {
|
299 |
-
margin: 0; }
|
300 |
-
|
301 |
-
.child-cmb2 .cmb-th {
|
302 |
-
text-align: left; }
|
303 |
-
|
304 |
-
@media (max-width: 450px) {
|
305 |
-
.cmb-th,
|
306 |
-
.cmb-td,
|
307 |
-
.cmb-th + .cmb-td {
|
308 |
-
display: block;
|
309 |
-
float: none;
|
310 |
-
width: 100%; } }
|
311 |
-
/*--------------------------------------------------------------
|
312 |
-
Post Metaboxes
|
313 |
-
--------------------------------------------------------------*/
|
314 |
-
#poststuff .cmb-group-title {
|
315 |
-
margin-left: -1em;
|
316 |
-
margin-right: -1em;
|
317 |
-
min-height: 1.5em; }
|
318 |
-
|
319 |
-
#poststuff .repeatable .cmb-group-title {
|
320 |
-
padding-left: 2.2em; }
|
321 |
-
|
322 |
-
.cmb2-postbox .cmb2-wrap, .cmb-type-group .cmb2-wrap {
|
323 |
-
margin: 0; }
|
324 |
-
.cmb2-postbox .cmb2-wrap > .cmb-field-list > .cmb-row, .cmb-type-group .cmb2-wrap > .cmb-field-list > .cmb-row {
|
325 |
-
padding: 1.8em 0; }
|
326 |
-
.cmb2-postbox .cmb2-wrap input[type=text].cmb2-oembed, .cmb-type-group .cmb2-wrap input[type=text].cmb2-oembed {
|
327 |
-
width: 100%; }
|
328 |
-
.cmb2-postbox .cmb-row, .cmb-type-group .cmb-row {
|
329 |
-
padding: 0 0 1.8em;
|
330 |
-
margin: 0 0 0.8em; }
|
331 |
-
.cmb2-postbox .cmb-row .cmbhandle, .cmb-type-group .cmb-row .cmbhandle {
|
332 |
-
right: -1em;
|
333 |
-
position: relative; }
|
334 |
-
.cmb2-postbox .cmb-repeatable-grouping, .cmb-type-group .cmb-repeatable-grouping {
|
335 |
-
padding: 0 1em;
|
336 |
-
max-width: 100%;
|
337 |
-
min-width: 1px !important; }
|
338 |
-
.cmb2-postbox .cmb-repeatable-group > .cmb-row, .cmb-type-group .cmb-repeatable-group > .cmb-row {
|
339 |
-
padding-bottom: 0; }
|
340 |
-
.cmb2-postbox .cmb-th, .cmb-type-group .cmb-th {
|
341 |
-
width: 18%;
|
342 |
-
padding: 0 2% 0 0; }
|
343 |
-
.cmb2-postbox .cmb-td, .cmb-type-group .cmb-td {
|
344 |
-
margin-bottom: 0;
|
345 |
-
padding: 0;
|
346 |
-
line-height: 1.3; }
|
347 |
-
.cmb2-postbox .cmb-repeat-row .cmb-td, .cmb-type-group .cmb-repeat-row .cmb-td {
|
348 |
-
padding-bottom: 1.8em; }
|
349 |
-
.cmb2-postbox .cmb-th + .cmb-td, .cmb-type-group .cmb-th + .cmb-td {
|
350 |
-
width: 80%;
|
351 |
-
float: right; }
|
352 |
-
.cmb2-postbox .cmb-row:not(:last-of-type),
|
353 |
-
.cmb2-postbox .cmb-repeatable-group:not(:last-of-type), .cmb-type-group .cmb-row:not(:last-of-type),
|
354 |
-
.cmb-type-group .cmb-repeatable-group:not(:last-of-type) {
|
355 |
-
border-bottom: 1px solid #e9e9e9; }
|
356 |
-
@media (max-width: 450px) {
|
357 |
-
.cmb2-postbox .cmb-row:not(:last-of-type),
|
358 |
-
.cmb2-postbox .cmb-repeatable-group:not(:last-of-type), .cmb-type-group .cmb-row:not(:last-of-type),
|
359 |
-
.cmb-type-group .cmb-repeatable-group:not(:last-of-type) {
|
360 |
-
border-bottom: 0; } }
|
361 |
-
.cmb2-postbox .cmb-repeat-group-field,
|
362 |
-
.cmb2-postbox .cmb-remove-field-row, .cmb-type-group .cmb-repeat-group-field,
|
363 |
-
.cmb-type-group .cmb-remove-field-row {
|
364 |
-
padding-top: 1.8em; }
|
365 |
-
.cmb2-postbox .cmb2-metabox > .cmb-row.table-layout .cmb-repeat-table .cmb-tbody, .cmb2-postbox .cmb2-metabox > .cmb-row .cmb-row.table-layout .cmb-repeat-table .cmb-tbody, .cmb-type-group .cmb2-metabox > .cmb-row.table-layout .cmb-repeat-table .cmb-tbody, .cmb-type-group .cmb2-metabox > .cmb-row .cmb-row.table-layout .cmb-repeat-table .cmb-tbody {
|
366 |
-
display: table;
|
367 |
-
width: 100%; }
|
368 |
-
.cmb2-postbox .cmb2-metabox > .cmb-row.table-layout .cmb-repeat-table .cmb-tbody input.regular-text, .cmb2-postbox .cmb2-metabox > .cmb-row .cmb-row.table-layout .cmb-repeat-table .cmb-tbody input.regular-text, .cmb-type-group .cmb2-metabox > .cmb-row.table-layout .cmb-repeat-table .cmb-tbody input.regular-text, .cmb-type-group .cmb2-metabox > .cmb-row .cmb-row.table-layout .cmb-repeat-table .cmb-tbody input.regular-text {
|
369 |
-
width: 100%; }
|
370 |
-
.cmb2-postbox .cmb2-metabox > .cmb-row.table-layout .cmb-repeat-table .cmb-tbody .cmb-row:not(.hidden):not(.empty-row), .cmb2-postbox .cmb2-metabox > .cmb-row .cmb-row.table-layout .cmb-repeat-table .cmb-tbody .cmb-row:not(.hidden):not(.empty-row), .cmb-type-group .cmb2-metabox > .cmb-row.table-layout .cmb-repeat-table .cmb-tbody .cmb-row:not(.hidden):not(.empty-row), .cmb-type-group .cmb2-metabox > .cmb-row .cmb-row.table-layout .cmb-repeat-table .cmb-tbody .cmb-row:not(.hidden):not(.empty-row) {
|
371 |
-
display: table-row; }
|
372 |
-
.cmb2-postbox .cmb2-metabox > .cmb-row.table-layout .cmb-repeat-table .cmb-tbody .cmb-td, .cmb2-postbox .cmb2-metabox > .cmb-row .cmb-row.table-layout .cmb-repeat-table .cmb-tbody .cmb-td, .cmb-type-group .cmb2-metabox > .cmb-row.table-layout .cmb-repeat-table .cmb-tbody .cmb-td, .cmb-type-group .cmb2-metabox > .cmb-row .cmb-row.table-layout .cmb-repeat-table .cmb-tbody .cmb-td {
|
373 |
-
display: table-cell;
|
374 |
-
float: none;
|
375 |
-
width: 100%; }
|
376 |
-
.cmb2-postbox .cmb2-metabox > .cmb-row.table-layout .cmb-repeat-table .cmb-tbody .cmb-row:not(:first-of-type) .cmb-td, .cmb2-postbox .cmb2-metabox > .cmb-row .cmb-row.table-layout .cmb-repeat-table .cmb-tbody .cmb-row:not(:first-of-type) .cmb-td, .cmb-type-group .cmb2-metabox > .cmb-row.table-layout .cmb-repeat-table .cmb-tbody .cmb-row:not(:first-of-type) .cmb-td, .cmb-type-group .cmb2-metabox > .cmb-row .cmb-row.table-layout .cmb-repeat-table .cmb-tbody .cmb-row:not(:first-of-type) .cmb-td {
|
377 |
-
padding-top: 1.8em; }
|
378 |
-
.cmb2-postbox .cmb2-metabox > .cmb-row.table-layout .cmb-repeat-table .cmb-tbody .cmb-td.cmb-remove-row, .cmb2-postbox .cmb2-metabox > .cmb-row .cmb-row.table-layout .cmb-repeat-table .cmb-tbody .cmb-td.cmb-remove-row, .cmb-type-group .cmb2-metabox > .cmb-row.table-layout .cmb-repeat-table .cmb-tbody .cmb-td.cmb-remove-row, .cmb-type-group .cmb2-metabox > .cmb-row .cmb-row.table-layout .cmb-repeat-table .cmb-tbody .cmb-td.cmb-remove-row {
|
379 |
-
padding-right: 0; }
|
380 |
-
|
381 |
-
/*--------------------------------------------------------------
|
382 |
-
Context Metaboxes
|
383 |
-
--------------------------------------------------------------*/
|
384 |
-
/* Metabox collapse arrow indicators */
|
385 |
-
.js .cmb2-postbox.context-box .toggle-indicator:before {
|
386 |
-
content: "\f142";
|
387 |
-
display: inline-block;
|
388 |
-
font: normal 20px/1 dashicons;
|
389 |
-
speak: none;
|
390 |
-
-webkit-font-smoothing: antialiased;
|
391 |
-
-moz-osx-font-smoothing: grayscale;
|
392 |
-
text-decoration: none !important; }
|
393 |
-
.js .cmb2-postbox.context-box.closed .toggle-indicator:before {
|
394 |
-
content: "\f140"; }
|
395 |
-
|
396 |
-
.cmb2-postbox.context-box {
|
397 |
-
margin-bottom: 10px; }
|
398 |
-
.cmb2-postbox.context-box.context-before_permalink-box {
|
399 |
-
margin-top: 10px; }
|
400 |
-
.cmb2-postbox.context-box.context-after_title-box {
|
401 |
-
margin-top: 10px; }
|
402 |
-
.cmb2-postbox.context-box.context-after_editor-box {
|
403 |
-
margin-top: 20px;
|
404 |
-
margin-bottom: 0; }
|
405 |
-
.cmb2-postbox.context-box.context-form_top-box {
|
406 |
-
margin-top: 10px; }
|
407 |
-
.cmb2-postbox.context-box.context-form_top-box .hndle {
|
408 |
-
font-size: 14px;
|
409 |
-
padding: 8px 12px;
|
410 |
-
margin: 0;
|
411 |
-
line-height: 1.4; }
|
412 |
-
.cmb2-postbox.context-box .hndle {
|
413 |
-
cursor: auto; }
|
414 |
-
|
415 |
-
.cmb2-context-wrap {
|
416 |
-
margin-top: 10px; }
|
417 |
-
.cmb2-context-wrap.cmb2-context-wrap-form_top {
|
418 |
-
margin-right: 300px;
|
419 |
-
width: auto; }
|
420 |
-
.cmb2-context-wrap.cmb2-context-wrap-no-title .cmb2-metabox {
|
421 |
-
padding: 10px; }
|
422 |
-
.cmb2-context-wrap .cmb-th {
|
423 |
-
padding: 0 2% 0 0;
|
424 |
-
width: 18%; }
|
425 |
-
.cmb2-context-wrap .cmb-td {
|
426 |
-
width: 80%;
|
427 |
-
padding: 0; }
|
428 |
-
.cmb2-context-wrap .cmb-row {
|
429 |
-
margin-bottom: 10px; }
|
430 |
-
.cmb2-context-wrap .cmb-row:last-of-type {
|
431 |
-
margin-bottom: 0; }
|
432 |
-
|
433 |
-
/* one column on the post write/edit screen */
|
434 |
-
@media only screen and (max-width: 850px) {
|
435 |
-
.cmb2-context-wrap.cmb2-context-wrap-form_top {
|
436 |
-
margin-right: 0; } }
|
437 |
-
/*--------------------------------------------------------------
|
438 |
-
Misc.
|
439 |
-
--------------------------------------------------------------*/
|
440 |
-
#poststuff .cmb-repeatable-group h2 {
|
441 |
-
margin: 0; }
|
442 |
-
|
443 |
-
.edit-tags-php .cmb2-metabox-title,
|
444 |
-
.profile-php .cmb2-metabox-title,
|
445 |
-
.user-edit-php .cmb2-metabox-title {
|
446 |
-
font-size: 1.4em; }
|
447 |
-
|
448 |
-
.cmb2-options-page .cmb2-metabox-title {
|
449 |
-
font-size: 1.3em;
|
450 |
-
margin: 1em 0; }
|
451 |
-
.cmb2-options-page .cmb2-metabox-title + p.cmb2-metabox-description {
|
452 |
-
margin-top: -1.6em;
|
453 |
-
margin-bottom: .8em; }
|
454 |
-
|
455 |
-
.cmb2-postbox .cmb-spinner, .cmb2-no-box-wrap .cmb-spinner {
|
456 |
-
float: left;
|
457 |
-
display: none; }
|
458 |
-
|
459 |
-
.cmb-spinner {
|
460 |
-
display: none; }
|
461 |
-
.cmb-spinner.is-active {
|
462 |
-
display: block; }
|
463 |
-
|
464 |
-
/*--------------------------------------------------------------
|
465 |
-
Sidebar Placement Adjustments
|
466 |
-
--------------------------------------------------------------*/
|
467 |
-
.inner-sidebar .cmb2-wrap > .cmb-field-list > .cmb-row,
|
468 |
-
#side-sortables .cmb2-wrap > .cmb-field-list > .cmb-row {
|
469 |
-
padding: 1.4em 0; }
|
470 |
-
.inner-sidebar .cmb2-wrap input[type=text]:not(.wp-color-picker),
|
471 |
-
#side-sortables .cmb2-wrap input[type=text]:not(.wp-color-picker) {
|
472 |
-
width: 100%; }
|
473 |
-
.inner-sidebar .cmb2-wrap input + input:not(.wp-picker-clear), .inner-sidebar .cmb2-wrap input + select,
|
474 |
-
#side-sortables .cmb2-wrap input + input:not(.wp-picker-clear),
|
475 |
-
#side-sortables .cmb2-wrap input + select {
|
476 |
-
margin-left: 0;
|
477 |
-
margin-top: 1em;
|
478 |
-
display: block; }
|
479 |
-
.inner-sidebar .cmb2-wrap input.cmb2-text-money,
|
480 |
-
#side-sortables .cmb2-wrap input.cmb2-text-money {
|
481 |
-
max-width: 70%; }
|
482 |
-
.inner-sidebar .cmb2-wrap input.cmb2-text-money + .cmb2-metabox-description,
|
483 |
-
#side-sortables .cmb2-wrap input.cmb2-text-money + .cmb2-metabox-description {
|
484 |
-
display: block; }
|
485 |
-
.inner-sidebar .cmb2-wrap label,
|
486 |
-
#side-sortables .cmb2-wrap label {
|
487 |
-
display: block;
|
488 |
-
font-weight: 700;
|
489 |
-
padding: 0 0 5px; }
|
490 |
-
.inner-sidebar textarea,
|
491 |
-
#side-sortables textarea {
|
492 |
-
max-width: 99%; }
|
493 |
-
.inner-sidebar .cmb-repeatable-group,
|
494 |
-
#side-sortables .cmb-repeatable-group {
|
495 |
-
border-bottom: 1px solid #e9e9e9; }
|
496 |
-
.inner-sidebar .cmb-type-group > .cmb-td > .cmb-repeatable-group,
|
497 |
-
#side-sortables .cmb-type-group > .cmb-td > .cmb-repeatable-group {
|
498 |
-
border-bottom: 0;
|
499 |
-
margin-bottom: -1.4em; }
|
500 |
-
.inner-sidebar .cmb-th,
|
501 |
-
.inner-sidebar .cmb-td,
|
502 |
-
.inner-sidebar .cmb-th + .cmb-td,
|
503 |
-
#side-sortables .cmb-th,
|
504 |
-
#side-sortables .cmb-td,
|
505 |
-
#side-sortables .cmb-th + .cmb-td {
|
506 |
-
width: 100%;
|
507 |
-
display: block;
|
508 |
-
float: none; }
|
509 |
-
.inner-sidebar .closed .inside,
|
510 |
-
#side-sortables .closed .inside {
|
511 |
-
display: none; }
|
512 |
-
.inner-sidebar .cmb-td .cmb-td,
|
513 |
-
#side-sortables .cmb-td .cmb-td {
|
514 |
-
padding-bottom: 1em; }
|
515 |
-
.inner-sidebar .cmb-th,
|
516 |
-
#side-sortables .cmb-th {
|
517 |
-
display: block;
|
518 |
-
float: none;
|
519 |
-
padding-bottom: 1em;
|
520 |
-
text-align: left;
|
521 |
-
width: 100%;
|
522 |
-
padding-left: 0;
|
523 |
-
padding-right: 0; }
|
524 |
-
.inner-sidebar .cmb-th label,
|
525 |
-
#side-sortables .cmb-th label {
|
526 |
-
display: block;
|
527 |
-
margin-top: 0em;
|
528 |
-
padding-bottom: 5px; }
|
529 |
-
.inner-sidebar .cmb-th label:after,
|
530 |
-
#side-sortables .cmb-th label:after {
|
531 |
-
border-bottom: 1px solid #e9e9e9;
|
532 |
-
content: '';
|
533 |
-
clear: both;
|
534 |
-
display: block;
|
535 |
-
padding-top: .4em; }
|
536 |
-
.inner-sidebar .cmb-th label,
|
537 |
-
#side-sortables .cmb-th label {
|
538 |
-
font-size: 14px;
|
539 |
-
line-height: 1.4em; }
|
540 |
-
.inner-sidebar .cmb-group-description .cmb-th,
|
541 |
-
#side-sortables .cmb-group-description .cmb-th {
|
542 |
-
padding-top: 0; }
|
543 |
-
.inner-sidebar .cmb-group-description .cmb2-metabox-description,
|
544 |
-
#side-sortables .cmb-group-description .cmb2-metabox-description {
|
545 |
-
padding: 0; }
|
546 |
-
.inner-sidebar .cmb-group-title .cmb-th,
|
547 |
-
#side-sortables .cmb-group-title .cmb-th {
|
548 |
-
padding: 0; }
|
549 |
-
.inner-sidebar .cmb-repeatable-grouping + .cmb-repeatable-grouping,
|
550 |
-
#side-sortables .cmb-repeatable-grouping + .cmb-repeatable-grouping {
|
551 |
-
margin-top: 1em; }
|
552 |
-
.inner-sidebar .cmb2-media-status .img-status img,
|
553 |
-
.inner-sidebar .cmb2-media-status .embed-status img,
|
554 |
-
#side-sortables .cmb2-media-status .img-status img,
|
555 |
-
#side-sortables .cmb2-media-status .embed-status img {
|
556 |
-
max-width: 90%;
|
557 |
-
height: auto; }
|
558 |
-
.inner-sidebar .cmb2-list label,
|
559 |
-
#side-sortables .cmb2-list label {
|
560 |
-
display: inline;
|
561 |
-
font-weight: normal; }
|
562 |
-
.inner-sidebar .cmb2-metabox-description,
|
563 |
-
#side-sortables .cmb2-metabox-description {
|
564 |
-
display: block;
|
565 |
-
padding: 7px 0 0; }
|
566 |
-
.inner-sidebar .cmb-type-checkbox .cmb-td label,
|
567 |
-
.inner-sidebar .cmb-type-checkbox .cmb2-metabox-description,
|
568 |
-
#side-sortables .cmb-type-checkbox .cmb-td label,
|
569 |
-
#side-sortables .cmb-type-checkbox .cmb2-metabox-description {
|
570 |
-
font-weight: normal;
|
571 |
-
display: inline; }
|
572 |
-
.inner-sidebar .cmb-row .cmb2-metabox-description,
|
573 |
-
#side-sortables .cmb-row .cmb2-metabox-description {
|
574 |
-
padding-bottom: 1.8em; }
|
575 |
-
.inner-sidebar .cmb2-metabox-title,
|
576 |
-
#side-sortables .cmb2-metabox-title {
|
577 |
-
font-size: 1.2em;
|
578 |
-
font-style: italic; }
|
579 |
-
.inner-sidebar .cmb-remove-row,
|
580 |
-
#side-sortables .cmb-remove-row {
|
581 |
-
clear: both;
|
582 |
-
padding-top: 12px;
|
583 |
-
padding-bottom: 0; }
|
584 |
-
.inner-sidebar .cmb-type-colorpicker .cmb-repeat-row .cmb-td,
|
585 |
-
#side-sortables .cmb-type-colorpicker .cmb-repeat-row .cmb-td {
|
586 |
-
width: auto;
|
587 |
-
clear: none;
|
588 |
-
float: left;
|
589 |
-
padding-top: 0; }
|
590 |
-
.inner-sidebar .cmb-type-colorpicker .cmb-repeat-row .cmb-td.cmb-remove-row,
|
591 |
-
#side-sortables .cmb-type-colorpicker .cmb-repeat-row .cmb-td.cmb-remove-row {
|
592 |
-
float: right;
|
593 |
-
margin: 0; }
|
594 |
-
.inner-sidebar .cmb2-upload-button,
|
595 |
-
#side-sortables .cmb2-upload-button {
|
596 |
-
clear: both;
|
597 |
-
margin-top: 12px; }
|
598 |
-
|
599 |
-
.cmb2-metabox .cmb-type-group {
|
600 |
-
max-width: 1000px; }
|
601 |
-
.cmb2-metabox .cmbhandle {
|
602 |
-
color: #aaa;
|
603 |
-
float: right;
|
604 |
-
width: 27px;
|
605 |
-
height: 30px;
|
606 |
-
cursor: pointer;
|
607 |
-
right: -1em;
|
608 |
-
position: relative; }
|
609 |
-
.cmb2-metabox .cmbhandle:before {
|
610 |
-
content: '\f142';
|
611 |
-
right: 12px;
|
612 |
-
font: normal 20px/1 'dashicons';
|
613 |
-
speak: none;
|
614 |
-
display: inline-block;
|
615 |
-
padding: 8px 10px;
|
616 |
-
top: 0;
|
617 |
-
position: relative;
|
618 |
-
-webkit-font-smoothing: antialiased;
|
619 |
-
-moz-osx-font-smoothing: grayscale;
|
620 |
-
text-decoration: none !important; }
|
621 |
-
.cmb2-metabox .postbox.closed .cmbhandle:before {
|
622 |
-
content: '\f140'; }
|
623 |
-
.cmb2-metabox button.dashicons-before.dashicons-no-alt.cmb-remove-group-row {
|
624 |
-
-webkit-appearance: none !important;
|
625 |
-
background: none !important;
|
626 |
-
border: none !important;
|
627 |
-
position: absolute;
|
628 |
-
left: 0;
|
629 |
-
top: .5em;
|
630 |
-
line-height: 1em;
|
631 |
-
padding: 2px 6px 3px;
|
632 |
-
opacity: .5; }
|
633 |
-
.cmb2-metabox button.dashicons-before.dashicons-no-alt.cmb-remove-group-row:not([disabled]) {
|
634 |
-
cursor: pointer;
|
635 |
-
color: #a00;
|
636 |
-
opacity: 1; }
|
637 |
-
.cmb2-metabox button.dashicons-before.dashicons-no-alt.cmb-remove-group-row:not([disabled]):hover {
|
638 |
-
color: #f00; }
|
639 |
-
|
640 |
-
/*
|
641 |
-
* jQuery UI CSS Framework 1.8.16
|
642 |
-
*
|
643 |
-
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
644 |
-
* Dual licensed under the MIT or GPL Version 2 licenses.
|
645 |
-
* http://jquery.org/license
|
646 |
-
*
|
647 |
-
* http://docs.jquery.com/UI/Theming/API
|
648 |
-
*
|
649 |
-
* WordPress Styles adopted from "jQuery UI Datepicker CSS for WordPress"
|
650 |
-
* https://github.com/stuttter/wp-datepicker-styling
|
651 |
-
*
|
652 |
-
*/
|
653 |
-
* html .cmb2-element.ui-helper-clearfix {
|
654 |
-
height: 1%; }
|
655 |
-
|
656 |
-
.cmb2-element.ui-datepicker, .cmb2-element .ui-datepicker {
|
657 |
-
padding: 0;
|
658 |
-
margin: 0;
|
659 |
-
-webkit-border-radius: 0;
|
660 |
-
-moz-border-radius: 0;
|
661 |
-
border-radius: 0;
|
662 |
-
background-color: #fff;
|
663 |
-
border: 1px solid #dfdfdf;
|
664 |
-
border-top: none;
|
665 |
-
-webkit-box-shadow: 0 3px 6px rgba(0, 0, 0, 0.075);
|
666 |
-
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.075);
|
667 |
-
min-width: 17em;
|
668 |
-
width: auto;
|
669 |
-
/* Default Color Scheme */ }
|
670 |
-
.cmb2-element.ui-datepicker *, .cmb2-element .ui-datepicker * {
|
671 |
-
padding: 0;
|
672 |
-
font-family: "Open Sans", sans-serif;
|
673 |
-
-webkit-border-radius: 0;
|
674 |
-
-moz-border-radius: 0;
|
675 |
-
border-radius: 0; }
|
676 |
-
.cmb2-element.ui-datepicker table, .cmb2-element .ui-datepicker table {
|
677 |
-
font-size: 13px;
|
678 |
-
margin: 0;
|
679 |
-
border: none;
|
680 |
-
border-collapse: collapse; }
|
681 |
-
.cmb2-element.ui-datepicker .ui-widget-header,
|
682 |
-
.cmb2-element.ui-datepicker .ui-datepicker-header, .cmb2-element .ui-datepicker .ui-widget-header,
|
683 |
-
.cmb2-element .ui-datepicker .ui-datepicker-header {
|
684 |
-
background-image: none;
|
685 |
-
border: none;
|
686 |
-
color: #fff;
|
687 |
-
font-weight: normal; }
|
688 |
-
.cmb2-element.ui-datepicker .ui-datepicker-header .ui-state-hover, .cmb2-element .ui-datepicker .ui-datepicker-header .ui-state-hover {
|
689 |
-
background: transparent;
|
690 |
-
border-color: transparent;
|
691 |
-
cursor: pointer; }
|
692 |
-
.cmb2-element.ui-datepicker .ui-datepicker-title, .cmb2-element .ui-datepicker .ui-datepicker-title {
|
693 |
-
margin: 0;
|
694 |
-
padding: 10px 0;
|
695 |
-
color: #fff;
|
696 |
-
font-size: 14px;
|
697 |
-
line-height: 14px;
|
698 |
-
text-align: center; }
|
699 |
-
.cmb2-element.ui-datepicker .ui-datepicker-title select, .cmb2-element .ui-datepicker .ui-datepicker-title select {
|
700 |
-
margin-top: -8px;
|
701 |
-
margin-bottom: -8px; }
|
702 |
-
.cmb2-element.ui-datepicker .ui-datepicker-prev,
|
703 |
-
.cmb2-element.ui-datepicker .ui-datepicker-next, .cmb2-element .ui-datepicker .ui-datepicker-prev,
|
704 |
-
.cmb2-element .ui-datepicker .ui-datepicker-next {
|
705 |
-
position: relative;
|
706 |
-
top: 0;
|
707 |
-
height: 34px;
|
708 |
-
width: 34px; }
|
709 |
-
.cmb2-element.ui-datepicker .ui-state-hover.ui-datepicker-prev,
|
710 |
-
.cmb2-element.ui-datepicker .ui-state-hover.ui-datepicker-next, .cmb2-element .ui-datepicker .ui-state-hover.ui-datepicker-prev,
|
711 |
-
.cmb2-element .ui-datepicker .ui-state-hover.ui-datepicker-next {
|
712 |
-
border: none; }
|
713 |
-
.cmb2-element.ui-datepicker .ui-datepicker-prev,
|
714 |
-
.cmb2-element.ui-datepicker .ui-datepicker-prev-hover, .cmb2-element .ui-datepicker .ui-datepicker-prev,
|
715 |
-
.cmb2-element .ui-datepicker .ui-datepicker-prev-hover {
|
716 |
-
left: 0; }
|
717 |
-
.cmb2-element.ui-datepicker .ui-datepicker-next,
|
718 |
-
.cmb2-element.ui-datepicker .ui-datepicker-next-hover, .cmb2-element .ui-datepicker .ui-datepicker-next,
|
719 |
-
.cmb2-element .ui-datepicker .ui-datepicker-next-hover {
|
720 |
-
right: 0; }
|
721 |
-
.cmb2-element.ui-datepicker .ui-datepicker-next span,
|
722 |
-
.cmb2-element.ui-datepicker .ui-datepicker-prev span, .cmb2-element .ui-datepicker .ui-datepicker-next span,
|
723 |
-
.cmb2-element .ui-datepicker .ui-datepicker-prev span {
|
724 |
-
display: none; }
|
725 |
-
.cmb2-element.ui-datepicker .ui-datepicker-prev, .cmb2-element .ui-datepicker .ui-datepicker-prev {
|
726 |
-
float: left; }
|
727 |
-
.cmb2-element.ui-datepicker .ui-datepicker-next, .cmb2-element .ui-datepicker .ui-datepicker-next {
|
728 |
-
float: right; }
|
729 |
-
.cmb2-element.ui-datepicker .ui-datepicker-prev:before,
|
730 |
-
.cmb2-element.ui-datepicker .ui-datepicker-next:before, .cmb2-element .ui-datepicker .ui-datepicker-prev:before,
|
731 |
-
.cmb2-element .ui-datepicker .ui-datepicker-next:before {
|
732 |
-
font: normal 20px/34px 'dashicons';
|
733 |
-
padding-left: 7px;
|
734 |
-
color: #fff;
|
735 |
-
speak: none;
|
736 |
-
-webkit-font-smoothing: antialiased;
|
737 |
-
-moz-osx-font-smoothing: grayscale;
|
738 |
-
width: 34px;
|
739 |
-
height: 34px; }
|
740 |
-
.cmb2-element.ui-datepicker .ui-datepicker-prev:before, .cmb2-element .ui-datepicker .ui-datepicker-prev:before {
|
741 |
-
content: '\f341'; }
|
742 |
-
.cmb2-element.ui-datepicker .ui-datepicker-next:before, .cmb2-element .ui-datepicker .ui-datepicker-next:before {
|
743 |
-
content: '\f345'; }
|
744 |
-
.cmb2-element.ui-datepicker .ui-datepicker-prev-hover:before,
|
745 |
-
.cmb2-element.ui-datepicker .ui-datepicker-next-hover:before, .cmb2-element .ui-datepicker .ui-datepicker-prev-hover:before,
|
746 |
-
.cmb2-element .ui-datepicker .ui-datepicker-next-hover:before {
|
747 |
-
opacity: 0.7; }
|
748 |
-
.cmb2-element.ui-datepicker select.ui-datepicker-month,
|
749 |
-
.cmb2-element.ui-datepicker select.ui-datepicker-year, .cmb2-element .ui-datepicker select.ui-datepicker-month,
|
750 |
-
.cmb2-element .ui-datepicker select.ui-datepicker-year {
|
751 |
-
width: 33%;
|
752 |
-
background: transparent;
|
753 |
-
border-color: transparent;
|
754 |
-
box-shadow: none;
|
755 |
-
color: #fff; }
|
756 |
-
.cmb2-element.ui-datepicker select.ui-datepicker-month option,
|
757 |
-
.cmb2-element.ui-datepicker select.ui-datepicker-year option, .cmb2-element .ui-datepicker select.ui-datepicker-month option,
|
758 |
-
.cmb2-element .ui-datepicker select.ui-datepicker-year option {
|
759 |
-
color: #333; }
|
760 |
-
.cmb2-element.ui-datepicker thead, .cmb2-element .ui-datepicker thead {
|
761 |
-
color: #fff;
|
762 |
-
font-weight: 600; }
|
763 |
-
.cmb2-element.ui-datepicker thead th, .cmb2-element .ui-datepicker thead th {
|
764 |
-
font-weight: normal; }
|
765 |
-
.cmb2-element.ui-datepicker th, .cmb2-element .ui-datepicker th {
|
766 |
-
padding: 10px; }
|
767 |
-
.cmb2-element.ui-datepicker td, .cmb2-element .ui-datepicker td {
|
768 |
-
padding: 0;
|
769 |
-
border: 1px solid #f4f4f4; }
|
770 |
-
.cmb2-element.ui-datepicker td.ui-datepicker-other-month, .cmb2-element .ui-datepicker td.ui-datepicker-other-month {
|
771 |
-
border: transparent; }
|
772 |
-
.cmb2-element.ui-datepicker td.ui-datepicker-week-end, .cmb2-element .ui-datepicker td.ui-datepicker-week-end {
|
773 |
-
background-color: #f4f4f4;
|
774 |
-
border: 1px solid #f4f4f4; }
|
775 |
-
.cmb2-element.ui-datepicker td.ui-datepicker-week-end.ui-datepicker-today, .cmb2-element .ui-datepicker td.ui-datepicker-week-end.ui-datepicker-today {
|
776 |
-
-webkit-box-shadow: inset 0px 0px 1px 0px rgba(0, 0, 0, 0.1);
|
777 |
-
-moz-box-shadow: inset 0px 0px 1px 0px rgba(0, 0, 0, 0.1);
|
778 |
-
box-shadow: inset 0px 0px 1px 0px rgba(0, 0, 0, 0.1); }
|
779 |
-
.cmb2-element.ui-datepicker td.ui-datepicker-today, .cmb2-element .ui-datepicker td.ui-datepicker-today {
|
780 |
-
background-color: #f0f0c0; }
|
781 |
-
.cmb2-element.ui-datepicker td.ui-datepicker-current-day, .cmb2-element .ui-datepicker td.ui-datepicker-current-day {
|
782 |
-
background: #bbdd88; }
|
783 |
-
.cmb2-element.ui-datepicker td .ui-state-default, .cmb2-element .ui-datepicker td .ui-state-default {
|
784 |
-
background: transparent;
|
785 |
-
border: none;
|
786 |
-
text-align: center;
|
787 |
-
text-decoration: none;
|
788 |
-
width: auto;
|
789 |
-
display: block;
|
790 |
-
padding: 5px 10px;
|
791 |
-
font-weight: normal;
|
792 |
-
color: #444; }
|
793 |
-
.cmb2-element.ui-datepicker td.ui-state-disabled .ui-state-default, .cmb2-element .ui-datepicker td.ui-state-disabled .ui-state-default {
|
794 |
-
opacity: 0.5; }
|
795 |
-
.cmb2-element.ui-datepicker .ui-widget-header,
|
796 |
-
.cmb2-element.ui-datepicker .ui-datepicker-header, .cmb2-element .ui-datepicker .ui-widget-header,
|
797 |
-
.cmb2-element .ui-datepicker .ui-datepicker-header {
|
798 |
-
background: #00a0d2; }
|
799 |
-
.cmb2-element.ui-datepicker thead, .cmb2-element .ui-datepicker thead {
|
800 |
-
background: #32373c; }
|
801 |
-
.cmb2-element.ui-datepicker td .ui-state-hover, .cmb2-element.ui-datepicker td .ui-state-active, .cmb2-element .ui-datepicker td .ui-state-hover, .cmb2-element .ui-datepicker td .ui-state-active {
|
802 |
-
background: #0073aa;
|
803 |
-
color: #fff; }
|
804 |
-
.cmb2-element.ui-datepicker .ui-timepicker-div, .cmb2-element .ui-datepicker .ui-timepicker-div {
|
805 |
-
font-size: 14px; }
|
806 |
-
.cmb2-element.ui-datepicker .ui-timepicker-div dl, .cmb2-element .ui-datepicker .ui-timepicker-div dl {
|
807 |
-
text-align: left;
|
808 |
-
padding: 0 .6em; }
|
809 |
-
.cmb2-element.ui-datepicker .ui-timepicker-div dl dt, .cmb2-element .ui-datepicker .ui-timepicker-div dl dt {
|
810 |
-
float: left;
|
811 |
-
clear: left;
|
812 |
-
padding: 0 0 0 5px; }
|
813 |
-
.cmb2-element.ui-datepicker .ui-timepicker-div dl dd, .cmb2-element .ui-datepicker .ui-timepicker-div dl dd {
|
814 |
-
margin: 0 10px 10px 40%; }
|
815 |
-
.cmb2-element.ui-datepicker .ui-timepicker-div dl dd select, .cmb2-element .ui-datepicker .ui-timepicker-div dl dd select {
|
816 |
-
width: 100%; }
|
817 |
-
.cmb2-element.ui-datepicker .ui-timepicker-div + .ui-datepicker-buttonpane, .cmb2-element .ui-datepicker .ui-timepicker-div + .ui-datepicker-buttonpane {
|
818 |
-
padding: .6em;
|
819 |
-
text-align: left; }
|
820 |
-
.cmb2-element.ui-datepicker .ui-timepicker-div + .ui-datepicker-buttonpane .button-primary, .cmb2-element.ui-datepicker .ui-timepicker-div + .ui-datepicker-buttonpane .button-secondary, .cmb2-element .ui-datepicker .ui-timepicker-div + .ui-datepicker-buttonpane .button-primary, .cmb2-element .ui-datepicker .ui-timepicker-div + .ui-datepicker-buttonpane .button-secondary {
|
821 |
-
padding: 0 10px 1px;
|
822 |
-
-webkit-border-radius: 3px;
|
823 |
-
-moz-border-radius: 3px;
|
824 |
-
border-radius: 3px;
|
825 |
-
margin: 0 .6em .4em .4em; }
|
826 |
-
|
827 |
-
.admin-color-fresh .cmb2-element.ui-datepicker .ui-widget-header,
|
828 |
-
.admin-color-fresh .cmb2-element.ui-datepicker .ui-datepicker-header, .admin-color-fresh .cmb2-element .ui-datepicker .ui-widget-header,
|
829 |
-
.admin-color-fresh .cmb2-element .ui-datepicker .ui-datepicker-header {
|
830 |
-
background: #00a0d2; }
|
831 |
-
.admin-color-fresh .cmb2-element.ui-datepicker thead, .admin-color-fresh .cmb2-element .ui-datepicker thead {
|
832 |
-
background: #32373c; }
|
833 |
-
.admin-color-fresh .cmb2-element.ui-datepicker td .ui-state-hover, .admin-color-fresh .cmb2-element .ui-datepicker td .ui-state-hover {
|
834 |
-
background: #0073aa;
|
835 |
-
color: #fff; }
|
836 |
-
|
837 |
-
.admin-color-blue .cmb2-element.ui-datepicker .ui-widget-header,
|
838 |
-
.admin-color-blue .cmb2-element.ui-datepicker .ui-datepicker-header, .admin-color-blue .cmb2-element .ui-datepicker .ui-widget-header,
|
839 |
-
.admin-color-blue .cmb2-element .ui-datepicker .ui-datepicker-header {
|
840 |
-
background: #52accc; }
|
841 |
-
.admin-color-blue .cmb2-element.ui-datepicker thead, .admin-color-blue .cmb2-element .ui-datepicker thead {
|
842 |
-
background: #4796b3; }
|
843 |
-
.admin-color-blue .cmb2-element.ui-datepicker td .ui-state-hover, .admin-color-blue .cmb2-element.ui-datepicker td .ui-state-active, .admin-color-blue .cmb2-element .ui-datepicker td .ui-state-hover, .admin-color-blue .cmb2-element .ui-datepicker td .ui-state-active {
|
844 |
-
background: #096484;
|
845 |
-
color: #fff; }
|
846 |
-
.admin-color-blue .cmb2-element.ui-datepicker td.ui-datepicker-today, .admin-color-blue .cmb2-element .ui-datepicker td.ui-datepicker-today {
|
847 |
-
background: #eee; }
|
848 |
-
|
849 |
-
.admin-color-coffee .cmb2-element.ui-datepicker .ui-widget-header,
|
850 |
-
.admin-color-coffee .cmb2-element.ui-datepicker .ui-datepicker-header, .admin-color-coffee .cmb2-element .ui-datepicker .ui-widget-header,
|
851 |
-
.admin-color-coffee .cmb2-element .ui-datepicker .ui-datepicker-header {
|
852 |
-
background: #59524c; }
|
853 |
-
.admin-color-coffee .cmb2-element.ui-datepicker thead, .admin-color-coffee .cmb2-element .ui-datepicker thead {
|
854 |
-
background: #46403c; }
|
855 |
-
.admin-color-coffee .cmb2-element.ui-datepicker td .ui-state-hover, .admin-color-coffee .cmb2-element .ui-datepicker td .ui-state-hover {
|
856 |
-
background: #c7a589;
|
857 |
-
color: #fff; }
|
858 |
-
|
859 |
-
.admin-color-ectoplasm .cmb2-element.ui-datepicker .ui-widget-header,
|
860 |
-
.admin-color-ectoplasm .cmb2-element.ui-datepicker .ui-datepicker-header, .admin-color-ectoplasm .cmb2-element .ui-datepicker .ui-widget-header,
|
861 |
-
.admin-color-ectoplasm .cmb2-element .ui-datepicker .ui-datepicker-header {
|
862 |
-
background: #523f6d; }
|
863 |
-
.admin-color-ectoplasm .cmb2-element.ui-datepicker thead, .admin-color-ectoplasm .cmb2-element .ui-datepicker thead {
|
864 |
-
background: #413256; }
|
865 |
-
.admin-color-ectoplasm .cmb2-element.ui-datepicker td .ui-state-hover, .admin-color-ectoplasm .cmb2-element .ui-datepicker td .ui-state-hover {
|
866 |
-
background: #a3b745;
|
867 |
-
color: #fff; }
|
868 |
-
|
869 |
-
.admin-color-midnight .cmb2-element.ui-datepicker .ui-widget-header,
|
870 |
-
.admin-color-midnight .cmb2-element.ui-datepicker .ui-datepicker-header, .admin-color-midnight .cmb2-element .ui-datepicker .ui-widget-header,
|
871 |
-
.admin-color-midnight .cmb2-element .ui-datepicker .ui-datepicker-header {
|
872 |
-
background: #363b3f; }
|
873 |
-
.admin-color-midnight .cmb2-element.ui-datepicker thead, .admin-color-midnight .cmb2-element .ui-datepicker thead {
|
874 |
-
background: #26292c; }
|
875 |
-
.admin-color-midnight .cmb2-element.ui-datepicker td .ui-state-hover, .admin-color-midnight .cmb2-element .ui-datepicker td .ui-state-hover {
|
876 |
-
background: #e14d43;
|
877 |
-
color: #fff; }
|
878 |
-
|
879 |
-
.admin-color-ocean .cmb2-element.ui-datepicker .ui-widget-header,
|
880 |
-
.admin-color-ocean .cmb2-element.ui-datepicker .ui-datepicker-header, .admin-color-ocean .cmb2-element .ui-datepicker .ui-widget-header,
|
881 |
-
.admin-color-ocean .cmb2-element .ui-datepicker .ui-datepicker-header {
|
882 |
-
background: #738e96; }
|
883 |
-
.admin-color-ocean .cmb2-element.ui-datepicker thead, .admin-color-ocean .cmb2-element .ui-datepicker thead {
|
884 |
-
background: #627c83; }
|
885 |
-
.admin-color-ocean .cmb2-element.ui-datepicker td .ui-state-hover, .admin-color-ocean .cmb2-element .ui-datepicker td .ui-state-hover {
|
886 |
-
background: #9ebaa0;
|
887 |
-
color: #fff; }
|
888 |
-
|
889 |
-
.admin-color-sunrise .cmb2-element.ui-datepicker .ui-widget-header,
|
890 |
-
.admin-color-sunrise .cmb2-element.ui-datepicker .ui-datepicker-header,
|
891 |
-
.admin-color-sunrise .cmb2-element.ui-datepicker .ui-datepicker-header .ui-state-hover, .admin-color-sunrise .cmb2-element .ui-datepicker .ui-widget-header,
|
892 |
-
.admin-color-sunrise .cmb2-element .ui-datepicker .ui-datepicker-header,
|
893 |
-
.admin-color-sunrise .cmb2-element .ui-datepicker .ui-datepicker-header .ui-state-hover {
|
894 |
-
background: #cf4944; }
|
895 |
-
.admin-color-sunrise .cmb2-element.ui-datepicker th, .admin-color-sunrise .cmb2-element .ui-datepicker th {
|
896 |
-
border-color: #be3631;
|
897 |
-
background: #be3631; }
|
898 |
-
.admin-color-sunrise .cmb2-element.ui-datepicker td .ui-state-hover, .admin-color-sunrise .cmb2-element .ui-datepicker td .ui-state-hover {
|
899 |
-
background: #dd823b;
|
900 |
-
color: #fff; }
|
901 |
-
|
902 |
-
.admin-color-light .cmb2-element.ui-datepicker .ui-widget-header,
|
903 |
-
.admin-color-light .cmb2-element.ui-datepicker .ui-datepicker-header, .admin-color-light .cmb2-element .ui-datepicker .ui-widget-header,
|
904 |
-
.admin-color-light .cmb2-element .ui-datepicker .ui-datepicker-header {
|
905 |
-
background: #e5e5e5; }
|
906 |
-
.admin-color-light .cmb2-element.ui-datepicker select.ui-datepicker-month,
|
907 |
-
.admin-color-light .cmb2-element.ui-datepicker select.ui-datepicker-year, .admin-color-light .cmb2-element .ui-datepicker select.ui-datepicker-month,
|
908 |
-
.admin-color-light .cmb2-element .ui-datepicker select.ui-datepicker-year {
|
909 |
-
color: #555; }
|
910 |
-
.admin-color-light .cmb2-element.ui-datepicker thead, .admin-color-light .cmb2-element .ui-datepicker thead {
|
911 |
-
background: #888; }
|
912 |
-
.admin-color-light .cmb2-element.ui-datepicker .ui-datepicker-title,
|
913 |
-
.admin-color-light .cmb2-element.ui-datepicker td .ui-state-default,
|
914 |
-
.admin-color-light .cmb2-element.ui-datepicker .ui-datepicker-prev:before,
|
915 |
-
.admin-color-light .cmb2-element.ui-datepicker .ui-datepicker-next:before, .admin-color-light .cmb2-element .ui-datepicker .ui-datepicker-title,
|
916 |
-
.admin-color-light .cmb2-element .ui-datepicker td .ui-state-default,
|
917 |
-
.admin-color-light .cmb2-element .ui-datepicker .ui-datepicker-prev:before,
|
918 |
-
.admin-color-light .cmb2-element .ui-datepicker .ui-datepicker-next:before {
|
919 |
-
color: #555; }
|
920 |
-
.admin-color-light .cmb2-element.ui-datepicker td .ui-state-hover, .admin-color-light .cmb2-element.ui-datepicker td .ui-state-active, .admin-color-light .cmb2-element .ui-datepicker td .ui-state-hover, .admin-color-light .cmb2-element .ui-datepicker td .ui-state-active {
|
921 |
-
background: #ccc; }
|
922 |
-
.admin-color-light .cmb2-element.ui-datepicker td.ui-datepicker-today, .admin-color-light .cmb2-element .ui-datepicker td.ui-datepicker-today {
|
923 |
-
background: #eee; }
|
924 |
-
|
925 |
-
.admin-color-bbp-evergreen .cmb2-element.ui-datepicker .ui-widget-header,
|
926 |
-
.admin-color-bbp-evergreen .cmb2-element.ui-datepicker .ui-datepicker-header, .admin-color-bbp-evergreen .cmb2-element .ui-datepicker .ui-widget-header,
|
927 |
-
.admin-color-bbp-evergreen .cmb2-element .ui-datepicker .ui-datepicker-header {
|
928 |
-
background: #56b274; }
|
929 |
-
.admin-color-bbp-evergreen .cmb2-element.ui-datepicker thead, .admin-color-bbp-evergreen .cmb2-element .ui-datepicker thead {
|
930 |
-
background: #36533f; }
|
931 |
-
.admin-color-bbp-evergreen .cmb2-element.ui-datepicker td .ui-state-hover, .admin-color-bbp-evergreen .cmb2-element .ui-datepicker td .ui-state-hover {
|
932 |
-
background: #446950;
|
933 |
-
color: #fff; }
|
934 |
-
|
935 |
-
.admin-color-bbp-mint .cmb2-element.ui-datepicker .ui-widget-header,
|
936 |
-
.admin-color-bbp-mint .cmb2-element.ui-datepicker .ui-datepicker-header, .admin-color-bbp-mint .cmb2-element .ui-datepicker .ui-widget-header,
|
937 |
-
.admin-color-bbp-mint .cmb2-element .ui-datepicker .ui-datepicker-header {
|
938 |
-
background: #4ca26a; }
|
939 |
-
.admin-color-bbp-mint .cmb2-element.ui-datepicker thead, .admin-color-bbp-mint .cmb2-element .ui-datepicker thead {
|
940 |
-
background: #4f6d59; }
|
941 |
-
.admin-color-bbp-mint .cmb2-element.ui-datepicker td .ui-state-hover, .admin-color-bbp-mint .cmb2-element .ui-datepicker td .ui-state-hover {
|
942 |
-
background: #5fb37c;
|
943 |
-
color: #fff; }
|
1 |
+
/**
|
2 |
+
* CMB2 Styling
|
3 |
+
*/
|
4 |
+
/*--------------------------------------------------------------
|
5 |
+
Main Wrap
|
6 |
+
--------------------------------------------------------------*/
|
7 |
+
.cmb2-wrap {
|
8 |
+
margin: 0; }
|
9 |
+
.cmb2-wrap input,
|
10 |
+
.cmb2-wrap textarea {
|
11 |
+
font-size: 14px;
|
12 |
+
max-width: 100%;
|
13 |
+
padding: 5px; }
|
14 |
+
.cmb2-wrap input[type=text].cmb2-oembed {
|
15 |
+
width: 100%; }
|
16 |
+
.cmb2-wrap textarea {
|
17 |
+
width: 500px; }
|
18 |
+
.cmb2-wrap textarea.cmb2-textarea-code {
|
19 |
+
font-family: "Courier 10 Pitch", Courier, monospace;
|
20 |
+
line-height: 16px; }
|
21 |
+
.cmb2-wrap input.cmb2-text-small, .cmb2-wrap input.cmb2-timepicker {
|
22 |
+
width: 100px; }
|
23 |
+
.cmb2-wrap input.cmb2-text-money {
|
24 |
+
width: 90px; }
|
25 |
+
.cmb2-wrap input.cmb2-text-medium {
|
26 |
+
width: 230px; }
|
27 |
+
.cmb2-wrap input.cmb2-upload-file {
|
28 |
+
width: 65%; }
|
29 |
+
.cmb2-wrap input.ed_button {
|
30 |
+
padding: 2px 4px; }
|
31 |
+
.cmb2-wrap input:not([type="hidden"]) + input,
|
32 |
+
.cmb2-wrap input:not([type="hidden"]) + .button-secondary,
|
33 |
+
.cmb2-wrap input:not([type="hidden"]) + select {
|
34 |
+
margin-left: 20px; }
|
35 |
+
.cmb2-wrap ul {
|
36 |
+
margin: 0; }
|
37 |
+
.cmb2-wrap li {
|
38 |
+
font-size: 14px;
|
39 |
+
line-height: 16px;
|
40 |
+
margin: 1px 0 5px 0; }
|
41 |
+
.cmb2-wrap select {
|
42 |
+
font-size: 14px;
|
43 |
+
margin-top: 3px; }
|
44 |
+
.cmb2-wrap input:focus,
|
45 |
+
.cmb2-wrap textarea:focus {
|
46 |
+
background: #fffff8; }
|
47 |
+
.cmb2-wrap input[type="radio"] {
|
48 |
+
margin: 0 5px 0 0;
|
49 |
+
padding: 0; }
|
50 |
+
.cmb2-wrap input[type="checkbox"] {
|
51 |
+
margin: 0 5px 0 0;
|
52 |
+
padding: 0; }
|
53 |
+
.cmb2-wrap button,
|
54 |
+
.cmb2-wrap .button-secondary {
|
55 |
+
white-space: nowrap; }
|
56 |
+
.cmb2-wrap .mceLayout {
|
57 |
+
border: 1px solid #e9e9e9 !important; }
|
58 |
+
.cmb2-wrap .mceIframeContainer {
|
59 |
+
background: #fff; }
|
60 |
+
.cmb2-wrap .meta_mce {
|
61 |
+
width: 97%; }
|
62 |
+
.cmb2-wrap .meta_mce textarea {
|
63 |
+
width: 100%; }
|
64 |
+
.cmb2-wrap .wp-color-result,
|
65 |
+
.cmb2-wrap .wp-picker-input-wrap {
|
66 |
+
vertical-align: middle; }
|
67 |
+
.cmb2-wrap .wp-color-result,
|
68 |
+
.cmb2-wrap .wp-picker-container {
|
69 |
+
margin: 0 10px 0 0; }
|
70 |
+
.cmb2-wrap .cmb-row {
|
71 |
+
margin: 0; }
|
72 |
+
.cmb2-wrap .cmb-row:after {
|
73 |
+
content: '';
|
74 |
+
clear: both;
|
75 |
+
display: block;
|
76 |
+
width: 100%; }
|
77 |
+
.cmb2-wrap .cmb-row.cmb-repeat-row {
|
78 |
+
padding: 1.8em 0 0; }
|
79 |
+
.cmb2-wrap .cmb-row.cmb-repeat-row:first-of-type {
|
80 |
+
padding: 0; }
|
81 |
+
.cmb2-wrap .cmb-row.cmb-repeat .cmb2-metabox-description {
|
82 |
+
padding-top: 0;
|
83 |
+
padding-bottom: 1.8em; }
|
84 |
+
|
85 |
+
.cmb2-metabox {
|
86 |
+
clear: both;
|
87 |
+
margin: 0; }
|
88 |
+
.cmb2-metabox > .cmb-row:first-of-type > .cmb-td,
|
89 |
+
.cmb2-metabox > .cmb-row:first-of-type > .cmb-th,
|
90 |
+
.cmb2-metabox .cmb-field-list > .cmb-row:first-of-type > .cmb-td,
|
91 |
+
.cmb2-metabox .cmb-field-list > .cmb-row:first-of-type > .cmb-th {
|
92 |
+
border: 0; }
|
93 |
+
.cmb2-metabox > .cmb-row .cmb-repeat-table .cmb-row > .cmb-td {
|
94 |
+
padding-right: 20px;
|
95 |
+
box-sizing: border-box;
|
96 |
+
float: left; }
|
97 |
+
|
98 |
+
.cmb-add-row {
|
99 |
+
margin: 1.8em 0 0; }
|
100 |
+
|
101 |
+
.cmb-nested .cmb-td,
|
102 |
+
.cmb-repeatable-group .cmb-th,
|
103 |
+
.cmb-repeatable-group:first-of-type {
|
104 |
+
border: 0; }
|
105 |
+
|
106 |
+
.cmb-row:last-of-type,
|
107 |
+
.cmb2-wrap .cmb-row:last-of-type,
|
108 |
+
.cmb-repeatable-group:last-of-type {
|
109 |
+
border-bottom: 0; }
|
110 |
+
|
111 |
+
.cmb-repeatable-grouping {
|
112 |
+
border: 1px solid #e9e9e9;
|
113 |
+
padding: 0 1em;
|
114 |
+
max-width: 1000px; }
|
115 |
+
.cmb-repeatable-grouping.cmb-row {
|
116 |
+
margin: 0 0 0.8em; }
|
117 |
+
|
118 |
+
.cmb-th {
|
119 |
+
color: #222222;
|
120 |
+
float: left;
|
121 |
+
font-weight: 600;
|
122 |
+
line-height: 1.3;
|
123 |
+
padding: 20px 10px 20px 0;
|
124 |
+
vertical-align: top;
|
125 |
+
width: 200px; }
|
126 |
+
@media (max-width: 450px) {
|
127 |
+
.cmb-th {
|
128 |
+
font-size: 1.2em;
|
129 |
+
display: block;
|
130 |
+
float: none;
|
131 |
+
padding-bottom: 1em;
|
132 |
+
text-align: left;
|
133 |
+
width: 100%; }
|
134 |
+
.cmb-th label {
|
135 |
+
display: block;
|
136 |
+
margin-top: 0em;
|
137 |
+
padding-bottom: 5px; }
|
138 |
+
.cmb-th label:after {
|
139 |
+
border-bottom: 1px solid #e9e9e9;
|
140 |
+
content: '';
|
141 |
+
clear: both;
|
142 |
+
display: block;
|
143 |
+
padding-top: .4em; } }
|
144 |
+
|
145 |
+
.cmb-td {
|
146 |
+
line-height: 1.3;
|
147 |
+
max-width: 100%;
|
148 |
+
padding: 15px 10px;
|
149 |
+
vertical-align: middle; }
|
150 |
+
|
151 |
+
.cmb-type-title .cmb-td {
|
152 |
+
padding: 0; }
|
153 |
+
|
154 |
+
.cmb-th label {
|
155 |
+
display: block;
|
156 |
+
padding: 5px 0; }
|
157 |
+
|
158 |
+
.cmb-th + .cmb-td {
|
159 |
+
float: left; }
|
160 |
+
|
161 |
+
.cmb-td .cmb-td {
|
162 |
+
padding-bottom: 1em; }
|
163 |
+
|
164 |
+
.cmb-remove-row {
|
165 |
+
text-align: right; }
|
166 |
+
|
167 |
+
.empty-row.hidden {
|
168 |
+
display: none; }
|
169 |
+
|
170 |
+
.cmb-repeatable-group .cmb-th {
|
171 |
+
padding: 5px; }
|
172 |
+
.cmb-repeatable-group .cmb-group-title {
|
173 |
+
background-color: #e9e9e9;
|
174 |
+
padding: 8px 12px 8px 2.2em;
|
175 |
+
margin: 0 -1em;
|
176 |
+
min-height: 1.5em;
|
177 |
+
font-size: 14px;
|
178 |
+
line-height: 1.4; }
|
179 |
+
.cmb-repeatable-group .cmb-group-title h4 {
|
180 |
+
border: 0;
|
181 |
+
margin: 0;
|
182 |
+
font-size: 1.2em;
|
183 |
+
font-weight: 500;
|
184 |
+
padding: 0.5em 0.75em; }
|
185 |
+
.cmb-repeatable-group .cmb-group-title .cmb-th {
|
186 |
+
display: block;
|
187 |
+
width: 100%; }
|
188 |
+
.cmb-repeatable-group .cmb-group-description .cmb-th {
|
189 |
+
font-size: 1.2em;
|
190 |
+
display: block;
|
191 |
+
float: none;
|
192 |
+
padding-bottom: 1em;
|
193 |
+
text-align: left;
|
194 |
+
width: 100%; }
|
195 |
+
.cmb-repeatable-group .cmb-group-description .cmb-th label {
|
196 |
+
display: block;
|
197 |
+
margin-top: 0em;
|
198 |
+
padding-bottom: 5px; }
|
199 |
+
.cmb-repeatable-group .cmb-group-description .cmb-th label:after {
|
200 |
+
border-bottom: 1px solid #e9e9e9;
|
201 |
+
content: '';
|
202 |
+
clear: both;
|
203 |
+
display: block;
|
204 |
+
padding-top: .4em; }
|
205 |
+
.cmb-repeatable-group .cmb-shift-rows {
|
206 |
+
font-size: 1em;
|
207 |
+
margin-right: 1em;
|
208 |
+
text-decoration: none; }
|
209 |
+
.cmb-repeatable-group .cmb-shift-rows .dashicons {
|
210 |
+
font-size: 1.5em;
|
211 |
+
height: 1.5em;
|
212 |
+
line-height: 1.2em;
|
213 |
+
width: 1em; }
|
214 |
+
.cmb-repeatable-group .cmb-shift-rows .dashicons.dashicons-arrow-down-alt2 {
|
215 |
+
line-height: 1.3em; }
|
216 |
+
.cmb-repeatable-group .cmb2-upload-button {
|
217 |
+
float: right; }
|
218 |
+
|
219 |
+
p.cmb2-metabox-description {
|
220 |
+
color: #aaaaaa;
|
221 |
+
font-style: italic;
|
222 |
+
margin: 0;
|
223 |
+
padding-top: .5em; }
|
224 |
+
|
225 |
+
span.cmb2-metabox-description {
|
226 |
+
color: #aaaaaa;
|
227 |
+
font-style: italic; }
|
228 |
+
|
229 |
+
.cmb2-metabox-title {
|
230 |
+
margin: 0 0 5px 0;
|
231 |
+
padding: 5px 0 0 0;
|
232 |
+
font-size: 14px; }
|
233 |
+
|
234 |
+
.cmb-inline ul {
|
235 |
+
padding: 4px 0 0 0; }
|
236 |
+
|
237 |
+
.cmb-inline li {
|
238 |
+
display: inline-block;
|
239 |
+
padding-right: 18px; }
|
240 |
+
|
241 |
+
.cmb-type-textarea-code pre {
|
242 |
+
margin: 0; }
|
243 |
+
|
244 |
+
.cmb2-media-status .img-status {
|
245 |
+
clear: none;
|
246 |
+
display: inline-block;
|
247 |
+
vertical-align: middle;
|
248 |
+
margin-right: 10px;
|
249 |
+
width: auto; }
|
250 |
+
.cmb2-media-status .img-status img {
|
251 |
+
max-width: 350px;
|
252 |
+
height: auto; }
|
253 |
+
.cmb2-media-status .img-status img,
|
254 |
+
.cmb2-media-status .embed-status {
|
255 |
+
background: #ffffff;
|
256 |
+
border: 1px solid #e9e9e9;
|
257 |
+
border-radius: 2px;
|
258 |
+
-moz-border-radius: 2px;
|
259 |
+
margin: 15px 0 0 0;
|
260 |
+
padding: 5px; }
|
261 |
+
.cmb2-media-status .embed-status {
|
262 |
+
float: left;
|
263 |
+
max-width: 800px; }
|
264 |
+
.cmb2-media-status .img-status, .cmb2-media-status .embed-status {
|
265 |
+
position: relative; }
|
266 |
+
.cmb2-media-status .img-status .cmb2-remove-file-button, .cmb2-media-status .embed-status .cmb2-remove-file-button {
|
267 |
+
background: url(../images/ico-delete.png);
|
268 |
+
height: 16px;
|
269 |
+
left: -5px;
|
270 |
+
position: absolute;
|
271 |
+
text-indent: -9999px;
|
272 |
+
top: -5px;
|
273 |
+
width: 16px; }
|
274 |
+
.cmb2-media-status .img-status .cmb2-remove-file-button {
|
275 |
+
top: 10px; }
|
276 |
+
.cmb2-media-status .img-status img, .cmb2-media-status .file-status > span {
|
277 |
+
cursor: pointer; }
|
278 |
+
|
279 |
+
.cmb-type-file-list .cmb2-media-status .img-status {
|
280 |
+
clear: none;
|
281 |
+
vertical-align: middle;
|
282 |
+
width: auto;
|
283 |
+
margin-right: 10px;
|
284 |
+
margin-bottom: 10px;
|
285 |
+
margin-top: 0; }
|
286 |
+
|
287 |
+
.cmb-attach-list li {
|
288 |
+
clear: both;
|
289 |
+
display: inline-block;
|
290 |
+
width: 100%;
|
291 |
+
margin-top: 5px;
|
292 |
+
margin-bottom: 10px; }
|
293 |
+
.cmb-attach-list li img {
|
294 |
+
cursor: move;
|
295 |
+
float: left;
|
296 |
+
margin-right: 10px; }
|
297 |
+
|
298 |
+
.cmb2-remove-wrapper {
|
299 |
+
margin: 0; }
|
300 |
+
|
301 |
+
.child-cmb2 .cmb-th {
|
302 |
+
text-align: left; }
|
303 |
+
|
304 |
+
@media (max-width: 450px) {
|
305 |
+
.cmb-th,
|
306 |
+
.cmb-td,
|
307 |
+
.cmb-th + .cmb-td {
|
308 |
+
display: block;
|
309 |
+
float: none;
|
310 |
+
width: 100%; } }
|
311 |
+
/*--------------------------------------------------------------
|
312 |
+
Post Metaboxes
|
313 |
+
--------------------------------------------------------------*/
|
314 |
+
#poststuff .cmb-group-title {
|
315 |
+
margin-left: -1em;
|
316 |
+
margin-right: -1em;
|
317 |
+
min-height: 1.5em; }
|
318 |
+
|
319 |
+
#poststuff .repeatable .cmb-group-title {
|
320 |
+
padding-left: 2.2em; }
|
321 |
+
|
322 |
+
.cmb2-postbox .cmb2-wrap, .cmb-type-group .cmb2-wrap {
|
323 |
+
margin: 0; }
|
324 |
+
.cmb2-postbox .cmb2-wrap > .cmb-field-list > .cmb-row, .cmb-type-group .cmb2-wrap > .cmb-field-list > .cmb-row {
|
325 |
+
padding: 1.8em 0; }
|
326 |
+
.cmb2-postbox .cmb2-wrap input[type=text].cmb2-oembed, .cmb-type-group .cmb2-wrap input[type=text].cmb2-oembed {
|
327 |
+
width: 100%; }
|
328 |
+
.cmb2-postbox .cmb-row, .cmb-type-group .cmb-row {
|
329 |
+
padding: 0 0 1.8em;
|
330 |
+
margin: 0 0 0.8em; }
|
331 |
+
.cmb2-postbox .cmb-row .cmbhandle, .cmb-type-group .cmb-row .cmbhandle {
|
332 |
+
right: -1em;
|
333 |
+
position: relative; }
|
334 |
+
.cmb2-postbox .cmb-repeatable-grouping, .cmb-type-group .cmb-repeatable-grouping {
|
335 |
+
padding: 0 1em;
|
336 |
+
max-width: 100%;
|
337 |
+
min-width: 1px !important; }
|
338 |
+
.cmb2-postbox .cmb-repeatable-group > .cmb-row, .cmb-type-group .cmb-repeatable-group > .cmb-row {
|
339 |
+
padding-bottom: 0; }
|
340 |
+
.cmb2-postbox .cmb-th, .cmb-type-group .cmb-th {
|
341 |
+
width: 18%;
|
342 |
+
padding: 0 2% 0 0; }
|
343 |
+
.cmb2-postbox .cmb-td, .cmb-type-group .cmb-td {
|
344 |
+
margin-bottom: 0;
|
345 |
+
padding: 0;
|
346 |
+
line-height: 1.3; }
|
347 |
+
.cmb2-postbox .cmb-repeat-row .cmb-td, .cmb-type-group .cmb-repeat-row .cmb-td {
|
348 |
+
padding-bottom: 1.8em; }
|
349 |
+
.cmb2-postbox .cmb-th + .cmb-td, .cmb-type-group .cmb-th + .cmb-td {
|
350 |
+
width: 80%;
|
351 |
+
float: right; }
|
352 |
+
.cmb2-postbox .cmb-row:not(:last-of-type),
|
353 |
+
.cmb2-postbox .cmb-repeatable-group:not(:last-of-type), .cmb-type-group .cmb-row:not(:last-of-type),
|
354 |
+
.cmb-type-group .cmb-repeatable-group:not(:last-of-type) {
|
355 |
+
border-bottom: 1px solid #e9e9e9; }
|
356 |
+
@media (max-width: 450px) {
|
357 |
+
.cmb2-postbox .cmb-row:not(:last-of-type),
|
358 |
+
.cmb2-postbox .cmb-repeatable-group:not(:last-of-type), .cmb-type-group .cmb-row:not(:last-of-type),
|
359 |
+
.cmb-type-group .cmb-repeatable-group:not(:last-of-type) {
|
360 |
+
border-bottom: 0; } }
|
361 |
+
.cmb2-postbox .cmb-repeat-group-field,
|
362 |
+
.cmb2-postbox .cmb-remove-field-row, .cmb-type-group .cmb-repeat-group-field,
|
363 |
+
.cmb-type-group .cmb-remove-field-row {
|
364 |
+
padding-top: 1.8em; }
|
365 |
+
.cmb2-postbox .cmb2-metabox > .cmb-row.table-layout .cmb-repeat-table .cmb-tbody, .cmb2-postbox .cmb2-metabox > .cmb-row .cmb-row.table-layout .cmb-repeat-table .cmb-tbody, .cmb-type-group .cmb2-metabox > .cmb-row.table-layout .cmb-repeat-table .cmb-tbody, .cmb-type-group .cmb2-metabox > .cmb-row .cmb-row.table-layout .cmb-repeat-table .cmb-tbody {
|
366 |
+
display: table;
|
367 |
+
width: 100%; }
|
368 |
+
.cmb2-postbox .cmb2-metabox > .cmb-row.table-layout .cmb-repeat-table .cmb-tbody input.regular-text, .cmb2-postbox .cmb2-metabox > .cmb-row .cmb-row.table-layout .cmb-repeat-table .cmb-tbody input.regular-text, .cmb-type-group .cmb2-metabox > .cmb-row.table-layout .cmb-repeat-table .cmb-tbody input.regular-text, .cmb-type-group .cmb2-metabox > .cmb-row .cmb-row.table-layout .cmb-repeat-table .cmb-tbody input.regular-text {
|
369 |
+
width: 100%; }
|
370 |
+
.cmb2-postbox .cmb2-metabox > .cmb-row.table-layout .cmb-repeat-table .cmb-tbody .cmb-row:not(.hidden):not(.empty-row), .cmb2-postbox .cmb2-metabox > .cmb-row .cmb-row.table-layout .cmb-repeat-table .cmb-tbody .cmb-row:not(.hidden):not(.empty-row), .cmb-type-group .cmb2-metabox > .cmb-row.table-layout .cmb-repeat-table .cmb-tbody .cmb-row:not(.hidden):not(.empty-row), .cmb-type-group .cmb2-metabox > .cmb-row .cmb-row.table-layout .cmb-repeat-table .cmb-tbody .cmb-row:not(.hidden):not(.empty-row) {
|
371 |
+
display: table-row; }
|
372 |
+
.cmb2-postbox .cmb2-metabox > .cmb-row.table-layout .cmb-repeat-table .cmb-tbody .cmb-td, .cmb2-postbox .cmb2-metabox > .cmb-row .cmb-row.table-layout .cmb-repeat-table .cmb-tbody .cmb-td, .cmb-type-group .cmb2-metabox > .cmb-row.table-layout .cmb-repeat-table .cmb-tbody .cmb-td, .cmb-type-group .cmb2-metabox > .cmb-row .cmb-row.table-layout .cmb-repeat-table .cmb-tbody .cmb-td {
|
373 |
+
display: table-cell;
|
374 |
+
float: none;
|
375 |
+
width: 100%; }
|
376 |
+
.cmb2-postbox .cmb2-metabox > .cmb-row.table-layout .cmb-repeat-table .cmb-tbody .cmb-row:not(:first-of-type) .cmb-td, .cmb2-postbox .cmb2-metabox > .cmb-row .cmb-row.table-layout .cmb-repeat-table .cmb-tbody .cmb-row:not(:first-of-type) .cmb-td, .cmb-type-group .cmb2-metabox > .cmb-row.table-layout .cmb-repeat-table .cmb-tbody .cmb-row:not(:first-of-type) .cmb-td, .cmb-type-group .cmb2-metabox > .cmb-row .cmb-row.table-layout .cmb-repeat-table .cmb-tbody .cmb-row:not(:first-of-type) .cmb-td {
|
377 |
+
padding-top: 1.8em; }
|
378 |
+
.cmb2-postbox .cmb2-metabox > .cmb-row.table-layout .cmb-repeat-table .cmb-tbody .cmb-td.cmb-remove-row, .cmb2-postbox .cmb2-metabox > .cmb-row .cmb-row.table-layout .cmb-repeat-table .cmb-tbody .cmb-td.cmb-remove-row, .cmb-type-group .cmb2-metabox > .cmb-row.table-layout .cmb-repeat-table .cmb-tbody .cmb-td.cmb-remove-row, .cmb-type-group .cmb2-metabox > .cmb-row .cmb-row.table-layout .cmb-repeat-table .cmb-tbody .cmb-td.cmb-remove-row {
|
379 |
+
padding-right: 0; }
|
380 |
+
|
381 |
+
/*--------------------------------------------------------------
|
382 |
+
Context Metaboxes
|
383 |
+
--------------------------------------------------------------*/
|
384 |
+
/* Metabox collapse arrow indicators */
|
385 |
+
.js .cmb2-postbox.context-box .toggle-indicator:before {
|
386 |
+
content: "\f142";
|
387 |
+
display: inline-block;
|
388 |
+
font: normal 20px/1 dashicons;
|
389 |
+
speak: none;
|
390 |
+
-webkit-font-smoothing: antialiased;
|
391 |
+
-moz-osx-font-smoothing: grayscale;
|
392 |
+
text-decoration: none !important; }
|
393 |
+
.js .cmb2-postbox.context-box.closed .toggle-indicator:before {
|
394 |
+
content: "\f140"; }
|
395 |
+
|
396 |
+
.cmb2-postbox.context-box {
|
397 |
+
margin-bottom: 10px; }
|
398 |
+
.cmb2-postbox.context-box.context-before_permalink-box {
|
399 |
+
margin-top: 10px; }
|
400 |
+
.cmb2-postbox.context-box.context-after_title-box {
|
401 |
+
margin-top: 10px; }
|
402 |
+
.cmb2-postbox.context-box.context-after_editor-box {
|
403 |
+
margin-top: 20px;
|
404 |
+
margin-bottom: 0; }
|
405 |
+
.cmb2-postbox.context-box.context-form_top-box {
|
406 |
+
margin-top: 10px; }
|
407 |
+
.cmb2-postbox.context-box.context-form_top-box .hndle {
|
408 |
+
font-size: 14px;
|
409 |
+
padding: 8px 12px;
|
410 |
+
margin: 0;
|
411 |
+
line-height: 1.4; }
|
412 |
+
.cmb2-postbox.context-box .hndle {
|
413 |
+
cursor: auto; }
|
414 |
+
|
415 |
+
.cmb2-context-wrap {
|
416 |
+
margin-top: 10px; }
|
417 |
+
.cmb2-context-wrap.cmb2-context-wrap-form_top {
|
418 |
+
margin-right: 300px;
|
419 |
+
width: auto; }
|
420 |
+
.cmb2-context-wrap.cmb2-context-wrap-no-title .cmb2-metabox {
|
421 |
+
padding: 10px; }
|
422 |
+
.cmb2-context-wrap .cmb-th {
|
423 |
+
padding: 0 2% 0 0;
|
424 |
+
width: 18%; }
|
425 |
+
.cmb2-context-wrap .cmb-td {
|
426 |
+
width: 80%;
|
427 |
+
padding: 0; }
|
428 |
+
.cmb2-context-wrap .cmb-row {
|
429 |
+
margin-bottom: 10px; }
|
430 |
+
.cmb2-context-wrap .cmb-row:last-of-type {
|
431 |
+
margin-bottom: 0; }
|
432 |
+
|
433 |
+
/* one column on the post write/edit screen */
|
434 |
+
@media only screen and (max-width: 850px) {
|
435 |
+
.cmb2-context-wrap.cmb2-context-wrap-form_top {
|
436 |
+
margin-right: 0; } }
|
437 |
+
/*--------------------------------------------------------------
|
438 |
+
Misc.
|
439 |
+
--------------------------------------------------------------*/
|
440 |
+
#poststuff .cmb-repeatable-group h2 {
|
441 |
+
margin: 0; }
|
442 |
+
|
443 |
+
.edit-tags-php .cmb2-metabox-title,
|
444 |
+
.profile-php .cmb2-metabox-title,
|
445 |
+
.user-edit-php .cmb2-metabox-title {
|
446 |
+
font-size: 1.4em; }
|
447 |
+
|
448 |
+
.cmb2-options-page .cmb2-metabox-title {
|
449 |
+
font-size: 1.3em;
|
450 |
+
margin: 1em 0; }
|
451 |
+
.cmb2-options-page .cmb2-metabox-title + p.cmb2-metabox-description {
|
452 |
+
margin-top: -1.6em;
|
453 |
+
margin-bottom: .8em; }
|
454 |
+
|
455 |
+
.cmb2-postbox .cmb-spinner, .cmb2-no-box-wrap .cmb-spinner {
|
456 |
+
float: left;
|
457 |
+
display: none; }
|
458 |
+
|
459 |
+
.cmb-spinner {
|
460 |
+
display: none; }
|
461 |
+
.cmb-spinner.is-active {
|
462 |
+
display: block; }
|
463 |
+
|
464 |
+
/*--------------------------------------------------------------
|
465 |
+
Sidebar Placement Adjustments
|
466 |
+
--------------------------------------------------------------*/
|
467 |
+
.inner-sidebar .cmb2-wrap > .cmb-field-list > .cmb-row,
|
468 |
+
#side-sortables .cmb2-wrap > .cmb-field-list > .cmb-row {
|
469 |
+
padding: 1.4em 0; }
|
470 |
+
.inner-sidebar .cmb2-wrap input[type=text]:not(.wp-color-picker),
|
471 |
+
#side-sortables .cmb2-wrap input[type=text]:not(.wp-color-picker) {
|
472 |
+
width: 100%; }
|
473 |
+
.inner-sidebar .cmb2-wrap input + input:not(.wp-picker-clear), .inner-sidebar .cmb2-wrap input + select,
|
474 |
+
#side-sortables .cmb2-wrap input + input:not(.wp-picker-clear),
|
475 |
+
#side-sortables .cmb2-wrap input + select {
|
476 |
+
margin-left: 0;
|
477 |
+
margin-top: 1em;
|
478 |
+
display: block; }
|
479 |
+
.inner-sidebar .cmb2-wrap input.cmb2-text-money,
|
480 |
+
#side-sortables .cmb2-wrap input.cmb2-text-money {
|
481 |
+
max-width: 70%; }
|
482 |
+
.inner-sidebar .cmb2-wrap input.cmb2-text-money + .cmb2-metabox-description,
|
483 |
+
#side-sortables .cmb2-wrap input.cmb2-text-money + .cmb2-metabox-description {
|
484 |
+
display: block; }
|
485 |
+
.inner-sidebar .cmb2-wrap label,
|
486 |
+
#side-sortables .cmb2-wrap label {
|
487 |
+
display: block;
|
488 |
+
font-weight: 700;
|
489 |
+
padding: 0 0 5px; }
|
490 |
+
.inner-sidebar textarea,
|
491 |
+
#side-sortables textarea {
|
492 |
+
max-width: 99%; }
|
493 |
+
.inner-sidebar .cmb-repeatable-group,
|
494 |
+
#side-sortables .cmb-repeatable-group {
|
495 |
+
border-bottom: 1px solid #e9e9e9; }
|
496 |
+
.inner-sidebar .cmb-type-group > .cmb-td > .cmb-repeatable-group,
|
497 |
+
#side-sortables .cmb-type-group > .cmb-td > .cmb-repeatable-group {
|
498 |
+
border-bottom: 0;
|
499 |
+
margin-bottom: -1.4em; }
|
500 |
+
.inner-sidebar .cmb-th,
|
501 |
+
.inner-sidebar .cmb-td,
|
502 |
+
.inner-sidebar .cmb-th + .cmb-td,
|
503 |
+
#side-sortables .cmb-th,
|
504 |
+
#side-sortables .cmb-td,
|
505 |
+
#side-sortables .cmb-th + .cmb-td {
|
506 |
+
width: 100%;
|
507 |
+
display: block;
|
508 |
+
float: none; }
|
509 |
+
.inner-sidebar .closed .inside,
|
510 |
+
#side-sortables .closed .inside {
|
511 |
+
display: none; }
|
512 |
+
.inner-sidebar .cmb-td .cmb-td,
|
513 |
+
#side-sortables .cmb-td .cmb-td {
|
514 |
+
padding-bottom: 1em; }
|
515 |
+
.inner-sidebar .cmb-th,
|
516 |
+
#side-sortables .cmb-th {
|
517 |
+
display: block;
|
518 |
+
float: none;
|
519 |
+
padding-bottom: 1em;
|
520 |
+
text-align: left;
|
521 |
+
width: 100%;
|
522 |
+
padding-left: 0;
|
523 |
+
padding-right: 0; }
|
524 |
+
.inner-sidebar .cmb-th label,
|
525 |
+
#side-sortables .cmb-th label {
|
526 |
+
display: block;
|
527 |
+
margin-top: 0em;
|
528 |
+
padding-bottom: 5px; }
|
529 |
+
.inner-sidebar .cmb-th label:after,
|
530 |
+
#side-sortables .cmb-th label:after {
|
531 |
+
border-bottom: 1px solid #e9e9e9;
|
532 |
+
content: '';
|
533 |
+
clear: both;
|
534 |
+
display: block;
|
535 |
+
padding-top: .4em; }
|
536 |
+
.inner-sidebar .cmb-th label,
|
537 |
+
#side-sortables .cmb-th label {
|
538 |
+
font-size: 14px;
|
539 |
+
line-height: 1.4em; }
|
540 |
+
.inner-sidebar .cmb-group-description .cmb-th,
|
541 |
+
#side-sortables .cmb-group-description .cmb-th {
|
542 |
+
padding-top: 0; }
|
543 |
+
.inner-sidebar .cmb-group-description .cmb2-metabox-description,
|
544 |
+
#side-sortables .cmb-group-description .cmb2-metabox-description {
|
545 |
+
padding: 0; }
|
546 |
+
.inner-sidebar .cmb-group-title .cmb-th,
|
547 |
+
#side-sortables .cmb-group-title .cmb-th {
|
548 |
+
padding: 0; }
|
549 |
+
.inner-sidebar .cmb-repeatable-grouping + .cmb-repeatable-grouping,
|
550 |
+
#side-sortables .cmb-repeatable-grouping + .cmb-repeatable-grouping {
|
551 |
+
margin-top: 1em; }
|
552 |
+
.inner-sidebar .cmb2-media-status .img-status img,
|
553 |
+
.inner-sidebar .cmb2-media-status .embed-status img,
|
554 |
+
#side-sortables .cmb2-media-status .img-status img,
|
555 |
+
#side-sortables .cmb2-media-status .embed-status img {
|
556 |
+
max-width: 90%;
|
557 |
+
height: auto; }
|
558 |
+
.inner-sidebar .cmb2-list label,
|
559 |
+
#side-sortables .cmb2-list label {
|
560 |
+
display: inline;
|
561 |
+
font-weight: normal; }
|
562 |
+
.inner-sidebar .cmb2-metabox-description,
|
563 |
+
#side-sortables .cmb2-metabox-description {
|
564 |
+
display: block;
|
565 |
+
padding: 7px 0 0; }
|
566 |
+
.inner-sidebar .cmb-type-checkbox .cmb-td label,
|
567 |
+
.inner-sidebar .cmb-type-checkbox .cmb2-metabox-description,
|
568 |
+
#side-sortables .cmb-type-checkbox .cmb-td label,
|
569 |
+
#side-sortables .cmb-type-checkbox .cmb2-metabox-description {
|
570 |
+
font-weight: normal;
|
571 |
+
display: inline; }
|
572 |
+
.inner-sidebar .cmb-row .cmb2-metabox-description,
|
573 |
+
#side-sortables .cmb-row .cmb2-metabox-description {
|
574 |
+
padding-bottom: 1.8em; }
|
575 |
+
.inner-sidebar .cmb2-metabox-title,
|
576 |
+
#side-sortables .cmb2-metabox-title {
|
577 |
+
font-size: 1.2em;
|
578 |
+
font-style: italic; }
|
579 |
+
.inner-sidebar .cmb-remove-row,
|
580 |
+
#side-sortables .cmb-remove-row {
|
581 |
+
clear: both;
|
582 |
+
padding-top: 12px;
|
583 |
+
padding-bottom: 0; }
|
584 |
+
.inner-sidebar .cmb-type-colorpicker .cmb-repeat-row .cmb-td,
|
585 |
+
#side-sortables .cmb-type-colorpicker .cmb-repeat-row .cmb-td {
|
586 |
+
width: auto;
|
587 |
+
clear: none;
|
588 |
+
float: left;
|
589 |
+
padding-top: 0; }
|
590 |
+
.inner-sidebar .cmb-type-colorpicker .cmb-repeat-row .cmb-td.cmb-remove-row,
|
591 |
+
#side-sortables .cmb-type-colorpicker .cmb-repeat-row .cmb-td.cmb-remove-row {
|
592 |
+
float: right;
|
593 |
+
margin: 0; }
|
594 |
+
.inner-sidebar .cmb2-upload-button,
|
595 |
+
#side-sortables .cmb2-upload-button {
|
596 |
+
clear: both;
|
597 |
+
margin-top: 12px; }
|
598 |
+
|
599 |
+
.cmb2-metabox .cmb-type-group {
|
600 |
+
max-width: 1000px; }
|
601 |
+
.cmb2-metabox .cmbhandle {
|
602 |
+
color: #aaa;
|
603 |
+
float: right;
|
604 |
+
width: 27px;
|
605 |
+
height: 30px;
|
606 |
+
cursor: pointer;
|
607 |
+
right: -1em;
|
608 |
+
position: relative; }
|
609 |
+
.cmb2-metabox .cmbhandle:before {
|
610 |
+
content: '\f142';
|
611 |
+
right: 12px;
|
612 |
+
font: normal 20px/1 'dashicons';
|
613 |
+
speak: none;
|
614 |
+
display: inline-block;
|
615 |
+
padding: 8px 10px;
|
616 |
+
top: 0;
|
617 |
+
position: relative;
|
618 |
+
-webkit-font-smoothing: antialiased;
|
619 |
+
-moz-osx-font-smoothing: grayscale;
|
620 |
+
text-decoration: none !important; }
|
621 |
+
.cmb2-metabox .postbox.closed .cmbhandle:before {
|
622 |
+
content: '\f140'; }
|
623 |
+
.cmb2-metabox button.dashicons-before.dashicons-no-alt.cmb-remove-group-row {
|
624 |
+
-webkit-appearance: none !important;
|
625 |
+
background: none !important;
|
626 |
+
border: none !important;
|
627 |
+
position: absolute;
|
628 |
+
left: 0;
|
629 |
+
top: .5em;
|
630 |
+
line-height: 1em;
|
631 |
+
padding: 2px 6px 3px;
|
632 |
+
opacity: .5; }
|
633 |
+
.cmb2-metabox button.dashicons-before.dashicons-no-alt.cmb-remove-group-row:not([disabled]) {
|
634 |
+
cursor: pointer;
|
635 |
+
color: #a00;
|
636 |
+
opacity: 1; }
|
637 |
+
.cmb2-metabox button.dashicons-before.dashicons-no-alt.cmb-remove-group-row:not([disabled]):hover {
|
638 |
+
color: #f00; }
|
639 |
+
|
640 |
+
/*
|
641 |
+
* jQuery UI CSS Framework 1.8.16
|
642 |
+
*
|
643 |
+
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
644 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
645 |
+
* http://jquery.org/license
|
646 |
+
*
|
647 |
+
* http://docs.jquery.com/UI/Theming/API
|
648 |
+
*
|
649 |
+
* WordPress Styles adopted from "jQuery UI Datepicker CSS for WordPress"
|
650 |
+
* https://github.com/stuttter/wp-datepicker-styling
|
651 |
+
*
|
652 |
+
*/
|
653 |
+
* html .cmb2-element.ui-helper-clearfix {
|
654 |
+
height: 1%; }
|
655 |
+
|
656 |
+
.cmb2-element.ui-datepicker, .cmb2-element .ui-datepicker {
|
657 |
+
padding: 0;
|
658 |
+
margin: 0;
|
659 |
+
-webkit-border-radius: 0;
|
660 |
+
-moz-border-radius: 0;
|
661 |
+
border-radius: 0;
|
662 |
+
background-color: #fff;
|
663 |
+
border: 1px solid #dfdfdf;
|
664 |
+
border-top: none;
|
665 |
+
-webkit-box-shadow: 0 3px 6px rgba(0, 0, 0, 0.075);
|
666 |
+
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.075);
|
667 |
+
min-width: 17em;
|
668 |
+
width: auto;
|
669 |
+
/* Default Color Scheme */ }
|
670 |
+
.cmb2-element.ui-datepicker *, .cmb2-element .ui-datepicker * {
|
671 |
+
padding: 0;
|
672 |
+
font-family: "Open Sans", sans-serif;
|
673 |
+
-webkit-border-radius: 0;
|
674 |
+
-moz-border-radius: 0;
|
675 |
+
border-radius: 0; }
|
676 |
+
.cmb2-element.ui-datepicker table, .cmb2-element .ui-datepicker table {
|
677 |
+
font-size: 13px;
|
678 |
+
margin: 0;
|
679 |
+
border: none;
|
680 |
+
border-collapse: collapse; }
|
681 |
+
.cmb2-element.ui-datepicker .ui-widget-header,
|
682 |
+
.cmb2-element.ui-datepicker .ui-datepicker-header, .cmb2-element .ui-datepicker .ui-widget-header,
|
683 |
+
.cmb2-element .ui-datepicker .ui-datepicker-header {
|
684 |
+
background-image: none;
|
685 |
+
border: none;
|
686 |
+
color: #fff;
|
687 |
+
font-weight: normal; }
|
688 |
+
.cmb2-element.ui-datepicker .ui-datepicker-header .ui-state-hover, .cmb2-element .ui-datepicker .ui-datepicker-header .ui-state-hover {
|
689 |
+
background: transparent;
|
690 |
+
border-color: transparent;
|
691 |
+
cursor: pointer; }
|
692 |
+
.cmb2-element.ui-datepicker .ui-datepicker-title, .cmb2-element .ui-datepicker .ui-datepicker-title {
|
693 |
+
margin: 0;
|
694 |
+
padding: 10px 0;
|
695 |
+
color: #fff;
|
696 |
+
font-size: 14px;
|
697 |
+
line-height: 14px;
|
698 |
+
text-align: center; }
|
699 |
+
.cmb2-element.ui-datepicker .ui-datepicker-title select, .cmb2-element .ui-datepicker .ui-datepicker-title select {
|
700 |
+
margin-top: -8px;
|
701 |
+
margin-bottom: -8px; }
|
702 |
+
.cmb2-element.ui-datepicker .ui-datepicker-prev,
|
703 |
+
.cmb2-element.ui-datepicker .ui-datepicker-next, .cmb2-element .ui-datepicker .ui-datepicker-prev,
|
704 |
+
.cmb2-element .ui-datepicker .ui-datepicker-next {
|
705 |
+
position: relative;
|
706 |
+
top: 0;
|
707 |
+
height: 34px;
|
708 |
+
width: 34px; }
|
709 |
+
.cmb2-element.ui-datepicker .ui-state-hover.ui-datepicker-prev,
|
710 |
+
.cmb2-element.ui-datepicker .ui-state-hover.ui-datepicker-next, .cmb2-element .ui-datepicker .ui-state-hover.ui-datepicker-prev,
|
711 |
+
.cmb2-element .ui-datepicker .ui-state-hover.ui-datepicker-next {
|
712 |
+
border: none; }
|
713 |
+
.cmb2-element.ui-datepicker .ui-datepicker-prev,
|
714 |
+
.cmb2-element.ui-datepicker .ui-datepicker-prev-hover, .cmb2-element .ui-datepicker .ui-datepicker-prev,
|
715 |
+
.cmb2-element .ui-datepicker .ui-datepicker-prev-hover {
|
716 |
+
left: 0; }
|
717 |
+
.cmb2-element.ui-datepicker .ui-datepicker-next,
|
718 |
+
.cmb2-element.ui-datepicker .ui-datepicker-next-hover, .cmb2-element .ui-datepicker .ui-datepicker-next,
|
719 |
+
.cmb2-element .ui-datepicker .ui-datepicker-next-hover {
|
720 |
+
right: 0; }
|
721 |
+
.cmb2-element.ui-datepicker .ui-datepicker-next span,
|
722 |
+
.cmb2-element.ui-datepicker .ui-datepicker-prev span, .cmb2-element .ui-datepicker .ui-datepicker-next span,
|
723 |
+
.cmb2-element .ui-datepicker .ui-datepicker-prev span {
|
724 |
+
display: none; }
|
725 |
+
.cmb2-element.ui-datepicker .ui-datepicker-prev, .cmb2-element .ui-datepicker .ui-datepicker-prev {
|
726 |
+
float: left; }
|
727 |
+
.cmb2-element.ui-datepicker .ui-datepicker-next, .cmb2-element .ui-datepicker .ui-datepicker-next {
|
728 |
+
float: right; }
|
729 |
+
.cmb2-element.ui-datepicker .ui-datepicker-prev:before,
|
730 |
+
.cmb2-element.ui-datepicker .ui-datepicker-next:before, .cmb2-element .ui-datepicker .ui-datepicker-prev:before,
|
731 |
+
.cmb2-element .ui-datepicker .ui-datepicker-next:before {
|
732 |
+
font: normal 20px/34px 'dashicons';
|
733 |
+
padding-left: 7px;
|
734 |
+
color: #fff;
|
735 |
+
speak: none;
|
736 |
+
-webkit-font-smoothing: antialiased;
|
737 |
+
-moz-osx-font-smoothing: grayscale;
|
738 |
+
width: 34px;
|
739 |
+
height: 34px; }
|
740 |
+
.cmb2-element.ui-datepicker .ui-datepicker-prev:before, .cmb2-element .ui-datepicker .ui-datepicker-prev:before {
|
741 |
+
content: '\f341'; }
|
742 |
+
.cmb2-element.ui-datepicker .ui-datepicker-next:before, .cmb2-element .ui-datepicker .ui-datepicker-next:before {
|
743 |
+
content: '\f345'; }
|
744 |
+
.cmb2-element.ui-datepicker .ui-datepicker-prev-hover:before,
|
745 |
+
.cmb2-element.ui-datepicker .ui-datepicker-next-hover:before, .cmb2-element .ui-datepicker .ui-datepicker-prev-hover:before,
|
746 |
+
.cmb2-element .ui-datepicker .ui-datepicker-next-hover:before {
|
747 |
+
opacity: 0.7; }
|
748 |
+
.cmb2-element.ui-datepicker select.ui-datepicker-month,
|
749 |
+
.cmb2-element.ui-datepicker select.ui-datepicker-year, .cmb2-element .ui-datepicker select.ui-datepicker-month,
|
750 |
+
.cmb2-element .ui-datepicker select.ui-datepicker-year {
|
751 |
+
width: 33%;
|
752 |
+
background: transparent;
|
753 |
+
border-color: transparent;
|
754 |
+
box-shadow: none;
|
755 |
+
color: #fff; }
|
756 |
+
.cmb2-element.ui-datepicker select.ui-datepicker-month option,
|
757 |
+
.cmb2-element.ui-datepicker select.ui-datepicker-year option, .cmb2-element .ui-datepicker select.ui-datepicker-month option,
|
758 |
+
.cmb2-element .ui-datepicker select.ui-datepicker-year option {
|
759 |
+
color: #333; }
|
760 |
+
.cmb2-element.ui-datepicker thead, .cmb2-element .ui-datepicker thead {
|
761 |
+
color: #fff;
|
762 |
+
font-weight: 600; }
|
763 |
+
.cmb2-element.ui-datepicker thead th, .cmb2-element .ui-datepicker thead th {
|
764 |
+
font-weight: normal; }
|
765 |
+
.cmb2-element.ui-datepicker th, .cmb2-element .ui-datepicker th {
|
766 |
+
padding: 10px; }
|
767 |
+
.cmb2-element.ui-datepicker td, .cmb2-element .ui-datepicker td {
|
768 |
+
padding: 0;
|
769 |
+
border: 1px solid #f4f4f4; }
|
770 |
+
.cmb2-element.ui-datepicker td.ui-datepicker-other-month, .cmb2-element .ui-datepicker td.ui-datepicker-other-month {
|
771 |
+
border: transparent; }
|
772 |
+
.cmb2-element.ui-datepicker td.ui-datepicker-week-end, .cmb2-element .ui-datepicker td.ui-datepicker-week-end {
|
773 |
+
background-color: #f4f4f4;
|
774 |
+
border: 1px solid #f4f4f4; }
|
775 |
+
.cmb2-element.ui-datepicker td.ui-datepicker-week-end.ui-datepicker-today, .cmb2-element .ui-datepicker td.ui-datepicker-week-end.ui-datepicker-today {
|
776 |
+
-webkit-box-shadow: inset 0px 0px 1px 0px rgba(0, 0, 0, 0.1);
|
777 |
+
-moz-box-shadow: inset 0px 0px 1px 0px rgba(0, 0, 0, 0.1);
|
778 |
+
box-shadow: inset 0px 0px 1px 0px rgba(0, 0, 0, 0.1); }
|
779 |
+
.cmb2-element.ui-datepicker td.ui-datepicker-today, .cmb2-element .ui-datepicker td.ui-datepicker-today {
|
780 |
+
background-color: #f0f0c0; }
|
781 |
+
.cmb2-element.ui-datepicker td.ui-datepicker-current-day, .cmb2-element .ui-datepicker td.ui-datepicker-current-day {
|
782 |
+
background: #bbdd88; }
|
783 |
+
.cmb2-element.ui-datepicker td .ui-state-default, .cmb2-element .ui-datepicker td .ui-state-default {
|
784 |
+
background: transparent;
|
785 |
+
border: none;
|
786 |
+
text-align: center;
|
787 |
+
text-decoration: none;
|
788 |
+
width: auto;
|
789 |
+
display: block;
|
790 |
+
padding: 5px 10px;
|
791 |
+
font-weight: normal;
|
792 |
+
color: #444; }
|
793 |
+
.cmb2-element.ui-datepicker td.ui-state-disabled .ui-state-default, .cmb2-element .ui-datepicker td.ui-state-disabled .ui-state-default {
|
794 |
+
opacity: 0.5; }
|
795 |
+
.cmb2-element.ui-datepicker .ui-widget-header,
|
796 |
+
.cmb2-element.ui-datepicker .ui-datepicker-header, .cmb2-element .ui-datepicker .ui-widget-header,
|
797 |
+
.cmb2-element .ui-datepicker .ui-datepicker-header {
|
798 |
+
background: #00a0d2; }
|
799 |
+
.cmb2-element.ui-datepicker thead, .cmb2-element .ui-datepicker thead {
|
800 |
+
background: #32373c; }
|
801 |
+
.cmb2-element.ui-datepicker td .ui-state-hover, .cmb2-element.ui-datepicker td .ui-state-active, .cmb2-element .ui-datepicker td .ui-state-hover, .cmb2-element .ui-datepicker td .ui-state-active {
|
802 |
+
background: #0073aa;
|
803 |
+
color: #fff; }
|
804 |
+
.cmb2-element.ui-datepicker .ui-timepicker-div, .cmb2-element .ui-datepicker .ui-timepicker-div {
|
805 |
+
font-size: 14px; }
|
806 |
+
.cmb2-element.ui-datepicker .ui-timepicker-div dl, .cmb2-element .ui-datepicker .ui-timepicker-div dl {
|
807 |
+
text-align: left;
|
808 |
+
padding: 0 .6em; }
|
809 |
+
.cmb2-element.ui-datepicker .ui-timepicker-div dl dt, .cmb2-element .ui-datepicker .ui-timepicker-div dl dt {
|
810 |
+
float: left;
|
811 |
+
clear: left;
|
812 |
+
padding: 0 0 0 5px; }
|
813 |
+
.cmb2-element.ui-datepicker .ui-timepicker-div dl dd, .cmb2-element .ui-datepicker .ui-timepicker-div dl dd {
|
814 |
+
margin: 0 10px 10px 40%; }
|
815 |
+
.cmb2-element.ui-datepicker .ui-timepicker-div dl dd select, .cmb2-element .ui-datepicker .ui-timepicker-div dl dd select {
|
816 |
+
width: 100%; }
|
817 |
+
.cmb2-element.ui-datepicker .ui-timepicker-div + .ui-datepicker-buttonpane, .cmb2-element .ui-datepicker .ui-timepicker-div + .ui-datepicker-buttonpane {
|
818 |
+
padding: .6em;
|
819 |
+
text-align: left; }
|
820 |
+
.cmb2-element.ui-datepicker .ui-timepicker-div + .ui-datepicker-buttonpane .button-primary, .cmb2-element.ui-datepicker .ui-timepicker-div + .ui-datepicker-buttonpane .button-secondary, .cmb2-element .ui-datepicker .ui-timepicker-div + .ui-datepicker-buttonpane .button-primary, .cmb2-element .ui-datepicker .ui-timepicker-div + .ui-datepicker-buttonpane .button-secondary {
|
821 |
+
padding: 0 10px 1px;
|
822 |
+
-webkit-border-radius: 3px;
|
823 |
+
-moz-border-radius: 3px;
|
824 |
+
border-radius: 3px;
|
825 |
+
margin: 0 .6em .4em .4em; }
|
826 |
+
|
827 |
+
.admin-color-fresh .cmb2-element.ui-datepicker .ui-widget-header,
|
828 |
+
.admin-color-fresh .cmb2-element.ui-datepicker .ui-datepicker-header, .admin-color-fresh .cmb2-element .ui-datepicker .ui-widget-header,
|
829 |
+
.admin-color-fresh .cmb2-element .ui-datepicker .ui-datepicker-header {
|
830 |
+
background: #00a0d2; }
|
831 |
+
.admin-color-fresh .cmb2-element.ui-datepicker thead, .admin-color-fresh .cmb2-element .ui-datepicker thead {
|
832 |
+
background: #32373c; }
|
833 |
+
.admin-color-fresh .cmb2-element.ui-datepicker td .ui-state-hover, .admin-color-fresh .cmb2-element .ui-datepicker td .ui-state-hover {
|
834 |
+
background: #0073aa;
|
835 |
+
color: #fff; }
|
836 |
+
|
837 |
+
.admin-color-blue .cmb2-element.ui-datepicker .ui-widget-header,
|
838 |
+
.admin-color-blue .cmb2-element.ui-datepicker .ui-datepicker-header, .admin-color-blue .cmb2-element .ui-datepicker .ui-widget-header,
|
839 |
+
.admin-color-blue .cmb2-element .ui-datepicker .ui-datepicker-header {
|
840 |
+
background: #52accc; }
|
841 |
+
.admin-color-blue .cmb2-element.ui-datepicker thead, .admin-color-blue .cmb2-element .ui-datepicker thead {
|
842 |
+
background: #4796b3; }
|
843 |
+
.admin-color-blue .cmb2-element.ui-datepicker td .ui-state-hover, .admin-color-blue .cmb2-element.ui-datepicker td .ui-state-active, .admin-color-blue .cmb2-element .ui-datepicker td .ui-state-hover, .admin-color-blue .cmb2-element .ui-datepicker td .ui-state-active {
|
844 |
+
background: #096484;
|
845 |
+
color: #fff; }
|
846 |
+
.admin-color-blue .cmb2-element.ui-datepicker td.ui-datepicker-today, .admin-color-blue .cmb2-element .ui-datepicker td.ui-datepicker-today {
|
847 |
+
background: #eee; }
|
848 |
+
|
849 |
+
.admin-color-coffee .cmb2-element.ui-datepicker .ui-widget-header,
|
850 |
+
.admin-color-coffee .cmb2-element.ui-datepicker .ui-datepicker-header, .admin-color-coffee .cmb2-element .ui-datepicker .ui-widget-header,
|
851 |
+
.admin-color-coffee .cmb2-element .ui-datepicker .ui-datepicker-header {
|
852 |
+
background: #59524c; }
|
853 |
+
.admin-color-coffee .cmb2-element.ui-datepicker thead, .admin-color-coffee .cmb2-element .ui-datepicker thead {
|
854 |
+
background: #46403c; }
|
855 |
+
.admin-color-coffee .cmb2-element.ui-datepicker td .ui-state-hover, .admin-color-coffee .cmb2-element .ui-datepicker td .ui-state-hover {
|
856 |
+
background: #c7a589;
|
857 |
+
color: #fff; }
|
858 |
+
|
859 |
+
.admin-color-ectoplasm .cmb2-element.ui-datepicker .ui-widget-header,
|
860 |
+
.admin-color-ectoplasm .cmb2-element.ui-datepicker .ui-datepicker-header, .admin-color-ectoplasm .cmb2-element .ui-datepicker .ui-widget-header,
|
861 |
+
.admin-color-ectoplasm .cmb2-element .ui-datepicker .ui-datepicker-header {
|
862 |
+
background: #523f6d; }
|
863 |
+
.admin-color-ectoplasm .cmb2-element.ui-datepicker thead, .admin-color-ectoplasm .cmb2-element .ui-datepicker thead {
|
864 |
+
background: #413256; }
|
865 |
+
.admin-color-ectoplasm .cmb2-element.ui-datepicker td .ui-state-hover, .admin-color-ectoplasm .cmb2-element .ui-datepicker td .ui-state-hover {
|
866 |
+
background: #a3b745;
|
867 |
+
color: #fff; }
|
868 |
+
|
869 |
+
.admin-color-midnight .cmb2-element.ui-datepicker .ui-widget-header,
|
870 |
+
.admin-color-midnight .cmb2-element.ui-datepicker .ui-datepicker-header, .admin-color-midnight .cmb2-element .ui-datepicker .ui-widget-header,
|
871 |
+
.admin-color-midnight .cmb2-element .ui-datepicker .ui-datepicker-header {
|
872 |
+
background: #363b3f; }
|
873 |
+
.admin-color-midnight .cmb2-element.ui-datepicker thead, .admin-color-midnight .cmb2-element .ui-datepicker thead {
|
874 |
+
background: #26292c; }
|
875 |
+
.admin-color-midnight .cmb2-element.ui-datepicker td .ui-state-hover, .admin-color-midnight .cmb2-element .ui-datepicker td .ui-state-hover {
|
876 |
+
background: #e14d43;
|
877 |
+
color: #fff; }
|
878 |
+
|
879 |
+
.admin-color-ocean .cmb2-element.ui-datepicker .ui-widget-header,
|
880 |
+
.admin-color-ocean .cmb2-element.ui-datepicker .ui-datepicker-header, .admin-color-ocean .cmb2-element .ui-datepicker .ui-widget-header,
|
881 |
+
.admin-color-ocean .cmb2-element .ui-datepicker .ui-datepicker-header {
|
882 |
+
background: #738e96; }
|
883 |
+
.admin-color-ocean .cmb2-element.ui-datepicker thead, .admin-color-ocean .cmb2-element .ui-datepicker thead {
|
884 |
+
background: #627c83; }
|
885 |
+
.admin-color-ocean .cmb2-element.ui-datepicker td .ui-state-hover, .admin-color-ocean .cmb2-element .ui-datepicker td .ui-state-hover {
|
886 |
+
background: #9ebaa0;
|
887 |
+
color: #fff; }
|
888 |
+
|
889 |
+
.admin-color-sunrise .cmb2-element.ui-datepicker .ui-widget-header,
|
890 |
+
.admin-color-sunrise .cmb2-element.ui-datepicker .ui-datepicker-header,
|
891 |
+
.admin-color-sunrise .cmb2-element.ui-datepicker .ui-datepicker-header .ui-state-hover, .admin-color-sunrise .cmb2-element .ui-datepicker .ui-widget-header,
|
892 |
+
.admin-color-sunrise .cmb2-element .ui-datepicker .ui-datepicker-header,
|
893 |
+
.admin-color-sunrise .cmb2-element .ui-datepicker .ui-datepicker-header .ui-state-hover {
|
894 |
+
background: #cf4944; }
|
895 |
+
.admin-color-sunrise .cmb2-element.ui-datepicker th, .admin-color-sunrise .cmb2-element .ui-datepicker th {
|
896 |
+
border-color: #be3631;
|
897 |
+
background: #be3631; }
|
898 |
+
.admin-color-sunrise .cmb2-element.ui-datepicker td .ui-state-hover, .admin-color-sunrise .cmb2-element .ui-datepicker td .ui-state-hover {
|
899 |
+
background: #dd823b;
|
900 |
+
color: #fff; }
|
901 |
+
|
902 |
+
.admin-color-light .cmb2-element.ui-datepicker .ui-widget-header,
|
903 |
+
.admin-color-light .cmb2-element.ui-datepicker .ui-datepicker-header, .admin-color-light .cmb2-element .ui-datepicker .ui-widget-header,
|
904 |
+
.admin-color-light .cmb2-element .ui-datepicker .ui-datepicker-header {
|
905 |
+
background: #e5e5e5; }
|
906 |
+
.admin-color-light .cmb2-element.ui-datepicker select.ui-datepicker-month,
|
907 |
+
.admin-color-light .cmb2-element.ui-datepicker select.ui-datepicker-year, .admin-color-light .cmb2-element .ui-datepicker select.ui-datepicker-month,
|
908 |
+
.admin-color-light .cmb2-element .ui-datepicker select.ui-datepicker-year {
|
909 |
+
color: #555; }
|
910 |
+
.admin-color-light .cmb2-element.ui-datepicker thead, .admin-color-light .cmb2-element .ui-datepicker thead {
|
911 |
+
background: #888; }
|
912 |
+
.admin-color-light .cmb2-element.ui-datepicker .ui-datepicker-title,
|
913 |
+
.admin-color-light .cmb2-element.ui-datepicker td .ui-state-default,
|
914 |
+
.admin-color-light .cmb2-element.ui-datepicker .ui-datepicker-prev:before,
|
915 |
+
.admin-color-light .cmb2-element.ui-datepicker .ui-datepicker-next:before, .admin-color-light .cmb2-element .ui-datepicker .ui-datepicker-title,
|
916 |
+
.admin-color-light .cmb2-element .ui-datepicker td .ui-state-default,
|
917 |
+
.admin-color-light .cmb2-element .ui-datepicker .ui-datepicker-prev:before,
|
918 |
+
.admin-color-light .cmb2-element .ui-datepicker .ui-datepicker-next:before {
|
919 |
+
color: #555; }
|
920 |
+
.admin-color-light .cmb2-element.ui-datepicker td .ui-state-hover, .admin-color-light .cmb2-element.ui-datepicker td .ui-state-active, .admin-color-light .cmb2-element .ui-datepicker td .ui-state-hover, .admin-color-light .cmb2-element .ui-datepicker td .ui-state-active {
|
921 |
+
background: #ccc; }
|
922 |
+
.admin-color-light .cmb2-element.ui-datepicker td.ui-datepicker-today, .admin-color-light .cmb2-element .ui-datepicker td.ui-datepicker-today {
|
923 |
+
background: #eee; }
|
924 |
+
|
925 |
+
.admin-color-bbp-evergreen .cmb2-element.ui-datepicker .ui-widget-header,
|
926 |
+
.admin-color-bbp-evergreen .cmb2-element.ui-datepicker .ui-datepicker-header, .admin-color-bbp-evergreen .cmb2-element .ui-datepicker .ui-widget-header,
|
927 |
+
.admin-color-bbp-evergreen .cmb2-element .ui-datepicker .ui-datepicker-header {
|
928 |
+
background: #56b274; }
|
929 |
+
.admin-color-bbp-evergreen .cmb2-element.ui-datepicker thead, .admin-color-bbp-evergreen .cmb2-element .ui-datepicker thead {
|
930 |
+
background: #36533f; }
|
931 |
+
.admin-color-bbp-evergreen .cmb2-element.ui-datepicker td .ui-state-hover, .admin-color-bbp-evergreen .cmb2-element .ui-datepicker td .ui-state-hover {
|
932 |
+
background: #446950;
|
933 |
+
color: #fff; }
|
934 |
+
|
935 |
+
.admin-color-bbp-mint .cmb2-element.ui-datepicker .ui-widget-header,
|
936 |
+
.admin-color-bbp-mint .cmb2-element.ui-datepicker .ui-datepicker-header, .admin-color-bbp-mint .cmb2-element .ui-datepicker .ui-widget-header,
|
937 |
+
.admin-color-bbp-mint .cmb2-element .ui-datepicker .ui-datepicker-header {
|
938 |
+
background: #4ca26a; }
|
939 |
+
.admin-color-bbp-mint .cmb2-element.ui-datepicker thead, .admin-color-bbp-mint .cmb2-element .ui-datepicker thead {
|
940 |
+
background: #4f6d59; }
|
941 |
+
.admin-color-bbp-mint .cmb2-element.ui-datepicker td .ui-state-hover, .admin-color-bbp-mint .cmb2-element .ui-datepicker td .ui-state-hover {
|
942 |
+
background: #5fb37c;
|
943 |
+
color: #fff; }
|
includes/lib/cmb2/init.php
CHANGED
@@ -1,193 +1,193 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* The initation loader for CMB2, and the main plugin file.
|
4 |
-
*
|
5 |
-
* @category WordPress_Plugin
|
6 |
-
* @package CMB2
|
7 |
-
* @author CMB2 team
|
8 |
-
* @license GPL-2.0+
|
9 |
-
* @link https://cmb2.io
|
10 |
-
*
|
11 |
-
* Plugin Name: CMB2
|
12 |
-
* Plugin URI: https://github.com/CMB2/CMB2
|
13 |
-
* Description: CMB2 will create metaboxes and forms with custom fields that will blow your mind.
|
14 |
-
* Author: CMB2 team
|
15 |
-
* Author URI: https://cmb2.io
|
16 |
-
* Contributors: Justin Sternberg (@jtsternberg / dsgnwrks.pro)
|
17 |
-
* WebDevStudios (@webdevstudios / webdevstudios.com)
|
18 |
-
* Zao (zao.is)
|
19 |
-
* Human Made (@humanmadeltd / hmn.md)
|
20 |
-
* Jared Atchison (@jaredatch / jaredatchison.com)
|
21 |
-
* Bill Erickson (@billerickson / billerickson.net)
|
22 |
-
* Andrew Norcross (@norcross / andrewnorcross.com)
|
23 |
-
*
|
24 |
-
* Version: 2.2.4
|
25 |
-
*
|
26 |
-
* Text Domain: cmb2
|
27 |
-
* Domain Path: languages
|
28 |
-
*
|
29 |
-
*
|
30 |
-
* Released under the GPL license
|
31 |
-
* http://www.opensource.org/licenses/gpl-license.php
|
32 |
-
*
|
33 |
-
* This is an add-on for WordPress
|
34 |
-
* https://wordpress.org/
|
35 |
-
*
|
36 |
-
* **********************************************************************
|
37 |
-
* This program is free software; you can redistribute it and/or modify
|
38 |
-
* it under the terms of the GNU General Public License as published by
|
39 |
-
* the Free Software Foundation; either version 2 of the License, or
|
40 |
-
* (at your option) any later version.
|
41 |
-
*
|
42 |
-
* This program is distributed in the hope that it will be useful,
|
43 |
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
44 |
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
45 |
-
* GNU General Public License for more details.
|
46 |
-
* **********************************************************************
|
47 |
-
*/
|
48 |
-
|
49 |
-
/**
|
50 |
-
* *********************************************************************
|
51 |
-
* You should not edit the code below
|
52 |
-
* (or any code in the included files)
|
53 |
-
* or things might explode!
|
54 |
-
* ***********************************************************************
|
55 |
-
*/
|
56 |
-
|
57 |
-
if ( ! class_exists( 'CMB2_Bootstrap_225_Trunk', false ) ) {
|
58 |
-
|
59 |
-
/**
|
60 |
-
* Handles checking for and loading the newest version of CMB2
|
61 |
-
*
|
62 |
-
* @since 2.0.0
|
63 |
-
*
|
64 |
-
* @category WordPress_Plugin
|
65 |
-
* @package CMB2
|
66 |
-
* @author CMB2 team
|
67 |
-
* @license GPL-2.0+
|
68 |
-
* @link https://cmb2.io
|
69 |
-
*/
|
70 |
-
class CMB2_Bootstrap_225_Trunk {
|
71 |
-
|
72 |
-
/**
|
73 |
-
* Current version number
|
74 |
-
*
|
75 |
-
* @var string
|
76 |
-
* @since 1.0.0
|
77 |
-
*/
|
78 |
-
const VERSION = '2.2.4';
|
79 |
-
|
80 |
-
/**
|
81 |
-
* Current version hook priority.
|
82 |
-
* Will decrement with each release
|
83 |
-
*
|
84 |
-
* @var int
|
85 |
-
* @since 2.0.0
|
86 |
-
*/
|
87 |
-
const PRIORITY = 9977;
|
88 |
-
|
89 |
-
/**
|
90 |
-
* Single instance of the CMB2_Bootstrap_225_Trunk object
|
91 |
-
*
|
92 |
-
* @var CMB2_Bootstrap_225_Trunk
|
93 |
-
*/
|
94 |
-
public static $single_instance = null;
|
95 |
-
|
96 |
-
/**
|
97 |
-
* Creates/returns the single instance CMB2_Bootstrap_225_Trunk object
|
98 |
-
*
|
99 |
-
* @since 2.0.0
|
100 |
-
* @return CMB2_Bootstrap_225_Trunk Single instance object
|
101 |
-
*/
|
102 |
-
public static function initiate() {
|
103 |
-
if ( null === self::$single_instance ) {
|
104 |
-
self::$single_instance = new self();
|
105 |
-
}
|
106 |
-
return self::$single_instance;
|
107 |
-
}
|
108 |
-
|
109 |
-
/**
|
110 |
-
* Starts the version checking process.
|
111 |
-
* Creates CMB2_LOADED definition for early detection by other scripts
|
112 |
-
*
|
113 |
-
* Hooks CMB2 inclusion to the init hook on a high priority which decrements
|
114 |
-
* (increasing the priority) with each version release.
|
115 |
-
*
|
116 |
-
* @since 2.0.0
|
117 |
-
*/
|
118 |
-
private function __construct() {
|
119 |
-
/**
|
120 |
-
* A constant you can use to check if CMB2 is loaded
|
121 |
-
* for your plugins/themes with CMB2 dependency
|
122 |
-
*/
|
123 |
-
if ( ! defined( 'CMB2_LOADED' ) ) {
|
124 |
-
define( 'CMB2_LOADED', self::PRIORITY );
|
125 |
-
}
|
126 |
-
|
127 |
-
add_action( 'init', array( $this, 'include_cmb' ), self::PRIORITY );
|
128 |
-
}
|
129 |
-
|
130 |
-
/**
|
131 |
-
* A final check if CMB2 exists before kicking off our CMB2 loading.
|
132 |
-
* CMB2_VERSION and CMB2_DIR constants are set at this point.
|
133 |
-
*
|
134 |
-
* @since 2.0.0
|
135 |
-
*/
|
136 |
-
public function include_cmb() {
|
137 |
-
if ( class_exists( 'CMB2', false ) ) {
|
138 |
-
return;
|
139 |
-
}
|
140 |
-
|
141 |
-
if ( ! defined( 'CMB2_VERSION' ) ) {
|
142 |
-
define( 'CMB2_VERSION', self::VERSION );
|
143 |
-
}
|
144 |
-
|
145 |
-
if ( ! defined( 'CMB2_DIR' ) ) {
|
146 |
-
define( 'CMB2_DIR', trailingslashit( dirname( __FILE__ ) ) );
|
147 |
-
}
|
148 |
-
|
149 |
-
$this->l10ni18n();
|
150 |
-
|
151 |
-
// Include helper functions.
|
152 |
-
require_once 'includes/CMB2_Base.php';
|
153 |
-
require_once 'includes/CMB2.php';
|
154 |
-
require_once 'includes/helper-functions.php';
|
155 |
-
|
156 |
-
// Now kick off the class autoloader.
|
157 |
-
spl_autoload_register( 'cmb2_autoload_classes' );
|
158 |
-
|
159 |
-
// Kick the whole thing off.
|
160 |
-
require_once( cmb2_dir( 'bootstrap.php' ) );
|
161 |
-
cmb2_bootstrap();
|
162 |
-
}
|
163 |
-
|
164 |
-
/**
|
165 |
-
* Registers CMB2 text domain path
|
166 |
-
*
|
167 |
-
* @since 2.0.0
|
168 |
-
*/
|
169 |
-
public function l10ni18n() {
|
170 |
-
|
171 |
-
$loaded = load_plugin_textdomain( 'cmb2', false, '/languages/' );
|
172 |
-
|
173 |
-
if ( ! $loaded ) {
|
174 |
-
$loaded = load_muplugin_textdomain( 'cmb2', '/languages/' );
|
175 |
-
}
|
176 |
-
|
177 |
-
if ( ! $loaded ) {
|
178 |
-
$loaded = load_theme_textdomain( 'cmb2', get_stylesheet_directory() . '/languages/' );
|
179 |
-
}
|
180 |
-
|
181 |
-
if ( ! $loaded ) {
|
182 |
-
$locale = apply_filters( 'plugin_locale', get_locale(), 'cmb2' );
|
183 |
-
$mofile = dirname( __FILE__ ) . '/languages/cmb2-' . $locale . '.mo';
|
184 |
-
load_textdomain( 'cmb2', $mofile );
|
185 |
-
}
|
186 |
-
|
187 |
-
}
|
188 |
-
}
|
189 |
-
// Make it so...
|
190 |
-
CMB2_Bootstrap_225_Trunk::initiate();
|
191 |
-
|
192 |
-
}// End if().
|
193 |
-
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* The initation loader for CMB2, and the main plugin file.
|
4 |
+
*
|
5 |
+
* @category WordPress_Plugin
|
6 |
+
* @package CMB2
|
7 |
+
* @author CMB2 team
|
8 |
+
* @license GPL-2.0+
|
9 |
+
* @link https://cmb2.io
|
10 |
+
*
|
11 |
+
* Plugin Name: CMB2
|
12 |
+
* Plugin URI: https://github.com/CMB2/CMB2
|
13 |
+
* Description: CMB2 will create metaboxes and forms with custom fields that will blow your mind.
|
14 |
+
* Author: CMB2 team
|
15 |
+
* Author URI: https://cmb2.io
|
16 |
+
* Contributors: Justin Sternberg (@jtsternberg / dsgnwrks.pro)
|
17 |
+
* WebDevStudios (@webdevstudios / webdevstudios.com)
|
18 |
+
* Zao (zao.is)
|
19 |
+
* Human Made (@humanmadeltd / hmn.md)
|
20 |
+
* Jared Atchison (@jaredatch / jaredatchison.com)
|
21 |
+
* Bill Erickson (@billerickson / billerickson.net)
|
22 |
+
* Andrew Norcross (@norcross / andrewnorcross.com)
|
23 |
+
*
|
24 |
+
* Version: 2.2.4
|
25 |
+
*
|
26 |
+
* Text Domain: cmb2
|
27 |
+
* Domain Path: languages
|
28 |
+
*
|
29 |
+
*
|
30 |
+
* Released under the GPL license
|
31 |
+
* http://www.opensource.org/licenses/gpl-license.php
|
32 |
+
*
|
33 |
+
* This is an add-on for WordPress
|
34 |
+
* https://wordpress.org/
|
35 |
+
*
|
36 |
+
* **********************************************************************
|
37 |
+
* This program is free software; you can redistribute it and/or modify
|
38 |
+
* it under the terms of the GNU General Public License as published by
|
39 |
+
* the Free Software Foundation; either version 2 of the License, or
|
40 |
+
* (at your option) any later version.
|
41 |
+
*
|
42 |
+
* This program is distributed in the hope that it will be useful,
|
43 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
44 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
45 |
+
* GNU General Public License for more details.
|
46 |
+
* **********************************************************************
|
47 |
+
*/
|
48 |
+
|
49 |
+
/**
|
50 |
+
* *********************************************************************
|
51 |
+
* You should not edit the code below
|
52 |
+
* (or any code in the included files)
|
53 |
+
* or things might explode!
|
54 |
+
* ***********************************************************************
|
55 |
+
*/
|
56 |
+
|
57 |
+
if ( ! class_exists( 'CMB2_Bootstrap_225_Trunk', false ) ) {
|
58 |
+
|
59 |
+
/**
|
60 |
+
* Handles checking for and loading the newest version of CMB2
|
61 |
+
*
|
62 |
+
* @since 2.0.0
|
63 |
+
*
|
64 |
+
* @category WordPress_Plugin
|
65 |
+
* @package CMB2
|
66 |
+
* @author CMB2 team
|
67 |
+
* @license GPL-2.0+
|
68 |
+
* @link https://cmb2.io
|
69 |
+
*/
|
70 |
+
class CMB2_Bootstrap_225_Trunk {
|
71 |
+
|
72 |
+
/**
|
73 |
+
* Current version number
|
74 |
+
*
|
75 |
+
* @var string
|
76 |
+
* @since 1.0.0
|
77 |
+
*/
|
78 |
+
const VERSION = '2.2.4';
|
79 |
+
|
80 |
+
/**
|
81 |
+
* Current version hook priority.
|
82 |
+
* Will decrement with each release
|
83 |
+
*
|
84 |
+
* @var int
|
85 |
+
* @since 2.0.0
|
86 |
+
*/
|
87 |
+
const PRIORITY = 9977;
|
88 |
+
|
89 |
+
/**
|
90 |
+
* Single instance of the CMB2_Bootstrap_225_Trunk object
|
91 |
+
*
|
92 |
+
* @var CMB2_Bootstrap_225_Trunk
|
93 |
+
*/
|
94 |
+
public static $single_instance = null;
|
95 |
+
|
96 |
+
/**
|
97 |
+
* Creates/returns the single instance CMB2_Bootstrap_225_Trunk object
|
98 |
+
*
|
99 |
+
* @since 2.0.0
|
100 |
+
* @return CMB2_Bootstrap_225_Trunk Single instance object
|
101 |
+
*/
|
102 |
+
public static function initiate() {
|
103 |
+
if ( null === self::$single_instance ) {
|
104 |
+
self::$single_instance = new self();
|
105 |
+
}
|
106 |
+
return self::$single_instance;
|
107 |
+
}
|
108 |
+
|
109 |
+
/**
|
110 |
+
* Starts the version checking process.
|
111 |
+
* Creates CMB2_LOADED definition for early detection by other scripts
|
112 |
+
*
|
113 |
+
* Hooks CMB2 inclusion to the init hook on a high priority which decrements
|
114 |
+
* (increasing the priority) with each version release.
|
115 |
+
*
|
116 |
+
* @since 2.0.0
|
117 |
+
*/
|
118 |
+
private function __construct() {
|
119 |
+
/**
|
120 |
+
* A constant you can use to check if CMB2 is loaded
|
121 |
+
* for your plugins/themes with CMB2 dependency
|
122 |
+
*/
|
123 |
+
if ( ! defined( 'CMB2_LOADED' ) ) {
|
124 |
+
define( 'CMB2_LOADED', self::PRIORITY );
|
125 |
+
}
|
126 |
+
|
127 |
+
add_action( 'init', array( $this, 'include_cmb' ), self::PRIORITY );
|
128 |
+
}
|
129 |
+
|
130 |
+
/**
|
131 |
+
* A final check if CMB2 exists before kicking off our CMB2 loading.
|
132 |
+
* CMB2_VERSION and CMB2_DIR constants are set at this point.
|
133 |
+
*
|
134 |
+
* @since 2.0.0
|
135 |
+
*/
|
136 |
+
public function include_cmb() {
|
137 |
+
if ( class_exists( 'CMB2', false ) ) {
|
138 |
+
return;
|
139 |
+
}
|
140 |
+
|
141 |
+
if ( ! defined( 'CMB2_VERSION' ) ) {
|
142 |
+
define( 'CMB2_VERSION', self::VERSION );
|
143 |
+
}
|
144 |
+
|
145 |
+
if ( ! defined( 'CMB2_DIR' ) ) {
|
146 |
+
define( 'CMB2_DIR', trailingslashit( dirname( __FILE__ ) ) );
|
147 |
+
}
|
148 |
+
|
149 |
+
$this->l10ni18n();
|
150 |
+
|
151 |
+
// Include helper functions.
|
152 |
+
require_once 'includes/CMB2_Base.php';
|
153 |
+
require_once 'includes/CMB2.php';
|
154 |
+
require_once 'includes/helper-functions.php';
|
155 |
+
|
156 |
+
// Now kick off the class autoloader.
|
157 |
+
spl_autoload_register( 'cmb2_autoload_classes' );
|
158 |
+
|
159 |
+
// Kick the whole thing off.
|
160 |
+
require_once( cmb2_dir( 'bootstrap.php' ) );
|
161 |
+
cmb2_bootstrap();
|
162 |
+
}
|
163 |
+
|
164 |
+
/**
|
165 |
+
* Registers CMB2 text domain path
|
166 |
+
*
|
167 |
+
* @since 2.0.0
|
168 |
+
*/
|
169 |
+
public function l10ni18n() {
|
170 |
+
|
171 |
+
$loaded = load_plugin_textdomain( 'cmb2', false, '/languages/' );
|
172 |
+
|
173 |
+
if ( ! $loaded ) {
|
174 |
+
$loaded = load_muplugin_textdomain( 'cmb2', '/languages/' );
|
175 |
+
}
|
176 |
+
|
177 |
+
if ( ! $loaded ) {
|
178 |
+
$loaded = load_theme_textdomain( 'cmb2', get_stylesheet_directory() . '/languages/' );
|
179 |
+
}
|
180 |
+
|
181 |
+
if ( ! $loaded ) {
|
182 |
+
$locale = apply_filters( 'plugin_locale', get_locale(), 'cmb2' );
|
183 |
+
$mofile = dirname( __FILE__ ) . '/languages/cmb2-' . $locale . '.mo';
|
184 |
+
load_textdomain( 'cmb2', $mofile );
|
185 |
+
}
|
186 |
+
|
187 |
+
}
|
188 |
+
}
|
189 |
+
// Make it so...
|
190 |
+
CMB2_Bootstrap_225_Trunk::initiate();
|
191 |
+
|
192 |
+
}// End if().
|
193 |
+
|
includes/lib/helpers/class-kiwi-social-share-helper.php
CHANGED
@@ -1,428 +1,428 @@
|
|
1 |
-
<?php
|
2 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
-
exit;
|
4 |
-
}
|
5 |
-
|
6 |
-
/**
|
7 |
-
* Class Kiwi_Social_Share_Helper
|
8 |
-
*/
|
9 |
-
class Kiwi_Social_Share_Helper {
|
10 |
-
/**
|
11 |
-
* @return array
|
12 |
-
*/
|
13 |
-
public static function get_custom_post_types() {
|
14 |
-
$args = array(
|
15 |
-
'public' => true,
|
16 |
-
);
|
17 |
-
|
18 |
-
$post_types = get_post_types( $args, 'objects' );
|
19 |
-
$return = array();
|
20 |
-
|
21 |
-
foreach ( $post_types as $post_type ) {
|
22 |
-
$return[ $post_type->name ] = $post_type->label;
|
23 |
-
}
|
24 |
-
|
25 |
-
return $return;
|
26 |
-
}
|
27 |
-
|
28 |
-
|
29 |
-
/**
|
30 |
-
* @param string $network
|
31 |
-
* @param string $prop
|
32 |
-
*
|
33 |
-
* @return array
|
34 |
-
*/
|
35 |
-
public static function get_network_colors( $network = '', $prop = '' ) {
|
36 |
-
$defaults = array(
|
37 |
-
'monochrome' => array(
|
38 |
-
'background' => '#666666',
|
39 |
-
'text' => '#ffffff',
|
40 |
-
'hover_background' => '#222222',
|
41 |
-
'hover_text' => '#ffffff',
|
42 |
-
),
|
43 |
-
'facebook' => array(
|
44 |
-
'background' => '#3b5998',
|
45 |
-
'text' => '#ffffff',
|
46 |
-
'hover_background' => '#1b4199',
|
47 |
-
'hover_text' => '#ffffff',
|
48 |
-
),
|
49 |
-
'twitter' => array(
|
50 |
-
'background' => '#4eaef8',
|
51 |
-
'text' => '#ffffff',
|
52 |
-
'hover_background' => '#1193f7',
|
53 |
-
'hover_text' => '#ffffff',
|
54 |
-
),
|
55 |
-
'google-plus' => array(
|
56 |
-
'background' => '#db4437',
|
57 |
-
'text' => '#ffffff',
|
58 |
-
'hover_background' => '#db2615',
|
59 |
-
'hover_text' => '#ffffff',
|
60 |
-
),
|
61 |
-
'pinterest' => array(
|
62 |
-
'background' => '#bd081c',
|
63 |
-
'text' => '#ffffff',
|
64 |
-
'hover_background' => '#770107',
|
65 |
-
'hover_text' => '#ffffff',
|
66 |
-
),
|
67 |
-
'linkedin' => array(
|
68 |
-
'background' => '#1a85bc',
|
69 |
-
'text' => '#ffffff',
|
70 |
-
'hover_background' => '#006aa8',
|
71 |
-
'hover_text' => '#ffffff',
|
72 |
-
),
|
73 |
-
'reddit' => array(
|
74 |
-
'background' => '#ff4500',
|
75 |
-
'text' => '#ffffff',
|
76 |
-
'hover_background' => '#e22500',
|
77 |
-
'hover_text' => '#ffffff',
|
78 |
-
),
|
79 |
-
'email' => array(
|
80 |
-
'background' => '#4d9159',
|
81 |
-
'text' => '#ffffff',
|
82 |
-
'hover_background' => '#0e9126',
|
83 |
-
'hover_text' => '#ffffff',
|
84 |
-
),
|
85 |
-
'telegram' => array(
|
86 |
-
'background' => '#179cde',
|
87 |
-
'text' => '#ffffff',
|
88 |
-
'hover_background' => '#008cea',
|
89 |
-
'hover_text' => '#ffffff',
|
90 |
-
),
|
91 |
-
'whatsapp' => array(
|
92 |
-
'background' => '#0dc143',
|
93 |
-
'text' => '#ffffff',
|
94 |
-
'hover_background' => '#499b06',
|
95 |
-
'hover_text' => '#ffffff',
|
96 |
-
),
|
97 |
-
'skype' => array(
|
98 |
-
'background' => '#009ee5',
|
99 |
-
'text' => '#ffffff',
|
100 |
-
'hover_background' => '#008ae0',
|
101 |
-
'hover_text' => '#ffffff',
|
102 |
-
),
|
103 |
-
);
|
104 |
-
|
105 |
-
if ( ! empty( $network ) && ! empty( $prop ) ) {
|
106 |
-
return $defaults[ $network ][ $prop ];
|
107 |
-
}
|
108 |
-
|
109 |
-
$saved_order = self::get_setting_value( 'networks_ordering' );
|
110 |
-
|
111 |
-
if ( ! empty( $saved_order ) ) {
|
112 |
-
$array_keys = explode( ',', $saved_order );
|
113 |
-
$defaults = array_replace( array_flip( array_filter( $array_keys ) ), $defaults );
|
114 |
-
}
|
115 |
-
|
116 |
-
$saved_options = get_option( 'kiwi_network_colors', false );
|
117 |
-
if ( ! $saved_options ) {
|
118 |
-
return $defaults;
|
119 |
-
}
|
120 |
-
|
121 |
-
return array_merge( $defaults, $saved_options );
|
122 |
-
}
|
123 |
-
|
124 |
-
/**
|
125 |
-
* @return array
|
126 |
-
*/
|
127 |
-
public static function get_social_network_identities() {
|
128 |
-
return array(
|
129 |
-
'facebook' => array(
|
130 |
-
'label' => esc_html__( 'Facebook', 'kiwi-social-share' ),
|
131 |
-
'id' => 'facebook',
|
132 |
-
'icon' => 'facebook',
|
133 |
-
),
|
134 |
-
'twitter' => array(
|
135 |
-
'label' => esc_html__( 'Twitter', 'kiwi-social-share' ),
|
136 |
-
'id' => 'twitter',
|
137 |
-
'icon' => 'twitter',
|
138 |
-
),
|
139 |
-
'google-plus' => array(
|
140 |
-
'label' => esc_html__( 'Google Plus', 'kiwi-social-share' ),
|
141 |
-
'id' => 'google-plus',
|
142 |
-
'icon' => 'google-plus',
|
143 |
-
),
|
144 |
-
'pinterest' => array(
|
145 |
-
'label' => esc_html__( 'Pinterest', 'kiwi-social-share' ),
|
146 |
-
'id' => 'pinterest',
|
147 |
-
'icon' => 'pinterest',
|
148 |
-
),
|
149 |
-
'linkedin' => array(
|
150 |
-
'label' => esc_html__( 'LinkedIn', 'kiwi-social-share' ),
|
151 |
-
'id' => 'linkedin',
|
152 |
-
'icon' => 'linkedin',
|
153 |
-
),
|
154 |
-
'reddit' => array(
|
155 |
-
'label' => esc_html__( 'Reddit', 'kiwi-social-share' ),
|
156 |
-
'id' => 'reddit',
|
157 |
-
'icon' => 'reddit',
|
158 |
-
),
|
159 |
-
'email' => array(
|
160 |
-
'label' => esc_html__( 'Email', 'kiwi-social-share' ),
|
161 |
-
'id' => 'email',
|
162 |
-
'icon' => 'envelope',
|
163 |
-
),
|
164 |
-
'telegram' => array(
|
165 |
-
'label' => esc_html__( 'Telegram', 'kiwi-social-share' ),
|
166 |
-
'id' => 'telegram',
|
167 |
-
'icon' => 'telegram',
|
168 |
-
),
|
169 |
-
'whatsapp' => array(
|
170 |
-
'label' => esc_html__( 'WhatsApp', 'kiwi-social-share' ),
|
171 |
-
'id' => 'whatsapp',
|
172 |
-
'icon' => 'whatsapp',
|
173 |
-
),
|
174 |
-
'skype' => array(
|
175 |
-
'label' => esc_html__( 'Skype', 'kiwi-social-share' ),
|
176 |
-
'id' => 'skype',
|
177 |
-
'icon' => 'skype',
|
178 |
-
),
|
179 |
-
);
|
180 |
-
}
|
181 |
-
|
182 |
-
/**
|
183 |
-
* @return array
|
184 |
-
*/
|
185 |
-
public static function get_checked_networks() {
|
186 |
-
$number = number_format( rand( 1, 9999 ) );
|
187 |
-
$defaults = array(
|
188 |
-
'facebook' => array(
|
189 |
-
'name' => 'facebook',
|
190 |
-
'count' => $number,
|
191 |
-
'checked' => array(),
|
192 |
-
'locked' => false,
|
193 |
-
),
|
194 |
-
'twitter' => array(
|
195 |
-
'name' => 'twitter',
|
196 |
-
'count' => $number,
|
197 |
-
'checked' => array(),
|
198 |
-
'locked' => false,
|
199 |
-
),
|
200 |
-
'google-plus' => array(
|
201 |
-
'name' => 'google-plus',
|
202 |
-
'count' => $number,
|
203 |
-
'checked' => array(),
|
204 |
-
'locked' => false,
|
205 |
-
),
|
206 |
-
'pinterest' => array(
|
207 |
-
'name' => 'pinterest',
|
208 |
-
'count' => $number,
|
209 |
-
'checked' => array(),
|
210 |
-
'locked' => false,
|
211 |
-
),
|
212 |
-
'linkedin' => array(
|
213 |
-
'name' => 'linkedin',
|
214 |
-
'count' => $number,
|
215 |
-
'checked' => array(),
|
216 |
-
'locked' => false,
|
217 |
-
),
|
218 |
-
/* start-lite-version */
|
219 |
-
'reddit' => array(
|
220 |
-
'name' => 'reddit',
|
221 |
-
'count' => $number,
|
222 |
-
'checked' => array(),
|
223 |
-
'locked' => true,
|
224 |
-
),
|
225 |
-
'email' => array(
|
226 |
-
'name' => 'email',
|
227 |
-
'count' => 0,
|
228 |
-
'checked' => array(),
|
229 |
-
'locked' => true,
|
230 |
-
),
|
231 |
-
'telegram' => array(
|
232 |
-
'name' => 'telegram',
|
233 |
-
'count' => 0,
|
234 |
-
'checked' => array(),
|
235 |
-
'locked' => true
|
236 |
-
),
|
237 |
-
'whatsapp' => array(
|
238 |
-
'name' => 'whatsapp',
|
239 |
-
'count' => 0,
|
240 |
-
'checked' => array(),
|
241 |
-
'locked' => true
|
242 |
-
),
|
243 |
-
'skype' => array(
|
244 |
-
'name' => 'skype',
|
245 |
-
'count' => 0,
|
246 |
-
'checked' => array(),
|
247 |
-
'locked' => true
|
248 |
-
),
|
249 |
-
/* end-lite-version */
|
250 |
-
|
251 |
-
);
|
252 |
-
|
253 |
-
$saved_order = self::get_setting_value( 'networks_ordering' );
|
254 |
-
|
255 |
-
if ( ! empty( $saved_order ) ) {
|
256 |
-
$array_keys = explode( ',', $saved_order );
|
257 |
-
$defaults = array_replace( array_flip( array_filter( $array_keys ) ), $defaults );
|
258 |
-
}
|
259 |
-
|
260 |
-
$saved_article_bar_option = self::get_setting_value( 'networks_article_bar', array() );
|
261 |
-
$saved_floating_bar_option = self::get_setting_value( 'networks_floating_bar', array() );
|
262 |
-
|
263 |
-
if ( ! empty( $saved_article_bar_option ) ) {
|
264 |
-
foreach ( $saved_article_bar_option as $network ) {
|
265 |
-
$defaults[ $network ]['checked'][] = 'article-bar';
|
266 |
-
}
|
267 |
-
}
|
268 |
-
|
269 |
-
if ( ! empty( $saved_floating_bar_option ) ) {
|
270 |
-
foreach ( $saved_floating_bar_option as $network ) {
|
271 |
-
$defaults[ $network ]['checked'][] = 'floating-bar';
|
272 |
-
}
|
273 |
-
}
|
274 |
-
|
275 |
-
return $defaults;
|
276 |
-
}
|
277 |
-
|
278 |
-
/**
|
279 |
-
* @param string $option Option to get value
|
280 |
-
* @param string $default Default
|
281 |
-
* @param string $group The options' group
|
282 |
-
*
|
283 |
-
* @return mixed|string
|
284 |
-
*/
|
285 |
-
public static function get_setting_value( $option = '', $default = '', $group = '' ) {
|
286 |
-
if ( empty( $group ) ) {
|
287 |
-
$group = 'kiwi_general_settings';
|
288 |
-
}
|
289 |
-
|
290 |
-
$options = get_option( $group, array() );
|
291 |
-
|
292 |
-
if ( empty( $option ) ) {
|
293 |
-
return $options;
|
294 |
-
}
|
295 |
-
|
296 |
-
if ( empty( $options ) || empty( $options[ $option ] ) ) {
|
297 |
-
return $default;
|
298 |
-
}
|
299 |
-
|
300 |
-
return $options[ $option ];
|
301 |
-
}
|
302 |
-
|
303 |
-
/**
|
304 |
-
* @return array|bool|mixed|object|WP_Error
|
305 |
-
*/
|
306 |
-
public static function check_browser_version() {
|
307 |
-
if ( empty( $_SERVER['HTTP_USER_AGENT'] ) ) {
|
308 |
-
return false;
|
309 |
-
}
|
310 |
-
|
311 |
-
$key = md5( $_SERVER['HTTP_USER_AGENT'] );
|
312 |
-
|
313 |
-
if ( false === ( $response = get_site_transient( 'kiwi_browser_' . $key ) ) ) {
|
314 |
-
$options = array(
|
315 |
-
'body' => array( 'useragent' => $_SERVER['HTTP_USER_AGENT'] ),
|
316 |
-
'user-agent' => 'WordPress/' . get_bloginfo( 'version' ) . '; ' . home_url()
|
317 |
-
);
|
318 |
-
|
319 |
-
$response = wp_remote_post( 'http://api.wordpress.org/core/browse-happy/1.1/', $options );
|
320 |
-
|
321 |
-
if ( is_wp_error( $response ) || 200 != wp_remote_retrieve_response_code( $response ) ) {
|
322 |
-
return false;
|
323 |
-
}
|
324 |
-
|
325 |
-
/**
|
326 |
-
* Response should be an array with:
|
327 |
-
* 'name' - string - A user friendly browser name
|
328 |
-
* 'version' - string - The version of the browser the user is using
|
329 |
-
* 'current_version' - string - The most recent version of the browser
|
330 |
-
* 'upgrade' - boolean - Whether the browser needs an upgrade
|
331 |
-
* 'insecure' - boolean - Whether the browser is deemed insecure
|
332 |
-
* 'upgrade_url' - string - The url to visit to upgrade
|
333 |
-
* 'img_src' - string - An image representing the browser
|
334 |
-
* 'img_src_ssl' - string - An image (over SSL) representing the browser
|
335 |
-
*/
|
336 |
-
$response = json_decode( wp_remote_retrieve_body( $response ), true );
|
337 |
-
|
338 |
-
if ( ! is_array( $response ) ) {
|
339 |
-
return false;
|
340 |
-
}
|
341 |
-
|
342 |
-
set_site_transient( 'kiwi_browser_' . $key, $response, WEEK_IN_SECONDS );
|
343 |
-
}
|
344 |
-
|
345 |
-
return $response;
|
346 |
-
}
|
347 |
-
|
348 |
-
/**
|
349 |
-
* @param $id
|
350 |
-
*
|
351 |
-
* @return mixed|string
|
352 |
-
*/
|
353 |
-
public static function get_excerpt_by_id( $id ) {
|
354 |
-
$the_post = get_post( $id );
|
355 |
-
if ( NULL !== $the_post ) {
|
356 |
-
return '';
|
357 |
-
}
|
358 |
-
|
359 |
-
if ( has_excerpt() ) {
|
360 |
-
$the_excerpt = $the_post->post_excerpt;
|
361 |
-
} else {
|
362 |
-
$the_excerpt = $the_post->post_content;
|
363 |
-
}
|
364 |
-
|
365 |
-
|
366 |
-
$the_excerpt = strip_tags( strip_shortcodes( $the_excerpt ) );
|
367 |
-
$the_excerpt = str_replace( ']]>', ']]>', $the_excerpt );
|
368 |
-
$excerpt_length = apply_filters( 'excerpt_length', 100 );
|
369 |
-
$excerpt_more = apply_filters( 'excerpt_more', ' ' . '[...]' );
|
370 |
-
|
371 |
-
$words = preg_split( "/[\n\r\t ]+/", $the_excerpt, $excerpt_length + 1, PREG_SPLIT_NO_EMPTY );
|
372 |
-
if ( count( $words ) > $excerpt_length ) {
|
373 |
-
array_pop( $words );
|
374 |
-
$the_excerpt = implode( ' ', $words );
|
375 |
-
}
|
376 |
-
$the_excerpt = preg_replace( "/\r|\n/", "", $the_excerpt );
|
377 |
-
|
378 |
-
return $the_excerpt;
|
379 |
-
}
|
380 |
-
|
381 |
-
/**
|
382 |
-
*
|
383 |
-
* We'll need to for the title of the posts
|
384 |
-
* Converts smart quotes
|
385 |
-
*
|
386 |
-
* @param $content
|
387 |
-
*
|
388 |
-
* @return mixed
|
389 |
-
*/
|
390 |
-
public static function convert_smart_quotes( $content ) {
|
391 |
-
$content = str_replace( '"', '\'', $content );
|
392 |
-
$content = str_replace( '“', '\'', $content );
|
393 |
-
$content = str_replace( '”', '\'', $content );
|
394 |
-
$content = str_replace( '‘', '\'', $content );
|
395 |
-
$content = str_replace( '’', '\'', $content );
|
396 |
-
|
397 |
-
return $content;
|
398 |
-
}
|
399 |
-
}
|
400 |
-
|
401 |
-
add_action( 'wp_ajax_kiwi_social_share_get_option', 'kiwi_social_share_get_option' );
|
402 |
-
add_action( 'wp_ajax_nopriv_kiwi_social_share_get_option', 'kiwi_social_share_get_option' );
|
403 |
-
add_action( 'wp_ajax_kiwi_social_share_set_option', 'kiwi_social_share_set_option' );
|
404 |
-
add_action( 'wp_ajax_nopriv_kiwi_social_share_set_option', 'kiwi_social_share_set_option' );
|
405 |
-
|
406 |
-
/**
|
407 |
-
*
|
408 |
-
*/
|
409 |
-
function kiwi_social_share_get_option() {
|
410 |
-
if ( ! empty( $_POST ) && $_POST['action'] === 'kiwi_social_share_get_option' ) {
|
411 |
-
wp_die( json_encode( Kiwi_Social_Share_Helper::get_setting_value( $_POST['args']['option'], $_POST['args']['default'], $_POST['args']['group'] ) ) );
|
412 |
-
}
|
413 |
-
|
414 |
-
wp_die( 'Forbidden' );
|
415 |
-
}
|
416 |
-
|
417 |
-
|
418 |
-
function kiwi_social_share_set_option() {
|
419 |
-
if ( ! empty( $_POST ) && $_POST['action'] === 'kiwi_social_share_set_option' ) {
|
420 |
-
$option = get_option( $_POST['args']['group'] );
|
421 |
-
$option[ $_POST['args']['option'] ] = $_POST['args']['value'];
|
422 |
-
update_option( $_POST['args']['group'], $option );
|
423 |
-
wp_die( 'Success' );
|
424 |
-
}
|
425 |
-
|
426 |
-
wp_die( 'Forbidden' );
|
427 |
-
}
|
428 |
-
|
1 |
+
<?php
|
2 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
+
exit;
|
4 |
+
}
|
5 |
+
|
6 |
+
/**
|
7 |
+
* Class Kiwi_Social_Share_Helper
|
8 |
+
*/
|
9 |
+
class Kiwi_Social_Share_Helper {
|
10 |
+
/**
|
11 |
+
* @return array
|
12 |
+
*/
|
13 |
+
public static function get_custom_post_types() {
|
14 |
+
$args = array(
|
15 |
+
'public' => true,
|
16 |
+
);
|
17 |
+
|
18 |
+
$post_types = get_post_types( $args, 'objects' );
|
19 |
+
$return = array();
|
20 |
+
|
21 |
+
foreach ( $post_types as $post_type ) {
|
22 |
+
$return[ $post_type->name ] = $post_type->label;
|
23 |
+
}
|
24 |
+
|
25 |
+
return $return;
|
26 |
+
}
|
27 |
+
|
28 |
+
|
29 |
+
/**
|
30 |
+
* @param string $network
|
31 |
+
* @param string $prop
|
32 |
+
*
|
33 |
+
* @return array
|
34 |
+
*/
|
35 |
+
public static function get_network_colors( $network = '', $prop = '' ) {
|
36 |
+
$defaults = array(
|
37 |
+
'monochrome' => array(
|
38 |
+
'background' => '#666666',
|
39 |
+
'text' => '#ffffff',
|
40 |
+
'hover_background' => '#222222',
|
41 |
+
'hover_text' => '#ffffff',
|
42 |
+
),
|
43 |
+
'facebook' => array(
|
44 |
+
'background' => '#3b5998',
|
45 |
+
'text' => '#ffffff',
|
46 |
+
'hover_background' => '#1b4199',
|
47 |
+
'hover_text' => '#ffffff',
|
48 |
+
),
|
49 |
+
'twitter' => array(
|
50 |
+
'background' => '#4eaef8',
|
51 |
+
'text' => '#ffffff',
|
52 |
+
'hover_background' => '#1193f7',
|
53 |
+
'hover_text' => '#ffffff',
|
54 |
+
),
|
55 |
+
'google-plus' => array(
|
56 |
+
'background' => '#db4437',
|
57 |
+
'text' => '#ffffff',
|
58 |
+
'hover_background' => '#db2615',
|
59 |
+
'hover_text' => '#ffffff',
|
60 |
+
),
|
61 |
+
'pinterest' => array(
|
62 |
+
'background' => '#bd081c',
|
63 |
+
'text' => '#ffffff',
|
64 |
+
'hover_background' => '#770107',
|
65 |
+
'hover_text' => '#ffffff',
|
66 |
+
),
|
67 |
+
'linkedin' => array(
|
68 |
+
'background' => '#1a85bc',
|
69 |
+
'text' => '#ffffff',
|
70 |
+
'hover_background' => '#006aa8',
|
71 |
+
'hover_text' => '#ffffff',
|
72 |
+
),
|
73 |
+
'reddit' => array(
|
74 |
+
'background' => '#ff4500',
|
75 |
+
'text' => '#ffffff',
|
76 |
+
'hover_background' => '#e22500',
|
77 |
+
'hover_text' => '#ffffff',
|
78 |
+
),
|
79 |
+
'email' => array(
|
80 |
+
'background' => '#4d9159',
|
81 |
+
'text' => '#ffffff',
|
82 |
+
'hover_background' => '#0e9126',
|
83 |
+
'hover_text' => '#ffffff',
|
84 |
+
),
|
85 |
+
'telegram' => array(
|
86 |
+
'background' => '#179cde',
|
87 |
+
'text' => '#ffffff',
|
88 |
+
'hover_background' => '#008cea',
|
89 |
+
'hover_text' => '#ffffff',
|
90 |
+
),
|
91 |
+
'whatsapp' => array(
|
92 |
+
'background' => '#0dc143',
|
93 |
+
'text' => '#ffffff',
|
94 |
+
'hover_background' => '#499b06',
|
95 |
+
'hover_text' => '#ffffff',
|
96 |
+
),
|
97 |
+
'skype' => array(
|
98 |
+
'background' => '#009ee5',
|
99 |
+
'text' => '#ffffff',
|
100 |
+
'hover_background' => '#008ae0',
|
101 |
+
'hover_text' => '#ffffff',
|
102 |
+
),
|
103 |
+
);
|
104 |
+
|
105 |
+
if ( ! empty( $network ) && ! empty( $prop ) ) {
|
106 |
+
return $defaults[ $network ][ $prop ];
|
107 |
+
}
|
108 |
+
|
109 |
+
$saved_order = self::get_setting_value( 'networks_ordering' );
|
110 |
+
|
111 |
+
if ( ! empty( $saved_order ) ) {
|
112 |
+
$array_keys = explode( ',', $saved_order );
|
113 |
+
$defaults = array_replace( array_flip( array_filter( $array_keys ) ), $defaults );
|
114 |
+
}
|
115 |
+
|
116 |
+
$saved_options = get_option( 'kiwi_network_colors', false );
|
117 |
+
if ( ! $saved_options ) {
|
118 |
+
return $defaults;
|
119 |
+
}
|
120 |
+
|
121 |
+
return array_merge( $defaults, $saved_options );
|
122 |
+
}
|
123 |
+
|
124 |
+
/**
|
125 |
+
* @return array
|
126 |
+
*/
|
127 |
+
public static function get_social_network_identities() {
|
128 |
+
return array(
|
129 |
+
'facebook' => array(
|
130 |
+
'label' => esc_html__( 'Facebook', 'kiwi-social-share' ),
|
131 |
+
'id' => 'facebook',
|
132 |
+
'icon' => 'facebook',
|
133 |
+
),
|
134 |
+
'twitter' => array(
|
135 |
+
'label' => esc_html__( 'Twitter', 'kiwi-social-share' ),
|
136 |
+
'id' => 'twitter',
|
137 |
+
'icon' => 'twitter',
|
138 |
+
),
|
139 |
+
'google-plus' => array(
|
140 |
+
'label' => esc_html__( 'Google Plus', 'kiwi-social-share' ),
|
141 |
+
'id' => 'google-plus',
|
142 |
+
'icon' => 'google-plus',
|
143 |
+
),
|
144 |
+
'pinterest' => array(
|
145 |
+
'label' => esc_html__( 'Pinterest', 'kiwi-social-share' ),
|
146 |
+
'id' => 'pinterest',
|
147 |
+
'icon' => 'pinterest',
|
148 |
+
),
|
149 |
+
'linkedin' => array(
|
150 |
+
'label' => esc_html__( 'LinkedIn', 'kiwi-social-share' ),
|
151 |
+
'id' => 'linkedin',
|
152 |
+
'icon' => 'linkedin',
|
153 |
+
),
|
154 |
+
'reddit' => array(
|
155 |
+
'label' => esc_html__( 'Reddit', 'kiwi-social-share' ),
|
156 |
+
'id' => 'reddit',
|
157 |
+
'icon' => 'reddit',
|
158 |
+
),
|
159 |
+
'email' => array(
|
160 |
+
'label' => esc_html__( 'Email', 'kiwi-social-share' ),
|
161 |
+
'id' => 'email',
|
162 |
+
'icon' => 'envelope',
|
163 |
+
),
|
164 |
+
'telegram' => array(
|
165 |
+
'label' => esc_html__( 'Telegram', 'kiwi-social-share' ),
|
166 |
+
'id' => 'telegram',
|
167 |
+
'icon' => 'telegram',
|
168 |
+
),
|
169 |
+
'whatsapp' => array(
|
170 |
+
'label' => esc_html__( 'WhatsApp', 'kiwi-social-share' ),
|
171 |
+
'id' => 'whatsapp',
|
172 |
+
'icon' => 'whatsapp',
|
173 |
+
),
|
174 |
+
'skype' => array(
|
175 |
+
'label' => esc_html__( 'Skype', 'kiwi-social-share' ),
|
176 |
+
'id' => 'skype',
|
177 |
+
'icon' => 'skype',
|
178 |
+
),
|
179 |
+
);
|
180 |
+
}
|
181 |
+
|
182 |
+
/**
|
183 |
+
* @return array
|
184 |
+
*/
|
185 |
+
public static function get_checked_networks() {
|
186 |
+
$number = number_format( rand( 1, 9999 ) );
|
187 |
+
$defaults = array(
|
188 |
+
'facebook' => array(
|
189 |
+
'name' => 'facebook',
|
190 |
+
'count' => $number,
|
191 |
+
'checked' => array(),
|
192 |
+
'locked' => false,
|
193 |
+
),
|
194 |
+
'twitter' => array(
|
195 |
+
'name' => 'twitter',
|
196 |
+
'count' => $number,
|
197 |
+
'checked' => array(),
|
198 |
+
'locked' => false,
|
199 |
+
),
|
200 |
+
'google-plus' => array(
|
201 |
+
'name' => 'google-plus',
|
202 |
+
'count' => $number,
|
203 |
+
'checked' => array(),
|
204 |
+
'locked' => false,
|
205 |
+
),
|
206 |
+
'pinterest' => array(
|
207 |
+
'name' => 'pinterest',
|
208 |
+
'count' => $number,
|
209 |
+
'checked' => array(),
|
210 |
+
'locked' => false,
|
211 |
+
),
|
212 |
+
'linkedin' => array(
|
213 |
+
'name' => 'linkedin',
|
214 |
+
'count' => $number,
|
215 |
+
'checked' => array(),
|
216 |
+
'locked' => false,
|
217 |
+
),
|
218 |
+
/* start-lite-version */
|
219 |
+
'reddit' => array(
|
220 |
+
'name' => 'reddit',
|
221 |
+
'count' => $number,
|
222 |
+
'checked' => array(),
|
223 |
+
'locked' => true,
|
224 |
+
),
|
225 |
+
'email' => array(
|
226 |
+
'name' => 'email',
|
227 |
+
'count' => 0,
|
228 |
+
'checked' => array(),
|
229 |
+
'locked' => true,
|
230 |
+
),
|
231 |
+
'telegram' => array(
|
232 |
+
'name' => 'telegram',
|
233 |
+
'count' => 0,
|
234 |
+
'checked' => array(),
|
235 |
+
'locked' => true
|
236 |
+
),
|
237 |
+
'whatsapp' => array(
|
238 |
+
'name' => 'whatsapp',
|
239 |
+
'count' => 0,
|
240 |
+
'checked' => array(),
|
241 |
+
'locked' => true
|
242 |
+
),
|
243 |
+
'skype' => array(
|
244 |
+
'name' => 'skype',
|
245 |
+
'count' => 0,
|
246 |
+
'checked' => array(),
|
247 |
+
'locked' => true
|
248 |
+
),
|
249 |
+
/* end-lite-version */
|
250 |
+
|
251 |
+
);
|
252 |
+
|
253 |
+
$saved_order = self::get_setting_value( 'networks_ordering' );
|
254 |
+
|
255 |
+
if ( ! empty( $saved_order ) ) {
|
256 |
+
$array_keys = explode( ',', $saved_order );
|
257 |
+
$defaults = array_replace( array_flip( array_filter( $array_keys ) ), $defaults );
|
258 |
+
}
|
259 |
+
|
260 |
+
$saved_article_bar_option = self::get_setting_value( 'networks_article_bar', array() );
|
261 |
+
$saved_floating_bar_option = self::get_setting_value( 'networks_floating_bar', array() );
|
262 |
+
|
263 |
+
if ( ! empty( $saved_article_bar_option ) ) {
|
264 |
+
foreach ( $saved_article_bar_option as $network ) {
|
265 |
+
$defaults[ $network ]['checked'][] = 'article-bar';
|
266 |
+
}
|
267 |
+
}
|
268 |
+
|
269 |
+
if ( ! empty( $saved_floating_bar_option ) ) {
|
270 |
+
foreach ( $saved_floating_bar_option as $network ) {
|
271 |
+
$defaults[ $network ]['checked'][] = 'floating-bar';
|
272 |
+
}
|
273 |
+
}
|
274 |
+
|
275 |
+
return $defaults;
|
276 |
+
}
|
277 |
+
|
278 |
+
/**
|
279 |
+
* @param string $option Option to get value
|
280 |
+
* @param string $default Default
|
281 |
+
* @param string $group The options' group
|
282 |
+
*
|
283 |
+
* @return mixed|string
|
284 |
+
*/
|
285 |
+
public static function get_setting_value( $option = '', $default = '', $group = '' ) {
|
286 |
+
if ( empty( $group ) ) {
|
287 |
+
$group = 'kiwi_general_settings';
|
288 |
+
}
|
289 |
+
|
290 |
+
$options = get_option( $group, array() );
|
291 |
+
|
292 |
+
if ( empty( $option ) ) {
|
293 |
+
return $options;
|
294 |
+
}
|
295 |
+
|
296 |
+
if ( empty( $options ) || empty( $options[ $option ] ) ) {
|
297 |
+
return $default;
|
298 |
+
}
|
299 |
+
|
300 |
+
return $options[ $option ];
|
301 |
+
}
|
302 |
+
|
303 |
+
/**
|
304 |
+
* @return array|bool|mixed|object|WP_Error
|
305 |
+
*/
|
306 |
+
public static function check_browser_version() {
|
307 |
+
if ( empty( $_SERVER['HTTP_USER_AGENT'] ) ) {
|
308 |
+
return false;
|
309 |
+
}
|
310 |
+
|
311 |
+
$key = md5( $_SERVER['HTTP_USER_AGENT'] );
|
312 |
+
|
313 |
+
if ( false === ( $response = get_site_transient( 'kiwi_browser_' . $key ) ) ) {
|
314 |
+
$options = array(
|
315 |
+
'body' => array( 'useragent' => $_SERVER['HTTP_USER_AGENT'] ),
|
316 |
+
'user-agent' => 'WordPress/' . get_bloginfo( 'version' ) . '; ' . home_url()
|
317 |
+
);
|
318 |
+
|
319 |
+
$response = wp_remote_post( 'http://api.wordpress.org/core/browse-happy/1.1/', $options );
|
320 |
+
|
321 |
+
if ( is_wp_error( $response ) || 200 != wp_remote_retrieve_response_code( $response ) ) {
|
322 |
+
return false;
|
323 |
+
}
|
324 |
+
|
325 |
+
/**
|
326 |
+
* Response should be an array with:
|
327 |
+
* 'name' - string - A user friendly browser name
|
328 |
+
* 'version' - string - The version of the browser the user is using
|
329 |
+
* 'current_version' - string - The most recent version of the browser
|
330 |
+
* 'upgrade' - boolean - Whether the browser needs an upgrade
|
331 |
+
* 'insecure' - boolean - Whether the browser is deemed insecure
|
332 |
+
* 'upgrade_url' - string - The url to visit to upgrade
|
333 |
+
* 'img_src' - string - An image representing the browser
|
334 |
+
* 'img_src_ssl' - string - An image (over SSL) representing the browser
|
335 |
+
*/
|
336 |
+
$response = json_decode( wp_remote_retrieve_body( $response ), true );
|
337 |
+
|
338 |
+
if ( ! is_array( $response ) ) {
|
339 |
+
return false;
|
340 |
+
}
|
341 |
+
|
342 |
+
set_site_transient( 'kiwi_browser_' . $key, $response, WEEK_IN_SECONDS );
|
343 |
+
}
|
344 |
+
|
345 |
+
return $response;
|
346 |
+
}
|
347 |
+
|
348 |
+
/**
|
349 |
+
* @param $id
|
350 |
+
*
|
351 |
+
* @return mixed|string
|
352 |
+
*/
|
353 |
+
public static function get_excerpt_by_id( $id ) {
|
354 |
+
$the_post = get_post( $id );
|
355 |
+
if ( NULL !== $the_post ) {
|
356 |
+
return '';
|
357 |
+
}
|
358 |
+
|
359 |
+
if ( has_excerpt() ) {
|
360 |
+
$the_excerpt = $the_post->post_excerpt;
|
361 |
+
} else {
|
362 |
+
$the_excerpt = $the_post->post_content;
|
363 |
+
}
|
364 |
+
|
365 |
+
|
366 |
+
$the_excerpt = strip_tags( strip_shortcodes( $the_excerpt ) );
|
367 |
+
$the_excerpt = str_replace( ']]>', ']]>', $the_excerpt );
|
368 |
+
$excerpt_length = apply_filters( 'excerpt_length', 100 );
|
369 |
+
$excerpt_more = apply_filters( 'excerpt_more', ' ' . '[...]' );
|
370 |
+
|
371 |
+
$words = preg_split( "/[\n\r\t ]+/", $the_excerpt, $excerpt_length + 1, PREG_SPLIT_NO_EMPTY );
|
372 |
+
if ( count( $words ) > $excerpt_length ) {
|
373 |
+
array_pop( $words );
|
374 |
+
$the_excerpt = implode( ' ', $words );
|
375 |
+
}
|
376 |
+
$the_excerpt = preg_replace( "/\r|\n/", "", $the_excerpt );
|
377 |
+
|
378 |
+
return $the_excerpt;
|
379 |
+
}
|
380 |
+
|
381 |
+
/**
|
382 |
+
*
|
383 |
+
* We'll need to for the title of the posts
|
384 |
+
* Converts smart quotes
|
385 |
+
*
|
386 |
+
* @param $content
|
387 |
+
*
|
388 |
+
* @return mixed
|
389 |
+
*/
|
390 |
+
public static function convert_smart_quotes( $content ) {
|
391 |
+
$content = str_replace( '"', '\'', $content );
|
392 |
+
$content = str_replace( '“', '\'', $content );
|
393 |
+
$content = str_replace( '”', '\'', $content );
|
394 |
+
$content = str_replace( '‘', '\'', $content );
|
395 |
+
$content = str_replace( '’', '\'', $content );
|
396 |
+
|
397 |
+
return $content;
|
398 |
+
}
|
399 |
+
}
|
400 |
+
|
401 |
+
add_action( 'wp_ajax_kiwi_social_share_get_option', 'kiwi_social_share_get_option' );
|
402 |
+
add_action( 'wp_ajax_nopriv_kiwi_social_share_get_option', 'kiwi_social_share_get_option' );
|
403 |
+
add_action( 'wp_ajax_kiwi_social_share_set_option', 'kiwi_social_share_set_option' );
|
404 |
+
add_action( 'wp_ajax_nopriv_kiwi_social_share_set_option', 'kiwi_social_share_set_option' );
|
405 |
+
|
406 |
+
/**
|
407 |
+
*
|
408 |
+
*/
|
409 |
+
function kiwi_social_share_get_option() {
|
410 |
+
if ( ! empty( $_POST ) && $_POST['action'] === 'kiwi_social_share_get_option' ) {
|
411 |
+
wp_die( json_encode( Kiwi_Social_Share_Helper::get_setting_value( $_POST['args']['option'], $_POST['args']['default'], $_POST['args']['group'] ) ) );
|
412 |
+
}
|
413 |
+
|
414 |
+
wp_die( 'Forbidden' );
|
415 |
+
}
|
416 |
+
|
417 |
+
|
418 |
+
function kiwi_social_share_set_option() {
|
419 |
+
if ( ! empty( $_POST ) && $_POST['action'] === 'kiwi_social_share_set_option' ) {
|
420 |
+
$option = get_option( $_POST['args']['group'] );
|
421 |
+
$option[ $_POST['args']['option'] ] = $_POST['args']['value'];
|
422 |
+
update_option( $_POST['args']['group'], $option );
|
423 |
+
wp_die( 'Success' );
|
424 |
+
}
|
425 |
+
|
426 |
+
wp_die( 'Forbidden' );
|
427 |
+
}
|
428 |
+
|
index.php
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
// Silence is golden
|
1 |
+
<?php
|
2 |
+
|
3 |
// Silence is golden
|
kiwi-social-share.php
CHANGED
@@ -1,50 +1,50 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Plugin Name: Kiwi Social Share - Social Media Share Buttons & Icons
|
4 |
-
* Version: 2.0.
|
5 |
-
* Plugin URI: https://www.machothemes.com/kiwi-social-share
|
6 |
-
* Description: Really beautiful & simple social media & share buttons + icons. Simplicity & speed is key with this social media share plugin.
|
7 |
-
* Author: Macho Themes
|
8 |
-
* Author URI: https://www.machothemes.com
|
9 |
-
* Requires at least: 4.0
|
10 |
-
* Tested up to: 4.
|
11 |
-
*
|
12 |
-
* Text Domain: kiwi-social-share
|
13 |
-
* Domain Path: /languages/
|
14 |
-
*
|
15 |
-
* @package WordPress
|
16 |
-
* @author Macho Themes
|
17 |
-
* @since 1.0.0
|
18 |
-
*/
|
19 |
-
|
20 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
21 |
-
exit;
|
22 |
-
}
|
23 |
-
|
24 |
-
define( 'KIWI_SOCIAL_SHARE_BASE', plugin_dir_path( __FILE__ ) );
|
25 |
-
define( 'KIWI_SOCIAL_SHARE_URL', plugin_dir_url( __FILE__ ) );
|
26 |
-
define( 'KIWI_SOCIAL_SHARE_SITE', rtrim(ABSPATH, '\\/') );
|
27 |
-
|
28 |
-
// Load plugin class files
|
29 |
-
require_once 'includes/class-kiwi-social-share.php';
|
30 |
-
require_once 'includes/lib/helpers/class-kiwi-social-share-helper.php';
|
31 |
-
|
32 |
-
require_once 'includes/class-kiwi-social-share-autoloader.php';
|
33 |
-
|
34 |
-
/**
|
35 |
-
* Returns the main instance of Kiwi_Social_Share to prevent the need to use globals.
|
36 |
-
*
|
37 |
-
* @since 1.0.0
|
38 |
-
* @return object Kiwi_Social_Share
|
39 |
-
*/
|
40 |
-
function Kiwi_Social_Share() {
|
41 |
-
$instance = Kiwi_Social_Share::instance( __FILE__, '2.0.
|
42 |
-
|
43 |
-
if ( is_null( $instance->settings ) ) {
|
44 |
-
$instance->settings = Kiwi_Social_Share_Settings::instance( $instance );
|
45 |
-
}
|
46 |
-
|
47 |
-
return $instance;
|
48 |
-
}
|
49 |
-
|
50 |
Kiwi_Social_Share();
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
* Plugin Name: Kiwi Social Share - Social Media Share Buttons & Icons
|
4 |
+
* Version: 2.0.7
|
5 |
+
* Plugin URI: https://www.machothemes.com/kiwi-social-share
|
6 |
+
* Description: Really beautiful & simple social media & share buttons + icons. Simplicity & speed is key with this social media share plugin.
|
7 |
+
* Author: Macho Themes
|
8 |
+
* Author URI: https://www.machothemes.com
|
9 |
+
* Requires at least: 4.0
|
10 |
+
* Tested up to: 4.9
|
11 |
+
*
|
12 |
+
* Text Domain: kiwi-social-share
|
13 |
+
* Domain Path: /languages/
|
14 |
+
*
|
15 |
+
* @package WordPress
|
16 |
+
* @author Macho Themes
|
17 |
+
* @since 1.0.0
|
18 |
+
*/
|
19 |
+
|
20 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
21 |
+
exit;
|
22 |
+
}
|
23 |
+
|
24 |
+
define( 'KIWI_SOCIAL_SHARE_BASE', plugin_dir_path( __FILE__ ) );
|
25 |
+
define( 'KIWI_SOCIAL_SHARE_URL', plugin_dir_url( __FILE__ ) );
|
26 |
+
define( 'KIWI_SOCIAL_SHARE_SITE', rtrim(ABSPATH, '\\/') );
|
27 |
+
|
28 |
+
// Load plugin class files
|
29 |
+
require_once 'includes/class-kiwi-social-share.php';
|
30 |
+
require_once 'includes/lib/helpers/class-kiwi-social-share-helper.php';
|
31 |
+
|
32 |
+
require_once 'includes/class-kiwi-social-share-autoloader.php';
|
33 |
+
|
34 |
+
/**
|
35 |
+
* Returns the main instance of Kiwi_Social_Share to prevent the need to use globals.
|
36 |
+
*
|
37 |
+
* @since 1.0.0
|
38 |
+
* @return object Kiwi_Social_Share
|
39 |
+
*/
|
40 |
+
function Kiwi_Social_Share() {
|
41 |
+
$instance = Kiwi_Social_Share::instance( __FILE__, '2.0.7' );
|
42 |
+
|
43 |
+
if ( is_null( $instance->settings ) ) {
|
44 |
+
$instance->settings = Kiwi_Social_Share_Settings::instance( $instance );
|
45 |
+
}
|
46 |
+
|
47 |
+
return $instance;
|
48 |
+
}
|
49 |
+
|
50 |
Kiwi_Social_Share();
|
languages/index.php
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
// Silence is golden
|
1 |
+
<?php
|
2 |
+
|
3 |
// Silence is golden
|
languages/kiwi-social-share.pot
CHANGED
@@ -1,15 +1,15 @@
|
|
1 |
-
# Copyright (C)
|
2 |
# This file is distributed under the same license as the Kiwi Social Share - Social Media Share Buttons & Icons package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: Kiwi Social Share - Social Media Share Buttons & Icons "
|
6 |
-
"2.0.
|
7 |
"Report-Msgid-Bugs-To: https://www.machothemes.com/\n"
|
8 |
-
"POT-Creation-Date:
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=utf-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"PO-Revision-Date:
|
13 |
"Last-Translator: Macho Themes <office@machothemes.com>\n"
|
14 |
"Language-Team: Macho Themes <office@machothemes.com>\n"
|
15 |
"X-Generator: grunt-wp-i18n 0.5.4\n"
|
@@ -63,14 +63,14 @@ msgid "Advanced"
|
|
63 |
msgstr ""
|
64 |
|
65 |
#: includes/backend/parts/kiwi-modal-popup.php:12
|
66 |
-
#: includes/class-kiwi-social-share.php:
|
67 |
msgid "Get your premium version now!"
|
68 |
msgstr ""
|
69 |
|
70 |
#: includes/backend/parts/kiwi-modal-popup.php:13
|
71 |
-
#: includes/class-kiwi-social-share.php:
|
72 |
msgid ""
|
73 |
-
"Take advantage of the large number of professional features anad take\
|
74 |
" your business one step further!"
|
75 |
msgstr ""
|
76 |
|
@@ -116,7 +116,7 @@ msgstr ""
|
|
116 |
|
117 |
#: includes/backend/parts/kiwi-modal-popup.php:87
|
118 |
msgid ""
|
119 |
-
"No contract. No hassle. You can cancel your subscription at anytime\
|
120 |
"\t\t\t\t\twithout any cancellation period."
|
121 |
msgstr ""
|
122 |
|
@@ -360,16 +360,16 @@ msgstr ""
|
|
360 |
msgid "Bitly Access Login"
|
361 |
msgstr ""
|
362 |
|
363 |
-
#: includes/class-kiwi-social-share.php:
|
364 |
msgid "Almost Done"
|
365 |
msgstr ""
|
366 |
|
367 |
-
#: includes/class-kiwi-social-share.php:
|
368 |
msgid "We need a few information to complete this!"
|
369 |
msgstr ""
|
370 |
|
371 |
-
#: includes/class-kiwi-social-share.php:
|
372 |
-
#: includes/class-kiwi-social-share.php:
|
373 |
#: includes/lib/class-kiwi-social-share-settings.php:240
|
374 |
#: includes/lib/class-kiwi-social-share-settings.php:249
|
375 |
msgid "Cheatin’ huh?"
|
@@ -443,6 +443,73 @@ msgstr ""
|
|
443 |
msgid "Click To Tweet"
|
444 |
msgstr ""
|
445 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
446 |
#: includes/lib/class-kiwi-social-share-integration.php:30
|
447 |
msgid "NewsMag Lite"
|
448 |
msgstr ""
|
1 |
+
# Copyright (C) 2018 Macho Themes
|
2 |
# This file is distributed under the same license as the Kiwi Social Share - Social Media Share Buttons & Icons package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: Kiwi Social Share - Social Media Share Buttons & Icons "
|
6 |
+
"2.0.7\n"
|
7 |
"Report-Msgid-Bugs-To: https://www.machothemes.com/\n"
|
8 |
+
"POT-Creation-Date: 2018-04-14 09:04:41+00:00\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=utf-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"PO-Revision-Date: 2018-MO-DA HO:MI+ZONE\n"
|
13 |
"Last-Translator: Macho Themes <office@machothemes.com>\n"
|
14 |
"Language-Team: Macho Themes <office@machothemes.com>\n"
|
15 |
"X-Generator: grunt-wp-i18n 0.5.4\n"
|
63 |
msgstr ""
|
64 |
|
65 |
#: includes/backend/parts/kiwi-modal-popup.php:12
|
66 |
+
#: includes/class-kiwi-social-share.php:274
|
67 |
msgid "Get your premium version now!"
|
68 |
msgstr ""
|
69 |
|
70 |
#: includes/backend/parts/kiwi-modal-popup.php:13
|
71 |
+
#: includes/class-kiwi-social-share.php:276
|
72 |
msgid ""
|
73 |
+
"Take advantage of the large number of professional features anad take\n"
|
74 |
" your business one step further!"
|
75 |
msgstr ""
|
76 |
|
116 |
|
117 |
#: includes/backend/parts/kiwi-modal-popup.php:87
|
118 |
msgid ""
|
119 |
+
"No contract. No hassle. You can cancel your subscription at anytime\n"
|
120 |
"\t\t\t\t\twithout any cancellation period."
|
121 |
msgstr ""
|
122 |
|
360 |
msgid "Bitly Access Login"
|
361 |
msgstr ""
|
362 |
|
363 |
+
#: includes/class-kiwi-social-share.php:275
|
364 |
msgid "Almost Done"
|
365 |
msgstr ""
|
366 |
|
367 |
+
#: includes/class-kiwi-social-share.php:278
|
368 |
msgid "We need a few information to complete this!"
|
369 |
msgstr ""
|
370 |
|
371 |
+
#: includes/class-kiwi-social-share.php:336
|
372 |
+
#: includes/class-kiwi-social-share.php:345
|
373 |
#: includes/lib/class-kiwi-social-share-settings.php:240
|
374 |
#: includes/lib/class-kiwi-social-share-settings.php:249
|
375 |
msgid "Cheatin’ huh?"
|
443 |
msgid "Click To Tweet"
|
444 |
msgstr ""
|
445 |
|
446 |
+
#: includes/lib/class-kiwi-social-share-feedback.php:57
|
447 |
+
msgid "Allow us to get more information in order to improve our plugin"
|
448 |
+
msgstr ""
|
449 |
+
|
450 |
+
#: includes/lib/class-kiwi-social-share-feedback.php:61
|
451 |
+
msgid "Submitting form"
|
452 |
+
msgstr ""
|
453 |
+
|
454 |
+
#: includes/lib/class-kiwi-social-share-feedback.php:62
|
455 |
+
msgid "Just Deactivate"
|
456 |
+
msgstr ""
|
457 |
+
|
458 |
+
#: includes/lib/class-kiwi-social-share-feedback.php:62
|
459 |
+
msgid "Submit and Deactivate"
|
460 |
+
msgstr ""
|
461 |
+
|
462 |
+
#: includes/lib/class-kiwi-social-share-feedback.php:140
|
463 |
+
msgid "What was the dificult part ?"
|
464 |
+
msgstr ""
|
465 |
+
|
466 |
+
#: includes/lib/class-kiwi-social-share-feedback.php:141
|
467 |
+
msgid "What can we describe more ?"
|
468 |
+
msgstr ""
|
469 |
+
|
470 |
+
#: includes/lib/class-kiwi-social-share-feedback.php:142
|
471 |
+
#: includes/lib/class-kiwi-social-share-feedback.php:217
|
472 |
+
msgid "How could we improve ?"
|
473 |
+
msgstr ""
|
474 |
+
|
475 |
+
#: includes/lib/class-kiwi-social-share-feedback.php:143
|
476 |
+
msgid "Can you mention it ?"
|
477 |
+
msgstr ""
|
478 |
+
|
479 |
+
#: includes/lib/class-kiwi-social-share-feedback.php:144
|
480 |
+
msgid "With what plugin or theme is incompatible ?"
|
481 |
+
msgstr ""
|
482 |
+
|
483 |
+
#: includes/lib/class-kiwi-social-share-feedback.php:208
|
484 |
+
msgid "Sorry to see you go"
|
485 |
+
msgstr ""
|
486 |
+
|
487 |
+
#: includes/lib/class-kiwi-social-share-feedback.php:209
|
488 |
+
msgid ""
|
489 |
+
"Before you deactivate the plugin, would you quickly give us your reason for "
|
490 |
+
"doing so?"
|
491 |
+
msgstr ""
|
492 |
+
|
493 |
+
#: includes/lib/class-kiwi-social-share-feedback.php:211
|
494 |
+
msgid "Set up is too difficult"
|
495 |
+
msgstr ""
|
496 |
+
|
497 |
+
#: includes/lib/class-kiwi-social-share-feedback.php:212
|
498 |
+
msgid "Lack of documentation"
|
499 |
+
msgstr ""
|
500 |
+
|
501 |
+
#: includes/lib/class-kiwi-social-share-feedback.php:213
|
502 |
+
msgid "Not the features I wanted"
|
503 |
+
msgstr ""
|
504 |
+
|
505 |
+
#: includes/lib/class-kiwi-social-share-feedback.php:214
|
506 |
+
msgid "Found a better plugin"
|
507 |
+
msgstr ""
|
508 |
+
|
509 |
+
#: includes/lib/class-kiwi-social-share-feedback.php:215
|
510 |
+
msgid "Incompatible with theme or plugin"
|
511 |
+
msgstr ""
|
512 |
+
|
513 |
#: includes/lib/class-kiwi-social-share-integration.php:30
|
514 |
msgid "NewsMag Lite"
|
515 |
msgstr ""
|
readme.txt
CHANGED
@@ -1,121 +1,142 @@
|
|
1 |
-
=== Plugin Name ===
|
2 |
-
|
3 |
-
Contributors: machothemes,
|
4 |
-
Tags: Facebook, facebook connect, facebook like, facebook share, facebook share icon, floating buttons, floating share, floating share icons, follow, google, Google Login, google plus, icons, increase shares, linkedin, linkedin share, media, page, pinterest, pinterest button, pinterest share, plugin, post to social networks, Reddit, reddit share, reddit sharing, Share, share button, share buttons, share counter, share icons, share links, share page, share post, sharebar, sharing, sharing icons, social, social app, social buttons, social comment, social comment facebook, social connect, social floating icons, social follow, social icon, social icons, social media, social media app, social media buttons, Social Media Plugins, social media share, social media sharing, social media tools, social network share, Social Plugins, social provider, social share, Social Share Buttons, social share icon, social share icons, social sharing, social sharing icons, social widget, stumbleupon sharing, tumblr share, tumblr sharing, twitter, twitter share, woocommerce, woocommerce connect, woocommerce sharing, yahoo
|
5 |
-
Requires at least: 3.8
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 2.0.
|
8 |
-
License: GPLv3 or later
|
9 |
-
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
-
|
11 |
-
This is by far the best free WordPress share plugin. It is simple yet does exactly what it should with plenty of customisation options.
|
12 |
-
== Description ==
|
13 |
-
|
14 |
-
This is by far the best & easiest to use WordPress social media share plugin. A WordPress share plugin with custom icons built-in.
|
15 |
-
|
16 |
-
|
17 |
-
= Plugin Options =
|
18 |
-
|
19 |
-
* Social networks available: Facebook, Twitter, LinkedIN,
|
20 |
-
* Turn on/off each of them, individually.
|
21 |
-
*
|
22 |
-
*
|
23 |
-
*
|
24 |
-
*
|
25 |
-
*
|
26 |
-
*
|
27 |
-
*
|
28 |
-
*
|
29 |
-
*
|
30 |
-
*
|
31 |
-
*
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
*
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
*
|
103 |
-
|
104 |
-
|
105 |
-
*
|
106 |
-
|
107 |
-
=
|
108 |
-
*
|
109 |
-
|
110 |
-
|
111 |
-
*
|
112 |
-
|
113 |
-
|
114 |
-
*
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
121 |
* Initial release
|
1 |
+
=== Plugin Name ===
|
2 |
+
|
3 |
+
Contributors: machothemes, silkalns
|
4 |
+
Tags: Facebook, facebook connect, facebook like, facebook share, facebook share icon, floating buttons, floating share, floating share icons, follow, google, Google Login, google plus, icons, increase shares, linkedin, linkedin share, media, page, pinterest, pinterest button, pinterest share, plugin, post to social networks, Reddit, reddit share, reddit sharing, Share, share button, share buttons, share counter, share icons, share links, share page, share post, sharebar, sharing, sharing icons, social, social app, social buttons, social comment, social comment facebook, social connect, social floating icons, social follow, social icon, social icons, social media, social media app, social media buttons, Social Media Plugins, social media share, social media sharing, social media tools, social network share, Social Plugins, social provider, social share, Social Share Buttons, social share icon, social share icons, social sharing, social sharing icons, social widget, stumbleupon sharing, tumblr share, tumblr sharing, twitter, twitter share, woocommerce, woocommerce connect, woocommerce sharing, yahoo
|
5 |
+
Requires at least: 3.8
|
6 |
+
Tested up to: 4.9
|
7 |
+
Stable tag: 2.0.7
|
8 |
+
License: GPLv3 or later
|
9 |
+
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
+
|
11 |
+
This is by far the best free WordPress share plugin. It is simple yet does exactly what it should with plenty of customisation options.
|
12 |
+
== Description ==
|
13 |
+
|
14 |
+
This is by far the best & easiest to use WordPress social media share plugin. A WordPress share plugin with custom icons built-in.
|
15 |
+
|
16 |
+
|
17 |
+
= Plugin Options =
|
18 |
+
|
19 |
+
* Social networks available: Facebook, Twitter, LinkedIN, Pinterest, and Google Plus.
|
20 |
+
* Turn on/off each of them, individually.
|
21 |
+
* Great UI with intuitive & simple options.
|
22 |
+
* Built for the regular user.
|
23 |
+
* Change the style of the article bar group.
|
24 |
+
* Display the number of counts next to the social network icon.
|
25 |
+
* Enable/disable the floating bar.
|
26 |
+
* Change the shape of the floating bar’s social buttons.
|
27 |
+
* Add social identities.
|
28 |
+
* Add a "Click to tweet" button in WordPress editor.
|
29 |
+
* Google Analytics tracking.
|
30 |
+
* Four different Skins.
|
31 |
+
* The default, square style.
|
32 |
+
* The more futuristic approach, shift style.
|
33 |
+
* The friendly approach, pill (rounded corners) style.
|
34 |
+
* The eye-catching approach, leaf style (like a leaf in the wind).
|
35 |
+
* Display social icons: before content, after content or both.
|
36 |
+
* Amazing loading speed.
|
37 |
+
|
38 |
+
= Kiwi comes with a premium version as well that contains a few extra features: =
|
39 |
+
|
40 |
+
* Possibility of re-arranging icon position on the share bar.
|
41 |
+
* Display social icons on: posts, pages, or media.
|
42 |
+
* Extra social networks available: Reddit, Email, Telegram, Whatsapp, and Skype.
|
43 |
+
* Possibility of changing the colors.
|
44 |
+
* WhatsApp icon visible on desktop browsers
|
45 |
+
* Allows tweeting the current selected text in the page.
|
46 |
+
* Monochrome options.
|
47 |
+
|
48 |
+
= WordPress Social Media Widget (for website) =
|
49 |
+
|
50 |
+
A WordPress Social Media Widget solution is coming soon, stay tuned.
|
51 |
+
|
52 |
+
**About us:**
|
53 |
+
|
54 |
+
We are a young team of WordPress aficionados who love building WordPress plugins & <a href="https://www.machothemes.com/" rel="friend" target="_blank" title="Premium WordPress themes">Premium WordPress themes</a> over on our theme shop. We’re also blogging and wish to help our users find the best <a rel="friend" href="https://www.machothemes.com/blog/cheap-wordpress-hosting/" target="_blank" title="Cheap WordPress Hosting">Cheap WordPress hosting</a> & the best <a href="https://www.machothemes.com/blog/best-free-wordpress-bootstrap-themes/" title="Bootstrap WordPress themes" target="_blank" rel="friend">Bootstrap WordPress Themes</a>.
|
55 |
+
|
56 |
+
|
57 |
+
== Installation ==
|
58 |
+
|
59 |
+
This section describes how to install the plugin and get it working.
|
60 |
+
|
61 |
+
1. Upload the whole contents of the folder `kiwi-social-share` to the `/wp-content/plugins/` directory
|
62 |
+
2. Activate the plugin through the 'Plugins' menu in WordPress
|
63 |
+
3. Enjoy using it :)
|
64 |
+
|
65 |
+
|
66 |
+
== Screenshots ==
|
67 |
+
|
68 |
+
1. Screenshot of the back-end User Interface. All options are displayed above the fold (no scrolling, no fiddling around). Really easy to use.
|
69 |
+
|
70 |
+
== Frequently Asked Questions ==
|
71 |
+
|
72 |
+
Available filters (used for frontend rendering)
|
73 |
+
Article Bar Filters
|
74 |
+
kiwi_article_bar_list_custom_class
|
75 |
+
kiwi_before_article_bar
|
76 |
+
kiwi_before_first_article_bar_item
|
77 |
+
kiwi_after_last_article_bar_item
|
78 |
+
kiwi_after_article_bar
|
79 |
+
|
80 |
+
Floating Bar Filters
|
81 |
+
kiwi_floating_bar_list_custom_class
|
82 |
+
kiwi_before_floating_bar
|
83 |
+
kiwi_before_first_floating_bar_item
|
84 |
+
kiwi_after_last_floating_bar_item
|
85 |
+
kiwi_after_floating_bar
|
86 |
+
|
87 |
+
|
88 |
+
|
89 |
+
== Changelog ==
|
90 |
+
|
91 |
+
= 2.0.7 =
|
92 |
+
* added uninstall feedback
|
93 |
+
|
94 |
+
= 2.0.6 =
|
95 |
+
* WP 4.9 compatibility
|
96 |
+
* Remove url encode on twitter button
|
97 |
+
* WhatsApp button didn't look alright on fit
|
98 |
+
|
99 |
+
= 2.0.4 =
|
100 |
+
* Removed box shadow in the admin window
|
101 |
+
* Changed how URLS are encoded for text
|
102 |
+
* WhatsApp icon visibility is now handled with CSS ( wp_is_mobile function would not work on websites with cache )
|
103 |
+
|
104 |
+
= 2.0.3 =
|
105 |
+
* Saving settings would cause errors on some servers
|
106 |
+
|
107 |
+
= 2.0.2 =
|
108 |
+
* Ajax request failed on license activation
|
109 |
+
|
110 |
+
= 2.0.1 =
|
111 |
+
* Minor bugs
|
112 |
+
|
113 |
+
= 2.0.0 =
|
114 |
+
* Major upgrade
|
115 |
+
|
116 |
+
= 1.0.4 =
|
117 |
+
* When checked, the Google+ icon wasn’t showing up. Fix provided via GitHub by @smartinsalmeida
|
118 |
+
|
119 |
+
= 1.0.3 =
|
120 |
+
* Increased the weight on the front-end selectors so that margin & padding are harder to get overwritten by themes. Feels like some themes don't want to play nice
|
121 |
+
|
122 |
+
= 1.0.2 =
|
123 |
+
* Fixed a small bug where content wasn't being returned if kiwi was turned off on posts and pages.
|
124 |
+
* Added share bar margins top/bottom.
|
125 |
+
* Fixed a small rendering bug in the back-end for images.
|
126 |
+
* Fixed a small bug where content wasn't being returned on !is_singular() pages (archives)
|
127 |
+
|
128 |
+
= 1.0.1 =
|
129 |
+
* Replaced Kiwi Logo with Dashicons icon
|
130 |
+
* Fixed a small bug with the notifications bar overlapping the form
|
131 |
+
badge
|
132 |
+
* Enhanced the way we control sortables. When you disable a radio
|
133 |
+
within a sortable, that sortable gets it’s opacity lowered.
|
134 |
+
* Properly formatted JS code with PHPStorm formatting.
|
135 |
+
* Small assets/back-end/images/ re-organization. Now, social icons have
|
136 |
+
been renamed and moved into their own folder.
|
137 |
+
* Slightly re-worked the sortable/draggable field to support icons. No
|
138 |
+
more CSS background images
|
139 |
+
|
140 |
+
|
141 |
+
= 1.0.0 =
|
142 |
* Initial release
|
uninstall.php
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* This file runs when the plugin in uninstalled (deleted).
|
4 |
-
*/
|
5 |
-
|
6 |
-
// If plugin is not being uninstalled, exit (do nothing)
|
7 |
-
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
|
8 |
-
exit;
|
9 |
-
}
|
10 |
-
|
11 |
-
// Do something here if plugin is being uninstalled.
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* This file runs when the plugin in uninstalled (deleted).
|
4 |
+
*/
|
5 |
+
|
6 |
+
// If plugin is not being uninstalled, exit (do nothing)
|
7 |
+
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
|
8 |
+
exit;
|
9 |
+
}
|
10 |
+
|
11 |
+
// Do something here if plugin is being uninstalled.
|