123 $rowCol =
'ilModeratorPosting';
125 $rowCol =
'ilModeratorPosting';
136 $tpl->
setVariable(
'TXT_CENSORSHIP_ADVICE', $this->
lng->txt(
'post_censored_comment_by_moderator'));
137 $rowCol =
'tblrowmarked';
142 $tpl->
setVariable(
'POST_NOT_ACTIVATED_YET', $this->
lng->txt(
'frm_post_not_activated_yet'));
152 if ($authorinfo->hasSuffix()) {
153 if (!$authorinfo->isDeleted()) {
154 $tpl->
setVariable(
'USR_NAME', $authorinfo->getAlias());
156 $tpl->
setVariable(
'AUTHOR', $authorinfo->getSuffix());
158 if ($authorinfo->getAuthorName(
true) && !$this->objProperties->isAnonymized()) {
159 $tpl->
setVariable(
'USR_NAME', $authorinfo->getAuthorName(
true));
161 $tpl->
setVariable(
'AUTHOR', $authorinfo->getAuthorShortName());
164 if (self::MODE_EXPORT_CLIENT === $mode) {
165 if ($authorinfo->getAuthor()->getPref(
'public_profile') !==
'n') {
166 $tpl->
setVariable(
'TXT_REGISTERED', $this->
lng->txt(
'registered_since'));
169 $this->frm->convertDate($authorinfo->getAuthor()->getCreateDate())
174 if ($this->is_moderator) {
177 $num_posts = $this->frm->countActiveUserArticles($post->
getDisplayUserId());
179 $tpl->
setVariable(
'TXT_NUM_POSTS', $this->
lng->txt(
'forums_posts'));
184 $tpl->
setVariable(
'USR_IMAGE', $authorinfo->getProfilePicture());
189 if ($authorinfo->getAuthor()->getGender() ===
'f') {
191 } elseif ($authorinfo->getAuthor()->getGender() ===
'm') {
201 $spanClass =
'moderator_small';
215 $this->
lng->txt(
'edited_on') .
': ' . $this->frm->convertDate($post->
getChangeDate()) .
' - ' . strtolower($this->
lng->txt(
'by'))
217 $tpl->
setVariable(
'UPDATE_AUTHOR', $authorinfo->getLinkedAuthorShortName());
218 if ($authorinfo->getAuthorName(
true) && !$this->objProperties->isAnonymized()) {
219 $tpl->
setVariable(
'UPDATE_USR_NAME', $authorinfo->getAuthorName(
true));
230 $spanClass =
'moderator';
239 if ($spanClass !==
'') {
static _replaceMediaObjectImageSrc(string $a_text, int $a_direction=0, string $nic='')
Replaces image source from mob image urls with the mob id or replaces mob id with the correct image s...
static switchColor(int $a_num, string $a_css1, string $a_css2)
switches style sheets for each even $a_num (used for changing colors of different result rows) ...
setMessage(string $a_message)
setVariable(string $variable, $value='')
Sets the given variable to the given value.
isOwner(int $a_user_id=0)
static getInstance(int $a_obj_id=0)
setChangeDate(?string $a_changedate)
setCurrentBlock(string $part=self::DEFAULT_BLOCK)
Sets the template to the given block.
static _isModerator(int $a_ref_id, int $a_usr_id)
parseCurrentBlock(string $block_name=self::DEFAULT_BLOCK)
Parses the given block.