konversation / theme
此包已被废弃,不再维护。未建议替代包。
关于此包的最新版本(dev-master)没有可用的许可证信息。
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
laravel 的简单主题支持
特性
- 自动视图解析以覆盖主题中的模板
- 资产管理(通过 artisan 发布资产或移除它们,例如)
- 可配置的基础、视图和公开路径
使用方法
<?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');
您可以通过将它们放在 app/themes/{vendor}/{name}/views(默认路径)来简单地覆盖视图。
默认情况下,将使用 artisan 命令 theme:publish-assets 将资产从 app/themes/{vendor}/{name}/assets/* 复制到 public/themes/{vendor}/{name}。
更多文档即将到来,再见,请参考源代码。