... | ... |
@@ -9,8 +9,4 @@ |
9 | 9 |
<customRepositories /> |
10 | 10 |
<composerUpdateOptions /> |
11 | 11 |
</component> |
12 |
- <component name="SshConsoleOptionsProvider"> |
|
13 |
- <option name="myEncoding" value="UTF-8" /> |
|
14 |
- <option name="myConnectionType" value="NONE" /> |
|
15 |
- </component> |
|
16 | 12 |
</project> |
17 | 13 |
\ No newline at end of file |
... | ... |
@@ -1,16 +1,19 @@ |
1 | 1 |
<?php |
2 | 2 |
$cssClasses = array( |
3 |
- 'feature-wrapper', |
|
4 |
- 'feature-wrapper_'.$this->id, |
|
5 |
- $this->class, |
|
3 |
+ 'feature-wrapper', |
|
4 |
+ 'feature-wrapper_' . $this->id, |
|
5 |
+ $this->class, |
|
6 | 6 |
); |
7 |
-if ($this->contentPosition) { |
|
7 |
+if ($this->contentPosition) |
|
8 |
+{ |
|
8 | 9 |
$cssClasses[] = $this->contentPosition; |
9 | 10 |
} |
10 |
-if ($this->valign) { |
|
11 |
+if ($this->valign) |
|
12 |
+{ |
|
11 | 13 |
$cssClasses[] = $this->valign; |
12 | 14 |
} |
13 |
-if ($this->valignCenter) { |
|
15 |
+if ($this->valignCenter) |
|
16 |
+{ |
|
14 | 17 |
$cssClasses[] = '-valign-center'; |
15 | 18 |
} |
16 | 19 |
|
... | ... |
@@ -18,27 +21,28 @@ $figure = ''; |
18 | 21 |
$blnIsVideo = false; |
19 | 22 |
if (($file = \FilesModel::findByUuid($this->backgroundImage)) !== null) |
20 | 23 |
{ |
21 |
- if (in_array( |
|
22 |
- $file->extension, |
|
23 |
- array_map('trim', explode(',', \Config::get('validImageTypes'))) |
|
24 |
- )) |
|
25 |
- { |
|
26 |
- $figure = $this->figure( |
|
27 |
- $file->uuid, $this->backgroundImageSize, |
|
28 |
- [ |
|
29 |
- 'options' => [ |
|
30 |
- 'attr' => [ |
|
31 |
- 'class' => 'feature-image', |
|
32 |
- 'style' => "object-fit: $this->backgroundSize;" . |
|
33 |
- "object-position: $this->backgroundPosition;" . |
|
34 |
- "font-family: 'object-fit: $this->backgroundSize';" |
|
35 |
- ] |
|
36 |
- ] |
|
37 |
- ] |
|
38 |
- ); |
|
39 |
- } else { |
|
40 |
- $blnIsVideo = !$blnIsVideo; |
|
41 |
- } |
|
24 |
+ if (in_array( |
|
25 |
+ $file->extension, |
|
26 |
+ array_map('trim', explode(',', \Config::get('validImageTypes'))) |
|
27 |
+ )) |
|
28 |
+ { |
|
29 |
+ $figure = $this->figure( |
|
30 |
+ $file->uuid, $this->backgroundImageSize, |
|
31 |
+ [ |
|
32 |
+ 'options' => [ |
|
33 |
+ 'attr' => [ |
|
34 |
+ 'class' => 'feature-image', |
|
35 |
+ 'style' => "object-fit: $this->backgroundSize;" . |
|
36 |
+ "object-position: $this->backgroundPosition;" . |
|
37 |
+ "font-family: 'object-fit: $this->backgroundSize';" |
|
38 |
+ ] |
|
39 |
+ ] |
|
40 |
+ ] |
|
41 |
+ ); |
|
42 |
+ } else |
|
43 |
+ { |
|
44 |
+ $blnIsVideo = !$blnIsVideo; |
|
45 |
+ } |
|
42 | 46 |
} |
43 | 47 |
|
44 | 48 |
|