這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

th23 Gallery

描述

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 [gallery] shortcodes.

安裝

Upload extracted files to your wp-content/plugins directory

No options required – install, activate, enjoy 🙂

Only optional setting is the option to define a default preview image size for new galleries via the Settings / Media page in the admin panel

Note: There is a known inconsistency in core WP not showing this default correctly in new galleries – but it is taken correctly upon saving/including the gallery and upon further edits as well

常見問題

What is shown as image caption? How can I influence this text?

Image subtitle in lightbox is image caption (defined in gallery), image description (as in the media library) or image title (as in the media library) – in this order, whatever is given first

Can you provide options to change x, y or z behaviour in PhotoSwipe?

Yes, I could, but this plugin is supposed to be simple – in case you want many individual customization options, have a look at this open source alternative by Arno Welzel

評價

There are no reviews for this plugin.

貢獻者及開發者

“th23 Gallery” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

th23 Gallery 外掛目前已有 1 個本地化語言版本。 感謝所有譯者為這個外掛做出的貢獻。

將 th23 Gallery 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

v4.0.0 (first public release)

  • n/a