forked from DonLoron/media_type_manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.php
53 lines (51 loc) · 1.12 KB
/
install.php
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
43
44
45
46
47
48
49
50
51
52
53
<?php
/* @var rex_addon $this */
/* @var rex_addon $this */
if(!$this->hasConfig()) {
$this->setConfig('defaultConfig', [
'mediatypeSetName' => "fullscreen",
'lazyloadActive' => 1,
'breakpoints' => [
[
"mediaQuery" => "(min-width: 1025px)",
"breakpointName" => "L",
"values" => [
"width" => 1920,
"height" => 1080
]
],
[
"mediaQuery" => "(min-width: 751px) and (max-width: 1024px)",
"breakpointName" => "M",
"values" => [
"width" => 1024,
"height" => 768
]
],
[
"mediaQuery" => "(min-width: 376px) and (max-width: 750px)",
"breakpointName" => "S",
"values" => [
"width" => 750,
"height" => 1170
]
],
[
"mediaQuery" => "(max-width: 375px)",
"breakpointName" => "XS",
"values" => [
"width" => 375,
"height" => 585
]
]
],
"defaultEffects" => [
[
"effect" => "rex_effect_resize"
],
[
"effect" => "rex_effect_crop"
]
],
]);
}