Update
66
.gitignore
vendored
Normal file
@@ -0,0 +1,66 @@
|
||||
@ -0,0 +1,47 @@
|
||||
# Logs and databases
|
||||
/logs/
|
||||
/tmp/
|
||||
/documents/
|
||||
/administrator/logs/
|
||||
|
||||
#Dev related
|
||||
build/
|
||||
dev/
|
||||
scripts/
|
||||
|
||||
#Configuration files
|
||||
/configuration.php
|
||||
/htdocs/conf/*
|
||||
|
||||
# Joomla-generated files
|
||||
installation/
|
||||
/cache/
|
||||
/media/com_joomlaupdate/
|
||||
|
||||
# Backup files
|
||||
*.bak
|
||||
*.back
|
||||
*.backup
|
||||
/backups/
|
||||
/htdocs/solo/
|
||||
|
||||
# Environment-specific files
|
||||
.env
|
||||
.env.local
|
||||
.env.*.local
|
||||
|
||||
# Node.js dependencies (if using npm for template development)
|
||||
node_modules/
|
||||
npm-debug.log*
|
||||
|
||||
# Build files
|
||||
/dist/
|
||||
/build/
|
||||
/doc/
|
||||
|
||||
# Compiled assets
|
||||
*.css.map
|
||||
*.js.map
|
||||
|
||||
# System files
|
||||
desktop.ini
|
||||
.DS_Store
|
||||
Thumbs.db
|
||||
.idea/
|
||||
*.sublime-project
|
||||
*.sublime-workspace
|
||||
sftp-config*.json
|
||||
*.ffs*
|
||||
|
||||
# Editor and IDE files
|
||||
.vscode/
|
||||
*.swp
|
||||
|
||||
# Other
|
||||
*~
|
||||
*.lock
|
||||
*.back
|
||||
*.bak
|
||||
*.old
|
||||
674
LICENSE
Normal file
@@ -0,0 +1,674 @@
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 3, 29 June 2007
|
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc. <https://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 <https://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
|
||||
<https://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
|
||||
<https://www.gnu.org/licenses/why-not-lgpl.html>.
|
||||
57
README.md
Normal file
@@ -0,0 +1,57 @@
|
||||
# MW Clean Template for Joomla
|
||||
|
||||
Welcome to the **MW Clean Template**, a modern and minimalistic Joomla site template based on the highly customizable and accessible **Cassiopeia Template** from Joomla 4. This template is designed for users who need a clean, professional design that emphasizes simplicity, performance, and flexibility.
|
||||
|
||||
---
|
||||
|
||||
## Features
|
||||
|
||||
- **Clean and Minimalistic Design**: Focused on delivering a distraction-free user experience.
|
||||
- **Built on Cassiopeia**: Retains the robust features and responsiveness of Joomla's default template.
|
||||
- **Enhanced Customization**:
|
||||
- Flexible layout options.
|
||||
- Easy color scheme adjustments.
|
||||
- Typography enhancements for better readability.
|
||||
- **Lightweight and Fast**: Optimized for quick load times and efficient performance.
|
||||
- **Fully Responsive**: Mobile-first design that works seamlessly across all devices.
|
||||
- **Accessibility Friendly**: Ensures compliance with web accessibility standards.
|
||||
- **SEO Optimized**: Built with search engine best practices in mind.
|
||||
|
||||
---
|
||||
|
||||
## Installation
|
||||
|
||||
Follow these steps to install the MW Clean template:
|
||||
|
||||
1. **Download the Template**: Obtain the latest version of MW Clean from the [official repository or source].
|
||||
2. **Upload to Joomla**:
|
||||
- Log in to your Joomla administrator panel.
|
||||
- Navigate to `System > Install > Extensions`.
|
||||
- Upload the MW Clean `.zip` package.
|
||||
3. **Set as Default**:
|
||||
- Go to `System > Site Template Styles`.
|
||||
- Select **MW Clean** and set it as the default template.
|
||||
4. **Customize**:
|
||||
- Access the template settings by clicking on **MW Clean** under Site Template Styles.
|
||||
- Configure options like layout, colors, typography, and more.
|
||||
|
||||
---
|
||||
|
||||
## Customization Options
|
||||
|
||||
MW Clean leverages the Cassiopeia framework, offering extensive customization options:
|
||||
|
||||
- **Layout Manager**: Modify module positions and arrangements with drag-and-drop ease.
|
||||
- **Color Schemes**: Update primary and secondary colors through the built-in template options.
|
||||
- **Custom CSS**: Add your own styles via the `custom.css` file located in the template folder.
|
||||
- **Typography**: Choose from a variety of Google Fonts or default system fonts for headings and body text.
|
||||
|
||||
---
|
||||
|
||||
## Tips for Using MW Clean
|
||||
|
||||
1. **Override Default Layouts**:
|
||||
- Use the `html/overrides/` folder for customizations without altering core files.
|
||||
2. **Optimize Performance**:
|
||||
- Use Joomla's built-in caching options.
|
||||
- Minify CSS and JavaScript files using Joomla's performance tools.
|
||||
51
language/en-GB/tpl_moko-cassiopeia.ini
Normal file
@@ -0,0 +1,51 @@
|
||||
; Joomla! Project
|
||||
; (C) 2017 Open Source Matters, Inc. <https://www.joomla.org>
|
||||
; License GNU General Public License version 2 or later; see LICENSE.txt
|
||||
; Note : All ini files need to be saved as UTF-8
|
||||
|
||||
MOKO-CASSIOPEIA="MOKO-CASSIOPEIA Site template"
|
||||
TPL_MOKO-CASSIOPEIA_BACKTOTOP="Back to Top"
|
||||
TPL_MOKO-CASSIOPEIA_BACKTOTOP_LABEL="Back-to-top Link"
|
||||
TPL_MOKO-CASSIOPEIA_BRAND_LABEL="Brand"
|
||||
TPL_MOKO-CASSIOPEIA_COLOR_NAME_MEAEWELLNESS="Meae Wellness"
|
||||
TPL_MOKO-CASSIOPEIA_COLOR_NAME_ALTERNATIVE="Alternative"
|
||||
TPL_MOKO-CASSIOPEIA_COLOR_NAME_LABEL="Color Theme"
|
||||
TPL_MOKO-CASSIOPEIA_COLOR_NAME_STANDARD="Standard"
|
||||
TPL_MOKO-CASSIOPEIA_FLUID="Fluid"
|
||||
TPL_MOKO-CASSIOPEIA_FLUID_LABEL="Layout"
|
||||
TPL_MOKO-CASSIOPEIA_FONT_GROUP_LOCAL="Fonts from Folder"
|
||||
TPL_MOKO-CASSIOPEIA_FONT_GROUP_WEB="Fonts from Web"
|
||||
TPL_MOKO-CASSIOPEIA_FONT_LABEL="Fonts Scheme"
|
||||
TPL_MOKO-CASSIOPEIA_FONT_NOTE_TEXT="Loading fonts from external sources might be against privacy regulations in some countries.<br>Loading fonts from a local folder might have a performance impact on your site."
|
||||
TPL_MOKO-CASSIOPEIA_LOGO_LABEL="Logo"
|
||||
TPL_MOKO-CASSIOPEIA_STATIC="Static"
|
||||
TPL_MOKO-CASSIOPEIA_STICKY_LABEL="Sticky Header"
|
||||
TPL_MOKO-CASSIOPEIA_TAGLINE_LABEL="Tagline"
|
||||
TPL_MOKO-CASSIOPEIA_TAGLINE_DESC="Optional text to show as a subheading"
|
||||
TPL_MOKO-CASSIOPEIA_TITLE="Title (alternative to logo)"
|
||||
TPL_MOKO-CASSIOPEIA_XML_DESCRIPTION="Continuing the space theme (Solarflare from 1.0, Milkyway from 1.5 and Protostar from 3.0), MOKO-CASSIOPEIA is the Joomla 4 site template based on Bootstrap 5."
|
||||
TPL_MOKO-CASSIOPEIA_STICKYMENU_LABEL="Sticky Menu?"
|
||||
TPL_MOKO-CASSIOPEIA_COLOR_NAME_CUSTOM_MEAE_WELLNESS="Custom: Meae Wellness"
|
||||
MEAE_WELLNESS="Meae Wellness"
|
||||
TPL_MOKO-CASSIOPEIA_COLOR_NAME_CUSTOM="Custom"
|
||||
TPL_MOKO-CASSIOPEIA_FA6KITCODE_LABEL="Font Awesome 6 Kit Unique Code"
|
||||
TPL_MOKO-CASSIOPEIA_FA6KITCODE_DESC="<i>If left blank, FontAwesome 5 will be used.</i><br>Copy the unique Kit embed code above and paste it into the <head> of your project's HTML file or template.<br><a href='https://fontawesome.com/' target='_blank'>More information at the Font Awesome website.</a>"
|
||||
TPL_MOKO-CASSIOPEIA_OFFLINEEMBED_LABEL="Offline Page Embed Code"
|
||||
TPL_MOKO-CASSIOPEIA_OFFLINEEMBED_DESC="In additon to the 'Offline message' defined in 'Global Configuration', this will be displayed on the offline page.<i>Use for Mailchimp code and Social Icons</i>"
|
||||
MOD_BREADCRUMBS_HERE="YOU ARE HERE:"
|
||||
COM_TEMPLATES_GOOGLE_FIELDSET_LABEL="Google"
|
||||
TPL_MOKO-CASSIOPEIA_GOOGLE_NOTE_TEXT="<H3>PLEASE NOTE:</H3>If fields are left blank, relative Google features will not be used"
|
||||
TPL_MOKO-CASSIOPEIA_GOOGLETAGMANAGER_LABEL="Use Google Tag Manager?"
|
||||
TPL_MOKO-CASSIOPEIA_GOOGLETAGMANAGER_DESC="Do you want to use Google Tag Manager?<br>More information on google Tag Manager can be found <a target='_blank' href='https://support.google.com/tagmanager/answer/14842164'>here.</a>"
|
||||
TPL_MOKO-CASSIOPEIA_GOOGLETAGMANAGERID_LABEL="Google Tag Manager ID"
|
||||
TPL_MOKO-CASSIOPEIA_GOOGLETAGMANAGERID_DESC="Begins with 'GTM-'"
|
||||
COM_TEMPLATES_CUSTOM_HEAD_FIELDSET_LABEL="Custom Head"
|
||||
TPL_MOKO-CASSIOPEIA_CUSTOM_HEAD_START_LABEL="Custom Head: Start"
|
||||
TPL_MOKO-CASSIOPEIA_CUSTOM_HEAD_START_DESC="This content will be inserted at the beginning of the <HEAD> tag"
|
||||
TPL_MOKO-CASSIOPEIA_CUSTOM_HEAD_END_LABEL="Custom Head: End"
|
||||
TPL_MOKO-CASSIOPEIA_CUSTOM_HEAD_END_DESC="This content will be inserted at the end of the <HEAD> tag"
|
||||
COM_TEMPLATES_DRAWERS_FIELDSET_LABEL="Drawers"
|
||||
TPL_MOKO-CASSIOPEIA_DRAWERLEFTICON_LABEL="Drawer Left Icon CSS"
|
||||
TPL_MOKO-CASSIOPEIA_DRAWERLEFTICON_DESC="Enter the Font-Awesome class for the left drawer toggle (e.g. 'fas fa-chevron-left')."
|
||||
TPL_MOKO-CASSIOPEIA_DRAWERRIGHTICON_LABEL="Drawer Right Icon CSS"
|
||||
TPL_MOKO-CASSIOPEIA_DRAWERRIGHTICON_DESC="Enter the Font-Awesome class for the right drawer toggle (e.g. 'fas fa-chevron-right')."
|
||||
28
language/en-GB/tpl_moko-cassiopeia.sys.ini
Normal file
@@ -0,0 +1,28 @@
|
||||
; Joomla! Project
|
||||
; (C) 2017 Open Source Matters, Inc. <https://www.joomla.org>
|
||||
; License GNU General Public License version 2 or later; see LICENSE.txt
|
||||
; Note : All ini files need to be saved as UTF-8
|
||||
|
||||
TPL_MOKO-CASSIOPEIA="Moko-Cassiopeia Site template"
|
||||
TPL_MOKO-CASSIOPEIA_MOD_MENU_LAYOUT_COLLAPSE-METISMENU="Collapsible Dropdown"
|
||||
TPL_MOKO-CASSIOPEIA_MOD_MENU_LAYOUT_DROPDOWN-METISMENU="Dropdown"
|
||||
TPL_MOKO-CASSIOPEIA_POSITION_BANNER="Banner"
|
||||
TPL_MOKO-CASSIOPEIA_POSITION_BELOW-TOP="Below Top"
|
||||
TPL_MOKO-CASSIOPEIA_POSITION_BOTTOM-A="Bottom-A"
|
||||
TPL_MOKO-CASSIOPEIA_POSITION_BOTTOM-B="Bottom-B"
|
||||
TPL_MOKO-CASSIOPEIA_POSITION_BREADCRUMBS="Breadcrumbs"
|
||||
TPL_MOKO-CASSIOPEIA_POSITION_DEBUG="Debug"
|
||||
TPL_MOKO-CASSIOPEIA_POSITION_FOOTER="Footer"
|
||||
TPL_MOKO-CASSIOPEIA_POSITION_MAIN-BOTTOM="Main-bottom"
|
||||
TPL_MOKO-CASSIOPEIA_POSITION_MAIN-TOP="Main-top"
|
||||
TPL_MOKO-CASSIOPEIA_POSITION_MENU="Menu"
|
||||
TPL_MOKO-CASSIOPEIA_POSITION_SEARCH="Search"
|
||||
TPL_MOKO-CASSIOPEIA_POSITION_SIDEBAR-LEFT="Sidebar-left"
|
||||
TPL_MOKO-CASSIOPEIA_POSITION_SIDEBAR-RIGHT="Sidebar-right"
|
||||
TPL_MOKO-CASSIOPEIA_POSITION_TOP-A="Top-a"
|
||||
TPL_MOKO-CASSIOPEIA_POSITION_TOP-B="Top-b"
|
||||
TPL_MOKO-CASSIOPEIA_POSITION_TOPBAR="Top Bar"
|
||||
TPL_MOKO-CASSIOPEIA_POSITION_DRAWER-LEFT="Drawer-Left"
|
||||
TPL_MOKO-CASSIOPEIA_POSITION_DRAWER-RIGHT="Drawer-Right"
|
||||
TPL_MOKO-CASSIOPEIA_XML_DESCRIPTION="Continuing the space theme (Solarflare from 1.0, Milkyway from 1.5 and Protostar from 3.0), MOKO-CASSIOPEIA is aa forked version of the Joomla 4 site template Cassiopeia"
|
||||
|
||||
52
language/en-US/tpl_moko-cassiopeia.ini
Normal file
@@ -0,0 +1,52 @@
|
||||
; Joomla! Project
|
||||
; (C) 2017 Open Source Matters, Inc. <https://www.joomla.org>
|
||||
; License GNU General Public License version 2 or later; see LICENSE.txt
|
||||
; Note : All ini files need to be saved as UTF-8
|
||||
|
||||
MOKO-CASSIOPEIA="MOKO-CASSIOPEIA Site template"
|
||||
TPL_MOKO-CASSIOPEIA_BACKTOTOP="Back to Top"
|
||||
TPL_MOKO-CASSIOPEIA_BACKTOTOP_LABEL="Back-to-top Link"
|
||||
TPL_MOKO-CASSIOPEIA_BRAND_LABEL="Brand"
|
||||
TPL_MOKO-CASSIOPEIA_COLOR_NAME_MEAEWELLNESS="Meae Wellness"
|
||||
TPL_MOKO-CASSIOPEIA_COLOR_NAME_ALTERNATIVE="Alternative"
|
||||
TPL_MOKO-CASSIOPEIA_COLOR_NAME_LABEL="Color Theme"
|
||||
TPL_MOKO-CASSIOPEIA_COLOR_NAME_STANDARD="Standard"
|
||||
TPL_MOKO-CASSIOPEIA_FLUID="Fluid"
|
||||
TPL_MOKO-CASSIOPEIA_FLUID_LABEL="Layout"
|
||||
TPL_MOKO-CASSIOPEIA_FONT_GROUP_LOCAL="Fonts from Folder"
|
||||
TPL_MOKO-CASSIOPEIA_FONT_GROUP_WEB="Fonts from Web"
|
||||
TPL_MOKO-CASSIOPEIA_FONT_LABEL="Fonts Scheme"
|
||||
TPL_MOKO-CASSIOPEIA_FONT_NOTE_TEXT="Loading fonts from external sources might be against privacy regulations in some countries.<br>Loading fonts from a local folder might have a performance impact on your site."
|
||||
TPL_MOKO-CASSIOPEIA_LOGO_LABEL="Logo"
|
||||
TPL_MOKO-CASSIOPEIA_STATIC="Static"
|
||||
TPL_MOKO-CASSIOPEIA_STICKY_LABEL="Sticky Header"
|
||||
TPL_MOKO-CASSIOPEIA_TAGLINE_LABEL="Tagline"
|
||||
TPL_MOKO-CASSIOPEIA_TAGLINE_DESC="Optional text to show as a subheading"
|
||||
TPL_MOKO-CASSIOPEIA_TITLE="Title (alternative to logo)"
|
||||
TPL_MOKO-CASSIOPEIA_XML_DESCRIPTION="Continuing the space theme (Solarflare from 1.0, Milkyway from 1.5 and Protostar from 3.0), MOKO-CASSIOPEIA is the Joomla 4 site template based on Bootstrap 5."
|
||||
TPL_MOKO-CASSIOPEIA_STICKYMENU_LABEL="Sticky Menu?"
|
||||
TPL_MOKO-CASSIOPEIA_COLOR_NAME_CUSTOM_MEAE_WELLNESS="Custom: Meae Wellness"
|
||||
MEAE_WELLNESS="Meae Wellness"
|
||||
TPL_MOKO-CASSIOPEIA_COLOR_NAME_CUSTOM="Custom"
|
||||
TPL_MOKO-CASSIOPEIA_FA6KITCODE_LABEL="Font Awesome 6 Kit Unique Code"
|
||||
TPL_MOKO-CASSIOPEIA_FA6KITCODE_DESC="<i>If left blank, FontAwesome 5 will be used.</i><br>Copy the unique Kit embed code above and paste it into the <head> of your project's HTML file or template.<br><a href='https://fontawesome.com/' target='_blank'>More information at the Font Awesome website.</a>"
|
||||
TPL_MOKO-CASSIOPEIA_OFFLINEEMBED_LABEL="Offline Page Embed Code"
|
||||
TPL_MOKO-CASSIOPEIA_OFFLINEEMBED_DESC="In additon to the 'Offline message' defined in 'Global Configuration', this will be displayed on the offline page.<i>Use for Mailchimp code and Social Icons</i>"
|
||||
MOD_BREADCRUMBS_HERE="YOU ARE HERE:"
|
||||
COM_TEMPLATES_GOOGLE_FIELDSET_LABEL="Google"
|
||||
TPL_MOKO-CASSIOPEIA_GOOGLE_NOTE_TEXT="<H3>PLEASE NOTE:</H3>If fields are left blank, relative Google features will not be used"
|
||||
TPL_MOKO-CASSIOPEIA_GOOGLETAGMANAGER_LABEL="Use Google Tag Manager?"
|
||||
TPL_MOKO-CASSIOPEIA_GOOGLETAGMANAGER_DESC="Do you want to use Google Tag Manager?<br>More information on google Tag Manager can be found <a target='_blank' href='https://support.google.com/tagmanager/answer/14842164'>here.</a>"
|
||||
TPL_MOKO-CASSIOPEIA_GOOGLETAGMANAGERID_LABEL="Google Tag Manager ID"
|
||||
TPL_MOKO-CASSIOPEIA_GOOGLETAGMANAGERID_DESC="Begins with 'GTM-'"
|
||||
COM_TEMPLATES_CUSTOM_HEAD_FIELDSET_LABEL="Custom Head"
|
||||
TPL_MOKO-CASSIOPEIA_CUSTOM_HEAD_START_LABEL="Custom Head: Start"
|
||||
TPL_MOKO-CASSIOPEIA_CUSTOM_HEAD_START_DESC="This content will be inserted at the beginning of the <HEAD> tag"
|
||||
TPL_MOKO-CASSIOPEIA_CUSTOM_HEAD_END_LABEL="Custom Head: End"
|
||||
TPL_MOKO-CASSIOPEIA_CUSTOM_HEAD_END_DESC="This content will be inserted at the end of the <HEAD> tag"
|
||||
COM_TEMPLATES_DRAWERS_FIELDSET_LABEL="Drawers"
|
||||
TPL_MOKO-CASSIOPEIA_DRAWERLEFTICON_LABEL="Drawer Left Icon CSS"
|
||||
TPL_MOKO-CASSIOPEIA_DRAWERLEFTICON_DESC="Enter the Font-Awesome class for the left drawer toggle (e.g. 'fas fa-chevron-left')."
|
||||
TPL_MOKO-CASSIOPEIA_DRAWERRIGHTICON_LABEL="Drawer Right Icon CSS"
|
||||
TPL_MOKO-CASSIOPEIA_DRAWERRIGHTICON_DESC="Enter the Font-Awesome class for the right drawer toggle (e.g. 'fas fa-chevron-right')."
|
||||
|
||||
28
language/en-US/tpl_moko-cassiopeia.sys.ini
Normal file
@@ -0,0 +1,28 @@
|
||||
; Joomla! Project
|
||||
; (C) 2017 Open Source Matters, Inc. <https://www.joomla.org>
|
||||
; License GNU General Public License version 2 or later; see LICENSE.txt
|
||||
; Note : All ini files need to be saved as UTF-8
|
||||
|
||||
TPL_MOKO-CASSIOPEIA="Moko-Cassiopeia Site template"
|
||||
TPL_MOKO-CASSIOPEIA_MOD_MENU_LAYOUT_COLLAPSE-METISMENU="Collapsible Dropdown"
|
||||
TPL_MOKO-CASSIOPEIA_MOD_MENU_LAYOUT_DROPDOWN-METISMENU="Dropdown"
|
||||
TPL_MOKO-CASSIOPEIA_POSITION_BANNER="Banner"
|
||||
TPL_MOKO-CASSIOPEIA_POSITION_BELOW-TOP="Below Top"
|
||||
TPL_MOKO-CASSIOPEIA_POSITION_BOTTOM-A="Bottom-A"
|
||||
TPL_MOKO-CASSIOPEIA_POSITION_BOTTOM-B="Bottom-B"
|
||||
TPL_MOKO-CASSIOPEIA_POSITION_BREADCRUMBS="Breadcrumbs"
|
||||
TPL_MOKO-CASSIOPEIA_POSITION_DEBUG="Debug"
|
||||
TPL_MOKO-CASSIOPEIA_POSITION_FOOTER="Footer"
|
||||
TPL_MOKO-CASSIOPEIA_POSITION_MAIN-BOTTOM="Main-bottom"
|
||||
TPL_MOKO-CASSIOPEIA_POSITION_MAIN-TOP="Main-top"
|
||||
TPL_MOKO-CASSIOPEIA_POSITION_MENU="Menu"
|
||||
TPL_MOKO-CASSIOPEIA_POSITION_SEARCH="Search"
|
||||
TPL_MOKO-CASSIOPEIA_POSITION_SIDEBAR-LEFT="Sidebar-left"
|
||||
TPL_MOKO-CASSIOPEIA_POSITION_SIDEBAR-RIGHT="Sidebar-right"
|
||||
TPL_MOKO-CASSIOPEIA_POSITION_TOP-A="Top-a"
|
||||
TPL_MOKO-CASSIOPEIA_POSITION_TOP-B="Top-b"
|
||||
TPL_MOKO-CASSIOPEIA_POSITION_TOPBAR="Top Bar"
|
||||
TPL_MOKO-CASSIOPEIA_POSITION_DRAWER-LEFT="Drawer-Left"
|
||||
TPL_MOKO-CASSIOPEIA_POSITION_DRAWER-RIGHT="Drawer-Right"
|
||||
TPL_MOKO-CASSIOPEIA_XML_DESCRIPTION="Continuing the space theme (Solarflare from 1.0, Milkyway from 1.5 and Protostar from 3.0), MOKO-CASSIOPEIA is aa forked version of the Joomla 4 site template Cassiopeia"
|
||||
|
||||
72
media/templates/site/moko-cassiopeia/css/editor.css
Normal file
@@ -0,0 +1,72 @@
|
||||
/* STYLES FOR JOOMLA! EDITOR */
|
||||
body {
|
||||
margin: 1rem;
|
||||
font-size: 1rem;
|
||||
font-weight: 400;
|
||||
line-height: 1.5;
|
||||
color: #22262a;
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
margin-top: 0;
|
||||
margin-bottom: 0.5rem;
|
||||
font-weight: 700;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: calc(1.375rem + 1.5vw);
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: calc(1.325rem + 0.9vw);
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: calc(1.3rem + 0.6vw);
|
||||
}
|
||||
|
||||
h4 {
|
||||
font-size: calc(1.275rem + 0.3vw);
|
||||
}
|
||||
|
||||
h5 {
|
||||
font-size: 1.25rem;
|
||||
}
|
||||
|
||||
h6 {
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
}
|
||||
a:link {
|
||||
color: #224faa;
|
||||
}
|
||||
a:hover {
|
||||
color: #424077;
|
||||
}
|
||||
|
||||
p {
|
||||
margin-top: 0;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
/* STYLES FOR JOOMLA! EDITOR */
|
||||
hr#system-readmore {
|
||||
color: #f00;
|
||||
border: #f00 dashed 1px;
|
||||
}
|
||||
|
||||
span[lang] {
|
||||
padding: 2px;
|
||||
border: 1px dashed #bbb;
|
||||
}
|
||||
span[lang]:after {
|
||||
font-size: smaller;
|
||||
color: #f00;
|
||||
vertical-align: super;
|
||||
content: attr(lang);
|
||||
}
|
||||
541
media/templates/site/moko-cassiopeia/css/gable.css
Normal file
@@ -0,0 +1,541 @@
|
||||
:root {
|
||||
--gab-blue: transparent;
|
||||
--gab-green: #7ac143;
|
||||
--gab-red: #3f8ff0;
|
||||
--gab-orange: #F9A541;
|
||||
--gab-gray1: #DDDDDD;
|
||||
--gab-gray2: #AAAAAA;
|
||||
--gab-gray3: #777777;
|
||||
}
|
||||
|
||||
code {
|
||||
background-color: var(--gab-gray1);
|
||||
}
|
||||
|
||||
#view_gabble {
|
||||
background-color: var(--gab-blue);
|
||||
padding: 6px;
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
#mod_gabble {
|
||||
background-color: var(--gab-blue);
|
||||
padding: 3px;
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
#lists_gabble {
|
||||
position: relative;
|
||||
height: 100%;
|
||||
border: 4px solid var(--gab-red);
|
||||
background-color: var(--gab-green);
|
||||
padding: 4px;
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
#select_list {
|
||||
margin-left: 0px;
|
||||
width: 100%;
|
||||
padding: 4px;
|
||||
border-radius: 6px 6px 0px 0px;
|
||||
}
|
||||
|
||||
#options_list {
|
||||
width: 100%;
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
#frame_list {
|
||||
width: 100%;
|
||||
height: 484px;
|
||||
padding: 4px;
|
||||
border-radius: 0px 0px 6px 6px;
|
||||
}
|
||||
|
||||
#windows_list {
|
||||
margin-left: 0px;
|
||||
width: 100%;
|
||||
border: 4px solid var(--gab-red);
|
||||
background-color: var(--gab-green);
|
||||
padding: 4px;
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
#frame_window {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#openai_btn {
|
||||
position: absolute;
|
||||
right: 10px;
|
||||
bottom: 10px;
|
||||
visibility: hidden;
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
cursor: pointer;
|
||||
border: 3px solid var(--gab-gray3);
|
||||
background-color: #FFF;
|
||||
border-radius: 17px;
|
||||
}
|
||||
|
||||
#openai_btn:hover {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
border: 3px solid var(--gab-gray3);
|
||||
border-radius: 18px;
|
||||
}
|
||||
|
||||
#openai_logo_anim {
|
||||
position: absolute;
|
||||
top: 15px;
|
||||
right: 15px;
|
||||
width: 35px;
|
||||
height: 35px;
|
||||
padding: 2px;
|
||||
z-index: 1;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.openai_logo_sm {
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
background-color: #FFF;
|
||||
border: 3px solid #FFF;
|
||||
border-radius: 11px;
|
||||
}
|
||||
|
||||
.openai_logo_md {
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
background-color: #FFF;
|
||||
border: 4px solid #FFF;
|
||||
border-radius: 17px;
|
||||
}
|
||||
|
||||
.btn_on_com {
|
||||
position: absolute;
|
||||
bottom: -2px;
|
||||
left: -2px;
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
background-color: #448344;
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
.btn_on_mod {
|
||||
position: absolute;
|
||||
top: 0px;
|
||||
left: 0px;
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
background-color: #448344;
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
.button_list {
|
||||
border: none;
|
||||
width:100%;
|
||||
outline: none;
|
||||
background-color: var(--gab-gray1);
|
||||
padding: 6px;
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
.button_list:hover {
|
||||
background-color: var(--gab-gray2);
|
||||
}
|
||||
|
||||
.button_list_s {
|
||||
border: none;
|
||||
width: 100%;
|
||||
outline: none;
|
||||
cursor: pointer;
|
||||
color: #FFF;
|
||||
background-color: var(--gab-red);
|
||||
padding: 6px;
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
.window_list {
|
||||
position: relative;
|
||||
margin: 4px;
|
||||
width: 100%;
|
||||
border: none;
|
||||
outline: none;
|
||||
cursor: pointer;
|
||||
text-align: left;
|
||||
background-color: var(--gab-gray1);
|
||||
padding: 6px;
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
.window_list:hover {
|
||||
background-color: var(--gab-gray2);
|
||||
}
|
||||
|
||||
.window_list_s {
|
||||
position: relative;
|
||||
margin: 4px;
|
||||
width: 100%;
|
||||
border: none;
|
||||
outline: none;
|
||||
cursor: pointer;
|
||||
text-align: left;
|
||||
color: #FFF;
|
||||
background-color: var(--gab-red);
|
||||
padding: 6px;
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
.btn_close {
|
||||
position: absolute;
|
||||
right: 4px;
|
||||
top: 10px;
|
||||
padding-left: 1px;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
color: #000;
|
||||
font-size: 10px;
|
||||
text-align: center;
|
||||
background-color: var(--gab-gray2);
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.btn_close:hover {
|
||||
background-color: var(--gab-gray3);
|
||||
}
|
||||
|
||||
.iframe_list {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: #FFF;
|
||||
border: 4px solid var(--gab-red);
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
.iframe_messages {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: #FFF;
|
||||
border: 4px solid var(--gab-red);
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
.input_box {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.input_emoji {
|
||||
position: absolute;
|
||||
right: 48px;
|
||||
top: 11px;
|
||||
cursor: pointer;
|
||||
color: var(--gab-gray2);
|
||||
}
|
||||
|
||||
.input_emoji:hover {
|
||||
color: var(--gab-gray3);
|
||||
}
|
||||
|
||||
.emoji {
|
||||
display: inline-block;
|
||||
float: left;
|
||||
cursor: pointer;
|
||||
padding: 2px;
|
||||
background-color: #FFF;
|
||||
}
|
||||
|
||||
.emoji:hover {
|
||||
background-color: var(--gab-orange);
|
||||
}
|
||||
|
||||
.emojis_div {
|
||||
position: absolute;
|
||||
top: -92px;
|
||||
right: 0px;
|
||||
width: 200px;
|
||||
height: 92px;
|
||||
border: 4px solid var(--gab-red);
|
||||
background-color: var(--gab-gray1);
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
.msg-button-on {
|
||||
margin-left: 5px;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
font-size: 20px;
|
||||
text-align: center;
|
||||
color: #FFF;
|
||||
background-color: var(--gab-orange);
|
||||
border-radius: 15px;
|
||||
}
|
||||
|
||||
.msg-button-off {
|
||||
margin-left: 5px;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
font-size: 20px;
|
||||
text-align: center;
|
||||
color: #FFF;
|
||||
background-color: var(--gab-gray2);
|
||||
border-radius: 15px;
|
||||
}
|
||||
|
||||
.taba-content {
|
||||
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
}
|
||||
|
||||
.msg-input {
|
||||
padding-left: 10px;
|
||||
padding-right: 26px;
|
||||
width: calc(100% - 35px);
|
||||
height: 30px;
|
||||
border-radius: 15px;
|
||||
}
|
||||
|
||||
.main-windows {
|
||||
position: fixed;
|
||||
margin-bottom: 10px;
|
||||
bottom: 0px;
|
||||
right: 90px;
|
||||
z-index: 901;
|
||||
}
|
||||
|
||||
.list-windows {
|
||||
position: fixed;
|
||||
bottom: 0px;
|
||||
right: 0px;
|
||||
width: 50px;
|
||||
margin-bottom: 20px;
|
||||
margin-right: 20px;
|
||||
z-index: 901;
|
||||
}
|
||||
|
||||
.item-list {
|
||||
display: inline-block;
|
||||
color: #F5F5F5;
|
||||
margin-top: 5px;
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
font-size: 30px;
|
||||
text-align: center;
|
||||
border: 3px solid var(--gab-red);
|
||||
background-color: var(--gab-blue);
|
||||
border-radius: 25px;
|
||||
}
|
||||
|
||||
.button {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.button:hover {
|
||||
cursor: pointer;
|
||||
opacity: .6;
|
||||
}
|
||||
|
||||
.notifications {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.n-notifications {
|
||||
position: absolute;
|
||||
bottom: -6px;
|
||||
right: -2px;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
color: #FFF;
|
||||
font-size: 11px;
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
background-color: #a51f18;
|
||||
border-radius: 9px;
|
||||
}
|
||||
|
||||
.m-notifications {
|
||||
position: absolute;
|
||||
top: -6px;
|
||||
right: -2px;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
color: #FFF;
|
||||
font-size: 11px;
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
background-color: #a51f18;
|
||||
border-radius: 9px;
|
||||
}
|
||||
|
||||
.window {
|
||||
display: inline-block;
|
||||
margin-left: 8px;
|
||||
width: 280px;
|
||||
height: 420px;
|
||||
}
|
||||
|
||||
.window-com {
|
||||
margin-top: 6px;
|
||||
width: 100%;
|
||||
height: 480px;
|
||||
}
|
||||
|
||||
.window-title {
|
||||
margin-left: 5px;
|
||||
display: inline-block;
|
||||
color: #FFF;
|
||||
}
|
||||
|
||||
.window-title-com {
|
||||
margin-left: 5px;
|
||||
display: inline-block;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.window-icon {
|
||||
display: inline-block;
|
||||
color: #FFF;
|
||||
}
|
||||
|
||||
.window-header {
|
||||
padding: 6px;
|
||||
width: 100%;
|
||||
height: 40px;
|
||||
background-color: var(--gab-blue);
|
||||
border-radius: 8px 8px 0px 0px;
|
||||
}
|
||||
|
||||
.window-header-com {
|
||||
padding: 4px;
|
||||
width: 100%;
|
||||
height: 35px;
|
||||
background-color: var(--gab-red);
|
||||
border-radius: 8px 8px 0px 0px;
|
||||
}
|
||||
|
||||
.window-content {
|
||||
position: relative;
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: calc(100% - 80px);
|
||||
background-color: #DDD;
|
||||
}
|
||||
|
||||
.content-footer {
|
||||
position: relative;
|
||||
padding: 5px;
|
||||
width: 100%;
|
||||
height: 40px;
|
||||
background-color: #DDD;
|
||||
border-radius: 0px 0px 8px 8px;
|
||||
}
|
||||
|
||||
.taba-btn {
|
||||
text-align: center;
|
||||
display: inline-block;
|
||||
margin-left: 5px;
|
||||
float: right;
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
background-color: #DDD;
|
||||
border-radius: 12px;
|
||||
}
|
||||
|
||||
.taba-hover {
|
||||
cursor: pointer;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.taba-hover:hover {
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
.taba-self {
|
||||
border: 1px solid #FFF;
|
||||
background-color: #7ac143;
|
||||
padding: 6px;
|
||||
padding-top: 9px;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.taba-others {
|
||||
border: 1px solid #FFF;
|
||||
background-color: #5091cd;
|
||||
padding: 6px;
|
||||
padding-top: 9px;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.taba-bot {
|
||||
border: 1px solid #FFF;
|
||||
background-color: var(--gab-gray3);
|
||||
padding: 6px;
|
||||
padding-top: 9px;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.taba-dice {
|
||||
border: 1px solid #FFF;
|
||||
background-color: #f44321;
|
||||
padding: 6px;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.taba-emoji {
|
||||
border: 1px solid #FFF;
|
||||
background-color: #5091cd;
|
||||
padding: 6px;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.taba-user {
|
||||
border: 1px solid #FFF;
|
||||
background-color: #FFF;
|
||||
padding: 6px;
|
||||
border-radius: 6px;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
.taba-user-on {
|
||||
border: 1px solid #FFF;
|
||||
background-color: var(--gab-green);
|
||||
padding: 6px;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.taba-feed {
|
||||
border: 1px solid #FFF;
|
||||
background-color: var(--gab-blue);
|
||||
padding: 6px;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.openai_error {
|
||||
border: 1px solid #FFF;
|
||||
background-color: var(--gab-red);
|
||||
padding: 6px;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.taba-msgsystem {
|
||||
border: 1px solid #FFF;
|
||||
background-color: #AAA;
|
||||
padding: 6px;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.taba-msghead {
|
||||
background-color: #f5f5f5;
|
||||
padding: 4px;
|
||||
padding-left: 10px;
|
||||
padding-right: 6px;
|
||||
border-radius: 6px 6px 0px 0px;
|
||||
}
|
||||
|
||||
.taba-msg {
|
||||
background-color: #f5f5f5;
|
||||
padding: 8px;
|
||||
border-radius: 0px 8px 8px 8px;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
:root {
|
||||
--moko-cassiopeia-color-primary: hsl(351, 54%, 37%);
|
||||
--moko-cassiopeia-color-link: hsl(207, 49%, 37%);
|
||||
--moko-cassiopeia-color-hover: hsl(351, 33%, 44%);
|
||||
}
|
||||
@@ -0,0 +1,392 @@
|
||||
:root {
|
||||
--moko-cassiopeia-color-primary: #30638d;
|
||||
--moko-cassiopeia-color-link: #15496e;
|
||||
--moko-cassiopeia-color-hover: #448344;
|
||||
--moko-cassiopeia-header-background-image: url('../../../../../../media/templates/site/moko-cassiopeia/images/meaewellness/background.png');
|
||||
--moko-cassiopeia-header-background-position: center center;
|
||||
--moko-cassiopeia-header-background-attachment: fixed;
|
||||
--moko-cassiopeia-header-background-repeat: no-repeat;
|
||||
--moko-cassiopeia-header-background-size: cover;
|
||||
--nav-text-color: black;
|
||||
--nav-bg-color: #79ec3d6b;
|
||||
--accent-color-primary: #3f8ff0;
|
||||
--accent-color-secondary: #3f8ff0;
|
||||
--border: 5px;
|
||||
--mainmenu-nav-link-color: black;
|
||||
|
||||
|
||||
--blue: hsl(240, 98%, 17%);
|
||||
--indigo: hsl(263, 90%, 51%);
|
||||
--purple: hsl(261, 51%, 51%);
|
||||
--pink: hsl(332, 79%, 58%);
|
||||
--red: hsl(3, 75%, 37%);
|
||||
--orange: hsl(27, 98%, 54%);
|
||||
--yellow: hsl(34, 100%, 34%);
|
||||
--green: hsl(120, 32%, 39%);
|
||||
--teal: hsl(194, 66%, 61%);
|
||||
--cyan: hsl(207, 49%, 37%);
|
||||
--white: hsl(0, 0%, 100%);
|
||||
--gray-100: hsl(210, 17%, 98%);
|
||||
--gray-200: hsl(210, 16%, 93%);
|
||||
--gray-300: hsl(210, 14%, 89%);
|
||||
--gray-400: hsl(210, 14%, 83%);
|
||||
--gray-500: hsl(210, 11%, 71%);
|
||||
--gray-600: hsl(210, 7%, 46%);
|
||||
--gray-700: hsl(210, 9%, 31%);
|
||||
--gray-800: hsl(210, 10%, 23%);
|
||||
--gray-900: hsl(210, 11%, 15%);
|
||||
--primary: hsl(240, 98%, 17%);
|
||||
--secondary: hsl(210, 7%, 46%);
|
||||
--success: hsl(120, 32%, 39%);
|
||||
--info: hsl(207, 49%, 37%);
|
||||
--warning: hsl(34, 100%, 34%);
|
||||
--danger: hsl(3, 75%, 37%);
|
||||
--light: hsl(210, 17%, 98%);
|
||||
--dark: hsl(210, 10%, 23%);
|
||||
--primary-rgb: 1, 1, 86;
|
||||
--secondary-rgb: 109, 117, 126;
|
||||
--success-rgb: 68, 131, 68;
|
||||
--info-rgb: 48, 99, 141;
|
||||
--warning-rgb: 173, 98, 0;
|
||||
--danger-rgb: 165, 31, 24;
|
||||
--light-rgb: 249, 250, 251;
|
||||
--dark-rgb: 53, 59, 65;
|
||||
--white-rgb: 255, 255, 255;
|
||||
--black-rgb: 0, 0, 0;
|
||||
--body-color-rgb: 34, 38, 42;
|
||||
--body-bg-rgb: 255, 255, 255;
|
||||
--font-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
||||
--font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
|
||||
--gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
|
||||
--body-font-family: var(--moko-cassiopeia-font-family-body, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
|
||||
--body-font-size: 1rem;
|
||||
--body-font-weight: 400;
|
||||
--body-line-height: 1.5;
|
||||
--body-color: hsl(210, 11%, 15%);
|
||||
--body-bg: hsl(0, 0%, 100%);
|
||||
--border-width: 1px;
|
||||
--border-style: solid;
|
||||
--border-color: hsl(210, 14%, 89%);
|
||||
--border-color-translucent: rgba(0, 0, 0, 0.175);
|
||||
--border-radius: 0.25rem;
|
||||
--border-radius-sm: 0.2rem;
|
||||
--border-radius-lg: 0.3rem;
|
||||
--border-radius-xl: 0.3rem;
|
||||
--border-radius-2xl: 0.3rem;
|
||||
--border-radius-pill: 50rem;
|
||||
--link-color: var(--moko-cassiopeia-color-link);
|
||||
--link-hover-color: var(--moko-cassiopeia-color-hover);
|
||||
--code-color: hsl(332, 79%, 58%);
|
||||
--highlight-bg: #fbeea8;
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
--btn-color: hsl(0, 0%, 100%);
|
||||
--btn-bg: hsl(240, 98%, 17%);
|
||||
--btn-border-color: hsl(240, 98%, 17%);
|
||||
--btn-hover-color: hsl(0, 0%, 100%);
|
||||
--btn-hover-bg: #010149;
|
||||
--btn-hover-border-color: #010145;
|
||||
--btn-focus-shadow-rgb: 39, 39, 111;
|
||||
--btn-active-color: hsl(0, 0%, 100%);
|
||||
--btn-active-bg: #010145;
|
||||
--btn-active-border-color: #010141;
|
||||
--btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
||||
--btn-disabled-color: hsl(0, 0%, 100%);
|
||||
--btn-disabled-bg: hsl(240, 98%, 17%);
|
||||
--btn-disabled-border-color: hsl(240, 98%, 17%);
|
||||
}
|
||||
|
||||
.btn-secondary {
|
||||
--btn-color: --nav-text-color;
|
||||
--btn-bg: --nav-bg-color;
|
||||
--btn-border-color: hsl(210, 7%, 46%);
|
||||
--btn-hover-color: hsl(0, 0%, 100%);
|
||||
--btn-hover-bg: #5d636b;
|
||||
--btn-hover-border-color: #575e65;
|
||||
--btn-focus-shadow-rgb: gray;
|
||||
--btn-active-color: hsl(0, 0%, 100%);
|
||||
--btn-active-bg: #575e65;
|
||||
--btn-active-border-color: #52585f;
|
||||
--btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
||||
--btn-disabled-color: hsl(0, 0%, 100%);
|
||||
--btn-disabled-bg: hsl(210, 7%, 46%);
|
||||
--btn-disabled-border-color: hsl(210, 7%, 46%);
|
||||
}
|
||||
|
||||
.btn-success {
|
||||
--btn-color: hsl(0, 0%, 100%);
|
||||
--btn-bg: hsl(120, 32%, 39%);
|
||||
--btn-border-color: hsl(120, 32%, 39%);
|
||||
--btn-hover-color: hsl(0, 0%, 100%);
|
||||
--btn-hover-bg: #3a6f3a;
|
||||
--btn-hover-border-color: #366936;
|
||||
--btn-focus-shadow-rgb: 96, 150, 96;
|
||||
--btn-active-color: hsl(0, 0%, 100%);
|
||||
--btn-active-bg: #366936;
|
||||
--btn-active-border-color: #336233;
|
||||
--btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
||||
--btn-disabled-color: hsl(0, 0%, 100%);
|
||||
--btn-disabled-bg: hsl(120, 32%, 39%);
|
||||
--btn-disabled-border-color: hsl(120, 32%, 39%);
|
||||
}
|
||||
|
||||
.btn-info {
|
||||
--btn-color: hsl(0, 0%, 100%);
|
||||
--btn-bg: hsl(207, 49%, 37%);
|
||||
--btn-border-color: hsl(207, 49%, 37%);
|
||||
--btn-hover-color: hsl(0, 0%, 100%);
|
||||
--btn-hover-bg: #295478;
|
||||
--btn-hover-border-color: #264f71;
|
||||
--btn-focus-shadow-rgb: 79, 122, 158;
|
||||
--btn-active-color: hsl(0, 0%, 100%);
|
||||
--btn-active-bg: #264f71;
|
||||
--btn-active-border-color: #244a6a;
|
||||
--btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
||||
--btn-disabled-color: hsl(0, 0%, 100%);
|
||||
--btn-disabled-bg: hsl(207, 49%, 37%);
|
||||
--btn-disabled-border-color: hsl(207, 49%, 37%);
|
||||
}
|
||||
|
||||
.btn-warning {
|
||||
--btn-color: hsl(0, 0%, 100%);
|
||||
--btn-bg: hsl(34, 100%, 34%);
|
||||
--btn-border-color: hsl(34, 100%, 34%);
|
||||
--btn-hover-color: hsl(0, 0%, 100%);
|
||||
--btn-hover-bg: #935300;
|
||||
--btn-hover-border-color: #8a4e00;
|
||||
--btn-focus-shadow-rgb: 185, 122, 38;
|
||||
--btn-active-color: hsl(0, 0%, 100%);
|
||||
--btn-active-bg: #8a4e00;
|
||||
--btn-active-border-color: #824a00;
|
||||
--btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
||||
--btn-disabled-color: hsl(0, 0%, 100%);
|
||||
--btn-disabled-bg: hsl(34, 100%, 34%);
|
||||
--btn-disabled-border-color: hsl(34, 100%, 34%);
|
||||
}
|
||||
|
||||
.btn-danger {
|
||||
--btn-color: hsl(0, 0%, 100%);
|
||||
--btn-bg: hsl(3, 75%, 37%);
|
||||
--btn-border-color: hsl(3, 75%, 37%);
|
||||
--btn-hover-color: hsl(0, 0%, 100%);
|
||||
--btn-hover-bg: #8c1a14;
|
||||
--btn-hover-border-color: #841913;
|
||||
--btn-focus-shadow-rgb: 179, 65, 59;
|
||||
--btn-active-color: hsl(0, 0%, 100%);
|
||||
--btn-active-bg: #841913;
|
||||
--btn-active-border-color: #7c1712;
|
||||
--btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
||||
--btn-disabled-color: hsl(0, 0%, 100%);
|
||||
--btn-disabled-bg: hsl(3, 75%, 37%);
|
||||
--btn-disabled-border-color: hsl(3, 75%, 37%);
|
||||
}
|
||||
|
||||
.btn-light {
|
||||
--btn-color: hsl(0, 0%, 0%);
|
||||
--btn-bg: hsl(210, 17%, 98%);
|
||||
--btn-border-color: hsl(210, 17%, 98%);
|
||||
--btn-hover-color: hsl(0, 0%, 0%);
|
||||
--btn-hover-bg: #d4d5d5;
|
||||
--btn-hover-border-color: #c7c8c9;
|
||||
--btn-focus-shadow-rgb: 212, 213, 213;
|
||||
--btn-active-color: hsl(0, 0%, 0%);
|
||||
--btn-active-bg: #c7c8c9;
|
||||
--btn-active-border-color: #bbbcbc;
|
||||
--btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
||||
--btn-disabled-color: hsl(0, 0%, 0%);
|
||||
--btn-disabled-bg: hsl(210, 17%, 98%);
|
||||
--btn-disabled-border-color: hsl(210, 17%, 98%);
|
||||
}
|
||||
|
||||
.btn-dark {
|
||||
--btn-color: hsl(0, 0%, 100%);
|
||||
--btn-bg: hsl(210, 10%, 23%);
|
||||
--btn-border-color: hsl(210, 10%, 23%);
|
||||
--btn-hover-color: hsl(0, 0%, 100%);
|
||||
--btn-hover-bg: #53585e;
|
||||
--btn-hover-border-color: #494f54;
|
||||
--btn-focus-shadow-rgb: 83, 88, 94;
|
||||
--btn-active-color: hsl(0, 0%, 100%);
|
||||
--btn-active-bg: #5d6267;
|
||||
--btn-active-border-color: #494f54;
|
||||
--btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
||||
--btn-disabled-color: hsl(0, 0%, 100%);
|
||||
--btn-disabled-bg: hsl(210, 10%, 23%);
|
||||
--btn-disabled-border-color: hsl(210, 10%, 23%);
|
||||
}
|
||||
|
||||
.btn-outline-primary {
|
||||
--btn-color: hsl(240, 98%, 17%);
|
||||
--btn-border-color: hsl(240, 98%, 17%);
|
||||
--btn-hover-color: hsl(0, 0%, 100%);
|
||||
--btn-hover-bg: hsl(240, 98%, 17%);
|
||||
--btn-hover-border-color: hsl(240, 98%, 17%);
|
||||
--btn-focus-shadow-rgb: 1, 1, 86;
|
||||
--btn-active-color: hsl(0, 0%, 100%);
|
||||
--btn-active-bg: hsl(240, 98%, 17%);
|
||||
--btn-active-border-color: hsl(240, 98%, 17%);
|
||||
--btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
||||
--btn-disabled-color: hsl(240, 98%, 17%);
|
||||
--btn-disabled-bg: transparent;
|
||||
--btn-disabled-border-color: hsl(240, 98%, 17%);
|
||||
--gradient: none;
|
||||
}
|
||||
|
||||
.btn-outline-secondary {
|
||||
--btn-color: hsl(210, 7%, 46%);
|
||||
--btn-border-color: hsl(210, 7%, 46%);
|
||||
--btn-hover-color: hsl(0, 0%, 100%);
|
||||
--btn-hover-bg: hsl(210, 7%, 46%);
|
||||
--btn-hover-border-color: hsl(210, 7%, 46%);
|
||||
--btn-focus-shadow-rgb: 109, 117, 126;
|
||||
--btn-active-color: hsl(0, 0%, 100%);
|
||||
--btn-active-bg: hsl(210, 7%, 46%);
|
||||
--btn-active-border-color: hsl(210, 7%, 46%);
|
||||
--btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
||||
--btn-disabled-color: hsl(210, 7%, 46%);
|
||||
--btn-disabled-bg: transparent;
|
||||
--btn-disabled-border-color: hsl(210, 7%, 46%);
|
||||
--gradient: none;
|
||||
}
|
||||
|
||||
.btn-outline-success {
|
||||
--btn-color: hsl(120, 32%, 39%);
|
||||
--btn-border-color: hsl(120, 32%, 39%);
|
||||
--btn-hover-color: hsl(0, 0%, 100%);
|
||||
--btn-hover-bg: hsl(120, 32%, 39%);
|
||||
--btn-hover-border-color: hsl(120, 32%, 39%);
|
||||
--btn-focus-shadow-rgb: 68, 131, 68;
|
||||
--btn-active-color: hsl(0, 0%, 100%);
|
||||
--btn-active-bg: hsl(120, 32%, 39%);
|
||||
--btn-active-border-color: hsl(120, 32%, 39%);
|
||||
--btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
||||
--btn-disabled-color: hsl(120, 32%, 39%);
|
||||
--btn-disabled-bg: transparent;
|
||||
--btn-disabled-border-color: hsl(120, 32%, 39%);
|
||||
--gradient: none;
|
||||
}
|
||||
|
||||
.btn-outline-info {
|
||||
--btn-color: hsl(207, 49%, 37%);
|
||||
--btn-border-color: hsl(207, 49%, 37%);
|
||||
--btn-hover-color: hsl(0, 0%, 100%);
|
||||
--btn-hover-bg: hsl(207, 49%, 37%);
|
||||
--btn-hover-border-color: hsl(207, 49%, 37%);
|
||||
--btn-focus-shadow-rgb: 48, 99, 141;
|
||||
--btn-active-color: hsl(0, 0%, 100%);
|
||||
--btn-active-bg: hsl(207, 49%, 37%);
|
||||
--btn-active-border-color: hsl(207, 49%, 37%);
|
||||
--btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
||||
--btn-disabled-color: hsl(207, 49%, 37%);
|
||||
--btn-disabled-bg: transparent;
|
||||
--btn-disabled-border-color: hsl(207, 49%, 37%);
|
||||
--gradient: none;
|
||||
}
|
||||
|
||||
.btn-outline-warning {
|
||||
--btn-color: hsl(34, 100%, 34%);
|
||||
--btn-border-color: hsl(34, 100%, 34%);
|
||||
--btn-hover-color: hsl(0, 0%, 100%);
|
||||
--btn-hover-bg: hsl(34, 100%, 34%);
|
||||
--btn-hover-border-color: hsl(34, 100%, 34%);
|
||||
--btn-focus-shadow-rgb: 173, 98, 0;
|
||||
--btn-active-color: hsl(0, 0%, 100%);
|
||||
--btn-active-bg: hsl(34, 100%, 34%);
|
||||
--btn-active-border-color: hsl(34, 100%, 34%);
|
||||
--btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
||||
--btn-disabled-color: hsl(34, 100%, 34%);
|
||||
--btn-disabled-bg: transparent;
|
||||
--btn-disabled-border-color: hsl(34, 100%, 34%);
|
||||
--gradient: none;
|
||||
}
|
||||
|
||||
.btn-outline-danger {
|
||||
--btn-color: hsl(3, 75%, 37%);
|
||||
--btn-border-color: hsl(3, 75%, 37%);
|
||||
--btn-hover-color: hsl(0, 0%, 100%);
|
||||
--btn-hover-bg: hsl(3, 75%, 37%);
|
||||
--btn-hover-border-color: hsl(3, 75%, 37%);
|
||||
--btn-focus-shadow-rgb: 165, 31, 24;
|
||||
--btn-active-color: hsl(0, 0%, 100%);
|
||||
--btn-active-bg: hsl(3, 75%, 37%);
|
||||
--btn-active-border-color: hsl(3, 75%, 37%);
|
||||
--btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
||||
--btn-disabled-color: hsl(3, 75%, 37%);
|
||||
--btn-disabled-bg: transparent;
|
||||
--btn-disabled-border-color: hsl(3, 75%, 37%);
|
||||
--gradient: none;
|
||||
}
|
||||
|
||||
.btn-outline-light {
|
||||
--btn-color: hsl(210, 17%, 98%);
|
||||
--btn-border-color: hsl(210, 17%, 98%);
|
||||
--btn-hover-color: hsl(0, 0%, 0%);
|
||||
--btn-hover-bg: hsl(210, 17%, 98%);
|
||||
--btn-hover-border-color: hsl(210, 17%, 98%);
|
||||
--btn-focus-shadow-rgb: 249, 250, 251;
|
||||
--btn-active-color: hsl(0, 0%, 0%);
|
||||
--btn-active-bg: hsl(210, 17%, 98%);
|
||||
--btn-active-border-color: hsl(210, 17%, 98%);
|
||||
--btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
||||
--btn-disabled-color: hsl(210, 17%, 98%);
|
||||
--btn-disabled-bg: transparent;
|
||||
--btn-disabled-border-color: hsl(210, 17%, 98%);
|
||||
--gradient: none;
|
||||
}
|
||||
|
||||
.btn-outline-dark {
|
||||
--btn-color: hsl(210, 10%, 23%);
|
||||
--btn-border-color: hsl(210, 10%, 23%);
|
||||
--btn-hover-color: hsl(0, 0%, 100%);
|
||||
--btn-hover-bg: hsl(210, 10%, 23%);
|
||||
--btn-hover-border-color: hsl(210, 10%, 23%);
|
||||
--btn-focus-shadow-rgb: 53, 59, 65;
|
||||
--btn-active-color: hsl(0, 0%, 100%);
|
||||
--btn-active-bg: hsl(210, 10%, 23%);
|
||||
--btn-active-border-color: hsl(210, 10%, 23%);
|
||||
--btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
||||
--btn-disabled-color: hsl(210, 10%, 23%);
|
||||
--btn-disabled-bg: transparent;
|
||||
--btn-disabled-border-color: hsl(210, 10%, 23%);
|
||||
--gradient: none;
|
||||
}
|
||||
|
||||
.btn-link {
|
||||
--btn-font-weight: 400;
|
||||
--btn-color: var(--link-color);
|
||||
--btn-bg: transparent;
|
||||
--btn-border-color: transparent;
|
||||
--btn-hover-color: var(--link-hover-color);
|
||||
--btn-hover-border-color: transparent;
|
||||
--btn-active-color: var(--link-hover-color);
|
||||
--btn-active-border-color: transparent;
|
||||
--btn-disabled-color: hsl(210, 7%, 46%);
|
||||
--btn-disabled-border-color: transparent;
|
||||
--btn-box-shadow: none;
|
||||
--btn-focus-shadow-rgb: 39, 39, 111;
|
||||
text-decoration: underline;
|
||||
}
|
||||
.btn-link:focus-visible {
|
||||
color: var(--btn-color);
|
||||
}
|
||||
.btn-link:hover {
|
||||
color: var(--btn-hover-color);
|
||||
}
|
||||
|
||||
.btn-lg, .btn-group-lg > .btn {
|
||||
--btn-padding-y: 0.5rem;
|
||||
--btn-padding-x: 1rem;
|
||||
--btn-font-size: 1.25rem;
|
||||
--btn-border-radius: 0.3rem;
|
||||
}
|
||||
|
||||
.btn-sm, .btn-group-sm > .btn {
|
||||
--btn-padding-y: 0.25rem;
|
||||
--btn-padding-x: 0.5rem;
|
||||
--btn-font-size: 0.875rem;
|
||||
--btn-border-radius: 0.2rem;
|
||||
}
|
||||
.container-header {
|
||||
background-image:var(--moko-cassiopeia-header-background-image)!important;
|
||||
}
|
||||
382
media/templates/site/moko-cassiopeia/css/global/colors_sra.css
Normal file
@@ -0,0 +1,382 @@
|
||||
:root {
|
||||
--moko-cassiopeia-color-primary: #29373a;
|
||||
--moko-cassiopeia-color-link: #15496e;
|
||||
--moko-cassiopeia-color-hover: black;
|
||||
--nav-text-color: black;
|
||||
--nav-bg-color: #f5560b;
|
||||
--accent-color-primary: #c1163e;
|
||||
--accent-color-secondary: #7dc6da;
|
||||
--border: 5px;
|
||||
|
||||
--blue: hsl(240, 98%, 17%);
|
||||
--indigo: hsl(263, 90%, 51%);
|
||||
--purple: hsl(261, 51%, 51%);
|
||||
--pink: hsl(332, 79%, 58%);
|
||||
--red: hsl(3, 75%, 37%);
|
||||
--orange: hsl(27, 98%, 54%);
|
||||
--yellow: hsl(34, 100%, 34%);
|
||||
--green: hsl(120, 32%, 39%);
|
||||
--teal: hsl(194, 66%, 61%);
|
||||
--cyan: hsl(207, 49%, 37%);
|
||||
--white: hsl(0, 0%, 100%);
|
||||
--gray-100: hsl(210, 17%, 98%);
|
||||
--gray-200: hsl(210, 16%, 93%);
|
||||
--gray-300: hsl(210, 14%, 89%);
|
||||
--gray-400: hsl(210, 14%, 83%);
|
||||
--gray-500: hsl(210, 11%, 71%);
|
||||
--gray-600: hsl(210, 7%, 46%);
|
||||
--gray-700: hsl(210, 9%, 31%);
|
||||
--gray-800: hsl(210, 10%, 23%);
|
||||
--gray-900: hsl(210, 11%, 15%);
|
||||
--primary: hsl(240, 98%, 17%);
|
||||
--secondary: hsl(210, 7%, 46%);
|
||||
--success: hsl(120, 32%, 39%);
|
||||
--info: hsl(207, 49%, 37%);
|
||||
--warning: hsl(34, 100%, 34%);
|
||||
--danger: hsl(3, 75%, 37%);
|
||||
--light: hsl(210, 17%, 98%);
|
||||
--dark: hsl(210, 10%, 23%);
|
||||
--primary-rgb: 1, 1, 86;
|
||||
--secondary-rgb: 109, 117, 126;
|
||||
--success-rgb: 68, 131, 68;
|
||||
--info-rgb: 48, 99, 141;
|
||||
--warning-rgb: 173, 98, 0;
|
||||
--danger-rgb: 165, 31, 24;
|
||||
--light-rgb: 249, 250, 251;
|
||||
--dark-rgb: 53, 59, 65;
|
||||
--white-rgb: 255, 255, 255;
|
||||
--black-rgb: 0, 0, 0;
|
||||
--body-color-rgb: 34, 38, 42;
|
||||
--body-bg-rgb: 255, 255, 255;
|
||||
--font-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
||||
--font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
|
||||
--gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
|
||||
--body-font-family: var(--moko-cassiopeia-font-family-body, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
|
||||
--body-font-size: 1rem;
|
||||
--body-font-weight: 400;
|
||||
--body-line-height: 1.5;
|
||||
--body-color: hsl(210, 11%, 15%);
|
||||
--body-bg: hsl(0, 0%, 100%);
|
||||
--border-width: 1px;
|
||||
--border-style: solid;
|
||||
--border-color: hsl(210, 14%, 89%);
|
||||
--border-color-translucent: rgba(0, 0, 0, 0.175);
|
||||
--border-radius: 0.25rem;
|
||||
--border-radius-sm: 0.2rem;
|
||||
--border-radius-lg: 0.3rem;
|
||||
--border-radius-xl: 0.3rem;
|
||||
--border-radius-2xl: 0.3rem;
|
||||
--border-radius-pill: 50rem;
|
||||
--link-color: var(--moko-cassiopeia-color-link);
|
||||
--link-hover-color: var(--moko-cassiopeia-color-hover);
|
||||
--code-color: hsl(332, 79%, 58%);
|
||||
--highlight-bg: #fbeea8;
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
--btn-color: hsl(0, 0%, 100%);
|
||||
--btn-bg: hsl(240, 98%, 17%);
|
||||
--btn-border-color: hsl(240, 98%, 17%);
|
||||
--btn-hover-color: hsl(0, 0%, 100%);
|
||||
--btn-hover-bg: #010149;
|
||||
--btn-hover-border-color: #010145;
|
||||
--btn-focus-shadow-rgb: 39, 39, 111;
|
||||
--btn-active-color: hsl(0, 0%, 100%);
|
||||
--btn-active-bg: #010145;
|
||||
--btn-active-border-color: #010141;
|
||||
--btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
||||
--btn-disabled-color: hsl(0, 0%, 100%);
|
||||
--btn-disabled-bg: hsl(240, 98%, 17%);
|
||||
--btn-disabled-border-color: hsl(240, 98%, 17%);
|
||||
}
|
||||
|
||||
.btn-secondary {
|
||||
--btn-color: --nav-text-color;
|
||||
--btn-bg: --nav-bg-color;
|
||||
--btn-border-color: hsl(210, 7%, 46%);
|
||||
--btn-hover-color: hsl(0, 0%, 100%);
|
||||
--btn-hover-bg: #5d636b;
|
||||
--btn-hover-border-color: #575e65;
|
||||
--btn-focus-shadow-rgb: gray;
|
||||
--btn-active-color: hsl(0, 0%, 100%);
|
||||
--btn-active-bg: #575e65;
|
||||
--btn-active-border-color: #52585f;
|
||||
--btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
||||
--btn-disabled-color: hsl(0, 0%, 100%);
|
||||
--btn-disabled-bg: hsl(210, 7%, 46%);
|
||||
--btn-disabled-border-color: hsl(210, 7%, 46%);
|
||||
}
|
||||
|
||||
.btn-success {
|
||||
--btn-color: hsl(0, 0%, 100%);
|
||||
--btn-bg: hsl(120, 32%, 39%);
|
||||
--btn-border-color: hsl(120, 32%, 39%);
|
||||
--btn-hover-color: hsl(0, 0%, 100%);
|
||||
--btn-hover-bg: #3a6f3a;
|
||||
--btn-hover-border-color: #366936;
|
||||
--btn-focus-shadow-rgb: 96, 150, 96;
|
||||
--btn-active-color: hsl(0, 0%, 100%);
|
||||
--btn-active-bg: #366936;
|
||||
--btn-active-border-color: #336233;
|
||||
--btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
||||
--btn-disabled-color: hsl(0, 0%, 100%);
|
||||
--btn-disabled-bg: hsl(120, 32%, 39%);
|
||||
--btn-disabled-border-color: hsl(120, 32%, 39%);
|
||||
}
|
||||
|
||||
.btn-info {
|
||||
--btn-color: hsl(0, 0%, 100%);
|
||||
--btn-bg: hsl(207, 49%, 37%);
|
||||
--btn-border-color: hsl(207, 49%, 37%);
|
||||
--btn-hover-color: hsl(0, 0%, 100%);
|
||||
--btn-hover-bg: #295478;
|
||||
--btn-hover-border-color: #264f71;
|
||||
--btn-focus-shadow-rgb: 79, 122, 158;
|
||||
--btn-active-color: hsl(0, 0%, 100%);
|
||||
--btn-active-bg: #264f71;
|
||||
--btn-active-border-color: #244a6a;
|
||||
--btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
||||
--btn-disabled-color: hsl(0, 0%, 100%);
|
||||
--btn-disabled-bg: hsl(207, 49%, 37%);
|
||||
--btn-disabled-border-color: hsl(207, 49%, 37%);
|
||||
}
|
||||
|
||||
.btn-warning {
|
||||
--btn-color: hsl(0, 0%, 100%);
|
||||
--btn-bg: hsl(34, 100%, 34%);
|
||||
--btn-border-color: hsl(34, 100%, 34%);
|
||||
--btn-hover-color: hsl(0, 0%, 100%);
|
||||
--btn-hover-bg: #935300;
|
||||
--btn-hover-border-color: #8a4e00;
|
||||
--btn-focus-shadow-rgb: 185, 122, 38;
|
||||
--btn-active-color: hsl(0, 0%, 100%);
|
||||
--btn-active-bg: #8a4e00;
|
||||
--btn-active-border-color: #824a00;
|
||||
--btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
||||
--btn-disabled-color: hsl(0, 0%, 100%);
|
||||
--btn-disabled-bg: hsl(34, 100%, 34%);
|
||||
--btn-disabled-border-color: hsl(34, 100%, 34%);
|
||||
}
|
||||
|
||||
.btn-danger {
|
||||
--btn-color: hsl(0, 0%, 100%);
|
||||
--btn-bg: hsl(3, 75%, 37%);
|
||||
--btn-border-color: hsl(3, 75%, 37%);
|
||||
--btn-hover-color: hsl(0, 0%, 100%);
|
||||
--btn-hover-bg: #8c1a14;
|
||||
--btn-hover-border-color: #841913;
|
||||
--btn-focus-shadow-rgb: 179, 65, 59;
|
||||
--btn-active-color: hsl(0, 0%, 100%);
|
||||
--btn-active-bg: #841913;
|
||||
--btn-active-border-color: #7c1712;
|
||||
--btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
||||
--btn-disabled-color: hsl(0, 0%, 100%);
|
||||
--btn-disabled-bg: hsl(3, 75%, 37%);
|
||||
--btn-disabled-border-color: hsl(3, 75%, 37%);
|
||||
}
|
||||
|
||||
.btn-light {
|
||||
--btn-color: hsl(0, 0%, 0%);
|
||||
--btn-bg: hsl(210, 17%, 98%);
|
||||
--btn-border-color: hsl(210, 17%, 98%);
|
||||
--btn-hover-color: hsl(0, 0%, 0%);
|
||||
--btn-hover-bg: #d4d5d5;
|
||||
--btn-hover-border-color: #c7c8c9;
|
||||
--btn-focus-shadow-rgb: 212, 213, 213;
|
||||
--btn-active-color: hsl(0, 0%, 0%);
|
||||
--btn-active-bg: #c7c8c9;
|
||||
--btn-active-border-color: #bbbcbc;
|
||||
--btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
||||
--btn-disabled-color: hsl(0, 0%, 0%);
|
||||
--btn-disabled-bg: hsl(210, 17%, 98%);
|
||||
--btn-disabled-border-color: hsl(210, 17%, 98%);
|
||||
}
|
||||
|
||||
.btn-dark {
|
||||
--btn-color: hsl(0, 0%, 100%);
|
||||
--btn-bg: hsl(210, 10%, 23%);
|
||||
--btn-border-color: hsl(210, 10%, 23%);
|
||||
--btn-hover-color: hsl(0, 0%, 100%);
|
||||
--btn-hover-bg: #53585e;
|
||||
--btn-hover-border-color: #494f54;
|
||||
--btn-focus-shadow-rgb: 83, 88, 94;
|
||||
--btn-active-color: hsl(0, 0%, 100%);
|
||||
--btn-active-bg: #5d6267;
|
||||
--btn-active-border-color: #494f54;
|
||||
--btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
||||
--btn-disabled-color: hsl(0, 0%, 100%);
|
||||
--btn-disabled-bg: hsl(210, 10%, 23%);
|
||||
--btn-disabled-border-color: hsl(210, 10%, 23%);
|
||||
}
|
||||
|
||||
.btn-outline-primary {
|
||||
--btn-color: hsl(240, 98%, 17%);
|
||||
--btn-border-color: hsl(240, 98%, 17%);
|
||||
--btn-hover-color: hsl(0, 0%, 100%);
|
||||
--btn-hover-bg: hsl(240, 98%, 17%);
|
||||
--btn-hover-border-color: hsl(240, 98%, 17%);
|
||||
--btn-focus-shadow-rgb: 1, 1, 86;
|
||||
--btn-active-color: hsl(0, 0%, 100%);
|
||||
--btn-active-bg: hsl(240, 98%, 17%);
|
||||
--btn-active-border-color: hsl(240, 98%, 17%);
|
||||
--btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
||||
--btn-disabled-color: hsl(240, 98%, 17%);
|
||||
--btn-disabled-bg: transparent;
|
||||
--btn-disabled-border-color: hsl(240, 98%, 17%);
|
||||
--gradient: none;
|
||||
}
|
||||
|
||||
.btn-outline-secondary {
|
||||
--btn-color: hsl(210, 7%, 46%);
|
||||
--btn-border-color: hsl(210, 7%, 46%);
|
||||
--btn-hover-color: hsl(0, 0%, 100%);
|
||||
--btn-hover-bg: hsl(210, 7%, 46%);
|
||||
--btn-hover-border-color: hsl(210, 7%, 46%);
|
||||
--btn-focus-shadow-rgb: 109, 117, 126;
|
||||
--btn-active-color: hsl(0, 0%, 100%);
|
||||
--btn-active-bg: hsl(210, 7%, 46%);
|
||||
--btn-active-border-color: hsl(210, 7%, 46%);
|
||||
--btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
||||
--btn-disabled-color: hsl(210, 7%, 46%);
|
||||
--btn-disabled-bg: transparent;
|
||||
--btn-disabled-border-color: hsl(210, 7%, 46%);
|
||||
--gradient: none;
|
||||
}
|
||||
|
||||
.btn-outline-success {
|
||||
--btn-color: hsl(120, 32%, 39%);
|
||||
--btn-border-color: hsl(120, 32%, 39%);
|
||||
--btn-hover-color: hsl(0, 0%, 100%);
|
||||
--btn-hover-bg: hsl(120, 32%, 39%);
|
||||
--btn-hover-border-color: hsl(120, 32%, 39%);
|
||||
--btn-focus-shadow-rgb: 68, 131, 68;
|
||||
--btn-active-color: hsl(0, 0%, 100%);
|
||||
--btn-active-bg: hsl(120, 32%, 39%);
|
||||
--btn-active-border-color: hsl(120, 32%, 39%);
|
||||
--btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
||||
--btn-disabled-color: hsl(120, 32%, 39%);
|
||||
--btn-disabled-bg: transparent;
|
||||
--btn-disabled-border-color: hsl(120, 32%, 39%);
|
||||
--gradient: none;
|
||||
}
|
||||
|
||||
.btn-outline-info {
|
||||
--btn-color: hsl(207, 49%, 37%);
|
||||
--btn-border-color: hsl(207, 49%, 37%);
|
||||
--btn-hover-color: hsl(0, 0%, 100%);
|
||||
--btn-hover-bg: hsl(207, 49%, 37%);
|
||||
--btn-hover-border-color: hsl(207, 49%, 37%);
|
||||
--btn-focus-shadow-rgb: 48, 99, 141;
|
||||
--btn-active-color: hsl(0, 0%, 100%);
|
||||
--btn-active-bg: hsl(207, 49%, 37%);
|
||||
--btn-active-border-color: hsl(207, 49%, 37%);
|
||||
--btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
||||
--btn-disabled-color: hsl(207, 49%, 37%);
|
||||
--btn-disabled-bg: transparent;
|
||||
--btn-disabled-border-color: hsl(207, 49%, 37%);
|
||||
--gradient: none;
|
||||
}
|
||||
|
||||
.btn-outline-warning {
|
||||
--btn-color: hsl(34, 100%, 34%);
|
||||
--btn-border-color: hsl(34, 100%, 34%);
|
||||
--btn-hover-color: hsl(0, 0%, 100%);
|
||||
--btn-hover-bg: hsl(34, 100%, 34%);
|
||||
--btn-hover-border-color: hsl(34, 100%, 34%);
|
||||
--btn-focus-shadow-rgb: 173, 98, 0;
|
||||
--btn-active-color: hsl(0, 0%, 100%);
|
||||
--btn-active-bg: hsl(34, 100%, 34%);
|
||||
--btn-active-border-color: hsl(34, 100%, 34%);
|
||||
--btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
||||
--btn-disabled-color: hsl(34, 100%, 34%);
|
||||
--btn-disabled-bg: transparent;
|
||||
--btn-disabled-border-color: hsl(34, 100%, 34%);
|
||||
--gradient: none;
|
||||
}
|
||||
|
||||
.btn-outline-danger {
|
||||
--btn-color: hsl(3, 75%, 37%);
|
||||
--btn-border-color: hsl(3, 75%, 37%);
|
||||
--btn-hover-color: hsl(0, 0%, 100%);
|
||||
--btn-hover-bg: hsl(3, 75%, 37%);
|
||||
--btn-hover-border-color: hsl(3, 75%, 37%);
|
||||
--btn-focus-shadow-rgb: 165, 31, 24;
|
||||
--btn-active-color: hsl(0, 0%, 100%);
|
||||
--btn-active-bg: hsl(3, 75%, 37%);
|
||||
--btn-active-border-color: hsl(3, 75%, 37%);
|
||||
--btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
||||
--btn-disabled-color: hsl(3, 75%, 37%);
|
||||
--btn-disabled-bg: transparent;
|
||||
--btn-disabled-border-color: hsl(3, 75%, 37%);
|
||||
--gradient: none;
|
||||
}
|
||||
|
||||
.btn-outline-light {
|
||||
--btn-color: hsl(210, 17%, 98%);
|
||||
--btn-border-color: hsl(210, 17%, 98%);
|
||||
--btn-hover-color: hsl(0, 0%, 0%);
|
||||
--btn-hover-bg: hsl(210, 17%, 98%);
|
||||
--btn-hover-border-color: hsl(210, 17%, 98%);
|
||||
--btn-focus-shadow-rgb: 249, 250, 251;
|
||||
--btn-active-color: hsl(0, 0%, 0%);
|
||||
--btn-active-bg: hsl(210, 17%, 98%);
|
||||
--btn-active-border-color: hsl(210, 17%, 98%);
|
||||
--btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
||||
--btn-disabled-color: hsl(210, 17%, 98%);
|
||||
--btn-disabled-bg: transparent;
|
||||
--btn-disabled-border-color: hsl(210, 17%, 98%);
|
||||
--gradient: none;
|
||||
}
|
||||
|
||||
.btn-outline-dark {
|
||||
--btn-color: hsl(210, 10%, 23%);
|
||||
--btn-border-color: hsl(210, 10%, 23%);
|
||||
--btn-hover-color: hsl(0, 0%, 100%);
|
||||
--btn-hover-bg: hsl(210, 10%, 23%);
|
||||
--btn-hover-border-color: hsl(210, 10%, 23%);
|
||||
--btn-focus-shadow-rgb: 53, 59, 65;
|
||||
--btn-active-color: hsl(0, 0%, 100%);
|
||||
--btn-active-bg: hsl(210, 10%, 23%);
|
||||
--btn-active-border-color: hsl(210, 10%, 23%);
|
||||
--btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
||||
--btn-disabled-color: hsl(210, 10%, 23%);
|
||||
--btn-disabled-bg: transparent;
|
||||
--btn-disabled-border-color: hsl(210, 10%, 23%);
|
||||
--gradient: none;
|
||||
}
|
||||
|
||||
.btn-link {
|
||||
--btn-font-weight: 400;
|
||||
--btn-color: var(--link-color);
|
||||
--btn-bg: transparent;
|
||||
--btn-border-color: transparent;
|
||||
--btn-hover-color: var(--link-hover-color);
|
||||
--btn-hover-border-color: transparent;
|
||||
--btn-active-color: var(--link-hover-color);
|
||||
--btn-active-border-color: transparent;
|
||||
--btn-disabled-color: hsl(210, 7%, 46%);
|
||||
--btn-disabled-border-color: transparent;
|
||||
--btn-box-shadow: none;
|
||||
--btn-focus-shadow-rgb: 39, 39, 111;
|
||||
text-decoration: underline;
|
||||
}
|
||||
.btn-link:focus-visible {
|
||||
color: var(--btn-color);
|
||||
}
|
||||
.btn-link:hover {
|
||||
color: var(--btn-hover-color);
|
||||
}
|
||||
|
||||
.btn-lg, .btn-group-lg > .btn {
|
||||
--btn-padding-y: 0.5rem;
|
||||
--btn-padding-x: 1rem;
|
||||
--btn-font-size: 1.25rem;
|
||||
--btn-border-radius: 0.3rem;
|
||||
}
|
||||
|
||||
.btn-sm, .btn-group-sm > .btn {
|
||||
--btn-padding-y: 0.25rem;
|
||||
--btn-padding-x: 0.5rem;
|
||||
--btn-font-size: 0.875rem;
|
||||
--btn-border-radius: 0.2rem;
|
||||
}
|
||||
@@ -0,0 +1,440 @@
|
||||
:root, [data-bs-theme="light"] {
|
||||
--moko-cassiopeia-color-primary: #112855;
|
||||
--moko-cassiopeia-color-link: #224FAA;
|
||||
--moko-cassiopeia-color-hover: #224FAA;
|
||||
--moko-cassiopeia-header-background-image: url('../../../../../../media/templates/site/moko-cassiopeia/images/bg.svg');
|
||||
--moko-cassiopeia-header-background-position: auto;
|
||||
--moko-cassiopeia-header-background-attachment: fixed;
|
||||
--moko-cassiopeia-header-background-repeat: repeat;
|
||||
--moko-cassiopeia-header-background-size: auto;
|
||||
--nav-text-color: white;
|
||||
--nav-bg-color: #224FAA;
|
||||
--accent-color-primary: #3f8ff0;
|
||||
--accent-color-secondary: #3f8ff0;
|
||||
--border: 5px;
|
||||
--mainmenu-nav-link-color: white;
|
||||
|
||||
--blue: #010156;
|
||||
--black: #000;
|
||||
--indigo: #6812f3;
|
||||
--purple: #6f42c2;
|
||||
--pink: #e93f8e;
|
||||
--red: #a51f18;
|
||||
--orange: #fd7e17;
|
||||
--yellow: #ad6200;
|
||||
--green: #448344;
|
||||
--teal: #5abfdd;
|
||||
--cyan: #30638d;
|
||||
--white: #fff;
|
||||
--gray-100: #f9fafb;
|
||||
--gray-200: #eaedf0;
|
||||
--gray-300: #dfe3e7;
|
||||
--gray-400: #ced4da;
|
||||
--gray-500: #adb5bd;
|
||||
--gray-600: #6d757e;
|
||||
--gray-700: #484f56;
|
||||
--gray-800: #353b41;
|
||||
--gray-900: #22262a;
|
||||
--primary: #010156;
|
||||
--secondary: #6d757e;
|
||||
--success: #448344;
|
||||
--info: #30638d;
|
||||
--warning: #ad6200;
|
||||
--danger: #a51f18;
|
||||
--light: #f9fafb;
|
||||
--dark: #353b41;
|
||||
--primary-rgb: 1, 1, 86;
|
||||
--secondary-rgb: 109, 117, 126;
|
||||
--success-rgb: 68, 131, 68;
|
||||
--info-rgb: 48, 99, 141;
|
||||
--warning-rgb: 173, 98, 0;
|
||||
--danger-rgb: 165, 31, 24;
|
||||
--light-rgb: 249, 250, 251;
|
||||
--dark-rgb: 53, 59, 65;
|
||||
--primary-text-emphasis: #002;
|
||||
--secondary-text-emphasis: #2c2f32;
|
||||
--success-text-emphasis: #1b351b;
|
||||
--info-text-emphasis: #132838;
|
||||
--warning-text-emphasis: #452700;
|
||||
--danger-text-emphasis: #420c09;
|
||||
--light-text-emphasis: #484f56;
|
||||
--dark-text-emphasis: #484f56;
|
||||
--primary-bg-subtle: #ccd;
|
||||
--secondary-bg-subtle: #e2e3e5;
|
||||
--success-bg-subtle: #dae6da;
|
||||
--info-bg-subtle: #d6e0e8;
|
||||
--warning-bg-subtle: #efe0cc;
|
||||
--danger-bg-subtle: #edd2d1;
|
||||
--light-bg-subtle: #fcfcfd;
|
||||
--dark-bg-subtle: #ced4da;
|
||||
--primary-border-subtle: #99b;
|
||||
--secondary-border-subtle: #c5c8cb;
|
||||
--success-border-subtle: #b4ceb4;
|
||||
--info-border-subtle: #acc1d1;
|
||||
--warning-border-subtle: #dec099;
|
||||
--danger-border-subtle: #dba5a2;
|
||||
--light-border-subtle: #eaedf0;
|
||||
--dark-border-subtle: #adb5bd;
|
||||
--white-rgb: 255, 255, 255;
|
||||
--black-rgb: 0, 0, 0;
|
||||
--font-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
||||
--font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
|
||||
--gradient: linear-gradient(180deg, #ffffff26, #fff0);
|
||||
--body-font-family: var(--moko-cassiopeia-font-family-body, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
|
||||
--body-font-size: 1rem;
|
||||
--body-font-weight: 400;
|
||||
--body-line-height: 1.5;
|
||||
--body-color: #22262a;
|
||||
--body-color-rgb: 34, 38, 42;
|
||||
--body-bg: #fff;
|
||||
--body-bg-rgb: 255, 255, 255;
|
||||
--emphasis-color: #000;
|
||||
--emphasis-color-rgb: 0, 0, 0;
|
||||
--secondary-color: #22262abf;
|
||||
--secondary-color-rgb: 34, 38, 42;
|
||||
--secondary-bg: #eaedf0;
|
||||
--secondary-bg-rgb: 234, 237, 240;
|
||||
--tertiary-color: #22262a80;
|
||||
--tertiary-color-rgb: 34, 38, 42;
|
||||
--tertiary-bg: #f9fafb;
|
||||
--tertiary-bg-rgb: 249, 250, 251;
|
||||
--heading-color: inherit;
|
||||
--link-color: #224faa;
|
||||
--link-color-rgb: 34, 79, 170;
|
||||
--link-decoration: underline;
|
||||
--link-hover-color: #424077;
|
||||
--link-hover-color-rgb: 66, 64, 119;
|
||||
--code-color: #e93f8e;
|
||||
--highlight-color: #22262a;
|
||||
--highlight-bg: #fbeea8;
|
||||
--border-width: 1px;
|
||||
--border-style: solid;
|
||||
--border-color: #dfe3e7;
|
||||
--border-color-translucent: #0000002d;
|
||||
--border-radius: .25rem;
|
||||
--border-radius-sm: .2rem;
|
||||
--border-radius-lg: .3rem;
|
||||
--border-radius-xl: .3rem;
|
||||
--border-radius-xxl: 2rem;
|
||||
--border-radius-2xl: var(--border-radius-xxl);
|
||||
--border-radius-pill: 50rem;
|
||||
--box-shadow: 0 .5rem 1rem #00000026;
|
||||
--box-shadow-sm: 0 .125rem .25rem #00000013;
|
||||
--box-shadow-lg: 0 1rem 3rem #0000002d;
|
||||
--box-shadow-inset: inset 0 1px 2px #00000013;
|
||||
--focus-ring-width: .25rem;
|
||||
--focus-ring-opacity: .25;
|
||||
--focus-ring-color: #01015640;
|
||||
--form-valid-color: #448344;
|
||||
--form-valid-border-color: #448344;
|
||||
--form-invalid-color: #a51f18;
|
||||
--form-invalid-border-color: #a51f18;
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
--btn-color: hsl(0, 0%, 100%);
|
||||
--btn-bg: hsl(240, 98%, 17%);
|
||||
--btn-border-color: hsl(240, 98%, 17%);
|
||||
--btn-hover-color: hsl(0, 0%, 100%);
|
||||
--btn-hover-bg: #010149;
|
||||
--btn-hover-border-color: #010145;
|
||||
--btn-focus-shadow-rgb: 39, 39, 111;
|
||||
--btn-active-color: hsl(0, 0%, 100%);
|
||||
--btn-active-bg: #010145;
|
||||
--btn-active-border-color: #010141;
|
||||
--btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
||||
--btn-disabled-color: hsl(0, 0%, 100%);
|
||||
--btn-disabled-bg: hsl(240, 98%, 17%);
|
||||
--btn-disabled-border-color: hsl(240, 98%, 17%);
|
||||
}
|
||||
|
||||
.btn-secondary {
|
||||
--btn-color: --nav-text-color;
|
||||
--btn-bg: --nav-bg-color;
|
||||
--btn-border-color: hsl(210, 7%, 46%);
|
||||
--btn-hover-color: hsl(0, 0%, 100%);
|
||||
--btn-hover-bg: #5d636b;
|
||||
--btn-hover-border-color: #575e65;
|
||||
--btn-focus-shadow-rgb: gray;
|
||||
--btn-active-color: hsl(0, 0%, 100%);
|
||||
--btn-active-bg: #575e65;
|
||||
--btn-active-border-color: #52585f;
|
||||
--btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
||||
--btn-disabled-color: hsl(0, 0%, 100%);
|
||||
--btn-disabled-bg: hsl(210, 7%, 46%);
|
||||
--btn-disabled-border-color: hsl(210, 7%, 46%);
|
||||
}
|
||||
|
||||
.btn-success {
|
||||
--btn-color: hsl(0, 0%, 100%);
|
||||
--btn-bg: hsl(120, 32%, 39%);
|
||||
--btn-border-color: hsl(120, 32%, 39%);
|
||||
--btn-hover-color: hsl(0, 0%, 100%);
|
||||
--btn-hover-bg: #3a6f3a;
|
||||
--btn-hover-border-color: #366936;
|
||||
--btn-focus-shadow-rgb: 96, 150, 96;
|
||||
--btn-active-color: hsl(0, 0%, 100%);
|
||||
--btn-active-bg: #366936;
|
||||
--btn-active-border-color: #336233;
|
||||
--btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
||||
--btn-disabled-color: hsl(0, 0%, 100%);
|
||||
--btn-disabled-bg: hsl(120, 32%, 39%);
|
||||
--btn-disabled-border-color: hsl(120, 32%, 39%);
|
||||
}
|
||||
|
||||
.btn-info {
|
||||
--btn-color: hsl(0, 0%, 100%);
|
||||
--btn-bg: hsl(207, 49%, 37%);
|
||||
--btn-border-color: hsl(207, 49%, 37%);
|
||||
--btn-hover-color: hsl(0, 0%, 100%);
|
||||
--btn-hover-bg: #295478;
|
||||
--btn-hover-border-color: #264f71;
|
||||
--btn-focus-shadow-rgb: 79, 122, 158;
|
||||
--btn-active-color: hsl(0, 0%, 100%);
|
||||
--btn-active-bg: #264f71;
|
||||
--btn-active-border-color: #244a6a;
|
||||
--btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
||||
--btn-disabled-color: hsl(0, 0%, 100%);
|
||||
--btn-disabled-bg: hsl(207, 49%, 37%);
|
||||
--btn-disabled-border-color: hsl(207, 49%, 37%);
|
||||
}
|
||||
|
||||
.btn-warning {
|
||||
--btn-color: hsl(0, 0%, 100%);
|
||||
--btn-bg: hsl(34, 100%, 34%);
|
||||
--btn-border-color: hsl(34, 100%, 34%);
|
||||
--btn-hover-color: hsl(0, 0%, 100%);
|
||||
--btn-hover-bg: #935300;
|
||||
--btn-hover-border-color: #8a4e00;
|
||||
--btn-focus-shadow-rgb: 185, 122, 38;
|
||||
--btn-active-color: hsl(0, 0%, 100%);
|
||||
--btn-active-bg: #8a4e00;
|
||||
--btn-active-border-color: #824a00;
|
||||
--btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
||||
--btn-disabled-color: hsl(0, 0%, 100%);
|
||||
--btn-disabled-bg: hsl(34, 100%, 34%);
|
||||
--btn-disabled-border-color: hsl(34, 100%, 34%);
|
||||
}
|
||||
|
||||
.btn-danger {
|
||||
--btn-color: hsl(0, 0%, 100%);
|
||||
--btn-bg: hsl(3, 75%, 37%);
|
||||
--btn-border-color: hsl(3, 75%, 37%);
|
||||
--btn-hover-color: hsl(0, 0%, 100%);
|
||||
--btn-hover-bg: #8c1a14;
|
||||
--btn-hover-border-color: #841913;
|
||||
--btn-focus-shadow-rgb: 179, 65, 59;
|
||||
--btn-active-color: hsl(0, 0%, 100%);
|
||||
--btn-active-bg: #841913;
|
||||
--btn-active-border-color: #7c1712;
|
||||
--btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
||||
--btn-disabled-color: hsl(0, 0%, 100%);
|
||||
--btn-disabled-bg: hsl(3, 75%, 37%);
|
||||
--btn-disabled-border-color: hsl(3, 75%, 37%);
|
||||
}
|
||||
|
||||
.btn-light {
|
||||
--btn-color: hsl(0, 0%, 0%);
|
||||
--btn-bg: hsl(210, 17%, 98%);
|
||||
--btn-border-color: hsl(210, 17%, 98%);
|
||||
--btn-hover-color: hsl(0, 0%, 0%);
|
||||
--btn-hover-bg: #d4d5d5;
|
||||
--btn-hover-border-color: #c7c8c9;
|
||||
--btn-focus-shadow-rgb: 212, 213, 213;
|
||||
--btn-active-color: hsl(0, 0%, 0%);
|
||||
--btn-active-bg: #c7c8c9;
|
||||
--btn-active-border-color: #bbbcbc;
|
||||
--btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
||||
--btn-disabled-color: hsl(0, 0%, 0%);
|
||||
--btn-disabled-bg: hsl(210, 17%, 98%);
|
||||
--btn-disabled-border-color: hsl(210, 17%, 98%);
|
||||
}
|
||||
|
||||
.btn-dark {
|
||||
--btn-color: hsl(0, 0%, 100%);
|
||||
--btn-bg: hsl(210, 10%, 23%);
|
||||
--btn-border-color: hsl(210, 10%, 23%);
|
||||
--btn-hover-color: hsl(0, 0%, 100%);
|
||||
--btn-hover-bg: #53585e;
|
||||
--btn-hover-border-color: #494f54;
|
||||
--btn-focus-shadow-rgb: 83, 88, 94;
|
||||
--btn-active-color: hsl(0, 0%, 100%);
|
||||
--btn-active-bg: #5d6267;
|
||||
--btn-active-border-color: #494f54;
|
||||
--btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
||||
--btn-disabled-color: hsl(0, 0%, 100%);
|
||||
--btn-disabled-bg: hsl(210, 10%, 23%);
|
||||
--btn-disabled-border-color: hsl(210, 10%, 23%);
|
||||
}
|
||||
|
||||
.btn-outline-primary {
|
||||
--btn-color: hsl(240, 98%, 17%);
|
||||
--btn-border-color: hsl(240, 98%, 17%);
|
||||
--btn-hover-color: hsl(0, 0%, 100%);
|
||||
--btn-hover-bg: hsl(240, 98%, 17%);
|
||||
--btn-hover-border-color: hsl(240, 98%, 17%);
|
||||
--btn-focus-shadow-rgb: 1, 1, 86;
|
||||
--btn-active-color: hsl(0, 0%, 100%);
|
||||
--btn-active-bg: hsl(240, 98%, 17%);
|
||||
--btn-active-border-color: hsl(240, 98%, 17%);
|
||||
--btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
||||
--btn-disabled-color: hsl(240, 98%, 17%);
|
||||
--btn-disabled-bg: transparent;
|
||||
--btn-disabled-border-color: hsl(240, 98%, 17%);
|
||||
--gradient: none;
|
||||
}
|
||||
|
||||
.btn-outline-secondary {
|
||||
--btn-color: hsl(210, 7%, 46%);
|
||||
--btn-border-color: hsl(210, 7%, 46%);
|
||||
--btn-hover-color: hsl(0, 0%, 100%);
|
||||
--btn-hover-bg: hsl(210, 7%, 46%);
|
||||
--btn-hover-border-color: hsl(210, 7%, 46%);
|
||||
--btn-focus-shadow-rgb: 109, 117, 126;
|
||||
--btn-active-color: hsl(0, 0%, 100%);
|
||||
--btn-active-bg: hsl(210, 7%, 46%);
|
||||
--btn-active-border-color: hsl(210, 7%, 46%);
|
||||
--btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
||||
--btn-disabled-color: hsl(210, 7%, 46%);
|
||||
--btn-disabled-bg: transparent;
|
||||
--btn-disabled-border-color: hsl(210, 7%, 46%);
|
||||
--gradient: none;
|
||||
}
|
||||
|
||||
.btn-outline-success {
|
||||
--btn-color: hsl(120, 32%, 39%);
|
||||
--btn-border-color: hsl(120, 32%, 39%);
|
||||
--btn-hover-color: hsl(0, 0%, 100%);
|
||||
--btn-hover-bg: hsl(120, 32%, 39%);
|
||||
--btn-hover-border-color: hsl(120, 32%, 39%);
|
||||
--btn-focus-shadow-rgb: 68, 131, 68;
|
||||
--btn-active-color: hsl(0, 0%, 100%);
|
||||
--btn-active-bg: hsl(120, 32%, 39%);
|
||||
--btn-active-border-color: hsl(120, 32%, 39%);
|
||||
--btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
||||
--btn-disabled-color: hsl(120, 32%, 39%);
|
||||
--btn-disabled-bg: transparent;
|
||||
--btn-disabled-border-color: hsl(120, 32%, 39%);
|
||||
--gradient: none;
|
||||
}
|
||||
|
||||
.btn-outline-info {
|
||||
--btn-color: hsl(207, 49%, 37%);
|
||||
--btn-border-color: hsl(207, 49%, 37%);
|
||||
--btn-hover-color: hsl(0, 0%, 100%);
|
||||
--btn-hover-bg: hsl(207, 49%, 37%);
|
||||
--btn-hover-border-color: hsl(207, 49%, 37%);
|
||||
--btn-focus-shadow-rgb: 48, 99, 141;
|
||||
--btn-active-color: hsl(0, 0%, 100%);
|
||||
--btn-active-bg: hsl(207, 49%, 37%);
|
||||
--btn-active-border-color: hsl(207, 49%, 37%);
|
||||
--btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
||||
--btn-disabled-color: hsl(207, 49%, 37%);
|
||||
--btn-disabled-bg: transparent;
|
||||
--btn-disabled-border-color: hsl(207, 49%, 37%);
|
||||
--gradient: none;
|
||||
}
|
||||
|
||||
.btn-outline-warning {
|
||||
--btn-color: hsl(34, 100%, 34%);
|
||||
--btn-border-color: hsl(34, 100%, 34%);
|
||||
--btn-hover-color: hsl(0, 0%, 100%);
|
||||
--btn-hover-bg: hsl(34, 100%, 34%);
|
||||
--btn-hover-border-color: hsl(34, 100%, 34%);
|
||||
--btn-focus-shadow-rgb: 173, 98, 0;
|
||||
--btn-active-color: hsl(0, 0%, 100%);
|
||||
--btn-active-bg: hsl(34, 100%, 34%);
|
||||
--btn-active-border-color: hsl(34, 100%, 34%);
|
||||
--btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
||||
--btn-disabled-color: hsl(34, 100%, 34%);
|
||||
--btn-disabled-bg: transparent;
|
||||
--btn-disabled-border-color: hsl(34, 100%, 34%);
|
||||
--gradient: none;
|
||||
}
|
||||
|
||||
.btn-outline-danger {
|
||||
--btn-color: hsl(3, 75%, 37%);
|
||||
--btn-border-color: hsl(3, 75%, 37%);
|
||||
--btn-hover-color: hsl(0, 0%, 100%);
|
||||
--btn-hover-bg: hsl(3, 75%, 37%);
|
||||
--btn-hover-border-color: hsl(3, 75%, 37%);
|
||||
--btn-focus-shadow-rgb: 165, 31, 24;
|
||||
--btn-active-color: hsl(0, 0%, 100%);
|
||||
--btn-active-bg: hsl(3, 75%, 37%);
|
||||
--btn-active-border-color: hsl(3, 75%, 37%);
|
||||
--btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
||||
--btn-disabled-color: hsl(3, 75%, 37%);
|
||||
--btn-disabled-bg: transparent;
|
||||
--btn-disabled-border-color: hsl(3, 75%, 37%);
|
||||
--gradient: none;
|
||||
}
|
||||
|
||||
.btn-outline-light {
|
||||
--btn-color: hsl(210, 17%, 98%);
|
||||
--btn-border-color: hsl(210, 17%, 98%);
|
||||
--btn-hover-color: hsl(0, 0%, 0%);
|
||||
--btn-hover-bg: hsl(210, 17%, 98%);
|
||||
--btn-hover-border-color: hsl(210, 17%, 98%);
|
||||
--btn-focus-shadow-rgb: 249, 250, 251;
|
||||
--btn-active-color: hsl(0, 0%, 0%);
|
||||
--btn-active-bg: hsl(210, 17%, 98%);
|
||||
--btn-active-border-color: hsl(210, 17%, 98%);
|
||||
--btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
||||
--btn-disabled-color: hsl(210, 17%, 98%);
|
||||
--btn-disabled-bg: transparent;
|
||||
--btn-disabled-border-color: hsl(210, 17%, 98%);
|
||||
--gradient: none;
|
||||
}
|
||||
|
||||
.btn-outline-dark {
|
||||
--btn-color: hsl(210, 10%, 23%);
|
||||
--btn-border-color: hsl(210, 10%, 23%);
|
||||
--btn-hover-color: hsl(0, 0%, 100%);
|
||||
--btn-hover-bg: hsl(210, 10%, 23%);
|
||||
--btn-hover-border-color: hsl(210, 10%, 23%);
|
||||
--btn-focus-shadow-rgb: 53, 59, 65;
|
||||
--btn-active-color: hsl(0, 0%, 100%);
|
||||
--btn-active-bg: hsl(210, 10%, 23%);
|
||||
--btn-active-border-color: hsl(210, 10%, 23%);
|
||||
--btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
|
||||
--btn-disabled-color: hsl(210, 10%, 23%);
|
||||
--btn-disabled-bg: transparent;
|
||||
--btn-disabled-border-color: hsl(210, 10%, 23%);
|
||||
--gradient: none;
|
||||
}
|
||||
|
||||
.btn-link {
|
||||
--btn-font-weight: 400;
|
||||
--btn-color: var(--link-color);
|
||||
--btn-bg: transparent;
|
||||
--btn-border-color: transparent;
|
||||
--btn-hover-color: var(--link-hover-color);
|
||||
--btn-hover-border-color: transparent;
|
||||
--btn-active-color: var(--link-hover-color);
|
||||
--btn-active-border-color: transparent;
|
||||
--btn-disabled-color: hsl(210, 7%, 46%);
|
||||
--btn-disabled-border-color: transparent;
|
||||
--btn-box-shadow: none;
|
||||
--btn-focus-shadow-rgb: 39, 39, 111;
|
||||
text-decoration: underline;
|
||||
}
|
||||
.btn-link:focus-visible {
|
||||
color: var(--btn-color);
|
||||
}
|
||||
.btn-link:hover {
|
||||
color: var(--btn-hover-color);
|
||||
}
|
||||
|
||||
.btn-lg, .btn-group-lg > .btn {
|
||||
--btn-padding-y: 0.5rem;
|
||||
--btn-padding-x: 1rem;
|
||||
--btn-font-size: 1.25rem;
|
||||
--btn-border-radius: 0.3rem;
|
||||
}
|
||||
|
||||
.btn-sm, .btn-group-sm > .btn {
|
||||
--btn-padding-y: 0.25rem;
|
||||
--btn-padding-x: 0.5rem;
|
||||
--btn-font-size: 0.875rem;
|
||||
--btn-border-radius: 0.2rem;
|
||||
}
|
||||
@@ -0,0 +1,126 @@
|
||||
@font-face {
|
||||
font-family: "Roboto";
|
||||
src: url("../../../../../vendor/roboto-fontface/fonts/roboto/Roboto-Regular.woff2") format("woff2"), url("../../../../../vendor/roboto-fontface/fonts/roboto/Roboto-Regular.woff") format("woff");
|
||||
font-weight: 400;
|
||||
font-style: normal;
|
||||
}
|
||||
@font-face {
|
||||
font-family: "Roboto-Regular";
|
||||
src: url("../../../../../vendor/roboto-fontface/fonts/roboto/Roboto-Regular.woff2") format("woff2"), url("../../../../../vendor/roboto-fontface/fonts/roboto/Roboto-Regular.woff") format("woff");
|
||||
}
|
||||
@font-face {
|
||||
font-family: "Roboto";
|
||||
src: url("../../../../../vendor/roboto-fontface/fonts/roboto/Roboto-RegularItalic.woff2") format("woff2"), url("../../../../../vendor/roboto-fontface/fonts/roboto/Roboto-RegularItalic.woff") format("woff");
|
||||
font-weight: 400;
|
||||
font-style: italic;
|
||||
}
|
||||
@font-face {
|
||||
font-family: "Roboto-RegularItalic";
|
||||
src: url("../../../../../vendor/roboto-fontface/fonts/roboto/Roboto-RegularItalic.woff2") format("woff2"), url("../../../../../vendor/roboto-fontface/fonts/roboto/Roboto-RegularItalic.woff") format("woff");
|
||||
}
|
||||
@font-face {
|
||||
font-family: "Roboto";
|
||||
src: url("../../../../../vendor/roboto-fontface/fonts/roboto/Roboto-Light.woff2") format("woff2"), url("../../../../../vendor/roboto-fontface/fonts/roboto/Roboto-Light.woff") format("woff");
|
||||
font-weight: 300;
|
||||
font-style: normal;
|
||||
}
|
||||
@font-face {
|
||||
font-family: "Roboto-Light";
|
||||
src: url("../../../../../vendor/roboto-fontface/fonts/roboto/Roboto-Light.woff2") format("woff2"), url("../../../../../vendor/roboto-fontface/fonts/roboto/Roboto-Light.woff") format("woff");
|
||||
}
|
||||
@font-face {
|
||||
font-family: "Roboto";
|
||||
src: url("../../../../../vendor/roboto-fontface/fonts/roboto/Roboto-LightItalic.woff2") format("woff2"), url("../../../../../vendor/roboto-fontface/fonts/roboto/Roboto-LightItalic.woff") format("woff");
|
||||
font-weight: 300;
|
||||
font-style: italic;
|
||||
}
|
||||
@font-face {
|
||||
font-family: "Roboto-LightItalic";
|
||||
src: url("../../../../../vendor/roboto-fontface/fonts/roboto/Roboto-LightItalic.woff2") format("woff2"), url("../../../../../vendor/roboto-fontface/fonts/roboto/Roboto-LightItalic.woff") format("woff");
|
||||
}
|
||||
@font-face {
|
||||
font-family: "Roboto";
|
||||
src: url("../../../../../vendor/roboto-fontface/fonts/roboto/Roboto-Thin.woff2") format("woff2"), url("../../../../../vendor/roboto-fontface/fonts/roboto/Roboto-Thin.woff") format("woff");
|
||||
font-weight: 100;
|
||||
font-style: normal;
|
||||
}
|
||||
@font-face {
|
||||
font-family: "Roboto-Thin";
|
||||
src: url("../../../../../vendor/roboto-fontface/fonts/roboto/Roboto-Thin.woff2") format("woff2"), url("../../../../../vendor/roboto-fontface/fonts/roboto/Roboto-Thin.woff") format("woff");
|
||||
}
|
||||
@font-face {
|
||||
font-family: "Roboto";
|
||||
src: url("../../../../../vendor/roboto-fontface/fonts/roboto/Roboto-ThinItalic.woff2") format("woff2"), url("../../../../../vendor/roboto-fontface/fonts/roboto/Roboto-ThinItalic.woff") format("woff");
|
||||
font-weight: 100;
|
||||
font-style: italic;
|
||||
}
|
||||
@font-face {
|
||||
font-family: "Roboto-ThinItalic";
|
||||
src: url("../../../../../vendor/roboto-fontface/fonts/roboto/Roboto-ThinItalic.woff2") format("woff2"), url("../../../../../vendor/roboto-fontface/fonts/roboto/Roboto-ThinItalic.woff") format("woff");
|
||||
}
|
||||
@font-face {
|
||||
font-family: "Roboto";
|
||||
src: url("../../../../../vendor/roboto-fontface/fonts/roboto/Roboto-Medium.woff2") format("woff2"), url("../../../../../vendor/roboto-fontface/fonts/roboto/Roboto-Medium.woff") format("woff");
|
||||
font-weight: 500;
|
||||
font-style: normal;
|
||||
}
|
||||
@font-face {
|
||||
font-family: "Roboto-Medium";
|
||||
src: url("../../../../../vendor/roboto-fontface/fonts/roboto/Roboto-Medium.woff2") format("woff2"), url("../../../../../vendor/roboto-fontface/fonts/roboto/Roboto-Medium.woff") format("woff");
|
||||
}
|
||||
@font-face {
|
||||
font-family: "Roboto";
|
||||
src: url("../../../../../vendor/roboto-fontface/fonts/roboto/Roboto-MediumItalic.woff2") format("woff2"), url("../../../../../vendor/roboto-fontface/fonts/roboto/Roboto-MediumItalic.woff") format("woff");
|
||||
font-weight: 500;
|
||||
font-style: italic;
|
||||
}
|
||||
@font-face {
|
||||
font-family: "Roboto-MediumItalic";
|
||||
src: url("../../../../../vendor/roboto-fontface/fonts/roboto/Roboto-MediumItalic.woff2") format("woff2"), url("../../../../../vendor/roboto-fontface/fonts/roboto/Roboto-MediumItalic.woff") format("woff");
|
||||
}
|
||||
@font-face {
|
||||
font-family: "Roboto";
|
||||
src: url("../../../../../vendor/roboto-fontface/fonts/roboto/Roboto-Bold.woff2") format("woff2"), url("../../../../../vendor/roboto-fontface/fonts/roboto/Roboto-Bold.woff") format("woff");
|
||||
font-weight: 700;
|
||||
font-style: normal;
|
||||
}
|
||||
@font-face {
|
||||
font-family: "Roboto-Bold";
|
||||
src: url("../../../../../vendor/roboto-fontface/fonts/roboto/Roboto-Bold.woff2") format("woff2"), url("../../../../../vendor/roboto-fontface/fonts/roboto/Roboto-Bold.woff") format("woff");
|
||||
}
|
||||
@font-face {
|
||||
font-family: "Roboto";
|
||||
src: url("../../../../../vendor/roboto-fontface/fonts/roboto/Roboto-BoldItalic.woff2") format("woff2"), url("../../../../../vendor/roboto-fontface/fonts/roboto/Roboto-BoldItalic.woff") format("woff");
|
||||
font-weight: 700;
|
||||
font-style: italic;
|
||||
}
|
||||
@font-face {
|
||||
font-family: "Roboto-BoldItalic";
|
||||
src: url("../../../../../vendor/roboto-fontface/fonts/roboto/Roboto-BoldItalic.woff2") format("woff2"), url("../../../../../vendor/roboto-fontface/fonts/roboto/Roboto-BoldItalic.woff") format("woff");
|
||||
}
|
||||
@font-face {
|
||||
font-family: "Roboto";
|
||||
src: url("../../../../../vendor/roboto-fontface/fonts/roboto/Roboto-Black.woff2") format("woff2"), url("../../../../../vendor/roboto-fontface/fonts/roboto/Roboto-Black.woff") format("woff");
|
||||
font-weight: 900;
|
||||
font-style: normal;
|
||||
}
|
||||
@font-face {
|
||||
font-family: "Roboto-Black";
|
||||
src: url("../../../../../vendor/roboto-fontface/fonts/roboto/Roboto-Black.woff2") format("woff2"), url("../../../../../vendor/roboto-fontface/fonts/roboto/Roboto-Black.woff") format("woff");
|
||||
}
|
||||
@font-face {
|
||||
font-family: "Roboto";
|
||||
src: url("../../../../../vendor/roboto-fontface/fonts/roboto/Roboto-BlackItalic.woff2") format("woff2"), url("../../../../../vendor/roboto-fontface/fonts/roboto/Roboto-BlackItalic.woff") format("woff");
|
||||
font-weight: 900;
|
||||
font-style: italic;
|
||||
}
|
||||
@font-face {
|
||||
font-family: "Roboto-BlackItalic";
|
||||
src: url("../../../../../vendor/roboto-fontface/fonts/roboto/Roboto-BlackItalic.woff2") format("woff2"), url("../../../../../vendor/roboto-fontface/fonts/roboto/Roboto-BlackItalic.woff") format("woff");
|
||||
}
|
||||
:root {
|
||||
--moko-cassiopeia-font-family-body: "Roboto", sans-serif;
|
||||
--moko-cassiopeia-font-family-headings: "Roboto", sans-serif;
|
||||
--moko-cassiopeia-font-weight-headings: 700;
|
||||
--moko-cassiopeia-font-weight-normal: 400;
|
||||
}
|
||||
163
media/templates/site/moko-cassiopeia/css/offline.css
Normal file
@@ -0,0 +1,163 @@
|
||||
body {
|
||||
background-image: url(../images/teaser_bg_sm.png);
|
||||
background-repeat: repeat-x;
|
||||
background-attachment: fixed;
|
||||
}
|
||||
.outer {
|
||||
position: relative;
|
||||
display: -webkit-box;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-box-direction: normal;
|
||||
-ms-flex-direction: column;
|
||||
flex-direction: column;
|
||||
-webkit-box-align: center;
|
||||
-ms-flex-align: center;
|
||||
align-items: center;
|
||||
-webkit-box-pack: center;
|
||||
-ms-flex-pack: center;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
min-height: 100vh;
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
@media only screen and (min-width: 600px) {
|
||||
.outer {
|
||||
padding: 3em 0;
|
||||
padding-bottom: 0;
|
||||
padding-top:0;
|
||||
|
||||
}
|
||||
}
|
||||
.offline-card {
|
||||
background-color:white;
|
||||
padding:1em;
|
||||
}
|
||||
@media only screen and (min-width: 600px) {
|
||||
.offline-card {
|
||||
margin: 0 5em;
|
||||
}
|
||||
}
|
||||
footer {
|
||||
padding: 0 6em;
|
||||
color: hsl(0, 0%, 100%);
|
||||
background-color: var(--moko-cassiopeia-color-primary);
|
||||
background-image: -o-linear-gradient(315deg, var(--moko-cassiopeia-color-primary) 0%, var(--moko-cassiopeia-color-hover) 100%);
|
||||
background-image: linear-gradient(135deg, var(--moko-cassiopeia-color-primary) 0%, var(--moko-cassiopeia-color-hover) 100%);
|
||||
border-radius: 5px 5px 0 0;
|
||||
}
|
||||
.footer{
|
||||
margin-top: 0;
|
||||
}
|
||||
.footer .grid-child {
|
||||
padding: 0 0.75em;
|
||||
}
|
||||
.offline-message-card {
|
||||
width: 100%;
|
||||
max-width: 30em;
|
||||
margin: 60px auto;
|
||||
background-color: hsl(0, 0%, 100%);
|
||||
border: 1px solid hsla(0, 0%, 0%, 0.1);
|
||||
border-radius: 5px;
|
||||
-webkit-box-shadow: 0 0 10px hsla(0, 0%, 0%, 0.05);
|
||||
box-shadow: 0 0 10px hsla(0, 0%, 0%, 0.05);
|
||||
}
|
||||
|
||||
.header {
|
||||
position: relative;
|
||||
padding: 1em 2em;
|
||||
margin: 0;
|
||||
color: hsl(0, 0%, 100%);
|
||||
text-align: center;
|
||||
background-color: var(--moko-cassiopeia-color-primary);
|
||||
background-image: -o-linear-gradient(315deg, var(--moko-cassiopeia-color-primary) 0%, var(--moko-cassiopeia-color-hover) 100%);
|
||||
background-image: linear-gradient(135deg, var(--moko-cassiopeia-color-primary) 0%, var(--moko-cassiopeia-color-hover) 100%);
|
||||
border-radius: 5px 5px 0 0;
|
||||
}
|
||||
[dir=rtl] .header {
|
||||
background-image: -o-linear-gradient(315deg, var(--moko-cassiopeia-color-hover) 0%, var(--moko-cassiopeia-color-primary) 100%);
|
||||
background-image: linear-gradient(135deg, var(--moko-cassiopeia-color-hover) 0%, var(--moko-cassiopeia-color-primary) 100%);
|
||||
}
|
||||
|
||||
.login {
|
||||
padding: 40px 20px 20px;
|
||||
background-color: var(--nav-bg-color);
|
||||
}
|
||||
|
||||
.form-control {
|
||||
max-width: none;
|
||||
}
|
||||
|
||||
img {
|
||||
height: auto;
|
||||
margin: 5px 0;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
form,
|
||||
fieldset {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
label {
|
||||
display: block;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
input[type=text],
|
||||
input[type=password] {
|
||||
-webkit-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
input {
|
||||
margin: 0.5em 0 1em;
|
||||
}
|
||||
.offline-card a {
|
||||
}
|
||||
.logo {
|
||||
max-width: 300px;
|
||||
max-height: 200px;
|
||||
width: auto;
|
||||
height: auto;
|
||||
}
|
||||
.offline-image {
|
||||
max-height: 300px;
|
||||
}
|
||||
#offline-login-link{
|
||||
background-image: linear-gradient(to top, rgba(255,0,0,0), rgba(255,255,255,1));
|
||||
margin: 0 5em;
|
||||
}
|
||||
.logo-icon {
|
||||
margin: 0 auto;
|
||||
width: 37px;
|
||||
height:37px;
|
||||
z-index: 1;
|
||||
padding: 12px;
|
||||
margin-top: 2px;
|
||||
background-color: hsl(0, 0%, 100%);
|
||||
border: 1px solid hsla(0, 0%, 0%, 0.75);
|
||||
border-radius: 50%;
|
||||
-webkit-box-shadow: 0 0 5px hsla(0, 0%, 0%, 0.075);
|
||||
box-shadow: 0 0 5px hsla(0, 0%, 0%, 0.075);
|
||||
-webkit-transform: translate(-50%, -50%);
|
||||
transform: translate(-50%, -50%);
|
||||
}
|
||||
|
||||
.logo-icon svg {
|
||||
display: block;
|
||||
width: 38px;
|
||||
}
|
||||
a.social-icon {
|
||||
ext-decoration:none;
|
||||
border:0;width:36px;
|
||||
height:36px;padding:2px;
|
||||
margin:5px;
|
||||
color:#000;
|
||||
border-radius:50%;background-color:#ffffff;
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
.js-stools-container-bar {
|
||||
padding: 10px 20px;
|
||||
}
|
||||
.js-stools-container-bar .btn-toolbar {
|
||||
-webkit-box-pack: end;
|
||||
-ms-flex-pack: end;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
.js-stools-container-bar .btn-toolbar > * {
|
||||
margin: 4px 0;
|
||||
-webkit-margin-end: 8px;
|
||||
margin-inline-end: 8px;
|
||||
}
|
||||
.js-stools-container-bar .btn-toolbar .js-stools-btn-clear {
|
||||
background-color: hsl(207, 49%, 37%);
|
||||
border: 0;
|
||||
}
|
||||
.js-stools-container-bar .ordering-select {
|
||||
display: -webkit-box;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.js-stools-container-filters {
|
||||
display: none;
|
||||
padding: 0 20px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.js-stools-container-filters-visible {
|
||||
display: grid;
|
||||
grid-gap: 8px;
|
||||
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
|
||||
padding: 10px;
|
||||
background-color: hsl(0, 0%, 100%);
|
||||
}
|
||||
.js-stools-container-filters > * {
|
||||
margin: 4px 0;
|
||||
-webkit-margin-end: 8px;
|
||||
margin-inline-end: 8px;
|
||||
}
|
||||
|
||||
.js-stools-field-list + .js-stools-field-list {
|
||||
-webkit-margin-start: 8px;
|
||||
margin-inline-start: 8px;
|
||||
}
|
||||
|
||||
.js-stools-field-selector .form-select {
|
||||
width: auto;
|
||||
}
|
||||
14657
media/templates/site/moko-cassiopeia/css/template-rtl.css
Normal file
15384
media/templates/site/moko-cassiopeia/css/template.css
Normal file
499
media/templates/site/moko-cassiopeia/css/vendor/choicesjs/choices.css
vendored
Normal file
@@ -0,0 +1,499 @@
|
||||
@charset "UTF-8";
|
||||
/* ===============================
|
||||
= Choices =
|
||||
=============================== */
|
||||
.choices {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
margin-bottom: 24px;
|
||||
font-size: 16px;
|
||||
}
|
||||
.choices:focus {
|
||||
outline: none;
|
||||
}
|
||||
.choices:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.choices.is-open {
|
||||
overflow: initial;
|
||||
}
|
||||
.choices.is-disabled .choices__inner,
|
||||
.choices.is-disabled .choices__input {
|
||||
background-color: #eaeaea;
|
||||
cursor: not-allowed;
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none;
|
||||
}
|
||||
.choices.is-disabled .choices__item {
|
||||
cursor: not-allowed;
|
||||
}
|
||||
.choices [hidden] {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.choices[data-type*=select-one] {
|
||||
cursor: pointer;
|
||||
}
|
||||
.choices[data-type*=select-one] .choices__inner {
|
||||
padding-bottom: 7.5px;
|
||||
}
|
||||
.choices[data-type*=select-one] .choices__input {
|
||||
display: block;
|
||||
width: 100%;
|
||||
padding: 10px;
|
||||
border-bottom: 1px solid #ddd;
|
||||
background-color: #fff;
|
||||
margin: 0;
|
||||
}
|
||||
.choices[data-type*=select-one] .choices__button {
|
||||
background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMSAyMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSIjMDAwIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yLjU5Mi4wNDRsMTguMzY0IDE4LjM2NC0yLjU0OCAyLjU0OEwuMDQ0IDIuNTkyeiIvPjxwYXRoIGQ9Ik0wIDE4LjM2NEwxOC4zNjQgMGwyLjU0OCAyLjU0OEwyLjU0OCAyMC45MTJ6Ii8+PC9nPjwvc3ZnPg==");
|
||||
padding: 0;
|
||||
background-size: 8px;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
right: 0;
|
||||
margin-top: -10px;
|
||||
margin-right: 25px;
|
||||
height: 20px;
|
||||
width: 20px;
|
||||
border-radius: 10em;
|
||||
opacity: 0.25;
|
||||
}
|
||||
.choices[data-type*=select-one] .choices__button:hover, .choices[data-type*=select-one] .choices__button:focus {
|
||||
opacity: 1;
|
||||
}
|
||||
.choices[data-type*=select-one] .choices__button:focus {
|
||||
-webkit-box-shadow: 0 0 0 2px #00bcd4;
|
||||
box-shadow: 0 0 0 2px #00bcd4;
|
||||
}
|
||||
.choices[data-type*=select-one] .choices__item[data-value=""] .choices__button {
|
||||
display: none;
|
||||
}
|
||||
.choices[data-type*=select-one]::after {
|
||||
content: "";
|
||||
height: 0;
|
||||
width: 0;
|
||||
border-style: solid;
|
||||
border-color: #333 transparent transparent transparent;
|
||||
border-width: 5px;
|
||||
position: absolute;
|
||||
right: 11.5px;
|
||||
top: 50%;
|
||||
margin-top: -2.5px;
|
||||
pointer-events: none;
|
||||
}
|
||||
.choices[data-type*=select-one].is-open::after {
|
||||
border-color: transparent transparent #333 transparent;
|
||||
margin-top: -7.5px;
|
||||
}
|
||||
.choices[data-type*=select-one][dir=rtl]::after {
|
||||
left: 11.5px;
|
||||
right: auto;
|
||||
}
|
||||
.choices[data-type*=select-one][dir=rtl] .choices__button {
|
||||
right: auto;
|
||||
left: 0;
|
||||
margin-left: 25px;
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
.choices[data-type*=select-multiple] .choices__inner,
|
||||
.choices[data-type*=text] .choices__inner {
|
||||
cursor: text;
|
||||
}
|
||||
.choices[data-type*=select-multiple] .choices__button,
|
||||
.choices[data-type*=text] .choices__button {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
margin-top: 0;
|
||||
margin-right: -4px;
|
||||
margin-bottom: 0;
|
||||
margin-left: 8px;
|
||||
padding-left: 16px;
|
||||
border-left: 1px solid #008fa1;
|
||||
background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMSAyMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yLjU5Mi4wNDRsMTguMzY0IDE4LjM2NC0yLjU0OCAyLjU0OEwuMDQ0IDIuNTkyeiIvPjxwYXRoIGQ9Ik0wIDE4LjM2NEwxOC4zNjQgMGwyLjU0OCAyLjU0OEwyLjU0OCAyMC45MTJ6Ii8+PC9nPjwvc3ZnPg==");
|
||||
background-size: 8px;
|
||||
width: 8px;
|
||||
line-height: 1;
|
||||
opacity: 0.75;
|
||||
border-radius: 0;
|
||||
}
|
||||
.choices[data-type*=select-multiple] .choices__button:hover, .choices[data-type*=select-multiple] .choices__button:focus,
|
||||
.choices[data-type*=text] .choices__button:hover,
|
||||
.choices[data-type*=text] .choices__button:focus {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.choices__inner {
|
||||
display: inline-block;
|
||||
vertical-align: top;
|
||||
width: 100%;
|
||||
background-color: #f9f9f9;
|
||||
padding: 7.5px 7.5px 3.75px;
|
||||
border: 1px solid #ddd;
|
||||
border-radius: 2.5px;
|
||||
font-size: 14px;
|
||||
min-height: 44px;
|
||||
overflow: hidden;
|
||||
}
|
||||
.is-focused .choices__inner, .is-open .choices__inner {
|
||||
border-color: #b7b7b7;
|
||||
}
|
||||
.is-open .choices__inner {
|
||||
border-radius: 2.5px 2.5px 0 0;
|
||||
}
|
||||
.is-flipped.is-open .choices__inner {
|
||||
border-radius: 0 0 2.5px 2.5px;
|
||||
}
|
||||
|
||||
.choices__list {
|
||||
margin: 0;
|
||||
padding-left: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.choices__list--single {
|
||||
display: inline-block;
|
||||
padding: 4px 16px 4px 4px;
|
||||
width: 100%;
|
||||
}
|
||||
[dir=rtl] .choices__list--single {
|
||||
padding-right: 4px;
|
||||
padding-left: 16px;
|
||||
}
|
||||
.choices__list--single .choices__item {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.choices__list--multiple {
|
||||
display: inline;
|
||||
}
|
||||
.choices__list--multiple .choices__item {
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
border-radius: 20px;
|
||||
padding: 4px 10px;
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
margin-right: 3.75px;
|
||||
margin-bottom: 3.75px;
|
||||
background-color: #00bcd4;
|
||||
border: 1px solid #00a5bb;
|
||||
color: #fff;
|
||||
word-break: break-all;
|
||||
-webkit-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.choices__list--multiple .choices__item[data-deletable] {
|
||||
padding-right: 5px;
|
||||
}
|
||||
[dir=rtl] .choices__list--multiple .choices__item {
|
||||
margin-right: 0;
|
||||
margin-left: 3.75px;
|
||||
}
|
||||
.choices__list--multiple .choices__item.is-highlighted {
|
||||
background-color: #00a5bb;
|
||||
border: 1px solid #008fa1;
|
||||
}
|
||||
.is-disabled .choices__list--multiple .choices__item {
|
||||
background-color: #aaaaaa;
|
||||
border: 1px solid #919191;
|
||||
}
|
||||
|
||||
.choices__list--dropdown {
|
||||
visibility: hidden;
|
||||
z-index: 1;
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
background-color: #fff;
|
||||
border: 1px solid #ddd;
|
||||
top: 100%;
|
||||
margin-top: -1px;
|
||||
border-bottom-left-radius: 2.5px;
|
||||
border-bottom-right-radius: 2.5px;
|
||||
overflow: hidden;
|
||||
word-break: break-all;
|
||||
will-change: visibility;
|
||||
}
|
||||
.choices__list--dropdown.is-active {
|
||||
visibility: visible;
|
||||
}
|
||||
.is-open .choices__list--dropdown {
|
||||
border-color: #b7b7b7;
|
||||
}
|
||||
.is-flipped .choices__list--dropdown {
|
||||
top: auto;
|
||||
bottom: 100%;
|
||||
margin-top: 0;
|
||||
margin-bottom: -1px;
|
||||
border-radius: 0.25rem 0.25rem 0 0;
|
||||
}
|
||||
.choices__list--dropdown .choices__list {
|
||||
position: relative;
|
||||
max-height: 300px;
|
||||
overflow: auto;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
will-change: scroll-position;
|
||||
}
|
||||
.choices__list--dropdown .choices__item {
|
||||
position: relative;
|
||||
padding: 10px;
|
||||
font-size: 14px;
|
||||
}
|
||||
[dir=rtl] .choices__list--dropdown .choices__item {
|
||||
text-align: right;
|
||||
}
|
||||
@media (min-width: 640px) {
|
||||
.choices__list--dropdown .choices__item--selectable {
|
||||
padding-right: 100px;
|
||||
}
|
||||
.choices__list--dropdown .choices__item--selectable::after {
|
||||
content: attr(data-select-text);
|
||||
font-size: 12px;
|
||||
opacity: 0;
|
||||
position: absolute;
|
||||
right: 10px;
|
||||
top: 50%;
|
||||
-webkit-transform: translateY(-50%);
|
||||
transform: translateY(-50%);
|
||||
}
|
||||
[dir=rtl] .choices__list--dropdown .choices__item--selectable {
|
||||
text-align: right;
|
||||
padding-left: 100px;
|
||||
padding-right: 10px;
|
||||
}
|
||||
[dir=rtl] .choices__list--dropdown .choices__item--selectable::after {
|
||||
right: auto;
|
||||
left: 10px;
|
||||
}
|
||||
}
|
||||
.choices__list--dropdown .choices__item--selectable.is-highlighted {
|
||||
background-color: #f2f2f2;
|
||||
}
|
||||
.choices__list--dropdown .choices__item--selectable.is-highlighted::after {
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.choices__item {
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.choices__item--selectable {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.choices__item--disabled {
|
||||
cursor: not-allowed;
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none;
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.choices__heading {
|
||||
font-weight: 600;
|
||||
font-size: 12px;
|
||||
padding: 10px;
|
||||
border-bottom: 1px solid #f7f7f7;
|
||||
color: gray;
|
||||
}
|
||||
|
||||
.choices__button {
|
||||
text-indent: -9999px;
|
||||
-webkit-appearance: none;
|
||||
-moz-appearance: none;
|
||||
appearance: none;
|
||||
border: 0;
|
||||
background-color: transparent;
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
cursor: pointer;
|
||||
}
|
||||
.choices__button:focus {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.choices__input {
|
||||
display: inline-block;
|
||||
vertical-align: baseline;
|
||||
background-color: #f9f9f9;
|
||||
font-size: 14px;
|
||||
margin-bottom: 5px;
|
||||
border: 0;
|
||||
border-radius: 0;
|
||||
max-width: 100%;
|
||||
padding: 4px 0 4px 2px;
|
||||
}
|
||||
.choices__input:focus {
|
||||
outline: 0;
|
||||
}
|
||||
[dir=rtl] .choices__input {
|
||||
padding-right: 2px;
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
.choices__placeholder {
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
/* ===== End of Choices ====== */
|
||||
.choices {
|
||||
border: 1px solid hsl(210, 14%, 83%);
|
||||
border-radius: 0.25rem;
|
||||
}
|
||||
.choices.is-focused {
|
||||
border-color: #8894aa;
|
||||
-webkit-box-shadow: 0 0 0 0.25rem rgba(1, 1, 86, 0.25);
|
||||
box-shadow: 0 0 0 0.25rem rgba(1, 1, 86, 0.25);
|
||||
}
|
||||
|
||||
.choices__inner {
|
||||
padding: 0.4rem 1rem;
|
||||
margin-bottom: 0;
|
||||
font-size: 1rem;
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
.choices__input {
|
||||
padding: 0;
|
||||
margin-bottom: 0;
|
||||
font-size: 1rem;
|
||||
background-color: transparent;
|
||||
}
|
||||
.choices__input::-webkit-input-placeholder {
|
||||
color: hsl(210, 9%, 31%);
|
||||
opacity: 1;
|
||||
}
|
||||
.choices__input::-moz-placeholder {
|
||||
color: hsl(210, 9%, 31%);
|
||||
opacity: 1;
|
||||
}
|
||||
.choices__input:-ms-input-placeholder {
|
||||
color: hsl(210, 9%, 31%);
|
||||
opacity: 1;
|
||||
}
|
||||
.choices__input::-ms-input-placeholder {
|
||||
color: hsl(210, 9%, 31%);
|
||||
opacity: 1;
|
||||
}
|
||||
.choices__input::placeholder {
|
||||
color: hsl(210, 9%, 31%);
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.choices__list--dropdown {
|
||||
z-index: 1060;
|
||||
}
|
||||
|
||||
.choices__list--multiple .choices__item {
|
||||
position: relative;
|
||||
margin: 2px;
|
||||
background-color: var(--moko-cassiopeia-color-primary);
|
||||
-webkit-margin-end: 2px;
|
||||
margin-inline-end: 2px;
|
||||
border: 0;
|
||||
border-radius: 0.25rem;
|
||||
}
|
||||
.choices__list--multiple .choices__item.is-highlighted {
|
||||
background-color: var(--moko-cassiopeia-color-primary);
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
.choices .choices__list--dropdown .choices__item {
|
||||
-webkit-padding-end: 10px;
|
||||
padding-inline-end: 10px;
|
||||
}
|
||||
.choices .choices__list--dropdown .choices__item--selectable::after {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.choices__button_joomla {
|
||||
position: relative;
|
||||
padding: 0 10px;
|
||||
color: inherit;
|
||||
text-indent: -9999px;
|
||||
cursor: pointer;
|
||||
background: none;
|
||||
border: 0;
|
||||
opacity: 0.5;
|
||||
-webkit-appearance: none;
|
||||
-moz-appearance: none;
|
||||
appearance: none;
|
||||
}
|
||||
.choices__button_joomla::before {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
display: block;
|
||||
text-align: center;
|
||||
text-indent: 0;
|
||||
content: "×";
|
||||
}
|
||||
.choices__button_joomla:hover, .choices__button_joomla:focus {
|
||||
opacity: 1;
|
||||
}
|
||||
.choices__button_joomla:focus {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.choices[data-type*=select-one] .choices__inner,
|
||||
.choices[data-type*=select-multiple] .choices__inner {
|
||||
-webkit-padding-end: 3rem;
|
||||
padding-inline-end: 3rem;
|
||||
cursor: pointer;
|
||||
background: url("../../../images/select-bg.svg") no-repeat 100%/116rem;
|
||||
background-color: hsl(210, 16%, 93%);
|
||||
}
|
||||
[dir=rtl] .choices[data-type*=select-one] .choices__inner,
|
||||
[dir=rtl] .choices[data-type*=select-multiple] .choices__inner {
|
||||
background: url("../../../images/select-bg-rtl.svg") no-repeat 0/116rem;
|
||||
background-color: hsl(210, 16%, 93%);
|
||||
}
|
||||
|
||||
.choices[data-type*=select-one] .choices__item {
|
||||
display: -webkit-box;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
-webkit-box-pack: justify;
|
||||
-ms-flex-pack: justify;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.choices[data-type*=select-one] .choices__button_joomla {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
inset-inline-end: 0;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
padding: 0;
|
||||
-webkit-margin-before: -10px;
|
||||
margin-block-start: -10px;
|
||||
-webkit-margin-end: 50px;
|
||||
margin-inline-end: 50px;
|
||||
border-radius: 10em;
|
||||
opacity: 0.5;
|
||||
}
|
||||
.choices[data-type*=select-one] .choices__button_joomla:hover, .choices[data-type*=select-one] .choices__button_joomla:focus {
|
||||
opacity: 1;
|
||||
}
|
||||
.choices[data-type*=select-one] .choices__button_joomla:focus {
|
||||
-webkit-box-shadow: 0 0 0 2px #00bcd4;
|
||||
box-shadow: 0 0 0 2px #00bcd4;
|
||||
}
|
||||
.choices[data-type*=select-one]::after {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.choices[data-type*=select-multiple] .choices__input,
|
||||
.choices[data-type*=text] .choices__input {
|
||||
padding: 0.2rem 0;
|
||||
}
|
||||
|
||||
.choices__heading {
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
146
media/templates/site/moko-cassiopeia/css/vendor/joomla-custom-elements/joomla-alert.css
vendored
Normal file
@@ -0,0 +1,146 @@
|
||||
@import "../../../../../../vendor/joomla-custom-elements/css/joomla-alert.css";
|
||||
#system-message-container:empty {
|
||||
display: none;
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
#system-message-container joomla-alert {
|
||||
position: relative;
|
||||
display: -webkit-box;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
width: 100%;
|
||||
min-width: 16rem;
|
||||
padding: 0;
|
||||
margin-bottom: 0;
|
||||
color: var(--gray-dark);
|
||||
background-color: hsl(0, 0%, 100%);
|
||||
border: 1px solid var(--alert-accent-color, transparent);
|
||||
border-radius: 0.25rem;
|
||||
-webkit-transition: opacity 0.15s linear;
|
||||
-o-transition: opacity 0.15s linear;
|
||||
transition: opacity 0.15s linear;
|
||||
}
|
||||
#system-message-container joomla-alert + * {
|
||||
margin-top: 1rem;
|
||||
}
|
||||
#system-message-container joomla-alert .alert-heading {
|
||||
display: -webkit-box;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-box-direction: normal;
|
||||
-ms-flex-direction: column;
|
||||
flex-direction: column;
|
||||
-webkit-box-pack: center;
|
||||
-ms-flex-pack: center;
|
||||
justify-content: center;
|
||||
-ms-flex-line-pack: center;
|
||||
align-content: center;
|
||||
padding: 0.8rem;
|
||||
color: var(--alert-heading-text);
|
||||
background: var(--alert-accent-color, transparent);
|
||||
}
|
||||
#system-message-container joomla-alert .alert-heading .message::before,
|
||||
#system-message-container joomla-alert .alert-heading .success::before {
|
||||
display: inline-block;
|
||||
width: 1em;
|
||||
height: 1em;
|
||||
content: "";
|
||||
background-image: url('data:image/svg+xml;utf8,<svg width="1792" height="1792" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path fill="rgba(255, 255, 255, .95)" d="M1299 813l-422 422q-19 19-45 19t-45-19l-294-294q-19-19-19-45t19-45l102-102q19-19 45-19t45 19l147 147 275-275q19-19 45-19t45 19l102 102q19 19 19 45t-19 45zm141 83q0-148-73-273t-198-198-273-73-273 73-198 198-73 273 73 273 198 198 273 73 273-73 198-198 73-273zm224 0q0 209-103 385.5t-279.5 279.5-385.5 103-385.5-103-279.5-279.5-103-385.5 103-385.5 279.5-279.5 385.5-103 385.5 103 279.5 279.5 103 385.5z"/></svg>');
|
||||
background-size: 100%;
|
||||
}
|
||||
#system-message-container joomla-alert .alert-heading .notice::before,
|
||||
#system-message-container joomla-alert .alert-heading .info::before {
|
||||
display: inline-block;
|
||||
width: 1em;
|
||||
height: 1em;
|
||||
content: "";
|
||||
background-image: url('data:image/svg+xml;utf8,<svg width="1792" height="1792" viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path fill="rgba(255, 255, 255, .95)" d="M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"/></svg>');
|
||||
background-size: 100%;
|
||||
}
|
||||
#system-message-container joomla-alert .alert-heading .warning::before {
|
||||
display: inline-block;
|
||||
width: 1em;
|
||||
height: 1em;
|
||||
content: "";
|
||||
background-image: url('data:image/svg+xml;utf8,<svg width="1792" height="1792" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path fill="rgba(255, 255, 255, .95)" d="M1024 1375v-190q0-14-9.5-23.5t-22.5-9.5h-192q-13 0-22.5 9.5t-9.5 23.5v190q0 14 9.5 23.5t22.5 9.5h192q13 0 22.5-9.5t9.5-23.5zm-2-374l18-459q0-12-10-19-13-11-24-11h-220q-11 0-24 11-10 7-10 21l17 457q0 10 10 16.5t24 6.5h185q14 0 23.5-6.5t10.5-16.5zm-14-934l768 1408q35 63-2 126-17 29-46.5 46t-63.5 17h-1536q-34 0-63.5-17t-46.5-46q-37-63-2-126l768-1408q17-31 47-49t65-18 65 18 47 49z"/></svg>');
|
||||
background-size: 100%;
|
||||
}
|
||||
#system-message-container joomla-alert .alert-heading .error::before,
|
||||
#system-message-container joomla-alert .alert-heading .danger::before {
|
||||
display: inline-block;
|
||||
width: 1em;
|
||||
height: 1em;
|
||||
content: "";
|
||||
background-image: url('data:image/svg+xml;utf8,<svg width="1792" height="1792" viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path fill="rgba(255, 255, 255, .95)" d="M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200zm101.8-262.2L295.6 256l62.2 62.2c4.7 4.7 4.7 12.3 0 17l-22.6 22.6c-4.7 4.7-12.3 4.7-17 0L256 295.6l-62.2 62.2c-4.7 4.7-12.3 4.7-17 0l-22.6-22.6c-4.7-4.7-4.7-12.3 0-17l62.2-62.2-62.2-62.2c-4.7-4.7-4.7-12.3 0-17l22.6-22.6c4.7-4.7 12.3-4.7 17 0l62.2 62.2 62.2-62.2c4.7-4.7 12.3-4.7 17 0l22.6 22.6c4.7 4.7 4.7 12.3 0 17z"/></svg>');
|
||||
background-size: 100%;
|
||||
}
|
||||
#system-message-container joomla-alert .alert-wrapper {
|
||||
width: 100%;
|
||||
}
|
||||
#system-message-container joomla-alert .alert-link {
|
||||
color: var(--success, inherit);
|
||||
}
|
||||
#system-message-container joomla-alert[type=success], #system-message-container joomla-alert[type=message] {
|
||||
--alert-accent-color: var(--success);
|
||||
--alert-heading-text: hsla(0, 0%, 100%, .95);
|
||||
--alert-close-button: var(--success);
|
||||
background-color: hsl(0, 0%, 100%);
|
||||
}
|
||||
#system-message-container joomla-alert[type=info], #system-message-container joomla-alert[type=notice] {
|
||||
--alert-accent-color: var(--info);
|
||||
--alert-heading-text: hsla(0, 0%, 100%, .95);
|
||||
--alert-close-button: var(--info);
|
||||
background-color: hsl(0, 0%, 100%);
|
||||
}
|
||||
#system-message-container joomla-alert[type=warning] {
|
||||
--alert-accent-color: var(--warning);
|
||||
--alert-heading-text: hsla(0, 0%, 100%, .95);
|
||||
--alert-close-button: var(--warning);
|
||||
background-color: hsl(0, 0%, 100%);
|
||||
}
|
||||
#system-message-container joomla-alert[type=error], #system-message-container joomla-alert[type=danger] {
|
||||
--alert-accent-color: var(--danger);
|
||||
--alert-heading-text: hsla(0, 0%, 100%, .95);
|
||||
--alert-close-button: var(--danger);
|
||||
background-color: hsl(0, 0%, 100%);
|
||||
}
|
||||
#system-message-container joomla-alert .joomla-alert--close,
|
||||
#system-message-container joomla-alert .joomla-alert-button--close {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
padding: 0.2rem 0.8rem;
|
||||
font-size: 2rem;
|
||||
color: var(--alert-close-button);
|
||||
background: none;
|
||||
border: 0;
|
||||
opacity: 1;
|
||||
}
|
||||
#system-message-container joomla-alert .joomla-alert--close:hover, #system-message-container joomla-alert .joomla-alert--close:focus,
|
||||
#system-message-container joomla-alert .joomla-alert-button--close:hover,
|
||||
#system-message-container joomla-alert .joomla-alert-button--close:focus {
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
opacity: 0.75;
|
||||
}
|
||||
[dir=rtl] #system-message-container joomla-alert .joomla-alert--close,
|
||||
[dir=rtl] #system-message-container joomla-alert .joomla-alert-button--close {
|
||||
right: auto;
|
||||
left: 0;
|
||||
padding: 0.2rem 0.6rem;
|
||||
}
|
||||
#system-message-container joomla-alert div {
|
||||
font-size: 1rem;
|
||||
}
|
||||
#system-message-container joomla-alert div .alert-message {
|
||||
padding: 0.3rem 2rem 0.3rem 0.3rem;
|
||||
margin: 0.5rem;
|
||||
}
|
||||
[dir=rtl] #system-message-container joomla-alert div .alert-message {
|
||||
padding: 0.3rem 0.3rem 0.3rem 2rem;
|
||||
}
|
||||
#system-message-container joomla-alert div .alert-message:not(:first-of-type) {
|
||||
border-top: 1px solid var(--alert-accent-color);
|
||||
}
|
||||
617
media/templates/site/moko-cassiopeia/css/vmbasic.css
Normal file
@@ -0,0 +1,617 @@
|
||||
/* Bootstrap */
|
||||
.dropdown-menu {
|
||||
border-radius: 0;
|
||||
--bs-dropdown-zindex: 1030;
|
||||
}
|
||||
|
||||
.dropdown-toggle {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.dropdown-toggle::after {
|
||||
content: "";
|
||||
border: none;
|
||||
background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" fill="currentColor" class="bi bi-chevron-down" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708"/></svg>');
|
||||
background-repeat: no-repeat;
|
||||
width: 10px;
|
||||
height: 10px
|
||||
}
|
||||
|
||||
.btn {
|
||||
border-radius: 0
|
||||
}
|
||||
|
||||
.input-group .btn {
|
||||
font-size: 14px;
|
||||
border-radius: var(--bs-border-radius);
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
--bs-btn-bg: #333;
|
||||
--bs-btn-border-color: #333;
|
||||
--bs-btn-hover-bg: #555;
|
||||
--bs-btn-hover-border-color: #555;
|
||||
--bs-btn-focus-shadow-rgb: 49, 132, 253;
|
||||
--bs-btn-active-bg: #555;
|
||||
--bs-btn-active-border-color: #555;
|
||||
--bs-btn-disabled-bg: #A0A0A0;
|
||||
--bs-btn-disabled-border-color: #A0A0A0;
|
||||
}
|
||||
|
||||
.btn-secondary {
|
||||
--bs-btn-color: #333;
|
||||
--bs-btn-bg: #EFEFEF;
|
||||
--bs-btn-border-color: #EFEFEF;
|
||||
--bs-btn-hover-bg: #333;
|
||||
--bs-btn-hover-border-color: #333;
|
||||
--bs-btn-active-bg: #333;
|
||||
--bs-btn-active-border-color: #333;
|
||||
}
|
||||
|
||||
.btn-check:checked + .btn, .btn.active, .btn.show, .btn:first-child:active, :not(.btn-check) + .btn:active {
|
||||
color: #A0A0A0;
|
||||
}
|
||||
|
||||
.text-secondary {
|
||||
color: #A0A0A0 !important;
|
||||
}
|
||||
|
||||
.form-control, .form-select {
|
||||
font-size: 14px
|
||||
}
|
||||
|
||||
form .form-control, form .form-select {
|
||||
border-color: #C7C7C7
|
||||
}
|
||||
|
||||
/* General styles */
|
||||
body {
|
||||
font-size: 15px;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
a, .btn-link {
|
||||
color: #A0A0A0;
|
||||
text-decoration: none
|
||||
}
|
||||
|
||||
a:hover, .btn-link:hover {
|
||||
color: #333;
|
||||
}
|
||||
|
||||
img {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
aspect-ratio: attr(width) / attr(height);
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
font-weight: 600;
|
||||
margin-bottom: 1em;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 32px
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 28px
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 25px
|
||||
}
|
||||
|
||||
h4 {
|
||||
font-size: 22px
|
||||
}
|
||||
|
||||
h5 {
|
||||
font-size: 20px
|
||||
}
|
||||
|
||||
h6 {
|
||||
font-size: 18px
|
||||
}
|
||||
|
||||
.toolbar {
|
||||
font-size: 14px;
|
||||
padding: 9px 0;
|
||||
background-color: #EFEFEF
|
||||
}
|
||||
|
||||
.toolbar a, .toolbar .btn-link {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.toolbar .btn svg {
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
.toolbar svg {
|
||||
line-height: 16px;
|
||||
vertical-align: sub;
|
||||
}
|
||||
|
||||
.top-bar {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
header p {
|
||||
margin: 0
|
||||
}
|
||||
|
||||
.toolbar .dropdown-menu {
|
||||
font-size: 14px;
|
||||
line-height: 14px;
|
||||
min-width: 100%;
|
||||
width: max-content;
|
||||
}
|
||||
|
||||
.form-control-feedback {
|
||||
display: block;
|
||||
font-size: 14px;
|
||||
color: red;
|
||||
}
|
||||
|
||||
/* Main menu */
|
||||
.main-menu {
|
||||
background-color: #555;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.main-menu .nav-item {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.main-menu a, .main-menu span {
|
||||
position: relative;
|
||||
display: block;
|
||||
padding: 14px 18px;
|
||||
color: #fff;
|
||||
background-color: #555;
|
||||
transition: background-color linear 250ms
|
||||
}
|
||||
|
||||
.main-menu .active > a, .main-menu .active > span, .main-menu a:hover, .main-menu span:hover {
|
||||
background-color: #000;
|
||||
transition: background-color linear 250ms
|
||||
}
|
||||
|
||||
.main-menu .parent > a::after, .main-menu .parent > span::after {
|
||||
content: "";
|
||||
display: inline-block;
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
background-color: #fff;
|
||||
margin-left: 5px;
|
||||
-webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" fill="currentColor" class="bi bi-chevron-down" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708"/></svg>');
|
||||
mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" fill="currentColor" class="bi bi-chevron-down" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708"/></svg>');
|
||||
}
|
||||
|
||||
.main-menu .mod-menu__sub .parent > a::after, .main-menu .mod-menu__sub .parent > span::after {
|
||||
position: absolute;
|
||||
right: 9px;
|
||||
top: 50%;
|
||||
transform: translateY(-50%) rotate(-90deg);
|
||||
}
|
||||
|
||||
.main-menu .mod-menu__sub {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 100%;
|
||||
z-index: 1022;
|
||||
min-width: 200px;
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
transition: all linear 250ms
|
||||
}
|
||||
|
||||
.main-menu .parent:hover > .mod-menu__sub {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
box-shadow: 0 5px 15px 0 rgba(0,0,0,0.3);
|
||||
transition: all linear 250ms
|
||||
}
|
||||
|
||||
.mod-menu__sub .mod-menu__sub {
|
||||
left: 100%;
|
||||
top: 0
|
||||
}
|
||||
|
||||
/* Banners */
|
||||
.banner-section p {
|
||||
margin: 0
|
||||
}
|
||||
|
||||
/* Modules */
|
||||
.mod-breadcrumbs {
|
||||
background-color: #EFEFEF;
|
||||
font-size: 14px;
|
||||
white-space: nowrap;
|
||||
overflow: auto;
|
||||
flex-wrap: nowrap;
|
||||
}
|
||||
|
||||
.breadcrumb-item + .breadcrumb-item::before {
|
||||
float: none;
|
||||
}
|
||||
|
||||
.mod-breadcrumbs a, .manufacturer-details-view a:not(.btn) {
|
||||
color: #71ABD6;
|
||||
}
|
||||
|
||||
.breadcrumb-item.active {
|
||||
color: #A0A0A0;
|
||||
}
|
||||
|
||||
aside .module-title {
|
||||
font-size: 24px;
|
||||
font-weight: normal;
|
||||
border-bottom: 1px solid #dee2e6;
|
||||
padding-bottom: 15px;
|
||||
margin-bottom: 15px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
/* Footer */
|
||||
footer {
|
||||
padding: 50px 0;
|
||||
background-color: #EFEFEF;
|
||||
}
|
||||
|
||||
footer .module-title {
|
||||
font-size: 18px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
footer .nav {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
footer ul {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 0
|
||||
}
|
||||
|
||||
footer .nav-item, footer li {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
footer a {
|
||||
color: #333;
|
||||
}
|
||||
|
||||
footer a:hover {
|
||||
color: #A0A0A0;
|
||||
}
|
||||
|
||||
/* Forms */
|
||||
textarea {
|
||||
min-height: 100px
|
||||
}
|
||||
|
||||
.control-label {
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
/*********
|
||||
Virtuemart
|
||||
*********/
|
||||
|
||||
/* VM Search module */
|
||||
.vmbasic-search input {
|
||||
border-color: #A0A0A0;
|
||||
border-radius: 0;
|
||||
height: 40px;
|
||||
}
|
||||
|
||||
.mod-vm-search .btn-svg {
|
||||
padding: 0 10px;
|
||||
position: absolute;
|
||||
z-index: 5;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
height: 40px;
|
||||
}
|
||||
|
||||
.vm-search-custom-search-input input, #vm-orderby-select {
|
||||
border-radius: var(--bs-border-radius) !important;
|
||||
}
|
||||
|
||||
/* VM cart module */
|
||||
.vmCartModule .btn-link {
|
||||
color: #333;
|
||||
}
|
||||
|
||||
/* Product page */
|
||||
.manufacturer a {
|
||||
color: #71ABD6;
|
||||
}
|
||||
|
||||
/* Account */
|
||||
.vm-add-edit-address > a, .vm-order-list a {
|
||||
font-weight: 600;
|
||||
color: #71ABD6
|
||||
}
|
||||
|
||||
/* Checkout */
|
||||
.vm-coupon-container .btn {
|
||||
border-radius: var(--bs-border-radius);
|
||||
}
|
||||
|
||||
#checkoutForm .details {
|
||||
font-weight: 600;
|
||||
color: #71ABD6
|
||||
}
|
||||
|
||||
|
||||
/*********
|
||||
Joomla
|
||||
*********/
|
||||
|
||||
/* com_content */
|
||||
.item-content .page-header h2 {
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
.article-info {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
font-size: 14px;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
.item-image {
|
||||
display: block;
|
||||
margin: 0 auto 30px;
|
||||
}
|
||||
|
||||
.article-info > * {
|
||||
margin-right: 8px
|
||||
}
|
||||
|
||||
.com-content-article__links {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 30px 0;
|
||||
}
|
||||
|
||||
.com-content-article__links a, .items-more a {
|
||||
color: #71ABD6
|
||||
}
|
||||
|
||||
.active > .page-link, .page-link.active {
|
||||
background-color: #555555;
|
||||
border-color: #555555;
|
||||
}
|
||||
|
||||
.page-link, .page-link:hover {
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.pagenavigation {
|
||||
margin: 30px 0;
|
||||
}
|
||||
|
||||
.pagenavigation .next {
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
/* tags */
|
||||
.com-tags-tag-list__category, .com-tags-tag__category {
|
||||
margin-top: 30px;
|
||||
}
|
||||
|
||||
.tag-category .list-group-item h3 {
|
||||
margin: 0;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.tags .btn {
|
||||
font-size: 12px;
|
||||
padding: 0 5px;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
|
||||
/* User */
|
||||
.com-users-login.login, .com-users-reset, .com-users-remind, .com-users-registration {
|
||||
max-width: 400px;
|
||||
margin: auto;
|
||||
padding: 15px;
|
||||
border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important;
|
||||
}
|
||||
|
||||
.control-group, .com-users-login__remember {
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.com-users-reset legend, .com-users-remind legend {
|
||||
font-size: 14px
|
||||
}
|
||||
|
||||
/* Contact */
|
||||
#contact-form legend {
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.com-contact-featured__table {
|
||||
margin-top: 30px;
|
||||
}
|
||||
|
||||
/* Modules */
|
||||
.sidebar-right ul, .sidebar-left ul {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.sidebar-right li, .sidebar-left li {
|
||||
margin-bottom: 10px
|
||||
}
|
||||
|
||||
|
||||
.mod-login__userdata > div {
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.awesomplete input {
|
||||
border-top-right-radius: 0;
|
||||
border-bottom-right-radius: 0;
|
||||
}
|
||||
|
||||
.mod-login__userdata.userdata {
|
||||
padding: 15px;
|
||||
border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important;
|
||||
}
|
||||
|
||||
#Passkey {
|
||||
width: 24px;
|
||||
}
|
||||
|
||||
/* offcanvas*/
|
||||
.offcanvas-body .mod-menu {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.offcanvas-body .mod-menu__sub {
|
||||
display: none;
|
||||
padding: 10px
|
||||
}
|
||||
|
||||
.offcanvas-body .nav-item {
|
||||
padding: 5px 0;
|
||||
border-bottom: 1px solid var(--bs-border-color);
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.offcanvas-body .nav-item:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.offcanvas-body a {
|
||||
font-size: 15px;
|
||||
color: #333
|
||||
}
|
||||
|
||||
.offcanvas-body .active > a {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.offcanvas-body .subtoggle {
|
||||
padding: 0;
|
||||
background-color: transparent;
|
||||
border: none;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 1px;
|
||||
z-index: 1
|
||||
}
|
||||
|
||||
.offcanvas-body .subtoggle.open {
|
||||
transform: rotate(-180deg);
|
||||
transition: all linear 200ms
|
||||
}
|
||||
|
||||
/* To top */
|
||||
.back-to-top-link {
|
||||
display: none;
|
||||
position: fixed;
|
||||
right: 12px;
|
||||
bottom: 12px;
|
||||
z-index: 1020;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 1080px) {
|
||||
|
||||
body {
|
||||
font-size: 14px
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@media screen and (max-width: 991px) {
|
||||
|
||||
h1 {
|
||||
font-size: 24px
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 22px
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 20px
|
||||
}
|
||||
|
||||
h4 {
|
||||
font-size: 18px
|
||||
}
|
||||
|
||||
h5 {
|
||||
font-size: 16px
|
||||
}
|
||||
|
||||
h6 {
|
||||
font-size: 15px
|
||||
}
|
||||
|
||||
.main-search {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 490px) {
|
||||
|
||||
.toolbar {
|
||||
padding: 6px 0;
|
||||
}
|
||||
|
||||
.toolbar .bg-alt {
|
||||
background-color: #333;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.top-bar {
|
||||
background-color: #333;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.top-bar a {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.cart-module .bi-cart3 {
|
||||
margin-top: 2px
|
||||
}
|
||||
|
||||
.cart-module .total_products {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.vmCartModule .dropdown-menu {
|
||||
margin-right: -10px !important;
|
||||
}
|
||||
|
||||
.cart-module .dropdown-toggle::after {
|
||||
content: none;
|
||||
}
|
||||
|
||||
.com-contact-featured__items, .com-contact-category__items {
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
footer {
|
||||
padding-bottom: 30px;
|
||||
}
|
||||
}
|
||||
BIN
media/templates/site/moko-cassiopeia/fonts/osaka-re.ttf
Normal file
107
media/templates/site/moko-cassiopeia/images/bg.svg
Normal file
|
After Width: | Height: | Size: 42 KiB |
|
After Width: | Height: | Size: 38 KiB |
|
After Width: | Height: | Size: 12 KiB |
BIN
media/templates/site/moko-cassiopeia/images/favicon/favicon.gif
Normal file
|
After Width: | Height: | Size: 38 KiB |
BIN
media/templates/site/moko-cassiopeia/images/favicon/favicon.ico
Normal file
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 99 KiB |
|
After Width: | Height: | Size: 20 KiB |
|
After Width: | Height: | Size: 74 KiB |
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"name": "",
|
||||
"short_name": "",
|
||||
"icons": [
|
||||
{
|
||||
"src": "/web-app-manifest-192x192.png",
|
||||
"sizes": "192x192",
|
||||
"type": "image/png",
|
||||
"purpose": "maskable"
|
||||
},
|
||||
{
|
||||
"src": "/web-app-manifest-512x512.png",
|
||||
"sizes": "512x512",
|
||||
"type": "image/png",
|
||||
"purpose": "maskable"
|
||||
}
|
||||
],
|
||||
"theme_color": "#ffffff",
|
||||
"background_color": "#ffffff",
|
||||
"display": "standalone"
|
||||
}
|
||||
|
After Width: | Height: | Size: 42 KiB |
|
After Width: | Height: | Size: 213 KiB |
93
media/templates/site/moko-cassiopeia/images/logo.svg
Normal file
|
After Width: | Height: | Size: 100 KiB |
|
After Width: | Height: | Size: 467 KiB |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1854.54 295" preserveAspectRatio="xMinYMid" width="1854.54" height="295"><path d="m14.47 145.7 6.898 6.899c0.102 0.101 0.199 0.101 0.3 0.101 0.102 0 0.2 0 0.302-0.101l6.898-6.899c0.102-0.1 0.102-0.2 0.102-0.3s0-0.2-0.102-0.3l-0.7-0.7c-0.101-0.1-0.198-0.1-0.3-0.1-0.101 0-0.2 0-0.301 0.1l-5.8 5.8-5.801-5.8c-0.101-0.1-0.199-0.1-0.301-0.1-0.101 0-0.199 0-0.301 0.1l-0.699 0.7c-0.101 0.1-0.101 0.2-0.101 0.3-0.294 0.1-0.194 0.2-0.094 0.3z" fill="#fff"/></svg>
|
||||
|
After Width: | Height: | Size: 510 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1854.54 295" preserveAspectRatio="xMinYMid" width="1854.54" height="295"><path d="M1825.1,145.7l6.9,6.9c0.1,0.1,0.2,0.1,0.3,0.1c0.1,0,0.2,0,0.3-0.1l6.9-6.9c0.1-0.1,0.1-0.2,0.1-0.3c0-0.1,0-0.2-0.1-0.3l-0.7-0.7c-0.1-0.1-0.2-0.1-0.3-0.1s-0.2,0-0.3,0.1l-5.8,5.8l-5.8-5.8c-0.1-0.1-0.2-0.1-0.3-0.1c-0.1,0-0.2,0-0.3,0.1l-0.7,0.7c-0.1,0.1-0.1,0.2-0.1,0.3C1824.9,145.5,1825,145.6,1825.1,145.7z" fill="#fff"/></svg>
|
||||
|
After Width: | Height: | Size: 459 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="1854.539" height="295" preserveAspectRatio="xMinYMin meet"><path d="M13.573 145.7l6.9 6.9c.1.1.2.1.3.1s.2 0 .3-.1l6.9-6.9c.1-.1.1-.2.1-.3s0-.2-.1-.3l-.7-.7c-.1-.1-.2-.1-.3-.1s-.2 0-.3.1l-5.8 5.8-5.8-5.8c-.1-.1-.2-.1-.3-.1s-.2 0-.3.1l-.7.7c-.1.1-.1.2-.1.3-.296.1-.195.2-.096.3h-.002z"/><path fill="#fff" d="M44.54 0h1810v295h-1810z"/></svg>
|
||||
|
After Width: | Height: | Size: 387 B |
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1854.54 295" preserveAspectRatio="xMinYMid" width="1854.54" height="295"><path d="M1825.1,145.7l6.9,6.9c0.1,0.1,0.2,0.1,0.3,0.1c0.1,0,0.2,0,0.3-0.1l6.9-6.9c0.1-0.1,0.1-0.2,0.1-0.3c0-0.1,0-0.2-0.1-0.3l-0.7-0.7c-0.1-0.1-0.2-0.1-0.3-0.1s-0.2,0-0.3,0.1l-5.8,5.8l-5.8-5.8c-0.1-0.1-0.2-0.1-0.3-0.1c-0.1,0-0.2,0-0.3,0.1l-0.7,0.7c-0.1,0.1-0.1,0.2-0.1,0.3C1824.9,145.5,1825,145.6,1825.1,145.7z" fill="#000"/><rect width="1810" height="295" fill="#fff"/></svg>
|
||||
|
After Width: | Height: | Size: 504 B |
BIN
media/templates/site/moko-cassiopeia/images/teaser_bg_sm.png
Normal file
|
After Width: | Height: | Size: 979 B |
BIN
media/templates/site/moko-cassiopeia/images/template_preview.png
Normal file
|
After Width: | Height: | Size: 62 KiB |
|
After Width: | Height: | Size: 10 KiB |
0
media/templates/site/moko-cassiopeia/index.html
Normal file
@@ -0,0 +1,29 @@
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage Templates.Moko-Cassiopeia
|
||||
* @copyright (C) 2020 Open Source Matters, Inc. <https://www.joomla.org>
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
* @since 4.0.0
|
||||
*/
|
||||
|
||||
document.addEventListener('DOMContentLoaded', function () {
|
||||
var allMenus = document.querySelectorAll('ul.mod-menu_dropdown-metismenu');
|
||||
allMenus.forEach(function (menu) {
|
||||
// eslint-disable-next-line no-new, no-undef
|
||||
var mm = new MetisMenu(menu, {
|
||||
triggerElement: 'button.mm-toggler'
|
||||
}).on('shown.metisMenu', function (event) {
|
||||
window.addEventListener('click', function mmClick(e) {
|
||||
if (!event.target.contains(e.target)) {
|
||||
mm.hide(event.detail.shownElement);
|
||||
window.removeEventListener('click', mmClick);
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
})();
|
||||
@@ -0,0 +1,25 @@
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage Templates.Moko-Cassiopeia
|
||||
* @copyright (C) 2020 Open Source Matters, Inc. <https://www.joomla.org>
|
||||
* @copyright (C) 2025 Jonathan Miler || Moko Consulting <https://mokoconsulting.tech>
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
* @since 4.0.0
|
||||
*/
|
||||
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
const allMenus = document.querySelectorAll('ul.mod-menu_dropdown-metismenu');
|
||||
allMenus.forEach(menu => {
|
||||
// eslint-disable-next-line no-new, no-undef
|
||||
const mm = new MetisMenu(menu, {
|
||||
triggerElement: 'button.mm-toggler'
|
||||
}).on('shown.metisMenu', event => {
|
||||
window.addEventListener('click', function mmClick(e) {
|
||||
if (!event.target.contains(e.target)) {
|
||||
mm.hide(event.detail.shownElement);
|
||||
window.removeEventListener('click', mmClick);
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
74
media/templates/site/moko-cassiopeia/js/template.js
Normal file
@@ -0,0 +1,74 @@
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage Templates.Moko-Cassiopeia
|
||||
* @copyright (C) 2017 Open Source Matters, Inc. <https://www.joomla.org>
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
* @since 4.0.0
|
||||
*/
|
||||
|
||||
Joomla = window.Joomla || {};
|
||||
|
||||
(function(Joomla, document) {
|
||||
'use strict';
|
||||
|
||||
function initTemplate(event) {
|
||||
var target = event && event.target ? event.target : document;
|
||||
|
||||
/**
|
||||
* Prevent clicks on buttons within a disabled fieldset
|
||||
*/
|
||||
var fieldsets = target.querySelectorAll('fieldset.btn-group');
|
||||
for (var i = 0; i < fieldsets.length; i++) {
|
||||
var self = fieldsets[i];
|
||||
if (self.getAttribute('disabled') === true) {
|
||||
self.style.pointerEvents = 'none';
|
||||
var btns = self.querySelectorAll('.btn');
|
||||
for (var ib = 0; ib < btns.length; ib++) {
|
||||
btns[ib].classList.add('disabled');
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
document.addEventListener('DOMContentLoaded', function (event) {
|
||||
initTemplate(event);
|
||||
|
||||
/**
|
||||
* Back to top
|
||||
*/
|
||||
var backToTop = document.getElementById('back-top');
|
||||
|
||||
if (backToTop) {
|
||||
|
||||
function checkScrollPos() {
|
||||
if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) {
|
||||
backToTop.classList.add('visible');
|
||||
} else {
|
||||
backToTop.classList.remove('visible')
|
||||
}
|
||||
}
|
||||
|
||||
checkScrollPos();
|
||||
|
||||
window.onscroll = function() {
|
||||
checkScrollPos();
|
||||
};
|
||||
|
||||
backToTop.addEventListener('click', function(event) {
|
||||
event.preventDefault();
|
||||
window.scrollTo(0, 0);
|
||||
});
|
||||
}
|
||||
|
||||
[].slice.call(document.head.querySelectorAll('link[rel="lazy-stylesheet"]'))
|
||||
.forEach(function($link){
|
||||
$link.rel = "stylesheet";
|
||||
});
|
||||
});
|
||||
|
||||
/**
|
||||
* Initialize when a part of the page was updated
|
||||
*/
|
||||
document.addEventListener('joomla:updated', initTemplate);
|
||||
|
||||
})(Joomla, document);
|
||||
88
templates/moko-cassiopeia/component.php
Normal file
@@ -0,0 +1,88 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage Templates.Moko-Cassiopeia
|
||||
*
|
||||
* @copyright (C) 2017 Open Source Matters, Inc. <https://www.joomla.org>
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\HTML\HTMLHelper;
|
||||
|
||||
/** @var Joomla\CMS\Document\HtmlDocument $this */
|
||||
|
||||
$app = Factory::getApplication();
|
||||
$wa = $this->getWebAssetManager();
|
||||
|
||||
// Color Theme
|
||||
$paramsColorName = $this->params->get('colorName', 'colors_standard');
|
||||
$assetColorName = 'theme.' . $paramsColorName;
|
||||
$wa->registerAndUseStyle($assetColorName, 'media/templates/site/moko-cassiopeia/css/global/' . $paramsColorName . '.css');
|
||||
|
||||
// Use a font scheme if set in the template style options
|
||||
$paramsFontScheme = $this->params->get('useFontScheme', false);
|
||||
$fontStyles = '';
|
||||
|
||||
if ($paramsFontScheme) {
|
||||
if (stripos($paramsFontScheme, 'https://') === 0) {
|
||||
$this->getPreloadManager()->preconnect('https://fonts.googleapis.com/', ['crossorigin' => 'anonymous']);
|
||||
$this->getPreloadManager()->preconnect('https://fonts.gstatic.com/', ['crossorigin' => 'anonymous']);
|
||||
$this->getPreloadManager()->preload($paramsFontScheme, ['as' => 'style', 'crossorigin' => 'anonymous']);
|
||||
$wa->registerAndUseStyle('fontscheme.current', $paramsFontScheme, [], ['media' => 'print', 'rel' => 'lazy-stylesheet', 'onload' => 'this.media=\'all\'', 'crossorigin' => 'anonymous']);
|
||||
|
||||
if (preg_match_all('/family=([^?:]*):/i', $paramsFontScheme, $matches) > 0) {
|
||||
$fontStyles = '--moko-cassiopeia-font-family-body: "' . str_replace('+', ' ', $matches[1][0]) . '", sans-serif;
|
||||
--moko-cassiopeia-font-family-headings: "' . str_replace('+', ' ', isset($matches[1][1]) ? $matches[1][1] : $matches[1][0]) . '", sans-serif;
|
||||
--moko-cassiopeia-font-weight-normal: 400;
|
||||
--moko-cassiopeia-font-weight-headings: 700;';
|
||||
}
|
||||
} else {
|
||||
$wa->registerAndUseStyle('fontscheme.current', $paramsFontScheme, ['version' => 'auto'], ['media' => 'print', 'rel' => 'lazy-stylesheet', 'onload' => 'this.media=\'all\'']);
|
||||
$this->getPreloadManager()->preload($wa->getAsset('style', 'fontscheme.current')->getUri() . '?' . $this->getMediaVersion(), ['as' => 'style']);
|
||||
}
|
||||
}
|
||||
|
||||
// Enable assets
|
||||
$wa->usePreset('template.MOKO-CASSIOPEIA.' . ($this->direction === 'rtl' ? 'rtl' : 'ltr'))
|
||||
->useStyle('template.active.language')
|
||||
->useStyle('template.user')
|
||||
->useScript('template.user')
|
||||
->addInlineStyle(":root {
|
||||
--hue: 214;
|
||||
--template-bg-light: #f0f4fb;
|
||||
--template-text-dark: #495057;
|
||||
--template-text-light: #ffffff;
|
||||
--template-link-color: #2a69b8;
|
||||
--template-special-color: #001B4C;
|
||||
$fontStyles
|
||||
}");
|
||||
|
||||
|
||||
// Override 'template.active' asset to set correct ltr/rtl dependency
|
||||
$wa->registerStyle('template.active', '', [], [], ['template.MOKO-CASSIOPEIA.' . ($this->direction === 'rtl' ? 'rtl' : 'ltr')]);
|
||||
|
||||
// Browsers support SVG favicons
|
||||
$this->addHeadLink(HTMLHelper::_('image', 'joomla-favicon.svg', '', [], true, 1), 'icon', 'rel', ['type' => 'image/svg+xml']);
|
||||
$this->addHeadLink(HTMLHelper::_('image', 'favicon.ico', '', [], true, 1), 'alternate icon', 'rel', ['type' => 'image/vnd.microsoft.icon']);
|
||||
$this->addHeadLink(HTMLHelper::_('image', 'joomla-favicon-pinned.svg', '', [], true, 1), 'mask-icon', 'rel', ['color' => '#000']);
|
||||
|
||||
// Defer font awesome
|
||||
$wa->getAsset('style', 'fontawesome')->setAttribute('rel', 'lazy-stylesheet');
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>">
|
||||
<head>
|
||||
<jdoc:include type="metas" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<jdoc:include type="styles" />
|
||||
<jdoc:include type="scripts" />
|
||||
</head>
|
||||
<body class="<?php echo $this->direction === 'rtl' ? 'rtl' : ''; ?>">
|
||||
<jdoc:include type="message" />
|
||||
<jdoc:include type="component" />
|
||||
</body>
|
||||
</html>
|
||||
11
templates/moko-cassiopeia/custom.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
function console_log($output, $with_script_tags = true) {
|
||||
$js_code = 'console.log(' . json_encode($output, JSON_HEX_TAG) .
|
||||
');';
|
||||
if ($with_script_tags) {
|
||||
$js_code = '<script>' . $js_code . '</script>';
|
||||
}
|
||||
echo $js_code;
|
||||
}
|
||||
?>
|
||||
Custom code included here
|
||||
226
templates/moko-cassiopeia/error.php
Normal file
@@ -0,0 +1,226 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage Templates.Moko-Cassiopeia
|
||||
*
|
||||
* @copyright (C) 2017 Open Source Matters, Inc. <https://www.joomla.org>
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\HTML\HTMLHelper;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Uri\Uri;
|
||||
|
||||
/** @var Joomla\CMS\Document\ErrorDocument $this */
|
||||
|
||||
$app = Factory::getApplication();
|
||||
$input = $app->getInput();
|
||||
$wa = $this->getWebAssetManager();
|
||||
|
||||
|
||||
// Browsers support SVG favicons
|
||||
$this->addHeadLink(HTMLHelper::_('image', '../media/templates/site/moko-cassiopeia/images/favicon/favicon.svg', '', [], true, 1), 'icon', 'rel', ['type' => 'image/svg+xml']);
|
||||
$this->addHeadLink(HTMLHelper::_('image', '../media/templates/site/moko-cassiopeia/images/favicon/favicon.ico', '', [], true, 1), 'alternate icon', 'rel', ['type' => 'image/vnd.microsoft.icon']);
|
||||
$this->addHeadLink(HTMLHelper::_('image', '../media/templates/site/moko-cassiopeia/images/favicon/favicon.svg', '', [], true, 1), 'mask-icon', 'rel', ['color' => '#fff']);
|
||||
|
||||
//add Bootsrap 5 Support
|
||||
HTMLHelper::_('bootstrap.alert');
|
||||
HTMLHelper::_('bootstrap.button');
|
||||
HTMLHelper::_('bootstrap.carousel');
|
||||
HTMLHelper::_('bootstrap.collapse');
|
||||
HTMLHelper::_('bootstrap.dropdown');
|
||||
HTMLHelper::_('bootstrap.modal');
|
||||
HTMLHelper::_('bootstrap.offcanvas');
|
||||
HTMLHelper::_('bootstrap.popover');
|
||||
HTMLHelper::_('bootstrap.scrollspy');
|
||||
HTMLHelper::_('bootstrap.tab');
|
||||
HTMLHelper::_('bootstrap.tooltip');
|
||||
HTMLHelper::_('bootstrap.toast');
|
||||
|
||||
|
||||
// Detecting Active Variables
|
||||
$option = $input->getCmd('option', '');
|
||||
$view = $input->getCmd('view', '');
|
||||
$layout = $input->getCmd('layout', '');
|
||||
$task = $input->getCmd('task', '');
|
||||
$itemid = $input->getCmd('Itemid', '');
|
||||
$sitename = htmlspecialchars($app->get('sitename'), ENT_QUOTES, 'UTF-8');
|
||||
$menu = $app->getMenu()->getActive();
|
||||
$pageclass = $menu !== null ? $menu->getParams()->get('pageclass_sfx', '') : '';
|
||||
|
||||
// Template path
|
||||
$templatePath = 'media/templates/site/moko-cassiopeia';
|
||||
|
||||
// Color Theme
|
||||
$paramsColorName = $this->params->get('colorName', 'colors_standard');
|
||||
$assetColorName = 'theme.' . $paramsColorName;
|
||||
$wa->registerAndUseStyle($assetColorName, $templatePath . '/css/global/' . $paramsColorName . '.css');
|
||||
|
||||
// Use a font scheme if set in the template style options
|
||||
$paramsFontScheme = $this->params->get('useFontScheme', false);
|
||||
$fontStyles = '';
|
||||
|
||||
if ($paramsFontScheme) {
|
||||
if (stripos($paramsFontScheme, 'https://') === 0) {
|
||||
$this->getPreloadManager()->preconnect('https://fonts.googleapis.com/', ['crossorigin' => 'anonymous']);
|
||||
$this->getPreloadManager()->preconnect('https://fonts.gstatic.com/', ['crossorigin' => 'anonymous']);
|
||||
$this->getPreloadManager()->preload($paramsFontScheme, ['as' => 'style', 'crossorigin' => 'anonymous']);
|
||||
$wa->registerAndUseStyle('fontscheme.current', $paramsFontScheme, [], ['media' => 'print', 'rel' => 'lazy-stylesheet', 'onload' => 'this.media=\'all\'', 'crossorigin' => 'anonymous']);
|
||||
|
||||
if (preg_match_all('/family=([^?:]*):/i', $paramsFontScheme, $matches) > 0) {
|
||||
$fontStyles = '--moko-cassiopeia-font-family-body: "' . str_replace('+', ' ', $matches[1][0]) . '", sans-serif;
|
||||
--moko-cassiopeia-font-family-headings: "' . str_replace('+', ' ', isset($matches[1][1]) ? $matches[1][1] : $matches[1][0]) . '", sans-serif;
|
||||
--moko-cassiopeia-font-weight-normal: 400;
|
||||
--moko-cassiopeia-font-weight-headings: 700;';
|
||||
}
|
||||
} else {
|
||||
$wa->registerAndUseStyle('fontscheme.current', $paramsFontScheme, ['version' => 'auto'], ['media' => 'print', 'rel' => 'lazy-stylesheet', 'onload' => 'this.media=\'all\'']);
|
||||
$this->getPreloadManager()->preload($wa->getAsset('style', 'fontscheme.current')->getUri() . '?' . $this->getMediaVersion(), ['as' => 'style']);
|
||||
}
|
||||
}
|
||||
|
||||
// Enable assets
|
||||
$wa->usePreset('template.MOKO-CASSIOPEIA.' . ($this->direction === 'rtl' ? 'rtl' : 'ltr'))
|
||||
->useStyle('template.active.language')
|
||||
->useStyle('template.user')
|
||||
->useScript('template.user')
|
||||
->addInlineStyle(":root {
|
||||
--hue: 214;
|
||||
--template-bg-light: #f0f4fb;
|
||||
--template-text-dark: #495057;
|
||||
--template-text-light: #ffffff;
|
||||
--template-link-color: #2a69b8;
|
||||
--template-special-color: #001B4C;
|
||||
$fontStyles
|
||||
}");
|
||||
|
||||
// Override 'template.active' asset to set correct ltr/rtl dependency
|
||||
$wa->registerStyle('template.active', '', [], [], ['template.MOKO-CASSIOPEIA.' . ($this->direction === 'rtl' ? 'rtl' : 'ltr')]);
|
||||
|
||||
// Browsers support SVG favicons
|
||||
$this->addHeadLink(HTMLHelper::_('image', 'joomla-favicon.svg', '', [], true, 1), 'icon', 'rel', ['type' => 'image/svg+xml']);
|
||||
$this->addHeadLink(HTMLHelper::_('image', 'favicon.ico', '', [], true, 1), 'alternate icon', 'rel', ['type' => 'image/vnd.microsoft.icon']);
|
||||
$this->addHeadLink(HTMLHelper::_('image', 'joomla-favicon-pinned.svg', '', [], true, 1), 'mask-icon', 'rel', ['color' => '#000']);
|
||||
|
||||
// Logo file or site title param
|
||||
if ($this->params->get('logoFile')) {
|
||||
$logo = HTMLHelper::_('image', Uri::root(false) . htmlspecialchars($this->params->get('logoFile'), ENT_QUOTES), $sitename, ['loading' => 'eager', 'decoding' => 'async'], false, 0);
|
||||
} elseif ($this->params->get('siteTitle')) {
|
||||
$logo = '<span title="' . $sitename . '">' . htmlspecialchars($this->params->get('siteTitle'), ENT_COMPAT, 'UTF-8') . '</span>';
|
||||
} else {
|
||||
$logo = HTMLHelper::_('image', 'logo.svg', $sitename, ['class' => 'logo d-inline-block', 'loading' => 'eager', 'decoding' => 'async'], true, 0);
|
||||
}
|
||||
|
||||
// Container
|
||||
$wrapper = $this->params->get('fluidContainer') ? 'wrapper-fluid' : 'wrapper-static';
|
||||
|
||||
$this->setMetaData('viewport', 'width=device-width, initial-scale=1');
|
||||
|
||||
// Defer font awesome
|
||||
$wa->getAsset('style', 'fontawesome')->setAttribute('rel', 'lazy-stylesheet');
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>">
|
||||
<head>
|
||||
<jdoc:include type="metas" />
|
||||
<jdoc:include type="styles" />
|
||||
<jdoc:include type="scripts" />
|
||||
</head>
|
||||
|
||||
<body class="site error_site <?php echo $option
|
||||
. ' ' . $wrapper
|
||||
. ' view-' . $view
|
||||
. ($layout ? ' layout-' . $layout : ' no-layout')
|
||||
. ($task ? ' task-' . $task : ' no-task')
|
||||
. ($itemid ? ' itemid-' . $itemid : '')
|
||||
. ' ' . $pageclass;
|
||||
echo ($this->direction == 'rtl' ? ' rtl' : '');
|
||||
?>">
|
||||
|
||||
<header class="header container-header full-width">
|
||||
<?php if ($this->params->get('brand', 1)) : ?>
|
||||
<div class="grid-child">
|
||||
<div class="navbar-brand">
|
||||
<a class="brand-logo" href="<?php echo $this->baseurl; ?>/">
|
||||
<?php echo $logo; ?>
|
||||
</a>
|
||||
<?php if ($this->params->get('siteDescription')) : ?>
|
||||
<div class="site-description"><?php echo htmlspecialchars($this->params->get('siteDescription')); ?></div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->countModules('menu') || $this->countModules('search')) : ?>
|
||||
<div class="grid-child container-nav">
|
||||
<?php if ($this->countModules('menu')) : ?>
|
||||
<jdoc:include type="modules" name="menu" style="none" />
|
||||
<?php endif; ?>
|
||||
<?php if ($this->countModules('search')) : ?>
|
||||
<div class="container-search">
|
||||
<jdoc:include type="modules" name="search" style="none" />
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</header>
|
||||
|
||||
<div class="site-grid">
|
||||
<div class="grid-child container-component">
|
||||
<h1 class="page-header"><?php echo Text::_('JERROR_LAYOUT_PAGE_NOT_FOUND'); ?></h1>
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<jdoc:include type="message" />
|
||||
<p><strong><?php echo Text::_('JERROR_LAYOUT_ERROR_HAS_OCCURRED_WHILE_PROCESSING_YOUR_REQUEST'); ?></strong></p>
|
||||
<p><?php echo Text::_('JERROR_LAYOUT_NOT_ABLE_TO_VISIT'); ?></p>
|
||||
<ul>
|
||||
<li><?php echo Text::_('JERROR_LAYOUT_AN_OUT_OF_DATE_BOOKMARK_FAVOURITE'); ?></li>
|
||||
<li><?php echo Text::_('JERROR_LAYOUT_MIS_TYPED_ADDRESS'); ?></li>
|
||||
<li><?php echo Text::_('JERROR_LAYOUT_SEARCH_ENGINE_OUT_OF_DATE_LISTING'); ?></li>
|
||||
<li><?php echo Text::_('JERROR_LAYOUT_YOU_HAVE_NO_ACCESS_TO_THIS_PAGE'); ?></li>
|
||||
</ul>
|
||||
<p><?php echo Text::_('JERROR_LAYOUT_GO_TO_THE_HOME_PAGE'); ?></p>
|
||||
<p><a href="<?php echo $this->baseurl; ?>/index.php" class="btn btn-secondary"><span class="icon-home" aria-hidden="true"></span> <?php echo Text::_('JERROR_LAYOUT_HOME_PAGE'); ?></a></p>
|
||||
<hr>
|
||||
<p><?php echo Text::_('JERROR_LAYOUT_PLEASE_CONTACT_THE_SYSTEM_ADMINISTRATOR'); ?></p>
|
||||
<blockquote>
|
||||
<span class="badge bg-secondary"><?php echo $this->error->getCode(); ?></span> <?php echo htmlspecialchars($this->error->getMessage(), ENT_QUOTES, 'UTF-8'); ?>
|
||||
</blockquote>
|
||||
<?php if ($this->debug) : ?>
|
||||
<div>
|
||||
<?php echo $this->renderBacktrace(); ?>
|
||||
<?php // Check if there are more Exceptions and render their data as well ?>
|
||||
<?php if ($this->error->getPrevious()) : ?>
|
||||
<?php $loop = true; ?>
|
||||
<?php // Reference $this->_error here and in the loop as setError() assigns errors to this property and we need this for the backtrace to work correctly ?>
|
||||
<?php // Make the first assignment to setError() outside the loop so the loop does not skip Exceptions ?>
|
||||
<?php $this->setError($this->_error->getPrevious()); ?>
|
||||
<?php while ($loop === true) : ?>
|
||||
<p><strong><?php echo Text::_('JERROR_LAYOUT_PREVIOUS_ERROR'); ?></strong></p>
|
||||
<p><?php echo htmlspecialchars($this->_error->getMessage(), ENT_QUOTES, 'UTF-8'); ?></p>
|
||||
<?php echo $this->renderBacktrace(); ?>
|
||||
<?php $loop = $this->setError($this->_error->getPrevious()); ?>
|
||||
<?php endwhile; ?>
|
||||
<?php // Reset the main error object to the base error ?>
|
||||
<?php $this->setError($this->error); ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php if ($this->countModules('footer')) : ?>
|
||||
<footer class="container-footer footer full-width">
|
||||
<div class="grid-child">
|
||||
<jdoc:include type="modules" name="footer" style="none" />
|
||||
</div>
|
||||
</footer>
|
||||
<?php endif; ?>
|
||||
|
||||
<jdoc:include type="modules" name="debug" style="none" />
|
||||
</body>
|
||||
</html>
|
||||
BIN
templates/moko-cassiopeia/favicon.ico
Normal file
|
After Width: | Height: | Size: 15 KiB |
178
templates/moko-cassiopeia/html/com_contact/contact/default.php
Normal file
@@ -0,0 +1,178 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_contact
|
||||
*
|
||||
* @copyright (C) 2006 Open Source Matters, Inc. <https://www.joomla.org>
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\Helper\ContentHelper;
|
||||
use Joomla\CMS\HTML\HTMLHelper;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Layout\FileLayout;
|
||||
use Joomla\CMS\Layout\LayoutHelper;
|
||||
use Joomla\CMS\Plugin\PluginHelper;
|
||||
use Joomla\CMS\Router\Route;
|
||||
use Joomla\Component\Contact\Site\Helper\RouteHelper;
|
||||
|
||||
$tparams = $this->item->params;
|
||||
$canDo = ContentHelper::getActions('com_contact', 'category', $this->item->catid);
|
||||
$canEdit = $canDo->get('core.edit') || ($canDo->get('core.edit.own') && $this->item->created_by === Factory::getUser()->id);
|
||||
$htag = $tparams->get('show_page_heading') ? 'h2' : 'h1';
|
||||
?>
|
||||
|
||||
<div class="com-contact contact" itemscope itemtype="https://schema.org/Person">
|
||||
<?php if ($canEdit) : ?>
|
||||
<div class="icons">
|
||||
<div class="text-end">
|
||||
<div>
|
||||
<?php echo HTMLHelper::_('contacticon.edit', $this->item, $tparams); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($tparams->get('show_page_heading')) : ?>
|
||||
<h1>
|
||||
<?php echo $this->escape($tparams->get('page_heading')); ?>
|
||||
</h1>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->item->name && $tparams->get('show_name')) : ?>
|
||||
<div class="page-header">
|
||||
<<?php echo $htag; ?>>
|
||||
<?php if ($this->item->published == 0) : ?>
|
||||
<span class="badge bg-warning text-light"><?php echo Text::_('JUNPUBLISHED'); ?></span>
|
||||
<?php endif; ?>
|
||||
<span class="contact-name" itemprop="name"><?php echo $this->item->name; ?></span>
|
||||
</<?php echo $htag; ?>>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="row gy-4 mb-4">
|
||||
<div class="col-md-6">
|
||||
<?php $show_contact_category = $tparams->get('show_contact_category'); ?>
|
||||
|
||||
<?php if ($show_contact_category === 'show_no_link') : ?>
|
||||
<h3>
|
||||
<span class="contact-category"><?php echo $this->item->category_title; ?></span>
|
||||
</h3>
|
||||
<?php elseif ($show_contact_category === 'show_with_link') : ?>
|
||||
<?php $contactLink = RouteHelper::getCategoryRoute($this->item->catid, $this->item->language); ?>
|
||||
<h3>
|
||||
<span class="contact-category"><a href="<?php echo $contactLink; ?>">
|
||||
<?php echo $this->escape($this->item->category_title); ?></a>
|
||||
</span>
|
||||
</h3>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php echo $this->item->event->afterDisplayTitle; ?>
|
||||
|
||||
<?php if ($tparams->get('show_contact_list') && count($this->contacts) > 1) : ?>
|
||||
<form action="#" method="get" name="selectForm" id="selectForm">
|
||||
<label for="select_contact"><?php echo Text::_('COM_CONTACT_SELECT_CONTACT'); ?></label>
|
||||
<?php echo HTMLHelper::_(
|
||||
'select.genericlist',
|
||||
$this->contacts,
|
||||
'select_contact',
|
||||
'class="form-select" onchange="document.location.href = this.value"',
|
||||
'link',
|
||||
'name',
|
||||
$this->item->link
|
||||
);
|
||||
?>
|
||||
</form>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($tparams->get('show_tags', 1) && !empty($this->item->tags->itemTags)) : ?>
|
||||
<div class="com-contact__tags">
|
||||
<?php $this->item->tagLayout = new FileLayout('joomla.content.tags'); ?>
|
||||
<?php echo $this->item->tagLayout->render($this->item->tags->itemTags); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php echo $this->item->event->beforeDisplayContent; ?>
|
||||
|
||||
<?php if ($this->params->get('show_info', 1)) : ?>
|
||||
<div class="com-contact__container">
|
||||
<?php echo '<h3>' . Text::_('COM_CONTACT_DETAILS') . '</h3>'; ?>
|
||||
|
||||
<?php if ($this->item->image && $tparams->get('show_image')) : ?>
|
||||
<div class="com-contact__thumbnail thumbnail">
|
||||
<?php echo LayoutHelper::render(
|
||||
'joomla.html.image',
|
||||
[
|
||||
'src' => $this->item->image,
|
||||
'alt' => $this->item->name,
|
||||
'itemprop' => 'image',
|
||||
]
|
||||
); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->item->con_position && $tparams->get('show_position')) : ?>
|
||||
<dl class="com-contact__position contact-position dl-horizontal">
|
||||
<dt><?php echo Text::_('COM_CONTACT_POSITION'); ?>:</dt>
|
||||
<dd itemprop="jobTitle">
|
||||
<?php echo $this->item->con_position; ?>
|
||||
</dd>
|
||||
</dl>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="com-contact__info">
|
||||
<?php echo $this->loadTemplate('address'); ?>
|
||||
|
||||
<?php if ($tparams->get('allow_vcard')) : ?>
|
||||
<?php echo Text::_('COM_CONTACT_DOWNLOAD_INFORMATION_AS'); ?>
|
||||
<a href="<?php echo Route::_('index.php?option=com_contact&view=contact&catid=' . $this->item->catslug . '&id=' . $this->item->slug . '&format=vcf'); ?>">
|
||||
<?php echo Text::_('COM_CONTACT_VCARD'); ?></a>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($tparams->get('show_links')) : ?>
|
||||
<?php echo $this->loadTemplate('links'); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($tparams->get('show_articles') && $this->item->user_id && $this->item->articles) : ?>
|
||||
<?php echo '<h3>' . Text::_('JGLOBAL_ARTICLES') . '</h3>'; ?>
|
||||
|
||||
<?php echo $this->loadTemplate('articles'); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($tparams->get('show_profile') && $this->item->user_id && PluginHelper::isEnabled('user', 'profile')) : ?>
|
||||
<?php echo '<h3>' . Text::_('COM_CONTACT_PROFILE') . '</h3>'; ?>
|
||||
|
||||
<?php echo $this->loadTemplate('profile'); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($tparams->get('show_user_custom_fields') && $this->contactUser) : ?>
|
||||
<?php echo $this->loadTemplate('user_custom_fields'); ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<?php if ($tparams->get('show_email_form') && ($this->item->email_to || $this->item->user_id)) : ?>
|
||||
<?php echo '<h3>' . Text::_('COM_CONTACT_EMAIL_FORM') . '</h3>'; ?>
|
||||
|
||||
<?php echo $this->loadTemplate('form'); ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if ($this->item->misc && $tparams->get('show_misc')) : ?>
|
||||
<?php echo '<h3>' . Text::_('COM_CONTACT_OTHER_INFORMATION') . '</h3>'; ?>
|
||||
|
||||
<div class="com-contact__miscinfo contact-miscinfo">
|
||||
<div class="contact-misc">
|
||||
<?php echo $this->item->misc; ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php echo $this->item->event->afterDisplayContent; ?>
|
||||
</div>
|
||||
144
templates/moko-cassiopeia/html/com_content/article/default.php
Normal file
@@ -0,0 +1,144 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_content
|
||||
*
|
||||
* @copyright (C) 2006 Open Source Matters, Inc. <https://www.joomla.org>
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\HTML\HTMLHelper;
|
||||
use Joomla\CMS\Language\Associations;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Layout\FileLayout;
|
||||
use Joomla\CMS\Layout\LayoutHelper;
|
||||
use Joomla\CMS\Router\Route;
|
||||
use Joomla\CMS\Uri\Uri;
|
||||
use Joomla\Component\Content\Administrator\Extension\ContentComponent;
|
||||
use Joomla\Component\Content\Site\Helper\RouteHelper;
|
||||
|
||||
// Create shortcuts to some parameters.
|
||||
$params = $this->item->params;
|
||||
$canEdit = $params->get('access-edit');
|
||||
$user = Factory::getUser();
|
||||
$info = $params->get('info_block_position', 0);
|
||||
$htag = $this->params->get('show_page_heading') ? 'h2' : 'h1';
|
||||
|
||||
// Check if associations are implemented. If they are, define the parameter.
|
||||
$assocParam = (Associations::isEnabled() && $params->get('show_associations'));
|
||||
$currentDate = Factory::getDate()->format('Y-m-d H:i:s');
|
||||
$isNotPublishedYet = $this->item->publish_up > $currentDate;
|
||||
$isExpired = !is_null($this->item->publish_down) && $this->item->publish_down < $currentDate;
|
||||
?>
|
||||
<div class="com-content-article item-page<?php echo $this->pageclass_sfx; ?>" itemscope itemtype="https://schema.org/Article">
|
||||
<meta itemprop="inLanguage" content="<?php echo ($this->item->language === '*') ? Factory::getApplication()->get('language') : $this->item->language; ?>">
|
||||
<?php if ($this->params->get('show_page_heading')) : ?>
|
||||
<div class="page-header">
|
||||
<h1> <?php echo $this->escape($this->params->get('page_heading')); ?> </h1>
|
||||
</div>
|
||||
<?php endif;
|
||||
if (!empty($this->item->pagination) && !$this->item->paginationposition && $this->item->paginationrelative) {
|
||||
echo $this->item->pagination;
|
||||
}
|
||||
?>
|
||||
|
||||
<?php $useDefList = $params->get('show_modify_date') || $params->get('show_publish_date') || $params->get('show_create_date')
|
||||
|| $params->get('show_hits') || $params->get('show_category') || $params->get('show_parent_category') || $params->get('show_author') || $assocParam; ?>
|
||||
|
||||
<?php if ($params->get('show_title')) : ?>
|
||||
<div class="page-header">
|
||||
<<?php echo $htag; ?> itemprop="headline">
|
||||
<?php echo $this->escape($this->item->title); ?>
|
||||
</<?php echo $htag; ?>>
|
||||
<?php if ($this->item->state == ContentComponent::CONDITION_UNPUBLISHED) : ?>
|
||||
<span class="badge bg-warning text-light"><?php echo Text::_('JUNPUBLISHED'); ?></span>
|
||||
<?php endif; ?>
|
||||
<?php if ($isNotPublishedYet) : ?>
|
||||
<span class="badge bg-warning text-light"><?php echo Text::_('JNOTPUBLISHEDYET'); ?></span>
|
||||
<?php endif; ?>
|
||||
<?php if ($isExpired) : ?>
|
||||
<span class="badge bg-warning text-light"><?php echo Text::_('JEXPIRED'); ?></span>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ($canEdit) : ?>
|
||||
<?php echo LayoutHelper::render('joomla.content.icons', ['params' => $params, 'item' => $this->item]); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php // Content is generated by content plugin event "onContentAfterTitle" ?>
|
||||
<?php echo $this->item->event->afterDisplayTitle; ?>
|
||||
|
||||
<?php if ($useDefList && ($info == 0 || $info == 2)) : ?>
|
||||
<?php echo LayoutHelper::render('joomla.content.info_block', ['item' => $this->item, 'params' => $params, 'position' => 'above']); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($info == 0 && $params->get('show_tags', 1) && !empty($this->item->tags->itemTags)) : ?>
|
||||
<?php $this->item->tagLayout = new FileLayout('joomla.content.tags'); ?>
|
||||
|
||||
<?php echo $this->item->tagLayout->render($this->item->tags->itemTags); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php // Content is generated by content plugin event "onContentBeforeDisplay" ?>
|
||||
<?php echo $this->item->event->beforeDisplayContent; ?>
|
||||
|
||||
<?php if ((int) $params->get('urls_position', 0) === 0) : ?>
|
||||
<?php echo $this->loadTemplate('links'); ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('access-view')) : ?>
|
||||
<?php echo LayoutHelper::render('joomla.content.full_image', $this->item); ?>
|
||||
<?php
|
||||
if (!empty($this->item->pagination) && !$this->item->paginationposition && !$this->item->paginationrelative) :
|
||||
echo $this->item->pagination;
|
||||
endif;
|
||||
?>
|
||||
<?php if (isset($this->item->toc)) :
|
||||
echo $this->item->toc;
|
||||
endif; ?>
|
||||
<div itemprop="articleBody" class="com-content-article__body">
|
||||
<?php echo $this->item->text; ?>
|
||||
</div>
|
||||
|
||||
<?php if ($info == 1 || $info == 2) : ?>
|
||||
<?php if ($useDefList) : ?>
|
||||
<?php echo LayoutHelper::render('joomla.content.info_block', ['item' => $this->item, 'params' => $params, 'position' => 'below']); ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_tags', 1) && !empty($this->item->tags->itemTags)) : ?>
|
||||
<?php $this->item->tagLayout = new FileLayout('joomla.content.tags'); ?>
|
||||
<?php echo $this->item->tagLayout->render($this->item->tags->itemTags); ?>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php
|
||||
if (!empty($this->item->pagination) && $this->item->paginationposition && !$this->item->paginationrelative) :
|
||||
echo $this->item->pagination;
|
||||
?>
|
||||
<?php endif; ?>
|
||||
<?php if ((int) $params->get('urls_position', 0) === 1) : ?>
|
||||
<?php echo $this->loadTemplate('links'); ?>
|
||||
<?php endif; ?>
|
||||
<?php // Optional teaser intro text for guests ?>
|
||||
<?php elseif ($params->get('show_noauth') == true && $user->get('guest')) : ?>
|
||||
<?php echo LayoutHelper::render('joomla.content.intro_image', $this->item); ?>
|
||||
<?php echo HTMLHelper::_('content.prepare', $this->item->introtext); ?>
|
||||
<?php // Optional link to let them register to see the whole article. ?>
|
||||
<?php if ($params->get('show_readmore') && $this->item->fulltext != null) : ?>
|
||||
<?php $menu = Factory::getApplication()->getMenu(); ?>
|
||||
<?php $active = $menu->getActive(); ?>
|
||||
<?php $itemId = $active->id; ?>
|
||||
<?php $link = new Uri(Route::_('index.php?option=com_users&view=login&Itemid=' . $itemId, false)); ?>
|
||||
<?php $link->setVar('return', base64_encode(RouteHelper::getArticleRoute($this->item->slug, $this->item->catid, $this->item->language))); ?>
|
||||
<?php echo LayoutHelper::render('joomla.content.readmore', ['item' => $this->item, 'params' => $params, 'link' => $link]); ?>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
<?php
|
||||
if (!empty($this->item->pagination) && $this->item->paginationposition && $this->item->paginationrelative) :
|
||||
echo $this->item->pagination;
|
||||
?>
|
||||
<?php endif; ?>
|
||||
<?php // Content is generated by content plugin event "onContentAfterDisplay" ?>
|
||||
<?php echo $this->item->event->afterDisplayContent; ?>
|
||||
</div>
|
||||
@@ -0,0 +1,94 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_content
|
||||
*
|
||||
* @copyright (C) 2020 Open Source Matters, Inc. <https://www.joomla.org>
|
||||
* @copyright (C) 2025 Jonathan Miler || Moko Consulting <https://mokoconsulting.tech>
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\HTML\HTMLHelper;
|
||||
|
||||
// Create shortcut
|
||||
$urls = json_decode($this->item->urls);
|
||||
|
||||
// Create shortcuts to some parameters.
|
||||
$params = $this->item->params;
|
||||
if ($urls && (!empty($urls->urla) || !empty($urls->urlb) || !empty($urls->urlc))) :
|
||||
?>
|
||||
<div class="com-content-article__links content-links">
|
||||
<ul class="com-content-article__links content-list">
|
||||
<?php
|
||||
$urlarray = [
|
||||
[$urls->urla, $urls->urlatext, $urls->targeta, 'a'],
|
||||
[$urls->urlb, $urls->urlbtext, $urls->targetb, 'b'],
|
||||
[$urls->urlc, $urls->urlctext, $urls->targetc, 'c']
|
||||
];
|
||||
foreach ($urlarray as $url) :
|
||||
$link = $url[0];
|
||||
$label = $url[1];
|
||||
$target = $url[2];
|
||||
$id = $url[3];
|
||||
|
||||
if (! $link) :
|
||||
continue;
|
||||
endif;
|
||||
|
||||
// If no label is present, take the link
|
||||
$label = $label ?: $link;
|
||||
|
||||
// If no target is present, use the default
|
||||
$target = $target ?: $params->get('target' . $id);
|
||||
?>
|
||||
<li class="com-content-article__link content-links-<?php echo $id; ?>">
|
||||
<?php
|
||||
// Compute the correct link
|
||||
|
||||
switch ($target) {
|
||||
case 1:
|
||||
// Open in a new window
|
||||
echo '<a href="' . htmlspecialchars($link, ENT_COMPAT, 'UTF-8') . '" target="_blank" rel="nofollow noopener noreferrer">' .
|
||||
htmlspecialchars($label, ENT_COMPAT, 'UTF-8') . '</a>';
|
||||
break;
|
||||
|
||||
case 2:
|
||||
// Open in a popup window
|
||||
$attribs = 'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=600,height=600';
|
||||
echo "<a href=\"" . htmlspecialchars($link, ENT_COMPAT, 'UTF-8') . "\" onclick=\"window.open(this.href, 'targetWindow', '" . $attribs . "'); return false;\" rel=\"noopener noreferrer\">" .
|
||||
htmlspecialchars($label, ENT_COMPAT, 'UTF-8') . '</a>';
|
||||
break;
|
||||
case 3:
|
||||
echo '<a href="' . htmlspecialchars($link, ENT_COMPAT, 'UTF-8') . '" rel="noopener noreferrer" data-bs-toggle="modal" data-bs-target="#linkModal">' .
|
||||
htmlspecialchars($label, ENT_COMPAT, 'UTF-8') . ' </a>';
|
||||
echo HTMLHelper::_(
|
||||
'bootstrap.renderModal',
|
||||
'linkModal',
|
||||
[
|
||||
'url' => $link,
|
||||
'title' => $label,
|
||||
'height' => '100%',
|
||||
'width' => '100%',
|
||||
'modalWidth' => '500',
|
||||
'bodyHeight' => '500',
|
||||
'footer' => '<button type="button" class="btn btn-secondary" data-bs-dismiss="modal" aria-hidden="true">'
|
||||
. \Joomla\CMS\Language\Text::_('JLIB_HTML_BEHAVIOR_CLOSE') . '</button>'
|
||||
]
|
||||
);
|
||||
break;
|
||||
|
||||
default:
|
||||
// Open in parent window
|
||||
echo '<a href="' . htmlspecialchars($link, ENT_COMPAT, 'UTF-8') . '" rel="nofollow">' .
|
||||
htmlspecialchars($label, ENT_COMPAT, 'UTF-8') . ' </a>';
|
||||
break;
|
||||
}
|
||||
?>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_content
|
||||
*
|
||||
* @copyright (C) 2009 Open Source Matters, Inc. <https://www.joomla.org>
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Layout\LayoutHelper;
|
||||
|
||||
// Add strings for translations in Javascript.
|
||||
Text::script('JGLOBAL_EXPAND_CATEGORIES');
|
||||
Text::script('JGLOBAL_COLLAPSE_CATEGORIES');
|
||||
|
||||
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
|
||||
$wa = $this->document->getWebAssetManager();
|
||||
$wa->getRegistry()->addExtensionRegistryFile('com_categories');
|
||||
$wa->usePreset('com_categories.shared-categories-accordion');
|
||||
|
||||
?>
|
||||
<div class="com-content-categories categories-list">
|
||||
<?php
|
||||
echo LayoutHelper::render('joomla.content.categories_default', $this);
|
||||
echo $this->loadTemplate('items');
|
||||
?>
|
||||
</div>
|
||||
@@ -0,0 +1,75 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_content
|
||||
*
|
||||
* @copyright (C) 2010 Open Source Matters, Inc. <https://www.joomla.org>
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\HTML\HTMLHelper;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Router\Route;
|
||||
use Joomla\Component\Content\Site\Helper\RouteHelper;
|
||||
|
||||
if ($this->maxLevelcat != 0 && count($this->items[$this->parent->id]) > 0) :
|
||||
?>
|
||||
<div class="com-content-categories__items">
|
||||
<?php foreach ($this->items[$this->parent->id] as $id => $item) : ?>
|
||||
<?php if ($this->params->get('show_empty_categories_cat') || $item->numitems || count($item->getChildren())) : ?>
|
||||
<div class="com-content-categories__item">
|
||||
<div class="com-content-categories__item-title-wrapper">
|
||||
<div class="com-content-categories__item-title">
|
||||
<a href="<?php echo Route::_(RouteHelper::getCategoryRoute($item->id, $item->language)); ?>">
|
||||
<?php echo $this->escape($item->title); ?></a>
|
||||
<?php if ($this->params->get('show_cat_num_articles_cat') == 1) :?>
|
||||
<span class="badge bg-info">
|
||||
<?php echo Text::_('COM_CONTENT_NUM_ITEMS'); ?>
|
||||
<?php echo $item->numitems; ?>
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php if (count($item->getChildren()) > 0 && $this->maxLevelcat > 1) : ?>
|
||||
<button
|
||||
type="button"
|
||||
id="category-btn-<?php echo $item->id; ?>"
|
||||
data-category-id="<?php echo $item->id; ?>"
|
||||
class="btn btn-secondary btn-sm"
|
||||
aria-expanded="false"
|
||||
aria-label="<?php echo Text::_('JGLOBAL_EXPAND_CATEGORIES'); ?>"
|
||||
>
|
||||
<span class="icon-plus" aria-hidden="true"></span>
|
||||
</button>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php if ($this->params->get('show_description_image') && $item->getParams()->get('image')) : ?>
|
||||
<?php echo HTMLHelper::_('image', $item->getParams()->get('image'), $item->getParams()->get('image_alt')); ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('show_subcat_desc_cat') == 1) : ?>
|
||||
<?php if ($item->description) : ?>
|
||||
<div class="com-content-categories__description category-desc">
|
||||
<?php echo HTMLHelper::_('content.prepare', $item->description, '', 'com_content.categories'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (count($item->getChildren()) > 0 && $this->maxLevelcat > 1) : ?>
|
||||
<div class="com-content-categories__children" id="category-<?php echo $item->id; ?>" hidden="">
|
||||
<?php
|
||||
$this->items[$item->id] = $item->getChildren();
|
||||
$this->parent = $item;
|
||||
$this->maxLevelcat--;
|
||||
echo $this->loadTemplate('items');
|
||||
$this->parent = $item->getParent();
|
||||
$this->maxLevelcat++;
|
||||
?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
141
templates/moko-cassiopeia/html/com_content/category/blog.php
Normal file
@@ -0,0 +1,141 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_content
|
||||
*
|
||||
* @copyright (C) 2006 Open Source Matters, Inc. <https://www.joomla.org>
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\HTML\HTMLHelper;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Layout\FileLayout;
|
||||
use Joomla\CMS\Layout\LayoutHelper;
|
||||
|
||||
$app = Factory::getApplication();
|
||||
|
||||
$this->category->text = $this->category->description;
|
||||
$app->triggerEvent('onContentPrepare', [$this->category->extension . '.categories', &$this->category, &$this->params, 0]);
|
||||
$this->category->description = $this->category->text;
|
||||
|
||||
$results = $app->triggerEvent('onContentAfterTitle', [$this->category->extension . '.categories', &$this->category, &$this->params, 0]);
|
||||
$afterDisplayTitle = trim(implode("\n", $results));
|
||||
|
||||
$results = $app->triggerEvent('onContentBeforeDisplay', [$this->category->extension . '.categories', &$this->category, &$this->params, 0]);
|
||||
$beforeDisplayContent = trim(implode("\n", $results));
|
||||
|
||||
$results = $app->triggerEvent('onContentAfterDisplay', [$this->category->extension . '.categories', &$this->category, &$this->params, 0]);
|
||||
$afterDisplayContent = trim(implode("\n", $results));
|
||||
|
||||
$htag = $this->params->get('show_page_heading') ? 'h2' : 'h1';
|
||||
|
||||
?>
|
||||
<div class="com-content-category-blog blog" itemscope itemtype="https://schema.org/Blog">
|
||||
<?php if ($this->params->get('show_page_heading')) : ?>
|
||||
<div class="page-header">
|
||||
<h1> <?php echo $this->escape($this->params->get('page_heading')); ?> </h1>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('show_category_title', 1)) : ?>
|
||||
<<?php echo $htag; ?>>
|
||||
<?php echo $this->category->title; ?>
|
||||
</<?php echo $htag; ?>>
|
||||
<?php endif; ?>
|
||||
<?php echo $afterDisplayTitle; ?>
|
||||
|
||||
<?php if ($this->params->get('show_cat_tags', 1) && !empty($this->category->tags->itemTags)) : ?>
|
||||
<?php $this->category->tagLayout = new FileLayout('joomla.content.tags'); ?>
|
||||
<?php echo $this->category->tagLayout->render($this->category->tags->itemTags); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($beforeDisplayContent || $afterDisplayContent || $this->params->get('show_description', 1) || $this->params->def('show_description_image', 1)) : ?>
|
||||
<div class="category-desc clearfix">
|
||||
<?php if ($this->params->get('show_description_image') && $this->category->getParams()->get('image')) : ?>
|
||||
<?php echo LayoutHelper::render(
|
||||
'joomla.html.image',
|
||||
[
|
||||
'src' => $this->category->getParams()->get('image'),
|
||||
'alt' => empty($this->category->getParams()->get('image_alt')) && empty($this->category->getParams()->get('image_alt_empty')) ? false : $this->category->getParams()->get('image_alt'),
|
||||
]
|
||||
); ?>
|
||||
<?php endif; ?>
|
||||
<?php echo $beforeDisplayContent; ?>
|
||||
<?php if ($this->params->get('show_description') && $this->category->description) : ?>
|
||||
<?php echo HTMLHelper::_('content.prepare', $this->category->description, '', 'com_content.category'); ?>
|
||||
<?php endif; ?>
|
||||
<?php echo $afterDisplayContent; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (empty($this->lead_items) && empty($this->link_items) && empty($this->intro_items)) : ?>
|
||||
<?php if ($this->params->get('show_no_articles', 1)) : ?>
|
||||
<div class="alert alert-info">
|
||||
<span class="icon-info-circle" aria-hidden="true"></span><span class="visually-hidden"><?php echo Text::_('INFO'); ?></span>
|
||||
<?php echo Text::_('COM_CONTENT_NO_ARTICLES'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (!empty($this->lead_items)) : ?>
|
||||
<div class="com-content-category-blog__items blog-items items-leading <?php echo $this->params->get('blog_class_leading'); ?>">
|
||||
<?php foreach ($this->lead_items as &$item) : ?>
|
||||
<div class="com-content-category-blog__item blog-item" itemprop="blogPost" itemscope itemtype="https://schema.org/BlogPosting">
|
||||
<?php
|
||||
$this->item = &$item;
|
||||
echo $this->loadTemplate('item');
|
||||
?>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (!empty($this->intro_items)) : ?>
|
||||
<?php $blogClass = $this->params->get('blog_class', ''); ?>
|
||||
<?php if ((int) $this->params->get('num_columns') > 1) : ?>
|
||||
<?php $blogClass .= (int) $this->params->get('multi_column_order', 0) === 0 ? ' masonry-' : ' columns-'; ?>
|
||||
<?php $blogClass .= (int) $this->params->get('num_columns'); ?>
|
||||
<?php endif; ?>
|
||||
<div class="com-content-category-blog__items blog-items <?php echo $blogClass; ?>">
|
||||
<?php foreach ($this->intro_items as $key => &$item) : ?>
|
||||
<div class="com-content-category-blog__item blog-item"
|
||||
itemprop="blogPost" itemscope itemtype="https://schema.org/BlogPosting">
|
||||
<?php
|
||||
$this->item = & $item;
|
||||
echo $this->loadTemplate('item');
|
||||
?>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (!empty($this->link_items)) : ?>
|
||||
<div class="items-more">
|
||||
<?php echo $this->loadTemplate('links'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->maxLevel != 0 && !empty($this->children[$this->category->id])) : ?>
|
||||
<div class="com-content-category-blog__children cat-children">
|
||||
<?php if ($this->params->get('show_category_heading_title_text', 1) == 1) : ?>
|
||||
<h3> <?php echo Text::_('JGLOBAL_SUBCATEGORIES'); ?> </h3>
|
||||
<?php endif; ?>
|
||||
<?php echo $this->loadTemplate('children'); ?> </div>
|
||||
<?php endif; ?>
|
||||
<?php if (($this->params->def('show_pagination', 1) == 1 || ($this->params->get('show_pagination') == 2)) && ($this->pagination->pagesTotal > 1)) : ?>
|
||||
<div class="com-content-category-blog__navigation w-100">
|
||||
<?php if ($this->params->def('show_pagination_results', 1)) : ?>
|
||||
<p class="com-content-category-blog__counter counter float-end pt-3 pe-2">
|
||||
<?php echo $this->pagination->getPagesCounter(); ?>
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
<div class="com-content-category-blog__pagination">
|
||||
<?php echo $this->pagination->getPagesLinks(); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
@@ -0,0 +1,84 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_content
|
||||
*
|
||||
* @copyright (C) 2010 Open Source Matters, Inc. <https://www.joomla.org>
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\HTML\HTMLHelper;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Router\Route;
|
||||
use Joomla\Component\Content\Site\Helper\RouteHelper;
|
||||
|
||||
$lang = Factory::getLanguage();
|
||||
$user = Factory::getUser();
|
||||
$groups = $user->getAuthorisedViewLevels();
|
||||
|
||||
if ($this->maxLevel != 0 && count($this->children[$this->category->id]) > 0) : ?>
|
||||
<?php foreach ($this->children[$this->category->id] as $id => $child) : ?>
|
||||
<?php // Check whether category access level allows access to subcategories. ?>
|
||||
<?php if (in_array($child->access, $groups)) : ?>
|
||||
<?php if ($this->params->get('show_empty_categories') || $child->numitems || count($child->getChildren())) : ?>
|
||||
<div class="com-content-category-blog__child">
|
||||
<?php if ($lang->isRtl()) : ?>
|
||||
<h3 class="page-header item-title">
|
||||
<?php if ($this->params->get('show_cat_num_articles', 1)) : ?>
|
||||
<span class="badge bg-info tip">
|
||||
<?php echo $child->getNumItems(true); ?>
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
<a href="<?php echo Route::_(RouteHelper::getCategoryRoute($child->id, $child->language)); ?>">
|
||||
<?php echo $this->escape($child->title); ?></a>
|
||||
|
||||
<?php if ($this->maxLevel > 1 && count($child->getChildren()) > 0) : ?>
|
||||
<a href="#category-<?php echo $child->id; ?>" data-bs-toggle="collapse" class="btn btn-sm float-end" aria-label="<?php echo Text::_('JGLOBAL_EXPAND_CATEGORIES'); ?>"><span class="icon-plus" aria-hidden="true"></span></a>
|
||||
<?php endif; ?>
|
||||
</h3>
|
||||
<?php else : ?>
|
||||
<h3 class="page-header item-title"><a href="<?php echo Route::_(RouteHelper::getCategoryRoute($child->id, $child->language)); ?>">
|
||||
<?php echo $this->escape($child->title); ?></a>
|
||||
<?php if ($this->params->get('show_cat_num_articles', 1)) : ?>
|
||||
<span class="badge bg-info">
|
||||
<?php echo Text::_('COM_CONTENT_NUM_ITEMS'); ?>
|
||||
<?php echo $child->getNumItems(true); ?>
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->maxLevel > 1 && count($child->getChildren()) > 0) : ?>
|
||||
<a href="#category-<?php echo $child->id; ?>" data-bs-toggle="collapse" class="btn btn-sm float-end" aria-label="<?php echo Text::_('JGLOBAL_EXPAND_CATEGORIES'); ?>"><span class="icon-plus" aria-hidden="true"></span></a>
|
||||
<?php endif; ?>
|
||||
</h3>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('show_subcat_desc') == 1) : ?>
|
||||
<?php if ($child->description) : ?>
|
||||
<div class="com-content-category-blog__description category-desc">
|
||||
<?php echo HTMLHelper::_('content.prepare', $child->description, '', 'com_content.category'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->maxLevel > 1 && count($child->getChildren()) > 0) : ?>
|
||||
<div class="com-content-category-blog__children collapse fade" id="category-<?php echo $child->id; ?>">
|
||||
<?php
|
||||
$this->children[$child->id] = $child->getChildren();
|
||||
$this->category = $child;
|
||||
$this->maxLevel--;
|
||||
echo $this->loadTemplate('children');
|
||||
$this->category = $child->getParent();
|
||||
$this->maxLevel++;
|
||||
?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
|
||||
<?php endif;
|
||||
@@ -0,0 +1,100 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_content
|
||||
*
|
||||
* @copyright (C) 2006 Open Source Matters, Inc. <https://www.joomla.org>
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\Language\Associations;
|
||||
use Joomla\CMS\Layout\LayoutHelper;
|
||||
use Joomla\CMS\Router\Route;
|
||||
use Joomla\CMS\Uri\Uri;
|
||||
use Joomla\Component\Content\Administrator\Extension\ContentComponent;
|
||||
use Joomla\Component\Content\Site\Helper\RouteHelper;
|
||||
|
||||
// Create a shortcut for params.
|
||||
$params = $this->item->params;
|
||||
$canEdit = $this->item->params->get('access-edit');
|
||||
$info = $params->get('info_block_position', 0);
|
||||
|
||||
// Check if associations are implemented. If they are, define the parameter.
|
||||
$assocParam = (Associations::isEnabled() && $params->get('show_associations'));
|
||||
|
||||
$currentDate = Factory::getDate()->format('Y-m-d H:i:s');
|
||||
$isUnpublished = ($this->item->state == ContentComponent::CONDITION_UNPUBLISHED || $this->item->publish_up > $currentDate)
|
||||
|| ($this->item->publish_down < $currentDate && $this->item->publish_down !== null);
|
||||
|
||||
?>
|
||||
<section id="<?php echo $this->item->alias;?>">
|
||||
<?php echo LayoutHelper::render('joomla.content.intro_image', $this->item); ?>
|
||||
|
||||
<div class="item-content">
|
||||
<?php if ($isUnpublished) : ?>
|
||||
<div class="system-unpublished">
|
||||
<?php endif; ?>
|
||||
<?php echo LayoutHelper::render('joomla.content.blog_style_default_item_title', $this->item); ?>
|
||||
|
||||
<?php if ($canEdit) : ?>
|
||||
<?php echo LayoutHelper::render('joomla.content.icons', ['params' => $params, 'item' => $this->item]); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php // @todo Not that elegant would be nice to group the params ?>
|
||||
<?php $useDefList = ($params->get('show_modify_date') || $params->get('show_publish_date') || $params->get('show_create_date')
|
||||
|| $params->get('show_hits') || $params->get('show_category') || $params->get('show_parent_category') || $params->get('show_author') || $assocParam); ?>
|
||||
|
||||
<?php if ($useDefList && ($info == 0 || $info == 2)) : ?>
|
||||
<?php echo LayoutHelper::render('joomla.content.info_block', ['item' => $this->item, 'params' => $params, 'position' => 'above']); ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($info == 0 && $params->get('show_tags', 1) && !empty($this->item->tags->itemTags)) : ?>
|
||||
<?php echo LayoutHelper::render('joomla.content.tags', $this->item->tags->itemTags); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (!$params->get('show_intro')) : ?>
|
||||
<?php // Content is generated by content plugin event "onContentAfterTitle" ?>
|
||||
<?php echo $this->item->event->afterDisplayTitle; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php // Content is generated by content plugin event "onContentBeforeDisplay" ?>
|
||||
<?php echo $this->item->event->beforeDisplayContent; ?>
|
||||
|
||||
<?php echo $this->item->introtext; ?>
|
||||
|
||||
<?php if ($info == 1 || $info == 2) : ?>
|
||||
<?php if ($useDefList) : ?>
|
||||
<?php echo LayoutHelper::render('joomla.content.info_block', ['item' => $this->item, 'params' => $params, 'position' => 'below']); ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_tags', 1) && !empty($this->item->tags->itemTags)) : ?>
|
||||
<?php echo LayoutHelper::render('joomla.content.tags', $this->item->tags->itemTags); ?>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($params->get('show_readmore') && $this->item->readmore) :
|
||||
if ($params->get('access-view')) :
|
||||
$link = Route::_(RouteHelper::getArticleRoute($this->item->slug, $this->item->catid, $this->item->language));
|
||||
else :
|
||||
$menu = Factory::getApplication()->getMenu();
|
||||
$active = $menu->getActive();
|
||||
$itemId = $active->id;
|
||||
$link = new Uri(Route::_('index.php?option=com_users&view=login&Itemid=' . $itemId, false));
|
||||
$link->setVar('return', base64_encode(RouteHelper::getArticleRoute($this->item->slug, $this->item->catid, $this->item->language)));
|
||||
endif; ?>
|
||||
|
||||
<?php echo LayoutHelper::render('joomla.content.readmore', ['item' => $this->item, 'params' => $params, 'link' => $link]); ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($isUnpublished) : ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php // Content is generated by content plugin event "onContentAfterDisplay" ?>
|
||||
<?php echo $this->item->event->afterDisplayContent; ?>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_content
|
||||
*
|
||||
* @copyright (C) 2006 Open Source Matters, Inc. <https://www.joomla.org>
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Router\Route;
|
||||
use Joomla\Component\Content\Site\Helper\RouteHelper;
|
||||
|
||||
?>
|
||||
|
||||
<ol class="com-content-blog__links">
|
||||
<?php foreach ($this->link_items as $item) : ?>
|
||||
<li class="com-content-blog__link">
|
||||
<a href="<?php echo Route::_(RouteHelper::getArticleRoute($item->slug, $item->catid, $item->language)); ?>">
|
||||
<?php echo $item->title; ?></a>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ol>
|
||||
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_content
|
||||
*
|
||||
* @copyright (C) 2006 Open Source Matters, Inc. <https://www.joomla.org>
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Layout\LayoutHelper;
|
||||
|
||||
?>
|
||||
<div class="com-content-category category-list">
|
||||
|
||||
<?php
|
||||
$this->subtemplatename = 'articles';
|
||||
echo LayoutHelper::render('joomla.content.category_default', $this);
|
||||
?>
|
||||
|
||||
</div>
|
||||
@@ -0,0 +1,347 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_content
|
||||
*
|
||||
* @copyright (C) 2009 Open Source Matters, Inc. <https://www.joomla.org>
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Component\ComponentHelper;
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\HTML\HTMLHelper;
|
||||
use Joomla\CMS\Language\Associations;
|
||||
use Joomla\CMS\Language\Multilanguage;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Router\Route;
|
||||
use Joomla\CMS\Uri\Uri;
|
||||
use Joomla\Component\Content\Administrator\Extension\ContentComponent;
|
||||
use Joomla\Component\Content\Site\Helper\AssociationHelper;
|
||||
use Joomla\Component\Content\Site\Helper\RouteHelper;
|
||||
|
||||
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
|
||||
$wa = $this->document->getWebAssetManager();
|
||||
$wa->useScript('com_content.articles-list');
|
||||
|
||||
// Create some shortcuts.
|
||||
$n = count($this->items);
|
||||
$listOrder = $this->escape($this->state->get('list.ordering'));
|
||||
$listDirn = $this->escape($this->state->get('list.direction'));
|
||||
$langFilter = false;
|
||||
|
||||
// Tags filtering based on language filter
|
||||
if (($this->params->get('filter_field') === 'tag') && (Multilanguage::isEnabled())) {
|
||||
$tagfilter = ComponentHelper::getParams('com_tags')->get('tag_list_language_filter');
|
||||
|
||||
switch ($tagfilter) {
|
||||
case 'current_language':
|
||||
$langFilter = Factory::getApplication()->getLanguage()->getTag();
|
||||
break;
|
||||
|
||||
case 'all':
|
||||
$langFilter = false;
|
||||
break;
|
||||
|
||||
default:
|
||||
$langFilter = $tagfilter;
|
||||
}
|
||||
}
|
||||
|
||||
// Check for at least one editable article
|
||||
$isEditable = false;
|
||||
|
||||
if (!empty($this->items)) {
|
||||
foreach ($this->items as $article) {
|
||||
if ($article->params->get('access-edit')) {
|
||||
$isEditable = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$currentDate = Factory::getDate()->format('Y-m-d H:i:s');
|
||||
?>
|
||||
|
||||
<form action="<?php echo htmlspecialchars(Uri::getInstance()->toString()); ?>" method="post" name="adminForm" id="adminForm" class="com-content-category__articles">
|
||||
<?php if ($this->params->get('filter_field') !== 'hide') : ?>
|
||||
<div class="com-content__filter btn-group">
|
||||
<?php if ($this->params->get('filter_field') === 'tag') : ?>
|
||||
<span class="visually-hidden">
|
||||
<label class="filter-search-lbl" for="filter-search">
|
||||
<?php echo Text::_('JOPTION_SELECT_TAG'); ?>
|
||||
</label>
|
||||
</span>
|
||||
<select name="filter_tag" id="filter-search" class="form-select" onchange="document.adminForm.submit();" >
|
||||
<option value=""><?php echo Text::_('JOPTION_SELECT_TAG'); ?></option>
|
||||
<?php echo HTMLHelper::_('select.options', HTMLHelper::_('tag.options', ['filter.published' => [1], 'filter.language' => $langFilter], true), 'value', 'text', $this->state->get('filter.tag')); ?>
|
||||
</select>
|
||||
<?php elseif ($this->params->get('filter_field') === 'month') : ?>
|
||||
<span class="visually-hidden">
|
||||
<label class="filter-search-lbl" for="filter-search">
|
||||
<?php echo Text::_('JOPTION_SELECT_MONTH'); ?>
|
||||
</label>
|
||||
</span>
|
||||
<select name="filter-search" id="filter-search" class="form-select" onchange="document.adminForm.submit();">
|
||||
<option value=""><?php echo Text::_('JOPTION_SELECT_MONTH'); ?></option>
|
||||
<?php echo HTMLHelper::_('select.options', HTMLHelper::_('content.months', $this->state), 'value', 'text', $this->state->get('list.filter')); ?>
|
||||
</select>
|
||||
<?php else : ?>
|
||||
<label class="filter-search-lbl visually-hidden" for="filter-search">
|
||||
<?php echo Text::_('COM_CONTENT_' . $this->params->get('filter_field') . '_FILTER_LABEL'); ?>
|
||||
</label>
|
||||
<input type="text" name="filter-search" id="filter-search" value="<?php echo $this->escape($this->state->get('list.filter')); ?>" class="inputbox" onchange="document.adminForm.submit();" placeholder="<?php echo Text::_('COM_CONTENT_' . $this->params->get('filter_field') . '_FILTER_LABEL'); ?>">
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('filter_field') !== 'tag' && $this->params->get('filter_field') !== 'month') : ?>
|
||||
<button type="submit" name="filter_submit" class="btn btn-primary"><?php echo Text::_('JGLOBAL_FILTER_BUTTON'); ?></button>
|
||||
<?php endif; ?>
|
||||
<button type="reset" name="filter-clear-button" class="btn btn-secondary"><?php echo Text::_('JSEARCH_FILTER_CLEAR'); ?></button>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->get('show_pagination_limit')) : ?>
|
||||
<div class="com-content-category__pagination btn-group float-end">
|
||||
<label for="limit" class="visually-hidden">
|
||||
<?php echo Text::_('JGLOBAL_DISPLAY_NUM'); ?>
|
||||
</label>
|
||||
<?php echo $this->pagination->getLimitBox(); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (empty($this->items)) : ?>
|
||||
<?php if ($this->params->get('show_no_articles', 1)) : ?>
|
||||
<div class="alert alert-info">
|
||||
<span class="icon-info-circle" aria-hidden="true"></span><span class="visually-hidden"><?php echo Text::_('INFO'); ?></span>
|
||||
<?php echo Text::_('COM_CONTENT_NO_ARTICLES'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php else : ?>
|
||||
<table class="com-content-category__table category table table-striped table-bordered table-hover">
|
||||
<caption class="visually-hidden">
|
||||
<?php echo Text::_('COM_CONTENT_ARTICLES_TABLE_CAPTION'); ?>
|
||||
</caption>
|
||||
<thead<?php echo $this->params->get('show_headings', '1') ? '' : ' class="visually-hidden"'; ?>>
|
||||
<tr>
|
||||
<th scope="col" id="categorylist_header_title">
|
||||
<?php echo HTMLHelper::_('grid.sort', 'JGLOBAL_TITLE', 'a.title', $listDirn, $listOrder, null, 'asc', '', 'adminForm'); ?>
|
||||
</th>
|
||||
<?php if ($date = $this->params->get('list_show_date')) : ?>
|
||||
<th scope="col" id="categorylist_header_date">
|
||||
<?php if ($date === 'created') : ?>
|
||||
<?php echo HTMLHelper::_('grid.sort', 'COM_CONTENT_' . $date . '_DATE', 'a.created', $listDirn, $listOrder); ?>
|
||||
<?php elseif ($date === 'modified') : ?>
|
||||
<?php echo HTMLHelper::_('grid.sort', 'COM_CONTENT_' . $date . '_DATE', 'a.modified', $listDirn, $listOrder); ?>
|
||||
<?php elseif ($date === 'published') : ?>
|
||||
<?php echo HTMLHelper::_('grid.sort', 'COM_CONTENT_' . $date . '_DATE', 'a.publish_up', $listDirn, $listOrder); ?>
|
||||
<?php endif; ?>
|
||||
</th>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('list_show_author')) : ?>
|
||||
<th scope="col" id="categorylist_header_author">
|
||||
<?php echo HTMLHelper::_('grid.sort', 'JAUTHOR', 'author', $listDirn, $listOrder); ?>
|
||||
</th>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('list_show_hits')) : ?>
|
||||
<th scope="col" id="categorylist_header_hits">
|
||||
<?php echo HTMLHelper::_('grid.sort', 'JGLOBAL_HITS', 'a.hits', $listDirn, $listOrder); ?>
|
||||
</th>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('list_show_votes', 0) && $this->vote) : ?>
|
||||
<th scope="col" id="categorylist_header_votes">
|
||||
<?php echo HTMLHelper::_('grid.sort', 'COM_CONTENT_VOTES', 'rating_count', $listDirn, $listOrder); ?>
|
||||
</th>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('list_show_ratings', 0) && $this->vote) : ?>
|
||||
<th scope="col" id="categorylist_header_ratings">
|
||||
<?php echo HTMLHelper::_('grid.sort', 'COM_CONTENT_RATINGS', 'rating', $listDirn, $listOrder); ?>
|
||||
</th>
|
||||
<?php endif; ?>
|
||||
<?php if ($isEditable) : ?>
|
||||
<th scope="col" id="categorylist_header_edit"><?php echo Text::_('COM_CONTENT_EDIT_ITEM'); ?></th>
|
||||
<?php endif; ?>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach ($this->items as $i => $article) : ?>
|
||||
<?php if ($this->items[$i]->state == ContentComponent::CONDITION_UNPUBLISHED) : ?>
|
||||
<tr class="system-unpublished cat-list-row<?php echo $i % 2; ?>">
|
||||
<?php else : ?>
|
||||
<tr class="cat-list-row<?php echo $i % 2; ?>" >
|
||||
<?php endif; ?>
|
||||
<th class="list-title" scope="row">
|
||||
<?php if (in_array($article->access, $this->user->getAuthorisedViewLevels())) : ?>
|
||||
<a href="<?php echo Route::_(RouteHelper::getArticleRoute($article->slug, $article->catid, $article->language)); ?>">
|
||||
<?php echo $this->escape($article->title); ?>
|
||||
</a>
|
||||
<?php if (Associations::isEnabled() && $this->params->get('show_associations')) : ?>
|
||||
<div class="cat-list-association">
|
||||
<?php $associations = AssociationHelper::displayAssociations($article->id); ?>
|
||||
<?php foreach ($associations as $association) : ?>
|
||||
<?php if ($this->params->get('flags', 1) && $association['language']->image) : ?>
|
||||
<?php $flag = HTMLHelper::_('image', 'mod_languages/' . $association['language']->image . '.gif', $association['language']->title_native, ['title' => $association['language']->title_native], true); ?>
|
||||
<a href="<?php echo Route::_($association['item']); ?>"><?php echo $flag; ?></a>
|
||||
<?php else : ?>
|
||||
<?php $class = 'btn btn-secondary btn-sm btn-' . strtolower($association['language']->lang_code); ?>
|
||||
<a class="<?php echo $class; ?>" title="<?php echo $association['language']->title_native; ?>" href="<?php echo Route::_($association['item']); ?>"><?php echo $association['language']->lang_code; ?>
|
||||
<span class="visually-hidden"><?php echo $association['language']->title_native; ?></span>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php else : ?>
|
||||
<?php
|
||||
echo $this->escape($article->title) . ' : ';
|
||||
$itemId = Factory::getApplication()->getMenu()->getActive()->id;
|
||||
$link = new Uri(Route::_('index.php?option=com_users&view=login&Itemid=' . $itemId, false));
|
||||
$link->setVar('return', base64_encode(RouteHelper::getArticleRoute($article->slug, $article->catid, $article->language)));
|
||||
?>
|
||||
<a href="<?php echo $link; ?>" class="register">
|
||||
<?php echo Text::_('COM_CONTENT_REGISTER_TO_READ_MORE'); ?>
|
||||
</a>
|
||||
<?php if (Associations::isEnabled() && $this->params->get('show_associations')) : ?>
|
||||
<div class="cat-list-association">
|
||||
<?php $associations = AssociationHelper::displayAssociations($article->id); ?>
|
||||
<?php foreach ($associations as $association) : ?>
|
||||
<?php if ($this->params->get('flags', 1)) : ?>
|
||||
<?php $flag = HTMLHelper::_('image', 'mod_languages/' . $association['language']->image . '.gif', $association['language']->title_native, ['title' => $association['language']->title_native], true); ?>
|
||||
<a href="<?php echo Route::_($association['item']); ?>"><?php echo $flag; ?></a>
|
||||
<?php else : ?>
|
||||
<?php $class = 'btn btn-secondary btn-sm btn-' . strtolower($association['language']->lang_code); ?>
|
||||
<a class="<?php echo $class; ?>" title="<?php echo $association['language']->title_native; ?>" href="<?php echo Route::_($association['item']); ?>"><?php echo $association['language']->lang_code; ?>
|
||||
<span class="visually-hidden"><?php echo $association['language']->title_native; ?></span>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($article->state == ContentComponent::CONDITION_UNPUBLISHED) : ?>
|
||||
<div>
|
||||
<span class="list-published badge bg-warning text-light">
|
||||
<?php echo Text::_('JUNPUBLISHED'); ?>
|
||||
</span>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ($article->publish_up > $currentDate) : ?>
|
||||
<div>
|
||||
<span class="list-published badge bg-warning text-light">
|
||||
<?php echo Text::_('JNOTPUBLISHEDYET'); ?>
|
||||
</span>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if (!is_null($article->publish_down) && $article->publish_down < $currentDate) : ?>
|
||||
<div>
|
||||
<span class="list-published badge bg-warning text-light">
|
||||
<?php echo Text::_('JEXPIRED'); ?>
|
||||
</span>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</th>
|
||||
<?php if ($this->params->get('list_show_date')) : ?>
|
||||
<td class="list-date small">
|
||||
<?php
|
||||
echo HTMLHelper::_(
|
||||
'date',
|
||||
$article->displayDate,
|
||||
$this->escape($this->params->get('date_format', Text::_('DATE_FORMAT_LC3')))
|
||||
); ?>
|
||||
</td>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('list_show_author', 1)) : ?>
|
||||
<td class="list-author">
|
||||
<?php if (!empty($article->author) || !empty($article->created_by_alias)) : ?>
|
||||
<?php $author = $article->author ?>
|
||||
<?php $author = $article->created_by_alias ?: $author; ?>
|
||||
<?php if (!empty($article->contact_link) && $this->params->get('link_author') == true) : ?>
|
||||
<?php if ($this->params->get('show_headings')) : ?>
|
||||
<?php echo HTMLHelper::_('link', $article->contact_link, $author); ?>
|
||||
<?php else : ?>
|
||||
<?php echo Text::sprintf('COM_CONTENT_WRITTEN_BY', HTMLHelper::_('link', $article->contact_link, $author)); ?>
|
||||
<?php endif; ?>
|
||||
<?php else : ?>
|
||||
<?php if ($this->params->get('show_headings')) : ?>
|
||||
<?php echo $author; ?>
|
||||
<?php else : ?>
|
||||
<?php echo Text::sprintf('COM_CONTENT_WRITTEN_BY', $author); ?>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('list_show_hits', 1)) : ?>
|
||||
<td class="list-hits">
|
||||
<span class="badge bg-info">
|
||||
<?php if ($this->params->get('show_headings')) : ?>
|
||||
<?php echo $article->hits; ?>
|
||||
<?php else : ?>
|
||||
<?php echo Text::sprintf('JGLOBAL_HITS_COUNT', $article->hits); ?>
|
||||
<?php endif; ?>
|
||||
</span>
|
||||
</td>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('list_show_votes', 0) && $this->vote) : ?>
|
||||
<td class="list-votes">
|
||||
<span class="badge bg-success">
|
||||
<?php if ($this->params->get('show_headings')) : ?>
|
||||
<?php echo $article->rating_count; ?>
|
||||
<?php else : ?>
|
||||
<?php echo Text::sprintf('COM_CONTENT_VOTES_COUNT', $article->rating_count); ?>
|
||||
<?php endif; ?>
|
||||
</span>
|
||||
</td>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('list_show_ratings', 0) && $this->vote) : ?>
|
||||
<td class="list-ratings">
|
||||
<span class="badge bg-warning text-light">
|
||||
<?php if ($this->params->get('show_headings')) : ?>
|
||||
<?php echo $article->rating; ?>
|
||||
<?php else : ?>
|
||||
<?php echo Text::sprintf('COM_CONTENT_RATINGS_COUNT', $article->rating); ?>
|
||||
<?php endif; ?>
|
||||
</span>
|
||||
</td>
|
||||
<?php endif; ?>
|
||||
<?php if ($isEditable) : ?>
|
||||
<td class="list-edit">
|
||||
<?php if ($article->params->get('access-edit')) : ?>
|
||||
<?php echo HTMLHelper::_('contenticon.edit', $article, $article->params); ?>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
<?php endif; ?>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php // Code to add a link to submit an article. ?>
|
||||
<?php if ($this->category->getParams()->get('access-create')) : ?>
|
||||
<?php echo HTMLHelper::_('contenticon.create', $this->category, $this->category->params); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php // Add pagination links ?>
|
||||
<?php if (!empty($this->items)) : ?>
|
||||
<?php if (($this->params->def('show_pagination', 2) == 1 || ($this->params->get('show_pagination') == 2)) && ($this->pagination->pagesTotal > 1)) : ?>
|
||||
<div class="com-content-category__navigation w-100">
|
||||
<?php if ($this->params->def('show_pagination_results', 1)) : ?>
|
||||
<p class="com-content-category__counter counter float-end pt-3 pe-2">
|
||||
<?php echo $this->pagination->getPagesCounter(); ?>
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
<div class="com-content-category__pagination">
|
||||
<?php echo $this->pagination->getPagesLinks(); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
<div>
|
||||
<input type="hidden" name="filter_order" value="">
|
||||
<input type="hidden" name="filter_order_Dir" value="">
|
||||
<input type="hidden" name="limitstart" value="">
|
||||
<input type="hidden" name="task" value="">
|
||||
</div>
|
||||
</form>
|
||||
@@ -0,0 +1,83 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_content
|
||||
*
|
||||
* @copyright (C) 2009 Open Source Matters, Inc. <https://www.joomla.org>
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\HTML\HTMLHelper;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Router\Route;
|
||||
use Joomla\Component\Content\Site\Helper\RouteHelper;
|
||||
|
||||
$lang = Factory::getLanguage();
|
||||
$user = Factory::getUser();
|
||||
$groups = $user->getAuthorisedViewLevels();
|
||||
?>
|
||||
|
||||
<?php if (count($this->children[$this->category->id]) > 0) : ?>
|
||||
<?php foreach ($this->children[$this->category->id] as $id => $child) : ?>
|
||||
<?php // Check whether category access level allows access to subcategories. ?>
|
||||
<?php if (in_array($child->access, $groups)) : ?>
|
||||
<?php if ($this->params->get('show_empty_categories') || $child->getNumItems(true) || count($child->getChildren())) : ?>
|
||||
<div class="com-content-category__children">
|
||||
<?php if ($lang->isRtl()) : ?>
|
||||
<h3 class="page-header item-title">
|
||||
<?php if ($this->params->get('show_cat_num_articles', 1)) : ?>
|
||||
<span class="badge bg-info tip hasTooltip" title="<?php echo HTMLHelper::_('tooltipText', 'COM_CONTENT_NUM_ITEMS'); ?>">
|
||||
<?php echo $child->getNumItems(true); ?>
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
<a href="<?php echo Route::_(RouteHelper::getCategoryRoute($child->id, $child->language)); ?>">
|
||||
<?php echo $this->escape($child->title); ?></a>
|
||||
|
||||
<?php if (count($child->getChildren()) > 0 && $this->maxLevel > 1) : ?>
|
||||
<a href="#category-<?php echo $child->id; ?>" data-bs-toggle="collapse" class="btn btn-sm float-end" aria-label="<?php echo Text::_('JGLOBAL_EXPAND_CATEGORIES'); ?>"><span class="icon-plus" aria-hidden="true"></span></a>
|
||||
<?php endif; ?>
|
||||
</h3>
|
||||
<?php else : ?>
|
||||
<h3 class="page-header item-title"><a href="<?php echo Route::_(RouteHelper::getCategoryRoute($child->id, $child->language)); ?>">
|
||||
<?php echo $this->escape($child->title); ?></a>
|
||||
<?php if ($this->params->get('show_cat_num_articles', 1)) : ?>
|
||||
<span class="badge bg-info tip hasTooltip" title="<?php echo HTMLHelper::_('tooltipText', 'COM_CONTENT_NUM_ITEMS'); ?>">
|
||||
<?php echo $child->getNumItems(true); ?>
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (count($child->getChildren()) > 0 && $this->maxLevel > 1) : ?>
|
||||
<a href="#category-<?php echo $child->id; ?>" data-bs-toggle="collapse" class="btn btn-sm float-end" aria-label="<?php echo Text::_('JGLOBAL_EXPAND_CATEGORIES'); ?>"><span class="icon-plus" aria-hidden="true"></span></a>
|
||||
<?php endif; ?>
|
||||
</h3>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->params->get('show_subcat_desc') == 1) : ?>
|
||||
<?php if ($child->description) : ?>
|
||||
<div class="category-desc">
|
||||
<?php echo HTMLHelper::_('content.prepare', $child->description, '', 'com_content.category'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (count($child->getChildren()) > 0 && $this->maxLevel > 1) : ?>
|
||||
<div class="collapse fade" id="category-<?php echo $child->id; ?>">
|
||||
<?php
|
||||
$this->children[$child->id] = $child->getChildren();
|
||||
$this->category = $child;
|
||||
$this->maxLevel--;
|
||||
echo $this->loadTemplate('children');
|
||||
$this->category = $child->getParent();
|
||||
$this->maxLevel++;
|
||||
?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
||||
@@ -0,0 +1,73 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_content
|
||||
*
|
||||
* @copyright (C) 2006 Open Source Matters, Inc. <https://www.joomla.org>
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
?>
|
||||
<div class="blog-featured" itemscope itemtype="https://schema.org/Blog">
|
||||
<?php if ($this->params->get('show_page_heading') != 0) : ?>
|
||||
<div class="page-header">
|
||||
<h1>
|
||||
<?php echo $this->escape($this->params->get('page_heading')); ?>
|
||||
</h1>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (!empty($this->lead_items)) : ?>
|
||||
<div class="blog-items items-leading <?php echo $this->params->get('blog_class_leading'); ?>">
|
||||
<?php foreach ($this->lead_items as &$item) : ?>
|
||||
<div class="blog-item"
|
||||
itemprop="blogPost" itemscope itemtype="https://schema.org/BlogPosting">
|
||||
<?php
|
||||
$this->item = & $item;
|
||||
echo $this->loadTemplate('item');
|
||||
?>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (!empty($this->intro_items)) : ?>
|
||||
<?php $blogClass = $this->params->get('blog_class', ''); ?>
|
||||
<?php if ((int) $this->params->get('num_columns') > 1) : ?>
|
||||
<?php $blogClass .= (int) $this->params->get('multi_column_order', 0) === 0 ? ' masonry-' : ' columns-'; ?>
|
||||
<?php $blogClass .= (int) $this->params->get('num_columns'); ?>
|
||||
<?php endif; ?>
|
||||
<div class="blog-items <?php echo $blogClass; ?>">
|
||||
<?php foreach ($this->intro_items as $key => &$item) : ?>
|
||||
<div class="blog-item"
|
||||
itemprop="blogPost" itemscope itemtype="https://schema.org/BlogPosting">
|
||||
<?php
|
||||
$this->item = & $item;
|
||||
echo $this->loadTemplate('item');
|
||||
?>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (!empty($this->link_items)) : ?>
|
||||
<div class="items-more">
|
||||
<?php echo $this->loadTemplate('links'); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->params->def('show_pagination', 2) == 1 || ($this->params->get('show_pagination') == 2 && $this->pagination->pagesTotal > 1)) : ?>
|
||||
<div class="w-100">
|
||||
<?php if ($this->params->def('show_pagination_results', 1)) : ?>
|
||||
<p class="counter float-end pt-3 pe-2">
|
||||
<?php echo $this->pagination->getPagesCounter(); ?>
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
<?php echo $this->pagination->getPagesLinks(); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
@@ -0,0 +1,119 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_content
|
||||
*
|
||||
* @copyright (C) 2006 Open Source Matters, Inc. <https://www.joomla.org>
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\Language\Associations;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Layout\LayoutHelper;
|
||||
use Joomla\CMS\Router\Route;
|
||||
use Joomla\CMS\Uri\Uri;
|
||||
use Joomla\Component\Content\Administrator\Extension\ContentComponent;
|
||||
use Joomla\Component\Content\Site\Helper\RouteHelper;
|
||||
|
||||
// Create a shortcut for params.
|
||||
$params = &$this->item->params;
|
||||
$canEdit = $this->item->params->get('access-edit');
|
||||
$info = $this->item->params->get('info_block_position', 0);
|
||||
|
||||
// Check if associations are implemented. If they are, define the parameter.
|
||||
$assocParam = (Associations::isEnabled() && $params->get('show_associations'));
|
||||
|
||||
$currentDate = Factory::getDate()->format('Y-m-d H:i:s');
|
||||
$isExpired = !is_null($this->item->publish_down) && $this->item->publish_down < $currentDate;
|
||||
$isNotPublishedYet = $this->item->publish_up > $currentDate;
|
||||
$isUnpublished = $this->item->state == ContentComponent::CONDITION_UNPUBLISHED || $isNotPublishedYet || $isExpired;
|
||||
?>
|
||||
|
||||
<?php echo LayoutHelper::render('joomla.content.intro_image', $this->item); ?>
|
||||
|
||||
<div class="item-content">
|
||||
<?php if ($isUnpublished) : ?>
|
||||
<div class="system-unpublished">
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($params->get('show_title')) : ?>
|
||||
<h2 class="item-title" itemprop="headline">
|
||||
<?php if ($params->get('link_titles') && $params->get('access-view')) : ?>
|
||||
<a href="<?php echo Route::_(RouteHelper::getArticleRoute($this->item->slug, $this->item->catid, $this->item->language)); ?>" itemprop="url">
|
||||
<?php echo $this->escape($this->item->title); ?>
|
||||
</a>
|
||||
<?php else : ?>
|
||||
<?php echo $this->escape($this->item->title); ?>
|
||||
<?php endif; ?>
|
||||
</h2>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->item->state == ContentComponent::CONDITION_UNPUBLISHED) : ?>
|
||||
<span class="badge bg-warning text-light"><?php echo Text::_('JUNPUBLISHED'); ?></span>
|
||||
<?php endif; ?>
|
||||
<?php if ($isNotPublishedYet) : ?>
|
||||
<span class="badge bg-warning text-light"><?php echo Text::_('JNOTPUBLISHEDYET'); ?></span>
|
||||
<?php endif; ?>
|
||||
<?php if ($isExpired) : ?>
|
||||
<span class="badge bg-warning text-light"><?php echo Text::_('JEXPIRED'); ?></span>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($canEdit) : ?>
|
||||
<?php echo LayoutHelper::render('joomla.content.icons', ['params' => $params, 'item' => $this->item]); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php // Content is generated by content plugin event "onContentAfterTitle" ?>
|
||||
<?php echo $this->item->event->afterDisplayTitle; ?>
|
||||
|
||||
<?php // @todo Not that elegant would be nice to group the params ?>
|
||||
<?php $useDefList = ($params->get('show_modify_date') || $params->get('show_publish_date') || $params->get('show_create_date')
|
||||
|| $params->get('show_hits') || $params->get('show_category') || $params->get('show_parent_category') || $params->get('show_author') || $assocParam); ?>
|
||||
|
||||
<?php if ($useDefList && ($info == 0 || $info == 2)) : ?>
|
||||
<?php echo LayoutHelper::render('joomla.content.info_block', ['item' => $this->item, 'params' => $params, 'position' => 'above']); ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($info == 0 && $params->get('show_tags', 1) && !empty($this->item->tags->itemTags)) : ?>
|
||||
<?php echo LayoutHelper::render('joomla.content.tags', $this->item->tags->itemTags); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php // Content is generated by content plugin event "onContentBeforeDisplay" ?>
|
||||
<?php echo $this->item->event->beforeDisplayContent; ?>
|
||||
|
||||
<?php echo $this->item->introtext; ?>
|
||||
|
||||
<?php if ($info == 1 || $info == 2) : ?>
|
||||
<?php if ($useDefList) : ?>
|
||||
<?php echo LayoutHelper::render('joomla.content.info_block', ['item' => $this->item, 'params' => $params, 'position' => 'below']); ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($params->get('show_tags', 1) && !empty($this->item->tags->itemTags)) : ?>
|
||||
<?php echo LayoutHelper::render('joomla.content.tags', $this->item->tags->itemTags); ?>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($params->get('show_readmore') && $this->item->readmore) :
|
||||
if ($params->get('access-view')) :
|
||||
$link = Route::_(RouteHelper::getArticleRoute($this->item->slug, $this->item->catid, $this->item->language));
|
||||
else :
|
||||
$menu = Factory::getApplication()->getMenu();
|
||||
$active = $menu->getActive();
|
||||
$itemId = $active->id;
|
||||
$link = new Uri(Route::_('index.php?option=com_users&view=login&Itemid=' . $itemId, false));
|
||||
$link->setVar('return', base64_encode(RouteHelper::getArticleRoute($this->item->slug, $this->item->catid, $this->item->language)));
|
||||
endif; ?>
|
||||
|
||||
<?php echo LayoutHelper::render('joomla.content.readmore', ['item' => $this->item, 'params' => $params, 'link' => $link]); ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($isUnpublished) : ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
|
||||
<?php // Content is generated by content plugin event "onContentAfterDisplay" ?>
|
||||
<?php echo $this->item->event->afterDisplayContent; ?>
|
||||
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage com_content
|
||||
*
|
||||
* @copyright (C) 2006 Open Source Matters, Inc. <https://www.joomla.org>
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Router\Route;
|
||||
use Joomla\Component\Content\Site\Helper\RouteHelper;
|
||||
|
||||
?>
|
||||
<ol class="com-content-blog__links">
|
||||
<?php foreach ($this->link_items as $item) : ?>
|
||||
<li class="com-content-blog__link">
|
||||
<a href="<?php echo Route::_(RouteHelper::getArticleRoute($item->slug, $item->catid, $item->language)); ?>">
|
||||
<?php echo $item->title; ?></a>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ol>
|
||||
@@ -0,0 +1,193 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla
|
||||
* @subpackage Membership Pro
|
||||
* @author Tuan Pham Ngoc
|
||||
* @copyright Copyright (C) 2012 - 2025 Ossolution Team
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Router\Route;
|
||||
use Joomla\CMS\Uri\Uri;
|
||||
|
||||
/**
|
||||
* Layout variables
|
||||
*
|
||||
* @var array $items
|
||||
* @var MPFInput $input
|
||||
* @var MPFConfig $config
|
||||
* @var int $Itemid
|
||||
* @var int $categoryId
|
||||
* @var OSMembershipHelperBootstrap $bootstrapHelper
|
||||
*/
|
||||
|
||||
$rootUri = Uri::root(true);
|
||||
|
||||
$subscribedPlanIds = OSMembershipHelperSubscription::getSubscribedPlans();
|
||||
|
||||
if (!isset($categoryId))
|
||||
{
|
||||
$categoryId = 0;
|
||||
}
|
||||
|
||||
$rowFluidClass = $bootstrapHelper->getClassMapping('row-fluid');
|
||||
$span7Class = $bootstrapHelper->getClassMapping('span7');
|
||||
$span5class = $bootstrapHelper->getClassMapping('span5');
|
||||
$imgClass = $bootstrapHelper->getClassMapping('img-polaroid');
|
||||
$btnClass = $bootstrapHelper->getClassMapping('btn');
|
||||
$btnPrimaryClass = $bootstrapHelper->getClassMapping('btn btn-primary');
|
||||
$clearfixClass = $bootstrapHelper->getClassMapping('clearfix');
|
||||
|
||||
$defaultItemId = $Itemid;
|
||||
|
||||
for ($i = 0 , $n = count($items) ; $i < $n ; $i++)
|
||||
{
|
||||
$item = $items[$i];
|
||||
$Itemid = OSMembershipHelperRoute::getPlanMenuId($item->id, $item->category_id, $defaultItemId);
|
||||
|
||||
if ($item->thumb)
|
||||
{
|
||||
$imgSrc = $rootUri . '/media/com_osmembership/' . $item->thumb;
|
||||
}
|
||||
|
||||
if ($item->category_id)
|
||||
{
|
||||
$url = Route::_('index.php?option=com_osmembership&view=plan&catid=' . $item->category_id . '&id=' . $item->id . '&Itemid=' . $Itemid);
|
||||
}
|
||||
else
|
||||
{
|
||||
$url = Route::_('index.php?option=com_osmembership&view=plan&id=' . $item->id . '&Itemid=' . $Itemid);
|
||||
}
|
||||
|
||||
if ($config->use_https)
|
||||
{
|
||||
$signUpUrl = Route::_(OSMembershipHelperRoute::getSignupRoute($item->id, $Itemid), false, 1);
|
||||
}
|
||||
else
|
||||
{
|
||||
$signUpUrl = Route::_(OSMembershipHelperRoute::getSignupRoute($item->id, $Itemid));
|
||||
}
|
||||
|
||||
$symbol = $item->currency_symbol ?: $item->currency;
|
||||
?>
|
||||
<div class="osm-item-wrapper <?php echo $clearfixClass; ?>">
|
||||
<div class="osm-item-heading-box <?php echo $clearfixClass; ?>">
|
||||
<h3 class="osm-item-title">
|
||||
<a href="<?php echo $url; ?>" title="<?php echo $item->title; ?>">
|
||||
<?php echo $item->title; ?>
|
||||
</a>
|
||||
</h3>
|
||||
</div>
|
||||
<div class="osm-item-description <?php echo $clearfixClass; ?>">
|
||||
<div class="<?php echo $rowFluidClass; ?>">
|
||||
<div class="osm-description-details <?php echo $span7Class; ?>">
|
||||
<?php
|
||||
if ($item->thumb)
|
||||
{
|
||||
?>
|
||||
<img src="<?php echo $imgSrc; ?>" alt="<?php echo $item->title; ?>" class="osm-thumb-left <?php echo $imgClass; ?>"/>
|
||||
<?php
|
||||
}
|
||||
|
||||
if ($item->short_description)
|
||||
{
|
||||
echo $item->short_description;
|
||||
}
|
||||
else
|
||||
{
|
||||
echo $item->description;
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<div class="<?php echo $span5class; ?>">
|
||||
<?php echo OSMembershipHelperHtml::loadCommonLayout('common/tmpl/plan_information.php', ['item' => $item]); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="osm-taskbar <?php echo $clearfixClass; ?>">
|
||||
<ul>
|
||||
<?php
|
||||
$actions = OSMembershipHelperSubscription::getAllowedActions($item);
|
||||
|
||||
if (count($actions))
|
||||
{
|
||||
$language = Factory::getApplication()->getLanguage();
|
||||
|
||||
if (in_array('subscribe', $actions))
|
||||
{
|
||||
if ($language->hasKey('OSM_SIGNUP_PLAN_' . $item->id))
|
||||
{
|
||||
$signUpLanguageItem = 'OSM_SIGNUP_PLAN_' . $item->id;
|
||||
}
|
||||
else
|
||||
{
|
||||
$signUpLanguageItem = 'OSM_SIGNUP';
|
||||
}
|
||||
|
||||
if ($language->hasKey('OSM_RENEW_PLAN_' . $item->id))
|
||||
{
|
||||
$renewLanguageItem = 'OSM_RENEW_PLAN_' . $item->id;
|
||||
}
|
||||
else
|
||||
{
|
||||
$renewLanguageItem = 'OSM_RENEW';
|
||||
}
|
||||
?>
|
||||
<li>
|
||||
<a href="<?php echo $signUpUrl; ?>" class="<?php echo $btnPrimaryClass; ?>">
|
||||
<?php echo in_array($item->id, $subscribedPlanIds) ? Text::_($renewLanguageItem) : Text::_($signUpLanguageItem); ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
|
||||
if (in_array('upgrade', $actions))
|
||||
{
|
||||
if ($language->hasKey('OSM_UPGRADE_PLAN_' . $item->id))
|
||||
{
|
||||
$upgradeLanguageItem = 'OSM_UPGRADE_PLAN_' . $item->id;
|
||||
}
|
||||
else
|
||||
{
|
||||
$upgradeLanguageItem = 'OSM_UPGRADE';
|
||||
}
|
||||
|
||||
if (count($item->upgrade_rules) > 1)
|
||||
{
|
||||
$link = Route::_('index.php?option=com_osmembership&view=upgrademembership&to_plan_id=' . $item->id . '&Itemid=' . OSMembershipHelperRoute::findView('upgrademembership', $Itemid));
|
||||
}
|
||||
else
|
||||
{
|
||||
$upgradeOptionId = $item->upgrade_rules[0]->id;
|
||||
$link = Route::_('index.php?option=com_osmembership&task=register.process_upgrade_membership&upgrade_option_id=' . $upgradeOptionId . '&Itemid=' . $Itemid);
|
||||
}
|
||||
?>
|
||||
<li>
|
||||
<a href="<?php echo $link; ?>" class="<?php echo $btnPrimaryClass; ?>">
|
||||
<?php echo Text::_($upgradeLanguageItem); ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
|
||||
if (empty($config->hide_details_button))
|
||||
{
|
||||
?>
|
||||
<li>
|
||||
<a href="<?php echo $url; ?>" class="<?php echo $btnClass; ?>">
|
||||
<?php echo Text::_('OSM_DETAILS'); ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla
|
||||
* @subpackage Membership Pro
|
||||
* @author Tuan Pham Ngoc
|
||||
* @copyright Copyright (C) 2012 - 2025 Ossolution Team
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
*/
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\Language\Text;
|
||||
|
||||
/**
|
||||
* Layout variables
|
||||
*
|
||||
* @var string $selector
|
||||
* @var string $title
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
Factory::getApplication()
|
||||
->getDocument()
|
||||
->getWebAssetManager()
|
||||
->useScript('core');
|
||||
|
||||
Text::script('JLIB_HTML_PLEASE_MAKE_A_SELECTION_FROM_THE_LIST');
|
||||
$message = "alert(Joomla.JText._('JLIB_HTML_PLEASE_MAKE_A_SELECTION_FROM_THE_LIST'));";
|
||||
?>
|
||||
<button type="button" data-toggle="modal" onclick="if (document.adminForm.boxchecked.value==0){<?php echo $message; ?>}else{jQuery( '#<?php echo $selector; ?>' ).modal('show'); return true;}" class="btn btn-small">
|
||||
<span class="icon-checkbox-partial" aria-hidden="true"></span>
|
||||
<?php echo $title; ?>
|
||||
</button>
|
||||
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla
|
||||
* @subpackage Membership Pro
|
||||
* @author Tuan Pham Ngoc
|
||||
* @copyright Copyright (C) 2010 - 2022 Ossolution Team
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
/**
|
||||
* Layout variables
|
||||
*
|
||||
* @var string $selector
|
||||
* @var string $title
|
||||
*/
|
||||
?>
|
||||
<button type="button" data-toggle="modal" onclick="jQuery( '#<?php echo $selector; ?>' ).modal('show'); return true;" class="btn btn-small">
|
||||
<span class="icon-checkbox-partial" aria-hidden="true"></span>
|
||||
<?php echo $title; ?>
|
||||
</button>
|
||||
@@ -0,0 +1,54 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla
|
||||
* @subpackage Membership Pro
|
||||
* @author Tuan Pham Ngoc
|
||||
* @copyright Copyright (C) 2012 - 2025 Ossolution Team
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\HTML\HTMLHelper;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Router\Route;
|
||||
|
||||
/**
|
||||
* Layout variables
|
||||
*
|
||||
* @var array $items
|
||||
* @var MPFConfig $config
|
||||
* @var int $categoryId
|
||||
* @var int $Itemid
|
||||
*/
|
||||
|
||||
$bootstrapHelper = OSMembershipHelperBootstrap::getInstance();
|
||||
$clearfixClass = $bootstrapHelper->getClassMapping('clearfix');
|
||||
|
||||
for ($i = 0 , $n = count($items) ; $i < $n ; $i++)
|
||||
{
|
||||
$item = $items[$i];
|
||||
$link = Route::_(OSMembershipHelperRoute::getCategoryRoute($item->id, $Itemid));
|
||||
?>
|
||||
<div class="osm-item-wrapper clearfix">
|
||||
<div class="osm-item-heading-box">
|
||||
<h3 class="osm-item-title">
|
||||
<a href="<?php echo $link; ?>" class="osm-item-title-link">
|
||||
<?php echo $item->title;?>
|
||||
</a>
|
||||
<span class="<?php echo $bootstrapHelper->getClassMapping('badge badge-info'); ?>"><?php echo $item->total_plans ;?> <?php echo $item->total_plans > 1 ? Text::_('OSM_PLANS') : Text::_('OSM_PLAN') ; ?></span>
|
||||
</h3>
|
||||
</div>
|
||||
<?php
|
||||
if($item->description)
|
||||
{
|
||||
?>
|
||||
<div class="osm-item-description <?php echo $clearfixClass; ?>">
|
||||
<?php echo HTMLHelper::_('content.prepare', $item->description);?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
@@ -0,0 +1,218 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla
|
||||
* @subpackage Membership Pro
|
||||
* @author Tuan Pham Ngoc
|
||||
* @copyright Copyright (C) 2012 - 2025 Ossolution Team
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Router\Route;
|
||||
use Joomla\CMS\Uri\Uri;
|
||||
|
||||
/**
|
||||
* Layout variables
|
||||
*
|
||||
* @var array $items
|
||||
* @var int $categoryId
|
||||
* @var MPFInput $input
|
||||
* @var MPFConfig $config
|
||||
* @var OSMembershipHelperBootstrap $bootstrapHelper
|
||||
* @var \Joomla\Registry\Registry $params
|
||||
* @var int $Itemid
|
||||
*/
|
||||
|
||||
Factory::getApplication()
|
||||
->getDocument()
|
||||
->getWebAssetManager()
|
||||
->useScript('core');
|
||||
|
||||
$rootUri = Uri::root(true);
|
||||
$minHeight = 130;
|
||||
|
||||
if (isset($params))
|
||||
{
|
||||
$minHeight = (int) $params->get('min_height', 130) ?: 130;
|
||||
}
|
||||
|
||||
OSMembershipHelperJquery::responsiveEqualHeight('.osm-item-description-text', $minHeight);
|
||||
|
||||
$subscribedPlanIds = OSMembershipHelperSubscription::getSubscribedPlans();
|
||||
|
||||
if (isset($input) && $input->getInt('number_columns'))
|
||||
{
|
||||
$numberColumns = $input->getInt('number_columns');
|
||||
}
|
||||
elseif (!empty($config->number_columns))
|
||||
{
|
||||
$numberColumns = $config->number_columns;
|
||||
}
|
||||
else
|
||||
{
|
||||
$numberColumns = 3;
|
||||
}
|
||||
|
||||
if (!isset($categoryId))
|
||||
{
|
||||
$categoryId = 0;
|
||||
}
|
||||
|
||||
$span = intval(12 / $numberColumns);
|
||||
|
||||
$btnClass = $bootstrapHelper->getClassMapping('btn');
|
||||
$btnPrimaryClass = $bootstrapHelper->getClassMapping('btn btn-primary');
|
||||
$imgClass = $bootstrapHelper->getClassMapping('img-polaroid');
|
||||
$spanClass = $bootstrapHelper->getClassMapping('span' . $span);
|
||||
$rowFluidClearfixClass = $bootstrapHelper->getClassMapping('row-fluid clearfix');
|
||||
$clearFixClass = $bootstrapHelper->getClassMapping('clearfix');
|
||||
?>
|
||||
<div class="<?php echo $rowFluidClearfixClass; ?>">
|
||||
<?php
|
||||
$i = 0;
|
||||
$numberPlans = count($items);
|
||||
$defaultItemId = $Itemid;
|
||||
|
||||
foreach ($items as $item)
|
||||
{
|
||||
$i++;
|
||||
|
||||
$Itemid = OSMembershipHelperRoute::getPlanMenuId($item->id, $item->category_id, $defaultItemId);
|
||||
|
||||
if ($item->thumb)
|
||||
{
|
||||
$imgSrc = $rootUri . '/media/com_osmembership/' . $item->thumb;
|
||||
}
|
||||
|
||||
$url = Route::_('index.php?option=com_osmembership&view=plan&catid=' . $item->category_id . '&id=' . $item->id . '&Itemid=' . $Itemid);
|
||||
|
||||
if ($config->use_https)
|
||||
{
|
||||
$signUpUrl = Route::_(OSMembershipHelperRoute::getSignupRoute($item->id, $Itemid), false, 1);
|
||||
}
|
||||
else
|
||||
{
|
||||
$signUpUrl = Route::_(OSMembershipHelperRoute::getSignupRoute($item->id, $Itemid));
|
||||
}
|
||||
?>
|
||||
<div class="osm-item-wrapper <?php echo $spanClass; ?>">
|
||||
<div class="osm-item-heading-box <?php echo $clearFixClass; ?>">
|
||||
<h2 class="osm-item-title">
|
||||
<a href="<?php echo $url; ?>" title="<?php echo $item->title; ?>">
|
||||
<?php echo $item->title; ?>
|
||||
</a>
|
||||
</h2>
|
||||
</div>
|
||||
<div class="osm-item-description <?php echo $clearFixClass; ?>">
|
||||
<?php
|
||||
if ($item->thumb)
|
||||
{
|
||||
?>
|
||||
<a href="<?php echo $url; ?>" title="<?php echo $item->title; ?>">
|
||||
<img src="<?php echo $imgSrc; ?>" class="osm-thumb-left <?php echo $imgClass; ?>" />
|
||||
</a>
|
||||
<?php
|
||||
}
|
||||
|
||||
if (!$item->short_description)
|
||||
{
|
||||
$item->short_description = $item->description;
|
||||
}
|
||||
?>
|
||||
<div class="osm-item-description-text"><?php echo $item->short_description; ?></div>
|
||||
<div class="osm-taskbar <?php echo $clearFixClass; ?>">
|
||||
<ul>
|
||||
<?php
|
||||
$actions = OSMembershipHelperSubscription::getAllowedActions($item);
|
||||
|
||||
if (count($actions))
|
||||
{
|
||||
$language = Factory::getApplication()->getLanguage();
|
||||
|
||||
if (in_array('subscribe', $actions))
|
||||
{
|
||||
if ($language->hasKey('OSM_SIGNUP_PLAN_' . $item->id))
|
||||
{
|
||||
$signUpLanguageItem = 'OSM_SIGNUP_PLAN_' . $item->id;
|
||||
}
|
||||
else
|
||||
{
|
||||
$signUpLanguageItem = 'OSM_SIGNUP';
|
||||
}
|
||||
|
||||
if ($language->hasKey('OSM_RENEW_PLAN_' . $item->id))
|
||||
{
|
||||
$renewLanguageItem = 'OSM_RENEW_PLAN_' . $item->id;
|
||||
}
|
||||
else
|
||||
{
|
||||
$renewLanguageItem = 'OSM_RENEW';
|
||||
}
|
||||
?>
|
||||
<li>
|
||||
<a href="<?php echo $signUpUrl; ?>" class="<?php echo $btnPrimaryClass; ?>">
|
||||
<?php echo in_array($item->id, $subscribedPlanIds) ? Text::_($renewLanguageItem) : Text::_($signUpLanguageItem); ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
|
||||
if (in_array('upgrade', $actions))
|
||||
{
|
||||
if ($language->hasKey('OSM_UPGRADE_PLAN_' . $item->id))
|
||||
{
|
||||
$upgradeLanguageItem = 'OSM_UPGRADE_PLAN_' . $item->id;
|
||||
}
|
||||
else
|
||||
{
|
||||
$upgradeLanguageItem = 'OSM_UPGRADE';
|
||||
}
|
||||
|
||||
if (count($item->upgrade_rules) > 1)
|
||||
{
|
||||
$link = Route::_('index.php?option=com_osmembership&view=upgrademembership&to_plan_id=' . $item->id . '&Itemid=' . OSMembershipHelperRoute::findView('upgrademembership', $Itemid));
|
||||
}
|
||||
else
|
||||
{
|
||||
$upgradeOptionId = $item->upgrade_rules[0]->id;
|
||||
$link = Route::_('index.php?option=com_osmembership&task=register.process_upgrade_membership&upgrade_option_id=' . $upgradeOptionId . '&Itemid=' . $Itemid);
|
||||
}
|
||||
?>
|
||||
<li>
|
||||
<a href="<?php echo $link; ?>" class="<?php echo $btnPrimaryClass; ?>">
|
||||
<?php echo Text::_($upgradeLanguageItem); ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
|
||||
if (empty($config->hide_details_button))
|
||||
{
|
||||
?>
|
||||
<li>
|
||||
<a href="<?php echo $url; ?>" class="<?php echo $btnClass; ?>">
|
||||
<?php echo Text::_('OSM_DETAILS'); ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
if ($i % $numberColumns == 0 && $i < $numberPlans)
|
||||
{
|
||||
?>
|
||||
</div>
|
||||
<div class="<?php echo $rowFluidClearfixClass; ?>">
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
@@ -0,0 +1,229 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla
|
||||
* @subpackage Membership Pro
|
||||
* @author Tuan Pham Ngoc
|
||||
* @copyright Copyright (C) 2012 - 2025 Ossolution Team
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
/**
|
||||
* Layout variables
|
||||
*
|
||||
* @var array $items
|
||||
* @var int $categoryId
|
||||
* @var MPFInput $input
|
||||
* @var MPFConfig $config
|
||||
* @var OSMembershipHelperBootstrap $bootstrapHelper
|
||||
* @var \Joomla\Registry\Registry $params
|
||||
* @var int $Itemid
|
||||
*/
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Router\Route;
|
||||
use Joomla\CMS\Uri\Uri;
|
||||
|
||||
$rootUri = Uri::root(true);
|
||||
|
||||
$subscribedPlanIds = OSMembershipHelperSubscription::getSubscribedPlans();
|
||||
|
||||
if (!isset($categoryId))
|
||||
{
|
||||
$categoryId = 0;
|
||||
}
|
||||
|
||||
$rowFluidClass = $bootstrapHelper->getClassMapping('row-fluid');
|
||||
$imgClass = $bootstrapHelper->getClassMapping('img-polaroid');
|
||||
$btnClass = $bootstrapHelper->getClassMapping('btn');
|
||||
$btnPrimaryClass = $bootstrapHelper->getClassMapping('btn btn-primary');
|
||||
$clearfixClass = $bootstrapHelper->getClassMapping('clearfix');
|
||||
|
||||
$defaultItemId = $Itemid;
|
||||
|
||||
if (isset($params))
|
||||
{
|
||||
$showPlanInformation = $params->get('show_plan_information', 1);
|
||||
$planInformationPosition = $params->get('plan_information_position', 0);
|
||||
}
|
||||
else
|
||||
{
|
||||
$showPlanInformation = 1;
|
||||
$planInformationPosition = 0;
|
||||
}
|
||||
|
||||
if ($showPlanInformation && $planInformationPosition == 0)
|
||||
{
|
||||
$leftClass = $bootstrapHelper->getClassMapping('span7');
|
||||
$rightClass = $bootstrapHelper->getClassMapping('span5');
|
||||
}
|
||||
else
|
||||
{
|
||||
$leftClass = $bootstrapHelper->getClassMapping('clearfix');
|
||||
$rightClass = $bootstrapHelper->getClassMapping('clearfix');
|
||||
}
|
||||
|
||||
for ($i = 0 , $n = count($items) ; $i < $n ; $i++)
|
||||
{
|
||||
$item = $items[$i];
|
||||
$Itemid = OSMembershipHelperRoute::getPlanMenuId($item->id, $item->category_id, $defaultItemId);
|
||||
|
||||
if ($item->thumb)
|
||||
{
|
||||
$imgSrc = $rootUri . '/media/com_osmembership/' . $item->thumb;
|
||||
}
|
||||
|
||||
if ($item->category_id)
|
||||
{
|
||||
$url = Route::_('index.php?option=com_osmembership&view=plan&catid=' . $item->category_id . '&id=' . $item->id . '&Itemid=' . $Itemid);
|
||||
}
|
||||
else
|
||||
{
|
||||
$url = Route::_('index.php?option=com_osmembership&view=plan&id=' . $item->id . '&Itemid=' . $Itemid);
|
||||
}
|
||||
|
||||
if ($config->use_https)
|
||||
{
|
||||
$signUpUrl = Route::_(OSMembershipHelperRoute::getSignupRoute($item->id, $Itemid), false, 1);
|
||||
}
|
||||
else
|
||||
{
|
||||
$signUpUrl = Route::_(OSMembershipHelperRoute::getSignupRoute($item->id, $Itemid));
|
||||
}
|
||||
?>
|
||||
<div class="osm-item-wrapper <?php echo $clearfixClass; ?>">
|
||||
<div class="osm-item-heading-box <?php echo $clearfixClass; ?>">
|
||||
<h2 class="osm-item-title">
|
||||
<a href="<?php echo $url; ?>" title="<?php echo $item->title; ?>">
|
||||
<?php echo $item->title; ?>
|
||||
</a>
|
||||
</h2>
|
||||
</div>
|
||||
<div class="osm-item-description <?php echo $clearfixClass; ?>">
|
||||
<div class="<?php echo $rowFluidClass; ?>">
|
||||
<?php
|
||||
if ($showPlanInformation && $planInformationPosition == 1)
|
||||
{
|
||||
?>
|
||||
<div class="<?php echo $rightClass; ?>">
|
||||
<?php echo OSMembershipHelperHtml::loadCommonLayout('common/tmpl/plan_information.php', ['item' => $item]); ?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<div class="osm-description-details <?php echo $leftClass; ?>">
|
||||
<?php
|
||||
if ($item->thumb)
|
||||
{
|
||||
?>
|
||||
<img src="<?php echo $imgSrc; ?>" alt="<?php echo $item->title; ?>" class="osm-thumb-left <?php echo $imgClass; ?>"/>
|
||||
<?php
|
||||
}
|
||||
|
||||
if ($item->short_description)
|
||||
{
|
||||
echo $item->short_description;
|
||||
}
|
||||
else
|
||||
{
|
||||
echo $item->description;
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<?php
|
||||
if ($showPlanInformation && in_array($planInformationPosition, [0, 2]))
|
||||
{
|
||||
?>
|
||||
<div class="<?php echo $rightClass; ?>">
|
||||
<?php echo OSMembershipHelperHtml::loadCommonLayout('common/tmpl/plan_information.php', ['item' => $item]); ?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<div class="osm-taskbar <?php echo $clearfixClass; ?>">
|
||||
<ul>
|
||||
<?php
|
||||
$actions = OSMembershipHelperSubscription::getAllowedActions($item);
|
||||
|
||||
if (count($actions))
|
||||
{
|
||||
$language = Factory::getApplication()->getLanguage();
|
||||
|
||||
if (in_array('subscribe', $actions))
|
||||
{
|
||||
if ($language->hasKey('OSM_SIGNUP_PLAN_' . $item->id))
|
||||
{
|
||||
$signUpLanguageItem = 'OSM_SIGNUP_PLAN_' . $item->id;
|
||||
}
|
||||
else
|
||||
{
|
||||
$signUpLanguageItem = 'OSM_SIGNUP';
|
||||
}
|
||||
|
||||
if ($language->hasKey('OSM_RENEW_PLAN_' . $item->id))
|
||||
{
|
||||
$renewLanguageItem = 'OSM_RENEW_PLAN_' . $item->id;
|
||||
}
|
||||
else
|
||||
{
|
||||
$renewLanguageItem = 'OSM_RENEW';
|
||||
}
|
||||
?>
|
||||
<li>
|
||||
<a href="<?php echo $signUpUrl; ?>" class="<?php echo $btnPrimaryClass; ?>">
|
||||
<?php echo in_array($item->id, $subscribedPlanIds) ? Text::_($renewLanguageItem) : Text::_($signUpLanguageItem); ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
|
||||
if (in_array('upgrade', $actions))
|
||||
{
|
||||
if ($language->hasKey('OSM_UPGRADE_PLAN_' . $item->id))
|
||||
{
|
||||
$upgradeLanguageItem = 'OSM_UPGRADE_PLAN_' . $item->id;
|
||||
}
|
||||
else
|
||||
{
|
||||
$upgradeLanguageItem = 'OSM_UPGRADE';
|
||||
}
|
||||
|
||||
if (count($item->upgrade_rules) > 1)
|
||||
{
|
||||
$link = Route::_('index.php?option=com_osmembership&view=upgrademembership&to_plan_id=' . $item->id . '&Itemid=' . OSMembershipHelperRoute::findView('upgrademembership', $Itemid));
|
||||
}
|
||||
else
|
||||
{
|
||||
$upgradeOptionId = $item->upgrade_rules[0]->id;
|
||||
$link = Route::_('index.php?option=com_osmembership&task=register.process_upgrade_membership&upgrade_option_id=' . $upgradeOptionId . '&Itemid=' . $Itemid);
|
||||
}
|
||||
?>
|
||||
<li>
|
||||
<a href="<?php echo $link; ?>" class="<?php echo $btnPrimaryClass; ?>">
|
||||
<?php echo Text::_($upgradeLanguageItem); ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
|
||||
if (empty($config->hide_details_button))
|
||||
{
|
||||
?>
|
||||
<li>
|
||||
<a href="<?php echo $url; ?>" class="<?php echo $btnClass; ?>">
|
||||
<?php echo Text::_('OSM_DETAILS'); ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla
|
||||
* @subpackage Membership Pro
|
||||
* @author Tuan Pham Ngoc
|
||||
* @copyright Copyright (C) 2012 - 2025 Ossolution Team
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
/**
|
||||
* Layout variables
|
||||
*
|
||||
* @var array $rowMembers
|
||||
*/
|
||||
|
||||
$names = [];
|
||||
|
||||
foreach ($rowMembers as $rowMember)
|
||||
{
|
||||
$names[] = trim($rowMember->first_name . ' ' . $rowMember->last_name);
|
||||
}
|
||||
|
||||
echo implode("\r\n", $names);
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla
|
||||
* @subpackage Membership Pro
|
||||
* @author Tuan Pham Ngoc
|
||||
* @copyright Copyright (C) 2012 - 2025 Ossolution Team
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
/**
|
||||
* Layout variables
|
||||
*
|
||||
* @var string $redirectHeading
|
||||
* @var string $url
|
||||
* @var bool $newWindow
|
||||
* @var array $data
|
||||
*/
|
||||
?>
|
||||
<div class="payment-heading"><?php echo $redirectHeading; ?></div>
|
||||
<form method="post" action="<?php echo $url; ?>" name="payment_form"
|
||||
id="payment_form"<?php if ($newWindow) echo ' target="_blank"'; ?>>
|
||||
<?php
|
||||
foreach ($data as $key => $val)
|
||||
{
|
||||
echo '<input type="hidden" name="' . $key . '" value="' . $val . '" />';
|
||||
echo "\n";
|
||||
}
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
document.payment_form.submit();
|
||||
</script>
|
||||
</form>
|
||||
@@ -0,0 +1,44 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla
|
||||
* @subpackage Membership Pro
|
||||
* @author Tuan Pham Ngoc
|
||||
* @copyright Copyright (C) 2012 - 2025 Ossolution Team
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
*/
|
||||
|
||||
/**
|
||||
* Layout variables
|
||||
*
|
||||
* @var stdClass $item
|
||||
*/
|
||||
|
||||
use Joomla\CMS\Form\Form;
|
||||
use Joomla\CMS\Language\Text;
|
||||
|
||||
try
|
||||
{
|
||||
$form = Form::getInstance('plan_fields', JPATH_ROOT . '/components/com_osmembership/fields.xml', [], false, '//config');
|
||||
}
|
||||
catch (Exception $e)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
foreach ($form->getFieldset('basic') as $field)
|
||||
{
|
||||
if ($field->getAttribute('hide'))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
?>
|
||||
<tr class="osm-plan-property">
|
||||
<td class="osm-plan-property-label">
|
||||
<?php echo Text::_($field->getAttribute('label')); ?>:
|
||||
</td>
|
||||
<td class="osm-plan-property-value">
|
||||
<?php echo $item->fieldsData->get($field->getAttribute('name')); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
@@ -0,0 +1,127 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla
|
||||
* @subpackage Membership Pro
|
||||
* @author Tuan Pham Ngoc
|
||||
* @copyright Copyright (C) 2012 - 2025 Ossolution Team
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
*/
|
||||
|
||||
/**
|
||||
* Layout variables
|
||||
*
|
||||
* @var stdClass $item
|
||||
*/
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\Language\Text;
|
||||
|
||||
$bootstrapHelper = OSMembershipHelperBootstrap::getInstance();
|
||||
$config = OSMembershipHelper::getConfig();
|
||||
$symbol = $item->currency_symbol ?: $item->currency;
|
||||
?>
|
||||
<table class="<?php echo $bootstrapHelper->getClassMapping('table table-striped table-bordered'); ?>">
|
||||
<?php
|
||||
if ($item->setup_fee > 0)
|
||||
{
|
||||
?>
|
||||
<tr class="osm-plan-property">
|
||||
<td class="osm-plan-property-label">
|
||||
<?php echo Text::_('OSM_SETUP_FEE'); ?>:
|
||||
</td>
|
||||
<td class="osm-plan-property-value">
|
||||
<?php echo OSMembershipHelper::formatCurrency($item->setup_fee, $config, $symbol); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
||||
if ($item->recurring_subscription && $item->trial_duration)
|
||||
{
|
||||
?>
|
||||
<tr class="osm-plan-property">
|
||||
<td class="osm-plan-property-label">
|
||||
<?php echo Text::_('OSM_TRIAL_DURATION'); ?>:
|
||||
</td>
|
||||
<td class="osm-plan-property-value">
|
||||
<?php
|
||||
if ($item->lifetime_membership)
|
||||
{
|
||||
echo Text::_('OSM_LIFETIME');
|
||||
}
|
||||
else
|
||||
{
|
||||
echo OSMembershipHelperSubscription::getDurationText($item->trial_duration, $item->trial_duration_unit);
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr class="osm-plan-property">
|
||||
<td class="osm-plan-property-label">
|
||||
<?php echo Text::_('OSM_TRIAL_PRICE'); ?>:
|
||||
</td>
|
||||
<td class="osm-plan-property-value">
|
||||
<?php
|
||||
if ($item->trial_amount > 0)
|
||||
{
|
||||
echo OSMembershipHelper::formatCurrency($item->trial_amount, $config, $symbol);
|
||||
}
|
||||
else
|
||||
{
|
||||
echo Text::_('OSM_FREE');
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
||||
if (!((int) $item->expired_date))
|
||||
{
|
||||
?>
|
||||
<tr class="osm-plan-property">
|
||||
<td class="osm-plan-property-label">
|
||||
<?php echo Text::_('OSM_DURATION'); ?>:
|
||||
</td>
|
||||
<td class="osm-plan-property-value">
|
||||
<?php
|
||||
if ($item->lifetime_membership)
|
||||
{
|
||||
echo Text::_('OSM_LIFETIME');
|
||||
}
|
||||
else
|
||||
{
|
||||
echo OSMembershipHelperSubscription::getDurationText($item->subscription_length, $item->subscription_length_unit);
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<tr class="osm-plan-property">
|
||||
<td class="osm-plan-property-label">
|
||||
<?php echo Text::_('OSM_PRICE'); ?>:
|
||||
</td>
|
||||
<td class="osm-plan-property-value">
|
||||
<?php
|
||||
if ($item->price > 0)
|
||||
{
|
||||
echo OSMembershipHelper::formatCurrency($item->price, $config, $symbol);
|
||||
}
|
||||
else
|
||||
{
|
||||
echo Text::_('OSM_FREE');
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
if (file_exists(JPATH_ROOT . '/components/com_osmembership/fields.xml')
|
||||
&& filesize(JPATH_ROOT . '/components/com_osmembership/fields.xml'))
|
||||
{
|
||||
echo OSMembershipHelperHtml::loadCommonLayout('common/tmpl/plan_custom_fields.php', ['item' => $item]);
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
@@ -0,0 +1,68 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla
|
||||
* @subpackage Membership Pro
|
||||
* @author Tuan Pham Ngoc
|
||||
* @copyright Copyright (C) 2012 - 2025 Ossolution Team
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Language\Text;
|
||||
|
||||
/**
|
||||
* Layout variables
|
||||
*
|
||||
* @var stdClass $item
|
||||
*/
|
||||
|
||||
$config = OSMembershipHelper::getConfig();
|
||||
|
||||
$dec_point = $config->dec_point ?? '.';
|
||||
$thousands_sep = $config->thousands_sep ?? ',';
|
||||
|
||||
if ($item->lifetime_membership)
|
||||
{
|
||||
$subscriptionLengthText = Text::_('OSM_LIFETIME');
|
||||
}
|
||||
else
|
||||
{
|
||||
$subscriptionLengthText = OSMembershipHelperSubscription::getDurationText($item->subscription_length, $item->subscription_length_unit, false);
|
||||
}
|
||||
|
||||
if ($item->price > 0)
|
||||
{
|
||||
$priceParts = explode('.', $item->price);
|
||||
|
||||
if ($priceParts[1] == '00' || $config->decimals === '0')
|
||||
{
|
||||
$numberDecimals = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
$numberDecimals = 2;
|
||||
}
|
||||
|
||||
$symbol = $item->currency_symbol ?: $item->currency;
|
||||
|
||||
if (!$symbol)
|
||||
{
|
||||
$symbol = $config->currency_symbol;
|
||||
}
|
||||
|
||||
if ($config->currency_position == 0)
|
||||
{
|
||||
echo $symbol . number_format($item->price, $numberDecimals, $dec_point, $thousands_sep) . ($subscriptionLengthText ? "<sub>/$subscriptionLengthText</sub>" : '');
|
||||
}
|
||||
else
|
||||
{
|
||||
echo number_format($item->price, $numberDecimals, $dec_point, $thousands_sep) . $symbol . ($subscriptionLengthText ? "<sub>/$subscriptionLengthText</sub>" : '');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
echo Text::_('OSM_FREE') . ($subscriptionLengthText ? "<sub> /$subscriptionLengthText</sub>" : '');
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,236 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla
|
||||
* @subpackage Membership Pro
|
||||
* @author Tuan Pham Ngoc
|
||||
* @copyright Copyright (C) 2012 - 2025 Ossolution Team
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Router\Route;
|
||||
use Joomla\CMS\Uri\Uri;
|
||||
|
||||
/**
|
||||
* Layout variables
|
||||
*
|
||||
* @var array $items
|
||||
* @var MPFInput $input
|
||||
* @var MPFConfig $config
|
||||
* @var int $Itemid
|
||||
* @var int $categoryId
|
||||
* @var OSMembershipHelperBootstrap $bootstrapHelper
|
||||
*/
|
||||
|
||||
$rootUri = Uri::root(true);
|
||||
|
||||
$subscribedPlanIds = OSMembershipHelperSubscription::getSubscribedPlans();
|
||||
|
||||
if (empty($params))
|
||||
{
|
||||
$params = Factory::getApplication()->getParams();
|
||||
}
|
||||
|
||||
if (isset($input) && $input->getInt('recommended_plan_id'))
|
||||
{
|
||||
$recommendedPlanId = $input->getInt('recommended_plan_id');
|
||||
}
|
||||
else
|
||||
{
|
||||
$recommendedPlanId = (int) $params->get('recommended_campaign_id');
|
||||
}
|
||||
|
||||
$standardPlanBackgroundColor = $params->get('standard_plan_color', '#00B69C');
|
||||
$recommendedPlanBackgroundColor = $params->get('recommended_plan_color', '#bF75500');
|
||||
$showDetailsButton = $params->get('show_details_button', 0);
|
||||
|
||||
if (isset($input) && $input->getInt('number_columns'))
|
||||
{
|
||||
$numberColumns = $input->getInt('number_columns');
|
||||
}
|
||||
elseif (isset($config->number_columns))
|
||||
{
|
||||
$numberColumns = $config->number_columns;
|
||||
}
|
||||
else
|
||||
{
|
||||
$numberColumns = 3;
|
||||
}
|
||||
|
||||
$numberColumns = min($numberColumns, 5);
|
||||
|
||||
if (!isset($categoryId))
|
||||
{
|
||||
$categoryId = 0;
|
||||
}
|
||||
|
||||
$span = intval(12 / $numberColumns);
|
||||
$imgClass = $bootstrapHelper->getClassMapping('img-polaroid');
|
||||
$spanClass = $bootstrapHelper->getClassMapping('span' . $span);
|
||||
|
||||
$i = 0;
|
||||
$numberPlans = count($items);
|
||||
$defaultItemId = $Itemid;
|
||||
$rootUri = Uri::root(true);
|
||||
|
||||
foreach ($items as $item)
|
||||
{
|
||||
$Itemid = OSMembershipHelperRoute::getPlanMenuId($item->id, $item->category_id, $defaultItemId);
|
||||
|
||||
if ($item->thumb)
|
||||
{
|
||||
$imgSrc = $rootUri . '/media/com_osmembership/' . $item->thumb;
|
||||
}
|
||||
|
||||
$url = Route::_('index.php?option=com_osmembership&view=plan&catid=' . $item->category_id . '&id=' . $item->id . '&Itemid=' . $Itemid);
|
||||
|
||||
if ($config->use_https)
|
||||
{
|
||||
$signUpUrl = Route::_(OSMembershipHelperRoute::getSignupRoute($item->id, $Itemid), false, 1);
|
||||
}
|
||||
else
|
||||
{
|
||||
$signUpUrl = Route::_(OSMembershipHelperRoute::getSignupRoute($item->id, $Itemid));
|
||||
}
|
||||
|
||||
if (!$item->short_description)
|
||||
{
|
||||
$item->short_description = $item->description;
|
||||
}
|
||||
|
||||
if ($item->id == $recommendedPlanId)
|
||||
{
|
||||
$recommended = true;
|
||||
$backgroundColor = $recommendedPlanBackgroundColor;
|
||||
}
|
||||
else
|
||||
{
|
||||
$recommended = false;
|
||||
$backgroundColor = $standardPlanBackgroundColor;
|
||||
}
|
||||
|
||||
if ($i % $numberColumns == 0)
|
||||
{
|
||||
?>
|
||||
<div class="<?php echo $bootstrapHelper->getClassMapping('row-fluid clearfix'); ?> osm-pricing-table-circle">
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<div class="<?php echo $spanClass; ?>">
|
||||
<div class="osm-plan osm-plan-<?php echo $item->id; ?>">
|
||||
<div class="osm-plan-header" style="background-color: <?php echo $backgroundColor; ?>">
|
||||
<h2 class="osm-plan-title">
|
||||
<?php echo $item->title; ?>
|
||||
</h2>
|
||||
<div class="osm-plan-price" style="background-color: <?php echo $backgroundColor; ?>">
|
||||
<p class="price">
|
||||
<?php echo OSMembershipHelperHtml::loadCommonLayout('common/tmpl/priceduration.php', ['item' => $item]); ?>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="osm-plan-short-description">
|
||||
<?php echo $item->short_description;?>
|
||||
</div>
|
||||
<ul class="osm-signup-container">
|
||||
<?php
|
||||
$actions = OSMembershipHelperSubscription::getAllowedActions($item);
|
||||
|
||||
if(count($actions))
|
||||
{
|
||||
$language = Factory::getApplication()->getLanguage();
|
||||
|
||||
if (in_array('subscribe', $actions))
|
||||
{
|
||||
if ($language->hasKey('OSM_SIGNUP_PLAN_' . $item->id))
|
||||
{
|
||||
$signUpLanguageItem = 'OSM_SIGNUP_PLAN_' . $item->id;
|
||||
}
|
||||
else
|
||||
{
|
||||
$signUpLanguageItem = 'OSM_SIGNUP';
|
||||
}
|
||||
|
||||
if ($language->hasKey('OSM_RENEW_PLAN_' . $item->id))
|
||||
{
|
||||
$renewLanguageItem = 'OSM_RENEW_PLAN_' . $item->id;
|
||||
}
|
||||
else
|
||||
{
|
||||
$renewLanguageItem = 'OSM_RENEW';
|
||||
}
|
||||
?>
|
||||
<li>
|
||||
<a href="<?php echo $signUpUrl; ?>" class="btn-signup" style="background-color: <?php echo $backgroundColor; ?>">
|
||||
<?php echo in_array($item->id, $subscribedPlanIds) ? Text::_($renewLanguageItem) : Text::_($signUpLanguageItem); ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
|
||||
if (in_array('upgrade', $actions))
|
||||
{
|
||||
if ($language->hasKey('OSM_UPGRADE_PLAN_' . $item->id))
|
||||
{
|
||||
$upgradeLanguageItem = 'OSM_UPGRADE_PLAN_' . $item->id;
|
||||
}
|
||||
else
|
||||
{
|
||||
$upgradeLanguageItem = 'OSM_UPGRADE';
|
||||
}
|
||||
|
||||
if (count($item->upgrade_rules) > 1)
|
||||
{
|
||||
$link = Route::_('index.php?option=com_osmembership&view=upgrademembership&to_plan_id=' . $item->id . '&Itemid=' . OSMembershipHelperRoute::findView('upgrademembership', $Itemid));
|
||||
}
|
||||
else
|
||||
{
|
||||
$upgradeOptionId = $item->upgrade_rules[0]->id;
|
||||
$link = Route::_('index.php?option=com_osmembership&task=register.process_upgrade_membership&upgrade_option_id=' . $upgradeOptionId . '&Itemid=' . $Itemid);
|
||||
}
|
||||
?>
|
||||
<li>
|
||||
<a href="<?php echo $link; ?>" class="btn-signup" style="background-color: <?php echo $backgroundColor; ?>">
|
||||
<?php echo Text::_($upgradeLanguageItem); ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
|
||||
if ($showDetailsButton)
|
||||
{
|
||||
?>
|
||||
<li>
|
||||
<a href="<?php echo $url; ?>" class="btn-signup" style="background-color: <?php echo $backgroundColor; ?>">
|
||||
<?php echo Text::_('OSM_DETAILS'); ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
if (($i + 1) % $numberColumns == 0)
|
||||
{
|
||||
?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
|
||||
if ($i % $numberColumns != 0)
|
||||
{
|
||||
echo '</div>' ;
|
||||
}
|
||||
?>
|
||||
<style type="text/css">
|
||||
.osm-pricing-table-circle .osm-plan:hover .osm-plan-price {
|
||||
background-color: <?php echo $recommendedPlanBackgroundColor; ?>!important;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,231 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla
|
||||
* @subpackage Membership Pro
|
||||
* @author Tuan Pham Ngoc
|
||||
* @copyright Copyright (C) 2012 - 2025 Ossolution Team
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Router\Route;
|
||||
use Joomla\CMS\Uri\Uri;
|
||||
|
||||
/**
|
||||
* Layout variables
|
||||
*
|
||||
* @var array $items
|
||||
* @var MPFInput $input
|
||||
* @var MPFConfig $config
|
||||
* @var int $Itemid
|
||||
* @var int $categoryId
|
||||
* @var OSMembershipHelperBootstrap $bootstrapHelper
|
||||
*/
|
||||
|
||||
// Load equals height script
|
||||
$rootUri = Uri::root(true);
|
||||
|
||||
$subscribedPlanIds = OSMembershipHelperSubscription::getSubscribedPlans();
|
||||
|
||||
if (empty($params))
|
||||
{
|
||||
$params = Factory::getApplication()->getParams();
|
||||
}
|
||||
|
||||
if (isset($input) && $input->getInt('recommended_plan_id'))
|
||||
{
|
||||
$recommendedPlanId = $input->getInt('recommended_plan_id');
|
||||
}
|
||||
else
|
||||
{
|
||||
$recommendedPlanId = (int) $params->get('recommended_campaign_id');
|
||||
}
|
||||
|
||||
$standardPlanBackgroundColor = $params->get('standard_plan_color', '#00B69C');
|
||||
$recommendedPlanBackgroundColor = $params->get('recommended_plan_color', '#F75500');
|
||||
$showDetailsButton = $params->get('show_details_button', 0);
|
||||
|
||||
if (isset($input) && $input->getInt('number_columns'))
|
||||
{
|
||||
$numberColumns = $input->getInt('number_columns');
|
||||
}
|
||||
elseif (isset($config->number_columns))
|
||||
{
|
||||
$numberColumns = $config->number_columns;
|
||||
}
|
||||
else
|
||||
{
|
||||
$numberColumns = 3;
|
||||
}
|
||||
|
||||
$numberColumns = min($numberColumns, 5);
|
||||
|
||||
if (!isset($categoryId))
|
||||
{
|
||||
$categoryId = 0;
|
||||
}
|
||||
|
||||
$span = intval(12 / $numberColumns);
|
||||
$imgClass = $bootstrapHelper->getClassMapping('img-polaroid');
|
||||
$spanClass = $bootstrapHelper->getClassMapping('span' . $span);
|
||||
|
||||
$i = 0;
|
||||
$numberPlans = count($items);
|
||||
$defaultItemId = $Itemid;
|
||||
$rootUri = Uri::root(true);
|
||||
|
||||
foreach ($items as $item)
|
||||
{
|
||||
$Itemid = OSMembershipHelperRoute::getPlanMenuId($item->id, $item->category_id, $defaultItemId);
|
||||
|
||||
if ($item->thumb)
|
||||
{
|
||||
$imgSrc = $rootUri . '/media/com_osmembership/' . $item->thumb;
|
||||
}
|
||||
|
||||
$url = Route::_('index.php?option=com_osmembership&view=plan&catid=' . $item->category_id . '&id=' . $item->id . '&Itemid=' . $Itemid);
|
||||
|
||||
if ($config->use_https)
|
||||
{
|
||||
$signUpUrl = Route::_(OSMembershipHelperRoute::getSignupRoute($item->id, $Itemid), false, 1);
|
||||
}
|
||||
else
|
||||
{
|
||||
$signUpUrl = Route::_(OSMembershipHelperRoute::getSignupRoute($item->id, $Itemid));
|
||||
}
|
||||
|
||||
if (!$item->short_description)
|
||||
{
|
||||
$item->short_description = $item->description;
|
||||
}
|
||||
|
||||
if ($item->id == $recommendedPlanId)
|
||||
{
|
||||
$recommended = true;
|
||||
$backgroundColor = $recommendedPlanBackgroundColor;
|
||||
}
|
||||
else
|
||||
{
|
||||
$recommended = false;
|
||||
$backgroundColor = $standardPlanBackgroundColor;
|
||||
}
|
||||
|
||||
if ($i % $numberColumns == 0)
|
||||
{
|
||||
?>
|
||||
<div class="<?php echo $bootstrapHelper->getClassMapping('row-fluid clearfix'); ?> osm-pricing-table-flat">
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<div class="<?php echo $spanClass; ?>">
|
||||
<div class="osm-plan osm-plan-<?php echo $item->id; ?>" style="background-color: <?php echo $backgroundColor; ?>">
|
||||
<div class="osm-plan-header">
|
||||
<h2 class="osm-plan-title">
|
||||
<?php echo $item->title; ?>
|
||||
</h2>
|
||||
</div>
|
||||
<div class="osm-plan-price">
|
||||
<p class="price">
|
||||
<?php echo OSMembershipHelperHtml::loadCommonLayout('common/tmpl/priceduration.php', ['item' => $item]); ?>
|
||||
</p>
|
||||
</div>
|
||||
<div class="osm-plan-short-description">
|
||||
<?php echo $item->short_description;?>
|
||||
</div>
|
||||
<ul class="osm-signup-container">
|
||||
<?php
|
||||
$actions = OSMembershipHelperSubscription::getAllowedActions($item);
|
||||
|
||||
if (count($actions))
|
||||
{
|
||||
$language = Factory::getApplication()->getLanguage();
|
||||
|
||||
if (in_array('subscribe', $actions))
|
||||
{
|
||||
if ($language->hasKey('OSM_SIGNUP_PLAN_' . $item->id))
|
||||
{
|
||||
$signUpLanguageItem = 'OSM_SIGNUP_PLAN_' . $item->id;
|
||||
}
|
||||
else
|
||||
{
|
||||
$signUpLanguageItem = 'OSM_SIGNUP';
|
||||
}
|
||||
|
||||
if ($language->hasKey('OSM_RENEW_PLAN_' . $item->id))
|
||||
{
|
||||
$renewLanguageItem = 'OSM_RENEW_PLAN_' . $item->id;
|
||||
}
|
||||
else
|
||||
{
|
||||
$renewLanguageItem = 'OSM_RENEW';
|
||||
}
|
||||
?>
|
||||
<li>
|
||||
<a href="<?php echo $signUpUrl; ?>" class="btn-signup">
|
||||
<?php echo in_array($item->id, $subscribedPlanIds) ? Text::_($renewLanguageItem) : Text::_($signUpLanguageItem); ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
|
||||
if (in_array('upgrade', $actions))
|
||||
{
|
||||
if ($language->hasKey('OSM_UPGRADE_PLAN_' . $item->id))
|
||||
{
|
||||
$upgradeLanguageItem = 'OSM_UPGRADE_PLAN_' . $item->id;
|
||||
}
|
||||
else
|
||||
{
|
||||
$upgradeLanguageItem = 'OSM_UPGRADE';
|
||||
}
|
||||
|
||||
if (count($item->upgrade_rules) > 1)
|
||||
{
|
||||
$link = Route::_('index.php?option=com_osmembership&view=upgrademembership&to_plan_id=' . $item->id . '&Itemid=' . OSMembershipHelperRoute::findView('upgrademembership', $Itemid));
|
||||
}
|
||||
else
|
||||
{
|
||||
$upgradeOptionId = $item->upgrade_rules[0]->id;
|
||||
$link = Route::_('index.php?option=com_osmembership&task=register.process_upgrade_membership&upgrade_option_id=' . $upgradeOptionId . '&Itemid=' . $Itemid);
|
||||
}
|
||||
?>
|
||||
<li>
|
||||
<a href="<?php echo $link; ?>" class="btn-signup">
|
||||
<?php echo Text::_($upgradeLanguageItem); ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
|
||||
if ($showDetailsButton)
|
||||
{
|
||||
?>
|
||||
<li>
|
||||
<a href="<?php echo $url; ?>" class="btn-signup oms-btn-details">
|
||||
<?php echo Text::_('OSM_DETAILS'); ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
if (($i + 1) % $numberColumns == 0)
|
||||
{
|
||||
?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
|
||||
if ($i % $numberColumns != 0)
|
||||
{
|
||||
echo '</div>' ;
|
||||
}
|
||||
@@ -0,0 +1,259 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla
|
||||
* @subpackage Membership Pro
|
||||
* @author Tuan Pham Ngoc
|
||||
* @copyright Copyright (C) 2012 - 2025 Ossolution Team
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Router\Route;
|
||||
use Joomla\CMS\Uri\Uri;
|
||||
|
||||
/**
|
||||
* Layout variables
|
||||
*
|
||||
* @var array $items
|
||||
* @var MPFInput $input
|
||||
* @var MPFConfig $config
|
||||
* @var int $Itemid
|
||||
* @var int $categoryId
|
||||
* @var OSMembershipHelperBootstrap $bootstrapHelper
|
||||
*/
|
||||
|
||||
$subscribedPlanIds = OSMembershipHelperSubscription::getSubscribedPlans();
|
||||
|
||||
if (empty($params))
|
||||
{
|
||||
$params = Factory::getApplication()->getParams();
|
||||
}
|
||||
|
||||
// Background color settings
|
||||
$badgeBgColor = $params->get('recommended_badge_background_color');
|
||||
$headerBgColor = $params->get('header_background_color');
|
||||
$priceBgColor = $params->get('price_background_color');
|
||||
$recommendedPriceBgColor = $params->get('recommended_plan_price_background_color');
|
||||
|
||||
if (isset($input) && $input->getInt('recommended_plan_id'))
|
||||
{
|
||||
$recommendedPlanId = $input->getInt('recommended_plan_id');
|
||||
}
|
||||
else
|
||||
{
|
||||
$recommendedPlanId = (int) $params->get('recommended_campaign_id');
|
||||
}
|
||||
|
||||
$showDetailsButton = $params->get('show_details_button', 0);
|
||||
|
||||
if (isset($input) && $input->getInt('number_columns'))
|
||||
{
|
||||
$numberColumns = $input->getInt('number_columns');
|
||||
}
|
||||
elseif (isset($config->number_columns))
|
||||
{
|
||||
$numberColumns = $config->number_columns ;
|
||||
}
|
||||
else
|
||||
{
|
||||
$numberColumns = 3 ;
|
||||
}
|
||||
|
||||
$numberColumns = min($numberColumns, 4);
|
||||
|
||||
if (!isset($categoryId))
|
||||
{
|
||||
$categoryId = 0;
|
||||
}
|
||||
|
||||
$span = intval(12 / $numberColumns);
|
||||
|
||||
$btnClass = $bootstrapHelper->getClassMapping('btn');
|
||||
$btnPrimaryClass = $bootstrapHelper->getClassMapping('btn btn-primary');
|
||||
$imgClass = $bootstrapHelper->getClassMapping('img-polaroid');
|
||||
$spanClass = $bootstrapHelper->getClassMapping('span' . $span);
|
||||
|
||||
$rootUri = Uri::root(true);
|
||||
$i = 0;
|
||||
$numberPlans = count($items);
|
||||
$defaultItemId = $Itemid;
|
||||
|
||||
foreach ($items as $item)
|
||||
{
|
||||
$Itemid = OSMembershipHelperRoute::getPlanMenuId($item->id, $item->category_id, $defaultItemId);
|
||||
|
||||
if ($item->thumb)
|
||||
{
|
||||
$imgSrc = $rootUri . '/media/com_osmembership/' . $item->thumb;
|
||||
}
|
||||
|
||||
$url = Route::_('index.php?option=com_osmembership&view=plan&catid=' . $item->category_id . '&id=' . $item->id . '&Itemid=' . $Itemid);
|
||||
|
||||
if ($config->use_https)
|
||||
{
|
||||
$signUpUrl = Route::_(OSMembershipHelperRoute::getSignupRoute($item->id, $Itemid), false, 1);
|
||||
}
|
||||
else
|
||||
{
|
||||
$signUpUrl = Route::_(OSMembershipHelperRoute::getSignupRoute($item->id, $Itemid));
|
||||
}
|
||||
|
||||
if (!$item->short_description)
|
||||
{
|
||||
$item->short_description = $item->description;
|
||||
}
|
||||
|
||||
if ($item->id == $recommendedPlanId)
|
||||
{
|
||||
$recommended = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
$recommended = false;
|
||||
}
|
||||
|
||||
if ($recommended && $recommendedPriceBgColor)
|
||||
{
|
||||
$planPriceBackgroundColor = $recommendedPriceBgColor;
|
||||
}
|
||||
elseif ($priceBgColor)
|
||||
{
|
||||
$planPriceBackgroundColor = $priceBgColor;
|
||||
}
|
||||
else
|
||||
{
|
||||
$planPriceBackgroundColor = '';
|
||||
}
|
||||
|
||||
if ($i % $numberColumns == 0)
|
||||
{
|
||||
?>
|
||||
<div class="<?php echo $bootstrapHelper->getClassMapping('row-fluid clearfix'); ?> osm-pricing-table">
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<div class="<?php echo $spanClass; ?>">
|
||||
<div class="osm-plan<?php if ($recommended) echo ' osm-plan-recommended'; ?> osm-plan-<?php echo $item->id; ?>">
|
||||
<?php
|
||||
if ($recommended)
|
||||
{
|
||||
?>
|
||||
<p class="plan-recommended"<?php if ($badgeBgColor) echo ' style=" background-color:' . $badgeBgColor . '";'; ?>><?php echo Text::_('OSM_RECOMMENDED'); ?></p>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<div class="osm-plan-header"<?php if ($headerBgColor) echo ' style=" background-color:' . $headerBgColor . '";'; ?>>
|
||||
<h2 class="osm-plan-title">
|
||||
<?php echo $item->title; ?>
|
||||
</h2>
|
||||
</div>
|
||||
<div class="osm-plan-price"<?php if ($planPriceBackgroundColor) echo ' style=" background-color:' . $planPriceBackgroundColor . '";'; ?>>
|
||||
<h2>
|
||||
<p class="price">
|
||||
<?php echo OSMembershipHelperHtml::loadCommonLayout('common/tmpl/priceduration.php', ['item' => $item]); ?>
|
||||
</p>
|
||||
</h2>
|
||||
</div>
|
||||
<div class="osm-plan-short-description">
|
||||
<?php echo $item->short_description;?>
|
||||
</div>
|
||||
<?php
|
||||
$actions = OSMembershipHelperSubscription::getAllowedActions($item);
|
||||
|
||||
if (count($actions) || $showDetailsButton)
|
||||
{
|
||||
$language = Factory::getApplication()->getLanguage();
|
||||
?>
|
||||
<ul class="osm-signup-container">
|
||||
<?php
|
||||
if (in_array('subscribe', $actions))
|
||||
{
|
||||
if ($language->hasKey('OSM_SIGNUP_PLAN_' . $item->id))
|
||||
{
|
||||
$signUpLanguageItem = 'OSM_SIGNUP_PLAN_' . $item->id;
|
||||
}
|
||||
else
|
||||
{
|
||||
$signUpLanguageItem = 'OSM_SIGNUP';
|
||||
}
|
||||
|
||||
if ($language->hasKey('OSM_RENEW_PLAN_' . $item->id))
|
||||
{
|
||||
$renewLanguageItem = 'OSM_RENEW_PLAN_' . $item->id;
|
||||
}
|
||||
else
|
||||
{
|
||||
$renewLanguageItem = 'OSM_RENEW';
|
||||
}
|
||||
?>
|
||||
<li>
|
||||
<a href="<?php echo $signUpUrl; ?>" class="<?php echo $btnPrimaryClass; ?> btn-singup">
|
||||
<?php echo in_array($item->id, $subscribedPlanIds) ? Text::_($renewLanguageItem) : Text::_($signUpLanguageItem); ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
|
||||
if (in_array('upgrade', $actions))
|
||||
{
|
||||
if ($language->hasKey('OSM_UPGRADE_PLAN_' . $item->id))
|
||||
{
|
||||
$upgradeLanguageItem = 'OSM_UPGRADE_PLAN_' . $item->id;
|
||||
}
|
||||
else
|
||||
{
|
||||
$upgradeLanguageItem = 'OSM_UPGRADE';
|
||||
}
|
||||
|
||||
if (count($item->upgrade_rules) > 1)
|
||||
{
|
||||
$link = Route::_('index.php?option=com_osmembership&view=upgrademembership&to_plan_id=' . $item->id . '&Itemid=' . OSMembershipHelperRoute::findView('upgrademembership', $Itemid));
|
||||
}
|
||||
else
|
||||
{
|
||||
$upgradeOptionId = $item->upgrade_rules[0]->id;
|
||||
$link = Route::_('index.php?option=com_osmembership&task=register.process_upgrade_membership&upgrade_option_id=' . $upgradeOptionId . '&Itemid=' . $Itemid);
|
||||
}
|
||||
?>
|
||||
<li>
|
||||
<a href="<?php echo $link; ?>" class="<?php echo $btnPrimaryClass; ?> btn-singup">
|
||||
<?php echo Text::_($upgradeLanguageItem); ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
|
||||
if ($showDetailsButton)
|
||||
{
|
||||
?>
|
||||
<li>
|
||||
<a href="<?php echo $url; ?>" class="<?php echo $btnClass; ?>">
|
||||
<?php echo Text::_('OSM_DETAILS'); ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
if (($i + 1) % $numberColumns == 0)
|
||||
{
|
||||
?>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
|
||||
if ($i % $numberColumns != 0)
|
||||
{
|
||||
echo '</div>' ;
|
||||
}
|
||||
@@ -0,0 +1,127 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla
|
||||
* @subpackage Membership Pro
|
||||
* @author Tuan Pham Ngoc
|
||||
* @copyright Copyright (C) 2012 - 2025 Ossolution Team
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\HTML\HTMLHelper;
|
||||
use Joomla\CMS\Language\Text;
|
||||
|
||||
?>
|
||||
<ul class="osm-renew-options">
|
||||
<?php
|
||||
$userId = Factory::getApplication()->getIdentity()->id;
|
||||
$renewOptionCount = 0;
|
||||
$fieldSuffix = OSMembershipHelper::getFieldSuffix();
|
||||
|
||||
foreach ($this->planIds as $planId)
|
||||
{
|
||||
$plan = $this->plans[$planId];
|
||||
$taxRate = 0;
|
||||
|
||||
if ($this->config->show_price_including_tax && !$this->config->setup_price_including_tax)
|
||||
{
|
||||
$taxRate = OSMembershipHelper::calculateMaxTaxRate($planId);
|
||||
}
|
||||
|
||||
$symbol = $plan->currency_symbol ?: $plan->currency;
|
||||
$renewOptions = $this->renewOptions[$planId] ?? [];
|
||||
|
||||
if (count($renewOptions))
|
||||
{
|
||||
foreach ($renewOptions as $renewOption)
|
||||
{
|
||||
$checked = '';
|
||||
|
||||
if ($renewOptionCount == 0)
|
||||
{
|
||||
$checked = ' checked="checked" ';
|
||||
}
|
||||
|
||||
$renewOptionCount++;
|
||||
$renewOptionLengthText = OSMembershipHelperSubscription::getDurationText($renewOption->renew_option_length, $renewOption->renew_option_length_unit);
|
||||
|
||||
$renewOptionText = Text::sprintf('OSM_RENEW_OPTION_TEXT', $plan->title, $renewOptionLengthText, OSMembershipHelper::formatCurrency($renewOption->price * (1 + $taxRate / 100), $this->config, $symbol));
|
||||
|
||||
if (strpos($renewOptionText, '[EXPIRED_DATE]'))
|
||||
{
|
||||
$expiredDate = OSMembershipHelperSubscription::getPlanExpiredDate($planId);
|
||||
|
||||
if ($expiredDate)
|
||||
{
|
||||
$expiredDate = HTMLHelper::_('date', $expiredDate, $this->config->date_format);
|
||||
}
|
||||
|
||||
$renewOptionText = str_replace('[EXPIRED_DATE]', $expiredDate, $renewOptionText);
|
||||
}
|
||||
?>
|
||||
<li class="osm-renew-option">
|
||||
<input type="radio" class="validate[required]<?php echo $this->bootstrapHelper->getFrameworkClass('uk-radio', 1); ?>" id="renew_option_id_<?php echo $renewOptionCount; ?>" name="renew_option_id" value="<?php echo $planId . '|' . $renewOption->id; ?>" <?php echo $checked; ?> />
|
||||
<label for="renew_option_id_<?php echo $renewOptionCount; ?>"><?php echo $renewOptionText; ?></label>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$checked = '';
|
||||
|
||||
if ($renewOptionCount == 0)
|
||||
{
|
||||
$checked = ' checked="checked" ';
|
||||
}
|
||||
|
||||
$renewOptionCount++;
|
||||
$subscriptionLengthText = OSMembershipHelperSubscription::getDurationText($plan->subscription_length, $plan->subscription_length_unit);
|
||||
|
||||
$renewalDiscountRule = OSMembershipHelperSubscription::getRenewalDiscount($userId, $planId);
|
||||
|
||||
if ($renewalDiscountRule)
|
||||
{
|
||||
if ($renewalDiscountRule->discount_type == 0)
|
||||
{
|
||||
$plan->price = round($plan->price * (1 - $renewalDiscountRule->discount_amount / 100), 2);
|
||||
}
|
||||
else
|
||||
{
|
||||
$plan->price = $plan->price - $renewalDiscountRule->discount_amount;
|
||||
}
|
||||
|
||||
if ($plan->price < 0)
|
||||
{
|
||||
$plan->price = 0;
|
||||
}
|
||||
}
|
||||
|
||||
$renewOptionText = Text::sprintf('OSM_RENEW_OPTION_TEXT', $plan->title, $subscriptionLengthText, OSMembershipHelper::formatCurrency($plan->price * (1 + $taxRate / 100), $this->config, $symbol));
|
||||
|
||||
if (strpos($renewOptionText, '[EXPIRED_DATE]'))
|
||||
{
|
||||
$expiredDate = OSMembershipHelperSubscription::getPlanExpiredDate($plan->id);
|
||||
|
||||
if ($expiredDate)
|
||||
{
|
||||
$expiredDate = HTMLHelper::_('date', $expiredDate, $this->config->date_format);
|
||||
}
|
||||
|
||||
$renewOptionText = str_replace('[EXPIRED_DATE]', $expiredDate, $renewOptionText);
|
||||
}
|
||||
?>
|
||||
<li class="osm-renew-option">
|
||||
<input type="radio" class="validate[required]<?php echo $this->bootstrapHelper->getFrameworkClass('uk-radio', 1); ?>" id="renew_option_id_<?php echo $renewOptionCount; ?>" name="renew_option_id" value="<?php echo $planId;?>" <?php echo $checked; ?>/>
|
||||
<label for="renew_option_id_<?php echo $renewOptionCount; ?>"><?php echo $renewOptionText; ?></label>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
<div class="form-actions">
|
||||
<input type="submit" class="<?php echo $this->bootstrapHelper->getClassMapping('btn btn-primary'); ?>" value="<?php echo Text::_('OSM_PROCESS_RENEW'); ?>"/>
|
||||
</div>
|
||||
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla
|
||||
* @subpackage Membership Pro
|
||||
* @author Tuan Pham Ngoc
|
||||
* @copyright Copyright (C) 2012 - 2025 Ossolution Team
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
/**
|
||||
* Layout variables
|
||||
*
|
||||
* @var string $introText
|
||||
* @var string $msg
|
||||
* @var string $context
|
||||
* @var stdClass $row
|
||||
*/
|
||||
|
||||
if (isset($introText))
|
||||
{
|
||||
echo '<div class="intro-text">' . $introText . '</div>';
|
||||
}
|
||||
?>
|
||||
<div class="text-info">
|
||||
<?php echo $msg; ?>
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,174 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla
|
||||
* @subpackage Membership Pro
|
||||
* @author Tuan Pham Ngoc
|
||||
* @copyright Copyright (C) 2012 - 2025 Ossolution Team
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\HTML\HTMLHelper;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Router\Route;
|
||||
|
||||
/**
|
||||
* Layout variables
|
||||
*
|
||||
* @var bool $showPagination
|
||||
* @var \Joomla\CMS\Pagination\Pagination $pagination
|
||||
*/
|
||||
|
||||
/* @var \Joomla\Database\DatabaseDriver $db */
|
||||
$db = Factory::getContainer()->get('db');
|
||||
$query = $db->getQuery(true)
|
||||
->select('COUNT(*)')
|
||||
->from('#__osmembership_plugins')
|
||||
->where('published = 1')
|
||||
->where('name NOT LIKE "os_offline%"');
|
||||
$db->setQuery($query);
|
||||
$hasOnlinePaymentPlugin = $db->loadResult() > 0;
|
||||
|
||||
$makePaymentItemid = OSMembershipHelperRoute::getViewRoute('payment', $this->Itemid);
|
||||
|
||||
$cols = 5;
|
||||
|
||||
$bootstrapHelper = OSMembershipHelperBootstrap::getInstance();
|
||||
$centerClass = $bootstrapHelper->getClassMapping('center');
|
||||
$hiddenPhoneClass = $bootstrapHelper->getClassMapping('hidden-phone');
|
||||
?>
|
||||
<table class="<?php echo $bootstrapHelper->getClassMapping('table table-striped table-bordered') ?>">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
<?php echo Text::_('OSM_PLAN') ?>
|
||||
</th>
|
||||
<th class="<?php echo $centerClass; ?>">
|
||||
<?php echo Text::_('OSM_SUBSCRIPTION_DATE') ; ?>
|
||||
</th>
|
||||
<th class="<?php echo $centerClass; ?>">
|
||||
<?php echo Text::_('OSM_ACTIVATE_TIME') ; ?>
|
||||
</th>
|
||||
<th style="text-align: right;" class="<?php echo $hiddenPhoneClass; ?>">
|
||||
<?php echo Text::_('OSM_GROSS_AMOUNT') ; ?>
|
||||
</th>
|
||||
<th class="<?php echo $hiddenPhoneClass; ?>">
|
||||
<?php echo Text::_('OSM_SUBSCRIPTION_STATUS'); ?>
|
||||
</th>
|
||||
<?php
|
||||
if ($this->config->activate_invoice_feature)
|
||||
{
|
||||
$cols++ ;
|
||||
?>
|
||||
<th class="<?php echo $hiddenPhoneClass . ' ' . $centerClass; ?>">
|
||||
<?php echo Text::_('OSM_INVOICE_NUMBER') ; ?>
|
||||
</th>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$k = 0 ;
|
||||
for ($i = 0 , $n = count($this->items) ; $i < $n ; $i++) {
|
||||
$row = $this->items[$i];
|
||||
$k = 1 - $k;
|
||||
$link = Route::_('index.php?option=com_osmembership&view=subscription&id=' . $row->id . '&Itemid=' . $this->Itemid);
|
||||
$symbol = $row->currency_symbol ?: $row->currency;
|
||||
?>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="<?php echo $link; ?>"><?php echo $row->plan_title; ?></a>
|
||||
</td>
|
||||
<td class="<?php echo $centerClass; ?>">
|
||||
<?php echo HTMLHelper::_('date', $row->created_date, $this->config->date_format); ?>
|
||||
</td>
|
||||
<td class="<?php echo $centerClass; ?>">
|
||||
<strong><?php echo HTMLHelper::_('date', $row->from_date, $this->config->date_format); ?></strong> <?php echo Text::_('OSM_TO'); ?>
|
||||
<strong>
|
||||
<?php
|
||||
if ($row->lifetime_membership || $row->to_date == '2099-12-31 23:59:59')
|
||||
{
|
||||
echo Text::_('OSM_LIFETIME');
|
||||
}
|
||||
else
|
||||
{
|
||||
echo HTMLHelper::_('date', $row->to_date, $this->config->date_format);
|
||||
}
|
||||
?>
|
||||
</strong>
|
||||
</td>
|
||||
<td style="text-align: right;" class="<?php echo $hiddenPhoneClass; ?>">
|
||||
<?php echo OSMembershipHelper::formatCurrency($row->gross_amount, $this->config, $symbol)?>
|
||||
</td>
|
||||
<td class="<?php echo $hiddenPhoneClass; ?>">
|
||||
<?php
|
||||
switch ($row->published)
|
||||
{
|
||||
case 0 :
|
||||
echo Text::_('OSM_PENDING');
|
||||
|
||||
if ($this->config->enable_subscription_payment && $row->gross_amount > 0 && $hasOnlinePaymentPlugin)
|
||||
{
|
||||
?>
|
||||
<br /><a class="<?php echo $bootstrapHelper->getClassMapping('btn btn-primary'); ?>" href="<?php echo Route::_('index.php?option=com_osmembership&view=payment&transaction_id=' . $row->transaction_id . '&Itemid=' . $makePaymentItemid); ?>"><?php echo Text::_('OSM_MAKE_PAYMENT'); ?></a>
|
||||
<?php
|
||||
}
|
||||
|
||||
break;
|
||||
case 1 :
|
||||
echo Text::_('OSM_ACTIVE');
|
||||
break;
|
||||
case 2 :
|
||||
echo Text::_('OSM_EXPIRED');
|
||||
break;
|
||||
case 3 :
|
||||
echo Text::_('OSM_CANCELLED_PENDING');
|
||||
break;
|
||||
case 4 :
|
||||
echo Text::_('OSM_CANCELLED_REFUNDED');
|
||||
break;
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
<?php
|
||||
if ($this->config->activate_invoice_feature)
|
||||
{
|
||||
?>
|
||||
<td class="<?php echo $hiddenPhoneClass . ' ' . $centerClass; ?>">
|
||||
<?php
|
||||
if ($row->invoice_number)
|
||||
{
|
||||
?>
|
||||
<a href="<?php echo Route::_('index.php?option=com_osmembership&task=download_invoice&id=' . $row->id); ?>" title="<?php echo Text::_('OSM_DOWNLOAD'); ?>"><?php echo OSMembershipHelper::formatInvoiceNumber($row, $this->config); ?></a>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
<?php
|
||||
if ($showPagination && ($pagination->total > $pagination->limit))
|
||||
{
|
||||
?>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="<?php echo $cols; ?>">
|
||||
<div class="pagination"><?php echo $this->pagination->getListFooter(); ?></div>
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
|
||||
@@ -0,0 +1,104 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla
|
||||
* @subpackage Membership Pro
|
||||
* @author Tuan Pham Ngoc
|
||||
* @copyright Copyright (C) 2012 - 2025 Ossolution Team
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Language\Text;
|
||||
|
||||
/**
|
||||
* Layout variables
|
||||
*
|
||||
* @var array $rows
|
||||
* @var array $fields
|
||||
*/
|
||||
|
||||
$config = OSMembershipHelper::getConfig();
|
||||
$i = 1;
|
||||
?>
|
||||
<p style="padding-bottom: 20px; text-align: center;">
|
||||
<h1><?php echo Text::_('OSM_SUBSCRIPTIONS_LIST'); ?></h1>
|
||||
</p>
|
||||
<table border="1" width="100%" cellspacing="0" cellpadding="2" style="margin-top: 100px;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="3%" height="20" style="text-align: center;">
|
||||
No
|
||||
</th>
|
||||
<th height="20" width="8%">
|
||||
<?php echo Text::_('OSM_FIRSTNAME'); ?>
|
||||
</th height="20">
|
||||
<th height="20" width="10%">
|
||||
<?php echo Text::_('OSM_LASTNAME'); ?>
|
||||
</th height="20">
|
||||
<th height="20" width="20%">
|
||||
<?php echo Text::_('OSM_PLAN'); ?>
|
||||
</th>
|
||||
<th height="20" width="17%" style="text-align: center">
|
||||
<?php echo Text::_('OSM_START_DATE') . ' / ' . Text::_('OSM_END_DATE'); ?>
|
||||
</th>
|
||||
<th height="20" width="16%">
|
||||
<?php echo Text::_('OSM_EMAIL'); ?>
|
||||
</th>
|
||||
<th height="20" width="9%" style="text-align: center;">
|
||||
<?php echo Text::_('OSM_CREATED_DATE'); ?>
|
||||
</th>
|
||||
<th width="6%" height="20" style="text-align: right;">
|
||||
<?php echo Text::_('OSM_GROSS_AMOUNT'); ?>
|
||||
</th>
|
||||
<th width="8%" height="20">
|
||||
<?php echo Text::_('OSM_SUBSCRIPTION_STATUS'); ?>
|
||||
</th>
|
||||
<th width="3%" height="20" style="text-align: center;">
|
||||
<?php echo Text::_('OSM_ID'); ?>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
foreach ($rows as $row)
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
<td width="3%" style="text-align: center;"><?php echo $i++; ?></td>
|
||||
<td width="8%"><?php echo $row->first_name; ?></td>
|
||||
<td width="10%"><?php echo $row->last_name; ?></td>
|
||||
<td width="20%;"><?php echo $row->plan; ?></td>
|
||||
<td width="17%" style="text-align: center"><?php echo $row->from_date . ' / ' . $row->to_date; ?></td>
|
||||
<td width="16%"><?php echo $row->email; ?></td>
|
||||
<td width="9%" style="text-align: center;"><?php echo $row->created_date; ?></td>
|
||||
<td width="6%" style="text-align: right;"><?php echo $row->amount; ?></td>
|
||||
<th width="8%" height="20">
|
||||
<?php
|
||||
switch ($row->published)
|
||||
{
|
||||
case 0:
|
||||
echo Text::_('OSM_PENDING');
|
||||
break;
|
||||
case 1:
|
||||
echo Text::_('OSM_ACTIVE');
|
||||
break;
|
||||
case 2:
|
||||
echo Text::_('OSM_EXPIRED');
|
||||
break;
|
||||
case 3 :
|
||||
echo Text::_('OSM_CANCELLED_PENDING');
|
||||
break ;
|
||||
case 4 :
|
||||
echo Text::_('OSM_CANCELLED_REFUNDED');
|
||||
break ;
|
||||
}
|
||||
?>
|
||||
</th>
|
||||
<td width="3%" style="text-align: center;"><?php echo $row->id; ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -0,0 +1,46 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla
|
||||
* @subpackage Membership Pro
|
||||
* @author Tuan Pham Ngoc
|
||||
* @copyright Copyright (C) 2012 - 2025 Ossolution Team
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Language\Text;
|
||||
|
||||
?>
|
||||
<ul class="osm-upgrade-options">
|
||||
<?php
|
||||
$upgradeOptionCount = 0;
|
||||
|
||||
foreach ($this->upgradeRules as $rule)
|
||||
{
|
||||
$checked = '';
|
||||
|
||||
if ($upgradeOptionCount == 0)
|
||||
{
|
||||
$checked = ' checked="checked" ';
|
||||
}
|
||||
|
||||
$upgradeOptionCount++;
|
||||
$upgradeToPlan = $this->plans[$rule->to_plan_id];
|
||||
$symbol = $upgradeToPlan->currency_symbol ?: $upgradeToPlan->currency;
|
||||
|
||||
$taxRate = 0;
|
||||
|
||||
if ($this->config->show_price_including_tax && !$this->config->setup_price_including_tax)
|
||||
{
|
||||
$taxRate = OSMembershipHelper::calculateMaxTaxRate($rule->to_plan_id);
|
||||
}
|
||||
?>
|
||||
<li class="osm-upgrade-option">
|
||||
<input type="radio" class="validate[required]<?php echo $this->bootstrapHelper->getFrameworkClass('uk-radio', 1);?>" id="upgrade_option_id_<?php echo $upgradeOptionCount; ?>" name="upgrade_option_id" value="<?php echo $rule->id; ?>"<?php echo $checked; ?> />
|
||||
<label for="upgrade_option_id_<?php echo $upgradeOptionCount; ?>"><?php Text::printf('OSM_UPGRADE_OPTION_TEXT', $this->plans[$rule->from_plan_id]->title, $upgradeToPlan->title, OSMembershipHelper::formatCurrency($rule->price * (1 + $taxRate / 100), $this->config, $symbol)); ?></label>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
@@ -0,0 +1,139 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla
|
||||
* @subpackage Membership Pro
|
||||
* @author Tuan Pham Ngoc
|
||||
* @copyright Copyright (C) 2012 - 2025 Ossolution Team
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
*/
|
||||
defined('_JEXEC') or die ;
|
||||
|
||||
use Joomla\CMS\Editor\Editor;
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\HTML\HTMLHelper;
|
||||
use Joomla\CMS\Language\Multilanguage;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Router\Route;
|
||||
use Joomla\CMS\Toolbar\Toolbar;
|
||||
|
||||
HTMLHelper::_('bootstrap.tooltip', '.hasTooltip', ['html' => true, 'sanitize' => false]);
|
||||
|
||||
$config = OSMembershipHelper::getConfig();
|
||||
$editor = Editor::getInstance($config->get('editor') ?: Factory::getApplication()->get('editor'));
|
||||
$translatable = Multilanguage::isEnabled() && count($this->languages);
|
||||
$bootstrapHelper = OSMembershipHelperBootstrap::getInstance();
|
||||
$rowFluid = $bootstrapHelper->getClassMapping('row-fluid');
|
||||
$span8 = $bootstrapHelper->getClassMapping('span7');
|
||||
$span4 = $bootstrapHelper->getClassMapping('span5');
|
||||
|
||||
HTMLHelper::_('formbehavior.chosen', '.advSelect');
|
||||
|
||||
Factory::getApplication()
|
||||
->getDocument()
|
||||
->getWebAssetManager()
|
||||
->useScript('core')
|
||||
->useScript('showon')
|
||||
->registerAndUseScript('com_osmembership.site-mplan-default', 'media/com_osmembership/js/site-mplan-default.min.js');
|
||||
|
||||
$keys = ['OSM_ENTER_PLAN_TITLE', 'OSM_ENTER_SUBSCRIPTION_LENGTH', 'OSM_PRICE_REQUIRED', 'OSM_INVALID_SUBSCRIPTION_LENGTH'];
|
||||
OSMembershipHelperHtml::addJSStrings($keys);
|
||||
?>
|
||||
<div id="osm-add-edit-plan" class="osm-container">
|
||||
<h1 class="osm-page-title"><?php echo $this->item->id > 0 ? Text::_('OSM_EDIT_PLAN') : Text::_('OSM_ADD_PLAN'); ?></h1>
|
||||
<div class="btn-toolbar" id="btn-toolbar">
|
||||
<?php echo Toolbar::getInstance('toolbar')->render(); ?>
|
||||
</div>
|
||||
<form action="<?php echo Route::_('index.php?option=com_osmembership&view=mplan&Itemid=' . $this->Itemid, false); ?>" method="post" name="adminForm" id="adminForm" enctype="multipart/form-data" class="form form-horizontal">
|
||||
<?php
|
||||
echo HTMLHelper::_( 'uitab.startTabSet', 'plan', ['active' => 'basic-information-page', 'recall' => true]);
|
||||
echo HTMLHelper::_( 'uitab.addTab', 'plan', 'basic-information-page', Text::_('OSM_BASIC_INFORMATION'));
|
||||
echo $this->loadTemplate('general', ['editor' => $editor]);
|
||||
echo HTMLHelper::_( 'uitab.endTab');
|
||||
|
||||
echo HTMLHelper::_( 'uitab.addTab', 'plan', 'recurring-settings-page', Text::_('OSM_RECURRING_SETTINGS'));
|
||||
echo $this->loadTemplate('recurring_settings');
|
||||
echo HTMLHelper::_( 'uitab.endTab');
|
||||
|
||||
echo HTMLHelper::_( 'uitab.addTab', 'plan', 'renew-options-page', Text::_('OSM_RENEW_OPTIONS'));
|
||||
echo $this->loadTemplate('renew_options');
|
||||
echo HTMLHelper::_( 'uitab.endTab');
|
||||
|
||||
echo HTMLHelper::_( 'uitab.addTab', 'plan', 'upgrade-options-page', Text::_('OSM_UPGRADE_OPTIONS'));
|
||||
echo $this->loadTemplate('upgrade_options');
|
||||
echo HTMLHelper::_( 'uitab.endTab');
|
||||
|
||||
echo HTMLHelper::_( 'uitab.addTab', 'plan', 'renewal-discounts-page', Text::_('OSM_EARLY_RENEWAL_DISCOUNTS'));
|
||||
echo $this->loadTemplate('renewal_discounts');
|
||||
echo HTMLHelper::_( 'uitab.endTab');
|
||||
|
||||
echo HTMLHelper::_( 'uitab.addTab', 'plan', 'reminders-settings-page', Text::_('OSM_REMINDERS_SETTINGS'));
|
||||
echo $this->loadTemplate('reminders_settings');
|
||||
echo HTMLHelper::_( 'uitab.endTab');
|
||||
|
||||
echo HTMLHelper::_( 'uitab.addTab', 'plan', 'group-membership-settings-page', Text::_('OSM_GROUP_MEMBERSHIP'));
|
||||
echo $this->loadTemplate('group_membership');
|
||||
echo HTMLHelper::_( 'uitab.endTab');
|
||||
|
||||
echo HTMLHelper::_( 'uitab.addTab', 'plan', 'advanced-settings-page', Text::_('OSM_ADVANCED_SETTINGS'));
|
||||
echo $this->loadTemplate('advanced_settings');
|
||||
echo HTMLHelper::_( 'uitab.endTab');
|
||||
|
||||
echo HTMLHelper::_( 'uitab.addTab', 'plan', 'metadata-page', Text::_('OSM_META_DATA'));
|
||||
echo $this->loadTemplate('metadata');
|
||||
echo HTMLHelper::_( 'uitab.endTab');
|
||||
|
||||
if ($this->config->activate_member_card_feature)
|
||||
{
|
||||
echo HTMLHelper::_( 'uitab.addTab', 'plan', 'member-card-page', Text::_('OSM_MEMBER_CARD_SETTINGS'));
|
||||
echo $this->loadTemplate('member_card', ['editor' => $editor]);
|
||||
echo HTMLHelper::_( 'uitab.endTab');
|
||||
}
|
||||
|
||||
echo HTMLHelper::_( 'uitab.addTab', 'plan', 'messages-page', Text::_('OSM_MESSAGES'));
|
||||
echo $this->loadTemplate('messages', ['editor' => $editor]);
|
||||
echo HTMLHelper::_( 'uitab.endTab');
|
||||
|
||||
echo HTMLHelper::_( 'uitab.addTab', 'plan', 'reminder-messages-page', Text::_('OSM_REMINDER_MESSAGES'));
|
||||
echo $this->loadTemplate('reminder_messages', ['editor' => $editor]);
|
||||
echo HTMLHelper::_( 'uitab.endTab');
|
||||
|
||||
if ($translatable)
|
||||
{
|
||||
echo HTMLHelper::_( 'uitab.addTab', 'plan', 'translation-page', Text::_('OSM_TRANSLATION'));
|
||||
echo $this->loadTemplate('translation', ['editor' => $editor]);
|
||||
echo HTMLHelper::_( 'uitab.endTab');
|
||||
}
|
||||
|
||||
if (count($this->plugins))
|
||||
{
|
||||
$count = 0 ;
|
||||
|
||||
foreach ($this->plugins as $plugin)
|
||||
{
|
||||
if (is_array($plugin) && array_key_exists('title', $plugin) && array_key_exists('form', $plugin))
|
||||
{
|
||||
$count++ ;
|
||||
echo HTMLHelper::_( 'uitab.addTab', 'plan', 'tab_' . $count, Text::_($plugin['title']));
|
||||
echo $plugin['form'];
|
||||
echo HTMLHelper::_( 'uitab.endTab');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Add support for custom settings layout
|
||||
if (file_exists(__DIR__ . '/default_custom_settings.php'))
|
||||
{
|
||||
echo HTMLHelper::_( 'uitab.addTab', 'plan', 'custom-settings-page', Text::_('OSM_CUSTOM_SETTINGS'));
|
||||
echo $this->loadTemplate('custom_settings', ['editor' => $editor]);
|
||||
echo HTMLHelper::_( 'uitab.endTab');
|
||||
}
|
||||
|
||||
echo HTMLHelper::_( 'uitab.endTabSet');
|
||||
?>
|
||||
<div class="clearfix"></div>
|
||||
<?php echo HTMLHelper::_('form.token'); ?>
|
||||
<input type="hidden" name="id" value="<?php echo (int) $this->item->id; ?>"/>
|
||||
<input type="hidden" name="task" value="apply" />
|
||||
<input type="hidden" id="recurring" name="recurring" value="<?php echo (int) $this->item->recurring_subscription;?>" />
|
||||
</form>
|
||||
</div>
|
||||
@@ -0,0 +1,171 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla
|
||||
* @subpackage Membership Pro
|
||||
* @author Tuan Pham Ngoc
|
||||
* @copyright Copyright (C) 2012 - 2025 Ossolution Team
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\HTML\HTMLHelper;
|
||||
use Joomla\CMS\Language\Text;
|
||||
|
||||
$bootstrapHelper = OSMembershipHelperBootstrap::getInstance();
|
||||
$rowFluidClasss = $bootstrapHelper->getClassMapping('row-fluid');
|
||||
$controlGroupClass = $bootstrapHelper->getClassMapping('control-group');
|
||||
$controlLabelClass = $bootstrapHelper->getClassMapping('control-label');
|
||||
$controlsClass = $bootstrapHelper->getClassMapping('controls');
|
||||
?>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo OSMembershipHelperHtml::getFieldLabel('setup_fee', Text::_('OSM_SETUP_FEE'), Text::_('OSM_SETUP_FEE_EXPLAIN')); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<input type="number" class="form-control input-small" name="setup_fee" id="setup_fee" value="<?php echo $this->item->setup_fee; ?>" step="0.01" />
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
if ($this->item->id && !$this->item->recurring_subscription)
|
||||
{
|
||||
?>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo OSMembershipHelperHtml::getFieldLabel('subscription_start_date_option', Text::_('OSM_SUBSCRIPTION_START_DATE_OPTION'), Text::_('OSM_SUBSCRIPTION_START_DATE_OPTION_EXPLAIN')); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $this->lists['subscription_start_date_option'];?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>" data-showon='<?php echo OSMembershipHelperHtml::renderShowon(['subscription_start_date_option' => '1']); ?>'>
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo OSMembershipHelperHtml::getFieldLabel('subscription_start_date', Text::_('OSM_PLAN_SUBSCRIPTION_START_DATE'), Text::_('OSM_PLAN_SUBSCRIPTION_START_DATE_EXPLAIN')); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo HTMLHelper::_('calendar', $this->planParams->get('subscription_start_date'), 'subscription_start_date', 'subscription_start_date', '%Y-%m-%d %H:%M:%S') ; ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>" data-showon='<?php echo OSMembershipHelperHtml::renderShowon(['subscription_start_date_option' => '2']); ?>'>
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo OSMembershipHelperHtml::getFieldLabel('subscription_start_date_field', Text::_('OSM_SUBSCRIPTION_START_DATE_FIELD'), Text::_('OSM_SUBSCRIPTION_START_DATE_FIELD_EXPLAIN')); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $this->lists['subscription_start_date_field'];?>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo OSMembershipHelperHtml::getFieldLabel('free_plan_subscription_status', Text::_('OSM_FREE_PLAN_STATUS'), Text::_('OSM_FREE_PLAN_STATUS_EXPLAIN')); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $this->lists['free_plan_subscription_status'];?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo OSMembershipHelperHtml::getFieldLabel('login_redirect_menu_id', Text::_('OSM_LOGIN_REDIRECT'), Text::_('OSM_LOGIN_REDIRECT_EXPLAIN')); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $this->lists['login_redirect_menu_id']; ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo OSMembershipHelperHtml::getFieldLabel('number_fields_per_row', Text::_('OSM_NUMBER_FIELDS_PER_ROW'), Text::_('OSM_NUMBER_FIELDS_PER_ROW_EXPLAIN')); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $this->lists['number_fields_per_row']; ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo OSMembershipHelperHtml::getFieldLabel('payment_methods', Text::_('OSM_PAYMENT_METHODS'), Text::_('OSM_PAYMENT_METHODS_EXPLAIN')); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $this->lists['payment_methods'];?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo OSMembershipHelperHtml::getFieldLabel('currency_code', Text::_('OSM_CURRENCY'), Text::_('OSM_CURRENCY_EXPLAIN')); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $this->lists['currency'];?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo OSMembershipHelperHtml::getFieldLabel('currency_symbol', Text::_('OSM_CURRENCY_SYMBOL'), Text::_('OSM_CURRENCY_SYMBOL_EXPLAIN')); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<input type="text" class="form-control input-small" name="currency_symbol" id="currency_symbol" value="<?php echo $this->item->currency_symbol; ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_SUBSCRIPTION_COMPLETE_URL'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<input type="url" class="form-control input-xxlarge" name="subscription_complete_url" value="<?php echo $this->item->subscription_complete_url; ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_OFFLINE_PAYMENT_SUBSCRIPTION_COMPLETE_URL'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<input type="url" class="form-control input-xxlarge" name="offline_payment_subscription_complete_url" value="<?php echo $this->item->offline_payment_subscription_complete_url; ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo OSMembershipHelperHtml::getFieldLabel('notification_emails', Text::_('OSM_NOTIFICATION_EMAILS'), Text::_('OSM_NOTIFICATION_EMAILS_EXPLAIN')); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<input type="text" class="form-control input-xxlarge" name="notification_emails" value="<?php echo $this->item->notification_emails; ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo OSMembershipHelperHtml::getFieldLabel('paypal_email', Text::_('OSM_PAYPAL_EMAIL'), Text::_('OSM_PAYPAL_EMAIL_EXPLAIN')); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<input type="email" class="form-control input-xxlarge" name="paypal_email" value="<?php echo $this->item->paypal_email; ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_PUBLISH_UP'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo HTMLHelper::_('calendar', $this->item->publish_up, 'publish_up', 'publish_up', $this->datePickerFormat . ' %H:%M:%S', ['class' => 'input-medium']); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_PUBLISH_DOWN'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo HTMLHelper::_('calendar', $this->item->publish_down, 'publish_down', 'publish_down', $this->datePickerFormat . ' %H:%M:%S', ['class' => 'input-medium']); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_TERMS_AND_CONDITIONS_ARTICLE') ; ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo OSMembershipHelperHtml::getArticleInput($this->item->terms_and_conditions_article_id, 'terms_and_conditions_article_id'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo OSMembershipHelperHtml::getFieldLabel('conversion_tracking_code', Text::_('OSM_CONVERSION_TRACKING_CODE'), Text::_('OSM_CONVERSION_TRACKING_CODE_EXPLAIN')); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<textarea name="conversion_tracking_code" class="form-control input-large" rows="10"><?php echo $this->item->conversion_tracking_code;?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,164 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla
|
||||
* @subpackage Membership Pro
|
||||
* @author Tuan Pham Ngoc
|
||||
* @copyright Copyright (C) 2012 - 2025 Ossolution Team
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\HTML\HTMLHelper;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Uri\Uri;
|
||||
|
||||
$bootstrapHelper = OSMembershipHelperBootstrap::getInstance();
|
||||
$rowFluidClasss = $bootstrapHelper->getClassMapping('row-fluid');
|
||||
$controlGroupClass = $bootstrapHelper->getClassMapping('control-group');
|
||||
$controlLabelClass = $bootstrapHelper->getClassMapping('control-label');
|
||||
$controlsClass = $bootstrapHelper->getClassMapping('controls');
|
||||
?>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_TITLE'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<input class="form-control input-xxlarge" type="text" name="title" id="title" maxlength="250" value="<?php echo $this->item->title;?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_ALIAS'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<input class="form-control input-xxlarge" type="text" name="alias" id="alias" maxlength="250" value="<?php echo $this->item->alias;?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_CATEGORY'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $this->lists['category_id']; ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_PRICE'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<input class="form-control" type="number" name="price" id="price" maxlength="250" value="<?php echo $this->item->price;?>" step="0.01" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_SUBSCRIPTION_LENGTH'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<input class="form-control input-small d-inline-block" type="number" min="1" name="subscription_length" id="subscription_length" maxlength="250" value="<?php echo $this->item->subscription_length;?>" /><?php echo $this->lists['subscription_length_unit']; ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_EXPIRED_DATE'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo HTMLHelper::_('calendar', $this->item->expired_date, 'expired_date', 'expired_date', $this->datePickerFormat) ; ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
if ((int)$this->item->expired_date)
|
||||
{
|
||||
?>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_PRORATED_SIGNUP_COST');?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $this->lists['prorated_signup_cost'];?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo OSMembershipHelperHtml::getFieldLabel('grace_period', Text::_('OSM_OVERLAP_PERIOD'), Text::_('OSM_OVERLAP_PERIOD_EXPLAIN')); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<input class="input-small form-control" type="number" name="grace_period" id="grace_period" maxlength="250" value="<?php echo $this->item->grace_period;?>" /><?php echo ' ' . Text::_('OSM_DAYS'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_LIFETIME_MEMBERSHIP');?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $this->lists['lifetime_membership'];?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_THUMB'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<input type="file" class="form-control" name="thumb_image" size="60" />
|
||||
<?php
|
||||
if ($this->item->thumb)
|
||||
{
|
||||
?>
|
||||
<img src="<?php echo Uri::root() . 'media/com_osmembership/' . $this->item->thumb; ?>" class="img_preview" />
|
||||
<input type="checkbox" name="del_thumb" value="1" /><?php echo Text::_('OSM_DELETE_CURRENT_THUMB'); ?>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_ENABLE_RENEWAL'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $this->lists['enable_renewal']; ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_ACCESS'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $this->lists['access']; ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
if (isset($this->lists['published']))
|
||||
{
|
||||
?>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_PUBLISHED'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $this->lists['published']; ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_SHORT_DESCRIPTION'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $editor->display('short_description', $this->item->short_description, '100%', '250', '75', '10') ; ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_DESCRIPTION'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $editor->display('description', $this->item->description, '100%', '250', '75', '10') ; ?>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla
|
||||
* @subpackage Membership Pro
|
||||
* @author Tuan Pham Ngoc
|
||||
* @copyright Copyright (C) 2012 - 2025 Ossolution Team
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Language\Text;
|
||||
|
||||
$bootstrapHelper = OSMembershipHelperBootstrap::getInstance();
|
||||
$rowFluidClasss = $bootstrapHelper->getClassMapping('row-fluid');
|
||||
$controlGroupClass = $bootstrapHelper->getClassMapping('control-group');
|
||||
$controlLabelClass = $bootstrapHelper->getClassMapping('control-label');
|
||||
$controlsClass = $bootstrapHelper->getClassMapping('controls');
|
||||
?>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo OSMembershipHelperHtml::getFieldLabel('number_members_type', Text::_('OSM_NUMBER_MEMBER_TYPES'), Text::_('OSM_NUMBER_MEMBER_TYPES_EXPLAIN')); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $this->lists['number_members_type']; ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>" data-showon='<?php echo OSMembershipHelperHtml::renderShowon(['number_members_type' => '0']); ?>'>
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo OSMembershipHelperHtml::getFieldLabel('number_group_members', Text::_('PLG_GRM_MAX_NUMBER_MEMBERS'), Text::_('PLG_GRM_MAX_NUMBER_MEMBERS_EXPLAIN')); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<input type="number" class="form-control input-small" name="number_group_members" id="number_group_members" value="<?php echo $this->item->number_group_members; ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>" data-showon='<?php echo OSMembershipHelperHtml::renderShowon(['number_members_type' => '1']); ?>'>
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo OSMembershipHelperHtml::getFieldLabel('number_members_field', Text::_('OSM_NUMBER_MEMBERS_FIELD'), Text::_('OSM_NUMBER_MEMBERS_FIELD_EXPLAIN')); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $this->lists['number_members_field']; ?>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,44 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla
|
||||
* @subpackage Membership Pro
|
||||
* @author Tuan Pham Ngoc
|
||||
* @copyright Copyright (C) 2012 - 2025 Ossolution Team
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Language\Text;
|
||||
|
||||
$bootstrapHelper = OSMembershipHelperBootstrap::getInstance();
|
||||
$rowFluidClasss = $bootstrapHelper->getClassMapping('row-fluid');
|
||||
$controlGroupClass = $bootstrapHelper->getClassMapping('control-group');
|
||||
$controlLabelClass = $bootstrapHelper->getClassMapping('control-label');
|
||||
$controlsClass = $bootstrapHelper->getClassMapping('controls');
|
||||
|
||||
?>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo OSMembershipHelperHtml::getFieldLabel('activate_member_card_feature', Text::_('OSM_ACTIVATE_MEMBER_CARD_FEATURE'), Text::_('OSM_ACTIVATE_MEMBER_CARD_FEATURE_EXPLAIN')); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo OSMembershipHelperHtml::getBooleanInput('activate_member_card_feature', $this->item->activate_member_card_feature); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_CARD_BG_IMAGE'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo OSMembershipHelperHtml::getMediaInput($this->item->card_bg_image, 'card_bg_image'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_CARD_LAYOUT'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $editor->display('card_layout', $this->item->card_layout, '100%', '550', '75', '8') ;?>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,193 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla
|
||||
* @subpackage Membership Pro
|
||||
* @author Tuan Pham Ngoc
|
||||
* @copyright Copyright (C) 2012 - 2025 Ossolution Team
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Language\Text;
|
||||
|
||||
$bootstrapHelper = OSMembershipHelperBootstrap::getInstance();
|
||||
$rowFluidClasss = $bootstrapHelper->getClassMapping('row-fluid');
|
||||
$controlGroupClass = $bootstrapHelper->getClassMapping('control-group');
|
||||
$controlLabelClass = $bootstrapHelper->getClassMapping('control-label');
|
||||
$controlsClass = $bootstrapHelper->getClassMapping('controls');
|
||||
?>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<p class="text-error" style="font-size:16px;"><?php echo Text::_('OSM_PLAN_MESSAGES_EXPLAIN'); ?></p>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<strong><?php echo Text::_('OSM_PLAN_SUBSCRIPTION_FORM_MESSAGE'); ?></strong>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $editor->display('subscription_form_message', $this->item->subscription_form_message, '100%', '250', '75', '10'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_USER_EMAIL_SUBJECT'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<input type="text" name="user_email_subject" class="input-xxlarge form-control"
|
||||
value="<?php echo $this->item->user_email_subject; ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_USER_EMAIL_BODY'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $editor->display('user_email_body', $this->item->user_email_body, '100%', '250', '75', '8'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_USER_EMAIL_BODY_OFFLINE_PAYMENT'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $editor->display('user_email_body_offline', $this->item->user_email_body_offline, '100%', '250', '75', '8'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_ADMIN_EMAIL_BODY'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $editor->display('admin_email_body', $this->item->admin_email_body, '100%', '250', '75', '8'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_THANK_MESSAGE'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $editor->display('thanks_message', $this->item->thanks_message, '100%', '250', '75', '8'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_THANK_MESSAGE_OFFLINE'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $editor->display('thanks_message_offline', $this->item->thanks_message_offline, '100%', '250', '75', '8'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_SUBSCRIPTION_APPROVED_EMAIL_SUBJECT'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<input type="text" name="subscription_approved_email_subject" class="input-xxlarge form-control"
|
||||
value="<?php echo $this->item->subscription_approved_email_subject; ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_SUBSCRIPTION_APPROVED_EMAIL_BODY'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $editor->display('subscription_approved_email_body', $this->item->subscription_approved_email_body, '100%', '250', '75', '8'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_RENEW_USER_EMAIL_SUBJECT'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<input type="text" name="user_renew_email_subject" class="input-xxlarge form-control"
|
||||
value="<?php echo $this->item->user_renew_email_subject; ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_RENEW_USER_EMAIL_BODY'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $editor->display('user_renew_email_body', $this->item->user_renew_email_body, '100%', '250', '75', '8'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_RENEW_USER_EMAIL_BODY_OFFLINE'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $editor->display('user_renew_email_body_offline', $this->item->user_renew_email_body_offline, '100%', '250', '75', '8'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_RENEW_ADMIN_EMAIL_BODY'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $editor->display('admin_renew_email_body', $this->item->admin_renew_email_body, '100%', '250', '75', '8'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_UPGRADE_USER_EMAIL_BODY'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $editor->display('user_upgrade_email_body', $this->item->user_upgrade_email_body, '100%', '250', '75', '8'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_UPGRADE_USER_EMAIL_BODY_OFFLINE'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $editor->display('user_upgrade_email_body_offline', $this->item->user_upgrade_email_body_offline, '100%', '250', '75', '8'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_UPGRADE_ADMIN_EMAIL_BODY'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $editor->display('admin_upgrade_email_body', $this->item->admin_upgrade_email_body, '100%', '250', '75', '8'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_RENEW_THANK_MESSAGE'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $editor->display('renew_thanks_message', $this->item->renew_thanks_message, '100%', '250', '75', '8'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_RENEW_THANK_MESSAGE_OFFLINE'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $editor->display('renew_thanks_message_offline', $this->item->renew_thanks_message_offline, '100%', '250', '75', '8'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_UPGRADE_THANK_MESSAGE'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $editor->display('upgrade_thanks_message', $this->item->upgrade_thanks_message, '100%', '250', '75', '8'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_UPGRADE_THANK_MESSAGE_OFFLINE'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $editor->display('upgrade_thanks_message_offline', $this->item->upgrade_thanks_message_offline, '100%', '250', '75', '8'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_INVOICE_FORMAT'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $editor->display('invoice_layout', $this->item->invoice_layout, '100%', '250', '75', '8'); ?>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,55 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla
|
||||
* @subpackage Membership Pro
|
||||
* @author Tuan Pham Ngoc
|
||||
* @copyright Copyright (C) 2012 - 2025 Ossolution Team
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Language\Text;
|
||||
|
||||
$bootstrapHelper = OSMembershipHelperBootstrap::getInstance();
|
||||
$rowFluidClasss = $bootstrapHelper->getClassMapping('row-fluid');
|
||||
$controlGroupClass = $bootstrapHelper->getClassMapping('control-group');
|
||||
$controlLabelClass = $bootstrapHelper->getClassMapping('control-label');
|
||||
$controlsClass = $bootstrapHelper->getClassMapping('controls');
|
||||
?>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_PAGE_TITLE'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<input class="input-xxlarge form-control" type="text" name="page_title" id="page_title" maxlength="250"
|
||||
value="<?php echo $this->item->page_title; ?>"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_PAGE_HEADING'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<input class="input-xxlarge form-control" type="text" name="page_heading" id="page_heading" maxlength="250"
|
||||
value="<?php echo $this->item->page_heading; ?>"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_META_KEYWORDS'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<textarea rows="5" cols="30" class="input-xxlarge form-control"
|
||||
name="meta_keywords"><?php echo $this->item->meta_keywords; ?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_META_DESCRIPTION'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<textarea rows="5" cols="30" class="input-xxlarge form-control"
|
||||
name="meta_description"><?php echo $this->item->meta_description; ?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,79 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla
|
||||
* @subpackage Membership Pro
|
||||
* @author Tuan Pham Ngoc
|
||||
* @copyright Copyright (C) 2012 - 2025 Ossolution Team
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Language\Text;
|
||||
|
||||
$bootstrapHelper = OSMembershipHelperBootstrap::getInstance();
|
||||
$rowFluidClasss = $bootstrapHelper->getClassMapping('row-fluid');
|
||||
$controlGroupClass = $bootstrapHelper->getClassMapping('control-group');
|
||||
$controlLabelClass = $bootstrapHelper->getClassMapping('control-label');
|
||||
$controlsClass = $bootstrapHelper->getClassMapping('controls');
|
||||
?>
|
||||
<fieldset class="adminform">
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_IS_RECURRING_SUBSCRIPTION'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $this->lists['recurring_subscription']; ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>" data-showon='<?php echo OSMembershipHelperHtml::renderShowon(['recurring_subscription' => '1']); ?>'>
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_TRIAL_AMOUNT'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<input type="text" class="form-control" name="trial_amount" value="<?php echo $this->item->trial_amount; ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>" data-showon='<?php echo OSMembershipHelperHtml::renderShowon(['recurring_subscription' => '1']); ?>'>
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_TRIAL_DURATION'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<input type="text" class="form-control input-mini d-inline-block" name="trial_duration" value="<?php echo $this->item->trial_duration > 0 ? $this->item->trial_duration : ''; ?>"/>
|
||||
<?php echo $this->lists['trial_duration_unit']; ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>" data-showon='<?php echo OSMembershipHelperHtml::renderShowon(['recurring_subscription' => '1']); ?>'>
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_NUMBER_PAYMENTS'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<input type="text" class="form-control" name="number_payments" value="<?php echo $this->item->number_payments; ?>" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
if ($this->item->number_payments > 0)
|
||||
{
|
||||
?>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo OSMembershipHelperHtml::getFieldLabel('last_payment_action', Text::_('OSM_AFTER_LAST_PAYMENT_ACTION'), Text::_('OSM_AFTER_LAST_PAYMENT_ACTION_EXPLAIN')); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $this->lists['last_payment_action']; ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>" data-showon='<?php echo OSMembershipHelperHtml::renderShowon(['last_payment_action' => '2']); ?>'>
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_EXTEND_DURATION'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<input type="text" class="input-mini" name="extend_duration" value="<?php echo $this->item->extend_duration > 0 ? $this->item->extend_duration : ''; ?>"/>
|
||||
<?php echo $this->lists['extend_duration_unit']; ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</fieldset>
|
||||
@@ -0,0 +1,73 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla
|
||||
* @subpackage Membership Pro
|
||||
* @author Tuan Pham Ngoc
|
||||
* @copyright Copyright (C) 2012 - 2025 Ossolution Team
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Language\Text;
|
||||
|
||||
$bootstrapHelper = OSMembershipHelperBootstrap::getInstance();
|
||||
$rowFluidClasss = $bootstrapHelper->getClassMapping('row-fluid');
|
||||
$controlGroupClass = $bootstrapHelper->getClassMapping('control-group');
|
||||
$controlLabelClass = $bootstrapHelper->getClassMapping('control-label');
|
||||
$controlsClass = $bootstrapHelper->getClassMapping('controls');
|
||||
?>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<p class="text-error" style="font-size:16px;"><?php echo Text::_('OSM_PLAN_MESSAGES_EXPLAIN'); ?></p>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_FIRST_REMINDER_EMAIL_SUBJECT'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<input type="text" name="first_reminder_email_subject" class="input-xxlarge form-control"
|
||||
value="<?php echo $this->item->first_reminder_email_subject; ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_FIRST_REMINDER_EMAIL_BODY'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $editor->display('first_reminder_email_body', $this->item->first_reminder_email_body, '100%', '250', '75', '8'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_SECOND_REMINDER_EMAIL_SUBJECT'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<input type="text" name="second_reminder_email_subject" class="input-xxlarge form-control"
|
||||
value="<?php echo $this->item->second_reminder_email_subject; ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_SECOND_REMINDER_EMAIL_BODY'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $editor->display('second_reminder_email_body', $this->item->second_reminder_email_body, '100%', '250', '75', '8'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_THIRD_REMINDER_EMAIL_SUBJECT'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<input type="text" name="third_reminder_email_subject" class="input-xxlarge form-control"
|
||||
value="<?php echo $this->item->third_reminder_email_subject; ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_THIRD_REMINDER_EMAIL_BODY'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $editor->display('third_reminder_email_body', $this->item->third_reminder_email_body, '100%', '250', '75', '8'); ?>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,60 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla
|
||||
* @subpackage Membership Pro
|
||||
* @author Tuan Pham Ngoc
|
||||
* @copyright Copyright (C) 2012 - 2025 Ossolution Team
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Language\Text;
|
||||
|
||||
$bootstrapHelper = OSMembershipHelperBootstrap::getInstance();
|
||||
$rowFluidClasss = $bootstrapHelper->getClassMapping('row-fluid');
|
||||
$controlGroupClass = $bootstrapHelper->getClassMapping('control-group');
|
||||
$controlLabelClass = $bootstrapHelper->getClassMapping('control-label');
|
||||
$controlsClass = $bootstrapHelper->getClassMapping('controls');
|
||||
?>
|
||||
<fieldset class="adminform">
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_SEND_FIRST_REMINDER'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<input type="number" class="form-control input-mini d-inline-block" name="send_first_reminder" value="<?php echo $this->item->send_first_reminder; ?>" /><span><?php echo ' ' . Text::_('OSM_DAYS') . ' ' . $this->lists['send_first_reminder_time']; ?></span><?php echo Text::_('OSM_SUBSCRIPTION_EXPIRED'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_SEND_SECOND_REMINDER'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<input type="number" class="form-control input-mini d-inline-block" name="send_second_reminder" value="<?php echo $this->item->send_second_reminder; ?>" /><span><?php echo ' ' . Text::_('OSM_DAYS') . ' ' . $this->lists['send_second_reminder_time']; ?></span><?php echo Text::_('OSM_SUBSCRIPTION_EXPIRED'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_SEND_THIRD_REMINDER'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<input type="number" class="form-control input-mini d-inline-block" name="send_third_reminder" value="<?php echo $this->item->send_third_reminder; ?>" /><span><?php echo ' ' . Text::_('OSM_DAYS') . ' ' . $this->lists['send_third_reminder_time']; ?></span><?php echo Text::_('OSM_SUBSCRIPTION_EXPIRED'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
if ($this->item->number_payments > 0)
|
||||
{
|
||||
?>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_SEND_SUBSCRIPTION_END'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<input type="number" class="form-control input-mini d-inline-block" name="send_subscription_end" value="<?php echo $this->item->send_subscription_end; ?>" /><span><?php echo ' ' . Text::_('OSM_DAYS') . ' ' . $this->lists['send_subscription_end_time']; ?></span><?php echo Text::_('OSM_SUBSCRIPTION_EXPIRED'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</fieldset>
|
||||
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla
|
||||
* @subpackage Membership Pro
|
||||
* @author Tuan Pham Ngoc
|
||||
* @copyright Copyright (C) 2012 - 2025 Ossolution Team
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Form\Form;
|
||||
|
||||
$form = Form::getInstance('renew_options', JPATH_ADMINISTRATOR . '/components/com_osmembership/view/plan/forms/renew_options.xml');
|
||||
$formData['renew_options'] = [];
|
||||
|
||||
foreach ($this->prices as $renewOption)
|
||||
{
|
||||
$formData['renew_options'][] = [
|
||||
'id' => $renewOption->id,
|
||||
'renew_option_length' => $renewOption->renew_option_length,
|
||||
'renew_option_length_unit' => $renewOption->renew_option_length_unit,
|
||||
'price' => $renewOption->price,
|
||||
];
|
||||
}
|
||||
|
||||
$form->bind($formData);
|
||||
|
||||
foreach ($form->getFieldset() as $field)
|
||||
{
|
||||
echo $field->input;
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla
|
||||
* @subpackage Membership Pro
|
||||
* @author Tuan Pham Ngoc
|
||||
* @copyright Copyright (C) 2012 - 2025 Ossolution Team
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Form\Form;
|
||||
|
||||
$form = Form::getInstance('renewal_discounts', JPATH_ADMINISTRATOR . '/components/com_osmembership/view/plan/forms/renewal_discounts.xml');
|
||||
$formData['renewal_discounts'] = [];
|
||||
|
||||
foreach ($this->renewalDiscounts as $renewalDiscount)
|
||||
{
|
||||
$formData['renewal_discounts'][] = [
|
||||
'id' => $renewalDiscount->id,
|
||||
'number_days' => $renewalDiscount->number_days,
|
||||
'discount_type' => $renewalDiscount->discount_type,
|
||||
'discount_amount' => $renewalDiscount->discount_amount,
|
||||
];
|
||||
}
|
||||
|
||||
$form->bind($formData);
|
||||
|
||||
foreach ($form->getFieldset() as $field)
|
||||
{
|
||||
echo $field->input;
|
||||
}
|
||||
@@ -0,0 +1,221 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla
|
||||
* @subpackage Membership Pro
|
||||
* @author Tuan Pham Ngoc
|
||||
* @copyright Copyright (C) 2012 - 2025 Ossolution Team
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\HTML\HTMLHelper;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Uri\Uri;
|
||||
|
||||
$rootUri = Uri::root(true);
|
||||
$bootstrapHelper = OSMembershipHelperBootstrap::getInstance();
|
||||
$rowFluidClasss = $bootstrapHelper->getClassMapping('row-fluid');
|
||||
$controlGroupClass = $bootstrapHelper->getClassMapping('control-group');
|
||||
$controlLabelClass = $bootstrapHelper->getClassMapping('control-label');
|
||||
$controlsClass = $bootstrapHelper->getClassMapping('controls');
|
||||
|
||||
echo HTMLHelper::_('bootstrap.startTabSet', 'plan-translation', ['active' => 'translation-page-' . $this->languages[0]->sef, 'recall' => true]);
|
||||
|
||||
foreach ($this->languages as $language)
|
||||
{
|
||||
$sef = $language->sef;
|
||||
echo HTMLHelper::_('bootstrap.addTab', 'plan-translation', 'translation-page-' . $sef, $language->title . ' <img src="' . $rootUri . '/media/mod_languages/images/' . $language->image . '.gif" />');
|
||||
?>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_TITLE'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<input class="form-control input-xlarge" type="text" name="title_<?php echo $sef; ?>" id="title_<?php echo $sef; ?>" maxlength="250" value="<?php echo $this->item->{'title_' . $sef}; ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_ALIAS'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<input class="form-control input-xlarge" type="text" name="alias_<?php echo $sef; ?>" id="title_<?php echo $sef; ?>" maxlength="250" value="<?php echo $this->item->{'alias_' . $sef}; ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_SHORT_DESCRIPTION'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $editor->display('short_description_' . $sef, $this->item->{'short_description_' . $sef}, '100%', '250', '75', '10') ; ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_DESCRIPTION'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $editor->display('description_' . $sef, $this->item->{'description_' . $sef}, '100%', '250', '75', '10') ; ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_PAGE_TITLE'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<input class="form-control input-xlarge" type="text" name="page_title_<?php echo $sef; ?>" id="page_title_<?php echo $sef; ?>" maxlength="250" value="<?php echo $this->item->{'page_title_' . $sef}; ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_PAGE_HEADING'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<input class="form-control input-xlarge" type="text" name="page_heading_<?php echo $sef; ?>" id="page_heading_<?php echo $sef; ?>" maxlength="250" value="<?php echo $this->item->{'page_heading_' . $sef}; ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_META_DESCRIPTION'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<textarea rows="5" cols="30" class="input-lage" name="meta_description_<?php echo $sef; ?>"><?php echo $this->item->{'meta_description_' . $sef}; ?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_META_KEYWORDS'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<textarea rows="5" cols="30" class="input-lage" name="meta_keywords_<?php echo $sef; ?>"><?php echo $this->item->{'meta_keywords_' . $sef}; ?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_META_DESCRIPTION'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<textarea rows="5" cols="30" class="input-lage" name="meta_description_<?php echo $sef; ?>"><?php echo $this->item->{'meta_description_' . $sef}; ?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_PLAN_SUBSCRIPTION_FORM_MESSAGE'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $editor->display('subscription_form_message_' . $sef, $this->item->{'subscription_form_message_' . $sef}, '100%', '250', '75', '10') ; ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_USER_EMAIL_SUBJECT'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<input type="text" name="user_email_subject_<?php echo $sef; ?>" class="form-control" value="<?php echo $this->item->{'user_email_subject_' . $sef}; ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_USER_EMAIL_BODY'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $editor->display('user_email_body_' . $sef, $this->item->{'user_email_body_' . $sef}, '100%', '250', '75', '8') ;?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_USER_EMAIL_BODY_OFFLINE_PAYMENT'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $editor->display('user_email_body_offline_' . $sef, $this->item->{'user_email_body_offline_' . $sef}, '100%', '250', '75', '8') ;?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_THANK_MESSAGE'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $editor->display('thanks_message_' . $sef, $this->item->{'thanks_message_' . $sef}, '100%', '250', '75', '8') ;?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_THANK_MESSAGE_OFFLINE'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $editor->display('thanks_message_offline_' . $sef, $this->item->{'thanks_message_offline_' . $sef}, '100%', '250', '75', '8') ;?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_SUBSCRIPTION_APPROVED_EMAIL_SUBJECT'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<input type="text" name="subscription_approved_email_subject_<?php echo $sef; ?>" class="form-control" value="<?php echo $this->item->{'subscription_approved_email_subject_' . $sef}; ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_SUBSCRIPTION_APPROVED_EMAIL_BODY'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $editor->display('subscription_approved_email_body_' . $sef, $this->item->{'subscription_approved_email_body_' . $sef}, '100%', '250', '75', '8') ;?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_RENEW_USER_EMAIL_SUBJECT'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<input type="text" name="user_renew_email_subject_<?php echo $sef; ?>" class="form-control" value="<?php echo $this->item->{'user_renew_email_subject_' . $sef}; ?>" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_RENEW_USER_EMAIL_BODY'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $editor->display('user_renew_email_body_' . $sef, $this->item->{'user_renew_email_body_' . $sef}, '100%', '250', '75', '8') ;?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_RENEW_THANK_MESSAGE'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $editor->display('renew_thanks_message_' . $sef, $this->item->{'renew_thanks_message_' . $sef}, '100%', '250', '75', '8') ;?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_RENEW_THANK_MESSAGE_OFFLINE'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $editor->display('renew_thanks_message_offline_' . $sef, $this->item->{'renew_thanks_message_offline_' . $sef}, '100%', '250', '75', '8'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_UPGRADE_THANK_MESSAGE'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $editor->display('upgrade_thanks_message_' . $sef, $this->item->{'upgrade_thanks_message_' . $sef}, '100%', '250', '75', '8'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="<?php echo $controlGroupClass; ?>">
|
||||
<div class="<?php echo $controlLabelClass; ?>">
|
||||
<?php echo Text::_('OSM_UPGRADE_THANK_MESSAGE_OFFLINE'); ?>
|
||||
</div>
|
||||
<div class="<?php echo $controlsClass; ?>">
|
||||
<?php echo $editor->display('upgrade_thanks_message_offline_' . $sef, $this->item->{'upgrade_thanks_message_offline_' . $sef}, '100%', '250', '75', '8'); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
echo HTMLHelper::_('bootstrap.endTab');
|
||||
}
|
||||
|
||||
echo HTMLHelper::_('bootstrap.endTabSet');
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla
|
||||
* @subpackage Membership Pro
|
||||
* @author Tuan Pham Ngoc
|
||||
* @copyright Copyright (C) 2012 - 2025 Ossolution Team
|
||||
* @license GNU/GPL, see LICENSE.php
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\CMS\Form\Form;
|
||||
|
||||
$bootstrapHelper = OSMembershipHelperBootstrap::getInstance();
|
||||
$rowFluidClasss = $bootstrapHelper->getClassMapping('row-fluid');
|
||||
$controlGroupClass = $bootstrapHelper->getClassMapping('control-group');
|
||||
$controlLabelClass = $bootstrapHelper->getClassMapping('control-label');
|
||||
$controlsClass = $bootstrapHelper->getClassMapping('controls');
|
||||
|
||||
$form = Form::getInstance('upgrade_options', JPATH_ADMINISTRATOR . '/components/com_osmembership/view/plan/forms/upgrade_options.xml');
|
||||
$formData['upgrade_options'] = [];
|
||||
|
||||
foreach ($this->upgradeRules as $upgradeOption)
|
||||
{
|
||||
$formData['upgrade_options'][] = [
|
||||
'id' => $upgradeOption->id,
|
||||
'to_plan_id' => $upgradeOption->to_plan_id,
|
||||
'price' => $upgradeOption->price,
|
||||
'upgrade_prorated' => $upgradeOption->upgrade_prorated,
|
||||
'published' => $upgradeOption->published,
|
||||
];
|
||||
}
|
||||
|
||||
$form->bind($formData);
|
||||
|
||||
foreach ($form->getFieldset() as $field)
|
||||
{
|
||||
echo $field->input;
|
||||
}
|
||||