layerinfo "type" = "theme";
layerinfo "name" = "Lost";
set text_post_comment = "Message in a bottle";
set text_read_comments = "1 message in a bottle // # messages";
set text_post_comment_friends = "Message in a bottle";
set text_read_comments_friends = "# ";
set text_meta_music = "sound";
set text_meta_mood = "feel";
set text_view_friends = "undespairing";
set page_summary_title = "despairing";
set text_view_recent = "despair";
set text_view_userinfo = "home";
set links_header = "links";
set summary_items = 0;
set page_recent_items = 5;
set page_friends_items = 20;
set show_entry_userpic = false;
set view_entry_disabled = false;
set lang_fmt_time_short = " %%month%% %%d%%, %%yy%% @ %%hh%%:%%min%%%%a%%m";
### Removes title ###
function Page::lay_print_header () {
var string title = $this->title();
var string[] views_order = ["recent", "friends", "userinfo",];
"""
""";
var string[] text;
var string[] url;
# copy sets as necessary
# make sure that the index numbers (bolded numbers) are the same in each group
# this program will step thru them in numerical order
# group one
# set one
$text[0] = "update";
$url[0] = "$*SITEROOT/update.bml";
# print links from above sets in group one
foreach var int i (0 .. (size($text) - 1)){
println """$text[$i]""";
}
# print navigation links
foreach var string v ($views_order) {
println ""+lang_viewname($v)+"";
}
var string website;
if($.journal.website_url != "") {
$website = """$.journal.website_name""";
}
"""
$website
""";
# group two
# set two
$text[0] = "gmail";
$url[0] = "http://gmail.google.com/gmail";
# print links from above sets in group two
foreach var int i (0 .. (size($text) - 1)){
println """$text[$i]""";
}
"""
""";
}
### Gets rid of white background behind friends names on friends page ###
function FriendsPage::lay_make_username (Entry e) {
var Friend f = $.friends{$e.journal.username};
var string url = $e.poster->base_url();
"""
""";
}
function Page::print_entry (Entry e) {
print """""";
var string time = $e.time->time_format();
var string date = $e.time->date_format();
var string security;
if ($e.security != "") {
$security = """""";}
var UserLite name;
var string pname;
var bool show_name = ($.view == "friends" or $e.poster.username != $.journal.username or $.view == "entry") ? true : false;
var bool show_pic = (defined $e.userpic and ($.view == "friends" or $*show_entry_userpic or $e.poster.username != $e.journal.username or $.view == "entry")) ? true : false;
"""
""";
$e.comments->print();
foreach var string key (["edit_entry","mem_add","tell_friend"]) {
var Link link = $e->get_link($key);
if ($link) {
""" $link.caption """;
}
}
"""
""";
}
### lets you see icon keywords on the comment view ###
function EntryPage::print_comment(Comment c) {
var string datetime;
$datetime = $c.time->time_format();
var string parent;
var string thread;
if($c.parent_url != "") {
$parent = """ $*text_comment_parent """;
}
if($c.thread_url != "") {
$thread = """ $*text_comment_thread """;
}
var string subjecticon;
if (defined $c.subject_icon) {
$subjecticon = """""";
}
var string ip;
if ($c.metadata{"poster_ip"}) {
$ip = """ """ + $c.metadata{"poster_ip"};
}
var string poster = defined $c.poster ? $c.poster->as_string() : "(Anonymous)";
var string pic;
if (defined $c.userpic and $*comment_userpic_style != "off") {
$pic = """
""";
$c->print_multiform_check();
"""
""";
}
var string replyurl;
if ($c.frozen) {
$replyurl = """ $*text_comment_frozen """;
} else {
$replyurl = """ $*text_comment_reply """;
}
"""
$replyurl
""";
# some links for doing stuff to this comment
foreach var string k ($c.link_keyseq) {
var Link link = $c->get_link($k);
if ($link) {
""" $link.caption """;
}
}
"""
$parent$thread
$c.subject
$c.text
""";
if ((size $c.replies) > 0 and $c.replies[0].full == false) {
"""
\n""";
$this->print_comments($c.replies);"
\n";
}
"""
""";
if ((size $c.replies) > 0 and $c.replies[0].full == true) {
$this->print_comments($c.replies);
}
}
function Page::lay_print_header () {
var string update = "Future"; # title for update journal link
var string info = "Info"; # title for user info link
var string archive = "Past"; # title for archive link
# this is the order of the links
var string[] views_order = ["recent", "friends"];
var string title = $this->title();
"""