function WriteOptions($Discussion, &$Sender, &$Session) { if ($Session->IsValid() && $Sender->ShowOptions) { echo '
'; // Allow plugins to add options $Sender->FireEvent('DiscussionOptions'); // Bookmark link $Title = T($Discussion->Bookmarked == '1' ? 'Unbookmark' : 'Bookmark'); echo Anchor( '' .Img('applications/dashboard/design/images/pixel.png', array('alt' => $Title)) .'', '/vanilla/discussion/bookmark/'.$Discussion->DiscussionID.'/'.$Session->TransientKey().'?Target='.urlencode($Sender->SelfUrl), 'Bookmark' . ($Discussion->Bookmarked == '1' ? ' Bookmarked' : ''), array('title' => $Title) ); echo '
'; } }