內容簡介
**總結:**
WordPress在成為一個功能齊全的內容編輯系統方面已經走了很長的路程,但是默認的圖庫不盡如人意。雖然有許多具有各種功能的外掛程式,但我找不到一個注重放大圖像的小巧簡單的外掛程式。th23 Gallery以簡單的方式建立,並具有一些特定目標。
**問題與答案:**
- 外掛程式th23 Gallery 的核心組件是什麼?
- th23 Gallery外掛程式的核心組件是PhotoSwipe。
- th23 Gallery被建立時考慮了哪些目標?
- th23 Gallery建立時考慮了以下目標:
- 專注於圖像,不會干擾用戶
- 使用PhotoSwipe / Lightbox-like overlay技術
- 透過直觀的滑動、鍵盤或滑鼠操作在帖子中的所有圖庫中切換圖像
- 與現代區塊和傳統短代碼相容
- 簡單的標記和風格化縮略圖
- 有效並以主題為基礎的風格預覽圖
- 在頁面加載時佔用設備較少資源
- 使用th23 Gallery時是否需要進行特殊處理?
- 不需要,th23 Gallery可以直接使用,激活後所有嵌入的圖庫都將使用PhotoSwipe放大圖片。
- 有何特殊注意事項需要留意?
- 注意:Polaroid風格僅適用於將預覽圖像大小設置為縮略圖的圖庫。
- 注意:先前插入的圖庫可能需要重新查看,以確保媒體檔案的連結和預覽圖像大小的設置以符合預期使用,尤其在同時使用遺留的短代碼的情況下。
外掛標籤
開發者團隊
原文外掛簡介
WordPress has come a long way to be a fully featured content editor system, but the default gallery does not keep up with it. And while there are many plugins with various features, I did not find a small and simple one putting the focus on enlarged images.
PhotoSwipe is a great basis and thus core component of my th23 Gallery plugin, which replaces the WordPress default to output galleries into a way containing all key information required while maintaining a simple and easy markup.
th23 Gallery is built with some few goals in mind:
Unintrusive way to focus on images
Leveraging PhotoSwipe / Lightbox-like overlay
Navigation between images in all galleries in a post via intuitive swipe, keyboard or mouse activity
Compatibile with modern blocks and legacy shortcodes
Simple markup and styling for thumbnail preview images (polaroid-style)
Plain styling for medium / large preview images allowing for theme based style
Minimized footprint on page loading
Usage
th23 Gallery works out-of-the-box and does not require any special handling – right after activation all embedded galleries will use PhotoSwipe to enlarge pictures.
Note: Polaroid-style works only on galleries which have set the preview image size to Thumbnail
Note: Previously inserted galleries might require a review to ensure link to media file and preview image size are set to work as expected – especially when also using the plugin on legacy shortcodes.
