simplepleb / thememanager-module
Used to manage site themes for front and back end Laravel
Installs: 92
Dependents: 0
Suggesters: 7
Security: 0
Stars: 4
Watchers: 1
Forks: 1
Open Issues: 0
Language:Blade
Type:laravel-module
Requires
- php: ^8.0
- nwidart/laravel-modules: ^9.0
- simplepleb/themes: ~1.6
Suggests
- joshbrw/laravel-module-installer: Makes installing and updating modules simple
- simplepleb/article-module: Complete article post and category module
- simplepleb/comment-module: Add comments to site content
- simplepleb/content-module: Manage site content and front-facing pages
- simplepleb/menumaker-module: Build dynamic menus for your front and back end
- simplepleb/modulemanager-module: Manage modules easily
- simplepleb/tag-module: Add tags and taggables to content
- simplepleb/themes: A library of starter themes for your laravel project
- spatie/laravel-permission: To be able to set access by role and permissions
README
Theme Management (Front End) For Laravel CMS.
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
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.