Difference between revisions of "Extensions:Shop Quotes"
m Tag: 2017 source edit |
m Tag: 2017 source edit |
||
| Line 3: | Line 3: | ||
== Installation == | == Installation == | ||
| − | Pull the branch, resolve any conflicts, and run | + | Pull the branch, resolve any conflicts, and run <code>php artisan migrate</code>. |
== Configuration == | == 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 | + | 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 <code>resources/views/shops/shop.blade.php</code> and specifically targets an element with the class <code>quote</code> that's within a parent that has the class <code>quote-display</code>. 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 | + | You can remove the typewriter effect by just removing the Javascript and instead sticking <code>{!! $shop->randomQuote !!}</code> wherever in the blade you want the quote to be displayed. |
== Images == | == Images == | ||
(Eventually...) | (Eventually...) | ||
== Troubleshooting == | == Troubleshooting == | ||
You can find me in, or ask for help, in the Lorekeeper Discord. | You can find me in, or ask for help, in the Lorekeeper Discord. | ||
Latest revision as of 17:40, 23 August 2025
| 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.