zerosonesfun / flarum-featured-card
此包已被废弃且不再维护。未建议替代包。
一种BBCode,用于创建展示链接、页面、内容等的卡片。[featured url= title=可选 theme=可选]
1.0.3
2021-06-24 05:46 UTC
Requires
- flarum/core: ^1.0
README
Flarum 扩展。一种BBCode,用于在帖子中创建卡片以展示链接/页面等。BBCode: [featured url=]
可选属性包括 title=
和 theme=
。默认情况下,如果不添加主题名称,卡片将使用论坛的颜色。在首次发布中,还有一个名为 "rainbow"(即 theme=rainbow
)的主题来展示可能性。
使用所有参数的完整示例
[featured url=https://flarum.org title=Flarum theme=rainbow]Flarum is modern forum software which is minimal, light-weight, and fun to use. The community behind the software is vibrant and many developers contribute to the core code and extensions.[/featured]
具有最小(必需)属性的示例
[featured url=https://flarum.org]Flarum is modern forum software which is minimal, light-weight, and fun to use. The community behind the software is vibrant and many developers contribute to the core code and extensions.[/featured]
安装
composer require zerosonesfun/flarum-featured-card
更新
composer update zerosonesfun/flarum-featured-card
移除
composer remove zerosonesfun/flarum-featured-card