本文整理汇总了PHP中ilTemplate::show方法的典型用法代码示例。如果您正苦于以下问题:PHP ilTemplate::show方法的具体用法?PHP ilTemplate::show怎么用?PHP ilTemplate::show使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ilTemplate
的用法示例。
在下文中一共展示了ilTemplate::show方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: showAttachments
public function showAttachments()
{
/**
* @var $ilToolbar ilToolbarGUI
*/
global $ilToolbar;
$this->tpl->setTitle($this->lng->txt('mail'));
require_once 'Services/Form/classes/class.ilFileInputGUI.php';
$attachment = new ilFileInputGUI($this->lng->txt('upload'), 'userfile');
$attachment->setRequired(true);
$attachment->setSize(20);
$ilToolbar->setFormAction($this->ctrl->getFormAction($this, 'uploadFile'), true);
$ilToolbar->addInputItem($attachment);
$ilToolbar->addFormButton($this->lng->txt('upload'), 'uploadFile');
require_once 'Services/Mail/classes/class.ilMailAttachmentTableGUI.php';
$table = new ilMailAttachmentTableGUI($this, 'showAttachments');
$mailData = $this->umail->getSavedData();
$files = $this->mfile->getUserFilesData();
$data = array();
$counter = 0;
foreach ($files as $file) {
$checked = false;
if (is_array($mailData['attachments']) && in_array($file['name'], $mailData['attachments'])) {
$checked = true;
}
$data[$counter] = array('checked' => $checked, 'filename' => $file['name'], 'filesize' => (int) $file['size'], 'filecreatedate' => (int) $file['ctime']);
++$counter;
}
$table->setData($data);
$this->tpl->setContent($table->getHtml());
$this->tpl->show();
}
示例2: show
function show()
{
global $lng, $tree;
$tpl = new ilTemplate("tpl.container_link_help.html", true, true, "Services/Container");
$type_ordering = array("cat", "fold", "crs", "icrs", "icla", "grp", "chat", "frm", "lres", "glo", "webr", "file", "exc", "tst", "svy", "mep", "qpl", "spl");
$childs = $tree->getChilds($_GET["ref_id"]);
foreach ($childs as $child) {
if (in_array($child["type"], array("lm", "dbk", "sahs", "htlm"))) {
$cnt["lres"]++;
} else {
$cnt[$child["type"]]++;
}
}
$tpl->setVariable("LOCATION_STYLESHEET", ilUtil::getStyleSheetLocation());
$tpl->setVariable("TXT_HELP_HEADER", $lng->txt("help"));
foreach ($type_ordering as $type) {
$tpl->setCurrentBlock("row");
$tpl->setVariable("ROWCOL", "tblrow" . ($i++ % 2 + 1));
if ($type != "lres") {
$tpl->setVariable("TYPE", $lng->txt("objs_" . $type) . " (" . (int) $cnt[$type] . ")");
} else {
$tpl->setVariable("TYPE", $lng->txt("learning_resources") . " (" . (int) $cnt["lres"] . ")");
}
$tpl->setVariable("TXT_LINK", "[list-" . $type . "]");
$tpl->parseCurrentBlock();
}
$tpl->show();
exit;
}
示例3: showMessageForm
/**
* This form is used to show a message to the user.
* @param string $text
*/
public function showMessageForm($text)
{
ilStartUpGUI::initStartUpTemplate('tpl.pwassist_message.html', true);
$this->tpl->setVariable('TXT_PAGEHEADLINE', $this->lng->txt('password_assistance'));
$this->tpl->setVariable('IMG_PAGEHEADLINE', ilUtil::getImagePath('icon_auth_b.png'));
$this->tpl->setVariable('TXT_TEXT', str_replace("\\n", '<br />', $text));
$this->tpl->show();
}
示例4: executeCommand
public function executeCommand()
{
$this->checkPermission();
$this->initHeader();
$this->setSubTabs();
$cmd = $this->ctrl->getCmd();
$next_class = $this->ctrl->getNextClass($this);
// needed for ILIAS >= 4.5
if (ilCertificatePlugin::getBaseClass() != 'ilRouterGUI') {
$this->tpl->getStandardTemplate();
}
switch ($next_class) {
case '':
switch ($cmd) {
case 'showDefinition':
case 'showPlaceholders':
case 'showCertificates':
case 'downloadCertificate':
case 'downloadCertificates':
case 'updateDefinition':
case 'confirmTypeChange':
case 'updateType':
case 'createDefinition':
case 'updatePlaceholders':
case 'previewCertificate':
case 'buildActions':
$this->{$cmd}();
break;
case 'updatePlaceholdersPreview':
$this->updatePlaceholders('previewCertificate');
break;
case 'callBack':
case 'undoCallBack':
case 'retryGeneration':
/** @var srCertificate $certificate */
$certificate = srCertificate::find((int) $_GET['cert_id']);
if ($certificate->getDefinitionId() == $this->definition->getId()) {
$this->{$cmd}($certificate);
}
break;
case '':
if ($this->definition) {
$this->showCertificates();
} else {
$this->showDefinition();
}
}
break;
}
// needed for ILIAS >= 4.5
if (ilCertificatePlugin::getBaseClass() != 'ilRouterGUI') {
$this->tpl->show();
}
}
示例5: executeCommand
public function executeCommand()
{
if (!$this->checkPermission()) {
ilUtil::sendFailure($this->pl->txt('msg_no_permission'), true);
$this->ctrl->redirectByClass('ilpersonaldesktopgui');
}
if (iLCertificatePlugin::getBaseClass() == 'ilUIPluginRouterGUI') {
$this->tpl->getStandardTemplate();
}
$cmd = $this->ctrl->getCmd('index');
switch ($cmd) {
case 'index':
$this->index();
break;
case 'applyFilter':
$this->applyFilter();
break;
case 'resetFilter':
$this->resetFilter();
break;
case 'downloadCertificate':
$this->downloadCertificate();
break;
case 'downloadCertificates':
$this->downloadCertificates();
break;
case 'buildActions':
$this->buildActions();
break;
default:
$this->performCommand($cmd);
}
if (iLCertificatePlugin::getBaseClass() == 'ilUIPluginRouterGUI') {
$this->tpl->show();
}
}
示例6: executeCommand
public function executeCommand()
{
if (!$this->checkPermission()) {
ilUtil::sendFailure($this->pl->txt('msg_no_permission'), true);
$this->ctrl->redirectByClass('ilpersonaldesktopgui');
}
global $ilMainMenu;
$ilMainMenu->setActive('none');
$cmd = $this->ctrl->getCmd();
$next_class = $this->ctrl->getNextClass($this);
if (!in_array($cmd, array('addType', ''))) {
$this->ctrl->saveParameter($this, 'type_id');
$this->ctrl->saveParameter($this, 'signature_id');
}
// needed for ILIAS >= 4.5
if (ilCertificatePlugin::getBaseClass() != 'ilRouterGUI') {
$this->tpl->getStandardTemplate();
}
switch ($next_class) {
case '':
switch ($cmd) {
case 'showTypes':
$this->showTypes();
break;
case 'editType':
$this->editType();
$this->setTabs('general');
break;
case 'addType':
$this->addType();
$this->setTabs('general');
break;
case 'saveType':
$this->saveType();
$this->setTabs('general');
break;
case 'editTemplate':
$this->editTemplate();
$this->setTabs('template');
break;
case 'updateTemplate':
$this->updateTemplate();
$this->setTabs('template');
break;
case 'downloadDefaultTemplate':
$this->downloadDefaultTemplate();
$this->setTabs('template');
break;
case 'downloadTemplate':
$this->downloadTemplate();
$this->setTabs('template');
break;
case 'showSettings':
$this->showSettings();
$this->setTabs('settings');
break;
case 'editSetting':
$this->editSetting();
$this->setTabs('settings');
break;
case 'updateSetting':
$this->updateSetting();
$this->setTabs('settings');
break;
case 'addCustomSetting':
$this->addCustomSetting();
$this->setTabs('settings');
break;
case 'editCustomSetting':
$this->editCustomSetting();
$this->setTabs('settings');
break;
case 'confirmDeleteCustomSetting':
$this->confirmDeleteCustomSetting();
$this->setTabs('settings');
break;
case 'deleteCustomSetting':
$this->deleteCustomSetting();
break;
case 'saveCustomSetting':
$this->saveCustomSetting();
$this->setTabs('settings');
break;
case 'showPlaceholders':
$this->showPlaceholders();
$this->setTabs('placeholders');
break;
case 'addPlaceholder':
$this->addPlaceholder();
$this->setTabs('placeholders');
break;
case 'editPlaceholder':
$this->editPlaceholder();
$this->setTabs('placeholders');
break;
case 'updatePlaceholder':
$this->updatePlaceholder();
$this->setTabs('placeholders');
break;
case 'createPlaceholder':
//.........这里部分代码省略.........
示例7: getFullscreenHTML
/**
* render list in fullscreen mode
*
* @return string
*/
public function getFullscreenHTML()
{
$tpl = new ilTemplate('tpl.main.html', true, true);
$tpl->setBodyClass("ilBodyPrint");
// load style sheet depending on user's settings
$location_stylesheet = ilUtil::getStyleSheetLocation();
$tpl->setVariable("LOCATION_STYLESHEET", $location_stylesheet);
$tpl->setVariable("BODY_ATTRIBUTES", 'onload="window.print()"');
$tpl->setVariable("CONTENT", $this->getHTML());
return $tpl->show();
}
示例8: outMobImages
if ($_GET['update'] == 1) {
$tpl->setVariable('INSERT_COMMAND', '{#update}');
} else {
$tpl->setVariable('INSERT_COMMAND', '{#insert}');
}
$tpl->setVariable('URL_PREVIEW', $preview);
$error_messages = '';
if (!empty($errors)) {
$error_messages .= '<span class="error">';
foreach ($errors as $err) {
$error_messages .= $err . '<br />';
}
$error_messages .= '</span>';
}
$tpl->setVariable('ERROR_MESSAGES', $error_messages);
$tpl->show();
function outMobImages()
{
global $mobs;
global $iliasMobPath;
global $iliasAbsolutePath;
global $iliasHttpPath;
global $tinyMCE_valid_imgs;
global $tpl;
global $errors;
global $img;
global $arr_tinyMCE_image_files;
$arr_tinyMCE_image_files = array();
$i = 0;
// read image directory
foreach ($mobs as $mob) {
示例9: printPost
/**
* Print Posting.
*
*/
function printPost()
{
global $tpl, $lng, $ilAccess, $ilias;
if (!$ilAccess->checkAccess('read,visible', '', $_GET['ref_id'])) {
$ilias->raiseError($lng->txt('permission_denied'), $ilias->error_obj->MESSAGE);
}
$tplEx = new ilTemplate('tpl.forums_export_print.html', true, true, 'Modules/Forum');
$tplEx->setVariable('CSSPATH', $tpl->tplPath);
// get forum- and thread-data
$this->frm->setMDB2WhereCondition('top_pk = %s ', array('integer'), array($_GET['top_pk']));
if (is_array($frmData = $this->frm->getOneTopic())) {
// post object
$post = new ilForumPost((int) $_GET['print_post']);
// headline
$tplEx->setVariable('HEADLINE', $lng->txt('forum') . ': ' . $frmData['top_name'] . ' > ' . $lng->txt('forums_thread') . ': ' . $post->getThread()->getSubject());
$tplEx->setCurrentBlock('posts_row');
$tplEx->setVariable('ROWCOL', 'tblrow2');
$authorinfo = new ilForumAuthorInformation($post->getUserId(), $post->getUserAlias(), $post->getImportName());
$tplEx->setVariable('AUTHOR', $authorinfo->getAuthorName());
if ($post->getUserId()) {
// get create- and update-dates
if ($post->getUpdateUserId()) {
$authorinfo = new ilForumAuthorInformation($post->getUpdateUserId(), '', '');
$tplEx->setVariable('POST_UPDATE', "<br />[" . $lng->txt('edited_on') . ": " . $this->frm->convertDate($post->getChangeDate()) . " - " . strtolower($lng->txt('from')) . " " . $authorinfo->getAuthorName() . "]");
}
if ($ilAccess->checkAccess('moderate_frm', '', $_GET['ref_id'])) {
$numPosts = $this->frm->countUserArticles($post->getUserId());
} else {
$numPosts = $this->frm->countActiveUserArticles($post->getUserId());
}
}
$tplEx->setVariable('SUBJECT', $post->getSubject());
$tplEx->setVariable('TXT_CREATE_DATE', $lng->txt('forums_thread_create_date'));
$tplEx->setVariable('POST_DATE', $this->frm->convertDate($post->getCreateDate()));
$tplEx->setVariable('SPACER', "<hr noshade width=\"100%\" size=\"1\" align=\"center\" />");
if ($post->isCensored()) {
$tplEx->setVariable('POST', nl2br(stripslashes($post->getCensorshipComment())));
} else {
/** @todo mjansen: possible bugfix for mantis #8223 */
if ($post->getMessage() == strip_tags($post->getMessage())) {
// We can be sure, that there are not html tags
$post->setMessage(nl2br($post->getMessage()));
}
$tplEx->setVariable('POST', ilRTE::_replaceMediaObjectImageSrc($this->frm->prepareText($post->getMessage(), 0, '', 'export'), 1));
}
$tplEx->parseCurrentBlock('posts_row');
$tplEx->setCurrentBlock('posttable');
$tplEx->setVariable('TXT_AUTHOR', $lng->txt('author'));
$tplEx->setVariable('TXT_POST', $lng->txt('forums_thread') . ': ' . $post->getThread()->getSubject());
$tplEx->parseCurrentBlock('posttable');
}
// if (is_array($frmData = $this->frm->getOneTopic()))
$tplEx->show();
}
示例10: printMail
/**
* Print mail
*/
public function printMail()
{
/**
* @var $tpl ilTemplate
*/
global $tpl;
$tplprint = new ilTemplate('tpl.mail_print.html', true, true, 'Services/Mail');
$tplprint->setVariable('JSPATH', $tpl->tplPath);
$mailData = $this->umail->getMail((int) $_GET['mail_id']);
/**
* @var $sender ilObjUser
*/
$sender = ilObjectFactory::getInstanceByObjId($mailData['sender_id'], false);
$tplprint->setVariable('TXT_FROM', $this->lng->txt('from'));
if ($sender && $sender->getId() && $sender->getId() != ANONYMOUS_USER_ID) {
$tplprint->setVariable('FROM', $sender->getPublicName());
} else {
if (!$sender || !$sender->getId()) {
$tplprint->setVariable('FROM', $mailData['import_name'] . ' (' . $this->lng->txt('user_deleted') . ')');
} else {
$tplprint->setVariable('FROM', ilMail::_getIliasMailerName());
}
}
$tplprint->setVariable('TXT_TO', $this->lng->txt('mail_to'));
$tplprint->setVariable('TO', $mailData['rcp_to']);
if ($mailData['rcp_cc']) {
$tplprint->setCurrentBlock('cc');
$tplprint->setVariable('TXT_CC', $this->lng->txt('cc'));
$tplprint->setVariable('CC', $mailData['rcp_cc']);
$tplprint->parseCurrentBlock();
}
if ($mailData['rcp_bcc']) {
$tplprint->setCurrentBlock('bcc');
$tplprint->setVariable('TXT_BCC', $this->lng->txt('bc'));
$tplprint->setVariable('BCC', $mailData['rcp_bcc']);
$tplprint->parseCurrentBlock();
}
$tplprint->setVariable('TXT_SUBJECT', $this->lng->txt('subject'));
$tplprint->setVariable('SUBJECT', htmlspecialchars($mailData['m_subject']));
$tplprint->setVariable('TXT_DATE', $this->lng->txt('date'));
$tplprint->setVariable('DATE', ilDatePresentation::formatDate(new ilDateTime($mailData['send_time'], IL_CAL_DATETIME)));
$tplprint->setVariable('TXT_MESSAGE', $this->lng->txt('message'));
$tplprint->setVariable('MAIL_MESSAGE', nl2br(htmlspecialchars($mailData['m_message'])));
$tplprint->show();
}
示例11: showClientList
/**
* show client list
*/
function showClientList()
{
global $tpl, $ilIliasIniFile, $ilCtrl;
//echo "1";
if (!$ilIliasIniFile->readVariable("clients", "list")) {
$this->processIndexPHP();
return;
}
//echo "2";
$tpl = new ilTemplate("tpl.main.html", true, true);
$tpl->setAddFooter(false);
// no client yet
// to do: get standard style
$tpl->setVariable("PAGETITLE", "Client List");
$tpl->setVariable("LOCATION_STYLESHEET", "./templates/default/delos.css");
// load client list template
self::initStartUpTemplate("tpl.client_list.html");
// load template for table
$tpl->addBlockfile("CLIENT_LIST", "client_list", "tpl.table.html");
// load template for table content data
$tpl->addBlockfile("TBL_CONTENT", "tbl_content", "tpl.obj_tbl_rows.html");
// load table content data
require_once "setup/classes/class.ilClientList.php";
require_once "setup/classes/class.ilClient.php";
require_once "setup/classes/class.ilDBConnections.php";
require_once "./Services/Table/classes/class.ilTableGUI.php";
$this->db_connections = new ilDBConnections();
$clientlist = new ilClientList($this->db_connections);
$list = $clientlist->getClients();
if (count($list) == 0) {
header("Location: ./setup/setup.php");
exit;
}
$hasPublicSection = false;
foreach ($list as $key => $client) {
$client->setDSN();
if ($client->checkDatabaseExists(true) and $client->ini->readVariable("client", "access") and $client->getSetting("setup_ok")) {
$this->ctrl->setParameter($this, "client_id", $key);
$tmp = array();
$tmp[] = $client->getName();
$tmp[] = "<a href=\"" . "login.php?cmd=force_login&client_id=" . urlencode($key) . "\">Login page</a>";
if ($client->getSetting('pub_section')) {
$hasPublicSection = true;
$tmp[] = "<a href=\"" . "ilias.php?baseClass=ilRepositoryGUI&client_id=" . urlencode($key) . "\">Start page</a>";
} else {
$tmp[] = '';
}
$data[] = $tmp;
}
}
// create table
$tbl = new ilTableGUI();
// title & header columns
if ($hasPublicSection) {
$tbl->setTitle("Available Clients");
$tbl->setHeaderNames(array("Installation Name", "Login", "Public Access"));
$tbl->setHeaderVars(array("name", "index", "login"));
$tbl->setColumnWidth(array("50%", "25%", "25%"));
} else {
$tbl->setTitle("Available Clients");
$tbl->setHeaderNames(array("Installation Name", "Login", ''));
$tbl->setHeaderVars(array("name", "login", ''));
$tbl->setColumnWidth(array("70%", "25%", '1px'));
}
// control
$tbl->setOrderColumn($_GET["sort_by"], "name");
$tbl->setOrderDirection($_GET["sort_order"]);
$tbl->setLimit($_GET["limit"]);
$tbl->setOffset($_GET["offset"]);
// content
$tbl->setData($data);
$tbl->disable("icon");
$tbl->disable("numinfo");
$tbl->disable("sort");
$tbl->disable("footer");
// render table
$tbl->render();
$tpl->show("DEFAULT", true, true);
}
示例12: show
/**
* Show frameset
*/
function show($a_get_only = false)
{
global $ilSetting;
if ($ilSetting->get("tree_frame") == "right") {
$main = "LEFT";
$side = "RIGHT";
} else {
$main = "RIGHT";
$side = "LEFT";
}
$tpl = new ilTemplate("tpl.frameset.html", true, false);
$tpl->setVariable("LOCATION_STYLESHEET", ilUtil::getStyleSheetLocation());
$tpl->setVariable("PAGETITLE", "- " . ilUtil::stripScriptHTML($this->frameset_title));
$tpl->setVariable("SRC_" . $main, $this->main_frame_source);
$tpl->setVariable("SRC_" . $side, $this->side_frame_source);
$tpl->setVariable("TITLE_" . $main, $this->main_frame_title);
$tpl->setVariable("TITLE_" . $side, $this->side_frame_title);
$tpl->setVariable("NAME_" . $main, $this->main_frame_name);
$tpl->setVariable("NAME_" . $side, $this->side_frame_name);
$tpl->setVariable("WIDTH_" . $main, $this->getMainWidth());
$tpl->setVariable("WIDTH_" . $side, $this->getSideWidth());
if ($ilSetting->get('short_inst_name') != "") {
$tpl->setVariable("WINDOW_TITLE", $ilSetting->get('short_inst_name'));
} else {
$tpl->setVariable("WINDOW_TITLE", "ILIAS");
}
if ($a_get_only) {
return $tpl->get();
} else {
$tpl->show("DEFAULT", false);
}
}
示例13: requestAdobeConnectContent
public function requestAdobeConnectContent()
{
/**
* @var $ilSetting ilSetting
*/
global $ilSetting;
if (!isset($_GET['record_url']) || !strlen($_GET['record_url'])) {
$this->showContent();
return;
}
$url = ilUtil::stripSlashes($_GET['record_url']);
$this->pluginObj->includeClass('class.ilAdobeConnectUserUtil.php');
$this->pluginObj->includeClass('class.ilAdobeConnectQuota.php');
$ilAdobeConnectUser = new ilAdobeConnectUserUtil($this->user->getId());
$ilAdobeConnectUser->ensureAccountExistance();
$xmlAPI = ilXMLApiFactory::getApiByAuthMode();
$xmlAPI->logout($_SESSION['xavc_last_sso_sessid']);
$session = $ilAdobeConnectUser->loginUser();
$_SESSION['xavc_last_sso_sessid'] = $session;
$url = ilUtil::appendUrlParameterString($url, 'session=' . $session);
$presentation_url = ilAdobeConnectServer::getPresentationUrl(true);
$logout_url = $presentation_url . '/api/xml?action=logout';
if ($ilSetting->get('short_inst_name') != "") {
$title_prefix = $ilSetting->get('short_inst_name');
} else {
$title_prefix = 'ILIAS';
}
$sso_tpl = new ilTemplate($this->pluginObj->getDirectory() . "/templates/default/tpl.perform_sso.html", true, true);
$sso_tpl->setVariable('SPINNER_SRC', $this->pluginObj->getDirectory() . '/templates/js/spin.js');
$sso_tpl->setVariable('TITLE_PREFIX', $title_prefix);
$sso_tpl->setVariable('LOGOUT_URL', $logout_url);
$sso_tpl->setVariable('URL', $url);
$sso_tpl->setVariable('INFO_TXT', $this->pluginObj->txt('redirect_in_progress'));
$sso_tpl->setVariable('OBJECT_TITLE', $this->object->getTitle());
$sso_tpl->show();
exit;
}
示例14: showPage
/**
* Show page
*
* @param
* @return
*/
function showPage()
{
global $tpl;
$tpl = new ilTemplate("tpl.main.html", true, true);
include_once "./Services/Container/classes/class.ilContainerPage.php";
include_once "./Services/Container/classes/class.ilContainerPageGUI.php";
include_once "./Services/Style/classes/class.ilObjStyleSheet.php";
$tpl->setVariable("LOCATION_STYLESHEET", ilUtil::getStyleSheetLocation());
$tpl->setVariable("LOCATION_CONTENT_STYLESHEET", ilObjStyleSheet::getContentStylePath(0));
$tpl->setCurrentBlock("SyntaxStyle");
$tpl->setVariable("LOCATION_SYNTAX_STYLESHEET", ilObjStyleSheet::getSyntaxStylePath());
$tpl->parseCurrentBlock();
// get page object
//include_once("./Services/Object/classes/class.ilObjectTranslation.php");
//$ot = ilObjectTranslation::getInstance($this->object->getId());
//$lang = $ot->getEffectiveContentLang($ilUser->getCurrentLanguage(), "cont");
include_once "./Modules/MediaPool/classes/class.ilMediaPoolPageGUI.php";
$page_gui = new ilMediaPoolPageGUI((int) $_GET["mepitem_id"]);
include_once "./Services/Style/classes/class.ilObjStyleSheet.php";
//$page_gui->setStyleId(ilObjStyleSheet::getEffectiveContentStyleId(
// $this->object->getStyleSheetId(), $this->object->getType()));
$page_gui->setTemplateOutput(false);
$page_gui->setHeader("");
$ret = $page_gui->showPage(true);
$tpl->setBodyClass("ilMediaPoolPagePreviewBody");
$tpl->setVariable("CONTENT", $ret);
//$ret = "<div style='background-color: white; padding:5px; margin-bottom: 30px;'>".$ret."</div>";
//$ret =& $page_gui->executeCommand();
$tpl->show();
exit;
}
示例15: ilTemplate
$tpl = new ilTemplate(dirname(__FILE__) . '/tpl.latex.html', true, true);
$tpl->resetJavascript();
require_once 'Services/jQuery/classes/class.iljQueryUtil.php';
$jquery_path = iljQueryUtil::getLocaljQueryPath();
if (strpos($jquery_path, './') === 0) {
$jquery_path = substr($jquery_path, 2);
} else {
if (strpos($jquery_path, '.') === 0) {
$jquery_path = substr($jquery_path, 1);
}
}
$mathJaxSetting = new ilSetting('MathJax');
if ($mathJaxSetting->get('enable')) {
$tpl->addJavaScript($mathJaxSetting->get('path_to_mathjax'));
$tpl->setCurrentBlock('js_on_change_math_jax');
$tpl->touchBlock('js_on_change_math_jax');
$tpl->parseCurrentBlock();
$tpl->setCurrentBlock('delimiter_latex');
$tpl->setVariable('DELIMITER', (int) $mathJaxSetting->get('limiter'));
$tpl->parseCurrentBlock();
} else {
if (strlen($ilIliasIniFile->readVariable('tools', 'latex'))) {
$tpl->setCurrentBlock('js_on_change_latex');
$tpl->setVariable('LATEX_URL', $ilIliasIniFile->readVariable('tools', 'latex'));
$tpl->parseCurrentBlock();
}
}
$tpl->addJavaScript(str_repeat('../', $steps) . $jquery_path, true, 1);
$tpl->fillJavaScriptFiles(true);
$tpl->show('DEFAULT', false, true);