diff options
author | Nathaniel Guse <nathaniel.guse@gmail.com> | 2013-07-11 15:22:05 -0500 |
---|---|---|
committer | Nathaniel Guse <nathaniel.guse@gmail.com> | 2013-07-11 15:31:55 -0500 |
commit | 159f018056659fa3eccae744ec513efbd2221f77 (patch) | |
tree | cbc5b6495c6c34e7c74660b05fe6fae8eb80a68a /phpBB/includes/template/twig/node | |
parent | 59f34bef087259722e1f7eaa95b96460e007cb30 (diff) | |
download | forums-159f018056659fa3eccae744ec513efbd2221f77.tar forums-159f018056659fa3eccae744ec513efbd2221f77.tar.gz forums-159f018056659fa3eccae744ec513efbd2221f77.tar.bz2 forums-159f018056659fa3eccae744ec513efbd2221f77.tar.xz forums-159f018056659fa3eccae744ec513efbd2221f77.zip |
[ticket/11388] INCLUDECSS
PHPBB3-11388
Diffstat (limited to 'phpBB/includes/template/twig/node')
-rw-r--r-- | phpBB/includes/template/twig/node/includecss.php | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/phpBB/includes/template/twig/node/includecss.php b/phpBB/includes/template/twig/node/includecss.php new file mode 100644 index 0000000000..01fda44aad --- /dev/null +++ b/phpBB/includes/template/twig/node/includecss.php @@ -0,0 +1,30 @@ +<?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 +{ + public function get_definition_name() + { + return 'STYLESHEETS'; + } + + /** + * Compiles the node to PHP. + * + * @param Twig_Compiler A Twig_Compiler instance + */ + public function append_asset(Twig_Compiler $compiler) + { + $compiler + ->raw("<link href=\"' . ") + ->raw("\$asset_file . '\"") + ->raw(' rel="stylesheet" type="text/css" media="screen, projection" />') + ; + } +} |