konversation / theme
This package is abandoned and no longer maintained.
No replacement package was suggested.
There is no license information available for the latest version (dev-master) of this package.
simple theme support for laravel
dev-master
2014-08-30 23:09 UTC
Requires
- php: >=5.4.0
- illuminate/config: 4.2.*
- illuminate/console: 4.2.*
- illuminate/filesystem: 4.2.*
- illuminate/support: 4.2.*
- illuminate/view: 4.2.*
This package is not auto-updated.
Last update: 2021-02-28 08:45:57 UTC
README
simple theme support for laravel
Features
- Automatic view resolving to override templates in themes
- Asset management (publish assets to public or remove them, e.g. via artisan)
- Configurable paths for base, views and public
Usage
<?php use Konversation\Theme\ThemeProviderInterface; class KonversationThemeProvider implements ThemeProviderInterface { public function getIdentifier() { return 'niclasleonbock/konversation'; } public function getName() { return 'Konversation'; } public function getVersion() { return 'first one'; } public function getAuthorName() { return 'niclasleonbock'; } public function getAuthorEmail() { return 'me@bock.ga'; } public function getAuthorWebsite() { return 'https://bock.ga/'; } } Theme::register(new KonversationThemeProvider()); Theme::setTheme('niclasleonbock/konversation');
You can simply override views by placing them in app/themes/{vendor}/{name}/views
(default path).
By default, assets will be copied from app/themes/{vendor}/{name}/assets/*
to public/themes/{vendor}/{name}
using the artisan command theme:publish-assets
.
More documentation to come, so long, please refer to the source code.