Search by

alveby / atrium-gallery

xiregroup

Photo and video albums for Atrium: bulk upload, drag-and-drop order, YouTube, VK and Rutube links, a lightbox on the site and a site builder block

Package info

github.com/AlveBy/atrium-gallery

Homepage

Issues

Type:atrium-module

pkg:composer/alveby/atrium-gallery

Statistics

Installs: 2

Dependents: 1

Suggesters: 1

Stars: 0

v0.5.0 2026-12-03 17:18 UTC

This package is auto-updated.

Last update: 2026-12-04 03:06:38 UTC


README

Photo and video albums for Atrium: in every content language, per site, with a viewer on the site, lighter WebP copies of the pictures and structured data (schema.org JSON-LD) for search engines.

Install

composer require alveby/atrium-gallery
php artisan atrium:module:install alveby/atrium-gallery

Add --demo for three albums: two of drawn landscapes and one with an open film of the Blender Foundation linked on YouTube.

atrium:module:install creates the tables and turns the module on; atrium:module:remove alveby/atrium-gallery turns it off and asks whether to keep the albums.

The module needs PHP's GD extension with WebP support; ext-exif makes the copies of phone photos stand the right way up.

In the admin

Albums has the name, description, cover, address, order, "active" and SEO of each album, and the tab Photos and videos:

  • many photos are added at once, by picking or dropping them;
  • a video is a link to YouTube, VK Video or Rutube, or an mp4 or webm file; no API key is needed;
  • the order is changed by dragging or with the buttons;
  • every item has a caption in each content language.

On the site

With the public theme (alveby/atrium-theme) installed:

Address Page
/gallery the albums
/gallery/summer-trip one album, with a viewer: mouse, keyboard and swipe
/de/gallery/sommerreise the same in another content language

A video service is asked nothing until the visitor opens a video. The Gallery block of the page builder can show an album on any page.

Videos and their previews, upload limits, the API, and moving galleries from 1C-Bitrix and WordPress are described in docs/gallery.md.

Change the look

php artisan vendor:publish --tag=atrium-gallery-config
php artisan vendor:publish --tag=atrium-gallery-views
php artisan vendor:publish --tag=atrium-gallery-lang

The views land in resources/views/vendor/atrium-gallery: index (the list of albums), album, partials/tiles (the grid and the viewer) and builder/gallery (the block). The admin labels are in 15 languages; English and Russian are written by hand, the others are machine translations.

Tests

From the repository root:

vendor/bin/phpunit packages/gallery/tests

The tests cover the admin, the videos and the picture copies, the pages in two languages and on two sites, the builder block and the demo, without reaching the network.

Contributing

This repository is a read-only copy of packages/gallery in AlveBy/atrium. Issues and pull requests go there.

License

MIT