# -*-s2-*- layerinfo type = "layout"; layerinfo name = "Spidey/Spider Man 2"; layerinfo redist_uniq = "spiderman/spiderman2"; layerinfo author_name = "Sony Pictures"; propgroup colors { property Color body_bgcolor { des = "Page background color"; s1color = "stronger_back"; } property Color entry_bgcolor { des = "Background of entries"; s1color = "page_back"; } property Color entry_text_color { des = "Text color of entries"; s1color = "page_text"; } property Color entry_title_bgcolor { des = "Background color of entry headings and meta-information"; s1color = "page_text_em"; } property Color entry_title_text_color { des = "Color of entry headings and meta-information"; } property Color link_color { des = "Link color"; s1color = "page_link"; } property Color vlink_color { des = "Visited link color"; s1color = "page_vlink"; } property Color alink_color { des = "Active link color"; s1color = "page_alink"; } property Color hlink_color { des = "Hold over link color"; slcolor = "page_alink"; } property Color comment_bar_one_bgcolor { des = "Alternating background color for comment bars (one)"; } property Color comment_bar_two_fgcolor { des = "Text color on alternating comment bars (one)"; } property Color comment_bar_two_bgcolor { des = "Alternating background color for comment bars (two)"; } property Color comment_bar_one_fgcolor { des = "Text color on alternating comment bars (two)"; } property Color comment_bar_screened_bgcolor { des = "Background bar color for screened comments"; } property Color comment_bar_screened_fgcolor { des = "Text color on background bar for screened comments"; } property Color scrollbar_3dlight_color { des = "Scroll bar 3D light color"; note = "Valid for IE5.5+ only"; } property Color scrollbar_arrow_color { des = "Scroll bar arrow color"; note = "Valid for IE5.5+ only"; } property Color scrollbar_base_color { des = "Scroll bar base color"; note = "Valid for IE5.5+ only"; } property Color scrollbar_darkshadow_color { des = "Scroll bar dark shadow color"; note = "Valid for IE5.5+ only"; } property Color scrollbar_face_color { des = "Scroll bar face color"; note = "Valid for IE5.5+ only"; } property Color scrollbar_highlight_color { des = "Scroll bar highlight color"; note = "Valid for IE5.5+ only"; } property Color scrollbar_shadow_color { des = "Scroll bar shadow color"; note = "Valid for IE5.5+ only"; } } set body_bgcolor = "#000000"; set entry_bgcolor = "#D1DAE1"; set entry_text_color = "#4D565D"; set entry_title_bgcolor = "#4D565D"; set entry_title_text_color = "#999999"; set link_color = "#990000"; set vlink_color = "#990000"; set alink_color = "#990000"; set hlink_color = "#ffffff"; set comment_bar_one_bgcolor = "#E6E6EC"; set comment_bar_one_fgcolor = "#4D565D"; set comment_bar_two_bgcolor = "#4D565D"; set comment_bar_two_fgcolor = "#999999"; set comment_bar_screened_bgcolor = "#dddddd"; set comment_bar_screened_fgcolor = "#999999"; set scrollbar_3dlight_color = "#9C9EB5"; set scrollbar_arrow_color = "#CC0000"; set scrollbar_base_color = "#E6E6EC"; set scrollbar_darkshadow_color = "#5A5E7E"; set scrollbar_face_color = "#E6E6EC"; set scrollbar_highlight_color = "#FFFFFF"; set scrollbar_shadow_color = "#5A5E7E"; propgroup fonts { property use font_base; property use font_fallback; property string font_entry { des = "Alternative font style for entries"; values = "Verdana|sans-serif|Sans-serif|serif|Serif|cursive|Cursive|monospace|Monospaced|none|Use browser's default"; } } #set font_topbar_fallback = "none"; #set font_sidebar_fallback = "none"; set font_entry = "Verdana"; propgroup presentation { property use page_recent_items; property use page_friends_items; property string page_margin_size { des = "Size of page border"; values = "0|None|5px|Tiny|25px|Small|50px|Medium|75px|Large|100px|Extra Large"; } property use view_entry_disabled; property use use_shared_pic; property bool show_entrynav_icons { des = "Toggle to show the next, memory, edit, etc icons on the entry view page"; } property string page_background_image { des = "URL to an image to be used for the page background"; } property use linklist_support; property use external_stylesheet; property string image_path { des = "Image Path"; note = """e.g. "http://www.mysite.com/images", no slash "/" at the end """; } property string my_site { des = "My Site URL"; note ="""e.g. "http://www.mysite.com", this will be a link of "My Site" button."""; } } set image_path = "YOUR_IMAGES_URL"; set my_site ="http://spiderman.sonypictures.com"; set page_margin_size = "0px"; set view_entry_disabled = false; set show_entrynav_icons = true; set page_background_image = ""; set linklist_support = false; propgroup text { property use text_post_comment; property use text_read_comments; property use text_post_comment_friends; property use text_read_comments_friends; } set text_post_comment = "spin a web"; set text_read_comments = "1 spun web // # spun webs"; set text_post_comment_friends = "spin a web"; set text_read_comments_friends = "1 spun web // # spun webs"; function css_fontspec(string base, string fallback) "Prints a CSS font-family specification based on the base and fallback given" { if ($base != "" or $fallback != "none") { "font-family: "; if ($base != "") { "\"$base\""; if ($fallback != "none") { ", "; } } if ($fallback != "none") { print $fallback; } ";"; } } function print_stylesheet () { var string bgimg = $*page_background_image ? "url($*page_background_image)" : "none"; """ body { scrollbar-3dlight-color:$*scrollbar_3dlight_color; scrollbar-arrow-color:$*scrollbar_arrow_color; scrollbar-base-color:$*scrollbar_base_color; scrollbar-darkshadow-color:$*scrollbar_darkshadow_color; scrollbar-face-color:$*scrollbar_face_color; scrollbar-highlight-color:$*scrollbar_highlight_color; scrollbar-shadow-color:$*scrollbar_shadow_color; margin: 0px; margin-left: 0px; margin-top: 0px; background: $*body_bgcolor $bgimg; padding: $*page_margin_size; """; css_fontspec($*font_base,$*font_fallback); """ } select{ BORDER-RIGHT: #cccccc 1pt solid; BORDER-TOP: #cccccc 1pt solid; FONT-SIZE: 10px; BORDER-LEFT: #cccccc 1pt solid; COLOR: #ffffff; BORDER-BOTTOM: #cccccc 1pt solid; FONT-FAMILY: verdana; HEIGHT: 14px; BACKGROUND-COLOR: #acb7c0; } input.textbox{ BORDER-RIGHT: #666666 1pt solid; BORDER-TOP: #666666 1pt solid; FONT-SIZE: 10px; BORDER-LEFT: #666666 1pt solid; COLOR: #525667; BORDER-BOTTOM: #666666 1pt solid; FONT-FAMILY: verdana; HEIGHT: 14px; BACKGROUND-COLOR: #cccccc; } textarea.textbox{ BORDER-RIGHT: #666666 1pt solid; BORDER-TOP: #666666 1pt solid; FONT-SIZE: 10px; BORDER-LEFT: #666666 1pt solid; COLOR: #525667; BORDER-BOTTOM: #666666 1pt solid; FONT-FAMILY: verdana; HEIGHT: 100px; BACKGROUND-COLOR: #cccccc; } td{ font-family : $*font_entry; font-size : 10px; color: $*entry_text_color; } a:link { font-family : $*font_entry; color: $*link_color; font-size : 10px; text-decoration:underline; } a:visited { font-family : $*font_entry; color: $*vlink_color; font-size : 10px; text-decoration:underline; } a:active { font-family : $*font_entry; color: $*alink_color; font-size : 10px; text-decoration:underline; } a:hover { font-family : $*font_entry; color: $*hlink_color; font-size : 10px; text-decoration:underline; } .entry{ font-family : $*font_entry; font-size : 10px; color: $*entry_text_color; } .entry_title_bar{ background-color: $*entry_title_bgcolor; } .entry_title_text { font-family : $*font_entry; font-size : 10px; color: $*entry_title_text_color; font-weight: bold; } .entry_date { font-family : $*font_entry; font-size : 10px; color: $*entry_title_text_color; } .calendar_day { font-family : $*font_entry; font-size : 12px; font-weight: bold; color: $*entry_title_text_color; } blockquote{ margin-left: 0PX; } .title { font-family : Arial; font-weight : bold; font-size: 12px; color: #ffffff; } """; } function Page::lay_get_forward() : string { return "";} function Page::lay_get_backward() : string { return "";} function Page::lay_viewspec_nav() { var string nav_forward = $this->lay_get_forward(); var string nav_backward = $this->lay_get_backward(); if ($nav_backward != "") { """ GO EARLIER """; } else{ """ GO EARLIER """; } """ """; if ($nav_forward !="") { """ GO LATER """; }else{ """ GO LATER """; } } function RecentPage::lay_get_forward() : string { return $.nav.forward_url; } function RecentPage::lay_get_backward() : string { return $.nav.backward_url; } #this is not used for this layout #function RecentPage::lay_viewspec_nav() { # FIXME: There is currently no decent way to i18nize this # if ($.nav.forward_url != "" or $.nav.backward_url != "") { # if ($.nav.backward_url != "") { # println """Previous"""; # } # if ($.nav.forward_url != "") { # println """ Next"""; # } # } #} # This DEFINITELY should be in core function Page::lay_view_name(string view) : string "Don't bother overriding this, because it'll be deleted as soon as core can do it" { if ($view == "recent") { return $*text_view_recent; } elseif ($view == "friends") { return $*text_view_friends; } elseif ($view == "userinfo") { return $*text_view_userinfo; } elseif ($view == "archive") { return $*text_view_archive; } else { return "Something"; } } function Page::lay_viewspec_heading() : string "Returns some text to display under the main heading. Overridden in subclasses." { return ""; } function RecentPage::lay_viewspec_heading() : string { return $*text_view_recent; } function FriendsPage::lay_viewspec_heading() : string { if ($.journal.journal_type == "C") { return $*text_view_friends_comm; } else { return $*text_view_friends; } } function DayPage::lay_viewspec_heading() : string { return $*text_view_archive; } function YearPage::lay_viewspec_heading() : string { return $*text_view_archive; } function MonthPage::lay_viewspec_heading() : string { return $*text_view_archive; } #this function is not in use function Page::print_linklist() { if (size $.linklist <= 0) { return; } elseif (not $*linklist_support) { return; } var bool section_open = false; println ""; } println """
  • $l.title\n
  • "; } println ""; } function Page::lay_print_navbar(string num) { """ """; if($.view == "recent"){ """ """; }else{ """ """; } if ($.view == "friends"){ """ """; }else{ """ """; } if ($.view == "archive"){ """ """; }else{ """ """; } if($.view == "userinfo"){ """ """; }else{ """ """; } """ """; $this->lay_viewspec_nav(); """
    ENTRIES ENTRIES FRIENDS FRIENDS CALENDAR CALENDAR PROFILE PROFILE MY SITE
    """; } function Page::print () { var string title = $this->title(); """ """; if ($*external_stylesheet) { println """"""; } else { println """"; } $this->print_head(); """ $title
    Make your own free website on Tripod.com
    $title
    """; $this->lay_print_navbar(""); """
    """; if($.view =="month"){ """
    """; } $this->print_body(); if($.view == "month"){ """
    """; } """
    """; $this->lay_print_navbar("1"); """
    MARVEL, SPIDER-MAN, DOCTOR OCTOPUS and all MARVEL character names and distinctive likenesses thereof: TM & © 2003 Marvel Characters, Inc. All Rights Reserved. MARVEL and SPIDER-MAN: Trademarks registered in the USA and certain other countries. © 2003 Sony Pictures Digital Inc. All rights reserved.
    """; } function print_entry (Page p, Entry e, Color bgcolor, Color fgcolor, bool hide_text) { var string e_time = $e.time->time_format(); var string e_date = $e.time->date_format("short"); var string text_mood; var string text_music; var string val_mood; var string val_music; """  $e.subject [$e_date | $e_time] """; if ($p.view == "entry" and $*show_entrynav_icons) { print "
    "; $e->print_linkbar(); print "
    "; } if ($p.view == "friends") { if ($e.poster.username != $e.journal.username) { ""+$e.poster.username; ", posting in "; } "$e.journal.username @ "; } else { if ($e.poster.username != $e.journal.username) { ""; if (defined $e.userpic) { """"""; } "$e.poster.username @ "; } } if ($e.security) { $e.security_icon->print(); } if ($p.view == "friends" and defined $e.userpic) { """"""; } if (not $hide_text) { print $e.text; }else{ """"""; } if (size $e.metadata) { foreach var string k ($e.metadata) { # if ($k == "mood") { $text_mood = $*text_meta_mood; $val_mood = $e.metadata{$k}; } elseif ($k == "music") { $text_music = $*text_meta_music; $val_music = $e.metadata{$k}; } if ($k == "mood" and defined $e.mood_icon) { var Image i = $e.mood_icon; $val_mood = " $val_mood"; } } if($text_mood !=""){ """

    [ $text_mood : $val_mood ]

    """; } } """ """ + ($text_music ==""?" ":"[ $text_music : $val_music]") + """ """; $e.comments->print(); """ """; } function Page::print_entry (Entry e) { print_entry($this, $e, null Color, null Color, false); } function FriendsPage::print_entry (Entry e) { var Friend f = $.friends{$e.journal.username}; print_entry($this, $e, $f.bgcolor, $f.fgcolor, false); } function CommentInfo::print () { if (not $.enabled) { return; } if ($.count > 0 or $.screened) { $this->print_readlink(); " | "; } $this->print_postlink(); } # This should really be provided in core # This is not used in this layer function RecentPage::lay_range_text() : string { if ($.nav.skip == 0) { return "You are viewing the most recent "+(size $.entries)+" entries"; } else { return "You are viewing "+(size $.entries)+" entries, $.nav.skip into the past"; } } function RecentPage::print_body () { """ """; foreach var Entry e ($.entries) { $this->print_entry($e); } "
    "; } #function YearPage::print_year_links () #{ # foreach var YearYear y ($.years) { # if ($y.displayed) { # "$y.year  "; # } else { # "\">$y.year  "; # } # } #} function YearPage::print_month (YearMonth m) { if (not $m.has_entries) { return; } """"""; """"""; """"""; foreach var int d (weekdays()) { """\n"; } ""; foreach var YearWeek w ($m.weeks) { $w->print(); } "
    """; print $m->month_format(); """ (...)
    """; print $*lang_dayname_short[$d]; "
    "; } #function YearPage::lay_viewspec_nav() { # $this->print_year_links(); #} function YearPage::lay_get_backward() : string { var string f_year = ""; foreach var YearYear y ($.years) { if ($y.year - $.year == -1) { $f_year = $y.url; #break; } } return $f_year; } function YearPage::lay_get_forward() : string { var string f_year = ""; foreach var YearYear y ($.years) { if ($y.year - $.year == 1) { $f_year = $y.url; #break; } } return $f_year; } function YearPage::print_body() { "

    $.year

    "; foreach var YearMonth m ($.months) { $this->print_month($m); } } function YearWeek::print () { ""; if ($.pre_empty) { " "; } foreach var YearDay d ($.days) { """$d.day"""; if ($d.num_entries) { """
    $d.num_entries
    """; } else { "
     
    "; } ""; } if ($.post_empty) { " "; } ""; } #function DayPage::lay_viewspec_nav() { #""" #$*text_day_prev | $*text_day_next #"""; #} function DayPage::lay_get_forward() : string { return $.next_url; } function DayPage::lay_get_backward() : string { return $.prev_url; } #function MonthPage::lay_viewspec_nav() { # if ($.prev_url!="") { #""" # previous month   #"""; # } # if ($.next_url!="") { # #""" # next month   #"""; # } #} function MonthPage::lay_get_forward() : string { return $.next_url; } function MonthPage::lay_get_backward() : string { return $.prev_url; } function DayPage::print_body() { """

    """ + $.date->date_format("long") + "

    "; if (not $.has_entries) { println $*text_noentries_day; } """ """; foreach var Entry e ($.entries) { $this->print_entry($e); } "
    "; } function EntryPage::print_body () { """ """; print_entry($this, $.entry, null Color, null Color, $.viewing_thread); """
    """; if ($.entry.comments.enabled and $.comment_pages.total_subitems > 0) { $this->print_multiform_start(); """

    Comments

    """; if ($.comment_pages.total_subitems > 0) { $.comment_pages->print(); $this->print_comments($.comments); } if ($this.multiform_on) { """

    Mass Action

    """; $this->print_multiform_actionline(); $this->print_multiform_end(); } } """
    """; } # Clean style. Hate to clutter it up with this: function EntryPage::print_comment (Comment c) { var Color background; var Color color; var int table_width = 432 - ($c.depth-1)*25; if ($c.screened) { $background = $*comment_bar_screened_bgcolor; $color = $*comment_bar_screened_fgcolor; } elseif ($c.depth % 2) { $background = $*comment_bar_one_bgcolor; $color = $*comment_bar_one_fgcolor; } else { $background = $*comment_bar_two_bgcolor; $color = $*comment_bar_two_fgcolor; } var string poster = defined $c.poster ? $c.poster->as_string() : "(Anonymous)"; var string sub_icon; if (defined $c.subject_icon) { $sub_icon = $c.subject_icon->as_string(); } "
    "; ""; ""; }else{ " "; } ""; """
    "; if (defined $c.userpic and $*comment_userpic_style != "off") { var int w = $c.userpic.width; var int h = $c.userpic.height; # WARNING: this will later be done by the system (it'll be a # constructional property), so don't copy this hack into your # layout layers or you'll be messed up later. if ($*comment_userpic_style == "small") { $w = $w / 2; $h = $h / 2; } print "[User Picture]"; ### From, date, etc ""; ### Gadgets ""; ### Subject / icon print ""; ### Permalink print ""; print "
    "; print ""; print "\n"; print ""; if ($c.metadata{"poster_ip"}) { print ""; } "
    From:$poster
    Date:"; print $c.time->date_format("short") + " - " + $c.time->time_format() + "
    IP Address:(" + $c.metadata{"poster_ip"} + ")
    "; if ($this.multiform_on) { " "; $c->print_multiform_check(); } $c->print_linkbar(); "
    "; print (defined $c.subject_icon or $c.subject != "") ? "$c.subject_icon $c.subject" : ""; print "(Link)
    """; print "
    $c.text
    "; print "
    (Reply to this) "; if ($c.parent_url != "") { "(Parent) "; } if ($c.thread_url != "") { "(Thread) "; } "
    "; """
    """; } function ReplyPage::print_body () { """ """; var string time = $.replyto.time->time_format(); if (not $.entry.comments.enabled) { print "$*text_reply_nocomments_header
    $*text_reply_nocomments"; return; } """
    """; "

    "; print defined $.replyto.poster ? $.replyto.poster->as_string() : "(Anonymous)"; " @ "; ": "; if ($.replyto.subject) { " $.replyto.subject"; } println ""+($.replyto.subject ? "
    " : ""); "

    "; if (defined $.replyto.userpic) { """"""; } print $.replyto.text; """

    Read Comments

    """; """

    Reply

    """; $.form->print(); """
    """; } function print_theme_preview () { print """ george shan
    ENTRIES FRIENDS CALENDAR PROFILE MY SITE GO EARLIER GO LATER
     sample subjet sample subject
    Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit

    [ Current Mood : amused ]

    [ Current Music : hahaha] 1 spun web | spin a web
     sample subjet sample subject
    Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit
      2 spun webs | spin a web
     sample subjet sample subject
    Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velitNeque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velitNeque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit

    [ Current Mood : accomplished ]

      spin a web
     sample subjet sample subject
    Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velitNeque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit
      1 spun web | spin a web
     sample subjet sample subject
    Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velitNeque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit
      1 spun web | spin a web
    ENTRIES FRIENDS CALENDAR PROFILE MY SITE GO EARLIER GO LATER
    MARVEL, SPIDER-MAN, DOCTOR OCTOPUS and all MARVEL character names and distinctive likenesses thereof: TM & © 2003 Marvel Characters, Inc. All Rights Reserved. MARVEL and SPIDER-MAN: Trademarks registered in the USA and certain other countries. © 2003 Sony Pictures Digital Inc. All rights reserved.
    """; }