Help?
[EDIT: Problem solved. Was a rogue space after CSS;.]
Let me explain what I'm trying to do first. I'm trying to create themes for a website that can be set on each page; there will also be a default theme for pages without a theme set. $t is the variable I'm using to set themes. The error I'm getting is "Parse error: syntax error, unexpected $end on line 54". I'm stumped.
$h2, "css" => $css);
if ($t=="sk"){
$h2 = "Snowcrash and Kosette: Love that Spans Time";
$css = <<
Let me explain what I'm trying to do first. I'm trying to create themes for a website that can be set on each page; there will also be a default theme for pages without a theme set. $t is the variable I'm using to set themes. The error I'm getting is "Parse error: syntax error, unexpected $end on line 54". I'm stumped.
$h2, "css" => $css);
if ($t=="sk"){
$h2 = "Snowcrash and Kosette: Love that Spans Time";
$css = <<
[Error: Irreparable invalid markup ('<css [...] #596b2f;>') in entry. Owner must fix manually. Raw contents below.]
[EDIT: Problem solved. Was a rogue space after CSS;.]
Let me explain what I'm trying to do first. I'm trying to create themes for a website that can be set on each page; there will also be a default theme for pages without a theme set. $t is the variable I'm using to set themes. The error I'm getting is "Parse error: syntax error, unexpected $end on line 54". I'm stumped.
<lj-cut>
<?php
$t = array("title" => $h2, "css" => $css);
if ($t=="sk"){
$h2 = "Snowcrash and Kosette: Love that Spans Time";
$css = <<<CSS
body {
background-color: #8ea2bb;
color: #000000;
}
ul.menu {
background-color: #596b2f;
}
ul.menu li {
background-color: #c1bab0;
margin: 2px;
display: inline;
}
ul.menu a:hover {
border: 0px;
}
CSS;
}
echo <<<HTML
<style type="text/css">
{$t["css"]}
</style>
</head>
<body>
<div id="top">
<IMG SRC="/Pics/s1.JPG" class="sugar">
<h1>Sugar the cat.com<I>ic</I></h1>
<ul class="top">
<li><A HREF="/Comics/about.html">About/Cast</A></li>
<li><A HREF="/Comics/archives.html">Archives</A></li>
<li><A HREF="/phpBB2/index.php">Forums</A></li>
<li><A HREF="/links.html">Links</A></li>
<li><A HREF="http://www.sugarthecat.com/phpBB2/viewforum.php?f=4">News Updates</A></li>
</ul>
<h1 class="small"><I>presents...</i></h1>
</div>
<h1>{$arr["title"]}</h1>
HTML;
?></lj-cut>
Let me explain what I'm trying to do first. I'm trying to create themes for a website that can be set on each page; there will also be a default theme for pages without a theme set. $t is the variable I'm using to set themes. The error I'm getting is "Parse error: syntax error, unexpected $end on line 54". I'm stumped.
<lj-cut>
<?php
$t = array("title" => $h2, "css" => $css);
if ($t=="sk"){
$h2 = "Snowcrash and Kosette: Love that Spans Time";
$css = <<<CSS
body {
background-color: #8ea2bb;
color: #000000;
}
ul.menu {
background-color: #596b2f;
}
ul.menu li {
background-color: #c1bab0;
margin: 2px;
display: inline;
}
ul.menu a:hover {
border: 0px;
}
CSS;
}
echo <<<HTML
<style type="text/css">
{$t["css"]}
</style>
</head>
<body>
<div id="top">
<IMG SRC="/Pics/s1.JPG" class="sugar">
<h1>Sugar the cat.com<I>ic</I></h1>
<ul class="top">
<li><A HREF="/Comics/about.html">About/Cast</A></li>
<li><A HREF="/Comics/archives.html">Archives</A></li>
<li><A HREF="/phpBB2/index.php">Forums</A></li>
<li><A HREF="/links.html">Links</A></li>
<li><A HREF="http://www.sugarthecat.com/phpBB2/viewforum.php?f=4">News Updates</A></li>
</ul>
<h1 class="small"><I>presents...</i></h1>
</div>
<h1>{$arr["title"]}</h1>
HTML;
?></lj-cut>
