diff options
Diffstat (limited to 'phpBB/includes/template')
| -rw-r--r-- | phpBB/includes/template/twig/node/includeasset.php | 15 | ||||
| -rw-r--r-- | phpBB/includes/template/twig/node/includecss.php | 14 | ||||
| -rw-r--r-- | phpBB/includes/template/twig/node/includejs.php | 14 | 
3 files changed, 35 insertions, 8 deletions
| diff --git a/phpBB/includes/template/twig/node/includeasset.php b/phpBB/includes/template/twig/node/includeasset.php index 38c0498492..b12d379157 100644 --- a/phpBB/includes/template/twig/node/includeasset.php +++ b/phpBB/includes/template/twig/node/includeasset.php @@ -62,4 +62,19 @@ abstract class phpbb_template_twig_node_includeasset extends Twig_Node  			->raw("\n');\n")  		;  	} + +	/** +	* Get the definition name +	* +	* @return string (e.g. 'SCRIPTS') +	*/ +	abstract public function get_definition_name(); + +	/** +	* Append the output code for the asset +	* +	* @param Twig_Compiler A Twig_Compiler instance +	* @return null +	*/ +	abstract protected function append_asset(Twig_Compiler $compiler);  } diff --git a/phpBB/includes/template/twig/node/includecss.php b/phpBB/includes/template/twig/node/includecss.php index 01fda44aad..450edb3e1e 100644 --- a/phpBB/includes/template/twig/node/includecss.php +++ b/phpBB/includes/template/twig/node/includecss.php @@ -9,16 +9,22 @@  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';  	}  	/** -	 * Compiles the node to PHP. -	 * -	 * @param Twig_Compiler A Twig_Compiler instance -	 */ +	* Append the output code for the asset +	* +	* @param Twig_Compiler A Twig_Compiler instance +	* @return null +	*/  	public function append_asset(Twig_Compiler $compiler)  	{  		$compiler diff --git a/phpBB/includes/template/twig/node/includejs.php b/phpBB/includes/template/twig/node/includejs.php index fdf2bea3ed..50ab448e0f 100644 --- a/phpBB/includes/template/twig/node/includejs.php +++ b/phpBB/includes/template/twig/node/includejs.php @@ -9,16 +9,22 @@  class phpbb_template_twig_node_includejs extends phpbb_template_twig_node_includeasset  { +	/** +	* Get the definition name +	* +	* @return string (e.g. 'SCRIPTS') +	*/  	public function get_definition_name()  	{  		return 'SCRIPTS';  	}  	/** -	 * Compiles the node to PHP. -	 * -	 * @param Twig_Compiler A Twig_Compiler instance -	 */ +	* Append the output code for the asset +	* +	* @param Twig_Compiler A Twig_Compiler instance +	* @return null +	*/  	protected function append_asset(Twig_Compiler $compiler)  	{  		$config = $this->environment->get_phpbb_config(); | 
