linkrobins/html-widget
最新稳定版本:v1.0.0
Composer 安装命令:
composer require linkrobins/html-widget
包简介
HTML widget for fof/forum-widgets-core
README 文档
README
A simple HTML widget for Flarum 2.0, built as a widget for fof/forum-widgets-core. Same skeleton as linkrobins/shoutbox.
What it does
Adds one configurable HTML widget to the FoF Forum Widgets placement editor. Admin sets:
- Title — optional, shown above the body
- Icon — FontAwesome class (e.g.
fas fa-bullhorn) - HTML body — rendered raw, supports any markup including iframes
Drag and place it from the FoF Forum Widgets admin page like any other widget.
Requirements
- Flarum 2.0 or later
fof/forum-widgets-coreinstalled and enabled
Installation
composer require linkrobins/html-widget
php flarum cache:clear
In Flarum admin → Extensions, find Link Robins HTML Widget under the Forum Widgets category and enable it. Configure title/icon/body, then go to FoF Forum Widgets settings and place it where you want it.
Security note
The body is rendered via m.trust(...) — no sanitization. Anything an admin pastes will run on the forum. Only enable if you trust everyone with admin access.
License
MIT
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 9
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-05-10