Version Description
- new: added background field
- new: added 'output' argument to directly output the CSS
Download this release
Release Info
Developer | aristath |
Plugin | Kirki |
Version | 0.3 |
Comparing to | |
See all releases |
Version 0.3
- LICENSE +339 -0
- README.md +4 -0
- assets/css/customizer.css +132 -0
- assets/css/jquery-ui-1.10.0.custom.css +1487 -0
- assets/images/1c.png +0 -0
- assets/images/2cl.png +0 -0
- assets/images/2cr.png +0 -0
- assets/images/3cl.png +0 -0
- assets/images/3cm.png +0 -0
- assets/images/3cr.png +0 -0
- assets/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- assets/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- assets/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- assets/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- assets/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- assets/images/ui-bg_glass_75_ffffff_1x400.png +0 -0
- assets/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- assets/images/ui-bg_inset-soft_95_fef1ec_1x100.png +0 -0
- assets/images/ui-icons_222222_256x240.png +0 -0
- assets/images/ui-icons_2e83ff_256x240.png +0 -0
- assets/images/ui-icons_454545_256x240.png +0 -0
- assets/images/ui-icons_888888_256x240.png +0 -0
- assets/images/ui-icons_cd0a0a_256x240.png +0 -0
- assets/images/ui-icons_f6cf3b_256x240.png +0 -0
- assets/js/customizer.js +25 -0
- assets/js/tooltipsy.min.js +20 -0
- includes/controls/class-Kirki_Customize_Checkbox_Control.php +59 -0
- includes/controls/class-Kirki_Customize_Color_Control.php +129 -0
- includes/controls/class-Kirki_Customize_Image_Control.php +230 -0
- includes/controls/class-Kirki_Customize_Multicheck_Control.php +116 -0
- includes/controls/class-Kirki_Customize_Number_Control.php +36 -0
- includes/controls/class-Kirki_Customize_Radio_Control.php +127 -0
- includes/controls/class-Kirki_Customize_Sliderui_Control.php +88 -0
- includes/controls/class-Kirki_Customize_Text_Control.php +65 -0
- includes/controls/class-Kirki_Customize_Textarea_Control.php +63 -0
- includes/controls/class-Kirki_Customize_Upload_Control.php +108 -0
- includes/controls/class-Kirki_Select_Control.php +75 -0
- includes/controls/controls-init.php +385 -0
- includes/functions/background-css.php +62 -0
- includes/functions/color-functions.php +126 -0
- kirki.php +179 -0
- readme.txt +36 -0
LICENSE
ADDED
@@ -0,0 +1,339 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
GNU GENERAL PUBLIC LICENSE
|
2 |
+
Version 2, June 1991
|
3 |
+
|
4 |
+
Copyright (C) 1989, 1991 Free Software Foundation, Inc., <http://fsf.org/>
|
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 |
+
{description}
|
294 |
+
Copyright (C) {year} {fullname}
|
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.
|
README.md
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
1 |
+
Kirki
|
2 |
+
=====
|
3 |
+
|
4 |
+
Please visit http://kirki.org for documentation and examples
|
assets/css/customizer.css
ADDED
@@ -0,0 +1,132 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
body {
|
2 |
+
font-family: 'Roboto', sans-serif;
|
3 |
+
}
|
4 |
+
|
5 |
+
h3,
|
6 |
+
.customize-control-title {
|
7 |
+
font-family: 'Roboto Slab', serif;
|
8 |
+
}
|
9 |
+
|
10 |
+
li.customize-control.customize-control-slider input[type=text] {
|
11 |
+
width: 20%;
|
12 |
+
float: left;
|
13 |
+
text-align: center;
|
14 |
+
}
|
15 |
+
|
16 |
+
li.customize-control.customize-control-slider .ss-slider {
|
17 |
+
width: 70%;
|
18 |
+
margin-left: 25%;
|
19 |
+
margin-top: 12px;
|
20 |
+
}
|
21 |
+
.wp-core-ui .button.tooltip {
|
22 |
+
margin-top: 5px;
|
23 |
+
color: #fff;
|
24 |
+
border: 0px;
|
25 |
+
border-radius: 50%;
|
26 |
+
width: 20px;
|
27 |
+
height: 20px;
|
28 |
+
text-align: center;
|
29 |
+
padding: 0;
|
30 |
+
line-height: 20px;
|
31 |
+
font-weight: bold;
|
32 |
+
-webkit-box-shadow: none;
|
33 |
+
box-shadow: none;
|
34 |
+
float: right;
|
35 |
+
}
|
36 |
+
|
37 |
+
.customize-control-radio label {
|
38 |
+
line-height: 28px;
|
39 |
+
padding: 5px 10px;
|
40 |
+
}
|
41 |
+
|
42 |
+
.image.ui-buttonset label.ui-button {
|
43 |
+
padding: 2px;
|
44 |
+
line-height: 0;
|
45 |
+
border-radius: 0;
|
46 |
+
margin-right: 0;
|
47 |
+
background: #999;
|
48 |
+
border: 0;
|
49 |
+
}
|
50 |
+
|
51 |
+
li .image.ui-buttonset label.ui-button {
|
52 |
+
margin-bottom: 10px;
|
53 |
+
margin-right: 15px;
|
54 |
+
}
|
55 |
+
|
56 |
+
.customizer-subtitle {
|
57 |
+
color: #999;
|
58 |
+
font-size: 0.9em;
|
59 |
+
margin-bottom: 5px;
|
60 |
+
}
|
61 |
+
|
62 |
+
#customize-info .accordion-section-title,
|
63 |
+
#customize-info .accordion-section-title:hover {
|
64 |
+
color: #fff;
|
65 |
+
}
|
66 |
+
|
67 |
+
#customize-theme-controls .accordion-section-title {
|
68 |
+
color: #fff;
|
69 |
+
}
|
70 |
+
|
71 |
+
#customize-theme-controls .control-section .accordion-section-title {
|
72 |
+
color: #fff;
|
73 |
+
}
|
74 |
+
|
75 |
+
#customize-theme-controls .control-section .accordion-section-title:focus,
|
76 |
+
#customize-theme-controls .control-section .accordion-section-title:hover,
|
77 |
+
#customize-theme-controls .control-section.open .accordion-section-title,
|
78 |
+
#customize-theme-controls .control-section:hover .accordion-section-title {
|
79 |
+
color: #fff;
|
80 |
+
}
|
81 |
+
|
82 |
+
#customize-theme-controls .control-section .accordion-section-title:focus::after,
|
83 |
+
#customize-theme-controls .control-section .accordion-section-title:hover::after,
|
84 |
+
#customize-theme-controls .control-section.open .accordion-section-title::after,
|
85 |
+
#customize-theme-controls .control-section:hover .accordion-section-title::after {
|
86 |
+
color: #fff;
|
87 |
+
}
|
88 |
+
|
89 |
+
div.kirki-customizer {
|
90 |
+
height: 80px;
|
91 |
+
}
|
92 |
+
|
93 |
+
.wp-full-overlay.expanded {
|
94 |
+
margin-left: 330px;
|
95 |
+
}
|
96 |
+
.wp-full-overlay-sidebar {
|
97 |
+
width: 330px;
|
98 |
+
}
|
99 |
+
|
100 |
+
.wp-core-ui .button-primary {
|
101 |
+
border: 0px;
|
102 |
+
}
|
103 |
+
|
104 |
+
.wp-core-ui .button-primary.focus,
|
105 |
+
.wp-core-ui .button-primary.hover,
|
106 |
+
.wp-core-ui .button-primary:focus,
|
107 |
+
.wp-core-ui .button-primary:hover {
|
108 |
+
border: 0px;
|
109 |
+
}
|
110 |
+
|
111 |
+
.wp-core-ui .button-primary-disabled,
|
112 |
+
.wp-core-ui .button-primary.disabled,
|
113 |
+
.wp-core-ui .button-primary:disabled,
|
114 |
+
.wp-core-ui .button-primary[disabled] {
|
115 |
+
border: 0px !important;
|
116 |
+
}
|
117 |
+
|
118 |
+
.customize-control-title {
|
119 |
+
color: #555;
|
120 |
+
}
|
121 |
+
|
122 |
+
li.customize-control {
|
123 |
+
margin: 5px 0;
|
124 |
+
}
|
125 |
+
|
126 |
+
.wp-full-overlay-sidebar .wp-full-overlay-header,
|
127 |
+
#customize-info .accordion-section-title,
|
128 |
+
#customize-theme-controls .control-section:last-of-type .accordion-section-title,
|
129 |
+
#customize-theme-controls .control-section:last-of-type.open,
|
130 |
+
div.kirki-customizer {
|
131 |
+
border-bottom: 1px solid rgba( 255, 255, 255, 0.2 );
|
132 |
+
}
|
assets/css/jquery-ui-1.10.0.custom.css
ADDED
@@ -0,0 +1,1487 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*!
|
2 |
+
* jQuery UI Bootstrap (0.5)
|
3 |
+
* http://addyosmani.github.com/jquery-ui-bootstrap
|
4 |
+
*
|
5 |
+
* Copyright 2012 - 2013, Addy Osmani
|
6 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
7 |
+
*
|
8 |
+
* Portions copyright jQuery UI & Twitter Bootstrap
|
9 |
+
*/
|
10 |
+
|
11 |
+
|
12 |
+
/* Layout helpers
|
13 |
+
----------------------------------*/
|
14 |
+
.ui-helper-hidden { display: none; }
|
15 |
+
.ui-helper-hidden-accessible {
|
16 |
+
border: 0; clip: rect(0 0 0 0);
|
17 |
+
height: 1px;
|
18 |
+
margin: -1px;
|
19 |
+
overflow: hidden;
|
20 |
+
padding: 0;
|
21 |
+
position: absolute;
|
22 |
+
width: 1px;
|
23 |
+
}
|
24 |
+
.ui-helper-reset {
|
25 |
+
margin: 0;
|
26 |
+
padding: 0;
|
27 |
+
border: 0;
|
28 |
+
outline: 0;
|
29 |
+
line-height: 1.3;
|
30 |
+
text-decoration: none;
|
31 |
+
font-size: 100%;
|
32 |
+
list-style: none;
|
33 |
+
}
|
34 |
+
.ui-helper-clearfix:before,
|
35 |
+
.ui-helper-clearfix:after {
|
36 |
+
content: "";
|
37 |
+
display: table;
|
38 |
+
}
|
39 |
+
.ui-helper-clearfix:after {
|
40 |
+
content: ".";
|
41 |
+
display: block;
|
42 |
+
height: 0;
|
43 |
+
clear: both;
|
44 |
+
visibility: hidden;
|
45 |
+
}
|
46 |
+
.ui-helper-clearfix {
|
47 |
+
/*display: inline-block; */
|
48 |
+
display:block;
|
49 |
+
min-height: 0; /* support: IE7 */
|
50 |
+
}
|
51 |
+
/* required comment for clearfix to work in Opera \*/
|
52 |
+
* html .ui-helper-clearfix {
|
53 |
+
height:1%;
|
54 |
+
}
|
55 |
+
|
56 |
+
/* end clearfix */
|
57 |
+
.ui-helper-zfix {
|
58 |
+
width: 100%;
|
59 |
+
height: 100%;
|
60 |
+
top: 0;
|
61 |
+
left: 0;
|
62 |
+
position: absolute;
|
63 |
+
opacity: 0;
|
64 |
+
filter:Alpha(Opacity=0);
|
65 |
+
}
|
66 |
+
.ui-front {
|
67 |
+
z-index: 100;
|
68 |
+
}
|
69 |
+
|
70 |
+
|
71 |
+
/* Interaction Cues
|
72 |
+
----------------------------------*/
|
73 |
+
.ui-state-disabled { cursor: default !important; }
|
74 |
+
|
75 |
+
|
76 |
+
/* Icons
|
77 |
+
----------------------------------*/
|
78 |
+
|
79 |
+
/* states and images */
|
80 |
+
.ui-icon {
|
81 |
+
display: block;
|
82 |
+
text-indent: -99999px;
|
83 |
+
overflow: hidden;
|
84 |
+
background-repeat: no-repeat;
|
85 |
+
}
|
86 |
+
|
87 |
+
|
88 |
+
/* Misc visuals
|
89 |
+
----------------------------------*/
|
90 |
+
|
91 |
+
/* Overlays */
|
92 |
+
.ui-widget-overlay {
|
93 |
+
position: absolute;
|
94 |
+
top: 0;
|
95 |
+
left: 0;
|
96 |
+
width: 100%;
|
97 |
+
height: 100%;
|
98 |
+
}
|
99 |
+
|
100 |
+
/*
|
101 |
+
* jQuery UI Resizable 1.10.0
|
102 |
+
*
|
103 |
+
* Copyright 2013, AUTHORS.txt (http://jqueryui.com/about)
|
104 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
105 |
+
* http://jquery.org/license
|
106 |
+
*
|
107 |
+
* http://api.jqueryui.com/resizable/
|
108 |
+
*/
|
109 |
+
|
110 |
+
.ui-resizable {
|
111 |
+
position: relative;
|
112 |
+
}
|
113 |
+
.ui-resizable-handle {
|
114 |
+
position: absolute;
|
115 |
+
font-size: 0.1px;
|
116 |
+
z-index: 99999;
|
117 |
+
display: block;
|
118 |
+
}
|
119 |
+
.ui-resizable-disabled .ui-resizable-handle, .ui-resizable-autohide .ui-resizable-handle {
|
120 |
+
display: none;
|
121 |
+
}
|
122 |
+
.ui-resizable-n {
|
123 |
+
cursor: n-resize;
|
124 |
+
height: 7px;
|
125 |
+
width: 100%;
|
126 |
+
top: -5px;
|
127 |
+
left: 0;
|
128 |
+
}
|
129 |
+
.ui-resizable-s {
|
130 |
+
cursor: s-resize;
|
131 |
+
height: 7px;
|
132 |
+
width: 100%;
|
133 |
+
bottom: -5px;
|
134 |
+
left: 0;
|
135 |
+
}
|
136 |
+
.ui-resizable-e {
|
137 |
+
cursor: e-resize;
|
138 |
+
width: 7px;
|
139 |
+
right: -5px;
|
140 |
+
top: 0;
|
141 |
+
height: 100%;
|
142 |
+
}
|
143 |
+
.ui-resizable-w {
|
144 |
+
cursor: w-resize;
|
145 |
+
width: 7px;
|
146 |
+
left: -5px;
|
147 |
+
top: 0;
|
148 |
+
height: 100%;
|
149 |
+
}
|
150 |
+
.ui-resizable-se {
|
151 |
+
cursor: se-resize;
|
152 |
+
width: 12px;
|
153 |
+
height: 12px;
|
154 |
+
right: 1px;
|
155 |
+
bottom: 1px;
|
156 |
+
}
|
157 |
+
.ui-resizable-sw {
|
158 |
+
cursor: sw-resize;
|
159 |
+
width: 9px;
|
160 |
+
height: 9px;
|
161 |
+
left: -5px;
|
162 |
+
bottom: -5px;
|
163 |
+
}
|
164 |
+
.ui-resizable-nw {
|
165 |
+
cursor: nw-resize;
|
166 |
+
width: 9px;
|
167 |
+
height: 9px;
|
168 |
+
left: -5px;
|
169 |
+
top: -5px;
|
170 |
+
}
|
171 |
+
.ui-resizable-ne {
|
172 |
+
cursor: ne-resize;
|
173 |
+
width: 9px;
|
174 |
+
height: 9px;
|
175 |
+
right: -5px;
|
176 |
+
top: -5px;
|
177 |
+
}
|
178 |
+
|
179 |
+
/*
|
180 |
+
* jQuery UI Selectable 1.10.0
|
181 |
+
*
|
182 |
+
* Copyright 2013, AUTHORS.txt (http://jqueryui.com/about)
|
183 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
184 |
+
* http://jquery.org/license
|
185 |
+
*
|
186 |
+
* http://jqueryui.com/selectable/
|
187 |
+
*/
|
188 |
+
.ui-selectable-helper {
|
189 |
+
position: absolute;
|
190 |
+
z-index: 100;
|
191 |
+
border:1px dotted black;
|
192 |
+
}
|
193 |
+
|
194 |
+
/*
|
195 |
+
* jQuery UI CSS Framework 1.10.0
|
196 |
+
*
|
197 |
+
* Copyright 2013, AUTHORS.txt (http://jqueryui.com/about)
|
198 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
199 |
+
* http://jquery.org/license
|
200 |
+
*
|
201 |
+
*
|
202 |
+
*
|
203 |
+
* To view and modify this theme, visit http://jqueryui.com/themeroller/
|
204 |
+
*/
|
205 |
+
|
206 |
+
/* Component containers
|
207 |
+
----------------------------------*/
|
208 |
+
.ui-widget { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size:13px; }
|
209 |
+
.ui-widget .ui-widget { font-size: 1em; }
|
210 |
+
.ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 1em; }
|
211 |
+
.ui-widget-content { border: 1px solid #aaaaaa; background: #ffffff url(../images/ui-bg_glass_75_ffffff_1x400.png) 50% 50% repeat-x; color: #404040; }
|
212 |
+
.ui-widget-content a { color: #404040; }
|
213 |
+
.ui-widget-header {
|
214 |
+
font-weight:bold;
|
215 |
+
border-color: #0064cd #0064cd #003f81;
|
216 |
+
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
|
217 |
+
border:1px solid #666;
|
218 |
+
|
219 |
+
}
|
220 |
+
.ui-widget-header a { color: #222222; }
|
221 |
+
|
222 |
+
/* Interaction states
|
223 |
+
----------------------------------*/
|
224 |
+
.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default {
|
225 |
+
|
226 |
+
background-color: #FF5740;
|
227 |
+
|
228 |
+
color: #333;
|
229 |
+
font-size: 13px;
|
230 |
+
line-height: normal;
|
231 |
+
border: 1px solid #CC1424;
|
232 |
+
-webkit-transition: 0.1s linear background-image;
|
233 |
+
-moz-transition: 0.1s linear background-image;
|
234 |
+
-ms-transition: 0.1s linear background-image;
|
235 |
+
-o-transition: 0.1s linear background-image;
|
236 |
+
transition: 0.1s linear background-image;
|
237 |
+
overflow: visible;
|
238 |
+
|
239 |
+
}
|
240 |
+
|
241 |
+
|
242 |
+
.ui-state-default a, .ui-state-default a:link, .ui-state-default a:visited { color: #555555; text-decoration: none; }
|
243 |
+
.ui-state-hover, .ui-widget-content .ui-state-hover, .ui-widget-header .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus, .ui-widget-header .ui-state-focus {
|
244 |
+
background-position: 0 -15px;
|
245 |
+
color: #333;
|
246 |
+
text-decoration: none;
|
247 |
+
}
|
248 |
+
|
249 |
+
.ui-state-hover a, .ui-state-hover a:hover, .ui-state-hover a:link, .ui-state-hover a:visited { color: #212121; text-decoration: none; }
|
250 |
+
.ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active { border: 1px solid #aaaaaa; font-weight: normal; color: #212121; }
|
251 |
+
.ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited { color: #212121; text-decoration: none; }
|
252 |
+
.ui-widget :active { outline: none; }
|
253 |
+
|
254 |
+
/* Interaction Cues
|
255 |
+
----------------------------------*/
|
256 |
+
|
257 |
+
|
258 |
+
.ui-state-highlight p, .ui-state-error p, .ui-state-default p{
|
259 |
+
font-size: 13px;
|
260 |
+
font-weight: normal;
|
261 |
+
line-height: 18px;
|
262 |
+
margin:7px 15px;
|
263 |
+
}
|
264 |
+
.ui-state-highlight, .ui-widget-content .ui-state-highlight, .ui-widget-header .ui-state-highlight {
|
265 |
+
|
266 |
+
|
267 |
+
position: relative;
|
268 |
+
margin-bottom: 18px;
|
269 |
+
color: #404040;
|
270 |
+
background-color: #eedc94;
|
271 |
+
background-repeat: repeat-x;
|
272 |
+
background-image: -khtml-gradient(linear, left top, left bottom, from(#fceec1), to(#eedc94));
|
273 |
+
background-image: -moz-linear-gradient(top, #fceec1, #eedc94);
|
274 |
+
background-image: -ms-linear-gradient(top, #fceec1, #eedc94);
|
275 |
+
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #fceec1), color-stop(100%, #eedc94));
|
276 |
+
background-image: -webkit-linear-gradient(top, #fceec1, #eedc94);
|
277 |
+
background-image: -o-linear-gradient(top, #fceec1, #eedc94);
|
278 |
+
background-image: linear-gradient(top, #fceec1, #eedc94);
|
279 |
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fceec1', endColorstr='#eedc94', GradientType=0);
|
280 |
+
border-color: #eedc94 #eedc94 #e4c652;
|
281 |
+
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
|
282 |
+
border-width: 1px;
|
283 |
+
border-style: solid;
|
284 |
+
-webkit-border-radius: 4px;
|
285 |
+
-moz-border-radius: 4px;
|
286 |
+
border-radius: 4px;
|
287 |
+
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
|
288 |
+
-moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
|
289 |
+
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
|
290 |
+
|
291 |
+
|
292 |
+
}
|
293 |
+
.ui-state-highlight a, .ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a { color: #363636; }
|
294 |
+
.ui-state-error, .ui-widget-content .ui-state-error, .ui-widget-header .ui-state-error {
|
295 |
+
|
296 |
+
|
297 |
+
position: relative;
|
298 |
+
margin-bottom: 18px;
|
299 |
+
color: #ffffff;
|
300 |
+
border-width: 1px;
|
301 |
+
border-style: solid;
|
302 |
+
-webkit-border-radius: 4px;
|
303 |
+
-moz-border-radius: 4px;
|
304 |
+
border-radius: 4px;
|
305 |
+
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
|
306 |
+
-moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
|
307 |
+
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
|
308 |
+
background-color: #c43c35;
|
309 |
+
background-repeat: repeat-x;
|
310 |
+
background-image: -khtml-gradient(linear, left top, left bottom, from(#ee5f5b), to(#c43c35));
|
311 |
+
background-image: -moz-linear-gradient(top, #ee5f5b, #c43c35);
|
312 |
+
background-image: -ms-linear-gradient(top, #ee5f5b, #c43c35);
|
313 |
+
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #ee5f5b), color-stop(100%, #c43c35));
|
314 |
+
background-image: -webkit-linear-gradient(top, #ee5f5b, #c43c35);
|
315 |
+
background-image: -o-linear-gradient(top, #ee5f5b, #c43c35);
|
316 |
+
background-image: linear-gradient(top, #ee5f5b, #c43c35);
|
317 |
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ee5f5b', endColorstr='#c43c35', GradientType=0);
|
318 |
+
border-color: #c43c35 #c43c35 #882a25;
|
319 |
+
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
|
320 |
+
|
321 |
+
|
322 |
+
}
|
323 |
+
.ui-state-error a, .ui-widget-content .ui-state-error a, .ui-widget-header .ui-state-error a { color: #cd0a0a; }
|
324 |
+
.ui-state-error-text, .ui-widget-content .ui-state-error-text, .ui-widget-header .ui-state-error-text { color: #cd0a0a; }
|
325 |
+
.ui-priority-primary, .ui-widget-content .ui-priority-primary, .ui-widget-header .ui-priority-primary { font-weight: bold; }
|
326 |
+
.ui-priority-secondary, .ui-widget-content .ui-priority-secondary, .ui-widget-header .ui-priority-secondary { opacity: .7; filter:Alpha(Opacity=70); font-weight: normal; }
|
327 |
+
.ui-state-disabled, .ui-widget-content .ui-state-disabled, .ui-widget-header .ui-state-disabled { opacity: .35; filter:Alpha(Opacity=35); background-image: none; }
|
328 |
+
.ui-state-disabled .ui-icon { filter:Alpha(Opacity=35); } /* For IE8 - See #6059 */
|
329 |
+
|
330 |
+
|
331 |
+
/* Icons
|
332 |
+
----------------------------------*/
|
333 |
+
|
334 |
+
/* states and images */
|
335 |
+
.ui-icon { width: 16px; height: 16px; background-image: url(../images/ui-icons_222222_256x240.png); }
|
336 |
+
.ui-widget-content .ui-icon {background-image: url(../images/ui-icons_222222_256x240.png); }
|
337 |
+
.ui-widget-header .ui-icon {background-image: url(../images/ui-icons_222222_256x240.png); }
|
338 |
+
.ui-state-default .ui-icon { background-image: url(../images/ui-icons_888888_256x240.png); }
|
339 |
+
.ui-state-hover .ui-icon, .ui-state-focus .ui-icon {background-image: url(../images/ui-icons_454545_256x240.png); }
|
340 |
+
.ui-state-active .ui-icon {background-image: url(../images/ui-icons_454545_256x240.png); }
|
341 |
+
.ui-state-highlight .ui-icon {background-image: url(../images/ui-icons_2e83ff_256x240.png); }
|
342 |
+
.ui-state-error .ui-icon, .ui-state-error-text .ui-icon {background-image: url(../images/ui-icons_f6cf3b_256x240.png); }
|
343 |
+
|
344 |
+
/* positioning */
|
345 |
+
.ui-icon-carat-1-n { background-position: 0 0; }
|
346 |
+
.ui-icon-carat-1-ne { background-position: -16px 0; }
|
347 |
+
.ui-icon-carat-1-e { background-position: -32px 0; }
|
348 |
+
.ui-icon-carat-1-se { background-position: -48px 0; }
|
349 |
+
.ui-icon-carat-1-s { background-position: -64px 0; }
|
350 |
+
.ui-icon-carat-1-sw { background-position: -80px 0; }
|
351 |
+
.ui-icon-carat-1-w { background-position: -96px 0; }
|
352 |
+
.ui-icon-carat-1-nw { background-position: -112px 0; }
|
353 |
+
.ui-icon-carat-2-n-s { background-position: -128px 0; }
|
354 |
+
.ui-icon-carat-2-e-w { background-position: -144px 0; }
|
355 |
+
.ui-icon-triangle-1-n { background-position: 0 -16px; }
|
356 |
+
.ui-icon-triangle-1-ne { background-position: -16px -16px; }
|
357 |
+
.ui-icon-triangle-1-e { background-position: -32px -16px; }
|
358 |
+
.ui-icon-triangle-1-se { background-position: -48px -16px; }
|
359 |
+
.ui-icon-triangle-1-s { background-position: -64px -16px; }
|
360 |
+
.ui-icon-triangle-1-sw { background-position: -80px -16px; }
|
361 |
+
.ui-icon-triangle-1-w { background-position: -96px -16px; }
|
362 |
+
.ui-icon-triangle-1-nw { background-position: -112px -16px; }
|
363 |
+
.ui-icon-triangle-2-n-s { background-position: -128px -16px; }
|
364 |
+
.ui-icon-triangle-2-e-w { background-position: -144px -16px; }
|
365 |
+
.ui-icon-arrow-1-n { background-position: 0 -32px; }
|
366 |
+
.ui-icon-arrow-1-ne { background-position: -16px -32px; }
|
367 |
+
.ui-icon-arrow-1-e { background-position: -32px -32px; }
|
368 |
+
.ui-icon-arrow-1-se { background-position: -48px -32px; }
|
369 |
+
.ui-icon-arrow-1-s { background-position: -64px -32px; }
|
370 |
+
.ui-icon-arrow-1-sw { background-position: -80px -32px; }
|
371 |
+
.ui-icon-arrow-1-w { background-position: -96px -32px; }
|
372 |
+
.ui-icon-arrow-1-nw { background-position: -112px -32px; }
|
373 |
+
.ui-icon-arrow-2-n-s { background-position: -128px -32px; }
|
374 |
+
.ui-icon-arrow-2-ne-sw { background-position: -144px -32px; }
|
375 |
+
.ui-icon-arrow-2-e-w { background-position: -160px -32px; }
|
376 |
+
.ui-icon-arrow-2-se-nw { background-position: -176px -32px; }
|
377 |
+
.ui-icon-arrowstop-1-n { background-position: -192px -32px; }
|
378 |
+
.ui-icon-arrowstop-1-e { background-position: -208px -32px; }
|
379 |
+
.ui-icon-arrowstop-1-s { background-position: -224px -32px; }
|
380 |
+
.ui-icon-arrowstop-1-w { background-position: -240px -32px; }
|
381 |
+
.ui-icon-arrowthick-1-n { background-position: 0 -48px; }
|
382 |
+
.ui-icon-arrowthick-1-ne { background-position: -16px -48px; }
|
383 |
+
.ui-icon-arrowthick-1-e { background-position: -32px -48px; }
|
384 |
+
.ui-icon-arrowthick-1-se { background-position: -48px -48px; }
|
385 |
+
.ui-icon-arrowthick-1-s { background-position: -64px -48px; }
|
386 |
+
.ui-icon-arrowthick-1-sw { background-position: -80px -48px; }
|
387 |
+
.ui-icon-arrowthick-1-w { background-position: -96px -48px; }
|
388 |
+
.ui-icon-arrowthick-1-nw { background-position: -112px -48px; }
|
389 |
+
.ui-icon-arrowthick-2-n-s { background-position: -128px -48px; }
|
390 |
+
.ui-icon-arrowthick-2-ne-sw { background-position: -144px -48px; }
|
391 |
+
.ui-icon-arrowthick-2-e-w { background-position: -160px -48px; }
|
392 |
+
.ui-icon-arrowthick-2-se-nw { background-position: -176px -48px; }
|
393 |
+
.ui-icon-arrowthickstop-1-n { background-position: -192px -48px; }
|
394 |
+
.ui-icon-arrowthickstop-1-e { background-position: -208px -48px; }
|
395 |
+
.ui-icon-arrowthickstop-1-s { background-position: -224px -48px; }
|
396 |
+
.ui-icon-arrowthickstop-1-w { background-position: -240px -48px; }
|
397 |
+
.ui-icon-arrowreturnthick-1-w { background-position: 0 -64px; }
|
398 |
+
.ui-icon-arrowreturnthick-1-n { background-position: -16px -64px; }
|
399 |
+
.ui-icon-arrowreturnthick-1-e { background-position: -32px -64px; }
|
400 |
+
.ui-icon-arrowreturnthick-1-s { background-position: -48px -64px; }
|
401 |
+
.ui-icon-arrowreturn-1-w { background-position: -64px -64px; }
|
402 |
+
.ui-icon-arrowreturn-1-n { background-position: -80px -64px; }
|
403 |
+
.ui-icon-arrowreturn-1-e { background-position: -96px -64px; }
|
404 |
+
.ui-icon-arrowreturn-1-s { background-position: -112px -64px; }
|
405 |
+
.ui-icon-arrowrefresh-1-w { background-position: -128px -64px; }
|
406 |
+
.ui-icon-arrowrefresh-1-n { background-position: -144px -64px; }
|
407 |
+
.ui-icon-arrowrefresh-1-e { background-position: -160px -64px; }
|
408 |
+
.ui-icon-arrowrefresh-1-s { background-position: -176px -64px; }
|
409 |
+
.ui-icon-arrow-4 { background-position: 0 -80px; }
|
410 |
+
.ui-icon-arrow-4-diag { background-position: -16px -80px; }
|
411 |
+
.ui-icon-extlink { background-position: -32px -80px; }
|
412 |
+
.ui-icon-newwin { background-position: -48px -80px; }
|
413 |
+
.ui-icon-refresh { background-position: -64px -80px; }
|
414 |
+
.ui-icon-shuffle { background-position: -80px -80px; }
|
415 |
+
.ui-icon-transfer-e-w { background-position: -96px -80px; }
|
416 |
+
.ui-icon-transferthick-e-w { background-position: -112px -80px; }
|
417 |
+
.ui-icon-folder-collapsed { background-position: 0 -96px; }
|
418 |
+
.ui-icon-folder-open { background-position: -16px -96px; }
|
419 |
+
.ui-icon-document { background-position: -32px -96px; }
|
420 |
+
.ui-icon-document-b { background-position: -48px -96px; }
|
421 |
+
.ui-icon-note { background-position: -64px -96px; }
|
422 |
+
.ui-icon-mail-closed { background-position: -80px -96px; }
|
423 |
+
.ui-icon-mail-open { background-position: -96px -96px; }
|
424 |
+
.ui-icon-suitcase { background-position: -112px -96px; }
|
425 |
+
.ui-icon-comment { background-position: -128px -96px; }
|
426 |
+
.ui-icon-person { background-position: -144px -96px; }
|
427 |
+
.ui-icon-print { background-position: -160px -96px; }
|
428 |
+
.ui-icon-trash { background-position: -176px -96px; }
|
429 |
+
.ui-icon-locked { background-position: -192px -96px; }
|
430 |
+
.ui-icon-unlocked { background-position: -208px -96px; }
|
431 |
+
.ui-icon-bookmark { background-position: -224px -96px; }
|
432 |
+
.ui-icon-tag { background-position: -240px -96px; }
|
433 |
+
.ui-icon-home { background-position: 0 -112px; }
|
434 |
+
.ui-icon-flag { background-position: -16px -112px; }
|
435 |
+
.ui-icon-calendar { background-position: -32px -112px; }
|
436 |
+
.ui-icon-cart { background-position: -48px -112px; }
|
437 |
+
.ui-icon-pencil { background-position: -64px -112px; }
|
438 |
+
.ui-icon-clock { background-position: -80px -112px; }
|
439 |
+
.ui-icon-disk { background-position: -96px -112px; }
|
440 |
+
.ui-icon-calculator { background-position: -112px -112px; }
|
441 |
+
.ui-icon-zoomin { background-position: -128px -112px; }
|
442 |
+
.ui-icon-zoomout { background-position: -144px -112px; }
|
443 |
+
.ui-icon-search { background-position: -160px -112px; }
|
444 |
+
.ui-icon-wrench { background-position: -176px -112px; }
|
445 |
+
.ui-icon-gear { background-position: -192px -112px; }
|
446 |
+
.ui-icon-heart { background-position: -208px -112px; }
|
447 |
+
.ui-icon-star { background-position: -224px -112px; }
|
448 |
+
.ui-icon-link { background-position: -240px -112px; }
|
449 |
+
.ui-icon-cancel { background-position: 0 -128px; }
|
450 |
+
.ui-icon-plus { background-position: -16px -128px; }
|
451 |
+
.ui-icon-plusthick { background-position: -32px -128px; }
|
452 |
+
.ui-icon-minus { background-position: -48px -128px; }
|
453 |
+
.ui-icon-minusthick { background-position: -64px -128px; }
|
454 |
+
.ui-icon-close { background-position: -80px -128px; }
|
455 |
+
.ui-icon-closethick { background-position: -96px -128px; }
|
456 |
+
.ui-icon-key { background-position: -112px -128px; }
|
457 |
+
.ui-icon-lightbulb { background-position: -128px -128px; }
|
458 |
+
.ui-icon-scissors { background-position: -144px -128px; }
|
459 |
+
.ui-icon-clipboard { background-position: -160px -128px; }
|
460 |
+
.ui-icon-copy { background-position: -176px -128px; }
|
461 |
+
.ui-icon-contact { background-position: -192px -128px; }
|
462 |
+
.ui-icon-image { background-position: -208px -128px; }
|
463 |
+
.ui-icon-video { background-position: -224px -128px; }
|
464 |
+
.ui-icon-script { background-position: -240px -128px; }
|
465 |
+
.ui-icon-alert { background-position: 0 -144px; }
|
466 |
+
.ui-icon-info { background-position: -16px -144px; }
|
467 |
+
.ui-icon-notice { background-position: -32px -144px; }
|
468 |
+
.ui-icon-help { background-position: -48px -144px; }
|
469 |
+
.ui-icon-check { background-position: -64px -144px; }
|
470 |
+
.ui-icon-bullet { background-position: -80px -144px; }
|
471 |
+
.ui-icon-radio-off { background-position: -96px -144px; }
|
472 |
+
.ui-icon-radio-on { background-position: -112px -144px; }
|
473 |
+
.ui-icon-pin-w { background-position: -128px -144px; }
|
474 |
+
.ui-icon-pin-s { background-position: -144px -144px; }
|
475 |
+
.ui-icon-play { background-position: 0 -160px; }
|
476 |
+
.ui-icon-pause { background-position: -16px -160px; }
|
477 |
+
.ui-icon-seek-next { background-position: -32px -160px; }
|
478 |
+
.ui-icon-seek-prev { background-position: -48px -160px; }
|
479 |
+
.ui-icon-seek-end { background-position: -64px -160px; }
|
480 |
+
.ui-icon-seek-start { background-position: -80px -160px; }
|
481 |
+
/* ui-icon-seek-first is deprecated, use ui-icon-seek-start instead */
|
482 |
+
.ui-icon-seek-first { background-position: -80px -160px; }
|
483 |
+
.ui-icon-stop { background-position: -96px -160px; }
|
484 |
+
.ui-icon-eject { background-position: -112px -160px; }
|
485 |
+
.ui-icon-volume-off { background-position: -128px -160px; }
|
486 |
+
.ui-icon-volume-on { background-position: -144px -160px; }
|
487 |
+
.ui-icon-power { background-position: 0 -176px; }
|
488 |
+
.ui-icon-signal-diag { background-position: -16px -176px; }
|
489 |
+
.ui-icon-signal { background-position: -32px -176px; }
|
490 |
+
.ui-icon-battery-0 { background-position: -48px -176px; }
|
491 |
+
.ui-icon-battery-1 { background-position: -64px -176px; }
|
492 |
+
.ui-icon-battery-2 { background-position: -80px -176px; }
|
493 |
+
.ui-icon-battery-3 { background-position: -96px -176px; }
|
494 |
+
.ui-icon-circle-plus { background-position: 0 -192px; }
|
495 |
+
.ui-icon-circle-minus { background-position: -16px -192px; }
|
496 |
+
.ui-icon-circle-close { background-position: -32px -192px; }
|
497 |
+
.ui-icon-circle-triangle-e { background-position: -48px -192px; }
|
498 |
+
.ui-icon-circle-triangle-s { background-position: -64px -192px; }
|
499 |
+
.ui-icon-circle-triangle-w { background-position: -80px -192px; }
|
500 |
+
.ui-icon-circle-triangle-n { background-position: -96px -192px; }
|
501 |
+
.ui-icon-circle-arrow-e { background-position: -112px -192px; }
|
502 |
+
.ui-icon-circle-arrow-s { background-position: -128px -192px; }
|
503 |
+
.ui-icon-circle-arrow-w { background-position: -144px -192px; }
|
504 |
+
.ui-icon-circle-arrow-n { background-position: -160px -192px; }
|
505 |
+
.ui-icon-circle-zoomin { background-position: -176px -192px; }
|
506 |
+
.ui-icon-circle-zoomout { background-position: -192px -192px; }
|
507 |
+
.ui-icon-circle-check { background-position: -208px -192px; }
|
508 |
+
.ui-icon-circlesmall-plus { background-position: 0 -208px; }
|
509 |
+
.ui-icon-circlesmall-minus { background-position: -16px -208px; }
|
510 |
+
.ui-icon-circlesmall-close { background-position: -32px -208px; }
|
511 |
+
.ui-icon-squaresmall-plus { background-position: -48px -208px; }
|
512 |
+
.ui-icon-squaresmall-minus { background-position: -64px -208px; }
|
513 |
+
.ui-icon-squaresmall-close { background-position: -80px -208px; }
|
514 |
+
.ui-icon-grip-dotted-vertical { background-position: 0 -224px; }
|
515 |
+
.ui-icon-grip-dotted-horizontal { background-position: -16px -224px; }
|
516 |
+
.ui-icon-grip-solid-vertical { background-position: -32px -224px; }
|
517 |
+
.ui-icon-grip-solid-horizontal { background-position: -48px -224px; }
|
518 |
+
.ui-icon-gripsmall-diagonal-se { background-position: -64px -224px; }
|
519 |
+
.ui-icon-grip-diagonal-se { background-position: -80px -224px; }
|
520 |
+
|
521 |
+
|
522 |
+
/* Misc visuals
|
523 |
+
----------------------------------*/
|
524 |
+
|
525 |
+
/* Corner radius */
|
526 |
+
.ui-corner-all,
|
527 |
+
.ui-corner-top,
|
528 |
+
.ui-corner-left,
|
529 |
+
.ui-corner-tl {
|
530 |
+
-moz-border-radius-topleft: 4px;
|
531 |
+
-webkit-border-top-left-radius: 4px;
|
532 |
+
-khtml-border-top-left-radius: 4px;
|
533 |
+
border-top-left-radius: 4px;
|
534 |
+
}
|
535 |
+
.ui-corner-all,
|
536 |
+
.ui-corner-top,
|
537 |
+
.ui-corner-right,
|
538 |
+
.ui-corner-tr {
|
539 |
+
-moz-border-radius-topright: 4px;
|
540 |
+
-webkit-border-top-right-radius: 4px;
|
541 |
+
-khtml-border-top-right-radius: 4px;
|
542 |
+
border-top-right-radius: 4px;
|
543 |
+
}
|
544 |
+
.ui-corner-all,
|
545 |
+
.ui-corner-bottom,
|
546 |
+
.ui-corner-left,
|
547 |
+
.ui-corner-bl {
|
548 |
+
-moz-border-radius-bottomleft: 4px;
|
549 |
+
-webkit-border-bottom-left-radius: 4px;
|
550 |
+
-khtml-border-bottom-left-radius: 4px;
|
551 |
+
border-bottom-left-radius: 4px;
|
552 |
+
}
|
553 |
+
.ui-corner-all,
|
554 |
+
.ui-corner-bottom,
|
555 |
+
.ui-corner-right,
|
556 |
+
.ui-corner-br {
|
557 |
+
-moz-border-radius-bottomright: 4px;
|
558 |
+
-webkit-border-bottom-right-radius: 4px;
|
559 |
+
-khtml-border-bottom-right-radius: 4px;
|
560 |
+
border-bottom-right-radius: 4px;
|
561 |
+
}
|
562 |
+
|
563 |
+
|
564 |
+
/* Overlays */
|
565 |
+
|
566 |
+
.ui-widget-overlay {
|
567 |
+
background: #aaaaaa url(../images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x;
|
568 |
+
opacity: .30;
|
569 |
+
filter:Alpha(Opacity=30);
|
570 |
+
}
|
571 |
+
|
572 |
+
.ui-widget-shadow {
|
573 |
+
margin: -8px 0 0 -8px;
|
574 |
+
padding: 8px;
|
575 |
+
background: #aaaaaa url(../images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x;
|
576 |
+
opacity: .30;filter:Alpha(Opacity=30);
|
577 |
+
-moz-border-radius: 8px;
|
578 |
+
-khtml-border-radius: 8px;
|
579 |
+
-webkit-border-radius: 8px;
|
580 |
+
border-radius: 8px;
|
581 |
+
}
|
582 |
+
|
583 |
+
/*
|
584 |
+
* jQuery UI Accordion 1.10.0
|
585 |
+
*
|
586 |
+
* Copyright 2013, AUTHORS.txt (http://jqueryui.com/about)
|
587 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
588 |
+
* http://jquery.org/license
|
589 |
+
*
|
590 |
+
* http://jqueryui.com/accordion/
|
591 |
+
*/
|
592 |
+
|
593 |
+
/* IE/Win - Fix animation bug - #4615 */
|
594 |
+
|
595 |
+
.ui-accordion {
|
596 |
+
width: 100%;
|
597 |
+
}
|
598 |
+
.ui-accordion .ui-accordion-header {
|
599 |
+
cursor: pointer;
|
600 |
+
position: relative;
|
601 |
+
margin-top: 1px;
|
602 |
+
zoom: 1;
|
603 |
+
font-weight:bold;
|
604 |
+
}
|
605 |
+
.ui-accordion .ui-accordion-li-fix {
|
606 |
+
display: inline;
|
607 |
+
}
|
608 |
+
.ui-accordion .ui-accordion-header-active {
|
609 |
+
border-bottom: 0 !important;
|
610 |
+
}
|
611 |
+
.ui-accordion .ui-accordion-header a {
|
612 |
+
display: block;
|
613 |
+
font-size: 1em;
|
614 |
+
padding: .5em .5em .5em 1.7em;
|
615 |
+
}
|
616 |
+
.ui-accordion-icons .ui-accordion-header a {
|
617 |
+
padding-left: 2.2em;
|
618 |
+
}
|
619 |
+
.ui-accordion .ui-accordion-header .ui-icon {
|
620 |
+
position: absolute;
|
621 |
+
left: .5em;
|
622 |
+
top: 50%;
|
623 |
+
margin-top: -8px;
|
624 |
+
}
|
625 |
+
.ui-accordion .ui-accordion-content {
|
626 |
+
padding: 1em 2.2em;
|
627 |
+
border-top: 0;
|
628 |
+
margin-top: -2px;
|
629 |
+
position: relative;
|
630 |
+
top: 1px;
|
631 |
+
margin-bottom: 2px;
|
632 |
+
overflow: auto;
|
633 |
+
display: none;
|
634 |
+
zoom: 1;
|
635 |
+
}
|
636 |
+
.ui-accordion .ui-accordion-content-active {
|
637 |
+
display: block;
|
638 |
+
}
|
639 |
+
|
640 |
+
/*
|
641 |
+
* jQuery UI Autocomplete 1.10.0
|
642 |
+
*
|
643 |
+
* Copyright 2013, 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://jqueryui.com/autocomplete/
|
648 |
+
*/
|
649 |
+
|
650 |
+
.ui-autocomplete {
|
651 |
+
position: absolute;
|
652 |
+
top: 0;
|
653 |
+
left: 0;
|
654 |
+
cursor: default;
|
655 |
+
}
|
656 |
+
|
657 |
+
/*
|
658 |
+
* jQuery UI Button 1.10.0
|
659 |
+
*
|
660 |
+
* Copyright 2013, AUTHORS.txt (http://jqueryui.com/about)
|
661 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
662 |
+
* http://jquery.org/license
|
663 |
+
*
|
664 |
+
* http://docs.jquery.com/UI/Button#theming
|
665 |
+
*/
|
666 |
+
|
667 |
+
.ui-button {
|
668 |
+
|
669 |
+
cursor: pointer;
|
670 |
+
display: inline-block;
|
671 |
+
background-color: #f2f2f2;
|
672 |
+
background-repeat: no-repeat;
|
673 |
+
padding: 5px 14px 6px;
|
674 |
+
margin: 0;
|
675 |
+
color: #333;
|
676 |
+
font-size: 13px;
|
677 |
+
line-height: normal;
|
678 |
+
border: 1px solid #ccc;
|
679 |
+
border-bottom-color: #bbb;
|
680 |
+
|
681 |
+
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
|
682 |
+
-moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
|
683 |
+
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
|
684 |
+
-webkit-transition: 0.1s linear background-image;
|
685 |
+
-moz-transition: 0.1s linear background-image;
|
686 |
+
-ms-transition: 0.1s linear background-image;
|
687 |
+
-o-transition: 0.1s linear background-image;
|
688 |
+
transition: 0.1s linear background-image;
|
689 |
+
overflow: visible;
|
690 |
+
} /* the overflow property removes extra width in IE */
|
691 |
+
|
692 |
+
.ui-button-primary {
|
693 |
+
color: #ffffff;
|
694 |
+
background-color: #0064cd;
|
695 |
+
border-color: #0064cd #0064cd #003f81;
|
696 |
+
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
|
697 |
+
}
|
698 |
+
|
699 |
+
|
700 |
+
.ui-button-success{
|
701 |
+
color:#ffffff;
|
702 |
+
background-color: #57a957;
|
703 |
+
background-repeat: repeat-x;
|
704 |
+
border-color: #57a957 #57a957 #3d773d;
|
705 |
+
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
|
706 |
+
}
|
707 |
+
|
708 |
+
.ui-button-error{
|
709 |
+
color:#ffffff;
|
710 |
+
background-color: #c43c35;
|
711 |
+
border-color: #c43c35 #c43c35 #882a25;
|
712 |
+
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
|
713 |
+
}
|
714 |
+
|
715 |
+
.ui-button-icon-only { width: 2.2em; } /* to make room for the icon, a width needs to be set here */
|
716 |
+
button.ui-button-icon-only { } /* button elements seem to need a little more width */
|
717 |
+
.ui-button-icons-only { width: 3.4em; }
|
718 |
+
button.ui-button-icons-only { width: 3.7em; }
|
719 |
+
|
720 |
+
/*button text element */
|
721 |
+
|
722 |
+
.ui-button .ui-button-text { display: block; }
|
723 |
+
.ui-button-text-only .ui-button-text { }
|
724 |
+
.ui-button-icon-only .ui-button-text, .ui-button-icons-only .ui-button-text { padding: .4em; text-indent: -9999999px; /*tempfix*/ display:none;}
|
725 |
+
.ui-button-text-icon-primary .ui-button-text, .ui-button-text-icons .ui-button-text { padding: .4em 1em .4em 2.1em; }
|
726 |
+
.ui-button-text-icon-secondary .ui-button-text, .ui-button-text-icons .ui-button-text { padding: .4em 2.1em .4em 1em; }
|
727 |
+
.ui-button-text-icons .ui-button-text { padding-left: 2.1em; padding-right: 2.1em; }
|
728 |
+
/* no icon support for input elements, provide padding by default */
|
729 |
+
/* input.ui-button { padding: .4em 1em; } */
|
730 |
+
|
731 |
+
/*button icon element(s) */
|
732 |
+
.ui-button-icon-only .ui-icon, .ui-button-text-icon-primary .ui-icon, .ui-button-text-icon-secondary .ui-icon, .ui-button-text-icons .ui-icon, .ui-button-icons-only .ui-icon { top: 50%; margin-top:-3px; margin-bottom:3px; }
|
733 |
+
.ui-button-icon-only .ui-icon { left: 50%; margin-left: -8px; }
|
734 |
+
.ui-button-text-icon-primary .ui-button-icon-primary, .ui-button-text-icons .ui-button-icon-primary, .ui-button-icons-only .ui-button-icon-primary { left: .5em; }
|
735 |
+
.ui-button-text-icon-secondary .ui-button-icon-secondary, .ui-button-text-icons .ui-button-icon-secondary, .ui-button-icons-only .ui-button-icon-secondary { right: .5em; }
|
736 |
+
.ui-button-text-icons .ui-button-icon-secondary, .ui-button-icons-only .ui-button-icon-secondary { right: .5em; }
|
737 |
+
|
738 |
+
/*button sets*/
|
739 |
+
|
740 |
+
|
741 |
+
.ui-buttonset { margin-right: 7px; }
|
742 |
+
.ui-buttonset .ui-state-active {
|
743 |
+
color: #ffffff;
|
744 |
+
background-color: #34495e;
|
745 |
+
background-repeat: repeat-x;
|
746 |
+
border: 1px solid #3D7A99;
|
747 |
+
}
|
748 |
+
.ui-buttonset .ui-button { margin-left: 0; margin-right: -.4em; }
|
749 |
+
|
750 |
+
/* workarounds */
|
751 |
+
button.ui-button::-moz-focus-inner { border: 0; padding: 0; } /* reset extra padding in Firefox */
|
752 |
+
|
753 |
+
|
754 |
+
/*
|
755 |
+
* jQuery UI Menu 1.10.0
|
756 |
+
*
|
757 |
+
* Copyright 2013, AUTHORS.txt (http://jqueryui.com/about)
|
758 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
759 |
+
* http://jquery.org/license
|
760 |
+
*
|
761 |
+
* http://docs.jquery.com/UI/Menu#theming
|
762 |
+
*/
|
763 |
+
|
764 |
+
.ui-menu { list-style:none; padding: 2px; margin: 0; display:block; float:left; outline: none; }
|
765 |
+
.ui-menu .ui-menu { margin-top: -3px; position: absolute; }
|
766 |
+
.ui-menu .ui-menu-item { margin: 0; padding: 0; zoom: 1;float: left;clear: left; width: 100%; }
|
767 |
+
.ui-menu .ui-menu-divider { margin: 5px -2px 5px -2px; height: 0; font-size: 0; line-height: 0; border-width: 1px 0 0 0; }
|
768 |
+
.ui-menu .ui-menu-item a { text-decoration: none; display: block; padding: 2px .4em; line-height: 1.5; zoom: 1; font-weight: normal; }
|
769 |
+
.ui-menu .ui-menu-item a.ui-state-focus,
|
770 |
+
.ui-menu .ui-menu-item a.ui-state-active {
|
771 |
+
font-weight: normal;
|
772 |
+
margin: 0;
|
773 |
+
color: #ffffff;
|
774 |
+
background: #0064cd;
|
775 |
+
background-color: #0064cd;
|
776 |
+
background-repeat: repeat-x;
|
777 |
+
background-image: -khtml-gradient(linear, left top, left bottom, from(#049cdb), to(#0064cd));
|
778 |
+
background-image: -moz-linear-gradient(top, #049cdb, #0064cd);
|
779 |
+
background-image: -ms-linear-gradient(top, #049cdb, #0064cd);
|
780 |
+
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #049cdb), color-stop(100%, #0064cd));
|
781 |
+
background-image: -webkit-linear-gradient(top, #049cdb, #0064cd);
|
782 |
+
background-image: -o-linear-gradient(top, #049cdb, #0064cd);
|
783 |
+
background-image: linear-gradient(top, #049cdb, #0064cd);
|
784 |
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#049cdb', endColorstr='#0064cd', GradientType=0);
|
785 |
+
border-color: #0064cd #0064cd #003f81;
|
786 |
+
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
|
787 |
+
}
|
788 |
+
/* Fix problem with border in ui-state-active */
|
789 |
+
.ui-menu .ui-menu-item a.ui-state-active {
|
790 |
+
padding: 1px .4em;
|
791 |
+
}
|
792 |
+
|
793 |
+
.ui-menu .ui-state-disabled { font-weight: normal; margin: .4em 0 .2em; line-height: 1.5; }
|
794 |
+
.ui-menu .ui-state-disabled a { cursor: default; }
|
795 |
+
|
796 |
+
/* icon support */
|
797 |
+
.ui-menu-icons { position: relative; }
|
798 |
+
.ui-menu-icons .ui-menu-item a { position: relative; padding-left: 2em; }
|
799 |
+
|
800 |
+
/* left-aligned */
|
801 |
+
.ui-menu .ui-icon { position: absolute; top: .2em; left: .2em; }
|
802 |
+
|
803 |
+
/* right-aligned */
|
804 |
+
.ui-menu .ui-menu-icon { position: static; float: right; }
|
805 |
+
|
806 |
+
.ui-menu { width: 200px; margin-bottom: 2em; }
|
807 |
+
|
808 |
+
|
809 |
+
/*
|
810 |
+
* jQuery UI spinner 1.10.0
|
811 |
+
*
|
812 |
+
* Copyright 2013, AUTHORS.txt (http://jqueryui.com/about)
|
813 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
814 |
+
* http://jquery.org/license
|
815 |
+
*
|
816 |
+
* http://docs.jquery.com/UI/Menu#theming
|
817 |
+
*/
|
818 |
+
|
819 |
+
.ui-spinner { position:relative; display: inline-block; overflow: hidden; padding: 0; vertical-align: middle; }
|
820 |
+
.ui-spinner-input { border: none; background: none; padding: 0; margin: .2em 0; vertical-align: middle; margin-left: .4em; margin-right: 22px; }
|
821 |
+
.ui-spinner{}
|
822 |
+
.ui-spinner-button { width: 16px; height: 50%; font-size: .5em; padding: 0; margin: 0; text-align: center; position: absolute; cursor: default; display: block; overflow: hidden; right: 0; }
|
823 |
+
.ui-spinner a.ui-spinner-button { border-top: none; border-bottom: none; border-right: none; } /* more specificity required here to overide default borders */
|
824 |
+
.ui-spinner .ui-icon { position: absolute; margin-top: -8px; top: 50%; left: 0; } /* vertical centre icon */
|
825 |
+
.ui-spinner-up { top: 0; }
|
826 |
+
.ui-spinner-down { bottom: 0; }
|
827 |
+
|
828 |
+
/* TR overrides */
|
829 |
+
.ui-spinner .ui-icon-triangle-1-s {
|
830 |
+
/* need to fix icons sprite */
|
831 |
+
background-position:-65px -16px;
|
832 |
+
}
|
833 |
+
|
834 |
+
/*
|
835 |
+
* jQuery UI Dialog 1.10.0
|
836 |
+
*
|
837 |
+
* Copyright 2013, AUTHORS.txt (http://jqueryui.com/about)
|
838 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
839 |
+
* http://jquery.org/license
|
840 |
+
*
|
841 |
+
* http://docs.jquery.com/UI/Dialog#theming
|
842 |
+
*/
|
843 |
+
.ui-dialog {
|
844 |
+
position: absolute;
|
845 |
+
top: 0;
|
846 |
+
left: 0;
|
847 |
+
padding: .2em;
|
848 |
+
width: 300px;
|
849 |
+
overflow: hidden;
|
850 |
+
outline: 0;
|
851 |
+
background-clip: padding-box;
|
852 |
+
background-color: #FFFFFF;
|
853 |
+
border: 1px solid rgba(0, 0, 0, 0.3);
|
854 |
+
border-radius: 6px 6px 6px 6px;
|
855 |
+
box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
|
856 |
+
/*left: 50%;
|
857 |
+
margin-left: -280px;*/
|
858 |
+
outline: medium none;
|
859 |
+
position: fixed;
|
860 |
+
/*top: 10%;
|
861 |
+
width: 560px;*/
|
862 |
+
z-index: 1050;
|
863 |
+
}
|
864 |
+
.ui-dialog .ui-dialog-titlebar { /*padding: .4em 1em;*/
|
865 |
+
position: relative;
|
866 |
+
padding:5px 15px;
|
867 |
+
border:0px 0px 0px 1px solid;
|
868 |
+
border-color: white;
|
869 |
+
padding: 5px 15px;
|
870 |
+
font-size: 18px;
|
871 |
+
text-decoration:none;
|
872 |
+
background:none;
|
873 |
+
-moz-border-radius-bottomright: 0px;
|
874 |
+
-webkit-border-bottom-right-radius: 0px;
|
875 |
+
-khtml-border-bottom-right-radius: 0px;
|
876 |
+
|
877 |
+
-moz-border-radius-bottomleft: 0px;
|
878 |
+
-webkit-border-bottom-left-radius: 0px;
|
879 |
+
-khtml-border-bottom-left-radius: 0px;
|
880 |
+
border-bottom-left-radius: 0px;
|
881 |
+
border-bottom:1px solid #ccc;
|
882 |
+
}
|
883 |
+
.ui-dialog .ui-dialog-title {
|
884 |
+
float: left;
|
885 |
+
color:#404040;
|
886 |
+
font-weight:bold;
|
887 |
+
margin-top:5px;
|
888 |
+
margin-bottom:5px;
|
889 |
+
padding:5px;
|
890 |
+
text-overflow: ellipsis;
|
891 |
+
overflow: hidden;
|
892 |
+
}
|
893 |
+
.ui-dialog .ui-dialog-titlebar-close {
|
894 |
+
position: absolute;
|
895 |
+
right: .3em;
|
896 |
+
top: 50%;
|
897 |
+
width: 19px;
|
898 |
+
margin: -20px 0 0 0;
|
899 |
+
padding: 1px;
|
900 |
+
height: 18px;
|
901 |
+
font-size: 20px;
|
902 |
+
font-weight: bold;
|
903 |
+
line-height: 13.5px;
|
904 |
+
filter: alpha(opacity=25);
|
905 |
+
-khtml-opacity: 0.25;
|
906 |
+
-moz-opacity: 0.25;
|
907 |
+
opacity: 0.25;
|
908 |
+
background:none;
|
909 |
+
border-width: 0;
|
910 |
+
border:none;
|
911 |
+
box-shadow: none;
|
912 |
+
}
|
913 |
+
|
914 |
+
.ui-dialog .ui-dialog-titlebar-close span {
|
915 |
+
display: block;
|
916 |
+
margin: 1px;
|
917 |
+
text-indent: 9999px;
|
918 |
+
}
|
919 |
+
|
920 |
+
.ui-dialog .ui-dialog-titlebar-close:hover, .ui-dialog .ui-dialog-titlebar-close:focus { padding: 1px; filter: alpha(opacity=90);
|
921 |
+
-khtml-opacity: 0.90;
|
922 |
+
-moz-opacity: 0.90;
|
923 |
+
opacity: 0.90;
|
924 |
+
}
|
925 |
+
|
926 |
+
.ui-dialog .ui-dialog-content { position: relative; border: 0; padding: .5em 1em; background: none; overflow: auto; zoom: 1; }
|
927 |
+
|
928 |
+
.ui-dialog .ui-dialog-buttonpane {
|
929 |
+
text-align: left;
|
930 |
+
border-width: 1px 0 0 0;
|
931 |
+
background-image: none;
|
932 |
+
margin: .5em 0 0 0;
|
933 |
+
background-color: #f5f5f5;
|
934 |
+
padding: 5px 15px 5px;
|
935 |
+
border-top: 1px solid #ddd;
|
936 |
+
-webkit-border-radius: 0 0 6px 6px;
|
937 |
+
-moz-border-radius: 0 0 6px 6px;
|
938 |
+
border-radius: 0 0 6px 6px;
|
939 |
+
-webkit-box-shadow: inset 0 1px 0 #ffffff;
|
940 |
+
-moz-box-shadow: inset 0 1px 0 #ffffff;
|
941 |
+
box-shadow: inset 0 1px 0 #ffffff;
|
942 |
+
zoom: 1;
|
943 |
+
margin-bottom: 0;
|
944 |
+
|
945 |
+
}
|
946 |
+
.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset { float: right; }
|
947 |
+
.ui-dialog .ui-dialog-buttonpane button { margin: .5em .4em .5em 0; cursor: pointer; }
|
948 |
+
.ui-dialog .ui-resizable-se { width: 14px; height: 14px; right: 3px; bottom: 3px; }
|
949 |
+
.ui-draggable .ui-dialog-titlebar { cursor: move; }
|
950 |
+
|
951 |
+
.ui-dialog-buttonpane .ui-dialog-buttonset .ui-button{
|
952 |
+
color: #ffffff;
|
953 |
+
background-color: #0064cd;
|
954 |
+
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
|
955 |
+
}
|
956 |
+
/*
|
957 |
+
* jQuery UI Slider 1.8.16
|
958 |
+
*
|
959 |
+
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
960 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
961 |
+
* http://jquery.org/license
|
962 |
+
*
|
963 |
+
* http://docs.jquery.com/UI/Slider#theming
|
964 |
+
*/
|
965 |
+
.ui-slider { position: relative; text-align: left; }
|
966 |
+
.ui-slider .ui-slider-handle { position: absolute; z-index: 2; width: 1.2em; height: 1.2em; cursor: default; }
|
967 |
+
.ui-slider .ui-slider-range { position: absolute; z-index: 1; font-size: .7em; display: block; border: 0; background-position: 0 0;
|
968 |
+
|
969 |
+
color: #ffffff;
|
970 |
+
background-color: #0064cd;
|
971 |
+
|
972 |
+
}
|
973 |
+
|
974 |
+
.ui-slider-horizontal { height: .8em; }
|
975 |
+
.ui-slider-horizontal .ui-slider-handle { top: -.3em; margin-left: -.6em; border-radius: 50%; }
|
976 |
+
.ui-slider-horizontal .ui-slider-range { top: 0; height: 100%; }
|
977 |
+
.ui-slider-horizontal .ui-slider-range-min { left: 0; }
|
978 |
+
.ui-slider-horizontal .ui-slider-range-max { right: 0; }
|
979 |
+
|
980 |
+
.ui-slider-vertical { width: .8em; height: 100px; }
|
981 |
+
.ui-slider-vertical .ui-slider-handle { left: -.3em; margin-left: 0; margin-bottom: -.6em; }
|
982 |
+
.ui-slider-vertical .ui-slider-range { left: 0; width: 100%; }
|
983 |
+
.ui-slider-vertical .ui-slider-range-min { bottom: 0; }
|
984 |
+
.ui-slider-vertical .ui-slider-range-max { top: 0; }
|
985 |
+
|
986 |
+
/*
|
987 |
+
* jQuery UI Tabs 1.9.2
|
988 |
+
*
|
989 |
+
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
|
990 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
991 |
+
* http://jquery.org/license
|
992 |
+
*
|
993 |
+
* http://jqueryui.com/tabs/
|
994 |
+
*/
|
995 |
+
.ui-tabs .ui-tabs-nav{ background:none; border-color: #ddd;border-style: solid;border-width: 0 0 1px;}
|
996 |
+
.ui-tabs { position: relative; padding: .2em; zoom: 1; border:0px;} /* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */
|
997 |
+
|
998 |
+
|
999 |
+
.ui-tabs .ui-tabs-nav li:hover, .ui-tabs .ui-tabs-nav li a:hover{
|
1000 |
+
background:whiteSmoke;
|
1001 |
+
border-bottom:1px solid #ddd;
|
1002 |
+
padding-bottom:0px;
|
1003 |
+
color:#00438A;
|
1004 |
+
}
|
1005 |
+
|
1006 |
+
.ui-tabs .ui-tabs-nav { margin: 0; padding: .2em .2em 0; border-bottom:1px solid #DDD; }
|
1007 |
+
.ui-tabs .ui-tabs-nav li { text-decoration: none; list-style: none; float: left; position: relative; top: 1px; padding: 0px 0px 1px 0px; white-space: nowrap; background:none; border:0px; }
|
1008 |
+
|
1009 |
+
.ui-tabs-nav .ui-state-default{
|
1010 |
+
-webkit-box-shadow: 0px 0px 0px #ffffff; /* Saf3-4, iOS 4.0.2 - 4.2, Android 2.3+ */
|
1011 |
+
-moz-box-shadow: 0px 0px 0px #ffffff; /* FF3.5 - 3.6 */
|
1012 |
+
box-shadow: 0px 0px 0px #ffffff; /* Opera 10.5, IE9, FF4+, Chrome 6+, iOS 5 */
|
1013 |
+
}
|
1014 |
+
.ui-tabs .ui-tabs-nav li a {
|
1015 |
+
float: left;
|
1016 |
+
text-decoration: none;
|
1017 |
+
cursor: text;
|
1018 |
+
padding: 0 15px;
|
1019 |
+
margin-right: 2px;
|
1020 |
+
line-height: 34px;
|
1021 |
+
border: 1px solid transparent;
|
1022 |
+
-webkit-border-radius: 4px 4px 0 0;
|
1023 |
+
-moz-border-radius: 4px 4px 0 0;
|
1024 |
+
border-radius: 4px 4px 0 0;
|
1025 |
+
|
1026 |
+
|
1027 |
+
}
|
1028 |
+
|
1029 |
+
.ui-tabs .ui-tabs-nav li.ui-tabs-active { margin-bottom: 0; padding-bottom: 0px; outline:none;}
|
1030 |
+
.ui-tabs .ui-tabs-nav li.ui-tabs-active , .ui-tabs .ui-tabs-nav li.ui-state-disabled a, .ui-tabs .ui-tabs-nav li.ui-state-processing a {
|
1031 |
+
background-color: #ffffff;
|
1032 |
+
border: 1px solid #ddd;
|
1033 |
+
border-bottom-color: #ffffff;
|
1034 |
+
cursor: default;
|
1035 |
+
color:gray;
|
1036 |
+
outline:none;
|
1037 |
+
}
|
1038 |
+
.ui-tabs .ui-tabs-nav li.ui-tabs-active a{background-color: #ffffff;outline:none;border:none;}
|
1039 |
+
.ui-tabs .ui-tabs-nav li.ui-tabs-active:hover{
|
1040 |
+
background:#ffffff;
|
1041 |
+
outline:none;
|
1042 |
+
margin-bottom:0px;
|
1043 |
+
}
|
1044 |
+
.ui-tabs .ui-tabs-nav li.ui-tabs-active a, .ui-tabs .ui-tabs-nav li.ui-state-disabled a, .ui-tabs .ui-tabs-nav li.ui-tabs-loading a { cursor: text; }
|
1045 |
+
.ui-tabs .ui-tabs-nav li a, .ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active a { cursor: pointer; color:#0069D6; background:none; font-weight:normal; margin-bottom:-1px;}
|
1046 |
+
/* first selector in group seems obsolete, but required to overcome bug in Opera applying cursor: text overall if defined elsewhere... */
|
1047 |
+
.ui-tabs .ui-tabs-panel { display: block; border-width: 0; padding: 1em 1.4em; background: none; }
|
1048 |
+
.ui-tabs-panel .ui-button{text-decoration:none;}
|
1049 |
+
.ui-tabs .ui-tabs-hide { display: none !important; }
|
1050 |
+
|
1051 |
+
|
1052 |
+
/* IE fix for background inheritance from ui-widget*/
|
1053 |
+
.ui-tabs .ui-tabs-nav li{
|
1054 |
+
filter:none;
|
1055 |
+
}
|
1056 |
+
|
1057 |
+
/*
|
1058 |
+
* jQuery UI Tooltip 1.9.0
|
1059 |
+
*
|
1060 |
+
* Copyright 2012-10-11, AUTHORS.txt (http://jqueryui.com/about)
|
1061 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
1062 |
+
* http://jquery.org/license
|
1063 |
+
*
|
1064 |
+
* http://jqueryui.com/tooltip/
|
1065 |
+
*/
|
1066 |
+
.ui-tooltip {
|
1067 |
+
padding:8px;
|
1068 |
+
position:absolute;
|
1069 |
+
z-index:9999;
|
1070 |
+
max-width: 300px;
|
1071 |
+
-o-box-shadow: 0 0 5px #ddd;
|
1072 |
+
-moz-box-shadow: 0 0 5px #ddd;
|
1073 |
+
-webkit-box-shadow: 0 0 5px #ddd;
|
1074 |
+
/*box-shadow: 0 2px 5px #ddd;*/
|
1075 |
+
box-shadow: inset 0 1px 0 #ffffff;
|
1076 |
+
}
|
1077 |
+
|
1078 |
+
body .ui-tooltip { border-width:2px; }
|
1079 |
+
|
1080 |
+
/*
|
1081 |
+
* jQuery UI Datepicker 1.9.0
|
1082 |
+
*
|
1083 |
+
* Copyright 2012-10-11, AUTHORS.txt (http://jqueryui.com/about)
|
1084 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
1085 |
+
* http://jquery.org/license
|
1086 |
+
*
|
1087 |
+
* http://jqueryui.com/datepicker/
|
1088 |
+
*/
|
1089 |
+
.ui-datepicker { width: 17em; padding: .2em .2em 0; display: none; }
|
1090 |
+
.ui-datepicker .ui-datepicker-header { position:relative; padding:.2em 0; border:0px; font-weight: bold; width: 100%; padding: 4px 0; background-color: #f5f5f5; color: #808080; }
|
1091 |
+
.ui-datepicker .ui-datepicker-prev, .ui-datepicker .ui-datepicker-next { position:absolute; top: 2px; width: 1.8em; height: 1.8em; }
|
1092 |
+
|
1093 |
+
.ui-datepicker .ui-datepicker-prev-hover, .ui-datepicker .ui-datepicker-next-hover { /*top: 1px;*/ }
|
1094 |
+
.ui-datepicker .ui-datepicker-prev { left:2px; }
|
1095 |
+
.ui-datepicker .ui-datepicker-next { right:2px; }
|
1096 |
+
|
1097 |
+
.ui-datepicker .ui-datepicker-prev-hover { /*left:1px;*/ }
|
1098 |
+
.ui-datepicker .ui-datepicker-next-hover { /*right:1px;*/ }
|
1099 |
+
|
1100 |
+
.ui-datepicker .ui-datepicker-prev span, .ui-datepicker .ui-datepicker-next span { display: block; position: absolute; left: 50%; margin-left: -8px; top: 50%; margin-top: -8px; }
|
1101 |
+
.ui-datepicker .ui-datepicker-title { margin: 0 2.3em; line-height: 1.8em; text-align: center; }
|
1102 |
+
.ui-datepicker .ui-datepicker-title select { font-size:1em; margin:1px 0; }
|
1103 |
+
.ui-datepicker select.ui-datepicker-month-year {width: 100%;}
|
1104 |
+
.ui-datepicker select.ui-datepicker-month,
|
1105 |
+
.ui-datepicker select.ui-datepicker-year { width: 49%;}
|
1106 |
+
.ui-datepicker table {width: 100%; font-size: .9em; border-collapse: collapse; margin:0 0 .4em; }
|
1107 |
+
.ui-datepicker th { padding: .7em .3em; text-align: center; font-weight: bold; border: 0; }
|
1108 |
+
.ui-datepicker td { border: 0; padding: 1px; }
|
1109 |
+
.ui-datepicker td span, .ui-datepicker td a { display: block; padding: .2em; text-align: right; text-decoration: none; }
|
1110 |
+
.ui-datepicker .ui-datepicker-buttonpane { background-image: none; margin: .7em 0 0 0; padding:0 .2em; border-left: 0; border-right: 0; border-bottom: 0; }
|
1111 |
+
.ui-datepicker .ui-datepicker-buttonpane button { float: right; margin: .5em .2em .4em; cursor: pointer; padding: .2em .6em .3em .6em; width:auto; overflow:visible; }
|
1112 |
+
.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current { float:left; }
|
1113 |
+
|
1114 |
+
/* with multiple calendars */
|
1115 |
+
.ui-datepicker.ui-datepicker-multi { width:auto; }
|
1116 |
+
.ui-datepicker-multi .ui-datepicker-group { float:left; }
|
1117 |
+
.ui-datepicker-multi .ui-datepicker-group table { width:95%; margin:0 auto .4em; }
|
1118 |
+
.ui-datepicker-multi-2 .ui-datepicker-group { width:50%; }
|
1119 |
+
.ui-datepicker-multi-3 .ui-datepicker-group { width:33.3%; }
|
1120 |
+
.ui-datepicker-multi-4 .ui-datepicker-group { width:25%; }
|
1121 |
+
.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header { border-left-width:0; }
|
1122 |
+
.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header { border-left-width:0; }
|
1123 |
+
.ui-datepicker-multi .ui-datepicker-buttonpane { clear:left; }
|
1124 |
+
.ui-datepicker-row-break { clear:both; width:100%; font-size:0em; }
|
1125 |
+
|
1126 |
+
/* RTL support */
|
1127 |
+
.ui-datepicker-rtl { direction: rtl; }
|
1128 |
+
.ui-datepicker-rtl .ui-datepicker-prev { right: 2px; left: auto; }
|
1129 |
+
.ui-datepicker-rtl .ui-datepicker-next { left: 2px; right: auto; }
|
1130 |
+
.ui-datepicker-rtl .ui-datepicker-prev:hover { right: 1px; left: auto; }
|
1131 |
+
.ui-datepicker-rtl .ui-datepicker-next:hover { left: 1px; right: auto; }
|
1132 |
+
.ui-datepicker-rtl .ui-datepicker-buttonpane { clear:right; }
|
1133 |
+
.ui-datepicker-rtl .ui-datepicker-buttonpane button { float: left; }
|
1134 |
+
.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current { float:right; }
|
1135 |
+
.ui-datepicker-rtl .ui-datepicker-group { float:right; }
|
1136 |
+
.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header { border-right-width:0; border-left-width:1px; }
|
1137 |
+
.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header { border-right-width:0; border-left-width:1px; }
|
1138 |
+
|
1139 |
+
/* IE6 IFRAME FIX (taken from datepicker 1.5.3 */
|
1140 |
+
.ui-datepicker-cover {
|
1141 |
+
display: none; /*sorry for IE5*/
|
1142 |
+
display/**/: block; /*sorry for IE5*/
|
1143 |
+
position: absolute; /*must have*/
|
1144 |
+
z-index: -1; /*must have*/
|
1145 |
+
filter: mask(); /*must have*/
|
1146 |
+
top: -4px; /*must have*/
|
1147 |
+
left: -4px; /*must have*/
|
1148 |
+
width: 200px; /*must have*/
|
1149 |
+
height: 200px; /*must have*/
|
1150 |
+
}
|
1151 |
+
|
1152 |
+
.ui-datepicker th{
|
1153 |
+
font-weight: bold;
|
1154 |
+
color: gray;
|
1155 |
+
}
|
1156 |
+
|
1157 |
+
.ui-datepicker-today a:hover{
|
1158 |
+
background-color: #808080;
|
1159 |
+
color: #ffffff;
|
1160 |
+
|
1161 |
+
}
|
1162 |
+
.ui-datepicker-today a{
|
1163 |
+
background-color: #BFBFBF;
|
1164 |
+
cursor: pointer;
|
1165 |
+
padding: 0 4px;
|
1166 |
+
margin-bottom:0px;
|
1167 |
+
|
1168 |
+
}
|
1169 |
+
|
1170 |
+
|
1171 |
+
.ui-datepicker td a{
|
1172 |
+
margin-bottom:0px;
|
1173 |
+
border:0px;
|
1174 |
+
}
|
1175 |
+
|
1176 |
+
.ui-datepicker td:hover{
|
1177 |
+
color: #ffffff;
|
1178 |
+
}
|
1179 |
+
|
1180 |
+
.ui-datepicker td .ui-state-default {
|
1181 |
+
border:0px;
|
1182 |
+
background:none;
|
1183 |
+
margin-bottom:0px;
|
1184 |
+
padding:5px;
|
1185 |
+
color:gray;
|
1186 |
+
text-align: center;
|
1187 |
+
filter:none;
|
1188 |
+
}
|
1189 |
+
|
1190 |
+
|
1191 |
+
.ui-datepicker td .ui-state-active{
|
1192 |
+
background:#BFBFBF;
|
1193 |
+
margin-bottom:0px;
|
1194 |
+
font-size:normal;
|
1195 |
+
color: #ffffff;
|
1196 |
+
-webkit-border-radius: 4px;
|
1197 |
+
-moz-border-radius: 4px;
|
1198 |
+
border-radius: 4px;
|
1199 |
+
}
|
1200 |
+
|
1201 |
+
.ui-datepicker td .ui-state-hover {
|
1202 |
+
color: #ffffff;
|
1203 |
+
background: #0064cd;
|
1204 |
+
background-color: #0064cd;
|
1205 |
+
-webkit-border-radius: 4px;
|
1206 |
+
-moz-border-radius: 4px;
|
1207 |
+
-khtml-border-radius: 4px;
|
1208 |
+
border-radius: 4px;
|
1209 |
+
}
|
1210 |
+
|
1211 |
+
/*
|
1212 |
+
* jQuery UI Progressbar 1.8.16
|
1213 |
+
*
|
1214 |
+
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
1215 |
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
1216 |
+
* http://jquery.org/license
|
1217 |
+
*
|
1218 |
+
* http://docs.jquery.com/UI/Progressbar#theming
|
1219 |
+
*/
|
1220 |
+
.ui-progressbar { height:2em; text-align: left; }
|
1221 |
+
.ui-progressbar .ui-progressbar-value {margin: -1px; height:100%;
|
1222 |
+
|
1223 |
+
/*this can be removed if ui-widget-header is blue*/
|
1224 |
+
color: #ffffff;
|
1225 |
+
background-color: #0064cd;
|
1226 |
+
}
|
1227 |
+
|
1228 |
+
|
1229 |
+
|
1230 |
+
/*** Input field styling from Bootstrap **/
|
1231 |
+
input, textarea {
|
1232 |
+
-webkit-transition: border linear 0.2s, box-shadow linear 0.2s;
|
1233 |
+
-moz-transition: border linear 0.2s, box-shadow linear 0.2s;
|
1234 |
+
-ms-transition: border linear 0.2s, box-shadow linear 0.2s;
|
1235 |
+
-o-transition: border linear 0.2s, box-shadow linear 0.2s;
|
1236 |
+
transition: border linear 0.2s, box-shadow linear 0.2s;
|
1237 |
+
-webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
|
1238 |
+
-moz-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
|
1239 |
+
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
|
1240 |
+
}
|
1241 |
+
input:focus, textarea:focus {
|
1242 |
+
outline: 0;
|
1243 |
+
border-color: rgba(82, 168, 236, 0.8);
|
1244 |
+
-webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 8px rgba(82, 168, 236, 0.6);
|
1245 |
+
-moz-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 8px rgba(82, 168, 236, 0.6);
|
1246 |
+
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 8px rgba(82, 168, 236, 0.6);
|
1247 |
+
}
|
1248 |
+
input[type=file]:focus, input[type=checkbox]:focus, select:focus {
|
1249 |
+
-webkit-box-shadow: none;
|
1250 |
+
-moz-box-shadow: none;
|
1251 |
+
box-shadow: none;
|
1252 |
+
outline: 1px dotted #666;
|
1253 |
+
}
|
1254 |
+
|
1255 |
+
input[type="text"],
|
1256 |
+
input[type="password"],
|
1257 |
+
.ui-autocomplete-input,
|
1258 |
+
textarea,
|
1259 |
+
.uneditable-input {
|
1260 |
+
display: inline-block;
|
1261 |
+
padding: 4px;
|
1262 |
+
font-size: 13px;
|
1263 |
+
line-height: 18px;
|
1264 |
+
color: #808080;
|
1265 |
+
border: 1px solid #ccc;
|
1266 |
+
-webkit-border-radius: 3px;
|
1267 |
+
-moz-border-radius: 3px;
|
1268 |
+
border-radius: 3px;
|
1269 |
+
}
|
1270 |
+
|
1271 |
+
|
1272 |
+
|
1273 |
+
/**Toolbar**/
|
1274 |
+
|
1275 |
+
.ui-toolbar{
|
1276 |
+
padding: 7px 14px;
|
1277 |
+
margin: 0 0 18px;
|
1278 |
+
background-color: #f5f5f5;
|
1279 |
+
background-repeat: repeat-x;
|
1280 |
+
background-image: -khtml-gradient(linear, left top, left bottom, from(#ffffff), to(#f5f5f5));
|
1281 |
+
background-image: -moz-linear-gradient(top, #ffffff, #f5f5f5);
|
1282 |
+
background-image: -ms-linear-gradient(top, #ffffff, #f5f5f5);
|
1283 |
+
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #ffffff), color-stop(100%, #f5f5f5));
|
1284 |
+
background-image: -webkit-linear-gradient(top, #ffffff, #f5f5f5);
|
1285 |
+
background-image: -o-linear-gradient(top, #ffffff, #f5f5f5);
|
1286 |
+
background-image: linear-gradient(top, #ffffff, #f5f5f5);
|
1287 |
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#f5f5f5', GradientType=0);
|
1288 |
+
border: 1px solid #ddd;
|
1289 |
+
-webkit-border-radius: 3px;
|
1290 |
+
-moz-border-radius: 3px;
|
1291 |
+
border-radius: 3px;
|
1292 |
+
-webkit-box-shadow: inset 0 1px 0 #ffffff;
|
1293 |
+
-moz-box-shadow: inset 0 1px 0 #ffffff;
|
1294 |
+
box-shadow: inset 0 1px 0 #ffffff;
|
1295 |
+
}
|
1296 |
+
|
1297 |
+
|
1298 |
+
/***Dialog fixes**/
|
1299 |
+
|
1300 |
+
.ui-dialog-buttonset .ui-button:nth-child(2){
|
1301 |
+
cursor: pointer;
|
1302 |
+
display: inline-block;
|
1303 |
+
background-color: #f2f2f2;
|
1304 |
+
padding: 5px 14px 6px;
|
1305 |
+
color: #333;
|
1306 |
+
font-size: 13px;
|
1307 |
+
line-height: normal;
|
1308 |
+
border: 1px solid #ccc;
|
1309 |
+
border-bottom-color: #bbb;
|
1310 |
+
-webkit-border-radius: 4px;
|
1311 |
+
-moz-border-radius: 4px;
|
1312 |
+
border-radius: 4px;
|
1313 |
+
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
|
1314 |
+
-moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
|
1315 |
+
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
|
1316 |
+
-webkit-transition: 0.1s linear all;
|
1317 |
+
-moz-transition: 0.1s linear all;
|
1318 |
+
-ms-transition: 0.1s linear all;
|
1319 |
+
-o-transition: 0.1s linear all;
|
1320 |
+
transition: 0.1s linear all;
|
1321 |
+
overflow: visible;
|
1322 |
+
}
|
1323 |
+
|
1324 |
+
|
1325 |
+
|
1326 |
+
/***Wijmo Theming**/
|
1327 |
+
|
1328 |
+
div.wijmo-wijmenu{
|
1329 |
+
padding:0 20px;
|
1330 |
+
background-color: #222;
|
1331 |
+
background-color: #222222;
|
1332 |
+
background-repeat: repeat-x;
|
1333 |
+
background-image: -khtml-gradient(linear, left top, left bottom, from(#333333), to(#222222));
|
1334 |
+
background-image: -moz-linear-gradient(top, #333333, #222222);
|
1335 |
+
background-image: -ms-linear-gradient(top, #333333, #222222);
|
1336 |
+
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #333333), color-stop(100%, #222222));
|
1337 |
+
background-image: -webkit-linear-gradient(top, #333333, #222222);
|
1338 |
+
background-image: -o-linear-gradient(top, #333333, #222222);
|
1339 |
+
background-image: linear-gradient(top, #333333, #222222);
|
1340 |
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#333333', endColorstr='#222222', GradientType=0);
|
1341 |
+
-webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
|
1342 |
+
-moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
|
1343 |
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
|
1344 |
+
}
|
1345 |
+
|
1346 |
+
.wijmo-wijmenu .ui-state-default{
|
1347 |
+
box-shadow: none;
|
1348 |
+
color:#BFBFBF;
|
1349 |
+
}
|
1350 |
+
|
1351 |
+
.wijmo-wijmenu .ui-state-default .wijmo-wijmenu-text{
|
1352 |
+
color:#BFBFBF;
|
1353 |
+
}
|
1354 |
+
|
1355 |
+
.wijmo-wijmenu .ui-state-hover{
|
1356 |
+
background: #444;
|
1357 |
+
background: rgba(255, 255, 255, 0.05);
|
1358 |
+
}
|
1359 |
+
|
1360 |
+
.wijmo-wijmenu .ui-state-hover .wijmo-wijmenu-text{
|
1361 |
+
color:#ffffff;
|
1362 |
+
}
|
1363 |
+
|
1364 |
+
div.wijmo-wijmenu .ui-widget-header h3{
|
1365 |
+
position: relative;
|
1366 |
+
margin-top:1px;
|
1367 |
+
padding:0;
|
1368 |
+
}
|
1369 |
+
|
1370 |
+
.wijmo-wijmenu h3 a{
|
1371 |
+
color: #FFFFFF;
|
1372 |
+
display: block;
|
1373 |
+
float: left;
|
1374 |
+
font-size: 20px;
|
1375 |
+
font-weight: 200;
|
1376 |
+
line-height: 1;
|
1377 |
+
margin-left: -20px;
|
1378 |
+
margin-top:1px;
|
1379 |
+
padding: 8px 20px 12px;
|
1380 |
+
}
|
1381 |
+
|
1382 |
+
.wijmo-wijmenu h3 a:hover{
|
1383 |
+
background-color: rgba(255, 255, 255, 0.05);
|
1384 |
+
color: #FFFFFF;
|
1385 |
+
text-decoration: none;
|
1386 |
+
}
|
1387 |
+
|
1388 |
+
.wijmo-wijmenu .ui-widget-header{
|
1389 |
+
border:0px;
|
1390 |
+
}
|
1391 |
+
|
1392 |
+
.wijmo-wijmenu .wijmo-wijmenu-parent .wijmo-wijmenu-child{
|
1393 |
+
padding: 0.3em 0;
|
1394 |
+
}
|
1395 |
+
|
1396 |
+
div.wijmo-wijmenu .wijmo-wijmenu-item .wijmo-wijmenu-child{
|
1397 |
+
background: #333;
|
1398 |
+
border:0;
|
1399 |
+
margin:0;
|
1400 |
+
padding: 6px 0;
|
1401 |
+
width:160px;
|
1402 |
+
-webkit-border-radius: 0 0 6px 6px;
|
1403 |
+
-moz-border-radius: 0 0 6px 6px;
|
1404 |
+
border-radius: 0 0 6px 6px;
|
1405 |
+
-webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
|
1406 |
+
-moz-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
|
1407 |
+
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
|
1408 |
+
}
|
1409 |
+
|
1410 |
+
div.wijmo-wijmenu .wijmo-wijmenu-item{
|
1411 |
+
margin:0;
|
1412 |
+
border:0;
|
1413 |
+
}
|
1414 |
+
|
1415 |
+
.wijmo-wijmenu a.wijmo-wijmenu-link{
|
1416 |
+
margin:0;
|
1417 |
+
line-height: 19px;
|
1418 |
+
padding: 10px 10px 11px;
|
1419 |
+
border:0;
|
1420 |
+
-webkit-border-radius: 0;
|
1421 |
+
-moz-border-radius: 0;
|
1422 |
+
border-radius:0;
|
1423 |
+
}
|
1424 |
+
|
1425 |
+
div.wijmo-wijmenu .wijmo-wijmenu-child .wijmo-wijmenu-link{
|
1426 |
+
display:block;
|
1427 |
+
float:none;
|
1428 |
+
padding: 4px 15px;
|
1429 |
+
width:auto;
|
1430 |
+
}
|
1431 |
+
|
1432 |
+
div.wijmo-wijmenu .wijmo-wijmenu-child .wijmo-wijmenu-text
|
1433 |
+
{
|
1434 |
+
float:none;
|
1435 |
+
}
|
1436 |
+
|
1437 |
+
.wijmo-wijmenu .wijmo-wijmenu-item .wijmo-wijmenu-child .ui-state-hover {
|
1438 |
+
background: #191919;
|
1439 |
+
}
|
1440 |
+
|
1441 |
+
.wijmo-wijmenu .wijmo-wijmenu-item .wijmo-wijmenu-separator{
|
1442 |
+
padding: 5px 0;
|
1443 |
+
background-image: none;
|
1444 |
+
background-color: #222;
|
1445 |
+
border-top: 1px solid #444;
|
1446 |
+
border-bottom:0;
|
1447 |
+
border-left:0;
|
1448 |
+
border-right:0;
|
1449 |
+
}
|
1450 |
+
|
1451 |
+
.wijmo-wijmenu .wijmo-wijmenu-item input {
|
1452 |
+
-moz-transition: none 0s ease 0s;
|
1453 |
+
background-color: rgba(255, 255, 255, 0.3);
|
1454 |
+
border: 1px solid #111111;
|
1455 |
+
border-radius: 4px 4px 4px 4px;
|
1456 |
+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) inset, 0 1px 0 rgba(255, 255, 255, 0.25);
|
1457 |
+
color: rgba(255, 255, 255, 0.75);
|
1458 |
+
font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
|
1459 |
+
line-height: 1;
|
1460 |
+
margin: 5px 10px 0 10px;
|
1461 |
+
padding: 4px 9px;
|
1462 |
+
width:100px;
|
1463 |
+
}
|
1464 |
+
|
1465 |
+
.wijmo-wijmenu .wijmo-wijmenu-item input:hover {
|
1466 |
+
background-color: rgba(255, 255, 255, 0.5);
|
1467 |
+
color: #FFFFFF;
|
1468 |
+
}
|
1469 |
+
|
1470 |
+
.wijmo-wijmenu .wijmo-wijmenu-item input:focus {
|
1471 |
+
background-color: #FFFFFF;
|
1472 |
+
border: 0 none;
|
1473 |
+
box-shadow: 0 0 3px rgba(0, 0, 0, 0.15);
|
1474 |
+
color: #404040;
|
1475 |
+
outline: 0 none;
|
1476 |
+
padding: 5px 10px;
|
1477 |
+
}
|
1478 |
+
|
1479 |
+
.wijmo-wijmenu .ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default {
|
1480 |
+
text-shadow:none;
|
1481 |
+
}
|
1482 |
+
|
1483 |
+
.wijmo-wijmenu .ui-state-default{
|
1484 |
+
box-shadow: none;
|
1485 |
+
color:#BFBFBF;
|
1486 |
+
filter: none;
|
1487 |
+
}
|
assets/images/1c.png
ADDED
Binary file
|
assets/images/2cl.png
ADDED
Binary file
|
assets/images/2cr.png
ADDED
Binary file
|
assets/images/3cl.png
ADDED
Binary file
|
assets/images/3cm.png
ADDED
Binary file
|
assets/images/3cr.png
ADDED
Binary file
|
assets/images/ui-bg_flat_0_aaaaaa_40x100.png
ADDED
Binary file
|
assets/images/ui-bg_glass_55_fbf9ee_1x400.png
ADDED
Binary file
|
assets/images/ui-bg_glass_65_ffffff_1x400.png
ADDED
Binary file
|
assets/images/ui-bg_glass_75_dadada_1x400.png
ADDED
Binary file
|
assets/images/ui-bg_glass_75_e6e6e6_1x400.png
ADDED
Binary file
|
assets/images/ui-bg_glass_75_ffffff_1x400.png
ADDED
Binary file
|
assets/images/ui-bg_highlight-soft_75_cccccc_1x100.png
ADDED
Binary file
|
assets/images/ui-bg_inset-soft_95_fef1ec_1x100.png
ADDED
Binary file
|
assets/images/ui-icons_222222_256x240.png
ADDED
Binary file
|
assets/images/ui-icons_2e83ff_256x240.png
ADDED
Binary file
|
assets/images/ui-icons_454545_256x240.png
ADDED
Binary file
|
assets/images/ui-icons_888888_256x240.png
ADDED
Binary file
|
assets/images/ui-icons_cd0a0a_256x240.png
ADDED
Binary file
|
assets/images/ui-icons_f6cf3b_256x240.png
ADDED
Binary file
|
assets/js/customizer.js
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
jQuery.noConflict();
|
2 |
+
|
3 |
+
/** Fire up jQuery - let's dance!
|
4 |
+
*/
|
5 |
+
jQuery(document).ready(function($){
|
6 |
+
|
7 |
+
$('a.tooltip').tooltipsy({
|
8 |
+
offset: [10, 0],
|
9 |
+
css: {
|
10 |
+
'padding': '6px 15px',
|
11 |
+
'max-width': '200px',
|
12 |
+
'color': '#f7f7f7',
|
13 |
+
'background-color': '#222222',
|
14 |
+
'border': '1px solid #333333',
|
15 |
+
'-moz-box-shadow': '0 0 10px rgba(0, 0, 0, .5)',
|
16 |
+
'-webkit-box-shadow': '0 0 10px rgba(0, 0, 0, .5)',
|
17 |
+
'box-shadow': '0 0 10px rgba(0, 0, 0, .5)',
|
18 |
+
'text-shadow': 'none',
|
19 |
+
'border-radius' : '3px'
|
20 |
+
}
|
21 |
+
});
|
22 |
+
|
23 |
+
});
|
24 |
+
|
25 |
+
|
assets/js/tooltipsy.min.js
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* tooltipsy by Brian Cray
|
2 |
+
* Lincensed under GPL2 - http://www.gnu.org/licenses/gpl-2.0.html
|
3 |
+
* Option quick reference:
|
4 |
+
* - alignTo: "element" or "cursor" (Defaults to "element")
|
5 |
+
* - offset: Tooltipsy distance from element or mouse cursor, dependent on alignTo setting. Set as array [x, y] (Defaults to [0, -1])
|
6 |
+
* - content: HTML or text content of tooltip. Defaults to "" (empty string), which pulls content from target element's title attribute
|
7 |
+
* - show: function(event, tooltip) to show the tooltip. Defaults to a show(100) effect
|
8 |
+
* - hide: function(event, tooltip) to hide the tooltip. Defaults to a fadeOut(100) effect
|
9 |
+
* - delay: A delay in milliseconds before showing a tooltip. Set to 0 for no delay. Defaults to 200
|
10 |
+
* - css: object containing CSS properties and values. Defaults to {} to use stylesheet for styles
|
11 |
+
* - className: DOM class for styling tooltips with CSS. Defaults to "tooltipsy"
|
12 |
+
* - showEvent: Set a custom event to bind the show function. Defaults to mouseenter
|
13 |
+
* - hideEvent: Set a custom event to bind the show function. Defaults to mouseleave
|
14 |
+
* Method quick reference:
|
15 |
+
* - $('element').data('tooltipsy').show(): Force the tooltip to show
|
16 |
+
* - $('element').data('tooltipsy').hide(): Force the tooltip to hide
|
17 |
+
* - $('element').data('tooltipsy').destroy(): Remove tooltip from DOM
|
18 |
+
* More information visit http://tooltipsy.com/
|
19 |
+
*/
|
20 |
+
;(function(a){a.tooltipsy=function(c,b){this.options=b;this.$el=a(c);this.title=this.$el.attr("title")||"";this.$el.attr("title","");this.random=parseInt(Math.random()*10000);this.ready=false;this.shown=false;this.width=0;this.height=0;this.delaytimer=null;this.$el.data("tooltipsy",this);this.init()};a.tooltipsy.prototype={init:function(){var e=this,d,b=e.$el,c=b[0];e.settings=d=a.extend({},e.defaults,e.options);d.delay=+d.delay;if(typeof d.content==="function"){e.readify()}if(d.showEvent===d.hideEvent&&d.showEvent==="click"){b.toggle(function(f){if(d.showEvent==="click"&&c.tagName=="A"){f.preventDefault()}if(d.delay>0){e.delaytimer=window.setTimeout(function(){e.show(f)},d.delay)}else{e.show(f)}},function(f){if(d.showEvent==="click"&&c.tagName=="A"){f.preventDefault()}window.clearTimeout(e.delaytimer);e.delaytimer=null;e.hide(f)})}else{b.bind(d.showEvent,function(f){if(d.showEvent==="click"&&c.tagName=="A"){f.preventDefault()}e.delaytimer=window.setTimeout(function(){e.show(f)},d.delay||0)}).bind(d.hideEvent,function(f){if(d.showEvent==="click"&&c.tagName=="A"){f.preventDefault()}window.clearTimeout(e.delaytimer);e.delaytimer=null;e.hide(f)})}},show:function(i){if(this.ready===false){this.readify()}var b=this,f=b.settings,h=b.$tipsy,k=b.$el,d=k[0],g=b.offset(d);if(b.shown===false){if((function(m){var l=0,e;for(e in m){if(m.hasOwnProperty(e)){l++}}return l})(f.css)>0){b.$tip.css(f.css)}b.width=h.outerWidth();b.height=h.outerHeight()}if(f.alignTo==="cursor"&&i){var j=[i.clientX+f.offset[0],i.clientY+f.offset[1]];if(j[0]+b.width>a(window).width()){var c={top:j[1]+"px",right:j[0]+"px",left:"auto"}}else{var c={top:j[1]+"px",left:j[0]+"px",right:"auto"}}}else{var j=[(function(){if(f.offset[0]<0){return g.left-Math.abs(f.offset[0])-b.width}else{if(f.offset[0]===0){return g.left-((b.width-k.outerWidth())/2)}else{return g.left+k.outerWidth()+f.offset[0]}}})(),(function(){if(f.offset[1]<0){return g.top-Math.abs(f.offset[1])-b.height}else{if(f.offset[1]===0){return g.top-((b.height-b.$el.outerHeight())/2)}else{return g.top+b.$el.outerHeight()+f.offset[1]}}})()]}h.css({top:j[1]+"px",left:j[0]+"px"});b.settings.show(i,h.stop(true,true))},hide:function(c){var b=this;if(b.ready===false){return}if(c&&c.relatedTarget===b.$tip[0]){b.$tip.bind("mouseleave",function(d){if(d.relatedTarget===b.$el[0]){return}b.settings.hide(d,b.$tipsy.stop(true,true))});return}b.settings.hide(c,b.$tipsy.stop(true,true))},readify:function(){this.ready=true;this.$tipsy=a('<div id="tooltipsy'+this.random+'" style="position:fixed;z-index:2147483647;display:none">').appendTo("body");this.$tip=a('<div class="'+this.settings.className+'">').appendTo(this.$tipsy);this.$tip.data("rootel",this.$el);var c=this.$el;var b=this.$tip;this.$tip.html(this.settings.content!=""?(typeof this.settings.content=="string"?this.settings.content:this.settings.content(c,b)):this.title)},offset:function(b){return this.$el[0].getBoundingClientRect()},destroy:function(){if(this.$tipsy){this.$tipsy.remove();a.removeData(this.$el,"tooltipsy")}},defaults:{alignTo:"element",offset:[0,-1],content:"",show:function(c,b){b.fadeIn(100)},hide:function(c,b){b.fadeOut(100)},css:{},className:"tooltipsy",delay:200,showEvent:"mouseenter",hideEvent:"mouseleave"}};a.fn.tooltipsy=function(b){return this.each(function(){new a.tooltipsy(this,b)})}})(jQuery);
|
includes/controls/class-Kirki_Customize_Checkbox_Control.php
ADDED
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Kirki_Customize_Checkbox_Control extends WP_Customize_Control {
|
4 |
+
|
5 |
+
public $type = 'checkbox';
|
6 |
+
|
7 |
+
public $description = '';
|
8 |
+
|
9 |
+
public $subtitle = '';
|
10 |
+
|
11 |
+
public $separator = false;
|
12 |
+
|
13 |
+
public $required;
|
14 |
+
|
15 |
+
public function render_content() { ?>
|
16 |
+
<label class="customizer-checkbox">
|
17 |
+
<input type="checkbox" value="<?php echo esc_attr( $this->value() ); ?>" id="<?php echo $this->id . esc_attr( $this->value() ); ?>" <?php $this->link(); checked( $this->value() ); ?> />
|
18 |
+
<strong><?php echo esc_html( $this->label ); ?></strong>
|
19 |
+
<?php if ( isset( $this->description ) && '' != $this->description ) { ?>
|
20 |
+
<a href="#" class="button tooltip" title="<?php echo strip_tags( esc_html( $this->description ) ); ?>">?</a>
|
21 |
+
<?php } ?>
|
22 |
+
<?php if ( '' != $this->subtitle ) : ?>
|
23 |
+
<div class="customizer-subtitle"><?php echo $this->subtitle; ?></div>
|
24 |
+
<?php endif; ?>
|
25 |
+
</label>
|
26 |
+
<?php if ( $this->separator ) echo '<hr class="customizer-separator">'; ?>
|
27 |
+
<?php foreach ( $this->required as $id => $value ) :
|
28 |
+
|
29 |
+
if ( isset($id) && isset($value) && get_theme_mod($id,0)==$value ) { ?>
|
30 |
+
<script>
|
31 |
+
jQuery(document).ready(function($) {
|
32 |
+
$( "#customize-control-<?php echo $this->id; ?>" ).show();
|
33 |
+
$( "#<?php echo $id . get_theme_mod($id,0); ?>" ).click(function(){
|
34 |
+
$( "#customize-control-<?php echo $this->id; ?>" ).fadeOut(300);
|
35 |
+
});
|
36 |
+
$( "#<?php echo $id . $value; ?>" ).click(function(){
|
37 |
+
$( "#customize-control-<?php echo $this->id; ?>" ).fadeIn(300);
|
38 |
+
});
|
39 |
+
});
|
40 |
+
</script>
|
41 |
+
<?php }
|
42 |
+
|
43 |
+
if ( isset($id) && isset($value) && get_theme_mod($id,0)!=$value ) { ?>
|
44 |
+
<script>
|
45 |
+
jQuery(document).ready(function($) {
|
46 |
+
$( "#customize-control-<?php echo $this->id; ?>" ).hide();
|
47 |
+
$( "#<?php echo $id . get_theme_mod($id,0); ?>" ).click(function(){
|
48 |
+
$( "#customize-control-<?php echo $this->id; ?>" ).fadeOut(300);
|
49 |
+
});
|
50 |
+
$( "#<?php echo $id . $value; ?>" ).click(function(){
|
51 |
+
$( "#customize-control-<?php echo $this->id; ?>" ).fadeIn(300);
|
52 |
+
});
|
53 |
+
});
|
54 |
+
</script>
|
55 |
+
<?php }
|
56 |
+
|
57 |
+
endforeach;
|
58 |
+
}
|
59 |
+
}
|
includes/controls/class-Kirki_Customize_Color_Control.php
ADDED
@@ -0,0 +1,129 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Customize Color Control Class
|
5 |
+
*
|
6 |
+
* @package WordPress
|
7 |
+
* @subpackage Customize
|
8 |
+
* @since 3.4.0
|
9 |
+
*/
|
10 |
+
class Kirki_Customize_Color_Control extends WP_Customize_Control {
|
11 |
+
/**
|
12 |
+
* @access public
|
13 |
+
* @var string
|
14 |
+
*/
|
15 |
+
public $type = 'color';
|
16 |
+
|
17 |
+
/**
|
18 |
+
* @access public
|
19 |
+
* @var array
|
20 |
+
*/
|
21 |
+
public $statuses;
|
22 |
+
|
23 |
+
public $description = '';
|
24 |
+
|
25 |
+
public $subtitle = '';
|
26 |
+
|
27 |
+
public $separator = false;
|
28 |
+
|
29 |
+
public $required;
|
30 |
+
|
31 |
+
/**
|
32 |
+
* Constructor.
|
33 |
+
*
|
34 |
+
* @since 3.4.0
|
35 |
+
* @uses WP_Customize_Control::__construct()
|
36 |
+
*
|
37 |
+
* @param WP_Customize_Manager $manager
|
38 |
+
* @param string $id
|
39 |
+
* @param array $args
|
40 |
+
*/
|
41 |
+
public function __construct( $manager, $id, $args = array() ) {
|
42 |
+
$this->statuses = array( '' => __('Default') );
|
43 |
+
parent::__construct( $manager, $id, $args );
|
44 |
+
}
|
45 |
+
|
46 |
+
/**
|
47 |
+
* Enqueue scripts/styles for the color picker.
|
48 |
+
*
|
49 |
+
* @since 3.4.0
|
50 |
+
*/
|
51 |
+
public function enqueue() {
|
52 |
+
wp_enqueue_script( 'wp-color-picker' );
|
53 |
+
wp_enqueue_style( 'wp-color-picker' );
|
54 |
+
}
|
55 |
+
|
56 |
+
/**
|
57 |
+
* Refresh the parameters passed to the JavaScript via JSON.
|
58 |
+
*
|
59 |
+
* @since 3.4.0
|
60 |
+
* @uses WP_Customize_Control::to_json()
|
61 |
+
*/
|
62 |
+
public function to_json() {
|
63 |
+
parent::to_json();
|
64 |
+
$this->json['statuses'] = $this->statuses;
|
65 |
+
}
|
66 |
+
|
67 |
+
/**
|
68 |
+
* Render the control's content.
|
69 |
+
*
|
70 |
+
* @since 3.4.0
|
71 |
+
*/
|
72 |
+
public function render_content() {
|
73 |
+
$this_default = $this->setting->default;
|
74 |
+
$default_attr = '';
|
75 |
+
if ( $this_default ) {
|
76 |
+
if ( false === strpos( $this_default, '#' ) )
|
77 |
+
$this_default = '#' . $this_default;
|
78 |
+
$default_attr = ' data-default-color="' . esc_attr( $this_default ) . '"';
|
79 |
+
}
|
80 |
+
// The input's value gets set by JS. Don't fill it.
|
81 |
+
?>
|
82 |
+
<label>
|
83 |
+
<span class="customize-control-title">
|
84 |
+
<?php echo esc_html( $this->label ); ?>
|
85 |
+
<?php if ( isset( $this->description ) && ! empty( $this->description ) ) { ?>
|
86 |
+
<a href="#" class="button tooltip" title="<?php echo strip_tags( esc_html( $this->description ) ); ?>">?</a>
|
87 |
+
<?php } ?>
|
88 |
+
</span>
|
89 |
+
<?php if ( '' != $this->subtitle ) : ?>
|
90 |
+
<div class="customizer-subtitle"><?php echo $this->subtitle; ?></div>
|
91 |
+
<?php endif; ?>
|
92 |
+
<div class="customize-control-content">
|
93 |
+
<input class="color-picker-hex" type="text" maxlength="7" placeholder="<?php esc_attr_e( 'Hex Value' ); ?>"<?php echo $default_attr; ?> />
|
94 |
+
</div>
|
95 |
+
</label>
|
96 |
+
<?php if ( $this->separator ) echo '<hr class="customizer-separator">'; ?>
|
97 |
+
<?php foreach ( $this->required as $id => $value ) :
|
98 |
+
|
99 |
+
if ( isset($id) && isset($value) && get_theme_mod($id,0)==$value ) { ?>
|
100 |
+
<script>
|
101 |
+
jQuery(document).ready(function($) {
|
102 |
+
$( "#customize-control-<?php echo $this->id; ?>" ).show();
|
103 |
+
$( "#<?php echo $id . get_theme_mod($id,0); ?>" ).click(function(){
|
104 |
+
$( "#customize-control-<?php echo $this->id; ?>" ).fadeOut(300);
|
105 |
+
});
|
106 |
+
$( "#<?php echo $id . $value; ?>" ).click(function(){
|
107 |
+
$( "#customize-control-<?php echo $this->id; ?>" ).fadeIn(300);
|
108 |
+
});
|
109 |
+
});
|
110 |
+
</script>
|
111 |
+
<?php }
|
112 |
+
|
113 |
+
if ( isset($id) && isset($value) && get_theme_mod($id,0)!=$value ) { ?>
|
114 |
+
<script>
|
115 |
+
jQuery(document).ready(function($) {
|
116 |
+
$( "#customize-control-<?php echo $this->id; ?>" ).hide();
|
117 |
+
$( "#<?php echo $id . get_theme_mod($id,0); ?>" ).click(function(){
|
118 |
+
$( "#customize-control-<?php echo $this->id; ?>" ).fadeOut(300);
|
119 |
+
});
|
120 |
+
$( "#<?php echo $id . $value; ?>" ).click(function(){
|
121 |
+
$( "#customize-control-<?php echo $this->id; ?>" ).fadeIn(300);
|
122 |
+
});
|
123 |
+
});
|
124 |
+
</script>
|
125 |
+
<?php }
|
126 |
+
|
127 |
+
endforeach;
|
128 |
+
}
|
129 |
+
}
|
includes/controls/class-Kirki_Customize_Image_Control.php
ADDED
@@ -0,0 +1,230 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Customize Image Control Class
|
5 |
+
*
|
6 |
+
* @package WordPress
|
7 |
+
* @subpackage Customize
|
8 |
+
* @since 3.4.0
|
9 |
+
*/
|
10 |
+
class Kirki_Customize_Image_Control extends WP_Customize_Upload_Control {
|
11 |
+
public $type = 'image';
|
12 |
+
public $get_url;
|
13 |
+
public $statuses;
|
14 |
+
public $extensions = array( 'jpg', 'jpeg', 'gif', 'png' );
|
15 |
+
|
16 |
+
public $description = '';
|
17 |
+
|
18 |
+
public $subtitle = '';
|
19 |
+
|
20 |
+
public $separator = false;
|
21 |
+
|
22 |
+
public $required;
|
23 |
+
|
24 |
+
protected $tabs = array();
|
25 |
+
|
26 |
+
/**
|
27 |
+
* Constructor.
|
28 |
+
*
|
29 |
+
* @since 3.4.0
|
30 |
+
* @uses WP_Customize_Upload_Control::__construct()
|
31 |
+
*
|
32 |
+
* @param WP_Customize_Manager $manager
|
33 |
+
* @param string $id
|
34 |
+
* @param array $args
|
35 |
+
*/
|
36 |
+
public function __construct( $manager, $id, $args ) {
|
37 |
+
$this->statuses = array( '' => __('No Image') );
|
38 |
+
|
39 |
+
parent::__construct( $manager, $id, $args );
|
40 |
+
|
41 |
+
$this->add_tab( 'upload-new', __('Upload New'), array( $this, 'tab_upload_new' ) );
|
42 |
+
$this->add_tab( 'uploaded', __('Uploaded'), array( $this, 'tab_uploaded' ) );
|
43 |
+
|
44 |
+
// Early priority to occur before $this->manager->prepare_controls();
|
45 |
+
add_action( 'customize_controls_init', array( $this, 'prepare_control' ), 5 );
|
46 |
+
}
|
47 |
+
|
48 |
+
/**
|
49 |
+
* Prepares the control.
|
50 |
+
*
|
51 |
+
* If no tabs exist, removes the control from the manager.
|
52 |
+
*
|
53 |
+
* @since 3.4.2
|
54 |
+
*/
|
55 |
+
public function prepare_control() {
|
56 |
+
if ( ! $this->tabs )
|
57 |
+
$this->manager->remove_control( $this->id );
|
58 |
+
}
|
59 |
+
|
60 |
+
/**
|
61 |
+
* Refresh the parameters passed to the JavaScript via JSON.
|
62 |
+
*
|
63 |
+
* @since 3.4.0
|
64 |
+
* @uses WP_Customize_Upload_Control::to_json()
|
65 |
+
*/
|
66 |
+
public function to_json() {
|
67 |
+
parent::to_json();
|
68 |
+
$this->json['statuses'] = $this->statuses;
|
69 |
+
}
|
70 |
+
|
71 |
+
/**
|
72 |
+
* Render the control's content.
|
73 |
+
*
|
74 |
+
* @since 3.4.0
|
75 |
+
*/
|
76 |
+
public function render_content() {
|
77 |
+
$src = $this->value();
|
78 |
+
if ( isset( $this->get_url ) )
|
79 |
+
$src = call_user_func( $this->get_url, $src );
|
80 |
+
|
81 |
+
?>
|
82 |
+
<div class="customize-image-picker">
|
83 |
+
<span class="customize-control-title">
|
84 |
+
<?php echo esc_html( $this->label ); ?>
|
85 |
+
<?php if ( isset( $this->description ) && '' != $this->description ) { ?>
|
86 |
+
<a href="#" class="button tooltip" title="<?php echo strip_tags( esc_html( $this->description ) ); ?>">?</a>
|
87 |
+
<?php } ?>
|
88 |
+
</span>
|
89 |
+
|
90 |
+
<?php if ( '' != $this->subtitle ) : ?>
|
91 |
+
<div class="customizer-subtitle"><?php echo $this->subtitle; ?></div>
|
92 |
+
<?php endif; ?>
|
93 |
+
|
94 |
+
<div class="customize-control-content">
|
95 |
+
<div class="dropdown preview-thumbnail" tabindex="0">
|
96 |
+
<div class="dropdown-content">
|
97 |
+
<?php if ( empty( $src ) ): ?>
|
98 |
+
<img style="display:none;" />
|
99 |
+
<?php else: ?>
|
100 |
+
<img src="<?php echo esc_url( set_url_scheme( $src ) ); ?>" />
|
101 |
+
<?php endif; ?>
|
102 |
+
<div class="dropdown-status"></div>
|
103 |
+
</div>
|
104 |
+
<div class="dropdown-arrow"></div>
|
105 |
+
</div>
|
106 |
+
</div>
|
107 |
+
|
108 |
+
<div class="library">
|
109 |
+
<ul>
|
110 |
+
<?php foreach ( $this->tabs as $id => $tab ): ?>
|
111 |
+
<li data-customize-tab='<?php echo esc_attr( $id ); ?>' tabindex='0'>
|
112 |
+
<?php echo esc_html( $tab['label'] ); ?>
|
113 |
+
</li>
|
114 |
+
<?php endforeach; ?>
|
115 |
+
</ul>
|
116 |
+
<?php foreach ( $this->tabs as $id => $tab ): ?>
|
117 |
+
<div class="library-content" data-customize-tab='<?php echo esc_attr( $id ); ?>'>
|
118 |
+
<?php call_user_func( $tab['callback'] ); ?>
|
119 |
+
</div>
|
120 |
+
<?php endforeach; ?>
|
121 |
+
</div>
|
122 |
+
|
123 |
+
<div class="actions">
|
124 |
+
<a href="#" class="remove"><?php _e( 'Remove Image' ); ?></a>
|
125 |
+
</div>
|
126 |
+
</div>
|
127 |
+
<?php if ( $this->separator ) echo '<hr class="customizer-separator">'; ?>
|
128 |
+
<?php foreach ( $this->required as $id => $value ) :
|
129 |
+
|
130 |
+
if ( isset($id) && isset($value) && get_theme_mod($id,0)==$value ) { ?>
|
131 |
+
<script>
|
132 |
+
jQuery(document).ready(function($) {
|
133 |
+
$( "#customize-control-<?php echo $this->id; ?>" ).show();
|
134 |
+
$( "#<?php echo $id . get_theme_mod($id,0); ?>" ).click(function(){
|
135 |
+
$( "#customize-control-<?php echo $this->id; ?>" ).fadeOut(300);
|
136 |
+
});
|
137 |
+
$( "#<?php echo $id . $value; ?>" ).click(function(){
|
138 |
+
$( "#customize-control-<?php echo $this->id; ?>" ).fadeIn(300);
|
139 |
+
});
|
140 |
+
});
|
141 |
+
</script>
|
142 |
+
<?php }
|
143 |
+
|
144 |
+
if ( isset($id) && isset($value) && get_theme_mod($id,0)!=$value ) { ?>
|
145 |
+
<script>
|
146 |
+
jQuery(document).ready(function($) {
|
147 |
+
$( "#customize-control-<?php echo $this->id; ?>" ).hide();
|
148 |
+
$( "#<?php echo $id . get_theme_mod($id,0); ?>" ).click(function(){
|
149 |
+
$( "#customize-control-<?php echo $this->id; ?>" ).fadeOut(300);
|
150 |
+
});
|
151 |
+
$( "#<?php echo $id . $value; ?>" ).click(function(){
|
152 |
+
$( "#customize-control-<?php echo $this->id; ?>" ).fadeIn(300);
|
153 |
+
});
|
154 |
+
});
|
155 |
+
</script>
|
156 |
+
<?php }
|
157 |
+
|
158 |
+
endforeach;
|
159 |
+
}
|
160 |
+
|
161 |
+
/**
|
162 |
+
* Add a tab to the control.
|
163 |
+
*
|
164 |
+
* @since 3.4.0
|
165 |
+
*
|
166 |
+
* @param string $id
|
167 |
+
* @param string $label
|
168 |
+
* @param mixed $callback
|
169 |
+
*/
|
170 |
+
public function add_tab( $id, $label, $callback ) {
|
171 |
+
$this->tabs[ $id ] = array(
|
172 |
+
'label' => $label,
|
173 |
+
'callback' => $callback,
|
174 |
+
);
|
175 |
+
}
|
176 |
+
|
177 |
+
/**
|
178 |
+
* Remove a tab from the control.
|
179 |
+
*
|
180 |
+
* @since 3.4.0
|
181 |
+
*
|
182 |
+
* @param string $id
|
183 |
+
*/
|
184 |
+
public function remove_tab( $id ) {
|
185 |
+
unset( $this->tabs[ $id ] );
|
186 |
+
}
|
187 |
+
|
188 |
+
/**
|
189 |
+
* @since 3.4.0
|
190 |
+
*/
|
191 |
+
public function tab_upload_new() {
|
192 |
+
if ( ! _device_can_upload() ) {
|
193 |
+
echo '<p>' . sprintf( __('The web browser on your device cannot be used to upload files. You may be able to use the <a href="%s">native app for your device</a> instead.'), 'https://wordpress.org/mobile/' ) . '</p>';
|
194 |
+
} else {
|
195 |
+
?>
|
196 |
+
<div class="upload-dropzone">
|
197 |
+
<?php _e('Drop a file here or <a href="#" class="upload">select a file</a>.'); ?>
|
198 |
+
</div>
|
199 |
+
<div class="upload-fallback">
|
200 |
+
<span class="button-secondary"><?php _e('Select File'); ?></span>
|
201 |
+
</div>
|
202 |
+
<?php
|
203 |
+
}
|
204 |
+
}
|
205 |
+
|
206 |
+
/**
|
207 |
+
* @since 3.4.0
|
208 |
+
*/
|
209 |
+
public function tab_uploaded() {
|
210 |
+
?>
|
211 |
+
<div class="uploaded-target"></div>
|
212 |
+
<?php
|
213 |
+
}
|
214 |
+
|
215 |
+
/**
|
216 |
+
* @since 3.4.0
|
217 |
+
*
|
218 |
+
* @param string $url
|
219 |
+
* @param string $thumbnail_url
|
220 |
+
*/
|
221 |
+
public function print_tab_image( $url, $thumbnail_url = null ) {
|
222 |
+
$url = set_url_scheme( $url );
|
223 |
+
$thumbnail_url = ( $thumbnail_url ) ? set_url_scheme( $thumbnail_url ) : $url;
|
224 |
+
?>
|
225 |
+
<a href="#" class="thumbnail" data-customize-image-value="<?php echo esc_url( $url ); ?>">
|
226 |
+
<img src="<?php echo esc_url( $thumbnail_url ); ?>" />
|
227 |
+
</a>
|
228 |
+
<?php
|
229 |
+
}
|
230 |
+
}
|
includes/controls/class-Kirki_Customize_Multicheck_Control.php
ADDED
@@ -0,0 +1,116 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Control inspired by the Titan Framework Multicheck control.
|
5 |
+
* See https://github.com/gambitph/Titan-Framework/blob/v1.4.2/class-option-multicheck.php for more details.
|
6 |
+
*/
|
7 |
+
|
8 |
+
class Kirki_Customize_Multicheck_Control extends WP_Customize_Control {
|
9 |
+
|
10 |
+
public $description = '';
|
11 |
+
|
12 |
+
public $subtitle = '';
|
13 |
+
|
14 |
+
public $separator = false;
|
15 |
+
|
16 |
+
public $required;
|
17 |
+
|
18 |
+
private static $firstLoad = true;
|
19 |
+
|
20 |
+
// Since theme_mod cannot handle multichecks, we will do it with some JS
|
21 |
+
public function render_content() {
|
22 |
+
// the saved value is an array. convert it to csv
|
23 |
+
if ( is_array( $this->value() ) ) {
|
24 |
+
$savedValueCSV = implode( ',', $this->value() );
|
25 |
+
$values = $this->value();
|
26 |
+
} else {
|
27 |
+
$savedValueCSV = $this->value();
|
28 |
+
$values = explode( ',', $this->value() );
|
29 |
+
}
|
30 |
+
|
31 |
+
if ( self::$firstLoad ) {
|
32 |
+
self::$firstLoad = false;
|
33 |
+
|
34 |
+
?>
|
35 |
+
<script>
|
36 |
+
jQuery(document).ready(function($) {
|
37 |
+
"use strict";
|
38 |
+
|
39 |
+
$('input.tf-multicheck').change(function(event) {
|
40 |
+
event.preventDefault();
|
41 |
+
var csv = '';
|
42 |
+
|
43 |
+
$(this).parents('li:eq(0)').find('input[type=checkbox]').each(function() {
|
44 |
+
if ($(this).is(':checked')) {
|
45 |
+
csv += $(this).attr('value') + ',';
|
46 |
+
}
|
47 |
+
});
|
48 |
+
|
49 |
+
csv = csv.replace(/,+$/, "");
|
50 |
+
|
51 |
+
$(this).parents('li:eq(0)').find('input[type=hidden]').val(csv)
|
52 |
+
// we need to trigger the field afterwards to enable the save button
|
53 |
+
.trigger('change');
|
54 |
+
return true;
|
55 |
+
});
|
56 |
+
});
|
57 |
+
</script>
|
58 |
+
<?php
|
59 |
+
} ?>
|
60 |
+
<label class='tf-multicheck-container'>
|
61 |
+
<span class="customize-control-title">
|
62 |
+
<?php echo esc_html( $this->label ); ?>
|
63 |
+
<?php if ( isset( $this->description ) && '' != $this->description ) { ?>
|
64 |
+
<a href="#" class="button tooltip" title="<?php echo strip_tags( esc_html( $this->description ) ); ?>">?</a>
|
65 |
+
<?php } ?>
|
66 |
+
</span>
|
67 |
+
<?php if ( '' != $this->subtitle ) : ?>
|
68 |
+
<div class="customizer-subtitle"><?php echo $this->subtitle; ?></div>
|
69 |
+
<?php endif; ?>
|
70 |
+
<?php
|
71 |
+
foreach ( $this->choices as $value => $label ) {
|
72 |
+
printf('<label for="%s"><input class="tf-multicheck" id="%s" type="checkbox" value="%s" %s/> %s</label><br>',
|
73 |
+
$this->id . $value,
|
74 |
+
$this->id . $value,
|
75 |
+
esc_attr( $value ),
|
76 |
+
checked( in_array( $value, $values ), true, false ),
|
77 |
+
$label
|
78 |
+
);
|
79 |
+
}
|
80 |
+
?>
|
81 |
+
<input type="hidden" value="<?php echo esc_attr( $savedValueCSV ); ?>" <?php $this->link(); ?> />
|
82 |
+
</label>
|
83 |
+
<?php if ( $this->separator ) echo '<hr class="customizer-separator">'; ?>
|
84 |
+
<?php foreach ( $this->required as $id => $value ) :
|
85 |
+
|
86 |
+
if ( isset($id) && isset($value) && get_theme_mod($id,0)==$value ) { ?>
|
87 |
+
<script>
|
88 |
+
jQuery(document).ready(function($) {
|
89 |
+
$( "#customize-control-<?php echo $this->id; ?>" ).show();
|
90 |
+
$( "#<?php echo $id . get_theme_mod($id,0); ?>" ).click(function(){
|
91 |
+
$( "#customize-control-<?php echo $this->id; ?>" ).fadeOut(300);
|
92 |
+
});
|
93 |
+
$( "#<?php echo $id . $value; ?>" ).click(function(){
|
94 |
+
$( "#customize-control-<?php echo $this->id; ?>" ).fadeIn(300);
|
95 |
+
});
|
96 |
+
});
|
97 |
+
</script>
|
98 |
+
<?php }
|
99 |
+
|
100 |
+
if ( isset($id) && isset($value) && get_theme_mod($id,0)!=$value ) { ?>
|
101 |
+
<script>
|
102 |
+
jQuery(document).ready(function($) {
|
103 |
+
$( "#customize-control-<?php echo $this->id; ?>" ).hide();
|
104 |
+
$( "#<?php echo $id . get_theme_mod($id,0); ?>" ).click(function(){
|
105 |
+
$( "#customize-control-<?php echo $this->id; ?>" ).fadeOut(300);
|
106 |
+
});
|
107 |
+
$( "#<?php echo $id . $value; ?>" ).click(function(){
|
108 |
+
$( "#customize-control-<?php echo $this->id; ?>" ).fadeIn(300);
|
109 |
+
});
|
110 |
+
});
|
111 |
+
</script>
|
112 |
+
<?php }
|
113 |
+
|
114 |
+
endforeach;
|
115 |
+
}
|
116 |
+
}
|
includes/controls/class-Kirki_Customize_Number_Control.php
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Kirki_Customize_Number_Control extends WP_Customize_Control {
|
4 |
+
|
5 |
+
public $type = 'number';
|
6 |
+
|
7 |
+
public $description = '';
|
8 |
+
|
9 |
+
public $subtitle = '';
|
10 |
+
|
11 |
+
public $separator = false;
|
12 |
+
|
13 |
+
public function render_content() { ?>
|
14 |
+
|
15 |
+
<label class="customizer-text">
|
16 |
+
<span class="customize-control-title">
|
17 |
+
<?php echo esc_html( $this->label ); ?>
|
18 |
+
|
19 |
+
<?php if ( isset( $this->description ) && '' != $this->description ) { ?>
|
20 |
+
<a href="#" class="button tooltip" title="<?php echo strip_tags( esc_html( $this->description ) ); ?>">?</a>
|
21 |
+
<?php } ?>
|
22 |
+
</span>
|
23 |
+
|
24 |
+
<?php if ( '' != $this->subtitle ) : ?>
|
25 |
+
<div class="customizer-subtitle"><?php echo $this->subtitle; ?></div>
|
26 |
+
<?php endif; ?>
|
27 |
+
|
28 |
+
<input type="number" <?php $this->link(); ?> value="<?php echo intval( $this->value() ); ?>"/>
|
29 |
+
<?php if ( isset( $this->description ) && '' != $this->description ) { ?>
|
30 |
+
<a href="#" class="button tooltip" title="<?php echo strip_tags( esc_html( $this->description ) ); ?>">?</a>
|
31 |
+
<?php } ?>
|
32 |
+
</label>
|
33 |
+
<?php if ( $this->separator ) echo '<hr class="customizer-separator">'; ?>
|
34 |
+
<?php
|
35 |
+
}
|
36 |
+
}
|
includes/controls/class-Kirki_Customize_Radio_Control.php
ADDED
@@ -0,0 +1,127 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Kirki_Customize_Radio_Control extends WP_Customize_Control {
|
4 |
+
|
5 |
+
public $type = 'radio';
|
6 |
+
|
7 |
+
public $description = '';
|
8 |
+
|
9 |
+
public $mode = 'radio';
|
10 |
+
|
11 |
+
public $subtitle = '';
|
12 |
+
|
13 |
+
public $separator = false;
|
14 |
+
|
15 |
+
public $required;
|
16 |
+
|
17 |
+
public function enqueue() {
|
18 |
+
|
19 |
+
if ( 'buttonset' == $this->mode || 'image' == $this->mode ) {
|
20 |
+
wp_enqueue_script( 'jquery-ui-button' );
|
21 |
+
}
|
22 |
+
|
23 |
+
}
|
24 |
+
|
25 |
+
public function render_content() {
|
26 |
+
|
27 |
+
if ( empty( $this->choices ) ) {
|
28 |
+
return;
|
29 |
+
}
|
30 |
+
|
31 |
+
$name = '_customize-radio-' . $this->id;
|
32 |
+
|
33 |
+
?>
|
34 |
+
<span class="customize-control-title">
|
35 |
+
<?php echo esc_html( $this->label ); ?>
|
36 |
+
<?php if ( isset( $this->description ) && '' != $this->description ) { ?>
|
37 |
+
<a href="#" class="button tooltip" title="<?php echo strip_tags( esc_html( $this->description ) ); ?>">?</a>
|
38 |
+
<?php } ?>
|
39 |
+
</span>
|
40 |
+
|
41 |
+
<div id="input_<?php echo $this->id; ?>" class="<?php echo $this->mode; ?>">
|
42 |
+
<?php if ( '' != $this->subtitle ) : ?>
|
43 |
+
<div class="customizer-subtitle"><?php echo $this->subtitle; ?></div>
|
44 |
+
<?php endif; ?>
|
45 |
+
<?php
|
46 |
+
|
47 |
+
// JqueryUI Button Sets
|
48 |
+
if ( 'buttonset' == $this->mode ) {
|
49 |
+
|
50 |
+
foreach ( $this->choices as $value => $label ) : ?>
|
51 |
+
<input type="radio" value="<?php echo esc_attr( $value ); ?>" name="<?php echo esc_attr( $name ); ?>" id="<?php echo $this->id . $value; ?>" <?php $this->link(); checked( $this->value(), $value ); ?>>
|
52 |
+
<label for="<?php echo $this->id . $value; ?>">
|
53 |
+
<?php echo esc_html( $label ); ?>
|
54 |
+
</label>
|
55 |
+
</input>
|
56 |
+
<?php
|
57 |
+
endforeach;
|
58 |
+
|
59 |
+
// Image radios.
|
60 |
+
} elseif ( 'image' == $this->mode ) {
|
61 |
+
|
62 |
+
foreach ( $this->choices as $value => $label ) : ?>
|
63 |
+
<input class="image-select" type="radio" value="<?php echo esc_attr( $value ); ?>" name="<?php echo esc_attr( $name ); ?>" id="<?php echo $this->id . $value; ?>" <?php $this->link(); checked( $this->value(), $value ); ?>>
|
64 |
+
<label for="<?php echo $this->id . $value; ?>">
|
65 |
+
<img src="<?php echo esc_html( $label ); ?>">
|
66 |
+
</label>
|
67 |
+
</input>
|
68 |
+
<?php
|
69 |
+
endforeach;
|
70 |
+
|
71 |
+
// Normal radios
|
72 |
+
} else {
|
73 |
+
|
74 |
+
foreach ( $this->choices as $value => $label ) :
|
75 |
+
?>
|
76 |
+
<label class="customizer-radio">
|
77 |
+
<input type="radio" value="<?php echo esc_attr( $value ); ?>" name="<?php echo esc_attr( $name ); ?>" <?php $this->link(); checked( $this->value(), $value ); ?> />
|
78 |
+
<?php echo esc_html( $label ); ?><br/>
|
79 |
+
</label>
|
80 |
+
<?php
|
81 |
+
endforeach;
|
82 |
+
|
83 |
+
}
|
84 |
+
?>
|
85 |
+
</div>
|
86 |
+
<?php if ( $this->separator ) echo '<hr class="customizer-separator">'; ?>
|
87 |
+
<?php if ( 'buttonset' == $this->mode || 'image' == $this->mode ) { ?>
|
88 |
+
<script>
|
89 |
+
jQuery(document).ready(function($) {
|
90 |
+
$( "#input_<?php echo $this->id; ?>" ).buttonset();
|
91 |
+
});
|
92 |
+
</script>
|
93 |
+
<?php } ?>
|
94 |
+
|
95 |
+
<?php foreach ( $this->required as $id => $value ) :
|
96 |
+
|
97 |
+
if ( isset($id) && isset($value) && get_theme_mod($id,0)==$value ) { ?>
|
98 |
+
<script>
|
99 |
+
jQuery(document).ready(function($) {
|
100 |
+
$( "#customize-control-<?php echo $this->id; ?>" ).show();
|
101 |
+
$( "#<?php echo $id . get_theme_mod($id,0); ?>" ).click(function(){
|
102 |
+
$( "#customize-control-<?php echo $this->id; ?>" ).fadeOut(300);
|
103 |
+
});
|
104 |
+
$( "#<?php echo $id . $value; ?>" ).click(function(){
|
105 |
+
$( "#customize-control-<?php echo $this->id; ?>" ).fadeIn(300);
|
106 |
+
});
|
107 |
+
});
|
108 |
+
</script>
|
109 |
+
<?php }
|
110 |
+
|
111 |
+
if ( isset($id) && isset($value) && get_theme_mod($id,0)!=$value ) { ?>
|
112 |
+
<script>
|
113 |
+
jQuery(document).ready(function($) {
|
114 |
+
$( "#customize-control-<?php echo $this->id; ?>" ).hide();
|
115 |
+
$( "#<?php echo $id . get_theme_mod($id,0); ?>" ).click(function(){
|
116 |
+
$( "#customize-control-<?php echo $this->id; ?>" ).fadeOut(300);
|
117 |
+
});
|
118 |
+
$( "#<?php echo $id . $value; ?>" ).click(function(){
|
119 |
+
$( "#customize-control-<?php echo $this->id; ?>" ).fadeIn(300);
|
120 |
+
});
|
121 |
+
});
|
122 |
+
</script>
|
123 |
+
<?php }
|
124 |
+
|
125 |
+
endforeach;
|
126 |
+
}
|
127 |
+
}
|
includes/controls/class-Kirki_Customize_Sliderui_Control.php
ADDED
@@ -0,0 +1,88 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Kirki_Customize_Sliderui_Control extends WP_Customize_Control {
|
4 |
+
|
5 |
+
public $type = 'slider';
|
6 |
+
|
7 |
+
public $description = '';
|
8 |
+
|
9 |
+
public $subtitle = '';
|
10 |
+
|
11 |
+
public $separator = false;
|
12 |
+
|
13 |
+
public $required;
|
14 |
+
|
15 |
+
public function enqueue() {
|
16 |
+
|
17 |
+
wp_enqueue_script( 'jquery-ui-core' );
|
18 |
+
wp_enqueue_script( 'jquery-ui-slider' );
|
19 |
+
|
20 |
+
}
|
21 |
+
|
22 |
+
public function render_content() { ?>
|
23 |
+
<label>
|
24 |
+
|
25 |
+
<span class="customize-control-title">
|
26 |
+
<?php echo esc_html( $this->label ); ?>
|
27 |
+
<?php if ( isset( $this->description ) && '' != $this->description ) { ?>
|
28 |
+
<a href="#" class="button tooltip" title="<?php echo strip_tags( esc_html( $this->description ) ); ?>">?</a>
|
29 |
+
<?php } ?>
|
30 |
+
</span>
|
31 |
+
|
32 |
+
<?php if ( '' != $this->subtitle ) : ?>
|
33 |
+
<div class="customizer-subtitle"><?php echo $this->subtitle; ?></div>
|
34 |
+
<?php endif; ?>
|
35 |
+
|
36 |
+
<input type="text" id="input_<?php echo $this->id; ?>" disabled value="<?php echo $this->value(); ?>" <?php $this->link(); ?>/>
|
37 |
+
|
38 |
+
</label>
|
39 |
+
|
40 |
+
<div id="slider_<?php echo $this->id; ?>" class="ss-slider"></div>
|
41 |
+
<?php if ( $this->separator ) echo '<hr class="customizer-separator">'; ?>
|
42 |
+
<script>
|
43 |
+
jQuery(document).ready(function($) {
|
44 |
+
$( "#slider_<?php echo $this->id; ?>" ).slider({
|
45 |
+
value : <?php echo $this->value(); ?>,
|
46 |
+
min : <?php echo $this->choices['min']; ?>,
|
47 |
+
max : <?php echo $this->choices['max']; ?>,
|
48 |
+
step : <?php echo $this->choices['step']; ?>,
|
49 |
+
slide : function( event, ui ) { $( "#input_<?php echo $this->id; ?>" ).val(ui.value).keyup(); }
|
50 |
+
});
|
51 |
+
$( "#input_<?php echo $this->id; ?>" ).val( $( "#slider_<?php echo $this->id; ?>" ).slider( "value" ) );
|
52 |
+
});
|
53 |
+
</script>
|
54 |
+
<?php
|
55 |
+
|
56 |
+
foreach ( $this->required as $id => $value ) :
|
57 |
+
|
58 |
+
if ( isset($id) && isset($value) && get_theme_mod($id,0)==$value ) { ?>
|
59 |
+
<script>
|
60 |
+
jQuery(document).ready(function($) {
|
61 |
+
$( "#customize-control-<?php echo $this->id; ?>" ).show();
|
62 |
+
$( "#<?php echo $id . get_theme_mod($id,0); ?>" ).click(function(){
|
63 |
+
$( "#customize-control-<?php echo $this->id; ?>" ).fadeOut(300);
|
64 |
+
});
|
65 |
+
$( "#<?php echo $id . $value; ?>" ).click(function(){
|
66 |
+
$( "#customize-control-<?php echo $this->id; ?>" ).fadeIn(300);
|
67 |
+
});
|
68 |
+
});
|
69 |
+
</script>
|
70 |
+
<?php }
|
71 |
+
|
72 |
+
if ( isset($id) && isset($value) && get_theme_mod($id,0)!=$value ) { ?>
|
73 |
+
<script>
|
74 |
+
jQuery(document).ready(function($) {
|
75 |
+
$( "#customize-control-<?php echo $this->id; ?>" ).hide();
|
76 |
+
$( "#<?php echo $id . get_theme_mod($id,0); ?>" ).click(function(){
|
77 |
+
$( "#customize-control-<?php echo $this->id; ?>" ).fadeOut(300);
|
78 |
+
});
|
79 |
+
$( "#<?php echo $id . $value; ?>" ).click(function(){
|
80 |
+
$( "#customize-control-<?php echo $this->id; ?>" ).fadeIn(300);
|
81 |
+
});
|
82 |
+
});
|
83 |
+
</script>
|
84 |
+
<?php }
|
85 |
+
|
86 |
+
endforeach;
|
87 |
+
}
|
88 |
+
}
|
includes/controls/class-Kirki_Customize_Text_Control.php
ADDED
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Kirki_Customize_Text_Control extends WP_Customize_Control {
|
4 |
+
|
5 |
+
public $type = 'text';
|
6 |
+
|
7 |
+
public $description = '';
|
8 |
+
|
9 |
+
public $subtitle = '';
|
10 |
+
|
11 |
+
public $separator = false;
|
12 |
+
|
13 |
+
public $required;
|
14 |
+
|
15 |
+
public function render_content() { ?>
|
16 |
+
|
17 |
+
<label class="customizer-text">
|
18 |
+
<span class="customize-control-title">
|
19 |
+
<?php echo esc_html( $this->label ); ?>
|
20 |
+
|
21 |
+
<?php if ( isset( $this->description ) && '' != $this->description ) { ?>
|
22 |
+
<a href="#" class="button tooltip" title="<?php echo strip_tags( esc_html( $this->description ) ); ?>">?</a>
|
23 |
+
<?php } ?>
|
24 |
+
</span>
|
25 |
+
|
26 |
+
<?php if ( '' != $this->subtitle ) : ?>
|
27 |
+
<div class="customizer-subtitle"><?php echo $this->subtitle; ?></div>
|
28 |
+
<?php endif; ?>
|
29 |
+
|
30 |
+
<input type="text" value="<?php echo esc_attr( $this->value() ); ?>" <?php $this->link(); ?> />
|
31 |
+
</label>
|
32 |
+
<?php if ( $this->separator ) echo '<hr class="customizer-separator">'; ?>
|
33 |
+
<?php foreach ( $this->required as $id => $value ) :
|
34 |
+
|
35 |
+
if ( isset($id) && isset($value) && get_theme_mod($id,0)==$value ) { ?>
|
36 |
+
<script>
|
37 |
+
jQuery(document).ready(function($) {
|
38 |
+
$( "#customize-control-<?php echo $this->id; ?>" ).show();
|
39 |
+
$( "#<?php echo $id . get_theme_mod($id,0); ?>" ).click(function(){
|
40 |
+
$( "#customize-control-<?php echo $this->id; ?>" ).fadeOut(300);
|
41 |
+
});
|
42 |
+
$( "#<?php echo $id . $value; ?>" ).click(function(){
|
43 |
+
$( "#customize-control-<?php echo $this->id; ?>" ).fadeIn(300);
|
44 |
+
});
|
45 |
+
});
|
46 |
+
</script>
|
47 |
+
<?php }
|
48 |
+
|
49 |
+
if ( isset($id) && isset($value) && get_theme_mod($id,0)!=$value ) { ?>
|
50 |
+
<script>
|
51 |
+
jQuery(document).ready(function($) {
|
52 |
+
$( "#customize-control-<?php echo $this->id; ?>" ).hide();
|
53 |
+
$( "#<?php echo $id . get_theme_mod($id,0); ?>" ).click(function(){
|
54 |
+
$( "#customize-control-<?php echo $this->id; ?>" ).fadeOut(300);
|
55 |
+
});
|
56 |
+
$( "#<?php echo $id . $value; ?>" ).click(function(){
|
57 |
+
$( "#customize-control-<?php echo $this->id; ?>" ).fadeIn(300);
|
58 |
+
});
|
59 |
+
});
|
60 |
+
</script>
|
61 |
+
<?php }
|
62 |
+
|
63 |
+
endforeach;
|
64 |
+
}
|
65 |
+
}
|
includes/controls/class-Kirki_Customize_Textarea_Control.php
ADDED
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Kirki_Customize_Textarea_Control extends WP_Customize_Control {
|
4 |
+
|
5 |
+
public $type = 'textarea';
|
6 |
+
|
7 |
+
public $description = '';
|
8 |
+
|
9 |
+
public $subtitle = '';
|
10 |
+
|
11 |
+
public $separator = false;
|
12 |
+
|
13 |
+
public $required;
|
14 |
+
|
15 |
+
public function render_content() { ?>
|
16 |
+
<label class="customizer-textarea">
|
17 |
+
<span class="customize-control-title">
|
18 |
+
<?php echo esc_html( $this->label ); ?>
|
19 |
+
<?php if ( isset( $this->description ) && '' != $this->description ) { ?>
|
20 |
+
<a href="#" class="button tooltip" title="<?php echo strip_tags( esc_html( $this->description ) ); ?>">?</a>
|
21 |
+
<?php } ?>
|
22 |
+
</span>
|
23 |
+
|
24 |
+
<?php if ( '' != $this->subtitle ) : ?>
|
25 |
+
<div class="customizer-subtitle"><?php echo $this->subtitle; ?></div>
|
26 |
+
<?php endif; ?>
|
27 |
+
|
28 |
+
<textarea class="of-input" rows="5" style="width:100%;" <?php $this->link(); ?>><?php echo esc_textarea( $this->value() ); ?></textarea>
|
29 |
+
</label>
|
30 |
+
<?php if ( $this->separator ) echo '<hr class="customizer-separator">'; ?>
|
31 |
+
<?php foreach ( $this->required as $id => $value ) :
|
32 |
+
|
33 |
+
if ( isset($id) && isset($value) && get_theme_mod($id,0)==$value ) { ?>
|
34 |
+
<script>
|
35 |
+
jQuery(document).ready(function($) {
|
36 |
+
$( "#customize-control-<?php echo $this->id; ?>" ).show();
|
37 |
+
$( "#<?php echo $id . get_theme_mod($id,0); ?>" ).click(function(){
|
38 |
+
$( "#customize-control-<?php echo $this->id; ?>" ).fadeOut(300);
|
39 |
+
});
|
40 |
+
$( "#<?php echo $id . $value; ?>" ).click(function(){
|
41 |
+
$( "#customize-control-<?php echo $this->id; ?>" ).fadeIn(300);
|
42 |
+
});
|
43 |
+
});
|
44 |
+
</script>
|
45 |
+
<?php }
|
46 |
+
|
47 |
+
if ( isset($id) && isset($value) && get_theme_mod($id,0)!=$value ) { ?>
|
48 |
+
<script>
|
49 |
+
jQuery(document).ready(function($) {
|
50 |
+
$( "#customize-control-<?php echo $this->id; ?>" ).hide();
|
51 |
+
$( "#<?php echo $id . get_theme_mod($id,0); ?>" ).click(function(){
|
52 |
+
$( "#customize-control-<?php echo $this->id; ?>" ).fadeOut(300);
|
53 |
+
});
|
54 |
+
$( "#<?php echo $id . $value; ?>" ).click(function(){
|
55 |
+
$( "#customize-control-<?php echo $this->id; ?>" ).fadeIn(300);
|
56 |
+
});
|
57 |
+
});
|
58 |
+
</script>
|
59 |
+
<?php }
|
60 |
+
|
61 |
+
endforeach;
|
62 |
+
}
|
63 |
+
}
|
includes/controls/class-Kirki_Customize_Upload_Control.php
ADDED
@@ -0,0 +1,108 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Customize Upload Control Class
|
5 |
+
*
|
6 |
+
* @package WordPress
|
7 |
+
* @subpackage Customize
|
8 |
+
* @since 3.4.0
|
9 |
+
*/
|
10 |
+
class Kirki_Customize_Upload_Control extends WP_Customize_Control {
|
11 |
+
public $type = 'upload';
|
12 |
+
public $removed = '';
|
13 |
+
public $context;
|
14 |
+
public $extensions = array();
|
15 |
+
|
16 |
+
public $description = '';
|
17 |
+
|
18 |
+
public $subtitle = '';
|
19 |
+
|
20 |
+
public $separator = false;
|
21 |
+
|
22 |
+
public $required;
|
23 |
+
|
24 |
+
/**
|
25 |
+
* Enqueue control related scripts/styles.
|
26 |
+
*
|
27 |
+
* @since 3.4.0
|
28 |
+
*/
|
29 |
+
public function enqueue() {
|
30 |
+
wp_enqueue_script( 'wp-plupload' );
|
31 |
+
}
|
32 |
+
|
33 |
+
/**
|
34 |
+
* Refresh the parameters passed to the JavaScript via JSON.
|
35 |
+
*
|
36 |
+
* @since 3.4.0
|
37 |
+
* @uses WP_Customize_Control::to_json()
|
38 |
+
*/
|
39 |
+
public function to_json() {
|
40 |
+
parent::to_json();
|
41 |
+
|
42 |
+
$this->json['removed'] = $this->removed;
|
43 |
+
|
44 |
+
if ( $this->context )
|
45 |
+
$this->json['context'] = $this->context;
|
46 |
+
|
47 |
+
if ( $this->extensions )
|
48 |
+
$this->json['extensions'] = implode( ',', $this->extensions );
|
49 |
+
}
|
50 |
+
|
51 |
+
/**
|
52 |
+
* Render the control's content.
|
53 |
+
*
|
54 |
+
* @since 3.4.0
|
55 |
+
*/
|
56 |
+
public function render_content() {
|
57 |
+
?>
|
58 |
+
<label>
|
59 |
+
<span class="customize-control-title">
|
60 |
+
<?php echo esc_html( $this->label ); ?>
|
61 |
+
<?php if ( isset( $this->description ) && '' != $this->description ) { ?>
|
62 |
+
<a href="#" class="button tooltip" title="<?php echo strip_tags( esc_html( $this->description ) ); ?>">?</a>
|
63 |
+
<?php } ?>
|
64 |
+
</span>
|
65 |
+
|
66 |
+
<?php if ( '' != $this->subtitle ) : ?>
|
67 |
+
<div class="customizer-subtitle"><?php echo $this->subtitle; ?></div>
|
68 |
+
<?php endif; ?>
|
69 |
+
|
70 |
+
<div>
|
71 |
+
<a href="#" class="button-secondary upload"><?php _e( 'Upload' ); ?></a>
|
72 |
+
<a href="#" class="remove"><?php _e( 'Remove' ); ?></a>
|
73 |
+
</div>
|
74 |
+
</label>
|
75 |
+
<?php if ( $this->separator ) echo '<hr class="customizer-separator">'; ?>
|
76 |
+
<?php foreach ( $this->required as $id => $value ) :
|
77 |
+
|
78 |
+
if ( isset($id) && isset($value) && get_theme_mod($id,0)==$value ) { ?>
|
79 |
+
<script>
|
80 |
+
jQuery(document).ready(function($) {
|
81 |
+
$( "#customize-control-<?php echo $this->id; ?>" ).show();
|
82 |
+
$( "#<?php echo $id . get_theme_mod($id,0); ?>" ).click(function(){
|
83 |
+
$( "#customize-control-<?php echo $this->id; ?>" ).fadeOut(300);
|
84 |
+
});
|
85 |
+
$( "#<?php echo $id . $value; ?>" ).click(function(){
|
86 |
+
$( "#customize-control-<?php echo $this->id; ?>" ).fadeIn(300);
|
87 |
+
});
|
88 |
+
});
|
89 |
+
</script>
|
90 |
+
<?php }
|
91 |
+
|
92 |
+
if ( isset($id) && isset($value) && get_theme_mod($id,0)!=$value ) { ?>
|
93 |
+
<script>
|
94 |
+
jQuery(document).ready(function($) {
|
95 |
+
$( "#customize-control-<?php echo $this->id; ?>" ).hide();
|
96 |
+
$( "#<?php echo $id . get_theme_mod($id,0); ?>" ).click(function(){
|
97 |
+
$( "#customize-control-<?php echo $this->id; ?>" ).fadeOut(300);
|
98 |
+
});
|
99 |
+
$( "#<?php echo $id . $value; ?>" ).click(function(){
|
100 |
+
$( "#customize-control-<?php echo $this->id; ?>" ).fadeIn(300);
|
101 |
+
});
|
102 |
+
});
|
103 |
+
</script>
|
104 |
+
<?php }
|
105 |
+
|
106 |
+
endforeach;
|
107 |
+
}
|
108 |
+
}
|
includes/controls/class-Kirki_Select_Control.php
ADDED
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Kirki_Select_Control extends WP_Customize_Control {
|
4 |
+
/**
|
5 |
+
* @access public
|
6 |
+
* @var string
|
7 |
+
*/
|
8 |
+
public $type = 'select';
|
9 |
+
|
10 |
+
public $description = '';
|
11 |
+
|
12 |
+
public $subtitle = '';
|
13 |
+
|
14 |
+
public $separator = false;
|
15 |
+
|
16 |
+
public $required;
|
17 |
+
|
18 |
+
public function render_content() {
|
19 |
+
|
20 |
+
if ( empty( $this->choices ) ) {
|
21 |
+
return;
|
22 |
+
} ?>
|
23 |
+
|
24 |
+
<label>
|
25 |
+
<span class="customize-control-title"><?php echo esc_html( $this->label ); ?>
|
26 |
+
<?php if ( isset( $this->description ) && ! empty( $this->description ) ) { ?>
|
27 |
+
<a href="#" class="button tooltip" title="<?php echo strip_tags( esc_html( $this->description ) ); ?>">?</a>
|
28 |
+
<?php } ?>
|
29 |
+
</span>
|
30 |
+
|
31 |
+
<?php if ( '' != $this->subtitle ) : ?>
|
32 |
+
<div class="customizer-subtitle"><?php echo $this->subtitle; ?></div>
|
33 |
+
<?php endif; ?>
|
34 |
+
|
35 |
+
<select <?php $this->link(); ?>>
|
36 |
+
<?php
|
37 |
+
foreach ( $this->choices as $value => $label ) {
|
38 |
+
echo '<option value="' . esc_attr( $value ) . '"' . selected( $this->value(), $value, false ) . '>' . $label . '</option>';
|
39 |
+
} ?>
|
40 |
+
</select>
|
41 |
+
</label>
|
42 |
+
<?php if ( $this->separator ) echo '<hr class="customizer-separator">'; ?>
|
43 |
+
<?php foreach ( $this->required as $id => $value ) :
|
44 |
+
|
45 |
+
if ( isset($id) && isset($value) && get_theme_mod($id,0)==$value ) { ?>
|
46 |
+
<script>
|
47 |
+
jQuery(document).ready(function($) {
|
48 |
+
$( "#customize-control-<?php echo $this->id; ?>" ).show();
|
49 |
+
$( "#<?php echo $id . get_theme_mod($id,0); ?>" ).click(function(){
|
50 |
+
$( "#customize-control-<?php echo $this->id; ?>" ).fadeOut(300);
|
51 |
+
});
|
52 |
+
$( "#<?php echo $id . $value; ?>" ).click(function(){
|
53 |
+
$( "#customize-control-<?php echo $this->id; ?>" ).fadeIn(300);
|
54 |
+
});
|
55 |
+
});
|
56 |
+
</script>
|
57 |
+
<?php }
|
58 |
+
|
59 |
+
if ( isset($id) && isset($value) && get_theme_mod($id,0)!=$value ) { ?>
|
60 |
+
<script>
|
61 |
+
jQuery(document).ready(function($) {
|
62 |
+
$( "#customize-control-<?php echo $this->id; ?>" ).hide();
|
63 |
+
$( "#<?php echo $id . get_theme_mod($id,0); ?>" ).click(function(){
|
64 |
+
$( "#customize-control-<?php echo $this->id; ?>" ).fadeOut(300);
|
65 |
+
});
|
66 |
+
$( "#<?php echo $id . $value; ?>" ).click(function(){
|
67 |
+
$( "#customize-control-<?php echo $this->id; ?>" ).fadeIn(300);
|
68 |
+
});
|
69 |
+
});
|
70 |
+
</script>
|
71 |
+
<?php }
|
72 |
+
|
73 |
+
endforeach;
|
74 |
+
}
|
75 |
+
}
|
includes/controls/controls-init.php
ADDED
@@ -0,0 +1,385 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Build the controls
|
5 |
+
*/
|
6 |
+
function kirki_customizer_controls( $wp_customize ) {
|
7 |
+
|
8 |
+
$controls = apply_filters( 'kirki/controls', array() );
|
9 |
+
|
10 |
+
if ( isset( $controls ) ) {
|
11 |
+
foreach ( $controls as $control ) {
|
12 |
+
|
13 |
+
if ( 'background' == $control['type'] ) {
|
14 |
+
|
15 |
+
$wp_customize->add_setting( $control['setting'] . '_color', array(
|
16 |
+
'default' => $control['default']['color'],
|
17 |
+
'type' => 'theme_mod',
|
18 |
+
'capability' => 'edit_theme_options'
|
19 |
+
) );
|
20 |
+
|
21 |
+
$wp_customize->add_setting( $control['setting'] . '_image', array(
|
22 |
+
'default' => $control['default']['image'],
|
23 |
+
'type' => 'theme_mod',
|
24 |
+
'capability' => 'edit_theme_options'
|
25 |
+
) );
|
26 |
+
|
27 |
+
$wp_customize->add_setting( $control['setting'] . '_repeat', array(
|
28 |
+
'default' => $control['default']['repeat'],
|
29 |
+
'type' => 'theme_mod',
|
30 |
+
'capability' => 'edit_theme_options'
|
31 |
+
) );
|
32 |
+
|
33 |
+
$wp_customize->add_setting( $control['setting'] . '_size', array(
|
34 |
+
'default' => $control['default']['size'],
|
35 |
+
'type' => 'theme_mod',
|
36 |
+
'capability' => 'edit_theme_options'
|
37 |
+
) );
|
38 |
+
|
39 |
+
$wp_customize->add_setting( $control['setting'] . '_attach', array(
|
40 |
+
'default' => $control['default']['attach'],
|
41 |
+
'type' => 'theme_mod',
|
42 |
+
'capability' => 'edit_theme_options'
|
43 |
+
) );
|
44 |
+
|
45 |
+
$wp_customize->add_setting( $control['setting'] . '_position', array(
|
46 |
+
'default' => $control['default']['position'],
|
47 |
+
'type' => 'theme_mod',
|
48 |
+
'capability' => 'edit_theme_options'
|
49 |
+
) );
|
50 |
+
|
51 |
+
if ( false != $control['default']['opacity'] ) {
|
52 |
+
|
53 |
+
$wp_customize->add_setting( $control['setting'] . '_opacity', array(
|
54 |
+
'default' => $control['default']['opacity'],
|
55 |
+
'type' => 'theme_mod',
|
56 |
+
'capability' => 'edit_theme_options'
|
57 |
+
) );
|
58 |
+
|
59 |
+
}
|
60 |
+
} else {
|
61 |
+
|
62 |
+
// Add settings
|
63 |
+
$wp_customize->add_setting( $control['setting'], array(
|
64 |
+
'default' => $control['default'],
|
65 |
+
'type' => 'theme_mod',
|
66 |
+
'capability' => 'edit_theme_options'
|
67 |
+
) );
|
68 |
+
|
69 |
+
}
|
70 |
+
|
71 |
+
// Checkbox controls
|
72 |
+
if ( 'checkbox' == $control['type'] ) {
|
73 |
+
|
74 |
+
$wp_customize->add_control( new Kirki_Customize_Checkbox_Control( $wp_customize, $control['setting'], array(
|
75 |
+
'label' => isset( $control['label'] ) ? $control['label'] : '',
|
76 |
+
'section' => $control['section'],
|
77 |
+
'settings' => $control['setting'],
|
78 |
+
'priority' => $control['priority'],
|
79 |
+
'description' => isset( $control['description'] ) ? $control['description'] : null,
|
80 |
+
'subtitle' => isset( $control['subtitle'] ) ? $control['subtitle'] : '',
|
81 |
+
'separator' => isset( $control['separator'] ) ? $control['separator'] : false,
|
82 |
+
'required' => isset( $control['required'] ) ? $control['required'] : array(),
|
83 |
+
// 'transport' => 'postMessage',
|
84 |
+
) )
|
85 |
+
);
|
86 |
+
|
87 |
+
// Background Controls
|
88 |
+
} elseif ( 'background' == $control['type'] ) {
|
89 |
+
|
90 |
+
$wp_customize->add_control( new Kirki_Customize_Color_Control( $wp_customize, $control['setting'] . '_color', array(
|
91 |
+
'label' => isset( $control['label'] ) ? $control['label'] : '',
|
92 |
+
'section' => $control['section'],
|
93 |
+
'settings' => $control['setting'] . '_color',
|
94 |
+
'priority' => $control['priority'],
|
95 |
+
'description' => isset( $control['description'] ) ? $control['description'] : null,
|
96 |
+
'subtitle' => __( 'Background Color', 'kirki' ),
|
97 |
+
'required' => isset( $control['required'] ) ? $control['required'] : array(),
|
98 |
+
// 'transport' => 'postMessage',
|
99 |
+
) )
|
100 |
+
);
|
101 |
+
|
102 |
+
$wp_customize->add_control( new Kirki_Customize_Image_Control( $wp_customize, $control['setting'] . '_image', array(
|
103 |
+
'label' => null,
|
104 |
+
'section' => $control['section'],
|
105 |
+
'settings' => $control['setting'] . '_image',
|
106 |
+
'priority' => $control['priority'] + 1,
|
107 |
+
'description' => null,
|
108 |
+
'subtitle' => __( 'Background Image', 'kirki' ),
|
109 |
+
'separator' => false,
|
110 |
+
'required' => isset( $control['required'] ) ? $control['required'] : array(),
|
111 |
+
// 'transport' => 'postMessage',
|
112 |
+
) )
|
113 |
+
);
|
114 |
+
|
115 |
+
$wp_customize->add_control( new Kirki_Select_Control( $wp_customize, $control['setting'] . '_repeat', array(
|
116 |
+
'label' => null,
|
117 |
+
'section' => $control['section'],
|
118 |
+
'settings' => $control['setting'] . '_repeat',
|
119 |
+
'priority' => $control['priority'] + 2,
|
120 |
+
'choices' => array(
|
121 |
+
'no-repeat' => __( 'No Repeat', 'kirki' ),
|
122 |
+
'repeat' => __( 'Repeat All', 'kirki' ),
|
123 |
+
'repeat-x' => __( 'Repeat Horizontally', 'kirki' ),
|
124 |
+
'repeat-y' => __( 'Repeat Vertically', 'kirki' ),
|
125 |
+
'inherit' => __( 'Inherit', 'kirki' )
|
126 |
+
),
|
127 |
+
'description' => null,
|
128 |
+
'subtitle' => __( 'Background Repeat', 'kirki' ),
|
129 |
+
'separator' => false,
|
130 |
+
'required' => isset( $control['required'] ) ? $control['required'] : array(),
|
131 |
+
// 'transport' => 'postMessage',
|
132 |
+
) )
|
133 |
+
);
|
134 |
+
|
135 |
+
$wp_customize->add_control( new Kirki_Customize_Radio_Control( $wp_customize, $control['setting'] . '_size', array(
|
136 |
+
'label' => null,
|
137 |
+
'section' => $control['section'],
|
138 |
+
'settings' => $control['setting'] . '_size',
|
139 |
+
'priority' => $control['priority'] + 3,
|
140 |
+
'choices' => array(
|
141 |
+
'inherit' => __( 'Inherit', 'kirki' ),
|
142 |
+
'cover' => __( 'Cover', 'kirki' ),
|
143 |
+
'contain' => __( 'Contain', 'kirki' ),
|
144 |
+
),
|
145 |
+
'description' => null,
|
146 |
+
'mode' => 'buttonset',
|
147 |
+
'subtitle' => __( 'Background Size', 'kirki' ),
|
148 |
+
'separator' => false,
|
149 |
+
'required' => isset( $control['required'] ) ? $control['required'] : array(),
|
150 |
+
// 'transport' => 'postMessage',
|
151 |
+
) )
|
152 |
+
);
|
153 |
+
|
154 |
+
$wp_customize->add_control( new Kirki_Customize_Radio_Control( $wp_customize, $control['setting'] . '_attach', array(
|
155 |
+
'label' => null,
|
156 |
+
'section' => $control['section'],
|
157 |
+
'settings' => $control['setting'] . '_attach',
|
158 |
+
'priority' => $control['priority'] + 4,
|
159 |
+
'choices' => array(
|
160 |
+
'inherit' => __( 'Inherit', 'kirki' ),
|
161 |
+
'fixed' => __( 'Fixed', 'kirki' ),
|
162 |
+
'scroll' => __( 'Scroll', 'kirki' ),
|
163 |
+
),
|
164 |
+
'description' => null,
|
165 |
+
'mode' => 'buttonset',
|
166 |
+
'subtitle' => __( 'Background Attachment', 'kirki' ),
|
167 |
+
'separator' => false,
|
168 |
+
'required' => isset( $control['required'] ) ? $control['required'] : array(),
|
169 |
+
// 'transport' => 'postMessage',
|
170 |
+
) )
|
171 |
+
);
|
172 |
+
|
173 |
+
$wp_customize->add_control( new Kirki_Select_Control( $wp_customize, $control['setting'] . '_position', array(
|
174 |
+
'label' => null,
|
175 |
+
'section' => $control['section'],
|
176 |
+
'settings' => $control['setting'] . '_position',
|
177 |
+
'priority' => $control['priority'] + 5,
|
178 |
+
'choices' => array(
|
179 |
+
'left-top' => __( 'Left Top', 'kirki' ),
|
180 |
+
'left-center' => __( 'Left Center', 'kirki' ),
|
181 |
+
'left-bottom' => __( 'Left Bottom', 'kirki' ),
|
182 |
+
'right-top' => __( 'Right Top', 'kirki' ),
|
183 |
+
'right-center' => __( 'Right Center', 'kirki' ),
|
184 |
+
'right-bottom' => __( 'Right Bottom', 'kirki' ),
|
185 |
+
'center-top' => __( 'Center Top', 'kirki' ),
|
186 |
+
'center-center' => __( 'Center Center', 'kirki' ),
|
187 |
+
'center-bottom' => __( 'Center Bottom', 'kirki' ),
|
188 |
+
),
|
189 |
+
'description' => null,
|
190 |
+
'subtitle' => __( 'Background Position', 'kirki' ),
|
191 |
+
'separator' => ( false != $control['default']['opacity'] ) ? false : true,
|
192 |
+
'required' => isset( $control['required'] ) ? $control['required'] : array(),
|
193 |
+
// 'transport' => 'postMessage',
|
194 |
+
) )
|
195 |
+
);
|
196 |
+
|
197 |
+
if ( false != $control['default']['opacity'] ) {
|
198 |
+
$wp_customize->add_control( new Kirki_Customize_Sliderui_Control( $wp_customize, $control['setting'] . '_opacity', array(
|
199 |
+
'label' => null,
|
200 |
+
'section' => $control['section'],
|
201 |
+
'settings' => $control['setting'] . '_opacity',
|
202 |
+
'priority' => $control['priority'] + 6,
|
203 |
+
'choices' => array(
|
204 |
+
'min' => 0,
|
205 |
+
'max' => 100,
|
206 |
+
'step' => 1,
|
207 |
+
),
|
208 |
+
'description' => null,
|
209 |
+
'subtitle' => __( 'Background Opacity', 'kirki' ),
|
210 |
+
'separator' => isset( $control['separator'] ) ? $control['separator'] : false,
|
211 |
+
'required' => isset( $control['required'] ) ? $control['required'] : array(),
|
212 |
+
// 'transport' => 'postMessage',
|
213 |
+
) )
|
214 |
+
);
|
215 |
+
}
|
216 |
+
|
217 |
+
// Color Controls
|
218 |
+
} elseif ( 'color' == $control['type'] ) {
|
219 |
+
|
220 |
+
$wp_customize->add_control( new Kirki_Customize_Color_Control( $wp_customize, $control['setting'], array(
|
221 |
+
'label' => isset( $control['label'] ) ? $control['label'] : '',
|
222 |
+
'section' => $control['section'],
|
223 |
+
'settings' => $control['setting'],
|
224 |
+
'priority' => isset( $control['priority'] ) ? $control['priority'] : '',
|
225 |
+
'description' => isset( $control['description'] ) ? $control['description'] : null,
|
226 |
+
'subtitle' => isset( $control['subtitle'] ) ? $control['subtitle'] : '',
|
227 |
+
'separator' => isset( $control['separator'] ) ? $control['separator'] : false,
|
228 |
+
'required' => isset( $control['required'] ) ? $control['required'] : array(),
|
229 |
+
// 'transport' => 'postMessage',
|
230 |
+
) )
|
231 |
+
);
|
232 |
+
|
233 |
+
// Image Controls
|
234 |
+
} elseif ( 'image' == $control['type'] ) {
|
235 |
+
|
236 |
+
$wp_customize->add_control( new Kirki_Customize_Image_Control( $wp_customize, $control['setting'], array(
|
237 |
+
'label' => isset( $control['label'] ) ? $control['label'] : '',
|
238 |
+
'section' => $control['section'],
|
239 |
+
'settings' => $control['setting'],
|
240 |
+
'priority' => $control['priority'],
|
241 |
+
'description' => isset( $control['description'] ) ? $control['description'] : null,
|
242 |
+
'subtitle' => isset( $control['subtitle'] ) ? $control['subtitle'] : '',
|
243 |
+
'separator' => isset( $control['separator'] ) ? $control['separator'] : false,
|
244 |
+
'required' => isset( $control['required'] ) ? $control['required'] : array(),
|
245 |
+
// 'transport' => 'postMessage',
|
246 |
+
) )
|
247 |
+
);
|
248 |
+
|
249 |
+
// Radio Controls
|
250 |
+
} elseif ( 'radio' == $control['type'] ) {
|
251 |
+
|
252 |
+
$wp_customize->add_control( new Kirki_Customize_Radio_Control( $wp_customize, $control['setting'], array(
|
253 |
+
'label' => isset( $control['label'] ) ? $control['label'] : '',
|
254 |
+
'section' => $control['section'],
|
255 |
+
'settings' => $control['setting'],
|
256 |
+
'priority' => $control['priority'],
|
257 |
+
'choices' => $control['choices'],
|
258 |
+
'description' => isset( $control['description'] ) ? $control['description'] : null,
|
259 |
+
'mode' => isset( $control['mode'] ) ? $control['mode'] : 'radio', // Can be 'radio', 'image' or 'buttonset'.
|
260 |
+
'subtitle' => isset( $control['subtitle'] ) ? $control['subtitle'] : '',
|
261 |
+
'separator' => isset( $control['separator'] ) ? $control['separator'] : false,
|
262 |
+
'required' => isset( $control['required'] ) ? $control['required'] : array(),
|
263 |
+
// 'transport' => 'postMessage',
|
264 |
+
) )
|
265 |
+
);
|
266 |
+
|
267 |
+
// Select Controls
|
268 |
+
} elseif ( 'select' == $control['type'] ) {
|
269 |
+
|
270 |
+
$wp_customize->add_control( new Kirki_Select_Control( $wp_customize, $control['setting'], array(
|
271 |
+
'label' => isset( $control['label'] ) ? $control['label'] : '',
|
272 |
+
'section' => $control['section'],
|
273 |
+
'settings' => $control['setting'],
|
274 |
+
'priority' => $control['priority'],
|
275 |
+
'choices' => $control['choices'],
|
276 |
+
'description' => isset( $control['description'] ) ? $control['description'] : null,
|
277 |
+
'subtitle' => isset( $control['subtitle'] ) ? $control['subtitle'] : '',
|
278 |
+
'separator' => isset( $control['separator'] ) ? $control['separator'] : false,
|
279 |
+
'required' => isset( $control['required'] ) ? $control['required'] : array(),
|
280 |
+
// 'transport' => 'postMessage',
|
281 |
+
) )
|
282 |
+
);
|
283 |
+
|
284 |
+
// Slider Controls
|
285 |
+
} elseif ( 'slider' == $control['type'] ) {
|
286 |
+
|
287 |
+
$wp_customize->add_control( new Kirki_Customize_Sliderui_Control( $wp_customize, $control['setting'], array(
|
288 |
+
'label' => isset( $control['label'] ) ? $control['label'] : '',
|
289 |
+
'section' => $control['section'],
|
290 |
+
'settings' => $control['setting'],
|
291 |
+
'priority' => $control['priority'],
|
292 |
+
'choices' => $control['choices'],
|
293 |
+
'description' => isset( $control['description'] ) ? $control['description'] : null,
|
294 |
+
'subtitle' => isset( $control['subtitle'] ) ? $control['subtitle'] : '',
|
295 |
+
'separator' => isset( $control['separator'] ) ? $control['separator'] : false,
|
296 |
+
'required' => isset( $control['required'] ) ? $control['required'] : array(),
|
297 |
+
// 'transport' => 'postMessage',
|
298 |
+
) )
|
299 |
+
);
|
300 |
+
|
301 |
+
// Text Controls
|
302 |
+
} elseif ( 'text' == $control['type'] ) {
|
303 |
+
|
304 |
+
$wp_customize->add_control( new Kirki_Customize_Text_Control( $wp_customize, $control['setting'], array(
|
305 |
+
'label' => isset( $control['label'] ) ? $control['label'] : '',
|
306 |
+
'section' => $control['section'],
|
307 |
+
'settings' => $control['setting'],
|
308 |
+
'priority' => $control['priority'],
|
309 |
+
'description' => isset( $control['description'] ) ? $control['description'] : null,
|
310 |
+
'subtitle' => isset( $control['subtitle'] ) ? $control['subtitle'] : '',
|
311 |
+
'separator' => isset( $control['separator'] ) ? $control['separator'] : false,
|
312 |
+
'required' => isset( $control['required'] ) ? $control['required'] : array(),
|
313 |
+
// 'transport' => 'postMessage',
|
314 |
+
) )
|
315 |
+
);
|
316 |
+
|
317 |
+
// Text Controls
|
318 |
+
} elseif ( 'textarea' == $control['type'] ) {
|
319 |
+
|
320 |
+
$wp_customize->add_control( new Kirki_Customize_Textarea_Control( $wp_customize, $control['setting'], array(
|
321 |
+
'label' => $control['label'],
|
322 |
+
'section' => $control['section'],
|
323 |
+
'settings' => $control['setting'],
|
324 |
+
'priority' => $control['priority'],
|
325 |
+
'description' => isset( $control['description'] ) ? $control['description'] : null,
|
326 |
+
'subtitle' => isset( $control['subtitle'] ) ? $control['subtitle'] : '',
|
327 |
+
'separator' => isset( $control['separator'] ) ? $control['separator'] : false,
|
328 |
+
'required' => isset( $control['required'] ) ? $control['required'] : array(),
|
329 |
+
// 'transport' => 'postMessage',
|
330 |
+
) )
|
331 |
+
);
|
332 |
+
|
333 |
+
// Upload Controls
|
334 |
+
} elseif ( 'upload' == $control['type'] ) {
|
335 |
+
|
336 |
+
$wp_customize->add_control( new Kirki_Customize_Upload_Control( $wp_customize, $control['setting'], array(
|
337 |
+
'label' => $control['label'],
|
338 |
+
'section' => $control['section'],
|
339 |
+
'settings' => $control['setting'],
|
340 |
+
'priority' => $control['priority'],
|
341 |
+
'choices' => $control['choices'],
|
342 |
+
'description' => isset( $control['description'] ) ? $control['description'] : null,
|
343 |
+
'subtitle' => isset( $control['subtitle'] ) ? $control['subtitle'] : '',
|
344 |
+
'separator' => isset( $control['separator'] ) ? $control['separator'] : false,
|
345 |
+
'required' => isset( $control['required'] ) ? $control['required'] : array(),
|
346 |
+
// 'transport' => 'postMessage',
|
347 |
+
) )
|
348 |
+
);
|
349 |
+
|
350 |
+
// Number Controls
|
351 |
+
} elseif ( 'number' == $control['type'] ) {
|
352 |
+
|
353 |
+
$wp_customize->add_control( new Kirki_Customize_Number_Control( $wp_customize, $control['setting'], array(
|
354 |
+
'label' => $control['label'],
|
355 |
+
'section' => $control['section'],
|
356 |
+
'settings' => $control['setting'],
|
357 |
+
'priority' => $control['priority'],
|
358 |
+
'description' => isset( $control['description'] ) ? $control['description'] : null,
|
359 |
+
'subtitle' => isset( $control['subtitle'] ) ? $control['subtitle'] : '',
|
360 |
+
'separator' => isset( $control['separator'] ) ? $control['separator'] : false,
|
361 |
+
// 'transport' => 'postMessage',
|
362 |
+
) )
|
363 |
+
);
|
364 |
+
|
365 |
+
// Multicheck Controls
|
366 |
+
} elseif ( 'multicheck' == $control['type'] ) {
|
367 |
+
|
368 |
+
$wp_customize->add_control( new Kirki_Customize_Multicheck_Control( $wp_customize, $control['setting'], array(
|
369 |
+
'label' => $control['label'],
|
370 |
+
'section' => $control['section'],
|
371 |
+
'settings' => $control['setting'],
|
372 |
+
'priority' => $control['priority'],
|
373 |
+
'choices' => $control['choices'],
|
374 |
+
'description' => isset( $control['description'] ) ? $control['description'] : null,
|
375 |
+
'subtitle' => isset( $control['subtitle'] ) ? $control['subtitle'] : '',
|
376 |
+
'separator' => isset( $control['separator'] ) ? $control['separator'] : false,
|
377 |
+
'required' => isset( $control['required'] ) ? $control['required'] : array(),
|
378 |
+
// 'transport' => 'postMessage',
|
379 |
+
) )
|
380 |
+
);
|
381 |
+
}
|
382 |
+
}
|
383 |
+
}
|
384 |
+
}
|
385 |
+
add_action( 'customize_register', 'kirki_customizer_controls', 99 );
|
includes/functions/background-css.php
ADDED
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Apply custom backgrounds to our page.
|
5 |
+
*/
|
6 |
+
function kirki_background_css() {
|
7 |
+
|
8 |
+
$controls = apply_filters( 'kirki/controls', array() );
|
9 |
+
$config = apply_filters( 'kirki/config', array() );
|
10 |
+
|
11 |
+
if ( isset( $controls ) ) {
|
12 |
+
foreach ( $controls as $control ) {
|
13 |
+
|
14 |
+
if ( 'background' == $control['type'] ) {
|
15 |
+
|
16 |
+
// Apply custom CSS if we've set the 'output'.
|
17 |
+
if ( ! is_null( $control['output'] ) ) {
|
18 |
+
|
19 |
+
$bg_color = kirki_sanitize_hex( get_theme_mod( $control['setting'] . '_color', $control['default']['color'] ) );
|
20 |
+
$bg_image = get_theme_mod( $control['setting'] . '_image', $control['default']['image'] );
|
21 |
+
$bg_repeat = get_theme_mod( $control['setting'] . '_repeat', $control['default']['repeat'] );
|
22 |
+
$bg_size = get_theme_mod( $control['setting'] . '_size', $control['default']['size'] );
|
23 |
+
$bg_attach = get_theme_mod( $control['setting'] . '_attach', $control['default']['attach'] );
|
24 |
+
$bg_position = get_theme_mod( $control['setting'] . '_position', $control['default']['position'] );
|
25 |
+
$bg_opacity = get_theme_mod( $control['setting'] . '_opacity', $control['default']['opacity'] );
|
26 |
+
|
27 |
+
if ( false != $control['default']['opacity'] ) {
|
28 |
+
|
29 |
+
$bg_position = get_theme_mod( $control['setting'] . '_opacity', $control['default']['opacity'] );
|
30 |
+
|
31 |
+
// If we're using an opacity other than 100, then convert the color to RGBA.
|
32 |
+
if ( 100 != $bg_opacity ) {
|
33 |
+
$bg_color = kirki_get_rgba( $bg_color, $bg_opacity );
|
34 |
+
}
|
35 |
+
|
36 |
+
}
|
37 |
+
|
38 |
+
// HTML Background
|
39 |
+
$styles = $control['output'] . '{';
|
40 |
+
|
41 |
+
$styles .= 'background-color:' . $bg_color . ';';
|
42 |
+
|
43 |
+
if ( '' != $bg_image ) {
|
44 |
+
$styles .= 'background-image: url("' . $bg_image . '");';
|
45 |
+
$styles .= 'background-repeat: ' . $bg_repeat . ';';
|
46 |
+
$styles .= 'background-size: ' . $bg_size . ';';
|
47 |
+
$styles .= 'background-attachment: ' . $bg_attach . ';';
|
48 |
+
$styles .= 'background-position: ' . str_replace( '-', ' ', $bg_position ) . ';';
|
49 |
+
}
|
50 |
+
|
51 |
+
$styles .= '}';
|
52 |
+
}
|
53 |
+
|
54 |
+
wp_add_inline_style( $config['stylesheet_id'], $styles );
|
55 |
+
|
56 |
+
}
|
57 |
+
|
58 |
+
}
|
59 |
+
}
|
60 |
+
|
61 |
+
}
|
62 |
+
add_action( 'wp_enqueue_scripts', 'kirki_background_css', 150 );
|
includes/functions/color-functions.php
ADDED
@@ -0,0 +1,126 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Sanitize hex colors
|
5 |
+
*/
|
6 |
+
function kirki_sanitize_hex( $color ) {
|
7 |
+
// Remove any spaces and special characters before and after the string
|
8 |
+
$color = trim( $color. ' \t\n\r\0\x0B' );
|
9 |
+
|
10 |
+
// Remove any trailing '#' symbols from the color value
|
11 |
+
$color = str_replace( '#', '', $color );
|
12 |
+
|
13 |
+
// If there are more than 6 characters, only keep the first 6.
|
14 |
+
if ( strlen( $color ) > 6 ) {
|
15 |
+
|
16 |
+
$color = substr( $color, 0, 6 );
|
17 |
+
|
18 |
+
}
|
19 |
+
|
20 |
+
if ( strlen( $color ) == 6 ) {
|
21 |
+
|
22 |
+
$hex = $color; // If string consists of 6 characters, then this is our color
|
23 |
+
|
24 |
+
} else {
|
25 |
+
|
26 |
+
// String is shorter than 6 characters.
|
27 |
+
// We will have to do some calculations below to get the actual 6-digit hex value.
|
28 |
+
|
29 |
+
// If the string is longer than 3 characters, only keep the first 3.
|
30 |
+
if ( strlen( $color ) > 3 ) {
|
31 |
+
$color = substr( $color, 0, 3 );
|
32 |
+
}
|
33 |
+
|
34 |
+
// If this is a 3-character string, format it to 6 characters.
|
35 |
+
if ( strlen( $color ) == 3 ) {
|
36 |
+
|
37 |
+
$red = substr( $color, 0, 1 ) . substr( $color, 0, 1 );
|
38 |
+
$green = substr( $color, 1, 1 ) . substr( $color, 1, 1 );
|
39 |
+
$blue = substr( $color, 2, 1 ) . substr( $color, 2, 1 );
|
40 |
+
|
41 |
+
$hex = $red . $green . $blue;
|
42 |
+
|
43 |
+
}
|
44 |
+
|
45 |
+
// If this is shorter than 3 characters, do some voodoo.
|
46 |
+
if ( strlen( $color ) == 2 ) {
|
47 |
+
|
48 |
+
$hex = $color . $color . $color;
|
49 |
+
|
50 |
+
} else if ( strlen( $color ) == 1 ) {
|
51 |
+
|
52 |
+
$hex = $color . $color . $color . $color . $color . $color;
|
53 |
+
|
54 |
+
}
|
55 |
+
|
56 |
+
}
|
57 |
+
|
58 |
+
return '#' . $hex;
|
59 |
+
}
|
60 |
+
|
61 |
+
/*
|
62 |
+
* Gets the rgb value of the $hex color.
|
63 |
+
* Returns an array.
|
64 |
+
*/
|
65 |
+
function kirki_get_rgb( $hex, $implode = false ) {
|
66 |
+
// Remove any trailing '#' symbols from the color value
|
67 |
+
$hex = str_replace( '#', '', kirki_sanitize_hex( $hex ) );
|
68 |
+
|
69 |
+
if ( strlen( $hex ) == 3 ) {
|
70 |
+
// If the color is entered using a short, 3-character format,
|
71 |
+
// then find the rgb values from them
|
72 |
+
$red = hexdec( substr( $hex, 0, 1 ) . substr( $hex, 0, 1 ) );
|
73 |
+
$green = hexdec( substr( $hex, 1, 1 ) . substr( $hex, 1, 1 ) );
|
74 |
+
$blue = hexdec( substr( $hex, 2, 1 ) . substr( $hex, 2, 1 ) );
|
75 |
+
} else {
|
76 |
+
// If the color is entered using a 6-character format,
|
77 |
+
// then find the rgb values from them
|
78 |
+
$red = hexdec( substr( $hex, 0, 2 ) );
|
79 |
+
$green = hexdec( substr( $hex, 2, 2 ) );
|
80 |
+
$blue = hexdec( substr( $hex, 4, 2 ) );
|
81 |
+
}
|
82 |
+
|
83 |
+
// rgb is an array
|
84 |
+
$rgb = array( $red, $green, $blue );
|
85 |
+
if ( $implode ) {
|
86 |
+
return implode( ',', $rgb );
|
87 |
+
} else {
|
88 |
+
return $rgb;
|
89 |
+
}
|
90 |
+
}
|
91 |
+
|
92 |
+
/*
|
93 |
+
* Gets the rgba value of a color.
|
94 |
+
*/
|
95 |
+
function kirki_get_rgba( $hex = '#fff', $opacity = 100 ) {
|
96 |
+
$hex = kirki_sanitize_hex( $hex );
|
97 |
+
// Make sure that opacity is properly formatted :
|
98 |
+
// Set the opacity to 100 if a larger value has been entered by mistake.
|
99 |
+
// If a negative value is used, then set to 0.
|
100 |
+
// If an opacity value is entered in a decimal form (for example 0.25), then multiply by 100.
|
101 |
+
if ( $opacity >= 100 ) {
|
102 |
+
|
103 |
+
$opacity = 100;
|
104 |
+
|
105 |
+
} elseif ( $opacity < 0 ) {
|
106 |
+
|
107 |
+
$opacity = 0;
|
108 |
+
|
109 |
+
} elseif ( $opacity < 1 && $opacity != 0 ) {
|
110 |
+
|
111 |
+
$opacity = ( $opacity * 100 );
|
112 |
+
|
113 |
+
} else {
|
114 |
+
|
115 |
+
$opacity = $opacity;
|
116 |
+
|
117 |
+
}
|
118 |
+
|
119 |
+
// Divide the opacity by 100 to end-up with a CSS value for the opacity
|
120 |
+
$opacity = ( $opacity / 100 );
|
121 |
+
|
122 |
+
$color = 'rgba(' . kirki_get_rgb( $hex, true ) . ', ' . $opacity . ')';
|
123 |
+
|
124 |
+
return $color;
|
125 |
+
|
126 |
+
}
|
kirki.php
ADDED
@@ -0,0 +1,179 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
Plugin Name: Kirki Framework
|
4 |
+
Plugin URI: http://kirki.org
|
5 |
+
Description: An options framework using and extending the WordPress Customizer
|
6 |
+
Author: Aristeides Stathopoulos
|
7 |
+
Author URI: http://wpmu.io/
|
8 |
+
Version: 0.3
|
9 |
+
*/
|
10 |
+
|
11 |
+
/**
|
12 |
+
* The main Kirki class
|
13 |
+
*/
|
14 |
+
class Kirki {
|
15 |
+
|
16 |
+
function __construct() {
|
17 |
+
|
18 |
+
// Include necessary files
|
19 |
+
include_once( dirname( __FILE__ ) . '/includes/functions/color-functions.php' );
|
20 |
+
include_once( dirname( __FILE__ ) . '/includes/functions/background-css.php' );
|
21 |
+
|
22 |
+
// Include the controls initialization script
|
23 |
+
include_once( dirname( __FILE__ ) . '/includes/controls/controls-init.php' );
|
24 |
+
|
25 |
+
add_action( 'customize_register', array( $this, 'include_files' ), 1 );
|
26 |
+
add_action( 'customize_controls_print_styles', array( $this, 'styles' ) );
|
27 |
+
add_action( 'customize_controls_print_styles', array( $this, 'googlefonts' ) );
|
28 |
+
add_action( 'customize_controls_print_styles', array( $this, 'custom_css' ), 999 );
|
29 |
+
add_action( 'customize_controls_print_scripts', array( $this, 'custom_js' ), 999 );
|
30 |
+
|
31 |
+
}
|
32 |
+
|
33 |
+
/**
|
34 |
+
* Include the necessary files
|
35 |
+
*/
|
36 |
+
function include_files() {
|
37 |
+
|
38 |
+
include_once( dirname( __FILE__ ) . '/includes/controls/class-Kirki_Customize_Checkbox_Control.php' );
|
39 |
+
include_once( dirname( __FILE__ ) . '/includes/controls/class-Kirki_Customize_Color_Control.php' );
|
40 |
+
include_once( dirname( __FILE__ ) . '/includes/controls/class-Kirki_Customize_Image_Control.php' );
|
41 |
+
include_once( dirname( __FILE__ ) . '/includes/controls/class-Kirki_Customize_Multicheck_Control.php' );
|
42 |
+
include_once( dirname( __FILE__ ) . '/includes/controls/class-Kirki_Customize_Number_Control.php' );
|
43 |
+
include_once( dirname( __FILE__ ) . '/includes/controls/class-Kirki_Customize_Radio_Control.php' );
|
44 |
+
include_once( dirname( __FILE__ ) . '/includes/controls/class-Kirki_Customize_Sliderui_Control.php' );
|
45 |
+
include_once( dirname( __FILE__ ) . '/includes/controls/class-Kirki_Customize_Text_Control.php' );
|
46 |
+
include_once( dirname( __FILE__ ) . '/includes/controls/class-Kirki_Customize_Textarea_Control.php' );
|
47 |
+
include_once( dirname( __FILE__ ) . '/includes/controls/class-Kirki_Customize_Upload_Control.php' );
|
48 |
+
include_once( dirname( __FILE__ ) . '/includes/controls/class-Kirki_Select_Control.php' );
|
49 |
+
|
50 |
+
}
|
51 |
+
|
52 |
+
/**
|
53 |
+
* Enqueue the stylesheets and scripts required.
|
54 |
+
*/
|
55 |
+
function styles() {
|
56 |
+
|
57 |
+
$options = apply_filters( 'kirki/config', array() );
|
58 |
+
|
59 |
+
$kirki_url = isset( $options['url_path'] ) ? $options['url_path'] : plugin_dir_url( __FILE__ );
|
60 |
+
|
61 |
+
wp_register_style( 'kirki-customizer-css', $kirki_url . 'assets/css/customizer.css', NULL, NULL, 'all' );
|
62 |
+
wp_register_style( 'kirki-customizer-ui', $kirki_url . 'assets/css/jquery-ui-1.10.0.custom.css', NULL, NULL, 'all' );
|
63 |
+
wp_enqueue_style( 'kirki-customizer-css' );
|
64 |
+
wp_enqueue_style( 'kirki-customizer-ui' );
|
65 |
+
|
66 |
+
wp_enqueue_script( 'kirki_customizer_js', $kirki_url . 'assets/js/customizer.js');
|
67 |
+
wp_enqueue_script( 'tipsy', $kirki_url . 'assets/js/tooltipsy.min.js', array( 'jquery' ) );
|
68 |
+
|
69 |
+
}
|
70 |
+
|
71 |
+
/**
|
72 |
+
* Use the Roboto font on the customizer.
|
73 |
+
*/
|
74 |
+
function googlefonts() { ?>
|
75 |
+
<link href='http://fonts.googleapis.com/css?family=Roboto:100,400|Roboto+Slab:700,400&subset=latin,cyrillic-ext,greek,vietnamese,latin-ext,cyrillic' rel='stylesheet' type='text/css'>
|
76 |
+
<?php
|
77 |
+
}
|
78 |
+
|
79 |
+
/**
|
80 |
+
* Add custom CSS rules to the head, applying our custom styles
|
81 |
+
*/
|
82 |
+
function custom_css() {
|
83 |
+
|
84 |
+
$options = apply_filters( 'kirki/config', array() );
|
85 |
+
|
86 |
+
$color_active = isset( $options['color_active'] ) ? $options['color_active'] : '#1abc9c';
|
87 |
+
$color_accent = isset( $options['color_accent'] ) ? $options['color_accent'] : '#FF5740';
|
88 |
+
$color_light = isset( $options['color_light'] ) ? $options['color_light'] : '#8cddcd';
|
89 |
+
$color_select = isset( $options['color_select'] ) ? $options['color_select'] : '#34495e';
|
90 |
+
$color_back = isset( $options['color_back'] ) ? $options['color_back'] : '#222';
|
91 |
+
?>
|
92 |
+
|
93 |
+
<style>
|
94 |
+
.wp-core-ui .button.tooltip {
|
95 |
+
background: <?php echo $color_active; ?>;
|
96 |
+
}
|
97 |
+
|
98 |
+
.image.ui-buttonset label.ui-button.ui-state-active {
|
99 |
+
background: <?php echo $color_accent; ?>;
|
100 |
+
}
|
101 |
+
|
102 |
+
.wp-full-overlay-sidebar {
|
103 |
+
background: <?php echo $color_back; ?>;
|
104 |
+
}
|
105 |
+
|
106 |
+
#customize-info .accordion-section-title, #customize-info .accordion-section-title:hover {
|
107 |
+
background: <?php echo $color_back; ?>;
|
108 |
+
}
|
109 |
+
|
110 |
+
#customize-theme-controls .accordion-section-title {
|
111 |
+
background: <?php echo $color_back; ?>;
|
112 |
+
}
|
113 |
+
|
114 |
+
#customize-theme-controls .accordion-section-title {
|
115 |
+
border-bottom: 1px solid <?php echo $color_back; ?>;
|
116 |
+
}
|
117 |
+
|
118 |
+
#customize-theme-controls .control-section .accordion-section-title {
|
119 |
+
background: <?php echo $color_back; ?>;
|
120 |
+
}
|
121 |
+
|
122 |
+
#customize-theme-controls .control-section .accordion-section-title:focus,
|
123 |
+
#customize-theme-controls .control-section .accordion-section-title:hover,
|
124 |
+
#customize-theme-controls .control-section.open .accordion-section-title,
|
125 |
+
#customize-theme-controls .control-section:hover .accordion-section-title {
|
126 |
+
background: <?php echo $color_active; ?>;
|
127 |
+
}
|
128 |
+
|
129 |
+
.wp-core-ui .button-primary {
|
130 |
+
background: <?php echo $color_active; ?>;
|
131 |
+
}
|
132 |
+
|
133 |
+
.wp-core-ui .button-primary.focus,
|
134 |
+
.wp-core-ui .button-primary.hover,
|
135 |
+
.wp-core-ui .button-primary:focus,
|
136 |
+
.wp-core-ui .button-primary:hover {
|
137 |
+
background: <?php echo $color_select; ?>;
|
138 |
+
}
|
139 |
+
|
140 |
+
.wp-core-ui .button-primary-disabled,
|
141 |
+
.wp-core-ui .button-primary.disabled,
|
142 |
+
.wp-core-ui .button-primary:disabled,
|
143 |
+
.wp-core-ui .button-primary[disabled] {
|
144 |
+
background: <?php echo $color_light; ?> !important;
|
145 |
+
color: <?php echo $color_select; ?> !important;
|
146 |
+
}
|
147 |
+
|
148 |
+
<?php if ( isset( $options['logo_image'] ) ) : ?>
|
149 |
+
div.kirki-customizer {
|
150 |
+
background: url("<?php echo $options['logo_image']; ?>") no-repeat left center;
|
151 |
+
}
|
152 |
+
<?php endif; ?>
|
153 |
+
</style>
|
154 |
+
<?php
|
155 |
+
|
156 |
+
}
|
157 |
+
|
158 |
+
/**
|
159 |
+
* If we've specified an image to be used as logo, replace the default theme description with a div that will have our logo as background.
|
160 |
+
*/
|
161 |
+
function custom_js() {
|
162 |
+
|
163 |
+
$options = apply_filters( 'kirki/config', array() ); ?>
|
164 |
+
|
165 |
+
<?php if ( isset( $options['logo_image'] ) ) : ?>
|
166 |
+
<script>
|
167 |
+
jQuery(document).ready(function($) {
|
168 |
+
"use strict";
|
169 |
+
|
170 |
+
$( 'div#customize-info' ).replaceWith( '<div class="kirki-customizer"></div>' );
|
171 |
+
});
|
172 |
+
</script>
|
173 |
+
<?php endif;
|
174 |
+
|
175 |
+
}
|
176 |
+
|
177 |
+
}
|
178 |
+
|
179 |
+
$kirki = new Kirki();
|
readme.txt
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
=== Kirki ===
|
2 |
+
Contributors: aristath, fovoc
|
3 |
+
Donate link: http://kirki.org
|
4 |
+
Tags: customizer
|
5 |
+
Requires at least: 3.8
|
6 |
+
Tested up to: 3.9.1
|
7 |
+
Stable tag: 0.3
|
8 |
+
License: GPLv2 or later
|
9 |
+
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
+
|
11 |
+
Tired of all the bloated options frameworks? You can use the WordPress Customizer instead, and extend it using Kirki!
|
12 |
+
|
13 |
+
== Description ==
|
14 |
+
|
15 |
+
This plugin empowers theme developers making it easier to implement advanced features:
|
16 |
+
|
17 |
+
* Use [additional controls](http://kirki.org/#fields) on the WordPress Customizer.
|
18 |
+
* Easier definition of customizer controls.
|
19 |
+
* Advanced settings on each controls (such as subtitles and help popovers).
|
20 |
+
|
21 |
+
The plugin has extensive and thorough documentation available on [kirki.org](http://kirki.org).
|
22 |
+
Please visit the [usage and implementation advice](http://kirki.org/#configuration).
|
23 |
+
|
24 |
+
== Installation ==
|
25 |
+
|
26 |
+
Just install this plugin and activate it.
|
27 |
+
For configuration instructions please visit http://kirki.org/#configuration
|
28 |
+
|
29 |
+
== Changelog ==
|
30 |
+
|
31 |
+
= 0.3 =
|
32 |
+
* new: added background field
|
33 |
+
* new: added 'output' argument to directly output the CSS
|
34 |
+
|
35 |
+
= 0.2 =
|
36 |
+
* Initial version
|