Skip to content

Commit

Permalink
Add the background image
Browse files Browse the repository at this point in the history
  • Loading branch information
zelardiel committed May 16, 2016
1 parent cefe1fa commit 41b5185
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Unslider.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public function run() {
$content = Html::tag('div', $content, ['class' => 'inner__table']);
$content = Html::tag('div', $content, ['class' => 'inner']);
$img = Html::img('/img/slider-size.gif');
$slider .= Html::tag('li', $content . $img);
$slider .= Html::tag('li', $content . $img, ['style' => 'background-image: url(' . $slide['img'] . ');']);
}
$slider .= Html::endTag('ul');
$slider .= Html::endTag('div');
Expand Down

0 comments on commit 41b5185

Please sign in to comment.