Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function DiscussionsController_AfterDiscussionTitle_Handler($Sender){
- if (!Gdn::Session()->IsValid())
- return;
- $Discussion = $Sender->EventArguments['Discussion'];
- if ($Discussion->CountUnreadComments === TRUE) {
- $Title = htmlspecialchars(T("You haven't read this yet."));
- echo ' <strong class="HasNew MobileHasNew JustNew NewCommentCount" title="'.$Title.'">'.T('new discussion', 'new').'</strong> ';
- } elseif ($Discussion->CountUnreadComments > 0) {
- $Title = htmlspecialchars(Plural($Discussion->CountUnreadComments, "%s new comment since you last read this.", "%s new comments since you last read this."));
- echo ' <strong class="HasNew MobileHasNew NewCommentCount" title="'.$Title.'">'.Plural($Discussion->CountUnreadComments, '%s new', '%s new plural', BigPlural($Discussion->CountUnreadComments, '%s new', '%s new plural')).'</strong> ';
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement