[dw-nonfree] Add ability for Template Toolkit site-schemes to DW::Template
[commit: http://hg.dwscoalition.org/dw-nonfree/rev/f6afd79096a9]
http://bugs.dwscoalition.org/show_bug.cgi?id=2304
Convert dw-nonfree site skins from BML to TT.
Patch by
exor674.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=2304
Convert dw-nonfree site skins from BML to TT.
Patch by
Files modified:
- cgi-bin/bml/scheme/celerity-local.look
- cgi-bin/bml/scheme/dreamwidth.look
- cgi-bin/bml/scheme/gradation-horizontal-local.look
- cgi-bin/bml/scheme/gradation-vertical-local.look
- cgi-bin/bml/scheme/tropo-common.look
- cgi-bin/bml/scheme/tropo-purple.look
- cgi-bin/bml/scheme/tropo-red.look
- schemes/_dreamwidth.tt
- schemes/celerity-local.tt
- schemes/gradation-horizontal-local.tt
- schemes/gradation-vertical-local.tt
- schemes/tropo-common.tt
- schemes/tropo-purple.tt
- schemes/tropo-red.tt
--------------------------------------------------------------------------------
diff -r 4ccc1a61d21f -r f6afd79096a9 cgi-bin/bml/scheme/celerity-local.look
--- a/cgi-bin/bml/scheme/celerity-local.look Tue Jan 25 17:54:05 2011 +0800
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,25 +0,0 @@
-_parent=>celerity.look
-
-logo<=
-<?_code
-{
- my $imgprefix = $LJ::IS_SSL ? $LJ::SSLIMGPREFIX : $LJ::IMGPREFIX;
- return "<a href='$LJ::SITEROOT/'><img src='$imgprefix/celerity/dw_logo_celerity_beta.png' alt='$LJ::SITENAMESHORT' /></a>";
-}
-_code?>
-<=logo
-
-
-footer<=
-<ul>
- <li><a href="<?siteroot?>/legal/privacy"><?_ml sitescheme.footer.legal.privacypolicy _ml?></a> • </li>
- <li><a href="<?siteroot?>/legal/tos"><?_ml sitescheme.footer.legal.tos _ml?></a> • </li>
- <li><a href="<?siteroot?>/legal/diversity"><?_ml sitescheme.footer.legal.diversitystatement _ml?></a> • </li>
- <li><a href="<?siteroot?>/legal/principles"><?_ml sitescheme.footer.legal.guidingprinciples _ml?></a> • </li>
- <li><a href="<?siteroot?>/site/"><?_ml sitescheme.footer.sitemap _ml?></a> • </li>
- <li><a href="<?siteroot?>/site/suggest"><?_ml sitescheme.footer.suggestion _ml?></a> • </li>
- <li><a href="<?siteroot?>/site/opensource"><?_ml tropo.footer.opensource _ml?></a> • </li>
- <li><a href="<?siteroot?>/support"><?_ml sitescheme.accountlinks.help _ml?></a></li>
-</ul>
-<p><?_ml sitescheme.footer.info _ml?></p>
-<=footer
diff -r 4ccc1a61d21f -r f6afd79096a9 cgi-bin/bml/scheme/dreamwidth.look
--- a/cgi-bin/bml/scheme/dreamwidth.look Tue Jan 25 17:54:05 2011 +0800
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,178 +0,0 @@
-#
-# temporary look file for the Dreawmwidth staging environment
-#
-# written by Mark Smith <mark@dreamwidth.org>
-#
-
-_parent=>global.look
-
-H1=>{D}<h1>%%data%%</h1>
-H2=>{d}<h2>%%data%%</h2>
-HR=><hr />
-P=>{D}<p>%%data%%</p>
-
-STANDOUTO<=
-{D}<CENTER><FONT SIZE=1><BR></FONT><TABLE ALIGN=CENTER CELLPADDING=8 BORDER=1 BGCOLOR=#CCCCFF BORDERCOLORLIGHT=#DDDDFF
-BORDERCOLORDARK=#BBBBFF summary=""><TR><TD VALIGN=CENTER>
-%%DATA%%
-
-</TD></TR></TABLE></CENTER>
-<=STANDOUTO
-
-STANDOUT<=
-{DRps}<CENTER><FONT SIZE=1><BR></FONT>
-<table cellspacing=0 cellpadding=0 border=0 bgcolor="#ccccff" summary="">
- <tr>
- <td width=7 align=left valign=top>
- <img width=7 height=7 src="<?imgprefix?>/corn_nw.gif" alt=""></td>
- <td height=7>
- <img height=7 src="<?imgprefix?>/dot.gif" alt=""></td>
- <td width=7 valign=top align=right>
- <img height=7 src="<?imgprefix?>/corn_ne.gif" alt=""></td>
- </tr><tr>
- <td width=7>
- <img width=7 height=1 src="<?imgprefix?>/dot.gif" alt=""></td>
- <td valign=top>
-%%DATA%%
-
- </td>
- <td width=7>
- <img width=7 height=1 src="<?imgprefix?>/dot.gif" alt=""></td>
- </tr><tr>
- <td width=7 align=left valign=top>
- <img width=7 height=7 src="<?imgprefix?>/corn_sw.gif" alt=""></td>
- <td height=7>
- <img height=7 src="<?imgprefix?>/dot.gif" alt=""></td>
- <td width=7 valign=top align=right>
- <img height=7 src="<?imgprefix?>/corn_se.gif" alt=""></td>
- </tr>
-</table>
-
-</CENTER>
-<=STANDOUT
-
-EMAILEX=><div style='width: 50%; font-family: courier; background-color: #efefef; border: dotted #cdcdcd 2px; padding: 5px;'>%%data%%</div>
-
-PAGE<=
-{Fps}<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
-
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <?load_page_info?>
- <meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
-
- <title>%%title%%</title>
- <link href="<?statprefix?>/syndicateme.css" rel="stylesheet" type="text/css" />
- <link href="<?statprefix?>/lj_base-app.css" rel="stylesheet" type="text/css" />
-
- <?_code LJ::res_includes() _code?>
-
- %%head%%
-
-<?_code
-{
- use strict;
-
- my $crumb_up = '';
- if ( LJ::get_active_crumb() ne '' ) {
- my $parentcrumb = LJ::get_parent_crumb();
- $crumb_up = qq{ <link rel="up" title="$parentcrumb->[0]" href="$parentcrumb->[1]" />\n};
- }
- return $crumb_up;
-}
-_code?>
-
-</head>
-
-<body %%bodyopts%%>
-
-<div id="container">
- <div id="header">
- <h1>Dreamwidth</h1>
- <h2>%%title%%</h2><br />
- <hr />
- </div>
-
- <div id="left">
-
-<?_code
-{
- my $ret = "";
-
- sub dump_entry {
- my ( $ret, $listref, $depth ) = @_;
-
- $$ret .= qq{<ul class="toc depth$depth">};
-
- foreach my $mi ( @$listref ) {
-
- $$ret .= qq{<li class="tocitem depth$depth">};
-
- if ( ! defined $mi->{uri} ) {
- $$ret .= $mi->{name};
-
- } elsif ($mi->{match} ?
- (BML::get_uri() =~ /$mi->{match}/) :
- (BML::get_uri() eq $mi->{uri})
- ) {
- $$ret .= qq#<span class="tocmatch">$mi->{name}</span>#;
-
- } else {
- $$ret .= qq#<a href="<?siteroot?>$mi->{uri}">$mi->{name}</a>#;
-
- }
-
- if ( $mi->{children} &&
- ($mi->{recursematch} ? BML::get_uri() =~ /$mi->{recursematch}/ : 1) ) {
- dump_entry( $ret, $mi->{children}, $depth+1 );
- }
-
- $$ret .= "</li>";
- }
-
- $$ret .= "</ul>";
- }
-
- dump_entry( \$ret, \@sidebar, 0 );
-
- return $ret;
-}
-_code?>
-
- </div>
-
- <!-- don't forget lt ?breadcrumb? gt -->
-
- <div id="main">
-
- <!-- mark is very sorry for this table. but it's the only way he found to fix the clear/float
- issues that were plaguing this temporary style. -->
-
- <table summary=""><tr><td>
-%%body%%
- </td></tr></table>
-
- </div>
-
- <div id="footer">
- <hr />
-
- <p class="left">
- <a href="<?siteroot?>/privacy">Privacy Policy</A> |
- <a href="<?siteroot?>/coppa">COPPA</a> |
- <a href="<?siteroot?>/disclaimer">Legal Disclaimer</a>
- </p>
-
- <p class="right">
- interesting tidbits here
- </p>
-
- </div>
-
-</div>
-
-<?_code LJ::final_body_html(); _code?>
-</body>
-</html>
-<=PAGE
-
diff -r 4ccc1a61d21f -r f6afd79096a9 cgi-bin/bml/scheme/gradation-horizontal-local.look
--- a/cgi-bin/bml/scheme/gradation-horizontal-local.look Tue Jan 25 17:54:05 2011 +0800
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,25 +0,0 @@
-_parent=>gradation-horizontal.look
-
-logo<=
-<?_code
-{
- my $imgprefix = $LJ::IS_SSL ? $LJ::SSLIMGPREFIX : $LJ::IMGPREFIX;
- return "<a href='$LJ::SITEROOT/'><img src='$imgprefix/gradation/dw_logo_gradation_beta.png' alt='$LJ::SITENAMESHORT' /></a>";
-}
-_code?>
-<=logo
-
-
-footer<=
-<ul>
- <li><a href="<?siteroot?>/legal/privacy"><?_ml sitescheme.footer.legal.privacypolicy _ml?></a> • </li>
- <li><a href="<?siteroot?>/legal/tos"><?_ml sitescheme.footer.legal.tos _ml?></a> • </li>
- <li><a href="<?siteroot?>/legal/diversity"><?_ml sitescheme.footer.legal.diversitystatement _ml?></a> • </li>
- <li><a href="<?siteroot?>/legal/principles"><?_ml sitescheme.footer.legal.guidingprinciples _ml?></a> • </li>
- <li><a href="<?siteroot?>/site/"><?_ml sitescheme.footer.sitemap _ml?></a> • </li>
- <li><a href="<?siteroot?>/site/suggest"><?_ml sitescheme.footer.suggestion _ml?></a> • </li>
- <li><a href="<?siteroot?>/site/opensource"><?_ml tropo.footer.opensource _ml?></a> • </li>
- <li><a href="<?siteroot?>/support/"><?_ml sitescheme.accountlinks.help _ml?></a></li>
-</ul>
-<p><?_ml sitescheme.footer.info _ml?></p>
-<=footer
diff -r 4ccc1a61d21f -r f6afd79096a9 cgi-bin/bml/scheme/gradation-vertical-local.look
--- a/cgi-bin/bml/scheme/gradation-vertical-local.look Tue Jan 25 17:54:05 2011 +0800
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,25 +0,0 @@
-_parent=>gradation-vertical.look
-
-logo<=
-<?_code
-{
- my $imgprefix = $LJ::IS_SSL ? $LJ::SSLIMGPREFIX : $LJ::IMGPREFIX;
- return "<a href='$LJ::SITEROOT/'><img src='$imgprefix/gradation/dw_logo_gradation_beta.png' alt='$LJ::SITENAMESHORT' /></a>";
-}
-_code?>
-<=logo
-
-
-footer<=
-<ul>
- <li><a href="<?siteroot?>/legal/privacy"><?_ml sitescheme.footer.legal.privacypolicy _ml?></a> • </li>
- <li><a href="<?siteroot?>/legal/tos"><?_ml sitescheme.footer.legal.tos _ml?></a> • </li>
- <li><a href="<?siteroot?>/legal/diversity"><?_ml sitescheme.footer.legal.diversitystatement _ml?></a> • </li>
- <li><a href="<?siteroot?>/legal/principles"><?_ml sitescheme.footer.legal.guidingprinciples _ml?></a> • </li>
- <li><a href="<?siteroot?>/site/"><?_ml sitescheme.footer.sitemap _ml?></a> • </li>
- <li><a href="<?siteroot?>/site/suggest"><?_ml sitescheme.footer.suggestion _ml?></a> • </li>
- <li><a href="<?siteroot?>/site/opensource"><?_ml tropo.footer.opensource _ml?></a> • </li>
- <li><a href="<?siteroot?>/support/"><?_ml sitescheme.accountlinks.help _ml?></a></li>
-</ul>
-<p><?_ml sitescheme.footer.info _ml?></p>
-<=footer
diff -r 4ccc1a61d21f -r f6afd79096a9 cgi-bin/bml/scheme/tropo-common.look
--- a/cgi-bin/bml/scheme/tropo-common.look Tue Jan 25 17:54:05 2011 +0800
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,66 +0,0 @@
-# Common BML for Tropospherical site schemes, refactored for inheritance.
-#
-# Authors:
-# Jen Griffin <kareila@livejournal.com>
-# Based on Tropospherical Red, authored by:
-# Janine Smith <janine@netrophic.com>
-# Jesse Proulx <jproulx@jproulx.net>
-# Elizabeth Lubowitz <grrliz@gmail.com>
-#
-# Copyright (c) 2010 by Dreamwidth Studios, LLC.
-#
-# This program is free software; you may redistribute it and/or modify it under
-# the same terms as Perl itself. For a copy of the license, please reference
-# 'perldoc perlartistic' or 'perldoc perlgpl'.
-
-_parent=>common.look
-
-footer<=
-<ul>
- <li><a href="<?siteroot?>/legal/privacy"><?_ml sitescheme.footer.legal.privacypolicy _ml?></a> • </li>
- <li><a href="<?siteroot?>/legal/tos"><?_ml sitescheme.footer.legal.tos _ml?></a> • </li>
- <li><a href="<?siteroot?>/legal/diversity"><?_ml sitescheme.footer.legal.diversitystatement _ml?></a> • </li>
- <li><a href="<?siteroot?>/legal/principles"><?_ml sitescheme.footer.legal.guidingprinciples _ml?></a> • </li>
- <li><a href="<?siteroot?>/site/"><?_ml sitescheme.footer.sitemap _ml?></a> • </li>
- <li><a href="<?siteroot?>/site/suggest"><?_ml sitescheme.footer.suggestion _ml?></a> • </li>
- <li><a href="<?siteroot?>/site/opensource"><?_ml tropo.footer.opensource _ml?></a> • </li>
- <li><a href="<?siteroot?>/support"><?_ml sitescheme.accountlinks.help _ml?></a></li>
-</ul>
-<p><?_ml sitescheme.footer.info _ml?></p>
-<=footer
-
-page<=
-{Fps}<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
- <?head?>
- <body %%bodyopts%%>
- <div id="canvas">
- <div id="page">
- <div id="masthead">
- <span id="logo">
- <?logo?>
- </span>
- </div>
-
- <div id="content" %%contentopts%%>
- <h1>%%title%%</h1>
- %%body%%
- </div>
- <div id="account-links">
- <?accountlinks?>
- </div>
- <div id="menu">
- <?menunav?>
- <?_code return LJ::Widget::Search->render; _code?>
- </div>
- <div id="footer">
- <?footer?>
- </div>
- </div>
- </div>
- <?_code LJ::final_body_html(); _code?>
-
- <div id="shim-alpha"> </div>
- </body>
-</html>
-<=page
diff -r 4ccc1a61d21f -r f6afd79096a9 cgi-bin/bml/scheme/tropo-purple.look
--- a/cgi-bin/bml/scheme/tropo-purple.look Tue Jan 25 17:54:05 2011 +0800
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,57 +0,0 @@
-# Tropospherical Site Scheme
-#
-# Authors:
-# Janine Smith <janine@netrophic.com>
-# Jesse Proulx <jproulx@jproulx.net>
-# Elizabeth Lubowitz <grrliz@gmail.com>
-#
-# Copyright (c) 2009 by Dreamwidth Studios, LLC.
-#
-# This program is NOT free software or open-source; you can use it as an
-# example of how to implement your own site-specific extensions to the
-# Dreamwidth Studios open-source code, but you cannot use it on your site
-# or redistribute it, with or without modifications.
-#
-
-_parent=>tropo-common.look
-
-head<=
-<head>
- <title>
- <?_code
- my $elhash = $_[2];
- return $elhash->{WINDOWTITLE} || $elhash->{TITLE};
- _code?>
- </title>
-
- <meta http-equiv="content-type" content="text/html; charset=utf-8" />
-
- <?_code
- LJ::need_res( { priority => $LJ::SCHEME_RES_PRIORITY },
- qw( stc/reset.css
- stc/jquery/jquery.ui.theme.smoothness.css
- stc/lj_base-app.css
- stc/tropo/tropo-base.css
- stc/tropo/tropo-purple.css
- )
- );
-
- # we support both old style and new style pages; only one of these will get
- # loaded ...
- LJ::need_res( { group => 'jquery', priority => $LJ::SCHEME_RES_PRIORITY }, "js/nav-jquery.js" );
- LJ::need_res( { group => 'default', priority => $LJ::SCHEME_RES_PRIORITY }, "js/nav.js" );
- _code?>
- <?_code LJ::res_includes(); _code?>
-
- %%head%%
-</head>
-<=head
-
-logo<=
-<?_code
-{
- my $imgprefix = $LJ::IS_SSL ? $LJ::SSLIMGPREFIX : $LJ::IMGPREFIX;
- return "<a href='$LJ::SITEROOT/'><img src='$imgprefix/tropo-red/dw_logo_beta_purple.png' alt='$LJ::SITENAMESHORT' /></a>";
-}
-_code?>
-<=logo
diff -r 4ccc1a61d21f -r f6afd79096a9 cgi-bin/bml/scheme/tropo-red.look
--- a/cgi-bin/bml/scheme/tropo-red.look Tue Jan 25 17:54:05 2011 +0800
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,57 +0,0 @@
-# Tropospherical Site Scheme
-#
-# Authors:
-# Janine Smith <janine@netrophic.com>
-# Jesse Proulx <jproulx@jproulx.net>
-# Elizabeth Lubowitz <grrliz@gmail.com>
-#
-# Copyright (c) 2009 by Dreamwidth Studios, LLC.
-#
-# This program is NOT free software or open-source; you can use it as an
-# example of how to implement your own site-specific extensions to the
-# Dreamwidth Studios open-source code, but you cannot use it on your site
-# or redistribute it, with or without modifications.
-#
-
-_parent=>tropo-common.look
-
-head<=
-<head>
- <title>
- <?_code
- my $elhash = $_[2];
- return $elhash->{WINDOWTITLE} || $elhash->{TITLE};
- _code?>
- </title>
-
- <meta http-equiv="content-type" content="text/html; charset=utf-8" />
-
- <?_code
- LJ::need_res( { priority => $LJ::SCHEME_RES_PRIORITY },
- qw( stc/reset.css
- stc/jquery/jquery.ui.theme.smoothness.css
- stc/lj_base-app.css
- stc/tropo/tropo-base.css
- stc/tropo/tropo-red.css
- )
- );
-
- # we support both old style and new style pages; only one of these will get
- # loaded ...
- LJ::need_res( { group => 'jquery', priority => $LJ::SCHEME_RES_PRIORITY }, "js/nav-jquery.js" );
- LJ::need_res( { group => 'default', priority => $LJ::SCHEME_RES_PRIORITY }, "js/nav.js" );
- _code?>
- <?_code LJ::res_includes(); _code?>
-
- %%head%%
-</head>
-<=head
-
-logo<=
-<?_code
-{
- my $imgprefix = $LJ::IS_SSL ? $LJ::SSLIMGPREFIX : $LJ::IMGPREFIX;
- return "<a href='$LJ::SITEROOT/'><img src='$imgprefix/tropo-red/dw_logo_beta.png' alt='$LJ::SITENAMESHORT' /></a>";
-}
-_code?>
-<=logo
diff -r 4ccc1a61d21f -r f6afd79096a9 schemes/_dreamwidth.tt
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/schemes/_dreamwidth.tt Mon Jan 31 19:38:20 2011 +0800
@@ -0,0 +1,37 @@
+[%#
+Common code for Dreamwidth site schemes
+
+ Converted to Template Toolkit by;
+ Andrea Nall <anall@andreanall.com>
+ Based on Tropospherical Red, authored by:
+ Janine Smith <janine@netrophic.com>
+ Jesse Proulx <jproulx@jproulx.net>
+ Elizabeth Lubowitz <grrliz@gmail.com>
+
+Copyright (c) 2010-2011 by Dreamwidth Studios, LLC.
+
+This program is free software; you may redistribute it and/or modify it under
+the same terms as Perl itself. For a copy of the license, please reference
+'perldoc perlartistic' or 'perldoc perlgpl'.
+
+%][%- BLOCK block.logo -%]
+[%- imgprefix = ( is_ssl ? site.ssl.imgroot : site.imgroot ) -%]
+[%- IF ! logo_path %]
+[%- logo_path = BLOCK -%]/[% logo_path_part %]/dw_logo_[% logo_path_part %]_beta.png[%- END - %]
+[%- END -%]
+<a href="[% site.root %]/"><img src='[% imgprefix %][% logo_path %]' /></a>
+[%- END -%]
+
+[%- BLOCK block.footer -%]
+<ul>
+ <li><a href="[% site.root %]/legal/privacy">[% 'sitescheme.footer.legal.privacypolicy' | ml %]</a> • </li>
+ <li><a href="[% site.root %]/legal/tos">[% 'sitescheme.footer.legal.tos' | ml %]</a> • </li>
+ <li><a href="[% site.root %]/legal/diversity">[% 'sitescheme.footer.legal.diversitystatement' | ml %]</a> • </li>
+ <li><a href="[% site.root %]/legal/principles">[% 'sitescheme.footer.legal.guidingprinciples' | ml %]</a> • </li>
+ <li><a href="[% site.root %]/site/">[% 'sitescheme.footer.sitemap' | ml %]</a> • </li>
+ <li><a href="[% site.root %]/site/suggest">[% 'sitescheme.footer.suggestion' | ml %]</a> • </li>
+ <li><a href="[% site.root %]/site/opensource">[% 'tropo.footer.opensource' | ml %]</a> • </li>
+ <li><a href="[% site.root %]/support">[% 'sitescheme.accountlinks.help' | ml %]</a></li>
+</ul>
+<p>[% 'sitescheme.footer.info' | ml %]</p>
+[%- END -%]
\ No newline at end of file
diff -r 4ccc1a61d21f -r f6afd79096a9 schemes/celerity-local.tt
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/schemes/celerity-local.tt Mon Jan 31 19:38:20 2011 +0800
@@ -0,0 +1,1 @@
+[%- PROCESS '_dreamwidth.tt' logo_path_part='celerity' -%]
diff -r 4ccc1a61d21f -r f6afd79096a9 schemes/gradation-horizontal-local.tt
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/schemes/gradation-horizontal-local.tt Mon Jan 31 19:38:20 2011 +0800
@@ -0,0 +1,1 @@
+[%- PROCESS '_dreamwidth.tt' logo_path_part='gradation' -%]
\ No newline at end of file
diff -r 4ccc1a61d21f -r f6afd79096a9 schemes/gradation-vertical-local.tt
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/schemes/gradation-vertical-local.tt Mon Jan 31 19:38:20 2011 +0800
@@ -0,0 +1,1 @@
+[%- PROCESS '_dreamwidth.tt' logo_path_part='gradation' -%]
\ No newline at end of file
diff -r 4ccc1a61d21f -r f6afd79096a9 schemes/tropo-common.tt
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/schemes/tropo-common.tt Mon Jan 31 19:38:20 2011 +0800
@@ -0,0 +1,72 @@
+[%#
+Common code for Tropospherical site schemes, refactored for inheritance.
+
+ Converted to Template Toolkit by;
+ Andrea Nall <anall@andreanall.com>
+ Authors:
+ Jen Griffin <kareila@livejournal.com>
+ Based on Tropospherical Red, authored by:
+ Janine Smith <janine@netrophic.com>
+ Jesse Proulx <jproulx@jproulx.net>
+ Elizabeth Lubowitz <grrliz@gmail.com>
+
+Copyright (c) 2010-2011 by Dreamwidth Studios, LLC.
+
+This program is free software; you may redistribute it and/or modify it under
+the same terms as Perl itself. For a copy of the license, please reference
+'perldoc perlartistic' or 'perldoc perlgpl'.
+
+%][%- PROCESS '_dreamwidth.tt' -%]
+
+[%- BLOCK block.need_res -%]
+ [%- dw_scheme.need_res(
+ 'stc/reset.css',
+ 'stc/jquery/jquery.ui.theme.smoothness.css',
+ 'stc/lj_base-app.css',
+ 'stc/tropo/tropo-base.css',
+ 'stc/tropo/tropo-' _ tropo_color _ '.css' );
+ dw_scheme.need_res({ group => 'jquery' }, 'js/nav-jquery.js' );
+ dw_scheme.need_res({ group => 'default' }, 'js/nav.js' ); -%]
+[%- END -%]
+
+[%- BLOCK block.page -%]
+[%- IF logo_path -%]
+[%- ELSIF tropo_color != 'red' -%]
+ [%- logo_path = '/tropo-red/dw_logo_beta_' _ tropo_color _ '.png' -%]
+[%- ELSE -%]
+ [%- logo_path = '/tropo-red/dw_logo_beta.png' -%]
+[%- END -%]
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+ [% PROCESS block.head %]
+ <body [% sections.bodyopts %]>
+ <div id="canvas">
+ <div id="page">
+ <div id="masthead">
+ <span id="logo">
+ [% PROCESS block.logo %]
+ </span>
+ </div>
+
+ <div id="content" [% sections.contentopts %]>
+ <h1>[% sections.title %]</h1>
+ [% content %]
+ </div>
+ <div id="account-links">
+ [% PROCESS block.accountlinks %]
+ </div>
+ <div id="menu">
+ [% PROCESS block.menunav %]
+ [% dw_scheme.search_render %]
+ </div>
+ <div id="footer">
+ [% PROCESS block.footer %]
+ </div>
+ </div>
+ </div>
+ [% dw_scheme.final_body_html %]
+
+ <div id="shim-alpha"> </div>
+ </body>
+</html>
+[%- END -%]
\ No newline at end of file
diff -r 4ccc1a61d21f -r f6afd79096a9 schemes/tropo-purple.tt
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/schemes/tropo-purple.tt Mon Jan 31 19:38:20 2011 +0800
@@ -0,0 +1,17 @@
+[%#
+Tropospherical Site Scheme
+
+ Converted to Template Toolkit by;
+ Andrea Nall <anall@andreanall.com>
+ Authors:
+ Janine Smith <janine@netrophic.com>
+ Jesse Proulx <jproulx@jproulx.net>
+ Elizabeth Lubowitz <grrliz@gmail.com>
+
+Copyright (c) 2010-2011 by Dreamwidth Studios, LLC.
+
+This program is free software; you may redistribute it and/or modify it under
+the same terms as Perl itself. For a copy of the license, please reference
+'perldoc perlartistic' or 'perldoc perlgpl'.
+
+%][%- tropo_color = 'purple' -%]
\ No newline at end of file
diff -r 4ccc1a61d21f -r f6afd79096a9 schemes/tropo-red.tt
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/schemes/tropo-red.tt Mon Jan 31 19:38:20 2011 +0800
@@ -0,0 +1,17 @@
+[%#
+Tropospherical Site Scheme
+
+ Converted to Template Toolkit by;
+ Andrea Nall <anall@andreanall.com>
+ Authors:
+ Janine Smith <janine@netrophic.com>
+ Jesse Proulx <jproulx@jproulx.net>
+ Elizabeth Lubowitz <grrliz@gmail.com>
+
+Copyright (c) 2010-2011 by Dreamwidth Studios, LLC.
+
+This program is free software; you may redistribute it and/or modify it under
+the same terms as Perl itself. For a copy of the license, please reference
+'perldoc perlartistic' or 'perldoc perlgpl'.
+
+%][%- tropo_color = 'red' -%]
\ No newline at end of file
--------------------------------------------------------------------------------
