carriep63 (carriep63) wrote in s2bloggish, @ 2007-08-30 15:00:00 |
|
|||
function Page::print_entry(Entry e) {
"<div class='entry'" + ($e.dom_id ? " id='$e.dom_id'" : "") + ">\n";
var bool showtime = $*opt_showtime;
var bool showdate = not $*opt_datehead;
var bool showposter = false;
var bool showuserpic = $*opt_userpic_main;
if ($.view == "friends") { $showtime = true; $showposter = true; $showuserpic = $*opt_userpic_friends; }
if ($.view == "day") { $showdate = false; }
if ($.view == "entry" or $.view == "reply") { $showdate = true; }
if ($.view == "entry") { $showuserpic = $*opt_userpic_entrypage; }
if (not $e.poster->equals($e.journal)) { $showposter = true; }
if (($showuserpic and defined $e.userpic) or $showposter) {
"<div class='entry-userpic'>";
if ($showuserpic and defined $e.userpic) { "$e.userpic"; }
if (($showuserpic and defined $e.userpic) and $showposter) { "<br />"; }
if ($showposter) { "<p class='poster'>"+lang_posted_by($e.poste r, $e.journal, $this)+"</p>"; }
"</div>";
}
"<h3 class='entry-header'>";
"<div class='new-time'>\n";
if ($showdate or $showtime) {
print lang_posted_date_and_time($e, $e.time, $showdate, $showtime);
}
"</div>\n";
if (defined $e.security_icon) {
print "<span class='lj-entry-securityicon'>$e.securit y_icon</span> ";
}
"$e.subject</h3>\n";
"<div class='entry-content'>\n";
"<div class='entry-body'>\n";
$e->print_metadata();
$e->print_text();
"</div>\n";
var string sep = "<span class='separator'>|</span>";
"<p class='entry-footer'>";
# if ($showdate or $showtime) {
# print lang_posted_date_and_time($e, $e.time, $showdate, $showtime)+" $sep ";
# }
"<a class='permalink' href='$e.permalink_url'>$*text_permalink< /a>";
if ($e.comments.show_postlink) { " $sep "; $e.comments->print_postlink(); }
if ($e.comments.show_readlink) { " $sep "; $e.comments->print_readlink(); }
$e->print_linkbar();
"</p>";
"</div>\n";
"</div>\n";
}