Version Description
- Change: Bumped minimum WordPress version to 5.4.
- Change: Listings now expire (by default) at the end of the expiration date.
- Change: Job listing expiration checks uses the WordPress time zone.
- Change: All dates are now presented using the WordPress time zone.
- Change: Transitioned from LESS to SCSS for CSS generation. May effect final CSS generation and should be tested with theme.
- Fix: jQuery UI CSS 404s when jQuery Migrate plugin is installed.
- Fix: Pagination on job dashboard page when actions are completed.
- Fix: Application Email/URL field will give more actionable validation errors.
- Fix: Action
job_manager_job_submitted
fired when outside of standard submission flow. - Fix:
job_manager_select2_filters_args
pollution on frontend. (@tripflex) - Fix:
is_wpjm_page
returns true if none are defined. (@ibndawood) - Fix: Missing variable error with cached widgets.
- Tweak: reCAPTCHA setting has more clear language. (@tripflex)
- Dev: Added filter
submit_job_form_create_account_role
for user role when created on job submission. (@tripflex) - Dev: Added filter
job_manager_should_run_shortcode_action_handler
for if a job dashboard action should run. - Dev: Added filter
job_manager_get_form_action
to modify the action of a frontend form. (@tripflex)
Download this release
Release Info
Developer | jakeom |
Plugin | WP Job Manager |
Version | 1.35.0 |
Comparing to | |
See all releases |
Code changes from version 1.34.5 to 1.35.0
- LICENSE +674 -0
- assets/dist/css/admin.asset.php +1 -0
- assets/dist/css/admin.css +1 -0
- assets/dist/css/frontend.asset.php +1 -0
- assets/dist/css/frontend.css +1 -0
- assets/dist/css/job-listings.asset.php +1 -0
- assets/dist/css/job-listings.css +1 -0
- assets/dist/css/job-submission.asset.php +1 -0
- assets/dist/css/job-submission.css +1 -0
- assets/dist/css/menu.asset.php +1 -0
- assets/dist/css/menu.css +1 -0
- assets/dist/css/setup.asset.php +1 -0
- assets/dist/css/setup.css +1 -0
- assets/dist/font/jm-logo/jm-04f818ce1471720fb214394b96feb5de.svg +26 -0
- assets/dist/font/jm-logo/jm-18758dfe508305ba1682fe8fb3be8c72.eot +0 -0
- assets/dist/font/jm-logo/jm-67b7d10affac4ffd77eb7874ec25263b.woff +0 -0
- assets/dist/font/jm-logo/jm-97b72719abd94986185dcfeef1203fb9.ttf +0 -0
- assets/dist/font/job-manager-434425afc81b621e0e02b871e4f5fca1.woff +0 -0
- assets/dist/font/job-manager-7799d387315fbcfa0060adf100cc549d.ttf +0 -0
- assets/dist/font/job-manager-a2d17fff9efb870b3e027dc5516b3ecc.eot +0 -0
- assets/dist/font/job-manager-aa916d5b5333755f80564e47a7f7a89f.svg +262 -0
- assets/dist/images/ajax-loader-ea183bf26ae76dec039869d4bc7060cb.gif +0 -0
- assets/dist/js/admin.asset.php +1 -0
- assets/dist/js/admin.js +1 -0
- assets/dist/js/ajax-file-upload.asset.php +1 -0
- assets/dist/js/ajax-file-upload.js +1 -0
- assets/dist/js/ajax-filters.asset.php +1 -0
- assets/dist/js/ajax-filters.js +1 -0
- assets/dist/js/datepicker.asset.php +1 -0
- assets/dist/js/datepicker.js +1 -0
- assets/dist/js/job-application.asset.php +1 -0
- assets/dist/js/job-application.js +1 -0
- assets/dist/js/job-dashboard.asset.php +1 -0
- assets/dist/js/job-dashboard.js +1 -0
- assets/dist/js/job-submission.asset.php +1 -0
- assets/dist/js/job-submission.js +1 -0
- assets/dist/js/multiselect.asset.php +1 -0
- assets/dist/js/multiselect.js +1 -0
- assets/dist/js/term-multiselect.asset.php +1 -0
- assets/dist/js/term-multiselect.js +1 -0
- assets/lib/jquery-chosen/chosen.css +435 -0
- assets/lib/jquery-chosen/chosen.jquery.js +1229 -0
- assets/lib/jquery-chosen/chosen.jquery.min.js +2 -0
- assets/lib/jquery-chosen/images/chosen-sprite.png +0 -0
- assets/lib/jquery-chosen/images/chosen-sprite@2x.png +0 -0
- assets/lib/jquery-deserialize/jquery.deserialize.js +142 -0
- assets/lib/jquery-fileupload/jquery.fileupload.js +1611 -0
- assets/lib/jquery-fileupload/jquery.iframe-transport.js +221 -0
- assets/lib/jquery-tiptip/jquery.tipTip.js +192 -0
- assets/lib/jquery-tiptip/jquery.tipTip.min.js +20 -0
- assets/lib/select2/select2.full.min.js +2 -0
- assets/lib/select2/select2.min.css +1 -0
- changelog.txt +19 -0
- includes/abstracts/abstract-wp-job-manager-form.php +122 -24
- includes/admin/class-wp-job-manager-admin.php +10 -4
- includes/admin/class-wp-job-manager-cpt.php +5 -4
- includes/admin/class-wp-job-manager-settings.php +2 -2
- includes/admin/class-wp-job-manager-setup.php +2 -1
- includes/admin/class-wp-job-manager-writepanels.php +45 -27
- includes/class-wp-job-manager-email-notifications.php +6 -5
- includes/class-wp-job-manager-forms.php +1 -1
- includes/class-wp-job-manager-post-types.php +201 -24
- includes/class-wp-job-manager-shortcodes.php +19 -10
- includes/class-wp-job-manager-usage-tracking.php +1 -5
- includes/class-wp-job-manager-widget.php +6 -0
- includes/class-wp-job-manager.php +102 -17
- includes/emails/class-wp-job-manager-email-employer-expiring-job.php +3 -3
- includes/forms/class-wp-job-manager-form-submit-job.php +50 -18
- languages/wp-job-manager.pot +472 -663
- readme.txt +21 -3
- templates/job-dashboard.php +7 -3
- wp-job-manager-functions.php +19 -9
- wp-job-manager-template.php +8 -9
- wp-job-manager.php +4 -4
LICENSE
ADDED
@@ -0,0 +1,674 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
GNU GENERAL PUBLIC LICENSE
|
2 |
+
Version 3, 29 June 2007
|
3 |
+
|
4 |
+
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
5 |
+
Everyone is permitted to copy and distribute verbatim copies
|
6 |
+
of this license document, but changing it is not allowed.
|
7 |
+
|
8 |
+
Preamble
|
9 |
+
|
10 |
+
The GNU General Public License is a free, copyleft license for
|
11 |
+
software and other kinds of works.
|
12 |
+
|
13 |
+
The licenses for most software and other practical works are designed
|
14 |
+
to take away your freedom to share and change the works. By contrast,
|
15 |
+
the GNU General Public License is intended to guarantee your freedom to
|
16 |
+
share and change all versions of a program--to make sure it remains free
|
17 |
+
software for all its users. We, the Free Software Foundation, use the
|
18 |
+
GNU General Public License for most of our software; it applies also to
|
19 |
+
any other work released this way by its authors. You can apply it to
|
20 |
+
your programs, too.
|
21 |
+
|
22 |
+
When we speak of free software, we are referring to freedom, not
|
23 |
+
price. Our General Public Licenses are designed to make sure that you
|
24 |
+
have the freedom to distribute copies of free software (and charge for
|
25 |
+
them if you wish), that you receive source code or can get it if you
|
26 |
+
want it, that you can change the software or use pieces of it in new
|
27 |
+
free programs, and that you know you can do these things.
|
28 |
+
|
29 |
+
To protect your rights, we need to prevent others from denying you
|
30 |
+
these rights or asking you to surrender the rights. Therefore, you have
|
31 |
+
certain responsibilities if you distribute copies of the software, or if
|
32 |
+
you modify it: responsibilities to respect the freedom of others.
|
33 |
+
|
34 |
+
For example, if you distribute copies of such a program, whether
|
35 |
+
gratis or for a fee, you must pass on to the recipients the same
|
36 |
+
freedoms that you received. You must make sure that they, too, receive
|
37 |
+
or can get the source code. And you must show them these terms so they
|
38 |
+
know their rights.
|
39 |
+
|
40 |
+
Developers that use the GNU GPL protect your rights with two steps:
|
41 |
+
(1) assert copyright on the software, and (2) offer you this License
|
42 |
+
giving you legal permission to copy, distribute and/or modify it.
|
43 |
+
|
44 |
+
For the developers' and authors' protection, the GPL clearly explains
|
45 |
+
that there is no warranty for this free software. For both users' and
|
46 |
+
authors' sake, the GPL requires that modified versions be marked as
|
47 |
+
changed, so that their problems will not be attributed erroneously to
|
48 |
+
authors of previous versions.
|
49 |
+
|
50 |
+
Some devices are designed to deny users access to install or run
|
51 |
+
modified versions of the software inside them, although the manufacturer
|
52 |
+
can do so. This is fundamentally incompatible with the aim of
|
53 |
+
protecting users' freedom to change the software. The systematic
|
54 |
+
pattern of such abuse occurs in the area of products for individuals to
|
55 |
+
use, which is precisely where it is most unacceptable. Therefore, we
|
56 |
+
have designed this version of the GPL to prohibit the practice for those
|
57 |
+
products. If such problems arise substantially in other domains, we
|
58 |
+
stand ready to extend this provision to those domains in future versions
|
59 |
+
of the GPL, as needed to protect the freedom of users.
|
60 |
+
|
61 |
+
Finally, every program is threatened constantly by software patents.
|
62 |
+
States should not allow patents to restrict development and use of
|
63 |
+
software on general-purpose computers, but in those that do, we wish to
|
64 |
+
avoid the special danger that patents applied to a free program could
|
65 |
+
make it effectively proprietary. To prevent this, the GPL assures that
|
66 |
+
patents cannot be used to render the program non-free.
|
67 |
+
|
68 |
+
The precise terms and conditions for copying, distribution and
|
69 |
+
modification follow.
|
70 |
+
|
71 |
+
TERMS AND CONDITIONS
|
72 |
+
|
73 |
+
0. Definitions.
|
74 |
+
|
75 |
+
"This License" refers to version 3 of the GNU General Public License.
|
76 |
+
|
77 |
+
"Copyright" also means copyright-like laws that apply to other kinds of
|
78 |
+
works, such as semiconductor masks.
|
79 |
+
|
80 |
+
"The Program" refers to any copyrightable work licensed under this
|
81 |
+
License. Each licensee is addressed as "you". "Licensees" and
|
82 |
+
"recipients" may be individuals or organizations.
|
83 |
+
|
84 |
+
To "modify" a work means to copy from or adapt all or part of the work
|
85 |
+
in a fashion requiring copyright permission, other than the making of an
|
86 |
+
exact copy. The resulting work is called a "modified version" of the
|
87 |
+
earlier work or a work "based on" the earlier work.
|
88 |
+
|
89 |
+
A "covered work" means either the unmodified Program or a work based
|
90 |
+
on the Program.
|
91 |
+
|
92 |
+
To "propagate" a work means to do anything with it that, without
|
93 |
+
permission, would make you directly or secondarily liable for
|
94 |
+
infringement under applicable copyright law, except executing it on a
|
95 |
+
computer or modifying a private copy. Propagation includes copying,
|
96 |
+
distribution (with or without modification), making available to the
|
97 |
+
public, and in some countries other activities as well.
|
98 |
+
|
99 |
+
To "convey" a work means any kind of propagation that enables other
|
100 |
+
parties to make or receive copies. Mere interaction with a user through
|
101 |
+
a computer network, with no transfer of a copy, is not conveying.
|
102 |
+
|
103 |
+
An interactive user interface displays "Appropriate Legal Notices"
|
104 |
+
to the extent that it includes a convenient and prominently visible
|
105 |
+
feature that (1) displays an appropriate copyright notice, and (2)
|
106 |
+
tells the user that there is no warranty for the work (except to the
|
107 |
+
extent that warranties are provided), that licensees may convey the
|
108 |
+
work under this License, and how to view a copy of this License. If
|
109 |
+
the interface presents a list of user commands or options, such as a
|
110 |
+
menu, a prominent item in the list meets this criterion.
|
111 |
+
|
112 |
+
1. Source Code.
|
113 |
+
|
114 |
+
The "source code" for a work means the preferred form of the work
|
115 |
+
for making modifications to it. "Object code" means any non-source
|
116 |
+
form of a work.
|
117 |
+
|
118 |
+
A "Standard Interface" means an interface that either is an official
|
119 |
+
standard defined by a recognized standards body, or, in the case of
|
120 |
+
interfaces specified for a particular programming language, one that
|
121 |
+
is widely used among developers working in that language.
|
122 |
+
|
123 |
+
The "System Libraries" of an executable work include anything, other
|
124 |
+
than the work as a whole, that (a) is included in the normal form of
|
125 |
+
packaging a Major Component, but which is not part of that Major
|
126 |
+
Component, and (b) serves only to enable use of the work with that
|
127 |
+
Major Component, or to implement a Standard Interface for which an
|
128 |
+
implementation is available to the public in source code form. A
|
129 |
+
"Major Component", in this context, means a major essential component
|
130 |
+
(kernel, window system, and so on) of the specific operating system
|
131 |
+
(if any) on which the executable work runs, or a compiler used to
|
132 |
+
produce the work, or an object code interpreter used to run it.
|
133 |
+
|
134 |
+
The "Corresponding Source" for a work in object code form means all
|
135 |
+
the source code needed to generate, install, and (for an executable
|
136 |
+
work) run the object code and to modify the work, including scripts to
|
137 |
+
control those activities. However, it does not include the work's
|
138 |
+
System Libraries, or general-purpose tools or generally available free
|
139 |
+
programs which are used unmodified in performing those activities but
|
140 |
+
which are not part of the work. For example, Corresponding Source
|
141 |
+
includes interface definition files associated with source files for
|
142 |
+
the work, and the source code for shared libraries and dynamically
|
143 |
+
linked subprograms that the work is specifically designed to require,
|
144 |
+
such as by intimate data communication or control flow between those
|
145 |
+
subprograms and other parts of the work.
|
146 |
+
|
147 |
+
The Corresponding Source need not include anything that users
|
148 |
+
can regenerate automatically from other parts of the Corresponding
|
149 |
+
Source.
|
150 |
+
|
151 |
+
The Corresponding Source for a work in source code form is that
|
152 |
+
same work.
|
153 |
+
|
154 |
+
2. Basic Permissions.
|
155 |
+
|
156 |
+
All rights granted under this License are granted for the term of
|
157 |
+
copyright on the Program, and are irrevocable provided the stated
|
158 |
+
conditions are met. This License explicitly affirms your unlimited
|
159 |
+
permission to run the unmodified Program. The output from running a
|
160 |
+
covered work is covered by this License only if the output, given its
|
161 |
+
content, constitutes a covered work. This License acknowledges your
|
162 |
+
rights of fair use or other equivalent, as provided by copyright law.
|
163 |
+
|
164 |
+
You may make, run and propagate covered works that you do not
|
165 |
+
convey, without conditions so long as your license otherwise remains
|
166 |
+
in force. You may convey covered works to others for the sole purpose
|
167 |
+
of having them make modifications exclusively for you, or provide you
|
168 |
+
with facilities for running those works, provided that you comply with
|
169 |
+
the terms of this License in conveying all material for which you do
|
170 |
+
not control copyright. Those thus making or running the covered works
|
171 |
+
for you must do so exclusively on your behalf, under your direction
|
172 |
+
and control, on terms that prohibit them from making any copies of
|
173 |
+
your copyrighted material outside their relationship with you.
|
174 |
+
|
175 |
+
Conveying under any other circumstances is permitted solely under
|
176 |
+
the conditions stated below. Sublicensing is not allowed; section 10
|
177 |
+
makes it unnecessary.
|
178 |
+
|
179 |
+
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
180 |
+
|
181 |
+
No covered work shall be deemed part of an effective technological
|
182 |
+
measure under any applicable law fulfilling obligations under article
|
183 |
+
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
184 |
+
similar laws prohibiting or restricting circumvention of such
|
185 |
+
measures.
|
186 |
+
|
187 |
+
When you convey a covered work, you waive any legal power to forbid
|
188 |
+
circumvention of technological measures to the extent such circumvention
|
189 |
+
is effected by exercising rights under this License with respect to
|
190 |
+
the covered work, and you disclaim any intention to limit operation or
|
191 |
+
modification of the work as a means of enforcing, against the work's
|
192 |
+
users, your or third parties' legal rights to forbid circumvention of
|
193 |
+
technological measures.
|
194 |
+
|
195 |
+
4. Conveying Verbatim Copies.
|
196 |
+
|
197 |
+
You may convey verbatim copies of the Program's source code as you
|
198 |
+
receive it, in any medium, provided that you conspicuously and
|
199 |
+
appropriately publish on each copy an appropriate copyright notice;
|
200 |
+
keep intact all notices stating that this License and any
|
201 |
+
non-permissive terms added in accord with section 7 apply to the code;
|
202 |
+
keep intact all notices of the absence of any warranty; and give all
|
203 |
+
recipients a copy of this License along with the Program.
|
204 |
+
|
205 |
+
You may charge any price or no price for each copy that you convey,
|
206 |
+
and you may offer support or warranty protection for a fee.
|
207 |
+
|
208 |
+
5. Conveying Modified Source Versions.
|
209 |
+
|
210 |
+
You may convey a work based on the Program, or the modifications to
|
211 |
+
produce it from the Program, in the form of source code under the
|
212 |
+
terms of section 4, provided that you also meet all of these conditions:
|
213 |
+
|
214 |
+
a) The work must carry prominent notices stating that you modified
|
215 |
+
it, and giving a relevant date.
|
216 |
+
|
217 |
+
b) The work must carry prominent notices stating that it is
|
218 |
+
released under this License and any conditions added under section
|
219 |
+
7. This requirement modifies the requirement in section 4 to
|
220 |
+
"keep intact all notices".
|
221 |
+
|
222 |
+
c) You must license the entire work, as a whole, under this
|
223 |
+
License to anyone who comes into possession of a copy. This
|
224 |
+
License will therefore apply, along with any applicable section 7
|
225 |
+
additional terms, to the whole of the work, and all its parts,
|
226 |
+
regardless of how they are packaged. This License gives no
|
227 |
+
permission to license the work in any other way, but it does not
|
228 |
+
invalidate such permission if you have separately received it.
|
229 |
+
|
230 |
+
d) If the work has interactive user interfaces, each must display
|
231 |
+
Appropriate Legal Notices; however, if the Program has interactive
|
232 |
+
interfaces that do not display Appropriate Legal Notices, your
|
233 |
+
work need not make them do so.
|
234 |
+
|
235 |
+
A compilation of a covered work with other separate and independent
|
236 |
+
works, which are not by their nature extensions of the covered work,
|
237 |
+
and which are not combined with it such as to form a larger program,
|
238 |
+
in or on a volume of a storage or distribution medium, is called an
|
239 |
+
"aggregate" if the compilation and its resulting copyright are not
|
240 |
+
used to limit the access or legal rights of the compilation's users
|
241 |
+
beyond what the individual works permit. Inclusion of a covered work
|
242 |
+
in an aggregate does not cause this License to apply to the other
|
243 |
+
parts of the aggregate.
|
244 |
+
|
245 |
+
6. Conveying Non-Source Forms.
|
246 |
+
|
247 |
+
You may convey a covered work in object code form under the terms
|
248 |
+
of sections 4 and 5, provided that you also convey the
|
249 |
+
machine-readable Corresponding Source under the terms of this License,
|
250 |
+
in one of these ways:
|
251 |
+
|
252 |
+
a) Convey the object code in, or embodied in, a physical product
|
253 |
+
(including a physical distribution medium), accompanied by the
|
254 |
+
Corresponding Source fixed on a durable physical medium
|
255 |
+
customarily used for software interchange.
|
256 |
+
|
257 |
+
b) Convey the object code in, or embodied in, a physical product
|
258 |
+
(including a physical distribution medium), accompanied by a
|
259 |
+
written offer, valid for at least three years and valid for as
|
260 |
+
long as you offer spare parts or customer support for that product
|
261 |
+
model, to give anyone who possesses the object code either (1) a
|
262 |
+
copy of the Corresponding Source for all the software in the
|
263 |
+
product that is covered by this License, on a durable physical
|
264 |
+
medium customarily used for software interchange, for a price no
|
265 |
+
more than your reasonable cost of physically performing this
|
266 |
+
conveying of source, or (2) access to copy the
|
267 |
+
Corresponding Source from a network server at no charge.
|
268 |
+
|
269 |
+
c) Convey individual copies of the object code with a copy of the
|
270 |
+
written offer to provide the Corresponding Source. This
|
271 |
+
alternative is allowed only occasionally and noncommercially, and
|
272 |
+
only if you received the object code with such an offer, in accord
|
273 |
+
with subsection 6b.
|
274 |
+
|
275 |
+
d) Convey the object code by offering access from a designated
|
276 |
+
place (gratis or for a charge), and offer equivalent access to the
|
277 |
+
Corresponding Source in the same way through the same place at no
|
278 |
+
further charge. You need not require recipients to copy the
|
279 |
+
Corresponding Source along with the object code. If the place to
|
280 |
+
copy the object code is a network server, the Corresponding Source
|
281 |
+
may be on a different server (operated by you or a third party)
|
282 |
+
that supports equivalent copying facilities, provided you maintain
|
283 |
+
clear directions next to the object code saying where to find the
|
284 |
+
Corresponding Source. Regardless of what server hosts the
|
285 |
+
Corresponding Source, you remain obligated to ensure that it is
|
286 |
+
available for as long as needed to satisfy these requirements.
|
287 |
+
|
288 |
+
e) Convey the object code using peer-to-peer transmission, provided
|
289 |
+
you inform other peers where the object code and Corresponding
|
290 |
+
Source of the work are being offered to the general public at no
|
291 |
+
charge under subsection 6d.
|
292 |
+
|
293 |
+
A separable portion of the object code, whose source code is excluded
|
294 |
+
from the Corresponding Source as a System Library, need not be
|
295 |
+
included in conveying the object code work.
|
296 |
+
|
297 |
+
A "User Product" is either (1) a "consumer product", which means any
|
298 |
+
tangible personal property which is normally used for personal, family,
|
299 |
+
or household purposes, or (2) anything designed or sold for incorporation
|
300 |
+
into a dwelling. In determining whether a product is a consumer product,
|
301 |
+
doubtful cases shall be resolved in favor of coverage. For a particular
|
302 |
+
product received by a particular user, "normally used" refers to a
|
303 |
+
typical or common use of that class of product, regardless of the status
|
304 |
+
of the particular user or of the way in which the particular user
|
305 |
+
actually uses, or expects or is expected to use, the product. A product
|
306 |
+
is a consumer product regardless of whether the product has substantial
|
307 |
+
commercial, industrial or non-consumer uses, unless such uses represent
|
308 |
+
the only significant mode of use of the product.
|
309 |
+
|
310 |
+
"Installation Information" for a User Product means any methods,
|
311 |
+
procedures, authorization keys, or other information required to install
|
312 |
+
and execute modified versions of a covered work in that User Product from
|
313 |
+
a modified version of its Corresponding Source. The information must
|
314 |
+
suffice to ensure that the continued functioning of the modified object
|
315 |
+
code is in no case prevented or interfered with solely because
|
316 |
+
modification has been made.
|
317 |
+
|
318 |
+
If you convey an object code work under this section in, or with, or
|
319 |
+
specifically for use in, a User Product, and the conveying occurs as
|
320 |
+
part of a transaction in which the right of possession and use of the
|
321 |
+
User Product is transferred to the recipient in perpetuity or for a
|
322 |
+
fixed term (regardless of how the transaction is characterized), the
|
323 |
+
Corresponding Source conveyed under this section must be accompanied
|
324 |
+
by the Installation Information. But this requirement does not apply
|
325 |
+
if neither you nor any third party retains the ability to install
|
326 |
+
modified object code on the User Product (for example, the work has
|
327 |
+
been installed in ROM).
|
328 |
+
|
329 |
+
The requirement to provide Installation Information does not include a
|
330 |
+
requirement to continue to provide support service, warranty, or updates
|
331 |
+
for a work that has been modified or installed by the recipient, or for
|
332 |
+
the User Product in which it has been modified or installed. Access to a
|
333 |
+
network may be denied when the modification itself materially and
|
334 |
+
adversely affects the operation of the network or violates the rules and
|
335 |
+
protocols for communication across the network.
|
336 |
+
|
337 |
+
Corresponding Source conveyed, and Installation Information provided,
|
338 |
+
in accord with this section must be in a format that is publicly
|
339 |
+
documented (and with an implementation available to the public in
|
340 |
+
source code form), and must require no special password or key for
|
341 |
+
unpacking, reading or copying.
|
342 |
+
|
343 |
+
7. Additional Terms.
|
344 |
+
|
345 |
+
"Additional permissions" are terms that supplement the terms of this
|
346 |
+
License by making exceptions from one or more of its conditions.
|
347 |
+
Additional permissions that are applicable to the entire Program shall
|
348 |
+
be treated as though they were included in this License, to the extent
|
349 |
+
that they are valid under applicable law. If additional permissions
|
350 |
+
apply only to part of the Program, that part may be used separately
|
351 |
+
under those permissions, but the entire Program remains governed by
|
352 |
+
this License without regard to the additional permissions.
|
353 |
+
|
354 |
+
When you convey a copy of a covered work, you may at your option
|
355 |
+
remove any additional permissions from that copy, or from any part of
|
356 |
+
it. (Additional permissions may be written to require their own
|
357 |
+
removal in certain cases when you modify the work.) You may place
|
358 |
+
additional permissions on material, added by you to a covered work,
|
359 |
+
for which you have or can give appropriate copyright permission.
|
360 |
+
|
361 |
+
Notwithstanding any other provision of this License, for material you
|
362 |
+
add to a covered work, you may (if authorized by the copyright holders of
|
363 |
+
that material) supplement the terms of this License with terms:
|
364 |
+
|
365 |
+
a) Disclaiming warranty or limiting liability differently from the
|
366 |
+
terms of sections 15 and 16 of this License; or
|
367 |
+
|
368 |
+
b) Requiring preservation of specified reasonable legal notices or
|
369 |
+
author attributions in that material or in the Appropriate Legal
|
370 |
+
Notices displayed by works containing it; or
|
371 |
+
|
372 |
+
c) Prohibiting misrepresentation of the origin of that material, or
|
373 |
+
requiring that modified versions of such material be marked in
|
374 |
+
reasonable ways as different from the original version; or
|
375 |
+
|
376 |
+
d) Limiting the use for publicity purposes of names of licensors or
|
377 |
+
authors of the material; or
|
378 |
+
|
379 |
+
e) Declining to grant rights under trademark law for use of some
|
380 |
+
trade names, trademarks, or service marks; or
|
381 |
+
|
382 |
+
f) Requiring indemnification of licensors and authors of that
|
383 |
+
material by anyone who conveys the material (or modified versions of
|
384 |
+
it) with contractual assumptions of liability to the recipient, for
|
385 |
+
any liability that these contractual assumptions directly impose on
|
386 |
+
those licensors and authors.
|
387 |
+
|
388 |
+
All other non-permissive additional terms are considered "further
|
389 |
+
restrictions" within the meaning of section 10. If the Program as you
|
390 |
+
received it, or any part of it, contains a notice stating that it is
|
391 |
+
governed by this License along with a term that is a further
|
392 |
+
restriction, you may remove that term. If a license document contains
|
393 |
+
a further restriction but permits relicensing or conveying under this
|
394 |
+
License, you may add to a covered work material governed by the terms
|
395 |
+
of that license document, provided that the further restriction does
|
396 |
+
not survive such relicensing or conveying.
|
397 |
+
|
398 |
+
If you add terms to a covered work in accord with this section, you
|
399 |
+
must place, in the relevant source files, a statement of the
|
400 |
+
additional terms that apply to those files, or a notice indicating
|
401 |
+
where to find the applicable terms.
|
402 |
+
|
403 |
+
Additional terms, permissive or non-permissive, may be stated in the
|
404 |
+
form of a separately written license, or stated as exceptions;
|
405 |
+
the above requirements apply either way.
|
406 |
+
|
407 |
+
8. Termination.
|
408 |
+
|
409 |
+
You may not propagate or modify a covered work except as expressly
|
410 |
+
provided under this License. Any attempt otherwise to propagate or
|
411 |
+
modify it is void, and will automatically terminate your rights under
|
412 |
+
this License (including any patent licenses granted under the third
|
413 |
+
paragraph of section 11).
|
414 |
+
|
415 |
+
However, if you cease all violation of this License, then your
|
416 |
+
license from a particular copyright holder is reinstated (a)
|
417 |
+
provisionally, unless and until the copyright holder explicitly and
|
418 |
+
finally terminates your license, and (b) permanently, if the copyright
|
419 |
+
holder fails to notify you of the violation by some reasonable means
|
420 |
+
prior to 60 days after the cessation.
|
421 |
+
|
422 |
+
Moreover, your license from a particular copyright holder is
|
423 |
+
reinstated permanently if the copyright holder notifies you of the
|
424 |
+
violation by some reasonable means, this is the first time you have
|
425 |
+
received notice of violation of this License (for any work) from that
|
426 |
+
copyright holder, and you cure the violation prior to 30 days after
|
427 |
+
your receipt of the notice.
|
428 |
+
|
429 |
+
Termination of your rights under this section does not terminate the
|
430 |
+
licenses of parties who have received copies or rights from you under
|
431 |
+
this License. If your rights have been terminated and not permanently
|
432 |
+
reinstated, you do not qualify to receive new licenses for the same
|
433 |
+
material under section 10.
|
434 |
+
|
435 |
+
9. Acceptance Not Required for Having Copies.
|
436 |
+
|
437 |
+
You are not required to accept this License in order to receive or
|
438 |
+
run a copy of the Program. Ancillary propagation of a covered work
|
439 |
+
occurring solely as a consequence of using peer-to-peer transmission
|
440 |
+
to receive a copy likewise does not require acceptance. However,
|
441 |
+
nothing other than this License grants you permission to propagate or
|
442 |
+
modify any covered work. These actions infringe copyright if you do
|
443 |
+
not accept this License. Therefore, by modifying or propagating a
|
444 |
+
covered work, you indicate your acceptance of this License to do so.
|
445 |
+
|
446 |
+
10. Automatic Licensing of Downstream Recipients.
|
447 |
+
|
448 |
+
Each time you convey a covered work, the recipient automatically
|
449 |
+
receives a license from the original licensors, to run, modify and
|
450 |
+
propagate that work, subject to this License. You are not responsible
|
451 |
+
for enforcing compliance by third parties with this License.
|
452 |
+
|
453 |
+
An "entity transaction" is a transaction transferring control of an
|
454 |
+
organization, or substantially all assets of one, or subdividing an
|
455 |
+
organization, or merging organizations. If propagation of a covered
|
456 |
+
work results from an entity transaction, each party to that
|
457 |
+
transaction who receives a copy of the work also receives whatever
|
458 |
+
licenses to the work the party's predecessor in interest had or could
|
459 |
+
give under the previous paragraph, plus a right to possession of the
|
460 |
+
Corresponding Source of the work from the predecessor in interest, if
|
461 |
+
the predecessor has it or can get it with reasonable efforts.
|
462 |
+
|
463 |
+
You may not impose any further restrictions on the exercise of the
|
464 |
+
rights granted or affirmed under this License. For example, you may
|
465 |
+
not impose a license fee, royalty, or other charge for exercise of
|
466 |
+
rights granted under this License, and you may not initiate litigation
|
467 |
+
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
468 |
+
any patent claim is infringed by making, using, selling, offering for
|
469 |
+
sale, or importing the Program or any portion of it.
|
470 |
+
|
471 |
+
11. Patents.
|
472 |
+
|
473 |
+
A "contributor" is a copyright holder who authorizes use under this
|
474 |
+
License of the Program or a work on which the Program is based. The
|
475 |
+
work thus licensed is called the contributor's "contributor version".
|
476 |
+
|
477 |
+
A contributor's "essential patent claims" are all patent claims
|
478 |
+
owned or controlled by the contributor, whether already acquired or
|
479 |
+
hereafter acquired, that would be infringed by some manner, permitted
|
480 |
+
by this License, of making, using, or selling its contributor version,
|
481 |
+
but do not include claims that would be infringed only as a
|
482 |
+
consequence of further modification of the contributor version. For
|
483 |
+
purposes of this definition, "control" includes the right to grant
|
484 |
+
patent sublicenses in a manner consistent with the requirements of
|
485 |
+
this License.
|
486 |
+
|
487 |
+
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
488 |
+
patent license under the contributor's essential patent claims, to
|
489 |
+
make, use, sell, offer for sale, import and otherwise run, modify and
|
490 |
+
propagate the contents of its contributor version.
|
491 |
+
|
492 |
+
In the following three paragraphs, a "patent license" is any express
|
493 |
+
agreement or commitment, however denominated, not to enforce a patent
|
494 |
+
(such as an express permission to practice a patent or covenant not to
|
495 |
+
sue for patent infringement). To "grant" such a patent license to a
|
496 |
+
party means to make such an agreement or commitment not to enforce a
|
497 |
+
patent against the party.
|
498 |
+
|
499 |
+
If you convey a covered work, knowingly relying on a patent license,
|
500 |
+
and the Corresponding Source of the work is not available for anyone
|
501 |
+
to copy, free of charge and under the terms of this License, through a
|
502 |
+
publicly available network server or other readily accessible means,
|
503 |
+
then you must either (1) cause the Corresponding Source to be so
|
504 |
+
available, or (2) arrange to deprive yourself of the benefit of the
|
505 |
+
patent license for this particular work, or (3) arrange, in a manner
|
506 |
+
consistent with the requirements of this License, to extend the patent
|
507 |
+
license to downstream recipients. "Knowingly relying" means you have
|
508 |
+
actual knowledge that, but for the patent license, your conveying the
|
509 |
+
covered work in a country, or your recipient's use of the covered work
|
510 |
+
in a country, would infringe one or more identifiable patents in that
|
511 |
+
country that you have reason to believe are valid.
|
512 |
+
|
513 |
+
If, pursuant to or in connection with a single transaction or
|
514 |
+
arrangement, you convey, or propagate by procuring conveyance of, a
|
515 |
+
covered work, and grant a patent license to some of the parties
|
516 |
+
receiving the covered work authorizing them to use, propagate, modify
|
517 |
+
or convey a specific copy of the covered work, then the patent license
|
518 |
+
you grant is automatically extended to all recipients of the covered
|
519 |
+
work and works based on it.
|
520 |
+
|
521 |
+
A patent license is "discriminatory" if it does not include within
|
522 |
+
the scope of its coverage, prohibits the exercise of, or is
|
523 |
+
conditioned on the non-exercise of one or more of the rights that are
|
524 |
+
specifically granted under this License. You may not convey a covered
|
525 |
+
work if you are a party to an arrangement with a third party that is
|
526 |
+
in the business of distributing software, under which you make payment
|
527 |
+
to the third party based on the extent of your activity of conveying
|
528 |
+
the work, and under which the third party grants, to any of the
|
529 |
+
parties who would receive the covered work from you, a discriminatory
|
530 |
+
patent license (a) in connection with copies of the covered work
|
531 |
+
conveyed by you (or copies made from those copies), or (b) primarily
|
532 |
+
for and in connection with specific products or compilations that
|
533 |
+
contain the covered work, unless you entered into that arrangement,
|
534 |
+
or that patent license was granted, prior to 28 March 2007.
|
535 |
+
|
536 |
+
Nothing in this License shall be construed as excluding or limiting
|
537 |
+
any implied license or other defenses to infringement that may
|
538 |
+
otherwise be available to you under applicable patent law.
|
539 |
+
|
540 |
+
12. No Surrender of Others' Freedom.
|
541 |
+
|
542 |
+
If conditions are imposed on you (whether by court order, agreement or
|
543 |
+
otherwise) that contradict the conditions of this License, they do not
|
544 |
+
excuse you from the conditions of this License. If you cannot convey a
|
545 |
+
covered work so as to satisfy simultaneously your obligations under this
|
546 |
+
License and any other pertinent obligations, then as a consequence you may
|
547 |
+
not convey it at all. For example, if you agree to terms that obligate you
|
548 |
+
to collect a royalty for further conveying from those to whom you convey
|
549 |
+
the Program, the only way you could satisfy both those terms and this
|
550 |
+
License would be to refrain entirely from conveying the Program.
|
551 |
+
|
552 |
+
13. Use with the GNU Affero General Public License.
|
553 |
+
|
554 |
+
Notwithstanding any other provision of this License, you have
|
555 |
+
permission to link or combine any covered work with a work licensed
|
556 |
+
under version 3 of the GNU Affero General Public License into a single
|
557 |
+
combined work, and to convey the resulting work. The terms of this
|
558 |
+
License will continue to apply to the part which is the covered work,
|
559 |
+
but the special requirements of the GNU Affero General Public License,
|
560 |
+
section 13, concerning interaction through a network will apply to the
|
561 |
+
combination as such.
|
562 |
+
|
563 |
+
14. Revised Versions of this License.
|
564 |
+
|
565 |
+
The Free Software Foundation may publish revised and/or new versions of
|
566 |
+
the GNU General Public License from time to time. Such new versions will
|
567 |
+
be similar in spirit to the present version, but may differ in detail to
|
568 |
+
address new problems or concerns.
|
569 |
+
|
570 |
+
Each version is given a distinguishing version number. If the
|
571 |
+
Program specifies that a certain numbered version of the GNU General
|
572 |
+
Public License "or any later version" applies to it, you have the
|
573 |
+
option of following the terms and conditions either of that numbered
|
574 |
+
version or of any later version published by the Free Software
|
575 |
+
Foundation. If the Program does not specify a version number of the
|
576 |
+
GNU General Public License, you may choose any version ever published
|
577 |
+
by the Free Software Foundation.
|
578 |
+
|
579 |
+
If the Program specifies that a proxy can decide which future
|
580 |
+
versions of the GNU General Public License can be used, that proxy's
|
581 |
+
public statement of acceptance of a version permanently authorizes you
|
582 |
+
to choose that version for the Program.
|
583 |
+
|
584 |
+
Later license versions may give you additional or different
|
585 |
+
permissions. However, no additional obligations are imposed on any
|
586 |
+
author or copyright holder as a result of your choosing to follow a
|
587 |
+
later version.
|
588 |
+
|
589 |
+
15. Disclaimer of Warranty.
|
590 |
+
|
591 |
+
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
592 |
+
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
593 |
+
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
594 |
+
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
595 |
+
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
596 |
+
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
597 |
+
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
598 |
+
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
599 |
+
|
600 |
+
16. Limitation of Liability.
|
601 |
+
|
602 |
+
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
603 |
+
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
604 |
+
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
605 |
+
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
606 |
+
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
607 |
+
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
608 |
+
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
609 |
+
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
610 |
+
SUCH DAMAGES.
|
611 |
+
|
612 |
+
17. Interpretation of Sections 15 and 16.
|
613 |
+
|
614 |
+
If the disclaimer of warranty and limitation of liability provided
|
615 |
+
above cannot be given local legal effect according to their terms,
|
616 |
+
reviewing courts shall apply local law that most closely approximates
|
617 |
+
an absolute waiver of all civil liability in connection with the
|
618 |
+
Program, unless a warranty or assumption of liability accompanies a
|
619 |
+
copy of the Program in return for a fee.
|
620 |
+
|
621 |
+
END OF TERMS AND CONDITIONS
|
622 |
+
|
623 |
+
How to Apply These Terms to Your New Programs
|
624 |
+
|
625 |
+
If you develop a new program, and you want it to be of the greatest
|
626 |
+
possible use to the public, the best way to achieve this is to make it
|
627 |
+
free software which everyone can redistribute and change under these terms.
|
628 |
+
|
629 |
+
To do so, attach the following notices to the program. It is safest
|
630 |
+
to attach them to the start of each source file to most effectively
|
631 |
+
state the exclusion of warranty; and each file should have at least
|
632 |
+
the "copyright" line and a pointer to where the full notice is found.
|
633 |
+
|
634 |
+
<one line to give the program's name and a brief idea of what it does.>
|
635 |
+
Copyright (C) <year> <name of author>
|
636 |
+
|
637 |
+
This program is free software: you can redistribute it and/or modify
|
638 |
+
it under the terms of the GNU General Public License as published by
|
639 |
+
the Free Software Foundation, either version 3 of the License, or
|
640 |
+
(at your option) any later version.
|
641 |
+
|
642 |
+
This program is distributed in the hope that it will be useful,
|
643 |
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
644 |
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
645 |
+
GNU General Public License for more details.
|
646 |
+
|
647 |
+
You should have received a copy of the GNU General Public License
|
648 |
+
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
649 |
+
|
650 |
+
Also add information on how to contact you by electronic and paper mail.
|
651 |
+
|
652 |
+
If the program does terminal interaction, make it output a short
|
653 |
+
notice like this when it starts in an interactive mode:
|
654 |
+
|
655 |
+
<program> Copyright (C) <year> <name of author>
|
656 |
+
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
657 |
+
This is free software, and you are welcome to redistribute it
|
658 |
+
under certain conditions; type `show c' for details.
|
659 |
+
|
660 |
+
The hypothetical commands `show w' and `show c' should show the appropriate
|
661 |
+
parts of the General Public License. Of course, your program's commands
|
662 |
+
might be different; for a GUI interface, you would use an "about box".
|
663 |
+
|
664 |
+
You should also get your employer (if you work as a programmer) or school,
|
665 |
+
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
666 |
+
For more information on this, and how to apply and follow the GNU GPL, see
|
667 |
+
<http://www.gnu.org/licenses/>.
|
668 |
+
|
669 |
+
The GNU General Public License does not permit incorporating your program
|
670 |
+
into proprietary programs. If your program is a subroutine library, you
|
671 |
+
may consider it more useful to permit linking proprietary applications with
|
672 |
+
the library. If this is what you want to do, use the GNU Lesser General
|
673 |
+
Public License instead of this License. But first, please read
|
674 |
+
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
|
assets/dist/css/admin.asset.php
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<?php return array('dependencies' => array('wp-polyfill'), 'version' => '58795033eda5fff917d97c58b2a7ec36');
|
assets/dist/css/admin.css
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
.clearfix{zoom:1}.clearfix::before,.clearfix::after{content:"";display:table}.clearfix::after{clear:both}@font-face{font-family:job-manager;src:url(../font/job-manager-a2d17fff9efb870b3e027dc5516b3ecc.eot);src:url(../font/job-manager-a2d17fff9efb870b3e027dc5516b3ecc.eot#iefix) format("embedded-opentype"),url(../font/job-manager-434425afc81b621e0e02b871e4f5fca1.woff) format("woff"),url(../font/job-manager-7799d387315fbcfa0060adf100cc549d.ttf) format("truetype"),url(../font/job-manager-aa916d5b5333755f80564e47a7f7a89f.svg#job-manager) format("svg");font-weight:normal;font-style:normal}@font-face{font-family:jm-logo;src:url(../font/jm-logo/jm-18758dfe508305ba1682fe8fb3be8c72.eot);src:url(../font/jm-logo/jm-18758dfe508305ba1682fe8fb3be8c72.eot?#iefixycsbky) format("embedded-opentype"),url(../font/jm-logo/jm-67b7d10affac4ffd77eb7874ec25263b.woff) format("woff"),url(../font/jm-logo/jm-97b72719abd94986185dcfeef1203fb9.ttf) format("truetype"),url(../font/jm-logo/jm-04f818ce1471720fb214394b96feb5de.svg#icomoon) format("svg");font-weight:normal;font-style:normal}.jm-icon{font-family:job-manager !important;font-style:normal;font-weight:normal;speak:none;display:inline-block;text-decoration:inherit;width:1em;text-align:center;font-variant:normal;text-transform:none;line-height:1em}.job-manager-settings-wrap .job-manager-updated{display:block;margin:1em 0 0}a.wpjm-activate-licence-link,a.wpjm-activate-licence-link:link,a.wpjm-activate-licence-link:hover,a.wpjm-activate-licence-link:visited,a.wpjm-activate-licence-link:active{color:#ff4500}.wpjm-licences{margin-top:10px}.wpjm-licences .licence-row{align-items:center;border:solid 1px #e2e0e2;display:flex;background-color:#fff;flex-wrap:wrap;min-height:82px;margin-bottom:20px;position:relative}.wpjm-licences .plugin-info{font-size:18px;flex-basis:320px;padding:0 20px;margin-right:10px}.wpjm-licences .plugin-info .plugin-author{font-size:12px}.wpjm-licences .plugin-licence{flex:1;flex-basis:40%;padding-bottom:5px}.wpjm-licences .plugin-licence label{white-space:nowrap}.widefat td.column-featured_job,.widefat td.column-filled,.widefat td.column-job_status{width:46px;text-align:left;padding-left:11px}.widefat th.column-featured_job,.widefat th.column-filled,.widefat th.column-job_status{width:1em}.widefat th.column-featured_job span,.widefat th.column-filled span,.widefat th.column-job_status span{display:block;width:1em;height:1em;line-height:1em;padding:1px 0 0 0;overflow:hidden}.widefat th.column-featured_job span::before,.widefat th.column-filled span::before,.widefat th.column-job_status span::before{font-family:job-manager !important;font-style:normal;font-weight:normal;speak:none;display:inline-block;text-decoration:inherit;width:1em;text-align:center;font-variant:normal;text-transform:none;line-height:1em;content:""}.widefat th.column-filled span::before{content:""}.widefat th.column-job_status span::before{content:""}.widefat .column-job_posted strong{display:block;margin-bottom:.2em}.widefat td.column-job_status span{position:relative;font-size:1em;line-height:1.5em;width:1em;height:0;padding:2em 0 0 0;overflow:hidden;display:block}.widefat td.column-job_status span::before{font-family:job-manager !important;font-style:normal;font-weight:normal;speak:none;display:inline-block;text-decoration:inherit;width:1em;text-align:center;font-variant:normal;text-transform:none;line-height:1em;position:absolute;top:0;left:0;line-height:1.5em;vertical-align:middle;color:#999;content:""}.widefat td.column-job_status .status-trash::before{content:"";color:#a00}.widefat td.column-job_status .status-pending::before{content:"";color:#ffba00}.widefat td.column-job_status .status-publish::before{content:"";color:#73a724}.widefat td.column-job_status .status-expired::before{content:"";color:#a00}.widefat .column-job_listing_type{text-align:left;width:6em;word-wrap:normal !important}.widefat .column-job_listing_type .job-type{color:#fff;padding:4px;font-size:11px;border-radius:2px;display:block;background-color:#f08d3c;text-align:center}.widefat .column-job_listing_type .full-time{background-color:#90da36}.widefat .column-job_listing_type .part-time{background-color:#f08d3c}.widefat .column-job_listing_type .temporary{background-color:#d93674}.widefat .column-job_listing_type .freelance{background-color:#39c}.widefat .column-job_listing_type .internship{background-color:#6033cc}.widefat th.column-job_position{width:20%}.widefat td.column-job_position{width:20%;height:34px}.widefat td.column-job_position .job_position{position:relative;padding-right:50px !important}.widefat td.column-job_position a.job_title{font-weight:bold}.widefat td.column-job_position img{width:32px;height:32px;position:absolute;right:7px;top:0;border-radius:50%;box-shadow:0 1px 0 1px rgba(0,0,0,.1);-webkit-box-shadow:0 1px 0 1px rgba(0,0,0,.1);-moz-box-shadow:0 1px 0 1px rgba(0,0,0,.1);border:1px solid #fff}.widefat td.column-job_position .company{margin-top:.2em;display:block;padding-top:2px;color:#bbb}.widefat .column-job_location{width:10%}.widefat .column-job_actions{text-align:right;width:128px}.widefat .column-job_actions strong{display:block;margin-bottom:.2em}.widefat .column-job_actions .actions{padding-top:2px}.widefat .column-job_actions a.button{display:inline-block;margin:0 0 2px 4px;cursor:pointer;padding:0 6px !important;font-size:1em !important;line-height:2em !important;overflow:hidden}.widefat .column-job_actions a.button-icon{width:2em !important;padding:0 !important}.widefat .column-job_actions a.button-icon::before{font-family:job-manager !important;font-style:normal;font-weight:normal;speak:none;display:inline-block;text-decoration:inherit;width:1em;text-align:center;font-variant:normal;text-transform:none;line-height:1em;float:left;width:2em !important;line-height:2em}.widefat .column-job_actions .icon-view::before{content:""}.widefat .column-job_actions .icon-edit::before{content:""}.widefat .column-job_actions .icon-delete::before{content:""}.widefat .column-job_actions .icon-approve::before{content:""}.wp_job_manager_meta_data{zoom:1}.wp_job_manager_meta_data::before,.wp_job_manager_meta_data::after{content:"";display:table}.wp_job_manager_meta_data::after{clear:both}.wp_job_manager_meta_data .form-field{width:50%;line-height:2em;float:left;box-sizing:border-box;padding:0 12px 0 0;margin:0 0 12px;clear:both}.wp_job_manager_meta_data .form-field:nth-child(even){float:right;padding:0 0 0 12px;clear:right}.wp_job_manager_meta_data .form-field:nth-last-child(-n+2){margin-bottom:0;padding-bottom:0;border-bottom:0}.wp_job_manager_meta_data .form-field label{vertical-align:middle;display:block;font-weight:bold;margin:0}.wp_job_manager_meta_data .form-field .tips{cursor:help;float:right;font-weight:normal;color:#999}.wp_job_manager_meta_data .form-field input{width:100%;margin:1px 0;box-sizing:border-box;vertical-align:middle}.wp_job_manager_meta_data .form-field input.checkbox,.wp_job_manager_meta_data .form-field input.radio{width:auto;margin:4px 2px;display:inline-block}.wp_job_manager_meta_data .form-field .description{display:block;color:#999}.wp_job_manager_meta_data .form-field.form-field-checkbox .description{display:inline}.wp_job_manager_meta_data .form-field .file_url{display:flex}.wp_job_manager_meta_data .form-field .file_url input{width:75%}.wp_job_manager_meta_data .form-field .button{margin-left:4px}.wp_job_manager_meta_data .form-field .file_no_url{-webkit-animation:flash .3s linear infinite alternate;animation:flash .3s linear infinite alternate}@-webkit-keyframes flash{from{background-color:unset}to{background-color:#dc3232}}@keyframes flash{from{background-color:unset}to{background-color:#dc3232}}#tiptip_holder{display:none;position:absolute;top:0;left:0;z-index:99999}#tiptip_holder.tip_top{padding-bottom:5px}#tiptip_holder.tip_bottom{padding-top:5px}#tiptip_holder.tip_right{padding-left:5px}#tiptip_holder.tip_left{padding-right:5px}#tiptip_content{font-size:11px;color:#fff;padding:4px 8px;background:#464646;border-radius:3px;-webkit-border-radius:3px;-moz-border-radius:3px;box-shadow:1px 1px 3px rgba(0,0,0,.1);-webkit-box-shadow:1px 1px 3px rgba(0,0,0,.1);-moz-box-shadow:1px 1px 3px rgba(0,0,0,.1);text-align:center}#tiptip_content code{background:#999;padding:1px}#tiptip_arrow,#tiptip_arrow_inner{position:absolute;border-color:transparent;border-style:solid;border-width:6px;height:0;width:0}#tiptip_holder.tip_top #tiptip_arrow_inner{margin-top:-7px;margin-left:-6px;border-top-color:#464646}#tiptip_holder.tip_bottom #tiptip_arrow_inner{margin-top:-5px;margin-left:-6px;border-bottom-color:#464646}#tiptip_holder.tip_right #tiptip_arrow_inner{margin-top:-6px;margin-left:-5px;border-right-color:#464646}#tiptip_holder.tip_left #tiptip_arrow_inner{margin-top:-6px;margin-left:-7px;border-left-color:#464646}.wp_job_manager_add_ons_wrap .products{overflow:hidden}.wp_job_manager_add_ons_wrap .products li{float:left;margin:0 1em 1em 0 !important;padding:0;vertical-align:top;width:350px}.wp_job_manager_add_ons_wrap .products li a{text-decoration:none;color:inherit;border:1px solid #ddd;display:block;min-height:220px;overflow:hidden;background:#f6f6f6;box-shadow:inset 0 1px 0 rgba(255,255,255,.2),inset 0 -1px 0 rgba(0,0,0,.1)}.wp_job_manager_add_ons_wrap .products li img{display:inline-block;width:auto;max-height:60px;max-width:90px;margin:0 5px 0 0;float:left}.wp_job_manager_add_ons_wrap .products li h2{margin:0 !important;padding:20px !important;background:#fff;height:20px;font-size:16px}.wp_job_manager_add_ons_wrap .products li p{padding:20px !important;margin:0 !important;border-top:1px solid #f1f1f1}.wp_job_manager_add_ons_wrap .products li .price{display:none}.rtl .widefat .column-job_actions a.button-icon::before{float:right}.rtl .wp_job_manager_meta_data p{padding:0 20% 0 0}.rtl .wp_job_manager_meta_data label{left:auto;right:0}table.form-table.settings tr{border-bottom:1px solid rgba(0,0,0,.1)}table.form-table.settings tr:last-child,table.form-table.settings tr.no-separator{border-bottom:0}div.setting-enable-expand{border:1px solid rgba(0,0,0,.1);padding:15px 10px}div.setting-enable-expand .sub-settings-expandable{display:none;padding-left:25px}div.setting-enable-expand .sub-settings-expandable.expanded{display:block}tr.email-setting-row td{padding:5px}@media only screen and (max-width: 782px){.wpjm-licences .plugin-info{padding:10px}.wpjm-licences .plugin-licence{padding:10px}.widefat .job_position.column-primary{display:table-cell !important}.widefat .toggle-row::before{top:5px}.widefat .column-job_actions{text-align:left}.widefat .column-job_actions a.button-icon::before{float:left}.rtl .widefat .column-job_actions{text-align:right}.rtl .widefat .column-job_actions a.button-icon::before{float:right}.wp_job_manager_meta_data .form-field{width:100%;padding:0}.wp_job_manager_meta_data .form-field:nth-child(even){float:none;padding:0;margin-bottom:12px;clear:both}.wp_job_manager_meta_data .form-field:nth-last-child(-n+2){float:none;padding:0;margin-bottom:12px;clear:both}}
|
assets/dist/css/frontend.asset.php
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<?php return array('dependencies' => array('wp-polyfill'), 'version' => '3629ee20955ef1bd9ca6f599c30ef40c');
|
assets/dist/css/frontend.css
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
.clearfix{zoom:1}.clearfix::before,.clearfix::after{content:"";display:table}.clearfix::after{clear:both}@font-face{font-family:job-manager;src:url(../font/job-manager-a2d17fff9efb870b3e027dc5516b3ecc.eot);src:url(../font/job-manager-a2d17fff9efb870b3e027dc5516b3ecc.eot#iefix) format("embedded-opentype"),url(../font/job-manager-434425afc81b621e0e02b871e4f5fca1.woff) format("woff"),url(../font/job-manager-7799d387315fbcfa0060adf100cc549d.ttf) format("truetype"),url(../font/job-manager-aa916d5b5333755f80564e47a7f7a89f.svg#job-manager) format("svg");font-weight:normal;font-style:normal}@font-face{font-family:jm-logo;src:url(../font/jm-logo/jm-18758dfe508305ba1682fe8fb3be8c72.eot);src:url(../font/jm-logo/jm-18758dfe508305ba1682fe8fb3be8c72.eot?#iefixycsbky) format("embedded-opentype"),url(../font/jm-logo/jm-67b7d10affac4ffd77eb7874ec25263b.woff) format("woff"),url(../font/jm-logo/jm-97b72719abd94986185dcfeef1203fb9.ttf) format("truetype"),url(../font/jm-logo/jm-04f818ce1471720fb214394b96feb5de.svg#icomoon) format("svg");font-weight:normal;font-style:normal}.jm-icon{font-family:job-manager !important;font-style:normal;font-weight:normal;speak:none;display:inline-block;text-decoration:inherit;width:1em;text-align:center;font-variant:normal;text-transform:none;line-height:1em}.clearfix{zoom:1}.clearfix::before,.clearfix::after{content:"";display:table}.clearfix::after{clear:both}.rp4wp-related-job_listing>ul,ul.job_listings{padding:0;margin:0;border-top:1px solid #eee}.rp4wp-related-job_listing>ul.loading,ul.job_listings.loading{min-height:96px;border-bottom:1px solid #eee;background:url(../images/ajax-loader-ea183bf26ae76dec039869d4bc7060cb.gif) no-repeat center 32px}.rp4wp-related-job_listing>ul li.job_listing,.rp4wp-related-job_listing>ul li.no_job_listings_found,ul.job_listings li.job_listing,ul.job_listings li.no_job_listings_found{list-style:none outside;padding:0;margin:0;border-bottom:1px solid #eee}.rp4wp-related-job_listing>ul li.job_listing.job_position_filled a,.rp4wp-related-job_listing>ul li.no_job_listings_found.job_position_filled a,ul.job_listings li.job_listing.job_position_filled a,ul.job_listings li.no_job_listings_found.job_position_filled a{opacity:.25}.rp4wp-related-job_listing>ul li.job_listing.no_job_listings_found,.rp4wp-related-job_listing>ul li.no_job_listings_found.no_job_listings_found,ul.job_listings li.job_listing.no_job_listings_found,ul.job_listings li.no_job_listings_found.no_job_listings_found{padding:1em;border-bottom:1px solid #eee}.rp4wp-related-job_listing>ul li.job_listing a,.rp4wp-related-job_listing>ul li.no_job_listings_found a,ul.job_listings li.job_listing a,ul.job_listings li.no_job_listings_found a{display:block;padding:1em 1em 1em 2em;border:0;overflow:hidden;zoom:1;position:relative;line-height:1.5em;text-decoration:none}.rp4wp-related-job_listing>ul li.job_listing a:hover,.rp4wp-related-job_listing>ul li.job_listing a:focus,.rp4wp-related-job_listing>ul li.no_job_listings_found a:hover,.rp4wp-related-job_listing>ul li.no_job_listings_found a:focus,ul.job_listings li.job_listing a:hover,ul.job_listings li.job_listing a:focus,ul.job_listings li.no_job_listings_found a:hover,ul.job_listings li.no_job_listings_found a:focus{background-color:#fcfcfc}.rp4wp-related-job_listing>ul li.job_listing a img.company_logo,.rp4wp-related-job_listing>ul li.no_job_listings_found a img.company_logo,ul.job_listings li.job_listing a img.company_logo,ul.job_listings li.no_job_listings_found a img.company_logo{width:42px;height:42px;position:absolute;left:1em;float:left;margin-right:1em;vertical-align:middle;box-shadow:none}.rp4wp-related-job_listing>ul li.job_listing a div.position,.rp4wp-related-job_listing>ul li.job_listing a div.location,.rp4wp-related-job_listing>ul li.job_listing a ul.meta,.rp4wp-related-job_listing>ul li.no_job_listings_found a div.position,.rp4wp-related-job_listing>ul li.no_job_listings_found a div.location,.rp4wp-related-job_listing>ul li.no_job_listings_found a ul.meta,ul.job_listings li.job_listing a div.position,ul.job_listings li.job_listing a div.location,ul.job_listings li.job_listing a ul.meta,ul.job_listings li.no_job_listings_found a div.position,ul.job_listings li.no_job_listings_found a div.location,ul.job_listings li.no_job_listings_found a ul.meta{box-sizing:border-box}.rp4wp-related-job_listing>ul li.job_listing a div.position,.rp4wp-related-job_listing>ul li.no_job_listings_found a div.position,ul.job_listings li.job_listing a div.position,ul.job_listings li.no_job_listings_found a div.position{float:left;width:55%;padding:0 0 0 42px;line-height:1.5em}.rp4wp-related-job_listing>ul li.job_listing a div.position h3,.rp4wp-related-job_listing>ul li.no_job_listings_found a div.position h3,ul.job_listings li.job_listing a div.position h3,ul.job_listings li.no_job_listings_found a div.position h3{margin:0;padding:0;line-height:inherit;font-size:inherit}.rp4wp-related-job_listing>ul li.job_listing a div.position .company,.rp4wp-related-job_listing>ul li.no_job_listings_found a div.position .company,ul.job_listings li.job_listing a div.position .company,ul.job_listings li.no_job_listings_found a div.position .company{color:#999}.rp4wp-related-job_listing>ul li.job_listing a div.position .company .tagline,.rp4wp-related-job_listing>ul li.no_job_listings_found a div.position .company .tagline,ul.job_listings li.job_listing a div.position .company .tagline,ul.job_listings li.no_job_listings_found a div.position .company .tagline{margin-left:.5em}.rp4wp-related-job_listing>ul li.job_listing a div.location,.rp4wp-related-job_listing>ul li.no_job_listings_found a div.location,ul.job_listings li.job_listing a div.location,ul.job_listings li.no_job_listings_found a div.location{float:left;text-align:left;width:25%;padding:0 0 0 1em;color:#999;line-height:1.5em}.rp4wp-related-job_listing>ul li.job_listing a .meta,.rp4wp-related-job_listing>ul li.no_job_listings_found a .meta,ul.job_listings li.job_listing a .meta,ul.job_listings li.no_job_listings_found a .meta{float:right;text-align:right;width:20%;padding:0 0 0 1em;margin:0;line-height:1.5em;color:#999;list-style:none outside}.rp4wp-related-job_listing>ul li.job_listing a .meta li,.rp4wp-related-job_listing>ul li.no_job_listings_found a .meta li,ul.job_listings li.job_listing a .meta li,ul.job_listings li.no_job_listings_found a .meta li{list-style:none outside;display:block;margin:0}.rp4wp-related-job_listing>ul li.job_listing a .meta .job-type,.rp4wp-related-job_listing>ul li.no_job_listings_found a .meta .job-type,ul.job_listings li.job_listing a .meta .job-type,ul.job_listings li.no_job_listings_found a .meta .job-type{font-weight:bold}.rp4wp-related-job_listing>ul li.job_listing.job_position_featured a,.rp4wp-related-job_listing>ul li.no_job_listings_found.job_position_featured a,ul.job_listings li.job_listing.job_position_featured a,ul.job_listings li.no_job_listings_found.job_position_featured a{background:#fefee5}.rp4wp-related-job_listing>ul li.job_listing.job_position_featured a:hover,.rp4wp-related-job_listing>ul li.job_listing.job_position_featured a:focus,.rp4wp-related-job_listing>ul li.no_job_listings_found.job_position_featured a:hover,.rp4wp-related-job_listing>ul li.no_job_listings_found.job_position_featured a:focus,ul.job_listings li.job_listing.job_position_featured a:hover,ul.job_listings li.job_listing.job_position_featured a:focus,ul.job_listings li.no_job_listings_found.job_position_featured a:hover,ul.job_listings li.no_job_listings_found.job_position_featured a:focus{background-color:#fefed8}.widget ul.job_listings li.job_listing a{padding:1em 0}.widget ul.job_listings li.job_listing .image{float:left}.widget ul.job_listings li.job_listing .image img{left:0;position:relative}.widget ul.job_listings li.job_listing .content{overflow:hidden}.widget ul.job_listings li.job_listing .position{float:none;width:auto;padding:0}.widget ul.job_listings li.job_listing ul.meta{float:none;width:auto;padding:0;margin:0;text-align:left}.widget ul.job_listings li.job_listing ul.meta li{float:none;display:inline;padding:0;margin:0 .5em 0 0;font-weight:normal}.widget ul.job_listings li.job_listing ul.meta li::after{padding:0 0 0 .5em;content:"‣"}.widget ul.job_listings li.job_listing ul.meta li:last-child::after{content:""}.job-manager .job-type,.job_listing .job-type,.job-types .job-type{color:#f08d3c}.job-manager .full-time,.job_listing .full-time,.job-types .full-time{color:#90da36}.job-manager .part-time,.job_listing .part-time,.job-types .part-time{color:#f08d3c}.job-manager .temporary,.job_listing .temporary,.job-types .temporary{color:#d93674}.job-manager .freelance,.job_listing .freelance,.job-types .freelance{color:#39c}.job-manager .internship,.job_listing .internship,.job-types .internship{color:#6033cc}@media only screen and (max-width: 767px){ul.job_listings li.job_listing a,ul.job_listings li.no_job_listings_found a{padding:1em}ul.job_listings li.job_listing a img.company_logo,ul.job_listings li.no_job_listings_found a img.company_logo{visibility:hidden}ul.job_listings li.job_listing a div.position,ul.job_listings li.no_job_listings_found a div.position{float:left;width:60%;padding:0}ul.job_listings li.job_listing a div.location,ul.job_listings li.no_job_listings_found a div.location{float:right;width:40%;line-height:2em;font-size:.75em;padding:0 0 0 1em;text-align:right}ul.job_listings li.job_listing a .meta,ul.job_listings li.no_job_listings_found a .meta{float:right;width:40%;line-height:2em;font-size:.75em}ul.job_listings li.job_listing a .meta li,ul.job_listings li.no_job_listings_found a .meta li{font-size:1em}}.twenty-eleven ul.job_listings li.job_listing,.twenty-eleven ul.job_listings li.no_job_listings_found{padding:0 !important}.display-icon{display:inline-block;width:16px;height:16px;-webkit-font-smoothing:antialiased;font-size:16px;font-family:"job-manager" !important;text-decoration:none;font-weight:normal;font-style:normal;vertical-align:top;font-size:16px;margin:0 2px 0 0;*overflow:auto;*zoom:1;*display:inline}.job-manager-message,.job-manager-error,.job-manager-info{padding:1em 2em 1em 3.5em !important;margin:0 0 2em !important;position:relative;background-color:#fff;color:#666;border-top:3px solid #999;list-style:none outside !important;width:auto;zoom:1;box-shadow:0 1px 1px rgba(0,0,0,.2)}.job-manager-message::before,.job-manager-message::after,.job-manager-error::before,.job-manager-error::after,.job-manager-info::before,.job-manager-info::after{content:"";display:table}.job-manager-message::after,.job-manager-error::after,.job-manager-info::after{clear:both}.job-manager-message::before,.job-manager-error::before,.job-manager-info::before{content:"";font-family:sans-serif;display:inline-block;position:absolute;top:1em;left:1.5em}.job-manager-message li,.job-manager-error li,.job-manager-info li{list-style:none outside !important;padding-left:0 !important;margin-left:0 !important}.job-manager-message.job-manager-message,.job-manager-error.job-manager-message,.job-manager-info.job-manager-message{border-top-color:#8fae1b}.job-manager-message.job-manager-message::before,.job-manager-error.job-manager-message::before,.job-manager-info.job-manager-message::before{color:#8fae1b;content:"✓"}.job-manager-message.job-manager-info,.job-manager-error.job-manager-info,.job-manager-info.job-manager-info{border-top-color:#1e85be}.job-manager-message.job-manager-info::before,.job-manager-error.job-manager-info::before,.job-manager-info.job-manager-info::before{color:#1e85be;content:"i";font-family:Times,Georgia,serif;font-style:italic}.job-manager-message.job-manager-error,.job-manager-error.job-manager-error,.job-manager-info.job-manager-error{border-top-color:#b81c23}.job-manager-message.job-manager-error::before,.job-manager-error.job-manager-error::before,.job-manager-info.job-manager-error::before{color:#b81c23;content:"×";font-weight:700}.job-manager-form fieldset{margin:0 0 1em 0;padding:0 0 1em 0;line-height:2em;border:0;border-bottom:1px solid #eee;zoom:1}.job-manager-form fieldset::before,.job-manager-form fieldset::after{content:"";display:table}.job-manager-form fieldset::after{clear:both}.job-manager-form fieldset label{display:block;margin:0;width:29%;float:left;vertical-align:middle}.job-manager-form fieldset label small{opacity:.75;font-size:.83em}.job-manager-form fieldset div.field{width:70%;float:right;vertical-align:middle}.job-manager-form fieldset .wp-editor-container{border:1px solid #ccc;border-radius:3px}.job-manager-form fieldset .account-sign-in .button{margin-right:.5em}.job-manager-form fieldset .account-sign-in .button::before{display:inline-block;width:16px;height:16px;-webkit-font-smoothing:antialiased;font-size:16px;font-family:"job-manager" !important;text-decoration:none;font-weight:normal;font-style:normal;vertical-align:top;font-size:16px;margin:0 2px 0 0;*overflow:auto;*zoom:1;*display:inline;content:""}.job-manager-form fieldset abbr.required{color:red;font-weight:bold;border:0}.job-manager-form fieldset input.input-text,.job-manager-form fieldset input.input-date,.job-manager-form fieldset textarea,.job-manager-form fieldset select{margin:0;vertical-align:middle;width:100%;box-sizing:border-box}.job-manager-form fieldset small.description{opacity:.75;font-size:.83em;margin:1.2em 0 0 0;display:block;line-height:1.2em}.job-manager-form fieldset .job-manager-uploaded-files{display:table}.job-manager-form fieldset .job-manager-uploaded-files .job-manager-uploaded-file{line-height:2em;font-style:italic;margin-bottom:1em;display:block}.job-manager-form fieldset .job-manager-uploaded-files .job-manager-uploaded-file .job-manager-uploaded-file-preview img{height:64px;margin:0;vertical-align:top}.job-manager-form fieldset .job-manager-uploaded-files .job-manager-uploaded-file .job-manager-uploaded-file-preview a{line-height:64px;display:inline-block;padding:0 0 0 1em}.job-manager-form fieldset .job-manager-uploaded-files .job-manager-uploaded-file .job-manager-uploaded-file-name{display:block}.job-manager-form .submit-job{padding:1em 0}.job-manager-form .job-manager-term-checklist{list-style:none outside;max-height:200px;overflow:auto;margin:0}.job-manager-form .job-manager-term-checklist li{list-style:none outside;margin:0;display:block;float:none}.job-manager-form .job-manager-term-checklist li label{width:auto;float:none}.job-manager-form .job-manager-term-checklist li li{margin:0 0 0 2em}.job-manager-form input[type=submit]:disabled,.job-manager-form input[type=submit].disabled{opacity:.5;filter:alpha(opacity=50);cursor:not-allowed}.job-manager-form .spinner{background-repeat:no-repeat;background-size:20px 20px;display:inline-block;visibility:hidden;width:20px;height:20px;margin:0;vertical-align:middle}.job-manager-form .spinner.is-active{visibility:visible}div.job_listings{margin-bottom:1em}div.job_listings ul.job_listings{margin:0}.single_job_listing .company{position:relative;border:1px solid #eee;padding:1em;margin:0 0 2em;display:block;clear:both;min-height:3em;box-shadow:0 1px 1px rgba(0,0,0,.1);box-sizing:content-box}.single_job_listing .company img{width:3em;height:3em;position:absolute;left:1em;float:left;vertical-align:middle;box-shadow:none}.single_job_listing .company .name{margin:0 0 0 3em;padding:0 0 0 1em;line-height:1.5em}.single_job_listing .company .name a{float:right;margin-left:1em}.single_job_listing .company .tagline{display:block;margin:0 0 0 3em;padding:0 0 0 1em;line-height:1.5em;font-style:italic;color:#999}.single_job_listing .company .website::before{display:inline-block;width:16px;height:16px;-webkit-font-smoothing:antialiased;font-size:16px;font-family:"job-manager" !important;text-decoration:none;font-weight:normal;font-style:normal;vertical-align:top;font-size:16px;margin:0 2px 0 0;*overflow:auto;*zoom:1;*display:inline;content:""}.single_job_listing .company .company_twitter::before{display:inline-block;width:16px;height:16px;-webkit-font-smoothing:antialiased;font-size:16px;font-family:"job-manager" !important;text-decoration:none;font-weight:normal;font-style:normal;vertical-align:top;font-size:16px;margin:0 2px 0 0;*overflow:auto;*zoom:1;*display:inline;content:""}.single_job_listing .company .company_video{border-top:1px solid #eee;padding:1em 0 0;margin:1em 0 0 0;position:relative;padding-bottom:56.25%;padding-top:30px;height:0;overflow:hidden}.single_job_listing .company .company_video iframe,.single_job_listing .company .company_video object,.single_job_listing .company .company_video embed{position:absolute;top:0;left:0;width:100%;height:100%;margin:0;display:block}.single_job_listing .meta{list-style:none outside;padding:0;margin:0 0 1.5em;overflow:hidden;zoom:1;clear:both}.single_job_listing .meta li{margin:0 1em 0 0;padding:.5em;float:left;line-height:1em;color:#999}.single_job_listing .meta .job-type{color:#fff;background-color:#f08d3c}.single_job_listing .meta .full-time{background-color:#90da36}.single_job_listing .meta .part-time{background-color:#f08d3c}.single_job_listing .meta .temporary{background-color:#d93674}.single_job_listing .meta .freelance{background-color:#39c}.single_job_listing .meta .internship{background-color:#6033cc}.single_job_listing .meta .position-filled,.single_job_listing .meta .listing-expired{color:#b81c23}.single_job_listing .meta .location::before{display:inline-block;width:16px;height:16px;-webkit-font-smoothing:antialiased;font-size:16px;font-family:"job-manager" !important;text-decoration:none;font-weight:normal;font-style:normal;vertical-align:top;font-size:16px;margin:0 2px 0 0;*overflow:auto;*zoom:1;*display:inline;content:""}.single_job_listing .meta .date-posted::before{display:inline-block;width:16px;height:16px;-webkit-font-smoothing:antialiased;font-size:16px;font-family:"job-manager" !important;text-decoration:none;font-weight:normal;font-style:normal;vertical-align:top;font-size:16px;margin:0 2px 0 0;*overflow:auto;*zoom:1;*display:inline;content:""}.single_job_listing .meta .position-filled::before,.single_job_listing .meta .listing-expired::before{display:inline-block;width:16px;height:16px;-webkit-font-smoothing:antialiased;font-size:16px;font-family:"job-manager" !important;text-decoration:none;font-weight:normal;font-style:normal;vertical-align:top;font-size:16px;margin:0 2px 0 0;*overflow:auto;*zoom:1;*display:inline;content:""}.single_job_listing .job_description{margin:0 0 1.5em}.job-manager-application-wrapper{clear:both;border:1px solid #eee;padding:.75em 1em 0;margin:1em 0;line-height:1.5em;display:block;position:relative;box-shadow:0 1px 1px rgba(0,0,0,.1)}.single_job_listing .application,.job-manager-application-wrapper .application{padding:0;margin:0 0 1em;overflow:hidden}.single_job_listing .application .application_button,.single_job_listing .application .application_details,.job-manager-application-wrapper .application .application_button,.job-manager-application-wrapper .application .application_details{box-sizing:border-box}.single_job_listing .application .application_button,.job-manager-application-wrapper .application .application_button{text-align:center;font-size:1.1em;line-height:1em;display:inline-block;margin:0 .5em 0 0;padding:1/1.1em 2em;outline:0}.single_job_listing .application .application_details,.job-manager-application-wrapper .application .application_details{clear:both;border:1px solid #eee;padding:.75em 1em 0;margin:1em 0;line-height:1.5em;display:block;position:relative;box-shadow:0 1px 1px rgba(0,0,0,.1)}.single_job_listing .application .application_details p,.job-manager-application-wrapper .application .application_details p{margin:0 0 .75em}.single_job_listing .application .application_details::before,.job-manager-application-wrapper .application .application_details::before{content:"";position:absolute;margin:-10px 0 0 0;top:0;left:5em;width:0;height:0;border-left:10px solid transparent;border-right:10px solid transparent;border-bottom:10px solid #eee}.single_job_listing .application .application_details::after,.job-manager-application-wrapper .application .application_details::after{content:"";position:absolute;margin:-9px 0 0 1px;left:5em;top:0;width:0;height:0;border-left:9px solid transparent;border-right:9px solid transparent;border-bottom:9px solid #fff}.job_filters{background:#eee;zoom:1}.job_filters::before,.job_filters::after{content:"";display:table}.job_filters::after{clear:both}.job_filters .search_jobs{padding:1em;zoom:1}.job_filters .search_jobs::before,.job_filters .search_jobs::after{content:"";display:table}.job_filters .search_jobs::after{clear:both}.job_filters .search_jobs div{box-sizing:border-box}.job_filters .search_jobs div label{display:none}.job_filters .search_jobs div.search_keywords,.job_filters .search_jobs div.filter_first{float:left;padding-right:.5em;width:50%}.job_filters .search_jobs div.search_location,.job_filters .search_jobs div.filter_last{float:right;padding-left:.5em;width:50%}.job_filters .search_jobs div.search_categories,.job_filters .search_jobs div.filter_wide{padding-top:.5em;clear:both;width:100%}.job_filters .search_jobs div.search_submit{padding-top:.5em}.job_filters .search_jobs div .showing_jobs a{padding:.25em}.job_filters .search_jobs div .showing_jobs a.active{background:#ddd;text-decoration:none}.job_filters .search_jobs input,.job_filters .search_jobs select{box-sizing:border-box;width:100%}.job_filters .job_types{list-style:none outside;margin:0;padding:0;font-size:.83em;background:#f9f9f9;border-top:1px solid #e5e5e5;zoom:1}.job_filters .job_types::before,.job_filters .job_types::after{content:"";display:table}.job_filters .job_types::after{clear:both}.job_filters .job_types li{margin:0;padding:.5em 1em;float:left;border-right:1px solid #eee}.job_filters .job_types li:last-child{border-right:0}.job_filters .showing_jobs{padding:.5em 1em;display:none;font-size:.83em;background:#f9f9f9;border-top:1px solid #e5e5e5}.job_filters .showing_jobs a{float:right;padding-left:10px;border:0}div.job_listings .job-manager-pagination{text-align:center;display:block;padding:1em 0 1em 0;border-bottom:1px solid #eee;line-height:1}div.job_listings .load_previous{border-top:1px solid #eee}div.job_listings .load_more_jobs+ul.job_listings{border-top:0}div.job_listings .load_more_jobs{text-align:center;display:block;padding:1em 1em 1em 2em;border-bottom:1px solid #eee;font-weight:bold}div.job_listings .load_more_jobs.loading{background:url(../images/ajax-loader-ea183bf26ae76dec039869d4bc7060cb.gif) no-repeat center}div.job_listings .load_more_jobs.loading strong{visibility:hidden}div.job_listings .load_more_jobs:hover,div.job_listings .load_more_jobs:focus{background-color:#fcfcfc;border-bottom:1px solid #eee}.job_listing_preview{padding:0 1em 1em;border:5px solid #eee}.single-job_listing .entry-header .attachment-post-thumbnail,.single-job_listing .job_listing.has-post-thumbnail .post-thumbnail{display:none}.job_listing_preview_title,.entry-content .job_listing_preview_title{padding:.5em 1em;vertical-align:middle;position:relative;background:#eee}.job_listing_preview_title h2,.entry-content .job_listing_preview_title h2{margin:0;clear:none}.job_listing_preview_title .button,.entry-content .job_listing_preview_title .button{float:right;margin-left:.25em}.job_summary_shortcode{border:1px solid #ccc;border-radius:4px;text-align:center;position:relative;box-shadow:0 2px 4px rgba(0,0,0,.1),inset 0 1px 0 rgba(255,255,255,.4);box-sizing:border-box}.job_summary_shortcode.aligncenter{display:block;margin:2em auto 2em}.job_summary_shortcode.alignleft{float:left;margin:0 2em 2em 0}.job_summary_shortcode.alignright{float:right;margin:0 0 2em 2em}.job_summary_shortcode a{text-decoration:none;color:inherit}.job_summary_shortcode img{margin:0;padding:0;display:block;width:100%;-moz-border-radius:0;-webkit-border-radius:0;-moz-border-top-left-radius:3px;-moz-border-top-right-radius:3px;-webkit-border-top-left-radius:3px;-webkit-border-top-right-radius:3px;border-radius:0;border-top-left-radius:3px;border-top-right-radius:3px;box-shadow:inset 0 1px 0 rgba(255,255,255,.4)}.job_summary_shortcode .job_summary_content{padding:0 1em}.job_summary_shortcode .meta{font-style:italic;color:#777}.job_summary_shortcode .job-type{border-radius:1em;color:#fff;text-shadow:0 1px 0 rgba(255,255,255,.5);box-shadow:0 2px 4px rgba(0,0,0,.1),inset 0 1px 0 rgba(255,255,255,.4);position:absolute;top:0;right:0;padding:.5em;height:1em;width:auto;min-width:1em;font-size:1em;text-align:center;vertical-align:middle;line-height:1em;margin:-0.5em -0.5em 0 0}.job_summary_shortcode .job-type.full-time{background-color:#90da36}.job_summary_shortcode .job-type.part-time{background-color:#f08d3c}.job_summary_shortcode .job-type.temporary{background-color:#d93674}.job_summary_shortcode .job-type.freelance{background-color:#39c}.job_summary_shortcode .job-type.internship{background-color:#6033cc}#job-manager-job-dashboard .account-sign-in .button{margin-right:.5em}#job-manager-job-dashboard .account-sign-in .button::before{display:inline-block;width:16px;height:16px;-webkit-font-smoothing:antialiased;font-size:16px;font-family:"job-manager" !important;text-decoration:none;font-weight:normal;font-style:normal;vertical-align:top;font-size:16px;margin:0 2px 0 0;*overflow:auto;*zoom:1;*display:inline;content:""}#job-manager-job-dashboard table ul.job-dashboard-actions{margin:0;padding:0;visibility:hidden;font-size:.92em}#job-manager-job-dashboard table ul.job-dashboard-actions li{float:none;display:inline;padding:0;margin:0 .5em 0 0;font-weight:normal;list-style:none outside}#job-manager-job-dashboard table ul.job-dashboard-actions li::after{padding:0 0 0 .5em;content:"‣"}#job-manager-job-dashboard table ul.job-dashboard-actions li:last-child::after{content:""}#job-manager-job-dashboard table ul.job-dashboard-actions li .job-dashboard-action-delete{color:red}#job-manager-job-dashboard table tr:hover ul.job-dashboard-actions,#job-manager-job-dashboard table tr:focus ul.job-dashboard-actions{visibility:visible}#job-manager-job-dashboard table td,#job-manager-job-dashboard table th{padding:.5em 1em .5em 0}#job-manager-job-dashboard table .job_title small{color:#999}#job-manager-job-dashboard table .featured-job-icon::before{font-family:job-manager !important;font-style:normal;font-weight:normal;speak:none;display:inline-block;text-decoration:inherit;width:1em;text-align:center;font-variant:normal;text-transform:none;line-height:1em;content:""}#job-manager-job-dashboard table .filled,#job-manager-job-dashboard table .expires,#job-manager-job-dashboard table .applications{text-align:center}nav.job-manager-pagination,#content nav.job-manager-pagination{text-align:center}nav.job-manager-pagination ul,#content nav.job-manager-pagination ul{display:inline-block;white-space:nowrap;padding:0;clear:both;border-left:1px solid #eee;margin:1px}nav.job-manager-pagination ul li,#content nav.job-manager-pagination ul li{border-right:1px solid #eee;border-top:1px solid #eee;border-bottom:1px solid #eee;padding:0;margin:0;float:left;display:inline;overflow:hidden}nav.job-manager-pagination ul li a,nav.job-manager-pagination ul li span,#content nav.job-manager-pagination ul li a,#content nav.job-manager-pagination ul li span{margin:0;text-decoration:none;padding:0;line-height:1em;font-size:1em;font-weight:normal;padding:.5em;min-width:1em;display:block;border:0}nav.job-manager-pagination ul li span.current,nav.job-manager-pagination ul li a:hover,nav.job-manager-pagination ul li a:focus,#content nav.job-manager-pagination ul li span.current,#content nav.job-manager-pagination ul li a:hover,#content nav.job-manager-pagination ul li a:focus{background:#eee;color:#888}.chosen-container{width:100% !important}.twenty-ten .job_types,.twenty-ten .chosen-choices{margin:0 !important}.rtl .job-manager-form label{float:right}.rtl .job-manager-form div.field{float:left}.rtl .job_listing_preview_title .button,.rtl .entry-content .job_listing_preview_title .button{float:left}.rtl .single_job_listing .meta li{float:right;margin:0 0 0 1em}
|
assets/dist/css/job-listings.asset.php
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<?php return array('dependencies' => array('wp-polyfill'), 'version' => 'd866e43503c5e047c6b0be0a9557cf8e');
|
assets/dist/css/job-listings.css
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
.clearfix{zoom:1}.clearfix::before,.clearfix::after{content:"";display:table}.clearfix::after{clear:both}.rp4wp-related-job_listing>ul,ul.job_listings{padding:0;margin:0;border-top:1px solid #eee}.rp4wp-related-job_listing>ul.loading,ul.job_listings.loading{min-height:96px;border-bottom:1px solid #eee;background:url(../images/ajax-loader-ea183bf26ae76dec039869d4bc7060cb.gif) no-repeat center 32px}.rp4wp-related-job_listing>ul li.job_listing,.rp4wp-related-job_listing>ul li.no_job_listings_found,ul.job_listings li.job_listing,ul.job_listings li.no_job_listings_found{list-style:none outside;padding:0;margin:0;border-bottom:1px solid #eee}.rp4wp-related-job_listing>ul li.job_listing.job_position_filled a,.rp4wp-related-job_listing>ul li.no_job_listings_found.job_position_filled a,ul.job_listings li.job_listing.job_position_filled a,ul.job_listings li.no_job_listings_found.job_position_filled a{opacity:.25}.rp4wp-related-job_listing>ul li.job_listing.no_job_listings_found,.rp4wp-related-job_listing>ul li.no_job_listings_found.no_job_listings_found,ul.job_listings li.job_listing.no_job_listings_found,ul.job_listings li.no_job_listings_found.no_job_listings_found{padding:1em;border-bottom:1px solid #eee}.rp4wp-related-job_listing>ul li.job_listing a,.rp4wp-related-job_listing>ul li.no_job_listings_found a,ul.job_listings li.job_listing a,ul.job_listings li.no_job_listings_found a{display:block;padding:1em 1em 1em 2em;border:0;overflow:hidden;zoom:1;position:relative;line-height:1.5em;text-decoration:none}.rp4wp-related-job_listing>ul li.job_listing a:hover,.rp4wp-related-job_listing>ul li.job_listing a:focus,.rp4wp-related-job_listing>ul li.no_job_listings_found a:hover,.rp4wp-related-job_listing>ul li.no_job_listings_found a:focus,ul.job_listings li.job_listing a:hover,ul.job_listings li.job_listing a:focus,ul.job_listings li.no_job_listings_found a:hover,ul.job_listings li.no_job_listings_found a:focus{background-color:#fcfcfc}.rp4wp-related-job_listing>ul li.job_listing a img.company_logo,.rp4wp-related-job_listing>ul li.no_job_listings_found a img.company_logo,ul.job_listings li.job_listing a img.company_logo,ul.job_listings li.no_job_listings_found a img.company_logo{width:42px;height:42px;position:absolute;left:1em;float:left;margin-right:1em;vertical-align:middle;box-shadow:none}.rp4wp-related-job_listing>ul li.job_listing a div.position,.rp4wp-related-job_listing>ul li.job_listing a div.location,.rp4wp-related-job_listing>ul li.job_listing a ul.meta,.rp4wp-related-job_listing>ul li.no_job_listings_found a div.position,.rp4wp-related-job_listing>ul li.no_job_listings_found a div.location,.rp4wp-related-job_listing>ul li.no_job_listings_found a ul.meta,ul.job_listings li.job_listing a div.position,ul.job_listings li.job_listing a div.location,ul.job_listings li.job_listing a ul.meta,ul.job_listings li.no_job_listings_found a div.position,ul.job_listings li.no_job_listings_found a div.location,ul.job_listings li.no_job_listings_found a ul.meta{box-sizing:border-box}.rp4wp-related-job_listing>ul li.job_listing a div.position,.rp4wp-related-job_listing>ul li.no_job_listings_found a div.position,ul.job_listings li.job_listing a div.position,ul.job_listings li.no_job_listings_found a div.position{float:left;width:55%;padding:0 0 0 42px;line-height:1.5em}.rp4wp-related-job_listing>ul li.job_listing a div.position h3,.rp4wp-related-job_listing>ul li.no_job_listings_found a div.position h3,ul.job_listings li.job_listing a div.position h3,ul.job_listings li.no_job_listings_found a div.position h3{margin:0;padding:0;line-height:inherit;font-size:inherit}.rp4wp-related-job_listing>ul li.job_listing a div.position .company,.rp4wp-related-job_listing>ul li.no_job_listings_found a div.position .company,ul.job_listings li.job_listing a div.position .company,ul.job_listings li.no_job_listings_found a div.position .company{color:#999}.rp4wp-related-job_listing>ul li.job_listing a div.position .company .tagline,.rp4wp-related-job_listing>ul li.no_job_listings_found a div.position .company .tagline,ul.job_listings li.job_listing a div.position .company .tagline,ul.job_listings li.no_job_listings_found a div.position .company .tagline{margin-left:.5em}.rp4wp-related-job_listing>ul li.job_listing a div.location,.rp4wp-related-job_listing>ul li.no_job_listings_found a div.location,ul.job_listings li.job_listing a div.location,ul.job_listings li.no_job_listings_found a div.location{float:left;text-align:left;width:25%;padding:0 0 0 1em;color:#999;line-height:1.5em}.rp4wp-related-job_listing>ul li.job_listing a .meta,.rp4wp-related-job_listing>ul li.no_job_listings_found a .meta,ul.job_listings li.job_listing a .meta,ul.job_listings li.no_job_listings_found a .meta{float:right;text-align:right;width:20%;padding:0 0 0 1em;margin:0;line-height:1.5em;color:#999;list-style:none outside}.rp4wp-related-job_listing>ul li.job_listing a .meta li,.rp4wp-related-job_listing>ul li.no_job_listings_found a .meta li,ul.job_listings li.job_listing a .meta li,ul.job_listings li.no_job_listings_found a .meta li{list-style:none outside;display:block;margin:0}.rp4wp-related-job_listing>ul li.job_listing a .meta .job-type,.rp4wp-related-job_listing>ul li.no_job_listings_found a .meta .job-type,ul.job_listings li.job_listing a .meta .job-type,ul.job_listings li.no_job_listings_found a .meta .job-type{font-weight:bold}.rp4wp-related-job_listing>ul li.job_listing.job_position_featured a,.rp4wp-related-job_listing>ul li.no_job_listings_found.job_position_featured a,ul.job_listings li.job_listing.job_position_featured a,ul.job_listings li.no_job_listings_found.job_position_featured a{background:#fefee5}.rp4wp-related-job_listing>ul li.job_listing.job_position_featured a:hover,.rp4wp-related-job_listing>ul li.job_listing.job_position_featured a:focus,.rp4wp-related-job_listing>ul li.no_job_listings_found.job_position_featured a:hover,.rp4wp-related-job_listing>ul li.no_job_listings_found.job_position_featured a:focus,ul.job_listings li.job_listing.job_position_featured a:hover,ul.job_listings li.job_listing.job_position_featured a:focus,ul.job_listings li.no_job_listings_found.job_position_featured a:hover,ul.job_listings li.no_job_listings_found.job_position_featured a:focus{background-color:#fefed8}.widget ul.job_listings li.job_listing a{padding:1em 0}.widget ul.job_listings li.job_listing .image{float:left}.widget ul.job_listings li.job_listing .image img{left:0;position:relative}.widget ul.job_listings li.job_listing .content{overflow:hidden}.widget ul.job_listings li.job_listing .position{float:none;width:auto;padding:0}.widget ul.job_listings li.job_listing ul.meta{float:none;width:auto;padding:0;margin:0;text-align:left}.widget ul.job_listings li.job_listing ul.meta li{float:none;display:inline;padding:0;margin:0 .5em 0 0;font-weight:normal}.widget ul.job_listings li.job_listing ul.meta li::after{padding:0 0 0 .5em;content:"‣"}.widget ul.job_listings li.job_listing ul.meta li:last-child::after{content:""}.job-manager .job-type,.job_listing .job-type,.job-types .job-type{color:#f08d3c}.job-manager .full-time,.job_listing .full-time,.job-types .full-time{color:#90da36}.job-manager .part-time,.job_listing .part-time,.job-types .part-time{color:#f08d3c}.job-manager .temporary,.job_listing .temporary,.job-types .temporary{color:#d93674}.job-manager .freelance,.job_listing .freelance,.job-types .freelance{color:#39c}.job-manager .internship,.job_listing .internship,.job-types .internship{color:#6033cc}@media only screen and (max-width: 767px){ul.job_listings li.job_listing a,ul.job_listings li.no_job_listings_found a{padding:1em}ul.job_listings li.job_listing a img.company_logo,ul.job_listings li.no_job_listings_found a img.company_logo{visibility:hidden}ul.job_listings li.job_listing a div.position,ul.job_listings li.no_job_listings_found a div.position{float:left;width:60%;padding:0}ul.job_listings li.job_listing a div.location,ul.job_listings li.no_job_listings_found a div.location{float:right;width:40%;line-height:2em;font-size:.75em;padding:0 0 0 1em;text-align:right}ul.job_listings li.job_listing a .meta,ul.job_listings li.no_job_listings_found a .meta{float:right;width:40%;line-height:2em;font-size:.75em}ul.job_listings li.job_listing a .meta li,ul.job_listings li.no_job_listings_found a .meta li{font-size:1em}}.twenty-eleven ul.job_listings li.job_listing,.twenty-eleven ul.job_listings li.no_job_listings_found{padding:0 !important}
|
assets/dist/css/job-submission.asset.php
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<?php return array('dependencies' => array('wp-polyfill'), 'version' => '60c85eee7e42eb3608a13070c3302bae');
|
assets/dist/css/job-submission.css
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
#wp-link #search-panel,#wp-link #wplink-link-existing-content{display:none}div#wp-link-wrap.wp-core-ui{height:300px}.wplink-autocomplete.ui-autocomplete{display:none;visibility:hidden}
|
assets/dist/css/menu.asset.php
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<?php return array('dependencies' => array('wp-polyfill'), 'version' => 'd04f2bc17d427dc65026bdaf51e6792c');
|
assets/dist/css/menu.css
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
@font-face{font-family:job-manager;src:url(../font/job-manager-a2d17fff9efb870b3e027dc5516b3ecc.eot);src:url(../font/job-manager-a2d17fff9efb870b3e027dc5516b3ecc.eot#iefix) format("embedded-opentype"),url(../font/job-manager-434425afc81b621e0e02b871e4f5fca1.woff) format("woff"),url(../font/job-manager-7799d387315fbcfa0060adf100cc549d.ttf) format("truetype"),url(../font/job-manager-aa916d5b5333755f80564e47a7f7a89f.svg#job-manager) format("svg");font-weight:normal;font-style:normal}@font-face{font-family:jm-logo;src:url(../font/jm-logo/jm-18758dfe508305ba1682fe8fb3be8c72.eot);src:url(../font/jm-logo/jm-18758dfe508305ba1682fe8fb3be8c72.eot?#iefixycsbky) format("embedded-opentype"),url(../font/jm-logo/jm-67b7d10affac4ffd77eb7874ec25263b.woff) format("woff"),url(../font/jm-logo/jm-97b72719abd94986185dcfeef1203fb9.ttf) format("truetype"),url(../font/jm-logo/jm-04f818ce1471720fb214394b96feb5de.svg#icomoon) format("svg");font-weight:normal;font-style:normal}.jm-icon{font-family:job-manager !important;font-style:normal;font-weight:normal;speak:none;display:inline-block;text-decoration:inherit;width:1em;text-align:center;font-variant:normal;text-transform:none;line-height:1em}#adminmenu #menu-posts-job_listing .wp-menu-image::before{font-family:job-manager !important;font-style:normal;font-weight:normal;speak:none;display:inline-block;text-decoration:inherit;width:1em;text-align:center;font-variant:normal;text-transform:none;line-height:1em;content:""}#adminmenu #menu-posts-resume .wp-menu-image::before{font-family:job-manager !important;font-style:normal;font-weight:normal;speak:none;display:inline-block;text-decoration:inherit;width:1em;text-align:center;font-variant:normal;text-transform:none;line-height:1em;content:""}
|
assets/dist/css/setup.asset.php
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<?php return array('dependencies' => array('wp-polyfill'), 'version' => 'a9d3d910745b0f8fb375a26eea5a6e0a');
|
assets/dist/css/setup.css
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
.help-page-link{cursor:help}.wp-job-manager-setup-steps{margin:1em 0 2em;overflow:hidden}.wp-job-manager-setup-steps li{width:33.3%;padding:7px 1em;font-weight:bold;margin:0;color:#eee;background:#222;float:left;box-sizing:border-box}.wp-job-manager-setup-steps li:first-child{margin-left:0}.wp-job-manager-setup-steps li.wp-job-manager-setup-active-step{background:#0074a2;color:#eee}.wp-job-manager-shortcodes td,.wp-job-manager-shortcodes th{vertical-align:middle}.wp-job-manager-shortcodes td p,.wp-job-manager-shortcodes th p{margin:9px 0}.wp-job-manager-shortcodes tr:nth-child(even) td,.wp-job-manager-shortcodes tr:nth-child(even) th{background:#f9f9f9}.wp-job-manager-next-steps{font-size:1.1em;list-style:disc inside;margin:1.5em 2em}.wp-job-manager-support-the-plugin{background:#fff;padding:2em;margin:2em 0}.wp-job-manager-support-the-plugin h3{margin-top:0}.wp-job-manager-support-the-plugin ul{margin-bottom:0}.wp-job-manager-support-the-plugin li{line-height:2em;font-size:1.1em}.wp-job-manager-support-the-plugin li a{text-decoration:none}.wp-job-manager-support-the-plugin li a::before{font-family:"dashicons";font-size:2em;vertical-align:middle;padding-right:.25em}.wp-job-manager-support-the-plugin li.icon-review a::before{content:""}.wp-job-manager-support-the-plugin li.icon-localization a::before{content:""}.wp-job-manager-support-the-plugin li.icon-code a::before{content:""}.wp-job-manager-support-the-plugin li.icon-forum a::before{content:""}
|
assets/dist/font/jm-logo/jm-04f818ce1471720fb214394b96feb5de.svg
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
2 |
+
|
3 |
+
import * as React from "react";
|
4 |
+
|
5 |
+
var _ref = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("font", {
|
6 |
+
id: "jm_svg__icomoon",
|
7 |
+
horizAdvX: 1024
|
8 |
+
}, /*#__PURE__*/React.createElement("fontFace", {
|
9 |
+
unitsPerEm: 1024,
|
10 |
+
ascent: 960,
|
11 |
+
descent: -64
|
12 |
+
}), /*#__PURE__*/React.createElement("glyph", {
|
13 |
+
horizAdvX: 512
|
14 |
+
}), /*#__PURE__*/React.createElement("glyph", {
|
15 |
+
unicode: "\\uE600",
|
16 |
+
d: "M524.528 345.812l33.34 55.972h-90.727l33.34-55.972-46.677-153.367 58.801-63.447 58.599 63.447-46.677 153.367zm163.471 62.639h-16.165L512.608 134.856 353.382 408.451h-16.165c-48.698 0-88.504-39.807-88.504-88.504v-190.95h527.793v190.95c0 48.697-39.807 88.504-88.504 88.504zM586.764 647.898c-20.813 0-37.787-16.974-37.787-37.787h75.774c0 20.812-16.974 37.787-37.989 37.787zm-148.518 0c-20.813 0-37.787-16.974-37.787-37.787h75.773c-.203 20.812-17.176 37.787-37.989 37.787zm203.076 90.727h-33.946l-15.963 40.009h-66.479v26.673c12.528 4.849 21.217 16.974 21.217 31.118 0 18.591-15.155 33.744-33.744 33.744s-33.744-15.155-33.744-33.744c0-14.144 8.892-26.268 21.217-31.118v-26.673h-66.479l-15.963-40.009h-33.744c-64.459 0-113.763-56.377-101.841-119.421l35.159-180.039h390.793l35.159 180.039c12.124 63.044-36.977 119.421-101.638 119.421zm54.152-114.975c0-136.192-365.738-136.192-365.738 0 0 32.331 24.854 59.205 56.982 62.034h251.571c32.331-2.828 57.185-29.704 57.185-62.034z"
|
17 |
+
})));
|
18 |
+
|
19 |
+
function SvgJm(props) {
|
20 |
+
return /*#__PURE__*/React.createElement("svg", _extends({
|
21 |
+
xmlns: "http://www.w3.org/2000/svg"
|
22 |
+
}, props), _ref);
|
23 |
+
}
|
24 |
+
|
25 |
+
export default "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/Pgo8IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiID4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8bWV0YWRhdGE+R2VuZXJhdGVkIGJ5IEljb01vb248L21ldGFkYXRhPgo8ZGVmcz4KPGZvbnQgaWQ9Imljb21vb24iIGhvcml6LWFkdi14PSIxMDI0Ij4KPGZvbnQtZmFjZSB1bml0cy1wZXItZW09IjEwMjQiIGFzY2VudD0iOTYwIiBkZXNjZW50PSItNjQiIC8+CjxtaXNzaW5nLWdseXBoIGhvcml6LWFkdi14PSIxMDI0IiAvPgo8Z2x5cGggdW5pY29kZT0iJiN4MjA7IiBkPSIiIGhvcml6LWFkdi14PSI1MTIiIC8+CjxnbHlwaCB1bmljb2RlPSImI3hlNjAwOyIgZD0iTTUyNC41MjggMzQ1LjgxMmwzMy4zNCA1NS45NzJoLTkwLjcyN2wzMy4zNC01NS45NzItNDYuNjc3LTE1My4zNjcgNTguODAxLTYzLjQ0NyA1OC41OTkgNjMuNDQ3LTQ2LjY3NyAxNTMuMzY3ek02ODcuOTk5IDQwOC40NTFoLTE2LjE2NWwtMTU5LjIyNi0yNzMuNTk1LTE1OS4yMjYgMjczLjU5NWgtMTYuMTY1Yy00OC42OTggMC04OC41MDQtMzkuODA3LTg4LjUwNC04OC41MDR2LTE5MC45NWg1MjcuNzkzdjE5MC45NWMwIDQ4LjY5Ny0zOS44MDcgODguNTA0LTg4LjUwNCA4OC41MDR2MHpNNTg2Ljc2NCA2NDcuODk4Yy0yM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/font/jm-logo/jm-67b7d10affac4ffd77eb7874ec25263b.woff
ADDED
Binary file
|
assets/dist/font/jm-logo/jm-97b72719abd94986185dcfeef1203fb9.ttf
ADDED
Binary file
|
assets/dist/font/job-manager-434425afc81b621e0e02b871e4f5fca1.woff
ADDED
Binary file
|
assets/dist/font/job-manager-7799d387315fbcfa0060adf100cc549d.ttf
ADDED
Binary file
|
assets/dist/font/job-manager-a2d17fff9efb870b3e027dc5516b3ecc.eot
ADDED
Binary file
|
assets/dist/font/job-manager-aa916d5b5333755f80564e47a7f7a89f.svg
ADDED
@@ -0,0 +1,262 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
2 |
+
|
3 |
+
import * as React from "react";
|
4 |
+
|
5 |
+
var _ref = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("font", {
|
6 |
+
id: "job-manager_svg__job-manager",
|
7 |
+
horizAdvX: 1000
|
8 |
+
}, /*#__PURE__*/React.createElement("fontFace", {
|
9 |
+
fontFamily: "job-manager",
|
10 |
+
fontWeight: 400,
|
11 |
+
ascent: 850,
|
12 |
+
descent: -150
|
13 |
+
}), /*#__PURE__*/React.createElement("glyph", {
|
14 |
+
glyphName: "briefcase",
|
15 |
+
unicode: "\\uE800",
|
16 |
+
d: "M357 707h286v72H357v-72zm643-357V82q0-37-26-63T911-7H89Q53-7 26 19T0 82v268h375v-89q0-15 11-25t25-11h178q15 0 25 11t11 25v89h375zm-429 0v-71H429v71h142zm429 268V403H0v215q0 37 26 63t63 26h197v89q0 23 15 38t38 16h322q22 0 38-16t15-38v-89h197q37 0 63-26t26-63z",
|
17 |
+
horizAdvX: 1000
|
18 |
+
}), /*#__PURE__*/React.createElement("glyph", {
|
19 |
+
glyphName: "cancel",
|
20 |
+
unicode: "\\uE801",
|
21 |
+
d: "M724 112q0-22-15-38L633-2q-16-15-38-15T557-2L393 163 229-2q-16-15-38-15T153-2L77 74q-16 16-16 38t16 38l164 164L77 478q-16 16-16 38t16 38l76 76q16 16 38 16t38-16l164-164 164 164q16 16 38 16t38-16l76-76q15-15 15-38t-15-38L545 314l164-164q15-15 15-38z",
|
22 |
+
horizAdvX: 785.7
|
23 |
+
}), /*#__PURE__*/React.createElement("glyph", {
|
24 |
+
glyphName: "ok",
|
25 |
+
unicode: "\\uE802",
|
26 |
+
d: "M932 534q0-22-15-38L513 92l-76-76Q421 1 399 1t-38 15l-76 76L83 294q-15 16-15 38t15 38l76 76q16 16 38 16t38-16l164-165 366 367q16 16 38 16t38-16l76-76q15-16 15-38z",
|
27 |
+
horizAdvX: 1000
|
28 |
+
}), /*#__PURE__*/React.createElement("glyph", {
|
29 |
+
glyphName: "star",
|
30 |
+
unicode: "\\uE803",
|
31 |
+
d: "M929 489q0-12-15-27L711 265l48-279q1-4 1-12 0-11-6-19t-17-9q-10 0-22 7L464 85 214-47q-13-7-23-7-11 0-17 9t-6 19q0 4 1 12l48 279L14 462Q0 477 0 489q0 21 31 26l280 40 126 254q11 23 27 23t28-23l125-254 280-40q32-5 32-26z",
|
32 |
+
horizAdvX: 928.6
|
33 |
+
}), /*#__PURE__*/React.createElement("glyph", {
|
34 |
+
glyphName: "pencil",
|
35 |
+
unicode: "\\uE804",
|
36 |
+
d: "M203-7l50 51-131 131-51-51V64h72V-7h60zm291 518q0 12-12 12-5 0-9-4L170 217q-4-4-4-10 0-12 13-12 5 0 9 4l303 302q3 4 3 10zm-30 107l232-232L232-79H0v233zm381-54q0-29-20-50l-93-93-232 233 93 92q20 21 50 21 29 0 51-21l131-131q20-22 20-51z",
|
37 |
+
horizAdvX: 857.1
|
38 |
+
}), /*#__PURE__*/React.createElement("glyph", {
|
39 |
+
glyphName: "eye",
|
40 |
+
unicode: "\\uE805",
|
41 |
+
d: "M929 314q-85 132-213 197 34-58 34-125 0-104-73-177t-177-73-177 73-73 177q0 67 34 125-128-65-213-197 75-114 187-182t242-68 242 68 187 182zM527 529q0 11-8 19t-19 7q-70 0-120-50t-50-119q0-12 8-19t19-8 19 8 8 19q0 48 34 82t82 34q11 0 19 8t8 19zm473-215q0-19-11-38-78-129-210-206T500-7 221 70 11 276Q0 295 0 314t11 39q78 128 210 205t279 78 279-78 210-205q11-20 11-39z",
|
42 |
+
horizAdvX: 1000
|
43 |
+
}), /*#__PURE__*/React.createElement("glyph", {
|
44 |
+
glyphName: "doc-text-inv",
|
45 |
+
unicode: "\\uE806",
|
46 |
+
d: "M819 584q8-7 16-20H571v264q13-8 21-16zm-265-91h303V-96q0-23-15-38t-38-16H54q-23 0-38 16T0-96v892q0 23 16 38t38 16h446V546q0-22 16-38t38-15zm89-411v36q0 8-5 13t-13 5H232q-8 0-13-5t-5-13V82q0-8 5-13t13-5h393q8 0 13 5t5 13zm0 143v36q0 7-5 12t-13 5H232q-8 0-13-5t-5-12v-36q0-8 5-13t13-5h393q8 0 13 5t5 13zm0 143v35q0 8-5 13t-13 5H232q-8 0-13-5t-5-13v-35q0-8 5-13t13-5h393q8 0 13 5t5 13z",
|
47 |
+
horizAdvX: 857.1
|
48 |
+
}), /*#__PURE__*/React.createElement("glyph", {
|
49 |
+
glyphName: "user",
|
50 |
+
unicode: "\\uE807",
|
51 |
+
d: "M786 66q0-67-41-106T637-79H149Q82-79 41-40T0 66q0 30 2 58t8 61 15 60 24 55 34 45 48 30 62 11q5 0 24-12t41-27 60-27 75-12 74 12 61 27 41 27 24 12q34 0 62-11t48-30 34-45 24-55 15-60 8-61 2-58zM607 564q0-88-63-151t-151-63-152 63-62 151 62 152 152 63 151-63 63-152z",
|
52 |
+
horizAdvX: 785.7
|
53 |
+
}), /*#__PURE__*/React.createElement("glyph", {
|
54 |
+
glyphName: "key",
|
55 |
+
unicode: "\\uE808",
|
56 |
+
d: "M464 564q0 45-31 76t-76 31-76-31-31-76q0-23 11-46-23 11-47 11-44 0-76-32t-31-76 31-75 76-32 76 32 31 75q0 24-10 47 23-11 46-11 45 0 76 31t31 76zm475-393q0-9-27-36t-37-28q-5 0-16 9t-20 19-22 22-13 14l-54-53L873-5q15-15 15-38t-21-45-46-22q-22 0-38 16L409 280q-98-73-204-73-91 0-148 57T0 413q0 89 53 174t138 139 175 53q91 0 148-58t57-148q0-105-73-203l198-199 54 54q-2 2-15 14t-22 21-18 21-9 15q0 10 27 37t37 28q7 0 13-6 3-3 26-25t45-44 49-48 40-44 16-23z",
|
57 |
+
horizAdvX: 1000
|
58 |
+
}), /*#__PURE__*/React.createElement("glyph", {
|
59 |
+
glyphName: "link",
|
60 |
+
unicode: "\\uE809",
|
61 |
+
d: "M812 171q0 23-15 38L681 325q-16 16-38 16-24 0-40-18l10-10 12-12q3-3 9-11t7-14 2-15q0-23-16-38t-38-16q-8 0-15 2t-14 7-11 9-12 12-10 10q-19-17-19-40t16-38L639 53q15-15 38-15 22 0 38 15l82 81q15 16 15 37zM420 565q0 22-15 38L290 718q-16 16-38 16t-38-15l-82-82q-16-15-16-37t16-38l116-116q15-15 38-15t40 17l-11 11-12 12q-3 3-8 10t-7 14-2 16q0 22 15 38t38 15q9 0 16-2t14-7 10-8 12-12 11-11q18 17 18 41zm500-394q0-67-48-113l-82-81q-46-47-113-47-68 0-114 48L448 93q-46 47-46 114 0 68 49 116l-49 49q-48-49-116-49-67 0-114 47L56 486Q9 533 9 600t47 113l82 82q47 46 114 46t114-47l114-116q47-46 47-113 0-69-49-117l49-49q48 49 116 49 67 0 114-47l116-116q47-47 47-114z",
|
62 |
+
horizAdvX: 928.6
|
63 |
+
}), /*#__PURE__*/React.createElement("glyph", {
|
64 |
+
glyphName: "twitter",
|
65 |
+
unicode: "\\uE80A",
|
66 |
+
d: "M904 622q-37-54-90-93v-23q0-73-21-145t-64-139-103-117-144-82T301-7Q150-7 25 74q19-3 43-3 126 0 224 77-59 2-105 36t-64 89q19-2 34-2 24 0 48 6-63 13-104 62T60 454v2q38-21 82-23-37 25-59 64t-22 86q0 49 25 91 68-83 164-133t208-55q-5 21-5 41 0 75 53 127t127 53q79 0 132-57 61 12 114 44-20-64-79-100 52 6 104 28z",
|
67 |
+
horizAdvX: 928.6
|
68 |
+
}), /*#__PURE__*/React.createElement("glyph", {
|
69 |
+
glyphName: "linkedin-squared",
|
70 |
+
unicode: "\\uE80B",
|
71 |
+
d: "M132 61h129v387H132V61zm138 507q-1 29-21 48t-51 19-53-19-21-48q0-29 20-48t52-19q33 0 53 19t21 48zM596 61h129v222q0 86-41 130t-108 44q-75 0-116-65h1v56H332q2-37 0-387h129v216q0 22 4 32 8 19 25 33t41 14q65 0 65-88V61zm261 557V82q0-66-47-113T696-79H161Q94-79 47-31T0 82v536q0 66 47 113t114 48h535q67 0 114-48t47-113z",
|
72 |
+
horizAdvX: 857.1
|
73 |
+
}), /*#__PURE__*/React.createElement("glyph", {
|
74 |
+
glyphName: "facebook-squared",
|
75 |
+
unicode: "\\uE80C",
|
76 |
+
d: "M857 82q0-66-47-113T696-79H589v340h114l16 125H589v80q0 30 16 46t53 16l74 1v115q-53 5-100 5-76 0-122-45t-46-126v-92H339V261h125V-79H161Q94-79 47-31T0 82v536q0 66 47 113t114 48h535q67 0 114-48t47-113V82z",
|
77 |
+
horizAdvX: 857.1
|
78 |
+
}), /*#__PURE__*/React.createElement("glyph", {
|
79 |
+
glyphName: "location",
|
80 |
+
unicode: "\\uE80D",
|
81 |
+
d: "M429 493q0 59-42 101t-101 42-101-42-42-101 42-101 101-42 101 42 42 101zm142 0q0-61-18-100L350-39q-9-18-27-29t-37-11-38 11-26 29L18 393Q0 432 0 493q0 118 84 202t202 84 202-84 83-202z",
|
82 |
+
horizAdvX: 571.4
|
83 |
+
}), /*#__PURE__*/React.createElement("glyph", {
|
84 |
+
glyphName: "attention-circled",
|
85 |
+
unicode: "\\uE80E",
|
86 |
+
d: "M429 779q116 0 215-58t156-156 57-215-57-215T644-21 429-79 213-21 58 135 0 350t58 215 155 156 216 58zm71-696v106q0 8-5 13t-12 5H376q-8 0-13-5t-6-13V83q0-8 6-13t13-6h107q7 0 12 6t5 13zm-1 192l10 346q0 7-6 10-5 5-13 5H367q-8 0-13-5-6-3-6-10l10-346q0-6 5-10t14-4h103q8 0 13 4t6 10z",
|
87 |
+
horizAdvX: 857.1
|
88 |
+
}), /*#__PURE__*/React.createElement("glyph", {
|
89 |
+
glyphName: "calendar",
|
90 |
+
unicode: "\\uE80F",
|
91 |
+
d: "M71-79h161V82H71V-79zm197 0h178V82H268V-79zM71 118h161v178H71V118zm197 0h178v178H268V118zM71 332h161v161H71V332zM482-79h179V82H482V-79zM268 332h178v161H268V332zM696-79h161V82H696V-79zM482 118h179v178H482V118zM286 600v161q0 7-6 12t-12 6h-36q-7 0-12-6t-6-12V600q0-7 6-13t12-5h36q7 0 12 5t6 13zm410-482h161v178H696V118zM482 332h179v161H482V332zm214 0h161v161H696V332zm18 268v161q0 7-5 12t-13 6h-35q-8 0-13-6t-5-12V600q0-7 5-13t13-5h35q8 0 13 5t5 13zm215 36V-79q0-29-22-50t-50-21H71q-29 0-50 21T0-79v715q0 29 21 50t50 21h72v54q0 36 26 63t63 26h36q37 0 63-26t26-63v-54h214v54q0 36 27 63t63 26h35q37 0 63-26t27-63v-54h71q29 0 50-21t22-50z",
|
92 |
+
horizAdvX: 928.6
|
93 |
+
}), /*#__PURE__*/React.createElement("glyph", {
|
94 |
+
glyphName: "github-squared",
|
95 |
+
unicode: "\\uE810",
|
96 |
+
d: "M220 96q-5-5-11 1-8 6-2 11 4 5 11-2 6-6 2-10zm-24 34q5-7 0-11-4-3-9 4t0 10q5 4 9-3zm-34 33q-2-4-7-1t-4 7q2 2 8 1 5-3 3-7zm18-19q-4-4-9 2t-1 9q3 3 9-2 5-6 1-9zm72-62q-3-7-11-4-9 3-7 9t10 4q9-3 8-9zm35-3q0-6-9-6-10-1-10 6 0 6 9 6 10 1 10-6zm32 5q1-5-8-7t-10 4 8 8q9 2 10-5zm538 534V82q0-66-47-113T696-79H571q-8 0-13 1t-11 3-9 8-3 15V82q0 54-29 79 32 3 57 10t53 22 45 37 30 58 11 84q0 68-44 115 21 51-5 114-15 5-45-6t-51-25l-21-13q-52 15-107 15t-108-15q-8 6-23 15t-47 22-48 7q-24-63-4-114-44-47-44-115 0-47 12-83t29-59 45-37 52-22 57-10q-22-20-27-58-12-5-25-8t-32-3-36 12-31 35q-11 18-27 29t-28 14l-11 1q-12 0-16-2t-3-7 5-8 7-6l4-3q12-6 24-21t18-29l5-13q8-21 25-34t37-17 39-4 31 2l13 3v-58q0-36 1-38 0-12-7-18t-12-8-18-1H161Q94-79 47-31T0 82v536q0 66 47 113t114 48h535q67 0 114-48t47-113z",
|
97 |
+
horizAdvX: 857.1
|
98 |
+
}), /*#__PURE__*/React.createElement("glyph", {
|
99 |
+
glyphName: "dribbble",
|
100 |
+
unicode: "\\uE811",
|
101 |
+
d: "M571 13q-23 134-78 278h-1l-1-1q-9-3-24-9t-56-27-77-46-73-64-57-82l-9 6q103-84 234-84 73 0 142 29zM468 352q-12 27-29 62-174-52-376-52v-12q0-69 24-132t69-112q28 49 69 93t80 69 73 45 55 27l21 7q2 1 7 2t7 3zm-59 118q-67 119-137 211-77-36-130-104T70 425q169 0 339 45zm381-178q-117 33-228 16 49-133 71-262 62 42 104 106t53 140zM341 705h-1 1zm329-80q-103 91-241 91-43 0-87-11 73-94 137-213 39 15 73 34t54 34 36 32 21 23zm125-271q-2 129-83 229l-1-1q-5-7-11-14t-24-24-40-34-55-36-74-36q14-30 25-53 1-4 3-10t5-9q20 2 41 4t41 1 39-1 35-2 32-3 27-4 20-3 14-3zm62-4q0-117-57-215T644-21 429-79 213-21 58 135 0 350t58 215 155 156 216 58 215-58 156-156 57-215z",
|
102 |
+
horizAdvX: 857.1
|
103 |
+
}), /*#__PURE__*/React.createElement("glyph", {
|
104 |
+
glyphName: "wordpress",
|
105 |
+
unicode: "\\uE812",
|
106 |
+
d: "M0 350q0 136 67 251t182 182 251 67 251-67 182-182 67-251-67-251T751-83t-251-67-251 67T67 99 0 350zm39 0q0-135 72-247T299-65L79 538q-40-89-40-188zm75 253h30q48 0 123 6 12 1 18-8t1-19-16-11l-53-5L385 67l101 302-72 197q-24 3-48 5-12 1-16 11t2 19 17 8l121-6q49 0 123 6 12 1 18-8t1-19-16-11l-52-5L730 70l46 154q36 117 36 149 0 64-39 128-2 3-12 21t-14 24-9 19-8 23-2 21q0 33 23 58t55 24h3q2 0 3-1-131 121-312 121-119 0-221-56T114 603zM370-93q62-18 130-18 80 0 153 26l-3 6-142 389zm362 44q105 61 167 168t62 231q0 120-56 221 3-21 3-47 0-63-35-165z",
|
107 |
+
horizAdvX: 1000
|
108 |
+
}), /*#__PURE__*/React.createElement("glyph", {
|
109 |
+
glyphName: "gplus-squared",
|
110 |
+
unicode: "\\uE813",
|
111 |
+
d: "M463 170q0-42-33-62t-78-21q-23 0-45 6t-42 15-32 30-13 44q0 25 14 44t37 29 46 14 47 4q11 0 17-1 1-1 13-9t15-11 12-10 14-12 11-13 9-14 5-15 3-18zm-42 304q0-33-18-55t-51-22q-30 0-52 24t-32 53-10 60q0 34 18 58t51 24q30 0 52-25t33-57 9-60zm59 144l50 36H382q-48 0-90-18t-71-55-29-85q0-52 36-87t88-34q13 0 24 2-7-16-7-30 0-25 22-53-97-6-143-35-26-16-42-41t-16-53q0-24 10-43t27-31 39-21 43-12 43-3q33 0 67 8t63 26 48 46 19 65q0 28-11 50t-28 38-32 26-27 25-12 24 9 24 21 22 25 24 21 33 8 46q0 33-12 55t-41 51h46zm163-250h71v35h-71v72h-36v-72h-71v-35h71v-90h36v90zm214 250V82q0-66-47-113T696-79H161Q94-79 47-31T0 82v536q0 66 47 113t114 48h535q67 0 114-48t47-113z",
|
112 |
+
horizAdvX: 857.1
|
113 |
+
}), /*#__PURE__*/React.createElement("glyph", {
|
114 |
+
glyphName: "pinterest-squared",
|
115 |
+
unicode: "\\uE814",
|
116 |
+
d: "M696 779q67 0 114-48t47-113V82q0-66-47-113T696-79H292q47 68 60 118 5 19 30 116 11-21 41-37t63-16q101 0 164 83t64 208q0 47-19 91t-54 77-85 54-110 21q-58 0-109-16t-85-43-60-61-37-71-12-74q0-57 22-101t65-61q7-3 13 0t8 10q6 25 9 34 3 13-7 24-28 35-28 84 0 83 58 143t151 59q83 0 130-45t47-117q0-94-38-160t-97-66q-33 0-54 25t-13 57q5 19 15 52t16 57 6 41q0 28-14 46t-42 18q-35 0-58-31t-24-78q0-40 13-68L267 63q-14-56-4-142H161Q94-79 47-31T0 82v536q0 66 47 113t114 48h535z",
|
117 |
+
horizAdvX: 857.1
|
118 |
+
}), /*#__PURE__*/React.createElement("glyph", {
|
119 |
+
glyphName: "flickr",
|
120 |
+
unicode: "\\uE815",
|
121 |
+
d: "M696 779q67 0 114-48t47-113V82q0-66-47-113T696-79H161Q94-79 47-31T0 82v536q0 66 47 113t114 48h535zM390 350q0 49-35 84t-84 34-83-34-35-84 35-84 83-34 84 34 35 84zm314 0q0 49-34 84t-84 34-84-34-34-84 34-84 84-34 84 34 34 84z",
|
122 |
+
horizAdvX: 857.1
|
123 |
+
}), /*#__PURE__*/React.createElement("glyph", {
|
124 |
+
glyphName: "instagramm",
|
125 |
+
unicode: "\\uE816",
|
126 |
+
d: "M760 54v362h-75q11-35 11-73 0-71-36-130t-97-94-134-35q-110 0-188 76t-78 183q0 38 11 73H95V54q0-14 10-24t25-10h596q14 0 24 10t10 24zM602 352q0 69-51 118t-122 49q-71 0-121-49t-51-118 51-118 121-49q72 0 122 49t51 118zm158 201v92q0 15-11 27t-27 11h-98q-16 0-27-11t-11-27v-92q0-17 11-28t27-11h98q16 0 27 11t11 28zm97 116V31q0-45-32-77t-78-33H110q-45 0-78 33T0 31v638q0 45 32 77t78 33h637q45 0 78-33t32-77z",
|
127 |
+
horizAdvX: 857.1
|
128 |
+
}), /*#__PURE__*/React.createElement("glyph", {
|
129 |
+
glyphName: "skype",
|
130 |
+
unicode: "\\uE817",
|
131 |
+
d: "M655 257q0 28-11 51t-27 38-41 27-46 19-49 13l-58 14q-17 4-25 6t-19 6-17 9-9 12-4 16q0 43 80 43 24 0 43-6t30-16 21-19 23-16 27-7q26 0 42 18t16 43q0 31-32 55t-79 38-101 13q-38 0-74-9t-67-26-49-48-19-72q0-34 10-60t32-42 44-27 58-18l81-20q51-12 63-20 18-11 18-34 0-21-23-36t-58-14q-29 0-51 9t-37 22-25 25-26 21-30 9q-28 0-42-17t-14-41q0-52 68-88t162-37q41 0 78 10t69 30 49 52 19 74zm202-121q0-89-63-152T643-79q-73 0-131 45-43-9-83-9-80 0-153 31T150 72 67 197 36 350q0 41 9 84Q0 492 0 564q0 89 63 152t151 63q73 0 131-45 43 9 84 9 79 0 152-31t126-84 83-125 31-153q0-41-9-84 45-58 45-130z",
|
132 |
+
horizAdvX: 857.1
|
133 |
+
}), /*#__PURE__*/React.createElement("glyph", {
|
134 |
+
glyphName: "folder-open",
|
135 |
+
unicode: "\\uE818",
|
136 |
+
d: "M1049 319q0-18-18-37L844 61q-24-28-67-48T696-7H89Q70-7 56 0T41 24q0 17 17 37l188 221q24 28 67 48t80 20h607q19 0 34-7t15-24zM857 511v-90H393q-53 0-110-26t-92-67L3 107l-2-3q0 2-1 7t0 7v536q0 51 37 88t88 37h179q51 0 88-37t37-88v-18h303q51 0 88-37t37-88z",
|
137 |
+
horizAdvX: 1071.4
|
138 |
+
}), /*#__PURE__*/React.createElement("glyph", {
|
139 |
+
glyphName: "folder",
|
140 |
+
unicode: "\\uE819",
|
141 |
+
d: "M929 511V118q0-51-37-88T804-7H125Q74-7 37 30T0 118v536q0 51 37 88t88 37h179q51 0 88-37t37-88v-18h375q51 0 88-37t37-88z",
|
142 |
+
horizAdvX: 928.6
|
143 |
+
}), /*#__PURE__*/React.createElement("glyph", {
|
144 |
+
glyphName: "download",
|
145 |
+
unicode: "\\uE81A",
|
146 |
+
d: "M714 100q0 15-10 25t-25 11-26-11-10-25 10-25 26-11 25 11 10 25zm143 0q0 15-10 25t-26 11-25-11-10-25 10-25 25-11 26 11 10 25zm72 125V46q0-22-16-37T875-7H54Q31-7 16 9T0 46v179q0 22 16 38t38 16h259l75-76q33-32 76-32t76 32l76 76h259q22 0 38-16t16-38zM747 543q10-23-8-40L489 253q-10-10-25-10t-25 10L189 503q-17 17-8 40 10 21 33 21h143v250q0 15 11 25t25 11h143q14 0 25-11t10-25V564h143q24 0 33-21z",
|
147 |
+
horizAdvX: 928.6
|
148 |
+
}), /*#__PURE__*/React.createElement("glyph", {
|
149 |
+
glyphName: "down-circled2",
|
150 |
+
unicode: "\\uE81B",
|
151 |
+
d: "M625 332q0-7-6-13L441 141q-6-5-12-5t-13 5L237 319q-8 9-4 20 5 11 17 11h107v196q0 8 5 13t13 5h107q8 0 13-5t5-13V350h107q8 0 13-5t5-13zM429 654q-83 0-153-41T166 502t-41-152 41-152T276 87t153-41 152 41 110 111 41 152-41 152-110 111-152 41zm428-304q0-117-57-215T644-21 429-79 213-21 58 135 0 350t58 215 155 156 216 58 215-58 156-156 57-215z",
|
152 |
+
horizAdvX: 857.1
|
153 |
+
}), /*#__PURE__*/React.createElement("glyph", {
|
154 |
+
glyphName: "mail-alt",
|
155 |
+
unicode: "\\uE81C",
|
156 |
+
d: "M1000 454V11q0-37-26-63t-63-27H89q-36 0-63 27T0 11v443q25-28 56-49 202-137 278-192 32-24 51-37t53-27 61-13h2q28 0 61 13t53 27 51 37q95 68 278 192 32 22 56 49zm0 164q0-44-27-84t-68-69Q695 319 643 284q-5-4-23-17t-30-22-29-18-33-15-27-5h-2q-12 0-27 5t-33 15-29 18-30 22-23 17q-51 35-147 101T96 465q-35 23-65 64T0 606q0 43 23 72t66 29h822q36 0 62-26t27-63z",
|
157 |
+
horizAdvX: 1000
|
158 |
+
}), /*#__PURE__*/React.createElement("glyph", {
|
159 |
+
glyphName: "location-1",
|
160 |
+
unicode: "\\uE81D",
|
161 |
+
d: "M0 473q0 156 110 267t267 110 267-110 110-267q0-123-53-193L377-150 53 280Q0 350 0 473zm219 0q0-66 46-112t112-46 112 46 46 112-46 112-112 46-112-46-46-112z",
|
162 |
+
horizAdvX: 754
|
163 |
+
}), /*#__PURE__*/React.createElement("glyph", {
|
164 |
+
glyphName: "bookmark",
|
165 |
+
unicode: "\\uE81E",
|
166 |
+
d: "M650 779q12 0 24-5 19-8 29-23t11-35V-3q0-19-11-35t-29-23q-10-4-24-4-27 0-47 18L357 189 111-47Q91-66 65-66q-13 0-25 5-18 7-29 23T0-3v719q0 19 11 35t29 23q12 5 25 5h585z",
|
167 |
+
horizAdvX: 714.3
|
168 |
+
}), /*#__PURE__*/React.createElement("glyph", {
|
169 |
+
glyphName: "bookmark-empty",
|
170 |
+
unicode: "\\uE81F",
|
171 |
+
d: "M643 707H71V14l237 227 49 47 50-47L643 14v693zm7 72q12 0 24-5 19-8 29-23t11-35V-3q0-19-11-35t-29-23q-10-4-24-4-27 0-47 18L357 189 111-47Q91-66 65-66q-13 0-25 5-18 7-29 23T0-3v719q0 19 11 35t29 23q12 5 25 5h585z",
|
172 |
+
horizAdvX: 714.3
|
173 |
+
}), /*#__PURE__*/React.createElement("glyph", {
|
174 |
+
glyphName: "star-empty",
|
175 |
+
unicode: "\\uE820",
|
176 |
+
d: "M634 290l171 165-235 35-106 213-105-213-236-35 171-165-41-235 211 111L675 55zm295 199q0-12-15-27L711 265l48-279q1-4 1-12 0-28-23-28-10 0-22 7L464 85 214-47q-13-7-23-7-11 0-17 9t-6 19q0 4 1 12l48 279L14 462Q0 477 0 489q0 21 31 26l280 40 126 254q11 23 27 23t28-23l125-254 280-40q32-5 32-26z",
|
177 |
+
horizAdvX: 928.6
|
178 |
+
}), /*#__PURE__*/React.createElement("glyph", {
|
179 |
+
glyphName: "heart",
|
180 |
+
unicode: "\\uE821",
|
181 |
+
d: "M500-79q-14 0-25 10L127 267l-15 15q-10 10-31 36t-38 55-30 67-13 77q0 123 71 192t196 70q34 0 70-12t67-33 54-38 42-38q20 20 42 38t54 38 67 33 70 12q125 0 196-70t71-192q0-123-128-251L525-69q-10-10-25-10z",
|
182 |
+
horizAdvX: 1000
|
183 |
+
}), /*#__PURE__*/React.createElement("glyph", {
|
184 |
+
glyphName: "heart-empty",
|
185 |
+
unicode: "\\uE822",
|
186 |
+
d: "M929 517q0 46-12 80t-31 55-46 33-52 18-55 4-62-14-62-36-48-40-34-34q-10-13-27-13t-27 13q-14 15-34 34t-48 40-62 36-62 14-55-4-52-18-46-33-31-55-12-80q0-93 105-198L500 7l324 312q105 105 105 198zm71 0q0-123-128-251L525-69q-10-10-25-10t-25 10L127 267l-15 15q-10 10-31 36t-38 55-30 67-13 77q0 123 71 192t196 70q34 0 70-12t67-33 54-38 42-38q20 20 42 38t54 38 67 33 70 12q125 0 196-70t71-192z",
|
187 |
+
horizAdvX: 1000
|
188 |
+
}), /*#__PURE__*/React.createElement("glyph", {
|
189 |
+
glyphName: "menu",
|
190 |
+
unicode: "\\uE823",
|
191 |
+
d: "M857 100V29q0-15-10-25T821-7H36Q21-7 11 4T0 29v71q0 15 11 25t25 11h785q15 0 26-11t10-25zm0 286v-72q0-14-10-25t-26-10H36q-15 0-25 10T0 314v72q0 14 11 25t25 10h785q15 0 26-10t10-25zm0 285v-71q0-15-10-25t-26-11H36q-15 0-25 11T0 600v71q0 15 11 26t25 10h785q15 0 26-10t10-26z",
|
192 |
+
horizAdvX: 857.1
|
193 |
+
}), /*#__PURE__*/React.createElement("glyph", {
|
194 |
+
glyphName: "filter",
|
195 |
+
unicode: "\\uE824",
|
196 |
+
d: "M783 685q9-23-8-39L500 371V-43q0-23-22-33-7-3-14-3-15 0-25 11L296 75q-10 10-10 25v271L11 646q-18 16-8 39 9 22 33 22h714q23 0 33-22z",
|
197 |
+
horizAdvX: 785.7
|
198 |
+
}), /*#__PURE__*/React.createElement("glyph", {
|
199 |
+
glyphName: "comment-empty",
|
200 |
+
unicode: "\\uE825",
|
201 |
+
d: "M500 636q-114 0-213-39T130 492 71 350q0-62 40-119t113-98l48-28-15-54q-13-50-39-95 85 35 154 95l24 21 31-3q39-5 73-5 114 0 213 39t157 105 59 142-59 142-157 105-213 39zm500-286q0-97-67-179T751 41 500-7q-39 0-81 4-110-97-257-135-27-7-63-12h-3q-8 0-15 6t-9 15v1q-2 2 0 7t1 5 2 5l4 5 4 5 4 5q4 5 17 19t20 22 17 22 18 28 15 33 15 42q-88 50-138 123T0 350q0 97 67 179t182 130 251 48 251-48 182-130 67-179z",
|
202 |
+
horizAdvX: 1000
|
203 |
+
}), /*#__PURE__*/React.createElement("glyph", {
|
204 |
+
glyphName: "comment",
|
205 |
+
unicode: "\\uE826",
|
206 |
+
d: "M1000 350q0-97-67-179T751 41 500-7q-39 0-81 4-110-97-257-135-27-8-63-12-10-1-17 5t-10 16v1q-2 2 0 6t1 6 2 5l4 5 4 5 4 5q4 5 17 19t20 22 17 22 18 28 15 33 15 42q-88 50-138 123T0 350q0 73 40 139t106 114 160 76 194 28q136 0 251-48t182-130 67-179z",
|
207 |
+
horizAdvX: 1000
|
208 |
+
}), /*#__PURE__*/React.createElement("glyph", {
|
209 |
+
glyphName: "attach",
|
210 |
+
unicode: "\\uE827",
|
211 |
+
d: "M783 77q0-65-44-109T630-76q-75 0-131 55L65 413Q2 477 2 564q0 88 62 150t150 62q88 0 152-63l338-338q5-5 5-12 0-9-17-26t-26-17q-7 0-13 5L315 664q-44 43-101 43-59 0-100-42T74 564q0-58 42-101L549 30q35-35 81-35 36 0 59 23t24 59q0 46-36 81L353 482q-14 14-33 14-16 0-27-11t-11-27q0-18 14-33l229-228q6-6 6-13 0-9-18-26t-26-17q-7 0-12 5L246 375q-35 34-35 83 0 46 32 78t77 32q49 0 83-36l325-324q55-54 55-131z",
|
212 |
+
horizAdvX: 785.7
|
213 |
+
}), /*#__PURE__*/React.createElement("glyph", {
|
214 |
+
glyphName: "info-circled",
|
215 |
+
unicode: "\\uE828",
|
216 |
+
d: "M571 82v89q0 8-5 13t-12 5h-54v286q0 8-5 13t-13 5H304q-8 0-13-5t-5-13v-89q0-8 5-13t13-5h53V189h-53q-8 0-13-5t-5-13V82q0-8 5-13t13-5h250q7 0 12 5t5 13zm-71 500v89q0 8-5 13t-13 5H375q-8 0-13-5t-5-13v-89q0-8 5-13t13-5h107q8 0 13 5t5 13zm357-232q0-117-57-215T644-21 429-79 213-21 58 135 0 350t58 215 155 156 216 58 215-58 156-156 57-215z",
|
217 |
+
horizAdvX: 857.1
|
218 |
+
}), /*#__PURE__*/React.createElement("glyph", {
|
219 |
+
glyphName: "flag",
|
220 |
+
unicode: "\\uE829",
|
221 |
+
d: "M179 707q0-40-36-61V-61q0-7-5-12t-13-6H89q-7 0-12 6t-6 12v707q-35 21-35 61 0 30 21 51t50 21 51-21 21-51zm821-36V246q0-14-7-22t-22-15q-120-65-206-65-34 0-69 12t-60 27-65 27-79 12q-107 0-259-81-10-5-19-5-14 0-25 10t-10 25v414q0 18 17 31 12 8 44 24 132 67 235 67 60 0 112-16t122-49q21-11 49-11 30 0 65 12t62 26 49 26 30 12q15 0 25-10t11-26z",
|
222 |
+
horizAdvX: 1000
|
223 |
+
}), /*#__PURE__*/React.createElement("glyph", {
|
224 |
+
glyphName: "eye-off",
|
225 |
+
unicode: "\\uE82A",
|
226 |
+
d: "M310 105l43 79q-48 35-76 88t-27 114q0 67 34 125-128-65-213-197 94-144 239-209zm217 424q0 11-8 19t-19 7q-70 0-120-50t-50-119q0-12 8-19t19-8 19 8 8 19q0 48 34 82t82 34q11 0 19 8t8 19zm202 106v-5q-59-105-176-316T377-2l-28-50q-5-9-15-9-7 0-75 39-9 6-9 16 0 7 25 49-80 36-147 96T11 276Q0 293 0 314t11 39q86 131 212 207t277 76q50 0 100-10l31 54q5 9 15 9 3 0 10-3t18-9 18-10 18-10 10-7q9-5 9-15zm21-249q0-78-44-142t-117-92l157 281q4-26 4-47zm250-72q0-19-11-38-22-36-61-81-84-96-194-149T500-7l41 74q119 10 219 76t169 171q-65 100-158 164l35 63q53-36 102-86t81-102q11-19 11-39z",
|
227 |
+
horizAdvX: 1000
|
228 |
+
}), /*#__PURE__*/React.createElement("glyph", {
|
229 |
+
glyphName: "trash",
|
230 |
+
unicode: "\\uE82B",
|
231 |
+
d: "M286 82v393q0 8-5 13t-13 5h-36q-8 0-13-5t-5-13V82q0-8 5-13t13-5h36q8 0 13 5t5 13zm143 0v393q0 8-5 13t-13 5h-36q-8 0-13-5t-5-13V82q0-8 5-13t13-5h36q8 0 13 5t5 13zm142 0v393q0 8-5 13t-12 5h-36q-8 0-13-5t-5-13V82q0-8 5-13t13-5h36q7 0 12 5t5 13zM268 636h250l-27 65q-4 5-9 6H305q-6-1-10-6zm518-18v-36q0-8-5-13t-13-5h-54V35q0-46-26-80t-63-34H161q-37 0-63 33T71 33v531H18q-8 0-13 5t-5 13v36q0 8 5 13t13 5h172l39 93q9 21 31 35t44 15h178q22 0 44-15t30-35l39-93h173q8 0 13-5t5-13z",
|
232 |
+
horizAdvX: 785.7
|
233 |
+
}), /*#__PURE__*/React.createElement("glyph", {
|
234 |
+
glyphName: "clock",
|
235 |
+
unicode: "\\uE82C",
|
236 |
+
d: "M500 546V296q0-7-5-12t-13-5H304q-8 0-13 5t-5 12v36q0 8 5 13t13 5h125v196q0 8 5 13t12 5h36q8 0 13-5t5-13zm232-196q0 83-41 152T581 613t-152 41-153-41-110-111-41-152 41-152T276 87t153-41 152 41 110 111 41 152zm125 0q0-117-57-215T644-21 429-79 213-21 58 135 0 350t58 215 155 156 216 58 215-58 156-156 57-215z",
|
237 |
+
horizAdvX: 857.1
|
238 |
+
}), /*#__PURE__*/React.createElement("glyph", {
|
239 |
+
glyphName: "block",
|
240 |
+
unicode: "\\uE82D",
|
241 |
+
d: "M732 352q0 90-48 164L263 96q76-50 166-50 62 0 118 25t96 65 65 97 24 119zM175 185l421 421q-75 50-167 50-83 0-153-40T166 504t-41-152q0-91 50-167zm682 167q0-88-34-168T732 47 595-45 429-79 262-45 125 47 34 184 0 352t34 167 91 137 137 91 167 34 166-34 137-91 91-137 34-167z",
|
242 |
+
horizAdvX: 857.1
|
243 |
+
}), /*#__PURE__*/React.createElement("glyph", {
|
244 |
+
glyphName: "cancel-circled",
|
245 |
+
unicode: "\\uE82E",
|
246 |
+
d: "M641 224q0 14-10 25L530 350l101 101q10 11 10 25 0 15-10 26l-51 50q-10 11-25 11t-25-11L429 451 328 552q-11 11-26 11t-25-11l-50-50q-11-11-11-26 0-14 11-25l101-101-101-101q-11-11-11-25 0-15 11-26l50-50q10-11 25-11t26 11l101 101 101-101q10-11 25-11t25 11l51 50q10 11 10 26zm216 126q0-117-57-215T644-21 429-79 213-21 58 135 0 350t58 215 155 156 216 58 215-58 156-156 57-215z",
|
247 |
+
horizAdvX: 857.1
|
248 |
+
}), /*#__PURE__*/React.createElement("glyph", {
|
249 |
+
glyphName: "ok-circled",
|
250 |
+
unicode: "\\uE82F",
|
251 |
+
d: "M717 440q0 16-11 26l-50 50q-11 11-25 11t-26-11L378 289 252 415q-11 11-25 11t-26-11l-50-50q-10-10-10-26 0-15 10-25l202-202q10-10 25-10t25 10l303 303q11 10 11 25zm140-90q0-117-57-215T644-21 429-79 213-21 58 135 0 350t58 215 155 156 216 58 215-58 156-156 57-215z",
|
252 |
+
horizAdvX: 857.1
|
253 |
+
})));
|
254 |
+
|
255 |
+
function SvgJobManager(props) {
|
256 |
+
return /*#__PURE__*/React.createElement("svg", _extends({
|
257 |
+
xmlns: "http://www.w3.org/2000/svg"
|
258 |
+
}, props), _ref);
|
259 |
+
}
|
260 |
+
|
261 |
+
export default "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/Pgo8IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxtZXRhZGF0YT5Db3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EtMTEtMTEtMTEtMjYgMC0xNCAxMS0yNWwxMDEtMTAxLTEwMS0xMDFxLTExLTExLTExLTI1IDAtMTUgMTEtMjZsNTAtNTBxMTAtMTEgMjUtMTEgMTUgMCAyNiAxMWwxMDEgMTAxIDEwMS0xMDFxMTAtMTEgMjUtMTEgMTUgMCAyNSAxMWw1MSA1MHExMCAxMSAxMCAyNnogbTIxNiAxMjZxMC0xMTctNTctMjE1dC0xNTYtMTU2LTIxNS01OC0yMTYgNTgtMTU1IDE1Ni01OCAyMTUgNTggMjE1IDE1NSAxNTYgMjE2IDU4IDIxNS01OCAxNTYtMTU2IDU3LTIxNXoiIGhvcml6LWFkdi14PSI4NTcuMSIgLz4KPGdseXBoIGdseXBoLW5hbWU9Im9rLWNpcmNsZWQiIHVuaWNvZGU9IiYjeGU4MmY7IiBkPSJtNzE3IDQ0MHEwIDE2LTExIDI2bC01MCA1MHEtMTEgMTEtMjUgMTF0LTI2LTExbC0yMjctMjI3LTEyNiAxMjZxLTExIDExLTI1IDExdC0yNi0xMWwtNTAtNTBxLTEwLTEwLTEwLTI2IDAtMTUgMTAtMjVsMjAyLTIwMnExMC0xMCAyNS0xMCAxNSAwIDI1IDEwbDMwMyAzMDNxMTEgMTAgMTEgMjV6IG0xNDAtOTBxMC0xMTctNTctMjE1dC0xNTYtMTU2LTIxNS01OC0yMTYgNTgtMTU1IDE1Ni01OCAyMTUgNTggMjE1IDE1NSAxNTYgMjE2IDU4IDIxNS01OCAxNTYtMTU2IDU3LTIxNXoiIGhvcml6LWFkdi14PSI4NTcuMSIgLz4KPC9mb250Pgo8L2RlZnM+Cjwvc3ZnPg==";
|
262 |
+
export { SvgJobManager as ReactComponent };
|
assets/dist/images/ajax-loader-ea183bf26ae76dec039869d4bc7060cb.gif
ADDED
Binary file
|
assets/dist/js/admin.asset.php
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<?php return array('dependencies' => array('wp-polyfill'), 'version' => 'f6eb8bb1b92fb8f9c0970d5e5fdf3541');
|
assets/dist/js/admin.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
!function(t){var e={};function n(a){if(e[a])return e[a].exports;var r=e[a]={i:a,l:!1,exports:{}};return t[a].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=t,n.c=e,n.d=function(t,e,a){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:a})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(a,r,function(e){return t[e]}.bind(null,r));return a},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=1)}([,function(t,e){jQuery(document).ready((function(t){var e,n,a;t(".tips, .help_tip").each((function(){var e=t(this).attr("data-tip");e&&t(this).tipTip({content:"",fadeIn:50,fadeOut:50,delay:200,enter:function(){t(tiptip_content).text(e)}})})),t("p.form-field-author").on("click","a.change-author",(function(){t(this).closest("p").find(".current-author").hide();var e=t(this).closest("p").find(".change-author");return e.show(),e.find(":input.wpjm-user-search").trigger("init.user_search"),!1})),t("#wpbody").on("init.user_search",":input.wpjm-user-search",(function(){var e={allowClear:!!t(this).data("allow_clear"),placeholder:t(this).data("placeholder"),minimumInputLength:t(this).data("minimum_input_length")?t(this).data("minimum_input_length"):"1",errorLoading:job_manager_admin_params.user_selection_strings.searching,inputTooShort:function(t){var e=t.minimum-t.input.length;return 1===e?job_manager_admin_params.user_selection_strings.input_too_short_1:job_manager_admin_params.user_selection_strings.input_too_short_n.replace("%qty%",e)},loadingMore:function(){return job_manager_admin_params.user_selection_strings.load_more},noResults:function(){return job_manager_admin_params.user_selection_strings.no_matches},searching:function(){return job_manager_admin_params.user_selection_strings.searching},templateResult:function(t){return t.text},templateSelection:function(t){return t.text},width:"100%",ajax:{url:job_manager_admin_params.ajax_url,dataType:"json",delay:1e3,data:function(t){return{term:t.term,action:"job_manager_search_users",security:job_manager_admin_params.search_users_nonce,page:t.page}},processResults:function(e){var n=[];return e&&e.results&&t.each(e.results,(function(t,e){n.push({id:t,text:e})})),{results:n,pagination:{more:e.more}}},cache:!0}};t(this).select2(e)})),t(":input.wpjm-user-search:visible").trigger("init.user_search"),t(document.body).on("click",".wp_job_manager_add_another_file_button",(function(e){e.preventDefault();var n=t(this).data("field_name"),a=t(this).data("field_placeholder"),r=t(this).data("uploader_button_text"),i=t(this).data("uploader_button"),o=t(this).data("view_button");t(this).before('<span class="file_url"><input type="text" name="'+n+'[]" placeholder="'+a+'" /><button class="button button-small wp_job_manager_upload_file_button" data-uploader_button_text="'+r+'">'+i+'</button><button class="button button-small wp_job_manager_view_file_button">'+o+"</button></span>")})),t(document.body).on("click",".wp_job_manager_view_file_button",(function(e){if(e.preventDefault(),!(r=t(this).data("download-url"))){a=t(this).closest(".file_url");var r=(n=a.find("input")).val()}r.indexOf("://")>-1?window.open(r,"_blank"):(n.addClass("file_no_url"),setTimeout((function(){n.removeClass("file_no_url")}),1e3))})),t(document.body).on("click",".wp_job_manager_upload_file_button",(function(r){r.preventDefault(),a=t(this).closest(".file_url"),n=a.find("input"),e||(e=wp.media.frames.file_frame=wp.media({title:t(this).data("uploader_title"),button:{text:t(this).data("uploader_button_text")},multiple:!1})).on("select",(function(){var a=e.state().get("selection").first().toJSON();t(n).val(a.url)})),e.open()}))})),jQuery(document).ready((function(t){var e="job_listing_type";t("#"+e+"checklist li :radio, #"+e+"checklist-pop :radio").on("click",(function(){var n=t(this),a=n.is(":checked"),r=n.val();t("#"+e+"checklist li :radio, #"+e+"checklist-pop :radio").prop("checked",!1),t("#in-"+e+"-"+r+", #in-popular-"+e+"-"+r).prop("checked",a)}))}))}]);
|
assets/dist/js/ajax-file-upload.asset.php
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<?php return array('dependencies' => array('wp-polyfill'), 'version' => '5d1f7bf3f9233188037b685296f52605');
|
assets/dist/js/ajax-file-upload.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
!function(e){var t={};function r(i){if(t[i])return t[i].exports;var a=t[i]={i:i,l:!1,exports:{}};return e[i].call(a.exports,a,a.exports,r),a.l=!0,a.exports}r.m=e,r.c=t,r.d=function(e,t,i){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(i,a,function(t){return e[t]}.bind(null,a));return i},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=2)}({2:function(e,t){jQuery((function(e){e(".wp-job-manager-file-upload").each((function(){e(this).fileupload({dataType:"json",dropZone:e(this),url:job_manager_ajax_file_upload.ajax_url.toString().replace("%%endpoint%%","upload_file"),formData:{script:!0},change:function(){this.validation_errors=[]},add:function(t,r){var i=e(this),a=i.closest("form"),n=i.parent().find(".job-manager-uploaded-files"),o=[],l=!1,s=parseInt(i.data("file_limit"),10);if(void 0!==i.data("file_limit_left")?l=parseInt(i.data("file_limit_left"),10):void 0!==s&&(l=s-parseInt(n.children(".job-manager-uploaded-file").length,10),i.data("file_limit_left",l)),!1!==l&&l<=0){var d="Exceeded upload limit";i.data("file_limit_message")?d=i.data("file_limit_message"):"undefined"!=typeof job_manager_job_submission&&(d=job_manager_job_submission.i18n_over_upload_limit),d=d.replace("%d",s),o.push(d)}var u=e(this).data("file_types");if(u){var f=new RegExp("(.|/)("+u+")$","i");r.originalFiles[0].name.length&&!f.test(r.originalFiles[0].name)&&o.push(job_manager_ajax_file_upload.i18n_invalid_file_type+" "+u)}o.length>0?this.validation_errors=this.validation_errors.concat(o):(!1!==l&&i.data("file_limit_left",l-1),a.find(':input[type="submit"]').attr("disabled","disabled"),r.context=e('<progress value="" max="100"></progress>').appendTo(n),r.submit())},progress:function(e,t){var r=parseInt(t.loaded/t.total*100,10);t.context.val(r)},fail:function(t,r){var i=e(this),a=i.closest("form");r.errorThrown&&window.alert(r.errorThrown),r.context.remove(),a.find(':input[type="submit"]').removeAttr("disabled"),i.trigger("update_status")},done:function(t,r){var i=e(this),a=i.closest("form"),n=i.parent().find(".job-manager-uploaded-files"),o=i.attr("multiple")?1:0,l=["jpg","gif","png","jpeg","jpe"];r.context.remove(),void 0===r.result.success||r.result.success||this.validation_errors.push(r.result.data);var s=this;e.each(r.result.files,(function(t,r){var a;r.error?s.validation_errors.push(r.error):(e.inArray(r.extension,l)>=0?(a=e.parseHTML(job_manager_ajax_file_upload.js_field_html_img),e(a).find(".job-manager-uploaded-file-preview img").attr("src",r.url)):(a=e.parseHTML(job_manager_ajax_file_upload.js_field_html),e(a).find(".job-manager-uploaded-file-name code").text(r.name)),e(a).find(".input-text").val(r.url),e(a).find(".input-text").attr("name","current_"+i.attr("name")),o?n.append(a):n.html(a))})),this.validation_errors.length>0&&(this.validation_errors=this.validation_errors.filter((function(e,t,r){return r.indexOf(e)===t})),window.alert(this.validation_errors.join("\n"))),a.find(':input[type="submit"]').removeAttr("disabled"),i.trigger("update_status")}})}))}))}});
|
assets/dist/js/ajax-filters.asset.php
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<?php return array('dependencies' => array('wp-polyfill'), 'version' => '4c0c93fd17a9cb13f4c9d4c8bbd146e7');
|
assets/dist/js/ajax-filters.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
!function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=3)}([function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},,,function(e,t,n){"use strict";n.r(t);var i=n(0),o=n.n(i);jQuery(document).ready((function(e){function t(t){return!(!window.sessionStorage||"function"!=typeof window.sessionStorage.setItem||e(document.body).hasClass("disable-job-manager-form-state-storage")||t.data("disable-form-state-storage"))}function n(t){var n=e("div.job_listings").index(t),i=t.data("post_id");return void 0!==i&&i||(i=window.location.href.replace(location.hash,"")),"job_listing_"+i+"_"+n}function i(e,i){if(!t(e))return!1;"object"!==o()(i)&&(i={});var r=n(e);try{return window.sessionStorage.setItem(r,JSON.stringify(i))}catch(e){}return!1}function r(e){if(!t(e))return!1;var i=n(e);try{var o=window.sessionStorage.getItem(i);if(o)return JSON.parse(o)}catch(e){}return!1}function a(e,n){if(!t(e)||!e)return!1;var o=r(e);return!!o&&(o.persist_results=n,i(e,o))}function s(e){if(!t(e)||!e)return!1;var n=r(e);if(!n)return!1;var o=e.find(".job_filters");return n.form=o.serialize(),i(e,n)}function l(t,n,i){var o=t.find(".job_listings"),r=t.find(".showing_jobs");if("boolean"!=typeof i&&(i=!1),"string"==typeof n.showing&&n.showing){var a=jQuery("<span>").html(n.showing);r.show().html("").html(n.showing_links).prepend(a)}else r.hide();return n.showing_all?r.addClass("wp-job-manager-showing-all"):r.removeClass("wp-job-manager-showing-all"),n.html&&(i?o.append(n.html):o.html(n.html)),!0===t.data("show_pagination")?(t.find(".job-manager-pagination").remove(),n.pagination&&t.append(n.pagination)):(!n.found_jobs||n.max_num_pages<=n.data.page?e(".load_more_jobs:not(.load_previous)",t).hide():e(".load_more_jobs",t).show(),e(".load_more_jobs",t).removeClass("loading").data("page",n.data.page),e("li.job_listing",o).css("visibility","visible")),!0}e(document).on("click","a",(function(){e("div.job_listings").each((function(){s(e(this))}))})),e(document).on("submit","form",(function(){e("div.job_listings").each((function(){s(e(this))}))}));var d=[];e("div.job_listings").on("click","li.job_listing a",(function(){a(e(this).closest("div.job_listings"),!0)})).on("click",".job-manager-pagination a",(function(){var t=e(this).closest("div.job_listings"),n=e(this).data("page");return t.triggerHandler("update_results",[n,!1]),e("body, html").animate({scrollTop:t.offset().top},600),!1})).on("update_results",(function(o,a,s){var c,u,f,g="",p=e(this),_=p.find(".job_filters"),h=p.find(".job_listings"),b=p.data("per_page"),m=p.data("orderby"),y=p.data("order"),j=p.data("featured"),v=p.data("filled"),w=p.data("job_types"),S=p.data("post_status"),k=e("div.job_listings").index(this);if(!(k<0)){if(function(e){if(!t(e))return!1;var i=n(e);try{window.sessionStorage.removeItem(i)}catch(e){return!1}}(p),d[k]&&d[k].abort(),s&&1!==a||(e("li.job_listing, li.no_job_listings_found",h).css("visibility","hidden"),h.addClass("loading")),p.find(".load_more_jobs").data("page",a),!0===p.data("show_filters")){var x=[];e(':input[name="filter_job_type[]"]:checked, :input[name="filter_job_type[]"][type="hidden"], :input[name="filter_job_type"]',_).each((function(){x.push(e(this).val())})),c=_.find(':input[name^="search_categories"]').map((function(){return e(this).val()})).get(),u="",f="";var O=_.find(':input[name="search_keywords"]'),C=_.find(':input[name="search_location"]');O.val()!==O.attr("placeholder")&&(u=O.val()),C.val()!==C.attr("placeholder")&&(f=C.val()),g={lang:job_manager_ajax_filters.lang,search_keywords:u,search_location:f,search_categories:c,filter_job_type:x,filter_post_status:S,per_page:b,orderby:m,order:y,page:a,featured:j,filled:v,show_pagination:p.data("show_pagination"),form_data:_.serialize()}}else c=p.data("categories"),u=p.data("keywords"),f=p.data("location"),c&&("string"!=typeof c&&(c=String(c)),c=c.split(",")),g={lang:job_manager_ajax_filters.lang,search_categories:c,search_keywords:u,search_location:f,filter_post_status:S,filter_job_type:w,per_page:b,orderby:m,order:y,page:a,featured:j,filled:v,show_pagination:p.data("show_pagination")};d[k]=e.ajax({type:"POST",url:job_manager_ajax_filters.ajax_url.toString().replace("%%endpoint%%","get_listings"),data:g,success:function(e){if(e)try{e.data=g,l(p,e,s),h.removeClass("loading"),p.triggerHandler("updated_results",e),function(e,n){if(!t(e))return!1;var o=r(e);o||(o={persist_results:!1});var a=e.find(".job_listings");n.html=a.html(),o.results=n,i(e,o)}(p,e)}catch(e){window.console&&window.console.log(e)}},error:function(e,t,n){window.console&&"abort"!==t&&window.console.log(t+": "+n)},statusCode:{404:function(){window.console&&window.console.log("Error 404: Ajax Endpoint cannot be reached. Go to Settings > Permalinks and save to resolve.")}}})}})),e("#search_keywords, #search_location, .job_types :input, #search_categories, .job-manager-filter").change((function(){var t=e(this).closest("div.job_listings");t.triggerHandler("update_results",[1,!1]),i(t)})).on("keyup",(function(t){13===t.which&&e(this).trigger("change")})),e(".job_filters").on("click",".reset",(function(){var t=e(this).closest("div.job_listings"),n=e(this).closest("form");return n.find(':input[name="search_keywords"], :input[name="search_location"], .job-manager-filter').not(':input[type="hidden"]').val("").trigger("change.select2"),n.find(':input[name^="search_categories"]').not(':input[type="hidden"]').val("").trigger("change.select2"),e(':input[name="filter_job_type[]"]',n).not(':input[type="hidden"]').attr("checked","checked"),t.triggerHandler("reset"),t.triggerHandler("update_results",[1,!1]),i(t),!1})).on("submit",(function(){return!1})),e(document.body).on("click",".load_more_jobs",(function(){var t=e(this).closest("div.job_listings"),n=parseInt(e(this).data("page")||1,10);return e(this).addClass("loading"),n+=1,e(this).data("page",n),t.triggerHandler("update_results",[n,!0]),!1})),e.isFunction(e.fn.select2)&&"undefined"!=typeof job_manager_select2_filters_args&&e('select[name^="search_categories"]:visible').select2(job_manager_select2_filters_args),e(window).on("unload",(function(){return e("div.job_listings").each((function(){var n=r(e(this));n&&!n.persist_results&&function(e){if(!t(e))return!1;var n=r(e);n||(n={}),n.results=null,i(e,n)}(e(this))})),!0})),e("div.job_listings").each((function(){var n=e(this),o=n.find(".job_filters"),s=!1,d=r(n);d&&(d.results&&(s=l(n,d.results),a(n,!1),function(e){if(!t(e))return!1;var n=r(e);n||(n={}),n.form=null,i(e,n)}(n)),"string"==typeof d.form&&""!==d.form&&(o.find("input[type=checkbox]").prop("checked",!1),o.deserialize(d.form),o.find(':input[name^="search_categories"]').not(':input[type="hidden"]').trigger("change.select2"))),!s&&o.length>0&&n.triggerHandler("update_results",[1,!1])}))}))}]);
|
assets/dist/js/datepicker.asset.php
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<?php return array('dependencies' => array('wp-polyfill'), 'version' => '1f749d02a1afb940c769b15f18c9e6c5');
|
assets/dist/js/datepicker.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
!function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=4)}({4:function(e,t){jQuery(document).ready((function(e){var t={altFormat:"yy-mm-dd"};"undefined"!=typeof job_manager_datepicker&&(t.dateFormat=job_manager_datepicker.date_format),e("input.job-manager-datepicker, input#_job_expires").each((function(){var r=e("<input />",{type:"hidden",name:e(this).attr("name")}).insertAfter(e(this));if(e(this).attr("name",e(this).attr("name")+"-datepicker"),e(this).keyup((function(){""===e(this).val()&&r.val("")})),e(this).datepicker(e.extend({},t,{altField:r})),e(this).val()){var n=e(this).val().split("-");if(3===n.length){var a=new Date(parseInt(n[0],10),parseInt(n[1],10)-1,parseInt(n[2],10));e(this).datepicker("setDate",a)}}}))}))}});
|
assets/dist/js/job-application.asset.php
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<?php return array('dependencies' => array('wp-polyfill'), 'version' => '316e48c24e9343078977cd07e5efec42');
|
assets/dist/js/job-application.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
!function(e){var t={};function o(i){if(t[i])return t[i].exports;var n=t[i]={i:i,l:!1,exports:{}};return e[i].call(n.exports,n,n.exports,o),n.l=!0,n.exports}o.m=e,o.c=t,o.d=function(e,t,i){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(o.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)o.d(i,n,function(t){return e[t]}.bind(null,n));return i},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=5)}({5:function(e,t){jQuery(document).ready((function(e){e("body").hasClass("job-application-details-keep-open")||e(".application_details").hide(),e(document.body).on("click",".job_application .application_button",(function(){var t=e(this).siblings(".application_details").first(),o=e(this);t.slideToggle(400,(function(){if(e(this).is(":visible")){t.trigger("visible");var i=Math.max(Math.min(t.outerHeight(),200),.33*t.outerHeight()),n=t.offset().top+i,r=5;e("#wpadminbar").length>0&&"fixed"===e("#wpadminbar").css("position")&&(r+=e("#wpadminbar").outerHeight()),e("header").length>0&&"fixed"===e("header").css("position")&&(r+=e("header").outerHeight());var a=e(window).scrollTop()+window.innerHeight,l=t.offset().top+t.outerHeight()-a,u=window.innerHeight-r;l>0&&t.outerHeight()<.9*u?e("html, body").animate({scrollTop:e(window).scrollTop()+l+5},400):a<n&&e("html, body").animate({scrollTop:o.offset().top-r},600)}}))}))}))}});
|
assets/dist/js/job-dashboard.asset.php
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<?php return array('dependencies' => array('wp-polyfill'), 'version' => '965d8392b592774c3bd98be112c92c47');
|
assets/dist/js/job-dashboard.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
!function(e){var n={};function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(n){return e[n]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=6)}({6:function(e,n){jQuery(document).ready((function(e){e(".job-dashboard-action-delete").click((function(){return window.confirm(job_manager_job_dashboard.i18n_confirm_delete)}))}))}});
|
assets/dist/js/job-submission.asset.php
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<?php return array('dependencies' => array('wp-polyfill'), 'version' => 'f5402402202a6f6a4b3e82978bc8a679');
|
assets/dist/js/job-submission.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
!function(e){var t={};function i(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=7)}({7:function(e,t){jQuery(document).ready((function(e){function t(){return"undefined"!=typeof tinymce&&null!=tinymce.get("job_description")}e(document.body).on("click",".job-manager-remove-uploaded-file",(function(){var t=e(this).closest(".fieldset-type-file").find("input[type=file][multiple][data-file_limit]");return e(this).closest(".job-manager-uploaded-file").remove(),t.trigger("update_status"),!1})),e(document.body).on("update_status",".fieldset-type-file input[type=file][multiple][data-file_limit]",(function(){var t=parseInt(e(this).data("file_limit"),10)-parseInt(e(this).siblings(".job-manager-uploaded-files").first().children(".job-manager-uploaded-file").length,10);t>0?e(this).prop("disabled",!1):e(this).prop("disabled",!0),e(this).data("file_limit_left",t)})),e(document.body).on("change",".fieldset-type-file input[type=file][multiple][data-file_limit]",(function(){var t=parseInt(e(this).data("file_limit"),10),i=t-parseInt(e(this).siblings(".job-manager-uploaded-files").first().children(".job-manager-uploaded-file").length,10),n=e(this).get(0);if(void 0!==n.files){var r=parseInt(n.files.length,10);if(t&&r>i){var a=job_manager_job_submission.i18n_over_upload_limit;e(this).data("file_limit_message")&&"string"==typeof e(this).data("file_limit_message")&&(a=e(this).data("file_limit_message")),a=a.replace("%d",t),n.setCustomValidity(a)}else n.setCustomValidity("");n.reportValidity()}return!0})),e(".fieldset-type-file input[type=file][multiple][data-file_limit]").trigger("update_status"),e(document.body).on("click","#submit-job-form .button.save_draft",(function(){var t=e(this).closest("#submit-job-form"),i=!0;return t.addClass("disable-validation"),setTimeout((function(){t.removeClass("disable-validation")}),1e3),t.find("div.draft-required input[required]").each((function(){if(e(this).get(0).reportValidity(),e(this).is(":invalid"))return i=!1,!1})),i})),e(document.body).on("submit",".job-manager-form",(function(i){e(this).hasClass("disable-validation")||!function(){if((n=e("#job_category")).length&&(!n.val()||!n.val().length)&&n.parent().hasClass("required-field")&&n.next().hasClass("select2")){e(this).find("input[type=submit]").blur();var i=e(".fieldset-job_category .select2-search__field")[0];return i.setCustomValidity(job_manager_job_submission.i18n_required_field),i.reportValidity(),!0}var n;if(function(){if(!t())return!1;var i=tinymce.get("job_description").getContent(),n=e("#job_description");return 0===i.length&&n.parents(".required-field").length&&n.parents(".required-field").is(":visible")}()){e(this).find("input[type=submit]").blur();var r=e("#job_description");return r.css({height:1,resize:"none",padding:0}),r.show(),r[0].setCustomValidity(job_manager_job_submission.i18n_required_field),r[0].reportValidity(),!0}return!1}()?e(this).hasClass("prevent-spinner-behavior")||(e(this).find(".spinner").addClass("is-active"),e(this).find("input[type=submit]").addClass("disabled").on("click",(function(){return!1}))):i.preventDefault()})),e("#job_category").on("select2:select",(function(){var t=e(".fieldset-job_category .select2-search__field")[0];t.setCustomValidity(""),t.reportValidity()})),setTimeout((function(){t()&&tinymce.get("job_description").on("Change",(function(){var t=e("#job_description");t.hide(),t[0].setCustomValidity(""),t[0].reportValidity()}))}),1e3)}))}});
|
assets/dist/js/multiselect.asset.php
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<?php return array('dependencies' => array('wp-polyfill'), 'version' => 'f4099eea3ad0f37447c5970f6ba3d508');
|
assets/dist/js/multiselect.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=8)}({8:function(e,t){jQuery((function(e){e.isFunction(e.fn.select2)&&"undefined"!=typeof job_manager_select2_args&&e(".job-manager-multiselect:visible").select2(job_manager_select2_args)}))}});
|
assets/dist/js/term-multiselect.asset.php
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
<?php return array('dependencies' => array('wp-polyfill'), 'version' => '802e48af8e290de600542fad603ea616');
|
assets/dist/js/term-multiselect.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=9)}({9:function(e,t){jQuery((function(e){e.isFunction(e.fn.select2)&&"undefined"!=typeof job_manager_select2_args&&e(".job-manager-category-dropdown:visible").select2(job_manager_select2_args)}))}});
|
assets/lib/jquery-chosen/chosen.css
ADDED
@@ -0,0 +1,435 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*!
|
2 |
+
Chosen, a Select Box Enhancer for jQuery and Prototype
|
3 |
+
by Patrick Filler for Harvest, http://getharvest.com
|
4 |
+
|
5 |
+
Version 1.1.0
|
6 |
+
Full source at https://github.com/harvesthq/chosen
|
7 |
+
Copyright (c) 2011 Harvest http://getharvest.com
|
8 |
+
|
9 |
+
MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md
|
10 |
+
This file is generated by `grunt build`, do not edit it by hand.
|
11 |
+
*/
|
12 |
+
|
13 |
+
/* @group Base */
|
14 |
+
.chosen-container {
|
15 |
+
position: relative;
|
16 |
+
display: inline-block;
|
17 |
+
vertical-align: middle;
|
18 |
+
font-size: 13px;
|
19 |
+
zoom: 1;
|
20 |
+
*display: inline;
|
21 |
+
-webkit-user-select: none;
|
22 |
+
-moz-user-select: none;
|
23 |
+
user-select: none;
|
24 |
+
}
|
25 |
+
.chosen-container .chosen-drop {
|
26 |
+
position: absolute;
|
27 |
+
top: 100%;
|
28 |
+
left: -9999px;
|
29 |
+
z-index: 1010;
|
30 |
+
-webkit-box-sizing: border-box;
|
31 |
+
-moz-box-sizing: border-box;
|
32 |
+
box-sizing: border-box;
|
33 |
+
width: 100%;
|
34 |
+
border: 1px solid #aaa;
|
35 |
+
border-top: 0;
|
36 |
+
background: #fff;
|
37 |
+
box-shadow: 0 4px 5px rgba(0, 0, 0, 0.15);
|
38 |
+
}
|
39 |
+
.chosen-container.chosen-with-drop .chosen-drop {
|
40 |
+
left: 0;
|
41 |
+
}
|
42 |
+
.chosen-container a {
|
43 |
+
cursor: pointer;
|
44 |
+
}
|
45 |
+
|
46 |
+
/* @end */
|
47 |
+
/* @group Single Chosen */
|
48 |
+
.chosen-container-single .chosen-single {
|
49 |
+
position: relative;
|
50 |
+
display: block;
|
51 |
+
overflow: hidden;
|
52 |
+
padding: 0 0 0 8px;
|
53 |
+
height: 23px;
|
54 |
+
border: 1px solid #aaa;
|
55 |
+
border-radius: 5px;
|
56 |
+
background-color: #fff;
|
57 |
+
background: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(20%, #ffffff), color-stop(50%, #f6f6f6), color-stop(52%, #eeeeee), color-stop(100%, #f4f4f4));
|
58 |
+
background: -webkit-linear-gradient(top, #ffffff 20%, #f6f6f6 50%, #eeeeee 52%, #f4f4f4 100%);
|
59 |
+
background: -moz-linear-gradient(top, #ffffff 20%, #f6f6f6 50%, #eeeeee 52%, #f4f4f4 100%);
|
60 |
+
background: -o-linear-gradient(top, #ffffff 20%, #f6f6f6 50%, #eeeeee 52%, #f4f4f4 100%);
|
61 |
+
background: linear-gradient(top, #ffffff 20%, #f6f6f6 50%, #eeeeee 52%, #f4f4f4 100%);
|
62 |
+
background-clip: padding-box;
|
63 |
+
box-shadow: 0 0 3px white inset, 0 1px 1px rgba(0, 0, 0, 0.1);
|
64 |
+
color: #444;
|
65 |
+
text-decoration: none;
|
66 |
+
white-space: nowrap;
|
67 |
+
line-height: 24px;
|
68 |
+
}
|
69 |
+
.chosen-container-single .chosen-default {
|
70 |
+
color: #999;
|
71 |
+
}
|
72 |
+
.chosen-container-single .chosen-single span {
|
73 |
+
display: block;
|
74 |
+
overflow: hidden;
|
75 |
+
margin-right: 26px;
|
76 |
+
text-overflow: ellipsis;
|
77 |
+
white-space: nowrap;
|
78 |
+
}
|
79 |
+
.chosen-container-single .chosen-single-with-deselect span {
|
80 |
+
margin-right: 38px;
|
81 |
+
}
|
82 |
+
.chosen-container-single .chosen-single abbr {
|
83 |
+
position: absolute;
|
84 |
+
top: 6px;
|
85 |
+
right: 26px;
|
86 |
+
display: block;
|
87 |
+
width: 12px;
|
88 |
+
height: 12px;
|
89 |
+
background: url('./images/chosen-sprite.png') -42px 1px no-repeat;
|
90 |
+
font-size: 1px;
|
91 |
+
}
|
92 |
+
.chosen-container-single .chosen-single abbr:hover {
|
93 |
+
background-position: -42px -10px;
|
94 |
+
}
|
95 |
+
.chosen-container-single.chosen-disabled .chosen-single abbr:hover {
|
96 |
+
background-position: -42px -10px;
|
97 |
+
}
|
98 |
+
.chosen-container-single .chosen-single div {
|
99 |
+
position: absolute;
|
100 |
+
top: 0;
|
101 |
+
right: 0;
|
102 |
+
display: block;
|
103 |
+
width: 18px;
|
104 |
+
height: 100%;
|
105 |
+
}
|
106 |
+
.chosen-container-single .chosen-single div b {
|
107 |
+
display: block;
|
108 |
+
width: 100%;
|
109 |
+
height: 100%;
|
110 |
+
background: url('./images/chosen-sprite.png') no-repeat 0px 2px;
|
111 |
+
}
|
112 |
+
.chosen-container-single .chosen-search {
|
113 |
+
position: relative;
|
114 |
+
z-index: 1010;
|
115 |
+
margin: 0;
|
116 |
+
padding: 3px 4px;
|
117 |
+
white-space: nowrap;
|
118 |
+
}
|
119 |
+
.chosen-container-single .chosen-search input[type="text"] {
|
120 |
+
-webkit-box-sizing: border-box;
|
121 |
+
-moz-box-sizing: border-box;
|
122 |
+
box-sizing: border-box;
|
123 |
+
margin: 1px 0;
|
124 |
+
padding: 4px 20px 4px 5px;
|
125 |
+
width: 100%;
|
126 |
+
height: auto;
|
127 |
+
outline: 0;
|
128 |
+
border: 1px solid #aaa;
|
129 |
+
background: white url('./images/chosen-sprite.png') no-repeat 100% -20px;
|
130 |
+
background: url('./images/chosen-sprite.png') no-repeat 100% -20px;
|
131 |
+
font-size: 1em;
|
132 |
+
font-family: sans-serif;
|
133 |
+
line-height: normal;
|
134 |
+
border-radius: 0;
|
135 |
+
}
|
136 |
+
.chosen-container-single .chosen-drop {
|
137 |
+
margin-top: -1px;
|
138 |
+
border-radius: 0 0 4px 4px;
|
139 |
+
background-clip: padding-box;
|
140 |
+
}
|
141 |
+
.chosen-container-single.chosen-container-single-nosearch .chosen-search {
|
142 |
+
position: absolute;
|
143 |
+
left: -9999px;
|
144 |
+
}
|
145 |
+
|
146 |
+
/* @end */
|
147 |
+
/* @group Results */
|
148 |
+
.chosen-container .chosen-results {
|
149 |
+
position: relative;
|
150 |
+
overflow-x: hidden;
|
151 |
+
overflow-y: auto;
|
152 |
+
margin: 0 4px 4px 0;
|
153 |
+
padding: 0 0 0 4px;
|
154 |
+
max-height: 240px;
|
155 |
+
-webkit-overflow-scrolling: touch;
|
156 |
+
}
|
157 |
+
.chosen-container .chosen-results li {
|
158 |
+
display: none;
|
159 |
+
margin: 0;
|
160 |
+
padding: 5px 6px;
|
161 |
+
list-style: none;
|
162 |
+
line-height: 15px;
|
163 |
+
-webkit-touch-callout: none;
|
164 |
+
}
|
165 |
+
.chosen-container .chosen-results li.active-result {
|
166 |
+
display: list-item;
|
167 |
+
cursor: pointer;
|
168 |
+
}
|
169 |
+
.chosen-container .chosen-results li.disabled-result {
|
170 |
+
display: list-item;
|
171 |
+
color: #ccc;
|
172 |
+
cursor: default;
|
173 |
+
}
|
174 |
+
.chosen-container .chosen-results li.highlighted {
|
175 |
+
background-color: #3875d7;
|
176 |
+
background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(20%, #3875d7), color-stop(90%, #2a62bc));
|
177 |
+
background-image: -webkit-linear-gradient(#3875d7 20%, #2a62bc 90%);
|
178 |
+
background-image: -moz-linear-gradient(#3875d7 20%, #2a62bc 90%);
|
179 |
+
background-image: -o-linear-gradient(#3875d7 20%, #2a62bc 90%);
|
180 |
+
background-image: linear-gradient(#3875d7 20%, #2a62bc 90%);
|
181 |
+
color: #fff;
|
182 |
+
}
|
183 |
+
.chosen-container .chosen-results li.no-results {
|
184 |
+
display: list-item;
|
185 |
+
background: #f4f4f4;
|
186 |
+
}
|
187 |
+
.chosen-container .chosen-results li.group-result {
|
188 |
+
display: list-item;
|
189 |
+
font-weight: bold;
|
190 |
+
cursor: default;
|
191 |
+
}
|
192 |
+
.chosen-container .chosen-results li.group-option {
|
193 |
+
padding-left: 15px;
|
194 |
+
}
|
195 |
+
.chosen-container .chosen-results li em {
|
196 |
+
font-style: normal;
|
197 |
+
text-decoration: underline;
|
198 |
+
}
|
199 |
+
|
200 |
+
/* @end */
|
201 |
+
/* @group Multi Chosen */
|
202 |
+
.chosen-container-multi .chosen-choices {
|
203 |
+
position: relative;
|
204 |
+
overflow: hidden;
|
205 |
+
-webkit-box-sizing: border-box;
|
206 |
+
-moz-box-sizing: border-box;
|
207 |
+
box-sizing: border-box;
|
208 |
+
margin: 0;
|
209 |
+
padding: 0;
|
210 |
+
width: 100%;
|
211 |
+
height: auto !important;
|
212 |
+
height: 1%;
|
213 |
+
border: 1px solid #aaa;
|
214 |
+
background-color: #fff;
|
215 |
+
background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(1%, #eeeeee), color-stop(15%, #ffffff));
|
216 |
+
background-image: -webkit-linear-gradient(#eeeeee 1%, #ffffff 15%);
|
217 |
+
background-image: -moz-linear-gradient(#eeeeee 1%, #ffffff 15%);
|
218 |
+
background-image: -o-linear-gradient(#eeeeee 1%, #ffffff 15%);
|
219 |
+
background-image: linear-gradient(#eeeeee 1%, #ffffff 15%);
|
220 |
+
cursor: text;
|
221 |
+
}
|
222 |
+
.chosen-container-multi .chosen-choices li {
|
223 |
+
float: left;
|
224 |
+
list-style: none;
|
225 |
+
}
|
226 |
+
.chosen-container-multi .chosen-choices li.search-field {
|
227 |
+
margin: 0;
|
228 |
+
padding: 0;
|
229 |
+
white-space: nowrap;
|
230 |
+
}
|
231 |
+
.chosen-container-multi .chosen-choices li.search-field input[type="text"] {
|
232 |
+
margin: 1px 0;
|
233 |
+
padding: 5px;
|
234 |
+
height: auto;
|
235 |
+
outline: 0;
|
236 |
+
border: 0 !important;
|
237 |
+
background: transparent !important;
|
238 |
+
box-shadow: none;
|
239 |
+
color: #666;
|
240 |
+
font-size: 100%;
|
241 |
+
font-family: sans-serif;
|
242 |
+
line-height: normal;
|
243 |
+
border-radius: 0;
|
244 |
+
}
|
245 |
+
.chosen-container-multi .chosen-choices li.search-field .default {
|
246 |
+
color: #999;
|
247 |
+
}
|
248 |
+
.chosen-container-multi .chosen-choices li.search-choice {
|
249 |
+
position: relative;
|
250 |
+
margin: 3px 0 3px 5px;
|
251 |
+
padding: 3px 20px 3px 5px;
|
252 |
+
border: 1px solid #aaa;
|
253 |
+
border-radius: 3px;
|
254 |
+
background-color: #e4e4e4;
|
255 |
+
background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(20%, #f4f4f4), color-stop(50%, #f0f0f0), color-stop(52%, #e8e8e8), color-stop(100%, #eeeeee));
|
256 |
+
background-image: -webkit-linear-gradient(#f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
|
257 |
+
background-image: -moz-linear-gradient(#f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
|
258 |
+
background-image: -o-linear-gradient(#f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
|
259 |
+
background-image: linear-gradient(#f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
|
260 |
+
background-clip: padding-box;
|
261 |
+
box-shadow: 0 0 2px white inset, 0 1px 0 rgba(0, 0, 0, 0.05);
|
262 |
+
color: #333;
|
263 |
+
line-height: 13px;
|
264 |
+
cursor: default;
|
265 |
+
}
|
266 |
+
.chosen-container-multi .chosen-choices li.search-choice .search-choice-close {
|
267 |
+
position: absolute;
|
268 |
+
top: 4px;
|
269 |
+
right: 3px;
|
270 |
+
display: block;
|
271 |
+
width: 12px;
|
272 |
+
height: 12px;
|
273 |
+
background: url('./images/chosen-sprite.png') -42px 1px no-repeat;
|
274 |
+
font-size: 1px;
|
275 |
+
}
|
276 |
+
.chosen-container-multi .chosen-choices li.search-choice .search-choice-close:hover {
|
277 |
+
background-position: -42px -10px;
|
278 |
+
}
|
279 |
+
.chosen-container-multi .chosen-choices li.search-choice-disabled {
|
280 |
+
padding-right: 5px;
|
281 |
+
border: 1px solid #ccc;
|
282 |
+
background-color: #e4e4e4;
|
283 |
+
background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(20%, #f4f4f4), color-stop(50%, #f0f0f0), color-stop(52%, #e8e8e8), color-stop(100%, #eeeeee));
|
284 |
+
background-image: -webkit-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
|
285 |
+
background-image: -moz-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
|
286 |
+
background-image: -o-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
|
287 |
+
background-image: linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
|
288 |
+
color: #666;
|
289 |
+
}
|
290 |
+
.chosen-container-multi .chosen-choices li.search-choice-focus {
|
291 |
+
background: #d4d4d4;
|
292 |
+
}
|
293 |
+
.chosen-container-multi .chosen-choices li.search-choice-focus .search-choice-close {
|
294 |
+
background-position: -42px -10px;
|
295 |
+
}
|
296 |
+
.chosen-container-multi .chosen-results {
|
297 |
+
margin: 0;
|
298 |
+
padding: 0;
|
299 |
+
}
|
300 |
+
.chosen-container-multi .chosen-drop .result-selected {
|
301 |
+
display: list-item;
|
302 |
+
color: #ccc;
|
303 |
+
cursor: default;
|
304 |
+
}
|
305 |
+
|
306 |
+
/* @end */
|
307 |
+
/* @group Active */
|
308 |
+
.chosen-container-active .chosen-single {
|
309 |
+
border: 1px solid #5897fb;
|
310 |
+
box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
|
311 |
+
}
|
312 |
+
.chosen-container-active.chosen-with-drop .chosen-single {
|
313 |
+
border: 1px solid #aaa;
|
314 |
+
-moz-border-radius-bottomright: 0;
|
315 |
+
border-bottom-right-radius: 0;
|
316 |
+
-moz-border-radius-bottomleft: 0;
|
317 |
+
border-bottom-left-radius: 0;
|
318 |
+
background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(20%, #eeeeee), color-stop(80%, #ffffff));
|
319 |
+
background-image: -webkit-linear-gradient(#eeeeee 20%, #ffffff 80%);
|
320 |
+
background-image: -moz-linear-gradient(#eeeeee 20%, #ffffff 80%);
|
321 |
+
background-image: -o-linear-gradient(#eeeeee 20%, #ffffff 80%);
|
322 |
+
background-image: linear-gradient(#eeeeee 20%, #ffffff 80%);
|
323 |
+
box-shadow: 0 1px 0 #fff inset;
|
324 |
+
}
|
325 |
+
.chosen-container-active.chosen-with-drop .chosen-single div {
|
326 |
+
border-left: none;
|
327 |
+
background: transparent;
|
328 |
+
}
|
329 |
+
.chosen-container-active.chosen-with-drop .chosen-single div b {
|
330 |
+
background-position: -18px 2px;
|
331 |
+
}
|
332 |
+
.chosen-container-active .chosen-choices {
|
333 |
+
border: 1px solid #5897fb;
|
334 |
+
box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
|
335 |
+
}
|
336 |
+
.chosen-container-active .chosen-choices li.search-field input[type="text"] {
|
337 |
+
color: #111 !important;
|
338 |
+
}
|
339 |
+
|
340 |
+
/* @end */
|
341 |
+
/* @group Disabled Support */
|
342 |
+
.chosen-disabled {
|
343 |
+
opacity: 0.5 !important;
|
344 |
+
cursor: default;
|
345 |
+
}
|
346 |
+
.chosen-disabled .chosen-single {
|
347 |
+
cursor: default;
|
348 |
+
}
|
349 |
+
.chosen-disabled .chosen-choices .search-choice .search-choice-close {
|
350 |
+
cursor: default;
|
351 |
+
}
|
352 |
+
|
353 |
+
/* @end */
|
354 |
+
/* @group Right to Left */
|
355 |
+
.chosen-rtl {
|
356 |
+
text-align: right;
|
357 |
+
}
|
358 |
+
.chosen-rtl .chosen-single {
|
359 |
+
overflow: visible;
|
360 |
+
padding: 0 8px 0 0;
|
361 |
+
}
|
362 |
+
.chosen-rtl .chosen-single span {
|
363 |
+
margin-right: 0;
|
364 |
+
margin-left: 26px;
|
365 |
+
direction: rtl;
|
366 |
+
}
|
367 |
+
.chosen-rtl .chosen-single-with-deselect span {
|
368 |
+
margin-left: 38px;
|
369 |
+
}
|
370 |
+
.chosen-rtl .chosen-single div {
|
371 |
+
right: auto;
|
372 |
+
left: 3px;
|
373 |
+
}
|
374 |
+
.chosen-rtl .chosen-single abbr {
|
375 |
+
right: auto;
|
376 |
+
left: 26px;
|
377 |
+
}
|
378 |
+
.chosen-rtl .chosen-choices li {
|
379 |
+
float: right;
|
380 |
+
}
|
381 |
+
.chosen-rtl .chosen-choices li.search-field input[type="text"] {
|
382 |
+
direction: rtl;
|
383 |
+
}
|
384 |
+
.chosen-rtl .chosen-choices li.search-choice {
|
385 |
+
margin: 3px 5px 3px 0;
|
386 |
+
padding: 3px 5px 3px 19px;
|
387 |
+
}
|
388 |
+
.chosen-rtl .chosen-choices li.search-choice .search-choice-close {
|
389 |
+
right: auto;
|
390 |
+
left: 4px;
|
391 |
+
}
|
392 |
+
.chosen-rtl.chosen-container-single-nosearch .chosen-search,
|
393 |
+
.chosen-rtl .chosen-drop {
|
394 |
+
left: 9999px;
|
395 |
+
}
|
396 |
+
.chosen-rtl.chosen-container-single .chosen-results {
|
397 |
+
margin: 0 0 4px 4px;
|
398 |
+
padding: 0 4px 0 0;
|
399 |
+
}
|
400 |
+
.chosen-rtl .chosen-results li.group-option {
|
401 |
+
padding-right: 15px;
|
402 |
+
padding-left: 0;
|
403 |
+
}
|
404 |
+
.chosen-rtl.chosen-container-active.chosen-with-drop .chosen-single div {
|
405 |
+
border-right: none;
|
406 |
+
}
|
407 |
+
.chosen-rtl .chosen-search input[type="text"] {
|
408 |
+
padding: 4px 5px 4px 20px;
|
409 |
+
background: white url('./images/chosen-sprite.png') no-repeat -30px -20px;
|
410 |
+
background: url('./images/chosen-sprite.png') no-repeat -30px -20px;
|
411 |
+
direction: rtl;
|
412 |
+
}
|
413 |
+
.chosen-rtl.chosen-container-single .chosen-single div b {
|
414 |
+
background-position: 6px 2px;
|
415 |
+
}
|
416 |
+
.chosen-rtl.chosen-container-single.chosen-with-drop .chosen-single div b {
|
417 |
+
background-position: -12px 2px;
|
418 |
+
}
|
419 |
+
|
420 |
+
/* @end */
|
421 |
+
/* @group Retina compatibility */
|
422 |
+
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min-resolution: 144dpi) {
|
423 |
+
.chosen-rtl .chosen-search input[type="text"],
|
424 |
+
.chosen-container-single .chosen-single abbr,
|
425 |
+
.chosen-container-single .chosen-single div b,
|
426 |
+
.chosen-container-single .chosen-search input[type="text"],
|
427 |
+
.chosen-container-multi .chosen-choices .search-choice .search-choice-close,
|
428 |
+
.chosen-container .chosen-results-scroll-down span,
|
429 |
+
.chosen-container .chosen-results-scroll-up span {
|
430 |
+
background-image: url('./images/chosen-sprite@2x.png') !important;
|
431 |
+
background-size: 52px 37px !important;
|
432 |
+
background-repeat: no-repeat !important;
|
433 |
+
}
|
434 |
+
}
|
435 |
+
/* @end */
|
assets/lib/jquery-chosen/chosen.jquery.js
ADDED
@@ -0,0 +1,1229 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*!
|
2 |
+
Chosen, a Select Box Enhancer for jQuery and Prototype
|
3 |
+
by Patrick Filler for Harvest, http://getharvest.com
|
4 |
+
|
5 |
+
Version 1.2.0
|
6 |
+
Full source at https://github.com/harvesthq/chosen
|
7 |
+
Copyright (c) 2011-2014 Harvest http://getharvest.com
|
8 |
+
|
9 |
+
MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md
|
10 |
+
This file is generated by `grunt build`, do not edit it by hand.
|
11 |
+
*/
|
12 |
+
|
13 |
+
(function() {
|
14 |
+
var $, AbstractChosen, Chosen, SelectParser, _ref,
|
15 |
+
__hasProp = {}.hasOwnProperty,
|
16 |
+
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
|
17 |
+
|
18 |
+
SelectParser = (function() {
|
19 |
+
function SelectParser() {
|
20 |
+
this.options_index = 0;
|
21 |
+
this.parsed = [];
|
22 |
+
}
|
23 |
+
|
24 |
+
SelectParser.prototype.add_node = function(child) {
|
25 |
+
if (child.nodeName.toUpperCase() === "OPTGROUP") {
|
26 |
+
return this.add_group(child);
|
27 |
+
} else {
|
28 |
+
return this.add_option(child);
|
29 |
+
}
|
30 |
+
};
|
31 |
+
|
32 |
+
SelectParser.prototype.add_group = function(group) {
|
33 |
+
var group_position, option, _i, _len, _ref, _results;
|
34 |
+
group_position = this.parsed.length;
|
35 |
+
this.parsed.push({
|
36 |
+
array_index: group_position,
|
37 |
+
group: true,
|
38 |
+
label: this.escapeExpression(group.label),
|
39 |
+
children: 0,
|
40 |
+
disabled: group.disabled
|
41 |
+
});
|
42 |
+
_ref = group.childNodes;
|
43 |
+
_results = [];
|
44 |
+
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
45 |
+
option = _ref[_i];
|
46 |
+
_results.push(this.add_option(option, group_position, group.disabled));
|
47 |
+
}
|
48 |
+
return _results;
|
49 |
+
};
|
50 |
+
|
51 |
+
SelectParser.prototype.add_option = function(option, group_position, group_disabled) {
|
52 |
+
if (option.nodeName.toUpperCase() === "OPTION") {
|
53 |
+
if (option.text !== "") {
|
54 |
+
if (group_position != null) {
|
55 |
+
this.parsed[group_position].children += 1;
|
56 |
+
}
|
57 |
+
this.parsed.push({
|
58 |
+
array_index: this.parsed.length,
|
59 |
+
options_index: this.options_index,
|
60 |
+
value: option.value,
|
61 |
+
text: option.text,
|
62 |
+
html: option.innerHTML,
|
63 |
+
selected: option.selected,
|
64 |
+
disabled: group_disabled === true ? group_disabled : option.disabled,
|
65 |
+
group_array_index: group_position,
|
66 |
+
classes: option.className,
|
67 |
+
style: option.style.cssText
|
68 |
+
});
|
69 |
+
} else {
|
70 |
+
this.parsed.push({
|
71 |
+
array_index: this.parsed.length,
|
72 |
+
options_index: this.options_index,
|
73 |
+
empty: true
|
74 |
+
});
|
75 |
+
}
|
76 |
+
return this.options_index += 1;
|
77 |
+
}
|
78 |
+
};
|
79 |
+
|
80 |
+
SelectParser.prototype.escapeExpression = function(text) {
|
81 |
+
var map, unsafe_chars;
|
82 |
+
if ((text == null) || text === false) {
|
83 |
+
return "";
|
84 |
+
}
|
85 |
+
if (!/[\&\<\>\"\'\`]/.test(text)) {
|
86 |
+
return text;
|
87 |
+
}
|
88 |
+
map = {
|
89 |
+
"<": "<",
|
90 |
+
">": ">",
|
91 |
+
'"': """,
|
92 |
+
"'": "'",
|
93 |
+
"`": "`"
|
94 |
+
};
|
95 |
+
unsafe_chars = /&(?!\w+;)|[\<\>\"\'\`]/g;
|
96 |
+
return text.replace(unsafe_chars, function(chr) {
|
97 |
+
return map[chr] || "&";
|
98 |
+
});
|
99 |
+
};
|
100 |
+
|
101 |
+
return SelectParser;
|
102 |
+
|
103 |
+
})();
|
104 |
+
|
105 |
+
SelectParser.select_to_array = function(select) {
|
106 |
+
var child, parser, _i, _len, _ref;
|
107 |
+
parser = new SelectParser();
|
108 |
+
_ref = select.childNodes;
|
109 |
+
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
110 |
+
child = _ref[_i];
|
111 |
+
parser.add_node(child);
|
112 |
+
}
|
113 |
+
return parser.parsed;
|
114 |
+
};
|
115 |
+
|
116 |
+
AbstractChosen = (function() {
|
117 |
+
function AbstractChosen(form_field, options) {
|
118 |
+
this.form_field = form_field;
|
119 |
+
this.options = options != null ? options : {};
|
120 |
+
if (!AbstractChosen.browser_is_supported()) {
|
121 |
+
return;
|
122 |
+
}
|
123 |
+
this.is_multiple = this.form_field.multiple;
|
124 |
+
this.set_default_text();
|
125 |
+
this.set_default_values();
|
126 |
+
this.setup();
|
127 |
+
this.set_up_html();
|
128 |
+
this.register_observers();
|
129 |
+
}
|
130 |
+
|
131 |
+
AbstractChosen.prototype.set_default_values = function() {
|
132 |
+
var _this = this;
|
133 |
+
this.click_test_action = function(evt) {
|
134 |
+
return _this.test_active_click(evt);
|
135 |
+
};
|
136 |
+
this.activate_action = function(evt) {
|
137 |
+
return _this.activate_field(evt);
|
138 |
+
};
|
139 |
+
this.active_field = false;
|
140 |
+
this.mouse_on_container = false;
|
141 |
+
this.results_showing = false;
|
142 |
+
this.result_highlighted = null;
|
143 |
+
this.allow_single_deselect = (this.options.allow_single_deselect != null) && (this.form_field.options[0] != null) && this.form_field.options[0].text === "" ? this.options.allow_single_deselect : false;
|
144 |
+
this.disable_search_threshold = this.options.disable_search_threshold || 0;
|
145 |
+
this.disable_search = this.options.disable_search || false;
|
146 |
+
this.enable_split_word_search = this.options.enable_split_word_search != null ? this.options.enable_split_word_search : true;
|
147 |
+
this.group_search = this.options.group_search != null ? this.options.group_search : true;
|
148 |
+
this.search_contains = this.options.search_contains || false;
|
149 |
+
this.single_backstroke_delete = this.options.single_backstroke_delete != null ? this.options.single_backstroke_delete : true;
|
150 |
+
this.max_selected_options = this.options.max_selected_options || Infinity;
|
151 |
+
this.inherit_select_classes = this.options.inherit_select_classes || false;
|
152 |
+
this.display_selected_options = this.options.display_selected_options != null ? this.options.display_selected_options : true;
|
153 |
+
return this.display_disabled_options = this.options.display_disabled_options != null ? this.options.display_disabled_options : true;
|
154 |
+
};
|
155 |
+
|
156 |
+
AbstractChosen.prototype.set_default_text = function() {
|
157 |
+
if (this.form_field.getAttribute("data-placeholder")) {
|
158 |
+
this.default_text = this.form_field.getAttribute("data-placeholder");
|
159 |
+
} else if (this.is_multiple) {
|
160 |
+
this.default_text = this.options.placeholder_text_multiple || this.options.placeholder_text || AbstractChosen.default_multiple_text;
|
161 |
+
} else {
|
162 |
+
this.default_text = this.options.placeholder_text_single || this.options.placeholder_text || AbstractChosen.default_single_text;
|
163 |
+
}
|
164 |
+
return this.results_none_found = this.form_field.getAttribute("data-no_results_text") || this.options.no_results_text || AbstractChosen.default_no_result_text;
|
165 |
+
};
|
166 |
+
|
167 |
+
AbstractChosen.prototype.mouse_enter = function() {
|
168 |
+
return this.mouse_on_container = true;
|
169 |
+
};
|
170 |
+
|
171 |
+
AbstractChosen.prototype.mouse_leave = function() {
|
172 |
+
return this.mouse_on_container = false;
|
173 |
+
};
|
174 |
+
|
175 |
+
AbstractChosen.prototype.input_focus = function(evt) {
|
176 |
+
var _this = this;
|
177 |
+
if (this.is_multiple) {
|
178 |
+
if (!this.active_field) {
|
179 |
+
return setTimeout((function() {
|
180 |
+
return _this.container_mousedown();
|
181 |
+
}), 50);
|
182 |
+
}
|
183 |
+
} else {
|
184 |
+
if (!this.active_field) {
|
185 |
+
return this.activate_field();
|
186 |
+
}
|
187 |
+
}
|
188 |
+
};
|
189 |
+
|
190 |
+
AbstractChosen.prototype.input_blur = function(evt) {
|
191 |
+
var _this = this;
|
192 |
+
if (!this.mouse_on_container) {
|
193 |
+
this.active_field = false;
|
194 |
+
return setTimeout((function() {
|
195 |
+
return _this.blur_test();
|
196 |
+
}), 100);
|
197 |
+
}
|
198 |
+
};
|
199 |
+
|
200 |
+
AbstractChosen.prototype.results_option_build = function(options) {
|
201 |
+
var content, data, _i, _len, _ref;
|
202 |
+
content = '';
|
203 |
+
_ref = this.results_data;
|
204 |
+
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
205 |
+
data = _ref[_i];
|
206 |
+
if (data.group) {
|
207 |
+
content += this.result_add_group(data);
|
208 |
+
} else {
|
209 |
+
content += this.result_add_option(data);
|
210 |
+
}
|
211 |
+
if (options != null ? options.first : void 0) {
|
212 |
+
if (data.selected && this.is_multiple) {
|
213 |
+
this.choice_build(data);
|
214 |
+
} else if (data.selected && !this.is_multiple) {
|
215 |
+
this.single_set_selected_text(data.text);
|
216 |
+
}
|
217 |
+
}
|
218 |
+
}
|
219 |
+
return content;
|
220 |
+
};
|
221 |
+
|
222 |
+
AbstractChosen.prototype.result_add_option = function(option) {
|
223 |
+
var classes, option_el;
|
224 |
+
if (!option.search_match) {
|
225 |
+
return '';
|
226 |
+
}
|
227 |
+
if (!this.include_option_in_results(option)) {
|
228 |
+
return '';
|
229 |
+
}
|
230 |
+
classes = [];
|
231 |
+
if (!option.disabled && !(option.selected && this.is_multiple)) {
|
232 |
+
classes.push("active-result");
|
233 |
+
}
|
234 |
+
if (option.disabled && !(option.selected && this.is_multiple)) {
|
235 |
+
classes.push("disabled-result");
|
236 |
+
}
|
237 |
+
if (option.selected) {
|
238 |
+
classes.push("result-selected");
|
239 |
+
}
|
240 |
+
if (option.group_array_index != null) {
|
241 |
+
classes.push("group-option");
|
242 |
+
}
|
243 |
+
if (option.classes !== "") {
|
244 |
+
classes.push(option.classes);
|
245 |
+
}
|
246 |
+
option_el = document.createElement("li");
|
247 |
+
option_el.className = classes.join(" ");
|
248 |
+
option_el.style.cssText = option.style;
|
249 |
+
option_el.setAttribute("data-option-array-index", option.array_index);
|
250 |
+
option_el.innerHTML = option.search_text;
|
251 |
+
return this.outerHTML(option_el);
|
252 |
+
};
|
253 |
+
|
254 |
+
AbstractChosen.prototype.result_add_group = function(group) {
|
255 |
+
var group_el;
|
256 |
+
if (!(group.search_match || group.group_match)) {
|
257 |
+
return '';
|
258 |
+
}
|
259 |
+
if (!(group.active_options > 0)) {
|
260 |
+
return '';
|
261 |
+
}
|
262 |
+
group_el = document.createElement("li");
|
263 |
+
group_el.className = "group-result";
|
264 |
+
group_el.innerHTML = group.search_text;
|
265 |
+
return this.outerHTML(group_el);
|
266 |
+
};
|
267 |
+
|
268 |
+
AbstractChosen.prototype.results_update_field = function() {
|
269 |
+
this.set_default_text();
|
270 |
+
if (!this.is_multiple) {
|
271 |
+
this.results_reset_cleanup();
|
272 |
+
}
|
273 |
+
this.result_clear_highlight();
|
274 |
+
this.results_build();
|
275 |
+
if (this.results_showing) {
|
276 |
+
return this.winnow_results();
|
277 |
+
}
|
278 |
+
};
|
279 |
+
|
280 |
+
AbstractChosen.prototype.reset_single_select_options = function() {
|
281 |
+
var result, _i, _len, _ref, _results;
|
282 |
+
_ref = this.results_data;
|
283 |
+
_results = [];
|
284 |
+
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
285 |
+
result = _ref[_i];
|
286 |
+
if (result.selected) {
|
287 |
+
_results.push(result.selected = false);
|
288 |
+
} else {
|
289 |
+
_results.push(void 0);
|
290 |
+
}
|
291 |
+
}
|
292 |
+
return _results;
|
293 |
+
};
|
294 |
+
|
295 |
+
AbstractChosen.prototype.results_toggle = function() {
|
296 |
+
if (this.results_showing) {
|
297 |
+
return this.results_hide();
|
298 |
+
} else {
|
299 |
+
return this.results_show();
|
300 |
+
}
|
301 |
+
};
|
302 |
+
|
303 |
+
AbstractChosen.prototype.results_search = function(evt) {
|
304 |
+
if (this.results_showing) {
|
305 |
+
return this.winnow_results();
|
306 |
+
} else {
|
307 |
+
return this.results_show();
|
308 |
+
}
|
309 |
+
};
|
310 |
+
|
311 |
+
AbstractChosen.prototype.winnow_results = function() {
|
312 |
+
var escapedSearchText, option, regex, results, results_group, searchText, startpos, text, zregex, _i, _len, _ref;
|
313 |
+
this.no_results_clear();
|
314 |
+
results = 0;
|
315 |
+
searchText = this.get_search_text();
|
316 |
+
escapedSearchText = searchText.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
317 |
+
zregex = new RegExp(escapedSearchText, 'i');
|
318 |
+
regex = this.get_search_regex(escapedSearchText);
|
319 |
+
_ref = this.results_data;
|
320 |
+
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
321 |
+
option = _ref[_i];
|
322 |
+
option.search_match = false;
|
323 |
+
results_group = null;
|
324 |
+
if (this.include_option_in_results(option)) {
|
325 |
+
if (option.group) {
|
326 |
+
option.group_match = false;
|
327 |
+
option.active_options = 0;
|
328 |
+
}
|
329 |
+
if ((option.group_array_index != null) && this.results_data[option.group_array_index]) {
|
330 |
+
results_group = this.results_data[option.group_array_index];
|
331 |
+
if (results_group.active_options === 0 && results_group.search_match) {
|
332 |
+
results += 1;
|
333 |
+
}
|
334 |
+
results_group.active_options += 1;
|
335 |
+
}
|
336 |
+
if (!(option.group && !this.group_search)) {
|
337 |
+
option.search_text = option.group ? option.label : option.text;
|
338 |
+
option.search_match = this.search_string_match(option.search_text, regex);
|
339 |
+
if (option.search_match && !option.group) {
|
340 |
+
results += 1;
|
341 |
+
}
|
342 |
+
if (option.search_match) {
|
343 |
+
if (searchText.length) {
|
344 |
+
startpos = option.search_text.search(zregex);
|
345 |
+
text = option.search_text.substr(0, startpos + searchText.length) + '</em>' + option.search_text.substr(startpos + searchText.length);
|
346 |
+
option.search_text = text.substr(0, startpos) + '<em>' + text.substr(startpos);
|
347 |
+
}
|
348 |
+
if (results_group != null) {
|
349 |
+
results_group.group_match = true;
|
350 |
+
}
|
351 |
+
} else if ((option.group_array_index != null) && this.results_data[option.group_array_index].search_match) {
|
352 |
+
option.search_match = true;
|
353 |
+
}
|
354 |
+
}
|
355 |
+
}
|
356 |
+
}
|
357 |
+
this.result_clear_highlight();
|
358 |
+
if (results < 1 && searchText.length) {
|
359 |
+
this.update_results_content("");
|
360 |
+
return this.no_results(searchText);
|
361 |
+
} else {
|
362 |
+
this.update_results_content(this.results_option_build());
|
363 |
+
return this.winnow_results_set_highlight();
|
364 |
+
}
|
365 |
+
};
|
366 |
+
|
367 |
+
AbstractChosen.prototype.get_search_regex = function(escaped_search_string) {
|
368 |
+
var regex_anchor;
|
369 |
+
regex_anchor = this.search_contains ? "" : "^";
|
370 |
+
return new RegExp(regex_anchor + escaped_search_string, 'i');
|
371 |
+
};
|
372 |
+
|
373 |
+
AbstractChosen.prototype.search_string_match = function(search_string, regex) {
|
374 |
+
var part, parts, _i, _len;
|
375 |
+
if (regex.test(search_string)) {
|
376 |
+
return true;
|
377 |
+
} else if (this.enable_split_word_search && (search_string.indexOf(" ") >= 0 || search_string.indexOf("[") === 0)) {
|
378 |
+
parts = search_string.replace(/\[|\]/g, "").split(" ");
|
379 |
+
if (parts.length) {
|
380 |
+
for (_i = 0, _len = parts.length; _i < _len; _i++) {
|
381 |
+
part = parts[_i];
|
382 |
+
if (regex.test(part)) {
|
383 |
+
return true;
|
384 |
+
}
|
385 |
+
}
|
386 |
+
}
|
387 |
+
}
|
388 |
+
};
|
389 |
+
|
390 |
+
AbstractChosen.prototype.choices_count = function() {
|
391 |
+
var option, _i, _len, _ref;
|
392 |
+
if (this.selected_option_count != null) {
|
393 |
+
return this.selected_option_count;
|
394 |
+
}
|
395 |
+
this.selected_option_count = 0;
|
396 |
+
_ref = this.form_field.options;
|
397 |
+
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
398 |
+
option = _ref[_i];
|
399 |
+
if (option.selected) {
|
400 |
+
this.selected_option_count += 1;
|
401 |
+
}
|
402 |
+
}
|
403 |
+
return this.selected_option_count;
|
404 |
+
};
|
405 |
+
|
406 |
+
AbstractChosen.prototype.choices_click = function(evt) {
|
407 |
+
evt.preventDefault();
|
408 |
+
if (!(this.results_showing || this.is_disabled)) {
|
409 |
+
return this.results_show();
|
410 |
+
}
|
411 |
+
};
|
412 |
+
|
413 |
+
AbstractChosen.prototype.keyup_checker = function(evt) {
|
414 |
+
var stroke, _ref;
|
415 |
+
stroke = (_ref = evt.which) != null ? _ref : evt.keyCode;
|
416 |
+
this.search_field_scale();
|
417 |
+
switch (stroke) {
|
418 |
+
case 8:
|
419 |
+
if (this.is_multiple && this.backstroke_length < 1 && this.choices_count() > 0) {
|
420 |
+
return this.keydown_backstroke();
|
421 |
+
} else if (!this.pending_backstroke) {
|
422 |
+
this.result_clear_highlight();
|
423 |
+
return this.results_search();
|
424 |
+
}
|
425 |
+
break;
|
426 |
+
case 13:
|
427 |
+
evt.preventDefault();
|
428 |
+
if (this.results_showing) {
|
429 |
+
return this.result_select(evt);
|
430 |
+
}
|
431 |
+
break;
|
432 |
+
case 27:
|
433 |
+
if (this.results_showing) {
|
434 |
+
this.results_hide();
|
435 |
+
}
|
436 |
+
return true;
|
437 |
+
case 9:
|
438 |
+
case 38:
|
439 |
+
case 40:
|
440 |
+
case 16:
|
441 |
+
case 91:
|
442 |
+
case 17:
|
443 |
+
break;
|
444 |
+
default:
|
445 |
+
return this.results_search();
|
446 |
+
}
|
447 |
+
};
|
448 |
+
|
449 |
+
AbstractChosen.prototype.clipboard_event_checker = function(evt) {
|
450 |
+
var _this = this;
|
451 |
+
return setTimeout((function() {
|
452 |
+
return _this.results_search();
|
453 |
+
}), 50);
|
454 |
+
};
|
455 |
+
|
456 |
+
AbstractChosen.prototype.container_width = function() {
|
457 |
+
if (this.options.width != null) {
|
458 |
+
return this.options.width;
|
459 |
+
} else {
|
460 |
+
return "" + this.form_field.offsetWidth + "px";
|
461 |
+
}
|
462 |
+
};
|
463 |
+
|
464 |
+
AbstractChosen.prototype.include_option_in_results = function(option) {
|
465 |
+
if (this.is_multiple && (!this.display_selected_options && option.selected)) {
|
466 |
+
return false;
|
467 |
+
}
|
468 |
+
if (!this.display_disabled_options && option.disabled) {
|
469 |
+
return false;
|
470 |
+
}
|
471 |
+
if (option.empty) {
|
472 |
+
return false;
|
473 |
+
}
|
474 |
+
return true;
|
475 |
+
};
|
476 |
+
|
477 |
+
AbstractChosen.prototype.search_results_touchstart = function(evt) {
|
478 |
+
this.touch_started = true;
|
479 |
+
return this.search_results_mouseover(evt);
|
480 |
+
};
|
481 |
+
|
482 |
+
AbstractChosen.prototype.search_results_touchmove = function(evt) {
|
483 |
+
this.touch_started = false;
|
484 |
+
return this.search_results_mouseout(evt);
|
485 |
+
};
|
486 |
+
|
487 |
+
AbstractChosen.prototype.search_results_touchend = function(evt) {
|
488 |
+
if (this.touch_started) {
|
489 |
+
return this.search_results_mouseup(evt);
|
490 |
+
}
|
491 |
+
};
|
492 |
+
|
493 |
+
AbstractChosen.prototype.outerHTML = function(element) {
|
494 |
+
var tmp;
|
495 |
+
if (element.outerHTML) {
|
496 |
+
return element.outerHTML;
|
497 |
+
}
|
498 |
+
tmp = document.createElement("div");
|
499 |
+
tmp.appendChild(element);
|
500 |
+
return tmp.innerHTML;
|
501 |
+
};
|
502 |
+
|
503 |
+
AbstractChosen.browser_is_supported = function() {
|
504 |
+
if (window.navigator.appName === "Microsoft Internet Explorer") {
|
505 |
+
return document.documentMode >= 8;
|
506 |
+
}
|
507 |
+
if (/iP(od|hone)/i.test(window.navigator.userAgent)) {
|
508 |
+
return false;
|
509 |
+
}
|
510 |
+
if (/Android/i.test(window.navigator.userAgent)) {
|
511 |
+
if (/Mobile/i.test(window.navigator.userAgent)) {
|
512 |
+
return false;
|
513 |
+
}
|
514 |
+
}
|
515 |
+
return true;
|
516 |
+
};
|
517 |
+
|
518 |
+
AbstractChosen.default_multiple_text = "Select Some Options";
|
519 |
+
|
520 |
+
AbstractChosen.default_single_text = "Select an Option";
|
521 |
+
|
522 |
+
AbstractChosen.default_no_result_text = "No results match";
|
523 |
+
|
524 |
+
return AbstractChosen;
|
525 |
+
|
526 |
+
})();
|
527 |
+
|
528 |
+
$ = jQuery;
|
529 |
+
|
530 |
+
$.fn.extend({
|
531 |
+
chosen: function(options) {
|
532 |
+
if (!AbstractChosen.browser_is_supported()) {
|
533 |
+
return this;
|
534 |
+
}
|
535 |
+
return this.each(function(input_field) {
|
536 |
+
var $this, chosen;
|
537 |
+
$this = $(this);
|
538 |
+
chosen = $this.data('chosen');
|
539 |
+
if (options === 'destroy' && chosen instanceof Chosen) {
|
540 |
+
chosen.destroy();
|
541 |
+
} else if (!(chosen instanceof Chosen)) {
|
542 |
+
$this.data('chosen', new Chosen(this, options));
|
543 |
+
}
|
544 |
+
});
|
545 |
+
}
|
546 |
+
});
|
547 |
+
|
548 |
+
Chosen = (function(_super) {
|
549 |
+
__extends(Chosen, _super);
|
550 |
+
|
551 |
+
function Chosen() {
|
552 |
+
_ref = Chosen.__super__.constructor.apply(this, arguments);
|
553 |
+
return _ref;
|
554 |
+
}
|
555 |
+
|
556 |
+
Chosen.prototype.setup = function() {
|
557 |
+
this.form_field_jq = $(this.form_field);
|
558 |
+
this.current_selectedIndex = this.form_field.selectedIndex;
|
559 |
+
return this.is_rtl = this.form_field_jq.hasClass("chosen-rtl");
|
560 |
+
};
|
561 |
+
|
562 |
+
Chosen.prototype.set_up_html = function() {
|
563 |
+
var container_classes, container_props;
|
564 |
+
container_classes = ["chosen-container"];
|
565 |
+
container_classes.push("chosen-container-" + (this.is_multiple ? "multi" : "single"));
|
566 |
+
if (this.inherit_select_classes && this.form_field.className) {
|
567 |
+
container_classes.push(this.form_field.className);
|
568 |
+
}
|
569 |
+
if (this.is_rtl) {
|
570 |
+
container_classes.push("chosen-rtl");
|
571 |
+
}
|
572 |
+
container_props = {
|
573 |
+
'class': container_classes.join(' '),
|
574 |
+
'style': "width: " + (this.container_width()) + ";",
|
575 |
+
'title': this.form_field.title
|
576 |
+
};
|
577 |
+
if (this.form_field.id.length) {
|
578 |
+
container_props.id = this.form_field.id.replace(/[^\w]/g, '_') + "_chosen";
|
579 |
+
}
|
580 |
+
this.container = $("<div />", container_props);
|
581 |
+
if (this.is_multiple) {
|
582 |
+
this.container.html('<ul class="chosen-choices"><li class="search-field"><input type="text" value="' + this.default_text + '" class="default" autocomplete="off" style="width:25px;" /></li></ul><div class="chosen-drop"><ul class="chosen-results"></ul></div>');
|
583 |
+
} else {
|
584 |
+
this.container.html('<a class="chosen-single chosen-default" tabindex="-1"><span>' + this.default_text + '</span><div><b></b></div></a><div class="chosen-drop"><div class="chosen-search"><input type="text" autocomplete="off" /></div><ul class="chosen-results"></ul></div>');
|
585 |
+
}
|
586 |
+
this.form_field_jq.hide().after(this.container);
|
587 |
+
this.dropdown = this.container.find('div.chosen-drop').first();
|
588 |
+
this.search_field = this.container.find('input').first();
|
589 |
+
this.search_results = this.container.find('ul.chosen-results').first();
|
590 |
+
this.search_field_scale();
|
591 |
+
this.search_no_results = this.container.find('li.no-results').first();
|
592 |
+
if (this.is_multiple) {
|
593 |
+
this.search_choices = this.container.find('ul.chosen-choices').first();
|
594 |
+
this.search_container = this.container.find('li.search-field').first();
|
595 |
+
} else {
|
596 |
+
this.search_container = this.container.find('div.chosen-search').first();
|
597 |
+
this.selected_item = this.container.find('.chosen-single').first();
|
598 |
+
}
|
599 |
+
this.results_build();
|
600 |
+
this.set_tab_index();
|
601 |
+
this.set_label_behavior();
|
602 |
+
return this.form_field_jq.trigger("chosen:ready", {
|
603 |
+
chosen: this
|
604 |
+
});
|
605 |
+
};
|
606 |
+
|
607 |
+
Chosen.prototype.register_observers = function() {
|
608 |
+
var _this = this;
|
609 |
+
this.container.bind('touchstart.chosen', function(evt) {
|
610 |
+
_this.container_mousedown(evt);
|
611 |
+
});
|
612 |
+
this.container.bind('touchend.chosen', function(evt) {
|
613 |
+
_this.container_mouseup(evt);
|
614 |
+
});
|
615 |
+
this.container.bind('mousedown.chosen', function(evt) {
|
616 |
+
_this.container_mousedown(evt);
|
617 |
+
});
|
618 |
+
this.container.bind('mouseup.chosen', function(evt) {
|
619 |
+
_this.container_mouseup(evt);
|
620 |
+
});
|
621 |
+
this.container.bind('mouseenter.chosen', function(evt) {
|
622 |
+
_this.mouse_enter(evt);
|
623 |
+
});
|
624 |
+
this.container.bind('mouseleave.chosen', function(evt) {
|
625 |
+
_this.mouse_leave(evt);
|
626 |
+
});
|
627 |
+
this.search_results.bind('mouseup.chosen', function(evt) {
|
628 |
+
_this.search_results_mouseup(evt);
|
629 |
+
});
|
630 |
+
this.search_results.bind('mouseover.chosen', function(evt) {
|
631 |
+
_this.search_results_mouseover(evt);
|
632 |
+
});
|
633 |
+
this.search_results.bind('mouseout.chosen', function(evt) {
|
634 |
+
_this.search_results_mouseout(evt);
|
635 |
+
});
|
636 |
+
this.search_results.bind('mousewheel.chosen DOMMouseScroll.chosen', function(evt) {
|
637 |
+
_this.search_results_mousewheel(evt);
|
638 |
+
});
|
639 |
+
this.search_results.bind('touchstart.chosen', function(evt) {
|
640 |
+
_this.search_results_touchstart(evt);
|
641 |
+
});
|
642 |
+
this.search_results.bind('touchmove.chosen', function(evt) {
|
643 |
+
_this.search_results_touchmove(evt);
|
644 |
+
});
|
645 |
+
this.search_results.bind('touchend.chosen', function(evt) {
|
646 |
+
_this.search_results_touchend(evt);
|
647 |
+
});
|
648 |
+
this.form_field_jq.bind("chosen:updated.chosen", function(evt) {
|
649 |
+
_this.results_update_field(evt);
|
650 |
+
});
|
651 |
+
this.form_field_jq.bind("chosen:activate.chosen", function(evt) {
|
652 |
+
_this.activate_field(evt);
|
653 |
+
});
|
654 |
+
this.form_field_jq.bind("chosen:open.chosen", function(evt) {
|
655 |
+
_this.container_mousedown(evt);
|
656 |
+
});
|
657 |
+
this.form_field_jq.bind("chosen:close.chosen", function(evt) {
|
658 |
+
_this.input_blur(evt);
|
659 |
+
});
|
660 |
+
this.search_field.bind('blur.chosen', function(evt) {
|
661 |
+
_this.input_blur(evt);
|
662 |
+
});
|
663 |
+
this.search_field.bind('keyup.chosen', function(evt) {
|
664 |
+
_this.keyup_checker(evt);
|
665 |
+
});
|
666 |
+
this.search_field.bind('keydown.chosen', function(evt) {
|
667 |
+
_this.keydown_checker(evt);
|
668 |
+
});
|
669 |
+
this.search_field.bind('focus.chosen', function(evt) {
|
670 |
+
_this.input_focus(evt);
|
671 |
+
});
|
672 |
+
this.search_field.bind('cut.chosen', function(evt) {
|
673 |
+
_this.clipboard_event_checker(evt);
|
674 |
+
});
|
675 |
+
this.search_field.bind('paste.chosen', function(evt) {
|
676 |
+
_this.clipboard_event_checker(evt);
|
677 |
+
});
|
678 |
+
if (this.is_multiple) {
|
679 |
+
return this.search_choices.bind('click.chosen', function(evt) {
|
680 |
+
_this.choices_click(evt);
|
681 |
+
});
|
682 |
+
} else {
|
683 |
+
return this.container.bind('click.chosen', function(evt) {
|
684 |
+
evt.preventDefault();
|
685 |
+
});
|
686 |
+
}
|
687 |
+
};
|
688 |
+
|
689 |
+
Chosen.prototype.destroy = function() {
|
690 |
+
$(this.container[0].ownerDocument).unbind("click.chosen", this.click_test_action);
|
691 |
+
if (this.search_field[0].tabIndex) {
|
692 |
+
this.form_field_jq[0].tabIndex = this.search_field[0].tabIndex;
|
693 |
+
}
|
694 |
+
this.container.remove();
|
695 |
+
this.form_field_jq.removeData('chosen');
|
696 |
+
return this.form_field_jq.show();
|
697 |
+
};
|
698 |
+
|
699 |
+
Chosen.prototype.search_field_disabled = function() {
|
700 |
+
this.is_disabled = this.form_field_jq[0].disabled;
|
701 |
+
if (this.is_disabled) {
|
702 |
+
this.container.addClass('chosen-disabled');
|
703 |
+
this.search_field[0].disabled = true;
|
704 |
+
if (!this.is_multiple) {
|
705 |
+
this.selected_item.unbind("focus.chosen", this.activate_action);
|
706 |
+
}
|
707 |
+
return this.close_field();
|
708 |
+
} else {
|
709 |
+
this.container.removeClass('chosen-disabled');
|
710 |
+
this.search_field[0].disabled = false;
|
711 |
+
if (!this.is_multiple) {
|
712 |
+
return this.selected_item.bind("focus.chosen", this.activate_action);
|
713 |
+
}
|
714 |
+
}
|
715 |
+
};
|
716 |
+
|
717 |
+
Chosen.prototype.container_mousedown = function(evt) {
|
718 |
+
if (!this.is_disabled) {
|
719 |
+
if (evt && evt.type === "mousedown" && !this.results_showing) {
|
720 |
+
evt.preventDefault();
|
721 |
+
}
|
722 |
+
if (!((evt != null) && ($(evt.target)).hasClass("search-choice-close"))) {
|
723 |
+
if (!this.active_field) {
|
724 |
+
if (this.is_multiple) {
|
725 |
+
this.search_field.val("");
|
726 |
+
}
|
727 |
+
$(this.container[0].ownerDocument).bind('click.chosen', this.click_test_action);
|
728 |
+
this.results_show();
|
729 |
+
} else if (!this.is_multiple && evt && (($(evt.target)[0] === this.selected_item[0]) || $(evt.target).parents("a.chosen-single").length)) {
|
730 |
+
evt.preventDefault();
|
731 |
+
this.results_toggle();
|
732 |
+
}
|
733 |
+
return this.activate_field();
|
734 |
+
}
|
735 |
+
}
|
736 |
+
};
|
737 |
+
|
738 |
+
Chosen.prototype.container_mouseup = function(evt) {
|
739 |
+
if (evt.target.nodeName === "ABBR" && !this.is_disabled) {
|
740 |
+
return this.results_reset(evt);
|
741 |
+
}
|
742 |
+
};
|
743 |
+
|
744 |
+
Chosen.prototype.search_results_mousewheel = function(evt) {
|
745 |
+
var delta;
|
746 |
+
if (evt.originalEvent) {
|
747 |
+
delta = evt.originalEvent.deltaY || -evt.originalEvent.wheelDelta || evt.originalEvent.detail;
|
748 |
+
}
|
749 |
+
if (delta != null) {
|
750 |
+
evt.preventDefault();
|
751 |
+
if (evt.type === 'DOMMouseScroll') {
|
752 |
+
delta = delta * 40;
|
753 |
+
}
|
754 |
+
return this.search_results.scrollTop(delta + this.search_results.scrollTop());
|
755 |
+
}
|
756 |
+
};
|
757 |
+
|
758 |
+
Chosen.prototype.blur_test = function(evt) {
|
759 |
+
if (!this.active_field && this.container.hasClass("chosen-container-active")) {
|
760 |
+
return this.close_field();
|
761 |
+
}
|
762 |
+
};
|
763 |
+
|
764 |
+
Chosen.prototype.close_field = function() {
|
765 |
+
$(this.container[0].ownerDocument).unbind("click.chosen", this.click_test_action);
|
766 |
+
this.active_field = false;
|
767 |
+
this.results_hide();
|
768 |
+
this.container.removeClass("chosen-container-active");
|
769 |
+
this.clear_backstroke();
|
770 |
+
this.show_search_field_default();
|
771 |
+
return this.search_field_scale();
|
772 |
+
};
|
773 |
+
|
774 |
+
Chosen.prototype.activate_field = function() {
|
775 |
+
this.container.addClass("chosen-container-active");
|
776 |
+
this.active_field = true;
|
777 |
+
this.search_field.val(this.search_field.val());
|
778 |
+
return this.search_field.focus();
|
779 |
+
};
|
780 |
+
|
781 |
+
Chosen.prototype.test_active_click = function(evt) {
|
782 |
+
var active_container;
|
783 |
+
active_container = $(evt.target).closest('.chosen-container');
|
784 |
+
if (active_container.length && this.container[0] === active_container[0]) {
|
785 |
+
return this.active_field = true;
|
786 |
+
} else {
|
787 |
+
return this.close_field();
|
788 |
+
}
|
789 |
+
};
|
790 |
+
|
791 |
+
Chosen.prototype.results_build = function() {
|
792 |
+
this.parsing = true;
|
793 |
+
this.selected_option_count = null;
|
794 |
+
this.results_data = SelectParser.select_to_array(this.form_field);
|
795 |
+
if (this.is_multiple) {
|
796 |
+
this.search_choices.find("li.search-choice").remove();
|
797 |
+
} else if (!this.is_multiple) {
|
798 |
+
this.single_set_selected_text();
|
799 |
+
if (this.disable_search || this.form_field.options.length <= this.disable_search_threshold) {
|
800 |
+
this.search_field[0].readOnly = true;
|
801 |
+
this.container.addClass("chosen-container-single-nosearch");
|
802 |
+
} else {
|
803 |
+
this.search_field[0].readOnly = false;
|
804 |
+
this.container.removeClass("chosen-container-single-nosearch");
|
805 |
+
}
|
806 |
+
}
|
807 |
+
this.update_results_content(this.results_option_build({
|
808 |
+
first: true
|
809 |
+
}));
|
810 |
+
this.search_field_disabled();
|
811 |
+
this.show_search_field_default();
|
812 |
+
this.search_field_scale();
|
813 |
+
return this.parsing = false;
|
814 |
+
};
|
815 |
+
|
816 |
+
Chosen.prototype.result_do_highlight = function(el) {
|
817 |
+
var high_bottom, high_top, maxHeight, visible_bottom, visible_top;
|
818 |
+
if (el.length) {
|
819 |
+
this.result_clear_highlight();
|
820 |
+
this.result_highlight = el;
|
821 |
+
this.result_highlight.addClass("highlighted");
|
822 |
+
maxHeight = parseInt(this.search_results.css("maxHeight"), 10);
|
823 |
+
visible_top = this.search_results.scrollTop();
|
824 |
+
visible_bottom = maxHeight + visible_top;
|
825 |
+
high_top = this.result_highlight.position().top + this.search_results.scrollTop();
|
826 |
+
high_bottom = high_top + this.result_highlight.outerHeight();
|
827 |
+
if (high_bottom >= visible_bottom) {
|
828 |
+
return this.search_results.scrollTop((high_bottom - maxHeight) > 0 ? high_bottom - maxHeight : 0);
|
829 |
+
} else if (high_top < visible_top) {
|
830 |
+
return this.search_results.scrollTop(high_top);
|
831 |
+
}
|
832 |
+
}
|
833 |
+
};
|
834 |
+
|
835 |
+
Chosen.prototype.result_clear_highlight = function() {
|
836 |
+
if (this.result_highlight) {
|
837 |
+
this.result_highlight.removeClass("highlighted");
|
838 |
+
}
|
839 |
+
return this.result_highlight = null;
|
840 |
+
};
|
841 |
+
|
842 |
+
Chosen.prototype.results_show = function() {
|
843 |
+
if (this.is_multiple && this.max_selected_options <= this.choices_count()) {
|
844 |
+
this.form_field_jq.trigger("chosen:maxselected", {
|
845 |
+
chosen: this
|
846 |
+
});
|
847 |
+
return false;
|
848 |
+
}
|
849 |
+
this.container.addClass("chosen-with-drop");
|
850 |
+
this.results_showing = true;
|
851 |
+
this.search_field.focus();
|
852 |
+
this.search_field.val(this.search_field.val());
|
853 |
+
this.winnow_results();
|
854 |
+
return this.form_field_jq.trigger("chosen:showing_dropdown", {
|
855 |
+
chosen: this
|
856 |
+
});
|
857 |
+
};
|
858 |
+
|
859 |
+
Chosen.prototype.update_results_content = function(content) {
|
860 |
+
return this.search_results.html(content);
|
861 |
+
};
|
862 |
+
|
863 |
+
Chosen.prototype.results_hide = function() {
|
864 |
+
if (this.results_showing) {
|
865 |
+
this.result_clear_highlight();
|
866 |
+
this.container.removeClass("chosen-with-drop");
|
867 |
+
this.form_field_jq.trigger("chosen:hiding_dropdown", {
|
868 |
+
chosen: this
|
869 |
+
});
|
870 |
+
}
|
871 |
+
return this.results_showing = false;
|
872 |
+
};
|
873 |
+
|
874 |
+
Chosen.prototype.set_tab_index = function(el) {
|
875 |
+
var ti;
|
876 |
+
if (this.form_field.tabIndex) {
|
877 |
+
ti = this.form_field.tabIndex;
|
878 |
+
this.form_field.tabIndex = -1;
|
879 |
+
return this.search_field[0].tabIndex = ti;
|
880 |
+
}
|
881 |
+
};
|
882 |
+
|
883 |
+
Chosen.prototype.set_label_behavior = function() {
|
884 |
+
var _this = this;
|
885 |
+
this.form_field_label = this.form_field_jq.parents("label");
|
886 |
+
if (!this.form_field_label.length && this.form_field.id.length) {
|
887 |
+
this.form_field_label = $("label[for='" + this.form_field.id + "']");
|
888 |
+
}
|
889 |
+
if (this.form_field_label.length > 0) {
|
890 |
+
return this.form_field_label.bind('click.chosen', function(evt) {
|
891 |
+
if (_this.is_multiple) {
|
892 |
+
return _this.container_mousedown(evt);
|
893 |
+
} else {
|
894 |
+
return _this.activate_field();
|
895 |
+
}
|
896 |
+
});
|
897 |
+
}
|
898 |
+
};
|
899 |
+
|
900 |
+
Chosen.prototype.show_search_field_default = function() {
|
901 |
+
if (this.is_multiple && this.choices_count() < 1 && !this.active_field) {
|
902 |
+
this.search_field.val(this.default_text);
|
903 |
+
return this.search_field.addClass("default");
|
904 |
+
} else {
|
905 |
+
this.search_field.val("");
|
906 |
+
return this.search_field.removeClass("default");
|
907 |
+
}
|
908 |
+
};
|
909 |
+
|
910 |
+
Chosen.prototype.search_results_mouseup = function(evt) {
|
911 |
+
var target;
|
912 |
+
target = $(evt.target).hasClass("active-result") ? $(evt.target) : $(evt.target).parents(".active-result").first();
|
913 |
+
if (target.length) {
|
914 |
+
this.result_highlight = target;
|
915 |
+
this.result_select(evt);
|
916 |
+
return this.search_field.focus();
|
917 |
+
}
|
918 |
+
};
|
919 |
+
|
920 |
+
Chosen.prototype.search_results_mouseover = function(evt) {
|
921 |
+
var target;
|
922 |
+
target = $(evt.target).hasClass("active-result") ? $(evt.target) : $(evt.target).parents(".active-result").first();
|
923 |
+
if (target) {
|
924 |
+
return this.result_do_highlight(target);
|
925 |
+
}
|
926 |
+
};
|
927 |
+
|
928 |
+
Chosen.prototype.search_results_mouseout = function(evt) {
|
929 |
+
if ($(evt.target).hasClass("active-result" || $(evt.target).parents('.active-result').first())) {
|
930 |
+
return this.result_clear_highlight();
|
931 |
+
}
|
932 |
+
};
|
933 |
+
|
934 |
+
Chosen.prototype.choice_build = function(item) {
|
935 |
+
var choice, close_link,
|
936 |
+
_this = this;
|
937 |
+
choice = $('<li />', {
|
938 |
+
"class": "search-choice"
|
939 |
+
}).html("<span>" + item.html + "</span>");
|
940 |
+
if (item.disabled) {
|
941 |
+
choice.addClass('search-choice-disabled');
|
942 |
+
} else {
|
943 |
+
close_link = $('<a />', {
|
944 |
+
"class": 'search-choice-close',
|
945 |
+
'data-option-array-index': item.array_index
|
946 |
+
});
|
947 |
+
close_link.bind('click.chosen', function(evt) {
|
948 |
+
return _this.choice_destroy_link_click(evt);
|
949 |
+
});
|
950 |
+
choice.append(close_link);
|
951 |
+
}
|
952 |
+
return this.search_container.before(choice);
|
953 |
+
};
|
954 |
+
|
955 |
+
Chosen.prototype.choice_destroy_link_click = function(evt) {
|
956 |
+
evt.preventDefault();
|
957 |
+
evt.stopPropagation();
|
958 |
+
if (!this.is_disabled) {
|
959 |
+
return this.choice_destroy($(evt.target));
|
960 |
+
}
|
961 |
+
};
|
962 |
+
|
963 |
+
Chosen.prototype.choice_destroy = function(link) {
|
964 |
+
if (this.result_deselect(link[0].getAttribute("data-option-array-index"))) {
|
965 |
+
this.show_search_field_default();
|
966 |
+
if (this.is_multiple && this.choices_count() > 0 && this.search_field.val().length < 1) {
|
967 |
+
this.results_hide();
|
968 |
+
}
|
969 |
+
link.parents('li').first().remove();
|
970 |
+
return this.search_field_scale();
|
971 |
+
}
|
972 |
+
};
|
973 |
+
|
974 |
+
Chosen.prototype.results_reset = function() {
|
975 |
+
this.reset_single_select_options();
|
976 |
+
this.form_field.options[0].selected = true;
|
977 |
+
this.single_set_selected_text();
|
978 |
+
this.show_search_field_default();
|
979 |
+
this.results_reset_cleanup();
|
980 |
+
this.form_field_jq.trigger("change");
|
981 |
+
if (this.active_field) {
|
982 |
+
return this.results_hide();
|
983 |
+
}
|
984 |
+
};
|
985 |
+
|
986 |
+
Chosen.prototype.results_reset_cleanup = function() {
|
987 |
+
this.current_selectedIndex = this.form_field.selectedIndex;
|
988 |
+
return this.selected_item.find("abbr").remove();
|
989 |
+
};
|
990 |
+
|
991 |
+
Chosen.prototype.result_select = function(evt) {
|
992 |
+
var high, item;
|
993 |
+
if (this.result_highlight) {
|
994 |
+
high = this.result_highlight;
|
995 |
+
this.result_clear_highlight();
|
996 |
+
if (this.is_multiple && this.max_selected_options <= this.choices_count()) {
|
997 |
+
this.form_field_jq.trigger("chosen:maxselected", {
|
998 |
+
chosen: this
|
999 |
+
});
|
1000 |
+
return false;
|
1001 |
+
}
|
1002 |
+
if (this.is_multiple) {
|
1003 |
+
high.removeClass("active-result");
|
1004 |
+
} else {
|
1005 |
+
this.reset_single_select_options();
|
1006 |
+
}
|
1007 |
+
item = this.results_data[high[0].getAttribute("data-option-array-index")];
|
1008 |
+
item.selected = true;
|
1009 |
+
this.form_field.options[item.options_index].selected = true;
|
1010 |
+
this.selected_option_count = null;
|
1011 |
+
if (this.is_multiple) {
|
1012 |
+
this.choice_build(item);
|
1013 |
+
} else {
|
1014 |
+
this.single_set_selected_text(item.text);
|
1015 |
+
}
|
1016 |
+
if (!((evt.metaKey || evt.ctrlKey) && this.is_multiple)) {
|
1017 |
+
this.results_hide();
|
1018 |
+
}
|
1019 |
+
this.search_field.val("");
|
1020 |
+
if (this.is_multiple || this.form_field.selectedIndex !== this.current_selectedIndex) {
|
1021 |
+
this.form_field_jq.trigger("change", {
|
1022 |
+
'selected': this.form_field.options[item.options_index].value
|
1023 |
+
});
|
1024 |
+
}
|
1025 |
+
this.current_selectedIndex = this.form_field.selectedIndex;
|
1026 |
+
return this.search_field_scale();
|
1027 |
+
}
|
1028 |
+
};
|
1029 |
+
|
1030 |
+
Chosen.prototype.single_set_selected_text = function(text) {
|
1031 |
+
if (text == null) {
|
1032 |
+
text = this.default_text;
|
1033 |
+
}
|
1034 |
+
if (text === this.default_text) {
|
1035 |
+
this.selected_item.addClass("chosen-default");
|
1036 |
+
} else {
|
1037 |
+
this.single_deselect_control_build();
|
1038 |
+
this.selected_item.removeClass("chosen-default");
|
1039 |
+
}
|
1040 |
+
return this.selected_item.find("span").text(text);
|
1041 |
+
};
|
1042 |
+
|
1043 |
+
Chosen.prototype.result_deselect = function(pos) {
|
1044 |
+
var result_data;
|
1045 |
+
result_data = this.results_data[pos];
|
1046 |
+
if (!this.form_field.options[result_data.options_index].disabled) {
|
1047 |
+
result_data.selected = false;
|
1048 |
+
this.form_field.options[result_data.options_index].selected = false;
|
1049 |
+
this.selected_option_count = null;
|
1050 |
+
this.result_clear_highlight();
|
1051 |
+
if (this.results_showing) {
|
1052 |
+
this.winnow_results();
|
1053 |
+
}
|
1054 |
+
this.form_field_jq.trigger("change", {
|
1055 |
+
deselected: this.form_field.options[result_data.options_index].value
|
1056 |
+
});
|
1057 |
+
this.search_field_scale();
|
1058 |
+
return true;
|
1059 |
+
} else {
|
1060 |
+
return false;
|
1061 |
+
}
|
1062 |
+
};
|
1063 |
+
|
1064 |
+
Chosen.prototype.single_deselect_control_build = function() {
|
1065 |
+
if (!this.allow_single_deselect) {
|
1066 |
+
return;
|
1067 |
+
}
|
1068 |
+
if (!this.selected_item.find("abbr").length) {
|
1069 |
+
this.selected_item.find("span").first().after("<abbr class=\"search-choice-close\"></abbr>");
|
1070 |
+
}
|
1071 |
+
return this.selected_item.addClass("chosen-single-with-deselect");
|
1072 |
+
};
|
1073 |
+
|
1074 |
+
Chosen.prototype.get_search_text = function() {
|
1075 |
+
if (this.search_field.val() === this.default_text) {
|
1076 |
+
return "";
|
1077 |
+
} else {
|
1078 |
+
return $('<div/>').text($.trim(this.search_field.val())).html();
|
1079 |
+
}
|
1080 |
+
};
|
1081 |
+
|
1082 |
+
Chosen.prototype.winnow_results_set_highlight = function() {
|
1083 |
+
var do_high, selected_results;
|
1084 |
+
selected_results = !this.is_multiple ? this.search_results.find(".result-selected.active-result") : [];
|
1085 |
+
do_high = selected_results.length ? selected_results.first() : this.search_results.find(".active-result").first();
|
1086 |
+
if (do_high != null) {
|
1087 |
+
return this.result_do_highlight(do_high);
|
1088 |
+
}
|
1089 |
+
};
|
1090 |
+
|
1091 |
+
Chosen.prototype.no_results = function(terms) {
|
1092 |
+
var no_results_html;
|
1093 |
+
no_results_html = $('<li class="no-results">' + this.results_none_found + ' "<span></span>"</li>');
|
1094 |
+
no_results_html.find("span").first().html(terms);
|
1095 |
+
this.search_results.append(no_results_html);
|
1096 |
+
return this.form_field_jq.trigger("chosen:no_results", {
|
1097 |
+
chosen: this
|
1098 |
+
});
|
1099 |
+
};
|
1100 |
+
|
1101 |
+
Chosen.prototype.no_results_clear = function() {
|
1102 |
+
return this.search_results.find(".no-results").remove();
|
1103 |
+
};
|
1104 |
+
|
1105 |
+
Chosen.prototype.keydown_arrow = function() {
|
1106 |
+
var next_sib;
|
1107 |
+
if (this.results_showing && this.result_highlight) {
|
1108 |
+
next_sib = this.result_highlight.nextAll("li.active-result").first();
|
1109 |
+
if (next_sib) {
|
1110 |
+
return this.result_do_highlight(next_sib);
|
1111 |
+
}
|
1112 |
+
} else {
|
1113 |
+
return this.results_show();
|
1114 |
+
}
|
1115 |
+
};
|
1116 |
+
|
1117 |
+
Chosen.prototype.keyup_arrow = function() {
|
1118 |
+
var prev_sibs;
|
1119 |
+
if (!this.results_showing && !this.is_multiple) {
|
1120 |
+
return this.results_show();
|
1121 |
+
} else if (this.result_highlight) {
|
1122 |
+
prev_sibs = this.result_highlight.prevAll("li.active-result");
|
1123 |
+
if (prev_sibs.length) {
|
1124 |
+
return this.result_do_highlight(prev_sibs.first());
|
1125 |
+
} else {
|
1126 |
+
if (this.choices_count() > 0) {
|
1127 |
+
this.results_hide();
|
1128 |
+
}
|
1129 |
+
return this.result_clear_highlight();
|
1130 |
+
}
|
1131 |
+
}
|
1132 |
+
};
|
1133 |
+
|
1134 |
+
Chosen.prototype.keydown_backstroke = function() {
|
1135 |
+
var next_available_destroy;
|
1136 |
+
if (this.pending_backstroke) {
|
1137 |
+
this.choice_destroy(this.pending_backstroke.find("a").first());
|
1138 |
+
return this.clear_backstroke();
|
1139 |
+
} else {
|
1140 |
+
next_available_destroy = this.search_container.siblings("li.search-choice").last();
|
1141 |
+
if (next_available_destroy.length && !next_available_destroy.hasClass("search-choice-disabled")) {
|
1142 |
+
this.pending_backstroke = next_available_destroy;
|
1143 |
+
if (this.single_backstroke_delete) {
|
1144 |
+
return this.keydown_backstroke();
|
1145 |
+
} else {
|
1146 |
+
return this.pending_backstroke.addClass("search-choice-focus");
|
1147 |
+
}
|
1148 |
+
}
|
1149 |
+
}
|
1150 |
+
};
|
1151 |
+
|
1152 |
+
Chosen.prototype.clear_backstroke = function() {
|
1153 |
+
if (this.pending_backstroke) {
|
1154 |
+
this.pending_backstroke.removeClass("search-choice-focus");
|
1155 |
+
}
|
1156 |
+
return this.pending_backstroke = null;
|
1157 |
+
};
|
1158 |
+
|
1159 |
+
Chosen.prototype.keydown_checker = function(evt) {
|
1160 |
+
var stroke, _ref1;
|
1161 |
+
stroke = (_ref1 = evt.which) != null ? _ref1 : evt.keyCode;
|
1162 |
+
this.search_field_scale();
|
1163 |
+
if (stroke !== 8 && this.pending_backstroke) {
|
1164 |
+
this.clear_backstroke();
|
1165 |
+
}
|
1166 |
+
switch (stroke) {
|
1167 |
+
case 8:
|
1168 |
+
this.backstroke_length = this.search_field.val().length;
|
1169 |
+
break;
|
1170 |
+
case 9:
|
1171 |
+
if (this.results_showing && !this.is_multiple) {
|
1172 |
+
this.result_select(evt);
|
1173 |
+
}
|
1174 |
+
this.mouse_on_container = false;
|
1175 |
+
break;
|
1176 |
+
case 13:
|
1177 |
+
if (this.results_showing) {
|
1178 |
+
evt.preventDefault();
|
1179 |
+
}
|
1180 |
+
break;
|
1181 |
+
case 32:
|
1182 |
+
if (this.disable_search) {
|
1183 |
+
evt.preventDefault();
|
1184 |
+
}
|
1185 |
+
break;
|
1186 |
+
case 38:
|
1187 |
+
evt.preventDefault();
|
1188 |
+
this.keyup_arrow();
|
1189 |
+
break;
|
1190 |
+
case 40:
|
1191 |
+
evt.preventDefault();
|
1192 |
+
this.keydown_arrow();
|
1193 |
+
break;
|
1194 |
+
}
|
1195 |
+
};
|
1196 |
+
|
1197 |
+
Chosen.prototype.search_field_scale = function() {
|
1198 |
+
var div, f_width, h, style, style_block, styles, w, _i, _len;
|
1199 |
+
if (this.is_multiple) {
|
1200 |
+
h = 0;
|
1201 |
+
w = 0;
|
1202 |
+
style_block = "position:absolute; left: -1000px; top: -1000px; display:none;";
|
1203 |
+
styles = ['font-size', 'font-style', 'font-weight', 'font-family', 'line-height', 'text-transform', 'letter-spacing'];
|
1204 |
+
for (_i = 0, _len = styles.length; _i < _len; _i++) {
|
1205 |
+
style = styles[_i];
|
1206 |
+
style_block += style + ":" + this.search_field.css(style) + ";";
|
1207 |
+
}
|
1208 |
+
div = $('<div />', {
|
1209 |
+
'style': style_block
|
1210 |
+
});
|
1211 |
+
div.text(this.search_field.val());
|
1212 |
+
$('body').append(div);
|
1213 |
+
w = div.width() + 25;
|
1214 |
+
div.remove();
|
1215 |
+
f_width = this.container.outerWidth();
|
1216 |
+
if (w > f_width - 10) {
|
1217 |
+
w = f_width - 10;
|
1218 |
+
}
|
1219 |
+
return this.search_field.css({
|
1220 |
+
'width': w + 'px'
|
1221 |
+
});
|
1222 |
+
}
|
1223 |
+
};
|
1224 |
+
|
1225 |
+
return Chosen;
|
1226 |
+
|
1227 |
+
})(AbstractChosen);
|
1228 |
+
|
1229 |
+
}).call(this);
|
assets/lib/jquery-chosen/chosen.jquery.min.js
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
1 |
+
/* Chosen v1.2.0 | (c) 2011-2014 by Harvest | MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md */
|
2 |
+
!function(){var a,AbstractChosen,Chosen,SelectParser,b,c={}.hasOwnProperty,d=function(a,b){function d(){this.constructor=a}for(var e in b)c.call(b,e)&&(a[e]=b[e]);return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a};SelectParser=function(){function SelectParser(){this.options_index=0,this.parsed=[]}return SelectParser.prototype.add_node=function(a){return"OPTGROUP"===a.nodeName.toUpperCase()?this.add_group(a):this.add_option(a)},SelectParser.prototype.add_group=function(a){var b,c,d,e,f,g;for(b=this.parsed.length,this.parsed.push({array_index:b,group:!0,label:this.escapeExpression(a.label),children:0,disabled:a.disabled}),f=a.childNodes,g=[],d=0,e=f.length;e>d;d++)c=f[d],g.push(this.add_option(c,b,a.disabled));return g},SelectParser.prototype.add_option=function(a,b,c){return"OPTION"===a.nodeName.toUpperCase()?(""!==a.text?(null!=b&&(this.parsed[b].children+=1),this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,value:a.value,text:a.text,html:a.innerHTML,selected:a.selected,disabled:c===!0?c:a.disabled,group_array_index:b,classes:a.className,style:a.style.cssText})):this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,empty:!0}),this.options_index+=1):void 0},SelectParser.prototype.escapeExpression=function(a){var b,c;return null==a||a===!1?"":/[\&\<\>\"\'\`]/.test(a)?(b={"<":"<",">":">",'"':""","'":"'","`":"`"},c=/&(?!\w+;)|[\<\>\"\'\`]/g,a.replace(c,function(a){return b[a]||"&"})):a},SelectParser}(),SelectParser.select_to_array=function(a){var b,c,d,e,f;for(c=new SelectParser,f=a.childNodes,d=0,e=f.length;e>d;d++)b=f[d],c.add_node(b);return c.parsed},AbstractChosen=function(){function AbstractChosen(a,b){this.form_field=a,this.options=null!=b?b:{},AbstractChosen.browser_is_supported()&&(this.is_multiple=this.form_field.multiple,this.set_default_text(),this.set_default_values(),this.setup(),this.set_up_html(),this.register_observers())}return AbstractChosen.prototype.set_default_values=function(){var a=this;return this.click_test_action=function(b){return a.test_active_click(b)},this.activate_action=function(b){return a.activate_field(b)},this.active_field=!1,this.mouse_on_container=!1,this.results_showing=!1,this.result_highlighted=null,this.allow_single_deselect=null!=this.options.allow_single_deselect&&null!=this.form_field.options[0]&&""===this.form_field.options[0].text?this.options.allow_single_deselect:!1,this.disable_search_threshold=this.options.disable_search_threshold||0,this.disable_search=this.options.disable_search||!1,this.enable_split_word_search=null!=this.options.enable_split_word_search?this.options.enable_split_word_search:!0,this.group_search=null!=this.options.group_search?this.options.group_search:!0,this.search_contains=this.options.search_contains||!1,this.single_backstroke_delete=null!=this.options.single_backstroke_delete?this.options.single_backstroke_delete:!0,this.max_selected_options=this.options.max_selected_options||1/0,this.inherit_select_classes=this.options.inherit_select_classes||!1,this.display_selected_options=null!=this.options.display_selected_options?this.options.display_selected_options:!0,this.display_disabled_options=null!=this.options.display_disabled_options?this.options.display_disabled_options:!0},AbstractChosen.prototype.set_default_text=function(){return this.default_text=this.form_field.getAttribute("data-placeholder")?this.form_field.getAttribute("data-placeholder"):this.is_multiple?this.options.placeholder_text_multiple||this.options.placeholder_text||AbstractChosen.default_multiple_text:this.options.placeholder_text_single||this.options.placeholder_text||AbstractChosen.default_single_text,this.results_none_found=this.form_field.getAttribute("data-no_results_text")||this.options.no_results_text||AbstractChosen.default_no_result_text},AbstractChosen.prototype.mouse_enter=function(){return this.mouse_on_container=!0},AbstractChosen.prototype.mouse_leave=function(){return this.mouse_on_container=!1},AbstractChosen.prototype.input_focus=function(){var a=this;if(this.is_multiple){if(!this.active_field)return setTimeout(function(){return a.container_mousedown()},50)}else if(!this.active_field)return this.activate_field()},AbstractChosen.prototype.input_blur=function(){var a=this;return this.mouse_on_container?void 0:(this.active_field=!1,setTimeout(function(){return a.blur_test()},100))},AbstractChosen.prototype.results_option_build=function(a){var b,c,d,e,f;for(b="",f=this.results_data,d=0,e=f.length;e>d;d++)c=f[d],b+=c.group?this.result_add_group(c):this.result_add_option(c),(null!=a?a.first:void 0)&&(c.selected&&this.is_multiple?this.choice_build(c):c.selected&&!this.is_multiple&&this.single_set_selected_text(c.text));return b},AbstractChosen.prototype.result_add_option=function(a){var b,c;return a.search_match?this.include_option_in_results(a)?(b=[],a.disabled||a.selected&&this.is_multiple||b.push("active-result"),!a.disabled||a.selected&&this.is_multiple||b.push("disabled-result"),a.selected&&b.push("result-selected"),null!=a.group_array_index&&b.push("group-option"),""!==a.classes&&b.push(a.classes),c=document.createElement("li"),c.className=b.join(" "),c.style.cssText=a.style,c.setAttribute("data-option-array-index",a.array_index),c.innerHTML=a.search_text,this.outerHTML(c)):"":""},AbstractChosen.prototype.result_add_group=function(a){var b;return a.search_match||a.group_match?a.active_options>0?(b=document.createElement("li"),b.className="group-result",b.innerHTML=a.search_text,this.outerHTML(b)):"":""},AbstractChosen.prototype.results_update_field=function(){return this.set_default_text(),this.is_multiple||this.results_reset_cleanup(),this.result_clear_highlight(),this.results_build(),this.results_showing?this.winnow_results():void 0},AbstractChosen.prototype.reset_single_select_options=function(){var a,b,c,d,e;for(d=this.results_data,e=[],b=0,c=d.length;c>b;b++)a=d[b],a.selected?e.push(a.selected=!1):e.push(void 0);return e},AbstractChosen.prototype.results_toggle=function(){return this.results_showing?this.results_hide():this.results_show()},AbstractChosen.prototype.results_search=function(){return this.results_showing?this.winnow_results():this.results_show()},AbstractChosen.prototype.winnow_results=function(){var a,b,c,d,e,f,g,h,i,j,k,l;for(this.no_results_clear(),d=0,f=this.get_search_text(),a=f.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),i=new RegExp(a,"i"),c=this.get_search_regex(a),l=this.results_data,j=0,k=l.length;k>j;j++)b=l[j],b.search_match=!1,e=null,this.include_option_in_results(b)&&(b.group&&(b.group_match=!1,b.active_options=0),null!=b.group_array_index&&this.results_data[b.group_array_index]&&(e=this.results_data[b.group_array_index],0===e.active_options&&e.search_match&&(d+=1),e.active_options+=1),(!b.group||this.group_search)&&(b.search_text=b.group?b.label:b.text,b.search_match=this.search_string_match(b.search_text,c),b.search_match&&!b.group&&(d+=1),b.search_match?(f.length&&(g=b.search_text.search(i),h=b.search_text.substr(0,g+f.length)+"</em>"+b.search_text.substr(g+f.length),b.search_text=h.substr(0,g)+"<em>"+h.substr(g)),null!=e&&(e.group_match=!0)):null!=b.group_array_index&&this.results_data[b.group_array_index].search_match&&(b.search_match=!0)));return this.result_clear_highlight(),1>d&&f.length?(this.update_results_content(""),this.no_results(f)):(this.update_results_content(this.results_option_build()),this.winnow_results_set_highlight())},AbstractChosen.prototype.get_search_regex=function(a){var b;return b=this.search_contains?"":"^",new RegExp(b+a,"i")},AbstractChosen.prototype.search_string_match=function(a,b){var c,d,e,f;if(b.test(a))return!0;if(this.enable_split_word_search&&(a.indexOf(" ")>=0||0===a.indexOf("["))&&(d=a.replace(/\[|\]/g,"").split(" "),d.length))for(e=0,f=d.length;f>e;e++)if(c=d[e],b.test(c))return!0},AbstractChosen.prototype.choices_count=function(){var a,b,c,d;if(null!=this.selected_option_count)return this.selected_option_count;for(this.selected_option_count=0,d=this.form_field.options,b=0,c=d.length;c>b;b++)a=d[b],a.selected&&(this.selected_option_count+=1);return this.selected_option_count},AbstractChosen.prototype.choices_click=function(a){return a.preventDefault(),this.results_showing||this.is_disabled?void 0:this.results_show()},AbstractChosen.prototype.keyup_checker=function(a){var b,c;switch(b=null!=(c=a.which)?c:a.keyCode,this.search_field_scale(),b){case 8:if(this.is_multiple&&this.backstroke_length<1&&this.choices_count()>0)return this.keydown_backstroke();if(!this.pending_backstroke)return this.result_clear_highlight(),this.results_search();break;case 13:if(a.preventDefault(),this.results_showing)return this.result_select(a);break;case 27:return this.results_showing&&this.results_hide(),!0;case 9:case 38:case 40:case 16:case 91:case 17:break;default:return this.results_search()}},AbstractChosen.prototype.clipboard_event_checker=function(){var a=this;return setTimeout(function(){return a.results_search()},50)},AbstractChosen.prototype.container_width=function(){return null!=this.options.width?this.options.width:""+this.form_field.offsetWidth+"px"},AbstractChosen.prototype.include_option_in_results=function(a){return this.is_multiple&&!this.display_selected_options&&a.selected?!1:!this.display_disabled_options&&a.disabled?!1:a.empty?!1:!0},AbstractChosen.prototype.search_results_touchstart=function(a){return this.touch_started=!0,this.search_results_mouseover(a)},AbstractChosen.prototype.search_results_touchmove=function(a){return this.touch_started=!1,this.search_results_mouseout(a)},AbstractChosen.prototype.search_results_touchend=function(a){return this.touch_started?this.search_results_mouseup(a):void 0},AbstractChosen.prototype.outerHTML=function(a){var b;return a.outerHTML?a.outerHTML:(b=document.createElement("div"),b.appendChild(a),b.innerHTML)},AbstractChosen.browser_is_supported=function(){return"Microsoft Internet Explorer"===window.navigator.appName?document.documentMode>=8:/iP(od|hone)/i.test(window.navigator.userAgent)?!1:/Android/i.test(window.navigator.userAgent)&&/Mobile/i.test(window.navigator.userAgent)?!1:!0},AbstractChosen.default_multiple_text="Select Some Options",AbstractChosen.default_single_text="Select an Option",AbstractChosen.default_no_result_text="No results match",AbstractChosen}(),a=jQuery,a.fn.extend({chosen:function(b){return AbstractChosen.browser_is_supported()?this.each(function(){var c,d;c=a(this),d=c.data("chosen"),"destroy"===b&&d instanceof Chosen?d.destroy():d instanceof Chosen||c.data("chosen",new Chosen(this,b))}):this}}),Chosen=function(c){function Chosen(){return b=Chosen.__super__.constructor.apply(this,arguments)}return d(Chosen,c),Chosen.prototype.setup=function(){return this.form_field_jq=a(this.form_field),this.current_selectedIndex=this.form_field.selectedIndex,this.is_rtl=this.form_field_jq.hasClass("chosen-rtl")},Chosen.prototype.set_up_html=function(){var b,c;return b=["chosen-container"],b.push("chosen-container-"+(this.is_multiple?"multi":"single")),this.inherit_select_classes&&this.form_field.className&&b.push(this.form_field.className),this.is_rtl&&b.push("chosen-rtl"),c={"class":b.join(" "),style:"width: "+this.container_width()+";",title:this.form_field.title},this.form_field.id.length&&(c.id=this.form_field.id.replace(/[^\w]/g,"_")+"_chosen"),this.container=a("<div />",c),this.is_multiple?this.container.html('<ul class="chosen-choices"><li class="search-field"><input type="text" value="'+this.default_text+'" class="default" autocomplete="off" style="width:25px;" /></li></ul><div class="chosen-drop"><ul class="chosen-results"></ul></div>'):this.container.html('<a class="chosen-single chosen-default" tabindex="-1"><span>'+this.default_text+'</span><div><b></b></div></a><div class="chosen-drop"><div class="chosen-search"><input type="text" autocomplete="off" /></div><ul class="chosen-results"></ul></div>'),this.form_field_jq.hide().after(this.container),this.dropdown=this.container.find("div.chosen-drop").first(),this.search_field=this.container.find("input").first(),this.search_results=this.container.find("ul.chosen-results").first(),this.search_field_scale(),this.search_no_results=this.container.find("li.no-results").first(),this.is_multiple?(this.search_choices=this.container.find("ul.chosen-choices").first(),this.search_container=this.container.find("li.search-field").first()):(this.search_container=this.container.find("div.chosen-search").first(),this.selected_item=this.container.find(".chosen-single").first()),this.results_build(),this.set_tab_index(),this.set_label_behavior(),this.form_field_jq.trigger("chosen:ready",{chosen:this})},Chosen.prototype.register_observers=function(){var a=this;return this.container.bind("touchstart.chosen",function(b){a.container_mousedown(b)}),this.container.bind("touchend.chosen",function(b){a.container_mouseup(b)}),this.container.bind("mousedown.chosen",function(b){a.container_mousedown(b)}),this.container.bind("mouseup.chosen",function(b){a.container_mouseup(b)}),this.container.bind("mouseenter.chosen",function(b){a.mouse_enter(b)}),this.container.bind("mouseleave.chosen",function(b){a.mouse_leave(b)}),this.search_results.bind("mouseup.chosen",function(b){a.search_results_mouseup(b)}),this.search_results.bind("mouseover.chosen",function(b){a.search_results_mouseover(b)}),this.search_results.bind("mouseout.chosen",function(b){a.search_results_mouseout(b)}),this.search_results.bind("mousewheel.chosen DOMMouseScroll.chosen",function(b){a.search_results_mousewheel(b)}),this.search_results.bind("touchstart.chosen",function(b){a.search_results_touchstart(b)}),this.search_results.bind("touchmove.chosen",function(b){a.search_results_touchmove(b)}),this.search_results.bind("touchend.chosen",function(b){a.search_results_touchend(b)}),this.form_field_jq.bind("chosen:updated.chosen",function(b){a.results_update_field(b)}),this.form_field_jq.bind("chosen:activate.chosen",function(b){a.activate_field(b)}),this.form_field_jq.bind("chosen:open.chosen",function(b){a.container_mousedown(b)}),this.form_field_jq.bind("chosen:close.chosen",function(b){a.input_blur(b)}),this.search_field.bind("blur.chosen",function(b){a.input_blur(b)}),this.search_field.bind("keyup.chosen",function(b){a.keyup_checker(b)}),this.search_field.bind("keydown.chosen",function(b){a.keydown_checker(b)}),this.search_field.bind("focus.chosen",function(b){a.input_focus(b)}),this.search_field.bind("cut.chosen",function(b){a.clipboard_event_checker(b)}),this.search_field.bind("paste.chosen",function(b){a.clipboard_event_checker(b)}),this.is_multiple?this.search_choices.bind("click.chosen",function(b){a.choices_click(b)}):this.container.bind("click.chosen",function(a){a.preventDefault()})},Chosen.prototype.destroy=function(){return a(this.container[0].ownerDocument).unbind("click.chosen",this.click_test_action),this.search_field[0].tabIndex&&(this.form_field_jq[0].tabIndex=this.search_field[0].tabIndex),this.container.remove(),this.form_field_jq.removeData("chosen"),this.form_field_jq.show()},Chosen.prototype.search_field_disabled=function(){return this.is_disabled=this.form_field_jq[0].disabled,this.is_disabled?(this.container.addClass("chosen-disabled"),this.search_field[0].disabled=!0,this.is_multiple||this.selected_item.unbind("focus.chosen",this.activate_action),this.close_field()):(this.container.removeClass("chosen-disabled"),this.search_field[0].disabled=!1,this.is_multiple?void 0:this.selected_item.bind("focus.chosen",this.activate_action))},Chosen.prototype.container_mousedown=function(b){return this.is_disabled||(b&&"mousedown"===b.type&&!this.results_showing&&b.preventDefault(),null!=b&&a(b.target).hasClass("search-choice-close"))?void 0:(this.active_field?this.is_multiple||!b||a(b.target)[0]!==this.selected_item[0]&&!a(b.target).parents("a.chosen-single").length||(b.preventDefault(),this.results_toggle()):(this.is_multiple&&this.search_field.val(""),a(this.container[0].ownerDocument).bind("click.chosen",this.click_test_action),this.results_show()),this.activate_field())},Chosen.prototype.container_mouseup=function(a){return"ABBR"!==a.target.nodeName||this.is_disabled?void 0:this.results_reset(a)},Chosen.prototype.search_results_mousewheel=function(a){var b;return a.originalEvent&&(b=a.originalEvent.deltaY||-a.originalEvent.wheelDelta||a.originalEvent.detail),null!=b?(a.preventDefault(),"DOMMouseScroll"===a.type&&(b=40*b),this.search_results.scrollTop(b+this.search_results.scrollTop())):void 0},Chosen.prototype.blur_test=function(){return!this.active_field&&this.container.hasClass("chosen-container-active")?this.close_field():void 0},Chosen.prototype.close_field=function(){return a(this.container[0].ownerDocument).unbind("click.chosen",this.click_test_action),this.active_field=!1,this.results_hide(),this.container.removeClass("chosen-container-active"),this.clear_backstroke(),this.show_search_field_default(),this.search_field_scale()},Chosen.prototype.activate_field=function(){return this.container.addClass("chosen-container-active"),this.active_field=!0,this.search_field.val(this.search_field.val()),this.search_field.focus()},Chosen.prototype.test_active_click=function(b){var c;return c=a(b.target).closest(".chosen-container"),c.length&&this.container[0]===c[0]?this.active_field=!0:this.close_field()},Chosen.prototype.results_build=function(){return this.parsing=!0,this.selected_option_count=null,this.results_data=SelectParser.select_to_array(this.form_field),this.is_multiple?this.search_choices.find("li.search-choice").remove():this.is_multiple||(this.single_set_selected_text(),this.disable_search||this.form_field.options.length<=this.disable_search_threshold?(this.search_field[0].readOnly=!0,this.container.addClass("chosen-container-single-nosearch")):(this.search_field[0].readOnly=!1,this.container.removeClass("chosen-container-single-nosearch"))),this.update_results_content(this.results_option_build({first:!0})),this.search_field_disabled(),this.show_search_field_default(),this.search_field_scale(),this.parsing=!1},Chosen.prototype.result_do_highlight=function(a){var b,c,d,e,f;if(a.length){if(this.result_clear_highlight(),this.result_highlight=a,this.result_highlight.addClass("highlighted"),d=parseInt(this.search_results.css("maxHeight"),10),f=this.search_results.scrollTop(),e=d+f,c=this.result_highlight.position().top+this.search_results.scrollTop(),b=c+this.result_highlight.outerHeight(),b>=e)return this.search_results.scrollTop(b-d>0?b-d:0);if(f>c)return this.search_results.scrollTop(c)}},Chosen.prototype.result_clear_highlight=function(){return this.result_highlight&&this.result_highlight.removeClass("highlighted"),this.result_highlight=null},Chosen.prototype.results_show=function(){return this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.container.addClass("chosen-with-drop"),this.results_showing=!0,this.search_field.focus(),this.search_field.val(this.search_field.val()),this.winnow_results(),this.form_field_jq.trigger("chosen:showing_dropdown",{chosen:this}))},Chosen.prototype.update_results_content=function(a){return this.search_results.html(a)},Chosen.prototype.results_hide=function(){return this.results_showing&&(this.result_clear_highlight(),this.container.removeClass("chosen-with-drop"),this.form_field_jq.trigger("chosen:hiding_dropdown",{chosen:this})),this.results_showing=!1},Chosen.prototype.set_tab_index=function(){var a;return this.form_field.tabIndex?(a=this.form_field.tabIndex,this.form_field.tabIndex=-1,this.search_field[0].tabIndex=a):void 0},Chosen.prototype.set_label_behavior=function(){var b=this;return this.form_field_label=this.form_field_jq.parents("label"),!this.form_field_label.length&&this.form_field.id.length&&(this.form_field_label=a("label[for='"+this.form_field.id+"']")),this.form_field_label.length>0?this.form_field_label.bind("click.chosen",function(a){return b.is_multiple?b.container_mousedown(a):b.activate_field()}):void 0},Chosen.prototype.show_search_field_default=function(){return this.is_multiple&&this.choices_count()<1&&!this.active_field?(this.search_field.val(this.default_text),this.search_field.addClass("default")):(this.search_field.val(""),this.search_field.removeClass("default"))},Chosen.prototype.search_results_mouseup=function(b){var c;return c=a(b.target).hasClass("active-result")?a(b.target):a(b.target).parents(".active-result").first(),c.length?(this.result_highlight=c,this.result_select(b),this.search_field.focus()):void 0},Chosen.prototype.search_results_mouseover=function(b){var c;return c=a(b.target).hasClass("active-result")?a(b.target):a(b.target).parents(".active-result").first(),c?this.result_do_highlight(c):void 0},Chosen.prototype.search_results_mouseout=function(b){return a(b.target).hasClass("active-result")?this.result_clear_highlight():void 0},Chosen.prototype.choice_build=function(b){var c,d,e=this;return c=a("<li />",{"class":"search-choice"}).html("<span>"+b.html+"</span>"),b.disabled?c.addClass("search-choice-disabled"):(d=a("<a />",{"class":"search-choice-close","data-option-array-index":b.array_index}),d.bind("click.chosen",function(a){return e.choice_destroy_link_click(a)}),c.append(d)),this.search_container.before(c)},Chosen.prototype.choice_destroy_link_click=function(b){return b.preventDefault(),b.stopPropagation(),this.is_disabled?void 0:this.choice_destroy(a(b.target))},Chosen.prototype.choice_destroy=function(a){return this.result_deselect(a[0].getAttribute("data-option-array-index"))?(this.show_search_field_default(),this.is_multiple&&this.choices_count()>0&&this.search_field.val().length<1&&this.results_hide(),a.parents("li").first().remove(),this.search_field_scale()):void 0},Chosen.prototype.results_reset=function(){return this.reset_single_select_options(),this.form_field.options[0].selected=!0,this.single_set_selected_text(),this.show_search_field_default(),this.results_reset_cleanup(),this.form_field_jq.trigger("change"),this.active_field?this.results_hide():void 0},Chosen.prototype.results_reset_cleanup=function(){return this.current_selectedIndex=this.form_field.selectedIndex,this.selected_item.find("abbr").remove()},Chosen.prototype.result_select=function(a){var b,c;return this.result_highlight?(b=this.result_highlight,this.result_clear_highlight(),this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.is_multiple?b.removeClass("active-result"):this.reset_single_select_options(),c=this.results_data[b[0].getAttribute("data-option-array-index")],c.selected=!0,this.form_field.options[c.options_index].selected=!0,this.selected_option_count=null,this.is_multiple?this.choice_build(c):this.single_set_selected_text(c.text),(a.metaKey||a.ctrlKey)&&this.is_multiple||this.results_hide(),this.search_field.val(""),(this.is_multiple||this.form_field.selectedIndex!==this.current_selectedIndex)&&this.form_field_jq.trigger("change",{selected:this.form_field.options[c.options_index].value}),this.current_selectedIndex=this.form_field.selectedIndex,this.search_field_scale())):void 0},Chosen.prototype.single_set_selected_text=function(a){return null==a&&(a=this.default_text),a===this.default_text?this.selected_item.addClass("chosen-default"):(this.single_deselect_control_build(),this.selected_item.removeClass("chosen-default")),this.selected_item.find("span").text(a)},Chosen.prototype.result_deselect=function(a){var b;return b=this.results_data[a],this.form_field.options[b.options_index].disabled?!1:(b.selected=!1,this.form_field.options[b.options_index].selected=!1,this.selected_option_count=null,this.result_clear_highlight(),this.results_showing&&this.winnow_results(),this.form_field_jq.trigger("change",{deselected:this.form_field.options[b.options_index].value}),this.search_field_scale(),!0)},Chosen.prototype.single_deselect_control_build=function(){return this.allow_single_deselect?(this.selected_item.find("abbr").length||this.selected_item.find("span").first().after('<abbr class="search-choice-close"></abbr>'),this.selected_item.addClass("chosen-single-with-deselect")):void 0},Chosen.prototype.get_search_text=function(){return this.search_field.val()===this.default_text?"":a("<div/>").text(a.trim(this.search_field.val())).html()},Chosen.prototype.winnow_results_set_highlight=function(){var a,b;return b=this.is_multiple?[]:this.search_results.find(".result-selected.active-result"),a=b.length?b.first():this.search_results.find(".active-result").first(),null!=a?this.result_do_highlight(a):void 0},Chosen.prototype.no_results=function(b){var c;return c=a('<li class="no-results">'+this.results_none_found+' "<span></span>"</li>'),c.find("span").first().html(b),this.search_results.append(c),this.form_field_jq.trigger("chosen:no_results",{chosen:this})},Chosen.prototype.no_results_clear=function(){return this.search_results.find(".no-results").remove()},Chosen.prototype.keydown_arrow=function(){var a;return this.results_showing&&this.result_highlight?(a=this.result_highlight.nextAll("li.active-result").first())?this.result_do_highlight(a):void 0:this.results_show()},Chosen.prototype.keyup_arrow=function(){var a;return this.results_showing||this.is_multiple?this.result_highlight?(a=this.result_highlight.prevAll("li.active-result"),a.length?this.result_do_highlight(a.first()):(this.choices_count()>0&&this.results_hide(),this.result_clear_highlight())):void 0:this.results_show()},Chosen.prototype.keydown_backstroke=function(){var a;return this.pending_backstroke?(this.choice_destroy(this.pending_backstroke.find("a").first()),this.clear_backstroke()):(a=this.search_container.siblings("li.search-choice").last(),a.length&&!a.hasClass("search-choice-disabled")?(this.pending_backstroke=a,this.single_backstroke_delete?this.keydown_backstroke():this.pending_backstroke.addClass("search-choice-focus")):void 0)},Chosen.prototype.clear_backstroke=function(){return this.pending_backstroke&&this.pending_backstroke.removeClass("search-choice-focus"),this.pending_backstroke=null},Chosen.prototype.keydown_checker=function(a){var b,c;switch(b=null!=(c=a.which)?c:a.keyCode,this.search_field_scale(),8!==b&&this.pending_backstroke&&this.clear_backstroke(),b){case 8:this.backstroke_length=this.search_field.val().length;break;case 9:this.results_showing&&!this.is_multiple&&this.result_select(a),this.mouse_on_container=!1;break;case 13:this.results_showing&&a.preventDefault();break;case 32:this.disable_search&&a.preventDefault();break;case 38:a.preventDefault(),this.keyup_arrow();break;case 40:a.preventDefault(),this.keydown_arrow()}},Chosen.prototype.search_field_scale=function(){var b,c,d,e,f,g,h,i,j;if(this.is_multiple){for(d=0,h=0,f="position:absolute; left: -1000px; top: -1000px; display:none;",g=["font-size","font-style","font-weight","font-family","line-height","text-transform","letter-spacing"],i=0,j=g.length;j>i;i++)e=g[i],f+=e+":"+this.search_field.css(e)+";";return b=a("<div />",{style:f}),b.text(this.search_field.val()),a("body").append(b),h=b.width()+25,b.remove(),c=this.container.outerWidth(),h>c-10&&(h=c-10),this.search_field.css({width:h+"px"})}},Chosen}(AbstractChosen)}.call(this);
|
assets/lib/jquery-chosen/images/chosen-sprite.png
ADDED
Binary file
|
assets/lib/jquery-chosen/images/chosen-sprite@2x.png
ADDED
Binary file
|
assets/lib/jquery-deserialize/jquery.deserialize.js
ADDED
@@ -0,0 +1,142 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* @author Kyle Florence <kyle[dot]florence[at]gmail[dot]com>
|
3 |
+
* @website https://github.com/kflorence/jquery-deserialize/
|
4 |
+
* @version 1.2.1
|
5 |
+
*
|
6 |
+
* Dual licensed under the MIT and GPLv2 licenses.
|
7 |
+
*/
|
8 |
+
(function( jQuery, undefined ) {
|
9 |
+
|
10 |
+
var push = Array.prototype.push,
|
11 |
+
rcheck = /^(?:radio|checkbox)$/i,
|
12 |
+
rplus = /\+/g,
|
13 |
+
rselect = /^(?:option|select-one|select-multiple)$/i,
|
14 |
+
rvalue = /^(?:button|color|date|datetime|datetime-local|email|hidden|month|number|password|range|reset|search|submit|tel|text|textarea|time|url|week)$/i;
|
15 |
+
|
16 |
+
function getElements( elements ) {
|
17 |
+
return elements.map(function() {
|
18 |
+
return this.elements ? jQuery.makeArray( this.elements ) : this;
|
19 |
+
}).filter( ":input:not(:disabled)" ).get();
|
20 |
+
}
|
21 |
+
|
22 |
+
function getElementsByName( elements ) {
|
23 |
+
var current,
|
24 |
+
elementsByName = {};
|
25 |
+
|
26 |
+
jQuery.each( elements, function( i, element ) {
|
27 |
+
current = elementsByName[ element.name ];
|
28 |
+
elementsByName[ element.name ] = current === undefined ? element :
|
29 |
+
( jQuery.isArray( current ) ? current.concat( element ) : [ current, element ] );
|
30 |
+
});
|
31 |
+
|
32 |
+
return elementsByName;
|
33 |
+
}
|
34 |
+
|
35 |
+
jQuery.fn.deserialize = function( data, options ) {
|
36 |
+
var i, length,
|
37 |
+
elements = getElements( this ),
|
38 |
+
normalized = [];
|
39 |
+
|
40 |
+
if ( !data || !elements.length ) {
|
41 |
+
return this;
|
42 |
+
}
|
43 |
+
|
44 |
+
if ( jQuery.isArray( data ) ) {
|
45 |
+
normalized = data;
|
46 |
+
|
47 |
+
} else if ( jQuery.isPlainObject( data ) ) {
|
48 |
+
var key, value;
|
49 |
+
|
50 |
+
for ( key in data ) {
|
51 |
+
jQuery.isArray( value = data[ key ] ) ?
|
52 |
+
push.apply( normalized, jQuery.map( value, function( v ) {
|
53 |
+
return { name: key, value: v };
|
54 |
+
})) : push.call( normalized, { name: key, value: value } );
|
55 |
+
}
|
56 |
+
|
57 |
+
} else if ( typeof data === "string" ) {
|
58 |
+
var parts;
|
59 |
+
|
60 |
+
data = data.split( "&" );
|
61 |
+
|
62 |
+
for ( i = 0, length = data.length; i < length; i++ ) {
|
63 |
+
parts = data[ i ].split( "=" );
|
64 |
+
push.call( normalized, {
|
65 |
+
name: decodeURIComponent( parts[ 0 ].replace( rplus, "%20" ) ),
|
66 |
+
value: decodeURIComponent( parts[ 1 ].replace( rplus, "%20" ) )
|
67 |
+
});
|
68 |
+
}
|
69 |
+
}
|
70 |
+
|
71 |
+
if ( !( length = normalized.length ) ) {
|
72 |
+
return this;
|
73 |
+
}
|
74 |
+
|
75 |
+
var current, element, j, len, name, property, type, value,
|
76 |
+
change = jQuery.noop,
|
77 |
+
complete = jQuery.noop,
|
78 |
+
names = {};
|
79 |
+
|
80 |
+
options = options || {};
|
81 |
+
elements = getElementsByName( elements );
|
82 |
+
|
83 |
+
// Backwards compatible with old arguments: data, callback
|
84 |
+
if ( jQuery.isFunction( options ) ) {
|
85 |
+
complete = options;
|
86 |
+
|
87 |
+
} else {
|
88 |
+
change = jQuery.isFunction( options.change ) ? options.change : change;
|
89 |
+
complete = jQuery.isFunction( options.complete ) ? options.complete : complete;
|
90 |
+
}
|
91 |
+
|
92 |
+
for ( i = 0; i < length; i++ ) {
|
93 |
+
current = normalized[ i ];
|
94 |
+
|
95 |
+
name = current.name;
|
96 |
+
value = current.value;
|
97 |
+
|
98 |
+
if ( !( element = elements[ name ] ) ) {
|
99 |
+
continue;
|
100 |
+
}
|
101 |
+
|
102 |
+
type = ( len = element.length ) ? element[ 0 ] : element;
|
103 |
+
type = ( type.type || type.nodeName ).toLowerCase();
|
104 |
+
property = null;
|
105 |
+
|
106 |
+
if ( rvalue.test( type ) ) {
|
107 |
+
if ( len ) {
|
108 |
+
j = names[ name ];
|
109 |
+
element = element[ names[ name ] = ( j == undefined ) ? 0 : ++j ];
|
110 |
+
}
|
111 |
+
|
112 |
+
change.call( element, ( element.value = value ) );
|
113 |
+
|
114 |
+
} else if ( rcheck.test( type ) ) {
|
115 |
+
property = "checked";
|
116 |
+
|
117 |
+
} else if ( rselect.test( type ) ) {
|
118 |
+
property = "selected";
|
119 |
+
}
|
120 |
+
|
121 |
+
if ( property ) {
|
122 |
+
if ( !len ) {
|
123 |
+
element = [ element ];
|
124 |
+
len = 1;
|
125 |
+
}
|
126 |
+
|
127 |
+
for ( j = 0; j < len; j++ ) {
|
128 |
+
current = element[ j ];
|
129 |
+
|
130 |
+
if ( current.value == value ) {
|
131 |
+
change.call( current, ( current[ property ] = true ) && value );
|
132 |
+
}
|
133 |
+
}
|
134 |
+
}
|
135 |
+
}
|
136 |
+
|
137 |
+
complete.call( this );
|
138 |
+
|
139 |
+
return this;
|
140 |
+
};
|
141 |
+
|
142 |
+
})( jQuery );
|
assets/lib/jquery-fileupload/jquery.fileupload.js
ADDED
@@ -0,0 +1,1611 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*
|
2 |
+
* jQuery File Upload Plugin 10.2.0
|
3 |
+
* https://github.com/blueimp/jQuery-File-Upload
|
4 |
+
*
|
5 |
+
* Copyright 2010, Sebastian Tschan
|
6 |
+
* https://blueimp.net
|
7 |
+
*
|
8 |
+
* Licensed under the MIT license:
|
9 |
+
* https://opensource.org/licenses/MIT
|
10 |
+
*/
|
11 |
+
|
12 |
+
/* global define, require */
|
13 |
+
/* eslint-disable new-cap */
|
14 |
+
|
15 |
+
(function(factory) {
|
16 |
+
'use strict';
|
17 |
+
if (typeof define === 'function' && define.amd) {
|
18 |
+
// Register as an anonymous AMD module:
|
19 |
+
define(['jquery', 'jquery-ui/ui/widget'], factory);
|
20 |
+
} else if (typeof exports === 'object') {
|
21 |
+
// Node/CommonJS:
|
22 |
+
factory(require('jquery'), require('./vendor/jquery.ui.widget'));
|
23 |
+
} else {
|
24 |
+
// Browser globals:
|
25 |
+
factory(window.jQuery);
|
26 |
+
}
|
27 |
+
})(function($) {
|
28 |
+
'use strict';
|
29 |
+
|
30 |
+
// Detect file input support, based on
|
31 |
+
// https://viljamis.com/2012/file-upload-support-on-mobile/
|
32 |
+
$.support.fileInput = !(
|
33 |
+
new RegExp(
|
34 |
+
// Handle devices which give false positives for the feature detection:
|
35 |
+
'(Android (1\\.[0156]|2\\.[01]))' +
|
36 |
+
'|(Windows Phone (OS 7|8\\.0))|(XBLWP)|(ZuneWP)|(WPDesktop)' +
|
37 |
+
'|(w(eb)?OSBrowser)|(webOS)' +
|
38 |
+
'|(Kindle/(1\\.0|2\\.[05]|3\\.0))'
|
39 |
+
).test(window.navigator.userAgent) ||
|
40 |
+
// Feature detection for all other devices:
|
41 |
+
$('<input type="file"/>').prop('disabled')
|
42 |
+
);
|
43 |
+
|
44 |
+
// The FileReader API is not actually used, but works as feature detection,
|
45 |
+
// as some Safari versions (5?) support XHR file uploads via the FormData API,
|
46 |
+
// but not non-multipart XHR file uploads.
|
47 |
+
// window.XMLHttpRequestUpload is not available on IE10, so we check for
|
48 |
+
// window.ProgressEvent instead to detect XHR2 file upload capability:
|
49 |
+
$.support.xhrFileUpload = !!(window.ProgressEvent && window.FileReader);
|
50 |
+
$.support.xhrFormDataFileUpload = !!window.FormData;
|
51 |
+
|
52 |
+
// Detect support for Blob slicing (required for chunked uploads):
|
53 |
+
$.support.blobSlice =
|
54 |
+
window.Blob &&
|
55 |
+
(Blob.prototype.slice ||
|
56 |
+
Blob.prototype.webkitSlice ||
|
57 |
+
Blob.prototype.mozSlice);
|
58 |
+
|
59 |
+
/**
|
60 |
+
* Helper function to create drag handlers for dragover/dragenter/dragleave
|
61 |
+
*
|
62 |
+
* @param {string} type Event type
|
63 |
+
* @returns {Function} Drag handler
|
64 |
+
*/
|
65 |
+
function getDragHandler(type) {
|
66 |
+
var isDragOver = type === 'dragover';
|
67 |
+
return function(e) {
|
68 |
+
e.dataTransfer = e.originalEvent && e.originalEvent.dataTransfer;
|
69 |
+
var dataTransfer = e.dataTransfer;
|
70 |
+
if (
|
71 |
+
dataTransfer &&
|
72 |
+
$.inArray('Files', dataTransfer.types) !== -1 &&
|
73 |
+
this._trigger(type, $.Event(type, { delegatedEvent: e })) !== false
|
74 |
+
) {
|
75 |
+
e.preventDefault();
|
76 |
+
if (isDragOver) {
|
77 |
+
dataTransfer.dropEffect = 'copy';
|
78 |
+
}
|
79 |
+
}
|
80 |
+
};
|
81 |
+
}
|
82 |
+
|
83 |
+
// The fileupload widget listens for change events on file input fields defined
|
84 |
+
// via fileInput setting and paste or drop events of the given dropZone.
|
85 |
+
// In addition to the default jQuery Widget methods, the fileupload widget
|
86 |
+
// exposes the "add" and "send" methods, to add or directly send files using
|
87 |
+
// the fileupload API.
|
88 |
+
// By default, files added via file input selection, paste, drag & drop or
|
89 |
+
// "add" method are uploaded immediately, but it is possible to override
|
90 |
+
// the "add" callback option to queue file uploads.
|
91 |
+
$.widget('blueimp.fileupload', {
|
92 |
+
options: {
|
93 |
+
// The drop target element(s), by the default the complete document.
|
94 |
+
// Set to null to disable drag & drop support:
|
95 |
+
dropZone: $(document),
|
96 |
+
// The paste target element(s), by the default undefined.
|
97 |
+
// Set to a DOM node or jQuery object to enable file pasting:
|
98 |
+
pasteZone: undefined,
|
99 |
+
// The file input field(s), that are listened to for change events.
|
100 |
+
// If undefined, it is set to the file input fields inside
|
101 |
+
// of the widget element on plugin initialization.
|
102 |
+
// Set to null to disable the change listener.
|
103 |
+
fileInput: undefined,
|
104 |
+
// By default, the file input field is replaced with a clone after
|
105 |
+
// each input field change event. This is required for iframe transport
|
106 |
+
// queues and allows change events to be fired for the same file
|
107 |
+
// selection, but can be disabled by setting the following option to false:
|
108 |
+
replaceFileInput: true,
|
109 |
+
// The parameter name for the file form data (the request argument name).
|
110 |
+
// If undefined or empty, the name property of the file input field is
|
111 |
+
// used, or "files[]" if the file input name property is also empty,
|
112 |
+
// can be a string or an array of strings:
|
113 |
+
paramName: undefined,
|
114 |
+
// By default, each file of a selection is uploaded using an individual
|
115 |
+
// request for XHR type uploads. Set to false to upload file
|
116 |
+
// selections in one request each:
|
117 |
+
singleFileUploads: true,
|
118 |
+
// To limit the number of files uploaded with one XHR request,
|
119 |
+
// set the following option to an integer greater than 0:
|
120 |
+
limitMultiFileUploads: undefined,
|
121 |
+
// The following option limits the number of files uploaded with one
|
122 |
+
// XHR request to keep the request size under or equal to the defined
|
123 |
+
// limit in bytes:
|
124 |
+
limitMultiFileUploadSize: undefined,
|
125 |
+
// Multipart file uploads add a number of bytes to each uploaded file,
|
126 |
+
// therefore the following option adds an overhead for each file used
|
127 |
+
// in the limitMultiFileUploadSize configuration:
|
128 |
+
limitMultiFileUploadSizeOverhead: 512,
|
129 |
+
// Set the following option to true to issue all file upload requests
|
130 |
+
// in a sequential order:
|
131 |
+
sequentialUploads: false,
|
132 |
+
// To limit the number of concurrent uploads,
|
133 |
+
// set the following option to an integer greater than 0:
|
134 |
+
limitConcurrentUploads: undefined,
|
135 |
+
// Set the following option to true to force iframe transport uploads:
|
136 |
+
forceIframeTransport: false,
|
137 |
+
// Set the following option to the location of a redirect url on the
|
138 |
+
// origin server, for cross-domain iframe transport uploads:
|
139 |
+
redirect: undefined,
|
140 |
+
// The parameter name for the redirect url, sent as part of the form
|
141 |
+
// data and set to 'redirect' if this option is empty:
|
142 |
+
redirectParamName: undefined,
|
143 |
+
// Set the following option to the location of a postMessage window,
|
144 |
+
// to enable postMessage transport uploads:
|
145 |
+
postMessage: undefined,
|
146 |
+
// By default, XHR file uploads are sent as multipart/form-data.
|
147 |
+
// The iframe transport is always using multipart/form-data.
|
148 |
+
// Set to false to enable non-multipart XHR uploads:
|
149 |
+
multipart: true,
|
150 |
+
// To upload large files in smaller chunks, set the following option
|
151 |
+
// to a preferred maximum chunk size. If set to 0, null or undefined,
|
152 |
+
// or the browser does not support the required Blob API, files will
|
153 |
+
// be uploaded as a whole.
|
154 |
+
maxChunkSize: undefined,
|
155 |
+
// When a non-multipart upload or a chunked multipart upload has been
|
156 |
+
// aborted, this option can be used to resume the upload by setting
|
157 |
+
// it to the size of the already uploaded bytes. This option is most
|
158 |
+
// useful when modifying the options object inside of the "add" or
|
159 |
+
// "send" callbacks, as the options are cloned for each file upload.
|
160 |
+
uploadedBytes: undefined,
|
161 |
+
// By default, failed (abort or error) file uploads are removed from the
|
162 |
+
// global progress calculation. Set the following option to false to
|
163 |
+
// prevent recalculating the global progress data:
|
164 |
+
recalculateProgress: true,
|
165 |
+
// Interval in milliseconds to calculate and trigger progress events:
|
166 |
+
progressInterval: 100,
|
167 |
+
// Interval in milliseconds to calculate progress bitrate:
|
168 |
+
bitrateInterval: 500,
|
169 |
+
// By default, uploads are started automatically when adding files:
|
170 |
+
autoUpload: true,
|
171 |
+
// By default, duplicate file names are expected to be handled on
|
172 |
+
// the server-side. If this is not possible (e.g. when uploading
|
173 |
+
// files directly to Amazon S3), the following option can be set to
|
174 |
+
// an empty object or an object mapping existing filenames, e.g.:
|
175 |
+
// { "image.jpg": true, "image (1).jpg": true }
|
176 |
+
// If it is set, all files will be uploaded with unique filenames,
|
177 |
+
// adding increasing number suffixes if necessary, e.g.:
|
178 |
+
// "image (2).jpg"
|
179 |
+
uniqueFilenames: undefined,
|
180 |
+
|
181 |
+
// Error and info messages:
|
182 |
+
messages: {
|
183 |
+
uploadedBytes: 'Uploaded bytes exceed file size'
|
184 |
+
},
|
185 |
+
|
186 |
+
// Translation function, gets the message key to be translated
|
187 |
+
// and an object with context specific data as arguments:
|
188 |
+
i18n: function(message, context) {
|
189 |
+
// eslint-disable-next-line no-param-reassign
|
190 |
+
message = this.messages[message] || message.toString();
|
191 |
+
if (context) {
|
192 |
+
$.each(context, function(key, value) {
|
193 |
+
// eslint-disable-next-line no-param-reassign
|
194 |
+
message = message.replace('{' + key + '}', value);
|
195 |
+
});
|
196 |
+
}
|
197 |
+
return message;
|
198 |
+
},
|
199 |
+
|
200 |
+
// Additional form data to be sent along with the file uploads can be set
|
201 |
+
// using this option, which accepts an array of objects with name and
|
202 |
+
// value properties, a function returning such an array, a FormData
|
203 |
+
// object (for XHR file uploads), or a simple object.
|
204 |
+
// The form of the first fileInput is given as parameter to the function:
|
205 |
+
formData: function(form) {
|
206 |
+
return form.serializeArray();
|
207 |
+
},
|
208 |
+
|
209 |
+
// The add callback is invoked as soon as files are added to the fileupload
|
210 |
+
// widget (via file input selection, drag & drop, paste or add API call).
|
211 |
+
// If the singleFileUploads option is enabled, this callback will be
|
212 |
+
// called once for each file in the selection for XHR file uploads, else
|
213 |
+
// once for each file selection.
|
214 |
+
//
|
215 |
+
// The upload starts when the submit method is invoked on the data parameter.
|
216 |
+
// The data object contains a files property holding the added files
|
217 |
+
// and allows you to override plugin options as well as define ajax settings.
|
218 |
+
//
|
219 |
+
// Listeners for this callback can also be bound the following way:
|
220 |
+
// .bind('fileuploadadd', func);
|
221 |
+
//
|
222 |
+
// data.submit() returns a Promise object and allows to attach additional
|
223 |
+
// handlers using jQuery's Deferred callbacks:
|
224 |
+
// data.submit().done(func).fail(func).always(func);
|
225 |
+
add: function(e, data) {
|
226 |
+
if (e.isDefaultPrevented()) {
|
227 |
+
return false;
|
228 |
+
}
|
229 |
+
if (
|
230 |
+
data.autoUpload ||
|
231 |
+
(data.autoUpload !== false &&
|
232 |
+
$(this).fileupload('option', 'autoUpload'))
|
233 |
+
) {
|
234 |
+
data.process().done(function() {
|
235 |
+
data.submit();
|
236 |
+
});
|
237 |
+
}
|
238 |
+
},
|
239 |
+
|
240 |
+
// Other callbacks:
|
241 |
+
|
242 |
+
// Callback for the submit event of each file upload:
|
243 |
+
// submit: function (e, data) {}, // .bind('fileuploadsubmit', func);
|
244 |
+
|
245 |
+
// Callback for the start of each file upload request:
|
246 |
+
// send: function (e, data) {}, // .bind('fileuploadsend', func);
|
247 |
+
|
248 |
+
// Callback for successful uploads:
|
249 |
+
// done: function (e, data) {}, // .bind('fileuploaddone', func);
|
250 |
+
|
251 |
+
// Callback for failed (abort or error) uploads:
|
252 |
+
// fail: function (e, data) {}, // .bind('fileuploadfail', func);
|
253 |
+
|
254 |
+
// Callback for completed (success, abort or error) requests:
|
255 |
+
// always: function (e, data) {}, // .bind('fileuploadalways', func);
|
256 |
+
|
257 |
+
// Callback for upload progress events:
|
258 |
+
// progress: function (e, data) {}, // .bind('fileuploadprogress', func);
|
259 |
+
|
260 |
+
// Callback for global upload progress events:
|
261 |
+
// progressall: function (e, data) {}, // .bind('fileuploadprogressall', func);
|
262 |
+
|
263 |
+
// Callback for uploads start, equivalent to the global ajaxStart event:
|
264 |
+
// start: function (e) {}, // .bind('fileuploadstart', func);
|
265 |
+
|
266 |
+
// Callback for uploads stop, equivalent to the global ajaxStop event:
|
267 |
+
// stop: function (e) {}, // .bind('fileuploadstop', func);
|
268 |
+
|
269 |
+
// Callback for change events of the fileInput(s):
|
270 |
+
// change: function (e, data) {}, // .bind('fileuploadchange', func);
|
271 |
+
|
272 |
+
// Callback for paste events to the pasteZone(s):
|
273 |
+
// paste: function (e, data) {}, // .bind('fileuploadpaste', func);
|
274 |
+
|
275 |
+
// Callback for drop events of the dropZone(s):
|
276 |
+
// drop: function (e, data) {}, // .bind('fileuploaddrop', func);
|
277 |
+
|
278 |
+
// Callback for dragover events of the dropZone(s):
|
279 |
+
// dragover: function (e) {}, // .bind('fileuploaddragover', func);
|
280 |
+
|
281 |
+
// Callback before the start of each chunk upload request (before form data initialization):
|
282 |
+
// chunkbeforesend: function (e, data) {}, // .bind('fileuploadchunkbeforesend', func);
|
283 |
+
|
284 |
+
// Callback for the start of each chunk upload request:
|
285 |
+
// chunksend: function (e, data) {}, // .bind('fileuploadchunksend', func);
|
286 |
+
|
287 |
+
// Callback for successful chunk uploads:
|
288 |
+
// chunkdone: function (e, data) {}, // .bind('fileuploadchunkdone', func);
|
289 |
+
|
290 |
+
// Callback for failed (abort or error) chunk uploads:
|
291 |
+
// chunkfail: function (e, data) {}, // .bind('fileuploadchunkfail', func);
|
292 |
+
|
293 |
+
// Callback for completed (success, abort or error) chunk upload requests:
|
294 |
+
// chunkalways: function (e, data) {}, // .bind('fileuploadchunkalways', func);
|
295 |
+
|
296 |
+
// The plugin options are used as settings object for the ajax calls.
|
297 |
+
// The following are jQuery ajax settings required for the file uploads:
|
298 |
+
processData: false,
|
299 |
+
contentType: false,
|
300 |
+
cache: false,
|
301 |
+
timeout: 0
|
302 |
+
},
|
303 |
+
|
304 |
+
// A list of options that require reinitializing event listeners and/or
|
305 |
+
// special initialization code:
|
306 |
+
_specialOptions: [
|
307 |
+
'fileInput',
|
308 |
+
'dropZone',
|
309 |
+
'pasteZone',
|
310 |
+
'multipart',
|
311 |
+
'forceIframeTransport'
|
312 |
+
],
|
313 |
+
|
314 |
+
_blobSlice:
|
315 |
+
$.support.blobSlice &&
|
316 |
+
function() {
|
317 |
+
var slice = this.slice || this.webkitSlice || this.mozSlice;
|
318 |
+
return slice.apply(this, arguments);
|
319 |
+
},
|
320 |
+
|
321 |
+
_BitrateTimer: function() {
|
322 |
+
this.timestamp = Date.now ? Date.now() : new Date().getTime();
|
323 |
+
this.loaded = 0;
|
324 |
+
this.bitrate = 0;
|
325 |
+
this.getBitrate = function(now, loaded, interval) {
|
326 |
+
var timeDiff = now - this.timestamp;
|
327 |
+
if (!this.bitrate || !interval || timeDiff > interval) {
|
328 |
+
this.bitrate = (loaded - this.loaded) * (1000 / timeDiff) * 8;
|
329 |
+
this.loaded = loaded;
|
330 |
+
this.timestamp = now;
|
331 |
+
}
|
332 |
+
return this.bitrate;
|
333 |
+
};
|
334 |
+
},
|
335 |
+
|
336 |
+
_isXHRUpload: function(options) {
|
337 |
+
return (
|
338 |
+
!options.forceIframeTransport &&
|
339 |
+
((!options.multipart && $.support.xhrFileUpload) ||
|
340 |
+
$.support.xhrFormDataFileUpload)
|
341 |
+
);
|
342 |
+
},
|
343 |
+
|
344 |
+
_getFormData: function(options) {
|
345 |
+
var formData;
|
346 |
+
if ($.type(options.formData) === 'function') {
|
347 |
+
return options.formData(options.form);
|
348 |
+
}
|
349 |
+
if ($.isArray(options.formData)) {
|
350 |
+
return options.formData;
|
351 |
+
}
|
352 |
+
if ($.type(options.formData) === 'object') {
|
353 |
+
formData = [];
|
354 |
+
$.each(options.formData, function(name, value) {
|
355 |
+
formData.push({ name: name, value: value });
|
356 |
+
});
|
357 |
+
return formData;
|
358 |
+
}
|
359 |
+
return [];
|
360 |
+
},
|
361 |
+
|
362 |
+
_getTotal: function(files) {
|
363 |
+
var total = 0;
|
364 |
+
$.each(files, function(index, file) {
|
365 |
+
total += file.size || 1;
|
366 |
+
});
|
367 |
+
return total;
|
368 |
+
},
|
369 |
+
|
370 |
+
_initProgressObject: function(obj) {
|
371 |
+
var progress = {
|
372 |
+
loaded: 0,
|
373 |
+
total: 0,
|
374 |
+
bitrate: 0
|
375 |
+
};
|
376 |
+
if (obj._progress) {
|
377 |
+
$.extend(obj._progress, progress);
|
378 |
+
} else {
|
379 |
+
obj._progress = progress;
|
380 |
+
}
|
381 |
+
},
|
382 |
+
|
383 |
+
_initResponseObject: function(obj) {
|
384 |
+
var prop;
|
385 |
+
if (obj._response) {
|
386 |
+
for (prop in obj._response) {
|
387 |
+
if (Object.prototype.hasOwnProperty.call(obj._response, prop)) {
|
388 |
+
delete obj._response[prop];
|
389 |
+
}
|
390 |
+
}
|
391 |
+
} else {
|
392 |
+
obj._response = {};
|
393 |
+
}
|
394 |
+
},
|
395 |
+
|
396 |
+
_onProgress: function(e, data) {
|
397 |
+
if (e.lengthComputable) {
|
398 |
+
var now = Date.now ? Date.now() : new Date().getTime(),
|
399 |
+
loaded;
|
400 |
+
if (
|
401 |
+
data._time &&
|
402 |
+
data.progressInterval &&
|
403 |
+
now - data._time < data.progressInterval &&
|
404 |
+
e.loaded !== e.total
|
405 |
+
) {
|
406 |
+
return;
|
407 |
+
}
|
408 |
+
data._time = now;
|
409 |
+
loaded =
|
410 |
+
Math.floor(
|
411 |
+
(e.loaded / e.total) * (data.chunkSize || data._progress.total)
|
412 |
+
) + (data.uploadedBytes || 0);
|
413 |
+
// Add the difference from the previously loaded state
|
414 |
+
// to the global loaded counter:
|
415 |
+
this._progress.loaded += loaded - data._progress.loaded;
|
416 |
+
this._progress.bitrate = this._bitrateTimer.getBitrate(
|
417 |
+
now,
|
418 |
+
this._progress.loaded,
|
419 |
+
data.bitrateInterval
|
420 |
+
);
|
421 |
+
data._progress.loaded = data.loaded = loaded;
|
422 |
+
data._progress.bitrate = data.bitrate = data._bitrateTimer.getBitrate(
|
423 |
+
now,
|
424 |
+
loaded,
|
425 |
+
data.bitrateInterval
|
426 |
+
);
|
427 |
+
// Trigger a custom progress event with a total data property set
|
428 |
+
// to the file size(s) of the current upload and a loaded data
|
429 |
+
// property calculated accordingly:
|
430 |
+
this._trigger(
|
431 |
+
'progress',
|
432 |
+
$.Event('progress', { delegatedEvent: e }),
|
433 |
+
data
|
434 |
+
);
|
435 |
+
// Trigger a global progress event for all current file uploads,
|
436 |
+
// including ajax calls queued for sequential file uploads:
|
437 |
+
this._trigger(
|
438 |
+
'progressall',
|
439 |
+
$.Event('progressall', { delegatedEvent: e }),
|
440 |
+
this._progress
|
441 |
+
);
|
442 |
+
}
|
443 |
+
},
|
444 |
+
|
445 |
+
_initProgressListener: function(options) {
|
446 |
+
var that = this,
|
447 |
+
xhr = options.xhr ? options.xhr() : $.ajaxSettings.xhr();
|
448 |
+
// Accesss to the native XHR object is required to add event listeners
|
449 |
+
// for the upload progress event:
|
450 |
+
if (xhr.upload) {
|
451 |
+
$(xhr.upload).bind('progress', function(e) {
|
452 |
+
var oe = e.originalEvent;
|
453 |
+
// Make sure the progress event properties get copied over:
|
454 |
+
e.lengthComputable = oe.lengthComputable;
|
455 |
+
e.loaded = oe.loaded;
|
456 |
+
e.total = oe.total;
|
457 |
+
that._onProgress(e, options);
|
458 |
+
});
|
459 |
+
options.xhr = function() {
|
460 |
+
return xhr;
|
461 |
+
};
|
462 |
+
}
|
463 |
+
},
|
464 |
+
|
465 |
+
_deinitProgressListener: function(options) {
|
466 |
+
var xhr = options.xhr ? options.xhr() : $.ajaxSettings.xhr();
|
467 |
+
if (xhr.upload) {
|
468 |
+
$(xhr.upload).unbind('progress');
|
469 |
+
}
|
470 |
+
},
|
471 |
+
|
472 |
+
_isInstanceOf: function(type, obj) {
|
473 |
+
// Cross-frame instanceof check
|
474 |
+
return Object.prototype.toString.call(obj) === '[object ' + type + ']';
|
475 |
+
},
|
476 |
+
|
477 |
+
_getUniqueFilename: function(name, map) {
|
478 |
+
// eslint-disable-next-line no-param-reassign
|
479 |
+
name = String(name);
|
480 |
+
if (map[name]) {
|
481 |
+
// eslint-disable-next-line no-param-reassign
|
482 |
+
name = name.replace(/(?: \(([\d]+)\))?(\.[^.]+)?$/, function(
|
483 |
+
_,
|
484 |
+
p1,
|
485 |
+
p2
|
486 |
+
) {
|
487 |
+
var index = p1 ? Number(p1) + 1 : 1;
|
488 |
+
var ext = p2 || '';
|
489 |
+
return ' (' + index + ')' + ext;
|
490 |
+
});
|
491 |
+
return this._getUniqueFilename(name, map);
|
492 |
+
}
|
493 |
+
map[name] = true;
|
494 |
+
return name;
|
495 |
+
},
|
496 |
+
|
497 |
+
_initXHRData: function(options) {
|
498 |
+
var that = this,
|
499 |
+
formData,
|
500 |
+
file = options.files[0],
|
501 |
+
// Ignore non-multipart setting if not supported:
|
502 |
+
multipart = options.multipart || !$.support.xhrFileUpload,
|
503 |
+
paramName =
|
504 |
+
$.type(options.paramName) === 'array'
|
505 |
+
? options.paramName[0]
|
506 |
+
: options.paramName;
|
507 |
+
options.headers = $.extend({}, options.headers);
|
508 |
+
if (options.contentRange) {
|
509 |
+
options.headers['Content-Range'] = options.contentRange;
|
510 |
+
}
|
511 |
+
if (!multipart || options.blob || !this._isInstanceOf('File', file)) {
|
512 |
+
options.headers['Content-Disposition'] =
|
513 |
+
'attachment; filename="' +
|
514 |
+
encodeURI(file.uploadName || file.name) +
|
515 |
+
'"';
|
516 |
+
}
|
517 |
+
if (!multipart) {
|
518 |
+
options.contentType = file.type || 'application/octet-stream';
|
519 |
+
options.data = options.blob || file;
|
520 |
+
} else if ($.support.xhrFormDataFileUpload) {
|
521 |
+
if (options.postMessage) {
|
522 |
+
// window.postMessage does not allow sending FormData
|
523 |
+
// objects, so we just add the File/Blob objects to
|
524 |
+
// the formData array and let the postMessage window
|
525 |
+
// create the FormData object out of this array:
|
526 |
+
formData = this._getFormData(options);
|
527 |
+
if (options.blob) {
|
528 |
+
formData.push({
|
529 |
+
name: paramName,
|
530 |
+
value: options.blob
|
531 |
+
});
|
532 |
+
} else {
|
533 |
+
$.each(options.files, function(index, file) {
|
534 |
+
formData.push({
|
535 |
+
name:
|
536 |
+
($.type(options.paramName) === 'array' &&
|
537 |
+
options.paramName[index]) ||
|
538 |
+
paramName,
|
539 |
+
value: file
|
540 |
+
});
|
541 |
+
});
|
542 |
+
}
|
543 |
+
} else {
|
544 |
+
if (that._isInstanceOf('FormData', options.formData)) {
|
545 |
+
formData = options.formData;
|
546 |
+
} else {
|
547 |
+
formData = new FormData();
|
548 |
+
$.each(this._getFormData(options), function(index, field) {
|
549 |
+
formData.append(field.name, field.value);
|
550 |
+
});
|
551 |
+
}
|
552 |
+
if (options.blob) {
|
553 |
+
formData.append(
|
554 |
+
paramName,
|
555 |
+
options.blob,
|
556 |
+
file.uploadName || file.name
|
557 |
+
);
|
558 |
+
} else {
|
559 |
+
$.each(options.files, function(index, file) {
|
560 |
+
// This check allows the tests to run with
|
561 |
+
// dummy objects:
|
562 |
+
if (
|
563 |
+
that._isInstanceOf('File', file) ||
|
564 |
+
that._isInstanceOf('Blob', file)
|
565 |
+
) {
|
566 |
+
var fileName = file.uploadName || file.name;
|
567 |
+
if (options.uniqueFilenames) {
|
568 |
+
fileName = that._getUniqueFilename(
|
569 |
+
fileName,
|
570 |
+
options.uniqueFilenames
|
571 |
+
);
|
572 |
+
}
|
573 |
+
formData.append(
|
574 |
+
($.type(options.paramName) === 'array' &&
|
575 |
+
options.paramName[index]) ||
|
576 |
+
paramName,
|
577 |
+
file,
|
578 |
+
fileName
|
579 |
+
);
|
580 |
+
}
|
581 |
+
});
|
582 |
+
}
|
583 |
+
}
|
584 |
+
options.data = formData;
|
585 |
+
}
|
586 |
+
// Blob reference is not needed anymore, free memory:
|
587 |
+
options.blob = null;
|
588 |
+
},
|
589 |
+
|
590 |
+
_initIframeSettings: function(options) {
|
591 |
+
var targetHost = $('<a></a>')
|
592 |
+
.prop('href', options.url)
|
593 |
+
.prop('host');
|
594 |
+
// Setting the dataType to iframe enables the iframe transport:
|
595 |
+
options.dataType = 'iframe ' + (options.dataType || '');
|
596 |
+
// The iframe transport accepts a serialized array as form data:
|
597 |
+
options.formData = this._getFormData(options);
|
598 |
+
// Add redirect url to form data on cross-domain uploads:
|
599 |
+
if (options.redirect && targetHost && targetHost !== location.host) {
|
600 |
+
options.formData.push({
|
601 |
+
name: options.redirectParamName || 'redirect',
|
602 |
+
value: options.redirect
|
603 |
+
});
|
604 |
+
}
|
605 |
+
},
|
606 |
+
|
607 |
+
_initDataSettings: function(options) {
|
608 |
+
if (this._isXHRUpload(options)) {
|
609 |
+
if (!this._chunkedUpload(options, true)) {
|
610 |
+
if (!options.data) {
|
611 |
+
this._initXHRData(options);
|
612 |
+
}
|
613 |
+
this._initProgressListener(options);
|
614 |
+
}
|
615 |
+
if (options.postMessage) {
|
616 |
+
// Setting the dataType to postmessage enables the
|
617 |
+
// postMessage transport:
|
618 |
+
options.dataType = 'postmessage ' + (options.dataType || '');
|
619 |
+
}
|
620 |
+
} else {
|
621 |
+
this._initIframeSettings(options);
|
622 |
+
}
|
623 |
+
},
|
624 |
+
|
625 |
+
_getParamName: function(options) {
|
626 |
+
var fileInput = $(options.fileInput),
|
627 |
+
paramName = options.paramName;
|
628 |
+
if (!paramName) {
|
629 |
+
paramName = [];
|
630 |
+
fileInput.each(function() {
|
631 |
+
var input = $(this),
|
632 |
+
name = input.prop('name') || 'files[]',
|
633 |
+
i = (input.prop('files') || [1]).length;
|
634 |
+
while (i) {
|
635 |
+
paramName.push(name);
|
636 |
+
i -= 1;
|
637 |
+
}
|
638 |
+
});
|
639 |
+
if (!paramName.length) {
|
640 |
+
paramName = [fileInput.prop('name') || 'files[]'];
|
641 |
+
}
|
642 |
+
} else if (!$.isArray(paramName)) {
|
643 |
+
paramName = [paramName];
|
644 |
+
}
|
645 |
+
return paramName;
|
646 |
+
},
|
647 |
+
|
648 |
+
_initFormSettings: function(options) {
|
649 |
+
// Retrieve missing options from the input field and the
|
650 |
+
// associated form, if available:
|
651 |
+
if (!options.form || !options.form.length) {
|
652 |
+
options.form = $(options.fileInput.prop('form'));
|
653 |
+
// If the given file input doesn't have an associated form,
|
654 |
+
// use the default widget file input's form:
|
655 |
+
if (!options.form.length) {
|
656 |
+
options.form = $(this.options.fileInput.prop('form'));
|
657 |
+
}
|
658 |
+
}
|
659 |
+
options.paramName = this._getParamName(options);
|
660 |
+
if (!options.url) {
|
661 |
+
options.url = options.form.prop('action') || location.href;
|
662 |
+
}
|
663 |
+
// The HTTP request method must be "POST" or "PUT":
|
664 |
+
options.type = (
|
665 |
+
options.type ||
|
666 |
+
($.type(options.form.prop('method')) === 'string' &&
|
667 |
+
options.form.prop('method')) ||
|
668 |
+
''
|
669 |
+
).toUpperCase();
|
670 |
+
if (
|
671 |
+
options.type !== 'POST' &&
|
672 |
+
options.type !== 'PUT' &&
|
673 |
+
options.type !== 'PATCH'
|
674 |
+
) {
|
675 |
+
options.type = 'POST';
|
676 |
+
}
|
677 |
+
if (!options.formAcceptCharset) {
|
678 |
+
options.formAcceptCharset = options.form.attr('accept-charset');
|
679 |
+
}
|
680 |
+
},
|
681 |
+
|
682 |
+
_getAJAXSettings: function(data) {
|
683 |
+
var options = $.extend({}, this.options, data);
|
684 |
+
this._initFormSettings(options);
|
685 |
+
this._initDataSettings(options);
|
686 |
+
return options;
|
687 |
+
},
|
688 |
+
|
689 |
+
// jQuery 1.6 doesn't provide .state(),
|
690 |
+
// while jQuery 1.8+ removed .isRejected() and .isResolved():
|
691 |
+
_getDeferredState: function(deferred) {
|
692 |
+
if (deferred.state) {
|
693 |
+
return deferred.state();
|
694 |
+
}
|
695 |
+
if (deferred.isResolved()) {
|
696 |
+
return 'resolved';
|
697 |
+
}
|
698 |
+
if (deferred.isRejected()) {
|
699 |
+
return 'rejected';
|
700 |
+
}
|
701 |
+
return 'pending';
|
702 |
+
},
|
703 |
+
|
704 |
+
// Maps jqXHR callbacks to the equivalent
|
705 |
+
// methods of the given Promise object:
|
706 |
+
_enhancePromise: function(promise) {
|
707 |
+
promise.success = promise.done;
|
708 |
+
promise.error = promise.fail;
|
709 |
+
promise.complete = promise.always;
|
710 |
+
return promise;
|
711 |
+
},
|
712 |
+
|
713 |
+
// Creates and returns a Promise object enhanced with
|
714 |
+
// the jqXHR methods abort, success, error and complete:
|
715 |
+
_getXHRPromise: function(resolveOrReject, context, args) {
|
716 |
+
var dfd = $.Deferred(),
|
717 |
+
promise = dfd.promise();
|
718 |
+
// eslint-disable-next-line no-param-reassign
|
719 |
+
context = context || this.options.context || promise;
|
720 |
+
if (resolveOrReject === true) {
|
721 |
+
dfd.resolveWith(context, args);
|
722 |
+
} else if (resolveOrReject === false) {
|
723 |
+
dfd.rejectWith(context, args);
|
724 |
+
}
|
725 |
+
promise.abort = dfd.promise;
|
726 |
+
return this._enhancePromise(promise);
|
727 |
+
},
|
728 |
+
|
729 |
+
// Adds convenience methods to the data callback argument:
|
730 |
+
_addConvenienceMethods: function(e, data) {
|
731 |
+
var that = this,
|
732 |
+
getPromise = function(args) {
|
733 |
+
return $.Deferred()
|
734 |
+
.resolveWith(that, args)
|
735 |
+
.promise();
|
736 |
+
};
|
737 |
+
data.process = function(resolveFunc, rejectFunc) {
|
738 |
+
if (resolveFunc || rejectFunc) {
|
739 |
+
data._processQueue = this._processQueue = (
|
740 |
+
this._processQueue || getPromise([this])
|
741 |
+
)
|
742 |
+
.then(function() {
|
743 |
+
if (data.errorThrown) {
|
744 |
+
return $.Deferred()
|
745 |
+
.rejectWith(that, [data])
|
746 |
+
.promise();
|
747 |
+
}
|
748 |
+
return getPromise(arguments);
|
749 |
+
})
|
750 |
+
.then(resolveFunc, rejectFunc);
|
751 |
+
}
|
752 |
+
return this._processQueue || getPromise([this]);
|
753 |
+
};
|
754 |
+
data.submit = function() {
|
755 |
+
if (this.state() !== 'pending') {
|
756 |
+
data.jqXHR = this.jqXHR =
|
757 |
+
that._trigger(
|
758 |
+
'submit',
|
759 |
+
$.Event('submit', { delegatedEvent: e }),
|
760 |
+
this
|
761 |
+
) !== false && that._onSend(e, this);
|
762 |
+
}
|
763 |
+
return this.jqXHR || that._getXHRPromise();
|
764 |
+
};
|
765 |
+
data.abort = function() {
|
766 |
+
if (this.jqXHR) {
|
767 |
+
return this.jqXHR.abort();
|
768 |
+
}
|
769 |
+
this.errorThrown = 'abort';
|
770 |
+
that._trigger('fail', null, this);
|
771 |
+
return that._getXHRPromise(false);
|
772 |
+
};
|
773 |
+
data.state = function() {
|
774 |
+
if (this.jqXHR) {
|
775 |
+
return that._getDeferredState(this.jqXHR);
|
776 |
+
}
|
777 |
+
if (this._processQueue) {
|
778 |
+
return that._getDeferredState(this._processQueue);
|
779 |
+
}
|
780 |
+
};
|
781 |
+
data.processing = function() {
|
782 |
+
return (
|
783 |
+
!this.jqXHR &&
|
784 |
+
this._processQueue &&
|
785 |
+
that._getDeferredState(this._processQueue) === 'pending'
|
786 |
+
);
|
787 |
+
};
|
788 |
+
data.progress = function() {
|
789 |
+
return this._progress;
|
790 |
+
};
|
791 |
+
data.response = function() {
|
792 |
+
return this._response;
|
793 |
+
};
|
794 |
+
},
|
795 |
+
|
796 |
+
// Parses the Range header from the server response
|
797 |
+
// and returns the uploaded bytes:
|
798 |
+
_getUploadedBytes: function(jqXHR) {
|
799 |
+
var range = jqXHR.getResponseHeader('Range'),
|
800 |
+
parts = range && range.split('-'),
|
801 |
+
upperBytesPos = parts && parts.length > 1 && parseInt(parts[1], 10);
|
802 |
+
return upperBytesPos && upperBytesPos + 1;
|
803 |
+
},
|
804 |
+
|
805 |
+
// Uploads a file in multiple, sequential requests
|
806 |
+
// by splitting the file up in multiple blob chunks.
|
807 |
+
// If the second parameter is true, only tests if the file
|
808 |
+
// should be uploaded in chunks, but does not invoke any
|
809 |
+
// upload requests:
|
810 |
+
_chunkedUpload: function(options, testOnly) {
|
811 |
+
options.uploadedBytes = options.uploadedBytes || 0;
|
812 |
+
var that = this,
|
813 |
+
file = options.files[0],
|
814 |
+
fs = file.size,
|
815 |
+
ub = options.uploadedBytes,
|
816 |
+
mcs = options.maxChunkSize || fs,
|
817 |
+
slice = this._blobSlice,
|
818 |
+
dfd = $.Deferred(),
|
819 |
+
promise = dfd.promise(),
|
820 |
+
jqXHR,
|
821 |
+
upload;
|
822 |
+
if (
|
823 |
+
!(
|
824 |
+
this._isXHRUpload(options) &&
|
825 |
+
slice &&
|
826 |
+
(ub || ($.type(mcs) === 'function' ? mcs(options) : mcs) < fs)
|
827 |
+
) ||
|
828 |
+
options.data
|
829 |
+
) {
|
830 |
+
return false;
|
831 |
+
}
|
832 |
+
if (testOnly) {
|
833 |
+
return true;
|
834 |
+
}
|
835 |
+
if (ub >= fs) {
|
836 |
+
file.error = options.i18n('uploadedBytes');
|
837 |
+
return this._getXHRPromise(false, options.context, [
|
838 |
+
null,
|
839 |
+
'error',
|
840 |
+
file.error
|
841 |
+
]);
|
842 |
+
}
|
843 |
+
// The chunk upload method:
|
844 |
+
upload = function() {
|
845 |
+
// Clone the options object for each chunk upload:
|
846 |
+
var o = $.extend({}, options),
|
847 |
+
currentLoaded = o._progress.loaded;
|
848 |
+
o.blob = slice.call(
|
849 |
+
file,
|
850 |
+
ub,
|
851 |
+
ub + ($.type(mcs) === 'function' ? mcs(o) : mcs),
|
852 |
+
file.type
|
853 |
+
);
|
854 |
+
// Store the current chunk size, as the blob itself
|
855 |
+
// will be dereferenced after data processing:
|
856 |
+
o.chunkSize = o.blob.size;
|
857 |
+
// Expose the chunk bytes position range:
|
858 |
+
o.contentRange =
|
859 |
+
'bytes ' + ub + '-' + (ub + o.chunkSize - 1) + '/' + fs;
|
860 |
+
// Trigger chunkbeforesend to allow form data to be updated for this chunk
|
861 |
+
that._trigger('chunkbeforesend', null, o);
|
862 |
+
// Process the upload data (the blob and potential form data):
|
863 |
+
that._initXHRData(o);
|
864 |
+
// Add progress listeners for this chunk upload:
|
865 |
+
that._initProgressListener(o);
|
866 |
+
jqXHR = (
|
867 |
+
(that._trigger('chunksend', null, o) !== false && $.ajax(o)) ||
|
868 |
+
that._getXHRPromise(false, o.context)
|
869 |
+
)
|
870 |
+
.done(function(result, textStatus, jqXHR) {
|
871 |
+
ub = that._getUploadedBytes(jqXHR) || ub + o.chunkSize;
|
872 |
+
// Create a progress event if no final progress event
|
873 |
+
// with loaded equaling total has been triggered
|
874 |
+
// for this chunk:
|
875 |
+
if (currentLoaded + o.chunkSize - o._progress.loaded) {
|
876 |
+
that._onProgress(
|
877 |
+
$.Event('progress', {
|
878 |
+
lengthComputable: true,
|
879 |
+
loaded: ub - o.uploadedBytes,
|
880 |
+
total: ub - o.uploadedBytes
|
881 |
+
}),
|
882 |
+
o
|
883 |
+
);
|
884 |
+
}
|
885 |
+
options.uploadedBytes = o.uploadedBytes = ub;
|
886 |
+
o.result = result;
|
887 |
+
o.textStatus = textStatus;
|
888 |
+
o.jqXHR = jqXHR;
|
889 |
+
that._trigger('chunkdone', null, o);
|
890 |
+
that._trigger('chunkalways', null, o);
|
891 |
+
if (ub < fs) {
|
892 |
+
// File upload not yet complete,
|
893 |
+
// continue with the next chunk:
|
894 |
+
upload();
|
895 |
+
} else {
|
896 |
+
dfd.resolveWith(o.context, [result, textStatus, jqXHR]);
|
897 |
+
}
|
898 |
+
})
|
899 |
+
.fail(function(jqXHR, textStatus, errorThrown) {
|
900 |
+
o.jqXHR = jqXHR;
|
901 |
+
o.textStatus = textStatus;
|
902 |
+
o.errorThrown = errorThrown;
|
903 |
+
that._trigger('chunkfail', null, o);
|
904 |
+
that._trigger('chunkalways', null, o);
|
905 |
+
dfd.rejectWith(o.context, [jqXHR, textStatus, errorThrown]);
|
906 |
+
})
|
907 |
+
.always(function() {
|
908 |
+
that._deinitProgressListener(o);
|
909 |
+
});
|
910 |
+
};
|
911 |
+
this._enhancePromise(promise);
|
912 |
+
promise.abort = function() {
|
913 |
+
return jqXHR.abort();
|
914 |
+
};
|
915 |
+
upload();
|
916 |
+
return promise;
|
917 |
+
},
|
918 |
+
|
919 |
+
_beforeSend: function(e, data) {
|
920 |
+
if (this._active === 0) {
|
921 |
+
// the start callback is triggered when an upload starts
|
922 |
+
// and no other uploads are currently running,
|
923 |
+
// equivalent to the global ajaxStart event:
|
924 |
+
this._trigger('start');
|
925 |
+
// Set timer for global bitrate progress calculation:
|
926 |
+
this._bitrateTimer = new this._BitrateTimer();
|
927 |
+
// Reset the global progress values:
|
928 |
+
this._progress.loaded = this._progress.total = 0;
|
929 |
+
this._progress.bitrate = 0;
|
930 |
+
}
|
931 |
+
// Make sure the container objects for the .response() and
|
932 |
+
// .progress() methods on the data object are available
|
933 |
+
// and reset to their initial state:
|
934 |
+
this._initResponseObject(data);
|
935 |
+
this._initProgressObject(data);
|
936 |
+
data._progress.loaded = data.loaded = data.uploadedBytes || 0;
|
937 |
+
data._progress.total = data.total = this._getTotal(data.files) || 1;
|
938 |
+
data._progress.bitrate = data.bitrate = 0;
|
939 |
+
this._active += 1;
|
940 |
+
// Initialize the global progress values:
|
941 |
+
this._progress.loaded += data.loaded;
|
942 |
+
this._progress.total += data.total;
|
943 |
+
},
|
944 |
+
|
945 |
+
_onDone: function(result, textStatus, jqXHR, options) {
|
946 |
+
var total = options._progress.total,
|
947 |
+
response = options._response;
|
948 |
+
if (options._progress.loaded < total) {
|
949 |
+
// Create a progress event if no final progress event
|
950 |
+
// with loaded equaling total has been triggered:
|
951 |
+
this._onProgress(
|
952 |
+
$.Event('progress', {
|
953 |
+
lengthComputable: true,
|
954 |
+
loaded: total,
|
955 |
+
total: total
|
956 |
+
}),
|
957 |
+
options
|
958 |
+
);
|
959 |
+
}
|
960 |
+
response.result = options.result = result;
|
961 |
+
response.textStatus = options.textStatus = textStatus;
|
962 |
+
response.jqXHR = options.jqXHR = jqXHR;
|
963 |
+
this._trigger('done', null, options);
|
964 |
+
},
|
965 |
+
|
966 |
+
_onFail: function(jqXHR, textStatus, errorThrown, options) {
|
967 |
+
var response = options._response;
|
968 |
+
if (options.recalculateProgress) {
|
969 |
+
// Remove the failed (error or abort) file upload from
|
970 |
+
// the global progress calculation:
|
971 |
+
this._progress.loaded -= options._progress.loaded;
|
972 |
+
this._progress.total -= options._progress.total;
|
973 |
+
}
|
974 |
+
response.jqXHR = options.jqXHR = jqXHR;
|
975 |
+
response.textStatus = options.textStatus = textStatus;
|
976 |
+
response.errorThrown = options.errorThrown = errorThrown;
|
977 |
+
this._trigger('fail', null, options);
|
978 |
+
},
|
979 |
+
|
980 |
+
_onAlways: function(jqXHRorResult, textStatus, jqXHRorError, options) {
|
981 |
+
// jqXHRorResult, textStatus and jqXHRorError are added to the
|
982 |
+
// options object via done and fail callbacks
|
983 |
+
this._trigger('always', null, options);
|
984 |
+
},
|
985 |
+
|
986 |
+
_onSend: function(e, data) {
|
987 |
+
if (!data.submit) {
|
988 |
+
this._addConvenienceMethods(e, data);
|
989 |
+
}
|
990 |
+
var that = this,
|
991 |
+
jqXHR,
|
992 |
+
aborted,
|
993 |
+
slot,
|
994 |
+
pipe,
|
995 |
+
options = that._getAJAXSettings(data),
|
996 |
+
send = function() {
|
997 |
+
that._sending += 1;
|
998 |
+
// Set timer for bitrate progress calculation:
|
999 |
+
options._bitrateTimer = new that._BitrateTimer();
|
1000 |
+
jqXHR =
|
1001 |
+
jqXHR ||
|
1002 |
+
(
|
1003 |
+
((aborted ||
|
1004 |
+
that._trigger(
|
1005 |
+
'send',
|
1006 |
+
$.Event('send', { delegatedEvent: e }),
|
1007 |
+
options
|
1008 |
+
) === false) &&
|
1009 |
+
that._getXHRPromise(false, options.context, aborted)) ||
|
1010 |
+
that._chunkedUpload(options) ||
|
1011 |
+
$.ajax(options)
|
1012 |
+
)
|
1013 |
+
.done(function(result, textStatus, jqXHR) {
|
1014 |
+
that._onDone(result, textStatus, jqXHR, options);
|
1015 |
+
})
|
1016 |
+
.fail(function(jqXHR, textStatus, errorThrown) {
|
1017 |
+
that._onFail(jqXHR, textStatus, errorThrown, options);
|
1018 |
+
})
|
1019 |
+
.always(function(jqXHRorResult, textStatus, jqXHRorError) {
|
1020 |
+
that._deinitProgressListener(options);
|
1021 |
+
that._onAlways(
|
1022 |
+
jqXHRorResult,
|
1023 |
+
textStatus,
|
1024 |
+
jqXHRorError,
|
1025 |
+
options
|
1026 |
+
);
|
1027 |
+
that._sending -= 1;
|
1028 |
+
that._active -= 1;
|
1029 |
+
if (
|
1030 |
+
options.limitConcurrentUploads &&
|
1031 |
+
options.limitConcurrentUploads > that._sending
|
1032 |
+
) {
|
1033 |
+
// Start the next queued upload,
|
1034 |
+
// that has not been aborted:
|
1035 |
+
var nextSlot = that._slots.shift();
|
1036 |
+
while (nextSlot) {
|
1037 |
+
if (that._getDeferredState(nextSlot) === 'pending') {
|
1038 |
+
nextSlot.resolve();
|
1039 |
+
break;
|
1040 |
+
}
|
1041 |
+
nextSlot = that._slots.shift();
|
1042 |
+
}
|
1043 |
+
}
|
1044 |
+
if (that._active === 0) {
|
1045 |
+
// The stop callback is triggered when all uploads have
|
1046 |
+
// been completed, equivalent to the global ajaxStop event:
|
1047 |
+
that._trigger('stop');
|
1048 |
+
}
|
1049 |
+
});
|
1050 |
+
return jqXHR;
|
1051 |
+
};
|
1052 |
+
this._beforeSend(e, options);
|
1053 |
+
if (
|
1054 |
+
this.options.sequentialUploads ||
|
1055 |
+
(this.options.limitConcurrentUploads &&
|
1056 |
+
this.options.limitConcurrentUploads <= this._sending)
|
1057 |
+
) {
|
1058 |
+
if (this.options.limitConcurrentUploads > 1) {
|
1059 |
+
slot = $.Deferred();
|
1060 |
+
this._slots.push(slot);
|
1061 |
+
pipe = slot.then(send);
|
1062 |
+
} else {
|
1063 |
+
this._sequence = this._sequence.then(send, send);
|
1064 |
+
pipe = this._sequence;
|
1065 |
+
}
|
1066 |
+
// Return the piped Promise object, enhanced with an abort method,
|
1067 |
+
// which is delegated to the jqXHR object of the current upload,
|
1068 |
+
// and jqXHR callbacks mapped to the equivalent Promise methods:
|
1069 |
+
pipe.abort = function() {
|
1070 |
+
aborted = [undefined, 'abort', 'abort'];
|
1071 |
+
if (!jqXHR) {
|
1072 |
+
if (slot) {
|
1073 |
+
slot.rejectWith(options.context, aborted);
|
1074 |
+
}
|
1075 |
+
return send();
|
1076 |
+
}
|
1077 |
+
return jqXHR.abort();
|
1078 |
+
};
|
1079 |
+
return this._enhancePromise(pipe);
|
1080 |
+
}
|
1081 |
+
return send();
|
1082 |
+
},
|
1083 |
+
|
1084 |
+
_onAdd: function(e, data) {
|
1085 |
+
var that = this,
|
1086 |
+
result = true,
|
1087 |
+
options = $.extend({}, this.options, data),
|
1088 |
+
files = data.files,
|
1089 |
+
filesLength = files.length,
|
1090 |
+
limit = options.limitMultiFileUploads,
|
1091 |
+
limitSize = options.limitMultiFileUploadSize,
|
1092 |
+
overhead = options.limitMultiFileUploadSizeOverhead,
|
1093 |
+
batchSize = 0,
|
1094 |
+
paramName = this._getParamName(options),
|
1095 |
+
paramNameSet,
|
1096 |
+
paramNameSlice,
|
1097 |
+
fileSet,
|
1098 |
+
i,
|
1099 |
+
j = 0;
|
1100 |
+
if (!filesLength) {
|
1101 |
+
return false;
|
1102 |
+
}
|
1103 |
+
if (limitSize && files[0].size === undefined) {
|
1104 |
+
limitSize = undefined;
|
1105 |
+
}
|
1106 |
+
if (
|
1107 |
+
!(options.singleFileUploads || limit || limitSize) ||
|
1108 |
+
!this._isXHRUpload(options)
|
1109 |
+
) {
|
1110 |
+
fileSet = [files];
|
1111 |
+
paramNameSet = [paramName];
|
1112 |
+
} else if (!(options.singleFileUploads || limitSize) && limit) {
|
1113 |
+
fileSet = [];
|
1114 |
+
paramNameSet = [];
|
1115 |
+
for (i = 0; i < filesLength; i += limit) {
|
1116 |
+
fileSet.push(files.slice(i, i + limit));
|
1117 |
+
paramNameSlice = paramName.slice(i, i + limit);
|
1118 |
+
if (!paramNameSlice.length) {
|
1119 |
+
paramNameSlice = paramName;
|
1120 |
+
}
|
1121 |
+
paramNameSet.push(paramNameSlice);
|
1122 |
+
}
|
1123 |
+
} else if (!options.singleFileUploads && limitSize) {
|
1124 |
+
fileSet = [];
|
1125 |
+
paramNameSet = [];
|
1126 |
+
for (i = 0; i < filesLength; i = i + 1) {
|
1127 |
+
batchSize += files[i].size + overhead;
|
1128 |
+
if (
|
1129 |
+
i + 1 === filesLength ||
|
1130 |
+
batchSize + files[i + 1].size + overhead > limitSize ||
|
1131 |
+
(limit && i + 1 - j >= limit)
|
1132 |
+
) {
|
1133 |
+
fileSet.push(files.slice(j, i + 1));
|
1134 |
+
paramNameSlice = paramName.slice(j, i + 1);
|
1135 |
+
if (!paramNameSlice.length) {
|
1136 |
+
paramNameSlice = paramName;
|
1137 |
+
}
|
1138 |
+
paramNameSet.push(paramNameSlice);
|
1139 |
+
j = i + 1;
|
1140 |
+
batchSize = 0;
|
1141 |
+
}
|
1142 |
+
}
|
1143 |
+
} else {
|
1144 |
+
paramNameSet = paramName;
|
1145 |
+
}
|
1146 |
+
data.originalFiles = files;
|
1147 |
+
$.each(fileSet || files, function(index, element) {
|
1148 |
+
var newData = $.extend({}, data);
|
1149 |
+
newData.files = fileSet ? element : [element];
|
1150 |
+
newData.paramName = paramNameSet[index];
|
1151 |
+
that._initResponseObject(newData);
|
1152 |
+
that._initProgressObject(newData);
|
1153 |
+
that._addConvenienceMethods(e, newData);
|
1154 |
+
result = that._trigger(
|
1155 |
+
'add',
|
1156 |
+
$.Event('add', { delegatedEvent: e }),
|
1157 |
+
newData
|
1158 |
+
);
|
1159 |
+
return result;
|
1160 |
+
});
|
1161 |
+
return result;
|
1162 |
+
},
|
1163 |
+
|
1164 |
+
_replaceFileInput: function(data) {
|
1165 |
+
var input = data.fileInput,
|
1166 |
+
inputClone = input.clone(true),
|
1167 |
+
restoreFocus = input.is(document.activeElement);
|
1168 |
+
// Add a reference for the new cloned file input to the data argument:
|
1169 |
+
data.fileInputClone = inputClone;
|
1170 |
+
$('<form></form>')
|
1171 |
+
.append(inputClone)[0]
|
1172 |
+
.reset();
|
1173 |
+
// Detaching allows to insert the fileInput on another form
|
1174 |
+
// without loosing the file input value:
|
1175 |
+
input.after(inputClone).detach();
|
1176 |
+
// If the fileInput had focus before it was detached,
|
1177 |
+
// restore focus to the inputClone.
|
1178 |
+
if (restoreFocus) {
|
1179 |
+
inputClone.focus();
|
1180 |
+
}
|
1181 |
+
// Avoid memory leaks with the detached file input:
|
1182 |
+
$.cleanData(input.unbind('remove'));
|
1183 |
+
// Replace the original file input element in the fileInput
|
1184 |
+
// elements set with the clone, which has been copied including
|
1185 |
+
// event handlers:
|
1186 |
+
this.options.fileInput = this.options.fileInput.map(function(i, el) {
|
1187 |
+
if (el === input[0]) {
|
1188 |
+
return inputClone[0];
|
1189 |
+
}
|
1190 |
+
return el;
|
1191 |
+
});
|
1192 |
+
// If the widget has been initialized on the file input itself,
|
1193 |
+
// override this.element with the file input clone:
|
1194 |
+
if (input[0] === this.element[0]) {
|
1195 |
+
this.element = inputClone;
|
1196 |
+
}
|
1197 |
+
},
|
1198 |
+
|
1199 |
+
_handleFileTreeEntry: function(entry, path) {
|
1200 |
+
var that = this,
|
1201 |
+
dfd = $.Deferred(),
|
1202 |
+
entries = [],
|
1203 |
+
dirReader,
|
1204 |
+
errorHandler = function(e) {
|
1205 |
+
if (e && !e.entry) {
|
1206 |
+
e.entry = entry;
|
1207 |
+
}
|
1208 |
+
// Since $.when returns immediately if one
|
1209 |
+
// Deferred is rejected, we use resolve instead.
|
1210 |
+
// This allows valid files and invalid items
|
1211 |
+
// to be returned together in one set:
|
1212 |
+
dfd.resolve([e]);
|
1213 |
+
},
|
1214 |
+
successHandler = function(entries) {
|
1215 |
+
that
|
1216 |
+
._handleFileTreeEntries(entries, path + entry.name + '/')
|
1217 |
+
.done(function(files) {
|
1218 |
+
dfd.resolve(files);
|
1219 |
+
})
|
1220 |
+
.fail(errorHandler);
|
1221 |
+
},
|
1222 |
+
readEntries = function() {
|
1223 |
+
dirReader.readEntries(function(results) {
|
1224 |
+
if (!results.length) {
|
1225 |
+
successHandler(entries);
|
1226 |
+
} else {
|
1227 |
+
entries = entries.concat(results);
|
1228 |
+
readEntries();
|
1229 |
+
}
|
1230 |
+
}, errorHandler);
|
1231 |
+
};
|
1232 |
+
// eslint-disable-next-line no-param-reassign
|
1233 |
+
path = path || '';
|
1234 |
+
if (entry.isFile) {
|
1235 |
+
if (entry._file) {
|
1236 |
+
// Workaround for Chrome bug #149735
|
1237 |
+
entry._file.relativePath = path;
|
1238 |
+
dfd.resolve(entry._file);
|
1239 |
+
} else {
|
1240 |
+
entry.file(function(file) {
|
1241 |
+
file.relativePath = path;
|
1242 |
+
dfd.resolve(file);
|
1243 |
+
}, errorHandler);
|
1244 |
+
}
|
1245 |
+
} else if (entry.isDirectory) {
|
1246 |
+
dirReader = entry.createReader();
|
1247 |
+
readEntries();
|
1248 |
+
} else {
|
1249 |
+
// Return an empty list for file system items
|
1250 |
+
// other than files or directories:
|
1251 |
+
dfd.resolve([]);
|
1252 |
+
}
|
1253 |
+
return dfd.promise();
|
1254 |
+
},
|
1255 |
+
|
1256 |
+
_handleFileTreeEntries: function(entries, path) {
|
1257 |
+
var that = this;
|
1258 |
+
return $.when
|
1259 |
+
.apply(
|
1260 |
+
$,
|
1261 |
+
$.map(entries, function(entry) {
|
1262 |
+
return that._handleFileTreeEntry(entry, path);
|
1263 |
+
})
|
1264 |
+
)
|
1265 |
+
.then(function() {
|
1266 |
+
return Array.prototype.concat.apply([], arguments);
|
1267 |
+
});
|
1268 |
+
},
|
1269 |
+
|
1270 |
+
_getDroppedFiles: function(dataTransfer) {
|
1271 |
+
// eslint-disable-next-line no-param-reassign
|
1272 |
+
dataTransfer = dataTransfer || {};
|
1273 |
+
var items = dataTransfer.items;
|
1274 |
+
if (
|
1275 |
+
items &&
|
1276 |
+
items.length &&
|
1277 |
+
(items[0].webkitGetAsEntry || items[0].getAsEntry)
|
1278 |
+
) {
|
1279 |
+
return this._handleFileTreeEntries(
|
1280 |
+
$.map(items, function(item) {
|
1281 |
+
var entry;
|
1282 |
+
if (item.webkitGetAsEntry) {
|
1283 |
+
entry = item.webkitGetAsEntry();
|
1284 |
+
if (entry) {
|
1285 |
+
// Workaround for Chrome bug #149735:
|
1286 |
+
entry._file = item.getAsFile();
|
1287 |
+
}
|
1288 |
+
return entry;
|
1289 |
+
}
|
1290 |
+
return item.getAsEntry();
|
1291 |
+
})
|
1292 |
+
);
|
1293 |
+
}
|
1294 |
+
return $.Deferred()
|
1295 |
+
.resolve($.makeArray(dataTransfer.files))
|
1296 |
+
.promise();
|
1297 |
+
},
|
1298 |
+
|
1299 |
+
_getSingleFileInputFiles: function(fileInput) {
|
1300 |
+
// eslint-disable-next-line no-param-reassign
|
1301 |
+
fileInput = $(fileInput);
|
1302 |
+
var entries =
|
1303 |
+
fileInput.prop('webkitEntries') || fileInput.prop('entries'),
|
1304 |
+
files,
|
1305 |
+
value;
|
1306 |
+
if (entries && entries.length) {
|
1307 |
+
return this._handleFileTreeEntries(entries);
|
1308 |
+
}
|
1309 |
+
files = $.makeArray(fileInput.prop('files'));
|
1310 |
+
if (!files.length) {
|
1311 |
+
value = fileInput.prop('value');
|
1312 |
+
if (!value) {
|
1313 |
+
return $.Deferred()
|
1314 |
+
.resolve([])
|
1315 |
+
.promise();
|
1316 |
+
}
|
1317 |
+
// If the files property is not available, the browser does not
|
1318 |
+
// support the File API and we add a pseudo File object with
|
1319 |
+
// the input value as name with path information removed:
|
1320 |
+
files = [{ name: value.replace(/^.*\\/, '') }];
|
1321 |
+
} else if (files[0].name === undefined && files[0].fileName) {
|
1322 |
+
// File normalization for Safari 4 and Firefox 3:
|
1323 |
+
$.each(files, function(index, file) {
|
1324 |
+
file.name = file.fileName;
|
1325 |
+
file.size = file.fileSize;
|
1326 |
+
});
|
1327 |
+
}
|
1328 |
+
return $.Deferred()
|
1329 |
+
.resolve(files)
|
1330 |
+
.promise();
|
1331 |
+
},
|
1332 |
+
|
1333 |
+
_getFileInputFiles: function(fileInput) {
|
1334 |
+
if (!(fileInput instanceof $) || fileInput.length === 1) {
|
1335 |
+
return this._getSingleFileInputFiles(fileInput);
|
1336 |
+
}
|
1337 |
+
return $.when
|
1338 |
+
.apply($, $.map(fileInput, this._getSingleFileInputFiles))
|
1339 |
+
.then(function() {
|
1340 |
+
return Array.prototype.concat.apply([], arguments);
|
1341 |
+
});
|
1342 |
+
},
|
1343 |
+
|
1344 |
+
_onChange: function(e) {
|
1345 |
+
var that = this,
|
1346 |
+
data = {
|
1347 |
+
fileInput: $(e.target),
|
1348 |
+
form: $(e.target.form)
|
1349 |
+
};
|
1350 |
+
this._getFileInputFiles(data.fileInput).always(function(files) {
|
1351 |
+
data.files = files;
|
1352 |
+
if (that.options.replaceFileInput) {
|
1353 |
+
that._replaceFileInput(data);
|
1354 |
+
}
|
1355 |
+
if (
|
1356 |
+
that._trigger(
|
1357 |
+
'change',
|
1358 |
+
$.Event('change', { delegatedEvent: e }),
|
1359 |
+
data
|
1360 |
+
) !== false
|
1361 |
+
) {
|
1362 |
+
that._onAdd(e, data);
|
1363 |
+
}
|
1364 |
+
});
|
1365 |
+
},
|
1366 |
+
|
1367 |
+
_onPaste: function(e) {
|
1368 |
+
var items =
|
1369 |
+
e.originalEvent &&
|
1370 |
+
e.originalEvent.clipboardData &&
|
1371 |
+
e.originalEvent.clipboardData.items,
|
1372 |
+
data = { files: [] };
|
1373 |
+
if (items && items.length) {
|
1374 |
+
$.each(items, function(index, item) {
|
1375 |
+
var file = item.getAsFile && item.getAsFile();
|
1376 |
+
if (file) {
|
1377 |
+
data.files.push(file);
|
1378 |
+
}
|
1379 |
+
});
|
1380 |
+
if (
|
1381 |
+
this._trigger(
|
1382 |
+
'paste',
|
1383 |
+
$.Event('paste', { delegatedEvent: e }),
|
1384 |
+
data
|
1385 |
+
) !== false
|
1386 |
+
) {
|
1387 |
+
this._onAdd(e, data);
|
1388 |
+
}
|
1389 |
+
}
|
1390 |
+
},
|
1391 |
+
|
1392 |
+
_onDrop: function(e) {
|
1393 |
+
e.dataTransfer = e.originalEvent && e.originalEvent.dataTransfer;
|
1394 |
+
var that = this,
|
1395 |
+
dataTransfer = e.dataTransfer,
|
1396 |
+
data = {};
|
1397 |
+
if (dataTransfer && dataTransfer.files && dataTransfer.files.length) {
|
1398 |
+
e.preventDefault();
|
1399 |
+
this._getDroppedFiles(dataTransfer).always(function(files) {
|
1400 |
+
data.files = files;
|
1401 |
+
if (
|
1402 |
+
that._trigger(
|
1403 |
+
'drop',
|
1404 |
+
$.Event('drop', { delegatedEvent: e }),
|
1405 |
+
data
|
1406 |
+
) !== false
|
1407 |
+
) {
|
1408 |
+
that._onAdd(e, data);
|
1409 |
+
}
|
1410 |
+
});
|
1411 |
+
}
|
1412 |
+
},
|
1413 |
+
|
1414 |
+
_onDragOver: getDragHandler('dragover'),
|
1415 |
+
|
1416 |
+
_onDragEnter: getDragHandler('dragenter'),
|
1417 |
+
|
1418 |
+
_onDragLeave: getDragHandler('dragleave'),
|
1419 |
+
|
1420 |
+
_initEventHandlers: function() {
|
1421 |
+
if (this._isXHRUpload(this.options)) {
|
1422 |
+
this._on(this.options.dropZone, {
|
1423 |
+
dragover: this._onDragOver,
|
1424 |
+
drop: this._onDrop,
|
1425 |
+
// event.preventDefault() on dragenter is required for IE10+:
|
1426 |
+
dragenter: this._onDragEnter,
|
1427 |
+
// dragleave is not required, but added for completeness:
|
1428 |
+
dragleave: this._onDragLeave
|
1429 |
+
});
|
1430 |
+
this._on(this.options.pasteZone, {
|
1431 |
+
paste: this._onPaste
|
1432 |
+
});
|
1433 |
+
}
|
1434 |
+
if ($.support.fileInput) {
|
1435 |
+
this._on(this.options.fileInput, {
|
1436 |
+
change: this._onChange
|
1437 |
+
});
|
1438 |
+
}
|
1439 |
+
},
|
1440 |
+
|
1441 |
+
_destroyEventHandlers: function() {
|
1442 |
+
this._off(this.options.dropZone, 'dragenter dragleave dragover drop');
|
1443 |
+
this._off(this.options.pasteZone, 'paste');
|
1444 |
+
this._off(this.options.fileInput, 'change');
|
1445 |
+
},
|
1446 |
+
|
1447 |
+
_destroy: function() {
|
1448 |
+
this._destroyEventHandlers();
|
1449 |
+
},
|
1450 |
+
|
1451 |
+
_setOption: function(key, value) {
|
1452 |
+
var reinit = $.inArray(key, this._specialOptions) !== -1;
|
1453 |
+
if (reinit) {
|
1454 |
+
this._destroyEventHandlers();
|
1455 |
+
}
|
1456 |
+
this._super(key, value);
|
1457 |
+
if (reinit) {
|
1458 |
+
this._initSpecialOptions();
|
1459 |
+
this._initEventHandlers();
|
1460 |
+
}
|
1461 |
+
},
|
1462 |
+
|
1463 |
+
_initSpecialOptions: function() {
|
1464 |
+
var options = this.options;
|
1465 |
+
if (options.fileInput === undefined) {
|
1466 |
+
options.fileInput = this.element.is('input[type="file"]')
|
1467 |
+
? this.element
|
1468 |
+
: this.element.find('input[type="file"]');
|
1469 |
+
} else if (!(options.fileInput instanceof $)) {
|
1470 |
+
options.fileInput = $(options.fileInput);
|
1471 |
+
}
|
1472 |
+
if (!(options.dropZone instanceof $)) {
|
1473 |
+
options.dropZone = $(options.dropZone);
|
1474 |
+
}
|
1475 |
+
if (!(options.pasteZone instanceof $)) {
|
1476 |
+
options.pasteZone = $(options.pasteZone);
|
1477 |
+
}
|
1478 |
+
},
|
1479 |
+
|
1480 |
+
_getRegExp: function(str) {
|
1481 |
+
var parts = str.split('/'),
|
1482 |
+
modifiers = parts.pop();
|
1483 |
+
parts.shift();
|
1484 |
+
return new RegExp(parts.join('/'), modifiers);
|
1485 |
+
},
|
1486 |
+
|
1487 |
+
_isRegExpOption: function(key, value) {
|
1488 |
+
return (
|
1489 |
+
key !== 'url' &&
|
1490 |
+
$.type(value) === 'string' &&
|
1491 |
+
/^\/.*\/[igm]{0,3}$/.test(value)
|
1492 |
+
);
|
1493 |
+
},
|
1494 |
+
|
1495 |
+
_initDataAttributes: function() {
|
1496 |
+
var that = this,
|
1497 |
+
options = this.options,
|
1498 |
+
data = this.element.data();
|
1499 |
+
// Initialize options set via HTML5 data-attributes:
|
1500 |
+
$.each(this.element[0].attributes, function(index, attr) {
|
1501 |
+
var key = attr.name.toLowerCase(),
|
1502 |
+
value;
|
1503 |
+
if (/^data-/.test(key)) {
|
1504 |
+
// Convert hyphen-ated key to camelCase:
|
1505 |
+
key = key.slice(5).replace(/-[a-z]/g, function(str) {
|
1506 |
+
return str.charAt(1).toUpperCase();
|
1507 |
+
});
|
1508 |
+
value = data[key];
|
1509 |
+
if (that._isRegExpOption(key, value)) {
|
1510 |
+
value = that._getRegExp(value);
|
1511 |
+
}
|
1512 |
+
options[key] = value;
|
1513 |
+
}
|
1514 |
+
});
|
1515 |
+
},
|
1516 |
+
|
1517 |
+
_create: function() {
|
1518 |
+
this._initDataAttributes();
|
1519 |
+
this._initSpecialOptions();
|
1520 |
+
this._slots = [];
|
1521 |
+
this._sequence = this._getXHRPromise(true);
|
1522 |
+
this._sending = this._active = 0;
|
1523 |
+
this._initProgressObject(this);
|
1524 |
+
this._initEventHandlers();
|
1525 |
+
},
|
1526 |
+
|
1527 |
+
// This method is exposed to the widget API and allows to query
|
1528 |
+
// the number of active uploads:
|
1529 |
+
active: function() {
|
1530 |
+
return this._active;
|
1531 |
+
},
|
1532 |
+
|
1533 |
+
// This method is exposed to the widget API and allows to query
|
1534 |
+
// the widget upload progress.
|
1535 |
+
// It returns an object with loaded, total and bitrate properties
|
1536 |
+
// for the running uploads:
|
1537 |
+
progress: function() {
|
1538 |
+
return this._progress;
|
1539 |
+
},
|
1540 |
+
|
1541 |
+
// This method is exposed to the widget API and allows adding files
|
1542 |
+
// using the fileupload API. The data parameter accepts an object which
|
1543 |
+
// must have a files property and can contain additional options:
|
1544 |
+
// .fileupload('add', {files: filesList});
|
1545 |
+
add: function(data) {
|
1546 |
+
var that = this;
|
1547 |
+
if (!data || this.options.disabled) {
|
1548 |
+
return;
|
1549 |
+
}
|
1550 |
+
if (data.fileInput && !data.files) {
|
1551 |
+
this._getFileInputFiles(data.fileInput).always(function(files) {
|
1552 |
+
data.files = files;
|
1553 |
+
that._onAdd(null, data);
|
1554 |
+
});
|
1555 |
+
} else {
|
1556 |
+
data.files = $.makeArray(data.files);
|
1557 |
+
this._onAdd(null, data);
|
1558 |
+
}
|
1559 |
+
},
|
1560 |
+
|
1561 |
+
// This method is exposed to the widget API and allows sending files
|
1562 |
+
// using the fileupload API. The data parameter accepts an object which
|
1563 |
+
// must have a files or fileInput property and can contain additional options:
|
1564 |
+
// .fileupload('send', {files: filesList});
|
1565 |
+
// The method returns a Promise object for the file upload call.
|
1566 |
+
send: function(data) {
|
1567 |
+
if (data && !this.options.disabled) {
|
1568 |
+
if (data.fileInput && !data.files) {
|
1569 |
+
var that = this,
|
1570 |
+
dfd = $.Deferred(),
|
1571 |
+
promise = dfd.promise(),
|
1572 |
+
jqXHR,
|
1573 |
+
aborted;
|
1574 |
+
promise.abort = function() {
|
1575 |
+
aborted = true;
|
1576 |
+
if (jqXHR) {
|
1577 |
+
return jqXHR.abort();
|
1578 |
+
}
|
1579 |
+
dfd.reject(null, 'abort', 'abort');
|
1580 |
+
return promise;
|
1581 |
+
};
|
1582 |
+
this._getFileInputFiles(data.fileInput).always(function(files) {
|
1583 |
+
if (aborted) {
|
1584 |
+
return;
|
1585 |
+
}
|
1586 |
+
if (!files.length) {
|
1587 |
+
dfd.reject();
|
1588 |
+
return;
|
1589 |
+
}
|
1590 |
+
data.files = files;
|
1591 |
+
jqXHR = that._onSend(null, data);
|
1592 |
+
jqXHR.then(
|
1593 |
+
function(result, textStatus, jqXHR) {
|
1594 |
+
dfd.resolve(result, textStatus, jqXHR);
|
1595 |
+
},
|
1596 |
+
function(jqXHR, textStatus, errorThrown) {
|
1597 |
+
dfd.reject(jqXHR, textStatus, errorThrown);
|
1598 |
+
}
|
1599 |
+
);
|
1600 |
+
});
|
1601 |
+
return this._enhancePromise(promise);
|
1602 |
+
}
|
1603 |
+
data.files = $.makeArray(data.files);
|
1604 |
+
if (data.files.length) {
|
1605 |
+
return this._onSend(null, data);
|
1606 |
+
}
|
1607 |
+
}
|
1608 |
+
return this._getXHRPromise(false, data && data.context);
|
1609 |
+
}
|
1610 |
+
});
|
1611 |
+
});
|
assets/lib/jquery-fileupload/jquery.iframe-transport.js
ADDED
@@ -0,0 +1,221 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*
|
2 |
+
* jQuery Iframe Transport Plugin 10.2.0
|
3 |
+
* https://github.com/blueimp/jQuery-File-Upload
|
4 |
+
*
|
5 |
+
* Copyright 2011, Sebastian Tschan
|
6 |
+
* https://blueimp.net
|
7 |
+
*
|
8 |
+
* Licensed under the MIT license:
|
9 |
+
* https://opensource.org/licenses/MIT
|
10 |
+
*/
|
11 |
+
|
12 |
+
/* global define, require */
|
13 |
+
|
14 |
+
(function(factory) {
|
15 |
+
'use strict';
|
16 |
+
if (typeof define === 'function' && define.amd) {
|
17 |
+
// Register as an anonymous AMD module:
|
18 |
+
define(['jquery'], factory);
|
19 |
+
} else if (typeof exports === 'object') {
|
20 |
+
// Node/CommonJS:
|
21 |
+
factory(require('jquery'));
|
22 |
+
} else {
|
23 |
+
// Browser globals:
|
24 |
+
factory(window.jQuery);
|
25 |
+
}
|
26 |
+
})(function($) {
|
27 |
+
'use strict';
|
28 |
+
|
29 |
+
// Helper variable to create unique names for the transport iframes:
|
30 |
+
var counter = 0,
|
31 |
+
jsonAPI = $,
|
32 |
+
jsonParse = 'parseJSON';
|
33 |
+
|
34 |
+
if ('JSON' in window && 'parse' in JSON) {
|
35 |
+
jsonAPI = JSON;
|
36 |
+
jsonParse = 'parse';
|
37 |
+
}
|
38 |
+
|
39 |
+
// The iframe transport accepts four additional options:
|
40 |
+
// options.fileInput: a jQuery collection of file input fields
|
41 |
+
// options.paramName: the parameter name for the file form data,
|
42 |
+
// overrides the name property of the file input field(s),
|
43 |
+
// can be a string or an array of strings.
|
44 |
+
// options.formData: an array of objects with name and value properties,
|
45 |
+
// equivalent to the return data of .serializeArray(), e.g.:
|
46 |
+
// [{name: 'a', value: 1}, {name: 'b', value: 2}]
|
47 |
+
// options.initialIframeSrc: the URL of the initial iframe src,
|
48 |
+
// by default set to "javascript:false;"
|
49 |
+
$.ajaxTransport('iframe', function(options) {
|
50 |
+
if (options.async) {
|
51 |
+
// javascript:false as initial iframe src
|
52 |
+
// prevents warning popups on HTTPS in IE6:
|
53 |
+
// eslint-disable-next-line no-script-url
|
54 |
+
var initialIframeSrc = options.initialIframeSrc || 'javascript:false;',
|
55 |
+
form,
|
56 |
+
iframe,
|
57 |
+
addParamChar;
|
58 |
+
return {
|
59 |
+
send: function(_, completeCallback) {
|
60 |
+
form = $('<form style="display:none;"></form>');
|
61 |
+
form.attr('accept-charset', options.formAcceptCharset);
|
62 |
+
addParamChar = /\?/.test(options.url) ? '&' : '?';
|
63 |
+
// XDomainRequest only supports GET and POST:
|
64 |
+
if (options.type === 'DELETE') {
|
65 |
+
options.url = options.url + addParamChar + '_method=DELETE';
|
66 |
+
options.type = 'POST';
|
67 |
+
} else if (options.type === 'PUT') {
|
68 |
+
options.url = options.url + addParamChar + '_method=PUT';
|
69 |
+
options.type = 'POST';
|
70 |
+
} else if (options.type === 'PATCH') {
|
71 |
+
options.url = options.url + addParamChar + '_method=PATCH';
|
72 |
+
options.type = 'POST';
|
73 |
+
}
|
74 |
+
// IE versions below IE8 cannot set the name property of
|
75 |
+
// elements that have already been added to the DOM,
|
76 |
+
// so we set the name along with the iframe HTML markup:
|
77 |
+
counter += 1;
|
78 |
+
iframe = $(
|
79 |
+
'<iframe src="' +
|
80 |
+
initialIframeSrc +
|
81 |
+
'" name="iframe-transport-' +
|
82 |
+
counter +
|
83 |
+
'"></iframe>'
|
84 |
+
).bind('load', function() {
|
85 |
+
var fileInputClones,
|
86 |
+
paramNames = $.isArray(options.paramName)
|
87 |
+
? options.paramName
|
88 |
+
: [options.paramName];
|
89 |
+
iframe.unbind('load').bind('load', function() {
|
90 |
+
var response;
|
91 |
+
// Wrap in a try/catch block to catch exceptions thrown
|
92 |
+
// when trying to access cross-domain iframe contents:
|
93 |
+
try {
|
94 |
+
response = iframe.contents();
|
95 |
+
// Google Chrome and Firefox do not throw an
|
96 |
+
// exception when calling iframe.contents() on
|
97 |
+
// cross-domain requests, so we unify the response:
|
98 |
+
if (!response.length || !response[0].firstChild) {
|
99 |
+
throw new Error();
|
100 |
+
}
|
101 |
+
} catch (e) {
|
102 |
+
response = undefined;
|
103 |
+
}
|
104 |
+
// The complete callback returns the
|
105 |
+
// iframe content document as response object:
|
106 |
+
completeCallback(200, 'success', { iframe: response });
|
107 |
+
// Fix for IE endless progress bar activity bug
|
108 |
+
// (happens on form submits to iframe targets):
|
109 |
+
$('<iframe src="' + initialIframeSrc + '"></iframe>').appendTo(
|
110 |
+
form
|
111 |
+
);
|
112 |
+
window.setTimeout(function() {
|
113 |
+
// Removing the form in a setTimeout call
|
114 |
+
// allows Chrome's developer tools to display
|
115 |
+
// the response result
|
116 |
+
form.remove();
|
117 |
+
}, 0);
|
118 |
+
});
|
119 |
+
form
|
120 |
+
.prop('target', iframe.prop('name'))
|
121 |
+
.prop('action', options.url)
|
122 |
+
.prop('method', options.type);
|
123 |
+
if (options.formData) {
|
124 |
+
$.each(options.formData, function(index, field) {
|
125 |
+
$('<input type="hidden"/>')
|
126 |
+
.prop('name', field.name)
|
127 |
+
.val(field.value)
|
128 |
+
.appendTo(form);
|
129 |
+
});
|
130 |
+
}
|
131 |
+
if (
|
132 |
+
options.fileInput &&
|
133 |
+
options.fileInput.length &&
|
134 |
+
options.type === 'POST'
|
135 |
+
) {
|
136 |
+
fileInputClones = options.fileInput.clone();
|
137 |
+
// Insert a clone for each file input field:
|
138 |
+
options.fileInput.after(function(index) {
|
139 |
+
return fileInputClones[index];
|
140 |
+
});
|
141 |
+
if (options.paramName) {
|
142 |
+
options.fileInput.each(function(index) {
|
143 |
+
$(this).prop('name', paramNames[index] || options.paramName);
|
144 |
+
});
|
145 |
+
}
|
146 |
+
// Appending the file input fields to the hidden form
|
147 |
+
// removes them from their original location:
|
148 |
+
form
|
149 |
+
.append(options.fileInput)
|
150 |
+
.prop('enctype', 'multipart/form-data')
|
151 |
+
// enctype must be set as encoding for IE:
|
152 |
+
.prop('encoding', 'multipart/form-data');
|
153 |
+
// Remove the HTML5 form attribute from the input(s):
|
154 |
+
options.fileInput.removeAttr('form');
|
155 |
+
}
|
156 |
+
form.submit();
|
157 |
+
// Insert the file input fields at their original location
|
158 |
+
// by replacing the clones with the originals:
|
159 |
+
if (fileInputClones && fileInputClones.length) {
|
160 |
+
options.fileInput.each(function(index, input) {
|
161 |
+
var clone = $(fileInputClones[index]);
|
162 |
+
// Restore the original name and form properties:
|
163 |
+
$(input)
|
164 |
+
.prop('name', clone.prop('name'))
|
165 |
+
.attr('form', clone.attr('form'));
|
166 |
+
clone.replaceWith(input);
|
167 |
+
});
|
168 |
+
}
|
169 |
+
});
|
170 |
+
form.append(iframe).appendTo(document.body);
|
171 |
+
},
|
172 |
+
abort: function() {
|
173 |
+
if (iframe) {
|
174 |
+
// javascript:false as iframe src aborts the request
|
175 |
+
// and prevents warning popups on HTTPS in IE6.
|
176 |
+
iframe.unbind('load').prop('src', initialIframeSrc);
|
177 |
+
}
|
178 |
+
if (form) {
|
179 |
+
form.remove();
|
180 |
+
}
|
181 |
+
}
|
182 |
+
};
|
183 |
+
}
|
184 |
+
});
|
185 |
+
|
186 |
+
// The iframe transport returns the iframe content document as response.
|
187 |
+
// The following adds converters from iframe to text, json, html, xml
|
188 |
+
// and script.
|
189 |
+
// Please note that the Content-Type for JSON responses has to be text/plain
|
190 |
+
// or text/html, if the browser doesn't include application/json in the
|
191 |
+
// Accept header, else IE will show a download dialog.
|
192 |
+
// The Content-Type for XML responses on the other hand has to be always
|
193 |
+
// application/xml or text/xml, so IE properly parses the XML response.
|
194 |
+
// See also
|
195 |
+
// https://github.com/blueimp/jQuery-File-Upload/wiki/Setup#content-type-negotiation
|
196 |
+
$.ajaxSetup({
|
197 |
+
converters: {
|
198 |
+
'iframe text': function(iframe) {
|
199 |
+
return iframe && $(iframe[0].body).text();
|
200 |
+
},
|
201 |
+
'iframe json': function(iframe) {
|
202 |
+
return iframe && jsonAPI[jsonParse]($(iframe[0].body).text());
|
203 |
+
},
|
204 |
+
'iframe html': function(iframe) {
|
205 |
+
return iframe && $(iframe[0].body).html();
|
206 |
+
},
|
207 |
+
'iframe xml': function(iframe) {
|
208 |
+
var xmlDoc = iframe && iframe[0];
|
209 |
+
return xmlDoc && $.isXMLDoc(xmlDoc)
|
210 |
+
? xmlDoc
|
211 |
+
: $.parseXML(
|
212 |
+
(xmlDoc.XMLDocument && xmlDoc.XMLDocument.xml) ||
|
213 |
+
$(xmlDoc.body).html()
|
214 |
+
);
|
215 |
+
},
|
216 |
+
'iframe script': function(iframe) {
|
217 |
+
return iframe && $.globalEval($(iframe[0].body).text());
|
218 |
+
}
|
219 |
+
}
|
220 |
+
});
|
221 |
+
});
|
assets/lib/jquery-tiptip/jquery.tipTip.js
ADDED
@@ -0,0 +1,192 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*
|
2 |
+
* TipTip
|
3 |
+
* Copyright 2010 Drew Wilson
|
4 |
+
* www.drewwilson.com
|
5 |
+
* code.drewwilson.com/entry/tiptip-jquery-plugin
|
6 |
+
*
|
7 |
+
* Version 1.3 - Updated: Mar. 23, 2010
|
8 |
+
*
|
9 |
+
* This Plug-In will create a custom tooltip to replace the default
|
10 |
+
* browser tooltip. It is extremely lightweight and very smart in
|
11 |
+
* that it detects the edges of the browser window and will make sure
|
12 |
+
* the tooltip stays within the current window size. As a result the
|
13 |
+
* tooltip will adjust itself to be displayed above, below, to the left
|
14 |
+
* or to the right depending on what is necessary to stay within the
|
15 |
+
* browser window. It is completely customizable as well via CSS.
|
16 |
+
*
|
17 |
+
* This TipTip jQuery plug-in is dual licensed under the MIT and GPL licenses:
|
18 |
+
* http://www.opensource.org/licenses/mit-license.php
|
19 |
+
* http://www.gnu.org/licenses/gpl.html
|
20 |
+
*/
|
21 |
+
|
22 |
+
(function($){
|
23 |
+
$.fn.tipTip = function(options) {
|
24 |
+
var defaults = {
|
25 |
+
activation: "hover",
|
26 |
+
keepAlive: false,
|
27 |
+
maxWidth: "200px",
|
28 |
+
edgeOffset: 3,
|
29 |
+
defaultPosition: "bottom",
|
30 |
+
delay: 400,
|
31 |
+
fadeIn: 200,
|
32 |
+
fadeOut: 200,
|
33 |
+
attribute: "title",
|
34 |
+
content: false, // HTML or String to fill TipTIp with
|
35 |
+
enter: function(){},
|
36 |
+
exit: function(){}
|
37 |
+
};
|
38 |
+
var opts = $.extend(defaults, options);
|
39 |
+
|
40 |
+
// Setup tip tip elements and render them to the DOM
|
41 |
+
if($("#tiptip_holder").length <= 0){
|
42 |
+
var tiptip_holder = $('<div id="tiptip_holder"></div>');
|
43 |
+
tiptip_holder.css('max-width',opts.maxWidth);
|
44 |
+
var tiptip_content = $('<div id="tiptip_content"></div>');
|
45 |
+
var tiptip_arrow = $('<div id="tiptip_arrow"></div>');
|
46 |
+
$("body").append(tiptip_holder.html(tiptip_content).prepend(tiptip_arrow.html('<div id="tiptip_arrow_inner"></div>')));
|
47 |
+
} else {
|
48 |
+
var tiptip_holder = $("#tiptip_holder");
|
49 |
+
var tiptip_content = $("#tiptip_content");
|
50 |
+
var tiptip_arrow = $("#tiptip_arrow");
|
51 |
+
}
|
52 |
+
|
53 |
+
return this.each(function(){
|
54 |
+
var org_elem = $(this);
|
55 |
+
if(opts.content){
|
56 |
+
var org_title = opts.content;
|
57 |
+
} else {
|
58 |
+
var org_title = org_elem.attr(opts.attribute);
|
59 |
+
}
|
60 |
+
if(org_title != ""){
|
61 |
+
if(!opts.content){
|
62 |
+
org_elem.removeAttr(opts.attribute); //remove original Attribute
|
63 |
+
}
|
64 |
+
var timeout = false;
|
65 |
+
|
66 |
+
if(opts.activation == "hover"){
|
67 |
+
org_elem.hover(function(){
|
68 |
+
active_tiptip();
|
69 |
+
}, function(){
|
70 |
+
if(!opts.keepAlive){
|
71 |
+
deactive_tiptip();
|
72 |
+
}
|
73 |
+
});
|
74 |
+
if(opts.keepAlive){
|
75 |
+
tiptip_holder.hover(function(){}, function(){
|
76 |
+
deactive_tiptip();
|
77 |
+
});
|
78 |
+
}
|
79 |
+
} else if(opts.activation == "focus"){
|
80 |
+
org_elem.focus(function(){
|
81 |
+
active_tiptip();
|
82 |
+
}).blur(function(){
|
83 |
+
deactive_tiptip();
|
84 |
+
});
|
85 |
+
} else if(opts.activation == "click"){
|
86 |
+
org_elem.click(function(){
|
87 |
+
active_tiptip();
|
88 |
+
return false;
|
89 |
+
}).hover(function(){},function(){
|
90 |
+
if(!opts.keepAlive){
|
91 |
+
deactive_tiptip();
|
92 |
+
}
|
93 |
+
});
|
94 |
+
if(opts.keepAlive){
|
95 |
+
tiptip_holder.hover(function(){}, function(){
|
96 |
+
deactive_tiptip();
|
97 |
+
});
|
98 |
+
}
|
99 |
+
}
|
100 |
+
|
101 |
+
function active_tiptip(){
|
102 |
+
opts.enter.call(this);
|
103 |
+
tiptip_content.html(org_title);
|
104 |
+
tiptip_holder.hide().removeAttr("class").css("margin","0");
|
105 |
+
tiptip_arrow.removeAttr("style");
|
106 |
+
|
107 |
+
var top = parseInt(org_elem.offset()['top']);
|
108 |
+
var left = parseInt(org_elem.offset()['left']);
|
109 |
+
var org_width = parseInt(org_elem.outerWidth());
|
110 |
+
var org_height = parseInt(org_elem.outerHeight());
|
111 |
+
var tip_w = tiptip_holder.outerWidth();
|
112 |
+
var tip_h = tiptip_holder.outerHeight();
|
113 |
+
var w_compare = Math.round((org_width - tip_w) / 2);
|
114 |
+
var h_compare = Math.round((org_height - tip_h) / 2);
|
115 |
+
var marg_left = Math.round(left + w_compare);
|
116 |
+
var marg_top = Math.round(top + org_height + opts.edgeOffset);
|
117 |
+
var t_class = "";
|
118 |
+
var arrow_top = "";
|
119 |
+
var arrow_left = Math.round(tip_w - 12) / 2;
|
120 |
+
|
121 |
+
if(opts.defaultPosition == "bottom"){
|
122 |
+
t_class = "_bottom";
|
123 |
+
} else if(opts.defaultPosition == "top"){
|
124 |
+
t_class = "_top";
|
125 |
+
} else if(opts.defaultPosition == "left"){
|
126 |
+
t_class = "_left";
|
127 |
+
} else if(opts.defaultPosition == "right"){
|
128 |
+
t_class = "_right";
|
129 |
+
}
|
130 |
+
|
131 |
+
var right_compare = (w_compare + left) < parseInt($(window).scrollLeft());
|
132 |
+
var left_compare = (tip_w + left) > parseInt($(window).width());
|
133 |
+
|
134 |
+
if((right_compare && w_compare < 0) || (t_class == "_right" && !left_compare) || (t_class == "_left" && left < (tip_w + opts.edgeOffset + 5))){
|
135 |
+
t_class = "_right";
|
136 |
+
arrow_top = Math.round(tip_h - 13) / 2;
|
137 |
+
arrow_left = -12;
|
138 |
+
marg_left = Math.round(left + org_width + opts.edgeOffset);
|
139 |
+
marg_top = Math.round(top + h_compare);
|
140 |
+
} else if((left_compare && w_compare < 0) || (t_class == "_left" && !right_compare)){
|
141 |
+
t_class = "_left";
|
142 |
+
arrow_top = Math.round(tip_h - 13) / 2;
|
143 |
+
arrow_left = Math.round(tip_w);
|
144 |
+
marg_left = Math.round(left - (tip_w + opts.edgeOffset + 5));
|
145 |
+
marg_top = Math.round(top + h_compare);
|
146 |
+
}
|
147 |
+
|
148 |
+
var top_compare = (top + org_height + opts.edgeOffset + tip_h + 8) > parseInt($(window).height() + $(window).scrollTop());
|
149 |
+
var bottom_compare = ((top + org_height) - (opts.edgeOffset + tip_h + 8)) < 0;
|
150 |
+
|
151 |
+
if(top_compare || (t_class == "_bottom" && top_compare) || (t_class == "_top" && !bottom_compare)){
|
152 |
+
if(t_class == "_top" || t_class == "_bottom"){
|
153 |
+
t_class = "_top";
|
154 |
+
} else {
|
155 |
+
t_class = t_class+"_top";
|
156 |
+
}
|
157 |
+
arrow_top = tip_h;
|
158 |
+
marg_top = Math.round(top - (tip_h + 5 + opts.edgeOffset));
|
159 |
+
} else if(bottom_compare | (t_class == "_top" && bottom_compare) || (t_class == "_bottom" && !top_compare)){
|
160 |
+
if(t_class == "_top" || t_class == "_bottom"){
|
161 |
+
t_class = "_bottom";
|
162 |
+
} else {
|
163 |
+
t_class = t_class+"_bottom";
|
164 |
+
}
|
165 |
+
arrow_top = -12;
|
166 |
+
marg_top = Math.round(top + org_height + opts.edgeOffset);
|
167 |
+
}
|
168 |
+
|
169 |
+
if(t_class == "_right_top" || t_class == "_left_top"){
|
170 |
+
marg_top = marg_top + 5;
|
171 |
+
} else if(t_class == "_right_bottom" || t_class == "_left_bottom"){
|
172 |
+
marg_top = marg_top - 5;
|
173 |
+
}
|
174 |
+
if(t_class == "_left_top" || t_class == "_left_bottom"){
|
175 |
+
marg_left = marg_left + 5;
|
176 |
+
}
|
177 |
+
tiptip_arrow.css({"margin-left": arrow_left+"px", "margin-top": arrow_top+"px"});
|
178 |
+
tiptip_holder.css({"margin-left": marg_left+"px", "margin-top": marg_top+"px"}).attr("class","tip"+t_class);
|
179 |
+
|
180 |
+
if (timeout){ clearTimeout(timeout); }
|
181 |
+
timeout = setTimeout(function(){ tiptip_holder.stop(true,true).fadeIn(opts.fadeIn); }, opts.delay);
|
182 |
+
}
|
183 |
+
|
184 |
+
function deactive_tiptip(){
|
185 |
+
opts.exit.call(this);
|
186 |
+
if (timeout){ clearTimeout(timeout); }
|
187 |
+
tiptip_holder.fadeOut(opts.fadeOut);
|
188 |
+
}
|
189 |
+
}
|
190 |
+
});
|
191 |
+
}
|
192 |
+
})(jQuery);
|
assets/lib/jquery-tiptip/jquery.tipTip.min.js
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*
|
2 |
+
* TipTip
|
3 |
+
* Copyright 2010 Drew Wilson
|
4 |
+
* www.drewwilson.com
|
5 |
+
* code.drewwilson.com/entry/tiptip-jquery-plugin
|
6 |
+
*
|
7 |
+
* Version 1.3 - Updated: Mar. 23, 2010
|
8 |
+
*
|
9 |
+
* This Plug-In will create a custom tooltip to replace the default
|
10 |
+
* browser tooltip. It is extremely lightweight and very smart in
|
11 |
+
* that it detects the edges of the browser window and will make sure
|
12 |
+
* the tooltip stays within the current window size. As a result the
|
13 |
+
* tooltip will adjust itself to be displayed above, below, to the left
|
14 |
+
* or to the right depending on what is necessary to stay within the
|
15 |
+
* browser window. It is completely customizable as well via CSS.
|
16 |
+
*
|
17 |
+
* This TipTip jQuery plug-in is dual licensed under the MIT and GPL licenses:
|
18 |
+
* http://www.opensource.org/licenses/mit-license.php
|
19 |
+
* http://www.gnu.org/licenses/gpl.html
|
20 |
+
*/!function(t){t.fn.tipTip=function(e){var o={activation:"hover",keepAlive:!1,maxWidth:"200px",edgeOffset:3,defaultPosition:"bottom",delay:400,fadeIn:200,fadeOut:200,attribute:"title",content:!1,enter:function(){},exit:function(){}},i=t.extend(o,e);if(t("#tiptip_holder").length<=0){(a=t('<div id="tiptip_holder"></div>')).css("max-width",i.maxWidth);var n=t('<div id="tiptip_content"></div>'),r=t('<div id="tiptip_arrow"></div>');t("body").append(a.html(n).prepend(r.html('<div id="tiptip_arrow_inner"></div>')))}else var a=t("#tiptip_holder"),n=t("#tiptip_content"),r=t("#tiptip_arrow");return this.each(function(){function e(){i.enter.call(this),n.html(d),a.hide().removeAttr("class").css("margin","0"),r.removeAttr("style");var e=parseInt(f.offset().top),o=parseInt(f.offset().left),p=parseInt(f.outerWidth()),l=parseInt(f.outerHeight()),h=a.outerWidth(),c=a.outerHeight(),s=Math.round((p-h)/2),_=Math.round((l-c)/2),v=Math.round(o+s),m=Math.round(e+l+i.edgeOffset),g="",b="",M=Math.round(h-12)/2;"bottom"==i.defaultPosition?g="_bottom":"top"==i.defaultPosition?g="_top":"left"==i.defaultPosition?g="_left":"right"==i.defaultPosition&&(g="_right");var w=s+o<parseInt(t(window).scrollLeft()),O=h+o>parseInt(t(window).width());w&&s<0||"_right"==g&&!O||"_left"==g&&o<h+i.edgeOffset+5?(g="_right",b=Math.round(c-13)/2,M=-12,v=Math.round(o+p+i.edgeOffset),m=Math.round(e+_)):(O&&s<0||"_left"==g&&!w)&&(g="_left",b=Math.round(c-13)/2,M=Math.round(h),v=Math.round(o-(h+i.edgeOffset+5)),m=Math.round(e+_));var x=e+l+i.edgeOffset+c+8>parseInt(t(window).height()+t(window).scrollTop()),I=e+l-(i.edgeOffset+c+8)<0;x||"_bottom"==g&&x||"_top"==g&&!I?("_top"==g||"_bottom"==g?g="_top":g+="_top",b=c,m=Math.round(e-(c+5+i.edgeOffset))):(I|("_top"==g&&I)||"_bottom"==g&&!x)&&("_top"==g||"_bottom"==g?g="_bottom":g+="_bottom",b=-12,m=Math.round(e+l+i.edgeOffset)),"_right_top"==g||"_left_top"==g?m+=5:"_right_bottom"!=g&&"_left_bottom"!=g||(m-=5),"_left_top"!=g&&"_left_bottom"!=g||(v+=5),r.css({"margin-left":M+"px","margin-top":b+"px"}),a.css({"margin-left":v+"px","margin-top":m+"px"}).attr("class","tip"+g),u&&clearTimeout(u),u=setTimeout(function(){a.stop(!0,!0).fadeIn(i.fadeIn)},i.delay)}function o(){i.exit.call(this),u&&clearTimeout(u),a.fadeOut(i.fadeOut)}var f=t(this);if(i.content)d=i.content;else var d=f.attr(i.attribute);if(""!=d){i.content||f.removeAttr(i.attribute);var u=!1;"hover"==i.activation?(f.hover(function(){e()},function(){i.keepAlive||o()}),i.keepAlive&&a.hover(function(){},function(){o()})):"focus"==i.activation?f.focus(function(){e()}).blur(function(){o()}):"click"==i.activation&&(f.click(function(){return e(),!1}).hover(function(){},function(){i.keepAlive||o()}),i.keepAlive&&a.hover(function(){},function(){o()}))}})}}(jQuery);
|
assets/lib/select2/select2.full.min.js
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
1 |
+
/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */
|
2 |
+
!function(n){"function"==typeof define&&define.amd?define(["jquery"],n):"object"==typeof module&&module.exports?module.exports=function(e,t){return void 0===t&&(t="undefined"!=typeof window?require("jquery"):require("jquery")(e)),n(t),t}:n(jQuery)}(function(d){var e=function(){if(d&&d.fn&&d.fn.select2&&d.fn.select2.amd)var e=d.fn.select2.amd;var t,n,i,h,o,s,f,g,m,v,y,_,r,a,w,l;function b(e,t){return r.call(e,t)}function c(e,t){var n,i,r,o,s,a,l,c,u,d,p,h=t&&t.split("/"),f=y.map,g=f&&f["*"]||{};if(e){for(s=(e=e.split("/")).length-1,y.nodeIdCompat&&w.test(e[s])&&(e[s]=e[s].replace(w,"")),"."===e[0].charAt(0)&&h&&(e=h.slice(0,h.length-1).concat(e)),u=0;u<e.length;u++)if("."===(p=e[u]))e.splice(u,1),--u;else if(".."===p){if(0===u||1===u&&".."===e[2]||".."===e[u-1])continue;0<u&&(e.splice(u-1,2),u-=2)}e=e.join("/")}if((h||g)&&f){for(u=(n=e.split("/")).length;0<u;--u){if(i=n.slice(0,u).join("/"),h)for(d=h.length;0<d;--d)if(r=(r=f[h.slice(0,d).join("/")])&&r[i]){o=r,a=u;break}if(o)break;!l&&g&&g[i]&&(l=g[i],c=u)}!o&&l&&(o=l,a=c),o&&(n.splice(0,a,o),e=n.join("/"))}return e}function A(t,n){return function(){var e=a.call(arguments,0);return"string"!=typeof e[0]&&1===e.length&&e.push(null),s.apply(h,e.concat([t,n]))}}function x(t){return function(e){m[t]=e}}function D(e){if(b(v,e)){var t=v[e];delete v[e],_[e]=!0,o.apply(h,t)}if(!b(m,e)&&!b(_,e))throw new Error("No "+e);return m[e]}function u(e){var t,n=e?e.indexOf("!"):-1;return-1<n&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function S(e){return e?u(e):[]}return e&&e.requirejs||(e?n=e:e={},m={},v={},y={},_={},r=Object.prototype.hasOwnProperty,a=[].slice,w=/\.js$/,f=function(e,t){var n,i,r=u(e),o=r[0],s=t[1];return e=r[1],o&&(n=D(o=c(o,s))),o?e=n&&n.normalize?n.normalize(e,(i=s,function(e){return c(e,i)})):c(e,s):(o=(r=u(e=c(e,s)))[0],e=r[1],o&&(n=D(o))),{f:o?o+"!"+e:e,n:e,pr:o,p:n}},g={require:function(e){return A(e)},exports:function(e){var t=m[e];return void 0!==t?t:m[e]={}},module:function(e){return{id:e,uri:"",exports:m[e],config:(t=e,function(){return y&&y.config&&y.config[t]||{}})};var t}},o=function(e,t,n,i){var r,o,s,a,l,c,u,d=[],p=typeof n;if(c=S(i=i||e),"undefined"==p||"function"==p){for(t=!t.length&&n.length?["require","exports","module"]:t,l=0;l<t.length;l+=1)if("require"===(o=(a=f(t[l],c)).f))d[l]=g.require(e);else if("exports"===o)d[l]=g.exports(e),u=!0;else if("module"===o)r=d[l]=g.module(e);else if(b(m,o)||b(v,o)||b(_,o))d[l]=D(o);else{if(!a.p)throw new Error(e+" missing "+o);a.p.load(a.n,A(i,!0),x(o),{}),d[l]=m[o]}s=n?n.apply(m[e],d):void 0,e&&(r&&r.exports!==h&&r.exports!==m[e]?m[e]=r.exports:s===h&&u||(m[e]=s))}else e&&(m[e]=n)},t=n=s=function(e,t,n,i,r){if("string"==typeof e)return g[e]?g[e](t):D(f(e,S(t)).f);if(!e.splice){if((y=e).deps&&s(y.deps,y.callback),!t)return;t.splice?(e=t,t=n,n=null):e=h}return t=t||function(){},"function"==typeof n&&(n=i,i=r),i?o(h,e,t,n):setTimeout(function(){o(h,e,t,n)},4),s},s.config=function(e){return s(e)},t._defined=m,(i=function(e,t,n){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");t.splice||(n=t,t=[]),b(m,e)||b(v,e)||(v[e]=[e,t,n])}).amd={jQuery:!0},e.requirejs=t,e.require=n,e.define=i),e.define("almond",function(){}),e.define("jquery",[],function(){var e=d||$;return null==e&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),e}),e.define("select2/utils",["jquery"],function(o){var r={};function u(e){var t=e.prototype,n=[];for(var i in t){"function"==typeof t[i]&&"constructor"!==i&&n.push(i)}return n}r.Extend=function(e,t){var n={}.hasOwnProperty;function i(){this.constructor=e}for(var r in t)n.call(t,r)&&(e[r]=t[r]);return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e},r.Decorate=function(i,r){var e=u(r),t=u(i);function o(){var e=Array.prototype.unshift,t=r.prototype.constructor.length,n=i.prototype.constructor;0<t&&(e.call(arguments,i.prototype.constructor),n=r.prototype.constructor),n.apply(this,arguments)}r.displayName=i.displayName,o.prototype=new function(){this.constructor=o};for(var n=0;n<t.length;n++){var s=t[n];o.prototype[s]=i.prototype[s]}function a(e){var t=function(){};e in o.prototype&&(t=o.prototype[e]);var n=r.prototype[e];return function(){return Array.prototype.unshift.call(arguments,t),n.apply(this,arguments)}}for(var l=0;l<e.length;l++){var c=e[l];o.prototype[c]=a(c)}return o};function e(){this.listeners={}}e.prototype.on=function(e,t){this.listeners=this.listeners||{},e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t]},e.prototype.trigger=function(e){var t=Array.prototype.slice,n=t.call(arguments,1);this.listeners=this.listeners||{},null==n&&(n=[]),0===n.length&&n.push({}),(n[0]._type=e)in this.listeners&&this.invoke(this.listeners[e],t.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},e.prototype.invoke=function(e,t){for(var n=0,i=e.length;n<i;n++)e[n].apply(this,t)},r.Observable=e,r.generateChars=function(e){for(var t="",n=0;n<e;n++){t+=Math.floor(36*Math.random()).toString(36)}return t},r.bind=function(e,t){return function(){e.apply(t,arguments)}},r._convertData=function(e){for(var t in e){var n=t.split("-"),i=e;if(1!==n.length){for(var r=0;r<n.length;r++){var o=n[r];(o=o.substring(0,1).toLowerCase()+o.substring(1))in i||(i[o]={}),r==n.length-1&&(i[o]=e[t]),i=i[o]}delete e[t]}}return e},r.hasScroll=function(e,t){var n=o(t),i=t.style.overflowX,r=t.style.overflowY;return(i!==r||"hidden"!==r&&"visible"!==r)&&("scroll"===i||"scroll"===r||(n.innerHeight()<t.scrollHeight||n.innerWidth()<t.scrollWidth))},r.escapeMarkup=function(e){var t={"\\":"\","&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})},r.appendMany=function(e,t){if("1.7"===o.fn.jquery.substr(0,3)){var n=o();o.map(t,function(e){n=n.add(e)}),t=n}e.append(t)},r.__cache={};var n=0;return r.GetUniqueElementId=function(e){var t=e.getAttribute("data-select2-id");return null==t&&(e.id?(t=e.id,e.setAttribute("data-select2-id",t)):(e.setAttribute("data-select2-id",++n),t=n.toString())),t},r.StoreData=function(e,t,n){var i=r.GetUniqueElementId(e);r.__cache[i]||(r.__cache[i]={}),r.__cache[i][t]=n},r.GetData=function(e,t){var n=r.GetUniqueElementId(e);return t?r.__cache[n]&&null!=r.__cache[n][t]?r.__cache[n][t]:o(e).data(t):r.__cache[n]},r.RemoveData=function(e){var t=r.GetUniqueElementId(e);null!=r.__cache[t]&&delete r.__cache[t],e.removeAttribute("data-select2-id")},r}),e.define("select2/results",["jquery","./utils"],function(h,f){function i(e,t,n){this.$element=e,this.data=n,this.options=t,i.__super__.constructor.call(this)}return f.Extend(i,f.Observable),i.prototype.render=function(){var e=h('<ul class="select2-results__options" role="listbox"></ul>');return this.options.get("multiple")&&e.attr("aria-multiselectable","true"),this.$results=e},i.prototype.clear=function(){this.$results.empty()},i.prototype.displayMessage=function(e){var t=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var n=h('<li role="alert" aria-live="assertive" class="select2-results__option"></li>'),i=this.options.get("translations").get(e.message);n.append(t(i(e.args))),n[0].className+=" select2-results__message",this.$results.append(n)},i.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},i.prototype.append=function(e){this.hideLoading();var t=[];if(null!=e.results&&0!==e.results.length){e.results=this.sort(e.results);for(var n=0;n<e.results.length;n++){var i=e.results[n],r=this.option(i);t.push(r)}this.$results.append(t)}else 0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"})},i.prototype.position=function(e,t){t.find(".select2-results").append(e)},i.prototype.sort=function(e){return this.options.get("sorter")(e)},i.prototype.highlightFirstItem=function(){var e=this.$results.find(".select2-results__option[aria-selected]"),t=e.filter("[aria-selected=true]");0<t.length?t.first().trigger("mouseenter"):e.first().trigger("mouseenter"),this.ensureHighlightVisible()},i.prototype.setClasses=function(){var t=this;this.data.current(function(e){var i=h.map(e,function(e){return e.id.toString()});t.$results.find(".select2-results__option[aria-selected]").each(function(){var e=h(this),t=f.GetData(this,"data"),n=""+t.id;null!=t.element&&t.element.selected||null==t.element&&-1<h.inArray(n,i)?e.attr("aria-selected","true"):e.attr("aria-selected","false")})})},i.prototype.showLoading=function(e){this.hideLoading();var t={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(e)},n=this.option(t);n.className+=" loading-results",this.$results.prepend(n)},i.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},i.prototype.option=function(e){var t=document.createElement("li");t.className="select2-results__option";var n={role:"option","aria-selected":"false"},i=window.Element.prototype.matches||window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector;for(var r in(null!=e.element&&i.call(e.element,":disabled")||null==e.element&&e.disabled)&&(delete n["aria-selected"],n["aria-disabled"]="true"),null==e.id&&delete n["aria-selected"],null!=e._resultId&&(t.id=e._resultId),e.title&&(t.title=e.title),e.children&&(n.role="group",n["aria-label"]=e.text,delete n["aria-selected"]),n){var o=n[r];t.setAttribute(r,o)}if(e.children){var s=h(t),a=document.createElement("strong");a.className="select2-results__group";h(a);this.template(e,a);for(var l=[],c=0;c<e.children.length;c++){var u=e.children[c],d=this.option(u);l.push(d)}var p=h("<ul></ul>",{class:"select2-results__options select2-results__options--nested"});p.append(l),s.append(a),s.append(p)}else this.template(e,t);return f.StoreData(t,"data",e),t},i.prototype.bind=function(t,e){var l=this,n=t.id+"-results";this.$results.attr("id",n),t.on("results:all",function(e){l.clear(),l.append(e.data),t.isOpen()&&(l.setClasses(),l.highlightFirstItem())}),t.on("results:append",function(e){l.append(e.data),t.isOpen()&&l.setClasses()}),t.on("query",function(e){l.hideMessages(),l.showLoading(e)}),t.on("select",function(){t.isOpen()&&(l.setClasses(),l.options.get("scrollAfterSelect")&&l.highlightFirstItem())}),t.on("unselect",function(){t.isOpen()&&(l.setClasses(),l.options.get("scrollAfterSelect")&&l.highlightFirstItem())}),t.on("open",function(){l.$results.attr("aria-expanded","true"),l.$results.attr("aria-hidden","false"),l.setClasses(),l.ensureHighlightVisible()}),t.on("close",function(){l.$results.attr("aria-expanded","false"),l.$results.attr("aria-hidden","true"),l.$results.removeAttr("aria-activedescendant")}),t.on("results:toggle",function(){var e=l.getHighlightedResults();0!==e.length&&e.trigger("mouseup")}),t.on("results:select",function(){var e=l.getHighlightedResults();if(0!==e.length){var t=f.GetData(e[0],"data");"true"==e.attr("aria-selected")?l.trigger("close",{}):l.trigger("select",{data:t})}}),t.on("results:previous",function(){var e=l.getHighlightedResults(),t=l.$results.find("[aria-selected]"),n=t.index(e);if(!(n<=0)){var i=n-1;0===e.length&&(i=0);var r=t.eq(i);r.trigger("mouseenter");var o=l.$results.offset().top,s=r.offset().top,a=l.$results.scrollTop()+(s-o);0===i?l.$results.scrollTop(0):s-o<0&&l.$results.scrollTop(a)}}),t.on("results:next",function(){var e=l.getHighlightedResults(),t=l.$results.find("[aria-selected]"),n=t.index(e)+1;if(!(n>=t.length)){var i=t.eq(n);i.trigger("mouseenter");var r=l.$results.offset().top+l.$results.outerHeight(!1),o=i.offset().top+i.outerHeight(!1),s=l.$results.scrollTop()+o-r;0===n?l.$results.scrollTop(0):r<o&&l.$results.scrollTop(s)}}),t.on("results:focus",function(e){e.element.addClass("select2-results__option--highlighted")}),t.on("results:message",function(e){l.displayMessage(e)}),h.fn.mousewheel&&this.$results.on("mousewheel",function(e){var t=l.$results.scrollTop(),n=l.$results.get(0).scrollHeight-t+e.deltaY,i=0<e.deltaY&&t-e.deltaY<=0,r=e.deltaY<0&&n<=l.$results.height();i?(l.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):r&&(l.$results.scrollTop(l.$results.get(0).scrollHeight-l.$results.height()),e.preventDefault(),e.stopPropagation())}),this.$results.on("mouseup",".select2-results__option[aria-selected]",function(e){var t=h(this),n=f.GetData(this,"data");"true"!==t.attr("aria-selected")?l.trigger("select",{originalEvent:e,data:n}):l.options.get("multiple")?l.trigger("unselect",{originalEvent:e,data:n}):l.trigger("close",{})}),this.$results.on("mouseenter",".select2-results__option[aria-selected]",function(e){var t=f.GetData(this,"data");l.getHighlightedResults().removeClass("select2-results__option--highlighted"),l.trigger("results:focus",{data:t,element:h(this)})})},i.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},i.prototype.destroy=function(){this.$results.remove()},i.prototype.ensureHighlightVisible=function(){var e=this.getHighlightedResults();if(0!==e.length){var t=this.$results.find("[aria-selected]").index(e),n=this.$results.offset().top,i=e.offset().top,r=this.$results.scrollTop()+(i-n),o=i-n;r-=2*e.outerHeight(!1),t<=2?this.$results.scrollTop(0):(o>this.$results.outerHeight()||o<0)&&this.$results.scrollTop(r)}},i.prototype.template=function(e,t){var n=this.options.get("templateResult"),i=this.options.get("escapeMarkup"),r=n(e,t);null==r?t.style.display="none":"string"==typeof r?t.innerHTML=i(r):h(t).append(r)},i}),e.define("select2/keys",[],function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}}),e.define("select2/selection/base",["jquery","../utils","../keys"],function(n,i,r){function o(e,t){this.$element=e,this.options=t,o.__super__.constructor.call(this)}return i.Extend(o,i.Observable),o.prototype.render=function(){var e=n('<span class="select2-selection" role="combobox" aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=i.GetData(this.$element[0],"old-tabindex")?this._tabindex=i.GetData(this.$element[0],"old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),e.attr("title",this.$element.attr("title")),e.attr("tabindex",this._tabindex),e.attr("aria-disabled","false"),this.$selection=e},o.prototype.bind=function(e,t){var n=this,i=e.id+"-results";this.container=e,this.$selection.on("focus",function(e){n.trigger("focus",e)}),this.$selection.on("blur",function(e){n._handleBlur(e)}),this.$selection.on("keydown",function(e){n.trigger("keypress",e),e.which===r.SPACE&&e.preventDefault()}),e.on("results:focus",function(e){n.$selection.attr("aria-activedescendant",e.data._resultId)}),e.on("selection:update",function(e){n.update(e.data)}),e.on("open",function(){n.$selection.attr("aria-expanded","true"),n.$selection.attr("aria-owns",i),n._attachCloseHandler(e)}),e.on("close",function(){n.$selection.attr("aria-expanded","false"),n.$selection.removeAttr("aria-activedescendant"),n.$selection.removeAttr("aria-owns"),n.$selection.trigger("focus"),n._detachCloseHandler(e)}),e.on("enable",function(){n.$selection.attr("tabindex",n._tabindex),n.$selection.attr("aria-disabled","false")}),e.on("disable",function(){n.$selection.attr("tabindex","-1"),n.$selection.attr("aria-disabled","true")})},o.prototype._handleBlur=function(e){var t=this;window.setTimeout(function(){document.activeElement==t.$selection[0]||n.contains(t.$selection[0],document.activeElement)||t.trigger("blur",e)},1)},o.prototype._attachCloseHandler=function(e){n(document.body).on("mousedown.select2."+e.id,function(e){var t=n(e.target).closest(".select2");n(".select2.select2-container--open").each(function(){this!=t[0]&&i.GetData(this,"element").select2("close")})})},o.prototype._detachCloseHandler=function(e){n(document.body).off("mousedown.select2."+e.id)},o.prototype.position=function(e,t){t.find(".selection").append(e)},o.prototype.destroy=function(){this._detachCloseHandler(this.container)},o.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")},o.prototype.isEnabled=function(){return!this.isDisabled()},o.prototype.isDisabled=function(){return this.options.get("disabled")},o}),e.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(e,t,n,i){function r(){r.__super__.constructor.apply(this,arguments)}return n.Extend(r,t),r.prototype.render=function(){var e=r.__super__.render.call(this);return e.addClass("select2-selection--single"),e.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),e},r.prototype.bind=function(t,e){var n=this;r.__super__.bind.apply(this,arguments);var i=t.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",i).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",i),this.$selection.on("mousedown",function(e){1===e.which&&n.trigger("toggle",{originalEvent:e})}),this.$selection.on("focus",function(e){}),this.$selection.on("blur",function(e){}),t.on("focus",function(e){t.isOpen()||n.$selection.trigger("focus")})},r.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},r.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},r.prototype.selectionContainer=function(){return e("<span></span>")},r.prototype.update=function(e){if(0!==e.length){var t=e[0],n=this.$selection.find(".select2-selection__rendered"),i=this.display(t,n);n.empty().append(i);var r=t.title||t.text;r?n.attr("title",r):n.removeAttr("title")}else this.clear()},r}),e.define("select2/selection/multiple",["jquery","./base","../utils"],function(r,e,l){function n(e,t){n.__super__.constructor.apply(this,arguments)}return l.Extend(n,e),n.prototype.render=function(){var e=n.__super__.render.call(this);return e.addClass("select2-selection--multiple"),e.html('<ul class="select2-selection__rendered"></ul>'),e},n.prototype.bind=function(e,t){var i=this;n.__super__.bind.apply(this,arguments),this.$selection.on("click",function(e){i.trigger("toggle",{originalEvent:e})}),this.$selection.on("click",".select2-selection__choice__remove",function(e){if(!i.isDisabled()){var t=r(this).parent(),n=l.GetData(t[0],"data");i.trigger("unselect",{originalEvent:e,data:n})}})},n.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},n.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},n.prototype.selectionContainer=function(){return r('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">×</span></li>')},n.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],n=0;n<e.length;n++){var i=e[n],r=this.selectionContainer(),o=this.display(i,r);r.append(o);var s=i.title||i.text;s&&r.attr("title",s),l.StoreData(r[0],"data",i),t.push(r)}var a=this.$selection.find(".select2-selection__rendered");l.appendMany(a,t)}},n}),e.define("select2/selection/placeholder",["../utils"],function(e){function t(e,t,n){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n)}return t.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},t.prototype.createPlaceholder=function(e,t){var n=this.selectionContainer();return n.html(this.display(t)),n.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),n},t.prototype.update=function(e,t){var n=1==t.length&&t[0].id!=this.placeholder.id;if(1<t.length||n)return e.call(this,t);this.clear();var i=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(i)},t}),e.define("select2/selection/allowClear",["jquery","../keys","../utils"],function(r,i,a){function e(){}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(e){i._handleClear(e)}),t.on("keypress",function(e){i._handleKeyboardClear(e,t)})},e.prototype._handleClear=function(e,t){if(!this.isDisabled()){var n=this.$selection.find(".select2-selection__clear");if(0!==n.length){t.stopPropagation();var i=a.GetData(n[0],"data"),r=this.$element.val();this.$element.val(this.placeholder.id);var o={data:i};if(this.trigger("clear",o),o.prevented)this.$element.val(r);else{for(var s=0;s<i.length;s++)if(o={data:i[s]},this.trigger("unselect",o),o.prevented)return void this.$element.val(r);this.$element.trigger("input").trigger("change"),this.trigger("toggle",{})}}}},e.prototype._handleKeyboardClear=function(e,t,n){n.isOpen()||t.which!=i.DELETE&&t.which!=i.BACKSPACE||this._handleClear(t)},e.prototype.update=function(e,t){if(e.call(this,t),!(0<this.$selection.find(".select2-selection__placeholder").length||0===t.length)){var n=this.options.get("translations").get("removeAllItems"),i=r('<span class="select2-selection__clear" title="'+n()+'">×</span>');a.StoreData(i[0],"data",t),this.$selection.find(".select2-selection__rendered").prepend(i)}},e}),e.define("select2/selection/search",["jquery","../utils","../keys"],function(i,a,l){function e(e,t,n){e.call(this,t,n)}return e.prototype.render=function(e){var t=i('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></li>');this.$searchContainer=t,this.$search=t.find("input");var n=e.call(this);return this._transferTabIndex(),n},e.prototype.bind=function(e,t,n){var i=this,r=t.id+"-results";e.call(this,t,n),t.on("open",function(){i.$search.attr("aria-controls",r),i.$search.trigger("focus")}),t.on("close",function(){i.$search.val(""),i.$search.removeAttr("aria-controls"),i.$search.removeAttr("aria-activedescendant"),i.$search.trigger("focus")}),t.on("enable",function(){i.$search.prop("disabled",!1),i._transferTabIndex()}),t.on("disable",function(){i.$search.prop("disabled",!0)}),t.on("focus",function(e){i.$search.trigger("focus")}),t.on("results:focus",function(e){e.data._resultId?i.$search.attr("aria-activedescendant",e.data._resultId):i.$search.removeAttr("aria-activedescendant")}),this.$selection.on("focusin",".select2-search--inline",function(e){i.trigger("focus",e)}),this.$selection.on("focusout",".select2-search--inline",function(e){i._handleBlur(e)}),this.$selection.on("keydown",".select2-search--inline",function(e){if(e.stopPropagation(),i.trigger("keypress",e),i._keyUpPrevented=e.isDefaultPrevented(),e.which===l.BACKSPACE&&""===i.$search.val()){var t=i.$searchContainer.prev(".select2-selection__choice");if(0<t.length){var n=a.GetData(t[0],"data");i.searchRemoveChoice(n),e.preventDefault()}}}),this.$selection.on("click",".select2-search--inline",function(e){i.$search.val()&&e.stopPropagation()});var o=document.documentMode,s=o&&o<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(e){s?i.$selection.off("input.search input.searchcheck"):i.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(e){if(s&&"input"===e.type)i.$selection.off("input.search input.searchcheck");else{var t=e.which;t!=l.SHIFT&&t!=l.CTRL&&t!=l.ALT&&t!=l.TAB&&i.handleSearch(e)}})},e.prototype._transferTabIndex=function(e){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},e.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)},e.prototype.update=function(e,t){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),e.call(this,t),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),n&&this.$search.trigger("focus")},e.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},e.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},e.prototype.resizeSearch=function(){this.$search.css("width","25px");var e="";""!==this.$search.attr("placeholder")?e=this.$selection.find(".select2-selection__rendered").width():e=.75*(this.$search.val().length+1)+"em";this.$search.css("width",e)},e}),e.define("select2/selection/eventRelay",["jquery"],function(s){function e(){}return e.prototype.bind=function(e,t,n){var i=this,r=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],o=["opening","closing","selecting","unselecting","clearing"];e.call(this,t,n),t.on("*",function(e,t){if(-1!==s.inArray(e,r)){t=t||{};var n=s.Event("select2:"+e,{params:t});i.$element.trigger(n),-1!==s.inArray(e,o)&&(t.prevented=n.isDefaultPrevented())}})},e}),e.define("select2/translation",["jquery","require"],function(t,n){function i(e){this.dict=e||{}}return i.prototype.all=function(){return this.dict},i.prototype.get=function(e){return this.dict[e]},i.prototype.extend=function(e){this.dict=t.extend({},e.all(),this.dict)},i._cache={},i.loadPath=function(e){if(!(e in i._cache)){var t=n(e);i._cache[e]=t}return new i(i._cache[e])},i}),e.define("select2/diacritics",[],function(){return{"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Œ":"OE","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":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","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","œ":"oe","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ώ":"ω","ς":"σ","’":"'"}}),e.define("select2/data/base",["../utils"],function(i){function n(e,t){n.__super__.constructor.call(this)}return i.Extend(n,i.Observable),n.prototype.current=function(e){throw new Error("The `current` method must be defined in child classes.")},n.prototype.query=function(e,t){throw new Error("The `query` method must be defined in child classes.")},n.prototype.bind=function(e,t){},n.prototype.destroy=function(){},n.prototype.generateResultId=function(e,t){var n=e.id+"-result-";return n+=i.generateChars(4),null!=t.id?n+="-"+t.id.toString():n+="-"+i.generateChars(4),n},n}),e.define("select2/data/select",["./base","../utils","jquery"],function(e,a,l){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return a.Extend(n,e),n.prototype.current=function(e){var n=[],i=this;this.$element.find(":selected").each(function(){var e=l(this),t=i.item(e);n.push(t)}),e(n)},n.prototype.select=function(r){var o=this;if(r.selected=!0,l(r.element).is("option"))return r.element.selected=!0,void this.$element.trigger("input").trigger("change");if(this.$element.prop("multiple"))this.current(function(e){var t=[];(r=[r]).push.apply(r,e);for(var n=0;n<r.length;n++){var i=r[n].id;-1===l.inArray(i,t)&&t.push(i)}o.$element.val(t),o.$element.trigger("input").trigger("change")});else{var e=r.id;this.$element.val(e),this.$element.trigger("input").trigger("change")}},n.prototype.unselect=function(r){var o=this;if(this.$element.prop("multiple")){if(r.selected=!1,l(r.element).is("option"))return r.element.selected=!1,void this.$element.trigger("input").trigger("change");this.current(function(e){for(var t=[],n=0;n<e.length;n++){var i=e[n].id;i!==r.id&&-1===l.inArray(i,t)&&t.push(i)}o.$element.val(t),o.$element.trigger("input").trigger("change")})}},n.prototype.bind=function(e,t){var n=this;(this.container=e).on("select",function(e){n.select(e.data)}),e.on("unselect",function(e){n.unselect(e.data)})},n.prototype.destroy=function(){this.$element.find("*").each(function(){a.RemoveData(this)})},n.prototype.query=function(i,e){var r=[],o=this;this.$element.children().each(function(){var e=l(this);if(e.is("option")||e.is("optgroup")){var t=o.item(e),n=o.matches(i,t);null!==n&&r.push(n)}}),e({results:r})},n.prototype.addOptions=function(e){a.appendMany(this.$element,e)},n.prototype.option=function(e){var t;e.children?(t=document.createElement("optgroup")).label=e.text:void 0!==(t=document.createElement("option")).textContent?t.textContent=e.text:t.innerText=e.text,void 0!==e.id&&(t.value=e.id),e.disabled&&(t.disabled=!0),e.selected&&(t.selected=!0),e.title&&(t.title=e.title);var n=l(t),i=this._normalizeItem(e);return i.element=t,a.StoreData(t,"data",i),n},n.prototype.item=function(e){var t={};if(null!=(t=a.GetData(e[0],"data")))return t;if(e.is("option"))t={id:e.val(),text:e.text(),disabled:e.prop("disabled"),selected:e.prop("selected"),title:e.prop("title")};else if(e.is("optgroup")){t={text:e.prop("label"),children:[],title:e.prop("title")};for(var n=e.children("option"),i=[],r=0;r<n.length;r++){var o=l(n[r]),s=this.item(o);i.push(s)}t.children=i}return(t=this._normalizeItem(t)).element=e[0],a.StoreData(e[0],"data",t),t},n.prototype._normalizeItem=function(e){e!==Object(e)&&(e={id:e,text:e});return null!=(e=l.extend({},{text:""},e)).id&&(e.id=e.id.toString()),null!=e.text&&(e.text=e.text.toString()),null==e._resultId&&e.id&&null!=this.container&&(e._resultId=this.generateResultId(this.container,e)),l.extend({},{selected:!1,disabled:!1},e)},n.prototype.matches=function(e,t){return this.options.get("matcher")(e,t)},n}),e.define("select2/data/array",["./select","../utils","jquery"],function(e,f,g){function i(e,t){this._dataToConvert=t.get("data")||[],i.__super__.constructor.call(this,e,t)}return f.Extend(i,e),i.prototype.bind=function(e,t){i.__super__.bind.call(this,e,t),this.addOptions(this.convertToOptions(this._dataToConvert))},i.prototype.select=function(n){var e=this.$element.find("option").filter(function(e,t){return t.value==n.id.toString()});0===e.length&&(e=this.option(n),this.addOptions(e)),i.__super__.select.call(this,n)},i.prototype.convertToOptions=function(e){var t=this,n=this.$element.find("option"),i=n.map(function(){return t.item(g(this)).id}).get(),r=[];function o(e){return function(){return g(this).val()==e.id}}for(var s=0;s<e.length;s++){var a=this._normalizeItem(e[s]);if(0<=g.inArray(a.id,i)){var l=n.filter(o(a)),c=this.item(l),u=g.extend(!0,{},a,c),d=this.option(u);l.replaceWith(d)}else{var p=this.option(a);if(a.children){var h=this.convertToOptions(a.children);f.appendMany(p,h)}r.push(p)}}return r},i}),e.define("select2/data/ajax",["./array","../utils","jquery"],function(e,t,o){function n(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),n.__super__.constructor.call(this,e,t)}return t.Extend(n,e),n.prototype._applyDefaults=function(e){var t={data:function(e){return o.extend({},e,{q:e.term})},transport:function(e,t,n){var i=o.ajax(e);return i.then(t),i.fail(n),i}};return o.extend({},t,e,!0)},n.prototype.processResults=function(e){return e},n.prototype.query=function(n,i){var r=this;null!=this._request&&(o.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var t=o.extend({type:"GET"},this.ajaxOptions);function e(){var e=t.transport(t,function(e){var t=r.processResults(e,n);r.options.get("debug")&&window.console&&console.error&&(t&&t.results&&o.isArray(t.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),i(t)},function(){"status"in e&&(0===e.status||"0"===e.status)||r.trigger("results:message",{message:"errorLoading"})});r._request=e}"function"==typeof t.url&&(t.url=t.url.call(this.$element,n)),"function"==typeof t.data&&(t.data=t.data.call(this.$element,n)),this.ajaxOptions.delay&&null!=n.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(e,this.ajaxOptions.delay)):e()},n}),e.define("select2/data/tags",["jquery"],function(u){function e(e,t,n){var i=n.get("tags"),r=n.get("createTag");void 0!==r&&(this.createTag=r);var o=n.get("insertTag");if(void 0!==o&&(this.insertTag=o),e.call(this,t,n),u.isArray(i))for(var s=0;s<i.length;s++){var a=i[s],l=this._normalizeItem(a),c=this.option(l);this.$element.append(c)}}return e.prototype.query=function(e,c,u){var d=this;this._removeOldTags(),null!=c.term&&null==c.page?e.call(this,c,function e(t,n){for(var i=t.results,r=0;r<i.length;r++){var o=i[r],s=null!=o.children&&!e({results:o.children},!0);if((o.text||"").toUpperCase()===(c.term||"").toUpperCase()||s)return!n&&(t.data=i,void u(t))}if(n)return!0;var a=d.createTag(c);if(null!=a){var l=d.option(a);l.attr("data-select2-tag",!0),d.addOptions([l]),d.insertTag(i,a)}t.results=i,u(t)}):e.call(this,c,u)},e.prototype.createTag=function(e,t){var n=u.trim(t.term);return""===n?null:{id:n,text:n}},e.prototype.insertTag=function(e,t,n){t.unshift(n)},e.prototype._removeOldTags=function(e){this.$element.find("option[data-select2-tag]").each(function(){this.selected||u(this).remove()})},e}),e.define("select2/data/tokenizer",["jquery"],function(d){function e(e,t,n){var i=n.get("tokenizer");void 0!==i&&(this.tokenizer=i),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){e.call(this,t,n),this.$search=t.dropdown.$search||t.selection.$search||n.find(".select2-search__field")},e.prototype.query=function(e,t,n){var r=this;t.term=t.term||"";var i=this.tokenizer(t,this.options,function(e){var t,n=r._normalizeItem(e);if(!r.$element.find("option").filter(function(){return d(this).val()===n.id}).length){var i=r.option(n);i.attr("data-select2-tag",!0),r._removeOldTags(),r.addOptions([i])}t=n,r.trigger("select",{data:t})});i.term!==t.term&&(this.$search.length&&(this.$search.val(i.term),this.$search.trigger("focus")),t.term=i.term),e.call(this,t,n)},e.prototype.tokenizer=function(e,t,n,i){for(var r=n.get("tokenSeparators")||[],o=t.term,s=0,a=this.createTag||function(e){return{id:e.term,text:e.term}};s<o.length;){var l=o[s];if(-1!==d.inArray(l,r)){var c=o.substr(0,s),u=a(d.extend({},t,{term:c}));null!=u?(i(u),o=o.substr(s+1)||"",s=0):s++}else s++}return{term:o}},e}),e.define("select2/data/minimumInputLength",[],function(){function e(e,t,n){this.minimumInputLength=n.get("minimumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",t.term.length<this.minimumInputLength?this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e}),e.define("select2/data/maximumInputLength",[],function(){function e(e,t,n){this.maximumInputLength=n.get("maximumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",0<this.maximumInputLength&&t.term.length>this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e}),e.define("select2/data/maximumSelectionLength",[],function(){function e(e,t,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("select",function(){i._checkIfMaximumSelected()})},e.prototype.query=function(e,t,n){var i=this;this._checkIfMaximumSelected(function(){e.call(i,t,n)})},e.prototype._checkIfMaximumSelected=function(e,n){var i=this;this.current(function(e){var t=null!=e?e.length:0;0<i.maximumSelectionLength&&t>=i.maximumSelectionLength?i.trigger("results:message",{message:"maximumSelected",args:{maximum:i.maximumSelectionLength}}):n&&n()})},e}),e.define("select2/dropdown",["jquery","./utils"],function(t,e){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return e.Extend(n,e.Observable),n.prototype.render=function(){var e=t('<span class="select2-dropdown"><span class="select2-results"></span></span>');return e.attr("dir",this.options.get("dir")),this.$dropdown=e},n.prototype.bind=function(){},n.prototype.position=function(e,t){},n.prototype.destroy=function(){this.$dropdown.remove()},n}),e.define("select2/dropdown/search",["jquery","../utils"],function(o,e){function t(){}return t.prototype.render=function(e){var t=e.call(this),n=o('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></span>');return this.$searchContainer=n,this.$search=n.find("input"),t.prepend(n),t},t.prototype.bind=function(e,t,n){var i=this,r=t.id+"-results";e.call(this,t,n),this.$search.on("keydown",function(e){i.trigger("keypress",e),i._keyUpPrevented=e.isDefaultPrevented()}),this.$search.on("input",function(e){o(this).off("keyup")}),this.$search.on("keyup input",function(e){i.handleSearch(e)}),t.on("open",function(){i.$search.attr("tabindex",0),i.$search.attr("aria-controls",r),i.$search.trigger("focus"),window.setTimeout(function(){i.$search.trigger("focus")},0)}),t.on("close",function(){i.$search.attr("tabindex",-1),i.$search.removeAttr("aria-controls"),i.$search.removeAttr("aria-activedescendant"),i.$search.val(""),i.$search.trigger("blur")}),t.on("focus",function(){t.isOpen()||i.$search.trigger("focus")}),t.on("results:all",function(e){null!=e.query.term&&""!==e.query.term||(i.showSearch(e)?i.$searchContainer.removeClass("select2-search--hide"):i.$searchContainer.addClass("select2-search--hide"))}),t.on("results:focus",function(e){e.data._resultId?i.$search.attr("aria-activedescendant",e.data._resultId):i.$search.removeAttr("aria-activedescendant")})},t.prototype.handleSearch=function(e){if(!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},t.prototype.showSearch=function(e,t){return!0},t}),e.define("select2/dropdown/hidePlaceholder",[],function(){function e(e,t,n,i){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n,i)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.removePlaceholder=function(e,t){for(var n=t.slice(0),i=t.length-1;0<=i;i--){var r=t[i];this.placeholder.id===r.id&&n.splice(i,1)}return n},e}),e.define("select2/dropdown/infiniteScroll",["jquery"],function(n){function e(e,t,n,i){this.lastParams={},e.call(this,t,n,i),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return e.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&(this.$results.append(this.$loadingMore),this.loadMoreIfNeeded())},e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("query",function(e){i.lastParams=e,i.loading=!0}),t.on("query:append",function(e){i.lastParams=e,i.loading=!0}),this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},e.prototype.loadMoreIfNeeded=function(){var e=n.contains(document.documentElement,this.$loadingMore[0]);if(!this.loading&&e){var t=this.$results.offset().top+this.$results.outerHeight(!1);this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1)<=t+50&&this.loadMore()}},e.prototype.loadMore=function(){this.loading=!0;var e=n.extend({},{page:1},this.lastParams);e.page++,this.trigger("query:append",e)},e.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},e.prototype.createLoadingMore=function(){var e=n('<li class="select2-results__option select2-results__option--load-more"role="option" aria-disabled="true"></li>'),t=this.options.get("translations").get("loadingMore");return e.html(t(this.lastParams)),e},e}),e.define("select2/dropdown/attachBody",["jquery","../utils"],function(f,a){function e(e,t,n){this.$dropdownParent=f(n.get("dropdownParent")||document.body),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("open",function(){i._showDropdown(),i._attachPositioningHandler(t),i._bindContainerResultHandlers(t)}),t.on("close",function(){i._hideDropdown(),i._detachPositioningHandler(t)}),this.$dropdownContainer.on("mousedown",function(e){e.stopPropagation()})},e.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},e.prototype.position=function(e,t,n){t.attr("class",n.attr("class")),t.removeClass("select2"),t.addClass("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=n},e.prototype.render=function(e){var t=f("<span></span>"),n=e.call(this);return t.append(n),this.$dropdownContainer=t},e.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},e.prototype._bindContainerResultHandlers=function(e,t){if(!this._containerResultsHandlersBound){var n=this;t.on("results:all",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("results:append",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("results:message",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("select",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("unselect",function(){n._positionDropdown(),n._resizeDropdown()}),this._containerResultsHandlersBound=!0}},e.prototype._attachPositioningHandler=function(e,t){var n=this,i="scroll.select2."+t.id,r="resize.select2."+t.id,o="orientationchange.select2."+t.id,s=this.$container.parents().filter(a.hasScroll);s.each(function(){a.StoreData(this,"select2-scroll-position",{x:f(this).scrollLeft(),y:f(this).scrollTop()})}),s.on(i,function(e){var t=a.GetData(this,"select2-scroll-position");f(this).scrollTop(t.y)}),f(window).on(i+" "+r+" "+o,function(e){n._positionDropdown(),n._resizeDropdown()})},e.prototype._detachPositioningHandler=function(e,t){var n="scroll.select2."+t.id,i="resize.select2."+t.id,r="orientationchange.select2."+t.id;this.$container.parents().filter(a.hasScroll).off(n),f(window).off(n+" "+i+" "+r)},e.prototype._positionDropdown=function(){var e=f(window),t=this.$dropdown.hasClass("select2-dropdown--above"),n=this.$dropdown.hasClass("select2-dropdown--below"),i=null,r=this.$container.offset();r.bottom=r.top+this.$container.outerHeight(!1);var o={height:this.$container.outerHeight(!1)};o.top=r.top,o.bottom=r.top+o.height;var s=this.$dropdown.outerHeight(!1),a=e.scrollTop(),l=e.scrollTop()+e.height(),c=a<r.top-s,u=l>r.bottom+s,d={left:r.left,top:o.bottom},p=this.$dropdownParent;"static"===p.css("position")&&(p=p.offsetParent());var h={top:0,left:0};(f.contains(document.body,p[0])||p[0].isConnected)&&(h=p.offset()),d.top-=h.top,d.left-=h.left,t||n||(i="below"),u||!c||t?!c&&u&&t&&(i="below"):i="above",("above"==i||t&&"below"!==i)&&(d.top=o.top-h.top-s),null!=i&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+i),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+i)),this.$dropdownContainer.css(d)},e.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.position="relative",e.width="auto"),this.$dropdown.css(e)},e.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},e}),e.define("select2/dropdown/minimumResultsForSearch",[],function(){function e(e,t,n,i){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,n,i)}return e.prototype.showSearch=function(e,t){return!(function e(t){for(var n=0,i=0;i<t.length;i++){var r=t[i];r.children?n+=e(r.children):n++}return n}(t.data.results)<this.minimumResultsForSearch)&&e.call(this,t)},e}),e.define("select2/dropdown/selectOnClose",["../utils"],function(o){function e(){}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("close",function(e){i._handleSelectOnClose(e)})},e.prototype._handleSelectOnClose=function(e,t){if(t&&null!=t.originalSelect2Event){var n=t.originalSelect2Event;if("select"===n._type||"unselect"===n._type)return}var i=this.getHighlightedResults();if(!(i.length<1)){var r=o.GetData(i[0],"data");null!=r.element&&r.element.selected||null==r.element&&r.selected||this.trigger("select",{data:r})}},e}),e.define("select2/dropdown/closeOnSelect",[],function(){function e(){}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("select",function(e){i._selectTriggered(e)}),t.on("unselect",function(e){i._selectTriggered(e)})},e.prototype._selectTriggered=function(e,t){var n=t.originalEvent;n&&(n.ctrlKey||n.metaKey)||this.trigger("close",{originalEvent:n,originalSelect2Event:t})},e}),e.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Please delete "+t+" character";return 1!=t&&(n+="s"),n},inputTooShort:function(e){return"Please enter "+(e.minimum-e.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";return 1!=e.maximum&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching…"},removeAllItems:function(){return"Remove all items"}}}),e.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],function(c,u,d,p,h,f,g,m,v,y,s,t,_,w,$,b,A,x,D,S,C,E,O,T,q,j,L,I,e){function n(){this.reset()}return n.prototype.apply=function(e){if(null==(e=c.extend(!0,{},this.defaults,e)).dataAdapter){if(null!=e.ajax?e.dataAdapter=$:null!=e.data?e.dataAdapter=w:e.dataAdapter=_,0<e.minimumInputLength&&(e.dataAdapter=y.Decorate(e.dataAdapter,x)),0<e.maximumInputLength&&(e.dataAdapter=y.Decorate(e.dataAdapter,D)),0<e.maximumSelectionLength&&(e.dataAdapter=y.Decorate(e.dataAdapter,S)),e.tags&&(e.dataAdapter=y.Decorate(e.dataAdapter,b)),null==e.tokenSeparators&&null==e.tokenizer||(e.dataAdapter=y.Decorate(e.dataAdapter,A)),null!=e.query){var t=u(e.amdBase+"compat/query");e.dataAdapter=y.Decorate(e.dataAdapter,t)}if(null!=e.initSelection){var n=u(e.amdBase+"compat/initSelection");e.dataAdapter=y.Decorate(e.dataAdapter,n)}}if(null==e.resultsAdapter&&(e.resultsAdapter=d,null!=e.ajax&&(e.resultsAdapter=y.Decorate(e.resultsAdapter,T)),null!=e.placeholder&&(e.resultsAdapter=y.Decorate(e.resultsAdapter,O)),e.selectOnClose&&(e.resultsAdapter=y.Decorate(e.resultsAdapter,L))),null==e.dropdownAdapter){if(e.multiple)e.dropdownAdapter=C;else{var i=y.Decorate(C,E);e.dropdownAdapter=i}if(0!==e.minimumResultsForSearch&&(e.dropdownAdapter=y.Decorate(e.dropdownAdapter,j)),e.closeOnSelect&&(e.dropdownAdapter=y.Decorate(e.dropdownAdapter,I)),null!=e.dropdownCssClass||null!=e.dropdownCss||null!=e.adaptDropdownCssClass){var r=u(e.amdBase+"compat/dropdownCss");e.dropdownAdapter=y.Decorate(e.dropdownAdapter,r)}e.dropdownAdapter=y.Decorate(e.dropdownAdapter,q)}if(null==e.selectionAdapter){if(e.multiple?e.selectionAdapter=h:e.selectionAdapter=p,null!=e.placeholder&&(e.selectionAdapter=y.Decorate(e.selectionAdapter,f)),e.allowClear&&(e.selectionAdapter=y.Decorate(e.selectionAdapter,g)),e.multiple&&(e.selectionAdapter=y.Decorate(e.selectionAdapter,m)),null!=e.containerCssClass||null!=e.containerCss||null!=e.adaptContainerCssClass){var o=u(e.amdBase+"compat/containerCss");e.selectionAdapter=y.Decorate(e.selectionAdapter,o)}e.selectionAdapter=y.Decorate(e.selectionAdapter,v)}e.language=this._resolveLanguage(e.language),e.language.push("en");for(var s=[],a=0;a<e.language.length;a++){var l=e.language[a];-1===s.indexOf(l)&&s.push(l)}return e.language=s,e.translations=this._processTranslations(e.language,e.debug),e},n.prototype.reset=function(){function a(e){return e.replace(/[^\u0000-\u007E]/g,function(e){return t[e]||e})}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:y.escapeMarkup,language:{},matcher:function e(t,n){if(""===c.trim(t.term))return n;if(n.children&&0<n.children.length){for(var i=c.extend(!0,{},n),r=n.children.length-1;0<=r;r--)null==e(t,n.children[r])&&i.children.splice(r,1);return 0<i.children.length?i:e(t,i)}var o=a(n.text).toUpperCase(),s=a(t.term).toUpperCase();return-1<o.indexOf(s)?n:null},minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,scrollAfterSelect:!1,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:"default",width:"resolve"}},n.prototype.applyFromElement=function(e,t){var n=e.language,i=this.defaults.language,r=t.prop("lang"),o=t.closest("[lang]").prop("lang"),s=Array.prototype.concat.call(this._resolveLanguage(r),this._resolveLanguage(n),this._resolveLanguage(i),this._resolveLanguage(o));return e.language=s,e},n.prototype._resolveLanguage=function(e){if(!e)return[];if(c.isEmptyObject(e))return[];if(c.isPlainObject(e))return[e];var t;t=c.isArray(e)?e:[e];for(var n=[],i=0;i<t.length;i++)if(n.push(t[i]),"string"==typeof t[i]&&0<t[i].indexOf("-")){var r=t[i].split("-")[0];n.push(r)}return n},n.prototype._processTranslations=function(e,t){for(var n=new s,i=0;i<e.length;i++){var r=new s,o=e[i];if("string"==typeof o)try{r=s.loadPath(o)}catch(e){try{o=this.defaults.amdLanguageBase+o,r=s.loadPath(o)}catch(e){t&&window.console&&console.warn&&console.warn('Select2: The language file for "'+o+'" could not be automatically loaded. A fallback will be used instead.')}}else r=c.isPlainObject(o)?new s(o):o;n.extend(r)}return n},n.prototype.set=function(e,t){var n={};n[c.camelCase(e)]=t;var i=y._convertData(n);c.extend(!0,this.defaults,i)},new n}),e.define("select2/options",["require","jquery","./defaults","./utils"],function(i,d,r,p){function e(e,t){if(this.options=e,null!=t&&this.fromElement(t),null!=t&&(this.options=r.applyFromElement(this.options,t)),this.options=r.apply(this.options),t&&t.is("input")){var n=i(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=p.Decorate(this.options.dataAdapter,n)}}return e.prototype.fromElement=function(e){var t=["select2"];null==this.options.multiple&&(this.options.multiple=e.prop("multiple")),null==this.options.disabled&&(this.options.disabled=e.prop("disabled")),null==this.options.dir&&(e.prop("dir")?this.options.dir=e.prop("dir"):e.closest("[dir]").prop("dir")?this.options.dir=e.closest("[dir]").prop("dir"):this.options.dir="ltr"),e.prop("disabled",this.options.disabled),e.prop("multiple",this.options.multiple),p.GetData(e[0],"select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),p.StoreData(e[0],"data",p.GetData(e[0],"select2Tags")),p.StoreData(e[0],"tags",!0)),p.GetData(e[0],"ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),e.attr("ajax--url",p.GetData(e[0],"ajaxUrl")),p.StoreData(e[0],"ajax-Url",p.GetData(e[0],"ajaxUrl")));var n={};function i(e,t){return t.toUpperCase()}for(var r=0;r<e[0].attributes.length;r++){var o=e[0].attributes[r].name,s="data-";if(o.substr(0,s.length)==s){var a=o.substring(s.length),l=p.GetData(e[0],a);n[a.replace(/-([a-z])/g,i)]=l}}d.fn.jquery&&"1."==d.fn.jquery.substr(0,2)&&e[0].dataset&&(n=d.extend(!0,{},e[0].dataset,n));var c=d.extend(!0,{},p.GetData(e[0]),n);for(var u in c=p._convertData(c))-1<d.inArray(u,t)||(d.isPlainObject(this.options[u])?d.extend(this.options[u],c[u]):this.options[u]=c[u]);return this},e.prototype.get=function(e){return this.options[e]},e.prototype.set=function(e,t){this.options[e]=t},e}),e.define("select2/core",["jquery","./options","./utils","./keys"],function(o,c,u,i){var d=function(e,t){null!=u.GetData(e[0],"select2")&&u.GetData(e[0],"select2").destroy(),this.$element=e,this.id=this._generateId(e),t=t||{},this.options=new c(t,e),d.__super__.constructor.call(this);var n=e.attr("tabindex")||0;u.StoreData(e[0],"old-tabindex",n),e.attr("tabindex","-1");var i=this.options.get("dataAdapter");this.dataAdapter=new i(e,this.options);var r=this.render();this._placeContainer(r);var o=this.options.get("selectionAdapter");this.selection=new o(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,r);var s=this.options.get("dropdownAdapter");this.dropdown=new s(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,r);var a=this.options.get("resultsAdapter");this.results=new a(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var l=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(e){l.trigger("selection:update",{data:e})}),e.addClass("select2-hidden-accessible"),e.attr("aria-hidden","true"),this._syncAttributes(),u.StoreData(e[0],"select2",this),e.data("select2",this)};return u.Extend(d,u.Observable),d.prototype._generateId=function(e){return"select2-"+(null!=e.attr("id")?e.attr("id"):null!=e.attr("name")?e.attr("name")+"-"+u.generateChars(2):u.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},d.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t)},d.prototype._resolveWidth=function(e,t){var n=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==t){var i=this._resolveWidth(e,"style");return null!=i?i:this._resolveWidth(e,"element")}if("element"==t){var r=e.outerWidth(!1);return r<=0?"auto":r+"px"}if("style"!=t)return"computedstyle"!=t?t:window.getComputedStyle(e[0]).width;var o=e.attr("style");if("string"!=typeof o)return null;for(var s=o.split(";"),a=0,l=s.length;a<l;a+=1){var c=s[a].replace(/\s/g,"").match(n);if(null!==c&&1<=c.length)return c[1]}return null},d.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},d.prototype._registerDomEvents=function(){var t=this;this.$element.on("change.select2",function(){t.dataAdapter.current(function(e){t.trigger("selection:update",{data:e})})}),this.$element.on("focus.select2",function(e){t.trigger("focus",e)}),this._syncA=u.bind(this._syncAttributes,this),this._syncS=u.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var e=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=e?(this._observer=new e(function(e){t._syncA(),t._syncS(null,e)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",t._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",t._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",t._syncS,!1))},d.prototype._registerDataEvents=function(){var n=this;this.dataAdapter.on("*",function(e,t){n.trigger(e,t)})},d.prototype._registerSelectionEvents=function(){var n=this,i=["toggle","focus"];this.selection.on("toggle",function(){n.toggleDropdown()}),this.selection.on("focus",function(e){n.focus(e)}),this.selection.on("*",function(e,t){-1===o.inArray(e,i)&&n.trigger(e,t)})},d.prototype._registerDropdownEvents=function(){var n=this;this.dropdown.on("*",function(e,t){n.trigger(e,t)})},d.prototype._registerResultsEvents=function(){var n=this;this.results.on("*",function(e,t){n.trigger(e,t)})},d.prototype._registerEvents=function(){var n=this;this.on("open",function(){n.$container.addClass("select2-container--open")}),this.on("close",function(){n.$container.removeClass("select2-container--open")}),this.on("enable",function(){n.$container.removeClass("select2-container--disabled")}),this.on("disable",function(){n.$container.addClass("select2-container--disabled")}),this.on("blur",function(){n.$container.removeClass("select2-container--focus")}),this.on("query",function(t){n.isOpen()||n.trigger("open",{}),this.dataAdapter.query(t,function(e){n.trigger("results:all",{data:e,query:t})})}),this.on("query:append",function(t){this.dataAdapter.query(t,function(e){n.trigger("results:append",{data:e,query:t})})}),this.on("keypress",function(e){var t=e.which;n.isOpen()?t===i.ESC||t===i.TAB||t===i.UP&&e.altKey?(n.close(e),e.preventDefault()):t===i.ENTER?(n.trigger("results:select",{}),e.preventDefault()):t===i.SPACE&&e.ctrlKey?(n.trigger("results:toggle",{}),e.preventDefault()):t===i.UP?(n.trigger("results:previous",{}),e.preventDefault()):t===i.DOWN&&(n.trigger("results:next",{}),e.preventDefault()):(t===i.ENTER||t===i.SPACE||t===i.DOWN&&e.altKey)&&(n.open(),e.preventDefault())})},d.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.isDisabled()?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},d.prototype._isChangeMutation=function(e,t){var n=!1,i=this;if(!e||!e.target||"OPTION"===e.target.nodeName||"OPTGROUP"===e.target.nodeName){if(t)if(t.addedNodes&&0<t.addedNodes.length)for(var r=0;r<t.addedNodes.length;r++){t.addedNodes[r].selected&&(n=!0)}else t.removedNodes&&0<t.removedNodes.length?n=!0:o.isArray(t)&&o.each(t,function(e,t){if(i._isChangeMutation(e,t))return!(n=!0)});else n=!0;return n}},d.prototype._syncSubtree=function(e,t){var n=this._isChangeMutation(e,t),i=this;n&&this.dataAdapter.current(function(e){i.trigger("selection:update",{data:e})})},d.prototype.trigger=function(e,t){var n=d.__super__.trigger,i={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"};if(void 0===t&&(t={}),e in i){var r=i[e],o={prevented:!1,name:e,args:t};if(n.call(this,r,o),o.prevented)return void(t.prevented=!0)}n.call(this,e,t)},d.prototype.toggleDropdown=function(){this.isDisabled()||(this.isOpen()?this.close():this.open())},d.prototype.open=function(){this.isOpen()||this.isDisabled()||this.trigger("query",{})},d.prototype.close=function(e){this.isOpen()&&this.trigger("close",{originalEvent:e})},d.prototype.isEnabled=function(){return!this.isDisabled()},d.prototype.isDisabled=function(){return this.options.get("disabled")},d.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},d.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},d.prototype.focus=function(e){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},d.prototype.enable=function(e){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),null!=e&&0!==e.length||(e=[!0]);var t=!e[0];this.$element.prop("disabled",t)},d.prototype.data=function(){this.options.get("debug")&&0<arguments.length&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var t=[];return this.dataAdapter.current(function(e){t=e}),t},d.prototype.val=function(e){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==e||0===e.length)return this.$element.val();var t=e[0];o.isArray(t)&&(t=o.map(t,function(e){return e.toString()})),this.$element.val(t).trigger("input").trigger("change")},d.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",u.GetData(this.$element[0],"old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),u.RemoveData(this.$element[0]),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},d.prototype.render=function(){var e=o('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return e.attr("dir",this.options.get("dir")),this.$container=e,this.$container.addClass("select2-container--"+this.options.get("theme")),u.StoreData(e[0],"element",this.$element),e},d}),e.define("select2/compat/utils",["jquery"],function(s){return{syncCssClasses:function(e,t,n){var i,r,o=[];(i=s.trim(e.attr("class")))&&s((i=""+i).split(/\s+/)).each(function(){0===this.indexOf("select2-")&&o.push(this)}),(i=s.trim(t.attr("class")))&&s((i=""+i).split(/\s+/)).each(function(){0!==this.indexOf("select2-")&&null!=(r=n(this))&&o.push(r)}),e.attr("class",o.join(" "))}}}),e.define("select2/compat/containerCss",["jquery","./utils"],function(s,a){function l(e){return null}function e(){}return e.prototype.render=function(e){var t=e.call(this),n=this.options.get("containerCssClass")||"";s.isFunction(n)&&(n=n(this.$element));var i=this.options.get("adaptContainerCssClass");if(i=i||l,-1!==n.indexOf(":all:")){n=n.replace(":all:","");var r=i;i=function(e){var t=r(e);return null!=t?t+" "+e:e}}var o=this.options.get("containerCss")||{};return s.isFunction(o)&&(o=o(this.$element)),a.syncCssClasses(t,this.$element,i),t.css(o),t.addClass(n),t},e}),e.define("select2/compat/dropdownCss",["jquery","./utils"],function(s,a){function l(e){return null}function e(){}return e.prototype.render=function(e){var t=e.call(this),n=this.options.get("dropdownCssClass")||"";s.isFunction(n)&&(n=n(this.$element));var i=this.options.get("adaptDropdownCssClass");if(i=i||l,-1!==n.indexOf(":all:")){n=n.replace(":all:","");var r=i;i=function(e){var t=r(e);return null!=t?t+" "+e:e}}var o=this.options.get("dropdownCss")||{};return s.isFunction(o)&&(o=o(this.$element)),a.syncCssClasses(t,this.$element,i),t.css(o),t.addClass(n),t},e}),e.define("select2/compat/initSelection",["jquery"],function(i){function e(e,t,n){n.get("debug")&&window.console&&console.warn&&console.warn("Select2: The `initSelection` option has been deprecated in favor of a custom data adapter that overrides the `current` method. This method is now called multiple times instead of a single time when the instance is initialized. Support will be removed for the `initSelection` option in future versions of Select2"),this.initSelection=n.get("initSelection"),this._isInitialized=!1,e.call(this,t,n)}return e.prototype.current=function(e,t){var n=this;this._isInitialized?e.call(this,t):this.initSelection.call(null,this.$element,function(e){n._isInitialized=!0,i.isArray(e)||(e=[e]),t(e)})},e}),e.define("select2/compat/inputData",["jquery","../utils"],function(s,i){function e(e,t,n){this._currentData=[],this._valueSeparator=n.get("valueSeparator")||",","hidden"===t.prop("type")&&n.get("debug")&&console&&console.warn&&console.warn("Select2: Using a hidden input with Select2 is no longer supported and may stop working in the future. It is recommended to use a `<select>` element instead."),e.call(this,t,n)}return e.prototype.current=function(e,t){function i(e,t){var n=[];return e.selected||-1!==s.inArray(e.id,t)?(e.selected=!0,n.push(e)):e.selected=!1,e.children&&n.push.apply(n,i(e.children,t)),n}for(var n=[],r=0;r<this._currentData.length;r++){var o=this._currentData[r];n.push.apply(n,i(o,this.$element.val().split(this._valueSeparator)))}t(n)},e.prototype.select=function(e,t){if(this.options.get("multiple")){var n=this.$element.val();n+=this._valueSeparator+t.id,this.$element.val(n),this.$element.trigger("input").trigger("change")}else this.current(function(e){s.map(e,function(e){e.selected=!1})}),this.$element.val(t.id),this.$element.trigger("input").trigger("change")},e.prototype.unselect=function(e,r){var o=this;r.selected=!1,this.current(function(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];r.id!=i.id&&t.push(i.id)}o.$element.val(t.join(o._valueSeparator)),o.$element.trigger("input").trigger("change")})},e.prototype.query=function(e,t,n){for(var i=[],r=0;r<this._currentData.length;r++){var o=this._currentData[r],s=this.matches(t,o);null!==s&&i.push(s)}n({results:i})},e.prototype.addOptions=function(e,t){var n=s.map(t,function(e){return i.GetData(e[0],"data")});this._currentData.push.apply(this._currentData,n)},e}),e.define("select2/compat/matcher",["jquery"],function(s){return function(o){return function(e,t){var n=s.extend(!0,{},t);if(null==e.term||""===s.trim(e.term))return n;if(t.children){for(var i=t.children.length-1;0<=i;i--){var r=t.children[i];o(e.term,r.text,r)||n.children.splice(i,1)}if(0<n.children.length)return n}return o(e.term,t.text,t)?n:null}}}),e.define("select2/compat/query",[],function(){function e(e,t,n){n.get("debug")&&window.console&&console.warn&&console.warn("Select2: The `query` option has been deprecated in favor of a custom data adapter that overrides the `query` method. Support will be removed for the `query` option in future versions of Select2."),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.callback=n,this.options.get("query").call(null,t)},e}),e.define("select2/dropdown/attachContainer",[],function(){function e(e,t,n){e.call(this,t,n)}return e.prototype.position=function(e,t,n){n.find(".dropdown-wrapper").append(t),t.addClass("select2-dropdown--below"),n.addClass("select2-container--below")},e}),e.define("select2/dropdown/stopPropagation",[],function(){function e(){}return e.prototype.bind=function(e,t,n){e.call(this,t,n);this.$dropdown.on(["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"].join(" "),function(e){e.stopPropagation()})},e}),e.define("select2/selection/stopPropagation",[],function(){function e(){}return e.prototype.bind=function(e,t,n){e.call(this,t,n);this.$selection.on(["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"].join(" "),function(e){e.stopPropagation()})},e}),l=function(p){var h,f,e=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],t="onwheel"in document||9<=document.documentMode?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],g=Array.prototype.slice;if(p.event.fixHooks)for(var n=e.length;n;)p.event.fixHooks[e[--n]]=p.event.mouseHooks;var m=p.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var e=t.length;e;)this.addEventListener(t[--e],i,!1);else this.onmousewheel=i;p.data(this,"mousewheel-line-height",m.getLineHeight(this)),p.data(this,"mousewheel-page-height",m.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var e=t.length;e;)this.removeEventListener(t[--e],i,!1);else this.onmousewheel=null;p.removeData(this,"mousewheel-line-height"),p.removeData(this,"mousewheel-page-height")},getLineHeight:function(e){var t=p(e),n=t["offsetParent"in p.fn?"offsetParent":"parent"]();return n.length||(n=p("body")),parseInt(n.css("fontSize"),10)||parseInt(t.css("fontSize"),10)||16},getPageHeight:function(e){return p(e).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};function i(e){var t,n=e||window.event,i=g.call(arguments,1),r=0,o=0,s=0,a=0,l=0;if((e=p.event.fix(n)).type="mousewheel","detail"in n&&(s=-1*n.detail),"wheelDelta"in n&&(s=n.wheelDelta),"wheelDeltaY"in n&&(s=n.wheelDeltaY),"wheelDeltaX"in n&&(o=-1*n.wheelDeltaX),"axis"in n&&n.axis===n.HORIZONTAL_AXIS&&(o=-1*s,s=0),r=0===s?o:s,"deltaY"in n&&(r=s=-1*n.deltaY),"deltaX"in n&&(o=n.deltaX,0===s&&(r=-1*o)),0!==s||0!==o){if(1===n.deltaMode){var c=p.data(this,"mousewheel-line-height");r*=c,s*=c,o*=c}else if(2===n.deltaMode){var u=p.data(this,"mousewheel-page-height");r*=u,s*=u,o*=u}if(t=Math.max(Math.abs(s),Math.abs(o)),(!f||t<f)&&y(n,f=t)&&(f/=40),y(n,t)&&(r/=40,o/=40,s/=40),r=Math[1<=r?"floor":"ceil"](r/f),o=Math[1<=o?"floor":"ceil"](o/f),s=Math[1<=s?"floor":"ceil"](s/f),m.settings.normalizeOffset&&this.getBoundingClientRect){var d=this.getBoundingClientRect();a=e.clientX-d.left,l=e.clientY-d.top}return e.deltaX=o,e.deltaY=s,e.deltaFactor=f,e.offsetX=a,e.offsetY=l,e.deltaMode=0,i.unshift(e,r,o,s),h&&clearTimeout(h),h=setTimeout(v,200),(p.event.dispatch||p.event.handle).apply(this,i)}}function v(){f=null}function y(e,t){return m.settings.adjustOldDeltas&&"mousewheel"===e.type&&t%120==0}p.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})},"function"==typeof e.define&&e.define.amd?e.define("jquery-mousewheel",["jquery"],l):"object"==typeof exports?module.exports=l:l(d),e.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],function(r,e,o,t,s){if(null==r.fn.select2){var a=["open","close","destroy"];r.fn.select2=function(t){if("object"==typeof(t=t||{}))return this.each(function(){var e=r.extend(!0,{},t);new o(r(this),e)}),this;if("string"!=typeof t)throw new Error("Invalid arguments for Select2: "+t);var n,i=Array.prototype.slice.call(arguments,1);return this.each(function(){var e=s.GetData(this,"select2");null==e&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2."),n=e[t].apply(e,i)}),-1<r.inArray(t,a)?this:n}}return null==r.fn.select2.defaults&&(r.fn.select2.defaults=t),o}),{define:e.define,require:e.require}}(),t=e.require("jquery.select2");return d.fn.select2.amd=e,t});
|
assets/lib/select2/select2.min.css
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
.select2-container{box-sizing:border-box;display:inline-block;margin:0;position:relative;vertical-align:middle}.select2-container .select2-selection--single{box-sizing:border-box;cursor:pointer;display:block;height:28px;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--single .select2-selection__rendered{display:block;padding-left:8px;padding-right:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-selection--single .select2-selection__clear{position:relative}.select2-container[dir="rtl"] .select2-selection--single .select2-selection__rendered{padding-right:8px;padding-left:20px}.select2-container .select2-selection--multiple{box-sizing:border-box;cursor:pointer;display:block;min-height:32px;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--multiple .select2-selection__rendered{display:inline-block;overflow:hidden;padding-left:8px;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-search--inline{float:left}.select2-container .select2-search--inline .select2-search__field{box-sizing:border-box;border:none;font-size:100%;margin-top:5px;padding:0}.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-dropdown{background-color:white;border:1px solid #aaa;border-radius:4px;box-sizing:border-box;display:block;position:absolute;left:-100000px;width:100%;z-index:1051}.select2-results{display:block}.select2-results__options{list-style:none;margin:0;padding:0}.select2-results__option{padding:6px;user-select:none;-webkit-user-select:none}.select2-results__option[aria-selected]{cursor:pointer}.select2-container--open .select2-dropdown{left:0}.select2-container--open .select2-dropdown--above{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--open .select2-dropdown--below{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-search--dropdown{display:block;padding:4px}.select2-search--dropdown .select2-search__field{padding:4px;width:100%;box-sizing:border-box}.select2-search--dropdown .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-search--dropdown.select2-search--hide{display:none}.select2-close-mask{border:0;margin:0;padding:0;display:block;position:fixed;left:0;top:0;min-height:100%;min-width:100%;height:auto;width:auto;opacity:0;z-index:99;background-color:#fff;filter:alpha(opacity=0)}.select2-hidden-accessible{border:0 !important;clip:rect(0 0 0 0) !important;-webkit-clip-path:inset(50%) !important;clip-path:inset(50%) !important;height:1px !important;overflow:hidden !important;padding:0 !important;position:absolute !important;width:1px !important;white-space:nowrap !important}.select2-container--default .select2-selection--single{background-color:#fff;border:1px solid #aaa;border-radius:4px}.select2-container--default .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--default .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:bold}.select2-container--default .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--default .select2-selection--single .select2-selection__arrow{height:26px;position:absolute;top:1px;right:1px;width:20px}.select2-container--default .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__clear{float:left}.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__arrow{left:1px;right:auto}.select2-container--default.select2-container--disabled .select2-selection--single{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear{display:none}.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select2-container--default .select2-selection--multiple{background-color:white;border:1px solid #aaa;border-radius:4px;cursor:text}.select2-container--default .select2-selection--multiple .select2-selection__rendered{box-sizing:border-box;list-style:none;margin:0;padding:0 5px;width:100%}.select2-container--default .select2-selection--multiple .select2-selection__rendered li{list-style:none}.select2-container--default .select2-selection--multiple .select2-selection__clear{cursor:pointer;float:right;font-weight:bold;margin-top:5px;margin-right:10px;padding:1px}.select2-container--default .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove{color:#999;cursor:pointer;display:inline-block;font-weight:bold;margin-right:2px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover{color:#333}.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice,.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-search--inline{float:right}.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice{margin-left:5px;margin-right:auto}.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--default.select2-container--focus .select2-selection--multiple{border:solid black 1px;outline:0}.select2-container--default.select2-container--disabled .select2-selection--multiple{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection__choice__remove{display:none}.select2-container--default.select2-container--open.select2-container--above .select2-selection--single,.select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple{border-top-left-radius:0;border-top-right-radius:0}.select2-container--default.select2-container--open.select2-container--below .select2-selection--single,.select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple{border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--default .select2-search--dropdown .select2-search__field{border:1px solid #aaa}.select2-container--default .select2-search--inline .select2-search__field{background:transparent;border:none;outline:0;box-shadow:none;-webkit-appearance:textfield}.select2-container--default .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--default .select2-results__option[role=group]{padding:0}.select2-container--default .select2-results__option[aria-disabled=true]{color:#999}.select2-container--default .select2-results__option[aria-selected=true]{background-color:#ddd}.select2-container--default .select2-results__option .select2-results__option{padding-left:1em}.select2-container--default .select2-results__option .select2-results__option .select2-results__group{padding-left:0}.select2-container--default .select2-results__option .select2-results__option .select2-results__option{margin-left:-1em;padding-left:2em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-2em;padding-left:3em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-3em;padding-left:4em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-4em;padding-left:5em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-5em;padding-left:6em}.select2-container--default .select2-results__option--highlighted[aria-selected]{background-color:#5897fb;color:white}.select2-container--default .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic .select2-selection--single{background-color:#f7f7f7;border:1px solid #aaa;border-radius:4px;outline:0;background-image:-webkit-linear-gradient(top, #fff 50%, #eee 100%);background-image:-o-linear-gradient(top, #fff 50%, #eee 100%);background-image:linear-gradient(to bottom, #fff 50%, #eee 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)}.select2-container--classic .select2-selection--single:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--classic .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:bold;margin-right:10px}.select2-container--classic .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--classic .select2-selection--single .select2-selection__arrow{background-color:#ddd;border:none;border-left:1px solid #aaa;border-top-right-radius:4px;border-bottom-right-radius:4px;height:26px;position:absolute;top:1px;right:1px;width:20px;background-image:-webkit-linear-gradient(top, #eee 50%, #ccc 100%);background-image:-o-linear-gradient(top, #eee 50%, #ccc 100%);background-image:linear-gradient(to bottom, #eee 50%, #ccc 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFCCCCCC', GradientType=0)}.select2-container--classic .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__clear{float:left}.select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__arrow{border:none;border-right:1px solid #aaa;border-radius:0;border-top-left-radius:4px;border-bottom-left-radius:4px;left:1px;right:auto}.select2-container--classic.select2-container--open .select2-selection--single{border:1px solid #5897fb}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow{background:transparent;border:none}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--single{border-top:none;border-top-left-radius:0;border-top-right-radius:0;background-image:-webkit-linear-gradient(top, #fff 0%, #eee 50%);background-image:-o-linear-gradient(top, #fff 0%, #eee 50%);background-image:linear-gradient(to bottom, #fff 0%, #eee 50%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--single{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0;background-image:-webkit-linear-gradient(top, #eee 50%, #fff 100%);background-image:-o-linear-gradient(top, #eee 50%, #fff 100%);background-image:linear-gradient(to bottom, #eee 50%, #fff 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFFFFFFF', GradientType=0)}.select2-container--classic .select2-selection--multiple{background-color:white;border:1px solid #aaa;border-radius:4px;cursor:text;outline:0}.select2-container--classic .select2-selection--multiple:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--multiple .select2-selection__rendered{list-style:none;margin:0;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__clear{display:none}.select2-container--classic .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove{color:#888;cursor:pointer;display:inline-block;font-weight:bold;margin-right:2px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove:hover{color:#555}.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice{float:right;margin-left:5px;margin-right:auto}.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--classic.select2-container--open .select2-selection--multiple{border:1px solid #5897fb}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--multiple{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--multiple{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--classic .select2-search--dropdown .select2-search__field{border:1px solid #aaa;outline:0}.select2-container--classic .select2-search--inline .select2-search__field{outline:0;box-shadow:none}.select2-container--classic .select2-dropdown{background-color:#fff;border:1px solid transparent}.select2-container--classic .select2-dropdown--above{border-bottom:none}.select2-container--classic .select2-dropdown--below{border-top:none}.select2-container--classic .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--classic .select2-results__option[role=group]{padding:0}.select2-container--classic .select2-results__option[aria-disabled=true]{color:grey}.select2-container--classic .select2-results__option--highlighted[aria-selected]{background-color:#3875d7;color:#fff}.select2-container--classic .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic.select2-container--open .select2-dropdown{border-color:#5897fb}
|
changelog.txt
CHANGED
@@ -1,3 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
= 1.34.5 =
|
2 |
* Fix: Jobs list not appearing in the page load while using Firefox.
|
3 |
|
1 |
+
= 1.35.0 =
|
2 |
+
* Change: Bumped minimum WordPress version to 5.4.
|
3 |
+
* Change: Listings now expire (by default) at the end of the expiration date.
|
4 |
+
* Change: Job listing expiration checks uses the WordPress time zone.
|
5 |
+
* Change: All dates are now presented using the WordPress time zone.
|
6 |
+
* Change: Transitioned from LESS to SCSS for CSS generation. May affect final CSS generation and should be tested with theme.
|
7 |
+
* Fix: jQuery UI CSS 404s when jQuery Migrate plugin is installed.
|
8 |
+
* Fix: Pagination on job dashboard page when actions are completed.
|
9 |
+
* Fix: Application Email/URL field will give more actionable validation errors.
|
10 |
+
* Fix: Action `job_manager_job_submitted` fired when outside of standard submission flow.
|
11 |
+
* Fix: `job_manager_select2_filters_args` pollution on frontend. (@tripflex)
|
12 |
+
* Fix: `is_wpjm_page` returns true if none are defined. (@ibndawood)
|
13 |
+
* Fix: Missing variable error with cached widgets.
|
14 |
+
* Tweak: reCAPTCHA setting has more clear language. (@tripflex)
|
15 |
+
* Dev: Added filter `submit_job_form_create_account_role` for user role when created on job submission. (@tripflex)
|
16 |
+
* Dev: Added filter `job_manager_should_run_shortcode_action_handler` for if a job dashboard action should run.
|
17 |
+
* Dev: Added filter `job_manager_get_form_action` to modify the action of a frontend form. (@tripflex)
|
18 |
+
* Template update: `job-dashboard.php` with new date functions.
|
19 |
+
|
20 |
= 1.34.5 =
|
21 |
* Fix: Jobs list not appearing in the page load while using Firefox.
|
22 |
|
includes/abstracts/abstract-wp-job-manager-form.php
CHANGED
@@ -190,8 +190,19 @@ abstract class WP_Job_Manager_Form {
|
|
190 |
*/
|
191 |
public function get_action() {
|
192 |
$default_action = isset( $_SERVER['REQUEST_URI'] ) ? sanitize_text_field( wp_unslash( $_SERVER['REQUEST_URI'] ) ) : '';
|
|
|
193 |
|
194 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
195 |
}
|
196 |
|
197 |
/**
|
@@ -421,6 +432,18 @@ abstract class WP_Job_Manager_Form {
|
|
421 |
$field_type = str_replace( '-', '_', $field['type'] );
|
422 |
$handler = apply_filters( "job_manager_get_posted_{$field_type}_field", false );
|
423 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
424 |
if ( $handler ) {
|
425 |
$values[ $group_key ][ $key ] = call_user_func( $handler, $key, $field );
|
426 |
} elseif ( method_exists( $this, "get_posted_{$field_type}_field" ) ) {
|
@@ -429,7 +452,6 @@ abstract class WP_Job_Manager_Form {
|
|
429 |
$values[ $group_key ][ $key ] = $this->get_posted_field( $key, $field );
|
430 |
}
|
431 |
|
432 |
-
// Set fields value.
|
433 |
$this->fields[ $group_key ][ $key ]['value'] = $values[ $group_key ][ $key ];
|
434 |
}
|
435 |
}
|
@@ -471,17 +493,21 @@ abstract class WP_Job_Manager_Form {
|
|
471 |
$value = trim( $value );
|
472 |
|
473 |
if ( 'url' === $sanitizer ) {
|
474 |
-
return esc_url_raw( $value );
|
475 |
} elseif ( 'email' === $sanitizer ) {
|
476 |
-
|
|
|
|
|
|
|
|
|
|
|
477 |
} elseif ( 'url_or_email' === $sanitizer ) {
|
478 |
-
if (
|
479 |
-
|
480 |
-
return esc_url_raw( $value );
|
481 |
}
|
482 |
|
483 |
-
// Sanitize as
|
484 |
-
return
|
485 |
} elseif ( is_callable( $sanitizer ) ) {
|
486 |
return call_user_func( $sanitizer, $value );
|
487 |
}
|
@@ -490,6 +516,34 @@ abstract class WP_Job_Manager_Form {
|
|
490 |
return sanitize_text_field( wp_unslash( $value ) );
|
491 |
}
|
492 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
493 |
/**
|
494 |
* Gets the value of a posted field.
|
495 |
*
|
@@ -504,7 +558,13 @@ abstract class WP_Job_Manager_Form {
|
|
504 |
}
|
505 |
|
506 |
// phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized, WordPress.Security.NonceVerification -- WP_Job_Manager_Form::sanitize_posted_field handles the sanitization based on the type of data passed; nonce check happens elsewhere.
|
507 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
508 |
}
|
509 |
|
510 |
/**
|
@@ -515,8 +575,14 @@ abstract class WP_Job_Manager_Form {
|
|
515 |
* @return array
|
516 |
*/
|
517 |
protected function get_posted_multiselect_field( $key, $field ) {
|
518 |
-
// phpcs:ignore WordPress.Security.
|
519 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
520 |
}
|
521 |
|
522 |
/**
|
@@ -548,8 +614,14 @@ abstract class WP_Job_Manager_Form {
|
|
548 |
* @return string
|
549 |
*/
|
550 |
protected function get_posted_textarea_field( $key, $field ) {
|
551 |
-
// phpcs:ignore WordPress.Security.
|
552 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
553 |
}
|
554 |
|
555 |
/**
|
@@ -571,13 +643,19 @@ abstract class WP_Job_Manager_Form {
|
|
571 |
* @return array
|
572 |
*/
|
573 |
protected function get_posted_term_checklist_field( $key, $field ) {
|
|
|
|
|
574 |
// phpcs:ignore WordPress.Security.NonceVerification.Missing -- Nonce check happens earlier.
|
575 |
if ( isset( $_POST['tax_input'] ) && isset( $_POST['tax_input'][ $field['taxonomy'] ] ) ) {
|
576 |
-
// phpcs:ignore WordPress.Security.NonceVerification.Missing -- Nonce check happens earlier.
|
577 |
-
|
578 |
-
} else {
|
579 |
-
return [];
|
580 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
581 |
}
|
582 |
|
583 |
/**
|
@@ -588,8 +666,14 @@ abstract class WP_Job_Manager_Form {
|
|
588 |
* @return array
|
589 |
*/
|
590 |
protected function get_posted_term_multiselect_field( $key, $field ) {
|
591 |
-
// phpcs:ignore WordPress.Security.NonceVerification.
|
592 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
593 |
}
|
594 |
|
595 |
/**
|
@@ -600,8 +684,14 @@ abstract class WP_Job_Manager_Form {
|
|
600 |
* @return int
|
601 |
*/
|
602 |
protected function get_posted_term_select_field( $key, $field ) {
|
603 |
-
// phpcs:ignore WordPress.Security.NonceVerification.
|
604 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
605 |
}
|
606 |
|
607 |
/**
|
@@ -613,6 +703,8 @@ abstract class WP_Job_Manager_Form {
|
|
613 |
* @return string|array
|
614 |
*/
|
615 |
protected function upload_file( $field_key, $field ) {
|
|
|
|
|
616 |
if ( isset( $_FILES[ $field_key ] ) && ! empty( $_FILES[ $field_key ] ) && ! empty( $_FILES[ $field_key ]['name'] ) ) {
|
617 |
if ( ! empty( $field['allowed_mime_types'] ) ) {
|
618 |
$allowed_mime_types = $field['allowed_mime_types'];
|
@@ -640,10 +732,16 @@ abstract class WP_Job_Manager_Form {
|
|
640 |
}
|
641 |
|
642 |
if ( ! empty( $field['multiple'] ) ) {
|
643 |
-
|
644 |
} else {
|
645 |
-
|
646 |
}
|
647 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
648 |
}
|
649 |
}
|
190 |
*/
|
191 |
public function get_action() {
|
192 |
$default_action = isset( $_SERVER['REQUEST_URI'] ) ? sanitize_text_field( wp_unslash( $_SERVER['REQUEST_URI'] ) ) : '';
|
193 |
+
$action = esc_url_raw( $this->action ? $this->action : $default_action );
|
194 |
|
195 |
+
/**
|
196 |
+
* Alter form submit action URL
|
197 |
+
*
|
198 |
+
* @since 1.35.0
|
199 |
+
*
|
200 |
+
* @param string $action Form action value
|
201 |
+
* @param WP_Job_Manager_Form $this Current form class object
|
202 |
+
*
|
203 |
+
* @return string
|
204 |
+
*/
|
205 |
+
return apply_filters( 'job_manager_get_form_action', $action, $this );
|
206 |
}
|
207 |
|
208 |
/**
|
432 |
$field_type = str_replace( '-', '_', $field['type'] );
|
433 |
$handler = apply_filters( "job_manager_get_posted_{$field_type}_field", false );
|
434 |
|
435 |
+
$this->fields[ $group_key ][ $key ]['empty'] = false;
|
436 |
+
|
437 |
+
if ( ! isset( $field['before_sanitize'] ) ) {
|
438 |
+
$field['before_sanitize'] = function ( $value ) use ( $group_key, $key ) {
|
439 |
+
if ( is_string( $value ) ) {
|
440 |
+
$value = trim( $value );
|
441 |
+
}
|
442 |
+
|
443 |
+
$this->fields[ $group_key ][ $key ]['empty'] = empty( $value );
|
444 |
+
};
|
445 |
+
}
|
446 |
+
|
447 |
if ( $handler ) {
|
448 |
$values[ $group_key ][ $key ] = call_user_func( $handler, $key, $field );
|
449 |
} elseif ( method_exists( $this, "get_posted_{$field_type}_field" ) ) {
|
452 |
$values[ $group_key ][ $key ] = $this->get_posted_field( $key, $field );
|
453 |
}
|
454 |
|
|
|
455 |
$this->fields[ $group_key ][ $key ]['value'] = $values[ $group_key ][ $key ];
|
456 |
}
|
457 |
}
|
493 |
$value = trim( $value );
|
494 |
|
495 |
if ( 'url' === $sanitizer ) {
|
496 |
+
return esc_url_raw( $this->normalize_url( $value ) );
|
497 |
} elseif ( 'email' === $sanitizer ) {
|
498 |
+
$sanitized_value = sanitize_email( $value );
|
499 |
+
if ( $sanitized_value !== $value ) {
|
500 |
+
return '';
|
501 |
+
}
|
502 |
+
|
503 |
+
return $sanitized_value;
|
504 |
} elseif ( 'url_or_email' === $sanitizer ) {
|
505 |
+
if ( is_email( $value ) ) {
|
506 |
+
return sanitize_email( $value );
|
|
|
507 |
}
|
508 |
|
509 |
+
// Sanitize as URL.
|
510 |
+
return esc_url_raw( $this->normalize_url( $value ) );
|
511 |
} elseif ( is_callable( $sanitizer ) ) {
|
512 |
return call_user_func( $sanitizer, $value );
|
513 |
}
|
516 |
return sanitize_text_field( wp_unslash( $value ) );
|
517 |
}
|
518 |
|
519 |
+
/**
|
520 |
+
* Add missing schemes to assumed URLs and replace spaces with plus signs.
|
521 |
+
*
|
522 |
+
* @param string $value Assumed URL to normalize.
|
523 |
+
*
|
524 |
+
* @return string
|
525 |
+
*/
|
526 |
+
protected function normalize_url( $value ) {
|
527 |
+
if ( ! empty( $value ) && ! preg_match( '/^https?:\/\//', $value ) ) {
|
528 |
+
/**
|
529 |
+
* URL scheme to prepend when none is provided.
|
530 |
+
*
|
531 |
+
* @since 1.35.0
|
532 |
+
*
|
533 |
+
* @value string|bool $scheme Scheme to prepend (http or https). False to skip prepending scheme.
|
534 |
+
* @value string $url Assumed URL that was passed.
|
535 |
+
*/
|
536 |
+
$assumed_scheme = apply_filters( 'job_manager_form_assumed_url_scheme', 'http', $value );
|
537 |
+
if ( $assumed_scheme ) {
|
538 |
+
$value = $assumed_scheme . '://' . $value;
|
539 |
+
}
|
540 |
+
}
|
541 |
+
|
542 |
+
$value = str_replace( ' ', '+', $value );
|
543 |
+
|
544 |
+
return $value;
|
545 |
+
}
|
546 |
+
|
547 |
/**
|
548 |
* Gets the value of a posted field.
|
549 |
*
|
558 |
}
|
559 |
|
560 |
// phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized, WordPress.Security.NonceVerification -- WP_Job_Manager_Form::sanitize_posted_field handles the sanitization based on the type of data passed; nonce check happens elsewhere.
|
561 |
+
$value = isset( $_POST[ $key ] ) ? wp_unslash( $_POST[ $key ] ) : false;
|
562 |
+
|
563 |
+
if ( isset( $field['before_sanitize'] ) && is_callable( $field['before_sanitize'] ) ) {
|
564 |
+
call_user_func( $field['before_sanitize'], $value );
|
565 |
+
}
|
566 |
+
|
567 |
+
return $value ? $this->sanitize_posted_field( $value, $field['sanitizer'] ) : '';
|
568 |
}
|
569 |
|
570 |
/**
|
575 |
* @return array
|
576 |
*/
|
577 |
protected function get_posted_multiselect_field( $key, $field ) {
|
578 |
+
// phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized, WordPress.Security.NonceVerification -- Nonce check happens elsewhere.
|
579 |
+
$value = isset( $_POST[ $key ] ) ? wp_unslash( $_POST[ $key ] ) : false;
|
580 |
+
|
581 |
+
if ( isset( $field['before_sanitize'] ) && is_callable( $field['before_sanitize'] ) ) {
|
582 |
+
call_user_func( $field['before_sanitize'], $value );
|
583 |
+
}
|
584 |
+
|
585 |
+
return $value ? array_map( 'sanitize_text_field', $value ) : [];
|
586 |
}
|
587 |
|
588 |
/**
|
614 |
* @return string
|
615 |
*/
|
616 |
protected function get_posted_textarea_field( $key, $field ) {
|
617 |
+
// phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized, WordPress.Security.NonceVerification -- Nonce check happens elsewhere.
|
618 |
+
$value = isset( $_POST[ $key ] ) ? wp_unslash( $_POST[ $key ] ) : false;
|
619 |
+
|
620 |
+
if ( isset( $field['before_sanitize'] ) && is_callable( $field['before_sanitize'] ) ) {
|
621 |
+
call_user_func( $field['before_sanitize'], $value );
|
622 |
+
}
|
623 |
+
|
624 |
+
return $value ? trim( wp_kses_post( $value ) ) : '';
|
625 |
}
|
626 |
|
627 |
/**
|
643 |
* @return array
|
644 |
*/
|
645 |
protected function get_posted_term_checklist_field( $key, $field ) {
|
646 |
+
$value = false;
|
647 |
+
|
648 |
// phpcs:ignore WordPress.Security.NonceVerification.Missing -- Nonce check happens earlier.
|
649 |
if ( isset( $_POST['tax_input'] ) && isset( $_POST['tax_input'][ $field['taxonomy'] ] ) ) {
|
650 |
+
// phpcs:ignore WordPress.Security.NonceVerification.Missing, WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- Nonce check happens earlier. Sanitized below.
|
651 |
+
$value = wp_unslash( $_POST['tax_input'][ $field['taxonomy'] ] );
|
|
|
|
|
652 |
}
|
653 |
+
|
654 |
+
if ( isset( $field['before_sanitize'] ) && is_callable( $field['before_sanitize'] ) ) {
|
655 |
+
call_user_func( $field['before_sanitize'], $value );
|
656 |
+
}
|
657 |
+
|
658 |
+
return $value ? array_map( 'absint', $value ) : [];
|
659 |
}
|
660 |
|
661 |
/**
|
666 |
* @return array
|
667 |
*/
|
668 |
protected function get_posted_term_multiselect_field( $key, $field ) {
|
669 |
+
// phpcs:ignore WordPress.Security.NonceVerification, WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- Nonce check happens elsewhere. Sanitization below.
|
670 |
+
$value = isset( $_POST[ $key ] ) ? wp_unslash( $_POST[ $key ] ) : false;
|
671 |
+
|
672 |
+
if ( isset( $field['before_sanitize'] ) && is_callable( $field['before_sanitize'] ) ) {
|
673 |
+
call_user_func( $field['before_sanitize'], $value );
|
674 |
+
}
|
675 |
+
|
676 |
+
return $value ? array_map( 'absint', $value ) : [];
|
677 |
}
|
678 |
|
679 |
/**
|
684 |
* @return int
|
685 |
*/
|
686 |
protected function get_posted_term_select_field( $key, $field ) {
|
687 |
+
// phpcs:ignore WordPress.Security.NonceVerification, WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- Nonce check happens elsewhere. Sanitization below.
|
688 |
+
$value = isset( $_POST[ $key ] ) ? wp_unslash( $_POST[ $key ] ) : false;
|
689 |
+
|
690 |
+
if ( isset( $field['before_sanitize'] ) && is_callable( $field['before_sanitize'] ) ) {
|
691 |
+
call_user_func( $field['before_sanitize'], $value );
|
692 |
+
}
|
693 |
+
|
694 |
+
return $value && $value > 0 ? absint( $value ) : '';
|
695 |
}
|
696 |
|
697 |
/**
|
703 |
* @return string|array
|
704 |
*/
|
705 |
protected function upload_file( $field_key, $field ) {
|
706 |
+
$value = null;
|
707 |
+
|
708 |
if ( isset( $_FILES[ $field_key ] ) && ! empty( $_FILES[ $field_key ] ) && ! empty( $_FILES[ $field_key ]['name'] ) ) {
|
709 |
if ( ! empty( $field['allowed_mime_types'] ) ) {
|
710 |
$allowed_mime_types = $field['allowed_mime_types'];
|
732 |
}
|
733 |
|
734 |
if ( ! empty( $field['multiple'] ) ) {
|
735 |
+
$value = $file_urls;
|
736 |
} else {
|
737 |
+
$value = current( $file_urls );
|
738 |
}
|
739 |
}
|
740 |
+
|
741 |
+
if ( isset( $field['before_sanitize'] ) && is_callable( $field['before_sanitize'] ) ) {
|
742 |
+
call_user_func( $field['before_sanitize'], $value );
|
743 |
+
}
|
744 |
+
|
745 |
+
return $value;
|
746 |
}
|
747 |
}
|
includes/admin/class-wp-job-manager-admin.php
CHANGED
@@ -92,10 +92,15 @@ class WP_Job_Manager_Admin {
|
|
92 |
if ( in_array( $screen->id, apply_filters( 'job_manager_admin_screen_ids', [ 'edit-job_listing', 'plugins', 'job_listing', 'job_listing_page_job-manager-settings', 'job_listing_page_job-manager-addons' ] ), true ) ) {
|
93 |
wp_enqueue_style( 'jquery-ui' );
|
94 |
wp_enqueue_style( 'select2' );
|
95 |
-
|
|
|
|
|
|
|
96 |
wp_enqueue_script( 'wp-job-manager-datepicker' );
|
97 |
-
wp_register_script( 'jquery-tiptip', JOB_MANAGER_PLUGIN_URL . '/assets/
|
98 |
-
|
|
|
|
|
99 |
|
100 |
wp_localize_script(
|
101 |
'job_manager_admin_js',
|
@@ -115,7 +120,8 @@ class WP_Job_Manager_Admin {
|
|
115 |
);
|
116 |
}
|
117 |
|
118 |
-
|
|
|
119 |
}
|
120 |
|
121 |
/**
|
92 |
if ( in_array( $screen->id, apply_filters( 'job_manager_admin_screen_ids', [ 'edit-job_listing', 'plugins', 'job_listing', 'job_listing_page_job-manager-settings', 'job_listing_page_job-manager-addons' ] ), true ) ) {
|
93 |
wp_enqueue_style( 'jquery-ui' );
|
94 |
wp_enqueue_style( 'select2' );
|
95 |
+
|
96 |
+
WP_Job_Manager::register_style( 'job_manager_admin_css', 'css/admin.css', [] );
|
97 |
+
wp_enqueue_style( 'job_manager_admin_css' );
|
98 |
+
|
99 |
wp_enqueue_script( 'wp-job-manager-datepicker' );
|
100 |
+
wp_register_script( 'jquery-tiptip', JOB_MANAGER_PLUGIN_URL . '/assets/lib/jquery-tiptip/jquery.tipTip.min.js', [ 'jquery' ], JOB_MANAGER_VERSION, true );
|
101 |
+
|
102 |
+
WP_Job_Manager::register_script( 'job_manager_admin_js', 'js/admin.js', [ 'jquery', 'jquery-tiptip', 'select2' ], true );
|
103 |
+
wp_enqueue_script( 'job_manager_admin_js' );
|
104 |
|
105 |
wp_localize_script(
|
106 |
'job_manager_admin_js',
|
120 |
);
|
121 |
}
|
122 |
|
123 |
+
WP_Job_Manager::register_style( 'job_manager_admin_menu_css', 'css/menu.css', [] );
|
124 |
+
wp_enqueue_style( 'job_manager_admin_menu_css' );
|
125 |
}
|
126 |
|
127 |
/**
|
includes/admin/class-wp-job-manager-cpt.php
CHANGED
@@ -469,7 +469,7 @@ class WP_Job_Manager_CPT {
|
|
469 |
// translators: %1$s is the singular name of the post type; %2$s is the date the post will be published; %3$s is the URL to preview the listing.
|
470 |
__( '%1$s scheduled for: <strong>%2$s</strong>. <a target="_blank" href="%3$s">Preview</a>', 'wp-job-manager' ),
|
471 |
$wp_post_types['job_listing']->labels->singular_name,
|
472 |
-
|
473 |
esc_url( get_permalink( $post_ID ) )
|
474 |
),
|
475 |
// translators: %1$s is the singular name of the job listing post type; %2$s is the URL to view the listing.
|
@@ -608,13 +608,14 @@ class WP_Job_Manager_CPT {
|
|
608 |
}
|
609 |
break;
|
610 |
case 'job_posted':
|
611 |
-
echo '<strong>' . esc_html(
|
612 |
// translators: %s placeholder is the username of the user.
|
613 |
echo ( empty( $post->post_author ) ? esc_html__( 'by a guest', 'wp-job-manager' ) : sprintf( esc_html__( 'by %s', 'wp-job-manager' ), '<a href="' . esc_url( add_query_arg( 'author', $post->post_author ) ) . '">' . esc_html( get_the_author() ) . '</a>' ) ) . '</span>';
|
614 |
break;
|
615 |
case 'job_expires':
|
616 |
-
|
617 |
-
|
|
|
618 |
} else {
|
619 |
echo '–';
|
620 |
}
|
469 |
// translators: %1$s is the singular name of the post type; %2$s is the date the post will be published; %3$s is the URL to preview the listing.
|
470 |
__( '%1$s scheduled for: <strong>%2$s</strong>. <a target="_blank" href="%3$s">Preview</a>', 'wp-job-manager' ),
|
471 |
$wp_post_types['job_listing']->labels->singular_name,
|
472 |
+
wp_date( get_option( 'date_format' ) . ' @ ' . get_option( 'time_format' ), get_post_timestamp() ),
|
473 |
esc_url( get_permalink( $post_ID ) )
|
474 |
),
|
475 |
// translators: %1$s is the singular name of the job listing post type; %2$s is the URL to view the listing.
|
608 |
}
|
609 |
break;
|
610 |
case 'job_posted':
|
611 |
+
echo '<strong>' . esc_html( wp_date( get_option( 'date_format' ), get_post_timestamp() ) ) . '</strong><span>';
|
612 |
// translators: %s placeholder is the username of the user.
|
613 |
echo ( empty( $post->post_author ) ? esc_html__( 'by a guest', 'wp-job-manager' ) : sprintf( esc_html__( 'by %s', 'wp-job-manager' ), '<a href="' . esc_url( add_query_arg( 'author', $post->post_author ) ) . '">' . esc_html( get_the_author() ) . '</a>' ) ) . '</span>';
|
614 |
break;
|
615 |
case 'job_expires':
|
616 |
+
$job_expiration = WP_Job_Manager_Post_Types::instance()->get_job_expiration( $post );
|
617 |
+
if ( $job_expiration ) {
|
618 |
+
echo '<strong>' . esc_html( wp_date( get_option( 'date_format' ), $job_expiration->getTimestamp() ) ) . '</strong>';
|
619 |
} else {
|
620 |
echo '–';
|
621 |
}
|
includes/admin/class-wp-job-manager-settings.php
CHANGED
@@ -322,7 +322,7 @@ class WP_Job_Manager_Settings {
|
|
322 |
'placeholder' => '',
|
323 |
'label' => __( 'Site Key', 'wp-job-manager' ),
|
324 |
// translators: Placeholder %s is URL to set up Google reCAPTCHA API key.
|
325 |
-
'desc' => sprintf( __( 'You can retrieve your site key from <a href="%s">Google\'s reCAPTCHA admin dashboard</a>.', 'wp-job-manager' ), 'https://www.google.com/recaptcha/admin#list' ),
|
326 |
'attributes' => [],
|
327 |
],
|
328 |
[
|
@@ -331,7 +331,7 @@ class WP_Job_Manager_Settings {
|
|
331 |
'placeholder' => '',
|
332 |
'label' => __( 'Secret Key', 'wp-job-manager' ),
|
333 |
// translators: Placeholder %s is URL to set up Google reCAPTCHA API key.
|
334 |
-
'desc' => sprintf( __( 'You can retrieve your secret key from <a href="%s">Google\'s reCAPTCHA admin dashboard</a>.', 'wp-job-manager' ), 'https://www.google.com/recaptcha/admin#list' ),
|
335 |
'attributes' => [],
|
336 |
],
|
337 |
[
|
322 |
'placeholder' => '',
|
323 |
'label' => __( 'Site Key', 'wp-job-manager' ),
|
324 |
// translators: Placeholder %s is URL to set up Google reCAPTCHA API key.
|
325 |
+
'desc' => sprintf( __( 'You can retrieve your reCAPTCHA v2 "I\'m not a robot" Checkbox site key from <a href="%s">Google\'s reCAPTCHA admin dashboard</a>.', 'wp-job-manager' ), 'https://www.google.com/recaptcha/admin#list' ),
|
326 |
'attributes' => [],
|
327 |
],
|
328 |
[
|
331 |
'placeholder' => '',
|
332 |
'label' => __( 'Secret Key', 'wp-job-manager' ),
|
333 |
// translators: Placeholder %s is URL to set up Google reCAPTCHA API key.
|
334 |
+
'desc' => sprintf( __( 'You can retrieve your reCAPTCHA v2 "I\'m not a robot" Checkbox secret key from <a href="%s">Google\'s reCAPTCHA admin dashboard</a>.', 'wp-job-manager' ), 'https://www.google.com/recaptcha/admin#list' ),
|
335 |
'attributes' => [],
|
336 |
],
|
337 |
[
|
includes/admin/class-wp-job-manager-setup.php
CHANGED
@@ -69,7 +69,8 @@ class WP_Job_Manager_Setup {
|
|
69 |
* Enqueues scripts for setup page.
|
70 |
*/
|
71 |
public function admin_enqueue_scripts() {
|
72 |
-
|
|
|
73 |
}
|
74 |
|
75 |
/**
|
69 |
* Enqueues scripts for setup page.
|
70 |
*/
|
71 |
public function admin_enqueue_scripts() {
|
72 |
+
WP_Job_Manager::register_style( 'job_manager_setup_css', 'css/setup.css', [ 'dashicons' ] );
|
73 |
+
wp_enqueue_style( 'job_manager_setup_css' );
|
74 |
}
|
75 |
|
76 |
/**
|
includes/admin/class-wp-job-manager-writepanels.php
CHANGED
@@ -93,14 +93,17 @@ class WP_Job_Manager_Writepanels {
|
|
93 |
}
|
94 |
|
95 |
if ( isset( $fields['_job_expires'] ) && ! isset( $fields['_job_expires']['value'] ) ) {
|
96 |
-
$job_expires =
|
97 |
|
|
|
98 |
if ( ! empty( $job_expires ) ) {
|
99 |
-
$fields['_job_expires']['
|
100 |
-
$fields['_job_expires']['value'] = date( 'Y-m-d', strtotime( $job_expires ) );
|
101 |
} else {
|
102 |
-
$
|
103 |
-
$
|
|
|
|
|
|
|
104 |
}
|
105 |
}
|
106 |
|
@@ -209,27 +212,34 @@ class WP_Job_Manager_Writepanels {
|
|
209 |
* @param string $download URL to download the file.
|
210 |
*/
|
211 |
private static function file_url_field( $key, $name, $placeholder, $value, $multiple, $download = null ) {
|
212 |
-
$input_id_attribute = '';
|
213 |
-
if ( ! $multiple ) {
|
214 |
-
$input_id_attribute = 'id="' . esc_attr( $key ) . '"';
|
215 |
-
}
|
216 |
-
|
217 |
-
$download_attribute = '';
|
218 |
-
if ( null !== $download ) {
|
219 |
-
$download_attribute = ' data-download-url="' . esc_url( $download ) . '"';
|
220 |
-
}
|
221 |
-
|
222 |
$name = esc_attr( $name );
|
223 |
if ( $multiple ) {
|
224 |
$name = $name . '[]';
|
225 |
}
|
226 |
?>
|
227 |
<span class="file_url">
|
228 |
-
<input
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
229 |
<button class="button button-small wp_job_manager_upload_file_button" data-uploader_button_text="<?php esc_attr_e( 'Use file', 'wp-job-manager' ); ?>">
|
230 |
<?php esc_html_e( 'Upload', 'wp-job-manager' ); ?>
|
231 |
</button>
|
232 |
-
<button
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
233 |
<?php esc_html_e( 'View', 'wp-job-manager' ); ?>
|
234 |
</button>
|
235 |
</span>
|
@@ -595,11 +605,17 @@ class WP_Job_Manager_Writepanels {
|
|
595 |
}
|
596 |
}
|
597 |
|
598 |
-
$
|
599 |
-
if ( $
|
600 |
echo '<p class="form-field">';
|
601 |
-
|
602 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
603 |
echo '</p>';
|
604 |
}
|
605 |
|
@@ -672,7 +688,7 @@ class WP_Job_Manager_Writepanels {
|
|
672 |
}
|
673 |
}
|
674 |
|
675 |
-
//
|
676 |
if ( '_job_expires' === $key ) {
|
677 |
// phpcs:ignore WordPress.Security.NonceVerification.Missing -- Nonce check handled by WP core.
|
678 |
if ( empty( $_POST[ $key ] ) ) {
|
@@ -683,7 +699,10 @@ class WP_Job_Manager_Writepanels {
|
|
683 |
}
|
684 |
} else {
|
685 |
// phpcs:ignore WordPress.Security.NonceVerification.Missing -- Nonce check handled by WP core.
|
686 |
-
|
|
|
|
|
|
|
687 |
}
|
688 |
} elseif ( '_job_author' === $key ) {
|
689 |
// phpcs:ignore WordPress.Security.NonceVerification.Missing -- Nonce check handled by WP core.
|
@@ -703,13 +722,12 @@ class WP_Job_Manager_Writepanels {
|
|
703 |
}
|
704 |
|
705 |
/* Set Post Status To Expired If Already Expired */
|
706 |
-
$
|
707 |
-
$
|
708 |
-
$is_job_listing_expired = $expiry_date && $today_date > $expiry_date;
|
709 |
if ( $is_job_listing_expired && ! $this->is_job_listing_status_changing( null, 'draft' ) ) {
|
710 |
remove_action( 'job_manager_save_job_listing', [ $this, 'save_job_listing_data' ], 20 );
|
711 |
if ( $this->is_job_listing_status_changing( 'expired', 'publish' ) ) {
|
712 |
-
|
713 |
} else {
|
714 |
$job_data = [
|
715 |
'ID' => $post_id,
|
93 |
}
|
94 |
|
95 |
if ( isset( $fields['_job_expires'] ) && ! isset( $fields['_job_expires']['value'] ) ) {
|
96 |
+
$job_expires = WP_Job_Manager_Post_Types::instance()->get_job_expiration( $post_id );
|
97 |
|
98 |
+
$fields['_job_expires']['placeholder'] = null;
|
99 |
if ( ! empty( $job_expires ) ) {
|
100 |
+
$fields['_job_expires']['value'] = $job_expires->format( 'Y-m-d' );
|
|
|
101 |
} else {
|
102 |
+
$assumed_expiration_date = calculate_job_expiry( $post_id, true );
|
103 |
+
if ( $assumed_expiration_date ) {
|
104 |
+
$fields['_job_expires']['placeholder'] = wp_date( get_option( 'date_format' ), $assumed_expiration_date->getTimestamp() );
|
105 |
+
}
|
106 |
+
$fields['_job_expires']['value'] = '';
|
107 |
}
|
108 |
}
|
109 |
|
212 |
* @param string $download URL to download the file.
|
213 |
*/
|
214 |
private static function file_url_field( $key, $name, $placeholder, $value, $multiple, $download = null ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
215 |
$name = esc_attr( $name );
|
216 |
if ( $multiple ) {
|
217 |
$name = $name . '[]';
|
218 |
}
|
219 |
?>
|
220 |
<span class="file_url">
|
221 |
+
<input
|
222 |
+
type="text"
|
223 |
+
name="<?php echo esc_attr( $name ); ?>"
|
224 |
+
<?php
|
225 |
+
if ( ! $multiple ) {
|
226 |
+
echo 'id="' . esc_attr( $key ) . '"';
|
227 |
+
}
|
228 |
+
?>
|
229 |
+
placeholder="<?php echo esc_attr( $placeholder ); ?>"
|
230 |
+
value="<?php echo esc_attr( $value ); ?>"
|
231 |
+
/>
|
232 |
<button class="button button-small wp_job_manager_upload_file_button" data-uploader_button_text="<?php esc_attr_e( 'Use file', 'wp-job-manager' ); ?>">
|
233 |
<?php esc_html_e( 'Upload', 'wp-job-manager' ); ?>
|
234 |
</button>
|
235 |
+
<button
|
236 |
+
class="button button-small wp_job_manager_view_file_button"
|
237 |
+
<?php
|
238 |
+
if ( $download ) {
|
239 |
+
echo 'data-download-url="' . esc_url( $download ) . '"';
|
240 |
+
}
|
241 |
+
?>
|
242 |
+
>
|
243 |
<?php esc_html_e( 'View', 'wp-job-manager' ); ?>
|
244 |
</button>
|
245 |
</span>
|
605 |
}
|
606 |
}
|
607 |
|
608 |
+
$user_edited_timestamp = get_post_meta( $post->ID, '_job_edited', true );
|
609 |
+
if ( $user_edited_timestamp ) {
|
610 |
echo '<p class="form-field">';
|
611 |
+
echo '<em>';
|
612 |
+
printf(
|
613 |
+
// translators: %1$s is placeholder for singular name of the job listing post type; %2$s is the intl formatted date the listing was last modified.
|
614 |
+
esc_html__( '%1$s was last modified by the user on %2$s.', 'wp-job-manager' ),
|
615 |
+
esc_html( $wp_post_types['job_listing']->labels->singular_name ),
|
616 |
+
esc_html( wp_date( get_option( 'date_format' ), (int) $user_edited_timestamp ) )
|
617 |
+
);
|
618 |
+
echo '</em>';
|
619 |
echo '</p>';
|
620 |
}
|
621 |
|
688 |
}
|
689 |
}
|
690 |
|
691 |
+
// Expiry date.
|
692 |
if ( '_job_expires' === $key ) {
|
693 |
// phpcs:ignore WordPress.Security.NonceVerification.Missing -- Nonce check handled by WP core.
|
694 |
if ( empty( $_POST[ $key ] ) ) {
|
699 |
}
|
700 |
} else {
|
701 |
// phpcs:ignore WordPress.Security.NonceVerification.Missing -- Nonce check handled by WP core.
|
702 |
+
$input_job_expires = DateTimeImmutable::createFromFormat( 'Y-m-d', sanitize_text_field( wp_unslash( $_POST[ $key ] ) ), wp_timezone() );
|
703 |
+
if ( $input_job_expires ) {
|
704 |
+
WP_Job_Manager_Post_Types::instance()->set_job_expiration( $post_id, $input_job_expires );
|
705 |
+
}
|
706 |
}
|
707 |
} elseif ( '_job_author' === $key ) {
|
708 |
// phpcs:ignore WordPress.Security.NonceVerification.Missing -- Nonce check handled by WP core.
|
722 |
}
|
723 |
|
724 |
/* Set Post Status To Expired If Already Expired */
|
725 |
+
$post_types = WP_Job_Manager_Post_Types::instance();
|
726 |
+
$is_job_listing_expired = $post_types->has_job_expired( $post_id );
|
|
|
727 |
if ( $is_job_listing_expired && ! $this->is_job_listing_status_changing( null, 'draft' ) ) {
|
728 |
remove_action( 'job_manager_save_job_listing', [ $this, 'save_job_listing_data' ], 20 );
|
729 |
if ( $this->is_job_listing_status_changing( 'expired', 'publish' ) ) {
|
730 |
+
$post_types->set_job_expiration( $post_id, calculate_job_expiry( $post_id, true ) );
|
731 |
} else {
|
732 |
$job_data = [
|
733 |
'ID' => $post_id,
|
includes/class-wp-job-manager-email-notifications.php
CHANGED
@@ -308,9 +308,9 @@ final class WP_Job_Manager_Email_Notifications {
|
|
308 |
];
|
309 |
}
|
310 |
|
311 |
-
$job_expires =
|
312 |
if ( ! empty( $job_expires ) ) {
|
313 |
-
$job_expires_str =
|
314 |
$fields['job_expires'] = [
|
315 |
'label' => __( 'Listing expires', 'wp-job-manager' ),
|
316 |
'value' => $job_expires_str,
|
@@ -592,8 +592,9 @@ final class WP_Job_Manager_Email_Notifications {
|
|
592 |
* @param int $days_notice
|
593 |
*/
|
594 |
private static function send_expiring_notice( $email_notification_key, $days_notice ) {
|
595 |
-
$
|
596 |
-
|
|
|
597 |
[
|
598 |
'post_type' => 'job_listing',
|
599 |
'post_status' => 'publish',
|
@@ -602,7 +603,7 @@ final class WP_Job_Manager_Email_Notifications {
|
|
602 |
'meta_query' => [
|
603 |
[
|
604 |
'key' => '_job_expires',
|
605 |
-
'value' =>
|
606 |
],
|
607 |
],
|
608 |
]
|
308 |
];
|
309 |
}
|
310 |
|
311 |
+
$job_expires = WP_Job_Manager_Post_Types::instance()->get_job_expiration( $job );
|
312 |
if ( ! empty( $job_expires ) ) {
|
313 |
+
$job_expires_str = wp_date( get_option( 'date_format' ), $job_expires->getTimestamp() );
|
314 |
$fields['job_expires'] = [
|
315 |
'label' => __( 'Listing expires', 'wp-job-manager' ),
|
316 |
'value' => $job_expires_str,
|
592 |
* @param int $days_notice
|
593 |
*/
|
594 |
private static function send_expiring_notice( $email_notification_key, $days_notice ) {
|
595 |
+
$notice_before_datetime = current_datetime()->add( new DateInterval( 'P' . $days_notice . 'D' ) );
|
596 |
+
|
597 |
+
$job_ids = get_posts(
|
598 |
[
|
599 |
'post_type' => 'job_listing',
|
600 |
'post_status' => 'publish',
|
603 |
'meta_query' => [
|
604 |
[
|
605 |
'key' => '_job_expires',
|
606 |
+
'value' => $notice_before_datetime->format( 'Y-m-d' ),
|
607 |
],
|
608 |
],
|
609 |
]
|
includes/class-wp-job-manager-forms.php
CHANGED
@@ -49,7 +49,7 @@ class WP_Job_Manager_Forms {
|
|
49 |
* If a form was posted, load its class so that it can be processed before display.
|
50 |
*/
|
51 |
public function load_posted_form() {
|
52 |
-
// phpcs:ignore WordPress.Security.NonceVerification.
|
53 |
$job_manager_form = ! empty( $_REQUEST['job_manager_form'] ) ? sanitize_title( wp_unslash( $_REQUEST['job_manager_form'] ) ) : false;
|
54 |
|
55 |
if ( ! empty( $job_manager_form ) ) {
|
49 |
* If a form was posted, load its class so that it can be processed before display.
|
50 |
*/
|
51 |
public function load_posted_form() {
|
52 |
+
// phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Input is used safely.
|
53 |
$job_manager_form = ! empty( $_REQUEST['job_manager_form'] ) ? sanitize_title( wp_unslash( $_REQUEST['job_manager_form'] ) ) : false;
|
54 |
|
55 |
if ( ! empty( $job_manager_form ) ) {
|
includes/class-wp-job-manager-post-types.php
CHANGED
@@ -26,6 +26,13 @@ class WP_Job_Manager_Post_Types {
|
|
26 |
*/
|
27 |
private static $instance = null;
|
28 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
/**
|
30 |
* Allows for accessing single instance of class. Class should only be constructed once per call.
|
31 |
*
|
@@ -51,11 +58,7 @@ class WP_Job_Manager_Post_Types {
|
|
51 |
add_action( 'job_manager_check_for_expired_jobs', [ $this, 'check_for_expired_jobs' ] );
|
52 |
add_action( 'job_manager_delete_old_previews', [ $this, 'delete_old_previews' ] );
|
53 |
|
54 |
-
add_action( '
|
55 |
-
add_action( 'preview_to_publish', [ $this, 'set_expiry' ] );
|
56 |
-
add_action( 'draft_to_publish', [ $this, 'set_expiry' ] );
|
57 |
-
add_action( 'auto-draft_to_publish', [ $this, 'set_expiry' ] );
|
58 |
-
add_action( 'expired_to_publish', [ $this, 'set_expiry' ] );
|
59 |
|
60 |
add_action( 'wp_head', [ $this, 'noindex_expired_filled_job_listings' ] );
|
61 |
add_action( 'wp_footer', [ $this, 'output_structured_data' ] );
|
@@ -705,6 +708,11 @@ class WP_Job_Manager_Post_Types {
|
|
705 |
* Maintenance task to expire jobs.
|
706 |
*/
|
707 |
public function check_for_expired_jobs() {
|
|
|
|
|
|
|
|
|
|
|
708 |
// Change status to expired.
|
709 |
$job_ids = get_posts(
|
710 |
[
|
@@ -721,7 +729,7 @@ class WP_Job_Manager_Post_Types {
|
|
721 |
],
|
722 |
[
|
723 |
'key' => '_job_expires',
|
724 |
-
'value' =>
|
725 |
'compare' => '<',
|
726 |
],
|
727 |
],
|
@@ -756,7 +764,8 @@ class WP_Job_Manager_Post_Types {
|
|
756 |
*/
|
757 |
$delete_expired_jobs_days = apply_filters( 'job_manager_delete_expired_jobs_days', 30 );
|
758 |
|
759 |
-
$
|
|
|
760 |
[
|
761 |
'post_type' => 'job_listing',
|
762 |
'post_status' => 'expired',
|
@@ -764,7 +773,7 @@ class WP_Job_Manager_Post_Types {
|
|
764 |
'date_query' => [
|
765 |
[
|
766 |
'column' => 'post_modified',
|
767 |
-
'before' =>
|
768 |
],
|
769 |
],
|
770 |
'posts_per_page' => -1,
|
@@ -784,7 +793,8 @@ class WP_Job_Manager_Post_Types {
|
|
784 |
*/
|
785 |
public function delete_old_previews() {
|
786 |
// Delete old jobs stuck in preview.
|
787 |
-
$
|
|
|
788 |
[
|
789 |
'post_type' => 'job_listing',
|
790 |
'post_status' => 'preview',
|
@@ -792,7 +802,7 @@ class WP_Job_Manager_Post_Types {
|
|
792 |
'date_query' => [
|
793 |
[
|
794 |
'column' => 'post_modified',
|
795 |
-
'before' =>
|
796 |
],
|
797 |
],
|
798 |
'posts_per_page' => -1,
|
@@ -818,6 +828,63 @@ class WP_Job_Manager_Post_Types {
|
|
818 |
$this->set_expiry( $post );
|
819 |
}
|
820 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
821 |
/**
|
822 |
* Sets expiry date when job status changes.
|
823 |
*
|
@@ -828,32 +895,135 @@ class WP_Job_Manager_Post_Types {
|
|
828 |
return;
|
829 |
}
|
830 |
|
831 |
-
|
832 |
-
|
833 |
-
|
834 |
-
|
835 |
-
|
836 |
-
}
|
837 |
}
|
838 |
|
839 |
// phpcs:ignore WordPress.Security.NonceVerification.Missing -- Nonce check handled by WP core.
|
840 |
-
$input_job_expires
|
|
|
841 |
|
842 |
// See if the user has set the expiry manually.
|
843 |
-
if ( ! empty( $
|
844 |
-
|
845 |
-
} elseif ( !
|
846 |
// No manual setting? Lets generate a date if there isn't already one.
|
847 |
-
$expires = calculate_job_expiry( $post->ID );
|
848 |
-
|
|
|
849 |
|
850 |
// In case we are saving a post, ensure post data is updated so the field is not overridden.
|
851 |
if ( null !== $input_job_expires ) {
|
852 |
-
$_POST['_job_expires'] = $expires;
|
853 |
}
|
854 |
}
|
855 |
}
|
856 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
857 |
/**
|
858 |
* Displays the application content when the application method is an email.
|
859 |
*
|
@@ -1303,6 +1473,11 @@ class WP_Job_Manager_Post_Types {
|
|
1303 |
$application_method_placeholder = __( 'https://', 'wp-job-manager' );
|
1304 |
}
|
1305 |
|
|
|
|
|
|
|
|
|
|
|
1306 |
$fields = [
|
1307 |
'_job_location' => [
|
1308 |
'label' => __( 'Location', 'wp-job-manager' ),
|
@@ -1387,6 +1562,7 @@ class WP_Job_Manager_Post_Types {
|
|
1387 |
],
|
1388 |
'_job_expires' => [
|
1389 |
'label' => __( 'Listing Expiry Date', 'wp-job-manager' ),
|
|
|
1390 |
'priority' => 11,
|
1391 |
'show_in_admin' => true,
|
1392 |
'show_in_rest' => true,
|
@@ -1573,7 +1749,8 @@ class WP_Job_Manager_Post_Types {
|
|
1573 |
}
|
1574 |
|
1575 |
// Checks for valid date.
|
1576 |
-
|
|
|
1577 |
return '';
|
1578 |
}
|
1579 |
|
26 |
*/
|
27 |
private static $instance = null;
|
28 |
|
29 |
+
/**
|
30 |
+
* Job IDs that were submitted in this request.
|
31 |
+
*
|
32 |
+
* @var array
|
33 |
+
*/
|
34 |
+
private $submitted_job_ids = [];
|
35 |
+
|
36 |
/**
|
37 |
* Allows for accessing single instance of class. Class should only be constructed once per call.
|
38 |
*
|
58 |
add_action( 'job_manager_check_for_expired_jobs', [ $this, 'check_for_expired_jobs' ] );
|
59 |
add_action( 'job_manager_delete_old_previews', [ $this, 'delete_old_previews' ] );
|
60 |
|
61 |
+
add_action( 'transition_post_status', [ $this, 'transition_post_status' ], 10, 3 );
|
|
|
|
|
|
|
|
|
62 |
|
63 |
add_action( 'wp_head', [ $this, 'noindex_expired_filled_job_listings' ] );
|
64 |
add_action( 'wp_footer', [ $this, 'output_structured_data' ] );
|
708 |
* Maintenance task to expire jobs.
|
709 |
*/
|
710 |
public function check_for_expired_jobs() {
|
711 |
+
$expired_date_comparison = current_datetime();
|
712 |
+
if ( ! $this->jobs_expires_end_of_day() ) {
|
713 |
+
$expired_date_comparison = $expired_date_comparison->add( new DateInterval( 'P1D' ) );
|
714 |
+
}
|
715 |
+
|
716 |
// Change status to expired.
|
717 |
$job_ids = get_posts(
|
718 |
[
|
729 |
],
|
730 |
[
|
731 |
'key' => '_job_expires',
|
732 |
+
'value' => $expired_date_comparison->format( 'Y-m-d' ),
|
733 |
'compare' => '<',
|
734 |
],
|
735 |
],
|
764 |
*/
|
765 |
$delete_expired_jobs_days = apply_filters( 'job_manager_delete_expired_jobs_days', 30 );
|
766 |
|
767 |
+
$date_cutoff = current_datetime()->sub( new DateInterval( 'P' . $delete_expired_jobs_days . 'D' ) );
|
768 |
+
$job_ids = get_posts(
|
769 |
[
|
770 |
'post_type' => 'job_listing',
|
771 |
'post_status' => 'expired',
|
773 |
'date_query' => [
|
774 |
[
|
775 |
'column' => 'post_modified',
|
776 |
+
'before' => $date_cutoff->format( 'Y-m-d' ),
|
777 |
],
|
778 |
],
|
779 |
'posts_per_page' => -1,
|
793 |
*/
|
794 |
public function delete_old_previews() {
|
795 |
// Delete old jobs stuck in preview.
|
796 |
+
$date_cutoff = current_datetime()->sub( new DateInterval( 'P30D' ) );
|
797 |
+
$job_ids = get_posts(
|
798 |
[
|
799 |
'post_type' => 'job_listing',
|
800 |
'post_status' => 'preview',
|
802 |
'date_query' => [
|
803 |
[
|
804 |
'column' => 'post_modified',
|
805 |
+
'before' => $date_cutoff->format( 'Y-m-d' ),
|
806 |
],
|
807 |
],
|
808 |
'posts_per_page' => -1,
|
828 |
$this->set_expiry( $post );
|
829 |
}
|
830 |
|
831 |
+
/**
|
832 |
+
* Handle tasks related to transition job listing post statuses.
|
833 |
+
*
|
834 |
+
* @access private
|
835 |
+
*
|
836 |
+
* @param string $new_status The new post status.
|
837 |
+
* @param string $old_status The old post status.
|
838 |
+
* @param WP_Post $post The post object.
|
839 |
+
*/
|
840 |
+
public function transition_post_status( $new_status, $old_status, $post ) {
|
841 |
+
if ( 'job_listing' !== $post->post_type ) {
|
842 |
+
return;
|
843 |
+
}
|
844 |
+
|
845 |
+
$published_post_statuses = [ 'publish' ];
|
846 |
+
$submitted_post_statuses = [ 'publish', 'pending' ];
|
847 |
+
|
848 |
+
// If we're coming to a published post status from a non-published post status, set the expiry.
|
849 |
+
if (
|
850 |
+
'new' !== $old_status
|
851 |
+
&& in_array( $new_status, $published_post_statuses, true )
|
852 |
+
&& ! in_array( $old_status, $published_post_statuses, true )
|
853 |
+
) {
|
854 |
+
$this->set_expiry( $post );
|
855 |
+
}
|
856 |
+
|
857 |
+
// If we're transitioning to a submitted post status on a public submission, fire submitted hook.
|
858 |
+
if (
|
859 |
+
get_post_meta( $post->ID, '_public_submission', true )
|
860 |
+
&& in_array( $new_status, $submitted_post_statuses, true )
|
861 |
+
&& ! in_array( $old_status, $submitted_post_statuses, true )
|
862 |
+
) {
|
863 |
+
$this->submitted_job_ids[] = $post->ID;
|
864 |
+
|
865 |
+
add_action( 'shutdown', [ $this, 'ensure_job_submission_action_triggered' ], 1 );
|
866 |
+
}
|
867 |
+
|
868 |
+
}
|
869 |
+
|
870 |
+
/**
|
871 |
+
* Ensures jobs that are submitted on the frontend always have the job submitted action fired.
|
872 |
+
*
|
873 |
+
* @access private
|
874 |
+
*/
|
875 |
+
public function ensure_job_submission_action_triggered() {
|
876 |
+
foreach ( $this->submitted_job_ids as $job_id ) {
|
877 |
+
if ( get_post_meta( $job_id, '_public_submission', true ) ) {
|
878 |
+
delete_post_meta( $job_id, '_public_submission' );
|
879 |
+
|
880 |
+
/** This action is documented in includes/forms/class-wp-job-manager-form-submit-job.php */
|
881 |
+
do_action( 'job_manager_job_submitted', $job_id );
|
882 |
+
}
|
883 |
+
}
|
884 |
+
|
885 |
+
$this->submitted_job_ids = [];
|
886 |
+
}
|
887 |
+
|
888 |
/**
|
889 |
* Sets expiry date when job status changes.
|
890 |
*
|
895 |
return;
|
896 |
}
|
897 |
|
898 |
+
$expiration_date = $this->get_job_expiration( $post );
|
899 |
+
|
900 |
+
// Clear the expiration field if it has expired.
|
901 |
+
if ( $this->has_job_expired( $post ) ) {
|
902 |
+
$this->set_job_expiration( $post, null );
|
|
|
903 |
}
|
904 |
|
905 |
// phpcs:ignore WordPress.Security.NonceVerification.Missing -- Nonce check handled by WP core.
|
906 |
+
$input_job_expires = isset( $_POST['_job_expires'] ) ? sanitize_text_field( wp_unslash( $_POST['_job_expires'] ) ) : null;
|
907 |
+
$input_job_expires_datetime = DateTimeImmutable::createFromFormat( 'Y-m-d', $input_job_expires, wp_timezone() );
|
908 |
|
909 |
// See if the user has set the expiry manually.
|
910 |
+
if ( ! empty( $input_job_expires_datetime ) ) {
|
911 |
+
$this->set_job_expiration( $post, $input_job_expires_datetime );
|
912 |
+
} elseif ( ! $expiration_date ) {
|
913 |
// No manual setting? Lets generate a date if there isn't already one.
|
914 |
+
$expires = calculate_job_expiry( $post->ID, true );
|
915 |
+
|
916 |
+
$this->set_job_expiration( $post, $expires );
|
917 |
|
918 |
// In case we are saving a post, ensure post data is updated so the field is not overridden.
|
919 |
if ( null !== $input_job_expires ) {
|
920 |
+
$_POST['_job_expires'] = $expires ? $expires->format( 'Y-m-d' ) : '';
|
921 |
}
|
922 |
}
|
923 |
}
|
924 |
|
925 |
+
/**
|
926 |
+
* Set the job expiration date.
|
927 |
+
*
|
928 |
+
* @param WP_Post|int $job Job post object or ID.
|
929 |
+
* @param DateTimeImmutable $date_expires Date time object for the job expiration date. Null if to be cleared.
|
930 |
+
*
|
931 |
+
* @return false
|
932 |
+
* @throws TypeError When bad argument is passed to `$date_expires`.
|
933 |
+
*/
|
934 |
+
public function set_job_expiration( $job, $date_expires ) {
|
935 |
+
$job = get_post( $job );
|
936 |
+
|
937 |
+
if ( 'job_listing' !== $job->post_type ) {
|
938 |
+
return false;
|
939 |
+
}
|
940 |
+
|
941 |
+
if ( null === $date_expires ) {
|
942 |
+
update_post_meta( $job->ID, '_job_expires', '' );
|
943 |
+
} elseif ( $date_expires instanceof DateTimeImmutable ) {
|
944 |
+
update_post_meta( $job->ID, '_job_expires', $date_expires->format( 'Y-m-d' ) );
|
945 |
+
} else {
|
946 |
+
throw new TypeError( sprintf( 'The `$date_expires` argument passed to %s must be an instance of DateTimeImmutable or null', __METHOD__ ) );
|
947 |
+
}
|
948 |
+
}
|
949 |
+
|
950 |
+
/**
|
951 |
+
* Get the job expiration date object.
|
952 |
+
*
|
953 |
+
* @param int|WP_Post $job Job post object or ID.
|
954 |
+
*
|
955 |
+
* @return false|DateTimeImmutable
|
956 |
+
*/
|
957 |
+
public function get_job_expiration( $job ) {
|
958 |
+
$job = get_post( $job );
|
959 |
+
|
960 |
+
if ( 'job_listing' !== $job->post_type ) {
|
961 |
+
return false;
|
962 |
+
}
|
963 |
+
|
964 |
+
$job_expires = false;
|
965 |
+
|
966 |
+
if ( metadata_exists( 'post', $job->ID, '_job_expires' ) ) {
|
967 |
+
$expires_str = get_post_meta( $job->ID, '_job_expires', true );
|
968 |
+
|
969 |
+
$job_expires = DateTimeImmutable::createFromFormat( 'Y-m-d', $expires_str, wp_timezone() );
|
970 |
+
}
|
971 |
+
|
972 |
+
if ( $job_expires ) {
|
973 |
+
$job_expires = $this->prepare_job_expires_time( $job_expires );
|
974 |
+
}
|
975 |
+
|
976 |
+
return $job_expires;
|
977 |
+
}
|
978 |
+
|
979 |
+
/**
|
980 |
+
* Prepare a job expiration date time object by normalizing the time
|
981 |
+
*
|
982 |
+
* @param DateTimeImmutable $job_expires Job object.
|
983 |
+
*
|
984 |
+
* @return DateTimeImmutable
|
985 |
+
*/
|
986 |
+
public function prepare_job_expires_time( DateTimeImmutable $job_expires ) {
|
987 |
+
if ( $this->jobs_expires_end_of_day() ) {
|
988 |
+
return $job_expires->setTime( 23, 59, 59 );
|
989 |
+
}
|
990 |
+
|
991 |
+
return $job_expires->setTime( 0, 0 );
|
992 |
+
}
|
993 |
+
|
994 |
+
/**
|
995 |
+
* Check if jobs should expire at the end of the day. If not, they'll expire at the start of the day.
|
996 |
+
*
|
997 |
+
* @return bool
|
998 |
+
*/
|
999 |
+
private function jobs_expires_end_of_day() {
|
1000 |
+
/**
|
1001 |
+
* Override if a job expires at the end of the day instead of start of the day.
|
1002 |
+
*
|
1003 |
+
* @since 1.35.0
|
1004 |
+
*
|
1005 |
+
* @param bool $end_of_day True if the job expires at the end of the day; otherwise it will end at the start of the day.
|
1006 |
+
*/
|
1007 |
+
return apply_filters( 'job_manager_jobs_expire_end_of_day', true );
|
1008 |
+
}
|
1009 |
+
|
1010 |
+
/**
|
1011 |
+
* Check if a job has expired.
|
1012 |
+
*
|
1013 |
+
* @param int|WP_Post $job Job post object or ID.
|
1014 |
+
*
|
1015 |
+
* @return bool
|
1016 |
+
*/
|
1017 |
+
public function has_job_expired( $job ) {
|
1018 |
+
$expiration = $this->get_job_expiration( $job );
|
1019 |
+
|
1020 |
+
if ( ! $expiration ) {
|
1021 |
+
return false;
|
1022 |
+
}
|
1023 |
+
|
1024 |
+
return $expiration->getTimestamp() < current_datetime()->getTimestamp();
|
1025 |
+
}
|
1026 |
+
|
1027 |
/**
|
1028 |
* Displays the application content when the application method is an email.
|
1029 |
*
|
1473 |
$application_method_placeholder = __( 'https://', 'wp-job-manager' );
|
1474 |
}
|
1475 |
|
1476 |
+
$job_expires_description = __( 'Job listing expires at the end of the day.', 'wp-job-manager' );
|
1477 |
+
if ( ! self::instance()->jobs_expires_end_of_day() ) {
|
1478 |
+
$job_expires_description = __( 'Job listing expires at the start of the day.', 'wp-job-manager' );
|
1479 |
+
}
|
1480 |
+
|
1481 |
$fields = [
|
1482 |
'_job_location' => [
|
1483 |
'label' => __( 'Location', 'wp-job-manager' ),
|
1562 |
],
|
1563 |
'_job_expires' => [
|
1564 |
'label' => __( 'Listing Expiry Date', 'wp-job-manager' ),
|
1565 |
+
'description' => $job_expires_description,
|
1566 |
'priority' => 11,
|
1567 |
'show_in_admin' => true,
|
1568 |
'show_in_rest' => true,
|
1749 |
}
|
1750 |
|
1751 |
// Checks for valid date.
|
1752 |
+
$test_date = DateTimeImmutable::createFromFormat( 'Y-m-d', $meta_value, wp_timezone() );
|
1753 |
+
if ( ! $test_date || $test_date->format( 'Y-m-d' ) !== $meta_value ) {
|
1754 |
return '';
|
1755 |
}
|
1756 |
|
includes/class-wp-job-manager-shortcodes.php
CHANGED
@@ -73,13 +73,13 @@ class WP_Job_Manager_Shortcodes {
|
|
73 |
}
|
74 |
|
75 |
/**
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
private function is_job_dashboard_page() {
|
84 |
global $post;
|
85 |
|
@@ -94,7 +94,16 @@ class WP_Job_Manager_Shortcodes {
|
|
94 |
* Handles actions which need to be run before the shortcode e.g. post actions.
|
95 |
*/
|
96 |
public function shortcode_action_handler() {
|
97 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
98 |
$this->job_dashboard_handler();
|
99 |
}
|
100 |
}
|
@@ -546,8 +555,8 @@ class WP_Job_Manager_Shortcodes {
|
|
546 |
$disable_client_state = true;
|
547 |
}
|
548 |
if ( ! empty( $_GET['search_location'] ) ) {
|
549 |
-
$atts['location']
|
550 |
-
$disable_client_state
|
551 |
}
|
552 |
if ( ! empty( $_GET['search_category'] ) ) {
|
553 |
$atts['selected_category'] = sanitize_text_field( wp_unslash( $_GET['search_category'] ) );
|
73 |
}
|
74 |
|
75 |
/**
|
76 |
+
* Helper function used to check if page is WPJM dashboard page.
|
77 |
+
*
|
78 |
+
* Checks if page has 'job_dashboard' shortcode.
|
79 |
+
*
|
80 |
+
* @access private
|
81 |
+
* @return bool True if page is dashboard page, false otherwise.
|
82 |
+
*/
|
83 |
private function is_job_dashboard_page() {
|
84 |
global $post;
|
85 |
|
94 |
* Handles actions which need to be run before the shortcode e.g. post actions.
|
95 |
*/
|
96 |
public function shortcode_action_handler() {
|
97 |
+
/**
|
98 |
+
* Determine if the shortcode action handler should run.
|
99 |
+
*
|
100 |
+
* @since 1.35.0
|
101 |
+
*
|
102 |
+
* @param bool $should_run_handler Should the handler run.
|
103 |
+
*/
|
104 |
+
$should_run_handler = apply_filters( 'job_manager_should_run_shortcode_action_handler', $this->is_job_dashboard_page() );
|
105 |
+
|
106 |
+
if ( $should_run_handler ) {
|
107 |
$this->job_dashboard_handler();
|
108 |
}
|
109 |
}
|
555 |
$disable_client_state = true;
|
556 |
}
|
557 |
if ( ! empty( $_GET['search_location'] ) ) {
|
558 |
+
$atts['location'] = sanitize_text_field( wp_unslash( $_GET['search_location'] ) );
|
559 |
+
$disable_client_state = true;
|
560 |
}
|
561 |
if ( ! empty( $_GET['search_category'] ) ) {
|
562 |
$atts['selected_category'] = sanitize_text_field( wp_unslash( $_GET['search_category'] ) );
|
includes/class-wp-job-manager-usage-tracking.php
CHANGED
@@ -289,11 +289,7 @@ class WP_Job_Manager_Usage_Tracking extends WP_Job_Manager_Usage_Tracking_Base {
|
|
289 |
*/
|
290 |
public function opt_in_checkbox_text() {
|
291 |
return sprintf(
|
292 |
-
|
293 |
-
/*
|
294 |
-
* translators: the href tag contains the URL for the page
|
295 |
-
* telling users what data WPJM tracks.
|
296 |
-
*/
|
297 |
__(
|
298 |
'Help us make WP Job Manager better by allowing us to collect
|
299 |
<a href="%s">usage tracking data</a>.
|
289 |
*/
|
290 |
public function opt_in_checkbox_text() {
|
291 |
return sprintf(
|
292 |
+
// translators: the href tag contains the URL for the page telling users what data WPJM tracks.
|
|
|
|
|
|
|
|
|
293 |
__(
|
294 |
'Help us make WP Job Manager better by allowing us to collect
|
295 |
<a href="%s">usage tracking data</a>.
|
includes/class-wp-job-manager-widget.php
CHANGED
@@ -102,6 +102,12 @@ class WP_Job_Manager_Widget extends WP_Widget {
|
|
102 |
* @param string $content
|
103 |
*/
|
104 |
public function cache_widget( $args, $content ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
105 |
$cache[ $args['widget_id'] ] = $content;
|
106 |
|
107 |
wp_cache_set( $this->widget_id, $cache, 'widget' );
|
102 |
* @param string $content
|
103 |
*/
|
104 |
public function cache_widget( $args, $content ) {
|
105 |
+
$cache = wp_cache_get( $this->widget_id, 'widget' );
|
106 |
+
|
107 |
+
if ( ! is_array( $cache ) ) {
|
108 |
+
$cache = [];
|
109 |
+
}
|
110 |
+
|
111 |
$cache[ $args['widget_id'] ] = $content;
|
112 |
|
113 |
wp_cache_set( $this->widget_id, $cache, 'widget' );
|
includes/class-wp-job-manager.php
CHANGED
@@ -251,18 +251,83 @@ class WP_Job_Manager {
|
|
251 |
global $wp_scripts;
|
252 |
|
253 |
$jquery_version = isset( $wp_scripts->registered['jquery-ui-core']->ver ) ? $wp_scripts->registered['jquery-ui-core']->ver : '1.9.2';
|
|
|
254 |
wp_register_style( 'jquery-ui', '//code.jquery.com/ui/' . $jquery_version . '/themes/smoothness/jquery-ui.min.css', [], $jquery_version );
|
255 |
|
256 |
// Register datepicker JS. It will be enqueued if needed when a date field is used.
|
257 |
-
|
258 |
}
|
259 |
|
260 |
/**
|
261 |
* Registers select2 assets when needed.
|
262 |
*/
|
263 |
public static function register_select2_assets() {
|
264 |
-
wp_register_script( 'select2', JOB_MANAGER_PLUGIN_URL . '/assets/
|
265 |
-
wp_register_style( 'select2', JOB_MANAGER_PLUGIN_URL . '/assets/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
266 |
}
|
267 |
|
268 |
/**
|
@@ -318,8 +383,8 @@ class WP_Job_Manager {
|
|
318 |
|
319 |
// Register the script for dependencies that still require it.
|
320 |
if ( ! wp_script_is( 'chosen', 'registered' ) ) {
|
321 |
-
wp_register_script( 'chosen', JOB_MANAGER_PLUGIN_URL . '/assets/
|
322 |
-
wp_register_style( 'chosen', JOB_MANAGER_PLUGIN_URL . '/assets/
|
323 |
}
|
324 |
|
325 |
// Backwards compatibility for third-party themes/plugins while they transition to Select2.
|
@@ -365,8 +430,8 @@ class WP_Job_Manager {
|
|
365 |
*/
|
366 |
if ( apply_filters( 'job_manager_enhanced_select_enabled', $enhanced_select_used_on_page ) ) {
|
367 |
self::register_select2_assets();
|
368 |
-
|
369 |
-
|
370 |
wp_enqueue_style( 'select2' );
|
371 |
|
372 |
$ajax_filter_deps[] = 'select2';
|
@@ -386,9 +451,10 @@ class WP_Job_Manager {
|
|
386 |
}
|
387 |
|
388 |
if ( job_manager_user_can_upload_file_via_ajax() ) {
|
389 |
-
wp_register_script( 'jquery-iframe-transport', JOB_MANAGER_PLUGIN_URL . '/assets/
|
390 |
-
wp_register_script( 'jquery-fileupload', JOB_MANAGER_PLUGIN_URL . '/assets/
|
391 |
-
|
|
|
392 |
|
393 |
ob_start();
|
394 |
get_job_manager_template(
|
@@ -424,13 +490,30 @@ class WP_Job_Manager {
|
|
424 |
);
|
425 |
}
|
426 |
|
427 |
-
wp_register_script( 'jquery-deserialize', JOB_MANAGER_PLUGIN_URL . '/assets/
|
428 |
-
|
429 |
-
|
430 |
-
|
431 |
-
|
432 |
wp_localize_script( 'wp-job-manager-ajax-filters', 'job_manager_ajax_filters', $ajax_data );
|
433 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
434 |
wp_localize_script(
|
435 |
'wp-job-manager-job-submission',
|
436 |
'job_manager_job_submission',
|
@@ -481,9 +564,11 @@ class WP_Job_Manager {
|
|
481 |
* @param bool $is_frontend_style_enabled
|
482 |
*/
|
483 |
if ( apply_filters( 'job_manager_enqueue_frontend_style', is_wpjm() ) ) {
|
484 |
-
|
|
|
485 |
} else {
|
486 |
-
|
|
|
487 |
}
|
488 |
}
|
489 |
}
|
251 |
global $wp_scripts;
|
252 |
|
253 |
$jquery_version = isset( $wp_scripts->registered['jquery-ui-core']->ver ) ? $wp_scripts->registered['jquery-ui-core']->ver : '1.9.2';
|
254 |
+
$jquery_version = preg_replace( '/-wp/', '', $jquery_version );
|
255 |
wp_register_style( 'jquery-ui', '//code.jquery.com/ui/' . $jquery_version . '/themes/smoothness/jquery-ui.min.css', [], $jquery_version );
|
256 |
|
257 |
// Register datepicker JS. It will be enqueued if needed when a date field is used.
|
258 |
+
self::register_script( 'wp-job-manager-datepicker', 'js/datepicker.js', [ 'jquery', 'jquery-ui-datepicker' ], true );
|
259 |
}
|
260 |
|
261 |
/**
|
262 |
* Registers select2 assets when needed.
|
263 |
*/
|
264 |
public static function register_select2_assets() {
|
265 |
+
wp_register_script( 'select2', JOB_MANAGER_PLUGIN_URL . '/assets/lib/select2/select2.full.min.js', [ 'jquery' ], '4.0.10', false );
|
266 |
+
wp_register_style( 'select2', JOB_MANAGER_PLUGIN_URL . '/assets/lib/select2/select2.min.css', [], '4.0.10' );
|
267 |
+
}
|
268 |
+
|
269 |
+
/**
|
270 |
+
* Register a built script file.
|
271 |
+
*
|
272 |
+
* @param string $script_handle The script handle to register.
|
273 |
+
* @param string $script_path The script path within the assets/dist directory.
|
274 |
+
* @param array $dependencies The script dependencies. If set, this will override what is included in the `[script].asset.php` file.
|
275 |
+
* @param bool $in_footer Whether to enqueue the script before </body> instead of in the <head>.
|
276 |
+
*
|
277 |
+
* @return bool
|
278 |
+
*/
|
279 |
+
public static function register_script( $script_handle, $script_path, $dependencies = null, $in_footer = false ) {
|
280 |
+
$script_asset_path = realpath(
|
281 |
+
JOB_MANAGER_PLUGIN_DIR . '/assets/dist/' .
|
282 |
+
substr_replace( $script_path, '.asset.php', - strlen( '.js' ) )
|
283 |
+
);
|
284 |
+
|
285 |
+
if ( ! file_exists( $script_asset_path ) ) {
|
286 |
+
return false;
|
287 |
+
}
|
288 |
+
|
289 |
+
$script_asset = require $script_asset_path;
|
290 |
+
$result = wp_register_script(
|
291 |
+
$script_handle,
|
292 |
+
JOB_MANAGER_PLUGIN_URL . '/assets/dist/' . $script_path,
|
293 |
+
null !== $dependencies ? $dependencies : $script_asset['dependencies'],
|
294 |
+
$script_asset['version'],
|
295 |
+
$in_footer
|
296 |
+
);
|
297 |
+
|
298 |
+
return $result;
|
299 |
+
}
|
300 |
+
|
301 |
+
/**
|
302 |
+
* Register a built stylesheet file.
|
303 |
+
*
|
304 |
+
* @param string $style_handle The stylesheet handle to register.
|
305 |
+
* @param string $style_path The stylesheet path within the assets/dist directory.
|
306 |
+
* @param array $dependencies The script dependencies. If set, this will override what is included in the `[script].asset.php` file.
|
307 |
+
* @param string $media The media for which this stylesheet has been defined.
|
308 |
+
*
|
309 |
+
* @return bool
|
310 |
+
*/
|
311 |
+
public static function register_style( $style_handle, $style_path, $dependencies = null, $media = 'all' ) {
|
312 |
+
$script_asset_path = realpath(
|
313 |
+
JOB_MANAGER_PLUGIN_DIR . '/assets/dist/' .
|
314 |
+
substr_replace( $style_path, '.asset.php', - strlen( '.css' ) )
|
315 |
+
);
|
316 |
+
|
317 |
+
if ( ! file_exists( $script_asset_path ) ) {
|
318 |
+
return false;
|
319 |
+
}
|
320 |
+
|
321 |
+
$script_asset = require $script_asset_path;
|
322 |
+
$result = wp_register_style(
|
323 |
+
$style_handle,
|
324 |
+
JOB_MANAGER_PLUGIN_URL . '/assets/dist/' . $style_path,
|
325 |
+
null !== $dependencies ? $dependencies : $script_asset['dependencies'],
|
326 |
+
$script_asset['version'],
|
327 |
+
$media
|
328 |
+
);
|
329 |
+
|
330 |
+
return $result;
|
331 |
}
|
332 |
|
333 |
/**
|
383 |
|
384 |
// Register the script for dependencies that still require it.
|
385 |
if ( ! wp_script_is( 'chosen', 'registered' ) ) {
|
386 |
+
wp_register_script( 'chosen', JOB_MANAGER_PLUGIN_URL . '/assets/lib/jquery-chosen/chosen.jquery.min.js', [ 'jquery' ], '1.1.0', true );
|
387 |
+
wp_register_style( 'chosen', JOB_MANAGER_PLUGIN_URL . '/assets/lib/jquery-chosen/chosen.css', [], '1.1.0' );
|
388 |
}
|
389 |
|
390 |
// Backwards compatibility for third-party themes/plugins while they transition to Select2.
|
430 |
*/
|
431 |
if ( apply_filters( 'job_manager_enhanced_select_enabled', $enhanced_select_used_on_page ) ) {
|
432 |
self::register_select2_assets();
|
433 |
+
self::register_script( 'wp-job-manager-term-multiselect', 'js/term-multiselect.js', [ 'jquery', 'select2' ], true );
|
434 |
+
self::register_script( 'wp-job-manager-multiselect', 'js/multiselect.js', [ 'jquery', 'select2' ], true );
|
435 |
wp_enqueue_style( 'select2' );
|
436 |
|
437 |
$ajax_filter_deps[] = 'select2';
|
451 |
}
|
452 |
|
453 |
if ( job_manager_user_can_upload_file_via_ajax() ) {
|
454 |
+
wp_register_script( 'jquery-iframe-transport', JOB_MANAGER_PLUGIN_URL . '/assets/lib/jquery-fileupload/jquery.iframe-transport.js', [ 'jquery' ], '10.1.0', true );
|
455 |
+
wp_register_script( 'jquery-fileupload', JOB_MANAGER_PLUGIN_URL . '/assets/lib/jquery-fileupload/jquery.fileupload.js', [ 'jquery', 'jquery-iframe-transport', 'jquery-ui-widget' ], '10.1.0', true );
|
456 |
+
|
457 |
+
self::register_script( 'wp-job-manager-ajax-file-upload', 'js/ajax-file-upload.js', [ 'jquery', 'jquery-fileupload' ], true );
|
458 |
|
459 |
ob_start();
|
460 |
get_job_manager_template(
|
490 |
);
|
491 |
}
|
492 |
|
493 |
+
wp_register_script( 'jquery-deserialize', JOB_MANAGER_PLUGIN_URL . '/assets/lib/jquery-deserialize/jquery.deserialize.js', [ 'jquery' ], '1.2.1', true );
|
494 |
+
self::register_script( 'wp-job-manager-ajax-filters', 'js/ajax-filters.js', $ajax_filter_deps, true );
|
495 |
+
self::register_script( 'wp-job-manager-job-dashboard', 'js/job-dashboard.js', [ 'jquery' ], true );
|
496 |
+
self::register_script( 'wp-job-manager-job-application', 'js/job-application.js', [ 'jquery' ], true );
|
497 |
+
self::register_script( 'wp-job-manager-job-submission', 'js/job-submission.js', [ 'jquery' ], true );
|
498 |
wp_localize_script( 'wp-job-manager-ajax-filters', 'job_manager_ajax_filters', $ajax_data );
|
499 |
|
500 |
+
if ( isset( $select2_args ) ) {
|
501 |
+
$select2_filters_args = array_merge(
|
502 |
+
$select2_args,
|
503 |
+
[
|
504 |
+
'allowClear' => true,
|
505 |
+
'minimumResultsForSearch' => 10,
|
506 |
+
'placeholder' => __( 'Any Category', 'wp-job-manager' ),
|
507 |
+
]
|
508 |
+
);
|
509 |
+
|
510 |
+
wp_localize_script(
|
511 |
+
'select2',
|
512 |
+
'job_manager_select2_filters_args',
|
513 |
+
apply_filters( 'job_manager_select2_filters_args', $select2_filters_args )
|
514 |
+
);
|
515 |
+
}
|
516 |
+
|
517 |
wp_localize_script(
|
518 |
'wp-job-manager-job-submission',
|
519 |
'job_manager_job_submission',
|
564 |
* @param bool $is_frontend_style_enabled
|
565 |
*/
|
566 |
if ( apply_filters( 'job_manager_enqueue_frontend_style', is_wpjm() ) ) {
|
567 |
+
self::register_style( 'wp-job-manager-frontend', 'css/frontend.css', [] );
|
568 |
+
wp_enqueue_style( 'wp-job-manager-frontend' );
|
569 |
} else {
|
570 |
+
self::register_style( 'wp-job-manager-job-listings', 'css/job-listings.css', [] );
|
571 |
+
wp_enqueue_style( 'wp-job-manager-job-listings' );
|
572 |
}
|
573 |
}
|
574 |
}
|
includes/emails/class-wp-job-manager-email-employer-expiring-job.php
CHANGED
@@ -109,9 +109,9 @@ class WP_Job_Manager_Email_Employer_Expiring_Job extends WP_Job_Manager_Email_Te
|
|
109 |
|
110 |
if ( isset( $args['job'] ) ) {
|
111 |
$args['expiring_today'] = false;
|
112 |
-
$today =
|
113 |
-
$expiring_date =
|
114 |
-
if ( ! empty( $args['job']->_job_expires ) && $today === $expiring_date ) {
|
115 |
$args['expiring_today'] = true;
|
116 |
}
|
117 |
}
|
109 |
|
110 |
if ( isset( $args['job'] ) ) {
|
111 |
$args['expiring_today'] = false;
|
112 |
+
$today = wp_date( 'Y-m-d' );
|
113 |
+
$expiring_date = WP_Job_Manager_Post_Types::instance()->get_job_expiration( $args['job'] );
|
114 |
+
if ( ! empty( $args['job']->_job_expires ) && $today === $expiring_date->format( 'Y-m-d' ) ) {
|
115 |
$args['expiring_today'] = true;
|
116 |
}
|
117 |
}
|
includes/forms/class-wp-job-manager-form-submit-job.php
CHANGED
@@ -341,7 +341,7 @@ class WP_Job_Manager_Form_Submit_Job extends WP_Job_Manager_Form {
|
|
341 |
/**
|
342 |
* Force application field to skip email / URL validation.
|
343 |
*
|
344 |
-
* @since 1.
|
345 |
*
|
346 |
* @param bool $is_forced Whether the application field is forced to skip email / URL validation.
|
347 |
*/
|
@@ -358,7 +358,11 @@ class WP_Job_Manager_Form_Submit_Job extends WP_Job_Manager_Form {
|
|
358 |
protected function validate_fields( $values ) {
|
359 |
foreach ( $this->fields as $group_key => $group_fields ) {
|
360 |
foreach ( $group_fields as $key => $field ) {
|
361 |
-
if (
|
|
|
|
|
|
|
|
|
362 |
// translators: Placeholder %s is the label for the required field.
|
363 |
return new WP_Error( 'validation-error', sprintf( __( '%s is a required field', 'wp-job-manager' ), $field['label'] ) );
|
364 |
}
|
@@ -451,31 +455,32 @@ class WP_Job_Manager_Form_Submit_Job extends WP_Job_Manager_Form {
|
|
451 |
}
|
452 |
|
453 |
// Application method.
|
454 |
-
if ( ! $this->should_application_field_skip_email_url_validation() && isset( $values['job']['application'] )
|
455 |
-
$allowed_application_method
|
456 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
457 |
switch ( $allowed_application_method ) {
|
458 |
case 'email':
|
459 |
-
if ( ! is_email( $values['job']['application'] ) ) {
|
460 |
throw new Exception( __( 'Please enter a valid application email address', 'wp-job-manager' ) );
|
461 |
}
|
462 |
break;
|
463 |
case 'url':
|
464 |
-
|
465 |
-
if ( ! strstr( $values['job']['application'], 'http:' ) && ! strstr( $values['job']['application'], 'https:' ) ) {
|
466 |
-
$values['job']['application'] = 'http://' . $values['job']['application'];
|
467 |
-
}
|
468 |
-
if ( ! filter_var( $values['job']['application'], FILTER_VALIDATE_URL ) ) {
|
469 |
throw new Exception( __( 'Please enter a valid application URL', 'wp-job-manager' ) );
|
470 |
}
|
471 |
break;
|
472 |
default:
|
473 |
if ( ! is_email( $values['job']['application'] ) ) {
|
474 |
-
|
475 |
-
if ( ! strstr( $values['job']['application'], 'http:' ) && ! strstr( $values['job']['application'], 'https:' ) ) {
|
476 |
-
$values['job']['application'] = 'http://' . $values['job']['application'];
|
477 |
-
}
|
478 |
-
if ( ! filter_var( $values['job']['application'], FILTER_VALIDATE_URL ) ) {
|
479 |
throw new Exception( __( 'Please enter a valid application email address or URL', 'wp-job-manager' ) );
|
480 |
}
|
481 |
}
|
@@ -500,7 +505,9 @@ class WP_Job_Manager_Form_Submit_Job extends WP_Job_Manager_Form {
|
|
500 |
*/
|
501 |
protected function enqueue_job_form_assets() {
|
502 |
wp_enqueue_script( 'wp-job-manager-job-submission' );
|
503 |
-
|
|
|
|
|
504 |
}
|
505 |
|
506 |
/**
|
@@ -538,6 +545,10 @@ class WP_Job_Manager_Form_Submit_Job extends WP_Job_Manager_Form {
|
|
538 |
$job = get_post( $this->job_id );
|
539 |
foreach ( $this->fields as $group_key => $group_fields ) {
|
540 |
foreach ( $group_fields as $key => $field ) {
|
|
|
|
|
|
|
|
|
541 |
switch ( $key ) {
|
542 |
case 'job_title':
|
543 |
$this->fields[ $group_key ][ $key ]['value'] = $job->post_title;
|
@@ -687,7 +698,16 @@ class WP_Job_Manager_Form_Submit_Job extends WP_Job_Manager_Form {
|
|
687 |
'username' => ( job_manager_generate_username_from_email() || empty( $input_create_account_username ) ) ? '' : $input_create_account_username,
|
688 |
'password' => ( wpjm_use_standard_password_setup_email() || empty( $input_create_account_password ) ) ? '' : $input_create_account_password,
|
689 |
'email' => sanitize_text_field( wp_unslash( $input_create_account_email ) ),
|
690 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
691 |
]
|
692 |
);
|
693 |
}
|
@@ -713,6 +733,9 @@ class WP_Job_Manager_Form_Submit_Job extends WP_Job_Manager_Form {
|
|
713 |
$this->save_job( $values['job']['job_title'], $values['job']['job_description'], $post_status, $values );
|
714 |
$this->update_job_data( $values );
|
715 |
|
|
|
|
|
|
|
716 |
if ( $this->job_id ) {
|
717 |
// Reset the `_filled` flag.
|
718 |
update_post_meta( $this->job_id, '_filled', 0 );
|
@@ -1071,6 +1094,15 @@ class WP_Job_Manager_Form_Submit_Job extends WP_Job_Manager_Form {
|
|
1071 |
* Handles the job submissions before the view is called.
|
1072 |
*/
|
1073 |
public function done_before() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1074 |
do_action( 'job_manager_job_submitted', $this->job_id );
|
1075 |
}
|
1076 |
|
341 |
/**
|
342 |
* Force application field to skip email / URL validation.
|
343 |
*
|
344 |
+
* @since 1.34.2
|
345 |
*
|
346 |
* @param bool $is_forced Whether the application field is forced to skip email / URL validation.
|
347 |
*/
|
358 |
protected function validate_fields( $values ) {
|
359 |
foreach ( $this->fields as $group_key => $group_fields ) {
|
360 |
foreach ( $group_fields as $key => $field ) {
|
361 |
+
if (
|
362 |
+
$field['required']
|
363 |
+
&& empty( $values[ $group_key ][ $key ] )
|
364 |
+
&& ( ! isset( $field['empty'] ) || $field['empty'] )
|
365 |
+
) {
|
366 |
// translators: Placeholder %s is the label for the required field.
|
367 |
return new WP_Error( 'validation-error', sprintf( __( '%s is a required field', 'wp-job-manager' ), $field['label'] ) );
|
368 |
}
|
455 |
}
|
456 |
|
457 |
// Application method.
|
458 |
+
if ( ! $this->should_application_field_skip_email_url_validation() && isset( $values['job']['application'] ) ) {
|
459 |
+
$allowed_application_method = get_option( 'job_manager_allowed_application_method', '' );
|
460 |
+
|
461 |
+
$is_valid = true;
|
462 |
+
|
463 |
+
// phpcs:ignore WordPress.Security.NonceVerification.Missing -- Nonce checked earlier when required.
|
464 |
+
$posted_value = isset( $_POST['application'] ) ? sanitize_text_field( wp_unslash( $_POST['application'] ) ) : false;
|
465 |
+
if ( $posted_value && empty( $values['job']['application'] ) ) {
|
466 |
+
$is_valid = false;
|
467 |
+
$this->fields['job']['application']['value'] = $posted_value;
|
468 |
+
}
|
469 |
+
|
470 |
switch ( $allowed_application_method ) {
|
471 |
case 'email':
|
472 |
+
if ( ! $is_valid || ! is_email( $values['job']['application'] ) ) {
|
473 |
throw new Exception( __( 'Please enter a valid application email address', 'wp-job-manager' ) );
|
474 |
}
|
475 |
break;
|
476 |
case 'url':
|
477 |
+
if ( ! $is_valid || ! filter_var( $values['job']['application'], FILTER_VALIDATE_URL ) ) {
|
|
|
|
|
|
|
|
|
478 |
throw new Exception( __( 'Please enter a valid application URL', 'wp-job-manager' ) );
|
479 |
}
|
480 |
break;
|
481 |
default:
|
482 |
if ( ! is_email( $values['job']['application'] ) ) {
|
483 |
+
if ( ! $is_valid || ! filter_var( $values['job']['application'], FILTER_VALIDATE_URL ) ) {
|
|
|
|
|
|
|
|
|
484 |
throw new Exception( __( 'Please enter a valid application email address or URL', 'wp-job-manager' ) );
|
485 |
}
|
486 |
}
|
505 |
*/
|
506 |
protected function enqueue_job_form_assets() {
|
507 |
wp_enqueue_script( 'wp-job-manager-job-submission' );
|
508 |
+
|
509 |
+
WP_Job_Manager::register_style( 'wp-job-manager-job-submission', 'css/job-submission.css', [] );
|
510 |
+
wp_enqueue_style( 'wp-job-manager-job-submission' );
|
511 |
}
|
512 |
|
513 |
/**
|
545 |
$job = get_post( $this->job_id );
|
546 |
foreach ( $this->fields as $group_key => $group_fields ) {
|
547 |
foreach ( $group_fields as $key => $field ) {
|
548 |
+
if ( isset( $this->fields[ $group_key ][ $key ]['value'] ) ) {
|
549 |
+
continue;
|
550 |
+
}
|
551 |
+
|
552 |
switch ( $key ) {
|
553 |
case 'job_title':
|
554 |
$this->fields[ $group_key ][ $key ]['value'] = $job->post_title;
|
698 |
'username' => ( job_manager_generate_username_from_email() || empty( $input_create_account_username ) ) ? '' : $input_create_account_username,
|
699 |
'password' => ( wpjm_use_standard_password_setup_email() || empty( $input_create_account_password ) ) ? '' : $input_create_account_password,
|
700 |
'email' => sanitize_text_field( wp_unslash( $input_create_account_email ) ),
|
701 |
+
/**
|
702 |
+
* Allow customization of new user creation role
|
703 |
+
*
|
704 |
+
* @param string $role New user registration role (pulled from 'job_manager_registration_role' option)
|
705 |
+
* @param array $values Submitted input values.
|
706 |
+
* @param WP_Job_Manager_Form_Submit_Job $this Current class object
|
707 |
+
*
|
708 |
+
* @since 1.35.0
|
709 |
+
*/
|
710 |
+
'role' => apply_filters( 'submit_job_form_create_account_role', get_option( 'job_manager_registration_role' ), $values, $this ),
|
711 |
]
|
712 |
);
|
713 |
}
|
733 |
$this->save_job( $values['job']['job_title'], $values['job']['job_description'], $post_status, $values );
|
734 |
$this->update_job_data( $values );
|
735 |
|
736 |
+
// Mark this job as a public submission so the submission hook is fired.
|
737 |
+
update_post_meta( $this->job_id, '_public_submission', true );
|
738 |
+
|
739 |
if ( $this->job_id ) {
|
740 |
// Reset the `_filled` flag.
|
741 |
update_post_meta( $this->job_id, '_filled', 0 );
|
1094 |
* Handles the job submissions before the view is called.
|
1095 |
*/
|
1096 |
public function done_before() {
|
1097 |
+
delete_post_meta( $this->job_id, '_public_submission' );
|
1098 |
+
|
1099 |
+
/**
|
1100 |
+
* Trigger job submission action.
|
1101 |
+
*
|
1102 |
+
* @since 1.0.0
|
1103 |
+
*
|
1104 |
+
* @param int $job_id The job ID.
|
1105 |
+
*/
|
1106 |
do_action( 'job_manager_job_submitted', $this->job_id );
|
1107 |
}
|
1108 |
|
languages/wp-job-manager.pot
CHANGED
@@ -1,37 +1,55 @@
|
|
1 |
-
# Copyright (C)
|
2 |
-
# This file is distributed under the
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: WP Job Manager 1.
|
6 |
-
"Report-Msgid-Bugs-To: https://
|
7 |
-
"
|
|
|
8 |
"MIME-Version: 1.0\n"
|
9 |
-
"Content-Type: text/plain; charset=
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
11 |
-
"
|
12 |
-
"
|
13 |
-
"
|
14 |
-
"X-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
|
16 |
#: includes/3rd-party/wpml.php:94
|
17 |
msgid "Page Not Set"
|
18 |
msgstr ""
|
19 |
|
|
|
20 |
#: includes/3rd-party/wpml.php:108
|
21 |
-
#. translators: Placeholder (%s) is the URL to edit the primary language in
|
22 |
-
#. WPML.
|
23 |
msgid "<a href=\"%s\">Switch to primary language</a> to edit this setting."
|
24 |
msgstr ""
|
25 |
|
26 |
-
#: includes/abstracts/abstract-wp-job-manager-form.php:378
|
27 |
-
#: includes/abstracts/abstract-wp-job-manager-form.php:394
|
28 |
#. translators: Placeholder is for the label of the reCAPTCHA field.
|
29 |
#. translators: %s is the name of the form validation that failed.
|
|
|
|
|
30 |
msgid "\"%s\" check failed. Please try again."
|
31 |
msgstr ""
|
32 |
|
33 |
#: includes/admin/class-wp-job-manager-addons.php:125
|
34 |
-
#: includes/admin/class-wp-job-manager-admin.php:
|
35 |
#: includes/admin/views/html-admin-page-addons.php:12
|
36 |
msgid "WP Job Manager Add-ons"
|
37 |
msgstr ""
|
@@ -49,59 +67,81 @@ msgstr ""
|
|
49 |
msgid "You don’t have permission to do this."
|
50 |
msgstr ""
|
51 |
|
52 |
-
#: includes/admin/class-wp-job-manager-admin.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
msgid "Settings"
|
54 |
msgstr ""
|
55 |
|
56 |
-
#: includes/admin/class-wp-job-manager-admin.php:
|
57 |
msgid "Add-ons"
|
58 |
msgstr ""
|
59 |
|
|
|
60 |
#: includes/admin/class-wp-job-manager-cpt.php:81
|
61 |
-
#. translators: Placeholder (%s) is the plural name of the job listings post
|
62 |
-
#. type.
|
63 |
msgid "Approve %s"
|
64 |
msgstr ""
|
65 |
|
|
|
66 |
#: includes/admin/class-wp-job-manager-cpt.php:83
|
67 |
-
#. translators: Placeholder (%s) is the plural name of the job listings post
|
68 |
-
#. type.
|
69 |
msgid "%s approved"
|
70 |
msgstr ""
|
71 |
|
|
|
72 |
#: includes/admin/class-wp-job-manager-cpt.php:88
|
73 |
-
#. translators: Placeholder (%s) is the plural name of the job listings post
|
74 |
-
#. type.
|
75 |
msgid "Expire %s"
|
76 |
msgstr ""
|
77 |
|
|
|
78 |
#: includes/admin/class-wp-job-manager-cpt.php:90
|
79 |
-
#. translators: Placeholder (%s) is the plural name of the job listings post
|
80 |
-
#. type.
|
81 |
msgid "%s expired"
|
82 |
msgstr ""
|
83 |
|
|
|
84 |
#: includes/admin/class-wp-job-manager-cpt.php:95
|
85 |
-
#. translators: Placeholder (%s) is the plural name of the job listings post
|
86 |
-
#. type.
|
87 |
msgid "Mark %s Filled"
|
88 |
msgstr ""
|
89 |
|
|
|
90 |
#: includes/admin/class-wp-job-manager-cpt.php:97
|
91 |
-
#. translators: Placeholder (%s) is the plural name of the job listings post
|
92 |
-
#. type.
|
93 |
msgid "%s marked as filled"
|
94 |
msgstr ""
|
95 |
|
|
|
96 |
#: includes/admin/class-wp-job-manager-cpt.php:102
|
97 |
-
#. translators: Placeholder (%s) is the plural name of the job listings post
|
98 |
-
#. type.
|
99 |
msgid "Mark %s Not Filled"
|
100 |
msgstr ""
|
101 |
|
|
|
102 |
#: includes/admin/class-wp-job-manager-cpt.php:104
|
103 |
-
#. translators: Placeholder (%s) is the plural name of the job listings post
|
104 |
-
#. type.
|
105 |
msgid "%s marked as not filled"
|
106 |
msgstr ""
|
107 |
|
@@ -138,12 +178,12 @@ msgstr ""
|
|
138 |
msgid "Position"
|
139 |
msgstr ""
|
140 |
|
|
|
141 |
#: includes/admin/class-wp-job-manager-cpt.php:455
|
142 |
-
#. translators: %1$s is the singular name of the job listing post type; %2$s is
|
143 |
-
#. the URL to view the listing.
|
144 |
msgid "%1$s updated. <a href=\"%2$s\">View</a>"
|
145 |
msgstr ""
|
146 |
|
|
|
147 |
#: includes/admin/class-wp-job-manager-cpt.php:456
|
148 |
msgid "Custom field updated."
|
149 |
msgstr ""
|
@@ -152,46 +192,38 @@ msgstr ""
|
|
152 |
msgid "Custom field deleted."
|
153 |
msgstr ""
|
154 |
|
155 |
-
#: includes/admin/class-wp-job-manager-cpt.php:459
|
156 |
#. translators: %s is the singular name of the job listing post type.
|
|
|
157 |
msgid "%s updated."
|
158 |
msgstr ""
|
159 |
|
|
|
160 |
#: includes/admin/class-wp-job-manager-cpt.php:461
|
161 |
-
#. translators: %1$s is the singular name of the job listing post type; %2$s is
|
162 |
-
#. the revision number.
|
163 |
msgid "%1$s restored to revision from %2$s"
|
164 |
msgstr ""
|
165 |
|
|
|
166 |
#: includes/admin/class-wp-job-manager-cpt.php:463
|
167 |
-
#. translators: %1$s is the singular name of the job listing post type; %2$s is
|
168 |
-
#. the URL to view the listing.
|
169 |
msgid "%1$s published. <a href=\"%2$s\">View</a>"
|
170 |
msgstr ""
|
171 |
|
|
|
172 |
#: includes/admin/class-wp-job-manager-cpt.php:465
|
173 |
-
#. translators: %1$s is the singular name of the job listing post type; %2$s is
|
174 |
-
#. the URL to view the listing.
|
175 |
msgid "%s saved."
|
176 |
msgstr ""
|
177 |
|
|
|
178 |
#: includes/admin/class-wp-job-manager-cpt.php:467
|
179 |
-
#. translators: %1$s is the singular name of the job listing post type; %2$s is
|
180 |
-
#. the URL to preview the listing.
|
181 |
msgid "%1$s submitted. <a target=\"_blank\" href=\"%2$s\">Preview</a>"
|
182 |
msgstr ""
|
183 |
|
|
|
184 |
#: includes/admin/class-wp-job-manager-cpt.php:470
|
185 |
-
|
186 |
-
#. the post will be published; %3$s is the URL to preview the listing.
|
187 |
-
msgid ""
|
188 |
-
"%1$s scheduled for: <strong>%2$s</strong>. <a target=\"_blank\" "
|
189 |
-
"href=\"%3$s\">Preview</a>"
|
190 |
msgstr ""
|
191 |
|
|
|
192 |
#: includes/admin/class-wp-job-manager-cpt.php:476
|
193 |
-
#. translators: %1$s is the singular name of the job listing post type; %2$s is
|
194 |
-
#. the URL to view the listing.
|
195 |
msgid "%1$s draft updated. <a target=\"_blank\" href=\"%2$s\">Preview</a>"
|
196 |
msgstr ""
|
197 |
|
@@ -201,10 +233,11 @@ msgstr ""
|
|
201 |
|
202 |
#: includes/admin/class-wp-job-manager-cpt.php:497
|
203 |
#: includes/class-wp-job-manager-email-notifications.php:270
|
204 |
-
#: includes/class-wp-job-manager-post-types.php:
|
205 |
#: includes/forms/class-wp-job-manager-form-submit-job.php:217
|
206 |
#: includes/widgets/class-wp-job-manager-widget-recent-jobs.php:46
|
207 |
-
#: templates/job-filters.php:35
|
|
|
208 |
msgid "Location"
|
209 |
msgstr ""
|
210 |
|
@@ -230,7 +263,7 @@ msgid "Featured?"
|
|
230 |
msgstr ""
|
231 |
|
232 |
#: includes/admin/class-wp-job-manager-cpt.php:503
|
233 |
-
#: includes/class-wp-job-manager-shortcodes.php:
|
234 |
msgid "Filled?"
|
235 |
msgstr ""
|
236 |
|
@@ -238,8 +271,8 @@ msgstr ""
|
|
238 |
msgid "Actions"
|
239 |
msgstr ""
|
240 |
|
241 |
-
#: includes/admin/class-wp-job-manager-cpt.php:569
|
242 |
#. translators: %d is the post ID for the job listing.
|
|
|
243 |
msgid "ID: %d"
|
244 |
msgstr ""
|
245 |
|
@@ -247,34 +280,36 @@ msgstr ""
|
|
247 |
msgid "Show more details"
|
248 |
msgstr ""
|
249 |
|
250 |
-
#: includes/admin/class-wp-job-manager-cpt.php:613
|
251 |
#. translators: %s placeholder is the username of the user.
|
|
|
252 |
msgid "by a guest"
|
253 |
msgstr ""
|
254 |
|
|
|
255 |
#: includes/admin/class-wp-job-manager-cpt.php:613
|
256 |
msgid "by %s"
|
257 |
msgstr ""
|
258 |
|
259 |
-
#: includes/admin/class-wp-job-manager-cpt.php:
|
260 |
msgid "Approve"
|
261 |
msgstr ""
|
262 |
|
263 |
-
#: includes/admin/class-wp-job-manager-cpt.php:
|
264 |
-
#: includes/admin/class-wp-job-manager-writepanels.php:
|
265 |
-
#: includes/admin/class-wp-job-manager-writepanels.php:
|
266 |
msgid "View"
|
267 |
msgstr ""
|
268 |
|
269 |
-
|
270 |
-
#: includes/class-wp-job-manager-
|
271 |
-
#: includes/class-wp-job-manager-
|
272 |
-
#: includes/class-wp-job-manager-shortcodes.php:
|
|
|
273 |
msgid "Edit"
|
274 |
msgstr ""
|
275 |
|
276 |
-
#: includes/admin/class-wp-job-manager-cpt.php:
|
277 |
-
#: includes/class-wp-job-manager-shortcodes.php:
|
278 |
msgid "Delete"
|
279 |
msgstr ""
|
280 |
|
@@ -294,6 +329,24 @@ msgstr ""
|
|
294 |
msgid "Job listing archive page"
|
295 |
msgstr ""
|
296 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
297 |
#: includes/admin/class-wp-job-manager-settings.php:89
|
298 |
msgid "General"
|
299 |
msgstr ""
|
@@ -303,9 +356,7 @@ msgid "Date Format"
|
|
303 |
msgstr ""
|
304 |
|
305 |
#: includes/admin/class-wp-job-manager-settings.php:95
|
306 |
-
msgid ""
|
307 |
-
"Choose how you want the published date for jobs to be displayed on the "
|
308 |
-
"front-end."
|
309 |
msgstr ""
|
310 |
|
311 |
#: includes/admin/class-wp-job-manager-settings.php:98
|
@@ -320,12 +371,9 @@ msgstr ""
|
|
320 |
msgid "Google Maps API Key"
|
321 |
msgstr ""
|
322 |
|
323 |
-
#: includes/admin/class-wp-job-manager-settings.php:107
|
324 |
#. translators: Placeholder %s is URL to set up a Google Maps API key.
|
325 |
-
|
326 |
-
"Google requires an API key to retrieve location information for job "
|
327 |
-
"listings. Acquire an API key from the <a href=\"%s\">Google Maps API "
|
328 |
-
"developer site</a>."
|
329 |
msgstr ""
|
330 |
|
331 |
#: includes/admin/class-wp-job-manager-settings.php:113
|
@@ -333,14 +381,12 @@ msgid "Delete Data On Uninstall"
|
|
333 |
msgstr ""
|
334 |
|
335 |
#: includes/admin/class-wp-job-manager-settings.php:114
|
336 |
-
msgid ""
|
337 |
-
"Delete WP Job Manager data when the plugin is deleted. Once removed, this "
|
338 |
-
"data cannot be restored."
|
339 |
msgstr ""
|
340 |
|
341 |
#: includes/admin/class-wp-job-manager-settings.php:122
|
342 |
-
#: includes/class-wp-job-manager-post-types.php:
|
343 |
-
#: includes/class-wp-job-manager-post-types.php:
|
344 |
msgid "Job Listings"
|
345 |
msgstr ""
|
346 |
|
@@ -385,10 +431,7 @@ msgid "Hide content in expired single job listings"
|
|
385 |
msgstr ""
|
386 |
|
387 |
#: includes/admin/class-wp-job-manager-settings.php:155
|
388 |
-
msgid ""
|
389 |
-
"Your site will display the titles of expired listings, but not the content "
|
390 |
-
"of the listings. Otherwise, expired listings display their full content "
|
391 |
-
"minus the application area."
|
392 |
msgstr ""
|
393 |
|
394 |
#: includes/admin/class-wp-job-manager-settings.php:163
|
@@ -396,9 +439,7 @@ msgid "Enable listing categories"
|
|
396 |
msgstr ""
|
397 |
|
398 |
#: includes/admin/class-wp-job-manager-settings.php:164
|
399 |
-
msgid ""
|
400 |
-
"This lets users select from a list of categories when submitting a job. "
|
401 |
-
"Note: an admin has to create categories before site users can select them."
|
402 |
msgstr ""
|
403 |
|
404 |
#: includes/admin/class-wp-job-manager-settings.php:171
|
@@ -410,10 +451,7 @@ msgid "Default to category multiselect"
|
|
410 |
msgstr ""
|
411 |
|
412 |
#: includes/admin/class-wp-job-manager-settings.php:173
|
413 |
-
msgid ""
|
414 |
-
"The category selection box will default to allowing multiple selections on "
|
415 |
-
"the [jobs] shortcode. Without this, visitors will only be able to select a "
|
416 |
-
"single category when filtering jobs."
|
417 |
msgstr ""
|
418 |
|
419 |
#: includes/admin/class-wp-job-manager-settings.php:180
|
@@ -421,9 +459,7 @@ msgid "Category Filter Type"
|
|
421 |
msgstr ""
|
422 |
|
423 |
#: includes/admin/class-wp-job-manager-settings.php:181
|
424 |
-
msgid ""
|
425 |
-
"Determines the logic used to display jobs when selecting multiple "
|
426 |
-
"categories."
|
427 |
msgstr ""
|
428 |
|
429 |
#: includes/admin/class-wp-job-manager-settings.php:184
|
@@ -443,9 +479,7 @@ msgid "Enable listing types"
|
|
443 |
msgstr ""
|
444 |
|
445 |
#: includes/admin/class-wp-job-manager-settings.php:193
|
446 |
-
msgid ""
|
447 |
-
"This lets users select from a list of types when submitting a job. Note: an "
|
448 |
-
"admin has to create types before site users can select them."
|
449 |
msgstr ""
|
450 |
|
451 |
#: includes/admin/class-wp-job-manager-settings.php:200
|
@@ -457,10 +491,7 @@ msgid "Allow multiple types for listings"
|
|
457 |
msgstr ""
|
458 |
|
459 |
#: includes/admin/class-wp-job-manager-settings.php:202
|
460 |
-
msgid ""
|
461 |
-
"This allows users to select more than one type when submitting a job. The "
|
462 |
-
"metabox on the post editor and the selection box on the front-end job "
|
463 |
-
"submission form will both reflect this."
|
464 |
msgstr ""
|
465 |
|
466 |
#: includes/admin/class-wp-job-manager-settings.php:209
|
@@ -488,10 +519,7 @@ msgid "Enable account creation during submission"
|
|
488 |
msgstr ""
|
489 |
|
490 |
#: includes/admin/class-wp-job-manager-settings.php:225
|
491 |
-
msgid ""
|
492 |
-
"Includes account creation on the listing submission form, to allow "
|
493 |
-
"non-registered users to create an account and submit a job listing "
|
494 |
-
"simultaneously."
|
495 |
msgstr ""
|
496 |
|
497 |
#: includes/admin/class-wp-job-manager-settings.php:232
|
@@ -503,10 +531,7 @@ msgid "Generate usernames from email addresses"
|
|
503 |
msgstr ""
|
504 |
|
505 |
#: includes/admin/class-wp-job-manager-settings.php:234
|
506 |
-
msgid ""
|
507 |
-
"Automatically generates usernames for new accounts from the registrant's "
|
508 |
-
"email address. If this is not enabled, a \"username\" field will display "
|
509 |
-
"instead."
|
510 |
msgstr ""
|
511 |
|
512 |
#: includes/admin/class-wp-job-manager-settings.php:241
|
@@ -518,10 +543,7 @@ msgid "Email new users a link to set a password"
|
|
518 |
msgstr ""
|
519 |
|
520 |
#: includes/admin/class-wp-job-manager-settings.php:243
|
521 |
-
msgid ""
|
522 |
-
"Sends an email to the user with their username and a link to set their "
|
523 |
-
"password. If this is not enabled, a \"password\" field will display "
|
524 |
-
"instead, and their email address won't be verified."
|
525 |
msgstr ""
|
526 |
|
527 |
#: includes/admin/class-wp-job-manager-settings.php:250
|
@@ -529,10 +551,7 @@ msgid "Account Role"
|
|
529 |
msgstr ""
|
530 |
|
531 |
#: includes/admin/class-wp-job-manager-settings.php:251
|
532 |
-
msgid ""
|
533 |
-
"Any new accounts created during submission will have this role. If you "
|
534 |
-
"haven't enabled account creation during submission in the options above, "
|
535 |
-
"your own method of assigning roles will apply."
|
536 |
msgstr ""
|
537 |
|
538 |
#: includes/admin/class-wp-job-manager-settings.php:258
|
@@ -544,9 +563,7 @@ msgid "Require admin approval of all new listing submissions"
|
|
544 |
msgstr ""
|
545 |
|
546 |
#: includes/admin/class-wp-job-manager-settings.php:260
|
547 |
-
msgid ""
|
548 |
-
"Sets all new submissions to \"pending.\" They will not appear on your site "
|
549 |
-
"until an admin approves them."
|
550 |
msgstr ""
|
551 |
|
552 |
#: includes/admin/class-wp-job-manager-settings.php:267
|
@@ -558,9 +575,7 @@ msgid "Allow editing of pending listings"
|
|
558 |
msgstr ""
|
559 |
|
560 |
#: includes/admin/class-wp-job-manager-settings.php:269
|
561 |
-
msgid ""
|
562 |
-
"Users can continue to edit pending listings until they are approved by an "
|
563 |
-
"admin."
|
564 |
msgstr ""
|
565 |
|
566 |
#: includes/admin/class-wp-job-manager-settings.php:276
|
@@ -572,10 +587,7 @@ msgid "Allow editing of published listings"
|
|
572 |
msgstr ""
|
573 |
|
574 |
#: includes/admin/class-wp-job-manager-settings.php:278
|
575 |
-
msgid ""
|
576 |
-
"Choose whether published job listings can be edited and if edits require "
|
577 |
-
"admin approval. When moderation is required, the original job listings will "
|
578 |
-
"be unpublished while edits await admin approval."
|
579 |
msgstr ""
|
580 |
|
581 |
#: includes/admin/class-wp-job-manager-settings.php:281
|
@@ -595,9 +607,7 @@ msgid "Listing Duration"
|
|
595 |
msgstr ""
|
596 |
|
597 |
#: includes/admin/class-wp-job-manager-settings.php:291
|
598 |
-
msgid ""
|
599 |
-
"Listings will display for the set number of days, then expire. Leave this "
|
600 |
-
"field blank if you don't want listings to have an expiration date."
|
601 |
msgstr ""
|
602 |
|
603 |
#: includes/admin/class-wp-job-manager-settings.php:297
|
@@ -605,9 +615,7 @@ msgid "Application Method"
|
|
605 |
msgstr ""
|
606 |
|
607 |
#: includes/admin/class-wp-job-manager-settings.php:298
|
608 |
-
msgid ""
|
609 |
-
"Choose the application method job listers will need to provide. Specify URL "
|
610 |
-
"or email address only, or allow listers to choose which they prefer."
|
611 |
msgstr ""
|
612 |
|
613 |
#: includes/admin/class-wp-job-manager-settings.php:301
|
@@ -642,22 +650,18 @@ msgstr ""
|
|
642 |
msgid "Site Key"
|
643 |
msgstr ""
|
644 |
|
645 |
-
#: includes/admin/class-wp-job-manager-settings.php:325
|
646 |
#. translators: Placeholder %s is URL to set up Google reCAPTCHA API key.
|
647 |
-
|
648 |
-
"You can retrieve your site key from <a href=\"%s\">Google's reCAPTCHA admin "
|
649 |
-
"dashboard</a>."
|
650 |
msgstr ""
|
651 |
|
652 |
#: includes/admin/class-wp-job-manager-settings.php:332
|
653 |
msgid "Secret Key"
|
654 |
msgstr ""
|
655 |
|
656 |
-
#: includes/admin/class-wp-job-manager-settings.php:334
|
657 |
#. translators: Placeholder %s is URL to set up Google reCAPTCHA API key.
|
658 |
-
|
659 |
-
"You can retrieve your secret key from <a href=\"%s\">Google's reCAPTCHA "
|
660 |
-
"admin dashboard</a>."
|
661 |
msgstr ""
|
662 |
|
663 |
#: includes/admin/class-wp-job-manager-settings.php:340
|
@@ -669,9 +673,7 @@ msgid "Display a reCAPTCHA field on job submission form."
|
|
669 |
msgstr ""
|
670 |
|
671 |
#: includes/admin/class-wp-job-manager-settings.php:342
|
672 |
-
msgid ""
|
673 |
-
"This will help prevent bots from submitting job listings. You must have "
|
674 |
-
"entered a valid site key and secret key above."
|
675 |
msgstr ""
|
676 |
|
677 |
#: includes/admin/class-wp-job-manager-settings.php:349
|
@@ -683,9 +685,7 @@ msgid "Submit Job Form Page"
|
|
683 |
msgstr ""
|
684 |
|
685 |
#: includes/admin/class-wp-job-manager-settings.php:355
|
686 |
-
msgid ""
|
687 |
-
"Select the page where you've used the [submit_job_form] shortcode. This "
|
688 |
-
"lets the plugin know the location of the form."
|
689 |
msgstr ""
|
690 |
|
691 |
#: includes/admin/class-wp-job-manager-settings.php:361
|
@@ -693,9 +693,7 @@ msgid "Job Dashboard Page"
|
|
693 |
msgstr ""
|
694 |
|
695 |
#: includes/admin/class-wp-job-manager-settings.php:362
|
696 |
-
msgid ""
|
697 |
-
"Select the page where you've used the [job_dashboard] shortcode. This lets "
|
698 |
-
"the plugin know the location of the dashboard."
|
699 |
msgstr ""
|
700 |
|
701 |
#: includes/admin/class-wp-job-manager-settings.php:368
|
@@ -703,9 +701,7 @@ msgid "Job Listings Page"
|
|
703 |
msgstr ""
|
704 |
|
705 |
#: includes/admin/class-wp-job-manager-settings.php:369
|
706 |
-
msgid ""
|
707 |
-
"Select the page where you've used the [jobs] shortcode. This lets the "
|
708 |
-
"plugin know the location of the job listings page."
|
709 |
msgstr ""
|
710 |
|
711 |
#: includes/admin/class-wp-job-manager-settings.php:417
|
@@ -728,14 +724,14 @@ msgstr ""
|
|
728 |
msgid "Setup"
|
729 |
msgstr ""
|
730 |
|
731 |
-
#: includes/admin/class-wp-job-manager-setup.php:
|
732 |
msgid "Error in nonce. Try again."
|
733 |
msgstr ""
|
734 |
|
735 |
#: includes/admin/class-wp-job-manager-taxonomy-meta.php:87
|
736 |
#: includes/admin/class-wp-job-manager-taxonomy-meta.php:110
|
737 |
#: includes/admin/class-wp-job-manager-taxonomy-meta.php:129
|
738 |
-
#: includes/class-wp-job-manager-post-types.php:
|
739 |
msgid "Employment Type"
|
740 |
msgstr ""
|
741 |
|
@@ -744,55 +740,50 @@ msgstr ""
|
|
744 |
msgid "Posted by"
|
745 |
msgstr ""
|
746 |
|
747 |
-
|
748 |
-
|
749 |
-
#. type.
|
750 |
msgid "%s Data"
|
751 |
msgstr ""
|
752 |
|
753 |
-
#: includes/admin/class-wp-job-manager-writepanels.php:
|
754 |
-
#: includes/admin/class-wp-job-manager-writepanels.php:
|
755 |
msgid "Use file"
|
756 |
msgstr ""
|
757 |
|
758 |
-
#: includes/admin/class-wp-job-manager-writepanels.php:
|
759 |
-
#: includes/admin/class-wp-job-manager-writepanels.php:
|
760 |
msgid "Upload"
|
761 |
msgstr ""
|
762 |
|
763 |
-
#: includes/admin/class-wp-job-manager-writepanels.php:
|
764 |
msgid "Add file"
|
765 |
msgstr ""
|
766 |
|
767 |
-
|
|
|
768 |
#: includes/class-wp-job-manager-ajax.php:419
|
769 |
-
#. translators: Used in user select. %1$s is the user's display name; #%2$s is
|
770 |
-
#. the user ID; %3$s is the user email.
|
771 |
msgid "%1$s (#%2$s – %3$s)"
|
772 |
msgstr ""
|
773 |
|
774 |
-
#: includes/admin/class-wp-job-manager-writepanels.php:
|
775 |
msgid "Guest User"
|
776 |
msgstr ""
|
777 |
|
778 |
-
#: includes/admin/class-wp-job-manager-writepanels.php:
|
779 |
msgid "Change"
|
780 |
msgstr ""
|
781 |
|
782 |
-
#: includes/admin/class-wp-job-manager-writepanels.php:
|
783 |
msgid "Guest"
|
784 |
msgstr ""
|
785 |
|
786 |
-
|
787 |
-
|
788 |
-
#. type; %2$s is the intl formatted date the listing was last modified.
|
789 |
msgid "%1$s was last modified by the user on %2$s."
|
790 |
msgstr ""
|
791 |
|
792 |
#: includes/admin/views/html-admin-notice-core-setup.php:15
|
793 |
-
msgid ""
|
794 |
-
"You are nearly ready to start listing jobs with <strong>WP Job "
|
795 |
-
"Manager</strong>."
|
796 |
msgstr ""
|
797 |
|
798 |
#: includes/admin/views/html-admin-notice-core-setup.php:19
|
@@ -832,22 +823,16 @@ msgid "Welcome to the Setup Wizard!"
|
|
832 |
msgstr ""
|
833 |
|
834 |
#: includes/admin/views/html-admin-setup-step-1.php:14
|
835 |
-
msgid ""
|
836 |
-
"Thanks for installing <em>WP Job Manager</em>! Let's get your site ready to "
|
837 |
-
"accept job listings."
|
838 |
msgstr ""
|
839 |
|
840 |
#: includes/admin/views/html-admin-setup-step-1.php:15
|
841 |
-
msgid ""
|
842 |
-
"This setup wizard will walk you through the process of creating pages for "
|
843 |
-
"job submissions, management, and listings."
|
844 |
msgstr ""
|
845 |
|
846 |
-
#: includes/admin/views/html-admin-setup-step-1.php:19
|
847 |
#. translators: Placeholder %s is the path to WPJM documentation site.
|
848 |
-
|
849 |
-
"If you'd prefer to skip this and set up your pages manually, our <a "
|
850 |
-
"href=\"%s\">documentation</a> will walk you through each step."
|
851 |
msgstr ""
|
852 |
|
853 |
#: includes/admin/views/html-admin-setup-step-1.php:29
|
@@ -863,23 +848,15 @@ msgid "Page Setup"
|
|
863 |
msgstr ""
|
864 |
|
865 |
#: includes/admin/views/html-admin-setup-step-2.php:14
|
866 |
-
msgid ""
|
867 |
-
"With WP Job Manager, employers and applicants can post, manage, and browse "
|
868 |
-
"job listings right on your website. Tell us which of these common pages "
|
869 |
-
"you'd like your site to have and we'll create and configure them for you."
|
870 |
msgstr ""
|
871 |
|
|
|
872 |
#: includes/admin/views/html-admin-setup-step-2.php:20
|
873 |
-
#. translators: %1$s is URL to WordPress core shortcode documentation. %2$s is
|
874 |
-
#. URL to WPJM specific shortcode reference.
|
875 |
msgid ""
|
876 |
-
"(These pages are created using <a href=\"%1$s\" title=\"What is a "
|
877 |
-
"
|
878 |
-
"\t\t\t\t\t\t\t\
|
879 |
-
"these pages yourself or want to add one of these options to an existing\n"
|
880 |
-
"\t\t\t\t\t\t\t\tpage on your site, you can skip this step and take a look "
|
881 |
-
"at <a href=\"%2$s\" class=\"help-page-link\">shortcode documentation</a> "
|
882 |
-
"for detailed instructions.)"
|
883 |
msgstr ""
|
884 |
|
885 |
#: includes/admin/views/html-admin-setup-step-2.php:39
|
@@ -894,20 +871,27 @@ msgstr ""
|
|
894 |
msgid "Content Shortcode"
|
895 |
msgstr ""
|
896 |
|
|
|
|
|
|
|
|
|
|
|
897 |
#: includes/admin/views/html-admin-setup-step-2.php:49
|
898 |
-
msgid ""
|
899 |
-
|
900 |
-
|
901 |
-
|
902 |
-
"
|
|
|
903 |
msgstr ""
|
904 |
|
905 |
#: includes/admin/views/html-admin-setup-step-2.php:57
|
906 |
-
msgid ""
|
907 |
-
|
908 |
-
|
909 |
-
|
910 |
-
"
|
|
|
911 |
msgstr ""
|
912 |
|
913 |
#: includes/admin/views/html-admin-setup-step-2.php:64
|
@@ -958,15 +942,12 @@ msgstr ""
|
|
958 |
msgid "Learn to use the front-end job dashboard"
|
959 |
msgstr ""
|
960 |
|
|
|
961 |
#: includes/admin/views/html-admin-setup-step-3.php:52
|
962 |
-
#. translators: %1$s is the URL to WPJM support documentation; %2$s is the URL
|
963 |
-
#. to WPJM support forums.
|
964 |
msgid ""
|
965 |
"If you need help, you can find more detail in our\n"
|
966 |
-
"\t\t\t\t\t\t\t<a href=\"%1$s\">support documentation</a> or post your "
|
967 |
-
"
|
968 |
-
"\t\t\t\t\t\t\t<a href=\"%2$s\">WP Job Manager support forums</a>. Happy "
|
969 |
-
"hiring!"
|
970 |
msgstr ""
|
971 |
|
972 |
#: includes/admin/views/html-admin-setup-step-3.php:66
|
@@ -974,11 +955,7 @@ msgid "Support WP Job Manager's Ongoing Development"
|
|
974 |
msgstr ""
|
975 |
|
976 |
#: includes/admin/views/html-admin-setup-step-3.php:67
|
977 |
-
msgid ""
|
978 |
-
"There are lots of ways you can support open source software projects like "
|
979 |
-
"this one: contributing code, fixing a bug, assisting with non-English "
|
980 |
-
"translation, or just telling your friends about WP Job Manager to help "
|
981 |
-
"spread the word. We appreciate your support!"
|
982 |
msgstr ""
|
983 |
|
984 |
#: includes/admin/views/html-admin-setup-step-3.php:69
|
@@ -997,8 +974,8 @@ msgstr ""
|
|
997 |
msgid "Help other users on the forums"
|
998 |
msgstr ""
|
999 |
|
1000 |
-
#: includes/class-wp-job-manager-ajax.php:186
|
1001 |
#. translators: Placeholder %d is the number of found search results.
|
|
|
1002 |
msgid "Search completed. Found %d matching record."
|
1003 |
msgid_plural "Search completed. Found %d matching records."
|
1004 |
msgstr[0] ""
|
@@ -1008,37 +985,34 @@ msgstr[1] ""
|
|
1008 |
msgid "You must be logged in to upload files using this method."
|
1009 |
msgstr ""
|
1010 |
|
1011 |
-
#.
|
1012 |
-
msgid "WP Job Manager"
|
1013 |
-
msgstr ""
|
1014 |
-
|
1015 |
#: includes/class-wp-job-manager-data-exporter.php:51
|
1016 |
-
#: includes/class-wp-job-manager-post-types.php:
|
1017 |
msgid "Company Logo"
|
1018 |
msgstr ""
|
1019 |
|
1020 |
#: includes/class-wp-job-manager-data-exporter.php:52
|
1021 |
-
#: includes/class-wp-job-manager-post-types.php:
|
1022 |
msgid "Company Name"
|
1023 |
msgstr ""
|
1024 |
|
1025 |
#: includes/class-wp-job-manager-data-exporter.php:53
|
1026 |
-
#: includes/class-wp-job-manager-post-types.php:
|
1027 |
msgid "Company Website"
|
1028 |
msgstr ""
|
1029 |
|
1030 |
#: includes/class-wp-job-manager-data-exporter.php:54
|
1031 |
-
#: includes/class-wp-job-manager-post-types.php:
|
1032 |
msgid "Company Tagline"
|
1033 |
msgstr ""
|
1034 |
|
1035 |
#: includes/class-wp-job-manager-data-exporter.php:55
|
1036 |
-
#: includes/class-wp-job-manager-post-types.php:
|
1037 |
msgid "Company Twitter"
|
1038 |
msgstr ""
|
1039 |
|
1040 |
#: includes/class-wp-job-manager-data-exporter.php:56
|
1041 |
-
#: includes/class-wp-job-manager-post-types.php:
|
1042 |
msgid "Company Video"
|
1043 |
msgstr ""
|
1044 |
|
@@ -1046,26 +1020,22 @@ msgstr ""
|
|
1046 |
msgid "WP Job Manager User Data"
|
1047 |
msgstr ""
|
1048 |
|
|
|
1049 |
#: includes/class-wp-job-manager-dependency-checker.php:66
|
1050 |
-
|
1051 |
-
#. the version of PHP WordPress is running on.
|
1052 |
-
msgid ""
|
1053 |
-
"<strong>WP Job Manager</strong> requires a minimum PHP version of %1$s, but "
|
1054 |
-
"you are running %2$s."
|
1055 |
msgstr ""
|
1056 |
|
1057 |
#: includes/class-wp-job-manager-dependency-checker.php:77
|
1058 |
msgid "Learn more about updating PHP"
|
1059 |
msgstr ""
|
1060 |
|
1061 |
-
#: includes/class-wp-job-manager-dependency-checker.php:79
|
1062 |
#. translators: accessibility text
|
|
|
1063 |
msgid "(opens in a new tab)"
|
1064 |
msgstr ""
|
1065 |
|
|
|
1066 |
#: includes/class-wp-job-manager-dependency-checker.php:118
|
1067 |
-
#. translators: %s is the URL for the page where users can go to update
|
1068 |
-
#. WordPress.
|
1069 |
msgid "Please <a href=\"%s\">update WordPress</a> to avoid issues."
|
1070 |
msgstr ""
|
1071 |
|
@@ -1083,13 +1053,13 @@ msgid "Job title"
|
|
1083 |
msgstr ""
|
1084 |
|
1085 |
#: includes/class-wp-job-manager-email-notifications.php:279
|
1086 |
-
#: includes/class-wp-job-manager-post-types.php:
|
1087 |
#: includes/forms/class-wp-job-manager-form-submit-job.php:225
|
1088 |
msgid "Job type"
|
1089 |
msgstr ""
|
1090 |
|
1091 |
#: includes/class-wp-job-manager-email-notifications.php:289
|
1092 |
-
#: includes/class-wp-job-manager-post-types.php:
|
1093 |
#: includes/forms/class-wp-job-manager-form-submit-job.php:234
|
1094 |
msgid "Job category"
|
1095 |
msgstr ""
|
@@ -1115,15 +1085,15 @@ msgstr ""
|
|
1115 |
msgid "Select the email notifications to enable."
|
1116 |
msgstr ""
|
1117 |
|
1118 |
-
#: includes/class-wp-job-manager-email-notifications.php:
|
1119 |
msgid "Format"
|
1120 |
msgstr ""
|
1121 |
|
1122 |
-
#: includes/class-wp-job-manager-email-notifications.php:
|
1123 |
msgid "Send plain text email"
|
1124 |
msgstr ""
|
1125 |
|
1126 |
-
#: includes/class-wp-job-manager-email-notifications.php:
|
1127 |
msgid "Send rich text email"
|
1128 |
msgstr ""
|
1129 |
|
@@ -1144,373 +1114,367 @@ msgstr ""
|
|
1144 |
msgid "Employer"
|
1145 |
msgstr ""
|
1146 |
|
1147 |
-
#: includes/class-wp-job-manager-post-types.php:
|
1148 |
msgid "Job categories"
|
1149 |
msgstr ""
|
1150 |
|
1151 |
-
|
1152 |
-
|
1153 |
-
|
1154 |
-
|
1155 |
-
|
1156 |
-
|
1157 |
-
#. taxonomy type.
|
1158 |
-
#. translators: Placeholder %s is the singular label of the job listing post
|
1159 |
-
#. type.
|
1160 |
msgid "Search %s"
|
1161 |
msgstr ""
|
1162 |
|
1163 |
-
|
1164 |
-
|
1165 |
-
|
1166 |
-
|
1167 |
-
|
1168 |
-
|
1169 |
-
#. taxonomy type.
|
1170 |
-
#. translators: Placeholder %s is the plural label of the job listing post
|
1171 |
-
#. type.
|
1172 |
msgid "All %s"
|
1173 |
msgstr ""
|
1174 |
|
1175 |
-
|
1176 |
-
|
1177 |
-
|
1178 |
-
|
1179 |
-
|
1180 |
-
|
1181 |
-
#. type taxonomy type.
|
1182 |
-
#. translators: Placeholder %s is the singular label of the job listing post
|
1183 |
-
#. type.
|
1184 |
msgid "Parent %s"
|
1185 |
msgstr ""
|
1186 |
|
1187 |
-
|
1188 |
-
|
1189 |
-
|
1190 |
-
|
1191 |
-
#. translators: Placeholder %s is the singular label of the job listing job
|
1192 |
-
#. type taxonomy type.
|
1193 |
msgid "Parent %s:"
|
1194 |
msgstr ""
|
1195 |
|
1196 |
-
|
1197 |
-
|
1198 |
-
|
1199 |
-
|
1200 |
-
|
1201 |
-
|
1202 |
-
#. type taxonomy type.
|
1203 |
-
#. translators: Placeholder %s is the singular label of the job listing post
|
1204 |
-
#. type.
|
1205 |
msgid "Edit %s"
|
1206 |
msgstr ""
|
1207 |
|
1208 |
-
|
1209 |
-
|
1210 |
-
|
1211 |
-
|
1212 |
-
#. translators: Placeholder %s is the singular label of the job listing job
|
1213 |
-
#. type taxonomy type.
|
1214 |
msgid "Update %s"
|
1215 |
msgstr ""
|
1216 |
|
1217 |
-
|
1218 |
-
|
1219 |
-
|
1220 |
-
|
1221 |
-
#. translators: Placeholder %s is the singular label of the job listing job
|
1222 |
-
#. type taxonomy type.
|
1223 |
msgid "Add New %s"
|
1224 |
msgstr ""
|
1225 |
|
1226 |
-
|
1227 |
-
|
1228 |
-
|
1229 |
-
|
1230 |
-
#. translators: Placeholder %s is the singular label of the job listing job
|
1231 |
-
#. type taxonomy type.
|
1232 |
msgid "New %s Name"
|
1233 |
msgstr ""
|
1234 |
|
1235 |
-
#: includes/class-wp-job-manager-post-types.php:
|
1236 |
msgid "Job types"
|
1237 |
msgstr ""
|
1238 |
|
1239 |
-
#: includes/class-wp-job-manager-post-types.php:
|
1240 |
msgid "Job"
|
1241 |
msgstr ""
|
1242 |
|
1243 |
-
#: includes/class-wp-job-manager-post-types.php:
|
1244 |
msgid "Jobs"
|
1245 |
msgstr ""
|
1246 |
|
1247 |
-
|
|
|
1248 |
msgid "Add New"
|
1249 |
msgstr ""
|
1250 |
|
1251 |
-
|
1252 |
-
|
1253 |
-
#. type.
|
1254 |
msgid "Add %s"
|
1255 |
msgstr ""
|
1256 |
|
1257 |
-
|
1258 |
-
|
1259 |
-
#. type.
|
1260 |
msgid "New %s"
|
1261 |
msgstr ""
|
1262 |
|
1263 |
-
|
1264 |
-
#: includes/class-wp-job-manager-post-types.php:
|
1265 |
-
|
1266 |
-
#. type.
|
1267 |
msgid "View %s"
|
1268 |
msgstr ""
|
1269 |
|
1270 |
-
|
1271 |
-
|
1272 |
-
#. type.
|
1273 |
msgid "No %s found"
|
1274 |
msgstr ""
|
1275 |
|
1276 |
-
|
1277 |
-
|
1278 |
-
#. type.
|
1279 |
msgid "No %s found in trash"
|
1280 |
msgstr ""
|
1281 |
|
1282 |
-
#: includes/class-wp-job-manager-post-types.php:
|
1283 |
msgid "Set company logo"
|
1284 |
msgstr ""
|
1285 |
|
1286 |
-
#: includes/class-wp-job-manager-post-types.php:
|
1287 |
msgid "Remove company logo"
|
1288 |
msgstr ""
|
1289 |
|
1290 |
-
#: includes/class-wp-job-manager-post-types.php:
|
1291 |
msgid "Use as company logo"
|
1292 |
msgstr ""
|
1293 |
|
1294 |
-
|
1295 |
-
|
1296 |
-
#. type.
|
1297 |
msgid "This is where you can create and manage %s."
|
1298 |
msgstr ""
|
1299 |
|
1300 |
-
#: includes/class-wp-job-manager-post-types.php:
|
|
|
|
|
|
|
|
|
|
|
1301 |
#. translators: Placeholder %s is the number of expired posts of this type.
|
|
|
1302 |
msgid "Expired <span class=\"count\">(%s)</span>"
|
1303 |
msgid_plural "Expired <span class=\"count\">(%s)</span>"
|
1304 |
msgstr[0] ""
|
1305 |
msgstr[1] ""
|
1306 |
|
1307 |
-
#: includes/class-wp-job-manager-post-types.php:
|
|
|
|
|
|
|
|
|
|
|
1308 |
#. translators: Placeholder %s is the number of posts in a preview state.
|
|
|
1309 |
msgid "Preview <span class=\"count\">(%s)</span>"
|
1310 |
msgid_plural "Preview <span class=\"count\">(%s)</span>"
|
1311 |
msgstr[0] ""
|
1312 |
msgstr[1] ""
|
1313 |
|
1314 |
-
#: includes/class-wp-job-manager-post-types.php:
|
|
|
|
|
|
|
|
|
|
|
1315 |
#: includes/forms/class-wp-job-manager-form-submit-job.php:194
|
1316 |
msgid "Application email/URL"
|
1317 |
msgstr ""
|
1318 |
|
1319 |
-
#: includes/class-wp-job-manager-post-types.php:
|
1320 |
#: includes/forms/class-wp-job-manager-form-submit-job.php:195
|
1321 |
msgid "Enter an email address or website URL"
|
1322 |
msgstr ""
|
1323 |
|
1324 |
-
#: includes/class-wp-job-manager-post-types.php:
|
1325 |
#: includes/forms/class-wp-job-manager-form-submit-job.php:184
|
1326 |
msgid "Application email"
|
1327 |
msgstr ""
|
1328 |
|
1329 |
-
#: includes/class-wp-job-manager-post-types.php:
|
1330 |
#: includes/forms/class-wp-job-manager-form-submit-job.php:185
|
1331 |
msgid "you@example.com"
|
1332 |
msgstr ""
|
1333 |
|
1334 |
-
#: includes/class-wp-job-manager-post-types.php:
|
1335 |
#: includes/forms/class-wp-job-manager-form-submit-job.php:189
|
1336 |
msgid "Application URL"
|
1337 |
msgstr ""
|
1338 |
|
1339 |
-
#: includes/class-wp-job-manager-post-types.php:
|
1340 |
#: includes/forms/class-wp-job-manager-form-submit-job.php:190
|
1341 |
msgid "https://"
|
1342 |
msgstr ""
|
1343 |
|
1344 |
-
#: includes/class-wp-job-manager-post-types.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1345 |
#: includes/forms/class-wp-job-manager-form-submit-job.php:221
|
1346 |
msgid "e.g. \"London\""
|
1347 |
msgstr ""
|
1348 |
|
1349 |
-
#: includes/class-wp-job-manager-post-types.php:
|
1350 |
msgid "Leave this blank if the location is not important."
|
1351 |
msgstr ""
|
1352 |
|
1353 |
-
#: includes/class-wp-job-manager-post-types.php:
|
1354 |
-
msgid ""
|
1355 |
-
"This field is required for the \"application\" area to appear beneath the "
|
1356 |
-
"listing."
|
1357 |
msgstr ""
|
1358 |
|
1359 |
-
#: includes/class-wp-job-manager-post-types.php:
|
1360 |
msgid "Brief description about the company"
|
1361 |
msgstr ""
|
1362 |
|
1363 |
-
#: includes/class-wp-job-manager-post-types.php:
|
1364 |
msgid "URL to the company video"
|
1365 |
msgstr ""
|
1366 |
|
1367 |
-
#: includes/class-wp-job-manager-post-types.php:
|
1368 |
msgid "Position Filled"
|
1369 |
msgstr ""
|
1370 |
|
1371 |
-
#: includes/class-wp-job-manager-post-types.php:
|
1372 |
msgid "Filled listings will no longer accept applications."
|
1373 |
msgstr ""
|
1374 |
|
1375 |
-
#: includes/class-wp-job-manager-post-types.php:
|
1376 |
msgid "Featured Listing"
|
1377 |
msgstr ""
|
1378 |
|
1379 |
-
#: includes/class-wp-job-manager-post-types.php:
|
1380 |
-
msgid ""
|
1381 |
-
"Featured listings will be sticky during searches, and can be styled "
|
1382 |
-
"differently."
|
1383 |
msgstr ""
|
1384 |
|
1385 |
-
#: includes/class-wp-job-manager-post-types.php:
|
1386 |
msgid "Listing Expiry Date"
|
1387 |
msgstr ""
|
1388 |
|
1389 |
-
#: includes/class-wp-job-manager-shortcodes.php:
|
1390 |
msgid "Invalid ID"
|
1391 |
msgstr ""
|
1392 |
|
1393 |
-
#: includes/class-wp-job-manager-shortcodes.php:
|
1394 |
msgid "This position has already been filled"
|
1395 |
msgstr ""
|
1396 |
|
1397 |
-
#: includes/class-wp-job-manager-shortcodes.php:156
|
1398 |
#. translators: Placeholder %s is the job listing title.
|
|
|
1399 |
msgid "%s has been filled"
|
1400 |
msgstr ""
|
1401 |
|
1402 |
-
#: includes/class-wp-job-manager-shortcodes.php:
|
1403 |
msgid "This position is not filled"
|
1404 |
msgstr ""
|
1405 |
|
1406 |
-
#: includes/class-wp-job-manager-shortcodes.php:169
|
1407 |
#. translators: Placeholder %s is the job listing title.
|
|
|
1408 |
msgid "%s has been marked as not filled"
|
1409 |
msgstr ""
|
1410 |
|
1411 |
-
#: includes/class-wp-job-manager-shortcodes.php:177
|
1412 |
#. translators: Placeholder %s is the job listing title.
|
|
|
1413 |
msgid "%s has been deleted"
|
1414 |
msgstr ""
|
1415 |
|
1416 |
-
#: includes/class-wp-job-manager-shortcodes.php:
|
1417 |
-
#: includes/class-wp-job-manager-shortcodes.php:
|
1418 |
msgid "Missing submission page."
|
1419 |
msgstr ""
|
1420 |
|
1421 |
-
|
|
|
1422 |
#: includes/widgets/class-wp-job-manager-widget-featured-jobs.php:36
|
1423 |
#: includes/widgets/class-wp-job-manager-widget-featured-jobs.php:52
|
1424 |
#: includes/widgets/class-wp-job-manager-widget-recent-jobs.php:36
|
1425 |
msgid "Title"
|
1426 |
msgstr ""
|
1427 |
|
1428 |
-
#: includes/class-wp-job-manager-shortcodes.php:
|
1429 |
msgid "Date Posted"
|
1430 |
msgstr ""
|
1431 |
|
1432 |
-
#: includes/class-wp-job-manager-shortcodes.php:
|
1433 |
msgid "Listing Expires"
|
1434 |
msgstr ""
|
1435 |
|
1436 |
-
#: includes/class-wp-job-manager-shortcodes.php:
|
1437 |
msgid "Mark not filled"
|
1438 |
msgstr ""
|
1439 |
|
1440 |
-
#: includes/class-wp-job-manager-shortcodes.php:
|
1441 |
msgid "Mark filled"
|
1442 |
msgstr ""
|
1443 |
|
1444 |
-
#: includes/class-wp-job-manager-shortcodes.php:
|
1445 |
msgid "Duplicate"
|
1446 |
msgstr ""
|
1447 |
|
1448 |
-
#: includes/class-wp-job-manager-shortcodes.php:
|
1449 |
msgid "Relist"
|
1450 |
msgstr ""
|
1451 |
|
1452 |
-
#: includes/class-wp-job-manager-shortcodes.php:
|
1453 |
msgid "Continue Submission"
|
1454 |
msgstr ""
|
1455 |
|
1456 |
-
#: includes/class-wp-job-manager-shortcodes.php:
|
1457 |
-
#: includes/class-wp-job-manager-shortcodes.php:
|
1458 |
msgid "Load more listings"
|
1459 |
msgstr ""
|
1460 |
|
|
|
1461 |
#: includes/class-wp-job-manager-usage-tracking.php:228
|
1462 |
-
#. translators: Placeholder %s is a URL to the document on wpjobmanager.com
|
1463 |
-
#. with info on usage tracking.
|
1464 |
msgid ""
|
1465 |
-
"We'd love if you helped us make WP Job Manager better by allowing us to "
|
1466 |
-
"collect\n"
|
1467 |
"\t\t\t\t<a href=\"%s\">usage tracking data</a>. No sensitive information is\n"
|
1468 |
"\t\t\t\tcollected, and you can opt out at any time."
|
1469 |
msgstr ""
|
1470 |
|
1471 |
-
|
1472 |
-
|
1473 |
-
#. data WPJM tracks.
|
1474 |
msgid ""
|
1475 |
"Help us make WP Job Manager better by allowing us to collect\n"
|
1476 |
"\t\t\t\t<a href=\"%s\">usage tracking data</a>.\n"
|
1477 |
"\t\t\t\tNo sensitive information is collected."
|
1478 |
msgstr ""
|
1479 |
|
1480 |
-
#: includes/class-wp-job-manager-usage-tracking.php:
|
1481 |
-
#: lib/usage-tracking/class-usage-tracking-base.php:483
|
1482 |
msgid "Enable Usage Tracking"
|
1483 |
msgstr ""
|
1484 |
|
|
|
1485 |
#: includes/class-wp-job-manager.php:139
|
1486 |
-
#. translators: Placeholders %1$s and %2$s are the names of the two cookies
|
1487 |
-
#. used in WP Job Manager.
|
1488 |
msgid ""
|
1489 |
-
"This site adds the following cookies to help users resume job submissions "
|
1490 |
-
"that they\n"
|
1491 |
"\t\t\t\thave started but have not completed: %1$s and %2$s"
|
1492 |
msgstr ""
|
1493 |
|
1494 |
-
#: includes/class-wp-job-manager.php:
|
1495 |
msgid "Load previous listings"
|
1496 |
msgstr ""
|
1497 |
|
1498 |
-
#: includes/class-wp-job-manager.php:
|
1499 |
msgid "Invalid file type. Accepted types:"
|
1500 |
msgstr ""
|
1501 |
|
1502 |
-
#: includes/class-wp-job-manager.php:
|
1503 |
-
|
1504 |
-
|
1505 |
-
|
|
|
|
|
|
|
1506 |
msgid "You are only allowed to upload a maximum of %d files."
|
1507 |
msgstr ""
|
1508 |
|
1509 |
-
#: includes/class-wp-job-manager.php:
|
1510 |
msgid "Are you sure you want to delete this listing?"
|
1511 |
msgstr ""
|
1512 |
|
1513 |
-
#: includes/class-wp-job-manager.php:
|
1514 |
msgid "This field is required."
|
1515 |
msgstr ""
|
1516 |
|
@@ -1527,13 +1491,11 @@ msgid "Admin Notice of New Listing"
|
|
1527 |
msgstr ""
|
1528 |
|
1529 |
#: includes/emails/class-wp-job-manager-email-admin-new-job.php:44
|
1530 |
-
msgid ""
|
1531 |
-
"Send a notice to the site administrator when a new job is submitted on the "
|
1532 |
-
"frontend."
|
1533 |
msgstr ""
|
1534 |
|
1535 |
-
#: includes/emails/class-wp-job-manager-email-admin-new-job.php:63
|
1536 |
#. translators: Placeholder %s is the job listing post title.
|
|
|
1537 |
msgid "New Job Listing Submitted: %s"
|
1538 |
msgstr ""
|
1539 |
|
@@ -1542,13 +1504,11 @@ msgid "Admin Notice of Updated Listing"
|
|
1542 |
msgstr ""
|
1543 |
|
1544 |
#: includes/emails/class-wp-job-manager-email-admin-updated-job.php:44
|
1545 |
-
msgid ""
|
1546 |
-
"Send a notice to the site administrator when a job is updated on the "
|
1547 |
-
"frontend."
|
1548 |
msgstr ""
|
1549 |
|
1550 |
-
#: includes/emails/class-wp-job-manager-email-admin-updated-job.php:63
|
1551 |
#. translators: Placeholder %s is the job listing post title.
|
|
|
1552 |
msgid "Job Listing Updated: %s"
|
1553 |
msgstr ""
|
1554 |
|
@@ -1560,8 +1520,8 @@ msgstr ""
|
|
1560 |
msgid "Send notices to employers before a job listing expires."
|
1561 |
msgstr ""
|
1562 |
|
1563 |
-
#: includes/emails/class-wp-job-manager-email-employer-expiring-job.php:79
|
1564 |
#. translators: Placeholder %s is the job listing post title.
|
|
|
1565 |
msgid "Job Listing Expiring: %s"
|
1566 |
msgstr ""
|
1567 |
|
@@ -1594,9 +1554,7 @@ msgid "View →"
|
|
1594 |
msgstr ""
|
1595 |
|
1596 |
#: includes/forms/class-wp-job-manager-form-edit-job.php:203
|
1597 |
-
msgid ""
|
1598 |
-
"Your changes have been submitted and your listing will be visible again "
|
1599 |
-
"once approved."
|
1600 |
msgstr ""
|
1601 |
|
1602 |
#: includes/forms/class-wp-job-manager-form-submit-job.php:82
|
@@ -1604,7 +1562,7 @@ msgid "Submit Details"
|
|
1604 |
msgstr ""
|
1605 |
|
1606 |
#: includes/forms/class-wp-job-manager-form-submit-job.php:88
|
1607 |
-
#: includes/forms/class-wp-job-manager-form-submit-job.php:
|
1608 |
#: templates/job-preview.php:30
|
1609 |
msgid "Preview"
|
1610 |
msgstr ""
|
@@ -1670,79 +1628,75 @@ msgstr ""
|
|
1670 |
msgid "Logo"
|
1671 |
msgstr ""
|
1672 |
|
1673 |
-
#: includes/forms/class-wp-job-manager-form-submit-job.php:363
|
1674 |
#. translators: Placeholder %s is the label for the required field.
|
|
|
1675 |
msgid "%s is a required field"
|
1676 |
msgstr ""
|
1677 |
|
1678 |
-
#: includes/forms/class-wp-job-manager-form-submit-job.php:374
|
1679 |
#. translators: Placeholder %s is the field label that is did not validate.
|
|
|
1680 |
msgid "%s is invalid"
|
1681 |
msgstr ""
|
1682 |
|
1683 |
-
#: includes/forms/class-wp-job-manager-form-submit-job.php:
|
1684 |
msgid "Invalid image path."
|
1685 |
msgstr ""
|
1686 |
|
1687 |
-
|
1688 |
-
|
1689 |
-
|
1690 |
-
|
1691 |
-
#. translators: %1$s is the file field label; %2$s is the file type; %3$s is
|
1692 |
-
#. the list of allowed file types.
|
1693 |
msgid "\"%1$s\" (filetype %2$s) needs to be one of the following file types: %3$s"
|
1694 |
msgstr ""
|
1695 |
|
1696 |
-
#: includes/forms/class-wp-job-manager-form-submit-job.php:
|
1697 |
msgid "Invalid attachment provided."
|
1698 |
msgstr ""
|
1699 |
|
1700 |
-
#: includes/forms/class-wp-job-manager-form-submit-job.php:
|
1701 |
msgid "Please enter a valid application email address"
|
1702 |
msgstr ""
|
1703 |
|
1704 |
-
#: includes/forms/class-wp-job-manager-form-submit-job.php:
|
1705 |
msgid "Please enter a valid application URL"
|
1706 |
msgstr ""
|
1707 |
|
1708 |
-
#: includes/forms/class-wp-job-manager-form-submit-job.php:
|
1709 |
msgid "Please enter a valid application email address or URL"
|
1710 |
msgstr ""
|
1711 |
|
1712 |
-
#: includes/forms/class-wp-job-manager-form-submit-job.php:
|
1713 |
msgid "Please enter a username."
|
1714 |
msgstr ""
|
1715 |
|
1716 |
-
#: includes/forms/class-wp-job-manager-form-submit-job.php:
|
1717 |
msgid "Please enter a password."
|
1718 |
msgstr ""
|
1719 |
|
1720 |
-
#: includes/forms/class-wp-job-manager-form-submit-job.php:
|
1721 |
msgid "Please enter your email address."
|
1722 |
msgstr ""
|
1723 |
|
1724 |
-
#: includes/forms/class-wp-job-manager-form-submit-job.php:
|
1725 |
msgid "Passwords must match."
|
1726 |
msgstr ""
|
1727 |
|
1728 |
-
#: includes/forms/class-wp-job-manager-form-submit-job.php:677
|
1729 |
#. translators: Placeholder %s is the password hint.
|
|
|
1730 |
msgid "Invalid Password: %s"
|
1731 |
msgstr ""
|
1732 |
|
1733 |
-
#: includes/forms/class-wp-job-manager-form-submit-job.php:
|
1734 |
msgid "Password is not valid."
|
1735 |
msgstr ""
|
1736 |
|
1737 |
-
#: includes/forms/class-wp-job-manager-form-submit-job.php:
|
1738 |
msgid "You must be signed in to post a new listing."
|
1739 |
msgstr ""
|
1740 |
|
1741 |
-
#: includes/forms/class-wp-job-manager-form-submit-job.php:725
|
1742 |
#. translators: placeholder is the URL to the job dashboard page.
|
1743 |
-
|
1744 |
-
"Draft was saved. Job listing drafts can be resumed from the <a "
|
1745 |
-
"href=\"%s\">job dashboard</a>."
|
1746 |
msgstr ""
|
1747 |
|
1748 |
#: includes/helper/class-wp-job-manager-helper.php:279
|
@@ -1750,18 +1704,18 @@ msgid "Manage License (Requires Attention)"
|
|
1750 |
msgstr ""
|
1751 |
|
1752 |
#: includes/helper/class-wp-job-manager-helper.php:282
|
|
|
1753 |
msgid "Manage License"
|
1754 |
msgstr ""
|
1755 |
|
1756 |
#: includes/helper/class-wp-job-manager-helper.php:285
|
1757 |
#: includes/helper/views/html-licences.php:75
|
|
|
1758 |
msgid "Activate License"
|
1759 |
msgstr ""
|
1760 |
|
1761 |
#: includes/helper/class-wp-job-manager-helper.php:494
|
1762 |
-
msgid ""
|
1763 |
-
"Please enter a valid license key and email address in order to activate "
|
1764 |
-
"this plugin's license."
|
1765 |
msgstr ""
|
1766 |
|
1767 |
#: includes/helper/class-wp-job-manager-helper.php:526
|
@@ -1789,19 +1743,14 @@ msgstr ""
|
|
1789 |
msgid "Hide notice"
|
1790 |
msgstr ""
|
1791 |
|
1792 |
-
#: includes/helper/views/html-licence-key-error.php:15
|
1793 |
#. translators: %1$s is the plugin name, %2$s is the license setting page URL.
|
1794 |
-
|
1795 |
-
"There is a problem with the license for \"%1$s\". Please <a "
|
1796 |
-
"href=\"%2$s\">manage the license</a> to check for a solution and continue "
|
1797 |
-
"receiving updates."
|
1798 |
msgstr ""
|
1799 |
|
1800 |
-
#: includes/helper/views/html-licence-key-notice.php:15
|
1801 |
#. translators: %1$s is the license setting page URL, %2$s is the plugin name.
|
1802 |
-
|
1803 |
-
"<a href=\"%1$s\">Please enter your license key</a> to get updates for "
|
1804 |
-
"\"%2$s\"."
|
1805 |
msgstr ""
|
1806 |
|
1807 |
#: includes/helper/views/html-licences.php:56
|
@@ -1823,8 +1772,8 @@ msgstr ""
|
|
1823 |
msgid "Deactivate License"
|
1824 |
msgstr ""
|
1825 |
|
1826 |
-
#: includes/helper/views/html-licences.php:84
|
1827 |
#. translators: Placeholder %s is the lost license key URL.
|
|
|
1828 |
msgid "Lost your license key? <a href=\"%s\">Retrieve it here</a>."
|
1829 |
msgstr ""
|
1830 |
|
@@ -1832,10 +1781,9 @@ msgstr ""
|
|
1832 |
msgid "No plugins are activated that have licenses managed by WP Job Manager."
|
1833 |
msgstr ""
|
1834 |
|
|
|
1835 |
#: includes/widgets/class-wp-job-manager-widget-featured-jobs.php:27
|
1836 |
#: includes/widgets/class-wp-job-manager-widget-featured-jobs.php:35
|
1837 |
-
#. translators: Placeholder %s is the plural label for the job listing post
|
1838 |
-
#. type.
|
1839 |
msgid "Featured %s"
|
1840 |
msgstr ""
|
1841 |
|
@@ -1881,49 +1829,26 @@ msgstr ""
|
|
1881 |
msgid "Show Company Logo"
|
1882 |
msgstr ""
|
1883 |
|
|
|
1884 |
#: includes/widgets/class-wp-job-manager-widget-recent-jobs.php:27
|
1885 |
#: includes/widgets/class-wp-job-manager-widget-recent-jobs.php:35
|
1886 |
-
#. translators: Placeholder %s is the plural label for the job listing post
|
1887 |
-
#. type.
|
1888 |
msgid "Recent %s"
|
1889 |
msgstr ""
|
1890 |
|
1891 |
#: includes/widgets/class-wp-job-manager-widget-recent-jobs.php:29
|
1892 |
-
msgid ""
|
1893 |
-
"Display a list of recent listings on your site, optionally matching a "
|
1894 |
-
"keyword and location."
|
1895 |
msgstr ""
|
1896 |
|
1897 |
#: includes/widgets/class-wp-job-manager-widget-recent-jobs.php:41
|
1898 |
msgid "Keyword"
|
1899 |
msgstr ""
|
1900 |
|
1901 |
-
#: lib/usage-tracking/class-usage-tracking-base.php:344
|
1902 |
-
msgid "Every Two Weeks"
|
1903 |
-
msgstr ""
|
1904 |
-
|
1905 |
-
#: lib/usage-tracking/class-usage-tracking-base.php:486
|
1906 |
-
msgid "Disable Usage Tracking"
|
1907 |
-
msgstr ""
|
1908 |
-
|
1909 |
-
#: lib/usage-tracking/class-usage-tracking-base.php:492
|
1910 |
-
msgid "Usage data enabled. Thank you!"
|
1911 |
-
msgstr ""
|
1912 |
-
|
1913 |
-
#: lib/usage-tracking/class-usage-tracking-base.php:495
|
1914 |
-
msgid "Disabled usage tracking."
|
1915 |
-
msgstr ""
|
1916 |
-
|
1917 |
-
#: lib/usage-tracking/class-usage-tracking-base.php:498
|
1918 |
-
msgid "Something went wrong. Please try again later."
|
1919 |
-
msgstr ""
|
1920 |
-
|
1921 |
#: templates/account-signin.php:21
|
1922 |
msgid "Your account"
|
1923 |
msgstr ""
|
1924 |
|
1925 |
-
#: templates/account-signin.php:26
|
1926 |
#. translators: Placeholder %s is the username.
|
|
|
1927 |
msgid "You are currently signed in as <strong>%s</strong>."
|
1928 |
msgstr ""
|
1929 |
|
@@ -1935,17 +1860,17 @@ msgstr ""
|
|
1935 |
msgid "Have an account?"
|
1936 |
msgstr ""
|
1937 |
|
1938 |
-
#: templates/account-signin.php:42
|
|
|
1939 |
msgid "Sign in"
|
1940 |
msgstr ""
|
1941 |
|
1942 |
-
#: templates/account-signin.php:47
|
1943 |
#. translators: Placeholder %s is the optionally text.
|
1944 |
-
|
1945 |
-
"If you don't have an account you can %screate one below by entering your "
|
1946 |
-
"email address/username."
|
1947 |
msgstr ""
|
1948 |
|
|
|
1949 |
#: templates/account-signin.php:47
|
1950 |
msgid "optionally"
|
1951 |
msgstr ""
|
@@ -1958,7 +1883,8 @@ msgstr ""
|
|
1958 |
msgid "You must sign in to create a new listing."
|
1959 |
msgstr ""
|
1960 |
|
1961 |
-
#: templates/account-signin.php:65
|
|
|
1962 |
#: templates/job-submit.php:60
|
1963 |
msgid "(optional)"
|
1964 |
msgstr ""
|
@@ -1983,26 +1909,23 @@ msgstr ""
|
|
1983 |
msgid "This listing has expired."
|
1984 |
msgstr ""
|
1985 |
|
|
|
1986 |
#: templates/emails/admin-expiring-job.php:32
|
1987 |
-
#. translators: %1$s placeholder is URL to the blog. %2$s placeholder is the
|
1988 |
-
#. name of the site.
|
1989 |
msgid "The following job listing is expiring today from <a href=\"%1$s\">%2$s</a>."
|
1990 |
msgstr ""
|
1991 |
|
|
|
1992 |
#: templates/emails/admin-expiring-job.php:35
|
1993 |
-
#. translators: %1$s placeholder is URL to the blog. %2$s placeholder is the
|
1994 |
-
#. name of the site.
|
1995 |
msgid "The following job listing is expiring soon from <a href=\"%1$s\">%2$s</a>."
|
1996 |
msgstr ""
|
1997 |
|
1998 |
-
#: templates/emails/admin-expiring-job.php:41
|
1999 |
#. translators: Placeholder is URL to site's WP admin.
|
|
|
2000 |
msgid "Visit <a href=\"%s\">WordPress admin</a> to manage the listing."
|
2001 |
msgstr ""
|
2002 |
|
|
|
2003 |
#: templates/emails/admin-new-job.php:27
|
2004 |
-
#. translators: %1$s placeholder is URL to the blog. %2$s placeholder is the
|
2005 |
-
#. name of the site.
|
2006 |
msgid "A new job listing has been submitted to <a href=\"%s\">%s</a>."
|
2007 |
msgstr ""
|
2008 |
|
@@ -2011,16 +1934,13 @@ msgstr ""
|
|
2011 |
msgid "It has been published and is now available to the public."
|
2012 |
msgstr ""
|
2013 |
|
2014 |
-
#: templates/emails/admin-new-job.php:40
|
2015 |
#. translators: Placeholder %s is the admin job listings URL.
|
2016 |
-
|
2017 |
-
"It is awaiting approval by an administrator in <a href=\"%s\">WordPress "
|
2018 |
-
"admin</a>."
|
2019 |
msgstr ""
|
2020 |
|
|
|
2021 |
#: templates/emails/admin-updated-job.php:26
|
2022 |
-
#. translators: %1$s placeholder is URL to the blog. %2$s placeholder is the
|
2023 |
-
#. name of the site.
|
2024 |
msgid "A job listing has been updated on <a href=\"%s\">%s</a>."
|
2025 |
msgstr ""
|
2026 |
|
@@ -2029,75 +1949,65 @@ msgstr ""
|
|
2029 |
msgid "The changes have been published and are now available to the public."
|
2030 |
msgstr ""
|
2031 |
|
2032 |
-
#: templates/emails/admin-updated-job.php:34
|
2033 |
#. translators: Placeholder %s is the admin job listings URL.
|
2034 |
-
|
2035 |
-
"The job listing is not publicly available until the changes are approved by "
|
2036 |
-
"an administrator in the site's <a href=\"%s\">WordPress admin</a>."
|
2037 |
msgstr ""
|
2038 |
|
|
|
2039 |
#: templates/emails/employer-expiring-job.php:33
|
2040 |
-
#. translators: %1$s placeholder is URL to the blog. %2$s placeholder is the
|
2041 |
-
#. name of the site.
|
2042 |
msgid "The following job listing is expiring today from <a href=\"%s\">%s</a>."
|
2043 |
msgstr ""
|
2044 |
|
|
|
2045 |
#: templates/emails/employer-expiring-job.php:42
|
2046 |
-
#. translators: %1$s placeholder is URL to the blog. %2$s placeholder is the
|
2047 |
-
#. name of the site.
|
2048 |
msgid "The following job listing is expiring soon from <a href=\"%s\">%s</a>."
|
2049 |
msgstr ""
|
2050 |
|
2051 |
-
#: templates/emails/employer-expiring-job.php:51
|
2052 |
#. translators: Placeholder %s is the job listing dashboard URL.
|
|
|
2053 |
msgid "Visit the <a href=\"%s\">job listing dashboard</a> to manage the listing."
|
2054 |
msgstr ""
|
2055 |
|
|
|
2056 |
#: templates/emails/plain/admin-expiring-job.php:31
|
2057 |
#: templates/emails/plain/employer-expiring-job.php:30
|
2058 |
-
#. translators: %1$s placeholder is the name of the site, %2$s placeholder is
|
2059 |
-
#. URL to the blog.
|
2060 |
msgid "The following job listing is expiring today from %1$s (%2$s)."
|
2061 |
msgstr ""
|
2062 |
|
|
|
2063 |
#: templates/emails/plain/admin-expiring-job.php:38
|
2064 |
#: templates/emails/plain/employer-expiring-job.php:33
|
2065 |
-
#. translators: %1$s placeholder is the name of the site, %2$s placeholder is
|
2066 |
-
#. URL to the blog.
|
2067 |
msgid "The following job listing is expiring soon from %1$s (%2$s)."
|
2068 |
msgstr ""
|
2069 |
|
2070 |
-
#: templates/emails/plain/admin-expiring-job.php:46
|
2071 |
#. translators: Placeholder %s is the edit job URL.
|
|
|
2072 |
msgid "Visit WordPress admin (%s) to manage the listing."
|
2073 |
msgstr ""
|
2074 |
|
|
|
2075 |
#: templates/emails/plain/admin-new-job.php:24
|
2076 |
-
#. translators: %1$s placeholder is the name of the site, %2$s placeholder is
|
2077 |
-
#. URL to the blog.
|
2078 |
msgid "A new job listing has been submitted to %1$s (%2$s)."
|
2079 |
msgstr ""
|
2080 |
|
2081 |
-
#: templates/emails/plain/admin-new-job.php:31
|
2082 |
#. translators: Placeholder %s is the admin job listings URL.
|
|
|
2083 |
msgid "It is awaiting approval by an administrator in WordPress admin (%s)."
|
2084 |
msgstr ""
|
2085 |
|
|
|
2086 |
#: templates/emails/plain/admin-updated-job.php:24
|
2087 |
-
#. translators: %1$s placeholder is the name of the site, %2$s placeholder is
|
2088 |
-
#. URL to the blog.
|
2089 |
msgid "A job listing has been updated on %1$s (%2$s)."
|
2090 |
msgstr ""
|
2091 |
|
2092 |
-
#: templates/emails/plain/admin-updated-job.php:31
|
2093 |
#. translators: Placeholder %s is the admin job listings URL.
|
2094 |
-
|
2095 |
-
"The job listing is not publicly available until the changes are approved by "
|
2096 |
-
"an administrator in the site's WordPress admin (%s)."
|
2097 |
msgstr ""
|
2098 |
|
2099 |
-
#: templates/emails/plain/employer-expiring-job.php:36
|
2100 |
#. translators: Placeholder %s is the job listing dashboard URL.
|
|
|
2101 |
msgid "Visit the job listing dashboard (%s) to manage the listing."
|
2102 |
msgstr ""
|
2103 |
|
@@ -2106,12 +2016,12 @@ msgid "Maximum file size: %s."
|
|
2106 |
msgstr ""
|
2107 |
|
2108 |
#: templates/form-fields/multiselect-field.php:20
|
2109 |
-
#: wp-job-manager-functions.php:
|
2110 |
msgid "No results match"
|
2111 |
msgstr ""
|
2112 |
|
2113 |
#: templates/form-fields/multiselect-field.php:20
|
2114 |
-
#: wp-job-manager-functions.php:
|
2115 |
msgid "Select Some Options"
|
2116 |
msgstr ""
|
2117 |
|
@@ -2120,11 +2030,9 @@ msgstr ""
|
|
2120 |
msgid "remove"
|
2121 |
msgstr ""
|
2122 |
|
2123 |
-
#: templates/job-application-email.php:19
|
2124 |
#. translators: %1$s is the email address, %2$s is the subject query args.
|
2125 |
-
|
2126 |
-
"To apply for this job <strong>email your details to</strong> <a "
|
2127 |
-
"class=\"job_application_email\" href=\"mailto:%1$s%2$s\">%1$s</a>"
|
2128 |
msgstr ""
|
2129 |
|
2130 |
#: templates/job-application-url.php:18
|
@@ -2139,19 +2047,20 @@ msgstr ""
|
|
2139 |
msgid "You need to be signed in to manage your listings."
|
2140 |
msgstr ""
|
2141 |
|
2142 |
-
#: templates/job-dashboard.php:
|
2143 |
msgid "Your listings are shown in the table below."
|
2144 |
msgstr ""
|
2145 |
|
2146 |
-
#: templates/job-dashboard.php:
|
2147 |
msgid "You do not have any active listings."
|
2148 |
msgstr ""
|
2149 |
|
2150 |
-
#: templates/job-dashboard.php:
|
2151 |
msgid "Featured Job"
|
2152 |
msgstr ""
|
2153 |
|
2154 |
-
#: templates/job-filters.php:30
|
|
|
2155 |
msgid "Keywords"
|
2156 |
msgstr ""
|
2157 |
|
@@ -2168,9 +2077,7 @@ msgid "Search Jobs"
|
|
2168 |
msgstr ""
|
2169 |
|
2170 |
#: templates/job-filters.php:80
|
2171 |
-
msgid ""
|
2172 |
-
"Your browser does not support JavaScript, or it is disabled. JavaScript "
|
2173 |
-
"must be enabled in order to view listings."
|
2174 |
msgstr ""
|
2175 |
|
2176 |
#: templates/job-preview.php:28
|
@@ -2197,19 +2104,36 @@ msgstr ""
|
|
2197 |
msgid "Save Draft"
|
2198 |
msgstr ""
|
2199 |
|
|
|
2200 |
#: templates/job-submitted.php:25
|
2201 |
-
|
2202 |
-
#. URL.
|
2203 |
-
msgid ""
|
2204 |
-
"%1$s listed successfully. To view your listing <a href=\"%2$s\">click "
|
2205 |
-
"here</a>."
|
2206 |
msgstr ""
|
2207 |
|
2208 |
-
#: templates/job-submitted.php:35
|
2209 |
#. translators: Placeholder %s is the job listing post type name.
|
|
|
2210 |
msgid "%s submitted successfully. Your listing will be visible once approved."
|
2211 |
msgstr ""
|
2212 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2213 |
#: wp-job-manager-functions.php:460
|
2214 |
msgid "Reset"
|
2215 |
msgstr ""
|
@@ -2230,48 +2154,48 @@ msgstr ""
|
|
2230 |
msgid "This email is already registered, please choose another one."
|
2231 |
msgstr ""
|
2232 |
|
2233 |
-
#: wp-job-manager-functions.php:
|
2234 |
msgid "Full Time"
|
2235 |
msgstr ""
|
2236 |
|
2237 |
-
#: wp-job-manager-functions.php:
|
2238 |
msgid "Part Time"
|
2239 |
msgstr ""
|
2240 |
|
2241 |
-
#: wp-job-manager-functions.php:
|
2242 |
msgid "Contractor"
|
2243 |
msgstr ""
|
2244 |
|
2245 |
-
#: wp-job-manager-functions.php:
|
2246 |
msgid "Temporary"
|
2247 |
msgstr ""
|
2248 |
|
2249 |
-
#: wp-job-manager-functions.php:
|
2250 |
msgid "Intern"
|
2251 |
msgstr ""
|
2252 |
|
2253 |
-
#: wp-job-manager-functions.php:
|
2254 |
msgid "Volunteer"
|
2255 |
msgstr ""
|
2256 |
|
2257 |
-
#: wp-job-manager-functions.php:
|
2258 |
msgid "Per Diem"
|
2259 |
msgstr ""
|
2260 |
|
2261 |
-
#: wp-job-manager-functions.php:
|
2262 |
msgid "Other"
|
2263 |
msgstr ""
|
2264 |
|
2265 |
-
#: wp-job-manager-functions.php:
|
2266 |
msgid "Passwords must be at least 8 characters long."
|
2267 |
msgstr ""
|
2268 |
|
2269 |
-
#: wp-job-manager-functions.php:
|
2270 |
msgid "Choose a category…"
|
2271 |
msgstr ""
|
2272 |
|
2273 |
-
#: wp-job-manager-functions.php:1366
|
2274 |
#. translators: %s is the list of allowed file types.
|
|
|
2275 |
msgid "Uploaded files need to be one of the following file types: %s"
|
2276 |
msgstr ""
|
2277 |
|
@@ -2279,9 +2203,8 @@ msgstr ""
|
|
2279 |
msgid "Inactive"
|
2280 |
msgstr ""
|
2281 |
|
|
|
2282 |
#: wp-job-manager-template.php:249
|
2283 |
-
#. translators: %1$s is the job listing title; %2$s is the URL for the current
|
2284 |
-
#. WordPress instance.
|
2285 |
msgid "Application via %1$s listing on %2$s"
|
2286 |
msgstr ""
|
2287 |
|
@@ -2309,126 +2232,12 @@ msgstr ""
|
|
2309 |
msgid "Posted on "
|
2310 |
msgstr ""
|
2311 |
|
2312 |
-
|
2313 |
-
|
2314 |
-
|
2315 |
msgid "Posted %s ago"
|
2316 |
msgstr ""
|
2317 |
|
2318 |
-
#: wp-job-manager-template.php:
|
2319 |
msgid "Anywhere"
|
2320 |
msgstr ""
|
2321 |
-
|
2322 |
-
#. Author URI of the plugin/theme
|
2323 |
-
msgid "https://wpjobmanager.com/"
|
2324 |
-
msgstr ""
|
2325 |
-
|
2326 |
-
#. Description of the plugin/theme
|
2327 |
-
msgid ""
|
2328 |
-
"Manage job listings from the WordPress admin panel, and allow users to post "
|
2329 |
-
"jobs directly to your site."
|
2330 |
-
msgstr ""
|
2331 |
-
|
2332 |
-
#. Author of the plugin/theme
|
2333 |
-
msgid "Automattic"
|
2334 |
-
msgstr ""
|
2335 |
-
|
2336 |
-
#: includes/admin/class-wp-job-manager-admin.php:105
|
2337 |
-
msgctxt "user selection"
|
2338 |
-
msgid "No matches found"
|
2339 |
-
msgstr ""
|
2340 |
-
|
2341 |
-
#: includes/admin/class-wp-job-manager-admin.php:106
|
2342 |
-
msgctxt "user selection"
|
2343 |
-
msgid "Loading failed"
|
2344 |
-
msgstr ""
|
2345 |
-
|
2346 |
-
#: includes/admin/class-wp-job-manager-admin.php:107
|
2347 |
-
msgctxt "user selection"
|
2348 |
-
msgid "Please enter 1 or more characters"
|
2349 |
-
msgstr ""
|
2350 |
-
|
2351 |
-
#: includes/admin/class-wp-job-manager-admin.php:108
|
2352 |
-
msgctxt "user selection"
|
2353 |
-
msgid "Please enter %qty% or more characters"
|
2354 |
-
msgstr ""
|
2355 |
-
|
2356 |
-
#: includes/admin/class-wp-job-manager-admin.php:109
|
2357 |
-
msgctxt "user selection"
|
2358 |
-
msgid "Loading more results…"
|
2359 |
-
msgstr ""
|
2360 |
-
|
2361 |
-
#: includes/admin/class-wp-job-manager-admin.php:110
|
2362 |
-
msgctxt "user selection"
|
2363 |
-
msgid "Searching…"
|
2364 |
-
msgstr ""
|
2365 |
-
|
2366 |
-
#: includes/admin/class-wp-job-manager-permalink-settings.php:108
|
2367 |
-
#: includes/class-wp-job-manager-post-types.php:998
|
2368 |
-
msgctxt "Job permalink - resave permalinks after changing this"
|
2369 |
-
msgid "job"
|
2370 |
-
msgstr ""
|
2371 |
-
|
2372 |
-
#: includes/admin/class-wp-job-manager-permalink-settings.php:117
|
2373 |
-
#: includes/class-wp-job-manager-post-types.php:999
|
2374 |
-
msgctxt "Job category slug - resave permalinks after changing this"
|
2375 |
-
msgid "job-category"
|
2376 |
-
msgstr ""
|
2377 |
-
|
2378 |
-
#: includes/admin/class-wp-job-manager-permalink-settings.php:126
|
2379 |
-
#: includes/class-wp-job-manager-post-types.php:1000
|
2380 |
-
msgctxt "Job type slug - resave permalinks after changing this"
|
2381 |
-
msgid "job-type"
|
2382 |
-
msgstr ""
|
2383 |
-
|
2384 |
-
#: includes/admin/views/html-admin-setup-step-2.php:47
|
2385 |
-
msgctxt "Default page title (wizard)"
|
2386 |
-
msgid "Post a Job"
|
2387 |
-
msgstr ""
|
2388 |
-
|
2389 |
-
#: includes/admin/views/html-admin-setup-step-2.php:55
|
2390 |
-
msgctxt "Default page title (wizard)"
|
2391 |
-
msgid "Job Dashboard"
|
2392 |
-
msgstr ""
|
2393 |
-
|
2394 |
-
#: includes/admin/views/html-admin-setup-step-2.php:63
|
2395 |
-
msgctxt "Default page title (wizard)"
|
2396 |
-
msgid "Jobs"
|
2397 |
-
msgstr ""
|
2398 |
-
|
2399 |
-
#: includes/class-wp-job-manager-post-types.php:393
|
2400 |
-
#: wp-job-manager-functions.php:335
|
2401 |
-
msgctxt "post status"
|
2402 |
-
msgid "Expired"
|
2403 |
-
msgstr ""
|
2404 |
-
|
2405 |
-
#: includes/class-wp-job-manager-post-types.php:406
|
2406 |
-
#: wp-job-manager-functions.php:336
|
2407 |
-
msgctxt "post status"
|
2408 |
-
msgid "Preview"
|
2409 |
-
msgstr ""
|
2410 |
-
|
2411 |
-
#: wp-job-manager-functions.php:334
|
2412 |
-
msgctxt "post status"
|
2413 |
-
msgid "Draft"
|
2414 |
-
msgstr ""
|
2415 |
-
|
2416 |
-
#: wp-job-manager-functions.php:337
|
2417 |
-
msgctxt "post status"
|
2418 |
-
msgid "Pending approval"
|
2419 |
-
msgstr ""
|
2420 |
-
|
2421 |
-
#: wp-job-manager-functions.php:338
|
2422 |
-
msgctxt "post status"
|
2423 |
-
msgid "Pending payment"
|
2424 |
-
msgstr ""
|
2425 |
-
|
2426 |
-
#: wp-job-manager-functions.php:339
|
2427 |
-
msgctxt "post status"
|
2428 |
-
msgid "Active"
|
2429 |
-
msgstr ""
|
2430 |
-
|
2431 |
-
#: includes/class-wp-job-manager-post-types.php:982
|
2432 |
-
msgctxt "Post type archive slug - resave permalinks after changing this"
|
2433 |
-
msgid "jobs"
|
2434 |
-
msgstr ""
|
1 |
+
# Copyright (C) 2021 Automattic
|
2 |
+
# This file is distributed under the same license as the WP Job Manager plugin.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: WP Job Manager 1.35.0\n"
|
6 |
+
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-job-manager/\n"
|
7 |
+
"Last-Translator: \n"
|
8 |
+
"Language-Team: \n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"POT-Creation-Date: 2021-02-17T18:53:43+00:00\n"
|
13 |
+
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
14 |
+
"X-Generator: WP-CLI 2.4.0\n"
|
15 |
+
"X-Domain: wp-job-manager\n"
|
16 |
+
|
17 |
+
#. Plugin Name of the plugin
|
18 |
+
#: includes/class-wp-job-manager-data-exporter.php:27
|
19 |
+
msgid "WP Job Manager"
|
20 |
+
msgstr ""
|
21 |
+
|
22 |
+
#. Plugin URI of the plugin
|
23 |
+
#. Author URI of the plugin
|
24 |
+
msgid "https://wpjobmanager.com/"
|
25 |
+
msgstr ""
|
26 |
+
|
27 |
+
#. Description of the plugin
|
28 |
+
msgid "Manage job listings from the WordPress admin panel, and allow users to post jobs directly to your site."
|
29 |
+
msgstr ""
|
30 |
+
|
31 |
+
#. Author of the plugin
|
32 |
+
msgid "Automattic"
|
33 |
+
msgstr ""
|
34 |
|
35 |
#: includes/3rd-party/wpml.php:94
|
36 |
msgid "Page Not Set"
|
37 |
msgstr ""
|
38 |
|
39 |
+
#. translators: Placeholder (%s) is the URL to edit the primary language in WPML.
|
40 |
#: includes/3rd-party/wpml.php:108
|
|
|
|
|
41 |
msgid "<a href=\"%s\">Switch to primary language</a> to edit this setting."
|
42 |
msgstr ""
|
43 |
|
|
|
|
|
44 |
#. translators: Placeholder is for the label of the reCAPTCHA field.
|
45 |
#. translators: %s is the name of the form validation that failed.
|
46 |
+
#: includes/abstracts/abstract-wp-job-manager-form.php:389
|
47 |
+
#: includes/abstracts/abstract-wp-job-manager-form.php:405
|
48 |
msgid "\"%s\" check failed. Please try again."
|
49 |
msgstr ""
|
50 |
|
51 |
#: includes/admin/class-wp-job-manager-addons.php:125
|
52 |
+
#: includes/admin/class-wp-job-manager-admin.php:134
|
53 |
#: includes/admin/views/html-admin-page-addons.php:12
|
54 |
msgid "WP Job Manager Add-ons"
|
55 |
msgstr ""
|
67 |
msgid "You don’t have permission to do this."
|
68 |
msgstr ""
|
69 |
|
70 |
+
#: includes/admin/class-wp-job-manager-admin.php:110
|
71 |
+
msgctxt "user selection"
|
72 |
+
msgid "No matches found"
|
73 |
+
msgstr ""
|
74 |
+
|
75 |
+
#: includes/admin/class-wp-job-manager-admin.php:111
|
76 |
+
msgctxt "user selection"
|
77 |
+
msgid "Loading failed"
|
78 |
+
msgstr ""
|
79 |
+
|
80 |
+
#: includes/admin/class-wp-job-manager-admin.php:112
|
81 |
+
msgctxt "user selection"
|
82 |
+
msgid "Please enter 1 or more characters"
|
83 |
+
msgstr ""
|
84 |
+
|
85 |
+
#: includes/admin/class-wp-job-manager-admin.php:113
|
86 |
+
msgctxt "user selection"
|
87 |
+
msgid "Please enter %qty% or more characters"
|
88 |
+
msgstr ""
|
89 |
+
|
90 |
+
#: includes/admin/class-wp-job-manager-admin.php:114
|
91 |
+
msgctxt "user selection"
|
92 |
+
msgid "Loading more results…"
|
93 |
+
msgstr ""
|
94 |
+
|
95 |
+
#: includes/admin/class-wp-job-manager-admin.php:115
|
96 |
+
msgctxt "user selection"
|
97 |
+
msgid "Searching…"
|
98 |
+
msgstr ""
|
99 |
+
|
100 |
+
#: includes/admin/class-wp-job-manager-admin.php:131
|
101 |
msgid "Settings"
|
102 |
msgstr ""
|
103 |
|
104 |
+
#: includes/admin/class-wp-job-manager-admin.php:134
|
105 |
msgid "Add-ons"
|
106 |
msgstr ""
|
107 |
|
108 |
+
#. translators: Placeholder (%s) is the plural name of the job listings post type.
|
109 |
#: includes/admin/class-wp-job-manager-cpt.php:81
|
|
|
|
|
110 |
msgid "Approve %s"
|
111 |
msgstr ""
|
112 |
|
113 |
+
#. translators: Placeholder (%s) is the plural name of the job listings post type.
|
114 |
#: includes/admin/class-wp-job-manager-cpt.php:83
|
|
|
|
|
115 |
msgid "%s approved"
|
116 |
msgstr ""
|
117 |
|
118 |
+
#. translators: Placeholder (%s) is the plural name of the job listings post type.
|
119 |
#: includes/admin/class-wp-job-manager-cpt.php:88
|
|
|
|
|
120 |
msgid "Expire %s"
|
121 |
msgstr ""
|
122 |
|
123 |
+
#. translators: Placeholder (%s) is the plural name of the job listings post type.
|
124 |
#: includes/admin/class-wp-job-manager-cpt.php:90
|
|
|
|
|
125 |
msgid "%s expired"
|
126 |
msgstr ""
|
127 |
|
128 |
+
#. translators: Placeholder (%s) is the plural name of the job listings post type.
|
129 |
#: includes/admin/class-wp-job-manager-cpt.php:95
|
|
|
|
|
130 |
msgid "Mark %s Filled"
|
131 |
msgstr ""
|
132 |
|
133 |
+
#. translators: Placeholder (%s) is the plural name of the job listings post type.
|
134 |
#: includes/admin/class-wp-job-manager-cpt.php:97
|
|
|
|
|
135 |
msgid "%s marked as filled"
|
136 |
msgstr ""
|
137 |
|
138 |
+
#. translators: Placeholder (%s) is the plural name of the job listings post type.
|
139 |
#: includes/admin/class-wp-job-manager-cpt.php:102
|
|
|
|
|
140 |
msgid "Mark %s Not Filled"
|
141 |
msgstr ""
|
142 |
|
143 |
+
#. translators: Placeholder (%s) is the plural name of the job listings post type.
|
144 |
#: includes/admin/class-wp-job-manager-cpt.php:104
|
|
|
|
|
145 |
msgid "%s marked as not filled"
|
146 |
msgstr ""
|
147 |
|
178 |
msgid "Position"
|
179 |
msgstr ""
|
180 |
|
181 |
+
#. translators: %1$s is the singular name of the job listing post type; %2$s is the URL to view the listing.
|
182 |
#: includes/admin/class-wp-job-manager-cpt.php:455
|
|
|
|
|
183 |
msgid "%1$s updated. <a href=\"%2$s\">View</a>"
|
184 |
msgstr ""
|
185 |
|
186 |
+
#. translators: %1$s is the singular name of the job listing post type; %2$s is the URL to view the listing.
|
187 |
#: includes/admin/class-wp-job-manager-cpt.php:456
|
188 |
msgid "Custom field updated."
|
189 |
msgstr ""
|
192 |
msgid "Custom field deleted."
|
193 |
msgstr ""
|
194 |
|
|
|
195 |
#. translators: %s is the singular name of the job listing post type.
|
196 |
+
#: includes/admin/class-wp-job-manager-cpt.php:459
|
197 |
msgid "%s updated."
|
198 |
msgstr ""
|
199 |
|
200 |
+
#. translators: %1$s is the singular name of the job listing post type; %2$s is the revision number.
|
201 |
#: includes/admin/class-wp-job-manager-cpt.php:461
|
|
|
|
|
202 |
msgid "%1$s restored to revision from %2$s"
|
203 |
msgstr ""
|
204 |
|
205 |
+
#. translators: %1$s is the singular name of the job listing post type; %2$s is the URL to view the listing.
|
206 |
#: includes/admin/class-wp-job-manager-cpt.php:463
|
|
|
|
|
207 |
msgid "%1$s published. <a href=\"%2$s\">View</a>"
|
208 |
msgstr ""
|
209 |
|
210 |
+
#. translators: %1$s is the singular name of the job listing post type; %2$s is the URL to view the listing.
|
211 |
#: includes/admin/class-wp-job-manager-cpt.php:465
|
|
|
|
|
212 |
msgid "%s saved."
|
213 |
msgstr ""
|
214 |
|
215 |
+
#. translators: %1$s is the singular name of the job listing post type; %2$s is the URL to preview the listing.
|
216 |
#: includes/admin/class-wp-job-manager-cpt.php:467
|
|
|
|
|
217 |
msgid "%1$s submitted. <a target=\"_blank\" href=\"%2$s\">Preview</a>"
|
218 |
msgstr ""
|
219 |
|
220 |
+
#. translators: %1$s is the singular name of the post type; %2$s is the date the post will be published; %3$s is the URL to preview the listing.
|
221 |
#: includes/admin/class-wp-job-manager-cpt.php:470
|
222 |
+
msgid "%1$s scheduled for: <strong>%2$s</strong>. <a target=\"_blank\" href=\"%3$s\">Preview</a>"
|
|
|
|
|
|
|
|
|
223 |
msgstr ""
|
224 |
|
225 |
+
#. translators: %1$s is the singular name of the job listing post type; %2$s is the URL to view the listing.
|
226 |
#: includes/admin/class-wp-job-manager-cpt.php:476
|
|
|
|
|
227 |
msgid "%1$s draft updated. <a target=\"_blank\" href=\"%2$s\">Preview</a>"
|
228 |
msgstr ""
|
229 |
|
233 |
|
234 |
#: includes/admin/class-wp-job-manager-cpt.php:497
|
235 |
#: includes/class-wp-job-manager-email-notifications.php:270
|
236 |
+
#: includes/class-wp-job-manager-post-types.php:1483
|
237 |
#: includes/forms/class-wp-job-manager-form-submit-job.php:217
|
238 |
#: includes/widgets/class-wp-job-manager-widget-recent-jobs.php:46
|
239 |
+
#: templates/job-filters.php:35
|
240 |
+
#: templates/job-filters.php:36
|
241 |
msgid "Location"
|
242 |
msgstr ""
|
243 |
|
263 |
msgstr ""
|
264 |
|
265 |
#: includes/admin/class-wp-job-manager-cpt.php:503
|
266 |
+
#: includes/class-wp-job-manager-shortcodes.php:342
|
267 |
msgid "Filled?"
|
268 |
msgstr ""
|
269 |
|
271 |
msgid "Actions"
|
272 |
msgstr ""
|
273 |
|
|
|
274 |
#. translators: %d is the post ID for the job listing.
|
275 |
+
#: includes/admin/class-wp-job-manager-cpt.php:569
|
276 |
msgid "ID: %d"
|
277 |
msgstr ""
|
278 |
|
280 |
msgid "Show more details"
|
281 |
msgstr ""
|
282 |
|
|
|
283 |
#. translators: %s placeholder is the username of the user.
|
284 |
+
#: includes/admin/class-wp-job-manager-cpt.php:613
|
285 |
msgid "by a guest"
|
286 |
msgstr ""
|
287 |
|
288 |
+
#. translators: %s placeholder is the username of the user.
|
289 |
#: includes/admin/class-wp-job-manager-cpt.php:613
|
290 |
msgid "by %s"
|
291 |
msgstr ""
|
292 |
|
293 |
+
#: includes/admin/class-wp-job-manager-cpt.php:633
|
294 |
msgid "Approve"
|
295 |
msgstr ""
|
296 |
|
297 |
+
#: includes/admin/class-wp-job-manager-cpt.php:641
|
298 |
+
#: includes/admin/class-wp-job-manager-writepanels.php:243
|
299 |
+
#: includes/admin/class-wp-job-manager-writepanels.php:293
|
300 |
msgid "View"
|
301 |
msgstr ""
|
302 |
|
303 |
+
#. translators: Placeholder %s is the singular label of the job listing post type.
|
304 |
+
#: includes/admin/class-wp-job-manager-cpt.php:648
|
305 |
+
#: includes/class-wp-job-manager-post-types.php:338
|
306 |
+
#: includes/class-wp-job-manager-shortcodes.php:390
|
307 |
+
#: includes/class-wp-job-manager-shortcodes.php:423
|
308 |
msgid "Edit"
|
309 |
msgstr ""
|
310 |
|
311 |
+
#: includes/admin/class-wp-job-manager-cpt.php:655
|
312 |
+
#: includes/class-wp-job-manager-shortcodes.php:438
|
313 |
msgid "Delete"
|
314 |
msgstr ""
|
315 |
|
329 |
msgid "Job listing archive page"
|
330 |
msgstr ""
|
331 |
|
332 |
+
#: includes/admin/class-wp-job-manager-permalink-settings.php:108
|
333 |
+
#: includes/class-wp-job-manager-post-types.php:1168
|
334 |
+
msgctxt "Job permalink - resave permalinks after changing this"
|
335 |
+
msgid "job"
|
336 |
+
msgstr ""
|
337 |
+
|
338 |
+
#: includes/admin/class-wp-job-manager-permalink-settings.php:117
|
339 |
+
#: includes/class-wp-job-manager-post-types.php:1169
|
340 |
+
msgctxt "Job category slug - resave permalinks after changing this"
|
341 |
+
msgid "job-category"
|
342 |
+
msgstr ""
|
343 |
+
|
344 |
+
#: includes/admin/class-wp-job-manager-permalink-settings.php:126
|
345 |
+
#: includes/class-wp-job-manager-post-types.php:1170
|
346 |
+
msgctxt "Job type slug - resave permalinks after changing this"
|
347 |
+
msgid "job-type"
|
348 |
+
msgstr ""
|
349 |
+
|
350 |
#: includes/admin/class-wp-job-manager-settings.php:89
|
351 |
msgid "General"
|
352 |
msgstr ""
|
356 |
msgstr ""
|
357 |
|
358 |
#: includes/admin/class-wp-job-manager-settings.php:95
|
359 |
+
msgid "Choose how you want the published date for jobs to be displayed on the front-end."
|
|
|
|
|
360 |
msgstr ""
|
361 |
|
362 |
#: includes/admin/class-wp-job-manager-settings.php:98
|
371 |
msgid "Google Maps API Key"
|
372 |
msgstr ""
|
373 |
|
|
|
374 |
#. translators: Placeholder %s is URL to set up a Google Maps API key.
|
375 |
+
#: includes/admin/class-wp-job-manager-settings.php:107
|
376 |
+
msgid "Google requires an API key to retrieve location information for job listings. Acquire an API key from the <a href=\"%s\">Google Maps API developer site</a>."
|
|
|
|
|
377 |
msgstr ""
|
378 |
|
379 |
#: includes/admin/class-wp-job-manager-settings.php:113
|
381 |
msgstr ""
|
382 |
|
383 |
#: includes/admin/class-wp-job-manager-settings.php:114
|
384 |
+
msgid "Delete WP Job Manager data when the plugin is deleted. Once removed, this data cannot be restored."
|
|
|
|
|
385 |
msgstr ""
|
386 |
|
387 |
#: includes/admin/class-wp-job-manager-settings.php:122
|
388 |
+
#: includes/class-wp-job-manager-post-types.php:332
|
389 |
+
#: includes/class-wp-job-manager-post-types.php:435
|
390 |
msgid "Job Listings"
|
391 |
msgstr ""
|
392 |
|
431 |
msgstr ""
|
432 |
|
433 |
#: includes/admin/class-wp-job-manager-settings.php:155
|
434 |
+
msgid "Your site will display the titles of expired listings, but not the content of the listings. Otherwise, expired listings display their full content minus the application area."
|
|
|
|
|
|
|
435 |
msgstr ""
|
436 |
|
437 |
#: includes/admin/class-wp-job-manager-settings.php:163
|
439 |
msgstr ""
|
440 |
|
441 |
#: includes/admin/class-wp-job-manager-settings.php:164
|
442 |
+
msgid "This lets users select from a list of categories when submitting a job. Note: an admin has to create categories before site users can select them."
|
|
|
|
|
443 |
msgstr ""
|
444 |
|
445 |
#: includes/admin/class-wp-job-manager-settings.php:171
|
451 |
msgstr ""
|
452 |
|
453 |
#: includes/admin/class-wp-job-manager-settings.php:173
|
454 |
+
msgid "The category selection box will default to allowing multiple selections on the [jobs] shortcode. Without this, visitors will only be able to select a single category when filtering jobs."
|
|
|
|
|
|
|
455 |
msgstr ""
|
456 |
|
457 |
#: includes/admin/class-wp-job-manager-settings.php:180
|
459 |
msgstr ""
|
460 |
|
461 |
#: includes/admin/class-wp-job-manager-settings.php:181
|
462 |
+
msgid "Determines the logic used to display jobs when selecting multiple categories."
|
|
|
|
|
463 |
msgstr ""
|
464 |
|
465 |
#: includes/admin/class-wp-job-manager-settings.php:184
|
479 |
msgstr ""
|
480 |
|
481 |
#: includes/admin/class-wp-job-manager-settings.php:193
|
482 |
+
msgid "This lets users select from a list of types when submitting a job. Note: an admin has to create types before site users can select them."
|
|
|
|
|
483 |
msgstr ""
|
484 |
|
485 |
#: includes/admin/class-wp-job-manager-settings.php:200
|
491 |
msgstr ""
|
492 |
|
493 |
#: includes/admin/class-wp-job-manager-settings.php:202
|
494 |
+
msgid "This allows users to select more than one type when submitting a job. The metabox on the post editor and the selection box on the front-end job submission form will both reflect this."
|
|
|
|
|
|
|
495 |
msgstr ""
|
496 |
|
497 |
#: includes/admin/class-wp-job-manager-settings.php:209
|
519 |
msgstr ""
|
520 |
|
521 |
#: includes/admin/class-wp-job-manager-settings.php:225
|
522 |
+
msgid "Includes account creation on the listing submission form, to allow non-registered users to create an account and submit a job listing simultaneously."
|
|
|
|
|
|
|
523 |
msgstr ""
|
524 |
|
525 |
#: includes/admin/class-wp-job-manager-settings.php:232
|
531 |
msgstr ""
|
532 |
|
533 |
#: includes/admin/class-wp-job-manager-settings.php:234
|
534 |
+
msgid "Automatically generates usernames for new accounts from the registrant's email address. If this is not enabled, a \"username\" field will display instead."
|
|
|
|
|
|
|
535 |
msgstr ""
|
536 |
|
537 |
#: includes/admin/class-wp-job-manager-settings.php:241
|
543 |
msgstr ""
|
544 |
|
545 |
#: includes/admin/class-wp-job-manager-settings.php:243
|
546 |
+
msgid "Sends an email to the user with their username and a link to set their password. If this is not enabled, a \"password\" field will display instead, and their email address won't be verified."
|
|
|
|
|
|
|
547 |
msgstr ""
|
548 |
|
549 |
#: includes/admin/class-wp-job-manager-settings.php:250
|
551 |
msgstr ""
|
552 |
|
553 |
#: includes/admin/class-wp-job-manager-settings.php:251
|
554 |
+
msgid "Any new accounts created during submission will have this role. If you haven't enabled account creation during submission in the options above, your own method of assigning roles will apply."
|
|
|
|
|
|
|
555 |
msgstr ""
|
556 |
|
557 |
#: includes/admin/class-wp-job-manager-settings.php:258
|
563 |
msgstr ""
|
564 |
|
565 |
#: includes/admin/class-wp-job-manager-settings.php:260
|
566 |
+
msgid "Sets all new submissions to \"pending.\" They will not appear on your site until an admin approves them."
|
|
|
|
|
567 |
msgstr ""
|
568 |
|
569 |
#: includes/admin/class-wp-job-manager-settings.php:267
|
575 |
msgstr ""
|
576 |
|
577 |
#: includes/admin/class-wp-job-manager-settings.php:269
|
578 |
+
msgid "Users can continue to edit pending listings until they are approved by an admin."
|
|
|
|
|
579 |
msgstr ""
|
580 |
|
581 |
#: includes/admin/class-wp-job-manager-settings.php:276
|
587 |
msgstr ""
|
588 |
|
589 |
#: includes/admin/class-wp-job-manager-settings.php:278
|
590 |
+
msgid "Choose whether published job listings can be edited and if edits require admin approval. When moderation is required, the original job listings will be unpublished while edits await admin approval."
|
|
|
|
|
|
|
591 |
msgstr ""
|
592 |
|
593 |
#: includes/admin/class-wp-job-manager-settings.php:281
|
607 |
msgstr ""
|
608 |
|
609 |
#: includes/admin/class-wp-job-manager-settings.php:291
|
610 |
+
msgid "Listings will display for the set number of days, then expire. Leave this field blank if you don't want listings to have an expiration date."
|
|
|
|
|
611 |
msgstr ""
|
612 |
|
613 |
#: includes/admin/class-wp-job-manager-settings.php:297
|
615 |
msgstr ""
|
616 |
|
617 |
#: includes/admin/class-wp-job-manager-settings.php:298
|
618 |
+
msgid "Choose the application method job listers will need to provide. Specify URL or email address only, or allow listers to choose which they prefer."
|
|
|
|
|
619 |
msgstr ""
|
620 |
|
621 |
#: includes/admin/class-wp-job-manager-settings.php:301
|
650 |
msgid "Site Key"
|
651 |
msgstr ""
|
652 |
|
|
|
653 |
#. translators: Placeholder %s is URL to set up Google reCAPTCHA API key.
|
654 |
+
#: includes/admin/class-wp-job-manager-settings.php:325
|
655 |
+
msgid "You can retrieve your reCAPTCHA v2 \"I'm not a robot\" Checkbox site key from <a href=\"%s\">Google's reCAPTCHA admin dashboard</a>."
|
|
|
656 |
msgstr ""
|
657 |
|
658 |
#: includes/admin/class-wp-job-manager-settings.php:332
|
659 |
msgid "Secret Key"
|
660 |
msgstr ""
|
661 |
|
|
|
662 |
#. translators: Placeholder %s is URL to set up Google reCAPTCHA API key.
|
663 |
+
#: includes/admin/class-wp-job-manager-settings.php:334
|
664 |
+
msgid "You can retrieve your reCAPTCHA v2 \"I'm not a robot\" Checkbox secret key from <a href=\"%s\">Google's reCAPTCHA admin dashboard</a>."
|
|
|
665 |
msgstr ""
|
666 |
|
667 |
#: includes/admin/class-wp-job-manager-settings.php:340
|
673 |
msgstr ""
|
674 |
|
675 |
#: includes/admin/class-wp-job-manager-settings.php:342
|
676 |
+
msgid "This will help prevent bots from submitting job listings. You must have entered a valid site key and secret key above."
|
|
|
|
|
677 |
msgstr ""
|
678 |
|
679 |
#: includes/admin/class-wp-job-manager-settings.php:349
|
685 |
msgstr ""
|
686 |
|
687 |
#: includes/admin/class-wp-job-manager-settings.php:355
|
688 |
+
msgid "Select the page where you've used the [submit_job_form] shortcode. This lets the plugin know the location of the form."
|
|
|
|
|
689 |
msgstr ""
|
690 |
|
691 |
#: includes/admin/class-wp-job-manager-settings.php:361
|
693 |
msgstr ""
|
694 |
|
695 |
#: includes/admin/class-wp-job-manager-settings.php:362
|
696 |
+
msgid "Select the page where you've used the [job_dashboard] shortcode. This lets the plugin know the location of the dashboard."
|
|
|
|
|
697 |
msgstr ""
|
698 |
|
699 |
#: includes/admin/class-wp-job-manager-settings.php:368
|
701 |
msgstr ""
|
702 |
|
703 |
#: includes/admin/class-wp-job-manager-settings.php:369
|
704 |
+
msgid "Select the page where you've used the [jobs] shortcode. This lets the plugin know the location of the job listings page."
|
|
|
|
|
705 |
msgstr ""
|
706 |
|
707 |
#: includes/admin/class-wp-job-manager-settings.php:417
|
724 |
msgid "Setup"
|
725 |
msgstr ""
|
726 |
|
727 |
+
#: includes/admin/class-wp-job-manager-setup.php:127
|
728 |
msgid "Error in nonce. Try again."
|
729 |
msgstr ""
|
730 |
|
731 |
#: includes/admin/class-wp-job-manager-taxonomy-meta.php:87
|
732 |
#: includes/admin/class-wp-job-manager-taxonomy-meta.php:110
|
733 |
#: includes/admin/class-wp-job-manager-taxonomy-meta.php:129
|
734 |
+
#: includes/class-wp-job-manager-post-types.php:291
|
735 |
msgid "Employment Type"
|
736 |
msgstr ""
|
737 |
|
740 |
msgid "Posted by"
|
741 |
msgstr ""
|
742 |
|
743 |
+
#. translators: Placeholder %s is the singular name for a job listing post type.
|
744 |
+
#: includes/admin/class-wp-job-manager-writepanels.php:153
|
|
|
745 |
msgid "%s Data"
|
746 |
msgstr ""
|
747 |
|
748 |
+
#: includes/admin/class-wp-job-manager-writepanels.php:232
|
749 |
+
#: includes/admin/class-wp-job-manager-writepanels.php:293
|
750 |
msgid "Use file"
|
751 |
msgstr ""
|
752 |
|
753 |
+
#: includes/admin/class-wp-job-manager-writepanels.php:233
|
754 |
+
#: includes/admin/class-wp-job-manager-writepanels.php:293
|
755 |
msgid "Upload"
|
756 |
msgstr ""
|
757 |
|
758 |
+
#: includes/admin/class-wp-job-manager-writepanels.php:293
|
759 |
msgid "Add file"
|
760 |
msgstr ""
|
761 |
|
762 |
+
#. translators: Used in user select. %1$s is the user's display name; #%2$s is the user ID; %3$s is the user email.
|
763 |
+
#: includes/admin/class-wp-job-manager-writepanels.php:527
|
764 |
#: includes/class-wp-job-manager-ajax.php:419
|
|
|
|
|
765 |
msgid "%1$s (#%2$s – %3$s)"
|
766 |
msgstr ""
|
767 |
|
768 |
+
#: includes/admin/class-wp-job-manager-writepanels.php:534
|
769 |
msgid "Guest User"
|
770 |
msgstr ""
|
771 |
|
772 |
+
#: includes/admin/class-wp-job-manager-writepanels.php:538
|
773 |
msgid "Change"
|
774 |
msgstr ""
|
775 |
|
776 |
+
#: includes/admin/class-wp-job-manager-writepanels.php:541
|
777 |
msgid "Guest"
|
778 |
msgstr ""
|
779 |
|
780 |
+
#. translators: %1$s is placeholder for singular name of the job listing post type; %2$s is the intl formatted date the listing was last modified.
|
781 |
+
#: includes/admin/class-wp-job-manager-writepanels.php:614
|
|
|
782 |
msgid "%1$s was last modified by the user on %2$s."
|
783 |
msgstr ""
|
784 |
|
785 |
#: includes/admin/views/html-admin-notice-core-setup.php:15
|
786 |
+
msgid "You are nearly ready to start listing jobs with <strong>WP Job Manager</strong>."
|
|
|
|
|
787 |
msgstr ""
|
788 |
|
789 |
#: includes/admin/views/html-admin-notice-core-setup.php:19
|
823 |
msgstr ""
|
824 |
|
825 |
#: includes/admin/views/html-admin-setup-step-1.php:14
|
826 |
+
msgid "Thanks for installing <em>WP Job Manager</em>! Let's get your site ready to accept job listings."
|
|
|
|
|
827 |
msgstr ""
|
828 |
|
829 |
#: includes/admin/views/html-admin-setup-step-1.php:15
|
830 |
+
msgid "This setup wizard will walk you through the process of creating pages for job submissions, management, and listings."
|
|
|
|
|
831 |
msgstr ""
|
832 |
|
|
|
833 |
#. translators: Placeholder %s is the path to WPJM documentation site.
|
834 |
+
#: includes/admin/views/html-admin-setup-step-1.php:19
|
835 |
+
msgid "If you'd prefer to skip this and set up your pages manually, our <a href=\"%s\">documentation</a> will walk you through each step."
|
|
|
836 |
msgstr ""
|
837 |
|
838 |
#: includes/admin/views/html-admin-setup-step-1.php:29
|
848 |
msgstr ""
|
849 |
|
850 |
#: includes/admin/views/html-admin-setup-step-2.php:14
|
851 |
+
msgid "With WP Job Manager, employers and applicants can post, manage, and browse job listings right on your website. Tell us which of these common pages you'd like your site to have and we'll create and configure them for you."
|
|
|
|
|
|
|
852 |
msgstr ""
|
853 |
|
854 |
+
#. translators: %1$s is URL to WordPress core shortcode documentation. %2$s is URL to WPJM specific shortcode reference.
|
855 |
#: includes/admin/views/html-admin-setup-step-2.php:20
|
|
|
|
|
856 |
msgid ""
|
857 |
+
"(These pages are created using <a href=\"%1$s\" title=\"What is a shortcode?\" class=\"help-page-link\">shortcodes</a>,\n"
|
858 |
+
"\t\t\t\t\t\t\t\twhich we take care of in this step. If you'd like to build these pages yourself or want to add one of these options to an existing\n"
|
859 |
+
"\t\t\t\t\t\t\t\tpage on your site, you can skip this step and take a look at <a href=\"%2$s\" class=\"help-page-link\">shortcode documentation</a> for detailed instructions.)"
|
|
|
|
|
|
|
|
|
860 |
msgstr ""
|
861 |
|
862 |
#: includes/admin/views/html-admin-setup-step-2.php:39
|
871 |
msgid "Content Shortcode"
|
872 |
msgstr ""
|
873 |
|
874 |
+
#: includes/admin/views/html-admin-setup-step-2.php:47
|
875 |
+
msgctxt "Default page title (wizard)"
|
876 |
+
msgid "Post a Job"
|
877 |
+
msgstr ""
|
878 |
+
|
879 |
#: includes/admin/views/html-admin-setup-step-2.php:49
|
880 |
+
msgid "Creates a page that allows employers to post new jobs directly from a page on your website, instead of requiring them to log in to an admin area. If you'd rather not allow this -- for example, if you want employers to use the admin dashboard only -- you can uncheck this setting."
|
881 |
+
msgstr ""
|
882 |
+
|
883 |
+
#: includes/admin/views/html-admin-setup-step-2.php:55
|
884 |
+
msgctxt "Default page title (wizard)"
|
885 |
+
msgid "Job Dashboard"
|
886 |
msgstr ""
|
887 |
|
888 |
#: includes/admin/views/html-admin-setup-step-2.php:57
|
889 |
+
msgid "Creates a page that allows employers to manage their job listings directly from a page on your website, instead of requiring them to log in to an admin area. If you want to manage all job listings from the admin dashboard only, you can uncheck this setting."
|
890 |
+
msgstr ""
|
891 |
+
|
892 |
+
#: includes/admin/views/html-admin-setup-step-2.php:63
|
893 |
+
msgctxt "Default page title (wizard)"
|
894 |
+
msgid "Jobs"
|
895 |
msgstr ""
|
896 |
|
897 |
#: includes/admin/views/html-admin-setup-step-2.php:64
|
942 |
msgid "Learn to use the front-end job dashboard"
|
943 |
msgstr ""
|
944 |
|
945 |
+
#. translators: %1$s is the URL to WPJM support documentation; %2$s is the URL to WPJM support forums.
|
946 |
#: includes/admin/views/html-admin-setup-step-3.php:52
|
|
|
|
|
947 |
msgid ""
|
948 |
"If you need help, you can find more detail in our\n"
|
949 |
+
"\t\t\t\t\t\t\t<a href=\"%1$s\">support documentation</a> or post your question on the\n"
|
950 |
+
"\t\t\t\t\t\t\t<a href=\"%2$s\">WP Job Manager support forums</a>. Happy hiring!"
|
|
|
|
|
951 |
msgstr ""
|
952 |
|
953 |
#: includes/admin/views/html-admin-setup-step-3.php:66
|
955 |
msgstr ""
|
956 |
|
957 |
#: includes/admin/views/html-admin-setup-step-3.php:67
|
958 |
+
msgid "There are lots of ways you can support open source software projects like this one: contributing code, fixing a bug, assisting with non-English translation, or just telling your friends about WP Job Manager to help spread the word. We appreciate your support!"
|
|
|
|
|
|
|
|
|
959 |
msgstr ""
|
960 |
|
961 |
#: includes/admin/views/html-admin-setup-step-3.php:69
|
974 |
msgid "Help other users on the forums"
|
975 |
msgstr ""
|
976 |
|
|
|
977 |
#. translators: Placeholder %d is the number of found search results.
|
978 |
+
#: includes/class-wp-job-manager-ajax.php:186
|
979 |
msgid "Search completed. Found %d matching record."
|
980 |
msgid_plural "Search completed. Found %d matching records."
|
981 |
msgstr[0] ""
|
985 |
msgid "You must be logged in to upload files using this method."
|
986 |
msgstr ""
|
987 |
|
988 |
+
#. translators: Placeholder %s is the singular label of the job listing post type.
|
|
|
|
|
|
|
989 |
#: includes/class-wp-job-manager-data-exporter.php:51
|
990 |
+
#: includes/class-wp-job-manager-post-types.php:355
|
991 |
msgid "Company Logo"
|
992 |
msgstr ""
|
993 |
|
994 |
#: includes/class-wp-job-manager-data-exporter.php:52
|
995 |
+
#: includes/class-wp-job-manager-post-types.php:1502
|
996 |
msgid "Company Name"
|
997 |
msgstr ""
|
998 |
|
999 |
#: includes/class-wp-job-manager-data-exporter.php:53
|
1000 |
+
#: includes/class-wp-job-manager-post-types.php:1510
|
1001 |
msgid "Company Website"
|
1002 |
msgstr ""
|
1003 |
|
1004 |
#: includes/class-wp-job-manager-data-exporter.php:54
|
1005 |
+
#: includes/class-wp-job-manager-post-types.php:1519
|
1006 |
msgid "Company Tagline"
|
1007 |
msgstr ""
|
1008 |
|
1009 |
#: includes/class-wp-job-manager-data-exporter.php:55
|
1010 |
+
#: includes/class-wp-job-manager-post-types.php:1527
|
1011 |
msgid "Company Twitter"
|
1012 |
msgstr ""
|
1013 |
|
1014 |
#: includes/class-wp-job-manager-data-exporter.php:56
|
1015 |
+
#: includes/class-wp-job-manager-post-types.php:1535
|
1016 |
msgid "Company Video"
|
1017 |
msgstr ""
|
1018 |
|
1020 |
msgid "WP Job Manager User Data"
|
1021 |
msgstr ""
|
1022 |
|
1023 |
+
#. translators: %1$s is version of PHP that WP Job Manager requires; %2$s is the version of PHP WordPress is running on.
|
1024 |
#: includes/class-wp-job-manager-dependency-checker.php:66
|
1025 |
+
msgid "<strong>WP Job Manager</strong> requires a minimum PHP version of %1$s, but you are running %2$s."
|
|
|
|
|
|
|
|
|
1026 |
msgstr ""
|
1027 |
|
1028 |
#: includes/class-wp-job-manager-dependency-checker.php:77
|
1029 |
msgid "Learn more about updating PHP"
|
1030 |
msgstr ""
|
1031 |
|
|
|
1032 |
#. translators: accessibility text
|
1033 |
+
#: includes/class-wp-job-manager-dependency-checker.php:79
|
1034 |
msgid "(opens in a new tab)"
|
1035 |
msgstr ""
|
1036 |
|
1037 |
+
#. translators: %s is the URL for the page where users can go to update WordPress.
|
1038 |
#: includes/class-wp-job-manager-dependency-checker.php:118
|
|
|
|
|
1039 |
msgid "Please <a href=\"%s\">update WordPress</a> to avoid issues."
|
1040 |
msgstr ""
|
1041 |
|
1053 |
msgstr ""
|
1054 |
|
1055 |
#: includes/class-wp-job-manager-email-notifications.php:279
|
1056 |
+
#: includes/class-wp-job-manager-post-types.php:222
|
1057 |
#: includes/forms/class-wp-job-manager-form-submit-job.php:225
|
1058 |
msgid "Job type"
|
1059 |
msgstr ""
|
1060 |
|
1061 |
#: includes/class-wp-job-manager-email-notifications.php:289
|
1062 |
+
#: includes/class-wp-job-manager-post-types.php:158
|
1063 |
#: includes/forms/class-wp-job-manager-form-submit-job.php:234
|
1064 |
msgid "Job category"
|
1065 |
msgstr ""
|
1085 |
msgid "Select the email notifications to enable."
|
1086 |
msgstr ""
|
1087 |
|
1088 |
+
#: includes/class-wp-job-manager-email-notifications.php:631
|
1089 |
msgid "Format"
|
1090 |
msgstr ""
|
1091 |
|
1092 |
+
#: includes/class-wp-job-manager-email-notifications.php:634
|
1093 |
msgid "Send plain text email"
|
1094 |
msgstr ""
|
1095 |
|
1096 |
+
#: includes/class-wp-job-manager-email-notifications.php:635
|
1097 |
msgid "Send rich text email"
|
1098 |
msgstr ""
|
1099 |
|
1114 |
msgid "Employer"
|
1115 |
msgstr ""
|
1116 |
|
1117 |
+
#: includes/class-wp-job-manager-post-types.php:159
|
1118 |
msgid "Job categories"
|
1119 |
msgstr ""
|
1120 |
|
1121 |
+
#. translators: Placeholder %s is the plural label of the job listing category taxonomy type.
|
1122 |
+
#. translators: Placeholder %s is the plural label of the job listing job type taxonomy type.
|
1123 |
+
#. translators: Placeholder %s is the singular label of the job listing post type.
|
1124 |
+
#: includes/class-wp-job-manager-post-types.php:187
|
1125 |
+
#: includes/class-wp-job-manager-post-types.php:250
|
1126 |
+
#: includes/class-wp-job-manager-post-types.php:348
|
|
|
|
|
|
|
1127 |
msgid "Search %s"
|
1128 |
msgstr ""
|
1129 |
|
1130 |
+
#. translators: Placeholder %s is the plural label of the job listing category taxonomy type.
|
1131 |
+
#. translators: Placeholder %s is the plural label of the job listing job type taxonomy type.
|
1132 |
+
#. translators: Placeholder %s is the plural label of the job listing post type.
|
1133 |
+
#: includes/class-wp-job-manager-post-types.php:189
|
1134 |
+
#: includes/class-wp-job-manager-post-types.php:252
|
1135 |
+
#: includes/class-wp-job-manager-post-types.php:334
|
|
|
|
|
|
|
1136 |
msgid "All %s"
|
1137 |
msgstr ""
|
1138 |
|
1139 |
+
#. translators: Placeholder %s is the singular label of the job listing category taxonomy type.
|
1140 |
+
#. translators: Placeholder %s is the singular label of the job listing job type taxonomy type.
|
1141 |
+
#. translators: Placeholder %s is the singular label of the job listing post type.
|
1142 |
+
#: includes/class-wp-job-manager-post-types.php:191
|
1143 |
+
#: includes/class-wp-job-manager-post-types.php:254
|
1144 |
+
#: includes/class-wp-job-manager-post-types.php:354
|
|
|
|
|
|
|
1145 |
msgid "Parent %s"
|
1146 |
msgstr ""
|
1147 |
|
1148 |
+
#. translators: Placeholder %s is the singular label of the job listing category taxonomy type.
|
1149 |
+
#. translators: Placeholder %s is the singular label of the job listing job type taxonomy type.
|
1150 |
+
#: includes/class-wp-job-manager-post-types.php:193
|
1151 |
+
#: includes/class-wp-job-manager-post-types.php:256
|
|
|
|
|
1152 |
msgid "Parent %s:"
|
1153 |
msgstr ""
|
1154 |
|
1155 |
+
#. translators: Placeholder %s is the singular label of the job listing category taxonomy type.
|
1156 |
+
#. translators: Placeholder %s is the singular label of the job listing job type taxonomy type.
|
1157 |
+
#. translators: Placeholder %s is the singular label of the job listing post type.
|
1158 |
+
#: includes/class-wp-job-manager-post-types.php:195
|
1159 |
+
#: includes/class-wp-job-manager-post-types.php:258
|
1160 |
+
#: includes/class-wp-job-manager-post-types.php:340
|
|
|
|
|
|
|
1161 |
msgid "Edit %s"
|
1162 |
msgstr ""
|
1163 |
|
1164 |
+
#. translators: Placeholder %s is the singular label of the job listing category taxonomy type.
|
1165 |
+
#. translators: Placeholder %s is the singular label of the job listing job type taxonomy type.
|
1166 |
+
#: includes/class-wp-job-manager-post-types.php:197
|
1167 |
+
#: includes/class-wp-job-manager-post-types.php:260
|
|
|
|
|
1168 |
msgid "Update %s"
|
1169 |
msgstr ""
|
1170 |
|
1171 |
+
#. translators: Placeholder %s is the singular label of the job listing category taxonomy type.
|
1172 |
+
#. translators: Placeholder %s is the singular label of the job listing job type taxonomy type.
|
1173 |
+
#: includes/class-wp-job-manager-post-types.php:199
|
1174 |
+
#: includes/class-wp-job-manager-post-types.php:262
|
|
|
|
|
1175 |
msgid "Add New %s"
|
1176 |
msgstr ""
|
1177 |
|
1178 |
+
#. translators: Placeholder %s is the singular label of the job listing category taxonomy type.
|
1179 |
+
#. translators: Placeholder %s is the singular label of the job listing job type taxonomy type.
|
1180 |
+
#: includes/class-wp-job-manager-post-types.php:201
|
1181 |
+
#: includes/class-wp-job-manager-post-types.php:264
|
|
|
|
|
1182 |
msgid "New %s Name"
|
1183 |
msgstr ""
|
1184 |
|
1185 |
+
#: includes/class-wp-job-manager-post-types.php:223
|
1186 |
msgid "Job types"
|
1187 |
msgstr ""
|
1188 |
|
1189 |
+
#: includes/class-wp-job-manager-post-types.php:301
|
1190 |
msgid "Job"
|
1191 |
msgstr ""
|
1192 |
|
1193 |
+
#: includes/class-wp-job-manager-post-types.php:302
|
1194 |
msgid "Jobs"
|
1195 |
msgstr ""
|
1196 |
|
1197 |
+
#. translators: Placeholder %s is the plural label of the job listing post type.
|
1198 |
+
#: includes/class-wp-job-manager-post-types.php:335
|
1199 |
msgid "Add New"
|
1200 |
msgstr ""
|
1201 |
|
1202 |
+
#. translators: Placeholder %s is the singular label of the job listing post type.
|
1203 |
+
#: includes/class-wp-job-manager-post-types.php:337
|
|
|
1204 |
msgid "Add %s"
|
1205 |
msgstr ""
|
1206 |
|
1207 |
+
#. translators: Placeholder %s is the singular label of the job listing post type.
|
1208 |
+
#: includes/class-wp-job-manager-post-types.php:342
|
|
|
1209 |
msgid "New %s"
|
1210 |
msgstr ""
|
1211 |
|
1212 |
+
#. translators: Placeholder %s is the singular label of the job listing post type.
|
1213 |
+
#: includes/class-wp-job-manager-post-types.php:344
|
1214 |
+
#: includes/class-wp-job-manager-post-types.php:346
|
|
|
1215 |
msgid "View %s"
|
1216 |
msgstr ""
|
1217 |
|
1218 |
+
#. translators: Placeholder %s is the singular label of the job listing post type.
|
1219 |
+
#: includes/class-wp-job-manager-post-types.php:350
|
|
|
1220 |
msgid "No %s found"
|
1221 |
msgstr ""
|
1222 |
|
1223 |
+
#. translators: Placeholder %s is the plural label of the job listing post type.
|
1224 |
+
#: includes/class-wp-job-manager-post-types.php:352
|
|
|
1225 |
msgid "No %s found in trash"
|
1226 |
msgstr ""
|
1227 |
|
1228 |
+
#: includes/class-wp-job-manager-post-types.php:356
|
1229 |
msgid "Set company logo"
|
1230 |
msgstr ""
|
1231 |
|
1232 |
+
#: includes/class-wp-job-manager-post-types.php:357
|
1233 |
msgid "Remove company logo"
|
1234 |
msgstr ""
|
1235 |
|
1236 |
+
#: includes/class-wp-job-manager-post-types.php:358
|
1237 |
msgid "Use as company logo"
|
1238 |
msgstr ""
|
1239 |
|
1240 |
+
#. translators: Placeholder %s is the plural label of the job listing post type.
|
1241 |
+
#: includes/class-wp-job-manager-post-types.php:361
|
|
|
1242 |
msgid "This is where you can create and manage %s."
|
1243 |
msgstr ""
|
1244 |
|
1245 |
+
#: includes/class-wp-job-manager-post-types.php:396
|
1246 |
+
#: wp-job-manager-functions.php:335
|
1247 |
+
msgctxt "post status"
|
1248 |
+
msgid "Expired"
|
1249 |
+
msgstr ""
|
1250 |
+
|
1251 |
#. translators: Placeholder %s is the number of expired posts of this type.
|
1252 |
+
#: includes/class-wp-job-manager-post-types.php:403
|
1253 |
msgid "Expired <span class=\"count\">(%s)</span>"
|
1254 |
msgid_plural "Expired <span class=\"count\">(%s)</span>"
|
1255 |
msgstr[0] ""
|
1256 |
msgstr[1] ""
|
1257 |
|
1258 |
+
#: includes/class-wp-job-manager-post-types.php:409
|
1259 |
+
#: wp-job-manager-functions.php:336
|
1260 |
+
msgctxt "post status"
|
1261 |
+
msgid "Preview"
|
1262 |
+
msgstr ""
|
1263 |
+
|
1264 |
#. translators: Placeholder %s is the number of posts in a preview state.
|
1265 |
+
#: includes/class-wp-job-manager-post-types.php:415
|
1266 |
msgid "Preview <span class=\"count\">(%s)</span>"
|
1267 |
msgid_plural "Preview <span class=\"count\">(%s)</span>"
|
1268 |
msgstr[0] ""
|
1269 |
msgstr[1] ""
|
1270 |
|
1271 |
+
#: includes/class-wp-job-manager-post-types.php:1152
|
1272 |
+
msgctxt "Post type archive slug - resave permalinks after changing this"
|
1273 |
+
msgid "jobs"
|
1274 |
+
msgstr ""
|
1275 |
+
|
1276 |
+
#: includes/class-wp-job-manager-post-types.php:1465
|
1277 |
#: includes/forms/class-wp-job-manager-form-submit-job.php:194
|
1278 |
msgid "Application email/URL"
|
1279 |
msgstr ""
|
1280 |
|
1281 |
+
#: includes/class-wp-job-manager-post-types.php:1466
|
1282 |
#: includes/forms/class-wp-job-manager-form-submit-job.php:195
|
1283 |
msgid "Enter an email address or website URL"
|
1284 |
msgstr ""
|
1285 |
|
1286 |
+
#: includes/class-wp-job-manager-post-types.php:1469
|
1287 |
#: includes/forms/class-wp-job-manager-form-submit-job.php:184
|
1288 |
msgid "Application email"
|
1289 |
msgstr ""
|
1290 |
|
1291 |
+
#: includes/class-wp-job-manager-post-types.php:1470
|
1292 |
#: includes/forms/class-wp-job-manager-form-submit-job.php:185
|
1293 |
msgid "you@example.com"
|
1294 |
msgstr ""
|
1295 |
|
1296 |
+
#: includes/class-wp-job-manager-post-types.php:1472
|
1297 |
#: includes/forms/class-wp-job-manager-form-submit-job.php:189
|
1298 |
msgid "Application URL"
|
1299 |
msgstr ""
|
1300 |
|
1301 |
+
#: includes/class-wp-job-manager-post-types.php:1473
|
1302 |
#: includes/forms/class-wp-job-manager-form-submit-job.php:190
|
1303 |
msgid "https://"
|
1304 |
msgstr ""
|
1305 |
|
1306 |
+
#: includes/class-wp-job-manager-post-types.php:1476
|
1307 |
+
msgid "Job listing expires at the end of the day."
|
1308 |
+
msgstr ""
|
1309 |
+
|
1310 |
+
#: includes/class-wp-job-manager-post-types.php:1478
|
1311 |
+
msgid "Job listing expires at the start of the day."
|
1312 |
+
msgstr ""
|
1313 |
+
|
1314 |
+
#: includes/class-wp-job-manager-post-types.php:1484
|
1315 |
#: includes/forms/class-wp-job-manager-form-submit-job.php:221
|
1316 |
msgid "e.g. \"London\""
|
1317 |
msgstr ""
|
1318 |
|
1319 |
+
#: includes/class-wp-job-manager-post-types.php:1485
|
1320 |
msgid "Leave this blank if the location is not important."
|
1321 |
msgstr ""
|
1322 |
|
1323 |
+
#: includes/class-wp-job-manager-post-types.php:1494
|
1324 |
+
msgid "This field is required for the \"application\" area to appear beneath the listing."
|
|
|
|
|
1325 |
msgstr ""
|
1326 |
|
1327 |
+
#: includes/class-wp-job-manager-post-types.php:1520
|
1328 |
msgid "Brief description about the company"
|
1329 |
msgstr ""
|
1330 |
|
1331 |
+
#: includes/class-wp-job-manager-post-types.php:1536
|
1332 |
msgid "URL to the company video"
|
1333 |
msgstr ""
|
1334 |
|
1335 |
+
#: includes/class-wp-job-manager-post-types.php:1545
|
1336 |
msgid "Position Filled"
|
1337 |
msgstr ""
|
1338 |
|
1339 |
+
#: includes/class-wp-job-manager-post-types.php:1551
|
1340 |
msgid "Filled listings will no longer accept applications."
|
1341 |
msgstr ""
|
1342 |
|
1343 |
+
#: includes/class-wp-job-manager-post-types.php:1554
|
1344 |
msgid "Featured Listing"
|
1345 |
msgstr ""
|
1346 |
|
1347 |
+
#: includes/class-wp-job-manager-post-types.php:1556
|
1348 |
+
msgid "Featured listings will be sticky during searches, and can be styled differently."
|
|
|
|
|
1349 |
msgstr ""
|
1350 |
|
1351 |
+
#: includes/class-wp-job-manager-post-types.php:1564
|
1352 |
msgid "Listing Expiry Date"
|
1353 |
msgstr ""
|
1354 |
|
1355 |
+
#: includes/class-wp-job-manager-shortcodes.php:150
|
1356 |
msgid "Invalid ID"
|
1357 |
msgstr ""
|
1358 |
|
1359 |
+
#: includes/class-wp-job-manager-shortcodes.php:157
|
1360 |
msgid "This position has already been filled"
|
1361 |
msgstr ""
|
1362 |
|
|
|
1363 |
#. translators: Placeholder %s is the job listing title.
|
1364 |
+
#: includes/class-wp-job-manager-shortcodes.php:165
|
1365 |
msgid "%s has been filled"
|
1366 |
msgstr ""
|
1367 |
|
1368 |
+
#: includes/class-wp-job-manager-shortcodes.php:170
|
1369 |
msgid "This position is not filled"
|
1370 |
msgstr ""
|
1371 |
|
|
|
1372 |
#. translators: Placeholder %s is the job listing title.
|
1373 |
+
#: includes/class-wp-job-manager-shortcodes.php:178
|
1374 |
msgid "%s has been marked as not filled"
|
1375 |
msgstr ""
|
1376 |
|
|
|
1377 |
#. translators: Placeholder %s is the job listing title.
|
1378 |
+
#: includes/class-wp-job-manager-shortcodes.php:186
|
1379 |
msgid "%s has been deleted"
|
1380 |
msgstr ""
|
1381 |
|
1382 |
+
#: includes/class-wp-job-manager-shortcodes.php:191
|
1383 |
+
#: includes/class-wp-job-manager-shortcodes.php:205
|
1384 |
msgid "Missing submission page."
|
1385 |
msgstr ""
|
1386 |
|
1387 |
+
#. translators: Placeholder %s is the plural label for the job listing post type.
|
1388 |
+
#: includes/class-wp-job-manager-shortcodes.php:341
|
1389 |
#: includes/widgets/class-wp-job-manager-widget-featured-jobs.php:36
|
1390 |
#: includes/widgets/class-wp-job-manager-widget-featured-jobs.php:52
|
1391 |
#: includes/widgets/class-wp-job-manager-widget-recent-jobs.php:36
|
1392 |
msgid "Title"
|
1393 |
msgstr ""
|
1394 |
|
1395 |
+
#: includes/class-wp-job-manager-shortcodes.php:343
|
1396 |
msgid "Date Posted"
|
1397 |
msgstr ""
|
1398 |
|
1399 |
+
#: includes/class-wp-job-manager-shortcodes.php:344
|
1400 |
msgid "Listing Expires"
|
1401 |
msgstr ""
|
1402 |
|
1403 |
+
#: includes/class-wp-job-manager-shortcodes.php:396
|
1404 |
msgid "Mark not filled"
|
1405 |
msgstr ""
|
1406 |
|
1407 |
+
#: includes/class-wp-job-manager-shortcodes.php:401
|
1408 |
msgid "Mark filled"
|
1409 |
msgstr ""
|
1410 |
|
1411 |
+
#: includes/class-wp-job-manager-shortcodes.php:407
|
1412 |
msgid "Duplicate"
|
1413 |
msgstr ""
|
1414 |
|
1415 |
+
#: includes/class-wp-job-manager-shortcodes.php:414
|
1416 |
msgid "Relist"
|
1417 |
msgstr ""
|
1418 |
|
1419 |
+
#: includes/class-wp-job-manager-shortcodes.php:431
|
1420 |
msgid "Continue Submission"
|
1421 |
msgstr ""
|
1422 |
|
1423 |
+
#: includes/class-wp-job-manager-shortcodes.php:626
|
1424 |
+
#: includes/class-wp-job-manager-shortcodes.php:664
|
1425 |
msgid "Load more listings"
|
1426 |
msgstr ""
|
1427 |
|
1428 |
+
#. translators: Placeholder %s is a URL to the document on wpjobmanager.com with info on usage tracking.
|
1429 |
#: includes/class-wp-job-manager-usage-tracking.php:228
|
|
|
|
|
1430 |
msgid ""
|
1431 |
+
"We'd love if you helped us make WP Job Manager better by allowing us to collect\n"
|
|
|
1432 |
"\t\t\t\t<a href=\"%s\">usage tracking data</a>. No sensitive information is\n"
|
1433 |
"\t\t\t\tcollected, and you can opt out at any time."
|
1434 |
msgstr ""
|
1435 |
|
1436 |
+
#. translators: the href tag contains the URL for the page telling users what data WPJM tracks.
|
1437 |
+
#: includes/class-wp-job-manager-usage-tracking.php:293
|
|
|
1438 |
msgid ""
|
1439 |
"Help us make WP Job Manager better by allowing us to collect\n"
|
1440 |
"\t\t\t\t<a href=\"%s\">usage tracking data</a>.\n"
|
1441 |
"\t\t\t\tNo sensitive information is collected."
|
1442 |
msgstr ""
|
1443 |
|
1444 |
+
#: includes/class-wp-job-manager-usage-tracking.php:320
|
|
|
1445 |
msgid "Enable Usage Tracking"
|
1446 |
msgstr ""
|
1447 |
|
1448 |
+
#. translators: Placeholders %1$s and %2$s are the names of the two cookies used in WP Job Manager.
|
1449 |
#: includes/class-wp-job-manager.php:139
|
|
|
|
|
1450 |
msgid ""
|
1451 |
+
"This site adds the following cookies to help users resume job submissions that they\n"
|
|
|
1452 |
"\t\t\t\thave started but have not completed: %1$s and %2$s"
|
1453 |
msgstr ""
|
1454 |
|
1455 |
+
#: includes/class-wp-job-manager.php:360
|
1456 |
msgid "Load previous listings"
|
1457 |
msgstr ""
|
1458 |
|
1459 |
+
#: includes/class-wp-job-manager.php:488
|
1460 |
msgid "Invalid file type. Accepted types:"
|
1461 |
msgstr ""
|
1462 |
|
1463 |
+
#: includes/class-wp-job-manager.php:506
|
1464 |
+
msgid "Any Category"
|
1465 |
+
msgstr ""
|
1466 |
+
|
1467 |
+
#. translators: Placeholder %d is the number of files to that users are limited to.
|
1468 |
+
#: includes/class-wp-job-manager.php:522
|
1469 |
+
#: includes/forms/class-wp-job-manager-form-submit-job.php:446
|
1470 |
msgid "You are only allowed to upload a maximum of %d files."
|
1471 |
msgstr ""
|
1472 |
|
1473 |
+
#: includes/class-wp-job-manager.php:530
|
1474 |
msgid "Are you sure you want to delete this listing?"
|
1475 |
msgstr ""
|
1476 |
|
1477 |
+
#: includes/class-wp-job-manager.php:538
|
1478 |
msgid "This field is required."
|
1479 |
msgstr ""
|
1480 |
|
1491 |
msgstr ""
|
1492 |
|
1493 |
#: includes/emails/class-wp-job-manager-email-admin-new-job.php:44
|
1494 |
+
msgid "Send a notice to the site administrator when a new job is submitted on the frontend."
|
|
|
|
|
1495 |
msgstr ""
|
1496 |
|
|
|
1497 |
#. translators: Placeholder %s is the job listing post title.
|
1498 |
+
#: includes/emails/class-wp-job-manager-email-admin-new-job.php:63
|
1499 |
msgid "New Job Listing Submitted: %s"
|
1500 |
msgstr ""
|
1501 |
|
1504 |
msgstr ""
|
1505 |
|
1506 |
#: includes/emails/class-wp-job-manager-email-admin-updated-job.php:44
|
1507 |
+
msgid "Send a notice to the site administrator when a job is updated on the frontend."
|
|
|
|
|
1508 |
msgstr ""
|
1509 |
|
|
|
1510 |
#. translators: Placeholder %s is the job listing post title.
|
1511 |
+
#: includes/emails/class-wp-job-manager-email-admin-updated-job.php:63
|
1512 |
msgid "Job Listing Updated: %s"
|
1513 |
msgstr ""
|
1514 |
|
1520 |
msgid "Send notices to employers before a job listing expires."
|
1521 |
msgstr ""
|
1522 |
|
|
|
1523 |
#. translators: Placeholder %s is the job listing post title.
|
1524 |
+
#: includes/emails/class-wp-job-manager-email-employer-expiring-job.php:79
|
1525 |
msgid "Job Listing Expiring: %s"
|
1526 |
msgstr ""
|
1527 |
|
1554 |
msgstr ""
|
1555 |
|
1556 |
#: includes/forms/class-wp-job-manager-form-edit-job.php:203
|
1557 |
+
msgid "Your changes have been submitted and your listing will be visible again once approved."
|
|
|
|
|
1558 |
msgstr ""
|
1559 |
|
1560 |
#: includes/forms/class-wp-job-manager-form-submit-job.php:82
|
1562 |
msgstr ""
|
1563 |
|
1564 |
#: includes/forms/class-wp-job-manager-form-submit-job.php:88
|
1565 |
+
#: includes/forms/class-wp-job-manager-form-submit-job.php:609
|
1566 |
#: templates/job-preview.php:30
|
1567 |
msgid "Preview"
|
1568 |
msgstr ""
|
1628 |
msgid "Logo"
|
1629 |
msgstr ""
|
1630 |
|
|
|
1631 |
#. translators: Placeholder %s is the label for the required field.
|
1632 |
+
#: includes/forms/class-wp-job-manager-form-submit-job.php:367
|
1633 |
msgid "%s is a required field"
|
1634 |
msgstr ""
|
1635 |
|
|
|
1636 |
#. translators: Placeholder %s is the field label that is did not validate.
|
1637 |
+
#: includes/forms/class-wp-job-manager-form-submit-job.php:378
|
1638 |
msgid "%s is invalid"
|
1639 |
msgstr ""
|
1640 |
|
1641 |
+
#: includes/forms/class-wp-job-manager-form-submit-job.php:408
|
1642 |
msgid "Invalid image path."
|
1643 |
msgstr ""
|
1644 |
|
1645 |
+
#. translators: Placeholder %1$s is field label; %2$s is the file mime type; %3$s is the allowed mime-types.
|
1646 |
+
#. translators: %1$s is the file field label; %2$s is the file type; %3$s is the list of allowed file types.
|
1647 |
+
#: includes/forms/class-wp-job-manager-form-submit-job.php:419
|
1648 |
+
#: wp-job-manager-functions.php:1368
|
|
|
|
|
1649 |
msgid "\"%1$s\" (filetype %2$s) needs to be one of the following file types: %3$s"
|
1650 |
msgstr ""
|
1651 |
|
1652 |
+
#: includes/forms/class-wp-job-manager-form-submit-job.php:429
|
1653 |
msgid "Invalid attachment provided."
|
1654 |
msgstr ""
|
1655 |
|
1656 |
+
#: includes/forms/class-wp-job-manager-form-submit-job.php:473
|
1657 |
msgid "Please enter a valid application email address"
|
1658 |
msgstr ""
|
1659 |
|
1660 |
+
#: includes/forms/class-wp-job-manager-form-submit-job.php:478
|
1661 |
msgid "Please enter a valid application URL"
|
1662 |
msgstr ""
|
1663 |
|
1664 |
+
#: includes/forms/class-wp-job-manager-form-submit-job.php:484
|
1665 |
msgid "Please enter a valid application email address or URL"
|
1666 |
msgstr ""
|
1667 |
|
1668 |
+
#: includes/forms/class-wp-job-manager-form-submit-job.php:668
|
1669 |
msgid "Please enter a username."
|
1670 |
msgstr ""
|
1671 |
|
1672 |
+
#: includes/forms/class-wp-job-manager-form-submit-job.php:672
|
1673 |
msgid "Please enter a password."
|
1674 |
msgstr ""
|
1675 |
|
1676 |
+
#: includes/forms/class-wp-job-manager-form-submit-job.php:676
|
1677 |
msgid "Please enter your email address."
|
1678 |
msgstr ""
|
1679 |
|
1680 |
+
#: includes/forms/class-wp-job-manager-form-submit-job.php:682
|
1681 |
msgid "Passwords must match."
|
1682 |
msgstr ""
|
1683 |
|
|
|
1684 |
#. translators: Placeholder %s is the password hint.
|
1685 |
+
#: includes/forms/class-wp-job-manager-form-submit-job.php:688
|
1686 |
msgid "Invalid Password: %s"
|
1687 |
msgstr ""
|
1688 |
|
1689 |
+
#: includes/forms/class-wp-job-manager-form-submit-job.php:690
|
1690 |
msgid "Password is not valid."
|
1691 |
msgstr ""
|
1692 |
|
1693 |
+
#: includes/forms/class-wp-job-manager-form-submit-job.php:722
|
1694 |
msgid "You must be signed in to post a new listing."
|
1695 |
msgstr ""
|
1696 |
|
|
|
1697 |
#. translators: placeholder is the URL to the job dashboard page.
|
1698 |
+
#: includes/forms/class-wp-job-manager-form-submit-job.php:748
|
1699 |
+
msgid "Draft was saved. Job listing drafts can be resumed from the <a href=\"%s\">job dashboard</a>."
|
|
|
1700 |
msgstr ""
|
1701 |
|
1702 |
#: includes/helper/class-wp-job-manager-helper.php:279
|
1704 |
msgstr ""
|
1705 |
|
1706 |
#: includes/helper/class-wp-job-manager-helper.php:282
|
1707 |
+
#: tests/php/tests/includes/helper/test_class.wp-job-manager-helper.php:262
|
1708 |
msgid "Manage License"
|
1709 |
msgstr ""
|
1710 |
|
1711 |
#: includes/helper/class-wp-job-manager-helper.php:285
|
1712 |
#: includes/helper/views/html-licences.php:75
|
1713 |
+
#: tests/php/tests/includes/helper/test_class.wp-job-manager-helper.php:278
|
1714 |
msgid "Activate License"
|
1715 |
msgstr ""
|
1716 |
|
1717 |
#: includes/helper/class-wp-job-manager-helper.php:494
|
1718 |
+
msgid "Please enter a valid license key and email address in order to activate this plugin's license."
|
|
|
|
|
1719 |
msgstr ""
|
1720 |
|
1721 |
#: includes/helper/class-wp-job-manager-helper.php:526
|
1743 |
msgid "Hide notice"
|
1744 |
msgstr ""
|
1745 |
|
|
|
1746 |
#. translators: %1$s is the plugin name, %2$s is the license setting page URL.
|
1747 |
+
#: includes/helper/views/html-licence-key-error.php:15
|
1748 |
+
msgid "There is a problem with the license for \"%1$s\". Please <a href=\"%2$s\">manage the license</a> to check for a solution and continue receiving updates."
|
|
|
|
|
1749 |
msgstr ""
|
1750 |
|
|
|
1751 |
#. translators: %1$s is the license setting page URL, %2$s is the plugin name.
|
1752 |
+
#: includes/helper/views/html-licence-key-notice.php:15
|
1753 |
+
msgid "<a href=\"%1$s\">Please enter your license key</a> to get updates for \"%2$s\"."
|
|
|
1754 |
msgstr ""
|
1755 |
|
1756 |
#: includes/helper/views/html-licences.php:56
|
1772 |
msgid "Deactivate License"
|
1773 |
msgstr ""
|
1774 |
|
|
|
1775 |
#. translators: Placeholder %s is the lost license key URL.
|
1776 |
+
#: includes/helper/views/html-licences.php:84
|
1777 |
msgid "Lost your license key? <a href=\"%s\">Retrieve it here</a>."
|
1778 |
msgstr ""
|
1779 |
|
1781 |
msgid "No plugins are activated that have licenses managed by WP Job Manager."
|
1782 |
msgstr ""
|
1783 |
|
1784 |
+
#. translators: Placeholder %s is the plural label for the job listing post type.
|
1785 |
#: includes/widgets/class-wp-job-manager-widget-featured-jobs.php:27
|
1786 |
#: includes/widgets/class-wp-job-manager-widget-featured-jobs.php:35
|
|
|
|
|
1787 |
msgid "Featured %s"
|
1788 |
msgstr ""
|
1789 |
|
1829 |
msgid "Show Company Logo"
|
1830 |
msgstr ""
|
1831 |
|
1832 |
+
#. translators: Placeholder %s is the plural label for the job listing post type.
|
1833 |
#: includes/widgets/class-wp-job-manager-widget-recent-jobs.php:27
|
1834 |
#: includes/widgets/class-wp-job-manager-widget-recent-jobs.php:35
|
|
|
|
|
1835 |
msgid "Recent %s"
|
1836 |
msgstr ""
|
1837 |
|
1838 |
#: includes/widgets/class-wp-job-manager-widget-recent-jobs.php:29
|
1839 |
+
msgid "Display a list of recent listings on your site, optionally matching a keyword and location."
|
|
|
|
|
1840 |
msgstr ""
|
1841 |
|
1842 |
#: includes/widgets/class-wp-job-manager-widget-recent-jobs.php:41
|
1843 |
msgid "Keyword"
|
1844 |
msgstr ""
|
1845 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1846 |
#: templates/account-signin.php:21
|
1847 |
msgid "Your account"
|
1848 |
msgstr ""
|
1849 |
|
|
|
1850 |
#. translators: Placeholder %s is the username.
|
1851 |
+
#: templates/account-signin.php:26
|
1852 |
msgid "You are currently signed in as <strong>%s</strong>."
|
1853 |
msgstr ""
|
1854 |
|
1860 |
msgid "Have an account?"
|
1861 |
msgstr ""
|
1862 |
|
1863 |
+
#: templates/account-signin.php:42
|
1864 |
+
#: templates/job-dashboard-login.php:20
|
1865 |
msgid "Sign in"
|
1866 |
msgstr ""
|
1867 |
|
|
|
1868 |
#. translators: Placeholder %s is the optionally text.
|
1869 |
+
#: templates/account-signin.php:47
|
1870 |
+
msgid "If you don't have an account you can %screate one below by entering your email address/username."
|
|
|
1871 |
msgstr ""
|
1872 |
|
1873 |
+
#. translators: Placeholder %s is the optionally text.
|
1874 |
#: templates/account-signin.php:47
|
1875 |
msgid "optionally"
|
1876 |
msgstr ""
|
1883 |
msgid "You must sign in to create a new listing."
|
1884 |
msgstr ""
|
1885 |
|
1886 |
+
#: templates/account-signin.php:65
|
1887 |
+
#: templates/job-submit.php:43
|
1888 |
#: templates/job-submit.php:60
|
1889 |
msgid "(optional)"
|
1890 |
msgstr ""
|
1909 |
msgid "This listing has expired."
|
1910 |
msgstr ""
|
1911 |
|
1912 |
+
#. translators: %1$s placeholder is URL to the blog. %2$s placeholder is the name of the site.
|
1913 |
#: templates/emails/admin-expiring-job.php:32
|
|
|
|
|
1914 |
msgid "The following job listing is expiring today from <a href=\"%1$s\">%2$s</a>."
|
1915 |
msgstr ""
|
1916 |
|
1917 |
+
#. translators: %1$s placeholder is URL to the blog. %2$s placeholder is the name of the site.
|
1918 |
#: templates/emails/admin-expiring-job.php:35
|
|
|
|
|
1919 |
msgid "The following job listing is expiring soon from <a href=\"%1$s\">%2$s</a>."
|
1920 |
msgstr ""
|
1921 |
|
|
|
1922 |
#. translators: Placeholder is URL to site's WP admin.
|
1923 |
+
#: templates/emails/admin-expiring-job.php:41
|
1924 |
msgid "Visit <a href=\"%s\">WordPress admin</a> to manage the listing."
|
1925 |
msgstr ""
|
1926 |
|
1927 |
+
#. translators: %1$s placeholder is URL to the blog. %2$s placeholder is the name of the site.
|
1928 |
#: templates/emails/admin-new-job.php:27
|
|
|
|
|
1929 |
msgid "A new job listing has been submitted to <a href=\"%s\">%s</a>."
|
1930 |
msgstr ""
|
1931 |
|
1934 |
msgid "It has been published and is now available to the public."
|
1935 |
msgstr ""
|
1936 |
|
|
|
1937 |
#. translators: Placeholder %s is the admin job listings URL.
|
1938 |
+
#: templates/emails/admin-new-job.php:40
|
1939 |
+
msgid "It is awaiting approval by an administrator in <a href=\"%s\">WordPress admin</a>."
|
|
|
1940 |
msgstr ""
|
1941 |
|
1942 |
+
#. translators: %1$s placeholder is URL to the blog. %2$s placeholder is the name of the site.
|
1943 |
#: templates/emails/admin-updated-job.php:26
|
|
|
|
|
1944 |
msgid "A job listing has been updated on <a href=\"%s\">%s</a>."
|
1945 |
msgstr ""
|
1946 |
|
1949 |
msgid "The changes have been published and are now available to the public."
|
1950 |
msgstr ""
|
1951 |
|
|
|
1952 |
#. translators: Placeholder %s is the admin job listings URL.
|
1953 |
+
#: templates/emails/admin-updated-job.php:34
|
1954 |
+
msgid "The job listing is not publicly available until the changes are approved by an administrator in the site's <a href=\"%s\">WordPress admin</a>."
|
|
|
1955 |
msgstr ""
|
1956 |
|
1957 |
+
#. translators: %1$s placeholder is URL to the blog. %2$s placeholder is the name of the site.
|
1958 |
#: templates/emails/employer-expiring-job.php:33
|
|
|
|
|
1959 |
msgid "The following job listing is expiring today from <a href=\"%s\">%s</a>."
|
1960 |
msgstr ""
|
1961 |
|
1962 |
+
#. translators: %1$s placeholder is URL to the blog. %2$s placeholder is the name of the site.
|
1963 |
#: templates/emails/employer-expiring-job.php:42
|
|
|
|
|
1964 |
msgid "The following job listing is expiring soon from <a href=\"%s\">%s</a>."
|
1965 |
msgstr ""
|
1966 |
|
|
|
1967 |
#. translators: Placeholder %s is the job listing dashboard URL.
|
1968 |
+
#: templates/emails/employer-expiring-job.php:51
|
1969 |
msgid "Visit the <a href=\"%s\">job listing dashboard</a> to manage the listing."
|
1970 |
msgstr ""
|
1971 |
|
1972 |
+
#. translators: %1$s placeholder is the name of the site, %2$s placeholder is URL to the blog.
|
1973 |
#: templates/emails/plain/admin-expiring-job.php:31
|
1974 |
#: templates/emails/plain/employer-expiring-job.php:30
|
|
|
|
|
1975 |
msgid "The following job listing is expiring today from %1$s (%2$s)."
|
1976 |
msgstr ""
|
1977 |
|
1978 |
+
#. translators: %1$s placeholder is the name of the site, %2$s placeholder is URL to the blog.
|
1979 |
#: templates/emails/plain/admin-expiring-job.php:38
|
1980 |
#: templates/emails/plain/employer-expiring-job.php:33
|
|
|
|
|
1981 |
msgid "The following job listing is expiring soon from %1$s (%2$s)."
|
1982 |
msgstr ""
|
1983 |
|
|
|
1984 |
#. translators: Placeholder %s is the edit job URL.
|
1985 |
+
#: templates/emails/plain/admin-expiring-job.php:46
|
1986 |
msgid "Visit WordPress admin (%s) to manage the listing."
|
1987 |
msgstr ""
|
1988 |
|
1989 |
+
#. translators: %1$s placeholder is the name of the site, %2$s placeholder is URL to the blog.
|
1990 |
#: templates/emails/plain/admin-new-job.php:24
|
|
|
|
|
1991 |
msgid "A new job listing has been submitted to %1$s (%2$s)."
|
1992 |
msgstr ""
|
1993 |
|
|
|
1994 |
#. translators: Placeholder %s is the admin job listings URL.
|
1995 |
+
#: templates/emails/plain/admin-new-job.php:31
|
1996 |
msgid "It is awaiting approval by an administrator in WordPress admin (%s)."
|
1997 |
msgstr ""
|
1998 |
|
1999 |
+
#. translators: %1$s placeholder is the name of the site, %2$s placeholder is URL to the blog.
|
2000 |
#: templates/emails/plain/admin-updated-job.php:24
|
|
|
|
|
2001 |
msgid "A job listing has been updated on %1$s (%2$s)."
|
2002 |
msgstr ""
|
2003 |
|
|
|
2004 |
#. translators: Placeholder %s is the admin job listings URL.
|
2005 |
+
#: templates/emails/plain/admin-updated-job.php:31
|
2006 |
+
msgid "The job listing is not publicly available until the changes are approved by an administrator in the site's WordPress admin (%s)."
|
|
|
2007 |
msgstr ""
|
2008 |
|
|
|
2009 |
#. translators: Placeholder %s is the job listing dashboard URL.
|
2010 |
+
#: templates/emails/plain/employer-expiring-job.php:36
|
2011 |
msgid "Visit the job listing dashboard (%s) to manage the listing."
|
2012 |
msgstr ""
|
2013 |
|
2016 |
msgstr ""
|
2017 |
|
2018 |
#: templates/form-fields/multiselect-field.php:20
|
2019 |
+
#: wp-job-manager-functions.php:1135
|
2020 |
msgid "No results match"
|
2021 |
msgstr ""
|
2022 |
|
2023 |
#: templates/form-fields/multiselect-field.php:20
|
2024 |
+
#: wp-job-manager-functions.php:1136
|
2025 |
msgid "Select Some Options"
|
2026 |
msgstr ""
|
2027 |
|
2030 |
msgid "remove"
|
2031 |
msgstr ""
|
2032 |
|
|
|
2033 |
#. translators: %1$s is the email address, %2$s is the subject query args.
|
2034 |
+
#: templates/job-application-email.php:19
|
2035 |
+
msgid "To apply for this job <strong>email your details to</strong> <a class=\"job_application_email\" href=\"mailto:%1$s%2$s\">%1$s</a>"
|
|
|
2036 |
msgstr ""
|
2037 |
|
2038 |
#: templates/job-application-url.php:18
|
2047 |
msgid "You need to be signed in to manage your listings."
|
2048 |
msgstr ""
|
2049 |
|
2050 |
+
#: templates/job-dashboard.php:27
|
2051 |
msgid "Your listings are shown in the table below."
|
2052 |
msgstr ""
|
2053 |
|
2054 |
+
#: templates/job-dashboard.php:39
|
2055 |
msgid "You do not have any active listings."
|
2056 |
msgstr ""
|
2057 |
|
2058 |
+
#: templates/job-dashboard.php:52
|
2059 |
msgid "Featured Job"
|
2060 |
msgstr ""
|
2061 |
|
2062 |
+
#: templates/job-filters.php:30
|
2063 |
+
#: templates/job-filters.php:31
|
2064 |
msgid "Keywords"
|
2065 |
msgstr ""
|
2066 |
|
2077 |
msgstr ""
|
2078 |
|
2079 |
#: templates/job-filters.php:80
|
2080 |
+
msgid "Your browser does not support JavaScript, or it is disabled. JavaScript must be enabled in order to view listings."
|
|
|
|
|
2081 |
msgstr ""
|
2082 |
|
2083 |
#: templates/job-preview.php:28
|
2104 |
msgid "Save Draft"
|
2105 |
msgstr ""
|
2106 |
|
2107 |
+
#. translators: %1$s is the job listing post type name, %2$s is the job listing URL.
|
2108 |
#: templates/job-submitted.php:25
|
2109 |
+
msgid "%1$s listed successfully. To view your listing <a href=\"%2$s\">click here</a>."
|
|
|
|
|
|
|
|
|
2110 |
msgstr ""
|
2111 |
|
|
|
2112 |
#. translators: Placeholder %s is the job listing post type name.
|
2113 |
+
#: templates/job-submitted.php:35
|
2114 |
msgid "%s submitted successfully. Your listing will be visible once approved."
|
2115 |
msgstr ""
|
2116 |
|
2117 |
+
#: wp-job-manager-functions.php:334
|
2118 |
+
msgctxt "post status"
|
2119 |
+
msgid "Draft"
|
2120 |
+
msgstr ""
|
2121 |
+
|
2122 |
+
#: wp-job-manager-functions.php:337
|
2123 |
+
msgctxt "post status"
|
2124 |
+
msgid "Pending approval"
|
2125 |
+
msgstr ""
|
2126 |
+
|
2127 |
+
#: wp-job-manager-functions.php:338
|
2128 |
+
msgctxt "post status"
|
2129 |
+
msgid "Pending payment"
|
2130 |
+
msgstr ""
|
2131 |
+
|
2132 |
+
#: wp-job-manager-functions.php:339
|
2133 |
+
msgctxt "post status"
|
2134 |
+
msgid "Active"
|
2135 |
+
msgstr ""
|
2136 |
+
|
2137 |
#: wp-job-manager-functions.php:460
|
2138 |
msgid "Reset"
|
2139 |
msgstr ""
|
2154 |
msgid "This email is already registered, please choose another one."
|
2155 |
msgstr ""
|
2156 |
|
2157 |
+
#: wp-job-manager-functions.php:895
|
2158 |
msgid "Full Time"
|
2159 |
msgstr ""
|
2160 |
|
2161 |
+
#: wp-job-manager-functions.php:896
|
2162 |
msgid "Part Time"
|
2163 |
msgstr ""
|
2164 |
|
2165 |
+
#: wp-job-manager-functions.php:897
|
2166 |
msgid "Contractor"
|
2167 |
msgstr ""
|
2168 |
|
2169 |
+
#: wp-job-manager-functions.php:898
|
2170 |
msgid "Temporary"
|
2171 |
msgstr ""
|
2172 |
|
2173 |
+
#: wp-job-manager-functions.php:899
|
2174 |
msgid "Intern"
|
2175 |
msgstr ""
|
2176 |
|
2177 |
+
#: wp-job-manager-functions.php:900
|
2178 |
msgid "Volunteer"
|
2179 |
msgstr ""
|
2180 |
|
2181 |
+
#: wp-job-manager-functions.php:901
|
2182 |
msgid "Per Diem"
|
2183 |
msgstr ""
|
2184 |
|
2185 |
+
#: wp-job-manager-functions.php:902
|
2186 |
msgid "Other"
|
2187 |
msgstr ""
|
2188 |
|
2189 |
+
#: wp-job-manager-functions.php:969
|
2190 |
msgid "Passwords must be at least 8 characters long."
|
2191 |
msgstr ""
|
2192 |
|
2193 |
+
#: wp-job-manager-functions.php:1134
|
2194 |
msgid "Choose a category…"
|
2195 |
msgstr ""
|
2196 |
|
|
|
2197 |
#. translators: %s is the list of allowed file types.
|
2198 |
+
#: wp-job-manager-functions.php:1371
|
2199 |
msgid "Uploaded files need to be one of the following file types: %s"
|
2200 |
msgstr ""
|
2201 |
|
2203 |
msgid "Inactive"
|
2204 |
msgstr ""
|
2205 |
|
2206 |
+
#. translators: %1$s is the job listing title; %2$s is the URL for the current WordPress instance.
|
2207 |
#: wp-job-manager-template.php:249
|
|
|
|
|
2208 |
msgid "Application via %1$s listing on %2$s"
|
2209 |
msgstr ""
|
2210 |
|
2232 |
msgid "Posted on "
|
2233 |
msgstr ""
|
2234 |
|
2235 |
+
#. translators: Placeholder %s is the relative, human readable time since the job listing was posted.
|
2236 |
+
#: wp-job-manager-template.php:750
|
2237 |
+
#: wp-job-manager-template.php:771
|
2238 |
msgid "Posted %s ago"
|
2239 |
msgstr ""
|
2240 |
|
2241 |
+
#: wp-job-manager-template.php:800
|
2242 |
msgid "Anywhere"
|
2243 |
msgstr ""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== WP Job Manager ===
|
2 |
Contributors: mikejolley, automattic, adamkheckler, alexsanford1, annezazu, cena, chaselivingston, csonnek, davor.altman, donnapep, donncha, drawmyface, erania-pinnera, jacobshere, jakeom, jeherve, jenhooks, jgs, jonryan, kraftbj, lamdayap, lschuyler, macmanx, nancythanki, orangesareorange, rachelsquirrel, ryancowles, richardmtl, scarstocea
|
3 |
Tags: job manager, job listing, job board, job management, job lists, job list, job, jobs, company, hiring, employment, employer, employees, candidate, freelance, internship, job listings, positions, board, application, hiring, listing, manager, recruiting, recruitment, talent
|
4 |
-
Requires at least: 5.
|
5 |
-
Tested up to: 5.
|
6 |
Requires PHP: 7.0
|
7 |
-
Stable tag: 1.
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -153,6 +153,24 @@ It then creates a database based on the parameters passed to it.
|
|
153 |
|
154 |
== Changelog ==
|
155 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
156 |
= 1.34.5 =
|
157 |
* Fix: Jobs list not appearing in the page load while using Firefox.
|
158 |
|
1 |
=== WP Job Manager ===
|
2 |
Contributors: mikejolley, automattic, adamkheckler, alexsanford1, annezazu, cena, chaselivingston, csonnek, davor.altman, donnapep, donncha, drawmyface, erania-pinnera, jacobshere, jakeom, jeherve, jenhooks, jgs, jonryan, kraftbj, lamdayap, lschuyler, macmanx, nancythanki, orangesareorange, rachelsquirrel, ryancowles, richardmtl, scarstocea
|
3 |
Tags: job manager, job listing, job board, job management, job lists, job list, job, jobs, company, hiring, employment, employer, employees, candidate, freelance, internship, job listings, positions, board, application, hiring, listing, manager, recruiting, recruitment, talent
|
4 |
+
Requires at least: 5.5
|
5 |
+
Tested up to: 5.7
|
6 |
Requires PHP: 7.0
|
7 |
+
Stable tag: 1.35.0
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
153 |
|
154 |
== Changelog ==
|
155 |
|
156 |
+
= 1.35.0 =
|
157 |
+
* Change: Bumped minimum WordPress version to 5.4.
|
158 |
+
* Change: Listings now expire (by default) at the end of the expiration date.
|
159 |
+
* Change: Job listing expiration checks uses the WordPress time zone.
|
160 |
+
* Change: All dates are now presented using the WordPress time zone.
|
161 |
+
* Change: Transitioned from LESS to SCSS for CSS generation. May effect final CSS generation and should be tested with theme.
|
162 |
+
* Fix: jQuery UI CSS 404s when jQuery Migrate plugin is installed.
|
163 |
+
* Fix: Pagination on job dashboard page when actions are completed.
|
164 |
+
* Fix: Application Email/URL field will give more actionable validation errors.
|
165 |
+
* Fix: Action `job_manager_job_submitted` fired when outside of standard submission flow.
|
166 |
+
* Fix: `job_manager_select2_filters_args` pollution on frontend. (@tripflex)
|
167 |
+
* Fix: `is_wpjm_page` returns true if none are defined. (@ibndawood)
|
168 |
+
* Fix: Missing variable error with cached widgets.
|
169 |
+
* Tweak: reCAPTCHA setting has more clear language. (@tripflex)
|
170 |
+
* Dev: Added filter `submit_job_form_create_account_role` for user role when created on job submission. (@tripflex)
|
171 |
+
* Dev: Added filter `job_manager_should_run_shortcode_action_handler` for if a job dashboard action should run.
|
172 |
+
* Dev: Added filter `job_manager_get_form_action` to modify the action of a frontend form. (@tripflex)
|
173 |
+
|
174 |
= 1.34.5 =
|
175 |
* Fix: Jobs list not appearing in the page load while using Firefox.
|
176 |
|
templates/job-dashboard.php
CHANGED
@@ -8,9 +8,10 @@
|
|
8 |
* @author Automattic
|
9 |
* @package wp-job-manager
|
10 |
* @category Template
|
11 |
-
* @version 1.
|
12 |
*
|
13 |
* @since 1.34.4 Available job actions are passed in an array (`$job_actions`, keyed by job ID) and not generated in the template.
|
|
|
14 |
*
|
15 |
* @var array $job_dashboard_columns Array of the columns to show on the job dashboard page.
|
16 |
* @var int $max_num_pages Maximum number of pages
|
@@ -66,9 +67,12 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
66 |
?>
|
67 |
</ul>
|
68 |
<?php elseif ('date' === $key ) : ?>
|
69 |
-
<?php echo esc_html(
|
70 |
<?php elseif ('expires' === $key ) : ?>
|
71 |
-
<?php
|
|
|
|
|
|
|
72 |
<?php elseif ('filled' === $key ) : ?>
|
73 |
<?php echo is_position_filled( $job ) ? '✔' : '–'; ?>
|
74 |
<?php else : ?>
|
8 |
* @author Automattic
|
9 |
* @package wp-job-manager
|
10 |
* @category Template
|
11 |
+
* @version 1.35.0
|
12 |
*
|
13 |
* @since 1.34.4 Available job actions are passed in an array (`$job_actions`, keyed by job ID) and not generated in the template.
|
14 |
+
* @since 1.35.0 Switched to new date functions.
|
15 |
*
|
16 |
* @var array $job_dashboard_columns Array of the columns to show on the job dashboard page.
|
17 |
* @var int $max_num_pages Maximum number of pages
|
67 |
?>
|
68 |
</ul>
|
69 |
<?php elseif ('date' === $key ) : ?>
|
70 |
+
<?php echo esc_html( wp_date( get_option( 'date_format' ), get_post_datetime( $job )->getTimestamp() ) ); ?>
|
71 |
<?php elseif ('expires' === $key ) : ?>
|
72 |
+
<?php
|
73 |
+
$job_expires = WP_Job_Manager_Post_Types::instance()->get_job_expiration( $job );
|
74 |
+
echo esc_html( $job_expires ? wp_date( get_option( 'date_format' ), $job_expires->getTimestamp() ) : '–' );
|
75 |
+
?>
|
76 |
<?php elseif ('filled' === $key ) : ?>
|
77 |
<?php echo is_position_filled( $job ) ? '✔' : '–'; ?>
|
78 |
<?php else : ?>
|
wp-job-manager-functions.php
CHANGED
@@ -772,7 +772,9 @@ function is_wpjm_page() {
|
|
772 |
*/
|
773 |
$wpjm_page_ids = array_unique( apply_filters( 'job_manager_page_ids', $wpjm_page_ids ) );
|
774 |
|
775 |
-
|
|
|
|
|
776 |
}
|
777 |
|
778 |
/**
|
@@ -1064,8 +1066,11 @@ function wpjm_published_submission_edits_require_moderation() {
|
|
1064 |
function wpjm_get_category_slugs_from_search_query_string() {
|
1065 |
$search_category_slugs = [];
|
1066 |
|
1067 |
-
|
1068 |
-
|
|
|
|
|
|
|
1069 |
}
|
1070 |
|
1071 |
return $search_category_slugs;
|
@@ -1430,23 +1435,28 @@ function job_manager_get_allowed_mime_types( $field = '' ) {
|
|
1430 |
* Calculates and returns the job expiry date.
|
1431 |
*
|
1432 |
* @since 1.22.0
|
1433 |
-
* @param
|
1434 |
-
*
|
|
|
|
|
|
|
1435 |
*/
|
1436 |
-
function calculate_job_expiry( $job_id ) {
|
1437 |
// Get duration from the product if set...
|
1438 |
$duration = get_post_meta( $job_id, '_job_duration', true );
|
1439 |
|
1440 |
// ...otherwise use the global option.
|
1441 |
if ( ! $duration ) {
|
1442 |
-
$duration =
|
1443 |
}
|
1444 |
|
1445 |
if ( $duration ) {
|
1446 |
-
|
|
|
|
|
1447 |
}
|
1448 |
|
1449 |
-
return '';
|
1450 |
}
|
1451 |
|
1452 |
/**
|
772 |
*/
|
773 |
$wpjm_page_ids = array_unique( apply_filters( 'job_manager_page_ids', $wpjm_page_ids ) );
|
774 |
|
775 |
+
if ( ! empty( $wpjm_page_ids ) ) {
|
776 |
+
$is_wpjm_page = is_page( $wpjm_page_ids );
|
777 |
+
}
|
778 |
}
|
779 |
|
780 |
/**
|
1066 |
function wpjm_get_category_slugs_from_search_query_string() {
|
1067 |
$search_category_slugs = [];
|
1068 |
|
1069 |
+
// phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Should be checked outside of this function.
|
1070 |
+
$search_category = ! empty( $_GET['search_category'] ) ? sanitize_text_field( wp_unslash( $_GET['search_category'] ) ) : false;
|
1071 |
+
|
1072 |
+
if ( $search_category ) {
|
1073 |
+
$search_category_slugs = explode( ',', $search_category );
|
1074 |
}
|
1075 |
|
1076 |
return $search_category_slugs;
|
1435 |
* Calculates and returns the job expiry date.
|
1436 |
*
|
1437 |
* @since 1.22.0
|
1438 |
+
* @since 1.35.0 Added the `$return_datetime` param.
|
1439 |
+
*
|
1440 |
+
* @param int $job_id Job ID.
|
1441 |
+
* @param bool $return_datetime Return the date time object.
|
1442 |
+
* @return string|DateTimeImmutable When `$return_datetime`, it will return either DateTimeImmutable or null.
|
1443 |
*/
|
1444 |
+
function calculate_job_expiry( $job_id, $return_datetime = false ) {
|
1445 |
// Get duration from the product if set...
|
1446 |
$duration = get_post_meta( $job_id, '_job_duration', true );
|
1447 |
|
1448 |
// ...otherwise use the global option.
|
1449 |
if ( ! $duration ) {
|
1450 |
+
$duration = get_option( 'job_manager_submission_duration' );
|
1451 |
}
|
1452 |
|
1453 |
if ( $duration ) {
|
1454 |
+
$new_job_expiry = current_datetime()->add( new DateInterval( 'P' . absint( $duration ) . 'D' ) );
|
1455 |
+
|
1456 |
+
return $return_datetime ? WP_Job_Manager_Post_Types::instance()->prepare_job_expires_time( $new_job_expiry ) : $new_job_expiry->format( 'Y-m-d' );
|
1457 |
}
|
1458 |
|
1459 |
+
return $return_datetime ? null : '';
|
1460 |
}
|
1461 |
|
1462 |
/**
|
wp-job-manager-template.php
CHANGED
@@ -370,11 +370,11 @@ function wpjm_get_job_listing_structured_data( $post = null ) {
|
|
370 |
$data = [];
|
371 |
$data['@context'] = 'http://schema.org/';
|
372 |
$data['@type'] = 'JobPosting';
|
373 |
-
$data['datePosted'] =
|
374 |
|
375 |
-
$job_expires =
|
376 |
if ( ! empty( $job_expires ) ) {
|
377 |
-
$data['validThrough'] =
|
378 |
}
|
379 |
|
380 |
$data['title'] = wp_strip_all_tags( wpjm_get_the_job_title( $post ) );
|
@@ -744,13 +744,13 @@ function the_job_publish_date( $post = null ) {
|
|
744 |
$date_format = get_option( 'job_manager_date_format' );
|
745 |
|
746 |
if ( 'default' === $date_format ) {
|
747 |
-
$display_date = esc_html__( 'Posted on ', 'wp-job-manager' ) .
|
748 |
} else {
|
749 |
// translators: Placeholder %s is the relative, human readable time since the job listing was posted.
|
750 |
-
$display_date = sprintf( esc_html__( 'Posted %s ago', 'wp-job-manager' ), human_time_diff(
|
751 |
}
|
752 |
|
753 |
-
echo '<time datetime="' . esc_attr(
|
754 |
}
|
755 |
|
756 |
|
@@ -765,14 +765,13 @@ function get_the_job_publish_date( $post = null ) {
|
|
765 |
$date_format = get_option( 'job_manager_date_format' );
|
766 |
|
767 |
if ( 'default' === $date_format ) {
|
768 |
-
return
|
769 |
} else {
|
770 |
// translators: Placeholder %s is the relative, human readable time since the job listing was posted.
|
771 |
-
return sprintf( __( 'Posted %s ago', 'wp-job-manager' ), human_time_diff(
|
772 |
}
|
773 |
}
|
774 |
|
775 |
-
|
776 |
/**
|
777 |
* Displays the location for the job listing.
|
778 |
*
|
370 |
$data = [];
|
371 |
$data['@context'] = 'http://schema.org/';
|
372 |
$data['@type'] = 'JobPosting';
|
373 |
+
$data['datePosted'] = get_post_datetime( $post )->format( 'c' );
|
374 |
|
375 |
+
$job_expires = WP_Job_Manager_Post_Types::instance()->get_job_expiration( $post );
|
376 |
if ( ! empty( $job_expires ) ) {
|
377 |
+
$data['validThrough'] = $job_expires->format( 'c' );
|
378 |
}
|
379 |
|
380 |
$data['title'] = wp_strip_all_tags( wpjm_get_the_job_title( $post ) );
|
744 |
$date_format = get_option( 'job_manager_date_format' );
|
745 |
|
746 |
if ( 'default' === $date_format ) {
|
747 |
+
$display_date = esc_html__( 'Posted on ', 'wp-job-manager' ) . wp_date( get_option( 'date_format' ), get_post_timestamp( $post ) );
|
748 |
} else {
|
749 |
// translators: Placeholder %s is the relative, human readable time since the job listing was posted.
|
750 |
+
$display_date = sprintf( esc_html__( 'Posted %s ago', 'wp-job-manager' ), human_time_diff( get_post_timestamp( $post ), time() ) );
|
751 |
}
|
752 |
|
753 |
+
echo '<time datetime="' . esc_attr( get_post_datetime( $post )->format( 'Y-m-d' ) ) . '">' . wp_kses_post( $display_date ) . '</time>';
|
754 |
}
|
755 |
|
756 |
|
765 |
$date_format = get_option( 'job_manager_date_format' );
|
766 |
|
767 |
if ( 'default' === $date_format ) {
|
768 |
+
return wp_date( get_option( 'date_format' ), get_post_datetime()->getTimestamp() );
|
769 |
} else {
|
770 |
// translators: Placeholder %s is the relative, human readable time since the job listing was posted.
|
771 |
+
return sprintf( __( 'Posted %s ago', 'wp-job-manager' ), human_time_diff( get_post_timestamp(), time() ) );
|
772 |
}
|
773 |
}
|
774 |
|
|
|
775 |
/**
|
776 |
* Displays the location for the job listing.
|
777 |
*
|
wp-job-manager.php
CHANGED
@@ -3,11 +3,11 @@
|
|
3 |
* Plugin Name: WP Job Manager
|
4 |
* Plugin URI: https://wpjobmanager.com/
|
5 |
* Description: Manage job listings from the WordPress admin panel, and allow users to post jobs directly to your site.
|
6 |
-
* Version: 1.
|
7 |
* Author: Automattic
|
8 |
* Author URI: https://wpjobmanager.com/
|
9 |
-
* Requires at least: 5.
|
10 |
-
* Tested up to: 5.
|
11 |
* Requires PHP: 7.0
|
12 |
* Text Domain: wp-job-manager
|
13 |
* Domain Path: /languages/
|
@@ -21,7 +21,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
21 |
}
|
22 |
|
23 |
// Define constants.
|
24 |
-
define( 'JOB_MANAGER_VERSION', '1.
|
25 |
define( 'JOB_MANAGER_PLUGIN_DIR', untrailingslashit( plugin_dir_path( __FILE__ ) ) );
|
26 |
define( 'JOB_MANAGER_PLUGIN_URL', untrailingslashit( plugins_url( basename( plugin_dir_path( __FILE__ ) ), basename( __FILE__ ) ) ) );
|
27 |
define( 'JOB_MANAGER_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
|
3 |
* Plugin Name: WP Job Manager
|
4 |
* Plugin URI: https://wpjobmanager.com/
|
5 |
* Description: Manage job listings from the WordPress admin panel, and allow users to post jobs directly to your site.
|
6 |
+
* Version: 1.35.0
|
7 |
* Author: Automattic
|
8 |
* Author URI: https://wpjobmanager.com/
|
9 |
+
* Requires at least: 5.5
|
10 |
+
* Tested up to: 5.7
|
11 |
* Requires PHP: 7.0
|
12 |
* Text Domain: wp-job-manager
|
13 |
* Domain Path: /languages/
|
21 |
}
|
22 |
|
23 |
// Define constants.
|
24 |
+
define( 'JOB_MANAGER_VERSION', '1.35.0' );
|
25 |
define( 'JOB_MANAGER_PLUGIN_DIR', untrailingslashit( plugin_dir_path( __FILE__ ) ) );
|
26 |
define( 'JOB_MANAGER_PLUGIN_URL', untrailingslashit( plugins_url( basename( plugin_dir_path( __FILE__ ) ), basename( __FILE__ ) ) ) );
|
27 |
define( 'JOB_MANAGER_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
|