Difference between revisions of "Extensions:Alternate Site Designs"
(Created page with "{{subst:Extension Page}}") Tag: 2017 source edit |
Tag: 2017 source edit |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | {{Extensioninfobox|title= | + | {{Extensioninfobox|title=Alternate Site Designs|desc=Allows you to pick from a couple of predefined site designs beside default LK, as well as change the fonts styles on site to fonts within a predefined selection - all via admin panel!|status=testing|github={{Github|user=cylunny|branch=extension/alternate-site-designs}}|LKVer=2.1.7|migration=yes|package=no}} |
− | + | ||
+ | Allows you to pick from a couple of predefined site designs beside default LK, as well as change the fonts styles on site to fonts within a predefined selection - all via admin panel! | ||
+ | |||
== Installation == | == Installation == | ||
− | < | + | * pull & deal with merge conflicts |
+ | * <code>php artisan migrate</code> | ||
+ | * <code>php artisan optimize</code> x2 | ||
+ | * <code>php artisan update-extension-tracker</code> | ||
+ | |||
== Configuration == | == Configuration == | ||
− | + | Nothing should be needed, it's all editable via admin panel. | |
+ | |||
== Usage == | == Usage == | ||
− | + | Once you ran all the usual commands, you should have a new section under Settings called Site Design. Go there to edit the site design! As of version 1.0.0, these site designs are included: | |
+ | * default | ||
+ | * headerless | ||
+ | * squished | ||
+ | * full width | ||
+ | |||
+ | Because this extension only changes site layout and fonts, not colors! As such it works beautifully with the [http://wiki.lorekeeper.me/index.php?title=Extensions:Theme_Manager theme manager extension] (by Uri, moif and me). A convenience merge can be found here: | ||
+ | https://github.com/Cylunny/lorekeeper/tree/merge/theme-manager-site-designs | ||
+ | |||
+ | |||
+ | |||
+ | ==== Fonts ==== | ||
+ | I added a selection of fonts to use for ease of use, adding more would require some code knowledge but is not very difficult. The gist of it would be: | ||
+ | * add a new font import in app.blade.php below ALTERNATE SITE FONTS | ||
+ | * add the name of your new font to the $fonts array in the SiteDesignController's getIndex()function | ||
+ | And it should work and show up as a selectable font. | ||
+ | |||
== Troubleshooting == | == Troubleshooting == | ||
− | + | We are never 100% safe from those pesky bugs. If you find something, feel free to contact me- I am cylunny on discord or toyhou.se! | |
== Images == | == Images == | ||
− | + | See here for available designs + examples on how it can look with the theme manager extension! | |
+ | https://imgur.com/a/Hwgbqlm | ||
== See Also == | == See Also == | ||
− | + | If this extension helped you, feel free to support me on [https://ko-fi.com/cylunny Kofi]! | |
− |
Latest revision as of 22:16, 21 July 2024
Description | Allows you to pick from a couple of predefined site designs beside default LK, as well as change the fonts styles on site to fonts within a predefined selection - all via admin panel! |
---|---|
Author(s) | Unknown Author |
Status | testing |
Github | extension/alternate-site-designs |
LK Version | 2.1.7 |
Contains a Migration | |
Allows you to pick from a couple of predefined site designs beside default LK, as well as change the fonts styles on site to fonts within a predefined selection - all via admin panel!
Installation
- pull & deal with merge conflicts
php artisan migrate
php artisan optimize
x2php artisan update-extension-tracker
Configuration
Nothing should be needed, it's all editable via admin panel.
Usage
Once you ran all the usual commands, you should have a new section under Settings called Site Design. Go there to edit the site design! As of version 1.0.0, these site designs are included:
- default
- headerless
- squished
- full width
Because this extension only changes site layout and fonts, not colors! As such it works beautifully with the theme manager extension (by Uri, moif and me). A convenience merge can be found here: https://github.com/Cylunny/lorekeeper/tree/merge/theme-manager-site-designs
Fonts
I added a selection of fonts to use for ease of use, adding more would require some code knowledge but is not very difficult. The gist of it would be:
- add a new font import in app.blade.php below ALTERNATE SITE FONTS
- add the name of your new font to the $fonts array in the SiteDesignController's getIndex()function
And it should work and show up as a selectable font.
Troubleshooting
We are never 100% safe from those pesky bugs. If you find something, feel free to contact me- I am cylunny on discord or toyhou.se!
Images
See here for available designs + examples on how it can look with the theme manager extension! https://imgur.com/a/Hwgbqlm
See Also
If this extension helped you, feel free to support me on Kofi!