[theme] - [flexisquares] - [spiffy date format]

Jul 01, 2005 09:07

in response to jabumbafuck's s2flexisquares post.

function Page::print_custom_head() {
"""

""";
}

function print_entry(Page p, Entry e, Color bgcolor, Color fgcolor) {
$e->print_linkbar();

# Userpic
var string userpic = "";
if ($*show_entry_userpic) {
if ($p.view == "friends" or $p.view == "entry") {
if (defined $e.userpic) {
$userpic = $userpic + """
";
}
} elseif ($p.journal_type == "C" and $p.view == "recent") {
if (defined $e.userpic) {
$userpic = $userpic + """
""";
}
} else {
if (defined $e.userpic) {
$userpic = $userpic + """

""";
}
}
}
"""

""";
if (($p.view == "recent" and $p.journal_type != "C" ) or $p.view == "day") {
print $userpic;
} else {
if ($p.view == "recent" and $p.journal_type == "C" ) {
"""

""";
} else {
"""

""";
}
print $userpic;

# Poster
if ($p.view == "friends" or $p.view == "entry") {
var UserLite linkto;
$linkto = $e.poster;
#print "$e.poster.username";
"""
base_url() + "\">";
"""$linkto.username
""";
} elseif ($p.journal_type == "C" and $p.view == "recent") {
var UserLite linkto;
$linkto = $e.poster;
#print "$e.poster.username";
"""
base_url() + "\">";
"$linkto.username
";
}
if (($p.view == "friends" or $p.view == "entry") and $e.poster.username != $e.journal.username) {
var UserLite linkto;
$linkto = $e.journal;
"""
[ base_url() + "\">";
"""$linkto.username
]""";
}
if ($p.view == "recent" and $p.journal_type == "C") {
"""

""";
}
if ($p.view != "recent" and $p.view != "day") {
"""

""";

}
}

# Date, time, subject
var string time = $e.time->time_format("short");
var string date = $e.time->date_format("long");
var string day = $e.time->date_format("%%day%%");
var string completedate = "";
$completedate = """

$day

$date @ $time

""";
"""

$completedate

""";
if ($e.security != "") {
$e.security_icon->print();
}
"""
$e.subject

""";
$e->print_text();
"""

""";

# Currents
$e->print_metadata();
# Comments
"""

""";
if ($p.view != "entry" or $p.view != "reply") {
$e.comments->print();
} elseif ($e.comments.enabled) {
$e.comments->print_postlink();
} else {
" ";
}
"""

""";
}

function print_entry, layout flexisquares, class page, !all, function print_custom_head, theme

Previous post Next post
Up