Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: subheader

Parašė Toonis· 2008 Geg. 11 13:05:13
#4

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"



<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";

}

Gali būt blogai, neina man dėti kodų, kai nematau rezultato iškart. :| Taipogi nunešiau dalį kodo, nes ten kažkokia nereikalinga pisnia. :s

Redagavo Toonis· 2008 Geg. 11 13:05:59