[ Index ]

PHP Cross Reference of phpBB-3.1.12-deutsch

title

Body

[close]

/phpbb/template/twig/node/ -> includejs.php (source)

   1  <?php
   2  /**
   3  *
   4  * This file is part of the phpBB Forum Software package.
   5  *
   6  * @copyright (c) phpBB Limited <https://www.phpbb.com>
   7  * @license GNU General Public License, version 2 (GPL-2.0)
   8  *
   9  * For full copyright and license information, please see
  10  * the docs/CREDITS.txt file.
  11  *
  12  */
  13  
  14  namespace phpbb\template\twig\node;
  15  
  16  class includejs extends \phpbb\template\twig\node\includeasset
  17  {
  18      /**
  19      * {@inheritdoc}
  20      */
  21  	public function get_definition_name()
  22      {
  23          return 'SCRIPTS';
  24      }
  25  
  26      /**
  27      * {@inheritdoc}
  28      */
  29  	protected function append_asset(\Twig_Compiler $compiler)
  30      {
  31          $config = $this->environment->get_phpbb_config();
  32  
  33          $compiler
  34              ->raw("<script type=\"text/javascript\" src=\"' . ")
  35              ->raw("\$asset_file")
  36              ->raw(". '\"></script>\n")
  37          ;
  38      }
  39  }


Generated: Thu Jan 11 00:25:41 2018 Cross-referenced by PHPXref 0.7.1