Initial commit

This commit is contained in:
JeremyStar™ 2024-01-28 20:56:21 +01:00
commit b36a929e96
22 changed files with 4783 additions and 0 deletions

187
LICENSE Normal file
View file

@ -0,0 +1,187 @@
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright © 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.

114
README.md Normal file
View file

@ -0,0 +1,114 @@
<div align="center">
<img src="https://git.staropensource.de/JeremyStarTM/RetroGeekReloaded/raw/branch/develop/dist/text.png" alt="RetroGeek Reloaded" style="border-radius:50%" width="350"/>
<br/>
A extremely lightweight, minimal and fast retro theme for WordPress.
<br/>
<b>This theme is built by an idiot who can't code in PHP, JavaScript, HTML, CSS. Here be dragons!</b>
<br/>
<b><i>WARNING: This theme is experimental and is still in development. DO NOT USE IT IN PRODUCTION!</b></i>
---
</div>
## Why "Reloaded"?
This is a fork of the [RetroGeek theme](https://www.tuxlog.de/retrogeek/) ([WordPress theme](https://wordpress.org/themes/retrogeek/)) with some improvements. The original theme was made by [Tuxlog](https://www.tuxlog.de).
# Table of Contents
- [Theme management](#theme-management)
- [Prerequisites](#prerequisites)
- [Installing](#installing)
- [Installing using the command line](#installing-using-the-command-line)
- [Installing using FTP](#installing-using-ftp)
- [Updating](#updating)
- [Updating using the command line](#updating-using-the-command-line)
- [Updating using FTP](#updating-using-ftp)
- [Customizing](#customizing)
- [Original description](#original-description-from-tuxlog)
- [Frequently Asked Questions](#faq)
- [How can I change the ASCII logo?](#how-can-i-change-the-ascii-logo)
- [I can't see the ASCII art header, am I doing something wrong?](#i-can-t-see-the-ascii-art-header-am-i-doing-something-wrong)
- [Can I use the ticker in the footer too?](#can-i-use-the-ticker-in-the-footer-too)
- [3rd party resources](#3rd-party-resources)
# Improvements over RetroGeek
- Cleaner code
- Link to the administration panel (if logged in)
- German translation (view `de-DE` branch)
# Theme management
## Prerequisites
- minimum WordPress version: **5.3** (last tested on **6.4.2**)
- minimum PHP version: **5.6** (last tested on **8.2**)
- ftp/command line access to your WordPress site
## Installing
### Installing using the command line
1. Establish a SSH connection to your server and cd into your WordPress directory
2. Ensure [git](https://git-scm.org) is installed on your server
3. Execute `cd wp-content/themes`
4. Execute `git clone https://git.staropensource.de/JeremyStarTM/RetroGeekReloaded.git retrogeekreloaded`
5. Activate the **RetroGeek Reloaded** theme in your WordPress administration panel
### Installing using FTP
1. [Download RetroGeek Reloaded as a .zip archive](https://git.staropensource.de/JeremyStarTM/RetroGeekReloaded/archive/develop.zip)
2. Unpack the theme archive into some directory
3. Establish a FTP connection to your server and open your WordPress directory
4. Go into the `wp-content` directory and then into the `themes` directory
5. Upload the unpacked theme directory to your `themes` directory on your server
5. Activate the **RetroGeek Reloaded** theme in your WordPress administration panel
## Updating
### Updating using the command line
1. Establish a SSH connection to your server and cd into your WordPress directory
2. Ensure [git](https://git-scm.org) is installed on your server
3. Execute `cd wp-content/themes/retrogeekreloaded`
4. Execute `git pull`
### Updating using FTP
1. Establish a FTP connection to your server and open your WordPress directory
2. Go into the `wp-content` directory and then into the `themes` directory
3. Remove the `retrogeekreloaded` directory
4. Follow [the FTP installation guide](#installing-using-ftp)
## Customizing
1. Check if the RetroGeek Reloaded theme is activated
2. Go into the WordPress customizer (or append `/wp-admin/customize.php` to your URL)
# Original description (from Tuxlog)
The idea to create this theme was born while watching the movie "Wargames" with its old computers and funny terminals.
It is of course of interest for nerds and geeks to blog about their daily business or remembering good old time back in the 80s
when we use those green shining terminals.
The theme is lightweight and somehow minimal without any special and shiny features but with some small geeky highlights like ASCII-Art
header, logo and a terminal news ticker for the headlines and as a widget. It is responsive has up to three widgets in the footer but only one-column.
You can configure the theme using the customiser to change colors and tun on or off header features.
Please have the follwing things in mind when using the theme:
- Onecolumn, there are no sidebars left and right but there are three widgetareas in the footer
- The ASCII-Art header will switch to text when the device-width gets smaller
- All theme specific settings are in the customizer
- Using a custom header image will replace the blog-title
- If comments are closed no comments, pings or trackbacks are displayed and no hint about closed comments is displayed intentionally
# FAQ
## How can I change the ASCII logo?
You can change it in the WordPress customizer. You can select either a builtin or your own ASCII art or disable the feature completely.
# I can't see the ASCII art header, am I doing something wrong?
Don't worry! Your device's resolution is too small to display the ASCII art logo correctly. Simply view your website on a device with a bigger screen.
# Can I use the ticker in the footer too?
Yes. RetroGeek Reloaded has a ticker widget builtin, simply drag it to your footer like any other widget.
# 3rd party resources
## class-text-figlet.php
- Copyright (c) 1997-2002 Evgeny Stepanischev
- License: PHP V2 License, https://www.php.net/license/2_02.txt
- Source: https://pear.php.net/reference/Text_Figlet-0.8.0/__filesource/fsource_Text_Figlet__Figlet.php.html
## Font slant.tlf
- Copyright (C) 1991, 1993, 1994 Glenn Chappell and Ian Chai
- Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 John Cowan
- Copyright (C) 2002 Christiaan Keet
- Copyright (C) 2011 Claudio Matsuoka
- License: BSD 3, https://opensource.org/licenses/BSD-3-Clause
- Source: https://github.com/cmatsuoka/figlet/blob/master/fonts/slant.flf
## Some code snippets based on twentysixteen Theme
- Copyright (c) 2016-2021 the WordPress team
- License: GNU General Public License v2 or later, http://www.gnu.org/licenses/gpl-2.0.html
- Source: https://wordpress.org/themes/twentysixteen
## Skeleton V2.0.4
- Copyright 2014, Dave Gamache
- License: MIT License, https://opensource.org/licenses/MIT
- Source: http://www.getskeleton.com

View file

@ -0,0 +1,18 @@
.wp-block {
font-family: "Monospace", sans-serif;
background-color: var(--rg-background-color);
color: var(--rg-text-color);
}
.wp-block a {
color: var(--rg-link-text-color);
}
div.edit-post-visual-editor,
div.block-editor-writing-flow {
background: #303030;
}
.wp-block.is-selected {
background-color: #444444;
}

427
assets/css/normalize.css vendored Normal file
View file

@ -0,0 +1,427 @@
/*! normalize.css v3.0.2 | MIT License | git.io/normalize */
/**
* 1. Set default font family to sans-serif.
* 2. Prevent iOS text size adjust after orientation change, without disabling
* user zoom.
*/
html {
font-family: sans-serif; /* 1 */
-ms-text-size-adjust: 100%; /* 2 */
-webkit-text-size-adjust: 100%; /* 2 */
}
/**
* Remove default margin.
*/
body {
margin: 0;
}
/* HTML5 display definitions
========================================================================== */
/**
* Correct `block` display not defined for any HTML5 element in IE 8/9.
* Correct `block` display not defined for `details` or `summary` in IE 10/11
* and Firefox.
* Correct `block` display not defined for `main` in IE 11.
*/
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
menu,
nav,
section,
summary {
display: block;
}
/**
* 1. Correct `inline-block` display not defined in IE 8/9.
* 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
*/
audio,
canvas,
progress,
video {
display: inline-block; /* 1 */
vertical-align: baseline; /* 2 */
}
/**
* Prevent modern browsers from displaying `audio` without controls.
* Remove excess height in iOS 5 devices.
*/
audio:not([controls]) {
display: none;
height: 0;
}
/**
* Address `[hidden]` styling not present in IE 8/9/10.
* Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.
*/
[hidden],
template {
display: none;
}
/* Links
========================================================================== */
/**
* Remove the gray background color from active links in IE 10.
*/
a {
background-color: transparent;
}
/**
* Improve readability when focused and also mouse hovered in all browsers.
*/
a:active,
a:hover {
outline: 0;
}
/* Text-level semantics
========================================================================== */
/**
* Address styling not present in IE 8/9/10/11, Safari, and Chrome.
*/
abbr[title] {
border-bottom: 1px dotted;
}
/**
* Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
*/
b,
strong {
font-weight: bold;
}
/**
* Address styling not present in Safari and Chrome.
*/
dfn {
font-style: italic;
}
/**
* Address variable `h1` font-size and margin within `section` and `article`
* contexts in Firefox 4+, Safari, and Chrome.
*/
h1 {
font-size: 2em;
margin: 0.67em 0;
}
/**
* Address styling not present in IE 8/9.
*/
mark {
background: #ff0;
color: #000;
}
/**
* Address inconsistent and variable font size in all browsers.
*/
small {
font-size: 80%;
}
/**
* Prevent `sub` and `sup` affecting `line-height` in all browsers.
*/
sub,
sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sup {
top: -0.5em;
}
sub {
bottom: -0.25em;
}
/* Embedded content
========================================================================== */
/**
* Remove border when inside `a` element in IE 8/9/10.
*/
img {
border: 0;
}
/**
* Correct overflow not hidden in IE 9/10/11.
*/
svg:not(:root) {
overflow: hidden;
}
/* Grouping content
========================================================================== */
/**
* Address margin not present in IE 8/9 and Safari.
*/
figure {
margin: 1em 40px;
}
/**
* Address differences between Firefox and other browsers.
*/
hr {
-moz-box-sizing: content-box;
box-sizing: content-box;
height: 0;
}
/**
* Contain overflow in all browsers.
*/
pre {
overflow: auto;
}
/**
* Address odd `em`-unit font size rendering in all browsers.
*/
code,
kbd,
pre,
samp {
font-family: monospace, monospace;
font-size: 1em;
}
/* Forms
========================================================================== */
/**
* Known limitation: by default, Chrome and Safari on OS X allow very limited
* styling of `select`, unless a `border` property is set.
*/
/**
* 1. Correct color not being inherited.
* Known issue: affects color of disabled elements.
* 2. Correct font properties not being inherited.
* 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
*/
button,
input,
optgroup,
select,
textarea {
color: inherit; /* 1 */
font: inherit; /* 2 */
margin: 0; /* 3 */
}
/**
* Address `overflow` set to `hidden` in IE 8/9/10/11.
*/
button {
overflow: visible;
}
/**
* Address inconsistent `text-transform` inheritance for `button` and `select`.
* All other form control elements do not inherit `text-transform` values.
* Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
* Correct `select` style inheritance in Firefox.
*/
button,
select {
text-transform: none;
}
/**
* 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
* and `video` controls.
* 2. Correct inability to style clickable `input` types in iOS.
* 3. Improve usability and consistency of cursor style between image-type
* `input` and others.
*/
button,
html input[type="button"], /* 1 */
input[type="reset"],
input[type="submit"] {
-webkit-appearance: button; /* 2 */
cursor: pointer; /* 3 */
}
/**
* Re-set default cursor for disabled elements.
*/
button[disabled],
html input[disabled] {
cursor: default;
}
/**
* Remove inner padding and border in Firefox 4+.
*/
button::-moz-focus-inner,
input::-moz-focus-inner {
border: 0;
padding: 0;
}
/**
* Address Firefox 4+ setting `line-height` on `input` using `!important` in
* the UA stylesheet.
*/
input {
line-height: normal;
}
/**
* It's recommended that you don't attempt to style these elements.
* Firefox's implementation doesn't respect box-sizing, padding, or width.
*
* 1. Address box sizing set to `content-box` in IE 8/9/10.
* 2. Remove excess padding in IE 8/9/10.
*/
input[type="checkbox"],
input[type="radio"] {
box-sizing: border-box; /* 1 */
padding: 0; /* 2 */
}
/**
* Fix the cursor style for Chrome's increment/decrement buttons. For certain
* `font-size` values of the `input`, it causes the cursor style of the
* decrement button to change from `default` to `text`.
*/
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
height: auto;
}
/**
* 1. Address `appearance` set to `searchfield` in Safari and Chrome.
* 2. Address `box-sizing` set to `border-box` in Safari and Chrome
* (include `-moz` to future-proof).
*/
input[type="search"] {
-webkit-appearance: textfield; /* 1 */
-moz-box-sizing: content-box;
-webkit-box-sizing: content-box; /* 2 */
box-sizing: content-box;
}
/**
* Remove inner padding and search cancel button in Safari and Chrome on OS X.
* Safari (but not Chrome) clips the cancel button when the search input has
* padding (and `textfield` appearance).
*/
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
-webkit-appearance: none;
}
/**
* Define consistent border, margin, and padding.
*/
fieldset {
border: 1px solid #c0c0c0;
margin: 0 2px;
padding: 0.35em 0.625em 0.75em;
}
/**
* 1. Correct `color` not being inherited in IE 8/9/10/11.
* 2. Remove padding so people aren't caught out if they zero out fieldsets.
*/
legend {
border: 0; /* 1 */
padding: 0; /* 2 */
}
/**
* Remove default vertical scrollbar in IE 8/9/10/11.
*/
textarea {
overflow: auto;
}
/**
* Don't inherit the `font-weight` (applied by a rule above).
* NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
*/
optgroup {
font-weight: bold;
}
/* Tables
========================================================================== */
/**
* Remove most spacing between table cells.
*/
table {
border-collapse: collapse;
border-spacing: 0;
}
td,
th {
padding: 0;
}

417
assets/css/skeleton.css vendored Normal file
View file

@ -0,0 +1,417 @@
/*
* Skeleton V2.0.4
* Copyright 2014, Dave Gamache
* www.getskeleton.com
* Free to use under the MIT license.
* http://www.opensource.org/licenses/mit-license.php
* 12/29/2014
*/
/* Table of contents
- Grid
- Base Styles
- Typography
- Links
- Buttons
- Forms
- Lists
- Code
- Tables
- Spacing
- Utilities
- Clearing
- Media Queries
*/
/* Grid
*/
.container {
position: relative;
width: 100%;
max-width: 960px;
margin: 0 auto;
padding: 0 20px;
box-sizing: border-box; }
.column,
.columns {
width: 100%;
float: left;
box-sizing: border-box; }
/* For devices larger than 400px */
@media (min-width: 400px) {
.container {
width: 85%;
padding: 0; }
}
/* For devices larger than 550px */
@media (min-width: 550px) {
.container {
width: 80%; }
.column,
.columns {
margin-left: 4%; }
.column:first-child,
.columns:first-child {
margin-left: 0; }
.one.column,
.one.columns { width: 4.66666666667%; }
.two.columns { width: 13.3333333333%; }
.three.columns { width: 22%; }
.four.columns { width: 30.6666666667%; }
.five.columns { width: 39.3333333333%; }
.six.columns { width: 48%; }
.seven.columns { width: 56.6666666667%; }
.eight.columns { width: 65.3333333333%; }
.nine.columns { width: 74.0%; }
.ten.columns { width: 82.6666666667%; }
.eleven.columns { width: 91.3333333333%; }
.twelve.columns { width: 100%; margin-left: 0; }
.one-third.column { width: 30.6666666667%; }
.two-thirds.column { width: 65.3333333333%; }
.one-half.column { width: 48%; }
/* Offsets */
.offset-by-one.column,
.offset-by-one.columns { margin-left: 8.66666666667%; }
.offset-by-two.column,
.offset-by-two.columns { margin-left: 17.3333333333%; }
.offset-by-three.column,
.offset-by-three.columns { margin-left: 26%; }
.offset-by-four.column,
.offset-by-four.columns { margin-left: 34.6666666667%; }
.offset-by-five.column,
.offset-by-five.columns { margin-left: 43.3333333333%; }
.offset-by-six.column,
.offset-by-six.columns { margin-left: 52%; }
.offset-by-seven.column,
.offset-by-seven.columns { margin-left: 60.6666666667%; }
.offset-by-eight.column,
.offset-by-eight.columns { margin-left: 69.3333333333%; }
.offset-by-nine.column,
.offset-by-nine.columns { margin-left: 78.0%; }
.offset-by-ten.column,
.offset-by-ten.columns { margin-left: 86.6666666667%; }
.offset-by-eleven.column,
.offset-by-eleven.columns { margin-left: 95.3333333333%; }
.offset-by-one-third.column,
.offset-by-one-third.columns { margin-left: 34.6666666667%; }
.offset-by-two-thirds.column,
.offset-by-two-thirds.columns { margin-left: 69.3333333333%; }
.offset-by-one-half.column,
.offset-by-one-half.columns { margin-left: 52%; }
}
/* Base Styles
*/
/* NOTE
html is set to 62.5% so that all the REM measurements throughout Skeleton
are based on 10px sizing. So basically 1.5rem = 15px :) */
html {
font-size: 62.5%; }
body {
font-size: 1.5em; /* currently ems cause chrome bug misinterpreting rems on body element */
line-height: 1.6;
font-weight: 400;
font-family: "Monospace", "Courier New", "Courier", Helvetica, Arial, sans-serif;
}
/* Typography
*/
h1, h2, h3, h4, h5, h6 {
margin-top: 0;
margin-bottom: 2rem;
font-weight: 300; }
h1 { font-size: 4.0rem; line-height: 1.2; letter-spacing: -.1rem;}
h2 { font-size: 3.6rem; line-height: 1.25; letter-spacing: -.1rem; }
h3 { font-size: 3.0rem; line-height: 1.3; letter-spacing: -.1rem; }
h4 { font-size: 2.4rem; line-height: 1.35; letter-spacing: -.08rem; }
h5 { font-size: 1.8rem; line-height: 1.5; letter-spacing: -.05rem; }
h6 { font-size: 1.5rem; line-height: 1.6; letter-spacing: 0; }
/* Larger than phablet */
@media (min-width: 550px) {
h1 { font-size: 5.0rem; }
h2 { font-size: 4.2rem; }
h3 { font-size: 3.6rem; }
h4 { font-size: 3.0rem; }
h5 { font-size: 2.4rem; }
h6 { font-size: 1.5rem; }
}
p {
margin-top: 0; }
/* Links
*/
a {
color: var(--rg-link-text-color); }
a:hover {
color: #02e49b; }
/* Buttons
*/
.button,
button,
input[type="submit"],
input[type="reset"],
input[type="button"] {
display: inline-block;
height: 38px;
padding: 0 30px;
color: #555;
text-align: center;
font-size: 11px;
font-weight: 600;
line-height: 38px;
letter-spacing: .1rem;
text-transform: uppercase;
text-decoration: none;
white-space: nowrap;
background-color: transparent;
border-radius: 4px;
border: 1px solid #bbb;
cursor: pointer;
box-sizing: border-box; }
.button:hover,
button:hover,
input[type="submit"]:hover,
input[type="reset"]:hover,
input[type="button"]:hover,
.button:focus,
button:focus,
input[type="submit"]:focus,
input[type="reset"]:focus,
input[type="button"]:focus {
color: #333;
border-color: #888;
outline: 0; }
.button.button-primary,
button.button-primary,
input[type="submit"].button-primary,
input[type="reset"].button-primary,
input[type="button"].button-primary {
color: #FFF;
background-color: #33C3F0;
border-color: #33C3F0; }
.button.button-primary:hover,
button.button-primary:hover,
input[type="submit"].button-primary:hover,
input[type="reset"].button-primary:hover,
input[type="button"].button-primary:hover,
.button.button-primary:focus,
button.button-primary:focus,
input[type="submit"].button-primary:focus,
input[type="reset"].button-primary:focus,
input[type="button"].button-primary:focus {
color: #FFF;
background-color: #1EAEDB;
border-color: #1EAEDB; }
/* Forms
*/
input[type="email"],
input[type="number"],
input[type="search"],
input[type="text"],
input[type="tel"],
input[type="url"],
input[type="password"],
textarea,
select {
height: 38px;
padding: 6px 10px; /* The 6px vertically centers text on FF, ignored by Webkit */
background-color: #fff;
border: 1px solid #D1D1D1;
border-radius: 4px;
box-shadow: none;
box-sizing: border-box; }
/* Removes awkward default styles on some inputs for iOS */
input[type="email"],
input[type="number"],
input[type="search"],
input[type="text"],
input[type="tel"],
input[type="url"],
input[type="password"],
textarea {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
}
textarea {
min-height: 65px;
padding-top: 6px;
padding-bottom: 6px; }
input[type="email"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="text"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
border: 1px solid #33C3F0;
outline: 0; }
label,
legend {
display: block;
margin-bottom: .5rem;
font-weight: 600; }
fieldset {
padding: 0;
border-width: 0; }
input[type="checkbox"],
input[type="radio"] {
display: inline; }
label > .label-body {
display: inline-block;
margin-left: .5rem;
font-weight: normal; }
/* Lists
*/
ul {
list-style: circle inside; }
ol {
list-style: decimal inside; }
ol, ul {
padding-left: 0;
margin-top: 0; }
ul ul,
ul ol,
ol ol,
ol ul {
margin: 1.5rem 0 1.5rem 3rem;
font-size: 90%; }
li {
margin-bottom: 1rem; }
/* Code
*/
code {
padding: .2rem .5rem;
margin: 0 .2rem;
font-size: 90%;
white-space: nowrap;
border-radius: 4px; }
pre > code {
display: block;
padding: 1rem 1.5rem;
white-space: pre; }
/* Tables
*/
th,
td {
padding: 12px 15px;
text-align: left;
border-bottom: 1px solid #E1E1E1; }
th:first-child,
td:first-child {
padding-left: 0; }
th:last-child,
td:last-child {
padding-right: 0; }
/* Spacing
*/
button,
.button {
margin-bottom: 1rem; }
input,
textarea,
select,
fieldset {
margin-bottom: 1.5rem; }
pre,
blockquote,
dl,
figure,
table,
p,
ul,
ol,
form {
margin-bottom: 2.5rem; }
/* Utilities
*/
.u-full-width {
width: 100%;
box-sizing: border-box; }
.u-max-full-width {
max-width: 100%;
box-sizing: border-box; }
.u-pull-right {
float: right; }
.u-pull-left {
float: left; }
/* Misc
*/
hr {
margin-top: 3rem;
margin-bottom: 3.5rem;
border-width: 0;
border-top: 1px solid #E1E1E1; }
/* Clearing
*/
/* Self Clearing Goodness */
.container:after,
.row:after,
.u-cf {
content: "";
display: table;
clear: both; }
/* Media Queries
*/
/*
Note: The best way to structure the use of media queries is to create the queries
near the relevant code. For example, if you wanted to change the styles for buttons
on small devices, paste the mobile query code up in the buttons section and style it
there.
*/
/* Larger than mobile */
@media (min-width: 400px) {}
/* Larger than phablet (also point when grid becomes active) */
@media (min-width: 550px) {}
/* Larger than tablet */
@media (min-width: 750px) {}
/* Larger than desktop */
@media (min-width: 1000px) {}
/* Larger than Desktop HD */
@media (min-width: 1200px) {}

View file

@ -0,0 +1,28 @@
\\//
-(@ @)-
--oOO-- (_)-- OOo--
Kilroy was here
.--.
|o_o |
|:_/ |
// \ \
(| | )
/'\_ _/`\
\___)=(___/
Tux
Art by Hayley Jane Wakenshaw
.----. @ @
/ .-"-.`. \v/
| | '\ \ \_/ )
,-\ `-.' /.' /
'---`----'----'

Binary file not shown.

After

Width:  |  Height:  |  Size: 341 KiB

View file

@ -0,0 +1,37 @@
/**
* Some small javascript functions for the RetroGeek Theme
*
* @package retrogeek
*/
/**
* Function to process the tagline as a terminal like ticker
**/
function rg_terminal(cont, notes, cl) {
var container = document.getElementById( cont );
var div = document.createElement( "div" );
div.className = cl;
container.appendChild( div );
var txt = notes.toUpperCase().split( "" );
var i = 0;
(function display() {
if (i < txt.length) {
div.innerHTML += txt[i].replace( "\n", "<br />" );
++i;
setTimeout( display, 135 );
}
})();
}
/*
* Javascript function to toggle the burger menu on mobile devices
**/
function retrogeek_toggle_mobile_menu() {
x = document.getElementById( 'mobile-menu' );
d = document.getElementById( "mobile-menu" ).style.display;
if ( d === "none" || d === "") {
x.style.display = 'inline-block';
} else {
x.style.display = 'none';
}
}

118
comments.php Normal file
View file

@ -0,0 +1,118 @@
<?php
/**
****************************************************************************
** RETROGEEK RELOADED SOURCE FILE **
** Copyright (c) 2021-2022 Tuxlog **
** Copyright (c) 2024 JeremyStarTM & Contributors **
** Licensed under the GNU General Public License v3 **
****************************************************************************
** 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/>. **
****************************************************************************
** comments.php (Comments) **
** **
** This source file is handles the comment section. This includes viewing **
** comments and posting comments. **
****************************************************************************
*/
?>
<?php
/*
* If the current post is protected by a password and
* the visitor has not yet entered the password we will
* return early without loading the comments.
*/
if(post_password_required()) {
return;
}
?>
<div id="comments" class="comments-area">
<?php if(have_comments()) : ?>
<hr>
<h5 class="comments-title">
<?php
$comments_number = get_comments_number();
if('1' === $comments_number) {
/* translators: %s: Post title. */
printf(
esc_attr(
/* translators: 1: heading for comments */
_x(
'Ein Gedanke zu &ldquo;%s&rdquo;',
'comments title',
'retrogeek'
)
),
esc_attr(
get_the_title()
)
);
} else {
printf(
esc_attr(
/* translators: 1: Number of comments, 2: Post title. */
_nx(
'%1$s Gedanken zu &ldquo;%2$s&rdquo;',
'%1$s Gedanken zu &ldquo;%2$s&rdquo;',
$comments_number,
'comments title',
'retrogeek'
)
),
esc_attr(number_format_i18n($comments_number)),
esc_attr(
get_the_title()
)
);
}
?>
</h5>
<?php the_comments_navigation(); ?>
<ol class="comment-list">
<?php
wp_list_comments(
array(
'type' => 'all',
'style' => 'ol',
'short_ping' => true,
'avatar_size' => 42,
)
);
?>
</ol><!-- .comment-list -->
<?php the_comments_navigation(); ?>
<?php endif; // Check for have_comments(). ?>
<?php
// If comments are closed and there are comments, let's leave a little note, shall we?
if(! comments_open() && get_comments_number() && post_type_supports(get_post_type(), 'comments')) :
?>
<p class="no-comments"><?php esc_html_e('Die Kommentarfunktion wurde deaktiviert.', 'retrogeek'); ?></p>
<?php endif; ?>
<?php
comment_form(
array(
'title_reply_before' => '<h5 id="reply-title" class="comment-reply-title">',
'title_reply_after' => '</h5>',
)
);
?>
</div><!-- .comments-area -->

BIN
dist/text.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9 KiB

BIN
dist/text.xcf vendored Normal file

Binary file not shown.

83
footer.php Normal file
View file

@ -0,0 +1,83 @@
<?php
/**
****************************************************************************
** RETROGEEK RELOADED SOURCE FILE **
** Copyright (c) 2021-2022 Tuxlog **
** Copyright (c) 2024 JeremyStarTM & Contributors **
** Licensed under the GNU General Public License v3 **
****************************************************************************
** 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/>. **
****************************************************************************
** footer.php (Footer) **
** **
** This source file is responsible for displaying the wigetized footer. **
****************************************************************************
*/
?>
</div><!-- .site-content -->
<footer id="colophon" class="site-footer" >
<div class="row">
<div class="two columns">&nbsp;</div>
<div class="eight columns">
<div class="footer-widgets">
<?php if(is_active_sidebar('rg_footer_left')) : ?>
<div id="footer-widgets_left" class="widget-area" role="complementary">
<?php dynamic_sidebar('rg_footer_left'); ?>
</div><!-- #primary-sidebar -->
<?php endif; ?>
<?php if(is_active_sidebar('rg_footer_middle')) : ?>
<div id="footer-widgets_middle" class="widget-area" role="complementary">
<?php dynamic_sidebar('rg_footer_middle'); ?>
</div><!-- #primary-sidebar -->
<?php endif; ?>
<?php if(is_active_sidebar('rg_footer_right')) : ?>
<div id="footer-widgets_right" class="widget-area" role="complementary">
<?php dynamic_sidebar('rg_footer_right'); ?>
</div><!-- #primary-sidebar -->
<?php endif; ?>
<div class="u-cf">&nbsp;</div>
</div>
<div class="site-info">
<?php
if(function_exists('the_privacy_policy_link')) {
the_privacy_policy_link('', '<span role="separator" aria-hidden="true"></span>&nbsp;|&nbsp;');
}
?>
<a href="<?php echo esc_url(__('https://git.staropensource.de/JeremyStarTM/RetroGeekReloaded', 'retrogeek')); ?>" class="imprint">
<?php
printf(('RetroGeek Reloaded');
?>
</a>
<?php
if(current_user_can('administrator') || current_user_can('editor')) {
printf(ecs_attr__('&nbsp;|&nbsp;<a href="%s">Zum Adminpanel</a>', get_admin_url());
}
?>
</div><!-- .site-info -->
</div><!-- eight columns -->
</div><!-- row -->
</footer><!-- .site-footer -->
</div><!-- .site -->
<?php wp_footer(); ?>
</body>
</html>

312
functions.php Normal file
View file

@ -0,0 +1,312 @@
<?php
/**
****************************************************************************
** RETROGEEK RELOADED SOURCE FILE **
** Copyright (c) 2021-2022 Tuxlog **
** Copyright (c) 2024 JeremyStarTM & Contributors **
** Licensed under the GNU General Public License v3 **
****************************************************************************
** 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/>. **
****************************************************************************
** functions.php (Shared functions) **
** **
** This source file contains various functions that are referenced by **
** other source files. **
****************************************************************************
*/
?>
<?php
if(! isset($content_width)) {
$content_width = 960;
}
// include ascii art needed functions and classes.
require_once ABSPATH . 'wp-admin/includes/class-wp-filesystem-base.php';
require_once ABSPATH . 'wp-admin/includes/class-wp-filesystem-direct.php';
require_once 'inc/class-retrogeek-text-figlet.php';
/**
* UTF-8 convert to FIGlet Unicode
*
* @param string $str String in UTF8 to convert to ASCII-Art.
*/
function retrogeek_utf8tofiglet($str) {
// escape %u.
$str = str_replace('%u', sprintf('%%%%u%04X', ord('u')), $str);
if(function_exists('iconv')) {
$str = iconv('utf-8', 'ucs-2be', $str);
$out = '';
for($i = 0, $len = strlen($str); $i < $len; $i++) {
$code = ord($str[ $i++ ]) * 256 + ord($str[ $i ]);
$out .= $code < 128 ? $str[ $i ] : sprintf('%%u%04X', $code);
}
return $out;
}
return $str;
}
// load customizer stuff.
require_once 'inc/class-retrogeek-customize.php';
// Setup the Theme Customizer settings and controls...if on admin page.
add_action('customize_register', array('RetroGeek_Customize', 'register'));
/**
* Add all the theme supported features.
*/
function retrogeek_theme_support() {
// add theme support features.
add_theme_support('title-tag');
// add support for background color.
$retrogeek_args = array(
'default-color' => '#232323',
);
add_theme_support('custom-background', $retrogeek_args);
// add support for feed links.
add_theme_support('automatic-feed-links');
// add support for post thumbnails.
add_theme_support('post-thumbnails');
// add support for custom-header.
$retrogeek_args1 = array(
'default-text-color' => '#00ff00',
'width' => 900,
'height' => 150,
'flex-width' => true,
'flex-height' => true,
);
add_theme_support('custom-header', $retrogeek_args1);
$retrogeek_args2 = array(
'width' => 170,
'height' => 150,
'flex-width' => true,
'flex-height' => true,
'header-text' => array('site-title', 'site-description'),
'unlink-homepage-logo' => true,
);
add_theme_support('custom-logo', $retrogeek_args2);
}
add_action('after_setup_theme', 'retrogeek_theme_support');
/**
* Sets up theme defaults and registers support for various WordPress features.
*/
function retrogeek_editor_styles_setup() {
$m1 = esc_attr(get_theme_mod('textcolor', '#00ff00'));
$m2 = esc_attr(get_theme_mod('link_textcolor', '#74f774'));
$m3 = esc_attr(get_theme_mod('background_color', '#232323'));
add_theme_support(
'editor-color-palette',
array(
array(
'name' => 'retrogeek background color',
'slug' => 'retrogeek-background',
'color' => $m3,
),
array(
'name' => 'retrogeek foreground color',
'slug' => 'retrogeek-foreground',
'color' => $m1,
),
array(
'name' => 'retrogeek link color',
'slug' => 'retrogeek-link',
'color' => $m2,
),
)
);
// Add support for editor styles.
add_theme_support('editor-styles');
// Enqueue editor styles.
add_editor_style('assets/css/editor-styles.css');
}
add_action('after_setup_theme', 'retrogeek_editor_styles_setup');
/**
* This functions echos the CSS vars used from customizer for the WordPress editor.
**/
function retrogeek_css_admin_vars() {
$css_str = RetroGeek_Customize::header_output();
echo '<style>' . esc_attr($css_str) . '</style>';
}
add_action('admin_head', 'retrogeek_css_admin_vars');
/**
* Enqueue style sheets.
*/
function retrogeek_add_theme_scripts() {
wp_enqueue_script('retrogeek-javascript', get_template_directory_uri() . '/assets/js/retrogeek_func.js', false, 42, true);
wp_enqueue_style('retrogeek-normalize', get_template_directory_uri() . '/assets/css/normalize.css', false, '42', 'all');
wp_enqueue_style('retrogeek-skeleton', get_template_directory_uri() . '/assets/css/skeleton.css', 'retrogeek-normalize', '42', 'all');
wp_enqueue_style('retrogeek-style', get_template_directory_uri() . '/style.css', 'retrogeek-skeleton', '42', 'all');
// Output custom CSS to site.
$css_str = RetroGeek_Customize::header_output();
wp_add_inline_style('retrogeek-skeleton', $css_str, 'after');
if(is_singular() && comments_open() && get_option('thread_comments')) {
wp_enqueue_script('comment-reply');
}
}
add_action('wp_enqueue_scripts', 'retrogeek_add_theme_scripts');
/**
* Remove invalid html from WordPress.
*
* @param string $content HTML string to sanitize.
*/
function retrogeek_sanitize_pagination($content) {
// Remove role attribute.
$content = str_replace('role="navigation"', '', $content);
// Remove h2 tag.
$content = preg_replace('#<h2.*?>(.*?)<\/h2>#si', '', $content);
return $content;
}
add_action('navigation_markup_template', 'retrogeek_sanitize_pagination');
/**
* Register main menu.
*/
function retrogeek_register_main_menu() {
register_nav_menu('primary', __('Mainmenu', 'retrogeek'));
}
add_action('init', 'retrogeek_register_main_menu');
// include widget classes.
require_once 'inc/class-retrogeek-ticker-widget.php';
/**
* Register our footer widget area and widgets.
*/
function retrogeek_widgets_init() {
register_sidebar(
array(
'name' => __('Footer left', 'retrogeek'),
'id' => 'rg_footer_left',
'before_widget' => '<div>',
'after_widget' => '</div>',
'before_title' => '<h5 class="rounded">',
'after_title' => '</h5>',
)
);
register_sidebar(
array(
'name' => __('Footer middle', 'retrogeek'),
'id' => 'rg_footer_middle',
'before_widget' => '<div>',
'after_widget' => '</div>',
'before_title' => '<h5 class="rounded">',
'after_title' => '</h5>',
)
);
register_sidebar(
array(
'name' => __('Footer right', 'retrogeek'),
'id' => 'rg_footer_right',
'before_widget' => '<div>',
'after_widget' => '</div>',
'before_title' => '<h5 class="rounded">',
'after_title' => '</h5>',
)
);
// register widgets.
register_widget('retrogeek_ticker_widget');
}
add_action('widgets_init', 'retrogeek_widgets_init');
/**
* Add search form to the right of the menubar
*
* @param array $items array of Menuiitems.
* @param array $args special arguments for menu.
*/
function retrogeek_add_search_form_to_menu($items, $args) {
$rg_show_searchform = get_theme_mod('rg_homepage_searchform', true);
// If this isn't the main navbar menu or searchform is disabled, do nothing.
if(!('primary' === $args->theme_location) || ! $rg_show_searchform) { // with Customizr Pro 1.2+ and Cusomizr 3.4+ you can chose to display the saerch box to the secondary menu, just replacing 'main' with 'secondary'.
return $items;
} else {
// On main menu: put styling around search and append it to the menu items.
return $items . '<li class="my-nav-menu-search">' . get_search_form(false) . '</li>';
}
}
// As of 3.1.10, Customizr doesn't output an html5 form.
add_theme_support('html5', array('search-form'));
add_filter('wp_nav_menu_items', 'retrogeek_add_search_form_to_menu', 10, 2);
/**
* Return the ASCII-Logo string depending on the customizer setting.
*/
function retrogeek_get_asciilogo() {
$asciilogo = get_theme_mod('rg_logo_radio', 'snail');
if('snail' === $asciilogo) {
$asciilogo_string = <<<ALS
.----. @ @
/ .-"-.`. \\v/
| | '\ \ \_/)
,-\ `-.' /.' /
'---`----'----'
ALS;
}
if('kilroy' === $asciilogo) {
$asciilogo_string = <<<ALS
\\//
-(@ @)-
--oOO-- (_)-- OOo--
Kilroy was here
ALS;
}
if('tux' === $asciilogo) {
$asciilogo_string = <<<ALS
.--.
|o_o |
|:_/ |
// \ \
(| |)
/'\_ _/`\
\___)=(___/
ALS;
}
if('none' === $asciilogo) {
$asciilogo_string = '&nbsp;';
}
if('user' === $asciilogo) {
$asciilogo_string = get_theme_mod('rg_logo_userdefined', '');
}
return $asciilogo_string;
}

198
header.php Normal file
View file

@ -0,0 +1,198 @@
<?php
/**
****************************************************************************
** RETROGEEK RELOADED SOURCE FILE **
** Copyright (c) 2021-2022 Tuxlog **
** Copyright (c) 2024 JeremyStarTM & Contributors **
** Licensed under the GNU General Public License v3 **
****************************************************************************
** 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/>. **
****************************************************************************
** header.php (Header) **
** **
** This source file is responsible for displaying the header. **
****************************************************************************
*/
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?> class="no-js">
<head>
<meta charset="<?php bloginfo('charset'); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="profile" href="https://gmpg.org/xfn/11">
<?php if(is_singular() && pings_open(get_queried_object())) : ?>
<link rel="pingback" href="<?php echo esc_url(get_bloginfo('pingback_url')); ?>">
<?php endif; ?>
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php wp_body_open(); ?>
<div id="page" class="hfeed site">
<header id="masthead" class="site-header" >
<!-- columns should be the immediate child of a .row -->
<div class="row">
<div class="two columns">&nbsp;</div>
<div class="eight columns">
<a class="screen-reader-text skip-link" href="#content"><?php echo esc_html__('Zum Inhalt springen', 'retrogeek'); ?></a>
<!-- Mobile Top-Menubar -->
<div class="toggle-topnav-div"><a class="toggle-topnav" href="#" onclick="retrogeek_toggle_mobile_menu();">&#9776;</a></div>
<nav class="topnav">
<?php
if(has_nav_menu('primary')) {
wp_nav_menu(
array(
'theme_location' => 'primary',
'menu_class' => 'top-nav',
'menu_id' => 'mobile-menu',
'container_class' => 'top-nav',
)
);
}
?>
</nav>
<div class="site-branding"
<?php
if(! display_header_text() ) {
echo ' style="display:none" ';
}
?>
>
<div id="asciiartlogo" class="u-pull-left three columns" style="padding-right: 20px;">
<a style="text-decoration:none !important;" href="<?php echo esc_url(home_url('/')); ?>" rel="home">
<?php
if(has_custom_logo() ) {
$rg_custom_logo_id = get_theme_mod('custom_logo');
$rg_image = wp_get_attachment_image_src($rg_custom_logo_id, 'full');
echo '<img src=' . esc_url($rg_image[0] ) . ' class="custom-logo" alt="' . esc_attr(get_bloginfo('name')) . '">';
} else {
echo '<div><pre>';
$rg_asciilogo_string = retrogeek_get_asciilogo();
echo esc_attr($rg_asciilogo_string);
echo '</pre></div>';
} // end of the_header_logo else
?>
</a>
</div>
<div class="u-pull-left">
<!-- mobile site title -->
<h1 class="site-title-mob">
<a style="text-decoration:none !important;" href="<?php echo esc_url(home_url('/')); ?>" rel="home">
<?php echo esc_attr(get_bloginfo('name')); ?>
</a>
</h1>
<?php
// custom header image.
if(get_header_image() ) :
?>
<div class="header-image">
<a href="<?php echo esc_url(home_url('/')); ?>" rel="home">
<img src="<?php header_image(); ?>"
srcset="<?php echo esc_attr(wp_get_attachment_image_srcset(get_custom_header()->attachment_id)); ?>"
width="<?php echo esc_attr(get_custom_header()->width); ?>"
height="<?php echo esc_attr(get_custom_header()->height); ?>"
alt="<?php echo esc_attr(get_bloginfo('name', 'display')); ?>"
>
</a>
</div><!-- .header-image -->
<?php endif; // end header image check. ?>
<?php
if(! get_header_image() ) {
// ASCII site title generation.
$rg_header_ascii = get_theme_mod('rg_header_ascii', false);
if($rg_header_ascii ) {
$rg_figlet = new Retrogeek_Text_Figlet();
$rg_figlet->load_font(get_template_directory() . '/inc/slant.flf');
$rg_banner = $rg_figlet->line_echo(retrogeek_utf8tofiglet(get_bloginfo('name' )));
} else {
$rg_banner = get_bloginfo('name');
}
echo '<!-- Site title as ASCII or Text -->';
echo '<div class="site-title">';
echo '<a style="text-decoration:none !important;" href="' . esc_url(home_url('/')) . '" rel="home">';
if($rg_header_ascii ) {
echo '<pre>' . esc_html($rg_banner ) . '</pre>';
} else {
echo '<h1>' . esc_html($rg_banner ) . '</h1>';
}
echo '</a></div>';
}
?>
</div>
</div> <!-- site-branding -->
<div class="u-cf"></div>
<?php
$rg_header_ticker = get_theme_mod('rg_header_ticker', true);
// modem receiving text like ticker to show the blog description.
$rg_description = get_bloginfo('description', 'display');
if($rg_description && ! $rg_header_ticker ) :
?>
<div id="rgcontainer"
<?php
if(! display_header_text() ) {
echo ' style="display:none" ';
}
?>
>
<?php echo esc_html($rg_description); ?>
</div><br />
<?php endif; ?>
<?php
// Handle the ticker parameters and add the ticker script and execution.
if($rg_description && $rg_header_ticker ) {
echo '<div id="rgcontainer"';
if(! display_header_text() ) {
echo ' style="display:none" ';
}
echo '></div>';
// add the ticker javascript and execution.
wp_add_inline_script(
'retrogeek-javascript',
'rg_terminal("rgcontainer", "' . esc_attr($rg_description ) . '", "site-description");',
'after'
);
}
?>
<!-- Menubar -->
<nav class="nav">
<?php
if(has_nav_menu('primary')) {
wp_nav_menu(
array(
'theme_location' => 'primary',
'menu_class' => 'main-nav',
'container_class' => 'main-nav',
)
);
}
?>
</nav>
</div><!-- eight columns -->
</div> <!-- row -->
</header><!-- .site-header -->
<div id="content" class="site-content">

View file

@ -0,0 +1,302 @@
<?php
/**
* Class and functions for theme customization screen
*
* @link http://codex.wordpress.org/Theme_Customization_API
*
* @package retrogeek
* @since 22.02.2021
*/
/**
* Class for customizer parameters.
*/
class RetroGeek_Customize {
/**
* This hooks into 'customize_register' (available as of WP 3.4) and
* adds fields and controlsallows
*
* @param WP_Customize_Manager $wp_customize a customizer object.
* @link http://ottopress.com/2012/how-to-leverage-the-theme-customizer-in-your-own-themes/
*/
public static function register( $wp_customize ) {
// Register new settings to the WP database.
$wp_customize->add_setting(
'textcolor',
array(
'default' => '#00ff00', // Default setting/value to save.
'type' => 'theme_mod', // Is this an 'option' or a 'theme_mod'?
'capability' => 'edit_theme_options', // Optional. Special permissions for accessing this setting.
'transport' => 'refresh', // What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)?
'sanitize_callback' => 'sanitize_hex_color', // callback to sanitize input values.
)
);
// Define the control itself (which links a setting to a section and renders the HTML controls).
$wp_customize->add_control(
new WP_Customize_Color_Control( // Instantiate the color control class.
$wp_customize, // Pass the $wp_customize object (required).
'retrogeek_textcolor', // Set a unique ID for the control.
array(
'label' => __( 'Text Color', 'retrogeek' ), // Admin-visible name of the control.
'settings' => 'textcolor', // Which setting to load and manipulate (serialized is okay).
'priority' => 10, // Determines the order this control appears in for the specified section.
'section' => 'colors', // ID of the section this control should render in (can be one of yours, or a WordPress default section).
)
)
);
$wp_customize->add_setting(
'link_textcolor',
array(
'default' => '#74f774',
'type' => 'theme_mod',
'capability' => 'edit_theme_options',
'transport' => 'refresh',
'sanitize_callback' => 'sanitize_hex_color',
)
);
// Define the control itself (which links a setting to a section and renders the HTML controls).
$wp_customize->add_control(
new WP_Customize_Color_Control(
$wp_customize,
'retrogeek_link_textcolor',
array(
'label' => __( 'Link Color', 'retrogeek' ),
'settings' => 'link_textcolor',
'priority' => 11,
'section' => 'colors',
'sanitize_callback' => 'sanitize_hex_color',
)
)
);
$wp_customize->add_setting(
'rg_header_ascii',
array(
'default' => false,
'type' => 'theme_mod',
'capability' => 'edit_theme_options',
'transport' => 'refresh',
'sanitize_callback' => array( 'RetroGeek_Customize', 'sanitize_checkbox' ),
)
);
// Define the control itself (which links a setting to a section and renders the HTML controls).
$wp_customize->add_control(
new WP_Customize_Control(
$wp_customize,
'retrogeek_header_ascii',
array(
'label' => __( 'Title as ASCII-Art?', 'retrogeek' ),
'settings' => 'rg_header_ascii',
'priority' => 10,
'section' => 'title_tagline',
'type' => 'checkbox',
'description' => __( 'If activated converts the blog title to a ASCII-Art representation', 'retrogeek' ),
)
)
);
$wp_customize->add_setting(
'rg_header_ticker',
array(
'default' => true,
'type' => 'theme_mod',
'capability' => 'edit_theme_options',
'transport' => 'refresh',
'sanitize_callback' => array( 'RetroGeek_Customize', 'sanitize_checkbox' ),
)
);
// Define the control itself (which links a setting to a section and renders the HTML controls).
$wp_customize->add_control(
new WP_Customize_Control(
$wp_customize,
'rg_header_ticker',
array(
'label' => __( 'Retro-Ticker for Subtitle?', 'retrogeek' ),
'settings' => 'rg_header_ticker',
'priority' => 14,
'section' => 'title_tagline',
'type' => 'checkbox',
'description' => __( 'If activated, show the tagline in a letter by letter way, like on a terminal in the 80s. Geeky.', 'retrogeek' ),
)
)
);
$wp_customize->add_setting(
'rg_logo_radio',
array(
'capability' => 'edit_theme_options',
'default' => 'snail',
'transport' => 'refresh',
'sanitize_callback' => array( 'RetroGeek_Customize', 'sanitize_logo_radio' ),
)
);
$wp_customize->add_control(
'rg_logo_radio',
array(
'type' => 'radio',
'section' => 'title_tagline',
'label' => __( 'ASCII-Art Logo', 'retrogeek' ),
'description' => __( 'Select your ASCII-Art logo.', 'retrogeek' ),
'priority' => 55,
'choices' => array(
'snail' => __( 'Snail', 'retrogeek' ),
'kilroy' => __( 'Kilroy', 'retrogeek' ),
'tux' => __( 'Tux', 'retrogeek' ),
'user' => __( 'Userdefined', 'retrogeek' ),
'none' => __( 'None', 'retrogeek' ),
),
)
);
$wp_customize->add_setting(
'rg_logo_userdefined',
array(
'capability' => 'edit_theme_options',
'default' => '',
'sanitize_callback' => 'sanitize_textarea_field',
)
);
$wp_customize->add_control(
'rg_logo_userdefined',
array(
'type' => 'textarea',
'section' => 'title_tagline',
'label' => __( 'Custom ASCII-Art Logo', 'retrogeek' ),
'description' => __( 'This is to have your own ASCII-Art Logog in the header of the site.', 'retrogeek' ),
'priority' => 56,
)
);
$wp_customize->add_setting(
'rg_homepage_searchform',
array(
'default' => true,
'type' => 'theme_mod',
'capability' => 'edit_theme_options',
'transport' => 'refresh',
'sanitize_callback' => array( 'RetroGeek_Customize', 'sanitize_checkbox' ),
)
);
// Define the control itself (which links a setting to a section and renders the HTML controls).
$wp_customize->add_control(
new WP_Customize_Control(
$wp_customize,
'rg_homepage_searchform',
array(
'label' => __( 'Toggle searchform', 'retrogeek' ),
'settings' => 'rg_homepage_searchform',
'priority' => 10,
'section' => 'static_front_page',
'type' => 'checkbox',
'description' => __( 'If activated shows a searchform in the menu bar', 'retrogeek' ),
)
)
);
$wp_customize->add_setting(
'rg_homepage_metadata',
array(
'default' => true,
'type' => 'theme_mod',
'capability' => 'edit_theme_options',
'transport' => 'refresh',
'sanitize_callback' => array( 'RetroGeek_Customize', 'sanitize_checkbox' ),
)
);
// Define the control itself (which links a setting to a section and renders the HTML controls).
$wp_customize->add_control(
new WP_Customize_Control(
$wp_customize,
'retrogeek_homepgae_metadata',
array(
'label' => __( 'Toggle metadata', 'retrogeek' ),
'settings' => 'rg_homepage_metadata',
'priority' => 10,
'section' => 'static_front_page',
'type' => 'checkbox',
'description' => __( 'If activated shows metadata about posts', 'retrogeek' ),
)
)
);
}
/**
* This will output the custom WordPress settings fro CSS to the WP head.
*
* Used by hook: 'wp_enqueue_script'
*/
public static function header_output() {
$m1 = get_theme_mod( 'textcolor', '#00ff00' );
$m2 = get_theme_mod( 'link_textcolor', '#74f774' );
$m3 = get_theme_mod( 'background_color', '#232323' );
$m4 = get_theme_mod( 'header_textcolor', '#00ff00' );
// Work around some WordPress special effects.
if ( false === strpos( $m1, '#' ) ) {
$m1 = '#' . $m1;
}
if ( false === strpos( $m2, '#' ) ) {
$m2 = '#' . $m2;
}
if ( false === strpos( $m3, '#' ) ) {
$m3 = '#' . $m3;
}
if ( false === strpos( $m4, '#' ) ) {
$m4 = '#' . $m4;
}
$css_str = "/* Customizer CSS */\n";
$css_str .= ":root {\n";
$css_str .= esc_attr( "--rg-text-color: $m1;\n" );
$css_str .= esc_attr( "--rg-link-text-color: $m2;\n" );
$css_str .= esc_attr( "--rg-background-color: $m3;\n" );
$css_str .= esc_attr( "--rg-header-text-color: $m4;\n" );
$css_str .= "}\n";
$css_str .= "/* /Customizer CSS */\n";
return $css_str;
}
/**
* Sanitize radio button input
*
* @param string $input string to sanitize.
* @param object $setting radio object.
**/
public static function sanitize_logo_radio( $input, $setting ) {
// Ensure input is a slug.
$input = sanitize_key( $input );
// Get list of choices from the control associated with the setting.
$choices = $setting->manager->get_control( $setting->id )->choices;
// If the input is a valid key, return it; otherwise, return the default.
return ( array_key_exists( $input, $choices ) ? $input : $setting->default );
}
/**
* Sanitize check box
*
* @param string $input String to sanitize.
**/
public static function sanitize_checkbox( $input ) {
// returns true if checkbox is checked.
return ( ( isset( $input ) && true === $input ) ? true : false );
}
}

View file

@ -0,0 +1,412 @@
<?php
/**
* Class to read figlet fonts and convert text ot ASCII-Art.
* Based on the classes from evgeny Stepanischev.
* Project home page (Russian): http://bolk.exler.ru/files/figlet/
*
* @package retrogeek
* @since 22.02.2021
*/
/**
* Class for Figlet.
*/
class Retrogeek_Text_Figlet {
/**
* Height of a letter
*
* @var integer
*
* @access private
*/
private $height = 0;
/**
* Letter baseline
*
* @var integer
*
* @access private
*/
private $oldlayout = 0;
/**
* Flag - RTL (right to left) or LTR (left to right) text direction
*
* @var integer
*
* @access private
*/
private $rtol = 0;
/**
* Information about special 'hardblank' character
*
* @var integer
*
* @access private
*/
private $hardblank = 0;
/**
* Is used for keeping font
*
* @var array
*
* @access private
*/
private $font = array();
/**
* Flag is true if smushing occured in letters printing cycle
*
* @var integer
*
* @access private
*/
private $smush_flag = 0;
/**
* Load user font. Must be invoked first.
*
* @param string $filename font file name.
* @param bool $loadgerman (optional) load German character set or not.
* @access public
* @throws \Exception File not found and file format exception.
* @return error or true for success.
*/
public function load_font( $filename, $loadgerman = true ) {
$this->font = array();
if ( ! file_exists( $filename ) ) {
throw new Exception( 'File is not found', 1 );
}
if ( is_readable( $filename ) ) {
$wpfs = new WP_Filesystem_Direct( array() );
$fc = explode( "\n", $wpfs->get_contents( $filename ) );
/**
* Schema: flf2a$ 6 5 20 15 3 0 143 229
* | | | | | | | | | |
* / / | | | | | | | \
* Signature / / | | | | | \ Codetag_Count
* Hardblank / / | | | \ Full_Layout
* Height / | | \ Print_Direction
* Baseline / \ Comment_Lines
* Max_Length Old_Layout
*/
$header = explode( ' ', $fc[0] );
array_shift( $fc );
if ( substr( $header[0], 0, 5 ) !== 'flf2a' ) {
throw new Exception( 'Unknown FIGlet font format.', 3 );
}
list ( $this->hardblank, $this->height, , , $this->oldlayout, $cmt_count, $this->rtol ) = $header;
$this->hardblank = substr( $this->hardblank, -1, 1 );
for ( $i = 0; $i < $cmt_count; $i++ ) {
array_shift( $fc );
}
// ASCII charcters.
for ( $i = 32; $i < 127; $i++ ) {
$this->font[ $i ] = $this->char( $fc );
}
foreach ( array( 91, 92, 93, 123, 124, 125, 126 ) as $i ) {
if ( $loadgerman ) {
$letter = $this->char( $fc );
// Invalid character but main font is loaded and I can use it.
if ( false === $letter ) {
return true;
}
// Load if it is not blank only.
if ( trim( implode( '', $letter ) ) !== '' ) {
$this->font[ $i ] = $letter;
}
} else {
$this->skip( $fc );
}
}
// Extented characters.
for ( $n = 0; ! empty( $fc ); $n++ ) {
list ($i) = explode( ' ', rtrim( $fc[0] ), 2 );
array_shift( $fc );
if ( '' === $i ) {
continue;
}
// If comment.
if ( preg_match( '/^\-0x/i', $i ) ) {
$this->skip( $fc );
} else {
// If Unicode.
if ( preg_match( '/^0x/i', $i ) ) {
$i = hexdec( substr( $i, 2 ) );
} else {
// If octal.
if ( '0' === $i[0] && '0' !== $i || substr( $i, 0, 2 ) === '-0' ) {
$i = octdec( $i );
}
}
$letter = $this->char( $fc );
// Invalid character but main font is loaded and I can use it.
if ( false === $letter ) {
return true;
}
$this->font[ $i ] = $letter;
}
}
return true;
} else {
throw new Exception( 'Cannot open font file', 2 );
}
}
/**
* Print string using font loaded by load_Font method
*
* @param string $str string for printing.
* @param bool $inhtml (optional) output mode - HTML (true) or plain text (false).
* @access public
* @return string contains
*/
public function line_echo( $str, $inhtml = false ) {
$out = array();
$sl = strlen( $str );
for ( $i = 0; $i < $sl; $i++ ) {
// Pseudo Unicode support.
if ( substr( $str, $i, 2 ) === '%u' ) {
$ss = substr( $str, $i + 2, 4 );
$lt = hexdec( $ss );
$i += 5;
} else {
$lt = ord( $str[ $i ] );
}
$hb = preg_quote( $this->hardblank, '/' );
$sp = "$hb\\x00\\s";
// If chosen character not found try to use default.
// If default character is not defined skip it..
if ( ! isset( $this->font[ $lt ] ) ) {
if ( isset( $this->font[0] ) ) {
$lt = 0;
} else {
continue;
}
}
for ( $j = 0; $j < $this->height; $j++ ) {
$line = $this->font[ $lt ][ $j ];
// Replace hardblanks.
if ( isset( $out[ $j ] ) ) {
if ( $this->rtol ) {
$out[ $j ] = $line . $out[ $j ];
} else {
$out[ $j ] .= $line;
}
} else {
$out[ $j ] = $line;
}
}
if ( $this->oldlayout > -1 && $i ) {
// Calculate minimal distance between two last letters.
$mindiff = -1;
for ( $j = 0; $j < $this->height; $j++ ) {
if ( preg_match( "/\S(\s*\\x00\s*)\S/", $out[ $j ], $r ) ) {
$mindiff = -1 === $mindiff ? strlen( $r[1] ) : min( $mindiff, strlen( $r[1] ) );
}
}
// Remove spaces between two last letter.
// dec mindiff for exclude \x00 symbol.
if ( --$mindiff > 0 ) {
for ( $j = 0; $j < $this->height; $j++ ) {
if ( preg_match( "/\\x00(\s{0,{$mindiff}})/", $out[ $j ], $r ) ) {
$l = strlen( $r[1] );
$b = $mindiff - $l;
$out[ $j ] = preg_replace( "/\s{0,$b}\\x00\s{{$l}}/", "\0", $out[ $j ], 1 );
}
}
}
// Smushing.
$this->smush_flag = 0;
for ( $j = 0; $j < $this->height; $j++ ) {
$out[ $j ] = preg_replace_callback( "#([^$sp])\\x00([^$sp])#", array( &$this, 'rep' ), $out[ $j ] );
}
// Remove one space if smushing.
// and remove all \x00 except tail whenever.
if ( $this->smush_flag ) {
$pat = array( "/\s\\x00(?!$)|\\x00\s/", "/\\x00(?!$)/" );
$rep = array( '', '' );
} else {
$pat = "/\\x00(?!$)/";
$rep = '';
}
for ( $j = 0; $j < $this->height; $j++ ) {
$out[ $j ] = preg_replace( $pat, $rep, $out[ $j ] );
}
}
}
$trans = array(
"\0" => '',
$this->hardblank => ' ',
);
$str = strtr( implode( "\n", $out ), $trans );
if ( $inhtml ) {
return '<span style="white-space: nowrap;">' . nl2br( str_replace( ' ', '&nbsp;', htmlspecialchars( $str, ENT_COMPAT, 'UTF-8' ) ) ) . '</span>';
}
return $str;
}
/**
* It is preg_replace callback function that makes horizontal letter smushing
*
* @param array $r array for horizontal smushing.
* @return string
* @access private
*/
private function rep( $r ) {
if ( $this->oldlayout & 1 && $r[1] === $r[2] ) {
$this->smush_flag = 1;
return $r[1];
}
if ( $this->oldlayout & 2 ) {
$symb = '|/\\[]{}()<>';
if ( '_' === $r[1] && strpos( $symb, $r[2] ) !== false ||
'_' === $r[2] && strpos( $symb, $r[1] ) !== false ) {
$this->smush_flag = 1;
return $r[1];
}
}
if ( $this->oldlayout & 4 ) {
$classes = '|/\\[]{}()<>';
$left = strpos( $classes, $r[1] );
if ( false !== $left ) {
$right = strpos( $classes, $r[2] );
if ( false !== $right ) {
$this->smush_flag = 1;
return $right > $left ? $r[2] : $r[1];
}
}
}
if ( $this->oldlayout & 8 ) {
$t = array(
'[' => ']',
']' => '[',
'{' => '}',
'}' => '{',
'(' => ')',
')' => '(',
);
if ( isset( $t[ $r[2] ] ) && $r[1] === $t[ $r[2] ] ) {
$this->smush_flag = 1;
return '|';
}
}
if ( $this->oldlayout & 16 ) {
$t = array(
'/\\' => '|',
'\\/' => 'Y',
'><' => 'X',
);
if ( isset( $t[ $r[1] . $r[2] ] ) ) {
$this->smush_flag = 1;
return $t[ $r[1] . $r[2] ];
}
}
if ( $this->oldlayout & 32 ) {
if ( $r[1] === $r[2] && $r[1] === $this->hardblank ) {
$this->smush_flag = 1;
return $this->hardblank;
}
}
return $r[1] . "\00" . $r[2];
}
/**
* Function loads one character in the internal array from file
*
* @param resource $fp handle of font file.
* @return mixed lines of the character or false if foef occured.
* @access private
*/
private function char( &$fp ) {
$out = array();
for ( $i = 0; $i < $this->height; $i++ ) {
if ( empty( $fp ) ) {
return false;
}
$line = rtrim( $fp[0], "\r\n" );
array_shift( $fp );
if ( preg_match( '/(.){1,2}$/', $line, $r ) ) {
$line = str_replace( $r[1], '', $line );
}
$line .= "\x00";
$out[] = $line;
}
return $out;
}
/**
* Function for skipping one character in a font file
*
* @param resource $fp handle of font file.
* @return bool always return true
* @access private
*/
private function skip( &$fp ) {
for ( $i = 0; $i < $this->height && empty( $fp ); $i++ ) {
array_shift( $fp );
}
return true;
}
}

View file

@ -0,0 +1,103 @@
<?php
/**
* Class to create a text widget which displays a message as if it is send via an old slow modem.
*
* @package retrogeek
* @since 22.03.2021
*/
/**
* Class for Ticker-Widget.
*/
class Retrogeek_Ticker_Widget extends WP_Widget {
/**
* Constructor for Ticker-Widget.
*/
public function __construct() {
parent::__construct(
'retrogeek_ticket_widget',
__( 'RetroGeek Ticker-Widget', 'retrogeek' ),
array( 'description' => __( 'Ticker Widget which shows the text as it were received via a slow modem connection', 'retrogeek' ) )
);
}
/**
* Function to display the widget.
*
* @param array $args - constains the widget arguments.
* @param array $instance - contains the instance variables of the widget.
*/
public function widget( $args, $instance ) {
$title = apply_filters( 'widget_title', $instance['title'] );
$tickertext = apply_filters( 'widget_title', $instance['tickertext'] );
$allowed_tags = wp_kses_allowed_html( 'post' );
// before and after widget arguments are defined by themes.
echo wp_kses( $args['before_widget'], $allowed_tags );
if ( ! empty( $title ) ) {
echo wp_kses( $args['before_title'] . esc_attr( $title ) . $args['after_title'], $allowed_tags );
}
// Add the tickertext and ticker call.
if ( ! empty( $tickertext ) ) {
echo '<div class="rg_tickertext" id="' . esc_attr( $this->id ) . '"></div><br />';
// add the ticker javascript and execution.
wp_add_inline_script(
'retrogeek-javascript',
'rg_terminal("' . esc_attr( $this->id ) . '", "' . esc_attr( $tickertext ) . '", "site-description, rg_tickertext" );',
'after'
);
}
echo wp_kses( $args['after_widget'], $allowed_tags );
}
/**
* Function to display the widget backend.
*
* @param array $instance - contains the instance variables of the widget.
*/
public function form( $instance ) {
if ( isset( $instance['title'] ) ) {
$title = $instance['title'];
} else {
$title = __( 'New title', 'retrogeek' );
}
if ( isset( $instance['tickertext'] ) ) {
$tickertext = $instance['tickertext'];
} else {
$tickertext = __( 'New tickertext', 'retrogeek' );
}
// Widget admin form.
?>
<p>
<label for="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>"><?php echo esc_html__( 'Title:', 'retrogeek' ); ?></label>
<input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'title' ) ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>" />
</p>
<p>
<label for="<?php echo esc_attr( $this->get_field_id( 'tickertext' ) ); ?>"><?php echo esc_html__( 'Tickertext:', 'retrogeek' ); ?></label>
<textarea class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'tickertext' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'tickertext' ) ); ?>"><?php echo esc_html( $tickertext ); ?></textarea>
</p>
<?php
}
/**
* Function to update the widget data replacing the old values with the new values.
*
* @param array $new_instance - new valkues of widget instance.
* @param array $old_instance - old values of widget instance.
*/
public function update( $new_instance, $old_instance ) {
$instance = array();
$instance['title'] = ( ! empty( $new_instance['title'] ) ) ? wp_strip_all_tags( $new_instance['title'] ) : '';
$instance['tickertext'] = ( ! empty( $new_instance['tickertext'] ) ) ? wp_strip_all_tags( $new_instance['tickertext'] ) : '';
return $instance;
}
// Class retrogeek_ticker_widget ends here.
}

1295
inc/slant.flf Normal file

File diff suppressed because it is too large Load diff

135
index.php Normal file
View file

@ -0,0 +1,135 @@
<?php
/**
****************************************************************************
** RETROGEEK RELOADED SOURCE FILE **
** Copyright (c) 2021-2022 Tuxlog **
** Copyright (c) 2024 JeremyStarTM & Contributors **
** Licensed under the GNU General Public License v3 **
****************************************************************************
** 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/>. **
****************************************************************************
** index.php (Main theme file) **
****************************************************************************
*/
?>
<?php
get_header();
?>
<main id="main" class="site-main">
<div class="row">
<div class="two columns">&nbsp;</div>
<div id="primary" class="eight columns">
<article class="content-area">
<?php
if(have_posts()):
while(have_posts()):
the_post();
?>
<div id="post1-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php if(has_post_thumbnail()):?>
<div id="thumbnail-post-<?php the_ID(); ?>" class="retrogeek-thumbnail">
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
<?php the_post_thumbnail('medium'); ?>
</a>
</div>
<?php endif; ?>
<div class="entry-right">
<header class="entry-header">
<h5 class="entry-title" id="post-<?php the_ID(); ?>"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h5>
</header>
<?php if(! is_singular() ) : ?>
<div class="entry">
<?php the_excerpt(); ?>
<?php wp_link_pages(); ?>
</div>
<?php endif; ?>
<div class="metadata">
<?php if(! is_singular() ) : ?>
<span class="u-pull-right" ><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_date(); ?></a></span>
<?php else : ?>
<?php
the_content(__('Weiterlesen...', 'retrogeek'));
// If comments are open or we have at least one comment, load up the comment template.
if(comments_open() || get_comments_number() ) {
comments_template();
}
if(is_singular('attachment')) {
// Parent post navigation.
the_post_navigation(
array(
'prev_text' => _x('<span class="meta-nav">Unter </span><span class="post-title">%title</span><span class="meta-nav"> veröffentlicht</span>', 'Parent post link', 'retrogeek' ),
)
);
}
wp_link_pages(
array(
'before' => '<nav class="page-links" aria-label="' . esc_attr__('Page', 'retrogeek' ) . '">',
'after' => '</nav>',
/* translators: %: page number. */
'pagelink' => esc_html__('Seite %', 'retrogeek' ),
)
);
?>
<div class="clearfix"></div>
<?php if(get_theme_mod('rg_homepage_metadata', true)) : ?>
<hr>
<?php if(is_single() ) : ?>
<p><span class="linkcat"><?php esc_html_e('Kategorie(n): ', 'retrogeek'); ?> <?php the_category(','); ?> </span> - @ <?php the_date(); ?> <?php the_time(); ?> <?php edit_post_link(__('Bearbeiten', 'retrogeek')); ?></p>
<p class="taglink"><?php the_tags(); ?></p>
<?php else : ?>
<p><?php esc_html_e('Veröffentlicht', 'retrogeek'); ?> @ <?php the_date(); ?> <?php the_time(); ?> <?php edit_post_link(__('Bearbeiten', 'retrogeek')); ?></p>
<?php endif; ?>
<?php endif; ?>
<?php endif; ?>
</div>
</div> <!-- entry-right -->
<div class="u-cf"></div>
</div> <!-- post1 -->
<?php
endwhile;
else :
?>
<?php get_template_part('content', 'none'); ?>
<?php endif; ?>
<div class="article-footer"><hr></div>
</article>
</div><!-- eight columns -->
</div><!-- row -->
<div class="row">
<div class="two columns">&nbsp;</div>
<div id="pagenav" class="eight columns">
<?php
// Previous/next page navigation.
the_posts_pagination(
array(
'before_page_number' => '<span class="meta-nav screen-reader-text">' . __('Page', 'retrogeek' ) . ' </span>',
'ascreen_reader_text' => '&nbsp;',
)
);
?>
</div><!-- eight columns -->
</div><!-- row -->
</main><!-- .site-main -->
<?php get_footer(); ?>

189
languages/retrogeek.pot Normal file
View file

@ -0,0 +1,189 @@
# Copyright (C) 2021 tuxlog
# This file is distributed under the GNU General Public License v2 or later.
msgid ""
msgstr ""
"Project-Id-Version: RetroGeek 0.2\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/theme/retrogeek\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2021-03-13T10:19:21+01:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: WP-CLI 2.4.0\n"
"X-Domain: retrogeek\n"
#. Theme Name of the theme
msgid "RetroGeek"
msgstr ""
#. Theme URI of the theme
msgid "https://tuxlog.de/retrogeek/"
msgstr ""
#. Description of the theme
msgid "A lightweight, minimal, fast and geeky retro theme remembering the good old terminal times"
msgstr ""
#. Author of the theme
msgid "tuxlog"
msgstr ""
#. Author URI of the theme
msgid "https://tuxlog.de/"
msgstr ""
#. translators: 1: heading for comments
#: comments.php:33
msgctxt "comments title"
msgid "One thought on &ldquo;%s&rdquo;"
msgstr ""
#. translators: 1: Number of comments, 2: Post title.
#: comments.php:47
msgctxt "comments title"
msgid "%1$s thought on &ldquo;%2$s&rdquo;"
msgid_plural "%1$s thoughts on &ldquo;%2$s&rdquo;"
msgstr[0] ""
msgstr[1] ""
#: comments.php:87
msgid "Comments are closed."
msgstr ""
#: footer.php:47
msgid "https://wordpress.org/"
msgstr ""
#. translators: %s: WordPress
#: footer.php:50
msgid "Proudly powered by %s and RetroGeek-Theme"
msgstr ""
#: functions.php:178
msgid "Mainmenu"
msgstr ""
#: functions.php:189
msgid "Footer left"
msgstr ""
#: functions.php:200
msgid "Footer middle"
msgstr ""
#: functions.php:211
msgid "Footer right"
msgstr ""
#: header.php:35
msgid "Skip to content"
msgstr ""
#: inc/class-retrogeek-customize.php:41
msgid "Text Color"
msgstr ""
#: inc/class-retrogeek-customize.php:66
msgid "Link Color"
msgstr ""
#: inc/class-retrogeek-customize.php:92
msgid "Title as ASCII-Art?"
msgstr ""
#: inc/class-retrogeek-customize.php:97
msgid "If activated converts the blog title to a ASCII-Art representation"
msgstr ""
#: inc/class-retrogeek-customize.php:119
msgid "Retro-Ticker for Subtitle?"
msgstr ""
#: inc/class-retrogeek-customize.php:124
msgid "If activated, show the tagline in a letter by letter way, like on a terminal in the 80s. Geeky."
msgstr ""
#: inc/class-retrogeek-customize.php:144
msgid "ASCII-Art Logo"
msgstr ""
#: inc/class-retrogeek-customize.php:145
msgid "Select your ASCII-Art logo."
msgstr ""
#: inc/class-retrogeek-customize.php:148
msgid "Snail"
msgstr ""
#: inc/class-retrogeek-customize.php:149
msgid "Kilroy"
msgstr ""
#: inc/class-retrogeek-customize.php:150
msgid "Tux"
msgstr ""
#: inc/class-retrogeek-customize.php:151
msgid "Userdefined"
msgstr ""
#: inc/class-retrogeek-customize.php:152
msgid "None"
msgstr ""
#: inc/class-retrogeek-customize.php:171
msgid "Custom ASCII-Art Logo"
msgstr ""
#: inc/class-retrogeek-customize.php:172
msgid "This is to have your own ASCII-Art Logog in the header of the site."
msgstr ""
#: index.php:56
msgid "Continue reading"
msgstr ""
#: index.php:68
msgctxt "Parent post link"
msgid "<span class=\"meta-nav\">Published in</span><span class=\"post-title\">%title</span>"
msgstr ""
#: index.php:75
#: index.php:116
msgid "Page"
msgstr ""
#. translators: %: page number.
#: index.php:78
msgid "Page %"
msgstr ""
#: index.php:85
msgid "Filed under: "
msgstr ""
#: index.php:85
#: index.php:88
msgid "Edit This"
msgstr ""
#: index.php:88
msgid "Published"
msgstr ""
#: searchform.php:12
msgctxt "label"
msgid "Search for:"
msgstr ""
#: searchform.php:13
msgctxt "placeholder"
msgid "Search &hellip;"
msgstr ""
#: searchform.php:15
msgctxt "submit button"
msgid "Search"
msgstr ""

35
searchform.php Normal file
View file

@ -0,0 +1,35 @@
<?php
/**
****************************************************************************
** RETROGEEK RELOADED SOURCE FILE **
** Copyright (c) 2021-2022 Tuxlog **
** Copyright (c) 2024 JeremyStarTM & Contributors **
** Licensed under the GNU General Public License v3 **
****************************************************************************
** 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/>. **
****************************************************************************
** searchform.php (Search form template) **
** **
** This source file is a template for displaying search forms. **
****************************************************************************
*/
?>
<form role="search" method="get" class="search-form" action="<?php echo esc_url(home_url('/')); ?>">
<label>
<span class="screen-reader-text"><?php echo esc_attr_x('Suchen nach:', 'label', 'retrogeek'); ?></span>
<input type="search" class="search-field" placeholder="<?php echo esc_attr_x('Gebe deine Suchanfrage hier ein...', 'placeholder', 'retrogeek'); ?>" value="<?php echo get_search_query(); ?>" name="s" />
</label>
<button type="submit" class="search-submit"><span class="screen-reader-text"><?php echo esc_attr_x('Suchen', 'submit button', 'retrogeek'); ?></span></button>
</form>

373
style.css Normal file
View file

@ -0,0 +1,373 @@
/*
****************************************************************************
** RETROGEEK RELOADED SOURCE FILE **
** Copyright (c) 2021-2022 Tuxlog **
** Copyright (c) 2024 JeremyStarTM & Contributors **
** Licensed under the GNU General Public License v3 **
****************************************************************************
** 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/>. **
****************************************************************************
** searchform.php (Search form template) **
** **
** This source file is a template for displaying search forms. **
****************************************************************************
*/
/* whenever we need to clear floats */
.clearfix { content:""; display:table; clear:both; }
/* position post thumbnails */
.retrogeek-thumbnail {float:left; padding-right: 20px;}
body { background-color: var(--rg-background-color);
color: var(--rg-text-color);
}
.site-branding,
.asite-description,
.site-info,
.site-title {
align-items: center;
justify-content: center;
display: flex;
}
@media (max-width: 700px) {
#asciiartlogo { font-size: 10px; }
}
.site-description {margin-bottom: 30px;}
.site-title > a >pre { font-size:16px;}
/* Hide short text by default (resolution > 600px) */
.site-title-mob { display: none; }
/* When resolution <= 600px, hide full text and show short text */
@media (max-width: 600px) {
.site-title { display: none; }
.site-title-mob { display: inline-block; }
}
/* some space */
.site-footer { margin-top: 50px; }
.entry-right { padding-bottom: 55px;}
/* code tag wrap amd color */
code { display: block; overflow-x: auto; padding: .5em; background: #444444; }
/* add border to sticky post */
.sticky { border: #ffffff solid 2px; padding:10px; margin-bottom: 30px;}
/* make quotes italic */
blockquote { font-style: italic; }
/* custom logo */
.custom-logo { max-width: 170px; }
/* Menu bar start */
.navigation{ position: relative; z-index: 1000; padding: 11px 0 0; }
.nav{ margin: 0; padding: 0; }
div.main-nav { background-color: #444444; min-height: 31px; margin: 0 0 25px; }
.nav li{
float: left;
font-size: 16px;
line-height: 26px;
margin: 0 38px 0 0;
position: relative;
list-style-type: none;
background-color: #444444;
}
.nav li:last-child{
margin: 0;
}
.nav li a{
color: var(--rg-text-color);
display: block;
-webkit-transition: all 0.3s ease-in-out;
-moz-transition: all 0.3s ease-in-out;
-ms-transition: all 0.3s ease-in-out;
-o-transition: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
}
.nav li a:hover, .nav li.current_page_item a{
color: var(--rg-link-text-color);
}
.nav li ul{
position: absolute;
width: 220px;
top: 23px;
left: 0;
background-color: #444444;
transform: scaleY(0);
transform-origin: 0 0 0;
transition: all 0.3s ease 0s;
visibility: hidden;
}
.nav li:hover > ul,
.nav li:focus-within ul{
transform: scale(1);
visibility: visible;
z-index: 1;
}
.nav li ul li{
float: none;
margin: 0;
font-size: 14px;
line-height: 22px;
border-top: 1px solid #aaaaaa;
}
.nav li ul li a{
padding: 10px 10px;
color: var(--rg-text-color);
}
.nav li ul li a:hover{
color: var(--rg-link-text-color);
}
/* end menubar */
/*
* style mobile top navigation menu
*/
.toggle-topnav {
display: none !important;
}
@media screen and ( max-width: 580px ) {
.main-nav { display: none; }
.toggle-topnav {
display: inline-block !important;
margin: 15px 15px 0px 15px;
font-size: 2em;
transition: color linear 0.15s;
}
a.toggle-topnav:link,
a.toggle-topnav:visited,
a.toggle-topnav:hover,
a.toggle-topnav:active {
text-decoration: none;
color: var(--rg-text-color);
}
.sub-menu { display: block !important; }
}
.top-nav {
display: block;
position: relative;
background: #444;
text-align: left;
}
.top-nav ul {
display: none;
overflow: auto;
top: 0px;
right: 0px;
z-index: 999;
padding-right: 15px;
background: #444;
font-size: 100% !important;
margin: 0.5rem 0.5rem 0.1rem 0.1rem;
}
.top-nav ul li {
float: none;
display: block;
position: relative;
top: 0px;
right: -15px;
min-width: 200px;
background: #444;
text-align: left;
}
.top-nav li:after {
content: none;
}
/* position footer widget areas */
.widget-area { float:left; width:33%;}
@media (max-width:767px) {
.widget-area{ position:relative; width:100%; }
}
/* WordPress classes */
.alignleft { display: inline; float: left; }
.alignright { display: inline; float: right; }
.aligncenter { display: block; margin-right: auto; margin-left: auto; }
blockquote.alignleft, .wp-caption.alignleft, img.alignleft { margin: 0.4em 1.6em 1.6em 0; }
blockquote.alignright, .wp-caption.alignright, img.alignright { margin: 0.4em 0 1.6em 1.6em; }
blockquote.aligncenter, .wp-caption.aligncenter, img.aligncenter { clear: both; margin-top: 0.4em; margin-bottom: 1.6em; }
.wp-caption.alignleft, .wp-caption.alignright, .wp-caption.aligncenter { margin-bottom: 1.2em; }
.wp-caption-text { color: var(--rg-text-color); font-family: "Monospace", sans-serif; font-size: 12px; font-size: 1.2rem; line-height: 1.5; padding: 0.5em 0; }
.gallery-caption { color: var(--rg-text-color); display: block; font-family: "Monospace", sans-serif; font-size: 12px; font-size: 1.2rem; line-height: 1.5; padding: 0.5em 0; }
.bypostauthor > article .fn:after { content: "\f304"; position: relative; top: 5px; left: 3px; }
.says, .screen-reader-text { clip: rect(1px, 1px, 1px, 1px); height: 1px; overflow: hidden; position: absolute !important; width: 1px; }
/* comment classes */
li.comment {list-style-type: none;}
div.comment-author { float:left; padding-right:10px;}
div.comment-author > cite { vertical-align:top; }
div.comment-meta:after {content:"";display:table; clear:both;}
div.reply {margin-bottom: 3em;}
div.comment-body > p {margin-bottom: 1em;}
.comment.odd {background-color: #444444}
input#submit.submit {color: var(--rg-link-text-color);}
textarea#comment { color: #000000;}
.comment-respond {margin-top: 40px;}
.nav-previous { float:left;}
.nav-next { float:right;}
div.nav-links:after {content:"";display:table; clear:both;}
/*
* Style the search form at the right side of the menu bar
*/
/* my-nav-menu-search menu item created in functions.php. Move it way over to the right */
.my-nav-menu-search {
float: right;
}
.my-nav-menu-search .search-form {
position: relative;
margin: 0;
}
/*Stop the display of the Search button*/
.my-nav-menu-search .search-submit {
display: none;
}
/* The "Search for" text is needed for screen readers, but we move it off screen, so we won't see it */
.my-nav-menu-search .search-form .screen-reader-text {
position: absolute;
left: -9999px;
overflow: hidden;
}
.search-field {
background-color: var(--rg-background-color) !important;
color: var(--rg-text-color);
}
.search-submit {
display:none;
}
/* Style the search input textbox */
.my-nav-menu-search .search-field {
border: none;
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
cursor: pointer;
height: 22px;
margin: 1px 0 1px 0;
padding: 0px;
position: relative;
-webkit-transition: width 400ms ease;
-moz-transition: width 400ms ease;
-o-transition: width 400ms ease;
transition: width 400ms ease;
width: 130px;
color: var(--rg-text-color);
}
::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
color: var(--rg-link-text-color);
opacity: 1; /* Firefox */
}
/* Reset nav width and search floating for mobile menu */
@media (max-width: 979px){
.navbar .nav .my-nav-menu-search {
float: left;
}
.navbar .nav {
width: auto;
}
}
/* skip to content link is hidden until it gets focus. */
.skip-link:focus {
clip: auto;
height: auto;
left: 6px;
top: 7px;
width: auto;
z-index: 100000;
position:relative !important;
}
/* make sure WordPress galleries have a correct clear at the end */
.gallery:after { content:""; display:table; clear:both; }
/* make sure tables are striped if applicable */
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
background-color: #444444;
}
/* formatting for the tickerwidget */
.rg_tickertext {
margin-right: 25px;
margin-bottom: 25px;
}
/* added some fixes for mobile view -thanks to Samuel - v0.6 */
/* position checkbox above text - comments and visitor not logged in */
.comment-form-cookies-consent label {
display: inline;
}
#wp-comment-cookies-consent {
margin-bottom: 0;
}
/* for mobile */
@media (max-width: 575.98px) {
/* beautify post thumbnail on mobile */
.retrogeek-thumbnail {
float: unset !important;
padding-right: 0 !important;
width: 100%;
margin-bottom: 2em;
}
.retrogeek-thumbnail img {
width: 100%;
height: auto;
object-fit: contain;
}
/* fix width of comment text input field */
#comment {
width: 348px;
}
}