
內容簡介
Modern Design Library 是一套為 WordPress Gutenberg 編輯器打造的區塊工具組,提供多種裝飾性區塊元件,全部採用純 PHP 註冊機制,無需 JavaScript 建置流程或 Node.js 工具鏈即可運作。
【主要功能】
• 彩色分隔線區塊,支援條紋、漸層、點狀等樣式
• 進階分隔線區塊,可調寬度、高度、內距與對齊
• 進階標題區塊,提供 13 種裝飾樣式與副標題
• 跑馬燈區塊,支援無限滾動文字與速度方向設定
• 行動呼籲橫幅區塊,含標題、按鈕與三種視覺風格
• 作者資訊卡片區塊,顯示頭像、簡介與社群連結
外掛標籤
開發者團隊
原文外掛簡介
Modern Design Library is a toolkit of opinionated Gutenberg blocks for WordPress. All optional blocks are registered using PHP-only block registration (autoRegister) — no JavaScript build step or Node.js tooling required.
The plugin ships with:
Colored Line — a fully customisable horizontal separator block with striped, shade, and dotted style variants (classic JS-registered block).
Advanced Separator (experimental) — a PHP-only separator with configurable width, height, padding, alignment, and three decorative variants.
Advanced Heading (experimental) — 13 decorative heading styles, heading level selector (H1–H6), optional tagline, and full typography/spacing/border block support controls. Accent decorations automatically follow the text colour.
Marquee (experimental) — a single infinitely scrolling text row. Stack multiple blocks for multi-row layouts. Speed (Slow/Medium/Fast) and direction (Left/Right) are configurable. Animation script is loaded lazily — only on pages containing the block.
Call to Action (experimental) — a CTA banner with heading, subheading, button label/URL, three visual variants (Primary/Secondary/Dark), and native colour overrides.
Author Box (experimental) — displays a user card with avatar, bio, email, and LinkedIn link. User is selected from a dropdown. LinkedIn URL is stored as user meta (set on the user’s profile page).
Optional blocks are enabled from Settings → Modern Design Library → Modules.
The optional blocks require the Gutenberg plugin or WordPress 7.0+ for the autoRegister block support.
Read more on getButterfly.
For a deep dive into how the PHP-only blocks work, read PHP-Only Block Registration in WordPress 7.0.
