upload all

This commit is contained in:
zibright
2025-06-24 13:03:14 +08:00
commit bc51415f2f
99 changed files with 5113 additions and 0 deletions

30
404.php Normal file
View File

@@ -0,0 +1,30 @@
<?php
/**
_ _ __ _ ____ _ _ ___
/ \ | |/ / / \ / ___|| | | |_ _|
/ _ \ | ' / / _ \ \___ \| |_| || |
/ ___ \| . \ / ___ \ ___) | _ || |
/_/ \_\_|\_\/_/ \_\____/|_| |_|___|
* [Romanticism]
* 404.php 错误页
* @version 2.1
**/
?>
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<?php $this->need('config/header.php'); ?>
<div class="LDtrans notfoundpage">
<div class="mdui-card-primary mdui-valign show notfound-box">
<div class="mdui-card-primary mdui-center">
<br><br><br><br><br><br><br><br><br><br>
<span>404</span><h1>这里是空荡的原野...</h1>
<br>
</h1>
</div>
</div>
</div>
<?php $this->need('config/footer.php'); ?>

675
LICENSE Normal file
View File

@@ -0,0 +1,675 @@
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>.

105
README.md Normal file
View File

@@ -0,0 +1,105 @@
![主题图](https://mono.imakashi.eu.org/opensource/github-Romanticism2.1Screenshot.webp.webp)
# Romanticism(浪漫主义)
一款简洁的 typecho 主题
当前版本V2.1
**“在明石的简洁设计中捕捉来自日常生活中的浪漫主义。”**
Demo: [明石博客](https://imakashi.eu.org/blog/)
## 特性
- 高度统一的明石设计风格,简洁明快、赏心悦目;
- 全局思源宋体,适合文字阅读;
- 无插件文章置顶样式;
- 代码高亮,为你的代码锦上添花;
- 原生自带图片灯箱,快让朋友们来欣赏你发的照片吧;
- 评论原生数字验证码,拒绝麦片哥评论;
- 评论原生可发送表情,为对话赋予灵魂;
- 手动深色模式,夜间阅读保护视力;
- 还有文章归档页、“短讯” 、Gravatar 头像、自带无插件友链页面、评论UA等等功能。
## 使用方法
- 支持 typecho 1.1及以上版本1.1以下的版本我没测试过)
- 支持 Firefox Chrome Safari 等现代浏览器(当然不支持 IE
在 Github 下载本主题压缩包,解压后确保文件夹名称为 "Romanticism", 将此文件夹放入主题目录中。
随后在后台/外观中启用 "Romanticism" 主题,在“设置外观”中自定义主题相关功能。
## 感谢
此主题的诞生离不开以下项目的帮助,特此感谢。
[MDUI 框架](https://www.mdui.org/) | [jQuery 库](https://github.com/jquery/jquery)
[OwO.js](https://github.com/DIYgod/OwO) | [谷歌思源宋体](https://fonts.google.com)
[Prismjs](https://prismjs.com/) | [Fancybox](https://fancyapps.com/docs/ui/fancybox/)
[Daydream 主题](https://github.com/Skywt2003/Daydream) | [失眠海峡](https://blog.imalan.cn/)
[Cuckoo 主题](https://github.com/bhaoo/cuckoo) | [MDx 主题](https://flyhigher.top/)
## 功能
1. 设置文章归档页:请先创建一个空页面,在自定义模板中选择“文章归档页”,正文不必输入内容,设置此页面地址为 archivesbox.html (在标题的下面),然后再选择高级选项 -> 公开度 -> 隐藏;
2. 设置友情链接页:请先创建一个空页面,在自定义模板中选择“友情链接页”,在正文中输入的内容格式如下:
```
!!!
[icon]博客的图标
[link]博客的网址
[name]博客的标题
[desc]博客的简短描述
[end]
!!!
```
以下是一个例子
```html
!!!
[icon]https://example.cn/avatar.png
[link]https://example.cn/
[name]Example blog
[desc]A tecnology blog.
[end]
[icon]https://mono.imakashi.eu.org/overall/headicon2.webp
[link]https://imakashi.eu.org/blog
[name]明石博客
[desc]一个互联网海洋中的小岛
[end]
!!!
```
(如你的博客没有开启 Markdown 解析,请去掉开头与结尾的 “!!!”)
3. 代码高亮格式:使用 ` ``` ` 包裹一段代码,并指定一种语言;
4. 快速登录:点击侧边栏上你的头像以进入博客后台管理页面。
## 其他问题
- “首页加载动画”功能由于是所有数据加载完成后才会消失,在某些复杂环境中如果你觉得加载时间太长,请尝试关闭此功能;
- 受限于本人的技术,即使我已经进行检查与测试,也仍然会有存在 bug 的可能。如你发现了此主题存在的 bug 请给我留言,谢谢!
## 鼓励
喜欢此主题的话请**Star本项目**哦!这是对我最大的认可!
## 版权与声明
**禁止将本主题用于非法网站搭建。由此产生一切后果皆由使用者承担。**
**It is prohibited to use this theme for building illegal websites. Any consequences arising from such use shall be borne solely by the user.**
Romanticism Version 2.1
![GitHub](https://mono.imakashi.eu.org/opensource/GPL3.svg)
Copyright©2021-2025 [Akashi](https://imakashi.eu.org), under GPL-3.0 License

81
archivesbox.php Normal file
View File

@@ -0,0 +1,81 @@
<?php
/**
_ _ __ _ ____ _ _ ___
/ \ | |/ / / \ / ___|| | | |_ _|
/ _ \ | ' / / _ \ \___ \| |_| || |
/ ___ \| . \ / ___ \ ___) | _ || |
/_/ \_\_|\_\/_/ \_\____/|_| |_|___|
* 文章归档页
*
* @package custom
* @author 明石
* @version 2.1 - 250204
* @link https://imakashi.eu.org/
*/
?>
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<?php $this->need('config/header.php'); ?>
<div class="mdui-shadow-0 articlecard mdui-card show">
<div class="mdui-valign articlecard mdui-text-center">
<div class="mdui-card-primary easysee mdui-center">
<div class="mdui-card-primary-title"><h2>文章归档</div>
<div class="mdui-card-primary-subtitle">
<h4>这里保存着往昔</h4>
</div>
</div>
</div>
<div class="articlecardshadow"></div>
<div class="articlecardimg"
style="
<?php if ($this->fields->AKAROMarticleimg != null): ?>
background-image: url('<?php $this->fields->AKAROMarticleimg(); ?>');
<?php else: ?>
<?php
// 固定一个随机数作为归档页面的图片
$randomNum = 1 + (abs(crc32('archivesbox')) % 12);
?>
background-image: url('<?php $this->options->themeUrl("config/style/img/default/cover/{$randomNum}.webp"); ?>');
<?php endif; ?>
">
</div>
</div>
<!--主布局容器开始-->
<div class="LDtrans">
<div class="mdui-container">
<br><!--内容开始-->
<div class="yuan mdui-col-md-8 mdui-col-offset-md-2 mdui-card-primary toup">
<div class="article mdui-typo">
<?php $this->widget('Widget_Contents_Post_Recent', 'pageSize=10000')->to($archives);
$year=0; $mon=0; $i=0; $j=0;
$count = '0';
while($archives->next()):
$count = $count + 1;
$year_tmp = date('Y',$archives->created);
$mon_tmp = date('m',$archives->created);
$y=$year; $m=$mon;
if ($mon != $mon_tmp && $mon > 0) $output .= '';
if ($year != $year_tmp && $year > 0) $output .= '';
if ($year != $year_tmp) {
$year = $year_tmp;
$output .= '<h1>'. $year .' 年</h1>';
}
if (!empty($archives->title)) {
$output .= '<p><span class="mdui-typo-caption-opacity">'.date('m月d日', $archives->created).' </span><a href="'.$archives->permalink .'"> <b>'. $archives->title .'</b></a></p>';
}
endwhile;
echo '<h3>当前共有 '.$count.' 篇文章</h3><br><hr>';
echo $output;
?>
<br>
</div>
</div><!--内容结束-->
</div><!--主布局容器结束-->
<?php $this->need('config/footer.php'); ?>

72
config/OwO.php Normal file
View File

@@ -0,0 +1,72 @@
<?php
/**
_ _ __ _ ____ _ _ ___
/ \ | |/ / / \ / ___|| | | |_ _|
/ _ \ | ' / / _ \ \___ \| |_| || |
/ ___ \| . \ / ___ \ ___) | _ || |
/_/ \_\_|\_\/_/ \_\____/|_| |_|___|
* [Romanticism]
* OwO.php 评论区表情文件
* @version 2.1
**/
?>
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<div class="OwO">
<div class="OwO-body" id="OwO-body">
<ul class="OwO-items" style="max-height: 0;padding: 0px;">
<li class="OwO-item" onclick="Smilies.grin('@OwO(chuibao)');"><img src="<?php $this->options->themeUrl(''); ?>/config/style/img/bili/chuibao.webp" loading="lazy"></li>
<li class="OwO-item" onclick="Smilies.grin('@OwO(good)');"><img src="<?php $this->options->themeUrl(''); ?>/config/style/img/bili/good.webp" loading="lazy"></li>
<li class="OwO-item" onclick="Smilies.grin('@OwO(hehe)');"><img src="<?php $this->options->themeUrl(''); ?>/config/style/img/bili/hehe.webp" loading="lazy"></li>
<li class="OwO-item" onclick="Smilies.grin('@OwO(doge)');"><img src="<?php $this->options->themeUrl(''); ?>/config/style/img/bili/doge.webp" loading="lazy"></li>
<li class="OwO-item" onclick="Smilies.grin('@OwO(wow)');"><img src="<?php $this->options->themeUrl(''); ?>/config/style/img/bili/wow.webp" loading="lazy"></li>
<li class="OwO-item" onclick="Smilies.grin('@OwO(huaji)');"><img src="<?php $this->options->themeUrl(''); ?>/config/style/img/bili/huaji.webp" loading="lazy"></li>
<li class="OwO-item" onclick="Smilies.grin('@OwO(azhe)');"><img src="<?php $this->options->themeUrl(''); ?>/config/style/img/bili/azhe.webp" loading="lazy"></li>
<li class="OwO-item" onclick="Smilies.grin('@OwO(cry)');"><img src="<?php $this->options->themeUrl(''); ?>/config/style/img/bili/cry.webp" loading="lazy"></li>
<li class="OwO-item" onclick="Smilies.grin('@OwO(fighting)');"><img src="<?php $this->options->themeUrl(''); ?>/config/style/img/bili/fighting.webp" loading="lazy"></li>
<li class="OwO-item" onclick="Smilies.grin('@OwO(bixin)');"><img src="<?php $this->options->themeUrl(''); ?>/config/style/img/bili/bixin.webp" loading="lazy"></li>
<li class="OwO-item" onclick="Smilies.grin('@OwO(yygq)');"><img src="<?php $this->options->themeUrl(''); ?>/config/style/img/bili/yygq.webp" loading="lazy"></li>
<li class="OwO-item" onclick="Smilies.grin('@OwO(chigua)');"><img src="<?php $this->options->themeUrl(''); ?>/config/style/img/bili/chigua.webp" loading="lazy"></li>
<li class="OwO-item" onclick="Smilies.grin('@OwO(mojing)');"><img src="<?php $this->options->themeUrl(''); ?>/config/style/img/bili/mojing.webp" loading="lazy"></li>
<li class="OwO-item" onclick="Smilies.grin('@OwO(hahaha)');"><img src="<?php $this->options->themeUrl(''); ?>/config/style/img/bili/hahaha.webp" loading="lazy"></li>
<li class="OwO-item" onclick="Smilies.grin('@OwO(aojiao)');"><img src="<?php $this->options->themeUrl(''); ?>/config/style/img/bili/aojiao.webp" loading="lazy"></li>
<li class="OwO-item" onclick="Smilies.grin('@OwO(kunhuo)');"><img src="<?php $this->options->themeUrl(''); ?>/config/style/img/bili/kunhuo.webp" loading="lazy"></li>
<li class="OwO-item" onclick="Smilies.grin('@OwO(wosuanle)');"><img src="<?php $this->options->themeUrl(''); ?>/config/style/img/bili/wosuanle.webp" loading="lazy"></li>
<li class="OwO-item" onclick="Smilies.grin('@OwO(happy)');"><img src="<?php $this->options->themeUrl(''); ?>/config/style/img/bili/happy.webp" loading="lazy"></li>
<li class="OwO-item" onclick="Smilies.grin('@OwO(mengxin)');"><img src="<?php $this->options->themeUrl(''); ?>/config/style/img/bili/mengxin.webp" loading="lazy"></li>
<li class="OwO-item" onclick="Smilies.grin('@OwO(baofu)');"><img src="<?php $this->options->themeUrl(''); ?>/config/style/img/bili/baofu.webp" loading="lazy"></li>
<li class="OwO-item" onclick="Smilies.grin('@OwO(yeah)');"><img src="<?php $this->options->themeUrl(''); ?>/config/style/img/bili/yeah.webp" loading="lazy"></li>
<li class="OwO-item" onclick="Smilies.grin('@OwO(jingxi)');"><img src="<?php $this->options->themeUrl(''); ?>/config/style/img/bili/jingxi.webp" loading="lazy"></li>
<li class="OwO-item" onclick="Smilies.grin('@OwO(wukongDoge)');"><img src="<?php $this->options->themeUrl(''); ?>/config/style/img/bili/wukongDoge.webp" loading="lazy"></li>
<li class="OwO-item" onclick="Smilies.grin('@OwO(wuyan)');"><img src="<?php $this->options->themeUrl(''); ?>/config/style/img/bili/wuyan.webp" loading="lazy"></li>
<li class="OwO-item" onclick="Smilies.grin('@OwO(baoquan)');"><img src="<?php $this->options->themeUrl(''); ?>/config/style/img/bili/baoquan.webp" loading="lazy"></li>
<li class="OwO-item" onclick="Smilies.grin('@OwO(zanghu)');"><img src="<?php $this->options->themeUrl(''); ?>/config/style/img/bili/zanghu.webp" loading="lazy"></li>
<li class="OwO-item" onclick="Smilies.grin('@OwO(ganbei)');"><img src="<?php $this->options->themeUrl(''); ?>/config/style/img/bili/ganbei.webp" loading="lazy"></li>
<li class="OwO-item" onclick="Smilies.grin('@OwO(luotianyi)');"><img src="<?php $this->options->themeUrl(''); ?>/config/style/img/bili/luotianyi.webp" loading="lazy"></li>
<li class="OwO-item" onclick="Smilies.grin('@OwO(aixin)');"><img src="<?php $this->options->themeUrl(''); ?>/config/style/img/bili/aixin.webp" loading="lazy"></li>
<br>
<li class="OwO-item" onclick="Smilies.grin('@OwOb(sanlian)');"><img style="width:45px;height:auto;" src="<?php $this->options->themeUrl(''); ?>/config/style/img/bili/sanlian.webp" loading="lazy"></li>
<li class="OwO-item" onclick="Smilies.grin('@OwOb(haojiahuo)');"><img style="width:45px;height:auto;" src="<?php $this->options->themeUrl(''); ?>/config/style/img/bili/haojiahuo.webp" loading="lazy"></li>
<li class="OwO-item" onclick="Smilies.grin('@OwOb(haoye)');"><img style="width:45px;height:auto;" src="<?php $this->options->themeUrl(''); ?>/config/style/img/bili/haoye.webp" loading="lazy"></li>
<li class="OwO-item" onclick="Smilies.grin('@OwOb(miao)');"><img style="width:45px;height:auto;" src="<?php $this->options->themeUrl(''); ?>/config/style/img/bili/miao.webp" loading="lazy"></li>
<li class="OwO-item" onclick="Smilies.grin('@OwOb(bucuoo)');"><img style="width:45px;height:auto;" src="<?php $this->options->themeUrl(''); ?>/config/style/img/bili/bucuoo.webp" loading="lazy"></li>
<li class="OwO-item" onclick="Smilies.grin('@OwOb(youya)');"><img style="width:45px;height:auto;" src="<?php $this->options->themeUrl(''); ?>/config/style/img/bili/youya.webp" loading="lazy"></li>
<li class="OwO-item" onclick="Smilies.grin('@OwOb(mangqu)');"><img style="width:45px;height:auto;" src="<?php $this->options->themeUrl(''); ?>/config/style/img/bili/mangqu.webp" loading="lazy"></li>
<li class="OwO-item" onclick="Smilies.grin('@OwOb(pofang)');"><img style="width:45px;height:auto;" src="<?php $this->options->themeUrl(''); ?>/config/style/img/bili/pofang.webp" loading="lazy"></li>
<br>
<li class="OwO-item" onclick="Smilies.grin('@OwOb(haixiu)');"><img style="width:45px;height:auto;" src="<?php $this->options->themeUrl(''); ?>/config/style/img/bili/haixiu.webp" loading="lazy"></li>
<li class="OwO-item" onclick="Smilies.grin('@OwOb(rana)');"><img style="width:45px;height:auto;" src="<?php $this->options->themeUrl(''); ?>/config/style/img/bili/rana.webp" loading="lazy"></li>
<li class="OwO-item" onclick="Smilies.grin('@OwOb(anon)');"><img style="width:45px;height:auto;" src="<?php $this->options->themeUrl(''); ?>/config/style/img/bili/anon.webp" loading="lazy"></li>
<li class="OwO-item" onclick="Smilies.grin('@OwOb(rwkk)');"><img style="width:45px;height:auto;" src="<?php $this->options->themeUrl(''); ?>/config/style/img/bili/rwkk.webp" loading="lazy"></li>
<li class="OwO-item" onclick="Smilies.grin('@OwOb(chuji)');"><img style="width:45px;height:auto;" src="<?php $this->options->themeUrl(''); ?>/config/style/img/bili/chuji.webp" loading="lazy"></li>
<li class="OwO-item" onclick="Smilies.grin('@OwOb(wtzn)');"><img style="width:45px;height:auto;" src="<?php $this->options->themeUrl(''); ?>/config/style/img/bili/wtzn.webp" loading="lazy"></li>
<li class="OwO-item" onclick="Smilies.grin('@OwOb(offer)');"><img style="width:45px;height:auto;" src="<?php $this->options->themeUrl(''); ?>/config/style/img/bili/offer.webp" loading="lazy"></li>
<li class="OwO-item" onclick="Smilies.grin('@OwOb(jingya)');"><img style="width:45px;height:auto;" src="<?php $this->options->themeUrl(''); ?>/config/style/img/bili/jingya.webp" loading="lazy"></li>
<p style="opacity: .2"><small>&copy;<?php echo date('Y');?> bilibili.com</small></p>
</ul>
</div>
</div>

213
config/comments.php Normal file
View File

@@ -0,0 +1,213 @@
<?php
/**
_ _ __ _ ____ _ _ ___
/ \ | |/ / / \ / ___|| | | |_ _|
/ _ \ | ' / / _ \ \___ \| |_| || |
/ ___ \| . \ / ___ \ ___) | _ || |
/_/ \_\_|\_\/_/ \_\____/|_| |_|___|
* [Romanticism]
* comments.php 评论区配置文件
* @version 2.1
* 参考自 Typecho 自带的默认主题
**/
?>
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit;
$GLOBALS['theme_url'] = $this->options->themeUrl;
?>
<!--展示评论区-->
<?php function threadedComments($comments, $options) {
$commentClass = '';
if ($comments->authorId) {
if ($comments->authorId == $comments->ownerId) {
$commentClass = '<b><span class="btnyuan adminsign"> 作者 </span></b>'; //如果是文章作者的评论添加样式
}else{
}
}
$commentLevelClass = $comments->_levels > 0 ? ' comment-child' : ' comment-parent'; //评论层数大于0为子级否则是父级
?>
<li id="li-<?php $comments->theId(); ?>" class="comment-body<?php
if ($comments->levels > 0) {
echo ' comment-child';
$comments->levelsAlt(' comment-level-odd', ' comment-level-even');
}else{
echo ' comment-parent';
}
$comments->alt(' comment-odd', ' comment-even');
?>">
<div id="<?php $comments->theId(); ?>" style="margin-bottom:10px;">
<div class="comment-author ">
<span itemprop="image">
<?php //Gravatar 头像源
$mail=$comments->mail;
$mail=md5($mail);
$headicon='https://cravatar.cn/avatar/'.$mail.'.png';
echo '<img class="headicon" src="'.$headicon.'" height="46px" width="46px" style="border-radius:50%;float:left;margin-top:0px;margin-right:10px;margin-bottom:-2px" loading="lazy">';
?>
</span>
<p><b style="position: relative; top: 1px;"><?php $comments->author(); ?></b><small class="mdui-typo-caption-opacity"><?php echo $commentClass; ?><?php getOs($comments->agent); ?> <?php getBrowser($comments->agent); ?></small></p>
</div>
<div class="mdui-typo-caption-opacity"><?php $comments->date('y-m-d H:i'); ?> · <b><?php $comments->reply('回复'); ?></b></div>
<?php
// 解析带表情的评论内容
$parsedComment = preg_replace_callback(
'#\@OwO(b)?\((.*?)\)#',
function ($matches) {
$width = $matches[1] ? '50' : '30'; // "b"ig表情
$emoticon = $matches[2];
$themeUrl = htmlspecialchars($GLOBALS['theme_url'], ENT_QUOTES, 'UTF-8');
return '<img style="width:' . $width . 'px; height:auto; margin-bottom:-7px;" ' .
'src="' . $themeUrl . '/config/style/img/bili/' . $emoticon . '.webp" ' .
'loading="lazy" alt="' . $emoticon . '">';
},
$comments->content
);
echo '<div style="padding-top:5px;">' . $parsedComment . '</div>';
?>
</div>
<div class="content">
<hr>
</div>
<?php if ($comments->children) { ?>
<div class="comment-children">
<?php $comments->threadedComments($options); ?>
</div>
<?php } ?>
</li>
<?php } ?>
<!--撰写评论区-->
<div id="comments">
<h1><i class="mdui-icon material-icons">comment</i>&nbsp;评论区</h1>
<?php $this->comments()->to($comments); ?>
<?php if($this->allow('comment')): ?>
<div id="<?php $this->respondId(); ?>" class="respond">
<div class="cancel-comment-reply">
<?php $comments->cancelReply(); ?>
</div>
<h3 id="response"><?php _e('添加新评论'); ?></h3>
<form method="post" action="<?php $this->commentUrl() ?>" id="comment-form" role="form">
<?php if($this->user->hasLogin()): ?>
当前登录身份:<?php $this->author->screenName(); ?><br><br>
<div class="OwO-logo" onclick="OwO_show()"><!--登录状态下-->
<kbd>OωO表情</kbd>
</div>
<br><br>
<?php $this->need('config/OwO.php'); ?>
<div class="mdui-textfield mdui-textfield-floating-label">
<i class="mdui-icon material-icons">textsms</i>
<textarea class="mdui-textfield-input" name="text" id="textarea" value="<?php $this->remember('text'); ?>" placeholder="开始发表评论吧" required/></textarea>
<div class="mdui-textfield-error">内容不能为空</div>
</div>
<?php AKAROM_simple_captcha_math();?>
<?php else: ?>
<div class="OwO-logo" onclick="OwO_show()"><!--非登录状态下-->
<kbd>OωO表情</kbd>
</div>
<br><br>
<?php $this->need('config/OwO.php'); ?>
<div class="mdui-textfield mdui-textfield-floating-label">
<i class="mdui-icon material-icons">textsms</i>
<textarea class="mdui-textfield-input" name="text" id="textarea" value="<?php $this->remember('text'); ?>" placeholder="说点什么吧~" required/></textarea>
<div class="mdui-textfield-error">内容不能为空</div>
</div>
<div class="mdui-row">
<div class="mdui-col-sm-6">
<div class="mdui-textfield">
<i class="mdui-icon material-icons">account_circle</i>
<input class="mdui-textfield-input" name="author" id="author" value="<?php $this->remember('author'); ?>" type="text" placeholder="昵称" required/>
<div class="mdui-textfield-error">昵称不能为空</div>
</div>
</div>
<div class="mdui-col-sm-6">
<div class="mdui-textfield">
<i class="mdui-icon material-icons">email</i>
<input class="mdui-textfield-input" type="email" name="mail" id="mail" value="<?php $this->remember('mail'); ?>" placeholder="电子邮件" required/>
<div class="mdui-textfield-error">邮件地址格式错误</div>
</div>
</div>
</div>
<div class="mdui-row">
<div class="mdui-col-sm-6">
<div class="mdui-textfield">
<i class="mdui-icon material-icons">web</i>
<input class="mdui-textfield-input" type="url" name="url" id="url" value="<?php $this->remember('url'); ?>" placeholder="网站(选填)(https://)">
</div>
</div>
<div class="mdui-col-sm-6">
<?php AKAROM_simple_captcha_math();?>
</div>
</div>
<?php endif; ?>
<span class="akarom-alter-button-valign">
<span class="akarom-alter-button akarom-alter-button-disabled blur yuan mdui-center" id="submitComment">
<i class="mdui-icon material-icons">keyboard</i><b>发表评论</b>
</span>
</span>
<script>
function checkInputs() {
const textarea = document.getElementById("textarea");
const sum = document.getElementById("sum");
const button = document.getElementById("submitComment");
if (!textarea || !sum || !button) {
return;
}
if (textarea.value.trim() !== "" && sum.value.trim() !== "") {
button.classList.remove("akarom-alter-button-disabled");
} else {
button.classList.add("akarom-alter-button-disabled");
}
}
document.getElementById("textarea").addEventListener("input", checkInputs);
document.getElementById("sum").addEventListener("input", checkInputs);
document.getElementById("submitComment").addEventListener("click", function() {
if (!document.getElementById("submitComment").classList.contains("akarom-alter-button-disabled")) {
document.getElementById("comment-form").submit();
}
});
</script>
<br><br>
</form>
</div>
<?php else: ?>
<h3 class="mdui-valign">
<i class="mdui-icon material-icons">error_outline</i>&nbsp;当前评论区已关闭
</h3>
<?php endif; ?>
<hr>
<?php if ($comments->have()): ?>
<h3><?php $this->commentsNum( _t('仅有一条评论'), _t('已有 %d 条评论')); ?></h3>
<?php $comments->listComments(); ?>
<span calss="outlineborder">
<?php $comments->pageNav('< 前一页', '后一页 >'); ?>
</span>
<?php endif; ?>
<?php if (!($comments->have())): ?>
<?php if($this->allow('comment')): ?>
<h3 class="mdui-valign"><i class="mdui-icon material-icons">star_outline</i>&nbsp;咱快来抢个沙发吧!</h3>
<?php endif; ?>
</hr>
<?php endif; ?>
</div>

161
config/footer.php Normal file
View File

@@ -0,0 +1,161 @@
<?php
/**
_ _ __ _ ____ _ _ ___
/ \ | |/ / / \ / ___|| | | |_ _|
/ _ \ | ' / / _ \ \___ \| |_| || |
/ ___ \| . \ / ___ \ ___) | _ || |
/_/ \_\_|\_\/_/ \_\____/|_| |_|___|
* [Romanticism]
* footer.php 页脚文件
* @version 2.1 - 250202
**/
?>
<div class="mdui-shadow-0 mdui-text-center mdui-card toup">
<br>
<br>
<span class="title">
&copy;<?php echo date("Y"); ?> <?php $this->options->title(); ?>
<br>
<?php if($this->options->AKAROMfootericp):?>
<?php echo'<br>';
echo $this->options->AKAROMfootericp; ?>
</span><br>
<?php else: ?>
</span><br>
<a href="https://beian.miit.gov.cn/" target="_blank" class="chameleon underline">备案号XXXXXX</a><br>
<?php endif;?>
<br>
<!-- 已经弄得很不显眼了,请不要删除以下信息 -->
<small style="opacity: .5;">Theme <b><a class="chameleon underline" onclick="window.location.href='https://imakashi.eu.org/blog/archives/themeRomanticism.html'">Romanticism2.1</a></b> by <a class="chameleon underline" onclick="window.location.href='https://imakashi.eu.org/'"><b>Akashi</b></a>
<br>
Powered by <a class="chameleon underline" onclick="window.location.href='https://typecho.org'"><b>Typecho</b></a></small>
<br><br>
</div>
<script>
document.getElementById("switch-theme").addEventListener("click", () => {
const isDark = document.body.classList.toggle("mdui-theme-layout-dark");
if(isDark){
localStorage.romanticismTheme = true;
}else{
delete localStorage.romanticismTheme;
}
});
</script>
<script src="<?php $this->options->themeUrl('config/mdui/js/mdui.min.js'); ?>"></script>
<script src="<?php $this->options->themeUrl('config/js/jquery.min.js'); ?>"></script>
<script src="<?php $this->options->themeUrl('config/js/listLazyload.js?v=2.1'); ?>"></script>
<script src="<?php $this->options->themeUrl('config/js/tagIcon.js?v=2.1'); ?>"></script>
<script src="<?php $this->options->themeUrl('config/js/customStyle.js?v=2.1'); ?>"></script>
<script src="<?php $this->options->themeUrl('config/js/returntop.js?v=2.1'); ?>"></script>
<script src="<?php $this->options->themeUrl('config/js/prism.highlight.js'); ?>"></script>
<script src="<?php $this->options->themeUrl('config/js/jquery.fancybox.min.js'); ?>"></script>
<script>
$(document).ready(function () {
$( ".fancybox").fancybox();
});
</script>
<?php if (!empty($this->options->AKAROMfucset) && in_array('AKAROMindexloading', $this->options->AKAROMfucset)): ?>
<script type="text/javascript" src="<?php $this->options->themeUrl('config/js/loading.js?v=2.1'); ?>"></script>
<?php endif; ?>
<!-- 增强的懒加载脚本 -->
<script>
document.addEventListener("DOMContentLoaded", function() {
const lazyImages = [].slice.call(document.querySelectorAll("img.lazy, img[loading='lazy'], img.AKAROMlazyload"));
if ("IntersectionObserver" in window) {
let lazyImageObserver = new IntersectionObserver(function(entries, observer) {
entries.forEach(function(entry) {
if (entry.isIntersecting) {
let lazyImage = entry.target;
if (lazyImage.dataset.src) {
lazyImage.src = lazyImage.dataset.src;
lazyImage.removeAttribute("data-src");
}
if (lazyImage.dataset.bg) {
lazyImage.style.backgroundImage = "url('" + lazyImage.dataset.bg + "')";
lazyImage.removeAttribute("data-bg");
}
lazyImage.classList.remove("lazy");
lazyImage.classList.remove("AKAROMlazyload");
lazyImageObserver.unobserve(lazyImage);
}
});
});
lazyImages.forEach(function(lazyImage) {
lazyImageObserver.observe(lazyImage);
});
} else {
// 回退到传统的延迟加载
let active = false;
const lazyLoad = function() {
if (active === false) {
active = true;
setTimeout(function() {
lazyImages.forEach(function(lazyImage) {
if ((lazyImage.getBoundingClientRect().top <= window.innerHeight && lazyImage.getBoundingClientRect().bottom >= 0) && getComputedStyle(lazyImage).display !== "none") {
if (lazyImage.dataset.src) {
lazyImage.src = lazyImage.dataset.src;
lazyImage.removeAttribute("data-src");
}
if (lazyImage.dataset.bg) {
lazyImage.style.backgroundImage = "url('" + lazyImage.dataset.bg + "')";
lazyImage.removeAttribute("data-bg");
}
lazyImage.classList.remove("lazy");
lazyImage.classList.remove("AKAROMlazyload");
if (lazyImages.length === 0) {
document.removeEventListener("scroll", lazyLoad);
window.removeEventListener("resize", lazyLoad);
window.removeEventListener("orientationchange", lazyLoad);
}
}
});
active = false;
}, 200);
}
};
document.addEventListener("scroll", lazyLoad);
window.addEventListener("resize", lazyLoad);
window.addEventListener("orientationchange", lazyLoad);
lazyLoad();
}
});
</script>
<script src="<?php $this->options->themeUrl('config/js/OwO.js'); ?>"></script>
<script>
function OwO_show() {
if ($(".OwO-items").css("max-height") == '0px') {
$(".OwO").addClass("OwO-open");
} else {
$(".OwO").removeClass("OwO-open");
}
}
</script>
<!-- 自定义JS -->
<?php if(!empty($this->options->AKAROMcustomJs)): ?>
<script type="text/javascript">
<?php $this->options->AKAROMcustomJs(); ?>
</script>
<?php endif; ?>
<?php $this->footer(); ?>
</div>
</body>
</html>

161
config/header.php Normal file
View File

@@ -0,0 +1,161 @@
<?php
/**
_ _ __ _ ____ _ _ ___
/ \ | |/ / / \ / ___|| | | |_ _|
/ _ \ | ' / / _ \ \___ \| |_| || |
/ ___ \| . \ / ___ \ ___) | _ || |
/_/ \_\_|\_\/_/ \_\____/|_| |_|___|
* [Romanticism]
* header.php 页首文件
* @version 2.1
* @link https://imakashi.eu.org/
**/
?>
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit;
// 仅抑制通知和不重要的警告,保留重要错误
error_reporting(E_ERROR | E_PARSE | E_CORE_ERROR | E_COMPILE_ERROR | E_USER_ERROR);
?>
<!DOCTYPE HTML>
<html lang="zh-CN" class="no-js">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"/>
<meta name="renderer" content="webkit"/>
<meta name="force-rendering" content="webkit"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
<meta name="copyright" content="Copyright(C)<?php echo date('Y');?> <?php $this->options->title() ?>"/>
<meta name="author" content="<?php $this->author(); ?>"/>
<!-- SEO优化标签 -->
<?php if($this->is('index')): ?>
<meta name="description" content="<?php $this->options->description() ?>" />
<meta name="keywords" content="<?php $this->options->keywords() ?>" />
<?php elseif($this->is('post') || $this->is('page')): ?>
<meta name="description" content="<?php $this->description(); ?>" />
<meta name="keywords" content="<?php $this->keywords(', '); ?>" />
<?php endif; ?>
<?php if($this->is('post')): ?>
<meta property="og:title" content="<?php $this->title() ?>" />
<meta property="og:description" content="<?php $this->description(); ?>" />
<meta property="og:type" content="article" />
<meta property="og:url" content="<?php $this->permalink() ?>" />
<?php endif; ?>
<meta name="TypechoTemplateInfo" content="Creator: Akashi Nishikata; Link: imakashi.eu.org; Release: 2025-02">
<!-- 通过自有函数输出HTML头部信息 -->
<?php $this->header(); ?>
<link href="<?php $this->options->AKAROMsign(); ?>" rel="icon" type="image/x-icon"><!--图标-->
<!-- 使用更可靠的字体CDN并添加预加载 -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;900&display=swap" rel="stylesheet">
<title><?php $this->archiveTitle(array(
'category' => _t('分类 %s 下的文章'),
'search' => _t('包含关键字 %s 的文章'),
'tag' => _t('标签 %s 下的文章'),
'author' => _t('%s 发布的文章')
), '', ' - '); ?><?php $this->options->title(); ?></title>
<!-- 使用url函数转换相关路径 -->
<link rel="stylesheet" href="<?php $this->options->themeUrl('config/mdui/css/mdui.min.css'); ?>">
<link rel="stylesheet" href="<?php $this->options->themeUrl('config/style/romanticism.aka.css?v=2.1'); ?>">
<!-- 延迟加载非关键CSS -->
<link rel="preload" href="<?php $this->options->themeUrl('config/style/prism.highlight.css'); ?>" as="style" onload="this.onload=null;this.rel='stylesheet'">
<noscript><link rel="stylesheet" href="<?php $this->options->themeUrl('config/style/prism.highlight.css'); ?>"></noscript>
<link rel="preload" href="<?php $this->options->themeUrl('config/style/jquery.fancybox.css'); ?>" as="style" onload="this.onload=null;this.rel='stylesheet'">
<noscript><link rel="stylesheet" href="<?php $this->options->themeUrl('config/style/jquery.fancybox.css'); ?>"></noscript>
<link rel="stylesheet" href="<?php $this->options->themeUrl('config/style/icon.aka.css'); ?>">
<link rel="preload" href="<?php $this->options->themeUrl('config/style/OwO.css'); ?>" as="style" onload="this.onload=null;this.rel='stylesheet'">
<noscript><link rel="stylesheet" href="<?php $this->options->themeUrl('config/style/OwO.css'); ?>"></noscript>
<!-- CSS加载回退脚本 -->
<script>
!function(n){"use strict";n.loadCSS||(n.loadCSS=function(){});var o=loadCSS.relpreload={};if(o.support=function(){var e;try{e=n.document.createElement("link").relList.supports("preload")}catch(t){e=!1}return function(){return e}}(),o.bindMediaToggle=function(t){var e=t.media||"all";function a(){t.media=e}t.addEventListener?t.addEventListener("load",a):t.attachEvent&&t.attachEvent("onload",a),setTimeout(function(){t.rel="stylesheet",t.media="only x"}),setTimeout(a,3e3)},o.poly=function(){if(!o.support())for(var t=n.document.getElementsByTagName("link"),e=0;e<t.length;e++){var a=t[e];"preload"!==a.rel||"style"!==a.getAttribute("as")||a.getAttribute("data-loadcss")||(a.setAttribute("data-loadcss",!0),o.bindMediaToggle(a))}},!o.support()){o.poly();var t=n.setInterval(o.poly,500);n.addEventListener?n.addEventListener("load",function(){o.poly(),n.clearInterval(t)}):n.attachEvent&&n.attachEvent("onload",function(){o.poly(),n.clearInterval(t)})}"undefined"!=typeof exports?exports.loadCSS=loadCSS:n.loadCSS=loadCSS}("undefined"!=typeof global?global:this);
</script>
<!-- 自定义CSS -->
<?php if(!empty($this->options->AKAROMcustomCss)): ?>
<style type="text/css">
<?php $this->options->AKAROMcustomCss(); ?>
</style>
<?php endif; ?>
</head>
<!--[if lte IE 10]>
<div class="browsehappy" role="dialog">您正在使用<strong>过时的</strong>浏览器. 为了更好的体验, 请 <a href="https://browsehappy.com/">升级你的浏览器</a>.</div>
<![endif]-->
<body class="mdui-theme-layout-light mdui-theme-primary-blue mdui-theme-accent-red">
<script>
if (localStorage.romanticismTheme) {
document.body.classList.add("mdui-theme-layout-dark");
}
</script>
<div class="mdui-appbar blur mdui-appbar-fixed mdui-shadow-0">
<div class="mdui-toolbar">
<a class="mdui-hidden-xs-down"></a>
<button class="mdui-btn mdui-btn-icon" mdui-drawer="{target: '#mainsidebar', overlay: true}"><i class="mdui-icon material-icons">menu</i></button>
<span class="mdui-typo-title chameleon" onclick="window.location.href='<?php $this->options ->siteUrl(); ?>'"><b><?php $this->options->title(); ?></b></span>
<div class="mdui-toolbar-spacer"></div>
<button class="mdui-btn mdui-btn-icon" mdui-dialog="{target: '#search'}"><i class="mdui-icon material-icons">search</i></button>
<button type="button" class="mdui-btn mdui-btn-icon" id="switch-theme"> <i class="mdui-icon material-icons">brightness_6</i></button>
<a class="mdui-hidden-xs-down"></a>
</div>
</div>
<div class="mdui-dialog yuan blur" id="search">
<div class="mdui-container">
<div class="mdui-typo">
<h3 class="mdui-valign"><i class="mdui-icon material-icons">search</i>&nbsp;搜索一下</h3>
<form id="searchform" method="post" action="" role="search">
<div class="mdui-row">
<div class="mdui-col-xs-8 mdui-col-sm-10">
<input class="mdui-textfield-input" type="text" id="s" name="s" placeholder="请输入搜索关键字" maxlength="30"/>
</div>
<div class="mdui-col-xs-4 mdui-col-sm-2">
<span class="akarom-alter-button-valign">
<span class="akarom-alter-button blur yuan mdui-center" id="submitSearch">
<i class="mdui-icon material-icons">bubble_chart</i><b>搜索</b>
</span>
</span>
</div>
<script>
document.getElementById("submitSearch").addEventListener("click", function() {
document.getElementById("searchform").submit();
});
</script>
</div>
<h3 class="mdui-valign"><i class="mdui-icon material-icons">label_outline</i>&nbsp;标签云</h3>
<?php $this->widget('Widget_Metas_Tag_Cloud', 'sort=rand()&ignoreZeroCount=1&desc=0&limit=15')->to($tags); ?>
<?php if($tags->have()): ?>
<?php while ($tags->next()): ?>
<?php echo'
<div class="btnyuan outlineborder"><a href="'.$tags->permalink.' " rel="tag"><b>#'.$tags->name.'</b></a> <span class="mdui-typo-caption-opacity"> ('.$tags->count.')</span></div>
'; ?>
<?php endwhile; ?>
<?php else: ?>
<?php _e('未找到含有标签的文章'); ?>
<?php endif; ?>
<br><br>
</form>
</div>
</div>
</div>
<?php $this->need('config/sidebar.php');?>

14
config/js/OwO.js Normal file
View File

@@ -0,0 +1,14 @@
Smilies = {
dom: function(id) {
return document.getElementById(id);
},
grin: function(tag) {
tag = ' ' + tag + ' ';
myField = this.dom("textarea");
document.selection ? (myField.focus(), sel = document.selection.createRange(), sel.text = tag, myField.focus()) : this.insertTag(tag);
},
insertTag: function(tag) {
myField = Smilies.dom("textarea");
myField.selectionStart || myField.selectionStart == "0" ? (startPos = myField.selectionStart, endPos = myField.selectionEnd, cursorPos = startPos, myField.value = myField.value.substring(0, startPos) + tag + myField.value.substring(endPos, myField.value.length), cursorPos += tag.length, myField.focus(), myField.selectionStart = cursorPos, myField.selectionEnd = cursorPos) : (myField.value += tag, myField.focus());
}
}

44
config/js/customStyle.js Normal file
View File

@@ -0,0 +1,44 @@
$(document).ready(function() {
let fontSize = localStorage.getItem("fontSize") ? parseInt(localStorage.getItem("fontSize")) : 18;
let serif = localStorage.getItem("fontFamily") ? localStorage.getItem("fontFamily") === "serif" : true;
function applySettings() {
$(".mdui-typo p").css({
"font-size": fontSize + "px",
});
$("body").css({
"font-family": serif ? "'Noto Serif SC', serif" : "sans-serif"
});
$("span").css({
"font-family": serif ? "'Noto Serif SC', serif" : "sans-serif"
});
$("a").css({
"font-family": serif ? "'Noto Serif SC', serif" : "sans-serif"
});
$("#fontSize").text(fontSize);
}
$("#decrease").click(function() {
if (fontSize > 12) {
fontSize--;
localStorage.setItem("fontSize", fontSize);
applySettings();
}
});
$("#increase").click(function() {
if (fontSize < 25) {
fontSize++;
localStorage.setItem("fontSize", fontSize);
applySettings();
}
});
$("#toggleFont").click(function() {
serif = !serif;
localStorage.setItem("fontFamily", serif ? "serif" : "sans-serif");
applySettings();
});
applySettings();
});

13
config/js/jquery.fancybox.min.js vendored Normal file

File diff suppressed because one or more lines are too long

4
config/js/jquery.min.js vendored Normal file

File diff suppressed because one or more lines are too long

38
config/js/listLazyload.js Normal file
View File

@@ -0,0 +1,38 @@
const observer = new IntersectionObserver((entries) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
const element = entry.target;
const bgUrl = element.getAttribute('data-bg');
if (bgUrl) {
const img = new Image();
img.onload = () => {
element.style.backgroundImage = `url(${bgUrl})`;
};
img.src = bgUrl;
observer.unobserve(element);
}
}
});
}, {
// 配置项
rootMargin: '50px 0px',
threshold: 0.01
});
const lazyLoadElements = document.querySelectorAll('.AKAROMlazyload');
lazyLoadElements.forEach(element => {
observer.observe(element);
});
const styles = `
.AKAROMlazyload {
background-color: Aquamarine;
}
`;
const styleSheet = document.createElement('style');
styleSheet.textContent = styles;
document.head.appendChild(styleSheet);

31
config/js/loading.js Normal file
View File

@@ -0,0 +1,31 @@
//Loading页面
document.onreadystatechange = function () {
if (document.readyState == "complete") {
loadingFade();
}
}
function loadingFade() {
var opacity = 1;
var fadeSpeed = 0.05; // 渐变速度
var loadingBackground = document.getElementById('loading_bg');
var loadingBox = document.getElementById('loading');
if (!loadingBackground || !loadingBox) {
return;
}
function fade() {
if (opacity <= 0) {
$('#loading').remove();
return;
}
loadingBackground.style.opacity = opacity;
loadingBox.style.opacity = opacity;
opacity -= fadeSpeed;
requestAnimationFrame(fade); // 使用requestAnimationFrame来提高动画性能
}
fade();
}

File diff suppressed because one or more lines are too long

106
config/js/returntop.js Normal file
View File

@@ -0,0 +1,106 @@
var scrolltotop={
//startline: Integer. Number of pixels from top of doc scrollbar is scrolled before showing control
//scrollto: Keyword (Integer, or "Scroll_to_Element_ID"). How far to scroll document up when control is clicked on (0=top).
setting: {startline:100, scrollto: 0, scrollduration:1000, fadeduration:[500, 100]},
controlHTML: '<button class="mdui-shadow-1 blur mdui-shadow-0 mdui-fab-fixed mdui-fab mdui-fab-mini"><i class="mdui-icon material-icons">keyboard_arrow_up</i></button>',
controlattrs: {offsetx:30, offsety:30}, //offset of control relative to right/ bottom of window corner
anchorkeyword: 'javascript:scroll(0,0)', //Enter href value of HTML anchors on the page that should also act as "Scroll Up" links
state: {isvisible:false, shouldvisible:false},
scrollup:function(){
if (!this.cssfixedsupport) //if control is positioned using JavaScript
this.$control.css({opacity:0}) //hide control immediately after clicking it
var dest=isNaN(this.setting.scrollto)? this.setting.scrollto : parseInt(this.setting.scrollto)
if (typeof dest=="string" && jQuery('#'+dest).length==1) //check element set by string exists
dest=jQuery('#'+dest).offset().top
else
dest=0
this.$body.animate({scrollTop: dest}, this.setting.scrollduration);
},
keepfixed:function(){
var $window=jQuery(window)
var controlx=$window.scrollLeft() + $window.width() - this.$control.width() - this.controlattrs.offsetx
var controly=$window.scrollTop() + $window.height() - this.$control.height() - this.controlattrs.offsety
this.$control.css({left:controlx+'px', top:controly+'px'})
},
togglecontrol:function(){
var scrolltop=jQuery(window).scrollTop()
if (!this.cssfixedsupport)
this.keepfixed()
this.state.shouldvisible=(scrolltop>=this.setting.startline)? true : false
if (this.state.shouldvisible && !this.state.isvisible){
this.$control.stop().animate({opacity:1}, this.setting.fadeduration[0])
this.state.isvisible=true
}
else if (this.state.shouldvisible==false && this.state.isvisible){
this.$control.stop().animate({opacity:0}, this.setting.fadeduration[1])
this.state.isvisible=false
}
},
init:function(){
jQuery(document).ready(function($){
var mainobj=scrolltotop
var iebrws=document.all
mainobj.cssfixedsupport=!iebrws || iebrws && document.compatMode=="CSS1Compat" && window.XMLHttpRequest //not IE or IE7+ browsers in standards mode
mainobj.$body=(window.opera)? (document.compatMode=="CSS1Compat"? $('html') : $('body')) : $('html,body')
mainobj.$control=$('<div id="topcontrol">'+mainobj.controlHTML+'</div>')
.css({position:mainobj.cssfixedsupport? 'fixed' : 'absolute', bottom:mainobj.controlattrs.offsety, right:mainobj.controlattrs.offsetx, opacity:0, cursor:'pointer'})
.attr({title:'Scroll to Top'})
.click(function(){mainobj.scrollup(); return false})
.appendTo('body')
if (document.all && !window.XMLHttpRequest && mainobj.$control.text()!='') //loose check for IE6 and below, plus whether control contains any text
mainobj.$control.css({width:mainobj.$control.width()}) //IE6- seems to require an explicit width on a DIV containing text
mainobj.togglecontrol()
$('a[href="' + mainobj.anchorkeyword +'"]').click(function(){
mainobj.scrollup()
return false
})
$(window).bind('scroll resize', function(e){
mainobj.togglecontrol()
})
})
}
}
scrolltotop.init()

64
config/js/smoothScoll.js Normal file
View File

@@ -0,0 +1,64 @@
(function() {
let scrollCurrent = window.scrollY || 0;
let velocity = 0;
let isAnimating = false;
const friction = 0.95;
const accelerationFactor = 0.05;
function animate() {
velocity *= friction;
// 计算新的滚动位置
const newScrollPosition = scrollCurrent + velocity;
// 获取文档最大可滚动高度
const maxScroll = document.documentElement.scrollHeight - window.innerHeight;
// 边界检查
if (newScrollPosition <= 0) {
scrollCurrent = 0;
velocity *= 0.5; // 触顶时快速减速
} else if (newScrollPosition >= maxScroll) {
scrollCurrent = maxScroll;
velocity *= 0.5; // 触底时快速减速
} else {
scrollCurrent = newScrollPosition;
}
window.scrollTo(0, scrollCurrent);
// 当速度足够小或触及边界时停止动画
if (Math.abs(velocity) > 0.5 && scrollCurrent > 0 && scrollCurrent < maxScroll) {
requestAnimationFrame(animate);
} else {
isAnimating = false;
}
}
window.addEventListener('wheel', function(e) {
e.preventDefault();
let delta = e.deltaY;
if (e.deltaMode === 1) {
delta *= 33;
} else if (e.deltaMode === 2) {
delta *= window.innerHeight;
}
// 获取当前滚动位置和最大滚动位置
const currentScroll = window.scrollY;
const maxScroll = document.documentElement.scrollHeight - window.innerHeight;
// 在边界处减小加速度
if ((currentScroll <= 0 && delta < 0) || (currentScroll >= maxScroll && delta > 0)) {
delta *= 0.3; // 在边界处降低滚动速度
}
velocity += delta * accelerationFactor;
if (!isAnimating) {
isAnimating = true;
requestAnimationFrame(animate);
}
}, { passive: false });
})();

34
config/js/tagIcon.js Normal file
View File

@@ -0,0 +1,34 @@
function updateIcon(filterValue) {
const iconElement = document.querySelector('.akarom-articletag-index .mdui-icon');
switch(filterValue) {
case 'article':
iconElement.textContent = 'blur_circular';
break;
case 'sms':
iconElement.textContent = 'tonality';
break;
default:
iconElement.textContent = 'panorama_fish_eye';
break;
}
}
// 默认过滤器
document.addEventListener('DOMContentLoaded', () => {
const savedFilter = localStorage.getItem('articleFilter') || 'all';
const filterElement = document.getElementById('filter' + savedFilter);
if (filterElement) {
filterElement.checked = true;
updateIcon(savedFilter);
}
});
document.querySelectorAll('input[name="filter"]').forEach(radio => {
radio.addEventListener('change', (e) => {
if (e.target.checked) {
const filterValue = e.target.value;
localStorage.setItem('articleFilter', filterValue);
updateIcon(filterValue);
}
});
});

6
config/mdui/css/mdui.min.css vendored Normal file

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,393 @@
Attribution 4.0 International
=======================================================================
Creative Commons Corporation ("Creative Commons") is not a law firm and
does not provide legal services or legal advice. Distribution of
Creative Commons public licenses does not create a lawyer-client or
other relationship. Creative Commons makes its licenses and related
information available on an "as-is" basis. Creative Commons gives no
warranties regarding its licenses, any material licensed under their
terms and conditions, or any related information. Creative Commons
disclaims all liability for damages resulting from their use to the
fullest extent possible.
Using Creative Commons Public Licenses
Creative Commons public licenses provide a standard set of terms and
conditions that creators and other rights holders may use to share
original works of authorship and other material subject to copyright
and certain other rights specified in the public license below. The
following considerations are for informational purposes only, are not
exhaustive, and do not form part of our licenses.
Considerations for licensors: Our public licenses are
intended for use by those authorized to give the public
permission to use material in ways otherwise restricted by
copyright and certain other rights. Our licenses are
irrevocable. Licensors should read and understand the terms
and conditions of the license they choose before applying it.
Licensors should also secure all rights necessary before
applying our licenses so that the public can reuse the
material as expected. Licensors should clearly mark any
material not subject to the license. This includes other CC-
licensed material, or material used under an exception or
limitation to copyright. More considerations for licensors:
wiki.creativecommons.org/Considerations_for_licensors
Considerations for the public: By using one of our public
licenses, a licensor grants the public permission to use the
licensed material under specified terms and conditions. If
the licensor's permission is not necessary for any reason--for
example, because of any applicable exception or limitation to
copyright--then that use is not regulated by the license. Our
licenses grant only permissions under copyright and certain
other rights that a licensor has authority to grant. Use of
the licensed material may still be restricted for other
reasons, including because others have copyright or other
rights in the material. A licensor may make special requests,
such as asking that all changes be marked or described.
Although not required by our licenses, you are encouraged to
respect those requests where reasonable. More_considerations
for the public:
wiki.creativecommons.org/Considerations_for_licensees
=======================================================================
Creative Commons Attribution 4.0 International Public License
By exercising the Licensed Rights (defined below), You accept and agree
to be bound by the terms and conditions of this Creative Commons
Attribution 4.0 International Public License ("Public License"). To the
extent this Public License may be interpreted as a contract, You are
granted the Licensed Rights in consideration of Your acceptance of
these terms and conditions, and the Licensor grants You such rights in
consideration of benefits the Licensor receives from making the
Licensed Material available under these terms and conditions.
Section 1 -- Definitions.
a. Adapted Material means material subject to Copyright and Similar
Rights that is derived from or based upon the Licensed Material
and in which the Licensed Material is translated, altered,
arranged, transformed, or otherwise modified in a manner requiring
permission under the Copyright and Similar Rights held by the
Licensor. For purposes of this Public License, where the Licensed
Material is a musical work, performance, or sound recording,
Adapted Material is always produced where the Licensed Material is
synched in timed relation with a moving image.
b. Adapter's License means the license You apply to Your Copyright
and Similar Rights in Your contributions to Adapted Material in
accordance with the terms and conditions of this Public License.
c. Copyright and Similar Rights means copyright and/or similar rights
closely related to copyright including, without limitation,
performance, broadcast, sound recording, and Sui Generis Database
Rights, without regard to how the rights are labeled or
categorized. For purposes of this Public License, the rights
specified in Section 2(b)(1)-(2) are not Copyright and Similar
Rights.
d. Effective Technological Measures means those measures that, in the
absence of proper authority, may not be circumvented under laws
fulfilling obligations under Article 11 of the WIPO Copyright
Treaty adopted on December 20, 1996, and/or similar international
agreements.
e. Exceptions and Limitations means fair use, fair dealing, and/or
any other exception or limitation to Copyright and Similar Rights
that applies to Your use of the Licensed Material.
f. Licensed Material means the artistic or literary work, database,
or other material to which the Licensor applied this Public
License.
g. Licensed Rights means the rights granted to You subject to the
terms and conditions of this Public License, which are limited to
all Copyright and Similar Rights that apply to Your use of the
Licensed Material and that the Licensor has authority to license.
h. Licensor means the individual(s) or entity(ies) granting rights
under this Public License.
i. Share means to provide material to the public by any means or
process that requires permission under the Licensed Rights, such
as reproduction, public display, public performance, distribution,
dissemination, communication, or importation, and to make material
available to the public including in ways that members of the
public may access the material from a place and at a time
individually chosen by them.
j. Sui Generis Database Rights means rights other than copyright
resulting from Directive 96/9/EC of the European Parliament and of
the Council of 11 March 1996 on the legal protection of databases,
as amended and/or succeeded, as well as other essentially
equivalent rights anywhere in the world.
k. You means the individual or entity exercising the Licensed Rights
under this Public License. Your has a corresponding meaning.
Section 2 -- Scope.
a. License grant.
1. Subject to the terms and conditions of this Public License,
the Licensor hereby grants You a worldwide, royalty-free,
non-sublicensable, non-exclusive, irrevocable license to
exercise the Licensed Rights in the Licensed Material to:
a. reproduce and Share the Licensed Material, in whole or
in part; and
b. produce, reproduce, and Share Adapted Material.
2. Exceptions and Limitations. For the avoidance of doubt, where
Exceptions and Limitations apply to Your use, this Public
License does not apply, and You do not need to comply with
its terms and conditions.
3. Term. The term of this Public License is specified in Section
6(a).
4. Media and formats; technical modifications allowed. The
Licensor authorizes You to exercise the Licensed Rights in
all media and formats whether now known or hereafter created,
and to make technical modifications necessary to do so. The
Licensor waives and/or agrees not to assert any right or
authority to forbid You from making technical modifications
necessary to exercise the Licensed Rights, including
technical modifications necessary to circumvent Effective
Technological Measures. For purposes of this Public License,
simply making modifications authorized by this Section 2(a)
(4) never produces Adapted Material.
5. Downstream recipients.
a. Offer from the Licensor -- Licensed Material. Every
recipient of the Licensed Material automatically
receives an offer from the Licensor to exercise the
Licensed Rights under the terms and conditions of this
Public License.
b. No downstream restrictions. You may not offer or impose
any additional or different terms or conditions on, or
apply any Effective Technological Measures to, the
Licensed Material if doing so restricts exercise of the
Licensed Rights by any recipient of the Licensed
Material.
6. No endorsement. Nothing in this Public License constitutes or
may be construed as permission to assert or imply that You
are, or that Your use of the Licensed Material is, connected
with, or sponsored, endorsed, or granted official status by,
the Licensor or others designated to receive attribution as
provided in Section 3(a)(1)(A)(i).
b. Other rights.
1. Moral rights, such as the right of integrity, are not
licensed under this Public License, nor are publicity,
privacy, and/or other similar personality rights; however, to
the extent possible, the Licensor waives and/or agrees not to
assert any such rights held by the Licensor to the limited
extent necessary to allow You to exercise the Licensed
Rights, but not otherwise.
2. Patent and trademark rights are not licensed under this
Public License.
3. To the extent possible, the Licensor waives any right to
collect royalties from You for the exercise of the Licensed
Rights, whether directly or through a collecting society
under any voluntary or waivable statutory or compulsory
licensing scheme. In all other cases the Licensor expressly
reserves any right to collect such royalties.
Section 3 -- License Conditions.
Your exercise of the Licensed Rights is expressly made subject to the
following conditions.
a. Attribution.
1. If You Share the Licensed Material (including in modified
form), You must:
a. retain the following if it is supplied by the Licensor
with the Licensed Material:
i. identification of the creator(s) of the Licensed
Material and any others designated to receive
attribution, in any reasonable manner requested by
the Licensor (including by pseudonym if
designated);
ii. a copyright notice;
iii. a notice that refers to this Public License;
iv. a notice that refers to the disclaimer of
warranties;
v. a URI or hyperlink to the Licensed Material to the
extent reasonably practicable;
b. indicate if You modified the Licensed Material and
retain an indication of any previous modifications; and
c. indicate the Licensed Material is licensed under this
Public License, and include the text of, or the URI or
hyperlink to, this Public License.
2. You may satisfy the conditions in Section 3(a)(1) in any
reasonable manner based on the medium, means, and context in
which You Share the Licensed Material. For example, it may be
reasonable to satisfy the conditions by providing a URI or
hyperlink to a resource that includes the required
information.
3. If requested by the Licensor, You must remove any of the
information required by Section 3(a)(1)(A) to the extent
reasonably practicable.
4. If You Share Adapted Material You produce, the Adapter's
License You apply must not prevent recipients of the Adapted
Material from complying with this Public License.
Section 4 -- Sui Generis Database Rights.
Where the Licensed Rights include Sui Generis Database Rights that
apply to Your use of the Licensed Material:
a. for the avoidance of doubt, Section 2(a)(1) grants You the right
to extract, reuse, reproduce, and Share all or a substantial
portion of the contents of the database;
b. if You include all or a substantial portion of the database
contents in a database in which You have Sui Generis Database
Rights, then the database in which You have Sui Generis Database
Rights (but not its individual contents) is Adapted Material; and
c. You must comply with the conditions in Section 3(a) if You Share
all or a substantial portion of the contents of the database.
For the avoidance of doubt, this Section 4 supplements and does not
replace Your obligations under this Public License where the Licensed
Rights include other Copyright and Similar Rights.
Section 5 -- Disclaimer of Warranties and Limitation of Liability.
a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE
EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS
AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,
IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,
WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,
ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT
KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT
ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE
TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,
INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,
COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR
USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN
ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR
DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR
IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
c. The disclaimer of warranties and limitation of liability provided
above shall be interpreted in a manner that, to the extent
possible, most closely approximates an absolute disclaimer and
waiver of all liability.
Section 6 -- Term and Termination.
a. This Public License applies for the term of the Copyright and
Similar Rights licensed here. However, if You fail to comply with
this Public License, then Your rights under this Public License
terminate automatically.
b. Where Your right to use the Licensed Material has terminated under
Section 6(a), it reinstates:
1. automatically as of the date the violation is cured, provided
it is cured within 30 days of Your discovery of the
violation; or
2. upon express reinstatement by the Licensor.
For the avoidance of doubt, this Section 6(b) does not affect any
right the Licensor may have to seek remedies for Your violations
of this Public License.
c. For the avoidance of doubt, the Licensor may also offer the
Licensed Material under separate terms or conditions or stop
distributing the Licensed Material at any time; however, doing so
will not terminate this Public License.
d. Sections 1, 5, 6, 7, and 8 survive termination of this Public
License.
Section 7 -- Other Terms and Conditions.
a. The Licensor shall not be bound by any additional or different
terms or conditions communicated by You unless expressly agreed.
b. Any arrangements, understandings, or agreements regarding the
Licensed Material not stated herein are separate from and
independent of the terms and conditions of this Public License.
Section 8 -- Interpretation.
a. For the avoidance of doubt, this Public License does not, and
shall not be interpreted to, reduce, limit, restrict, or impose
conditions on any use of the Licensed Material that could lawfully
be made without permission under this Public License.
b. To the extent possible, if any provision of this Public License is
deemed unenforceable, it shall be automatically reformed to the
minimum extent necessary to make it enforceable. If the provision
cannot be reformed, it shall be severed from this Public License
without affecting the enforceability of the remaining terms and
conditions.
c. No term or condition of this Public License will be waived and no
failure to comply consented to unless expressly agreed to by the
Licensor.
d. Nothing in this Public License constitutes or may be interpreted
as a limitation upon, or waiver of, any privileges and immunities
that apply to the Licensor or You, including from the legal
processes of any jurisdiction or authority.
=======================================================================
Creative Commons is not a party to its public licenses.
Notwithstanding, Creative Commons may elect to apply one of its public
licenses to material it publishes and in those instances will be
considered the "Licensor." Except for the limited purpose of indicating
that material is shared under a Creative Commons public license or as
otherwise permitted by the Creative Commons policies published at
creativecommons.org/policies, Creative Commons does not authorize the
use of the trademark "Creative Commons" or any other trademark or logo
of Creative Commons without its prior written consent including,
without limitation, in connection with any unauthorized modifications
to any of its public licenses or any other arrangements,
understandings, or agreements concerning use of licensed material. For
the avoidance of doubt, this paragraph does not form part of the public
licenses.
Creative Commons may be contacted at creativecommons.org.

File diff suppressed because one or more lines are too long

7
config/mdui/js/mdui.min.js vendored Normal file

File diff suppressed because one or more lines are too long

79
config/sidebar.php Normal file
View File

@@ -0,0 +1,79 @@
<?php
/**
_ _ __ _ ____ _ _ ___
/ \ | |/ / / \ / ___|| | | |_ _|
/ _ \ | ' / / _ \ \___ \| |_| || |
/ ___ \| . \ / ___ \ ___) | _ || |
/_/ \_\_|\_\/_/ \_\____/|_| |_|___|
* [Romanticism]
* sidebar.php 边栏菜单文件
* @version 2.1
**/
?>
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<!--Sidebar Start-->
<div class="mdui-drawer mdui-drawer-close blur" id="mainsidebar">
<div class="mdui-grid-tile sidebarimg" style="background-image: url('<?php if(empty($this->options->AKAROMsidebarimg)): ?><?php $this->options->themeUrl('config/style/img/default/sidebar.webp'); ?><?php else: ?><?php $this->options->AKAROMsidebarimg(); ?><?php endif; ?>');">
<img class="headicon" onclick="window.location.href='<?php $this->options ->siteUrl('/admin'); ?>'" title="headicon" src="<?php if(empty($this->options->AKAROMlogoUrl)): ?><?php $this->options->themeUrl('config/style/img/default/user.jpg'); ?><?php else: ?><?php $this->options->AKAROMlogoUrl(); ?><?php endif; ?>">
<div class="mdui-grid-tile-actions">
<h3 class="easysee chameleon">
<?php $this->options->title(); ?>
</h3>
<br>
<br>
</div>
</div>
<div class="mdui-container">
<div class="mdui-list yuan" mdui-collapse="{accordion: true}">
<div class="mdui-list">
<a href="<?php $this->options ->siteUrl(); ?>" class="btnyuan mdui-list-item ">
<i class="mdui-list-item-icon mdui-icon material-icons">store</i>
<div class="mdui-list-item-content">主页</div>
</a>
</div>
<div class="mdui-collapse-item">
<div class="mdui-collapse-item-header mdui-list-item btnyuan">
<i class="mdui-list-item-icon mdui-icon material-icons">book</i>
<div class="mdui-list-item-content">分类</div>
<i class="mdui-collapse-item-arrow mdui-icon material-icons">keyboard_arrow_down</i>
</div>
<div class="mdui-collapse-item-body">
<?php $this->widget('Widget_Metas_Category_List')->to($category); ?>
<?php while ($category->next()): ?>
<a href="<?php $category->permalink(); ?>" class="btnyuan mdui-list-item">
<div class="mdui-list-item-content"><?php $category->name(); ?></div>
<b><?php $category->count(); ?></b>
</a>
<?php endwhile; ?>
<div class="mdui-typo"><hr></div>
</div>
<div class="mdui-list">
<a href="<?php $this->options ->index(); ?>archivesbox.html" class="btnyuan mdui-list-item ">
<i class="mdui-list-item-icon mdui-icon material-icons">inbox</i>
<div class="mdui-list-item-content">文章归档</div>
</a>
<?php $this->widget('Widget_Contents_Page_List')->to($pages); ?>
<?php while($pages->next()): ?>
<a href="<?php $pages->permalink(); ?>" class="btnyuan mdui-list-item ">
<i class="mdui-list-item-icon mdui-icon material-icons">check_box_outline_blank</i>
<div class="mdui-list-item-content mdui-text-truncate"><?php $pages->title(); ?></div>
</a>
<?php endwhile; ?>
</div>
</div>
</div>
</div>
</div><!--Sidebar End-->

6
config/style/OwO.css Normal file
View File

@@ -0,0 +1,6 @@
.OwO-logo{float:left;cursor:pointer;font-weight:600;}
.OwO .OwO-body .OwO-items {overflow: auto;font-size: 0;text-align:left}
.OwO .OwO-body .OwO-items .OwO-item {padding: 5px 10px;display: inline-block;-webkit-transition: .3s;transition: .3s;cursor:pointer;}
.OwO .OwO-body .OwO-items .OwO-item img {width:30px;height:auto;box-shadow: none!important;}
.OwO .OwO-body .OwO-items .OwO-item:hover{transform:scale(1.3)}
.OwO.OwO-open>.OwO-body>.OwO-items{max-height:300px!important;margin:10px 0!important;padding:10px!important;transition: max-height .8s,margin .8s,padding .8s;}

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 85 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 181 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
config/style/img/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

900
config/style/jquery.fancybox.css vendored Normal file
View File

@@ -0,0 +1,900 @@
body.compensate-for-scrollbar {
overflow: hidden;
}
.fancybox-active {
height: auto;
}
.fancybox-is-hidden {
left: -9999px;
margin: 0;
position: absolute !important;
top: -9999px;
visibility: hidden;
}
.fancybox-container {
-webkit-backface-visibility: hidden;
height: 100%;
left: 0;
outline: none;
position: fixed;
-webkit-tap-highlight-color: transparent;
top: 0;
-ms-touch-action: manipulation;
touch-action: manipulation;
transform: translateZ(0);
width: 100%;
z-index: 99992;
}
.fancybox-container * {
box-sizing: border-box;
}
.fancybox-outer,
.fancybox-inner,
.fancybox-bg,
.fancybox-stage {
bottom: 0;
left: 0;
position: absolute;
right: 0;
top: 0;
}
.fancybox-outer {
-webkit-overflow-scrolling: touch;
overflow-y: auto;
}
.fancybox-bg {
background: rgb(30, 30, 30);
opacity: 0;
transition-duration: inherit;
transition-property: opacity;
transition-timing-function: cubic-bezier(.47, 0, .74, .71);
}
.fancybox-is-open .fancybox-bg {
opacity: .9;
transition-timing-function: cubic-bezier(.22, .61, .36, 1);
}
.fancybox-infobar,
.fancybox-toolbar,
.fancybox-caption,
.fancybox-navigation .fancybox-button {
direction: ltr;
opacity: 0;
position: absolute;
transition: opacity .25s ease, visibility 0s ease .25s;
visibility: hidden;
z-index: 99997;
}
.fancybox-show-infobar .fancybox-infobar,
.fancybox-show-toolbar .fancybox-toolbar,
.fancybox-show-caption .fancybox-caption,
.fancybox-show-nav .fancybox-navigation .fancybox-button {
opacity: 1;
transition: opacity .25s ease 0s, visibility 0s ease 0s;
visibility: visible;
}
.fancybox-infobar {
color: #ccc;
font-size: 13px;
-webkit-font-smoothing: subpixel-antialiased;
height: 44px;
left: 0;
line-height: 44px;
min-width: 44px;
mix-blend-mode: difference;
padding: 0 10px;
pointer-events: none;
top: 0;
-webkit-touch-callout: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.fancybox-toolbar {
right: 0;
top: 0;
}
.fancybox-stage {
direction: ltr;
overflow: visible;
transform: translateZ(0);
z-index: 99994;
}
.fancybox-is-open .fancybox-stage {
overflow: hidden;
}
.fancybox-slide {
-webkit-backface-visibility: hidden;
/* Using without prefix would break IE11 */
display: none;
height: 100%;
left: 0;
outline: none;
overflow: auto;
-webkit-overflow-scrolling: touch;
padding: 44px;
position: absolute;
text-align: center;
top: 0;
transition-property: transform, opacity;
white-space: normal;
width: 100%;
z-index: 99994;
}
.fancybox-slide::before {
content: '';
display: inline-block;
font-size: 0;
height: 100%;
vertical-align: middle;
width: 0;
}
.fancybox-is-sliding .fancybox-slide,
.fancybox-slide--previous,
.fancybox-slide--current,
.fancybox-slide--next {
display: block;
}
.fancybox-slide--image {
overflow: hidden;
padding: 44px 0;
}
.fancybox-slide--image::before {
display: none;
}
.fancybox-slide--html {
padding: 6px;
}
.fancybox-content {
background: #fff;
display: inline-block;
margin: 0;
max-width: 100%;
overflow: auto;
-webkit-overflow-scrolling: touch;
padding: 44px;
position: relative;
text-align: left;
vertical-align: middle;
}
.fancybox-slide--image .fancybox-content {
animation-timing-function: cubic-bezier(.5, 0, .14, 1);
-webkit-backface-visibility: hidden;
background: transparent;
background-repeat: no-repeat;
background-size: 100% 100%;
left: 0;
max-width: none;
overflow: visible;
padding: 0;
position: absolute;
top: 0;
-ms-transform-origin: top left;
transform-origin: top left;
transition-property: transform, opacity;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
z-index: 99995;
}
.fancybox-can-zoomOut .fancybox-content {
cursor: zoom-out;
}
.fancybox-can-zoomIn .fancybox-content {
cursor: zoom-in;
}
.fancybox-can-swipe .fancybox-content,
.fancybox-can-pan .fancybox-content {
cursor: -webkit-grab;
cursor: grab;
}
.fancybox-is-grabbing .fancybox-content {
cursor: -webkit-grabbing;
cursor: grabbing;
}
.fancybox-container [data-selectable='true'] {
cursor: text;
}
.fancybox-image,
.fancybox-spaceball {
background: transparent;
border: 0;
height: 100%;
left: 0;
margin: 0;
max-height: none;
max-width: none;
padding: 0;
position: absolute;
top: 0;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
width: 100%;
}
.fancybox-spaceball {
z-index: 1;
}
.fancybox-slide--video .fancybox-content,
.fancybox-slide--map .fancybox-content,
.fancybox-slide--pdf .fancybox-content,
.fancybox-slide--iframe .fancybox-content {
height: 100%;
overflow: visible;
padding: 0;
width: 100%;
}
.fancybox-slide--video .fancybox-content {
background: #000;
}
.fancybox-slide--map .fancybox-content {
background: #e5e3df;
}
.fancybox-slide--iframe .fancybox-content {
background: #fff;
}
.fancybox-video,
.fancybox-iframe {
background: transparent;
border: 0;
display: block;
height: 100%;
margin: 0;
overflow: hidden;
padding: 0;
width: 100%;
}
/* Fix iOS */
.fancybox-iframe {
left: 0;
position: absolute;
top: 0;
}
.fancybox-error {
background: #fff;
cursor: default;
max-width: 400px;
padding: 40px;
width: 100%;
}
.fancybox-error p {
color: #444;
font-size: 16px;
line-height: 20px;
margin: 0;
padding: 0;
}
/* Buttons */
.fancybox-button {
background: rgba(30, 30, 30, .6);
border: 0;
border-radius: 0;
box-shadow: none;
cursor: pointer;
display: inline-block;
height: 44px;
margin: 0;
padding: 10px;
position: relative;
transition: color .2s;
vertical-align: top;
visibility: inherit;
width: 44px;
}
.fancybox-button,
.fancybox-button:visited,
.fancybox-button:link {
color: #ccc;
}
.fancybox-button:hover {
color: #fff;
}
.fancybox-button:focus {
outline: none;
}
.fancybox-button.fancybox-focus {
outline: 1px dotted;
}
.fancybox-button[disabled],
.fancybox-button[disabled]:hover {
color: #888;
cursor: default;
outline: none;
}
/* Fix IE11 */
.fancybox-button div {
height: 100%;
}
.fancybox-button svg {
display: block;
height: 100%;
overflow: visible;
position: relative;
width: 100%;
}
.fancybox-button svg path {
fill: currentColor;
stroke-width: 0;
}
.fancybox-button--play svg:nth-child(2),
.fancybox-button--fsenter svg:nth-child(2) {
display: none;
}
.fancybox-button--pause svg:nth-child(1),
.fancybox-button--fsexit svg:nth-child(1) {
display: none;
}
.fancybox-progress {
background: #ff5268;
height: 2px;
left: 0;
position: absolute;
right: 0;
top: 0;
-ms-transform: scaleX(0);
transform: scaleX(0);
-ms-transform-origin: 0;
transform-origin: 0;
transition-property: transform;
transition-timing-function: linear;
z-index: 99998;
}
/* Close button on the top right corner of html content */
.fancybox-close-small {
background: transparent;
border: 0;
border-radius: 0;
color: #ccc;
cursor: pointer;
opacity: .8;
padding: 8px;
position: absolute;
right: -12px;
top: -44px;
z-index: 401;
}
.fancybox-close-small:hover {
color: #fff;
opacity: 1;
}
.fancybox-slide--html .fancybox-close-small {
color: currentColor;
padding: 10px;
right: 0;
top: 0;
}
.fancybox-slide--image.fancybox-is-scaling .fancybox-content {
overflow: hidden;
}
.fancybox-is-scaling .fancybox-close-small,
.fancybox-is-zoomable.fancybox-can-pan .fancybox-close-small {
display: none;
}
/* Navigation arrows */
.fancybox-navigation .fancybox-button {
background-clip: content-box;
height: 100px;
opacity: 0;
position: absolute;
top: calc(50% - 50px);
width: 70px;
}
.fancybox-navigation .fancybox-button div {
padding: 7px;
}
.fancybox-navigation .fancybox-button--arrow_left {
left: 0;
left: env(safe-area-inset-left);
padding: 31px 26px 31px 6px;
}
.fancybox-navigation .fancybox-button--arrow_right {
padding: 31px 6px 31px 26px;
right: 0;
right: env(safe-area-inset-right);
}
/* Caption */
.fancybox-caption {
background: linear-gradient(to top,
rgba(0, 0, 0, .85) 0%,
rgba(0, 0, 0, .3) 50%,
rgba(0, 0, 0, .15) 65%,
rgba(0, 0, 0, .075) 75.5%,
rgba(0, 0, 0, .037) 82.85%,
rgba(0, 0, 0, .019) 88%,
rgba(0, 0, 0, 0) 100%);
bottom: 0;
color: #eee;
font-size: 14px;
font-weight: 400;
left: 0;
line-height: 1.5;
padding: 75px 44px 25px 44px;
pointer-events: none;
right: 0;
text-align: center;
z-index: 99996;
}
@supports (padding: max(0px)) {
.fancybox-caption {
padding: 75px max(44px, env(safe-area-inset-right)) max(25px, env(safe-area-inset-bottom)) max(44px, env(safe-area-inset-left));
}
}
.fancybox-caption--separate {
margin-top: -50px;
}
.fancybox-caption__body {
max-height: 50vh;
overflow: auto;
pointer-events: all;
}
.fancybox-caption a,
.fancybox-caption a:link,
.fancybox-caption a:visited {
color: #ccc;
text-decoration: none;
}
.fancybox-caption a:hover {
color: #fff;
text-decoration: underline;
}
/* Loading indicator */
.fancybox-loading {
animation: fancybox-rotate 1s linear infinite;
background: transparent;
border: 4px solid #888;
border-bottom-color: #fff;
border-radius: 50%;
height: 50px;
left: 50%;
margin: -25px 0 0 -25px;
opacity: .7;
padding: 0;
position: absolute;
top: 50%;
width: 50px;
z-index: 99999;
}
@keyframes fancybox-rotate {
100% {
transform: rotate(360deg);
}
}
/* Transition effects */
.fancybox-animated {
transition-timing-function: cubic-bezier(0, 0, .25, 1);
}
/* transitionEffect: slide */
.fancybox-fx-slide.fancybox-slide--previous {
opacity: 0;
transform: translate3d(-100%, 0, 0);
}
.fancybox-fx-slide.fancybox-slide--next {
opacity: 0;
transform: translate3d(100%, 0, 0);
}
.fancybox-fx-slide.fancybox-slide--current {
opacity: 1;
transform: translate3d(0, 0, 0);
}
/* transitionEffect: fade */
.fancybox-fx-fade.fancybox-slide--previous,
.fancybox-fx-fade.fancybox-slide--next {
opacity: 0;
transition-timing-function: cubic-bezier(.19, 1, .22, 1);
}
.fancybox-fx-fade.fancybox-slide--current {
opacity: 1;
}
/* transitionEffect: zoom-in-out */
.fancybox-fx-zoom-in-out.fancybox-slide--previous {
opacity: 0;
transform: scale3d(1.5, 1.5, 1.5);
}
.fancybox-fx-zoom-in-out.fancybox-slide--next {
opacity: 0;
transform: scale3d(.5, .5, .5);
}
.fancybox-fx-zoom-in-out.fancybox-slide--current {
opacity: 1;
transform: scale3d(1, 1, 1);
}
/* transitionEffect: rotate */
.fancybox-fx-rotate.fancybox-slide--previous {
opacity: 0;
-ms-transform: rotate(-360deg);
transform: rotate(-360deg);
}
.fancybox-fx-rotate.fancybox-slide--next {
opacity: 0;
-ms-transform: rotate(360deg);
transform: rotate(360deg);
}
.fancybox-fx-rotate.fancybox-slide--current {
opacity: 1;
-ms-transform: rotate(0deg);
transform: rotate(0deg);
}
/* transitionEffect: circular */
.fancybox-fx-circular.fancybox-slide--previous {
opacity: 0;
transform: scale3d(0, 0, 0) translate3d(-100%, 0, 0);
}
.fancybox-fx-circular.fancybox-slide--next {
opacity: 0;
transform: scale3d(0, 0, 0) translate3d(100%, 0, 0);
}
.fancybox-fx-circular.fancybox-slide--current {
opacity: 1;
transform: scale3d(1, 1, 1) translate3d(0, 0, 0);
}
/* transitionEffect: tube */
.fancybox-fx-tube.fancybox-slide--previous {
transform: translate3d(-100%, 0, 0) scale(.1) skew(-10deg);
}
.fancybox-fx-tube.fancybox-slide--next {
transform: translate3d(100%, 0, 0) scale(.1) skew(10deg);
}
.fancybox-fx-tube.fancybox-slide--current {
transform: translate3d(0, 0, 0) scale(1);
}
/* Styling for Small-Screen Devices */
@media all and (max-height: 576px) {
.fancybox-slide {
padding-left: 6px;
padding-right: 6px;
}
.fancybox-slide--image {
padding: 6px 0;
}
.fancybox-close-small {
right: -6px;
}
.fancybox-slide--image .fancybox-close-small {
background: #4e4e4e;
color: #f2f4f6;
height: 36px;
opacity: 1;
padding: 6px;
right: 0;
top: 0;
width: 36px;
}
.fancybox-caption {
padding-left: 12px;
padding-right: 12px;
}
@supports (padding: max(0px)) {
.fancybox-caption {
padding-left: max(12px, env(safe-area-inset-left));
padding-right: max(12px, env(safe-area-inset-right));
}
}
}
/* Share */
.fancybox-share {
background: #f4f4f4;
border-radius: 3px;
max-width: 90%;
padding: 30px;
text-align: center;
}
.fancybox-share h1 {
color: #222;
font-size: 35px;
font-weight: 700;
margin: 0 0 20px 0;
}
.fancybox-share p {
margin: 0;
padding: 0;
}
.fancybox-share__button {
border: 0;
border-radius: 3px;
display: inline-block;
font-size: 14px;
font-weight: 700;
line-height: 40px;
margin: 0 5px 10px 5px;
min-width: 130px;
padding: 0 15px;
text-decoration: none;
transition: all .2s;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
white-space: nowrap;
}
.fancybox-share__button:visited,
.fancybox-share__button:link {
color: #fff;
}
.fancybox-share__button:hover {
text-decoration: none;
}
.fancybox-share__button--fb {
background: #3b5998;
}
.fancybox-share__button--fb:hover {
background: #344e86;
}
.fancybox-share__button--pt {
background: #bd081d;
}
.fancybox-share__button--pt:hover {
background: #aa0719;
}
.fancybox-share__button--tw {
background: #1da1f2;
}
.fancybox-share__button--tw:hover {
background: #0d95e8;
}
.fancybox-share__button svg {
height: 25px;
margin-right: 7px;
position: relative;
top: -1px;
vertical-align: middle;
width: 25px;
}
.fancybox-share__button svg path {
fill: #fff;
}
.fancybox-share__input {
background: transparent;
border: 0;
border-bottom: 1px solid #d7d7d7;
border-radius: 0;
color: #5d5b5b;
font-size: 14px;
margin: 10px 0 0 0;
outline: none;
padding: 10px 15px;
width: 100%;
}
/* Thumbs */
.fancybox-thumbs {
background: #ddd;
bottom: 0;
display: none;
margin: 0;
-webkit-overflow-scrolling: touch;
-ms-overflow-style: -ms-autohiding-scrollbar;
padding: 2px 2px 4px 2px;
position: absolute;
right: 0;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
top: 0;
width: 212px;
z-index: 99995;
}
.fancybox-thumbs-x {
overflow-x: auto;
overflow-y: hidden;
}
.fancybox-show-thumbs .fancybox-thumbs {
display: block;
}
.fancybox-show-thumbs .fancybox-inner {
right: 212px;
}
.fancybox-thumbs__list {
font-size: 0;
height: 100%;
list-style: none;
margin: 0;
overflow-x: hidden;
overflow-y: auto;
padding: 0;
position: absolute;
position: relative;
white-space: nowrap;
width: 100%;
}
.fancybox-thumbs-x .fancybox-thumbs__list {
overflow: hidden;
}
.fancybox-thumbs-y .fancybox-thumbs__list::-webkit-scrollbar {
width: 7px;
}
.fancybox-thumbs-y .fancybox-thumbs__list::-webkit-scrollbar-track {
background: #fff;
border-radius: 10px;
box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
}
.fancybox-thumbs-y .fancybox-thumbs__list::-webkit-scrollbar-thumb {
background: #2a2a2a;
border-radius: 10px;
}
.fancybox-thumbs__list a {
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
background-color: rgba(0, 0, 0, .1);
background-position: center center;
background-repeat: no-repeat;
background-size: cover;
cursor: pointer;
float: left;
height: 75px;
margin: 2px;
max-height: calc(100% - 8px);
max-width: calc(50% - 4px);
outline: none;
overflow: hidden;
padding: 0;
position: relative;
-webkit-tap-highlight-color: transparent;
width: 100px;
}
.fancybox-thumbs__list a::before {
border: 6px solid #ff5268;
bottom: 0;
content: '';
left: 0;
opacity: 0;
position: absolute;
right: 0;
top: 0;
transition: all .2s cubic-bezier(.25, .46, .45, .94);
z-index: 99991;
}
.fancybox-thumbs__list a:focus::before {
opacity: .5;
}
.fancybox-thumbs__list a.fancybox-thumbs-active::before {
opacity: 1;
}
/* Styling for Small-Screen Devices */
@media all and (max-width: 576px) {
.fancybox-thumbs {
width: 110px;
}
.fancybox-show-thumbs .fancybox-inner {
right: 110px;
}
.fancybox-thumbs__list a {
max-width: calc(100% - 10px);
}
}
.code-toolbar{
border-radius: 15px;
clip-path: inset(0 round 10px);
}

View File

@@ -0,0 +1,4 @@
/* PrismJS 1.29.0
https://prismjs.com/download.html#themes=prism-tomorrow&languages=markup+css+clike+javascript+c+csharp+cpp+go+java+markup-templating+php+python&plugins=toolbar+copy-to-clipboard */
code[class*=language-],pre[class*=language-]{color:#ccc;background:0 0;font-family:Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto}:not(pre)>code[class*=language-],pre[class*=language-]{background:#2d2d2d}:not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}.token.block-comment,.token.cdata,.token.comment,.token.doctype,.token.prolog{color:#999}.token.punctuation{color:#ccc}.token.attr-name,.token.deleted,.token.namespace,.token.tag{color:#e2777a}.token.function-name{color:#6196cc}.token.boolean,.token.function,.token.number{color:#f08d49}.token.class-name,.token.constant,.token.property,.token.symbol{color:#f8c555}.token.atrule,.token.builtin,.token.important,.token.keyword,.token.selector{color:#cc99cd}.token.attr-value,.token.char,.token.regex,.token.string,.token.variable{color:#7ec699}.token.entity,.token.operator,.token.url{color:#67cdcc}.token.bold,.token.important{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}.token.inserted{color:green}
div.code-toolbar{position:relative;border-radius: 15px;}div.code-toolbar>.toolbar{position:absolute;z-index:10;top:.3em;right:.2em;transition:opacity .3s ease-in-out;opacity:0}div.code-toolbar:hover>.toolbar{opacity:1}div.code-toolbar:focus-within>.toolbar{opacity:1}div.code-toolbar>.toolbar>.toolbar-item{display:inline-block}div.code-toolbar>.toolbar>.toolbar-item>a{cursor:pointer}div.code-toolbar>.toolbar>.toolbar-item>button{background:0 0;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;padding:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}div.code-toolbar>.toolbar>.toolbar-item>a,div.code-toolbar>.toolbar>.toolbar-item>button,div.code-toolbar>.toolbar>.toolbar-item>span{color:#bbb;font-size:.8em;padding:0 .5em;background:#f5f2f0;background:rgba(224,224,224,.2);box-shadow:0 2px 0 0 rgba(0,0,0,.2);border-radius:.5em}div.code-toolbar>.toolbar>.toolbar-item>a:focus,div.code-toolbar>.toolbar>.toolbar-item>a:hover,div.code-toolbar>.toolbar>.toolbar-item>button:focus,div.code-toolbar>.toolbar>.toolbar-item>button:hover,div.code-toolbar>.toolbar>.toolbar-item>span:focus,div.code-toolbar>.toolbar>.toolbar-item>span:hover{color:inherit;text-decoration:none}

View File

@@ -0,0 +1,754 @@
/**
_ _ __ _ ____ _ _ ___
/ \ | |/ / / \ / ___|| | | |_ _|
/ _ \ | ' / / _ \ \___ \| |_| || |
/ ___ \| . \ / ___ \ ___) | _ || |
/_/ \_\_|\_\/_/ \_\____/|_| |_|___|
* [Romanticism]
* romanticism.aka.css 主样式表文件
* @version 2.1
* @link https://imakashi.eu.org/
**/
body{
font-family: 'Noto Serif SC', serif;
font-weight:400;
font-display: swap;
}
html::-webkit-scrollbar {
display: none;
}
.mdui-theme-layout-light .LDtrans{
background-color: Seashell;
transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}
.mdui-theme-layout-dark .LDtrans{
background-color: #303030;
}
.mdui-appbar{
transition: background-color 0.3s ease-in-out;
}
.mdui-card{
transition: all 0.3s ease-in-out;
}
/*高斯模糊效果*/
.blur{
backdrop-filter: saturate(180%) blur(15px);
-webkit-backdrop-filter: saturate(180%) blur(15px);
}
.mdui-theme-layout-light .blur{
background: rgba(255, 255, 255, 0.72);
}
.mdui-theme-layout-dark .blur{
background: rgba(58, 58, 58, 0.72);
}
.mdui-overlay{
backdrop-filter: saturate(100%) blur(20px);
-webkit-backdrop-filter: saturate(100%) blur(20px);
}
.mdui-tooltip, .mdui-snackbar{
backdrop-filter: saturate(180%) blur(15px);
-webkit-backdrop-filter: saturate(180%) blur(15px);
box-shadow: 0 0 2px black;
}
.mdui-theme-layout-light .mdui-tooltip{
background: rgba(255, 255, 255, 0.72);
color:#252525;
}
.mdui-theme-layout-dark .mdui-tooltip{
background: rgba(69, 69, 69, 0.72);
color:#f0f0f0;
}
.mdui-theme-layout-light .mdui-snackbar{
background: rgba(255, 255, 255, 0.72);
color:#252525;
font-weight: bold;
}
.mdui-theme-layout-dark .mdui-snackbar{
background: rgba(69, 69, 69, 0.72);
color:#f0f0f0;
font-weight: bold;
}
/*加载动画*/
#loading {
width: 100%;
height: 100%;
font-size: 30px;
margin: 0;
text-align: center;
border-radius: 0;
position: fixed;
left: 0;
right: 0;
top: 0;
z-index: 9999
}
.loader {
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 100%;
}
.loader-box {
transform: translateY(-50%);
top: 50%;
position: absolute;
width: calc(100% - 200px);
padding: 0 100px;
text-align: center;
}
.loader-box .mdui-spinner{
width: 50px;
height: 50px;
}
/*圆角设置*/
.yuan, .mdui-snackbar{
border-radius: 14px;
}
.btnyuan{
border-radius: 8px;
}
.mdui-tooltip{
border-radius: 8px;
}
@media(max-width:420px){
.yuan, .mdui-snackbar{
border-radius: 10px;
}
.btnyuan{
border-radius: 6px;
}
.mdui-tooltip{
border-radius: 8px;
}
}
/*进入动画*/
.toup{
animation-name: toup;
animation-duration: .5s;
}
@keyframes toup{
from {filter: blur(20px);}
to {filter: blur(0);}
}
.show{
animation-name: show;
animation-duration: .5s;
}
@keyframes show{
from {filter: blur(20px);}
to {filter: blur(0);}
}
/*首页主题图*/
.indeximg{
background-repeat:no-repeat;
background-position: center;
background-size: cover;
-webkit-background-size: cover;
-o-background-size: cover;
}
.indeximgcard{
width:auto;
height:85vh;
min-height:420px;
}
/* 置顶容器 */
.sticky-container {
position: relative;
width: 100%;
height:200px;
overflow-x: auto;
overflow-y: hidden;
white-space: nowrap;
-webkit-overflow-scrolling: touch;
}
.sticky-container::-webkit-scrollbar {
height: 8px;
}
.sticky-container::-webkit-scrollbar-thumb {
background: rgba(128, 128, 128, 0.3);
border-radius: 5px;
}
.sticky-item {
display: inline-block;
width: 320px;
height: 100%;
margin-right: 8px;
background-color: #f0f0f0;
text-align: center;
}
.sticky-item .mdui-card-media-covered{
display: flex;
align-items: center;
justify-content: center;
height: 100%;
}
.sticky-item img{
object-fit: cover;
object-position: center;
width: 320px;
height:170px;
}
.sticky-item .mdui-card-primary {
margin-top: -20px;
}
.sticky-item .mdui-card-primary-title{
white-space: normal;
word-wrap: break-word;
word-break: break-word;
overflow-wrap: break-word;
line-height: 24px;
}
.sticky-item .mdui-card-primary-title h5{
margin-bottom:5px;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
}
.sticky-item .mdui-card-media-covered{
height: 100%;
}
.sticky-wrapper {
position: relative;
width: 100%;
isolation: isolate;
}
.sticky-badge {
position: absolute;
top: -10px;
right: -10px;
width: auto;
min-width: 40px;
height: 40px;
border-radius: 20px;
display: flex;
align-items: center;
justify-content: center;
z-index: 99;
}
.sticky-badge i{
transform: rotate(-30deg);
}
@media (max-width:500px){
.sticky-item {
width: 200px;
}
.sticky-item img{
width: 200px;
}
}
/*主页文章列表容器*/
.indexlistbox{
margin-top:-180px;
}
.indexlistbox h3{
margin-top: 5px;
margin-bottom: 5px;
}
.indexlistbox h4{
margin-top: 5px;
margin-bottom: 5px;
}
.indexlistbox h5{
margin-top: 10px;
}
@media (max-width:420px){
.indexlistbox{
margin-top: -180px;
}
}
@media (max-height:800px){
.indexlistbox{
margin-top: -150px;
}
}
.indexinfobox{
margin-bottom: 20px;
padding: 10px;
padding-top: 15px;
padding-bottom: 15px;
line-height: 20px;
}
/*主页文章列表卡片*/
.articlelistcard{
width:auto;
height:auto;
min-height:250px;
}
.articlelistimg{
background-repeat:no-repeat;
background-position: center;
background-size: cover;
-webkit-background-size: cover;
-o-background-size: cover;
}
.articlelistcard .mdui-card-primary-title{
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 4;
overflow: hidden;
}
.articlelistcard .mdui-card-primary-title span{
padding-left: 100px;
}
.articlelistcard .mdui-card-primary-title h4{
line-height: 30px;
}
.articlesms .mdui-card-content{
margin-top: -20px;
}
.mdui-theme-layout-dark .articlesms img{
filter: brightness(80%);
}
.titlegap{
letter-spacing: 2px;
font-weight:900;
}
#mainsidebar .mdui-grid-tile{
height: 170px;
width: auto;
}
.sidebarimg{
background-repeat:no-repeat;
background-position: center;
background-size: cover;
-webkit-background-size: cover;
-o-background-size: cover;
}
#mainsidebar .headicon{
position: absolute;
top: 15%;
left: 24px;
width: 60px;
height: 60px;
border: 3px solid rgb(255, 255, 255);
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.53);
border-radius: 50%;
}
li{
list-style: none;
}
a{
text-decoration: none;
}
a:hover{
text-decoration: none;
}
::-moz-selection{background:#ecf0f1; color:CornflowerBlue;}
::selection {background:#ecf0f1; color:CornflowerBlue;}
.chameleon {
transition: color 0.3s ease-in-out;
}
.chameleon:hover {
color: CornflowerBlue;
}
.akarom-alter-button-valign{
display: flex;
align-items: center;
justify-content: center;
background: none;
border: none;
}
.akarom-alter-button{
border: 2px solid rgba(158, 158, 158, 0.3);
padding:6px;
transition: all 0.3s ease-in-out;
background: none;
padding-left: 10px;
padding-right: 12px;
}
.akarom-alter-button:hover{
filter: blur(2px);
transform: scale(1.01);
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
position: relative;
}
.akarom-alter-button-disabled{
opacity: .5;
}
.akarom-alter-button-disabled:hover{
filter: none;
transform: none;
box-shadow: none;
position: none;
}
.akarom-alter-button i{
margin-bottom: 3px;
margin-right: 8px;
opacity: .8;
}
.akarom-hoverable{
padding: 6px;
transition: all 0.3s ease-in-out;
border-radius: 6px;
user-select: none;
-webkit-user-select: none;
-moz-user-select: none;
}
.akarom-hoverable:hover{
background-color: rgba(158, 158, 158, 0.2);
}
.title{
font-family: 'Noto Serif SC', serif;
font-weight:900;
text-decoration: none;
}
.subtitle{
font-size: 15px;
}
.underline{
border-bottom: 2px solid transparent;
transition: all 0.3s ease-in-out;
}
.underline:hover {
border-bottom: 2px solid;
}
.easysee{
text-shadow: 0 1px 3px black;
}
/*上下翻页颜色*/
.mdui-theme-layout-light .prev{
color:#252525;
}
.mdui-theme-layout-dark .prev{
color:white;
}
.mdui-theme-layout-light .next{
color:#252525;
}
.mdui-theme-layout-dark .next{
color:white;
}
/*独立页面主题图*/
.articlecard{
width:auto;
height:auto;
display: block;
min-height: 600px;
padding-top: 20px;
color: white;
position: relative;
background: none;
}
.mdui-theme-layout-dark .articlecard{
background: none;
}
.articlecard .articlecardimg{
background-repeat:no-repeat;
background-position: center;
background-size: cover;
-webkit-background-size: cover;
-o-background-size: cover;
width: 100%;
height: 100%;
position: absolute;
top:0;
left: 0;
z-index: -2;
}
.articlecard .articlecardshadow{
background-color: #252525;
width: 100%;
height: 100%;
position: absolute;
top:0;
left: 0;
z-index: -1;
opacity: .2;
}
@media (max-width:420px){
.articlecard{
min-height: 400px;
}
}
.articlecard .mdui-card-primary-title{
line-height: 45px;
}
/*文章内排版格式*/
p{
font-size: 18px;
}
.mdui-typo h1{
position: relative;
white-space: nowrap;
font-weight:900;
z-index:9 !important;
}
.mdui-typo h1::before {
content: "";
position: absolute;
height: 14px;
width: 66px;
bottom: 2px;
z-index:-1;
background-color: CornflowerBlue;
opacity: 0.5;
transform: skew(-35deg);
transition: opacity .2s ease-in-out;
border-radius: 3px 8px 10px 6px;
transition: 0.1s ease background-color;
}
.mdui-typo h3{
font-weight:900;
}
.mdui-typo h4{
font-weight:900;
}
.mdui-typo h2{
position: relative;
white-space: nowrap;
font-weight:900;
z-index:9 !important;
}
.mdui-typo h2::before {
content: "";
position: absolute;
height: 12px;
width: 66px;
bottom: 0;
z-index:-1;
background-color: lightblue;
opacity: 0.5;
transform: skew(-35deg);
transition: opacity .2s ease-in-out;
border-radius: 3px 8px 10px 6px;
transition: 0.1s ease background-color;
}
.mdui-typo h3{
font-weight:900;
}
.article hr{
width:66%;
border:none;
border-top:6px dashed rgba(158, 158, 158, 0.2);;
}
.hr hr{
width:100%;
margin: 0 auto;
border:none;
border-top:2px dashed rgba(158, 158, 158, 0.2);;
}
.article img{
height:anto;
width:100%;
}
.mdui-theme-layout-dark .article img{
filter: brightness(80%);
}
.mdui-theme-layout-dark .mdui-panel-item{
background-color:#3c3c3c;
}
.copyright{
font-size: 14px;
}
#comments .headicon{
border: 2px solid white;
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.53);
}
#comments .adminsign{
display:inline-block;
padding: 0;
padding-left:3px;
padding-right:3px;
margin-left: 8px;
font-size: 13px;
border: 3px solid rgba(136, 132, 132, 0.3);
}
#comments .comment-parent{
margin-top: 30px;
}
.fancybox {
text-decoration: none;
}
.outlineborder{
padding:10px;
border-radius:10px;
display:inline-block;
border: 2px solid rgba(136, 132, 132, 0.199);
line-height: 25px;
margin-bottom: 5px;
}
.link img{
height:70%;
width:70%;
border: 5px solid rgb(255, 255, 255);
}
.comment-ua-second{
margin-right: -5px;
}
/* 文章tag筛选样式 */
.akarom-articletag{
position: fixed;
bottom: 30px;
left: 30px;
opacity: 1;
z-index: 99;
width:40px;
transition: all 0.3s ease-in-out;
height:40px;
border-radius: 20px;
overflow:hidden;
display: flex;
align-items: center;
cursor: pointer;
}
.akarom-articletag:hover{
width:205px;
}
.akarom-articletag .mdui-icon{
padding-left: 8px;
}
.akarom-articletag.akarom-articletag-style:hover{
width:238px;
}
.akarom-articletag-options{
display: flex;
align-items: center;
justify-content: center;
gap: 5px;
font-size: 16px;
white-space: nowrap;
transform: translateX(-100%);
opacity: 0;
filter: blur(15px);
transition: all 0.45s ease-in-out;
}
.akarom-articletag:hover .akarom-articletag-options{
transform: translateX(0);
opacity: 1;
filter: blur(0);
margin-left: 8px;
}
.akarom-articletag input[type="radio"] {
display: none;
}
.akarom-articletag input[type="radio"]:checked + .filter-btn {
color: #6495ed;
font-weight: bold;
}
@media (max-width:1024px){
.akarom-articletag{
bottom: 15px;
left: 15px;
}
}
.tagnotice{
text-shadow: 0 0 3px #fff;
}
.taglist,
.tagnotice{
display: none;
animation: tagfadein 0.3s;
}
/* 首页文章筛选 */
body:has(#filterall:checked) .LDtrans .taglist,
body:has(#filterarticle:checked) .LDtrans .taglist.tagarticle,
body:has(#filtersms:checked) .LDtrans .taglist.tagsms{
display: block;
animation: tagfadein 0.3s;
}
body:has(#filterarticle:checked) .LDtrans .tagnotice-article,
body:has(#filtersms:checked) .LDtrans .tagnotice-sms{
display: block;
animation: tagfadein 0.3s;
}
@keyframes tagfadein {
from { opacity: 0; filter:blur(20px);}
to { opacity: 1; filter:blur(0px);}
}
.notfoundpage{
height:80vh;
}
.notfound-box{
height:60vh;
width:auto;
}
.notfoundpage span{
opacity: .1;
font-size: 114px;
position:absolute;
margin-top:-50px;
font-weight: bold;
}
.akarom-rewardbox{
display: inline-flex;
align-items: center;
justify-content: center;
padding: 10px;
height: auto;
width: auto;
}
.akarom-rewardbox img{
max-height: 78vh;
margin: 0 auto;
display: block;
}
/*aplayer适配深色模式*/
.mdui-theme-layout-light .aplayer{
background-color: #ffffff;
transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}
.mdui-theme-layout-dark .aplayer{
background-color: #404040;
}
.aplayer{
border-radius:10px;
}
.aplayer-lrc::before{
opacity: 0.01;
}
.mdui-theme-layout-dark .aplayer-lrc::after{
background: linear-gradient(rgba(235, 229, 229, 0) 0px, rgba(59, 59, 59, 0.8));
}
/*aplayer适配深色模式*/
/*musenxi livephoto*/
.lpk-live-photo-player{
border-radius:8px;
overflow: hidden;
}
/*musenxi livephoto*/

372
functions.php Normal file
View File

@@ -0,0 +1,372 @@
<?php
/**
_ _ __ _ ____ _ _ ___
/ \ | |/ / / \ / ___|| | | |_ _|
/ _ \ | ' / / _ \ \___ \| |_| || |
/ ___ \| . \ / ___ \ ___) | _ || |
/_/ \_\_|\_\/_/ \_\____/|_| |_|___|
* [Romanticism]
* functions.php 主题基本配置文件
* @version 2.1
* @link https://imakashi.eu.org/
**/
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
function themeConfig($form) { //后台设置界面
?>
<style type="text/css">
hr{
width:100%;
border:none;
border-top:2px dashed #DCDCDC;
}
img{
height:75px;
margin-bottom: -5px;
margin-right: -10px;
}
</style>
<h1><img src="<?php echo Helper::options()->themeUrl.'/config/style/img/icon.png'; ?>">主题设置</h1>
<p><button id="checkUpdateBtn" class="btn">检查更新</button> · 当前版本: 2.1 · <a href="https://github.com/akashiwest/Romanticism" target="_blank">Github 文档</a></p>
<div id="updateStatus"></div>
<script>
document.addEventListener('DOMContentLoaded', function() {
const checkUpdateBtn = document.getElementById('checkUpdateBtn');
const updateStatus = document.getElementById('updateStatus');
checkUpdateBtn.addEventListener('click', function() {
updateStatus.innerHTML = "<p><b>检查更新中...</b></p>";
checkUpdateBtn.disabled = true;
fetch('<?php echo Helper::options()->themeUrl.'/update.php'; ?>')
.then(response => response.json())
.then(data => {
if (data.error) {
updateStatus.innerHTML = `<p style="color:Crimson;"><b>${data.error}</b></p>`;
checkUpdateBtn.disabled = false;
} else {
if (data.current_version !== data.latest_version) {
checkUpdateBtn.disabled = false;
updateStatus.innerHTML = `
<p><b>最新版本:</b> ${data.latest_version}</p>
<p><b>更新内容:</b> ${data.feature}</p>
<p><a href="${data.update_url}" target="_blank"><b>点击下载更新</b></a></p>
`;
} else {
updateStatus.innerHTML = `<p style="color:ForestGreen;"><b>当前已是最新版本</b></p>`;
checkUpdateBtn.disabled = false;
}
}
})
.catch(error => {
updateStatus.innerHTML = `<p style="color:Crimson;"><b>检查更新失败: ${error.message}</b></p>`;
checkUpdateBtn.disabled = false;
});
});
});
</script>
<style>
button.primary{
position: fixed;
bottom: 50px;
left: 50px;
z-index: 99;
}
@media(max-width:500px){
button.primary{
position: fixed;
bottom: 20px;
left: 20px;
max-width: 100px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
}
</style>
<hr>
<p>请前往Typecho自带的设置界面来设置博客名称与描述。</p>
<?php
$AKAROMlogoUrl = new Typecho_Widget_Helper_Form_Element_Text('AKAROMlogoUrl', NULL, NULL, _t('设置您的头像'), _t('在这里填入一个图片 url 地址,将会显示在侧边栏上部。'));
$form->addInput($AKAROMlogoUrl);
$AKAROMindeximg = new Typecho_Widget_Helper_Form_Element_Text('AKAROMindeximg', NULL, NULL, _t('设置首页主题图'), _t('在这里填入一个图片 url 地址。'));
$form->addInput($AKAROMindeximg);
$AKAROMsidebarimg = new Typecho_Widget_Helper_Form_Element_Text('AKAROMsidebarimg', NULL, NULL, _t('设置侧边栏顶图'), _t('在这里填入一个图片 url 地址,将会显示在侧边栏上部。'));
$form->addInput($AKAROMsidebarimg);
$AKAROMsign = new Typecho_Widget_Helper_Form_Element_Text('AKAROMsign', NULL, NULL, _t('设置网站图标'), _t('在这里填入一个图片 url 地址,将会显示在浏览器标签栏。'));
$form->addInput($AKAROMsign);
$AKAROMinfobox = new Typecho_Widget_Helper_Form_Element_Text('AKAROMinfobox', NULL, NULL, _t('设置公告'), _t('输入一些公告或通知,将会显示在首页。'));
$form->addInput($AKAROMinfobox);
$AKAROMsticky = new Typecho_Widget_Helper_Form_Element_Text('AKAROMsticky', NULL, NULL, _t('置顶文章'), _t('填入文章的 cid多个数值以半角逗号分隔。例如21,15,3'));
$form->addInput($AKAROMsticky);
$AKAROMLinksterms = new Typecho_Widget_Helper_Form_Element_Textarea('AKAROMLinksterms', NULL, NULL, _t('设置交换友情链接的要求'), _t('此段文字将会显示在"友情链接页"<br>您可以填入例如 <b>1.不接受违法站点2.先友后链</b> 等信息。<br><b>注意:</b>请先创建一个空页面,在自定义模板中选择"友情链接页"。'));
$form->addInput($AKAROMLinksterms);
$AKAROMLinkstermsUrl = new Typecho_Widget_Helper_Form_Element_Text('AKAROMLinkstermsUrl', NULL, NULL, _t('设置交换友链的本站链接'), _t('供申请友链的朋友填写,可以是个人主页而不是此博客页面。'));
$form->addInput($AKAROMLinkstermsUrl);
$AKAROMrewardimg = new Typecho_Widget_Helper_Form_Element_Text('AKAROMrewardimg', NULL, NULL, _t('设置赞赏图片'), _t('可填入收款码等图片的 url 地址,会出现在文章界面末尾。不填则不显示。'));
$form->addInput($AKAROMrewardimg);
$AKAROMfootericp = new Typecho_Widget_Helper_Form_Element_Text('AKAROMfootericp', NULL, NULL, _t('设置页脚备案信息'), _t('此处填入的信息将会显示在页脚备案信息区,请依据博客情况填写。不填则不显示备案信息。可以使用 html 标签'));
$form->addInput($AKAROMfootericp);
$AKAROMfucset = new Typecho_Widget_Helper_Form_Element_Checkbox('AKAROMfucset',
array('AKAROMindexloading' => _t('开启此选项将会在站点加载时显示加载动画。')),
array('AKAROMindexloading'), _t('首页加载动画'));
$form->addInput($AKAROMfucset->multiMode());
$AKAROMcustomCss = new Typecho_Widget_Helper_Form_Element_Textarea('AKAROMcustomCss', NULL, NULL, _t('自定义 CSS 代码'), _t('输入自定义的 CSS 代码,优先级为高'));
$form->addInput($AKAROMcustomCss);
$AKAROMcustomJs = new Typecho_Widget_Helper_Form_Element_Textarea('AKAROMcustomJs', NULL, NULL, _t('自定义 JS 代码(页脚)'), _t('可以在此处添加访客统计等 JavaScript 代码'));
$form->addInput($AKAROMcustomJs);
}
function themeFields($layout) { //文章自定义字段功能
$AKAROMarticleimg = new Typecho_Widget_Helper_Form_Element_Text('AKAROMarticleimg', NULL, NULL, _t('设置文章封面图'), _t('在这里填入一个图片 URL 地址。如未设置封面图将会自动显示随机图片。'));
$layout->addItem($AKAROMarticleimg);
$AKAROMarticleCopyright = new Typecho_Widget_Helper_Form_Element_Select('AKAROMarticleCopyright', array(
'SA' => 'CC BY-NC-SA 版权协议',
'ND' => 'CC BY-NC-ND 版权协议',
'BAN' => '禁止转载',
'hide' => '不显示'
), 'show', _t('版权声明'), _t('将会在文章底部显示版权声明。选择你需要的版权种类'));
$layout->addItem($AKAROMarticleCopyright);
$AKAROMarticleSMS = new Typecho_Widget_Helper_Form_Element_Select('AKAROMarticleSMS', array(
'default' => '长文章(默认)',
'sms' => '短讯'
), 'show', _t('文章类型'), _t('当设置为 "短讯" 后则在首页拥有一个不一样的外观,适合一小段文字与单图片'));
$layout->addItem($AKAROMarticleSMS);
$AKAROMfucsetreward = new Typecho_Widget_Helper_Form_Element_Radio(
'AKAROMfucsetreward',
array(
'0' => _t('显示赞赏按钮'),
'1' => _t('隐藏')
),
'0',
_t('显示赞赏按钮')
);
$layout->addItem($AKAROMfucsetreward);
$AKAROMarticlecolor = new Typecho_Widget_Helper_Form_Element_Text('AKAROMarticlecolor', NULL, NULL, _t('<b>已废弃选项</b><br><small>设置文章封面底色</small>'), _t('如未设置封面图将会自动显示随机图片。'));
$layout->addItem($AKAROMarticlecolor);
}
function themeInit($comment) {
global $post;
$result = null;
$comment = AKAROM_simple_captcha($comment, $post, $result);
}
function Fancybox($content){ //Fancybox图片灯箱功能
//以下参考自 Skywt 开发的 Daydream 主题https://github.com/Skywt2003/Daydream感谢大佬。
$content = preg_replace("/<img src=\"([^\"]*)\" alt=\"([^\"]*)\" title=\"([^\"]*)\">/i", "<a data-fancybox=\"gallery\" href=\"\\1\" data-caption=\"\\3\"><img class=\"btnyuan\" src=\"\\1\" alt=\"\\2\" title=\"\\3\" loading=\"lazy\"></a>", $content);
return $content;
}
function AKAROM_simple_captcha_math() { //评论区简单验证码
$num1 = rand(1, 20);
$num2 = rand(1, 10);
// 生成一个更复杂的校验值
$hash = md5($num1 . '+' . $num2 . '@' . $_SERVER['REMOTE_ADDR'] . date('Ymd'));
echo "
<div class=\"mdui-textfield\">
<i class=\"mdui-icon material-icons\">beach_access</i>
<input class=\"mdui-textfield-input\" type=\"text\" name=\"sum\" id=\"sum\" placeholder=\"$num1 + $num2 = ?\" required/>
<div class=\"mdui-textfield-error\">验证码不能为空</div>
</div>
";
echo "<input type=\"hidden\" name=\"captcha_hash\" value=\"$hash\">\n";
echo "<input type=\"hidden\" name=\"num1\" value=\"" . base64_encode($num1) . "\">\n";
echo "<input type=\"hidden\" name=\"num2\" value=\"" . base64_encode($num2) . "\">";
}
function AKAROM_simple_captcha($comment, $post, $result) { //验证码判断
if (!empty($_REQUEST['text'])) {
if (empty($_POST['num1']) || empty($_POST['num2']) || empty($_POST['captcha_hash'])) {
throw new Typecho_Widget_Exception(_t('验证码异常,请重试', '评论失败'));
} else {
$num1 = intval(base64_decode($_POST['num1']));
$num2 = intval(base64_decode($_POST['num2']));
$sum = $_POST['sum'];
$expected_hash = md5($num1 . '+' . $num2 . '@' . $_SERVER['REMOTE_ADDR'] . date('Ymd'));
// 验证哈希值确保隐藏字段没有被篡改
if ($_POST['captcha_hash'] !== $expected_hash) {
throw new Typecho_Widget_Exception(_t('验证码已过期,请刷新页面重试', '评论失败'));
}
switch (intval($sum)) {
case $num1 + $num2 : break;
case null:
throw new Typecho_Widget_Exception(_t('请输入验证码,请重试', '评论失败'));
break;
default:
throw new Typecho_Widget_Exception(_t('验证码错误,请重试', '评论失败'));
}
}
}
return $comment;
}
function get_post_view($archive) {
$cid = $archive->cid;
$db = Typecho_Db::get();
$prefix = $db->getPrefix();
// 检查 views 字段是否存在
try {
// 尝试查询 views 字段
$row = $db->fetchRow($db->select('views')->from('table.contents')->where('cid = ?', $cid));
} catch (Exception $e) {
// 如果字段不存在,则添加字段
if ($db->getAdapterName() == 'pdo_sqlite') {
// SQLite 的语法
$db->query('ALTER TABLE ' . $prefix . 'contents ADD COLUMN "views" INTEGER DEFAULT 0');
} else {
// MySQL 的语法
$db->query('ALTER TABLE `' . $prefix . 'contents` ADD `views` INT(10) DEFAULT 0;');
}
echo 0;
return;
}
// 更新浏览次数 - 只在单独访问文章页面时更新,避免首页和其他列表中的浏览计数
if ($archive->is('single')) {
$views = Typecho_Cookie::get('extend_contents_views');
if (empty($views)) {
$views = array();
} else {
$views = explode(',', $views);
}
// 仅当该文章未被记录过时才更新计数
if (!in_array($cid, $views)) {
// 使用事务保证数据一致性
try {
$db->query($db->update('table.contents')->rows(array('views' => (int) $row['views'] + 1))->where('cid = ?', $cid));
array_push($views, $cid);
// 设置30分钟有效期的Cookie减少频繁更新
$views = implode(',', $views);
Typecho_Cookie::set('extend_contents_views', $views, time() + 1800);
} catch (Exception $e) {
// 出错时不影响页面正常显示
}
}
}
// 返回浏览次数
echo number_format($row['views']);
}
?>
<?php
//获取浏览器信息
function getBrowser($agent)
{
if (preg_match('/MSIE\s([^\s|;]+)/i', $agent, $regs)) {
$outputer = '&nbsp;<i class="iconfont icon-Sougou_Browser comment-ua" mdui-tooltip="{content: \'IE\'}"></i>';
} else if (preg_match('/FireFox\/([^\s]+)/i', $agent, $regs)) {
$str1 = explode('Firefox/', $regs[0]);
$FireFox_vern = explode('.', $str1[1]);
$outputer = '&nbsp;<i class="iconfont icon-firefox comment-ua" mdui-tooltip="{content: \'Firefox\'}"></i>';
} else if (preg_match('/Maxthon([\d]*)\/([^\s]+)/i', $agent, $regs)) {
$str1 = explode('Maxthon/', $agent);
$Maxthon_vern = explode('.', $str1[1]);
$outputer = '&nbsp;<i class="iconfont icon-edge comment-ua" mdui-tooltip="{content: \'original Edge\'}"></i>';
} else if (preg_match('#360([a-zA-Z0-9.]+)#i', $agent, $regs)) {
$outputer = '&nbsp;<i class="iconfont icon-Sougou_Browser comment-ua" mdui-tooltip="{content: \'360浏览器\'}"></i>';
} else if (preg_match('/Edge([\d]*)\/([^\s]+)/i', $agent, $regs)) {
$str1 = explode('Edge/', $regs[0]);
$Edge_vern = explode('.', $str1[1]);
$outputer = '&nbsp;<i class="iconfont icon-edge comment-ua" mdui-tooltip="{content: \'original Edge\'}"></i>';
} else if (preg_match('/UC/i', $agent)) {
$str1 = explode('rowser/', $agent);
$UCBrowser_vern = explode('.', $str1[1]);
$outputer = '&nbsp;<i class="iconfont icon-Sougou_Browser comment-ua" mdui-tooltip="{content: \'UC浏览器\'}"></i>';
} else if (preg_match('/QQ/i', $agent, $regs)||preg_match('/QQBrowser\/([^\s]+)/i', $agent, $regs)) {
$str1 = explode('rowser/', $agent);
$QQ_vern = explode('.', $str1[1]);
$outputer = '&nbsp;<i class="iconfont icon-QQBrowser comment-ua" mdui-tooltip="{content: \'QQ\'}"></i>';
} else if (preg_match('/UBrowser/i', $agent, $regs)) {
$str1 = explode('rowser/', $agent);
$UCBrowser_vern = explode('.', $str1[1]);
$outputer = '&nbsp;<i class="iconfont icon-Sougou_Browser comment-ua" mdui-tooltip="{content: \'UC浏览器\'}"></i>';
} else if (preg_match('/Opera[\s|\/]([^\s]+)/i', $agent, $regs)) {
$outputer = '&nbsp;<i class="iconfont icon-Sougou_Browser comment-ua" mdui-tooltip="{content: \'Opera\'}"></i>';
} else if (preg_match('/edge([\d]*)\/([^\s]+)/i', $agent, $regs)) {
$str1 = explode('edge/', $agent);
$chrome_vern = explode('.', $str1[1]);
$outputer = '&nbsp;<i class="iconfont icon-chrome comment-ua" mdui-tooltip="{content: \'original Edge\'}"></i>';
} else if (preg_match('/Chrome([\d]*)\/([^\s]+)/i', $agent, $regs)) {
if (preg_match('/Edg([\d]*)\/([^\s]+)/i', $agent, $regs)) {
$str1 = explode('Edg/', $agent);
$chrome_vern = explode('.', $str1[1]);
$outputer = '&nbsp;<i class="iconfont icon-edge comment-ua" mdui-tooltip="{content: \'Edge\'}"></i>';
}else{
$str1 = explode('Chrome/', $agent);
$chrome_vern = explode('.', $str1[1]);
$outputer = '&nbsp;<i class="iconfont icon-chrome comment-ua" mdui-tooltip="{content: \'Chrome\'}"></i>';
}
} else if (preg_match('/safari\/([^\s]+)/i', $agent, $regs)) {
$str1 = explode('Version/', $agent);
$safari_vern = explode('.', $str1[1]);
$outputer = '&nbsp;<i class="iconfont icon-safari comment-ua" mdui-tooltip="{content: \'Safari\'}"></i>';
} else{
$outputer = '&nbsp;<i class="iconfont icon-chrome comment-ua" mdui-tooltip="{content: \'Chrome\'}"></i>';
}
echo $outputer;
}
// 获取操作系统信息
function getOs($agent)
{
$os = false;
if (preg_match('/win/i', $agent)) {
$os = '&nbsp;&nbsp;<i class="iconfont icon-windows comment-ua-second" mdui-tooltip="{content: \'Windows\'}"></i>';
} else if (preg_match('/android/i', $agent)) {
$os = '&nbsp;&nbsp;<i class="iconfont icon-android comment-ua-second" mdui-tooltip="{content: \'Android\'}"></i>';
}else if (preg_match('/ubuntu/i', $agent)) {
$os = '&nbsp;&nbsp;<i class="iconfont icon-linux comment-ua-second" mdui-tooltip="{content: \'Ubuntu\'}"></i>';
} else if (preg_match('/linux/i', $agent)) {
$os = '&nbsp;&nbsp;<i class="iconfont icon-linux comment-ua-second" mdui-tooltip="{content: \'Linux (exclude Ubuntu)\'}"></i>';
} else if (preg_match('/iPhone/i', $agent)) {
$os = '&nbsp;&nbsp;<i class="iconfont icon-ios comment-ua-second" mdui-tooltip="{content: \'iOS\'}"></i>';
} else if (preg_match('/iPad/i', $agent)) {
$os = '&nbsp;&nbsp;<i class="iconfont icon-ios comment-ua-second" mdui-tooltip="{content: \'iPadOS\'}"></i>';
} else if (preg_match('/mac/i', $agent)) {
$os = '&nbsp;&nbsp;<i class="iconfont icon-ios comment-ua-second" mdui-tooltip="{content: \'macOS\'}"></i>';
}else if (preg_match('/fusion/i', $agent)) {
$os = '&nbsp;&nbsp;<i class="iconfont icon-linux comment-ua-second" mdui-tooltip="{content: \'fusion\'}"></i>';
} else {
$os = '&nbsp;&nbsp;<i class="iconfont icon-linux comment-ua-second" mdui-tooltip="{content: \'Other OS\'}"></i>';
}
echo $os;
}
?>

260
index.php Normal file
View File

@@ -0,0 +1,260 @@
<?php
/**
_ _ __ _ ____ _ _ ___
/ \ | |/ / / \ / ___|| | | |_ _|
/ _ \ | ' / / _ \ \___ \| |_| || |
/ ___ \| . \ / ___ \ ___) | _ || |
/_/ \_\_|\_\/_/ \_\____/|_| |_|___|
* 在明石的简洁设计中捕捉日常生活中流露出的浪漫主义。
*
* @package Romanticism
* @author 明石
* @version 2.1
* @link https://imakashi.eu.org/
* @date 2025-02-02
**/
$this->need('config/header.php');
?>
<?php /*加载动画*/ if (!empty($this->options->AKAROMfucset) && in_array('AKAROMindexloading', $this->options->AKAROMfucset)): ?>
<div class="blur" id="loading">
<div id="loading_bg">
<div class="loader">
<div class="loader-box">
<noscript>
<b>无法加载网页:</b>需要 Javascript
</noscript>
<div class="mdui-text-color-blue-200 mdui-spinner"></div>
</div>
</div>
</div>
</div>
<?php endif; ?>
<!--首页主题图-->
<div class="mdui-shadow-0 indeximgcard mdui-card indeximg" style="background-image: url('<?php if(empty($this->options->AKAROMindeximg)): ?><?php $this->options->themeUrl('config/style/img/default/indeximg.webp'); ?><?php else: ?><?php $this->options->AKAROMindeximg(); ?><?php endif; ?>');">
<div class="mdui-card-media-covered indeximgcard mdui-valign ">
<div class="mdui-center mdui-card-primary easysee">
<h1 class="mdui-typo-display-1 titlegap">
<?php if (!empty($this->archiveTitle)): ?>
<?php $this->archiveTitle(array(
'category' => _t('分类 "
<span>%s</span>" 下的文章'),
'search' => _t('包含关键字 "<span>%s</span>" 的文章'),
'tag' => _t('含有 "<span>%s</span>" 标签的文章')
), '', ''); ?>
<?php else: ?>
<?php $this->options->description(); ?>
<?php endif; ?>
</h1>
</div>
</div>
</div>
<!--主布局容器开始-->
<div class="LDtrans">
<!-- 类型筛选器 -->
<div class="akarom-articletag akarom-articletag-index blur mdui-shadow-1">
<i class="mdui-icon material-icons">panorama_fish_eye</i>
<div class="akarom-articletag-options">
<input type="radio" name="filter" id="filterall" value="all">
<label for="filterall" class="filter-btn akarom-hoverable">全部</label>
<input type="radio" name="filter" id="filterarticle" value="article">
<label for="filterarticle" class="filter-btn akarom-hoverable">文章</label>
<input type="radio" name="filter" id="filtersms" value="sms">
<label for="filtersms" class="filter-btn akarom-hoverable">短讯</label>
</div>
</div>
<!--内容开始-->
<div class="indexlistbox mdui-container">
<div class="mdui-shadow-0 mdui-col-md-8 mdui-col-offset-md-2 mdui-card-primary toup">
<?php if (empty($this->archiveTitle) && !empty($this->options->AKAROMinfobox)): ?><!--通知容器-->
<div class="indexinfobox blur yuan mdui-card mdui-center mdui-text-center mdui-shadow-0">
<span class="info">
<b><?php $this->options->AKAROMinfobox(); ?></b>
</span>
</div>
<?php endif; ?>
<?php if($this->options->AKAROMsticky != null): ?>
<div class="sticky-wrapper yuan LDtrans">
<div class="sticky-badge blur mdui-shadow-1">
<i class="mdui-icon material-icons">bookmark_border</i>
</div>
<div class="sticky-container">
<div style="padding: 10px;">
<?php
$stickynumbers = $this->options->AKAROMsticky;
$stickynumbers = array_filter(array_unique(explode(',', $stickynumbers)));
foreach ($stickynumbers as $stickynum): ?>
<?php
$post = Typecho_Widget::widget('Widget_Archive@cid_' . $stickynum, 'type=post', 'cid=' . $stickynum);
?>
<div class="mdui-card btnyuan sticky-item mdui-hoverable">
<div class="mdui-card-media">
<img src="
<?php if ($post->fields->AKAROMarticleimg != null): ?>
<?php $post->fields->AKAROMarticleimg(); ?>
<?php else: ?>
<?php
// 固定文章ID生成固定的随机图片
$randomNum = 1 + ($post->cid % 12);
$this->options->themeUrl("config/style/img/default/cover/{$randomNum}.webp");
?>
<?php endif; ?>
" loading="lazy">
<div class="mdui-card-media-covered">
<div class="mdui-card-primary">
<div class="mdui-card-primary-title mdui-text-truncate easysee">
<h5><a class="title chameleon underline" onclick="window.location.href='<?php echo $post->permalink; ?>'">&nbsp;<?php echo $post->title; ?>&nbsp;</a></h5></div>
</div>
</div>
</div>
</div>
<?php endforeach; ?>
</div>
</div>
</div>
<br>
<?php endif; ?>
<h1 class="tagnotice tagnotice-sms"><i style="margin-bottom:5px;" class="mdui-icon material-icons">chat_bubble_outline</i> 查看短讯</h1>
<h1 class="tagnotice tagnotice-article"><i style="margin-bottom:5px;" class="mdui-icon material-icons">chat</i> 文章列表</h1>
<?php if ($this->have()): ?>
<?php //输出每一篇文章的主页卡片
while($this->next()):
if(!empty($stickynumbers) && in_array($this->cid, $stickynumbers)) continue; ?>
<?php if ($this->fields->AKAROMarticleSMS == 'sms'): //短讯SMS样式 ?>
<div class="taglist tagsms">
<div class="blur mdui-card yuan mdui-hoverable articlesms">
<!-- 卡片的媒体内容,可以包含图片、视频等媒体内容,以及标题、副标题 -->
<div class="mdui-card-media">
<img src="<?php $this->fields->AKAROMarticleimg(); ?>" loading="lazy">
<!-- 卡片中可以包含一个或多个菜单按钮 -->
<div class="mdui-card-menu">
<button class="btnyuan mdui-btn easysee mdui-text-color-white">
<i class="mdui-icon material-icons">chat_bubble_outline</i> <b>短讯</b>
</button>
</div>
</div>
<!-- 卡片的标题和副标题 -->
<div class="mdui-card-primary">
<?php if (!empty($this->title)): ?>
<div class="mdui-card-primary-title"><b>
<h3 class="mdui-hidden-xs-down">
<a class="title" onclick="window.location.href='<?php $this->permalink() ?>'"><?php $this->title(); ?></a>
</h3>
<h4 class="mdui-hidden-sm-up">
<a class="title" onclick="window.location.href='<?php $this->permalink() ?>'"><?php $this->title(); ?></a>
</h4>
</b></div>
<?php endif; ?>
<div class="mdui-card-primary-subtitle title"><?php $this->date(); ?> · <?php $this -> commentsNum('0 评论', '1 评论', '%d 评论'); ?></div>
</div>
<!-- 卡片的内容 -->
<div class="mdui-card-content mdui-typo"><?php $this->content(); ?>
<button style="margin-bottom:15px;margin-top:-10px;" onclick="window.location.href='<?php $this->permalink() ?>'" class="mdui-btn btnyuan mdui-float-right">评论区</button>
</div>
</div>
<br>
</div>
<?php else: //正常文章样式 ?>
<div class="taglist tagarticle">
<div class="yuan articlelistcard mdui-card mdui-valign mdui-text-center articlelistimg mdui-hoverable AKAROMlazyload"
data-bg="
<?php if (($this->cid == 1) && ($this->fields->AKAROMarticleimg == null)): ?>
<?php $this->options->themeUrl('config/style/img/default/Romanticism2theme-empty.webp'); ?>
<?php elseif ($this->fields->AKAROMarticleimg != null): ?>
<?php $this->fields->AKAROMarticleimg(); ?>
<?php else: ?>
<?php
// 固定文章ID生成固定的随机图片
$randomNum = 1 + ($this->cid % 12);
$this->options->themeUrl("config/style/img/default/cover/{$randomNum}.webp");
?>
<?php endif; ?>
">
<div class="mdui-valign mdui-card-media-covered articlelistcard">
<div class="mdui-card-primary easysee mdui-center">
<div class="mdui-card-primary-title">
<h3 class="mdui-hidden-xs-down">
<a class="title chameleon underline" onclick="window.location.href='<?php $this->permalink() ?>'">&nbsp;<?php $this->title(); ?>&nbsp;</a>
</h3>
<h4 class="mdui-hidden-sm-up">
<a class="title chameleon underline" onclick="window.location.href='<?php $this->permalink() ?>'">&nbsp;<?php $this->title(); ?>&nbsp;</a>
</h4></div>
<div class="mdui-card-primary-subtitle"><h5><?php $this->date(); ?> · <?php $this->category(',', false, '无分类'); ?> · <?php $this -> commentsNum('0 评论', '1 评论', '%d 评论'); ?></h5></div>
</div>
</div>
</div>
<br>
</div>
<?php endif; ?>
<?php endwhile; ?>
<?php //如果找不到搜索内容或无文章
else: ?>
<div class="yuan articlelistcard mdui-card mdui-valign mdui-text-center articlelistimg mdui-hoverable" style="background-image: url('<?php $this->options->themeUrl('config/style/img/default/Romanticism2theme-empty.webp'); ?>');">
<div class="mdui-valign mdui-card-media-covered articlelistcard">
<div class="mdui-card-primary easysee mdui-center">
<div class="mdui-card-primary-title">
<h3 class="mdui-hidden-xs-down">
&nbsp;这里是空荡的原野...&nbsp;
</h3>
<h4 class="mdui-hidden-sm-up">
&nbsp;这里是空荡的原野...&nbsp;
</h4></div>
<div class="mdui-card-primary-subtitle"><h5><?php if ($this->user->hasLogin()): ?><a class="chameleon underline" onclick="window.location.href='<?php $this->options->adminUrl(); ?>write-post.php'">点击发布新文章</a><?php else: ?><a class="chameleon underline" onclick="window.location.href='<?php $this->options->siteUrl(); ?>'">返回首页</a><?php endif; ?></h5></div>
</div>
</div>
</div>
<br>
<?php endif; ?>
<!--上下翻页-->
<?php if (ceil($this->getTotal() / $this->parameter->pageSize) != '1'): ?>
<div class="mdui-text-center">
<p>
<h4 class="title mdui-text-center outlineborder blur">
<?php $this->pageLink('&nbsp;&nbsp;&nbsp;&nbsp;上一页&nbsp;&nbsp;&nbsp;&nbsp;'); ?>
<?php $this->pageLink('&nbsp;&nbsp;&nbsp;&nbsp;下一页&nbsp;&nbsp;&nbsp;&nbsp;','next'); ?>
</h4>
</p>
</div>
<?php endif; ?>
<!--内容结束-->
</div>
<!--主布局容器结束-->
</div>
<?php $this->need('config/footer.php'); ?>

162
link.php Normal file
View File

@@ -0,0 +1,162 @@
<?php
/**
_ _ __ _ ____ _ _ ___
/ \ | |/ / / \ / ___|| | | |_ _|
/ _ \ | ' / / _ \ \___ \| |_| || |
/ ___ \| . \ / ___ \ ___) | _ || |
/_/ \_\_|\_\/_/ \_\____/|_| |_|___|
* 友情链接页
*
* @package custom
* @author 明石
* @version 2.1
* @link https://imakashi.eu.org/
*/
?>
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<?php $this->need('config/header.php'); ?>
<div class="mdui-shadow-0 articlecard mdui-card show">
<div class="mdui-valign articlecard mdui-text-center">
<div class="mdui-card-primary easysee mdui-center">
<div class="mdui-card-primary-title"><h2><?php $this->title() ?></h2></div>
<div class="mdui-card-primary-subtitle"><h4><?php $this->author(); ?> · <?php $this->date('Y-m-d H:i'); ?> · <?php get_post_view($this) ?>浏览</h4></div>
</div>
</div>
<div class="articlecardshadow"></div>
<div class="articlecardimg"
style="
<?php if ($this->fields->AKAROMarticleimg != null): ?>
background-image: url('<?php $this->fields->AKAROMarticleimg(); ?>');
<?php else: ?>
background-image: url('<?php $randomNum = mt_rand(1, 12);$this->options->themeUrl("config/style/img/default/cover/{$randomNum}.webp"); ?>');
<?php endif; ?>
">
</div>
</div>
<!--主布局容器开始-->
<div class="LDtrans">
<div class="mdui-container linkpage">
<br><!--内容开始-->
<div class="yuan mdui-col-md-8 mdui-col-offset-md-2 mdui-card-primary toup">
<div class="mdui-typo">
<h1>我的朋友们</h1>
<div class="mdui-row-xs-1 mdui-row-sm-1 mdui-row-md-1 mdui-row-lg-2 mdui-row-xl-2">
<?php //我写不来瞎写的,大佬手下留情!(*/ω\*)
if($this->content == null){
?>
<div class="blur btnyuan mdui-card mdui-hoverable mdui-m-y-1">
<div class="mdui-card-header">
<img class="mdui-card-header-avatar" onclick="window.location.href='<?php $this->options ->siteUrl('/admin'); ?>'" title="headicon" src="<?php if(empty($this->options->AKAROMlogoUrl)): ?><?php $this->options->themeUrl('config/style/img/default/user.jpg'); ?><?php else: ?><?php $this->options->AKAROMlogoUrl(); ?><?php endif; ?>">
<div class="mdui-card-header-title">
<b><a target="_blank" href="<?php $this->options ->siteUrl(); ?>">
<?php $this->options->title(); ?>
</b></a></div>
<div class="mdui-card-header-subtitle">
<?php $this->options->description(); ?>
</div>
</div>
</div>
<?php
}else{
$friendlink = $this->content;
$friendlink = str_replace('[icon]','
<div class="mdui-col">
<div class="blur btnyuan mdui-card mdui-hoverable mdui-m-y-1">
<div class="mdui-card-header">
<img class="mdui-card-header-avatar" src="
',$friendlink);
$friendlink = str_replace('[link]','
"/>
<div class="mdui-card-header-title"><b><a target="_blank" href="
',$friendlink);
$friendlink = str_replace('[name]','">',$friendlink);
$friendlink = str_replace('[desc]','
</a></b></div>
<div class="mdui-card-header-subtitle">
',$friendlink);
$friendlink = str_replace('[end]','
</div>
</div>
</div>
</div>
',$friendlink);
echo $friendlink;
}
?>
</div>
<h1>哈喽,来交个朋友吧!</h1>
<blockquote>
<?php if(!empty($this->options->AKAROMLinksterms)): ?>
<b>要求</b><br>
<?php $this->options->AKAROMLinksterms(); ?>
<br><br>
<?php endif; ?>
<b>我的信息</b><br>
博客标志:<?php $this->options->AKAROMlogoUrl(); ?><br>
地址:<?php empty($this->options->AKAROMLinkstermsUrl) ? $this->options->siteUrl() : $this->options->AKAROMLinkstermsUrl(); ?><br>
标题:<?php $this->options->title() ?><br>
描述:<?php $this->options->description() ?><br><br>
<b>交换的格式</b><br>
[icon]网站标志或头像的图片链接<br>
[link]你的网站网址<br>
[name]你的网站标题<br>
[desc]简单介绍一下你的网站吧<br>
[end]
</blockquote>
<b>请通过下面的评论按照格式交换友链呀!</b>
<br> <br>
</div>
<div class="hr mdui-typo">
<hr style="margin-bottom: 10px;">
<?php if($this->user->hasLogin()): ?>
<span class="akarom-alter-button-valign" onclick="window.open('<?php $this->options->adminUrl(); ?>write-page.php?cid=<?php $this->cid(); ?>', '_blank')">
<span class="akarom-alter-button blur yuan mdui-center">
<i class="mdui-icon material-icons">border_color</i><b>编辑友情链接</b>
</span>
</span>
<br>
<?php endif; ?>
<p class="copyright mdui-text-center">
页面最后更新时间为:<?php
if (class_exists('\Typecho\Date')) {
$modifiedDate = new \Typecho\Date($this->modified);
} else {
$modifiedDate = new Typecho_Date($this->modified);
}
echo $modifiedDate->format('Y年m月d日 H:i');
?>
</p>
<hr>
<?php $this->need('config/comments.php'); ?>
<br>
</div>
</div><!--内容结束-->
</div><!--主布局容器结束-->
<?php $this->need('config/footer.php'); ?>

129
page.php Normal file
View File

@@ -0,0 +1,129 @@
<?php
/**
_ _ __ _ ____ _ _ ___
/ \ | |/ / / \ / ___|| | | |_ _|
/ _ \ | ' / / _ \ \___ \| |_| || |
/ ___ \| . \ / ___ \ ___) | _ || |
/_/ \_\_|\_\/_/ \_\____/|_| |_|___|
* Page
* 独立页面内容输出
* @author 明石
* @version 2.1
* @link https://imakashi.eu.org/
*/
?>
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<?php $this->need('config/header.php'); ?>
<div class="mdui-shadow-0 articlecard mdui-card show">
<div class="mdui-valign articlecard mdui-text-center">
<div class="mdui-card-primary easysee mdui-center">
<div class="mdui-card-primary-title"><h2><?php $this->title() ?></h2></div>
<div class="mdui-card-primary-subtitle"><h4><?php $this->author(); ?> · <?php $this->date('Y-m-d H:i'); ?> · <?php get_post_view($this) ?>浏览</h4></div>
</div>
</div>
<div class="articlecardshadow"></div>
<div class="articlecardimg"
style="
<?php if (($this->cid == 1) && ($this->fields->AKAROMarticleimg == null)): ?>
background-image: url('<?php $this->options->themeUrl('config/style/img/default/Romanticism2theme-empty.webp'); ?>');
<?php elseif ($this->fields->AKAROMarticleimg != null): ?>
background-image: url('<?php $this->fields->AKAROMarticleimg(); ?>');
<?php else: ?>
background-image: url('<?php $randomNum = mt_rand(1, 12);$this->options->themeUrl("config/style/img/default/cover/{$randomNum}.webp"); ?>');
<?php endif; ?>
">
</div>
</div>
<!--主布局容器开始-->
<div class="LDtrans">
<div class="mdui-container">
<div class="akarom-articletag akarom-articletag-style blur mdui-shadow-1">
<i class="mdui-list-item-icon mdui-icon material-icons">color_lens</i>
<div class="akarom-articletag-options">
<span class="akarom-hoverable" id="toggleFont">切换字体</span>
<b> · </b>
<span class="akarom-hoverable" id="decrease">A-</span>
<b id="fontSize">18</b>
<span class="akarom-hoverable" id="increase">A+</span>
</div>
</div>
<br><!--内容开始-->
<div class="yuan mdui-col-md-8 mdui-col-offset-md-2 mdui-card-primary toup">
<div class="article mdui-typo">
<?php $this->content(); ?>
<br>
<br>
</div>
<div class="hr mdui-typo">
<hr style="margin-bottom: 10px;">
<?php if($this->user->hasLogin()): ?>
<span class="akarom-alter-button-valign" onclick="window.open('<?php $this->options->adminUrl(); ?>write-page.php?cid=<?php $this->cid(); ?>', '_blank')">
<span class="akarom-alter-button blur yuan mdui-center">
<i class="mdui-icon material-icons">border_color</i><b>编辑此页面</b>
</span>
</span>
<br>
<?php else: ?>
<?php if (!empty($this->options->AKAROMrewardimg)): ?>
<?php if ((!empty($this->fields->AKAROMfucsetreward)) || !($this->fields->AKAROMfucsetreward)): ?>
<span class="akarom-alter-button-valign" mdui-dialog="{target: '#reward'}">
<span class="akarom-alter-button blur yuan mdui-center">
<i class="mdui-icon material-icons">thumb_up</i><b>赞赏文章</b>
</span>
</span>
<div class="mdui-dialog yuan blur" id="reward">
<div class="mdui-container mdui-center akarom-rewardbox">
<img class="btnyuan" src="<?php $this->options->AKAROMrewardimg(); ?>">
</div>
</div>
<br>
<?php endif; ?>
<?php endif; ?>
<?php endif; ?>
<p class="copyright mdui-text-center">
文章最后更新时间为:<?php
if (class_exists('\Typecho\Date')) {
$modifiedDate = new \Typecho\Date($this->modified);
} else {
$modifiedDate = new Typecho_Date($this->modified);
}
echo $modifiedDate->format('Y年m月d日 H:i');
?>
<?php if ($this->fields->AKAROMarticleCopyright != 'hide' && $this->fields->AKAROMarticleCopyright != null): ?>
<?php if ($this->fields->AKAROMarticleCopyright == 'SA'): ?>
<br>本文章版权声明: 遵循 <a target="_blank" href="https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh"> CC BY-NC-SA </a> 版权协议</p>
<?php elseif ($this->fields->AKAROMarticleCopyright == 'ND'): ?>
<br>本文章版权声明: 遵循 <a target="_blank" href="https://creativecommons.org/licenses/by-nc-nd/4.0/deed.zh"> CC BY-NC-ND </a> 版权协议</p>
<?php else: ?>
<br>本文章版权声明: <b>禁止转载</b></p>
<?php endif; ?>
<?php endif; ?>
<hr>
<?php $this->need('config/comments.php'); ?>
<br>
</div>
</div><!--内容结束-->
</div><!--主布局容器结束-->
<?php $this->need('config/footer.php'); ?>

141
post.php Normal file
View File

@@ -0,0 +1,141 @@
<?php
/**
_ _ __ _ ____ _ _ ___
/ \ | |/ / / \ / ___|| | | |_ _|
/ _ \ | ' / / _ \ \___ \| |_| || |
/ ___ \| . \ / ___ \ ___) | _ || |
/_/ \_\_|\_\/_/ \_\____/|_| |_|___|
* Post
* 文章内容输出
* @author 明石
* @version 2.1
* @link https://imakashi.eu.org/
*/
if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<?php $this->need('config/header.php'); ?>
<div class="mdui-shadow-0 articlecard mdui-card show">
<div class="mdui-valign articlecard mdui-text-center">
<div class="mdui-card-primary easysee mdui-center">
<div class="mdui-card-primary-title">
<h2>
<?php if ($this->fields->AKAROMarticleSMS == 'sms'): //短讯SMS样式 ?>
<?php if(empty($this->title)): ?>
短讯一则
<?php else: ?>
<?php $this->title() ?>
<?php endif; ?>
<?php else: ?>
<?php $this->title() ?>
<?php endif; ?>
</h2>
</div>
<div class="mdui-card-primary-subtitle"><h4><?php $this->author(); ?> · <?php $this->date('Y-m-d H:i'); ?> · <?php get_post_view($this) ?>浏览 · <?php $this->category(',', false, '无分类'); ?></h4></div>
</div>
</div>
<div class="articlecardshadow"></div>
<div class="articlecardimg"
style="
<?php if (($this->cid == 1) && ($this->fields->AKAROMarticleimg == null)): ?>
background-image: url('<?php $this->options->themeUrl('config/style/img/default/Romanticism2theme-empty.webp'); ?>');
<?php elseif ($this->fields->AKAROMarticleimg != null): ?>
background-image: url('<?php $this->fields->AKAROMarticleimg(); ?>');
<?php else: ?>
<?php
// 固定文章ID生成固定的随机图片而不是每次刷新都随机
$randomNum = 1 + ($this->cid % 12);
?>
background-image: url('<?php $this->options->themeUrl("config/style/img/default/cover/{$randomNum}.webp"); ?>');
<?php endif; ?>
">
</div>
</div>
<!--主布局容器开始-->
<div class="LDtrans">
<div class="mdui-container">
<div class="akarom-articletag akarom-articletag-style blur mdui-shadow-1">
<i class="mdui-list-item-icon mdui-icon material-icons">color_lens</i>
<div class="akarom-articletag-options">
<span class="akarom-hoverable" id="toggleFont" title="在黑体与宋体之间切换">切换字体</span>
<b> · </b>
<span class="akarom-hoverable" id="decrease" title="减小文本字号">A-</span>
<b id="fontSize">18</b>
<span class="akarom-hoverable" id="increase" title="增大文本字号">A+</span>
</div>
</div>
<br><!--内容开始-->
<div class="yuan mdui-col-md-8 mdui-col-offset-md-2 mdui-card-primary toup">
<div class="article mdui-typo">
<?php echo Fancybox($this->content); ?>
<br>
<br>
</div>
<div class="hr mdui-typo">
<hr style="margin-bottom: 10px;">
<?php if($this->user->hasLogin()): ?>
<span class="akarom-alter-button-valign" onclick="window.open('<?php $this->options->adminUrl(); ?>write-post.php?cid=<?php $this->cid(); ?>', '_blank')">
<span class="akarom-alter-button blur yuan mdui-center">
<i class="mdui-icon material-icons">border_color</i><b>编辑文章</b>
</span>
</span>
<br>
<?php else: ?>
<?php if (!empty($this->options->AKAROMrewardimg)): ?>
<?php if ((!empty($this->fields->AKAROMfucsetreward)) || !($this->fields->AKAROMfucsetreward)): ?>
<span class="akarom-alter-button-valign" mdui-dialog="{target: '#reward'}">
<span class="akarom-alter-button blur yuan mdui-center">
<i class="mdui-icon material-icons">thumb_up</i><b>赞赏文章</b>
</span>
</span>
<div class="mdui-dialog yuan blur" id="reward">
<div class="mdui-container mdui-center akarom-rewardbox">
<img class="btnyuan" src="<?php $this->options->AKAROMrewardimg(); ?>">
</div>
</div>
<br>
<?php endif; ?>
<?php endif; ?>
<?php endif; ?>
<p class="copyright mdui-text-center">
文章最后更新时间为:<?php
if (class_exists('\Typecho\Date')) {
$modifiedDate = new \Typecho\Date($this->modified);
} else {
$modifiedDate = new Typecho_Date($this->modified);
}
echo $modifiedDate->format('Y年m月d日 H:i');
?>
<?php if ($this->fields->AKAROMarticleCopyright != 'hide' && $this->fields->AKAROMarticleCopyright != null): ?>
<?php if ($this->fields->AKAROMarticleCopyright == 'SA'): ?>
<br>本文章版权声明: 遵循 <a target="_blank" href="https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh"> CC BY-NC-SA </a> 版权协议</p>
<?php elseif ($this->fields->AKAROMarticleCopyright == 'ND'): ?>
<br>本文章版权声明: 遵循 <a target="_blank" href="https://creativecommons.org/licenses/by-nc-nd/4.0/deed.zh"> CC BY-NC-ND </a> 版权协议</p>
<?php else: ?>
<br>本文章版权声明: <b>禁止转载</b></p>
<?php endif; ?>
<?php endif; ?>
<hr>
<?php $this->need('config/comments.php'); ?>
<br>
</div>
</div><!--内容结束-->
</div><!--主布局容器结束-->
<?php $this->need('config/footer.php'); ?>

BIN
screenshot.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 154 KiB

28
update.php Normal file
View File

@@ -0,0 +1,28 @@
<?php
header('Content-Type: application/json; charset=utf-8');
function checkThemeUpdate()
{
$api_url = 'https://versioncheck.imakashi.eu.org/?themeRomanticism';
$response = @file_get_contents($api_url);
if ($response === FALSE) {
return json_encode(["error" => "暂时无法连接到更新服务器"]);
}
$data = json_decode($response, true);
if (!isset($data['version'])) {
return json_encode(["error" => "无效的更新数据"]);
}
// 返回更新数据
return json_encode([
"current_version" => '2.1',
"latest_version" => $data['version'],
"update_url" => $data['url'],
"feature" => $data['feature']
]);
}
echo checkThemeUpdate();
?>