init
BIN
livejournal/bin/upgrading/s2layers/classic/classic.jpg
Executable file
|
After Width: | Height: | Size: 21 KiB |
16
livejournal/bin/upgrading/s2layers/classic/en.s2
Executable file
@@ -0,0 +1,16 @@
|
||||
# -*-s2-*-
|
||||
|
||||
layerinfo type = "i18n";
|
||||
layerinfo name = "English";
|
||||
layerinfo redist_uniq = "classic/en";
|
||||
|
||||
set text_meta_music = "Current Music";
|
||||
set text_meta_mood = "Current Mood";
|
||||
|
||||
set text_permalink = "Link";
|
||||
|
||||
set text_post_comment = "Comment on This";
|
||||
set text_post_comment_friends = "Comment on This";
|
||||
|
||||
set text_read_comments = "1 comment // # comments";
|
||||
set text_read_comments_friends = "1 comment // # comments";
|
||||
785
livejournal/bin/upgrading/s2layers/classic/layout.s2
Executable file
@@ -0,0 +1,785 @@
|
||||
# -*-s2-*-
|
||||
|
||||
layerinfo type = "layout";
|
||||
layerinfo name = "Classic";
|
||||
layerinfo redist_uniq = "classic/layout";
|
||||
layerinfo previews = "classic/classic.jpg";
|
||||
|
||||
propgroup colors {
|
||||
property Color body_bgcolor {
|
||||
des = "Background color of page";
|
||||
s1color = "stronger_back";
|
||||
}
|
||||
property Color main_bgcolor {
|
||||
des = "Background color of main text area";
|
||||
s1color = "page_back";
|
||||
}
|
||||
property Color main_fgcolor {
|
||||
des = "Color of text on main text areas";
|
||||
s1color = "page_text";
|
||||
}
|
||||
property Color headerbar_bgcolor {
|
||||
des = "Background color of header bars";
|
||||
s1color = "strong_back";
|
||||
}
|
||||
property Color headerbar_fgcolor {
|
||||
des = "Color of text on header bars";
|
||||
s1color = "strong_text";
|
||||
}
|
||||
property Color metabar_bgcolor {
|
||||
des = "Background color of side bar";
|
||||
s1color = "weak_back";
|
||||
}
|
||||
property Color metabar_fgcolor {
|
||||
des = "Color of text on side bar";
|
||||
s1color = "weak_text";
|
||||
}
|
||||
property Color page_title_color {
|
||||
des = "Text color of the page's main title";
|
||||
s1color = "page_text_title";
|
||||
}
|
||||
property Color page_subtitle_color {
|
||||
des = "Text color of the page's subtitles";
|
||||
s1color = "page_text_em";
|
||||
}
|
||||
property Color link_color {
|
||||
des = "Text color of links";
|
||||
s1color = "page_link";
|
||||
}
|
||||
property Color vlink_color {
|
||||
des = "Text color of visited links";
|
||||
s1color = "page_vlink";
|
||||
}
|
||||
property Color alink_color {
|
||||
des = "Text color of active links";
|
||||
s1color = "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";
|
||||
}
|
||||
}
|
||||
set body_bgcolor = "#6666cc";
|
||||
set main_bgcolor = "#ffffff";
|
||||
set main_fgcolor = "#000000";
|
||||
set headerbar_bgcolor = "#c0c0ff";
|
||||
set headerbar_fgcolor = "#000000";
|
||||
set metabar_bgcolor = "#eeeeff";
|
||||
set metabar_fgcolor = "#000000";
|
||||
set page_title_color = "#8b1a1a";
|
||||
set page_subtitle_color = "#c00000";
|
||||
set link_color = "#000050";
|
||||
set vlink_color = "#500050";
|
||||
set alink_color = "#ff00c0";
|
||||
set comment_bar_one_bgcolor = "#c0c0ff";
|
||||
set comment_bar_one_fgcolor = "#000000";
|
||||
set comment_bar_two_bgcolor = "#eeeeff";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
set comment_bar_screened_bgcolor = "#dddddd";
|
||||
set comment_bar_screened_fgcolor = "#000000";
|
||||
set tags_aware = true;
|
||||
|
||||
propgroup presentation {
|
||||
property bool show_entry_userpic {
|
||||
des = "Show your userpic with your journal's entries?";
|
||||
}
|
||||
property use font_base;
|
||||
property use font_fallback;
|
||||
property use page_recent_items;
|
||||
property use page_friends_items;
|
||||
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 external_stylesheet;
|
||||
}
|
||||
set show_entry_userpic = false;
|
||||
set font_base = "Arial, Helvetica";
|
||||
set font_fallback = "sans-serif";
|
||||
set page_recent_items = 20;
|
||||
set page_friends_items = 25;
|
||||
set view_entry_disabled = false;
|
||||
set show_entrynav_icons = true;
|
||||
set page_background_image = "";
|
||||
|
||||
propgroup text {
|
||||
property use text_post_comment;
|
||||
property use text_read_comments;
|
||||
property use text_post_comment_friends;
|
||||
property use text_read_comments_friends;
|
||||
property use text_website_default_name;
|
||||
}
|
||||
|
||||
function print_stylesheet ()
|
||||
{
|
||||
print clean_url($*page_background_image) != "" ? "body { background-image: url($*page_background_image); }" : "";
|
||||
var string font;
|
||||
if ($*font_base) {
|
||||
$font = "\"$*font_base\"";
|
||||
if ($*font_fallback != "none") {
|
||||
$font = "$font, ";
|
||||
}
|
||||
}
|
||||
if ($*font_fallback != "none") {
|
||||
$font = "$font $*font_fallback";
|
||||
}
|
||||
|
||||
if ($font != "") {
|
||||
"""
|
||||
body, table, td, th, .page_title, #yearheader {
|
||||
font-family: $font;
|
||||
}
|
||||
""";
|
||||
}
|
||||
|
||||
"""
|
||||
body,.body {
|
||||
background-color: $*body_bgcolor;
|
||||
color: $*main_fgcolor;
|
||||
padding: 5pt;
|
||||
}
|
||||
a, a:link {
|
||||
color: $*link_color;
|
||||
}
|
||||
a:vlink {
|
||||
color: $*vlink_color;
|
||||
}
|
||||
a:alink {
|
||||
color: $*alink_color;
|
||||
}
|
||||
table.main {
|
||||
background-color: $*main_bgcolor;
|
||||
color: $*main_fgcolor;
|
||||
}
|
||||
.page_title {
|
||||
color: $*page_title_color;
|
||||
font-size: 18pt;
|
||||
}
|
||||
.view_links {
|
||||
font-family: monospace;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.view_links2 {
|
||||
font-family: monospace;
|
||||
font-size: 9pt;
|
||||
}
|
||||
th.headerbar {
|
||||
background-color: $*headerbar_bgcolor;
|
||||
color: $*headerbar_fgcolor;
|
||||
font-weight: bold;
|
||||
font-size: 16pt;
|
||||
text-align: left;
|
||||
}
|
||||
td.metabar {
|
||||
text-align: right;
|
||||
white-space: nowrap;
|
||||
background-color: $*metabar_bgcolor;
|
||||
color: $*metabar_fgcolor;
|
||||
}
|
||||
.subject {
|
||||
color: $*page_subtitle_color;
|
||||
font-weight: bold;
|
||||
}
|
||||
.comments {
|
||||
text-align: right;
|
||||
}
|
||||
#yearheader {
|
||||
color: $*page_subtitle_color;
|
||||
font-weight: bold;
|
||||
font-style: italic;
|
||||
font-size: 14pt;
|
||||
}
|
||||
th.monthheader {
|
||||
background-color: $*headerbar_bgcolor;
|
||||
font-size: 12pt;
|
||||
}
|
||||
th.daysheader {
|
||||
background-color: $*metabar_bgcolor;
|
||||
font-weight: normal;
|
||||
}
|
||||
td.weekday_empty {
|
||||
background-color: $*metabar_bgcolor;
|
||||
}
|
||||
.day_id {
|
||||
font-weight: bold;
|
||||
font-size: 10pt;
|
||||
}
|
||||
#archiveyearpage_nav {
|
||||
font-size: 14pt;
|
||||
font-weight: bold;
|
||||
}
|
||||
""";
|
||||
}
|
||||
|
||||
function Page::lay_nav_blurb() { }
|
||||
|
||||
function Page::lay_primary_userpic() : Image {
|
||||
return $.journal.default_pic;
|
||||
}
|
||||
|
||||
function EntryPage::lay_primary_userpic() : Image {
|
||||
return $.entry.userpic;
|
||||
}
|
||||
|
||||
function Page::print_linklist() {
|
||||
if (size $.linklist <= 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
var bool section_open = false;
|
||||
|
||||
println "<span class='view_links2'>";
|
||||
foreach var UserLink l ($.linklist) {
|
||||
if ($l.title) {
|
||||
if ($l.is_heading) {
|
||||
if ($section_open) {
|
||||
println "<br />";
|
||||
}
|
||||
println """<span style="font-weight: bold;">$l.title</span> """;
|
||||
$section_open = true;
|
||||
} else {
|
||||
println """[<a href="$l.url">$l.title</a>]""";
|
||||
}
|
||||
}
|
||||
}
|
||||
if ($section_open) {
|
||||
println "</span><br /><br />";
|
||||
}
|
||||
println "";
|
||||
}
|
||||
|
||||
function Page::print ()
|
||||
{
|
||||
var string title = $this->title();
|
||||
var string userpic;
|
||||
var Image default_userpic = $this->lay_primary_userpic();
|
||||
if (defined $default_userpic)
|
||||
{
|
||||
$userpic = "<img align='right' style='padding: 2px' src='$default_userpic.url' "+
|
||||
"width='$default_userpic.width' height='$default_userpic.height' alt='' />";
|
||||
}
|
||||
var string website_name = $.journal.website_name ? $.journal.website_name : $*text_website_default_name;
|
||||
var string website = $.journal.website_url ?
|
||||
"""<td><a href="$.journal.website_url">$website_name</a></td><td class="body"> </td>""" :
|
||||
"";
|
||||
var string links;
|
||||
foreach var string v ($.views_order) {
|
||||
$links = $links + ($.view == $v ?
|
||||
"["+lang_viewname($v)+"]" :
|
||||
"[<a href='$.view_url{$v}'>"+lang_viewname($v)+"</a>]");
|
||||
}
|
||||
"""
|
||||
<html>
|
||||
<head>
|
||||
""";
|
||||
|
||||
if ($*external_stylesheet) {
|
||||
println """<link rel="stylesheet" href="$.stylesheet_url" type="text/css" />""";
|
||||
} else {
|
||||
println """<style type="text/css">"""; print_stylesheet(); "</style>";
|
||||
}
|
||||
$this->print_head();
|
||||
|
||||
"""
|
||||
<title>$title</title>
|
||||
</head>
|
||||
<body>
|
||||
<table class="main" width='100%'><tr><td>
|
||||
$userpic
|
||||
<span class="page_title">$title</span>
|
||||
<p class="view_links">$links</p>
|
||||
""";
|
||||
if (size $.linklist > 0 and $*linklist_support) {
|
||||
$this->print_linklist();
|
||||
}
|
||||
|
||||
$this->lay_nav_blurb();
|
||||
$this->print_body();
|
||||
"</td></tr></table>\n";
|
||||
|
||||
### Affliations
|
||||
|
||||
"<table class='main' align='right'><tr>";
|
||||
|
||||
print $website; "<td>"; server_sig(); "</td></tr>";
|
||||
|
||||
"</table>\n</body>\n</html>";
|
||||
}
|
||||
|
||||
function print_entry (Page p, Entry e, Color bgcolor, Color fgcolor, bool hide_text)
|
||||
{
|
||||
var string time = $e.time->time_format();
|
||||
var string userpic = "";
|
||||
if (defined $e.userpic)
|
||||
{
|
||||
$userpic = "<img src='$e.userpic.url' alt='[User Picture]' height='$e.userpic.height' width='$e.userpic.width' />";
|
||||
}
|
||||
if ($e.new_day or $p.view == "entry")
|
||||
{
|
||||
"<tr><th colspan='2' align='left' class='headerbar'>";
|
||||
print $e.time->date_format("%%month%% %%dayord%%, %%yyyy%%");
|
||||
"</th></tr>\n";
|
||||
} elseif ($p.view == "day") {
|
||||
"<tr><th class='headerbar'>Time</td><td class='headerbar' style='width: 100%'>Event</th></tr>";
|
||||
}
|
||||
"<tr valign='top'>";
|
||||
|
||||
# Metabar
|
||||
"<td style='background-color: $bgcolor;' class='metabar'>";
|
||||
# Time
|
||||
"<em>$time</em><br />";
|
||||
# Altposter crap
|
||||
if ($p.view == "friends")
|
||||
{
|
||||
"<strong><a style='color: $fgcolor' href='" + $e.journal->base_url() + "/'>";
|
||||
print $e.journal.username;
|
||||
"</a></strong><br />";
|
||||
}
|
||||
if ($e.journal.username != $e.poster.username)
|
||||
{
|
||||
"[<a href='" + $e.poster->base_url() + "/'>";
|
||||
print $e.poster.username;
|
||||
"</a>]<br />";
|
||||
}
|
||||
if ($userpic != "" and ($p.view == "friends" or $*show_entry_userpic == true))
|
||||
{
|
||||
print $userpic;
|
||||
}
|
||||
# Security icon
|
||||
if ($e.security) { print $e.security_icon; }
|
||||
# Permalink
|
||||
"<p>[<a href='$e.permalink_url'>$*text_permalink</a>]</p>";
|
||||
"</td>";
|
||||
|
||||
# Entry
|
||||
"<td style='text-align:left'>";
|
||||
|
||||
if ($p.view == "entry" and $*show_entrynav_icons)
|
||||
{
|
||||
print "<div style='text-align: center'>";
|
||||
$e->print_linkbar();
|
||||
print "</div>";
|
||||
}
|
||||
|
||||
if ($e.subject) { "\n\n<span class='subject'>$e.subject</span><br />"; }
|
||||
if (not $hide_text) {
|
||||
print $e.text; "\n\n";
|
||||
if (size $e.metadata or size $e.tags)
|
||||
{
|
||||
"<p>";
|
||||
foreach var string k ($e.metadata)
|
||||
{
|
||||
var string key = $k;
|
||||
var string val = $e.metadata{$k};
|
||||
if ($k == "mood") { $key = $*text_meta_mood; }
|
||||
if ($k == "music") { $key = $*text_meta_music; }
|
||||
if ($k == "mood" and defined $e.mood_icon)
|
||||
{
|
||||
var Image i = $e.mood_icon;
|
||||
$val = "<img src='$i.url' width='$i.width' height='$i.height' alt='' /> $val";
|
||||
}
|
||||
"<strong>$key:</strong> $val<br />";
|
||||
}
|
||||
|
||||
if ($e.tags) {
|
||||
var int tcount = 0;
|
||||
"<strong>Tags:</strong> ";
|
||||
foreach var Tag t ($e.tags) {
|
||||
"""<a rel="tag" href="$t.url">$t.name</a>""";
|
||||
$tcount++;
|
||||
if ($tcount != size $e.tags) { ", "; }
|
||||
}
|
||||
"<br />";
|
||||
}
|
||||
|
||||
"</p>";
|
||||
}
|
||||
}
|
||||
$e.comments->print();
|
||||
"</td>";
|
||||
"</tr>\n";
|
||||
}
|
||||
|
||||
function Page::print_entry (Entry e)
|
||||
{
|
||||
print_entry($this, $e, $*metabar_bgcolor, $*metabar_fgcolor, false);
|
||||
}
|
||||
|
||||
function FriendsPage::print_entry (Entry e)
|
||||
{
|
||||
var Friend f = $.friends{$e.journal.username};
|
||||
print_entry($this, $e, $f.bgcolor, $f.fgcolor, false);
|
||||
}
|
||||
|
||||
function RecentPage::lay_nav_blurb ()
|
||||
{
|
||||
var string user = "<a href='$.base_url/info'>$.journal.name</a>";
|
||||
if ($.nav.skip > 0)
|
||||
{
|
||||
"Below are $.nav.count entries, after skipping $.nav.skip most recent ones in the \"$user\" journal:";
|
||||
} else {
|
||||
"Below are the $.nav.count most recent journal entries recorded in the \"$user\" journal:";
|
||||
}
|
||||
}
|
||||
|
||||
function RecentPage::print_body ()
|
||||
{
|
||||
var string nav = "";
|
||||
if ($.nav.forward_url != "" or $.nav.backward_url != "")
|
||||
{
|
||||
if ($.nav.backward_url != "")
|
||||
{
|
||||
$nav = "<a href='$.nav.backward_url'><< Previous $.nav.backward_count entries</a>";
|
||||
}
|
||||
if ($.nav.backward_url != "" and $.nav.forward_url != "")
|
||||
{
|
||||
$nav = "$nav --";
|
||||
}
|
||||
if ($.nav.forward_url != "")
|
||||
{
|
||||
$nav = "$nav <a href='$.nav.forward_url'>Next $.nav.forward_count entries >></a>";
|
||||
}
|
||||
$nav = "<p align='center'>[$nav]</p>";
|
||||
}
|
||||
if ($nav != "") { print $nav; }
|
||||
"<table style='margin-left: 30px'>\n";
|
||||
foreach var Entry e ($.entries) { $this->print_entry($e); }
|
||||
"</table>\n";
|
||||
if ($nav != "") { print $nav; }
|
||||
}
|
||||
|
||||
function FriendsPage::lay_nav_blurb ()
|
||||
{
|
||||
var int total = size $.entries;
|
||||
if ($.nav.skip > 0)
|
||||
{
|
||||
"Below are $total friends entries, after skipping $.nav.skip most recent ones:";
|
||||
} else {
|
||||
"Below are the $total most recent friends journal entries:";
|
||||
}
|
||||
}
|
||||
|
||||
function CommentInfo::print ()
|
||||
{
|
||||
if (not $.enabled) { return; }
|
||||
"<p class='comments'>(";
|
||||
if ($.count > 0 or $.screened) {
|
||||
$this->print_readlink();
|
||||
" | ";
|
||||
}
|
||||
$this->print_postlink();
|
||||
")</p>";
|
||||
}
|
||||
|
||||
function YearPage::lay_nav_blurb()
|
||||
{
|
||||
"<p id='yearpage_nav'>";
|
||||
$this->print_year_links();
|
||||
"</p>";
|
||||
}
|
||||
|
||||
function YearPage::print_body
|
||||
{
|
||||
"<p id='yearheader'>$.year…</p>\n";
|
||||
foreach var YearMonth m ($.months) {
|
||||
$this->print_month($m);
|
||||
}
|
||||
}
|
||||
|
||||
function YearPage::print_year_links ()
|
||||
{
|
||||
foreach var YearYear y ($.years) {
|
||||
if ($y.displayed) {
|
||||
"[ $y.year ]";
|
||||
} else {
|
||||
"[ <a href=\"$y.url\">$y.year</a> ]";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function YearPage::print_month(YearMonth m)
|
||||
{
|
||||
if (not $m.has_entries) { return; }
|
||||
# Table Wrapper
|
||||
"<center><p><table border='1' cellpadding='4' width='80%'>\n";
|
||||
|
||||
# Month Header
|
||||
"<tr align='center'><th colspan='7' class='monthheader'>\n";
|
||||
print $m->month_format();
|
||||
"</th></tr>\n";
|
||||
|
||||
# Weekdays Header
|
||||
"<tr align='center'>\n";
|
||||
foreach var int d (weekdays()) {
|
||||
"<th class='daysheader'>"+$*lang_dayname_short[$d]+"</th>\n";
|
||||
}
|
||||
"</tr>\n";
|
||||
|
||||
# Weeks
|
||||
foreach var YearWeek w ($m.weeks) {
|
||||
$w->print();
|
||||
}
|
||||
|
||||
# Footer
|
||||
"<tr><td colspan='7'><div style='text-align: center'><a href='$m.url'>$*text_view_month</a></div></td></tr>\n";
|
||||
|
||||
# End Table
|
||||
"</table></p></center>\n";
|
||||
}
|
||||
|
||||
function YearWeek::print ()
|
||||
{
|
||||
"<tr>";
|
||||
if ($.pre_empty) { "<td colspan='$.pre_empty' class='weekday_empty'> </td>"; }
|
||||
foreach var YearDay d ($.days) {
|
||||
"<td valign='top'><span class='day_id'>$d.day</span><div style='text-align: center'>";
|
||||
if ($d.num_entries) {
|
||||
"<a href='$d.url'>$d.num_entries</a>";
|
||||
} else {
|
||||
" ";
|
||||
}
|
||||
"</div></td>\n";
|
||||
}
|
||||
if ($.post_empty) { "<td colspan='$.post_empty' class='weekday_empty'> </td>"; }
|
||||
"</tr>";
|
||||
}
|
||||
|
||||
function DayPage::print_body ()
|
||||
{
|
||||
"<h2 class='daypage_header'>"; print $.date->date_format("%%month%% %%dayord%%, %%yyyy%%"); "</h2>";
|
||||
if (not $.has_entries)
|
||||
{
|
||||
"<blockquote><em>"; print ehtml($*text_noentries_day); "</em></blockquote>";
|
||||
} else {
|
||||
"<table style='margin-left: 30px'>";
|
||||
foreach var Entry e ($.entries) { $this->print_entry($e); }
|
||||
"</table>";
|
||||
}
|
||||
|
||||
var string tprev = ehtml($*text_day_prev);
|
||||
var string tnext = ehtml($*text_day_next);
|
||||
|
||||
"<table align='center'><tr align='middle'>\n";
|
||||
|
||||
"<td width='33%' align='left'><a href='$.prev_url'>$tprev</a></td>\n";
|
||||
"<td align='center' width='33%'>";
|
||||
"<strong>"; print $.date->date_format("%%yyyy%%/%%mm%%/%%dd%%"); "</strong><br />";
|
||||
"[<a href='"; print $this.journal->base_url(); "/calendar'>$*text_view_archive</a>]</td>\n";
|
||||
"<td width='33%' align='right'><a href='$.next_url'>$tnext</a></td>\n";
|
||||
|
||||
"</tr></table>";
|
||||
|
||||
}
|
||||
|
||||
function EntryPage::print_body () {
|
||||
set_handler("unscreen_comment_#", [
|
||||
[ "style_bgcolor", "cmtbar#", "$*comment_bar_one_bgcolor", ],
|
||||
[ "style_color", "cmtbar#", "$*comment_bar_one_fgcolor", ],
|
||||
]);
|
||||
set_handler("screen_comment_#", [
|
||||
[ "style_bgcolor", "cmtbar#", "$*comment_bar_screened_bgcolor", ],
|
||||
[ "style_color", "cmtbar#", "$*comment_bar_screened_fgcolor", ],
|
||||
]);
|
||||
|
||||
"<table style='margin-left: 30px'>\n";
|
||||
print_entry($this, $.entry, $*metabar_bgcolor, $*metabar_fgcolor, $.viewing_thread);
|
||||
|
||||
if ($.entry.comments.enabled and $.comment_pages.total_subitems > 0)
|
||||
{
|
||||
$this->print_multiform_start();
|
||||
"<tr valign='top'><th class='headerbar' colspan='2'>Comments</th></tr>";
|
||||
"<tr valign='top'><td style='background-color: $*metabar_bgcolor'> </td><td style='width: 100%'>";
|
||||
if ($.comment_pages.total_subitems > 0) {
|
||||
$.comment_pages->print();
|
||||
$this->print_comments($.comments);
|
||||
}
|
||||
"</td></tr>";
|
||||
if ($this.multiform_on) {
|
||||
"<tr valign='top'><th class='headerbar' colspan='2'>Mass Action</th></tr>";
|
||||
"<tr valign='top'><td style='background-color: $*metabar_bgcolor'> </td><td style='width: 100%'>";
|
||||
$this->print_multiform_actionline();
|
||||
$this->print_multiform_end();
|
||||
"</td></tr>";
|
||||
}
|
||||
}
|
||||
"</table>\n";
|
||||
}
|
||||
|
||||
function EntryPage::print_comment (Comment c) {
|
||||
var Color background; var Color color;
|
||||
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() : "<i>(Anonymous)</i>";
|
||||
var string sub_icon;
|
||||
if (defined $c.subject_icon) {
|
||||
$sub_icon = $c.subject_icon->as_string();
|
||||
}
|
||||
"<a name='$c.anchor'></a><div id='cmtbar$c.talkid' style='background-color: $background; color: $color; margin-top: 10px; width: 100%'>";
|
||||
"<table cellpadding='2' cellspacing='0' summary='0' style='width: 100%'><tr valign='top'>";
|
||||
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 "<td style='width: 102px'><img src='$c.userpic.url' width='$w' height='$h' alt='[User Picture]' /></td>";
|
||||
}
|
||||
|
||||
"<td style='width: 100%'><table style='width: 100%'><tr>";
|
||||
|
||||
### From, date, etc
|
||||
"<td align='left' style='width: 50%'>";
|
||||
print "<table>";
|
||||
print "<tr><th align='right'>From:</th><td>$poster</td></tr>\n";
|
||||
print "<tr><th align='right'>Date:</th><td style='white-space: nowrap'>";
|
||||
print $c.time->date_format("long") + " - " + $c.time->time_format() + "</td></tr>";
|
||||
if ($c.metadata{"poster_ip"}) { print "<tr><th align='right'>IP Address:</th><td>(" + $c.metadata{"poster_ip"} + ")</td></tr>"; }
|
||||
"</table></td>";
|
||||
|
||||
### Gadgets
|
||||
"<td align='right' style='width: 50%'>";
|
||||
if ($this.multiform_on) {
|
||||
" <label for='ljcomsel_$c.talkid'>$*text_multiform_check</label>";
|
||||
$c->print_multiform_check();
|
||||
}
|
||||
$c->print_linkbar();
|
||||
"</td></tr>";
|
||||
|
||||
### Subject / icon
|
||||
print "<tr valign='top'><td style='width: 50%'>";
|
||||
print (defined $c.subject_icon or $c.subject != "") ? "<h3>$c.subject_icon $c.subject</h3>" : "";
|
||||
print "</td>";
|
||||
|
||||
### Permalink
|
||||
print "<td style='width: 50%' align='right'><strong>(<a href='$c.permalink_url'>Link</a>)</strong></td></tr>";
|
||||
|
||||
print "</table></td></tr></table></div>";
|
||||
print "<div style='margin-left: 5px'>$c.text</div>";
|
||||
print "<div style='margin-top: 3px; font-size: smaller'>";
|
||||
if ($c.frozen) {
|
||||
print "(Replies frozen) ";
|
||||
} else {
|
||||
print "(<a href='$c.reply_url'>Reply to this</a>) ";
|
||||
}
|
||||
if ($c.parent_url != "") { "(<a href='$c.parent_url'>Parent</a>) "; }
|
||||
if ($c.thread_url != "") { "(<a href='$c.thread_url'>Thread</a>) "; }
|
||||
"</div>";
|
||||
}
|
||||
|
||||
function ReplyPage::print_body()
|
||||
{
|
||||
"<table style='margin-left: 30px'>\n";
|
||||
if (not $.entry.comments.enabled) {
|
||||
print "<tr><th class='headerbar'>$*text_reply_nocomments_header</th></tr><tr><td>$*text_reply_nocomments</td></tr></table>";
|
||||
return;
|
||||
}
|
||||
var string time = $.replyto.time->time_format();
|
||||
var string userpic = "";
|
||||
if (defined $.replyto.userpic)
|
||||
{
|
||||
$userpic = "<img src='$.replyto.userpic.url' />";
|
||||
}
|
||||
"<tr><th class='headerbar'>Time</td><th class='headerbar' style='width: 100%'>Text</th></tr>";
|
||||
"<tr valign='top'>";
|
||||
|
||||
# Metabar
|
||||
"<td style='background-color: $*metabar_bgcolor;' class='metabar'>";
|
||||
# Time
|
||||
"<em>$time</em><br />";
|
||||
if ($userpic)
|
||||
{
|
||||
print $userpic + "<br />\n";
|
||||
}
|
||||
print defined $.replyto.poster ? $.replyto.poster->as_string() : "<i>(Anonymous)</i>";
|
||||
# Permalink
|
||||
"<p>[<a href='$.replyto.permalink_url'>$*text_permalink</a>]</p>";
|
||||
"</td>";
|
||||
|
||||
# Text
|
||||
"<td style='text-align:left'>";
|
||||
if ($.replyto.subject != "") { "\n\n<span class='subject'>$.replyto.subject</span><br />"; }
|
||||
print $.replyto.text; "\n\n";
|
||||
|
||||
"</td></tr>\n";
|
||||
"<div align='center'><a href='$.entry.comments.read_url'>( Read Comments )</a></div>";
|
||||
"<tr valign='top'><th class='headerbar' colspan='2'>Reply:</th></tr>";
|
||||
"<tr valing='top'><td style='background-color: $*metabar_bgcolor'> </td><td>";
|
||||
$.form->print();
|
||||
"</td></tr></table>";
|
||||
}
|
||||
|
||||
function print_theme_preview ()
|
||||
{
|
||||
|
||||
"""
|
||||
<table width='100%' style='background-color: $*body_bgcolor'>
|
||||
<tr><td>
|
||||
<table height='95%' cellpadding='5' width='100%' bgcolor='$*main_bgcolor'>
|
||||
<tr><td>
|
||||
<span style='font: normal bold 16pt $*font_base, $*font_fallback; color: $*page_title_color'>John Doe</span>
|
||||
|
||||
<ul><table>
|
||||
<tr><td align="left" style="background-color: $*headerbar_bgcolor; color: $*headerbar_fgcolor" colspan="2">
|
||||
<span style='font: normal bold 14pt $*font_base, $*font_fallback'>Friday, November 15th, 2002</span>
|
||||
</td></tr>
|
||||
<tr valign="top"><td style="text-align: right; background-color: $*metabar_bgcolor; white-space: nowrap">
|
||||
<span style="font: italic normal 10pt $*font_base, $*font_fallback; color: $*metabar_fgcolor">
|
||||
10:21 pm</span>
|
||||
</td><td>
|
||||
|
||||
<p style="text-align:left">
|
||||
<span style="font: italic bold 10pt $*font_base, $*font_fallback; color: $*page_subtitle_color">
|
||||
Neque porro quisquam est…
|
||||
</span><br />
|
||||
|
||||
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
|
||||
Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit
|
||||
|
||||
</p><p style="text-align:right; font-size: 8pt">
|
||||
(<a href="#" style="font-weight: bold; color: $*link_color">1 Comment</a> |
|
||||
<a href="#" style="color: $*vlink_color">Comment on this</a>)
|
||||
|
||||
</p>
|
||||
|
||||
</td></tr>
|
||||
</table></ul>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
""";
|
||||
}
|
||||
419
livejournal/bin/upgrading/s2layers/classic/themes.s2
Executable file
@@ -0,0 +1,419 @@
|
||||
#NEWLAYER: classic/calmfire
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Calm Fire";
|
||||
layerinfo redist_uniq = "classic/calmfire";
|
||||
set body_bgcolor = "#9e0610";
|
||||
set main_bgcolor = "#7d7d7d";
|
||||
set main_fgcolor = "#ffffff";
|
||||
set headerbar_bgcolor = "#ff6c1d";
|
||||
set headerbar_fgcolor = "#000000";
|
||||
set metabar_bgcolor = "#ff9364";
|
||||
set metabar_fgcolor = "#000000";
|
||||
set page_title_color = "#8b1a1a";
|
||||
set page_subtitle_color = "#c00000";
|
||||
set link_color = "#ff1010";
|
||||
set vlink_color = "#f10707";
|
||||
set alink_color = "#ff1d1d";
|
||||
set comment_bar_one_bgcolor = "#ff6c1d";
|
||||
set comment_bar_one_fgcolor = "#000000";
|
||||
set comment_bar_two_bgcolor = "#ff9364";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
|
||||
#NEWLAYER: classic/shrinkvio
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Shrinking Violet";
|
||||
layerinfo redist_uniq = "classic/shrinkvio";
|
||||
set body_bgcolor = "#ad22e7";
|
||||
set main_bgcolor = "#ffffff";
|
||||
set main_fgcolor = "#000000";
|
||||
set headerbar_bgcolor = "#5d0383";
|
||||
set headerbar_fgcolor = "#ffffff";
|
||||
set metabar_bgcolor = "#5d0343";
|
||||
set metabar_fgcolor = "#ffffff";
|
||||
set page_title_color = "#d9a1f1";
|
||||
set page_subtitle_color = "#d9a1f1";
|
||||
set link_color = "#2e053f";
|
||||
set vlink_color = "#611627";
|
||||
set alink_color = "#ff00c0";
|
||||
set comment_bar_one_bgcolor = "#5d0383";
|
||||
set comment_bar_one_fgcolor = "#ffffff";
|
||||
set comment_bar_two_bgcolor = "#5d0343";
|
||||
set comment_bar_two_fgcolor = "#ffffff";
|
||||
|
||||
#NEWLAYER: classic/pistmint
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Pistachio Mint";
|
||||
layerinfo redist_uniq = "classic/pistmint";
|
||||
set body_bgcolor = "#133422";
|
||||
set main_bgcolor = "#a7c4b4";
|
||||
set main_fgcolor = "#000000";
|
||||
set headerbar_bgcolor = "#096d36";
|
||||
set headerbar_fgcolor = "#ffffff";
|
||||
set metabar_bgcolor = "#096d36";
|
||||
set metabar_fgcolor = "#ffffff";
|
||||
set page_title_color = "#096d36";
|
||||
set page_subtitle_color = "#096d36";
|
||||
set link_color = "#8afabc";
|
||||
set vlink_color = "#1da65a";
|
||||
set alink_color = "#f9f5f5";
|
||||
set comment_bar_one_bgcolor = "#096d36";
|
||||
set comment_bar_one_fgcolor = "#ffffff";
|
||||
set comment_bar_two_bgcolor = "#096d36";
|
||||
set comment_bar_two_fgcolor = "#ffffff";
|
||||
|
||||
#NEWLAYER: classic/mexicanfood
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Mexican Food";
|
||||
layerinfo redist_uniq = "classic/mexicanfood";
|
||||
set body_bgcolor = "#ff0000";
|
||||
set main_bgcolor = "#f8ff3e";
|
||||
set main_fgcolor = "#f15601";
|
||||
set headerbar_bgcolor = "#bdbf3e";
|
||||
set headerbar_fgcolor = "#ff0000";
|
||||
set metabar_bgcolor = "#ffc664";
|
||||
set metabar_fgcolor = "#000000";
|
||||
set page_title_color = "#ff0000";
|
||||
set page_subtitle_color = "#e15a18";
|
||||
set link_color = "#f49e08";
|
||||
set vlink_color = "#b05403";
|
||||
set alink_color = "#ff7405";
|
||||
set comment_bar_one_bgcolor = "#bdbf3e";
|
||||
set comment_bar_one_fgcolor = "#ff0000";
|
||||
set comment_bar_two_bgcolor = "#ffc664";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
|
||||
#NEWLAYER: classic/ashfire
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Ash and Fire";
|
||||
layerinfo redist_uniq = "classic/ashfire";
|
||||
set body_bgcolor = "#b5b5b5";
|
||||
set main_bgcolor = "#ffb6af";
|
||||
set main_fgcolor = "#000000";
|
||||
set headerbar_bgcolor = "#e75454";
|
||||
set headerbar_fgcolor = "#ffffff";
|
||||
set metabar_bgcolor = "#ff9696";
|
||||
set metabar_fgcolor = "#ffffff";
|
||||
set page_title_color = "#ff1106";
|
||||
set page_subtitle_color = "#f06c88";
|
||||
set link_color = "#f70208";
|
||||
set vlink_color = "#b0161d";
|
||||
set alink_color = "#d70106";
|
||||
set comment_bar_one_bgcolor = "#e75454";
|
||||
set comment_bar_one_fgcolor = "#ffffff";
|
||||
set comment_bar_two_bgcolor = "#ff9696";
|
||||
set comment_bar_two_fgcolor = "#ffffff";
|
||||
|
||||
#NEWLAYER: classic/desktop
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Classic Desktop";
|
||||
layerinfo redist_uniq = "classic/desktop";
|
||||
set body_bgcolor = "#00545c";
|
||||
set main_bgcolor = "#ffffff";
|
||||
set main_fgcolor = "#000000";
|
||||
set headerbar_bgcolor = "#ff7b05";
|
||||
set headerbar_fgcolor = "#ffeddd";
|
||||
set metabar_bgcolor = "#ffffff";
|
||||
set metabar_fgcolor = "#000000";
|
||||
set page_title_color = "#ff7b05";
|
||||
set page_subtitle_color = "#ffeddd";
|
||||
set link_color = "#000050";
|
||||
set vlink_color = "#500050";
|
||||
set alink_color = "#5a76ff";
|
||||
set comment_bar_one_bgcolor = "#ff7b05";
|
||||
set comment_bar_one_fgcolor = "#ffeddd";
|
||||
set comment_bar_two_bgcolor = "#ffffff";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
|
||||
#NEWLAYER: classic/satinhandshake
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Satin Handshake";
|
||||
layerinfo redist_uniq = "classic/satinhandshake";
|
||||
set body_bgcolor = "#480c0c";
|
||||
set main_bgcolor = "#d06464";
|
||||
set main_fgcolor = "#00001d";
|
||||
set headerbar_bgcolor = "#aaaaaa";
|
||||
set headerbar_fgcolor = "#000000";
|
||||
set metabar_bgcolor = "#dddddd";
|
||||
set metabar_fgcolor = "#000000";
|
||||
set page_title_color = "#9d0404";
|
||||
set page_subtitle_color = "#9d0404";
|
||||
set link_color = "#000050";
|
||||
set vlink_color = "#500050";
|
||||
set alink_color = "#ff00c0";
|
||||
set comment_bar_one_bgcolor = "#aaaaaa";
|
||||
set comment_bar_one_fgcolor = "#000000";
|
||||
set comment_bar_two_bgcolor = "#dddddd";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
|
||||
#NEWLAYER: classic/deepmelodrama
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Deep MeloDrama";
|
||||
layerinfo redist_uniq = "classic/deepmelodrama";
|
||||
set body_bgcolor = "#872d89";
|
||||
set main_bgcolor = "#719cff";
|
||||
set main_fgcolor = "#8e48b2";
|
||||
set comment_bar_one_bgcolor = "#3794b3";
|
||||
set comment_bar_one_fgcolor = "#84b8e7";
|
||||
set metabar_bgcolor = "#65b2c1";
|
||||
set metabar_fgcolor = "#f5d3ff";
|
||||
set page_title_color = "#8e48b2";
|
||||
set page_subtitle_color = "#65b2c1";
|
||||
set link_color = "#000050";
|
||||
set vlink_color = "#500050";
|
||||
set alink_color = "#dfd3ff";
|
||||
set comment_bar_one_bgcolor = "#3794b3";
|
||||
set comment_bar_one_fgcolor = "#84b8e7";
|
||||
set comment_bar_two_bgcolor = "#65b2c1";
|
||||
set comment_bar_two_fgcolor = "#f5d3ff";
|
||||
|
||||
#NEWLAYER: classic/everwhite
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Everwhite";
|
||||
layerinfo redist_uniq = "classic/everwhite";
|
||||
set body_bgcolor = "#ffffff";
|
||||
set main_bgcolor = "#ffffff";
|
||||
set main_fgcolor = "#000000";
|
||||
set comment_bar_one_bgcolor = "#ffffff";
|
||||
set comment_bar_one_fgcolor = "#000000";
|
||||
set metabar_bgcolor = "#ffffff";
|
||||
set metabar_fgcolor = "#000000";
|
||||
set page_title_color = "#000000";
|
||||
set page_subtitle_color = "#ff0000";
|
||||
set link_color = "#e60000";
|
||||
set vlink_color = "#c10602";
|
||||
set alink_color = "#ff0600";
|
||||
set comment_bar_one_bgcolor = "#ffffff";
|
||||
set comment_bar_one_fgcolor = "#000000";
|
||||
set comment_bar_two_bgcolor = "#ffffff";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
|
||||
#NEWLAYER: classic/everblue
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Everblue with Greys";
|
||||
layerinfo redist_uniq = "classic/everblue";
|
||||
set body_bgcolor = "#0f0c6d";
|
||||
set main_bgcolor = "#ffffff";
|
||||
set main_fgcolor = "#000000";
|
||||
set headerbar_bgcolor = "#000000";
|
||||
set headerbar_fgcolor = "#ffffff";
|
||||
set metabar_bgcolor = "#aaaaaa";
|
||||
set metabar_fgcolor = "#000000";
|
||||
set page_title_color = "#000000";
|
||||
set page_subtitle_color = "#aaaaaa";
|
||||
set link_color = "#2f00f2";
|
||||
set vlink_color = "#060667";
|
||||
set alink_color = "#6691ff";
|
||||
set comment_bar_one_bgcolor = "#000000";
|
||||
set comment_bar_one_fgcolor = "#ffffff";
|
||||
set comment_bar_two_bgcolor = "#aaaaaa";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
|
||||
#NEWLAYER: classic/brownleather
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Brown Leather Coat";
|
||||
layerinfo redist_uniq = "classic/brownleather";
|
||||
set body_bgcolor = "#d2b48c";
|
||||
set main_bgcolor = "#ffebcd";
|
||||
set main_fgcolor = "#8b4513";
|
||||
set headerbar_bgcolor = "#d48050";
|
||||
set headerbar_fgcolor = "#ffffff";
|
||||
set metabar_bgcolor = "#d48014";
|
||||
set metabar_fgcolor = "#d48014";
|
||||
set page_title_color = "#d48014";
|
||||
set page_subtitle_color = "#ffe1a1";
|
||||
set link_color = "#000050";
|
||||
set vlink_color = "#867a55";
|
||||
set alink_color = "#fffab3";
|
||||
set comment_bar_one_bgcolor = "#d48014";
|
||||
set comment_bar_one_fgcolor = "#ffffff";
|
||||
set comment_bar_two_bgcolor = "#d48050";
|
||||
set comment_bar_two_fgcolor = "#ffffff";
|
||||
|
||||
#NEWLAYER: classic/bruise
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Bruise";
|
||||
layerinfo redist_uniq = "classic/bruise";
|
||||
set body_bgcolor = "#000000";
|
||||
set main_bgcolor = "#bcbcbc";
|
||||
set main_fgcolor = "#000000";
|
||||
set headerbar_bgcolor = "#1114a0";
|
||||
set headerbar_fgcolor = "#ffffff";
|
||||
set metabar_bgcolor = "#21c2f1";
|
||||
set metabar_fgcolor = "#ffffff";
|
||||
set page_title_color = "#1114a0";
|
||||
set page_subtitle_color = "#21c2f1";
|
||||
set link_color = "#0000cc";
|
||||
set vlink_color = "#000088";
|
||||
set alink_color = "#0000ff";
|
||||
set comment_bar_one_bgcolor = "#1114a0";
|
||||
set comment_bar_one_fgcolor = "#ffffff";
|
||||
set comment_bar_two_bgcolor = "#21c2f1";
|
||||
set comment_bar_two_fgcolor = "#ffffff";
|
||||
|
||||
#NEWLAYER: classic/ranchhand
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Ranch Hand";
|
||||
layerinfo redist_uniq = "classic/ranchhand";
|
||||
set body_bgcolor = "#2999c2";
|
||||
set main_bgcolor = "#cfe0ff";
|
||||
set main_fgcolor = "#000000";
|
||||
set headerbar_bgcolor = "#54442c";
|
||||
set headerbar_fgcolor = "#ffffff";
|
||||
set metabar_bgcolor = "#bababa";
|
||||
set metabar_fgcolor = "#000000";
|
||||
set page_title_color = "#9d995d";
|
||||
set page_subtitle_color = "#704400";
|
||||
set link_color = "#000050";
|
||||
set vlink_color = "#500050";
|
||||
set alink_color = "#6a20ff";
|
||||
set comment_bar_one_bgcolor = "#54442c";
|
||||
set comment_bar_one_fgcolor = "#ffffff";
|
||||
set comment_bar_two_bgcolor = "#bababa";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
|
||||
#NEWLAYER: classic/victim
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Victim";
|
||||
layerinfo redist_uniq = "classic/victim";
|
||||
set body_bgcolor = "#2cd0ff";
|
||||
set main_bgcolor = "#505050";
|
||||
set main_fgcolor = "#ffffff";
|
||||
set headerbar_bgcolor = "#166bac";
|
||||
set headerbar_fgcolor = "#ffffff";
|
||||
set metabar_bgcolor = "#2098f3";
|
||||
set metabar_fgcolor = "#ffffff";
|
||||
set page_title_color = "#26b6ff";
|
||||
set page_subtitle_color = "#353535";
|
||||
set link_color = "#000050";
|
||||
set vlink_color = "#500050";
|
||||
set alink_color = "#ff00c0";
|
||||
set comment_bar_one_bgcolor = "#166bac";
|
||||
set comment_bar_one_fgcolor = "#ffffff";
|
||||
set comment_bar_two_bgcolor = "#2098f3";
|
||||
set comment_bar_two_fgcolor = "#ffffff";
|
||||
|
||||
#NEWLAYER: classic/forest
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Forest";
|
||||
layerinfo redist_uniq = "classic/forest";
|
||||
set body_bgcolor = "#778e64";
|
||||
set main_bgcolor = "#9b9ba5";
|
||||
set main_fgcolor = "#000000";
|
||||
set headerbar_bgcolor = "#72784c";
|
||||
set headerbar_fgcolor = "#ffffff";
|
||||
set metabar_bgcolor = "#72781c";
|
||||
set metabar_fgcolor = "#ffffff";
|
||||
set page_title_color = "#a0ac62";
|
||||
set page_subtitle_color = "#73777a";
|
||||
set link_color = "#3811e1";
|
||||
set vlink_color = "#310cbb";
|
||||
set alink_color = "#4e7bef";
|
||||
set comment_bar_one_bgcolor = "#72784c";
|
||||
set comment_bar_one_fgcolor = "#ffffff";
|
||||
set comment_bar_two_bgcolor = "#72781c";
|
||||
set comment_bar_two_fgcolor = "#ffffff";
|
||||
|
||||
#NEWLAYER: classic/drone
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Drone";
|
||||
layerinfo redist_uniq = "classic/drone";
|
||||
set body_bgcolor = "#395f82";
|
||||
set main_bgcolor = "#f9fcfe";
|
||||
set main_fgcolor = "#000000";
|
||||
set headerbar_bgcolor = "#904094";
|
||||
set headerbar_fgcolor = "#ffffff";
|
||||
set metabar_bgcolor = "#f56efc";
|
||||
set metabar_fgcolor = "#ffffff";
|
||||
set page_title_color = "#ff93ff";
|
||||
set page_subtitle_color = "#eeeeff";
|
||||
set link_color = "#395f82";
|
||||
set vlink_color = "#395f82";
|
||||
set alink_color = "#5266ce";
|
||||
set comment_bar_one_bgcolor = "#904094";
|
||||
set comment_bar_one_fgcolor = "#ffffff";
|
||||
set comment_bar_two_bgcolor = "#f56efc";
|
||||
set comment_bar_two_fgcolor = "#ffffff";
|
||||
|
||||
#NEWLAYER: classic/lowercurtain
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Lower the Curtain";
|
||||
layerinfo redist_uniq = "classic/lowercurtain";
|
||||
set body_bgcolor = "#000000";
|
||||
set main_bgcolor = "#6b6b6b";
|
||||
set main_fgcolor = "#ffffff";
|
||||
set headerbar_bgcolor = "#363636";
|
||||
set headerbar_fgcolor = "#f0f5fb";
|
||||
set metabar_bgcolor = "#c6c6c6";
|
||||
set metabar_fgcolor = "#222222";
|
||||
set page_title_color = "#363636";
|
||||
set page_subtitle_color = "#c5c8ca";
|
||||
set link_color = "#000050";
|
||||
set vlink_color = "#500050";
|
||||
set alink_color = "#3314ba";
|
||||
set comment_bar_one_bgcolor = "#363636";
|
||||
set comment_bar_one_fgcolor = "#f0f5fb";
|
||||
set comment_bar_two_bgcolor = "#c6c6c6";
|
||||
set comment_bar_two_fgcolor = "#222222";
|
||||
|
||||
#NEWLAYER: classic/sunny
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Sunny Day";
|
||||
layerinfo redist_uniq = "classic/sunny";
|
||||
set body_bgcolor = "#55e0f9";
|
||||
set main_bgcolor = "#e38202";
|
||||
set main_fgcolor = "#ffffff";
|
||||
set headerbar_bgcolor = "#fff500";
|
||||
set headerbar_fgcolor = "#e38202";
|
||||
set metabar_bgcolor = "#fff5c5";
|
||||
set metabar_fgcolor = "#e38202";
|
||||
set page_title_color = "#efe052";
|
||||
set page_subtitle_color = "#ffba03";
|
||||
set link_color = "#df0d12";
|
||||
set vlink_color = "#ac1b25";
|
||||
set alink_color = "#fe3b3b";
|
||||
set comment_bar_one_bgcolor = "#fff500";
|
||||
set comment_bar_one_fgcolor = "#e38202";
|
||||
set comment_bar_two_bgcolor = "#fff5c5";
|
||||
set comment_bar_two_fgcolor = "#e38202";
|
||||
|
||||
#NEWLAYER: classic/valentine
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Be Mine";
|
||||
layerinfo redist_uniq = "classic/valentine";
|
||||
set body_bgcolor = "#6f104a";
|
||||
set main_bgcolor = "#f2bce9";
|
||||
set main_fgcolor = "#000000";
|
||||
set headerbar_bgcolor = "#ff37ff";
|
||||
set headerbar_fgcolor = "#ffffff";
|
||||
set metabar_bgcolor = "#df2096";
|
||||
set metabar_fgcolor = "#ffffff";
|
||||
set page_title_color = "#ae1774";
|
||||
set page_subtitle_color = "#df2096";
|
||||
set link_color = "#ffffff";
|
||||
set vlink_color = "#a51014";
|
||||
set alink_color = "#ed8188";
|
||||
set comment_bar_one_bgcolor = "#ff37ff";
|
||||
set comment_bar_one_fgcolor = "#ffffff";
|
||||
set comment_bar_two_bgcolor = "#df2096";
|
||||
set comment_bar_two_fgcolor = "#ffffff";
|
||||
|
||||
#NEWLAYER: classic/stripes
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Stripes";
|
||||
layerinfo redist_uniq = "classic/stripes";
|
||||
set body_bgcolor = "#ffffff";
|
||||
set main_bgcolor = "#ffffff";
|
||||
set main_fgcolor = "#000000";
|
||||
set headerbar_bgcolor = "#e7212a";
|
||||
set headerbar_fgcolor = "#ffffff";
|
||||
set metabar_bgcolor = "#ffffff";
|
||||
set metabar_fgcolor = "#000000";
|
||||
set page_title_color = "#ffffff";
|
||||
set page_subtitle_color = "#ffcfdc";
|
||||
set link_color = "#000050";
|
||||
set vlink_color = "#500050";
|
||||
set alink_color = "#ffafc1";
|
||||
set comment_bar_one_bgcolor = "#e7212a";
|
||||
set comment_bar_one_fgcolor = "#ffffff";
|
||||
set comment_bar_two_bgcolor = "#ffffff";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
BIN
livejournal/bin/upgrading/s2layers/cleansimple/cleansimple.jpg
Executable file
|
After Width: | Height: | Size: 20 KiB |
11
livejournal/bin/upgrading/s2layers/cleansimple/en.s2
Executable file
@@ -0,0 +1,11 @@
|
||||
# -*-s2-*-
|
||||
|
||||
layerinfo type = "i18n";
|
||||
layerinfo name = "English";
|
||||
layerinfo redist_uniq = "cleansimple/en";
|
||||
|
||||
set text_meta_music = "music";
|
||||
set text_meta_mood = "mood";
|
||||
|
||||
set text_post_comment = "Comment on this";
|
||||
set text_post_comment_friends = "Comment on this";
|
||||
932
livejournal/bin/upgrading/s2layers/cleansimple/layout.s2
Executable file
@@ -0,0 +1,932 @@
|
||||
# -*-s2-*-
|
||||
|
||||
layerinfo type = "layout";
|
||||
layerinfo name = "Clean and Simple";
|
||||
layerinfo redist_uniq = "cleansimple/layout";
|
||||
layerinfo author_name = "Martin Atkins";
|
||||
layerinfo previews = "cleansimple/cleansimple.jpg";
|
||||
|
||||
propgroup colors {
|
||||
property Color body_bgcolor {
|
||||
des = "Page border color";
|
||||
note = "If you set the border size to 'None', this won't show up.";
|
||||
s1color = "stronger_back";
|
||||
}
|
||||
property Color entry_bgcolor {
|
||||
des = "Background of entries";
|
||||
s1color = "page_back";
|
||||
}
|
||||
property Color entry_fgcolor {
|
||||
des = "Text color of entries";
|
||||
s1color = "page_text";
|
||||
}
|
||||
property Color meta_color {
|
||||
des = "Color of entry headings and meta-information";
|
||||
s1color = "page_text_em";
|
||||
}
|
||||
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 topbar_bgcolor {
|
||||
des = "Background color of titlebar and userpic";
|
||||
s1color = "strong_back";
|
||||
}
|
||||
property Color topbar_fgcolor {
|
||||
des = "Titlebar text color";
|
||||
s1color = "strong_text";
|
||||
}
|
||||
property Color navbar_bgcolor {
|
||||
des = "Background color of sidebar";
|
||||
s1color = "weak_back";
|
||||
}
|
||||
property Color navbar_fgcolor {
|
||||
des = "Sidebar text color";
|
||||
s1color = "weak_text";
|
||||
}
|
||||
property string opt_navbar_pos {
|
||||
des = "Side Navbar Position";
|
||||
values = "left|Left|right|Right";
|
||||
}
|
||||
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";
|
||||
}
|
||||
}
|
||||
set body_bgcolor = "#6666cc";
|
||||
set entry_bgcolor = "#ffffff";
|
||||
set entry_fgcolor = "#000000";
|
||||
set meta_color = "#c00000";
|
||||
set link_color = "#000050";
|
||||
set vlink_color = "#500050";
|
||||
set alink_color = "#00ffff";
|
||||
set topbar_bgcolor = "#c0c0ff";
|
||||
set topbar_fgcolor = "#000000";
|
||||
set navbar_bgcolor = "#eeeeff";
|
||||
set navbar_fgcolor = "#000000";
|
||||
set comment_bar_one_bgcolor = "#c0c0ff";
|
||||
set comment_bar_one_fgcolor = "#000000";
|
||||
set comment_bar_two_bgcolor = "#eeeeff";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
set comment_bar_screened_bgcolor = "#dddddd";
|
||||
set comment_bar_screened_fgcolor = "#000000";
|
||||
set tags_aware = true;
|
||||
|
||||
propgroup fonts {
|
||||
property use font_base;
|
||||
property use font_fallback;
|
||||
property string font_topbar_base {
|
||||
des = "Preferred font for top bar";
|
||||
note = "As with the main font, leave blank if you don't care.";
|
||||
}
|
||||
property string font_topbar_fallback {
|
||||
des = "Alternative font style for top bar";
|
||||
values = "sans-serif|Sans-serif|serif|Serif|cursive|Cursive|monospace|Monospaced|none|Use browser's default";
|
||||
}
|
||||
property string font_sidebar_base {
|
||||
des = "Preferred font for side navigation bar";
|
||||
note = "As with the main font, leave blank if you don't care.";
|
||||
}
|
||||
property string font_sidebar_fallback {
|
||||
des = "Alternative font style for side navigation bar";
|
||||
values = "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";
|
||||
|
||||
propgroup presentation {
|
||||
property string opt_daylines_style {
|
||||
des = "Style of Lines Around Day Headings";
|
||||
values = "solid|Solid|dashed|Dashed|dotted|Dotted|double|Double|hidden|Invisible";
|
||||
}
|
||||
property use page_recent_items;
|
||||
property use page_friends_items;
|
||||
property string opt_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;
|
||||
}
|
||||
set opt_navbar_pos = "left";
|
||||
set opt_daylines_style = "dashed";
|
||||
set opt_margin_size = "50px";
|
||||
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;
|
||||
}
|
||||
|
||||
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 = clean_url($*page_background_image) != "" ? "url($*page_background_image)" : "none";
|
||||
"""
|
||||
body {
|
||||
background: $*body_bgcolor $bgimg;
|
||||
color: $*entry_fgcolor;
|
||||
padding: $*opt_margin_size;
|
||||
margin: 0;
|
||||
""";
|
||||
css_fontspec($*font_base,$*font_fallback);
|
||||
"""
|
||||
}
|
||||
a:link {
|
||||
color: $*link_color;
|
||||
background: transparent;
|
||||
}
|
||||
a:visited {
|
||||
color: $*vlink_color;
|
||||
background: transparent;
|
||||
}
|
||||
a:active {
|
||||
color: $*alink_color;
|
||||
background: transparent;
|
||||
}
|
||||
img {
|
||||
vertical-align: absmiddle;
|
||||
}
|
||||
table {
|
||||
width: 100%;
|
||||
}
|
||||
pre {
|
||||
text-align: left;
|
||||
}
|
||||
#topbar {
|
||||
background: $*topbar_bgcolor none;
|
||||
color: $*topbar_fgcolor;
|
||||
""";
|
||||
css_fontspec($*font_topbar_base,$*font_topbar_fallback);
|
||||
"""
|
||||
}
|
||||
#topbar h1 {
|
||||
margin-top: 5px;
|
||||
margin-bottom: 0;
|
||||
text-align: center;
|
||||
font-size: 1.5em;
|
||||
}
|
||||
#topbar h2 {
|
||||
margin-top: 0;
|
||||
margin-bottom: 5px;
|
||||
text-align: center;
|
||||
font-size: 1.25em;
|
||||
}
|
||||
#navbar {
|
||||
background: $*navbar_bgcolor none;
|
||||
color: $*navbar_fgcolor;
|
||||
width: 25%;
|
||||
""";
|
||||
css_fontspec($*font_sidebar_base,$*font_sidebar_fallback);
|
||||
"""
|
||||
}
|
||||
#navbar ul {
|
||||
list-style: none;
|
||||
margin: 10px;
|
||||
}
|
||||
#navbar ul li {
|
||||
margin: 0;
|
||||
}
|
||||
#navbar ul li.active {
|
||||
font-weight: bold;
|
||||
}
|
||||
#navbar a:link, #navbar a:active, #navbar a:visited {
|
||||
background: $*navbar_bgcolor none;
|
||||
color: $*navbar_fgcolor;
|
||||
text-decoration: none;
|
||||
}
|
||||
#navbar a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
#userlinklist ul {
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
#mainstuff {
|
||||
width: 75%;
|
||||
background: $*entry_bgcolor none;
|
||||
color: $*entry_fgcolor;
|
||||
}
|
||||
#userpic {
|
||||
text-align: center;
|
||||
margin: 10px;
|
||||
}
|
||||
#userpic img {
|
||||
border: 2px solid $*topbar_bgcolor;
|
||||
background: $*topbar_bgcolor none;
|
||||
color: $*topbar_fgcolor;
|
||||
}
|
||||
#entries {
|
||||
margin: 10px;
|
||||
}
|
||||
#range {
|
||||
margin-bottom: 0.5em;
|
||||
}
|
||||
.day {
|
||||
border-top: 1px $*opt_daylines_style $*entry_fgcolor;
|
||||
clear: both;
|
||||
}
|
||||
.day h3 {
|
||||
border-bottom: 1px $*opt_daylines_style $*entry_fgcolor;
|
||||
padding: 2px;
|
||||
margin: 0;
|
||||
font-size: 1.1em;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
address {
|
||||
text-align: center;
|
||||
font-style: normal;
|
||||
font-size: 0.95em;
|
||||
}
|
||||
|
||||
/* entries */
|
||||
.entrytext {
|
||||
padding: 2px;
|
||||
text-align: justify;
|
||||
}
|
||||
.entry {
|
||||
clear: both;
|
||||
}
|
||||
.entrytext p, .entrytext ul, .entrytext ol, .entrytext table {
|
||||
margin-top: 0.5em;
|
||||
margin-bottom: 0.5em;
|
||||
}
|
||||
.entryheading {
|
||||
font-weight: bold;
|
||||
}
|
||||
.timestamp, .subject, .altposter {
|
||||
font-weight: bold;
|
||||
color: $*meta_color;
|
||||
background: $*entry_bgcolor;
|
||||
}
|
||||
.altposter a {
|
||||
color: $*meta_color;
|
||||
background: $*entry_bgcolor;
|
||||
text-decoration: underline;
|
||||
}
|
||||
.altposter img {
|
||||
border: 2px $*navbar_fgcolor solid;
|
||||
background: $*navbar_bgcolor none;
|
||||
color: $*navbar_fgcolor;
|
||||
}
|
||||
.talklinks {
|
||||
font-size: 0.75em;
|
||||
text-align: right;
|
||||
margin-bottom: 2px;
|
||||
clear: right;
|
||||
}
|
||||
.frienduserpic {
|
||||
border: 2px solid $*topbar_bgcolor;
|
||||
background: $*topbar_bgcolor none;
|
||||
color: $*topbar_fgcolor;
|
||||
}
|
||||
""";
|
||||
}
|
||||
|
||||
function Page::lay_viewspec_nav() {
|
||||
# Intentionally blank
|
||||
}
|
||||
function RecentPage::lay_viewspec_nav() {
|
||||
# FIXME: There is currently no decent way to i18nize this
|
||||
if ($.nav.forward_url != "" or $.nav.backward_url != "") {
|
||||
"<ul id=\"skiplinks\">";
|
||||
if ($.nav.forward_url != "") {
|
||||
println """<li><a href="$.nav.forward_url">Next</a></li>""";
|
||||
}
|
||||
if ($.nav.backward_url != "") {
|
||||
println """<li><a href="$.nav.backward_url">Previous</a></li>""";
|
||||
}
|
||||
"</ul>";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
# 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;
|
||||
}
|
||||
|
||||
function Page::print_linklist() {
|
||||
if (size $.linklist <= 0) {
|
||||
return;
|
||||
} elseif (not $*linklist_support) {
|
||||
return;
|
||||
}
|
||||
|
||||
var bool section_open = false;
|
||||
|
||||
println "<ul id='userlinklist'>";
|
||||
foreach var UserLink l ($.linklist) {
|
||||
if ($l.title) {
|
||||
if ($l.is_heading) {
|
||||
if ($section_open) {
|
||||
println "</ul></li>";
|
||||
}
|
||||
println """<li><span style="font-style: italic;">$l.title</span>\n<ul>""";
|
||||
$section_open = true;
|
||||
} else {
|
||||
println """<li><a href="$l.url">$l.title</a></li>""";
|
||||
}
|
||||
}
|
||||
}
|
||||
if ($section_open) {
|
||||
println "</ul></li>";
|
||||
}
|
||||
println "</ul>";
|
||||
}
|
||||
|
||||
|
||||
function Page::lay_print_navbar() {
|
||||
var string userpic;
|
||||
var Image up_img = $.journal.default_pic;
|
||||
if (defined $up_img) {
|
||||
$userpic = """<div id="userpic"><img border="0" src="$up_img.url" height="$up_img.height" width="$up_img.width" alt="" /></div>""";
|
||||
}
|
||||
var string website_name = $.journal.website_name ? $.journal.website_name : $*text_website_default_name;
|
||||
var string website;
|
||||
if ($.journal.website_url != "") {
|
||||
$website = """<li><a href="$.journal.website_url">$website_name</a></li>""";
|
||||
}
|
||||
|
||||
"""<td id="navbar" valign="top">
|
||||
|
||||
<ul id="viewlinks">
|
||||
""";
|
||||
|
||||
foreach var string v ($.views_order) {
|
||||
if ($v == $.view) {
|
||||
println """<li class="active">"""+
|
||||
$this->lay_view_name($v)+
|
||||
"""</li>""";
|
||||
} else {
|
||||
println """<li><a href="$.view_url{$v}">"""+
|
||||
$this->lay_view_name($v)+
|
||||
"""</a></li>""";
|
||||
}
|
||||
}
|
||||
|
||||
"""
|
||||
$website
|
||||
</ul>
|
||||
""";
|
||||
$this->lay_viewspec_nav();
|
||||
"$userpic";
|
||||
|
||||
$this->print_linklist();
|
||||
|
||||
"</td>";
|
||||
}
|
||||
|
||||
function Page::print ()
|
||||
{
|
||||
var string title = $this->title();
|
||||
|
||||
"""<html>\n<head>\n""";
|
||||
if ($*external_stylesheet) {
|
||||
println """<link rel="stylesheet" href="$.stylesheet_url" type="text/css" />""";
|
||||
} else {
|
||||
println """<style type="text/css">"""; print_stylesheet(); "</style>";
|
||||
}
|
||||
$this->print_head();
|
||||
"""<title>$title</title>
|
||||
</head>
|
||||
<body>
|
||||
<table border="0" cellpadding="0" cellspacing="0">
|
||||
<tr><td colspan="2" id="topbar" valign="top">
|
||||
""";
|
||||
|
||||
"<h1>$.journal.name</h1>";
|
||||
"<h2>" + $this->lay_viewspec_heading() + "</h2>";
|
||||
|
||||
"""
|
||||
</td></tr>
|
||||
|
||||
<tr>
|
||||
""";
|
||||
|
||||
if ($*opt_navbar_pos == "left") {
|
||||
$this->lay_print_navbar();
|
||||
}
|
||||
|
||||
"""<td id="mainstuff" valign="top">
|
||||
<div id="entries">
|
||||
""";
|
||||
|
||||
$this->print_body();
|
||||
|
||||
"""
|
||||
</div>
|
||||
|
||||
<address>"""; server_sig(); """</address>
|
||||
|
||||
</td>
|
||||
""";
|
||||
|
||||
if ($*opt_navbar_pos == "right") {
|
||||
$this->lay_print_navbar();
|
||||
}
|
||||
|
||||
"""</tr>
|
||||
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
""";
|
||||
}
|
||||
|
||||
function print_entry (Page p, Entry e, Color bgcolor, Color fgcolor, bool hide_text)
|
||||
{
|
||||
var string time = $e.time->time_format();
|
||||
if ($e.new_day) {
|
||||
"""<div class="day"><h3>"""+$e.time->date_format("long")+"</h3>";
|
||||
}
|
||||
"""<div class="entry" id="entry$e.itemid"><div class="entrytext">""";
|
||||
|
||||
if ($p.view == "entry" and $*show_entrynav_icons)
|
||||
{
|
||||
print "<div style='text-align: center'>";
|
||||
$e->print_linkbar();
|
||||
print "</div>";
|
||||
}
|
||||
|
||||
"""<span class="entryheading">""";
|
||||
|
||||
if ($p.view == "friends") {
|
||||
if ($e.poster.username != $e.journal.username) {
|
||||
"<span class=\"altposter\"><a href=\"";
|
||||
print get_url($e.poster,"userinfo");
|
||||
"\">"+$e.poster.username;
|
||||
"</a></span>, posting in ";
|
||||
}
|
||||
|
||||
"<a style=\"color: $fgcolor; background: $bgcolor; padding-left: 0.5em; padding-right: 0.5em;\"";
|
||||
" href=\""+get_url($e.journal,"userinfo")+"\">$e.journal.username</a> @ ";
|
||||
} else {
|
||||
if ($e.poster.username != $e.journal.username) {
|
||||
"<span class=\"altposter\">";
|
||||
if (defined $e.userpic) {
|
||||
"""<img src="$e.userpic.url" width="$e.userpic.width"
|
||||
height="$e.userpic.height" alt="" align="right" />""";
|
||||
}
|
||||
"<a href=\""+
|
||||
get_url($e.poster,"userinfo")+
|
||||
"\">$e.poster.username</a></span> @ ";
|
||||
}
|
||||
}
|
||||
"<span class=\"timestamp\">"+$e.time->time_format()+"</span>: ";
|
||||
|
||||
if ($e.security) {
|
||||
$e.security_icon->print();
|
||||
}
|
||||
if ($e.subject) {
|
||||
" <span class=\"subject\">$e.subject</span>";
|
||||
}
|
||||
println "</span>"+($e.subject != "" ? "<br />" : "");
|
||||
|
||||
if ($p.view == "friends" and defined $e.userpic) {
|
||||
"""<img src="$e.userpic.url" width="$e.userpic.width"
|
||||
style="color: $fgcolor; background: $bgcolor; border: 2px solid $bgcolor;"
|
||||
height="$e.userpic.height" alt="" align="right" class="frienduserpic" />""";
|
||||
}
|
||||
|
||||
if (not $hide_text) {
|
||||
print "$e.text<br /><br />";
|
||||
if (size $e.metadata) {
|
||||
"""<div class="currents">""";
|
||||
foreach var string k ($e.metadata) {
|
||||
var string text = $k;
|
||||
var string val = $e.metadata{$k};
|
||||
if ($k == "mood") {
|
||||
$text = $*text_meta_mood;
|
||||
} elseif ($k == "music") {
|
||||
$text = $*text_meta_music;
|
||||
}
|
||||
if ($k == "mood" and defined $e.mood_icon) {
|
||||
var Image i = $e.mood_icon;
|
||||
$val = "<img src='$i.url' width='$i.width' height='$i.height' align='absmiddle'> $val";
|
||||
}
|
||||
"""<div class="current$k"><strong>$text:</strong> $val</div>""";
|
||||
}
|
||||
"</div>\n";
|
||||
}
|
||||
if ($e.tags) {
|
||||
var int tcount = 0;
|
||||
"<strong>Tags:</strong> ";
|
||||
foreach var Tag t ($e.tags) {
|
||||
"""<a rel="tag" href="$t.url">$t.name</a>""";
|
||||
$tcount++;
|
||||
if ($tcount != size $e.tags) { ", "; }
|
||||
}
|
||||
"<br />";
|
||||
}
|
||||
}
|
||||
|
||||
$e.comments->print(); "\n";
|
||||
|
||||
"</div>";
|
||||
|
||||
if ($e.end_day) {
|
||||
"</div>";
|
||||
}
|
||||
}
|
||||
|
||||
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; }
|
||||
"""<div class="talklinks" clear="all">""";
|
||||
if ($.count > 0 or $.screened) {
|
||||
$this->print_readlink();
|
||||
" - ";
|
||||
}
|
||||
$this->print_postlink();
|
||||
"</div>";
|
||||
}
|
||||
|
||||
# This should really be provided in core
|
||||
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 ()
|
||||
{
|
||||
"""<p id="range">"""+$this->lay_range_text()+"""</p>""";
|
||||
foreach var Entry e ($.entries) {
|
||||
$this->print_entry($e);
|
||||
}
|
||||
}
|
||||
|
||||
function YearPage::print_year_links ()
|
||||
{
|
||||
"""<ul id="skiplinks">""";
|
||||
foreach var YearYear y ($.years) {
|
||||
if ($y.displayed) {
|
||||
println "<li class=\"active\">$y.year</span>";
|
||||
} else {
|
||||
println "<li><a href=\"$y.url\">$y.year</a></li>";
|
||||
}
|
||||
}
|
||||
"</ul>";
|
||||
|
||||
}
|
||||
|
||||
function YearPage::print_month (YearMonth m)
|
||||
{
|
||||
if (not $m.has_entries) { return; }
|
||||
"""<center><table border="0" cellpadding="4" cellspacing="0" style="margin-top: 10px; margin-bottom: 10px;">""";
|
||||
"""<tr align="center"><td colspan="7" bgcolor="$*topbar_bgcolor"><font color="$*topbar_fgcolor">""";
|
||||
|
||||
"<b>"; print $m->month_format(); """</b> (<a href="$m.url">...</a>)</font></td></tr>""";
|
||||
|
||||
"""<tr align="center" bgcolor="$*navbar_bgcolor">""";
|
||||
|
||||
foreach var int d (weekdays()) {
|
||||
"""<td><font color="$*navbar_fgcolor">"""; print $*lang_dayname_short[$d]; "</td>\n";
|
||||
}
|
||||
|
||||
"</tr>";
|
||||
|
||||
foreach var YearWeek w ($m.weeks) {
|
||||
$w->print();
|
||||
}
|
||||
|
||||
"</table></center>";
|
||||
}
|
||||
|
||||
function YearPage::lay_viewspec_nav() {
|
||||
$this->print_year_links();
|
||||
}
|
||||
|
||||
function YearPage::print_body() {
|
||||
"<h3>$.year</h3>";
|
||||
foreach var YearMonth m ($.months) {
|
||||
$this->print_month($m);
|
||||
}
|
||||
}
|
||||
|
||||
function YearWeek::print () {
|
||||
"<tr>";
|
||||
if ($.pre_empty) { "<td colspan='$.pre_empty'> </td>"; }
|
||||
foreach var YearDay d ($.days) {
|
||||
"""<td valign="top"><b><font size="-1">$d.day</font></b>""";
|
||||
if ($d.num_entries) {
|
||||
"""<center><a href="$d.url">$d.num_entries</a></center>""";
|
||||
} else {
|
||||
"<center> </center>";
|
||||
}
|
||||
"</td>";
|
||||
}
|
||||
if ($.post_empty) { "<td colspan='$.post_empty'> </td>"; }
|
||||
"</tr>";
|
||||
}
|
||||
|
||||
function DayPage::lay_viewspec_nav() {
|
||||
"""
|
||||
<ul id="skiplinks">
|
||||
<li><a href="$.prev_url">$*text_day_prev</a></li>
|
||||
<li><a href="$.next_url">$*text_day_next</a></li>
|
||||
</ul>
|
||||
""";
|
||||
}
|
||||
|
||||
function DayPage::print_body() {
|
||||
|
||||
"""<div class="day"><h3>""" + $.date->date_format("long") + "</h3>";
|
||||
|
||||
if (not $.has_entries) {
|
||||
println $*text_noentries_day;
|
||||
}
|
||||
|
||||
foreach var Entry e ($.entries) {
|
||||
$this->print_entry($e);
|
||||
}
|
||||
println "</div>";
|
||||
}
|
||||
|
||||
function EntryPage::print_body () {
|
||||
|
||||
set_handler("unscreen_comment_#", [
|
||||
[ "style_bgcolor", "cmtbar#", "$*comment_bar_one_bgcolor", ],
|
||||
[ "style_color", "cmtbar#", "$*comment_bar_one_fgcolor", ],
|
||||
]);
|
||||
set_handler("screen_comment_#", [
|
||||
[ "style_bgcolor", "cmtbar#", "$*comment_bar_screened_bgcolor", ],
|
||||
[ "style_color", "cmtbar#", "$*comment_bar_screened_fgcolor", ],
|
||||
]);
|
||||
|
||||
print_entry($this, $.entry, null Color, null Color, $.viewing_thread);
|
||||
|
||||
if ($.entry.comments.enabled and $.comment_pages.total_subitems > 0)
|
||||
{
|
||||
$this->print_multiform_start();
|
||||
"""<div class="day"><h3>Comments</h3></div>""";
|
||||
if ($.comment_pages.total_subitems > 0) {
|
||||
$.comment_pages->print();
|
||||
$this->print_comments($.comments);
|
||||
}
|
||||
if ($this.multiform_on) {
|
||||
"""<div class="day"><h3>Mass Action</h3></div>""";
|
||||
$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;
|
||||
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() : "<i>(Anonymous)</i>";
|
||||
var string sub_icon;
|
||||
if (defined $c.subject_icon) {
|
||||
$sub_icon = $c.subject_icon->as_string();
|
||||
}
|
||||
"<a name='$c.anchor'></a><div id='cmtbar$c.talkid' style='background-color: $background; color: $color; margin-top: 10px; width: 100%'>";
|
||||
"<table cellpadding='2' cellspacing='0' summary='0' style='width: 100%'><tr valign='top'>";
|
||||
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 "<td style='width: 102px'><img src='$c.userpic.url' width='$w' height='$h' alt='[User Picture]' /></td>";
|
||||
}
|
||||
|
||||
"<td style='width: 100%'><table style='width: 100%'><tr>";
|
||||
|
||||
### From, date, etc
|
||||
"<td align='left' style='width: 50%'>";
|
||||
print "<table>";
|
||||
print "<tr><th align='right'>From:</th><td>$poster</td></tr>\n";
|
||||
print "<tr><th align='right'>Date:</th><td style='white-space: nowrap'>";
|
||||
print $c.time->date_format("long") + " - " + $c.time->time_format() + "</td></tr>";
|
||||
if ($c.metadata{"poster_ip"}) { print "<tr><th align='right'>IP Address:</th><td>(" + $c.metadata{"poster_ip"} + ")</td></tr>"; }
|
||||
"</table></td>";
|
||||
|
||||
### Gadgets
|
||||
"<td align='right' style='width: 50%'>";
|
||||
if ($this.multiform_on) {
|
||||
" <label for='ljcomsel_$c.talkid'>$*text_multiform_check</label>";
|
||||
$c->print_multiform_check();
|
||||
}
|
||||
$c->print_linkbar();
|
||||
"</td></tr>";
|
||||
|
||||
### Subject / icon
|
||||
print "<tr valign='top'><td style='width: 50%'>";
|
||||
print (defined $c.subject_icon or $c.subject != "") ? "<h3>$c.subject_icon $c.subject</h3>" : "";
|
||||
print "</td>";
|
||||
|
||||
### Permalink
|
||||
print "<td style='width: 50%' align='right'><strong>(<a href='$c.permalink_url'>Link</a>)</strong></td></tr>";
|
||||
|
||||
print "</table></td></tr></table></div>";
|
||||
print "<div style='margin-left: 5px'>$c.text</div>";
|
||||
print "<div style='margin-top: 3px; font-size: smaller'>";
|
||||
if ($c.frozen) {
|
||||
print "(Replies frozen) ";
|
||||
} else {
|
||||
print "(<a href='$c.reply_url'>Reply to this</a>) ";
|
||||
}
|
||||
if ($c.parent_url != "") { "(<a href='$c.parent_url'>Parent</a>) "; }
|
||||
if ($c.thread_url != "") { "(<a href='$c.thread_url'>Thread</a>) "; }
|
||||
"</div>";
|
||||
}
|
||||
|
||||
function ReplyPage::print_body () {
|
||||
var string time = $.replyto.time->time_format();
|
||||
"""
|
||||
<div class="entry">
|
||||
<div class="entrytext">
|
||||
<span class="entryheading">
|
||||
""";
|
||||
|
||||
if (not $.entry.comments.enabled)
|
||||
{
|
||||
print "<span class='subject'>$*text_reply_nocomments_header</span></span><br />
|
||||
$*text_reply_nocomments</div></div>";
|
||||
return;
|
||||
}
|
||||
"<span style='padding-left: 0.5em; padding-right: 0.5em;'>";
|
||||
print defined $.replyto.poster ? $.replyto.poster->as_string() : "<i>(Anonymous)</i>";
|
||||
"</span> @ ";
|
||||
"<span class='timestamp'>$time</span>: ";
|
||||
|
||||
if ($.replyto.subject) {
|
||||
" <span class=\"subject\">$.replyto.subject</span>";
|
||||
}
|
||||
println "</span>"+($.replyto.subject ? "<br />" : "");
|
||||
|
||||
if (defined $.replyto.userpic) {
|
||||
"""<img src="$.replyto.userpic.url" width="$.replyto.userpic.width"
|
||||
style="border: 2px solid $*entry_fgcolor;"
|
||||
height="$.replyto.userpic.height" alt="" align="right" class="frienduserpic" />""";
|
||||
}
|
||||
|
||||
print $.replyto.text;
|
||||
|
||||
"""<div class="talklinks" clear="all"><a href='$.entry.comments.read_url'>Read Comments</a></div>""";
|
||||
|
||||
"</div>";
|
||||
|
||||
"""<div class="day"><h3>Reply</h3></div>""";
|
||||
$.form->print();
|
||||
|
||||
}
|
||||
|
||||
function print_theme_preview ()
|
||||
{
|
||||
print """
|
||||
<div style="background: $*body_bgcolor none; color: $*entry_fgcolor;
|
||||
padding-left: 50px; padding-right: 50px; padding-top: 10px;
|
||||
padding-bottom: 10px; margin: 0;">
|
||||
|
||||
<table border="0" cellpadding="0" cellspacing="0">
|
||||
<tr><td colspan="2" style="background: $*topbar_bgcolor none; color: $*topbar_fgcolor" valign="top">
|
||||
<h1 style="margin-top: 5px; margin-bottom: 5px; text-align: center; font-size: 1.5em;">John Doe</h1>
|
||||
<h2 style="margin-top: 0; margin-bottom: 5px; text-align: center; font-size: 1.25em;">Recent Entries</h2>
|
||||
</td></tr>
|
||||
<tr><td style="background: $*navbar_bgcolor none; color: $*navbar_fgcolor; width: 25%;" valign="top">
|
||||
<ul style="list-style: none; margin: 10px">
|
||||
<li style="margin: 0; font-weight: bold;">Recent Entries</li>
|
||||
<li><a style="background: $*navbar_bgcolor none; color: $*navbar_fgcolor;" href="#">Archive</a></li>
|
||||
<li><a style="background: $*navbar_bgcolor none; color: $*navbar_fgcolor;" href="#">Friends</a></li>
|
||||
<li><a style="background: $*navbar_bgcolor none; color: $*navbar_fgcolor;" href="#">User Info</a></li>
|
||||
</ul>
|
||||
</td><td style="width: 75%; background: $*entry_bgcolor none; color: $*entry_fgcolor" valign="top">
|
||||
<div style="margin: 10px;">
|
||||
<div style="border-top: 1px dashed $*entry_fgcolor; clear: both;">
|
||||
<h3 style="border-bottom: 1px dashed $*entry_fgcolor; padding: 2px; margin: 0; font-size: 1.1em; text-align: center;">December 17th, 2002</h3>
|
||||
<div style="clear: both;" id="entry2839"><div style="padding: 2px; text-align: justify">
|
||||
<span style="font-weight: bold;">
|
||||
<span style="font-weight: bold; color: $*meta_color; background: $*entry_bgcolor none;">06:42 pm</span>:
|
||||
<span style="font-weight: bold; color: $*meta_color; background: $*entry_bgcolor none;">Neque porro quisquam…</span>
|
||||
</span>
|
||||
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
|
||||
<div style="font-size: 0.75em; text-align: right; margin-bottom: 2px; clear: right;" >
|
||||
<a href="#" style="color: $*link_color;">2 Comments Posted</a> | <a href="#" style="color: $*vlink_color">Leave a comment</a></div>
|
||||
</div></div></div></div>
|
||||
</td></tr></table>
|
||||
</div>
|
||||
""";
|
||||
}
|
||||
420
livejournal/bin/upgrading/s2layers/cleansimple/themes.s2
Executable file
@@ -0,0 +1,420 @@
|
||||
#NEWLAYER: cleansimple/purpleblues
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Purples and Blues";
|
||||
layerinfo redist_uniq = "cleansimple/purpleblues";
|
||||
set body_bgcolor = "#660099";
|
||||
set entry_bgcolor = "#9966cc";
|
||||
set entry_fgcolor = "#ffff00";
|
||||
set meta_color = "#003399";
|
||||
set link_color = "#000050";
|
||||
set vlink_color = "#500050";
|
||||
set alink_color = "#00ffff";
|
||||
set topbar_bgcolor = "#c0c0ff";
|
||||
set topbar_fgcolor = "#000000";
|
||||
set navbar_bgcolor = "#eeeeff";
|
||||
set navbar_fgcolor = "#000000";
|
||||
set comment_bar_one_bgcolor = "#c0c0ff";
|
||||
set comment_bar_one_fgcolor = "#000000";
|
||||
set comment_bar_two_bgcolor = "#eeeeff";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
|
||||
#NEWLAYER: cleansimple/flesh
|
||||
layerinfo type = "theme";
|
||||
layerinfo name = "Flesh";
|
||||
layerinfo redist_uniq = "cleansimple/flesh";
|
||||
set body_bgcolor = "#eeeeff";
|
||||
set entry_bgcolor = "#ffffff";
|
||||
set entry_fgcolor = "#000000";
|
||||
set meta_color = "#ff0000";
|
||||
set link_color = "#000050";
|
||||
set vlink_color = "#500050";
|
||||
set alink_color = "#00ffff";
|
||||
set topbar_bgcolor = "#fa83d7";
|
||||
set topbar_fgcolor = "#000000";
|
||||
set navbar_bgcolor = "#f677ad";
|
||||
set navbar_fgcolor = "#000000";
|
||||
set comment_bar_one_bgcolor = "#fa83d7";
|
||||
set comment_bar_one_fgcolor = "#000000";
|
||||
set comment_bar_two_bgcolor = "#f677ad";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
|
||||
#NEWLAYER: cleansimple/shrinkvio
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Shrinking Violet";
|
||||
layerinfo redist_uniq = "cleansimple/shrinkvio";
|
||||
set body_bgcolor = "#ad22e7";
|
||||
set entry_bgcolor = "#ffffff";
|
||||
set entry_fgcolor = "#000000";
|
||||
set meta_color = "#381a45";
|
||||
set topbar_bgcolor = "#5d0383";
|
||||
set topbar_fgcolor = "#ffffff";
|
||||
set navbar_bgcolor = "#d9a1f1";
|
||||
set navbar_fgcolor = "#000000";
|
||||
set link_color = "#2e053f";
|
||||
set vlink_color = "#611627";
|
||||
set alink_color = "#ff00c0";
|
||||
set comment_bar_one_bgcolor = "#5d0383";
|
||||
set comment_bar_one_fgcolor = "#ffffff";
|
||||
set comment_bar_two_bgcolor = "#d9a1f1";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
|
||||
#NEWLAYER: cleansimple/pistmint
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Pistachio Mint";
|
||||
layerinfo redist_uniq = "cleansimple/pistmint";
|
||||
set body_bgcolor = "#133422";
|
||||
set entry_bgcolor = "#a7c4b4";
|
||||
set entry_fgcolor = "#000000";
|
||||
set meta_color = "#096d36";
|
||||
set topbar_bgcolor = "#096d36";
|
||||
set topbar_fgcolor = "#ffffff";
|
||||
set navbar_bgcolor = "#094f36";
|
||||
set navbar_fgcolor = "#000000";
|
||||
set link_color = "#8afabc";
|
||||
set vlink_color = "#1da65a";
|
||||
set alink_color = "#f9f5f5";
|
||||
set comment_bar_one_bgcolor = "#096d36";
|
||||
set comment_bar_one_fgcolor = "#ffffff";
|
||||
set comment_bar_two_bgcolor = "#094f36";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
|
||||
#NEWLAYER: cleansimple/mexicanfood
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Mexican Food";
|
||||
layerinfo redist_uniq = "cleansimple/mexicanfood";
|
||||
set body_bgcolor = "#ff0000";
|
||||
set entry_bgcolor = "#f8ff3e";
|
||||
set entry_fgcolor = "#f15601";
|
||||
set meta_color = "#f50701";
|
||||
set topbar_bgcolor = "#bdbf3e";
|
||||
set topbar_fgcolor = "#ff0000";
|
||||
set navbar_bgcolor = "#e15a18";
|
||||
set navbar_fgcolor = "#ffffff";
|
||||
set link_color = "#f49e08";
|
||||
set vlink_color = "#b05403";
|
||||
set alink_color = "#ff7405";
|
||||
set comment_bar_one_bgcolor = "#bdbf3e";
|
||||
set comment_bar_two_fgcolor = "#ff0000";
|
||||
set comment_bar_two_bgcolor = "#e15a18";
|
||||
set comment_bar_two_fgcolor = "#ffffff";
|
||||
|
||||
#NEWLAYER: cleansimple/ashfire
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Ash and Fire";
|
||||
layerinfo redist_uniq = "cleansimple/ashfire";
|
||||
set body_bgcolor = "#b5b5b5";
|
||||
set entry_bgcolor = "#ffb6af";
|
||||
set entry_fgcolor = "#000000";
|
||||
set meta_color = "#d90308";
|
||||
set topbar_bgcolor = "#e75454";
|
||||
set topbar_fgcolor = "#ffffff";
|
||||
set navbar_bgcolor = "#f06c88";
|
||||
set navbar_fgcolor = "#000000";
|
||||
set link_color = "#f70208";
|
||||
set vlink_color = "#b0161d";
|
||||
set alink_color = "#d70106";
|
||||
set comment_bar_one_bgcolor = "#e75454";
|
||||
set comment_bar_one_fgcolor = "#ffffff";
|
||||
set comment_bar_two_bgcolor = "#f06c88";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
|
||||
#NEWLAYER: cleansimple/desktop
|
||||
# for layout: 13 (cleansimple/layout)
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Classic Desktop";
|
||||
layerinfo redist_uniq = "cleansimple/desktop";
|
||||
set body_bgcolor = "#00545c";
|
||||
set entry_bgcolor = "#ffffff";
|
||||
set entry_fgcolor = "#000000";
|
||||
set meta_color = "#000000";
|
||||
set topbar_bgcolor = "#ff7b05";
|
||||
set topbar_fgcolor = "#ffeddd";
|
||||
set navbar_bgcolor = "#ffeddd";
|
||||
set navbar_fgcolor = "#000000";
|
||||
set link_color = "#000050";
|
||||
set vlink_color = "#500050";
|
||||
set alink_color = "#5a76ff";
|
||||
set comment_bar_one_bgcolor = "#ff7b05";
|
||||
set comment_bar_one_fgcolor = "#ffeddd";
|
||||
set comment_bar_two_bgcolor = "#ffeddd";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
|
||||
#NEWLAYER: cleansimple/satinhandshake
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Satin Handshake";
|
||||
layerinfo redist_uniq = "cleansimple/satinhandshake";
|
||||
set body_bgcolor = "#480c0c";
|
||||
set entry_bgcolor = "#d06464";
|
||||
set entry_fgcolor = "#00001d";
|
||||
set meta_color = "#000000";
|
||||
set topbar_bgcolor = "#aaaaaa";
|
||||
set topbar_fgcolor = "#000000";
|
||||
set navbar_bgcolor = "#9d0404";
|
||||
set navbar_fgcolor = "#000000";
|
||||
set link_color = "#000050";
|
||||
set vlink_color = "#500050";
|
||||
set alink_color = "#ff00c0";
|
||||
set comment_bar_one_bgcolor = "#aaaaaa";
|
||||
set comment_bar_one_fgcolor = "#000000";
|
||||
set comment_bar_two_bgcolor = "#9d0404";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
|
||||
#NEWLAYER: cleansimple/deepmelodrama
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Deep MeloDrama";
|
||||
layerinfo redist_uniq = "cleansimple/deepmelodrama";
|
||||
set body_bgcolor = "#872d89";
|
||||
set entry_bgcolor = "#719cff";
|
||||
set entry_fgcolor = "#8e48b2";
|
||||
set meta_color = "#8e48b2";
|
||||
set topbar_bgcolor = "#3794b3";
|
||||
set topbar_fgcolor = "#84b8e7";
|
||||
set navbar_bgcolor = "#65b2c1";
|
||||
set navbar_fgcolor = "#f5d3ff";
|
||||
set link_color = "#000050";
|
||||
set vlink_color = "#500050";
|
||||
set alink_color = "#dfd3ff";
|
||||
set comment_bar_one_bgcolor = "#3794b3";
|
||||
set comment_bar_one_fgcolor = "#84b8e7";
|
||||
set comment_bar_two_bgcolor = "#65b2c1";
|
||||
set comment_bar_two_fgcolor = "#f5d3ff";
|
||||
|
||||
#NEWLAYER: cleansimple/everwhite
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Everwhite";
|
||||
layerinfo redist_uniq = "cleansimple/everwhite";
|
||||
set body_bgcolor = "#ffffff";
|
||||
set entry_bgcolor = "#ffffff";
|
||||
set entry_fgcolor = "#000000";
|
||||
set meta_color = "#000000";
|
||||
set topbar_bgcolor = "#ffffff";
|
||||
set topbar_fgcolor = "#000000";
|
||||
set navbar_bgcolor = "#ffffff";
|
||||
set navbar_fgcolor = "#000000";
|
||||
set link_color = "#e60000";
|
||||
set vlink_color = "#c10602";
|
||||
set alink_color = "#ff0600";
|
||||
set comment_bar_one_bgcolor = "#ffffff";
|
||||
set comment_bar_one_fgcolor = "#000000";
|
||||
set comment_bar_two_bgcolor = "#ffffff";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
|
||||
#NEWLAYER: cleansimple/everblue
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Everblue with Greys";
|
||||
layerinfo redist_uniq = "cleansimple/everblue";
|
||||
set body_bgcolor = "#0f0c6d";
|
||||
set entry_bgcolor = "#ffffff";
|
||||
set entry_fgcolor = "#000000";
|
||||
set meta_color = "#000000";
|
||||
set topbar_bgcolor = "#000000";
|
||||
set topbar_fgcolor = "#ffffff";
|
||||
set navbar_bgcolor = "#aaaaaa";
|
||||
set navbar_fgcolor = "#000000";
|
||||
set link_color = "#2f00f2";
|
||||
set vlink_color = "#060667";
|
||||
set alink_color = "#6691ff";
|
||||
set comment_bar_one_bgcolor = "#000000";
|
||||
set comment_bar_one_fgcolor = "#ffffff";
|
||||
set comment_bar_two_bgcolor = "#aaaaaa";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
|
||||
#NEWLAYER: cleansimple/brownleather
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Brown Leather Coat";
|
||||
layerinfo redist_uniq = "cleansimple/brownleather";
|
||||
set body_bgcolor = "#d2b48c";
|
||||
set entry_bgcolor = "#ffebcd";
|
||||
set entry_fgcolor = "#8b4513";
|
||||
set meta_color = "#000000";
|
||||
set topbar_bgcolor = "#d48014";
|
||||
set topbar_fgcolor = "#ffffff";
|
||||
set navbar_bgcolor = "#ffe1a1";
|
||||
set navbar_fgcolor = "#000000";
|
||||
set link_color = "#000050";
|
||||
set vlink_color = "#867a55";
|
||||
set alink_color = "#fffab3";
|
||||
set comment_bar_one_bgcolor = "#d48014";
|
||||
set comment_bar_one_fgcolor = "#ffffff";
|
||||
set comment_bar_two_bgcolor = "#ffe1a1";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
|
||||
#NEWLAYER: cleansimple/bruise
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Bruise";
|
||||
layerinfo redist_uniq = "cleansimple/bruise";
|
||||
set body_bgcolor = "#000000";
|
||||
set entry_bgcolor = "#bcbcbc";
|
||||
set entry_fgcolor = "#000000";
|
||||
set meta_color = "#000000";
|
||||
set topbar_bgcolor = "#1114a0";
|
||||
set topbar_fgcolor = "#ffffff";
|
||||
set navbar_bgcolor = "#21c2f1";
|
||||
set navbar_fgcolor = "#0000ff";
|
||||
set link_color = "#0000cc";
|
||||
set vlink_color = "#000088";
|
||||
set alink_color = "#0000ff";
|
||||
set comment_bar_one_bgcolor = "#1114a0";
|
||||
set comment_bar_one_fgcolor = "#ffffff";
|
||||
set comment_bar_two_bgcolor = "#21c2f1";
|
||||
set comment_bar_two_fgcolor = "#0000ff";
|
||||
|
||||
#NEWLAYER: cleansimple/ranchhand
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Ranch Hand";
|
||||
layerinfo redist_uniq = "cleansimple/ranchhand";
|
||||
set body_bgcolor = "#2999c2";
|
||||
set entry_bgcolor = "#cfe0ff";
|
||||
set entry_fgcolor = "#000000";
|
||||
set meta_color = "#060667";
|
||||
set topbar_bgcolor = "#54442c";
|
||||
set topbar_fgcolor = "#ffffff";
|
||||
set navbar_bgcolor = "#704400";
|
||||
set navbar_fgcolor = "#bababa";
|
||||
set link_color = "#000050";
|
||||
set vlink_color = "#500050";
|
||||
set alink_color = "#6a20ff";
|
||||
set comment_bar_one_bgcolor = "#54442c";
|
||||
set comment_bar_one_fgcolor = "#ffffff";
|
||||
set comment_bar_two_bgcolor = "#704400";
|
||||
set comment_bar_two_fgcolor = "#bababa";
|
||||
|
||||
#NEWLAYER: cleansimple/victim
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Victim";
|
||||
layerinfo redist_uniq = "cleansimple/victim";
|
||||
set body_bgcolor = "#2cd0ff";
|
||||
set entry_bgcolor = "#505050";
|
||||
set entry_fgcolor = "#ffffff";
|
||||
set meta_color = "#000000";
|
||||
set topbar_bgcolor = "#166bac";
|
||||
set topbar_fgcolor = "#ffffff";
|
||||
set navbar_bgcolor = "#353535";
|
||||
set navbar_fgcolor = "#ffffff";
|
||||
set link_color = "#000050";
|
||||
set vlink_color = "#500050";
|
||||
set alink_color = "#ff00c0";
|
||||
set comment_bar_one_bgcolor = "#166bac";
|
||||
set comment_bar_one_fgcolor = "#ffffff";
|
||||
set comment_bar_two_bgcolor = "#353535";
|
||||
set comment_bar_two_fgcolor = "#ffffff";
|
||||
|
||||
#NEWLAYER: cleansimple/forest
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Forest";
|
||||
layerinfo redist_uniq = "cleansimple/forest";
|
||||
set body_bgcolor = "#778e64";
|
||||
set entry_bgcolor = "#9b9ba5";
|
||||
set entry_fgcolor = "#000000";
|
||||
set meta_color = "#ffffff";
|
||||
set topbar_bgcolor = "#72784c";
|
||||
set topbar_fgcolor = "#ffffff";
|
||||
set navbar_bgcolor = "#73777a";
|
||||
set navbar_fgcolor = "#000000";
|
||||
set link_color = "#3811e1";
|
||||
set vlink_color = "#310cbb";
|
||||
set alink_color = "#4e7bef";
|
||||
set comment_bar_one_bgcolor = "#72784c";
|
||||
set comment_bar_one_fgcolor = "#ffffff";
|
||||
set comment_bar_two_bgcolor = "#73777a";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
|
||||
#NEWLAYER: cleansimple/drone
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Drone";
|
||||
layerinfo redist_uniq = "cleansimple/drone";
|
||||
set body_bgcolor = "#395f82";
|
||||
set entry_bgcolor = "#f9fcfe";
|
||||
set entry_fgcolor = "#000000";
|
||||
set meta_color = "#000000";
|
||||
set topbar_bgcolor = "#904094";
|
||||
set topbar_fgcolor = "#ffffff";
|
||||
set navbar_bgcolor = "#eeeeff";
|
||||
set navbar_fgcolor = "#000000";
|
||||
set link_color = "#395f82";
|
||||
set vlink_color = "#395f82";
|
||||
set alink_color = "#5266ce";
|
||||
set comment_bar_one_bgcolor = "#904094";
|
||||
set comment_bar_one_fgcolor = "#ffffff";
|
||||
set comment_bar_two_bgcolor = "#eeeeff";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
|
||||
#NEWLAYER: cleansimple/lowercurtain
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Lower the Curtain";
|
||||
layerinfo redist_uniq = "cleansimple/lowercurtain";
|
||||
set body_bgcolor = "#000000";
|
||||
set entry_bgcolor = "#6b6b6b";
|
||||
set entry_fgcolor = "#ffffff";
|
||||
set meta_color = "#ffffff";
|
||||
set topbar_bgcolor = "#363636";
|
||||
set topbar_fgcolor = "#f0f5fb";
|
||||
set navbar_bgcolor = "#c5c8ca";
|
||||
set navbar_fgcolor = "#000000";
|
||||
set link_color = "#000050";
|
||||
set vlink_color = "#500050";
|
||||
set alink_color = "#3314ba";
|
||||
set comment_bar_one_bgcolor = "#363636";
|
||||
set comment_bar_one_fgcolor = "#f0f5fb";
|
||||
set comment_bar_two_bgcolor = "#c5c8ca";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
|
||||
#NEWLAYER: cleansimple/sunny
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Sunny Day";
|
||||
layerinfo redist_uniq = "cleansimple/sunny";
|
||||
set body_bgcolor = "#55e0f9";
|
||||
set entry_bgcolor = "#e38202";
|
||||
set entry_fgcolor = "#ffffff";
|
||||
set meta_color = "#000000";
|
||||
set topbar_bgcolor = "#ffba03";
|
||||
set topbar_fgcolor = "#ffffff";
|
||||
set navbar_bgcolor = "#ffba55";
|
||||
set navbar_fgcolor = "#ffffff";
|
||||
set link_color = "#df0d12";
|
||||
set vlink_color = "#ac1b25";
|
||||
set alink_color = "#fe3b3b";
|
||||
set comment_bar_one_bgcolor = "#ffba03";
|
||||
set comment_bar_one_fgcolor = "#ffffff";
|
||||
set comment_bar_two_bgcolor = "#ffba55";
|
||||
set comment_bar_two_fgcolor = "#ffffff";
|
||||
|
||||
#NEWLAYER: cleansimple/valentine
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Be Mine";
|
||||
layerinfo redist_uniq = "cleansimple/valentine";
|
||||
set body_bgcolor = "#6f104a";
|
||||
set entry_bgcolor = "#f2bce9";
|
||||
set entry_fgcolor = "#000000";
|
||||
set meta_color = "#ff24ab";
|
||||
set topbar_bgcolor = "#ff37ff";
|
||||
set topbar_fgcolor = "#ffffff";
|
||||
set navbar_bgcolor = "#df2096";
|
||||
set navbar_fgcolor = "#000000";
|
||||
set link_color = "#ffffff";
|
||||
set vlink_color = "#a51014";
|
||||
set alink_color = "#ed8188";
|
||||
set comment_bar_one_bgcolor = "#ff37ff";
|
||||
set comment_bar_one_fgcolor = "#ffffff";
|
||||
set comment_bar_two_bgcolor = "#df2096";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
|
||||
#NEWLAYER: cleansimple/stripes
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Stripes";
|
||||
layerinfo redist_uniq = "cleansimple/stripes";
|
||||
set body_bgcolor = "#ffffff";
|
||||
set entry_bgcolor = "#ffffff";
|
||||
set entry_fgcolor = "#000000";
|
||||
set meta_color = "#ff0000";
|
||||
set topbar_bgcolor = "#e7212a";
|
||||
set topbar_fgcolor = "#ffffff";
|
||||
set navbar_bgcolor = "#ffcfdc";
|
||||
set navbar_fgcolor = "#000000";
|
||||
set link_color = "#000050";
|
||||
set vlink_color = "#500050";
|
||||
set alink_color = "#ffafc1";
|
||||
set comment_bar_one_bgcolor = "#e7212a";
|
||||
set comment_bar_one_fgcolor = "#ffffff";
|
||||
set comment_bar_two_bgcolor = "#ffcfdc";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
2020
livejournal/bin/upgrading/s2layers/core1.s2
Executable file
BIN
livejournal/bin/upgrading/s2layers/digitalmultiplex/digitalmultiplex.jpg
Executable file
|
After Width: | Height: | Size: 26 KiB |
10
livejournal/bin/upgrading/s2layers/digitalmultiplex/en.s2
Executable file
@@ -0,0 +1,10 @@
|
||||
# -*-s2-*-
|
||||
|
||||
layerinfo type = "i18n";
|
||||
layerinfo name = "English";
|
||||
layerinfo redist_uniq = "digitalmultiplex/en";
|
||||
|
||||
set text_meta_music = "Music";
|
||||
set text_meta_mood = "Mood";
|
||||
|
||||
set text_sidebar_link_separator = " » ";
|
||||
1379
livejournal/bin/upgrading/s2layers/digitalmultiplex/layout.s2
Executable file
17
livejournal/bin/upgrading/s2layers/generator/en.s2
Executable file
@@ -0,0 +1,17 @@
|
||||
# -*-s2-*-
|
||||
|
||||
layerinfo type = "i18n";
|
||||
layerinfo name = "English";
|
||||
layerinfo redist_uniq = "generator/en";
|
||||
|
||||
set text_meta_music = "music";
|
||||
set text_meta_mood = "mood";
|
||||
|
||||
set text_permalink = "link";
|
||||
|
||||
set text_post_comment = "post comment";
|
||||
set text_post_comment_friends = "post comment";
|
||||
|
||||
set text_read_comments = "1 comment // # comments";
|
||||
set text_read_comments_friends = "1 comment // # comments";
|
||||
|
||||
BIN
livejournal/bin/upgrading/s2layers/generator/generator.jpg
Executable file
|
After Width: | Height: | Size: 9.9 KiB |
945
livejournal/bin/upgrading/s2layers/generator/layout.s2
Executable file
@@ -0,0 +1,945 @@
|
||||
# -*-s2-*-
|
||||
layerinfo type = "layout";
|
||||
layerinfo name = "Generator";
|
||||
layerinfo redist_uniq = "generator/layout";
|
||||
layerinfo previews = "generator/generator.jpg";
|
||||
|
||||
propgroup colors {
|
||||
property Color entry_back {
|
||||
des = "Entry background";
|
||||
s1color = "page_back";
|
||||
}
|
||||
property Color entry_text {
|
||||
des = "Entry text color";
|
||||
s1color = "page_text";
|
||||
}
|
||||
property Color page_link {
|
||||
des = "Link color";
|
||||
s1color = "page_link";
|
||||
}
|
||||
property Color page_vlink {
|
||||
des = "Visited link color";
|
||||
s1color = "page_vlink";
|
||||
}
|
||||
property Color page_alink {
|
||||
des = "Active link color";
|
||||
s1color = "page_alink";
|
||||
}
|
||||
property Color page_back {
|
||||
des = "Page background color (and around userpics)";
|
||||
s1color = "strong_back";
|
||||
}
|
||||
property Color stronger_back {
|
||||
des = "Background color for the bar above entries";
|
||||
s1color = "strong_back";
|
||||
}
|
||||
property Color stronger_text {
|
||||
des = "Text color for the bar above entries";
|
||||
s1color = "stronger_text";
|
||||
}
|
||||
property Color weak_back {
|
||||
des = "Background color for the bar below entries";
|
||||
s1color = "weak_back";
|
||||
}
|
||||
property Color weak_text {
|
||||
des = "Text color for the bar below entries";
|
||||
s1color = "weak_text";
|
||||
}
|
||||
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";
|
||||
}
|
||||
}
|
||||
|
||||
propgroup fonts {
|
||||
property use font_base;
|
||||
property use font_fallback;
|
||||
}
|
||||
|
||||
propgroup presentation {
|
||||
property use page_recent_items;
|
||||
property use page_friends_items;
|
||||
|
||||
property int box_width {
|
||||
des = "Box width (pixels)";
|
||||
}
|
||||
|
||||
property use view_entry_disabled;
|
||||
property use use_shared_pic;
|
||||
property use comment_userpic_style;
|
||||
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 external_stylesheet;
|
||||
property use linklist_support;
|
||||
}
|
||||
|
||||
propgroup text {
|
||||
property use text_post_comment;
|
||||
property use text_read_comments;
|
||||
property use text_post_comment_friends;
|
||||
property use text_read_comments_friends;
|
||||
property use text_meta_music;
|
||||
property use text_meta_mood;
|
||||
|
||||
property string text_website {
|
||||
des = "The label for the 'website' field";
|
||||
noui = 1;
|
||||
}
|
||||
}
|
||||
|
||||
# Set default colors
|
||||
set entry_back = "#ffffff";
|
||||
set entry_text = "#000000";
|
||||
set page_link = "#0000ff";
|
||||
set page_vlink = "#0000ff";
|
||||
set page_alink = "#00ffff";
|
||||
set page_back = "#2d4f89";
|
||||
set stronger_back = "#000000";
|
||||
set stronger_text = "#ffffff";
|
||||
set weak_back = "#aaaaaa";
|
||||
set weak_text = "#000000";
|
||||
set comment_bar_one_bgcolor = "#aaaaaa";
|
||||
set comment_bar_one_fgcolor = "#000000";
|
||||
set comment_bar_two_bgcolor = "#dddddd";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
set comment_bar_screened_bgcolor = "#5f6f99";
|
||||
set comment_bar_screened_fgcolor = "#000000";
|
||||
|
||||
set box_width = 600;
|
||||
set show_entrynav_icons = true;
|
||||
set page_background_image = "";
|
||||
|
||||
set font_base = "Verdana";
|
||||
set font_fallback = "sans-serif";
|
||||
|
||||
# Customize the view names to be short and lowercase
|
||||
# (Sorry translators, you'll have to do these again - keep them short!)
|
||||
set text_view_recent = "entries";
|
||||
set text_view_friends = "friends";
|
||||
set text_view_archive = "archive";
|
||||
set text_view_userinfo = "userinfo";
|
||||
|
||||
set tags_aware = true;
|
||||
|
||||
set text_website = "website";
|
||||
|
||||
function print_stylesheet () {
|
||||
print clean_url($*page_background_image) != "" ? "body { background-image: url($*page_background_image); }" : "";
|
||||
"""body, td {
|
||||
""";
|
||||
if ($*font_base != "" or $*font_fallback != "none") {
|
||||
"font-family: ";
|
||||
if ($*font_base != "") {
|
||||
"\"$*font_base\"";
|
||||
if ($*font_fallback != "none") {
|
||||
", ";
|
||||
}
|
||||
}
|
||||
if ($*font_fallback != "none") {
|
||||
print $*font_fallback;
|
||||
}
|
||||
";\n";
|
||||
}
|
||||
"""font-size: 10pt;
|
||||
}
|
||||
tt, pre {
|
||||
font-family: monospace;
|
||||
}
|
||||
a {
|
||||
text-decoration: none;
|
||||
}
|
||||
a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
.shadowed {
|
||||
font-size: 8pt;
|
||||
background: $*weak_back;
|
||||
}
|
||||
.meta {
|
||||
font-size: 8pt;
|
||||
}
|
||||
.index {
|
||||
font-size: 8pt;
|
||||
}
|
||||
.caption, .index {
|
||||
color: $*stronger_text;
|
||||
}
|
||||
.comments {
|
||||
font-size: 8pt;
|
||||
}
|
||||
|
||||
""";
|
||||
}
|
||||
|
||||
function Page::lay_top_userpic () {
|
||||
var Image up_img = $.journal.default_pic;
|
||||
if (defined $up_img) {
|
||||
"""<td><table cellpadding="2" bgcolor="$*entry_back" cellspacing="0" border="0" summary="">
|
||||
<tr><td bgcolor="$*stronger_back" align="center"><img border="0" src="$up_img.url" height="$up_img.height" width="$up_img.width" alt=""></td></tr>
|
||||
</table></td>
|
||||
""";
|
||||
}
|
||||
}
|
||||
function FriendsPage::lay_top_userpic () { }
|
||||
|
||||
function Page::print_linklist() {
|
||||
if (size $.linklist <= 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
println """
|
||||
<p>
|
||||
<table width='$*box_width' cellpadding='2' cellspacing='0'
|
||||
border='0'
|
||||
summary=''>
|
||||
<tr><td bgcolor='$*stronger_back' align='center'>
|
||||
<table width='100%' cellpadding='3' cellspacing='0'
|
||||
border='0'
|
||||
summary=''>
|
||||
<tr class='caption'>
|
||||
<td class='caption' align='left'><b>Links</b></td>
|
||||
</tr></table>
|
||||
<table width='100%' cellpadding='3' cellspacing='0'
|
||||
border='0'
|
||||
summary=''>
|
||||
<tr class='shadowed'>
|
||||
<td align='center'>
|
||||
<table cellspacing='5'
|
||||
cellpadding='0'
|
||||
border='0'
|
||||
summary=''>
|
||||
""";
|
||||
var bool section_open = false;
|
||||
if (not $.linklist[0].is_heading) {
|
||||
println """<tr><td class="meta">[</td><td class="meta" align="right"><b>Links:</b></td><td class="meta" align="center">|</td><td class="meta">""";
|
||||
$section_open = true;
|
||||
}
|
||||
foreach var UserLink l ($.linklist) {
|
||||
if ($l.title) {
|
||||
if ($l.is_heading) {
|
||||
if ($section_open) {
|
||||
println """</td><td class="meta">]</td></tr>""";
|
||||
}
|
||||
println """<tr><td class="meta">[</td><td class="meta" align="right"><b>$l.title</b></td><td class="meta" align="center">|</td><td class="meta">""";
|
||||
$section_open = true;
|
||||
} else {
|
||||
println """<a href="$l.url">$l.title</a> """;
|
||||
}
|
||||
}
|
||||
}
|
||||
println """</td><td class="meta">]</td></tr>""";
|
||||
|
||||
"</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr></table>
|
||||
</p>
|
||||
";
|
||||
}
|
||||
|
||||
function Page::print ()
|
||||
{
|
||||
var string title = $this->title();
|
||||
|
||||
var string website_name = $.journal.website_name ? $.journal.website_name : $*text_website_default_name;
|
||||
var string website;
|
||||
if ($.journal.website_url != "") {
|
||||
$website = """<tr><td class="meta">[</td>
|
||||
<td class="meta" align="right"><b>$*text_website</b></td>
|
||||
<td class="meta" align="center">|</td>
|
||||
<td class="meta" align="left"><a href="$.journal.website_url">$website_name</a></td>
|
||||
<td class="meta">]</td></tr>""";
|
||||
}
|
||||
|
||||
var string links;
|
||||
var bool firstlink = true;
|
||||
foreach var string v ($.views_order) {
|
||||
if ($firstlink == false) {
|
||||
$links = "$links|";
|
||||
}
|
||||
else {
|
||||
$firstlink = false;
|
||||
}
|
||||
$links = $links + ($.view == $v ?
|
||||
"<b>"+lang_viewname($v)+"</b>" :
|
||||
"<a class='index' href='$.view_url{$v}'>"+lang_viewname($v)+"</a>");
|
||||
}
|
||||
|
||||
"""<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">\n<html>\n<head>\n""";
|
||||
|
||||
if ($*external_stylesheet) {
|
||||
println """<link rel="stylesheet" href="$.stylesheet_url" type="text/css" />""";
|
||||
} else {
|
||||
println """<style type="text/css">"""; print_stylesheet(); "</style>";
|
||||
}
|
||||
$this->print_head();
|
||||
|
||||
"""<title>$title</title>
|
||||
</head>
|
||||
<body bgcolor="$*page_back" text="$*entry_text" link="$*page_link" vlink="$*page_vlink" alink="$*page_alink">
|
||||
<div align="center">
|
||||
<table width="$*box_width" cellpadding="2" cellspacing="0"
|
||||
border="0"
|
||||
summary="">
|
||||
<tr><td bgcolor="$*stronger_back" align="center">
|
||||
<table width="100%" cellpadding="3" cellspacing="0"
|
||||
border="0"
|
||||
summary="">
|
||||
<tr class="caption">
|
||||
<td class="caption" align="left"><b>$title</b></td>
|
||||
<td class="index" align="right">[$links]</td>
|
||||
</tr></table>
|
||||
<table width="100%" cellpadding="3" cellspacing="0"
|
||||
border="0"
|
||||
summary="">
|
||||
<tr>
|
||||
<td class="shadowed" align="center">
|
||||
<table cellspacing="5"
|
||||
cellpadding="0"
|
||||
border="0"
|
||||
summary="" style="margin-left: auto; margin-right: auto;">
|
||||
<tr>""";
|
||||
$this->lay_top_userpic();
|
||||
|
||||
var string sitename_lc = $*SITENAMESHORT->lower();
|
||||
|
||||
"""<td>
|
||||
<div align="center"><b>$.journal.name</b></div><p>
|
||||
<table cellspacing="0"
|
||||
cellpadding="0"
|
||||
border="0"
|
||||
summary="">
|
||||
$website
|
||||
<tr>
|
||||
<td class="meta">[</td>
|
||||
<td class="meta" align="right"><b>"""+lang_viewname("userinfo")+"""</b></td>
|
||||
<td class="meta" align="center">|</td>
|
||||
<td class="meta" align="left"><a href="$.view_url{"userinfo"}">$sitename_lc userinfo</a></td>
|
||||
<td class="meta">]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="meta">[</td>
|
||||
<td class="meta" align="right"><b>"""+lang_viewname("archive")+"""</b></td>
|
||||
<td class="meta" align="center">|</td>
|
||||
<td class="meta" align="left"><a href="$.view_url{"archive"}">journal archive</a></td>
|
||||
<td class="meta">]</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr></table>
|
||||
</td></tr>
|
||||
</table>
|
||||
|
||||
""";
|
||||
if (size $.linklist > 0 and $*linklist_support) {
|
||||
$this->print_linklist();
|
||||
}
|
||||
"""
|
||||
|
||||
<p>
|
||||
""";
|
||||
$this->print_body();
|
||||
|
||||
"""
|
||||
</div>
|
||||
<p>
|
||||
</body>
|
||||
</html>
|
||||
""";
|
||||
}
|
||||
|
||||
function print_entry (Page p, Entry e, Color bgcolor, Color fgcolor, bool hide_text)
|
||||
{
|
||||
var string datetime;
|
||||
$datetime = $e.time->date_format("med")+"|<b>"
|
||||
+ $e.time->time_format() + "</b>";
|
||||
|
||||
"""
|
||||
<table width="$*box_width" cellpadding="2" cellspacing="0" border="0" summary="" class="entrybox">
|
||||
<tr align='left'>
|
||||
<td bgcolor="$*stronger_back" align="center">
|
||||
<table width="100%" cellpadding="5" cellspacing="0" border="0" summary="">
|
||||
<tr align='left'>
|
||||
<td class="caption">""";
|
||||
|
||||
if ($e.security != "") {
|
||||
$e.security_icon->print();
|
||||
}
|
||||
|
||||
""" $e.subject</td>
|
||||
<td align="right" class="index">[$datetime]</td>
|
||||
</tr>
|
||||
<tr align='left'>
|
||||
<td colspan="2" bgcolor="$*entry_back">
|
||||
""";
|
||||
|
||||
if ($p.view == "entry" and $*show_entrynav_icons)
|
||||
{
|
||||
print "<div style='text-align: center'>";
|
||||
$e->print_linkbar();
|
||||
print "</div>";
|
||||
}
|
||||
|
||||
if ($p.view == "friends" or
|
||||
$p.journal_type == "C" or
|
||||
$e.poster.username != $e.journal.username)
|
||||
{
|
||||
var UserLite linkto;
|
||||
var bool showposter;
|
||||
if ($p.view == "recent" and $p.journal_type == "C") {
|
||||
$linkto = $e.poster;
|
||||
$showposter = false;
|
||||
} else {
|
||||
$linkto = $e.journal;
|
||||
$showposter = true;
|
||||
}
|
||||
|
||||
"""<table cellpadding="1" align="right" cellspacing="0" border="0" summary=""><tr align='left'><td bgcolor="$*stronger_back">""";
|
||||
"""<table cellpadding="2" align="center" cellspacing="0" border="0" summary="">""";
|
||||
"""<tr align='left'><td bgcolor="$bgcolor" align="center"><a class="index" href=\"""" + $linkto->base_url() + "\">";
|
||||
if (defined $e.userpic) {
|
||||
"""<img border="0" src="$e.userpic.url" width="$e.userpic.width" height="$e.userpic.height" alt=""><br>""";
|
||||
}
|
||||
|
||||
"<font color=\"$fgcolor\">$linkto.username</font></a>";
|
||||
if ($e.poster.username != $e.journal.username and $showposter) {
|
||||
"<br>[<a class=\"index\" href=\"" +
|
||||
$e.poster->base_url() + "/\"><font color=\"$fgcolor\">$e.poster.username</font></a>]";
|
||||
}
|
||||
"</td></tr></table></td></tr></table>";
|
||||
}
|
||||
|
||||
var string metadata;
|
||||
if ($e.metadata) {
|
||||
$metadata = """<table cellspacing="0" cellpadding="0" border="0" summary="">""";
|
||||
foreach var string k ($e.metadata) {
|
||||
var string text = $k;
|
||||
var string val = $e.metadata{$k};
|
||||
if ($k == "mood") {
|
||||
$text = $*text_meta_mood;
|
||||
} elseif ($k == "music") {
|
||||
$text = $*text_meta_music;
|
||||
}
|
||||
if ($k == "mood" and defined $e.mood_icon) {
|
||||
var Image i = $e.mood_icon;
|
||||
$val = "<img src='$i.url' width='$i.width' height='$i.height' align='absmiddle'> $val";
|
||||
}
|
||||
$metadata = """$metadata\n<tr><td class="meta">[</td><td class="meta" align="right"><b>$text</b></td>
|
||||
<td class="meta" align="center">|</td><td class="meta">$val</td><td class="meta">]</td></tr>""";
|
||||
}
|
||||
$metadata = """$metadata</table>""";
|
||||
}
|
||||
|
||||
var string tags;
|
||||
if ($e.tags) {
|
||||
var int tcount = 0;
|
||||
$tags = """<table cellspacing="0" cellpadding="0" border="0" summary=""><tr><td class="meta" align="right">[<b>Tags</b></td>""";
|
||||
$tags = """$tags<td class="meta" align="center">|</td><td class="meta">""";
|
||||
foreach var Tag t ($e.tags) {
|
||||
$tags = """$tags<a rel="tag" href="$t.url">$t.name</a>""";
|
||||
$tcount++;
|
||||
if ($tcount != size $e.tags) { $tags = """$tags, """; }
|
||||
}
|
||||
$tags = """$tags</td><td class="meta">]</td></tr></table>""";
|
||||
}
|
||||
|
||||
if (not $hide_text) {
|
||||
if ($tags or $metadata) {
|
||||
print $tags;
|
||||
print $metadata;
|
||||
print "<br />";
|
||||
}
|
||||
print $e.text;
|
||||
}
|
||||
"""</td></tr>
|
||||
<tr bgcolor="$*weak_back"><td align='left' class='comments'>
|
||||
<a href="$e.permalink_url">$*text_permalink</a></td>""";
|
||||
if ($p.view != "entry" and $p.view != "reply") {
|
||||
"<td align='right' class='comments'>"; $e.comments->print(); "</td>";
|
||||
} elseif ($e.comments.enabled) {
|
||||
"<td align='right' class='comments'>"; $e.comments->print_postlink(); "</td>";
|
||||
} else {
|
||||
"<td></td>";
|
||||
}
|
||||
"""</tr></table></td></tr></table><p>""";
|
||||
|
||||
} # print_entry(Page,Entry,Color,Color,bool)
|
||||
|
||||
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 RecentPage::print_body ()
|
||||
{
|
||||
foreach var Entry e ($.entries) {
|
||||
$this->print_entry($e);
|
||||
}
|
||||
|
||||
var string range = "most recent entries";
|
||||
if ($.nav.skip > 0) {
|
||||
$range = "$.nav.skip entries back";
|
||||
}
|
||||
|
||||
"""
|
||||
<table cellpadding="2" cellspacing="0"
|
||||
border="0"
|
||||
summary="">
|
||||
<tr><td bgcolor="$*stronger_back">
|
||||
<table cellpadding="3" cellspacing="0"
|
||||
border="0"
|
||||
summary="">
|
||||
<tr>
|
||||
<td align="center" class="index">navigation</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="$*entry_back" align="center">
|
||||
<table cellspacing="0"
|
||||
cellpadding="0"
|
||||
border="0"
|
||||
summary="">
|
||||
<tr>
|
||||
<td class="meta">[</td>
|
||||
<td class="meta" align="right"><b>viewing</b></td>
|
||||
<td class="meta" align="center">|</td>
|
||||
<td class="meta">$range</td>
|
||||
<td class="meta">]</td>
|
||||
</tr>
|
||||
""";
|
||||
|
||||
# go forward/backward if possible
|
||||
if ($.nav.forward_url != "" or $.nav.backward_url != "") {
|
||||
var string sep;
|
||||
var string back;
|
||||
var string forward;
|
||||
if ($.nav.backward_url != "") {
|
||||
$back = """<a href="$.nav.backward_url">earlier</a>""";
|
||||
}
|
||||
if ($.nav.forward_url != "") {
|
||||
$forward = """<a href="$.nav.forward_url">later</a>""";
|
||||
}
|
||||
if ($back != "" and $forward != "") { $sep = "/"; }
|
||||
"""<tr>
|
||||
<td class="meta">[</td>
|
||||
<td class="meta" align="right"><b>go</b></td>
|
||||
<td class="meta" align="center">|</td>
|
||||
<td class="meta">$back$sep$forward</td>
|
||||
<td class="meta">]</td>
|
||||
</tr>""";
|
||||
}
|
||||
|
||||
"</table></td></tr></table></table>";
|
||||
}
|
||||
|
||||
function CommentInfo::print ()
|
||||
{
|
||||
if (not $.enabled) { return; }
|
||||
if ($.count > 0 or $.screened) {
|
||||
"<b>"; $this->print_readlink(); "</b>";
|
||||
"|";
|
||||
}
|
||||
$this->print_postlink();
|
||||
}
|
||||
|
||||
function YearPage::print_year_links ()
|
||||
{
|
||||
"""<table cellpadding="2" cellspacing="0" border="0" summary="">
|
||||
<tr><td bgcolor="$*stronger_back" align="center">
|
||||
<table cellpadding="5" cellspacing="0" border="0" summary="">
|
||||
<tr><td class="caption">Years</td></tr><tr>
|
||||
<td colspan="2" bgcolor="$*entry_back">""";
|
||||
foreach var YearYear y ($.years) {
|
||||
if ($y.displayed) {
|
||||
"<b>$y.year</b> ";
|
||||
} else {
|
||||
"<a href=\"$y.url\">$y.year</a> ";
|
||||
}
|
||||
}
|
||||
"""</td></tr></table></td></tr></table><p>""";
|
||||
|
||||
}
|
||||
|
||||
function YearPage::print_month (YearMonth m)
|
||||
{
|
||||
if (not $m.has_entries) { return; }
|
||||
"""<table cellpadding="2" cellspacing="0" border="0" summary="">
|
||||
<tr><td bgcolor="$*stronger_back" align="center">
|
||||
<table cellpadding="5" cellspacing="0" border="0" summary="">
|
||||
<tr>
|
||||
<td class="caption">""";
|
||||
print $m->month_format();
|
||||
"""</td>
|
||||
<td class="caption" align="right">[<a href="$m.url" class="index">subjects</a>]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="$*entry_back">
|
||||
<!-- now the headings for the week -->
|
||||
<table width="100%" cellpadding="5" cellspacing="0" border="0" summary="">
|
||||
<tr align="center">
|
||||
""";
|
||||
foreach var int d (weekdays()) {
|
||||
"<td>"+$*lang_dayname_short[$d]+"</td>\n";
|
||||
}
|
||||
|
||||
"</tr>";
|
||||
|
||||
foreach var YearWeek w ($m.weeks) {
|
||||
$w->print();
|
||||
}
|
||||
|
||||
"""</table></td></tr></table></td></tr></table><p>""";
|
||||
}
|
||||
|
||||
function YearWeek::print () {
|
||||
"<tr valign='top'>";
|
||||
if ($.pre_empty) { "<td colspan='$.pre_empty'></td>"; }
|
||||
foreach var YearDay d ($.days) {
|
||||
"""<td><div class="meta">$d.day</div>""";
|
||||
if ($d.num_entries) {
|
||||
"""<div align="center"><a href="$d.url">$d.num_entries</a></div>""";
|
||||
} else {
|
||||
" ";
|
||||
}
|
||||
"</td>";
|
||||
}
|
||||
if ($.post_empty) { "<td colspan='$.post_empty'></td>"; }
|
||||
"</tr>";
|
||||
}
|
||||
|
||||
function DayPage::print_body() {
|
||||
|
||||
"""<table cellpadding="2" cellspacing="0" border="0" summary="">
|
||||
<tr><td bgcolor="$*stronger_back" align="center">
|
||||
<table cellpadding="5" cellspacing="0" border="0" summary="">
|
||||
<tr><td bgcolor="$*entry_back">""";
|
||||
|
||||
if ($.has_entries) {
|
||||
print $.date->date_format("long");
|
||||
} else {
|
||||
print ehtml($*text_noentries_day);
|
||||
}
|
||||
|
||||
"""</td></tr></table></td></tr></table><p>""";
|
||||
|
||||
foreach var Entry e ($.entries) {
|
||||
$this->print_entry($e);
|
||||
}
|
||||
|
||||
var string tprev = ehtml($*text_day_prev);
|
||||
var string tnext = ehtml($*text_day_next);
|
||||
var string daylong = $.date->date_format("long");
|
||||
|
||||
"""<table cellpadding="2" cellspacing="0" border="0" summary="">
|
||||
<tr><td bgcolor="$*stronger_back">
|
||||
<table cellpadding="3" cellspacing="0" border="0" summary="">
|
||||
<tr>
|
||||
<td align="center" class="index">navigation</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="$*entry_back" align="center">
|
||||
<table cellspacing="0" cellpadding="0" border="0" summary="">
|
||||
<tr>
|
||||
<td class="meta">[</td>
|
||||
<td class="meta" align="right"><b>viewing</b></td>
|
||||
<td class="meta" align="center">|</td>
|
||||
<td class="meta">$daylong</td>
|
||||
<td class="meta">]</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="meta">[</td>
|
||||
<td class="meta" align="right"><b>go</b></td>
|
||||
<td class="meta" align="center">|</td>
|
||||
<td class="meta"><a href="$.prev_url">$tprev</a>|<a href="$.next_url">$tnext</a></td>
|
||||
<td class="meta">]</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</table>""";
|
||||
|
||||
}
|
||||
|
||||
function MonthPage::print_body () {
|
||||
"""<table width="$*box_width" cellpadding="2" cellspacing="0" border="0" summary="" class="entrybox">
|
||||
<tr align='left'>
|
||||
<td bgcolor="$*stronger_back" align="center">
|
||||
<table width="100%" cellpadding="5" cellspacing="0" border="0" summary="">
|
||||
<tr align='left'>
|
||||
<td class="caption" colspan='2'>""";
|
||||
|
||||
print $.date->date_format($*lang_fmt_month_long);
|
||||
|
||||
"""</td></tr>
|
||||
<tr align='left'>
|
||||
<td colspan="2" bgcolor="$*entry_back">""";
|
||||
|
||||
#Lifted from core, looks decent:
|
||||
"<form method='post' action='$.redir.url'><center>";
|
||||
$.redir->print_hiddens();
|
||||
if ($.prev_url != "") { "[<a href='$.prev_url'><<<</a>]\n"; }
|
||||
if (size $.months > 1) {
|
||||
"<select name='redir_key'>\n";
|
||||
foreach var MonthEntryInfo mei ($.months) {
|
||||
var string sel;
|
||||
if ($mei.date.year == $.date.year and $mei.date.month == $.date.month) {
|
||||
$sel = " selected='selected'";
|
||||
}
|
||||
"<option value='$mei.redir_key'$sel>" + $mei.date->date_format($*lang_fmt_month_long) + "</option>";
|
||||
}
|
||||
"</select>\n<input type='submit' value='View' />";
|
||||
}
|
||||
if ($.next_url != "") { "\n[<a href='$.next_url'>>>></a>]\n"; }
|
||||
"</center></form>\n<dl>";
|
||||
foreach var MonthDay d ($.days) {
|
||||
if ($d.has_entries) {
|
||||
"<dt><a href=\"$d.url\"><b>";
|
||||
print lang_ordinal($d.day);
|
||||
"</b></a></dt>\n<dd>";
|
||||
$d->print_subjectlist();
|
||||
"</dd>\n";
|
||||
}
|
||||
}
|
||||
"</dl>\n";
|
||||
"""</td></tr></table>
|
||||
</td></tr></table><p>""";
|
||||
}
|
||||
|
||||
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();
|
||||
"""<table width="$*box_width" cellpadding="2" cellspacing="0" border="0" summary="" class="entrybox">
|
||||
<tr align='left'>
|
||||
<td bgcolor="$*stronger_back" align="center">
|
||||
<table width="100%" cellpadding="5" cellspacing="0" border="0" summary="">
|
||||
<tr align='left'>
|
||||
<td class="caption" colspan='2'>Comments:</td></tr>""";
|
||||
|
||||
"""<tr align='left'><td colspan="2" bgcolor="$*entry_back">""";
|
||||
|
||||
$.comment_pages->print();
|
||||
|
||||
set_handler("unscreen_comment_#", [
|
||||
[ "style_bgcolor", "cmtbar#", "$*comment_bar_one_bgcolor", ],
|
||||
[ "style_color", "cmtbar#", "$*comment_bar_one_fgcolor", ],
|
||||
]);
|
||||
set_handler("screen_comment_#", [
|
||||
[ "style_bgcolor", "cmtbar#", "$*comment_bar_screened_bgcolor", ],
|
||||
[ "style_color", "cmtbar#", "$*comment_bar_screened_fgcolor", ],
|
||||
]);
|
||||
|
||||
$this->print_comments($.comments);
|
||||
$.comment_pages->print();
|
||||
"""</td></tr></table></td></tr></table><p>""";
|
||||
|
||||
if ($this.multiform_on) {
|
||||
"""<table width="$*box_width" cellpadding="2" cellspacing="0" border="0" summary="" class="entrybox">
|
||||
<tr align='left'>
|
||||
<td bgcolor="$*stronger_back" align="center">
|
||||
<table width="100%" cellpadding="5" cellspacing="0" border="0" summary="">
|
||||
<tr align='left'>
|
||||
<td class="caption" colspan='2'>Mass Action:</td></tr>""";
|
||||
|
||||
"""<tr align='left'><td colspan="2" bgcolor="$*entry_back">""";
|
||||
$this->print_multiform_actionline();
|
||||
"""</td></tr></table></td></tr></table><p>""";
|
||||
$this->print_multiform_end();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function EntryPage::print_comment (Comment c) {
|
||||
var Color background; var Color color;
|
||||
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() : "<i>(Anonymous)</i>";
|
||||
var string sub_icon;
|
||||
if (defined $c.subject_icon) {
|
||||
$sub_icon = $c.subject_icon->as_string();
|
||||
}
|
||||
"<a name='$c.anchor'></a><div id='cmtbar$c.talkid' style='background-color: $background; color: $color; margin-top: 10px; width: 100%;'>";
|
||||
"<table cellpadding='2' cellspacing='0' summary='0' style='width: 100%'><tr valign='top'>";
|
||||
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 "<td style='width: 102px'><img src='$c.userpic.url' width='$w' height='$h' alt='[User Picture]' /></td>";
|
||||
}
|
||||
|
||||
"<td style='width: 100%'><table style='width: 100%'><tr>";
|
||||
|
||||
### From, date, etc
|
||||
"<td align='left' style='width: 50%'>";
|
||||
print "<table>";
|
||||
print "<tr><th align='right' style='white-space: nowrap'>From:</th><td style='white-space: nowrap'>$poster</td></tr>\n";
|
||||
print "<tr><th align='right' style='white-space: nowrap'>Date:</th><td style='white-space: nowrap'>";
|
||||
print $c.time->date_format("long") + " - " + $c.time->time_format() + "</td></tr>";
|
||||
if ($c.metadata{"poster_ip"}) { print "<tr><th align='right' style='white-space: nowrap'>IP Address:</th><td>(" + $c.metadata{"poster_ip"} + ")</td></tr>"; }
|
||||
"</table></td>";
|
||||
|
||||
### Gadgets
|
||||
"<td align='right' style='width: 50%'>";
|
||||
if ($this.multiform_on) {
|
||||
" <label for='ljcomsel_$c.talkid'>$*text_multiform_check</label>";
|
||||
$c->print_multiform_check();
|
||||
}
|
||||
$c->print_linkbar();
|
||||
"</td></tr>";
|
||||
|
||||
### Subject / icon
|
||||
print "<tr valign='top'><td style='width: 50%'>";
|
||||
print (defined $c.subject_icon or $c.subject != "") ? "<h3>$c.subject_icon $c.subject</h3>" : "";
|
||||
print "</td>";
|
||||
|
||||
### Permalink
|
||||
print "<td style='width: 50%' align='right'><strong>(<a href='$c.permalink_url'>Link</a>)</strong></td></tr>";
|
||||
|
||||
print "</table></td></tr></table></div>";
|
||||
print "<div style='margin-left: 5px'>$c.text</div>";
|
||||
print "<div style='margin-top: 3px; font-size: smaller'>";
|
||||
|
||||
"<span class='commentlinks'>";
|
||||
if ($c.frozen) {
|
||||
"(Replies frozen) ";
|
||||
} else {
|
||||
"(<a href='$c.reply_url'>Reply to this</a>) ";
|
||||
}
|
||||
"</span>";
|
||||
|
||||
if ($c.parent_url != "") { "(<a href='$c.parent_url'>Parent</a>) "; }
|
||||
if ($c.thread_url != "") { "(<a href='$c.thread_url'>Thread</a>) "; }
|
||||
"</div>";
|
||||
}
|
||||
|
||||
function ReplyPage::print_body () {
|
||||
if (not $.entry.comments.enabled) {
|
||||
"""<table width="$*box_width" cellpadding="2" cellspacing="0" border="0" summary="" class="entrybox">
|
||||
<tr align='left'>
|
||||
<td bgcolor="$*stronger_back" align="center">
|
||||
<table width="100%" cellpadding="5" cellspacing="0" border="0" summary="">
|
||||
<tr align='left'>
|
||||
<td class="caption" colspan='2'>$*text_reply_nocomments_header</td></tr>
|
||||
<tr align='left'>
|
||||
<td colspan="2" bgcolor="$*entry_back">""";
|
||||
|
||||
print "<p>$*text_reply_nocomments</p>";
|
||||
"""</td></tr></table></td></tr></table><p>""";
|
||||
return;
|
||||
}
|
||||
var string datetime;
|
||||
$datetime = $.replyto.time->date_format("med")+"|<b>" + $.replyto.time->time_format() + "</b>";
|
||||
"""<table width="$*box_width" cellpadding="2" cellspacing="0" border="0" summary="" class="entrybox">
|
||||
<tr align='left'>
|
||||
<td bgcolor="$*stronger_back" align="center">
|
||||
<table width="100%" cellpadding="5" cellspacing="0" border="0" summary="">
|
||||
<tr align='left'>
|
||||
<td class="caption">$.replyto.subject</td>
|
||||
<td class="index" align="right">$datetime</td></tr>
|
||||
<tr align='left'>
|
||||
<td colspan="2" bgcolor="$*entry_back">
|
||||
<table cellpadding="1" align="right" cellspacing="0" border="0" summary="">
|
||||
<tr align='left'><td bgcolor="$*stronger_back">
|
||||
<table cellpadding="2" align="center" cellspacing="0" border="0" summary="">
|
||||
<tr align='left'><td align="center" style="color: $*stronger_text">""";
|
||||
|
||||
if (defined $.replyto.poster) {
|
||||
"<a href='" + $.replyto.poster->base_url() + "/'>";
|
||||
if (defined $.replyto.userpic) {
|
||||
"""<img border="0" src="$.replyto.userpic.url" width="$.replyto.userpic.width" """;
|
||||
"""height="$.replyto.userpic.height" alt=""><br />""";
|
||||
}
|
||||
"$.replyto.poster.username</a>";
|
||||
} else {
|
||||
print "<i>Anonymous</i>";
|
||||
}
|
||||
|
||||
"""</td></tr></table></td></tr></table>$.replyto.text</td></tr>
|
||||
<tr bgcolor="$*weak_back"><td align='left' class='comments'>
|
||||
<a href="$.replyto.permalink_url">$*text_permalink</a></td>
|
||||
<td align='right' class='comments'><a href='$.entry.comments.read_url'>Read Comments</a></td>
|
||||
</tr></table></td></tr></table><p>""";
|
||||
|
||||
"""<table width="$*box_width" cellpadding="2" cellspacing="0" border="0" summary="" class="entrybox">
|
||||
<tr align='left'>
|
||||
<td bgcolor="$*stronger_back" align="center">
|
||||
<table width="100%" cellpadding="5" cellspacing="0" border="0" summary="">
|
||||
<tr align='left'>
|
||||
<td class="caption" colspan='2'>Reply:</td></tr>
|
||||
<tr align='left'>
|
||||
<td colspan="2" bgcolor="$*entry_back">""";
|
||||
|
||||
$.form->print();
|
||||
|
||||
"""</td></tr></table></td></tr></table><p>""";
|
||||
}
|
||||
|
||||
function print_theme_preview () {
|
||||
"""<table width='100%' bgcolor='$*page_back' cellpadding=10><tr><td align='center'>
|
||||
|
||||
<table width='400' cellpadding='2' cellspacing='2'>
|
||||
<tr align='left'><td bgcolor="$*stronger_back" align="center">
|
||||
|
||||
<table width="100%" cellpadding="5" cellspacing="0" border="0" summary="">
|
||||
<tr align='left'><td style="color: $*stronger_text">Preview Subject</td><td align="right" style="font-size: 8pt; color: $*stronger_text">[Feb. 5th, 2002|<b>8:46 pm</b>]</td></tr>
|
||||
<tr align='left'>
|
||||
<td colspan="2" bgcolor="$*entry_back" style='color: $*entry_text'>
|
||||
Preview text, preview text, etc, etc..... words, words and more words.
|
||||
|
||||
</td></tr>
|
||||
|
||||
<tr bgcolor="$*weak_back"><td align='left' class='style: font-size: 8pt'>
|
||||
<a style='text-decoration:none;color: $*page_link' href="#">$*text_permalink</a>
|
||||
</td><td align='right' style='font-size: 8pt'>
|
||||
<a href='#' style='text-decoration:none;color:$*page_vlink'><b>1 comment</b></a>|<a href='#' style='text-decoration:none;color:$*page_link'>post comment</a>
|
||||
|
||||
</td></tr></table>
|
||||
</td></tr></table>
|
||||
</td></tr></table>
|
||||
""";
|
||||
}
|
||||
369
livejournal/bin/upgrading/s2layers/generator/themes.s2
Executable file
@@ -0,0 +1,369 @@
|
||||
#NEWLAYER: generator/mintchoc
|
||||
layerinfo "type" = "theme";
|
||||
layerinfo "name" = "Mint Chocolate Chip";
|
||||
layerinfo "redist_uniq" = "generator/mintchoc";
|
||||
layerinfo "author_name" = "Andrea Hartmann";
|
||||
layerinfo "author_email" = "mullenkamp@livejournal.com";
|
||||
set entry_back = "#ddffee";
|
||||
set entry_text = "#330000";
|
||||
set page_link = "#993333";
|
||||
set page_vlink = "#663333";
|
||||
set page_alink = "#000000";
|
||||
set page_back = "#ccffdd";
|
||||
set stronger_back = "#663333";
|
||||
set stronger_text = "#ccffdd";
|
||||
set weak_back = "#88ffdd";
|
||||
set weak_text = "#663333";
|
||||
set comment_bar_one_bgcolor = "#88ffdd";
|
||||
set comment_bar_one_fgcolor = "#663333";
|
||||
set comment_bar_two_fgcolor = "#663333";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
|
||||
#NEWLAYER: generator/purple
|
||||
layerinfo "type" = "theme";
|
||||
layerinfo "name" = "Purple";
|
||||
layerinfo "redist_uniq" = "generator/purple";
|
||||
layerinfo "author_name" = "Andrea Hartmann";
|
||||
layerinfo "author_email" = "mullenkamp@livejournal.com";
|
||||
set entry_back = "#9933cc";
|
||||
set entry_text = "#ddccff";
|
||||
set page_link = "#ffffff";
|
||||
set page_vlink = "#330033";
|
||||
set page_alink = "#ffccff";
|
||||
set page_back = "#bb55ee";
|
||||
set stronger_back = "#660099";
|
||||
set stronger_text = "#f5eeff";
|
||||
set weak_back = "#bb88dd";
|
||||
set weak_text = "#ddccff";
|
||||
set comment_bar_one_bgcolor = "#660099";
|
||||
set comment_bar_one_fgcolor = "#f5eeff";
|
||||
set comment_bar_two_bgcolor = "#bb88dd";
|
||||
set comment_bar_two_fgcolor = "#ddccff";
|
||||
|
||||
#NEWLAYER: generator/ocean
|
||||
layerinfo "type" = "theme";
|
||||
layerinfo "name" = "Deep Blue Xenogears Ocean";
|
||||
layerinfo "redist_uniq" = "generator/ocean";
|
||||
layerinfo "author_name" = "Andrea Hartmann";
|
||||
layerinfo "author_email" = "mullenkamp@livejournal.com";
|
||||
set entry_back = "#1100dd";
|
||||
set entry_text = "#ccccff";
|
||||
set page_link = "#ffffff";
|
||||
set page_vlink = "#ddddff";
|
||||
set page_alink = "#ffffff";
|
||||
set page_back = "#3333ff";
|
||||
set stronger_back = "#aabbff";
|
||||
set stronger_text = "#0033cc";
|
||||
set weak_back = "#3399ff";
|
||||
set weak_text = "#0033cc";
|
||||
set comment_bar_one_bgcolor = "#aabbff";
|
||||
set comment_bar_one_fgcolor = "#0033cc";
|
||||
set comment_bar_two_bgcolor = "#3399ff";
|
||||
set comment_bar_two_fgcolor = "#0033cc";
|
||||
|
||||
#NEWLAYER: generator/harvest
|
||||
layerinfo "type" = "theme";
|
||||
layerinfo "name" = "Harvest";
|
||||
layerinfo "redist_uniq" = "generator/harvest";
|
||||
layerinfo "author_name" = "Andrea Hartmann";
|
||||
layerinfo "author_email" = "mullenkamp@livejournal.com";
|
||||
set entry_back = "#ff9900";
|
||||
set entry_text = "#663333";
|
||||
set page_link = "#ffeeaa";
|
||||
set page_vlink = "#993300";
|
||||
set page_alink = "#ffcc88";
|
||||
set page_back = "#ffaa11";
|
||||
set stronger_back = "#ffcc33";
|
||||
set stronger_text = "#663333";
|
||||
set weak_back = "#cc6600";
|
||||
set weak_text = "#ffcc88";
|
||||
set comment_bar_one_bgcolor = "#ffcc33";
|
||||
set comment_bar_one_fgcolor = "#663333";
|
||||
set comment_bar_two_bgcolor = "#cc6600";
|
||||
set comment_bar_two_fgcolor = "#ffcc88";
|
||||
|
||||
#NEWLAYER: generator/jeweled
|
||||
layerinfo "type" = "theme";
|
||||
layerinfo "name" = "Jeweled";
|
||||
layerinfo "redist_uniq" = "generator/jeweled";
|
||||
layerinfo "author_name" = "Andrea Hartmann";
|
||||
layerinfo "author_email" = "mullenkamp@livejournal.com";
|
||||
set entry_back = "#aa6699";
|
||||
set entry_text = "#330066";
|
||||
set page_link = "#ccddee";
|
||||
set page_vlink = "#cc99cc";
|
||||
set page_alink = "#cceecc";
|
||||
set page_back = "#881188";
|
||||
set stronger_back = "#006699";
|
||||
set stronger_text = "#ceecc";
|
||||
set weak_back = "#008888";
|
||||
set weak_text = "#002222";
|
||||
set comment_bar_one_bgcolor = "#006699";
|
||||
set comment_bar_one_fgcolor = "#ceecc";
|
||||
set comment_bar_two_bgcolor = "#008888";
|
||||
set comment_bar_two_fgcolor = "#002222";
|
||||
|
||||
#NEWLAYER: generator/darkgreens
|
||||
layerinfo type = "theme";
|
||||
layerinfo name = "Dark Greens";
|
||||
layerinfo redist_uniq = "generator/darkgreens";
|
||||
layerinfo author_name = "Ryan Fitzpatrick";
|
||||
set entry_back = "#020202";
|
||||
set entry_text = "#fbfbfb";
|
||||
set page_link = "#9aff8d";
|
||||
set page_vlink = "#e3ee39";
|
||||
set page_alink = "#ff0220";
|
||||
set page_back = "#117218";
|
||||
set stronger_back = "#38e616";
|
||||
set stronger_text = "#020100";
|
||||
set weak_back = "#020100";
|
||||
set weak_text = "#000000";
|
||||
set comment_bar_one_bgcolor = "#38e616";
|
||||
set comment_bar_one_fgcolor = "#020100";
|
||||
set comment_bar_two_bgcolor = "#117218";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
|
||||
#NEWLAYER: generator/satin
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Satin Handshake";
|
||||
layerinfo redist_uniq = "generator/satin";
|
||||
set entry_back = "#d06464";
|
||||
set entry_text = "#000000";
|
||||
set page_link = "#ffffff";
|
||||
set page_vlink = "#6f2222";
|
||||
set page_alink = "#333333";
|
||||
set page_back = "#480c0c";
|
||||
set stronger_back = "#9d0404";
|
||||
set stronger_text = "#ffffff";
|
||||
set weak_back = "#d06464";
|
||||
set weak_text = "#ffffff";
|
||||
set comment_bar_one_bgcolor = "#9d0404";
|
||||
set comment_bar_one_fgcolor = "#ffffff";
|
||||
set comment_bar_two_bgcolor = "#d06464";
|
||||
set comment_bar_two_fgcolor = "#ffffff";
|
||||
|
||||
#NEWLAYER: generator/sunset
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Sunset";
|
||||
layerinfo redist_uniq = "generator/sunset";
|
||||
set entry_back = "#ff7301";
|
||||
set entry_text = "#fdb54f";
|
||||
set page_link = "#ffe65e";
|
||||
set page_vlink = "#ff9879";
|
||||
set page_alink = "#ffb866";
|
||||
set page_back = "#070494";
|
||||
set stronger_back = "#f8a402";
|
||||
set stronger_text = "#ffd510";
|
||||
set weak_back = "#f51700";
|
||||
set weak_text = "#f77603";
|
||||
set comment_bar_one_bgcolor = "#f8a402";
|
||||
set comment_bar_one_fgcolor = "#ffd510";
|
||||
set comment_bar_two_bgcolor = "#f51700";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
|
||||
#NEWLAYER: generator/redbliss
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Red Bliss";
|
||||
layerinfo redist_uniq = "generator/redbliss";
|
||||
set entry_back = "#ffcccc";
|
||||
set entry_text = "#000000";
|
||||
set page_link = "#ffffff";
|
||||
set page_vlink = "#ffcccc";
|
||||
set page_alink = "#00ffff";
|
||||
set page_back = "#ff3300";
|
||||
set stronger_back = "#cc3333";
|
||||
set stronger_text = "#ffffff";
|
||||
set weak_back = "#cc3333";
|
||||
set weak_text = "#fafafa";
|
||||
set comment_bar_one_bgcolor = "#cc3333";
|
||||
set comment_bar_one_fgcolor = "#ffffff";
|
||||
set comment_bar_two_bgcolor = "#ff3333";
|
||||
set comment_bar_two_fgcolor = "#fafafa";
|
||||
|
||||
#NEWLAYER: generator/pastelneons
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Pastel Neons";
|
||||
layerinfo redist_uniq = "generator/pastelneons";
|
||||
set entry_back = "#ffffff";
|
||||
set entry_text = "#1a6b6a";
|
||||
set page_link = "#330f42";
|
||||
set page_vlink = "#033339";
|
||||
set page_alink = "#9923ca";
|
||||
set page_back = "#00ffff";
|
||||
set stronger_back = "#60d2cb";
|
||||
set stronger_text = "#000000";
|
||||
set weak_back = "#d385f3";
|
||||
set weak_text = "#000000";
|
||||
set comment_bar_one_bgcolor = "#60d2cb";
|
||||
set comment_bar_one_fgcolor = "#000000";
|
||||
set comment_bar_two_bgcolor = "#d385f3";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
|
||||
#NEWLAYER: generator/classdesk
|
||||
layerinfo type = "theme";
|
||||
layerinfo name = "Classic Desktop";
|
||||
layerinfo redist_uniq = "generator/classdesk";
|
||||
set page_link = "#ff7b05";
|
||||
set page_vlink = "#ce4900";
|
||||
set page_alink = "#ff9e2b";
|
||||
set page_back = "#007782";
|
||||
set stronger_back = "#00545c";
|
||||
set stronger_text = "#ffffff";
|
||||
set weak_back = "#ffeddd";
|
||||
set weak_text = "#ffffff";
|
||||
set comment_bar_one_bgcolor = "#00545c";
|
||||
set comment_bar_one_fgcolor = "#ffffff";
|
||||
set comment_bar_two_bgcolor = "#ffeddd";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
|
||||
#NEWLAYER: generator/everwhite
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Everwhite";
|
||||
layerinfo redist_uniq = "generator/everwhite";
|
||||
set entry_back = "#ffffff";
|
||||
set entry_text = "#000000";
|
||||
set page_link = "#ff0000";
|
||||
set page_vlink = "#ff0000";
|
||||
set page_alink = "#ffffff";
|
||||
set page_back = "#ffffff";
|
||||
set stronger_back = "#ffffff";
|
||||
set stronger_text = "#ff0000";
|
||||
set weak_back = "#ffffff";
|
||||
set weak_text = "#ffffff";
|
||||
set comment_bar_one_bgcolor = "#dddddd";
|
||||
set comment_bar_one_fgcolor = "#000000";
|
||||
set comment_bar_two_bgcolor = "#aaaaaa";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
|
||||
#NEWLAYER: generator/everblue
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Everblue with Grey";
|
||||
layerinfo redist_uniq = "generator/everblue";
|
||||
set entry_back = "#ffffff";
|
||||
set entry_text = "#000000";
|
||||
set page_link = "#0000ff";
|
||||
set page_vlink = "#060667";
|
||||
set page_alink = "#ffffff";
|
||||
set page_back = "#0f0c6d";
|
||||
set stronger_back = "#000000";
|
||||
set stronger_text = "#ffffff";
|
||||
set weak_back = "#aaaaaa";
|
||||
set weak_text = "#000000";
|
||||
set comment_bar_one_bgcolor = "#000000";
|
||||
set comment_bar_one_fgcolor = "#ffffff";
|
||||
set comment_bar_two_bgcolor = "#aaaaaa";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
|
||||
#NEWLAYER: generator/purplesky
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Purple Sky";
|
||||
layerinfo redist_uniq = "generator/purplesky";
|
||||
set entry_back = "#24d8df";
|
||||
set entry_text = "#0424e4";
|
||||
set page_link = "#a917c4";
|
||||
set page_vlink = "#9911e8";
|
||||
set page_alink = "#ea09ff";
|
||||
set page_back = "#99e3e2";
|
||||
set stronger_back = "#8802fa";
|
||||
set stronger_text = "#ffffff";
|
||||
set weak_back = "#89e5e9";
|
||||
set weak_text = "#000000";
|
||||
set comment_bar_one_bgcolor = "#8802fa";
|
||||
set comment_bar_one_fgcolor = "#ffffff";
|
||||
set comment_bar_two_bgcolor = "#89e5e9";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
|
||||
#NEWLAYER: generator/bruise
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Bruise";
|
||||
layerinfo redist_uniq = "generator/bruise";
|
||||
set entry_back = "#bcbcbc";
|
||||
set entry_text = "#000000";
|
||||
set page_link = "#0000ff";
|
||||
set page_vlink = "#0000ff";
|
||||
set page_alink = "#0000ff";
|
||||
set page_back = "#000000";
|
||||
set stronger_back = "#1114a0";
|
||||
set stronger_text = "#ffffff";
|
||||
set weak_back = "#21c2f1";
|
||||
set weak_text = "#000000";
|
||||
set comment_bar_one_bgcolor = "#1114a0";
|
||||
set comment_bar_one_fgcolor = "#ffffff";
|
||||
set comment_bar_two_bgcolor = "#21c2f1";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
|
||||
#NEWLAYER: generator/elegant
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Elegant";
|
||||
layerinfo redist_uniq = "generator/elegant";
|
||||
set entry_back = "#ffffff";
|
||||
set entry_text = "#000000";
|
||||
set page_link = "#e91822";
|
||||
set page_vlink = "#bf1418";
|
||||
set page_alink = "#f71e28";
|
||||
set page_back = "#ffffff";
|
||||
set stronger_back = "#777777";
|
||||
set stronger_text = "#000000";
|
||||
set weak_back = "#e6e6e6";
|
||||
set weak_text = "#000000";
|
||||
set comment_bar_one_bgcolor = "#777777";
|
||||
set comment_bar_one_fgcolor = "#000000";
|
||||
set comment_bar_two_bgcolor = "#e6e6e6";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
|
||||
#NEWLAYER: generator/bananapeel
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Banana Peel";
|
||||
layerinfo redist_uniq = "generator/bananapeel";
|
||||
set entry_back = "#f2f688";
|
||||
set entry_text = "#ee2914";
|
||||
set page_link = "#db9129";
|
||||
set page_vlink = "#c58f1b";
|
||||
set page_alink = "#ffc518";
|
||||
set page_back = "#ffffff";
|
||||
set stronger_back = "#f0f905";
|
||||
set stronger_text = "#000000";
|
||||
set weak_back = "#dcdf02";
|
||||
set weak_text = "#000000";
|
||||
set comment_bar_one_bgcolor = "#f0f905";
|
||||
set comment_bar_one_fgcolor = "#000000";
|
||||
set comment_bar_two_bgcolor = "#dcdf02";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
|
||||
#NEWLAYER: generator/melodrama
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Deep MeloDrama";
|
||||
layerinfo redist_uniq = "generator/melodrama";
|
||||
set entry_back = "#719cff";
|
||||
set entry_text = "#9348a1";
|
||||
set page_link = "#f5d3ff";
|
||||
set page_vlink = "#e2ffe3";
|
||||
set page_alink = "#e2ffe3";
|
||||
set page_back = "#872d89";
|
||||
set stronger_back = "#3794b3";
|
||||
set stronger_text = "#a4b8ff";
|
||||
set weak_back = "#65b2c1";
|
||||
set weak_text = "#98bac5";
|
||||
set comment_bar_one_bgcolor = "#3794b3";
|
||||
set comment_bar_one_fgcolor = "#a4b8ff";
|
||||
set comment_bar_two_bgcolor = "#65b2c1";
|
||||
set comment_bar_two_fgcolor = "#872d89";
|
||||
|
||||
#NEWLAYER: generator/iceburg
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Iceburg";
|
||||
layerinfo redist_uniq = "generator/iceburg";
|
||||
set entry_back = "#ffffff";
|
||||
set entry_text = "#000000";
|
||||
set page_link = "#0000ff";
|
||||
set page_vlink = "#0000ff";
|
||||
set page_alink = "#387bf7";
|
||||
set page_back = "#c6c2f5";
|
||||
set stronger_back = "#7c6ccd";
|
||||
set stronger_text = "#ffffff";
|
||||
set weak_back = "#eef0fd";
|
||||
set weak_text = "#000000";
|
||||
set comment_bar_one_bgcolor = "#7c6ccd";
|
||||
set comment_bar_one_fgcolor = "#ffffff";
|
||||
set comment_bar_two_bgcolor = "#eef0fd";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
BIN
livejournal/bin/upgrading/s2layers/haven/haven.png
Executable file
|
After Width: | Height: | Size: 16 KiB |
1655
livejournal/bin/upgrading/s2layers/haven/layout.s2
Executable file
392
livejournal/bin/upgrading/s2layers/haven/themes.s2
Executable file
@@ -0,0 +1,392 @@
|
||||
#NEWLAYER: haven/bluemonochromatic
|
||||
layerinfo "type" = "theme";
|
||||
layerinfo "name" = "Adaywien";
|
||||
layerinfo "redist_uniq" = "haven/bluemonochromatic";
|
||||
|
||||
set color_scheme_base = "#1575C7";
|
||||
set color_scheme = "monochromatic";
|
||||
|
||||
#NEWLAYER: haven/blueanalogous
|
||||
layerinfo "type" = "theme";
|
||||
layerinfo "name" = "Gwirasien";
|
||||
layerinfo "redist_uniq" = "haven/blueanalogous";
|
||||
|
||||
set color_scheme_base = "#1575C7";
|
||||
set color_scheme = "analogous";
|
||||
|
||||
#NEWLAYER: haven/bluecomplementary
|
||||
layerinfo "type" = "theme";
|
||||
layerinfo "name" = "Etaella";
|
||||
layerinfo "redist_uniq" = "haven/bluecomplementary";
|
||||
|
||||
set color_scheme_base = "#1575C7";
|
||||
set color_scheme = "complementary";
|
||||
|
||||
#NEWLAYER: haven/bluesplit_complementary
|
||||
layerinfo "type" = "theme";
|
||||
layerinfo "name" = "Sevaeviel";
|
||||
layerinfo "redist_uniq" = "haven/bluesplit_complementary";
|
||||
|
||||
set color_scheme_base = "#1575C7";
|
||||
set color_scheme = "split_complementary";
|
||||
|
||||
#NEWLAYER: haven/bluedouble_complementary
|
||||
layerinfo "type" = "theme";
|
||||
layerinfo "name" = "Glirewen";
|
||||
layerinfo "redist_uniq" = "haven/bluedouble_complementary";
|
||||
|
||||
set color_scheme_base = "#1575C7";
|
||||
set color_scheme = "double_complementary";
|
||||
|
||||
#NEWLAYER: haven/bluetriadic
|
||||
layerinfo "type" = "theme";
|
||||
layerinfo "name" = "Uloewiel";
|
||||
layerinfo "redist_uniq" = "haven/bluetriadic";
|
||||
|
||||
set color_scheme_base = "#1575C7";
|
||||
set color_scheme = "triadic";
|
||||
|
||||
#NEWLAYER: haven/bluetetradic
|
||||
layerinfo "type" = "theme";
|
||||
layerinfo "name" = "Yberawen";
|
||||
layerinfo "redist_uniq" = "haven/bluetetradic";
|
||||
|
||||
set color_scheme_base = "#1575C7";
|
||||
set color_scheme = "tetradic";
|
||||
|
||||
#NEWLAYER: haven/orangemonochromatic
|
||||
layerinfo "type" = "theme";
|
||||
layerinfo "name" = "Olerassa";
|
||||
layerinfo "redist_uniq" = "haven/orangemonochromatic";
|
||||
|
||||
set color_scheme_base = "#F3904E";
|
||||
set color_scheme = "monochromatic";
|
||||
|
||||
#NEWLAYER: haven/orangeanalogous
|
||||
layerinfo "type" = "theme";
|
||||
layerinfo "name" = "Vardothiel";
|
||||
layerinfo "redist_uniq" = "haven/orangeanalogous";
|
||||
|
||||
set color_scheme_base = "#F3904E";
|
||||
set color_scheme = "analogous";
|
||||
|
||||
#NEWLAYER: haven/orangecomplementary
|
||||
layerinfo "type" = "theme";
|
||||
layerinfo "name" = "Cadelaviel";
|
||||
layerinfo "redist_uniq" = "haven/orangecomplementary";
|
||||
|
||||
set color_scheme_base = "#F3904E";
|
||||
set color_scheme = "complementary";
|
||||
|
||||
#NEWLAYER: haven/orangesplit_complementary
|
||||
layerinfo "type" = "theme";
|
||||
layerinfo "name" = "Eriralle";
|
||||
layerinfo "redist_uniq" = "haven/orangesplit_complementary";
|
||||
|
||||
set color_scheme_base = "#F3904E";
|
||||
set color_scheme = "split_complementary";
|
||||
|
||||
#NEWLAYER: haven/orangedouble_complementary
|
||||
layerinfo "type" = "theme";
|
||||
layerinfo "name" = "Bemeth";
|
||||
layerinfo "redist_uniq" = "haven/orangedouble_complementary";
|
||||
|
||||
set color_scheme_base = "#F3904E";
|
||||
set color_scheme = "double_complementary";
|
||||
|
||||
#NEWLAYER: haven/orangetriadic
|
||||
layerinfo "type" = "theme";
|
||||
layerinfo "name" = "Welamma";
|
||||
layerinfo "redist_uniq" = "haven/orangetriadic";
|
||||
|
||||
set color_scheme_base = "#F3904E";
|
||||
set color_scheme = "triadic";
|
||||
|
||||
#NEWLAYER: haven/orangetetradic
|
||||
layerinfo "type" = "theme";
|
||||
layerinfo "name" = "Jerodia";
|
||||
layerinfo "redist_uniq" = "haven/orangetetradic";
|
||||
|
||||
set color_scheme_base = "#F3904E";
|
||||
set color_scheme = "tetradic";
|
||||
|
||||
#NEWLAYER: haven/greenmonochromatic
|
||||
layerinfo "type" = "theme";
|
||||
layerinfo "name" = "Cendarien";
|
||||
layerinfo "redist_uniq" = "haven/greenmonochromatic";
|
||||
|
||||
set color_scheme_base = "#48C754";
|
||||
set color_scheme = "monochromatic";
|
||||
|
||||
#NEWLAYER: haven/greenanalogous
|
||||
layerinfo "type" = "theme";
|
||||
layerinfo "name" = "Wicarede";
|
||||
layerinfo "redist_uniq" = "haven/greenanalogous";
|
||||
|
||||
set color_scheme_base = "#48C754";
|
||||
set color_scheme = "analogous";
|
||||
|
||||
#NEWLAYER: haven/greencomplementary
|
||||
layerinfo "type" = "theme";
|
||||
layerinfo "name" = "Laylla";
|
||||
layerinfo "redist_uniq" = "haven/greencomplementary";
|
||||
|
||||
set color_scheme_base = "#48C754";
|
||||
set color_scheme = "complementary";
|
||||
|
||||
#NEWLAYER: haven/greensplit_complementary
|
||||
layerinfo "type" = "theme";
|
||||
layerinfo "name" = "Dwiama";
|
||||
layerinfo "redist_uniq" = "haven/greensplit_complementary";
|
||||
|
||||
set color_scheme_base = "#48C754";
|
||||
set color_scheme = "split_complementary";
|
||||
|
||||
#NEWLAYER: haven/greendouble_complementary
|
||||
layerinfo "type" = "theme";
|
||||
layerinfo "name" = "Missi";
|
||||
layerinfo "redist_uniq" = "haven/greendouble_complementary";
|
||||
|
||||
set color_scheme_base = "#48C754";
|
||||
set color_scheme = "double_complementary";
|
||||
|
||||
#NEWLAYER: haven/greentriadic
|
||||
layerinfo "type" = "theme";
|
||||
layerinfo "name" = "Gwuwien";
|
||||
layerinfo "redist_uniq" = "haven/greentriadic";
|
||||
|
||||
set color_scheme_base = "#48C754";
|
||||
set color_scheme = "triadic";
|
||||
|
||||
#NEWLAYER: haven/greentetradic
|
||||
layerinfo "type" = "theme";
|
||||
layerinfo "name" = "Gerrathien";
|
||||
layerinfo "redist_uniq" = "haven/greentetradic";
|
||||
|
||||
set color_scheme_base = "#48C754";
|
||||
set color_scheme = "tetradic";
|
||||
|
||||
#NEWLAYER: haven/violetmonochromatic
|
||||
layerinfo "type" = "theme";
|
||||
layerinfo "name" = "Erudith";
|
||||
layerinfo "redist_uniq" = "haven/violetmonochromatic";
|
||||
|
||||
set color_scheme_base = "#9D1EC7";
|
||||
set color_scheme = "monochromatic";
|
||||
|
||||
#NEWLAYER: haven/violetanalogous
|
||||
layerinfo "type" = "theme";
|
||||
layerinfo "name" = "Narwen";
|
||||
layerinfo "redist_uniq" = "haven/violetanalogous";
|
||||
|
||||
set color_scheme_base = "#9D1EC7";
|
||||
set color_scheme = "analogous";
|
||||
|
||||
#NEWLAYER: haven/violetcomplementary
|
||||
layerinfo "type" = "theme";
|
||||
layerinfo "name" = "Yballan";
|
||||
layerinfo "redist_uniq" = "haven/violetcomplementary";
|
||||
|
||||
set color_scheme_base = "#9D1EC7";
|
||||
set color_scheme = "complementary";
|
||||
|
||||
#NEWLAYER: haven/violetsplit_complementary
|
||||
layerinfo "type" = "theme";
|
||||
layerinfo "name" = "Araymwen";
|
||||
layerinfo "redist_uniq" = "haven/violetsplit_complementary";
|
||||
|
||||
set color_scheme_base = "#9D1EC7";
|
||||
set color_scheme = "split_complementary";
|
||||
|
||||
#NEWLAYER: haven/violetdouble_complementary
|
||||
layerinfo "type" = "theme";
|
||||
layerinfo "name" = "Cydia";
|
||||
layerinfo "redist_uniq" = "haven/violetdouble_complementary";
|
||||
|
||||
set color_scheme_base = "#9D1EC7";
|
||||
set color_scheme = "double_complementary";
|
||||
|
||||
#NEWLAYER: haven/violettriadic
|
||||
layerinfo "type" = "theme";
|
||||
layerinfo "name" = "Eowiresa";
|
||||
layerinfo "redist_uniq" = "haven/violettriadic";
|
||||
|
||||
set color_scheme_base = "#9D1EC7";
|
||||
set color_scheme = "triadic";
|
||||
|
||||
#NEWLAYER: haven/violettetradic
|
||||
layerinfo "type" = "theme";
|
||||
layerinfo "name" = "Waedith";
|
||||
layerinfo "redist_uniq" = "haven/violettetradic";
|
||||
|
||||
set color_scheme_base = "#9D1EC7";
|
||||
set color_scheme = "tetradic";
|
||||
|
||||
#NEWLAYER: haven/yellowmonochromatic
|
||||
layerinfo "type" = "theme";
|
||||
layerinfo "name" = "Vauwen";
|
||||
layerinfo "redist_uniq" = "haven/yellowmonochromatic";
|
||||
|
||||
set color_scheme_base = "#F3EAA0";
|
||||
set color_scheme = "monochromatic";
|
||||
|
||||
#NEWLAYER: haven/yellowanalogous
|
||||
layerinfo "type" = "theme";
|
||||
layerinfo "name" = "Praressi";
|
||||
layerinfo "redist_uniq" = "haven/yellowanalogous";
|
||||
|
||||
set color_scheme_base = "#F3EAA0";
|
||||
set color_scheme = "analogous";
|
||||
|
||||
#NEWLAYER: haven/yellowcomplementary
|
||||
layerinfo "type" = "theme";
|
||||
layerinfo "name" = "Lelivia";
|
||||
layerinfo "redist_uniq" = "haven/yellowcomplementary";
|
||||
|
||||
set color_scheme_base = "#F3EAA0";
|
||||
set color_scheme = "complementary";
|
||||
|
||||
#NEWLAYER: haven/yellowsplit_complementary
|
||||
layerinfo "type" = "theme";
|
||||
layerinfo "name" = "Afalewen";
|
||||
layerinfo "redist_uniq" = "haven/yellowsplit_complementary";
|
||||
|
||||
set color_scheme_base = "#F3EAA0";
|
||||
set color_scheme = "split_complementary";
|
||||
|
||||
#NEWLAYER: haven/yellowdouble_complementary
|
||||
layerinfo "type" = "theme";
|
||||
layerinfo "name" = "Umoenna";
|
||||
layerinfo "redist_uniq" = "haven/yellowdouble_complementary";
|
||||
|
||||
set color_scheme_base = "#F3EAA0";
|
||||
set color_scheme = "double_complementary";
|
||||
|
||||
#NEWLAYER: haven/yellowtriadic
|
||||
layerinfo "type" = "theme";
|
||||
layerinfo "name" = "Trirwen";
|
||||
layerinfo "redist_uniq" = "haven/yellowtriadic";
|
||||
|
||||
set color_scheme_base = "#F3EAA0";
|
||||
set color_scheme = "triadic";
|
||||
|
||||
#NEWLAYER: haven/yellowtetradic
|
||||
layerinfo "type" = "theme";
|
||||
layerinfo "name" = "Jerilisien";
|
||||
layerinfo "redist_uniq" = "haven/yellowtetradic";
|
||||
|
||||
set color_scheme_base = "#F3EAA0";
|
||||
set color_scheme = "tetradic";
|
||||
|
||||
#NEWLAYER: haven/redmonochromatic
|
||||
layerinfo "type" = "theme";
|
||||
layerinfo "name" = "Ethowiel";
|
||||
layerinfo "redist_uniq" = "haven/redmonochromatic";
|
||||
|
||||
set color_scheme_base = "#F35951";
|
||||
set color_scheme = "monochromatic";
|
||||
|
||||
#NEWLAYER: haven/redanalogous
|
||||
layerinfo "type" = "theme";
|
||||
layerinfo "name" = "Dwyweth";
|
||||
layerinfo "redist_uniq" = "haven/redanalogous";
|
||||
|
||||
set color_scheme_base = "#F35951";
|
||||
set color_scheme = "analogous";
|
||||
|
||||
#NEWLAYER: haven/redcomplementary
|
||||
layerinfo "type" = "theme";
|
||||
layerinfo "name" = "Bylind";
|
||||
layerinfo "redist_uniq" = "haven/redcomplementary";
|
||||
|
||||
set color_scheme_base = "#F35951";
|
||||
set color_scheme = "complementary";
|
||||
|
||||
#NEWLAYER: haven/redsplit_complementary
|
||||
layerinfo "type" = "theme";
|
||||
layerinfo "name" = "Qiradia";
|
||||
layerinfo "redist_uniq" = "haven/redsplit_complementary";
|
||||
|
||||
set color_scheme_base = "#F35951";
|
||||
set color_scheme = "split_complementary";
|
||||
|
||||
#NEWLAYER: haven/reddouble_complementary
|
||||
layerinfo "type" = "theme";
|
||||
layerinfo "name" = "Kairawen";
|
||||
layerinfo "redist_uniq" = "haven/reddouble_complementary";
|
||||
|
||||
set color_scheme_base = "#F35951";
|
||||
set color_scheme = "double_complementary";
|
||||
|
||||
#NEWLAYER: haven/redtriadic
|
||||
layerinfo "type" = "theme";
|
||||
layerinfo "name" = "Piliwien";
|
||||
layerinfo "redist_uniq" = "haven/redtriadic";
|
||||
|
||||
set color_scheme_base = "#F35951";
|
||||
set color_scheme = "triadic";
|
||||
|
||||
#NEWLAYER: haven/redtetradic
|
||||
layerinfo "type" = "theme";
|
||||
layerinfo "name" = "Gwiradia";
|
||||
layerinfo "redist_uniq" = "haven/redtetradic";
|
||||
|
||||
set color_scheme_base = "#F35951";
|
||||
set color_scheme = "tetradic";
|
||||
|
||||
#NEWLAYER: haven/indigomonochromatic
|
||||
layerinfo "type" = "theme";
|
||||
layerinfo "name" = "Elirethiel";
|
||||
layerinfo "redist_uniq" = "haven/indigomonochromatic";
|
||||
|
||||
set color_scheme_base = "#6F60C7";
|
||||
set color_scheme = "monochromatic";
|
||||
|
||||
#NEWLAYER: haven/indigoanalogous
|
||||
layerinfo "type" = "theme";
|
||||
layerinfo "name" = "Oneawia";
|
||||
layerinfo "redist_uniq" = "haven/indigoanalogous";
|
||||
|
||||
set color_scheme_base = "#6F60C7";
|
||||
set color_scheme = "analogous";
|
||||
|
||||
#NEWLAYER: haven/indigocomplementary
|
||||
layerinfo "type" = "theme";
|
||||
layerinfo "name" = "Gwicia";
|
||||
layerinfo "redist_uniq" = "haven/indigocomplementary";
|
||||
|
||||
set color_scheme_base = "#6F60C7";
|
||||
set color_scheme = "complementary";
|
||||
|
||||
#NEWLAYER: haven/indigosplit_complementary
|
||||
layerinfo "type" = "theme";
|
||||
layerinfo "name" = "Grabeth";
|
||||
layerinfo "redist_uniq" = "haven/indigosplit_complementary";
|
||||
|
||||
set color_scheme_base = "#6F60C7";
|
||||
set color_scheme = "split_complementary";
|
||||
|
||||
#NEWLAYER: haven/indigodouble_complementary
|
||||
layerinfo "type" = "theme";
|
||||
layerinfo "name" = "Alalicien";
|
||||
layerinfo "redist_uniq" = "haven/indigodouble_complementary";
|
||||
|
||||
set color_scheme_base = "#6F60C7";
|
||||
set color_scheme = "double_complementary";
|
||||
|
||||
#NEWLAYER: haven/indigotriadic
|
||||
layerinfo "type" = "theme";
|
||||
layerinfo "name" = "Legeinia";
|
||||
layerinfo "redist_uniq" = "haven/indigotriadic";
|
||||
|
||||
set color_scheme_base = "#6F60C7";
|
||||
set color_scheme = "triadic";
|
||||
|
||||
#NEWLAYER: haven/indigotetradic
|
||||
layerinfo "type" = "theme";
|
||||
layerinfo "name" = "Olowen";
|
||||
layerinfo "redist_uniq" = "haven/indigotetradic";
|
||||
|
||||
set color_scheme_base = "#6F60C7";
|
||||
set color_scheme = "tetradic";
|
||||
|
||||
161
livejournal/bin/upgrading/s2layers/i18nc/da1.s2
Executable file
@@ -0,0 +1,161 @@
|
||||
#-*-s2-*- ;; -*- coding: utf-8 -*-
|
||||
|
||||
layerinfo "type" = "i18nc";
|
||||
layerinfo "redist_uniq" = "i18nc/da1";
|
||||
layerinfo "name" = "Danish";
|
||||
layerinfo "langcode" = "da";
|
||||
layerinfo "author_name" = "LiveJournal Danish Translation Team";
|
||||
layerinfo "author_email" = "lj_dansk@livejournal.com";
|
||||
|
||||
layerinfo "source_viewable" = 1;
|
||||
|
||||
set lang_current = "da";
|
||||
|
||||
#[[ date and time l12n ]]
|
||||
|
||||
# Kort datoformat
|
||||
set lang_fmt_date_short = "%%d%%/%%m%%/%%yy%%";
|
||||
# Mellem dato
|
||||
set lang_fmt_date_med = "%%dayord%% %%mon%%., %%yyyy%%";
|
||||
# Mellem dato med forkortet ugedag
|
||||
set lang_fmt_date_med_day = "%%da%%, d. %%dayord%% %%mon%%., %%yyyy%%";
|
||||
# Lang dato
|
||||
set lang_fmt_date_long = "%%dayord%% %%month%%, %%yyyy%%";
|
||||
# Lang dato med ugedag
|
||||
set lang_fmt_date_long_day = "%%day%%, d. %%dayord%% %%month%%, %%yyyy%%";
|
||||
# Tidsformat
|
||||
set lang_fmt_time_short = "%%HH%%:%%min%%";
|
||||
# Kort månedsformat (samme som engelsk)
|
||||
set lang_fmt_month_short = "%%m%%/%%yy%%";
|
||||
# Mellem måned (samme som engelsk)
|
||||
set lang_fmt_month_med = "%%mon%% %%yyyy%%";
|
||||
# Lang måned (samme som engelsk)
|
||||
set lang_fmt_month_long = "%%month%% %%yyyy%%";
|
||||
# Årets måneder, lang
|
||||
set lang_monthname_long = [ "", "Januar", "Februar", "Marts",
|
||||
"April", "Maj", "Juni",
|
||||
"Juli", "August", "September",
|
||||
"Oktober", "November", "December" ];
|
||||
# Årets måneder, kort
|
||||
set lang_monthname_short = [ "", "Jan", "Feb", "Mar",
|
||||
"Apr", "Maj", "Jun",
|
||||
"Jul", "Aug", "Sep",
|
||||
"Okt", "Nov", "Dec" ];
|
||||
# Ugens dage, lang
|
||||
set lang_dayname_long = [ "", "Søndag", "Mandag", "Tirsdag", "Onsdag",
|
||||
"Torsdag", "Fredag", "Lørdag" ];
|
||||
# Ugens dage, kort
|
||||
set lang_dayname_short = [ "", "Søn", "Man", "Tirs", "Ons",
|
||||
"Tors", "Fre", "Lør" ];
|
||||
set reg_firstdayofweek = "monday";
|
||||
|
||||
#[[ texttranslation ]]
|
||||
|
||||
# Currents
|
||||
set text_meta_music = "Nuværende musik";
|
||||
set text_meta_mood = "Nuværende humør";
|
||||
# Comments
|
||||
set text_post_comment = "Skriv kommentar";
|
||||
set text_read_comments = "1 kommentar // # kommentarer";
|
||||
set text_post_comment_friends = "Skriv kommentar";
|
||||
set text_read_comments_friends = "1 kommentar // # kommentarer";
|
||||
# Skiplinks
|
||||
set text_skiplinks_back="Forrige #";
|
||||
set text_skiplinks_forward="Næste #";
|
||||
# Views
|
||||
set text_view_recent = "Seneste poster";
|
||||
set text_view_friends = "Venner";
|
||||
set text_view_archive = "Arkiv";
|
||||
set text_view_userinfo = "Brugerinfo";
|
||||
set text_view_month = "Vis emner"; # "Vis overskrifter"?
|
||||
# Misc. texts
|
||||
set text_nosubject = "(intet emne)";
|
||||
set text_noentries_recent = "Der er ingen poster at vise.";
|
||||
set text_noentries_day = "Der blev ikke skrevet nogle poster denne dag.";
|
||||
set text_permalink = "Link";
|
||||
set text_month_screened_comments = "m. skærmede";
|
||||
set text_multiform_check = "Vælg:";
|
||||
set text_multiform_des = "Massehandling på valgte kommentarer:";
|
||||
set text_multiform_btn = "Udfør handling";
|
||||
set text_multiform_opt_unscreen = "Afskærm";
|
||||
set text_multiform_opt_screen = "Skærm";
|
||||
set text_multiform_opt_delete = "Slet";
|
||||
set text_multiform_conf_delete = "Slet valgte kommentarer?";
|
||||
set text_day_prev = "Forrige dag";
|
||||
set text_day_next = "Næste dag";
|
||||
set text_comment_from = "Fra:";
|
||||
set text_comment_date = "Dato:";
|
||||
set text_comment_ipaddr = "IP adresse:";
|
||||
set text_comment_reply = "Svar";
|
||||
set text_comment_parent = "Forælder";
|
||||
set text_comment_thread = "Tråd";
|
||||
set text_reply_back = "Læs kommentarer";
|
||||
set text_reply_nocomments_header = "Kommentarer slået fra:";
|
||||
set text_reply_nocomments = "Kommentarer til denne post er blevet slået fra.";
|
||||
set text_poster_anonymous = "(Anonym)";
|
||||
set text_website_default_name = "Mit websted";
|
||||
|
||||
#[[ function translations ]]
|
||||
|
||||
# Samme som engelsk:
|
||||
#function lang_map_plural (int n) : int {
|
||||
# if ($n == 1) { return 0; } # singular
|
||||
# return 1; # plural
|
||||
#}
|
||||
|
||||
function lang_page_of_pages (int pg, int pgs) [notags] : string {
|
||||
return "Side $pg af $pgs";
|
||||
}
|
||||
|
||||
function lang_ordinal(int num) [notags] : string {
|
||||
return $num+".";
|
||||
}
|
||||
|
||||
function lang_user_wrote(UserLite u) : string
|
||||
"Returns text describing that the user wrote something. i18nc layers should override this."
|
||||
{
|
||||
if (defined $u) {
|
||||
return $u->as_string()+" skrev";
|
||||
}
|
||||
else {
|
||||
return "En anonym bruger skrev";
|
||||
}
|
||||
}
|
||||
|
||||
function lang_at_datetime(DateTime d) : string
|
||||
"Returns a string saying \"at {the data and time given}\". Used in the core implementation of EntryPage and ReplyPage. i18nc layers should override this."
|
||||
{
|
||||
# return "d. 1. Januar, 2004, kl. 23:01";
|
||||
return "d. " + $d->date_format("long") + ", kl. " + $d->time_format();
|
||||
}
|
||||
### Ovenstående skal testes i brug ASAP. ###
|
||||
|
||||
function lang_viewname(string viewid) [notags] : string
|
||||
"Get some words representing a view"
|
||||
{
|
||||
if ($viewid == "recent") { return $*text_view_recent; }
|
||||
if ($viewid == "archive") { return $*text_view_archive; }
|
||||
if ($viewid == "friends") { return $*text_view_friends; }
|
||||
if ($viewid == "day") { return "Dag"; }
|
||||
if ($viewid == "month") { return "Måned"; }
|
||||
if ($viewid == "userinfo") { return $*text_view_userinfo; }
|
||||
if ($viewid == "entry") { return "Læs kommentarer"; }
|
||||
if ($viewid == "reply") { return "Skriv kommentar"; }
|
||||
return "Ukendt visningstype";
|
||||
}
|
||||
|
||||
function server_sig() {
|
||||
"""Kørt af <a href="$*SITEROOT/">$*SITENAME</a>""";
|
||||
}
|
||||
|
||||
function ReplyPage::view_title() : string {
|
||||
return "Skriv kommentar";
|
||||
}
|
||||
|
||||
function Page::print_entry_poster(Entry e) {
|
||||
$e.poster->print();
|
||||
if ($.view == "friends" and $e.poster.username != $e.journal.username) {
|
||||
" skrev i ";
|
||||
$e.journal->print();
|
||||
}
|
||||
}
|
||||
147
livejournal/bin/upgrading/s2layers/i18nc/de1.s2
Executable file
@@ -0,0 +1,147 @@
|
||||
#-*-s2-*- ;; -*- coding: utf-8 -*-
|
||||
|
||||
layerinfo "type" = "i18nc";
|
||||
layerinfo "redist_uniq" = "i18nc/de1";
|
||||
layerinfo "name" = "German";
|
||||
layerinfo "langcode" = "de";
|
||||
layerinfo "author_name" = "Timwi";
|
||||
layerinfo "author_email" = "timwi@livejournal.com";
|
||||
|
||||
layerinfo "source_viewable" = 1;
|
||||
|
||||
set lang_current = "de";
|
||||
|
||||
# Kurzes Datumsformat
|
||||
set lang_fmt_date_short = "%%d%%.%%m%%.%%yy%%";
|
||||
# Mittellanges Datumsformat
|
||||
set lang_fmt_date_med = "%%dayord%% %%mon%% %%yyyy%%";
|
||||
# Mittellanges Datumsformat mit Wochentag
|
||||
set lang_fmt_date_med_day = "%%da%%, %%dayord%% %%mon%% %%yyyy%%";
|
||||
# Langes Datumsformat
|
||||
set lang_fmt_date_long = "%%dayord%% %%month%% %%yyyy%%";
|
||||
# Langes Datumsformat mit Wochentag
|
||||
set lang_fmt_date_long_day = "%%day%%, %%dayord%% %%month%% %%yyyy%%";
|
||||
# Zeitformat
|
||||
set lang_fmt_time_short = "%%HH%%:%%min%%";
|
||||
# Kurzes Monatsformat
|
||||
#set lang_fmt_month_short = "%%mon%% %%yy%%";
|
||||
# Mittleres Monatsformat
|
||||
#set lang_fmt_month_med = "%%mon%% %%yyyy%%";
|
||||
# Langes Monatsformat
|
||||
#set lang_fmt_month_long = "%%month%% %%yyyy%%";
|
||||
# Monatsnamen
|
||||
set lang_monthname_long = [ "", "Januar", "Februar", "März",
|
||||
"April", "Mai", "Juni",
|
||||
"Juli", "August", "September",
|
||||
"Oktober", "November", "Dezember" ];
|
||||
# Monatsabkürzungen
|
||||
set lang_monthname_short = [ "", "Jan", "Feb", "Mär",
|
||||
"Apr", "Mai", "Jun",
|
||||
"Jul", "Aug", "Sep",
|
||||
"Okt", "Nov", "Dez" ];
|
||||
# Wochentagnamen
|
||||
set lang_dayname_long = [ "", "Sonntag", "Montag", "Dienstag", "Mittwoch",
|
||||
"Donnerstag", "Freitag", "Samstag" ];
|
||||
# Wochentagabkürzungen
|
||||
set lang_dayname_short = [ "", "So", "Mo", "Di", "Mi",
|
||||
"Do", "Fr", "Sa" ];
|
||||
set reg_firstdayofweek = "monday";
|
||||
|
||||
#[[ texttranslation ]]
|
||||
|
||||
# Currents
|
||||
set text_meta_music = "Aktuelle Musik";
|
||||
set text_meta_mood = "Aktuelle Stimmung";
|
||||
# Comments
|
||||
set text_post_comment = "Kommentar hinterlassen";
|
||||
set text_read_comments = "1 Kommentar // # Kommentare";
|
||||
set text_post_comment_friends = "Kommentar hinterlassen";
|
||||
set text_read_comments_friends = "1 Kommentar // # Kommentare";
|
||||
# Skiplinks
|
||||
set text_skiplinks_back="Vorherige #";
|
||||
set text_skiplinks_forward="Nächste #";
|
||||
# Views
|
||||
set text_view_recent = "Neueste Einträge";
|
||||
set text_view_friends = "Freunde";
|
||||
set text_view_archive = "Archiv";
|
||||
set text_view_userinfo = "Benutzerprofil";
|
||||
set text_view_month = "Monatsansicht"; # "Vis overskrifter"?
|
||||
# Misc. texts
|
||||
set text_nosubject = "(kein Betreff)";
|
||||
set text_noentries_recent = "Keine Einträge.";
|
||||
set text_noentries_day = "An diesem Tag wurden keine Einträge gemacht.";
|
||||
set text_permalink = "Link";
|
||||
set text_month_screened_comments = "zzgl. verdeckte";
|
||||
set text_multiform_check = "Auswählen:";
|
||||
set text_multiform_des = "Alle ausgewählten Kommentare:";
|
||||
set text_multiform_btn = "Ausführen";
|
||||
set text_multiform_opt_unscreen = "Aufdecken";
|
||||
set text_multiform_opt_screen = "Verdecken";
|
||||
set text_multiform_opt_delete = "Löschen";
|
||||
set text_multiform_conf_delete = "Bist du dir sicher, dass du die ausgewählten Kommentare löschen möchtest?";
|
||||
set text_day_prev = "Vorheriger Tag";
|
||||
set text_day_next = "Nächster Tag";
|
||||
set text_comment_from = "Von:";
|
||||
set text_comment_date = "Datum:";
|
||||
set text_comment_ipaddr = "IP-Adresse:";
|
||||
set text_comment_reply = "Darauf antworten";
|
||||
set text_comment_parent = "Kommentar davor";
|
||||
set text_comment_thread = "Nachfolgende Kommentare";
|
||||
set text_reply_back = "Kommentare lesen";
|
||||
set text_reply_nocomments_header = "Kommentarfunktion deaktiviert:";
|
||||
set text_reply_nocomments = "Für diesen Eintrag wurde die Kommentarfunktion deaktiviert.";
|
||||
set text_website_default_name = "Meine Webseite";
|
||||
set text_poster_anonymous = "(Anonym)";
|
||||
|
||||
#[[ function translations ]]
|
||||
|
||||
function lang_page_of_pages (int pg, int pgs) [notags] : string {
|
||||
return "Seite $pg von $pgs";
|
||||
}
|
||||
|
||||
function lang_ordinal(int num) [notags] : string {
|
||||
return $num+".";
|
||||
}
|
||||
|
||||
function lang_viewname(string viewid) [notags] : string
|
||||
"Get some words representing a view"
|
||||
{
|
||||
if ($viewid == "recent") { return $*text_view_recent; }
|
||||
if ($viewid == "archive") { return $*text_view_archive; }
|
||||
if ($viewid == "friends") { return $*text_view_friends; }
|
||||
if ($viewid == "day") { return "Tag"; }
|
||||
if ($viewid == "month") { return "Monat"; }
|
||||
if ($viewid == "userinfo") { return $*text_view_userinfo; }
|
||||
if ($viewid == "entry") { return "Kommentare lesen"; }
|
||||
if ($viewid == "reply") { return "Kommentar hinterlassen"; }
|
||||
return "Unbekannte Ansicht";
|
||||
}
|
||||
|
||||
function ReplyPage::view_title() : string {
|
||||
return "Kommentar hinterlassen";
|
||||
}
|
||||
|
||||
function server_sig() {
|
||||
"""Gehostet von <a href="$*SITEROOT/">$*SITENAME</a>""";
|
||||
}
|
||||
|
||||
function Page::print_entry_poster(Entry e) {
|
||||
$e.poster->print();
|
||||
if ($.view == "friends" and $e.poster.username != $e.journal.username) {
|
||||
" schrieb in ";
|
||||
$e.journal->print();
|
||||
}
|
||||
}
|
||||
|
||||
function lang_user_wrote(UserLite u) : string "Returns text describing that the user wrote something. i18nc layers should override this." {
|
||||
if (defined $u) {
|
||||
return $u->as_string()+" schrieb";
|
||||
}
|
||||
else {
|
||||
return "Ein anonymer Benutzer schrieb";
|
||||
}
|
||||
}
|
||||
|
||||
function lang_at_datetime(DateTime d) : string "Returns a string saying \"at {the date and time given}\". Used in the core implementation of EntryPage and ReplyPage. i18nc layers should override this." {
|
||||
return "am " + $d->date_format("long") + " um " + $d->time_format();
|
||||
}
|
||||
9
livejournal/bin/upgrading/s2layers/i18nc/en1.s2
Executable file
@@ -0,0 +1,9 @@
|
||||
#-*-s2-*-
|
||||
|
||||
layerinfo "type" = "i18nc";
|
||||
layerinfo "redist_uniq" = "i18nc/en1";
|
||||
layerinfo "name" = "English";
|
||||
layerinfo "langcode" = "en";
|
||||
|
||||
# Note: this file doesn't actually override anything, since the core
|
||||
# is in English
|
||||
139
livejournal/bin/upgrading/s2layers/i18nc/eo1.s2
Executable file
@@ -0,0 +1,139 @@
|
||||
#-*-s2-*- ;; -*- coding: utf-8 -*-
|
||||
|
||||
layerinfo "type" = "i18nc";
|
||||
layerinfo "redist_uniq" = "i18nc/eo1";
|
||||
layerinfo "name" = "Esperanto";
|
||||
layerinfo "langcode" = "eo";
|
||||
layerinfo "author_name" = "Timwi, Amuzulo";
|
||||
layerinfo "author_email" = "timwi@livejournal.com, amuzulo@livejournal.com";
|
||||
|
||||
layerinfo "source_viewable" = 1;
|
||||
|
||||
set lang_current = "eo";
|
||||
|
||||
set lang_fmt_date_short = "%%yyyy%%-%%mm%%-%%dd%%";
|
||||
set lang_fmt_date_med = "%%dayord%% de %%mon%% %%yyyy%%";
|
||||
set lang_fmt_date_med_day = "%%da%%, la %%dayord%% de %%mon%% %%yyyy%%";
|
||||
set lang_fmt_date_long = "la %%dayord%% de %%month%% %%yyyy%%";
|
||||
set lang_fmt_date_long_day = "%%day%%, la %%dayord%% de %%month%% %%yyyy%%";
|
||||
|
||||
set lang_fmt_time_short = "%%HH%%:%%min%%";
|
||||
set lang_fmt_month_short = "%%mon%% %%yy%%";
|
||||
set lang_fmt_month_med = "%%mon%% %%yyyy%%";
|
||||
set lang_fmt_month_long = "%%month%% %%yyyy%%";
|
||||
|
||||
set lang_monthname_long = [ "", "januaro", "februaro", "marto",
|
||||
"aprilo", "majo", "junio",
|
||||
"julio", "aŭgusto", "septembro",
|
||||
"oktobro", "novembro", "decembro" ];
|
||||
|
||||
set lang_monthname_short = [ "", "jan", "feb", "mar",
|
||||
"apr", "maj", "jun",
|
||||
"jul", "aŭg", "sep",
|
||||
"okt", "nov", "dec" ];
|
||||
|
||||
set lang_dayname_long = [ "", "dimanĉo", "lundo", "mardo", "merkredo",
|
||||
"ĵaŭdo", "vendredo", "sabato" ];
|
||||
|
||||
set lang_dayname_short = [ "", "di", "lu", "ma", "me",
|
||||
"ĵa", "ve", "sa" ];
|
||||
set reg_firstdayofweek = "monday";
|
||||
|
||||
#[[ texttranslation ]]
|
||||
|
||||
# Currents
|
||||
set text_meta_music = "Nuna muziko";
|
||||
set text_meta_mood = "Nuna humoro";
|
||||
# Comments
|
||||
set text_post_comment = "Afiŝu novan komenton";
|
||||
set text_read_comments = "1 komento // # komentoj";
|
||||
set text_post_comment_friends = "Afiŝu novan komenton";
|
||||
set text_read_comments_friends = "1 komento // # komentoj";
|
||||
# Skiplinks
|
||||
set text_skiplinks_back="# antaŭaj komentoj";
|
||||
set text_skiplinks_forward="# sekvontaj komentoj";
|
||||
# Views
|
||||
set text_view_recent = "Lastatempaj enskribojn";
|
||||
set text_view_friends = "Geamikoj";
|
||||
set text_view_archive = "Arĥivo";
|
||||
set text_view_userinfo = "Uzantinformoj";
|
||||
set text_view_month = "Monataj temoj";
|
||||
# Misc. texts
|
||||
set text_nosubject = "(neniu temo)";
|
||||
set text_noentries_recent = "Neniuj enskriboj.";
|
||||
set text_noentries_day = "Ekzistas neniuj enskriboj en tiu tago.";
|
||||
set text_permalink = "Ligilo";
|
||||
set text_month_screened_comments = "+ kaŝitoj";
|
||||
set text_multiform_check = "Elektu:";
|
||||
set text_multiform_des = "Amasagado por elektitaj komentoj:";
|
||||
set text_multiform_btn = "Agu";
|
||||
set text_multiform_opt_unscreen = "Malkaŝu";
|
||||
set text_multiform_opt_screen = "Kaŝu";
|
||||
set text_multiform_opt_delete = "Forigu";
|
||||
set text_multiform_conf_delete = "Ĉu vi certas ke vi viŝas forigi la elektitajn komentojn?";
|
||||
set text_day_prev = "Antaŭa tago";
|
||||
set text_day_next = "Sekvonta tago";
|
||||
set text_comment_from = "De:";
|
||||
set text_comment_date = "Dato:";
|
||||
set text_comment_ipaddr = "IP-adreso:";
|
||||
set text_comment_reply = "Respondu al ĉi tiu";
|
||||
set text_comment_parent = "Patro";
|
||||
set text_comment_thread = "Fadeno";
|
||||
set text_reply_back = "Legu komentojn";
|
||||
set text_reply_nocomments_header = "Komentoj malebligitaj:";
|
||||
set text_reply_nocomments = "La uzanto malebligis komentojn por ĉi tiu enskribo.";
|
||||
set text_website_default_name = "Mia TTT-ejo";
|
||||
set text_poster_anonymous = "(sennoma)";
|
||||
|
||||
#[[ function translations ]]
|
||||
|
||||
function lang_page_of_pages (int pg, int pgs) [notags] : string {
|
||||
return "Paĝo $pg da $pgs";
|
||||
}
|
||||
|
||||
function lang_ordinal(int num) [notags] : string {
|
||||
return $num + "-a";
|
||||
}
|
||||
|
||||
function lang_viewname(string viewid) [notags] : string
|
||||
"Get some words representing a view"
|
||||
{
|
||||
if ($viewid == "recent") { return $*text_view_recent; }
|
||||
if ($viewid == "archive") { return $*text_view_archive; }
|
||||
if ($viewid == "friends") { return $*text_view_friends; }
|
||||
if ($viewid == "day") { return "Tago"; }
|
||||
if ($viewid == "month") { return "Monato"; }
|
||||
if ($viewid == "userinfo") { return $*text_view_userinfo; }
|
||||
if ($viewid == "entry") { return "Legu komentojn"; }
|
||||
if ($viewid == "reply") { return "Afiŝu komenton"; }
|
||||
return "Nekonata vido";
|
||||
}
|
||||
|
||||
function ReplyPage::view_title() : string {
|
||||
return "Afiŝu komenton";
|
||||
}
|
||||
|
||||
function server_sig() {
|
||||
"""Funkciigita de <a href="$*SITEROOT/">$*SITENAME</a>""";
|
||||
}
|
||||
|
||||
function Page::print_entry_poster(Entry e) {
|
||||
$e.poster->print();
|
||||
if ($.view == "friends" and $e.poster.username != $e.journal.username) {
|
||||
" skribis en ";
|
||||
$e.journal->print();
|
||||
}
|
||||
}
|
||||
|
||||
function lang_user_wrote(UserLite u) : string "Returns text describing that the user wrote something. i18nc layers should override this." {
|
||||
if (defined $u) {
|
||||
return $u->as_string()+" skribis";
|
||||
}
|
||||
else {
|
||||
return "Sennoma uzanto skribis";
|
||||
}
|
||||
}
|
||||
|
||||
function lang_at_datetime(DateTime d) : string "Returns a string saying \"at {the date and time given}\". Used in the core implementation of EntryPage and ReplyPage. i18nc layers should override this." {
|
||||
return "je " + $d->date_format("long") + " je " + $d->time_format();
|
||||
}
|
||||
171
livejournal/bin/upgrading/s2layers/i18nc/fi1.s2
Executable file
@@ -0,0 +1,171 @@
|
||||
#-*-s2-*- ;; -*- coding: utf-8 -*-
|
||||
|
||||
layerinfo "type" = "i18nc";
|
||||
layerinfo "redist_uniq" = "i18nc/fi1";
|
||||
layerinfo "name" = "Finnish";
|
||||
layerinfo "langcode" = "fi";
|
||||
layerinfo "author_name" = "shiningkianna, zell_d";
|
||||
|
||||
layerinfo "source_viewable" = 1;
|
||||
|
||||
set lang_current = "fi";
|
||||
|
||||
# Ajat ja päiväykset
|
||||
|
||||
# Viikonpäivät
|
||||
set lang_dayname_long = [ "", "sunnuntai", "maanantai", "tiistai", "keskiviikko", "torstai", "perjantai", "lauantai" ];
|
||||
set lang_dayname_short = [ "", "su", "ma", "ti", "ke", "to", "pe", "la" ];
|
||||
|
||||
# Pitkä päiväys
|
||||
set lang_fmt_date_long = "%%dayord%% %%month%%ta %%yyyy%%";
|
||||
# Pitkä päiväys viikonpäivällä
|
||||
set lang_fmt_date_long_day = "%%day%%, %%dayord%% %%month%%ta %%yyyy%%";
|
||||
# Keskipitkä päiväys
|
||||
set lang_fmt_date_med = "%%d%%. %%mon%%. %%yyyy%%";
|
||||
# Keskipitkä päiväys viikonpäivällä
|
||||
set lang_fmt_date_med_day = "%%da%%, %%dayord%% %%mon%%. %%yyyy%%";
|
||||
# Lyhyt päiväys
|
||||
set lang_fmt_date_short = "%%d%%.%%m%%.%%yyyy%%";
|
||||
# Pitkä kuukausipäiväys
|
||||
set lang_fmt_month_long = "%%month%% %%yyyy%%";
|
||||
# Keskipitkä kuukausipäiväys
|
||||
set lang_fmt_month_med = "%%mon%% %%yyyy%%";
|
||||
# Lyhyt kuukausipäiväys
|
||||
set lang_fmt_month_short = "%%m%%/%%yyyy%%";
|
||||
# Aika
|
||||
set lang_fmt_time_short ="%%HH%%:%%min%%";
|
||||
|
||||
# Kuukaudet
|
||||
set lang_monthname_long = [ "", "tammikuu", "helmikuu", "maaliskuu", "huhtikuu", "toukokuu", "kesäkuu", "heinäkuu", "elokuu", "syyskuu", "lokakuu", "marraskuu", "joulukuu" ];
|
||||
set lang_monthname_short = [ "", "tammik", "helmik", "maalisk", "huhtik", "toukok", "kesäk", "heinäk", "elok", "syysk", "lokak", "marrask", "jouluk" ];
|
||||
|
||||
# Viikko alkaa maanantaista
|
||||
set reg_firstdayofweek = "monday";
|
||||
|
||||
|
||||
# Tekstit
|
||||
|
||||
# Tämänhetkinen musiikki ja mieliala
|
||||
set text_meta_mood = "Mieliala";
|
||||
set text_meta_music = "Musiikki";
|
||||
# Kommentit
|
||||
set text_post_comment = "Jätä vastaus tähän";
|
||||
set text_post_comment_friends = "Jätä vastaus tähän";
|
||||
set text_read_comments = "1 kommentti // # kommenttia";
|
||||
set text_read_comments_friends = "1 kommentti // # kommenttia";
|
||||
# Linkit, joilla hypätään viestien yli
|
||||
set text_skiplinks_back = "Edelliset #";
|
||||
set text_skiplinks_forward = "Seuraavat #";
|
||||
# Näkymät
|
||||
set text_view_archive = "Arkisto";
|
||||
set text_view_friends = "Kaverit";
|
||||
set text_view_friends_comm = "Jäsenet";
|
||||
set text_view_friends_filter = "Kaverit (mukautettu suodatin)";
|
||||
set text_view_friendsfriends = "Kavereiden kaverit";
|
||||
set text_view_friendsfriends_filter = "Kavereiden kaverit (mukautettu suodatin)";
|
||||
set text_view_month = "Otsikot";
|
||||
set text_view_recent = "Merkinnät";
|
||||
set text_view_userinfo = "Käyttäjätiedot";
|
||||
# Sekalaisia tekstejä
|
||||
set text_comment_date = "Päiväys:";
|
||||
set text_comment_from = "Lähettäjä:";
|
||||
set text_comment_frozen = "Jäädytetty";
|
||||
set text_comment_ipaddr = "IP-osoite:";
|
||||
set text_comment_parent = "Ylempi";
|
||||
set text_comment_reply = "Vastaa";
|
||||
set text_comment_thread = "Viestiketju";
|
||||
set text_day_next = "Seuraava päivä";
|
||||
set text_day_prev = "Edellinen päivä";
|
||||
set text_max_comments = "Maksimimäärä kommentteja saatu";
|
||||
set text_month_screened_comments = "ja peitettyjä kommentteja";
|
||||
set text_multiform_btn = "Muokkaa";
|
||||
set text_multiform_check = "Valitse:";
|
||||
set text_multiform_conf_delete = "Poista valitut kommentit?";
|
||||
set text_multiform_des = "Muokkaa kaikkia valittuja kommentteja:";
|
||||
set text_multiform_opt_delete = "Poista";
|
||||
set text_multiform_opt_freeze = "Jäädytä";
|
||||
set text_multiform_opt_screen = "Peitä";
|
||||
set text_multiform_opt_unfreeze = "Poista jäädytys";
|
||||
set text_multiform_opt_unscreen = "Poista peitto";
|
||||
set text_noentries_day = "Kyseisenä päivänä ei tehty merkintöjä";
|
||||
set text_noentries_recent = "Ei merkintöjä";
|
||||
set text_nosubject = "(ei otsikkoa)";
|
||||
set text_permalink = "Linkki";
|
||||
set text_poster_anonymous = "(tuntematon)";
|
||||
set text_reply_back = "Lue kommentteja";
|
||||
set text_reply_nocomments = "Kommentointi on estetty tämän merkinnän kohdalla";
|
||||
set text_reply_nocomments_header = "Kommentointi estetty:";
|
||||
set text_website_default_name = "Kotisivut";
|
||||
|
||||
|
||||
# Funktiot
|
||||
|
||||
|
||||
# Antaa eri tuloksen riippuen siitä tuleeko tekstiä käsitellä yksikkönä vai monikkona
|
||||
function lang_map_plural (int n) : int {
|
||||
if ($n == 1) { return 0; } # singular
|
||||
return 1; # plural
|
||||
}
|
||||
|
||||
# Palauttaa tekstin "Sivu X/Y", esim. Sivu 3/5
|
||||
function lang_page_of_pages (int pg, int pgs) [notags] : string {
|
||||
return "Sivu $pg/$pgs";
|
||||
}
|
||||
|
||||
# Tekee numerosta järjestysnumeron, eli laittaa numeron perään pisteen
|
||||
function lang_ordinal(int num) : string {
|
||||
return $num+".";
|
||||
}
|
||||
|
||||
# Palauttaa tekstin joka kertoo millainen näkymä on kyseessä
|
||||
function lang_viewname(string viewid) [notags] : string "Get some words representing a view" {
|
||||
if ($viewid == "recent") { return $*text_view_recent; }
|
||||
if ($viewid == "archive") { return $*text_view_archive; }
|
||||
if ($viewid == "friends") { return $*text_view_friends; }
|
||||
if ($viewid == "day") { return "Päivä"; }
|
||||
if ($viewid == "month") { return "Kuukausi"; }
|
||||
if ($viewid == "userinfo") { return $*text_view_userinfo; }
|
||||
if ($viewid == "entry") { return "Lue kommentteja"; }
|
||||
if ($viewid == "reply") { return "Jätä kommentti"; }
|
||||
return "Tuntematon näkymä";
|
||||
}
|
||||
|
||||
# Vastaussivun otsikko
|
||||
function ReplyPage::view_title() : string {
|
||||
return "Jätä kommentti";
|
||||
}
|
||||
|
||||
# Kirjoittaa palvelimen allekirjoituksen,
|
||||
# Esim. "Sivun tarjoaa LiveJournal.com"
|
||||
function server_sig() {
|
||||
"""Sivun tarjoaa <a href="$*SITEROOT/">$*SITENAME</a>""";
|
||||
}
|
||||
|
||||
# Kirjoittaa kaverisivulla tekstin, joka kertoo missä yhteisössä joku kirjoitti jotakin,
|
||||
# Esim. "Esimerkkilähettäjä kirjoitti yhteisössä esimerkkiyhteisö"
|
||||
function Page::print_entry_poster(Entry e) {
|
||||
$e.poster->print();
|
||||
if ($.view == "friends" and $e.poster.username != $e.journal.username) {
|
||||
" kirjoitti yhteisössä ";
|
||||
$e.journal->print();
|
||||
}
|
||||
}
|
||||
|
||||
# Palauttaa tekstin joka kertoo että joku kirjoitti,
|
||||
# Esim. "Esimerkkikäyttäjä kirjoitti" tai "Tuntematon käyttäjä kirjoitti"
|
||||
function lang_user_wrote(UserLite u) : string "Returns text describing that the user wrote something. i18nc layers should override this." {
|
||||
if (defined $u) {
|
||||
return $u->as_string()+" kirjoitti";
|
||||
}
|
||||
else {
|
||||
return "Tuntematon käyttäjä kirjoitti";
|
||||
}
|
||||
}
|
||||
|
||||
# Palauttaa tekstin joka ilmoittaa päiväyksen ja kellonajan,
|
||||
# Esim. "3. lokakuuta 2004 kello 14:45"
|
||||
function lang_at_datetime(DateTime d) : string "Returns a string saying \"at {the date and time given}\". Used in the core implementation of EntryPage and ReplyPage. i18nc layers should override this." {
|
||||
return $d->date_format("long") + " kello " + $d->time_format();
|
||||
}
|
||||
|
||||
|
||||
144
livejournal/bin/upgrading/s2layers/i18nc/fr1.s2
Executable file
@@ -0,0 +1,144 @@
|
||||
#-*-s2-*- ;; -*- coding: utf-8 -*-
|
||||
|
||||
layerinfo "type" = "i18nc";
|
||||
layerinfo "redist_uniq" = "i18nc/fr1";
|
||||
layerinfo "name" = "French";
|
||||
layerinfo "langcode" = "fr";
|
||||
layerinfo "author_name" = "Timwi, Diziet Sma, Eclips1st";
|
||||
layerinfo "author_email" = "timwi@livejournal.com, dizietsma@livejournal.com, eclips1st@livejournal.com";
|
||||
|
||||
layerinfo "source_viewable" = 1;
|
||||
|
||||
set lang_current = "fr";
|
||||
|
||||
set lang_fmt_date_short = "%%d%% %%mon%% %%yy%%";
|
||||
set lang_fmt_date_med = "%%dd%% %%mon%% %%yyyy%%";
|
||||
set lang_fmt_date_med_day = "%%da%%, le %%dd%% %%mon%% %%yyyy%%";
|
||||
set lang_fmt_date_long = "le %%dd%% %%month%% %%yyyy%%";
|
||||
set lang_fmt_date_long_day = "%%day%%, le %%dd%% %%month%% %%yyyy%%";
|
||||
set lang_fmt_time_short = "%%HH%%:%%min%%";
|
||||
set lang_fmt_month_short = "%%mon%% %%yy%%";
|
||||
set lang_fmt_month_med = "%%mon%% %%yyyy%%";
|
||||
set lang_fmt_month_long = "%%month%% %%yyyy%%";
|
||||
|
||||
set lang_monthname_long = [ "", "janvier", "février", "mars",
|
||||
"avril", "mai", "juin",
|
||||
"juillet", "août", "septembre",
|
||||
"octobre", "novembre", "décembre" ];
|
||||
|
||||
set lang_monthname_short = [ "", "jan", "fév", "mar",
|
||||
"avr", "mai", "juin",
|
||||
"juil", "aoû", "sep",
|
||||
"oct", "nov", "déc" ];
|
||||
|
||||
set lang_dayname_long = [ "", "dimanche", "lundi", "mardi", "mercredi",
|
||||
"jeudi", "vendredi", "samedi" ];
|
||||
|
||||
set lang_dayname_short = [ "", "dim", "lun", "mar", "mer",
|
||||
"jeu", "ven", "sam" ];
|
||||
set reg_firstdayofweek = "monday";
|
||||
|
||||
#[[ texttranslation ]]
|
||||
|
||||
# Currents
|
||||
set text_meta_music = "Musique actuelle";
|
||||
set text_meta_mood = "Humeur actuelle";
|
||||
# Comments
|
||||
set text_post_comment = "Envoyez un commentaire";
|
||||
set text_read_comments = "1 commentaire // # commentaires";
|
||||
set text_post_comment_friends = "Envoyez un commentaire";
|
||||
set text_read_comments_friends = "1 commentaire // # commentaires";
|
||||
# Skiplinks
|
||||
set text_skiplinks_back="# entrées précédentes";
|
||||
set text_skiplinks_forward="# entrées suivantes";
|
||||
# Views
|
||||
set text_view_recent = "Entrées récentes";
|
||||
set text_view_friends = "Amis";
|
||||
set text_view_archive = "Archives";
|
||||
set text_view_userinfo = "Profil";
|
||||
set text_view_month = "Sujets du mois";
|
||||
# Misc. texts
|
||||
set text_nosubject = "(pas de sujets)";
|
||||
set text_noentries_recent = "Pas d'entrées.";
|
||||
set text_noentries_day = "Il n'y a aucune entrée cette journée.";
|
||||
set text_permalink = "Lien";
|
||||
set text_month_screened_comments = "+ filtrée(s)";
|
||||
set text_multiform_check = "Cocher :";
|
||||
set text_multiform_des = "Modifier les commentaires cochés :";
|
||||
set text_multiform_btn = "Modifier";
|
||||
set text_multiform_opt_unscreen = "Rendre public";
|
||||
set text_multiform_opt_screen = "Filtrer";
|
||||
set text_multiform_opt_delete = "Effacer";
|
||||
set text_multiform_conf_delete = "Êtes-vous sûr de vouloir supprimer les commentaires sélectionnés?";
|
||||
set text_day_prev = "Journée précédente";
|
||||
set text_day_next = "Journée suivante";
|
||||
set text_comment_from = "De :";
|
||||
set text_comment_date = "Date :";
|
||||
set text_comment_ipaddr = "Adresse IP :";
|
||||
set text_comment_reply = "Répondre";
|
||||
set text_comment_parent = "Précédent";
|
||||
set text_comment_thread = "Fil";
|
||||
set text_reply_back = "Lire les commentaires";
|
||||
set text_reply_nocomments_header = "Commentaires désactivés :";
|
||||
set text_reply_nocomments = "L'utilisateur a désactivé les commentaires pour cette entrée.";
|
||||
set text_website_default_name = "Mon site";
|
||||
set text_poster_anonymous = "(anonyme)";
|
||||
|
||||
#[[ function translations ]]
|
||||
|
||||
function lang_page_of_pages (int pg, int pgs) [notags] : string {
|
||||
return "Page $pg de $pgs";
|
||||
}
|
||||
|
||||
function lang_ordinal(int num) [notags] : string {
|
||||
if ($num == 1) { return $num+"er"; }
|
||||
return $num+"e";
|
||||
}
|
||||
|
||||
function lang_map_plural (int n) : int {
|
||||
if ($n > 1) { return 1; } # plural
|
||||
return 0; # singular
|
||||
}
|
||||
|
||||
function lang_viewname(string viewid) [notags] : string
|
||||
"Get some words representing a view"
|
||||
{
|
||||
if ($viewid == "recent") { return $*text_view_recent; }
|
||||
if ($viewid == "archive") { return $*text_view_archive; }
|
||||
if ($viewid == "friends") { return $*text_view_friends; }
|
||||
if ($viewid == "day") { return "Journée"; }
|
||||
if ($viewid == "month") { return "Mois"; }
|
||||
if ($viewid == "userinfo") { return $*text_view_userinfo; }
|
||||
if ($viewid == "entry") { return "Lire les commentaires"; }
|
||||
if ($viewid == "reply") { return "Envoyer un commentaire"; }
|
||||
return "Affichage inconnue";
|
||||
}
|
||||
|
||||
function ReplyPage::view_title() : string {
|
||||
return "Envoyer un commentaire";
|
||||
}
|
||||
|
||||
function server_sig() {
|
||||
"""Actionné par <a href="$*SITEROOT/">$*SITENAME</a>""";
|
||||
}
|
||||
|
||||
function Page::print_entry_poster(Entry e) {
|
||||
$e.poster->print();
|
||||
if ($.view == "friends" and $e.poster.username != $e.journal.username) {
|
||||
" a écrit dans ";
|
||||
$e.journal->print();
|
||||
}
|
||||
}
|
||||
|
||||
function lang_user_wrote(UserLite u) : string "Returns text describing that the user wrote something. i18nc layers should override this." {
|
||||
if (defined $u) {
|
||||
return $u->as_string()+" a écrit";
|
||||
}
|
||||
else {
|
||||
return "Un utilisateur anonyme a écrit";
|
||||
}
|
||||
}
|
||||
|
||||
function lang_at_datetime(DateTime d) : string "Returns a string saying \"at {the date and time given}\". Used in the core implementation of EntryPage and ReplyPage. i18nc layers should override this." {
|
||||
return $d->date_format("long") + " à " + $d->time_format();
|
||||
}
|
||||
16
livejournal/bin/upgrading/s2layers/i18nc/ja1.s2
Executable file
@@ -0,0 +1,16 @@
|
||||
#-*-s2-*- ;; -*- coding: utf-8 -*-
|
||||
|
||||
layerinfo "type" = "i18nc";
|
||||
layerinfo "redist_uniq" = "i18nc/ja1";
|
||||
layerinfo "name" = "Japanese";
|
||||
layerinfo "langcode" = "ja";
|
||||
set lang_current = "ja";
|
||||
|
||||
# One form (the number is inflected)
|
||||
function lang_map_plural (int n) : int {
|
||||
return 0;
|
||||
}
|
||||
set text_read_comments = "# コメント";
|
||||
set text_post_comment = "コメントの送信";
|
||||
set text_read_comments_friends = "# コメント";
|
||||
set text_post_comment_friends = "コメントの送信";
|
||||
21
livejournal/bin/upgrading/s2layers/i18nc/ru1.s2
Executable file
@@ -0,0 +1,21 @@
|
||||
#-*-s2-*- ;; -*- coding: utf-8 -*-
|
||||
|
||||
layerinfo "type" = "i18nc";
|
||||
layerinfo "redist_uniq" = "i18nc/ru1";
|
||||
layerinfo "name" = "Russian";
|
||||
layerinfo "langcode" = "ru";
|
||||
set lang_current = "ru";
|
||||
|
||||
# Three forms, special cases for numbers ending in 1 and 2, 3, 4, except those ending in 1[1-4]
|
||||
function lang_map_plural (int n) : int {
|
||||
if ($n%10 == 1 and $n%100 != 11) { return 0; }
|
||||
if ($n%10 >= 2 and $n%10 <= 4 and ($n%100 < 10 or $n%100>=20)) { return 1; }
|
||||
return 2;
|
||||
}
|
||||
|
||||
set text_post_comment="Оставить комментарий";
|
||||
set text_read_comments="# комментарий // # комментария // # комментариев";
|
||||
set text_post_comment_friends="Оставить комментарий";
|
||||
set text_read_comments_friends="# комментарий // # комментария // # комментариев";
|
||||
|
||||
|
||||
14
livejournal/bin/upgrading/s2layers/magazine/en.s2
Executable file
@@ -0,0 +1,14 @@
|
||||
# -*-s2-*-
|
||||
|
||||
layerinfo type = "i18n";
|
||||
layerinfo name = "English";
|
||||
layerinfo redist_uniq = "magazine/en";
|
||||
|
||||
set text_meta_music = "Music";
|
||||
set text_meta_mood = "Mood";
|
||||
|
||||
set text_post_comment = "comment on this";
|
||||
set text_read_comments = "# comments";
|
||||
|
||||
set text_post_comment_friends = "comment on this";
|
||||
set text_read_comments_friends = "# comments";
|
||||
699
livejournal/bin/upgrading/s2layers/magazine/layout.s2
Executable file
@@ -0,0 +1,699 @@
|
||||
# -*-s2-*-
|
||||
|
||||
layerinfo type = "layout";
|
||||
layerinfo name = "Magazine";
|
||||
layerinfo redist_uniq = "magazine/layout";
|
||||
layerinfo previews = "magazine/magazine.jpg";
|
||||
|
||||
propgroup colors {
|
||||
property Color main_bgcolor {
|
||||
des = "Main Background color";
|
||||
s1color = "page_back";
|
||||
}
|
||||
property Color main_fgcolor {
|
||||
des = "Main text color";
|
||||
s1color = "page_text";
|
||||
}
|
||||
property Color sidebar_color {
|
||||
des = "Sidebar color";
|
||||
s1color = "stronger_back";
|
||||
}
|
||||
property Color headerbar_bgcolor {
|
||||
des = "Headerbar background color";
|
||||
s1color = "strong_back";
|
||||
}
|
||||
property Color headerbar_fgcolor {
|
||||
des = "Text color on headerbar";
|
||||
s1color = "strong_text";
|
||||
}
|
||||
property Color headerbar_bevel_color {
|
||||
des = "Accent line color for headerbar";
|
||||
s1color = "stronger_back";
|
||||
}
|
||||
property Color highlight_bgcolor {
|
||||
des = "Highlighting color for accented text";
|
||||
s1color = "weak_back";
|
||||
}
|
||||
property Color highlight_fgcolor {
|
||||
des = "Highlighted text color";
|
||||
s1color = "weak_text";
|
||||
}
|
||||
property Color border_color {
|
||||
des = "Color of borders";
|
||||
s1color = "weak_text";
|
||||
}
|
||||
property Color title_color {
|
||||
des = "Text color of top title";
|
||||
s1color = "page_text_title";
|
||||
}
|
||||
property Color meta_color {
|
||||
des = "Text color of meta descriptions";
|
||||
s1color = "page_text_em";
|
||||
}
|
||||
property Color link_color {
|
||||
des = "Text color of links";
|
||||
s1color = "page_link";
|
||||
}
|
||||
property Color vlink_color {
|
||||
des = "Text color of visited links";
|
||||
s1color = "page_vlink";
|
||||
}
|
||||
property Color alink_color {
|
||||
des = "Text color of active links";
|
||||
s1color = "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";
|
||||
}
|
||||
}
|
||||
set main_bgcolor = "#ffffff";
|
||||
set main_fgcolor = "#000000";
|
||||
set sidebar_color = "#6666cc";
|
||||
set headerbar_bgcolor = "#c0c0ff";
|
||||
set headerbar_fgcolor = "#000000";
|
||||
set headerbar_bevel_color = "#6666cc";
|
||||
set highlight_bgcolor = "#eeeeff";
|
||||
set highlight_fgcolor = "#000000";
|
||||
set border_color = "#000000";
|
||||
set title_color = "#8b1a1";
|
||||
set meta_color = "#c00000";
|
||||
set link_color = "#000050";
|
||||
set vlink_color = "#500050";
|
||||
set alink_color = "#ff00c0";
|
||||
set comment_bar_one_bgcolor = "#c0c0ff";
|
||||
set comment_bar_one_fgcolor = "#000000";
|
||||
set comment_bar_two_bgcolor = "#eeeeff";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
set comment_bar_screened_bgcolor = "#dddddd";
|
||||
set comment_bar_screened_fgcolor = "#000000";
|
||||
|
||||
propgroup presentation {
|
||||
property bool show_entry_userpic {
|
||||
des = "Show the userpic on the journal entries? [Excludes friends page]";
|
||||
}
|
||||
property use page_recent_items;
|
||||
property use page_friends_items;
|
||||
property use use_shared_pic;
|
||||
property use view_entry_disabled;
|
||||
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 external_stylesheet;
|
||||
}
|
||||
set show_entry_userpic = false;
|
||||
set view_entry_disabled = false;
|
||||
set show_entrynav_icons = true;
|
||||
set page_background_image = "";
|
||||
|
||||
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 tags_aware = true;
|
||||
|
||||
function Page::lay_skip_navigation() {}
|
||||
|
||||
function Page::lay_bottom_navigation() {}
|
||||
|
||||
function print_stylesheet ()
|
||||
{
|
||||
print clean_url($*page_background_image) != "" ? "body { background-image: url($*page_background_image); }" : "";
|
||||
"""HTML {
|
||||
border-left: 1cm solid $*sidebar_color;
|
||||
padding: 1cm;
|
||||
}
|
||||
BODY {
|
||||
line-height: 1.3;
|
||||
margin: 0;
|
||||
background-color: $*main_bgcolor;
|
||||
color: $*main_fgcolor;
|
||||
}
|
||||
P {
|
||||
margin-top: 0;
|
||||
text-align: justify;
|
||||
}
|
||||
H1 {
|
||||
font: x-large Verdana, sans-serif; text-align: center;
|
||||
letter-spacing: -0.09em;
|
||||
color: $*title_color;
|
||||
}
|
||||
H2 {
|
||||
background-color: $*headerbar_bgcolor;
|
||||
color: $*headerbar_fgcolor;
|
||||
border-bottom: thin solid $*headerbar_bevel_color;
|
||||
font: normal 1.3em Georgia, serif;
|
||||
}
|
||||
H3 {
|
||||
color: $*highlight_fgcolor;
|
||||
font: medium sans-serif;
|
||||
}
|
||||
H3 SPAN {
|
||||
background-color: $*highlight_bgcolor;
|
||||
border-right: thin solid $*border_color;
|
||||
border-bottom: thin solid $*border_color;
|
||||
padding-right: 0.5ex;
|
||||
}
|
||||
H3 EM {
|
||||
color: $*meta_color;
|
||||
font-style: normal;
|
||||
}
|
||||
.H3Holder {
|
||||
clear: both;
|
||||
padding-left: 2ex;
|
||||
border-left: thin solid $*border_color;
|
||||
border-bottom: thin solid $*border_color;
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
A:link {
|
||||
color: $*link_color;
|
||||
}
|
||||
A:visited {
|
||||
color: $*vlink_color;
|
||||
}
|
||||
A:active {
|
||||
color: $*alink_color;
|
||||
}
|
||||
.Navigation {
|
||||
text-align: center;
|
||||
font-family: sans-serif;
|
||||
}
|
||||
.Comment {
|
||||
font-size: 0.7em;
|
||||
margin-top: -1em;
|
||||
text-align: right;
|
||||
}
|
||||
.Comment, .Current {
|
||||
margin-bottom: 1em;
|
||||
clear: right;
|
||||
}
|
||||
.Picture {
|
||||
border-left: thin solid $*border_color;
|
||||
border-top: thin solid $*border_color;
|
||||
float: right;
|
||||
margin: 0 0 0.5em 0.5em;
|
||||
padding: 0.2em;
|
||||
}
|
||||
.Picture DIV {
|
||||
text-align: center;
|
||||
}
|
||||
.Active {
|
||||
background-color: $*highlight_bgcolor;
|
||||
}
|
||||
ACRONYM {
|
||||
border-bottom: thin dashed $*border_color;
|
||||
cursor: help;
|
||||
}
|
||||
.Bottom {
|
||||
border-top: thin solid $*border_color;
|
||||
text-align: center;
|
||||
}
|
||||
.Empty {
|
||||
background-color: $*highlight_bgcolor;
|
||||
}
|
||||
.Month {
|
||||
margin-top: 1em;
|
||||
}
|
||||
.MonthHeader {
|
||||
color: $*headerbar_fgcolor;
|
||||
background-color: $*headerbar_bgcolor ! important;
|
||||
line-height: 1.5;
|
||||
}
|
||||
.Month TD {
|
||||
color: $*highlight_fgcolor;
|
||||
width: 14%;
|
||||
border: thin outset;
|
||||
}
|
||||
.Month TH {
|
||||
background-color: $*highlight_bgcolor;
|
||||
font-family: Verdana, sans-serif;
|
||||
border: thin outset;
|
||||
}""";
|
||||
}
|
||||
|
||||
function Page::print () {
|
||||
var string title = $this->title();
|
||||
|
||||
"""<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">\n<html>\n<head>\n""";
|
||||
|
||||
if ($*external_stylesheet) {
|
||||
println """<link rel="stylesheet" href="$.stylesheet_url" type="text/css" />""";
|
||||
} else {
|
||||
println """<style type="text/css">"""; print_stylesheet(); "</style>";
|
||||
}
|
||||
$this->print_head();
|
||||
|
||||
"""<title>$title</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>$title</h1>""";
|
||||
|
||||
var string website_name = $.journal.website_name ? $.journal.website_name : $*text_website_default_name;
|
||||
var string website = ($.journal.website_url != "" ? "(<a href='$.journal.website_url'>$website_name</a>)" : "");
|
||||
|
||||
var string links;
|
||||
foreach var string v ($.views_order) {
|
||||
$links = "$links(<span style='white-space: nowrap;'>" + ($.view == $v ?
|
||||
"<span class='Active'>"+lang_viewname($v)+"</span>" :
|
||||
"<a href='$.view_url{$v}'>"+lang_viewname($v)+"</a>") + ")</span>\n";
|
||||
}
|
||||
|
||||
"""<p class="Navigation">$links $website<br />""";
|
||||
$this->lay_skip_navigation();
|
||||
"</p>";
|
||||
|
||||
$this->print_body();
|
||||
|
||||
$this->lay_bottom_navigation();
|
||||
|
||||
"</body></html>";
|
||||
}
|
||||
|
||||
function print_entry (Page p, Entry e, Color bgcolor, Color fgcolor, bool hide_text)
|
||||
{
|
||||
var string time = $e.time->time_format();
|
||||
var string userpic = (defined $e.userpic ? "<img src='$e.userpic.url' />" : "");
|
||||
if (($p.view != "entry" and $e.new_day) or $p.view == "entry")
|
||||
{
|
||||
"<h2>" + $e.time->date_format("med") + "</h2>";
|
||||
}
|
||||
"<div class='H3Holder'>";
|
||||
|
||||
# Altposter / friends / lastn userpic
|
||||
if ($p.view == "friends" or
|
||||
$p.view == "entry" or
|
||||
$*show_entry_userpic == true or
|
||||
$e.journal.username != $e.poster.username)
|
||||
{
|
||||
"<div class='Picture' style='background-color: $bgcolor;'>";
|
||||
if ($p.view == "friends")
|
||||
{
|
||||
"<div><a href='";
|
||||
print $e.journal->base_url() + "/";
|
||||
"' style='color: $fgcolor;'><small>$e.journal.username</small></a></div>";
|
||||
}
|
||||
if ($*show_entry_userpic == true or $p.view == "friends" or $p.view == "entry")
|
||||
{
|
||||
if (defined $e.userpic) { "<div><img src='$e.userpic.url' /></div>"; }
|
||||
}
|
||||
if ($e.journal.username != $e.poster.username)
|
||||
{
|
||||
"<div><a href='";
|
||||
print $e.poster->base_url() + "/";
|
||||
"'>$e.poster.username</a></div>";
|
||||
}
|
||||
"</div>";
|
||||
}
|
||||
# Time / Subject / Security
|
||||
var string subject = ($e.subject != "" ? " - <em>$e.subject</em>" : "");
|
||||
"<h3><span>$time$subject</span> $e.security_icon</h3>";
|
||||
|
||||
if ($p.view == "entry" and $*show_entrynav_icons)
|
||||
{
|
||||
print "<div style='text-align: center'>";
|
||||
$e->print_linkbar();
|
||||
print "</div>";
|
||||
}
|
||||
|
||||
if (not $hide_text)
|
||||
{
|
||||
# Entry
|
||||
"<p>$e.text</p>";
|
||||
|
||||
# Tags
|
||||
if ($e.tags) {
|
||||
var int tcount = 0;
|
||||
"<div class='ljtags'><strong>Tags:</strong> ";
|
||||
foreach var Tag t ($e.tags) {
|
||||
"""<a rel="tag" href="$t.url">$t.name</a>""";
|
||||
$tcount++;
|
||||
if ($tcount != size $e.tags) { ", "; }
|
||||
}
|
||||
"</div>";
|
||||
}
|
||||
|
||||
# Metadata
|
||||
if (size $e.metadata) {
|
||||
foreach var string k ($e.metadata) {
|
||||
"<div class='Currents'>";
|
||||
var string key = $k;
|
||||
var string val = $e.metadata{$k};
|
||||
if ($k == "mood") {
|
||||
$key = $*text_meta_mood;
|
||||
} elseif ( $k == "music" ) {
|
||||
$key = $*text_meta_music;
|
||||
}
|
||||
if ($k == "mood" and defined $e.mood_icon) {
|
||||
var Image i = $e.mood_icon;
|
||||
$val = "<img src='$i.url' width='$i.width' height='$i.height' align='absmiddle' alt='[mood icon]' /> $val";
|
||||
}
|
||||
"<div><strong>$key:</strong> $val</div>";
|
||||
"</div>";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# Comments
|
||||
$e.comments->print();
|
||||
"</div>";
|
||||
}
|
||||
|
||||
function CommentInfo::print()
|
||||
{
|
||||
if (not $.enabled) { return; }
|
||||
"<div class='Comment'>(";
|
||||
if ($.count > 0 or $.screened) {
|
||||
$this->print_readlink(); " | ";
|
||||
}
|
||||
$this->print_postlink();
|
||||
")</div>";
|
||||
}
|
||||
|
||||
function Page::print_entry (Entry e)
|
||||
{
|
||||
print_entry($this, $e, null Color, null Color, false);
|
||||
}
|
||||
|
||||
function RecentPage::lay_skip_navigation()
|
||||
{
|
||||
var int total = size $.entries;
|
||||
var string nav = "";
|
||||
if ($.nav.backward_url != "") {
|
||||
$nav = """<a href="$.nav.backward_url">Previous $total Entries</a>""";
|
||||
}
|
||||
if ($.nav.forward_url != "" and $.nav.backward_url != "") {
|
||||
$nav = "$nav | ";
|
||||
}
|
||||
if ($.nav.forward_url != "") {
|
||||
$nav = """$nav<a href="$.nav.forward_url">Next $total Entries</a>""";
|
||||
}
|
||||
if ($nav != "") { print "Navigate: ($nav)"; }
|
||||
}
|
||||
|
||||
function RecentPage::lay_bottom_navigation()
|
||||
{
|
||||
"<p class='Bottom'>"; $this->lay_skip_navigation(); "</p>";
|
||||
}
|
||||
|
||||
function RecentPage::print_body
|
||||
{
|
||||
foreach var Entry e ($.entries) {
|
||||
$this->print_entry($e);
|
||||
}
|
||||
}
|
||||
|
||||
function FriendsPage::lay_skip_navigation()
|
||||
{
|
||||
var int total = size $.entries;
|
||||
var string nav = "";
|
||||
if ($.nav.backward_url != "") {
|
||||
$nav = """<a href="$.nav.backward_url">Previous $total Friends</a>""";
|
||||
}
|
||||
if ($.nav.forward_url != "" and $.nav.backward_url != "") {
|
||||
$nav = "$nav | ";
|
||||
}
|
||||
if ($.nav.forward_url != "") {
|
||||
$nav = """$nav<a href="$.nav.forward_url">Next $total Friends</a>""";
|
||||
}
|
||||
if ($nav != "") { print "Navigate: ($nav)"; }
|
||||
}
|
||||
|
||||
function FriendsPage::print_entry (Entry e)
|
||||
{
|
||||
var Friend f = $.friends{$e.journal.username};
|
||||
print_entry($this, $e, $f.bgcolor, $f.fgcolor, false);
|
||||
}
|
||||
|
||||
function FriendsPage::print_body
|
||||
{
|
||||
foreach var Entry e ($.entries) {
|
||||
$this->print_entry($e);
|
||||
}
|
||||
}
|
||||
|
||||
function YearPage::lay_skip_navigation ()
|
||||
{
|
||||
$this->print_year_links();
|
||||
}
|
||||
|
||||
function YearPage::lay_bottom_navigation() { }
|
||||
|
||||
function YearPage::print_body() {
|
||||
"<h2>$.year</h2>";
|
||||
foreach var YearMonth m ($.months) {
|
||||
$this->print_month($m);
|
||||
}
|
||||
}
|
||||
|
||||
function YearPage::print_year_links ()
|
||||
{
|
||||
"Navigate: ";
|
||||
foreach var YearYear y ($.years) {
|
||||
if ($y.displayed) {
|
||||
" (<span class='Active'>$y.year</span>) ";
|
||||
} else {
|
||||
" (<a href='$y.url'>$y.year</a>) ";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function YearPage::print_month(YearMonth m)
|
||||
{
|
||||
if (not $m.has_entries) { return; }
|
||||
"<table class='Month'>";
|
||||
"<tr><th class='MonthHeader' colspan='7'>";
|
||||
"<a href='$m.url'>"; print $m->month_format(); "</a></th></tr>\n";
|
||||
"<tr>";
|
||||
foreach var int d (weekdays())
|
||||
{
|
||||
"<th>"+$*lang_dayname_short[$d]+ "</th>\n";
|
||||
}
|
||||
"</tr>";
|
||||
foreach var YearWeek w ($m.weeks)
|
||||
{
|
||||
$w->print();
|
||||
}
|
||||
"</table>\n";
|
||||
}
|
||||
|
||||
function YearWeek::print() {
|
||||
"<tr valign='top'>";
|
||||
if ($.pre_empty) { "<td class='empty' colspan='$.pre_empty'></td></td>"; }
|
||||
foreach var YearDay d ($.days)
|
||||
{
|
||||
"<td>$d.day";
|
||||
if ($d.num_entries)
|
||||
{
|
||||
"<div align='center'><a href='$d.url'><strong>$d.num_entries</strong></a></div>";
|
||||
} else {
|
||||
"<br /><br />";
|
||||
}
|
||||
"</td>";
|
||||
}
|
||||
if ($.post_empty) { "<td class='empty' colspan='$.post_empty'></td></td>"; }
|
||||
"</tr>";
|
||||
}
|
||||
|
||||
function DayPage::lay_skip_navigation()
|
||||
{
|
||||
"Navigate: (<a href='$.prev_url'>Previous Day</a> | <a href='$.next_url'>Next Day</a>)";
|
||||
}
|
||||
|
||||
function DayPage::lay_bottom_navigation()
|
||||
{
|
||||
"""
|
||||
<table style="border-top: thin solid $*headerbar_bevel_color;" width="100%">
|
||||
<tr>
|
||||
<td width="33%">← <a href="$.prev_url">Previous day</a></td>
|
||||
<td width="34%" align="center">(<a href="$.base_url/calendar">Calendar</a>)</td>
|
||||
<td width="33%" align="right"><a href="$.next_url">Next day</a> →</td>
|
||||
</tr>
|
||||
</table>
|
||||
""";
|
||||
}
|
||||
|
||||
function DayPage::print_body ()
|
||||
{
|
||||
if (not $.has_entries) {
|
||||
"<h2>"; print $.date->date_format("med"); "</h2>";
|
||||
print "<p>(No journal entries for this day.)</p>";
|
||||
} else {
|
||||
foreach var Entry e ($.entries) {
|
||||
$this->print_entry($e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function EntryPage::print_body ()
|
||||
{
|
||||
set_handler("unscreen_comment_#", [
|
||||
[ "style_bgcolor", "cmtbar#", "$*comment_bar_one_bgcolor", ],
|
||||
[ "style_color", "cmtbar#", "$*comment_bar_one_fgcolor", ],
|
||||
]);
|
||||
set_handler("screen_comment_#", [
|
||||
[ "style_bgcolor", "cmtbar#", "$*comment_bar_screened_bgcolor", ],
|
||||
[ "style_color", "cmtbar#", "$*comment_bar_screened_fgcolor", ],
|
||||
]);
|
||||
|
||||
|
||||
print_entry($this, $.entry, null Color, null Color, $.viewing_thread);
|
||||
if ($.entry.comments.enabled and $.comment_pages.total_subitems > 0)
|
||||
{
|
||||
$this->print_multiform_start();
|
||||
print "<h2>Comments:</h2><div style='margin-left: 30px;'>";
|
||||
if ($.comment_pages.total_subitems > 0) {
|
||||
$.comment_pages->print();
|
||||
$this->print_comments($.comments);
|
||||
}
|
||||
"</div>";
|
||||
if ($this.multiform_on) {
|
||||
"<h2>Mass Action</h2><div style='margin-left: 30px;'>";
|
||||
$this->print_multiform_actionline();
|
||||
$this->print_multiform_end();
|
||||
"</div>";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function EntryPage::print_comment (Comment c) {
|
||||
var Color background; var Color color;
|
||||
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() : "<i>(Anonymous)</i>";
|
||||
var string sub_icon;
|
||||
if (defined $c.subject_icon) {
|
||||
$sub_icon = $c.subject_icon->as_string();
|
||||
}
|
||||
"<a name='$c.anchor'></a><div id='cmtbar$c.talkid' style='background-color: $background; color: $color; margin-top: 10px; width: 100%'>";
|
||||
"<table cellpadding='2' cellspacing='0' summary='0' style='width: 100%'><tr valign='top'>";
|
||||
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 "<td style='width: 102px'><img src='$c.userpic.url' width='$w' height='$h' alt='[User Picture]' /></td>";
|
||||
}
|
||||
|
||||
"<td style='width: 100%'><table style='width: 100%'><tr>";
|
||||
|
||||
### From, date, etc
|
||||
"<td align='left' style='width: 50%'>";
|
||||
print "<table>";
|
||||
print "<tr><th align='right'>From:</th><td>$poster</td></tr>\n";
|
||||
print "<tr><th align='right'>Date:</th><td style='white-space: nowrap'>";
|
||||
print $c.time->date_format("long") + " - " + $c.time->time_format() + "</td></tr>";
|
||||
if ($c.metadata{"poster_ip"}) { print "<tr><th align='right'>IP Address:</th><td>(" + $c.metadata{"poster_ip"} + ")</td></tr>"; }
|
||||
"</table></td>";
|
||||
|
||||
### Gadgets
|
||||
"<td align='right' style='width: 50%'>";
|
||||
if ($this.multiform_on) {
|
||||
" <label for='ljcomsel_$c.talkid'>$*text_multiform_check</label>";
|
||||
$c->print_multiform_check();
|
||||
}
|
||||
$c->print_linkbar();
|
||||
"</td></tr>";
|
||||
|
||||
### Subject / icon
|
||||
print "<tr valign='top'><td style='width: 50%'>";
|
||||
print (defined $c.subject_icon or $c.subject != "") ? "<h3>$c.subject_icon $c.subject</h3>" : "";
|
||||
print "</td>";
|
||||
|
||||
### Permalink
|
||||
print "<td style='width: 50%' align='right'><strong>(<a href='$c.permalink_url'>Link</a>)</strong></td></tr>";
|
||||
|
||||
print "</table></td></tr></table></div>";
|
||||
print "<div style='margin-left: 5px'>$c.text</div>";
|
||||
print "<div style='margin-top: 3px; font-size: smaller'>";
|
||||
if ($c.frozen) {
|
||||
print """(Replies frozen) """;
|
||||
} else {
|
||||
print """(<a href='$c.reply_url'>Reply to this</a>) """;
|
||||
}
|
||||
if ($c.parent_url != "") { "(<a href='$c.parent_url'>Parent</a>) "; }
|
||||
if ($c.thread_url != "") { "(<a href='$c.thread_url'>Thread</a>) "; }
|
||||
"</div>";
|
||||
}
|
||||
|
||||
function ReplyPage::print_body ()
|
||||
{
|
||||
var string time = $.replyto.time->time_format();
|
||||
|
||||
if (not $.entry.comments.enabled)
|
||||
{
|
||||
print "<h2>$*text_reply_nocomments_header</h2><p>$*text_reply_nocomments</p>";
|
||||
return;
|
||||
}
|
||||
|
||||
"<h2>" + $.replyto.time->date_format("med") + "</h2>";
|
||||
|
||||
"<div class='H3Holder'>";
|
||||
|
||||
"<div class='Picture'>";
|
||||
print defined $.replyto.poster ? $.replyto.poster->as_string() : "<i>(Anonymous)</i>";
|
||||
if (defined $.replyto.userpic) { "<div><img src='$.replyto.userpic.url' /></div>"; }
|
||||
"</div>";
|
||||
|
||||
# Time / Subject / Security
|
||||
var string subject = ($.replyto.subject ? " - <em>$.replyto.subject</em>" : "");
|
||||
"<h3><span>$time$subject</span></h3>";
|
||||
|
||||
"<p>$.replyto.text</p>";
|
||||
|
||||
"<div class='Comment'><a href='$.entry.comments.read_url'>Read Comments</a></div>";
|
||||
"</div>";
|
||||
print "<h2>Reply:</h2>";
|
||||
$.form->print();
|
||||
}
|
||||
|
||||
|
||||
function print_theme_preview ()
|
||||
{
|
||||
"""<table width='100%' bgcolor='$*main_bgcolor' cellpadding='3' border='0'><tr valign='top'>
|
||||
<td width='30' bgcolor='$*sidebar_color'> </td>
|
||||
<td width='30'> </td>
|
||||
<td>
|
||||
<h2 style='background-color: $*headerbar_bgcolor; color: $*headerbar_fgcolor; border-bottom: thin solid $*headerbar_bevel_color; font: normal 1.3em Georgia, serif; line-height: 1.3;'>Dec. 22nd, 2002</h2>
|
||||
<div style='clear: both; padding-left: 2ex; border-left: thin solid $*border_color; border-bottom: thin solid $*border_color; margin-bottom: 1em; '>
|
||||
<h3 style='color: $*highlight_fgcolor; font: medium sans-serif'><span style='background-color: $*highlight_bgcolor; border-right: thin solid $*border_color; border-bottom: thin solid $*border_color; padding-right: 0.5ex;'>08:46 pm - <em style='color: $*meta_color; font-style: normal;'>subject</em></span></h3>
|
||||
<p style='margin-top: 0; text-align: justify; font-family: serif; font-size: 12pt; color: $*main_fgcolor;'>Words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words words</p>
|
||||
|
||||
<div style='font-size: 0.7em; margin-top: -1em; text-align: right; font-size: 8pt; color: $*main_fgcolor;'>(<a style='color: $*link_color;' href='#'>1 comment</a> | <a style='color: $*link_color;' href='#'>Leave a comment</a>)</div>
|
||||
</div>
|
||||
|
||||
</td></tr>
|
||||
</table>""";
|
||||
}
|
||||
BIN
livejournal/bin/upgrading/s2layers/magazine/magazine.jpg
Executable file
|
After Width: | Height: | Size: 17 KiB |
459
livejournal/bin/upgrading/s2layers/magazine/themes.s2
Executable file
@@ -0,0 +1,459 @@
|
||||
#NEWLAYER: magazine/wonb
|
||||
layerinfo "type" = "theme";
|
||||
layerinfo "name" = "White on Black";
|
||||
layerinfo "redist_uniq" = "magazine/wonb";
|
||||
set title_color = "#ffffff";
|
||||
set main_bgcolor = "#000000";
|
||||
set main_fgcolor = "#ffffff";
|
||||
set sidebar_color = "#555555";
|
||||
set headerbar_bgcolor = "#777777";
|
||||
set headerbar_fgcolor = "#ffffff";
|
||||
set headerbar_bevel_color = "#777777";
|
||||
set link_color = "#eeeeee";
|
||||
set alink_color = "#ffffff";
|
||||
set vlink_color = "#dddddd";
|
||||
set meta_color = "#ffffff";
|
||||
set highlight_bgcolor = "#666666";
|
||||
set highlight_fgcolor = "#dddddd";
|
||||
set border_color = "#ffffff";
|
||||
set comment_bar_one_bgcolor = "#777777";
|
||||
set comment_bar_one_fgcolor = "#ffffff";
|
||||
set comment_bar_two_bgcolor = "#666666";
|
||||
set comment_bar_two_fgcolor = "#dddddd";
|
||||
|
||||
#NEWLAYER: magazine/shrinkvio
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Shrinking Violet";
|
||||
layerinfo redist_uniq = "magazine/shrinkvio";
|
||||
set sidebar_color = "#ad22e7";
|
||||
set main_bgcolor = "#ffffff";
|
||||
set main_fgcolor = "#000000";
|
||||
set border_color = "#381a45";
|
||||
set headerbar_bgcolor = "#5d0383";
|
||||
set headerbar_fgcolor = "#ffffff";
|
||||
set title_color = "#5d0383";
|
||||
set meta_color = "#ffffff";
|
||||
set headerbar_bevel_color = "#d9a1f1";
|
||||
set highlight_bgcolor = "#d9a1f1";
|
||||
set highlight_fgcolor = "#000000";
|
||||
set link_color = "#2e053f";
|
||||
set vlink_color = "#611627";
|
||||
set alink_color = "#ff00c0";
|
||||
set comment_bar_one_bgcolor = "#5d0383";
|
||||
set comment_bar_one_fgcolor = "#ffffff";
|
||||
set comment_bar_two_bgcolor = "#d9a1f1";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
|
||||
#NEWLAYER: magazine/pistmint
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Pistachio Mint";
|
||||
layerinfo redist_uniq = "magazine/pistmint";
|
||||
set sidebar_color = "#133422";
|
||||
set main_bgcolor = "#a7c4b4";
|
||||
set main_fgcolor = "#000000";
|
||||
set border_color = "#096d36";
|
||||
set headerbar_bgcolor = "#096d36";
|
||||
set headerbar_fgcolor = "#ffffff";
|
||||
set title_color = "#096d36";
|
||||
set meta_color = "#ffffff";
|
||||
set headerbar_bevel_color = "#096d36";
|
||||
set highlight_bgcolor = "#096d36";
|
||||
set highlight_fgcolor = "#000000";
|
||||
set link_color = "#8afabc";
|
||||
set vlink_color = "#1da65a";
|
||||
set alink_color = "#f9f5f5";
|
||||
set comment_bar_one_bgcolor = "#096d36";
|
||||
set comment_bar_one_fgcolor = "#ffffff";
|
||||
set comment_bar_two_bgcolor = "#093d36";
|
||||
set comment_bar_two_fgcolor = "#ffffff";
|
||||
|
||||
#NEWLAYER: magazine/mexicanfood
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Mexican Food";
|
||||
layerinfo redist_uniq = "magazine/mexicanfood";
|
||||
set sidebar_color = "#ff0000";
|
||||
set main_bgcolor = "#f8ff3e";
|
||||
set main_fgcolor = "#f15601";
|
||||
set border_color = "#f50701";
|
||||
set headerbar_bgcolor = "#bdbf3e";
|
||||
set headerbar_fgcolor = "#ff0000";
|
||||
set title_color = "#ffc664";
|
||||
set meta_color = "#000000";
|
||||
set headerbar_bevel_color = "#f9ff9d";
|
||||
set highlight_bgcolor = "#e15a18";
|
||||
set highlight_fgcolor = "#ffffff";
|
||||
set link_color = "#f49e08";
|
||||
set vlink_color = "#b05403";
|
||||
set alink_color = "#ff7405";
|
||||
set comment_bar_one_bgcolor = "#bdbf3e";
|
||||
set comment_bar_one_fgcolor = "#ff0000";
|
||||
set comment_bar_two_bgcolor = "#e15a18";
|
||||
set comment_bar_two_fgcolor = "#ffffff";
|
||||
|
||||
#NEWLAYER: magazine/ashfire
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Ash and Fire";
|
||||
layerinfo redist_uniq = "magazine/ashfire";
|
||||
set sidebar_color = "#b5b5b5";
|
||||
set main_bgcolor = "#ffb6af";
|
||||
set main_fgcolor = "#000000";
|
||||
set border_color = "#d90308";
|
||||
set headerbar_bgcolor = "#e75454";
|
||||
set headerbar_fgcolor = "#ffffff";
|
||||
set title_color = "#ff9696";
|
||||
set meta_color = "#ffffff";
|
||||
set headerbar_bevel_color = "#ff1106";
|
||||
set highlight_bgcolor = "#f06c88";
|
||||
set highlight_fgcolor = "#000000";
|
||||
set link_color = "#f70208";
|
||||
set vlink_color = "#b0161d";
|
||||
set alink_color = "#d70106";
|
||||
set comment_bar_one_bgcolor = "#e75454";
|
||||
set comment_bar_one_fgcolor = "#ffffff";
|
||||
set comment_bar_two_bgcolor = "#f06c88";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
|
||||
#NEWLAYER: magazine/desktop
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Classic Desktop";
|
||||
layerinfo redist_uniq = "magazine/desktop";
|
||||
set sidebar_color = "#00545c";
|
||||
set main_bgcolor = "#ffffff";
|
||||
set main_fgcolor = "#000000";
|
||||
set border_color = "#000000";
|
||||
set headerbar_bgcolor = "#ff7b05";
|
||||
set headerbar_fgcolor = "#ffeddd";
|
||||
set title_color = "#ffffff";
|
||||
set meta_color = "#000000";
|
||||
set headerbar_bevel_color = "#ff7b05";
|
||||
set highlight_bgcolor = "#ffeddd";
|
||||
set highlight_fgcolor = "#000000";
|
||||
set link_color = "#000050";
|
||||
set vlink_color = "#500050";
|
||||
set alink_color = "#5a76ff";
|
||||
set comment_bar_one_bgcolor = "#ff7b05";
|
||||
set comment_bar_one_fgcolor = "#ffeddd";
|
||||
set comment_bar_two_bgcolor = "#ffeddd";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
|
||||
#NEWLAYER: magazine/satinhandshake
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Satin Handshake";
|
||||
layerinfo redist_uniq = "magazine/satinhandshake";
|
||||
set sidebar_color = "#480c0c";
|
||||
set main_bgcolor = "#d06464";
|
||||
set main_fgcolor = "#00001d";
|
||||
set border_color = "#000000";
|
||||
set headerbar_bgcolor = "#aaaaaa";
|
||||
set headerbar_fgcolor = "#000000";
|
||||
set title_color = "#aaaaaa";
|
||||
set meta_color = "#000000";
|
||||
set headerbar_bevel_color = "#9d0404";
|
||||
set highlight_bgcolor = "#9d0404";
|
||||
set highlight_fgcolor = "#ffffff";
|
||||
set link_color = "#000050";
|
||||
set vlink_color = "#500050";
|
||||
set alink_color = "#ff00c0";
|
||||
set comment_bar_one_bgcolor = "#aaaaaa";
|
||||
set comment_bar_one_fgcolor = "#000000";
|
||||
set comment_bar_two_bgcolor = "#9d0404";
|
||||
set comment_bar_two_fgcolor = "#ffffff";
|
||||
|
||||
#NEWLAYER: magazine/deepmelodrama
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Deep MeloDrama";
|
||||
layerinfo redist_uniq = "magazine/deepmelodrama";
|
||||
set sidebar_color = "#872d89";
|
||||
set main_bgcolor = "#719cff";
|
||||
set main_fgcolor = "#8e48b2";
|
||||
set border_color = "#8e48b2";
|
||||
set headerbar_bgcolor = "#3794b3";
|
||||
set headerbar_fgcolor = "#84b8e7";
|
||||
set title_color = "#65b2c1";
|
||||
set meta_color = "#f5d3ff";
|
||||
set headerbar_bevel_color = "#8e48b2";
|
||||
set highlight_bgcolor = "#65b2c1";
|
||||
set highlight_fgcolor = "#f5d3ff";
|
||||
set link_color = "#000050";
|
||||
set vlink_color = "#500050";
|
||||
set alink_color = "#dfd3ff";
|
||||
set comment_bar_one_bgcolor = "#3794b3";
|
||||
set comment_bar_one_fgcolor = "#84b8e7";
|
||||
set comment_bar_two_bgcolor = "#65b2c1";
|
||||
set comment_bar_two_fgcolor = "#f5d3ff";
|
||||
|
||||
#NEWLAYER: magazine/everwhite
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Everwhite";
|
||||
layerinfo redist_uniq = "magazine/everwhite";
|
||||
set sidebar_color = "#ffffff";
|
||||
set main_bgcolor = "#ffffff";
|
||||
set main_fgcolor = "#000000";
|
||||
set border_color = "#000000";
|
||||
set headerbar_bgcolor = "#ffffff";
|
||||
set headerbar_fgcolor = "#000000";
|
||||
set title_color = "#ffffff";
|
||||
set meta_color = "#000000";
|
||||
set headerbar_bevel_color = "#ffffff";
|
||||
set highlight_bgcolor = "#ffffff";
|
||||
set highlight_fgcolor = "#000000";
|
||||
set link_color = "#e60000";
|
||||
set vlink_color = "#c10602";
|
||||
set alink_color = "#ff0600";
|
||||
set comment_bar_one_bgcolor = "#dddddd";
|
||||
set comment_bar_one_fgcolor = "#000000";
|
||||
set comment_bar_two_bgcolor = "#aaaaaa";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
|
||||
#NEWLAYER: magazine/everblue
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Everblue with Greys";
|
||||
layerinfo redist_uniq = "magazine/everblue";
|
||||
set sidebar_color = "#0f0c6d";
|
||||
set main_bgcolor = "#ffffff";
|
||||
set main_fgcolor = "#000000";
|
||||
set border_color = "#000000";
|
||||
set headerbar_bgcolor = "#000000";
|
||||
set headerbar_fgcolor = "#ffffff";
|
||||
set title_color = "#aaaaaa";
|
||||
set meta_color = "#000000";
|
||||
set headerbar_bevel_color = "#000000";
|
||||
set highlight_bgcolor = "#aaaaaa";
|
||||
set highlight_fgcolor = "#000000";
|
||||
set link_color = "#2f00f2";
|
||||
set vlink_color = "#060667";
|
||||
set alink_color = "#6691ff";
|
||||
set comment_bar_one_bgcolor = "#000000";
|
||||
set comment_bar_one_fgcolor = "#ffffff";
|
||||
set comment_bar_two_bgcolor = "#aaaaaa";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
|
||||
#NEWLAYER: magazine/brownleather
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Brown Leather Coat";
|
||||
layerinfo redist_uniq = "magazine/brownleather";
|
||||
set sidebar_color = "#d2b48c";
|
||||
set main_bgcolor = "#ffebcd";
|
||||
set main_fgcolor = "#8b4513";
|
||||
set border_color = "#000000";
|
||||
set headerbar_bgcolor = "#d48014";
|
||||
set headerbar_fgcolor = "#ffffff";
|
||||
set title_color = "#d48014";
|
||||
set meta_color = "#d48014";
|
||||
set headerbar_bevel_color = "#d48014";
|
||||
set highlight_bgcolor = "#ffe1a1";
|
||||
set highlight_fgcolor = "#000000";
|
||||
set link_color = "#000050";
|
||||
set vlink_color = "#867a55";
|
||||
set alink_color = "#fffab3";
|
||||
set comment_bar_one_bgcolor = "#d48014";
|
||||
set comment_bar_one_fgcolor = "#ffffff";
|
||||
set comment_bar_two_bgcolor = "#ffe1a1";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
|
||||
#NEWLAYER: magazine/bruise
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Bruise";
|
||||
layerinfo redist_uniq = "magazine/bruise";
|
||||
set sidebar_color = "#000000";
|
||||
set main_bgcolor = "#bcbcbc";
|
||||
set main_fgcolor = "#000000";
|
||||
set border_color = "#000000";
|
||||
set headerbar_bgcolor = "#1114a0";
|
||||
set headerbar_fgcolor = "#ffffff";
|
||||
set title_color = "#21c2f1";
|
||||
set meta_color = "#ffffff";
|
||||
set headerbar_bevel_color = "#1114a0";
|
||||
set highlight_bgcolor = "#21c2f1";
|
||||
set highlight_fgcolor = "#0000ff";
|
||||
set link_color = "#0000cc";
|
||||
set vlink_color = "#000088";
|
||||
set alink_color = "#0000ff";
|
||||
set comment_bar_one_bgcolor = "#1114a0";
|
||||
set comment_bar_one_fgcolor = "#ffffff";
|
||||
set comment_bar_two_bgcolor = "#21c2f1";
|
||||
set comment_bar_two_fgcolor = "#0000ff";
|
||||
|
||||
#NEWLAYER: magazine/ranchhand
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Ranch Hand";
|
||||
layerinfo redist_uniq = "magazine/ranchhand";
|
||||
set sidebar_color = "#2999c2";
|
||||
set main_bgcolor = "#cfe0ff";
|
||||
set main_fgcolor = "#000000";
|
||||
set border_color = "#060667";
|
||||
set headerbar_bgcolor = "#54442c";
|
||||
set headerbar_fgcolor = "#ffffff";
|
||||
set title_color = "#bababa";
|
||||
set meta_color = "#000000";
|
||||
set headerbar_bevel_color = "#9d995d";
|
||||
set highlight_bgcolor = "#704400";
|
||||
set highlight_fgcolor = "#bababa";
|
||||
set link_color = "#000050";
|
||||
set vlink_color = "#500050";
|
||||
set alink_color = "#6a20ff";
|
||||
set comment_bar_one_bgcolor = "#54442c";
|
||||
set comment_bar_one_fgcolor = "#ffffff";
|
||||
set comment_bar_two_bgcolor = "#704400";
|
||||
set comment_bar_two_fgcolor = "#bababa";
|
||||
|
||||
#NEWLAYER: magazine/victim
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Victim";
|
||||
layerinfo redist_uniq = "magazine/victim";
|
||||
set sidebar_color = "#2cd0ff";
|
||||
set main_bgcolor = "#505050";
|
||||
set main_fgcolor = "#ffffff";
|
||||
set border_color = "#000000";
|
||||
set headerbar_bgcolor = "#166bac";
|
||||
set headerbar_fgcolor = "#ffffff";
|
||||
set title_color = "#2098f3";
|
||||
set meta_color = "#ffffff";
|
||||
set headerbar_bevel_color = "#26b6ff";
|
||||
set highlight_bgcolor = "#353535";
|
||||
set highlight_fgcolor = "#ffffff";
|
||||
set link_color = "#000050";
|
||||
set vlink_color = "#500050";
|
||||
set alink_color = "#ff00c0";
|
||||
set comment_bar_one_bgcolor = "#166bac";
|
||||
set comment_bar_one_fgcolor = "#ffffff";
|
||||
set comment_bar_two_bgcolor = "#353535";
|
||||
set comment_bar_two_fgcolor = "#ffffff";
|
||||
|
||||
#NEWLAYER: magazine/forest
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Forest";
|
||||
layerinfo redist_uniq = "magazine/forest";
|
||||
set sidebar_color = "#778e64";
|
||||
set main_bgcolor = "#9b9ba5";
|
||||
set main_fgcolor = "#000000";
|
||||
set border_color = "#ffffff";
|
||||
set headerbar_bgcolor = "#72784c";
|
||||
set headerbar_fgcolor = "#ffffff";
|
||||
set title_color = "#72784c";
|
||||
set meta_color = "#ffffff";
|
||||
set headerbar_bevel_color = "#a0ac62";
|
||||
set highlight_bgcolor = "#73777a";
|
||||
set highlight_fgcolor = "#000000";
|
||||
set link_color = "#3811e1";
|
||||
set vlink_color = "#310cbb";
|
||||
set alink_color = "#4e7bef";
|
||||
set comment_bar_one_bgcolor = "#72784c";
|
||||
set comment_bar_one_fgcolor = "#ffffff";
|
||||
set comment_bar_two_bgcolor = "#73777a";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
|
||||
#NEWLAYER: magazine/drone
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Drone";
|
||||
layerinfo redist_uniq = "magazine/drone";
|
||||
set sidebar_color = "#395f82";
|
||||
set main_bgcolor = "#f9fcfe";
|
||||
set main_fgcolor = "#000000";
|
||||
set border_color = "#000000";
|
||||
set headerbar_bgcolor = "#904094";
|
||||
set headerbar_fgcolor = "#ffffff";
|
||||
set title_color = "#f56efc";
|
||||
set meta_color = "#ffffff";
|
||||
set headerbar_bevel_color = "#ff93ff";
|
||||
set highlight_bgcolor = "#eeeeff";
|
||||
set highlight_fgcolor = "#000000";
|
||||
set link_color = "#395f82";
|
||||
set vlink_color = "#395f82";
|
||||
set alink_color = "#5266ce";
|
||||
set comment_bar_one_bgcolor = "#904094";
|
||||
set comment_bar_one_fgcolor = "#ffffff";
|
||||
set comment_bar_two_bgcolor = "#eeeeff";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
|
||||
#NEWLAYER: magazine/lowercurtain
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Lower the Curtain";
|
||||
layerinfo redist_uniq = "magazine/lowercurtain";
|
||||
set sidebar_color = "#000000";
|
||||
set main_bgcolor = "#6b6b6b";
|
||||
set main_fgcolor = "#ffffff";
|
||||
set border_color = "#ffffff";
|
||||
set headerbar_bgcolor = "#363636";
|
||||
set headerbar_fgcolor = "#f0f5fb";
|
||||
set title_color = "#c6c6c6";
|
||||
set meta_color = "#222222";
|
||||
set headerbar_bevel_color = "#363636";
|
||||
set highlight_bgcolor = "#c5c8ca";
|
||||
set highlight_fgcolor = "#000000";
|
||||
set link_color = "#000050";
|
||||
set vlink_color = "#500050";
|
||||
set alink_color = "#3314ba";
|
||||
set comment_bar_one_bgcolor = "#363636";
|
||||
set comment_bar_one_fgcolor = "#f0f5fb";
|
||||
set comment_bar_two_bgcolor = "#c5c8ca";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
|
||||
#NEWLAYER: magazine/sunny
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Sunny Day";
|
||||
layerinfo redist_uniq = "magazine/sunny";
|
||||
set sidebar_color = "#55e0f9";
|
||||
set main_bgcolor = "#e38202";
|
||||
set main_fgcolor = "#ffffff";
|
||||
set border_color = "#000000";
|
||||
set headerbar_bgcolor = "#e38202";
|
||||
set headerbar_fgcolor = "#ffffff";
|
||||
set title_color = "#fff505";
|
||||
set meta_color = "#ffffff";
|
||||
set headerbar_bevel_color = "#efe052";
|
||||
set highlight_bgcolor = "#ffba03";
|
||||
set highlight_fgcolor = "#ffffff";
|
||||
set link_color = "#df0d12";
|
||||
set vlink_color = "#ac1b25";
|
||||
set alink_color = "#fe3b3b";
|
||||
set comment_bar_one_bgcolor = "#e38202";
|
||||
set comment_bar_one_fgcolor = "#ffffff";
|
||||
set comment_bar_two_bgcolor = "#ffba03";
|
||||
set comment_bar_two_fgcolor = "#ffffff";
|
||||
|
||||
#NEWLAYER: magazine/valentine
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Be Mine";
|
||||
layerinfo redist_uniq = "magazine/valentine";
|
||||
set sidebar_color = "#6f104a";
|
||||
set main_bgcolor = "#f2bce9";
|
||||
set main_fgcolor = "#000000";
|
||||
set border_color = "#ff24ab";
|
||||
set headerbar_bgcolor = "#ff37ff";
|
||||
set headerbar_fgcolor = "#ffffff";
|
||||
set title_color = "#df2096";
|
||||
set meta_color = "#ffffff";
|
||||
set headerbar_bevel_color = "#ae1774";
|
||||
set highlight_bgcolor = "#df2096";
|
||||
set highlight_fgcolor = "#000000";
|
||||
set link_color = "#ffffff";
|
||||
set vlink_color = "#a51014";
|
||||
set alink_color = "#ed8188";
|
||||
set comment_bar_one_bgcolor = "#ff37ff";
|
||||
set comment_bar_one_fgcolor = "#ffffff";
|
||||
set comment_bar_two_bgcolor = "#df2096";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
|
||||
#NEWLAYER: magazine/stripes
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Stripes";
|
||||
layerinfo redist_uniq = "magazine/stripes";
|
||||
set sidebar_color = "#ffffff";
|
||||
set main_bgcolor = "#ffffff";
|
||||
set main_fgcolor = "#000000";
|
||||
set border_color = "#ff0000";
|
||||
set headerbar_bgcolor = "#e7212a";
|
||||
set headerbar_fgcolor = "#ffffff";
|
||||
set title_color = "#ffffff";
|
||||
set meta_color = "#000000";
|
||||
set headerbar_bevel_color = "#ffffff";
|
||||
set highlight_bgcolor = "#ffcfdc";
|
||||
set highlight_fgcolor = "#000000";
|
||||
set link_color = "#000050";
|
||||
set vlink_color = "#500050";
|
||||
set alink_color = "#ffafc1";
|
||||
set comment_bar_one_bgcolor = "#e7212a";
|
||||
set comment_bar_one_fgcolor = "#ffffff";
|
||||
set comment_bar_two_bgcolor = "#ffcfdc";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
14
livejournal/bin/upgrading/s2layers/notepad/en.s2
Executable file
@@ -0,0 +1,14 @@
|
||||
# -*-s2-*-
|
||||
|
||||
layerinfo type = "i18n";
|
||||
layerinfo name = "English";
|
||||
layerinfo redist_uniq = "notepad/en";
|
||||
|
||||
set text_meta_music = "Music";
|
||||
set text_meta_mood = "Mood";
|
||||
|
||||
set text_post_comment = "Make Notes";
|
||||
set text_read_comments = "Read # Notes";
|
||||
|
||||
set text_post_comment_friends = "Make Notes";
|
||||
set text_read_comments_friends = "Read # Notes";
|
||||
605
livejournal/bin/upgrading/s2layers/notepad/layout.s2
Executable file
@@ -0,0 +1,605 @@
|
||||
# -*-s2-*-
|
||||
|
||||
layerinfo type = "layout";
|
||||
layerinfo name = "Notepad";
|
||||
layerinfo redist_uniq = "notepad/layout";
|
||||
layerinfo previews = "notepad/notepad.jpg";
|
||||
|
||||
propgroup colors {
|
||||
property Color body_bgcolor {
|
||||
des = "Body background color";
|
||||
}
|
||||
property Color text_color {
|
||||
des = "Text color";
|
||||
}
|
||||
property Color subject_color {
|
||||
des = "Text color of subjects";
|
||||
}
|
||||
property Color link_color {
|
||||
des = "Link color";
|
||||
}
|
||||
property Color vlink_color {
|
||||
des = "Visited link color";
|
||||
}
|
||||
property Color alink_color {
|
||||
des = "Active link color";
|
||||
}
|
||||
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";
|
||||
}
|
||||
}
|
||||
set body_bgcolor = "#8cd5fe";
|
||||
set text_color = "#000000";
|
||||
set subject_color = "#ff0000";
|
||||
set link_color = "#000050";
|
||||
set vlink_color = "#500050";
|
||||
set alink_color = "#ff00c0";
|
||||
set comment_bar_one_bgcolor = "#c0c0ff";
|
||||
set comment_bar_one_fgcolor = "#000000";
|
||||
set comment_bar_two_bgcolor = "#eeeeff";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
set comment_bar_screened_bgcolor = "#dddddd";
|
||||
set comment_bar_screened_fgcolor = "#000000";
|
||||
|
||||
propgroup presentation {
|
||||
property bool show_entry_userpic {
|
||||
des = "Show the userpic on the journal entries?";
|
||||
}
|
||||
property use page_recent_items;
|
||||
property use page_friends_items;
|
||||
property use use_shared_pic;
|
||||
property use view_entry_disabled;
|
||||
property string page_background_image {
|
||||
des = "URL to an image to be used for the page background";
|
||||
}
|
||||
property bool show_entrynav_icons {
|
||||
des = "Toggle to show the next, memory, edit, etc icons on the entry view page";
|
||||
}
|
||||
property use external_stylesheet;
|
||||
}
|
||||
set show_entry_userpic = false;
|
||||
set view_entry_disabled = false;
|
||||
set page_background_image = "";
|
||||
set show_entrynav_icons = true;
|
||||
|
||||
propgroup text {
|
||||
property use text_post_comment;
|
||||
property use text_read_comments;
|
||||
property use text_post_comment_friends;
|
||||
property use text_read_comments_friends;
|
||||
}
|
||||
|
||||
property string imguri {
|
||||
noui = 1;
|
||||
des = "URI to notepad images (no trailing slash)";
|
||||
}
|
||||
set imguri = "";
|
||||
|
||||
function prop_init()
|
||||
{
|
||||
if ($*imguri == "") { $*imguri = "$*SITEROOT/img/style/notepad"; }
|
||||
}
|
||||
|
||||
function Page::lay_bottom_navigation() { }
|
||||
|
||||
function print_stylesheet ()
|
||||
{
|
||||
var string backgroundurl = clean_url($*page_background_image) != "" ? "background-image: url($*page_background_image);" : "";
|
||||
"""body {
|
||||
$backgroundurl
|
||||
background-color: $*body_bgcolor;
|
||||
}
|
||||
td,body,p,div {
|
||||
color: $*text_color;
|
||||
text-decoration: none;
|
||||
font-family: verdana,arial,helvetica;
|
||||
font-size: 12px;
|
||||
}
|
||||
a:link {
|
||||
color: $*link_color;
|
||||
text-decoration: underline;
|
||||
font-family: verdana,arial,helvetica;
|
||||
font-size: 12px;
|
||||
}
|
||||
a:visited {
|
||||
color: $*vlink_color;
|
||||
text-decoration: underline;
|
||||
font-family: verdana,arial,helvetica;
|
||||
font-size:12px;
|
||||
}
|
||||
a:active {
|
||||
color: $*alink_color;
|
||||
text-decoration: underline;
|
||||
font-family: verdana,arial,helvetica;
|
||||
font-size: 12px;
|
||||
}
|
||||
a:hover {
|
||||
color: $*alink_color;
|
||||
text-decoration: underline;
|
||||
font-family: verdana,arial,helvetica;
|
||||
font-size:12px;
|
||||
}""";
|
||||
}
|
||||
|
||||
function Page::print()
|
||||
{
|
||||
var string title = $this->title();
|
||||
"""<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n<html>\n<head>\n""";
|
||||
|
||||
if ($*external_stylesheet) {
|
||||
println """<link rel="stylesheet" href="$.stylesheet_url" type="text/css" />""";
|
||||
} else {
|
||||
println """<style type="text/css">"""; print_stylesheet(); "</style>";
|
||||
}
|
||||
$this->print_head();
|
||||
|
||||
"""<title>$title</title>
|
||||
</head>
|
||||
<body>
|
||||
<table width="70%" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<table border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td width="30"><img src="$*imguri/spacer.gif" width="30" height="10" alt='' /></td>
|
||||
<td width="120" height="18" style="background-image: url($*imguri/tab.jpg)">
|
||||
<a href="$.base_url/">Journal</a>
|
||||
</td>
|
||||
<td width="120" height="18" style="background-image: url($*imguri/tab.jpg)">
|
||||
<a href="$.base_url/friends">Friends</a>
|
||||
</td>
|
||||
<td width="120" height="18" style="background-image: url($*imguri/tab.jpg)">
|
||||
<a href="$.base_url/calendar">Archive</a>
|
||||
</td>
|
||||
<td width="120" height="18" style="background-image: url($*imguri/tab.jpg)">
|
||||
<a href="$.base_url/info">User Info</a>
|
||||
</td>
|
||||
<td width="120" height="18" style="background-image: url($*imguri/tab.jpg)">
|
||||
<a href="$*SITEROOT/tools/memories.bml?user=$.journal.username">memories</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="80" height="38" style="background-image: url($*imguri/top-left.jpg)">
|
||||
<img src="$*imguri/spacer.gif" width="80" height="10" alt='' />
|
||||
</td>
|
||||
<td height="38" style="background-image: url($*imguri/middle.jpg)">
|
||||
<img src="$*imguri/spacer.gif" width="10" height="10" alt='' />
|
||||
</td>
|
||||
<td width="10" height="38" style="background-image: url($*imguri/top-right.jpg)">
|
||||
<img src="$*imguri/spacer.gif" width="10" height="10" alt='' />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="80" height="38" style="background-image: url($*imguri/side-left.jpg)">
|
||||
|
||||
</td>
|
||||
<td width="100%" height="38" style="background-image: url($*imguri/middle.jpg)">
|
||||
<h1>$title</h1>
|
||||
<p align="center"><img src="$*imguri/hr.gif" width="345" height="23" alt='' /></p>
|
||||
""";
|
||||
|
||||
$this->print_body();
|
||||
|
||||
"<p style='text-align: center; font-size: 115%'>"; $this->lay_bottom_navigation(); "</p>";
|
||||
"""
|
||||
</td>
|
||||
<td width="8" height="38" style="background-image: url($*imguri/side-right.jpg)">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="80" height="12" style="background-image: url($*imguri/bottom-left.jpg)">
|
||||
<img src="$*imguri/spacer.gif" width="70" height="12" alt='' />
|
||||
</td>
|
||||
<td height="12" style="background-image: url($*imguri/bottom-line.jpg)">
|
||||
<img src="$*imguri/spacer.gif" width="10" height="12" alt='' />
|
||||
</td>
|
||||
<td width="8" height="12" style="background-image: url($*imguri/bottom-right.jpg)">
|
||||
<img src="$*imguri/spacer.gif" width="8" height="12" alt='' />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
""";
|
||||
}
|
||||
|
||||
function print_entry (Page p, Entry e, Color bgcolor, Color fgcolor, bool hide_text)
|
||||
{
|
||||
"<table border='0'><tr>";
|
||||
|
||||
if ($p.view == "friends" or
|
||||
$*show_entry_userpic == true or
|
||||
$e.journal.username != $e.poster.username)
|
||||
{
|
||||
var string userpic = defined $e.userpic ? "<img src='$e.userpic.url' /><br />" : "";
|
||||
"<td valign='top' width='100' align='center'>";
|
||||
if ($p.view == "friends" or $*show_entry_userpic == true) { print $userpic; }
|
||||
if ($p.view == "friends") { "<strong><a href='"; print $e.journal->base_url(); "/'>$e.journal.username</a></strong>"; }
|
||||
if ($e.journal.username != $e.poster.username)
|
||||
{
|
||||
print ($p.view == "friends" ?
|
||||
"<br />[ <a href='" + $e.poster->base_url() + "/'>$e.poster.username</a> ]" :
|
||||
"<strong><a href='" + $e.poster->base_url() + "/'>$e.poster.username</a></strong>");
|
||||
}
|
||||
"</td>";
|
||||
}
|
||||
"""<td valign="top" width='100%'><font size="+1">"""; print $e.time->date_format("med"); " "; print $e.time->time_format();
|
||||
if ($e.subject) { " <span style='color: $*subject_color'>$e.subject</span>"; }
|
||||
" $e.security_icon</font>";
|
||||
|
||||
if (not $hide_text)
|
||||
{
|
||||
print "<p>$e.text</p>";
|
||||
if (size $e.metadata) {
|
||||
"<p>";
|
||||
foreach var string k ($e.metadata) {
|
||||
var string key = $k;
|
||||
var string val = $e.metadata{$k};
|
||||
if ($k == "mood") {
|
||||
$key = $*text_meta_mood;
|
||||
} elseif ($k == "music") {
|
||||
$key = $*text_meta_music;
|
||||
}
|
||||
if ($k == "mood" and defined $e.mood_icon) {
|
||||
var Image i = $e.mood_icon;
|
||||
$val = "<img src='$i.url' width='$i.width' height='$i.height' align='absmiddle' alt='' /> $val";
|
||||
}
|
||||
"<strong>$key:</strong> $val<br />";
|
||||
}
|
||||
"</p>";
|
||||
}
|
||||
}
|
||||
$e.comments->print();
|
||||
if ($p.view == "entry" and $*show_entrynav_icons)
|
||||
{
|
||||
$e->print_linkbar();
|
||||
}
|
||||
"""</td></tr><tr><td colspan="2"></td></tr></table>""";
|
||||
"""<p align="center"><img src="$*imguri/hr.gif" width="345" height="23" alt='' /></p>""";
|
||||
}
|
||||
|
||||
function Page::print_entry (Entry e)
|
||||
{
|
||||
print_entry($this, $e, null Color, null Color, false);
|
||||
}
|
||||
|
||||
function RecentPage::print_body ()
|
||||
{
|
||||
foreach var Entry e ($.entries) {
|
||||
$this->print_entry($e);
|
||||
}
|
||||
}
|
||||
|
||||
function FriendsPage::print_entry (Entry e) {
|
||||
var Friend f = $.friends{$e.journal.username};
|
||||
print_entry($this, $e, $f.bgcolor, $f.fgcolor, false);
|
||||
}
|
||||
|
||||
function RecentPage::lay_bottom_navigation ()
|
||||
{
|
||||
var string nav = "";
|
||||
if ($.nav.backward_url != "") {
|
||||
$nav = """<a href="$.nav.backward_url">Back a Page</a>""";
|
||||
}
|
||||
if ($.nav.forward_url != "" and $.nav.backward_url != "") {
|
||||
$nav = "$nav - ";
|
||||
}
|
||||
if ($.nav.forward_url != "") {
|
||||
$nav = """$nav<a href="$.nav.forward_url">Forward a Page</a>""";
|
||||
}
|
||||
if ($nav != "") { print $nav; }
|
||||
}
|
||||
|
||||
function CommentInfo::print()
|
||||
{
|
||||
if (not $.enabled) { return; }
|
||||
if ($.count > 0 or $.screened)
|
||||
{
|
||||
$this->print_readlink(); " - ";
|
||||
}
|
||||
$this->print_postlink();
|
||||
}
|
||||
|
||||
function YearPage::lay_bottom_navigation ()
|
||||
{
|
||||
$this->print_year_links();
|
||||
}
|
||||
|
||||
function YearPage::print_year_links ()
|
||||
{
|
||||
if (size $.years <= 0) { return; }
|
||||
foreach var YearYear y ($.years)
|
||||
{
|
||||
if ($y.displayed) {
|
||||
"$y.year ";
|
||||
} else {
|
||||
"<a href='$y.url'>$y.year</a> ";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function YearPage::print_body ()
|
||||
{
|
||||
"<h2>$.year</h2>";
|
||||
foreach var YearMonth m ($.months)
|
||||
{
|
||||
$this->print_month($m);
|
||||
}
|
||||
}
|
||||
|
||||
function YearPage::print_month(YearMonth m)
|
||||
{
|
||||
if (not $m.has_entries) { return; }
|
||||
"<p align='center'><table border='1' cellpadding='4' width='80%'>";
|
||||
|
||||
# Month Header
|
||||
"<tr align=center><th colspan='7'>"; print $m->month_format(); "</th></tr>";
|
||||
|
||||
# Weekdays
|
||||
"<tr align='center'>";
|
||||
foreach var int d (weekdays())
|
||||
{
|
||||
"<td>" + $*lang_dayname_short[$d] + "</td>\n";
|
||||
}
|
||||
"</tr>";
|
||||
|
||||
# Weeks
|
||||
foreach var YearWeek w ($m.weeks)
|
||||
{
|
||||
$w->print();
|
||||
}
|
||||
"<tr align='center'><td colspan='7'>";
|
||||
"<a href='$m.url'>$*text_view_month</a>";
|
||||
"</td></tr></table></p>";
|
||||
}
|
||||
|
||||
function YearWeek::print()
|
||||
{
|
||||
"<tr>";
|
||||
if ($.pre_empty) { "<td colspan='$.pre_empty'> </td>"; }
|
||||
foreach var YearDay d ($.days)
|
||||
{
|
||||
"<td valign='top'><b><font size='-1'>$d.day</font></b><div align='center'>";
|
||||
if ($d.num_entries)
|
||||
{
|
||||
"<a href='$d.url'>$d.num_entries</a>";
|
||||
} else {
|
||||
" ";
|
||||
}
|
||||
"</div></td>";
|
||||
}
|
||||
if ($.post_empty) { "<td colspan='$.post_empty'> </td>"; }
|
||||
}
|
||||
|
||||
function DayPage::lay_bottom_navigation()
|
||||
{
|
||||
if (not $.has_entries) { "<img src='$*imguri/hr.gif' alt='' /><br />"; }
|
||||
print "<a href='$.prev_url'>Back a Day</a> - <a href='$.next_url'>Forward a Day</a>";
|
||||
}
|
||||
|
||||
function DayPage::print_body()
|
||||
{
|
||||
if (not $.has_entries) {
|
||||
"<p>No journal entries for this day.</p>";
|
||||
} else {
|
||||
foreach var Entry e ($.entries) { $this->print_entry($e); }
|
||||
}
|
||||
}
|
||||
|
||||
function EntryPage::print_body ()
|
||||
{
|
||||
set_handler("unscreen_comment_#", [
|
||||
[ "style_bgcolor", "cmtbar#", "$*comment_bar_one_bgcolor", ],
|
||||
[ "style_color", "cmtbar#", "$*comment_bar_one_fgcolor", ],
|
||||
]);
|
||||
set_handler("screen_comment_#", [
|
||||
[ "style_bgcolor", "cmtbar#", "$*comment_bar_screened_bgcolor", ],
|
||||
[ "style_color", "cmtbar#", "$*comment_bar_screened_fgcolor", ],
|
||||
]);
|
||||
|
||||
|
||||
print_entry($this, $.entry, null Color, null Color, $.viewing_thread);
|
||||
if ($.entry.comments.enabled and $.comment_pages.total_subitems > 0)
|
||||
{
|
||||
$this->print_multiform_start();
|
||||
print "<h2>Comments:</h2>";
|
||||
if ($.comment_pages.total_subitems > 0) {
|
||||
$.comment_pages->print();
|
||||
$this->print_comments($.comments);
|
||||
}
|
||||
if ($this.multiform_on) {
|
||||
"<h2>Mass Action:</h2>";
|
||||
$this->print_multiform_actionline();
|
||||
$this->print_multiform_end();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function EntryPage::print_comment (Comment c) {
|
||||
var Color barlight = $*color_comment_bar->clone();
|
||||
$barlight->lightness(($barlight->lightness() + 255) / 2);
|
||||
var Color barc = $c.depth % 2 ? $*color_comment_bar : $barlight;
|
||||
if ($c.screened) {
|
||||
$barc = $*comment_bar_screened_bgcolor;
|
||||
}
|
||||
var string poster = defined $c.poster ? $c.poster->as_string() : "<i>(Anonymous)</i>";
|
||||
|
||||
"<a name='$c.anchor'></a><div id='cmtbar$c.talkid' style='background-color: $barc; margin-top: 10px; width: 100%'>";
|
||||
"<table cellpadding='2' cellspacing='0' summary='0' style='width: 100%'><tr valign='top'>";
|
||||
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 "<td style='width: 102px'><img src='$c.userpic.url' width='$w' height='$h' alt='' /></td>";
|
||||
}
|
||||
"<td><table style='width: 100%'><tr>";
|
||||
|
||||
"<td align='left' style='width: 50%'>";
|
||||
print "<table>";
|
||||
print "<tr><th align='right'>$*text_comment_from</th><td>$poster</td></tr>\n";
|
||||
print "<tr><th align='right'>$*text_comment_date</th><td style='white-space: nowrap'>";
|
||||
print $c.time->date_format("long") + " - " + $c.time->time_format() + "</td></tr>";
|
||||
if ($c.metadata{"poster_ip"}) { print "<tr><th align='right'>$*text_comment_ipaddr</th><td>(" + $c.metadata{"poster_ip"} + ")</td></tr>"; }
|
||||
"</table></td>";
|
||||
|
||||
print "<td align='right' style='width: 50%'>";
|
||||
if ($this.multiform_on) {
|
||||
" <label for='ljcomsel_$c.talkid'>$*text_multiform_check</label> ";
|
||||
$c->print_multiform_check();
|
||||
}
|
||||
$c->print_linkbar();
|
||||
"</td></tr>";
|
||||
|
||||
print "<tr valign='top'><td style='width: 50%'>";
|
||||
if (defined $c.subject_icon or $c.subject != "") { "<h3>$c.subject_icon $c.subject</h3>\n"; }
|
||||
print "</td>";
|
||||
|
||||
print "<td style='width:50%;' align='right'><strong>(<a href='$c.permalink_url'>$*text_permalink</a>)</strong></td></tr>\n";
|
||||
print "</table></td></tr></table></div>";
|
||||
|
||||
print "<div style='margin-left: 5px'>$c.text</div>\n";
|
||||
print "<div style='margin-top: 3px; font-size: smaller'>";
|
||||
if ($c.frozen) {
|
||||
print "($*text_comment_frozen) ";
|
||||
} else {
|
||||
print "(<a href='$c.reply_url'>$*text_comment_reply</a>) ";
|
||||
}
|
||||
if ($c.parent_url != "") { "(<a href='$c.parent_url'>$*text_comment_parent</a>) "; }
|
||||
if ($c.thread_url != "") { "(<a href='$c.thread_url'>$*text_comment_thread</a>) "; }
|
||||
"</div>\n";
|
||||
}
|
||||
|
||||
function ReplyPage::print_body ()
|
||||
{
|
||||
if (not $.entry.comments.enabled)
|
||||
{
|
||||
print "<h2>$*text_reply_nocomments_header</h2><p>$*text_reply_nocomments</p>";
|
||||
return;
|
||||
}
|
||||
"<table border='0'><tr>";
|
||||
"<td valign='top' width='100' align='center'>";
|
||||
print defined $.replyto.userpic ? "<img src='$.replyto.userpic.url' alt='' /><br />" : "";
|
||||
print defined $.replyto.poster ? $.replyto.poster->as_string() : "<i>(Anonymous)</i>";
|
||||
"</td>";
|
||||
|
||||
"""<td valign="top"><font size="+1">"""; print $.replyto.time->date_format("med"); " "; print $.replyto.time->time_format();
|
||||
if ($.replyto.subject) { " <span style='color: $*subject_color'>$.replyto.subject</span>"; }
|
||||
"</font>";
|
||||
print "<p>$.replyto.text</p>";
|
||||
|
||||
|
||||
"<a href='$.entry.comments.read_url'>Read Comments</a>";
|
||||
"""</td></tr>""";
|
||||
"""<tr><td colspan="2"><p align="center"><img src="$*imguri/hr.gif" width="345" height="23" alt='' /></p>""";
|
||||
"</td></tr></table>\n";
|
||||
print "<h2>Reply</h2>";
|
||||
$.form->print();
|
||||
}
|
||||
|
||||
function print_theme_preview ()
|
||||
{
|
||||
"""
|
||||
<div style="color: $*text_color; background-color: $*body_bgcolor">
|
||||
<table width="70%" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<table border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td width="30"><img src="$*imguri/spacer.gif" width="30" height="10" alt='' /></td>
|
||||
<td width="120" height="18" style="background-image: url($*imguri/tab.jpg)">
|
||||
<a href="#" style="color: $*link_color">Tab</a>
|
||||
</td>
|
||||
<td width="120" height="18" style="background-image: url($*imguri/tab.jpg)">
|
||||
<a href="#" style="color: $*link_color">Tab</a>
|
||||
</td>
|
||||
<td width="120" height="18" style="background-image: url($*imguri/tab.jpg)">
|
||||
<a href="#" style="color: $*link_color">Tab</a>
|
||||
</td>
|
||||
<td width="120" height="18" style="background-image: url($*imguri/tab.jpg)">
|
||||
<a href="#" style="color: $*link_color">Tab</a>
|
||||
</td>
|
||||
<td width="120" height="18" style="background-image: url($*imguri/tab.jpg)">
|
||||
<a href="#" style="color: $*link_color">Tab</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="80" height="38" style="background-image: url($*imguri/top-left.jpg)">
|
||||
<img src="$*imguri/spacer.gif" width="80" height="10" />
|
||||
</td>
|
||||
<td height="38" style="background-image: url($*imguri/middle.jpg)">
|
||||
<img src="$*imguri/spacer.gif" width="10" height="10" />
|
||||
</td>
|
||||
<td width="10" height="38" style="background-image: url($*imguri/top-right.jpg)">
|
||||
<img src="$*imguri/spacer.gif" width="10" height="10" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="80" height="38" style="background-image: url($*imguri/side-left.jpg)">
|
||||
|
||||
</td>
|
||||
<td width="100%" height="38" style="background-image: url($*imguri/middle.jpg)">
|
||||
<h1>John Doe</h1>
|
||||
<p align="center"><img src="$*imguri/hr.gif" width="345" height="23"></p>
|
||||
<p align='center'>
|
||||
<table border='0'><tr><td valign="top">
|
||||
<h1>Dec. 16th, 2002 06:39 pm <span style='color: $*subject_color'>Neque porro quisquam est qui dolorem ipsum quia dolor sit amet…</span></h1>
|
||||
<p>
|
||||
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
|
||||
Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit
|
||||
</p>
|
||||
<p><a href="#" style="color: $*vlink_color; font-weight: bold">2 Comments</a> | <a href="#" style="color: $*link_color">Leave a comment</a></p></td></tr>
|
||||
<tr><td colspan="2"><p align="center"><img src="$*imguri/hr.gif" width="345" height="23"></p></td></tr>
|
||||
</table>
|
||||
</p>
|
||||
</td>
|
||||
<td width="8" height="38" style="background-image: url($*imguri/side-right.jpg)">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="80" height="12" style="background-image: url($*imguri/bottom-left.jpg)">
|
||||
<img src="$*imguri/spacer.gif" width="70" height="12" alt='' />
|
||||
</td>
|
||||
<td height="12" style="background-image: url($*imguri/bottom-line.jpg)">
|
||||
<img src="$*imguri/spacer.gif" width="10" height="12" alt='' />
|
||||
</td>
|
||||
<td width="8" height="12" style="background-image: url($*imguri/bottom-right.jpg)">
|
||||
<img src="$*imguri/spacer.gif" width="8" height="12" alt='' />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
""";
|
||||
}
|
||||
BIN
livejournal/bin/upgrading/s2layers/notepad/notepad.jpg
Executable file
|
After Width: | Height: | Size: 20 KiB |
27
livejournal/bin/upgrading/s2layers/policy.dat
Executable file
@@ -0,0 +1,27 @@
|
||||
# Do not modify this file. To set the S2-usage policy for your own
|
||||
# LiveJournal-based site, create a file beside this one called
|
||||
# policy-local.dat, based on instructions you find in this document.
|
||||
# That file will override anything not set here.
|
||||
#
|
||||
# 'allow' means all users get access. 'deny' means only users with
|
||||
# the 's2styles' capability get access.
|
||||
#
|
||||
|
||||
# Default policy for layouts without their own policy section.
|
||||
layer: *
|
||||
use allow # can all users use it?
|
||||
props allow # can all users modify any property of it?
|
||||
|
||||
# If you decide to make your site's default policy for * to be 'deny',
|
||||
# then you'll have to selectively allow access to parts, like so:
|
||||
|
||||
#layer: generator/layout
|
||||
# use allow
|
||||
# props deny
|
||||
# prop page_bgcolor allow
|
||||
|
||||
# Notes:
|
||||
# -- allowing/denying access to properties is only valid on
|
||||
# layout and core layers.
|
||||
# -- you can't disallow use of a core layer, or i18n layers.
|
||||
# -- for theme layers, you can only set the 'use' property.
|
||||
11
livejournal/bin/upgrading/s2layers/punquin/en.s2
Executable file
@@ -0,0 +1,11 @@
|
||||
# -*-s2-*-
|
||||
|
||||
layerinfo type = "i18n";
|
||||
layerinfo name = "English";
|
||||
layerinfo redist_uniq = "punquin/en";
|
||||
|
||||
set text_meta_music = "music";
|
||||
set text_meta_mood = "mood";
|
||||
|
||||
set text_post_comment = "Comment on this";
|
||||
set text_post_comment_friends = "Comment on this";
|
||||
699
livejournal/bin/upgrading/s2layers/punquin/layout.s2
Executable file
@@ -0,0 +1,699 @@
|
||||
# -*-s2-*-
|
||||
|
||||
layerinfo type = "layout";
|
||||
layerinfo name = "Punquin Elegant";
|
||||
layerinfo redist_uniq = "punquin/layout";
|
||||
layerinfo previews = "punquin/punquin.jpg";
|
||||
|
||||
# Colors
|
||||
propgroup colors {
|
||||
property Color body_bgcolor {
|
||||
des = "Page background color";
|
||||
s1color = "stronger_accent";
|
||||
}
|
||||
property Color main_bgcolor {
|
||||
des = "Background of text areas";
|
||||
s1color = "page_back";
|
||||
}
|
||||
property Color main_fgcolor {
|
||||
des = "Text color";
|
||||
s1color = "page_text";
|
||||
}
|
||||
property Color subject_color {
|
||||
des = "Color of entry subjects";
|
||||
s1color = "page_text_em";
|
||||
}
|
||||
property Color title_color {
|
||||
des = "Color of headers and titles";
|
||||
s1color = "page_text_title";
|
||||
}
|
||||
property Color border_color {
|
||||
des = "Color of borders";
|
||||
s1color = "weak_back";
|
||||
}
|
||||
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 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";
|
||||
}
|
||||
}
|
||||
set body_bgcolor = "#6666cc";
|
||||
set main_bgcolor = "#ffffff";
|
||||
set main_fgcolor = "#000000";
|
||||
set subject_color = "#c00000";
|
||||
set title_color = "#8b1a1a";
|
||||
set border_color = "#eeeeff";
|
||||
set link_color = "#000050";
|
||||
set vlink_color = "#500050";
|
||||
set alink_color = "#ff00c0";
|
||||
set comment_bar_one_bgcolor = "#c0c0ff";
|
||||
set comment_bar_one_fgcolor = "#000000";
|
||||
set comment_bar_two_bgcolor = "#eeeeff";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
set comment_bar_screened_bgcolor = "#dddddd";
|
||||
set comment_bar_screened_fgcolor = "#000000";
|
||||
|
||||
propgroup presentation {
|
||||
property bool show_recent_userpic {
|
||||
des = "Show the userpic on the recent entries page?";
|
||||
}
|
||||
property string sidebar_position {
|
||||
des = "Position of the sidebar relative to the main content";
|
||||
values = "left|Left|right|Right";
|
||||
}
|
||||
property use font_base;
|
||||
property use font_fallback;
|
||||
property use page_recent_items;
|
||||
property use page_friends_items;
|
||||
property use use_shared_pic;
|
||||
property use view_entry_disabled;
|
||||
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;
|
||||
}
|
||||
set font_base = "Verdana, Arial, Helvetica";
|
||||
set font_fallback = "sans-serif";
|
||||
set show_recent_userpic = false;
|
||||
set sidebar_position = "left";
|
||||
set page_recent_items = 20;
|
||||
set page_friends_items = 20;
|
||||
set view_entry_disabled = false;
|
||||
set show_entrynav_icons = true;
|
||||
set page_background_image = "";
|
||||
set linklist_support = false;
|
||||
|
||||
propgroup text {
|
||||
property string text_gotop {
|
||||
des = "Link text to 'top of the page'";
|
||||
noui = 1;
|
||||
}
|
||||
property use text_post_comment;
|
||||
property use text_read_comments;
|
||||
property use text_post_comment_friends;
|
||||
property use text_read_comments_friends;
|
||||
property use text_website_default_name;
|
||||
}
|
||||
set text_gotop = "Go to Top";
|
||||
set tags_aware = true;
|
||||
|
||||
function print_stylesheet ()
|
||||
{
|
||||
var string font = "$*font_base, $*font_fallback";
|
||||
print clean_url($*page_background_image) != "" ? "body { background-image: url($*page_background_image); }" : "";
|
||||
print """
|
||||
body {
|
||||
background-color: $*body_bgcolor;
|
||||
color: $*main_fgcolor;
|
||||
font: normal normal 10pt $font;
|
||||
}
|
||||
a {
|
||||
text-decoration: none;
|
||||
color: $*link_color;
|
||||
background: transparent;
|
||||
font: normal normal 10pt $font;
|
||||
}
|
||||
a:visited {
|
||||
color: $*vlink_color;
|
||||
background: transparent;
|
||||
}
|
||||
a:active {
|
||||
color: $*alink_color;
|
||||
background: transparent;
|
||||
}
|
||||
#title {
|
||||
font: normal bold 10pt $font;
|
||||
color: $*title_color;
|
||||
text-align: center;
|
||||
}
|
||||
.date {
|
||||
font: normal bold 12pt $font;
|
||||
color: $*title_color;
|
||||
text-align: right;
|
||||
}
|
||||
.comments {
|
||||
font: normal normal 8pt $font;
|
||||
}
|
||||
hr.separator {
|
||||
color: $*border_color;
|
||||
}
|
||||
.siteplug {
|
||||
font: normal normal 8pt $font;
|
||||
}
|
||||
#yearheader {
|
||||
text-align: right;
|
||||
color: $*title_color;
|
||||
font: normal bold 12pt $font;
|
||||
}
|
||||
th.monthheader {
|
||||
color: $*title_color;
|
||||
}
|
||||
th.daysheader {
|
||||
color: $*subject_color;
|
||||
}
|
||||
|
||||
/* Tables. Fun. */
|
||||
|
||||
table#main {
|
||||
border: solid 0px $*body_bgcolor;
|
||||
}
|
||||
table.standard {
|
||||
border: solid 5px $*border_color;
|
||||
background-color: $*main_bgcolor;
|
||||
color: $*main_fgcolor;
|
||||
font: normal normal 10pt $font;
|
||||
}
|
||||
table.standard>td {
|
||||
background-color: $*main_bgcolor;
|
||||
color: $*main_fgcolor;
|
||||
}
|
||||
table.standard td {
|
||||
font: normal normal 10pt $font;
|
||||
}
|
||||
""";
|
||||
}
|
||||
|
||||
|
||||
function Page::lay_sidebar_navigation () { }
|
||||
|
||||
function print_sidebar(Page p) {
|
||||
var string title = $p->title();
|
||||
var string userpic;
|
||||
var Image up_img = $p.journal.default_pic;
|
||||
if (defined $up_img) {
|
||||
$userpic = """<p align="center"><img border="0" src="$up_img.url" height="$up_img.height" width="$up_img.width" alt="" /></p>""";
|
||||
}
|
||||
|
||||
var string website_name = $p.journal.website_name ? $p.journal.website_name : $*text_website_default_name;
|
||||
var string website;
|
||||
if ($p.journal.website_url != "") {
|
||||
$website = """> <a href="$p.journal.website_url">$website_name</a><br />""";
|
||||
}
|
||||
|
||||
var string links;
|
||||
foreach var string v ($p.views_order) {
|
||||
$links = "$links> " + ($p.view == $v ?
|
||||
lang_viewname($v) :
|
||||
"<a href='$p.view_url{$v}'>"+lang_viewname($v)+"</a>") + "<br />\n";
|
||||
}
|
||||
|
||||
# Table Wrapper
|
||||
"<!-- Begin Main Sidebar -->\n<td valign='top' align='$*sidebar_position'>";
|
||||
"<table width='150' class='standard' cellpadding='5' cellspacing='0'>\n";
|
||||
"<tr valign='top'><td align='left'>";
|
||||
|
||||
# Title
|
||||
"<div style='text-align:center'><span style='color: $*title_color'><strong>$title</strong></span></div>\n";
|
||||
|
||||
# Links
|
||||
"<p>$links\n$website\n";
|
||||
$p->lay_sidebar_navigation();
|
||||
|
||||
# Userpic
|
||||
"</p>"; if($userpic != "") { "<div style='text-align:center'>$userpic</div>"; }
|
||||
|
||||
# Link List
|
||||
if (size $p.linklist > 0 and $*linklist_support) {
|
||||
if (not $p.linklist[0].is_heading) {
|
||||
"<b>Links</b><br />";
|
||||
}
|
||||
$p->print_linklist();
|
||||
}
|
||||
|
||||
# End Table
|
||||
"</td></tr></table>\n<!-- End Main Sidebar -->";
|
||||
}
|
||||
|
||||
function print_gotop (Page p)
|
||||
{
|
||||
"<td valign='bottom' align='$*sidebar_position'>\n<!-- Begin Small Sidebar -->\n";
|
||||
"<table width='150' class='standard' cellpadding='5' cellspacing='0'>\n";
|
||||
"<tr valign='top'><td align='left'>\n";
|
||||
$p->lay_sidebar_navigation();
|
||||
"<br />> <a href='#top'>$*text_gotop</a><br>\n</td></tr></table>\n<!-- End Small Sidebar -->";
|
||||
}
|
||||
|
||||
function Page::print ()
|
||||
{
|
||||
var string title = $this->title();
|
||||
var string main_position = $*sidebar_position == "left" ? "right" : "left";
|
||||
|
||||
# Head
|
||||
println "<html><head>";
|
||||
|
||||
if ($*external_stylesheet) {
|
||||
println """<link rel="stylesheet" href="$.stylesheet_url" type="text/css" />""";
|
||||
} else {
|
||||
println """<style type="text/css">"""; print_stylesheet(); "</style>";
|
||||
}
|
||||
$this->print_head();
|
||||
|
||||
"<title>$title</title>\n</head>\n";
|
||||
|
||||
# Body
|
||||
"<body>\n<a name='top'></a><div align='center'>\n";
|
||||
|
||||
# Table wrapper
|
||||
"<table id='main' cellpadding='5' cellspacing='0' width='90%'>\n<tr>";
|
||||
|
||||
if ($*sidebar_position == "left") { print_sidebar($this); }
|
||||
|
||||
# Main content
|
||||
"<td valign='top' align='$main_position' rowspan='2'>\n<!-- Begin Main -->\n";
|
||||
"<table class='standard' width='100%' height='90%' cellpadding='5' cellspacing='0'><tr valign='top'><td>\n";
|
||||
$this->print_body();
|
||||
"</td></tr></table>\n<!-- End Main -->\n</td>";
|
||||
|
||||
if ($*sidebar_position == "right") { print_sidebar($this); }
|
||||
|
||||
# Go to top
|
||||
"</tr><tr>";
|
||||
print_gotop($this);
|
||||
"</tr><tr>";
|
||||
|
||||
# Plug the site!
|
||||
"<td colspan='2' align='$main_position'>\n";
|
||||
"<a href='$*SITEROOT/'>$*SITENAME</a></td>\n";
|
||||
|
||||
"</tr></table></div></body></html>";
|
||||
}
|
||||
|
||||
function print_entry (Page p, Entry e, Color bgcolor, Color fgcolor, bool hide_text)
|
||||
{
|
||||
var string time = $e.time->time_format();
|
||||
if ($e.new_day or $p.view == "entry") {
|
||||
"<p class='date'>"; print $e.time->date_format("%%month%% %%dayord%%, %%yyyy%%"); "</p>";
|
||||
"<hr class='separator' />";
|
||||
}
|
||||
|
||||
if ($p.view == "entry" and $*show_entrynav_icons)
|
||||
{
|
||||
print "<div style='text-align: center'>";
|
||||
$e->print_linkbar();
|
||||
print "</div>";
|
||||
}
|
||||
|
||||
"<table border='0' cellpadding='2' cellspacing='0'><tr>";
|
||||
|
||||
if ($p.view == "friends" or
|
||||
$e.poster.username != $e.journal.username or
|
||||
$*show_recent_userpic == true)
|
||||
{
|
||||
# Lots of muddled logic. Yay.
|
||||
|
||||
"""<td valign=top align="middle" style="background-color: $bgcolor" width="100">""";
|
||||
if ($p.view == "friends") {
|
||||
"""<a href='""" + $e.journal->base_url() + """/' style="color: $fgcolor; font-weight: bold">$e.journal.username</a><br />""";
|
||||
}
|
||||
if ($e.poster.username != $e.journal.username) {
|
||||
if ($p.view == "friends") {
|
||||
"""[<a href='""" + $e.poster->base_url() + """/' style="color: $fgcolor">$e.poster.username</a>]<br />""";
|
||||
} else {
|
||||
"""<a href='""" + $e.poster->base_url() + """/' style="color: $fgcolor; font-weight: bold">$e.poster.username</a><br />""";
|
||||
}
|
||||
}
|
||||
if (defined $e.userpic) {
|
||||
if (($*show_recent_userpic == false) and
|
||||
($p.view != "friends") and
|
||||
($p.journal_type != "C") ) { }
|
||||
else { """<img border="0" src="$e.userpic.url" width="$e.userpic.width" height="$e.userpic.height" alt="" />""";
|
||||
}
|
||||
}
|
||||
"</td>";
|
||||
}
|
||||
"<td valign='top'><strong>$time";
|
||||
if ($e.subject) { " - <span style='color: $*subject_color'>$e.subject</span>"; }
|
||||
|
||||
if ($e.security) {
|
||||
" "; $e.security_icon->print();
|
||||
}
|
||||
"</strong><br />";
|
||||
if (not $hide_text) {
|
||||
print $e.text; "<br />";
|
||||
if (size $e.metadata) {
|
||||
foreach var string k ($e.metadata) {
|
||||
var string key = $k;
|
||||
var string val = $e.metadata{$k};
|
||||
if ($k == "mood") {
|
||||
$key = $*text_meta_mood;
|
||||
} elseif ( $k == "music" ) {
|
||||
$key = $*text_meta_music;
|
||||
}
|
||||
if ($k == "mood" and defined $e.mood_icon) {
|
||||
var Image i = $e.mood_icon;
|
||||
$val = "<img src='$i.url' width='$i.width' height='$i.height' align='absmiddle' alt='[mood icon]' /> $val";
|
||||
}
|
||||
"<strong>$key:</strong> $val<br />";
|
||||
}
|
||||
}
|
||||
if ($e.tags) {
|
||||
var int tcount = 0;
|
||||
"<div class='ljtags'><strong>Tags:</strong> ";
|
||||
foreach var Tag t ($e.tags) {
|
||||
"""<a rel="tag" href="$t.url">$t.name</a>""";
|
||||
$tcount++;
|
||||
if ($tcount != size $e.tags) { ", "; }
|
||||
}
|
||||
"</div>";
|
||||
}
|
||||
}
|
||||
"</td></tr></table>";
|
||||
$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 RecentPage::print_body {
|
||||
foreach var Entry e ($.entries) {
|
||||
$this->print_entry($e);
|
||||
}
|
||||
}
|
||||
|
||||
function FriendsPage::print_body {
|
||||
foreach var Entry e ($.entries) {
|
||||
$this->print_entry($e);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function RecentPage::lay_sidebar_navigation () {
|
||||
var int total = size $.entries;
|
||||
var string nav = "";
|
||||
if ($.nav.backward_url != "") {
|
||||
$nav = """> <a href="$.nav.backward_url">previous $total entries</a>""";
|
||||
}
|
||||
if ($.nav.forward_url != "" and $.nav.backward_url != "") {
|
||||
$nav = "$nav<br />";
|
||||
}
|
||||
if ($.nav.forward_url != "") {
|
||||
$nav = """${nav}> <a href="$.nav.forward_url">next $total entries</a>""";
|
||||
}
|
||||
print $nav;
|
||||
}
|
||||
|
||||
function CommentInfo::print ()
|
||||
{
|
||||
if (not $.enabled) {
|
||||
"<p align='right' class='comments'> </p>";
|
||||
return;
|
||||
}
|
||||
"<p align='right' class='comments'>(";
|
||||
if ($.count > 0 or $.screened) {
|
||||
$this->print_readlink();
|
||||
" | ";
|
||||
}
|
||||
$this->print_postlink();
|
||||
")</p>";
|
||||
}
|
||||
|
||||
function YearPage::print_body {
|
||||
"<p id='yearheader'>$.year</p>\n";
|
||||
foreach var YearMonth m ($.months) {
|
||||
$this->print_month($m);
|
||||
}
|
||||
}
|
||||
|
||||
function YearPage::print_year_links ()
|
||||
{
|
||||
foreach var YearYear y ($.years) {
|
||||
if ($y.displayed) {
|
||||
"> $y.year<br />";
|
||||
} else {
|
||||
"> <a href=\"$y.url\">$y.year</a><br />";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function YearPage::lay_sidebar_navigation ()
|
||||
{
|
||||
$this->print_year_links();
|
||||
}
|
||||
|
||||
function YearPage::print_month(YearMonth m)
|
||||
{
|
||||
if (not $m.has_entries) { return; }
|
||||
# Table Wrapper
|
||||
"<center><p><table border='1' cellpadding='4' width='80%'>\n";
|
||||
|
||||
# Month Header
|
||||
"<tr align='center'><th colspan='7' class='monthheader'>\n";
|
||||
print $m->month_format();
|
||||
"</th></tr>\n";
|
||||
|
||||
# Weekdays Header
|
||||
"<tr align='center'>\n";
|
||||
foreach var int d (weekdays()) {
|
||||
"<th class='daysheader'>"+$*lang_dayname_short[$d]+"</th>\n";
|
||||
}
|
||||
"</tr>\n";
|
||||
|
||||
# Weeks
|
||||
foreach var YearWeek w ($m.weeks) {
|
||||
$w->print();
|
||||
}
|
||||
|
||||
# Footer
|
||||
"<tr><td colspan='7'><div style='text-align: center'><a href='$m.url'>view subjects</a></div></td></tr>\n";
|
||||
|
||||
# End Table
|
||||
"</table></p></center>\n";
|
||||
}
|
||||
|
||||
function YearWeek::print () {
|
||||
"<tr>";
|
||||
if ($.pre_empty) { "<td colspan='$.pre_empty'> </td>"; }
|
||||
foreach var YearDay d ($.days) {
|
||||
"<td valign='top'><strong>$d.day</strong><div style='text-align: center'>";
|
||||
if ($d.num_entries) {
|
||||
"<a href='$d.url'>$d.num_entries</a>";
|
||||
} else {
|
||||
" ";
|
||||
}
|
||||
"</div></td>\n";
|
||||
}
|
||||
if ($.post_empty) { "<td colspan='$.post_empty'> </td>"; }
|
||||
"</tr>";
|
||||
}
|
||||
|
||||
function DayPage::print_body() {
|
||||
if (not $.has_entries) {
|
||||
"<table width='100%'><tr><td><p class='date'>\n";
|
||||
print $.date->date_format("%%month%% %%dayord%%, %%yyyy%%");
|
||||
"</p><hr class='separator' width='100%' /></td></tr>";
|
||||
"<tr><td><blockquote align='center'>"; print ehtml($*text_noentries_day); "</blockquote></td></tr></table>";
|
||||
} else {
|
||||
foreach var Entry e ($.entries) {
|
||||
$this->print_entry($e);
|
||||
}
|
||||
}
|
||||
|
||||
var string tprev = ehtml($*text_day_prev);
|
||||
var string tnext = ehtml($*text_day_next);
|
||||
|
||||
"<hr class='separator' width='100%' />\n";
|
||||
"<table width='100%'><tr align='middle'>\n";
|
||||
|
||||
"<td width='33%' align='left'><a href='$.prev_url'>$tprev</a></td>\n";
|
||||
"<td align='center' width='33%'>[<a href='"; print $this.journal->base_url(); "/calendar'>$*text_view_archive</a>]</td>\n";
|
||||
"<td width='33%' align='right'><a href='$.next_url'>$tnext</a></td>\n";
|
||||
|
||||
"</tr></table>";
|
||||
}
|
||||
|
||||
function EntryPage::print_body ()
|
||||
{
|
||||
set_handler("unscreen_comment_#", [
|
||||
[ "style_bgcolor", "cmtbar#", "$*comment_bar_one_bgcolor", ],
|
||||
[ "style_color", "cmtbar#", "$*comment_bar_one_fgcolor", ],
|
||||
]);
|
||||
set_handler("screen_comment_#", [
|
||||
[ "style_bgcolor", "cmtbar#", "$*comment_bar_screened_bgcolor", ],
|
||||
[ "style_color", "cmtbar#", "$*comment_bar_screened_fgcolor", ],
|
||||
]);
|
||||
|
||||
print_entry($this, $.entry, null Color, null Color, $.viewing_thread);
|
||||
if ($.entry.comments.enabled and $.comment_pages.total_subitems > 0)
|
||||
{
|
||||
$this->print_multiform_start();
|
||||
print "<h2 class='date'>Comments:</h2>";
|
||||
"<hr class='separator' />";
|
||||
if ($.comment_pages.total_subitems > 0) {
|
||||
$.comment_pages->print();
|
||||
$this->print_comments($.comments);
|
||||
}
|
||||
if ($this.multiform_on) {
|
||||
print "<h2 class='date'>Mass Action:</h2>";
|
||||
"<hr class='separator' />";
|
||||
$this->print_multiform_actionline();
|
||||
$this->print_multiform_end();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function EntryPage::print_comment (Comment c) {
|
||||
var Color background; var Color color;
|
||||
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() : "<i>(Anonymous)</i>";
|
||||
var string sub_icon;
|
||||
if (defined $c.subject_icon) {
|
||||
$sub_icon = $c.subject_icon->as_string();
|
||||
}
|
||||
"<a name='$c.anchor'></a><div id='cmtbar$c.talkid' style='background-color: $background; color: $color; margin-top: 10px; width: 100%'>";
|
||||
"<table cellpadding='2' cellspacing='0' summary='0' style='width: 100%'><tr valign='top'>";
|
||||
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 "<td style='width: 102px'><img src='$c.userpic.url' width='$w' height='$h' alt='[User Picture]' /></td>";
|
||||
}
|
||||
|
||||
"<td style='width: 100%'><table style='width: 100%'><tr>";
|
||||
|
||||
### From, date, etc
|
||||
"<td align='left' style='width: 50%'>";
|
||||
print "<table>";
|
||||
print "<tr><th align='right' style='font-size: .9em'>From:</th><td>$poster</td></tr>\n";
|
||||
print "<tr><th align='right' style='font-size: .9em'>Date:</th><td style='white-space: nowrap'>";
|
||||
print $c.time->date_format("long") + " - " + $c.time->time_format() + "</td></tr>";
|
||||
if ($c.metadata{"poster_ip"}) { print "<tr><th align='right' style='font-size: .9em'>IP Address:</th><td>(" + $c.metadata{"poster_ip"} + ")</td></tr>"; }
|
||||
"</table></td>";
|
||||
|
||||
### Gadgets
|
||||
"<td align='right' style='width: 50%'>";
|
||||
if ($this.multiform_on) {
|
||||
" <label for='ljcomsel_$c.talkid'>$*text_multiform_check</label>";
|
||||
$c->print_multiform_check();
|
||||
}
|
||||
$c->print_linkbar();
|
||||
"</td></tr>";
|
||||
|
||||
### Subject / icon
|
||||
print "<tr valign='top'><td style='width: 50%'>";
|
||||
print (defined $c.subject_icon or $c.subject != "") ? "<h3>$c.subject_icon $c.subject</h3>" : "";
|
||||
print "</td>";
|
||||
|
||||
### Permalink
|
||||
print "<td style='width: 50%' align='right'><strong>(<a href='$c.permalink_url'>Link</a>)</strong></td></tr>";
|
||||
|
||||
print "</table></td></tr></table></div>";
|
||||
print "<div style='margin-left: 5px'>$c.text</div>";
|
||||
print "<div style='margin-top: 3px; font-size: smaller'>";
|
||||
if ($c.frozen) {
|
||||
print "(Replies frozen)";
|
||||
} else {
|
||||
print "(<a href='$c.reply_url'>Reply to this</a>) ";
|
||||
}
|
||||
if ($c.parent_url != "") { "(<a href='$c.parent_url'>Parent</a>) "; }
|
||||
if ($c.thread_url != "") { "(<a href='$c.thread_url'>Thread</a>) "; }
|
||||
"</div>";
|
||||
}
|
||||
|
||||
function ReplyPage::print_body() {
|
||||
if (not $.entry.comments.enabled)
|
||||
{
|
||||
"<h2 class='date'>$*text_reply_nocomments_header</h2>";
|
||||
"<hr class='separator' />";
|
||||
"<p>$*text_reply_nocomments</p>";
|
||||
return;
|
||||
}
|
||||
"<p class='date'>"; print $.replyto.time->date_format("%%month%% %%dayord%%, %%yyyy%%"); "</p>";
|
||||
"<hr class='separator' />";
|
||||
|
||||
"<table border='0' cellpadding='2' cellspacing='0'><tr>";
|
||||
|
||||
"""<td valign=top align="middle" width="100">""";
|
||||
print defined $.replyto.poster ? $.replyto.poster->as_string() : "<i>(Anonymous)</i>";
|
||||
if (defined $.replyto.userpic) {
|
||||
print """<img border="0" src="$.replyto.userpic.url" width="$.replyto.userpic.width" height="$.replyto.userpic.height" alt="" />""";
|
||||
}
|
||||
"</td>";
|
||||
|
||||
"<td valign='top'><strong>"; print $.replyto.time->time_format();
|
||||
if ($.replyto.subject) { " - <span style='color: $*subject_color'>$.replyto.subject</span>"; }
|
||||
|
||||
"</strong><br />";
|
||||
|
||||
print $.replyto.text; "<br />";
|
||||
|
||||
"</td></tr></table>";
|
||||
"<p align='right' class='comments'><a href='$.entry.comments.read_url'>Read Comments</a></p>";
|
||||
"<h2 class='date'>Reply</h2>";
|
||||
"<hr class='separator' />";
|
||||
$.form->print();
|
||||
}
|
||||
|
||||
function print_theme_preview ()
|
||||
{
|
||||
"""
|
||||
<table width="100%" style="background-color: $*body_bgcolor; border: solid 1px #000000"><tr><td style="color:$*main_fgcolor">
|
||||
<table bgcolor="$*border_color" border="0" cellpadding="5" cellspacing="0" width="60%" align="center">
|
||||
<tr><td valign="center" align="center">
|
||||
<table width="100%" height=90% bgcolor="$*main_bgcolor" border="0" cellpadding="5" cellspacing="0">
|
||||
<tr valign="top"><td>
|
||||
<p align="right"><font color="$*title_color" face="verdana,arial,helvetica" size="3">
|
||||
<strong>December 18th, 2002</strong></font><hr noshade color="$*border_color" size="1" width="100%" />
|
||||
</p>
|
||||
<font face="verdana,arial,helvetica" size="2">
|
||||
<b>01:22 am - <font color="$*subject_color">Test</font></b><font face="verdana,arial,helvetica" size="2"><br />
|
||||
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.</font>
|
||||
<p align="right">(<a style="color: $*link_color" href="#">Read # Comments</a> | <a style="color: $*vlink_color" href="#">Leave a comment</a>)</p>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr></table>
|
||||
""";
|
||||
}
|
||||
BIN
livejournal/bin/upgrading/s2layers/punquin/punquin.jpg
Executable file
|
After Width: | Height: | Size: 12 KiB |
450
livejournal/bin/upgrading/s2layers/punquin/themes.s2
Executable file
@@ -0,0 +1,450 @@
|
||||
#NEWLAYER: punquin/bw
|
||||
layerinfo type = "theme";
|
||||
layerinfo name = "Black on White";
|
||||
layerinfo redist_uniq = "punquin/bw";
|
||||
set body_bgcolor = "#333333";
|
||||
set main_bgcolor = "#ffffff";
|
||||
set main_fgcolor = "#000000";
|
||||
set subject_color = "#c00000";
|
||||
set title_color = "#336699";
|
||||
set border_color = "#dddddd";
|
||||
set link_color = "#000050";
|
||||
set vlink_color = "#500050";
|
||||
set alink_color = "#ff00c0";
|
||||
set comment_bar_one_bgcolor = "#dddddd";
|
||||
set comment_bar_one_fgcolor = "#000000";
|
||||
set comment_bar_two_bgcolor = "#aaaaaa";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
|
||||
#NEWLAYER: punquin/autumn
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Autumn";
|
||||
layerinfo redist_uniq = "punquin/autumn";
|
||||
layerinfo author = "pumpsnail";
|
||||
set body_bgcolor = "#660033";
|
||||
set main_bgcolor = "#990022";
|
||||
set main_fgcolor = "#ffffff";
|
||||
set subject_color = "#ffffff";
|
||||
set title_color = "#ffffff";
|
||||
set border_color = "#fcc303";
|
||||
set link_color = "#cc6600";
|
||||
set vlink_color = "#cc99cc";
|
||||
set alink_color = "#ffcc33";
|
||||
set comment_bar_one_bgcolor = "#660033";
|
||||
set comment_bar_one_fgcolor = "#ffffff";
|
||||
set comment_bar_two_bgcolor = "#993366";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
|
||||
#NEWLAYER: punquin/greyslate
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Grey Slate Rain";
|
||||
layerinfo redist_uniq = "punquin/greyslate";
|
||||
set body_bgcolor = "#67698f";
|
||||
set main_bgcolor = "#ffffff";
|
||||
set main_fgcolor = "#000000";
|
||||
set subject_color = "#000000";
|
||||
set title_color = "#336699";
|
||||
set border_color = "#dddddd";
|
||||
set link_color = "#8e80f8";
|
||||
set vlink_color = "#c780f8";
|
||||
set alink_color = "#f880dd";
|
||||
set comment_bar_one_bgcolor = "#dddddd";
|
||||
set comment_bar_one_fgcolor = "#000000";
|
||||
set comment_bar_two_bgcolor = "#aaaaaa";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
|
||||
#NEWLAYER: punquin/minimal
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Minimalist";
|
||||
layerinfo redist_uniq = "punquin/minimal";
|
||||
set body_bgcolor = "#ffffff";
|
||||
set main_bgcolor = "#ffffff";
|
||||
set main_fgcolor = "#333333";
|
||||
set subject_color = "#333333";
|
||||
set title_color = "#333333";
|
||||
set border_color = "#aaaaaa";
|
||||
set link_color = "#8e80f8";
|
||||
set vlink_color = "#c780f8";
|
||||
set alink_color = "#f880dd";
|
||||
set comment_bar_one_bgcolor = "#dddddd";
|
||||
set comment_bar_one_fgcolor = "#000000";
|
||||
set comment_bar_two_bgcolor = "#aaaaaa";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
|
||||
#NEWLAYER: punquin/jewel
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Jewel Toned";
|
||||
layerinfo redist_uniq = "punquin/jewel";
|
||||
set body_bgcolor = "#950875";
|
||||
set main_bgcolor = "#f3a8e2";
|
||||
set main_fgcolor = "#000000";
|
||||
set subject_color = "#c00000";
|
||||
set title_color = "#336699";
|
||||
set border_color = "#dddddd";
|
||||
set link_color = "#000050";
|
||||
set vlink_color = "#500050";
|
||||
set alink_color = "#ff00c0";
|
||||
set comment_bar_one_bgcolor = "#950875";
|
||||
set comment_bar_one_fgcolor = "#f3a8e2";
|
||||
set comment_bar_two_bgcolor = "#b70875";
|
||||
set comment_bar_two_fgcolor = "#f3a8e2";
|
||||
|
||||
#NEWLAYER: punquin/bold
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Bold";
|
||||
layerinfo redist_uniq = "punquin/bold";
|
||||
set body_bgcolor = "#2501da";
|
||||
set main_bgcolor = "#ffffff";
|
||||
set main_fgcolor = "#000000";
|
||||
set subject_color = "#c00453";
|
||||
set title_color = "#f50930";
|
||||
set border_color = "#000000";
|
||||
set link_color = "#5f5cd5";
|
||||
set vlink_color = "#2a2ab2";
|
||||
set alink_color = "#4a92eb";
|
||||
set comment_bar_one_bgcolor = "#2501da";
|
||||
set comment_bar_one_fgcolor = "#ffffff";
|
||||
set comment_bar_two_bgcolor = "#2501fc";
|
||||
set comment_bar_two_fgcolor = "#ffffff";
|
||||
|
||||
#NEWLAYER: punquin/shrinkvio
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Shrinking Violet";
|
||||
layerinfo redist_uniq = "punquin/shrinkvio";
|
||||
set body_bgcolor = "#ad22e7";
|
||||
set main_bgcolor = "#ffffff";
|
||||
set main_fgcolor = "#000000";
|
||||
set border_color = "#381a45";
|
||||
set title_color = "#5d0383";
|
||||
set subject_color = "#d9a1f1";
|
||||
set link_color = "#2e053f";
|
||||
set vlink_color = "#611627";
|
||||
set alink_color = "#ff00c0";
|
||||
set comment_bar_one_bgcolor = "#5d0383";
|
||||
set comment_bar_one_fgcolor = "#ffffff";
|
||||
set comment_bar_two_bgcolor = "#d9a1f1";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
|
||||
#NEWLAYER: punquin/pistmint
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Pistachio Mint";
|
||||
layerinfo redist_uniq = "punquin/pistmint";
|
||||
set body_bgcolor = "#133422";
|
||||
set main_bgcolor = "#a7c4b4";
|
||||
set main_fgcolor = "#000000";
|
||||
set border_color = "#096d36";
|
||||
set title_color = "#096d36";
|
||||
set subject_color = "#096d36";
|
||||
set link_color = "#8afabc";
|
||||
set vlink_color = "#1da65a";
|
||||
set alink_color = "#f9f5f5";
|
||||
set comment_bar_one_bgcolor = "#096d36";
|
||||
set comment_bar_one_fgcolor = "#ffffff";
|
||||
set comment_bar_two_bgcolor = "#093d36";
|
||||
set comment_bar_two_fgcolor = "#ffffff";
|
||||
|
||||
#NEWLAYER: punquin/mexicanfood
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Mexican Food";
|
||||
layerinfo redist_uniq = "punquin/mexicanfood";
|
||||
set body_bgcolor = "#ff0000";
|
||||
set main_bgcolor = "#f8ff3e";
|
||||
set main_fgcolor = "#f15601";
|
||||
set border_color = "#f50701";
|
||||
set title_color = "#bdbf3e";
|
||||
set subject_color = "#f9ff9d";
|
||||
set link_color = "#f49e08";
|
||||
set vlink_color = "#b05403";
|
||||
set alink_color = "#ff7405";
|
||||
set comment_bar_one_bgcolor = "#bdbf3e";
|
||||
set comment_bar_one_fgcolor = "#ff0000";
|
||||
set comment_bar_two_bgcolor = "#e15a18";
|
||||
set comment_bar_two_fgcolor = "#ffffff";
|
||||
|
||||
#NEWLAYER: punquin/ashfire
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Ash and Fire";
|
||||
layerinfo redist_uniq = "punquin/ashfire";
|
||||
set body_bgcolor = "#b5b5b5";
|
||||
set main_bgcolor = "#ffb6af";
|
||||
set main_fgcolor = "#000000";
|
||||
set border_color = "#d90308";
|
||||
set title_color = "#e75454";
|
||||
set subject_color = "#ff1106";
|
||||
set link_color = "#f70208";
|
||||
set vlink_color = "#b0161d";
|
||||
set alink_color = "#d70106";
|
||||
set comment_bar_one_bgcolor = "#e75454";
|
||||
set comment_bar_one_fgcolor = "#ffffff";
|
||||
set comment_bar_two_bgcolor = "#f06c88";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
|
||||
#NEWLAYER: punquin/desktop
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Classic Desktop";
|
||||
layerinfo redist_uniq = "punquin/desktop";
|
||||
set body_bgcolor = "#00545c";
|
||||
set main_bgcolor = "#ffffff";
|
||||
set main_fgcolor = "#000000";
|
||||
set border_color = "#000000";
|
||||
set title_color = "#ff7b05";
|
||||
set subject_color = "#ff7b05";
|
||||
set link_color = "#000050";
|
||||
set vlink_color = "#500050";
|
||||
set alink_color = "#5a76ff";
|
||||
set comment_bar_one_bgcolor = "#ff7b05";
|
||||
set comment_bar_one_fgcolor = "#ffeddd";
|
||||
set comment_bar_two_bgcolor = "#ffeddd";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
|
||||
#NEWLAYER: punquin/satinhandshake
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Satin Handshake";
|
||||
layerinfo redist_uniq = "punquin/satinhandshake";
|
||||
set body_bgcolor = "#480c0c";
|
||||
set main_bgcolor = "#d06464";
|
||||
set main_fgcolor = "#00001d";
|
||||
set border_color = "#000000";
|
||||
set title_color = "#aaaaaa";
|
||||
set subject_color = "#9d0404";
|
||||
set link_color = "#000050";
|
||||
set vlink_color = "#500050";
|
||||
set alink_color = "#ff00c0";
|
||||
set comment_bar_one_bgcolor = "#aaaaaa";
|
||||
set comment_bar_one_fgcolor = "#000000";
|
||||
set comment_bar_two_bgcolor = "#9d0404";
|
||||
set comment_bar_two_fgcolor = "#ffffff";
|
||||
|
||||
#NEWLAYER: punquin/deepmelodrama
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Deep MeloDrama";
|
||||
layerinfo redist_uniq = "punquin/deepmelodrama";
|
||||
set body_bgcolor = "#872d89";
|
||||
set main_bgcolor = "#719cff";
|
||||
set main_fgcolor = "#8e48b2";
|
||||
set border_color = "#8e48b2";
|
||||
set title_color = "#3794b3";
|
||||
set subject_color = "#8e48b2";
|
||||
set link_color = "#000050";
|
||||
set vlink_color = "#500050";
|
||||
set alink_color = "#dfd3ff";
|
||||
set comment_bar_one_bgcolor = "#3794b3";
|
||||
set comment_bar_one_fgcolor = "#84b8e7";
|
||||
set comment_bar_two_bgcolor = "#65b2c1";
|
||||
set comment_bar_two_fgcolor = "#f5d3ff";
|
||||
|
||||
#NEWLAYER: punquin/everwhite
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Everwhite";
|
||||
layerinfo redist_uniq = "punquin/everwhite";
|
||||
set body_bgcolor = "#ffffff";
|
||||
set main_bgcolor = "#ffffff";
|
||||
set main_fgcolor = "#000000";
|
||||
set border_color = "#000000";
|
||||
set title_color = "#ffffff";
|
||||
set subject_color = "#ff0000";
|
||||
set link_color = "#e60000";
|
||||
set vlink_color = "#c10602";
|
||||
set alink_color = "#ff0600";
|
||||
set comment_bar_one_bgcolor = "#dddddd";
|
||||
set comment_bar_one_fgcolor = "#000000";
|
||||
set comment_bar_two_bgcolor = "#aaaaaa";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
|
||||
#NEWLAYER: punquin/everblue
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Everblue with Greys";
|
||||
layerinfo redist_uniq = "punquin/everblue";
|
||||
set body_bgcolor = "#0f0c6d";
|
||||
set main_bgcolor = "#ffffff";
|
||||
set main_fgcolor = "#000000";
|
||||
set border_color = "#000000";
|
||||
set title_color = "#000000";
|
||||
set subject_color = "#000000";
|
||||
set link_color = "#2f00f2";
|
||||
set vlink_color = "#060667";
|
||||
set alink_color = "#6691ff";
|
||||
set comment_bar_one_bgcolor = "#000000";
|
||||
set comment_bar_one_fgcolor = "#ffffff";
|
||||
set comment_bar_two_bgcolor = "#aaaaaa";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
|
||||
#NEWLAYER: punquin/brownleather
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Brown Leather Coat";
|
||||
layerinfo redist_uniq = "punquin/brownleather";
|
||||
set body_bgcolor = "#d2b48c";
|
||||
set main_bgcolor = "#ffebcd";
|
||||
set main_fgcolor = "#8b4513";
|
||||
set border_color = "#000000";
|
||||
set title_color = "#d48014";
|
||||
set subject_color = "#d48014";
|
||||
set link_color = "#000050";
|
||||
set vlink_color = "#867a55";
|
||||
set alink_color = "#fffab3";
|
||||
set comment_bar_one_bgcolor = "#d48014";
|
||||
set comment_bar_one_fgcolor = "#ffffff";
|
||||
set comment_bar_two_bgcolor = "#ffe1a1";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
|
||||
#NEWLAYER: punquin/bruise
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Bruise";
|
||||
layerinfo redist_uniq = "punquin/bruise";
|
||||
set body_bgcolor = "#000000";
|
||||
set main_bgcolor = "#bcbcbc";
|
||||
set main_fgcolor = "#000000";
|
||||
set border_color = "#000000";
|
||||
set title_color = "#1114a0";
|
||||
set subject_color = "#1114a0";
|
||||
set link_color = "#0000cc";
|
||||
set vlink_color = "#000088";
|
||||
set alink_color = "#0000ff";
|
||||
set comment_bar_one_bgcolor = "#1114a0";
|
||||
set comment_bar_one_fgcolor = "#ffffff";
|
||||
set comment_bar_two_bgcolor = "#21c2f1";
|
||||
set comment_bar_two_fgcolor = "#0000ff";
|
||||
|
||||
#NEWLAYER: punquin/ranchhand
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Ranch Hand";
|
||||
layerinfo redist_uniq = "punquin/ranchhand";
|
||||
set body_bgcolor = "#2999c2";
|
||||
set main_bgcolor = "#cfe0ff";
|
||||
set main_fgcolor = "#000000";
|
||||
set border_color = "#060667";
|
||||
set title_color = "#54442c";
|
||||
set subject_color = "#9d995d";
|
||||
set link_color = "#000050";
|
||||
set vlink_color = "#500050";
|
||||
set alink_color = "#6a20ff";
|
||||
set comment_bar_one_bgcolor = "#54442c";
|
||||
set comment_bar_one_fgcolor = "#ffffff";
|
||||
set comment_bar_two_bgcolor = "#704400";
|
||||
set comment_bar_two_fgcolor = "#bababa";
|
||||
|
||||
#NEWLAYER: punquin/victim
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Victim";
|
||||
layerinfo redist_uniq = "punquin/victim";
|
||||
set body_bgcolor = "#2cd0ff";
|
||||
set main_bgcolor = "#505050";
|
||||
set main_fgcolor = "#ffffff";
|
||||
set border_color = "#000000";
|
||||
set title_color = "#166bac";
|
||||
set subject_color = "#26b6ff";
|
||||
set link_color = "#000050";
|
||||
set vlink_color = "#500050";
|
||||
set alink_color = "#ff00c0";
|
||||
set comment_bar_one_bgcolor = "#166bac";
|
||||
set comment_bar_one_fgcolor = "#ffffff";
|
||||
set comment_bar_two_bgcolor = "#353535";
|
||||
set comment_bar_two_fgcolor = "#ffffff";
|
||||
|
||||
#NEWLAYER: punquin/forest
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Forest";
|
||||
layerinfo redist_uniq = "punquin/forest";
|
||||
set body_bgcolor = "#778e64";
|
||||
set main_bgcolor = "#9b9ba5";
|
||||
set main_fgcolor = "#000000";
|
||||
set border_color = "#ffffff";
|
||||
set title_color = "#72784c";
|
||||
set subject_color = "#a0ac62";
|
||||
set link_color = "#3811e1";
|
||||
set vlink_color = "#310cbb";
|
||||
set alink_color = "#4e7bef";
|
||||
set comment_bar_one_bgcolor = "#72784c";
|
||||
set comment_bar_one_fgcolor = "#ffffff";
|
||||
set comment_bar_two_bgcolor = "#73777a";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
|
||||
#NEWLAYER: punquin/drone
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Drone";
|
||||
layerinfo redist_uniq = "punquin/drone";
|
||||
set body_bgcolor = "#395f82";
|
||||
set main_bgcolor = "#f9fcfe";
|
||||
set main_fgcolor = "#000000";
|
||||
set border_color = "#000000";
|
||||
set title_color = "#904094";
|
||||
set subject_color = "#ff93ff";
|
||||
set link_color = "#395f82";
|
||||
set vlink_color = "#395f82";
|
||||
set alink_color = "#5266ce";
|
||||
set comment_bar_one_bgcolor = "#904094";
|
||||
set comment_bar_one_fgcolor = "#ffffff";
|
||||
set comment_bar_two_bgcolor = "#eeeeff";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
|
||||
#NEWLAYER: punquin/lowercurtain
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Lower the Curtain";
|
||||
layerinfo redist_uniq = "punquin/lowercurtain";
|
||||
set body_bgcolor = "#000000";
|
||||
set main_bgcolor = "#6b6b6b";
|
||||
set main_fgcolor = "#ffffff";
|
||||
set border_color = "#ffffff";
|
||||
set title_color = "#363636";
|
||||
set subject_color = "#363636";
|
||||
set link_color = "#000050";
|
||||
set vlink_color = "#500050";
|
||||
set alink_color = "#3314ba";
|
||||
set comment_bar_one_bgcolor = "#363636";
|
||||
set comment_bar_one_fgcolor = "#f0f5fb";
|
||||
set comment_bar_two_bgcolor = "#c5c8ca";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
|
||||
#NEWLAYER: punquin/sunny
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Sunny Day";
|
||||
layerinfo redist_uniq = "punquin/sunny";
|
||||
set body_bgcolor = "#55e0f9";
|
||||
set main_bgcolor = "#e38202";
|
||||
set main_fgcolor = "#ffffff";
|
||||
set border_color = "#000000";
|
||||
set title_color = "#e38202";
|
||||
set subject_color = "#efe052";
|
||||
set link_color = "#df0d12";
|
||||
set vlink_color = "#ac1b25";
|
||||
set alink_color = "#fe3b3b";
|
||||
set comment_bar_one_bgcolor = "#e38202";
|
||||
set comment_bar_one_fgcolor = "#ffffff";
|
||||
set comment_bar_two_bgcolor = "#ffba03";
|
||||
set comment_bar_two_fgcolor = "#ffffff";
|
||||
|
||||
#NEWLAYER: punquin/valentine
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Be Mine";
|
||||
layerinfo redist_uniq = "punquin/valentine";
|
||||
set body_bgcolor = "#6f104a";
|
||||
set main_bgcolor = "#f2bce9";
|
||||
set main_fgcolor = "#000000";
|
||||
set border_color = "#ff24ab";
|
||||
set title_color = "#ff37ff";
|
||||
set subject_color = "#ae1774";
|
||||
set link_color = "#ffffff";
|
||||
set vlink_color = "#a51014";
|
||||
set alink_color = "#ed8188";
|
||||
set comment_bar_one_bgcolor = "#ff37ff";
|
||||
set comment_bar_one_fgcolor = "#ffffff";
|
||||
set comment_bar_two_bgcolor = "#df2096";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
|
||||
#NEWLAYER: punquin/stripes
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Stripes";
|
||||
layerinfo redist_uniq = "punquin/stripes";
|
||||
set body_bgcolor = "#ffffff";
|
||||
set main_bgcolor = "#ffffff";
|
||||
set main_fgcolor = "#000000";
|
||||
set border_color = "#ff0000";
|
||||
set title_color = "#e7212a";
|
||||
set subject_color = "#ffffff";
|
||||
set link_color = "#000050";
|
||||
set vlink_color = "#500050";
|
||||
set alink_color = "#ffafc1";
|
||||
set comment_bar_one_bgcolor = "#e7212a";
|
||||
set comment_bar_one_fgcolor = "#ffffff";
|
||||
set comment_bar_two_bgcolor = "#ffcfdc";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
850
livejournal/bin/upgrading/s2layers/sturdygesture/layout.s2
Executable file
@@ -0,0 +1,850 @@
|
||||
# -*-s2-*-
|
||||
|
||||
layerinfo type = "layout";
|
||||
layerinfo name = "A Sturdy Gesture";
|
||||
layerinfo lang = "en";
|
||||
|
||||
layerinfo author = "Martin Atkins";
|
||||
layerinfo author_email = "mart@livejournal.com";
|
||||
|
||||
layerinfo redist_uniq = "sturdygesture/layout";
|
||||
layerinfo previews = "sturdygesture/sturdygesture.jpg";
|
||||
|
||||
propgroup colors {
|
||||
property Color clr_page_back { des = "Page background"; }
|
||||
set clr_page_back = "#ffffff";
|
||||
|
||||
property Color clr_page_text { des = "Box border color"; }
|
||||
set clr_page_text = "#000000";
|
||||
|
||||
property Color clr_box_text { des = "Box content color"; }
|
||||
set clr_boxhead_text = "#ffffff";
|
||||
|
||||
property Color clr_box_back { des = "Box background color"; }
|
||||
set clr_boxhead_back = "#000000";
|
||||
|
||||
property Color clr_boxhead_text { des = "Box heading text color"; }
|
||||
set clr_boxhead_text = "#ffffff";
|
||||
|
||||
property Color clr_boxhead_back { des = "Box heading background color"; }
|
||||
set clr_boxhead_back = "#000000";
|
||||
|
||||
property Color clr_page_link { des = "Link color"; }
|
||||
set clr_page_link = "#0000ff";
|
||||
|
||||
property Color clr_page_vlink { des = "Visited link color"; }
|
||||
set clr_page_vlink = "#0000ff";
|
||||
}
|
||||
|
||||
propgroup fonts {
|
||||
property use font_base;
|
||||
property use font_fallback;
|
||||
}
|
||||
|
||||
propgroup presentation {
|
||||
property string opt_navbar_pos {
|
||||
des = "Navigation Bar Location";
|
||||
values = "left|Left|right|Right";
|
||||
}
|
||||
set opt_navbar_pos = "left";
|
||||
|
||||
property bool opt_friends_colors {
|
||||
des = "Use friend colors on friends page";
|
||||
note = "If this option is on, the titles of friends' entries will use the colors you have selected for each friend.";
|
||||
}
|
||||
set opt_friends_colors = true;
|
||||
|
||||
property bool opt_always_userpic {
|
||||
des = "Always show userpics";
|
||||
note = "With this off, userpics are only shown in the friends view.";
|
||||
}
|
||||
set opt_always_userpic = false;
|
||||
|
||||
|
||||
|
||||
## These have no UI, but S2 generates an empty settings page if they aren't in a group
|
||||
property string text_page_prev {
|
||||
des = "Text used to link to the previous page";
|
||||
noui = 1;
|
||||
}
|
||||
property string text_page_next {
|
||||
des = "Text used to link to the next page";
|
||||
noui = 1;
|
||||
}
|
||||
set text_page_prev = "Previous Page";
|
||||
set text_page_next = "Next Page";
|
||||
|
||||
property string{} text_entry_links {
|
||||
des = "Captions for Entry Action links";
|
||||
noui = 1;
|
||||
}
|
||||
set text_entry_links = {"edit_entry" => "Edit Entry",
|
||||
"edit_tags" => "Edit Tags",
|
||||
"mem_add" => "Add As Memory",
|
||||
"tell_friend" => "Tell a Friend",
|
||||
"nav_prev" => "Previous Entry",
|
||||
"nav_next" => "Next Entry"};
|
||||
|
||||
property string{} text_comment_links {
|
||||
des = "Captions for Comment Action links";
|
||||
noui = 1;
|
||||
}
|
||||
set text_comment_links = {"delete_comment" => "Delete",
|
||||
"screen_comment" => "Screen",
|
||||
"unscreen_comment" => "Unscreen",
|
||||
"freeze_thread" => "Freeze",
|
||||
"unfreeze_thread" => "Unfreeze", };
|
||||
|
||||
property use use_shared_pic;
|
||||
property use linklist_support;
|
||||
property use external_stylesheet;
|
||||
}
|
||||
|
||||
set tags_aware = true;
|
||||
|
||||
function navheading(RecentNav nav, int entries) : string
|
||||
"i18n layers should override this to translate the skiplink box heading." {
|
||||
return ($nav.skip == 0 ? $entries+" most recent" : "skipped back "+$nav.skip);
|
||||
}
|
||||
function navlinktext(RecentNav nav, bool next) : string
|
||||
"i18n layers should override this to translate the skiplinks. If \$next is false, output 'Previous X', else 'Next X'." {
|
||||
return ($next ? "Next "+$nav.forward_count : "Previous "+$nav.backward_count);
|
||||
}
|
||||
|
||||
function print_stylesheet() {
|
||||
"""
|
||||
body {
|
||||
background: $*clr_page_back;
|
||||
color: $*clr_page_text;
|
||||
""";
|
||||
# Ugliness
|
||||
if ($*font_base != "" or $*font_fallback != "none") {
|
||||
"font-family: ";
|
||||
if ($*font_base != "") {
|
||||
"\"$*font_base\"";
|
||||
if ($*font_fallback != "none") {
|
||||
", ";
|
||||
}
|
||||
}
|
||||
if ($*font_fallback != "none") {
|
||||
print $*font_fallback;
|
||||
}
|
||||
";";
|
||||
}
|
||||
"""
|
||||
}
|
||||
a {
|
||||
color: $*clr_page_link;
|
||||
}
|
||||
a:visited {
|
||||
color: $*clr_page_vlink;
|
||||
}
|
||||
|
||||
img {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.box {
|
||||
border: 1px solid $*clr_page_text;
|
||||
margin: 1em;
|
||||
background: $*clr_box_back;
|
||||
color: $*clr_box_text;
|
||||
}
|
||||
|
||||
#navbar {
|
||||
width: 25%;
|
||||
}
|
||||
#body {
|
||||
width: 75%;
|
||||
}
|
||||
|
||||
#navbar .box h1, .box h2, .box h3 {
|
||||
font-size: 1em;
|
||||
background: $*clr_boxhead_back;
|
||||
color: $*clr_boxhead_text;
|
||||
padding: 3px;
|
||||
margin: 0;
|
||||
}
|
||||
#navbar .box h1 {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.box h1 a, .box h2 a, .box h3 a {
|
||||
color: $*clr_boxhead_text;
|
||||
background: $*clr_boxhead_back;
|
||||
}
|
||||
|
||||
#navbar .box div.userpic {
|
||||
margin: 1em;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#navbar p {
|
||||
margin-left: 1em;
|
||||
margin-right: 1em;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
#navbar ul, #skipbar ul {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 0.5em;
|
||||
}
|
||||
#navbar ul li.active, #skipbar ul li.active {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.box .entry {
|
||||
margin: 1em;
|
||||
}
|
||||
|
||||
.box .talklinks {
|
||||
margin: 1em;
|
||||
text-align: right;
|
||||
clear: both;
|
||||
}
|
||||
.box .talklinks .permalink {
|
||||
float: left;
|
||||
}
|
||||
|
||||
.box .minicomment {
|
||||
clear: both;
|
||||
}
|
||||
|
||||
body.day #body h1 {
|
||||
font-size: 1.1em;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
table.box, table.box td, table.box th {
|
||||
border: 1px solid #000000;
|
||||
}
|
||||
|
||||
.metadata {
|
||||
margin-top: 1em;
|
||||
}
|
||||
|
||||
form#postform table {
|
||||
background: $*clr_box_back;
|
||||
color: $*clr_box_text;
|
||||
}
|
||||
""";
|
||||
}
|
||||
|
||||
function Page::lay_page_nav() {
|
||||
|
||||
}
|
||||
function RecentPage::lay_page_nav() {
|
||||
if ($.nav.backward_url == "" and $.nav.forward_url == "") {
|
||||
return;
|
||||
}
|
||||
println "<div class=\"box\">";
|
||||
println "<h2>"+navheading($.nav,size $.entries)+"</h2>\n<ul>";
|
||||
if ($.nav.backward_url != "") {
|
||||
println "<li><a href=\""+$.nav.backward_url+"\">"+
|
||||
navlinktext($.nav,false)+"</a></li>";
|
||||
}
|
||||
if ($.nav.forward_url != "") {
|
||||
println "<li><a href=\""+$.nav.forward_url+"\">"+
|
||||
navlinktext($.nav,true)+"</a></li>";
|
||||
}
|
||||
println "</ul>\n";
|
||||
println "</div>\n";
|
||||
}
|
||||
function DayPage::lay_page_nav() {
|
||||
println "<div class=\"box\"><ul>";
|
||||
println "<li><a href=\"$.prev_url\">"+$.prev_date->date_format("med")+"</a></li>";
|
||||
println "<li><a href=\"$.next_url\">"+$.next_date->date_format("med")+"</a></li>";
|
||||
println "</ul></div>";
|
||||
}
|
||||
function YearPage::lay_page_nav() {
|
||||
println "<div class=\"box\"><ul>";
|
||||
foreach var YearYear y ($.years) {
|
||||
if ($y.displayed) {
|
||||
println "<li class=\"active\">$y.year</li>";
|
||||
} else {
|
||||
println "<li><a href=\"$y.url\">$y.year</a></li>";
|
||||
}
|
||||
}
|
||||
println "</ul></div>";
|
||||
}
|
||||
function MonthPage::lay_page_nav() {
|
||||
println "<div class=\"box\"><ul>";
|
||||
if ($.prev_url != "") {
|
||||
"""<li><a href="$.prev_url">"""+$.prev_date->date_format($*lang_fmt_month_long)+"""</a></li>""";
|
||||
}
|
||||
if ($.next_url != "") {
|
||||
"""<li><a href="$.next_url">"""+$.next_date->date_format($*lang_fmt_month_long)+"""</a></li>""";
|
||||
}
|
||||
"</ul>";
|
||||
|
||||
"<form method='post' action='$.redir.url'><center>";
|
||||
$.redir->print_hiddens();
|
||||
if (size $.months > 1) {
|
||||
"<select name='redir_key'>\n";
|
||||
foreach var MonthEntryInfo mei ($.months) {
|
||||
var string sel;
|
||||
if ($mei.date.year == $.date.year and $mei.date.month == $.date.month) {
|
||||
$sel = " selected='selected'";
|
||||
}
|
||||
"<option value='$mei.redir_key'$sel>" + $mei.date->date_format($*lang_fmt_month_long) + "</option>";
|
||||
}
|
||||
"</select>\n<input type='submit' value='View' />";
|
||||
}
|
||||
"</center></form>\n</div>\n";
|
||||
}
|
||||
|
||||
function EntryPage::lay_page_nav() {
|
||||
println "<div class=\"box\">";
|
||||
if (size $.comments > 0 and not $.comment_pages.all_subitems_displayed) {
|
||||
"<h2>"+lang_page_of_pages($.comment_pages.current, $.comment_pages.total)+"</h2>\n";
|
||||
}
|
||||
print "<ul>\n";
|
||||
if ($.entry.comments.enabled) {
|
||||
"<li>"; $.entry.comments->print_postlink(); "</li>\n";
|
||||
}
|
||||
if ($.comment_pages.url_prev != "") {
|
||||
"""<li><a href="$.comment_pages.url_prev">$*text_page_prev</a></li>\n""";
|
||||
}
|
||||
if ($.comment_pages.url_next != "") {
|
||||
"""<li><a href="$.comment_pages.url_next">$*text_page_next</a></li>\n""";
|
||||
}
|
||||
println "<li> </li>";
|
||||
var Link l = new Link;
|
||||
$l = $.entry->get_link("nav_next");
|
||||
println """<li><a href="$l.url">$*text_entry_links{"nav_next"}</a></li>""";
|
||||
foreach var string ls ($.entry.link_keyseq) {
|
||||
$l = $.entry->get_link($ls);
|
||||
if (defined $l) {
|
||||
println """<li><a href="$l.url">$*text_entry_links{$ls}</a></li>""";
|
||||
}
|
||||
}
|
||||
$l = $.entry->get_link("nav_prev");
|
||||
println """<li><a href="$l.url">$*text_entry_links{"nav_prev"}</a></li>""";
|
||||
println "</ul></div>";
|
||||
}
|
||||
|
||||
function Page::lay_show_firstnav() : bool {
|
||||
return false;
|
||||
}
|
||||
function RecentPage::lay_show_firstnav() : bool {
|
||||
return ((size $.entries) > 5);
|
||||
}
|
||||
function DayPage::lay_show_firstnav() : bool {
|
||||
return ((size $.entries) > 5);
|
||||
}
|
||||
function YearPage::lay_show_firstnav() : bool {
|
||||
return true;
|
||||
}
|
||||
function MonthPage::lay_show_firstnav() : bool {
|
||||
return true;
|
||||
}
|
||||
function EntryPage::lay_show_firstnav() : bool {
|
||||
return ((size $.comments) > 5);
|
||||
}
|
||||
function EntryPage::lay_show_firstnav() : bool {
|
||||
return false;
|
||||
}
|
||||
|
||||
function Page::lay_navbar() {
|
||||
var string userpic;
|
||||
var Image up_img = $.journal.default_pic;
|
||||
if (defined $up_img) {
|
||||
$userpic = """<div class="userpic">
|
||||
<img src="$up_img.url"
|
||||
class="userpic" alt=""
|
||||
height="$up_img.height" width="$up_img.width" />
|
||||
</div>
|
||||
""";
|
||||
}
|
||||
var string website;
|
||||
if ($.journal.website_url != "") {
|
||||
$website = """<li><a href="$.journal.website_url">$.journal.website_name</a></li>\n""";
|
||||
}
|
||||
|
||||
"""
|
||||
<td id="navbar" width="25%">
|
||||
<div class="box">
|
||||
<h1>$.journal.name</h1>
|
||||
<ul>
|
||||
""";
|
||||
foreach var string v ($.views_order) {
|
||||
if ($.view == $v) {
|
||||
println "<li class=\"active\">"+lang_viewname($v)+"</li>";
|
||||
} else {
|
||||
println "<li><a href=\""+$.view_url{$v}+"\">"+lang_viewname($v)+"</a></li>";
|
||||
}
|
||||
}
|
||||
"""
|
||||
$website</ul>
|
||||
$userpic
|
||||
</div>
|
||||
""";
|
||||
|
||||
if ($this->lay_show_firstnav()) {
|
||||
$this->lay_page_nav();
|
||||
}
|
||||
|
||||
if (size $this.linklist > 0 and $*linklist_support) {
|
||||
println "<div class=\"box\">";
|
||||
println "<h2>Links</h2>\n";
|
||||
$this->print_linklist();
|
||||
println "</div>";
|
||||
}
|
||||
|
||||
"</td>";
|
||||
|
||||
}
|
||||
|
||||
function Page::print_linklist() {
|
||||
if (size $.linklist <= 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
var bool section_open = false;
|
||||
|
||||
println "<ul>";
|
||||
foreach var UserLink l ($.linklist) {
|
||||
if ($l.title) {
|
||||
if ($l.is_heading) {
|
||||
if ($section_open) {
|
||||
println "</ul></li>";
|
||||
}
|
||||
println """<li><span style="font-weight: bold;">$l.title</span>\n<ul>""";
|
||||
$section_open = true;
|
||||
} else {
|
||||
println """<li><a href="$l.url">$l.title</a></li>""";
|
||||
}
|
||||
}
|
||||
}
|
||||
if ($section_open) {
|
||||
println "</ul></li>";
|
||||
}
|
||||
println "</ul>";
|
||||
}
|
||||
|
||||
function Page::print() {
|
||||
var string title = $this->title();
|
||||
|
||||
"""<html>\n<head>\n""";
|
||||
|
||||
if ($*external_stylesheet) {
|
||||
println """<link rel="stylesheet" href="$.stylesheet_url" type="text/css" />""";
|
||||
} else {
|
||||
println """<style type="text/css">"""; print_stylesheet(); "</style>";
|
||||
}
|
||||
$this->print_head();
|
||||
|
||||
"<title>"+$this->title()+"</title>";
|
||||
"""
|
||||
</head>
|
||||
<body class="$.view">
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="100%">
|
||||
<tr valign="top">
|
||||
""";
|
||||
|
||||
if ($*opt_navbar_pos == "left") {
|
||||
$this->lay_navbar();
|
||||
}
|
||||
|
||||
"<td rowspan=\"2\" id=\"body\">\n";
|
||||
$this->print_body();
|
||||
"</td>\n";
|
||||
|
||||
if ($*opt_navbar_pos == "right") {
|
||||
$this->lay_navbar();
|
||||
}
|
||||
|
||||
"</tr><tr><td valign=\"bottom\" id=\"skipbar\">";
|
||||
$this->lay_page_nav();
|
||||
"</td>";
|
||||
|
||||
"""
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
""";
|
||||
}
|
||||
|
||||
function print_entry(Page p, Entry e, Color bgcolor, Color fgcolor) {
|
||||
var string datetime;
|
||||
if ($p.view != "day") {
|
||||
$datetime = $e.time->date_format("med_day")+", "+$e.time->time_format();
|
||||
} else {
|
||||
$datetime = $e.time->time_format();
|
||||
}
|
||||
|
||||
if (not (defined $bgcolor) or not $*opt_friends_colors) {
|
||||
$bgcolor = $*clr_boxhead_back;
|
||||
}
|
||||
if (not (defined $fgcolor) or not $*opt_friends_colors) {
|
||||
$fgcolor = $*clr_boxhead_text;
|
||||
}
|
||||
|
||||
"""<div class="box"><h2 style="color: $fgcolor; background: $bgcolor;">$datetime """;
|
||||
|
||||
if ($e.security != "") {
|
||||
print """<img src="$e.security_icon.url" align="right" """+
|
||||
"""width="$e.security_icon.width" height="$e.security_icon.height" """+
|
||||
"""alt="[$e.security]" />""";
|
||||
}
|
||||
|
||||
if ($p.view == "friends" or
|
||||
$e.subject != "" or
|
||||
$e.poster.username != $p.journal.username) {
|
||||
|
||||
print "<br />";
|
||||
if ($p.view == "friends" or $e.poster.username != $p.journal.username) {
|
||||
$p->print_entry_poster($e);
|
||||
print ": ";
|
||||
}
|
||||
print $e.subject;
|
||||
}
|
||||
"</h2>\n<div class=\"entry\">\n";
|
||||
if (defined $e.userpic and (
|
||||
$*opt_always_userpic
|
||||
or ($e.poster.username != $p.journal.username and $e.userpic.url != $p.journal.default_pic.url)
|
||||
or $p.view == "friends"
|
||||
or $p.view == "entry")) {
|
||||
|
||||
"""<img src="$e.userpic.url" """;
|
||||
"""width="$e.userpic.width" height="$e.userpic.height" """;
|
||||
"""alt="" align="right" style="margin: 5px;" />\n""";
|
||||
}
|
||||
|
||||
"$e.text";
|
||||
|
||||
$e->print_metadata();
|
||||
|
||||
"""</div><div class="talklinks">""";
|
||||
"""<div class="permalink"><a href="$e.permalink_url">$*text_permalink</a></div> """;
|
||||
$e.comments->print();
|
||||
"</div>";
|
||||
|
||||
"</div>";
|
||||
|
||||
} # print_entry(Page,Entry,Color,Color)
|
||||
|
||||
function Entry::print_metadata() {
|
||||
var string caption;
|
||||
var string val;
|
||||
var Image i;
|
||||
if (size $.metadata == 0 and size $.tags == 0) { return; }
|
||||
println """<div class="metadata">""";
|
||||
if ($this.tags) {
|
||||
var int tcount = 0;
|
||||
"<div class='ljtags'><strong>Tags:</strong> ";
|
||||
foreach var Tag t ($this.tags) {
|
||||
"""<a rel="tag" href="$t.url">$t.name</a>""";
|
||||
$tcount++;
|
||||
if ($tcount != size $this.tags) { ", "; }
|
||||
}
|
||||
"</div>";
|
||||
}
|
||||
if (size $.metadata != 0) {
|
||||
foreach var string k ($.metadata) {
|
||||
$caption = $k;
|
||||
$val = $.metadata{$k};
|
||||
if ($k == "music") {
|
||||
$caption = $*text_meta_music;
|
||||
}
|
||||
elseif ($k == "mood") {
|
||||
$caption = $*text_meta_mood;
|
||||
if (defined $.mood_icon) {
|
||||
$i = $.mood_icon;
|
||||
$val = """<img src="$i.url" width="$i.width" height="$i.height" align="absmiddle"> $val""";
|
||||
}
|
||||
}
|
||||
println """<div class="metadata-$k"><span style="font-weight: bold;">$caption:</span> $val</div>""";
|
||||
}
|
||||
}
|
||||
println "</div>";
|
||||
}
|
||||
|
||||
function Page::print_entry(Entry e) {
|
||||
print_entry($this, $e, null Color, null Color);
|
||||
}
|
||||
|
||||
function FriendsPage::print_entry(Entry e) {
|
||||
var Friend f = $.friends{$e.journal.username};
|
||||
print_entry($this, $e, $f.bgcolor, $f.fgcolor);
|
||||
}
|
||||
function colored_ljuser(UserLite u, Color fg, Color bg) : string {
|
||||
var Image uiimg = userinfoicon($u);
|
||||
var string dir = $u.journal_type == "C" ? "community" : "users";
|
||||
return """<span class="ljuser" style="white-space:nowrap;"><a href="$*SITEROOT/userinfo.bml?user=$u.username" style="color: $fg; background: $bg;"><img src="$uiimg.url" alt="[i]" width="$uiimg.width" height="$uiimg.height" style="vertical-align:bottom;border:0;" /></a><a href="$*SITEROOT/$dir/$u.username/" style="color: $fg; background: $bg; font-weight: bold;">$u.username</a></span>""";
|
||||
}
|
||||
function FriendsPage::print_entry_poster(Entry e) {
|
||||
var Friend f = $.friends{$e.journal.username};
|
||||
var Color fg; var Color bg;
|
||||
if ($*opt_friends_colors) {
|
||||
$fg = $f.fgcolor;
|
||||
$bg = $f.bgcolor;
|
||||
} else {
|
||||
$fg = $*clr_boxhead_text;
|
||||
$bg = $*clr_boxhead_back;
|
||||
}
|
||||
print colored_ljuser($e.poster, $fg, $bg);
|
||||
if ($e.poster.username != $e.journal.username) {
|
||||
" posting in ";
|
||||
print colored_ljuser($e.journal, $fg, $bg);
|
||||
}
|
||||
}
|
||||
|
||||
function RecentPage::print_body() {
|
||||
foreach var Entry e ($.entries) {
|
||||
$this->print_entry($e);
|
||||
}
|
||||
}
|
||||
|
||||
function CommentInfo::print() {
|
||||
if ($.enabled) {
|
||||
$this->print_postlink();
|
||||
if ($.count > 0 or $.screened) {
|
||||
" | ";
|
||||
$this->print_readlink();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function DayPage::print_body() {
|
||||
println """<h1 style="font-size: 1.5em; text-align: center;">"""+$.date->date_format("long")+"</h1>";
|
||||
|
||||
if (not $.has_entries) {
|
||||
print "<p>$*text_noentries_day</p>";
|
||||
return;
|
||||
}
|
||||
|
||||
foreach var Entry e ($.entries) {
|
||||
$this->print_entry($e);
|
||||
}
|
||||
}
|
||||
|
||||
function EntryPage::print_body() {
|
||||
$this->print_entry($.entry);
|
||||
if ($this.multiform_on) {
|
||||
$this->print_multiform_start();
|
||||
}
|
||||
if ($.entry.comments.enabled) {
|
||||
$this->print_comments($.comments);
|
||||
}
|
||||
if ($this.multiform_on) {
|
||||
"<div class='box'><h2>Mass Action on Selected Comments:</h2>";
|
||||
"<p class='entry'>"; $this->print_multiform_actionline(); "</p>";
|
||||
"</div>";
|
||||
$this->print_multiform_end();
|
||||
}
|
||||
}
|
||||
|
||||
function EntryPage::print_comments(Comment[] cs) {
|
||||
if (size $cs == 0) { return; }
|
||||
print "<div style=\"margin-left: 25px;\">";
|
||||
foreach var Comment c ($cs) {
|
||||
var int indent = ($c.depth - 1) * 25;
|
||||
if ($c.full) {
|
||||
$this->print_comment($c);
|
||||
} else {
|
||||
$this->print_comment_partial($c);
|
||||
}
|
||||
}
|
||||
print "</div>";
|
||||
}
|
||||
|
||||
function EntryPage::print_comment(Comment c) {
|
||||
var string datetime;
|
||||
$datetime = $c.time->date_format("med_day")+", "+$c.time->time_format();
|
||||
|
||||
"""<a name='$c.anchor'></a><div id="$c.dom_id" class="box"><h3 style="color: $*clr_boxhead_text; background: $*clr_boxhead_back;">""";
|
||||
|
||||
if ($c.metadata{"poster_ip"}) { print """<div style="float: right; vertical-align: top; font-size: 0.75em;">(""" +
|
||||
$c.metadata{"poster_ip"} +
|
||||
""")</div>"""; }
|
||||
|
||||
print $datetime;
|
||||
|
||||
if (defined $c.subject_icon) {
|
||||
print """<img src="$c.subject_icon.url" align="right" """+
|
||||
"""width="$c.subject_icon.width" height="$c.subject_icon.height" """+
|
||||
"""alt="" />""";
|
||||
}
|
||||
|
||||
var string poster = defined $c.poster ? $c.poster->as_string() : "<i>(Anonymous)</i>";
|
||||
print "<br />"+$poster;
|
||||
|
||||
if ($c.subject != "") {
|
||||
print ": "+$c.subject;
|
||||
}
|
||||
|
||||
"</h3>\n<div class=\"entry\">\n";
|
||||
if (defined $c.userpic and $*comment_userpic_style != "off") {
|
||||
"""<img src="$c.userpic.url" """;
|
||||
"""width="$c.userpic.width" height="$c.userpic.height" """;
|
||||
"""alt="" align="right" style="margin: 5px;" />\n""";
|
||||
}
|
||||
|
||||
"$c.text</div>";
|
||||
"""<div class="talklinks">""";
|
||||
"""<div class="permalink"><a href="$c.permalink_url">$*text_permalink</a></div>""";
|
||||
|
||||
if ($c.parent_url != "") { """<a href="$c.parent_url">$*text_comment_parent</a> - """; }
|
||||
if ($c.thread_url != "") { """<a href="$c.thread_url">$*text_comment_thread</a> - """; }
|
||||
var Link l = new Link;
|
||||
foreach var string ls ($c.link_keyseq) {
|
||||
$l = $c->get_link($ls);
|
||||
if (defined $l) {
|
||||
println """<a href="$l.url">$*text_comment_links{$ls}</a> - """;
|
||||
}
|
||||
}
|
||||
if (not $c.frozen) {
|
||||
"""<a href="$c.reply_url">$*text_comment_reply</a>""";
|
||||
} else {
|
||||
"""$*text_comment_frozen""";
|
||||
}
|
||||
# FIXME: better location?
|
||||
if ($.multiform_on) {
|
||||
"""<br /><label for="ljcomsel_$c.talkid">$*text_multiform_check</label> """; $c->print_multiform_check();
|
||||
}
|
||||
"</div>";
|
||||
|
||||
if ((size $c.replies) > 0 and $c.replies[0].full == false) {
|
||||
"""<div style="margin-top: 5px; margin-bottom: 5px; clear: both;">\n""";
|
||||
$this->print_comments($c.replies);
|
||||
"</div>\n";
|
||||
}
|
||||
|
||||
"</div>";
|
||||
|
||||
if ((size $c.replies) > 0 and $c.replies[0].full == true) {
|
||||
$this->print_comments($c.replies);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function EntryPage::print_comment_partial(Comment c) {
|
||||
var string poster = defined $c.poster ? $c.poster->as_string() : "<i>(Anonymous)</i>";
|
||||
var string subj = $c.subject != "" ? $c.subject : $*text_nosubject;
|
||||
print """<div class="minicomment"><a href="$c.permalink_url">$subj</a> - $poster</div>""";
|
||||
$this->print_comments($c.replies);
|
||||
}
|
||||
|
||||
|
||||
function ReplyPage::print_body() {
|
||||
|
||||
var EntryLite c = $.replyto;
|
||||
var string datetime;
|
||||
$datetime = $c.time->date_format("med_day")+", "+$c.time->time_format();
|
||||
|
||||
"""<div class="box"><h2 style="color: $*clr_boxhead_text; background: $*clr_boxhead_back;">$datetime """;
|
||||
|
||||
var string poster = defined $c.poster ? $c.poster->as_string() : "<i>(Anonymous)</i>";
|
||||
print "<br />"+$poster;
|
||||
|
||||
if ($c.subject != "") {
|
||||
print ": "+$c.subject;
|
||||
}
|
||||
|
||||
"</h2>\n<div class=\"entry\">\n";
|
||||
if (defined $c.userpic and $*comment_userpic_style != "off") {
|
||||
"""<img src="$c.userpic.url" """;
|
||||
"""width="$c.userpic.width" height="$c.userpic.height" """;
|
||||
"""alt="" align="right" style="margin: 5px;" />\n""";
|
||||
}
|
||||
|
||||
"$c.text</div>";
|
||||
|
||||
if (defined $c.userpic and $*comment_userpic_style != "off") {
|
||||
"""<br clear="all" />""";
|
||||
}
|
||||
|
||||
"</div>";
|
||||
|
||||
"""<div class="box" style="margin-left: 25px;">\n""";
|
||||
$.form->print();
|
||||
"</div>\n";
|
||||
|
||||
}
|
||||
|
||||
function YearPage::print_body {
|
||||
foreach var YearMonth m ($.months) {
|
||||
$this->print_month($m);
|
||||
}
|
||||
}
|
||||
|
||||
function YearPage::print_month(YearMonth m) {
|
||||
if (not $m.has_entries) { return; }
|
||||
"""<table class="box" style="border-collapse: collapse; border: 1px solid; width: 80%; margin-left: 10%; margin-right: 10%;" border="1">\n
|
||||
<tr><th colspan="7" style="background: $*clr_boxhead_back; color: $*clr_boxhead_text; text-align: center;">""";
|
||||
print $m->month_format();
|
||||
"""</th></tr>\n""";
|
||||
foreach var int d (weekdays()) {
|
||||
"<th style=\"width: 14%;\">"+$*lang_dayname_short[$d]+"</th>\n";
|
||||
}
|
||||
"</tr>\n";
|
||||
foreach var YearWeek w ($m.weeks) {
|
||||
$w->print();
|
||||
}
|
||||
"""<tr><td colspan="7" style="text-align: center;">
|
||||
<a href="$m.url">$*text_view_month</a></td></tr>\n""";
|
||||
"</table>";
|
||||
}
|
||||
|
||||
function YearWeek::print() {
|
||||
"""<tr valign="top" style="height: 2.75em;">\n""";
|
||||
if ($.pre_empty > 0) {
|
||||
"""<td class="emptyday" colspan="$.pre_empty"> </td>\n""";
|
||||
}
|
||||
foreach var YearDay d ($.days) {
|
||||
"""<td>\n""";
|
||||
"""<div style="text-align: right;">$d.day</div>\n""";
|
||||
if ($d.num_entries > 0) {
|
||||
"""<div style="text-align: center;"><a href="$d.url">$d.num_entries</a></div>\n""";
|
||||
}
|
||||
"""</td>\n""";
|
||||
}
|
||||
if ($.post_empty > 0) {
|
||||
"""<td colspan="$.post_empty"> </td>\n""";
|
||||
}
|
||||
"</tr>";
|
||||
}
|
||||
|
||||
function MonthPage::print_body {
|
||||
"""<div class="box"><h2>"""+$.date->date_format($*lang_fmt_month_long)+"</h2>\n";
|
||||
"<dl style=\"margin: 1em;\">";
|
||||
foreach var MonthDay d ($.days) {
|
||||
if ($d.has_entries) {
|
||||
"<dt><a href=\"$d.url\"><b>";
|
||||
print lang_ordinal($d.day);
|
||||
"</b></a></dt>\n<dd>";
|
||||
$d->print_subjectlist();
|
||||
"</dd>\n";
|
||||
}
|
||||
}
|
||||
"</dl>\n</div>\n";
|
||||
}
|
||||
|
||||
|
||||
### Handler for the theme previews
|
||||
|
||||
function print_theme_preview() {
|
||||
"""
|
||||
<div style="padding: 1em; background: $*clr_page_back; color: $*clr_page_text;">
|
||||
<div style="border: 1px solid $*clr_page_text; margin: 1em; background: $*clr_box_back; color: $*clr_box_text;">
|
||||
<h2 style="color: $*clr_boxhead_text; background: $*clr_boxhead_back; font-size: 1em; padding: 4px; margin: 0;">Cir zuta besho cavu mabu</h2>
|
||||
<div style="margin: 1em;">
|
||||
Cir zuta besho cavu mabu. Jad dop fugu hige wiju. Jam nek sapu shek noshea, moz lolle jil hattou daz.
|
||||
Heck mippe giffou tipe pello, govo goof wachou fenu betui, mumu niffo puffu hivoo ziv! Sap gap jozo vem
|
||||
sushu jiwo peru diche gese zar. Zuk kah rec sok vapui, mumu. Puw wuti mufe bak jivo, zef kazou gipwew cus.
|
||||
Cev lepp gik fego rer. Tucku mickou jeck helou soopp! Vowa vov fawea pip wok. Heg fum heafsum pele.
|
||||
Piz kuzu louw rome puir. Pashi jog huku pobi ckush. Zuj bit wido guih biha. Som veh nelo ruh ruju.
|
||||
Coosh jecko nuh tutt tab. Zutt ckek vano fic der, hivu?
|
||||
</div>
|
||||
<div style="margin: 1em; text-align: right; clear: both;">
|
||||
<div style="float: left;"><span style="color: #0000ff; text-decoration: underline; cursor: hand;">$*text_permalink</span></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
""";
|
||||
|
||||
|
||||
}
|
||||
BIN
livejournal/bin/upgrading/s2layers/sturdygesture/sturdygesture.jpg
Executable file
|
After Width: | Height: | Size: 19 KiB |
75
livejournal/bin/upgrading/s2layers/sturdygesture/themes.s2
Executable file
@@ -0,0 +1,75 @@
|
||||
#NEWLAYER: sturdygesture/beansprout
|
||||
|
||||
layerinfo "type" = "theme";
|
||||
layerinfo "name" = "Beansprout";
|
||||
layerinfo "redist_uniq" = "sturdygesture/beansprout";
|
||||
|
||||
set clr_page_link = "#006760";
|
||||
set clr_boxhead_text = "#ffffff";
|
||||
set clr_box_text = "#000000";
|
||||
set clr_page_text = "#ffffff";
|
||||
set clr_box_back = "#ffffff";
|
||||
set clr_boxhead_back = "#006760";
|
||||
set clr_page_back = "#000000";
|
||||
set clr_page_vlink = "#002C29";
|
||||
|
||||
#NEWLAYER: sturdygesture/boxless
|
||||
|
||||
layerinfo "type" = "theme";
|
||||
layerinfo "name" = "Boxless";
|
||||
layerinfo "redist_uniq" = "sturdygesture/boxless";
|
||||
|
||||
set clr_page_link = "#0000ff";
|
||||
set clr_boxhead_text = "#ffffff";
|
||||
set clr_box_text = "#000000";
|
||||
set clr_page_text = "#ffffff";
|
||||
set clr_box_back = "#ffffff";
|
||||
set clr_boxhead_back = "#000000";
|
||||
set clr_page_back = "#ffffff";
|
||||
set clr_page_vlink = "#00007f";
|
||||
|
||||
#NEWLAYER: sturdygesture/martialblue
|
||||
|
||||
layerinfo "type" = "theme";
|
||||
layerinfo "name" = "Martial Blue";
|
||||
layerinfo "redist_uniq" = "sturdygesture/martialblue";
|
||||
|
||||
set clr_page_link = "#0068CF";
|
||||
set clr_boxhead_text = "#000000";
|
||||
set clr_box_text = "#000000";
|
||||
set clr_page_text = "#000000";
|
||||
set clr_box_back = "#FFFFFF";
|
||||
set clr_boxhead_back = "#6FB7FF";
|
||||
set clr_page_back = "#BFD8FF";
|
||||
set clr_page_vlink = "#003070";
|
||||
|
||||
#NEWLAYER: sturdygesture/redmond
|
||||
|
||||
layerinfo "type" = "theme";
|
||||
layerinfo "name" = "Redmond";
|
||||
layerinfo "redist_uniq" = "sturdygesture/redmond";
|
||||
|
||||
set clr_page_link = "#0000ff";
|
||||
set clr_boxhead_text = "#ffffff";
|
||||
set clr_box_text = "#000000";
|
||||
set clr_page_text = "#000000";
|
||||
set clr_box_back = "#ffffff";
|
||||
set clr_boxhead_back = "#00007F";
|
||||
set clr_page_back = "#007F7F";
|
||||
set clr_page_vlink = "#0000ff";
|
||||
|
||||
#NEWLAYER: sturdygesture/shadesofgray
|
||||
|
||||
layerinfo "type" = "theme";
|
||||
layerinfo "name" = "Shades of Gray"; # or, indeed, "grey" :)
|
||||
layerinfo "redist_uniq" = "sturdygesture/shadesofgray";
|
||||
|
||||
set clr_page_link = "#444444";
|
||||
set clr_boxhead_text = "#ffffff";
|
||||
set clr_box_text = "#000000";
|
||||
set clr_page_text = "#7f7f7f";
|
||||
set clr_box_back = "#cccccc";
|
||||
set clr_boxhead_back = "#7f7f7f";
|
||||
set clr_page_back = "#888888";
|
||||
set clr_page_vlink = "#222222";
|
||||
|
||||
14
livejournal/bin/upgrading/s2layers/tabularindent/en.s2
Executable file
@@ -0,0 +1,14 @@
|
||||
# -*-s2-*-
|
||||
|
||||
layerinfo type = "i18n";
|
||||
layerinfo name = "English";
|
||||
layerinfo redist_uniq = "tabularindent/en";
|
||||
|
||||
set text_meta_music = "Music";
|
||||
set text_meta_mood = "Mood";
|
||||
|
||||
set text_post_comment = "Add Your Own";
|
||||
set text_read_comments = "Read # Comments";
|
||||
|
||||
set text_post_comment_friends = "Add Your Own";
|
||||
set text_read_comments_friends = "Read # Comments";
|
||||
741
livejournal/bin/upgrading/s2layers/tabularindent/layout.s2
Executable file
@@ -0,0 +1,741 @@
|
||||
# -*-s2-*-
|
||||
|
||||
layerinfo type = "layout";
|
||||
layerinfo name = "Tabular Indent";
|
||||
layerinfo redist_uniq = "tabularindent/layout";
|
||||
layerinfo previews = "tabularindent/tabularindent.jpg";
|
||||
|
||||
propgroup colors {
|
||||
property Color body_bgcolor {
|
||||
des = "Body background color";
|
||||
s1color = "page_back";
|
||||
}
|
||||
property Color main_bgcolor {
|
||||
des = "Background of main text areas";
|
||||
s1color = "page_back";
|
||||
}
|
||||
property Color main_fgcolor {
|
||||
des = "Main text color";
|
||||
s1color = "page_text";
|
||||
}
|
||||
property Color border_color {
|
||||
des = "Color of borders";
|
||||
# No s1color equivalent
|
||||
}
|
||||
property Color headerbar_bgcolor {
|
||||
des = "Background color of header bar(s)";
|
||||
s1color = "stronger_back";
|
||||
}
|
||||
property Color headerbar_fgcolor {
|
||||
des = "Header bar text color";
|
||||
s1color = "stronger_text";
|
||||
}
|
||||
property Color captionbar_mainbox_bgcolor {
|
||||
des = "Main background color of caption bar";
|
||||
s1color = "page_back";
|
||||
}
|
||||
property Color captionbar_mainbox_fgcolor {
|
||||
des = "Text color of caption bar";
|
||||
s1color = "page_text";
|
||||
}
|
||||
property Color captionbar_userpicbox_color {
|
||||
des = "User picture background color of caption bar";
|
||||
s1color = "strong_back";
|
||||
}
|
||||
property Color accent_bgcolor {
|
||||
des = "Background color of accented areas";
|
||||
s1color = "weak_back";
|
||||
}
|
||||
property Color accent_fgcolor {
|
||||
des = "Accented area text color";
|
||||
s1color = "weak_text";
|
||||
}
|
||||
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 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";
|
||||
}
|
||||
}
|
||||
set body_bgcolor = "#ffffff";
|
||||
set main_bgcolor = "#ffffff";
|
||||
set main_fgcolor = "#000000";
|
||||
set border_color = "#000000";
|
||||
set headerbar_bgcolor = "#6666cc";
|
||||
set headerbar_fgcolor = "#ffffff";
|
||||
set captionbar_mainbox_bgcolor = "#ffffff";
|
||||
set captionbar_mainbox_fgcolor = "#000000";
|
||||
set captionbar_userpicbox_color = "#c0c0ff";
|
||||
set accent_bgcolor = "#eeeeff";
|
||||
set accent_fgcolor = "#000000";
|
||||
set link_color = "#000050";
|
||||
set vlink_color = "#500050";
|
||||
set alink_color = "#ff00c0";
|
||||
set comment_bar_one_bgcolor = "#c0c0ff";
|
||||
set comment_bar_one_fgcolor = "#000000";
|
||||
set comment_bar_two_bgcolor = "#eeeeff";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
set comment_bar_screened_bgcolor = "#dddddd";
|
||||
set comment_bar_screened_fgcolor = "#000000";
|
||||
|
||||
propgroup presentation {
|
||||
property bool show_entry_userpic {
|
||||
des = "Show the userpic on the journal entries?";
|
||||
}
|
||||
property use page_recent_items;
|
||||
property use page_friends_items;
|
||||
property use use_shared_pic;
|
||||
property use view_entry_disabled;
|
||||
property string page_background_image {
|
||||
des = "URL to an image to be used for the page background";
|
||||
}
|
||||
property use external_stylesheet;
|
||||
}
|
||||
set show_entry_userpic = true;
|
||||
set page_recent_items = 20;
|
||||
set page_friends_items = 20;
|
||||
set view_entry_disabled = false;
|
||||
set page_background_image = "";
|
||||
|
||||
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 tags_aware = true;
|
||||
|
||||
function Page::lay_captionbar_navigation () { }
|
||||
|
||||
function captionbar (Page p) {
|
||||
var string title = $p->title();
|
||||
|
||||
var string userpic;
|
||||
var Image up_img = $p.journal.default_pic;
|
||||
if (defined $up_img) {
|
||||
$userpic = """<img src="$up_img.url" height="$up_img.height" width="$up_img.width" alt="[icon]" />""";
|
||||
}
|
||||
|
||||
var string website_name = $p.journal.website_name ? $p.journal.website_name : $*text_website_default_name;
|
||||
var string website;
|
||||
if ($p.journal.website_url != "") {
|
||||
$website = """<tr><td>View:</td><td><a href="$p.journal.website_url">Website ($website_name)</a>.</td></tr>""";
|
||||
}
|
||||
|
||||
var string links;
|
||||
foreach var string v ($p.views_order) {
|
||||
$links = "$links<tr><td>View:</td><td>" + ($p.view == $v ?
|
||||
lang_viewname($v) :
|
||||
"<a href='$p.view_url{$v}'>"+lang_viewname($v)+"</a>") + ".</td></tr>\n";
|
||||
}
|
||||
|
||||
var string captionbar_userpicbox_style = "background-color: $*captionbar_userpicbox_color";
|
||||
"""
|
||||
<table height='100' class='captionbar' cellpadding='5' cellspacing='1'><tr>
|
||||
<td class="captionbar-userpicbox" align='center' valign='center' width='100' style='$captionbar_userpicbox_style'>$userpic</td>
|
||||
<td><b>$title</b><br />
|
||||
<table border='0'>
|
||||
$links
|
||||
$website
|
||||
<tr>
|
||||
<td colspan='2'>""";
|
||||
|
||||
$p->lay_captionbar_navigation();
|
||||
"
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr></table>";
|
||||
}
|
||||
|
||||
function print_stylesheet ()
|
||||
{
|
||||
var string backgroundurl = clean_url($*page_background_image) != "" ? "background-image: url($*page_background_image);" : "";
|
||||
"""/* Tabular Indent Stylesheet */
|
||||
body {
|
||||
$backgroundurl
|
||||
background-color: $*body_bgcolor;
|
||||
}
|
||||
.captionbar {
|
||||
width: 100%;
|
||||
border: 1px solid $*border_color;
|
||||
}
|
||||
.captionbar, .captionbar td {
|
||||
background-color: $*captionbar_mainbox_bgcolor;
|
||||
color: $*captionbar_mainbox_fgcolor;
|
||||
}
|
||||
.captionbar-userpicbox {
|
||||
border-right: 1px solid $*border_color;
|
||||
background-color: $*captionbar_userpicbox_color;
|
||||
color: $*captionbar_mainbox_fgcolor;
|
||||
}
|
||||
body,td,p {
|
||||
font-family: verdana, arial, helvetica, sans-serif;
|
||||
font-size: 8pt;
|
||||
}
|
||||
a {
|
||||
color: $*link_color;
|
||||
font-family: verdana, arial, helvetica, sans-serif;
|
||||
font-size: 8pt;
|
||||
text-decoration: none;
|
||||
}
|
||||
a:visited {
|
||||
color: $*vlink_color;
|
||||
font-family: verdana, arial, helvetica, sans-serif;
|
||||
font-size: 8pt;
|
||||
text-decoration: none;
|
||||
}
|
||||
a:active {
|
||||
color: $*alink_color;
|
||||
font-family: verdana, arial, helvetica, sans-serif;
|
||||
font-size: 8pt;
|
||||
text-decoration: none;
|
||||
}
|
||||
a:hover {
|
||||
color: $*alink_color;
|
||||
font-family: verdana, arial, helvetica, sans-serif;
|
||||
font-size: 8pt;
|
||||
text-decoration: underline;
|
||||
}
|
||||
h3.page-header {
|
||||
font-size: 8pt;
|
||||
font-family: verdana, arial, helvetica, sans-serif;
|
||||
font-weight: normal;
|
||||
background-color: $*headerbar_bgcolor;
|
||||
color: $*headerbar_fgcolor;
|
||||
padding: 6px;
|
||||
border: 1px solid $*border_color;
|
||||
}
|
||||
""";
|
||||
}
|
||||
|
||||
function Page::print ()
|
||||
{
|
||||
var string title = $this->title();
|
||||
println "<html>\n<head>\n";
|
||||
|
||||
if ($*external_stylesheet) {
|
||||
println """<link rel="stylesheet" href="$.stylesheet_url" type="text/css" />""";
|
||||
} else {
|
||||
println """<style type="text/css">"""; print_stylesheet(); "</style>";
|
||||
}
|
||||
$this->print_head();
|
||||
|
||||
"""<title>$title</title>
|
||||
</head>
|
||||
<body>
|
||||
""";
|
||||
"<p>"; captionbar($this); "</p>";
|
||||
|
||||
"<p>"; $this->print_body(); "</p>";
|
||||
|
||||
"<p>"; captionbar($this); "</p>";
|
||||
|
||||
"""
|
||||
</body>
|
||||
</html>
|
||||
""";
|
||||
}
|
||||
|
||||
function print_box (string{} colors, string metapic, string{} meta, string content, string footer, string domid) {
|
||||
var string bgcolor = $colors{"bgcolor"};
|
||||
var string fgcolor = $colors{"fgcolor"};
|
||||
if ($domid != "") { $domid = "id='$domid'"; }
|
||||
|
||||
var string style = "background-color: $bgcolor; color: $fgcolor";
|
||||
"<div align='right'><table $domid border='0' width='95%' cellpadding='5' cellspacing='1' style='$style'>";
|
||||
"<tr><td><table border='0' width='100%'><tr>";
|
||||
|
||||
if ($metapic) {
|
||||
"<td width='100' valign='top' align='center'>$metapic</td>";
|
||||
}
|
||||
|
||||
"<td valign='top'><table border='0'>";
|
||||
|
||||
foreach var string k ($meta) {
|
||||
var string key = $k;
|
||||
var string val = $meta{$k};
|
||||
"<tr><td align='right'>$key</td><td>$val</td></tr>";
|
||||
}
|
||||
|
||||
"</table></td></tr></table></td></tr>";
|
||||
"<tr><td style='background-color: $*main_bgcolor; color: $*main_fgcolor'>";
|
||||
|
||||
print $content;
|
||||
|
||||
"</td></tr>";
|
||||
|
||||
if ($footer) {
|
||||
"<tr><td style='white-space: nowrap'>$footer</td></tr>";
|
||||
}
|
||||
|
||||
"</table></div><br />";
|
||||
}
|
||||
|
||||
function print_header (string header)
|
||||
{
|
||||
print "<h3 class='page-header'>$header</h3>";
|
||||
}
|
||||
|
||||
function print_genericbox_open () {
|
||||
"<div align='right'><table border='0' width='95%' cellpadding='5' cellspacing='1' bgcolor='$*accent_bgcolor'>";
|
||||
"<tr><td style='background-color: $*main_bgcolor; color: $*main_fgcolor'>";
|
||||
}
|
||||
|
||||
function print_genericbox_close ()
|
||||
{
|
||||
"</font></td></tr></table></div><br />";
|
||||
}
|
||||
|
||||
function print_entry (Page p, Entry e, Color bgcolor, Color fgcolor, bool hide_text)
|
||||
{
|
||||
var string{} colors; var string{} meta; var string content = ""; var string footer = "";
|
||||
$colors{"bgcolor"} = "$*accent_bgcolor";
|
||||
$colors{"fgcolor"} = "$*accent_fgcolor";
|
||||
if ($p.view == "recent") {
|
||||
if ($e.new_day) {
|
||||
print_header($e.time->date_format("%%month%% %%dayord%%, %%yyyy%%"));
|
||||
}
|
||||
} else {
|
||||
print_header($e.time->date_format("%%month%% %%dayord%%, %%yyyy%%"));
|
||||
}
|
||||
# Userpic
|
||||
var string metapic = "";
|
||||
if ($p.view == "friends" or
|
||||
$*show_entry_userpic == true or
|
||||
$e.journal.username != $e.poster.username)
|
||||
{
|
||||
var string userpic = defined $e.userpic ? "<img src='$e.userpic.url' style='border: 0' />" : "";
|
||||
var string url = $e.journal->base_url() + "/";
|
||||
$metapic = "<div style='background-color: $bgcolor'>";
|
||||
$metapic = "$metapic <a href='$url'>$userpic</a>";
|
||||
if ($e.journal.username != $e.poster.username) {
|
||||
var string purl = $e.poster->base_url() + "/";
|
||||
$metapic = "$metapic<br /><font color='$fgcolor'>[<a href='$purl'>$e.poster.username</a>]</font>";
|
||||
}
|
||||
if ($p.view == "friends") { $metapic = "$metapic<br /><font color='$fgcolor'><a href='$url'>$e.journal.username</a></font>"; }
|
||||
$metapic = "$metapic</div>";
|
||||
}
|
||||
# Security Icon
|
||||
if ($e.security) {
|
||||
$meta{"Security:"} = "$e.security_icon $e.security";
|
||||
}
|
||||
# Subject
|
||||
if ($e.subject) {
|
||||
$meta{"Subject:"} = $e.subject;
|
||||
}
|
||||
# Time posted
|
||||
var string time = $e.time->time_format();
|
||||
$meta{"Time:"} = $time;
|
||||
# Current
|
||||
if (size $e.metadata) {
|
||||
foreach var string k ($e.metadata) {
|
||||
var string key = $k; var string val = $e.metadata{$k};
|
||||
if ($k == "mood") {
|
||||
$key = $*text_meta_mood;
|
||||
} elseif ($k == "music") {
|
||||
$key = $*text_meta_music;
|
||||
}
|
||||
if ($k == "mood" and defined $e.mood_icon) {
|
||||
var Image i = $e.mood_icon;
|
||||
$val = "<img src='$i.url' width='$i.width' height='$i.height' align='absmiddle' alt='[mood icon]' /> $val";
|
||||
}
|
||||
$meta{"$key:"} = $val;
|
||||
}
|
||||
}
|
||||
# Tags
|
||||
if ($e.tags) {
|
||||
var int tcount = 0;
|
||||
var string tag;
|
||||
foreach var Tag t ($e.tags) {
|
||||
$tag = $tag + """<a rel="tag" href="$t.url">$t.name</a>""";
|
||||
$tcount++;
|
||||
if ($tcount != size $e.tags) { $tag = $tag + ", "; }
|
||||
}
|
||||
$meta{"Tags:"} = $tag;
|
||||
}
|
||||
|
||||
|
||||
if (not $hide_text) { $content = $e.text; }
|
||||
|
||||
if ($e.comments.enabled) {
|
||||
$footer = "comments:";
|
||||
if (($e.comments.count > 0 or $e.comments.screened) and ($p.view != "entry")) {
|
||||
$footer = "$footer <a href=\"$e.comments.read_url\">"
|
||||
+ get_plural_phrase($e.comments.count, $p.view == "friends" ?
|
||||
"text_read_comments_friends" : "text_read_comments")
|
||||
+ "</a> or";
|
||||
}
|
||||
$footer = "$footer <a href=\"$e.comments.post_url\">"
|
||||
+ ($p.view == "friends" ? $*text_post_comment_friends : $*text_post_comment)
|
||||
+ "</a>";
|
||||
}
|
||||
|
||||
# Misc Links
|
||||
var Link link;
|
||||
if ($p.view == "entry")
|
||||
{
|
||||
$link = $e->get_link("nav_prev"); $footer = "$footer $link";
|
||||
}
|
||||
$link = $e->get_link("edit_entry"); $footer = "$footer $link";
|
||||
$link = $e->get_link("edit_tags"); $footer = "$footer $link";
|
||||
$link = $e->get_link("tell_friend"); $footer = "$footer $link";
|
||||
$link = $e->get_link("mem_add"); $footer = "$footer $link";
|
||||
if ($p.view == "entry")
|
||||
{
|
||||
$link = $e->get_link("nav_next"); $footer = "$footer $link";
|
||||
}
|
||||
|
||||
# Print
|
||||
print_box($colors, $metapic, $meta, $content, $footer, "");
|
||||
}
|
||||
|
||||
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 RecentPage::lay_captionbar_navigation()
|
||||
{
|
||||
var int total = size $.entries;
|
||||
var string nav = "";
|
||||
if ($.nav.backward_url != "") {
|
||||
$nav = """<a href="$.nav.backward_url">back $total entries</a>""";
|
||||
}
|
||||
if ($.nav.forward_url != "" and $.nav.backward_url != "") {
|
||||
$nav = "$nav or ";
|
||||
}
|
||||
if ($.nav.forward_url != "") {
|
||||
$nav = """$nav<a href="$.nav.forward_url">forward $total entries</a>""";
|
||||
}
|
||||
print "You're looking at the latest ";
|
||||
print size $.entries;
|
||||
print ($.nav.skip > 0) ? " entries, after skipping $.nav.skip newer ones." :" entries.";
|
||||
if ($nav != "") { print "<br />Missed some entries? Then simply jump $nav"; }
|
||||
}
|
||||
|
||||
function RecentPage::print_body {
|
||||
foreach var Entry e ($.entries) {
|
||||
$this->print_entry($e);
|
||||
}
|
||||
}
|
||||
|
||||
function FriendsPage::print_body {
|
||||
foreach var Entry e ($.entries) {
|
||||
$this->print_entry($e);
|
||||
}
|
||||
}
|
||||
|
||||
function CommentInfo::print()
|
||||
{
|
||||
if (not $.enabled) { return; }
|
||||
"<tr><td bgcolor='$*accent_bgcolor'><font color='$*accent_fgcolor'>";
|
||||
"<nobr>comments: ";
|
||||
if ($.count > 0 or $.screened) {
|
||||
$this->print_readlink(); " or ";
|
||||
}
|
||||
$this->print_postlink();
|
||||
"</nobr></font></td></tr>";
|
||||
}
|
||||
|
||||
function YearPage::print_body {
|
||||
print_header(string($.year));
|
||||
print_genericbox_open();
|
||||
foreach var YearMonth m ($.months) {
|
||||
$this->print_month($m);
|
||||
}
|
||||
print_genericbox_close();
|
||||
}
|
||||
|
||||
function YearPage::lay_captionbar_navigation()
|
||||
{
|
||||
$this->print_year_links();
|
||||
}
|
||||
|
||||
function YearPage::print_year_links ()
|
||||
{
|
||||
foreach var YearYear y ($.years) {
|
||||
if ($y.displayed) {
|
||||
"$y.year ";
|
||||
} else {
|
||||
"<a href=\"$y.url\">$y.year</a> ";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function YearPage::print_month(YearMonth m)
|
||||
{
|
||||
if (not $m.has_entries) { return; }
|
||||
"<center><table border='1' cellpadding='4' width='80%'>";
|
||||
# Month header
|
||||
"<tr align='center'><td colspan='7' bgcolor='$*headerbar_bgcolor'>";
|
||||
"<font color='$*headerbar_fgcolor'><b>"; print $m->month_format(); "</b></font></td></tr>";
|
||||
# Weekdays
|
||||
"<tr align='center' bgcolor='$*accent_bgcolor'>";
|
||||
foreach var int d (weekdays()) {
|
||||
"<td><font color='$*accent_fgcolor'>"+$*lang_dayname_short[$d]+"</font></td>\n";
|
||||
}
|
||||
"</tr>";
|
||||
foreach var YearWeek w ($m.weeks) {
|
||||
$w->print();
|
||||
}
|
||||
"<tr align='center'><td colspan='7'><a href='$m.url'>View Subjects</a>";
|
||||
"</td></tr></table></center>";
|
||||
}
|
||||
|
||||
function YearWeek::print () {
|
||||
"<tr>";
|
||||
if ($.pre_empty) { "<td colspan='$.pre_empty' bgcolor='$*accent_bgcolor'> </td>"; }
|
||||
foreach var YearDay d ($.days) {
|
||||
"<td valign='top'><b>$d.day</b>";
|
||||
"<div align='center'>";
|
||||
if ($d.num_entries) {
|
||||
"""<a href="$d.url">$d.num_entries</a>""";
|
||||
} else {
|
||||
" ";
|
||||
}
|
||||
"</div></td>";
|
||||
}
|
||||
if ($.post_empty) { "<td colspan='$.post_empty' bgcolor='$*accent_bgcolor'> </td>"; }
|
||||
"</tr>";
|
||||
}
|
||||
|
||||
function DayPage::lay_captionbar_navigation()
|
||||
{
|
||||
print "Missed some entries? Then simply jump to the <a href='$.prev_url'>previous day</a> or the <a href='$.next_url'>next day</a>.";
|
||||
}
|
||||
|
||||
function DayPage::print_body ()
|
||||
{
|
||||
if (not $.has_entries) {
|
||||
"<table border='0' width='100%' cellpadding='5' cellspacing='1' bgcolor='$*border_color'>";
|
||||
"<tr><td bgcolor='$*headerbar_bgcolor'><font color='$*headerbar_fgcolor'>";
|
||||
print $.date->date_format("%%month%% %%dayord%%, %%yyyy%%");
|
||||
"</font></td></tr></table><br />";
|
||||
print "No journal entries for this day.";
|
||||
} else {
|
||||
foreach var Entry e ($.entries) {
|
||||
$this->print_entry($e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function MonthPage::print_body {
|
||||
print_header($.date->date_format("%%month%% %%yyyy%%"));
|
||||
print_genericbox_open();
|
||||
"<form method='post' action='$.redir.url'><center>";
|
||||
$.redir->print_hiddens();
|
||||
if ($.prev_url != "") { "[<a href='$.prev_url'><<<</a>]\n"; }
|
||||
if (size $.months > 1) {
|
||||
"<select name='redir_key'>\n";
|
||||
foreach var MonthEntryInfo mei ($.months) {
|
||||
var string sel;
|
||||
if ($mei.date.year == $.date.year and $mei.date.month == $.date.month) {
|
||||
$sel = " selected='selected'";
|
||||
}
|
||||
"<option value='$mei.redir_key'$sel>" + $mei.date->date_format($*lang_fmt_month_long) + "</option>";
|
||||
}
|
||||
"</select>\n<input type='submit' value='View' />";
|
||||
}
|
||||
if ($.next_url != "") { "\n[<a href='$.next_url'>>>></a>]\n"; }
|
||||
"</center></form>\n<dl>";
|
||||
foreach var MonthDay d ($.days) {
|
||||
if ($d.has_entries) {
|
||||
"<dt><a href=\"$d.url\"><b>";
|
||||
print lang_ordinal($d.day);
|
||||
"</b></a></dt>\n<dd>";
|
||||
$d->print_subjectlist();
|
||||
"</dd>\n";
|
||||
}
|
||||
}
|
||||
"</dl>\n";
|
||||
print_genericbox_close();
|
||||
}
|
||||
|
||||
function EntryPage::print_body () {
|
||||
set_handler("unscreen_comment_#", [
|
||||
[ "style_bgcolor", "cmtbar#", "$*comment_bar_one_bgcolor", ],
|
||||
[ "style_color", "cmtbar#", "$*comment_bar_one_fgcolor", ],
|
||||
]);
|
||||
set_handler("screen_comment_#", [
|
||||
[ "style_bgcolor", "cmtbar#", "$*comment_bar_screened_bgcolor", ],
|
||||
[ "style_color", "cmtbar#", "$*comment_bar_screened_fgcolor", ],
|
||||
]);
|
||||
|
||||
print_entry($this, $.entry, null Color, null Color, $.viewing_thread);
|
||||
if ($.entry.comments.enabled and $.comment_pages.total_subitems > 0)
|
||||
{
|
||||
$this->print_multiform_start();
|
||||
|
||||
print_header("Comments:");
|
||||
if ($.comment_pages.total_subitems > 0) {
|
||||
$.comment_pages->print();
|
||||
$this->print_comments($.comments);
|
||||
}
|
||||
if ($this.multiform_on) {
|
||||
print_header("Mass Action:");
|
||||
|
||||
print_genericbox_open();
|
||||
$this->print_multiform_actionline();
|
||||
print_genericbox_close();
|
||||
|
||||
$this->print_multiform_end();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function EntryPage::print_comment_partial (Comment c) {
|
||||
var string poster = defined $c.poster ? $c.poster->as_string() : "<i>(Anonymous)</i>";
|
||||
var string subj = $c.subject != "" ? $c.subject : $*text_nosubject;
|
||||
print_genericbox_open();
|
||||
print "<a href='$c.permalink_url'>$subj</a> - $poster";
|
||||
print_genericbox_close();
|
||||
}
|
||||
|
||||
function EntryPage::print_comment (Comment c) {
|
||||
var string{} colors; var string{} meta; var string content = ""; var string footer = "";
|
||||
|
||||
if ($c.screened) {
|
||||
$colors{"bgcolor"} = "$*comment_bar_screened_bgcolor";
|
||||
$colors{"fgcolor"} = "$*comment_bar_screened_fgcolor";
|
||||
} elseif ($c.depth % 2) {
|
||||
$colors{"bgcolor"} = "$*comment_bar_one_bgcolor";
|
||||
$colors{"fgcolor"} = "$*comment_bar_one_fgcolor";
|
||||
} else {
|
||||
$colors{"bgcolor"} = "$*comment_bar_two_bgcolor";
|
||||
$colors{"fgcolor"} = "$*comment_bar_two_fgcolor";
|
||||
}
|
||||
|
||||
# Userpic
|
||||
var string poster = defined $c.poster ? $c.poster->as_string() : "<i>(Anonymous)</i>";
|
||||
var string metapic = "";
|
||||
if (defined $c.userpic and $*comment_userpic_style != "off")
|
||||
{
|
||||
var string userpic = defined $c.userpic ? "<img src='$c.userpic.url' style='border: 0' />" : "";
|
||||
$metapic = "$userpic<br />$poster";
|
||||
} else {
|
||||
$metapic = $poster;
|
||||
}
|
||||
|
||||
# Subject
|
||||
var string sub_icon;
|
||||
if (defined $c.subject_icon) {
|
||||
$sub_icon = $c.subject_icon->as_string();
|
||||
}
|
||||
if ($c.subject or $sub_icon) {
|
||||
$meta{"Subject:"} = "$c.subject $sub_icon";
|
||||
}
|
||||
|
||||
# Time posted
|
||||
$meta{"Time:"} = $c.time->time_format();
|
||||
|
||||
# Link
|
||||
$meta{"Link:"} = "(<a href='$c.permalink_url'>Link</a>)";
|
||||
|
||||
# IP Address:
|
||||
if ($c.metadata{"poster_ip"}) {
|
||||
$meta{"IP Address:"} = $c.metadata{"poster_ip"};
|
||||
}
|
||||
|
||||
if ($c.frozen) {
|
||||
$footer = "(Replies frozen) ";
|
||||
} else {
|
||||
$footer = "(<a href='$c.reply_url'>Reply to this</a>) ";
|
||||
}
|
||||
if ($c.parent_url != "") { $footer = "$footer (<a href='$c.parent_url'>Parent</a>) "; }
|
||||
if ($c.thread_url != "") { $footer = "$footer (<a href='$c.thread_url'>Thread</a>) "; }
|
||||
|
||||
var Link link = new Link;
|
||||
foreach var string k ($c.link_keyseq) {
|
||||
$link = $c->get_link($k); $footer = "$footer $link";
|
||||
}
|
||||
println "<a name='$c.anchor'></a>";
|
||||
print_box($colors, $metapic, $meta, $c.text, $footer, "cmtbar$c.talkid");
|
||||
}
|
||||
|
||||
function ReplyPage::print_body () {
|
||||
if (not $.entry.comments.enabled)
|
||||
{
|
||||
print_header($*text_reply_nocomments_header);
|
||||
print "<p>$*text_reply_nocomments</p>";
|
||||
return;
|
||||
}
|
||||
|
||||
var string{} meta; var string metapic;
|
||||
|
||||
# Userpic
|
||||
if (defined $.replyto.userpic and $*comment_userpic_style != "off")
|
||||
{
|
||||
$metapic = "<img src='$.replyto.userpic.url' />";
|
||||
}
|
||||
|
||||
# Subject
|
||||
if ($.replyto.subject) {
|
||||
$meta{"Subject:"} = $.replyto.subject;
|
||||
}
|
||||
|
||||
# Time posted
|
||||
$meta{"Time:"} = $.replyto.time->time_format();
|
||||
|
||||
print_box({ "bgcolor" => "$*accent_bgcolor", "fgcolor" => "$*accent_fgcolor" },
|
||||
$metapic, $meta, $.replyto.text, "", "");
|
||||
|
||||
print_header("Reply:");
|
||||
|
||||
print_genericbox_open();
|
||||
$.form->print();
|
||||
print_genericbox_close();
|
||||
|
||||
}
|
||||
|
||||
function print_theme_preview()
|
||||
{
|
||||
"<table width='100%' bgcolor='$*body_bgcolor' cellpadding=10><tr><td>";
|
||||
"<table border='0' width='100%' cellpadding='5' cellspacing='1' bgcolor='$*border_color'>";
|
||||
"<tr><td bgcolor='$*headerbar_bgcolor'><font color='$*headerbar_fgcolor'>October 29th, 2003";
|
||||
"</font></td></tr></table><br />";
|
||||
"<div align='right'><table border='0' width='95%' cellpadding='5' cellspacing='1' bgcolor='$*accent_bgcolor'>";
|
||||
"<tr><td align='left' bgcolor='$*accent_bgcolor'>";
|
||||
"<table border='0' width='100%'><tr>";
|
||||
"<td valign='top'><table border='0'>";
|
||||
"<tr><td align='right'><font color='$*accent_fgcolor'>Subject:</font>";
|
||||
"</td><td><font color='$*accent_fgcolor'>Words Words Words</font></td></tr>";
|
||||
"<tr><td align='right'><font color='$*accent_fgcolor'>Time:</font></td>";
|
||||
"<td><font color='$*accent_fgcolor'>1:37 pm</font></td></tr>";
|
||||
"</table></td></tr></table></td></tr>";
|
||||
"<tr><td align='left' bgcolor='$*main_bgcolor'><font color='$*main_fgcolor'>Preview text, preview text, etc, etc..... words, words and more words.</font></td></tr>";
|
||||
"""<tr><td align='left' bgcolor='$*accent_bgcolor'><font color='$*accent_fgcolor'><nobr>comments: <a href="#">20 comments</a> or <a href="#">Leave a comment</a></nobr></font></td></tr>""";
|
||||
"</table></div><br />";
|
||||
"</td></tr></table>";
|
||||
}
|
||||
BIN
livejournal/bin/upgrading/s2layers/tabularindent/tabularindent.jpg
Executable file
|
After Width: | Height: | Size: 19 KiB |
437
livejournal/bin/upgrading/s2layers/tabularindent/themes.s2
Executable file
@@ -0,0 +1,437 @@
|
||||
#NEWLAYER: tabularindent/shrinkvio
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Shrinking Violet";
|
||||
layerinfo redist_uniq = "tabularindent/shrinkvio";
|
||||
set body_bgcolor = "#ad22e7";
|
||||
set main_bgcolor = "#ffffff";
|
||||
set main_fgcolor = "#000000";
|
||||
set border_color = "#381a45";
|
||||
set headerbar_bgcolor = "#5d0383";
|
||||
set headerbar_fgcolor = "#ffffff";
|
||||
set captionbar_mainbox_bgcolor = "#5d0383";
|
||||
set captionbar_mainbox_fgcolor = "#ffffff";
|
||||
set captionbar_userpicbox_color = "#d9a1f1";
|
||||
set accent_bgcolor = "#d9a1f1";
|
||||
set accent_fgcolor = "#000000";
|
||||
set link_color = "#2e053f";
|
||||
set vlink_color = "#611627";
|
||||
set alink_color = "#ff00c0";
|
||||
set comment_bar_one_bgcolor = "#5d0383";
|
||||
set comment_bar_one_fgcolor = "#ffffff";
|
||||
set comment_bar_two_bgcolor = "#d9a1f1";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
|
||||
#NEWLAYER: tabularindent/pistmint
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Pistachio Mint";
|
||||
layerinfo redist_uniq = "tabularindent/pistmint";
|
||||
set body_bgcolor = "#133422";
|
||||
set main_bgcolor = "#a7c4b4";
|
||||
set main_fgcolor = "#000000";
|
||||
set border_color = "#096d36";
|
||||
set headerbar_bgcolor = "#096d36";
|
||||
set headerbar_fgcolor = "#ffffff";
|
||||
set captionbar_mainbox_bgcolor = "#096d36";
|
||||
set captionbar_mainbox_fgcolor = "#ffffff";
|
||||
set captionbar_userpicbox_color = "#096d36";
|
||||
set accent_bgcolor = "#096d36";
|
||||
set accent_fgcolor = "#000000";
|
||||
set link_color = "#8afabc";
|
||||
set vlink_color = "#1da65a";
|
||||
set alink_color = "#f9f5f5";
|
||||
set comment_bar_one_bgcolor = "#096d36";
|
||||
set comment_bar_one_fgcolor = "#ffffff";
|
||||
set comment_bar_two_bgcolor = "#093f36";
|
||||
set comment_bar_two_fgcolor = "#ffffff";
|
||||
|
||||
#NEWLAYER: tabularindent/mexicanfood
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Mexican Food";
|
||||
layerinfo redist_uniq = "tabularindent/mexicanfood";
|
||||
set body_bgcolor = "#ff0000";
|
||||
set main_bgcolor = "#f8ff3e";
|
||||
set main_fgcolor = "#f15601";
|
||||
set border_color = "#f50701";
|
||||
set headerbar_bgcolor = "#bdbf3e";
|
||||
set headerbar_fgcolor = "#ff0000";
|
||||
set captionbar_mainbox_bgcolor = "#ffc664";
|
||||
set captionbar_mainbox_fgcolor = "#000000";
|
||||
set captionbar_userpicbox_color = "#f9ff9d";
|
||||
set accent_bgcolor = "#e15a18";
|
||||
set accent_fgcolor = "#ffffff";
|
||||
set link_color = "#f49e08";
|
||||
set vlink_color = "#b05403";
|
||||
set alink_color = "#ff7405";
|
||||
set comment_bar_one_bgcolor = "#bdbf3e";
|
||||
set comment_bar_one_fgcolor = "#ff0000";
|
||||
set comment_bar_two_bgcolor = "#e15a18";
|
||||
set comment_bar_two_fgcolor = "#ffffff";
|
||||
|
||||
#NEWLAYER: tabularindent/ashfire
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Ash and Fire";
|
||||
layerinfo redist_uniq = "tabularindent/ashfire";
|
||||
set body_bgcolor = "#b5b5b5";
|
||||
set main_bgcolor = "#ffb6af";
|
||||
set main_fgcolor = "#000000";
|
||||
set border_color = "#d90308";
|
||||
set headerbar_bgcolor = "#e75454";
|
||||
set headerbar_fgcolor = "#ffffff";
|
||||
set captionbar_mainbox_bgcolor = "#ff9696";
|
||||
set captionbar_mainbox_fgcolor = "#ffffff";
|
||||
set captionbar_userpicbox_color = "#ff1106";
|
||||
set accent_bgcolor = "#f06c88";
|
||||
set accent_fgcolor = "#000000";
|
||||
set link_color = "#f70208";
|
||||
set vlink_color = "#b0161d";
|
||||
set alink_color = "#d70106";
|
||||
set comment_bar_one_bgcolor = "#e75454";
|
||||
set comment_bar_one_fgcolor = "#ffffff";
|
||||
set comment_bar_two_bgcolor = "#f06c88";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
|
||||
#NEWLAYER: tabularindent/desktop
|
||||
# for layout: 13 (tabularindent/layout)
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Classic Desktop";
|
||||
layerinfo redist_uniq = "tabularindent/desktop";
|
||||
set body_bgcolor = "#00545c";
|
||||
set main_bgcolor = "#ffffff";
|
||||
set main_fgcolor = "#000000";
|
||||
set border_color = "#000000";
|
||||
set headerbar_bgcolor = "#ff7b05";
|
||||
set headerbar_fgcolor = "#ffeddd";
|
||||
set captionbar_mainbox_bgcolor = "#ffffff";
|
||||
set captionbar_mainbox_fgcolor = "#000000";
|
||||
set captionbar_userpicbox_color = "#ff7b05";
|
||||
set accent_bgcolor = "#ffeddd";
|
||||
set accent_fgcolor = "#000000";
|
||||
set link_color = "#000050";
|
||||
set vlink_color = "#500050";
|
||||
set alink_color = "#5a76ff";
|
||||
set comment_bar_one_bgcolor = "#ff7b05";
|
||||
set comment_bar_one_fgcolor = "#ffeddd";
|
||||
set comment_bar_two_bgcolor = "#ffeddd";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
|
||||
#NEWLAYER: tabularindent/satinhandshake
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Satin Handshake";
|
||||
layerinfo redist_uniq = "tabularindent/satinhandshake";
|
||||
set body_bgcolor = "#480c0c";
|
||||
set main_bgcolor = "#d06464";
|
||||
set main_fgcolor = "#00001d";
|
||||
set border_color = "#000000";
|
||||
set headerbar_bgcolor = "#aaaaaa";
|
||||
set headerbar_fgcolor = "#000000";
|
||||
set captionbar_mainbox_bgcolor = "#aaaaaa";
|
||||
set captionbar_mainbox_fgcolor = "#000000";
|
||||
set captionbar_userpicbox_color = "#9d0404";
|
||||
set accent_bgcolor = "#9d0404";
|
||||
set accent_fgcolor = "#000000";
|
||||
set link_color = "#000050";
|
||||
set vlink_color = "#500050";
|
||||
set alink_color = "#ff00c0";
|
||||
set comment_bar_one_bgcolor = "#aaaaaa";
|
||||
set comment_bar_one_fgcolor = "#000000";
|
||||
set comment_bar_two_bgcolor = "#9d0404";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
|
||||
#NEWLAYER: tabularindent/deepmelodrama
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Deep MeloDrama";
|
||||
layerinfo redist_uniq = "tabularindent/deepmelodrama";
|
||||
set body_bgcolor = "#872d89";
|
||||
set main_bgcolor = "#719cff";
|
||||
set main_fgcolor = "#8e48b2";
|
||||
set border_color = "#8e48b2";
|
||||
set headerbar_bgcolor = "#3794b3";
|
||||
set headerbar_fgcolor = "#84b8e7";
|
||||
set captionbar_mainbox_bgcolor = "#65b2c1";
|
||||
set captionbar_mainbox_fgcolor = "#f5d3ff";
|
||||
set captionbar_userpicbox_color = "#8e48b2";
|
||||
set accent_bgcolor = "#65b2c1";
|
||||
set accent_fgcolor = "#f5d3ff";
|
||||
set link_color = "#000050";
|
||||
set vlink_color = "#500050";
|
||||
set alink_color = "#dfd3ff";
|
||||
set comment_bar_one_bgcolor = "#3794b3";
|
||||
set comment_bar_one_fgcolor = "#84b8e7";
|
||||
set comment_bar_two_bgcolor = "#65b2c1";
|
||||
set comment_bar_two_fgcolor = "#f5d3ff";
|
||||
|
||||
#NEWLAYER: tabularindent/everwhite
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Everwhite";
|
||||
layerinfo redist_uniq = "tabularindent/everwhite";
|
||||
set body_bgcolor = "#ffffff";
|
||||
set main_bgcolor = "#ffffff";
|
||||
set main_fgcolor = "#000000";
|
||||
set border_color = "#000000";
|
||||
set headerbar_bgcolor = "#ffffff";
|
||||
set headerbar_fgcolor = "#000000";
|
||||
set captionbar_mainbox_bgcolor = "#ffffff";
|
||||
set captionbar_mainbox_fgcolor = "#000000";
|
||||
set captionbar_userpicbox_color = "#ffffff";
|
||||
set accent_bgcolor = "#ffffff";
|
||||
set accent_fgcolor = "#000000";
|
||||
set link_color = "#e60000";
|
||||
set vlink_color = "#c10602";
|
||||
set alink_color = "#ff0600";
|
||||
set comment_bar_one_bgcolor = "#dddddd";
|
||||
set comment_bar_one_fgcolor = "#000000";
|
||||
set comment_bar_two_bgcolor = "#aaaaaa";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
|
||||
#NEWLAYER: tabularindent/everblue
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Everblue with Greys";
|
||||
layerinfo redist_uniq = "tabularindent/everblue";
|
||||
set body_bgcolor = "#0f0c6d";
|
||||
set main_bgcolor = "#ffffff";
|
||||
set main_fgcolor = "#000000";
|
||||
set border_color = "#000000";
|
||||
set headerbar_bgcolor = "#000000";
|
||||
set headerbar_fgcolor = "#ffffff";
|
||||
set captionbar_mainbox_bgcolor = "#aaaaaa";
|
||||
set captionbar_mainbox_fgcolor = "#000000";
|
||||
set captionbar_userpicbox_color = "#000000";
|
||||
set accent_bgcolor = "#aaaaaa";
|
||||
set accent_fgcolor = "#000000";
|
||||
set link_color = "#2f00f2";
|
||||
set vlink_color = "#060667";
|
||||
set alink_color = "#6691ff";
|
||||
set comment_bar_one_bgcolor = "#000000";
|
||||
set comment_bar_one_fgcolor = "#ffffff";
|
||||
set comment_bar_two_bgcolor = "#aaaaaa";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
|
||||
#NEWLAYER: tabularindent/brownleather
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Brown Leather Coat";
|
||||
layerinfo redist_uniq = "tabularindent/brownleather";
|
||||
set body_bgcolor = "#d2b48c";
|
||||
set main_bgcolor = "#ffebcd";
|
||||
set main_fgcolor = "#8b4513";
|
||||
set border_color = "#000000";
|
||||
set headerbar_bgcolor = "#d48014";
|
||||
set headerbar_fgcolor = "#ffffff";
|
||||
set captionbar_mainbox_bgcolor = "#d48014";
|
||||
set captionbar_mainbox_fgcolor = "#d48014";
|
||||
set captionbar_userpicbox_color = "#d48014";
|
||||
set accent_bgcolor = "#ffe1a1";
|
||||
set accent_fgcolor = "#000000";
|
||||
set link_color = "#000050";
|
||||
set vlink_color = "#867a55";
|
||||
set alink_color = "#fffab3";
|
||||
set comment_bar_one_bgcolor = "#d48014";
|
||||
set comment_bar_one_fgcolor = "#ffffff";
|
||||
set comment_bar_two_bgcolor = "#ffe1a1";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
|
||||
#NEWLAYER: tabularindent/bruise
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Bruise";
|
||||
layerinfo redist_uniq = "tabularindent/bruise";
|
||||
set body_bgcolor = "#000000";
|
||||
set main_bgcolor = "#bcbcbc";
|
||||
set main_fgcolor = "#000000";
|
||||
set border_color = "#000000";
|
||||
set headerbar_bgcolor = "#1114a0";
|
||||
set headerbar_fgcolor = "#ffffff";
|
||||
set captionbar_mainbox_bgcolor = "#21c2f1";
|
||||
set captionbar_mainbox_fgcolor = "#ffffff";
|
||||
set captionbar_userpicbox_color = "#1114a0";
|
||||
set accent_bgcolor = "#21c2f1";
|
||||
set accent_fgcolor = "#0000ff";
|
||||
set link_color = "#0000cc";
|
||||
set vlink_color = "#000088";
|
||||
set alink_color = "#0000ff";
|
||||
set comment_bar_one_bgcolor = "#1114a0";
|
||||
set comment_bar_one_fgcolor = "#ffffff";
|
||||
set comment_bar_two_bgcolor = "#21c2f1";
|
||||
set comment_bar_two_fgcolor = "#0000ff";
|
||||
|
||||
#NEWLAYER: tabularindent/ranchhand
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Ranch Hand";
|
||||
layerinfo redist_uniq = "tabularindent/ranchhand";
|
||||
set body_bgcolor = "#2999c2";
|
||||
set main_bgcolor = "#cfe0ff";
|
||||
set main_fgcolor = "#000000";
|
||||
set border_color = "#060667";
|
||||
set headerbar_bgcolor = "#54442c";
|
||||
set headerbar_fgcolor = "#ffffff";
|
||||
set captionbar_mainbox_bgcolor = "#bababa";
|
||||
set captionbar_mainbox_fgcolor = "#000000";
|
||||
set captionbar_userpicbox_color = "#9d995d";
|
||||
set accent_bgcolor = "#704400";
|
||||
set accent_fgcolor = "#bababa";
|
||||
set link_color = "#000050";
|
||||
set vlink_color = "#500050";
|
||||
set alink_color = "#6a20ff";
|
||||
set comment_bar_one_bgcolor = "#54442c";
|
||||
set comment_bar_one_fgcolor = "#ffffff";
|
||||
set comment_bar_two_bgcolor = "#704400";
|
||||
set comment_bar_two_fgcolor = "#bababa";
|
||||
|
||||
#NEWLAYER: tabularindent/victim
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Victim";
|
||||
layerinfo redist_uniq = "tabularindent/victim";
|
||||
set body_bgcolor = "#2cd0ff";
|
||||
set main_bgcolor = "#505050";
|
||||
set main_fgcolor = "#ffffff";
|
||||
set border_color = "#000000";
|
||||
set headerbar_bgcolor = "#166bac";
|
||||
set headerbar_fgcolor = "#ffffff";
|
||||
set captionbar_mainbox_bgcolor = "#2098f3";
|
||||
set captionbar_mainbox_fgcolor = "#ffffff";
|
||||
set captionbar_userpicbox_color = "#26b6ff";
|
||||
set accent_bgcolor = "#353535";
|
||||
set accent_fgcolor = "#ffffff";
|
||||
set link_color = "#000050";
|
||||
set vlink_color = "#500050";
|
||||
set alink_color = "#ff00c0";
|
||||
set comment_bar_one_bgcolor = "#166bac";
|
||||
set comment_bar_one_fgcolor = "#ffffff";
|
||||
set comment_bar_two_bgcolor = "#353535";
|
||||
set comment_bar_two_fgcolor = "#ffffff";
|
||||
|
||||
#NEWLAYER: tabularindent/forest
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Forest";
|
||||
layerinfo redist_uniq = "tabularindent/forest";
|
||||
set body_bgcolor = "#778e64";
|
||||
set main_bgcolor = "#9b9ba5";
|
||||
set main_fgcolor = "#000000";
|
||||
set border_color = "#ffffff";
|
||||
set headerbar_bgcolor = "#72784c";
|
||||
set headerbar_fgcolor = "#ffffff";
|
||||
set captionbar_mainbox_bgcolor = "#72784c";
|
||||
set captionbar_mainbox_fgcolor = "#ffffff";
|
||||
set captionbar_userpicbox_color = "#a0ac62";
|
||||
set accent_bgcolor = "#73777a";
|
||||
set accent_fgcolor = "#000000";
|
||||
set link_color = "#3811e1";
|
||||
set vlink_color = "#310cbb";
|
||||
set alink_color = "#4e7bef";
|
||||
set comment_bar_one_bgcolor = "#72784c";
|
||||
set comment_bar_one_fgcolor = "#ffffff";
|
||||
set comment_bar_two_bgcolor = "#73777a";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
|
||||
#NEWLAYER: tabularindent/drone
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Drone";
|
||||
layerinfo redist_uniq = "tabularindent/drone";
|
||||
set body_bgcolor = "#395f82";
|
||||
set main_bgcolor = "#f9fcfe";
|
||||
set main_fgcolor = "#000000";
|
||||
set border_color = "#000000";
|
||||
set headerbar_bgcolor = "#904094";
|
||||
set headerbar_fgcolor = "#ffffff";
|
||||
set captionbar_mainbox_bgcolor = "#f56efc";
|
||||
set captionbar_mainbox_fgcolor = "#ffffff";
|
||||
set captionbar_userpicbox_color = "#ff93ff";
|
||||
set accent_bgcolor = "#eeeeff";
|
||||
set accent_fgcolor = "#000000";
|
||||
set link_color = "#395f82";
|
||||
set vlink_color = "#395f82";
|
||||
set alink_color = "#5266ce";
|
||||
set comment_bar_one_bgcolor = "#904094";
|
||||
set comment_bar_one_fgcolor = "#ffffff";
|
||||
set comment_bar_two_bgcolor = "#eeeeff";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
|
||||
#NEWLAYER: tabularindent/lowercurtain
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Lower the Curtain";
|
||||
layerinfo redist_uniq = "tabularindent/lowercurtain";
|
||||
set body_bgcolor = "#000000";
|
||||
set main_bgcolor = "#6b6b6b";
|
||||
set main_fgcolor = "#ffffff";
|
||||
set border_color = "#ffffff";
|
||||
set headerbar_bgcolor = "#363636";
|
||||
set headerbar_fgcolor = "#f0f5fb";
|
||||
set captionbar_mainbox_bgcolor = "#c6c6c6";
|
||||
set captionbar_mainbox_fgcolor = "#222222";
|
||||
set captionbar_userpicbox_color = "#363636";
|
||||
set accent_bgcolor = "#c5c8ca";
|
||||
set accent_fgcolor = "#000000";
|
||||
set link_color = "#000050";
|
||||
set vlink_color = "#500050";
|
||||
set alink_color = "#3314ba";
|
||||
set comment_bar_one_bgcolor = "#363636";
|
||||
set comment_bar_one_fgcolor = "#f0f5fb";
|
||||
set comment_bar_two_bgcolor = "#c5c8ca";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
|
||||
#NEWLAYER: tabularindent/sunny
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Sunny Day";
|
||||
layerinfo redist_uniq = "tabularindent/sunny";
|
||||
set body_bgcolor = "#55e0f9";
|
||||
set main_bgcolor = "#e38202";
|
||||
set main_fgcolor = "#ffffff";
|
||||
set border_color = "#000000";
|
||||
set headerbar_bgcolor = "#e38202";
|
||||
set headerbar_fgcolor = "#ffffff";
|
||||
set captionbar_mainbox_bgcolor = "#fff505";
|
||||
set captionbar_mainbox_fgcolor = "#ffffff";
|
||||
set captionbar_userpicbox_color = "#efe052";
|
||||
set accent_bgcolor = "#ffba03";
|
||||
set accent_fgcolor = "#ffffff";
|
||||
set link_color = "#df0d12";
|
||||
set vlink_color = "#ac1b25";
|
||||
set alink_color = "#fe3b3b";
|
||||
set comment_bar_one_bgcolor = "#ffba03";
|
||||
set comment_bar_one_fgcolor = "#ffffff";
|
||||
set comment_bar_two_bgcolor = "#ffba36";
|
||||
set comment_bar_two_fgcolor = "#ffffff";
|
||||
|
||||
#NEWLAYER: tabularindent/valentine
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Be Mine";
|
||||
layerinfo redist_uniq = "tabularindent/valentine";
|
||||
set body_bgcolor = "#6f104a";
|
||||
set main_bgcolor = "#f2bce9";
|
||||
set main_fgcolor = "#000000";
|
||||
set border_color = "#ff24ab";
|
||||
set headerbar_bgcolor = "#ff37ff";
|
||||
set headerbar_fgcolor = "#ffffff";
|
||||
set captionbar_mainbox_bgcolor = "#df2096";
|
||||
set captionbar_mainbox_fgcolor = "#ffffff";
|
||||
set captionbar_userpicbox_color = "#ae1774";
|
||||
set accent_bgcolor = "#df2096";
|
||||
set accent_fgcolor = "#000000";
|
||||
set link_color = "#ffffff";
|
||||
set vlink_color = "#a51014";
|
||||
set alink_color = "#ed8188";
|
||||
set comment_bar_one_bgcolor = "#ff37ff";
|
||||
set comment_bar_one_fgcolor = "#ffffff";
|
||||
set comment_bar_two_bgcolor = "#df2096";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
|
||||
#NEWLAYER: tabularindent/stripes
|
||||
layerinfo type = theme;
|
||||
layerinfo name = "Stripes";
|
||||
layerinfo redist_uniq = "tabularindent/stripes";
|
||||
set body_bgcolor = "#ffffff";
|
||||
set main_bgcolor = "#ffffff";
|
||||
set main_fgcolor = "#000000";
|
||||
set border_color = "#ff0000";
|
||||
set headerbar_bgcolor = "#e7212a";
|
||||
set headerbar_fgcolor = "#ffffff";
|
||||
set captionbar_mainbox_bgcolor = "#ffffff";
|
||||
set captionbar_mainbox_fgcolor = "#000000";
|
||||
set captionbar_userpicbox_color = "#ffffff";
|
||||
set accent_bgcolor = "#ffcfdc";
|
||||
set accent_fgcolor = "#000000";
|
||||
set link_color = "#000050";
|
||||
set vlink_color = "#500050";
|
||||
set alink_color = "#ffafc1";
|
||||
set comment_bar_one_bgcolor = "#e7212a";
|
||||
set comment_bar_one_fgcolor = "#ffffff";
|
||||
set comment_bar_two_bgcolor = "#ffcfdc";
|
||||
set comment_bar_two_fgcolor = "#000000";
|
||||
967
livejournal/bin/upgrading/s2layers/variableflow/layout.s2
Executable file
@@ -0,0 +1,967 @@
|
||||
|
||||
|
||||
layerinfo "type" = "layout";
|
||||
layerinfo "name" = "Variable Flow";
|
||||
layerinfo "author_name" = "Martin Atkins";
|
||||
layerinfo "des" = "A really simple layout that you can customize like crazy!";
|
||||
layerinfo "redist_uniq" = "variableflow/layout";
|
||||
layerinfo "previews" = "variableflow/preview.jpg";
|
||||
|
||||
# Originally known as "Cleanly Shaven"
|
||||
#
|
||||
# This layout is full of customization options, and is designed
|
||||
# with code overrides in mind.
|
||||
# It also uses meaningful markup an CSS, for those who like that
|
||||
# sort of thing. If you like, you can override the stylesheet
|
||||
# completely in your user layer to drastically change the
|
||||
# presentation.
|
||||
|
||||
propgroup colors {
|
||||
property Color clr_margin {
|
||||
des = "Page Background Color";
|
||||
}
|
||||
property Color clr_line {
|
||||
des = "Color of line separating the entry area from the background";
|
||||
requires = "opt_page_border";
|
||||
}
|
||||
property Color clr_back {
|
||||
des = "Background Color of Main Content Area";
|
||||
requires = "opt_page_background";
|
||||
}
|
||||
property Color clr_text {
|
||||
des = "Main Text Color";
|
||||
}
|
||||
property Color clr_link {
|
||||
des = "Color of normal links";
|
||||
}
|
||||
property Color clr_vlink {
|
||||
des = "Color of visited links";
|
||||
}
|
||||
property Color clr_alink {
|
||||
des = "Color of links once clicked on";
|
||||
}
|
||||
property Color clr_title {
|
||||
des = "Journal Title Color";
|
||||
}
|
||||
set clr_margin = "#337CCD";
|
||||
set clr_line = "#000000";
|
||||
set clr_back = "#33ABCD";
|
||||
set clr_text = "#000000";
|
||||
set clr_link = "#261A72";
|
||||
set clr_vlink = "#190F57";
|
||||
set clr_alink = "#261A72";
|
||||
set clr_title = "#190F57";
|
||||
}
|
||||
|
||||
propgroup layout {
|
||||
property string margin_left {
|
||||
des = "Page Left Margin Size";
|
||||
values = "0|None|5px|Tiny|5%|Small|10%|Medium|25%|Large|50%|Massive";
|
||||
}
|
||||
property string margin_right {
|
||||
des = "Page Right Margin Size";
|
||||
values = "0|None|5px|Tiny|5%|Small|10%|Medium|25%|Large|50%|Massive";
|
||||
}
|
||||
property string margin_top {
|
||||
des = "Page Top Margin Size";
|
||||
values = "0|None|5px|Tiny|5%|Small|10%|Medium|25%|Large|50%|Massive";
|
||||
}
|
||||
property string margin_bottom {
|
||||
des = "Page Bottom Margin Size";
|
||||
values = "0|None|5px|Tiny|5%|Small|10%|Medium|25%|Large|50%|Massive";
|
||||
}
|
||||
set margin_left = "25%";
|
||||
set margin_right = "25%";
|
||||
set margin_top = "5px";
|
||||
set margin_bottom = "5px";
|
||||
|
||||
property string padding_left {
|
||||
des = "Page Left Inner Padding Size";
|
||||
values = "0|None|5px|Tiny|5%|Small|10%|Medium|25%|Large|50%|Massive";
|
||||
}
|
||||
property string padding_right {
|
||||
des = "Page Right Inner Padding Size";
|
||||
values = "0|None|5px|Tiny|5%|Small|10%|Medium|25%|Large|50%|Massive";
|
||||
}
|
||||
property string padding_top {
|
||||
des = "Page Top Inner Padding Size";
|
||||
values = "0|None|5px|Tiny|5%|Small|10%|Medium|25%|Large|50%|Massive";
|
||||
}
|
||||
property string padding_bottom {
|
||||
des = "Page Bottom Inner Padding Size";
|
||||
values = "0|None|5px|Tiny|5%|Small|10%|Medium|25%|Large|50%|Massive";
|
||||
}
|
||||
set padding_left = "5px";
|
||||
set padding_right = "5px";
|
||||
set padding_top = "5px";
|
||||
set padding_bottom = "5px";
|
||||
|
||||
property string align_viewlinks {
|
||||
des = "Position of links to other journal views";
|
||||
values = "left|Left|right|Right|center|Center";
|
||||
}
|
||||
property string align_title {
|
||||
des = "Position of journal title";
|
||||
values = "left|Left|right|Right|center|Center";
|
||||
}
|
||||
property string align_talklinks {
|
||||
des = "Position of comment links";
|
||||
values = "left|Left|right|Right|center|Center";
|
||||
}
|
||||
set align_viewlinks = "right";
|
||||
set align_title = "left";
|
||||
set align_talklinks = "right";
|
||||
|
||||
|
||||
# Some "advanced" settings which don't appear in the UI,
|
||||
# either because they have non-obvious interactions with
|
||||
# other properties or they have issues in certain browsers.
|
||||
property string adv_page_max_width {
|
||||
des = "Maximum Width of Content Area";
|
||||
note = "If you set this, you should also set margin_left and/or margin_right to 'auto'. Internet Explorer 6 does not support this property.";
|
||||
noui = 1;
|
||||
}
|
||||
property string adv_entry_max_width {
|
||||
des = "Maximum Width of Entry Text";
|
||||
note = "Internet Explorer 6 does not support this property, and will present entries full-width.";
|
||||
noui = 1;
|
||||
}
|
||||
property bool adv_enable_print_styles {
|
||||
des = "Enable Print Stylesheet";
|
||||
note = "If you disable this, your journal views may be unsuitable for printing.";
|
||||
noui = 1;
|
||||
}
|
||||
property bool adv_enable_projection_styles {
|
||||
des = "Enable Projection Stylesheet";
|
||||
note = "With this enabled, browsers which support projection stylesheets will see a different stylesheet.";
|
||||
noui = 1;
|
||||
}
|
||||
property bool adv_horrible_userpic_markup {
|
||||
des = "Enable horrible userpic markup";
|
||||
note = "With this enabled, the layout will use a table hack to present userpics. With it disabled, the userpics will just be shown raw with class userpic. You'll have to add your own stylesheet rules for them.";
|
||||
# See the comment within Page::print_entry for more details
|
||||
noui = 1;
|
||||
}
|
||||
set adv_page_max_width = "";
|
||||
set adv_entry_max_width = "";
|
||||
set adv_enable_print_styles = true;
|
||||
set adv_enable_projection_styles = true;
|
||||
set adv_horrible_userpic_markup = true;
|
||||
}
|
||||
|
||||
propgroup presentation {
|
||||
property use font_base;
|
||||
property use font_fallback;
|
||||
|
||||
property string font_size {
|
||||
des = "Size of text";
|
||||
values = "0.75em|Tiny|1em|Normal|1.1em|Large";
|
||||
}
|
||||
set font_size = "0.75em";
|
||||
|
||||
property bool opt_page_border {
|
||||
des = "Draw Line Around Content Box";
|
||||
note = "With this disabled, the line color option has no effect";
|
||||
}
|
||||
property bool opt_page_background {
|
||||
des = "Content Box has Background";
|
||||
note = "With this disabled, the Content Box Background Color and Image options have no effect and the page background will show through instead.";
|
||||
}
|
||||
set opt_page_border = true;
|
||||
set opt_page_background = true;
|
||||
|
||||
property string url_background_img_page {
|
||||
des = "Page Background Image URL";
|
||||
note = "Leave this blank if you do not wish to use a background image.";
|
||||
palimg_transform = "tint;*clr_back"; # Doesn't do anything right now
|
||||
}
|
||||
set url_background_img_page = "";
|
||||
|
||||
property string background_properties_page {
|
||||
des = "Page Background Image Display Options";
|
||||
values = "scroll|Scrolling, Tiled|scroll no-repeat|Scrolling, No repeat|scroll repeat-x|Scrolling, tile horizontally|scroll repeat-y|Scrolling, tile vertically|fixed|Fixed, Tiled|fixed no-repeat|Fixed, No repeat|fixed repeat-x|Fixed, tile horizontally|fixed repeat-y|Fixed, tile vertically";
|
||||
requires = "url_background_img_page";
|
||||
}
|
||||
set background_properties_page = "scroll";
|
||||
|
||||
property string background_position_page {
|
||||
des = "Page Background Position";
|
||||
values = "center|Centered|center left|Centered Vertically, Left|center right|Centered Vertically, Right|top center|Top, Centered Horizontally|top left|Top, Left|top right|Top, Right|bottom center|Bottom, Centered Horizontally|bottom left|Bottom, Left|bottom right|Bottom, Right";
|
||||
requires = "url_background_img_page";
|
||||
}
|
||||
set background_position_page = "top left";
|
||||
|
||||
property string url_background_img_box {
|
||||
des = "Content Box Background Image URL";
|
||||
note = "Leave this blank if you do not wish to use a background image.";
|
||||
palimg_transform = "tint;*clr_back"; # Doesn't do anything right now
|
||||
requires = "opt_page_background";
|
||||
}
|
||||
set url_background_img_box = "";
|
||||
|
||||
property string background_properties_box {
|
||||
des = "Content Box Background Image Display Options";
|
||||
values = "scroll|Scrolling, Tiled|scroll no-repeat|Scrolling, No repeat|scroll repeat-x|Scrolling, tile horizontally|scroll repeat-y|Scrolling, tile vertically|fixed|Fixed, Tiled|fixed no-repeat|Fixed, No repeat|fixed repeat-x|Fixed, tile horizontally|fixed repeat-y|Fixed, tile vertically";
|
||||
requires = "opt_page_background,url_background_img_box";
|
||||
}
|
||||
set background_properties_box = "scroll";
|
||||
|
||||
property string background_position_box {
|
||||
des = "Content Box Background Position";
|
||||
values = "center|Centered|center left|Centered Vertically, Left|center right|Centered Vertically, Right|top center|Top, Centered Horizontally|top left|Top, Left|top right|Top, Right|bottom center|Bottom, Centered Horizontally|bottom left|Bottom, Left|bottom right|Bottom, Right";
|
||||
requires = "opt_page_background,url_background_img_box";
|
||||
}
|
||||
set background_position_box = "top left";
|
||||
|
||||
property bool opt_entry_userpics {
|
||||
des = "Enable Userpics On Entries";
|
||||
note = "With this disabled, no entries will show userpics, even on the friends page.";
|
||||
}
|
||||
set opt_entry_userpics = true;
|
||||
|
||||
property bool opt_own_userpics {
|
||||
des = "Show Own Userpics";
|
||||
note = "Enable this to show userpics on your own entries. You must also have the previous option enabled. This option has no effect on community journals.";
|
||||
requires = "opt_entry_userpics";
|
||||
}
|
||||
set opt_own_userpics = false;
|
||||
|
||||
# This layout has quite a big stylesheet so let's avoid
|
||||
# transferring it over and over.
|
||||
set external_stylesheet = true;
|
||||
|
||||
# No good support for EntryPage/ReplyPage yet
|
||||
set view_entry_disabled = true;
|
||||
}
|
||||
|
||||
propgroup options {
|
||||
|
||||
# Some standard constructional properties
|
||||
property use page_recent_items;
|
||||
property use page_friends_items;
|
||||
property use page_year_sortorder;
|
||||
property use page_day_sortorder;
|
||||
|
||||
# Tell the system this layout has no linklist support
|
||||
# If you add linklist support in a user layer, you should also
|
||||
# set this property to true in your layer.
|
||||
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;
|
||||
}
|
||||
|
||||
function makefontspec() : string
|
||||
"Forms a CSS 'font-family' value based on the font-related properties."
|
||||
{
|
||||
var string fontspec;
|
||||
if ($*font_base != "") {
|
||||
$fontspec="\""+$*font_base+"\"";
|
||||
if ($*font_fallback != "") {
|
||||
$fontspec=$fontspec+",";
|
||||
}
|
||||
}
|
||||
$fontspec=$fontspec+$*font_fallback;
|
||||
return $fontspec;
|
||||
}
|
||||
|
||||
function Page::lay_print_viewlinks()
|
||||
"If you override this, be sure to still use foreach or your style won't support any future views."
|
||||
{
|
||||
# Output a list of textual links in a particular order
|
||||
var bool first = true;
|
||||
|
||||
"<ul class=\"navbar\">\n";
|
||||
foreach var string vl ($.views_order) {
|
||||
if ($vl == $.view) {
|
||||
print "<li class=\"active\">"+lang_viewname($vl)+"</li>\n";
|
||||
} else {
|
||||
print "<li><a href=\""+ehtml($.view_url{$vl})+"\">"+lang_viewname($vl)+"</a></li>\n";
|
||||
}
|
||||
$first = false;
|
||||
}
|
||||
"</ul>\n";
|
||||
}
|
||||
|
||||
function Page::lay_print_heading()
|
||||
"This can be overridden to change the main page titles to something else."
|
||||
{
|
||||
"""<h1>"""+$.global_title+"""</h1>
|
||||
<div id="viewtitle">""";
|
||||
|
||||
if ($.view == "recent" and $.global_subtitle != "") {
|
||||
print $.global_subtitle;
|
||||
} else {
|
||||
print $this->view_title();
|
||||
}
|
||||
|
||||
println """</div>""";
|
||||
|
||||
}
|
||||
|
||||
function Page::print() {
|
||||
"""<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title>"""+$this->title()+"""</title>
|
||||
""";
|
||||
if ($*external_stylesheet) {
|
||||
println """<link rel="stylesheet" href="$.stylesheet_url" type="text/css" />""";
|
||||
}
|
||||
else {
|
||||
println """<style type="text/css">""";
|
||||
print_stylesheet();
|
||||
println """</style>""";
|
||||
}
|
||||
$this->print_head();
|
||||
"""
|
||||
</head>
|
||||
|
||||
<body class="$.view">
|
||||
<div id="page">
|
||||
"""; $this->lay_print_viewlinks(); """
|
||||
|
||||
<div id="title">
|
||||
"""; $this->lay_print_heading(); """
|
||||
</div>
|
||||
|
||||
"""; $this->print_body(); """
|
||||
|
||||
<div id="serversig" style="margin-top: 3em; text-align: center;">"""; server_sig(); """</div>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>""";
|
||||
|
||||
}
|
||||
|
||||
function lang_skipped_back(RecentNav nav) : string
|
||||
"Return short text saying how many entries have been skipped back. i18n layers should override this."
|
||||
{
|
||||
return "Skipped Back $nav.skip";
|
||||
}
|
||||
|
||||
## The properties for these links are currently broken
|
||||
## in core - they were never updated to work with lang_map_plural.
|
||||
# So, FIXME: When core does them right, remove the hardcoded English
|
||||
function RecentPage::lay_print_skiplinks() {
|
||||
if ($.nav.backward_url != "" or $.nav.forward_url != "") {
|
||||
println """<ul class="viewspecnavbar">""";
|
||||
if ($.nav.backward_url) {
|
||||
println """<li><a href="$.nav.backward_url">Previous $.nav.backward_count</a></li>""";
|
||||
}
|
||||
if ($.nav.skip > 0) {
|
||||
println "<li>"+lang_skipped_back($.nav)+"</li>";
|
||||
}
|
||||
if ($.nav.forward_url) {
|
||||
println """<li><a href="$.nav.forward_url">Next $.nav.forward_count</a></li>""";
|
||||
}
|
||||
println "</ul>";
|
||||
}
|
||||
}
|
||||
|
||||
function RecentPage::print_body() {
|
||||
|
||||
$this->lay_print_skiplinks();
|
||||
|
||||
foreach var Entry e ($.entries) {
|
||||
if ($e.new_day) {
|
||||
"""<div class="day" id="day"""+$e.time->date_format("%%yyyy%%%%mm%%%%dd%%")+"\">\n";
|
||||
}
|
||||
# Print the entry
|
||||
$this->print_entry($e);
|
||||
if ($e.end_day) {
|
||||
"</div>";
|
||||
}
|
||||
}
|
||||
|
||||
if (size $.entries > 0) {
|
||||
$this->lay_print_skiplinks();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function DayPage::print_body() {
|
||||
|
||||
"""<ul class="viewspecnavbar">\n""";
|
||||
"<li><a href=\"$.prev_url\">$*text_day_prev</a></li>\n";
|
||||
"<li><a href=\"$.next_url\">$*text_day_next</a></li>\n</ul>";
|
||||
|
||||
|
||||
if ($.has_entries) {
|
||||
"<div class=\"day\" id=\"dayyymmmmmdddd\">\n";
|
||||
|
||||
foreach var Entry e ($.entries) {
|
||||
$this->print_entry($e);
|
||||
}
|
||||
|
||||
"</div>";
|
||||
|
||||
"<div class=\"skiplinks\">\n";
|
||||
"<a href=\"$.prev_url\">$*text_day_prev</a> - ";
|
||||
"<a href=\"$.next_url\">$*text_day_next</a>\n</div>";
|
||||
|
||||
|
||||
} else {
|
||||
"<p>$*text_noentries_day</p>";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
## YearPage Stuff
|
||||
function YearPage::print_body {
|
||||
$this->print_year_links();
|
||||
println """<div id="calendarmonthcontainer">""";
|
||||
foreach var YearMonth m ($.months) {
|
||||
$this->print_month($m);
|
||||
}
|
||||
println "</div>";
|
||||
}
|
||||
function YearPage::print_year_links() {
|
||||
"""<ul class="viewspecnavbar">\n""";
|
||||
foreach var YearYear y ($.years) {
|
||||
if ($y.displayed) {
|
||||
"""<li class="active">$y.year</li>\n""";
|
||||
} else {
|
||||
"""<li><a href="$y.url">$y.year</a></li>\n""";
|
||||
}
|
||||
}
|
||||
"""</ul>\n""";
|
||||
}
|
||||
function YearPage::print_month(YearMonth m) {
|
||||
if (not $m.has_entries) { return; }
|
||||
"""<table class="calendarmonth">\n
|
||||
<tr><th colspan="7" style="text-align: center;">""";
|
||||
print "<h2>"+$m->month_format()+"</h2>\n";
|
||||
"""</th></tr>\n""";
|
||||
foreach var int d (weekdays()) {
|
||||
"<th>"+$*lang_dayname_short[$d]+"</th>\n";
|
||||
}
|
||||
"</tr>\n";
|
||||
foreach var YearWeek w ($m.weeks) {
|
||||
$w->print();
|
||||
}
|
||||
"""<tr><td colspan="7" style="text-align: center;" class="calendarmonthlink">
|
||||
<a href="$m.url">$*text_view_month</a></td></tr>\n""";
|
||||
"</table>";
|
||||
}
|
||||
function YearWeek::print() {
|
||||
"""<tr valign="top" style="height: 3em;">\n""";
|
||||
if ($.pre_empty > 0) {
|
||||
"""<td class="emptyday" colspan="$.pre_empty"> </td>\n""";
|
||||
}
|
||||
foreach var YearDay d ($.days) {
|
||||
"""<td class="calendarday">\n""";
|
||||
"""<div style="text-align: right;">$d.day</div>\n""";
|
||||
if ($d.num_entries > 0) {
|
||||
"""<div style="text-align: center;"><a href="$d.url">$d.num_entries</a></div>\n""";
|
||||
}
|
||||
"""</td>\n""";
|
||||
}
|
||||
if ($.post_empty > 0) {
|
||||
"""<td colspan="$.post_empty"> </td>\n""";
|
||||
}
|
||||
"</tr>";
|
||||
}
|
||||
|
||||
|
||||
function metadata_title(string which) : string
|
||||
"Until core provides a function for this, i18n layers should override this."
|
||||
{
|
||||
if ($which == "music") {
|
||||
return "Current Music";
|
||||
}
|
||||
elseif ($which == "mood") {
|
||||
return "Current Mood";
|
||||
}
|
||||
else {
|
||||
return $which;
|
||||
}
|
||||
}
|
||||
|
||||
# Since there's currently no trusted print_entry_text function
|
||||
# in core, I have to do this here. Later, when something similar
|
||||
# is added to core, this can become a wrapper and be deprecated.
|
||||
function Page::lay_print_entry_text(Entry e) [fixed]
|
||||
"Don't override this. All it does is print the entry text."
|
||||
{
|
||||
print $e.text;
|
||||
}
|
||||
|
||||
# Since the metadata keys have to be hardcoded (bad core design)
|
||||
# let's separate this out so people can override print_entry
|
||||
# and still get any new metadata added later.
|
||||
function Page::lay_print_entry_metadata(Entry e)
|
||||
"Overriding this is strongly discouraged, since if any new entry metadata is added in the future your overridden version will not support it."
|
||||
{
|
||||
if (size $e.metadata > 0) {
|
||||
# This is horrible and unextensible. We have core to thank.
|
||||
# C'est la vie.
|
||||
"<div class=\"metadata\">\n";
|
||||
if ($e.metadata{"music"} != "") {
|
||||
"""<div class="currentmusic"><span class="metacaption">"""+metadata_title("music") + ":</span> " +
|
||||
$e.metadata{"music"}+"</div>\n";
|
||||
}
|
||||
if ($e.metadata{"mood"} != "") {
|
||||
"""<div class="currentmood"><span class="metacaption">"""+metadata_title("mood") + ":</span> ";
|
||||
if (defined $e.mood_icon) {
|
||||
print $e.mood_icon->as_string()+" ";
|
||||
}
|
||||
print $e.metadata{"mood"}+"</div>\n";
|
||||
}
|
||||
"</div>\n";
|
||||
}
|
||||
}
|
||||
|
||||
function Page::print_entry(Entry e) {
|
||||
"""<div class="entry" id="entry$e.itemid">\n""";
|
||||
|
||||
var bool altposter = $e.poster.username != $e.journal.username;
|
||||
var bool showpic = $*opt_entry_userpics and (($.view == "friends" or $altposter) or $*opt_own_userpics);
|
||||
|
||||
# By default, this layout uses an ugly table hack to present the userpic
|
||||
# alongside the entry. This is because I've been bitten on many previous
|
||||
# occasions by a bug with floats in IE causing text to vanish in certain
|
||||
# cases. You can set the property adv_horrible_userpic_markup to false
|
||||
# in a user layer to disable this behavior, but there are no CSS rules
|
||||
# in the stock stylesheet to handle it, so you'll have to supply your
|
||||
# own.
|
||||
|
||||
if ($showpic) {
|
||||
if ($*adv_horrible_userpic_markup) {
|
||||
"""<table cellpadding="0" border="0" cellspacing="0" style="margin: 0;" class="uglykludgeuserpic">
|
||||
<tr valign="top">
|
||||
<td style="text-align: center;" width="105">""";
|
||||
}
|
||||
if (defined $e.userpic) {
|
||||
println """<img src="$e.userpic.url" width="$e.userpic.width" width="$e.userpic.height" alt="" class="userpic" />""";
|
||||
} else {
|
||||
if ($*adv_horrible_userpic_markup) {
|
||||
print " ";
|
||||
}
|
||||
}
|
||||
if ($*adv_horrible_userpic_markup) {
|
||||
"</td><td>";
|
||||
}
|
||||
}
|
||||
"""<h2 class="entryheading">""";
|
||||
if ($.view != "day") {
|
||||
print $e.time->date_format()+" ";
|
||||
}
|
||||
print $e.time->time_format();
|
||||
if ($.view == "friends") {
|
||||
" - "; $this->print_entry_poster($e);
|
||||
}
|
||||
elseif ($altposter) {
|
||||
" - " + $e.poster->as_string();
|
||||
}
|
||||
if ($e.security != "") {
|
||||
" - " + $e.security_icon->as_string();
|
||||
}
|
||||
if ($e.subject != "") {
|
||||
" - $e.subject";
|
||||
}
|
||||
"</h2>\n"; $this->lay_print_entry_text($e);
|
||||
|
||||
$this->lay_print_entry_metadata($e);
|
||||
|
||||
if ($showpic and $*adv_horrible_userpic_markup) {
|
||||
"</td></tr></table>";
|
||||
}
|
||||
$e.comments->print();
|
||||
"</div>";
|
||||
}
|
||||
|
||||
function CommentInfo::print {
|
||||
if (not $.enabled) { return; }
|
||||
"""<ul class="entryextra">""";
|
||||
if ($.count > 0) {
|
||||
print """<li class="entryreadlink">""";
|
||||
$this->print_readlink();
|
||||
println "</li>";
|
||||
}
|
||||
print """<li class="entrypostlink">""";
|
||||
$this->print_postlink();
|
||||
print "</li>";
|
||||
"</ul>";
|
||||
}
|
||||
|
||||
function EntryPage::print_comment (Comment c) {
|
||||
var Color barlight = $*color_comment_bar->clone();
|
||||
$barlight->lightness(($barlight->lightness() + 255) / 2);
|
||||
var string poster = defined $c.poster ? $c.poster->as_string() : "<i>(Anonymous)</i>";
|
||||
|
||||
"<div style='margin-top: 10px; padding: 2px'>";
|
||||
"<table summary='0' style='width: 100%;'><tr valign='top'>";
|
||||
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.
|
||||
$w = $w / 2;
|
||||
$h = $h / 2;
|
||||
print "<td><img src='$c.userpic.url' width='$w' height='$h' alt='' /></td>";
|
||||
}
|
||||
"<td align='left'>";
|
||||
if (defined $c.subject_icon or $c.subject != "") { "<h3>$c.subject_icon $c.subject</h3>\n"; }
|
||||
print "<strong>$*text_comment_from</strong> $poster<br />\n";
|
||||
print "<strong>$*text_comment_date</strong> ";
|
||||
print $c.time->date_format("long") + " - " + $c.time->time_format();
|
||||
if ($c.metadata{"poster_ip"}) { print " ($*text_comment_ipaddr " + $c.metadata{"poster_ip"} + ")"; }
|
||||
print " <strong>(<a href='$c.permalink_url'>$*text_permalink</a>)</strong>\n";
|
||||
|
||||
var Link link;
|
||||
foreach var string s (["delete_comment", "screen_comment", "unscreen_comment"]) {
|
||||
|
||||
}
|
||||
$link = $c->get_link("delete_comment"); " $link";
|
||||
$link = $c->get_link("screen_comment"); " $link";
|
||||
$link = $c->get_link("unscreen_comment"); " $link";
|
||||
|
||||
if ($this.multiform_on) {
|
||||
" <label for='ljcomsel_$c.talkid'>$*text_multiform_check</label> ";
|
||||
$c->print_multiform_check();
|
||||
}
|
||||
|
||||
print "</td></tr></table></div>";
|
||||
print "<div style='margin-left: 5px'>$c.text</div>\n";
|
||||
print "<div style='margin-top: 3px; font-size: smaller'>(<a href='$c.reply_url'>$*text_comment_reply</a>) ";
|
||||
if ($c.parent_url != "") { "(<a href='$c.parent_url'>$*text_comment_parent</a>) "; }
|
||||
if ($c.thread_url != "") { "(<a href='$c.thread_url'>$*text_comment_thread</a>) "; }
|
||||
"</div>\n";
|
||||
}
|
||||
|
||||
function css_rule_if_set(string prop, string val)
|
||||
"Print a CSS rule only if val is not an empty string."
|
||||
{
|
||||
if ($val != "") {
|
||||
println " $prop: $val;";
|
||||
}
|
||||
}
|
||||
|
||||
function custom_stylesheet()
|
||||
"Override this in your user layer to add new stuff to the stylesheet"
|
||||
{
|
||||
# None, by default
|
||||
}
|
||||
|
||||
function print_stylesheet_for_printing()
|
||||
"If you have printing styles enabled, you can override this function to change how the page is styled for printing."
|
||||
{
|
||||
|
||||
""" body, #page, a, a:link, a:visited, a:active, a:hover, #title, h2 {
|
||||
background: #ffffff;
|
||||
color: #000000;
|
||||
}
|
||||
body {
|
||||
margin-top: 1em;
|
||||
margin-bottom: 1em;
|
||||
font-size: 12pt;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
font-family: "Garamond", "Palatino", "Palatino Linotype", serif;
|
||||
max-width: 15cm;
|
||||
}
|
||||
h1, h2, h3, h4, h5, h6, #title #viewtitle {
|
||||
font-family: "Frutiger", "Frutiger Linotype", "Helvetica", sans-serif;
|
||||
page-break-after: avoid;
|
||||
}
|
||||
.entry {
|
||||
page-break-inside: avoid;
|
||||
text-align: justify;
|
||||
}
|
||||
.calendarmonth {
|
||||
page-break-inside: avoid;
|
||||
}
|
||||
#page {
|
||||
border: 0;
|
||||
margin: 0;
|
||||
}
|
||||
.navbar, .entryextra, .viewspecnavbar {
|
||||
display: none;
|
||||
}
|
||||
#title {
|
||||
display: block;
|
||||
}
|
||||
#title h1, #title #viewtitle {
|
||||
display: inline;
|
||||
}
|
||||
#title #viewtitle {
|
||||
margin-left: 2em;
|
||||
font-style: italic;
|
||||
}
|
||||
""";
|
||||
}
|
||||
|
||||
function print_stylesheet_for_projection()
|
||||
"If you have projection styles enabled, you can override this function to change how the page is styled for projection."
|
||||
{
|
||||
|
||||
|
||||
var string background_body = $*clr_margin;
|
||||
if ($*url_background_img_page != "" and not $*url_background_img_page->contains(")")) {
|
||||
$background_body = $background_body + " url($*url_background_img_page)";
|
||||
if (not $*background_properties_page->contains(";")) {
|
||||
$background_body = $background_body + " $*background_properties_page";
|
||||
}
|
||||
}
|
||||
else {
|
||||
$background_body = $background_body + " none";
|
||||
}
|
||||
|
||||
var string background_page = $*clr_back;
|
||||
if ($*url_background_img_box != "" and not $*url_background_img_box->contains(")")) {
|
||||
$background_page = $background_page + " url($*url_background_img_box)";
|
||||
if (not $*background_properties_box->contains(";")) {
|
||||
$background_page = $background_page + " $*background_properties_box";
|
||||
}
|
||||
}
|
||||
else {
|
||||
$background_page = $background_page + " none";
|
||||
}
|
||||
|
||||
""" #page {
|
||||
margin: 10px;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
font-size: 2em;
|
||||
}
|
||||
body {
|
||||
background: $background_body;
|
||||
color: $*clr_text;
|
||||
}
|
||||
.navbar, .viewspecnavbar { display: none; }
|
||||
.entry, #title {
|
||||
page-break-after: always;
|
||||
margin: auto;
|
||||
padding: 10px;
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
bottom: 10px;
|
||||
left: 10px;
|
||||
right: 10px;
|
||||
""";
|
||||
if ($*opt_page_border) {
|
||||
println """ border: 1px solid $*clr_line;""";
|
||||
}
|
||||
if ($*opt_page_background) {
|
||||
println """ background: $background_page;""";
|
||||
}
|
||||
" }\n";
|
||||
}
|
||||
|
||||
function print_stylesheet() {
|
||||
var string fontspec=makefontspec();
|
||||
if ($fontspec != "") {
|
||||
$fontspec=" font-family: $fontspec;";
|
||||
}
|
||||
|
||||
var string eextrastyle="";
|
||||
if ($*align_talklinks != "right") {
|
||||
$eextrastyle=$eextrastyle+
|
||||
""".entryextra:after { content: " :."; }\n""";
|
||||
}
|
||||
if ($*align_talklinks != "left") {
|
||||
$eextrastyle=$eextrastyle+
|
||||
""".entryextra:before { content: ".: "; }\n""";
|
||||
}
|
||||
$eextrastyle=$eextrastyle+
|
||||
""".entryextra { text-align: $*align_talklinks; font-size: 0.9em; }""";
|
||||
|
||||
# This tries to do a bit of "sanity" checking to ensure users
|
||||
# don't inadvertently break the CSS, but it's not brilliant.
|
||||
var string background_body = $*clr_margin;
|
||||
if ($*url_background_img_page != "" and not $*url_background_img_page->contains(")")) {
|
||||
$background_body = $background_body + " url($*url_background_img_page)";
|
||||
if (not $*background_properties_page->contains(";")) {
|
||||
$background_body = $background_body + " $*background_properties_page";
|
||||
}
|
||||
if (not $*background_position_page->contains(";")) {
|
||||
$background_body = $background_body + " $*background_position_page";
|
||||
}
|
||||
}
|
||||
else {
|
||||
$background_body = $background_body + " none";
|
||||
}
|
||||
|
||||
var string background_page = $*clr_back;
|
||||
if ($*url_background_img_box != "" and not $*url_background_img_box->contains(")")) {
|
||||
$background_page = $background_page + " url($*url_background_img_box)";
|
||||
if (not $*background_properties_box->contains(";")) {
|
||||
$background_page = $background_page + " $*background_properties_box";
|
||||
}
|
||||
if (not $*background_position_box->contains(";")) {
|
||||
$background_page = $background_page + " $*background_position_box";
|
||||
}
|
||||
}
|
||||
else {
|
||||
$background_page = $background_page + " none";
|
||||
}
|
||||
|
||||
|
||||
"""
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
background: $background_body;
|
||||
color: $*clr_text;
|
||||
$fontspec font-size: $*font_size;
|
||||
}
|
||||
table, tr, td, th {
|
||||
font-size: 1em;
|
||||
}
|
||||
#page {
|
||||
""";
|
||||
css_rule_if_set("margin-left", $*margin_left);
|
||||
css_rule_if_set("margin-right", $*margin_right);
|
||||
css_rule_if_set("margin-top", $*margin_top);
|
||||
css_rule_if_set("margin-bottom", $*margin_bottom);
|
||||
css_rule_if_set("padding-left", $*padding_left);
|
||||
css_rule_if_set("padding-right", $*padding_right);
|
||||
css_rule_if_set("padding-top", $*padding_top);
|
||||
css_rule_if_set("padding-bottom", $*padding_bottom);
|
||||
css_rule_if_set("max-width", $*adv_page_max_width);
|
||||
|
||||
if ($*opt_page_border) {
|
||||
println """ border: 1px solid $*clr_line;""";
|
||||
}
|
||||
if ($*opt_page_background) {
|
||||
println """ background: $background_page;""";
|
||||
}
|
||||
"""
|
||||
}
|
||||
#title h1 {
|
||||
font-size: 1.4em;
|
||||
font-weight: bold;
|
||||
text-align: $*align_title;
|
||||
margin: 0;
|
||||
}
|
||||
#title #viewtitle {
|
||||
font-size: 1.1em;
|
||||
font-weight: bold;
|
||||
text-align: $*align_title;
|
||||
margin: 0;
|
||||
}
|
||||
.navbar {
|
||||
text-align: $*align_viewlinks;
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
display: block;
|
||||
}
|
||||
.viewspecnavbar {
|
||||
text-align: center;
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
display: block;
|
||||
margin-top: 1em;
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
.navbar li { display: inline; white-space: nowrap; }
|
||||
.navbar li.active { display: inline; }
|
||||
.navbar li:before { content: " :: "; }
|
||||
.navbar li:first-child:before { content: ""; }
|
||||
.viewspecnavbar li { display: inline; white-space: nowrap; }
|
||||
.viewspecnavbar li.active { display: inline; }
|
||||
.viewspecnavbar li:before { content: " :: "; }
|
||||
.viewspecnavbar li:first-child:before { content: ""; }
|
||||
|
||||
#title {
|
||||
margin-top: 3em;
|
||||
margin-bottom: 0.5em;
|
||||
color: $*clr_title;
|
||||
background: transparent;
|
||||
}
|
||||
a:link { color: $*clr_link; background: transparent; }
|
||||
a:visited { color: $*clr_vlink; background: transparent; }
|
||||
a:active, a:hover { color: $*clr_alink; background: transparent; }
|
||||
.entry {
|
||||
margin-bottom: 4em;
|
||||
}
|
||||
.entryheading {
|
||||
font-weight: bold; font-size: 1.0em;
|
||||
}
|
||||
.entrytext {
|
||||
"""; css_rule_if_set("max-width", $*adv_entry_max_width);
|
||||
""" margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.entry .metadata {
|
||||
margin-top: 0.5em;
|
||||
margin-bottom: 0;
|
||||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
.entryextra {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
display: block;
|
||||
}
|
||||
.entryextra li {
|
||||
display: inline;
|
||||
}
|
||||
.entryextra li.entryreadlink:after {
|
||||
content: " :: ";
|
||||
}
|
||||
.entryextra li.entryreadlink {
|
||||
font-weight: bold;
|
||||
}
|
||||
$eextrastyle
|
||||
|
||||
/* IE hack - center the block with text-align! */
|
||||
.calendarmonthcontainer {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.calendarmonth {
|
||||
margin-top: 2em;
|
||||
margin-bottom: 2em;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
text-align: left;
|
||||
}
|
||||
.calendarmonth h2 {
|
||||
font-size: 1em;
|
||||
font-weight: bold;
|
||||
margin: 0;
|
||||
}
|
||||
.calendarday {
|
||||
width: 3em;
|
||||
max-width: 3em;
|
||||
height: 3em;
|
||||
}
|
||||
|
||||
""";
|
||||
|
||||
if ($*adv_enable_print_styles) {
|
||||
"""
|
||||
@media print {
|
||||
"""; print_stylesheet_for_printing(); """
|
||||
}
|
||||
""";
|
||||
}
|
||||
|
||||
if ($*adv_enable_projection_styles) {
|
||||
"""
|
||||
@media projection {
|
||||
"""; print_stylesheet_for_projection(); """
|
||||
}
|
||||
""";
|
||||
}
|
||||
|
||||
custom_stylesheet();
|
||||
|
||||
}
|
||||
|
||||
BIN
livejournal/bin/upgrading/s2layers/variableflow/preview.jpg
Executable file
|
After Width: | Height: | Size: 23 KiB |