定制 xirdion/contao-photoswipe-bundle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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 image and gallery templates are taken into account
  • A unique photoswipe-gallery-class (pswp__container--<template-ID>) is generated and added to following template-properties:
    • floatClass for image templates
    • row for gallery templates
  • The data-pswp-src is added to the image anchor tag
  • The dimensions of the original image are added with data-pswp-width and data-pswp-height to 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

GitHub 信息

  • Stars: 3
  • Watchers: 2
  • Forks: 1
  • 开发语言: JavaScript

其他信息

  • 授权协议: AGPL-3.0-or-later
  • 更新时间: 2022-11-07