huubl / silverstripe-photoswipe-elemental
允许在页面上嵌入一个简单的由Photoswipe支持的画廊
v1.0.0
2018-10-04 16:18 UTC
Requires
- bummzack/sortablefile: ^2.0
- dnadesign/silverstripe-elemental: ^3.0
- silverstripe/cms: ^4.0
- silverstripe/vendor-plugin: ^1.0
This package is auto-updated.
Last update: 2024-09-23 00:06:22 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