Commit 1033353ad7ba199d1e4326a0b46a9c44b78256ed
1 parent
0783894b
30.06.16 event images
Showing
2 changed files
with
16 additions
and
1 deletions
Show diff stats
common/config/main.php
| @@ -127,6 +127,20 @@ return [ | @@ -127,6 +127,20 @@ return [ | ||
| 127 | 'master' => null | 127 | 'master' => null |
| 128 | ], | 128 | ], |
| 129 | ], | 129 | ], |
| 130 | + 'event_list' => [ | ||
| 131 | + 'resize' => [ | ||
| 132 | + 'width' => 200, | ||
| 133 | + 'height' => 200, | ||
| 134 | + 'master' => null | ||
| 135 | + ], | ||
| 136 | + ], | ||
| 137 | + 'slider' => [ | ||
| 138 | + 'resize' => [ | ||
| 139 | + 'width' => 1920, | ||
| 140 | + 'height' => 480, | ||
| 141 | + 'master' => null | ||
| 142 | + ], | ||
| 143 | + ], | ||
| 130 | ] | 144 | ] |
| 131 | ], | 145 | ], |
| 132 | ], | 146 | ], |
frontend/widgets/views/slider.php
| @@ -7,9 +7,10 @@ use yii\helpers\Url; | @@ -7,9 +7,10 @@ use yii\helpers\Url; | ||
| 7 | ?> | 7 | ?> |
| 8 | <div class="carousel"> | 8 | <div class="carousel"> |
| 9 | <?php foreach($slider->sliderImage as $image): | 9 | <?php foreach($slider->sliderImage as $image): |
| 10 | + $img = \common\components\artboximage\ArtboxImageHelper::getImageSrc($image->imageUrl , 'slider'); | ||
| 10 | $htm = <<<HTML | 11 | $htm = <<<HTML |
| 11 | 12 | ||
| 12 | - <div style="background:url($image->image ) center center no-repeat;width:100%;height:480px;position:absolute;"> | 13 | + <div style="background:url($img ) center center no-repeat;width:100%;height:480px;position:absolute;"> |
| 13 | </div> | 14 | </div> |
| 14 | <div class="content"> | 15 | <div class="content"> |
| 15 | 16 |