Source of file StyleBlock.php
Size: 0,441 Bytes - Last Modified: 2017-11-08T13:54:24+00:00
/home/travis/build/bluzphp/framework/src/View/Helper/StyleBlock.php
12345678910111213141516171819202122232425 | <?php /** * Bluz Framework Component * * @copyright Bluz PHP Team * @link https://github.com/bluzphp/framework */ declare(strict_types=1); namespace Bluz\View\Helper; /** * Generate HTML for <style> or <link> element * * @param string $code * @param string $media * * @return string */ return function ($code, $media = 'all') { return "<style type=\"text/css\" media=\"$media\">\n$code\n</style>\n"; }; |