simplepleb/thememanager-module

Used to manage site themes for front and back end Laravel

Installs: 83

Dependents: 0

Suggesters: 7

Security: 0

Stars: 4

Watchers: 1

Forks: 2

Open Issues: 0

Language:Blade

Type:laravel-module

v1.64 2022-04-21 12:39 UTC

This package is auto-updated.

Last update: 2024-04-11 07:18:24 UTC


README

Theme Management (Front End) For Laravel CMS.

Foo

Latest Stable Version Total Downloads Latest Unstable Version License

Dashboard

Using the theme manager dashboard you can click to change the theme of the site. Themes are displayed with a screenshot, description and related information. By clicking 'Activate' your site (front-end) theme will be updated to use the selected theme.

If you choose to disable the theme, by clicking the 'disable' button on the dashboard, your site will only display the default Laravel login page if it exists.

Install

composer require simplepleb/thememanager-module

After Install

Publish the custom blade components. The following command will copy files to the folder. resources/views/components/buttons

php artisan vendor:publish --tag=theme-manager

Theme Views

Theme folders have json files that make it easy to use the correct view from your controller method. Take a look at pages.json in any of the theme folders for a better understanding.

Simple Previews

It is simple to preview any theme view page. Open the /thememanager/preview/{VIEW_PAGE}/{THEME_NAME} in your browser. The VIEW_PAGE value is the name of the blade template file you want to preview. The (optional) THEME_NAME allows you to preview any theme with ease. If THEME_NAME is not specified, the preview will use the default theme.

Screenshots

Dashboard

Screen Shot 2021-03-03 at 8 59 17 PM

Settings

Each theme can have its own settings - add settings and default values in the public/themes/{name}/custom_fields.json file - which will build the settings form and allow the end-user to modify variables and values used throughout the theme. Use these values inside your theme blade files and elsewhere.

Screen Shot 2021-05-02 at 2 10 02 PM