Extensions:Shop Quotes

From Lorekeeper Wiki
Revision as of 17:40, 23 August 2025 by Liwoyadan (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Shop Quotes
Description Allows adding dialogue-esque quotes to each shop.
Author(s) Min
Status Stable
Github extension/shop-quotes
LK Version 3.0.0
Contains a Migration






Lets site owners and staff able to create/edit shops to define a list of dialogue-esque quotes in the admin panel. When set, each visit to the shop's page will randomly pluck one of the available quotes and display them on the page with a typewriter-like effect.

Installation

Pull the branch, resolve any conflicts, and run php artisan migrate.

Configuration

By default quotes will display in a card component that appears below the shop's overall description, if quotes are set. The Javascript responsible for initializing the typewriter effect is found in resources/views/shops/shop.blade.php and specifically targets an element with the class quote that's within a parent that has the class quote-display. You can either move this container around in the blade itself or you can remove it and instead format it within the shop's description HTML from the admin panel.

You can remove the typewriter effect by just removing the Javascript and instead sticking {!! $shop->randomQuote !!} wherever in the blade you want the quote to be displayed.

Images

(Eventually...)

Troubleshooting

You can find me in, or ask for help, in the Lorekeeper Discord.