Ciao a tutti, sto cercando di adattare un tempalte di ginger-ninja che avevo per pkp ma ma errore: [CODEarse error: syntax error, unexpected T_LNUMBER in /var/www/netsons.org/miosito/layout/wanderer/html.php on line 170[/CODE]
ecco il codice:
Codice PHP:
<?php
$layout['style'] = "
* {
padding:0;
margin:0;
}
body {
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:11px;
background:url(images/bg-body.png) repeat-y top center #111;
color:#eee;
}
img {
border:0;
}
a {
text-decoration:none;
color:#1E87C5;
}
a:hover {
text-decoration:none;
color:#4ABEEF;
}
p {
margin-bottom:1.4em;
line-height:1.7em;
}
/* Structure */
#wrapper {
width:620px;
background:#000;
margin:0 auto;
}
#header {
height:300px;
background:url(images/header.jpg) no-repeat top left;
margin-bottom:10px;
}
#content {
width:400px;
padding:10px;
float:left;
}
#sidebar {
width:170px;
padding:10px;
float:right;
}
#footer {
clear:both;
padding:10px;
text-align:center;
}
/* Entries */
.entry {
margin-bottom:50px;
}
h1 a {
font-size:18px;
font-weight:normal;
color:#1E87C5;
}
h1 a:hover {
font-size:18px;
font-weight:normal;
color:#4ABEEF;
}
.date {
color:#444;
font-size:10px;
}
.entrybody {
margin:5px 0 0 0;
text-align:justify;
}
.entrymeta {
margin-top:-5px;
}
/* Sidebar */
h2 {
font-size:18px;
font-weight:normal;
color:#eee;
border-left:3px solid #1E87C5;
padding:3px 5px 4px 5px;
background:#070707;
border-bottom:1px dotted #333;
}
#sidebar ul {
list-style-type:none;
background:#070707;
margin-bottom:30px;
}
#sidebar li a {
display:block;
padding:5px;
border-left:3px solid #1E87C5;
border-bottom:1px dotted #333;
color:#4ABEEF;
}
#sidebar li a:hover {
display:block;
padding:5px;
border-left:3px solid #4ABEEF;
border-bottom:1px dotted #333;
background:#121212;
color:#fff;
}
";
$layout['category'] = "
<div id=\"sidebar\">
<h2>[[title]]</h2>
<ul>
<li>[[category]]</li>
</ul>
</div>
";
$layout['page'] = "
<div id=\"content\">
<div class=\"entry\">
<h1>[[title]]</h1>
<div class=\"entrybody\">
[[text]]
</div>
</div>
";
$layout['all_news'] = "
<div class=\"entrymeta\"><a href=%22[[news_link]]/%22>[[title]]</a> · ([[date]] · [[time]] by <b>[[author]]</b>)</div><br />
";
$layout['news'] = "
<div id=\"content\">
<div class=\"entry\">
<h1><a href=%22index.php?news=[[news_id]]/">[[title]]</a></h1>
<div class=\"date\">[[date]]</div>
<div class=\"entrybody\">
[[news]]
</div>
<div class=\"entrymeta\">by <b>[[author]]</b></div>
</div>
";
$layout['comments'] = "
<b>[[title]]</b> - [[date]] by [[author]]<br />
[[comment]]
<hr />
";
$layout['add_comment'] = "
[[error]]
<form name=\"comment\" action=%22index.php?news=[[news_id]]&op=addcomment/" method=\"post\">
<table class=\"table\" align=\"center\">
<tr><td class=\"right\">Nome:</td><td>
<input type=\"text\" name=\"author\" size="20" /></td></tr>
<tr><td class=\"right\">Titolo:</td><td>
<input type=\"text\" name=\"title\" size="20" /></td></tr>
<tr><td class=\"right\">Commento:</td><td><textarea cols=\"30\" rows=\"7\" name=\"text\"></textarea></td></tr>
<tr><td colspan=\"2\" align=\"center\">
<input type=\"submit\" value=\"Invia\" size="20" />
<input type=\"reset\" value=\"Reset\" size="20" /></td></tr>
</table>
</form>
";
$layout['layout'] = "
<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">
<html>
<head>
<meta http-equiv=\"Content-Type\" content=\"text/html;charset=iso-8859-1\" />
<title>[[title]]</title>
<style type=\"text/css\">
[[style]]
</style>
<link rel=\"stylesheet\" type=\"text/css\" href=%22admin/FCKeditor/editor/css/fck_editorarea.css/%22 />
</head>
<body>
<div id=\"wrapper\">
<div id=\"header\">
<a href=%22index.php/%22>[[title]]</a>
</div>
<div id=\"content\">
<div class=\"entry\">
[[content]]
</div>
</div>
<div id=\"sidebar\">
[[menu]]
</div>
<div id=\"footer\">
[[credits]]
</div>
</div>
</body>
</html>
";
?>
Grazie.ciao davide ^^