4 require_once(
"./Modules/LearningModule/classes/class.ilLMPageObject.php");
5 require_once(
"./Services/MediaObjects/classes/class.ilObjMediaObjectGUI.php");
36 if ((
$_SESSION[
"il_link_cont_obj"] !=
"" && !$tree->isInTree(
$_SESSION[
"il_link_cont_obj"])) ||
37 (
$_SESSION[
"il_link_glossary"] !=
"" && !$tree->isInTree(
$_SESSION[
"il_link_glossary"])) ||
45 $this->ilias =& $ilias;
47 $this->ctrl->saveParameter($this, array(
"linkmode",
"target_type"));
48 $this->default_type = $a_default_type;
49 $this->default_obj = $a_default_obj;
50 $this->filter_link_types = array();
59 switch($this->link_type)
62 case "StructureObject":
63 if (empty(
$_SESSION[
"il_link_cont_obj"]) &&
64 ($def_type !=
"mep" && $def_type !=
"glo"))
71 if (empty(
$_SESSION[
"il_link_glossary"]) && $def_type ==
"glo")
78 if (empty(
$_SESSION[
"il_link_mep"]) && $def_type ==
"mep")
98 $this->ltypes = array(
99 "StructureObject" => $lng->txt(
"cont_lk_chapter"),
100 "StructureObject_New" => $lng->txt(
"cont_lk_chapter_new"),
101 "PageObject" => $lng->txt(
"cont_lk_page"),
102 "PageObject_FAQ" => $lng->txt(
"cont_lk_page_faq"),
103 "PageObject_New" => $lng->txt(
"cont_lk_page_new"),
104 "GlossaryItem" => $lng->txt(
"cont_lk_term"),
105 "GlossaryItem_New" => $lng->txt(
"cont_lk_term_new"),
106 "Media" => $lng->txt(
"cont_lk_media_inline"),
107 "Media_Media" => $lng->txt(
"cont_lk_media_media"),
108 "Media_FAQ" => $lng->txt(
"cont_lk_media_faq"),
109 "Media_New" => $lng->txt(
"cont_lk_media_new"),
110 "File" => $lng->txt(
"cont_lk_file"),
111 "RepositoryItem" => $lng->txt(
"cont_repository_item")
121 $ltype = (
$_SESSION[
"il_link_type"] ==
"")
122 ? $this->default_type
124 $ltype_arr = explode(
"_", $ltype);
125 $this->link_type = ($ltype_arr[0] ==
"")
126 ? $this->default_type
128 $this->link_target = $ltype_arr[1];
136 $this->mode = $a_mode;
141 $this->set_link_script = $a_script;
146 $this->
return = $a_return;
156 $this->filter_link_types[] = $a_link_type;
166 $this->filter_white_list = $a_white_list;
172 $next_class = $this->ctrl->getNextClass($this);
174 $cmd = $this->ctrl->getCmd(
"showLinkHelp");
201 if ($this->
return ==
"")
203 $this->ctrl->returnToParent($this);
218 include_once(
"./Services/COPage/classes/class.ilPageEditorGUI.php");
219 if (self::_doJSEditing())
221 $str = htmlspecialchars($str, ENT_QUOTES);
234 $target_str = ($this->link_target ==
"")
236 :
" target=\"".$this->link_target.
"\"";
238 if(($this->link_type ==
"GlossaryItem") &&
245 if(($this->link_type ==
"PageObject" || $this->link_type ==
"StructureObject") &&
248 array(
"lm",
"dbk"))))
252 if ($ilCtrl->isAsynch())
254 $tpl =
new ilTemplate(
"tpl.link_help_asynch.html",
true,
true,
"Modules/LearningModule");
258 $tpl =&
new ilTemplate(
"tpl.link_help.html",
true,
true,
"Modules/LearningModule");
262 switch($this->link_type)
265 $this->ctrl->setParameter($this,
"target_type",
"glo");
269 case "StructureObject":
270 $this->ctrl->setParameter($this,
"target_type",
"cont_obj");
274 $this->ctrl->setParameter($this,
"target_type",
"mep");
285 $tpl->setVariable(
"FORMACTION", $this->ctrl->getFormAction($this,
"changeLinkType",
"",
true));
286 $tpl->setVariable(
"FORMACTION2", $this->ctrl->getFormAction($this));
287 $tpl->setVariable(
"TXT_HELP_HEADER", $this->lng->txt(
"cont_link_select"));
288 $tpl->setVariable(
"TXT_TYPE", $this->lng->txt(
"cont_link_type"));
291 if (!$this->filter_white_list)
293 foreach($this->filter_link_types as
$link_type)
295 unset($this->ltypes[$link_type]);
301 foreach($this->ltypes as $k => $l)
303 if (in_array($k, $this->filter_link_types))
311 $ltype = ($this->link_target !=
"")
312 ? $this->link_type.
"_".$this->link_target
318 "ltype", $this->ltypes,
false,
true,
"0",
"", array(
"id" =>
"ilIntLinkTypeSelector"));
319 $tpl->setVariable(
"SELECT_TYPE", $select_ltype);
320 $tpl->setVariable(
"CMD_CHANGETYPE",
"changeLinkType");
321 $tpl->setVariable(
"BTN_CHANGETYPE", $this->lng->txt(
"cont_change_type"));
329 $tpl->setVariable(
"CMD_CLOSE",
"closeLinkHelp");
330 $tpl->setVariable(
"BTN_CLOSE", $this->lng->txt(
"close"));
333 $chapterRowBlock =
"chapter_row";
334 $anchor_row_block =
"anchor_link";
337 $chapterRowBlock .=
"_js";
338 $anchor_row_block .=
"_js";
345 switch($this->link_type)
351 require_once(
"./Modules/LearningModule/classes/class.ilObjLearningModule.php");
354 else if ($type ==
"dbk")
356 require_once(
"./Modules/LearningModule/classes/class.ilObjDlBook.php");
361 $ctree = $cont_obj->getLMTree();
362 $nodes = $ctree->getSubtree($ctree->getNodeData($ctree->getRootId()));
363 $tpl->setCurrentBlock(
"chapter_list");
364 $tpl->setVariable(
"TXT_CONTENT_OBJECT", $this->lng->txt(
"cont_content_obj"));
365 $tpl->setVariable(
"TXT_CONT_TITLE", $cont_obj->getTitle());
366 $tpl->setCurrentBlock(
"change_cont_obj");
367 $tpl->setVariable(
"CMD_CHANGE_CONT_OBJ",
"changeTargetObject");
368 $tpl->setVariable(
"BTN_CHANGE_CONT_OBJ", $this->lng->txt(
"change"));
369 $tpl->parseCurrentBlock();
371 foreach($nodes as $node)
373 if($node[
"type"] ==
"st")
375 $tpl->setCurrentBlock(
"chapter_row");
376 $tpl->setVariable(
"TXT_CHAPTER", $node[
"title"]);
377 $tpl->setVariable(
"ROWCLASS",
"tblrow1");
380 $tpl->parseCurrentBlock();
381 $tpl->setCurrentBlock(
"row");
382 $tpl->parseCurrentBlock();
385 if($node[
"type"] ==
"pg")
388 "PageObject",
"pg",
"page",
395 $free_pages = array();
396 foreach ($pages as $page)
398 if (!$ctree->isInTree($page[
"obj_id"]))
400 $free_pages[] = $page;
403 if(count($free_pages) > 0)
405 $tpl->setCurrentBlock(str_replace(
"_js",
"",$chapterRowBlock));
406 $tpl->setVariable(
"TXT_CHAPTER", $this->lng->txt(
"cont_free_pages"));
407 $tpl->setVariable(
"ROWCLASS",
"tblrow1");
408 $tpl->parseCurrentBlock();
410 foreach ($free_pages as $node)
413 "PageObject",
"pg",
"page",
418 $tpl->setCurrentBlock(
"chapter_list");
419 $tpl->parseCurrentBlock();
424 case "StructureObject":
435 require_once(
"./Modules/LearningModule/classes/class.ilObjLearningModule.php");
438 else if ($type ==
"dbk")
440 require_once(
"./Modules/LearningModule/classes/class.ilObjDlBook.php");
445 $ctree =& $cont_obj->getLMTree();
446 $nodes = $ctree->getSubtree($ctree->getNodeData($ctree->getRootId()));
447 $tpl->setCurrentBlock(
"chapter_list");
448 $tpl->setVariable(
"TXT_CONTENT_OBJECT", $this->lng->txt(
"cont_content_obj"));
449 $tpl->setVariable(
"TXT_CONT_TITLE", $cont_obj->getTitle());
450 $tpl->setCurrentBlock(
"change_cont_obj");
451 $tpl->setVariable(
"CMD_CHANGE_CONT_OBJ",
"changeTargetObject");
452 $tpl->setVariable(
"BTN_CHANGE_CONT_OBJ", $this->lng->txt(
"change"));
453 $tpl->parseCurrentBlock();
455 foreach($nodes as $node)
457 if($node[
"type"] ==
"st")
460 "StructureObject",
"st",
"chap");
463 $tpl->setCurrentBlock(
"chapter_list");
464 $tpl->parseCurrentBlock();
469 require_once(
"./Modules/Glossary/classes/class.ilObjGlossary.php");
473 $terms = $glossary->getTermList();
474 $tpl->setCurrentBlock(
"chapter_list");
475 $tpl->setVariable(
"TXT_CONTENT_OBJECT", $this->lng->txt(
"glossary"));
476 $tpl->setVariable(
"TXT_CONT_TITLE", $glossary->getTitle());
477 $tpl->setCurrentBlock(
"change_cont_obj");
478 $tpl->setVariable(
"CMD_CHANGE_CONT_OBJ",
"changeTargetObject");
479 $tpl->setVariable(
"BTN_CHANGE_CONT_OBJ", $this->lng->txt(
"change"));
480 $tpl->parseCurrentBlock();
482 foreach($terms as $term)
485 "GlossaryItem",
"git",
"term");
488 $tpl->setCurrentBlock(
"chapter_list");
489 $tpl->parseCurrentBlock();
494 include_once(
"./Modules/MediaPool/classes/class.ilMediaPoolItem.php");
499 $tpl->setCurrentBlock(
"change_cont_obj");
500 $tpl->setVariable(
"CMD_CHANGE_CONT_OBJ",
"changeTargetObject");
501 $tpl->setVariable(
"BTN_CHANGE_CONT_OBJ", $this->lng->txt(
"change"));
502 $tpl->parseCurrentBlock();
503 $mobjs = $this->ilias->account->getClipboardObjects(
"mob");
506 foreach ($mobjs as $obj)
508 $objs[$obj[
"title"].
":".$obj[
"id"]] = $obj;
511 $tpl->setCurrentBlock(
"chapter_list");
512 $tpl->setVariable(
"TXT_CONTENT_OBJECT", $this->lng->txt(
"cont_media_source"));
513 $tpl->setVariable(
"TXT_CONT_TITLE", $this->lng->txt(
"cont_personal_clipboard"));
514 $tpl->setVariable(
"COLSPAN",
"2");
516 foreach($objs as $obj)
519 "MediaObject",
"mob",
"media");
521 $tpl->setCurrentBlock(
"chapter_list");
522 $tpl->parseCurrentBlock();
526 require_once(
"./Modules/MediaPool/classes/class.ilObjMediaPool.php");
529 $fobjs = $med_pool->getChilds(
$_SESSION[
"il_link_mep_obj"],
"fold");
531 foreach ($fobjs as $obj)
533 $f2objs[$obj[
"title"].
":".$obj[
"child"]] = $obj;
537 $mobjs = $med_pool->getChilds(
$_SESSION[
"il_link_mep_obj"],
"mob");
539 foreach ($mobjs as $obj)
541 $m2objs[$obj[
"title"].
":".$obj[
"child"]] = $obj;
546 $objs = array_merge($f2objs, $m2objs);
548 $tpl->setCurrentBlock(
"chapter_list");
549 $tpl->setVariable(
"TXT_CONTENT_OBJECT", $this->lng->txt(
"mep"));
550 $tpl->setVariable(
"TXT_CONT_TITLE", $med_pool->getTitle());
551 $tpl->setCurrentBlock(
"change_cont_obj");
552 $tpl->setVariable(
"CMD_CHANGE_CONT_OBJ",
"changeTargetObject");
553 $tpl->setVariable(
"BTN_CHANGE_CONT_OBJ", $this->lng->txt(
"change"));
554 $tpl->setVariable(
"COLSPAN",
"2");
555 $tpl->parseCurrentBlock();
556 if ($parent_id = $med_pool->getParentId(
$_SESSION[
"il_link_mep_obj"]))
558 $css_row =
"tblrow1";
559 $tpl->setCurrentBlock(
"icon");
561 $tpl->parseCurrentBlock();
562 $tpl->setCurrentBlock(
"link_row");
563 $tpl->setVariable(
"ROWCLASS", $css_row);
564 $tpl->setVariable(
"TXT_CHAPTER",
"..");
565 $this->ctrl->setParameter($this,
"mep_fold", $parent_id);
566 if ($ilCtrl->isAsynch())
568 $tpl->setVariable(
"LINK",
"#");
569 $tpl->setVariable(
"LR_ONCLICK",
570 " onclick=\"return il.IntLink.setMepPoolFolder('".$parent_id.
"');\" ");
575 $tpl->setVariable(
"LINK",
576 $this->ctrl->getLinkTarget($this,
"setMedPoolFolder"));
578 $tpl->parseCurrentBlock();
579 $tpl->setCurrentBlock(
"row");
580 $tpl->parseCurrentBlock();
582 foreach($objs as $obj)
584 if($obj[
"type"] ==
"fold")
586 $css_row = ($css_row ==
"tblrow2")
589 $tpl->setCurrentBlock(
"icon");
591 $tpl->parseCurrentBlock();
592 $tpl->setCurrentBlock(
"link_row");
593 $tpl->setVariable(
"ROWCLASS", $css_row);
594 $tpl->setVariable(
"TXT_CHAPTER", $obj[
"title"]);
595 $this->ctrl->setParameter($this,
"mep_fold", $obj[
"child"]);
596 if ($ilCtrl->isAsynch())
598 $tpl->setVariable(
"LINK",
"#");
599 $tpl->setVariable(
"LR_ONCLICK",
600 " onclick=\"return il.IntLink.setMepPoolFolder('".$obj[
"child"].
"');\" ");
605 $tpl->setVariable(
"LINK",
606 $this->ctrl->getLinkTarget($this,
"setMedPoolFolder"));
608 $tpl->parseCurrentBlock();
616 "MediaObject",
"mob",
"media");
619 $tpl->setCurrentBlock(
"row");
620 $tpl->parseCurrentBlock();
622 $tpl->setCurrentBlock(
"chapter_list");
623 $tpl->parseCurrentBlock();
628 case "RepositoryItem":
639 if ($ilCtrl->isAsynch())
657 if (!is_object($this->uploaded_file))
659 $tpl =
new ilTemplate(
"tpl.link_file.html",
true,
true,
"Modules/LearningModule");
660 $tpl->setCurrentBlock(
"form");
661 $tpl->setVariable(
"FORM_ACTION",
662 $ilCtrl->getFormAction($this,
"saveFileLink",
"",
true));
663 $tpl->setVariable(
"TXT_SELECT_FILE", $lng->txt(
"cont_select_file"));
664 $tpl->setVariable(
"TXT_SAVE_LINK", $lng->txt(
"cont_create_link"));
665 $tpl->setVariable(
"CMD_SAVE_LINK",
"saveFileLink");
666 include_once(
"./Services/Form/classes/class.ilFileInputGUI.php");
669 $tpl->setVariable(
"INPUT", $fi->getToolbarHTML());
670 $tpl->parseCurrentBlock();
675 $tpl =
new ilTemplate(
"tpl.link_file.html",
true,
true,
"Modules/LearningModule");
676 $tpl->setCurrentBlock(
"link_js");
680 $tpl->setVariable(
"TAG_B",
681 '[iln dfile=\x22'.$this->uploaded_file->getId().
'\x22]');
682 $tpl->setVariable(
"TAG_E",
684 $tpl->setVariable(
"TXT_FILE",
685 $this->uploaded_file->getTitle());
686 $tpl->parseCurrentBlock();
696 $mtpl =&
new ilTemplate(
"tpl.link_help.html",
true,
true,
"Modules/LearningModule");
699 if ($_FILES[
"link_file"][
"name"] !=
"")
701 include_once(
"./Modules/File/classes/class.ilObjFile.php");
703 $fileObj->setType(
"file");
704 $fileObj->setTitle($_FILES[
"link_file"][
"name"]);
705 $fileObj->setDescription(
"");
706 $fileObj->setFileName($_FILES[
"link_file"][
"name"]);
707 $fileObj->setFileType($_FILES[
"link_file"][
"type"]);
708 $fileObj->setFileSize($_FILES[
"link_file"][
"size"]);
709 $fileObj->setMode(
"filelist");
712 $fileObj->createDirectory();
713 $fileObj->raiseUploadError(
false);
714 $fileObj->getUploadFile($_FILES[
"link_file"][
"tmp_name"],
715 $_FILES[
"link_file"][
"name"]);
716 $this->uploaded_file = $fileObj;
729 $med =& $mob->getMediaItem(
"Standard");
730 $target = $med->getThumbnailTarget(
"small");
733 $tpl->setCurrentBlock(
"thumbnail_link");
737 $tpl->setCurrentBlock(
"thumbnail_js");
741 $tpl->setCurrentBlock(
"thumbnail");
746 $tpl->setCurrentBlock(
"thumb");
747 $tpl->setVariable(
"SRC_THUMB", $target);
748 $tpl->parseCurrentBlock();
752 $tpl->setVariable(
"NO_THUMB",
" ");
757 $tpl->setCurrentBlock(
"thumbnail_link");
762 $tpl->setCurrentBlock(
"thumbnail_js");
766 $tpl->setCurrentBlock(
"thumbnail");
768 $tpl->parseCurrentBlock();
798 include_once(
"./Services/IntLink/classes/class.ilLinkTargetObjectExplorer.php");
800 $ilCtrl->getTargetScript(),
"do=set"));
801 if (
$_GET[
"expand"] ==
"")
803 $expanded = $this->tree->readRootId();
807 $expanded =
$_GET[
"expand"];
809 $exp->setExpand($expanded);
810 $exp ->setAsynchExpanding(
true);
812 $exp->setTargetGet(
"sel_id");
813 $ilCtrl->setParameter($this,
"target_type", $a_type);
814 $exp->setParamsGet($this->ctrl->getParameterArray($this,
"refreshTargetExplorer"));
816 $exp->addFilter(
"root");
817 $exp->addFilter(
"cat");
818 $exp->addFilter(
"grp");
819 $exp->addFilter(
"fold");
820 $exp->addFilter(
"crs");
825 $exp->addFilter(
"glo");
829 $exp->addFilter(
"mep");
833 $exp->addFilter(
"lm");
834 $exp->addFilter(
"dbk");
837 $exp->setFiltered(
true);
840 $exp->setClickable(
"cat",
false);
841 $exp->setClickable(
"grp",
false);
842 $exp->setClickable(
"fold",
false);
843 $exp->setClickable(
"crs",
false);
845 $exp->setFrameTarget(
"");
848 return $exp->getOutput();
859 if(
$_GET[
"do"] ==
"set")
861 switch (
$_GET[
"target_type"])
881 if (!empty(
$_GET[
"target_type"]))
883 $a_type =
$_GET[
"target_type"];
888 if ($this->link_type ==
"GlossaryItem")
892 if ($this->link_type ==
"Media")
899 $tpl =&
new ilTemplate(
"tpl.link_help_explorer.html",
true,
true,
"Modules/LearningModule");
903 if ($a_type ==
"glo")
905 $tpl->setVariable(
"TXT_EXPLORER_HEADER", $this->lng->txt(
"cont_choose_glossary"));
907 else if ($a_type ==
"mep")
909 $tpl->setVariable(
"TXT_EXPLORER_HEADER", $this->lng->txt(
"cont_choose_media_source"));
913 $tpl->setVariable(
"TXT_EXPLORER_HEADER", $this->lng->txt(
"cont_choose_cont_obj"));
915 $tpl->setVariable(
"EXPLORER",$output);
916 $tpl->setVariable(
"ACTION", $this->ctrl->getFormAction($this,
"resetLinkList",
"",
true));
917 $tpl->setVariable(
"BTN_RESET",
"resetLinkList");
918 $tpl->setVariable(
"TXT_RESET", $this->lng->txt(
"back"));
920 if ($a_type ==
"mep")
922 $tpl->setCurrentBlock(
"sel_clipboard");
923 $this->ctrl->setParameter($this,
"do",
"set");
924 if ($ilCtrl->isAsynch())
926 $tpl->setVariable(
"LINK_CLIPBOARD",
"#");
927 $tpl->setVariable(
"CLIPBOARD_ONCLICK",
928 " onclick=\"return il.IntLink.selectLinkTargetObject('mep', 0);\" ");
933 $tpl->setVariable(
"LINK_CLIPBOARD", $this->ctrl->getLinkTarget($this,
"changeTargetObject"));
935 $tpl->setVariable(
"TXT_PERS_CLIPBOARD", $this->lng->txt(
"clipboard"));
936 $tpl->parseCurrentBlock();
939 $tpl->parseCurrentBlock();
967 $a_type =
$_GET[
"target_type"];
970 include_once
"./Modules/LearningModule/classes/class.ilIntLinkRepItemExplorer.php";
972 $this->ctrl->getTargetScript(),
"do=set"));
973 if (
$_GET[
"expand"] ==
"")
975 $expanded = $this->tree->readRootId();
979 $expanded =
$_GET[
"expand"];
981 $exp->setMode($this->mode);
983 $exp->setExpand($expanded);
985 $exp->setTargetGet(
"sel_id");
986 $this->ctrl->setParameter($this,
"target_type", $a_type);
987 $exp->setParamsGet($this->ctrl->getParameterArray($this,
"refreshRepositorySelector"));
990 $exp->setFiltered(
true);
992 $exp->addFilter(
"root");
993 $exp->addFilter(
"cat");
994 $exp->addFilter(
"grp");
995 $exp->addFilter(
"fold");
996 $exp->addFilter(
"crs");
997 $exp->addFilter(
"lm");
998 $exp->addFilter(
"htlm");
999 $exp->addFilter(
"dbk");
1000 $exp->addFilter(
"glo");
1001 $exp->addFilter(
"frm");
1002 $exp->addFilter(
"exc");
1003 $exp->addFilter(
"tst");
1004 $exp->addFilter(
"svy");
1005 $exp->addFilter(
"webr");
1006 $exp->addFilter(
"file");
1007 $exp->addFilter(
"chat");
1008 $exp->addFilter(
"sahs");
1009 $exp->addFilter(
"mcst");
1010 $exp->addFilter(
"wiki");
1011 $exp->addFilter(
"mep");
1013 $sel_types = array(
'lm',
'dbk',
'htlm',
'glo',
'frm',
'exc',
'tst',
'svy',
'webr',
'chat',
1014 'cat',
'crs',
'grp',
'file',
'fold',
'sahs',
'mcst',
'wiki',
'mep');
1015 $exp->setSelectableTypes($sel_types);
1018 $exp->setFrameTarget(
"");
1020 $output = $exp->getOutput();
1055 include_once(
"./Services/COPage/classes/class.ilPageEditorGUI.php");
1057 if (self::_doJSEditing())
1073 include_once(
"./Services/YUI/classes/class.ilYuiUtil.php");
1077 $tpl->addJavaScript(
"./Services/Explorer/js/ilexplorercallback.js");
1078 $tpl->addJavascript(
"./Services/IntLink/js/ilIntLink.js");
1080 $ltpl =
new ilTemplate(
"tpl.int_link_panel.html",
true,
true,
"Services/IntLink");
1081 $ltpl->setVariable(
"IL_INT_LINK_URL", $a_url);
1083 return $ltpl->get();
1090 $a_anchors = array())
1092 $chapterRowBlock =
"chapter_row";
1093 $anchor_row_block =
"anchor_link";
1097 $chapterRowBlock .=
"_js";
1098 $anchor_row_block .=
"_js";
1101 $target_str = ($this->link_target ==
"")
1103 :
" target=\"".$this->link_target.
"\"";
1105 if (count($a_anchors) > 0)
1107 foreach ($a_anchors as $anchor)
1109 $tpl->setCurrentBlock($anchor_row_block);
1110 $tpl->setVariable(
"ALINK_BEGIN",
1112 $tpl->setVariable(
"ALINK_END",
"[/iln]");
1113 $tpl->setVariable(
"TXT_LINK",
"#".$anchor);
1114 $tpl->parseCurrentBlock();
1118 $this->css_row = ($this->css_row ==
"tblrow1")
1124 require_once(
"./Services/MediaObjects/classes/class.ilObjMediaObjectGUI.php");
1125 require_once(
"./Services/MediaObjects/classes/class.ilImageMapEditorGUI.php");
1127 if ($a_type ==
"MediaObject")
1131 $tpl->setCurrentBlock(
"link_row");
1132 $tpl->setVariable(
"ROWCLASS", $this->css_row);
1133 $tpl->setVariable(
"TXT_CHAPTER", $a_title);
1135 $tpl->setVariable(
"LINK",
1137 "linktype=".$a_type.
1138 "&linktarget=il__".$a_type_short.
"_".$a_obj_id.
1139 "&linktargetframe=".$this->link_target));
1140 $tpl->parseCurrentBlock();
1144 $tpl->setCurrentBlock($chapterRowBlock);
1145 if ($a_type ==
"MediaObject")
1150 $tpl->setVariable(
"ROWCLASS", $this->css_row);
1151 $tpl->setVariable(
"TXT_CHAPTER", $a_title);
1156 if ($a_type ==
"MediaObject" && empty($target_str))
1158 $tpl->setVariable(
"LINK_BEGIN",
1160 $tpl->setVariable(
"LINK_END",
"");
1164 $tpl->setVariable(
"LINK_BEGIN",
1166 $tpl->setVariable(
"LINK_END",
"[/iln]");
1168 $tpl->parseCurrentBlock();
1171 $tpl->setCurrentBlock(
"row");
1172 $tpl->parseCurrentBlock();