"
. "[edit|"
. "delete"
. "]\n\n";
}
}
# Show blog comments?
my $showComments = 1;
if ($entry->{noreply} == 1) {
# Comments are disabled.
$showComments = 0;
}
else {
# Comments are allowed.
$showComments = 1;
}
if ($showComments) {
$root->{content} .= " \n"
. "";
}
}
else {
$root->{content} = "
Missing Entry
";
}
}
else {
# Just showing the whole list of entries.
my $offset = $query->{os} || 0;
my $tag = $query->{tag} || '';
my $total = &countEntries();
my @entries = &getEntries($offset,$root->{blogcfg}->{blog}->{postsperpage},$tag);
if (length $tag) {
$root->{content} = "
\n\n";
}
if (scalar(@entries)) {
foreach my $item (@entries) {
my $entry = &readEntry($item);
my $stamp = &timeFormat($root->{blogcfg}->{blog}->{timestamp}, $entry->{time});
my $subject = $entry->{subject} || $stamp;
# Read the author's profile.
&readUser($entry->{author});
my $nick = &getNickname($entry->{author});
# Render emoticons?
if (not $entry->{noemote}) {
$entry->{body} = &renderEmoticons($entry->{body});
}
# Splitting/showing only the summary?
my $cutID = 1;
while ($entry->{body} =~ /(.+?)<\/sb\-cut>/si) {
my $cut = $1;
my $code = "