mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-22 19:28:53 +00:00
36 lines
721 B
PHP
36 lines
721 B
PHP
<?php
|
|
/**
|
|
*
|
|
* @package phpBB3
|
|
* @copyright (c) 2013 phpBB Group
|
|
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
|
|
*
|
|
*/
|
|
|
|
class phpbb_template_twig_node_includecss extends phpbb_template_twig_node_includeasset
|
|
{
|
|
/**
|
|
* Get the definition name
|
|
*
|
|
* @return string (e.g. 'SCRIPTS')
|
|
*/
|
|
public function get_definition_name()
|
|
{
|
|
return 'STYLESHEETS';
|
|
}
|
|
|
|
/**
|
|
* Append the output code for the asset
|
|
*
|
|
* @param Twig_Compiler A Twig_Compiler instance
|
|
* @return null
|
|
*/
|
|
public function append_asset(Twig_Compiler $compiler)
|
|
{
|
|
$compiler
|
|
->raw("<link href=\"' . ")
|
|
->raw("\$asset_file . '\"")
|
|
->raw(' rel="stylesheet" type="text/css" media="screen, projection" />')
|
|
;
|
|
}
|
|
}
|