xlabs / imagegallerybundle
前端图片画廊 jQuery 插件
1.0.12
2018-10-30 08:57 UTC
README
前端图片画廊 jQuery 插件
安装
通过 Composer 安装
php -d memory_limit=-1 composer.phar require xlabs/imagegallerybundle
在你的 AppKernel 中
public function registerbundles()
{
return [
...
...
new XLabs\ImageGalleryBundle\XLabsImageGalleryBundle(),
];
}
安装资源
php app/console assets:install --symlink
使用方法
将此代码添加到你的模板中的任何位置
<link rel="stylesheet" type="text/css" href="{{ asset('bundles/xlabsimagegallery/xlabs.imagegallery.css') }}" />
<script type="text/javascript" src="{{ asset('bundles/xlabsimagegallery/xlabs.fullscreen.js') }}"></script>
<script type="text/javascript" src="{{ asset('bundles/xlabsimagegallery/xlabs.imagegallery.js') }}"></script>
查看示例文件以了解其工作方式
bundles/xlabsimagegallery/index.html