Parašė mrZilvi· 2008 Geg. 11 14:05:12
#8
Savizudiss parašė:
Kam tu meti tą patį kodą jeigu neveikia.
Klaida: Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/useris/saitas.lt/themes/Darken/theme.php on line 30
Ne tą patį :> Praleidau dar vieną klaidą.
function render_header($header_content) {
global $theme_width,$settings;
echo "<table align='center' width='$theme_width' cellspacing='0' cellpadding='0'>
<tr>
<td>
<table width='100%' cellspacing='0' cellpadding='0'>
<tr>
<td class='full-header' style='padding:5px;'>
<table width='100%' cellspacing='0' cellpadding='0'>
<tr>
<td>$header_content</td>
</tr>
</table>
</td>
</tr>
</table>";
echo "<table align='center' cellpadding='0' cellspacing='0' width='767'>\n<tr>
<td><img src='".THEME."images/sub.png' usemap='#sub' width='767' height='34' border='0'></td>
<map id='sub' name='sub'>
<area shape='rect' coords=104,1,189,32' href='".BASEDIR."index.php'>
<area shape='rect' coords='209,1,277,32' href='".BASEDIR."downloads.php'>
<area shape='rect' coords='312,1,380,32' href='".BASEDIR."forum/index.php'>
<area shape='rect' coords='403,1,466,32' href='".BASEDIR."photogallery.php'>
<area shape='rect' coords='495,1,574,32' href='".BASEDIR."articles.php'>
<area shape='rect' coords='597,1,671,32' href='".BASEDIR."contact.php'>
</map></td>
</tr>
</table>\n";
echo "<td align='right' class='white-header'>".ucwords(showdate("%A, %B %d, %Y", time()))."</td>
</tr>
</table>
<table width='100%' cellspacing='0' cellpadding='0'>
<tr>\n";
}
Redagavo mrZilvi· 2008 Geg. 11 14:05:32