Package Data | |
---|---|
Maintainer Username: | PaladinDev |
Package Create Date: | 2017-02-06 |
Package Last Update: | 2017-02-06 |
Language: | PHP |
License: | Unknown |
Last Refreshed: | 2024-12-23 03:29:25 |
Package Statistics | |
---|---|
Total Downloads: | 49 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 1 |
Total Forks: | 0 |
Total Open Issues: | 0 |
This packages enables themes to be installed using composer - in a consistant place seperate from an applications view directory.
Themes installed using this installer package creates a themes folder within the resources folder and thus can be used regardless of which actual laravel version is used (some laravel versions may need to add additional loading configuration for this path, eg. Laravel 4).
WIP:
{
"name": "yournamespace/laravel-{themename}",
"type": "laravel-community-theme",
"require": {
"paladindigital/laravel-theme-installer": "dev-master"
"paladindigital/laravel-theme-loader": "dev-master"
}
}
In order to enable user switching of themes they should use a consistent set of yields, slots and if applicable components.
This idea is inspired by wordpress hooks, laravel community themes should create standardised area's to allow custom 'plugins' to also interact with the theme.
We have defined some common ones below and welcome further community discussion on this via the issue board.
TODO
Since themes should be developed using Blade templates, child themes can easily be created by simply extending the master theme.
For example if you want to use the PaladinDigital Bootstrap template as a base simply create your master layout like so
yourtheme/master.blade.php
@extends('themes::paladindigital.laravel-bootstrap.master')