ILIAS  trunk Revision v12.0_alpha-377-g3641b37b9db
class.iljQueryUtil.php
Go to the documentation of this file.
1<?php
2
25{
29 private static $min = ".min";
30
31
37 public static function initjQuery(?ilGlobalTemplateInterface $a_tpl = null): void
38 {
39 global $DIC;
40
41 self::$min = "";
42 if ($a_tpl === null) {
43 $a_tpl = $DIC["tpl"];
44 }
45
46 $a_tpl->addJavaScript(self::getLocaljQueryPath(), true, 0);
47 }
48
52 public static function getLocaljQueryPath(): string
53 {
54 return "assets/js/jquery" . self::$min . ".js";
55 }
56}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static getLocaljQueryPath()
static initjQuery(?ilGlobalTemplateInterface $a_tpl=null)
inits and adds the jQuery JS-File to the global or a passed template
global $DIC
Definition: shib_login.php:26