指南
- 介绍
- Contribute
- 部署
- 管理
- 高级
内部文档
扩展
- Main 核心概念
- 参考指南
- 进阶指南
- 更新指南
Themes
Flarum "themes" are just extensions. Typically, you'll want to use the Frontend
extender to register custom Less and JS. Of course, you can use other extenders too: for example, you might want to support settings to allow configuring your theme.
You can indicate that your extension is a theme by setting the "extra.flarum-extension.category" key to "theme". For example:
{
// other fields
"extra": {
"flarum-extension": {
"category": "theme"
}
}
// other fields
}
All this will do is show your extension in the "theme" section in the admin dashboard extension list.
Less Variable Customization
You can define new Less variables in your extension's Less files. There currently isn't an extender to modify Less variable values in the PHP layer, but this is planned for future releases.
Switching Between Themes
Flarum doesn't currently have a comprehensive system that would support switching between themes. This is planned for future releases.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论