[WordPress] 外掛分享: Photographers galleries

首頁外掛目錄 › Photographers galleries
WordPress 外掛 Photographers galleries 的封面圖片
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
30+
安裝啟用
★★★★★
5/5 分(1 則評價)
1533 天前
最後更新
問題解決
WordPress 3.6+ PHP 7.2+ v1.1.8 上架:2016-04-24

內容簡介

什麼是這個外掛?

這是一個輕量的外掛,可以在文章和頁面上顯示動態或靜態圖庫,使用本地 WordPress 媒體,並且消耗極小的資源。

主要特點:

啟用響應式圖片大小(訪客獲得與其實際顯示分辨率最接近的圖像大小)
啟用自定分類、標籤、媒體附件相關的評論、作者,
通過標籤、評論、分類等使圖像可查詢,以使用簡碼顯示動態圖庫,
提供簡碼包裝器,以啟用預設 WordPress 圖庫的高級版面配置(輪播、展覽、沒有標題等)
使用瀝青板方式對默認列圖庫進行翻新,
在媒體管理檢視中添加 EXIF 元數據,
完全響應式(高度和寬度),
提供優雅、極簡主義的外觀,將重點放在圖像內容上,並永遠不會裁剪圖像以適應任意版面配置。

該設計靈感來自於藝術書籍和博物館展覽,旨在允許完美、不具侵入性的全屏體驗,讓您設計您的網站如同 WebApp。

為什麼要使用這個外掛?

大多數豪華的圖庫外掛將在 WordPress 的頂部添加他們的圖庫管理程式… 然後,它們將裁剪圖像以適合其加快頁面載入、建立相容性與實現漂亮版面,這種做法不幸的是會破壞藝術家的拍照與及構圖方式。最後,他們會耗盡訪問者的內存,因為 CPU 要處理這些花哨的效果。基於圖像的網站已經很難處理,這些將使它們最終不堪重負…

我們需要更好的方案。

這個外掛是如何實現的?

僅使用內置瀏覽器技術(CSS,HTML 和本地 Javascript)擴展瀏覽器的本機功能。
不使用jQuery或額外的膨脹軟件庫,它會降低頁面加載速度,創建相容性惡夢,並可能未被硬體加速。
以最小化的JS和CSS檔案,按需(僅在使用它們的頁面上),在頁尾和支援延遲加載的情況下載入。
與快取、最小化、CDN 和延遲加載相容(使用 WP Rocket 測試)。
與燈箱外掛相容。
僅擴展核心 WordPress 功能,增強安全性和可維護性。

JS 僅重 5.2 kB,CSS 則為 7.2 kB。

特點
檔案附件改進

攝影師圖庫通過在媒體庫的檔案上啟用常規文章屬性,增強 WordPress 附件:

評論,
作者,
自定欄位,
文章類別,
標籤。

它將 3 個自訂分類添加到媒體附件:

圖庫(您可以將其用作描述圖片上的類別),
位置(圖片所在的位置),
模型(圖片中的人物)。

這些分類是階層式的,意味著“美國”父位置可以有“德克薩斯”和“內華達”子位置,而這些子位置本身也可以有屬於自己的子位置。

分類和標籤可以使檔案附件在存檔時被查找,就像文章類別一樣,因此它們使您可以通過自訂分類模板(添加到您的主題)展示動態圖庫,或通過簡碼在頁面上顯示。 請參閱簡易。

外掛標籤

開發者團隊

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

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

原文外掛簡介

What ?
This is a lightweight plugin to display dynamic or static galleries on posts and pages with minimal overhead and using only native WordPress media.
Main features:

enable responsive images sizes (visitors get served the closest image size to their actual display resolution),
enable custom taxinomies, tags, comments, author, comments for media attachments,
make images queryable by tags, comments, taxinomies, etc. to display dynamic galleries from a shortcode,
provide shortcode wrappers for default WordPress galleries to enable advanced layouts (carousel, exhibition, no caption, etc.),
style default column galleries in a masonry way,
add EXIF metadata in media admin view,
fully responsive (height and width),
provide elegant, minimalist looks that put emphasis on image content first and never crop images to fit in an arbitrary layout.

The look is inspired by art books and museums exhibitions, meant to allow a flawless and non-intrusive full-screen experience, so you can design your website as a webapp.
Why ?
Most fancy gallery plugins will add their gallery manager on top of WordPress, which already has one… Then, they will crop images to fit within their fancy layout. Unfortunately, if you are an artist, the way you composed and framed your picture is no accident and should be honored by whatever display system you use. After all that, they will add an awful bloat of jQuery madness that will put a hole in your Page Speed score and kill your loading time. Finally, they will distract visitors from your content with all their fancy effects that make your CPU overheat for nothing. Picture-based websites were already heavy, these will make sure to give them the final blow…
We need better.
How ?

