Skip to content

Commit 33db296

Browse files
Merge pull request #30 from dutchenkoOleg/master
1.7.0
2 parents b0a55e7 + 9fa7de4 commit 33db296

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/WezomAgency/R2D2.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,18 @@ public function svgSymbol($id, $attrs = [], $spritemap = null)
263263
return '<svg ' . $svgAttributes . '><use xlink:href="' . $useHref . '"></use></svg>';
264264
}
265265

266+
267+
/**
268+
* @param int|null $width
269+
* @param int|null $height
270+
* @return string
271+
*/
272+
public function svgPlaceholder($width = 100, $height = 100)
273+
{
274+
return htmlspecialchars('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="' . $width . '" height="' . $height . '"></svg>');
275+
}
276+
277+
266278
/**
267279
* @param string $id
268280
* @param null $number

0 commit comments

Comments
 (0)