Skip to content

Commit

Permalink
✨ make css helper work like kirby core for string param
Browse files Browse the repository at this point in the history
Signed-off-by: Bruno Meilick <[email protected]>
  • Loading branch information
bnomei committed Feb 11, 2022
1 parent 4ded129 commit 30e51a2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions classes/Fingerprint.php
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,10 @@ private function write(array $lookup): bool
*/
public static function css($url, $attrs = []): string
{
if (is_string( $attrs)) {
$attrs = ['media' => $attrs];
}

return (new Fingerprint())->helper('css', $url, $attrs);
}

Expand Down

0 comments on commit 30e51a2

Please sign in to comment.