Skip to content

Commit 90a4bec

Browse files
committed
first commit
0 parents  commit 90a4bec

File tree

10 files changed

+601
-0
lines changed

10 files changed

+601
-0
lines changed

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.DS_Store
2+
phpunit.phar
3+
/vendor
4+
composer.phar
5+
composer.lock
6+
*.project
7+
.idea/

LICENSE

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2015 Jens Segers
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of
6+
this software and associated documentation files (the "Software"), to deal in
7+
the Software without restriction, including without limitation the rights to
8+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9+
the Software, and to permit persons to whom the Software is furnished to do so,
10+
subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
Turn your grid into a lightbox & gallery
2+
======
3+
4+
This is an extension to integrates [Magnific Popup](http://dimsemenov.com/plugins/magnific-popup/) into laravel-admin.
5+
6+
## Installation
7+
8+
```bash
9+
composer require laravel-admin-ext/grid-lightbox
10+
11+
php artisan vendor:publish --tag=laravel-admin-grid-lightbox
12+
```
13+
14+
## Configurations
15+
16+
Open `config/admin.php`, add configurations that belong to this extension at `extensions` section.
17+
```php
18+
19+
'extensions' => [
20+
21+
'grid-lightbox' => [
22+
23+
// Set to `false` if you want to disable this extension
24+
'enable' => true,
25+
]
26+
]
27+
28+
```
29+
30+
## Usage
31+
32+
Use it in the grid:
33+
```php
34+
// simple lightbox
35+
$grid->picture()->lightbox();
36+
37+
//gallery
38+
$grid->picture()->gallery();
39+
40+
//zoom effect
41+
$grid->picture()->lightbox(['zooming' => true]);
42+
$grid->picture()->gallery(['zooming' => true]);
43+
```
44+
45+
## Donate
46+
47+
> Help keeping the project development going, by donating a little. Thanks in advance.
48+
49+
[![PayPal Me](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.me/zousong)
50+
51+
![-1](https://cloud.githubusercontent.com/assets/1479100/23287423/45c68202-fa78-11e6-8125-3e365101a313.jpg)
52+
53+
License
54+
------------
55+
Licensed under [The MIT License (MIT)](LICENSE).
56+

composer.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"name": "laravel-admin-ext/grid-lightbox",
3+
"description": "Turn your grid into a lightbox & gallery",
4+
"type": "library",
5+
"keywords": ["laravel-admin", "extension", "grid", "lightbox", "gallery"],
6+
"homepage": "https://github.com/laravel-admin-ext/grid-lightbox",
7+
"license": "MIT",
8+
"authors": [
9+
{
10+
"name": "song",
11+
"email": "[email protected]"
12+
}
13+
],
14+
"require": {
15+
"php": ">=7.0.0",
16+
"encore/laravel-admin": "~1.6"
17+
},
18+
"require-dev": {
19+
"phpunit/phpunit": "~6.0"
20+
},
21+
"autoload": {
22+
"psr-4": {
23+
"Encore\\Grid\\Lightbox\\": "src/"
24+
}
25+
},
26+
"extra": {
27+
"laravel": {
28+
"providers": [
29+
"Encore\\Grid\\Lightbox\\LightboxServiceProvider"
30+
]
31+
32+
}
33+
}
34+
}

resources/assets/jquery.magnific-popup.min.js

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)