dorsetdigital / silverstripe-photoswipe-elemental
允许在页面上嵌入一个简单的Photoswipe-powered图库
v1.1.1
2020-02-19 14:59 UTC
Requires
- bummzack/sortablefile: ^2.0
- dnadesign/silverstripe-elemental: ^3 || ^4
- silverstripe/cms: ^4.0
- silverstripe/vendor-plugin: ^1.0
This package is auto-updated.
Last update: 2024-09-20 01:01:29 UTC
README
使用Elemental块中的Photoswipe库在页面上添加一个响应式图片图库。
包括图库功能以及一个懒加载缩略图的功能,有助于提高页面加载效率。
要求
- Silverstripe 4.x
- bummzack/sortablefile
- dnadesign/silverstripe-elemental ^3 || ^4
安装
- 使用
composer require dorsetdigital/silverstripe-photoswipe-elemental
安装代码 - 运行
dev/build?flush
以更新您的项目
使用方法
安装模块后,您可以简单地将新块添加到任何Elemental页面上。
用于生成标准图库标记的模板可以被覆盖,但请注意,一些标记结构对于使一切正常工作是必需的!
鸣谢
- 出色的PhotoSwipe库 - http://photoswipe.com/
- Bummzack为SS4提供的可排序文件扩展名 - https://github.com/bummzack/sortablefile
- Werner Krauss对他的翻译工作和Elemental 4更新 - https://github.com/wernerkrauss