Commit f981b4b2cbb6e25f8dc75763326a07d1fd30525c
1 parent
bde5eb58
- slide bug fix
Showing
2 changed files
with
6 additions
and
2 deletions
Show diff stats
common/models/slider/Slide.php
frontend/views/site/index.php
... | ... | @@ -24,7 +24,11 @@ _________________________________________________________ --> |
24 | 24 | <div class="homepage owl-carousel" > |
25 | 25 | |
26 | 26 | <?php foreach ($slides as $key => $slide){?> |
27 | - <div class="home-carousel" style="background: url(<?=$slide->background->getUrl()?>) center center repeat"> | |
27 | + <div class="home-carousel" | |
28 | + <?php if ($slide->background !== null){?> | |
29 | + style="background: url(<?=$slide->background->getUrl()?>) center center repeat" | |
30 | + <?php } ?> | |
31 | + > | |
28 | 32 | <div class="item"> |
29 | 33 | <div class="row"> |
30 | 34 | <div class="col-sm-5 <?=($key%2 == 0) ? 'right' : ''?>"> | ... | ... |