-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.php
More file actions
executable file
·42 lines (32 loc) · 1.04 KB
/
Copy pathindex.php
File metadata and controls
executable file
·42 lines (32 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
use Nerdcel\ResponsiveImages\ResponsiveImages;
@include_once __DIR__.'/vendor/autoload.php';
Kirby::plugin('nerdcel/responsive-images', [
'options' => require __DIR__.'/src/config.php',
'translations' => [
'en' => require __DIR__.'/i18n/en.php',
'de' => require __DIR__.'/i18n/de.php',
],
'areas' => [
'responsiveimages' => require __DIR__.'/src/Areas/ResponsiveImages.php',
],
'api' => [
'routes' => require 'src/routes.php',
],
'permissions' => [
'access' => true,
],
'fields' => [
'focalpoints' => require __DIR__.'/src/Fields/FocalPoints.php',
'aihint' => require __DIR__.'/src/Fields/AiHint.php',
],
'fieldMethods' => require __DIR__.'/src/fieldMethods.php',
'siteMethods' => [
'getResponsiveImagesSetting' => function (?string $slug = null) {
if ($slug) {
return (new ResponsiveImages(kirby()))->getSlugConfig($slug);
}
return 'No settings found';
},
],
]);