ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilLinkifyUtil.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
26{
27 private static string $ver = "1_1";
28 private static string $min = ".min";
29
30 public static function initLinkify(?ilGlobalTemplateInterface $a_tpl = null): void
31 {
32 global $DIC;
33
34 $tpl = $DIC["tpl"];
35
36 if ($a_tpl === null) {
37 $a_tpl = $tpl;
38 }
39
40 foreach (self::getLocalJsPaths() as $p) {
41 $a_tpl->addJavaScript($p);
42 }
43 }
44
49 public static function getLocalJsPaths(): array
50 {
51 return [
52 "assets/js/linkify.min.js",
53 "assets/js/linkify-element.min.js",
54 "assets/js/ilExtLink.js"
55 ];
56 }
57}
Linkify utility class.
static string $ver
static getLocalJsPaths()
Get paths of necessary js files.
static string $min
static initLinkify(?ilGlobalTemplateInterface $a_tpl=null)
global $DIC
Definition: shib_login.php:26