juzaweb/image-slider
最新稳定版本:2.0
Composer 安装命令:
composer require juzaweb/image-slider
包简介
Create Image slider for Website
README 文档
README
Create Image slider for Website. This module provides a simple way to manage and display image sliders on your Juzaweb CMS website.
Installation
You can install the module via composer:
composer require juzaweb/image-slider
Usage in Admin Dashboard
-
Login to Admin dashboard.
-
Goto Appearance » Slider.
-
Click Add new to add new slider or Click name slider to edit slider.
-
Click Add new banner to add new image to slider.
- Title
- Description
- Url (Url open when click to slider)
- Open new tab (Open new tab when click to link)
Usage in Frontend
You can retrieve the slider and its items using the ImageSlider model.
use Juzaweb\Modules\ImageSlider\Models\ImageSlider; // Retrieve the slider by its name and load the associated items $slider = ImageSlider::with('items')->where('name', 'slider-name')->first(); if ($slider) { foreach ($slider->items as $item) { // Access item properties // echo $item->title; // echo $item->description; // echo $item->image; } }
统计信息
- 总下载量: 52
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-10-28