4 include_once(
"./Services/UICore/lib/html-it/IT.php");
5 include_once(
"./Services/UICore/lib/html-it/ITX.php");
46 $this->
template =
new ilTemplate($file, $flag1, $flag2, $in_module, $vars,
$plugin, $a_use_cache);
77 $this->show_footer =
false;
89 $lng = $DIC->language();
91 $ilCtrl = $DIC->ctrl();
92 $ilDB = $DIC->database();
94 if (!$this->show_footer) {
98 $ftpl =
new ilTemplate(
"tpl.footer.html",
true,
true,
"Services/UICore");
102 $php =
", PHP " . phpversion();
104 $ftpl->setVariable(
"ILIAS_VERSION",
$ilSetting->get(
"ilias_version") . $php);
106 $link_items = array();
109 include_once
"Services/Imprint/classes/class.ilImprint.php";
111 include_once
"Services/Link/classes/class.ilLink.php";
116 include_once(
"./Modules/SystemFolder/classes/class.ilSystemSupportContactsGUI.php");
122 if (function_exists(
"tidy_parse_string")) {
129 include_once(
"Services/Language/classes/class.ilObjLanguageAccess.php");
135 foreach ($link_items as
$url => $caption) {
138 $ftpl->touchBlock(
"blank");
140 if ($cnt <
sizeof($link_items)) {
141 $ftpl->touchBlock(
"item_separator");
144 $ftpl->setCurrentBlock(
"items");
146 $ftpl->setVariable(
"TXT_ITEM", $caption[0]);
147 $ftpl->parseCurrentBlock();
152 $t1 = explode(
" ",
$GLOBALS[
'ilGlobalStartTime']);
153 $t2 = explode(
" ", microtime());
154 $diff = $t2[0] - $t1[0] + $t2[1] - $t1[1];
156 $mem_usage = array();
157 if (function_exists(
"memory_get_usage")) {
159 "Memory Usage: " . memory_get_usage() .
" Bytes";
161 if (function_exists(
"xdebug_peak_memory_usage")) {
163 "XDebug Peak Memory Usage: " . xdebug_peak_memory_usage() .
" Bytes";
165 $mem_usage[] = round($diff, 4) .
" Seconds";
167 if (
sizeof($mem_usage)) {
168 $ftpl->setVariable(
"MEMORY_USAGE",
"<br>" . implode(
" | ", $mem_usage));
171 if (!empty(
$_GET[
"do_dev_validate"]) && $ftpl->blockExists(
"xhtml_validation")) {
172 require_once(
"Services/XHTMLValidator/classes/class.ilValidatorAdapter.php");
173 $template2 = clone($this);
174 $ftpl->setCurrentBlock(
"xhtml_validation");
183 ),
$_GET[
"do_dev_validate"])
185 $ftpl->parseCurrentBlock();
189 if (is_object($ilCtrl) && $ftpl->blockExists(
"c_entry") &&
190 $ftpl->blockExists(
"call_history")) {
191 $hist = $ilCtrl->getCallHistory();
192 foreach ($hist as $entry) {
193 $ftpl->setCurrentBlock(
"c_entry");
194 $ftpl->setVariable(
"C_ENTRY", $entry[
"class"]);
195 if (is_object(
$ilDB)) {
196 $file = $ilCtrl->lookupClassPath($entry[
"class"]);
197 $add = $entry[
"mode"] .
" - " . $entry[
"cmd"];
199 $add .=
" - " . $file;
201 $ftpl->setVariable(
"C_FILE", $add);
203 $ftpl->parseCurrentBlock();
205 $ftpl->setCurrentBlock(
"call_history");
206 $ftpl->parseCurrentBlock();
210 if (is_object($ilCtrl) && $ftpl->blockExists(
"i_entry") &&
211 $ftpl->blockExists(
"included_files")) {
212 $fs = get_included_files();
215 foreach ($fs as
$f) {
216 $ifiles[] = array(
"file" => $f,
"size" => filesize($f));
220 foreach ($ifiles as $f) {
221 $ftpl->setCurrentBlock(
"i_entry");
222 $ftpl->setVariable(
"I_ENTRY", $f[
"file"] .
" (" . $f[
"size"] .
" Bytes, " . round(100 /
$total * $f[
"size"], 2) .
"%)");
223 $ftpl->parseCurrentBlock();
225 $ftpl->setCurrentBlock(
"i_entry");
226 $ftpl->setVariable(
"I_ENTRY",
"Total (" .
$total .
" Bytes, 100%)");
227 $ftpl->parseCurrentBlock();
228 $ftpl->setCurrentBlock(
"included_files");
229 $ftpl->parseCurrentBlock();
236 $ilBench->stop(
"Core",
"ElapsedTimeUntilFooter");
239 ", " . number_format(
$ilBench->getMeasuredTime(
"Core",
"ElapsedTimeUntilFooter"), 1) .
' seconds' 267 $ilMainMenu = $DIC[
"ilMainMenu"];
271 $this->main_menu = $ilMainMenu->getHTML();
272 $this->main_menu_spacer = $ilMainMenu->getSpacerClass();
281 $tpl->setVariable(
"MAINMENU", $this->main_menu);
282 $tpl->setVariable(
"MAINMENU_SPACER", $this->main_menu_spacer);
298 include_once(
"./Services/Help/classes/class.ilHelpGUI.php");
320 self::MESSAGE_TYPE_FAILURE,
321 self::MESSAGE_TYPE_INFO,
322 self::MESSAGE_TYPE_SUCCESS,
323 self::MESSAGE_TYPE_QUESTION,
341 if (!in_array($a_type, self::$message_types) || $a_txt ==
"") {
345 $this->message[$a_type] = $a_txt;
360 foreach (self::$message_types as $m) {
367 $request = $DIC->http()->request();
368 $accept_header = $request->getHeaderLine(
'Accept');
369 if (isset(
$_SESSION[$m]) &&
$_SESSION[$m] && ($accept_header !==
'application/json')) {
391 if (isset($this->message[$m])) {
392 $txt = $this->message[$m];
409 protected $js_files = array(0 =>
"./Services/JavaScript/js/Basic.js");
415 protected $js_files_vp = array(
"./Services/JavaScript/js/Basic.js" =>
true);
426 public function addJavaScript($a_js_file, $a_add_version_parameter =
true, $a_batch = 2)
429 if ($a_batch < 1 || $a_batch > 3) {
434 if (is_int(strpos($a_js_file,
"Services/jQuery")) ||
435 is_int(strpos($a_js_file,
"/jquery.js")) ||
436 is_int(strpos($a_js_file,
"/jquery-min.js"))) {
440 if (!in_array($a_js_file, $this->js_files)) {
441 $this->js_files[] = $a_js_file;
442 $this->js_files_vp[$a_js_file] = $a_add_version_parameter;
443 $this->js_files_batch[$a_js_file] = $a_batch;
453 if ($a_batch < 1 || $a_batch > 3) {
456 $this->on_load_code[$a_batch][] = $a_code;
467 for (
$i = 1;
$i <= 3;
$i++) {
468 if (is_array($this->on_load_code[
$i])) {
469 foreach ($this->on_load_code[$i] as $code) {
475 return '<script type="text/javascript">' .
"\n" .
489 $this->js_files = array();
490 $this->js_files_vp = array();
491 $this->js_files_batch = array();
507 $vers =
"vers=" . str_replace(array(
".",
" "),
"-",
$ilSetting->get(
"ilias_version"));
510 $vers .=
'-' . time();
515 for (
$i = 0;
$i <= 3;
$i++) {
516 reset($this->js_files);
517 foreach ($this->js_files as $file) {
518 if ($this->js_files_batch[$file] ==
$i) {
519 if (is_file($file) || substr($file, 0, 4) ==
"http" || substr($file, 0, 2) ==
"//" || $a_force) {
521 } elseif (substr($file, 0, 2) ==
'./') {
522 $url_parts = parse_url($file);
523 if (is_file($url_parts[
'path'])) {
538 for (
$i = 1;
$i <= 3;
$i++) {
539 if (is_array($this->on_load_code[
$i])) {
541 foreach ($this->on_load_code[$i] as $code) {
559 if ($this->js_files_vp[$file]) {
589 public function addCss($a_css_file, $media =
"screen")
591 if (!array_key_exists($a_css_file . $media, $this->css_files)) {
592 $this->css_files[$a_css_file . $media] = array(
"file" => $a_css_file,
"media" => $media);
605 $this->inline_css[] = array(
"css" => $a_css,
"media" => $media);
623 foreach ($this->css_files as $css) {
649 $this->body_class = $a_class;
654 if ($this->body_class !=
"" && $this->
blockExists(
"body_class")) {
656 $this->
setVariable(
"BODY_CLASS", $this->body_class);
666 $this->css_files = array();
679 foreach ($this->inline_css as $css) {
692 "LOCATION_NEWCONTENT_STYLESHEET_TAG",
693 '<link rel="stylesheet" type="text/css" href="' .
715 if ($this->standard_template_loaded) {
720 include_once(
"./Services/jQuery/classes/class.iljQueryUtil.php");
725 include_once(
"./Services/UICore/classes/class.ilUIFramework.php");
728 $this->
addBlockFile(
"CONTENT",
"content",
"tpl.adm_content.html");
729 $this->
addBlockFile(
"STATUSLINE",
"statusline",
"tpl.statusline.html");
731 $this->standard_template_loaded =
true;
752 public function setTitle($a_title, $hidden =
false)
754 $this->title = $a_title;
755 $this->header_page_title = $a_title;
763 $this->title_desc = $a_descr;
771 $this->icon_desc = $a_icon_desc;
772 $this->icon_path = $a_icon_path;
782 $this->title_alerts = $a_props;
812 $this->header_action = $a_header;
825 $this->header_page_title = $a_title;
835 $lng = $DIC->language();
838 if ($this->icon_path !=
"") {
841 if ($this->icon_desc !=
"") {
842 $this->
setVariable(
"IMAGE_DESC",
$lng->txt(
"icon") .
" " . $this->icon_desc);
843 $this->
setVariable(
"IMAGE_ALT",
$lng->txt(
"icon") .
" " . $this->icon_desc);
846 $this->
setVariable(
"IMG_HEADER", $this->icon_path);
851 if ($this->title !=
"") {
863 if ($this->title_desc !=
"") {
865 $this->
setVariable(
"H_DESCRIPTION", $this->title_desc);
876 if (count((array) $this->title_alerts)) {
877 foreach ($this->title_alerts as $alert) {
879 if (!($alert[
'propertyNameVisible'] ===
false)) {
880 $this->
setVariable(
'H_PROP', $alert[
'property'] .
':');
888 if ($this->enable_fileupload != null) {
889 $ref_id = $this->enable_fileupload;
890 $upload_id =
"dropzone_" . $ref_id;
892 include_once(
"./Services/FileUpload/classes/class.ilFileUploadGUI.php");
895 $this->
setVariable(
"FILEUPLOAD_DROPZONE_ID",
" id=\"$upload_id\"");
898 $this->
setVariable(
"HEADER_FILEUPLOAD_SCRIPT", $upload->getHTML());
927 $ilMainMenu = $DIC[
"ilMainMenu"];
928 $ilLocator = $DIC[
"ilLocator"];
930 $ilPluginAdmin = $DIC[
"ilPluginAdmin"];
940 if (is_object($ilPluginAdmin)) {
941 include_once(
"./Services/UIComponent/classes/class.ilUIHookProcessor.php");
942 $html = $ilLocator->getHTML();
946 array(
"locator_gui" => $ilLocator,
"html" => $html)
948 $html = $uip->getHTML($html);
950 $html = $ilLocator->getHTML();
978 if ($a_tabs_html !=
"" && $this->
blockExists(
"tabs_outer_start")) {
1003 if ($this->tabs_html !=
"") {
1006 $this->
setVariable(
"SUB_TABS", $this->sub_tabs_html);
1014 $ilTabs = $DIC[
"ilTabs"];
1017 $this->sub_tabs_html = $ilTabs->getSubTabHTML();
1018 $this->tabs_html = $ilTabs->getHTML(
true);
1034 if ($a_html !=
"") {
1035 $this->main_content = $a_html;
1044 $this->left_content = $a_html;
1052 $this->left_nav_content = $a_content;
1060 if (trim($this->left_nav_content) !=
"") {
1062 $this->
setVariable(
"LEFT_NAV_CONTENT", $this->left_nav_content);
1073 $this->right_content = $a_html;
1081 $center_column_class =
"";
1082 if (trim($this->right_content) !=
"" && trim($this->left_content) !=
"") {
1083 $center_column_class =
"two_side_col";
1084 } elseif (trim($this->right_content) !=
"" || trim($this->left_content) !=
"") {
1085 $center_column_class =
"one_side_col";
1088 switch ($center_column_class) {
1089 case "one_side_col": $center_column_class =
"col-sm-9";
break;
1090 case "two_side_col": $center_column_class =
"col-sm-6";
break;
1091 default: $center_column_class =
"col-sm-12";
break;
1093 if (trim($this->left_content) !=
"") {
1094 $center_column_class .=
" col-sm-push-3";
1098 $this->
setVariable(
"CENTER_COL", $center_column_class);
1104 if (trim($this->main_content) !=
"") {
1105 $this->
setVariable(
"ADM_CONTENT", $this->main_content);
1111 if (trim($this->left_content) !=
"") {
1113 $this->
setVariable(
"LEFT_CONTENT", $this->left_content);
1114 $left_col_class = (trim($this->right_content) ==
"")
1115 ?
"col-sm-3 col-sm-pull-9" 1116 :
"col-sm-3 col-sm-pull-6";
1117 $this->
setVariable(
"LEFT_COL_CLASS", $left_col_class);
1124 if (trim($this->right_content) !=
"") {
1126 $this->
setVariable(
"RIGHT_CONTENT", $this->right_content);
1142 $ilToolbar = $DIC[
"ilToolbar"];
1145 $thtml = $ilToolbar->getHTML();
1164 $lng = $DIC->language();
1167 $contentLanguage =
'en';
1168 $rtl = array(
'ar',
'fa',
'ur',
'he');
1174 $contentLanguage =
$ilUser->getLanguage();
1175 } elseif (is_object(
$lng)) {
1176 $contentLanguage =
$lng->getDefaultLanguage();
1179 $this->
setVariable(
'META_CONTENT_LANGUAGE', $contentLanguage);
1180 if (in_array($contentLanguage, $rtl)) {
1183 $this->
setVariable(
'LANGUAGE_DIRECTION', $textdir);
1196 if ($this->header_page_title !=
"") {
1201 if (
$ilSetting->get(
'short_inst_name') !=
"") {
1221 $this->page_form_action = $a_action;
1226 if ($this->page_form_action !=
"") {
1228 $this->
setVariable(
"PAGE_FORM_ACTION", $this->page_form_action);
1246 $this->login_target_par = $a_val;
1254 return $this->login_target_par;
1278 $add_error_mess =
false,
1279 $handle_referer =
false,
1280 $add_ilias_footer =
false,
1281 $add_standard_elements =
false,
1282 $a_main_menu =
true,
1287 if ($add_error_mess) {
1291 if ($add_ilias_footer) {
1296 if ($add_standard_elements) {
1349 if ($handle_referer) {
1353 if ($part ==
"DEFAULT") {
1354 $html = $this->
template->get();
1356 $html = $this->
template->get($part);
1370 public function printToStdout($part =
"DEFAULT", $a_fill_tabs =
true, $a_skip_main_menu =
false)
1374 $http = $DIC->http();
1375 switch (
$http->request()->getHeaderLine(
'Accept')) {
1376 case 'application/json':
1377 $string = json_encode([
1378 self::MESSAGE_TYPE_SUCCESS => is_null($this->message[self::MESSAGE_TYPE_FAILURE]),
1382 $http->saveResponse(
$http->response()->withBody($stream));
1383 $http->sendResponse();
1387 include_once(
"./Services/YUI/classes/class.ilYuiUtil.php");
1390 header(
'P3P: CP="CURa ADMa DEVa TAIa PSAa PSDa IVAa IVDa OUR BUS IND UNI COM NAV INT CNT STA PRE"');
1391 header(
"Content-type: text/html; charset=UTF-8");
1396 if ($part !==
false) {
1409 if (!$a_skip_main_menu) {
1453 if ($part ==
"DEFAULT" or is_bool($part)) {
1454 $html = $this->
template->getUnmodified();
1456 $html = $this->
template->getUnmodified($part);
1462 $ilPluginAdmin = $DIC[
"ilPluginAdmin"];
1463 $pl_names = $ilPluginAdmin->getActivePluginsForSlot(
IL_COMP_SERVICE,
"UIComponent",
"uihk");
1464 foreach ($pl_names as $pl) {
1466 $gui_class = $ui_plugin->getUIClassInstance();
1468 $resp = $gui_class->getHTML(
1471 array(
"tpl_id" => $this->tplIdentifier,
"tpl_obj" => $this,
"html" => $html)
1475 $html = $gui_class->modifyHTML($html,
$resp);
1496 if (((substr(strrchr(
$_SERVER[
"PHP_SELF"],
"/"), 1) !=
"error.php")
1497 && (substr(strrchr(
$_SERVER[
"PHP_SELF"],
"/"), 1) !=
"adm_menu.php")
1498 && (substr(strrchr(
$_SERVER[
"PHP_SELF"],
"/"), 1) !=
"chat.php"))) {
1501 $url_parts = @parse_url(
$_SERVER[
"REQUEST_URI"]);
1503 $protocol = (isset(
$_SERVER[
'HTTPS']) ?
'https' :
'http') .
'://';
1506 $url_parts = @parse_url($protocol . $host . $path);
1509 if (isset($url_parts[
"query"]) && preg_match(
"/cmd=gateway/", $url_parts[
"query"]) && (isset(
$_POST[
"cmd"][
"create"]))) {
1510 foreach (
$_POST as $key => $val) {
1511 if (is_array($val)) {
1515 $str .=
"&" . $key .
"=" . $val;
1518 $_SESSION[
"referer"] = preg_replace(
"/cmd=gateway/", substr($str, 1),
$_SERVER[
"REQUEST_URI"]);
1520 } elseif (isset($url_parts[
"query"]) && preg_match(
"/cmd=post/", $url_parts[
"query"]) && (isset(
$_POST[
"cmd"][
"create"]))) {
1521 foreach (
$_POST as $key => $val) {
1522 if (is_array($val)) {
1526 $str .=
"&" . $key .
"=" . $val;
1529 $_SESSION[
"referer"] = preg_replace(
"/cmd=post/", substr($str, 1),
$_SERVER[
"REQUEST_URI"]);
1530 if (isset(
$_GET[
'ref_id'])) {
1537 if (isset(
$_GET[
'ref_id'])) {
1572 $lng = $DIC->language();
1575 if ($this->tree_flat_link !=
"") {
1576 if ($this->left_nav_content !=
"") {
1581 $this->
setVariable(
"LINK_MODE", $this->tree_flat_link);
1582 if (
$ilSetting->get(
"tree_frame") ==
"right") {
1583 if ($this->tree_flat_mode ==
"tree") {
1591 if ($this->tree_flat_mode ==
"tree") {
1597 $this->
setVariable(
"ALT_TREE",
$lng->txt($this->tree_flat_mode .
"view"));
1599 include_once(
"./Services/Accessibility/classes/class.ilAccessKeyGUI.php");
1620 $this->tree_flat_link = $a_link;
1621 $this->tree_flat_mode = $a_mode;
1630 $this->lightbox[$a_id] = $a_html;
1643 foreach ($this->lightbox as $lb) {
1668 $this->admin_panel_commands_toolbar = $toolb;
1669 $this->admin_panel_arrow = $a_arrow;
1670 $this->admin_panel_bottom = $a_bottom_panel;
1681 $lng = $DIC->language();
1683 if ($this->admin_panel_commands_toolbar === null) {
1691 if ($this->admin_panel_arrow) {
1699 $this->
setVariable(
"ADM_PANEL1", $toolb->getHTML());
1703 if ($this->admin_panel_bottom) {
1707 if ($this->admin_panel_arrow) {
1711 $this->
setVariable(
"ADM_PANEL2", $toolb->getHTML());
1716 public function setPermanentLink($a_type, $a_id, $a_append =
"", $a_target =
"", $a_title =
"")
1718 $this->permanent_link = array(
1721 "append" => $a_append,
1722 "target" => $a_target,
1723 "title" => $a_title);
1731 if (is_array($this->permanent_link)) {
1732 include_once(
"./Services/PermanentLink/classes/class.ilPermanentLinkGUI.php");
1734 $this->permanent_link[
"type"],
1735 $this->permanent_link[
"id"],
1736 $this->permanent_link[
"append"],
1737 $this->permanent_link[
"target"]
1739 if ($this->permanent_link[
"title"] !=
"") {
1740 $plinkgui->setTitle($this->permanent_link[
"title"]);
1742 $this->
setVariable(
"PRMLINK", $plinkgui->getHTML());
1758 if ($a_reset_header_action) {
1768 $this->enable_fileupload = $a_ref_id;
1780 public function get($part =
"DEFAULT")
1782 return $this->
template->get($part);
1787 return $this->
template->setVariable($variable, $value);
1792 return $this->
template->variableExists($a_variablename);
1802 return $this->
template->setCurrentBlock($part);
1813 return $this->
template->touchBlock($block);
1824 return $this->
template->parseCurrentBlock($part);
1838 return $this->
template->addBlockFile($var, $block, $tplname, $in_module);
1849 return $this->
template->blockExists($a_blockname);
static sortArray( $array, $a_array_sortby, $a_array_sortorder=0, $a_numeric=false, $a_keep_keys=false)
sortArray
fillJavascriptFile($file, $vers)
printToStdout($part="DEFAULT", $a_fill_tabs=true, $a_skip_main_menu=false)
getOnLoadCodeForAsynch()
Get js onload code for ajax calls.
fillFooter()
Fill the footer area.
fillSideIcons()
Fill side icons (upper icon, tree icon, webfolder icon)
touchBlock($block)
overwrites ITX::touchBlock.
addJavaScript($a_js_file, $a_add_version_parameter=true, $a_batch=2)
Add a javascript file that should be included in the header.
fillMessage()
Fill message area.
special template class to simplify handling of ITX/PEAR
setOnScreenMessage($a_type, $a_txt, $a_keep=false)
Set a message to be displayed to the user.
Class for permanent links.
$admin_panel_commands_toolbar
setRightContent($a_html)
Sets content of right column.
static _isPageTranslation()
Check if the current request is a page translation.
getHeaderActionMenu()
Get header action menu.
fillInlineCss()
Fill in the inline css.
handleReferer()
TODO: this is nice, but shouldn't be done here (-> maybe at the end of ilias.php!?, alex)
setTitleIcon($a_icon_path, $a_icon_desc="")
set title icon
static _getStaticLink( $a_ref_id, $a_type='', $a_fallback_goto=true, $append="")
Get static link.
addAdminPanelToolbar(ilToolbarGUI $toolb, $a_bottom_panel=true, $a_arrow=false)
Add admin panel commands as toolbar.
static getSystemMessageHTML($a_txt, $a_type="info")
Get HTML for a system message.
setTitle($a_title, $hidden=false)
Sets title in standard template.
fillCssFiles($a_force=false)
Fill in the css file tags.
addBlockFile($var, $block, $tplname, $in_module=false)
overwrites ITX::addBlockFile public
static getNewContentStyleSheetLocation($mode="output")
get full style sheet file name (path inclusive) of current user
getLoginTargetPar()
Get target parameter for login.
setPageFormAction($a_action)
addCss($a_css_file, $media="screen")
Add a css file that should be included in the header.
setHeaderPageTitle($a_title)
Sets the title of the page (for browser window).
resetHeaderBlock($a_reset_header_action=true)
Reset all header properties: title, icon, description, alerts, action menu.
setLeftContent($a_html)
Sets content of left column.
setCurrentBlock($part="DEFAULT")
public
static stripScriptHTML($a_str, $a_allow="", $a_rm_js=true)
strip only html tags (4.0) from text $allowed contains tags to be allowed, in format tags a and b ar...
loadStandardTemplate()
This loads the standard template "tpl.adm_content.html" and "tpl.statusline.html" the CONTENT and STA...
static validate($a_html, $a_mode)
static initDom(ilGlobalTemplateInterface $a_main_tpl=null)
Init YUI Dom.
setBodyClass($a_class="")
fillJavaScriptFiles($a_force=false)
const MESSAGE_TYPE_QUESTION
static appendUrlParameterString($a_url, $a_par, $xml_style=false)
append URL parameter string ("par1=value1&par2=value2...") to given URL string
setAlertProperties(array $a_props)
Set alert properties.
clearHeader()
Clear header.
static _getTranslationLink()
Get the link to translate the current page.
fillScreenReaderFocus()
Accessibility focus for screen readers.
setTreeFlatIcon($a_link, $a_mode)
set tree/flat icon
fillOnLoadCode()
Fill add on load code.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
const MESSAGE_TYPE_FAILURE
fillLeftNav()
Fill left navigation frame.
resetJavascript()
Reset javascript files.
const MESSAGE_TYPE_SUCCESS
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
fillLightbox()
Fill lightbox content.
fillPermanentLink()
Fill in permanent link.
static ofString($string)
Creates a new stream with an initial value.
static getPluginObject($a_ctype, $a_cname, $a_slot_id, $a_pname)
Get Plugin Object.
addLightbox($a_html, $a_id)
Add lightbox html.
setVariable($variable, $value='')
addOnLoadCode($a_code, $a_batch=2)
Add on load code.
fillAdminPanel()
Put admin panel into template:
setPermanentLink($a_type, $a_id, $a_append="", $a_target="", $a_title="")
setLoginTargetPar($a_val)
Set target parameter for login (public sector).
getMessageTextForType($m)
static initjQueryUI($a_tpl=null)
inits and adds the jQuery-UI JS-File to the global template (see included_components.txt for included components)
resetCss()
Reset css files.
blockExists($a_blockname)
check if block exists in actual template private
fillNewContentStyle()
Fill Content Style.
static secureUrl($url)
Prepare secure href attribute.
setTabs($a_tabs_html)
sets tabs in standard template
setDescription($a_descr)
Sets descripton below title in standard template.
__construct( $file, $flag1, $flag2, $in_module=false, $vars="DEFAULT", $plugin=false, $a_use_cache=true)
constructor
setLeftNavContent($a_content)
Sets content of left navigation column.
$standard_template_loaded
static initjQuery(ilGlobalTemplateInterface $a_tpl=null)
inits and adds the jQuery JS-File to the global or a passed template
fillContentLanguage()
Add current user language to meta tags.
setLocator()
Insert locator.
static init(ilGlobalTemplateInterface $a_tpl=null)
Init.
parseCurrentBlock($part="DEFAULT")
Überladene Funktion, die auf den aktuelle Block vorher noch ein replace ausführt public...
static _saveUsages()
Store the collected language variable usages in the user session This should be called as late as pos...
hideFooter()
Make the template hide the footer.
setHeaderActionMenu($a_header)
Set header action menu.
static getAttribute($a_func_id)
Get accesskey HTML attribute.
$inline_css
Stores CSS to be included directly.
setContent($a_html)
Sets content for standard template.
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl
variableExists($a_variablename)
const MODE_TOPBAR_REDUCED
addInlineCss($a_css, $media="screen")
Add a css file that should be included in the header.
setSubTabs($a_tabs_html)
sets subtabs in standard template
getSpecial( $part="DEFAULT", $add_error_mess=false, $handle_referer=false, $add_ilias_footer=false, $add_standard_elements=false, $a_main_menu=true, $a_tabs=true)
static _checkTranslate()
Permission check for translations.
enableDragDropFileUpload($a_ref_id)
Enables the file upload into this object by dropping a file.