[WordPress] 外掛分享: Simple Accessible Spoilers

首頁外掛目錄 › Simple Accessible Spoilers
100+
安裝啟用
★★★★★
5/5 分(1 則評價)
327 天前
最後更新
問題解決
WordPress 3.9.1+ PHP 5.6+ v1.0.13 上架:2019-07-04

內容簡介

使用簡碼來創建完全可訪問的內容披露或手風琴。

完全可訪問給屏幕閱讀器用戶
創建彈性披露簡碼
定義手風琴組,當同一組中的另一個手風琴被打開時,關閉已打開的手風琴。
覆蓋主題CSS文件中的設計

樣本代碼

[spoiler title="樣本代碼" initial_state="expanded" tag="h2" group="a"]
在此包含內容
[/spoiler]

屬性

title:應包括要在手風琴中顯示的可點擊文本
initial_state:值包括collapsed或expanded,默認為「collapsed」
group:任何字母數字值。用於定義一組手風琴。當打開一個手風琴時,組中的所有其他項目都將關閉。
tag:值包括任何典型的html標記,但應使用標題標記以實現可訪問性,默認為H2

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.13) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Simple Accessible Spoilers」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Create fully accessible content spoilers or accordions with a shortcode.

Fully accessible to screen reader users
Creates a flexible spoiler shortcode
Define groups of accordions to close open accordions when another in the same group is opened.
Override design in theme CSS files

Sample Code
[spoiler title="Sample Code" initial_state="expanded" tag="h2" group="a"]
Include content here
[/spoiler]
Attributes
title: should include the clickable text to be displayed in your accordion
initial_state: values include collapsed or expanded, default to “collapsed”
group: any alphanumeric value. used to define a group of accordions. when one accordion is opened all other items in the group will be closed.
tag: values include any typical html tag but a heading tag should be used for accessibility, defaults to H2

延伸相關外掛

文章
Filter
Apply Filters
Mastodon