承接 rosgear/rg-wd-lightgallery 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

rosgear/rg-wd-lightgallery

Composer 安装命令:

composer require rosgear/rg-wd-lightgallery

包简介

Widget "LightGallery" for the RosGear web application

README 文档

README

Русский | English

Latest Stable Version Total Downloads Author Source Code Software License Component type: widget Component ID: rg-wd-lightgallery php 8.2+

Виджет «Галерея LightGallery»

Виджет предназначен для визуализации изображений на веб‑странице с использованием лайтбокса LightGallery, обеспечивающий удобный просмотр контента в полноэкранном режиме.

Пример применения

с менеджером виджетов:

$gallery = Ge::$app->widgets->get(
    'rg.wd.lightgallery', 
    ['galleryId' => 1, 'sort' => 'index', limit' => 10, 'settings' => ['download' => false]]
);
$gallery->run();

c шорткодом:

echo $this->shortcode('[lightgallery id="1" sort="index" limit="10" download="false"]');

в шаблоне:

echo $this->widget('rg.wd.lightgallery', [
    'galleryId'  => 1,
    'mode'       => 'list',
    'sort'       => ['default' => 'index,a'],
    'pagination' => ['defaultLimit' => 20],
    'pager'      => [
        'itemTpl'       => '<li>{link}</li>',
        'activeItemTpl' => '<li class="active">{link}</li>',
        'options'       => ['class' => 'justify-content-center']
     ],
     'settings' => ['download' => false]
]);

с namespace:

use Rg\Widget\LightGallery\Widget as Gallery;
echo Gallery::widget(['mode' => 'list', pagination' => ['defaultLimit' => 20]]);

если namespace ранее не добавлен в PSR, необходимо выполнить:

Ge::$loader->addPsr4('Rg\Widget\LightGallery\\', Ge::$app->modulePath . '/rg/rg.wd.lightgallery/src');

Установка

Для добавления виджета в ваш проект, вы можете просто выполнить команду ниже:

$ composer require rosgear/rg-wd-lightgallery

или добавить в файл composer.json вашего проекта:

"require": {
    "rosgear/rg-wd-lightgallery": "*"
}

или скачать архив на странице виджета в каталоге приложений RosGear.

После добавления виджета в проект выполните его установку в редакцию веб‑приложения с помощью Панели управления GePanel.

Ресурсы

Widget «LightGallery»

The widget is designed to visualize images on a web page using the LightGallery lightbox, providing convenient viewing of content in full-screen mode.

Installation

To add the widget to your project, you can simply run the command below:

$ composer require rosgear/rg-wd-lightgallery

or add to your project's composer.json file:

"require": {
    "rosgear/rg-wd-lightgallery": "*"
}

or download the archive from the widget page in the RosGear application catalog.

After adding the widget to the project, install it into the web application edition using the GePanel Control Panel.

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 13
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-06-18