I am customizing my blog, and for the most part have things the way I want them. The final couple of things I want to accomplish are as follows:
I want my blog title ToaCx4 which shows on every page to link to the blog's
main page so that you can easily return to the front page no matter where you are.
I also want my banner/header to do the same
(
Read more... )
Comments 11
function print_banner(Page p) {
container_open("banner");
print safe """ $p.global_title
""";
print safe """$p.global_subtitle
""";
container_close();
}
function Page::print_entry(Entry e) {
"
\n";
var bool showtime = $*opt_showtime;
var bool showdate = not $*opt_datehead;
var bool showposter = false;
var bool showuserpic = $*opt_userpic_main;
if ($.view == "friends") { $showtime = true; $showposter = true; $showuserpic = $*opt_userpic_friends; }
if ($.view == "day") { $showdate = false; }
if ($.view == "entry" or $.view == "reply") { $showdate = true; }
if ($.view == "entry") { $showuserpic = $*opt_userpic_entrypage; }
if (not $e.poster->equals($e.journal)) { $showposter = true; }
if (($showuserpic and defined $e.userpic) or $showposter) {
"
";
if ($showuserpic and defined $e.userpic) { "$e.userpic"; }
if (($showuserpic and defined $e.userpic) and $showposter) { "
"; }
if ($showposter) { print safe "
"+ ( ... )
Reply
Reply
""" $e.subject
\n";
should have two more quotes in it:
""" $e.subject
\n""";
Reply
Now we get this:
S2 Compiler Output at Tue Nov 6 16:51:24 2007
Error compiling layer:
Compile error: line 104, column 50: Can't reference member variable in non-class function
S2::NodeVarRef, S2/NodeVarRef.pm, 199
S2::NodeVarRef, S2/NodeVarRef.pm, 151
S2::NodeTerm, S2/NodeTerm.pm, 162
S2::NodeTerm, S2/NodeTerm.pm, 66
S2::NodeSum, S2/NodeSum.pm, 65
S2::NodeSum, S2/NodeSum.pm, 64
S2::NodeSum, S2/NodeSum.pm, 64
S2::NodeSum, S2/NodeSum.pm, 64
S2::NodeTerm, S2/NodeTerm.pm, 76
S2::NodeTerm, S2/NodeTerm.pm, 66
S2::NodeExpr, S2/NodeExpr.pm, 46
S2::NodePrintStmt, S2/NodePrintStmt.pm, 55
S2::NodeStmtBlock, S2/NodeStmtBlock.pm, 101
S2::NodeFunction, S2/NodeFunction.pm, 230
S2::Checker, S2/Checker.pm, 353
S2::Compiler, S2/Compiler.pm, 34
Context
100:
101:
102: function print_banner(Page p) {
103: container_open("banner");
104: print safe """ $p.global_title
""";
105: print safe """$p.global_subtitle
""";
106: container_close();
107: }
108:
Reply
Reply
Leave a comment