[WordPress] 外掛分享: Auto Thickbox

首頁外掛目錄 › Auto Thickbox
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
2,000+
安裝啟用
★★★☆☆
3.8/5 分(6 則評價)
3033 天前
最後更新
問題解決
WordPress 3.1+ v3.5 上架:2009-01-01

內容簡介

Auto Thickbox 外掛可在 WordPress 上自動啟用縮圖圖片的獨特彈窗 (使用 WordPress 內建的 Thickbox)。

但是,如果您想要單獨覆蓋個別圖片的行為,您可以在錨點標記內添加「nothickbox」類別以取消自動啟用獨特彈窗。

Thickbox 圖庫

預設情況下,Auto Thickbox 外掛會將文章內所有圖片綁定成一個 Thickbox 圖庫,因此您可以透過上下一張圖片連結來瀏覽圖庫所有內容。

使用 WordPress 圖片上傳器建立圖庫時,只需要讓圖片連結指向圖檔而非附件貼文即可輕鬆完成設定。

時而,您可能會想要將部分圖片分成另一個圖庫。Auto Thickbox 讓您也可以做到這點:只需對每個圖片的錨點標記添加相同的 rel 屬性即可。

(注意:要使用 WordPress 圖片上傳器設定 rel 屬性,請先插入圖片,然後編輯該圖片,在高級連結屬性中設定「Link Rel」。)

任何元素的 Thickbox 效果

注意,Thickbox 可支援任何類型的連結,而非只有圖片連結。您只需要將連結的類別設為「thickbox」即可啟用 Thickbox 效果。

無 Thickbox 效果

如果您想要在部分圖片連結中取消 Thickbox 效果,請在該錨點的標記中添加「nothickbox」類別。

鍵盤操作支援

Thickbox 支援以下鍵盤操作:
– 瀏覽下一張圖片:大於號(>)或向左箭頭
– 瀏覽上一張圖片:小於號(<)或向右箭頭
– 首張圖片:Home 鍵
– 末張圖片:End 鍵
– 關閉彈窗:Esc 鍵或 Enter/Return 鍵

翻譯貢獻者

德語:hakre
葡萄牙語 / 巴西葡萄牙語:Henrique Schiavo

需要協助?

如需尋求相關協助,請至外掛討論區發布問題。

外掛標籤

開發者團隊

⬇ 下載最新版 (v3.5) 或搜尋安裝

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

原文外掛簡介

The Auto Thickbox plugin for WordPress automatically enables thickbox on thumbnail images (i.e. opens the images in a fancy pop-up), through the use of WordPress’ built-in thickbox library.
In the event you’d like to override this for an individual image, you can disable the behavior by adding the ‘nothickbox’ class to its anchor tag.
Thickbox Galleries
By default, the auto thickbox plugin will bind all images within a post into a single thickbox gallery. That is, next image and previous image links will appear so you can navigate from an image to the next.
The behavior is particularly interesting when you create galleries using WordPress’ image uploader. Have the images link to the image file rather than the attachment’s post, and you’re done.
On occasion, you’ll want to split a subset of images into a separate gallery. Auto Thickbox lets you do this as well: add an identical rel attribute to each anchor you’d like to group, and you’re done.
(Note: To set the rel attribute using WordPress’ image uploader, start by inserting the image into your post. Then, edit that image, browse its advanced settings, and set “Link Rel” in the Advanced Link Attributes.)
Thickbox Anything
Note that thickbox works on any link, not merely image links. To enable thickbox on an arbitrary link, set that link’s class to thickbox.
No thickbox
In the event you want to disable thickbox on some links to images, assign it a nothickbox class.
Keyboard support
Thickbox supports the following keys:
– Next Image: Greater Than (>) or Left Arrow
– Previous Image: Less Than (<) or Right Arrow – First Image: Home – Last Image: End – Close Popup: Esc or Enter/Return Hat Translators German: hakre Portuguese/Brazil: Henrique Schiavo Help Me! The Plugin’s Forum is the best place to report issues.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon