
Spartan Gallery
v1.8.1freelancermartin · 2018年4月24日 上架
Responsive photo galleries with 16 layouts, a lightbox with video, tag filters, albums and a live preview. No jQuery on the front end.
- 正在使用
- 10 以下
- 评分
- 暂无
- 累计下载
- 1.2 万
- 最近更新
- 2026年11月18日
贡献者
截图








Spartan Gallery is a responsive, multipurpose portfolio gallery plugin for WordPress. It works well for agencies, personal portfolios, architecture and photography studios, product showcases, artist portfolios, and blogs.
Sixteen layouts are included:
- Grid – even columns (1–6), images cropped to the shape you choose.
- Masonry – uncropped images packed into columns, Pinterest-style.
- Justified – rows of equal height that always fill the full width.
- Mosaic – a grid mixing large and small tiles.
- Metro – magazine-style big, wide and tall tiles.
- Polaroid – tilted instant-photo cards that straighten on hover.
- Hexagon – a honeycomb grid.
- Film strip – one row that scrolls sideways.
- Spotlight – one large image beside a grid of thumbnails.
- 3D Slider – a touch-friendly 3D coverflow carousel.
- Carousel – several images side by side, swipeable, optional autoplay.
- Slideshow – one large image with a thumbnail strip, optional autoplay.
- Cards – a stack of cards to swipe through.
- 3D Cube – images on the faces of a rotating cube.
- Fullscreen Hero – big fading slides with a slow “Ken Burns” zoom and caption text.
- Before / After – drag a handle to compare pairs of images.
Every layout (except Before / After) can open images in a full-screen lightbox with swipe, keyboard navigation, captions from the Media Library, a thumbnail strip, and optional download, slideshow and share buttons. Choose a hover effect (zoom, fade, darken, or title overlay), rounded corners and image quality per gallery.
Videos: add a YouTube, Vimeo or MP4 link to any image (“Gallery video URL” in the Media Library) and it plays in the lightbox, with the image as its poster.
Share & deep links: every image gets its own link that reopens the lightbox at that image, plus optional Facebook, X, Pinterest and copy-link buttons.
Protection & watermark: optionally disable right-click/dragging and show a text watermark over the images.
Smart galleries: instead of picking images by hand, show every image with a Gallery Tag — new images with that tag appear automatically.
Filterable galleries: give images “Gallery Tags” in the Media Library and turn on filter buttons, so visitors can show only Weddings, Portraits, etc.
Load more: big galleries can show the first images and load the rest with a “Load more” button or automatically while scrolling.
Albums: show several galleries as cover cards with [spartan_album] or the “Spartan Album” block; clicking a cover opens that gallery in the lightbox.
Block editor: the Spartan Gallery and Spartan Album blocks show a live preview of the real gallery, and the gallery block can switch layout per placement.
Bulk image details: edit titles, captions, alt text, tags and video links for all images of a gallery in one table. Galleries can be duplicated from the gallery list.
Translations: includes an Estonian translation; ready for translation into any language.
Galleries are responsive (columns reduce automatically on tablets and phones), use WordPress’ responsive image sizes, and only load their scripts and styles on pages that actually contain a gallery. The front end does not require jQuery.
Each gallery has its own options panel with one-click presets (Portfolio, Instagram, Products, Photography, Slideshow), a live preview with desktop/tablet/phone widths, drag-and-drop image ordering, and a copy-the-shortcode button. A Gutenberg block adds galleries anywhere in the block editor.
Example site
Shortcode
[spartan_gallery id="123"]
Replace 123 with the gallery ID shown in the Spartan Gallery list. (page_id is still accepted as an alias.)
[spartan_gallery id="123" layout="masonry"] shows the same gallery with a different layout on this page. Layout names: grid, masonry, justified, mosaic, metro, polaroid, hexagon, filmstrip, spotlight, slider, carousel, slideshow, cards, cube, hero, compare.
Albums
[spartan_album] lists every published gallery as a cover card.
[spartan_album ids="12,15,18" columns="3" titles="no"] shows only the chosen galleries, in that order.
Third-party libraries
Bundled in public/vendor/, all MIT licensed:
- Swiper 14.4.0 – 3D slider, carousel and slideshow. Source: https://github.com/nolimits4web/swiper
- GLightbox 3.3.1 – lightbox. Source: https://github.com/biati-digital/glightbox
- Plyr 3.7.8 – video player inside the lightbox (loaded only when a video is opened; its icons are served locally, nothing is loaded from the Plyr CDN). Source: https://github.com/sampotts/plyr
The Masonry layout uses the Masonry and imagesLoaded scripts that ship with WordPress core.