xirdion/contao-photoswipe-bundle
最新稳定版本:1.1.0
Composer 安装命令:
composer require xirdion/contao-photoswipe-bundle
包简介
contao bundle to add the photoswipe lightbox to a contao project
README 文档
README
This bundle implements Photoswipe.js as lightbox for images and galleries.
Note:
A customized version of photoswipe ist used otherwise there was an error closing the lightbox.
The code was upgraded according to this issue.
Additional HTML markup is added dynamically while parsing the templates:
- At the moment only
imageandgallerytemplates are taken into account - A unique photoswipe-gallery-class (
pswp__container--<template-ID>) is generated and added to following template-properties:floatClassfor image templatesrowfor gallery templates
- The
data-pswp-srcis added to the image anchor tag - The dimensions of the original image are added with
data-pswp-widthanddata-pswp-heightto the image tag
The additional CSS and JS resources are added to the response only if there are any unique photoswipe selectors
统计信息
- 总下载量: 65
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: AGPL-3.0-or-later
- 更新时间: 2022-11-07