Use only built-in browser technologies (CSS, HTML, and native Javascript) to extend browser native features.
Don’t use jQuery or additional bloatware lib that slows down page loading, creates compatibility nightmares and may not be hardware-accelerated.
Load minified JS and CSS, on-demand (only on pages that use them), in footer and with defer support.
Compatible with caching, minification, CDN and lazy loading (tested with WP Rocket).
Compatible with lightboxes plugins.
Only extends core WordPress features, for better security and maintainability.

The JS weighs only 5.2 kB, and the CSS 7.2 kB.
Features
Attachements improvements
Photographers galleries enhances the WordPress attachments from the media library by enabling regular posts properties on them :

comments,
author,
custom fields,
posts categories,
posts tags.

It adds 3 custom taxonomies to the media attachments :

galleries (which you can use as categories to describe what is on the picture),
locations (where is the picture),
models (who is on the picture).

These taxonomies are hierarchical, meaning that a “USA” parent location can have “Texas” and “Nevada” children locations which can have children themselves.
Taxonomies and tags make the attachments queryable in archives, just like posts categories, so they allow you to display dynamic galleries either through custom taxonomies template (to add to your theme) or on a page with a shortcode see Installation. Most gallery
plugins create galleries as custom posts and force you to add your new pictures to all the relevant galleries. PG’s way allow you to add your pictures to multiple galleries in one step, during its upload in a post editor or in the media library.
To add taxonomies terms to your pictures during their upload in posts editor, use the plugin Media Library Assistant. It will help you to bulk edit your media library too. See Other notes to find how to set MLA.
Galleries improvements
Photographers galleries enable the WordPress built-in HTML5 support for pictures and galleries to produce

and
tags to increase the SEO and get rid of WordPress default gallery layout (which width is set by the global variable $content_width). They add a fully responsive stylesheet to fit the galleries along the borders of the container.
It also adds more thumbnails sizes for the responsive srcset HTML attribute of images, allowing browsers to load exactly the right image size for the current viewport size. These sizes go all the way from 240×360px to 4096×2160px, so don’t be afraid to upload high-resolution images, your visitors will only see the image size relevant for their screen size and pixel density.
No particular operation is required, just use your regular WordPress gallery builder inside the post editor.
Extra layouts & shortcodes wrappers for WordPress galleries
Photographers galleries uses only regular WordPress galleries, called by the shortcode, and does not rewrite them. This is intended to ensure maximum compatibility with other plugins (lightboxes, etc.) as well at with future WordPress versions. The extra gallery layouts are provided by extra shortcodes to wrap around the WordPress galleries.
Note : this makes use of the classic editor gallery, not the Gutenberg block. For what Photographers galleries does, the Gutenberg gallery block adds no benefit over the classic gallery.
Extra gallery layouts :

no captions
caption aligned

See Installation tab for use instructions.
Carousel
Photographers galleries has a fixed-height carousel which takes by default 100 % of the container width and 92 % of the viewport height (99 % if captions are not displayed). It uses the native browser scrolling, supporting horizontal scrolling (touchpad and mouse wheel), swiping gestures (touch screens), click/tap on the next/previous buttons, as well as keyboard arrow keys (left and right).
The pictures are fitted to the same height so the layout is flawless and continuous, perfect to display a serie or a portfolio. Every carousel instance on a same page can have its own style. This carousel was inspired by Format.
See Installation tab for use details.
Exhibitions
Exhibitions are a new mode of the 1.0 that enables a full-width and full-height experience with a framing look reproducing museum framings. They come in-place of usual lightboxes and gives your pictures maximal impact with minimal clutter, assuming you will use them in a full-width theme template. They support keyboard arrow keys interactions, as well as horizontal scrolling and click/tap on the buttons.
Exhibitions preload the next and previous images in row while looking at the current one, so the transition between images feels immediate and most lags are prevented.
Media library improvements
Photographers galleries adds EXIF metadata of your pictures in the WP library columns :

time and date of the capture,
camera,
focal length,
ISO,
aperture,
shutter speed,
copyright terms,
author credit.

Technical details
Configuring Media Library Assistant for PG

Go to “General tab”
Go to the “Taxonomy Support” option
For “Galleries”, “Locations”, “Models”, check all the checkboxes of the line
Strings are ready to translate

Caveats
Using native WordPress galleries, Photographers Galleries need to overwrite theme styling, which might still compete with it. Some CSS tuning might be necessary to fix corner-cases.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon