fritzmg/contao-nivo-lightbox
最新稳定版本:1.3.0
Composer 安装命令:
composer require fritzmg/contao-nivo-lightbox
包简介
Nivo Lightbox for Contao
README 文档
README
Contao Nivo Lightbox
Contao extension to integrate the Nivo Lightbox overlay.
Usage
Simply activate the j_nivo_lightbox template in your page layout under jQuery. Do not activate j_colorbox or moo_mediabox as well! The overlay will work with all links that use the data-lightbox="..." parameter.
Customizing
If you want to use your own custom parameters, simply create your own j_nivo_lightbox template and insert your custom options at this line:
// init nivo lightbox $links.nivoLightbox();
Refer to the Nivo Lightbox documentation for all available parameters.
Types
By default, Nivo Lightbox acts as an image overlay. Nivo Lightbox also lets you open an URL via AJAX or iframe. Or you can display existing HTML in the overlay by referencing the id of the HTML element. This extension provides an initiation mechanic, so that most use cases can still be controlled via the data-lightbox parameter, as it is common in Contao.
Show a page via iframe:
<a href="page.html" data-lightbox="iframe">...</a>
Load a page via AJAX:
<a href="page.html" data-lightbox="ajax">...</a>
Display some HTML element in the overlay:
<a href="#some-element" data-lightbox="inline">...</a>
In some cases you might need to force a href to be displayed as an image, e.g. if the href simply does not end with jpeg, jpg, gif or png:
<a href="http://placehold.it/350x150" data-lightbox="image">...</a> <a href="http://placehold.it/350x150" data-lightbox-type="image">...</a>
All regular parameters mentioned in the Nivo Lightbox documentation should still work as well. If you do not provide any of this in your HTML source, the extension will open any non-image URLs in an iframe by default.
fritzmg/contao-nivo-lightbox 适用场景与选型建议
fritzmg/contao-nivo-lightbox 是一款 基于 CSS 开发的 Composer 扩展包,目前已累计 2.01k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2015 年 04 月 02 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「ajax」 「responsive」 「iframe」 「inline」 「nivo」 「lightbox」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 fritzmg/contao-nivo-lightbox 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 fritzmg/contao-nivo-lightbox 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 fritzmg/contao-nivo-lightbox 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
iFrames for Neos CMS
Fetch an url and show the content in a TYPO3 Frontend.
Selenium4 (WebDriver) driver for Mink framework
Elemental iframe module, supports lazy loading of iframes
ResponsiveImages Plugin for October CMS
laravel middleware to allow ajax only calls
统计信息
- 总下载量: 2.01k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 41
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0
- 更新时间: 2015-04-02