$idField, ENT_QUOTES | ENT_DISALLOWED, 'UTF-8', FALSE ); $return .= << $comment->author()->member_id, 'username' => $comment->author()->name, 'timestamp' => $comment->mapped('date'), 'contentapp' => $comment::$application, 'contenttype' => $type, 'contentid' => $item->tid, 'contentclass' => $class, 'contentcommentid' => $comment->$idField) ), ENT_QUOTES | ENT_DISALLOWED, 'UTF-8', FALSE ); $return .= << CONTENT; if ( ( \IPS\Settings::i()->reputation_enabled and \IPS\Settings::i()->reputation_highlight and $comment->reactionCount() >= \IPS\Settings::i()->reputation_highlight ) OR $comment->isFeatured() ): $return .= <<isFeatured() ): $return .= << CONTENT; else: $return .= << CONTENT; endif; $return .= <<
'findComment', 'comment' => $comment->$idField ) ), ENT_QUOTES | ENT_DISALLOWED, 'UTF-8', FALSE ); $return .= <<{$comment->dateLine()} CONTENT; if ( $comment->editLine() ): $return .= <<language()->addToStack( htmlspecialchars( 'edited_lc', ENT_DISALLOWED, 'UTF-8', FALSE ), TRUE, array( ) ); $return .= <<hidden() AND $comment->hidden() != -2 ): $return .= <<hiddenBlurb(), ENT_QUOTES | ENT_DISALLOWED, 'UTF-8', FALSE ); $return .= <<hidden() == -2 ): $return .= <<deletedBlurb(), ENT_QUOTES | ENT_DISALLOWED, 'UTF-8', FALSE ); $return .= <<
CONTENT; if ( \IPS\Member::loggedIn()->modPermission('mod_see_warn') and $comment->warning ): $return .= <<getTemplate( "global", "core" )->commentWarned( $comment ); $return .= << CONTENT; if ( $comment->hidden() !== 0 ): $return .= << CONTENT; if ( $comment->hidden() AND $comment->hidden() != -2 ): $return .= <<hiddenBlurb(), ENT_QUOTES | ENT_DISALLOWED, 'UTF-8', FALSE ); $return .= <<hidden() == -2 ): $return .= <<deletedBlurb(), ENT_QUOTES | ENT_DISALLOWED, 'UTF-8', FALSE ); $return .= << CONTENT; endif; $return .= << {$comment->content()} CONTENT; if ( $comment->editLine() ): $return .= <<editLine()} CONTENT; endif; $return .= <<
CONTENT; if ( !( $comment->hidden() === 1 && ( $comment->canUnhide() || $comment->canDelete() ) ) ): $return .= <<reputation_enabled ): $return .= <<getTemplate( "global", "core" )->reputation( $comment ); $return .= << CONTENT; if ( $comment->hidden() === 1 && ( $comment->canUnhide() || $comment->canDelete() ) ): $return .= <<canUnhide() ): $return .= <<csrf(), ENT_QUOTES | ENT_DISALLOWED, 'UTF-8', FALSE ); $return .= << CONTENT; $return .= \IPS\Member::loggedIn()->language()->addToStack( htmlspecialchars( 'approve', ENT_DISALLOWED, 'UTF-8', FALSE ), TRUE, array( ) ); $return .= << CONTENT; endif; $return .= <<canDelete() ): $return .= <<csrf()->setPage('page',\IPS\Request::i()->page), ENT_QUOTES | ENT_DISALLOWED, 'UTF-8', FALSE ); $return .= << CONTENT; $return .= \IPS\Member::loggedIn()->language()->addToStack( htmlspecialchars( 'delete', ENT_DISALLOWED, 'UTF-8', FALSE ), TRUE, array( ) ); $return .= << CONTENT; endif; $return .= <<canEdit() || $comment->canSplit() || $comment->canHide() ): $return .= << CONTENT; $return .= \IPS\Member::loggedIn()->language()->addToStack( htmlspecialchars( 'options', ENT_DISALLOWED, 'UTF-8', FALSE ), TRUE, array( ) ); $return .= <<
CONTENT; if ( trim( $comment->author()->signature ) ): $return .= <<getTemplate( "global", "core" )->signature( $comment->author() ); $return .= <<

CONTENT; $return .= \IPS\Member::loggedIn()->language()->addToStack( htmlspecialchars( 'share_this_post', ENT_DISALLOWED, 'UTF-8', FALSE ), TRUE, array( ) ); $return .= <<
CONTENT; $return .= \IPS\Member::loggedIn()->language()->addToStack( htmlspecialchars( 'link_to_post', ENT_DISALLOWED, 'UTF-8', FALSE ), TRUE, array( ) ); $return .= << CONTENT; if ( $comment->mapped('first') ): $return .= << CONTENT; else: $return .= << 'findComment', 'comment' => $comment->$idField ) ), ENT_QUOTES | ENT_DISALLOWED, 'UTF-8', FALSE ); $return .= << CONTENT; endif; $return .= <<item()->container()->disable_sharelinks and \count( $comment->sharelinks() ) ): $return .= << CONTENT; $return .= \IPS\Member::loggedIn()->language()->addToStack( htmlspecialchars( 'share_externally', ENT_DISALLOWED, 'UTF-8', FALSE ), TRUE, array( ) ); $return .= << CONTENT; $return .= \IPS\Theme::i()->getTemplate( "global", "core" )->sharelinks( $comment ); $return .= <<

CONTENT; return $return; } function postContainer( $item, $comment, $votes=array(), $otherClasses='' ) { $return = ''; $return .= <<isIgnored() ): $return .= << CONTENT; $sprintf = array($comment->author()->name); $return .= \IPS\Member::loggedIn()->language()->addToStack( htmlspecialchars( 'ignoring_content', ENT_DISALLOWED, 'UTF-8', FALSE ), FALSE, array( 'sprintf' => $sprintf ) ); $return .= << CONTENT; $return .= \IPS\Member::loggedIn()->language()->addToStack( htmlspecialchars( 'options', ENT_DISALLOWED, 'UTF-8', FALSE ), TRUE, array( ) ); $return .= <<
CONTENT; endif; $return .= <<
author()->hasHighlightedReplies() ): $return .= <<reputation_enabled and \IPS\Settings::i()->reputation_highlight and $comment->reactionCount() >= \IPS\Settings::i()->reputation_highlight ) OR $comment->isFeatured() ): $return .= <<author()->hasHighlightedReplies() ): $return .= <<isIgnored() ): $return .= <<hidden() OR $item->hidden() === -2 ): $return .= << CONTENT; if ( $item->isQuestion() and !$comment->new_topic ): $return .= <<getTemplate( "topics", "forums" )->postRating( $item, $comment, $votes ); $return .= <<
CONTENT; $return .= \IPS\Theme::i()->getTemplate( "global", "core" )->userPhoto( $comment->author(), 'large', $comment->warningRef() ); $return .= <<
CONTENT; $return .= \IPS\Theme::i()->getTemplate( "topics", "forums" )->post( $item, $comment, $item::$formLangPrefix . 'comment', $item::$application, $item::$module, $itemClassSafe ); $return .= <<
CONTENT; return $return; } function postRating( $item, $comment, $votes=array() ) { $return = ''; $return .= <<$idField ] ) && $votes[ $comment->$idField ] === 1 ): $return .= <<$idField ] ) && $votes[ $comment->$idField ] === -1 ): $return .= <<