ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
class.ilUIFramework.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 1998-2014 ILIAS open source, Extended GPL, see docs/LICENSE */
4
13{
19 function getJSFiles()
20 {
21 return array("./Services/UICore/lib/bootstrap-3.2.0/dist/js/bootstrap.min.js");
22 }
23
29 function getCssFiles()
30 {
31 return array("./Services/UICore/lib/yamm3/yamm/yamm.css");
32 }
33
39 function init($a_tpl = null)
40 {
41 global $tpl;
42
43 if ($a_tpl == null)
44 {
45 $a_tpl = $tpl;
46 }
47
48 foreach (ilUIFramework::getJSFiles() as $f)
49 {
50 $a_tpl->addJavaScript($f, true, 1);
51 }
52 foreach (ilUIFramework::getCssFiles() as $f)
53 {
54 $a_tpl->addCss($f);
55 }
56 }
57
58}
59
60?>
global $tpl
Definition: ilias.php:8
UI framework utility class.
getJSFiles()
Get javascript files.
getCssFiles()
Get javascript files.
init($a_tpl=null)
Init.