ILIAS  release_8 Revision v8.24
class.ilLinkifyUtil.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
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 "./node_modules/linkifyjs/dist/linkify.min.js",
53 "./node_modules/linkifyjs/dist/linkify-jquery.min.js",
54 "./Services/Link/js/ilExtLink.js"
55 ];
56 }
57}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static string $ver
static getLocalJsPaths()
Get paths of necessary js files.
static string $min
static initLinkify(?ilGlobalTemplateInterface $a_tpl=null)
global $DIC
Definition: feed.php:28
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl
Definition: latex.php:41