24 include_once(
"Services/Table/classes/class.ilTable2GUI.php");
65 $enable_internal_rss = $news_set->get(
"enable_rss_for_internal");
73 if ($a_set[
"user_id"] > 0)
75 $this->tpl->setCurrentBlock(
"user_info");
76 if ($obj_type ==
"frm")
78 include_once(
"./Modules/Forum/classes/class.ilForumProperties.php");
81 if ($a_set[
"context_sub_obj_type"] ==
"pos" &&
82 $a_set[
"context_sub_obj_id"] > 0)
84 include_once(
"./Modules/Forum/classes/class.ilForumPost.php");
85 $post =
new ilForumPost($a_set[
"context_sub_obj_id"]);
86 if ($post->getUserAlias() !=
"") $this->tpl->setVariable(
"VAL_AUTHOR",
ilUtil::stripSlashes($post->getUserAlias()));
87 else $this->tpl->setVariable(
"VAL_AUTHOR", $lng->txt(
"forums_anonymous"));
91 $this->tpl->setVariable(
"VAL_AUTHOR", $lng->txt(
"forums_anonymous"));
98 $user_obj =
new ilObjUser($a_set[
"user_id"]);
99 $this->tpl->setVariable(
"VAL_AUTHOR", $user_obj->getLogin());
107 $user_obj =
new ilObjUser($a_set[
"user_id"]);
108 $this->tpl->setVariable(
"VAL_AUTHOR", $user_obj->getLogin());
111 $this->tpl->setVariable(
"TXT_AUTHOR", $lng->txt(
"author"));
112 $this->tpl->parseCurrentBlock();
119 include_once(
"./Services/MediaObjects/classes/class.ilObjMediaObject.php");
120 include_once(
"./Services/MediaObjects/classes/class.ilMediaPlayerGUI.php");
122 $med = $mob->getMediaItem(
"Standard");
125 $med->getLocation());
126 $this->tpl->setCurrentBlock(
"player");
127 $this->tpl->setVariable(
"PLAYER",
128 $mpl->getMp3PlayerHtml());
129 $this->tpl->parseCurrentBlock();
133 if ($enable_internal_rss)
135 $this->tpl->setCurrentBlock(
"access");
136 include_once(
"./Services/Block/classes/class.ilBlockSetting.php");
137 $this->tpl->setVariable(
"TXT_ACCESS", $lng->txt(
"news_news_item_visibility"));
139 ($a_set[
"priority"] == 0 &&
143 $this->tpl->setVariable(
"VAL_ACCESS", $lng->txt(
"news_visibility_public"));
147 $this->tpl->setVariable(
"VAL_ACCESS", $lng->txt(
"news_visibility_users"));
149 $this->tpl->parseCurrentBlock();
153 if ($a_set[
"content"] !=
"")
155 $this->tpl->setCurrentBlock(
"content");
157 $this->tpl->parseCurrentBlock();
159 if ($a_set[
"content_long"] !=
"")
161 $this->tpl->setCurrentBlock(
"long");
163 $this->tpl->parseCurrentBlock();
165 if ($a_set[
"update_date"] != $a_set[
"creation_date"])
167 $this->tpl->setCurrentBlock(
"ni_update");
168 $this->tpl->setVariable(
"TXT_LAST_UPDATE", $lng->txt(
"last_update"));
169 $this->tpl->setVariable(
"VAL_LAST_UPDATE",
171 $this->tpl->parseCurrentBlock();
176 if ($obj_type ==
"frm" && $a_set[
"context_sub_obj_type"] ==
"pos"
177 && $a_set[
"context_sub_obj_id"] > 0)
179 include_once(
"./Modules/Forum/classes/class.ilObjForumAccess.php");
180 $pos = $a_set[
"context_sub_obj_id"];
184 $add =
"_".$thread.
"_".$pos;
187 $url_target =
"./goto.php?client_id=".rawurlencode(CLIENT_ID).
"&target=".
188 $obj_type.
"_".$a_set[
"ref_id"].$add;
189 $this->tpl->setCurrentBlock(
"context");
191 $cont_loc->addContextItems($a_set[
"ref_id"],
true);
192 $this->tpl->setVariable(
"CONTEXT_LOCATOR",
193 $cont_loc->getHTML());
194 $this->tpl->setVariable(
"HREF_CONTEXT_TITLE", $url_target);
195 $this->tpl->setVariable(
"CONTEXT_TITLE", $obj_title);
196 $this->tpl->setVariable(
"IMG_CONTEXT_TITLE",
198 $this->tpl->parseCurrentBlock();
200 $this->tpl->setVariable(
"HREF_TITLE", $url_target);
203 if ($a_set[
"content_is_lang_var"])
205 $this->tpl->setVariable(
"VAL_TITLE", $lng->txt($a_set[
"title"]));
213 $this->tpl->setVariable(
"VAL_CREATION_DATE",
215 $this->tpl->setVariable(
"TXT_CREATED", $lng->txt(
"created"));
217 $this->tpl->parseCurrentBlock();