xlabs/imagegallerybundle

前端图片画廊 jQuery 插件

安装: 618

依赖者: 1

建议者: 0

安全: 0

类型:symfony-bundle

1.0.12 2018-10-30 08:57 UTC

This package is auto-updated.

Last update: 2024-09-06 10:06:42 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