Functions
entry_set_template
private function entry_set_template(
$tpl,
$ent
)

Sets variables in an entry template for display.

Parameters
tpl

The template to populate.

ent

the BlogEntry or Article with which to populate the template.

showCommentPage
protected function showCommentPage(
&$blg,
&$ent,
&$usr
)

Show the page of comments on the entry.

showPingbackPage
protected function showPingbackPage(
&$blg,
&$ent,
&$usr
)

Show the page of Pingbacks for the entry.

showTrackbackPage
protected function showTrackbackPage(
&$blg,
&$ent,
&$usr
)

Shows the page of TrackBacks for the entry.

showTrackbackPingPage
protected function showTrackbackPingPage(
&$blog,
&$ent,
&$usr
)

Show the page from which users can send a TrackBack ping.

showEntryPage
protected function showEntryPage(
&$blg,
&$ent,
&$usr
)

Handles displaying the main permalink for a BlogEntry or Article.

handleComment
private function handleComment(
BasePages $page,
&$ent,
$use_comm_linkfalse
)

Handles comments posted to an entry.  This includes generating the form markup, setting appropriate cookies, and actually inserting the new comments.

Parameters
page
BasePages$

The BasePages object representing the current page.

ent
BasePages&$

The entry we're dealing with.

use_comm_link
BasePages$

Optional boolean, defaults to false.  If this is set to true, then the page will be redirected to the comments page after a successful comment post.  If not, then the redirect will be to the entry permalink.

Returns

The markup to be inserted into the page for the comment form.

show_replies

Gets the HTML for replies of the given type in a list.

Parameters
ent

A reference to the entry for which to get replies.

usr

A reference to the current user.

replies

An array of reply objects.