5 $UnreadUrl = GetUnreadQuerystring($BlogPost, $this->Context
->Configuration
, $CurrentUserJumpToLastCommentPref);
6 $NewUrl = GetUnreadQuerystring($BlogPost, $this->Context
->Configuration
, 1);
7 $LastUrl = GetLastCommentQuerystring($BlogPost, $this->Context
->Configuration
, $CurrentUserJumpToLastCommentPref);
9 //Adsense section targetting
10 if ($this->Context
->Configuration
['BLOG_ADSENSE'] == 1)
12 $adsensestart="<!-- google_ad_section_start -->";
13 $adsenseend="<!-- google_ad_section_end -->";
22 <li id="Blog_'.$BlogPost->DiscussionID
.'" class="Blog'.$BlogPost->Status
.($BlogPost->CountComments
== 1?
' NoReplies':'').($Alternate ?
' Alternate' : '').($this->RowNumber
== 1 ?
' First' : '').($this->RowNumber
== $this->Context
->Configuration
['BLOG_PER_PAGE'] ?
' Last' : '').' ">
24 <li class="BlogTitle"> <!--Blog Post Title-->'.$adsensestart.'
25 <h2><a href="'.GetUrl($this->Context
->Configuration
, 'comments.php', '', 'DiscussionID', $BlogPost->DiscussionID
, '', 'Focus='.$BlogPost->CommentID
.'#Comment_'.$BlogPost->CommentID
, CleanupString($BlogPost->DiscussionName
).'/').'">'.$BlogPost->DiscussionName
.'</a></h2>'.$adsenseend.'
27 <li class="BlogInfo"> <!--Blog Post Author and Date and Category-->
28 <em>by</em><a href="'.GetUrl($this->Context
->Configuration
, 'account.php', '', 'u', $BlogPost->AuthUserID
).'">'.$BlogPost->DisplayName
.'</a>
29 <em>on</em>'.date($this->Context
->Configuration
['BLOG_DATE'], $BlogPost->DateCreated
).' <em>in</em>'.$adsensestart.'<a href="'.GetUrl($this->Context
->Configuration
, 'index.php', '', 'CategoryID', $BlogPost->CategoryID
).'">'.$BlogPost->CategoryName
.'</a>'.$adsenseend.'
31 <li class="BlogContent"> <!--Blog Post Content-->'.$adsensestart.'
32 '.$CommentBody['main'];
33 if ($CommentBody['extended'] != '')
34 $BlogList .= '<p class="more"><a href="'.GetUrl($this->Context
->Configuration
, 'comments.php', '', 'DiscussionID', $BlogPost->DiscussionID
, '', 'Focus='.$BlogPost->CommentID
.'#Comment_', CleanupString($BlogPost->DiscussionName
).'/').'">'.$this->Context
->GetDefinition('More').'</a></p>';
35 $BlogList .= ''.$adsenseend.'</li>';
37 $BlogList .= '<li class="BlogFooter"><div class="BlogMoreInfo">';
38 if ($BlogPost->Closed
== 0 && $BlogPost->CountComments
== 1) {
39 $BlogList .= '<span class="BlogAddComments"><a href="'.GetUrl($this->Context
->Configuration
, 'comments.php', '', 'DiscussionID', $BlogPost->DiscussionID
, '', '#pgbottom', CleanupString($BlogPost->DiscussionName
).'/').'">'.$this->Context
->GetDefinition('AddComments').'</a></span>';
42 if ($BlogPost->CountComments
> 1) {
43 $BlogPost->CountComments
--;
44 $BlogList .= '<span class="BlogComments"><a href="'.GetUrl($this->Context
->Configuration
, 'comments.php', '', 'DiscussionID', $BlogPost->DiscussionID
, '', '#pgbottom', CleanupString($BlogPost->DiscussionName
).'/').'">'.$this->Context
->GetDefinition('Comments').': '.$BlogPost->CountComments
.'</a></span>';
48 if ($this->Context
->Session
->UserID
> 0) {
49 if ($BlogPost->AuthUserID
== $this->Context
->Session
->UserID ||
$PERMISSION_EDIT_COMMENTS ||
$PERMISSION_EDIT_DISCUSSIONS) {
50 if ((!$BlogPost->Closed
&& $BlogPost->Active
) ||
$PERMISSION_EDIT_COMMENTS ||
$PERMISSION_EDIT_DISCUSSIONS)
51 $BlogList .= '<span class="BlogEdit"><a href="'.GetUrl($this->Context
->Configuration
, 'post.php', 'category/', '','','','CommentID=').$BlogPost->CommentID
.'">'.$this->Context
->GetDefinition('Edit').'</a></span>';
54 $BlogList .= '</div>';
56 $BlogList .= '<div class="BlogBookmarks">';
57 if ($this->Context
->Configuration
['BLOG_SOCIALBOOKMARKS_DIGG'] == 1)
58 $BlogList .= '<a target="_blank" href="http://digg.com/submit?phase=2&url='.GetUrl($this->Context
->Configuration
, 'comments.php', '', 'DiscussionID', $BlogPost->DiscussionID
, '', '', CleanupString($BlogPost->DiscussionName
).'/').'&title='.CleanupString($BlogPost->DiscussionName
).'"><img src="'.$this->Context
->Configuration
["BASE_URL"].'extensions/BlogThis/theme/images/digg.gif" /></a>';
59 if ($this->Context
->Configuration
['BLOG_SOCIALBOOKMARKS_DELICIOUS'] == 1)
60 $BlogList .= '<a target="_blank" href="http://del.icio.us/post?v=4&noui&jump=close&url='.GetUrl($this->Context
->Configuration
, 'comments.php', '', 'DiscussionID', $BlogPost->DiscussionID
, '', '', CleanupString($BlogPost->DiscussionName
).'/').'&title='.CleanupString($BlogPost->DiscussionName
).'"><img src="'.$this->Context
->Configuration
["BASE_URL"].'extensions/BlogThis/theme/images/delicious.gif" /></a>';
61 if ($this->Context
->Configuration
['BLOG_SOCIALBOOKMARKS_STUMBLE'] == 1)
62 $BlogList .= '<a href="http://www.stumbleupon.com/newurl.php?url='.GetUrl($this->Context
->Configuration
, 'comments.php', '', 'DiscussionID', $BlogPost->DiscussionID
, '', '', CleanupString($BlogPost->Name
).'/').'&rating=1" target="_blank"><img src="'.$this->Context
->Configuration
["BASE_URL"].'extensions/BlogThis/theme/images/stumble.gif" /></a>';
63 if ($this->Context
->Configuration
['BLOG_SOCIALBOOKMARKS_TECHNORATI'] == 1)
64 $BlogList .= '<a href="http://technorati.com/faves?add='.GetUrl($this->Context
->Configuration
, 'comments.php', '', 'DiscussionID', $BlogPost->DiscussionID
, '', '', CleanupString($BlogPost->DiscussionName
).'/').'&rating=1" target="_blank"><img src="'.$this->Context
->Configuration
["BASE_URL"].'extensions/BlogThis/theme/images/technorati.gif" /></a>';
65 $BlogList .= '</div>';
68 $this->DelegateParameters
['BlogList'] = &$BlogList;
69 $this->DelegateParameters
['RowNumber'] = &$this->RowNumber
;
71 $this->CallDelegate('PostDiscussionOptionsRender');