Difference between revisions of "Extensions:Alternate Site Designs"

From Lorekeeper Wiki
Jump to navigation Jump to search
Tag: 2017 source edit
Tag: 2017 source edit
Line 18: Line 18:
 
* squished
 
* squished
 
* full width
 
* full width
I added a selection of fonts to use for ease of use, adding more would require some code knowledge but is not very difficult.
 
  
 
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 was added above under github if you want both! http://wiki.lorekeeper.me/index.php?title=Extensions:Theme_Manager
 
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 was added above under github if you want both! http://wiki.lorekeeper.me/index.php?title=Extensions:Theme_Manager
 +
 +
==== 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 ==
<!-- Are there known issues or errors that require user action? Who should they contact, and where, for support? -
+
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 ==
<!-- Do you have any images to show what it looks like in action? -->
+
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 ==
<!-- Any relevant other pages. You may consider linking to related extensions, for instance. -->
+
If this extension helped you, feel free to support me on [https://ko-fi.com/cylunny Kofi]!

Revision as of 23:15, 21 July 2024

Alternate Site Designs
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 x2
  • php 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 was added above under github if you want both! http://wiki.lorekeeper.me/index.php?title=Extensions:Theme_Manager

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!