feat(deployed): add XEF library 1.4.4 (no-source, vetted live)
XEF library (Parvez Akther); unmapped -> deployed files. Signed-off-by: LÁZÁR Imre <imre@illusion.hu> Assisted-by: claude-code@claude-opus-4-8
674
deployed/xef/libraries/xef/LICENSE.txt
Normal file
@ -0,0 +1,674 @@
|
|||||||
|
GNU GENERAL PUBLIC LICENSE
|
||||||
|
Version 3, 29 June 2007
|
||||||
|
|
||||||
|
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
||||||
|
Everyone is permitted to copy and distribute verbatim copies
|
||||||
|
of this license document, but changing it is not allowed.
|
||||||
|
|
||||||
|
Preamble
|
||||||
|
|
||||||
|
The GNU General Public License is a free, copyleft license for
|
||||||
|
software and other kinds of works.
|
||||||
|
|
||||||
|
The licenses for most software and other practical works are designed
|
||||||
|
to take away your freedom to share and change the works. By contrast,
|
||||||
|
the GNU General Public License is intended to guarantee your freedom to
|
||||||
|
share and change all versions of a program--to make sure it remains free
|
||||||
|
software for all its users. We, the Free Software Foundation, use the
|
||||||
|
GNU General Public License for most of our software; it applies also to
|
||||||
|
any other work released this way by its authors. You can apply it to
|
||||||
|
your programs, too.
|
||||||
|
|
||||||
|
When we speak of free software, we are referring to freedom, not
|
||||||
|
price. Our General Public Licenses are designed to make sure that you
|
||||||
|
have the freedom to distribute copies of free software (and charge for
|
||||||
|
them if you wish), that you receive source code or can get it if you
|
||||||
|
want it, that you can change the software or use pieces of it in new
|
||||||
|
free programs, and that you know you can do these things.
|
||||||
|
|
||||||
|
To protect your rights, we need to prevent others from denying you
|
||||||
|
these rights or asking you to surrender the rights. Therefore, you have
|
||||||
|
certain responsibilities if you distribute copies of the software, or if
|
||||||
|
you modify it: responsibilities to respect the freedom of others.
|
||||||
|
|
||||||
|
For example, if you distribute copies of such a program, whether
|
||||||
|
gratis or for a fee, you must pass on to the recipients the same
|
||||||
|
freedoms that you received. You must make sure that they, too, receive
|
||||||
|
or can get the source code. And you must show them these terms so they
|
||||||
|
know their rights.
|
||||||
|
|
||||||
|
Developers that use the GNU GPL protect your rights with two steps:
|
||||||
|
(1) assert copyright on the software, and (2) offer you this License
|
||||||
|
giving you legal permission to copy, distribute and/or modify it.
|
||||||
|
|
||||||
|
For the developers' and authors' protection, the GPL clearly explains
|
||||||
|
that there is no warranty for this free software. For both users' and
|
||||||
|
authors' sake, the GPL requires that modified versions be marked as
|
||||||
|
changed, so that their problems will not be attributed erroneously to
|
||||||
|
authors of previous versions.
|
||||||
|
|
||||||
|
Some devices are designed to deny users access to install or run
|
||||||
|
modified versions of the software inside them, although the manufacturer
|
||||||
|
can do so. This is fundamentally incompatible with the aim of
|
||||||
|
protecting users' freedom to change the software. The systematic
|
||||||
|
pattern of such abuse occurs in the area of products for individuals to
|
||||||
|
use, which is precisely where it is most unacceptable. Therefore, we
|
||||||
|
have designed this version of the GPL to prohibit the practice for those
|
||||||
|
products. If such problems arise substantially in other domains, we
|
||||||
|
stand ready to extend this provision to those domains in future versions
|
||||||
|
of the GPL, as needed to protect the freedom of users.
|
||||||
|
|
||||||
|
Finally, every program is threatened constantly by software patents.
|
||||||
|
States should not allow patents to restrict development and use of
|
||||||
|
software on general-purpose computers, but in those that do, we wish to
|
||||||
|
avoid the special danger that patents applied to a free program could
|
||||||
|
make it effectively proprietary. To prevent this, the GPL assures that
|
||||||
|
patents cannot be used to render the program non-free.
|
||||||
|
|
||||||
|
The precise terms and conditions for copying, distribution and
|
||||||
|
modification follow.
|
||||||
|
|
||||||
|
TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
0. Definitions.
|
||||||
|
|
||||||
|
"This License" refers to version 3 of the GNU General Public License.
|
||||||
|
|
||||||
|
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||||
|
works, such as semiconductor masks.
|
||||||
|
|
||||||
|
"The Program" refers to any copyrightable work licensed under this
|
||||||
|
License. Each licensee is addressed as "you". "Licensees" and
|
||||||
|
"recipients" may be individuals or organizations.
|
||||||
|
|
||||||
|
To "modify" a work means to copy from or adapt all or part of the work
|
||||||
|
in a fashion requiring copyright permission, other than the making of an
|
||||||
|
exact copy. The resulting work is called a "modified version" of the
|
||||||
|
earlier work or a work "based on" the earlier work.
|
||||||
|
|
||||||
|
A "covered work" means either the unmodified Program or a work based
|
||||||
|
on the Program.
|
||||||
|
|
||||||
|
To "propagate" a work means to do anything with it that, without
|
||||||
|
permission, would make you directly or secondarily liable for
|
||||||
|
infringement under applicable copyright law, except executing it on a
|
||||||
|
computer or modifying a private copy. Propagation includes copying,
|
||||||
|
distribution (with or without modification), making available to the
|
||||||
|
public, and in some countries other activities as well.
|
||||||
|
|
||||||
|
To "convey" a work means any kind of propagation that enables other
|
||||||
|
parties to make or receive copies. Mere interaction with a user through
|
||||||
|
a computer network, with no transfer of a copy, is not conveying.
|
||||||
|
|
||||||
|
An interactive user interface displays "Appropriate Legal Notices"
|
||||||
|
to the extent that it includes a convenient and prominently visible
|
||||||
|
feature that (1) displays an appropriate copyright notice, and (2)
|
||||||
|
tells the user that there is no warranty for the work (except to the
|
||||||
|
extent that warranties are provided), that licensees may convey the
|
||||||
|
work under this License, and how to view a copy of this License. If
|
||||||
|
the interface presents a list of user commands or options, such as a
|
||||||
|
menu, a prominent item in the list meets this criterion.
|
||||||
|
|
||||||
|
1. Source Code.
|
||||||
|
|
||||||
|
The "source code" for a work means the preferred form of the work
|
||||||
|
for making modifications to it. "Object code" means any non-source
|
||||||
|
form of a work.
|
||||||
|
|
||||||
|
A "Standard Interface" means an interface that either is an official
|
||||||
|
standard defined by a recognized standards body, or, in the case of
|
||||||
|
interfaces specified for a particular programming language, one that
|
||||||
|
is widely used among developers working in that language.
|
||||||
|
|
||||||
|
The "System Libraries" of an executable work include anything, other
|
||||||
|
than the work as a whole, that (a) is included in the normal form of
|
||||||
|
packaging a Major Component, but which is not part of that Major
|
||||||
|
Component, and (b) serves only to enable use of the work with that
|
||||||
|
Major Component, or to implement a Standard Interface for which an
|
||||||
|
implementation is available to the public in source code form. A
|
||||||
|
"Major Component", in this context, means a major essential component
|
||||||
|
(kernel, window system, and so on) of the specific operating system
|
||||||
|
(if any) on which the executable work runs, or a compiler used to
|
||||||
|
produce the work, or an object code interpreter used to run it.
|
||||||
|
|
||||||
|
The "Corresponding Source" for a work in object code form means all
|
||||||
|
the source code needed to generate, install, and (for an executable
|
||||||
|
work) run the object code and to modify the work, including scripts to
|
||||||
|
control those activities. However, it does not include the work's
|
||||||
|
System Libraries, or general-purpose tools or generally available free
|
||||||
|
programs which are used unmodified in performing those activities but
|
||||||
|
which are not part of the work. For example, Corresponding Source
|
||||||
|
includes interface definition files associated with source files for
|
||||||
|
the work, and the source code for shared libraries and dynamically
|
||||||
|
linked subprograms that the work is specifically designed to require,
|
||||||
|
such as by intimate data communication or control flow between those
|
||||||
|
subprograms and other parts of the work.
|
||||||
|
|
||||||
|
The Corresponding Source need not include anything that users
|
||||||
|
can regenerate automatically from other parts of the Corresponding
|
||||||
|
Source.
|
||||||
|
|
||||||
|
The Corresponding Source for a work in source code form is that
|
||||||
|
same work.
|
||||||
|
|
||||||
|
2. Basic Permissions.
|
||||||
|
|
||||||
|
All rights granted under this License are granted for the term of
|
||||||
|
copyright on the Program, and are irrevocable provided the stated
|
||||||
|
conditions are met. This License explicitly affirms your unlimited
|
||||||
|
permission to run the unmodified Program. The output from running a
|
||||||
|
covered work is covered by this License only if the output, given its
|
||||||
|
content, constitutes a covered work. This License acknowledges your
|
||||||
|
rights of fair use or other equivalent, as provided by copyright law.
|
||||||
|
|
||||||
|
You may make, run and propagate covered works that you do not
|
||||||
|
convey, without conditions so long as your license otherwise remains
|
||||||
|
in force. You may convey covered works to others for the sole purpose
|
||||||
|
of having them make modifications exclusively for you, or provide you
|
||||||
|
with facilities for running those works, provided that you comply with
|
||||||
|
the terms of this License in conveying all material for which you do
|
||||||
|
not control copyright. Those thus making or running the covered works
|
||||||
|
for you must do so exclusively on your behalf, under your direction
|
||||||
|
and control, on terms that prohibit them from making any copies of
|
||||||
|
your copyrighted material outside their relationship with you.
|
||||||
|
|
||||||
|
Conveying under any other circumstances is permitted solely under
|
||||||
|
the conditions stated below. Sublicensing is not allowed; section 10
|
||||||
|
makes it unnecessary.
|
||||||
|
|
||||||
|
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||||
|
|
||||||
|
No covered work shall be deemed part of an effective technological
|
||||||
|
measure under any applicable law fulfilling obligations under article
|
||||||
|
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||||
|
similar laws prohibiting or restricting circumvention of such
|
||||||
|
measures.
|
||||||
|
|
||||||
|
When you convey a covered work, you waive any legal power to forbid
|
||||||
|
circumvention of technological measures to the extent such circumvention
|
||||||
|
is effected by exercising rights under this License with respect to
|
||||||
|
the covered work, and you disclaim any intention to limit operation or
|
||||||
|
modification of the work as a means of enforcing, against the work's
|
||||||
|
users, your or third parties' legal rights to forbid circumvention of
|
||||||
|
technological measures.
|
||||||
|
|
||||||
|
4. Conveying Verbatim Copies.
|
||||||
|
|
||||||
|
You may convey verbatim copies of the Program's source code as you
|
||||||
|
receive it, in any medium, provided that you conspicuously and
|
||||||
|
appropriately publish on each copy an appropriate copyright notice;
|
||||||
|
keep intact all notices stating that this License and any
|
||||||
|
non-permissive terms added in accord with section 7 apply to the code;
|
||||||
|
keep intact all notices of the absence of any warranty; and give all
|
||||||
|
recipients a copy of this License along with the Program.
|
||||||
|
|
||||||
|
You may charge any price or no price for each copy that you convey,
|
||||||
|
and you may offer support or warranty protection for a fee.
|
||||||
|
|
||||||
|
5. Conveying Modified Source Versions.
|
||||||
|
|
||||||
|
You may convey a work based on the Program, or the modifications to
|
||||||
|
produce it from the Program, in the form of source code under the
|
||||||
|
terms of section 4, provided that you also meet all of these conditions:
|
||||||
|
|
||||||
|
a) The work must carry prominent notices stating that you modified
|
||||||
|
it, and giving a relevant date.
|
||||||
|
|
||||||
|
b) The work must carry prominent notices stating that it is
|
||||||
|
released under this License and any conditions added under section
|
||||||
|
7. This requirement modifies the requirement in section 4 to
|
||||||
|
"keep intact all notices".
|
||||||
|
|
||||||
|
c) You must license the entire work, as a whole, under this
|
||||||
|
License to anyone who comes into possession of a copy. This
|
||||||
|
License will therefore apply, along with any applicable section 7
|
||||||
|
additional terms, to the whole of the work, and all its parts,
|
||||||
|
regardless of how they are packaged. This License gives no
|
||||||
|
permission to license the work in any other way, but it does not
|
||||||
|
invalidate such permission if you have separately received it.
|
||||||
|
|
||||||
|
d) If the work has interactive user interfaces, each must display
|
||||||
|
Appropriate Legal Notices; however, if the Program has interactive
|
||||||
|
interfaces that do not display Appropriate Legal Notices, your
|
||||||
|
work need not make them do so.
|
||||||
|
|
||||||
|
A compilation of a covered work with other separate and independent
|
||||||
|
works, which are not by their nature extensions of the covered work,
|
||||||
|
and which are not combined with it such as to form a larger program,
|
||||||
|
in or on a volume of a storage or distribution medium, is called an
|
||||||
|
"aggregate" if the compilation and its resulting copyright are not
|
||||||
|
used to limit the access or legal rights of the compilation's users
|
||||||
|
beyond what the individual works permit. Inclusion of a covered work
|
||||||
|
in an aggregate does not cause this License to apply to the other
|
||||||
|
parts of the aggregate.
|
||||||
|
|
||||||
|
6. Conveying Non-Source Forms.
|
||||||
|
|
||||||
|
You may convey a covered work in object code form under the terms
|
||||||
|
of sections 4 and 5, provided that you also convey the
|
||||||
|
machine-readable Corresponding Source under the terms of this License,
|
||||||
|
in one of these ways:
|
||||||
|
|
||||||
|
a) Convey the object code in, or embodied in, a physical product
|
||||||
|
(including a physical distribution medium), accompanied by the
|
||||||
|
Corresponding Source fixed on a durable physical medium
|
||||||
|
customarily used for software interchange.
|
||||||
|
|
||||||
|
b) Convey the object code in, or embodied in, a physical product
|
||||||
|
(including a physical distribution medium), accompanied by a
|
||||||
|
written offer, valid for at least three years and valid for as
|
||||||
|
long as you offer spare parts or customer support for that product
|
||||||
|
model, to give anyone who possesses the object code either (1) a
|
||||||
|
copy of the Corresponding Source for all the software in the
|
||||||
|
product that is covered by this License, on a durable physical
|
||||||
|
medium customarily used for software interchange, for a price no
|
||||||
|
more than your reasonable cost of physically performing this
|
||||||
|
conveying of source, or (2) access to copy the
|
||||||
|
Corresponding Source from a network server at no charge.
|
||||||
|
|
||||||
|
c) Convey individual copies of the object code with a copy of the
|
||||||
|
written offer to provide the Corresponding Source. This
|
||||||
|
alternative is allowed only occasionally and noncommercially, and
|
||||||
|
only if you received the object code with such an offer, in accord
|
||||||
|
with subsection 6b.
|
||||||
|
|
||||||
|
d) Convey the object code by offering access from a designated
|
||||||
|
place (gratis or for a charge), and offer equivalent access to the
|
||||||
|
Corresponding Source in the same way through the same place at no
|
||||||
|
further charge. You need not require recipients to copy the
|
||||||
|
Corresponding Source along with the object code. If the place to
|
||||||
|
copy the object code is a network server, the Corresponding Source
|
||||||
|
may be on a different server (operated by you or a third party)
|
||||||
|
that supports equivalent copying facilities, provided you maintain
|
||||||
|
clear directions next to the object code saying where to find the
|
||||||
|
Corresponding Source. Regardless of what server hosts the
|
||||||
|
Corresponding Source, you remain obligated to ensure that it is
|
||||||
|
available for as long as needed to satisfy these requirements.
|
||||||
|
|
||||||
|
e) Convey the object code using peer-to-peer transmission, provided
|
||||||
|
you inform other peers where the object code and Corresponding
|
||||||
|
Source of the work are being offered to the general public at no
|
||||||
|
charge under subsection 6d.
|
||||||
|
|
||||||
|
A separable portion of the object code, whose source code is excluded
|
||||||
|
from the Corresponding Source as a System Library, need not be
|
||||||
|
included in conveying the object code work.
|
||||||
|
|
||||||
|
A "User Product" is either (1) a "consumer product", which means any
|
||||||
|
tangible personal property which is normally used for personal, family,
|
||||||
|
or household purposes, or (2) anything designed or sold for incorporation
|
||||||
|
into a dwelling. In determining whether a product is a consumer product,
|
||||||
|
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||||
|
product received by a particular user, "normally used" refers to a
|
||||||
|
typical or common use of that class of product, regardless of the status
|
||||||
|
of the particular user or of the way in which the particular user
|
||||||
|
actually uses, or expects or is expected to use, the product. A product
|
||||||
|
is a consumer product regardless of whether the product has substantial
|
||||||
|
commercial, industrial or non-consumer uses, unless such uses represent
|
||||||
|
the only significant mode of use of the product.
|
||||||
|
|
||||||
|
"Installation Information" for a User Product means any methods,
|
||||||
|
procedures, authorization keys, or other information required to install
|
||||||
|
and execute modified versions of a covered work in that User Product from
|
||||||
|
a modified version of its Corresponding Source. The information must
|
||||||
|
suffice to ensure that the continued functioning of the modified object
|
||||||
|
code is in no case prevented or interfered with solely because
|
||||||
|
modification has been made.
|
||||||
|
|
||||||
|
If you convey an object code work under this section in, or with, or
|
||||||
|
specifically for use in, a User Product, and the conveying occurs as
|
||||||
|
part of a transaction in which the right of possession and use of the
|
||||||
|
User Product is transferred to the recipient in perpetuity or for a
|
||||||
|
fixed term (regardless of how the transaction is characterized), the
|
||||||
|
Corresponding Source conveyed under this section must be accompanied
|
||||||
|
by the Installation Information. But this requirement does not apply
|
||||||
|
if neither you nor any third party retains the ability to install
|
||||||
|
modified object code on the User Product (for example, the work has
|
||||||
|
been installed in ROM).
|
||||||
|
|
||||||
|
The requirement to provide Installation Information does not include a
|
||||||
|
requirement to continue to provide support service, warranty, or updates
|
||||||
|
for a work that has been modified or installed by the recipient, or for
|
||||||
|
the User Product in which it has been modified or installed. Access to a
|
||||||
|
network may be denied when the modification itself materially and
|
||||||
|
adversely affects the operation of the network or violates the rules and
|
||||||
|
protocols for communication across the network.
|
||||||
|
|
||||||
|
Corresponding Source conveyed, and Installation Information provided,
|
||||||
|
in accord with this section must be in a format that is publicly
|
||||||
|
documented (and with an implementation available to the public in
|
||||||
|
source code form), and must require no special password or key for
|
||||||
|
unpacking, reading or copying.
|
||||||
|
|
||||||
|
7. Additional Terms.
|
||||||
|
|
||||||
|
"Additional permissions" are terms that supplement the terms of this
|
||||||
|
License by making exceptions from one or more of its conditions.
|
||||||
|
Additional permissions that are applicable to the entire Program shall
|
||||||
|
be treated as though they were included in this License, to the extent
|
||||||
|
that they are valid under applicable law. If additional permissions
|
||||||
|
apply only to part of the Program, that part may be used separately
|
||||||
|
under those permissions, but the entire Program remains governed by
|
||||||
|
this License without regard to the additional permissions.
|
||||||
|
|
||||||
|
When you convey a copy of a covered work, you may at your option
|
||||||
|
remove any additional permissions from that copy, or from any part of
|
||||||
|
it. (Additional permissions may be written to require their own
|
||||||
|
removal in certain cases when you modify the work.) You may place
|
||||||
|
additional permissions on material, added by you to a covered work,
|
||||||
|
for which you have or can give appropriate copyright permission.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, for material you
|
||||||
|
add to a covered work, you may (if authorized by the copyright holders of
|
||||||
|
that material) supplement the terms of this License with terms:
|
||||||
|
|
||||||
|
a) Disclaiming warranty or limiting liability differently from the
|
||||||
|
terms of sections 15 and 16 of this License; or
|
||||||
|
|
||||||
|
b) Requiring preservation of specified reasonable legal notices or
|
||||||
|
author attributions in that material or in the Appropriate Legal
|
||||||
|
Notices displayed by works containing it; or
|
||||||
|
|
||||||
|
c) Prohibiting misrepresentation of the origin of that material, or
|
||||||
|
requiring that modified versions of such material be marked in
|
||||||
|
reasonable ways as different from the original version; or
|
||||||
|
|
||||||
|
d) Limiting the use for publicity purposes of names of licensors or
|
||||||
|
authors of the material; or
|
||||||
|
|
||||||
|
e) Declining to grant rights under trademark law for use of some
|
||||||
|
trade names, trademarks, or service marks; or
|
||||||
|
|
||||||
|
f) Requiring indemnification of licensors and authors of that
|
||||||
|
material by anyone who conveys the material (or modified versions of
|
||||||
|
it) with contractual assumptions of liability to the recipient, for
|
||||||
|
any liability that these contractual assumptions directly impose on
|
||||||
|
those licensors and authors.
|
||||||
|
|
||||||
|
All other non-permissive additional terms are considered "further
|
||||||
|
restrictions" within the meaning of section 10. If the Program as you
|
||||||
|
received it, or any part of it, contains a notice stating that it is
|
||||||
|
governed by this License along with a term that is a further
|
||||||
|
restriction, you may remove that term. If a license document contains
|
||||||
|
a further restriction but permits relicensing or conveying under this
|
||||||
|
License, you may add to a covered work material governed by the terms
|
||||||
|
of that license document, provided that the further restriction does
|
||||||
|
not survive such relicensing or conveying.
|
||||||
|
|
||||||
|
If you add terms to a covered work in accord with this section, you
|
||||||
|
must place, in the relevant source files, a statement of the
|
||||||
|
additional terms that apply to those files, or a notice indicating
|
||||||
|
where to find the applicable terms.
|
||||||
|
|
||||||
|
Additional terms, permissive or non-permissive, may be stated in the
|
||||||
|
form of a separately written license, or stated as exceptions;
|
||||||
|
the above requirements apply either way.
|
||||||
|
|
||||||
|
8. Termination.
|
||||||
|
|
||||||
|
You may not propagate or modify a covered work except as expressly
|
||||||
|
provided under this License. Any attempt otherwise to propagate or
|
||||||
|
modify it is void, and will automatically terminate your rights under
|
||||||
|
this License (including any patent licenses granted under the third
|
||||||
|
paragraph of section 11).
|
||||||
|
|
||||||
|
However, if you cease all violation of this License, then your
|
||||||
|
license from a particular copyright holder is reinstated (a)
|
||||||
|
provisionally, unless and until the copyright holder explicitly and
|
||||||
|
finally terminates your license, and (b) permanently, if the copyright
|
||||||
|
holder fails to notify you of the violation by some reasonable means
|
||||||
|
prior to 60 days after the cessation.
|
||||||
|
|
||||||
|
Moreover, your license from a particular copyright holder is
|
||||||
|
reinstated permanently if the copyright holder notifies you of the
|
||||||
|
violation by some reasonable means, this is the first time you have
|
||||||
|
received notice of violation of this License (for any work) from that
|
||||||
|
copyright holder, and you cure the violation prior to 30 days after
|
||||||
|
your receipt of the notice.
|
||||||
|
|
||||||
|
Termination of your rights under this section does not terminate the
|
||||||
|
licenses of parties who have received copies or rights from you under
|
||||||
|
this License. If your rights have been terminated and not permanently
|
||||||
|
reinstated, you do not qualify to receive new licenses for the same
|
||||||
|
material under section 10.
|
||||||
|
|
||||||
|
9. Acceptance Not Required for Having Copies.
|
||||||
|
|
||||||
|
You are not required to accept this License in order to receive or
|
||||||
|
run a copy of the Program. Ancillary propagation of a covered work
|
||||||
|
occurring solely as a consequence of using peer-to-peer transmission
|
||||||
|
to receive a copy likewise does not require acceptance. However,
|
||||||
|
nothing other than this License grants you permission to propagate or
|
||||||
|
modify any covered work. These actions infringe copyright if you do
|
||||||
|
not accept this License. Therefore, by modifying or propagating a
|
||||||
|
covered work, you indicate your acceptance of this License to do so.
|
||||||
|
|
||||||
|
10. Automatic Licensing of Downstream Recipients.
|
||||||
|
|
||||||
|
Each time you convey a covered work, the recipient automatically
|
||||||
|
receives a license from the original licensors, to run, modify and
|
||||||
|
propagate that work, subject to this License. You are not responsible
|
||||||
|
for enforcing compliance by third parties with this License.
|
||||||
|
|
||||||
|
An "entity transaction" is a transaction transferring control of an
|
||||||
|
organization, or substantially all assets of one, or subdividing an
|
||||||
|
organization, or merging organizations. If propagation of a covered
|
||||||
|
work results from an entity transaction, each party to that
|
||||||
|
transaction who receives a copy of the work also receives whatever
|
||||||
|
licenses to the work the party's predecessor in interest had or could
|
||||||
|
give under the previous paragraph, plus a right to possession of the
|
||||||
|
Corresponding Source of the work from the predecessor in interest, if
|
||||||
|
the predecessor has it or can get it with reasonable efforts.
|
||||||
|
|
||||||
|
You may not impose any further restrictions on the exercise of the
|
||||||
|
rights granted or affirmed under this License. For example, you may
|
||||||
|
not impose a license fee, royalty, or other charge for exercise of
|
||||||
|
rights granted under this License, and you may not initiate litigation
|
||||||
|
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||||
|
any patent claim is infringed by making, using, selling, offering for
|
||||||
|
sale, or importing the Program or any portion of it.
|
||||||
|
|
||||||
|
11. Patents.
|
||||||
|
|
||||||
|
A "contributor" is a copyright holder who authorizes use under this
|
||||||
|
License of the Program or a work on which the Program is based. The
|
||||||
|
work thus licensed is called the contributor's "contributor version".
|
||||||
|
|
||||||
|
A contributor's "essential patent claims" are all patent claims
|
||||||
|
owned or controlled by the contributor, whether already acquired or
|
||||||
|
hereafter acquired, that would be infringed by some manner, permitted
|
||||||
|
by this License, of making, using, or selling its contributor version,
|
||||||
|
but do not include claims that would be infringed only as a
|
||||||
|
consequence of further modification of the contributor version. For
|
||||||
|
purposes of this definition, "control" includes the right to grant
|
||||||
|
patent sublicenses in a manner consistent with the requirements of
|
||||||
|
this License.
|
||||||
|
|
||||||
|
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||||
|
patent license under the contributor's essential patent claims, to
|
||||||
|
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||||
|
propagate the contents of its contributor version.
|
||||||
|
|
||||||
|
In the following three paragraphs, a "patent license" is any express
|
||||||
|
agreement or commitment, however denominated, not to enforce a patent
|
||||||
|
(such as an express permission to practice a patent or covenant not to
|
||||||
|
sue for patent infringement). To "grant" such a patent license to a
|
||||||
|
party means to make such an agreement or commitment not to enforce a
|
||||||
|
patent against the party.
|
||||||
|
|
||||||
|
If you convey a covered work, knowingly relying on a patent license,
|
||||||
|
and the Corresponding Source of the work is not available for anyone
|
||||||
|
to copy, free of charge and under the terms of this License, through a
|
||||||
|
publicly available network server or other readily accessible means,
|
||||||
|
then you must either (1) cause the Corresponding Source to be so
|
||||||
|
available, or (2) arrange to deprive yourself of the benefit of the
|
||||||
|
patent license for this particular work, or (3) arrange, in a manner
|
||||||
|
consistent with the requirements of this License, to extend the patent
|
||||||
|
license to downstream recipients. "Knowingly relying" means you have
|
||||||
|
actual knowledge that, but for the patent license, your conveying the
|
||||||
|
covered work in a country, or your recipient's use of the covered work
|
||||||
|
in a country, would infringe one or more identifiable patents in that
|
||||||
|
country that you have reason to believe are valid.
|
||||||
|
|
||||||
|
If, pursuant to or in connection with a single transaction or
|
||||||
|
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||||
|
covered work, and grant a patent license to some of the parties
|
||||||
|
receiving the covered work authorizing them to use, propagate, modify
|
||||||
|
or convey a specific copy of the covered work, then the patent license
|
||||||
|
you grant is automatically extended to all recipients of the covered
|
||||||
|
work and works based on it.
|
||||||
|
|
||||||
|
A patent license is "discriminatory" if it does not include within
|
||||||
|
the scope of its coverage, prohibits the exercise of, or is
|
||||||
|
conditioned on the non-exercise of one or more of the rights that are
|
||||||
|
specifically granted under this License. You may not convey a covered
|
||||||
|
work if you are a party to an arrangement with a third party that is
|
||||||
|
in the business of distributing software, under which you make payment
|
||||||
|
to the third party based on the extent of your activity of conveying
|
||||||
|
the work, and under which the third party grants, to any of the
|
||||||
|
parties who would receive the covered work from you, a discriminatory
|
||||||
|
patent license (a) in connection with copies of the covered work
|
||||||
|
conveyed by you (or copies made from those copies), or (b) primarily
|
||||||
|
for and in connection with specific products or compilations that
|
||||||
|
contain the covered work, unless you entered into that arrangement,
|
||||||
|
or that patent license was granted, prior to 28 March 2007.
|
||||||
|
|
||||||
|
Nothing in this License shall be construed as excluding or limiting
|
||||||
|
any implied license or other defenses to infringement that may
|
||||||
|
otherwise be available to you under applicable patent law.
|
||||||
|
|
||||||
|
12. No Surrender of Others' Freedom.
|
||||||
|
|
||||||
|
If conditions are imposed on you (whether by court order, agreement or
|
||||||
|
otherwise) that contradict the conditions of this License, they do not
|
||||||
|
excuse you from the conditions of this License. If you cannot convey a
|
||||||
|
covered work so as to satisfy simultaneously your obligations under this
|
||||||
|
License and any other pertinent obligations, then as a consequence you may
|
||||||
|
not convey it at all. For example, if you agree to terms that obligate you
|
||||||
|
to collect a royalty for further conveying from those to whom you convey
|
||||||
|
the Program, the only way you could satisfy both those terms and this
|
||||||
|
License would be to refrain entirely from conveying the Program.
|
||||||
|
|
||||||
|
13. Use with the GNU Affero General Public License.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, you have
|
||||||
|
permission to link or combine any covered work with a work licensed
|
||||||
|
under version 3 of the GNU Affero General Public License into a single
|
||||||
|
combined work, and to convey the resulting work. The terms of this
|
||||||
|
License will continue to apply to the part which is the covered work,
|
||||||
|
but the special requirements of the GNU Affero General Public License,
|
||||||
|
section 13, concerning interaction through a network will apply to the
|
||||||
|
combination as such.
|
||||||
|
|
||||||
|
14. Revised Versions of this License.
|
||||||
|
|
||||||
|
The Free Software Foundation may publish revised and/or new versions of
|
||||||
|
the GNU General Public License from time to time. Such new versions will
|
||||||
|
be similar in spirit to the present version, but may differ in detail to
|
||||||
|
address new problems or concerns.
|
||||||
|
|
||||||
|
Each version is given a distinguishing version number. If the
|
||||||
|
Program specifies that a certain numbered version of the GNU General
|
||||||
|
Public License "or any later version" applies to it, you have the
|
||||||
|
option of following the terms and conditions either of that numbered
|
||||||
|
version or of any later version published by the Free Software
|
||||||
|
Foundation. If the Program does not specify a version number of the
|
||||||
|
GNU General Public License, you may choose any version ever published
|
||||||
|
by the Free Software Foundation.
|
||||||
|
|
||||||
|
If the Program specifies that a proxy can decide which future
|
||||||
|
versions of the GNU General Public License can be used, that proxy's
|
||||||
|
public statement of acceptance of a version permanently authorizes you
|
||||||
|
to choose that version for the Program.
|
||||||
|
|
||||||
|
Later license versions may give you additional or different
|
||||||
|
permissions. However, no additional obligations are imposed on any
|
||||||
|
author or copyright holder as a result of your choosing to follow a
|
||||||
|
later version.
|
||||||
|
|
||||||
|
15. Disclaimer of Warranty.
|
||||||
|
|
||||||
|
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||||
|
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||||
|
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||||
|
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||||
|
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||||
|
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||||
|
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||||
|
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||||
|
|
||||||
|
16. Limitation of Liability.
|
||||||
|
|
||||||
|
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||||
|
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||||
|
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||||
|
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||||
|
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||||
|
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||||
|
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||||
|
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||||
|
SUCH DAMAGES.
|
||||||
|
|
||||||
|
17. Interpretation of Sections 15 and 16.
|
||||||
|
|
||||||
|
If the disclaimer of warranty and limitation of liability provided
|
||||||
|
above cannot be given local legal effect according to their terms,
|
||||||
|
reviewing courts shall apply local law that most closely approximates
|
||||||
|
an absolute waiver of all civil liability in connection with the
|
||||||
|
Program, unless a warranty or assumption of liability accompanies a
|
||||||
|
copy of the Program in return for a fee.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
How to Apply These Terms to Your New Programs
|
||||||
|
|
||||||
|
If you develop a new program, and you want it to be of the greatest
|
||||||
|
possible use to the public, the best way to achieve this is to make it
|
||||||
|
free software which everyone can redistribute and change under these terms.
|
||||||
|
|
||||||
|
To do so, attach the following notices to the program. It is safest
|
||||||
|
to attach them to the start of each source file to most effectively
|
||||||
|
state the exclusion of warranty; and each file should have at least
|
||||||
|
the "copyright" line and a pointer to where the full notice is found.
|
||||||
|
|
||||||
|
<one line to give the program's name and a brief idea of what it does.>
|
||||||
|
Copyright (C) <year> <name of author>
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Also add information on how to contact you by electronic and paper mail.
|
||||||
|
|
||||||
|
If the program does terminal interaction, make it output a short
|
||||||
|
notice like this when it starts in an interactive mode:
|
||||||
|
|
||||||
|
<program> Copyright (C) <year> <name of author>
|
||||||
|
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||||
|
This is free software, and you are welcome to redistribute it
|
||||||
|
under certain conditions; type `show c' for details.
|
||||||
|
|
||||||
|
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||||
|
parts of the General Public License. Of course, your program's commands
|
||||||
|
might be different; for a GUI interface, you would use an "about box".
|
||||||
|
|
||||||
|
You should also get your employer (if you work as a programmer) or school,
|
||||||
|
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||||
|
For more information on this, and how to apply and follow the GNU GPL, see
|
||||||
|
<http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
The GNU General Public License does not permit incorporating your program
|
||||||
|
into proprietary programs. If your program is a subroutine library, you
|
||||||
|
may consider it more useful to permit linking proprietary applications with
|
||||||
|
the library. If this is what you want to do, use the GNU Lesser General
|
||||||
|
Public License instead of this License. But first, please read
|
||||||
|
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
|
||||||
9
deployed/xef/libraries/xef/assets/css/bootstrap.css
vendored
Normal file
416
deployed/xef/libraries/xef/assets/css/chosen.css
Normal file
@ -0,0 +1,416 @@
|
|||||||
|
/* @group Base */
|
||||||
|
.chzn-container {
|
||||||
|
font-size: 13px;
|
||||||
|
position: relative;
|
||||||
|
display: inline-block;
|
||||||
|
zoom: 1;
|
||||||
|
*display: inline;
|
||||||
|
}
|
||||||
|
.chzn-container .chzn-drop {
|
||||||
|
background: #fff;
|
||||||
|
border: 1px solid #aaa;
|
||||||
|
border-top: 0;
|
||||||
|
position: absolute;
|
||||||
|
top: 29px;
|
||||||
|
left: 0;
|
||||||
|
-webkit-box-shadow: 0 4px 5px rgba(0, 0, 0, 0.15);
|
||||||
|
-moz-box-shadow: 0 4px 5px rgba(0, 0, 0, 0.15);
|
||||||
|
-o-box-shadow: 0 4px 5px rgba(0, 0, 0, 0.15);
|
||||||
|
box-shadow: 0 4px 5px rgba(0, 0, 0, 0.15);
|
||||||
|
z-index: 999;
|
||||||
|
}
|
||||||
|
/* @end */
|
||||||
|
/* @group Single Chosen */
|
||||||
|
.chzn-container-single .chzn-single {
|
||||||
|
background-color: #ffffff;
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#eeeeee', GradientType=0);
|
||||||
|
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(20%, #ffffff), color-stop(50%, #f6f6f6), color-stop(52%, #eeeeee), color-stop(100%, #f4f4f4));
|
||||||
|
background-image: -webkit-linear-gradient(top, #ffffff 20%, #f6f6f6 50%, #eeeeee 52%, #f4f4f4 100%);
|
||||||
|
background-image: -moz-linear-gradient(top, #ffffff 20%, #f6f6f6 50%, #eeeeee 52%, #f4f4f4 100%);
|
||||||
|
background-image: -o-linear-gradient(top, #ffffff 20%, #f6f6f6 50%, #eeeeee 52%, #f4f4f4 100%);
|
||||||
|
background-image: -ms-linear-gradient(top, #ffffff 20%, #f6f6f6 50%, #eeeeee 52%, #f4f4f4 100%);
|
||||||
|
background-image: linear-gradient(top, #ffffff 20%, #f6f6f6 50%, #eeeeee 52%, #f4f4f4 100%);
|
||||||
|
-webkit-border-radius: 5px;
|
||||||
|
-moz-border-radius: 5px;
|
||||||
|
border-radius: 5px;
|
||||||
|
-moz-background-clip: padding;
|
||||||
|
-webkit-background-clip: padding-box;
|
||||||
|
background-clip: padding-box;
|
||||||
|
border: 1px solid #aaaaaa;
|
||||||
|
-webkit-box-shadow: 0 0 3px #ffffff inset, 0 1px 1px rgba(0, 0, 0, 0.1);
|
||||||
|
-moz-box-shadow: 0 0 3px #ffffff inset, 0 1px 1px rgba(0, 0, 0, 0.1);
|
||||||
|
box-shadow: 0 0 3px #ffffff inset, 0 1px 1px rgba(0, 0, 0, 0.1);
|
||||||
|
display: block;
|
||||||
|
overflow: hidden;
|
||||||
|
white-space: nowrap;
|
||||||
|
position: relative;
|
||||||
|
height: 23px;
|
||||||
|
line-height: 24px;
|
||||||
|
padding: 0 0 0 8px;
|
||||||
|
color: #444444;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
.chzn-container-single .chzn-default {
|
||||||
|
color: #999;
|
||||||
|
}
|
||||||
|
.chzn-container-single .chzn-single span {
|
||||||
|
margin-right: 26px;
|
||||||
|
display: block;
|
||||||
|
overflow: hidden;
|
||||||
|
white-space: nowrap;
|
||||||
|
-o-text-overflow: ellipsis;
|
||||||
|
-ms-text-overflow: ellipsis;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
.chzn-container-single .chzn-single abbr {
|
||||||
|
display: block;
|
||||||
|
position: absolute;
|
||||||
|
right: 26px;
|
||||||
|
top: 6px;
|
||||||
|
width: 12px;
|
||||||
|
height: 13px;
|
||||||
|
font-size: 1px;
|
||||||
|
background: url(../images/chosen-sprite.png) right top no-repeat;
|
||||||
|
}
|
||||||
|
.chzn-container-single .chzn-single abbr:hover {
|
||||||
|
background-position: right -11px;
|
||||||
|
}
|
||||||
|
.chzn-container-single .chzn-single div {
|
||||||
|
position: absolute;
|
||||||
|
right: 0;
|
||||||
|
top: 0;
|
||||||
|
display: block;
|
||||||
|
height: 100%;
|
||||||
|
width: 18px;
|
||||||
|
}
|
||||||
|
.chzn-container-single .chzn-single div b {
|
||||||
|
background: url('../images/sprite.png') no-repeat 0 0;
|
||||||
|
display: block;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
.chzn-container-single .chzn-search {
|
||||||
|
padding: 3px 4px;
|
||||||
|
position: relative;
|
||||||
|
margin: 0;
|
||||||
|
white-space: nowrap;
|
||||||
|
z-index: 1010;
|
||||||
|
}
|
||||||
|
.chzn-container-single .chzn-search input {
|
||||||
|
background: #ffffff url('../images/chosen-sprite.png') no-repeat 100% -22px;
|
||||||
|
background: url('../images/chosen-sprite.png') no-repeat 100% -22px, -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(1%, #eeeeee), color-stop(15%, #ffffff));
|
||||||
|
background: url('../images/chosen-sprite.png') no-repeat 100% -22px, -webkit-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
|
||||||
|
background: url('../images/chosen-sprite.png') no-repeat 100% -22px, -moz-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
|
||||||
|
background: url('../images/chosen-sprite.png') no-repeat 100% -22px, -o-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
|
||||||
|
background: url('../images/chosen-sprite.png') no-repeat 100% -22px, -ms-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
|
||||||
|
background: url('../images/chosen-sprite.png') no-repeat 100% -22px, linear-gradient(top, #eeeeee 1%, #ffffff 15%);
|
||||||
|
margin: 1px 0;
|
||||||
|
padding: 4px 20px 4px 5px;
|
||||||
|
outline: 0;
|
||||||
|
border: 1px solid #aaa;
|
||||||
|
font-family: sans-serif;
|
||||||
|
font-size: 1em;
|
||||||
|
}
|
||||||
|
.chzn-container-single .chzn-drop {
|
||||||
|
-webkit-border-radius: 0 0 4px 4px;
|
||||||
|
-moz-border-radius: 0 0 4px 4px;
|
||||||
|
border-radius: 0 0 4px 4px;
|
||||||
|
-moz-background-clip: padding;
|
||||||
|
-webkit-background-clip: padding-box;
|
||||||
|
background-clip: padding-box;
|
||||||
|
}
|
||||||
|
/* @end */
|
||||||
|
.chzn-container-single-nosearch .chzn-search input {
|
||||||
|
position: absolute;
|
||||||
|
left: -9000px;
|
||||||
|
}
|
||||||
|
/* @group Multi Chosen */
|
||||||
|
.chzn-container-multi .chzn-choices {
|
||||||
|
background-color: #fff;
|
||||||
|
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(1%, #eeeeee), color-stop(15%, #ffffff));
|
||||||
|
background-image: -webkit-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
|
||||||
|
background-image: -moz-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
|
||||||
|
background-image: -o-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
|
||||||
|
background-image: -ms-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
|
||||||
|
background-image: linear-gradient(top, #eeeeee 1%, #ffffff 15%);
|
||||||
|
border: 1px solid #aaa;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
cursor: text;
|
||||||
|
overflow: hidden;
|
||||||
|
height: auto !important;
|
||||||
|
height: 1%;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
.chzn-container-multi .chzn-choices li {
|
||||||
|
float: left;
|
||||||
|
list-style: none;
|
||||||
|
}
|
||||||
|
.chzn-container-multi .chzn-choices .search-field {
|
||||||
|
white-space: nowrap;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
.chzn-container-multi .chzn-choices .search-field input {
|
||||||
|
color: #666;
|
||||||
|
background: transparent !important;
|
||||||
|
border: 0 !important;
|
||||||
|
font-family: sans-serif;
|
||||||
|
font-size: 100%;
|
||||||
|
height: 15px;
|
||||||
|
padding: 5px;
|
||||||
|
margin: 1px 0;
|
||||||
|
outline: 0;
|
||||||
|
-webkit-box-shadow: none;
|
||||||
|
-moz-box-shadow: none;
|
||||||
|
-o-box-shadow: none;
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
.chzn-container-multi .chzn-choices .search-field .default {
|
||||||
|
color: #999;
|
||||||
|
}
|
||||||
|
.chzn-container-multi .chzn-choices .search-choice {
|
||||||
|
-webkit-border-radius: 3px;
|
||||||
|
-moz-border-radius: 3px;
|
||||||
|
border-radius: 3px;
|
||||||
|
-moz-background-clip: padding;
|
||||||
|
-webkit-background-clip: padding-box;
|
||||||
|
background-clip: padding-box;
|
||||||
|
background-color: #e4e4e4;
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f4f4f4', endColorstr='#eeeeee', GradientType=0);
|
||||||
|
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(20%, #f4f4f4), color-stop(50%, #f0f0f0), color-stop(52%, #e8e8e8), color-stop(100%, #eeeeee));
|
||||||
|
background-image: -webkit-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
|
||||||
|
background-image: -moz-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
|
||||||
|
background-image: -o-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
|
||||||
|
background-image: -ms-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
|
||||||
|
background-image: linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
|
||||||
|
-webkit-box-shadow: 0 0 2px #ffffff inset, 0 1px 0 rgba(0, 0, 0, 0.05);
|
||||||
|
-moz-box-shadow: 0 0 2px #ffffff inset, 0 1px 0 rgba(0, 0, 0, 0.05);
|
||||||
|
box-shadow: 0 0 2px #ffffff inset, 0 1px 0 rgba(0, 0, 0, 0.05);
|
||||||
|
color: #333;
|
||||||
|
border: 1px solid #aaaaaa;
|
||||||
|
line-height: 13px;
|
||||||
|
padding: 3px 20px 3px 5px;
|
||||||
|
margin: 3px 0 3px 5px;
|
||||||
|
position: relative;
|
||||||
|
cursor: default;
|
||||||
|
}
|
||||||
|
.chzn-container-multi .chzn-choices .search-choice-focus {
|
||||||
|
background: #d4d4d4;
|
||||||
|
}
|
||||||
|
.chzn-container-multi .chzn-choices .search-choice .search-choice-close {
|
||||||
|
display: block;
|
||||||
|
position: absolute;
|
||||||
|
right: 3px;
|
||||||
|
top: 4px;
|
||||||
|
width: 12px;
|
||||||
|
height: 13px;
|
||||||
|
font-size: 1px;
|
||||||
|
background: url(../images/chosen-sprite.png) right top no-repeat;
|
||||||
|
}
|
||||||
|
.chzn-container-multi .chzn-choices .search-choice .search-choice-close:hover {
|
||||||
|
background-position: right -11px;
|
||||||
|
}
|
||||||
|
.chzn-container-multi .chzn-choices .search-choice-focus .search-choice-close {
|
||||||
|
background-position: right -11px;
|
||||||
|
}
|
||||||
|
/* @end */
|
||||||
|
/* @group Results */
|
||||||
|
.chzn-container .chzn-results {
|
||||||
|
margin: 0 4px 4px 0;
|
||||||
|
max-height: 100px;
|
||||||
|
padding: 0 0 0 4px;
|
||||||
|
position: relative;
|
||||||
|
overflow-x: hidden;
|
||||||
|
overflow-y: auto;
|
||||||
|
}
|
||||||
|
.chzn-container-multi .chzn-results {
|
||||||
|
margin: -1px 0 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
.chzn-container .chzn-results li {
|
||||||
|
display: none;
|
||||||
|
line-height: 15px;
|
||||||
|
padding: 5px 6px;
|
||||||
|
margin: 0;
|
||||||
|
list-style: none;
|
||||||
|
}
|
||||||
|
.chzn-container .chzn-results .active-result {
|
||||||
|
cursor: pointer;
|
||||||
|
display: list-item;
|
||||||
|
}
|
||||||
|
.chzn-container .chzn-results .highlighted {
|
||||||
|
background-color: #3875d7;
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#3875d7', endColorstr='#2a62bc', GradientType=0);
|
||||||
|
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(20%, #3875d7), color-stop(90%, #2a62bc));
|
||||||
|
background-image: -webkit-linear-gradient(top, #3875d7 20%, #2a62bc 90%);
|
||||||
|
background-image: -moz-linear-gradient(top, #3875d7 20%, #2a62bc 90%);
|
||||||
|
background-image: -o-linear-gradient(top, #3875d7 20%, #2a62bc 90%);
|
||||||
|
background-image: -ms-linear-gradient(top, #3875d7 20%, #2a62bc 90%);
|
||||||
|
background-image: linear-gradient(top, #3875d7 20%, #2a62bc 90%);
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
.chzn-container .chzn-results li em {
|
||||||
|
background: #feffde;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
.chzn-container .chzn-results .highlighted em {
|
||||||
|
background: transparent;
|
||||||
|
}
|
||||||
|
.chzn-container .chzn-results .no-results {
|
||||||
|
background: #f4f4f4;
|
||||||
|
display: list-item;
|
||||||
|
}
|
||||||
|
.chzn-container .chzn-results .group-result {
|
||||||
|
cursor: default;
|
||||||
|
color: #999;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
.chzn-container .chzn-results .group-option {
|
||||||
|
padding-left: 15px;
|
||||||
|
}
|
||||||
|
.chzn-container-multi .chzn-drop .result-selected {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.chzn-container .chzn-results-scroll {
|
||||||
|
background: white;
|
||||||
|
margin: 0 4px;
|
||||||
|
position: absolute;
|
||||||
|
text-align: center;
|
||||||
|
width: 321px;
|
||||||
|
/* This should by dynamic with js */
|
||||||
|
z-index: 1;
|
||||||
|
}
|
||||||
|
.chzn-container .chzn-results-scroll span {
|
||||||
|
display: inline-block;
|
||||||
|
height: 17px;
|
||||||
|
text-indent: -5000px;
|
||||||
|
width: 9px;
|
||||||
|
}
|
||||||
|
.chzn-container .chzn-results-scroll-down {
|
||||||
|
bottom: 0;
|
||||||
|
}
|
||||||
|
.chzn-container .chzn-results-scroll-down span {
|
||||||
|
background: url('../images/chosen-sprite.png') no-repeat -4px -3px;
|
||||||
|
}
|
||||||
|
.chzn-container .chzn-results-scroll-up span {
|
||||||
|
background: url('../images/chosen-sprite.png') no-repeat -22px -3px;
|
||||||
|
}
|
||||||
|
/* @end */
|
||||||
|
/* @group Active */
|
||||||
|
.chzn-container-active .chzn-single {
|
||||||
|
-webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
|
||||||
|
-moz-box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
|
||||||
|
-o-box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
|
||||||
|
box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
|
||||||
|
border: 1px solid #5897fb;
|
||||||
|
}
|
||||||
|
.chzn-container-active .chzn-single-with-drop {
|
||||||
|
border: 1px solid #aaa;
|
||||||
|
-webkit-box-shadow: 0 1px 0 #fff inset;
|
||||||
|
-moz-box-shadow: 0 1px 0 #fff inset;
|
||||||
|
-o-box-shadow: 0 1px 0 #fff inset;
|
||||||
|
box-shadow: 0 1px 0 #fff inset;
|
||||||
|
background-color: #eee;
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#eeeeee', endColorstr='#ffffff', GradientType=0);
|
||||||
|
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(20%, #eeeeee), color-stop(80%, #ffffff));
|
||||||
|
background-image: -webkit-linear-gradient(top, #eeeeee 20%, #ffffff 80%);
|
||||||
|
background-image: -moz-linear-gradient(top, #eeeeee 20%, #ffffff 80%);
|
||||||
|
background-image: -o-linear-gradient(top, #eeeeee 20%, #ffffff 80%);
|
||||||
|
background-image: -ms-linear-gradient(top, #eeeeee 20%, #ffffff 80%);
|
||||||
|
background-image: linear-gradient(top, #eeeeee 20%, #ffffff 80%);
|
||||||
|
-webkit-border-bottom-left-radius: 0;
|
||||||
|
-webkit-border-bottom-right-radius: 0;
|
||||||
|
-moz-border-radius-bottomleft: 0;
|
||||||
|
-moz-border-radius-bottomright: 0;
|
||||||
|
border-bottom-left-radius: 0;
|
||||||
|
border-bottom-right-radius: 0;
|
||||||
|
}
|
||||||
|
.chzn-container-active .chzn-single-with-drop div {
|
||||||
|
background: transparent;
|
||||||
|
border-left: none;
|
||||||
|
}
|
||||||
|
.chzn-container-active .chzn-single-with-drop div b {
|
||||||
|
background-position: -18px 1px;
|
||||||
|
}
|
||||||
|
.chzn-container-active .chzn-choices {
|
||||||
|
-webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
|
||||||
|
-moz-box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
|
||||||
|
-o-box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
|
||||||
|
box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
|
||||||
|
border: 1px solid #5897fb;
|
||||||
|
}
|
||||||
|
.chzn-container-active .chzn-choices .search-field input {
|
||||||
|
color: #111 !important;
|
||||||
|
}
|
||||||
|
/* @end */
|
||||||
|
/* @group Disabled Support */
|
||||||
|
.chzn-disabled {
|
||||||
|
cursor: default;
|
||||||
|
opacity: 0.5 !important;
|
||||||
|
}
|
||||||
|
.chzn-disabled .chzn-single {
|
||||||
|
cursor: default;
|
||||||
|
}
|
||||||
|
.chzn-disabled .chzn-choices .search-choice .search-choice-close {
|
||||||
|
cursor: default;
|
||||||
|
}
|
||||||
|
/* @group Right to Left */
|
||||||
|
.chzn-rtl {
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
.chzn-rtl .chzn-single {
|
||||||
|
padding: 0 8px 0 0;
|
||||||
|
overflow: visible;
|
||||||
|
}
|
||||||
|
.chzn-rtl .chzn-single span {
|
||||||
|
margin-left: 26px;
|
||||||
|
margin-right: 0;
|
||||||
|
direction: rtl;
|
||||||
|
}
|
||||||
|
.chzn-rtl .chzn-single div {
|
||||||
|
left: 3px;
|
||||||
|
right: auto;
|
||||||
|
}
|
||||||
|
.chzn-rtl .chzn-single abbr {
|
||||||
|
left: 26px;
|
||||||
|
right: auto;
|
||||||
|
}
|
||||||
|
.chzn-rtl .chzn-choices .search-field input {
|
||||||
|
direction: rtl;
|
||||||
|
}
|
||||||
|
.chzn-rtl .chzn-choices li {
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
.chzn-rtl .chzn-choices .search-choice {
|
||||||
|
padding: 3px 5px 3px 19px;
|
||||||
|
margin: 3px 5px 3px 0;
|
||||||
|
}
|
||||||
|
.chzn-rtl .chzn-choices .search-choice .search-choice-close {
|
||||||
|
left: 4px;
|
||||||
|
right: auto;
|
||||||
|
background-position: right top;
|
||||||
|
}
|
||||||
|
.chzn-rtl.chzn-container-single .chzn-results {
|
||||||
|
margin: 0 0 4px 4px;
|
||||||
|
padding: 0 4px 0 0;
|
||||||
|
}
|
||||||
|
.chzn-rtl .chzn-results .group-option {
|
||||||
|
padding-left: 0;
|
||||||
|
padding-right: 15px;
|
||||||
|
}
|
||||||
|
.chzn-rtl.chzn-container-active .chzn-single-with-drop div {
|
||||||
|
border-right: none;
|
||||||
|
}
|
||||||
|
.chzn-rtl .chzn-search input {
|
||||||
|
background: #ffffff url('../images/chosen-sprite.png') no-repeat -38px -22px;
|
||||||
|
background: url('../images/chosen-sprite.png') no-repeat -38px -22px, -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(1%, #eeeeee), color-stop(15%, #ffffff));
|
||||||
|
background: url('../images/chosen-sprite.png') no-repeat -38px -22px, -webkit-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
|
||||||
|
background: url('../images/chosen-sprite.png') no-repeat -38px -22px, -moz-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
|
||||||
|
background: url('../images/chosen-sprite.png') no-repeat -38px -22px, -o-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
|
||||||
|
background: url('../images/chosen-sprite.png') no-repeat -38px -22px, -ms-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
|
||||||
|
background: url('../images/chosen-sprite.png') no-repeat -38px -22px, linear-gradient(top, #eeeeee 1%, #ffffff 15%);
|
||||||
|
padding: 4px 5px 4px 20px;
|
||||||
|
direction: rtl;
|
||||||
|
}
|
||||||
|
/* @end */
|
||||||
46
deployed/xef/libraries/xef/assets/css/image-picker.css
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
/*Core*/
|
||||||
|
ul.thumbnails.image_picker_selector {
|
||||||
|
overflow: auto;
|
||||||
|
list-style-image: none;
|
||||||
|
list-style-position: outside;
|
||||||
|
list-style-type: none;
|
||||||
|
padding: 0px;
|
||||||
|
margin: 0px; }
|
||||||
|
ul.thumbnails.image_picker_selector ul {
|
||||||
|
overflow: auto;
|
||||||
|
list-style-image: none;
|
||||||
|
list-style-position: outside;
|
||||||
|
list-style-type: none;
|
||||||
|
padding: 0px;
|
||||||
|
margin: 0px; }
|
||||||
|
ul.thumbnails.image_picker_selector li.group_title {
|
||||||
|
float: none; }
|
||||||
|
ul.thumbnails.image_picker_selector li {
|
||||||
|
margin: 0px 12px 12px 0px;
|
||||||
|
float: left; }
|
||||||
|
ul.thumbnails.image_picker_selector li .thumbnail {
|
||||||
|
padding: 6px;
|
||||||
|
border: 1px solid #dddddd;
|
||||||
|
-webkit-user-select: none;
|
||||||
|
-moz-user-select: none;
|
||||||
|
-ms-user-select: none; }
|
||||||
|
ul.thumbnails.image_picker_selector li .thumbnail img {
|
||||||
|
-webkit-user-drag: none; }
|
||||||
|
ul.thumbnails.image_picker_selector li .thumbnail.selected {
|
||||||
|
background: #0088cc; }
|
||||||
|
|
||||||
|
/*Styles*/
|
||||||
|
ul.thumbnails.image_picker_selector li{ width: 104px; }
|
||||||
|
ul.thumbnails.image_picker_selector li .thumbnail {
|
||||||
|
border-radius: 4px; text-align: center; cursor: pointer;
|
||||||
|
}
|
||||||
|
ul.thumbnails.image_picker_selector li .thumbnail:not(.selected):hover {
|
||||||
|
background: #eee; box-shadow: 0 0 4px #DDDADA inset;
|
||||||
|
}
|
||||||
|
ul.thumbnails.image_picker_selector li .thumbnail img{
|
||||||
|
margin: 0; float: none;
|
||||||
|
}
|
||||||
|
ul.thumbnails.image_picker_selector li .thumbnail p{
|
||||||
|
margin: 5px 0 0; font-size: 11px;
|
||||||
|
}
|
||||||
|
ul.thumbnails.image_picker_selector li .thumbnail.selected p{ color: #fff; }
|
||||||
1
deployed/xef/libraries/xef/assets/css/index.html
Normal file
@ -0,0 +1 @@
|
|||||||
|
<!DOCTYPE html><title></title>
|
||||||
1321
deployed/xef/libraries/xef/assets/css/jquery-ui-1.8.16.custom.css
vendored
Normal file
BIN
deployed/xef/libraries/xef/assets/images/advance.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
deployed/xef/libraries/xef/assets/images/behavior.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
deployed/xef/libraries/xef/assets/images/chosen-sprite.png
Normal file
|
After Width: | Height: | Size: 559 B |
|
After Width: | Height: | Size: 4.8 KiB |
|
After Width: | Height: | Size: 53 KiB |
BIN
deployed/xef/libraries/xef/assets/images/data-source.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 4.1 KiB |
1
deployed/xef/libraries/xef/assets/images/index.html
Normal file
@ -0,0 +1 @@
|
|||||||
|
<html><body bgcolor="#FFFFFF"></body></html>
|
||||||
BIN
deployed/xef/libraries/xef/assets/images/interface.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
deployed/xef/libraries/xef/assets/images/noimage.jpg
Normal file
|
After Width: | Height: | Size: 16 KiB |
1
deployed/xef/libraries/xef/assets/index.html
Normal file
@ -0,0 +1 @@
|
|||||||
|
<!DOCTYPE html><title></title>
|
||||||
393
deployed/xef/libraries/xef/assets/js/admin.js
Normal file
@ -0,0 +1,393 @@
|
|||||||
|
/**
|
||||||
|
* @package Xpert Slider
|
||||||
|
* @version 1.1
|
||||||
|
* @author ThemeXpert http://www.themexpert.com
|
||||||
|
* @copyright Copyright (C) 2009 - 2011 ThemeXpert
|
||||||
|
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
jQuery.noConflict();
|
||||||
|
jQuery(document).ready(function(fn){
|
||||||
|
|
||||||
|
// Apply jquery UI Radio element style
|
||||||
|
// Turn radios into btn-group
|
||||||
|
fn('#jform_showtitle').addClass('btn-group');
|
||||||
|
|
||||||
|
fn('.radio.btn-group label').addClass('btn');
|
||||||
|
fn(".btn-group label:not(.active)").click(function() {
|
||||||
|
var label = fn(this);
|
||||||
|
var input = fn('#' + label.attr('for'));
|
||||||
|
|
||||||
|
if (!input.prop('checked')) {
|
||||||
|
label.closest('.btn-group').find("label").removeClass('active btn-success btn-danger btn-primary');
|
||||||
|
if(input.val()== '') {
|
||||||
|
label.addClass('active btn-primary');
|
||||||
|
} else if(input.val()==0) {
|
||||||
|
label.addClass('active btn-danger');
|
||||||
|
} else {
|
||||||
|
label.addClass('active btn-success');
|
||||||
|
}
|
||||||
|
input.prop('checked', true);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
fn(".btn-group input[checked=checked]").each(function() {
|
||||||
|
if(fn(this).val()== '') {
|
||||||
|
fn("label[for=" + fn(this).attr('id') + "]").addClass('active btn-primary');
|
||||||
|
} else if(fn(this).val()==0) {
|
||||||
|
fn("label[for=" + fn(this).attr('id') + "]").addClass('active btn-danger');
|
||||||
|
} else {
|
||||||
|
fn("label[for=" + fn(this).attr('id') + "]").addClass('active btn-success');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
//Bootsrap button on Joomla2.5 toolbar button
|
||||||
|
fn('#toolbar li a').addClass('btn');
|
||||||
|
|
||||||
|
// Bootstrap button for position
|
||||||
|
var pos = fn('#jform_position-lbl').closest('li');
|
||||||
|
pos.addClass('input-append').find('a').addClass('btn');
|
||||||
|
|
||||||
|
// Boostraped alert message
|
||||||
|
fn('#system-message ul li').addClass('alert alert-info');
|
||||||
|
|
||||||
|
//Chosen Multiple selector
|
||||||
|
fn(".chzn-select").chosen();
|
||||||
|
|
||||||
|
// For module selecting box, increase the panelform height
|
||||||
|
fn('#MODULE-options').next().find('.panelform').css('min-height', 150);
|
||||||
|
|
||||||
|
fn('.cs-list a').popover({
|
||||||
|
placement : 'right'
|
||||||
|
});
|
||||||
|
|
||||||
|
//k2 cat filter selection
|
||||||
|
fn('#jform_params_k2_catfilter0').click(function(){
|
||||||
|
fn('#jformparamsk2_catid').closest('li').hide();
|
||||||
|
fn('#jformparamsk2_catid').closest('div.control-group').hide();
|
||||||
|
});
|
||||||
|
|
||||||
|
fn('#jform_params_k2_catfilter1').click(function(){
|
||||||
|
fn('#jformparamsk2_catid').closest('li').show();
|
||||||
|
fn('#jformparamsk2_catid').closest('div.control-group').show();
|
||||||
|
});
|
||||||
|
|
||||||
|
if (fn('#jform_params_k2_catfilter0').attr('checked')) {
|
||||||
|
fn('#jformparamsk2_catid').closest('li').hide();
|
||||||
|
fn('#jformparamsk2_catid').closest('div.control-group').hide();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (fn('#jform_params_k2_catfilter1').attr('checked')) {
|
||||||
|
fn('#jformparamsk2_catid').closest('li').show();
|
||||||
|
fn('#jformparamsk2_catid').closest('div.control-group').show();
|
||||||
|
}
|
||||||
|
|
||||||
|
//Joomla cat filter selection
|
||||||
|
fn('#jform_params_jomcatfilter0').click(function(){
|
||||||
|
fn('#jform_params_jom_catid').closest('li').hide();
|
||||||
|
fn('#jform_params_jom_catid').closest('div.control-group').hide();
|
||||||
|
});
|
||||||
|
|
||||||
|
fn('#jform_params_jomcatfilter1').click(function(){
|
||||||
|
fn('#jform_params_jom_catid').closest('li').show();
|
||||||
|
fn('#jform_params_jom_catid').closest('div.control-group').show();
|
||||||
|
});
|
||||||
|
|
||||||
|
if (fn('#jform_params_jomcatfilter0').attr('checked')) {
|
||||||
|
fn('#jform_params_jom_catid').closest('li').hide();
|
||||||
|
fn('#jform_params_jom_catid').closest('div.control-group').hide();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (fn('#jform_params_jomcatfilter1').attr('checked')) {
|
||||||
|
fn('#jform_params_jom_catid').closest('li').show();
|
||||||
|
fn('#jform_params_jom_catid').closest('div.control-group').show();
|
||||||
|
}
|
||||||
|
|
||||||
|
//EasyBlog cat filter selection
|
||||||
|
fn('#jform_params_ezb_catfilter0').click(function(){
|
||||||
|
fn('#jformparamsezb_catid').closest('li').hide();
|
||||||
|
fn('#jform_params_ezb_catid').closest('div.control-group').hide();
|
||||||
|
});
|
||||||
|
|
||||||
|
fn('#jform_params_ezb_catfilter1').click(function(){
|
||||||
|
fn('#jformparamsezb_catid').closest('li').show();
|
||||||
|
fn('#jform_params_ezb_catid').closest('div.control-group').show();
|
||||||
|
});
|
||||||
|
|
||||||
|
if (fn('#jform_params_ezb_catfilter0').attr('checked')) {
|
||||||
|
fn('#jformparamsezb_catid').closest('li').hide();
|
||||||
|
fn('#jform_params_ezb_catid').closest('div.control-group').hide();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (fn('#jform_params_ezb_catfilter1').attr('checked')) {
|
||||||
|
fn('#jformparamsezb_catid').closest('li').show();
|
||||||
|
fn('#jform_params_ezb_catid').closest('div.control-group').show();
|
||||||
|
}
|
||||||
|
|
||||||
|
//Loader selection
|
||||||
|
fn('#jform_params_loader0').click( function(){
|
||||||
|
fn('#jform_params_pie_position').closest('li').show();
|
||||||
|
fn('#jform_params_pie_position').closest('div.control-group').show();
|
||||||
|
fn('#jform_params_bar_position').closest('li').hide();
|
||||||
|
fn('#jform_params_bar_position').closest('div.control-group').hide();
|
||||||
|
});
|
||||||
|
if (fn('#jform_params_loader0').attr('checked')) {
|
||||||
|
fn('#jform_params_pie_position').closest('li').show();
|
||||||
|
fn('#jform_params_pie_position').closest('div.control-group').show();
|
||||||
|
fn('#jform_params_bar_position').closest('li').hide();
|
||||||
|
fn('#jform_params_bar_position').closest('div.control-group').hide();
|
||||||
|
}
|
||||||
|
|
||||||
|
fn('#jform_params_loader1').click( function(){
|
||||||
|
fn('#jform_params_bar_position').closest('li').show();
|
||||||
|
fn('#jform_params_bar_position').closest('div.control-group').show();
|
||||||
|
fn('#jform_params_pie_position').closest('li').hide();
|
||||||
|
fn('#jform_params_pie_position').closest('div.control-group').hide();
|
||||||
|
});
|
||||||
|
if (fn('#jform_params_loader1').attr('checked')) {
|
||||||
|
fn('#jform_params_bar_position').closest('li').show();
|
||||||
|
fn('#jform_params_bar_position').closest('div.control-group').show();
|
||||||
|
fn('#jform_params_pie_position').closest('li').hide();
|
||||||
|
fn('#jform_params_pie_position').closest('div.control-group').hide();
|
||||||
|
}
|
||||||
|
|
||||||
|
fn('#jform_params_loader2').click( function(){
|
||||||
|
fn('#jform_params_bar_position').closest('li').hide();
|
||||||
|
fn('#jform_params_bar_position').closest('div.control-group').hide();
|
||||||
|
fn('#jform_params_pie_position').closest('li').hide();
|
||||||
|
fn('#jform_params_pie_position').closest('div.control-group').hide();
|
||||||
|
});
|
||||||
|
if (fn('#jform_params_loader2').attr('checked')) {
|
||||||
|
fn('#jform_params_bar_position').closest('li').hide();
|
||||||
|
fn('#jform_params_bar_position').closest('div.control-group').hide();
|
||||||
|
fn('#jform_params_pie_position').closest('li').hide();
|
||||||
|
fn('#jform_params_pie_position').closest('div.control-group').hide();
|
||||||
|
}
|
||||||
|
|
||||||
|
//switch panel based on provided content source
|
||||||
|
function panelSwitcher(text)
|
||||||
|
{
|
||||||
|
switch (text){
|
||||||
|
case 'joomla': showJoomla(); break;
|
||||||
|
case 'k2' : showK2(); break;
|
||||||
|
case 'easyblog' : showEasyblog(); break;
|
||||||
|
case 'flickr' : showFlickr(); break;
|
||||||
|
case 'youtube' : showYoutube(); break;
|
||||||
|
case 'module' : showModule(); break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//Show only selected panel and hide others
|
||||||
|
function showJoomla()
|
||||||
|
{
|
||||||
|
// Legacy code - Remove from v2
|
||||||
|
fn('#JOOMLA-options').closest('div.panel').show();
|
||||||
|
fn('#K2-options').closest('div.panel').hide();
|
||||||
|
fn('#EASYBLOG-options').closest('div.panel').hide();
|
||||||
|
fn('#FLICKR-options').closest('div.panel').hide();
|
||||||
|
fn('#YOUTUBE-options').closest('div.panel').hide();
|
||||||
|
fn('#MODULE-options').closest('div.panel').hide();
|
||||||
|
|
||||||
|
//j3 fix - Legacy code - Remove from v2
|
||||||
|
fn('a[href="#options-JOOMLA"]').closest('li').show();
|
||||||
|
fn('a[href="#options-K2"]').closest('li').hide();
|
||||||
|
fn('a[href="#options-EASYBLOG"]').closest('li').hide();
|
||||||
|
fn('a[href="#options-FLICKR"]').closest('li').hide();
|
||||||
|
fn('a[href="#options-YOUTUBE"]').closest('li').hide();
|
||||||
|
fn('a[href="#options-MODULE"]').closest('li').hide();
|
||||||
|
|
||||||
|
// Advance module manager tab layout fix - Legacy code - Remove from v2
|
||||||
|
fn('.tab-JOOMLA').show();
|
||||||
|
fn('.tab-K2').hide();
|
||||||
|
fn('.tab-EASYBLOG').hide();
|
||||||
|
fn('.tab-FLICKR').hide();
|
||||||
|
fn('.tab-YOUTUBE').hide();
|
||||||
|
fn('.tab-MODULE').hide();
|
||||||
|
|
||||||
|
// New wrapper item
|
||||||
|
// @since : 1.4.0
|
||||||
|
fn('#cs-joomla').show();
|
||||||
|
fn('#cs-k2').hide();
|
||||||
|
fn('#cs-eb').hide();
|
||||||
|
}
|
||||||
|
function showK2()
|
||||||
|
{
|
||||||
|
|
||||||
|
// New wrapper item
|
||||||
|
// @since : 1.4.0
|
||||||
|
fn('#cs-joomla').hide();
|
||||||
|
fn('#cs-k2').show();
|
||||||
|
fn('#cs-eb').hide();
|
||||||
|
|
||||||
|
// Legacy selector
|
||||||
|
fn('#JOOMLA-options').closest('div.panel').hide();
|
||||||
|
fn('#K2-options').closest('div.panel').show();
|
||||||
|
fn('#EASYBLOG-options').closest('div.panel').hide();
|
||||||
|
fn('#FLICKR-options').closest('div.panel').hide();
|
||||||
|
fn('#YOUTUBE-options').closest('div.panel').hide();
|
||||||
|
fn('#MODULE-options').closest('div.panel').hide();
|
||||||
|
|
||||||
|
//j3 fix
|
||||||
|
fn('a[href="#options-JOOMLA"]').closest('li').hide();
|
||||||
|
fn('a[href="#options-K2"]').closest('li').show();
|
||||||
|
fn('a[href="#options-EASYBLOG"]').closest('li').hide();
|
||||||
|
fn('a[href="#options-FLICKR"]').closest('li').hide();
|
||||||
|
fn('a[href="#options-YOUTUBE"]').closest('li').hide();
|
||||||
|
fn('a[href="#options-MODULE"]').closest('li').hide();
|
||||||
|
|
||||||
|
// Advance module manager tab layout fix
|
||||||
|
fn('.tab-JOOMLA').hide();
|
||||||
|
fn('.tab-K2').show();
|
||||||
|
fn('.tab-EASYBLOG').hide();
|
||||||
|
fn('.tab-FLICKR').hide();
|
||||||
|
fn('.tab-YOUTUBE').hide();
|
||||||
|
fn('.tab-MODULE').hide();
|
||||||
|
}
|
||||||
|
function showEasyblog()
|
||||||
|
{
|
||||||
|
// New wrapper item
|
||||||
|
// @since : 1.4.0
|
||||||
|
fn('#cs-joomla').hide();
|
||||||
|
fn('#cs-k2').hide();
|
||||||
|
fn('#cs-eb').show();
|
||||||
|
|
||||||
|
// Legacy selector
|
||||||
|
fn('#JOOMLA-options').closest('div.panel').hide();
|
||||||
|
fn('#K2-options').closest('div.panel').hide();
|
||||||
|
fn('#EASYBLOG-options').closest('div.panel').show();
|
||||||
|
fn('#FLICKR-options').closest('div.panel').hide();
|
||||||
|
fn('#YOUTUBE-options').closest('div.panel').hide();
|
||||||
|
fn('#MODULE-options').closest('div.panel').hide();
|
||||||
|
|
||||||
|
//j3 fix
|
||||||
|
fn('a[href="#options-JOOMLA"]').closest('li').hide();
|
||||||
|
fn('a[href="#options-K2"]').closest('li').hide();
|
||||||
|
fn('a[href="#options-EASYBLOG"]').closest('li').show();
|
||||||
|
fn('a[href="#options-FLICKR"]').closest('li').hide();
|
||||||
|
fn('a[href="#options-YOUTUBE"]').closest('li').hide();
|
||||||
|
fn('a[href="#options-MODULE"]').closest('li').hide();
|
||||||
|
|
||||||
|
// Advance module manager tab layout fix
|
||||||
|
fn('.tab-JOOMLA').hide();
|
||||||
|
fn('.tab-K2').hide();
|
||||||
|
fn('.tab-EASYBLOG').show();
|
||||||
|
fn('.tab-FLICKR').hide();
|
||||||
|
fn('.tab-YOUTUBE').hide();
|
||||||
|
fn('.tab-MODULE').hide();
|
||||||
|
}
|
||||||
|
function showFlickr()
|
||||||
|
{
|
||||||
|
fn('#JOOMLA-options').closest('div.panel').hide();
|
||||||
|
fn('#K2-options').closest('div.panel').hide();
|
||||||
|
fn('#EASYBLOG-options').closest('div.panel').hide();
|
||||||
|
fn('#FLICKR-options').closest('div.panel').show();
|
||||||
|
fn('#YOUTUBE-options').closest('div.panel').hide();
|
||||||
|
fn('#MODULE-options').closest('div.panel').hide();
|
||||||
|
|
||||||
|
//j3 fix
|
||||||
|
fn('a[href="#options-JOOMLA"]').closest('li').hide();
|
||||||
|
fn('a[href="#options-K2"]').closest('li').hide();
|
||||||
|
fn('a[href="#options-EASYBLOG"]').closest('li').hide();
|
||||||
|
fn('a[href="#options-FLICKR"]').closest('li').show();
|
||||||
|
fn('a[href="#options-YOUTUBE"]').closest('li').hide();
|
||||||
|
fn('a[href="#options-MODULE"]').closest('li').hide();
|
||||||
|
|
||||||
|
// Advance module manager tab layout fix
|
||||||
|
fn('.tab-JOOMLA').hide();
|
||||||
|
fn('.tab-K2').hide();
|
||||||
|
fn('.tab-EASYBLOG').hide();
|
||||||
|
fn('.tab-FLICKR').show();
|
||||||
|
fn('.tab-YOUTUBE').hide();
|
||||||
|
fn('.tab-MODULE').hide();
|
||||||
|
}
|
||||||
|
function showYoutube()
|
||||||
|
{
|
||||||
|
fn('#JOOMLA-options').closest('div.panel').hide();
|
||||||
|
fn('#K2-options').closest('div.panel').hide();
|
||||||
|
fn('#EASYBLOG-options').closest('div.panel').hide();
|
||||||
|
fn('#FLICKR-options').closest('div.panel').hide();
|
||||||
|
fn('#MODULE-options').closest('div.panel').hide();
|
||||||
|
fn('#YOUTUBE-options').closest('div.panel').show();
|
||||||
|
|
||||||
|
//j3 fix
|
||||||
|
fn('a[href="#options-JOOMLA"]').closest('li').hide();
|
||||||
|
fn('a[href="#options-K2"]').closest('li').hide();
|
||||||
|
fn('a[href="#options-EASYBLOG"]').closest('li').hide();
|
||||||
|
fn('a[href="#options-FLICKR"]').closest('li').hide();
|
||||||
|
fn('a[href="#options-MODULE"]').closest('li').hide();
|
||||||
|
fn('a[href="#options-YOUTUBE"]').closest('li').show();
|
||||||
|
|
||||||
|
// Advance module manager tab layout fix
|
||||||
|
fn('.tab-JOOMLA').hide();
|
||||||
|
fn('.tab-K2').hide();
|
||||||
|
fn('.tab-EASYBLOG').hide();
|
||||||
|
fn('.tab-FLICKR').hide();
|
||||||
|
fn('.tab-MODULE').hide();
|
||||||
|
fn('.tab-YOUTUBE').show();
|
||||||
|
}
|
||||||
|
|
||||||
|
//Show only selected panel and hide others
|
||||||
|
function showModule()
|
||||||
|
{
|
||||||
|
fn('#JOOMLA-options').closest('div.panel').hide();
|
||||||
|
fn('#K2-options').closest('div.panel').hide();
|
||||||
|
fn('#EASYBLOG-options').closest('div.panel').hide();
|
||||||
|
fn('#FLICKR-options').closest('div.panel').hide();
|
||||||
|
fn('#YOUTUBE-options').closest('div.panel').hide();
|
||||||
|
fn('#MODULE-options').closest('div.panel').show();
|
||||||
|
|
||||||
|
//j3 fix
|
||||||
|
fn('a[href="#options-JOOMLA"]').closest('li').hide();
|
||||||
|
fn('a[href="#options-K2"]').closest('li').hide();
|
||||||
|
fn('a[href="#options-EASYBLOG"]').closest('li').hide();
|
||||||
|
fn('a[href="#options-FLICKR"]').closest('li').hide();
|
||||||
|
fn('a[href="#options-YOUTUBE"]').closest('li').hide();
|
||||||
|
fn('a[href="#options-MODULE"]').closest('li').show();
|
||||||
|
|
||||||
|
// Advance module manager tab layout fix
|
||||||
|
fn('.tab-JOOMLA').hide();
|
||||||
|
fn('.tab-K2').hide();
|
||||||
|
fn('.tab-EASYBLOG').hide();
|
||||||
|
fn('.tab-FLICKR').hide();
|
||||||
|
fn('.tab-YOUTUBE').hide();
|
||||||
|
fn('.tab-MODULE').show();
|
||||||
|
}
|
||||||
|
|
||||||
|
// Content source select and push to joomla input field related to it
|
||||||
|
// and hide modal
|
||||||
|
fn('.cs-list a').on('click',function(){
|
||||||
|
var el = fn(this),
|
||||||
|
text = el.find('span').text();
|
||||||
|
if(el.hasClass('notavailable')) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
fn('#jform_params_content_source').attr('value',text);
|
||||||
|
fn('#content-source').bsmodal('hide');
|
||||||
|
|
||||||
|
//replace button with selected source
|
||||||
|
fn('.cs-btn').removeClass('joomla k2 easyblog flickr youtube module').addClass(text);
|
||||||
|
fn('.cs-btn span').text(text);
|
||||||
|
|
||||||
|
panelSwitcher(text);
|
||||||
|
|
||||||
|
return false;
|
||||||
|
});
|
||||||
|
|
||||||
|
//set content soruce
|
||||||
|
var cs = fn('#jform_params_content_source').attr('value');
|
||||||
|
fn('.cs-btn').addClass(cs);
|
||||||
|
fn('.cs-btn span').text(cs);
|
||||||
|
panelSwitcher(cs);
|
||||||
|
|
||||||
|
//remove label li and push it to previous element
|
||||||
|
fn('div.remove-lbl').each(function(){
|
||||||
|
var content = fn(this);
|
||||||
|
//push it to previous li
|
||||||
|
fn(this).closest('li')
|
||||||
|
.prev()
|
||||||
|
.append(content);
|
||||||
|
//remove paren li
|
||||||
|
fn(this).closest('li').next().remove();
|
||||||
|
});
|
||||||
|
});
|
||||||
218
deployed/xef/libraries/xef/assets/js/bootstrap-modal.js
vendored
Normal file
@ -0,0 +1,218 @@
|
|||||||
|
/* =========================================================
|
||||||
|
* bootstrap-bsmodal.js v2.0.3
|
||||||
|
* http://twitter.github.com/bootstrap/javascript.html#bsmodals
|
||||||
|
* =========================================================
|
||||||
|
* Copyright 2012 Twitter, Inc.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
* ========================================================= */
|
||||||
|
|
||||||
|
|
||||||
|
!function ($) {
|
||||||
|
|
||||||
|
"use strict"; // jshint ;_;
|
||||||
|
|
||||||
|
|
||||||
|
/* MODAL CLASS DEFINITION
|
||||||
|
* ====================== */
|
||||||
|
|
||||||
|
var Modal = function (content, options) {
|
||||||
|
this.options = options
|
||||||
|
this.$element = $(content)
|
||||||
|
.delegate('[data-dismiss="bsmodal"]', 'click.dismiss.bsmodal', $.proxy(this.hide, this))
|
||||||
|
}
|
||||||
|
|
||||||
|
Modal.prototype = {
|
||||||
|
|
||||||
|
constructor: Modal
|
||||||
|
|
||||||
|
, toggle: function () {
|
||||||
|
return this[!this.isShown ? 'show' : 'hide']()
|
||||||
|
}
|
||||||
|
|
||||||
|
, show: function () {
|
||||||
|
var that = this
|
||||||
|
, e = $.Event('show')
|
||||||
|
|
||||||
|
this.$element.trigger(e)
|
||||||
|
|
||||||
|
if (this.isShown || e.isDefaultPrevented()) return
|
||||||
|
|
||||||
|
$('body').addClass('bsmodal-open')
|
||||||
|
|
||||||
|
this.isShown = true
|
||||||
|
|
||||||
|
escape.call(this)
|
||||||
|
backdrop.call(this, function () {
|
||||||
|
var transition = $.support.transition && that.$element.hasClass('fade')
|
||||||
|
|
||||||
|
if (!that.$element.parent().length) {
|
||||||
|
that.$element.appendTo(document.body) //don't move bsmodals dom position
|
||||||
|
}
|
||||||
|
|
||||||
|
that.$element
|
||||||
|
.show()
|
||||||
|
|
||||||
|
if (transition) {
|
||||||
|
that.$element[0].offsetWidth // force reflow
|
||||||
|
}
|
||||||
|
|
||||||
|
that.$element.addClass('in')
|
||||||
|
|
||||||
|
transition ?
|
||||||
|
that.$element.one($.support.transition.end, function () { that.$element.trigger('shown') }) :
|
||||||
|
that.$element.trigger('shown')
|
||||||
|
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
, hide: function (e) {
|
||||||
|
e && e.preventDefault()
|
||||||
|
|
||||||
|
var that = this
|
||||||
|
|
||||||
|
e = $.Event('hide')
|
||||||
|
|
||||||
|
this.$element.trigger(e)
|
||||||
|
|
||||||
|
if (!this.isShown || e.isDefaultPrevented()) return
|
||||||
|
|
||||||
|
this.isShown = false
|
||||||
|
|
||||||
|
$('body').removeClass('bsmodal-open')
|
||||||
|
|
||||||
|
escape.call(this)
|
||||||
|
|
||||||
|
this.$element.removeClass('in')
|
||||||
|
|
||||||
|
$.support.transition && this.$element.hasClass('fade') ?
|
||||||
|
hideWithTransition.call(this) :
|
||||||
|
hideModal.call(this)
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* MODAL PRIVATE METHODS
|
||||||
|
* ===================== */
|
||||||
|
|
||||||
|
function hideWithTransition() {
|
||||||
|
var that = this
|
||||||
|
, timeout = setTimeout(function () {
|
||||||
|
that.$element.off($.support.transition.end)
|
||||||
|
hideModal.call(that)
|
||||||
|
}, 500)
|
||||||
|
|
||||||
|
this.$element.one($.support.transition.end, function () {
|
||||||
|
clearTimeout(timeout)
|
||||||
|
hideModal.call(that)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
function hideModal(that) {
|
||||||
|
this.$element
|
||||||
|
.hide()
|
||||||
|
.trigger('hidden')
|
||||||
|
|
||||||
|
backdrop.call(this)
|
||||||
|
}
|
||||||
|
|
||||||
|
function backdrop(callback) {
|
||||||
|
var that = this
|
||||||
|
, animate = this.$element.hasClass('fade') ? 'fade' : ''
|
||||||
|
|
||||||
|
if (this.isShown && this.options.backdrop) {
|
||||||
|
var doAnimate = $.support.transition && animate
|
||||||
|
|
||||||
|
this.$backdrop = $('<div class="bsmodal-backdrop ' + animate + '" />')
|
||||||
|
.appendTo(document.body)
|
||||||
|
|
||||||
|
if (this.options.backdrop != 'static') {
|
||||||
|
this.$backdrop.click($.proxy(this.hide, this))
|
||||||
|
}
|
||||||
|
|
||||||
|
if (doAnimate) this.$backdrop[0].offsetWidth // force reflow
|
||||||
|
|
||||||
|
this.$backdrop.addClass('in')
|
||||||
|
|
||||||
|
doAnimate ?
|
||||||
|
this.$backdrop.one($.support.transition.end, callback) :
|
||||||
|
callback()
|
||||||
|
|
||||||
|
} else if (!this.isShown && this.$backdrop) {
|
||||||
|
this.$backdrop.removeClass('in')
|
||||||
|
|
||||||
|
$.support.transition && this.$element.hasClass('fade')?
|
||||||
|
this.$backdrop.one($.support.transition.end, $.proxy(removeBackdrop, this)) :
|
||||||
|
removeBackdrop.call(this)
|
||||||
|
|
||||||
|
} else if (callback) {
|
||||||
|
callback()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function removeBackdrop() {
|
||||||
|
this.$backdrop.remove()
|
||||||
|
this.$backdrop = null
|
||||||
|
}
|
||||||
|
|
||||||
|
function escape() {
|
||||||
|
var that = this
|
||||||
|
if (this.isShown && this.options.keyboard) {
|
||||||
|
$(document).on('keyup.dismiss.bsmodal', function ( e ) {
|
||||||
|
e.which == 27 && that.hide()
|
||||||
|
})
|
||||||
|
} else if (!this.isShown) {
|
||||||
|
$(document).off('keyup.dismiss.bsmodal')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* MODAL PLUGIN DEFINITION
|
||||||
|
* ======================= */
|
||||||
|
|
||||||
|
$.fn.bsmodal = function (option) {
|
||||||
|
return this.each(function () {
|
||||||
|
var $this = $(this)
|
||||||
|
, data = $this.data('bsmodal')
|
||||||
|
, options = $.extend({}, $.fn.bsmodal.defaults, $this.data(), typeof option == 'object' && option)
|
||||||
|
if (!data) $this.data('bsmodal', (data = new Modal(this, options)))
|
||||||
|
if (typeof option == 'string') data[option]()
|
||||||
|
else if (options.show) data.show()
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
$.fn.bsmodal.defaults = {
|
||||||
|
backdrop: true
|
||||||
|
, keyboard: true
|
||||||
|
, show: true
|
||||||
|
}
|
||||||
|
|
||||||
|
$.fn.bsmodal.Constructor = Modal
|
||||||
|
|
||||||
|
|
||||||
|
/* MODAL DATA-API
|
||||||
|
* ============== */
|
||||||
|
|
||||||
|
$(function () {
|
||||||
|
$('body').on('click.bsmodal.data-api', '[data-toggle="bsmodal"]', function ( e ) {
|
||||||
|
var $this = $(this), href
|
||||||
|
, $target = $($this.attr('data-target') || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')) //strip for ie7
|
||||||
|
, option = $target.data('bsmodal') ? 'toggle' : $.extend({}, $target.data(), $this.data())
|
||||||
|
|
||||||
|
e.preventDefault()
|
||||||
|
$target.bsmodal(option)
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
|
}(window.jQuery);
|
||||||
7
deployed/xef/libraries/xef/assets/js/bootstrap.js
vendored
Normal file
10
deployed/xef/libraries/xef/assets/js/chosen.jquery.min.js
vendored
Normal file
9
deployed/xef/libraries/xef/assets/js/chosen.jquery.min.min.js
vendored
Normal file
7
deployed/xef/libraries/xef/assets/js/image-picker.min.js
vendored
Normal file
1
deployed/xef/libraries/xef/assets/js/index.html
Normal file
@ -0,0 +1 @@
|
|||||||
|
<html><body bgcolor="#FFFFFF"></body></html>
|
||||||
4
deployed/xef/libraries/xef/assets/js/jquery-1.7.2.min.js
vendored
Normal file
2
deployed/xef/libraries/xef/assets/js/jquery-1.8.2.min.js
vendored
Normal file
791
deployed/xef/libraries/xef/assets/js/jquery-ui-1.8.16.custom.min.js
vendored
Normal file
@ -0,0 +1,791 @@
|
|||||||
|
/*!
|
||||||
|
* jQuery UI 1.8.16
|
||||||
|
*
|
||||||
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
||||||
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||||
|
* http://jquery.org/license
|
||||||
|
*
|
||||||
|
* http://docs.jquery.com/UI
|
||||||
|
*/
|
||||||
|
(function(c,j){function k(a,b){var d=a.nodeName.toLowerCase();if("area"===d){b=a.parentNode;d=b.name;if(!a.href||!d||b.nodeName.toLowerCase()!=="map")return false;a=c("img[usemap=#"+d+"]")[0];return!!a&&l(a)}return(/input|select|textarea|button|object/.test(d)?!a.disabled:"a"==d?a.href||b:b)&&l(a)}function l(a){return!c(a).parents().andSelf().filter(function(){return c.curCSS(this,"visibility")==="hidden"||c.expr.filters.hidden(this)}).length}c.ui=c.ui||{};if(!c.ui.version){c.extend(c.ui,{version:"1.8.16",
|
||||||
|
keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}});c.fn.extend({propAttr:c.fn.prop||c.fn.attr,_focus:c.fn.focus,focus:function(a,b){return typeof a==="number"?this.each(function(){var d=
|
||||||
|
this;setTimeout(function(){c(d).focus();b&&b.call(d)},a)}):this._focus.apply(this,arguments)},scrollParent:function(){var a;a=c.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(c.curCSS(this,"position",1))&&/(auto|scroll)/.test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(c.curCSS(this,
|
||||||
|
"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!a.length?c(document):a},zIndex:function(a){if(a!==j)return this.css("zIndex",a);if(this.length){a=c(this[0]);for(var b;a.length&&a[0]!==document;){b=a.css("position");if(b==="absolute"||b==="relative"||b==="fixed"){b=parseInt(a.css("zIndex"),10);if(!isNaN(b)&&b!==0)return b}a=a.parent()}}return 0},disableSelection:function(){return this.bind((c.support.selectstart?"selectstart":
|
||||||
|
"mousedown")+".ui-disableSelection",function(a){a.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});c.each(["Width","Height"],function(a,b){function d(f,g,m,n){c.each(e,function(){g-=parseFloat(c.curCSS(f,"padding"+this,true))||0;if(m)g-=parseFloat(c.curCSS(f,"border"+this+"Width",true))||0;if(n)g-=parseFloat(c.curCSS(f,"margin"+this,true))||0});return g}var e=b==="Width"?["Left","Right"]:["Top","Bottom"],h=b.toLowerCase(),i={innerWidth:c.fn.innerWidth,innerHeight:c.fn.innerHeight,
|
||||||
|
outerWidth:c.fn.outerWidth,outerHeight:c.fn.outerHeight};c.fn["inner"+b]=function(f){if(f===j)return i["inner"+b].call(this);return this.each(function(){c(this).css(h,d(this,f)+"px")})};c.fn["outer"+b]=function(f,g){if(typeof f!=="number")return i["outer"+b].call(this,f);return this.each(function(){c(this).css(h,d(this,f,true,g)+"px")})}});c.extend(c.expr[":"],{data:function(a,b,d){return!!c.data(a,d[3])},focusable:function(a){return k(a,!isNaN(c.attr(a,"tabindex")))},tabbable:function(a){var b=c.attr(a,
|
||||||
|
"tabindex"),d=isNaN(b);return(d||b>=0)&&k(a,!d)}});c(function(){var a=document.body,b=a.appendChild(b=document.createElement("div"));c.extend(b.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});c.support.minHeight=b.offsetHeight===100;c.support.selectstart="onselectstart"in b;a.removeChild(b).style.display="none"});c.extend(c.ui,{plugin:{add:function(a,b,d){a=c.ui[a].prototype;for(var e in d){a.plugins[e]=a.plugins[e]||[];a.plugins[e].push([b,d[e]])}},call:function(a,b,d){if((b=a.plugins[b])&&
|
||||||
|
a.element[0].parentNode)for(var e=0;e<b.length;e++)a.options[b[e][0]]&&b[e][1].apply(a.element,d)}},contains:function(a,b){return document.compareDocumentPosition?a.compareDocumentPosition(b)&16:a!==b&&a.contains(b)},hasScroll:function(a,b){if(c(a).css("overflow")==="hidden")return false;b=b&&b==="left"?"scrollLeft":"scrollTop";var d=false;if(a[b]>0)return true;a[b]=1;d=a[b]>0;a[b]=0;return d},isOverAxis:function(a,b,d){return a>b&&a<b+d},isOver:function(a,b,d,e,h,i){return c.ui.isOverAxis(a,d,h)&&
|
||||||
|
c.ui.isOverAxis(b,e,i)}})}})(jQuery);
|
||||||
|
;/*!
|
||||||
|
* jQuery UI Widget 1.8.16
|
||||||
|
*
|
||||||
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
||||||
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||||
|
* http://jquery.org/license
|
||||||
|
*
|
||||||
|
* http://docs.jquery.com/UI/Widget
|
||||||
|
*/
|
||||||
|
(function(b,j){if(b.cleanData){var k=b.cleanData;b.cleanData=function(a){for(var c=0,d;(d=a[c])!=null;c++)try{b(d).triggerHandler("remove")}catch(e){}k(a)}}else{var l=b.fn.remove;b.fn.remove=function(a,c){return this.each(function(){if(!c)if(!a||b.filter(a,[this]).length)b("*",this).add([this]).each(function(){try{b(this).triggerHandler("remove")}catch(d){}});return l.call(b(this),a,c)})}}b.widget=function(a,c,d){var e=a.split(".")[0],f;a=a.split(".")[1];f=e+"-"+a;if(!d){d=c;c=b.Widget}b.expr[":"][f]=
|
||||||
|
function(h){return!!b.data(h,a)};b[e]=b[e]||{};b[e][a]=function(h,g){arguments.length&&this._createWidget(h,g)};c=new c;c.options=b.extend(true,{},c.options);b[e][a].prototype=b.extend(true,c,{namespace:e,widgetName:a,widgetEventPrefix:b[e][a].prototype.widgetEventPrefix||a,widgetBaseClass:f},d);b.widget.bridge(a,b[e][a])};b.widget.bridge=function(a,c){b.fn[a]=function(d){var e=typeof d==="string",f=Array.prototype.slice.call(arguments,1),h=this;d=!e&&f.length?b.extend.apply(null,[true,d].concat(f)):
|
||||||
|
d;if(e&&d.charAt(0)==="_")return h;e?this.each(function(){var g=b.data(this,a),i=g&&b.isFunction(g[d])?g[d].apply(g,f):g;if(i!==g&&i!==j){h=i;return false}}):this.each(function(){var g=b.data(this,a);g?g.option(d||{})._init():b.data(this,a,new c(d,this))});return h}};b.Widget=function(a,c){arguments.length&&this._createWidget(a,c)};b.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(a,c){b.data(c,this.widgetName,this);this.element=b(c);this.options=
|
||||||
|
b.extend(true,{},this.options,this._getCreateOptions(),a);var d=this;this.element.bind("remove."+this.widgetName,function(){d.destroy()});this._create();this._trigger("create");this._init()},_getCreateOptions:function(){return b.metadata&&b.metadata.get(this.element[0])[this.widgetName]},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+
|
||||||
|
"-disabled ui-state-disabled")},widget:function(){return this.element},option:function(a,c){var d=a;if(arguments.length===0)return b.extend({},this.options);if(typeof a==="string"){if(c===j)return this.options[a];d={};d[a]=c}this._setOptions(d);return this},_setOptions:function(a){var c=this;b.each(a,function(d,e){c._setOption(d,e)});return this},_setOption:function(a,c){this.options[a]=c;if(a==="disabled")this.widget()[c?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",
|
||||||
|
c);return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(a,c,d){var e=this.options[a];c=b.Event(c);c.type=(a===this.widgetEventPrefix?a:this.widgetEventPrefix+a).toLowerCase();d=d||{};if(c.originalEvent){a=b.event.props.length;for(var f;a;){f=b.event.props[--a];c[f]=c.originalEvent[f]}}this.element.trigger(c,d);return!(b.isFunction(e)&&e.call(this.element[0],c,d)===false||c.isDefaultPrevented())}}})(jQuery);
|
||||||
|
;/*!
|
||||||
|
* jQuery UI Mouse 1.8.16
|
||||||
|
*
|
||||||
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
||||||
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||||
|
* http://jquery.org/license
|
||||||
|
*
|
||||||
|
* http://docs.jquery.com/UI/Mouse
|
||||||
|
*
|
||||||
|
* Depends:
|
||||||
|
* jquery.ui.widget.js
|
||||||
|
*/
|
||||||
|
(function(b){var d=false;b(document).mouseup(function(){d=false});b.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var a=this;this.element.bind("mousedown."+this.widgetName,function(c){return a._mouseDown(c)}).bind("click."+this.widgetName,function(c){if(true===b.data(c.target,a.widgetName+".preventClickEvent")){b.removeData(c.target,a.widgetName+".preventClickEvent");c.stopImmediatePropagation();return false}});this.started=false},_mouseDestroy:function(){this.element.unbind("."+
|
||||||
|
this.widgetName)},_mouseDown:function(a){if(!d){this._mouseStarted&&this._mouseUp(a);this._mouseDownEvent=a;var c=this,f=a.which==1,g=typeof this.options.cancel=="string"&&a.target.nodeName?b(a.target).closest(this.options.cancel).length:false;if(!f||g||!this._mouseCapture(a))return true;this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet)this._mouseDelayTimer=setTimeout(function(){c.mouseDelayMet=true},this.options.delay);if(this._mouseDistanceMet(a)&&this._mouseDelayMet(a)){this._mouseStarted=
|
||||||
|
this._mouseStart(a)!==false;if(!this._mouseStarted){a.preventDefault();return true}}true===b.data(a.target,this.widgetName+".preventClickEvent")&&b.removeData(a.target,this.widgetName+".preventClickEvent");this._mouseMoveDelegate=function(e){return c._mouseMove(e)};this._mouseUpDelegate=function(e){return c._mouseUp(e)};b(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);a.preventDefault();return d=true}},_mouseMove:function(a){if(b.browser.msie&&
|
||||||
|
!(document.documentMode>=9)&&!a.button)return this._mouseUp(a);if(this._mouseStarted){this._mouseDrag(a);return a.preventDefault()}if(this._mouseDistanceMet(a)&&this._mouseDelayMet(a))(this._mouseStarted=this._mouseStart(this._mouseDownEvent,a)!==false)?this._mouseDrag(a):this._mouseUp(a);return!this._mouseStarted},_mouseUp:function(a){b(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=
|
||||||
|
false;a.target==this._mouseDownEvent.target&&b.data(a.target,this.widgetName+".preventClickEvent",true);this._mouseStop(a)}return false},_mouseDistanceMet:function(a){return Math.max(Math.abs(this._mouseDownEvent.pageX-a.pageX),Math.abs(this._mouseDownEvent.pageY-a.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}})})(jQuery);
|
||||||
|
;/*
|
||||||
|
* jQuery UI Position 1.8.16
|
||||||
|
*
|
||||||
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
||||||
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||||
|
* http://jquery.org/license
|
||||||
|
*
|
||||||
|
* http://docs.jquery.com/UI/Position
|
||||||
|
*/
|
||||||
|
(function(c){c.ui=c.ui||{};var n=/left|center|right/,o=/top|center|bottom/,t=c.fn.position,u=c.fn.offset;c.fn.position=function(b){if(!b||!b.of)return t.apply(this,arguments);b=c.extend({},b);var a=c(b.of),d=a[0],g=(b.collision||"flip").split(" "),e=b.offset?b.offset.split(" "):[0,0],h,k,j;if(d.nodeType===9){h=a.width();k=a.height();j={top:0,left:0}}else if(d.setTimeout){h=a.width();k=a.height();j={top:a.scrollTop(),left:a.scrollLeft()}}else if(d.preventDefault){b.at="left top";h=k=0;j={top:b.of.pageY,
|
||||||
|
left:b.of.pageX}}else{h=a.outerWidth();k=a.outerHeight();j=a.offset()}c.each(["my","at"],function(){var f=(b[this]||"").split(" ");if(f.length===1)f=n.test(f[0])?f.concat(["center"]):o.test(f[0])?["center"].concat(f):["center","center"];f[0]=n.test(f[0])?f[0]:"center";f[1]=o.test(f[1])?f[1]:"center";b[this]=f});if(g.length===1)g[1]=g[0];e[0]=parseInt(e[0],10)||0;if(e.length===1)e[1]=e[0];e[1]=parseInt(e[1],10)||0;if(b.at[0]==="right")j.left+=h;else if(b.at[0]==="center")j.left+=h/2;if(b.at[1]==="bottom")j.top+=
|
||||||
|
k;else if(b.at[1]==="center")j.top+=k/2;j.left+=e[0];j.top+=e[1];return this.each(function(){var f=c(this),l=f.outerWidth(),m=f.outerHeight(),p=parseInt(c.curCSS(this,"marginLeft",true))||0,q=parseInt(c.curCSS(this,"marginTop",true))||0,v=l+p+(parseInt(c.curCSS(this,"marginRight",true))||0),w=m+q+(parseInt(c.curCSS(this,"marginBottom",true))||0),i=c.extend({},j),r;if(b.my[0]==="right")i.left-=l;else if(b.my[0]==="center")i.left-=l/2;if(b.my[1]==="bottom")i.top-=m;else if(b.my[1]==="center")i.top-=
|
||||||
|
m/2;i.left=Math.round(i.left);i.top=Math.round(i.top);r={left:i.left-p,top:i.top-q};c.each(["left","top"],function(s,x){c.ui.position[g[s]]&&c.ui.position[g[s]][x](i,{targetWidth:h,targetHeight:k,elemWidth:l,elemHeight:m,collisionPosition:r,collisionWidth:v,collisionHeight:w,offset:e,my:b.my,at:b.at})});c.fn.bgiframe&&f.bgiframe();f.offset(c.extend(i,{using:b.using}))})};c.ui.position={fit:{left:function(b,a){var d=c(window);d=a.collisionPosition.left+a.collisionWidth-d.width()-d.scrollLeft();b.left=
|
||||||
|
d>0?b.left-d:Math.max(b.left-a.collisionPosition.left,b.left)},top:function(b,a){var d=c(window);d=a.collisionPosition.top+a.collisionHeight-d.height()-d.scrollTop();b.top=d>0?b.top-d:Math.max(b.top-a.collisionPosition.top,b.top)}},flip:{left:function(b,a){if(a.at[0]!=="center"){var d=c(window);d=a.collisionPosition.left+a.collisionWidth-d.width()-d.scrollLeft();var g=a.my[0]==="left"?-a.elemWidth:a.my[0]==="right"?a.elemWidth:0,e=a.at[0]==="left"?a.targetWidth:-a.targetWidth,h=-2*a.offset[0];b.left+=
|
||||||
|
a.collisionPosition.left<0?g+e+h:d>0?g+e+h:0}},top:function(b,a){if(a.at[1]!=="center"){var d=c(window);d=a.collisionPosition.top+a.collisionHeight-d.height()-d.scrollTop();var g=a.my[1]==="top"?-a.elemHeight:a.my[1]==="bottom"?a.elemHeight:0,e=a.at[1]==="top"?a.targetHeight:-a.targetHeight,h=-2*a.offset[1];b.top+=a.collisionPosition.top<0?g+e+h:d>0?g+e+h:0}}}};if(!c.offset.setOffset){c.offset.setOffset=function(b,a){if(/static/.test(c.curCSS(b,"position")))b.style.position="relative";var d=c(b),
|
||||||
|
g=d.offset(),e=parseInt(c.curCSS(b,"top",true),10)||0,h=parseInt(c.curCSS(b,"left",true),10)||0;g={top:a.top-g.top+e,left:a.left-g.left+h};"using"in a?a.using.call(b,g):d.css(g)};c.fn.offset=function(b){var a=this[0];if(!a||!a.ownerDocument)return null;if(b)return this.each(function(){c.offset.setOffset(this,b)});return u.call(this)}}})(jQuery);
|
||||||
|
;/*
|
||||||
|
* jQuery UI Draggable 1.8.16
|
||||||
|
*
|
||||||
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
||||||
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||||
|
* http://jquery.org/license
|
||||||
|
*
|
||||||
|
* http://docs.jquery.com/UI/Draggables
|
||||||
|
*
|
||||||
|
* Depends:
|
||||||
|
* jquery.ui.core.js
|
||||||
|
* jquery.ui.mouse.js
|
||||||
|
* jquery.ui.widget.js
|
||||||
|
*/
|
||||||
|
(function(d){d.widget("ui.draggable",d.ui.mouse,{widgetEventPrefix:"drag",options:{addClasses:true,appendTo:"parent",axis:false,connectToSortable:false,containment:false,cursor:"auto",cursorAt:false,grid:false,handle:false,helper:"original",iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:"default",scroll:true,scrollSensitivity:20,scrollSpeed:20,snap:false,snapMode:"both",snapTolerance:20,stack:false,zIndex:false},_create:function(){if(this.options.helper==
|
||||||
|
"original"&&!/^(?:r|a|f)/.test(this.element.css("position")))this.element[0].style.position="relative";this.options.addClasses&&this.element.addClass("ui-draggable");this.options.disabled&&this.element.addClass("ui-draggable-disabled");this._mouseInit()},destroy:function(){if(this.element.data("draggable")){this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");this._mouseDestroy();return this}},_mouseCapture:function(a){var b=
|
||||||
|
this.options;if(this.helper||b.disabled||d(a.target).is(".ui-resizable-handle"))return false;this.handle=this._getHandle(a);if(!this.handle)return false;if(b.iframeFix)d(b.iframeFix===true?"iframe":b.iframeFix).each(function(){d('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1E3}).css(d(this).offset()).appendTo("body")});return true},_mouseStart:function(a){var b=this.options;
|
||||||
|
this.helper=this._createHelper(a);this._cacheHelperProportions();if(d.ui.ddmanager)d.ui.ddmanager.current=this;this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();this.offset=this.positionAbs=this.element.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};d.extend(this.offset,{click:{left:a.pageX-this.offset.left,top:a.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});
|
||||||
|
this.originalPosition=this.position=this._generatePosition(a);this.originalPageX=a.pageX;this.originalPageY=a.pageY;b.cursorAt&&this._adjustOffsetFromHelper(b.cursorAt);b.containment&&this._setContainment();if(this._trigger("start",a)===false){this._clear();return false}this._cacheHelperProportions();d.ui.ddmanager&&!b.dropBehaviour&&d.ui.ddmanager.prepareOffsets(this,a);this.helper.addClass("ui-draggable-dragging");this._mouseDrag(a,true);d.ui.ddmanager&&d.ui.ddmanager.dragStart(this,a);return true},
|
||||||
|
_mouseDrag:function(a,b){this.position=this._generatePosition(a);this.positionAbs=this._convertPositionTo("absolute");if(!b){b=this._uiHash();if(this._trigger("drag",a,b)===false){this._mouseUp({});return false}this.position=b.position}if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+"px";if(!this.options.axis||this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";d.ui.ddmanager&&d.ui.ddmanager.drag(this,a);return false},_mouseStop:function(a){var b=
|
||||||
|
false;if(d.ui.ddmanager&&!this.options.dropBehaviour)b=d.ui.ddmanager.drop(this,a);if(this.dropped){b=this.dropped;this.dropped=false}if((!this.element[0]||!this.element[0].parentNode)&&this.options.helper=="original")return false;if(this.options.revert=="invalid"&&!b||this.options.revert=="valid"&&b||this.options.revert===true||d.isFunction(this.options.revert)&&this.options.revert.call(this.element,b)){var c=this;d(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,
|
||||||
|
10),function(){c._trigger("stop",a)!==false&&c._clear()})}else this._trigger("stop",a)!==false&&this._clear();return false},_mouseUp:function(a){this.options.iframeFix===true&&d("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)});d.ui.ddmanager&&d.ui.ddmanager.dragStop(this,a);return d.ui.mouse.prototype._mouseUp.call(this,a)},cancel:function(){this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear();return this},_getHandle:function(a){var b=!this.options.handle||
|
||||||
|
!d(this.options.handle,this.element).length?true:false;d(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==a.target)b=true});return b},_createHelper:function(a){var b=this.options;a=d.isFunction(b.helper)?d(b.helper.apply(this.element[0],[a])):b.helper=="clone"?this.element.clone().removeAttr("id"):this.element;a.parents("body").length||a.appendTo(b.appendTo=="parent"?this.element[0].parentNode:b.appendTo);a[0]!=this.element[0]&&!/(fixed|absolute)/.test(a.css("position"))&&
|
||||||
|
a.css("position","absolute");return a},_adjustOffsetFromHelper:function(a){if(typeof a=="string")a=a.split(" ");if(d.isArray(a))a={left:+a[0],top:+a[1]||0};if("left"in a)this.offset.click.left=a.left+this.margins.left;if("right"in a)this.offset.click.left=this.helperProportions.width-a.right+this.margins.left;if("top"in a)this.offset.click.top=a.top+this.margins.top;if("bottom"in a)this.offset.click.top=this.helperProportions.height-a.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=
|
||||||
|
this.helper.offsetParent();var a=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&d.ui.contains(this.scrollParent[0],this.offsetParent[0])){a.left+=this.scrollParent.scrollLeft();a.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&d.browser.msie)a={top:0,left:0};return{top:a.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:a.left+(parseInt(this.offsetParent.css("borderLeftWidth"),
|
||||||
|
10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var a=this.element.position();return{top:a.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:a.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),
|
||||||
|
10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var a=this.options;if(a.containment=="parent")a.containment=this.helper[0].parentNode;if(a.containment=="document"||a.containment=="window")this.containment=[a.containment=="document"?0:d(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,a.containment=="document"?0:d(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,
|
||||||
|
(a.containment=="document"?0:d(window).scrollLeft())+d(a.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(a.containment=="document"?0:d(window).scrollTop())+(d(a.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(a.containment)&&a.containment.constructor!=Array){a=d(a.containment);var b=a[0];if(b){a.offset();var c=d(b).css("overflow")!=
|
||||||
|
"hidden";this.containment=[(parseInt(d(b).css("borderLeftWidth"),10)||0)+(parseInt(d(b).css("paddingLeft"),10)||0),(parseInt(d(b).css("borderTopWidth"),10)||0)+(parseInt(d(b).css("paddingTop"),10)||0),(c?Math.max(b.scrollWidth,b.offsetWidth):b.offsetWidth)-(parseInt(d(b).css("borderLeftWidth"),10)||0)-(parseInt(d(b).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(c?Math.max(b.scrollHeight,b.offsetHeight):b.offsetHeight)-(parseInt(d(b).css("borderTopWidth"),
|
||||||
|
10)||0)-(parseInt(d(b).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom];this.relative_container=a}}else if(a.containment.constructor==Array)this.containment=a.containment},_convertPositionTo:function(a,b){if(!b)b=this.position;a=a=="absolute"?1:-1;var c=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&d.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,f=/(html|body)/i.test(c[0].tagName);return{top:b.top+
|
||||||
|
this.offset.relative.top*a+this.offset.parent.top*a-(d.browser.safari&&d.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():f?0:c.scrollTop())*a),left:b.left+this.offset.relative.left*a+this.offset.parent.left*a-(d.browser.safari&&d.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():f?0:c.scrollLeft())*a)}},_generatePosition:function(a){var b=this.options,c=this.cssPosition=="absolute"&&
|
||||||
|
!(this.scrollParent[0]!=document&&d.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,f=/(html|body)/i.test(c[0].tagName),e=a.pageX,h=a.pageY;if(this.originalPosition){var g;if(this.containment){if(this.relative_container){g=this.relative_container.offset();g=[this.containment[0]+g.left,this.containment[1]+g.top,this.containment[2]+g.left,this.containment[3]+g.top]}else g=this.containment;if(a.pageX-this.offset.click.left<g[0])e=g[0]+this.offset.click.left;
|
||||||
|
if(a.pageY-this.offset.click.top<g[1])h=g[1]+this.offset.click.top;if(a.pageX-this.offset.click.left>g[2])e=g[2]+this.offset.click.left;if(a.pageY-this.offset.click.top>g[3])h=g[3]+this.offset.click.top}if(b.grid){h=b.grid[1]?this.originalPageY+Math.round((h-this.originalPageY)/b.grid[1])*b.grid[1]:this.originalPageY;h=g?!(h-this.offset.click.top<g[1]||h-this.offset.click.top>g[3])?h:!(h-this.offset.click.top<g[1])?h-b.grid[1]:h+b.grid[1]:h;e=b.grid[0]?this.originalPageX+Math.round((e-this.originalPageX)/
|
||||||
|
b.grid[0])*b.grid[0]:this.originalPageX;e=g?!(e-this.offset.click.left<g[0]||e-this.offset.click.left>g[2])?e:!(e-this.offset.click.left<g[0])?e-b.grid[0]:e+b.grid[0]:e}}return{top:h-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(d.browser.safari&&d.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():f?0:c.scrollTop()),left:e-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(d.browser.safari&&d.browser.version<
|
||||||
|
526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():f?0:c.scrollLeft())}},_clear:function(){this.helper.removeClass("ui-draggable-dragging");this.helper[0]!=this.element[0]&&!this.cancelHelperRemoval&&this.helper.remove();this.helper=null;this.cancelHelperRemoval=false},_trigger:function(a,b,c){c=c||this._uiHash();d.ui.plugin.call(this,a,[b,c]);if(a=="drag")this.positionAbs=this._convertPositionTo("absolute");return d.Widget.prototype._trigger.call(this,a,b,
|
||||||
|
c)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}});d.extend(d.ui.draggable,{version:"1.8.16"});d.ui.plugin.add("draggable","connectToSortable",{start:function(a,b){var c=d(this).data("draggable"),f=c.options,e=d.extend({},b,{item:c.element});c.sortables=[];d(f.connectToSortable).each(function(){var h=d.data(this,"sortable");if(h&&!h.options.disabled){c.sortables.push({instance:h,shouldRevert:h.options.revert});
|
||||||
|
h.refreshPositions();h._trigger("activate",a,e)}})},stop:function(a,b){var c=d(this).data("draggable"),f=d.extend({},b,{item:c.element});d.each(c.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;c.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert)this.instance.options.revert=true;this.instance._mouseStop(a);this.instance.options.helper=this.instance.options._helper;c.options.helper=="original"&&this.instance.currentItem.css({top:"auto",left:"auto"})}else{this.instance.cancelHelperRemoval=
|
||||||
|
false;this.instance._trigger("deactivate",a,f)}})},drag:function(a,b){var c=d(this).data("draggable"),f=this;d.each(c.sortables,function(){this.instance.positionAbs=c.positionAbs;this.instance.helperProportions=c.helperProportions;this.instance.offset.click=c.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=1;this.instance.currentItem=d(f).clone().removeAttr("id").appendTo(this.instance.element).data("sortable-item",true);
|
||||||
|
this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return b.helper[0]};a.target=this.instance.currentItem[0];this.instance._mouseCapture(a,true);this.instance._mouseStart(a,true,true);this.instance.offset.click.top=c.offset.click.top;this.instance.offset.click.left=c.offset.click.left;this.instance.offset.parent.left-=c.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=c.offset.parent.top-this.instance.offset.parent.top;
|
||||||
|
c._trigger("toSortable",a);c.dropped=this.instance.element;c.currentItem=c.element;this.instance.fromOutside=c}this.instance.currentItem&&this.instance._mouseDrag(a)}else if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance._trigger("out",a,this.instance._uiHash(this.instance));this.instance._mouseStop(a,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();this.instance.placeholder&&
|
||||||
|
this.instance.placeholder.remove();c._trigger("fromSortable",a);c.dropped=false}})}});d.ui.plugin.add("draggable","cursor",{start:function(){var a=d("body"),b=d(this).data("draggable").options;if(a.css("cursor"))b._cursor=a.css("cursor");a.css("cursor",b.cursor)},stop:function(){var a=d(this).data("draggable").options;a._cursor&&d("body").css("cursor",a._cursor)}});d.ui.plugin.add("draggable","opacity",{start:function(a,b){a=d(b.helper);b=d(this).data("draggable").options;if(a.css("opacity"))b._opacity=
|
||||||
|
a.css("opacity");a.css("opacity",b.opacity)},stop:function(a,b){a=d(this).data("draggable").options;a._opacity&&d(b.helper).css("opacity",a._opacity)}});d.ui.plugin.add("draggable","scroll",{start:function(){var a=d(this).data("draggable");if(a.scrollParent[0]!=document&&a.scrollParent[0].tagName!="HTML")a.overflowOffset=a.scrollParent.offset()},drag:function(a){var b=d(this).data("draggable"),c=b.options,f=false;if(b.scrollParent[0]!=document&&b.scrollParent[0].tagName!="HTML"){if(!c.axis||c.axis!=
|
||||||
|
"x")if(b.overflowOffset.top+b.scrollParent[0].offsetHeight-a.pageY<c.scrollSensitivity)b.scrollParent[0].scrollTop=f=b.scrollParent[0].scrollTop+c.scrollSpeed;else if(a.pageY-b.overflowOffset.top<c.scrollSensitivity)b.scrollParent[0].scrollTop=f=b.scrollParent[0].scrollTop-c.scrollSpeed;if(!c.axis||c.axis!="y")if(b.overflowOffset.left+b.scrollParent[0].offsetWidth-a.pageX<c.scrollSensitivity)b.scrollParent[0].scrollLeft=f=b.scrollParent[0].scrollLeft+c.scrollSpeed;else if(a.pageX-b.overflowOffset.left<
|
||||||
|
c.scrollSensitivity)b.scrollParent[0].scrollLeft=f=b.scrollParent[0].scrollLeft-c.scrollSpeed}else{if(!c.axis||c.axis!="x")if(a.pageY-d(document).scrollTop()<c.scrollSensitivity)f=d(document).scrollTop(d(document).scrollTop()-c.scrollSpeed);else if(d(window).height()-(a.pageY-d(document).scrollTop())<c.scrollSensitivity)f=d(document).scrollTop(d(document).scrollTop()+c.scrollSpeed);if(!c.axis||c.axis!="y")if(a.pageX-d(document).scrollLeft()<c.scrollSensitivity)f=d(document).scrollLeft(d(document).scrollLeft()-
|
||||||
|
c.scrollSpeed);else if(d(window).width()-(a.pageX-d(document).scrollLeft())<c.scrollSensitivity)f=d(document).scrollLeft(d(document).scrollLeft()+c.scrollSpeed)}f!==false&&d.ui.ddmanager&&!c.dropBehaviour&&d.ui.ddmanager.prepareOffsets(b,a)}});d.ui.plugin.add("draggable","snap",{start:function(){var a=d(this).data("draggable"),b=a.options;a.snapElements=[];d(b.snap.constructor!=String?b.snap.items||":data(draggable)":b.snap).each(function(){var c=d(this),f=c.offset();this!=a.element[0]&&a.snapElements.push({item:this,
|
||||||
|
width:c.outerWidth(),height:c.outerHeight(),top:f.top,left:f.left})})},drag:function(a,b){for(var c=d(this).data("draggable"),f=c.options,e=f.snapTolerance,h=b.offset.left,g=h+c.helperProportions.width,n=b.offset.top,o=n+c.helperProportions.height,i=c.snapElements.length-1;i>=0;i--){var j=c.snapElements[i].left,l=j+c.snapElements[i].width,k=c.snapElements[i].top,m=k+c.snapElements[i].height;if(j-e<h&&h<l+e&&k-e<n&&n<m+e||j-e<h&&h<l+e&&k-e<o&&o<m+e||j-e<g&&g<l+e&&k-e<n&&n<m+e||j-e<g&&g<l+e&&k-e<o&&
|
||||||
|
o<m+e){if(f.snapMode!="inner"){var p=Math.abs(k-o)<=e,q=Math.abs(m-n)<=e,r=Math.abs(j-g)<=e,s=Math.abs(l-h)<=e;if(p)b.position.top=c._convertPositionTo("relative",{top:k-c.helperProportions.height,left:0}).top-c.margins.top;if(q)b.position.top=c._convertPositionTo("relative",{top:m,left:0}).top-c.margins.top;if(r)b.position.left=c._convertPositionTo("relative",{top:0,left:j-c.helperProportions.width}).left-c.margins.left;if(s)b.position.left=c._convertPositionTo("relative",{top:0,left:l}).left-c.margins.left}var t=
|
||||||
|
p||q||r||s;if(f.snapMode!="outer"){p=Math.abs(k-n)<=e;q=Math.abs(m-o)<=e;r=Math.abs(j-h)<=e;s=Math.abs(l-g)<=e;if(p)b.position.top=c._convertPositionTo("relative",{top:k,left:0}).top-c.margins.top;if(q)b.position.top=c._convertPositionTo("relative",{top:m-c.helperProportions.height,left:0}).top-c.margins.top;if(r)b.position.left=c._convertPositionTo("relative",{top:0,left:j}).left-c.margins.left;if(s)b.position.left=c._convertPositionTo("relative",{top:0,left:l-c.helperProportions.width}).left-c.margins.left}if(!c.snapElements[i].snapping&&
|
||||||
|
(p||q||r||s||t))c.options.snap.snap&&c.options.snap.snap.call(c.element,a,d.extend(c._uiHash(),{snapItem:c.snapElements[i].item}));c.snapElements[i].snapping=p||q||r||s||t}else{c.snapElements[i].snapping&&c.options.snap.release&&c.options.snap.release.call(c.element,a,d.extend(c._uiHash(),{snapItem:c.snapElements[i].item}));c.snapElements[i].snapping=false}}}});d.ui.plugin.add("draggable","stack",{start:function(){var a=d(this).data("draggable").options;a=d.makeArray(d(a.stack)).sort(function(c,f){return(parseInt(d(c).css("zIndex"),
|
||||||
|
10)||0)-(parseInt(d(f).css("zIndex"),10)||0)});if(a.length){var b=parseInt(a[0].style.zIndex)||0;d(a).each(function(c){this.style.zIndex=b+c});this[0].style.zIndex=b+a.length}}});d.ui.plugin.add("draggable","zIndex",{start:function(a,b){a=d(b.helper);b=d(this).data("draggable").options;if(a.css("zIndex"))b._zIndex=a.css("zIndex");a.css("zIndex",b.zIndex)},stop:function(a,b){a=d(this).data("draggable").options;a._zIndex&&d(b.helper).css("zIndex",a._zIndex)}})})(jQuery);
|
||||||
|
;/*
|
||||||
|
* jQuery UI Droppable 1.8.16
|
||||||
|
*
|
||||||
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
||||||
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||||
|
* http://jquery.org/license
|
||||||
|
*
|
||||||
|
* http://docs.jquery.com/UI/Droppables
|
||||||
|
*
|
||||||
|
* Depends:
|
||||||
|
* jquery.ui.core.js
|
||||||
|
* jquery.ui.widget.js
|
||||||
|
* jquery.ui.mouse.js
|
||||||
|
* jquery.ui.draggable.js
|
||||||
|
*/
|
||||||
|
(function(d){d.widget("ui.droppable",{widgetEventPrefix:"drop",options:{accept:"*",activeClass:false,addClasses:true,greedy:false,hoverClass:false,scope:"default",tolerance:"intersect"},_create:function(){var a=this.options,b=a.accept;this.isover=0;this.isout=1;this.accept=d.isFunction(b)?b:function(c){return c.is(b)};this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};d.ui.ddmanager.droppables[a.scope]=d.ui.ddmanager.droppables[a.scope]||[];d.ui.ddmanager.droppables[a.scope].push(this);
|
||||||
|
a.addClasses&&this.element.addClass("ui-droppable")},destroy:function(){for(var a=d.ui.ddmanager.droppables[this.options.scope],b=0;b<a.length;b++)a[b]==this&&a.splice(b,1);this.element.removeClass("ui-droppable ui-droppable-disabled").removeData("droppable").unbind(".droppable");return this},_setOption:function(a,b){if(a=="accept")this.accept=d.isFunction(b)?b:function(c){return c.is(b)};d.Widget.prototype._setOption.apply(this,arguments)},_activate:function(a){var b=d.ui.ddmanager.current;this.options.activeClass&&
|
||||||
|
this.element.addClass(this.options.activeClass);b&&this._trigger("activate",a,this.ui(b))},_deactivate:function(a){var b=d.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass);b&&this._trigger("deactivate",a,this.ui(b))},_over:function(a){var b=d.ui.ddmanager.current;if(!(!b||(b.currentItem||b.element)[0]==this.element[0]))if(this.accept.call(this.element[0],b.currentItem||b.element)){this.options.hoverClass&&this.element.addClass(this.options.hoverClass);
|
||||||
|
this._trigger("over",a,this.ui(b))}},_out:function(a){var b=d.ui.ddmanager.current;if(!(!b||(b.currentItem||b.element)[0]==this.element[0]))if(this.accept.call(this.element[0],b.currentItem||b.element)){this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);this._trigger("out",a,this.ui(b))}},_drop:function(a,b){var c=b||d.ui.ddmanager.current;if(!c||(c.currentItem||c.element)[0]==this.element[0])return false;var e=false;this.element.find(":data(droppable)").not(".ui-draggable-dragging").each(function(){var g=
|
||||||
|
d.data(this,"droppable");if(g.options.greedy&&!g.options.disabled&&g.options.scope==c.options.scope&&g.accept.call(g.element[0],c.currentItem||c.element)&&d.ui.intersect(c,d.extend(g,{offset:g.element.offset()}),g.options.tolerance)){e=true;return false}});if(e)return false;if(this.accept.call(this.element[0],c.currentItem||c.element)){this.options.activeClass&&this.element.removeClass(this.options.activeClass);this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);this._trigger("drop",
|
||||||
|
a,this.ui(c));return this.element}return false},ui:function(a){return{draggable:a.currentItem||a.element,helper:a.helper,position:a.position,offset:a.positionAbs}}});d.extend(d.ui.droppable,{version:"1.8.16"});d.ui.intersect=function(a,b,c){if(!b.offset)return false;var e=(a.positionAbs||a.position.absolute).left,g=e+a.helperProportions.width,f=(a.positionAbs||a.position.absolute).top,h=f+a.helperProportions.height,i=b.offset.left,k=i+b.proportions.width,j=b.offset.top,l=j+b.proportions.height;
|
||||||
|
switch(c){case "fit":return i<=e&&g<=k&&j<=f&&h<=l;case "intersect":return i<e+a.helperProportions.width/2&&g-a.helperProportions.width/2<k&&j<f+a.helperProportions.height/2&&h-a.helperProportions.height/2<l;case "pointer":return d.ui.isOver((a.positionAbs||a.position.absolute).top+(a.clickOffset||a.offset.click).top,(a.positionAbs||a.position.absolute).left+(a.clickOffset||a.offset.click).left,j,i,b.proportions.height,b.proportions.width);case "touch":return(f>=j&&f<=l||h>=j&&h<=l||f<j&&h>l)&&(e>=
|
||||||
|
i&&e<=k||g>=i&&g<=k||e<i&&g>k);default:return false}};d.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(a,b){var c=d.ui.ddmanager.droppables[a.options.scope]||[],e=b?b.type:null,g=(a.currentItem||a.element).find(":data(droppable)").andSelf(),f=0;a:for(;f<c.length;f++)if(!(c[f].options.disabled||a&&!c[f].accept.call(c[f].element[0],a.currentItem||a.element))){for(var h=0;h<g.length;h++)if(g[h]==c[f].element[0]){c[f].proportions.height=0;continue a}c[f].visible=c[f].element.css("display")!=
|
||||||
|
"none";if(c[f].visible){e=="mousedown"&&c[f]._activate.call(c[f],b);c[f].offset=c[f].element.offset();c[f].proportions={width:c[f].element[0].offsetWidth,height:c[f].element[0].offsetHeight}}}},drop:function(a,b){var c=false;d.each(d.ui.ddmanager.droppables[a.options.scope]||[],function(){if(this.options){if(!this.options.disabled&&this.visible&&d.ui.intersect(a,this,this.options.tolerance))c=c||this._drop.call(this,b);if(!this.options.disabled&&this.visible&&this.accept.call(this.element[0],a.currentItem||
|
||||||
|
a.element)){this.isout=1;this.isover=0;this._deactivate.call(this,b)}}});return c},dragStart:function(a,b){a.element.parents(":not(body,html)").bind("scroll.droppable",function(){a.options.refreshPositions||d.ui.ddmanager.prepareOffsets(a,b)})},drag:function(a,b){a.options.refreshPositions&&d.ui.ddmanager.prepareOffsets(a,b);d.each(d.ui.ddmanager.droppables[a.options.scope]||[],function(){if(!(this.options.disabled||this.greedyChild||!this.visible)){var c=d.ui.intersect(a,this,this.options.tolerance);
|
||||||
|
if(c=!c&&this.isover==1?"isout":c&&this.isover==0?"isover":null){var e;if(this.options.greedy){var g=this.element.parents(":data(droppable):eq(0)");if(g.length){e=d.data(g[0],"droppable");e.greedyChild=c=="isover"?1:0}}if(e&&c=="isover"){e.isover=0;e.isout=1;e._out.call(e,b)}this[c]=1;this[c=="isout"?"isover":"isout"]=0;this[c=="isover"?"_over":"_out"].call(this,b);if(e&&c=="isout"){e.isout=0;e.isover=1;e._over.call(e,b)}}}})},dragStop:function(a,b){a.element.parents(":not(body,html)").unbind("scroll.droppable");
|
||||||
|
a.options.refreshPositions||d.ui.ddmanager.prepareOffsets(a,b)}}})(jQuery);
|
||||||
|
;/*
|
||||||
|
* jQuery UI Resizable 1.8.16
|
||||||
|
*
|
||||||
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
||||||
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||||
|
* http://jquery.org/license
|
||||||
|
*
|
||||||
|
* http://docs.jquery.com/UI/Resizables
|
||||||
|
*
|
||||||
|
* Depends:
|
||||||
|
* jquery.ui.core.js
|
||||||
|
* jquery.ui.mouse.js
|
||||||
|
* jquery.ui.widget.js
|
||||||
|
*/
|
||||||
|
(function(e){e.widget("ui.resizable",e.ui.mouse,{widgetEventPrefix:"resize",options:{alsoResize:false,animate:false,animateDuration:"slow",animateEasing:"swing",aspectRatio:false,autoHide:false,containment:false,ghost:false,grid:false,handles:"e,s,se",helper:false,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:1E3},_create:function(){var b=this,a=this.options;this.element.addClass("ui-resizable");e.extend(this,{_aspectRatio:!!a.aspectRatio,aspectRatio:a.aspectRatio,originalElement:this.element,
|
||||||
|
_proportionallyResizeElements:[],_helper:a.helper||a.ghost||a.animate?a.helper||"ui-resizable-helper":null});if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)){/relative/.test(this.element.css("position"))&&e.browser.opera&&this.element.css({position:"relative",top:"auto",left:"auto"});this.element.wrap(e('<div class="ui-wrapper" style="overflow: hidden;"></div>').css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),
|
||||||
|
top:this.element.css("top"),left:this.element.css("left")}));this.element=this.element.parent().data("resizable",this.element.data("resizable"));this.elementIsWrapper=true;this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")});this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0});this.originalResizeStyle=
|
||||||
|
this.originalElement.css("resize");this.originalElement.css("resize","none");this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"}));this.originalElement.css({margin:this.originalElement.css("margin")});this._proportionallyResize()}this.handles=a.handles||(!e(".ui-resizable-handle",this.element).length?"e,s,se":{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",
|
||||||
|
nw:".ui-resizable-nw"});if(this.handles.constructor==String){if(this.handles=="all")this.handles="n,e,s,w,se,sw,ne,nw";var c=this.handles.split(",");this.handles={};for(var d=0;d<c.length;d++){var f=e.trim(c[d]),g=e('<div class="ui-resizable-handle '+("ui-resizable-"+f)+'"></div>');/sw|se|ne|nw/.test(f)&&g.css({zIndex:++a.zIndex});"se"==f&&g.addClass("ui-icon ui-icon-gripsmall-diagonal-se");this.handles[f]=".ui-resizable-"+f;this.element.append(g)}}this._renderAxis=function(h){h=h||this.element;for(var i in this.handles){if(this.handles[i].constructor==
|
||||||
|
String)this.handles[i]=e(this.handles[i],this.element).show();if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var j=e(this.handles[i],this.element),l=0;l=/sw|ne|nw|se|n|s/.test(i)?j.outerHeight():j.outerWidth();j=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join("");h.css(j,l);this._proportionallyResize()}e(this.handles[i])}};this._renderAxis(this.element);this._handles=e(".ui-resizable-handle",this.element).disableSelection();
|
||||||
|
this._handles.mouseover(function(){if(!b.resizing){if(this.className)var h=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);b.axis=h&&h[1]?h[1]:"se"}});if(a.autoHide){this._handles.hide();e(this.element).addClass("ui-resizable-autohide").hover(function(){if(!a.disabled){e(this).removeClass("ui-resizable-autohide");b._handles.show()}},function(){if(!a.disabled)if(!b.resizing){e(this).addClass("ui-resizable-autohide");b._handles.hide()}})}this._mouseInit()},destroy:function(){this._mouseDestroy();
|
||||||
|
var b=function(c){e(c).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};if(this.elementIsWrapper){b(this.element);var a=this.element;a.after(this.originalElement.css({position:a.css("position"),width:a.outerWidth(),height:a.outerHeight(),top:a.css("top"),left:a.css("left")})).remove()}this.originalElement.css("resize",this.originalResizeStyle);b(this.originalElement);return this},_mouseCapture:function(b){var a=
|
||||||
|
false;for(var c in this.handles)if(e(this.handles[c])[0]==b.target)a=true;return!this.options.disabled&&a},_mouseStart:function(b){var a=this.options,c=this.element.position(),d=this.element;this.resizing=true;this.documentScroll={top:e(document).scrollTop(),left:e(document).scrollLeft()};if(d.is(".ui-draggable")||/absolute/.test(d.css("position")))d.css({position:"absolute",top:c.top,left:c.left});e.browser.opera&&/relative/.test(d.css("position"))&&d.css({position:"relative",top:"auto",left:"auto"});
|
||||||
|
this._renderProxy();c=m(this.helper.css("left"));var f=m(this.helper.css("top"));if(a.containment){c+=e(a.containment).scrollLeft()||0;f+=e(a.containment).scrollTop()||0}this.offset=this.helper.offset();this.position={left:c,top:f};this.size=this._helper?{width:d.outerWidth(),height:d.outerHeight()}:{width:d.width(),height:d.height()};this.originalSize=this._helper?{width:d.outerWidth(),height:d.outerHeight()}:{width:d.width(),height:d.height()};this.originalPosition={left:c,top:f};this.sizeDiff=
|
||||||
|
{width:d.outerWidth()-d.width(),height:d.outerHeight()-d.height()};this.originalMousePosition={left:b.pageX,top:b.pageY};this.aspectRatio=typeof a.aspectRatio=="number"?a.aspectRatio:this.originalSize.width/this.originalSize.height||1;a=e(".ui-resizable-"+this.axis).css("cursor");e("body").css("cursor",a=="auto"?this.axis+"-resize":a);d.addClass("ui-resizable-resizing");this._propagate("start",b);return true},_mouseDrag:function(b){var a=this.helper,c=this.originalMousePosition,d=this._change[this.axis];
|
||||||
|
if(!d)return false;c=d.apply(this,[b,b.pageX-c.left||0,b.pageY-c.top||0]);this._updateVirtualBoundaries(b.shiftKey);if(this._aspectRatio||b.shiftKey)c=this._updateRatio(c,b);c=this._respectSize(c,b);this._propagate("resize",b);a.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"});!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize();this._updateCache(c);this._trigger("resize",b,this.ui());return false},
|
||||||
|
_mouseStop:function(b){this.resizing=false;var a=this.options,c=this;if(this._helper){var d=this._proportionallyResizeElements,f=d.length&&/textarea/i.test(d[0].nodeName);d=f&&e.ui.hasScroll(d[0],"left")?0:c.sizeDiff.height;f=f?0:c.sizeDiff.width;f={width:c.helper.width()-f,height:c.helper.height()-d};d=parseInt(c.element.css("left"),10)+(c.position.left-c.originalPosition.left)||null;var g=parseInt(c.element.css("top"),10)+(c.position.top-c.originalPosition.top)||null;a.animate||this.element.css(e.extend(f,
|
||||||
|
{top:g,left:d}));c.helper.height(c.size.height);c.helper.width(c.size.width);this._helper&&!a.animate&&this._proportionallyResize()}e("body").css("cursor","auto");this.element.removeClass("ui-resizable-resizing");this._propagate("stop",b);this._helper&&this.helper.remove();return false},_updateVirtualBoundaries:function(b){var a=this.options,c,d,f;a={minWidth:k(a.minWidth)?a.minWidth:0,maxWidth:k(a.maxWidth)?a.maxWidth:Infinity,minHeight:k(a.minHeight)?a.minHeight:0,maxHeight:k(a.maxHeight)?a.maxHeight:
|
||||||
|
Infinity};if(this._aspectRatio||b){b=a.minHeight*this.aspectRatio;d=a.minWidth/this.aspectRatio;c=a.maxHeight*this.aspectRatio;f=a.maxWidth/this.aspectRatio;if(b>a.minWidth)a.minWidth=b;if(d>a.minHeight)a.minHeight=d;if(c<a.maxWidth)a.maxWidth=c;if(f<a.maxHeight)a.maxHeight=f}this._vBoundaries=a},_updateCache:function(b){this.offset=this.helper.offset();if(k(b.left))this.position.left=b.left;if(k(b.top))this.position.top=b.top;if(k(b.height))this.size.height=b.height;if(k(b.width))this.size.width=
|
||||||
|
b.width},_updateRatio:function(b){var a=this.position,c=this.size,d=this.axis;if(k(b.height))b.width=b.height*this.aspectRatio;else if(k(b.width))b.height=b.width/this.aspectRatio;if(d=="sw"){b.left=a.left+(c.width-b.width);b.top=null}if(d=="nw"){b.top=a.top+(c.height-b.height);b.left=a.left+(c.width-b.width)}return b},_respectSize:function(b){var a=this._vBoundaries,c=this.axis,d=k(b.width)&&a.maxWidth&&a.maxWidth<b.width,f=k(b.height)&&a.maxHeight&&a.maxHeight<b.height,g=k(b.width)&&a.minWidth&&
|
||||||
|
a.minWidth>b.width,h=k(b.height)&&a.minHeight&&a.minHeight>b.height;if(g)b.width=a.minWidth;if(h)b.height=a.minHeight;if(d)b.width=a.maxWidth;if(f)b.height=a.maxHeight;var i=this.originalPosition.left+this.originalSize.width,j=this.position.top+this.size.height,l=/sw|nw|w/.test(c);c=/nw|ne|n/.test(c);if(g&&l)b.left=i-a.minWidth;if(d&&l)b.left=i-a.maxWidth;if(h&&c)b.top=j-a.minHeight;if(f&&c)b.top=j-a.maxHeight;if((a=!b.width&&!b.height)&&!b.left&&b.top)b.top=null;else if(a&&!b.top&&b.left)b.left=
|
||||||
|
null;return b},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var b=this.helper||this.element,a=0;a<this._proportionallyResizeElements.length;a++){var c=this._proportionallyResizeElements[a];if(!this.borderDif){var d=[c.css("borderTopWidth"),c.css("borderRightWidth"),c.css("borderBottomWidth"),c.css("borderLeftWidth")],f=[c.css("paddingTop"),c.css("paddingRight"),c.css("paddingBottom"),c.css("paddingLeft")];this.borderDif=e.map(d,function(g,h){g=parseInt(g,10)||
|
||||||
|
0;h=parseInt(f[h],10)||0;return g+h})}e.browser.msie&&(e(b).is(":hidden")||e(b).parents(":hidden").length)||c.css({height:b.height()-this.borderDif[0]-this.borderDif[2]||0,width:b.width()-this.borderDif[1]-this.borderDif[3]||0})}},_renderProxy:function(){var b=this.options;this.elementOffset=this.element.offset();if(this._helper){this.helper=this.helper||e('<div style="overflow:hidden;"></div>');var a=e.browser.msie&&e.browser.version<7,c=a?1:0;a=a?2:-1;this.helper.addClass(this._helper).css({width:this.element.outerWidth()+
|
||||||
|
a,height:this.element.outerHeight()+a,position:"absolute",left:this.elementOffset.left-c+"px",top:this.elementOffset.top-c+"px",zIndex:++b.zIndex});this.helper.appendTo("body").disableSelection()}else this.helper=this.element},_change:{e:function(b,a){return{width:this.originalSize.width+a}},w:function(b,a){return{left:this.originalPosition.left+a,width:this.originalSize.width-a}},n:function(b,a,c){return{top:this.originalPosition.top+c,height:this.originalSize.height-c}},s:function(b,a,c){return{height:this.originalSize.height+
|
||||||
|
c}},se:function(b,a,c){return e.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[b,a,c]))},sw:function(b,a,c){return e.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[b,a,c]))},ne:function(b,a,c){return e.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[b,a,c]))},nw:function(b,a,c){return e.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[b,a,c]))}},_propagate:function(b,a){e.ui.plugin.call(this,b,[a,this.ui()]);
|
||||||
|
b!="resize"&&this._trigger(b,a,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}});e.extend(e.ui.resizable,{version:"1.8.16"});e.ui.plugin.add("resizable","alsoResize",{start:function(){var b=e(this).data("resizable").options,a=function(c){e(c).each(function(){var d=e(this);d.data("resizable-alsoresize",{width:parseInt(d.width(),
|
||||||
|
10),height:parseInt(d.height(),10),left:parseInt(d.css("left"),10),top:parseInt(d.css("top"),10),position:d.css("position")})})};if(typeof b.alsoResize=="object"&&!b.alsoResize.parentNode)if(b.alsoResize.length){b.alsoResize=b.alsoResize[0];a(b.alsoResize)}else e.each(b.alsoResize,function(c){a(c)});else a(b.alsoResize)},resize:function(b,a){var c=e(this).data("resizable");b=c.options;var d=c.originalSize,f=c.originalPosition,g={height:c.size.height-d.height||0,width:c.size.width-d.width||0,top:c.position.top-
|
||||||
|
f.top||0,left:c.position.left-f.left||0},h=function(i,j){e(i).each(function(){var l=e(this),q=e(this).data("resizable-alsoresize"),p={},r=j&&j.length?j:l.parents(a.originalElement[0]).length?["width","height"]:["width","height","top","left"];e.each(r,function(n,o){if((n=(q[o]||0)+(g[o]||0))&&n>=0)p[o]=n||null});if(e.browser.opera&&/relative/.test(l.css("position"))){c._revertToRelativePosition=true;l.css({position:"absolute",top:"auto",left:"auto"})}l.css(p)})};typeof b.alsoResize=="object"&&!b.alsoResize.nodeType?
|
||||||
|
e.each(b.alsoResize,function(i,j){h(i,j)}):h(b.alsoResize)},stop:function(){var b=e(this).data("resizable"),a=b.options,c=function(d){e(d).each(function(){var f=e(this);f.css({position:f.data("resizable-alsoresize").position})})};if(b._revertToRelativePosition){b._revertToRelativePosition=false;typeof a.alsoResize=="object"&&!a.alsoResize.nodeType?e.each(a.alsoResize,function(d){c(d)}):c(a.alsoResize)}e(this).removeData("resizable-alsoresize")}});e.ui.plugin.add("resizable","animate",{stop:function(b){var a=
|
||||||
|
e(this).data("resizable"),c=a.options,d=a._proportionallyResizeElements,f=d.length&&/textarea/i.test(d[0].nodeName),g=f&&e.ui.hasScroll(d[0],"left")?0:a.sizeDiff.height;f={width:a.size.width-(f?0:a.sizeDiff.width),height:a.size.height-g};g=parseInt(a.element.css("left"),10)+(a.position.left-a.originalPosition.left)||null;var h=parseInt(a.element.css("top"),10)+(a.position.top-a.originalPosition.top)||null;a.element.animate(e.extend(f,h&&g?{top:h,left:g}:{}),{duration:c.animateDuration,easing:c.animateEasing,
|
||||||
|
step:function(){var i={width:parseInt(a.element.css("width"),10),height:parseInt(a.element.css("height"),10),top:parseInt(a.element.css("top"),10),left:parseInt(a.element.css("left"),10)};d&&d.length&&e(d[0]).css({width:i.width,height:i.height});a._updateCache(i);a._propagate("resize",b)}})}});e.ui.plugin.add("resizable","containment",{start:function(){var b=e(this).data("resizable"),a=b.element,c=b.options.containment;if(a=c instanceof e?c.get(0):/parent/.test(c)?a.parent().get(0):c){b.containerElement=
|
||||||
|
e(a);if(/document/.test(c)||c==document){b.containerOffset={left:0,top:0};b.containerPosition={left:0,top:0};b.parentData={element:e(document),left:0,top:0,width:e(document).width(),height:e(document).height()||document.body.parentNode.scrollHeight}}else{var d=e(a),f=[];e(["Top","Right","Left","Bottom"]).each(function(i,j){f[i]=m(d.css("padding"+j))});b.containerOffset=d.offset();b.containerPosition=d.position();b.containerSize={height:d.innerHeight()-f[3],width:d.innerWidth()-f[1]};c=b.containerOffset;
|
||||||
|
var g=b.containerSize.height,h=b.containerSize.width;h=e.ui.hasScroll(a,"left")?a.scrollWidth:h;g=e.ui.hasScroll(a)?a.scrollHeight:g;b.parentData={element:a,left:c.left,top:c.top,width:h,height:g}}}},resize:function(b){var a=e(this).data("resizable"),c=a.options,d=a.containerOffset,f=a.position;b=a._aspectRatio||b.shiftKey;var g={top:0,left:0},h=a.containerElement;if(h[0]!=document&&/static/.test(h.css("position")))g=d;if(f.left<(a._helper?d.left:0)){a.size.width+=a._helper?a.position.left-d.left:
|
||||||
|
a.position.left-g.left;if(b)a.size.height=a.size.width/c.aspectRatio;a.position.left=c.helper?d.left:0}if(f.top<(a._helper?d.top:0)){a.size.height+=a._helper?a.position.top-d.top:a.position.top;if(b)a.size.width=a.size.height*c.aspectRatio;a.position.top=a._helper?d.top:0}a.offset.left=a.parentData.left+a.position.left;a.offset.top=a.parentData.top+a.position.top;c=Math.abs((a._helper?a.offset.left-g.left:a.offset.left-g.left)+a.sizeDiff.width);d=Math.abs((a._helper?a.offset.top-g.top:a.offset.top-
|
||||||
|
d.top)+a.sizeDiff.height);f=a.containerElement.get(0)==a.element.parent().get(0);g=/relative|absolute/.test(a.containerElement.css("position"));if(f&&g)c-=a.parentData.left;if(c+a.size.width>=a.parentData.width){a.size.width=a.parentData.width-c;if(b)a.size.height=a.size.width/a.aspectRatio}if(d+a.size.height>=a.parentData.height){a.size.height=a.parentData.height-d;if(b)a.size.width=a.size.height*a.aspectRatio}},stop:function(){var b=e(this).data("resizable"),a=b.options,c=b.containerOffset,d=b.containerPosition,
|
||||||
|
f=b.containerElement,g=e(b.helper),h=g.offset(),i=g.outerWidth()-b.sizeDiff.width;g=g.outerHeight()-b.sizeDiff.height;b._helper&&!a.animate&&/relative/.test(f.css("position"))&&e(this).css({left:h.left-d.left-c.left,width:i,height:g});b._helper&&!a.animate&&/static/.test(f.css("position"))&&e(this).css({left:h.left-d.left-c.left,width:i,height:g})}});e.ui.plugin.add("resizable","ghost",{start:function(){var b=e(this).data("resizable"),a=b.options,c=b.size;b.ghost=b.originalElement.clone();b.ghost.css({opacity:0.25,
|
||||||
|
display:"block",position:"relative",height:c.height,width:c.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof a.ghost=="string"?a.ghost:"");b.ghost.appendTo(b.helper)},resize:function(){var b=e(this).data("resizable");b.ghost&&b.ghost.css({position:"relative",height:b.size.height,width:b.size.width})},stop:function(){var b=e(this).data("resizable");b.ghost&&b.helper&&b.helper.get(0).removeChild(b.ghost.get(0))}});e.ui.plugin.add("resizable","grid",{resize:function(){var b=
|
||||||
|
e(this).data("resizable"),a=b.options,c=b.size,d=b.originalSize,f=b.originalPosition,g=b.axis;a.grid=typeof a.grid=="number"?[a.grid,a.grid]:a.grid;var h=Math.round((c.width-d.width)/(a.grid[0]||1))*(a.grid[0]||1);a=Math.round((c.height-d.height)/(a.grid[1]||1))*(a.grid[1]||1);if(/^(se|s|e)$/.test(g)){b.size.width=d.width+h;b.size.height=d.height+a}else if(/^(ne)$/.test(g)){b.size.width=d.width+h;b.size.height=d.height+a;b.position.top=f.top-a}else{if(/^(sw)$/.test(g)){b.size.width=d.width+h;b.size.height=
|
||||||
|
d.height+a}else{b.size.width=d.width+h;b.size.height=d.height+a;b.position.top=f.top-a}b.position.left=f.left-h}}});var m=function(b){return parseInt(b,10)||0},k=function(b){return!isNaN(parseInt(b,10))}})(jQuery);
|
||||||
|
;/*
|
||||||
|
* jQuery UI Selectable 1.8.16
|
||||||
|
*
|
||||||
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
||||||
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||||
|
* http://jquery.org/license
|
||||||
|
*
|
||||||
|
* http://docs.jquery.com/UI/Selectables
|
||||||
|
*
|
||||||
|
* Depends:
|
||||||
|
* jquery.ui.core.js
|
||||||
|
* jquery.ui.mouse.js
|
||||||
|
* jquery.ui.widget.js
|
||||||
|
*/
|
||||||
|
(function(e){e.widget("ui.selectable",e.ui.mouse,{options:{appendTo:"body",autoRefresh:true,distance:0,filter:"*",tolerance:"touch"},_create:function(){var c=this;this.element.addClass("ui-selectable");this.dragged=false;var f;this.refresh=function(){f=e(c.options.filter,c.element[0]);f.each(function(){var d=e(this),b=d.offset();e.data(this,"selectable-item",{element:this,$element:d,left:b.left,top:b.top,right:b.left+d.outerWidth(),bottom:b.top+d.outerHeight(),startselected:false,selected:d.hasClass("ui-selected"),
|
||||||
|
selecting:d.hasClass("ui-selecting"),unselecting:d.hasClass("ui-unselecting")})})};this.refresh();this.selectees=f.addClass("ui-selectee");this._mouseInit();this.helper=e("<div class='ui-selectable-helper'></div>")},destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item");this.element.removeClass("ui-selectable ui-selectable-disabled").removeData("selectable").unbind(".selectable");this._mouseDestroy();return this},_mouseStart:function(c){var f=this;this.opos=[c.pageX,
|
||||||
|
c.pageY];if(!this.options.disabled){var d=this.options;this.selectees=e(d.filter,this.element[0]);this._trigger("start",c);e(d.appendTo).append(this.helper);this.helper.css({left:c.clientX,top:c.clientY,width:0,height:0});d.autoRefresh&&this.refresh();this.selectees.filter(".ui-selected").each(function(){var b=e.data(this,"selectable-item");b.startselected=true;if(!c.metaKey){b.$element.removeClass("ui-selected");b.selected=false;b.$element.addClass("ui-unselecting");b.unselecting=true;f._trigger("unselecting",
|
||||||
|
c,{unselecting:b.element})}});e(c.target).parents().andSelf().each(function(){var b=e.data(this,"selectable-item");if(b){var g=!c.metaKey||!b.$element.hasClass("ui-selected");b.$element.removeClass(g?"ui-unselecting":"ui-selected").addClass(g?"ui-selecting":"ui-unselecting");b.unselecting=!g;b.selecting=g;(b.selected=g)?f._trigger("selecting",c,{selecting:b.element}):f._trigger("unselecting",c,{unselecting:b.element});return false}})}},_mouseDrag:function(c){var f=this;this.dragged=true;if(!this.options.disabled){var d=
|
||||||
|
this.options,b=this.opos[0],g=this.opos[1],h=c.pageX,i=c.pageY;if(b>h){var j=h;h=b;b=j}if(g>i){j=i;i=g;g=j}this.helper.css({left:b,top:g,width:h-b,height:i-g});this.selectees.each(function(){var a=e.data(this,"selectable-item");if(!(!a||a.element==f.element[0])){var k=false;if(d.tolerance=="touch")k=!(a.left>h||a.right<b||a.top>i||a.bottom<g);else if(d.tolerance=="fit")k=a.left>b&&a.right<h&&a.top>g&&a.bottom<i;if(k){if(a.selected){a.$element.removeClass("ui-selected");a.selected=false}if(a.unselecting){a.$element.removeClass("ui-unselecting");
|
||||||
|
a.unselecting=false}if(!a.selecting){a.$element.addClass("ui-selecting");a.selecting=true;f._trigger("selecting",c,{selecting:a.element})}}else{if(a.selecting)if(c.metaKey&&a.startselected){a.$element.removeClass("ui-selecting");a.selecting=false;a.$element.addClass("ui-selected");a.selected=true}else{a.$element.removeClass("ui-selecting");a.selecting=false;if(a.startselected){a.$element.addClass("ui-unselecting");a.unselecting=true}f._trigger("unselecting",c,{unselecting:a.element})}if(a.selected)if(!c.metaKey&&
|
||||||
|
!a.startselected){a.$element.removeClass("ui-selected");a.selected=false;a.$element.addClass("ui-unselecting");a.unselecting=true;f._trigger("unselecting",c,{unselecting:a.element})}}}});return false}},_mouseStop:function(c){var f=this;this.dragged=false;e(".ui-unselecting",this.element[0]).each(function(){var d=e.data(this,"selectable-item");d.$element.removeClass("ui-unselecting");d.unselecting=false;d.startselected=false;f._trigger("unselected",c,{unselected:d.element})});e(".ui-selecting",this.element[0]).each(function(){var d=
|
||||||
|
e.data(this,"selectable-item");d.$element.removeClass("ui-selecting").addClass("ui-selected");d.selecting=false;d.selected=true;d.startselected=true;f._trigger("selected",c,{selected:d.element})});this._trigger("stop",c);this.helper.remove();return false}});e.extend(e.ui.selectable,{version:"1.8.16"})})(jQuery);
|
||||||
|
;/*
|
||||||
|
* jQuery UI Sortable 1.8.16
|
||||||
|
*
|
||||||
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
||||||
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||||
|
* http://jquery.org/license
|
||||||
|
*
|
||||||
|
* http://docs.jquery.com/UI/Sortables
|
||||||
|
*
|
||||||
|
* Depends:
|
||||||
|
* jquery.ui.core.js
|
||||||
|
* jquery.ui.mouse.js
|
||||||
|
* jquery.ui.widget.js
|
||||||
|
*/
|
||||||
|
(function(d){d.widget("ui.sortable",d.ui.mouse,{widgetEventPrefix:"sort",options:{appendTo:"parent",axis:false,connectWith:false,containment:false,cursor:"auto",cursorAt:false,dropOnEmpty:true,forcePlaceholderSize:false,forceHelperSize:false,grid:false,handle:false,helper:"original",items:"> *",opacity:false,placeholder:false,revert:false,scroll:true,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1E3},_create:function(){var a=this.options;this.containerCache={};this.element.addClass("ui-sortable");
|
||||||
|
this.refresh();this.floating=this.items.length?a.axis==="x"||/left|right/.test(this.items[0].item.css("float"))||/inline|table-cell/.test(this.items[0].item.css("display")):false;this.offset=this.element.offset();this._mouseInit()},destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").removeData("sortable").unbind(".sortable");this._mouseDestroy();for(var a=this.items.length-1;a>=0;a--)this.items[a].item.removeData("sortable-item");return this},_setOption:function(a,b){if(a===
|
||||||
|
"disabled"){this.options[a]=b;this.widget()[b?"addClass":"removeClass"]("ui-sortable-disabled")}else d.Widget.prototype._setOption.apply(this,arguments)},_mouseCapture:function(a,b){if(this.reverting)return false;if(this.options.disabled||this.options.type=="static")return false;this._refreshItems(a);var c=null,e=this;d(a.target).parents().each(function(){if(d.data(this,"sortable-item")==e){c=d(this);return false}});if(d.data(a.target,"sortable-item")==e)c=d(a.target);if(!c)return false;if(this.options.handle&&
|
||||||
|
!b){var f=false;d(this.options.handle,c).find("*").andSelf().each(function(){if(this==a.target)f=true});if(!f)return false}this.currentItem=c;this._removeCurrentsFromItems();return true},_mouseStart:function(a,b,c){b=this.options;var e=this;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(a);this._cacheHelperProportions();this._cacheMargins();this.scrollParent=this.helper.scrollParent();this.offset=this.currentItem.offset();this.offset={top:this.offset.top-this.margins.top,
|
||||||
|
left:this.offset.left-this.margins.left};this.helper.css("position","absolute");this.cssPosition=this.helper.css("position");d.extend(this.offset,{click:{left:a.pageX-this.offset.left,top:a.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(a);this.originalPageX=a.pageX;this.originalPageY=a.pageY;b.cursorAt&&this._adjustOffsetFromHelper(b.cursorAt);this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};
|
||||||
|
this.helper[0]!=this.currentItem[0]&&this.currentItem.hide();this._createPlaceholder();b.containment&&this._setContainment();if(b.cursor){if(d("body").css("cursor"))this._storedCursor=d("body").css("cursor");d("body").css("cursor",b.cursor)}if(b.opacity){if(this.helper.css("opacity"))this._storedOpacity=this.helper.css("opacity");this.helper.css("opacity",b.opacity)}if(b.zIndex){if(this.helper.css("zIndex"))this._storedZIndex=this.helper.css("zIndex");this.helper.css("zIndex",b.zIndex)}if(this.scrollParent[0]!=
|
||||||
|
document&&this.scrollParent[0].tagName!="HTML")this.overflowOffset=this.scrollParent.offset();this._trigger("start",a,this._uiHash());this._preserveHelperProportions||this._cacheHelperProportions();if(!c)for(c=this.containers.length-1;c>=0;c--)this.containers[c]._trigger("activate",a,e._uiHash(this));if(d.ui.ddmanager)d.ui.ddmanager.current=this;d.ui.ddmanager&&!b.dropBehaviour&&d.ui.ddmanager.prepareOffsets(this,a);this.dragging=true;this.helper.addClass("ui-sortable-helper");this._mouseDrag(a);
|
||||||
|
return true},_mouseDrag:function(a){this.position=this._generatePosition(a);this.positionAbs=this._convertPositionTo("absolute");if(!this.lastPositionAbs)this.lastPositionAbs=this.positionAbs;if(this.options.scroll){var b=this.options,c=false;if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){if(this.overflowOffset.top+this.scrollParent[0].offsetHeight-a.pageY<b.scrollSensitivity)this.scrollParent[0].scrollTop=c=this.scrollParent[0].scrollTop+b.scrollSpeed;else if(a.pageY-this.overflowOffset.top<
|
||||||
|
b.scrollSensitivity)this.scrollParent[0].scrollTop=c=this.scrollParent[0].scrollTop-b.scrollSpeed;if(this.overflowOffset.left+this.scrollParent[0].offsetWidth-a.pageX<b.scrollSensitivity)this.scrollParent[0].scrollLeft=c=this.scrollParent[0].scrollLeft+b.scrollSpeed;else if(a.pageX-this.overflowOffset.left<b.scrollSensitivity)this.scrollParent[0].scrollLeft=c=this.scrollParent[0].scrollLeft-b.scrollSpeed}else{if(a.pageY-d(document).scrollTop()<b.scrollSensitivity)c=d(document).scrollTop(d(document).scrollTop()-
|
||||||
|
b.scrollSpeed);else if(d(window).height()-(a.pageY-d(document).scrollTop())<b.scrollSensitivity)c=d(document).scrollTop(d(document).scrollTop()+b.scrollSpeed);if(a.pageX-d(document).scrollLeft()<b.scrollSensitivity)c=d(document).scrollLeft(d(document).scrollLeft()-b.scrollSpeed);else if(d(window).width()-(a.pageX-d(document).scrollLeft())<b.scrollSensitivity)c=d(document).scrollLeft(d(document).scrollLeft()+b.scrollSpeed)}c!==false&&d.ui.ddmanager&&!b.dropBehaviour&&d.ui.ddmanager.prepareOffsets(this,
|
||||||
|
a)}this.positionAbs=this._convertPositionTo("absolute");if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+"px";if(!this.options.axis||this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";for(b=this.items.length-1;b>=0;b--){c=this.items[b];var e=c.item[0],f=this._intersectsWithPointer(c);if(f)if(e!=this.currentItem[0]&&this.placeholder[f==1?"next":"prev"]()[0]!=e&&!d.ui.contains(this.placeholder[0],e)&&(this.options.type=="semi-dynamic"?!d.ui.contains(this.element[0],
|
||||||
|
e):true)){this.direction=f==1?"down":"up";if(this.options.tolerance=="pointer"||this._intersectsWithSides(c))this._rearrange(a,c);else break;this._trigger("change",a,this._uiHash());break}}this._contactContainers(a);d.ui.ddmanager&&d.ui.ddmanager.drag(this,a);this._trigger("sort",a,this._uiHash());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(a,b){if(a){d.ui.ddmanager&&!this.options.dropBehaviour&&d.ui.ddmanager.drop(this,a);if(this.options.revert){var c=this;b=c.placeholder.offset();
|
||||||
|
c.reverting=true;d(this.helper).animate({left:b.left-this.offset.parent.left-c.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:b.top-this.offset.parent.top-c.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){c._clear(a)})}else this._clear(a,b);return false}},cancel:function(){var a=this;if(this.dragging){this._mouseUp({target:null});this.options.helper=="original"?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):
|
||||||
|
this.currentItem.show();for(var b=this.containers.length-1;b>=0;b--){this.containers[b]._trigger("deactivate",null,a._uiHash(this));if(this.containers[b].containerCache.over){this.containers[b]._trigger("out",null,a._uiHash(this));this.containers[b].containerCache.over=0}}}if(this.placeholder){this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.options.helper!="original"&&this.helper&&this.helper[0].parentNode&&this.helper.remove();d.extend(this,{helper:null,
|
||||||
|
dragging:false,reverting:false,_noFinalSort:null});this.domPosition.prev?d(this.domPosition.prev).after(this.currentItem):d(this.domPosition.parent).prepend(this.currentItem)}return this},serialize:function(a){var b=this._getItemsAsjQuery(a&&a.connected),c=[];a=a||{};d(b).each(function(){var e=(d(a.item||this).attr(a.attribute||"id")||"").match(a.expression||/(.+)[-=_](.+)/);if(e)c.push((a.key||e[1]+"[]")+"="+(a.key&&a.expression?e[1]:e[2]))});!c.length&&a.key&&c.push(a.key+"=");return c.join("&")},
|
||||||
|
toArray:function(a){var b=this._getItemsAsjQuery(a&&a.connected),c=[];a=a||{};b.each(function(){c.push(d(a.item||this).attr(a.attribute||"id")||"")});return c},_intersectsWith:function(a){var b=this.positionAbs.left,c=b+this.helperProportions.width,e=this.positionAbs.top,f=e+this.helperProportions.height,g=a.left,h=g+a.width,i=a.top,k=i+a.height,j=this.offset.click.top,l=this.offset.click.left;j=e+j>i&&e+j<k&&b+l>g&&b+l<h;return this.options.tolerance=="pointer"||this.options.forcePointerForContainers||
|
||||||
|
this.options.tolerance!="pointer"&&this.helperProportions[this.floating?"width":"height"]>a[this.floating?"width":"height"]?j:g<b+this.helperProportions.width/2&&c-this.helperProportions.width/2<h&&i<e+this.helperProportions.height/2&&f-this.helperProportions.height/2<k},_intersectsWithPointer:function(a){var b=d.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,a.top,a.height);a=d.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,a.left,a.width);b=b&&a;a=this._getDragVerticalDirection();
|
||||||
|
var c=this._getDragHorizontalDirection();if(!b)return false;return this.floating?c&&c=="right"||a=="down"?2:1:a&&(a=="down"?2:1)},_intersectsWithSides:function(a){var b=d.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,a.top+a.height/2,a.height);a=d.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,a.left+a.width/2,a.width);var c=this._getDragVerticalDirection(),e=this._getDragHorizontalDirection();return this.floating&&e?e=="right"&&a||e=="left"&&!a:c&&(c=="down"&&b||c=="up"&&!b)},
|
||||||
|
_getDragVerticalDirection:function(){var a=this.positionAbs.top-this.lastPositionAbs.top;return a!=0&&(a>0?"down":"up")},_getDragHorizontalDirection:function(){var a=this.positionAbs.left-this.lastPositionAbs.left;return a!=0&&(a>0?"right":"left")},refresh:function(a){this._refreshItems(a);this.refreshPositions();return this},_connectWith:function(){var a=this.options;return a.connectWith.constructor==String?[a.connectWith]:a.connectWith},_getItemsAsjQuery:function(a){var b=[],c=[],e=this._connectWith();
|
||||||
|
if(e&&a)for(a=e.length-1;a>=0;a--)for(var f=d(e[a]),g=f.length-1;g>=0;g--){var h=d.data(f[g],"sortable");if(h&&h!=this&&!h.options.disabled)c.push([d.isFunction(h.options.items)?h.options.items.call(h.element):d(h.options.items,h.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),h])}c.push([d.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):d(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),
|
||||||
|
this]);for(a=c.length-1;a>=0;a--)c[a][0].each(function(){b.push(this)});return d(b)},_removeCurrentsFromItems:function(){for(var a=this.currentItem.find(":data(sortable-item)"),b=0;b<this.items.length;b++)for(var c=0;c<a.length;c++)a[c]==this.items[b].item[0]&&this.items.splice(b,1)},_refreshItems:function(a){this.items=[];this.containers=[this];var b=this.items,c=[[d.isFunction(this.options.items)?this.options.items.call(this.element[0],a,{item:this.currentItem}):d(this.options.items,this.element),
|
||||||
|
this]],e=this._connectWith();if(e)for(var f=e.length-1;f>=0;f--)for(var g=d(e[f]),h=g.length-1;h>=0;h--){var i=d.data(g[h],"sortable");if(i&&i!=this&&!i.options.disabled){c.push([d.isFunction(i.options.items)?i.options.items.call(i.element[0],a,{item:this.currentItem}):d(i.options.items,i.element),i]);this.containers.push(i)}}for(f=c.length-1;f>=0;f--){a=c[f][1];e=c[f][0];h=0;for(g=e.length;h<g;h++){i=d(e[h]);i.data("sortable-item",a);b.push({item:i,instance:a,width:0,height:0,left:0,top:0})}}},refreshPositions:function(a){if(this.offsetParent&&
|
||||||
|
this.helper)this.offset.parent=this._getParentOffset();for(var b=this.items.length-1;b>=0;b--){var c=this.items[b];if(!(c.instance!=this.currentContainer&&this.currentContainer&&c.item[0]!=this.currentItem[0])){var e=this.options.toleranceElement?d(this.options.toleranceElement,c.item):c.item;if(!a){c.width=e.outerWidth();c.height=e.outerHeight()}e=e.offset();c.left=e.left;c.top=e.top}}if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(b=
|
||||||
|
this.containers.length-1;b>=0;b--){e=this.containers[b].element.offset();this.containers[b].containerCache.left=e.left;this.containers[b].containerCache.top=e.top;this.containers[b].containerCache.width=this.containers[b].element.outerWidth();this.containers[b].containerCache.height=this.containers[b].element.outerHeight()}return this},_createPlaceholder:function(a){var b=a||this,c=b.options;if(!c.placeholder||c.placeholder.constructor==String){var e=c.placeholder;c.placeholder={element:function(){var f=
|
||||||
|
d(document.createElement(b.currentItem[0].nodeName)).addClass(e||b.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];if(!e)f.style.visibility="hidden";return f},update:function(f,g){if(!(e&&!c.forcePlaceholderSize)){g.height()||g.height(b.currentItem.innerHeight()-parseInt(b.currentItem.css("paddingTop")||0,10)-parseInt(b.currentItem.css("paddingBottom")||0,10));g.width()||g.width(b.currentItem.innerWidth()-parseInt(b.currentItem.css("paddingLeft")||0,10)-parseInt(b.currentItem.css("paddingRight")||
|
||||||
|
0,10))}}}}b.placeholder=d(c.placeholder.element.call(b.element,b.currentItem));b.currentItem.after(b.placeholder);c.placeholder.update(b,b.placeholder)},_contactContainers:function(a){for(var b=null,c=null,e=this.containers.length-1;e>=0;e--)if(!d.ui.contains(this.currentItem[0],this.containers[e].element[0]))if(this._intersectsWith(this.containers[e].containerCache)){if(!(b&&d.ui.contains(this.containers[e].element[0],b.element[0]))){b=this.containers[e];c=e}}else if(this.containers[e].containerCache.over){this.containers[e]._trigger("out",
|
||||||
|
a,this._uiHash(this));this.containers[e].containerCache.over=0}if(b)if(this.containers.length===1){this.containers[c]._trigger("over",a,this._uiHash(this));this.containers[c].containerCache.over=1}else if(this.currentContainer!=this.containers[c]){b=1E4;e=null;for(var f=this.positionAbs[this.containers[c].floating?"left":"top"],g=this.items.length-1;g>=0;g--)if(d.ui.contains(this.containers[c].element[0],this.items[g].item[0])){var h=this.items[g][this.containers[c].floating?"left":"top"];if(Math.abs(h-
|
||||||
|
f)<b){b=Math.abs(h-f);e=this.items[g]}}if(e||this.options.dropOnEmpty){this.currentContainer=this.containers[c];e?this._rearrange(a,e,null,true):this._rearrange(a,null,this.containers[c].element,true);this._trigger("change",a,this._uiHash());this.containers[c]._trigger("change",a,this._uiHash(this));this.options.placeholder.update(this.currentContainer,this.placeholder);this.containers[c]._trigger("over",a,this._uiHash(this));this.containers[c].containerCache.over=1}}},_createHelper:function(a){var b=
|
||||||
|
this.options;a=d.isFunction(b.helper)?d(b.helper.apply(this.element[0],[a,this.currentItem])):b.helper=="clone"?this.currentItem.clone():this.currentItem;a.parents("body").length||d(b.appendTo!="parent"?b.appendTo:this.currentItem[0].parentNode)[0].appendChild(a[0]);if(a[0]==this.currentItem[0])this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")};if(a[0].style.width==
|
||||||
|
""||b.forceHelperSize)a.width(this.currentItem.width());if(a[0].style.height==""||b.forceHelperSize)a.height(this.currentItem.height());return a},_adjustOffsetFromHelper:function(a){if(typeof a=="string")a=a.split(" ");if(d.isArray(a))a={left:+a[0],top:+a[1]||0};if("left"in a)this.offset.click.left=a.left+this.margins.left;if("right"in a)this.offset.click.left=this.helperProportions.width-a.right+this.margins.left;if("top"in a)this.offset.click.top=a.top+this.margins.top;if("bottom"in a)this.offset.click.top=
|
||||||
|
this.helperProportions.height-a.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var a=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&d.ui.contains(this.scrollParent[0],this.offsetParent[0])){a.left+=this.scrollParent.scrollLeft();a.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&d.browser.msie)a=
|
||||||
|
{top:0,left:0};return{top:a.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:a.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var a=this.currentItem.position();return{top:a.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:a.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),
|
||||||
|
10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var a=this.options;if(a.containment=="parent")a.containment=this.helper[0].parentNode;if(a.containment=="document"||a.containment=="window")this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,d(a.containment=="document"?
|
||||||
|
document:window).width()-this.helperProportions.width-this.margins.left,(d(a.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(a.containment)){var b=d(a.containment)[0];a=d(a.containment).offset();var c=d(b).css("overflow")!="hidden";this.containment=[a.left+(parseInt(d(b).css("borderLeftWidth"),10)||0)+(parseInt(d(b).css("paddingLeft"),10)||0)-this.margins.left,a.top+(parseInt(d(b).css("borderTopWidth"),
|
||||||
|
10)||0)+(parseInt(d(b).css("paddingTop"),10)||0)-this.margins.top,a.left+(c?Math.max(b.scrollWidth,b.offsetWidth):b.offsetWidth)-(parseInt(d(b).css("borderLeftWidth"),10)||0)-(parseInt(d(b).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,a.top+(c?Math.max(b.scrollHeight,b.offsetHeight):b.offsetHeight)-(parseInt(d(b).css("borderTopWidth"),10)||0)-(parseInt(d(b).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(a,b){if(!b)b=
|
||||||
|
this.position;a=a=="absolute"?1:-1;var c=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&d.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,e=/(html|body)/i.test(c[0].tagName);return{top:b.top+this.offset.relative.top*a+this.offset.parent.top*a-(d.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():e?0:c.scrollTop())*a),left:b.left+this.offset.relative.left*a+this.offset.parent.left*a-(d.browser.safari&&
|
||||||
|
this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():e?0:c.scrollLeft())*a)}},_generatePosition:function(a){var b=this.options,c=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&d.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,e=/(html|body)/i.test(c[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0]))this.offset.relative=this._getRelativeOffset();
|
||||||
|
var f=a.pageX,g=a.pageY;if(this.originalPosition){if(this.containment){if(a.pageX-this.offset.click.left<this.containment[0])f=this.containment[0]+this.offset.click.left;if(a.pageY-this.offset.click.top<this.containment[1])g=this.containment[1]+this.offset.click.top;if(a.pageX-this.offset.click.left>this.containment[2])f=this.containment[2]+this.offset.click.left;if(a.pageY-this.offset.click.top>this.containment[3])g=this.containment[3]+this.offset.click.top}if(b.grid){g=this.originalPageY+Math.round((g-
|
||||||
|
this.originalPageY)/b.grid[1])*b.grid[1];g=this.containment?!(g-this.offset.click.top<this.containment[1]||g-this.offset.click.top>this.containment[3])?g:!(g-this.offset.click.top<this.containment[1])?g-b.grid[1]:g+b.grid[1]:g;f=this.originalPageX+Math.round((f-this.originalPageX)/b.grid[0])*b.grid[0];f=this.containment?!(f-this.offset.click.left<this.containment[0]||f-this.offset.click.left>this.containment[2])?f:!(f-this.offset.click.left<this.containment[0])?f-b.grid[0]:f+b.grid[0]:f}}return{top:g-
|
||||||
|
this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(d.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():e?0:c.scrollTop()),left:f-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(d.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():e?0:c.scrollLeft())}},_rearrange:function(a,b,c,e){c?c[0].appendChild(this.placeholder[0]):b.item[0].parentNode.insertBefore(this.placeholder[0],
|
||||||
|
this.direction=="down"?b.item[0]:b.item[0].nextSibling);this.counter=this.counter?++this.counter:1;var f=this,g=this.counter;window.setTimeout(function(){g==f.counter&&f.refreshPositions(!e)},0)},_clear:function(a,b){this.reverting=false;var c=[];!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem);this._noFinalSort=null;if(this.helper[0]==this.currentItem[0]){for(var e in this._storedCSS)if(this._storedCSS[e]=="auto"||this._storedCSS[e]=="static")this._storedCSS[e]=
|
||||||
|
"";this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();this.fromOutside&&!b&&c.push(function(f){this._trigger("receive",f,this._uiHash(this.fromOutside))});if((this.fromOutside||this.domPosition.prev!=this.currentItem.prev().not(".ui-sortable-helper")[0]||this.domPosition.parent!=this.currentItem.parent()[0])&&!b)c.push(function(f){this._trigger("update",f,this._uiHash())});if(!d.ui.contains(this.element[0],this.currentItem[0])){b||c.push(function(f){this._trigger("remove",
|
||||||
|
f,this._uiHash())});for(e=this.containers.length-1;e>=0;e--)if(d.ui.contains(this.containers[e].element[0],this.currentItem[0])&&!b){c.push(function(f){return function(g){f._trigger("receive",g,this._uiHash(this))}}.call(this,this.containers[e]));c.push(function(f){return function(g){f._trigger("update",g,this._uiHash(this))}}.call(this,this.containers[e]))}}for(e=this.containers.length-1;e>=0;e--){b||c.push(function(f){return function(g){f._trigger("deactivate",g,this._uiHash(this))}}.call(this,
|
||||||
|
this.containers[e]));if(this.containers[e].containerCache.over){c.push(function(f){return function(g){f._trigger("out",g,this._uiHash(this))}}.call(this,this.containers[e]));this.containers[e].containerCache.over=0}}this._storedCursor&&d("body").css("cursor",this._storedCursor);this._storedOpacity&&this.helper.css("opacity",this._storedOpacity);if(this._storedZIndex)this.helper.css("zIndex",this._storedZIndex=="auto"?"":this._storedZIndex);this.dragging=false;if(this.cancelHelperRemoval){if(!b){this._trigger("beforeStop",
|
||||||
|
a,this._uiHash());for(e=0;e<c.length;e++)c[e].call(this,a);this._trigger("stop",a,this._uiHash())}return false}b||this._trigger("beforeStop",a,this._uiHash());this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.helper[0]!=this.currentItem[0]&&this.helper.remove();this.helper=null;if(!b){for(e=0;e<c.length;e++)c[e].call(this,a);this._trigger("stop",a,this._uiHash())}this.fromOutside=false;return true},_trigger:function(){d.Widget.prototype._trigger.apply(this,arguments)===false&&this.cancel()},
|
||||||
|
_uiHash:function(a){var b=a||this;return{helper:b.helper,placeholder:b.placeholder||d([]),position:b.position,originalPosition:b.originalPosition,offset:b.positionAbs,item:b.currentItem,sender:a?a.element:null}}});d.extend(d.ui.sortable,{version:"1.8.16"})})(jQuery);
|
||||||
|
;/*
|
||||||
|
* jQuery UI Accordion 1.8.16
|
||||||
|
*
|
||||||
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
||||||
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||||
|
* http://jquery.org/license
|
||||||
|
*
|
||||||
|
* http://docs.jquery.com/UI/Accordion
|
||||||
|
*
|
||||||
|
* Depends:
|
||||||
|
* jquery.ui.core.js
|
||||||
|
* jquery.ui.widget.js
|
||||||
|
*/
|
||||||
|
(function(c){c.widget("ui.accordion",{options:{active:0,animated:"slide",autoHeight:true,clearStyle:false,collapsible:false,event:"click",fillSpace:false,header:"> li > :first-child,> :not(li):even",icons:{header:"ui-icon-triangle-1-e",headerSelected:"ui-icon-triangle-1-s"},navigation:false,navigationFilter:function(){return this.href.toLowerCase()===location.href.toLowerCase()}},_create:function(){var a=this,b=a.options;a.running=0;a.element.addClass("ui-accordion ui-widget ui-helper-reset").children("li").addClass("ui-accordion-li-fix");
|
||||||
|
a.headers=a.element.find(b.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){b.disabled||c(this).addClass("ui-state-hover")}).bind("mouseleave.accordion",function(){b.disabled||c(this).removeClass("ui-state-hover")}).bind("focus.accordion",function(){b.disabled||c(this).addClass("ui-state-focus")}).bind("blur.accordion",function(){b.disabled||c(this).removeClass("ui-state-focus")});a.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");
|
||||||
|
if(b.navigation){var d=a.element.find("a").filter(b.navigationFilter).eq(0);if(d.length){var h=d.closest(".ui-accordion-header");a.active=h.length?h:d.closest(".ui-accordion-content").prev()}}a.active=a._findActive(a.active||b.active).addClass("ui-state-default ui-state-active").toggleClass("ui-corner-all").toggleClass("ui-corner-top");a.active.next().addClass("ui-accordion-content-active");a._createIcons();a.resize();a.element.attr("role","tablist");a.headers.attr("role","tab").bind("keydown.accordion",
|
||||||
|
function(f){return a._keydown(f)}).next().attr("role","tabpanel");a.headers.not(a.active||"").attr({"aria-expanded":"false","aria-selected":"false",tabIndex:-1}).next().hide();a.active.length?a.active.attr({"aria-expanded":"true","aria-selected":"true",tabIndex:0}):a.headers.eq(0).attr("tabIndex",0);c.browser.safari||a.headers.find("a").attr("tabIndex",-1);b.event&&a.headers.bind(b.event.split(" ").join(".accordion ")+".accordion",function(f){a._clickHandler.call(a,f,this);f.preventDefault()})},_createIcons:function(){var a=
|
||||||
|
this.options;if(a.icons){c("<span></span>").addClass("ui-icon "+a.icons.header).prependTo(this.headers);this.active.children(".ui-icon").toggleClass(a.icons.header).toggleClass(a.icons.headerSelected);this.element.addClass("ui-accordion-icons")}},_destroyIcons:function(){this.headers.children(".ui-icon").remove();this.element.removeClass("ui-accordion-icons")},destroy:function(){var a=this.options;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role");this.headers.unbind(".accordion").removeClass("ui-accordion-header ui-accordion-disabled ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-selected").removeAttr("tabIndex");
|
||||||
|
this.headers.find("a").removeAttr("tabIndex");this._destroyIcons();var b=this.headers.next().css("display","").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-accordion-disabled ui-state-disabled");if(a.autoHeight||a.fillHeight)b.css("height","");return c.Widget.prototype.destroy.call(this)},_setOption:function(a,b){c.Widget.prototype._setOption.apply(this,arguments);a=="active"&&this.activate(b);if(a=="icons"){this._destroyIcons();
|
||||||
|
b&&this._createIcons()}if(a=="disabled")this.headers.add(this.headers.next())[b?"addClass":"removeClass"]("ui-accordion-disabled ui-state-disabled")},_keydown:function(a){if(!(this.options.disabled||a.altKey||a.ctrlKey)){var b=c.ui.keyCode,d=this.headers.length,h=this.headers.index(a.target),f=false;switch(a.keyCode){case b.RIGHT:case b.DOWN:f=this.headers[(h+1)%d];break;case b.LEFT:case b.UP:f=this.headers[(h-1+d)%d];break;case b.SPACE:case b.ENTER:this._clickHandler({target:a.target},a.target);
|
||||||
|
a.preventDefault()}if(f){c(a.target).attr("tabIndex",-1);c(f).attr("tabIndex",0);f.focus();return false}return true}},resize:function(){var a=this.options,b;if(a.fillSpace){if(c.browser.msie){var d=this.element.parent().css("overflow");this.element.parent().css("overflow","hidden")}b=this.element.parent().height();c.browser.msie&&this.element.parent().css("overflow",d);this.headers.each(function(){b-=c(this).outerHeight(true)});this.headers.next().each(function(){c(this).height(Math.max(0,b-c(this).innerHeight()+
|
||||||
|
c(this).height()))}).css("overflow","auto")}else if(a.autoHeight){b=0;this.headers.next().each(function(){b=Math.max(b,c(this).height("").height())}).height(b)}return this},activate:function(a){this.options.active=a;a=this._findActive(a)[0];this._clickHandler({target:a},a);return this},_findActive:function(a){return a?typeof a==="number"?this.headers.filter(":eq("+a+")"):this.headers.not(this.headers.not(a)):a===false?c([]):this.headers.filter(":eq(0)")},_clickHandler:function(a,b){var d=this.options;
|
||||||
|
if(!d.disabled)if(a.target){a=c(a.currentTarget||b);b=a[0]===this.active[0];d.active=d.collapsible&&b?false:this.headers.index(a);if(!(this.running||!d.collapsible&&b)){var h=this.active;j=a.next();g=this.active.next();e={options:d,newHeader:b&&d.collapsible?c([]):a,oldHeader:this.active,newContent:b&&d.collapsible?c([]):j,oldContent:g};var f=this.headers.index(this.active[0])>this.headers.index(a[0]);this.active=b?c([]):a;this._toggle(j,g,e,b,f);h.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(d.icons.headerSelected).addClass(d.icons.header);
|
||||||
|
if(!b){a.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").children(".ui-icon").removeClass(d.icons.header).addClass(d.icons.headerSelected);a.next().addClass("ui-accordion-content-active")}}}else if(d.collapsible){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(d.icons.headerSelected).addClass(d.icons.header);this.active.next().addClass("ui-accordion-content-active");var g=this.active.next(),
|
||||||
|
e={options:d,newHeader:c([]),oldHeader:d.active,newContent:c([]),oldContent:g},j=this.active=c([]);this._toggle(j,g,e)}},_toggle:function(a,b,d,h,f){var g=this,e=g.options;g.toShow=a;g.toHide=b;g.data=d;var j=function(){if(g)return g._completed.apply(g,arguments)};g._trigger("changestart",null,g.data);g.running=b.size()===0?a.size():b.size();if(e.animated){d={};d=e.collapsible&&h?{toShow:c([]),toHide:b,complete:j,down:f,autoHeight:e.autoHeight||e.fillSpace}:{toShow:a,toHide:b,complete:j,down:f,autoHeight:e.autoHeight||
|
||||||
|
e.fillSpace};if(!e.proxied)e.proxied=e.animated;if(!e.proxiedDuration)e.proxiedDuration=e.duration;e.animated=c.isFunction(e.proxied)?e.proxied(d):e.proxied;e.duration=c.isFunction(e.proxiedDuration)?e.proxiedDuration(d):e.proxiedDuration;h=c.ui.accordion.animations;var i=e.duration,k=e.animated;if(k&&!h[k]&&!c.easing[k])k="slide";h[k]||(h[k]=function(l){this.slide(l,{easing:k,duration:i||700})});h[k](d)}else{if(e.collapsible&&h)a.toggle();else{b.hide();a.show()}j(true)}b.prev().attr({"aria-expanded":"false",
|
||||||
|
"aria-selected":"false",tabIndex:-1}).blur();a.prev().attr({"aria-expanded":"true","aria-selected":"true",tabIndex:0}).focus()},_completed:function(a){this.running=a?0:--this.running;if(!this.running){this.options.clearStyle&&this.toShow.add(this.toHide).css({height:"",overflow:""});this.toHide.removeClass("ui-accordion-content-active");if(this.toHide.length)this.toHide.parent()[0].className=this.toHide.parent()[0].className;this._trigger("change",null,this.data)}}});c.extend(c.ui.accordion,{version:"1.8.16",
|
||||||
|
animations:{slide:function(a,b){a=c.extend({easing:"swing",duration:300},a,b);if(a.toHide.size())if(a.toShow.size()){var d=a.toShow.css("overflow"),h=0,f={},g={},e;b=a.toShow;e=b[0].style.width;b.width(parseInt(b.parent().width(),10)-parseInt(b.css("paddingLeft"),10)-parseInt(b.css("paddingRight"),10)-(parseInt(b.css("borderLeftWidth"),10)||0)-(parseInt(b.css("borderRightWidth"),10)||0));c.each(["height","paddingTop","paddingBottom"],function(j,i){g[i]="hide";j=(""+c.css(a.toShow[0],i)).match(/^([\d+-.]+)(.*)$/);
|
||||||
|
f[i]={value:j[1],unit:j[2]||"px"}});a.toShow.css({height:0,overflow:"hidden"}).show();a.toHide.filter(":hidden").each(a.complete).end().filter(":visible").animate(g,{step:function(j,i){if(i.prop=="height")h=i.end-i.start===0?0:(i.now-i.start)/(i.end-i.start);a.toShow[0].style[i.prop]=h*f[i.prop].value+f[i.prop].unit},duration:a.duration,easing:a.easing,complete:function(){a.autoHeight||a.toShow.css("height","");a.toShow.css({width:e,overflow:d});a.complete()}})}else a.toHide.animate({height:"hide",
|
||||||
|
paddingTop:"hide",paddingBottom:"hide"},a);else a.toShow.animate({height:"show",paddingTop:"show",paddingBottom:"show"},a)},bounceslide:function(a){this.slide(a,{easing:a.down?"easeOutBounce":"swing",duration:a.down?1E3:200})}}})})(jQuery);
|
||||||
|
;/*
|
||||||
|
* jQuery UI Autocomplete 1.8.16
|
||||||
|
*
|
||||||
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
||||||
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||||
|
* http://jquery.org/license
|
||||||
|
*
|
||||||
|
* http://docs.jquery.com/UI/Autocomplete
|
||||||
|
*
|
||||||
|
* Depends:
|
||||||
|
* jquery.ui.core.js
|
||||||
|
* jquery.ui.widget.js
|
||||||
|
* jquery.ui.position.js
|
||||||
|
*/
|
||||||
|
(function(d){var e=0;d.widget("ui.autocomplete",{options:{appendTo:"body",autoFocus:false,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null},pending:0,_create:function(){var a=this,b=this.element[0].ownerDocument,g;this.element.addClass("ui-autocomplete-input").attr("autocomplete","off").attr({role:"textbox","aria-autocomplete":"list","aria-haspopup":"true"}).bind("keydown.autocomplete",function(c){if(!(a.options.disabled||a.element.propAttr("readOnly"))){g=
|
||||||
|
false;var f=d.ui.keyCode;switch(c.keyCode){case f.PAGE_UP:a._move("previousPage",c);break;case f.PAGE_DOWN:a._move("nextPage",c);break;case f.UP:a._move("previous",c);c.preventDefault();break;case f.DOWN:a._move("next",c);c.preventDefault();break;case f.ENTER:case f.NUMPAD_ENTER:if(a.menu.active){g=true;c.preventDefault()}case f.TAB:if(!a.menu.active)return;a.menu.select(c);break;case f.ESCAPE:a.element.val(a.term);a.close(c);break;default:clearTimeout(a.searching);a.searching=setTimeout(function(){if(a.term!=
|
||||||
|
a.element.val()){a.selectedItem=null;a.search(null,c)}},a.options.delay);break}}}).bind("keypress.autocomplete",function(c){if(g){g=false;c.preventDefault()}}).bind("focus.autocomplete",function(){if(!a.options.disabled){a.selectedItem=null;a.previous=a.element.val()}}).bind("blur.autocomplete",function(c){if(!a.options.disabled){clearTimeout(a.searching);a.closing=setTimeout(function(){a.close(c);a._change(c)},150)}});this._initSource();this.response=function(){return a._response.apply(a,arguments)};
|
||||||
|
this.menu=d("<ul></ul>").addClass("ui-autocomplete").appendTo(d(this.options.appendTo||"body",b)[0]).mousedown(function(c){var f=a.menu.element[0];d(c.target).closest(".ui-menu-item").length||setTimeout(function(){d(document).one("mousedown",function(h){h.target!==a.element[0]&&h.target!==f&&!d.ui.contains(f,h.target)&&a.close()})},1);setTimeout(function(){clearTimeout(a.closing)},13)}).menu({focus:function(c,f){f=f.item.data("item.autocomplete");false!==a._trigger("focus",c,{item:f})&&/^key/.test(c.originalEvent.type)&&
|
||||||
|
a.element.val(f.value)},selected:function(c,f){var h=f.item.data("item.autocomplete"),i=a.previous;if(a.element[0]!==b.activeElement){a.element.focus();a.previous=i;setTimeout(function(){a.previous=i;a.selectedItem=h},1)}false!==a._trigger("select",c,{item:h})&&a.element.val(h.value);a.term=a.element.val();a.close(c);a.selectedItem=h},blur:function(){a.menu.element.is(":visible")&&a.element.val()!==a.term&&a.element.val(a.term)}}).zIndex(this.element.zIndex()+1).css({top:0,left:0}).hide().data("menu");
|
||||||
|
d.fn.bgiframe&&this.menu.element.bgiframe()},destroy:function(){this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete").removeAttr("role").removeAttr("aria-autocomplete").removeAttr("aria-haspopup");this.menu.element.remove();d.Widget.prototype.destroy.call(this)},_setOption:function(a,b){d.Widget.prototype._setOption.apply(this,arguments);a==="source"&&this._initSource();if(a==="appendTo")this.menu.element.appendTo(d(b||"body",this.element[0].ownerDocument)[0]);a==="disabled"&&
|
||||||
|
b&&this.xhr&&this.xhr.abort()},_initSource:function(){var a=this,b,g;if(d.isArray(this.options.source)){b=this.options.source;this.source=function(c,f){f(d.ui.autocomplete.filter(b,c.term))}}else if(typeof this.options.source==="string"){g=this.options.source;this.source=function(c,f){a.xhr&&a.xhr.abort();a.xhr=d.ajax({url:g,data:c,dataType:"json",autocompleteRequest:++e,success:function(h){this.autocompleteRequest===e&&f(h)},error:function(){this.autocompleteRequest===e&&f([])}})}}else this.source=
|
||||||
|
this.options.source},search:function(a,b){a=a!=null?a:this.element.val();this.term=this.element.val();if(a.length<this.options.minLength)return this.close(b);clearTimeout(this.closing);if(this._trigger("search",b)!==false)return this._search(a)},_search:function(a){this.pending++;this.element.addClass("ui-autocomplete-loading");this.source({term:a},this.response)},_response:function(a){if(!this.options.disabled&&a&&a.length){a=this._normalize(a);this._suggest(a);this._trigger("open")}else this.close();
|
||||||
|
this.pending--;this.pending||this.element.removeClass("ui-autocomplete-loading")},close:function(a){clearTimeout(this.closing);if(this.menu.element.is(":visible")){this.menu.element.hide();this.menu.deactivate();this._trigger("close",a)}},_change:function(a){this.previous!==this.element.val()&&this._trigger("change",a,{item:this.selectedItem})},_normalize:function(a){if(a.length&&a[0].label&&a[0].value)return a;return d.map(a,function(b){if(typeof b==="string")return{label:b,value:b};return d.extend({label:b.label||
|
||||||
|
b.value,value:b.value||b.label},b)})},_suggest:function(a){var b=this.menu.element.empty().zIndex(this.element.zIndex()+1);this._renderMenu(b,a);this.menu.deactivate();this.menu.refresh();b.show();this._resizeMenu();b.position(d.extend({of:this.element},this.options.position));this.options.autoFocus&&this.menu.next(new d.Event("mouseover"))},_resizeMenu:function(){var a=this.menu.element;a.outerWidth(Math.max(a.width("").outerWidth(),this.element.outerWidth()))},_renderMenu:function(a,b){var g=this;
|
||||||
|
d.each(b,function(c,f){g._renderItem(a,f)})},_renderItem:function(a,b){return d("<li></li>").data("item.autocomplete",b).append(d("<a></a>").text(b.label)).appendTo(a)},_move:function(a,b){if(this.menu.element.is(":visible"))if(this.menu.first()&&/^previous/.test(a)||this.menu.last()&&/^next/.test(a)){this.element.val(this.term);this.menu.deactivate()}else this.menu[a](b);else this.search(null,b)},widget:function(){return this.menu.element}});d.extend(d.ui.autocomplete,{escapeRegex:function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,
|
||||||
|
"\\$&")},filter:function(a,b){var g=new RegExp(d.ui.autocomplete.escapeRegex(b),"i");return d.grep(a,function(c){return g.test(c.label||c.value||c)})}})})(jQuery);
|
||||||
|
(function(d){d.widget("ui.menu",{_create:function(){var e=this;this.element.addClass("ui-menu ui-widget ui-widget-content ui-corner-all").attr({role:"listbox","aria-activedescendant":"ui-active-menuitem"}).click(function(a){if(d(a.target).closest(".ui-menu-item a").length){a.preventDefault();e.select(a)}});this.refresh()},refresh:function(){var e=this;this.element.children("li:not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","menuitem").children("a").addClass("ui-corner-all").attr("tabindex",
|
||||||
|
-1).mouseenter(function(a){e.activate(a,d(this).parent())}).mouseleave(function(){e.deactivate()})},activate:function(e,a){this.deactivate();if(this.hasScroll()){var b=a.offset().top-this.element.offset().top,g=this.element.scrollTop(),c=this.element.height();if(b<0)this.element.scrollTop(g+b);else b>=c&&this.element.scrollTop(g+b-c+a.height())}this.active=a.eq(0).children("a").addClass("ui-state-hover").attr("id","ui-active-menuitem").end();this._trigger("focus",e,{item:a})},deactivate:function(){if(this.active){this.active.children("a").removeClass("ui-state-hover").removeAttr("id");
|
||||||
|
this._trigger("blur");this.active=null}},next:function(e){this.move("next",".ui-menu-item:first",e)},previous:function(e){this.move("prev",".ui-menu-item:last",e)},first:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},last:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},move:function(e,a,b){if(this.active){e=this.active[e+"All"](".ui-menu-item").eq(0);e.length?this.activate(b,e):this.activate(b,this.element.children(a))}else this.activate(b,
|
||||||
|
this.element.children(a))},nextPage:function(e){if(this.hasScroll())if(!this.active||this.last())this.activate(e,this.element.children(".ui-menu-item:first"));else{var a=this.active.offset().top,b=this.element.height(),g=this.element.children(".ui-menu-item").filter(function(){var c=d(this).offset().top-a-b+d(this).height();return c<10&&c>-10});g.length||(g=this.element.children(".ui-menu-item:last"));this.activate(e,g)}else this.activate(e,this.element.children(".ui-menu-item").filter(!this.active||
|
||||||
|
this.last()?":first":":last"))},previousPage:function(e){if(this.hasScroll())if(!this.active||this.first())this.activate(e,this.element.children(".ui-menu-item:last"));else{var a=this.active.offset().top,b=this.element.height();result=this.element.children(".ui-menu-item").filter(function(){var g=d(this).offset().top-a+b-d(this).height();return g<10&&g>-10});result.length||(result=this.element.children(".ui-menu-item:first"));this.activate(e,result)}else this.activate(e,this.element.children(".ui-menu-item").filter(!this.active||
|
||||||
|
this.first()?":last":":first"))},hasScroll:function(){return this.element.height()<this.element[d.fn.prop?"prop":"attr"]("scrollHeight")},select:function(e){this._trigger("selected",e,{item:this.active})}})})(jQuery);
|
||||||
|
;/*
|
||||||
|
* jQuery UI Button 1.8.16
|
||||||
|
*
|
||||||
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
||||||
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||||
|
* http://jquery.org/license
|
||||||
|
*
|
||||||
|
* http://docs.jquery.com/UI/Button
|
||||||
|
*
|
||||||
|
* Depends:
|
||||||
|
* jquery.ui.core.js
|
||||||
|
* jquery.ui.widget.js
|
||||||
|
*/
|
||||||
|
(function(b){var h,i,j,g,l=function(){var a=b(this).find(":ui-button");setTimeout(function(){a.button("refresh")},1)},k=function(a){var c=a.name,e=a.form,f=b([]);if(c)f=e?b(e).find("[name='"+c+"']"):b("[name='"+c+"']",a.ownerDocument).filter(function(){return!this.form});return f};b.widget("ui.button",{options:{disabled:null,text:true,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset.button").bind("reset.button",l);if(typeof this.options.disabled!==
|
||||||
|
"boolean")this.options.disabled=this.element.propAttr("disabled");this._determineButtonType();this.hasTitle=!!this.buttonElement.attr("title");var a=this,c=this.options,e=this.type==="checkbox"||this.type==="radio",f="ui-state-hover"+(!e?" ui-state-active":"");if(c.label===null)c.label=this.buttonElement.html();if(this.element.is(":disabled"))c.disabled=true;this.buttonElement.addClass("ui-button ui-widget ui-state-default ui-corner-all").attr("role","button").bind("mouseenter.button",function(){if(!c.disabled){b(this).addClass("ui-state-hover");
|
||||||
|
this===h&&b(this).addClass("ui-state-active")}}).bind("mouseleave.button",function(){c.disabled||b(this).removeClass(f)}).bind("click.button",function(d){if(c.disabled){d.preventDefault();d.stopImmediatePropagation()}});this.element.bind("focus.button",function(){a.buttonElement.addClass("ui-state-focus")}).bind("blur.button",function(){a.buttonElement.removeClass("ui-state-focus")});if(e){this.element.bind("change.button",function(){g||a.refresh()});this.buttonElement.bind("mousedown.button",function(d){if(!c.disabled){g=
|
||||||
|
false;i=d.pageX;j=d.pageY}}).bind("mouseup.button",function(d){if(!c.disabled)if(i!==d.pageX||j!==d.pageY)g=true})}if(this.type==="checkbox")this.buttonElement.bind("click.button",function(){if(c.disabled||g)return false;b(this).toggleClass("ui-state-active");a.buttonElement.attr("aria-pressed",a.element[0].checked)});else if(this.type==="radio")this.buttonElement.bind("click.button",function(){if(c.disabled||g)return false;b(this).addClass("ui-state-active");a.buttonElement.attr("aria-pressed","true");
|
||||||
|
var d=a.element[0];k(d).not(d).map(function(){return b(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-pressed","false")});else{this.buttonElement.bind("mousedown.button",function(){if(c.disabled)return false;b(this).addClass("ui-state-active");h=this;b(document).one("mouseup",function(){h=null})}).bind("mouseup.button",function(){if(c.disabled)return false;b(this).removeClass("ui-state-active")}).bind("keydown.button",function(d){if(c.disabled)return false;if(d.keyCode==b.ui.keyCode.SPACE||
|
||||||
|
d.keyCode==b.ui.keyCode.ENTER)b(this).addClass("ui-state-active")}).bind("keyup.button",function(){b(this).removeClass("ui-state-active")});this.buttonElement.is("a")&&this.buttonElement.keyup(function(d){d.keyCode===b.ui.keyCode.SPACE&&b(this).click()})}this._setOption("disabled",c.disabled);this._resetButton()},_determineButtonType:function(){this.type=this.element.is(":checkbox")?"checkbox":this.element.is(":radio")?"radio":this.element.is("input")?"input":"button";if(this.type==="checkbox"||this.type===
|
||||||
|
"radio"){var a=this.element.parents().filter(":last"),c="label[for='"+this.element.attr("id")+"']";this.buttonElement=a.find(c);if(!this.buttonElement.length){a=a.length?a.siblings():this.element.siblings();this.buttonElement=a.filter(c);if(!this.buttonElement.length)this.buttonElement=a.find(c)}this.element.addClass("ui-helper-hidden-accessible");(a=this.element.is(":checked"))&&this.buttonElement.addClass("ui-state-active");this.buttonElement.attr("aria-pressed",a)}else this.buttonElement=this.element},
|
||||||
|
widget:function(){return this.buttonElement},destroy:function(){this.element.removeClass("ui-helper-hidden-accessible");this.buttonElement.removeClass("ui-button ui-widget ui-state-default ui-corner-all ui-state-hover ui-state-active ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only").removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html());this.hasTitle||this.buttonElement.removeAttr("title");
|
||||||
|
b.Widget.prototype.destroy.call(this)},_setOption:function(a,c){b.Widget.prototype._setOption.apply(this,arguments);if(a==="disabled")c?this.element.propAttr("disabled",true):this.element.propAttr("disabled",false);else this._resetButton()},refresh:function(){var a=this.element.is(":disabled");a!==this.options.disabled&&this._setOption("disabled",a);if(this.type==="radio")k(this.element[0]).each(function(){b(this).is(":checked")?b(this).button("widget").addClass("ui-state-active").attr("aria-pressed",
|
||||||
|
"true"):b(this).button("widget").removeClass("ui-state-active").attr("aria-pressed","false")});else if(this.type==="checkbox")this.element.is(":checked")?this.buttonElement.addClass("ui-state-active").attr("aria-pressed","true"):this.buttonElement.removeClass("ui-state-active").attr("aria-pressed","false")},_resetButton:function(){if(this.type==="input")this.options.label&&this.element.val(this.options.label);else{var a=this.buttonElement.removeClass("ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only"),
|
||||||
|
c=b("<span></span>").addClass("ui-button-text").html(this.options.label).appendTo(a.empty()).text(),e=this.options.icons,f=e.primary&&e.secondary,d=[];if(e.primary||e.secondary){if(this.options.text)d.push("ui-button-text-icon"+(f?"s":e.primary?"-primary":"-secondary"));e.primary&&a.prepend("<span class='ui-button-icon-primary ui-icon "+e.primary+"'></span>");e.secondary&&a.append("<span class='ui-button-icon-secondary ui-icon "+e.secondary+"'></span>");if(!this.options.text){d.push(f?"ui-button-icons-only":
|
||||||
|
"ui-button-icon-only");this.hasTitle||a.attr("title",c)}}else d.push("ui-button-text-only");a.addClass(d.join(" "))}}});b.widget("ui.buttonset",{options:{items:":button, :submit, :reset, :checkbox, :radio, a, :data(button)"},_create:function(){this.element.addClass("ui-buttonset")},_init:function(){this.refresh()},_setOption:function(a,c){a==="disabled"&&this.buttons.button("option",a,c);b.Widget.prototype._setOption.apply(this,arguments)},refresh:function(){var a=this.element.css("direction")===
|
||||||
|
"ltr";this.buttons=this.element.find(this.options.items).filter(":ui-button").button("refresh").end().not(":ui-button").button().end().map(function(){return b(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass(a?"ui-corner-left":"ui-corner-right").end().filter(":last").addClass(a?"ui-corner-right":"ui-corner-left").end().end()},destroy:function(){this.element.removeClass("ui-buttonset");this.buttons.map(function(){return b(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy");
|
||||||
|
b.Widget.prototype.destroy.call(this)}})})(jQuery);
|
||||||
|
;/*
|
||||||
|
* jQuery UI Dialog 1.8.16
|
||||||
|
*
|
||||||
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
||||||
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||||
|
* http://jquery.org/license
|
||||||
|
*
|
||||||
|
* http://docs.jquery.com/UI/Dialog
|
||||||
|
*
|
||||||
|
* Depends:
|
||||||
|
* jquery.ui.core.js
|
||||||
|
* jquery.ui.widget.js
|
||||||
|
* jquery.ui.button.js
|
||||||
|
* jquery.ui.draggable.js
|
||||||
|
* jquery.ui.mouse.js
|
||||||
|
* jquery.ui.position.js
|
||||||
|
* jquery.ui.resizable.js
|
||||||
|
*/
|
||||||
|
(function(c,l){var m={buttons:true,height:true,maxHeight:true,maxWidth:true,minHeight:true,minWidth:true,width:true},n={maxHeight:true,maxWidth:true,minHeight:true,minWidth:true},o=c.attrFn||{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true,click:true};c.widget("ui.dialog",{options:{autoOpen:true,buttons:{},closeOnEscape:true,closeText:"close",dialogClass:"",draggable:true,hide:null,height:"auto",maxHeight:false,maxWidth:false,minHeight:150,minWidth:150,modal:false,
|
||||||
|
position:{my:"center",at:"center",collision:"fit",using:function(a){var b=c(this).css(a).offset().top;b<0&&c(this).css("top",a.top-b)}},resizable:true,show:null,stack:true,title:"",width:300,zIndex:1E3},_create:function(){this.originalTitle=this.element.attr("title");if(typeof this.originalTitle!=="string")this.originalTitle="";this.options.title=this.options.title||this.originalTitle;var a=this,b=a.options,d=b.title||" ",e=c.ui.dialog.getTitleId(a.element),g=(a.uiDialog=c("<div></div>")).appendTo(document.body).hide().addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+
|
||||||
|
b.dialogClass).css({zIndex:b.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(i){if(b.closeOnEscape&&!i.isDefaultPrevented()&&i.keyCode&&i.keyCode===c.ui.keyCode.ESCAPE){a.close(i);i.preventDefault()}}).attr({role:"dialog","aria-labelledby":e}).mousedown(function(i){a.moveToTop(false,i)});a.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(g);var f=(a.uiDialogTitlebar=c("<div></div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(g),
|
||||||
|
h=c('<a href="#"></a>').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){h.addClass("ui-state-hover")},function(){h.removeClass("ui-state-hover")}).focus(function(){h.addClass("ui-state-focus")}).blur(function(){h.removeClass("ui-state-focus")}).click(function(i){a.close(i);return false}).appendTo(f);(a.uiDialogTitlebarCloseText=c("<span></span>")).addClass("ui-icon ui-icon-closethick").text(b.closeText).appendTo(h);c("<span></span>").addClass("ui-dialog-title").attr("id",
|
||||||
|
e).html(d).prependTo(f);if(c.isFunction(b.beforeclose)&&!c.isFunction(b.beforeClose))b.beforeClose=b.beforeclose;f.find("*").add(f).disableSelection();b.draggable&&c.fn.draggable&&a._makeDraggable();b.resizable&&c.fn.resizable&&a._makeResizable();a._createButtons(b.buttons);a._isOpen=false;c.fn.bgiframe&&g.bgiframe()},_init:function(){this.options.autoOpen&&this.open()},destroy:function(){var a=this;a.overlay&&a.overlay.destroy();a.uiDialog.hide();a.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body");
|
||||||
|
a.uiDialog.remove();a.originalTitle&&a.element.attr("title",a.originalTitle);return a},widget:function(){return this.uiDialog},close:function(a){var b=this,d,e;if(false!==b._trigger("beforeClose",a)){b.overlay&&b.overlay.destroy();b.uiDialog.unbind("keypress.ui-dialog");b._isOpen=false;if(b.options.hide)b.uiDialog.hide(b.options.hide,function(){b._trigger("close",a)});else{b.uiDialog.hide();b._trigger("close",a)}c.ui.dialog.overlay.resize();if(b.options.modal){d=0;c(".ui-dialog").each(function(){if(this!==
|
||||||
|
b.uiDialog[0]){e=c(this).css("z-index");isNaN(e)||(d=Math.max(d,e))}});c.ui.dialog.maxZ=d}return b}},isOpen:function(){return this._isOpen},moveToTop:function(a,b){var d=this,e=d.options;if(e.modal&&!a||!e.stack&&!e.modal)return d._trigger("focus",b);if(e.zIndex>c.ui.dialog.maxZ)c.ui.dialog.maxZ=e.zIndex;if(d.overlay){c.ui.dialog.maxZ+=1;d.overlay.$el.css("z-index",c.ui.dialog.overlay.maxZ=c.ui.dialog.maxZ)}a={scrollTop:d.element.scrollTop(),scrollLeft:d.element.scrollLeft()};c.ui.dialog.maxZ+=1;
|
||||||
|
d.uiDialog.css("z-index",c.ui.dialog.maxZ);d.element.attr(a);d._trigger("focus",b);return d},open:function(){if(!this._isOpen){var a=this,b=a.options,d=a.uiDialog;a.overlay=b.modal?new c.ui.dialog.overlay(a):null;a._size();a._position(b.position);d.show(b.show);a.moveToTop(true);b.modal&&d.bind("keypress.ui-dialog",function(e){if(e.keyCode===c.ui.keyCode.TAB){var g=c(":tabbable",this),f=g.filter(":first");g=g.filter(":last");if(e.target===g[0]&&!e.shiftKey){f.focus(1);return false}else if(e.target===
|
||||||
|
f[0]&&e.shiftKey){g.focus(1);return false}}});c(a.element.find(":tabbable").get().concat(d.find(".ui-dialog-buttonpane :tabbable").get().concat(d.get()))).eq(0).focus();a._isOpen=true;a._trigger("open");return a}},_createButtons:function(a){var b=this,d=false,e=c("<div></div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),g=c("<div></div>").addClass("ui-dialog-buttonset").appendTo(e);b.uiDialog.find(".ui-dialog-buttonpane").remove();typeof a==="object"&&a!==null&&c.each(a,
|
||||||
|
function(){return!(d=true)});if(d){c.each(a,function(f,h){h=c.isFunction(h)?{click:h,text:f}:h;var i=c('<button type="button"></button>').click(function(){h.click.apply(b.element[0],arguments)}).appendTo(g);c.each(h,function(j,k){if(j!=="click")j in o?i[j](k):i.attr(j,k)});c.fn.button&&i.button()});e.appendTo(b.uiDialog)}},_makeDraggable:function(){function a(f){return{position:f.position,offset:f.offset}}var b=this,d=b.options,e=c(document),g;b.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",
|
||||||
|
handle:".ui-dialog-titlebar",containment:"document",start:function(f,h){g=d.height==="auto"?"auto":c(this).height();c(this).height(c(this).height()).addClass("ui-dialog-dragging");b._trigger("dragStart",f,a(h))},drag:function(f,h){b._trigger("drag",f,a(h))},stop:function(f,h){d.position=[h.position.left-e.scrollLeft(),h.position.top-e.scrollTop()];c(this).removeClass("ui-dialog-dragging").height(g);b._trigger("dragStop",f,a(h));c.ui.dialog.overlay.resize()}})},_makeResizable:function(a){function b(f){return{originalPosition:f.originalPosition,
|
||||||
|
originalSize:f.originalSize,position:f.position,size:f.size}}a=a===l?this.options.resizable:a;var d=this,e=d.options,g=d.uiDialog.css("position");a=typeof a==="string"?a:"n,e,s,w,se,sw,ne,nw";d.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:d.element,maxWidth:e.maxWidth,maxHeight:e.maxHeight,minWidth:e.minWidth,minHeight:d._minHeight(),handles:a,start:function(f,h){c(this).addClass("ui-dialog-resizing");d._trigger("resizeStart",f,b(h))},resize:function(f,h){d._trigger("resize",
|
||||||
|
f,b(h))},stop:function(f,h){c(this).removeClass("ui-dialog-resizing");e.height=c(this).height();e.width=c(this).width();d._trigger("resizeStop",f,b(h));c.ui.dialog.overlay.resize()}}).css("position",g).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_minHeight:function(){var a=this.options;return a.height==="auto"?a.minHeight:Math.min(a.minHeight,a.height)},_position:function(a){var b=[],d=[0,0],e;if(a){if(typeof a==="string"||typeof a==="object"&&"0"in a){b=a.split?a.split(" "):
|
||||||
|
[a[0],a[1]];if(b.length===1)b[1]=b[0];c.each(["left","top"],function(g,f){if(+b[g]===b[g]){d[g]=b[g];b[g]=f}});a={my:b.join(" "),at:b.join(" "),offset:d.join(" ")}}a=c.extend({},c.ui.dialog.prototype.options.position,a)}else a=c.ui.dialog.prototype.options.position;(e=this.uiDialog.is(":visible"))||this.uiDialog.show();this.uiDialog.css({top:0,left:0}).position(c.extend({of:window},a));e||this.uiDialog.hide()},_setOptions:function(a){var b=this,d={},e=false;c.each(a,function(g,f){b._setOption(g,f);
|
||||||
|
if(g in m)e=true;if(g in n)d[g]=f});e&&this._size();this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option",d)},_setOption:function(a,b){var d=this,e=d.uiDialog;switch(a){case "beforeclose":a="beforeClose";break;case "buttons":d._createButtons(b);break;case "closeText":d.uiDialogTitlebarCloseText.text(""+b);break;case "dialogClass":e.removeClass(d.options.dialogClass).addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+b);break;case "disabled":b?e.addClass("ui-dialog-disabled"):
|
||||||
|
e.removeClass("ui-dialog-disabled");break;case "draggable":var g=e.is(":data(draggable)");g&&!b&&e.draggable("destroy");!g&&b&&d._makeDraggable();break;case "position":d._position(b);break;case "resizable":(g=e.is(":data(resizable)"))&&!b&&e.resizable("destroy");g&&typeof b==="string"&&e.resizable("option","handles",b);!g&&b!==false&&d._makeResizable(b);break;case "title":c(".ui-dialog-title",d.uiDialogTitlebar).html(""+(b||" "));break}c.Widget.prototype._setOption.apply(d,arguments)},_size:function(){var a=
|
||||||
|
this.options,b,d,e=this.uiDialog.is(":visible");this.element.show().css({width:"auto",minHeight:0,height:0});if(a.minWidth>a.width)a.width=a.minWidth;b=this.uiDialog.css({height:"auto",width:a.width}).height();d=Math.max(0,a.minHeight-b);if(a.height==="auto")if(c.support.minHeight)this.element.css({minHeight:d,height:"auto"});else{this.uiDialog.show();a=this.element.css("height","auto").height();e||this.uiDialog.hide();this.element.height(Math.max(a,d))}else this.element.height(Math.max(a.height-
|
||||||
|
b,0));this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())}});c.extend(c.ui.dialog,{version:"1.8.16",uuid:0,maxZ:0,getTitleId:function(a){a=a.attr("id");if(!a){this.uuid+=1;a=this.uuid}return"ui-dialog-title-"+a},overlay:function(a){this.$el=c.ui.dialog.overlay.create(a)}});c.extend(c.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:c.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(a){return a+".dialog-overlay"}).join(" "),
|
||||||
|
create:function(a){if(this.instances.length===0){setTimeout(function(){c.ui.dialog.overlay.instances.length&&c(document).bind(c.ui.dialog.overlay.events,function(d){if(c(d.target).zIndex()<c.ui.dialog.overlay.maxZ)return false})},1);c(document).bind("keydown.dialog-overlay",function(d){if(a.options.closeOnEscape&&!d.isDefaultPrevented()&&d.keyCode&&d.keyCode===c.ui.keyCode.ESCAPE){a.close(d);d.preventDefault()}});c(window).bind("resize.dialog-overlay",c.ui.dialog.overlay.resize)}var b=(this.oldInstances.pop()||
|
||||||
|
c("<div></div>").addClass("ui-widget-overlay")).appendTo(document.body).css({width:this.width(),height:this.height()});c.fn.bgiframe&&b.bgiframe();this.instances.push(b);return b},destroy:function(a){var b=c.inArray(a,this.instances);b!=-1&&this.oldInstances.push(this.instances.splice(b,1)[0]);this.instances.length===0&&c([document,window]).unbind(".dialog-overlay");a.remove();var d=0;c.each(this.instances,function(){d=Math.max(d,this.css("z-index"))});this.maxZ=d},height:function(){var a,b;if(c.browser.msie&&
|
||||||
|
c.browser.version<7){a=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);b=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);return a<b?c(window).height()+"px":a+"px"}else return c(document).height()+"px"},width:function(){var a,b;if(c.browser.msie){a=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);b=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);return a<b?c(window).width()+"px":a+"px"}else return c(document).width()+
|
||||||
|
"px"},resize:function(){var a=c([]);c.each(c.ui.dialog.overlay.instances,function(){a=a.add(this)});a.css({width:0,height:0}).css({width:c.ui.dialog.overlay.width(),height:c.ui.dialog.overlay.height()})}});c.extend(c.ui.dialog.overlay.prototype,{destroy:function(){c.ui.dialog.overlay.destroy(this.$el)}})})(jQuery);
|
||||||
|
;/*
|
||||||
|
* jQuery UI Slider 1.8.16
|
||||||
|
*
|
||||||
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
||||||
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||||
|
* http://jquery.org/license
|
||||||
|
*
|
||||||
|
* http://docs.jquery.com/UI/Slider
|
||||||
|
*
|
||||||
|
* Depends:
|
||||||
|
* jquery.ui.core.js
|
||||||
|
* jquery.ui.mouse.js
|
||||||
|
* jquery.ui.widget.js
|
||||||
|
*/
|
||||||
|
(function(d){d.widget("ui.slider",d.ui.mouse,{widgetEventPrefix:"slide",options:{animate:false,distance:0,max:100,min:0,orientation:"horizontal",range:false,step:1,value:0,values:null},_create:function(){var a=this,b=this.options,c=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),f=b.values&&b.values.length||1,e=[];this._mouseSliding=this._keySliding=false;this._animateOff=true;this._handleIndex=null;this._detectOrientation();this._mouseInit();this.element.addClass("ui-slider ui-slider-"+
|
||||||
|
this.orientation+" ui-widget ui-widget-content ui-corner-all"+(b.disabled?" ui-slider-disabled ui-disabled":""));this.range=d([]);if(b.range){if(b.range===true){if(!b.values)b.values=[this._valueMin(),this._valueMin()];if(b.values.length&&b.values.length!==2)b.values=[b.values[0],b.values[0]]}this.range=d("<div></div>").appendTo(this.element).addClass("ui-slider-range ui-widget-header"+(b.range==="min"||b.range==="max"?" ui-slider-range-"+b.range:""))}for(var j=c.length;j<f;j+=1)e.push("<a class='ui-slider-handle ui-state-default ui-corner-all' href='#'></a>");
|
||||||
|
this.handles=c.add(d(e.join("")).appendTo(a.element));this.handle=this.handles.eq(0);this.handles.add(this.range).filter("a").click(function(g){g.preventDefault()}).hover(function(){b.disabled||d(this).addClass("ui-state-hover")},function(){d(this).removeClass("ui-state-hover")}).focus(function(){if(b.disabled)d(this).blur();else{d(".ui-slider .ui-state-focus").removeClass("ui-state-focus");d(this).addClass("ui-state-focus")}}).blur(function(){d(this).removeClass("ui-state-focus")});this.handles.each(function(g){d(this).data("index.ui-slider-handle",
|
||||||
|
g)});this.handles.keydown(function(g){var k=true,l=d(this).data("index.ui-slider-handle"),i,h,m;if(!a.options.disabled){switch(g.keyCode){case d.ui.keyCode.HOME:case d.ui.keyCode.END:case d.ui.keyCode.PAGE_UP:case d.ui.keyCode.PAGE_DOWN:case d.ui.keyCode.UP:case d.ui.keyCode.RIGHT:case d.ui.keyCode.DOWN:case d.ui.keyCode.LEFT:k=false;if(!a._keySliding){a._keySliding=true;d(this).addClass("ui-state-active");i=a._start(g,l);if(i===false)return}break}m=a.options.step;i=a.options.values&&a.options.values.length?
|
||||||
|
(h=a.values(l)):(h=a.value());switch(g.keyCode){case d.ui.keyCode.HOME:h=a._valueMin();break;case d.ui.keyCode.END:h=a._valueMax();break;case d.ui.keyCode.PAGE_UP:h=a._trimAlignValue(i+(a._valueMax()-a._valueMin())/5);break;case d.ui.keyCode.PAGE_DOWN:h=a._trimAlignValue(i-(a._valueMax()-a._valueMin())/5);break;case d.ui.keyCode.UP:case d.ui.keyCode.RIGHT:if(i===a._valueMax())return;h=a._trimAlignValue(i+m);break;case d.ui.keyCode.DOWN:case d.ui.keyCode.LEFT:if(i===a._valueMin())return;h=a._trimAlignValue(i-
|
||||||
|
m);break}a._slide(g,l,h);return k}}).keyup(function(g){var k=d(this).data("index.ui-slider-handle");if(a._keySliding){a._keySliding=false;a._stop(g,k);a._change(g,k);d(this).removeClass("ui-state-active")}});this._refreshValue();this._animateOff=false},destroy:function(){this.handles.remove();this.range.remove();this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all").removeData("slider").unbind(".slider");this._mouseDestroy();
|
||||||
|
return this},_mouseCapture:function(a){var b=this.options,c,f,e,j,g;if(b.disabled)return false;this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();c=this._normValueFromMouse({x:a.pageX,y:a.pageY});f=this._valueMax()-this._valueMin()+1;j=this;this.handles.each(function(k){var l=Math.abs(c-j.values(k));if(f>l){f=l;e=d(this);g=k}});if(b.range===true&&this.values(1)===b.min){g+=1;e=d(this.handles[g])}if(this._start(a,g)===false)return false;
|
||||||
|
this._mouseSliding=true;j._handleIndex=g;e.addClass("ui-state-active").focus();b=e.offset();this._clickOffset=!d(a.target).parents().andSelf().is(".ui-slider-handle")?{left:0,top:0}:{left:a.pageX-b.left-e.width()/2,top:a.pageY-b.top-e.height()/2-(parseInt(e.css("borderTopWidth"),10)||0)-(parseInt(e.css("borderBottomWidth"),10)||0)+(parseInt(e.css("marginTop"),10)||0)};this.handles.hasClass("ui-state-hover")||this._slide(a,g,c);return this._animateOff=true},_mouseStart:function(){return true},_mouseDrag:function(a){var b=
|
||||||
|
this._normValueFromMouse({x:a.pageX,y:a.pageY});this._slide(a,this._handleIndex,b);return false},_mouseStop:function(a){this.handles.removeClass("ui-state-active");this._mouseSliding=false;this._stop(a,this._handleIndex);this._change(a,this._handleIndex);this._clickOffset=this._handleIndex=null;return this._animateOff=false},_detectOrientation:function(){this.orientation=this.options.orientation==="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(a){var b;if(this.orientation==="horizontal"){b=
|
||||||
|
this.elementSize.width;a=a.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)}else{b=this.elementSize.height;a=a.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)}b=a/b;if(b>1)b=1;if(b<0)b=0;if(this.orientation==="vertical")b=1-b;a=this._valueMax()-this._valueMin();return this._trimAlignValue(this._valueMin()+b*a)},_start:function(a,b){var c={handle:this.handles[b],value:this.value()};if(this.options.values&&this.options.values.length){c.value=this.values(b);
|
||||||
|
c.values=this.values()}return this._trigger("start",a,c)},_slide:function(a,b,c){var f;if(this.options.values&&this.options.values.length){f=this.values(b?0:1);if(this.options.values.length===2&&this.options.range===true&&(b===0&&c>f||b===1&&c<f))c=f;if(c!==this.values(b)){f=this.values();f[b]=c;a=this._trigger("slide",a,{handle:this.handles[b],value:c,values:f});this.values(b?0:1);a!==false&&this.values(b,c,true)}}else if(c!==this.value()){a=this._trigger("slide",a,{handle:this.handles[b],value:c});
|
||||||
|
a!==false&&this.value(c)}},_stop:function(a,b){var c={handle:this.handles[b],value:this.value()};if(this.options.values&&this.options.values.length){c.value=this.values(b);c.values=this.values()}this._trigger("stop",a,c)},_change:function(a,b){if(!this._keySliding&&!this._mouseSliding){var c={handle:this.handles[b],value:this.value()};if(this.options.values&&this.options.values.length){c.value=this.values(b);c.values=this.values()}this._trigger("change",a,c)}},value:function(a){if(arguments.length){this.options.value=
|
||||||
|
this._trimAlignValue(a);this._refreshValue();this._change(null,0)}else return this._value()},values:function(a,b){var c,f,e;if(arguments.length>1){this.options.values[a]=this._trimAlignValue(b);this._refreshValue();this._change(null,a)}else if(arguments.length)if(d.isArray(arguments[0])){c=this.options.values;f=arguments[0];for(e=0;e<c.length;e+=1){c[e]=this._trimAlignValue(f[e]);this._change(null,e)}this._refreshValue()}else return this.options.values&&this.options.values.length?this._values(a):
|
||||||
|
this.value();else return this._values()},_setOption:function(a,b){var c,f=0;if(d.isArray(this.options.values))f=this.options.values.length;d.Widget.prototype._setOption.apply(this,arguments);switch(a){case "disabled":if(b){this.handles.filter(".ui-state-focus").blur();this.handles.removeClass("ui-state-hover");this.handles.propAttr("disabled",true);this.element.addClass("ui-disabled")}else{this.handles.propAttr("disabled",false);this.element.removeClass("ui-disabled")}break;case "orientation":this._detectOrientation();
|
||||||
|
this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation);this._refreshValue();break;case "value":this._animateOff=true;this._refreshValue();this._change(null,0);this._animateOff=false;break;case "values":this._animateOff=true;this._refreshValue();for(c=0;c<f;c+=1)this._change(null,c);this._animateOff=false;break}},_value:function(){var a=this.options.value;return a=this._trimAlignValue(a)},_values:function(a){var b,c;if(arguments.length){b=this.options.values[a];
|
||||||
|
return b=this._trimAlignValue(b)}else{b=this.options.values.slice();for(c=0;c<b.length;c+=1)b[c]=this._trimAlignValue(b[c]);return b}},_trimAlignValue:function(a){if(a<=this._valueMin())return this._valueMin();if(a>=this._valueMax())return this._valueMax();var b=this.options.step>0?this.options.step:1,c=(a-this._valueMin())%b;a=a-c;if(Math.abs(c)*2>=b)a+=c>0?b:-b;return parseFloat(a.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var a=
|
||||||
|
this.options.range,b=this.options,c=this,f=!this._animateOff?b.animate:false,e,j={},g,k,l,i;if(this.options.values&&this.options.values.length)this.handles.each(function(h){e=(c.values(h)-c._valueMin())/(c._valueMax()-c._valueMin())*100;j[c.orientation==="horizontal"?"left":"bottom"]=e+"%";d(this).stop(1,1)[f?"animate":"css"](j,b.animate);if(c.options.range===true)if(c.orientation==="horizontal"){if(h===0)c.range.stop(1,1)[f?"animate":"css"]({left:e+"%"},b.animate);if(h===1)c.range[f?"animate":"css"]({width:e-
|
||||||
|
g+"%"},{queue:false,duration:b.animate})}else{if(h===0)c.range.stop(1,1)[f?"animate":"css"]({bottom:e+"%"},b.animate);if(h===1)c.range[f?"animate":"css"]({height:e-g+"%"},{queue:false,duration:b.animate})}g=e});else{k=this.value();l=this._valueMin();i=this._valueMax();e=i!==l?(k-l)/(i-l)*100:0;j[c.orientation==="horizontal"?"left":"bottom"]=e+"%";this.handle.stop(1,1)[f?"animate":"css"](j,b.animate);if(a==="min"&&this.orientation==="horizontal")this.range.stop(1,1)[f?"animate":"css"]({width:e+"%"},
|
||||||
|
b.animate);if(a==="max"&&this.orientation==="horizontal")this.range[f?"animate":"css"]({width:100-e+"%"},{queue:false,duration:b.animate});if(a==="min"&&this.orientation==="vertical")this.range.stop(1,1)[f?"animate":"css"]({height:e+"%"},b.animate);if(a==="max"&&this.orientation==="vertical")this.range[f?"animate":"css"]({height:100-e+"%"},{queue:false,duration:b.animate})}}});d.extend(d.ui.slider,{version:"1.8.16"})})(jQuery);
|
||||||
|
;/*
|
||||||
|
* jQuery UI Tabs 1.8.16
|
||||||
|
*
|
||||||
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
||||||
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||||
|
* http://jquery.org/license
|
||||||
|
*
|
||||||
|
* http://docs.jquery.com/UI/Tabs
|
||||||
|
*
|
||||||
|
* Depends:
|
||||||
|
* jquery.ui.core.js
|
||||||
|
* jquery.ui.widget.js
|
||||||
|
*/
|
||||||
|
(function(d,p){function u(){return++v}function w(){return++x}var v=0,x=0;d.widget("ui.tabs",{options:{add:null,ajaxOptions:null,cache:false,cookie:null,collapsible:false,disable:null,disabled:[],enable:null,event:"click",fx:null,idPrefix:"ui-tabs-",load:null,panelTemplate:"<div></div>",remove:null,select:null,show:null,spinner:"<em>Loading…</em>",tabTemplate:"<li><a href='#{href}'><span>#{label}</span></a></li>"},_create:function(){this._tabify(true)},_setOption:function(b,e){if(b=="selected")this.options.collapsible&&
|
||||||
|
e==this.options.selected||this.select(e);else{this.options[b]=e;this._tabify()}},_tabId:function(b){return b.title&&b.title.replace(/\s/g,"_").replace(/[^\w\u00c0-\uFFFF-]/g,"")||this.options.idPrefix+u()},_sanitizeSelector:function(b){return b.replace(/:/g,"\\:")},_cookie:function(){var b=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+w());return d.cookie.apply(null,[b].concat(d.makeArray(arguments)))},_ui:function(b,e){return{tab:b,panel:e,index:this.anchors.index(b)}},_cleanup:function(){this.lis.filter(".ui-state-processing").removeClass("ui-state-processing").find("span:data(label.tabs)").each(function(){var b=
|
||||||
|
d(this);b.html(b.data("label.tabs")).removeData("label.tabs")})},_tabify:function(b){function e(g,f){g.css("display","");!d.support.opacity&&f.opacity&&g[0].style.removeAttribute("filter")}var a=this,c=this.options,h=/^#.+/;this.list=this.element.find("ol,ul").eq(0);this.lis=d(" > li:has(a[href])",this.list);this.anchors=this.lis.map(function(){return d("a",this)[0]});this.panels=d([]);this.anchors.each(function(g,f){var i=d(f).attr("href"),l=i.split("#")[0],q;if(l&&(l===location.toString().split("#")[0]||
|
||||||
|
(q=d("base")[0])&&l===q.href)){i=f.hash;f.href=i}if(h.test(i))a.panels=a.panels.add(a.element.find(a._sanitizeSelector(i)));else if(i&&i!=="#"){d.data(f,"href.tabs",i);d.data(f,"load.tabs",i.replace(/#.*$/,""));i=a._tabId(f);f.href="#"+i;f=a.element.find("#"+i);if(!f.length){f=d(c.panelTemplate).attr("id",i).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(a.panels[g-1]||a.list);f.data("destroy.tabs",true)}a.panels=a.panels.add(f)}else c.disabled.push(g)});if(b){this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all");
|
||||||
|
this.list.addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.lis.addClass("ui-state-default ui-corner-top");this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom");if(c.selected===p){location.hash&&this.anchors.each(function(g,f){if(f.hash==location.hash){c.selected=g;return false}});if(typeof c.selected!=="number"&&c.cookie)c.selected=parseInt(a._cookie(),10);if(typeof c.selected!=="number"&&this.lis.filter(".ui-tabs-selected").length)c.selected=
|
||||||
|
this.lis.index(this.lis.filter(".ui-tabs-selected"));c.selected=c.selected||(this.lis.length?0:-1)}else if(c.selected===null)c.selected=-1;c.selected=c.selected>=0&&this.anchors[c.selected]||c.selected<0?c.selected:0;c.disabled=d.unique(c.disabled.concat(d.map(this.lis.filter(".ui-state-disabled"),function(g){return a.lis.index(g)}))).sort();d.inArray(c.selected,c.disabled)!=-1&&c.disabled.splice(d.inArray(c.selected,c.disabled),1);this.panels.addClass("ui-tabs-hide");this.lis.removeClass("ui-tabs-selected ui-state-active");
|
||||||
|
if(c.selected>=0&&this.anchors.length){a.element.find(a._sanitizeSelector(a.anchors[c.selected].hash)).removeClass("ui-tabs-hide");this.lis.eq(c.selected).addClass("ui-tabs-selected ui-state-active");a.element.queue("tabs",function(){a._trigger("show",null,a._ui(a.anchors[c.selected],a.element.find(a._sanitizeSelector(a.anchors[c.selected].hash))[0]))});this.load(c.selected)}d(window).bind("unload",function(){a.lis.add(a.anchors).unbind(".tabs");a.lis=a.anchors=a.panels=null})}else c.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"));
|
||||||
|
this.element[c.collapsible?"addClass":"removeClass"]("ui-tabs-collapsible");c.cookie&&this._cookie(c.selected,c.cookie);b=0;for(var j;j=this.lis[b];b++)d(j)[d.inArray(b,c.disabled)!=-1&&!d(j).hasClass("ui-tabs-selected")?"addClass":"removeClass"]("ui-state-disabled");c.cache===false&&this.anchors.removeData("cache.tabs");this.lis.add(this.anchors).unbind(".tabs");if(c.event!=="mouseover"){var k=function(g,f){f.is(":not(.ui-state-disabled)")&&f.addClass("ui-state-"+g)},n=function(g,f){f.removeClass("ui-state-"+
|
||||||
|
g)};this.lis.bind("mouseover.tabs",function(){k("hover",d(this))});this.lis.bind("mouseout.tabs",function(){n("hover",d(this))});this.anchors.bind("focus.tabs",function(){k("focus",d(this).closest("li"))});this.anchors.bind("blur.tabs",function(){n("focus",d(this).closest("li"))})}var m,o;if(c.fx)if(d.isArray(c.fx)){m=c.fx[0];o=c.fx[1]}else m=o=c.fx;var r=o?function(g,f){d(g).closest("li").addClass("ui-tabs-selected ui-state-active");f.hide().removeClass("ui-tabs-hide").animate(o,o.duration||"normal",
|
||||||
|
function(){e(f,o);a._trigger("show",null,a._ui(g,f[0]))})}:function(g,f){d(g).closest("li").addClass("ui-tabs-selected ui-state-active");f.removeClass("ui-tabs-hide");a._trigger("show",null,a._ui(g,f[0]))},s=m?function(g,f){f.animate(m,m.duration||"normal",function(){a.lis.removeClass("ui-tabs-selected ui-state-active");f.addClass("ui-tabs-hide");e(f,m);a.element.dequeue("tabs")})}:function(g,f){a.lis.removeClass("ui-tabs-selected ui-state-active");f.addClass("ui-tabs-hide");a.element.dequeue("tabs")};
|
||||||
|
this.anchors.bind(c.event+".tabs",function(){var g=this,f=d(g).closest("li"),i=a.panels.filter(":not(.ui-tabs-hide)"),l=a.element.find(a._sanitizeSelector(g.hash));if(f.hasClass("ui-tabs-selected")&&!c.collapsible||f.hasClass("ui-state-disabled")||f.hasClass("ui-state-processing")||a.panels.filter(":animated").length||a._trigger("select",null,a._ui(this,l[0]))===false){this.blur();return false}c.selected=a.anchors.index(this);a.abort();if(c.collapsible)if(f.hasClass("ui-tabs-selected")){c.selected=
|
||||||
|
-1;c.cookie&&a._cookie(c.selected,c.cookie);a.element.queue("tabs",function(){s(g,i)}).dequeue("tabs");this.blur();return false}else if(!i.length){c.cookie&&a._cookie(c.selected,c.cookie);a.element.queue("tabs",function(){r(g,l)});a.load(a.anchors.index(this));this.blur();return false}c.cookie&&a._cookie(c.selected,c.cookie);if(l.length){i.length&&a.element.queue("tabs",function(){s(g,i)});a.element.queue("tabs",function(){r(g,l)});a.load(a.anchors.index(this))}else throw"jQuery UI Tabs: Mismatching fragment identifier.";
|
||||||
|
d.browser.msie&&this.blur()});this.anchors.bind("click.tabs",function(){return false})},_getIndex:function(b){if(typeof b=="string")b=this.anchors.index(this.anchors.filter("[href$="+b+"]"));return b},destroy:function(){var b=this.options;this.abort();this.element.unbind(".tabs").removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible").removeData("tabs");this.list.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.anchors.each(function(){var e=
|
||||||
|
d.data(this,"href.tabs");if(e)this.href=e;var a=d(this).unbind(".tabs");d.each(["href","load","cache"],function(c,h){a.removeData(h+".tabs")})});this.lis.unbind(".tabs").add(this.panels).each(function(){d.data(this,"destroy.tabs")?d(this).remove():d(this).removeClass("ui-state-default ui-corner-top ui-tabs-selected ui-state-active ui-state-hover ui-state-focus ui-state-disabled ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide")});b.cookie&&this._cookie(null,b.cookie);return this},add:function(b,
|
||||||
|
e,a){if(a===p)a=this.anchors.length;var c=this,h=this.options;e=d(h.tabTemplate.replace(/#\{href\}/g,b).replace(/#\{label\}/g,e));b=!b.indexOf("#")?b.replace("#",""):this._tabId(d("a",e)[0]);e.addClass("ui-state-default ui-corner-top").data("destroy.tabs",true);var j=c.element.find("#"+b);j.length||(j=d(h.panelTemplate).attr("id",b).data("destroy.tabs",true));j.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide");if(a>=this.lis.length){e.appendTo(this.list);j.appendTo(this.list[0].parentNode)}else{e.insertBefore(this.lis[a]);
|
||||||
|
j.insertBefore(this.panels[a])}h.disabled=d.map(h.disabled,function(k){return k>=a?++k:k});this._tabify();if(this.anchors.length==1){h.selected=0;e.addClass("ui-tabs-selected ui-state-active");j.removeClass("ui-tabs-hide");this.element.queue("tabs",function(){c._trigger("show",null,c._ui(c.anchors[0],c.panels[0]))});this.load(0)}this._trigger("add",null,this._ui(this.anchors[a],this.panels[a]));return this},remove:function(b){b=this._getIndex(b);var e=this.options,a=this.lis.eq(b).remove(),c=this.panels.eq(b).remove();
|
||||||
|
if(a.hasClass("ui-tabs-selected")&&this.anchors.length>1)this.select(b+(b+1<this.anchors.length?1:-1));e.disabled=d.map(d.grep(e.disabled,function(h){return h!=b}),function(h){return h>=b?--h:h});this._tabify();this._trigger("remove",null,this._ui(a.find("a")[0],c[0]));return this},enable:function(b){b=this._getIndex(b);var e=this.options;if(d.inArray(b,e.disabled)!=-1){this.lis.eq(b).removeClass("ui-state-disabled");e.disabled=d.grep(e.disabled,function(a){return a!=b});this._trigger("enable",null,
|
||||||
|
this._ui(this.anchors[b],this.panels[b]));return this}},disable:function(b){b=this._getIndex(b);var e=this.options;if(b!=e.selected){this.lis.eq(b).addClass("ui-state-disabled");e.disabled.push(b);e.disabled.sort();this._trigger("disable",null,this._ui(this.anchors[b],this.panels[b]))}return this},select:function(b){b=this._getIndex(b);if(b==-1)if(this.options.collapsible&&this.options.selected!=-1)b=this.options.selected;else return this;this.anchors.eq(b).trigger(this.options.event+".tabs");return this},
|
||||||
|
load:function(b){b=this._getIndex(b);var e=this,a=this.options,c=this.anchors.eq(b)[0],h=d.data(c,"load.tabs");this.abort();if(!h||this.element.queue("tabs").length!==0&&d.data(c,"cache.tabs"))this.element.dequeue("tabs");else{this.lis.eq(b).addClass("ui-state-processing");if(a.spinner){var j=d("span",c);j.data("label.tabs",j.html()).html(a.spinner)}this.xhr=d.ajax(d.extend({},a.ajaxOptions,{url:h,success:function(k,n){e.element.find(e._sanitizeSelector(c.hash)).html(k);e._cleanup();a.cache&&d.data(c,
|
||||||
|
"cache.tabs",true);e._trigger("load",null,e._ui(e.anchors[b],e.panels[b]));try{a.ajaxOptions.success(k,n)}catch(m){}},error:function(k,n){e._cleanup();e._trigger("load",null,e._ui(e.anchors[b],e.panels[b]));try{a.ajaxOptions.error(k,n,b,c)}catch(m){}}}));e.element.dequeue("tabs");return this}},abort:function(){this.element.queue([]);this.panels.stop(false,true);this.element.queue("tabs",this.element.queue("tabs").splice(-2,2));if(this.xhr){this.xhr.abort();delete this.xhr}this._cleanup();return this},
|
||||||
|
url:function(b,e){this.anchors.eq(b).removeData("cache.tabs").data("load.tabs",e);return this},length:function(){return this.anchors.length}});d.extend(d.ui.tabs,{version:"1.8.16"});d.extend(d.ui.tabs.prototype,{rotation:null,rotate:function(b,e){var a=this,c=this.options,h=a._rotate||(a._rotate=function(j){clearTimeout(a.rotation);a.rotation=setTimeout(function(){var k=c.selected;a.select(++k<a.anchors.length?k:0)},b);j&&j.stopPropagation()});e=a._unrotate||(a._unrotate=!e?function(j){j.clientX&&
|
||||||
|
a.rotate(null)}:function(){t=c.selected;h()});if(b){this.element.bind("tabsshow",h);this.anchors.bind(c.event+".tabs",e);h()}else{clearTimeout(a.rotation);this.element.unbind("tabsshow",h);this.anchors.unbind(c.event+".tabs",e);delete this._rotate;delete this._unrotate}return this}})})(jQuery);
|
||||||
|
;/*
|
||||||
|
* jQuery UI Datepicker 1.8.16
|
||||||
|
*
|
||||||
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
||||||
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||||
|
* http://jquery.org/license
|
||||||
|
*
|
||||||
|
* http://docs.jquery.com/UI/Datepicker
|
||||||
|
*
|
||||||
|
* Depends:
|
||||||
|
* jquery.ui.core.js
|
||||||
|
*/
|
||||||
|
(function(d,C){function M(){this.debug=false;this._curInst=null;this._keyEvent=false;this._disabledInputs=[];this._inDialog=this._datepickerShowing=false;this._mainDivId="ui-datepicker-div";this._inlineClass="ui-datepicker-inline";this._appendClass="ui-datepicker-append";this._triggerClass="ui-datepicker-trigger";this._dialogClass="ui-datepicker-dialog";this._disableClass="ui-datepicker-disabled";this._unselectableClass="ui-datepicker-unselectable";this._currentClass="ui-datepicker-current-day";this._dayOverClass=
|
||||||
|
"ui-datepicker-days-cell-over";this.regional=[];this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su",
|
||||||
|
"Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:false,showMonthAfterYear:false,yearSuffix:""};this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:false,hideIfNoPrevNext:false,navigationAsDateFormat:false,gotoCurrent:false,changeMonth:false,changeYear:false,yearRange:"c-10:c+10",showOtherMonths:false,selectOtherMonths:false,showWeek:false,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",
|
||||||
|
minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:true,showButtonPanel:false,autoSize:false,disabled:false};d.extend(this._defaults,this.regional[""]);this.dpDiv=N(d('<div id="'+this._mainDivId+'" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>'))}function N(a){return a.bind("mouseout",
|
||||||
|
function(b){b=d(b.target).closest("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a");b.length&&b.removeClass("ui-state-hover ui-datepicker-prev-hover ui-datepicker-next-hover")}).bind("mouseover",function(b){b=d(b.target).closest("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a");if(!(d.datepicker._isDisabledDatepicker(J.inline?a.parent()[0]:J.input[0])||!b.length)){b.parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");
|
||||||
|
b.addClass("ui-state-hover");b.hasClass("ui-datepicker-prev")&&b.addClass("ui-datepicker-prev-hover");b.hasClass("ui-datepicker-next")&&b.addClass("ui-datepicker-next-hover")}})}function H(a,b){d.extend(a,b);for(var c in b)if(b[c]==null||b[c]==C)a[c]=b[c];return a}d.extend(d.ui,{datepicker:{version:"1.8.16"}});var B=(new Date).getTime(),J;d.extend(M.prototype,{markerClassName:"hasDatepicker",maxRows:4,log:function(){this.debug&&console.log.apply("",arguments)},_widgetDatepicker:function(){return this.dpDiv},
|
||||||
|
setDefaults:function(a){H(this._defaults,a||{});return this},_attachDatepicker:function(a,b){var c=null;for(var e in this._defaults){var f=a.getAttribute("date:"+e);if(f){c=c||{};try{c[e]=eval(f)}catch(h){c[e]=f}}}e=a.nodeName.toLowerCase();f=e=="div"||e=="span";if(!a.id){this.uuid+=1;a.id="dp"+this.uuid}var i=this._newInst(d(a),f);i.settings=d.extend({},b||{},c||{});if(e=="input")this._connectDatepicker(a,i);else f&&this._inlineDatepicker(a,i)},_newInst:function(a,b){return{id:a[0].id.replace(/([^A-Za-z0-9_-])/g,
|
||||||
|
"\\\\$1"),input:a,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:b,dpDiv:!b?this.dpDiv:N(d('<div class="'+this._inlineClass+' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>'))}},_connectDatepicker:function(a,b){var c=d(a);b.append=d([]);b.trigger=d([]);if(!c.hasClass(this.markerClassName)){this._attachments(c,b);c.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker",
|
||||||
|
function(e,f,h){b.settings[f]=h}).bind("getData.datepicker",function(e,f){return this._get(b,f)});this._autoSize(b);d.data(a,"datepicker",b);b.settings.disabled&&this._disableDatepicker(a)}},_attachments:function(a,b){var c=this._get(b,"appendText"),e=this._get(b,"isRTL");b.append&&b.append.remove();if(c){b.append=d('<span class="'+this._appendClass+'">'+c+"</span>");a[e?"before":"after"](b.append)}a.unbind("focus",this._showDatepicker);b.trigger&&b.trigger.remove();c=this._get(b,"showOn");if(c==
|
||||||
|
"focus"||c=="both")a.focus(this._showDatepicker);if(c=="button"||c=="both"){c=this._get(b,"buttonText");var f=this._get(b,"buttonImage");b.trigger=d(this._get(b,"buttonImageOnly")?d("<img/>").addClass(this._triggerClass).attr({src:f,alt:c,title:c}):d('<button type="button"></button>').addClass(this._triggerClass).html(f==""?c:d("<img/>").attr({src:f,alt:c,title:c})));a[e?"before":"after"](b.trigger);b.trigger.click(function(){d.datepicker._datepickerShowing&&d.datepicker._lastInput==a[0]?d.datepicker._hideDatepicker():
|
||||||
|
d.datepicker._showDatepicker(a[0]);return false})}},_autoSize:function(a){if(this._get(a,"autoSize")&&!a.inline){var b=new Date(2009,11,20),c=this._get(a,"dateFormat");if(c.match(/[DM]/)){var e=function(f){for(var h=0,i=0,g=0;g<f.length;g++)if(f[g].length>h){h=f[g].length;i=g}return i};b.setMonth(e(this._get(a,c.match(/MM/)?"monthNames":"monthNamesShort")));b.setDate(e(this._get(a,c.match(/DD/)?"dayNames":"dayNamesShort"))+20-b.getDay())}a.input.attr("size",this._formatDate(a,b).length)}},_inlineDatepicker:function(a,
|
||||||
|
b){var c=d(a);if(!c.hasClass(this.markerClassName)){c.addClass(this.markerClassName).append(b.dpDiv).bind("setData.datepicker",function(e,f,h){b.settings[f]=h}).bind("getData.datepicker",function(e,f){return this._get(b,f)});d.data(a,"datepicker",b);this._setDate(b,this._getDefaultDate(b),true);this._updateDatepicker(b);this._updateAlternate(b);b.settings.disabled&&this._disableDatepicker(a);b.dpDiv.css("display","block")}},_dialogDatepicker:function(a,b,c,e,f){a=this._dialogInst;if(!a){this.uuid+=
|
||||||
|
1;this._dialogInput=d('<input type="text" id="'+("dp"+this.uuid)+'" style="position: absolute; top: -100px; width: 0px; z-index: -10;"/>');this._dialogInput.keydown(this._doKeyDown);d("body").append(this._dialogInput);a=this._dialogInst=this._newInst(this._dialogInput,false);a.settings={};d.data(this._dialogInput[0],"datepicker",a)}H(a.settings,e||{});b=b&&b.constructor==Date?this._formatDate(a,b):b;this._dialogInput.val(b);this._pos=f?f.length?f:[f.pageX,f.pageY]:null;if(!this._pos)this._pos=[document.documentElement.clientWidth/
|
||||||
|
2-100+(document.documentElement.scrollLeft||document.body.scrollLeft),document.documentElement.clientHeight/2-150+(document.documentElement.scrollTop||document.body.scrollTop)];this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px");a.settings.onSelect=c;this._inDialog=true;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);d.blockUI&&d.blockUI(this.dpDiv);d.data(this._dialogInput[0],"datepicker",a);return this},_destroyDatepicker:function(a){var b=
|
||||||
|
d(a),c=d.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();d.removeData(a,"datepicker");if(e=="input"){c.append.remove();c.trigger.remove();b.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)}else if(e=="div"||e=="span")b.removeClass(this.markerClassName).empty()}},_enableDatepicker:function(a){var b=d(a),c=d.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var e=
|
||||||
|
a.nodeName.toLowerCase();if(e=="input"){a.disabled=false;c.trigger.filter("button").each(function(){this.disabled=false}).end().filter("img").css({opacity:"1.0",cursor:""})}else if(e=="div"||e=="span"){b=b.children("."+this._inlineClass);b.children().removeClass("ui-state-disabled");b.find("select.ui-datepicker-month, select.ui-datepicker-year").removeAttr("disabled")}this._disabledInputs=d.map(this._disabledInputs,function(f){return f==a?null:f})}},_disableDatepicker:function(a){var b=d(a),c=d.data(a,
|
||||||
|
"datepicker");if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();if(e=="input"){a.disabled=true;c.trigger.filter("button").each(function(){this.disabled=true}).end().filter("img").css({opacity:"0.5",cursor:"default"})}else if(e=="div"||e=="span"){b=b.children("."+this._inlineClass);b.children().addClass("ui-state-disabled");b.find("select.ui-datepicker-month, select.ui-datepicker-year").attr("disabled","disabled")}this._disabledInputs=d.map(this._disabledInputs,function(f){return f==
|
||||||
|
a?null:f});this._disabledInputs[this._disabledInputs.length]=a}},_isDisabledDatepicker:function(a){if(!a)return false;for(var b=0;b<this._disabledInputs.length;b++)if(this._disabledInputs[b]==a)return true;return false},_getInst:function(a){try{return d.data(a,"datepicker")}catch(b){throw"Missing instance data for this datepicker";}},_optionDatepicker:function(a,b,c){var e=this._getInst(a);if(arguments.length==2&&typeof b=="string")return b=="defaults"?d.extend({},d.datepicker._defaults):e?b=="all"?
|
||||||
|
d.extend({},e.settings):this._get(e,b):null;var f=b||{};if(typeof b=="string"){f={};f[b]=c}if(e){this._curInst==e&&this._hideDatepicker();var h=this._getDateDatepicker(a,true),i=this._getMinMaxDate(e,"min"),g=this._getMinMaxDate(e,"max");H(e.settings,f);if(i!==null&&f.dateFormat!==C&&f.minDate===C)e.settings.minDate=this._formatDate(e,i);if(g!==null&&f.dateFormat!==C&&f.maxDate===C)e.settings.maxDate=this._formatDate(e,g);this._attachments(d(a),e);this._autoSize(e);this._setDate(e,h);this._updateAlternate(e);
|
||||||
|
this._updateDatepicker(e)}},_changeDatepicker:function(a,b,c){this._optionDatepicker(a,b,c)},_refreshDatepicker:function(a){(a=this._getInst(a))&&this._updateDatepicker(a)},_setDateDatepicker:function(a,b){if(a=this._getInst(a)){this._setDate(a,b);this._updateDatepicker(a);this._updateAlternate(a)}},_getDateDatepicker:function(a,b){(a=this._getInst(a))&&!a.inline&&this._setDateFromField(a,b);return a?this._getDate(a):null},_doKeyDown:function(a){var b=d.datepicker._getInst(a.target),c=true,e=b.dpDiv.is(".ui-datepicker-rtl");
|
||||||
|
b._keyEvent=true;if(d.datepicker._datepickerShowing)switch(a.keyCode){case 9:d.datepicker._hideDatepicker();c=false;break;case 13:c=d("td."+d.datepicker._dayOverClass+":not(."+d.datepicker._currentClass+")",b.dpDiv);c[0]&&d.datepicker._selectDay(a.target,b.selectedMonth,b.selectedYear,c[0]);if(a=d.datepicker._get(b,"onSelect")){c=d.datepicker._formatDate(b);a.apply(b.input?b.input[0]:null,[c,b])}else d.datepicker._hideDatepicker();return false;case 27:d.datepicker._hideDatepicker();break;case 33:d.datepicker._adjustDate(a.target,
|
||||||
|
a.ctrlKey?-d.datepicker._get(b,"stepBigMonths"):-d.datepicker._get(b,"stepMonths"),"M");break;case 34:d.datepicker._adjustDate(a.target,a.ctrlKey?+d.datepicker._get(b,"stepBigMonths"):+d.datepicker._get(b,"stepMonths"),"M");break;case 35:if(a.ctrlKey||a.metaKey)d.datepicker._clearDate(a.target);c=a.ctrlKey||a.metaKey;break;case 36:if(a.ctrlKey||a.metaKey)d.datepicker._gotoToday(a.target);c=a.ctrlKey||a.metaKey;break;case 37:if(a.ctrlKey||a.metaKey)d.datepicker._adjustDate(a.target,e?+1:-1,"D");c=
|
||||||
|
a.ctrlKey||a.metaKey;if(a.originalEvent.altKey)d.datepicker._adjustDate(a.target,a.ctrlKey?-d.datepicker._get(b,"stepBigMonths"):-d.datepicker._get(b,"stepMonths"),"M");break;case 38:if(a.ctrlKey||a.metaKey)d.datepicker._adjustDate(a.target,-7,"D");c=a.ctrlKey||a.metaKey;break;case 39:if(a.ctrlKey||a.metaKey)d.datepicker._adjustDate(a.target,e?-1:+1,"D");c=a.ctrlKey||a.metaKey;if(a.originalEvent.altKey)d.datepicker._adjustDate(a.target,a.ctrlKey?+d.datepicker._get(b,"stepBigMonths"):+d.datepicker._get(b,
|
||||||
|
"stepMonths"),"M");break;case 40:if(a.ctrlKey||a.metaKey)d.datepicker._adjustDate(a.target,+7,"D");c=a.ctrlKey||a.metaKey;break;default:c=false}else if(a.keyCode==36&&a.ctrlKey)d.datepicker._showDatepicker(this);else c=false;if(c){a.preventDefault();a.stopPropagation()}},_doKeyPress:function(a){var b=d.datepicker._getInst(a.target);if(d.datepicker._get(b,"constrainInput")){b=d.datepicker._possibleChars(d.datepicker._get(b,"dateFormat"));var c=String.fromCharCode(a.charCode==C?a.keyCode:a.charCode);
|
||||||
|
return a.ctrlKey||a.metaKey||c<" "||!b||b.indexOf(c)>-1}},_doKeyUp:function(a){a=d.datepicker._getInst(a.target);if(a.input.val()!=a.lastVal)try{if(d.datepicker.parseDate(d.datepicker._get(a,"dateFormat"),a.input?a.input.val():null,d.datepicker._getFormatConfig(a))){d.datepicker._setDateFromField(a);d.datepicker._updateAlternate(a);d.datepicker._updateDatepicker(a)}}catch(b){d.datepicker.log(b)}return true},_showDatepicker:function(a){a=a.target||a;if(a.nodeName.toLowerCase()!="input")a=d("input",
|
||||||
|
a.parentNode)[0];if(!(d.datepicker._isDisabledDatepicker(a)||d.datepicker._lastInput==a)){var b=d.datepicker._getInst(a);if(d.datepicker._curInst&&d.datepicker._curInst!=b){d.datepicker._datepickerShowing&&d.datepicker._triggerOnClose(d.datepicker._curInst);d.datepicker._curInst.dpDiv.stop(true,true)}var c=d.datepicker._get(b,"beforeShow");c=c?c.apply(a,[a,b]):{};if(c!==false){H(b.settings,c);b.lastVal=null;d.datepicker._lastInput=a;d.datepicker._setDateFromField(b);if(d.datepicker._inDialog)a.value=
|
||||||
|
"";if(!d.datepicker._pos){d.datepicker._pos=d.datepicker._findPos(a);d.datepicker._pos[1]+=a.offsetHeight}var e=false;d(a).parents().each(function(){e|=d(this).css("position")=="fixed";return!e});if(e&&d.browser.opera){d.datepicker._pos[0]-=document.documentElement.scrollLeft;d.datepicker._pos[1]-=document.documentElement.scrollTop}c={left:d.datepicker._pos[0],top:d.datepicker._pos[1]};d.datepicker._pos=null;b.dpDiv.empty();b.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});d.datepicker._updateDatepicker(b);
|
||||||
|
c=d.datepicker._checkOffset(b,c,e);b.dpDiv.css({position:d.datepicker._inDialog&&d.blockUI?"static":e?"fixed":"absolute",display:"none",left:c.left+"px",top:c.top+"px"});if(!b.inline){c=d.datepicker._get(b,"showAnim");var f=d.datepicker._get(b,"duration"),h=function(){var i=b.dpDiv.find("iframe.ui-datepicker-cover");if(i.length){var g=d.datepicker._getBorders(b.dpDiv);i.css({left:-g[0],top:-g[1],width:b.dpDiv.outerWidth(),height:b.dpDiv.outerHeight()})}};b.dpDiv.zIndex(d(a).zIndex()+1);d.datepicker._datepickerShowing=
|
||||||
|
true;d.effects&&d.effects[c]?b.dpDiv.show(c,d.datepicker._get(b,"showOptions"),f,h):b.dpDiv[c||"show"](c?f:null,h);if(!c||!f)h();b.input.is(":visible")&&!b.input.is(":disabled")&&b.input.focus();d.datepicker._curInst=b}}}},_updateDatepicker:function(a){this.maxRows=4;var b=d.datepicker._getBorders(a.dpDiv);J=a;a.dpDiv.empty().append(this._generateHTML(a));var c=a.dpDiv.find("iframe.ui-datepicker-cover");c.length&&c.css({left:-b[0],top:-b[1],width:a.dpDiv.outerWidth(),height:a.dpDiv.outerHeight()});
|
||||||
|
a.dpDiv.find("."+this._dayOverClass+" a").mouseover();b=this._getNumberOfMonths(a);c=b[1];a.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");c>1&&a.dpDiv.addClass("ui-datepicker-multi-"+c).css("width",17*c+"em");a.dpDiv[(b[0]!=1||b[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi");a.dpDiv[(this._get(a,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");a==d.datepicker._curInst&&d.datepicker._datepickerShowing&&a.input&&a.input.is(":visible")&&
|
||||||
|
!a.input.is(":disabled")&&a.input[0]!=document.activeElement&&a.input.focus();if(a.yearshtml){var e=a.yearshtml;setTimeout(function(){e===a.yearshtml&&a.yearshtml&&a.dpDiv.find("select.ui-datepicker-year:first").replaceWith(a.yearshtml);e=a.yearshtml=null},0)}},_getBorders:function(a){var b=function(c){return{thin:1,medium:2,thick:3}[c]||c};return[parseFloat(b(a.css("border-left-width"))),parseFloat(b(a.css("border-top-width")))]},_checkOffset:function(a,b,c){var e=a.dpDiv.outerWidth(),f=a.dpDiv.outerHeight(),
|
||||||
|
h=a.input?a.input.outerWidth():0,i=a.input?a.input.outerHeight():0,g=document.documentElement.clientWidth+d(document).scrollLeft(),j=document.documentElement.clientHeight+d(document).scrollTop();b.left-=this._get(a,"isRTL")?e-h:0;b.left-=c&&b.left==a.input.offset().left?d(document).scrollLeft():0;b.top-=c&&b.top==a.input.offset().top+i?d(document).scrollTop():0;b.left-=Math.min(b.left,b.left+e>g&&g>e?Math.abs(b.left+e-g):0);b.top-=Math.min(b.top,b.top+f>j&&j>f?Math.abs(f+i):0);return b},_findPos:function(a){for(var b=
|
||||||
|
this._get(this._getInst(a),"isRTL");a&&(a.type=="hidden"||a.nodeType!=1||d.expr.filters.hidden(a));)a=a[b?"previousSibling":"nextSibling"];a=d(a).offset();return[a.left,a.top]},_triggerOnClose:function(a){var b=this._get(a,"onClose");if(b)b.apply(a.input?a.input[0]:null,[a.input?a.input.val():"",a])},_hideDatepicker:function(a){var b=this._curInst;if(!(!b||a&&b!=d.data(a,"datepicker")))if(this._datepickerShowing){a=this._get(b,"showAnim");var c=this._get(b,"duration"),e=function(){d.datepicker._tidyDialog(b);
|
||||||
|
this._curInst=null};d.effects&&d.effects[a]?b.dpDiv.hide(a,d.datepicker._get(b,"showOptions"),c,e):b.dpDiv[a=="slideDown"?"slideUp":a=="fadeIn"?"fadeOut":"hide"](a?c:null,e);a||e();d.datepicker._triggerOnClose(b);this._datepickerShowing=false;this._lastInput=null;if(this._inDialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});if(d.blockUI){d.unblockUI();d("body").append(this.dpDiv)}}this._inDialog=false}},_tidyDialog:function(a){a.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},
|
||||||
|
_checkExternalClick:function(a){if(d.datepicker._curInst){a=d(a.target);a[0].id!=d.datepicker._mainDivId&&a.parents("#"+d.datepicker._mainDivId).length==0&&!a.hasClass(d.datepicker.markerClassName)&&!a.hasClass(d.datepicker._triggerClass)&&d.datepicker._datepickerShowing&&!(d.datepicker._inDialog&&d.blockUI)&&d.datepicker._hideDatepicker()}},_adjustDate:function(a,b,c){a=d(a);var e=this._getInst(a[0]);if(!this._isDisabledDatepicker(a[0])){this._adjustInstDate(e,b+(c=="M"?this._get(e,"showCurrentAtPos"):
|
||||||
|
0),c);this._updateDatepicker(e)}},_gotoToday:function(a){a=d(a);var b=this._getInst(a[0]);if(this._get(b,"gotoCurrent")&&b.currentDay){b.selectedDay=b.currentDay;b.drawMonth=b.selectedMonth=b.currentMonth;b.drawYear=b.selectedYear=b.currentYear}else{var c=new Date;b.selectedDay=c.getDate();b.drawMonth=b.selectedMonth=c.getMonth();b.drawYear=b.selectedYear=c.getFullYear()}this._notifyChange(b);this._adjustDate(a)},_selectMonthYear:function(a,b,c){a=d(a);var e=this._getInst(a[0]);e["selected"+(c=="M"?
|
||||||
|
"Month":"Year")]=e["draw"+(c=="M"?"Month":"Year")]=parseInt(b.options[b.selectedIndex].value,10);this._notifyChange(e);this._adjustDate(a)},_selectDay:function(a,b,c,e){var f=d(a);if(!(d(e).hasClass(this._unselectableClass)||this._isDisabledDatepicker(f[0]))){f=this._getInst(f[0]);f.selectedDay=f.currentDay=d("a",e).html();f.selectedMonth=f.currentMonth=b;f.selectedYear=f.currentYear=c;this._selectDate(a,this._formatDate(f,f.currentDay,f.currentMonth,f.currentYear))}},_clearDate:function(a){a=d(a);
|
||||||
|
this._getInst(a[0]);this._selectDate(a,"")},_selectDate:function(a,b){a=this._getInst(d(a)[0]);b=b!=null?b:this._formatDate(a);a.input&&a.input.val(b);this._updateAlternate(a);var c=this._get(a,"onSelect");if(c)c.apply(a.input?a.input[0]:null,[b,a]);else a.input&&a.input.trigger("change");if(a.inline)this._updateDatepicker(a);else{this._hideDatepicker();this._lastInput=a.input[0];typeof a.input[0]!="object"&&a.input.focus();this._lastInput=null}},_updateAlternate:function(a){var b=this._get(a,"altField");
|
||||||
|
if(b){var c=this._get(a,"altFormat")||this._get(a,"dateFormat"),e=this._getDate(a),f=this.formatDate(c,e,this._getFormatConfig(a));d(b).each(function(){d(this).val(f)})}},noWeekends:function(a){a=a.getDay();return[a>0&&a<6,""]},iso8601Week:function(a){a=new Date(a.getTime());a.setDate(a.getDate()+4-(a.getDay()||7));var b=a.getTime();a.setMonth(0);a.setDate(1);return Math.floor(Math.round((b-a)/864E5)/7)+1},parseDate:function(a,b,c){if(a==null||b==null)throw"Invalid arguments";b=typeof b=="object"?
|
||||||
|
b.toString():b+"";if(b=="")return null;var e=(c?c.shortYearCutoff:null)||this._defaults.shortYearCutoff;e=typeof e!="string"?e:(new Date).getFullYear()%100+parseInt(e,10);for(var f=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,h=(c?c.dayNames:null)||this._defaults.dayNames,i=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort,g=(c?c.monthNames:null)||this._defaults.monthNames,j=c=-1,l=-1,u=-1,k=false,o=function(p){(p=A+1<a.length&&a.charAt(A+1)==p)&&A++;return p},m=function(p){var D=
|
||||||
|
o(p);p=new RegExp("^\\d{1,"+(p=="@"?14:p=="!"?20:p=="y"&&D?4:p=="o"?3:2)+"}");p=b.substring(q).match(p);if(!p)throw"Missing number at position "+q;q+=p[0].length;return parseInt(p[0],10)},n=function(p,D,K){p=d.map(o(p)?K:D,function(w,x){return[[x,w]]}).sort(function(w,x){return-(w[1].length-x[1].length)});var E=-1;d.each(p,function(w,x){w=x[1];if(b.substr(q,w.length).toLowerCase()==w.toLowerCase()){E=x[0];q+=w.length;return false}});if(E!=-1)return E+1;else throw"Unknown name at position "+q;},s=
|
||||||
|
function(){if(b.charAt(q)!=a.charAt(A))throw"Unexpected literal at position "+q;q++},q=0,A=0;A<a.length;A++)if(k)if(a.charAt(A)=="'"&&!o("'"))k=false;else s();else switch(a.charAt(A)){case "d":l=m("d");break;case "D":n("D",f,h);break;case "o":u=m("o");break;case "m":j=m("m");break;case "M":j=n("M",i,g);break;case "y":c=m("y");break;case "@":var v=new Date(m("@"));c=v.getFullYear();j=v.getMonth()+1;l=v.getDate();break;case "!":v=new Date((m("!")-this._ticksTo1970)/1E4);c=v.getFullYear();j=v.getMonth()+
|
||||||
|
1;l=v.getDate();break;case "'":if(o("'"))s();else k=true;break;default:s()}if(q<b.length)throw"Extra/unparsed characters found in date: "+b.substring(q);if(c==-1)c=(new Date).getFullYear();else if(c<100)c+=(new Date).getFullYear()-(new Date).getFullYear()%100+(c<=e?0:-100);if(u>-1){j=1;l=u;do{e=this._getDaysInMonth(c,j-1);if(l<=e)break;j++;l-=e}while(1)}v=this._daylightSavingAdjust(new Date(c,j-1,l));if(v.getFullYear()!=c||v.getMonth()+1!=j||v.getDate()!=l)throw"Invalid date";return v},ATOM:"yy-mm-dd",
|
||||||
|
COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*24*60*60*1E7,formatDate:function(a,b,c){if(!b)return"";var e=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,f=(c?c.dayNames:null)||this._defaults.dayNames,h=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort;c=(c?c.monthNames:
|
||||||
|
null)||this._defaults.monthNames;var i=function(o){(o=k+1<a.length&&a.charAt(k+1)==o)&&k++;return o},g=function(o,m,n){m=""+m;if(i(o))for(;m.length<n;)m="0"+m;return m},j=function(o,m,n,s){return i(o)?s[m]:n[m]},l="",u=false;if(b)for(var k=0;k<a.length;k++)if(u)if(a.charAt(k)=="'"&&!i("'"))u=false;else l+=a.charAt(k);else switch(a.charAt(k)){case "d":l+=g("d",b.getDate(),2);break;case "D":l+=j("D",b.getDay(),e,f);break;case "o":l+=g("o",Math.round(((new Date(b.getFullYear(),b.getMonth(),b.getDate())).getTime()-
|
||||||
|
(new Date(b.getFullYear(),0,0)).getTime())/864E5),3);break;case "m":l+=g("m",b.getMonth()+1,2);break;case "M":l+=j("M",b.getMonth(),h,c);break;case "y":l+=i("y")?b.getFullYear():(b.getYear()%100<10?"0":"")+b.getYear()%100;break;case "@":l+=b.getTime();break;case "!":l+=b.getTime()*1E4+this._ticksTo1970;break;case "'":if(i("'"))l+="'";else u=true;break;default:l+=a.charAt(k)}return l},_possibleChars:function(a){for(var b="",c=false,e=function(h){(h=f+1<a.length&&a.charAt(f+1)==h)&&f++;return h},f=
|
||||||
|
0;f<a.length;f++)if(c)if(a.charAt(f)=="'"&&!e("'"))c=false;else b+=a.charAt(f);else switch(a.charAt(f)){case "d":case "m":case "y":case "@":b+="0123456789";break;case "D":case "M":return null;case "'":if(e("'"))b+="'";else c=true;break;default:b+=a.charAt(f)}return b},_get:function(a,b){return a.settings[b]!==C?a.settings[b]:this._defaults[b]},_setDateFromField:function(a,b){if(a.input.val()!=a.lastVal){var c=this._get(a,"dateFormat"),e=a.lastVal=a.input?a.input.val():null,f,h;f=h=this._getDefaultDate(a);
|
||||||
|
var i=this._getFormatConfig(a);try{f=this.parseDate(c,e,i)||h}catch(g){this.log(g);e=b?"":e}a.selectedDay=f.getDate();a.drawMonth=a.selectedMonth=f.getMonth();a.drawYear=a.selectedYear=f.getFullYear();a.currentDay=e?f.getDate():0;a.currentMonth=e?f.getMonth():0;a.currentYear=e?f.getFullYear():0;this._adjustInstDate(a)}},_getDefaultDate:function(a){return this._restrictMinMax(a,this._determineDate(a,this._get(a,"defaultDate"),new Date))},_determineDate:function(a,b,c){var e=function(h){var i=new Date;
|
||||||
|
i.setDate(i.getDate()+h);return i},f=function(h){try{return d.datepicker.parseDate(d.datepicker._get(a,"dateFormat"),h,d.datepicker._getFormatConfig(a))}catch(i){}var g=(h.toLowerCase().match(/^c/)?d.datepicker._getDate(a):null)||new Date,j=g.getFullYear(),l=g.getMonth();g=g.getDate();for(var u=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,k=u.exec(h);k;){switch(k[2]||"d"){case "d":case "D":g+=parseInt(k[1],10);break;case "w":case "W":g+=parseInt(k[1],10)*7;break;case "m":case "M":l+=parseInt(k[1],10);g=
|
||||||
|
Math.min(g,d.datepicker._getDaysInMonth(j,l));break;case "y":case "Y":j+=parseInt(k[1],10);g=Math.min(g,d.datepicker._getDaysInMonth(j,l));break}k=u.exec(h)}return new Date(j,l,g)};if(b=(b=b==null||b===""?c:typeof b=="string"?f(b):typeof b=="number"?isNaN(b)?c:e(b):new Date(b.getTime()))&&b.toString()=="Invalid Date"?c:b){b.setHours(0);b.setMinutes(0);b.setSeconds(0);b.setMilliseconds(0)}return this._daylightSavingAdjust(b)},_daylightSavingAdjust:function(a){if(!a)return null;a.setHours(a.getHours()>
|
||||||
|
12?a.getHours()+2:0);return a},_setDate:function(a,b,c){var e=!b,f=a.selectedMonth,h=a.selectedYear;b=this._restrictMinMax(a,this._determineDate(a,b,new Date));a.selectedDay=a.currentDay=b.getDate();a.drawMonth=a.selectedMonth=a.currentMonth=b.getMonth();a.drawYear=a.selectedYear=a.currentYear=b.getFullYear();if((f!=a.selectedMonth||h!=a.selectedYear)&&!c)this._notifyChange(a);this._adjustInstDate(a);if(a.input)a.input.val(e?"":this._formatDate(a))},_getDate:function(a){return!a.currentYear||a.input&&
|
||||||
|
a.input.val()==""?null:this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay))},_generateHTML:function(a){var b=new Date;b=this._daylightSavingAdjust(new Date(b.getFullYear(),b.getMonth(),b.getDate()));var c=this._get(a,"isRTL"),e=this._get(a,"showButtonPanel"),f=this._get(a,"hideIfNoPrevNext"),h=this._get(a,"navigationAsDateFormat"),i=this._getNumberOfMonths(a),g=this._get(a,"showCurrentAtPos"),j=this._get(a,"stepMonths"),l=i[0]!=1||i[1]!=1,u=this._daylightSavingAdjust(!a.currentDay?
|
||||||
|
new Date(9999,9,9):new Date(a.currentYear,a.currentMonth,a.currentDay)),k=this._getMinMaxDate(a,"min"),o=this._getMinMaxDate(a,"max");g=a.drawMonth-g;var m=a.drawYear;if(g<0){g+=12;m--}if(o){var n=this._daylightSavingAdjust(new Date(o.getFullYear(),o.getMonth()-i[0]*i[1]+1,o.getDate()));for(n=k&&n<k?k:n;this._daylightSavingAdjust(new Date(m,g,1))>n;){g--;if(g<0){g=11;m--}}}a.drawMonth=g;a.drawYear=m;n=this._get(a,"prevText");n=!h?n:this.formatDate(n,this._daylightSavingAdjust(new Date(m,g-j,1)),this._getFormatConfig(a));
|
||||||
|
n=this._canAdjustMonth(a,-1,m,g)?'<a class="ui-datepicker-prev ui-corner-all" onclick="DP_jQuery_'+B+".datepicker._adjustDate('#"+a.id+"', -"+j+", 'M');\" title=\""+n+'"><span class="ui-icon ui-icon-circle-triangle-'+(c?"e":"w")+'">'+n+"</span></a>":f?"":'<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+n+'"><span class="ui-icon ui-icon-circle-triangle-'+(c?"e":"w")+'">'+n+"</span></a>";var s=this._get(a,"nextText");s=!h?s:this.formatDate(s,this._daylightSavingAdjust(new Date(m,
|
||||||
|
g+j,1)),this._getFormatConfig(a));f=this._canAdjustMonth(a,+1,m,g)?'<a class="ui-datepicker-next ui-corner-all" onclick="DP_jQuery_'+B+".datepicker._adjustDate('#"+a.id+"', +"+j+", 'M');\" title=\""+s+'"><span class="ui-icon ui-icon-circle-triangle-'+(c?"w":"e")+'">'+s+"</span></a>":f?"":'<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="'+s+'"><span class="ui-icon ui-icon-circle-triangle-'+(c?"w":"e")+'">'+s+"</span></a>";j=this._get(a,"currentText");s=this._get(a,"gotoCurrent")&&
|
||||||
|
a.currentDay?u:b;j=!h?j:this.formatDate(j,s,this._getFormatConfig(a));h=!a.inline?'<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" onclick="DP_jQuery_'+B+'.datepicker._hideDatepicker();">'+this._get(a,"closeText")+"</button>":"";e=e?'<div class="ui-datepicker-buttonpane ui-widget-content">'+(c?h:"")+(this._isInRange(a,s)?'<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" onclick="DP_jQuery_'+
|
||||||
|
B+".datepicker._gotoToday('#"+a.id+"');\">"+j+"</button>":"")+(c?"":h)+"</div>":"";h=parseInt(this._get(a,"firstDay"),10);h=isNaN(h)?0:h;j=this._get(a,"showWeek");s=this._get(a,"dayNames");this._get(a,"dayNamesShort");var q=this._get(a,"dayNamesMin"),A=this._get(a,"monthNames"),v=this._get(a,"monthNamesShort"),p=this._get(a,"beforeShowDay"),D=this._get(a,"showOtherMonths"),K=this._get(a,"selectOtherMonths");this._get(a,"calculateWeek");for(var E=this._getDefaultDate(a),w="",x=0;x<i[0];x++){var O=
|
||||||
|
"";this.maxRows=4;for(var G=0;G<i[1];G++){var P=this._daylightSavingAdjust(new Date(m,g,a.selectedDay)),t=" ui-corner-all",y="";if(l){y+='<div class="ui-datepicker-group';if(i[1]>1)switch(G){case 0:y+=" ui-datepicker-group-first";t=" ui-corner-"+(c?"right":"left");break;case i[1]-1:y+=" ui-datepicker-group-last";t=" ui-corner-"+(c?"left":"right");break;default:y+=" ui-datepicker-group-middle";t="";break}y+='">'}y+='<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix'+t+'">'+(/all|left/.test(t)&&
|
||||||
|
x==0?c?f:n:"")+(/all|right/.test(t)&&x==0?c?n:f:"")+this._generateMonthYearHeader(a,g,m,k,o,x>0||G>0,A,v)+'</div><table class="ui-datepicker-calendar"><thead><tr>';var z=j?'<th class="ui-datepicker-week-col">'+this._get(a,"weekHeader")+"</th>":"";for(t=0;t<7;t++){var r=(t+h)%7;z+="<th"+((t+h+6)%7>=5?' class="ui-datepicker-week-end"':"")+'><span title="'+s[r]+'">'+q[r]+"</span></th>"}y+=z+"</tr></thead><tbody>";z=this._getDaysInMonth(m,g);if(m==a.selectedYear&&g==a.selectedMonth)a.selectedDay=Math.min(a.selectedDay,
|
||||||
|
z);t=(this._getFirstDayOfMonth(m,g)-h+7)%7;z=Math.ceil((t+z)/7);this.maxRows=z=l?this.maxRows>z?this.maxRows:z:z;r=this._daylightSavingAdjust(new Date(m,g,1-t));for(var Q=0;Q<z;Q++){y+="<tr>";var R=!j?"":'<td class="ui-datepicker-week-col">'+this._get(a,"calculateWeek")(r)+"</td>";for(t=0;t<7;t++){var I=p?p.apply(a.input?a.input[0]:null,[r]):[true,""],F=r.getMonth()!=g,L=F&&!K||!I[0]||k&&r<k||o&&r>o;R+='<td class="'+((t+h+6)%7>=5?" ui-datepicker-week-end":"")+(F?" ui-datepicker-other-month":"")+(r.getTime()==
|
||||||
|
P.getTime()&&g==a.selectedMonth&&a._keyEvent||E.getTime()==r.getTime()&&E.getTime()==P.getTime()?" "+this._dayOverClass:"")+(L?" "+this._unselectableClass+" ui-state-disabled":"")+(F&&!D?"":" "+I[1]+(r.getTime()==u.getTime()?" "+this._currentClass:"")+(r.getTime()==b.getTime()?" ui-datepicker-today":""))+'"'+((!F||D)&&I[2]?' title="'+I[2]+'"':"")+(L?"":' onclick="DP_jQuery_'+B+".datepicker._selectDay('#"+a.id+"',"+r.getMonth()+","+r.getFullYear()+', this);return false;"')+">"+(F&&!D?" ":L?'<span class="ui-state-default">'+
|
||||||
|
r.getDate()+"</span>":'<a class="ui-state-default'+(r.getTime()==b.getTime()?" ui-state-highlight":"")+(r.getTime()==u.getTime()?" ui-state-active":"")+(F?" ui-priority-secondary":"")+'" href="#">'+r.getDate()+"</a>")+"</td>";r.setDate(r.getDate()+1);r=this._daylightSavingAdjust(r)}y+=R+"</tr>"}g++;if(g>11){g=0;m++}y+="</tbody></table>"+(l?"</div>"+(i[0]>0&&G==i[1]-1?'<div class="ui-datepicker-row-break"></div>':""):"");O+=y}w+=O}w+=e+(d.browser.msie&&parseInt(d.browser.version,10)<7&&!a.inline?'<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"></iframe>':
|
||||||
|
"");a._keyEvent=false;return w},_generateMonthYearHeader:function(a,b,c,e,f,h,i,g){var j=this._get(a,"changeMonth"),l=this._get(a,"changeYear"),u=this._get(a,"showMonthAfterYear"),k='<div class="ui-datepicker-title">',o="";if(h||!j)o+='<span class="ui-datepicker-month">'+i[b]+"</span>";else{i=e&&e.getFullYear()==c;var m=f&&f.getFullYear()==c;o+='<select class="ui-datepicker-month" onchange="DP_jQuery_'+B+".datepicker._selectMonthYear('#"+a.id+"', this, 'M');\" >";for(var n=0;n<12;n++)if((!i||n>=e.getMonth())&&
|
||||||
|
(!m||n<=f.getMonth()))o+='<option value="'+n+'"'+(n==b?' selected="selected"':"")+">"+g[n]+"</option>";o+="</select>"}u||(k+=o+(h||!(j&&l)?" ":""));if(!a.yearshtml){a.yearshtml="";if(h||!l)k+='<span class="ui-datepicker-year">'+c+"</span>";else{g=this._get(a,"yearRange").split(":");var s=(new Date).getFullYear();i=function(q){q=q.match(/c[+-].*/)?c+parseInt(q.substring(1),10):q.match(/[+-].*/)?s+parseInt(q,10):parseInt(q,10);return isNaN(q)?s:q};b=i(g[0]);g=Math.max(b,i(g[1]||""));b=e?Math.max(b,
|
||||||
|
e.getFullYear()):b;g=f?Math.min(g,f.getFullYear()):g;for(a.yearshtml+='<select class="ui-datepicker-year" onchange="DP_jQuery_'+B+".datepicker._selectMonthYear('#"+a.id+"', this, 'Y');\" >";b<=g;b++)a.yearshtml+='<option value="'+b+'"'+(b==c?' selected="selected"':"")+">"+b+"</option>";a.yearshtml+="</select>";k+=a.yearshtml;a.yearshtml=null}}k+=this._get(a,"yearSuffix");if(u)k+=(h||!(j&&l)?" ":"")+o;k+="</div>";return k},_adjustInstDate:function(a,b,c){var e=a.drawYear+(c=="Y"?b:0),f=a.drawMonth+
|
||||||
|
(c=="M"?b:0);b=Math.min(a.selectedDay,this._getDaysInMonth(e,f))+(c=="D"?b:0);e=this._restrictMinMax(a,this._daylightSavingAdjust(new Date(e,f,b)));a.selectedDay=e.getDate();a.drawMonth=a.selectedMonth=e.getMonth();a.drawYear=a.selectedYear=e.getFullYear();if(c=="M"||c=="Y")this._notifyChange(a)},_restrictMinMax:function(a,b){var c=this._getMinMaxDate(a,"min");a=this._getMinMaxDate(a,"max");b=c&&b<c?c:b;return b=a&&b>a?a:b},_notifyChange:function(a){var b=this._get(a,"onChangeMonthYear");if(b)b.apply(a.input?
|
||||||
|
a.input[0]:null,[a.selectedYear,a.selectedMonth+1,a])},_getNumberOfMonths:function(a){a=this._get(a,"numberOfMonths");return a==null?[1,1]:typeof a=="number"?[1,a]:a},_getMinMaxDate:function(a,b){return this._determineDate(a,this._get(a,b+"Date"),null)},_getDaysInMonth:function(a,b){return 32-this._daylightSavingAdjust(new Date(a,b,32)).getDate()},_getFirstDayOfMonth:function(a,b){return(new Date(a,b,1)).getDay()},_canAdjustMonth:function(a,b,c,e){var f=this._getNumberOfMonths(a);c=this._daylightSavingAdjust(new Date(c,
|
||||||
|
e+(b<0?b:f[0]*f[1]),1));b<0&&c.setDate(this._getDaysInMonth(c.getFullYear(),c.getMonth()));return this._isInRange(a,c)},_isInRange:function(a,b){var c=this._getMinMaxDate(a,"min");a=this._getMinMaxDate(a,"max");return(!c||b.getTime()>=c.getTime())&&(!a||b.getTime()<=a.getTime())},_getFormatConfig:function(a){var b=this._get(a,"shortYearCutoff");b=typeof b!="string"?b:(new Date).getFullYear()%100+parseInt(b,10);return{shortYearCutoff:b,dayNamesShort:this._get(a,"dayNamesShort"),dayNames:this._get(a,
|
||||||
|
"dayNames"),monthNamesShort:this._get(a,"monthNamesShort"),monthNames:this._get(a,"monthNames")}},_formatDate:function(a,b,c,e){if(!b){a.currentDay=a.selectedDay;a.currentMonth=a.selectedMonth;a.currentYear=a.selectedYear}b=b?typeof b=="object"?b:this._daylightSavingAdjust(new Date(e,c,b)):this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));return this.formatDate(this._get(a,"dateFormat"),b,this._getFormatConfig(a))}});d.fn.datepicker=function(a){if(!this.length)return this;
|
||||||
|
if(!d.datepicker.initialized){d(document).mousedown(d.datepicker._checkExternalClick).find("body").append(d.datepicker.dpDiv);d.datepicker.initialized=true}var b=Array.prototype.slice.call(arguments,1);if(typeof a=="string"&&(a=="isDisabled"||a=="getDate"||a=="widget"))return d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this[0]].concat(b));if(a=="option"&&arguments.length==2&&typeof arguments[1]=="string")return d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this[0]].concat(b));return this.each(function(){typeof a==
|
||||||
|
"string"?d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this].concat(b)):d.datepicker._attachDatepicker(this,a)})};d.datepicker=new M;d.datepicker.initialized=false;d.datepicker.uuid=(new Date).getTime();d.datepicker.version="1.8.16";window["DP_jQuery_"+B]=d})(jQuery);
|
||||||
|
;/*
|
||||||
|
* jQuery UI Progressbar 1.8.16
|
||||||
|
*
|
||||||
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
||||||
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||||
|
* http://jquery.org/license
|
||||||
|
*
|
||||||
|
* http://docs.jquery.com/UI/Progressbar
|
||||||
|
*
|
||||||
|
* Depends:
|
||||||
|
* jquery.ui.core.js
|
||||||
|
* jquery.ui.widget.js
|
||||||
|
*/
|
||||||
|
(function(b,d){b.widget("ui.progressbar",{options:{value:0,max:100},min:0,_create:function(){this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min,"aria-valuemax":this.options.max,"aria-valuenow":this._value()});this.valueDiv=b("<div class='ui-progressbar-value ui-widget-header ui-corner-left'></div>").appendTo(this.element);this.oldValue=this._value();this._refreshValue()},destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow");
|
||||||
|
this.valueDiv.remove();b.Widget.prototype.destroy.apply(this,arguments)},value:function(a){if(a===d)return this._value();this._setOption("value",a);return this},_setOption:function(a,c){if(a==="value"){this.options.value=c;this._refreshValue();this._value()===this.options.max&&this._trigger("complete")}b.Widget.prototype._setOption.apply(this,arguments)},_value:function(){var a=this.options.value;if(typeof a!=="number")a=0;return Math.min(this.options.max,Math.max(this.min,a))},_percentage:function(){return 100*
|
||||||
|
this._value()/this.options.max},_refreshValue:function(){var a=this.value(),c=this._percentage();if(this.oldValue!==a){this.oldValue=a;this._trigger("change")}this.valueDiv.toggle(a>this.min).toggleClass("ui-corner-right",a===this.options.max).width(c.toFixed(0)+"%");this.element.attr("aria-valuenow",a)}});b.extend(b.ui.progressbar,{version:"1.8.16"})})(jQuery);
|
||||||
|
;/*
|
||||||
|
* jQuery UI Effects 1.8.16
|
||||||
|
*
|
||||||
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
||||||
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||||
|
* http://jquery.org/license
|
||||||
|
*
|
||||||
|
* http://docs.jquery.com/UI/Effects/
|
||||||
|
*/
|
||||||
|
jQuery.effects||function(f,j){function m(c){var a;if(c&&c.constructor==Array&&c.length==3)return c;if(a=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(c))return[parseInt(a[1],10),parseInt(a[2],10),parseInt(a[3],10)];if(a=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(c))return[parseFloat(a[1])*2.55,parseFloat(a[2])*2.55,parseFloat(a[3])*2.55];if(a=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(c))return[parseInt(a[1],
|
||||||
|
16),parseInt(a[2],16),parseInt(a[3],16)];if(a=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(c))return[parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16),parseInt(a[3]+a[3],16)];if(/rgba\(0, 0, 0, 0\)/.exec(c))return n.transparent;return n[f.trim(c).toLowerCase()]}function s(c,a){var b;do{b=f.curCSS(c,a);if(b!=""&&b!="transparent"||f.nodeName(c,"body"))break;a="backgroundColor"}while(c=c.parentNode);return m(b)}function o(){var c=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle,
|
||||||
|
a={},b,d;if(c&&c.length&&c[0]&&c[c[0]])for(var e=c.length;e--;){b=c[e];if(typeof c[b]=="string"){d=b.replace(/\-(\w)/g,function(g,h){return h.toUpperCase()});a[d]=c[b]}}else for(b in c)if(typeof c[b]==="string")a[b]=c[b];return a}function p(c){var a,b;for(a in c){b=c[a];if(b==null||f.isFunction(b)||a in t||/scrollbar/.test(a)||!/color/i.test(a)&&isNaN(parseFloat(b)))delete c[a]}return c}function u(c,a){var b={_:0},d;for(d in a)if(c[d]!=a[d])b[d]=a[d];return b}function k(c,a,b,d){if(typeof c=="object"){d=
|
||||||
|
a;b=null;a=c;c=a.effect}if(f.isFunction(a)){d=a;b=null;a={}}if(typeof a=="number"||f.fx.speeds[a]){d=b;b=a;a={}}if(f.isFunction(b)){d=b;b=null}a=a||{};b=b||a.duration;b=f.fx.off?0:typeof b=="number"?b:b in f.fx.speeds?f.fx.speeds[b]:f.fx.speeds._default;d=d||a.complete;return[c,a,b,d]}function l(c){if(!c||typeof c==="number"||f.fx.speeds[c])return true;if(typeof c==="string"&&!f.effects[c])return true;return false}f.effects={};f.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor",
|
||||||
|
"borderTopColor","borderColor","color","outlineColor"],function(c,a){f.fx.step[a]=function(b){if(!b.colorInit){b.start=s(b.elem,a);b.end=m(b.end);b.colorInit=true}b.elem.style[a]="rgb("+Math.max(Math.min(parseInt(b.pos*(b.end[0]-b.start[0])+b.start[0],10),255),0)+","+Math.max(Math.min(parseInt(b.pos*(b.end[1]-b.start[1])+b.start[1],10),255),0)+","+Math.max(Math.min(parseInt(b.pos*(b.end[2]-b.start[2])+b.start[2],10),255),0)+")"}});var n={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,
|
||||||
|
0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,
|
||||||
|
211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]},q=["add","remove","toggle"],t={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};f.effects.animateClass=function(c,a,b,
|
||||||
|
d){if(f.isFunction(b)){d=b;b=null}return this.queue(function(){var e=f(this),g=e.attr("style")||" ",h=p(o.call(this)),r,v=e.attr("class");f.each(q,function(w,i){c[i]&&e[i+"Class"](c[i])});r=p(o.call(this));e.attr("class",v);e.animate(u(h,r),{queue:false,duration:a,easing:b,complete:function(){f.each(q,function(w,i){c[i]&&e[i+"Class"](c[i])});if(typeof e.attr("style")=="object"){e.attr("style").cssText="";e.attr("style").cssText=g}else e.attr("style",g);d&&d.apply(this,arguments);f.dequeue(this)}})})};
|
||||||
|
f.fn.extend({_addClass:f.fn.addClass,addClass:function(c,a,b,d){return a?f.effects.animateClass.apply(this,[{add:c},a,b,d]):this._addClass(c)},_removeClass:f.fn.removeClass,removeClass:function(c,a,b,d){return a?f.effects.animateClass.apply(this,[{remove:c},a,b,d]):this._removeClass(c)},_toggleClass:f.fn.toggleClass,toggleClass:function(c,a,b,d,e){return typeof a=="boolean"||a===j?b?f.effects.animateClass.apply(this,[a?{add:c}:{remove:c},b,d,e]):this._toggleClass(c,a):f.effects.animateClass.apply(this,
|
||||||
|
[{toggle:c},a,b,d])},switchClass:function(c,a,b,d,e){return f.effects.animateClass.apply(this,[{add:a,remove:c},b,d,e])}});f.extend(f.effects,{version:"1.8.16",save:function(c,a){for(var b=0;b<a.length;b++)a[b]!==null&&c.data("ec.storage."+a[b],c[0].style[a[b]])},restore:function(c,a){for(var b=0;b<a.length;b++)a[b]!==null&&c.css(a[b],c.data("ec.storage."+a[b]))},setMode:function(c,a){if(a=="toggle")a=c.is(":hidden")?"show":"hide";return a},getBaseline:function(c,a){var b;switch(c[0]){case "top":b=
|
||||||
|
0;break;case "middle":b=0.5;break;case "bottom":b=1;break;default:b=c[0]/a.height}switch(c[1]){case "left":c=0;break;case "center":c=0.5;break;case "right":c=1;break;default:c=c[1]/a.width}return{x:c,y:b}},createWrapper:function(c){if(c.parent().is(".ui-effects-wrapper"))return c.parent();var a={width:c.outerWidth(true),height:c.outerHeight(true),"float":c.css("float")},b=f("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),
|
||||||
|
d=document.activeElement;c.wrap(b);if(c[0]===d||f.contains(c[0],d))f(d).focus();b=c.parent();if(c.css("position")=="static"){b.css({position:"relative"});c.css({position:"relative"})}else{f.extend(a,{position:c.css("position"),zIndex:c.css("z-index")});f.each(["top","left","bottom","right"],function(e,g){a[g]=c.css(g);if(isNaN(parseInt(a[g],10)))a[g]="auto"});c.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})}return b.css(a).show()},removeWrapper:function(c){var a,b=document.activeElement;
|
||||||
|
if(c.parent().is(".ui-effects-wrapper")){a=c.parent().replaceWith(c);if(c[0]===b||f.contains(c[0],b))f(b).focus();return a}return c},setTransition:function(c,a,b,d){d=d||{};f.each(a,function(e,g){unit=c.cssUnit(g);if(unit[0]>0)d[g]=unit[0]*b+unit[1]});return d}});f.fn.extend({effect:function(c){var a=k.apply(this,arguments),b={options:a[1],duration:a[2],callback:a[3]};a=b.options.mode;var d=f.effects[c];if(f.fx.off||!d)return a?this[a](b.duration,b.callback):this.each(function(){b.callback&&b.callback.call(this)});
|
||||||
|
return d.call(this,b)},_show:f.fn.show,show:function(c){if(l(c))return this._show.apply(this,arguments);else{var a=k.apply(this,arguments);a[1].mode="show";return this.effect.apply(this,a)}},_hide:f.fn.hide,hide:function(c){if(l(c))return this._hide.apply(this,arguments);else{var a=k.apply(this,arguments);a[1].mode="hide";return this.effect.apply(this,a)}},__toggle:f.fn.toggle,toggle:function(c){if(l(c)||typeof c==="boolean"||f.isFunction(c))return this.__toggle.apply(this,arguments);else{var a=k.apply(this,
|
||||||
|
arguments);a[1].mode="toggle";return this.effect.apply(this,a)}},cssUnit:function(c){var a=this.css(c),b=[];f.each(["em","px","%","pt"],function(d,e){if(a.indexOf(e)>0)b=[parseFloat(a),e]});return b}});f.easing.jswing=f.easing.swing;f.extend(f.easing,{def:"easeOutQuad",swing:function(c,a,b,d,e){return f.easing[f.easing.def](c,a,b,d,e)},easeInQuad:function(c,a,b,d,e){return d*(a/=e)*a+b},easeOutQuad:function(c,a,b,d,e){return-d*(a/=e)*(a-2)+b},easeInOutQuad:function(c,a,b,d,e){if((a/=e/2)<1)return d/
|
||||||
|
2*a*a+b;return-d/2*(--a*(a-2)-1)+b},easeInCubic:function(c,a,b,d,e){return d*(a/=e)*a*a+b},easeOutCubic:function(c,a,b,d,e){return d*((a=a/e-1)*a*a+1)+b},easeInOutCubic:function(c,a,b,d,e){if((a/=e/2)<1)return d/2*a*a*a+b;return d/2*((a-=2)*a*a+2)+b},easeInQuart:function(c,a,b,d,e){return d*(a/=e)*a*a*a+b},easeOutQuart:function(c,a,b,d,e){return-d*((a=a/e-1)*a*a*a-1)+b},easeInOutQuart:function(c,a,b,d,e){if((a/=e/2)<1)return d/2*a*a*a*a+b;return-d/2*((a-=2)*a*a*a-2)+b},easeInQuint:function(c,a,b,
|
||||||
|
d,e){return d*(a/=e)*a*a*a*a+b},easeOutQuint:function(c,a,b,d,e){return d*((a=a/e-1)*a*a*a*a+1)+b},easeInOutQuint:function(c,a,b,d,e){if((a/=e/2)<1)return d/2*a*a*a*a*a+b;return d/2*((a-=2)*a*a*a*a+2)+b},easeInSine:function(c,a,b,d,e){return-d*Math.cos(a/e*(Math.PI/2))+d+b},easeOutSine:function(c,a,b,d,e){return d*Math.sin(a/e*(Math.PI/2))+b},easeInOutSine:function(c,a,b,d,e){return-d/2*(Math.cos(Math.PI*a/e)-1)+b},easeInExpo:function(c,a,b,d,e){return a==0?b:d*Math.pow(2,10*(a/e-1))+b},easeOutExpo:function(c,
|
||||||
|
a,b,d,e){return a==e?b+d:d*(-Math.pow(2,-10*a/e)+1)+b},easeInOutExpo:function(c,a,b,d,e){if(a==0)return b;if(a==e)return b+d;if((a/=e/2)<1)return d/2*Math.pow(2,10*(a-1))+b;return d/2*(-Math.pow(2,-10*--a)+2)+b},easeInCirc:function(c,a,b,d,e){return-d*(Math.sqrt(1-(a/=e)*a)-1)+b},easeOutCirc:function(c,a,b,d,e){return d*Math.sqrt(1-(a=a/e-1)*a)+b},easeInOutCirc:function(c,a,b,d,e){if((a/=e/2)<1)return-d/2*(Math.sqrt(1-a*a)-1)+b;return d/2*(Math.sqrt(1-(a-=2)*a)+1)+b},easeInElastic:function(c,a,b,
|
||||||
|
d,e){c=1.70158;var g=0,h=d;if(a==0)return b;if((a/=e)==1)return b+d;g||(g=e*0.3);if(h<Math.abs(d)){h=d;c=g/4}else c=g/(2*Math.PI)*Math.asin(d/h);return-(h*Math.pow(2,10*(a-=1))*Math.sin((a*e-c)*2*Math.PI/g))+b},easeOutElastic:function(c,a,b,d,e){c=1.70158;var g=0,h=d;if(a==0)return b;if((a/=e)==1)return b+d;g||(g=e*0.3);if(h<Math.abs(d)){h=d;c=g/4}else c=g/(2*Math.PI)*Math.asin(d/h);return h*Math.pow(2,-10*a)*Math.sin((a*e-c)*2*Math.PI/g)+d+b},easeInOutElastic:function(c,a,b,d,e){c=1.70158;var g=
|
||||||
|
0,h=d;if(a==0)return b;if((a/=e/2)==2)return b+d;g||(g=e*0.3*1.5);if(h<Math.abs(d)){h=d;c=g/4}else c=g/(2*Math.PI)*Math.asin(d/h);if(a<1)return-0.5*h*Math.pow(2,10*(a-=1))*Math.sin((a*e-c)*2*Math.PI/g)+b;return h*Math.pow(2,-10*(a-=1))*Math.sin((a*e-c)*2*Math.PI/g)*0.5+d+b},easeInBack:function(c,a,b,d,e,g){if(g==j)g=1.70158;return d*(a/=e)*a*((g+1)*a-g)+b},easeOutBack:function(c,a,b,d,e,g){if(g==j)g=1.70158;return d*((a=a/e-1)*a*((g+1)*a+g)+1)+b},easeInOutBack:function(c,a,b,d,e,g){if(g==j)g=1.70158;
|
||||||
|
if((a/=e/2)<1)return d/2*a*a*(((g*=1.525)+1)*a-g)+b;return d/2*((a-=2)*a*(((g*=1.525)+1)*a+g)+2)+b},easeInBounce:function(c,a,b,d,e){return d-f.easing.easeOutBounce(c,e-a,0,d,e)+b},easeOutBounce:function(c,a,b,d,e){return(a/=e)<1/2.75?d*7.5625*a*a+b:a<2/2.75?d*(7.5625*(a-=1.5/2.75)*a+0.75)+b:a<2.5/2.75?d*(7.5625*(a-=2.25/2.75)*a+0.9375)+b:d*(7.5625*(a-=2.625/2.75)*a+0.984375)+b},easeInOutBounce:function(c,a,b,d,e){if(a<e/2)return f.easing.easeInBounce(c,a*2,0,d,e)*0.5+b;return f.easing.easeOutBounce(c,
|
||||||
|
a*2-e,0,d,e)*0.5+d*0.5+b}})}(jQuery);
|
||||||
|
;/*
|
||||||
|
* jQuery UI Effects Blind 1.8.16
|
||||||
|
*
|
||||||
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
||||||
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||||
|
* http://jquery.org/license
|
||||||
|
*
|
||||||
|
* http://docs.jquery.com/UI/Effects/Blind
|
||||||
|
*
|
||||||
|
* Depends:
|
||||||
|
* jquery.effects.core.js
|
||||||
|
*/
|
||||||
|
(function(b){b.effects.blind=function(c){return this.queue(function(){var a=b(this),g=["position","top","bottom","left","right"],f=b.effects.setMode(a,c.options.mode||"hide"),d=c.options.direction||"vertical";b.effects.save(a,g);a.show();var e=b.effects.createWrapper(a).css({overflow:"hidden"}),h=d=="vertical"?"height":"width";d=d=="vertical"?e.height():e.width();f=="show"&&e.css(h,0);var i={};i[h]=f=="show"?d:0;e.animate(i,c.duration,c.options.easing,function(){f=="hide"&&a.hide();b.effects.restore(a,
|
||||||
|
g);b.effects.removeWrapper(a);c.callback&&c.callback.apply(a[0],arguments);a.dequeue()})})}})(jQuery);
|
||||||
|
;/*
|
||||||
|
* jQuery UI Effects Bounce 1.8.16
|
||||||
|
*
|
||||||
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
||||||
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||||
|
* http://jquery.org/license
|
||||||
|
*
|
||||||
|
* http://docs.jquery.com/UI/Effects/Bounce
|
||||||
|
*
|
||||||
|
* Depends:
|
||||||
|
* jquery.effects.core.js
|
||||||
|
*/
|
||||||
|
(function(e){e.effects.bounce=function(b){return this.queue(function(){var a=e(this),l=["position","top","bottom","left","right"],h=e.effects.setMode(a,b.options.mode||"effect"),d=b.options.direction||"up",c=b.options.distance||20,m=b.options.times||5,i=b.duration||250;/show|hide/.test(h)&&l.push("opacity");e.effects.save(a,l);a.show();e.effects.createWrapper(a);var f=d=="up"||d=="down"?"top":"left";d=d=="up"||d=="left"?"pos":"neg";c=b.options.distance||(f=="top"?a.outerHeight({margin:true})/3:a.outerWidth({margin:true})/
|
||||||
|
3);if(h=="show")a.css("opacity",0).css(f,d=="pos"?-c:c);if(h=="hide")c/=m*2;h!="hide"&&m--;if(h=="show"){var g={opacity:1};g[f]=(d=="pos"?"+=":"-=")+c;a.animate(g,i/2,b.options.easing);c/=2;m--}for(g=0;g<m;g++){var j={},k={};j[f]=(d=="pos"?"-=":"+=")+c;k[f]=(d=="pos"?"+=":"-=")+c;a.animate(j,i/2,b.options.easing).animate(k,i/2,b.options.easing);c=h=="hide"?c*2:c/2}if(h=="hide"){g={opacity:0};g[f]=(d=="pos"?"-=":"+=")+c;a.animate(g,i/2,b.options.easing,function(){a.hide();e.effects.restore(a,l);e.effects.removeWrapper(a);
|
||||||
|
b.callback&&b.callback.apply(this,arguments)})}else{j={};k={};j[f]=(d=="pos"?"-=":"+=")+c;k[f]=(d=="pos"?"+=":"-=")+c;a.animate(j,i/2,b.options.easing).animate(k,i/2,b.options.easing,function(){e.effects.restore(a,l);e.effects.removeWrapper(a);b.callback&&b.callback.apply(this,arguments)})}a.queue("fx",function(){a.dequeue()});a.dequeue()})}})(jQuery);
|
||||||
|
;/*
|
||||||
|
* jQuery UI Effects Clip 1.8.16
|
||||||
|
*
|
||||||
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
||||||
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||||
|
* http://jquery.org/license
|
||||||
|
*
|
||||||
|
* http://docs.jquery.com/UI/Effects/Clip
|
||||||
|
*
|
||||||
|
* Depends:
|
||||||
|
* jquery.effects.core.js
|
||||||
|
*/
|
||||||
|
(function(b){b.effects.clip=function(e){return this.queue(function(){var a=b(this),i=["position","top","bottom","left","right","height","width"],f=b.effects.setMode(a,e.options.mode||"hide"),c=e.options.direction||"vertical";b.effects.save(a,i);a.show();var d=b.effects.createWrapper(a).css({overflow:"hidden"});d=a[0].tagName=="IMG"?d:a;var g={size:c=="vertical"?"height":"width",position:c=="vertical"?"top":"left"};c=c=="vertical"?d.height():d.width();if(f=="show"){d.css(g.size,0);d.css(g.position,
|
||||||
|
c/2)}var h={};h[g.size]=f=="show"?c:0;h[g.position]=f=="show"?0:c/2;d.animate(h,{queue:false,duration:e.duration,easing:e.options.easing,complete:function(){f=="hide"&&a.hide();b.effects.restore(a,i);b.effects.removeWrapper(a);e.callback&&e.callback.apply(a[0],arguments);a.dequeue()}})})}})(jQuery);
|
||||||
|
;/*
|
||||||
|
* jQuery UI Effects Drop 1.8.16
|
||||||
|
*
|
||||||
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
||||||
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||||
|
* http://jquery.org/license
|
||||||
|
*
|
||||||
|
* http://docs.jquery.com/UI/Effects/Drop
|
||||||
|
*
|
||||||
|
* Depends:
|
||||||
|
* jquery.effects.core.js
|
||||||
|
*/
|
||||||
|
(function(c){c.effects.drop=function(d){return this.queue(function(){var a=c(this),h=["position","top","bottom","left","right","opacity"],e=c.effects.setMode(a,d.options.mode||"hide"),b=d.options.direction||"left";c.effects.save(a,h);a.show();c.effects.createWrapper(a);var f=b=="up"||b=="down"?"top":"left";b=b=="up"||b=="left"?"pos":"neg";var g=d.options.distance||(f=="top"?a.outerHeight({margin:true})/2:a.outerWidth({margin:true})/2);if(e=="show")a.css("opacity",0).css(f,b=="pos"?-g:g);var i={opacity:e==
|
||||||
|
"show"?1:0};i[f]=(e=="show"?b=="pos"?"+=":"-=":b=="pos"?"-=":"+=")+g;a.animate(i,{queue:false,duration:d.duration,easing:d.options.easing,complete:function(){e=="hide"&&a.hide();c.effects.restore(a,h);c.effects.removeWrapper(a);d.callback&&d.callback.apply(this,arguments);a.dequeue()}})})}})(jQuery);
|
||||||
|
;/*
|
||||||
|
* jQuery UI Effects Explode 1.8.16
|
||||||
|
*
|
||||||
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
||||||
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||||
|
* http://jquery.org/license
|
||||||
|
*
|
||||||
|
* http://docs.jquery.com/UI/Effects/Explode
|
||||||
|
*
|
||||||
|
* Depends:
|
||||||
|
* jquery.effects.core.js
|
||||||
|
*/
|
||||||
|
(function(j){j.effects.explode=function(a){return this.queue(function(){var c=a.options.pieces?Math.round(Math.sqrt(a.options.pieces)):3,d=a.options.pieces?Math.round(Math.sqrt(a.options.pieces)):3;a.options.mode=a.options.mode=="toggle"?j(this).is(":visible")?"hide":"show":a.options.mode;var b=j(this).show().css("visibility","hidden"),g=b.offset();g.top-=parseInt(b.css("marginTop"),10)||0;g.left-=parseInt(b.css("marginLeft"),10)||0;for(var h=b.outerWidth(true),i=b.outerHeight(true),e=0;e<c;e++)for(var f=
|
||||||
|
0;f<d;f++)b.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-f*(h/d),top:-e*(i/c)}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:h/d,height:i/c,left:g.left+f*(h/d)+(a.options.mode=="show"?(f-Math.floor(d/2))*(h/d):0),top:g.top+e*(i/c)+(a.options.mode=="show"?(e-Math.floor(c/2))*(i/c):0),opacity:a.options.mode=="show"?0:1}).animate({left:g.left+f*(h/d)+(a.options.mode=="show"?0:(f-Math.floor(d/2))*(h/d)),top:g.top+
|
||||||
|
e*(i/c)+(a.options.mode=="show"?0:(e-Math.floor(c/2))*(i/c)),opacity:a.options.mode=="show"?1:0},a.duration||500);setTimeout(function(){a.options.mode=="show"?b.css({visibility:"visible"}):b.css({visibility:"visible"}).hide();a.callback&&a.callback.apply(b[0]);b.dequeue();j("div.ui-effects-explode").remove()},a.duration||500)})}})(jQuery);
|
||||||
|
;/*
|
||||||
|
* jQuery UI Effects Fade 1.8.16
|
||||||
|
*
|
||||||
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
||||||
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||||
|
* http://jquery.org/license
|
||||||
|
*
|
||||||
|
* http://docs.jquery.com/UI/Effects/Fade
|
||||||
|
*
|
||||||
|
* Depends:
|
||||||
|
* jquery.effects.core.js
|
||||||
|
*/
|
||||||
|
(function(b){b.effects.fade=function(a){return this.queue(function(){var c=b(this),d=b.effects.setMode(c,a.options.mode||"hide");c.animate({opacity:d},{queue:false,duration:a.duration,easing:a.options.easing,complete:function(){a.callback&&a.callback.apply(this,arguments);c.dequeue()}})})}})(jQuery);
|
||||||
|
;/*
|
||||||
|
* jQuery UI Effects Fold 1.8.16
|
||||||
|
*
|
||||||
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
||||||
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||||
|
* http://jquery.org/license
|
||||||
|
*
|
||||||
|
* http://docs.jquery.com/UI/Effects/Fold
|
||||||
|
*
|
||||||
|
* Depends:
|
||||||
|
* jquery.effects.core.js
|
||||||
|
*/
|
||||||
|
(function(c){c.effects.fold=function(a){return this.queue(function(){var b=c(this),j=["position","top","bottom","left","right"],d=c.effects.setMode(b,a.options.mode||"hide"),g=a.options.size||15,h=!!a.options.horizFirst,k=a.duration?a.duration/2:c.fx.speeds._default/2;c.effects.save(b,j);b.show();var e=c.effects.createWrapper(b).css({overflow:"hidden"}),f=d=="show"!=h,l=f?["width","height"]:["height","width"];f=f?[e.width(),e.height()]:[e.height(),e.width()];var i=/([0-9]+)%/.exec(g);if(i)g=parseInt(i[1],
|
||||||
|
10)/100*f[d=="hide"?0:1];if(d=="show")e.css(h?{height:0,width:g}:{height:g,width:0});h={};i={};h[l[0]]=d=="show"?f[0]:g;i[l[1]]=d=="show"?f[1]:0;e.animate(h,k,a.options.easing).animate(i,k,a.options.easing,function(){d=="hide"&&b.hide();c.effects.restore(b,j);c.effects.removeWrapper(b);a.callback&&a.callback.apply(b[0],arguments);b.dequeue()})})}})(jQuery);
|
||||||
|
;/*
|
||||||
|
* jQuery UI Effects Highlight 1.8.16
|
||||||
|
*
|
||||||
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
||||||
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||||
|
* http://jquery.org/license
|
||||||
|
*
|
||||||
|
* http://docs.jquery.com/UI/Effects/Highlight
|
||||||
|
*
|
||||||
|
* Depends:
|
||||||
|
* jquery.effects.core.js
|
||||||
|
*/
|
||||||
|
(function(b){b.effects.highlight=function(c){return this.queue(function(){var a=b(this),e=["backgroundImage","backgroundColor","opacity"],d=b.effects.setMode(a,c.options.mode||"show"),f={backgroundColor:a.css("backgroundColor")};if(d=="hide")f.opacity=0;b.effects.save(a,e);a.show().css({backgroundImage:"none",backgroundColor:c.options.color||"#ffff99"}).animate(f,{queue:false,duration:c.duration,easing:c.options.easing,complete:function(){d=="hide"&&a.hide();b.effects.restore(a,e);d=="show"&&!b.support.opacity&&
|
||||||
|
this.style.removeAttribute("filter");c.callback&&c.callback.apply(this,arguments);a.dequeue()}})})}})(jQuery);
|
||||||
|
;/*
|
||||||
|
* jQuery UI Effects Pulsate 1.8.16
|
||||||
|
*
|
||||||
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
||||||
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||||
|
* http://jquery.org/license
|
||||||
|
*
|
||||||
|
* http://docs.jquery.com/UI/Effects/Pulsate
|
||||||
|
*
|
||||||
|
* Depends:
|
||||||
|
* jquery.effects.core.js
|
||||||
|
*/
|
||||||
|
(function(d){d.effects.pulsate=function(a){return this.queue(function(){var b=d(this),c=d.effects.setMode(b,a.options.mode||"show");times=(a.options.times||5)*2-1;duration=a.duration?a.duration/2:d.fx.speeds._default/2;isVisible=b.is(":visible");animateTo=0;if(!isVisible){b.css("opacity",0).show();animateTo=1}if(c=="hide"&&isVisible||c=="show"&&!isVisible)times--;for(c=0;c<times;c++){b.animate({opacity:animateTo},duration,a.options.easing);animateTo=(animateTo+1)%2}b.animate({opacity:animateTo},duration,
|
||||||
|
a.options.easing,function(){animateTo==0&&b.hide();a.callback&&a.callback.apply(this,arguments)});b.queue("fx",function(){b.dequeue()}).dequeue()})}})(jQuery);
|
||||||
|
;/*
|
||||||
|
* jQuery UI Effects Scale 1.8.16
|
||||||
|
*
|
||||||
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
||||||
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||||
|
* http://jquery.org/license
|
||||||
|
*
|
||||||
|
* http://docs.jquery.com/UI/Effects/Scale
|
||||||
|
*
|
||||||
|
* Depends:
|
||||||
|
* jquery.effects.core.js
|
||||||
|
*/
|
||||||
|
(function(c){c.effects.puff=function(b){return this.queue(function(){var a=c(this),e=c.effects.setMode(a,b.options.mode||"hide"),g=parseInt(b.options.percent,10)||150,h=g/100,i={height:a.height(),width:a.width()};c.extend(b.options,{fade:true,mode:e,percent:e=="hide"?g:100,from:e=="hide"?i:{height:i.height*h,width:i.width*h}});a.effect("scale",b.options,b.duration,b.callback);a.dequeue()})};c.effects.scale=function(b){return this.queue(function(){var a=c(this),e=c.extend(true,{},b.options),g=c.effects.setMode(a,
|
||||||
|
b.options.mode||"effect"),h=parseInt(b.options.percent,10)||(parseInt(b.options.percent,10)==0?0:g=="hide"?0:100),i=b.options.direction||"both",f=b.options.origin;if(g!="effect"){e.origin=f||["middle","center"];e.restore=true}f={height:a.height(),width:a.width()};a.from=b.options.from||(g=="show"?{height:0,width:0}:f);h={y:i!="horizontal"?h/100:1,x:i!="vertical"?h/100:1};a.to={height:f.height*h.y,width:f.width*h.x};if(b.options.fade){if(g=="show"){a.from.opacity=0;a.to.opacity=1}if(g=="hide"){a.from.opacity=
|
||||||
|
1;a.to.opacity=0}}e.from=a.from;e.to=a.to;e.mode=g;a.effect("size",e,b.duration,b.callback);a.dequeue()})};c.effects.size=function(b){return this.queue(function(){var a=c(this),e=["position","top","bottom","left","right","width","height","overflow","opacity"],g=["position","top","bottom","left","right","overflow","opacity"],h=["width","height","overflow"],i=["fontSize"],f=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],k=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],
|
||||||
|
p=c.effects.setMode(a,b.options.mode||"effect"),n=b.options.restore||false,m=b.options.scale||"both",l=b.options.origin,j={height:a.height(),width:a.width()};a.from=b.options.from||j;a.to=b.options.to||j;if(l){l=c.effects.getBaseline(l,j);a.from.top=(j.height-a.from.height)*l.y;a.from.left=(j.width-a.from.width)*l.x;a.to.top=(j.height-a.to.height)*l.y;a.to.left=(j.width-a.to.width)*l.x}var d={from:{y:a.from.height/j.height,x:a.from.width/j.width},to:{y:a.to.height/j.height,x:a.to.width/j.width}};
|
||||||
|
if(m=="box"||m=="both"){if(d.from.y!=d.to.y){e=e.concat(f);a.from=c.effects.setTransition(a,f,d.from.y,a.from);a.to=c.effects.setTransition(a,f,d.to.y,a.to)}if(d.from.x!=d.to.x){e=e.concat(k);a.from=c.effects.setTransition(a,k,d.from.x,a.from);a.to=c.effects.setTransition(a,k,d.to.x,a.to)}}if(m=="content"||m=="both")if(d.from.y!=d.to.y){e=e.concat(i);a.from=c.effects.setTransition(a,i,d.from.y,a.from);a.to=c.effects.setTransition(a,i,d.to.y,a.to)}c.effects.save(a,n?e:g);a.show();c.effects.createWrapper(a);
|
||||||
|
a.css("overflow","hidden").css(a.from);if(m=="content"||m=="both"){f=f.concat(["marginTop","marginBottom"]).concat(i);k=k.concat(["marginLeft","marginRight"]);h=e.concat(f).concat(k);a.find("*[width]").each(function(){child=c(this);n&&c.effects.save(child,h);var o={height:child.height(),width:child.width()};child.from={height:o.height*d.from.y,width:o.width*d.from.x};child.to={height:o.height*d.to.y,width:o.width*d.to.x};if(d.from.y!=d.to.y){child.from=c.effects.setTransition(child,f,d.from.y,child.from);
|
||||||
|
child.to=c.effects.setTransition(child,f,d.to.y,child.to)}if(d.from.x!=d.to.x){child.from=c.effects.setTransition(child,k,d.from.x,child.from);child.to=c.effects.setTransition(child,k,d.to.x,child.to)}child.css(child.from);child.animate(child.to,b.duration,b.options.easing,function(){n&&c.effects.restore(child,h)})})}a.animate(a.to,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){a.to.opacity===0&&a.css("opacity",a.from.opacity);p=="hide"&&a.hide();c.effects.restore(a,
|
||||||
|
n?e:g);c.effects.removeWrapper(a);b.callback&&b.callback.apply(this,arguments);a.dequeue()}})})}})(jQuery);
|
||||||
|
;/*
|
||||||
|
* jQuery UI Effects Shake 1.8.16
|
||||||
|
*
|
||||||
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
||||||
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||||
|
* http://jquery.org/license
|
||||||
|
*
|
||||||
|
* http://docs.jquery.com/UI/Effects/Shake
|
||||||
|
*
|
||||||
|
* Depends:
|
||||||
|
* jquery.effects.core.js
|
||||||
|
*/
|
||||||
|
(function(d){d.effects.shake=function(a){return this.queue(function(){var b=d(this),j=["position","top","bottom","left","right"];d.effects.setMode(b,a.options.mode||"effect");var c=a.options.direction||"left",e=a.options.distance||20,l=a.options.times||3,f=a.duration||a.options.duration||140;d.effects.save(b,j);b.show();d.effects.createWrapper(b);var g=c=="up"||c=="down"?"top":"left",h=c=="up"||c=="left"?"pos":"neg";c={};var i={},k={};c[g]=(h=="pos"?"-=":"+=")+e;i[g]=(h=="pos"?"+=":"-=")+e*2;k[g]=
|
||||||
|
(h=="pos"?"-=":"+=")+e*2;b.animate(c,f,a.options.easing);for(e=1;e<l;e++)b.animate(i,f,a.options.easing).animate(k,f,a.options.easing);b.animate(i,f,a.options.easing).animate(c,f/2,a.options.easing,function(){d.effects.restore(b,j);d.effects.removeWrapper(b);a.callback&&a.callback.apply(this,arguments)});b.queue("fx",function(){b.dequeue()});b.dequeue()})}})(jQuery);
|
||||||
|
;/*
|
||||||
|
* jQuery UI Effects Slide 1.8.16
|
||||||
|
*
|
||||||
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
||||||
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||||
|
* http://jquery.org/license
|
||||||
|
*
|
||||||
|
* http://docs.jquery.com/UI/Effects/Slide
|
||||||
|
*
|
||||||
|
* Depends:
|
||||||
|
* jquery.effects.core.js
|
||||||
|
*/
|
||||||
|
(function(c){c.effects.slide=function(d){return this.queue(function(){var a=c(this),h=["position","top","bottom","left","right"],f=c.effects.setMode(a,d.options.mode||"show"),b=d.options.direction||"left";c.effects.save(a,h);a.show();c.effects.createWrapper(a).css({overflow:"hidden"});var g=b=="up"||b=="down"?"top":"left";b=b=="up"||b=="left"?"pos":"neg";var e=d.options.distance||(g=="top"?a.outerHeight({margin:true}):a.outerWidth({margin:true}));if(f=="show")a.css(g,b=="pos"?isNaN(e)?"-"+e:-e:e);
|
||||||
|
var i={};i[g]=(f=="show"?b=="pos"?"+=":"-=":b=="pos"?"-=":"+=")+e;a.animate(i,{queue:false,duration:d.duration,easing:d.options.easing,complete:function(){f=="hide"&&a.hide();c.effects.restore(a,h);c.effects.removeWrapper(a);d.callback&&d.callback.apply(this,arguments);a.dequeue()}})})}})(jQuery);
|
||||||
|
;/*
|
||||||
|
* jQuery UI Effects Transfer 1.8.16
|
||||||
|
*
|
||||||
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
||||||
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||||||
|
* http://jquery.org/license
|
||||||
|
*
|
||||||
|
* http://docs.jquery.com/UI/Effects/Transfer
|
||||||
|
*
|
||||||
|
* Depends:
|
||||||
|
* jquery.effects.core.js
|
||||||
|
*/
|
||||||
|
(function(e){e.effects.transfer=function(a){return this.queue(function(){var b=e(this),c=e(a.options.to),d=c.offset();c={top:d.top,left:d.left,height:c.innerHeight(),width:c.innerWidth()};d=b.offset();var f=e('<div class="ui-effects-transfer"></div>').appendTo(document.body).addClass(a.options.className).css({top:d.top,left:d.left,height:b.innerHeight(),width:b.innerWidth(),position:"absolute"}).animate(c,a.duration,a.options.easing,function(){f.remove();a.callback&&a.callback.apply(b[0],arguments);
|
||||||
|
b.dequeue()})})}})(jQuery);
|
||||||
|
;
|
||||||
4
deployed/xef/libraries/xef/assets/js/modernizr.min.js
vendored
Normal file
159
deployed/xef/libraries/xef/assets/less/admin.less
Normal file
@ -0,0 +1,159 @@
|
|||||||
|
// ADMIN STYLES
|
||||||
|
// ------------
|
||||||
|
//Joomla Default style override all need !important tag
|
||||||
|
ul.adminformlist, ul.adminformlist > li{margin: 5px 0 !important; .clearfix();}
|
||||||
|
//input[type=text]{margin: 0 !important;}
|
||||||
|
.title span{background: none !important;padding-left: 25px !important;}
|
||||||
|
fieldset.panelform label[id $='-lbl'],.pre-text{
|
||||||
|
min-width: 130px !important;
|
||||||
|
max-width: 130px !important;
|
||||||
|
padding-right: 20px !important;
|
||||||
|
text-align: right;
|
||||||
|
font-size: 11px;
|
||||||
|
color: #656565;
|
||||||
|
text-shadow: 1px 1px 1px #fff;
|
||||||
|
font-family: "Segoe UI", Arial, Helvetica, sans-serif;
|
||||||
|
}
|
||||||
|
#jform_position{
|
||||||
|
margin: 0; padding: 2px 7px;
|
||||||
|
}
|
||||||
|
div.blank a.btn{margin-left: -25px;margin-top: 0;}
|
||||||
|
div#toolbar-box div.m { padding: 5px 10px 20px 0 !important;}
|
||||||
|
#system-message > .message > ul { background-color: transparent !important; border: none !important; margin: 0 20px; padding: 0 !important;}
|
||||||
|
#system-message > .message > ul li{text-align: center; font-size: 14px; margin-bottom: 0;}
|
||||||
|
div.current fieldset.radio label{margin:0 !important;}
|
||||||
|
// Admin UI
|
||||||
|
.pane-sliders {
|
||||||
|
.panel{
|
||||||
|
margin: 0 !important;
|
||||||
|
border-bottom: transparent !important;
|
||||||
|
border-top: solid 1px #ccc;
|
||||||
|
border-left: solid 1px #ccc;
|
||||||
|
border-right: solid 1px #ccc;
|
||||||
|
|
||||||
|
}
|
||||||
|
.panel:last-child{ border-bottom: solid 1px #ccc !important;}
|
||||||
|
.panel h3{}
|
||||||
|
.content{}
|
||||||
|
}
|
||||||
|
input[type=text]{margin: 0;}
|
||||||
|
.chzn-container{
|
||||||
|
min-width: 280px;
|
||||||
|
max-width: 280px;
|
||||||
|
.chzn-drop{ min-width: 280px;}
|
||||||
|
}
|
||||||
|
|
||||||
|
//Content Source list
|
||||||
|
.cs-btn:first-letter{text-transform: uppercase}
|
||||||
|
.cs-btn span{background: url(../images/content-source-icons-mini.png) no-repeat -4px -6px;padding-left: 21px;line-height: 21px;padding-bottom: 2px;padding-right: 8px;}
|
||||||
|
.cs-btn{position: relative;}
|
||||||
|
.cs-btn:link{ color: #555;}
|
||||||
|
.cs-btn:after{
|
||||||
|
border-bottom-width: 5px;
|
||||||
|
border-right-width: 5px;
|
||||||
|
border-top-width: 5px;
|
||||||
|
border-bottom-color: transparent;
|
||||||
|
border-left-color: transparent;
|
||||||
|
border-right-color: transparent;
|
||||||
|
border-style: solid;
|
||||||
|
.opacity(75);
|
||||||
|
position: absolute;
|
||||||
|
top: 9px;
|
||||||
|
right: 6px;
|
||||||
|
content: '';
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
.cs-list{
|
||||||
|
li{
|
||||||
|
float: left;
|
||||||
|
position: relative;
|
||||||
|
a{
|
||||||
|
background: url(../images/content-source-icons.png) no-repeat 0 0;
|
||||||
|
width: 106px;
|
||||||
|
padding-top: 83px;
|
||||||
|
display: inline-block;
|
||||||
|
text-align: center;
|
||||||
|
font-size: 20px;
|
||||||
|
text-decoration: none;
|
||||||
|
text-transform: uppercase;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
.joomla.notavailable{background-position: 0 -141px;}
|
||||||
|
.k2{background-position: -109px 0;}
|
||||||
|
.k2.notavailable {background-position: -109px -141px;}
|
||||||
|
.easyblog {background-position: -216px 0;}
|
||||||
|
.easyblog.notavailable {background-position: -216px -141px;}
|
||||||
|
.flickr {background-position: -313px 0;}
|
||||||
|
.flickr.notavailable {background-position: -313px -141px;}
|
||||||
|
.youtube {background-position: -404px 0;}
|
||||||
|
.youtube.notavailable {background-position: -404px -141px;}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
//Applied icon
|
||||||
|
#JOOMLA-options a,
|
||||||
|
#K2-options a,
|
||||||
|
#EASYBLOG-options a,
|
||||||
|
#FLICKR-options a,
|
||||||
|
#YOUTUBE-options a,
|
||||||
|
.cs-btn span{
|
||||||
|
background-image: url(../images/content-source-icons-mini.png);
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-position: -5px 0;
|
||||||
|
}
|
||||||
|
//Joomla Icons
|
||||||
|
#JOOMLA-options a{background-position: -8px -53px;}
|
||||||
|
.cs-btn.joomla span{background-position: -9px -53px;}
|
||||||
|
//K2 Icons
|
||||||
|
#K2-options a{background-position: -8px -89px;}
|
||||||
|
.cs-btn.k2 span{background-position: -9px -89px;}
|
||||||
|
//Easyblog
|
||||||
|
#EASYBLOG-options a{background-position: -8px -125px;}
|
||||||
|
.cs-btn.easyblog span{background-position: -9px -124px;}
|
||||||
|
//Flickr
|
||||||
|
#FLICKR-options a{background-position: -8px -160px;}
|
||||||
|
.cs-btn.flickr span a{background-position: -9px -160px;}
|
||||||
|
//Flickr
|
||||||
|
#YOUTUBE-options a{background-position: -8px -18px;}
|
||||||
|
.cs-btn.youtube span{background-position: -9px -18px;}
|
||||||
|
|
||||||
|
#GENERAL_SETTINGS-options a {
|
||||||
|
background: url(../images/data-source.png) no-repeat 1px 0px;
|
||||||
|
}
|
||||||
|
#INTERFACE_SETTINGS-options a{background: url(../images/interface.png) no-repeat 1px 0px;}
|
||||||
|
#BEHAVIOR_SETTINGS-options a{background: url(../images/behavior.png) no-repeat 1px 0px;}
|
||||||
|
#ADVANCE-options a,
|
||||||
|
#ADVANCED-options a{background: url(../images/advance.png) no-repeat 1px 0px;}
|
||||||
|
|
||||||
|
//pre-text
|
||||||
|
.pre-text{display: block;text-align: left}
|
||||||
|
//Spacer
|
||||||
|
.spacer.hasText{
|
||||||
|
.gradientBar(#fff, #f5f5f5) ;
|
||||||
|
color: #6d6d6d;
|
||||||
|
text-shadow: 1px 1px 1px #fff;
|
||||||
|
font-size: 10px;
|
||||||
|
font-weight: bold;
|
||||||
|
line-height: 24px;
|
||||||
|
padding: 0 30px;
|
||||||
|
cursor: pointer;
|
||||||
|
margin: 15px -20px;
|
||||||
|
clear:both;
|
||||||
|
text-transform: uppercase;
|
||||||
|
border-top: 1px solid #ddd;
|
||||||
|
border-bottom: 1px solid #ddd;
|
||||||
|
|
||||||
|
span{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//Field wrap
|
||||||
|
.field-wrap{ min-width: 160px;}
|
||||||
|
.field-wrap.input-mini{max-width: 110px; min-width: 90px;}
|
||||||
|
|
||||||
|
//Tooltip
|
||||||
|
.tip-wrap{z-index: 9999;}
|
||||||
|
|
||||||
|
// Remove chossen selector list for layout selector with image picker
|
||||||
|
.image_picker_selector + #jform_params_layout_chzn{ display: none; }
|
||||||
65
deployed/xef/libraries/xef/assets/less/alerts.less
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
//
|
||||||
|
// Alerts
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
// Base styles
|
||||||
|
// -------------------------
|
||||||
|
|
||||||
|
.alert {
|
||||||
|
padding: 8px 35px 8px 14px;
|
||||||
|
margin-bottom: @baseLineHeight;
|
||||||
|
text-shadow: 0 1px 0 rgba(255,255,255,.5);
|
||||||
|
background-color: @warningBackground;
|
||||||
|
border: 1px solid @warningBorder;
|
||||||
|
.border-radius(@baseBorderRadius);
|
||||||
|
color: @warningText;
|
||||||
|
}
|
||||||
|
.alert h4 {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
.alert p{ margin: 0;}
|
||||||
|
// Adjust close link position
|
||||||
|
.alert .close {
|
||||||
|
position: relative;
|
||||||
|
top: -2px;
|
||||||
|
right: -21px;
|
||||||
|
line-height: @baseLineHeight;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Alternate styles
|
||||||
|
// -------------------------
|
||||||
|
|
||||||
|
.alert-success {
|
||||||
|
background-color: @successBackground;
|
||||||
|
border-color: @successBorder;
|
||||||
|
color: @successText;
|
||||||
|
}
|
||||||
|
.alert-danger,
|
||||||
|
.alert-error {
|
||||||
|
background-color: @errorBackground;
|
||||||
|
border-color: @errorBorder;
|
||||||
|
color: @errorText;
|
||||||
|
}
|
||||||
|
.alert-info {
|
||||||
|
background-color: @infoBackground;
|
||||||
|
border-color: @infoBorder;
|
||||||
|
color: @infoText;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Block alerts
|
||||||
|
// -------------------------
|
||||||
|
|
||||||
|
.alert-block {
|
||||||
|
padding-top: 14px;
|
||||||
|
padding-bottom: 14px;
|
||||||
|
}
|
||||||
|
.alert-block > p,
|
||||||
|
.alert-block > ul {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
.alert-block p + p {
|
||||||
|
margin-top: 5px;
|
||||||
|
}
|
||||||
42
deployed/xef/libraries/xef/assets/less/bootstrap.less
vendored
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
/*!
|
||||||
|
* Bootstrap v2.0.3
|
||||||
|
*
|
||||||
|
* Copyright 2012 Twitter, Inc
|
||||||
|
* Licensed under the Apache License v2.0
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Designed and built with all the love in the world @twitter by @mdo and @fat.
|
||||||
|
*/
|
||||||
|
|
||||||
|
// CSS Reset
|
||||||
|
@import "reset.less";
|
||||||
|
|
||||||
|
// Core variables and mixins
|
||||||
|
@import "variables.less"; // Modify this for custom colors, font-sizes, etc
|
||||||
|
@import "mixins.less";
|
||||||
|
|
||||||
|
|
||||||
|
// Base CSS
|
||||||
|
@import "type.less";
|
||||||
|
@import "forms.less";
|
||||||
|
|
||||||
|
// Components: common
|
||||||
|
//@import "sprites.less";
|
||||||
|
@import "component-animations.less";
|
||||||
|
@import "close.less";
|
||||||
|
|
||||||
|
// Components: Buttons & Alerts
|
||||||
|
@import "buttons.less";
|
||||||
|
@import "button-groups.less";
|
||||||
|
@import "alerts.less";
|
||||||
|
|
||||||
|
// Components: Popovers
|
||||||
|
@import 'tooltip.less';
|
||||||
|
@import 'popovers.less';
|
||||||
|
@import "modals.less";
|
||||||
|
|
||||||
|
// Utility classes
|
||||||
|
@import "utilities.less"; // Has to be last to override when necessary
|
||||||
|
|
||||||
|
// Admin settings
|
||||||
|
@import "admin.less";
|
||||||
242
deployed/xef/libraries/xef/assets/less/button-groups.less
Normal file
@ -0,0 +1,242 @@
|
|||||||
|
//
|
||||||
|
// Button groups
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
// Make the div behave like a button
|
||||||
|
.btn-group {
|
||||||
|
position: relative;
|
||||||
|
display: inline-block;
|
||||||
|
.ie7-inline-block();
|
||||||
|
font-size: 0; // remove as part 1 of font-size inline-block hack
|
||||||
|
vertical-align: middle; // match .btn alignment given font-size hack above
|
||||||
|
white-space: nowrap; // prevent buttons from wrapping when in tight spaces (e.g., the table on the tests page)
|
||||||
|
.ie7-restore-left-whitespace();
|
||||||
|
}
|
||||||
|
|
||||||
|
// Space out series of button groups
|
||||||
|
.btn-group + .btn-group {
|
||||||
|
margin-left: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Optional: Group multiple button groups together for a toolbar
|
||||||
|
.btn-toolbar {
|
||||||
|
font-size: 0; // Hack to remove whitespace that results from using inline-block
|
||||||
|
margin-top: @baseLineHeight / 2;
|
||||||
|
margin-bottom: @baseLineHeight / 2;
|
||||||
|
.btn + .btn,
|
||||||
|
.btn-group + .btn,
|
||||||
|
.btn + .btn-group {
|
||||||
|
margin-left: 5px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Float them, remove border radius, then re-add to first and last elements
|
||||||
|
.btn-group > .btn {
|
||||||
|
position: relative;
|
||||||
|
.border-radius(0);
|
||||||
|
}
|
||||||
|
.btn-group > .btn + .btn {
|
||||||
|
margin-left: -1px;
|
||||||
|
}
|
||||||
|
.btn-group > .btn,
|
||||||
|
.btn-group > .dropdown-menu {
|
||||||
|
font-size: @baseFontSize; // redeclare as part 2 of font-size inline-block hack
|
||||||
|
}
|
||||||
|
|
||||||
|
// Reset fonts for other sizes
|
||||||
|
.btn-group > .btn-mini {
|
||||||
|
font-size: 11px;
|
||||||
|
}
|
||||||
|
.btn-group > .btn-small {
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
.btn-group > .btn-large {
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Set corners individual because sometimes a single button can be in a .btn-group and we need :first-child and :last-child to both match
|
||||||
|
.btn-group > .btn:first-child {
|
||||||
|
margin-left: 0;
|
||||||
|
-webkit-border-top-left-radius: 4px;
|
||||||
|
-moz-border-radius-topleft: 4px;
|
||||||
|
border-top-left-radius: 4px;
|
||||||
|
-webkit-border-bottom-left-radius: 4px;
|
||||||
|
-moz-border-radius-bottomleft: 4px;
|
||||||
|
border-bottom-left-radius: 4px;
|
||||||
|
}
|
||||||
|
// Need .dropdown-toggle since :last-child doesn't apply given a .dropdown-menu immediately after it
|
||||||
|
.btn-group > .btn:last-child,
|
||||||
|
.btn-group > .dropdown-toggle {
|
||||||
|
-webkit-border-top-right-radius: 4px;
|
||||||
|
-moz-border-radius-topright: 4px;
|
||||||
|
border-top-right-radius: 4px;
|
||||||
|
-webkit-border-bottom-right-radius: 4px;
|
||||||
|
-moz-border-radius-bottomright: 4px;
|
||||||
|
border-bottom-right-radius: 4px;
|
||||||
|
}
|
||||||
|
// Reset corners for large buttons
|
||||||
|
.btn-group > .btn.large:first-child {
|
||||||
|
margin-left: 0;
|
||||||
|
-webkit-border-top-left-radius: 6px;
|
||||||
|
-moz-border-radius-topleft: 6px;
|
||||||
|
border-top-left-radius: 6px;
|
||||||
|
-webkit-border-bottom-left-radius: 6px;
|
||||||
|
-moz-border-radius-bottomleft: 6px;
|
||||||
|
border-bottom-left-radius: 6px;
|
||||||
|
}
|
||||||
|
.btn-group > .btn.large:last-child,
|
||||||
|
.btn-group > .large.dropdown-toggle {
|
||||||
|
-webkit-border-top-right-radius: 6px;
|
||||||
|
-moz-border-radius-topright: 6px;
|
||||||
|
border-top-right-radius: 6px;
|
||||||
|
-webkit-border-bottom-right-radius: 6px;
|
||||||
|
-moz-border-radius-bottomright: 6px;
|
||||||
|
border-bottom-right-radius: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
// On hover/focus/active, bring the proper btn to front
|
||||||
|
.btn-group > .btn:hover,
|
||||||
|
.btn-group > .btn:focus,
|
||||||
|
.btn-group > .btn:active,
|
||||||
|
.btn-group > .btn.active {
|
||||||
|
z-index: 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
// On active and open, don't show outline
|
||||||
|
.btn-group .dropdown-toggle:active,
|
||||||
|
.btn-group.open .dropdown-toggle {
|
||||||
|
outline: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// Split button dropdowns
|
||||||
|
// ----------------------
|
||||||
|
|
||||||
|
// Give the line between buttons some depth
|
||||||
|
.btn-group > .btn + .dropdown-toggle {
|
||||||
|
padding-left: 8px;
|
||||||
|
padding-right: 8px;
|
||||||
|
.box-shadow(~"inset 1px 0 0 rgba(255,255,255,.125), inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05)");
|
||||||
|
*padding-top: 5px;
|
||||||
|
*padding-bottom: 5px;
|
||||||
|
}
|
||||||
|
.btn-group > .btn-mini + .dropdown-toggle {
|
||||||
|
padding-left: 5px;
|
||||||
|
padding-right: 5px;
|
||||||
|
*padding-top: 2px;
|
||||||
|
*padding-bottom: 2px;
|
||||||
|
}
|
||||||
|
.btn-group > .btn-small + .dropdown-toggle {
|
||||||
|
*padding-top: 5px;
|
||||||
|
*padding-bottom: 4px;
|
||||||
|
}
|
||||||
|
.btn-group > .btn-large + .dropdown-toggle {
|
||||||
|
padding-left: 12px;
|
||||||
|
padding-right: 12px;
|
||||||
|
*padding-top: 7px;
|
||||||
|
*padding-bottom: 7px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-group.open {
|
||||||
|
|
||||||
|
// The clickable button for toggling the menu
|
||||||
|
// Remove the gradient and set the same inset shadow as the :active state
|
||||||
|
.dropdown-toggle {
|
||||||
|
background-image: none;
|
||||||
|
.box-shadow(~"inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05)");
|
||||||
|
}
|
||||||
|
|
||||||
|
// Keep the hover's background when dropdown is open
|
||||||
|
.btn.dropdown-toggle {
|
||||||
|
background-color: @btnBackgroundHighlight;
|
||||||
|
}
|
||||||
|
.btn-primary.dropdown-toggle {
|
||||||
|
background-color: @btnPrimaryBackgroundHighlight;
|
||||||
|
}
|
||||||
|
.btn-warning.dropdown-toggle {
|
||||||
|
background-color: @btnWarningBackgroundHighlight;
|
||||||
|
}
|
||||||
|
.btn-danger.dropdown-toggle {
|
||||||
|
background-color: @btnDangerBackgroundHighlight;
|
||||||
|
}
|
||||||
|
.btn-success.dropdown-toggle {
|
||||||
|
background-color: @btnSuccessBackgroundHighlight;
|
||||||
|
}
|
||||||
|
.btn-info.dropdown-toggle {
|
||||||
|
background-color: @btnInfoBackgroundHighlight;
|
||||||
|
}
|
||||||
|
.btn-inverse.dropdown-toggle {
|
||||||
|
background-color: @btnInverseBackgroundHighlight;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Reposition the caret
|
||||||
|
.btn .caret {
|
||||||
|
margin-top: 8px;
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
// Carets in other button sizes
|
||||||
|
.btn-mini .caret,
|
||||||
|
.btn-small .caret,
|
||||||
|
.btn-large .caret {
|
||||||
|
margin-top: 6px;
|
||||||
|
}
|
||||||
|
.btn-large .caret {
|
||||||
|
border-left-width: 5px;
|
||||||
|
border-right-width: 5px;
|
||||||
|
border-top-width: 5px;
|
||||||
|
}
|
||||||
|
// Upside down carets for .dropup
|
||||||
|
.dropup .btn-large .caret {
|
||||||
|
border-bottom-width: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// Account for other colors
|
||||||
|
.btn-primary,
|
||||||
|
.btn-warning,
|
||||||
|
.btn-danger,
|
||||||
|
.btn-info,
|
||||||
|
.btn-success,
|
||||||
|
.btn-inverse {
|
||||||
|
.caret {
|
||||||
|
border-top-color: @white;
|
||||||
|
border-bottom-color: @white;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// Vertical button groups
|
||||||
|
// ----------------------
|
||||||
|
|
||||||
|
.btn-group-vertical {
|
||||||
|
display: inline-block; // makes buttons only take up the width they need
|
||||||
|
.ie7-inline-block();
|
||||||
|
}
|
||||||
|
.btn-group-vertical .btn {
|
||||||
|
display: block;
|
||||||
|
float: none;
|
||||||
|
width: 100%;
|
||||||
|
.border-radius(0);
|
||||||
|
}
|
||||||
|
.btn-group-vertical .btn + .btn {
|
||||||
|
margin-left: 0;
|
||||||
|
margin-top: -1px;
|
||||||
|
}
|
||||||
|
.btn-group-vertical .btn:first-child {
|
||||||
|
.border-radius(4px 4px 0 0);
|
||||||
|
}
|
||||||
|
.btn-group-vertical .btn:last-child {
|
||||||
|
.border-radius(0 0 4px 4px);
|
||||||
|
}
|
||||||
|
.btn-group-vertical .btn-large:first-child {
|
||||||
|
.border-radius(6px 6px 0 0);
|
||||||
|
}
|
||||||
|
.btn-group-vertical .btn-large:last-child {
|
||||||
|
.border-radius(0 0 6px 6px);
|
||||||
|
}
|
||||||
209
deployed/xef/libraries/xef/assets/less/buttons.less
Normal file
@ -0,0 +1,209 @@
|
|||||||
|
// BUTTON STYLES
|
||||||
|
// -------------
|
||||||
|
|
||||||
|
|
||||||
|
// Base styles
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
// Core
|
||||||
|
.btn {
|
||||||
|
display: inline-block;
|
||||||
|
.ie7-inline-block();
|
||||||
|
padding: 1px 14px !important;
|
||||||
|
margin: 3px 0 0; // For input.btn
|
||||||
|
font-size: @baseFontSize;
|
||||||
|
line-height: @baseLineHeight;
|
||||||
|
*line-height: 20px;
|
||||||
|
color: @gray;
|
||||||
|
text-align: center;
|
||||||
|
text-shadow: 1px 1px 1px @white;
|
||||||
|
vertical-align: middle;
|
||||||
|
cursor: pointer;
|
||||||
|
min-width: 34px !important;
|
||||||
|
.buttonBackground(@btnBackground, @btnBackgroundHighlight, @gray);
|
||||||
|
border: 1px solid @btnBorder;
|
||||||
|
*border: 0; // Remove the border to prevent IE7's black border on input:focus
|
||||||
|
border-bottom-color: darken(@btnBorder, 10%);
|
||||||
|
.border-radius(2px);
|
||||||
|
.ie7-restore-left-whitespace(); // Give IE7 some love
|
||||||
|
.box-shadow(~"inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05)");
|
||||||
|
}
|
||||||
|
|
||||||
|
// Hover state
|
||||||
|
.btn:hover {
|
||||||
|
color: @grayDark;
|
||||||
|
text-decoration: none;
|
||||||
|
background: @btnBackgroundHighlight;
|
||||||
|
*background-color: @btnBackgroundHighlight; /* Buttons in IE7 don't get borders, so darken on hover */
|
||||||
|
background-position: 0 0px;
|
||||||
|
|
||||||
|
// transition is only when going to hover, otherwise the background
|
||||||
|
// behind the gradient (there for IE<=9 fallback) gets mismatched
|
||||||
|
.transition(background-position .1s linear);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Focus state for keyboard and accessibility
|
||||||
|
.btn:focus {
|
||||||
|
.tab-focus();
|
||||||
|
}
|
||||||
|
|
||||||
|
// Active state
|
||||||
|
.btn.active,
|
||||||
|
.btn:active {
|
||||||
|
background-color: darken(@white, 10%);
|
||||||
|
background-color: darken(@white, 15%) e("\9");
|
||||||
|
background-image: none;
|
||||||
|
outline: 0;
|
||||||
|
.box-shadow(~"inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05)");
|
||||||
|
}
|
||||||
|
|
||||||
|
// Disabled state
|
||||||
|
.btn.disabled,
|
||||||
|
.btn[disabled] {
|
||||||
|
cursor: default;
|
||||||
|
background-color: darken(@white, 10%);
|
||||||
|
background-image: none;
|
||||||
|
.opacity(65);
|
||||||
|
.box-shadow(none);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Button Sizes
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
// Large
|
||||||
|
.btn-large {
|
||||||
|
padding: 9px 14px;
|
||||||
|
font-size: @baseFontSize + 2px;
|
||||||
|
line-height: normal;
|
||||||
|
.border-radius(5px);
|
||||||
|
}
|
||||||
|
.btn-large [class^="icon-"] {
|
||||||
|
margin-top: 1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Small
|
||||||
|
.btn-small {
|
||||||
|
padding: 5px 9px;
|
||||||
|
font-size: @baseFontSize - 2px;
|
||||||
|
line-height: @baseLineHeight - 2px;
|
||||||
|
}
|
||||||
|
.btn-small [class^="icon-"] {
|
||||||
|
margin-top: -1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Mini
|
||||||
|
.btn-mini {
|
||||||
|
padding: 2px 6px;
|
||||||
|
font-size: @baseFontSize - 2px;
|
||||||
|
line-height: @baseLineHeight - 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Alternate buttons
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
// Set text color
|
||||||
|
// -------------------------
|
||||||
|
.btn-primary,
|
||||||
|
.btn-primary:hover,
|
||||||
|
.btn-warning,
|
||||||
|
.btn-warning:hover,
|
||||||
|
.btn-danger,
|
||||||
|
.btn-danger:hover,
|
||||||
|
.btn-success,
|
||||||
|
.btn-success:hover,
|
||||||
|
.btn-info,
|
||||||
|
.btn-info:hover,
|
||||||
|
.btn-inverse,
|
||||||
|
.btn-inverse:hover {
|
||||||
|
color: @white;
|
||||||
|
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
|
||||||
|
}
|
||||||
|
// Provide *some* extra contrast for those who can get it
|
||||||
|
.btn-primary.active,
|
||||||
|
.btn-warning.active,
|
||||||
|
.btn-danger.active,
|
||||||
|
.btn-success.active,
|
||||||
|
.btn-info.active,
|
||||||
|
.btn-inverse.active {
|
||||||
|
color: rgba(255,255,255,.75);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Set the backgrounds
|
||||||
|
// -------------------------
|
||||||
|
.btn {
|
||||||
|
// reset here as of 2.0.3 due to Recess property order
|
||||||
|
border-color: #ccc;
|
||||||
|
border-color: rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25);
|
||||||
|
}
|
||||||
|
.btn-primary {
|
||||||
|
.buttonBackground(@btnPrimaryBackground, @btnPrimaryBackgroundHighlight);
|
||||||
|
}
|
||||||
|
// Warning appears are orange
|
||||||
|
.btn-warning {
|
||||||
|
.buttonBackground(@btnWarningBackground, @btnWarningBackgroundHighlight);
|
||||||
|
}
|
||||||
|
// Danger and error appear as red
|
||||||
|
.btn-danger {
|
||||||
|
.buttonBackground(@btnDangerBackground, @btnDangerBackgroundHighlight);
|
||||||
|
}
|
||||||
|
// Success appears as green
|
||||||
|
.btn-success {
|
||||||
|
.buttonBackground(@btnSuccessBackground, @btnSuccessBackgroundHighlight);
|
||||||
|
}
|
||||||
|
// Info appears as a neutral blue
|
||||||
|
.btn-info {
|
||||||
|
.buttonBackground(@btnInfoBackground, @btnInfoBackgroundHighlight);
|
||||||
|
}
|
||||||
|
// Inverse appears as dark gray
|
||||||
|
.btn-inverse {
|
||||||
|
.buttonBackground(@btnInverseBackground, @btnInverseBackgroundHighlight);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Cross-browser Jank
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
button.btn,
|
||||||
|
input[type="submit"].btn {
|
||||||
|
|
||||||
|
// Firefox 3.6 only I believe
|
||||||
|
&::-moz-focus-inner {
|
||||||
|
padding: 0;
|
||||||
|
border: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
// IE7 has some default padding on button controls
|
||||||
|
*padding-top: 2px;
|
||||||
|
*padding-bottom: 2px;
|
||||||
|
&.btn-large {
|
||||||
|
*padding-top: 7px;
|
||||||
|
*padding-bottom: 7px;
|
||||||
|
}
|
||||||
|
&.btn-small {
|
||||||
|
*padding-top: 3px;
|
||||||
|
*padding-bottom: 3px;
|
||||||
|
}
|
||||||
|
&.btn-mini {
|
||||||
|
*padding-top: 1px;
|
||||||
|
*padding-bottom: 1px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Radio Button Groups */
|
||||||
|
.radio.btn-group input[type=radio] {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.radio.btn-group > label:first-of-type {
|
||||||
|
margin-left: 0;
|
||||||
|
-webkit-border-bottom-left-radius: 4px;
|
||||||
|
border-bottom-left-radius: 4px;
|
||||||
|
-webkit-border-top-left-radius: 4px;
|
||||||
|
border-top-left-radius: 4px;
|
||||||
|
-moz-border-radius-bottomleft: 4px;
|
||||||
|
-moz-border-radius-topleft: 4px;
|
||||||
|
}
|
||||||
|
fieldset.radio.btn-group {
|
||||||
|
padding-left: 0;
|
||||||
|
}
|
||||||
392
deployed/xef/libraries/xef/assets/less/chosen.less
Normal file
@ -0,0 +1,392 @@
|
|||||||
|
/* @group Base */
|
||||||
|
.chzn-container {
|
||||||
|
font-size: 13px;
|
||||||
|
position: relative;
|
||||||
|
display: inline-block;
|
||||||
|
zoom: 1;
|
||||||
|
*display: inline;
|
||||||
|
}
|
||||||
|
.chzn-container .chzn-drop {
|
||||||
|
background: #fff;
|
||||||
|
border: 1px solid #aaa;
|
||||||
|
border-top: 0;
|
||||||
|
position: absolute;
|
||||||
|
top: 29px;
|
||||||
|
left: 0;
|
||||||
|
-webkit-box-shadow: 0 4px 5px rgba(0,0,0,.15);
|
||||||
|
-moz-box-shadow : 0 4px 5px rgba(0,0,0,.15);
|
||||||
|
-o-box-shadow : 0 4px 5px rgba(0,0,0,.15);
|
||||||
|
box-shadow : 0 4px 5px rgba(0,0,0,.15);
|
||||||
|
z-index: 999;
|
||||||
|
}
|
||||||
|
/* @end */
|
||||||
|
|
||||||
|
/* @group Single Chosen */
|
||||||
|
.chzn-container-single .chzn-single {
|
||||||
|
background-color: #ffffff;
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#eeeeee', GradientType=0 );
|
||||||
|
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(20%, #ffffff), color-stop(50%, #f6f6f6), color-stop(52%, #eeeeee), color-stop(100%, #f4f4f4));
|
||||||
|
background-image: -webkit-linear-gradient(top, #ffffff 20%, #f6f6f6 50%, #eeeeee 52%, #f4f4f4 100%);
|
||||||
|
background-image: -moz-linear-gradient(top, #ffffff 20%, #f6f6f6 50%, #eeeeee 52%, #f4f4f4 100%);
|
||||||
|
background-image: -o-linear-gradient(top, #ffffff 20%, #f6f6f6 50%, #eeeeee 52%, #f4f4f4 100%);
|
||||||
|
background-image: -ms-linear-gradient(top, #ffffff 20%, #f6f6f6 50%, #eeeeee 52%, #f4f4f4 100%);
|
||||||
|
background-image: linear-gradient(top, #ffffff 20%, #f6f6f6 50%, #eeeeee 52%, #f4f4f4 100%);
|
||||||
|
-webkit-border-radius: 5px;
|
||||||
|
-moz-border-radius : 5px;
|
||||||
|
border-radius : 5px;
|
||||||
|
-moz-background-clip : padding;
|
||||||
|
-webkit-background-clip: padding-box;
|
||||||
|
background-clip : padding-box;
|
||||||
|
border: 1px solid #aaaaaa;
|
||||||
|
-webkit-box-shadow: 0 0 3px #ffffff inset, 0 1px 1px rgba(0,0,0,0.1);
|
||||||
|
-moz-box-shadow : 0 0 3px #ffffff inset, 0 1px 1px rgba(0,0,0,0.1);
|
||||||
|
box-shadow : 0 0 3px #ffffff inset, 0 1px 1px rgba(0,0,0,0.1);
|
||||||
|
display: block;
|
||||||
|
overflow: hidden;
|
||||||
|
white-space: nowrap;
|
||||||
|
position: relative;
|
||||||
|
height: 23px;
|
||||||
|
line-height: 24px;
|
||||||
|
padding: 0 0 0 8px;
|
||||||
|
color: #444444;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
.chzn-container-single .chzn-default {
|
||||||
|
color: #999;
|
||||||
|
}
|
||||||
|
.chzn-container-single .chzn-single span {
|
||||||
|
margin-right: 26px;
|
||||||
|
display: block;
|
||||||
|
overflow: hidden;
|
||||||
|
white-space: nowrap;
|
||||||
|
-o-text-overflow: ellipsis;
|
||||||
|
-ms-text-overflow: ellipsis;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
.chzn-container-single .chzn-single abbr {
|
||||||
|
display: block;
|
||||||
|
position: absolute;
|
||||||
|
right: 26px;
|
||||||
|
top: 6px;
|
||||||
|
width: 12px;
|
||||||
|
height: 13px;
|
||||||
|
font-size: 1px;
|
||||||
|
background: url(../images/chosen-sprite.png) right top no-repeat;
|
||||||
|
}
|
||||||
|
.chzn-container-single .chzn-single abbr:hover {
|
||||||
|
background-position: right -11px;
|
||||||
|
}
|
||||||
|
.chzn-container-single .chzn-single div {
|
||||||
|
position: absolute;
|
||||||
|
right: 0;
|
||||||
|
top: 0;
|
||||||
|
display: block;
|
||||||
|
height: 100%;
|
||||||
|
width: 18px;
|
||||||
|
}
|
||||||
|
.chzn-container-single .chzn-single div b {
|
||||||
|
background: url('../images/sprite.png') no-repeat 0 0;
|
||||||
|
display: block;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
.chzn-container-single .chzn-search {
|
||||||
|
padding: 3px 4px;
|
||||||
|
position: relative;
|
||||||
|
margin: 0;
|
||||||
|
white-space: nowrap;
|
||||||
|
z-index: 1010;
|
||||||
|
}
|
||||||
|
.chzn-container-single .chzn-search input {
|
||||||
|
background: #fff url('../images/chosen-sprite.png') no-repeat 100% -22px;
|
||||||
|
background: url('../images/chosen-sprite.png') no-repeat 100% -22px, -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(1%, #eeeeee), color-stop(15%, #ffffff));
|
||||||
|
background: url('../images/chosen-sprite.png') no-repeat 100% -22px, -webkit-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
|
||||||
|
background: url('../images/chosen-sprite.png') no-repeat 100% -22px, -moz-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
|
||||||
|
background: url('../images/chosen-sprite.png') no-repeat 100% -22px, -o-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
|
||||||
|
background: url('../images/chosen-sprite.png') no-repeat 100% -22px, -ms-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
|
||||||
|
background: url('../images/chosen-sprite.png') no-repeat 100% -22px, linear-gradient(top, #eeeeee 1%, #ffffff 15%);
|
||||||
|
margin: 1px 0;
|
||||||
|
padding: 4px 20px 4px 5px;
|
||||||
|
outline: 0;
|
||||||
|
border: 1px solid #aaa;
|
||||||
|
font-family: sans-serif;
|
||||||
|
font-size: 1em;
|
||||||
|
}
|
||||||
|
.chzn-container-single .chzn-drop {
|
||||||
|
-webkit-border-radius: 0 0 4px 4px;
|
||||||
|
-moz-border-radius : 0 0 4px 4px;
|
||||||
|
border-radius : 0 0 4px 4px;
|
||||||
|
-moz-background-clip : padding;
|
||||||
|
-webkit-background-clip: padding-box;
|
||||||
|
background-clip : padding-box;
|
||||||
|
}
|
||||||
|
/* @end */
|
||||||
|
|
||||||
|
.chzn-container-single-nosearch .chzn-search input {
|
||||||
|
position: absolute;
|
||||||
|
left: -9000px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* @group Multi Chosen */
|
||||||
|
.chzn-container-multi .chzn-choices {
|
||||||
|
background-color: #fff;
|
||||||
|
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(1%, #eeeeee), color-stop(15%, #ffffff));
|
||||||
|
background-image: -webkit-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
|
||||||
|
background-image: -moz-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
|
||||||
|
background-image: -o-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
|
||||||
|
background-image: -ms-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
|
||||||
|
background-image: linear-gradient(top, #eeeeee 1%, #ffffff 15%);
|
||||||
|
border: 1px solid #aaa;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
cursor: text;
|
||||||
|
overflow: hidden;
|
||||||
|
height: auto !important;
|
||||||
|
height: 1%;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
.chzn-container-multi .chzn-choices li {
|
||||||
|
float: left;
|
||||||
|
list-style: none;
|
||||||
|
}
|
||||||
|
.chzn-container-multi .chzn-choices .search-field {
|
||||||
|
white-space: nowrap;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
.chzn-container-multi .chzn-choices .search-field input {
|
||||||
|
color: #666;
|
||||||
|
background: transparent !important;
|
||||||
|
border: 0 !important;
|
||||||
|
font-family: sans-serif;
|
||||||
|
font-size: 100%;
|
||||||
|
height: 15px;
|
||||||
|
padding: 5px;
|
||||||
|
margin: 1px 0;
|
||||||
|
outline: 0;
|
||||||
|
-webkit-box-shadow: none;
|
||||||
|
-moz-box-shadow : none;
|
||||||
|
-o-box-shadow : none;
|
||||||
|
box-shadow : none;
|
||||||
|
}
|
||||||
|
.chzn-container-multi .chzn-choices .search-field .default {
|
||||||
|
color: #999;
|
||||||
|
}
|
||||||
|
.chzn-container-multi .chzn-choices .search-choice {
|
||||||
|
-webkit-border-radius: 3px;
|
||||||
|
-moz-border-radius : 3px;
|
||||||
|
border-radius : 3px;
|
||||||
|
-moz-background-clip : padding;
|
||||||
|
-webkit-background-clip: padding-box;
|
||||||
|
background-clip : padding-box;
|
||||||
|
background-color: #e4e4e4;
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f4f4f4', endColorstr='#eeeeee', GradientType=0 );
|
||||||
|
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(20%, #f4f4f4), color-stop(50%, #f0f0f0), color-stop(52%, #e8e8e8), color-stop(100%, #eeeeee));
|
||||||
|
background-image: -webkit-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
|
||||||
|
background-image: -moz-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
|
||||||
|
background-image: -o-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
|
||||||
|
background-image: -ms-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
|
||||||
|
background-image: linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
|
||||||
|
-webkit-box-shadow: 0 0 2px #ffffff inset, 0 1px 0 rgba(0,0,0,0.05);
|
||||||
|
-moz-box-shadow : 0 0 2px #ffffff inset, 0 1px 0 rgba(0,0,0,0.05);
|
||||||
|
box-shadow : 0 0 2px #ffffff inset, 0 1px 0 rgba(0,0,0,0.05);
|
||||||
|
color: #333;
|
||||||
|
border: 1px solid #aaaaaa;
|
||||||
|
line-height: 13px;
|
||||||
|
padding: 3px 20px 3px 5px;
|
||||||
|
margin: 3px 0 3px 5px;
|
||||||
|
position: relative;
|
||||||
|
cursor: default;
|
||||||
|
}
|
||||||
|
.chzn-container-multi .chzn-choices .search-choice-focus {
|
||||||
|
background: #d4d4d4;
|
||||||
|
}
|
||||||
|
.chzn-container-multi .chzn-choices .search-choice .search-choice-close {
|
||||||
|
display: block;
|
||||||
|
position: absolute;
|
||||||
|
right: 3px;
|
||||||
|
top: 4px;
|
||||||
|
width: 12px;
|
||||||
|
height: 13px;
|
||||||
|
font-size: 1px;
|
||||||
|
background: url(../images/chosen-sprite.png) right top no-repeat;
|
||||||
|
}
|
||||||
|
.chzn-container-multi .chzn-choices .search-choice .search-choice-close:hover {
|
||||||
|
background-position: right -11px;
|
||||||
|
}
|
||||||
|
.chzn-container-multi .chzn-choices .search-choice-focus .search-choice-close {
|
||||||
|
background-position: right -11px;
|
||||||
|
}
|
||||||
|
/* @end */
|
||||||
|
|
||||||
|
/* @group Results */
|
||||||
|
.chzn-container .chzn-results {
|
||||||
|
margin: 0 4px 4px 0;
|
||||||
|
max-height: 100px;
|
||||||
|
padding: 0 0 0 4px;
|
||||||
|
position: relative;
|
||||||
|
overflow-x: hidden;
|
||||||
|
overflow-y: auto;
|
||||||
|
}
|
||||||
|
.chzn-container-multi .chzn-results {
|
||||||
|
margin: -1px 0 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
.chzn-container .chzn-results li {
|
||||||
|
display: none;
|
||||||
|
line-height: 15px;
|
||||||
|
padding: 5px 6px;
|
||||||
|
margin: 0;
|
||||||
|
list-style: none;
|
||||||
|
}
|
||||||
|
.chzn-container .chzn-results .active-result {
|
||||||
|
cursor: pointer;
|
||||||
|
display: list-item;
|
||||||
|
}
|
||||||
|
.chzn-container .chzn-results .highlighted {
|
||||||
|
background-color: #3875d7;
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#3875d7', endColorstr='#2a62bc', GradientType=0 );
|
||||||
|
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(20%, #3875d7), color-stop(90%, #2a62bc));
|
||||||
|
background-image: -webkit-linear-gradient(top, #3875d7 20%, #2a62bc 90%);
|
||||||
|
background-image: -moz-linear-gradient(top, #3875d7 20%, #2a62bc 90%);
|
||||||
|
background-image: -o-linear-gradient(top, #3875d7 20%, #2a62bc 90%);
|
||||||
|
background-image: -ms-linear-gradient(top, #3875d7 20%, #2a62bc 90%);
|
||||||
|
background-image: linear-gradient(top, #3875d7 20%, #2a62bc 90%);
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
.chzn-container .chzn-results li em {
|
||||||
|
background: #feffde;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
.chzn-container .chzn-results .highlighted em {
|
||||||
|
background: transparent;
|
||||||
|
}
|
||||||
|
.chzn-container .chzn-results .no-results {
|
||||||
|
background: #f4f4f4;
|
||||||
|
display: list-item;
|
||||||
|
}
|
||||||
|
.chzn-container .chzn-results .group-result {
|
||||||
|
cursor: default;
|
||||||
|
color: #999;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
.chzn-container .chzn-results .group-option {
|
||||||
|
padding-left: 15px;
|
||||||
|
}
|
||||||
|
.chzn-container-multi .chzn-drop .result-selected {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.chzn-container .chzn-results-scroll {
|
||||||
|
background: white;
|
||||||
|
margin: 0 4px;
|
||||||
|
position: absolute;
|
||||||
|
text-align: center;
|
||||||
|
width: 321px; /* This should by dynamic with js */
|
||||||
|
z-index: 1;
|
||||||
|
}
|
||||||
|
.chzn-container .chzn-results-scroll span {
|
||||||
|
display: inline-block;
|
||||||
|
height: 17px;
|
||||||
|
text-indent: -5000px;
|
||||||
|
width: 9px;
|
||||||
|
}
|
||||||
|
.chzn-container .chzn-results-scroll-down {
|
||||||
|
bottom: 0;
|
||||||
|
}
|
||||||
|
.chzn-container .chzn-results-scroll-down span {
|
||||||
|
background: url('../images/chosen-sprite.png') no-repeat -4px -3px;
|
||||||
|
}
|
||||||
|
.chzn-container .chzn-results-scroll-up span {
|
||||||
|
background: url('../images/chosen-sprite.png') no-repeat -22px -3px;
|
||||||
|
}
|
||||||
|
/* @end */
|
||||||
|
|
||||||
|
/* @group Active */
|
||||||
|
.chzn-container-active .chzn-single {
|
||||||
|
-webkit-box-shadow: 0 0 5px rgba(0,0,0,.3);
|
||||||
|
-moz-box-shadow : 0 0 5px rgba(0,0,0,.3);
|
||||||
|
-o-box-shadow : 0 0 5px rgba(0,0,0,.3);
|
||||||
|
box-shadow : 0 0 5px rgba(0,0,0,.3);
|
||||||
|
border: 1px solid #5897fb;
|
||||||
|
}
|
||||||
|
.chzn-container-active .chzn-single-with-drop {
|
||||||
|
border: 1px solid #aaa;
|
||||||
|
-webkit-box-shadow: 0 1px 0 #fff inset;
|
||||||
|
-moz-box-shadow : 0 1px 0 #fff inset;
|
||||||
|
-o-box-shadow : 0 1px 0 #fff inset;
|
||||||
|
box-shadow : 0 1px 0 #fff inset;
|
||||||
|
background-color: #eee;
|
||||||
|
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#eeeeee', endColorstr='#ffffff', GradientType=0 );
|
||||||
|
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(20%, #eeeeee), color-stop(80%, #ffffff));
|
||||||
|
background-image: -webkit-linear-gradient(top, #eeeeee 20%, #ffffff 80%);
|
||||||
|
background-image: -moz-linear-gradient(top, #eeeeee 20%, #ffffff 80%);
|
||||||
|
background-image: -o-linear-gradient(top, #eeeeee 20%, #ffffff 80%);
|
||||||
|
background-image: -ms-linear-gradient(top, #eeeeee 20%, #ffffff 80%);
|
||||||
|
background-image: linear-gradient(top, #eeeeee 20%, #ffffff 80%);
|
||||||
|
-webkit-border-bottom-left-radius : 0;
|
||||||
|
-webkit-border-bottom-right-radius: 0;
|
||||||
|
-moz-border-radius-bottomleft : 0;
|
||||||
|
-moz-border-radius-bottomright: 0;
|
||||||
|
border-bottom-left-radius : 0;
|
||||||
|
border-bottom-right-radius: 0;
|
||||||
|
}
|
||||||
|
.chzn-container-active .chzn-single-with-drop div {
|
||||||
|
background: transparent;
|
||||||
|
border-left: none;
|
||||||
|
}
|
||||||
|
.chzn-container-active .chzn-single-with-drop div b {
|
||||||
|
background-position: -18px 1px;
|
||||||
|
}
|
||||||
|
.chzn-container-active .chzn-choices {
|
||||||
|
-webkit-box-shadow: 0 0 5px rgba(0,0,0,.3);
|
||||||
|
-moz-box-shadow : 0 0 5px rgba(0,0,0,.3);
|
||||||
|
-o-box-shadow : 0 0 5px rgba(0,0,0,.3);
|
||||||
|
box-shadow : 0 0 5px rgba(0,0,0,.3);
|
||||||
|
border: 1px solid #5897fb;
|
||||||
|
}
|
||||||
|
.chzn-container-active .chzn-choices .search-field input {
|
||||||
|
color: #111 !important;
|
||||||
|
}
|
||||||
|
/* @end */
|
||||||
|
|
||||||
|
/* @group Disabled Support */
|
||||||
|
.chzn-disabled {
|
||||||
|
cursor: default;
|
||||||
|
opacity:0.5 !important;
|
||||||
|
}
|
||||||
|
.chzn-disabled .chzn-single {
|
||||||
|
cursor: default;
|
||||||
|
}
|
||||||
|
.chzn-disabled .chzn-choices .search-choice .search-choice-close {
|
||||||
|
cursor: default;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* @group Right to Left */
|
||||||
|
.chzn-rtl { text-align: right; }
|
||||||
|
.chzn-rtl .chzn-single { padding: 0 8px 0 0; overflow: visible; }
|
||||||
|
.chzn-rtl .chzn-single span { margin-left: 26px; margin-right: 0; direction: rtl; }
|
||||||
|
|
||||||
|
.chzn-rtl .chzn-single div { left: 3px; right: auto; }
|
||||||
|
.chzn-rtl .chzn-single abbr {
|
||||||
|
left: 26px;
|
||||||
|
right: auto;
|
||||||
|
}
|
||||||
|
.chzn-rtl .chzn-choices .search-field input { direction: rtl; }
|
||||||
|
.chzn-rtl .chzn-choices li { float: right; }
|
||||||
|
.chzn-rtl .chzn-choices .search-choice { padding: 3px 5px 3px 19px; margin: 3px 5px 3px 0; }
|
||||||
|
.chzn-rtl .chzn-choices .search-choice .search-choice-close { left: 4px; right: auto; background-position: right top;}
|
||||||
|
.chzn-rtl.chzn-container-single .chzn-results { margin: 0 0 4px 4px; padding: 0 4px 0 0; }
|
||||||
|
.chzn-rtl .chzn-results .group-option { padding-left: 0; padding-right: 15px; }
|
||||||
|
.chzn-rtl.chzn-container-active .chzn-single-with-drop div { border-right: none; }
|
||||||
|
.chzn-rtl .chzn-search input {
|
||||||
|
background: #fff url('../images/chosen-sprite.png') no-repeat -38px -22px;
|
||||||
|
background: url('../images/chosen-sprite.png') no-repeat -38px -22px, -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(1%, #eeeeee), color-stop(15%, #ffffff));
|
||||||
|
background: url('../images/chosen-sprite.png') no-repeat -38px -22px, -webkit-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
|
||||||
|
background: url('../images/chosen-sprite.png') no-repeat -38px -22px, -moz-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
|
||||||
|
background: url('../images/chosen-sprite.png') no-repeat -38px -22px, -o-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
|
||||||
|
background: url('../images/chosen-sprite.png') no-repeat -38px -22px, -ms-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
|
||||||
|
background: url('../images/chosen-sprite.png') no-repeat -38px -22px, linear-gradient(top, #eeeeee 1%, #ffffff 15%);
|
||||||
|
padding: 4px 5px 4px 20px;
|
||||||
|
direction: rtl;
|
||||||
|
}
|
||||||
|
/* @end */
|
||||||
31
deployed/xef/libraries/xef/assets/less/close.less
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
//
|
||||||
|
// Close icons
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
.close {
|
||||||
|
float: right;
|
||||||
|
font-size: 20px;
|
||||||
|
font-weight: bold;
|
||||||
|
line-height: @baseLineHeight;
|
||||||
|
color: @black;
|
||||||
|
text-shadow: 0 1px 0 rgba(255,255,255,1);
|
||||||
|
.opacity(20);
|
||||||
|
&:hover {
|
||||||
|
color: @black;
|
||||||
|
text-decoration: none;
|
||||||
|
cursor: pointer;
|
||||||
|
.opacity(40);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Additional properties for button version
|
||||||
|
// iOS requires the button element instead of an anchor tag.
|
||||||
|
// If you want the anchor version, it requires `href="#"`.
|
||||||
|
button.close {
|
||||||
|
padding: 0;
|
||||||
|
cursor: pointer;
|
||||||
|
background: transparent;
|
||||||
|
border: 0;
|
||||||
|
-webkit-appearance: none;
|
||||||
|
}
|
||||||
@ -0,0 +1,20 @@
|
|||||||
|
// COMPONENT ANIMATIONS
|
||||||
|
// --------------------
|
||||||
|
|
||||||
|
.fade {
|
||||||
|
.opacity(0);
|
||||||
|
.transition(opacity .15s linear);
|
||||||
|
&.in {
|
||||||
|
.opacity(100);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.collapse {
|
||||||
|
position: relative;
|
||||||
|
height: 0;
|
||||||
|
overflow: hidden;
|
||||||
|
.transition(height .35s ease);
|
||||||
|
&.in {
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
|
}
|
||||||
567
deployed/xef/libraries/xef/assets/less/forms.less
Normal file
@ -0,0 +1,567 @@
|
|||||||
|
// Forms.less
|
||||||
|
// Base styles for various input types, form layouts, and states
|
||||||
|
// -------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
// GENERAL STYLES
|
||||||
|
// --------------
|
||||||
|
|
||||||
|
// Make all forms have space below them
|
||||||
|
form {
|
||||||
|
margin: 0 0 @baseLineHeight;
|
||||||
|
}
|
||||||
|
|
||||||
|
fieldset {
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
border: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Set font for forms
|
||||||
|
label,
|
||||||
|
input,
|
||||||
|
button,
|
||||||
|
select,
|
||||||
|
textarea {
|
||||||
|
#font > .shorthand(@baseFontSize,normal,@baseLineHeight); // Set size, weight, line-height here
|
||||||
|
}
|
||||||
|
input,
|
||||||
|
button,
|
||||||
|
select,
|
||||||
|
textarea {
|
||||||
|
font-family: @baseFontFamily; // And only set font-family here for those that need it (note the missing label element)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Identify controls by their labels
|
||||||
|
label {
|
||||||
|
display: block;
|
||||||
|
margin-bottom: 5px;
|
||||||
|
color: @grayDark;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Inputs, Textareas, Selects
|
||||||
|
input,
|
||||||
|
textarea,
|
||||||
|
select,
|
||||||
|
.uneditable-input {
|
||||||
|
display: inline-block;
|
||||||
|
width: 210px;
|
||||||
|
height: @baseLineHeight;
|
||||||
|
padding: 4px;
|
||||||
|
margin-top: 9px;
|
||||||
|
margin-bottom: 9px;
|
||||||
|
font-size: @baseFontSize;
|
||||||
|
line-height: @baseLineHeight;
|
||||||
|
color: @gray;
|
||||||
|
background-color: @inputBackground;
|
||||||
|
border: 1px solid @inputBorder;
|
||||||
|
.border-radius(@inputBorderRadius);
|
||||||
|
}
|
||||||
|
.uneditable-textarea {
|
||||||
|
width: auto;
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Inputs within a label
|
||||||
|
label input,
|
||||||
|
label textarea,
|
||||||
|
label select {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Mini reset for unique input types
|
||||||
|
input[type="image"],
|
||||||
|
input[type="checkbox"],
|
||||||
|
input[type="radio"] {
|
||||||
|
width: auto;
|
||||||
|
height: auto;
|
||||||
|
padding: 0;
|
||||||
|
margin: 3px 0;
|
||||||
|
*margin-top: 0; /* IE7 */
|
||||||
|
line-height: normal;
|
||||||
|
cursor: pointer;
|
||||||
|
background-color: transparent;
|
||||||
|
border: 0 \9; /* IE9 and down */
|
||||||
|
.border-radius(0);
|
||||||
|
}
|
||||||
|
input[type="image"] {
|
||||||
|
border: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Reset the file input to browser defaults
|
||||||
|
input[type="file"] {
|
||||||
|
width: auto;
|
||||||
|
padding: initial;
|
||||||
|
line-height: initial;
|
||||||
|
background-color: @inputBackground;
|
||||||
|
background-color: initial;
|
||||||
|
border: initial;
|
||||||
|
.box-shadow(none);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Help out input buttons
|
||||||
|
input[type="button"],
|
||||||
|
input[type="reset"],
|
||||||
|
input[type="submit"] {
|
||||||
|
width: auto;
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Set the height of select and file controls to match text inputs
|
||||||
|
select,
|
||||||
|
input[type="file"] {
|
||||||
|
height: 28px; /* In IE7, the height of the select element cannot be changed by height, only font-size */
|
||||||
|
*margin-top: 4px; /* For IE7, add top margin to align select with labels */
|
||||||
|
line-height: 28px;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Reset line-height for IE
|
||||||
|
input[type="file"] {
|
||||||
|
line-height: 18px \9;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Chrome on Linux and Mobile Safari need background-color
|
||||||
|
select {
|
||||||
|
width: 220px; // default input width + 10px of padding that doesn't get applied
|
||||||
|
background-color: @inputBackground;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Make multiple select elements height not fixed
|
||||||
|
select[multiple],
|
||||||
|
select[size] {
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Remove shadow from image inputs
|
||||||
|
input[type="image"] {
|
||||||
|
.box-shadow(none);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Make textarea height behave
|
||||||
|
textarea {
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Hidden inputs
|
||||||
|
input[type="hidden"] {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// CHECKBOXES & RADIOS
|
||||||
|
// -------------------
|
||||||
|
|
||||||
|
// Indent the labels to position radios/checkboxes as hanging
|
||||||
|
.radio,
|
||||||
|
.checkbox {
|
||||||
|
min-height: 18px; // clear the floating input if there is no label text
|
||||||
|
padding-left: 18px;
|
||||||
|
}
|
||||||
|
.radio input[type="radio"],
|
||||||
|
.checkbox input[type="checkbox"] {
|
||||||
|
float: left;
|
||||||
|
margin-left: -18px;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Move the options list down to align with labels
|
||||||
|
.controls > .radio:first-child,
|
||||||
|
.controls > .checkbox:first-child {
|
||||||
|
padding-top: 5px; // has to be padding because margin collaspes
|
||||||
|
}
|
||||||
|
|
||||||
|
// Radios and checkboxes on same line
|
||||||
|
// TODO v3: Convert .inline to .control-inline
|
||||||
|
.radio.inline,
|
||||||
|
.checkbox.inline {
|
||||||
|
display: inline-block;
|
||||||
|
padding-top: 5px;
|
||||||
|
margin-bottom: 0;
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
.radio.inline + .radio.inline,
|
||||||
|
.checkbox.inline + .checkbox.inline {
|
||||||
|
margin-left: 10px; // space out consecutive inline controls
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// FOCUS STATE
|
||||||
|
// -----------
|
||||||
|
|
||||||
|
input,
|
||||||
|
textarea {
|
||||||
|
.box-shadow(inset 0 1px 1px rgba(0,0,0,.075));
|
||||||
|
@transition: border linear .2s, box-shadow linear .2s;
|
||||||
|
.transition(@transition);
|
||||||
|
}
|
||||||
|
input:focus,
|
||||||
|
textarea:focus {
|
||||||
|
border-color: rgba(82,168,236,.8);
|
||||||
|
outline: 0;
|
||||||
|
outline: thin dotted \9; /* IE6-9 */
|
||||||
|
.box-shadow(~"inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6)");
|
||||||
|
}
|
||||||
|
input[type="file"]:focus,
|
||||||
|
input[type="radio"]:focus,
|
||||||
|
input[type="checkbox"]:focus,
|
||||||
|
select:focus {
|
||||||
|
.tab-focus();
|
||||||
|
.box-shadow(none); // override for file inputs
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// INPUT SIZES
|
||||||
|
// -----------
|
||||||
|
|
||||||
|
// General classes for quick sizes
|
||||||
|
.input-mini input[type="text"] { width: 60px !important; }
|
||||||
|
.input-small input[type="text"] { width: 90px !important; }
|
||||||
|
.input-medium input[type="text"] { width: 150px !important; }
|
||||||
|
.input-large input[type="text"] { width: 210px !important; }
|
||||||
|
.input-xlarge input[type="text"] { width: 270px !important; }
|
||||||
|
.input-xxlarge input[type="text"] { width: 530px !important; }
|
||||||
|
|
||||||
|
// Grid style input sizes
|
||||||
|
input[class*="span"],
|
||||||
|
select[class*="span"],
|
||||||
|
textarea[class*="span"],
|
||||||
|
.uneditable-input[class*="span"],
|
||||||
|
// Redeclare since the fluid row class is more specific
|
||||||
|
.row-fluid input[class*="span"],
|
||||||
|
.row-fluid select[class*="span"],
|
||||||
|
.row-fluid textarea[class*="span"],
|
||||||
|
.row-fluid .uneditable-input[class*="span"] {
|
||||||
|
float: none;
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// GRID SIZING FOR INPUTS
|
||||||
|
// ----------------------
|
||||||
|
|
||||||
|
//#grid > .input (@gridColumnWidth, @gridGutterWidth);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// DISABLED STATE
|
||||||
|
// --------------
|
||||||
|
|
||||||
|
// Disabled and read-only inputs
|
||||||
|
input[disabled],
|
||||||
|
select[disabled],
|
||||||
|
textarea[disabled],
|
||||||
|
input[readonly],
|
||||||
|
select[readonly],
|
||||||
|
textarea[readonly] {
|
||||||
|
cursor: not-allowed;
|
||||||
|
background-color: @inputDisabledBackground;
|
||||||
|
border-color: #ddd;
|
||||||
|
}
|
||||||
|
// Explicitly reset the colors here
|
||||||
|
input[type="radio"][disabled],
|
||||||
|
input[type="checkbox"][disabled],
|
||||||
|
input[type="radio"][readonly],
|
||||||
|
input[type="checkbox"][readonly] {
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// FORM FIELD FEEDBACK STATES
|
||||||
|
// --------------------------
|
||||||
|
|
||||||
|
// Warning
|
||||||
|
.control-group.warning {
|
||||||
|
.formFieldState(@warningText, @warningText, @warningBackground);
|
||||||
|
}
|
||||||
|
// Error
|
||||||
|
.control-group.error {
|
||||||
|
.formFieldState(@errorText, @errorText, @errorBackground);
|
||||||
|
}
|
||||||
|
// Success
|
||||||
|
.control-group.success {
|
||||||
|
.formFieldState(@successText, @successText, @successBackground);
|
||||||
|
}
|
||||||
|
|
||||||
|
// HTML5 invalid states
|
||||||
|
// Shares styles with the .control-group.error above
|
||||||
|
input:focus:required:invalid,
|
||||||
|
textarea:focus:required:invalid,
|
||||||
|
select:focus:required:invalid {
|
||||||
|
color: #b94a48;
|
||||||
|
border-color: #ee5f5b;
|
||||||
|
&:focus {
|
||||||
|
border-color: darken(#ee5f5b, 10%);
|
||||||
|
.box-shadow(0 0 6px lighten(#ee5f5b, 20%));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// FORM ACTIONS
|
||||||
|
// ------------
|
||||||
|
|
||||||
|
.form-actions {
|
||||||
|
padding: (@baseLineHeight - 1) 20px @baseLineHeight;
|
||||||
|
margin-top: @baseLineHeight;
|
||||||
|
margin-bottom: @baseLineHeight;
|
||||||
|
background-color: @formActionsBackground;
|
||||||
|
border-top: 1px solid #ddd;
|
||||||
|
.clearfix(); // Adding clearfix to allow for .pull-right button containers
|
||||||
|
}
|
||||||
|
|
||||||
|
// For text that needs to appear as an input but should not be an input
|
||||||
|
.uneditable-input {
|
||||||
|
overflow: hidden; // prevent text from wrapping, but still cut it off like an input does
|
||||||
|
white-space: nowrap;
|
||||||
|
cursor: not-allowed;
|
||||||
|
background-color: @inputBackground;
|
||||||
|
border-color: #eee;
|
||||||
|
.box-shadow(inset 0 1px 2px rgba(0,0,0,.025));
|
||||||
|
}
|
||||||
|
|
||||||
|
// Placeholder text gets special styles; can't be bundled together though for some reason
|
||||||
|
.placeholder(@grayLight);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// HELP TEXT
|
||||||
|
// ---------
|
||||||
|
|
||||||
|
.help-block,
|
||||||
|
.help-inline {
|
||||||
|
color: @gray; // lighten the text some for contrast
|
||||||
|
}
|
||||||
|
|
||||||
|
.help-block {
|
||||||
|
display: block; // account for any element using help-block
|
||||||
|
margin-bottom: @baseLineHeight / 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
.help-inline {
|
||||||
|
display: inline-block;
|
||||||
|
.ie7-inline-block();
|
||||||
|
vertical-align: middle;
|
||||||
|
padding-left: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// INPUT GROUPS
|
||||||
|
// ------------
|
||||||
|
|
||||||
|
// Allow us to put symbols and text within the input field for a cleaner look
|
||||||
|
.input-prepend,
|
||||||
|
.input-append {
|
||||||
|
margin-bottom: 5px;
|
||||||
|
input,
|
||||||
|
select,
|
||||||
|
.uneditable-input {
|
||||||
|
position: relative; // placed here by default so that on :focus we can place the input above the .add-on for full border and box-shadow goodness
|
||||||
|
margin-bottom: 0; // prevent bottom margin from screwing up alignment in stacked forms
|
||||||
|
*margin-left: 0;
|
||||||
|
vertical-align: middle;
|
||||||
|
.border-radius(0 @inputBorderRadius @inputBorderRadius 0);
|
||||||
|
// Make input on top when focused so blue border and shadow always show
|
||||||
|
&:focus {
|
||||||
|
z-index: 2;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.uneditable-input {
|
||||||
|
border-left-color: #ccc;
|
||||||
|
}
|
||||||
|
.add-on {
|
||||||
|
display: inline-block;
|
||||||
|
width: auto;
|
||||||
|
height: @baseLineHeight;
|
||||||
|
min-width: 16px;
|
||||||
|
padding: 4px 5px;
|
||||||
|
font-weight: normal;
|
||||||
|
line-height: @baseLineHeight;
|
||||||
|
text-align: center;
|
||||||
|
text-shadow: 0 1px 0 @white;
|
||||||
|
vertical-align: middle;
|
||||||
|
background-color: @grayLighter;
|
||||||
|
border: 1px solid #ccc;
|
||||||
|
color: #888;
|
||||||
|
}
|
||||||
|
.add-on,
|
||||||
|
.btn {
|
||||||
|
margin-left: -1px;
|
||||||
|
.border-radius(0);
|
||||||
|
}
|
||||||
|
.active {
|
||||||
|
background-color: lighten(@green, 30);
|
||||||
|
border-color: @green;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.input-prepend {
|
||||||
|
.add-on,
|
||||||
|
.btn {
|
||||||
|
margin-right: -1px;
|
||||||
|
}
|
||||||
|
.add-on:first-child,
|
||||||
|
.btn:first-child {
|
||||||
|
.border-radius(@inputBorderRadius 0 0 @inputBorderRadius);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.input-append {
|
||||||
|
input,
|
||||||
|
select,
|
||||||
|
.uneditable-input {
|
||||||
|
.border-radius(@inputBorderRadius 0 0 @inputBorderRadius);
|
||||||
|
}
|
||||||
|
.uneditable-input {
|
||||||
|
border-right-color: #ccc;
|
||||||
|
border-left-color: #eee;
|
||||||
|
}
|
||||||
|
.add-on:last-child,
|
||||||
|
.btn:last-child {
|
||||||
|
.border-radius(0 @inputBorderRadius @inputBorderRadius 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// Remove all border-radius for inputs with both prepend and append
|
||||||
|
.input-prepend.input-append {
|
||||||
|
input,
|
||||||
|
select,
|
||||||
|
.uneditable-input {
|
||||||
|
.border-radius(0);
|
||||||
|
}
|
||||||
|
.add-on:first-child,
|
||||||
|
.btn:first-child {
|
||||||
|
margin-right: -1px;
|
||||||
|
.border-radius(@inputBorderRadius 0 0 @inputBorderRadius);
|
||||||
|
}
|
||||||
|
.add-on:last-child,
|
||||||
|
.btn:last-child {
|
||||||
|
margin-left: -1px;
|
||||||
|
.border-radius(0 @inputBorderRadius @inputBorderRadius 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// SEARCH FORM
|
||||||
|
// -----------
|
||||||
|
|
||||||
|
.search-query {
|
||||||
|
padding-right: 14px;
|
||||||
|
padding-right: 4px \9;
|
||||||
|
padding-left: 14px;
|
||||||
|
padding-left: 4px \9; /* IE7-8 doesn't have border-radius, so don't indent the padding */
|
||||||
|
margin-bottom: 0; // remove the default margin on all inputs
|
||||||
|
.border-radius(14px);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// HORIZONTAL & VERTICAL FORMS
|
||||||
|
// ---------------------------
|
||||||
|
|
||||||
|
// Common properties
|
||||||
|
// -----------------
|
||||||
|
|
||||||
|
.form-search,
|
||||||
|
.form-inline,
|
||||||
|
.form-horizontal {
|
||||||
|
input,
|
||||||
|
textarea,
|
||||||
|
select,
|
||||||
|
.help-inline,
|
||||||
|
.uneditable-input,
|
||||||
|
.input-prepend,
|
||||||
|
.input-append {
|
||||||
|
display: inline-block;
|
||||||
|
.ie7-inline-block();
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
// Re-hide hidden elements due to specifity
|
||||||
|
.hide {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.form-search label,
|
||||||
|
.form-inline label {
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
// Remove margin for input-prepend/-append
|
||||||
|
.form-search .input-append,
|
||||||
|
.form-inline .input-append,
|
||||||
|
.form-search .input-prepend,
|
||||||
|
.form-inline .input-prepend {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
// Inline checkbox/radio labels (remove padding on left)
|
||||||
|
.form-search .radio,
|
||||||
|
.form-search .checkbox,
|
||||||
|
.form-inline .radio,
|
||||||
|
.form-inline .checkbox {
|
||||||
|
padding-left: 0;
|
||||||
|
margin-bottom: 0;
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
// Remove float and margin, set to inline-block
|
||||||
|
.form-search .radio input[type="radio"],
|
||||||
|
.form-search .checkbox input[type="checkbox"],
|
||||||
|
.form-inline .radio input[type="radio"],
|
||||||
|
.form-inline .checkbox input[type="checkbox"] {
|
||||||
|
float: left;
|
||||||
|
margin-right: 3px;
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Margin to space out fieldsets
|
||||||
|
.control-group {
|
||||||
|
margin-bottom: @baseLineHeight / 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Legend collapses margin, so next element is responsible for spacing
|
||||||
|
legend + .control-group {
|
||||||
|
margin-top: @baseLineHeight;
|
||||||
|
-webkit-margin-top-collapse: separate;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Horizontal-specific styles
|
||||||
|
// --------------------------
|
||||||
|
|
||||||
|
.form-horizontal {
|
||||||
|
// Increase spacing between groups
|
||||||
|
.control-group {
|
||||||
|
margin-bottom: @baseLineHeight;
|
||||||
|
.clearfix();
|
||||||
|
}
|
||||||
|
// Float the labels left
|
||||||
|
.control-label {
|
||||||
|
float: left;
|
||||||
|
width: 140px;
|
||||||
|
padding-top: 5px;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
// Move over all input controls and content
|
||||||
|
.controls {
|
||||||
|
// Super jank IE7 fix to ensure the inputs in .input-append and input-prepend
|
||||||
|
// don't inherit the margin of the parent, in this case .controls
|
||||||
|
*display: inline-block;
|
||||||
|
*padding-left: 20px;
|
||||||
|
margin-left: 160px;
|
||||||
|
*margin-left: 0;
|
||||||
|
&:first-child {
|
||||||
|
*padding-left: 160px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// Remove bottom margin on block level help text since that's accounted for on .control-group
|
||||||
|
.help-block {
|
||||||
|
margin-top: @baseLineHeight / 2;
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
// Move over buttons in .form-actions to align with .controls
|
||||||
|
.form-actions {
|
||||||
|
padding-left: 160px;
|
||||||
|
}
|
||||||
|
}
|
||||||
1
deployed/xef/libraries/xef/assets/less/index.html
Normal file
@ -0,0 +1 @@
|
|||||||
|
<html><body bgcolor="#FFFFFF"></body></html>
|
||||||
525
deployed/xef/libraries/xef/assets/less/mixins.less
Normal file
@ -0,0 +1,525 @@
|
|||||||
|
//
|
||||||
|
// Mixins
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
// UTILITY MIXINS
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
// Clearfix
|
||||||
|
// --------
|
||||||
|
// For clearing floats like a boss h5bp.com/q
|
||||||
|
.clearfix {
|
||||||
|
*zoom: 1;
|
||||||
|
&:before,
|
||||||
|
&:after {
|
||||||
|
display: table;
|
||||||
|
content: "";
|
||||||
|
// Fixes Opera/contenteditable bug:
|
||||||
|
// http://nicolasgallagher.com/micro-clearfix-hack/#comment-36952
|
||||||
|
line-height: 0;
|
||||||
|
}
|
||||||
|
&:after {
|
||||||
|
clear: both;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Webkit-style focus
|
||||||
|
// ------------------
|
||||||
|
.tab-focus() {
|
||||||
|
// Default
|
||||||
|
outline: thin dotted #333;
|
||||||
|
// Webkit
|
||||||
|
outline: 5px auto -webkit-focus-ring-color;
|
||||||
|
outline-offset: -2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Center-align a block level element
|
||||||
|
// ----------------------------------
|
||||||
|
.center-block() {
|
||||||
|
display: block;
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
// IE7 inline-block
|
||||||
|
// ----------------
|
||||||
|
.ie7-inline-block() {
|
||||||
|
*display: inline; /* IE7 inline-block hack */
|
||||||
|
*zoom: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
// IE7 likes to collapse whitespace on either side of the inline-block elements.
|
||||||
|
// Ems because we're attempting to match the width of a space character. Left
|
||||||
|
// version is for form buttons, which typically come after other elements, and
|
||||||
|
// right version is for icons, which come before. Applying both is ok, but it will
|
||||||
|
// mean that space between those elements will be .6em (~2 space characters) in IE7,
|
||||||
|
// instead of the 1 space in other browsers.
|
||||||
|
.ie7-restore-left-whitespace() {
|
||||||
|
*margin-left: .3em;
|
||||||
|
|
||||||
|
&:first-child {
|
||||||
|
*margin-left: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.ie7-restore-right-whitespace() {
|
||||||
|
*margin-right: .3em;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Sizing shortcuts
|
||||||
|
// -------------------------
|
||||||
|
.size(@height, @width) {
|
||||||
|
width: @width;
|
||||||
|
height: @height;
|
||||||
|
}
|
||||||
|
.square(@size) {
|
||||||
|
.size(@size, @size);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Placeholder text
|
||||||
|
// -------------------------
|
||||||
|
.placeholder(@color: @placeholderText) {
|
||||||
|
&:-moz-placeholder {
|
||||||
|
color: @color;
|
||||||
|
}
|
||||||
|
&:-ms-input-placeholder {
|
||||||
|
color: @color;
|
||||||
|
}
|
||||||
|
&::-webkit-input-placeholder {
|
||||||
|
color: @color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Text overflow
|
||||||
|
// -------------------------
|
||||||
|
// Requires inline-block or block for proper styling
|
||||||
|
.text-overflow() {
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
// CSS image replacement
|
||||||
|
// -------------------------
|
||||||
|
// Source: https://github.com/h5bp/html5-boilerplate/commit/aa0396eae757
|
||||||
|
.hide-text {
|
||||||
|
font: 0/0 a;
|
||||||
|
color: transparent;
|
||||||
|
text-shadow: none;
|
||||||
|
background-color: transparent;
|
||||||
|
border: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// FONTS
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
#font {
|
||||||
|
#family {
|
||||||
|
.serif() {
|
||||||
|
font-family: @serifFontFamily;
|
||||||
|
}
|
||||||
|
.sans-serif() {
|
||||||
|
font-family: @sansFontFamily;
|
||||||
|
}
|
||||||
|
.monospace() {
|
||||||
|
font-family: @monoFontFamily;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.shorthand(@size: @baseFontSize, @weight: normal, @lineHeight: @baseLineHeight) {
|
||||||
|
font-size: @size;
|
||||||
|
font-weight: @weight;
|
||||||
|
line-height: @lineHeight;
|
||||||
|
}
|
||||||
|
.serif(@size: @baseFontSize, @weight: normal, @lineHeight: @baseLineHeight) {
|
||||||
|
#font > #family > .serif;
|
||||||
|
#font > .shorthand(@size, @weight, @lineHeight);
|
||||||
|
}
|
||||||
|
.sans-serif(@size: @baseFontSize, @weight: normal, @lineHeight: @baseLineHeight) {
|
||||||
|
#font > #family > .sans-serif;
|
||||||
|
#font > .shorthand(@size, @weight, @lineHeight);
|
||||||
|
}
|
||||||
|
.monospace(@size: @baseFontSize, @weight: normal, @lineHeight: @baseLineHeight) {
|
||||||
|
#font > #family > .monospace;
|
||||||
|
#font > .shorthand(@size, @weight, @lineHeight);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// FORMS
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
// Block level inputs
|
||||||
|
.input-block-level {
|
||||||
|
display: block;
|
||||||
|
width: 100%;
|
||||||
|
min-height: @inputHeight; // Make inputs at least the height of their button counterpart (base line-height + padding + border)
|
||||||
|
.box-sizing(border-box); // Makes inputs behave like true block-level elements
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// Mixin for form field states
|
||||||
|
.formFieldState(@textColor: #555, @borderColor: #ccc, @backgroundColor: #f5f5f5) {
|
||||||
|
// Set the text color
|
||||||
|
> label,
|
||||||
|
.help-block,
|
||||||
|
.help-inline {
|
||||||
|
color: @textColor;
|
||||||
|
}
|
||||||
|
// Style inputs accordingly
|
||||||
|
.checkbox,
|
||||||
|
.radio,
|
||||||
|
input,
|
||||||
|
select,
|
||||||
|
textarea {
|
||||||
|
color: @textColor;
|
||||||
|
}
|
||||||
|
input,
|
||||||
|
select,
|
||||||
|
textarea {
|
||||||
|
border-color: @borderColor;
|
||||||
|
.box-shadow(inset 0 1px 1px rgba(0,0,0,.075)); // Redeclare so transitions work
|
||||||
|
&:focus {
|
||||||
|
border-color: darken(@borderColor, 10%);
|
||||||
|
@shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 6px lighten(@borderColor, 20%);
|
||||||
|
.box-shadow(@shadow);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// Give a small background color for input-prepend/-append
|
||||||
|
.input-prepend .add-on,
|
||||||
|
.input-append .add-on {
|
||||||
|
color: @textColor;
|
||||||
|
background-color: @backgroundColor;
|
||||||
|
border-color: @textColor;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// CSS3 PROPERTIES
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
// Border Radius
|
||||||
|
.border-radius(@radius) {
|
||||||
|
-webkit-border-radius: @radius;
|
||||||
|
-moz-border-radius: @radius;
|
||||||
|
border-radius: @radius;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Single Corner Border Radius
|
||||||
|
.border-top-left-radius(@radius) {
|
||||||
|
-webkit-border-top-left-radius: @radius;
|
||||||
|
-moz-border-radius-topleft: @radius;
|
||||||
|
border-top-left-radius: @radius;
|
||||||
|
}
|
||||||
|
.border-top-right-radius(@radius) {
|
||||||
|
-webkit-border-top-right-radius: @radius;
|
||||||
|
-moz-border-radius-topright: @radius;
|
||||||
|
border-top-right-radius: @radius;
|
||||||
|
}
|
||||||
|
.border-bottom-right-radius(@radius) {
|
||||||
|
-webkit-border-bottom-right-radius: @radius;
|
||||||
|
-moz-border-radius-bottomright: @radius;
|
||||||
|
border-bottom-right-radius: @radius;
|
||||||
|
}
|
||||||
|
.border-bottom-left-radius(@radius) {
|
||||||
|
-webkit-border-bottom-left-radius: @radius;
|
||||||
|
-moz-border-radius-bottomleft: @radius;
|
||||||
|
border-bottom-left-radius: @radius;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Single Side Border Radius
|
||||||
|
.border-top-radius(@radius) {
|
||||||
|
.border-top-right-radius(@radius);
|
||||||
|
.border-top-left-radius(@radius);
|
||||||
|
}
|
||||||
|
.border-right-radius(@radius) {
|
||||||
|
.border-top-right-radius(@radius);
|
||||||
|
.border-bottom-right-radius(@radius);
|
||||||
|
}
|
||||||
|
.border-bottom-radius(@radius) {
|
||||||
|
.border-bottom-right-radius(@radius);
|
||||||
|
.border-bottom-left-radius(@radius);
|
||||||
|
}
|
||||||
|
.border-left-radius(@radius) {
|
||||||
|
.border-top-left-radius(@radius);
|
||||||
|
.border-bottom-left-radius(@radius);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Drop shadows
|
||||||
|
.box-shadow(@shadow) {
|
||||||
|
-webkit-box-shadow: @shadow;
|
||||||
|
-moz-box-shadow: @shadow;
|
||||||
|
box-shadow: @shadow;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Transitions
|
||||||
|
.transition(@transition) {
|
||||||
|
-webkit-transition: @transition;
|
||||||
|
-moz-transition: @transition;
|
||||||
|
-o-transition: @transition;
|
||||||
|
transition: @transition;
|
||||||
|
}
|
||||||
|
.transition-delay(@transition-delay) {
|
||||||
|
-webkit-transition-delay: @transition-delay;
|
||||||
|
-moz-transition-delay: @transition-delay;
|
||||||
|
-o-transition-delay: @transition-delay;
|
||||||
|
transition-delay: @transition-delay;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Transformations
|
||||||
|
.rotate(@degrees) {
|
||||||
|
-webkit-transform: rotate(@degrees);
|
||||||
|
-moz-transform: rotate(@degrees);
|
||||||
|
-ms-transform: rotate(@degrees);
|
||||||
|
-o-transform: rotate(@degrees);
|
||||||
|
transform: rotate(@degrees);
|
||||||
|
}
|
||||||
|
.scale(@ratio) {
|
||||||
|
-webkit-transform: scale(@ratio);
|
||||||
|
-moz-transform: scale(@ratio);
|
||||||
|
-ms-transform: scale(@ratio);
|
||||||
|
-o-transform: scale(@ratio);
|
||||||
|
transform: scale(@ratio);
|
||||||
|
}
|
||||||
|
.translate(@x, @y) {
|
||||||
|
-webkit-transform: translate(@x, @y);
|
||||||
|
-moz-transform: translate(@x, @y);
|
||||||
|
-ms-transform: translate(@x, @y);
|
||||||
|
-o-transform: translate(@x, @y);
|
||||||
|
transform: translate(@x, @y);
|
||||||
|
}
|
||||||
|
.skew(@x, @y) {
|
||||||
|
-webkit-transform: skew(@x, @y);
|
||||||
|
-moz-transform: skew(@x, @y);
|
||||||
|
-ms-transform: skewX(@x) skewY(@y); // See https://github.com/twitter/bootstrap/issues/4885
|
||||||
|
-o-transform: skew(@x, @y);
|
||||||
|
transform: skew(@x, @y);
|
||||||
|
-webkit-backface-visibility: hidden; // See https://github.com/twitter/bootstrap/issues/5319
|
||||||
|
}
|
||||||
|
.translate3d(@x, @y, @z) {
|
||||||
|
-webkit-transform: translate3d(@x, @y, @z);
|
||||||
|
-moz-transform: translate3d(@x, @y, @z);
|
||||||
|
-o-transform: translate3d(@x, @y, @z);
|
||||||
|
transform: translate3d(@x, @y, @z);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Backface visibility
|
||||||
|
// Prevent browsers from flickering when using CSS 3D transforms.
|
||||||
|
// Default value is `visible`, but can be changed to `hidden
|
||||||
|
// See git pull https://github.com/dannykeane/bootstrap.git backface-visibility for examples
|
||||||
|
.backface-visibility(@visibility){
|
||||||
|
-webkit-backface-visibility: @visibility;
|
||||||
|
-moz-backface-visibility: @visibility;
|
||||||
|
backface-visibility: @visibility;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Background clipping
|
||||||
|
// Heads up: FF 3.6 and under need "padding" instead of "padding-box"
|
||||||
|
.background-clip(@clip) {
|
||||||
|
-webkit-background-clip: @clip;
|
||||||
|
-moz-background-clip: @clip;
|
||||||
|
background-clip: @clip;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Background sizing
|
||||||
|
.background-size(@size) {
|
||||||
|
-webkit-background-size: @size;
|
||||||
|
-moz-background-size: @size;
|
||||||
|
-o-background-size: @size;
|
||||||
|
background-size: @size;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Box sizing
|
||||||
|
.box-sizing(@boxmodel) {
|
||||||
|
-webkit-box-sizing: @boxmodel;
|
||||||
|
-moz-box-sizing: @boxmodel;
|
||||||
|
box-sizing: @boxmodel;
|
||||||
|
}
|
||||||
|
|
||||||
|
// User select
|
||||||
|
// For selecting text on the page
|
||||||
|
.user-select(@select) {
|
||||||
|
-webkit-user-select: @select;
|
||||||
|
-moz-user-select: @select;
|
||||||
|
-ms-user-select: @select;
|
||||||
|
-o-user-select: @select;
|
||||||
|
user-select: @select;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Resize anything
|
||||||
|
.resizable(@direction) {
|
||||||
|
resize: @direction; // Options: horizontal, vertical, both
|
||||||
|
overflow: auto; // Safari fix
|
||||||
|
}
|
||||||
|
|
||||||
|
// CSS3 Content Columns
|
||||||
|
.content-columns(@columnCount, @columnGap: @gridGutterWidth) {
|
||||||
|
-webkit-column-count: @columnCount;
|
||||||
|
-moz-column-count: @columnCount;
|
||||||
|
column-count: @columnCount;
|
||||||
|
-webkit-column-gap: @columnGap;
|
||||||
|
-moz-column-gap: @columnGap;
|
||||||
|
column-gap: @columnGap;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Optional hyphenation
|
||||||
|
.hyphens(@mode: auto) {
|
||||||
|
word-wrap: break-word;
|
||||||
|
-webkit-hyphens: @mode;
|
||||||
|
-moz-hyphens: @mode;
|
||||||
|
-ms-hyphens: @mode;
|
||||||
|
-o-hyphens: @mode;
|
||||||
|
hyphens: @mode;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Opacity
|
||||||
|
.opacity(@opacity) {
|
||||||
|
opacity: @opacity / 100;
|
||||||
|
filter: ~"alpha(opacity=@{opacity})";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// BACKGROUNDS
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
// Add an alphatransparency value to any background or border color (via Elyse Holladay)
|
||||||
|
#translucent {
|
||||||
|
.background(@color: @white, @alpha: 1) {
|
||||||
|
background-color: hsla(hue(@color), saturation(@color), lightness(@color), @alpha);
|
||||||
|
}
|
||||||
|
.border(@color: @white, @alpha: 1) {
|
||||||
|
border-color: hsla(hue(@color), saturation(@color), lightness(@color), @alpha);
|
||||||
|
.background-clip(padding-box);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Gradient Bar Colors for buttons and alerts
|
||||||
|
.gradientBar(@primaryColor, @secondaryColor, @textColor: #fff, @textShadow: 0 -1px 0 rgba(0,0,0,.25)) {
|
||||||
|
color: @textColor;
|
||||||
|
text-shadow: @textShadow;
|
||||||
|
#gradient > .vertical(@primaryColor, @secondaryColor);
|
||||||
|
border-color: @secondaryColor @secondaryColor darken(@secondaryColor, 15%);
|
||||||
|
border-color: rgba(0,0,0,.1) rgba(0,0,0,.1) fadein(rgba(0,0,0,.1), 15%);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Gradients
|
||||||
|
#gradient {
|
||||||
|
.horizontal(@startColor: #555, @endColor: #333) {
|
||||||
|
background-color: @endColor;
|
||||||
|
background-image: -moz-linear-gradient(left, @startColor, @endColor); // FF 3.6+
|
||||||
|
background-image: -webkit-gradient(linear, 0 0, 100% 0, from(@startColor), to(@endColor)); // Safari 4+, Chrome 2+
|
||||||
|
background-image: -webkit-linear-gradient(left, @startColor, @endColor); // Safari 5.1+, Chrome 10+
|
||||||
|
background-image: -o-linear-gradient(left, @startColor, @endColor); // Opera 11.10
|
||||||
|
background-image: linear-gradient(to right, @startColor, @endColor); // Standard, IE10
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=1)",argb(@startColor),argb(@endColor))); // IE9 and down
|
||||||
|
}
|
||||||
|
.vertical(@startColor: #555, @endColor: #333) {
|
||||||
|
background-color: mix(@startColor, @endColor, 60%);
|
||||||
|
background-image: -moz-linear-gradient(top, @startColor, @endColor); // FF 3.6+
|
||||||
|
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(@startColor), to(@endColor)); // Safari 4+, Chrome 2+
|
||||||
|
background-image: -webkit-linear-gradient(top, @startColor, @endColor); // Safari 5.1+, Chrome 10+
|
||||||
|
background-image: -o-linear-gradient(top, @startColor, @endColor); // Opera 11.10
|
||||||
|
background-image: linear-gradient(to bottom, @startColor, @endColor); // Standard, IE10
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)",argb(@startColor),argb(@endColor))); // IE9 and down
|
||||||
|
}
|
||||||
|
.directional(@startColor: #555, @endColor: #333, @deg: 45deg) {
|
||||||
|
background-color: @endColor;
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
background-image: -moz-linear-gradient(@deg, @startColor, @endColor); // FF 3.6+
|
||||||
|
background-image: -webkit-linear-gradient(@deg, @startColor, @endColor); // Safari 5.1+, Chrome 10+
|
||||||
|
background-image: -o-linear-gradient(@deg, @startColor, @endColor); // Opera 11.10
|
||||||
|
background-image: linear-gradient(@deg, @startColor, @endColor); // Standard, IE10
|
||||||
|
}
|
||||||
|
.vertical-three-colors(@startColor: #00b3ee, @midColor: #7a43b6, @colorStop: 50%, @endColor: #c3325f) {
|
||||||
|
background-color: mix(@midColor, @endColor, 80%);
|
||||||
|
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(@startColor), color-stop(@colorStop, @midColor), to(@endColor));
|
||||||
|
background-image: -webkit-linear-gradient(@startColor, @midColor @colorStop, @endColor);
|
||||||
|
background-image: -moz-linear-gradient(top, @startColor, @midColor @colorStop, @endColor);
|
||||||
|
background-image: -o-linear-gradient(@startColor, @midColor @colorStop, @endColor);
|
||||||
|
background-image: linear-gradient(@startColor, @midColor @colorStop, @endColor);
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)",argb(@startColor),argb(@endColor))); // IE9 and down, gets no color-stop at all for proper fallback
|
||||||
|
}
|
||||||
|
.radial(@innerColor: #555, @outerColor: #333) {
|
||||||
|
background-color: @outerColor;
|
||||||
|
background-image: -webkit-gradient(radial, center center, 0, center center, 460, from(@innerColor), to(@outerColor));
|
||||||
|
background-image: -webkit-radial-gradient(circle, @innerColor, @outerColor);
|
||||||
|
background-image: -moz-radial-gradient(circle, @innerColor, @outerColor);
|
||||||
|
background-image: -o-radial-gradient(circle, @innerColor, @outerColor);
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
}
|
||||||
|
.striped(@color: #555, @angle: 45deg) {
|
||||||
|
background-color: @color;
|
||||||
|
background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(.25, rgba(255,255,255,.15)), color-stop(.25, transparent), color-stop(.5, transparent), color-stop(.5, rgba(255,255,255,.15)), color-stop(.75, rgba(255,255,255,.15)), color-stop(.75, transparent), to(transparent));
|
||||||
|
background-image: -webkit-linear-gradient(@angle, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent);
|
||||||
|
background-image: -moz-linear-gradient(@angle, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent);
|
||||||
|
background-image: -o-linear-gradient(@angle, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent);
|
||||||
|
background-image: linear-gradient(@angle, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// Reset filters for IE
|
||||||
|
.reset-filter() {
|
||||||
|
filter: e(%("progid:DXImageTransform.Microsoft.gradient(enabled = false)"));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// COMPONENT MIXINS
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
// Horizontal dividers
|
||||||
|
// -------------------------
|
||||||
|
// Dividers (basically an hr) within dropdowns and nav lists
|
||||||
|
.nav-divider(@top: #e5e5e5, @bottom: @white) {
|
||||||
|
// IE7 needs a set width since we gave a height. Restricting just
|
||||||
|
// to IE7 to keep the 1px left/right space in other browsers.
|
||||||
|
// It is unclear where IE is getting the extra space that we need
|
||||||
|
// to negative-margin away, but so it goes.
|
||||||
|
*width: 100%;
|
||||||
|
height: 1px;
|
||||||
|
margin: ((@baseLineHeight / 2) - 1) 1px; // 8px 1px
|
||||||
|
*margin: -5px 0 5px;
|
||||||
|
overflow: hidden;
|
||||||
|
background-color: @top;
|
||||||
|
border-bottom: 1px solid @bottom;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Button backgrounds
|
||||||
|
// ------------------
|
||||||
|
.buttonBackground(@startColor, @endColor, @textColor: #fff, @textShadow: 0 -1px 0 rgba(0,0,0,.25)) {
|
||||||
|
// gradientBar will set the background to a pleasing blend of these, to support IE<=9
|
||||||
|
.gradientBar(@startColor, @endColor, @textColor, @textShadow);
|
||||||
|
*background-color: @endColor; /* Darken IE7 buttons by default so they stand out more given they won't have borders */
|
||||||
|
.reset-filter();
|
||||||
|
|
||||||
|
// in these cases the gradient won't cover the background, so we override
|
||||||
|
&:hover, &:active, &.active, &.disabled, &[disabled] {
|
||||||
|
color: @textColor;
|
||||||
|
background-color: @endColor;
|
||||||
|
*background-color: darken(@endColor, 5%);
|
||||||
|
}
|
||||||
|
|
||||||
|
// IE 7 + 8 can't handle box-shadow to show active, so we darken a bit ourselves
|
||||||
|
&:active,
|
||||||
|
&.active {
|
||||||
|
background-color: darken(@endColor, 10%) e("\9");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Navbar vertical align
|
||||||
|
// -------------------------
|
||||||
|
// Vertically center elements in the navbar.
|
||||||
|
// Example: an element has a height of 30px, so write out `.navbarVerticalAlign(30px);` to calculate the appropriate top margin.
|
||||||
|
.navbarVerticalAlign(@elementHeight) {
|
||||||
|
margin-top: (@navbarHeight - @elementHeight) / 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
91
deployed/xef/libraries/xef/assets/less/modals.less
Normal file
@ -0,0 +1,91 @@
|
|||||||
|
// MODALS
|
||||||
|
// ------
|
||||||
|
|
||||||
|
// Recalculate z-index where appropriate
|
||||||
|
.bsmodal-open {
|
||||||
|
.dropdown-menu { z-index: @zindexDropdown + @zindexModal; }
|
||||||
|
.dropdown.open { *z-index: @zindexDropdown + @zindexModal; }
|
||||||
|
.popover { z-index: @zindexPopover + @zindexModal; }
|
||||||
|
.tooltip { z-index: @zindexTooltip + @zindexModal; }
|
||||||
|
}
|
||||||
|
|
||||||
|
// Background
|
||||||
|
.bsmodal-backdrop {
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
z-index: @zindexModalBackdrop;
|
||||||
|
background-color: @black;
|
||||||
|
// Fade for backdrop
|
||||||
|
&.fade { opacity: 0; }
|
||||||
|
}
|
||||||
|
|
||||||
|
.bsmodal-backdrop,
|
||||||
|
.bsmodal-backdrop.fade.in {
|
||||||
|
.opacity(80);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Base bsmodal
|
||||||
|
.bsmodal {
|
||||||
|
position: fixed;
|
||||||
|
top: 50%;
|
||||||
|
left: 50%;
|
||||||
|
z-index: @zindexModal;
|
||||||
|
overflow: auto;
|
||||||
|
width: 560px;
|
||||||
|
margin: -150px 0 0 -280px;
|
||||||
|
background-color: @white;
|
||||||
|
border: 1px solid #999;
|
||||||
|
border: 1px solid rgba(0,0,0,.3);
|
||||||
|
*border: 1px solid #999; /* IE6-7 */
|
||||||
|
.border-radius(6px);
|
||||||
|
.box-shadow(0 3px 7px rgba(0,0,0,0.3));
|
||||||
|
.background-clip(padding-box);
|
||||||
|
&.fade {
|
||||||
|
.transition(e('opacity .3s linear, top .3s ease-out'));
|
||||||
|
top: -25%;
|
||||||
|
}
|
||||||
|
&.fade.in { top: 50%; }
|
||||||
|
}
|
||||||
|
.bsmodal-header {
|
||||||
|
padding: 9px 15px;
|
||||||
|
border-bottom: 1px solid #eee;
|
||||||
|
// Close icon
|
||||||
|
.close { margin-top: 2px; }
|
||||||
|
h3{background: transparent !important;}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Body (where all bsmodal content resides)
|
||||||
|
.bsmodal-body {
|
||||||
|
overflow-y: auto;
|
||||||
|
max-height: 400px;
|
||||||
|
padding: 15px;
|
||||||
|
}
|
||||||
|
// Remove bottom margin if need be
|
||||||
|
.bsmodal-form {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Footer (for actions)
|
||||||
|
.bsmodal-footer {
|
||||||
|
padding: 14px 15px 15px;
|
||||||
|
margin-bottom: 0;
|
||||||
|
text-align: right; // right align buttons
|
||||||
|
background-color: #f5f5f5;
|
||||||
|
border-top: 1px solid #ddd;
|
||||||
|
.border-radius(0 0 6px 6px);
|
||||||
|
.box-shadow(inset 0 1px 0 @white);
|
||||||
|
.clearfix(); // clear it in case folks use .pull-* classes on buttons
|
||||||
|
|
||||||
|
// Properly space out buttons
|
||||||
|
.btn + .btn {
|
||||||
|
margin-left: 5px;
|
||||||
|
margin-bottom: 0; // account for input[type="submit"] which gets the bottom margin like all other inputs
|
||||||
|
}
|
||||||
|
// but override that for button groups
|
||||||
|
.btn-group .btn + .btn {
|
||||||
|
margin-left: -1px;
|
||||||
|
}
|
||||||
|
}
|
||||||
117
deployed/xef/libraries/xef/assets/less/popovers.less
Normal file
@ -0,0 +1,117 @@
|
|||||||
|
//
|
||||||
|
// Popovers
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
.popover {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
z-index: @zindexPopover;
|
||||||
|
display: none;
|
||||||
|
width: 236px;
|
||||||
|
padding: 1px;
|
||||||
|
background-color: @popoverBackground;
|
||||||
|
-webkit-background-clip: padding-box;
|
||||||
|
-moz-background-clip: padding;
|
||||||
|
background-clip: padding-box;
|
||||||
|
border: 1px solid #ccc;
|
||||||
|
border: 1px solid rgba(0,0,0,.2);
|
||||||
|
.border-radius(6px);
|
||||||
|
.box-shadow(0 5px 10px rgba(0,0,0,.2));
|
||||||
|
|
||||||
|
// Offset the popover to account for the popover arrow
|
||||||
|
&.top { margin-top: -10px; }
|
||||||
|
&.right { margin-left: 10px; }
|
||||||
|
&.bottom { margin-top: 10px; }
|
||||||
|
&.left { margin-left: -10px; }
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.popover-title {
|
||||||
|
margin: 0; // reset heading margin
|
||||||
|
padding: 8px 14px;
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: normal;
|
||||||
|
line-height: 18px;
|
||||||
|
background-color: @popoverTitleBackground;
|
||||||
|
border-bottom: 1px solid darken(@popoverTitleBackground, 5%);
|
||||||
|
.border-radius(5px 5px 0 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
.popover-content {
|
||||||
|
padding: 9px 14px;
|
||||||
|
p, ul, ol {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Arrows
|
||||||
|
.popover .arrow,
|
||||||
|
.popover .arrow:after {
|
||||||
|
position: absolute;
|
||||||
|
display: inline-block;
|
||||||
|
width: 0;
|
||||||
|
height: 0;
|
||||||
|
border-color: transparent;
|
||||||
|
border-style: solid;
|
||||||
|
}
|
||||||
|
.popover .arrow:after {
|
||||||
|
content: "";
|
||||||
|
z-index: -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.popover {
|
||||||
|
&.top .arrow {
|
||||||
|
bottom: -@popoverArrowWidth;
|
||||||
|
left: 50%;
|
||||||
|
margin-left: -@popoverArrowWidth;
|
||||||
|
border-width: @popoverArrowWidth @popoverArrowWidth 0;
|
||||||
|
border-top-color: @popoverArrowColor;
|
||||||
|
&:after {
|
||||||
|
border-width: @popoverArrowOuterWidth @popoverArrowOuterWidth 0;
|
||||||
|
border-top-color: @popoverArrowOuterColor;
|
||||||
|
bottom: -1px;
|
||||||
|
left: -@popoverArrowOuterWidth;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
&.right .arrow {
|
||||||
|
top: 50%;
|
||||||
|
left: -@popoverArrowWidth;
|
||||||
|
margin-top: -@popoverArrowWidth;
|
||||||
|
border-width: @popoverArrowWidth @popoverArrowWidth @popoverArrowWidth 0;
|
||||||
|
border-right-color: @popoverArrowColor;
|
||||||
|
&:after {
|
||||||
|
border-width: @popoverArrowOuterWidth @popoverArrowOuterWidth @popoverArrowOuterWidth 0;
|
||||||
|
border-right-color: @popoverArrowOuterColor;
|
||||||
|
bottom: -@popoverArrowOuterWidth;
|
||||||
|
left: -1px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
&.bottom .arrow {
|
||||||
|
top: -@popoverArrowWidth;
|
||||||
|
left: 50%;
|
||||||
|
margin-left: -@popoverArrowWidth;
|
||||||
|
border-width: 0 @popoverArrowWidth @popoverArrowWidth;
|
||||||
|
border-bottom-color: @popoverArrowColor;
|
||||||
|
&:after {
|
||||||
|
border-width: 0 @popoverArrowOuterWidth @popoverArrowOuterWidth;
|
||||||
|
border-bottom-color: @popoverArrowOuterColor;
|
||||||
|
top: -1px;
|
||||||
|
left: -@popoverArrowOuterWidth;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
&.left .arrow {
|
||||||
|
top: 50%;
|
||||||
|
right: -@popoverArrowWidth;
|
||||||
|
margin-top: -@popoverArrowWidth;
|
||||||
|
border-width: @popoverArrowWidth 0 @popoverArrowWidth @popoverArrowWidth;
|
||||||
|
border-left-color: @popoverArrowColor;
|
||||||
|
&:after {
|
||||||
|
border-width: @popoverArrowOuterWidth 0 @popoverArrowOuterWidth @popoverArrowOuterWidth;
|
||||||
|
border-left-color: @popoverArrowOuterColor;
|
||||||
|
bottom: -@popoverArrowOuterWidth;
|
||||||
|
right: -1px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
126
deployed/xef/libraries/xef/assets/less/reset.less
Normal file
@ -0,0 +1,126 @@
|
|||||||
|
// Reset.less
|
||||||
|
// Adapted from Normalize.css http://github.com/necolas/normalize.css
|
||||||
|
// ------------------------------------------------------------------------
|
||||||
|
|
||||||
|
// Display in IE6-9 and FF3
|
||||||
|
// -------------------------
|
||||||
|
|
||||||
|
article,
|
||||||
|
aside,
|
||||||
|
details,
|
||||||
|
figcaption,
|
||||||
|
figure,
|
||||||
|
footer,
|
||||||
|
header,
|
||||||
|
hgroup,
|
||||||
|
nav,
|
||||||
|
section {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Display block in IE6-9 and FF3
|
||||||
|
// -------------------------
|
||||||
|
|
||||||
|
audio,
|
||||||
|
canvas,
|
||||||
|
video {
|
||||||
|
display: inline-block;
|
||||||
|
*display: inline;
|
||||||
|
*zoom: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Prevents modern browsers from displaying 'audio' without controls
|
||||||
|
// -------------------------
|
||||||
|
|
||||||
|
audio:not([controls]) {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Base settings
|
||||||
|
// -------------------------
|
||||||
|
|
||||||
|
html {
|
||||||
|
font-size: 100%;
|
||||||
|
-webkit-text-size-adjust: 100%;
|
||||||
|
-ms-text-size-adjust: 100%;
|
||||||
|
}
|
||||||
|
// Focus states
|
||||||
|
a:focus {
|
||||||
|
.tab-focus();
|
||||||
|
}
|
||||||
|
// Hover & Active
|
||||||
|
a:hover,
|
||||||
|
a:active {
|
||||||
|
outline: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Prevents sub and sup affecting line-height in all browsers
|
||||||
|
// -------------------------
|
||||||
|
|
||||||
|
sub,
|
||||||
|
sup {
|
||||||
|
position: relative;
|
||||||
|
font-size: 75%;
|
||||||
|
line-height: 0;
|
||||||
|
vertical-align: baseline;
|
||||||
|
}
|
||||||
|
sup {
|
||||||
|
top: -0.5em;
|
||||||
|
}
|
||||||
|
sub {
|
||||||
|
bottom: -0.25em;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Img border in a's and image quality
|
||||||
|
// -------------------------
|
||||||
|
|
||||||
|
img {
|
||||||
|
max-width: 100%; // Make images inherently responsive
|
||||||
|
vertical-align: middle;
|
||||||
|
border: 0;
|
||||||
|
-ms-interpolation-mode: bicubic;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Forms
|
||||||
|
// -------------------------
|
||||||
|
|
||||||
|
// Font size in all browsers, margin changes, misc consistency
|
||||||
|
button,
|
||||||
|
input,
|
||||||
|
select,
|
||||||
|
textarea {
|
||||||
|
margin: 0;
|
||||||
|
font-size: 100%;
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
button,
|
||||||
|
input {
|
||||||
|
*overflow: visible; // Inner spacing ie IE6/7
|
||||||
|
line-height: normal; // FF3/4 have !important on line-height in UA stylesheet
|
||||||
|
}
|
||||||
|
button::-moz-focus-inner,
|
||||||
|
input::-moz-focus-inner { // Inner padding and border oddities in FF3/4
|
||||||
|
padding: 0;
|
||||||
|
border: 0;
|
||||||
|
}
|
||||||
|
button,
|
||||||
|
input[type="button"],
|
||||||
|
input[type="reset"],
|
||||||
|
input[type="submit"] {
|
||||||
|
cursor: pointer; // Cursors on all buttons applied consistently
|
||||||
|
-webkit-appearance: button; // Style clickable inputs in iOS
|
||||||
|
}
|
||||||
|
input[type="search"] { // Appearance in Safari/Chrome
|
||||||
|
-webkit-box-sizing: content-box;
|
||||||
|
-moz-box-sizing: content-box;
|
||||||
|
box-sizing: content-box;
|
||||||
|
-webkit-appearance: textfield;
|
||||||
|
}
|
||||||
|
input[type="search"]::-webkit-search-decoration,
|
||||||
|
input[type="search"]::-webkit-search-cancel-button {
|
||||||
|
-webkit-appearance: none; // Inner-padding issues in Chrome OSX, Safari 5
|
||||||
|
}
|
||||||
|
textarea {
|
||||||
|
overflow: auto; // Remove vertical scrollbar in IE6-9
|
||||||
|
vertical-align: top; // Readability and alignment cross-browser
|
||||||
|
}
|
||||||
70
deployed/xef/libraries/xef/assets/less/tooltip.less
Normal file
@ -0,0 +1,70 @@
|
|||||||
|
//
|
||||||
|
// Tooltips
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
// Base class
|
||||||
|
.tooltip {
|
||||||
|
position: absolute;
|
||||||
|
z-index: @zindexTooltip;
|
||||||
|
display: block;
|
||||||
|
visibility: visible;
|
||||||
|
padding: 5px;
|
||||||
|
font-size: 11px;
|
||||||
|
.opacity(0);
|
||||||
|
&.in { .opacity(80); }
|
||||||
|
&.top { margin-top: -3px; }
|
||||||
|
&.right { margin-left: 3px; }
|
||||||
|
&.bottom { margin-top: 3px; }
|
||||||
|
&.left { margin-left: -3px; }
|
||||||
|
}
|
||||||
|
|
||||||
|
// Wrapper for the tooltip content
|
||||||
|
.tooltip-inner {
|
||||||
|
max-width: 200px;
|
||||||
|
padding: 3px 8px;
|
||||||
|
color: @tooltipColor;
|
||||||
|
text-align: center;
|
||||||
|
text-decoration: none;
|
||||||
|
background-color: @tooltipBackground;
|
||||||
|
.border-radius(@baseBorderRadius);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Arrows
|
||||||
|
.tooltip-arrow {
|
||||||
|
position: absolute;
|
||||||
|
width: 0;
|
||||||
|
height: 0;
|
||||||
|
border-color: transparent;
|
||||||
|
border-style: solid;
|
||||||
|
}
|
||||||
|
.tooltip {
|
||||||
|
&.top .tooltip-arrow {
|
||||||
|
bottom: 0;
|
||||||
|
left: 50%;
|
||||||
|
margin-left: -@tooltipArrowWidth;
|
||||||
|
border-width: @tooltipArrowWidth @tooltipArrowWidth 0;
|
||||||
|
border-top-color: @tooltipArrowColor;
|
||||||
|
}
|
||||||
|
&.right .tooltip-arrow {
|
||||||
|
top: 50%;
|
||||||
|
left: 0;
|
||||||
|
margin-top: -@tooltipArrowWidth;
|
||||||
|
border-width: @tooltipArrowWidth @tooltipArrowWidth @tooltipArrowWidth 0;
|
||||||
|
border-right-color: @tooltipArrowColor;
|
||||||
|
}
|
||||||
|
&.left .tooltip-arrow {
|
||||||
|
top: 50%;
|
||||||
|
right: 0;
|
||||||
|
margin-top: -@tooltipArrowWidth;
|
||||||
|
border-width: @tooltipArrowWidth 0 @tooltipArrowWidth @tooltipArrowWidth;
|
||||||
|
border-left-color: @tooltipArrowColor;
|
||||||
|
}
|
||||||
|
&.bottom .tooltip-arrow {
|
||||||
|
top: 0;
|
||||||
|
left: 50%;
|
||||||
|
margin-left: -@tooltipArrowWidth;
|
||||||
|
border-width: 0 @tooltipArrowWidth @tooltipArrowWidth;
|
||||||
|
border-bottom-color: @tooltipArrowColor;
|
||||||
|
}
|
||||||
|
}
|
||||||
235
deployed/xef/libraries/xef/assets/less/type.less
Normal file
@ -0,0 +1,235 @@
|
|||||||
|
// Typography.less
|
||||||
|
// Headings, body text, lists, code, and more for a versatile and durable typography system
|
||||||
|
// ----------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
// BODY TEXT
|
||||||
|
// ---------
|
||||||
|
|
||||||
|
p {
|
||||||
|
margin: 0 0 @baseLineHeight / 2;
|
||||||
|
font-family: @baseFontFamily;
|
||||||
|
font-size: @baseFontSize;
|
||||||
|
line-height: @baseLineHeight;
|
||||||
|
small {
|
||||||
|
font-size: @baseFontSize - 2;
|
||||||
|
color: @grayLight;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.lead {
|
||||||
|
margin-bottom: @baseLineHeight;
|
||||||
|
font-size: 20px;
|
||||||
|
font-weight: 200;
|
||||||
|
line-height: @baseLineHeight * 1.5;
|
||||||
|
}
|
||||||
|
|
||||||
|
// HEADINGS
|
||||||
|
// --------
|
||||||
|
|
||||||
|
h1, h2, h3, h4, h5, h6 {
|
||||||
|
margin: 0;
|
||||||
|
font-family: @headingsFontFamily;
|
||||||
|
font-weight: @headingsFontWeight;
|
||||||
|
color: @headingsColor;
|
||||||
|
text-rendering: optimizelegibility; // Fix the character spacing for headings
|
||||||
|
small {
|
||||||
|
font-weight: normal;
|
||||||
|
color: @grayLight;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
h1 {
|
||||||
|
font-size: 30px;
|
||||||
|
line-height: @baseLineHeight * 2;
|
||||||
|
small {
|
||||||
|
font-size: 18px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
h2 {
|
||||||
|
font-size: 24px;
|
||||||
|
line-height: @baseLineHeight * 2;
|
||||||
|
small {
|
||||||
|
font-size: 18px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
h3 {
|
||||||
|
font-size: 18px;
|
||||||
|
line-height: @baseLineHeight * 1.5;
|
||||||
|
small {
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
h4, h5, h6 {
|
||||||
|
line-height: @baseLineHeight;
|
||||||
|
}
|
||||||
|
h4 {
|
||||||
|
font-size: 14px;
|
||||||
|
small {
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
h5 {
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
h6 {
|
||||||
|
font-size: 11px;
|
||||||
|
color: @grayLight;
|
||||||
|
text-transform: uppercase;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Page header
|
||||||
|
.page-header {
|
||||||
|
padding-bottom: @baseLineHeight - 1;
|
||||||
|
margin: @baseLineHeight 0;
|
||||||
|
border-bottom: 1px solid @grayLighter;
|
||||||
|
}
|
||||||
|
.page-header h1 {
|
||||||
|
line-height: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// LISTS
|
||||||
|
// -----
|
||||||
|
|
||||||
|
// Unordered and Ordered lists
|
||||||
|
ul, ol {
|
||||||
|
padding: 0;
|
||||||
|
margin: 0 0 @baseLineHeight / 2 25px;
|
||||||
|
}
|
||||||
|
ul ul,
|
||||||
|
ul ol,
|
||||||
|
ol ol,
|
||||||
|
ol ul {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
ul {
|
||||||
|
list-style: disc;
|
||||||
|
}
|
||||||
|
ol {
|
||||||
|
list-style: decimal;
|
||||||
|
}
|
||||||
|
li {
|
||||||
|
line-height: @baseLineHeight;
|
||||||
|
}
|
||||||
|
ul.unstyled,
|
||||||
|
ol.unstyled {
|
||||||
|
margin-left: 0;
|
||||||
|
list-style: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Description Lists
|
||||||
|
dl {
|
||||||
|
margin-bottom: @baseLineHeight;
|
||||||
|
}
|
||||||
|
dt,
|
||||||
|
dd {
|
||||||
|
line-height: @baseLineHeight;
|
||||||
|
}
|
||||||
|
dt {
|
||||||
|
font-weight: bold;
|
||||||
|
line-height: @baseLineHeight - 1; // fix jank Helvetica Neue font bug
|
||||||
|
}
|
||||||
|
dd {
|
||||||
|
margin-left: @baseLineHeight / 2;
|
||||||
|
}
|
||||||
|
// Horizontal layout (like forms)
|
||||||
|
.dl-horizontal {
|
||||||
|
dt {
|
||||||
|
float: left;
|
||||||
|
width: 120px;
|
||||||
|
clear: left;
|
||||||
|
text-align: right;
|
||||||
|
.text-overflow();
|
||||||
|
}
|
||||||
|
dd {
|
||||||
|
margin-left: 130px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// MISC
|
||||||
|
// ----
|
||||||
|
|
||||||
|
// Horizontal rules
|
||||||
|
hr {
|
||||||
|
margin: @baseLineHeight 0;
|
||||||
|
border: 0;
|
||||||
|
border-top: 1px solid @hrBorder;
|
||||||
|
border-bottom: 1px solid @white;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Emphasis
|
||||||
|
strong {
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
em {
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
.muted {
|
||||||
|
color: @grayLight;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Abbreviations and acronyms
|
||||||
|
abbr[title] {
|
||||||
|
cursor: help;
|
||||||
|
border-bottom: 1px dotted #ddd;
|
||||||
|
}
|
||||||
|
abbr.initialism {
|
||||||
|
font-size: 90%;
|
||||||
|
text-transform: uppercase;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Blockquotes
|
||||||
|
blockquote {
|
||||||
|
padding: 0 0 0 15px;
|
||||||
|
margin: 0 0 @baseLineHeight;
|
||||||
|
border-left: 5px solid @grayLighter;
|
||||||
|
p {
|
||||||
|
margin-bottom: 0;
|
||||||
|
#font > .shorthand(16px,300,@baseLineHeight * 1.25);
|
||||||
|
}
|
||||||
|
small {
|
||||||
|
display: block;
|
||||||
|
line-height: @baseLineHeight;
|
||||||
|
color: @grayLight;
|
||||||
|
&:before {
|
||||||
|
content: '\2014 \00A0';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Float right with text-align: right
|
||||||
|
&.pull-right {
|
||||||
|
float: right;
|
||||||
|
padding-right: 15px;
|
||||||
|
padding-left: 0;
|
||||||
|
border-right: 5px solid @grayLighter;
|
||||||
|
border-left: 0;
|
||||||
|
p,
|
||||||
|
small {
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Quotes
|
||||||
|
q:before,
|
||||||
|
q:after,
|
||||||
|
blockquote:before,
|
||||||
|
blockquote:after {
|
||||||
|
content: "";
|
||||||
|
}
|
||||||
|
|
||||||
|
// Addresses
|
||||||
|
address {
|
||||||
|
display: block;
|
||||||
|
margin-bottom: @baseLineHeight;
|
||||||
|
font-style: normal;
|
||||||
|
line-height: @baseLineHeight;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Misc
|
||||||
|
small {
|
||||||
|
font-size: 100%;
|
||||||
|
}
|
||||||
|
cite {
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
23
deployed/xef/libraries/xef/assets/less/utilities.less
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
// UTILITY CLASSES
|
||||||
|
// ---------------
|
||||||
|
|
||||||
|
// Quick floats
|
||||||
|
.pull-right {
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
.pull-left {
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Toggling content
|
||||||
|
.hide {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.show {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Visibility
|
||||||
|
.invisible {
|
||||||
|
visibility: hidden;
|
||||||
|
}
|
||||||
301
deployed/xef/libraries/xef/assets/less/variables.less
Normal file
@ -0,0 +1,301 @@
|
|||||||
|
//
|
||||||
|
// Variables
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
// Global values
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
// Grays
|
||||||
|
// -------------------------
|
||||||
|
@black: #000;
|
||||||
|
@grayDarker: #222;
|
||||||
|
@grayDark: #333;
|
||||||
|
@gray: #555;
|
||||||
|
@grayLight: #999;
|
||||||
|
@grayLighter: #eee;
|
||||||
|
@white: #fff;
|
||||||
|
|
||||||
|
|
||||||
|
// Accent colors
|
||||||
|
// -------------------------
|
||||||
|
@blue: #049cdb;
|
||||||
|
@blueDark: #0064cd;
|
||||||
|
@green: #46a546;
|
||||||
|
@red: #9d261d;
|
||||||
|
@yellow: #ffc40d;
|
||||||
|
@orange: #f89406;
|
||||||
|
@pink: #c3325f;
|
||||||
|
@purple: #7a43b6;
|
||||||
|
|
||||||
|
|
||||||
|
// Scaffolding
|
||||||
|
// -------------------------
|
||||||
|
@bodyBackground: @white;
|
||||||
|
@textColor: @grayDark;
|
||||||
|
|
||||||
|
|
||||||
|
// Links
|
||||||
|
// -------------------------
|
||||||
|
@linkColor: #08c;
|
||||||
|
@linkColorHover: darken(@linkColor, 15%);
|
||||||
|
|
||||||
|
|
||||||
|
// Typography
|
||||||
|
// -------------------------
|
||||||
|
@sansFontFamily: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||||
|
@serifFontFamily: Georgia, "Times New Roman", Times, serif;
|
||||||
|
@monoFontFamily: Monaco, Menlo, Consolas, "Courier New", monospace;
|
||||||
|
|
||||||
|
@baseFontSize: 12px;
|
||||||
|
@baseFontFamily: @sansFontFamily;
|
||||||
|
@baseLineHeight: 20px;
|
||||||
|
@altFontFamily: @serifFontFamily;
|
||||||
|
|
||||||
|
@headingsFontFamily: inherit; // empty to use BS default, @baseFontFamily
|
||||||
|
@headingsFontWeight: bold; // instead of browser default, bold
|
||||||
|
@headingsColor: inherit; // empty to use BS default, @textColor
|
||||||
|
|
||||||
|
|
||||||
|
// Component sizing
|
||||||
|
// -------------------------
|
||||||
|
// Based on 14px font-size and 20px line-height
|
||||||
|
|
||||||
|
@fontSizeLarge: @baseFontSize * 1.25; // ~18px
|
||||||
|
@fontSizeSmall: @baseFontSize * 0.85; // ~12px
|
||||||
|
@fontSizeMini: @baseFontSize * 0.75; // ~11px
|
||||||
|
|
||||||
|
@paddingLarge: 11px 19px; // 44px
|
||||||
|
@paddingSmall: 2px 10px; // 26px
|
||||||
|
@paddingMini: 1px 6px; // 24px
|
||||||
|
|
||||||
|
@baseBorderRadius: 4px;
|
||||||
|
@borderRadiusLarge: 6px;
|
||||||
|
@borderRadiusSmall: 3px;
|
||||||
|
|
||||||
|
|
||||||
|
// Tables
|
||||||
|
// -------------------------
|
||||||
|
@tableBackground: transparent; // overall background-color
|
||||||
|
@tableBackgroundAccent: #f9f9f9; // for striping
|
||||||
|
@tableBackgroundHover: #f5f5f5; // for hover
|
||||||
|
@tableBorder: #ddd; // table and cell border
|
||||||
|
|
||||||
|
// Buttons
|
||||||
|
// -------------------------
|
||||||
|
@btnBackground: #fafafa;
|
||||||
|
@btnBackgroundHighlight: #dcdcdc;
|
||||||
|
@btnBorder: #bbb;
|
||||||
|
|
||||||
|
@btnPrimaryBackground: @linkColor;
|
||||||
|
@btnPrimaryBackgroundHighlight: spin(@btnPrimaryBackground, 20%);
|
||||||
|
|
||||||
|
@btnInfoBackground: #5bc0de;
|
||||||
|
@btnInfoBackgroundHighlight: #2f96b4;
|
||||||
|
|
||||||
|
@btnSuccessBackground: #62c462;
|
||||||
|
@btnSuccessBackgroundHighlight: #51a351;
|
||||||
|
|
||||||
|
@btnWarningBackground: lighten(@orange, 15%);
|
||||||
|
@btnWarningBackgroundHighlight: @orange;
|
||||||
|
|
||||||
|
@btnDangerBackground: #ee5f5b;
|
||||||
|
@btnDangerBackgroundHighlight: #bd362f;
|
||||||
|
|
||||||
|
@btnInverseBackground: #444;
|
||||||
|
@btnInverseBackgroundHighlight: @grayDarker;
|
||||||
|
|
||||||
|
|
||||||
|
// Forms
|
||||||
|
// -------------------------
|
||||||
|
@inputBackground: @white;
|
||||||
|
@inputBorder: #ccc;
|
||||||
|
@inputBorderRadius: @baseBorderRadius;
|
||||||
|
@inputDisabledBackground: @grayLighter;
|
||||||
|
@formActionsBackground: #f5f5f5;
|
||||||
|
@inputHeight: @baseLineHeight + 10px; // base line-height + 8px vertical padding + 2px top/bottom border
|
||||||
|
|
||||||
|
|
||||||
|
// Dropdowns
|
||||||
|
// -------------------------
|
||||||
|
@dropdownBackground: @white;
|
||||||
|
@dropdownBorder: rgba(0,0,0,.2);
|
||||||
|
@dropdownDividerTop: #e5e5e5;
|
||||||
|
@dropdownDividerBottom: @white;
|
||||||
|
|
||||||
|
@dropdownLinkColor: @grayDark;
|
||||||
|
@dropdownLinkColorHover: @white;
|
||||||
|
@dropdownLinkColorActive: @dropdownLinkColor;
|
||||||
|
|
||||||
|
@dropdownLinkBackgroundActive: @linkColor;
|
||||||
|
@dropdownLinkBackgroundHover: @dropdownLinkBackgroundActive;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// COMPONENT VARIABLES
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
// Z-index master list
|
||||||
|
// -------------------------
|
||||||
|
// Used for a bird's eye view of components dependent on the z-axis
|
||||||
|
// Try to avoid customizing these :)
|
||||||
|
@zindexDropdown: 1000;
|
||||||
|
@zindexPopover: 1010;
|
||||||
|
@zindexTooltip: 1030;
|
||||||
|
@zindexFixedNavbar: 1030;
|
||||||
|
@zindexModalBackdrop: 1040;
|
||||||
|
@zindexModal: 1050;
|
||||||
|
|
||||||
|
|
||||||
|
// Sprite icons path
|
||||||
|
// -------------------------
|
||||||
|
@iconSpritePath: "../img/glyphicons-halflings.png";
|
||||||
|
@iconWhiteSpritePath: "../img/glyphicons-halflings-white.png";
|
||||||
|
|
||||||
|
|
||||||
|
// Input placeholder text color
|
||||||
|
// -------------------------
|
||||||
|
@placeholderText: @grayLight;
|
||||||
|
|
||||||
|
|
||||||
|
// Hr border color
|
||||||
|
// -------------------------
|
||||||
|
@hrBorder: @grayLighter;
|
||||||
|
|
||||||
|
|
||||||
|
// Horizontal forms & lists
|
||||||
|
// -------------------------
|
||||||
|
@horizontalComponentOffset: 180px;
|
||||||
|
|
||||||
|
|
||||||
|
// Wells
|
||||||
|
// -------------------------
|
||||||
|
@wellBackground: #f5f5f5;
|
||||||
|
|
||||||
|
|
||||||
|
// Navbar
|
||||||
|
// -------------------------
|
||||||
|
@navbarCollapseWidth: 979px;
|
||||||
|
@navbarCollapseDesktopWidth: @navbarCollapseWidth + 1;
|
||||||
|
|
||||||
|
@navbarHeight: 40px;
|
||||||
|
@navbarBackgroundHighlight: #ffffff;
|
||||||
|
@navbarBackground: darken(@navbarBackgroundHighlight, 5%);
|
||||||
|
@navbarBorder: darken(@navbarBackground, 12%);
|
||||||
|
|
||||||
|
@navbarText: #777;
|
||||||
|
@navbarLinkColor: #777;
|
||||||
|
@navbarLinkColorHover: @grayDark;
|
||||||
|
@navbarLinkColorActive: @gray;
|
||||||
|
@navbarLinkBackgroundHover: transparent;
|
||||||
|
@navbarLinkBackgroundActive: darken(@navbarBackground, 5%);
|
||||||
|
|
||||||
|
@navbarBrandColor: @navbarLinkColor;
|
||||||
|
|
||||||
|
// Inverted navbar
|
||||||
|
@navbarInverseBackground: #111111;
|
||||||
|
@navbarInverseBackgroundHighlight: #222222;
|
||||||
|
@navbarInverseBorder: #252525;
|
||||||
|
|
||||||
|
@navbarInverseText: @grayLight;
|
||||||
|
@navbarInverseLinkColor: @grayLight;
|
||||||
|
@navbarInverseLinkColorHover: @white;
|
||||||
|
@navbarInverseLinkColorActive: @navbarInverseLinkColorHover;
|
||||||
|
@navbarInverseLinkBackgroundHover: transparent;
|
||||||
|
@navbarInverseLinkBackgroundActive: @navbarInverseBackground;
|
||||||
|
|
||||||
|
@navbarInverseSearchBackground: lighten(@navbarInverseBackground, 25%);
|
||||||
|
@navbarInverseSearchBackgroundFocus: @white;
|
||||||
|
@navbarInverseSearchBorder: @navbarInverseBackground;
|
||||||
|
@navbarInverseSearchPlaceholderColor: #ccc;
|
||||||
|
|
||||||
|
@navbarInverseBrandColor: @navbarInverseLinkColor;
|
||||||
|
|
||||||
|
|
||||||
|
// Pagination
|
||||||
|
// -------------------------
|
||||||
|
@paginationBackground: #fff;
|
||||||
|
@paginationBorder: #ddd;
|
||||||
|
@paginationActiveBackground: #f5f5f5;
|
||||||
|
|
||||||
|
|
||||||
|
// Hero unit
|
||||||
|
// -------------------------
|
||||||
|
@heroUnitBackground: @grayLighter;
|
||||||
|
@heroUnitHeadingColor: inherit;
|
||||||
|
@heroUnitLeadColor: inherit;
|
||||||
|
|
||||||
|
|
||||||
|
// Form states and alerts
|
||||||
|
// -------------------------
|
||||||
|
@warningText: #c09853;
|
||||||
|
@warningBackground: #fcf8e3;
|
||||||
|
@warningBorder: darken(spin(@warningBackground, -10), 3%);
|
||||||
|
|
||||||
|
@errorText: #b94a48;
|
||||||
|
@errorBackground: #f2dede;
|
||||||
|
@errorBorder: darken(spin(@errorBackground, -10), 3%);
|
||||||
|
|
||||||
|
@successText: #468847;
|
||||||
|
@successBackground: #dff0d8;
|
||||||
|
@successBorder: darken(spin(@successBackground, -10), 5%);
|
||||||
|
|
||||||
|
@infoText: #3a87ad;
|
||||||
|
@infoBackground: #d9edf7;
|
||||||
|
@infoBorder: darken(spin(@infoBackground, -10), 7%);
|
||||||
|
|
||||||
|
|
||||||
|
// Tooltips and popovers
|
||||||
|
// -------------------------
|
||||||
|
@tooltipColor: #fff;
|
||||||
|
@tooltipBackground: #000;
|
||||||
|
@tooltipArrowWidth: 5px;
|
||||||
|
@tooltipArrowColor: @tooltipBackground;
|
||||||
|
|
||||||
|
@popoverBackground: #fff;
|
||||||
|
@popoverArrowWidth: 10px;
|
||||||
|
@popoverArrowColor: #fff;
|
||||||
|
@popoverTitleBackground: darken(@popoverBackground, 3%);
|
||||||
|
|
||||||
|
// Special enhancement for popovers
|
||||||
|
@popoverArrowOuterWidth: @popoverArrowWidth + 1;
|
||||||
|
@popoverArrowOuterColor: rgba(0,0,0,.25);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// GRID
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
// Default 940px grid
|
||||||
|
// -------------------------
|
||||||
|
@gridColumns: 12;
|
||||||
|
@gridColumnWidth: 60px;
|
||||||
|
@gridGutterWidth: 20px;
|
||||||
|
@gridRowWidth: (@gridColumns * @gridColumnWidth) + (@gridGutterWidth * (@gridColumns - 1));
|
||||||
|
|
||||||
|
// 1200px min
|
||||||
|
@gridColumnWidth1200: 70px;
|
||||||
|
@gridGutterWidth1200: 30px;
|
||||||
|
@gridRowWidth1200: (@gridColumns * @gridColumnWidth1200) + (@gridGutterWidth1200 * (@gridColumns - 1));
|
||||||
|
|
||||||
|
// 768px-979px
|
||||||
|
@gridColumnWidth768: 42px;
|
||||||
|
@gridGutterWidth768: 20px;
|
||||||
|
@gridRowWidth768: (@gridColumns * @gridColumnWidth768) + (@gridGutterWidth768 * (@gridColumns - 1));
|
||||||
|
|
||||||
|
|
||||||
|
// Fluid grid
|
||||||
|
// -------------------------
|
||||||
|
@fluidGridColumnWidth: percentage(@gridColumnWidth/@gridRowWidth);
|
||||||
|
@fluidGridGutterWidth: percentage(@gridGutterWidth/@gridRowWidth);
|
||||||
|
|
||||||
|
// 1200px min
|
||||||
|
@fluidGridColumnWidth1200: percentage(@gridColumnWidth1200/@gridRowWidth1200);
|
||||||
|
@fluidGridGutterWidth1200: percentage(@gridGutterWidth1200/@gridRowWidth1200);
|
||||||
|
|
||||||
|
// 768px-979px
|
||||||
|
@fluidGridColumnWidth768: percentage(@gridColumnWidth768/@gridRowWidth768);
|
||||||
|
@fluidGridGutterWidth768: percentage(@gridGutterWidth768/@gridRowWidth768);
|
||||||
115
deployed/xef/libraries/xef/bootstrap.php
Normal file
@ -0,0 +1,115 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* XEF - ThemeXpert Extension Framework
|
||||||
|
*
|
||||||
|
* An extension development framework for ThemeXpert
|
||||||
|
*
|
||||||
|
* @package XEF - ThemeXpert Extension Framework
|
||||||
|
* @author ThemeXpert Team
|
||||||
|
* @copyright Copyright (c) 2010 - 2012, ThemeXpert.
|
||||||
|
* @license GNU General Public License version 3, or later
|
||||||
|
* @link http://www.themexpert.com
|
||||||
|
* @since 1.1
|
||||||
|
*/
|
||||||
|
|
||||||
|
// Protect from unauthorized access
|
||||||
|
defined('_JEXEC') or die();
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* Bootstrap the framework and provide common functionality
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* ------------------------------------------------------
|
||||||
|
* Check PHP version and EJECT if older version detected
|
||||||
|
* ------------------------------------------------------
|
||||||
|
*/
|
||||||
|
if(defined('PHP_VERSION')) {
|
||||||
|
$version = PHP_VERSION;
|
||||||
|
} elseif(function_exists('phpversion')) {
|
||||||
|
$version = phpversion();
|
||||||
|
} else {
|
||||||
|
// No version info. I'll lie and hope for the best.
|
||||||
|
$version = '5.0.0';
|
||||||
|
}
|
||||||
|
|
||||||
|
// Old PHP version detected. EJECT! EJECT! EJECT!
|
||||||
|
if(!version_compare($version, '5.2.7', '>='))
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* ------------------------------------------------------
|
||||||
|
* Set the framework
|
||||||
|
* ------------------------------------------------------
|
||||||
|
*/
|
||||||
|
if( !defined('XEF_INCLUDED') )
|
||||||
|
{
|
||||||
|
define('XEF_INCLUDED', 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* ------------------------------------------------------
|
||||||
|
* Check Joomla version and set the constant
|
||||||
|
* ------------------------------------------------------
|
||||||
|
*/
|
||||||
|
if( !defined('XEF_JVERSION') )
|
||||||
|
{
|
||||||
|
if ( version_compare(JVERSION, '2.5', 'ge') && version_compare(JVERSION, '3.0', 'lt') )
|
||||||
|
{
|
||||||
|
define('XEF_JVERSION', '25');
|
||||||
|
}else{
|
||||||
|
define('XEF_JVERSION', '30');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/*
|
||||||
|
* ------------------------------------------------------
|
||||||
|
* Load the global utilities class
|
||||||
|
* ------------------------------------------------------
|
||||||
|
*/
|
||||||
|
if( !class_exists('XEFUtility') )
|
||||||
|
{
|
||||||
|
require_once JPATH_LIBRARIES . '/xef/utility.php';
|
||||||
|
}
|
||||||
|
|
||||||
|
// ------------------------------------------------------
|
||||||
|
if ( ! function_exists('importSource'))
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Import source file by given source name
|
||||||
|
*
|
||||||
|
* @params string $name name of the content soruce
|
||||||
|
*
|
||||||
|
* @return string $class_name Name of the class
|
||||||
|
*/
|
||||||
|
function importSource($name)
|
||||||
|
{
|
||||||
|
$path = JPATH_LIBRARIES . '/xef/sources/';
|
||||||
|
|
||||||
|
// Class prefix utilize XEF framework
|
||||||
|
$prefix = 'XEFSource';
|
||||||
|
|
||||||
|
// Class name based on given source name
|
||||||
|
$class_name = $prefix. ucfirst($name);
|
||||||
|
|
||||||
|
if( ! class_exists($class_name) )
|
||||||
|
{
|
||||||
|
require_once ($path . strtolower($name) . '/' . $name . '.php');
|
||||||
|
}
|
||||||
|
|
||||||
|
return $class_name;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// ------------------------------------------------------
|
||||||
|
if ( ! function_exists('curlExist'))
|
||||||
|
{
|
||||||
|
function curlExist()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
60
deployed/xef/libraries/xef/fields/categoriesmultiple.php
Normal file
@ -0,0 +1,60 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* @package Xpert Captions
|
||||||
|
* @version 2.5
|
||||||
|
* @author ThemeXpert http://www.themexpert.com
|
||||||
|
* @copyright Copyright (C) 2009 - 2011 ThemeXpert
|
||||||
|
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
// no direct access
|
||||||
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
if( file_exists( JPATH_SITE .'/components/com_k2/k2.php') )
|
||||||
|
{
|
||||||
|
|
||||||
|
jimport('joomla.form.formfield');
|
||||||
|
|
||||||
|
class JFormFieldCategoriesMultiple extends JFormField
|
||||||
|
{
|
||||||
|
|
||||||
|
var $type = 'categoriesmultiple';
|
||||||
|
|
||||||
|
function getInput(){
|
||||||
|
$params = JComponentHelper::getParams('com_k2');
|
||||||
|
|
||||||
|
$db = JFactory::getDBO();
|
||||||
|
$query = 'SELECT m.* FROM #__k2_categories m WHERE published=1 AND trash = 0 ORDER BY parent, ordering';
|
||||||
|
$db->setQuery( $query );
|
||||||
|
$mitems = $db->loadObjectList();
|
||||||
|
$children = array();
|
||||||
|
if ($mitems){
|
||||||
|
foreach ( $mitems as $v ){
|
||||||
|
$v->title = $v->name;
|
||||||
|
$v->parent_id = $v->parent;
|
||||||
|
$pt = $v->parent;
|
||||||
|
$list = @$children[$pt] ? $children[$pt] : array();
|
||||||
|
array_push( $list, $v );
|
||||||
|
$children[$pt] = $list;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$attr = 'class="inputbox chzn-select"';
|
||||||
|
$attr .= 'style="width:280px;"';
|
||||||
|
$attr .= 'multiple="multiple"';
|
||||||
|
$attr .= 'data-placeholder="Click here to select categories"';
|
||||||
|
|
||||||
|
$list = JHTML::_('menu.treerecurse', 0, '', array(), $children, 9999, 0, 0 );
|
||||||
|
$mitems = array();
|
||||||
|
|
||||||
|
foreach ( $list as $item ) {
|
||||||
|
$item->treename = JString::str_ireplace(' ', '- ', $item->treename);
|
||||||
|
$mitems[] = JHTML::_('select.option', $item->id, ' '.$item->treename );
|
||||||
|
}
|
||||||
|
|
||||||
|
$fieldName = $this->name.'[]';
|
||||||
|
|
||||||
|
$output= JHTML::_('select.genericlist', $mitems, $fieldName, trim($attr), 'value', 'text', $this->value );
|
||||||
|
return $output;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
176
deployed/xef/libraries/xef/fields/category.php
Normal file
@ -0,0 +1,176 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* @package Joomla.Platform
|
||||||
|
* @subpackage Form
|
||||||
|
*
|
||||||
|
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
|
||||||
|
* @license GNU General Public License version 2 or later; see LICENSE
|
||||||
|
*/
|
||||||
|
|
||||||
|
// no direct access
|
||||||
|
defined( '_JEXEC' ) or die('Restricted access');
|
||||||
|
|
||||||
|
//JFormHelper::loadFieldClass('list');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Form Field class for the Joomla Platform.
|
||||||
|
* Supports an HTML select list of categories
|
||||||
|
*
|
||||||
|
* @package Joomla.Platform
|
||||||
|
* @subpackage Form
|
||||||
|
* @since 11.1
|
||||||
|
*/
|
||||||
|
class JFormFieldCategory extends JFormField
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* The form field type.
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
* @since 11.1
|
||||||
|
*/
|
||||||
|
public $type = 'Category';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Method to get the field input markup for a generic list.
|
||||||
|
* Use the multiple attribute to enable multiselect.
|
||||||
|
*
|
||||||
|
* @return string The field input markup.
|
||||||
|
*
|
||||||
|
* @since 11.1
|
||||||
|
*/
|
||||||
|
protected function getInput()
|
||||||
|
{
|
||||||
|
// Initialize variables.
|
||||||
|
$html = array();
|
||||||
|
$attr = '';
|
||||||
|
|
||||||
|
// Initialize some field attributes.
|
||||||
|
$attr .= $this->element['class'] ? ' class="' . (string) $this->element['class'] . '"' : '';
|
||||||
|
|
||||||
|
// To avoid user's confusion, readonly="true" should imply disabled="true".
|
||||||
|
if ((string) $this->element['readonly'] == 'true' || (string) $this->element['disabled'] == 'true')
|
||||||
|
{
|
||||||
|
$attr .= ' disabled="disabled"';
|
||||||
|
}
|
||||||
|
|
||||||
|
$attr .= $this->element['size'] ? ' size="' . (int) $this->element['size'] . '"' : '';
|
||||||
|
$attr .= $this->multiple ? ' multiple="multiple"' : '';
|
||||||
|
|
||||||
|
// Initialize JavaScript field attributes.
|
||||||
|
$attr .= $this->element['onchange'] ? ' onchange="' . (string) $this->element['onchange'] . '"' : '';
|
||||||
|
|
||||||
|
//$attr .= 'style="width:280px;"';
|
||||||
|
$attr .= 'data-placeholder="Click here to select categories"';
|
||||||
|
|
||||||
|
// Get the field options.
|
||||||
|
$options = (array) $this->getOptions();
|
||||||
|
|
||||||
|
// Create a read-only list (no name) with a hidden input to store the value.
|
||||||
|
if ((string) $this->element['readonly'] == 'true')
|
||||||
|
{
|
||||||
|
$html[] = JHtml::_('select.genericlist', $options, '', trim($attr), 'value', 'text', $this->value, $this->id);
|
||||||
|
$html[] = '<input type="hidden" name="' . $this->name . '" value="' . $this->value . '"/>';
|
||||||
|
}
|
||||||
|
// Create a regular list.
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$html[] = JHtml::_('select.genericlist', $options, $this->name, trim($attr), 'value', 'text', $this->value, $this->id);
|
||||||
|
}
|
||||||
|
|
||||||
|
return implode($html);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Method to get the field options for category
|
||||||
|
* Use the extension attribute in a form to specify the.specific extension for
|
||||||
|
* which categories should be displayed.
|
||||||
|
* Use the show_root attribute to specify whether to show the global category root in the list.
|
||||||
|
*
|
||||||
|
* @return array The field option objects.
|
||||||
|
*
|
||||||
|
* @since 11.1
|
||||||
|
*/
|
||||||
|
protected function getOptions()
|
||||||
|
{
|
||||||
|
// Initialise variables.
|
||||||
|
$options = array();
|
||||||
|
$extension = $this->element['extension'] ? (string) $this->element['extension'] : (string) $this->element['scope'];
|
||||||
|
$published = (string) $this->element['published'];
|
||||||
|
$name = (string) $this->element['name'];
|
||||||
|
|
||||||
|
// Load the category options for a given extension.
|
||||||
|
if (!empty($extension))
|
||||||
|
{
|
||||||
|
|
||||||
|
// Filter over published state or not depending upon if it is present.
|
||||||
|
if ($published)
|
||||||
|
{
|
||||||
|
$options = JHtml::_('category.options', $extension, array('filter.published' => explode(',', $published)));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$options = JHtml::_('category.options', $extension);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Verify permissions. If the action attribute is set, then we scan the options.
|
||||||
|
if ((string) $this->element['action'])
|
||||||
|
{
|
||||||
|
|
||||||
|
// Get the current user object.
|
||||||
|
$user = JFactory::getUser();
|
||||||
|
|
||||||
|
// For new items we want a list of categories you are allowed to create in.
|
||||||
|
if (!$this->form->getValue($name))
|
||||||
|
{
|
||||||
|
foreach ($options as $i => $option) {
|
||||||
|
// To take save or create in a category you need to have create rights for that category
|
||||||
|
// unless the item is already in that category.
|
||||||
|
// Unset the option if the user isn't authorised for it. In this field assets are always categories.
|
||||||
|
if ($user->authorise('core.create', $extension . '.category.' . $option->value) != true )
|
||||||
|
{
|
||||||
|
unset($options[$i]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// If you have an existing category id things are more complex.
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$categoryOld = $this->form->getValue($name);
|
||||||
|
foreach ($options as $i => $option)
|
||||||
|
{
|
||||||
|
// If you are only allowed to edit in this category but not edit.state, you should not get any
|
||||||
|
// option to change the category.
|
||||||
|
if ($user->authorise('core.edit.state', $extension . '.category.' . $categoryOld) != true)
|
||||||
|
{
|
||||||
|
if ($option->value != $categoryOld)
|
||||||
|
{
|
||||||
|
unset($options[$i]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// However, if you can edit.state you can also move this to another category for which you have
|
||||||
|
// create permission and you should also still be able to save in the current category.
|
||||||
|
elseif
|
||||||
|
(($user->authorise('core.create', $extension . '.category.' . $option->value) != true)
|
||||||
|
&& $option->value != $categoryOld)
|
||||||
|
{
|
||||||
|
unset($options[$i]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (isset($this->element['show_root']))
|
||||||
|
{
|
||||||
|
array_unshift($options, JHtml::_('select.option', '0', JText::_('JGLOBAL_ROOT')));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
JError::raiseWarning(500, JText::_('JLIB_FORM_ERROR_FIELDS_CATEGORY_ERROR_EXTENSION_EMPTY'));
|
||||||
|
}
|
||||||
|
|
||||||
|
// Merge any additional options in the XML definition.
|
||||||
|
//$options = array_merge(parent::getOptions(), $options);
|
||||||
|
|
||||||
|
return $options;
|
||||||
|
}
|
||||||
|
}
|
||||||
65
deployed/xef/libraries/xef/fields/doc.php
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* @package Expose
|
||||||
|
* @subpackage Xpert Contents
|
||||||
|
* @version 2.5
|
||||||
|
* @author ThemeXpert http://www.themexpert.com
|
||||||
|
* @copyright Copyright (C) 2009 - 2011 ThemeXpert
|
||||||
|
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
// no direct access
|
||||||
|
defined( '_JEXEC' ) or die('Restricted access');
|
||||||
|
|
||||||
|
jimport('joomla.html.html');
|
||||||
|
jimport('joomla.form.formfield');
|
||||||
|
|
||||||
|
class JFormFieldDoc extends JFormField{
|
||||||
|
|
||||||
|
protected $type = 'Doc';
|
||||||
|
|
||||||
|
|
||||||
|
protected function getInput(){
|
||||||
|
|
||||||
|
$title = $this->element['title'] ? $this->element['title'] : FALSE;
|
||||||
|
$msg = $this->element['message'] ? $this->element['message'] : FALSE;
|
||||||
|
$support = $this->element['support'] ? $this->element['support'] : FALSE;
|
||||||
|
$link = $this->element['link'] ? $this->element['link'] : FALSE;
|
||||||
|
$html = '';
|
||||||
|
|
||||||
|
|
||||||
|
if( ($title OR $msg) AND !$support)
|
||||||
|
{
|
||||||
|
$html .= '<div class="alert">';
|
||||||
|
$html .= ($title) ? '<h4>' . JText::_($title) . '</h4>' : '';
|
||||||
|
$html .= ($msg) ? '<p>' . JText::_($msg) . '</p>' : '';
|
||||||
|
$html .= '</div>';
|
||||||
|
}
|
||||||
|
|
||||||
|
if($support)
|
||||||
|
{
|
||||||
|
$html .= '<div class="alert">';
|
||||||
|
$html .= ($title) ? '<h4>' . JText::_($title) . '</h4>' : '';
|
||||||
|
$html .= ($msg) ? '<p>' . JText::_($msg) . '</p>' : '';
|
||||||
|
$html .= '</div>';
|
||||||
|
}
|
||||||
|
|
||||||
|
if($link)
|
||||||
|
{
|
||||||
|
$html .= '
|
||||||
|
<h3>Follow us!</h3>
|
||||||
|
<p> <strong>Facebook</strong> : <a href="http://www.facebook.com/ThemeXpert" target="_blank">ThemeXpert</a></p>
|
||||||
|
<p> <strong>Twitter</strong> : <a href="http://www.twitter.com/ThemeXpert" target="_blank">@themexpert</a></p>
|
||||||
|
';
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
return $html;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected function getLabel(){
|
||||||
|
return ;
|
||||||
|
}
|
||||||
|
}
|
||||||
86
deployed/xef/libraries/xef/fields/ezbcategories.php
Normal file
@ -0,0 +1,86 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* @package Xpert Slider
|
||||||
|
* @version 1.1
|
||||||
|
* @author ThemeXpert http://www.themexpert.com
|
||||||
|
* @copyright Copyright (C) 2009 - 2011 ThemeXpert
|
||||||
|
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @package EasyBlog
|
||||||
|
* @copyright Copyright (C) 2010 Stack Ideas Private Limited. All rights reserved.
|
||||||
|
* @license GNU/GPL, see LICENSE.php
|
||||||
|
* EasyBlog is free software. This version may have been modified pursuant
|
||||||
|
* to the GNU General Public License, and as distributed it includes or
|
||||||
|
* is derivative of works licensed under the GNU General Public License or
|
||||||
|
* other free or open source software licenses.
|
||||||
|
* See COPYRIGHT.php for copyright notices and details.
|
||||||
|
*/
|
||||||
|
|
||||||
|
// no direct access
|
||||||
|
defined( '_JEXEC' ) or die('Restricted access');
|
||||||
|
|
||||||
|
|
||||||
|
if( file_exists(JPATH_SITE . '/components/com_easyblog/easyblog.php' ) )
|
||||||
|
{
|
||||||
|
jimport('joomla.html.html');
|
||||||
|
jimport('joomla.form.formfield');
|
||||||
|
|
||||||
|
class JFormFieldEZBCategories extends JFormField
|
||||||
|
{
|
||||||
|
|
||||||
|
protected $type = 'EZBCategories';
|
||||||
|
|
||||||
|
protected function getInput()
|
||||||
|
{
|
||||||
|
$mainframe = JFactory::getApplication();
|
||||||
|
$doc = JFactory::getDocument();
|
||||||
|
|
||||||
|
require_once( JPATH_ROOT . '/components/com_easyblog/constants.php' );
|
||||||
|
|
||||||
|
$options = array();
|
||||||
|
$attr = '';
|
||||||
|
$categoryList = array();
|
||||||
|
|
||||||
|
// Initialize some field attributes.
|
||||||
|
$attr .= $this->element['class'] ? ' class="'.(string) $this->element['class'].'"' : 'class="inputbox chzn-select"';
|
||||||
|
|
||||||
|
// To avoid user's confusion, readonly="true" should imply disabled="true".
|
||||||
|
if ( (string) $this->element['readonly'] == 'true' || (string) $this->element['disabled'] == 'true') {
|
||||||
|
$attr .= ' disabled="disabled"';
|
||||||
|
}
|
||||||
|
|
||||||
|
$attr .= $this->element['size'] ? ' size="'.(int) $this->element['size'].'"' : '';
|
||||||
|
$attr .= $this->multiple ? ' multiple="multiple"' : '';
|
||||||
|
|
||||||
|
// Initialize JavaScript field attributes.
|
||||||
|
$attr .= $this->element['onchange'] ? ' onchange="'.(string) $this->element['onchange'].'"' : '';
|
||||||
|
$attr .= 'multiple="multiple"';
|
||||||
|
$attr .= 'style="width:280px;"';
|
||||||
|
$attr .= 'data-placeholder="Click here to select categories"';
|
||||||
|
|
||||||
|
require_once( JPATH_ROOT . '/administrator/components/com_easyblog/models/categories.php' );
|
||||||
|
$model = new EasyBlogModelCategories();
|
||||||
|
$categories = $model->getAllCategories();
|
||||||
|
|
||||||
|
if(count($categories) > 0)
|
||||||
|
{
|
||||||
|
$optgroup = JHTML::_('select.optgroup','Select category','id','title');
|
||||||
|
array_push($categoryList,$optgroup);
|
||||||
|
|
||||||
|
foreach ($categories as $row) {
|
||||||
|
$opt = new stdClass();
|
||||||
|
$opt->id = $row->id;
|
||||||
|
$opt->title = $row->title;
|
||||||
|
|
||||||
|
array_push($categoryList,$opt);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$html = JHTML::_('select.genericlist', $categoryList, $this->name, trim($attr), 'id', 'title', $this->value );
|
||||||
|
return $html;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
238
deployed/xef/libraries/xef/fields/imagepicker.php
Normal file
@ -0,0 +1,238 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* @package Joomla.Platform
|
||||||
|
* @subpackage Form
|
||||||
|
*
|
||||||
|
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
|
||||||
|
* @license GNU General Public License version 2 or later; see LICENSE
|
||||||
|
*/
|
||||||
|
|
||||||
|
defined('JPATH_PLATFORM') or die;
|
||||||
|
|
||||||
|
jimport('joomla.filesystem.file');
|
||||||
|
jimport('joomla.filesystem.folder');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Form Field to display a list of the layouts for module display from the module or template overrides.
|
||||||
|
*
|
||||||
|
* @package Joomla.Platform
|
||||||
|
* @subpackage Form
|
||||||
|
* @since 11.1
|
||||||
|
*/
|
||||||
|
class JFormFieldImagePicker extends JFormField
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* The form field type.
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
* @since 11.1
|
||||||
|
*/
|
||||||
|
protected $type = 'ImagePicker';
|
||||||
|
|
||||||
|
protected function getLabel(){
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Method to get the field input for module layouts.
|
||||||
|
*
|
||||||
|
* @return string The field input.
|
||||||
|
*
|
||||||
|
* @since 11.1
|
||||||
|
*/
|
||||||
|
protected function getInput()
|
||||||
|
{
|
||||||
|
|
||||||
|
// Load Dependencies
|
||||||
|
$doc = JFactory::getDocument();
|
||||||
|
$doc->addStyleSheet( JURI::root(TRUE) . '/libraries/xef/assets/css/image-picker.css' );
|
||||||
|
$doc->addScript( JURI::root(TRUE) . '/libraries/xef/assets/js/image-picker.min.js' );
|
||||||
|
$js = 'jQuery(document).ready(function(){
|
||||||
|
jQuery(".img-list").imagepicker({show_label: true});
|
||||||
|
});';
|
||||||
|
$doc->addScriptDeclaration($js);
|
||||||
|
|
||||||
|
// Get the client id.
|
||||||
|
$clientId = $this->element['client_id'];
|
||||||
|
|
||||||
|
if (is_null($clientId) && $this->form instanceof JForm)
|
||||||
|
{
|
||||||
|
$clientId = $this->form->getValue('client_id');
|
||||||
|
}
|
||||||
|
$clientId = (int) $clientId;
|
||||||
|
|
||||||
|
$client = JApplicationHelper::getClientInfo($clientId);
|
||||||
|
|
||||||
|
// Get the module.
|
||||||
|
$module = (string) $this->element['module'];
|
||||||
|
|
||||||
|
if (empty($module) && ($this->form instanceof JForm))
|
||||||
|
{
|
||||||
|
$module = $this->form->getValue('module');
|
||||||
|
}
|
||||||
|
|
||||||
|
$module = preg_replace('#\W#', '', $module);
|
||||||
|
|
||||||
|
// Get the template.
|
||||||
|
$template = (string) $this->element['template'];
|
||||||
|
$template = preg_replace('#\W#', '', $template);
|
||||||
|
|
||||||
|
// Get the style.
|
||||||
|
if ($this->form instanceof JForm)
|
||||||
|
{
|
||||||
|
$template_style_id = $this->form->getValue('template_style_id');
|
||||||
|
}
|
||||||
|
|
||||||
|
$template_style_id = preg_replace('#\W#', '', $template_style_id);
|
||||||
|
|
||||||
|
// If an extension and view are present build the options.
|
||||||
|
if ($module && $client)
|
||||||
|
{
|
||||||
|
|
||||||
|
// Load language file
|
||||||
|
$lang = JFactory::getLanguage();
|
||||||
|
$lang->load($module . '.sys', $client->path, null, false, false)
|
||||||
|
|| $lang->load($module . '.sys', $client->path . '/modules/' . $module, null, false, false)
|
||||||
|
|| $lang->load($module . '.sys', $client->path, $lang->getDefault(), false, false)
|
||||||
|
|| $lang->load($module . '.sys', $client->path . '/modules/' . $module, $lang->getDefault(), false, false);
|
||||||
|
|
||||||
|
// Get the database object and a new query object.
|
||||||
|
$db = JFactory::getDBO();
|
||||||
|
$query = $db->getQuery(true);
|
||||||
|
|
||||||
|
// Build the query.
|
||||||
|
$query->select('element, name');
|
||||||
|
$query->from('#__extensions as e');
|
||||||
|
$query->where('e.client_id = ' . (int) $clientId);
|
||||||
|
$query->where('e.type = ' . $db->quote('template'));
|
||||||
|
$query->where('e.enabled = 1');
|
||||||
|
|
||||||
|
if ($template)
|
||||||
|
{
|
||||||
|
$query->where('e.element = ' . $db->quote($template));
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($template_style_id)
|
||||||
|
{
|
||||||
|
$query->join('LEFT', '#__template_styles as s on s.template=e.element');
|
||||||
|
$query->where('s.id=' . (int) $template_style_id);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Set the query and load the templates.
|
||||||
|
$db->setQuery($query);
|
||||||
|
$templates = $db->loadObjectList('element');
|
||||||
|
|
||||||
|
// Check for a database error.
|
||||||
|
if ($db->getErrorNum())
|
||||||
|
{
|
||||||
|
JError::raiseWarning(500, $db->getErrorMsg());
|
||||||
|
}
|
||||||
|
|
||||||
|
// Build the search paths for module layouts.
|
||||||
|
$module_path = JPath::clean($client->path . '/modules/' . $module . '/tmpl');
|
||||||
|
|
||||||
|
// Prepare array of component layouts
|
||||||
|
$module_layouts = array();
|
||||||
|
|
||||||
|
// Prepare the grouped list
|
||||||
|
$data = array();
|
||||||
|
|
||||||
|
// Add the layout options from the module path.
|
||||||
|
if (is_dir($module_path) && ($module_layouts = JFolder::files($module_path, '^[^_]*\.php$')))
|
||||||
|
{
|
||||||
|
foreach ($module_layouts as $file)
|
||||||
|
{
|
||||||
|
// Add an option to the module group
|
||||||
|
$value = JFile::stripExt($file);
|
||||||
|
$text = $lang->hasKey($key = strtoupper($module . '_LAYOUT_' . $value)) ? JText::_($key) : $value;
|
||||||
|
|
||||||
|
$image_path = JURI::root(TRUE) . '/modules/' . $module . '/tmpl/' . $value . '.png';
|
||||||
|
$data[] = array(
|
||||||
|
'value' => $value,
|
||||||
|
'text' => $text,
|
||||||
|
'attr' => array('data-img-src'=> $image_path)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Loop on all templates
|
||||||
|
if ($templates)
|
||||||
|
{
|
||||||
|
foreach ($templates as $template)
|
||||||
|
{
|
||||||
|
// Load language file
|
||||||
|
$lang->load('tpl_' . $template->element . '.sys', $client->path, null, false, false)
|
||||||
|
|| $lang->load('tpl_' . $template->element . '.sys', $client->path . '/templates/' . $template->element, null, false, false)
|
||||||
|
|| $lang->load('tpl_' . $template->element . '.sys', $client->path, $lang->getDefault(), false, false)
|
||||||
|
|| $lang->load(
|
||||||
|
'tpl_' . $template->element . '.sys', $client->path . '/templates/' . $template->element, $lang->getDefault(),
|
||||||
|
false, false
|
||||||
|
);
|
||||||
|
|
||||||
|
$template_path = JPath::clean($client->path . '/templates/' . $template->element . '/html/' . $module);
|
||||||
|
|
||||||
|
// Add the layout options from the template path.
|
||||||
|
if (is_dir($template_path) && ($files = JFolder::files($template_path, '^[^_]*\.php$')))
|
||||||
|
{
|
||||||
|
foreach ($files as $i => $file)
|
||||||
|
{
|
||||||
|
// Remove layout that already exist in component ones
|
||||||
|
if (in_array($file, $module_layouts))
|
||||||
|
{
|
||||||
|
unset($files[$i]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (count($files))
|
||||||
|
{
|
||||||
|
|
||||||
|
foreach ($files as $file)
|
||||||
|
{
|
||||||
|
// Add an option to the template group
|
||||||
|
$value = JFile::stripExt($file);
|
||||||
|
$text = $lang->hasKey($key = strtoupper('TPL_' . $template->element . '_' . $module . '_LAYOUT_' . $value))
|
||||||
|
? JText::_($key) : $value;
|
||||||
|
|
||||||
|
$image_path = JURI::root(TRUE) . '/templates/' . $template->element . '/html/' . $module . '/' . $value . '.png';
|
||||||
|
if( !file_exists($image_path) )
|
||||||
|
{
|
||||||
|
$image_path = JURI::root(TRUE) . '/libraries/xef/assets/images/imagepicker_layout_not_found.png';
|
||||||
|
}
|
||||||
|
|
||||||
|
$data[] = array(
|
||||||
|
'value' => $value,
|
||||||
|
'text' => $text,
|
||||||
|
'attr' => array('data-img-src'=> $image_path)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// Compute the current selected values
|
||||||
|
$selected = array($this->value);
|
||||||
|
|
||||||
|
// Pass all options
|
||||||
|
$options = array(
|
||||||
|
'id' => $this->id, // HTML id for select field
|
||||||
|
'list.attr' => array( // additional HTML attributes for select field
|
||||||
|
'class'=>'img-list',
|
||||||
|
),
|
||||||
|
'list.translate'=>false, // true to translate
|
||||||
|
'option.key'=>'value', // key name for value in data array
|
||||||
|
'option.text'=>'text', // key name for text in data array
|
||||||
|
'option.attr'=>'attr', // key name for attr in data array
|
||||||
|
'list.select'=> $selected, // value of the SELECTED field
|
||||||
|
);
|
||||||
|
|
||||||
|
$html = JHtmlSelect::genericlist($data, $this->name , $options);
|
||||||
|
|
||||||
|
return $html;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
1
deployed/xef/libraries/xef/fields/index.html
Normal file
@ -0,0 +1 @@
|
|||||||
|
<html><body bgcolor="#FFFFFF"></body></html>
|
||||||
123
deployed/xef/libraries/xef/fields/list.php
Normal file
@ -0,0 +1,123 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* @package Joomla.Platform
|
||||||
|
* @subpackage Form
|
||||||
|
*
|
||||||
|
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
|
||||||
|
* @license GNU General Public License version 2 or later; see LICENSE
|
||||||
|
*/
|
||||||
|
|
||||||
|
// no direct access
|
||||||
|
defined( '_JEXEC' ) or die('Restricted access');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Form Field class for the Joomla Platform.
|
||||||
|
* Supports a generic list of options.
|
||||||
|
*
|
||||||
|
* @package Joomla.Platform
|
||||||
|
* @subpackage Form
|
||||||
|
* @since 11.1
|
||||||
|
*/
|
||||||
|
class JFormFieldList extends JFormField
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* The form field type.
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
* @since 11.1
|
||||||
|
*/
|
||||||
|
protected $type = 'List';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Method to get the field input markup for a generic list.
|
||||||
|
* Use the multiple attribute to enable multiselect.
|
||||||
|
*
|
||||||
|
* @return string The field input markup.
|
||||||
|
*
|
||||||
|
* @since 11.1
|
||||||
|
*/
|
||||||
|
protected function getInput()
|
||||||
|
{
|
||||||
|
// Initialize variables.
|
||||||
|
$html = array();
|
||||||
|
$attr = '';
|
||||||
|
|
||||||
|
if (!is_array($this->value)) $this->value = explode(",", preg_replace("/\s/", "", $this->value));
|
||||||
|
|
||||||
|
// Initialize some field attributes.
|
||||||
|
$attr .= $this->element['class'] ? ' class="' . (string) $this->element['class'] . '"' : '';
|
||||||
|
|
||||||
|
// To avoid user's confusion, readonly="true" should imply disabled="true".
|
||||||
|
if ((string) $this->element['readonly'] == 'true' || (string) $this->element['disabled'] == 'true')
|
||||||
|
{
|
||||||
|
$attr .= ' disabled="disabled"';
|
||||||
|
}
|
||||||
|
|
||||||
|
$attr .= $this->element['size'] ? ' size="' . (int) $this->element['size'] . '"' : '';
|
||||||
|
$attr .= $this->multiple ? ' multiple="multiple" style="width:280px;"' : '';
|
||||||
|
|
||||||
|
// Initialize JavaScript field attributes.
|
||||||
|
$attr .= $this->element['onchange'] ? ' onchange="' . (string) $this->element['onchange'] . '"' : '';
|
||||||
|
//$attr .= 'style="width:200px;"';
|
||||||
|
|
||||||
|
// Get the field options.
|
||||||
|
$options = (array) $this->getOptions();
|
||||||
|
|
||||||
|
// Create a read-only list (no name) with a hidden input to store the value.
|
||||||
|
if ((string) $this->element['readonly'] == 'true')
|
||||||
|
{
|
||||||
|
$html[] = JHtml::_('select.genericlist', $options, '', trim($attr), 'value', 'text', $this->value, $this->id);
|
||||||
|
$html[] = '<input type="hidden" name="' . $this->name . '" value="' . $this->value . '"/>';
|
||||||
|
}
|
||||||
|
// Create a regular list.
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$html[] = JHtml::_('select.genericlist', $options, $this->name, trim($attr), 'value', 'text', $this->value, $this->id);
|
||||||
|
}
|
||||||
|
|
||||||
|
return implode($html);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Method to get the field options.
|
||||||
|
*
|
||||||
|
* @return array The field option objects.
|
||||||
|
*
|
||||||
|
* @since 11.1
|
||||||
|
*/
|
||||||
|
protected function getOptions()
|
||||||
|
{
|
||||||
|
// Initialize variables.
|
||||||
|
$options = array();
|
||||||
|
|
||||||
|
foreach ($this->element->children() as $option)
|
||||||
|
{
|
||||||
|
|
||||||
|
// Only add <option /> elements.
|
||||||
|
if ($option->getName() != 'option')
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Create a new option object based on the <option /> element.
|
||||||
|
$tmp = JHtml::_(
|
||||||
|
'select.option', (string) $option['value'],
|
||||||
|
JText::alt(trim((string) $option), preg_replace('/[^a-zA-Z0-9_\-]/', '_', $this->fieldname)), 'value', 'text',
|
||||||
|
((string) $option['disabled'] == 'true')
|
||||||
|
);
|
||||||
|
|
||||||
|
// Set some option attributes.
|
||||||
|
$tmp->class = (string) $option['class'];
|
||||||
|
|
||||||
|
// Set some JavaScript option attributes.
|
||||||
|
$tmp->onclick = (string) $option['onclick'];
|
||||||
|
|
||||||
|
// Add the option object to the result set.
|
||||||
|
$options[] = $tmp;
|
||||||
|
}
|
||||||
|
|
||||||
|
reset($options);
|
||||||
|
|
||||||
|
return $options;
|
||||||
|
}
|
||||||
|
}
|
||||||
65
deployed/xef/libraries/xef/fields/modules.php
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* @package Expose
|
||||||
|
* @version 4.0
|
||||||
|
* @author ThemeXpert http://www.themexpert.com
|
||||||
|
* @copyright Copyright (C) 2010 - 2011 ThemeXpert
|
||||||
|
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU/GPLv3
|
||||||
|
* @file core.php
|
||||||
|
**/
|
||||||
|
|
||||||
|
// Ensure this file is being included by a parent file
|
||||||
|
defined('_JEXEC') or die( 'Restricted access' );
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Radio List Element
|
||||||
|
*
|
||||||
|
* @since Class available since Release 1.2.0
|
||||||
|
*/
|
||||||
|
class JFormFieldModules extends JFormField
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Element name
|
||||||
|
*
|
||||||
|
* @access protected
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
protected $type = 'Modules';
|
||||||
|
|
||||||
|
protected function getInput() {
|
||||||
|
|
||||||
|
// Initialize variables.
|
||||||
|
$html = array();
|
||||||
|
$attr = '';
|
||||||
|
|
||||||
|
// Initialize some field attributes.
|
||||||
|
$attr .= $this->element['class'] ? ' class="' . (string) $this->element['class'] . '"' : '';
|
||||||
|
|
||||||
|
$attr .= $this->element['size'] ? ' size="' . (int) $this->element['size'] . '"' : '';
|
||||||
|
$attr .= $this->multiple ? ' multiple="multiple"' : '';
|
||||||
|
|
||||||
|
|
||||||
|
$db =& JFactory::getDBO();
|
||||||
|
$query = "SELECT e.extension_id, a.id, a.title, a.note, a.position, a.module, a.language,a.checked_out, a.checked_out_time, a.published, a.access, a.ordering, a.publish_up, a.publish_down,l.title AS language_title,uc.name AS editor,ag.title AS access_level,MIN(mm.menuid) AS pages,e.name AS name
|
||||||
|
FROM `#__modules` AS a
|
||||||
|
LEFT JOIN `#__languages` AS l ON l.lang_code = a.language
|
||||||
|
LEFT JOIN #__users AS uc ON uc.id=a.checked_out
|
||||||
|
LEFT JOIN #__viewlevels AS ag ON ag.id = a.access
|
||||||
|
LEFT JOIN #__modules_menu AS mm ON mm.moduleid = a.id
|
||||||
|
LEFT JOIN #__extensions AS e ON e.element = a.module
|
||||||
|
WHERE (a.published IN (0, 1)) AND a.client_id = 0
|
||||||
|
GROUP BY a.id";
|
||||||
|
$db->setQuery($query);
|
||||||
|
$groups = $db->loadObjectList();
|
||||||
|
|
||||||
|
$groupHTML = array();
|
||||||
|
if ($groups && count ($groups)) {
|
||||||
|
foreach ($groups as $v=>$t){
|
||||||
|
$groupHTML[] = JHTML::_('select.option', $t->id, $t->title);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$lists = JHTML::_('select.genericlist', $groupHTML, $this->name, trim($attr), 'value', 'text', $this->value);
|
||||||
|
|
||||||
|
return $lists;
|
||||||
|
}
|
||||||
|
}
|
||||||
116
deployed/xef/libraries/xef/fields/radio.php
Normal file
@ -0,0 +1,116 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* @package Joomla.Platform
|
||||||
|
* @subpackage Form
|
||||||
|
*
|
||||||
|
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
|
||||||
|
* @license GNU General Public License version 2 or later; see LICENSE
|
||||||
|
*/
|
||||||
|
|
||||||
|
defined('JPATH_PLATFORM') or die;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Form Field class for the Joomla Platform.
|
||||||
|
* Provides radio button inputs
|
||||||
|
*
|
||||||
|
* @package Joomla.Platform
|
||||||
|
* @subpackage Form
|
||||||
|
* @link http://www.w3.org/TR/html-markup/command.radio.html#command.radio
|
||||||
|
* @since 11.1
|
||||||
|
*/
|
||||||
|
class JFormFieldRadio extends JFormField
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* The form field type.
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
* @since 11.1
|
||||||
|
*/
|
||||||
|
protected $type = 'Radio';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Method to get the radio button field input markup.
|
||||||
|
*
|
||||||
|
* @return string The field input markup.
|
||||||
|
*
|
||||||
|
* @since 11.1
|
||||||
|
*/
|
||||||
|
protected function getInput()
|
||||||
|
{
|
||||||
|
$html = array();
|
||||||
|
|
||||||
|
// Initialize some field attributes.
|
||||||
|
$class = $this->element['class'] ? ' class="radio ' . (string) $this->element['class'] . '"' : ' class="radio"';
|
||||||
|
|
||||||
|
// Start the radio field output.
|
||||||
|
$html[] = '<fieldset id="' . $this->id . '"' . $class . '>';
|
||||||
|
|
||||||
|
// Get the field options.
|
||||||
|
$options = $this->getOptions();
|
||||||
|
|
||||||
|
// Build the radio field output.
|
||||||
|
foreach ($options as $i => $option)
|
||||||
|
{
|
||||||
|
|
||||||
|
// Initialize some option attributes.
|
||||||
|
$checked = ((string) $option->value == (string) $this->value) ? ' checked="checked"' : '';
|
||||||
|
$class = !empty($option->class) ? ' class="' . $option->class . '"' : '';
|
||||||
|
$disabled = !empty($option->disable) ? ' disabled="disabled"' : '';
|
||||||
|
|
||||||
|
// Initialize some JavaScript option attributes.
|
||||||
|
$onclick = !empty($option->onclick) ? ' onclick="' . $option->onclick . '"' : '';
|
||||||
|
|
||||||
|
$html[] = '<input type="radio" id="' . $this->id . $i . '" name="' . $this->name . '"' . ' value="'
|
||||||
|
. htmlspecialchars($option->value, ENT_COMPAT, 'UTF-8') . '"' . $checked . $class . $onclick . $disabled . '/>';
|
||||||
|
|
||||||
|
$html[] = '<label for="' . $this->id . $i . '"' . $class . '>'
|
||||||
|
. JText::alt($option->text, preg_replace('/[^a-zA-Z0-9_\-]/', '_', $this->fieldname)) . '</label>';
|
||||||
|
}
|
||||||
|
|
||||||
|
// End the radio field output.
|
||||||
|
$html[] = '</fieldset>';
|
||||||
|
|
||||||
|
return implode($html);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Method to get the field options for radio buttons.
|
||||||
|
*
|
||||||
|
* @return array The field option objects.
|
||||||
|
*
|
||||||
|
* @since 11.1
|
||||||
|
*/
|
||||||
|
protected function getOptions()
|
||||||
|
{
|
||||||
|
$options = array();
|
||||||
|
|
||||||
|
foreach ($this->element->children() as $option)
|
||||||
|
{
|
||||||
|
|
||||||
|
// Only add <option /> elements.
|
||||||
|
if ($option->getName() != 'option')
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Create a new option object based on the <option /> element.
|
||||||
|
$tmp = JHtml::_(
|
||||||
|
'select.option', (string) $option['value'], trim((string) $option), 'value', 'text',
|
||||||
|
((string) $option['disabled'] == 'true')
|
||||||
|
);
|
||||||
|
|
||||||
|
// Set some option attributes.
|
||||||
|
$tmp->class = (string) $option['class'];
|
||||||
|
|
||||||
|
// Set some JavaScript option attributes.
|
||||||
|
$tmp->onclick = (string) $option['onclick'];
|
||||||
|
|
||||||
|
// Add the option object to the result set.
|
||||||
|
$options[] = $tmp;
|
||||||
|
}
|
||||||
|
|
||||||
|
reset($options);
|
||||||
|
|
||||||
|
return $options;
|
||||||
|
}
|
||||||
|
}
|
||||||
252
deployed/xef/libraries/xef/fields/source.php
Normal file
@ -0,0 +1,252 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* @package Joomla.Platform
|
||||||
|
* @subpackage Form
|
||||||
|
*
|
||||||
|
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
|
||||||
|
* @license GNU General Public License version 2 or later; see LICENSE
|
||||||
|
*/
|
||||||
|
|
||||||
|
// no direct access
|
||||||
|
defined( '_JEXEC' ) or die('Restricted access');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Form Field class for the Joomla Platform.
|
||||||
|
* Supports a one line text field.
|
||||||
|
*
|
||||||
|
* @package Joomla.Platform
|
||||||
|
* @subpackage Form
|
||||||
|
* @link http://www.w3.org/TR/html-markup/input.text.html#input.text
|
||||||
|
* @since 11.1
|
||||||
|
*/
|
||||||
|
class JFormFieldSource extends JFormField
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* The form field type.
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
*
|
||||||
|
* @since 11.1
|
||||||
|
*/
|
||||||
|
protected $type = 'Source';
|
||||||
|
|
||||||
|
protected $providers = array();
|
||||||
|
|
||||||
|
protected $provider_status = array();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Method to get the field input markup.
|
||||||
|
*
|
||||||
|
* @return string The field input markup.
|
||||||
|
*
|
||||||
|
* @since 11.1
|
||||||
|
*/
|
||||||
|
protected function getInput()
|
||||||
|
{
|
||||||
|
$html = '';
|
||||||
|
|
||||||
|
|
||||||
|
$providers = $this->element['providers'] ? $this->element['providers'] : 'joomla';
|
||||||
|
$this->providers = explode(',', $providers);
|
||||||
|
|
||||||
|
// Set the provider status
|
||||||
|
$this->setProviderStatus();
|
||||||
|
|
||||||
|
// Generate the source specific form
|
||||||
|
//$provider_options = $this->loadOptions();
|
||||||
|
|
||||||
|
$list = '';
|
||||||
|
|
||||||
|
$html .= '<a class="btn cs-btn" data-toggle="bsmodal" href="#content-source" ><span>'.JText::_('SELECT_CONTENT_SOURCE_BTN').'</span></a>';
|
||||||
|
|
||||||
|
foreach($this->providers as $provider)
|
||||||
|
{
|
||||||
|
$status = ($this->provider_status[$provider]['status']) ? 'available' : 'notavailable';
|
||||||
|
$msg = $this->provider_status[$provider]['msg'];
|
||||||
|
$list .= "<li>
|
||||||
|
<a class=\"$provider $status\" href=\"#\" rel=\"popover\" $msg >
|
||||||
|
<span>$provider</span>
|
||||||
|
</a>
|
||||||
|
</li>";
|
||||||
|
}
|
||||||
|
|
||||||
|
$html .=
|
||||||
|
'<div class="bsmodal hide fade" id="content-source">
|
||||||
|
<div class="bsmodal-header">
|
||||||
|
<button class="close" data-dismiss="bsmodal">×</button>
|
||||||
|
<h3>'.JText::_('SELECT_CONTENT_SOURCE').'</h3>
|
||||||
|
</div>
|
||||||
|
<div class="bsmodal-body">
|
||||||
|
<ul class="cs-list">
|
||||||
|
'. $list .'
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>';
|
||||||
|
|
||||||
|
// Initialize some field attributes.
|
||||||
|
$class = $this->element['class'] ? ' class="' . (string) $this->element['class'] . '"' : '';
|
||||||
|
|
||||||
|
$html .= '<input type="hidden" name="' . $this->name . '" id="' . $this->id . '"' . ' value="'
|
||||||
|
. htmlspecialchars($this->value, ENT_COMPAT, 'UTF-8') . '"' . $class . '/>';
|
||||||
|
|
||||||
|
return $html ;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function setProviderStatus()
|
||||||
|
{
|
||||||
|
// Status 1 = Available, 0 = Not available
|
||||||
|
$status = '';
|
||||||
|
$msg = '';
|
||||||
|
|
||||||
|
foreach ( $this->providers as $provider )
|
||||||
|
{
|
||||||
|
switch ($provider){
|
||||||
|
case 'joomla' :
|
||||||
|
case 'module' :
|
||||||
|
|
||||||
|
// Joomla is available for all :D
|
||||||
|
$this->provider_status[$provider] = array('status'=> 1, 'msg'=>'');
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'k2':
|
||||||
|
|
||||||
|
$path = JPATH_SITE . '/components/com_k2/k2.php';
|
||||||
|
|
||||||
|
if ( ! file_exists( $path ) )
|
||||||
|
{
|
||||||
|
$status = 0;
|
||||||
|
$msg = 'data-original-title="Not Available!" data-content="K2 Not Found. In order to use the K2 Content type, you will need to download and install it from http://www.getk2.org."';
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$status = 1;
|
||||||
|
$msg = '';
|
||||||
|
}
|
||||||
|
|
||||||
|
$this->provider_status[$provider] = array('status'=> $status, 'msg'=> $msg);
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'easyblog':
|
||||||
|
|
||||||
|
$path = JPATH_SITE . '/components/com_easyblog/easyblog.php';
|
||||||
|
|
||||||
|
if( ! file_exists( $path ) )
|
||||||
|
{
|
||||||
|
$status = 0;
|
||||||
|
$msg = "data-original-title=\"Not Available!\" data-content=\"EasyBlog Not Found. In order to use the EasyBlog Content type, you will need to download and install it from http://www.stackideas.com.\"";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$status = 1;
|
||||||
|
$msg = '';
|
||||||
|
}
|
||||||
|
$this->provider_status[$provider] = array('status'=> $status, 'msg'=> $msg);
|
||||||
|
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'flickr':
|
||||||
|
|
||||||
|
// If module request for flickr we'll serve it without having any question :)
|
||||||
|
$this->provider_status[$provider] = array('status'=> 1, 'msg'=> '');
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'folder':
|
||||||
|
|
||||||
|
// Image folder is must in joomla right? so serve it without any question :)
|
||||||
|
$this->provider_status[$provider] = array('status'=> 1, 'msg'=> '');
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'dribbble':
|
||||||
|
// This service support is coming real soon :)
|
||||||
|
$this->provider_status[$provider] = array('status'=> 0, 'msg'=> "data-original-title='Not Available!' data-content='Dribbble is not available right now. Coming soon.'");
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'instagram':
|
||||||
|
// This service support is coming real soon :)
|
||||||
|
$this->provider_status[$provider] = array('status'=> 0, 'msg'=> "data-original-title='Not Available!' data-content='Instagram is not available right now. Coming soon.'");
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'youtube':
|
||||||
|
// This service support is coming real soon :)
|
||||||
|
$this->provider_status[$provider] = array('status'=> 0, 'msg'=> "data-original-title='Not Available!' data-content='Youtube is not available right now. Coming soon.'");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public function loadOptions()
|
||||||
|
{
|
||||||
|
$path = JPATH_LIBRARIES . '/xef/sources/';
|
||||||
|
$html = '';
|
||||||
|
|
||||||
|
|
||||||
|
$dispatcher = JDispatcher::getInstance();
|
||||||
|
$dispatcher->register('onContentPrepareForm', 'loadForm');
|
||||||
|
|
||||||
|
//echo "<pre>";print_r($dispatcher);echo "</pre>";
|
||||||
|
|
||||||
|
foreach ( $this->provider_status as $provider => $val )
|
||||||
|
{
|
||||||
|
// If provider is available
|
||||||
|
if($val['status'])
|
||||||
|
{
|
||||||
|
$option = $path . $provider . '/options.xml';
|
||||||
|
if( file_exists($option) )
|
||||||
|
{
|
||||||
|
/*//JForm::addFormPath( $path . $provider );
|
||||||
|
$form = JForm::getInstance('com_modules.module');
|
||||||
|
|
||||||
|
//$form->loadFile('options', false);
|
||||||
|
$xml = JFactory::getXML($option);
|
||||||
|
|
||||||
|
$form->setFields($xml);
|
||||||
|
|
||||||
|
$fieldset = $form->getFieldset('joomla');
|
||||||
|
|
||||||
|
foreach($fieldset as $field)
|
||||||
|
{
|
||||||
|
//var_dump($field);
|
||||||
|
$html .= '<li>' . $field->getLabel() . '</li>';
|
||||||
|
$html .= '<li>' . $field->getInput() . '</li>';
|
||||||
|
}*/
|
||||||
|
|
||||||
|
//JForm::addFormPath( $path . $provider );
|
||||||
|
// get the JForm object
|
||||||
|
jimport('joomla.form.form');
|
||||||
|
$form = JForm::getInstance('test', JPATH_LIBRARIES.'/xef/sources/joomla/option.xml');;
|
||||||
|
//$form->loadFile($option, false);
|
||||||
|
var_dump($form);
|
||||||
|
|
||||||
|
/*foreach ($form->getFieldsets('params') as $fieldsets => $fieldset)
|
||||||
|
{
|
||||||
|
foreach($form->getFieldset($fieldset->name) as $field)
|
||||||
|
{
|
||||||
|
|
||||||
|
// If the field is hidden, only use the input.
|
||||||
|
if ($field->hidden)
|
||||||
|
{
|
||||||
|
echo $field->input;
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
echo "<dt>";
|
||||||
|
echo $field->label;
|
||||||
|
echo "</dt>";
|
||||||
|
echo "<dd>";
|
||||||
|
echo $field->input;
|
||||||
|
echo "</dd>";
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}else{
|
||||||
|
//echo $provider . 'options.xml file is missing, please re-install. Alternatively, extract the installation archive and copy the xef directory inside your site\'s libraries directory.';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return $html;
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
43
deployed/xef/libraries/xef/fields/spacer.php
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* @package Expose
|
||||||
|
* @subpackage Xpert Contents
|
||||||
|
* @version 2.5
|
||||||
|
* @author ThemeXpert http://www.themexpert.com
|
||||||
|
* @copyright Copyright (C) 2009 - 2011 ThemeXpert
|
||||||
|
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
// no direct access
|
||||||
|
defined( '_JEXEC' ) or die('Restricted access');
|
||||||
|
|
||||||
|
jimport('joomla.html.html');
|
||||||
|
jimport('joomla.form.formfield');
|
||||||
|
|
||||||
|
class JFormFieldSpacer extends JFormField{
|
||||||
|
|
||||||
|
protected $type = 'Spacer';
|
||||||
|
|
||||||
|
protected function getLabel(){
|
||||||
|
return ;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected function getInput(){
|
||||||
|
$html = array();
|
||||||
|
$class = (string) $this->element['class'];
|
||||||
|
$label = '';
|
||||||
|
|
||||||
|
// Get the label text from the XML element, defaulting to the element name.
|
||||||
|
$text = $this->element['label'] ? (string) $this->element['label'] : '';
|
||||||
|
|
||||||
|
// Add the label text and closing tag.
|
||||||
|
if($text != NULL){
|
||||||
|
$label .= '<div class="spacer'.(($text != '') ? ' hasText hasTip' : '').'" title="'. JText::_($this->description) .'"><span>' . JText::_($text) . '</span></div>';
|
||||||
|
}
|
||||||
|
|
||||||
|
$html[] = $label;
|
||||||
|
|
||||||
|
return implode('', $html);
|
||||||
|
}
|
||||||
|
}
|
||||||
54
deployed/xef/libraries/xef/fields/text.php
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @package Expose
|
||||||
|
* @version 3.0
|
||||||
|
* @author ThemeXpert http://www.themexpert.com
|
||||||
|
* @copyright Copyright (C) 2010 - 2011 ThemeXpert
|
||||||
|
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU/GPLv3
|
||||||
|
*
|
||||||
|
**/
|
||||||
|
|
||||||
|
// Ensure this file is being included by a parent file
|
||||||
|
defined('_JEXEC') or die( 'Restricted access' );
|
||||||
|
|
||||||
|
jimport('joomla.html.html');
|
||||||
|
jimport('joomla.form.formfield');
|
||||||
|
|
||||||
|
class JFormFieldText extends JFormField
|
||||||
|
{
|
||||||
|
protected $type = 'Text';
|
||||||
|
|
||||||
|
protected function getInput()
|
||||||
|
{
|
||||||
|
$output = NULL;
|
||||||
|
// Initialize some field attributes.
|
||||||
|
$size = $this->element['size'] ? ' size="'.(int) $this->element['size'].'"' : '';
|
||||||
|
$maxLength = $this->element['maxlength'] ? ' maxlength="'.(int) $this->element['maxlength'].'"' : '';
|
||||||
|
$class = $this->element['class'];
|
||||||
|
$readonly = ((string) $this->element['readonly'] == 'true') ? ' readonly="readonly"' : '';
|
||||||
|
$disabled = ((string) $this->element['disabled'] == 'true') ? ' disabled="disabled"' : '';
|
||||||
|
|
||||||
|
$prepend = ($this->element['prepend'] != NULL) ? '<span class="add-on">'. JText::_($this->element['prepend']). '</span>' : '';
|
||||||
|
|
||||||
|
$append = ($this->element['append'] != NULL) ? '<span class="add-on">'.JText::_($this->element['append']).'</span>' : '';
|
||||||
|
|
||||||
|
if($prepend) $extra_class = 'input-prepend';
|
||||||
|
elseif($append) $extra_class = 'input-append';
|
||||||
|
else $extra_class = '';
|
||||||
|
|
||||||
|
$wrapstart = '<div class="field-wrap clearfix '.$class. $extra_class .'">';
|
||||||
|
$wrapend = '</div>';
|
||||||
|
|
||||||
|
$input = '<input type="text" name="'.$this->name.'" id="'.$this->id.'"' .
|
||||||
|
' value="'.htmlspecialchars($this->value, ENT_COMPAT, 'UTF-8').'"' .
|
||||||
|
$size.$disabled.$readonly.$maxLength.'/>';
|
||||||
|
|
||||||
|
$output = $wrapstart . $prepend . $input . $append . $wrapend;
|
||||||
|
return $output;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
61
deployed/xef/libraries/xef/fields/utility.php
Normal file
@ -0,0 +1,61 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* @package Expose
|
||||||
|
* @subpackage Xpert Contents
|
||||||
|
* @version 2.5
|
||||||
|
* @author ThemeXpert http://www.themexpert.com
|
||||||
|
* @copyright Copyright (C) 2009 - 2011 ThemeXpert
|
||||||
|
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
// no direct access
|
||||||
|
defined( '_JEXEC' ) or die('Restricted access');
|
||||||
|
|
||||||
|
|
||||||
|
jimport('joomla.html.html');
|
||||||
|
jimport('joomla.form.formfield');
|
||||||
|
|
||||||
|
class JFormFieldUtility extends JFormField{
|
||||||
|
|
||||||
|
protected $type = 'Utility';
|
||||||
|
|
||||||
|
protected function getInput(){
|
||||||
|
|
||||||
|
$doc = JFactory::getDocument();
|
||||||
|
$path_css = JURI::root(true) . '/libraries/xef/assets/css';
|
||||||
|
$path_js = JURI::root(true) . '/libraries/xef/assets/js';
|
||||||
|
|
||||||
|
//load all CSS first
|
||||||
|
$doc->addStyleSheet($path_css .'/jquery-ui-1.8.16.custom.css');
|
||||||
|
$doc->addStyleSheet($path_css .'/bootstrap.css');
|
||||||
|
|
||||||
|
//J2.5 and 3.0 js list to load
|
||||||
|
$j25 = array('jquery-1.8.2.min.js', 'jquery-ui-1.8.16.custom.min.js', 'bootstrap.js', 'bootstrap-modal.js', 'chosen.jquery.min.js');
|
||||||
|
$j30 = array('jquery-ui-1.8.16.custom.min.js', 'bootstrap-modal.js');
|
||||||
|
|
||||||
|
if ( version_compare(JVERSION, '2.5', 'ge') && version_compare(JVERSION, '3.0', 'lt') )
|
||||||
|
{
|
||||||
|
foreach( $j25 as $js )
|
||||||
|
{
|
||||||
|
$doc->addScript( $path_js . '/' . $js );
|
||||||
|
}
|
||||||
|
$doc->addStyleSheet($path_css .'/chosen.css');
|
||||||
|
}else{
|
||||||
|
foreach( $j30 as $js )
|
||||||
|
{
|
||||||
|
$doc->addScript( $path_js . '/' . $js );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//load admin script
|
||||||
|
$doc->addScript( $path_js . '/admin.js');
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
protected function getLabel(){
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
1
deployed/xef/libraries/xef/index.html
Normal file
@ -0,0 +1 @@
|
|||||||
|
<!DOCTYPE html><title></title>
|
||||||
29
deployed/xef/libraries/xef/lib_xef.xml
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<extension type="library" version="2.5" method="upgrade">
|
||||||
|
<name>lib_xef</name>
|
||||||
|
<libraryname>xef</libraryname>
|
||||||
|
<description>
|
||||||
|
ThemeXpert Extension Framework (XEF) – A rapid extension development framework for all ThemeXpert extensions.
|
||||||
|
</description>
|
||||||
|
<creationDate>03/16/2014</creationDate>
|
||||||
|
<author>Parvez Akther</author>
|
||||||
|
<authorEmail>parvez@themexpert.com</authorEmail>
|
||||||
|
<authorUrl>http://themexpert.com/</authorUrl>
|
||||||
|
<copyright>Copyright (C) 2011 - 2011 ThemeXpert</copyright>
|
||||||
|
<license>http://www.gnu.org/licenses/gpl-3.0.html GNU/GPLv3</license>
|
||||||
|
<version>1.4.4</version>
|
||||||
|
|
||||||
|
<files>
|
||||||
|
<folder>assets</folder>
|
||||||
|
<folder>fields</folder>
|
||||||
|
<folder>libs</folder>
|
||||||
|
<folder>sources</folder>
|
||||||
|
<file>lib_xef.xml</file>
|
||||||
|
<file>index.html</file>
|
||||||
|
<file>LICENSE.txt</file>
|
||||||
|
<file>bootstrap.php</file>
|
||||||
|
<file>xef.php</file>
|
||||||
|
<file>utility.php</file>
|
||||||
|
</files>
|
||||||
|
|
||||||
|
</extension>
|
||||||
1
deployed/xef/libraries/xef/libs/index.html
Normal file
@ -0,0 +1 @@
|
|||||||
|
<!DOCTYPE html><title></title>
|
||||||
46
deployed/xef/libraries/xef/libs/xpertthumb.php
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* @package Xpert Thumb
|
||||||
|
* @subpackage Xpert Slider
|
||||||
|
* @version 1.0
|
||||||
|
* @author ThemeXpert http://www.themexpert.com
|
||||||
|
* @copyright Copyright (C) 2009 - 2011 ThemeXpert
|
||||||
|
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
// Protect from unauthorized access
|
||||||
|
defined('_JEXEC') or die();
|
||||||
|
|
||||||
|
jimport('joomla.image.image');
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* Xpert thumb extended Jimage only for adding support JPG file type
|
||||||
|
*
|
||||||
|
**/
|
||||||
|
|
||||||
|
class XpertThumb extends JImage
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Class constructor.
|
||||||
|
*
|
||||||
|
* @param mixed $source Either a file path for a source image or a GD resource handler for an image.
|
||||||
|
*
|
||||||
|
* @since 11.3
|
||||||
|
* @throws RuntimeException
|
||||||
|
*/
|
||||||
|
public function __construct($source = null)
|
||||||
|
{
|
||||||
|
|
||||||
|
// Determine which image types are supported by GD, but only once.
|
||||||
|
if (!isset(self::$formats[IMAGETYPE_JPEG]))
|
||||||
|
{
|
||||||
|
$info = gd_info();
|
||||||
|
self::$formats[IMAGETYPE_JPEG] = ($info['JPEG Support']) ? true : ($info['JPG Support']) ? true :false;
|
||||||
|
self::$formats[IMAGETYPE_PNG] = ($info['PNG Support']) ? true : false;
|
||||||
|
self::$formats[IMAGETYPE_GIF] = ($info['GIF Read Support']) ? true : false;
|
||||||
|
}
|
||||||
|
parent::__construct($source);
|
||||||
|
}
|
||||||
|
}
|
||||||
1
deployed/xef/libraries/xef/sources/dribbble/index.html
Normal file
@ -0,0 +1 @@
|
|||||||
|
<!DOCTYPE html><title></title>
|
||||||
131
deployed/xef/libraries/xef/sources/easyblog/easyblog.php
Normal file
@ -0,0 +1,131 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* @package ThemeXpert Extension Framework (XEF)
|
||||||
|
* @copyright Copyright (c)2010-2012 ThemeXpert.com
|
||||||
|
* @license GNU General Public License version 3, or later
|
||||||
|
**/
|
||||||
|
|
||||||
|
// Protect from unauthorized access
|
||||||
|
defined('_JEXEC') or die();
|
||||||
|
|
||||||
|
// Require XEF helper class
|
||||||
|
require_once JPATH_LIBRARIES . '/xef/xef.php';
|
||||||
|
|
||||||
|
// Load Easyblog helper and router class
|
||||||
|
require_once JPATH_SITE . '/components/com_easyblog/helpers/helper.php';
|
||||||
|
require_once JPATH_SITE . '/components/com_easyblog/helpers/date.php';
|
||||||
|
require_once JPATH_SITE . '/administrator/components/com_easyblog/tables/profile.php';
|
||||||
|
|
||||||
|
class XEFSourceEasyblog extends XEFHelper
|
||||||
|
{
|
||||||
|
public function getItems()
|
||||||
|
{
|
||||||
|
$catid = ($this->get('ezb_catfilter')) ? $this->get('ezb_catid',NULL) : '';
|
||||||
|
$ordering = $this->get('ezb_ordering','latest');
|
||||||
|
$user = JFactory::getUser();
|
||||||
|
$category = EasyBlogHelper::getTable( 'Category', 'Table' );
|
||||||
|
|
||||||
|
$category->load($catid);
|
||||||
|
|
||||||
|
if($category->private && $user->id == 0){
|
||||||
|
echo JText::_('This category is set to private');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if( !class_exists( 'EasyBlogModelBlog' ) ){
|
||||||
|
jimport( 'joomla.application.component.model' );
|
||||||
|
JLoader::import( 'blog' , EBLOG_ROOT . '/' . 'models' );
|
||||||
|
}
|
||||||
|
|
||||||
|
$model = EasyBlogHelper::getModel( 'Blog' );
|
||||||
|
|
||||||
|
if( $this->get( 'ezfeatured') )
|
||||||
|
{
|
||||||
|
$items = $model->getFeaturedBlog( $catid , $this->get('count') );
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$items = $model->getBlogsBy('category', $catid, $ordering , $this->get('count') , EBLOG_FILTER_PUBLISHED, null, false );
|
||||||
|
}
|
||||||
|
|
||||||
|
$config = EasyBlogHelper::getConfig();
|
||||||
|
|
||||||
|
if(! empty($items)){
|
||||||
|
for($i = 0; $i < count($items); $i++)
|
||||||
|
{
|
||||||
|
$data =& $items[$i];
|
||||||
|
$row = EasyBlogHelper::getTable( 'Blog', 'Table' );
|
||||||
|
$row->bind( $data );
|
||||||
|
|
||||||
|
//$row =& $items[$i];
|
||||||
|
$author = EasyBlogHelper::getTable( 'Profile', 'Table' );
|
||||||
|
|
||||||
|
$row->author = $author->load( $row->created_by );
|
||||||
|
$row->commentCount = EasyBlogHelper::getCommentCount($row->id);
|
||||||
|
|
||||||
|
|
||||||
|
$requireVerification = false;
|
||||||
|
if($config->get('main_password_protect', true) && !empty($row->blogpassword))
|
||||||
|
{
|
||||||
|
$row->title = JText::sprintf('COM_EASYBLOG_PASSWORD_PROTECTED_BLOG_TITLE', $row->title);
|
||||||
|
$requireVerification = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
if($requireVerification && !EasyBlogHelper::verifyBlogPassword($row->blogpassword, $row->id))
|
||||||
|
{
|
||||||
|
$theme = new CodeThemes();
|
||||||
|
$theme->set('id', $row->id);
|
||||||
|
$theme->set('return', base64_encode(EasyBlogRouter::_('index.php?option=com_easyblog&view=entry&id='.$row->id)));
|
||||||
|
$row->introtext = $theme->fetch( 'blog.protected.php' );
|
||||||
|
$row->content = $row->introtext;
|
||||||
|
$row->showRating = false;
|
||||||
|
$row->protect = true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$row->introtext = EasyBlogHelper::getHelper( 'Videos' )->strip( $row->content );
|
||||||
|
$row->showRating = true;
|
||||||
|
$row->protect = false;
|
||||||
|
|
||||||
|
}
|
||||||
|
}//end foreach
|
||||||
|
}
|
||||||
|
|
||||||
|
// XEFUtility::debug($items);
|
||||||
|
$items = $this->prepareItems($items);
|
||||||
|
|
||||||
|
return $items;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getLink($item)
|
||||||
|
{
|
||||||
|
return EasyBlogRouter::_('index.php?option=com_easyblog&view=entry&id=' . $item->id . $this->getMenuItemId() );
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getCategory($item)
|
||||||
|
{
|
||||||
|
return $item->category;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getCategoryLink($item)
|
||||||
|
{
|
||||||
|
return EasyBlogRouter::_('index.php?option=com_easyblog&view=categories&layout=listings&id='.$item->category_id . $this->getMenuItemId());
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getImage($item)
|
||||||
|
{
|
||||||
|
if( isset($item->image) AND ($item->image != null) )
|
||||||
|
{
|
||||||
|
$image = json_decode($item->image);
|
||||||
|
return $image->url;
|
||||||
|
}
|
||||||
|
return ( $item->intro ) ? XEFUtility::getImage($item->intro) : XEFUtility::getImage($item->content);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getDate($item)
|
||||||
|
{
|
||||||
|
$config = EasyBlogHelper::getConfig();
|
||||||
|
|
||||||
|
return EasyBlogDateHelper::toFormat( JFactory::getDate( $item->created ), $config->get('layout_dateformat', '%A, %d %B %Y') );
|
||||||
|
}
|
||||||
|
}
|
||||||
1
deployed/xef/libraries/xef/sources/easyblog/index.html
Normal file
@ -0,0 +1 @@
|
|||||||
|
<!DOCTYPE html><title></title>
|
||||||
1391
deployed/xef/libraries/xef/sources/flickr/api/PEAR/DB.php
Normal file
2160
deployed/xef/libraries/xef/sources/flickr/api/PEAR/DB/common.php
Normal file
@ -0,0 +1 @@
|
|||||||
|
<html><body bgcolor="#FFFFFF"></body></html>
|
||||||
1037
deployed/xef/libraries/xef/sources/flickr/api/PEAR/DB/mysql.php
Normal file
1100
deployed/xef/libraries/xef/sources/flickr/api/PEAR/DB/pgsql.php
Normal file
@ -0,0 +1,507 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Provides an object interface to a table row
|
||||||
|
*
|
||||||
|
* PHP versions 4 and 5
|
||||||
|
*
|
||||||
|
* LICENSE: This source file is subject to version 3.0 of the PHP license
|
||||||
|
* that is available through the world-wide-web at the following URI:
|
||||||
|
* http://www.php.net/license/3_0.txt. If you did not receive a copy of
|
||||||
|
* the PHP License and are unable to obtain it through the web, please
|
||||||
|
* send a note to license@php.net so we can mail you a copy immediately.
|
||||||
|
*
|
||||||
|
* @category Database
|
||||||
|
* @package DB
|
||||||
|
* @author Stig Bakken <stig@php.net>
|
||||||
|
* @copyright 1997-2005 The PHP Group
|
||||||
|
* @license http://www.php.net/license/3_0.txt PHP License 3.0
|
||||||
|
* @version CVS: $Id: storage.php 32 2005-08-01 06:21:02Z dancoulter $
|
||||||
|
* @link http://pear.php.net/package/DB
|
||||||
|
*/
|
||||||
|
|
||||||
|
// no direct access
|
||||||
|
defined('_JEXEC') or die('Restricted accessd');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Obtain the DB class so it can be extended from
|
||||||
|
*/
|
||||||
|
require_once 'DB.php';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Provides an object interface to a table row
|
||||||
|
*
|
||||||
|
* It lets you add, delete and change rows using objects rather than SQL
|
||||||
|
* statements.
|
||||||
|
*
|
||||||
|
* @category Database
|
||||||
|
* @package DB
|
||||||
|
* @author Stig Bakken <stig@php.net>
|
||||||
|
* @copyright 1997-2005 The PHP Group
|
||||||
|
* @license http://www.php.net/license/3_0.txt PHP License 3.0
|
||||||
|
* @version Release: @package_version@
|
||||||
|
* @link http://pear.php.net/package/DB
|
||||||
|
*/
|
||||||
|
class DB_storage extends PEAR
|
||||||
|
{
|
||||||
|
// {{{ properties
|
||||||
|
|
||||||
|
/** the name of the table (or view, if the backend database supports
|
||||||
|
updates in views) we hold data from */
|
||||||
|
var $_table = null;
|
||||||
|
|
||||||
|
/** which column(s) in the table contains primary keys, can be a
|
||||||
|
string for single-column primary keys, or an array of strings
|
||||||
|
for multiple-column primary keys */
|
||||||
|
var $_keycolumn = null;
|
||||||
|
|
||||||
|
/** DB connection handle used for all transactions */
|
||||||
|
var $_dbh = null;
|
||||||
|
|
||||||
|
/** an assoc with the names of database fields stored as properties
|
||||||
|
in this object */
|
||||||
|
var $_properties = array();
|
||||||
|
|
||||||
|
/** an assoc with the names of the properties in this object that
|
||||||
|
have been changed since they were fetched from the database */
|
||||||
|
var $_changes = array();
|
||||||
|
|
||||||
|
/** flag that decides if data in this object can be changed.
|
||||||
|
objects that don't have their table's key column in their
|
||||||
|
property lists will be flagged as read-only. */
|
||||||
|
var $_readonly = false;
|
||||||
|
|
||||||
|
/** function or method that implements a validator for fields that
|
||||||
|
are set, this validator function returns true if the field is
|
||||||
|
valid, false if not */
|
||||||
|
var $_validator = null;
|
||||||
|
|
||||||
|
// }}}
|
||||||
|
// {{{ constructor
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructor
|
||||||
|
*
|
||||||
|
* @param $table string the name of the database table
|
||||||
|
*
|
||||||
|
* @param $keycolumn mixed string with name of key column, or array of
|
||||||
|
* strings if the table has a primary key of more than one column
|
||||||
|
*
|
||||||
|
* @param $dbh object database connection object
|
||||||
|
*
|
||||||
|
* @param $validator mixed function or method used to validate
|
||||||
|
* each new value, called with three parameters: the name of the
|
||||||
|
* field/column that is changing, a reference to the new value and
|
||||||
|
* a reference to this object
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
function DB_storage($table, $keycolumn, &$dbh, $validator = null)
|
||||||
|
{
|
||||||
|
$this->PEAR('DB_Error');
|
||||||
|
$this->_table = $table;
|
||||||
|
$this->_keycolumn = $keycolumn;
|
||||||
|
$this->_dbh = $dbh;
|
||||||
|
$this->_readonly = false;
|
||||||
|
$this->_validator = $validator;
|
||||||
|
}
|
||||||
|
|
||||||
|
// }}}
|
||||||
|
// {{{ _makeWhere()
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Utility method to build a "WHERE" clause to locate ourselves in
|
||||||
|
* the table.
|
||||||
|
*
|
||||||
|
* XXX future improvement: use rowids?
|
||||||
|
*
|
||||||
|
* @access private
|
||||||
|
*/
|
||||||
|
function _makeWhere($keyval = null)
|
||||||
|
{
|
||||||
|
if (is_array($this->_keycolumn)) {
|
||||||
|
if ($keyval === null) {
|
||||||
|
for ($i = 0; $i < sizeof($this->_keycolumn); $i++) {
|
||||||
|
$keyval[] = $this->{$this->_keycolumn[$i]};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$whereclause = '';
|
||||||
|
for ($i = 0; $i < sizeof($this->_keycolumn); $i++) {
|
||||||
|
if ($i > 0) {
|
||||||
|
$whereclause .= ' AND ';
|
||||||
|
}
|
||||||
|
$whereclause .= $this->_keycolumn[$i];
|
||||||
|
if (is_null($keyval[$i])) {
|
||||||
|
// there's not much point in having a NULL key,
|
||||||
|
// but we support it anyway
|
||||||
|
$whereclause .= ' IS NULL';
|
||||||
|
} else {
|
||||||
|
$whereclause .= ' = ' . $this->_dbh->quote($keyval[$i]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if ($keyval === null) {
|
||||||
|
$keyval = @$this->{$this->_keycolumn};
|
||||||
|
}
|
||||||
|
$whereclause = $this->_keycolumn;
|
||||||
|
if (is_null($keyval)) {
|
||||||
|
// there's not much point in having a NULL key,
|
||||||
|
// but we support it anyway
|
||||||
|
$whereclause .= ' IS NULL';
|
||||||
|
} else {
|
||||||
|
$whereclause .= ' = ' . $this->_dbh->quote($keyval);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return $whereclause;
|
||||||
|
}
|
||||||
|
|
||||||
|
// }}}
|
||||||
|
// {{{ setup()
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Method used to initialize a DB_storage object from the
|
||||||
|
* configured table.
|
||||||
|
*
|
||||||
|
* @param $keyval mixed the key[s] of the row to fetch (string or array)
|
||||||
|
*
|
||||||
|
* @return int DB_OK on success, a DB error if not
|
||||||
|
*/
|
||||||
|
function setup($keyval)
|
||||||
|
{
|
||||||
|
$whereclause = $this->_makeWhere($keyval);
|
||||||
|
$query = 'SELECT * FROM ' . $this->_table . ' WHERE ' . $whereclause;
|
||||||
|
$sth = $this->_dbh->query($query);
|
||||||
|
if (DB::isError($sth)) {
|
||||||
|
return $sth;
|
||||||
|
}
|
||||||
|
$row = $sth->fetchRow(DB_FETCHMODE_ASSOC);
|
||||||
|
if (DB::isError($row)) {
|
||||||
|
return $row;
|
||||||
|
}
|
||||||
|
if (!$row) {
|
||||||
|
return $this->raiseError(null, DB_ERROR_NOT_FOUND, null, null,
|
||||||
|
$query, null, true);
|
||||||
|
}
|
||||||
|
foreach ($row as $key => $value) {
|
||||||
|
$this->_properties[$key] = true;
|
||||||
|
$this->$key = $value;
|
||||||
|
}
|
||||||
|
return DB_OK;
|
||||||
|
}
|
||||||
|
|
||||||
|
// }}}
|
||||||
|
// {{{ insert()
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new (empty) row in the configured table for this
|
||||||
|
* object.
|
||||||
|
*/
|
||||||
|
function insert($newpk)
|
||||||
|
{
|
||||||
|
if (is_array($this->_keycolumn)) {
|
||||||
|
$primarykey = $this->_keycolumn;
|
||||||
|
} else {
|
||||||
|
$primarykey = array($this->_keycolumn);
|
||||||
|
}
|
||||||
|
settype($newpk, "array");
|
||||||
|
for ($i = 0; $i < sizeof($primarykey); $i++) {
|
||||||
|
$pkvals[] = $this->_dbh->quote($newpk[$i]);
|
||||||
|
}
|
||||||
|
|
||||||
|
$sth = $this->_dbh->query("INSERT INTO $this->_table (" .
|
||||||
|
implode(",", $primarykey) . ") VALUES(" .
|
||||||
|
implode(",", $pkvals) . ")");
|
||||||
|
if (DB::isError($sth)) {
|
||||||
|
return $sth;
|
||||||
|
}
|
||||||
|
if (sizeof($newpk) == 1) {
|
||||||
|
$newpk = $newpk[0];
|
||||||
|
}
|
||||||
|
$this->setup($newpk);
|
||||||
|
}
|
||||||
|
|
||||||
|
// }}}
|
||||||
|
// {{{ toString()
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Output a simple description of this DB_storage object.
|
||||||
|
* @return string object description
|
||||||
|
*/
|
||||||
|
function toString()
|
||||||
|
{
|
||||||
|
$info = strtolower(get_class($this));
|
||||||
|
$info .= " (table=";
|
||||||
|
$info .= $this->_table;
|
||||||
|
$info .= ", keycolumn=";
|
||||||
|
if (is_array($this->_keycolumn)) {
|
||||||
|
$info .= "(" . implode(",", $this->_keycolumn) . ")";
|
||||||
|
} else {
|
||||||
|
$info .= $this->_keycolumn;
|
||||||
|
}
|
||||||
|
$info .= ", dbh=";
|
||||||
|
if (is_object($this->_dbh)) {
|
||||||
|
$info .= $this->_dbh->toString();
|
||||||
|
} else {
|
||||||
|
$info .= "null";
|
||||||
|
}
|
||||||
|
$info .= ")";
|
||||||
|
if (sizeof($this->_properties)) {
|
||||||
|
$info .= " [loaded, key=";
|
||||||
|
$keyname = $this->_keycolumn;
|
||||||
|
if (is_array($keyname)) {
|
||||||
|
$info .= "(";
|
||||||
|
for ($i = 0; $i < sizeof($keyname); $i++) {
|
||||||
|
if ($i > 0) {
|
||||||
|
$info .= ",";
|
||||||
|
}
|
||||||
|
$info .= $this->$keyname[$i];
|
||||||
|
}
|
||||||
|
$info .= ")";
|
||||||
|
} else {
|
||||||
|
$info .= $this->$keyname;
|
||||||
|
}
|
||||||
|
$info .= "]";
|
||||||
|
}
|
||||||
|
if (sizeof($this->_changes)) {
|
||||||
|
$info .= " [modified]";
|
||||||
|
}
|
||||||
|
return $info;
|
||||||
|
}
|
||||||
|
|
||||||
|
// }}}
|
||||||
|
// {{{ dump()
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Dump the contents of this object to "standard output".
|
||||||
|
*/
|
||||||
|
function dump()
|
||||||
|
{
|
||||||
|
foreach ($this->_properties as $prop => $foo) {
|
||||||
|
print "$prop = ";
|
||||||
|
print htmlentities($this->$prop);
|
||||||
|
print "<br />\n";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// }}}
|
||||||
|
// {{{ &create()
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Static method used to create new DB storage objects.
|
||||||
|
* @param $data assoc. array where the keys are the names
|
||||||
|
* of properties/columns
|
||||||
|
* @return object a new instance of DB_storage or a subclass of it
|
||||||
|
*/
|
||||||
|
function &create($table, &$data)
|
||||||
|
{
|
||||||
|
$classname = strtolower(get_class($this));
|
||||||
|
$obj =& new $classname($table);
|
||||||
|
foreach ($data as $name => $value) {
|
||||||
|
$obj->_properties[$name] = true;
|
||||||
|
$obj->$name = &$value;
|
||||||
|
}
|
||||||
|
return $obj;
|
||||||
|
}
|
||||||
|
|
||||||
|
// }}}
|
||||||
|
// {{{ loadFromQuery()
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Loads data into this object from the given query. If this
|
||||||
|
* object already contains table data, changes will be saved and
|
||||||
|
* the object re-initialized first.
|
||||||
|
*
|
||||||
|
* @param $query SQL query
|
||||||
|
*
|
||||||
|
* @param $params parameter list in case you want to use
|
||||||
|
* prepare/execute mode
|
||||||
|
*
|
||||||
|
* @return int DB_OK on success, DB_WARNING_READ_ONLY if the
|
||||||
|
* returned object is read-only (because the object's specified
|
||||||
|
* key column was not found among the columns returned by $query),
|
||||||
|
* or another DB error code in case of errors.
|
||||||
|
*/
|
||||||
|
// XXX commented out for now
|
||||||
|
/*
|
||||||
|
function loadFromQuery($query, $params = null)
|
||||||
|
{
|
||||||
|
if (sizeof($this->_properties)) {
|
||||||
|
if (sizeof($this->_changes)) {
|
||||||
|
$this->store();
|
||||||
|
$this->_changes = array();
|
||||||
|
}
|
||||||
|
$this->_properties = array();
|
||||||
|
}
|
||||||
|
$rowdata = $this->_dbh->getRow($query, DB_FETCHMODE_ASSOC, $params);
|
||||||
|
if (DB::isError($rowdata)) {
|
||||||
|
return $rowdata;
|
||||||
|
}
|
||||||
|
reset($rowdata);
|
||||||
|
$found_keycolumn = false;
|
||||||
|
while (list($key, $value) = each($rowdata)) {
|
||||||
|
if ($key == $this->_keycolumn) {
|
||||||
|
$found_keycolumn = true;
|
||||||
|
}
|
||||||
|
$this->_properties[$key] = true;
|
||||||
|
$this->$key = &$value;
|
||||||
|
unset($value); // have to unset, or all properties will
|
||||||
|
// refer to the same value
|
||||||
|
}
|
||||||
|
if (!$found_keycolumn) {
|
||||||
|
$this->_readonly = true;
|
||||||
|
return DB_WARNING_READ_ONLY;
|
||||||
|
}
|
||||||
|
return DB_OK;
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
|
// }}}
|
||||||
|
// {{{ set()
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Modify an attriute value.
|
||||||
|
*/
|
||||||
|
function set($property, $newvalue)
|
||||||
|
{
|
||||||
|
// only change if $property is known and object is not
|
||||||
|
// read-only
|
||||||
|
if ($this->_readonly) {
|
||||||
|
return $this->raiseError(null, DB_WARNING_READ_ONLY, null,
|
||||||
|
null, null, null, true);
|
||||||
|
}
|
||||||
|
if (@isset($this->_properties[$property])) {
|
||||||
|
if (empty($this->_validator)) {
|
||||||
|
$valid = true;
|
||||||
|
} else {
|
||||||
|
$valid = @call_user_func($this->_validator,
|
||||||
|
$this->_table,
|
||||||
|
$property,
|
||||||
|
$newvalue,
|
||||||
|
$this->$property,
|
||||||
|
$this);
|
||||||
|
}
|
||||||
|
if ($valid) {
|
||||||
|
$this->$property = $newvalue;
|
||||||
|
if (empty($this->_changes[$property])) {
|
||||||
|
$this->_changes[$property] = 0;
|
||||||
|
} else {
|
||||||
|
$this->_changes[$property]++;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
return $this->raiseError(null, DB_ERROR_INVALID, null,
|
||||||
|
null, "invalid field: $property",
|
||||||
|
null, true);
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return $this->raiseError(null, DB_ERROR_NOSUCHFIELD, null,
|
||||||
|
null, "unknown field: $property",
|
||||||
|
null, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
// }}}
|
||||||
|
// {{{ &get()
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Fetch an attribute value.
|
||||||
|
*
|
||||||
|
* @param string attribute name
|
||||||
|
*
|
||||||
|
* @return attribute contents, or null if the attribute name is
|
||||||
|
* unknown
|
||||||
|
*/
|
||||||
|
function &get($property)
|
||||||
|
{
|
||||||
|
// only return if $property is known
|
||||||
|
if (isset($this->_properties[$property])) {
|
||||||
|
return $this->$property;
|
||||||
|
}
|
||||||
|
$tmp = null;
|
||||||
|
return $tmp;
|
||||||
|
}
|
||||||
|
|
||||||
|
// }}}
|
||||||
|
// {{{ _DB_storage()
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Destructor, calls DB_storage::store() if there are changes
|
||||||
|
* that are to be kept.
|
||||||
|
*/
|
||||||
|
function _DB_storage()
|
||||||
|
{
|
||||||
|
if (sizeof($this->_changes)) {
|
||||||
|
$this->store();
|
||||||
|
}
|
||||||
|
$this->_properties = array();
|
||||||
|
$this->_changes = array();
|
||||||
|
$this->_table = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
// }}}
|
||||||
|
// {{{ store()
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Stores changes to this object in the database.
|
||||||
|
*
|
||||||
|
* @return DB_OK or a DB error
|
||||||
|
*/
|
||||||
|
function store()
|
||||||
|
{
|
||||||
|
foreach ($this->_changes as $name => $foo) {
|
||||||
|
$params[] = &$this->$name;
|
||||||
|
$vars[] = $name . ' = ?';
|
||||||
|
}
|
||||||
|
if ($vars) {
|
||||||
|
$query = 'UPDATE ' . $this->_table . ' SET ' .
|
||||||
|
implode(', ', $vars) . ' WHERE ' .
|
||||||
|
$this->_makeWhere();
|
||||||
|
$stmt = $this->_dbh->prepare($query);
|
||||||
|
$res = $this->_dbh->execute($stmt, $params);
|
||||||
|
if (DB::isError($res)) {
|
||||||
|
return $res;
|
||||||
|
}
|
||||||
|
$this->_changes = array();
|
||||||
|
}
|
||||||
|
return DB_OK;
|
||||||
|
}
|
||||||
|
|
||||||
|
// }}}
|
||||||
|
// {{{ remove()
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Remove the row represented by this object from the database.
|
||||||
|
*
|
||||||
|
* @return mixed DB_OK or a DB error
|
||||||
|
*/
|
||||||
|
function remove()
|
||||||
|
{
|
||||||
|
if ($this->_readonly) {
|
||||||
|
return $this->raiseError(null, DB_WARNING_READ_ONLY, null,
|
||||||
|
null, null, null, true);
|
||||||
|
}
|
||||||
|
$query = 'DELETE FROM ' . $this->_table .' WHERE '.
|
||||||
|
$this->_makeWhere();
|
||||||
|
$res = $this->_dbh->query($query);
|
||||||
|
if (DB::isError($res)) {
|
||||||
|
return $res;
|
||||||
|
}
|
||||||
|
foreach ($this->_properties as $prop => $foo) {
|
||||||
|
unset($this->$prop);
|
||||||
|
}
|
||||||
|
$this->_properties = array();
|
||||||
|
$this->_changes = array();
|
||||||
|
return DB_OK;
|
||||||
|
}
|
||||||
|
|
||||||
|
// }}}
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Local variables:
|
||||||
|
* tab-width: 4
|
||||||
|
* c-basic-offset: 4
|
||||||
|
* End:
|
||||||
|
*/
|
||||||
|
|
||||||
|
?>
|
||||||
1487
deployed/xef/libraries/xef/sources/flickr/api/PEAR/HTTP/Request.php
Normal file
@ -0,0 +1 @@
|
|||||||
|
<html><body bgcolor="#FFFFFF"></body></html>
|
||||||
@ -0,0 +1,531 @@
|
|||||||
|
<?php
|
||||||
|
//
|
||||||
|
// +----------------------------------------------------------------------+
|
||||||
|
// | PHP Version 4 |
|
||||||
|
// +----------------------------------------------------------------------+
|
||||||
|
// | Copyright (c) 1997-2003 The PHP Group |
|
||||||
|
// +----------------------------------------------------------------------+
|
||||||
|
// | This source file is subject to version 2.0 of the PHP license, |
|
||||||
|
// | that is bundled with this package in the file LICENSE, and is |
|
||||||
|
// | available at through the world-wide-web at |
|
||||||
|
// | http://www.php.net/license/2_02.txt. |
|
||||||
|
// | If you did not receive a copy of the PHP license and are unable to |
|
||||||
|
// | obtain it through the world-wide-web, please send a note to |
|
||||||
|
// | license@php.net so we can mail you a copy immediately. |
|
||||||
|
// +----------------------------------------------------------------------+
|
||||||
|
// | Authors: Stig Bakken <ssb@php.net> |
|
||||||
|
// | Chuck Hagenbuch <chuck@horde.org> |
|
||||||
|
// +----------------------------------------------------------------------+
|
||||||
|
//
|
||||||
|
// $Id: Socket.php 32 2005-08-01 06:21:02Z dancoulter $
|
||||||
|
|
||||||
|
// no direct access
|
||||||
|
defined('_JEXEC') or die('Restricted accessd');
|
||||||
|
|
||||||
|
require_once 'PEAR.php';
|
||||||
|
|
||||||
|
define('NET_SOCKET_READ', 1);
|
||||||
|
define('NET_SOCKET_WRITE', 2);
|
||||||
|
define('NET_SOCKET_ERROR', 3);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generalized Socket class.
|
||||||
|
*
|
||||||
|
* @version 1.1
|
||||||
|
* @author Stig Bakken <ssb@php.net>
|
||||||
|
* @author Chuck Hagenbuch <chuck@horde.org>
|
||||||
|
*/
|
||||||
|
class Net_Socket extends PEAR {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Socket file pointer.
|
||||||
|
* @var resource $fp
|
||||||
|
*/
|
||||||
|
var $fp = null;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Whether the socket is blocking. Defaults to true.
|
||||||
|
* @var boolean $blocking
|
||||||
|
*/
|
||||||
|
var $blocking = true;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Whether the socket is persistent. Defaults to false.
|
||||||
|
* @var boolean $persistent
|
||||||
|
*/
|
||||||
|
var $persistent = false;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The IP address to connect to.
|
||||||
|
* @var string $addr
|
||||||
|
*/
|
||||||
|
var $addr = '';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The port number to connect to.
|
||||||
|
* @var integer $port
|
||||||
|
*/
|
||||||
|
var $port = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Number of seconds to wait on socket connections before assuming
|
||||||
|
* there's no more data. Defaults to no timeout.
|
||||||
|
* @var integer $timeout
|
||||||
|
*/
|
||||||
|
var $timeout = false;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Number of bytes to read at a time in readLine() and
|
||||||
|
* readAll(). Defaults to 2048.
|
||||||
|
* @var integer $lineLength
|
||||||
|
*/
|
||||||
|
var $lineLength = 2048;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Connect to the specified port. If called when the socket is
|
||||||
|
* already connected, it disconnects and connects again.
|
||||||
|
*
|
||||||
|
* @param string $addr IP address or host name.
|
||||||
|
* @param integer $port TCP port number.
|
||||||
|
* @param boolean $persistent (optional) Whether the connection is
|
||||||
|
* persistent (kept open between requests
|
||||||
|
* by the web server).
|
||||||
|
* @param integer $timeout (optional) How long to wait for data.
|
||||||
|
* @param array $options See options for stream_context_create.
|
||||||
|
*
|
||||||
|
* @access public
|
||||||
|
*
|
||||||
|
* @return boolean | PEAR_Error True on success or a PEAR_Error on failure.
|
||||||
|
*/
|
||||||
|
function connect($addr, $port = 0, $persistent = null, $timeout = null, $options = null)
|
||||||
|
{
|
||||||
|
if (is_resource($this->fp)) {
|
||||||
|
@fclose($this->fp);
|
||||||
|
$this->fp = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!$addr) {
|
||||||
|
return $this->raiseError('$addr cannot be empty');
|
||||||
|
} elseif (strspn($addr, '.0123456789') == strlen($addr) ||
|
||||||
|
strstr($addr, '/') !== false) {
|
||||||
|
$this->addr = $addr;
|
||||||
|
} else {
|
||||||
|
$this->addr = @gethostbyname($addr);
|
||||||
|
}
|
||||||
|
|
||||||
|
$this->port = $port % 65536;
|
||||||
|
|
||||||
|
if ($persistent !== null) {
|
||||||
|
$this->persistent = $persistent;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($timeout !== null) {
|
||||||
|
$this->timeout = $timeout;
|
||||||
|
}
|
||||||
|
|
||||||
|
$openfunc = $this->persistent ? 'pfsockopen' : 'fsockopen';
|
||||||
|
$errno = 0;
|
||||||
|
$errstr = '';
|
||||||
|
if ($options && function_exists('stream_context_create')) {
|
||||||
|
if ($this->timeout) {
|
||||||
|
$timeout = $this->timeout;
|
||||||
|
} else {
|
||||||
|
$timeout = 0;
|
||||||
|
}
|
||||||
|
$context = stream_context_create($options);
|
||||||
|
$fp = @$openfunc($this->addr, $this->port, $errno, $errstr, $timeout, $context);
|
||||||
|
} else {
|
||||||
|
if ($this->timeout) {
|
||||||
|
$fp = @$openfunc($this->addr, $this->port, $errno, $errstr, $this->timeout);
|
||||||
|
} else {
|
||||||
|
$fp = @$openfunc($this->addr, $this->port, $errno, $errstr);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!$fp) {
|
||||||
|
return $this->raiseError($errstr, $errno);
|
||||||
|
}
|
||||||
|
|
||||||
|
$this->fp = $fp;
|
||||||
|
|
||||||
|
return $this->setBlocking($this->blocking);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Disconnects from the peer, closes the socket.
|
||||||
|
*
|
||||||
|
* @access public
|
||||||
|
* @return mixed true on success or an error object otherwise
|
||||||
|
*/
|
||||||
|
function disconnect()
|
||||||
|
{
|
||||||
|
if (!is_resource($this->fp)) {
|
||||||
|
return $this->raiseError('not connected');
|
||||||
|
}
|
||||||
|
|
||||||
|
@fclose($this->fp);
|
||||||
|
$this->fp = null;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Find out if the socket is in blocking mode.
|
||||||
|
*
|
||||||
|
* @access public
|
||||||
|
* @return boolean The current blocking mode.
|
||||||
|
*/
|
||||||
|
function isBlocking()
|
||||||
|
{
|
||||||
|
return $this->blocking;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets whether the socket connection should be blocking or
|
||||||
|
* not. A read call to a non-blocking socket will return immediately
|
||||||
|
* if there is no data available, whereas it will block until there
|
||||||
|
* is data for blocking sockets.
|
||||||
|
*
|
||||||
|
* @param boolean $mode True for blocking sockets, false for nonblocking.
|
||||||
|
* @access public
|
||||||
|
* @return mixed true on success or an error object otherwise
|
||||||
|
*/
|
||||||
|
function setBlocking($mode)
|
||||||
|
{
|
||||||
|
if (!is_resource($this->fp)) {
|
||||||
|
return $this->raiseError('not connected');
|
||||||
|
}
|
||||||
|
|
||||||
|
$this->blocking = $mode;
|
||||||
|
socket_set_blocking($this->fp, $this->blocking);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the timeout value on socket descriptor,
|
||||||
|
* expressed in the sum of seconds and microseconds
|
||||||
|
*
|
||||||
|
* @param integer $seconds Seconds.
|
||||||
|
* @param integer $microseconds Microseconds.
|
||||||
|
* @access public
|
||||||
|
* @return mixed true on success or an error object otherwise
|
||||||
|
*/
|
||||||
|
function setTimeout($seconds, $microseconds)
|
||||||
|
{
|
||||||
|
if (!is_resource($this->fp)) {
|
||||||
|
return $this->raiseError('not connected');
|
||||||
|
}
|
||||||
|
|
||||||
|
return socket_set_timeout($this->fp, $seconds, $microseconds);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns information about an existing socket resource.
|
||||||
|
* Currently returns four entries in the result array:
|
||||||
|
*
|
||||||
|
* <p>
|
||||||
|
* timed_out (bool) - The socket timed out waiting for data<br>
|
||||||
|
* blocked (bool) - The socket was blocked<br>
|
||||||
|
* eof (bool) - Indicates EOF event<br>
|
||||||
|
* unread_bytes (int) - Number of bytes left in the socket buffer<br>
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @access public
|
||||||
|
* @return mixed Array containing information about existing socket resource or an error object otherwise
|
||||||
|
*/
|
||||||
|
function getStatus()
|
||||||
|
{
|
||||||
|
if (!is_resource($this->fp)) {
|
||||||
|
return $this->raiseError('not connected');
|
||||||
|
}
|
||||||
|
|
||||||
|
return socket_get_status($this->fp);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get a specified line of data
|
||||||
|
*
|
||||||
|
* @access public
|
||||||
|
* @return $size bytes of data from the socket, or a PEAR_Error if
|
||||||
|
* not connected.
|
||||||
|
*/
|
||||||
|
function gets($size)
|
||||||
|
{
|
||||||
|
if (!is_resource($this->fp)) {
|
||||||
|
return $this->raiseError('not connected');
|
||||||
|
}
|
||||||
|
|
||||||
|
return @fgets($this->fp, $size);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Read a specified amount of data. This is guaranteed to return,
|
||||||
|
* and has the added benefit of getting everything in one fread()
|
||||||
|
* chunk; if you know the size of the data you're getting
|
||||||
|
* beforehand, this is definitely the way to go.
|
||||||
|
*
|
||||||
|
* @param integer $size The number of bytes to read from the socket.
|
||||||
|
* @access public
|
||||||
|
* @return $size bytes of data from the socket, or a PEAR_Error if
|
||||||
|
* not connected.
|
||||||
|
*/
|
||||||
|
function read($size)
|
||||||
|
{
|
||||||
|
if (!is_resource($this->fp)) {
|
||||||
|
return $this->raiseError('not connected');
|
||||||
|
}
|
||||||
|
|
||||||
|
return @fread($this->fp, $size);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Write a specified amount of data.
|
||||||
|
*
|
||||||
|
* @param string $data Data to write.
|
||||||
|
* @param integer $blocksize Amount of data to write at once.
|
||||||
|
* NULL means all at once.
|
||||||
|
*
|
||||||
|
* @access public
|
||||||
|
* @return mixed true on success or an error object otherwise
|
||||||
|
*/
|
||||||
|
function write($data, $blocksize = null)
|
||||||
|
{
|
||||||
|
if (!is_resource($this->fp)) {
|
||||||
|
return $this->raiseError('not connected');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (is_null($blocksize) && !OS_WINDOWS) {
|
||||||
|
return fwrite($this->fp, $data);
|
||||||
|
} else {
|
||||||
|
if (is_null($blocksize)) {
|
||||||
|
$blocksize = 1024;
|
||||||
|
}
|
||||||
|
|
||||||
|
$pos = 0;
|
||||||
|
$size = strlen($data);
|
||||||
|
while ($pos < $size) {
|
||||||
|
$written = @fwrite($this->fp, substr($data, $pos, $blocksize));
|
||||||
|
if ($written === false) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
$pos += $written;
|
||||||
|
}
|
||||||
|
|
||||||
|
return $pos;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Write a line of data to the socket, followed by a trailing "\r\n".
|
||||||
|
*
|
||||||
|
* @access public
|
||||||
|
* @return mixed fputs result, or an error
|
||||||
|
*/
|
||||||
|
function writeLine($data)
|
||||||
|
{
|
||||||
|
if (!is_resource($this->fp)) {
|
||||||
|
return $this->raiseError('not connected');
|
||||||
|
}
|
||||||
|
|
||||||
|
return fwrite($this->fp, $data . "\r\n");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Tests for end-of-file on a socket descriptor.
|
||||||
|
*
|
||||||
|
* @access public
|
||||||
|
* @return bool
|
||||||
|
*/
|
||||||
|
function eof()
|
||||||
|
{
|
||||||
|
return (is_resource($this->fp) && feof($this->fp));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reads a byte of data
|
||||||
|
*
|
||||||
|
* @access public
|
||||||
|
* @return 1 byte of data from the socket, or a PEAR_Error if
|
||||||
|
* not connected.
|
||||||
|
*/
|
||||||
|
function readByte()
|
||||||
|
{
|
||||||
|
if (!is_resource($this->fp)) {
|
||||||
|
return $this->raiseError('not connected');
|
||||||
|
}
|
||||||
|
|
||||||
|
return ord(@fread($this->fp, 1));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reads a word of data
|
||||||
|
*
|
||||||
|
* @access public
|
||||||
|
* @return 1 word of data from the socket, or a PEAR_Error if
|
||||||
|
* not connected.
|
||||||
|
*/
|
||||||
|
function readWord()
|
||||||
|
{
|
||||||
|
if (!is_resource($this->fp)) {
|
||||||
|
return $this->raiseError('not connected');
|
||||||
|
}
|
||||||
|
|
||||||
|
$buf = @fread($this->fp, 2);
|
||||||
|
return (ord($buf[0]) + (ord($buf[1]) << 8));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reads an int of data
|
||||||
|
*
|
||||||
|
* @access public
|
||||||
|
* @return integer 1 int of data from the socket, or a PEAR_Error if
|
||||||
|
* not connected.
|
||||||
|
*/
|
||||||
|
function readInt()
|
||||||
|
{
|
||||||
|
if (!is_resource($this->fp)) {
|
||||||
|
return $this->raiseError('not connected');
|
||||||
|
}
|
||||||
|
|
||||||
|
$buf = @fread($this->fp, 4);
|
||||||
|
return (ord($buf[0]) + (ord($buf[1]) << 8) +
|
||||||
|
(ord($buf[2]) << 16) + (ord($buf[3]) << 24));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reads a zero-terminated string of data
|
||||||
|
*
|
||||||
|
* @access public
|
||||||
|
* @return string, or a PEAR_Error if
|
||||||
|
* not connected.
|
||||||
|
*/
|
||||||
|
function readString()
|
||||||
|
{
|
||||||
|
if (!is_resource($this->fp)) {
|
||||||
|
return $this->raiseError('not connected');
|
||||||
|
}
|
||||||
|
|
||||||
|
$string = '';
|
||||||
|
while (($char = @fread($this->fp, 1)) != "\x00") {
|
||||||
|
$string .= $char;
|
||||||
|
}
|
||||||
|
return $string;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reads an IP Address and returns it in a dot formated string
|
||||||
|
*
|
||||||
|
* @access public
|
||||||
|
* @return Dot formated string, or a PEAR_Error if
|
||||||
|
* not connected.
|
||||||
|
*/
|
||||||
|
function readIPAddress()
|
||||||
|
{
|
||||||
|
if (!is_resource($this->fp)) {
|
||||||
|
return $this->raiseError('not connected');
|
||||||
|
}
|
||||||
|
|
||||||
|
$buf = @fread($this->fp, 4);
|
||||||
|
return sprintf("%s.%s.%s.%s", ord($buf[0]), ord($buf[1]),
|
||||||
|
ord($buf[2]), ord($buf[3]));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Read until either the end of the socket or a newline, whichever
|
||||||
|
* comes first. Strips the trailing newline from the returned data.
|
||||||
|
*
|
||||||
|
* @access public
|
||||||
|
* @return All available data up to a newline, without that
|
||||||
|
* newline, or until the end of the socket, or a PEAR_Error if
|
||||||
|
* not connected.
|
||||||
|
*/
|
||||||
|
function readLine()
|
||||||
|
{
|
||||||
|
if (!is_resource($this->fp)) {
|
||||||
|
return $this->raiseError('not connected');
|
||||||
|
}
|
||||||
|
|
||||||
|
$line = '';
|
||||||
|
$timeout = time() + $this->timeout;
|
||||||
|
while (!feof($this->fp) && (!$this->timeout || time() < $timeout)) {
|
||||||
|
$line .= @fgets($this->fp, $this->lineLength);
|
||||||
|
if (substr($line, -1) == "\n") {
|
||||||
|
return rtrim($line, "\r\n");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return $line;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Read until the socket closes, or until there is no more data in
|
||||||
|
* the inner PHP buffer. If the inner buffer is empty, in blocking
|
||||||
|
* mode we wait for at least 1 byte of data. Therefore, in
|
||||||
|
* blocking mode, if there is no data at all to be read, this
|
||||||
|
* function will never exit (unless the socket is closed on the
|
||||||
|
* remote end).
|
||||||
|
*
|
||||||
|
* @access public
|
||||||
|
*
|
||||||
|
* @return string All data until the socket closes, or a PEAR_Error if
|
||||||
|
* not connected.
|
||||||
|
*/
|
||||||
|
function readAll()
|
||||||
|
{
|
||||||
|
if (!is_resource($this->fp)) {
|
||||||
|
return $this->raiseError('not connected');
|
||||||
|
}
|
||||||
|
|
||||||
|
$data = '';
|
||||||
|
while (!feof($this->fp)) {
|
||||||
|
$data .= @fread($this->fp, $this->lineLength);
|
||||||
|
}
|
||||||
|
return $data;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Runs the equivalent of the select() system call on the socket
|
||||||
|
* with a timeout specified by tv_sec and tv_usec.
|
||||||
|
*
|
||||||
|
* @param integer $state Which of read/write/error to check for.
|
||||||
|
* @param integer $tv_sec Number of seconds for timeout.
|
||||||
|
* @param integer $tv_usec Number of microseconds for timeout.
|
||||||
|
*
|
||||||
|
* @access public
|
||||||
|
* @return False if select fails, integer describing which of read/write/error
|
||||||
|
* are ready, or PEAR_Error if not connected.
|
||||||
|
*/
|
||||||
|
function select($state, $tv_sec, $tv_usec = 0)
|
||||||
|
{
|
||||||
|
if (!is_resource($this->fp)) {
|
||||||
|
return $this->raiseError('not connected');
|
||||||
|
}
|
||||||
|
|
||||||
|
$read = null;
|
||||||
|
$write = null;
|
||||||
|
$except = null;
|
||||||
|
if ($state & NET_SOCKET_READ) {
|
||||||
|
$read[] = $this->fp;
|
||||||
|
}
|
||||||
|
if ($state & NET_SOCKET_WRITE) {
|
||||||
|
$write[] = $this->fp;
|
||||||
|
}
|
||||||
|
if ($state & NET_SOCKET_ERROR) {
|
||||||
|
$except[] = $this->fp;
|
||||||
|
}
|
||||||
|
if (false === ($sr = stream_select($read, $write, $except, $tv_sec, $tv_usec))) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
$result = 0;
|
||||||
|
if (count($read)) {
|
||||||
|
$result |= NET_SOCKET_READ;
|
||||||
|
}
|
||||||
|
if (count($write)) {
|
||||||
|
$result |= NET_SOCKET_WRITE;
|
||||||
|
}
|
||||||
|
if (count($except)) {
|
||||||
|
$result |= NET_SOCKET_ERROR;
|
||||||
|
}
|
||||||
|
return $result;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
414
deployed/xef/libraries/xef/sources/flickr/api/PEAR/Net/URL.php
Normal file
@ -0,0 +1,414 @@
|
|||||||
|
<?php
|
||||||
|
// +-----------------------------------------------------------------------+
|
||||||
|
// | Copyright (c) 2002-2004, Richard Heyes |
|
||||||
|
// | All rights reserved. |
|
||||||
|
// | |
|
||||||
|
// | Redistribution and use in source and binary forms, with or without |
|
||||||
|
// | modification, are permitted provided that the following conditions |
|
||||||
|
// | are met: |
|
||||||
|
// | |
|
||||||
|
// | o Redistributions of source code must retain the above copyright |
|
||||||
|
// | notice, this list of conditions and the following disclaimer. |
|
||||||
|
// | o Redistributions in binary form must reproduce the above copyright |
|
||||||
|
// | notice, this list of conditions and the following disclaimer in the |
|
||||||
|
// | documentation and/or other materials provided with the distribution.|
|
||||||
|
// | o The names of the authors may not be used to endorse or promote |
|
||||||
|
// | products derived from this software without specific prior written |
|
||||||
|
// | permission. |
|
||||||
|
// | |
|
||||||
|
// | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
|
||||||
|
// | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
|
||||||
|
// | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
|
||||||
|
// | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
|
||||||
|
// | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
|
||||||
|
// | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
|
||||||
|
// | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
|
||||||
|
// | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
|
||||||
|
// | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
|
||||||
|
// | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
|
||||||
|
// | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
|
||||||
|
// | |
|
||||||
|
// +-----------------------------------------------------------------------+
|
||||||
|
// | Author: Richard Heyes <richard at php net> |
|
||||||
|
// +-----------------------------------------------------------------------+
|
||||||
|
//
|
||||||
|
// $Id: URL.php 32 2005-08-01 06:21:02Z dancoulter $
|
||||||
|
//
|
||||||
|
// Net_URL Class
|
||||||
|
|
||||||
|
// no direct access
|
||||||
|
defined('_JEXEC') or die('Restricted accessd');
|
||||||
|
|
||||||
|
|
||||||
|
class Net_URL
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Full url
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
var $url;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Protocol
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
var $protocol;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Username
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
var $username;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Password
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
var $password;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Host
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
var $host;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Port
|
||||||
|
* @var integer
|
||||||
|
*/
|
||||||
|
var $port;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Path
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
var $path;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Query string
|
||||||
|
* @var array
|
||||||
|
*/
|
||||||
|
var $querystring;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Anchor
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
var $anchor;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Whether to use []
|
||||||
|
* @var bool
|
||||||
|
*/
|
||||||
|
var $useBrackets;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* PHP4 Constructor
|
||||||
|
*
|
||||||
|
* @see __construct()
|
||||||
|
*/
|
||||||
|
function Net_URL($url = null, $useBrackets = true)
|
||||||
|
{
|
||||||
|
$this->__construct($url, $useBrackets);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* PHP5 Constructor
|
||||||
|
*
|
||||||
|
* Parses the given url and stores the various parts
|
||||||
|
* Defaults are used in certain cases
|
||||||
|
*
|
||||||
|
* @param string $url Optional URL
|
||||||
|
* @param bool $useBrackets Whether to use square brackets when
|
||||||
|
* multiple querystrings with the same name
|
||||||
|
* exist
|
||||||
|
*/
|
||||||
|
function __construct($url = null, $useBrackets = true)
|
||||||
|
{
|
||||||
|
$HTTP_SERVER_VARS = !empty($_SERVER) ? $_SERVER : $GLOBALS['HTTP_SERVER_VARS'];
|
||||||
|
|
||||||
|
$this->useBrackets = $useBrackets;
|
||||||
|
$this->url = $url;
|
||||||
|
$this->user = '';
|
||||||
|
$this->pass = '';
|
||||||
|
$this->host = '';
|
||||||
|
$this->port = 80;
|
||||||
|
$this->path = '';
|
||||||
|
$this->querystring = array();
|
||||||
|
$this->anchor = '';
|
||||||
|
|
||||||
|
// Only use defaults if not an absolute URL given
|
||||||
|
if (!preg_match('/^[a-z0-9]+:\/\//i', $url)) {
|
||||||
|
|
||||||
|
$this->protocol = (@$HTTP_SERVER_VARS['HTTPS'] == 'on' ? 'https' : 'http');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Figure out host/port
|
||||||
|
*/
|
||||||
|
if (!empty($HTTP_SERVER_VARS['HTTP_HOST']) AND preg_match('/^(.*)(:([0-9]+))?$/U', $HTTP_SERVER_VARS['HTTP_HOST'], $matches)) {
|
||||||
|
$host = $matches[1];
|
||||||
|
if (!empty($matches[3])) {
|
||||||
|
$port = $matches[3];
|
||||||
|
} else {
|
||||||
|
$port = $this->getStandardPort($this->protocol);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$this->user = '';
|
||||||
|
$this->pass = '';
|
||||||
|
$this->host = !empty($host) ? $host : (isset($HTTP_SERVER_VARS['SERVER_NAME']) ? $HTTP_SERVER_VARS['SERVER_NAME'] : 'localhost');
|
||||||
|
$this->port = !empty($port) ? $port : (isset($HTTP_SERVER_VARS['SERVER_PORT']) ? $HTTP_SERVER_VARS['SERVER_PORT'] : $this->getStandardPort($this->protocol));
|
||||||
|
$this->path = !empty($HTTP_SERVER_VARS['PHP_SELF']) ? $HTTP_SERVER_VARS['PHP_SELF'] : '/';
|
||||||
|
$this->querystring = isset($HTTP_SERVER_VARS['QUERY_STRING']) ? $this->_parseRawQuerystring($HTTP_SERVER_VARS['QUERY_STRING']) : null;
|
||||||
|
$this->anchor = '';
|
||||||
|
}
|
||||||
|
|
||||||
|
// Parse the url and store the various parts
|
||||||
|
if (!empty($url)) {
|
||||||
|
$urlinfo = parse_url($url);
|
||||||
|
|
||||||
|
// Default querystring
|
||||||
|
$this->querystring = array();
|
||||||
|
|
||||||
|
foreach ($urlinfo as $key => $value) {
|
||||||
|
switch ($key) {
|
||||||
|
case 'scheme':
|
||||||
|
$this->protocol = $value;
|
||||||
|
$this->port = $this->getStandardPort($value);
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'user':
|
||||||
|
case 'pass':
|
||||||
|
case 'host':
|
||||||
|
case 'port':
|
||||||
|
$this->$key = $value;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'path':
|
||||||
|
if ($value{0} == '/') {
|
||||||
|
$this->path = $value;
|
||||||
|
} else {
|
||||||
|
$path = dirname($this->path) == DIRECTORY_SEPARATOR ? '' : dirname($this->path);
|
||||||
|
$this->path = sprintf('%s/%s', $path, $value);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'query':
|
||||||
|
$this->querystring = $this->_parseRawQueryString($value);
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'fragment':
|
||||||
|
$this->anchor = $value;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns full url
|
||||||
|
*
|
||||||
|
* @return string Full url
|
||||||
|
* @access public
|
||||||
|
*/
|
||||||
|
function getURL()
|
||||||
|
{
|
||||||
|
$querystring = $this->getQueryString();
|
||||||
|
|
||||||
|
$this->url = $this->protocol . '://'
|
||||||
|
. $this->user . (!empty($this->pass) ? ':' : '')
|
||||||
|
. $this->pass . (!empty($this->user) ? '@' : '')
|
||||||
|
. $this->host . ($this->port == $this->getStandardPort($this->protocol) ? '' : ':' . $this->port)
|
||||||
|
. $this->path
|
||||||
|
. (!empty($querystring) ? '?' . $querystring : '')
|
||||||
|
. (!empty($this->anchor) ? '#' . $this->anchor : '');
|
||||||
|
|
||||||
|
return $this->url;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Adds a querystring item
|
||||||
|
*
|
||||||
|
* @param string $name Name of item
|
||||||
|
* @param string $value Value of item
|
||||||
|
* @param bool $preencoded Whether value is urlencoded or not, default = not
|
||||||
|
* @access public
|
||||||
|
*/
|
||||||
|
function addQueryString($name, $value, $preencoded = false)
|
||||||
|
{
|
||||||
|
if ($preencoded) {
|
||||||
|
$this->querystring[$name] = $value;
|
||||||
|
} else {
|
||||||
|
$this->querystring[$name] = is_array($value) ? array_map('rawurlencode', $value): rawurlencode($value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Removes a querystring item
|
||||||
|
*
|
||||||
|
* @param string $name Name of item
|
||||||
|
* @access public
|
||||||
|
*/
|
||||||
|
function removeQueryString($name)
|
||||||
|
{
|
||||||
|
if (isset($this->querystring[$name])) {
|
||||||
|
unset($this->querystring[$name]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the querystring to literally what you supply
|
||||||
|
*
|
||||||
|
* @param string $querystring The querystring data. Should be of the format foo=bar&x=y etc
|
||||||
|
* @access public
|
||||||
|
*/
|
||||||
|
function addRawQueryString($querystring)
|
||||||
|
{
|
||||||
|
$this->querystring = $this->_parseRawQueryString($querystring);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns flat querystring
|
||||||
|
*
|
||||||
|
* @return string Querystring
|
||||||
|
* @access public
|
||||||
|
*/
|
||||||
|
function getQueryString()
|
||||||
|
{
|
||||||
|
if (!empty($this->querystring)) {
|
||||||
|
foreach ($this->querystring as $name => $value) {
|
||||||
|
if (is_array($value)) {
|
||||||
|
foreach ($value as $k => $v) {
|
||||||
|
$querystring[] = $this->useBrackets ? sprintf('%s[%s]=%s', $name, $k, $v) : ($name . '=' . $v);
|
||||||
|
}
|
||||||
|
} elseif (!is_null($value)) {
|
||||||
|
$querystring[] = $name . '=' . $value;
|
||||||
|
} else {
|
||||||
|
$querystring[] = $name;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$querystring = implode(ini_get('arg_separator.output'), $querystring);
|
||||||
|
} else {
|
||||||
|
$querystring = '';
|
||||||
|
}
|
||||||
|
|
||||||
|
return $querystring;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Parses raw querystring and returns an array of it
|
||||||
|
*
|
||||||
|
* @param string $querystring The querystring to parse
|
||||||
|
* @return array An array of the querystring data
|
||||||
|
* @access private
|
||||||
|
*/
|
||||||
|
function _parseRawQuerystring($querystring)
|
||||||
|
{
|
||||||
|
$parts = preg_split('/[' . preg_quote(ini_get('arg_separator.input'), '/') . ']/', $querystring, -1, PREG_SPLIT_NO_EMPTY);
|
||||||
|
$return = array();
|
||||||
|
|
||||||
|
foreach ($parts as $part) {
|
||||||
|
if (strpos($part, '=') !== false) {
|
||||||
|
$value = substr($part, strpos($part, '=') + 1);
|
||||||
|
$key = substr($part, 0, strpos($part, '='));
|
||||||
|
} else {
|
||||||
|
$value = null;
|
||||||
|
$key = $part;
|
||||||
|
}
|
||||||
|
if (substr($key, -2) == '[]') {
|
||||||
|
$key = substr($key, 0, -2);
|
||||||
|
if (@!is_array($return[$key])) {
|
||||||
|
$return[$key] = array();
|
||||||
|
$return[$key][] = $value;
|
||||||
|
} else {
|
||||||
|
$return[$key][] = $value;
|
||||||
|
}
|
||||||
|
} elseif (!$this->useBrackets AND !empty($return[$key])) {
|
||||||
|
$return[$key] = (array)$return[$key];
|
||||||
|
$return[$key][] = $value;
|
||||||
|
} else {
|
||||||
|
$return[$key] = $value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return $return;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Resolves //, ../ and ./ from a path and returns
|
||||||
|
* the result. Eg:
|
||||||
|
*
|
||||||
|
* /foo/bar/../boo.php => /foo/boo.php
|
||||||
|
* /foo/bar/../../boo.php => /boo.php
|
||||||
|
* /foo/bar/.././/boo.php => /foo/boo.php
|
||||||
|
*
|
||||||
|
* This method can also be called statically.
|
||||||
|
*
|
||||||
|
* @param string $url URL path to resolve
|
||||||
|
* @return string The result
|
||||||
|
*/
|
||||||
|
function resolvePath($path)
|
||||||
|
{
|
||||||
|
$path = explode('/', str_replace('//', '/', $path));
|
||||||
|
|
||||||
|
for ($i=0; $i<count($path); $i++) {
|
||||||
|
if ($path[$i] == '.') {
|
||||||
|
unset($path[$i]);
|
||||||
|
$path = array_values($path);
|
||||||
|
$i--;
|
||||||
|
|
||||||
|
} elseif ($path[$i] == '..' AND ($i > 1 OR ($i == 1 AND $path[0] != '') ) ) {
|
||||||
|
unset($path[$i]);
|
||||||
|
unset($path[$i-1]);
|
||||||
|
$path = array_values($path);
|
||||||
|
$i -= 2;
|
||||||
|
|
||||||
|
} elseif ($path[$i] == '..' AND $i == 1 AND $path[0] == '') {
|
||||||
|
unset($path[$i]);
|
||||||
|
$path = array_values($path);
|
||||||
|
$i--;
|
||||||
|
|
||||||
|
} else {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return implode('/', $path);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the standard port number for a protocol
|
||||||
|
*
|
||||||
|
* @param string $scheme The protocol to lookup
|
||||||
|
* @return integer Port number or NULL if no scheme matches
|
||||||
|
*
|
||||||
|
* @author Philippe Jausions <Philippe.Jausions@11abacus.com>
|
||||||
|
*/
|
||||||
|
function getStandardPort($scheme)
|
||||||
|
{
|
||||||
|
switch (strtolower($scheme)) {
|
||||||
|
case 'http': return 80;
|
||||||
|
case 'https': return 443;
|
||||||
|
case 'ftp': return 21;
|
||||||
|
case 'imap': return 143;
|
||||||
|
case 'imaps': return 993;
|
||||||
|
case 'pop3': return 110;
|
||||||
|
case 'pop3s': return 995;
|
||||||
|
default: return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Forces the URL to a particular protocol
|
||||||
|
*
|
||||||
|
* @param string $protocol Protocol to force the URL to
|
||||||
|
* @param integer $port Optional port (standard port is used by default)
|
||||||
|
*/
|
||||||
|
function setProtocol($protocol, $port = null)
|
||||||
|
{
|
||||||
|
$this->protocol = $protocol;
|
||||||
|
$this->port = is_null($port) ? $this->getStandardPort() : $port;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
?>
|
||||||
@ -0,0 +1 @@
|
|||||||
|
<html><body bgcolor="#FFFFFF"></body></html>
|
||||||
1109
deployed/xef/libraries/xef/sources/flickr/api/PEAR/PEAR.php
Normal file
@ -0,0 +1 @@
|
|||||||
|
<html><body bgcolor="#FFFFFF"></body></html>
|
||||||
215
deployed/xef/libraries/xef/sources/flickr/api/README.txt
Normal file
@ -0,0 +1,215 @@
|
|||||||
|
phpFlickr Class 2.3.1.1
|
||||||
|
Written by Dan Coulter (dancoulter@users.sourceforge.net)
|
||||||
|
Project Homepage: http://www.phpflickr.com/
|
||||||
|
Google Code Project Page: http://code.google.com/p/phpflickr/
|
||||||
|
Released under GNU Lesser General Public License (http://www.gnu.org/copyleft/lgpl.html)
|
||||||
|
For more information about the class and upcoming tools and applications using it,
|
||||||
|
visit http://www.phpflickr.com/ or http://code.google.com/p/phpflickr/
|
||||||
|
|
||||||
|
If you are interested in hiring me for a project (involving phpFlickr
|
||||||
|
or not), feel free to email me.
|
||||||
|
|
||||||
|
Installation instructions:
|
||||||
|
1. Copy the files from the installation package into a folder on your
|
||||||
|
server. They need to be readible by your web server. You can put
|
||||||
|
them into an include folder defined in your php.ini file, if you
|
||||||
|
like, though it's not required.
|
||||||
|
|
||||||
|
2. All you have to do now is include the file in your PHP scripts and
|
||||||
|
create an instance. For example:
|
||||||
|
$f = new phpFlickr();
|
||||||
|
|
||||||
|
The constructor has three arguments:
|
||||||
|
A. $api_key - This is the API key given to you by flickr.com. This
|
||||||
|
argument is required and you can get an API Key at:
|
||||||
|
http://www.flickr.com/services/api/key.gne
|
||||||
|
|
||||||
|
B. $secret - The "secret" is optional because is not required to
|
||||||
|
make unauthenticated calls, but is absolutely required for the
|
||||||
|
new authentication API (see Authentication section below). You
|
||||||
|
will get one assigned alongside your api key.
|
||||||
|
|
||||||
|
C. $die_on_error - This takes a boolean value and determines
|
||||||
|
whether the class will die (aka cease operation) if the API
|
||||||
|
returns an error statement. It defaults to false. Every method
|
||||||
|
will return false if the API returns an error. You can access
|
||||||
|
error messages using the getErrorCode() and getErrorMsg()
|
||||||
|
methods.
|
||||||
|
|
||||||
|
3. All of the API methods have been implemented in my class. You can
|
||||||
|
see a full list and documentation here:
|
||||||
|
http://www.flickr.com/services/api/
|
||||||
|
To call a method, remove the "flickr." part of the name and replace
|
||||||
|
any periods with underscores. For example, instead of
|
||||||
|
flickr.photos.search, you would call $f->photos_search() or instead
|
||||||
|
of flickr.photos.licenses.getInfo, you would call
|
||||||
|
$f->photos_licenses_getInfo() (yes, it is case sensitive).
|
||||||
|
|
||||||
|
All functions have their arguments implemented in the list order on
|
||||||
|
their documentation page (a link to which is included with each
|
||||||
|
method in the phpFlickr clasS). The only exceptions to this are
|
||||||
|
photos_search(), photos_getWithoutGeodata() and
|
||||||
|
photos_getWithoutGeodata() which have so many optional arguments
|
||||||
|
that it's easier for everyone if you just have to pass an
|
||||||
|
associative array of arguments. See the comment in the
|
||||||
|
photos_search() definition in phpFlickr.php for more information.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Authentication:
|
||||||
|
As of this release of the phpFlickr class there is only one authentication method
|
||||||
|
available to the API. This method is somewhat complex, but is far more secure and
|
||||||
|
allows your users to feel a little safer authenticating to your application. You'll
|
||||||
|
no longer have to ask for their username and password.
|
||||||
|
|
||||||
|
Authentication API - http://www.flickr.com/services/api/auth.spec.html
|
||||||
|
|
||||||
|
I know how complicated this API looks at first glance, so I've tried to
|
||||||
|
make this as transparent to the coding process. I'll go through the steps
|
||||||
|
you'll need to use this. Both the auth.php and getToken.php file will
|
||||||
|
need your API Key and Secret entered before you can use them.
|
||||||
|
|
||||||
|
To have end users authenticate their accounts:
|
||||||
|
First, setup a callback script. I've included a callback script that
|
||||||
|
is pretty flexible. You'll find it in the package entitled "auth.php".
|
||||||
|
You'll need to go to flickr and point your api key to this file as the
|
||||||
|
callback script. Once you've done this, on any page that you want to
|
||||||
|
require the end user end user to authenticate their flickr account to
|
||||||
|
your app, just call the phpFlickr::auth() function with whatever
|
||||||
|
permission you need to use.
|
||||||
|
For example:
|
||||||
|
$f->auth("write");
|
||||||
|
The three permissions are "read", "write" and "delete". The function
|
||||||
|
defaults to "read", if you leave it blank.
|
||||||
|
|
||||||
|
Calling this function will send the user's browser to Flickr's page to
|
||||||
|
authenticate to your app. Once they have logged in, it will bounce
|
||||||
|
them back to your callback script which will redirect back to the
|
||||||
|
original page that you called the auth() function from after setting
|
||||||
|
a session variable to save their authentication token. If that session
|
||||||
|
variable exists, calling the auth() function will return the permissions
|
||||||
|
that the user granted your app on the Flickr page instead of redirecting
|
||||||
|
to an external page.
|
||||||
|
|
||||||
|
To authenticate the app to your account to show your private pictures (for example)
|
||||||
|
This method will allow you to have the app authenticate to one specific
|
||||||
|
account, no matter who views your website. This is useful to display
|
||||||
|
private photos or photosets (among other things).
|
||||||
|
|
||||||
|
*Note*: The method below is a little hard to understand, so I've setup a tool
|
||||||
|
to help you through this: http://www.phpflickr.com/tools/auth/.
|
||||||
|
|
||||||
|
First, you'll have to setup a callback script with Flickr. Once you've
|
||||||
|
done that, edit line 12 of the included getToken.php file to reflect
|
||||||
|
which permissions you'll need for the app. Then browse to the page.
|
||||||
|
Once you've authorized the app with Flickr, it'll send you back to that
|
||||||
|
page which will give you a token which will look something like this:
|
||||||
|
1234-567890abcdef1234
|
||||||
|
Go to the file where you are creating an instance of phpFlickr (I suggest
|
||||||
|
an include file) and after you've created it set the token to use:
|
||||||
|
$f->setToken("<token string>");
|
||||||
|
This token never expires, so you don't have to worry about having to
|
||||||
|
login periodically.
|
||||||
|
|
||||||
|
|
||||||
|
Using Caching:
|
||||||
|
Caching can be very important to a project. Just a few calls to the Flickr API
|
||||||
|
can take long enough to bore your average web user (depending on the calls you
|
||||||
|
are making). I've built in caching that will access either a database or files
|
||||||
|
in your filesystem. To enable caching, use the phpFlickr::enableCache() function.
|
||||||
|
This function requires at least two arguments. The first will be the type of
|
||||||
|
cache you're using (either "db" or "fs")
|
||||||
|
|
||||||
|
1. If you're using database caching, you'll need to supply a PEAR::DB connection
|
||||||
|
string. For example:
|
||||||
|
$flickr->enableCache("db", "mysql://user:password@server/database");
|
||||||
|
The third (optional) argument is expiration of the cache in seconds (defaults
|
||||||
|
to 600). The fourth (optional) argument is the table where you want to store
|
||||||
|
the cache. This defaults to flickr_cache and will attempt to create the table
|
||||||
|
if it does not already exist.
|
||||||
|
|
||||||
|
2. If you're using filesystem caching, you'll need to supply a folder where the
|
||||||
|
web server has write access. For example:
|
||||||
|
$flickr->enableCache("fs", "/var/www/phpFlickrCache");
|
||||||
|
The third (optional) argument is, the same as in the Database caching, an
|
||||||
|
expiration in seconds for the cache.
|
||||||
|
Note: filesystem caching will probably be slower than database caching. I
|
||||||
|
haven't done any tests of this, but if you get large amounts of calls, the
|
||||||
|
process of cleaning out old calls may get hard on your server.
|
||||||
|
|
||||||
|
You may not want to allow the world to view the files that are created during
|
||||||
|
caching. If you want to hide this information, either make sure that your
|
||||||
|
permissions are set correctly, or disable the webserver from displaying
|
||||||
|
*.cache files. In Apache, you can specify this in the configuration files
|
||||||
|
or in a .htaccess file with the following directives:
|
||||||
|
|
||||||
|
<FilesMatch "\.cache$">
|
||||||
|
Deny from all
|
||||||
|
</FilesMatch>
|
||||||
|
|
||||||
|
Alternatively, you can specify a directory that is outside of the web server's
|
||||||
|
document root.
|
||||||
|
|
||||||
|
Uploading
|
||||||
|
Uploading is pretty simple. Aside from being authenticated (see Authentication
|
||||||
|
section) the very minimum that you'll have to pass is a path to an image file on
|
||||||
|
your php server. You can do either synchronous or asynchronous uploading as follows:
|
||||||
|
synchronous: sync_upload("photo.jpg");
|
||||||
|
asynchronous: async_upload("photo.jpg");
|
||||||
|
|
||||||
|
The basic difference is that synchronous uploading waits around until Flickr
|
||||||
|
processes the photo and returns a PhotoID. Asynchronous just uploads the
|
||||||
|
picture and gets a "ticketid" that you can use to check on the status of your
|
||||||
|
upload. Asynchronous is much faster, though the photoid won't be instantly
|
||||||
|
available for you. You can read more about asynchronous uploading here:
|
||||||
|
http://www.flickr.com/services/api/upload.async.html
|
||||||
|
|
||||||
|
Both of the functions take the same arguments which are:
|
||||||
|
Photo: The path of the file to upload.
|
||||||
|
Title: The title of the photo.
|
||||||
|
Description: A description of the photo. May contain some limited HTML.
|
||||||
|
Tags: A space-separated list of tags to apply to the photo.
|
||||||
|
is_public: Set to 0 for no, 1 for yes.
|
||||||
|
is_friend: Set to 0 for no, 1 for yes.
|
||||||
|
is_family: Set to 0 for no, 1 for yes.
|
||||||
|
|
||||||
|
Replacing Photos
|
||||||
|
Flickr has released API support for uploading a replacement photo. To use this
|
||||||
|
new method, just use the "replace" function in phpFlickr. You'll be required
|
||||||
|
to pass the file name and Flickr's photo ID. You need to authenticate your script
|
||||||
|
with "write" permissions before you can replace a photo. The arguments are:
|
||||||
|
Photo: The path of the file to upload.
|
||||||
|
Photo ID: The numeric Flickr ID of the photo you want to replace.
|
||||||
|
Async (optional): Set to 0 for a synchronous call, 1 for asynchronous.
|
||||||
|
If you use the asynchronous call, it will return a ticketid instead
|
||||||
|
of photoid.
|
||||||
|
|
||||||
|
Other Notes:
|
||||||
|
1. Many of the methods have optional arguments. For these, I have implemented
|
||||||
|
them in the same order that the Flickr API documentation lists them. PHP
|
||||||
|
allows for optional arguments in function calls, but if you want to use the
|
||||||
|
third optional argument, you have to fill in the others to the left first.
|
||||||
|
You can use the "NULL" value (without quotes) in the place of an actual
|
||||||
|
argument. For example:
|
||||||
|
$f->groups_pools_getPhotos($group_id, NULL, NULL, 10);
|
||||||
|
This will get the first ten photos from a specific group's pool. If you look
|
||||||
|
at the documentation, you will see that there is another argument, "page". I've
|
||||||
|
left it off because it appears after "per_page".
|
||||||
|
2. Some people will need to ues phpFlickr from behind a proxy server. I've
|
||||||
|
implemented a method that will allow you to use an HTTP proxy for all of your
|
||||||
|
traffic. Let's say that you have a proxy server on your local server running
|
||||||
|
at port 8181. This is the code you would use:
|
||||||
|
$f = new phpFlickr("[api key]");
|
||||||
|
$f->setProxy("localhost", "8181");
|
||||||
|
After that, all of your calls will be automatically made through your proxy server.
|
||||||
|
|
||||||
|
|
||||||
|
That's it! Enjoy the class. Check out the project page (listed above) for updates
|
||||||
|
and news. I plan to implement file uploads and functions to aggregate data from
|
||||||
|
several different methods for easier use in a web application. Thanks for your
|
||||||
|
interest in this project!
|
||||||
|
|
||||||
|
Please email me if you have any questions or problems. You'll find my email
|
||||||
|
at the top of this file.
|
||||||
|
|
||||||
|
|
||||||
1
deployed/xef/libraries/xef/sources/flickr/api/index.html
Normal file
@ -0,0 +1 @@
|
|||||||
|
<html><body bgcolor="#FFFFFF"></body></html>
|
||||||
1461
deployed/xef/libraries/xef/sources/flickr/api/phpFlickr.php
Normal file
116
deployed/xef/libraries/xef/sources/flickr/flickr.php
Normal file
@ -0,0 +1,116 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* @package ThemeXpert Extension Framework (XEF)
|
||||||
|
* @copyright Copyright (c)2010-2012 ThemeXpert.com
|
||||||
|
* @license GNU General Public License version 3, or later
|
||||||
|
**/
|
||||||
|
|
||||||
|
// Protect from unauthorized access
|
||||||
|
defined('_JEXEC') or die();
|
||||||
|
|
||||||
|
// Require XEF helper class
|
||||||
|
require_once JPATH_LIBRARIES . '/xef/xef.php';
|
||||||
|
|
||||||
|
class XEFSourceFlickr extends XEFHelper
|
||||||
|
{
|
||||||
|
public function getItems()
|
||||||
|
{
|
||||||
|
jimport('joomla.filesystem.folder');
|
||||||
|
|
||||||
|
$api_key = '2a4dbf07ad5341b2b06d60c91d44e918';
|
||||||
|
$cache_path = JPATH_ROOT. '/cache/test/flickr';
|
||||||
|
$nsid = '';
|
||||||
|
$photos = array();
|
||||||
|
|
||||||
|
// create cache folder if not exist
|
||||||
|
JFolder::create($cache_path, 0755);
|
||||||
|
|
||||||
|
if( !class_exists('phpFlickr'))
|
||||||
|
{
|
||||||
|
require_once 'api/phpFlickr.php';
|
||||||
|
}
|
||||||
|
|
||||||
|
$f = new phpFlickr($api_key);
|
||||||
|
$f->enableCache('fs',$cache_path, $this->get('cache_time')); //enable caching
|
||||||
|
|
||||||
|
if($this->get('flickr_search_from') == 'user')
|
||||||
|
{
|
||||||
|
$username = $this->get('flickr_search_from');
|
||||||
|
if($username != NULL)
|
||||||
|
{
|
||||||
|
$person = $f->people_findByUsername($username);
|
||||||
|
$nsid = $person['id'];
|
||||||
|
}else{
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
|
||||||
|
$photos = $f->people_getPublicPhotos($nsid, NULL, NULL, $this->get('item_count'));
|
||||||
|
$source = $photos['photos']['photo'];
|
||||||
|
}
|
||||||
|
|
||||||
|
if( $this->get('flickr_search_from') == 'tags' OR $this->get('flickr_search_from') == 'text')
|
||||||
|
{
|
||||||
|
$tags = $this->get('flickr_attrs');
|
||||||
|
|
||||||
|
if(!empty($tags))
|
||||||
|
{
|
||||||
|
$attrs = '';
|
||||||
|
if($this->get('flickr_search_from') == 'tags') $attrs = 'tags';
|
||||||
|
if($this->get('flickr_search_from') == 'text') $attrs = 'text';
|
||||||
|
|
||||||
|
$photos = $f->photos_search(array($attrs=>$tags,'per_page'=>$this->get('item_count')));
|
||||||
|
$source = $photos['photo'];
|
||||||
|
}else{
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if($this->get('flickr_search_from') == 'recent'){
|
||||||
|
$photos = $f->photos_getRecent( NULL, $this->get('item_count') );
|
||||||
|
$source = $photos['photo'];
|
||||||
|
}
|
||||||
|
|
||||||
|
//$extras = 'description,date_upload,owner_name,tags';
|
||||||
|
$items = array();
|
||||||
|
$i = 0;
|
||||||
|
if(count($source)>0){
|
||||||
|
foreach ($source as $photo)
|
||||||
|
{
|
||||||
|
$id = $photo['id'];
|
||||||
|
$obj = new stdClass();
|
||||||
|
$info = $f->photos_getInfo($id);
|
||||||
|
$nsid = $info['owner']['username'];
|
||||||
|
|
||||||
|
$obj->title = $info['title'];
|
||||||
|
$obj->image = $f->buildPhotoURL($photo,'_b');
|
||||||
|
$obj->link = $info['urls']['url'][0]['_content'];
|
||||||
|
$obj->introtext = $info['description'];
|
||||||
|
$obj->date = date('Y.M.d : H:i:s A', $info['dateuploaded']);
|
||||||
|
|
||||||
|
$items[$i] = $obj;
|
||||||
|
$i++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//return $items;
|
||||||
|
var_dump($f);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getLink($item)
|
||||||
|
{
|
||||||
|
return $item->link;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getImage($item)
|
||||||
|
{
|
||||||
|
return $item->image;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getDate($item)
|
||||||
|
{
|
||||||
|
return $item->date;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getCategory($item) { return ; }
|
||||||
|
public function getCategoryLink($item) { return; }
|
||||||
|
}
|
||||||
1
deployed/xef/libraries/xef/sources/flickr/index.html
Normal file
@ -0,0 +1 @@
|
|||||||
|
<!DOCTYPE html><title></title>
|
||||||
8
deployed/xef/libraries/xef/sources/folder/folder.php
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Created by JetBrains PhpStorm.
|
||||||
|
* User: codexpert
|
||||||
|
* Date: 10/26/12
|
||||||
|
* Time: 9:45 PM
|
||||||
|
* To change this template use File | Settings | File Templates.
|
||||||
|
*/
|
||||||
1
deployed/xef/libraries/xef/sources/folder/index.html
Normal file
@ -0,0 +1 @@
|
|||||||
|
<!DOCTYPE html><title></title>
|
||||||
1
deployed/xef/libraries/xef/sources/index.html
Normal file
@ -0,0 +1 @@
|
|||||||
|
<!DOCTYPE html><title></title>
|
||||||
1
deployed/xef/libraries/xef/sources/instagram/index.html
Normal file
@ -0,0 +1 @@
|
|||||||
|
<!DOCTYPE html><title></title>
|
||||||
1
deployed/xef/libraries/xef/sources/joomla/index.html
Normal file
@ -0,0 +1 @@
|
|||||||
|
<!DOCTYPE html><title></title>
|
||||||
185
deployed/xef/libraries/xef/sources/joomla/joomla.php
Normal file
@ -0,0 +1,185 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* @package ThemeXpert Extension Framework (XEF)
|
||||||
|
* @copyright Copyright (c)2010-2012 ThemeXpert.com
|
||||||
|
* @license GNU General Public License version 3, or later
|
||||||
|
**/
|
||||||
|
|
||||||
|
// Protect from unauthorized access
|
||||||
|
defined('_JEXEC') or die();
|
||||||
|
|
||||||
|
// Require XEF helper class
|
||||||
|
require_once JPATH_LIBRARIES . '/xef/xef.php';
|
||||||
|
|
||||||
|
// Require Content router
|
||||||
|
require_once JPATH_SITE.'/components/com_content/helpers/route.php';
|
||||||
|
|
||||||
|
class XEFSourceJoomla extends XEFHelper
|
||||||
|
{
|
||||||
|
|
||||||
|
public function getItems()
|
||||||
|
{
|
||||||
|
jimport('joomla.application.component.model');
|
||||||
|
$app = JFactory::getApplication('site', array(), 'J');
|
||||||
|
|
||||||
|
// Get the dbo
|
||||||
|
$db = JFactory::getDbo();
|
||||||
|
|
||||||
|
// Get an instance of the generic articles model
|
||||||
|
if(XEF_JVERSION == '25')
|
||||||
|
{
|
||||||
|
JModel::addIncludePath(JPATH_SITE.'/components/com_content/models');
|
||||||
|
$model = JModel::getInstance('Articles', 'ContentModel', array('ignore_request' => true));
|
||||||
|
|
||||||
|
}else{
|
||||||
|
|
||||||
|
JModelLegacy::addIncludePath(JPATH_SITE.'/components/com_content/models');
|
||||||
|
$model = JModelLegacy::getInstance('Articles', 'ContentModel', array('ignore_request' => true));
|
||||||
|
}
|
||||||
|
|
||||||
|
// Set application parameters in model
|
||||||
|
$appParams = $app->getParams();
|
||||||
|
$model->setState('params', $appParams);
|
||||||
|
|
||||||
|
// Set the filters based on the module params
|
||||||
|
$model->setState('list.start', 0);
|
||||||
|
$model->setState('list.limit', $this->get( 'count', 4 ));
|
||||||
|
$model->setState('filter.published', 1);
|
||||||
|
|
||||||
|
// Access filter
|
||||||
|
$access = !JComponentHelper::getParams('com_content')->get('show_noauth');
|
||||||
|
$authorised = JAccess::getAuthorisedViewLevels(JFactory::getUser()->get('id'));
|
||||||
|
$model->setState('filter.access', $access);
|
||||||
|
|
||||||
|
// Category filter
|
||||||
|
switch( $this->get('jomcatfilter') )
|
||||||
|
{
|
||||||
|
case 0: // All
|
||||||
|
$catid = '';
|
||||||
|
break;
|
||||||
|
case 1: // From specific category
|
||||||
|
$catid = $this->get('jom_catid',array());
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
$model->setState( 'filter.category_id', $catid );
|
||||||
|
|
||||||
|
// User filter
|
||||||
|
$userId = JFactory::getUser()->get('id');
|
||||||
|
switch ($this->get('jom_user_id'))
|
||||||
|
{
|
||||||
|
case 'by_me':
|
||||||
|
$model->setState('filter.author_id', (int) $userId);
|
||||||
|
break;
|
||||||
|
case 'not_me':
|
||||||
|
$model->setState('filter.author_id', $userId);
|
||||||
|
$model->setState('filter.author_id.include', false);
|
||||||
|
break;
|
||||||
|
|
||||||
|
case '0':
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
$model->setState('filter.author_id', (int) $this->get('jom_user_id'));
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Filter by language
|
||||||
|
$model->setState('filter.language',$app->getLanguageFilter());
|
||||||
|
|
||||||
|
// Featured switch
|
||||||
|
switch ($this->get('jom_show_featured'))
|
||||||
|
{
|
||||||
|
case '1':
|
||||||
|
$model->setState('filter.featured', 'only');
|
||||||
|
break;
|
||||||
|
case '0':
|
||||||
|
$model->setState('filter.featured', 'hide');
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
$model->setState('filter.featured', 'show');
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Set ordering
|
||||||
|
$order_map = array(
|
||||||
|
'm_dsc' => 'a.modified DESC, a.created',
|
||||||
|
'mc_dsc' => 'CASE WHEN (a.modified = '.$db->quote($db->getNullDate()).') THEN a.created ELSE a.modified END',
|
||||||
|
'c_dsc' => 'a.created',
|
||||||
|
'p_dsc' => 'a.publish_up',
|
||||||
|
'hits_dsc' => 'a.hits'
|
||||||
|
);
|
||||||
|
|
||||||
|
$ordering = JArrayHelper::getValue($order_map, $this->get('jom_ordering'), 'a.publish_up');
|
||||||
|
$dir = 'DESC';
|
||||||
|
|
||||||
|
$model->setState('list.ordering', $ordering);
|
||||||
|
$model->setState('list.direction', $dir);
|
||||||
|
$items = $model->getItems();
|
||||||
|
|
||||||
|
// Prepare the items with options
|
||||||
|
$items = $this->prepareItems($items);
|
||||||
|
|
||||||
|
//XEFUtility::debug($catid);
|
||||||
|
|
||||||
|
return $items;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getLink($item)
|
||||||
|
{
|
||||||
|
$access = !JComponentHelper::getParams('com_content')->get('show_noauth');
|
||||||
|
$authorised = JAccess::getAuthorisedViewLevels(JFactory::getUser()->get('id'));
|
||||||
|
|
||||||
|
$link = '';
|
||||||
|
|
||||||
|
$item->slug = $item->id.':'.$item->alias;
|
||||||
|
$item->catslug = $item->catid.':'.$item->category_alias;
|
||||||
|
|
||||||
|
if ($access || in_array($item->access, $authorised))
|
||||||
|
{
|
||||||
|
// We know that user has the privilege to view the article
|
||||||
|
$link = JRoute::_( ContentHelperRoute::getArticleRoute($item->slug, $item->catslug) . $this->getMenuItemId() );
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$link = JRoute::_('index.php?option=com_users&view=login');
|
||||||
|
}
|
||||||
|
|
||||||
|
return $link;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getCategory($item)
|
||||||
|
{
|
||||||
|
return $item->category_title;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getCategoryLink($item)
|
||||||
|
{
|
||||||
|
return JRoute::_( ContentHelperRoute::getCategoryRoute($item->catid) . $this->getMenuItemId() );
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getImage($item)
|
||||||
|
{
|
||||||
|
$path = '';
|
||||||
|
//Take advantage from joomla default Intro image system
|
||||||
|
if( isset($item->images) )
|
||||||
|
{
|
||||||
|
$images = json_decode($item->images);
|
||||||
|
}
|
||||||
|
|
||||||
|
if( isset($images->image_intro) and !empty($images->image_intro) )
|
||||||
|
{
|
||||||
|
$path = $images->image_intro;
|
||||||
|
|
||||||
|
}else{
|
||||||
|
//get image from article intro text
|
||||||
|
$path = XEFUtility::getImage($item->introtext);
|
||||||
|
}
|
||||||
|
|
||||||
|
return $path;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getDate($item)
|
||||||
|
{
|
||||||
|
return JHTML::_('date',$item->created, JText::_('DATE_FORMAT_LC3'));
|
||||||
|
}
|
||||||
|
}
|
||||||
1
deployed/xef/libraries/xef/sources/k2/index.html
Normal file
@ -0,0 +1 @@
|
|||||||
|
<!DOCTYPE html><title></title>
|
||||||
212
deployed/xef/libraries/xef/sources/k2/k2.php
Normal file
@ -0,0 +1,212 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* @package ThemeXpert Extension Framework (XEF)
|
||||||
|
* @copyright Copyright (c)2010-2012 ThemeXpert.com
|
||||||
|
* @license GNU General Public License version 3, or later
|
||||||
|
**/
|
||||||
|
|
||||||
|
// Protect from unauthorized access
|
||||||
|
defined('_JEXEC') or die();
|
||||||
|
|
||||||
|
// Require XEF helper class
|
||||||
|
require_once JPATH_LIBRARIES . '/xef/xef.php';
|
||||||
|
|
||||||
|
require_once(JPATH_SITE . '/components/com_k2/helpers/route.php');
|
||||||
|
require_once(JPATH_SITE . '/components/com_k2/helpers/utilities.php');
|
||||||
|
|
||||||
|
class XEFSourceK2 extends XEFHelper
|
||||||
|
{
|
||||||
|
|
||||||
|
public function getItems()
|
||||||
|
{
|
||||||
|
jimport('joomla.filesystem.file');
|
||||||
|
|
||||||
|
$app = JFactory::getApplication('site', array(), 'J');
|
||||||
|
|
||||||
|
$cid = $this->get('k2_catid', NULL);
|
||||||
|
$ordering = $this->get('k2_items_ordering','');
|
||||||
|
|
||||||
|
$user = JFactory::getUser();
|
||||||
|
$aid = $user->get('aid');
|
||||||
|
$db = JFactory::getDBO();
|
||||||
|
|
||||||
|
$jnow = JFactory::getDate();
|
||||||
|
$now = $jnow->toSQL();
|
||||||
|
$nullDate = $db->getNullDate();
|
||||||
|
|
||||||
|
$query = "SELECT i.*, CASE WHEN i.modified = 0 THEN i.created ELSE i.modified END as lastChanged, c.name AS categoryname,c.id AS categoryid, c.alias AS categoryalias, c.params AS categoryparams";
|
||||||
|
|
||||||
|
if ($ordering == 'best')
|
||||||
|
$query .= ", (r.rating_sum/r.rating_count) AS rating";
|
||||||
|
|
||||||
|
if ($ordering == 'comments')
|
||||||
|
$query .= ", COUNT(comments.id) AS numOfComments";
|
||||||
|
|
||||||
|
$query .= " FROM #__k2_items as i LEFT JOIN #__k2_categories c ON c.id = i.catid";
|
||||||
|
|
||||||
|
if ($ordering == 'best')
|
||||||
|
$query .= " LEFT JOIN #__k2_rating r ON r.itemID = i.id";
|
||||||
|
|
||||||
|
if ($ordering == 'comments')
|
||||||
|
$query .= " LEFT JOIN #__k2_comments comments ON comments.itemID = i.id";
|
||||||
|
|
||||||
|
$query .= " WHERE i.published = 1 AND i.access IN(".implode(',', $user->getAuthorisedViewLevels()).") AND i.trash = 0 AND c.published = 1 AND c.access IN(".implode(',', $user->getAuthorisedViewLevels()).") AND c.trash = 0";
|
||||||
|
$query .= " AND ( i.publish_up = ".$db->Quote($nullDate)." OR i.publish_up <= ".$db->Quote($now)." )";
|
||||||
|
$query .= " AND ( i.publish_down = ".$db->Quote($nullDate)." OR i.publish_down >= ".$db->Quote($now)." )";
|
||||||
|
|
||||||
|
|
||||||
|
if ($this->get('k2_catfilter')) {
|
||||||
|
if (!is_null($cid)) {
|
||||||
|
if (is_array($cid)) {
|
||||||
|
if ($this->get('k2_get_children')) {
|
||||||
|
$itemListModel = K2Model::getInstance('Itemlist', 'K2Model');
|
||||||
|
$categories = $itemListModel->getCategoryTree($cid);
|
||||||
|
$sql = @implode(',', $categories);
|
||||||
|
$query .= " AND i.catid IN ({$sql})";
|
||||||
|
|
||||||
|
} else {
|
||||||
|
JArrayHelper::toInteger($cid);
|
||||||
|
$query .= " AND i.catid IN(".implode(',', $cid).")";
|
||||||
|
}
|
||||||
|
|
||||||
|
} else {
|
||||||
|
if ($this->get('k2_get_children')) {
|
||||||
|
$itemListModel = K2Model::getInstance('Itemlist', 'K2Model');
|
||||||
|
$categories = $itemListModel->getCategoryTree($cid);
|
||||||
|
$sql = @implode(',', $categories);
|
||||||
|
$query .= " AND i.catid IN ({$sql})";
|
||||||
|
} else {
|
||||||
|
$query .= " AND i.catid=".(int)$cid;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($this->get('k2_featured_items') == '0')
|
||||||
|
$query .= " AND i.featured != 1";
|
||||||
|
|
||||||
|
if ($this->get('k2_featured_items') == '2')
|
||||||
|
$query .= " AND i.featured = 1";
|
||||||
|
|
||||||
|
if ($ordering == 'comments')
|
||||||
|
$query .= " AND comments.published = 1";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if ($app->getLanguageFilter())
|
||||||
|
{
|
||||||
|
$languageTag = JFactory::getLanguage()->getTag();
|
||||||
|
$query .= " AND c.language IN (".$db->Quote($languageTag).", ".$db->Quote('*').") AND i.language IN (".$db->Quote($languageTag).", ".$db->Quote('*').")";
|
||||||
|
}
|
||||||
|
|
||||||
|
switch ($ordering)
|
||||||
|
{
|
||||||
|
|
||||||
|
case 'date' :
|
||||||
|
$orderby = 'i.created ASC';
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'rdate' :
|
||||||
|
$orderby = 'i.created DESC';
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'alpha' :
|
||||||
|
$orderby = 'i.title';
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'ralpha' :
|
||||||
|
$orderby = 'i.title DESC';
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'order' :
|
||||||
|
if ($this->get('FeaturedItems') == '2')
|
||||||
|
$orderby = 'i.featured_ordering';
|
||||||
|
else
|
||||||
|
$orderby = 'i.ordering';
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'rorder' :
|
||||||
|
if ($this->get('FeaturedItems') == '2')
|
||||||
|
$orderby = 'i.featured_ordering DESC';
|
||||||
|
else
|
||||||
|
$orderby = 'i.ordering DESC';
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'hits' :
|
||||||
|
if ($this->get('popularityRange'))
|
||||||
|
{
|
||||||
|
$datenow = &JFactory::getDate();
|
||||||
|
$date = $datenow->toSQL();
|
||||||
|
$query .= " AND i.created > DATE_SUB('{$date}',INTERVAL ".$this->get('popularityRange')." DAY) ";
|
||||||
|
}
|
||||||
|
$orderby = 'i.hits DESC';
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'rand' :
|
||||||
|
$orderby = 'RAND()';
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'best' :
|
||||||
|
$orderby = 'rating DESC';
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'comments' :
|
||||||
|
if ($this->get('popularityRange'))
|
||||||
|
{
|
||||||
|
$datenow = &JFactory::getDate();
|
||||||
|
$date = $datenow->toSQL();
|
||||||
|
$query .= " AND i.created > DATE_SUB('{$date}',INTERVAL ".$this->get('popularityRange')." DAY) ";
|
||||||
|
}
|
||||||
|
$query .= " GROUP BY i.id ";
|
||||||
|
$orderby = 'numOfComments DESC';
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'modified' :
|
||||||
|
$orderby = 'lastChanged DESC';
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'publishUp' :
|
||||||
|
$orderby = 'i.publish_up DESC';
|
||||||
|
break;
|
||||||
|
|
||||||
|
default :
|
||||||
|
$orderby = 'i.id DESC';
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
$query .= " ORDER BY ".$orderby;
|
||||||
|
$db->setQuery($query, 0, $this->get('count'));
|
||||||
|
$items = $db->loadObjectList();
|
||||||
|
|
||||||
|
//XEFUtility::debug($items);
|
||||||
|
$items = $this->prepareItems($items);
|
||||||
|
|
||||||
|
return $items;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getLink($item)
|
||||||
|
{
|
||||||
|
return urldecode(JRoute::_( K2HelperRoute::getItemRoute($item->id.':'.urlencode($item->alias), $item->catid.':'.urlencode($item->categoryalias)) . $this->getMenuItemId()));
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getCategory($item)
|
||||||
|
{
|
||||||
|
return $item->categoryname;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getCategoryLink($item)
|
||||||
|
{
|
||||||
|
return urldecode(JRoute::_(K2HelperRoute::getCategoryRoute($item->catid.':'.urlencode($item->categoryalias))) . $this->getMenuItemId());
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getImage($item)
|
||||||
|
{
|
||||||
|
return XEFUtility::getK2Images($item->id, $item->title, $item->introtext);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getDate($item)
|
||||||
|
{
|
||||||
|
return JHTML::_('date',$item->created, JText::_('DATE_FORMAT_LC3'));
|
||||||
|
}
|
||||||
|
}
|
||||||
1
deployed/xef/libraries/xef/sources/module/index.html
Normal file
@ -0,0 +1 @@
|
|||||||
|
<!DOCTYPE html><title></title>
|
||||||
66
deployed/xef/libraries/xef/sources/module/module.php
Normal file
@ -0,0 +1,66 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* @package ThemeXpert Extension Framework (XEF)
|
||||||
|
* @copyright Copyright (c)2010-2012 ThemeXpert.com
|
||||||
|
* @license GNU General Public License version 3, or later
|
||||||
|
**/
|
||||||
|
|
||||||
|
// Protect from unauthorized access
|
||||||
|
defined('_JEXEC') or die();
|
||||||
|
|
||||||
|
// Require XEF helper class
|
||||||
|
require_once JPATH_LIBRARIES . '/xef/xef.php';
|
||||||
|
|
||||||
|
class XEFSourceModule extends XEFHelper
|
||||||
|
{
|
||||||
|
public function getItems()
|
||||||
|
{
|
||||||
|
//module specific
|
||||||
|
$mods = $this->get('modules');
|
||||||
|
$options = array('style' => 'none');
|
||||||
|
$items = array();
|
||||||
|
|
||||||
|
for ($i=0;$i<count($mods);$i++)
|
||||||
|
{
|
||||||
|
if( $this->getModule($mods[$i]) !== NULL )
|
||||||
|
{
|
||||||
|
$items[$i] = new stdClass();
|
||||||
|
$items[$i]->order = $this->getModule($mods[$i])->ordering;
|
||||||
|
$items[$i]->title = $this->getModule($mods[$i])->title;
|
||||||
|
$items[$i]->content = $items[$i]->introtext = JModuleHelper::renderModule( $this->getModule($mods[$i]), $options);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return $items;
|
||||||
|
}
|
||||||
|
|
||||||
|
//fetch module by id
|
||||||
|
public function getModule( $id ){
|
||||||
|
|
||||||
|
$db = JFactory::getDBO();
|
||||||
|
$where = ' AND ( m.id='.$id.' ) ';
|
||||||
|
|
||||||
|
$query = 'SELECT *'.
|
||||||
|
' FROM #__modules AS m'.
|
||||||
|
' WHERE m.client_id = 0'.
|
||||||
|
$where.
|
||||||
|
' ORDER BY ordering'.
|
||||||
|
' LIMIT 1';
|
||||||
|
|
||||||
|
$db->setQuery( $query );
|
||||||
|
$module = $db->loadObject();
|
||||||
|
|
||||||
|
if (!$module) return NULL;
|
||||||
|
|
||||||
|
$file = $module->module;
|
||||||
|
$custom = substr($file, 0, 4) == 'mod_' ? 0 : 1;
|
||||||
|
$module->user = $custom;
|
||||||
|
$module->name = $custom ? $module->title : substr($file, 4);
|
||||||
|
$module->style = null;
|
||||||
|
$module->position = strtolower($module->position);
|
||||||
|
$clean[$module->id] = $module;
|
||||||
|
|
||||||
|
return $module;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
1
deployed/xef/libraries/xef/sources/zoo/index.html
Normal file
@ -0,0 +1 @@
|
|||||||
|
<!DOCTYPE html><title></title>
|
||||||
315
deployed/xef/libraries/xef/utility.php
Normal file
@ -0,0 +1,315 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* @package ThemeXpert Extension Framework (XEF)
|
||||||
|
* @copyright Copyright (c)2010-2012 ThemeXpert.com
|
||||||
|
* @license GNU General Public License version 3, or later
|
||||||
|
**/
|
||||||
|
|
||||||
|
// Protect from unauthorized access
|
||||||
|
defined('_JEXEC') or die();
|
||||||
|
|
||||||
|
// Import Joomla file system class
|
||||||
|
jimport('joomla.filesystem.folder');
|
||||||
|
jimport('joomla.filesystem.file');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ThemeXpert Extension Framework (XEF) helper class
|
||||||
|
*
|
||||||
|
* ThemeXpert Extension Framework (XEF) is a set of classes which extends Joomla! 2.5 and later's
|
||||||
|
* MVC framework with features making maintaining all ThemeXpert's extensions much easier.
|
||||||
|
*
|
||||||
|
* Initially designed for module development and more coming...
|
||||||
|
*/
|
||||||
|
|
||||||
|
abstract class XEFUtility
|
||||||
|
{
|
||||||
|
|
||||||
|
public static function getModuleId($module, $params)
|
||||||
|
{
|
||||||
|
$id = ($params->get('auto_module_id',0)==1) ? 'txmod_'.$module->id : $params->get('module_unique_id');
|
||||||
|
|
||||||
|
return $id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static function addjQDom( $js )
|
||||||
|
{
|
||||||
|
//$this->jqDom .= "\t\t\t" . $js ."\n";
|
||||||
|
}
|
||||||
|
|
||||||
|
public static function renderCombinedDom()
|
||||||
|
{
|
||||||
|
$doc = JFactory::getDocument();
|
||||||
|
$jqNoConflict = "\n\t\t".'jQuery.noConflict();'."\n";
|
||||||
|
$dom = '';
|
||||||
|
//add noConflict
|
||||||
|
$dom .= $jqNoConflict;
|
||||||
|
$dom .= "\n\t\t" . 'jQuery(document).ready(function($){'."\n".self::jqDom."\n\t\t});";
|
||||||
|
|
||||||
|
$doc->addScriptDeclaration($dom);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static function addjQuery($module, $params)
|
||||||
|
{
|
||||||
|
|
||||||
|
$doc = JFactory::getDocument();
|
||||||
|
$app = JFactory::getApplication('site', array(), 'J');
|
||||||
|
|
||||||
|
$version = $params->get('jquery_version') ? $params->get('jquery_version') : '1.8.2';
|
||||||
|
$cdn = $params->get('jquery_source') ? $params->get('jquery_source') : 'local';
|
||||||
|
|
||||||
|
$xef_url = JURI::root(true) . '/libraries/xef';
|
||||||
|
$mod_url = JURI::root(true) . '/modules/' . $module->module;
|
||||||
|
|
||||||
|
$file = '//ajax.googleapis.com/ajax/libs/jquery/'.$version.'/jquery.min.js';
|
||||||
|
|
||||||
|
if( $params->get('jquery_enabled') OR $params->get('load_jquery') )
|
||||||
|
{
|
||||||
|
|
||||||
|
if( XEF_JVERSION == '25')
|
||||||
|
{
|
||||||
|
if( !$app->get('jQuery') )
|
||||||
|
{
|
||||||
|
if( $cdn == 'local')
|
||||||
|
{
|
||||||
|
$file = $xef_url . '/assets/js/' . 'jquery-'.$version.'.min.js';
|
||||||
|
|
||||||
|
//if file not exist in framework we'll check it on module folder
|
||||||
|
if ( !file_exists($file) )
|
||||||
|
{
|
||||||
|
if(file_exists($mod_url . '/assets/js/' . 'jquery-'.$version.'.min.js'))
|
||||||
|
{
|
||||||
|
$file = $mod_url . '/assets/js/' . 'jquery-'.$version.'.min.js';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
$doc->addScript($file);
|
||||||
|
}
|
||||||
|
|
||||||
|
$app->set('jQuery',$version);
|
||||||
|
$doc->addScript($file);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}else{
|
||||||
|
if( $cdn == 'google-cdn')
|
||||||
|
{
|
||||||
|
$doc->addScript($file);
|
||||||
|
|
||||||
|
}else{
|
||||||
|
JHtml::_('jquery.framework');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static function loadModernizr($module, $params)
|
||||||
|
{
|
||||||
|
$doc = JFactory::getDocument();
|
||||||
|
|
||||||
|
//path
|
||||||
|
$path = JURI::root(true) . '/libraries/xef/assets/js/modernizr.min.js';
|
||||||
|
|
||||||
|
if( !defined('XEF_MODERNIZR') )
|
||||||
|
{
|
||||||
|
$doc->addScript($path);
|
||||||
|
|
||||||
|
define('XEF_MODERNIZR', 1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/***
|
||||||
|
*
|
||||||
|
* Get image from given text.
|
||||||
|
*
|
||||||
|
* @params $text
|
||||||
|
* @return $image path
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public static function getImage($text)
|
||||||
|
{
|
||||||
|
// No image path
|
||||||
|
$image_path = 'libraries/xef/assets/images/noimage.jpg';
|
||||||
|
|
||||||
|
if( preg_match( "/\<img.+?src=\"(.+?)\".+?\>/", $text, $matches ) )
|
||||||
|
{
|
||||||
|
$image_path='';
|
||||||
|
|
||||||
|
if ( isset($matches[1]) )
|
||||||
|
{
|
||||||
|
$image_path = $matches[1];
|
||||||
|
}
|
||||||
|
|
||||||
|
return $image_path;
|
||||||
|
}
|
||||||
|
|
||||||
|
return $image_path;
|
||||||
|
}
|
||||||
|
|
||||||
|
/***
|
||||||
|
*
|
||||||
|
* Get only large image from k2 image source, if failed then search for introtext.
|
||||||
|
*
|
||||||
|
* @params $id
|
||||||
|
* @params $title
|
||||||
|
* @params $text
|
||||||
|
* @return $image_path
|
||||||
|
*
|
||||||
|
**/
|
||||||
|
public static function getK2Images($id, $title, $text)
|
||||||
|
{
|
||||||
|
if ( file_exists( JPATH_SITE . '/media/k2/items/cache/' . md5("Image".$id) . '_L.jpg' ) )
|
||||||
|
{
|
||||||
|
|
||||||
|
$image_path = 'media/k2/items/cache/'.md5("Image".$id).'_L.jpg';
|
||||||
|
|
||||||
|
return $image_path;
|
||||||
|
|
||||||
|
}
|
||||||
|
elseif($text != NULL)
|
||||||
|
{
|
||||||
|
return self::getImage($text);
|
||||||
|
|
||||||
|
}else
|
||||||
|
{
|
||||||
|
echo "Image not found for article $title \n";
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// Word limit
|
||||||
|
public static function wordLimit($str, $limit = 100, $end_char = '…')
|
||||||
|
{
|
||||||
|
if (JString::trim($str) == '')
|
||||||
|
return $str;
|
||||||
|
|
||||||
|
// always strip tags for text
|
||||||
|
$str = strip_tags($str);
|
||||||
|
|
||||||
|
$find = array("/\r|\n/u", "/\t/u", "/\s\s+/u");
|
||||||
|
$replace = array(" ", " ", " ");
|
||||||
|
$str = preg_replace($find, $replace, $str);
|
||||||
|
|
||||||
|
preg_match('/\s*(?:\S*\s*){'.(int)$limit.'}/u', $str, $matches);
|
||||||
|
if (JString::strlen($matches[0]) == JString::strlen($str))
|
||||||
|
$end_char = '';
|
||||||
|
return JString::rtrim($matches[0]).$end_char;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Character limit
|
||||||
|
public static function characterLimit($str, $limit = 150, $end_char = '...')
|
||||||
|
{
|
||||||
|
if (JString::trim($str) == '')
|
||||||
|
return $str;
|
||||||
|
|
||||||
|
// always strip tags for text
|
||||||
|
$str = strip_tags(JString::trim($str));
|
||||||
|
|
||||||
|
$find = array("/\r|\n/u", "/\t/u", "/\s\s+/u");
|
||||||
|
$replace = array(" ", " ", " ");
|
||||||
|
$str = preg_replace($find, $replace, $str);
|
||||||
|
|
||||||
|
if (JString::strlen($str) > $limit)
|
||||||
|
{
|
||||||
|
$str = JString::substr($str, 0, $limit);
|
||||||
|
return JString::rtrim($str).$end_char;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return $str;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public static function getResizedImage( $path, $dimensions = array(), $module, $append= '')
|
||||||
|
{
|
||||||
|
if( !file_exists($path) ) return ;
|
||||||
|
|
||||||
|
if(!class_exists('XpertThumb')){
|
||||||
|
include_once 'libs/xpertthumb.php';
|
||||||
|
}
|
||||||
|
|
||||||
|
$xt = new XpertThumb($path);
|
||||||
|
|
||||||
|
$image_info = pathinfo($path);
|
||||||
|
$image_size = getimagesize($path);
|
||||||
|
|
||||||
|
$cache_path = JPATH_ROOT. '/cache/' . $module->module;
|
||||||
|
|
||||||
|
// create cache folder if not exist
|
||||||
|
JFolder::create($cache_path, 0755);
|
||||||
|
|
||||||
|
if(! $append )
|
||||||
|
{
|
||||||
|
$append = '_resized';
|
||||||
|
}
|
||||||
|
|
||||||
|
$name = md5( $image_info['dirname'].$image_info['basename'].$dimensions['width'].$dimensions['height']) . $append;
|
||||||
|
|
||||||
|
$newpath = $cache_path . '/' . $name . '.' . $image_info['extension'];
|
||||||
|
|
||||||
|
$image_uri = JURI::base(true). '/cache/' . $module->module . '/' . $name . '.' . $image_info['extension'];
|
||||||
|
|
||||||
|
if( $image_info['extension'] == 'png' )
|
||||||
|
{
|
||||||
|
$type = 3;
|
||||||
|
|
||||||
|
}elseif($image_info['extension'] == 'gif')
|
||||||
|
{
|
||||||
|
$type = 1;
|
||||||
|
|
||||||
|
}else{
|
||||||
|
|
||||||
|
$type = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(!file_exists($newpath))
|
||||||
|
{
|
||||||
|
$xt->resize( $dimensions['width'], $dimensions['height'] , true, 1 )
|
||||||
|
->toFile( $newpath, $type );
|
||||||
|
}
|
||||||
|
return $image_uri;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static function loadStyleSheet($module, $params)
|
||||||
|
{
|
||||||
|
$doc = JFactory::getDocument();
|
||||||
|
$app = JApplication::getInstance('site', array(), 'J');
|
||||||
|
$template = $app->getTemplate();
|
||||||
|
$mod_url = 'modules/' . $module->module . '/assets/css';
|
||||||
|
$tmpl_url = 'templates/' . $template . '/css';
|
||||||
|
$ext = '.css';
|
||||||
|
|
||||||
|
// If sub style is available then we'll check for that css file
|
||||||
|
// Otherwise we'll convert module name for the css file
|
||||||
|
|
||||||
|
if( $params->get('style') ) // Legacy for J2.5.x will not work on J3
|
||||||
|
{
|
||||||
|
$name = $params->get('style');
|
||||||
|
|
||||||
|
}elseif( $params->get('mod_style') ){ // This checking for dumb J3 filed name. J3 has style field name so we need to check for alternative!
|
||||||
|
$name = $params->get('mod_style');
|
||||||
|
|
||||||
|
}else{
|
||||||
|
$name = str_replace('mod_', '', $module->module);
|
||||||
|
}
|
||||||
|
|
||||||
|
$css_file = $name . $ext;
|
||||||
|
|
||||||
|
if( file_exists($tmpl_url . '/' . $css_file) )
|
||||||
|
{
|
||||||
|
$doc->addStyleSheet(JURI::root(true) . '/'. $tmpl_url . '/' . $css_file);
|
||||||
|
}elseif( file_exists($mod_url . '/' . $css_file) )
|
||||||
|
{
|
||||||
|
$doc->addStyleSheet(JURI::root(true) . '/'. $mod_url . '/' . $css_file);
|
||||||
|
}else{
|
||||||
|
return; // nothing found so return null
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static function debug(Array $arr)
|
||||||
|
{
|
||||||
|
echo "<pre>";
|
||||||
|
print_r($arr);
|
||||||
|
echo "</pre>";
|
||||||
|
}
|
||||||
|
}
|
||||||
174
deployed/xef/libraries/xef/xef.php
Normal file
@ -0,0 +1,174 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* XEF - ThemeXpert Extension Framework
|
||||||
|
*
|
||||||
|
* An extension development framework for ThemeXpert
|
||||||
|
*
|
||||||
|
* @package XEF - ThemeXpert Extension Framework
|
||||||
|
* @author ThemeXpert Team
|
||||||
|
* @copyright Copyright (c) 2010 - 2012, ThemeXpert.
|
||||||
|
* @license GNU General Public License version 3, or later
|
||||||
|
* @link http://www.themexpert.com
|
||||||
|
* @since 1.0
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
// Protect from unauthorized access
|
||||||
|
defined('_JEXEC') or die();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ThemeXpert Extension Framework (XEF) helper class
|
||||||
|
*
|
||||||
|
* ThemeXpert Extension Framework (XEF) is a set of classes which extends Joomla! 2.5 and later's
|
||||||
|
* MVC framework with features making maintaining all ThemeXpert's extensions much easier.
|
||||||
|
*
|
||||||
|
* Initially designed for module development and more coming...
|
||||||
|
*/
|
||||||
|
|
||||||
|
class XEFHelper
|
||||||
|
{
|
||||||
|
public $params; // Hold the extension params. we'll not allow to access it from outside.
|
||||||
|
public $module; // Module object hold the module information
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Constructor
|
||||||
|
* @params object $params get the module params object
|
||||||
|
*
|
||||||
|
* @return NULL
|
||||||
|
*
|
||||||
|
**/
|
||||||
|
public function __construct( $module, $params )
|
||||||
|
{
|
||||||
|
$this->module = $module;
|
||||||
|
$this->params = $params;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Get the value of given param or set to default
|
||||||
|
*
|
||||||
|
* @params string $param name of the field
|
||||||
|
*
|
||||||
|
* @default string $default set default value if no value found on param
|
||||||
|
*
|
||||||
|
* @return string/int $value Value return for given field
|
||||||
|
*
|
||||||
|
**/
|
||||||
|
public function get( $param , $default=NULL )
|
||||||
|
{
|
||||||
|
$value = ( $this->params->get($param) != NULL ) ? $this->params->get($param) : $default;
|
||||||
|
|
||||||
|
return $value;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Set the value to given param
|
||||||
|
*
|
||||||
|
* @params string $field name of the field
|
||||||
|
*
|
||||||
|
* @value string/int $value set value to the field
|
||||||
|
*
|
||||||
|
**/
|
||||||
|
public function set( $field, $value )
|
||||||
|
{
|
||||||
|
$this->params->set( $field, $value );
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Get Itemid from module settings.
|
||||||
|
* @params ''
|
||||||
|
* @return string $itemId;
|
||||||
|
*/
|
||||||
|
public function getMenuItemId()
|
||||||
|
{
|
||||||
|
$itemId = '';
|
||||||
|
$routing_type = $this->get( 'routing_type', 'default' );
|
||||||
|
|
||||||
|
if( $routing_type != 'default' )
|
||||||
|
{
|
||||||
|
switch ($routing_type) {
|
||||||
|
case 'menuitem':
|
||||||
|
$itemId = $this->get( 'menuitemid' ) ? '&Itemid=' . $this->get( 'menuitemid' ) : '';
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return $itemId;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Prepare items before going to view.
|
||||||
|
*
|
||||||
|
* @params object $items Items object
|
||||||
|
*
|
||||||
|
* @return Object $items modified items object
|
||||||
|
*
|
||||||
|
**/
|
||||||
|
public function prepareItems($items)
|
||||||
|
{
|
||||||
|
//$source = $this->get('content_source');
|
||||||
|
|
||||||
|
foreach ($items as $item)
|
||||||
|
{
|
||||||
|
// Clean title
|
||||||
|
$item->title = JFilterOutput::ampReplace($item->title);
|
||||||
|
|
||||||
|
// Category name & link
|
||||||
|
$item->catname = $this->getCategory($item);
|
||||||
|
$item->catlink = $this->getCategoryLink($item);
|
||||||
|
|
||||||
|
// Link
|
||||||
|
$item->link = $this->getLink($item);
|
||||||
|
|
||||||
|
// Image
|
||||||
|
$item->image = $this->getImage($item);
|
||||||
|
|
||||||
|
// Date
|
||||||
|
$item->date = $this->getDate($item);
|
||||||
|
|
||||||
|
// Set image dimension
|
||||||
|
$dimensions = array(
|
||||||
|
'width' => $this->get('image_width',400),
|
||||||
|
'height' => $this->get('image_height',300)
|
||||||
|
);
|
||||||
|
|
||||||
|
// If thumbnail is enable set its property
|
||||||
|
if( $this->get('navigation') == 'thumb' OR
|
||||||
|
$this->get('thumb') )
|
||||||
|
{
|
||||||
|
|
||||||
|
$thumb_dimensions = array(
|
||||||
|
'width' => $this->get('thumb_width',100),
|
||||||
|
'height' => $this->get('thumb_height',100)
|
||||||
|
);
|
||||||
|
$item->thumb = XEFUtility::getResizedImage($item->image, $thumb_dimensions, $this->module, '_thumb');
|
||||||
|
}
|
||||||
|
|
||||||
|
// Finally re-sized image if image re-sizer is on
|
||||||
|
if($this->get('image_resize'))
|
||||||
|
{
|
||||||
|
$item->image = XEFUtility::getResizedImage($item->image, $dimensions, $this->module);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Intro text
|
||||||
|
$filter_by = $this->get('intro_limit_type');
|
||||||
|
|
||||||
|
// Trim intro text based on filter type
|
||||||
|
if( $filter_by == 'words' )
|
||||||
|
{
|
||||||
|
$item->introtext = XEFUtility::wordLimit($item->introtext, $this->get('intro_limit',100) );
|
||||||
|
|
||||||
|
}elseif($filter_by == 'chars')
|
||||||
|
{
|
||||||
|
$item->introtext = XEFUtility::characterLimit($item->introtext, $this->get('intro_limit',100) );
|
||||||
|
}else{
|
||||||
|
$item->introtext = $item->intro;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
return $items;
|
||||||
|
}
|
||||||
|
}
|
||||||