Ciao a tutti, sto cercando di adattare un tempalte di ginger-ninja che avevo per pkp ma ma errore:
Codice:
Parse error: syntax error, unexpected '{' in /var/www/netsons.org/miosito/layout/wanderer/html.php on line 3
ecco il codice:
Codice PHP:
<?php
$layout['style'] =
body { font-familyVerdana, Arial, Helvetica, sans-serif; font-size11px; backgroundurl(imagesbg-body.png) repeat-y top center #111; color: #eee; }
img {
border0;
}
a {
text-decorationnone;
color#1E87C5;
}
ahover {
text-decorationnone;
color#4ABEEF;
}
p {
margin-bottom1.4em;
line-height1.7em;
}
Structure
#wrapper {
width620px;
background#000;
margin0 auto;
}
#header {
height300px;
backgroundurl(imagesheader.jpg) no-repeat top left;
margin-bottom10px;
}
#content {
width400px;
padding10px;
floatleft;
}
#sidebar {
width170px;
padding10px;
floatright;
}
#footer {
clearboth;
padding10px;
text-aligncenter;
}
Entries
.entry {
margin-bottom50px;
}
h1 a {
font-size18px;
font-weightnormal;
color#1E87C5;
}
h1 ahover {
font-size18px;
font-weightnormal;
color#4ABEEF;
}
.date {
color#444;
font-size10px;
}
.entrybody {
margin5px 0 0 0;
text-alignjustify;
}
.entrymeta {
margin-top-5px;
}
Sidebar
h2 {
font-size18px;
font-weightnormal;
color#eee;
border-left3px solid #1E87C5;
padding3px 5px 4px 5px;
background#070707;
border-bottom1px dotted #333;
}
#sidebar ul {
list-style-typenone;
background#070707;
margin-bottom30px;
}
#sidebar li a {
displayblock;
padding5px;
border-left3px solid #1E87C5;
border-bottom1px dotted #333;
color#4ABEEF;
}
#sidebar li ahover {
displayblock;
padding5px;
border-left3px solid #4ABEEF;
border-bottom1px 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=entrymetaa href=%22[[news_link]]%22[[title]]a · ([[date]] · [[time]] by b[[author]]b)divbr
;
$layout['news'] =
div id=content
div class=entry
h1a href=%22index.phpnews=[[news_id]]"[[title]]ah1
div class=date[[date]]div
div class=entrybody
[[news]]
div
div class=entrymetaby b[[author]]bdiv
div
;
$layout['comments'] =
b[[title]]b - [[date]] by [[author]]br
[[comment]]
hr
;
$layout['add_comment'] =
[[error]]
form name=comment action=%22index.phpnews=[[news_id]]&op=addcomment" method=post
table class=table align=center
trtd class=rightNometdtd
input type=text name=author size=20 tdtr
trtd class=rightTitolotdtd
input type=text name=title size=20 tdtr
trtd class=rightCommentotdtdtextarea cols=30 rows=7 name=texttextareatdtr
trtd colspan=2 align=center
input type=submit value=Invia size=20
input type=reset value=Reset size=20 tdtr
table
form
;
$layout['layout'] =
!DOCTYPE html PUBLIC -W3CDTD XHTML 1.0 StrictEN httpwww.w3.orgTRxhtml1DTDxhtml1-strict.dtd
html
head
meta http-equiv=Content-Type content=texthtml;charset=iso-8859-1
title[[title]]title
style type=textcss
[[style]]
style
link rel=stylesheet type=textcss href=%22adminFCKeditoreditorcssfck_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 ^^