2 // Note: This file is included from the library/Vanilla/Vanilla.Control.DiscussionGrid.php class.
4 echo '<div class="ContentInfo Top">
6 '.$this->Context
->PageTitle
.'
10 <p>'.($PageDetails == '' ?
$this->Context
->GetDefinition('NoDiscussionsFound') : $PageDetails).'</p>
14 <div id="ContentBody">
15 <ol id="Discussions">';
17 $Discussion = $this->Context
->ObjectFactory
->NewContextObject($this->Context
, 'Discussion');
19 $CurrentUserJumpToLastCommentPref = $this->Context
->Session
->User
->Preference('JumpToLastReadComment');
21 $ThemeFilePath = ThemeFilePath($this->Context
->Configuration
, 'discussion.php');
24 while ($Row = $this->Context
->Database
->GetRow($this->DiscussionData
)) {
26 $this->DelegateParameters
['RowNumber'] = &$RowNumber;
28 $Discussion->GetPropertiesFromDataSet($Row);
29 $Discussion->FormatPropertiesForDisplay();
30 // Prefix the discussion name with the whispered-to username if this is a whisper
31 if ($Discussion->WhisperUserID
> 0) {
32 $Discussion->Name
= @$Discussion->WhisperUsername
.': '.$Discussion->Name
;
34 $this->DelegateParameters
['Discussion'] = &$Discussion;
35 $this->CallDelegate( 'PreSingleDiscussionRender' );
36 // Discussion search results are identical to regular discussion listings, so include the discussion search results template here.
37 include($ThemeFilePath);
40 $Alternate = FlipBool($Alternate);
42 echo $DiscussionList.'
45 if ($this->DiscussionDataCount
> 0) {
46 echo '<div class="ContentInfo Bottom">
47 <div class="PageInfo">
48 <p>'.$pl->GetPageDetails($this->Context
).'</p>
51 <a id="TopOfPage" href="'.GetRequestUri().'#pgtop">'.$this->Context
->GetDefinition('TopOfPage').'</a>