Skip to content
This repository has been archived by the owner on Feb 13, 2022. It is now read-only.

Commit

Permalink
fix endofline
Browse files Browse the repository at this point in the history
Signed-off-by: Bruno Meilick <[email protected]>
  • Loading branch information
bnomei committed Sep 20, 2018
1 parent 2c6078b commit 5fd9a95
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "bnomei/kirby3-srcset",
"type": "plugin",
"version": "1.1.4",
"version": "1.1.5",
"license": "MIT",
"description": "Kirby 3 Plugin for creating image srcset using picture element",
"autoload": {
Expand Down
4 changes: 2 additions & 2 deletions config.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@
}, explode(' ', $preset));
}
if ($file) {
$srcset = \Bnomei\Srcset::srcset($file, $preset, boolval($tag->lazy)).PHP_EOL;
$srcset = \Bnomei\Srcset::srcset($file, $preset, boolval($tag->lazy));
if($tag->link && $tag->class) {
return '<a href="'.url($tag->link).'" class="'.$tag->class.'">'.$srcset.'</a>';
} else if($tag->link) {
return '<a href="'.url($tag->link).'">'.$srcset.'</a>';
} else {
return $srcset;
return $srcset.PHP_EOL;
}
}
return '';
Expand Down

0 comments on commit 5fd9a95

Please sign in to comment.