前言介紹
- 這款 WordPress 外掛「Gallery Slice」是 2014-05-16 上架。
- 目前有 30 個安裝啟用數。
- 上一次更新是 2016-08-18,距離現在已有 3181 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 3.9 以上版本才可以安裝。
- 尚未有人給過這款外掛評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
外掛標籤
ajax | image | images | gallery |
內容簡介
WordPress 中的標準相簿有一個限制,就是他總是會顯示相簿中的所有照片。我知道有一些可以分頁的替代相簿,但我從來沒有認為這是一個好方法。讀者從來不會想看相簿的第 N 頁,如果第一頁引起了他的注意,他希望看到所有的相片,而不是再分成多頁。至少這是我的看法。
如果你寫部落格時,要發佈擁有許多照片的大型相簿,也許你希望在存檔頁面(首頁、分類、存檔等)上只顯示相簿的預覽,這樣個別文章的長度不會太長。相簿預覽還包含一個連結,如果讀者希望看到更多,可以通過 Ajax 載入其餘部分的相簿。好吧,本外掛恰恰提供了這樣的功能,而且全部都是使用標準的 WordPress 相簿。
單個文章將不受影響,它們仍然會顯示完整的相簿,至少現在是這樣。
你可以通過創建兩個相簿,並在它們之間放置 標籤來達到類似的功能-存檔頁面僅顯示第一個相簿,單個文章則顯示完整的相簿。但是,本外掛有幾個優點:它可以設置並忘卻它,然後外掛會自動為每個已發佈的文章/相簿應用。如果相簿後跟有另一個文本,則該文本仍在存檔頁面上顯示。其餘相簿的加載由 Ajax 處理(如果 Ajax 失敗,則回退到單個文章的 URL)。
在選項中,你需要指定兩個值:第一個值是閾值,即圖像的數量,如果相簿的數量超過此值,則切片為預覽。第二個值是在預覽中顯示多少圖像。這允許有兩個不同的值,例如,預覽的圖像數為 9,閾值為 12,這種柔性使得如果相簿有 10 張圖片,它就不會僅減少一張圖片,當然,如果你希望可以指定相同的值。
這兩個值在三個層面上指定:全域(每個部落格)、每篇文章和每個相簿標籤。你還可以指定不在特定文章中切片相簿,或者不切片特定相簿。
本外掛支援幾種燈箱實現方式。
授權
這是 WTFPL 授權 2.0。
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2004 Sam Hocevar
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. You just DO WHAT THE FUCK YOU WANT TO.
ToDo's
* enable plugin to work in opposite manner - do not automatically slice down galleries, but only on posts / tags where the downto attr is set* 檢查 WP-Minify 是否可以使用編譯後的 JS 檔案(內部)
* 啟用 Ajax 加載單個文章中的切片。
原文外掛簡介
The standard gallery in WordPress has one limitation — it always shows all the pictures in the gallery. I know there are alternative galleries available, which support pagination, but I never thought this is a good approach. The reader never wants to see n-th page of the gallery — if the first page got his attention, then he wants to see all of the rest, not split into pages anymore. At least, this is how I see it.
So, if you run a blog, on which you publish huge galleries with many many many pictures, maybe you want to show only preview of the gallery on archive pages (homepage, categories, archives etc.), so the individual posts are not too long. The gallery-preview then contains a link, which loads the rest of the gallery if the reader wishes so, via Ajax. Well, this plugin brings exactly that, all with standard WordPress gallery.
Single posts are untouched, they still show full galleries, at least for now.
You can reach similar functionality just by creating two galleries and putting the tag in between them — and the archive page shows only the first gallery, while single post shows the whole gallery. But, this plugin has several advantages: it can be set and forget, and then the plugin automatically applies it for every post/gallery published. If the gallery is followed by another text, then this text is still displayed on the archives page. Loading of the rest of gallery is handled by Ajax (with fallback to single-post URL if Ajax fails).
In options, you specify two values: first one threshold — amount of images, if the gallery exceeds this many, it is sliced into a preview. This is the second value, how many images should be shown in a preview. This allows to have 2 different values for that, e.g. 9 images for preview, but 12 images for threshold, which makes some flexibility, that if the gallery is 10 images big, then it is not shortening by jsut one image. Anyway, you can also specify the same values, if you wish.
These two values are specified on three levels: global (per blog), per post and per gallery tag. You can also specify not to slice a gallery in specific post, resp. not to slice a specific gallery.
Plugin supports several lightbox implementations.
License
WTFPL License 2.0 applies
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2004 Sam Hocevar
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. You just DO WHAT THE FUCK YOU WANT TO.
ToDo's
* enable plugin to work in opposite manner - do not automatically slice down galleries, but only on posts / tags where the downto attr is set
* re-check WP-Minify on possibility to use the compiled JS files (internal)
* enable slicing w/ Ajax loading on single posts
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Gallery Slice」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
1.0 | 1.1 | 1.2 | 1.3 | 1.2.1 | 1.3.1 | 1.3.2 | 1.3.3 | trunk |
延伸相關外掛(你可能也想知道)
Slider, Gallery, and Carousel by MetaSlider – Image Slider, Video Slider 》使用MetaSlider,您可以在數分鐘內創建強大的、優化的幻燈片、輪播、橫向滑屏或相冊,它是全球#1的響應式WordPress幻燈片外掛。MetaSlider是圖像、照片、視...。
Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery 》WordPress圖庫插件, 自2007年以來,NextGEN Gallery已成為行業標準的WordPress圖庫插件,每年繼續接收超過150萬的新下載量。它很容易管理簡單的照片圖庫,但...。
Photo Gallery by 10Web – Mobile-Friendly Image Gallery 》委員會翻譯如下:, , Photo Gallery 是建立美麗的行動裝置友好型相簿所需的領導外掛程式,只需幾分鐘即可完成。, 有用的連結:, 現場示範, 10Web 的高級 Phot...。
Firelight Lightbox 》Easy FancyBox WordPress外掛為您的網站提供靈活美觀的光箱解決方案,幾乎適用於網站上的所有媒體連結。Easy FancyBox使用更新的傳統FancyBox jQuery擴展版本...。
Simple Lightbox 》Simple Lightbox 是一個非常簡單且可自定義的燈箱,在您的 WordPress 網站上添加它非常容易。, 功能, 自定義燈箱行為的選項位於外觀 > Lightbox 管理員菜...。
Responsive Lightbox & Gallery 》提供完整的 WordPress 相簿外掛所需一切, Responsive Lightbox and Gallery 外掛是一個全功能的 WordPress 相簿外掛,擁有強大的拖放相簿生成器和 Lightbox ...。
FooGallery – Responsive Photo Gallery, Image Viewer, Justified, Masonry & Carousel 》lugin/show-more-pagination/" rel="nofollow ugc">demo, Supports webP image compression for faster page loads, Advanced caching techniques for faster...。
Lightbox & Modal Popup WordPress Plugin – FooBox 》FooBox是第一個嚴肅考慮響應式佈局的燈箱。它不僅會將圖片縮放以在手機上呈現更好的效果,還會重新排列按鈕控制,使其在縱向或橫向的方向上都展現出色的外觀...。
Gallery Plugin for WordPress – Envira Photo Gallery 》相片集外掛, , 有用連結:, , 相片集範例, 相片集文件, 相片集支援, , 我們認為你不應該必須聘請開發人員來建立 WordPress 相片集。這就是為什麼我們建立了 E...。
WP Show Posts 》注意事項, 此外掛目前僅收到安全性更新。請查看我們的GenerateBlocks外掛以獲得更現代的解決方案。, , , WP Show Posts能夠透過易於使用的簡碼在您網站上的任...。
Carousel, Slider, Gallery by WP Carousel – Image Carousel with Lightbox & Photo Gallery, Video Slider, Post Carousel & Post Grid, Product Carousel & Product Grid 》, 實時演示 | 影片教程 | 使用說明 | 升級至專業版 », 概觀, WP Carousel 是最強大且使用者友好的 WordPress 公告欄外掛,可建立帶圖片、文章、WooComm...。
Visual Portfolio, Photo Gallery & Post Grid 》WordPress 的圖庫和作品集外掛, ★★★★★, 作品集網站是當今最受歡迎的網站之一。我們創建了Visual Portfolio,Photo Gallery和Post Grid WordPress外掛程式,這...。
ACF Photo Gallery Field 》t; 'Status', , 'name' => 'status', , 'choices' => array(, 'public' => 'Public', , 'private' => ...。
WP Featherlight – A Simple jQuery Lightbox 》WP Featherlight 是一個 WordPress 外掛,可為您的WordPress 網站添加一個極簡、高效、響應式 jQuery 燈箱。在其核心,WP Featherlight是一個用於 Featherlig...。
Premium Portfolio Features for Phlox theme 》概述, 這個外掛為 Phlox 主題增加許多高級作品集功能,讓您能以優雅的方式展示和呈現您的專案。, , Phlox 主題的演示 | 文件 | 視頻教程 | 支援論壇, , 功能...。