oe800 / flarum-ext-bbcode-cards
在Flarum帖子中嵌入卡片和文章。
Requires
- flarum/core: ^0.1.0-beta.6
This package is not auto-updated.
Last update: 2024-09-20 18:54:12 UTC
README
BBCode Cards 扩展
将卡片添加到您的Flarum帖子。
安装
composer require oe800/flarum-ext-bbcode-cards
使用方法
对于小卡片:(更适合在手机上查看,使用帖子宽度的50%)
[CARD]{COLOR},{IMGURL},{TAG},{TITLE},{SUBTITLE},{TEXT}[/CARD]
对于中等卡片(不确定为什么我要制作中等尺寸,使用帖子宽度的75%)
[CARD2]{COLOR},{IMGURL},{TAG},{TITLE},{SUBTITLE},{TEXT}[/CARD2]
对于大卡片(使用帖子宽度的100%)
[CARD3]{COLOR},{IMGURL},{TAG},{TITLE},{SUBTITLE},{TEXT}[/CARD3]
示例
小卡片:(更适合在手机上查看,使用帖子宽度的50%)
[CARD]teal,https://unsplash.it/500,Hardware,Gigabyte Brix hit by UEFI vulnerabilities,Published on 4th April 2017 by Gareth Halfacree,Security researchers have discovered serious flaws in the firmware of Gigabyte's Brix small form factor (SFF) systems that allow malicious code to be written into firmware and stored even if you replace the system's storage device.[/CARD]
中等卡片:(不确定为什么我要制作中等尺寸,使用帖子宽度的75%)
[CARD2]brown,https://unsplash.it/600,Health,New Studies Showcase Key Health Benefits of Strawberries,Strawberries may help improve vascular health in at-risk adolescents,This is the first study to test the impact of freeze-dried strawberry powder (FDSP) on markers of vascular health in at-risk adolescents. Previous research in adults found a promising inverse relationship between FDSP consumption and the risk of cardiovascular disease.In a randomized, double-blind, crossover study, 25 overweight or obese males between ages 14-18 consumed 50 grams of FDSP or a calorically equivalent amount of control powder every day for a week. Before and after each test period, measures of vascular health were collected at baseline and one hour after FDSP intake.[/CARD2]
大卡片:(使用帖子宽度的100%)
[CARD3]salmon,https://unsplash.it/800/500,https://www.dnainfo.com/chicago/20170328/wicker-park/hot-shots-cafe-1242-n-milwaukee-ave-coffee-wifi-fruit-smoothies,technology,Coffee Shops Serve Laptop Users a New Blend,Cafes across the country reevaluating free Wi-Fi service,Barefoot Coffee Works rearranged its store to accommodate the growing number of people who want to "enjoy their cappuccino in a real ceramic cup." But more room for cappuccino guzzlers leaves less chairs for laptop wielders to spread out over four chairs and turn a cafe into a makeshift office for $5 a day. The Wall Street Journal says some coffee shops are struggling to support laptop users who camp out all day using their free Wi-Fi and electrical outlets and do not buy enough coffee and food to offset their costs.[/CARD3]
待办事项
使卡片更响应。尝试在一行中放入2或3张卡片。添加更多样式。